mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
1196 lines
1.3 MiB
1196 lines
1.3 MiB
(()=>{var Em={9669:(d,K,U)=>{d.exports=U(1609)},7970:(d,K,U)=>{"use strict";var B=U(4867),re=U(6026),Q=U(4097),M=U(5327),q=U(3685),x=U(5687),L=U(938).http,D=U(938).https,H=U(7310),$=U(9796),se=U(8593),I=U(5061),te=U(481),W=/https:?/;function G(oe,J,Ce){if(oe.hostname=J.host,oe.host=J.host,oe.port=J.port,oe.path=Ce,J.auth){var _e=Buffer.from(J.auth.username+":"+J.auth.password,"utf8").toString("base64");oe.headers["Proxy-Authorization"]="Basic "+_e}oe.beforeRedirect=function(fe){fe.headers.host=fe.host,G(fe,J,fe.href)}}d.exports=function(J){return new Promise(function(_e,Le){var fe=function(le){_e(le)},pe=function(le){Le(le)},Z=J.data,ae=J.headers;if("User-Agent"in ae||"user-agent"in ae?!ae["User-Agent"]&&!ae["user-agent"]&&(delete ae["User-Agent"],delete ae["user-agent"]):ae["User-Agent"]="axios/"+se.version,Z&&!B.isStream(Z)){if(!Buffer.isBuffer(Z))if(B.isArrayBuffer(Z))Z=Buffer.from(new Uint8Array(Z));else if(B.isString(Z))Z=Buffer.from(Z,"utf-8");else return pe(I("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",J));ae["Content-Length"]=Z.length}var ee=void 0;if(J.auth){var he=J.auth.username||"",Pe=J.auth.password||"";ee=he+":"+Pe}var Ne=Q(J.baseURL,J.url),ke=H.parse(Ne),Re=ke.protocol||"http:";if(!ee&&ke.auth){var tt=ke.auth.split(":"),Ze=tt[0]||"",bt=tt[1]||"";ee=Ze+":"+bt}ee&&delete ae.Authorization;var _t=W.test(Re),zt=_t?J.httpsAgent:J.httpAgent,di={path:M(ke.path,J.params,J.paramsSerializer).replace(/^\?/,""),method:J.method.toUpperCase(),headers:ae,agent:zt,agents:{http:J.httpAgent,https:J.httpsAgent},auth:ee};J.socketPath?di.socketPath=J.socketPath:(di.hostname=ke.hostname,di.port=ke.port);var jt=J.proxy;if(!jt&&jt!==!1){var ai=Re.slice(0,-1)+"_proxy",Jt=process.env[ai]||process.env[ai.toUpperCase()];if(Jt){var ui=H.parse(Jt),tr=process.env.no_proxy||process.env.NO_PROXY,Vr=!0;if(tr){var Er=tr.split(",").map(function(le){return le.trim()});Vr=!Er.some(function(le){return le?le==="*"||le[0]==="."&&ke.hostname.substr(ke.hostname.length-le.length)===le?!0:ke.hostname===le:!1})}if(Vr&&(jt={host:ui.hostname,port:ui.port,protocol:ui.protocol},ui.auth)){var Sr=ui.auth.split(":");jt.auth={username:Sr[0],password:Sr[1]}}}}jt&&(di.headers.host=ke.hostname+(ke.port?":"+ke.port:""),G(di,jt,Re+"//"+ke.hostname+(ke.port?":"+ke.port:"")+di.path));var Gt,Xi=_t&&(jt?W.test(jt.protocol):!0);J.transport?Gt=J.transport:J.maxRedirects===0?Gt=Xi?x:q:(J.maxRedirects&&(di.maxRedirects=J.maxRedirects),Gt=Xi?D:L),J.maxBodyLength>-1&&(di.maxBodyLength=J.maxBodyLength);var Zt=Gt.request(di,function(le){if(!Zt.aborted){var Fe=le,We=le.req||Zt;if(le.statusCode!==204&&We.method!=="HEAD"&&J.decompress!==!1)switch(le.headers["content-encoding"]){case"gzip":case"compress":case"deflate":Fe=Fe.pipe($.createUnzip()),delete le.headers["content-encoding"];break}var nt={status:le.statusCode,statusText:le.statusMessage,headers:le.headers,config:J,request:We};if(J.responseType==="stream")nt.data=Fe,re(fe,pe,nt);else{var mt=[],ei=0;Fe.on("data",function(ve){mt.push(ve),ei+=ve.length,J.maxContentLength>-1&&ei>J.maxContentLength&&(Fe.destroy(),pe(I("maxContentLength size of "+J.maxContentLength+" exceeded",J,null,We)))}),Fe.on("error",function(ve){Zt.aborted||pe(te(ve,J,null,We))}),Fe.on("end",function(){var ve=Buffer.concat(mt);J.responseType!=="arraybuffer"&&(ve=ve.toString(J.responseEncoding),(!J.responseEncoding||J.responseEncoding==="utf8")&&(ve=B.stripBOM(ve))),nt.data=ve,re(fe,pe,nt)})}}});if(Zt.on("error",function(le){Zt.aborted&&le.code!=="ERR_FR_TOO_MANY_REDIRECTS"||pe(te(le,J,null,Zt))}),J.timeout){var Di=parseInt(J.timeout,10);if(isNaN(Di)){pe(I("error trying to parse `config.timeout` to int",J,"ERR_PARSE_TIMEOUT",Zt));return}Zt.setTimeout(Di,function(){Zt.abort(),pe(I("timeout of "+Di+"ms exceeded",J,J.transitional&&J.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",Zt))})}J.cancelToken&&J.cancelToken.promise.then(function(le){Zt.aborted||(Zt.abort(),pe(le))}),B.isStream(Z)?Z.on("error",function(le){pe(te(le,J,null,Zt))}).pipe(Zt):Zt.end(Z)})}},5448:(d,K,U)=>{"use strict";var B=U(4867),re=U(6026),Q=U(4372),M=U(5327),q=U(4097),x=U(4109),L=U(7985),D=U(5061);d.exports=function($){return new Promise(function(I,te){var W=$.data,G=$.headers,oe=$.responseType;B.isFormData(W)&&delete G["Content-Type"];var J=new XMLHttpRequest;if($.auth){var Ce=$.auth.username||"",_e=$.auth.password?unescape(encodeURIComponent($.auth.password)):"";G.Authorization="Basic "+btoa(Ce+":"+_e)}var Le=q($.baseURL,$.url);J.open($.method.toUpperCase(),M(Le,$.params,$.paramsSerializer),!0),J.timeout=$.timeout;function fe(){if(!!J){var Z="getAllResponseHeaders"in J?x(J.getAllResponseHeaders()):null,ae=!oe||oe==="text"||oe==="json"?J.responseText:J.response,ee={data:ae,status:J.status,statusText:J.statusText,headers:Z,config:$,request:J};re(I,te,ee),J=null}}if("onloadend"in J?J.onloadend=fe:J.onreadystatechange=function(){!J||J.readyState!==4||J.status===0&&!(J.responseURL&&J.responseURL.indexOf("file:")===0)||setTimeout(fe)},J.onabort=function(){!J||(te(D("Request aborted",$,"ECONNABORTED",J)),J=null)},J.onerror=function(){te(D("Network Error",$,null,J)),J=null},J.ontimeout=function(){var ae="timeout of "+$.timeout+"ms exceeded";$.timeoutErrorMessage&&(ae=$.timeoutErrorMessage),te(D(ae,$,$.transitional&&$.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",J)),J=null},B.isStandardBrowserEnv()){var pe=($.withCredentials||L(Le))&&$.xsrfCookieName?Q.read($.xsrfCookieName):void 0;pe&&(G[$.xsrfHeaderName]=pe)}"setRequestHeader"in J&&B.forEach(G,function(ae,ee){typeof W=="undefined"&&ee.toLowerCase()==="content-type"?delete G[ee]:J.setRequestHeader(ee,ae)}),B.isUndefined($.withCredentials)||(J.withCredentials=!!$.withCredentials),oe&&oe!=="json"&&(J.responseType=$.responseType),typeof $.onDownloadProgress=="function"&&J.addEventListener("progress",$.onDownloadProgress),typeof $.onUploadProgress=="function"&&J.upload&&J.upload.addEventListener("progress",$.onUploadProgress),$.cancelToken&&$.cancelToken.promise.then(function(ae){!J||(J.abort(),te(ae),J=null)}),W||(W=null),J.send(W)})}},1609:(d,K,U)=>{"use strict";var B=U(4867),re=U(1849),Q=U(321),M=U(7185),q=U(5655);function x(D){var H=new Q(D),$=re(Q.prototype.request,H);return B.extend($,Q.prototype,H),B.extend($,H),$}var L=x(q);L.Axios=Q,L.create=function(H){return x(M(L.defaults,H))},L.Cancel=U(5263),L.CancelToken=U(4972),L.isCancel=U(6502),L.all=function(H){return Promise.all(H)},L.spread=U(8713),L.isAxiosError=U(6268),d.exports=L,d.exports.default=L},5263:d=>{"use strict";function K(U){this.message=U}K.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},K.prototype.__CANCEL__=!0,d.exports=K},4972:(d,K,U)=>{"use strict";var B=U(5263);function re(Q){if(typeof Q!="function")throw new TypeError("executor must be a function.");var M;this.promise=new Promise(function(L){M=L});var q=this;Q(function(L){q.reason||(q.reason=new B(L),M(q.reason))})}re.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},re.source=function(){var M,q=new re(function(L){M=L});return{token:q,cancel:M}},d.exports=re},6502:d=>{"use strict";d.exports=function(U){return!!(U&&U.__CANCEL__)}},321:(d,K,U)=>{"use strict";var B=U(4867),re=U(5327),Q=U(782),M=U(3572),q=U(7185),x=U(4875),L=x.validators;function D(H){this.defaults=H,this.interceptors={request:new Q,response:new Q}}D.prototype.request=function($){typeof $=="string"?($=arguments[1]||{},$.url=arguments[0]):$=$||{},$=q(this.defaults,$),$.method?$.method=$.method.toLowerCase():this.defaults.method?$.method=this.defaults.method.toLowerCase():$.method="get";var se=$.transitional;se!==void 0&&x.assertOptions(se,{silentJSONParsing:L.transitional(L.boolean,"1.0.0"),forcedJSONParsing:L.transitional(L.boolean,"1.0.0"),clarifyTimeoutError:L.transitional(L.boolean,"1.0.0")},!1);var I=[],te=!0;this.interceptors.request.forEach(function(fe){typeof fe.runWhen=="function"&&fe.runWhen($)===!1||(te=te&&fe.synchronous,I.unshift(fe.fulfilled,fe.rejected))});var W=[];this.interceptors.response.forEach(function(fe){W.push(fe.fulfilled,fe.rejected)});var G;if(!te){var oe=[M,void 0];for(Array.prototype.unshift.apply(oe,I),oe=oe.concat(W),G=Promise.resolve($);oe.length;)G=G.then(oe.shift(),oe.shift());return G}for(var J=$;I.length;){var Ce=I.shift(),_e=I.shift();try{J=Ce(J)}catch(Le){_e(Le);break}}try{G=M(J)}catch(Le){return Promise.reject(Le)}for(;W.length;)G=G.then(W.shift(),W.shift());return G},D.prototype.getUri=function($){return $=q(this.defaults,$),re($.url,$.params,$.paramsSerializer).replace(/^\?/,"")},B.forEach(["delete","get","head","options"],function($){D.prototype[$]=function(se,I){return this.request(q(I||{},{method:$,url:se,data:(I||{}).data}))}}),B.forEach(["post","put","patch"],function($){D.prototype[$]=function(se,I,te){return this.request(q(te||{},{method:$,url:se,data:I}))}}),d.exports=D},782:(d,K,U)=>{"use strict";var B=U(4867);function re(){this.handlers=[]}re.prototype.use=function(M,q,x){return this.handlers.push({fulfilled:M,rejected:q,synchronous:x?x.synchronous:!1,runWhen:x?x.runWhen:null}),this.handlers.length-1},re.prototype.eject=function(M){this.handlers[M]&&(this.handlers[M]=null)},re.prototype.forEach=function(M){B.forEach(this.handlers,function(x){x!==null&&M(x)})},d.exports=re},4097:(d,K,U)=>{"use strict";var B=U(1793),re=U(7303);d.exports=function(M,q){return M&&!B(q)?re(M,q):q}},5061:(d,K,U)=>{"use strict";var B=U(481);d.exports=function(Q,M,q,x,L){var D=new Error(Q);return B(D,M,q,x,L)}},3572:(d,K,U)=>{"use strict";var B=U(4867),re=U(8527),Q=U(6502),M=U(5655);function q(x){x.cancelToken&&x.cancelToken.throwIfRequested()}d.exports=function(L){q(L),L.headers=L.headers||{},L.data=re.call(L,L.data,L.headers,L.transformRequest),L.headers=B.merge(L.headers.common||{},L.headers[L.method]||{},L.headers),B.forEach(["delete","get","head","post","put","patch","common"],function($){delete L.headers[$]});var D=L.adapter||M.adapter;return D(L).then(function($){return q(L),$.data=re.call(L,$.data,$.headers,L.transformResponse),$},function($){return Q($)||(q(L),$&&$.response&&($.response.data=re.call(L,$.response.data,$.response.headers,L.transformResponse))),Promise.reject($)})}},481:d=>{"use strict";d.exports=function(U,B,re,Q,M){return U.config=B,re&&(U.code=re),U.request=Q,U.response=M,U.isAxiosError=!0,U.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},U}},7185:(d,K,U)=>{"use strict";var B=U(4867);d.exports=function(Q,M){M=M||{};var q={},x=["url","method","data"],L=["headers","auth","proxy","params"],D=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],H=["validateStatus"];function $(W,G){return B.isPlainObject(W)&&B.isPlainObject(G)?B.merge(W,G):B.isPlainObject(G)?B.merge({},G):B.isArray(G)?G.slice():G}function se(W){B.isUndefined(M[W])?B.isUndefined(Q[W])||(q[W]=$(void 0,Q[W])):q[W]=$(Q[W],M[W])}B.forEach(x,function(G){B.isUndefined(M[G])||(q[G]=$(void 0,M[G]))}),B.forEach(L,se),B.forEach(D,function(G){B.isUndefined(M[G])?B.isUndefined(Q[G])||(q[G]=$(void 0,Q[G])):q[G]=$(void 0,M[G])}),B.forEach(H,function(G){G in M?q[G]=$(Q[G],M[G]):G in Q&&(q[G]=$(void 0,Q[G]))});var I=x.concat(L).concat(D).concat(H),te=Object.keys(Q).concat(Object.keys(M)).filter(function(G){return I.indexOf(G)===-1});return B.forEach(te,se),q}},6026:(d,K,U)=>{"use strict";var B=U(5061);d.exports=function(Q,M,q){var x=q.config.validateStatus;!q.status||!x||x(q.status)?Q(q):M(B("Request failed with status code "+q.status,q.config,null,q.request,q))}},8527:(d,K,U)=>{"use strict";var B=U(4867),re=U(5655);d.exports=function(M,q,x){var L=this||re;return B.forEach(x,function(H){M=H.call(L,M,q)}),M}},5655:(d,K,U)=>{"use strict";var B=U(4867),re=U(6016),Q=U(481),M={"Content-Type":"application/x-www-form-urlencoded"};function q(H,$){!B.isUndefined(H)&&B.isUndefined(H["Content-Type"])&&(H["Content-Type"]=$)}function x(){var H;return typeof XMLHttpRequest!="undefined"?H=U(5448):typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(H=U(7970)),H}function L(H,$,se){if(B.isString(H))try{return($||JSON.parse)(H),B.trim(H)}catch(I){if(I.name!=="SyntaxError")throw I}return(se||JSON.stringify)(H)}var D={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:x(),transformRequest:[function($,se){return re(se,"Accept"),re(se,"Content-Type"),B.isFormData($)||B.isArrayBuffer($)||B.isBuffer($)||B.isStream($)||B.isFile($)||B.isBlob($)?$:B.isArrayBufferView($)?$.buffer:B.isURLSearchParams($)?(q(se,"application/x-www-form-urlencoded;charset=utf-8"),$.toString()):B.isObject($)||se&&se["Content-Type"]==="application/json"?(q(se,"application/json"),L($)):$}],transformResponse:[function($){var se=this.transitional,I=se&&se.silentJSONParsing,te=se&&se.forcedJSONParsing,W=!I&&this.responseType==="json";if(W||te&&B.isString($)&&$.length)try{return JSON.parse($)}catch(G){if(W)throw G.name==="SyntaxError"?Q(G,this,"E_JSON_PARSE"):G}return $}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function($){return $>=200&&$<300}};D.headers={common:{Accept:"application/json, text/plain, */*"}},B.forEach(["delete","get","head"],function($){D.headers[$]={}}),B.forEach(["post","put","patch"],function($){D.headers[$]=B.merge(M)}),d.exports=D},1849:d=>{"use strict";d.exports=function(U,B){return function(){for(var Q=new Array(arguments.length),M=0;M<Q.length;M++)Q[M]=arguments[M];return U.apply(B,Q)}}},5327:(d,K,U)=>{"use strict";var B=U(4867);function re(Q){return encodeURIComponent(Q).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}d.exports=function(M,q,x){if(!q)return M;var L;if(x)L=x(q);else if(B.isURLSearchParams(q))L=q.toString();else{var D=[];B.forEach(q,function(se,I){se===null||typeof se=="undefined"||(B.isArray(se)?I=I+"[]":se=[se],B.forEach(se,function(W){B.isDate(W)?W=W.toISOString():B.isObject(W)&&(W=JSON.stringify(W)),D.push(re(I)+"="+re(W))}))}),L=D.join("&")}if(L){var H=M.indexOf("#");H!==-1&&(M=M.slice(0,H)),M+=(M.indexOf("?")===-1?"?":"&")+L}return M}},7303:d=>{"use strict";d.exports=function(U,B){return B?U.replace(/\/+$/,"")+"/"+B.replace(/^\/+/,""):U}},4372:(d,K,U)=>{"use strict";var B=U(4867);d.exports=B.isStandardBrowserEnv()?function(){return{write:function(M,q,x,L,D,H){var $=[];$.push(M+"="+encodeURIComponent(q)),B.isNumber(x)&&$.push("expires="+new Date(x).toGMTString()),B.isString(L)&&$.push("path="+L),B.isString(D)&&$.push("domain="+D),H===!0&&$.push("secure"),document.cookie=$.join("; ")},read:function(M){var q=document.cookie.match(new RegExp("(^|;\\s*)("+M+")=([^;]*)"));return q?decodeURIComponent(q[3]):null},remove:function(M){this.write(M,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},1793:d=>{"use strict";d.exports=function(U){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(U)}},6268:d=>{"use strict";d.exports=function(U){return typeof U=="object"&&U.isAxiosError===!0}},7985:(d,K,U)=>{"use strict";var B=U(4867);d.exports=B.isStandardBrowserEnv()?function(){var Q=/(msie|trident)/i.test(navigator.userAgent),M=document.createElement("a"),q;function x(L){var D=L;return Q&&(M.setAttribute("href",D),D=M.href),M.setAttribute("href",D),{href:M.href,protocol:M.protocol?M.protocol.replace(/:$/,""):"",host:M.host,search:M.search?M.search.replace(/^\?/,""):"",hash:M.hash?M.hash.replace(/^#/,""):"",hostname:M.hostname,port:M.port,pathname:M.pathname.charAt(0)==="/"?M.pathname:"/"+M.pathname}}return q=x(window.location.href),function(D){var H=B.isString(D)?x(D):D;return H.protocol===q.protocol&&H.host===q.host}}():function(){return function(){return!0}}()},6016:(d,K,U)=>{"use strict";var B=U(4867);d.exports=function(Q,M){B.forEach(Q,function(x,L){L!==M&&L.toUpperCase()===M.toUpperCase()&&(Q[M]=x,delete Q[L])})}},4109:(d,K,U)=>{"use strict";var B=U(4867),re=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];d.exports=function(M){var q={},x,L,D;return M&&B.forEach(M.split(`
|
||
`),function($){if(D=$.indexOf(":"),x=B.trim($.substr(0,D)).toLowerCase(),L=B.trim($.substr(D+1)),x){if(q[x]&&re.indexOf(x)>=0)return;x==="set-cookie"?q[x]=(q[x]?q[x]:[]).concat([L]):q[x]=q[x]?q[x]+", "+L:L}}),q}},8713:d=>{"use strict";d.exports=function(U){return function(re){return U.apply(null,re)}}},4875:(d,K,U)=>{"use strict";var B=U(8593),re={};["object","boolean","number","function","string","symbol"].forEach(function(L,D){re[L]=function($){return typeof $===L||"a"+(D<1?"n ":" ")+L}});var Q={},M=B.version.split(".");function q(L,D){for(var H=D?D.split("."):M,$=L.split("."),se=0;se<3;se++){if(H[se]>$[se])return!0;if(H[se]<$[se])return!1}return!1}re.transitional=function(D,H,$){var se=H&&q(H);function I(te,W){return"[Axios v"+B.version+"] Transitional option '"+te+"'"+W+($?". "+$:"")}return function(te,W,G){if(D===!1)throw new Error(I(W," has been removed in "+H));return se&&!Q[W]&&(Q[W]=!0,console.warn(I(W," has been deprecated since v"+H+" and will be removed in the near future"))),D?D(te,W,G):!0}};function x(L,D,H){if(typeof L!="object")throw new TypeError("options must be an object");for(var $=Object.keys(L),se=$.length;se-- >0;){var I=$[se],te=D[I];if(te){var W=L[I],G=W===void 0||te(W,I,L);if(G!==!0)throw new TypeError("option "+I+" must be "+G);continue}if(H!==!0)throw Error("Unknown option "+I)}}d.exports={isOlderVersion:q,assertOptions:x,validators:re}},4867:(d,K,U)=>{"use strict";var B=U(1849),re=Object.prototype.toString;function Q(ee){return re.call(ee)==="[object Array]"}function M(ee){return typeof ee=="undefined"}function q(ee){return ee!==null&&!M(ee)&&ee.constructor!==null&&!M(ee.constructor)&&typeof ee.constructor.isBuffer=="function"&&ee.constructor.isBuffer(ee)}function x(ee){return re.call(ee)==="[object ArrayBuffer]"}function L(ee){return typeof FormData!="undefined"&&ee instanceof FormData}function D(ee){var he;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?he=ArrayBuffer.isView(ee):he=ee&&ee.buffer&&ee.buffer instanceof ArrayBuffer,he}function H(ee){return typeof ee=="string"}function $(ee){return typeof ee=="number"}function se(ee){return ee!==null&&typeof ee=="object"}function I(ee){if(re.call(ee)!=="[object Object]")return!1;var he=Object.getPrototypeOf(ee);return he===null||he===Object.prototype}function te(ee){return re.call(ee)==="[object Date]"}function W(ee){return re.call(ee)==="[object File]"}function G(ee){return re.call(ee)==="[object Blob]"}function oe(ee){return re.call(ee)==="[object Function]"}function J(ee){return se(ee)&&oe(ee.pipe)}function Ce(ee){return typeof URLSearchParams!="undefined"&&ee instanceof URLSearchParams}function _e(ee){return ee.trim?ee.trim():ee.replace(/^\s+|\s+$/g,"")}function Le(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function fe(ee,he){if(!(ee===null||typeof ee=="undefined"))if(typeof ee!="object"&&(ee=[ee]),Q(ee))for(var Pe=0,Ne=ee.length;Pe<Ne;Pe++)he.call(null,ee[Pe],Pe,ee);else for(var ke in ee)Object.prototype.hasOwnProperty.call(ee,ke)&&he.call(null,ee[ke],ke,ee)}function pe(){var ee={};function he(ke,Re){I(ee[Re])&&I(ke)?ee[Re]=pe(ee[Re],ke):I(ke)?ee[Re]=pe({},ke):Q(ke)?ee[Re]=ke.slice():ee[Re]=ke}for(var Pe=0,Ne=arguments.length;Pe<Ne;Pe++)fe(arguments[Pe],he);return ee}function Z(ee,he,Pe){return fe(he,function(ke,Re){Pe&&typeof ke=="function"?ee[Re]=B(ke,Pe):ee[Re]=ke}),ee}function ae(ee){return ee.charCodeAt(0)===65279&&(ee=ee.slice(1)),ee}d.exports={isArray:Q,isArrayBuffer:x,isBuffer:q,isFormData:L,isArrayBufferView:D,isString:H,isNumber:$,isObject:se,isPlainObject:I,isUndefined:M,isDate:te,isFile:W,isBlob:G,isFunction:oe,isStream:J,isURLSearchParams:Ce,isStandardBrowserEnv:Le,forEach:fe,merge:pe,extend:Z,trim:_e,stripBOM:ae}},5186:(d,K,U)=>{var B=U(3698),re=U(2505),Q=U(6417),M=Function.bind,q=M.bind(M);function x(se,I,te){var W=q(Q,null).apply(null,te?[I,te]:[I]);se.api={remove:W},se.remove=W,["before","error","after","wrap"].forEach(function(G){var oe=te?[I,G,te]:[I,G];se[G]=se.api[G]=q(re,null).apply(null,oe)})}function L(){var se="h",I={registry:{}},te=B.bind(null,I,se);return x(te,I,se),te}function D(){var se={registry:{}},I=B.bind(null,se);return x(I,se),I}var H=!1;function $(){return H||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),H=!0),D()}$.Singular=L.bind(),$.Collection=D.bind(),d.exports=$,d.exports.Hook=$,d.exports.Singular=$.Singular,d.exports.Collection=$.Collection},2505:d=>{d.exports=K;function K(U,B,re,Q){var M=Q;U.registry[re]||(U.registry[re]=[]),B==="before"&&(Q=function(q,x){return Promise.resolve().then(M.bind(null,x)).then(q.bind(null,x))}),B==="after"&&(Q=function(q,x){var L;return Promise.resolve().then(q.bind(null,x)).then(function(D){return L=D,M(L,x)}).then(function(){return L})}),B==="error"&&(Q=function(q,x){return Promise.resolve().then(q.bind(null,x)).catch(function(L){return M(L,x)})}),U.registry[re].push({hook:Q,orig:M})}},3698:d=>{d.exports=K;function K(U,B,re,Q){if(typeof re!="function")throw new Error("method for before hook must be a function");return Q||(Q={}),Array.isArray(B)?B.reverse().reduce(function(M,q){return K.bind(null,U,q,M,Q)},re)():Promise.resolve().then(function(){return U.registry[B]?U.registry[B].reduce(function(M,q){return q.hook.bind(null,M,Q)},re)():re(Q)})}},6417:d=>{d.exports=K;function K(U,B,re){if(!!U.registry[B]){var Q=U.registry[B].map(function(M){return M.orig}).indexOf(re);Q!==-1&&U.registry[B].splice(Q,1)}}},4165:(d,K,U)=>{const B=U(6292),re=B.default||B,Q=function(M,q){return/^\/\//.test(M)&&(M="https:"+M),re.call(this,M,q)};Q.ponyfill=!0,d.exports=K=Q,K.fetch=Q,K.Headers=B.Headers,K.Request=B.Request,K.Response=B.Response,K.default=Q},7484:function(d){(function(K,U){d.exports=U()})(this,function(){"use strict";var K="millisecond",U="second",B="minute",re="hour",Q="day",M="week",q="month",x="quarter",L="year",D="date",H=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,se={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},I=function(pe,Z,ae){var ee=String(pe);return!ee||ee.length>=Z?pe:""+Array(Z+1-ee.length).join(ae)+pe},te={s:I,z:function(pe){var Z=-pe.utcOffset(),ae=Math.abs(Z),ee=Math.floor(ae/60),he=ae%60;return(Z<=0?"+":"-")+I(ee,2,"0")+":"+I(he,2,"0")},m:function pe(Z,ae){if(Z.date()<ae.date())return-pe(ae,Z);var ee=12*(ae.year()-Z.year())+(ae.month()-Z.month()),he=Z.clone().add(ee,q),Pe=ae-he<0,Ne=Z.clone().add(ee+(Pe?-1:1),q);return+(-(ee+(ae-he)/(Pe?he-Ne:Ne-he))||0)},a:function(pe){return pe<0?Math.ceil(pe)||0:Math.floor(pe)},p:function(pe){return{M:q,y:L,w:M,d:Q,D,h:re,m:B,s:U,ms:K,Q:x}[pe]||String(pe||"").toLowerCase().replace(/s$/,"")},u:function(pe){return pe===void 0}},W="en",G={};G[W]=se;var oe=function(pe){return pe instanceof Le},J=function(pe,Z,ae){var ee;if(!pe)return W;if(typeof pe=="string")G[pe]&&(ee=pe),Z&&(G[pe]=Z,ee=pe);else{var he=pe.name;G[he]=pe,ee=he}return!ae&&ee&&(W=ee),ee||!ae&&W},Ce=function(pe,Z){if(oe(pe))return pe.clone();var ae=typeof Z=="object"?Z:{};return ae.date=pe,ae.args=arguments,new Le(ae)},_e=te;_e.l=J,_e.i=oe,_e.w=function(pe,Z){return Ce(pe,{locale:Z.$L,utc:Z.$u,x:Z.$x,$offset:Z.$offset})};var Le=function(){function pe(ae){this.$L=J(ae.locale,null,!0),this.parse(ae)}var Z=pe.prototype;return Z.parse=function(ae){this.$d=function(ee){var he=ee.date,Pe=ee.utc;if(he===null)return new Date(NaN);if(_e.u(he))return new Date;if(he instanceof Date)return new Date(he);if(typeof he=="string"&&!/Z$/i.test(he)){var Ne=he.match(H);if(Ne){var ke=Ne[2]-1||0,Re=(Ne[7]||"0").substring(0,3);return Pe?new Date(Date.UTC(Ne[1],ke,Ne[3]||1,Ne[4]||0,Ne[5]||0,Ne[6]||0,Re)):new Date(Ne[1],ke,Ne[3]||1,Ne[4]||0,Ne[5]||0,Ne[6]||0,Re)}}return new Date(he)}(ae),this.$x=ae.x||{},this.init()},Z.init=function(){var ae=this.$d;this.$y=ae.getFullYear(),this.$M=ae.getMonth(),this.$D=ae.getDate(),this.$W=ae.getDay(),this.$H=ae.getHours(),this.$m=ae.getMinutes(),this.$s=ae.getSeconds(),this.$ms=ae.getMilliseconds()},Z.$utils=function(){return _e},Z.isValid=function(){return this.$d.toString()!=="Invalid Date"},Z.isSame=function(ae,ee){var he=Ce(ae);return this.startOf(ee)<=he&&he<=this.endOf(ee)},Z.isAfter=function(ae,ee){return Ce(ae)<this.startOf(ee)},Z.isBefore=function(ae,ee){return this.endOf(ee)<Ce(ae)},Z.$g=function(ae,ee,he){return _e.u(ae)?this[ee]:this.set(he,ae)},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this.$d.getTime()},Z.startOf=function(ae,ee){var he=this,Pe=!!_e.u(ee)||ee,Ne=_e.p(ae),ke=function(jt,ai){var Jt=_e.w(he.$u?Date.UTC(he.$y,ai,jt):new Date(he.$y,ai,jt),he);return Pe?Jt:Jt.endOf(Q)},Re=function(jt,ai){return _e.w(he.toDate()[jt].apply(he.toDate("s"),(Pe?[0,0,0,0]:[23,59,59,999]).slice(ai)),he)},tt=this.$W,Ze=this.$M,bt=this.$D,_t="set"+(this.$u?"UTC":"");switch(Ne){case L:return Pe?ke(1,0):ke(31,11);case q:return Pe?ke(1,Ze):ke(0,Ze+1);case M:var zt=this.$locale().weekStart||0,di=(tt<zt?tt+7:tt)-zt;return ke(Pe?bt-di:bt+(6-di),Ze);case Q:case D:return Re(_t+"Hours",0);case re:return Re(_t+"Minutes",1);case B:return Re(_t+"Seconds",2);case U:return Re(_t+"Milliseconds",3);default:return this.clone()}},Z.endOf=function(ae){return this.startOf(ae,!1)},Z.$set=function(ae,ee){var he,Pe=_e.p(ae),Ne="set"+(this.$u?"UTC":""),ke=(he={},he[Q]=Ne+"Date",he[D]=Ne+"Date",he[q]=Ne+"Month",he[L]=Ne+"FullYear",he[re]=Ne+"Hours",he[B]=Ne+"Minutes",he[U]=Ne+"Seconds",he[K]=Ne+"Milliseconds",he)[Pe],Re=Pe===Q?this.$D+(ee-this.$W):ee;if(Pe===q||Pe===L){var tt=this.clone().set(D,1);tt.$d[ke](Re),tt.init(),this.$d=tt.set(D,Math.min(this.$D,tt.daysInMonth())).$d}else ke&&this.$d[ke](Re);return this.init(),this},Z.set=function(ae,ee){return this.clone().$set(ae,ee)},Z.get=function(ae){return this[_e.p(ae)]()},Z.add=function(ae,ee){var he,Pe=this;ae=Number(ae);var Ne=_e.p(ee),ke=function(Ze){var bt=Ce(Pe);return _e.w(bt.date(bt.date()+Math.round(Ze*ae)),Pe)};if(Ne===q)return this.set(q,this.$M+ae);if(Ne===L)return this.set(L,this.$y+ae);if(Ne===Q)return ke(1);if(Ne===M)return ke(7);var Re=(he={},he[B]=6e4,he[re]=36e5,he[U]=1e3,he)[Ne]||1,tt=this.$d.getTime()+ae*Re;return _e.w(tt,this)},Z.subtract=function(ae,ee){return this.add(-1*ae,ee)},Z.format=function(ae){var ee=this;if(!this.isValid())return"Invalid Date";var he=ae||"YYYY-MM-DDTHH:mm:ssZ",Pe=_e.z(this),Ne=this.$locale(),ke=this.$H,Re=this.$m,tt=this.$M,Ze=Ne.weekdays,bt=Ne.months,_t=function(ai,Jt,ui,tr){return ai&&(ai[Jt]||ai(ee,he))||ui[Jt].substr(0,tr)},zt=function(ai){return _e.s(ke%12||12,ai,"0")},di=Ne.meridiem||function(ai,Jt,ui){var tr=ai<12?"AM":"PM";return ui?tr.toLowerCase():tr},jt={YY:String(this.$y).slice(-2),YYYY:this.$y,M:tt+1,MM:_e.s(tt+1,2,"0"),MMM:_t(Ne.monthsShort,tt,bt,3),MMMM:_t(bt,tt),D:this.$D,DD:_e.s(this.$D,2,"0"),d:String(this.$W),dd:_t(Ne.weekdaysMin,this.$W,Ze,2),ddd:_t(Ne.weekdaysShort,this.$W,Ze,3),dddd:Ze[this.$W],H:String(ke),HH:_e.s(ke,2,"0"),h:zt(1),hh:zt(2),a:di(ke,Re,!0),A:di(ke,Re,!1),m:String(Re),mm:_e.s(Re,2,"0"),s:String(this.$s),ss:_e.s(this.$s,2,"0"),SSS:_e.s(this.$ms,3,"0"),Z:Pe};return he.replace($,function(ai,Jt){return Jt||jt[ai]||Pe.replace(":","")})},Z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Z.diff=function(ae,ee,he){var Pe,Ne=_e.p(ee),ke=Ce(ae),Re=6e4*(ke.utcOffset()-this.utcOffset()),tt=this-ke,Ze=_e.m(this,ke);return Ze=(Pe={},Pe[L]=Ze/12,Pe[q]=Ze,Pe[x]=Ze/3,Pe[M]=(tt-Re)/6048e5,Pe[Q]=(tt-Re)/864e5,Pe[re]=tt/36e5,Pe[B]=tt/6e4,Pe[U]=tt/1e3,Pe)[Ne]||tt,he?Ze:_e.a(Ze)},Z.daysInMonth=function(){return this.endOf(q).$D},Z.$locale=function(){return G[this.$L]},Z.locale=function(ae,ee){if(!ae)return this.$L;var he=this.clone(),Pe=J(ae,ee,!0);return Pe&&(he.$L=Pe),he},Z.clone=function(){return _e.w(this.$d,this)},Z.toDate=function(){return new Date(this.valueOf())},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toISOString=function(){return this.$d.toISOString()},Z.toString=function(){return this.$d.toUTCString()},pe}(),fe=Le.prototype;return Ce.prototype=fe,[["$ms",K],["$s",U],["$m",B],["$H",re],["$W",Q],["$M",q],["$y",L],["$D",D]].forEach(function(pe){fe[pe[1]]=function(Z){return this.$g(Z,pe[0],pe[1])}}),Ce.extend=function(pe,Z){return pe.$i||(pe(Z,Le,Ce),pe.$i=!0),Ce},Ce.locale=J,Ce.isDayjs=oe,Ce.unix=function(pe){return Ce(1e3*pe)},Ce.en=G[W],Ce.Ls=G,Ce.p={},Ce})},4110:function(d){(function(K,U){d.exports=U()})(this,function(){"use strict";return function(K,U,B){K=K||{};var re=U.prototype,Q={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function M(x,L,D,H){return re.fromToBase(x,L,D,H)}B.en.relativeTime=Q,re.fromToBase=function(x,L,D,H,$){for(var se,I,te,W=D.$locale().relativeTime||Q,G=K.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],oe=G.length,J=0;J<oe;J+=1){var Ce=G[J];Ce.d&&(se=H?B(x).diff(D,Ce.d,!0):D.diff(x,Ce.d,!0));var _e=(K.rounding||Math.round)(Math.abs(se));if(te=se>0,_e<=Ce.r||!Ce.r){_e<=1&&J>0&&(Ce=G[J-1]);var Le=W[Ce.l];$&&(_e=$(""+_e)),I=typeof Le=="string"?Le.replace("%d",_e):Le(_e,L,Ce.l,te);break}}if(L)return I;var fe=te?W.future:W.past;return typeof fe=="function"?fe(I):fe.replace("%s",I)},re.to=function(x,L){return M(x,L,this,!0)},re.from=function(x,L){return M(x,L,this)};var q=function(x){return x.$u?B.utc():B()};re.toNow=function(x){return this.to(q(this),x)},re.fromNow=function(x){return this.from(q(this),x)}}})},660:function(d){(function(K,U){d.exports=U()})(this,function(){"use strict";return function(K,U,B){B.updateLocale=function(re,Q){var M=B.Ls[re];if(M)return(Q?Object.keys(Q):[]).forEach(function(q){M[q]=Q[q]}),M}}})},1227:(d,K,U)=>{K.formatArgs=re,K.save=Q,K.load=M,K.useColors=B,K.storage=q(),K.destroy=(()=>{let L=!1;return()=>{L||(L=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),K.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function B(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function re(L){if(L[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+L[0]+(this.useColors?"%c ":" ")+"+"+d.exports.humanize(this.diff),!this.useColors)return;const D="color: "+this.color;L.splice(1,0,D,"color: inherit");let H=0,$=0;L[0].replace(/%[a-zA-Z%]/g,se=>{se!=="%%"&&(H++,se==="%c"&&($=H))}),L.splice($,0,D)}K.log=console.debug||console.log||(()=>{});function Q(L){try{L?K.storage.setItem("debug",L):K.storage.removeItem("debug")}catch(D){}}function M(){let L;try{L=K.storage.getItem("debug")}catch(D){}return!L&&typeof process!="undefined"&&"env"in process&&(L=process.env.DEBUG),L}function q(){try{return localStorage}catch(L){}}d.exports=U(2447)(K);const{formatters:x}=d.exports;x.j=function(L){try{return JSON.stringify(L)}catch(D){return"[UnexpectedJSONParseError]: "+D.message}}},2447:(d,K,U)=>{function B(re){M.debug=M,M.default=M,M.coerce=$,M.disable=L,M.enable=x,M.enabled=D,M.humanize=U(7824),M.destroy=se,Object.keys(re).forEach(I=>{M[I]=re[I]}),M.names=[],M.skips=[],M.formatters={};function Q(I){let te=0;for(let W=0;W<I.length;W++)te=(te<<5)-te+I.charCodeAt(W),te|=0;return M.colors[Math.abs(te)%M.colors.length]}M.selectColor=Q;function M(I){let te,W=null;function G(...oe){if(!G.enabled)return;const J=G,Ce=Number(new Date),_e=Ce-(te||Ce);J.diff=_e,J.prev=te,J.curr=Ce,te=Ce,oe[0]=M.coerce(oe[0]),typeof oe[0]!="string"&&oe.unshift("%O");let Le=0;oe[0]=oe[0].replace(/%([a-zA-Z%])/g,(pe,Z)=>{if(pe==="%%")return"%";Le++;const ae=M.formatters[Z];if(typeof ae=="function"){const ee=oe[Le];pe=ae.call(J,ee),oe.splice(Le,1),Le--}return pe}),M.formatArgs.call(J,oe),(J.log||M.log).apply(J,oe)}return G.namespace=I,G.useColors=M.useColors(),G.color=M.selectColor(I),G.extend=q,G.destroy=M.destroy,Object.defineProperty(G,"enabled",{enumerable:!0,configurable:!1,get:()=>W===null?M.enabled(I):W,set:oe=>{W=oe}}),typeof M.init=="function"&&M.init(G),G}function q(I,te){const W=M(this.namespace+(typeof te=="undefined"?":":te)+I);return W.log=this.log,W}function x(I){M.save(I),M.names=[],M.skips=[];let te;const W=(typeof I=="string"?I:"").split(/[\s,]+/),G=W.length;for(te=0;te<G;te++)!W[te]||(I=W[te].replace(/\*/g,".*?"),I[0]==="-"?M.skips.push(new RegExp("^"+I.substr(1)+"$")):M.names.push(new RegExp("^"+I+"$")))}function L(){const I=[...M.names.map(H),...M.skips.map(H).map(te=>"-"+te)].join(",");return M.enable(""),I}function D(I){if(I[I.length-1]==="*")return!0;let te,W;for(te=0,W=M.skips.length;te<W;te++)if(M.skips[te].test(I))return!1;for(te=0,W=M.names.length;te<W;te++)if(M.names[te].test(I))return!0;return!1}function H(I){return I.toString().substring(2,I.toString().length-2).replace(/\.\*\?$/,"*")}function $(I){return I instanceof Error?I.stack||I.message:I}function se(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return M.enable(M.load()),M}d.exports=B},5158:(d,K,U)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?d.exports=U(1227):d.exports=U(39)},39:(d,K,U)=>{const B=U(6224),re=U(3837);K.init=H,K.log=x,K.formatArgs=M,K.save=L,K.load=D,K.useColors=Q,K.destroy=re.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),K.colors=[6,2,3,4,5,1];try{const se=U(2130);se&&(se.stderr||se).level>=2&&(K.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(se){}K.inspectOpts=Object.keys(process.env).filter(se=>/^debug_/i.test(se)).reduce((se,I)=>{const te=I.substring(6).toLowerCase().replace(/_([a-z])/g,(G,oe)=>oe.toUpperCase());let W=process.env[I];return/^(yes|on|true|enabled)$/i.test(W)?W=!0:/^(no|off|false|disabled)$/i.test(W)?W=!1:W==="null"?W=null:W=Number(W),se[te]=W,se},{});function Q(){return"colors"in K.inspectOpts?Boolean(K.inspectOpts.colors):B.isatty(process.stderr.fd)}function M(se){const{namespace:I,useColors:te}=this;if(te){const W=this.color,G="[3"+(W<8?W:"8;5;"+W),oe=` ${G};1m${I} [0m`;se[0]=oe+se[0].split(`
|
||
`).join(`
|
||
`+oe),se.push(G+"m+"+d.exports.humanize(this.diff)+"[0m")}else se[0]=q()+I+" "+se[0]}function q(){return K.inspectOpts.hideDate?"":new Date().toISOString()+" "}function x(...se){return process.stderr.write(re.format(...se)+`
|
||
`)}function L(se){se?process.env.DEBUG=se:delete process.env.DEBUG}function D(){return process.env.DEBUG}function H(se){se.inspectOpts={};const I=Object.keys(K.inspectOpts);for(let te=0;te<I.length;te++)se.inspectOpts[I[te]]=K.inspectOpts[I[te]]}d.exports=U(2447)(K);const{formatters:$}=d.exports;$.o=function(se){return this.inspectOpts.colors=this.useColors,re.inspect(se,this.inspectOpts).split(`
|
||
`).map(I=>I.trim()).join(" ")},$.O=function(se){return this.inspectOpts.colors=this.useColors,re.inspect(se,this.inspectOpts)}},4063:d=>{"use strict";d.exports=function K(U,B){if(U===B)return!0;if(U&&B&&typeof U=="object"&&typeof B=="object"){if(U.constructor!==B.constructor)return!1;var re,Q,M;if(Array.isArray(U)){if(re=U.length,re!=B.length)return!1;for(Q=re;Q--!=0;)if(!K(U[Q],B[Q]))return!1;return!0}if(U.constructor===RegExp)return U.source===B.source&&U.flags===B.flags;if(U.valueOf!==Object.prototype.valueOf)return U.valueOf()===B.valueOf();if(U.toString!==Object.prototype.toString)return U.toString()===B.toString();if(M=Object.keys(U),re=M.length,re!==Object.keys(B).length)return!1;for(Q=re;Q--!=0;)if(!Object.prototype.hasOwnProperty.call(B,M[Q]))return!1;for(Q=re;Q--!=0;){var q=M[Q];if(!K(U[q],B[q]))return!1}return!0}return U!==U&&B!==B}},5035:d=>{"use strict";d.exports=function(K,U){U||(U={}),typeof U=="function"&&(U={cmp:U});var B=typeof U.cycles=="boolean"?U.cycles:!1,re=U.cmp&&function(M){return function(q){return function(x,L){var D={key:x,value:q[x]},H={key:L,value:q[L]};return M(D,H)}}}(U.cmp),Q=[];return function M(q){if(q&&q.toJSON&&typeof q.toJSON=="function"&&(q=q.toJSON()),q!==void 0){if(typeof q=="number")return isFinite(q)?""+q:"null";if(typeof q!="object")return JSON.stringify(q);var x,L;if(Array.isArray(q)){for(L="[",x=0;x<q.length;x++)x&&(L+=","),L+=M(q[x])||"null";return L+"]"}if(q===null)return"null";if(Q.indexOf(q)!==-1){if(B)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var D=Q.push(q)-1,H=Object.keys(q).sort(re&&re(q));for(L="",x=0;x<H.length;x++){var $=H[x],se=M(q[$]);!se||(L&&(L+=","),L+=JSON.stringify($)+":"+se)}return Q.splice(D,1),"{"+L+"}"}}(K)}},2261:(d,K,U)=>{var B;d.exports=function(){if(!B){try{B=U(5158)("follow-redirects")}catch(re){}typeof B!="function"&&(B=function(){})}B.apply(null,arguments)}},938:(d,K,U)=>{var B=U(7310),re=B.URL,Q=U(3685),M=U(5687),q=U(2781).Writable,x=U(9491),L=U(2261),D=["abort","aborted","connect","error","socket","timeout"],H=Object.create(null);D.forEach(function(pe){H[pe]=function(Z,ae,ee){this._redirectable.emit(pe,Z,ae,ee)}});var $=_e("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),se=_e("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),I=_e("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),te=_e("ERR_STREAM_WRITE_AFTER_END","write after end");function W(pe,Z){q.call(this),this._sanitizeOptions(pe),this._options=pe,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],Z&&this.on("response",Z);var ae=this;this._onNativeResponse=function(ee){ae._processResponse(ee)},this._performRequest()}W.prototype=Object.create(q.prototype),W.prototype.abort=function(){Le(this._currentRequest),this.emit("abort")},W.prototype.write=function(pe,Z,ae){if(this._ending)throw new te;if(!(typeof pe=="string"||typeof pe=="object"&&"length"in pe))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof Z=="function"&&(ae=Z,Z=null),pe.length===0){ae&&ae();return}this._requestBodyLength+pe.length<=this._options.maxBodyLength?(this._requestBodyLength+=pe.length,this._requestBodyBuffers.push({data:pe,encoding:Z}),this._currentRequest.write(pe,Z,ae)):(this.emit("error",new I),this.abort())},W.prototype.end=function(pe,Z,ae){if(typeof pe=="function"?(ae=pe,pe=Z=null):typeof Z=="function"&&(ae=Z,Z=null),!pe)this._ended=this._ending=!0,this._currentRequest.end(null,null,ae);else{var ee=this,he=this._currentRequest;this.write(pe,Z,function(){ee._ended=!0,he.end(null,null,ae)}),this._ending=!0}},W.prototype.setHeader=function(pe,Z){this._options.headers[pe]=Z,this._currentRequest.setHeader(pe,Z)},W.prototype.removeHeader=function(pe){delete this._options.headers[pe],this._currentRequest.removeHeader(pe)},W.prototype.setTimeout=function(pe,Z){var ae=this;function ee(Ne){Ne.setTimeout(pe),Ne.removeListener("timeout",Ne.destroy),Ne.addListener("timeout",Ne.destroy)}function he(Ne){ae._timeout&&clearTimeout(ae._timeout),ae._timeout=setTimeout(function(){ae.emit("timeout"),Pe()},pe),ee(Ne)}function Pe(){ae._timeout&&(clearTimeout(ae._timeout),ae._timeout=null),ae.removeListener("abort",Pe),ae.removeListener("error",Pe),ae.removeListener("response",Pe),Z&&ae.removeListener("timeout",Z),ae.socket||ae._currentRequest.removeListener("socket",he)}return Z&&this.on("timeout",Z),this.socket?he(this.socket):this._currentRequest.once("socket",he),this.on("socket",ee),this.on("abort",Pe),this.on("error",Pe),this.on("response",Pe),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(pe){W.prototype[pe]=function(Z,ae){return this._currentRequest[pe](Z,ae)}}),["aborted","connection","socket"].forEach(function(pe){Object.defineProperty(W.prototype,pe,{get:function(){return this._currentRequest[pe]}})}),W.prototype._sanitizeOptions=function(pe){if(pe.headers||(pe.headers={}),pe.host&&(pe.hostname||(pe.hostname=pe.host),delete pe.host),!pe.pathname&&pe.path){var Z=pe.path.indexOf("?");Z<0?pe.pathname=pe.path:(pe.pathname=pe.path.substring(0,Z),pe.search=pe.path.substring(Z))}},W.prototype._performRequest=function(){var pe=this._options.protocol,Z=this._options.nativeProtocols[pe];if(!Z){this.emit("error",new TypeError("Unsupported protocol "+pe));return}if(this._options.agents){var ae=pe.substr(0,pe.length-1);this._options.agent=this._options.agents[ae]}var ee=this._currentRequest=Z.request(this._options,this._onNativeResponse);this._currentUrl=B.format(this._options),ee._redirectable=this;for(var he=0;he<D.length;he++)ee.on(D[he],H[D[he]]);if(this._isRedirect){var Pe=0,Ne=this,ke=this._requestBodyBuffers;(function Re(tt){if(ee===Ne._currentRequest)if(tt)Ne.emit("error",tt);else if(Pe<ke.length){var Ze=ke[Pe++];ee.finished||ee.write(Ze.data,Ze.encoding,Re)}else Ne._ended&&ee.end()})()}},W.prototype._processResponse=function(pe){var Z=pe.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:pe.headers,statusCode:Z});var ae=pe.headers.location;if(ae&&this._options.followRedirects!==!1&&Z>=300&&Z<400){if(Le(this._currentRequest),pe.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new se);return}((Z===301||Z===302)&&this._options.method==="POST"||Z===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Ce(/^content-/i,this._options.headers));var ee=Ce(/^host$/i,this._options.headers),he=B.parse(this._currentUrl),Pe=ee||he.host,Ne=/^\w+:/.test(ae)?this._currentUrl:B.format(Object.assign(he,{host:Pe})),ke;try{ke=B.resolve(Ne,ae)}catch(Ze){this.emit("error",new $(Ze));return}L("redirecting to",ke),this._isRedirect=!0;var Re=B.parse(ke);if(Object.assign(this._options,Re),(Re.protocol!==he.protocol||!fe(Re.host,Pe))&&Ce(/^(?:authorization|cookie)$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var tt={headers:pe.headers};try{this._options.beforeRedirect.call(null,this._options,tt)}catch(Ze){this.emit("error",Ze);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(Ze){this.emit("error",new $(Ze))}}else pe.responseUrl=this._currentUrl,pe.redirects=this._redirects,this.emit("response",pe),this._requestBodyBuffers=[]};function G(pe){var Z={maxRedirects:21,maxBodyLength:10*1024*1024},ae={};return Object.keys(pe).forEach(function(ee){var he=ee+":",Pe=ae[he]=pe[ee],Ne=Z[ee]=Object.create(Pe);function ke(tt,Ze,bt){if(typeof tt=="string"){var _t=tt;try{tt=J(new re(_t))}catch(zt){tt=B.parse(_t)}}else re&&tt instanceof re?tt=J(tt):(bt=Ze,Ze=tt,tt={protocol:he});return typeof Ze=="function"&&(bt=Ze,Ze=null),Ze=Object.assign({maxRedirects:Z.maxRedirects,maxBodyLength:Z.maxBodyLength},tt,Ze),Ze.nativeProtocols=ae,x.equal(Ze.protocol,he,"protocol mismatch"),L("options",Ze),new W(Ze,bt)}function Re(tt,Ze,bt){var _t=Ne.request(tt,Ze,bt);return _t.end(),_t}Object.defineProperties(Ne,{request:{value:ke,configurable:!0,enumerable:!0,writable:!0},get:{value:Re,configurable:!0,enumerable:!0,writable:!0}})}),Z}function oe(){}function J(pe){var Z={protocol:pe.protocol,hostname:pe.hostname.startsWith("[")?pe.hostname.slice(1,-1):pe.hostname,hash:pe.hash,search:pe.search,pathname:pe.pathname,path:pe.pathname+pe.search,href:pe.href};return pe.port!==""&&(Z.port=Number(pe.port)),Z}function Ce(pe,Z){var ae;for(var ee in Z)pe.test(ee)&&(ae=Z[ee],delete Z[ee]);return ae===null||typeof ae=="undefined"?void 0:String(ae).trim()}function _e(pe,Z){function ae(ee){Error.captureStackTrace(this,this.constructor),ee?(this.message=Z+": "+ee.message,this.cause=ee):this.message=Z}return ae.prototype=new Error,ae.prototype.constructor=ae,ae.prototype.name="Error ["+pe+"]",ae.prototype.code=pe,ae}function Le(pe){for(var Z=0;Z<D.length;Z++)pe.removeListener(D[Z],H[D[Z]]);pe.on("error",oe),pe.abort()}function fe(pe,Z){if(pe===Z)return!0;const ae=pe.length-Z.length-1;return ae>0&&pe[ae]==="."&&pe.endsWith(Z)}d.exports=G({http:Q,https:M}),d.exports.wrap=G},9967:d=>{var K={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Merged"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MergedEvent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"actor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mergeRef"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"commit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"oid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"commitUrl"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"HeadRefDeleted"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HeadRefDeletedEvent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"actor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"headRefName"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Ref"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Ref"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"owner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"target"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"oid"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Comment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"IssueComment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authorAssociation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bodyHTML"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewerCanUpdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewerCanReact"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewerCanDelete"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Commit"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PullRequestCommit"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"commit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"committer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"oid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authoredDate"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AssignedEvent"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AssignedEvent"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"actor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Review"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PullRequestReview"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"authorAssociation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bodyHTML"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"submittedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Reactable"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Reactable"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reactionGroups"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewerHasReacted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"users"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReviewThread"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PullRequestReviewThread"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isResolved"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewerCanResolve"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewerCanUnresolve"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"diffSide"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"line"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalLine"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isOutdated"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"comments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReviewComment"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TimelineEvents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"number"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"last"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"IntValue",value:"150"},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"number"},value:{kind:"Variable",name:{kind:"Name",value:"number"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timelineItems"},arguments:[{kind:"Argument",name:{kind:"Name",value:"last"},value:{kind:"Variable",name:{kind:"Name",value:"last"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"Merged"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"Comment"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"Review"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"Commit"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"AssignedEvent"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"HeadRefDeleted"},directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"rateLimit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remaining"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resetAt"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IssueTimelineEvents"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"number"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"last"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"IntValue",value:"150"},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"pullRequest"},name:{kind:"Name",value:"issue"},arguments:[{kind:"Argument",name:{kind:"Name",value:"number"},value:{kind:"Variable",name:{kind:"Name",value:"number"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timelineItems"},arguments:[{kind:"Argument",name:{kind:"Name",value:"last"},value:{kind:"Variable",name:{kind:"Name",value:"last"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"Comment"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"AssignedEvent"},directives:[]}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReviewComment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PullRequestReviewComment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalPosition"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bodyHTML"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"diffHunk"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pullRequestReview"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"commit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"oid"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"replyTo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalCommit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"oid"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"reactionGroups"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewerHasReacted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"users"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"viewerCanUpdate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewerCanDelete"},arguments:[],directives:[]}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPendingReviewId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pullRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"author"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"pullRequestId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PullRequest"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reviews"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1"}},{kind:"Argument",name:{kind:"Name",value:"author"},value:{kind:"Variable",name:{kind:"Name",value:"author"}}},{kind:"Argument",name:{kind:"Name",value:"states"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"PENDING"}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"rateLimit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remaining"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resetAt"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PullRequestComments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"number"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},defaultValue:{kind:"IntValue",value:"100"},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"number"},value:{kind:"Variable",name:{kind:"Name",value:"number"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reviewThreads"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isResolved"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewerCanResolve"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewerCanUnresolve"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"diffSide"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"line"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalLine"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isOutdated"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"comments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReviewComment"},directives:[]}]}}]}}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PullRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"number"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"number"},value:{kind:"Variable",name:{kind:"Name",value:"number"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bodyHTML"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"headRef"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Ref"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"headRefName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"headRefOid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"headRepository"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"owner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"baseRef"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Ref"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"baseRefName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"baseRefOid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"baseRepository"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"owner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"merged"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mergeable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDraft"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"milestone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueOn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"assignees"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"suggestedReviewers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isAuthor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCommenter"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reviewer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"rateLimit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remaining"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resetAt"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PullRequestFiles"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"number"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"number"},value:{kind:"Variable",name:{kind:"Name",value:"number"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"viewerViewedState"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Issue"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"number"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"pullRequest"},name:{kind:"Name",value:"issue"},arguments:[{kind:"Argument",name:{kind:"Name",value:"number"},value:{kind:"Variable",name:{kind:"Name",value:"number"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bodyHTML"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IssueWithComments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"number"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"pullRequest"},name:{kind:"Name",value:"issue"},arguments:[{kind:"Argument",name:{kind:"Name",value:"number"},value:{kind:"Variable",name:{kind:"Name",value:"number"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bodyHTML"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"comments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"login"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"login"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"IntValue",value:"50"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"bio"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"company"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"location"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contributionsCollection"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"commitContributionsByRepository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"maxRepositories"},value:{kind:"IntValue",value:"50"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contributions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"occurredAt"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nameWithOwner"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PullRequestMergeability"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"number"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"number"},value:{kind:"Variable",name:{kind:"Name",value:"number"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mergeable"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"rateLimit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remaining"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resetAt"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PullRequestState"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"number"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"number"},value:{kind:"Variable",name:{kind:"Name",value:"number"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddComment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddPullRequestReviewCommentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addPullRequestReviewComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"comment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReviewComment"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddReviewThread"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddPullRequestReviewThreadInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addPullRequestReviewThread"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"thread"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReviewThread"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"EditComment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePullRequestReviewCommentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatePullRequestReviewComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequestReviewComment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReviewComment"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReadyForReview"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MarkPullRequestReadyForReviewInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"markPullRequestReadyForReview"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequest"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isDraft"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StartReview"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddPullRequestReviewInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addPullRequestReview"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequestReview"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SubmitReview"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"event"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PullRequestReviewEvent"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"body"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitPullRequestReview"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"event"},value:{kind:"Variable",name:{kind:"Name",value:"event"}}},{kind:"ObjectField",name:{kind:"Name",value:"pullRequestReviewId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"ObjectField",name:{kind:"Name",value:"body"},value:{kind:"Variable",name:{kind:"Name",value:"body"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequestReview"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"comments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReviewComment"},directives:[]}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"Review"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteReview"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeletePullRequestReviewInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletePullRequestReview"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequestReview"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"comments"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReviewComment"},directives:[]}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddReaction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddReactionInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addReaction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reaction"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"subject"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Reactable"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteReaction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RemoveReactionInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removeReaction"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reaction"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"subject"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Reactable"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePullRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePullRequestInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatePullRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequest"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bodyHTML"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddIssueComment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddCommentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"commentEdge"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Comment"},directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"EditIssueComment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateIssueCommentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateIssueComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"issueComment"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Comment"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMentionableUsers"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mentionableUsers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"rateLimit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remaining"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resetAt"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAssignableUsers"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"assignableUsers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"rateLimit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cost"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remaining"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resetAt"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IssuesWithoutMilestone"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"assignee"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"issues"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}},{kind:"Argument",name:{kind:"Name",value:"states"},value:{kind:"EnumValue",value:"OPEN"}},{kind:"Argument",name:{kind:"Name",value:"filterBy"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"assignee"},value:{kind:"Variable",name:{kind:"Name",value:"assignee"}}},{kind:"ObjectField",name:{kind:"Name",value:"milestone"},value:{kind:"NullValue"}}]}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"direction"},value:{kind:"EnumValue",value:"DESC"}},{kind:"ObjectField",name:{kind:"Name",value:"field"},value:{kind:"EnumValue",value:"UPDATED_AT"}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Issue"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bodyHTML"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assignees"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"IntValue",value:"50"}}],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"milestone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueOn"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MaxIssue"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"issues"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"direction"},value:{kind:"EnumValue",value:"DESC"}},{kind:"ObjectField",name:{kind:"Name",value:"field"},value:{kind:"EnumValue",value:"CREATED_AT"}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Issue"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMilestones"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"assignee"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"milestones"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"12"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"direction"},value:{kind:"EnumValue",value:"DESC"}},{kind:"ObjectField",name:{kind:"Name",value:"field"},value:{kind:"EnumValue",value:"DUE_DATE"}}]}},{kind:"Argument",name:{kind:"Name",value:"states"},value:{kind:"EnumValue",value:"OPEN"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dueOn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"issues"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}},{kind:"Argument",name:{kind:"Name",value:"filterBy"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"assignee"},value:{kind:"Variable",name:{kind:"Name",value:"assignee"}}}]}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"direction"},value:{kind:"EnumValue",value:"DESC"}},{kind:"ObjectField",name:{kind:"Name",value:"field"},value:{kind:"EnumValue",value:"UPDATED_AT"}}]}},{kind:"Argument",name:{kind:"Name",value:"states"},value:{kind:"EnumValue",value:"OPEN"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Issue"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bodyHTML"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assignees"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"IntValue",value:"50"}}],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"milestone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueOn"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Issues"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"search"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"ISSUE"}},{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"issueCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Issue"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"body"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bodyHTML"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assignees"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"IntValue",value:"50"}}],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Organization"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"databaseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"milestone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dueOn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"owner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetViewerPermission"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewerPermission"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRepositoryForkDetails"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isFork"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"owner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetChecks"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"number"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"repository"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"number"},value:{kind:"Variable",name:{kind:"Name",value:"number"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"commits"},arguments:[{kind:"Argument",name:{kind:"Name",value:"last"},value:{kind:"IntValue",value:"1"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"commit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"statusCheckRollup"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contexts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"100"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StatusContext"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"context"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CheckRun"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"conclusion"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"detailsUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resourcePath"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checkSuite"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"app"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"logoUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ResolveReviewThread"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ResolveReviewThreadInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"resolveReviewThread"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"thread"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReviewThread"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UnresolveReviewThread"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UnresolveReviewThreadInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unresolveReviewThread"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"thread"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReviewThread"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"MarkFileAsViewed"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MarkFileAsViewedInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"markFileAsViewed"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequest"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UnmarkFileAsViewed"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UnmarkFileAsViewedInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unmarkFileAsViewed"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pullRequest"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:14578}};K.loc.source={body:`# /*---------------------------------------------------------------------------------------------
|
||
# * Copyright (c) Microsoft Corporation. All rights reserved.
|
||
# * Licensed under the MIT License. See License.txt in the project root for license information.
|
||
# *--------------------------------------------------------------------------------------------*/
|
||
|
||
fragment Merged on MergedEvent {
|
||
id
|
||
actor {
|
||
login
|
||
avatarUrl
|
||
url
|
||
}
|
||
createdAt
|
||
mergeRef {
|
||
name
|
||
}
|
||
commit {
|
||
oid
|
||
commitUrl
|
||
}
|
||
url
|
||
}
|
||
|
||
fragment HeadRefDeleted on HeadRefDeletedEvent {
|
||
id
|
||
actor {
|
||
login
|
||
avatarUrl
|
||
url
|
||
}
|
||
createdAt
|
||
headRefName
|
||
}
|
||
|
||
fragment Ref on Ref {
|
||
name
|
||
repository {
|
||
owner {
|
||
login
|
||
}
|
||
url
|
||
}
|
||
target {
|
||
oid
|
||
}
|
||
}
|
||
|
||
fragment Comment on IssueComment {
|
||
id
|
||
databaseId
|
||
authorAssociation
|
||
author {
|
||
login
|
||
avatarUrl
|
||
url
|
||
... on User {
|
||
email
|
||
}
|
||
... on Organization {
|
||
email
|
||
}
|
||
}
|
||
url
|
||
body
|
||
bodyHTML
|
||
updatedAt
|
||
createdAt
|
||
viewerCanUpdate
|
||
viewerCanReact
|
||
viewerCanDelete
|
||
}
|
||
|
||
fragment Commit on PullRequestCommit {
|
||
id
|
||
commit {
|
||
author {
|
||
user {
|
||
login
|
||
avatarUrl
|
||
url
|
||
email
|
||
}
|
||
}
|
||
committer {
|
||
avatarUrl
|
||
name
|
||
}
|
||
oid
|
||
message
|
||
authoredDate
|
||
}
|
||
url
|
||
}
|
||
|
||
fragment AssignedEvent on AssignedEvent {
|
||
actor {
|
||
login
|
||
avatarUrl
|
||
url
|
||
}
|
||
user {
|
||
login
|
||
avatarUrl
|
||
url
|
||
}
|
||
}
|
||
|
||
fragment Review on PullRequestReview {
|
||
id
|
||
databaseId
|
||
authorAssociation
|
||
url
|
||
author {
|
||
login
|
||
avatarUrl
|
||
url
|
||
... on User {
|
||
email
|
||
}
|
||
... on Organization {
|
||
email
|
||
}
|
||
}
|
||
state
|
||
body
|
||
bodyHTML
|
||
submittedAt
|
||
updatedAt
|
||
createdAt
|
||
}
|
||
|
||
fragment Reactable on Reactable {
|
||
reactionGroups {
|
||
content
|
||
viewerHasReacted
|
||
users {
|
||
totalCount
|
||
}
|
||
}
|
||
}
|
||
|
||
fragment ReviewThread on PullRequestReviewThread {
|
||
id
|
||
isResolved
|
||
viewerCanResolve
|
||
viewerCanUnresolve
|
||
path
|
||
diffSide
|
||
line
|
||
originalLine
|
||
isOutdated
|
||
comments(first: 100) {
|
||
nodes {
|
||
...ReviewComment
|
||
}
|
||
}
|
||
}
|
||
|
||
query TimelineEvents($owner: String!, $name: String!, $number: Int!, $last: Int = 150) {
|
||
repository(owner: $owner, name: $name) {
|
||
pullRequest(number: $number) {
|
||
timelineItems(last: $last) {
|
||
nodes {
|
||
__typename
|
||
...Merged
|
||
...Comment
|
||
...Review
|
||
...Commit
|
||
...AssignedEvent
|
||
...HeadRefDeleted
|
||
}
|
||
}
|
||
}
|
||
}
|
||
rateLimit {
|
||
limit
|
||
cost
|
||
remaining
|
||
resetAt
|
||
}
|
||
}
|
||
|
||
query IssueTimelineEvents($owner: String!, $name: String!, $number: Int!, $last: Int = 150) {
|
||
repository(owner: $owner, name: $name) {
|
||
pullRequest: issue(number: $number) {
|
||
timelineItems(last: $last) {
|
||
nodes {
|
||
__typename
|
||
...Comment
|
||
...AssignedEvent
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
fragment ReviewComment on PullRequestReviewComment {
|
||
id
|
||
databaseId
|
||
url
|
||
author {
|
||
login
|
||
avatarUrl
|
||
url
|
||
... on User {
|
||
email
|
||
}
|
||
... on Organization {
|
||
email
|
||
}
|
||
}
|
||
path
|
||
originalPosition
|
||
body
|
||
bodyHTML
|
||
diffHunk
|
||
position
|
||
state
|
||
pullRequestReview {
|
||
databaseId
|
||
}
|
||
commit {
|
||
oid
|
||
}
|
||
replyTo {
|
||
databaseId
|
||
}
|
||
createdAt
|
||
originalCommit {
|
||
oid
|
||
}
|
||
reactionGroups {
|
||
content
|
||
viewerHasReacted
|
||
users {
|
||
totalCount
|
||
}
|
||
}
|
||
viewerCanUpdate
|
||
viewerCanDelete
|
||
}
|
||
|
||
query GetPendingReviewId($pullRequestId: ID!, $author: String!) {
|
||
node(id: $pullRequestId) {
|
||
... on PullRequest {
|
||
reviews(first: 1, author: $author, states: [PENDING]) {
|
||
nodes {
|
||
id
|
||
}
|
||
}
|
||
}
|
||
}
|
||
rateLimit {
|
||
limit
|
||
cost
|
||
remaining
|
||
resetAt
|
||
}
|
||
}
|
||
|
||
query PullRequestComments($owner: String!, $name: String!, $number: Int!, $first: Int = 100) {
|
||
repository(owner: $owner, name: $name) {
|
||
pullRequest(number: $number) {
|
||
reviewThreads(first: $first) {
|
||
nodes {
|
||
id
|
||
isResolved
|
||
viewerCanResolve
|
||
viewerCanUnresolve
|
||
path
|
||
diffSide
|
||
line
|
||
originalLine
|
||
isOutdated
|
||
comments(first: 100) {
|
||
nodes {
|
||
...ReviewComment
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
query PullRequest($owner: String!, $name: String!, $number: Int!) {
|
||
repository(owner: $owner, name: $name) {
|
||
pullRequest(number: $number) {
|
||
number
|
||
url
|
||
state
|
||
body
|
||
bodyHTML
|
||
title
|
||
author {
|
||
login
|
||
url
|
||
avatarUrl
|
||
... on User {
|
||
email
|
||
}
|
||
... on Organization {
|
||
email
|
||
}
|
||
}
|
||
createdAt
|
||
updatedAt
|
||
headRef {
|
||
...Ref
|
||
}
|
||
headRefName
|
||
headRefOid
|
||
headRepository {
|
||
owner {
|
||
login
|
||
}
|
||
url
|
||
}
|
||
baseRef {
|
||
...Ref
|
||
}
|
||
baseRefName
|
||
baseRefOid
|
||
baseRepository {
|
||
owner {
|
||
login
|
||
}
|
||
url
|
||
}
|
||
labels(first: 50) {
|
||
nodes {
|
||
name
|
||
}
|
||
}
|
||
merged
|
||
mergeable
|
||
id
|
||
databaseId
|
||
isDraft
|
||
milestone {
|
||
title
|
||
dueOn
|
||
createdAt
|
||
id
|
||
}
|
||
assignees(first: 10) {
|
||
nodes {
|
||
login
|
||
name
|
||
avatarUrl
|
||
url
|
||
email
|
||
}
|
||
}
|
||
suggestedReviewers {
|
||
isAuthor
|
||
isCommenter
|
||
reviewer {
|
||
login
|
||
avatarUrl
|
||
name
|
||
url
|
||
}
|
||
}
|
||
}
|
||
}
|
||
rateLimit {
|
||
limit
|
||
cost
|
||
remaining
|
||
resetAt
|
||
}
|
||
}
|
||
|
||
query PullRequestFiles($owner: String!, $name: String!, $number: Int!, $after: String) {
|
||
repository(owner: $owner, name: $name) {
|
||
pullRequest(number: $number) {
|
||
files(first: 100, after: $after) {
|
||
nodes {
|
||
path
|
||
viewerViewedState
|
||
}
|
||
pageInfo {
|
||
hasNextPage
|
||
endCursor
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
query Issue($owner: String!, $name: String!, $number: Int!) {
|
||
repository(owner: $owner, name: $name) {
|
||
pullRequest: issue(number: $number) {
|
||
number
|
||
url
|
||
state
|
||
body
|
||
bodyHTML
|
||
title
|
||
author {
|
||
login
|
||
url
|
||
avatarUrl
|
||
... on User {
|
||
email
|
||
}
|
||
... on Organization {
|
||
email
|
||
}
|
||
}
|
||
createdAt
|
||
updatedAt
|
||
labels(first: 50) {
|
||
nodes {
|
||
name
|
||
color
|
||
}
|
||
}
|
||
id
|
||
databaseId
|
||
}
|
||
}
|
||
}
|
||
|
||
query IssueWithComments($owner: String!, $name: String!, $number: Int!) {
|
||
repository(owner: $owner, name: $name) {
|
||
pullRequest: issue(number: $number) {
|
||
number
|
||
url
|
||
state
|
||
body
|
||
bodyHTML
|
||
title
|
||
author {
|
||
login
|
||
url
|
||
avatarUrl
|
||
... on User {
|
||
email
|
||
}
|
||
... on Organization {
|
||
email
|
||
}
|
||
}
|
||
createdAt
|
||
updatedAt
|
||
labels(first: 50) {
|
||
nodes {
|
||
name
|
||
color
|
||
}
|
||
}
|
||
id
|
||
databaseId
|
||
comments(first: 50) {
|
||
nodes {
|
||
author {
|
||
login
|
||
url
|
||
avatarUrl
|
||
... on User {
|
||
email
|
||
}
|
||
... on Organization {
|
||
email
|
||
}
|
||
}
|
||
body
|
||
databaseId
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
query GetUser($login: String!) {
|
||
user(login: $login) {
|
||
login
|
||
avatarUrl(size: 50)
|
||
bio
|
||
name
|
||
company
|
||
location
|
||
contributionsCollection {
|
||
commitContributionsByRepository(maxRepositories: 50) {
|
||
contributions(first: 1) {
|
||
nodes {
|
||
occurredAt
|
||
}
|
||
}
|
||
repository {
|
||
nameWithOwner
|
||
}
|
||
}
|
||
}
|
||
url
|
||
}
|
||
}
|
||
|
||
query PullRequestMergeability($owner: String!, $name: String!, $number: Int!) {
|
||
repository(owner: $owner, name: $name) {
|
||
pullRequest(number: $number) {
|
||
mergeable
|
||
}
|
||
}
|
||
rateLimit {
|
||
limit
|
||
cost
|
||
remaining
|
||
resetAt
|
||
}
|
||
}
|
||
|
||
query PullRequestState($owner: String!, $name: String!, $number: Int!) {
|
||
repository(owner: $owner, name: $name) {
|
||
pullRequest(number: $number) {
|
||
title
|
||
number
|
||
state
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation AddComment($input: AddPullRequestReviewCommentInput!) {
|
||
addPullRequestReviewComment(input: $input) {
|
||
comment {
|
||
...ReviewComment
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation AddReviewThread($input: AddPullRequestReviewThreadInput!) {
|
||
addPullRequestReviewThread(input: $input) {
|
||
thread {
|
||
...ReviewThread
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation EditComment($input: UpdatePullRequestReviewCommentInput!) {
|
||
updatePullRequestReviewComment(input: $input) {
|
||
pullRequestReviewComment {
|
||
...ReviewComment
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation ReadyForReview($input: MarkPullRequestReadyForReviewInput!) {
|
||
markPullRequestReadyForReview(input: $input) {
|
||
pullRequest {
|
||
isDraft
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation StartReview($input: AddPullRequestReviewInput!) {
|
||
addPullRequestReview(input: $input) {
|
||
pullRequestReview {
|
||
id
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation SubmitReview($id: ID!, $event: PullRequestReviewEvent!, $body: String) {
|
||
submitPullRequestReview(input: { event: $event, pullRequestReviewId: $id, body: $body }) {
|
||
pullRequestReview {
|
||
comments(first: 100) {
|
||
nodes {
|
||
...ReviewComment
|
||
}
|
||
}
|
||
...Review
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation DeleteReview($input: DeletePullRequestReviewInput!) {
|
||
deletePullRequestReview(input: $input) {
|
||
pullRequestReview {
|
||
databaseId
|
||
comments(first: 100) {
|
||
nodes {
|
||
...ReviewComment
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation AddReaction($input: AddReactionInput!) {
|
||
addReaction(input: $input) {
|
||
reaction {
|
||
content
|
||
}
|
||
subject {
|
||
...Reactable
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation DeleteReaction($input: RemoveReactionInput!) {
|
||
removeReaction(input: $input) {
|
||
reaction {
|
||
content
|
||
}
|
||
subject {
|
||
...Reactable
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation UpdatePullRequest($input: UpdatePullRequestInput!) {
|
||
updatePullRequest(input: $input) {
|
||
pullRequest {
|
||
body
|
||
bodyHTML
|
||
title
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation AddIssueComment($input: AddCommentInput!) {
|
||
addComment(input: $input) {
|
||
commentEdge {
|
||
node {
|
||
...Comment
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation EditIssueComment($input: UpdateIssueCommentInput!) {
|
||
updateIssueComment(input: $input) {
|
||
issueComment {
|
||
...Comment
|
||
}
|
||
}
|
||
}
|
||
|
||
query GetMentionableUsers($owner: String!, $name: String!, $first: Int!, $after: String) {
|
||
repository(owner: $owner, name: $name) {
|
||
mentionableUsers(first: $first, after: $after) {
|
||
nodes {
|
||
login
|
||
avatarUrl
|
||
name
|
||
url
|
||
email
|
||
}
|
||
pageInfo {
|
||
hasNextPage
|
||
endCursor
|
||
}
|
||
}
|
||
}
|
||
rateLimit {
|
||
limit
|
||
cost
|
||
remaining
|
||
resetAt
|
||
}
|
||
}
|
||
|
||
query GetAssignableUsers($owner: String!, $name: String!, $first: Int!, $after: String) {
|
||
repository(owner: $owner, name: $name) {
|
||
assignableUsers(first: $first, after: $after) {
|
||
nodes {
|
||
login
|
||
avatarUrl
|
||
name
|
||
url
|
||
email
|
||
}
|
||
pageInfo {
|
||
hasNextPage
|
||
endCursor
|
||
}
|
||
}
|
||
}
|
||
rateLimit {
|
||
limit
|
||
cost
|
||
remaining
|
||
resetAt
|
||
}
|
||
}
|
||
|
||
query IssuesWithoutMilestone($owner: String!, $name: String!, $assignee: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
issues(
|
||
first: 100
|
||
states: OPEN
|
||
filterBy: { assignee: $assignee, milestone: null }
|
||
orderBy: { direction: DESC, field: UPDATED_AT }
|
||
) {
|
||
edges {
|
||
node {
|
||
... on Issue {
|
||
number
|
||
url
|
||
state
|
||
body
|
||
bodyHTML
|
||
title
|
||
assignees(first: 10) {
|
||
nodes {
|
||
login
|
||
url
|
||
email
|
||
}
|
||
}
|
||
author {
|
||
login
|
||
url
|
||
avatarUrl(size: 50)
|
||
... on User {
|
||
email
|
||
}
|
||
... on Organization {
|
||
email
|
||
}
|
||
}
|
||
createdAt
|
||
updatedAt
|
||
labels(first: 50) {
|
||
nodes {
|
||
name
|
||
color
|
||
}
|
||
}
|
||
id
|
||
databaseId
|
||
milestone {
|
||
title
|
||
dueOn
|
||
}
|
||
}
|
||
}
|
||
}
|
||
pageInfo {
|
||
hasNextPage
|
||
endCursor
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
query MaxIssue($owner: String!, $name: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
issues(first: 1, orderBy: { direction: DESC, field: CREATED_AT }) {
|
||
edges {
|
||
node {
|
||
... on Issue {
|
||
number
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
query GetMilestones($owner: String!, $name: String!, $assignee: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
milestones(first: 12, orderBy: { direction: DESC, field: DUE_DATE }, states: OPEN) {
|
||
nodes {
|
||
dueOn
|
||
title
|
||
createdAt
|
||
id
|
||
issues(
|
||
first: 100
|
||
filterBy: { assignee: $assignee }
|
||
orderBy: { direction: DESC, field: UPDATED_AT }
|
||
states: OPEN
|
||
) {
|
||
edges {
|
||
node {
|
||
... on Issue {
|
||
number
|
||
url
|
||
state
|
||
body
|
||
bodyHTML
|
||
title
|
||
assignees(first: 10) {
|
||
nodes {
|
||
avatarUrl
|
||
email
|
||
login
|
||
url
|
||
}
|
||
}
|
||
author {
|
||
login
|
||
url
|
||
avatarUrl(size: 50)
|
||
... on User {
|
||
email
|
||
}
|
||
... on Organization {
|
||
email
|
||
}
|
||
}
|
||
createdAt
|
||
updatedAt
|
||
labels(first: 50) {
|
||
nodes {
|
||
name
|
||
color
|
||
}
|
||
}
|
||
id
|
||
databaseId
|
||
milestone {
|
||
title
|
||
dueOn
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
pageInfo {
|
||
hasNextPage
|
||
endCursor
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
query Issues($query: String!) {
|
||
search(first: 100, type: ISSUE, query: $query) {
|
||
issueCount
|
||
pageInfo {
|
||
hasNextPage
|
||
endCursor
|
||
}
|
||
edges {
|
||
node {
|
||
... on Issue {
|
||
number
|
||
url
|
||
state
|
||
body
|
||
bodyHTML
|
||
title
|
||
assignees(first: 10) {
|
||
nodes {
|
||
avatarUrl
|
||
email
|
||
login
|
||
url
|
||
}
|
||
}
|
||
author {
|
||
login
|
||
url
|
||
avatarUrl(size: 50)
|
||
... on User {
|
||
email
|
||
}
|
||
... on Organization {
|
||
email
|
||
}
|
||
}
|
||
createdAt
|
||
updatedAt
|
||
labels(first: 50) {
|
||
nodes {
|
||
name
|
||
color
|
||
}
|
||
}
|
||
id
|
||
databaseId
|
||
milestone {
|
||
title
|
||
dueOn
|
||
id
|
||
createdAt
|
||
}
|
||
repository {
|
||
name
|
||
owner {
|
||
login
|
||
}
|
||
url
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
query GetViewerPermission($owner: String!, $name: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
viewerPermission
|
||
}
|
||
}
|
||
|
||
query GetRepositoryForkDetails($owner: String!, $name: String!) {
|
||
repository(owner: $owner, name: $name) {
|
||
isFork
|
||
parent {
|
||
name
|
||
owner {
|
||
login
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
query GetChecks($owner: String!, $name: String!, $number: Int!) {
|
||
repository(owner: $owner, name: $name) {
|
||
pullRequest(number: $number) {
|
||
commits(last: 1) {
|
||
nodes {
|
||
commit {
|
||
statusCheckRollup {
|
||
state
|
||
contexts(first: 100) {
|
||
nodes {
|
||
... on StatusContext {
|
||
id
|
||
state
|
||
targetUrl
|
||
description
|
||
context
|
||
avatarUrl
|
||
}
|
||
... on CheckRun {
|
||
id
|
||
conclusion
|
||
title
|
||
detailsUrl
|
||
name
|
||
resourcePath
|
||
checkSuite {
|
||
app {
|
||
logoUrl
|
||
url
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation ResolveReviewThread($input: ResolveReviewThreadInput!) {
|
||
resolveReviewThread(input: $input) {
|
||
thread {
|
||
...ReviewThread
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation UnresolveReviewThread($input: UnresolveReviewThreadInput!) {
|
||
unresolveReviewThread(input: $input) {
|
||
thread {
|
||
...ReviewThread
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation MarkFileAsViewed($input: MarkFileAsViewedInput!) {
|
||
markFileAsViewed(input: $input) {
|
||
pullRequest {
|
||
id
|
||
}
|
||
}
|
||
}
|
||
|
||
mutation UnmarkFileAsViewed($input: UnmarkFileAsViewedInput!) {
|
||
unmarkFileAsViewed(input: $input) {
|
||
pullRequest {
|
||
id
|
||
}
|
||
}
|
||
}`,name:"GraphQL request",locationOffset:{line:1,column:1}};var U={};function B(x){return x.filter(function(L){if(L.kind!=="FragmentDefinition")return!0;var D=L.name.value;return U[D]?!1:(U[D]=!0,!0)})}function re(x,L){if(x.kind==="FragmentSpread")L.add(x.name.value);else if(x.kind==="VariableDefinition"){var D=x.type;D.kind==="NamedType"&&L.add(D.name.value)}x.selectionSet&&x.selectionSet.selections.forEach(function(H){re(H,L)}),x.variableDefinitions&&x.variableDefinitions.forEach(function(H){re(H,L)}),x.definitions&&x.definitions.forEach(function(H){re(H,L)})}var Q={};(function(){K.definitions.forEach(function(L){if(L.name){var D=new Set;re(L,D),Q[L.name.value]=D}})})();function M(x,L){for(var D=0;D<x.definitions.length;D++){var H=x.definitions[D];if(H.name&&H.name.value==L)return H}}function q(x,L){var D={kind:x.kind,definitions:[M(x,L)]};x.hasOwnProperty("loc")&&(D.loc=x.loc);var H=Q[L]||new Set,$=new Set,se=new Set;for(H.forEach(function(te){se.add(te)});se.size>0;){var I=se;se=new Set,I.forEach(function(te){if(!$.has(te)){$.add(te);var W=Q[te]||new Set;W.forEach(function(G){se.add(G)})}})}return $.forEach(function(te){var W=M(x,te);W&&D.definitions.push(W)}),D}d.exports=K,d.exports.TimelineEvents=q(K,"TimelineEvents"),d.exports.IssueTimelineEvents=q(K,"IssueTimelineEvents"),d.exports.GetPendingReviewId=q(K,"GetPendingReviewId"),d.exports.PullRequestComments=q(K,"PullRequestComments"),d.exports.PullRequest=q(K,"PullRequest"),d.exports.PullRequestFiles=q(K,"PullRequestFiles"),d.exports.Issue=q(K,"Issue"),d.exports.IssueWithComments=q(K,"IssueWithComments"),d.exports.GetUser=q(K,"GetUser"),d.exports.PullRequestMergeability=q(K,"PullRequestMergeability"),d.exports.PullRequestState=q(K,"PullRequestState"),d.exports.AddComment=q(K,"AddComment"),d.exports.AddReviewThread=q(K,"AddReviewThread"),d.exports.EditComment=q(K,"EditComment"),d.exports.ReadyForReview=q(K,"ReadyForReview"),d.exports.StartReview=q(K,"StartReview"),d.exports.SubmitReview=q(K,"SubmitReview"),d.exports.DeleteReview=q(K,"DeleteReview"),d.exports.AddReaction=q(K,"AddReaction"),d.exports.DeleteReaction=q(K,"DeleteReaction"),d.exports.UpdatePullRequest=q(K,"UpdatePullRequest"),d.exports.AddIssueComment=q(K,"AddIssueComment"),d.exports.EditIssueComment=q(K,"EditIssueComment"),d.exports.GetMentionableUsers=q(K,"GetMentionableUsers"),d.exports.GetAssignableUsers=q(K,"GetAssignableUsers"),d.exports.IssuesWithoutMilestone=q(K,"IssuesWithoutMilestone"),d.exports.MaxIssue=q(K,"MaxIssue"),d.exports.GetMilestones=q(K,"GetMilestones"),d.exports.Issues=q(K,"Issues"),d.exports.GetViewerPermission=q(K,"GetViewerPermission"),d.exports.GetRepositoryForkDetails=q(K,"GetRepositoryForkDetails"),d.exports.GetChecks=q(K,"GetChecks"),d.exports.ResolveReviewThread=q(K,"ResolveReviewThread"),d.exports.UnresolveReviewThread=q(K,"UnresolveReviewThread"),d.exports.MarkFileAsViewed=q(K,"MarkFileAsViewed"),d.exports.UnmarkFileAsViewed=q(K,"UnmarkFileAsViewed")},972:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.default=M;var B=Q(U(7706)),re=Q(U(8554));function Q(q){return q&&q.__esModule?q:{default:q}}function M(q){var x=q.prototype.toJSON;typeof x=="function"||(0,B.default)(0),q.prototype.inspect=x,re.default&&(q.prototype[re.default]=x)}},8002:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.default=x;var B=re(U(8554));function re(te){return te&&te.__esModule?te:{default:te}}function Q(te){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Q=function(G){return typeof G}:Q=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},Q(te)}var M=10,q=2;function x(te){return L(te,[])}function L(te,W){switch(Q(te)){case"string":return JSON.stringify(te);case"function":return te.name?"[function ".concat(te.name,"]"):"[function]";case"object":return te===null?"null":D(te,W);default:return String(te)}}function D(te,W){if(W.indexOf(te)!==-1)return"[Circular]";var G=[].concat(W,[te]),oe=se(te);if(oe!==void 0){var J=oe.call(te);if(J!==te)return typeof J=="string"?J:L(J,G)}else if(Array.isArray(te))return $(te,G);return H(te,G)}function H(te,W){var G=Object.keys(te);if(G.length===0)return"{}";if(W.length>q)return"["+I(te)+"]";var oe=G.map(function(J){var Ce=L(te[J],W);return J+": "+Ce});return"{ "+oe.join(", ")+" }"}function $(te,W){if(te.length===0)return"[]";if(W.length>q)return"[Array]";for(var G=Math.min(M,te.length),oe=te.length-G,J=[],Ce=0;Ce<G;++Ce)J.push(L(te[Ce],W));return oe===1?J.push("... 1 more item"):oe>1&&J.push("... ".concat(oe," more items")),"["+J.join(", ")+"]"}function se(te){var W=te[String(B.default)];if(typeof W=="function")return W;if(typeof te.inspect=="function")return te.inspect}function I(te){var W=Object.prototype.toString.call(te).replace(/^\[object /,"").replace(/]$/,"");if(W==="Object"&&typeof te.constructor=="function"){var G=te.constructor.name;if(typeof G=="string"&&G!=="")return G}return W}},7706:(d,K)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.default=U;function U(B,re){var Q=Boolean(B);if(!Q)throw new Error(re!=null?re:"Unexpected invariant triggered.")}},8554:(d,K)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.default=void 0;var U=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,B=U;K.default=B},1807:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.isNode=q,K.Token=K.Location=void 0;var B=re(U(972));function re(x){return x&&x.__esModule?x:{default:x}}var Q=function(){function x(D,H,$){this.start=D.start,this.end=H.end,this.startToken=D,this.endToken=H,this.source=$}var L=x.prototype;return L.toJSON=function(){return{start:this.start,end:this.end}},x}();K.Location=Q,(0,B.default)(Q);var M=function(){function x(D,H,$,se,I,te,W){this.kind=D,this.start=H,this.end=$,this.line=se,this.column=I,this.value=W,this.prev=te,this.next=null}var L=x.prototype;return L.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},x}();K.Token=M,(0,B.default)(M);function q(x){return x!=null&&typeof x.kind=="string"}},849:(d,K)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.dedentBlockStringValue=U,K.getBlockStringIndentation=re,K.printBlockString=Q;function U(M){var q=M.split(/\r\n|[\n\r]/g),x=re(M);if(x!==0)for(var L=1;L<q.length;L++)q[L]=q[L].slice(x);for(var D=0;D<q.length&&B(q[D]);)++D;for(var H=q.length;H>D&&B(q[H-1]);)--H;return q.slice(D,H).join(`
|
||
`)}function B(M){for(var q=0;q<M.length;++q)if(M[q]!==" "&&M[q]!==" ")return!1;return!0}function re(M){for(var q,x=!0,L=!0,D=0,H=null,$=0;$<M.length;++$)switch(M.charCodeAt($)){case 13:M.charCodeAt($+1)===10&&++$;case 10:x=!1,L=!0,D=0;break;case 9:case 32:++D;break;default:L&&!x&&(H===null||D<H)&&(H=D),L=!1}return(q=H)!==null&&q!==void 0?q:0}function Q(M){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,L=M.indexOf(`
|
||
`)===-1,D=M[0]===" "||M[0]===" ",H=M[M.length-1]==='"',$=M[M.length-1]==="\\",se=!L||H||$||x,I="";return se&&!(L&&D)&&(I+=`
|
||
`+q),I+=q?M.replace(/\n/g,`
|
||
`+q):M,se&&(I+=`
|
||
`),'"""'+I.replace(/"""/g,'\\"""')+'"""'}},3033:(d,K,U)=>{"use strict";var B;B={value:!0},K.S=M;var re=U(285),Q=U(849);function M(W){return(0,re.visit)(W,{leave:x})}var q=80,x={Name:function(G){return G.value},Variable:function(G){return"$"+G.name},Document:function(G){return D(G.definitions,`
|
||
|
||
`)+`
|
||
`},OperationDefinition:function(G){var oe=G.operation,J=G.name,Ce=$("(",D(G.variableDefinitions,", "),")"),_e=D(G.directives," "),Le=G.selectionSet;return!J&&!_e&&!Ce&&oe==="query"?Le:D([oe,D([J,Ce]),_e,Le]," ")},VariableDefinition:function(G){var oe=G.variable,J=G.type,Ce=G.defaultValue,_e=G.directives;return oe+": "+J+$(" = ",Ce)+$(" ",D(_e," "))},SelectionSet:function(G){var oe=G.selections;return H(oe)},Field:function(G){var oe=G.alias,J=G.name,Ce=G.arguments,_e=G.directives,Le=G.selectionSet,fe=$("",oe,": ")+J,pe=fe+$("(",D(Ce,", "),")");return pe.length>q&&(pe=fe+$(`(
|
||
`,se(D(Ce,`
|
||
`)),`
|
||
)`)),D([pe,D(_e," "),Le]," ")},Argument:function(G){var oe=G.name,J=G.value;return oe+": "+J},FragmentSpread:function(G){var oe=G.name,J=G.directives;return"..."+oe+$(" ",D(J," "))},InlineFragment:function(G){var oe=G.typeCondition,J=G.directives,Ce=G.selectionSet;return D(["...",$("on ",oe),D(J," "),Ce]," ")},FragmentDefinition:function(G){var oe=G.name,J=G.typeCondition,Ce=G.variableDefinitions,_e=G.directives,Le=G.selectionSet;return"fragment ".concat(oe).concat($("(",D(Ce,", "),")")," ")+"on ".concat(J," ").concat($("",D(_e," ")," "))+Le},IntValue:function(G){var oe=G.value;return oe},FloatValue:function(G){var oe=G.value;return oe},StringValue:function(G,oe){var J=G.value,Ce=G.block;return Ce?(0,Q.printBlockString)(J,oe==="description"?"":" "):JSON.stringify(J)},BooleanValue:function(G){var oe=G.value;return oe?"true":"false"},NullValue:function(){return"null"},EnumValue:function(G){var oe=G.value;return oe},ListValue:function(G){var oe=G.values;return"["+D(oe,", ")+"]"},ObjectValue:function(G){var oe=G.fields;return"{"+D(oe,", ")+"}"},ObjectField:function(G){var oe=G.name,J=G.value;return oe+": "+J},Directive:function(G){var oe=G.name,J=G.arguments;return"@"+oe+$("(",D(J,", "),")")},NamedType:function(G){var oe=G.name;return oe},ListType:function(G){var oe=G.type;return"["+oe+"]"},NonNullType:function(G){var oe=G.type;return oe+"!"},SchemaDefinition:L(function(W){var G=W.directives,oe=W.operationTypes;return D(["schema",D(G," "),H(oe)]," ")}),OperationTypeDefinition:function(G){var oe=G.operation,J=G.type;return oe+": "+J},ScalarTypeDefinition:L(function(W){var G=W.name,oe=W.directives;return D(["scalar",G,D(oe," ")]," ")}),ObjectTypeDefinition:L(function(W){var G=W.name,oe=W.interfaces,J=W.directives,Ce=W.fields;return D(["type",G,$("implements ",D(oe," & ")),D(J," "),H(Ce)]," ")}),FieldDefinition:L(function(W){var G=W.name,oe=W.arguments,J=W.type,Ce=W.directives;return G+(te(oe)?$(`(
|
||
`,se(D(oe,`
|
||
`)),`
|
||
)`):$("(",D(oe,", "),")"))+": "+J+$(" ",D(Ce," "))}),InputValueDefinition:L(function(W){var G=W.name,oe=W.type,J=W.defaultValue,Ce=W.directives;return D([G+": "+oe,$("= ",J),D(Ce," ")]," ")}),InterfaceTypeDefinition:L(function(W){var G=W.name,oe=W.interfaces,J=W.directives,Ce=W.fields;return D(["interface",G,$("implements ",D(oe," & ")),D(J," "),H(Ce)]," ")}),UnionTypeDefinition:L(function(W){var G=W.name,oe=W.directives,J=W.types;return D(["union",G,D(oe," "),J&&J.length!==0?"= "+D(J," | "):""]," ")}),EnumTypeDefinition:L(function(W){var G=W.name,oe=W.directives,J=W.values;return D(["enum",G,D(oe," "),H(J)]," ")}),EnumValueDefinition:L(function(W){var G=W.name,oe=W.directives;return D([G,D(oe," ")]," ")}),InputObjectTypeDefinition:L(function(W){var G=W.name,oe=W.directives,J=W.fields;return D(["input",G,D(oe," "),H(J)]," ")}),DirectiveDefinition:L(function(W){var G=W.name,oe=W.arguments,J=W.repeatable,Ce=W.locations;return"directive @"+G+(te(oe)?$(`(
|
||
`,se(D(oe,`
|
||
`)),`
|
||
)`):$("(",D(oe,", "),")"))+(J?" repeatable":"")+" on "+D(Ce," | ")}),SchemaExtension:function(G){var oe=G.directives,J=G.operationTypes;return D(["extend schema",D(oe," "),H(J)]," ")},ScalarTypeExtension:function(G){var oe=G.name,J=G.directives;return D(["extend scalar",oe,D(J," ")]," ")},ObjectTypeExtension:function(G){var oe=G.name,J=G.interfaces,Ce=G.directives,_e=G.fields;return D(["extend type",oe,$("implements ",D(J," & ")),D(Ce," "),H(_e)]," ")},InterfaceTypeExtension:function(G){var oe=G.name,J=G.interfaces,Ce=G.directives,_e=G.fields;return D(["extend interface",oe,$("implements ",D(J," & ")),D(Ce," "),H(_e)]," ")},UnionTypeExtension:function(G){var oe=G.name,J=G.directives,Ce=G.types;return D(["extend union",oe,D(J," "),Ce&&Ce.length!==0?"= "+D(Ce," | "):""]," ")},EnumTypeExtension:function(G){var oe=G.name,J=G.directives,Ce=G.values;return D(["extend enum",oe,D(J," "),H(Ce)]," ")},InputObjectTypeExtension:function(G){var oe=G.name,J=G.directives,Ce=G.fields;return D(["extend input",oe,D(J," "),H(Ce)]," ")}};function L(W){return function(G){return D([G.description,W(G)],`
|
||
`)}}function D(W){var G,oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(G=W==null?void 0:W.filter(function(J){return J}).join(oe))!==null&&G!==void 0?G:""}function H(W){return $(`{
|
||
`,se(D(W,`
|
||
`)),`
|
||
}`)}function $(W,G){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return G!=null&&G!==""?W+G+oe:""}function se(W){return $(" ",W.replace(/\n/g,`
|
||
`))}function I(W){return W.indexOf(`
|
||
`)!==-1}function te(W){return W!=null&&W.some(I)}},285:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.visit=x,K.visitInParallel=L,K.getVisitFn=D,K.BREAK=K.QueryDocumentKeys=void 0;var B=Q(U(8002)),re=U(1807);function Q(H){return H&&H.__esModule?H:{default:H}}var M={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};K.QueryDocumentKeys=M;var q=Object.freeze({});K.BREAK=q;function x(H,$){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M,I=void 0,te=Array.isArray(H),W=[H],G=-1,oe=[],J=void 0,Ce=void 0,_e=void 0,Le=[],fe=[],pe=H;do{G++;var Z=G===W.length,ae=Z&&oe.length!==0;if(Z){if(Ce=fe.length===0?void 0:Le[Le.length-1],J=_e,_e=fe.pop(),ae){if(te)J=J.slice();else{for(var ee={},he=0,Pe=Object.keys(J);he<Pe.length;he++){var Ne=Pe[he];ee[Ne]=J[Ne]}J=ee}for(var ke=0,Re=0;Re<oe.length;Re++){var tt=oe[Re][0],Ze=oe[Re][1];te&&(tt-=ke),te&&Ze===null?(J.splice(tt,1),ke++):J[tt]=Ze}}G=I.index,W=I.keys,oe=I.edits,te=I.inArray,I=I.prev}else{if(Ce=_e?te?G:W[G]:void 0,J=_e?_e[Ce]:pe,J==null)continue;_e&&Le.push(Ce)}var bt=void 0;if(!Array.isArray(J)){if(!(0,re.isNode)(J))throw new Error("Invalid AST Node: ".concat((0,B.default)(J),"."));var _t=D($,J.kind,Z);if(_t){if(bt=_t.call($,J,Ce,_e,Le,fe),bt===q)break;if(bt===!1){if(!Z){Le.pop();continue}}else if(bt!==void 0&&(oe.push([Ce,bt]),!Z))if((0,re.isNode)(bt))J=bt;else{Le.pop();continue}}}if(bt===void 0&&ae&&oe.push([Ce,J]),Z)Le.pop();else{var zt;I={inArray:te,index:G,keys:W,edits:oe,prev:I},te=Array.isArray(J),W=te?J:(zt=se[J.kind])!==null&&zt!==void 0?zt:[],G=-1,oe=[],_e&&fe.push(_e),_e=J}}while(I!==void 0);return oe.length!==0&&(pe=oe[oe.length-1][1]),pe}function L(H){var $=new Array(H.length);return{enter:function(I){for(var te=0;te<H.length;te++)if($[te]==null){var W=D(H[te],I.kind,!1);if(W){var G=W.apply(H[te],arguments);if(G===!1)$[te]=I;else if(G===q)$[te]=q;else if(G!==void 0)return G}}},leave:function(I){for(var te=0;te<H.length;te++)if($[te]==null){var W=D(H[te],I.kind,!0);if(W){var G=W.apply(H[te],arguments);if(G===q)$[te]=q;else if(G!==void 0&&G!==!1)return G}}else $[te]===I&&($[te]=null)}}}function D(H,$,se){var I=H[$];if(I){if(!se&&typeof I=="function")return I;var te=se?I.leave:I.enter;if(typeof te=="function")return te}else{var W=se?H.leave:H.enter;if(W){if(typeof W=="function")return W;var G=W[$];if(typeof G=="function")return G}}}},6560:d=>{"use strict";d.exports=(K,U=process.argv)=>{const B=K.startsWith("-")?"":K.length===1?"-":"--",re=U.indexOf(B+K),Q=U.indexOf("--");return re!==-1&&(Q===-1||re<Q)}},9593:(d,K,U)=>{"use strict";const B=U(4411),re=Symbol("max"),Q=Symbol("length"),M=Symbol("lengthCalculator"),q=Symbol("allowStale"),x=Symbol("maxAge"),L=Symbol("dispose"),D=Symbol("noDisposeOnSet"),H=Symbol("lruList"),$=Symbol("cache"),se=Symbol("updateAgeOnGet"),I=()=>1;class te{constructor(fe){if(typeof fe=="number"&&(fe={max:fe}),fe||(fe={}),fe.max&&(typeof fe.max!="number"||fe.max<0))throw new TypeError("max must be a non-negative number");const pe=this[re]=fe.max||Infinity,Z=fe.length||I;if(this[M]=typeof Z!="function"?I:Z,this[q]=fe.stale||!1,fe.maxAge&&typeof fe.maxAge!="number")throw new TypeError("maxAge must be a number");this[x]=fe.maxAge||0,this[L]=fe.dispose,this[D]=fe.noDisposeOnSet||!1,this[se]=fe.updateAgeOnGet||!1,this.reset()}set max(fe){if(typeof fe!="number"||fe<0)throw new TypeError("max must be a non-negative number");this[re]=fe||Infinity,oe(this)}get max(){return this[re]}set allowStale(fe){this[q]=!!fe}get allowStale(){return this[q]}set maxAge(fe){if(typeof fe!="number")throw new TypeError("maxAge must be a non-negative number");this[x]=fe,oe(this)}get maxAge(){return this[x]}set lengthCalculator(fe){typeof fe!="function"&&(fe=I),fe!==this[M]&&(this[M]=fe,this[Q]=0,this[H].forEach(pe=>{pe.length=this[M](pe.value,pe.key),this[Q]+=pe.length})),oe(this)}get lengthCalculator(){return this[M]}get length(){return this[Q]}get itemCount(){return this[H].length}rforEach(fe,pe){pe=pe||this;for(let Z=this[H].tail;Z!==null;){const ae=Z.prev;_e(this,fe,Z,pe),Z=ae}}forEach(fe,pe){pe=pe||this;for(let Z=this[H].head;Z!==null;){const ae=Z.next;_e(this,fe,Z,pe),Z=ae}}keys(){return this[H].toArray().map(fe=>fe.key)}values(){return this[H].toArray().map(fe=>fe.value)}reset(){this[L]&&this[H]&&this[H].length&&this[H].forEach(fe=>this[L](fe.key,fe.value)),this[$]=new Map,this[H]=new B,this[Q]=0}dump(){return this[H].map(fe=>G(this,fe)?!1:{k:fe.key,v:fe.value,e:fe.now+(fe.maxAge||0)}).toArray().filter(fe=>fe)}dumpLru(){return this[H]}set(fe,pe,Z){if(Z=Z||this[x],Z&&typeof Z!="number")throw new TypeError("maxAge must be a number");const ae=Z?Date.now():0,ee=this[M](pe,fe);if(this[$].has(fe)){if(ee>this[re])return J(this,this[$].get(fe)),!1;const Ne=this[$].get(fe).value;return this[L]&&(this[D]||this[L](fe,Ne.value)),Ne.now=ae,Ne.maxAge=Z,Ne.value=pe,this[Q]+=ee-Ne.length,Ne.length=ee,this.get(fe),oe(this),!0}const he=new Ce(fe,pe,ee,ae,Z);return he.length>this[re]?(this[L]&&this[L](fe,pe),!1):(this[Q]+=he.length,this[H].unshift(he),this[$].set(fe,this[H].head),oe(this),!0)}has(fe){if(!this[$].has(fe))return!1;const pe=this[$].get(fe).value;return!G(this,pe)}get(fe){return W(this,fe,!0)}peek(fe){return W(this,fe,!1)}pop(){const fe=this[H].tail;return fe?(J(this,fe),fe.value):null}del(fe){J(this,this[$].get(fe))}load(fe){this.reset();const pe=Date.now();for(let Z=fe.length-1;Z>=0;Z--){const ae=fe[Z],ee=ae.e||0;if(ee===0)this.set(ae.k,ae.v);else{const he=ee-pe;he>0&&this.set(ae.k,ae.v,he)}}}prune(){this[$].forEach((fe,pe)=>W(this,pe,!1))}}const W=(Le,fe,pe)=>{const Z=Le[$].get(fe);if(Z){const ae=Z.value;if(G(Le,ae)){if(J(Le,Z),!Le[q])return}else pe&&(Le[se]&&(Z.value.now=Date.now()),Le[H].unshiftNode(Z));return ae.value}},G=(Le,fe)=>{if(!fe||!fe.maxAge&&!Le[x])return!1;const pe=Date.now()-fe.now;return fe.maxAge?pe>fe.maxAge:Le[x]&&pe>Le[x]},oe=Le=>{if(Le[Q]>Le[re])for(let fe=Le[H].tail;Le[Q]>Le[re]&&fe!==null;){const pe=fe.prev;J(Le,fe),fe=pe}},J=(Le,fe)=>{if(fe){const pe=fe.value;Le[L]&&Le[L](pe.key,pe.value),Le[Q]-=pe.length,Le[$].delete(pe.key),Le[H].removeNode(fe)}};class Ce{constructor(fe,pe,Z,ae,ee){this.key=fe,this.value=pe,this.length=Z,this.now=ae,this.maxAge=ee||0}}const _e=(Le,fe,pe,Z)=>{let ae=pe.value;G(Le,ae)&&(J(Le,pe),Le[q]||(ae=void 0)),ae&&fe.call(Z,ae.value,ae.key,Le)};d.exports=te},7824:d=>{var K=1e3,U=K*60,B=U*60,re=B*24,Q=re*7,M=re*365.25;d.exports=function(H,$){$=$||{};var se=typeof H;if(se==="string"&&H.length>0)return q(H);if(se==="number"&&isFinite(H))return $.long?L(H):x(H);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(H))};function q(H){if(H=String(H),!(H.length>100)){var $=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(H);if(!!$){var se=parseFloat($[1]),I=($[2]||"ms").toLowerCase();switch(I){case"years":case"year":case"yrs":case"yr":case"y":return se*M;case"weeks":case"week":case"w":return se*Q;case"days":case"day":case"d":return se*re;case"hours":case"hour":case"hrs":case"hr":case"h":return se*B;case"minutes":case"minute":case"mins":case"min":case"m":return se*U;case"seconds":case"second":case"secs":case"sec":case"s":return se*K;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return se;default:return}}}}function x(H){var $=Math.abs(H);return $>=re?Math.round(H/re)+"d":$>=B?Math.round(H/B)+"h":$>=U?Math.round(H/U)+"m":$>=K?Math.round(H/K)+"s":H+"ms"}function L(H){var $=Math.abs(H);return $>=re?D(H,$,re,"day"):$>=B?D(H,$,B,"hour"):$>=U?D(H,$,U,"minute"):$>=K?D(H,$,K,"second"):H+" ms"}function D(H,$,se,I){var te=$>=se*1.5;return Math.round(H/se)+" "+I+(te?"s":"")}},5658:(d,K,U)=>{"use strict";var B=U(5477),re=U(1907),Q={TRANSITIONAL:0,NONTRANSITIONAL:1};function M(I){return I.split("\0").map(function(te){return te.normalize("NFC")}).join("\0")}function q(I){for(var te=0,W=re.length-1;te<=W;){var G=Math.floor((te+W)/2),oe=re[G];if(oe[0][0]<=I&&oe[0][1]>=I)return oe;oe[0][0]>I?W=G-1:te=G+1}return null}var x=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function L(I){return I.replace(x,"_").length}function D(I,te,W){for(var G=!1,oe="",J=L(I),Ce=0;Ce<J;++Ce){var _e=I.codePointAt(Ce),Le=q(_e);switch(Le[1]){case"disallowed":G=!0,oe+=String.fromCodePoint(_e);break;case"ignored":break;case"mapped":oe+=String.fromCodePoint.apply(String,Le[2]);break;case"deviation":W===Q.TRANSITIONAL?oe+=String.fromCodePoint.apply(String,Le[2]):oe+=String.fromCodePoint(_e);break;case"valid":oe+=String.fromCodePoint(_e);break;case"disallowed_STD3_mapped":te?(G=!0,oe+=String.fromCodePoint(_e)):oe+=String.fromCodePoint.apply(String,Le[2]);break;case"disallowed_STD3_valid":te&&(G=!0),oe+=String.fromCodePoint(_e);break}}return{string:oe,error:G}}var H=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function $(I,te){I.substr(0,4)==="xn--"&&(I=B.toUnicode(I),te=Q.NONTRANSITIONAL);var W=!1;(M(I)!==I||I[3]==="-"&&I[4]==="-"||I[0]==="-"||I[I.length-1]==="-"||I.indexOf(".")!==-1||I.search(H)===0)&&(W=!0);for(var G=L(I),oe=0;oe<G;++oe){var J=q(I.codePointAt(oe));if(se===Q.TRANSITIONAL&&J[1]!=="valid"||se===Q.NONTRANSITIONAL&&J[1]!=="valid"&&J[1]!=="deviation"){W=!0;break}}return{label:I,error:W}}function se(I,te,W){var G=D(I,te,W);G.string=M(G.string);for(var oe=G.string.split("."),J=0;J<oe.length;++J)try{var Ce=$(oe[J]);oe[J]=Ce.label,G.error=G.error||Ce.error}catch(_e){G.error=!0}return{string:oe.join("."),error:G.error}}d.exports.toASCII=function(I,te,W,G){var oe=se(I,te,W),J=oe.string.split(".");if(J=J.map(function(Le){try{return B.toASCII(Le)}catch(fe){return oe.error=!0,Le}}),G){var Ce=J.slice(0,J.length-1).join(".").length;(Ce.length>253||Ce.length===0)&&(oe.error=!0);for(var _e=0;_e<J.length;++_e)if(J.length>63||J.length===0){oe.error=!0;break}}return oe.error?null:J.join(".")},d.exports.toUnicode=function(I,te){var W=se(I,te,Q.NONTRANSITIONAL);return{domain:W.string,error:W.error}},d.exports.PROCESSING_OPTIONS=Q},8808:d=>{"use strict";var K={};d.exports=K;function U(Q){return Q<0?-1:1}function B(Q){return Q%1==.5&&(Q&1)==0?Math.floor(Q):Math.round(Q)}function re(Q,M){M.unsigned||--Q;const q=M.unsigned?0:-Math.pow(2,Q),x=Math.pow(2,Q)-1,L=M.moduloBitLength?Math.pow(2,M.moduloBitLength):Math.pow(2,Q),D=M.moduloBitLength?Math.pow(2,M.moduloBitLength-1):Math.pow(2,Q-1);return function(H,$){$||($={});let se=+H;if($.enforceRange){if(!Number.isFinite(se))throw new TypeError("Argument is not a finite number");if(se=U(se)*Math.floor(Math.abs(se)),se<q||se>x)throw new TypeError("Argument is not in byte range");return se}if(!isNaN(se)&&$.clamp)return se=B(se),se<q&&(se=q),se>x&&(se=x),se;if(!Number.isFinite(se)||se===0)return 0;if(se=U(se)*Math.floor(Math.abs(se)),se=se%L,!M.unsigned&&se>=D)return se-L;if(M.unsigned){if(se<0)se+=L;else if(se===-0)return 0}return se}}K.void=function(){},K.boolean=function(Q){return!!Q},K.byte=re(8,{unsigned:!1}),K.octet=re(8,{unsigned:!0}),K.short=re(16,{unsigned:!1}),K["unsigned short"]=re(16,{unsigned:!0}),K.long=re(32,{unsigned:!1}),K["unsigned long"]=re(32,{unsigned:!0}),K["long long"]=re(32,{unsigned:!1,moduloBitLength:64}),K["unsigned long long"]=re(32,{unsigned:!0,moduloBitLength:64}),K.double=function(Q){const M=+Q;if(!Number.isFinite(M))throw new TypeError("Argument is not a finite floating-point value");return M},K["unrestricted double"]=function(Q){const M=+Q;if(isNaN(M))throw new TypeError("Argument is NaN");return M},K.float=K.double,K["unrestricted float"]=K["unrestricted double"],K.DOMString=function(Q,M){return M||(M={}),M.treatNullAsEmptyString&&Q===null?"":String(Q)},K.ByteString=function(Q,M){const q=String(Q);let x;for(let L=0;(x=q.codePointAt(L))!==void 0;++L)if(x>255)throw new TypeError("Argument is not a valid bytestring");return q},K.USVString=function(Q){const M=String(Q),q=M.length,x=[];for(let L=0;L<q;++L){const D=M.charCodeAt(L);if(D<55296||D>57343)x.push(String.fromCodePoint(D));else if(56320<=D&&D<=57343)x.push(String.fromCodePoint(65533));else if(L===q-1)x.push(String.fromCodePoint(65533));else{const H=M.charCodeAt(L+1);if(56320<=H&&H<=57343){const $=D&1023,se=H&1023;x.push(String.fromCodePoint((2<<15)+(2<<9)*$+se)),++L}else x.push(String.fromCodePoint(65533))}}return x.join("")},K.Date=function(Q,M){if(!(Q instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(Q))return Q},K.RegExp=function(Q,M){return Q instanceof RegExp||(Q=new RegExp(Q)),Q}},1167:(d,K,U)=>{"use strict";const B=U(24);K.implementation=class{constructor(Q){const M=Q[0],q=Q[1];let x=null;if(q!==void 0&&(x=B.basicURLParse(q),x==="failure"))throw new TypeError("Invalid base URL");const L=B.basicURLParse(M,{baseURL:x});if(L==="failure")throw new TypeError("Invalid URL");this._url=L}get href(){return B.serializeURL(this._url)}set href(Q){const M=B.basicURLParse(Q);if(M==="failure")throw new TypeError("Invalid URL");this._url=M}get origin(){return B.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(Q){B.basicURLParse(Q+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(Q){B.cannotHaveAUsernamePasswordPort(this._url)||B.setTheUsername(this._url,Q)}get password(){return this._url.password}set password(Q){B.cannotHaveAUsernamePasswordPort(this._url)||B.setThePassword(this._url,Q)}get host(){const Q=this._url;return Q.host===null?"":Q.port===null?B.serializeHost(Q.host):B.serializeHost(Q.host)+":"+B.serializeInteger(Q.port)}set host(Q){this._url.cannotBeABaseURL||B.basicURLParse(Q,{url:this._url,stateOverride:"host"})}get hostname(){return this._url.host===null?"":B.serializeHost(this._url.host)}set hostname(Q){this._url.cannotBeABaseURL||B.basicURLParse(Q,{url:this._url,stateOverride:"hostname"})}get port(){return this._url.port===null?"":B.serializeInteger(this._url.port)}set port(Q){B.cannotHaveAUsernamePasswordPort(this._url)||(Q===""?this._url.port=null:B.basicURLParse(Q,{url:this._url,stateOverride:"port"}))}get pathname(){return this._url.cannotBeABaseURL?this._url.path[0]:this._url.path.length===0?"":"/"+this._url.path.join("/")}set pathname(Q){this._url.cannotBeABaseURL||(this._url.path=[],B.basicURLParse(Q,{url:this._url,stateOverride:"path start"}))}get search(){return this._url.query===null||this._url.query===""?"":"?"+this._url.query}set search(Q){const M=this._url;if(Q===""){M.query=null;return}const q=Q[0]==="?"?Q.substring(1):Q;M.query="",B.basicURLParse(q,{url:M,stateOverride:"query"})}get hash(){return this._url.fragment===null||this._url.fragment===""?"":"#"+this._url.fragment}set hash(Q){if(Q===""){this._url.fragment=null;return}const M=Q[0]==="#"?Q.substring(1):Q;this._url.fragment="",B.basicURLParse(M,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},9221:(d,K,U)=>{"use strict";const B=U(8808),re=U(2625),Q=U(1167),M=re.implSymbol;function q(x){if(!this||this[M]||!(this instanceof q))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");if(arguments.length<1)throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");const L=[];for(let D=0;D<arguments.length&&D<2;++D)L[D]=arguments[D];L[0]=B.USVString(L[0]),L[1]!==void 0&&(L[1]=B.USVString(L[1])),d.exports.setup(this,L)}q.prototype.toJSON=function(){if(!this||!d.exports.is(this))throw new TypeError("Illegal invocation");const L=[];for(let D=0;D<arguments.length&&D<0;++D)L[D]=arguments[D];return this[M].toJSON.apply(this[M],L)},Object.defineProperty(q.prototype,"href",{get(){return this[M].href},set(x){x=B.USVString(x),this[M].href=x},enumerable:!0,configurable:!0}),q.prototype.toString=function(){if(!this||!d.exports.is(this))throw new TypeError("Illegal invocation");return this.href},Object.defineProperty(q.prototype,"origin",{get(){return this[M].origin},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"protocol",{get(){return this[M].protocol},set(x){x=B.USVString(x),this[M].protocol=x},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"username",{get(){return this[M].username},set(x){x=B.USVString(x),this[M].username=x},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"password",{get(){return this[M].password},set(x){x=B.USVString(x),this[M].password=x},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"host",{get(){return this[M].host},set(x){x=B.USVString(x),this[M].host=x},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"hostname",{get(){return this[M].hostname},set(x){x=B.USVString(x),this[M].hostname=x},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"port",{get(){return this[M].port},set(x){x=B.USVString(x),this[M].port=x},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"pathname",{get(){return this[M].pathname},set(x){x=B.USVString(x),this[M].pathname=x},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"search",{get(){return this[M].search},set(x){x=B.USVString(x),this[M].search=x},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"hash",{get(){return this[M].hash},set(x){x=B.USVString(x),this[M].hash=x},enumerable:!0,configurable:!0}),d.exports={is(x){return!!x&&x[M]instanceof Q.implementation},create(x,L){let D=Object.create(q.prototype);return this.setup(D,x,L),D},setup(x,L,D){D||(D={}),D.wrapper=x,x[M]=new Q.implementation(L,D),x[M][re.wrapperSymbol]=x},interface:q,expose:{Window:{URL:q},Worker:{URL:q}}}},4831:(d,K,U)=>{"use strict";K.URL=U(9221).interface,U(24).serializeURL,U(24).serializeURLOrigin,U(24).basicURLParse,U(24).setTheUsername,U(24).setThePassword,U(24).serializeHost,U(24).serializeInteger,U(24).parseURL},24:(d,K,U)=>{"use strict";const B=U(5477),re=U(5658),Q={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},M=Symbol("failure");function q(ce){return B.ucs2.decode(ce).length}function x(ce,le){const Fe=ce[le];return isNaN(Fe)?void 0:String.fromCodePoint(Fe)}function L(ce){return ce>=48&&ce<=57}function D(ce){return ce>=65&&ce<=90||ce>=97&&ce<=122}function H(ce){return D(ce)||L(ce)}function $(ce){return L(ce)||ce>=65&&ce<=70||ce>=97&&ce<=102}function se(ce){return ce==="."||ce.toLowerCase()==="%2e"}function I(ce){return ce=ce.toLowerCase(),ce===".."||ce==="%2e."||ce===".%2e"||ce==="%2e%2e"}function te(ce,le){return D(ce)&&(le===58||le===124)}function W(ce){return ce.length===2&&D(ce.codePointAt(0))&&(ce[1]===":"||ce[1]==="|")}function G(ce){return ce.length===2&&D(ce.codePointAt(0))&&ce[1]===":"}function oe(ce){return ce.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function J(ce){return ce.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function Ce(ce){return Q[ce]!==void 0}function _e(ce){return Ce(ce.scheme)}function Le(ce){return Q[ce]}function fe(ce){let le=ce.toString(16).toUpperCase();return le.length===1&&(le="0"+le),"%"+le}function pe(ce){const le=new Buffer(ce);let Fe="";for(let We=0;We<le.length;++We)Fe+=fe(le[We]);return Fe}function Z(ce){const le=new Buffer(ce),Fe=[];for(let We=0;We<le.length;++We)le[We]!==37?Fe.push(le[We]):le[We]===37&&$(le[We+1])&&$(le[We+2])?(Fe.push(parseInt(le.slice(We+1,We+3).toString(),16)),We+=2):Fe.push(le[We]);return new Buffer(Fe).toString()}function ae(ce){return ce<=31||ce>126}const ee=new Set([32,34,35,60,62,63,96,123,125]);function he(ce){return ae(ce)||ee.has(ce)}const Pe=new Set([47,58,59,61,64,91,92,93,94,124]);function Ne(ce){return he(ce)||Pe.has(ce)}function ke(ce,le){const Fe=String.fromCodePoint(ce);return le(ce)?pe(Fe):Fe}function Re(ce){let le=10;return ce.length>=2&&ce.charAt(0)==="0"&&ce.charAt(1).toLowerCase()==="x"?(ce=ce.substring(2),le=16):ce.length>=2&&ce.charAt(0)==="0"&&(ce=ce.substring(1),le=8),ce===""?0:(le===10?/[^0-9]/:le===16?/[^0-9A-Fa-f]/:/[^0-7]/).test(ce)?M:parseInt(ce,le)}function tt(ce){const le=ce.split(".");if(le[le.length-1]===""&&le.length>1&&le.pop(),le.length>4)return ce;const Fe=[];for(const mt of le){if(mt==="")return ce;const ei=Re(mt);if(ei===M)return ce;Fe.push(ei)}for(let mt=0;mt<Fe.length-1;++mt)if(Fe[mt]>255)return M;if(Fe[Fe.length-1]>=Math.pow(256,5-Fe.length))return M;let We=Fe.pop(),nt=0;for(const mt of Fe)We+=mt*Math.pow(256,3-nt),++nt;return We}function Ze(ce){let le="",Fe=ce;for(let We=1;We<=4;++We)le=String(Fe%256)+le,We!==4&&(le="."+le),Fe=Math.floor(Fe/256);return le}function bt(ce){const le=[0,0,0,0,0,0,0,0];let Fe=0,We=null,nt=0;if(ce=B.ucs2.decode(ce),ce[nt]===58){if(ce[nt+1]!==58)return M;nt+=2,++Fe,We=Fe}for(;nt<ce.length;){if(Fe===8)return M;if(ce[nt]===58){if(We!==null)return M;++nt,++Fe,We=Fe;continue}let mt=0,ei=0;for(;ei<4&&$(ce[nt]);)mt=mt*16+parseInt(x(ce,nt),16),++nt,++ei;if(ce[nt]===46){if(ei===0||(nt-=ei,Fe>6))return M;let be=0;for(;ce[nt]!==void 0;){let ve=null;if(be>0)if(ce[nt]===46&&be<4)++nt;else return M;if(!L(ce[nt]))return M;for(;L(ce[nt]);){const Me=parseInt(x(ce,nt));if(ve===null)ve=Me;else{if(ve===0)return M;ve=ve*10+Me}if(ve>255)return M;++nt}le[Fe]=le[Fe]*256+ve,++be,(be===2||be===4)&&++Fe}if(be!==4)return M;break}else if(ce[nt]===58){if(++nt,ce[nt]===void 0)return M}else if(ce[nt]!==void 0)return M;le[Fe]=mt,++Fe}if(We!==null){let mt=Fe-We;for(Fe=7;Fe!==0&&mt>0;){const ei=le[We+mt-1];le[We+mt-1]=le[Fe],le[Fe]=ei,--Fe,--mt}}else if(We===null&&Fe!==8)return M;return le}function _t(ce){let le="";const We=jt(ce).idx;let nt=!1;for(let mt=0;mt<=7;++mt)if(!(nt&&ce[mt]===0)){if(nt&&(nt=!1),We===mt){le+=mt===0?"::":":",nt=!0;continue}le+=ce[mt].toString(16),mt!==7&&(le+=":")}return le}function zt(ce,le){if(ce[0]==="[")return ce[ce.length-1]!=="]"?M:bt(ce.substring(1,ce.length-1));if(!le)return di(ce);const Fe=Z(ce),We=re.toASCII(Fe,!1,re.PROCESSING_OPTIONS.NONTRANSITIONAL,!1);if(We===null||oe(We))return M;const nt=tt(We);return typeof nt=="number"||nt===M?nt:We}function di(ce){if(J(ce))return M;let le="";const Fe=B.ucs2.decode(ce);for(let We=0;We<Fe.length;++We)le+=ke(Fe[We],ae);return le}function jt(ce){let le=null,Fe=1,We=null,nt=0;for(let mt=0;mt<ce.length;++mt)ce[mt]!==0?(nt>Fe&&(le=We,Fe=nt),We=null,nt=0):(We===null&&(We=mt),++nt);return nt>Fe&&(le=We,Fe=nt),{idx:le,len:Fe}}function ai(ce){return typeof ce=="number"?Ze(ce):ce instanceof Array?"["+_t(ce)+"]":ce}function Jt(ce){return ce.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function ui(ce){return ce.replace(/\u0009|\u000A|\u000D/g,"")}function tr(ce){const le=ce.path;le.length!==0&&(ce.scheme==="file"&&le.length===1&&Sr(le[0])||le.pop())}function Vr(ce){return ce.username!==""||ce.password!==""}function Er(ce){return ce.host===null||ce.host===""||ce.cannotBeABaseURL||ce.scheme==="file"}function Sr(ce){return/^[A-Za-z]:$/.test(ce)}function Gt(ce,le,Fe,We,nt){if(this.pointer=0,this.input=ce,this.base=le||null,this.encodingOverride=Fe||"utf-8",this.stateOverride=nt,this.url=We,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const ei=Jt(this.input);ei!==this.input&&(this.parseError=!0),this.input=ei}const mt=ui(this.input);for(mt!==this.input&&(this.parseError=!0),this.input=mt,this.state=nt||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=B.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const ei=this.input[this.pointer],be=isNaN(ei)?void 0:String.fromCodePoint(ei),ve=this["parse "+this.state](ei,be);if(ve){if(ve===M){this.failure=!0;break}}else break}}Gt.prototype["parse scheme start"]=function(le,Fe){if(D(le))this.buffer+=Fe.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=!0,M;return!0},Gt.prototype["parse scheme"]=function(le,Fe){if(H(le)||le===43||le===45||le===46)this.buffer+=Fe.toLowerCase();else if(le===58){if(this.stateOverride&&(_e(this.url)&&!Ce(this.buffer)||!_e(this.url)&&Ce(this.buffer)||(Vr(this.url)||this.url.port!==null)&&this.buffer==="file"||this.url.scheme==="file"&&(this.url.host===""||this.url.host===null))||(this.url.scheme=this.buffer,this.buffer="",this.stateOverride))return!1;this.url.scheme==="file"?((this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47)&&(this.parseError=!0),this.state="file"):_e(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme?this.state="special relative or authority":_e(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===47?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else if(!this.stateOverride)this.buffer="",this.state="no scheme",this.pointer=-1;else return this.parseError=!0,M;return!0},Gt.prototype["parse no scheme"]=function(le){return this.base===null||this.base.cannotBeABaseURL&&le!==35?M:(this.base.cannotBeABaseURL&&le===35?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):this.base.scheme==="file"?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},Gt.prototype["parse special relative or authority"]=function(le){return le===47&&this.input[this.pointer+1]===47?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},Gt.prototype["parse path or authority"]=function(le){return le===47?this.state="authority":(this.state="path",--this.pointer),!0},Gt.prototype["parse relative"]=function(le){return this.url.scheme=this.base.scheme,isNaN(le)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):le===47?this.state="relative slash":le===63?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):le===35?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):_e(this.url)&&le===92?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},Gt.prototype["parse relative slash"]=function(le){return _e(this.url)&&(le===47||le===92)?(le===92&&(this.parseError=!0),this.state="special authority ignore slashes"):le===47?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer),!0},Gt.prototype["parse special authority slashes"]=function(le){return le===47&&this.input[this.pointer+1]===47?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},Gt.prototype["parse special authority ignore slashes"]=function(le){return le!==47&&le!==92?(this.state="authority",--this.pointer):this.parseError=!0,!0},Gt.prototype["parse authority"]=function(le,Fe){if(le===64){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const We=q(this.buffer);for(let nt=0;nt<We;++nt){const mt=this.buffer.codePointAt(nt);if(mt===58&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const ei=ke(mt,Ne);this.passwordTokenSeenFlag?this.url.password+=ei:this.url.username+=ei}this.buffer=""}else if(isNaN(le)||le===47||le===63||le===35||_e(this.url)&&le===92){if(this.atFlag&&this.buffer==="")return this.parseError=!0,M;this.pointer-=q(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=Fe;return!0},Gt.prototype["parse hostname"]=Gt.prototype["parse host"]=function(le,Fe){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(le===58&&!this.arrFlag){if(this.buffer==="")return this.parseError=!0,M;const We=zt(this.buffer,_e(this.url));if(We===M)return M;if(this.url.host=We,this.buffer="",this.state="port",this.stateOverride==="hostname")return!1}else if(isNaN(le)||le===47||le===63||le===35||_e(this.url)&&le===92){if(--this.pointer,_e(this.url)&&this.buffer==="")return this.parseError=!0,M;if(this.stateOverride&&this.buffer===""&&(Vr(this.url)||this.url.port!==null))return this.parseError=!0,!1;const We=zt(this.buffer,_e(this.url));if(We===M)return M;if(this.url.host=We,this.buffer="",this.state="path start",this.stateOverride)return!1}else le===91?this.arrFlag=!0:le===93&&(this.arrFlag=!1),this.buffer+=Fe;return!0},Gt.prototype["parse port"]=function(le,Fe){if(L(le))this.buffer+=Fe;else if(isNaN(le)||le===47||le===63||le===35||_e(this.url)&&le===92||this.stateOverride){if(this.buffer!==""){const We=parseInt(this.buffer);if(We>Math.pow(2,16)-1)return this.parseError=!0,M;this.url.port=We===Le(this.url.scheme)?null:We,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}else return this.parseError=!0,M;return!0};const Xi=new Set([47,92,63,35]);Gt.prototype["parse file"]=function(le){return this.url.scheme="file",le===47||le===92?(le===92&&(this.parseError=!0),this.state="file slash"):this.base!==null&&this.base.scheme==="file"?isNaN(le)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):le===63?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):le===35?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||!te(le,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!Xi.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),tr(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},Gt.prototype["parse file slash"]=function(le){return le===47||le===92?(le===92&&(this.parseError=!0),this.state="file host"):(this.base!==null&&this.base.scheme==="file"&&(G(this.base.path[0])?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},Gt.prototype["parse file host"]=function(le,Fe){if(isNaN(le)||le===47||le===92||le===63||le===35)if(--this.pointer,!this.stateOverride&&W(this.buffer))this.parseError=!0,this.state="path";else if(this.buffer===""){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let We=zt(this.buffer,_e(this.url));if(We===M)return M;if(We==="localhost"&&(We=""),this.url.host=We,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=Fe;return!0},Gt.prototype["parse path start"]=function(le){return _e(this.url)?(le===92&&(this.parseError=!0),this.state="path",le!==47&&le!==92&&--this.pointer):!this.stateOverride&&le===63?(this.url.query="",this.state="query"):!this.stateOverride&&le===35?(this.url.fragment="",this.state="fragment"):le!==void 0&&(this.state="path",le!==47&&--this.pointer),!0},Gt.prototype["parse path"]=function(le){if(isNaN(le)||le===47||_e(this.url)&&le===92||!this.stateOverride&&(le===63||le===35)){if(_e(this.url)&&le===92&&(this.parseError=!0),I(this.buffer)?(tr(this.url),le!==47&&!(_e(this.url)&&le===92)&&this.url.path.push("")):se(this.buffer)&&le!==47&&!(_e(this.url)&&le===92)?this.url.path.push(""):se(this.buffer)||(this.url.scheme==="file"&&this.url.path.length===0&&W(this.buffer)&&(this.url.host!==""&&this.url.host!==null&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)),this.buffer="",this.url.scheme==="file"&&(le===void 0||le===63||le===35))for(;this.url.path.length>1&&this.url.path[0]==="";)this.parseError=!0,this.url.path.shift();le===63&&(this.url.query="",this.state="query"),le===35&&(this.url.fragment="",this.state="fragment")}else le===37&&(!$(this.input[this.pointer+1])||!$(this.input[this.pointer+2]))&&(this.parseError=!0),this.buffer+=ke(le,he);return!0},Gt.prototype["parse cannot-be-a-base-URL path"]=function(le){return le===63?(this.url.query="",this.state="query"):le===35?(this.url.fragment="",this.state="fragment"):(!isNaN(le)&&le!==37&&(this.parseError=!0),le===37&&(!$(this.input[this.pointer+1])||!$(this.input[this.pointer+2]))&&(this.parseError=!0),isNaN(le)||(this.url.path[0]=this.url.path[0]+ke(le,ae))),!0},Gt.prototype["parse query"]=function(le,Fe){if(isNaN(le)||!this.stateOverride&&le===35){(!_e(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")&&(this.encodingOverride="utf-8");const We=new Buffer(this.buffer);for(let nt=0;nt<We.length;++nt)We[nt]<33||We[nt]>126||We[nt]===34||We[nt]===35||We[nt]===60||We[nt]===62?this.url.query+=fe(We[nt]):this.url.query+=String.fromCodePoint(We[nt]);this.buffer="",le===35&&(this.url.fragment="",this.state="fragment")}else le===37&&(!$(this.input[this.pointer+1])||!$(this.input[this.pointer+2]))&&(this.parseError=!0),this.buffer+=Fe;return!0},Gt.prototype["parse fragment"]=function(le){return isNaN(le)||(le===0?this.parseError=!0:(le===37&&(!$(this.input[this.pointer+1])||!$(this.input[this.pointer+2]))&&(this.parseError=!0),this.url.fragment+=ke(le,ae))),!0};function Zt(ce,le){let Fe=ce.scheme+":";if(ce.host!==null?(Fe+="//",(ce.username!==""||ce.password!=="")&&(Fe+=ce.username,ce.password!==""&&(Fe+=":"+ce.password),Fe+="@"),Fe+=ai(ce.host),ce.port!==null&&(Fe+=":"+ce.port)):ce.host===null&&ce.scheme==="file"&&(Fe+="//"),ce.cannotBeABaseURL)Fe+=ce.path[0];else for(const We of ce.path)Fe+="/"+We;return ce.query!==null&&(Fe+="?"+ce.query),!le&&ce.fragment!==null&&(Fe+="#"+ce.fragment),Fe}function Di(ce){let le=ce.scheme+"://";return le+=ai(ce.host),ce.port!==null&&(le+=":"+ce.port),le}d.exports.serializeURL=Zt,d.exports.serializeURLOrigin=function(ce){switch(ce.scheme){case"blob":try{return d.exports.serializeURLOrigin(d.exports.parseURL(ce.path[0]))}catch(le){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return Di({scheme:ce.scheme,host:ce.host,port:ce.port});case"file":return"file://";default:return"null"}},d.exports.basicURLParse=function(ce,le){le===void 0&&(le={});const Fe=new Gt(ce,le.baseURL,le.encodingOverride,le.url,le.stateOverride);return Fe.failure?"failure":Fe.url},d.exports.setTheUsername=function(ce,le){ce.username="";const Fe=B.ucs2.decode(le);for(let We=0;We<Fe.length;++We)ce.username+=ke(Fe[We],Ne)},d.exports.setThePassword=function(ce,le){ce.password="";const Fe=B.ucs2.decode(le);for(let We=0;We<Fe.length;++We)ce.password+=ke(Fe[We],Ne)},d.exports.serializeHost=ai,d.exports.cannotHaveAUsernamePasswordPort=Er,d.exports.serializeInteger=function(ce){return String(ce)},d.exports.parseURL=function(ce,le){return le===void 0&&(le={}),d.exports.basicURLParse(ce,{baseURL:le.baseURL,encodingOverride:le.encodingOverride})}},2625:d=>{"use strict";d.exports.mixin=function(U,B){const re=Object.getOwnPropertyNames(B);for(let Q=0;Q<re.length;++Q)Object.defineProperty(U,re[Q],Object.getOwnPropertyDescriptor(B,re[Q]))},d.exports.wrapperSymbol=Symbol("wrapper"),d.exports.implSymbol=Symbol("impl"),d.exports.wrapperForImpl=function(K){return K[d.exports.wrapperSymbol]},d.exports.implForWrapper=function(K){return K[d.exports.implSymbol]}},778:(d,K,U)=>{var B=U(2479);d.exports=B(re),d.exports.strict=B(Q),re.proto=re(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return re(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Q(this)},configurable:!0})});function re(M){var q=function(){return q.called?q.value:(q.called=!0,q.value=M.apply(this,arguments))};return q.called=!1,q}function Q(M){var q=function(){if(q.called)throw new Error(q.onceError);return q.called=!0,q.value=M.apply(this,arguments)},x=M.name||"Function wrapped with `once`";return q.onceError=x+" shouldn't be called more than once",q.called=!1,q}},6200:(d,K,U)=>{"use strict";const B=U(3837),re=U(1003),Q=/\s/,M=/\r|\n/,q=/^(Host|Match)$/i,x=1,L=2;function D($,se){return se.hasOwnProperty($.param)&&se[$.param]===$.value}class H extends Array{compute(se){const I={},te=(W,G)=>{W==="IdentityFile"?(I[W]||(I[W]=[])).push(G):I[W]==null&&(I[W]=G)};for(const W of this)W.type===x&&(W.param==="Host"?re(W.value,se)&&(te(W.param,W.value),W.config.filter(G=>G.type===x).forEach(G=>te(G.param,G.value))):W.param==="Match"||te(W.param,W.value));return I}find(se={}){if(typeof se=="function")return super.find(se);if(!(se&&("Host"in se||"Match"in se)))throw new Error("Can only find by Host or Match");return super.find(I=>D(I,se))}remove(se={}){if(!(se&&("Host"in se||"Match"in se)))throw new Error("Can only remove by Host or Match");const I=typeof se=="function"?super.findIndex(se):super.findIndex(te=>D(te,se));if(I>=0)return this.splice(I,1)}toString(){return this.constructor.stringify(this)}append(se){let I=" ";e:for(const G of this)if(q.test(G.param)){for(const oe of G.config)if(oe.before){I=oe.before;break e}}if(this.length>0){let G=this[this.length-1];G.config&&(G=G.config[G.config.length-1]),G.after=`
|
||
`}let te=this,W=this;for(const G in se){const oe={type:x,param:G,separator:" ",value:se[G],before:"",after:`
|
||
`};q.test(G)?(te=W,te.push(oe),te=oe.config=new H):(oe.before=te===W?"":I,te.push(oe))}return W}static stringify(se){let I="";const te=(G,oe)=>Array.isArray(G)?G.map(J=>te(J,Q.test(J))).join(" "):oe?`"${G}"`:G,W=G=>{if(I+=G.before,G.type===L)I+=G.content;else if(G.type===x){const oe=G.quoted||/IdentityFile/i.test(G.param)&&Q.test(G.value),J=te(G.value,oe);I+=`${G.param}${G.separator}${J}`}I+=G.after,G.config&&G.config.forEach(W)};return se.forEach(W),I}static get DIRECTIVE(){return x}static get COMMENT(){return L}static parse(se){let I=0,te=oe(),W=new H,G=W;function oe(){return se[I++]}function J(){let he="";for(;Q.test(te);)he+=te,te=oe();return he}function Ce(){let he="";for(;M.test(te);)he+=te,te=oe();return he}function _e(){let he="";for(;te&&/[^ \t=]/.test(te);)he+=te,te=oe();return he}function Le(){let he=J();return te==="="&&(he+=te,te=oe()),he+J()}function fe(){let he="",Pe=!1,Ne=!1;for(;te&&!M.test(te);)Ne?(he+=te==='"'?te:`\\${te}`,Ne=!1):te==='"'&&(!he||Pe)?Pe=!Pe:te==="\\"?Ne=!0:he+=te,te=oe();if(Pe||Ne)throw new Error(`Unexpected line break at ${he}`);return he.trim()}function pe(){const he=L;let Pe="";for(;te&&!M.test(te);)Pe+=te,te=oe();return{type:he,content:Pe}}function Z(){const he=[];let Pe="",Ne=!1,ke=!1;for(;te&&!M.test(te);)ke?(Pe+=te==='"'?te:`\\${te}`,ke=!1):te==='"'?Ne=!Ne:te==="\\"?ke=!0:Ne?Pe+=te:/[ \t]/.test(te)?Pe&&(he.push(Pe),Pe=""):Pe+=te,te=oe();if(Ne||ke)throw new Error(`Unexpected line break at ${he.concat(Pe).join(" ")}`);return he.push(Pe),he.length>1?he:he[0]}function ae(){const he=x,Pe=_e(),Ne=Pe.toLowerCase()=="host",ke={type:he,param:Pe,separator:Le(),quoted:!Ne&&te==='"',value:Ne?Z():fe()};return ke.quoted||delete ke.quoted,ke}function ee(){const he=J(),Pe=te==="#"?pe():ae(),Ne=Ce();return Pe.before=he,Pe.after=Ne,Pe}for(;te;){let he=ee();he.type===x&&q.test(he.param)?(W=G,W.push(he),W=he.config=new H):W.push(he)}return G}}H.find=B.deprecate(($,se)=>{const I=$.find(se);return I?[I,$.indexOf(I)]:null},"SSHConfig.find() is deprected. Use SSHConfig.prototype.find() instead."),d.exports=H},1003:d=>{"use strict";function K(B,re){return B=B.replace(/\./g,"\\.").replace(/\+/g,"\\+").replace(/\*/g,".*").replace(/\?/g,".?"),new RegExp("^(?:"+B+")$").test(re)}function U(B,re){const Q=Array.isArray(B)?B:B.split(/,/);let M=!1;for(const q of Q){if(q[0]=="!"&&K(q.slice(1),re))return!1;K(q,re)&&(M=!0)}return M}d.exports=U},2130:(d,K,U)=>{"use strict";const B=U(2037),re=U(6224),Q=U(6560),{env:M}=process;let q;Q("no-color")||Q("no-colors")||Q("color=false")||Q("color=never")?q=0:(Q("color")||Q("colors")||Q("color=true")||Q("color=always"))&&(q=1),"FORCE_COLOR"in M&&(M.FORCE_COLOR==="true"?q=1:M.FORCE_COLOR==="false"?q=0:q=M.FORCE_COLOR.length===0?1:Math.min(parseInt(M.FORCE_COLOR,10),3));function x(H){return H===0?!1:{level:H,hasBasic:!0,has256:H>=2,has16m:H>=3}}function L(H,$){if(q===0)return 0;if(Q("color=16m")||Q("color=full")||Q("color=truecolor"))return 3;if(Q("color=256"))return 2;if(H&&!$&&q===void 0)return 0;const se=q||0;if(M.TERM==="dumb")return se;if(process.platform==="win32"){const I=B.release().split(".");return Number(I[0])>=10&&Number(I[2])>=10586?Number(I[2])>=14931?3:2:1}if("CI"in M)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(I=>I in M)||M.CI_NAME==="codeship"?1:se;if("TEAMCITY_VERSION"in M)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(M.TEAMCITY_VERSION)?1:0;if(M.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in M){const I=parseInt((M.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(M.TERM_PROGRAM){case"iTerm.app":return I>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(M.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(M.TERM)||"COLORTERM"in M?1:se}function D(H){const $=L(H,H&&H.isTTY);return x($)}d.exports={supportsColor:D,stdout:x(L(!0,re.isatty(1))),stderr:x(L(!0,re.isatty(2)))}},7121:(d,K,U)=>{"use strict";U.d(K,{Z:()=>M});function B(q){var x,L=q.Symbol;return typeof L=="function"?L.observable?x=L.observable:(x=L("observable"),L.observable=x):x="@@observable",x}d=U.hmd(d);var re;typeof self!="undefined"?re=self:typeof window!="undefined"?re=window:typeof global!="undefined"?re=global:re=d;var Q=B(re);const M=Q},4802:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var B=U(6363);K.ExperimentationService=B.ExperimentationService},6363:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});const B=U(4067),re=U(4234),Q=U(5975);class M extends Q.ExperimentationServiceAutoPolling{constructor(x){super(x.telemetry,x.filterProviders||[],x.refetchInterval!=null?x.refetchInterval:0,x.featuresTelemetryPropertyName,x.assignmentContextTelemetryPropertyName,x.telemetryEventName,x.storageKey,x.keyValueStorage);this.options=x,this.invokeInit()}init(){this.featureProviders=[],this.addFeatureProvider(new B.TasApiFeatureProvider(new re.AxiosHttpClient(this.options.endpoint),this.telemetry,this.filterProviders)),super.init()}}K.ExperimentationService=M,M.REFRESH_RATE_IN_MINUTES=30},5975:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});const B=U(3663),re=U(3334);class Q extends B.ExperimentationServiceBase{constructor(q,x,L,D,H,$,se,I){super(q,D,H,$,se,I);if(this.telemetry=q,this.filterProviders=x,this.refreshRateMs=L,this.featuresTelemetryPropertyName=D,this.assignmentContextTelemetryPropertyName=H,this.telemetryEventName=$,this.storageKey=se,this.storage=I,L<1e3&&L!==0)throw new Error("The minimum refresh rate for polling is 1000 ms (1 second). If you wish to deactivate this auto-polling use value of 0.");L>0&&(this.pollingService=new re.PollingService(L),this.pollingService.OnPollTick(async()=>{await super.getFeaturesAsync()}))}init(){this.pollingService?this.pollingService.StartPolling(!0):super.getFeaturesAsync()}async getFeaturesAsync(q=!1){if(this.pollingService){this.pollingService.StopPolling();let x=await super.getFeaturesAsync(q);return this.pollingService.StartPolling(),x}else return await super.getFeaturesAsync(q)}}K.ExperimentationServiceAutoPolling=Q},3663:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});const B=U(7002);class re{constructor(M,q,x,L,D,H){this.telemetry=M,this.featuresTelemetryPropertyName=q,this.assignmentContextTelemetryPropertyName=x,this.telemetryEventName=L,this.storageKey=D,this.storage=H,this.featuresConsumed=!1,this.initializePromise=this.loadCachePromise,this.cachedTelemetryEvents=[],this._features={features:[],assignmentContext:"",configs:[]},this.storageKey||(this.storageKey="ABExp.Features"),this.storage||(H=new B.MemoryKeyValueStorage),this.loadCachePromise=this.loadCachedFeatureData()}get features(){return this._features}set features(M){this._features=M,this.telemetry&&(this.telemetry.setSharedProperty(this.featuresTelemetryPropertyName,this.features.features.join(";")),this.telemetry.setSharedProperty(this.assignmentContextTelemetryPropertyName,this.features.assignmentContext))}async getFeaturesAsync(M=!1){if(this.fetchPromise!=null)return await this.fetchPromise,this.features;if(!this.featureProviders||this.featureProviders.length===0)return Promise.resolve({features:[],assignmentContext:"",configs:[]});this.fetchPromise=Promise.all(this.featureProviders.map(async x=>await x.getFeatures()));let q=await this.fetchPromise;return this.fetchPromise=void 0,this.updateFeatures(q,M),this.features}updateFeatures(M,q=!1){let x={features:[],assignmentContext:"",configs:[]};for(let L of M){for(let D of L.features)x.features.includes(D)||x.features.push(D);for(let D of L.configs){const H=x.configs.find($=>$.Id===D.Id);H?H.Parameters=Object.assign(Object.assign({},H.Parameters),D.Parameters):x.configs.push(D)}x.assignmentContext+=L.assignmentContext}(q||!this.featuresConsumed)&&(this.features=x),this.storage&&this.storage.setValue(this.storageKey,x)}async loadCachedFeatureData(){let M;this.storage&&(M=await this.storage.getValue(this.storageKey),M!==void 0&&M.configs===void 0&&(M.configs=[])),this.features.features.length===0&&(this.features=M||{features:[],assignmentContext:"",configs:[]})}isFlightEnabled(M){return this.featuresConsumed=!0,this.PostEventToTelemetry(M),this.features.features.includes(M)}async isCachedFlightEnabled(M){return await this.loadCachePromise,this.featuresConsumed=!0,this.PostEventToTelemetry(M),this.features.features.includes(M)}async isFlightEnabledAsync(M){const q=await this.getFeaturesAsync(!0);return this.featuresConsumed=!0,this.PostEventToTelemetry(M),q.features.includes(M)}getTreatmentVariable(M,q){var x;return this.featuresConsumed=!0,this.PostEventToTelemetry(`${M}.${q}`),(x=this.features.configs.find(D=>D.Id===M))===null||x===void 0?void 0:x.Parameters[q]}async getTreatmentVariableAsync(M,q){return await this.getFeaturesAsync(!0),this.getTreatmentVariable(M,q)}PostEventToTelemetry(M){this.cachedTelemetryEvents.includes(M)||(this.telemetry.postEvent(this.telemetryEventName,new Map([["ABExp.queriedFeature",M]])),this.cachedTelemetryEvents.push(M))}invokeInit(){this.init()}addFeatureProvider(...M){if(!(M==null||this.featureProviders==null))for(let q of M)this.featureProviders.push(q)}}K.ExperimentationServiceBase=re},69:(d,K)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});class U{constructor(re){this.telemetry=re,this.isFetching=!1}async getFeatures(){if(this.isFetching&&this.fetchPromise)return this.fetchPromise;this.fetchPromise=this.fetch();let re=await this.fetchPromise;return this.isFetching=!1,this.fetchPromise=void 0,re}}K.BaseFeatureProvider=U},4e3:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});const B=U(69);class re extends B.BaseFeatureProvider{constructor(M,q){super(M);this.telemetry=M,this.filterProviders=q,this.cachedTelemetryEvents=[]}getFilters(){let M=new Map;for(let q of this.filterProviders){let x=q.getFilters();for(let L of x.keys()){let D=x.get(L);M.set(L,D)}}return M}PostEventToTelemetry(M){if(this.cachedTelemetryEvents.includes(M))return;const q=JSON.stringify(M);this.telemetry.postEvent("report-headers",new Map([["ABExp.headers",q]])),this.cachedTelemetryEvents.push(M)}}K.FilteredFeatureProvider=re},4067:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});const B=U(4e3);class re extends B.FilteredFeatureProvider{constructor(M,q,x){super(q,x);this.httpClient=M,this.telemetry=q,this.filterProviders=x}async fetch(){let M=this.getFilters(),q={};for(let $ of M.keys()){const se=M.get($);q[$]=se}let x=await this.httpClient.get({headers:q});M.keys.length>0&&this.PostEventToTelemetry(q);let L=x.data,D=L.Configs,H=[];for(let $ of D)if(!!$.Parameters)for(let se of Object.keys($.Parameters)){const I=se+($.Parameters[se]?"":"cf");H.includes(I)||H.push(I)}return{features:H,assignmentContext:L.AssignmentContext,configs:D}}}K.TasApiFeatureProvider=re},4234:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});const B=U(9669);class re{constructor(M){this.endpoint=M}get(M){return B.default.get(this.endpoint,Object.assign(Object.assign({},M),{proxy:!1}))}}K.AxiosHttpClient=re},7002:(d,K)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});class U{constructor(){this.storage=new Map}async getValue(re,Q){return this.storage.has(re)?await Promise.resolve(this.storage.get(re)):await Promise.resolve(Q||void 0)}setValue(re,Q){this.storage.set(re,Q)}}K.MemoryKeyValueStorage=U},3334:(d,K)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});class U{constructor(re){this.fetchInterval=re}StopPolling(){clearInterval(this.intervalHandle),this.intervalHandle=void 0}OnPollTick(re){this.onTick=re}StartPolling(re=!1){this.intervalHandle&&this.StopPolling(),this.onTick!=null&&(re&&this.onTick().then(()=>{}).catch(()=>{}),this.intervalHandle=setInterval(async()=>{await this.onTick()},this.fetchInterval),this.intervalHandle.unref&&this.intervalHandle.unref())}}K.PollingService=U},6149:(d,K,U)=>{d.exports=U(5468)},5468:(d,K,U)=>{"use strict";var B,re=U(1808),Q=U(4404),M=U(3685),q=U(5687),x=U(2361),L=U(9491),D=U(3837);B=H,K.httpsOverHttp=$,B=se,B=I;function H(Ce){var _e=new te(Ce);return _e.request=M.request,_e}function $(Ce){var _e=new te(Ce);return _e.request=M.request,_e.createSocket=W,_e.defaultPort=443,_e}function se(Ce){var _e=new te(Ce);return _e.request=q.request,_e}function I(Ce){var _e=new te(Ce);return _e.request=q.request,_e.createSocket=W,_e.defaultPort=443,_e}function te(Ce){var _e=this;_e.options=Ce||{},_e.proxyOptions=_e.options.proxy||{},_e.maxSockets=_e.options.maxSockets||M.Agent.defaultMaxSockets,_e.requests=[],_e.sockets=[],_e.on("free",function(fe,pe,Z,ae){for(var ee=G(pe,Z,ae),he=0,Pe=_e.requests.length;he<Pe;++he){var Ne=_e.requests[he];if(Ne.host===ee.host&&Ne.port===ee.port){_e.requests.splice(he,1),Ne.request.onSocket(fe);return}}fe.destroy(),_e.removeSocket(fe)})}D.inherits(te,x.EventEmitter),te.prototype.addRequest=function(_e,Le,fe,pe){var Z=this,ae=oe({request:_e},Z.options,G(Le,fe,pe));if(Z.sockets.length>=this.maxSockets){Z.requests.push(ae);return}Z.createSocket(ae,function(ee){ee.on("free",he),ee.on("close",Pe),ee.on("agentRemove",Pe),_e.onSocket(ee);function he(){Z.emit("free",ee,ae)}function Pe(Ne){Z.removeSocket(ee),ee.removeListener("free",he),ee.removeListener("close",Pe),ee.removeListener("agentRemove",Pe)}})},te.prototype.createSocket=function(_e,Le){var fe=this,pe={};fe.sockets.push(pe);var Z=oe({},fe.proxyOptions,{method:"CONNECT",path:_e.host+":"+_e.port,agent:!1,headers:{host:_e.host+":"+_e.port}});_e.localAddress&&(Z.localAddress=_e.localAddress),Z.proxyAuth&&(Z.headers=Z.headers||{},Z.headers["Proxy-Authorization"]="Basic "+new Buffer(Z.proxyAuth).toString("base64")),J("making CONNECT request");var ae=fe.request(Z);ae.useChunkedEncodingByDefault=!1,ae.once("response",ee),ae.once("upgrade",he),ae.once("connect",Pe),ae.once("error",Ne),ae.end();function ee(ke){ke.upgrade=!0}function he(ke,Re,tt){process.nextTick(function(){Pe(ke,Re,tt)})}function Pe(ke,Re,tt){if(ae.removeAllListeners(),Re.removeAllListeners(),ke.statusCode!==200){J("tunneling socket could not be established, statusCode=%d",ke.statusCode),Re.destroy();var Ze=new Error("tunneling socket could not be established, statusCode="+ke.statusCode);Ze.code="ECONNRESET",_e.request.emit("error",Ze),fe.removeSocket(pe);return}if(tt.length>0){J("got illegal response body from proxy"),Re.destroy();var Ze=new Error("got illegal response body from proxy");Ze.code="ECONNRESET",_e.request.emit("error",Ze),fe.removeSocket(pe);return}return J("tunneling connection has established"),fe.sockets[fe.sockets.indexOf(pe)]=Re,Le(Re)}function Ne(ke){ae.removeAllListeners(),J(`tunneling socket could not be established, cause=%s
|
||
`,ke.message,ke.stack);var Re=new Error("tunneling socket could not be established, cause="+ke.message);Re.code="ECONNRESET",_e.request.emit("error",Re),fe.removeSocket(pe)}},te.prototype.removeSocket=function(_e){var Le=this.sockets.indexOf(_e);if(Le!==-1){this.sockets.splice(Le,1);var fe=this.requests.shift();fe&&this.createSocket(fe,function(pe){fe.request.onSocket(pe)})}};function W(Ce,_e){var Le=this;te.prototype.createSocket.call(Le,Ce,function(fe){var pe=Ce.request.getHeader("host"),Z=oe({},Le.options,{socket:fe,servername:pe?pe.replace(/:.*$/,""):Ce.host}),ae=Q.connect(0,Z);Le.sockets[Le.sockets.indexOf(fe)]=ae,_e(ae)})}function G(Ce,_e,Le){return typeof Ce=="string"?{host:Ce,port:_e,localAddress:Le}:Ce}function oe(Ce){for(var _e=1,Le=arguments.length;_e<Le;++_e){var fe=arguments[_e];if(typeof fe=="object")for(var pe=Object.keys(fe),Z=0,ae=pe.length;Z<ae;++Z){var ee=pe[Z];fe[ee]!==void 0&&(Ce[ee]=fe[ee])}}return Ce}var J;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?J=function(){var Ce=Array.prototype.slice.call(arguments);typeof Ce[0]=="string"?Ce[0]="TUNNEL: "+Ce[0]:Ce.unshift("TUNNEL:"),console.error.apply(console,Ce)}:J=function(){},B=J},8361:(d,K,U)=>{var B=Object.create,re=Object.defineProperty,Q=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,q=Object.getOwnPropertySymbols,x=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,H=(a,k,p)=>k in a?re(a,k,{enumerable:!0,configurable:!0,writable:!0,value:p}):a[k]=p,$=(a,k)=>{for(var p in k||(k={}))L.call(k,p)&&H(a,p,k[p]);if(q)for(var p of q(k))D.call(k,p)&&H(a,p,k[p]);return a},se=a=>re(a,"__esModule",{value:!0}),I=(a,k)=>()=>(k||a((k={exports:{}}).exports,k),k.exports),te=(a,k)=>{se(a);for(var p in k)re(a,p,{get:k[p],enumerable:!0})},W=(a,k,p)=>{if(k&&typeof k=="object"||typeof k=="function")for(let g of M(k))!L.call(a,g)&&g!=="default"&&re(a,g,{get:()=>k[g],enumerable:!(p=Q(k,g))||p.enumerable});return a},G=a=>W(se(re(a!=null?B(x(a)):{},"default",a&&a.__esModule&&"default"in a?{get:()=>a.default,enumerable:!0}:{value:a,enumerable:!0})),a),oe=I((a,k)=>{"use strict";var p=function(){function g(){}return g.info=function(_){for(var m=[],u=1;u<arguments.length;u++)m[u-1]=arguments[u];g.enableDebug&&console.info(g.TAG+_,m)},g.warn=function(_){for(var m=[],u=1;u<arguments.length;u++)m[u-1]=arguments[u];g.disableWarnings||console.warn(g.TAG+_,m)},g.enableDebug=!1,g.disableWarnings=!1,g.disableErrors=!1,g.TAG="ApplicationInsights:",g}();k.exports=p}),J=I(a=>{"use strict";var k=a&&a.__assign||function(){return k=Object.assign||function(m){for(var u,l=1,c=arguments.length;l<c;l++){u=arguments[l];for(var v in u)Object.prototype.hasOwnProperty.call(u,v)&&(m[v]=u[v])}return m},k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0}),a.AsyncScopeManager=a.OpenTelemetryScopeManagerWrapper=void 0;var p=Kn(),g=U(2361),_=function(){function m(){}return m.prototype.active=function(){var u=this,l=p.CorrelationContextManager.getCurrentContext();return k(k({},l),{getValue:function(c){return u._activeSymbol?c===u._activeSymbol?l:!1:(u._activeSymbol=c,l)},setValue:function(){}})},m.prototype.with=function(u,l){var c=u.parentSpanId,v=u.name,y=m._spanToContext(u,c,v);return p.CorrelationContextManager.runWithContext(y,l)()},m.prototype.bind=function(u){return typeof u=="function"?p.CorrelationContextManager.wrapCallback(u):(u instanceof g.EventEmitter&&p.CorrelationContextManager.wrapEmitter(u),u)},m.prototype.enable=function(){return p.CorrelationContextManager.enable(),this},m.prototype.disable=function(){return p.CorrelationContextManager.disable(),this},m._spanToContext=function(u,l,c){var v=l?"|"+u.spanContext().traceId+"."+l+".":u.spanContext().traceId,y=k(k({},u.spanContext()),{traceFlags:u.spanContext().traceFlags}),f=p.CorrelationContextManager.spanToContextObject(y,v,c);return f},m}();a.OpenTelemetryScopeManagerWrapper=_,a.AsyncScopeManager=new _}),Ce=I((a,k)=>{a=k.exports=$e;var p;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?p=function(){var w=Array.prototype.slice.call(arguments,0);w.unshift("SEMVER"),console.log.apply(console,w)}:p=function(){},a.SEMVER_SPEC_VERSION="2.0.0";var g=256,_=Number.MAX_SAFE_INTEGER||9007199254740991,m=16,u=a.re=[],l=a.src=[],c=0,v=c++;l[v]="0|[1-9]\\d*";var y=c++;l[y]="[0-9]+";var f=c++;l[f]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var b=c++;l[b]="("+l[v]+")\\.("+l[v]+")\\.("+l[v]+")";var E=c++;l[E]="("+l[y]+")\\.("+l[y]+")\\.("+l[y]+")";var R=c++;l[R]="(?:"+l[v]+"|"+l[f]+")";var C=c++;l[C]="(?:"+l[y]+"|"+l[f]+")";var A=c++;l[A]="(?:-("+l[R]+"(?:\\."+l[R]+")*))";var O=c++;l[O]="(?:-?("+l[C]+"(?:\\."+l[C]+")*))";var z=c++;l[z]="[0-9A-Za-z-]+";var X=c++;l[X]="(?:\\+("+l[z]+"(?:\\."+l[z]+")*))";var Y=c++,me="v?"+l[b]+l[A]+"?"+l[X]+"?";l[Y]="^"+me+"$";var Ee="[v=\\s]*"+l[E]+l[O]+"?"+l[X]+"?",Ie=c++;l[Ie]="^"+Ee+"$";var De=c++;l[De]="((?:<|>)?=?)";var Ve=c++;l[Ve]=l[y]+"|x|X|\\*";var Qe=c++;l[Qe]=l[v]+"|x|X|\\*";var Xe=c++;l[Xe]="[v=\\s]*("+l[Qe]+")(?:\\.("+l[Qe]+")(?:\\.("+l[Qe]+")(?:"+l[A]+")?"+l[X]+"?)?)?";var it=c++;l[it]="[v=\\s]*("+l[Ve]+")(?:\\.("+l[Ve]+")(?:\\.("+l[Ve]+")(?:"+l[O]+")?"+l[X]+"?)?)?";var Nt=c++;l[Nt]="^"+l[De]+"\\s*"+l[Xe]+"$";var yt=c++;l[yt]="^"+l[De]+"\\s*"+l[it]+"$";var Qt=c++;l[Qt]="(?:^|[^\\d])(\\d{1,"+m+"})(?:\\.(\\d{1,"+m+"}))?(?:\\.(\\d{1,"+m+"}))?(?:$|[^\\d])";var ht=c++;l[ht]="(?:~>?)";var He=c++;l[He]="(\\s*)"+l[ht]+"\\s+",u[He]=new RegExp(l[He],"g");var et="$1~",Je=c++;l[Je]="^"+l[ht]+l[Xe]+"$";var at=c++;l[at]="^"+l[ht]+l[it]+"$";var ct=c++;l[ct]="(?:\\^)";var Et=c++;l[Et]="(\\s*)"+l[ct]+"\\s+",u[Et]=new RegExp(l[Et],"g");var ut="$1^",qt=c++;l[qt]="^"+l[ct]+l[Xe]+"$";var oi=c++;l[oi]="^"+l[ct]+l[it]+"$";var ii=c++;l[ii]="^"+l[De]+"\\s*("+Ee+")$|^$";var Wt=c++;l[Wt]="^"+l[De]+"\\s*("+me+")$|^$";var Ot=c++;l[Ot]="(\\s*)"+l[De]+"\\s*("+Ee+"|"+l[Xe]+")",u[Ot]=new RegExp(l[Ot],"g");var Si="$1$2$3",Ri=c++;l[Ri]="^\\s*("+l[Xe]+")\\s+-\\s+("+l[Xe]+")\\s*$";var st=c++;l[st]="^\\s*("+l[it]+")\\s+-\\s+("+l[it]+")\\s*$";var pt=c++;for(l[pt]="(<|>)?=?\\s*\\*",St=0;St<c;St++)p(St,l[St]),u[St]||(u[St]=new RegExp(l[St]));var St;a.parse=Ft;function Ft(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof $e)return w;if(typeof w!="string"||w.length>g)return null;var F=N.loose?u[Ie]:u[Y];if(!F.test(w))return null;try{return new $e(w,N)}catch(ne){return null}}a.valid=Yn;function Yn(w,N){var F=Ft(w,N);return F?F.version:null}a.clean=Xn;function Xn(w,N){var F=Ft(w.trim().replace(/^[=v]+/,""),N);return F?F.version:null}a.SemVer=$e;function $e(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof $e){if(w.loose===N.loose)return w;w=w.version}else if(typeof w!="string")throw new TypeError("Invalid Version: "+w);if(w.length>g)throw new TypeError("version is longer than "+g+" characters");if(!(this instanceof $e))return new $e(w,N);p("SemVer",w,N),this.options=N,this.loose=!!N.loose;var F=w.trim().match(N.loose?u[Ie]:u[Y]);if(!F)throw new TypeError("Invalid Version: "+w);if(this.raw=w,this.major=+F[1],this.minor=+F[2],this.patch=+F[3],this.major>_||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_||this.patch<0)throw new TypeError("Invalid patch version");F[4]?this.prerelease=F[4].split(".").map(function(ne){if(/^[0-9]+$/.test(ne)){var de=+ne;if(de>=0&&de<_)return de}return ne}):this.prerelease=[],this.build=F[5]?F[5].split("."):[],this.format()}$e.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},$e.prototype.toString=function(){return this.version},$e.prototype.compare=function(w){return p("SemVer.compare",this.version,this.options,w),w instanceof $e||(w=new $e(w,this.options)),this.compareMain(w)||this.comparePre(w)},$e.prototype.compareMain=function(w){return w instanceof $e||(w=new $e(w,this.options)),hi(this.major,w.major)||hi(this.minor,w.minor)||hi(this.patch,w.patch)},$e.prototype.comparePre=function(w){if(w instanceof $e||(w=new $e(w,this.options)),this.prerelease.length&&!w.prerelease.length)return-1;if(!this.prerelease.length&&w.prerelease.length)return 1;if(!this.prerelease.length&&!w.prerelease.length)return 0;var N=0;do{var F=this.prerelease[N],ne=w.prerelease[N];if(p("prerelease compare",N,F,ne),F===void 0&&ne===void 0)return 0;if(ne===void 0)return 1;if(F===void 0)return-1;if(F!==ne)return hi(F,ne)}while(++N)},$e.prototype.inc=function(w,N){switch(w){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",N);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",N);break;case"prepatch":this.prerelease.length=0,this.inc("patch",N),this.inc("pre",N);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",N),this.inc("pre",N);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var F=this.prerelease.length;--F>=0;)typeof this.prerelease[F]=="number"&&(this.prerelease[F]++,F=-2);F===-1&&this.prerelease.push(0)}N&&(this.prerelease[0]===N?isNaN(this.prerelease[1])&&(this.prerelease=[N,0]):this.prerelease=[N,0]);break;default:throw new Error("invalid increment argument: "+w)}return this.format(),this.raw=this.version,this},a.inc=rn;function rn(w,N,F,ne){typeof F=="string"&&(ne=F,F=void 0);try{return new $e(w,F).inc(N,ne).version}catch(de){return null}}a.diff=_n;function _n(w,N){if(Oi(w,N))return null;var F=Ft(w),ne=Ft(N),de="";if(F.prerelease.length||ne.prerelease.length){de="pre";var ge="prerelease"}for(var we in F)if((we==="major"||we==="minor"||we==="patch")&&F[we]!==ne[we])return de+we;return ge}a.compareIdentifiers=hi;var or=/^[0-9]+$/;function hi(w,N){var F=or.test(w),ne=or.test(N);return F&&ne&&(w=+w,N=+N),w===N?0:F&&!ne?-1:ne&&!F?1:w<N?-1:1}a.rcompareIdentifiers=kr;function kr(w,N){return hi(N,w)}a.major=Ci;function Ci(w,N){return new $e(w,N).major}a.minor=Hr;function Hr(w,N){return new $e(w,N).minor}a.patch=nn;function nn(w,N){return new $e(w,N).patch}a.compare=Bt;function Bt(w,N,F){return new $e(w,F).compare(new $e(N,F))}a.compareLoose=En;function En(w,N){return Bt(w,N,!0)}a.rcompare=Ti;function Ti(w,N,F){return Bt(N,w,F)}a.sort=Rr;function Rr(w,N){return w.sort(function(F,ne){return a.compare(F,ne,N)})}a.rsort=an;function an(w,N){return w.sort(function(F,ne){return a.rcompare(F,ne,N)})}a.gt=At;function At(w,N,F){return Bt(w,N,F)>0}a.lt=Ii;function Ii(w,N,F){return Bt(w,N,F)<0}a.eq=Oi;function Oi(w,N,F){return Bt(w,N,F)===0}a.neq=Ji;function Ji(w,N,F){return Bt(w,N,F)!==0}a.gte=lr;function lr(w,N,F){return Bt(w,N,F)>=0}a.lte=Ni;function Ni(w,N,F){return Bt(w,N,F)<=0}a.cmp=li;function li(w,N,F,ne){switch(N){case"===":return typeof w=="object"&&(w=w.version),typeof F=="object"&&(F=F.version),w===F;case"!==":return typeof w=="object"&&(w=w.version),typeof F=="object"&&(F=F.version),w!==F;case"":case"=":case"==":return Oi(w,F,ne);case"!=":return Ji(w,F,ne);case">":return At(w,F,ne);case">=":return lr(w,F,ne);case"<":return Ii(w,F,ne);case"<=":return Ni(w,F,ne);default:throw new TypeError("Invalid operator: "+N)}}a.Comparator=Tt;function Tt(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof Tt){if(w.loose===!!N.loose)return w;w=w.value}if(!(this instanceof Tt))return new Tt(w,N);p("comparator",w,N),this.options=N,this.loose=!!N.loose,this.parse(w),this.semver===ki?this.value="":this.value=this.operator+this.semver.version,p("comp",this)}var ki={};Tt.prototype.parse=function(w){var N=this.options.loose?u[ii]:u[Wt],F=w.match(N);if(!F)throw new TypeError("Invalid comparator: "+w);this.operator=F[1],this.operator==="="&&(this.operator=""),F[2]?this.semver=new $e(F[2],this.options.loose):this.semver=ki},Tt.prototype.toString=function(){return this.value},Tt.prototype.test=function(w){return p("Comparator.test",w,this.options.loose),this.semver===ki?!0:(typeof w=="string"&&(w=new $e(w,this.options)),li(w,this.operator,this.semver,this.options))},Tt.prototype.intersects=function(w,N){if(!(w instanceof Tt))throw new TypeError("a Comparator is required");(!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1});var F;if(this.operator==="")return F=new rt(w.value,N),ji(this.value,F,N);if(w.operator==="")return F=new rt(this.value,N),ji(w.semver,F,N);var ne=(this.operator===">="||this.operator===">")&&(w.operator===">="||w.operator===">"),de=(this.operator==="<="||this.operator==="<")&&(w.operator==="<="||w.operator==="<"),ge=this.semver.version===w.semver.version,we=(this.operator===">="||this.operator==="<=")&&(w.operator===">="||w.operator==="<="),Be=li(this.semver,"<",w.semver,N)&&(this.operator===">="||this.operator===">")&&(w.operator==="<="||w.operator==="<"),Ge=li(this.semver,">",w.semver,N)&&(this.operator==="<="||this.operator==="<")&&(w.operator===">="||w.operator===">");return ne||de||ge&&we||Be||Ge},a.Range=rt;function rt(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof rt)return w.loose===!!N.loose&&w.includePrerelease===!!N.includePrerelease?w:new rt(w.raw,N);if(w instanceof Tt)return new rt(w.value,N);if(!(this instanceof rt))return new rt(w,N);if(this.options=N,this.loose=!!N.loose,this.includePrerelease=!!N.includePrerelease,this.raw=w,this.set=w.split(/\s*\|\|\s*/).map(function(F){return this.parseRange(F.trim())},this).filter(function(F){return F.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+w);this.format()}rt.prototype.format=function(){return this.range=this.set.map(function(w){return w.join(" ").trim()}).join("||").trim(),this.range},rt.prototype.toString=function(){return this.range},rt.prototype.parseRange=function(w){var N=this.options.loose;w=w.trim();var F=N?u[st]:u[Ri];w=w.replace(F,Rn),p("hyphen replace",w),w=w.replace(u[Ot],Si),p("comparator trim",w,u[Ot]),w=w.replace(u[He],et),w=w.replace(u[Et],ut),w=w.split(/\s+/).join(" ");var ne=N?u[ii]:u[Wt],de=w.split(" ").map(function(ge){return dr(ge,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(de=de.filter(function(ge){return!!ge.match(ne)})),de=de.map(function(ge){return new Tt(ge,this.options)},this),de},rt.prototype.intersects=function(w,N){if(!(w instanceof rt))throw new TypeError("a Range is required");return this.set.some(function(F){return F.every(function(ne){return w.set.some(function(de){return de.every(function(ge){return ne.intersects(ge,N)})})})})},a.toComparators=sn;function sn(w,N){return new rt(w,N).set.map(function(F){return F.map(function(ne){return ne.value}).join(" ").trim().split(" ")})}function dr(w,N){return p("comp",w,N),w=Tn(w,N),p("caret",w),w=ur(w,N),p("tildes",w),w=ln(w,N),p("xrange",w),w=Zi(w,N),p("stars",w),w}function vt(w){return!w||w.toLowerCase()==="x"||w==="*"}function ur(w,N){return w.trim().split(/\s+/).map(function(F){return Sn(F,N)}).join(" ")}function Sn(w,N){var F=N.loose?u[at]:u[Je];return w.replace(F,function(ne,de,ge,we,Be){p("tilde",w,ne,de,ge,we,Be);var Ge;return vt(de)?Ge="":vt(ge)?Ge=">="+de+".0.0 <"+(+de+1)+".0.0":vt(we)?Ge=">="+de+"."+ge+".0 <"+de+"."+(+ge+1)+".0":Be?(p("replaceTilde pr",Be),Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+de+"."+(+ge+1)+".0"):Ge=">="+de+"."+ge+"."+we+" <"+de+"."+(+ge+1)+".0",p("tilde return",Ge),Ge})}function Tn(w,N){return w.trim().split(/\s+/).map(function(F){return on(F,N)}).join(" ")}function on(w,N){p("caret",w,N);var F=N.loose?u[oi]:u[qt];return w.replace(F,function(ne,de,ge,we,Be){p("caret",w,ne,de,ge,we,Be);var Ge;return vt(de)?Ge="":vt(ge)?Ge=">="+de+".0.0 <"+(+de+1)+".0.0":vt(we)?de==="0"?Ge=">="+de+"."+ge+".0 <"+de+"."+(+ge+1)+".0":Ge=">="+de+"."+ge+".0 <"+(+de+1)+".0.0":Be?(p("replaceCaret pr",Be),de==="0"?ge==="0"?Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+de+"."+ge+"."+(+we+1):Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+de+"."+(+ge+1)+".0":Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+(+de+1)+".0.0"):(p("no pr"),de==="0"?ge==="0"?Ge=">="+de+"."+ge+"."+we+" <"+de+"."+ge+"."+(+we+1):Ge=">="+de+"."+ge+"."+we+" <"+de+"."+(+ge+1)+".0":Ge=">="+de+"."+ge+"."+we+" <"+(+de+1)+".0.0"),p("caret return",Ge),Ge})}function ln(w,N){return p("replaceXRanges",w,N),w.split(/\s+/).map(function(F){return kn(F,N)}).join(" ")}function kn(w,N){w=w.trim();var F=N.loose?u[yt]:u[Nt];return w.replace(F,function(ne,de,ge,we,Be,Ge){p("xRange",w,ne,de,ge,we,Be,Ge);var $t=vt(ge),xt=$t||vt(we),Pt=xt||vt(Be),Dt=Pt;return de==="="&&Dt&&(de=""),$t?de===">"||de==="<"?ne="<0.0.0":ne="*":de&&Dt?(xt&&(we=0),Be=0,de===">"?(de=">=",xt?(ge=+ge+1,we=0,Be=0):(we=+we+1,Be=0)):de==="<="&&(de="<",xt?ge=+ge+1:we=+we+1),ne=de+ge+"."+we+"."+Be):xt?ne=">="+ge+".0.0 <"+(+ge+1)+".0.0":Pt&&(ne=">="+ge+"."+we+".0 <"+ge+"."+(+we+1)+".0"),p("xRange return",ne),ne})}function Zi(w,N){return p("replaceStars",w,N),w.trim().replace(u[pt],"")}function Rn(w,N,F,ne,de,ge,we,Be,Ge,$t,xt,Pt,Dt){return vt(F)?N="":vt(ne)?N=">="+F+".0.0":vt(de)?N=">="+F+"."+ne+".0":N=">="+N,vt(Ge)?Be="":vt($t)?Be="<"+(+Ge+1)+".0.0":vt(xt)?Be="<"+Ge+"."+(+$t+1)+".0":Pt?Be="<="+Ge+"."+$t+"."+xt+"-"+Pt:Be="<="+Be,(N+" "+Be).trim()}rt.prototype.test=function(w){if(!w)return!1;typeof w=="string"&&(w=new $e(w,this.options));for(var N=0;N<this.set.length;N++)if(Cn(this.set[N],w,this.options))return!0;return!1};function Cn(w,N,F){for(var ne=0;ne<w.length;ne++)if(!w[ne].test(N))return!1;if(N.prerelease.length&&!F.includePrerelease){for(ne=0;ne<w.length;ne++)if(p(w[ne].semver),w[ne].semver!==ki&&w[ne].semver.prerelease.length>0){var de=w[ne].semver;if(de.major===N.major&&de.minor===N.minor&&de.patch===N.patch)return!0}return!1}return!0}a.satisfies=ji;function ji(w,N,F){try{N=new rt(N,F)}catch(ne){return!1}return N.test(w)}a.maxSatisfying=Nn;function Nn(w,N,F){var ne=null,de=null;try{var ge=new rt(N,F)}catch(we){return null}return w.forEach(function(we){ge.test(we)&&(!ne||de.compare(we)===-1)&&(ne=we,de=new $e(ne,F))}),ne}a.minSatisfying=Pn;function Pn(w,N,F){var ne=null,de=null;try{var ge=new rt(N,F)}catch(we){return null}return w.forEach(function(we){ge.test(we)&&(!ne||de.compare(we)===1)&&(ne=we,de=new $e(ne,F))}),ne}a.minVersion=Cr;function Cr(w,N){w=new rt(w,N);var F=new $e("0.0.0");if(w.test(F)||(F=new $e("0.0.0-0"),w.test(F)))return F;F=null;for(var ne=0;ne<w.set.length;++ne){var de=w.set[ne];de.forEach(function(ge){var we=new $e(ge.semver.version);switch(ge.operator){case">":we.prerelease.length===0?we.patch++:we.prerelease.push(0),we.raw=we.format();case"":case">=":(!F||At(F,we))&&(F=we);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+ge.operator)}})}return F&&w.test(F)?F:null}a.validRange=Dn;function Dn(w,N){try{return new rt(w,N).range||"*"}catch(F){return null}}a.ltr=An;function An(w,N,F){return pr(w,N,"<",F)}a.gtr=xr;function xr(w,N,F){return pr(w,N,">",F)}a.outside=pr;function pr(w,N,F,ne){w=new $e(w,ne),N=new rt(N,ne);var de,ge,we,Be,Ge;switch(F){case">":de=At,ge=Ni,we=Ii,Be=">",Ge=">=";break;case"<":de=Ii,ge=lr,we=At,Be="<",Ge="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ji(w,N,ne))return!1;for(var $t=0;$t<N.set.length;++$t){var xt=N.set[$t],Pt=null,Dt=null;if(xt.forEach(function(ri){ri.semver===ki&&(ri=new Tt(">=0.0.0")),Pt=Pt||ri,Dt=Dt||ri,de(ri.semver,Pt.semver,ne)?Pt=ri:we(ri.semver,Dt.semver,ne)&&(Dt=ri)}),Pt.operator===Be||Pt.operator===Ge||(!Dt.operator||Dt.operator===Be)&&ge(w,Dt.semver)||Dt.operator===Ge&&we(w,Dt.semver))return!1}return!0}a.prerelease=In;function In(w,N){var F=Ft(w,N);return F&&F.prerelease.length?F.prerelease:null}a.intersects=cr;function cr(w,N,F){return w=new rt(w,F),N=new rt(N,F),w.intersects(N)}a.coerce=vi;function vi(w){if(w instanceof $e)return w;if(typeof w!="string")return null;var N=w.match(u[Qt]);return N==null?null:Ft(N[1]+"."+(N[2]||"0")+"."+(N[3]||"0"))}}),_e=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.makePatchingRequire=void 0;var k=U(1017),p=Ce(),g=U(8188),_=Object.keys(process.binding("natives")),m=g.prototype.require;function u(l){var c={};return function(v){var y=m.apply(this,arguments);if(l[v]){var f=g._resolveFilename(v,this);if(c.hasOwnProperty(f))return c[f];var b=void 0;if(_.indexOf(v)<0)try{b=m.call(this,k.join(v,"package.json")).version}catch(z){return y}else b=process.version.substring(1);var E=b.indexOf("-");E>=0&&(b=b.substring(0,E));for(var R=y,C=0,A=l[v];C<A.length;C++){var O=A[C];p.satisfies(b,O.versionSpecifier)&&(R=O.patch(R,f))}return c[f]=R}return y}}a.makePatchingRequire=u}),Le=I((a,k)=>{k.exports={name:"diagnostic-channel",version:"1.0.0",main:"./dist/src/channel.js",types:"./dist/src/channel.d.ts",scripts:{build:"tsc",lint:"tslint -c tslint.json -p tsconfig.json",clean:"rimraf ./dist",test:"mocha ./dist/tests/**/*.js"},homepage:"https://github.com/Microsoft/node-diagnostic-channel",bugs:{url:"https://github.com/Microsoft/node-diagnostic-channel/issues"},repository:{type:"git",url:"https://github.com/Microsoft/node-diagnostic-channel.git"},description:"Provides a context-saving pub/sub channel to connect diagnostic event publishers and subscribers",dependencies:{semver:"^5.3.0"},devDependencies:{"@types/mocha":"^2.2.40","@types/node":"~8.0.0",mocha:"^3.2.0",rimraf:"^2.6.1",tslint:"^5.0.0",typescript:"4.1.2"},files:["dist/src/**/*.d.ts","dist/src/**/*.js","LICENSE","README.md","package.json"],license:"MIT"}}),fe=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.channel=a.makePatchingRequire=void 0;var k=_e(),p=_e();Object.defineProperty(a,"makePatchingRequire",{enumerable:!0,get:function(){return p.makePatchingRequire}});var g=function(u){return!0},_=function(){function u(){this.version=Le().version,this.subscribers={},this.contextPreservationFunction=function(l){return l},this.knownPatches={},this.currentlyPublishing=!1}return u.prototype.shouldPublish=function(l){var c=this.subscribers[l];return c?c.some(function(v){var y=v.filter;return!y||y(!1)}):!1},u.prototype.publish=function(l,c){if(!this.currentlyPublishing){var v=this.subscribers[l];if(v){var y={timestamp:Date.now(),data:c};this.currentlyPublishing=!0,v.forEach(function(f){var b=f.listener,E=f.filter;try{E&&E(!0)&&b(y)}catch(R){}}),this.currentlyPublishing=!1}}},u.prototype.subscribe=function(l,c,v){v===void 0&&(v=g),this.subscribers[l]||(this.subscribers[l]=[]),this.subscribers[l].push({listener:c,filter:v})},u.prototype.unsubscribe=function(l,c,v){v===void 0&&(v=g);var y=this.subscribers[l];if(y){for(var f=0;f<y.length;++f)if(y[f].listener===c&&y[f].filter===v)return y.splice(f,1),!0}return!1},u.prototype.reset=function(){var l=this;this.subscribers={},this.contextPreservationFunction=function(c){return c},Object.getOwnPropertyNames(this.knownPatches).forEach(function(c){return delete l.knownPatches[c]})},u.prototype.bindToContext=function(l){return this.contextPreservationFunction(l)},u.prototype.addContextPreservation=function(l){var c=this.contextPreservationFunction;this.contextPreservationFunction=function(v){return l(c(v))}},u.prototype.registerMonkeyPatch=function(l,c){this.knownPatches[l]||(this.knownPatches[l]=[]),this.knownPatches[l].push(c)},u.prototype.getPatchesObject=function(){return this.knownPatches},u}();global.diagnosticsSource||(global.diagnosticsSource=new _,m=U(8188),m.prototype.require=k.makePatchingRequire(global.diagnosticsSource.getPatchesObject()));var m;a.channel=global.diagnosticsSource}),pe=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Z=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a._globalThis=void 0,a._globalThis=typeof globalThis=="object"?globalThis:global}),ae=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(Z(),a)}),ee=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(ae(),a)}),he=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.VERSION=void 0,a.VERSION="1.0.3"}),Pe=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isCompatible=a._makeCompatibilityCheck=void 0;var k=he(),p=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function g(_){var m=new Set([_]),u=new Set,l=_.match(p);if(!l)return function(){return!1};var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};if(c.prerelease!=null)return function(f){return f===_};function v(f){return u.add(f),!1}function y(f){return m.add(f),!0}return function(f){if(m.has(f))return!0;if(u.has(f))return!1;var b=f.match(p);if(!b)return v(f);var E={major:+b[1],minor:+b[2],patch:+b[3],prerelease:b[4]};return E.prerelease!=null||c.major!==E.major?v(f):c.major===0?c.minor===E.minor&&c.patch<=E.patch?y(f):v(f):c.minor<=E.minor?y(f):v(f)}}a._makeCompatibilityCheck=g,a.isCompatible=g(k.VERSION)}),Ne=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.unregisterGlobal=a.getGlobal=a.registerGlobal=void 0;var k=ee(),p=he(),g=Pe(),_=p.VERSION.split(".")[0],m=Symbol.for("opentelemetry.js.api."+_),u=k._globalThis;function l(y,f,b,E){var R;E===void 0&&(E=!1);var C=u[m]=(R=u[m])!==null&&R!==void 0?R:{version:p.VERSION};if(!E&&C[y]){var A=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+y);return b.error(A.stack||A.message),!1}if(C.version!==p.VERSION){var A=new Error("@opentelemetry/api: All API registration versions must match");return b.error(A.stack||A.message),!1}return C[y]=f,b.debug("@opentelemetry/api: Registered a global for "+y+" v"+p.VERSION+"."),!0}a.registerGlobal=l;function c(y){var f,b,E=(f=u[m])===null||f===void 0?void 0:f.version;if(!(!E||!g.isCompatible(E)))return(b=u[m])===null||b===void 0?void 0:b[y]}a.getGlobal=c;function v(y,f){f.debug("@opentelemetry/api: Unregistering a global for "+y+" v"+p.VERSION+".");var b=u[m];b&&delete b[y]}a.unregisterGlobal=v}),ke=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.DiagComponentLogger=void 0;var k=Ne(),p=function(){function _(m){this._namespace=m.namespace||"DiagComponentLogger"}return _.prototype.debug=function(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];return g("debug",this._namespace,m)},_.prototype.error=function(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];return g("error",this._namespace,m)},_.prototype.info=function(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];return g("info",this._namespace,m)},_.prototype.warn=function(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];return g("warn",this._namespace,m)},_.prototype.verbose=function(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];return g("verbose",this._namespace,m)},_}();a.DiagComponentLogger=p;function g(_,m,u){var l=k.getGlobal("diag");if(l)return u.unshift(m),l[_].apply(l,u)}}),Re=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.DiagLogLevel=void 0;var k;(function(p){p[p.NONE=0]="NONE",p[p.ERROR=30]="ERROR",p[p.WARN=50]="WARN",p[p.INFO=60]="INFO",p[p.DEBUG=70]="DEBUG",p[p.VERBOSE=80]="VERBOSE",p[p.ALL=9999]="ALL"})(k=a.DiagLogLevel||(a.DiagLogLevel={}))}),tt=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.createLogLevelDiagLogger=void 0;var k=Re();function p(g,_){g<k.DiagLogLevel.NONE?g=k.DiagLogLevel.NONE:g>k.DiagLogLevel.ALL&&(g=k.DiagLogLevel.ALL),_=_||{};function m(u,l){var c=_[u];return typeof c=="function"&&g>=l?c.bind(_):function(){}}return{error:m("error",k.DiagLogLevel.ERROR),warn:m("warn",k.DiagLogLevel.WARN),info:m("info",k.DiagLogLevel.INFO),debug:m("debug",k.DiagLogLevel.DEBUG),verbose:m("verbose",k.DiagLogLevel.VERBOSE)}}a.createLogLevelDiagLogger=p}),Ze=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.DiagAPI=void 0;var k=ke(),p=tt(),g=Re(),_=Ne(),m="diag",u=function(){function l(){function c(y){return function(){var f=_.getGlobal("diag");if(f)return f[y].apply(f,arguments)}}var v=this;v.setLogger=function(y,f){var b,E;if(f===void 0&&(f=g.DiagLogLevel.INFO),y===v){var R=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return v.error((b=R.stack)!==null&&b!==void 0?b:R.message),!1}var C=_.getGlobal("diag"),A=p.createLogLevelDiagLogger(f,y);if(C){var O=(E=new Error().stack)!==null&&E!==void 0?E:"<failed to generate stacktrace>";C.warn("Current logger will be overwritten from "+O),A.warn("Current logger will overwrite one already registered from "+O)}return _.registerGlobal("diag",A,v,!0)},v.disable=function(){_.unregisterGlobal(m,v)},v.createComponentLogger=function(y){return new k.DiagComponentLogger(y)},v.verbose=c("verbose"),v.debug=c("debug"),v.info=c("info"),v.warn=c("warn"),v.error=c("error")}return l.instance=function(){return this._instance||(this._instance=new l),this._instance},l}();a.DiagAPI=u}),bt=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.BaggageImpl=void 0;var k=function(){function p(g){this._entries=g?new Map(g):new Map}return p.prototype.getEntry=function(g){var _=this._entries.get(g);if(_)return Object.assign({},_)},p.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(g){var _=g[0],m=g[1];return[_,m]})},p.prototype.setEntry=function(g,_){var m=new p(this._entries);return m._entries.set(g,_),m},p.prototype.removeEntry=function(g){var _=new p(this._entries);return _._entries.delete(g),_},p.prototype.removeEntries=function(){for(var g=[],_=0;_<arguments.length;_++)g[_]=arguments[_];for(var m=new p(this._entries),u=0,l=g;u<l.length;u++){var c=l[u];m._entries.delete(c)}return m},p.prototype.clear=function(){return new p},p}();a.BaggageImpl=k}),_t=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.baggageEntryMetadataSymbol=void 0,a.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")}),zt=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.baggageEntryMetadataFromString=a.createBaggage=void 0;var k=Ze(),p=bt(),g=_t(),_=k.DiagAPI.instance();function m(l){return l===void 0&&(l={}),new p.BaggageImpl(new Map(Object.entries(l)))}a.createBaggage=m;function u(l){return typeof l!="string"&&(_.error("Cannot create baggage metadata from unknown type: "+typeof l),l=""),{__TYPE__:g.baggageEntryMetadataSymbol,toString:function(){return l}}}a.baggageEntryMetadataFromString=u}),di=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),jt=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),ai=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.DiagConsoleLogger=void 0;var k=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],p=function(){function g(){function _(u){return function(){var l=arguments;if(console){var c=console[u];if(typeof c!="function"&&(c=console.log),typeof c=="function")return c.apply(console,l)}}}for(var m=0;m<k.length;m++)this[k[m].n]=_(k[m].c)}return g}();a.DiagConsoleLogger=p}),Jt=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(ai(),a),p(Re(),a)}),ui=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.defaultTextMapSetter=a.defaultTextMapGetter=void 0,a.defaultTextMapGetter={get:function(k,p){if(k!=null)return k[p]},keys:function(k){return k==null?[]:Object.keys(k)}},a.defaultTextMapSetter={set:function(k,p,g){k!=null&&(k[p]=g)}}}),tr=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Vr=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Er=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ROOT_CONTEXT=a.createContextKey=void 0;function k(g){return Symbol.for(g)}a.createContextKey=k;var p=function(){function g(_){var m=this;m._currentContext=_?new Map(_):new Map,m.getValue=function(u){return m._currentContext.get(u)},m.setValue=function(u,l){var c=new g(m._currentContext);return c._currentContext.set(u,l),c},m.deleteValue=function(u){var l=new g(m._currentContext);return l._currentContext.delete(u),l}}return g}();a.ROOT_CONTEXT=new p}),Sr=I(a=>{"use strict";var k=a&&a.__spreadArray||function(_,m){for(var u=0,l=m.length,c=_.length;u<l;u++,c++)_[c]=m[u];return _};Object.defineProperty(a,"__esModule",{value:!0}),a.NoopContextManager=void 0;var p=Er(),g=function(){function _(){}return _.prototype.active=function(){return p.ROOT_CONTEXT},_.prototype.with=function(m,u,l){for(var c=[],v=3;v<arguments.length;v++)c[v-3]=arguments[v];return u.call.apply(u,k([l],c))},_.prototype.bind=function(m,u){return u},_.prototype.enable=function(){return this},_.prototype.disable=function(){return this},_}();a.NoopContextManager=g}),Gt=I(a=>{"use strict";var k=a&&a.__spreadArray||function(c,v){for(var y=0,f=v.length,b=c.length;y<f;y++,b++)c[b]=v[y];return c};Object.defineProperty(a,"__esModule",{value:!0}),a.ContextAPI=void 0;var p=Sr(),g=Ne(),_=Ze(),m="context",u=new p.NoopContextManager,l=function(){function c(){}return c.getInstance=function(){return this._instance||(this._instance=new c),this._instance},c.prototype.setGlobalContextManager=function(v){return g.registerGlobal(m,v,_.DiagAPI.instance())},c.prototype.active=function(){return this._getContextManager().active()},c.prototype.with=function(v,y,f){for(var b,E=[],R=3;R<arguments.length;R++)E[R-3]=arguments[R];return(b=this._getContextManager()).with.apply(b,k([v,y,f],E))},c.prototype.bind=function(v,y){return this._getContextManager().bind(v,y)},c.prototype._getContextManager=function(){return g.getGlobal(m)||u},c.prototype.disable=function(){this._getContextManager().disable(),g.unregisterGlobal(m,_.DiagAPI.instance())},c}();a.ContextAPI=l}),Xi=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TraceFlags=void 0;var k;(function(p){p[p.NONE=0]="NONE",p[p.SAMPLED=1]="SAMPLED"})(k=a.TraceFlags||(a.TraceFlags={}))}),Zt=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.INVALID_SPAN_CONTEXT=a.INVALID_TRACEID=a.INVALID_SPANID=void 0;var k=Xi();a.INVALID_SPANID="0000000000000000",a.INVALID_TRACEID="00000000000000000000000000000000",a.INVALID_SPAN_CONTEXT={traceId:a.INVALID_TRACEID,spanId:a.INVALID_SPANID,traceFlags:k.TraceFlags.NONE}}),Di=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.NonRecordingSpan=void 0;var k=Zt(),p=function(){function g(_){_===void 0&&(_=k.INVALID_SPAN_CONTEXT),this._spanContext=_}return g.prototype.spanContext=function(){return this._spanContext},g.prototype.setAttribute=function(_,m){return this},g.prototype.setAttributes=function(_){return this},g.prototype.addEvent=function(_,m){return this},g.prototype.setStatus=function(_){return this},g.prototype.updateName=function(_){return this},g.prototype.end=function(_){},g.prototype.isRecording=function(){return!1},g.prototype.recordException=function(_,m){},g}();a.NonRecordingSpan=p}),ce=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getSpanContext=a.setSpanContext=a.deleteSpan=a.setSpan=a.getSpan=void 0;var k=Er(),p=Di(),g=k.createContextKey("OpenTelemetry Context Key SPAN");function _(v){return v.getValue(g)||void 0}a.getSpan=_;function m(v,y){return v.setValue(g,y)}a.setSpan=m;function u(v){return v.deleteValue(g)}a.deleteSpan=u;function l(v,y){return m(v,new p.NonRecordingSpan(y))}a.setSpanContext=l;function c(v){var y;return(y=_(v))===null||y===void 0?void 0:y.spanContext()}a.getSpanContext=c}),le=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.wrapSpanContext=a.isSpanContextValid=a.isValidSpanId=a.isValidTraceId=void 0;var k=Zt(),p=Di(),g=/^([0-9a-f]{32})$/i,_=/^[0-9a-f]{16}$/i;function m(v){return g.test(v)&&v!==k.INVALID_TRACEID}a.isValidTraceId=m;function u(v){return _.test(v)&&v!==k.INVALID_SPANID}a.isValidSpanId=u;function l(v){return m(v.traceId)&&u(v.spanId)}a.isSpanContextValid=l;function c(v){return new p.NonRecordingSpan(v)}a.wrapSpanContext=c}),Fe=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.NoopTracer=void 0;var k=Gt(),p=ce(),g=Di(),_=le(),m=k.ContextAPI.getInstance(),u=function(){function c(){}return c.prototype.startSpan=function(v,y,f){var b=Boolean(y==null?void 0:y.root);if(b)return new g.NonRecordingSpan;var E=f&&p.getSpanContext(f);return l(E)&&_.isSpanContextValid(E)?new g.NonRecordingSpan(E):new g.NonRecordingSpan},c.prototype.startActiveSpan=function(v,y,f,b){var E,R,C;if(!(arguments.length<2)){arguments.length===2?C=y:arguments.length===3?(E=y,C=f):(E=y,R=f,C=b);var A=R!=null?R:m.active(),O=this.startSpan(v,E,A),z=p.setSpan(A,O);return m.with(z,C,void 0,O)}},c}();a.NoopTracer=u;function l(c){return typeof c=="object"&&typeof c.spanId=="string"&&typeof c.traceId=="string"&&typeof c.traceFlags=="number"}}),We=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ProxyTracer=void 0;var k=Fe(),p=new k.NoopTracer,g=function(){function _(m,u,l){this._provider=m,this.name=u,this.version=l}return _.prototype.startSpan=function(m,u,l){return this._getTracer().startSpan(m,u,l)},_.prototype.startActiveSpan=function(m,u,l,c){var v=this._getTracer();return Reflect.apply(v.startActiveSpan,v,arguments)},_.prototype._getTracer=function(){if(this._delegate)return this._delegate;var m=this._provider.getDelegateTracer(this.name,this.version);return m?(this._delegate=m,this._delegate):p},_}();a.ProxyTracer=g}),nt=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.NoopTracerProvider=void 0;var k=Fe(),p=function(){function g(){}return g.prototype.getTracer=function(_,m){return new k.NoopTracer},g}();a.NoopTracerProvider=p}),mt=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ProxyTracerProvider=void 0;var k=We(),p=nt(),g=new p.NoopTracerProvider,_=function(){function m(){}return m.prototype.getTracer=function(u,l){var c;return(c=this.getDelegateTracer(u,l))!==null&&c!==void 0?c:new k.ProxyTracer(this,u,l)},m.prototype.getDelegate=function(){var u;return(u=this._delegate)!==null&&u!==void 0?u:g},m.prototype.setDelegate=function(u){this._delegate=u},m.prototype.getDelegateTracer=function(u,l){var c;return(c=this._delegate)===null||c===void 0?void 0:c.getTracer(u,l)},m}();a.ProxyTracerProvider=_}),ei=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),be=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.SamplingDecision=void 0;var k;(function(p){p[p.NOT_RECORD=0]="NOT_RECORD",p[p.RECORD=1]="RECORD",p[p.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(k=a.SamplingDecision||(a.SamplingDecision={}))}),ve=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Me=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.SpanKind=void 0;var k;(function(p){p[p.INTERNAL=0]="INTERNAL",p[p.SERVER=1]="SERVER",p[p.CLIENT=2]="CLIENT",p[p.PRODUCER=3]="PRODUCER",p[p.CONSUMER=4]="CONSUMER"})(k=a.SpanKind||(a.SpanKind={}))}),Oe=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Ue=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),kt=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.SpanStatusCode=void 0;var k;(function(p){p[p.UNSET=0]="UNSET",p[p.OK=1]="OK",p[p.ERROR=2]="ERROR"})(k=a.SpanStatusCode||(a.SpanStatusCode={}))}),wi=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),ti=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),ft=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),bi=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),nr=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TraceAPI=void 0;var k=Ne(),p=mt(),g=le(),_=ce(),m=Ze(),u="trace",l=function(){function c(){this._proxyTracerProvider=new p.ProxyTracerProvider,this.wrapSpanContext=g.wrapSpanContext,this.isSpanContextValid=g.isSpanContextValid,this.deleteSpan=_.deleteSpan,this.getSpan=_.getSpan,this.getSpanContext=_.getSpanContext,this.setSpan=_.setSpan,this.setSpanContext=_.setSpanContext}return c.getInstance=function(){return this._instance||(this._instance=new c),this._instance},c.prototype.setGlobalTracerProvider=function(v){var y=k.registerGlobal(u,this._proxyTracerProvider,m.DiagAPI.instance());return y&&this._proxyTracerProvider.setDelegate(v),y},c.prototype.getTracerProvider=function(){return k.getGlobal(u)||this._proxyTracerProvider},c.prototype.getTracer=function(v,y){return this.getTracerProvider().getTracer(v,y)},c.prototype.disable=function(){k.unregisterGlobal(u,m.DiagAPI.instance()),this._proxyTracerProvider=new p.ProxyTracerProvider},c}();a.TraceAPI=l}),fn=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.NoopTextMapPropagator=void 0;var k=function(){function p(){}return p.prototype.inject=function(g,_){},p.prototype.extract=function(g,_){return g},p.prototype.fields=function(){return[]},p}();a.NoopTextMapPropagator=k}),Gn=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.deleteBaggage=a.setBaggage=a.getBaggage=void 0;var k=Er(),p=k.createContextKey("OpenTelemetry Baggage Key");function g(u){return u.getValue(p)||void 0}a.getBaggage=g;function _(u,l){return u.setValue(p,l)}a.setBaggage=_;function m(u){return u.deleteValue(p)}a.deleteBaggage=m}),Ar=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.PropagationAPI=void 0;var k=Ne(),p=fn(),g=ui(),_=Gn(),m=zt(),u=Ze(),l="propagation",c=new p.NoopTextMapPropagator,v=function(){function y(){this.createBaggage=m.createBaggage,this.getBaggage=_.getBaggage,this.setBaggage=_.setBaggage,this.deleteBaggage=_.deleteBaggage}return y.getInstance=function(){return this._instance||(this._instance=new y),this._instance},y.prototype.setGlobalPropagator=function(f){return k.registerGlobal(l,f,u.DiagAPI.instance())},y.prototype.inject=function(f,b,E){return E===void 0&&(E=g.defaultTextMapSetter),this._getGlobalPropagator().inject(f,b,E)},y.prototype.extract=function(f,b,E){return E===void 0&&(E=g.defaultTextMapGetter),this._getGlobalPropagator().extract(f,b,E)},y.prototype.fields=function(){return this._getGlobalPropagator().fields()},y.prototype.disable=function(){k.unregisterGlobal(l,u.DiagAPI.instance())},y.prototype._getGlobalPropagator=function(){return k.getGlobal(l)||c},y}();a.PropagationAPI=v}),Ct=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(y,f,b,E){E===void 0&&(E=b),Object.defineProperty(y,E,{enumerable:!0,get:function(){return f[b]}})}:function(y,f,b,E){E===void 0&&(E=b),y[E]=f[b]}),p=a&&a.__exportStar||function(y,f){for(var b in y)b!=="default"&&!Object.prototype.hasOwnProperty.call(f,b)&&k(f,y,b)};Object.defineProperty(a,"__esModule",{value:!0}),a.diag=a.propagation=a.trace=a.context=a.INVALID_SPAN_CONTEXT=a.INVALID_TRACEID=a.INVALID_SPANID=a.isValidSpanId=a.isValidTraceId=a.isSpanContextValid=a.baggageEntryMetadataFromString=void 0,p(pe(),a);var g=zt();Object.defineProperty(a,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return g.baggageEntryMetadataFromString}}),p(di(),a),p(jt(),a),p(Jt(),a),p(ui(),a),p(tr(),a),p(Vr(),a),p(We(),a),p(mt(),a),p(ei(),a),p(be(),a),p(ve(),a),p(Me(),a),p(Oe(),a),p(Ue(),a),p(kt(),a),p(Xi(),a),p(wi(),a),p(ti(),a),p(ft(),a);var _=le();Object.defineProperty(a,"isSpanContextValid",{enumerable:!0,get:function(){return _.isSpanContextValid}}),Object.defineProperty(a,"isValidTraceId",{enumerable:!0,get:function(){return _.isValidTraceId}}),Object.defineProperty(a,"isValidSpanId",{enumerable:!0,get:function(){return _.isValidSpanId}});var m=Zt();Object.defineProperty(a,"INVALID_SPANID",{enumerable:!0,get:function(){return m.INVALID_SPANID}}),Object.defineProperty(a,"INVALID_TRACEID",{enumerable:!0,get:function(){return m.INVALID_TRACEID}}),Object.defineProperty(a,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return m.INVALID_SPAN_CONTEXT}}),p(Er(),a),p(bi(),a);var u=Gt();a.context=u.ContextAPI.getInstance();var l=nr();a.trace=l.TraceAPI.getInstance();var c=Ar();a.propagation=c.PropagationAPI.getInstance();var v=Ze();a.diag=v.DiagAPI.instance(),a.default={trace:a.trace,context:a.context,propagation:a.propagation,diag:a.diag}}),Gi=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isTracingSuppressed=a.unsuppressTracing=a.suppressTracing=void 0;var k=Ct(),p=k.createContextKey("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function g(u){return u.setValue(p,!0)}a.suppressTracing=g;function _(u){return u.deleteValue(p)}a.unsuppressTracing=_;function m(u){return u.getValue(p)===!0}a.isTracingSuppressed=m}),Mi=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.BAGGAGE_MAX_TOTAL_LENGTH=a.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=a.BAGGAGE_MAX_NAME_VALUE_PAIRS=a.BAGGAGE_HEADER=a.BAGGAGE_ITEMS_SEPARATOR=a.BAGGAGE_PROPERTIES_SEPARATOR=a.BAGGAGE_KEY_PAIR_SEPARATOR=void 0,a.BAGGAGE_KEY_PAIR_SEPARATOR="=",a.BAGGAGE_PROPERTIES_SEPARATOR=";",a.BAGGAGE_ITEMS_SEPARATOR=",",a.BAGGAGE_HEADER="baggage",a.BAGGAGE_MAX_NAME_VALUE_PAIRS=180,a.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,a.BAGGAGE_MAX_TOTAL_LENGTH=8192}),Xr=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.parseKeyPairsIntoRecord=a.parsePairKeyValue=a.getKeyPairs=a.serializeKeyPairs=void 0;var k=Ct(),p=Mi(),g=l=>l.reduce((c,v)=>{let y=`${c}${c!==""?p.BAGGAGE_ITEMS_SEPARATOR:""}${v}`;return y.length>p.BAGGAGE_MAX_TOTAL_LENGTH?c:y},"");a.serializeKeyPairs=g;var _=l=>l.getAllEntries().map(([c,v])=>`${encodeURIComponent(c)}=${encodeURIComponent(v.value)}`);a.getKeyPairs=_;var m=l=>{let c=l.split(p.BAGGAGE_PROPERTIES_SEPARATOR);if(c.length<=0)return;let v=c.shift();if(!v)return;let y=v.split(p.BAGGAGE_KEY_PAIR_SEPARATOR);if(y.length!==2)return;let f=decodeURIComponent(y[0].trim()),b=decodeURIComponent(y[1].trim()),E;return c.length>0&&(E=k.baggageEntryMetadataFromString(c.join(p.BAGGAGE_PROPERTIES_SEPARATOR))),{key:f,value:b,metadata:E}};a.parsePairKeyValue=m;var u=l=>typeof l!="string"||l.length===0?{}:l.split(p.BAGGAGE_ITEMS_SEPARATOR).map(c=>a.parsePairKeyValue(c)).filter(c=>c!==void 0&&c.value.length>0).reduce((c,v)=>(c[v.key]=v.value,c),{});a.parseKeyPairsIntoRecord=u}),Ir=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.HttpBaggagePropagator=void 0;var k=Ct(),p=Gi(),g=Mi(),_=Xr(),m=class{inject(u,l,c){let v=k.propagation.getBaggage(u);if(!v||p.isTracingSuppressed(u))return;let y=_.getKeyPairs(v).filter(b=>b.length<=g.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,g.BAGGAGE_MAX_NAME_VALUE_PAIRS),f=_.serializeKeyPairs(y);f.length>0&&c.set(l,g.BAGGAGE_HEADER,f)}extract(u,l,c){let v=c.get(l,g.BAGGAGE_HEADER);if(!v)return u;let y={};return v.length===0||(v.split(g.BAGGAGE_ITEMS_SEPARATOR).forEach(f=>{let b=_.parsePairKeyValue(f);if(b){let E={value:b.value};b.metadata&&(E.metadata=b.metadata),y[b.key]=E}}),Object.entries(y).length===0)?u:k.propagation.setBaggage(u,k.propagation.createBaggage(y))}fields(){return[g.BAGGAGE_HEADER]}};a.HttpBaggagePropagator=m}),ms=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isAttributeValue=a.sanitizeAttributes=void 0;function k(m){let u={};if(m==null||typeof m!="object")return u;for(let[l,c]of Object.entries(m))p(c)&&(Array.isArray(c)?u[l]=c.slice():u[l]=c);return u}a.sanitizeAttributes=k;function p(m){return m==null?!0:Array.isArray(m)?g(m):_(m)}a.isAttributeValue=p;function g(m){let u;for(let l of m)if(l!=null){if(!u){if(_(l)){u=typeof l;continue}return!1}if(typeof l!==u)return!1}return!0}function _(m){switch(typeof m){case"number":return!0;case"boolean":return!0;case"string":return!0}return!1}}),vn=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.loggingErrorHandler=void 0;var k=Ct();function p(){return m=>{k.diag.error(g(m))}}a.loggingErrorHandler=p;function g(m){return typeof m=="string"?m:JSON.stringify(_(m))}function _(m){let u={},l=m;for(;l!==null;)Object.getOwnPropertyNames(l).forEach(c=>{if(u[c])return;let v=l[c];v&&(u[c]=String(v))}),l=Object.getPrototypeOf(l);return u}}),gr=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.globalErrorHandler=a.setGlobalErrorHandler=void 0;var k=vn(),p=k.loggingErrorHandler();function g(m){p=m}a.setGlobalErrorHandler=g;var _=m=>{try{p(m)}catch(u){}};a.globalErrorHandler=_}),Tr=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TracesSamplerValues=void 0;var k;(function(p){p.AlwaysOff="always_off",p.AlwaysOn="always_on",p.ParentBasedAlwaysOff="parentbased_always_off",p.ParentBasedAlwaysOn="parentbased_always_on",p.ParentBasedTraceIdRatio="parentbased_traceidratio",p.TraceIdRatio="traceidratio"})(k=a.TracesSamplerValues||(a.TracesSamplerValues={}))}),Yt=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.parseEnvironment=a.DEFAULT_ENVIRONMENT=void 0;var k=Ct(),p=Tr(),g=",",_=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT"];function m(E){return _.indexOf(E)>-1}var u=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function l(E){return u.indexOf(E)>-1}a.DEFAULT_ENVIRONMENT={CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:k.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"none",OTEL_TRACES_SAMPLER:p.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:""};function c(E,R,C,A=-1/0,O=1/0){if(typeof C[E]!="undefined"){let z=Number(C[E]);isNaN(z)||(z<A?R[E]=A:z>O?R[E]=O:R[E]=z)}}function v(E,R,C,A=g){let O=C[E];typeof O=="string"&&(R[E]=O.split(A).map(z=>z.trim()))}var y={ALL:k.DiagLogLevel.ALL,VERBOSE:k.DiagLogLevel.VERBOSE,DEBUG:k.DiagLogLevel.DEBUG,INFO:k.DiagLogLevel.INFO,WARN:k.DiagLogLevel.WARN,ERROR:k.DiagLogLevel.ERROR,NONE:k.DiagLogLevel.NONE};function f(E,R,C){let A=C[E];if(typeof A=="string"){let O=y[A.toUpperCase()];O!=null&&(R[E]=O)}}function b(E){let R={};for(let C in a.DEFAULT_ENVIRONMENT){let A=C;switch(A){case"OTEL_LOG_LEVEL":f(A,R,E);break;default:if(m(A))c(A,R,E);else if(l(A))v(A,R,E);else{let O=E[A];typeof O!="undefined"&&O!==null&&(R[A]=String(O))}}}return R}a.parseEnvironment=b}),Bi=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getEnv=void 0;var k=U(2037),p=Yt();function g(){let _=p.parseEnvironment(process.env);return Object.assign({HOSTNAME:k.hostname()},p.DEFAULT_ENVIRONMENT,_)}a.getEnv=g}),gn=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.hexToBase64=void 0;function k(p){let g=p.length,_="";for(let m=0;m<g;m+=2){let u=p.substring(m,m+2),l=parseInt(u,16);_+=String.fromCharCode(l)}return Buffer.from(_,"ascii").toString("base64")}a.hexToBase64=k}),lo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.RandomIdGenerator=void 0;var k=8,p=16,g=class{constructor(){this.generateTraceId=m(p),this.generateSpanId=m(k)}};a.RandomIdGenerator=g;var _=Buffer.allocUnsafe(p);function m(u){return function(){for(let l=0;l<u/4;l++)_.writeUInt32BE(Math.random()*2**32>>>0,l*4);for(let l=0;l<u&&!(_[l]>0);l++)l===u-1&&(_[u-1]=1);return _.toString("hex",0,u)}}}),hs=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.otperformance=void 0;var k=U(4074);a.otperformance=k.performance}),fs=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.VERSION=void 0,a.VERSION="0.23.0"}),Bn=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.RpcGrpcStatusCodeValues=a.MessagingOperationValues=a.MessagingDestinationKindValues=a.HttpFlavorValues=a.NetTransportValues=a.FaasInvokedProviderValues=a.FaasDocumentOperationValues=a.FaasTriggerValues=a.DbCassandraConsistencyLevelValues=a.DbSystemValues=a.SemanticAttributes=void 0,a.SemanticAttributes={DB_SYSTEM:"db.system",DB_CONNECTION_STRING:"db.connection_string",DB_USER:"db.user",DB_JDBC_DRIVER_CLASSNAME:"db.jdbc.driver_classname",DB_NAME:"db.name",DB_STATEMENT:"db.statement",DB_OPERATION:"db.operation",DB_MSSQL_INSTANCE_NAME:"db.mssql.instance_name",DB_CASSANDRA_KEYSPACE:"db.cassandra.keyspace",DB_CASSANDRA_PAGE_SIZE:"db.cassandra.page_size",DB_CASSANDRA_CONSISTENCY_LEVEL:"db.cassandra.consistency_level",DB_CASSANDRA_TABLE:"db.cassandra.table",DB_CASSANDRA_IDEMPOTENCE:"db.cassandra.idempotence",DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:"db.cassandra.speculative_execution_count",DB_CASSANDRA_COORDINATOR_ID:"db.cassandra.coordinator.id",DB_CASSANDRA_COORDINATOR_DC:"db.cassandra.coordinator.dc",DB_HBASE_NAMESPACE:"db.hbase.namespace",DB_REDIS_DATABASE_INDEX:"db.redis.database_index",DB_MONGODB_COLLECTION:"db.mongodb.collection",DB_SQL_TABLE:"db.sql.table",EXCEPTION_TYPE:"exception.type",EXCEPTION_MESSAGE:"exception.message",EXCEPTION_STACKTRACE:"exception.stacktrace",EXCEPTION_ESCAPED:"exception.escaped",FAAS_TRIGGER:"faas.trigger",FAAS_EXECUTION:"faas.execution",FAAS_DOCUMENT_COLLECTION:"faas.document.collection",FAAS_DOCUMENT_OPERATION:"faas.document.operation",FAAS_DOCUMENT_TIME:"faas.document.time",FAAS_DOCUMENT_NAME:"faas.document.name",FAAS_TIME:"faas.time",FAAS_CRON:"faas.cron",FAAS_COLDSTART:"faas.coldstart",FAAS_INVOKED_NAME:"faas.invoked_name",FAAS_INVOKED_PROVIDER:"faas.invoked_provider",FAAS_INVOKED_REGION:"faas.invoked_region",NET_TRANSPORT:"net.transport",NET_PEER_IP:"net.peer.ip",NET_PEER_PORT:"net.peer.port",NET_PEER_NAME:"net.peer.name",NET_HOST_IP:"net.host.ip",NET_HOST_PORT:"net.host.port",NET_HOST_NAME:"net.host.name",PEER_SERVICE:"peer.service",ENDUSER_ID:"enduser.id",ENDUSER_ROLE:"enduser.role",ENDUSER_SCOPE:"enduser.scope",THREAD_ID:"thread.id",THREAD_NAME:"thread.name",CODE_FUNCTION:"code.function",CODE_NAMESPACE:"code.namespace",CODE_FILEPATH:"code.filepath",CODE_LINENO:"code.lineno",HTTP_METHOD:"http.method",HTTP_URL:"http.url",HTTP_TARGET:"http.target",HTTP_HOST:"http.host",HTTP_SCHEME:"http.scheme",HTTP_STATUS_CODE:"http.status_code",HTTP_FLAVOR:"http.flavor",HTTP_USER_AGENT:"http.user_agent",HTTP_REQUEST_CONTENT_LENGTH:"http.request_content_length",HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:"http.request_content_length_uncompressed",HTTP_RESPONSE_CONTENT_LENGTH:"http.response_content_length",HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:"http.response_content_length_uncompressed",HTTP_SERVER_NAME:"http.server_name",HTTP_ROUTE:"http.route",HTTP_CLIENT_IP:"http.client_ip",AWS_DYNAMODB_TABLE_NAMES:"aws.dynamodb.table_names",AWS_DYNAMODB_CONSUMED_CAPACITY:"aws.dynamodb.consumed_capacity",AWS_DYNAMODB_ITEM_COLLECTION_METRICS:"aws.dynamodb.item_collection_metrics",AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:"aws.dynamodb.provisioned_read_capacity",AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:"aws.dynamodb.provisioned_write_capacity",AWS_DYNAMODB_CONSISTENT_READ:"aws.dynamodb.consistent_read",AWS_DYNAMODB_PROJECTION:"aws.dynamodb.projection",AWS_DYNAMODB_LIMIT:"aws.dynamodb.limit",AWS_DYNAMODB_ATTRIBUTES_TO_GET:"aws.dynamodb.attributes_to_get",AWS_DYNAMODB_INDEX_NAME:"aws.dynamodb.index_name",AWS_DYNAMODB_SELECT:"aws.dynamodb.select",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:"aws.dynamodb.global_secondary_indexes",AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:"aws.dynamodb.local_secondary_indexes",AWS_DYNAMODB_EXCLUSIVE_START_TABLE:"aws.dynamodb.exclusive_start_table",AWS_DYNAMODB_TABLE_COUNT:"aws.dynamodb.table_count",AWS_DYNAMODB_SCAN_FORWARD:"aws.dynamodb.scan_forward",AWS_DYNAMODB_SEGMENT:"aws.dynamodb.segment",AWS_DYNAMODB_TOTAL_SEGMENTS:"aws.dynamodb.total_segments",AWS_DYNAMODB_COUNT:"aws.dynamodb.count",AWS_DYNAMODB_SCANNED_COUNT:"aws.dynamodb.scanned_count",AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:"aws.dynamodb.attribute_definitions",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:"aws.dynamodb.global_secondary_index_updates",MESSAGING_SYSTEM:"messaging.system",MESSAGING_DESTINATION:"messaging.destination",MESSAGING_DESTINATION_KIND:"messaging.destination_kind",MESSAGING_TEMP_DESTINATION:"messaging.temp_destination",MESSAGING_PROTOCOL:"messaging.protocol",MESSAGING_PROTOCOL_VERSION:"messaging.protocol_version",MESSAGING_URL:"messaging.url",MESSAGING_MESSAGE_ID:"messaging.message_id",MESSAGING_CONVERSATION_ID:"messaging.conversation_id",MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:"messaging.message_payload_size_bytes",MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:"messaging.message_payload_compressed_size_bytes",MESSAGING_OPERATION:"messaging.operation",MESSAGING_RABBITMQ_ROUTING_KEY:"messaging.rabbitmq.routing_key",MESSAGING_KAFKA_MESSAGE_KEY:"messaging.kafka.message_key",MESSAGING_KAFKA_CONSUMER_GROUP:"messaging.kafka.consumer_group",MESSAGING_KAFKA_CLIENT_ID:"messaging.kafka.client_id",MESSAGING_KAFKA_PARTITION:"messaging.kafka.partition",MESSAGING_KAFKA_TOMBSTONE:"messaging.kafka.tombstone",RPC_SYSTEM:"rpc.system",RPC_SERVICE:"rpc.service",RPC_METHOD:"rpc.method",RPC_GRPC_STATUS_CODE:"rpc.grpc.status_code",RPC_JSONRPC_VERSION:"rpc.jsonrpc.version",RPC_JSONRPC_METHOD:"rpc.jsonrpc.method",RPC_JSONRPC_REQUEST_ID:"rpc.jsonrpc.request_id",RPC_JSONRPC_ERROR_CODE:"rpc.jsonrpc.error_code",RPC_JSONRPC_ERROR_MESSAGE:"rpc.jsonrpc.error_message"};var k;(function(f){f.OTHER_SQL="other_sql",f.MSSQL="mssql",f.MYSQL="mysql",f.ORACLE="oracle",f.DB2="db2",f.POSTGRESQL="postgresql",f.REDSHIFT="redshift",f.HIVE="hive",f.CLOUDSCAPE="cloudscape",f.HSQLDB="hsqldb",f.PROGRESS="progress",f.MAXDB="maxdb",f.HANADB="hanadb",f.INGRES="ingres",f.FIRSTSQL="firstsql",f.EDB="edb",f.CACHE="cache",f.ADABAS="adabas",f.FIREBIRD="firebird",f.DERBY="derby",f.FILEMAKER="filemaker",f.INFORMIX="informix",f.INSTANTDB="instantdb",f.INTERBASE="interbase",f.MARIADB="mariadb",f.NETEZZA="netezza",f.PERVASIVE="pervasive",f.POINTBASE="pointbase",f.SQLITE="sqlite",f.SYBASE="sybase",f.TERADATA="teradata",f.VERTICA="vertica",f.H2="h2",f.COLDFUSION="coldfusion",f.CASSANDRA="cassandra",f.HBASE="hbase",f.MONGODB="mongodb",f.REDIS="redis",f.COUCHBASE="couchbase",f.COUCHDB="couchdb",f.COSMOSDB="cosmosdb",f.DYNAMODB="dynamodb",f.NEO4J="neo4j",f.GEODE="geode",f.ELASTICSEARCH="elasticsearch",f.MEMCACHED="memcached",f.COCKROACHDB="cockroachdb"})(k=a.DbSystemValues||(a.DbSystemValues={}));var p;(function(f){f.ALL="all",f.EACH_QUORUM="each_quorum",f.QUORUM="quorum",f.LOCAL_QUORUM="local_quorum",f.ONE="one",f.TWO="two",f.THREE="three",f.LOCAL_ONE="local_one",f.ANY="any",f.SERIAL="serial",f.LOCAL_SERIAL="local_serial"})(p=a.DbCassandraConsistencyLevelValues||(a.DbCassandraConsistencyLevelValues={}));var g;(function(f){f.DATASOURCE="datasource",f.HTTP="http",f.PUBSUB="pubsub",f.TIMER="timer",f.OTHER="other"})(g=a.FaasTriggerValues||(a.FaasTriggerValues={}));var _;(function(f){f.INSERT="insert",f.EDIT="edit",f.DELETE="delete"})(_=a.FaasDocumentOperationValues||(a.FaasDocumentOperationValues={}));var m;(function(f){f.AWS="aws",f.AZURE="azure",f.GCP="gcp"})(m=a.FaasInvokedProviderValues||(a.FaasInvokedProviderValues={}));var u;(function(f){f.IP_TCP="ip_tcp",f.IP_UDP="ip_udp",f.IP="ip",f.UNIX="unix",f.PIPE="pipe",f.INPROC="inproc",f.OTHER="other"})(u=a.NetTransportValues||(a.NetTransportValues={}));var l;(function(f){f.HTTP_1_0="1.0",f.HTTP_1_1="1.1",f.HTTP_2_0="2.0",f.SPDY="SPDY",f.QUIC="QUIC"})(l=a.HttpFlavorValues||(a.HttpFlavorValues={}));var c;(function(f){f.QUEUE="queue",f.TOPIC="topic"})(c=a.MessagingDestinationKindValues||(a.MessagingDestinationKindValues={}));var v;(function(f){f.RECEIVE="receive",f.PROCESS="process"})(v=a.MessagingOperationValues||(a.MessagingOperationValues={}));var y;(function(f){f[f.OK=0]="OK",f[f.CANCELLED=1]="CANCELLED",f[f.UNKNOWN=2]="UNKNOWN",f[f.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",f[f.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",f[f.NOT_FOUND=5]="NOT_FOUND",f[f.ALREADY_EXISTS=6]="ALREADY_EXISTS",f[f.PERMISSION_DENIED=7]="PERMISSION_DENIED",f[f.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",f[f.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",f[f.ABORTED=10]="ABORTED",f[f.OUT_OF_RANGE=11]="OUT_OF_RANGE",f[f.UNIMPLEMENTED=12]="UNIMPLEMENTED",f[f.INTERNAL=13]="INTERNAL",f[f.UNAVAILABLE=14]="UNAVAILABLE",f[f.DATA_LOSS=15]="DATA_LOSS",f[f.UNAUTHENTICATED=16]="UNAUTHENTICATED"})(y=a.RpcGrpcStatusCodeValues||(a.RpcGrpcStatusCodeValues={}))}),Ul=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(Bn(),a)}),vs=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TelemetrySdkLanguageValues=a.OsTypeValues=a.HostArchValues=a.AwsEcsLaunchtypeValues=a.CloudPlatformValues=a.CloudProviderValues=a.ResourceAttributes=void 0,a.ResourceAttributes={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"};var k;(function(l){l.AWS="aws",l.AZURE="azure",l.GCP="gcp"})(k=a.CloudProviderValues||(a.CloudProviderValues={}));var p;(function(l){l.AWS_EC2="aws_ec2",l.AWS_ECS="aws_ecs",l.AWS_EKS="aws_eks",l.AWS_LAMBDA="aws_lambda",l.AWS_ELASTIC_BEANSTALK="aws_elastic_beanstalk",l.AZURE_VM="azure_vm",l.AZURE_CONTAINER_INSTANCES="azure_container_instances",l.AZURE_AKS="azure_aks",l.AZURE_FUNCTIONS="azure_functions",l.AZURE_APP_SERVICE="azure_app_service",l.GCP_COMPUTE_ENGINE="gcp_compute_engine",l.GCP_CLOUD_RUN="gcp_cloud_run",l.GCP_KUBERNETES_ENGINE="gcp_kubernetes_engine",l.GCP_CLOUD_FUNCTIONS="gcp_cloud_functions",l.GCP_APP_ENGINE="gcp_app_engine"})(p=a.CloudPlatformValues||(a.CloudPlatformValues={}));var g;(function(l){l.EC2="ec2",l.FARGATE="fargate"})(g=a.AwsEcsLaunchtypeValues||(a.AwsEcsLaunchtypeValues={}));var _;(function(l){l.AMD64="amd64",l.ARM32="arm32",l.ARM64="arm64",l.IA64="ia64",l.PPC32="ppc32",l.PPC64="ppc64",l.X86="x86"})(_=a.HostArchValues||(a.HostArchValues={}));var m;(function(l){l.WINDOWS="windows",l.LINUX="linux",l.DARWIN="darwin",l.FREEBSD="freebsd",l.NETBSD="netbsd",l.OPENBSD="openbsd",l.DRAGONFLYBSD="dragonflybsd",l.HPUX="hpux",l.AIX="aix",l.SOLARIS="solaris",l.Z_OS="z_os"})(m=a.OsTypeValues||(a.OsTypeValues={}));var u;(function(l){l.CPP="cpp",l.DOTNET="dotnet",l.ERLANG="erlang",l.GO="go",l.JAVA="java",l.NODEJS="nodejs",l.PHP="php",l.PYTHON="python",l.RUBY="ruby",l.WEBJS="webjs"})(u=a.TelemetrySdkLanguageValues||(a.TelemetrySdkLanguageValues={}))}),uo=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(vs(),a)}),Hn=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(Ul(),a),p(uo(),a)}),Vl=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.SDK_INFO=void 0;var k=fs(),p=Hn();a.SDK_INFO={[p.ResourceAttributes.TELEMETRY_SDK_NAME]:"opentelemetry",[p.ResourceAttributes.PROCESS_RUNTIME_NAME]:"node",[p.ResourceAttributes.TELEMETRY_SDK_LANGUAGE]:p.TelemetrySdkLanguageValues.NODEJS,[p.ResourceAttributes.TELEMETRY_SDK_VERSION]:k.VERSION}}),po=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.unrefTimer=void 0;function k(p){p.unref()}a.unrefTimer=k}),ql=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(Bi(),a),p(gn(),a),p(lo(),a),p(hs(),a),p(Vl(),a),p(po(),a)}),gs=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(ql(),a)}),co=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isTimeInput=a.isTimeInputHrTime=a.hrTimeToMicroseconds=a.hrTimeToMilliseconds=a.hrTimeToNanoseconds=a.hrTimeToTimeStamp=a.hrTimeDuration=a.timeInputToHrTime=a.hrTime=void 0;var k=gs(),p=9,g=Math.pow(10,p);function _(C){let A=C/1e3,O=Math.trunc(A),z=Number((A-O).toFixed(p))*g;return[O,z]}function m(){let C=k.otperformance.timeOrigin;if(typeof C!="number"){let A=k.otperformance;C=A.timing&&A.timing.fetchStart}return C}function u(C){let A=_(m()),O=_(typeof C=="number"?C:k.otperformance.now()),z=A[0]+O[0],X=A[1]+O[1];return X>g&&(X-=g,z+=1),[z,X]}a.hrTime=u;function l(C){if(E(C))return C;if(typeof C=="number")return C<m()?u(C):_(C);if(C instanceof Date)return _(C.getTime());throw TypeError("Invalid input type")}a.timeInputToHrTime=l;function c(C,A){let O=A[0]-C[0],z=A[1]-C[1];return z<0&&(O-=1,z+=g),[O,z]}a.hrTimeDuration=c;function v(C){let A=p,O=`${"0".repeat(A)}${C[1]}Z`,z=O.substr(O.length-A-1);return new Date(C[0]*1e3).toISOString().replace("000Z",z)}a.hrTimeToTimeStamp=v;function y(C){return C[0]*g+C[1]}a.hrTimeToNanoseconds=y;function f(C){return Math.round(C[0]*1e3+C[1]/1e6)}a.hrTimeToMilliseconds=f;function b(C){return Math.round(C[0]*1e6+C[1]/1e3)}a.hrTimeToMicroseconds=b;function E(C){return Array.isArray(C)&&C.length===2&&typeof C[0]=="number"&&typeof C[1]=="number"}a.isTimeInputHrTime=E;function R(C){return E(C)||typeof C=="number"||C instanceof Date}a.isTimeInput=R}),$l=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Gl=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ExportResultCode=void 0;var k;(function(p){p[p.SUCCESS=0]="SUCCESS",p[p.FAILED=1]="FAILED"})(k=a.ExportResultCode||(a.ExportResultCode={}))}),ys=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.CompositePropagator=void 0;var k=Ct(),p=class{constructor(g={}){var _;this._propagators=(_=g.propagators)!==null&&_!==void 0?_:[],this._fields=Array.from(new Set(this._propagators.map(m=>typeof m.fields=="function"?m.fields():[]).reduce((m,u)=>m.concat(u),[])))}inject(g,_,m){for(let u of this._propagators)try{u.inject(g,_,m)}catch(l){k.diag.warn(`Failed to inject with ${u.constructor.name}. Err: ${l.message}`)}}extract(g,_,m){return this._propagators.reduce((u,l)=>{try{return l.extract(u,_,m)}catch(c){k.diag.warn(`Failed to inject with ${l.constructor.name}. Err: ${c.message}`)}return u},g)}fields(){return this._fields.slice()}};a.CompositePropagator=p}),Bl=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.validateValue=a.validateKey=void 0;var k="[_0-9a-z-*/]",p=`[a-z]${k}{0,255}`,g=`[a-z0-9]${k}{0,240}@[a-z]${k}{0,13}`,_=new RegExp(`^(?:${p}|${g})$`),m=/^[ -~]{0,255}[!-~]$/,u=/,|=/;function l(v){return _.test(v)}a.validateKey=l;function c(v){return m.test(v)&&!u.test(v)}a.validateValue=c}),mo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TraceState=void 0;var k=Bl(),p=32,g=512,_=",",m="=",u=class{constructor(l){this._internalState=new Map,l&&this._parse(l)}set(l,c){let v=this._clone();return v._internalState.has(l)&&v._internalState.delete(l),v._internalState.set(l,c),v}unset(l){let c=this._clone();return c._internalState.delete(l),c}get(l){return this._internalState.get(l)}serialize(){return this._keys().reduce((l,c)=>(l.push(c+m+this.get(c)),l),[]).join(_)}_parse(l){l.length>g||(this._internalState=l.split(_).reverse().reduce((c,v)=>{let y=v.trim(),f=y.indexOf(m);if(f!==-1){let b=y.slice(0,f),E=y.slice(f+1,v.length);k.validateKey(b)&&k.validateValue(E)&&c.set(b,E)}return c},new Map),this._internalState.size>p&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,p))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let l=new u;return l._internalState=new Map(this._internalState),l}};a.TraceState=u}),Hl=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.HttpTraceContextPropagator=a.parseTraceParent=a.TRACE_STATE_HEADER=a.TRACE_PARENT_HEADER=void 0;var k=Ct(),p=Gi(),g=mo();a.TRACE_PARENT_HEADER="traceparent",a.TRACE_STATE_HEADER="tracestate";var _="00",m="(?!ff)[\\da-f]{2}",u="(?![0]{32})[\\da-f]{32}",l="(?![0]{16})[\\da-f]{16}",c="[\\da-f]{2}",v=new RegExp(`^\\s?(${m})-(${u})-(${l})-(${c})(-.*)?\\s?$`);function y(b){let E=v.exec(b);return!E||E[1]==="00"&&E[5]?null:{traceId:E[2],spanId:E[3],traceFlags:parseInt(E[4],16)}}a.parseTraceParent=y;var f=class{inject(b,E,R){let C=k.trace.getSpanContext(b);if(!C||p.isTracingSuppressed(b)||!k.isSpanContextValid(C))return;let A=`${_}-${C.traceId}-${C.spanId}-0${Number(C.traceFlags||k.TraceFlags.NONE).toString(16)}`;R.set(E,a.TRACE_PARENT_HEADER,A),C.traceState&&R.set(E,a.TRACE_STATE_HEADER,C.traceState.serialize())}extract(b,E,R){let C=R.get(E,a.TRACE_PARENT_HEADER);if(!C)return b;let A=Array.isArray(C)?C[0]:C;if(typeof A!="string")return b;let O=y(A);if(!O)return b;O.isRemote=!0;let z=R.get(E,a.TRACE_STATE_HEADER);if(z){let X=Array.isArray(z)?z.join(","):z;O.traceState=new g.TraceState(typeof X=="string"?X:void 0)}return k.trace.setSpanContext(b,O)}fields(){return[a.TRACE_PARENT_HEADER,a.TRACE_STATE_HEADER]}};a.HttpTraceContextPropagator=f}),jl=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),ho=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getRPCMetadata=a.deleteRPCMetadata=a.setRPCMetadata=a.RPCType=void 0;var k=Ct(),p=k.createContextKey("OpenTelemetry SDK Context Key RPC_METADATA"),g;(function(l){l.HTTP="http"})(g=a.RPCType||(a.RPCType={}));function _(l,c){return l.setValue(p,c)}a.setRPCMetadata=_;function m(l){return l.deleteValue(p)}a.deleteRPCMetadata=m;function u(l){return l.getValue(p)}a.getRPCMetadata=u}),fo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.AlwaysOffSampler=void 0;var k=Ct(),p=class{shouldSample(){return{decision:k.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};a.AlwaysOffSampler=p}),vo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.AlwaysOnSampler=void 0;var k=Ct(),p=class{shouldSample(){return{decision:k.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};a.AlwaysOnSampler=p}),go=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ParentBasedSampler=void 0;var k=Ct(),p=gr(),g=fo(),_=vo(),m=class{constructor(u){var l,c,v,y;this._root=u.root,this._root||(p.globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new _.AlwaysOnSampler),this._remoteParentSampled=(l=u.remoteParentSampled)!==null&&l!==void 0?l:new _.AlwaysOnSampler,this._remoteParentNotSampled=(c=u.remoteParentNotSampled)!==null&&c!==void 0?c:new g.AlwaysOffSampler,this._localParentSampled=(v=u.localParentSampled)!==null&&v!==void 0?v:new _.AlwaysOnSampler,this._localParentNotSampled=(y=u.localParentNotSampled)!==null&&y!==void 0?y:new g.AlwaysOffSampler}shouldSample(u,l,c,v,y,f){let b=k.trace.getSpanContext(u);return!b||!k.isSpanContextValid(b)?this._root.shouldSample(u,l,c,v,y,f):b.isRemote?b.traceFlags&k.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(u,l,c,v,y,f):this._remoteParentNotSampled.shouldSample(u,l,c,v,y,f):b.traceFlags&k.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(u,l,c,v,y,f):this._localParentNotSampled.shouldSample(u,l,c,v,y,f)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};a.ParentBasedSampler=m}),ap=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TraceIdRatioBasedSampler=void 0;var k=Ct(),p=class{constructor(g=0){this._ratio=g,this._ratio=this._normalize(g),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(g,_){return{decision:k.isValidTraceId(_)&&this._accumulate(_)<this._upperBound?k.SamplingDecision.RECORD_AND_SAMPLED:k.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(g){return typeof g!="number"||isNaN(g)?0:g>=1?1:g<=0?0:g}_accumulate(g){let _=0;for(let m=0;m<g.length/8;m++){let u=m*8,l=parseInt(g.slice(u,u+8),16);_=(_^l)>>>0}return _}};a.TraceIdRatioBasedSampler=p}),Da=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isUrlIgnored=a.urlMatches=void 0;function k(g,_){return typeof _=="string"?g===_:_.test(g)}a.urlMatches=k;function p(g,_){if(!_)return!1;for(let m of _)if(k(g,m))return!0;return!1}a.isUrlIgnored=p}),ws=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isWrapped=void 0;function k(p){return typeof p=="function"&&typeof p.__original=="function"&&typeof p.__unwrap=="function"&&p.__wrapped===!0}a.isWrapped=k}),ar=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),a.baggageUtils=void 0,p(Ir(),a),p(ms(),a),p(gr(),a),p(vn(),a),p(co(),a),p($l(),a),p(Gl(),a),p(fs(),a),a.baggageUtils=Xr(),p(gs(),a),p(ys(),a),p(Hl(),a),p(jl(),a),p(ho(),a),p(fo(),a),p(vo(),a),p(go(),a),p(ap(),a),p(Gi(),a),p(mo(),a),p(Yt(),a),p(Tr(),a),p(Da(),a),p(ws(),a),p(fs(),a)}),yo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ExceptionEventName=void 0,a.ExceptionEventName="exception"}),Aa=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Span=void 0;var k=Ct(),p=ar(),g=Hn(),_=yo(),m=class{constructor(u,l,c,v,y,f,b=[],E=p.hrTime()){this.attributes={},this.links=[],this.events=[],this.status={code:k.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=c,this._spanContext=v,this.parentSpanId=f,this.kind=y,this.links=b,this.startTime=p.timeInputToHrTime(E),this.resource=u.resource,this.instrumentationLibrary=u.instrumentationLibrary,this._spanLimits=u.getSpanLimits(),this._spanProcessor=u.getActiveSpanProcessor(),this._spanProcessor.onStart(this,l)}spanContext(){return this._spanContext}setAttribute(u,l){return l==null||this._isSpanEnded()?this:u.length===0?(k.diag.warn(`Invalid attribute key: ${u}`),this):p.isAttributeValue(l)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,u)?this:(this.attributes[u]=l,this):(k.diag.warn(`Invalid attribute value set for key: ${u}`),this)}setAttributes(u){for(let[l,c]of Object.entries(u))this.setAttribute(l,c);return this}addEvent(u,l,c){return this._isSpanEnded()?this:(this.events.length>=this._spanLimits.eventCountLimit&&(k.diag.warn("Dropping extra events."),this.events.shift()),p.isTimeInput(l)&&(typeof c=="undefined"&&(c=l),l=void 0),typeof c=="undefined"&&(c=p.hrTime()),this.events.push({name:u,attributes:l,time:p.timeInputToHrTime(c)}),this)}setStatus(u){return this._isSpanEnded()?this:(this.status=u,this)}updateName(u){return this._isSpanEnded()?this:(this.name=u,this)}end(u=p.hrTime()){if(this._isSpanEnded()){k.diag.error("You can only call end() on a span once.");return}this._ended=!0,this.endTime=p.timeInputToHrTime(u),this._duration=p.hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0&&k.diag.warn("Inconsistent start and end time, startTime > endTime",this.startTime,this.endTime),this._spanProcessor.onEnd(this)}isRecording(){return this._ended===!1}recordException(u,l=p.hrTime()){let c={};typeof u=="string"?c[g.SemanticAttributes.EXCEPTION_MESSAGE]=u:u&&(u.code?c[g.SemanticAttributes.EXCEPTION_TYPE]=u.code.toString():u.name&&(c[g.SemanticAttributes.EXCEPTION_TYPE]=u.name),u.message&&(c[g.SemanticAttributes.EXCEPTION_MESSAGE]=u.message),u.stack&&(c[g.SemanticAttributes.EXCEPTION_STACKTRACE]=u.stack)),c[g.SemanticAttributes.EXCEPTION_TYPE]||c[g.SemanticAttributes.EXCEPTION_MESSAGE]?this.addEvent(_.ExceptionEventName,c,l):k.diag.warn(`Failed to record an exception ${u}`)}get duration(){return this._duration}get ended(){return this._ended}_isSpanEnded(){return this._ended&&k.diag.warn("Can not execute the operation on ended Span {traceId: %s, spanId: %s}",this._spanContext.traceId,this._spanContext.spanId),this._ended}};a.Span=m}),wo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.buildSamplerFromEnv=a.DEFAULT_CONFIG=void 0;var k=Ct(),p=ar(),g=p.getEnv(),_=p.TracesSamplerValues.AlwaysOn;a.DEFAULT_CONFIG={sampler:m(g),forceFlushTimeoutMillis:3e4,spanLimits:{attributeCountLimit:p.getEnv().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:p.getEnv().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:p.getEnv().OTEL_SPAN_EVENT_COUNT_LIMIT}};function m(c=p.getEnv()){switch(c.OTEL_TRACES_SAMPLER){case p.TracesSamplerValues.AlwaysOn:return new p.AlwaysOnSampler;case p.TracesSamplerValues.AlwaysOff:return new p.AlwaysOffSampler;case p.TracesSamplerValues.ParentBasedAlwaysOn:return new p.ParentBasedSampler({root:new p.AlwaysOnSampler});case p.TracesSamplerValues.ParentBasedAlwaysOff:return new p.ParentBasedSampler({root:new p.AlwaysOffSampler});case p.TracesSamplerValues.TraceIdRatio:return new p.TraceIdRatioBasedSampler(l(c));case p.TracesSamplerValues.ParentBasedTraceIdRatio:return new p.ParentBasedSampler({root:new p.TraceIdRatioBasedSampler(l(c))});default:return k.diag.error(`OTEL_TRACES_SAMPLER value "${c.OTEL_TRACES_SAMPLER} invalid, defaulting to ${_}".`),new p.AlwaysOnSampler}}a.buildSamplerFromEnv=m;var u=1;function l(c){if(c.OTEL_TRACES_SAMPLER_ARG===void 0||c.OTEL_TRACES_SAMPLER_ARG==="")return k.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${u}.`),u;let v=Number(c.OTEL_TRACES_SAMPLER_ARG);return isNaN(v)?(k.diag.error(`OTEL_TRACES_SAMPLER_ARG=${c.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${u}.`),u):v<0||v>1?(k.diag.error(`OTEL_TRACES_SAMPLER_ARG=${c.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${u}.`),u):v}}),bo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.mergeConfig=void 0;var k=wo();function p(g){let _={sampler:k.buildSamplerFromEnv()},m=Object.assign({},k.DEFAULT_CONFIG,_,g);return m.spanLimits=Object.assign({},k.DEFAULT_CONFIG.spanLimits,g.spanLimits||{}),m}a.mergeConfig=p}),_o=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Tracer=void 0;var k=Ct(),p=ar(),g=Aa(),_=bo(),m=class{constructor(l,c,v){this._tracerProvider=v;let y=_.mergeConfig(c);this._sampler=y.sampler,this._spanLimits=y.spanLimits,this._idGenerator=c.idGenerator||new p.RandomIdGenerator,this.resource=v.resource,this.instrumentationLibrary=l}startSpan(l,c={},v=k.context.active()){var y,f;if(p.isTracingSuppressed(v))return k.diag.debug("Instrumentation suppressed, returning Noop Span"),k.trace.wrapSpanContext(k.INVALID_SPAN_CONTEXT);let b=u(c,v),E=this._idGenerator.generateSpanId(),R,C,A;!b||!k.trace.isSpanContextValid(b)?R=this._idGenerator.generateTraceId():(R=b.traceId,C=b.traceState,A=b.spanId);let O=(y=c.kind)!==null&&y!==void 0?y:k.SpanKind.INTERNAL,z=(f=c.links)!==null&&f!==void 0?f:[],X=p.sanitizeAttributes(c.attributes),Y=this._sampler.shouldSample(c.root?k.trace.setSpanContext(v,k.INVALID_SPAN_CONTEXT):v,R,l,O,X,z),me=Y.decision===k.SamplingDecision.RECORD_AND_SAMPLED?k.TraceFlags.SAMPLED:k.TraceFlags.NONE,Ee={traceId:R,spanId:E,traceFlags:me,traceState:C};if(Y.decision===k.SamplingDecision.NOT_RECORD)return k.diag.debug("Recording is off, propagating context in a non-recording span"),k.trace.wrapSpanContext(Ee);let Ie=new g.Span(this,v,l,Ee,O,A,z,c.startTime);return Ie.setAttributes(Object.assign(X,Y.attributes)),Ie}startActiveSpan(l,c,v,y){let f,b,E;if(arguments.length<2)return;arguments.length===2?E=c:arguments.length===3?(f=c,E=v):(f=c,b=v,E=y);let R=b!=null?b:k.context.active(),C=this.startSpan(l,f,R),A=k.trace.setSpan(R,C);return k.context.with(A,E,void 0,C)}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};a.Tracer=m;function u(l,c){if(!l.root)return k.trace.getSpanContext(c)}}),bs=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.defaultServiceName=void 0;function k(){return`unknown_service:${process.argv0}`}a.defaultServiceName=k}),zl=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.detectResources=void 0;var k=oa(),p=Ct(),g=U(3837),_=async(u={})=>{let l=Object.assign(u),c=await Promise.all((l.detectors||[]).map(async v=>{try{let y=await v.detect(l);return p.diag.debug(`${v.constructor.name} found resource.`,y),y}catch(y){return p.diag.debug(`${v.constructor.name} failed: ${y.message}`),k.Resource.empty()}}));return m(c),c.reduce((v,y)=>v.merge(y),k.Resource.empty())};a.detectResources=_;var m=u=>{u.forEach(l=>{if(Object.keys(l.attributes).length>0){let c=g.inspect(l.attributes,{depth:2,breakLength:1/0,sorted:!0,compact:!1});p.diag.verbose(c)}})}}),Ql=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.envDetector=void 0;var k=Ct(),p=ar(),g=Hn(),_=Ia(),m=class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}async detect(u){let l={},c=p.getEnv(),v=c.OTEL_RESOURCE_ATTRIBUTES,y=c.OTEL_SERVICE_NAME;if(v)try{let f=this._parseResourceAttributes(v);Object.assign(l,f)}catch(f){k.diag.debug(`EnvDetector failed: ${f.message}`)}return y&&(l[g.ResourceAttributes.SERVICE_NAME]=y),new _.Resource(l)}_parseResourceAttributes(u){if(!u)return{};let l={},c=u.split(this._COMMA_SEPARATOR,-1);for(let v of c){let y=v.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(y.length!==2)continue;let[f,b]=y;if(f=f.trim(),b=b.trim().split('^"|"$').join(""),!this._isValidAndNotEmpty(f))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(b))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);l[f]=b}return l}_isValid(u){return u.length<=this._MAX_LENGTH&&this._isPrintableString(u)}_isPrintableString(u){for(let l=0;l<u.length;l++){let c=u.charAt(l);if(c<=" "||c>="~")return!1}return!0}_isValidAndNotEmpty(u){return u.length>0&&this._isValid(u)}};a.envDetector=new m}),Wl=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.processDetector=void 0;var k=Ct(),p=Hn(),g=Ia(),_=class{async detect(m){let u={[p.ResourceAttributes.PROCESS_PID]:process.pid,[p.ResourceAttributes.PROCESS_EXECUTABLE_NAME]:process.title||"",[p.ResourceAttributes.PROCESS_COMMAND]:process.argv[1]||"",[p.ResourceAttributes.PROCESS_COMMAND_LINE]:process.argv.join(" ")||""};return this._getResourceAttributes(u,m)}_getResourceAttributes(m,u){return m[p.ResourceAttributes.PROCESS_EXECUTABLE_NAME]===""||m[p.ResourceAttributes.PROCESS_EXECUTABLE_PATH]===""||m[p.ResourceAttributes.PROCESS_COMMAND]===""||m[p.ResourceAttributes.PROCESS_COMMAND_LINE]===""?(k.diag.debug("ProcessDetector failed: Unable to find required process resources. "),g.Resource.empty()):new g.Resource(Object.assign({},m))}};a.processDetector=new _}),sa=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(Ql(),a),p(Wl(),a)}),_s=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(bs(),a),p(zl(),a),p(sa(),a)}),Or=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(_s(),a)}),oa=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Resource=void 0;var k=Hn(),p=ar(),g=Or(),_=class{constructor(m){this.attributes=m}static empty(){return _.EMPTY}static default(){return new _({[k.ResourceAttributes.SERVICE_NAME]:g.defaultServiceName(),[k.ResourceAttributes.TELEMETRY_SDK_LANGUAGE]:p.SDK_INFO[k.ResourceAttributes.TELEMETRY_SDK_LANGUAGE],[k.ResourceAttributes.TELEMETRY_SDK_NAME]:p.SDK_INFO[k.ResourceAttributes.TELEMETRY_SDK_NAME],[k.ResourceAttributes.TELEMETRY_SDK_VERSION]:p.SDK_INFO[k.ResourceAttributes.TELEMETRY_SDK_VERSION]})}merge(m){if(!m||!Object.keys(m.attributes).length)return this;let u=Object.assign({},this.attributes,m.attributes);return new _(u)}};a.Resource=_,_.EMPTY=new _({})}),Kl=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Eo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Ia=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(oa(),a),p(Or(),a),p(Kl(),a),p(Eo(),a)}),Yl=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.MultiSpanProcessor=void 0;var k=ar(),p=class{constructor(g){this._spanProcessors=g}forceFlush(){let g=[];for(let _ of this._spanProcessors)g.push(_.forceFlush());return new Promise(_=>{Promise.all(g).then(()=>{_()}).catch(m=>{k.globalErrorHandler(m||new Error("MultiSpanProcessor: forceFlush failed")),_()})})}onStart(g,_){for(let m of this._spanProcessors)m.onStart(g,_)}onEnd(g){for(let _ of this._spanProcessors)_.onEnd(g)}shutdown(){let g=[];for(let _ of this._spanProcessors)g.push(_.shutdown());return new Promise((_,m)=>{Promise.all(g).then(()=>{_()},m)})}};a.MultiSpanProcessor=p}),Es=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.NoopSpanProcessor=void 0;var k=class{onStart(p,g){}onEnd(p){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};a.NoopSpanProcessor=k}),So=I((a,k)=>{var p=200,g="__lodash_hash_undefined__",_=800,m=16,u=9007199254740991,l="[object Arguments]",c="[object Array]",v="[object AsyncFunction]",y="[object Boolean]",f="[object Date]",b="[object Error]",E="[object Function]",R="[object GeneratorFunction]",C="[object Map]",A="[object Number]",O="[object Null]",z="[object Object]",X="[object Proxy]",Y="[object RegExp]",me="[object Set]",Ee="[object String]",Ie="[object Undefined]",De="[object WeakMap]",Ve="[object ArrayBuffer]",Qe="[object DataView]",Xe="[object Float32Array]",it="[object Float64Array]",Nt="[object Int8Array]",yt="[object Int16Array]",Qt="[object Int32Array]",ht="[object Uint8Array]",He="[object Uint8ClampedArray]",et="[object Uint16Array]",Je="[object Uint32Array]",at=/[\\^$.*+?()[\]{}|]/g,ct=/^\[object .+?Constructor\]$/,Et=/^(?:0|[1-9]\d*)$/,ut={};ut[Xe]=ut[it]=ut[Nt]=ut[yt]=ut[Qt]=ut[ht]=ut[He]=ut[et]=ut[Je]=!0,ut[l]=ut[c]=ut[Ve]=ut[y]=ut[Qe]=ut[f]=ut[b]=ut[E]=ut[C]=ut[A]=ut[z]=ut[Y]=ut[me]=ut[Ee]=ut[De]=!1;var qt=typeof global=="object"&&global&&global.Object===Object&&global,oi=typeof self=="object"&&self&&self.Object===Object&&self,ii=qt||oi||Function("return this")(),Wt=typeof a=="object"&&a&&!a.nodeType&&a,Ot=Wt&&typeof k=="object"&&k&&!k.nodeType&&k,Si=Ot&&Ot.exports===Wt,Ri=Si&&qt.process,st=function(){try{var ie=Ot&&Ot.require&&Ot.require("util").types;return ie||Ri&&Ri.binding&&Ri.binding("util")}catch(ye){}}(),pt=st&&st.isTypedArray;function St(ie,ye,Ae){switch(Ae.length){case 0:return ie.call(ye);case 1:return ie.call(ye,Ae[0]);case 2:return ie.call(ye,Ae[0],Ae[1]);case 3:return ie.call(ye,Ae[0],Ae[1],Ae[2])}return ie.apply(ye,Ae)}function Ft(ie,ye){for(var Ae=-1,ot=Array(ie);++Ae<ie;)ot[Ae]=ye(Ae);return ot}function Yn(ie){return function(ye){return ie(ye)}}function Xn(ie,ye){return ie==null?void 0:ie[ye]}function $e(ie,ye){return function(Ae){return ie(ye(Ae))}}var rn=Array.prototype,_n=Function.prototype,or=Object.prototype,hi=ii["__core-js_shared__"],kr=_n.toString,Ci=or.hasOwnProperty,Hr=function(){var ie=/[^.]+$/.exec(hi&&hi.keys&&hi.keys.IE_PROTO||"");return ie?"Symbol(src)_1."+ie:""}(),nn=or.toString,Bt=kr.call(Object),En=RegExp("^"+kr.call(Ci).replace(at,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ti=Si?ii.Buffer:void 0,Rr=ii.Symbol,an=ii.Uint8Array,At=Ti?Ti.allocUnsafe:void 0,Ii=$e(Object.getPrototypeOf,Object),Oi=Object.create,Ji=or.propertyIsEnumerable,lr=rn.splice,Ni=Rr?Rr.toStringTag:void 0,li=function(){try{var ie=dn(Object,"defineProperty");return ie({},"",{}),ie}catch(ye){}}(),Tt=Ti?Ti.isBuffer:void 0,ki=Math.max,rt=Date.now,sn=dn(ii,"Map"),dr=dn(Object,"create"),vt=function(){function ie(){}return function(ye){if(!wr(ye))return{};if(Oi)return Oi(ye);ie.prototype=ye;var Ae=new ie;return ie.prototype=void 0,Ae}}();function ur(ie){var ye=-1,Ae=ie==null?0:ie.length;for(this.clear();++ye<Ae;){var ot=ie[ye];this.set(ot[0],ot[1])}}function Sn(){this.__data__=dr?dr(null):{},this.size=0}function Tn(ie){var ye=this.has(ie)&&delete this.__data__[ie];return this.size-=ye?1:0,ye}function on(ie){var ye=this.__data__;if(dr){var Ae=ye[ie];return Ae===g?void 0:Ae}return Ci.call(ye,ie)?ye[ie]:void 0}function ln(ie){var ye=this.__data__;return dr?ye[ie]!==void 0:Ci.call(ye,ie)}function kn(ie,ye){var Ae=this.__data__;return this.size+=this.has(ie)?0:1,Ae[ie]=dr&&ye===void 0?g:ye,this}ur.prototype.clear=Sn,ur.prototype.delete=Tn,ur.prototype.get=on,ur.prototype.has=ln,ur.prototype.set=kn;function Zi(ie){var ye=-1,Ae=ie==null?0:ie.length;for(this.clear();++ye<Ae;){var ot=ie[ye];this.set(ot[0],ot[1])}}function Rn(){this.__data__=[],this.size=0}function Cn(ie){var ye=this.__data__,Ae=Be(ye,ie);if(Ae<0)return!1;var ot=ye.length-1;return Ae==ot?ye.pop():lr.call(ye,Ae,1),--this.size,!0}function ji(ie){var ye=this.__data__,Ae=Be(ye,ie);return Ae<0?void 0:ye[Ae][1]}function Nn(ie){return Be(this.__data__,ie)>-1}function Pn(ie,ye){var Ae=this.__data__,ot=Be(Ae,ie);return ot<0?(++this.size,Ae.push([ie,ye])):Ae[ot][1]=ye,this}Zi.prototype.clear=Rn,Zi.prototype.delete=Cn,Zi.prototype.get=ji,Zi.prototype.has=Nn,Zi.prototype.set=Pn;function Cr(ie){var ye=-1,Ae=ie==null?0:ie.length;for(this.clear();++ye<Ae;){var ot=ie[ye];this.set(ot[0],ot[1])}}function Dn(){this.size=0,this.__data__={hash:new ur,map:new(sn||Zi),string:new ur}}function An(ie){var ye=qa(this,ie).delete(ie);return this.size-=ye?1:0,ye}function xr(ie){return qa(this,ie).get(ie)}function pr(ie){return qa(this,ie).has(ie)}function In(ie,ye){var Ae=qa(this,ie),ot=Ae.size;return Ae.set(ie,ye),this.size+=Ae.size==ot?0:1,this}Cr.prototype.clear=Dn,Cr.prototype.delete=An,Cr.prototype.get=xr,Cr.prototype.has=pr,Cr.prototype.set=In;function cr(ie){var ye=this.__data__=new Zi(ie);this.size=ye.size}function vi(){this.__data__=new Zi,this.size=0}function w(ie){var ye=this.__data__,Ae=ye.delete(ie);return this.size=ye.size,Ae}function N(ie){return this.__data__.get(ie)}function F(ie){return this.__data__.has(ie)}function ne(ie,ye){var Ae=this.__data__;if(Ae instanceof Zi){var ot=Ae.__data__;if(!sn||ot.length<p-1)return ot.push([ie,ye]),this.size=++Ae.size,this;Ae=this.__data__=new Cr(ot)}return Ae.set(ie,ye),this.size=Ae.size,this}cr.prototype.clear=vi,cr.prototype.delete=w,cr.prototype.get=N,cr.prototype.has=F,cr.prototype.set=ne;function de(ie,ye){var Ae=On(ie),ot=!Ae&&ga(ie),Lt=!Ae&&!ot&&al(ie),si=!Ae&&!ot&&!Lt&&qs(ie),fi=Ae||ot||Lt||si,Ut=fi?Ft(ie.length,String):[],pi=Ut.length;for(var br in ie)(ye||Ci.call(ie,br))&&!(fi&&(br=="length"||Lt&&(br=="offset"||br=="parent")||si&&(br=="buffer"||br=="byteLength"||br=="byteOffset")||Ls(br,pi)))&&Ut.push(br);return Ut}function ge(ie,ye,Ae){(Ae!==void 0&&!Ga(ie[ye],Ae)||Ae===void 0&&!(ye in ie))&&Ge(ie,ye,Ae)}function we(ie,ye,Ae){var ot=ie[ye];(!(Ci.call(ie,ye)&&Ga(ot,Ae))||Ae===void 0&&!(ye in ie))&&Ge(ie,ye,Ae)}function Be(ie,ye){for(var Ae=ie.length;Ae--;)if(Ga(ie[Ae][0],ye))return Ae;return-1}function Ge(ie,ye,Ae){ye=="__proto__"&&li?li(ie,ye,{configurable:!0,enumerable:!0,value:Ae,writable:!0}):ie[ye]=Ae}var $t=ru();function xt(ie){return ie==null?ie===void 0?Ie:O:Ni&&Ni in Object(ie)?nu(ie):rl(ie)}function Pt(ie){return Zn(ie)&&xt(ie)==l}function Dt(ie){if(!wr(ie)||tl(ie))return!1;var ye=sl(ie)?En:ct;return ye.test(ou(ie))}function ri(ie){return Zn(ie)&&Vs(ie.length)&&!!ut[xt(ie)]}function Yd(ie){if(!wr(ie))return il(ie);var ye=$a(ie),Ae=[];for(var ot in ie)ot=="constructor"&&(ye||!Ci.call(ie,ot))||Ae.push(ot);return Ae}function fa(ie,ye,Ae,ot,Lt){ie!==ye&&$t(ye,function(si,fi){if(Lt||(Lt=new cr),wr(si))Xd(ie,ye,fi,Ae,fa,ot,Lt);else{var Ut=ot?ot(va(ie,fi),si,fi+"",ie,ye,Lt):void 0;Ut===void 0&&(Ut=si),ge(ie,fi,Ut)}},uu)}function Xd(ie,ye,Ae,ot,Lt,si,fi){var Ut=va(ie,Ae),pi=va(ye,Ae),br=fi.get(pi);if(br){ge(ie,Ae,br);return}var mr=si?si(Ut,pi,Ae+"",ie,ye,fi):void 0,ya=mr===void 0;if(ya){var $s=On(pi),Gs=!$s&&al(pi),ol=!$s&&!Gs&&qs(pi);mr=pi,$s||Gs||ol?On(Ut)?mr=Ut:nl(Ut)?mr=eu(Ut):Gs?(ya=!1,mr=Jn(pi,!0)):ol?(ya=!1,mr=Xo(pi,!0)):mr=[]:lu(pi)||ga(pi)?(mr=Ut,ga(Ut)?mr=du(Ut):(!wr(Ut)||sl(Ut))&&(mr=Jo(pi))):ya=!1}ya&&(fi.set(pi,mr),Lt(mr,pi,ot,si,fi),fi.delete(pi)),ge(ie,Ae,mr)}function Fs(ie,ye){return Us(au(ie,ye,cu),ie+"")}var Jd=li?function(ie,ye){return li(ie,"toString",{configurable:!0,enumerable:!1,value:Ha(ye),writable:!0})}:cu;function Jn(ie,ye){if(ye)return ie.slice();var Ae=ie.length,ot=At?At(Ae):new ie.constructor(Ae);return ie.copy(ot),ot}function Zd(ie){var ye=new ie.constructor(ie.byteLength);return new an(ye).set(new an(ie)),ye}function Xo(ie,ye){var Ae=ye?Zd(ie.buffer):ie.buffer;return new ie.constructor(Ae,ie.byteOffset,ie.length)}function eu(ie,ye){var Ae=-1,ot=ie.length;for(ye||(ye=Array(ot));++Ae<ot;)ye[Ae]=ie[Ae];return ye}function tu(ie,ye,Ae,ot){var Lt=!Ae;Ae||(Ae={});for(var si=-1,fi=ye.length;++si<fi;){var Ut=ye[si],pi=ot?ot(Ae[Ut],ie[Ut],Ut,Ae,ie):void 0;pi===void 0&&(pi=ie[Ut]),Lt?Ge(Ae,Ut,pi):we(Ae,Ut,pi)}return Ae}function iu(ie){return Fs(function(ye,Ae){var ot=-1,Lt=Ae.length,si=Lt>1?Ae[Lt-1]:void 0,fi=Lt>2?Ae[2]:void 0;for(si=ie.length>3&&typeof si=="function"?(Lt--,si):void 0,fi&&Zo(Ae[0],Ae[1],fi)&&(si=Lt<3?void 0:si,Lt=1),ye=Object(ye);++ot<Lt;){var Ut=Ae[ot];Ut&&ie(ye,Ut,ot,si)}return ye})}function ru(ie){return function(ye,Ae,ot){for(var Lt=-1,si=Object(ye),fi=ot(ye),Ut=fi.length;Ut--;){var pi=fi[ie?Ut:++Lt];if(Ae(si[pi],pi,si)===!1)break}return ye}}function qa(ie,ye){var Ae=ie.__data__;return el(ye)?Ae[typeof ye=="string"?"string":"hash"]:Ae.map}function dn(ie,ye){var Ae=Xn(ie,ye);return Dt(Ae)?Ae:void 0}function nu(ie){var ye=Ci.call(ie,Ni),Ae=ie[Ni];try{ie[Ni]=void 0;var ot=!0}catch(si){}var Lt=nn.call(ie);return ot&&(ye?ie[Ni]=Ae:delete ie[Ni]),Lt}function Jo(ie){return typeof ie.constructor=="function"&&!$a(ie)?vt(Ii(ie)):{}}function Ls(ie,ye){var Ae=typeof ie;return ye=ye==null?u:ye,!!ye&&(Ae=="number"||Ae!="symbol"&&Et.test(ie))&&ie>-1&&ie%1==0&&ie<ye}function Zo(ie,ye,Ae){if(!wr(Ae))return!1;var ot=typeof ye;return(ot=="number"?Ba(Ae)&&Ls(ye,Ae.length):ot=="string"&&ye in Ae)?Ga(Ae[ye],ie):!1}function el(ie){var ye=typeof ie;return ye=="string"||ye=="number"||ye=="symbol"||ye=="boolean"?ie!=="__proto__":ie===null}function tl(ie){return!!Hr&&Hr in ie}function $a(ie){var ye=ie&&ie.constructor,Ae=typeof ye=="function"&&ye.prototype||or;return ie===Ae}function il(ie){var ye=[];if(ie!=null)for(var Ae in Object(ie))ye.push(Ae);return ye}function rl(ie){return nn.call(ie)}function au(ie,ye,Ae){return ye=ki(ye===void 0?ie.length-1:ye,0),function(){for(var ot=arguments,Lt=-1,si=ki(ot.length-ye,0),fi=Array(si);++Lt<si;)fi[Lt]=ot[ye+Lt];Lt=-1;for(var Ut=Array(ye+1);++Lt<ye;)Ut[Lt]=ot[Lt];return Ut[ye]=Ae(fi),St(ie,this,Ut)}}function va(ie,ye){if(!(ye==="constructor"&&typeof ie[ye]=="function")&&ye!="__proto__")return ie[ye]}var Us=su(Jd);function su(ie){var ye=0,Ae=0;return function(){var ot=rt(),Lt=m-(ot-Ae);if(Ae=ot,Lt>0){if(++ye>=_)return arguments[0]}else ye=0;return ie.apply(void 0,arguments)}}function ou(ie){if(ie!=null){try{return kr.call(ie)}catch(ye){}try{return ie+""}catch(ye){}}return""}function Ga(ie,ye){return ie===ye||ie!==ie&&ye!==ye}var ga=Pt(function(){return arguments}())?Pt:function(ie){return Zn(ie)&&Ci.call(ie,"callee")&&!Ji.call(ie,"callee")},On=Array.isArray;function Ba(ie){return ie!=null&&Vs(ie.length)&&!sl(ie)}function nl(ie){return Zn(ie)&&Ba(ie)}var al=Tt||mu;function sl(ie){if(!wr(ie))return!1;var ye=xt(ie);return ye==E||ye==R||ye==v||ye==X}function Vs(ie){return typeof ie=="number"&&ie>-1&&ie%1==0&&ie<=u}function wr(ie){var ye=typeof ie;return ie!=null&&(ye=="object"||ye=="function")}function Zn(ie){return ie!=null&&typeof ie=="object"}function lu(ie){if(!Zn(ie)||xt(ie)!=z)return!1;var ye=Ii(ie);if(ye===null)return!0;var Ae=Ci.call(ye,"constructor")&&ye.constructor;return typeof Ae=="function"&&Ae instanceof Ae&&kr.call(Ae)==Bt}var qs=pt?Yn(pt):ri;function du(ie){return tu(ie,uu(ie))}function uu(ie){return Ba(ie)?de(ie,!0):Yd(ie)}var pu=iu(function(ie,ye,Ae){fa(ie,ye,Ae)});function Ha(ie){return function(){return ie}}function cu(ie){return ie}function mu(){return!1}k.exports=pu}),Ss=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.BatchSpanProcessorBase=void 0;var k=Ct(),p=ar(),g=class{constructor(_,m){this._exporter=_,this._finishedSpans=[],this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve();let u=p.getEnv();this._maxExportBatchSize=typeof(m==null?void 0:m.maxExportBatchSize)=="number"?m.maxExportBatchSize:u.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof(m==null?void 0:m.maxQueueSize)=="number"?m.maxQueueSize:u.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof(m==null?void 0:m.scheduledDelayMillis)=="number"?m.scheduledDelayMillis:u.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof(m==null?void 0:m.exportTimeoutMillis)=="number"?m.exportTimeoutMillis:u.OTEL_BSP_EXPORT_TIMEOUT}forceFlush(){return this._isShutdown?this._shuttingDownPromise:this._flushAll()}onStart(_){}onEnd(_){this._isShutdown||this._addToBuffer(_)}shutdown(){return this._isShutdown?this._shuttingDownPromise:(this._isShutdown=!0,this._shuttingDownPromise=new Promise((_,m)=>{Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown()).then(_).catch(u=>{m(u)})}),this._shuttingDownPromise)}_addToBuffer(_){this._finishedSpans.length>=this._maxQueueSize||(this._finishedSpans.push(_),this._maybeStartTimer())}_flushAll(){return new Promise((_,m)=>{let u=[],l=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let c=0,v=l;c<v;c++)u.push(this._flushOneBatch());Promise.all(u).then(()=>{_()}).catch(m)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((_,m)=>{let u=setTimeout(()=>{m(new Error("Timeout"))},this._exportTimeoutMillis);k.context.with(p.suppressTracing(k.context.active()),()=>{this._exporter.export(this._finishedSpans.splice(0,this._maxExportBatchSize),l=>{var c;clearTimeout(u),l.code===p.ExportResultCode.SUCCESS?_():m((c=l.error)!==null&&c!==void 0?c:new Error("BatchSpanProcessor: span export failed"))})})})}_maybeStartTimer(){this._timer===void 0&&(this._timer=setTimeout(()=>{this._flushOneBatch().then(()=>{this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(_=>{p.globalErrorHandler(_)})},this._scheduledDelayMillis),p.unrefTimer(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};a.BatchSpanProcessorBase=g}),Xl=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.BatchSpanProcessor=void 0;var k=Ss(),p=class extends k.BatchSpanProcessorBase{onShutdown(){}};a.BatchSpanProcessor=p}),Jl=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(Xl(),a)}),To=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(Jl(),a)}),Zl=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.BasicTracerProvider=a.ForceFlushState=void 0;var k=Ct(),p=ar(),g=Ia(),_=Co(),m=wo(),u=Yl(),l=Es(),c=So(),v=To(),y;(function(b){b[b.resolved=0]="resolved",b[b.timeout=1]="timeout",b[b.error=2]="error",b[b.unresolved=3]="unresolved"})(y=a.ForceFlushState||(a.ForceFlushState={}));var f=class{constructor(b={}){var E;this._registeredSpanProcessors=[],this._tracers=new Map;let R=c({},m.DEFAULT_CONFIG,b);this.resource=(E=R.resource)!==null&&E!==void 0?E:g.Resource.empty(),this.resource=g.Resource.default().merge(this.resource),this._config=Object.assign({},R,{resource:this.resource});let C=this._buildExporterFromEnv();if(C!==void 0){let A=new v.BatchSpanProcessor(C);this.activeSpanProcessor=A}else this.activeSpanProcessor=new l.NoopSpanProcessor}getTracer(b,E){let R=`${b}@${E||""}`;return this._tracers.has(R)||this._tracers.set(R,new _.Tracer({name:b,version:E},this._config,this)),this._tracers.get(R)}addSpanProcessor(b){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(E=>k.diag.error("Error while trying to shutdown current span processor",E)),this._registeredSpanProcessors.push(b),this.activeSpanProcessor=new u.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(b={}){k.trace.setGlobalTracerProvider(this),b.propagator===void 0&&(b.propagator=this._buildPropagatorFromEnv()),b.contextManager&&k.context.setGlobalContextManager(b.contextManager),b.propagator&&k.propagation.setGlobalPropagator(b.propagator)}forceFlush(){let b=this._config.forceFlushTimeoutMillis,E=this._registeredSpanProcessors.map(R=>new Promise(C=>{let A,O=setTimeout(()=>{C(new Error(`Span processor did not completed within timeout period of ${b} ms`)),A=y.timeout},b);R.forceFlush().then(()=>{clearTimeout(O),A!==y.timeout&&(A=y.resolved,C(A))}).catch(z=>{clearTimeout(O),A=y.error,C(z)})}));return new Promise((R,C)=>{Promise.all(E).then(A=>{let O=A.filter(z=>z!==y.resolved);O.length>0?C(O):R()}).catch(A=>C([A]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(b){var E;return(E=f._registeredPropagators.get(b))===null||E===void 0?void 0:E()}_getSpanExporter(b){var E;return(E=f._registeredExporters.get(b))===null||E===void 0?void 0:E()}_buildPropagatorFromEnv(){let b=Array.from(new Set(p.getEnv().OTEL_PROPAGATORS)),E=b.map(R=>{let C=this._getPropagator(R);return C||k.diag.warn(`Propagator "${R}" requested through environment variable is unavailable.`),C}).reduce((R,C)=>(C&&R.push(C),R),[]);if(E.length!==0)return b.length===1?E[0]:new p.CompositePropagator({propagators:E})}_buildExporterFromEnv(){let b=p.getEnv().OTEL_TRACES_EXPORTER;if(b==="none")return;let E=this._getSpanExporter(b);return E||k.diag.error(`Exporter "${b}" requested through environment variable is unavailable.`),E}};a.BasicTracerProvider=f,f._registeredPropagators=new Map([["tracecontext",()=>new p.HttpTraceContextPropagator],["baggage",()=>new p.HttpBaggagePropagator]]),f._registeredExporters=new Map}),ko=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ConsoleSpanExporter=void 0;var k=ar(),p=class{export(g,_){return this._sendSpans(g,_)}shutdown(){return this._sendSpans([]),Promise.resolve()}_exportInfo(g){return{traceId:g.spanContext().traceId,parentId:g.parentSpanId,name:g.name,id:g.spanContext().spanId,kind:g.kind,timestamp:k.hrTimeToMicroseconds(g.startTime),duration:k.hrTimeToMicroseconds(g.duration),attributes:g.attributes,status:g.status,events:g.events}}_sendSpans(g,_){for(let m of g)console.log(this._exportInfo(m));if(_)return _({code:k.ExportResultCode.SUCCESS})}};a.ConsoleSpanExporter=p}),Ro=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.InMemorySpanExporter=void 0;var k=ar(),p=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(g,_){if(this._stopped)return _({code:k.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...g),setTimeout(()=>_({code:k.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};a.InMemorySpanExporter=p}),jn=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),la=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.SimpleSpanProcessor=void 0;var k=Ct(),p=ar(),g=class{constructor(_){this._exporter=_,this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve()}forceFlush(){return Promise.resolve()}onStart(_){}onEnd(_){this._isShutdown||k.context.with(p.suppressTracing(k.context.active()),()=>{this._exporter.export([_],m=>{var u;m.code!==p.ExportResultCode.SUCCESS&&p.globalErrorHandler((u=m.error)!==null&&u!==void 0?u:new Error(`SimpleSpanProcessor: span export failed (status ${m})`))})})}shutdown(){return this._isShutdown?this._shuttingDownPromise:(this._isShutdown=!0,this._shuttingDownPromise=new Promise((_,m)=>{Promise.resolve().then(()=>this._exporter.shutdown()).then(_).catch(u=>{m(u)})}),this._shuttingDownPromise)}};a.SimpleSpanProcessor=g}),zn=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Ts=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),ed=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),td=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Co=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(_o(),a),p(Zl(),a),p(To(),a),p(ko(),a),p(Ro(),a),p(jn(),a),p(la(),a),p(zn(),a),p(Es(),a),p(Aa(),a),p(Ts(),a),p(ed(),a),p(td(),a)}),No=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.azureCoreTracing=a.AzureMonitorSymbol=void 0;var k=fe();a.AzureMonitorSymbol="Azure_Monitor_Tracer";var p=!1,g=function(m){if(p)return m;try{var u=Co(),l=Ct(),c=new u.BasicTracerProvider,v=c.getTracer("applicationinsights tracer"),y=m.setTracer;m.setTracer=function(f){var b=f.startSpan;f.startSpan=function(E,R,C){var A=b.call(this,E,R,C),O=A.end;return A.end=function(){var z=O.apply(this,arguments);return k.channel.publish("azure-coretracing",A),z},A},f[a.AzureMonitorSymbol]=!0,y.call(this,f)},l.trace.getSpan(l.context.active()),m.setTracer(v),p=!0}catch(f){}return m};a.azureCoreTracing={versionSpecifier:">= 1.0.0 < 2.0.0",patch:g};function _(){k.channel.registerMonkeyPatch("@azure/core-tracing",a.azureCoreTracing)}a.enable=_}),id=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.bunyan=void 0;var k=fe(),p=function(_){var m=_.prototype._emit;return _.prototype._emit=function(u,l){var c=m.apply(this,arguments);if(!l){var v=c;v||(v=m.call(this,u,!0)),k.channel.publish("bunyan",{level:u.level,result:v})}return c},_};a.bunyan={versionSpecifier:">= 1.0.0 < 2.0.0",patch:p};function g(){k.channel.registerMonkeyPatch("bunyan",a.bunyan)}a.enable=g}),Po=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.console=void 0;var k=fe(),p=U(2781),g=function(m){var u=new p.Writable,l=new p.Writable;u.write=function(R){if(!R)return!0;var C=R.toString();return k.channel.publish("console",{message:C}),!0},l.write=function(R){if(!R)return!0;var C=R.toString();return k.channel.publish("console",{message:C,stderr:!0}),!0};for(var c=new m.Console(u,l),v=["log","info","warn","error","dir","time","timeEnd","trace","assert"],y=function(R){var C=m[R];C&&(m[R]=function(){if(c[R])try{c[R].apply(c,arguments)}catch(A){}return C.apply(m,arguments)})},f=0,b=v;f<b.length;f++){var E=b[f];y(E)}return m};a.console={versionSpecifier:">= 4.0.0",patch:g};function _(){k.channel.registerMonkeyPatch("console",a.console),U(6206)}a.enable=_}),sp=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.mongoCore=void 0;var k=fe(),p=function(_){var m=_.Server.prototype.connect;return _.Server.prototype.connect=function(){var u=m.apply(this,arguments),l=this.s.pool.write;this.s.pool.write=function(){var v=typeof arguments[1]=="function"?1:2;return typeof arguments[v]=="function"&&(arguments[v]=k.channel.bindToContext(arguments[v])),l.apply(this,arguments)};var c=this.s.pool.logout;return this.s.pool.logout=function(){return typeof arguments[1]=="function"&&(arguments[1]=k.channel.bindToContext(arguments[1])),c.apply(this,arguments)},u},_};a.mongoCore={versionSpecifier:">= 2.0.0 < 4.0.0",patch:p};function g(){k.channel.registerMonkeyPatch("mongodb-core",a.mongoCore)}a.enable=g}),rd=I(a=>{"use strict";var k=a&&a.__assign||function(){return k=Object.assign||function(c){for(var v,y=1,f=arguments.length;y<f;y++){v=arguments[y];for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(c[b]=v[b])}return c},k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.mongo330=a.mongo3=a.mongo2=void 0;var p=fe(),g=function(c){var v=c.instrument({operationIdGenerator:{next:function(){return p.channel.bindToContext(function(f){return f()})}}}),y={};return v.on("started",function(f){y[f.requestId]||(y[f.requestId]=k(k({},f),{time:new Date}))}),v.on("succeeded",function(f){var b=y[f.requestId];b&&delete y[f.requestId],typeof f.operationId=="function"?f.operationId(function(){return p.channel.publish("mongodb",{startedData:b,event:f,succeeded:!0})}):p.channel.publish("mongodb",{startedData:b,event:f,succeeded:!0})}),v.on("failed",function(f){var b=y[f.requestId];b&&delete y[f.requestId],typeof f.operationId=="function"?f.operationId(function(){return p.channel.publish("mongodb",{startedData:b,event:f,succeeded:!1})}):p.channel.publish("mongodb",{startedData:b,event:f,succeeded:!1})}),c},_=function(c){var v=c.instrument(),y={},f={};return v.on("started",function(b){y[b.requestId]||(f[b.requestId]=p.channel.bindToContext(function(E){return E()}),y[b.requestId]=k(k({},b),{time:new Date}))}),v.on("succeeded",function(b){var E=y[b.requestId];E&&delete y[b.requestId],typeof b=="object"&&typeof f[b.requestId]=="function"&&(f[b.requestId](function(){return p.channel.publish("mongodb",{startedData:E,event:b,succeeded:!0})}),delete f[b.requestId])}),v.on("failed",function(b){var E=y[b.requestId];E&&delete y[b.requestId],typeof b=="object"&&typeof f[b.requestId]=="function"&&(f[b.requestId](function(){return p.channel.publish("mongodb",{startedData:E,event:b,succeeded:!1})}),delete f[b.requestId])}),c},m=function(c){var v=c.Server.prototype.connect;return c.Server.prototype.connect=function(){var y=v.apply(this,arguments),f=this.s.coreTopology.s.pool.write;this.s.coreTopology.s.pool.write=function(){var E=typeof arguments[1]=="function"?1:2;return typeof arguments[E]=="function"&&(arguments[E]=p.channel.bindToContext(arguments[E])),f.apply(this,arguments)};var b=this.s.coreTopology.s.pool.logout;return this.s.coreTopology.s.pool.logout=function(){return typeof arguments[1]=="function"&&(arguments[1]=p.channel.bindToContext(arguments[1])),b.apply(this,arguments)},y},c},u=function(c){m(c);var v=c.instrument(),y={},f={};return v.on("started",function(b){y[b.requestId]||(f[b.requestId]=p.channel.bindToContext(function(E){return E()}),y[b.requestId]=b)}),v.on("succeeded",function(b){var E=y[b.requestId];E&&delete y[b.requestId],typeof b=="object"&&typeof f[b.requestId]=="function"&&(f[b.requestId](function(){return p.channel.publish("mongodb",{startedData:E,event:b,succeeded:!0})}),delete f[b.requestId])}),v.on("failed",function(b){var E=y[b.requestId];E&&delete y[b.requestId],typeof b=="object"&&typeof f[b.requestId]=="function"&&(f[b.requestId](function(){return p.channel.publish("mongodb",{startedData:E,event:b,succeeded:!1})}),delete f[b.requestId])}),c};a.mongo2={versionSpecifier:">= 2.0.0 <= 3.0.5",patch:g},a.mongo3={versionSpecifier:"> 3.0.5 < 3.3.0",patch:_},a.mongo330={versionSpecifier:">= 3.3.0 < 4.0.0",patch:u};function l(){p.channel.registerMonkeyPatch("mongodb",a.mongo2),p.channel.registerMonkeyPatch("mongodb",a.mongo3),p.channel.registerMonkeyPatch("mongodb",a.mongo330)}a.enable=l}),op=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.mysql=void 0;var k=fe(),p=U(1017),g=function(m,u){var l=function(E,R){return function(C,A){var O=E[C];O&&(E[C]=function(){for(var z=arguments.length-1,X=arguments.length-1;X>=0;--X)if(typeof arguments[X]=="function"){z=X;break}else if(typeof arguments[X]!="undefined")break;var Y=arguments[z],me={result:null,startTime:null,startDate:null};typeof Y=="function"&&(A?(me.startTime=process.hrtime(),me.startDate=new Date,arguments[z]=k.channel.bindToContext(A(me,Y))):arguments[z]=k.channel.bindToContext(Y));var Ee=O.apply(this,arguments);return me.result=Ee,Ee})}},c=function(E,R){return l(E.prototype,R+".prototype")},v=["connect","changeUser","ping","statistics","end"],y=U(3255)(p.dirname(u)+"/lib/Connection");v.forEach(function(E){return c(y,"Connection")(E)}),l(y,"Connection")("createQuery",function(E,R){return function(C){var A=process.hrtime(E.startTime),O=A[0]*1e3+A[1]/1e6|0;k.channel.publish("mysql",{query:E.result,callbackArgs:arguments,err:C,duration:O,time:E.startDate}),R.apply(this,arguments)}});var f=["_enqueueCallback"],b=U(9118)(p.dirname(u)+"/lib/Pool");return f.forEach(function(E){return c(b,"Pool")(E)}),m};a.mysql={versionSpecifier:">= 2.0.0 < 3.0.0",patch:g};function _(){k.channel.registerMonkeyPatch("mysql",a.mysql)}a.enable=_}),nd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.postgresPool1=void 0;var k=fe();function p(_){var m=_.prototype.connect;return _.prototype.connect=function(u){return u&&(arguments[0]=k.channel.bindToContext(u)),m.apply(this,arguments)},_}a.postgresPool1={versionSpecifier:">= 1.0.0 < 3.0.0",patch:p};function g(){k.channel.registerMonkeyPatch("pg-pool",a.postgresPool1)}a.enable=g}),ad=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.postgres7=a.postgres6=void 0;var k=fe(),p=U(2361);function g(u,l){var c=u.Client.prototype.query,v="__diagnosticOriginalFunc";return u.Client.prototype.query=function(y,f,b){var E={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},R=process.hrtime(),C;function A(O){O&&O[v]&&(O=O[v]);var z=k.channel.bindToContext(function(X,Y){var me=process.hrtime(R);if(E.result=Y&&{rowCount:Y.rowCount,command:Y.command},E.error=X,E.duration=Math.ceil(me[0]*1e3+me[1]/1e6),k.channel.publish("postgres",E),X){if(O)return O.apply(this,arguments);C&&C instanceof p.EventEmitter&&C.emit("error",X)}else O&&O.apply(this,arguments)});try{return Object.defineProperty(z,v,{value:O}),z}catch(X){return O}}try{typeof y=="string"?f instanceof Array?(E.query.preparable={text:y,args:f},b=A(b)):(E.query.text=y,b?b=A(b):f=A(f)):(typeof y.name=="string"?E.query.plan=y.name:y.values instanceof Array?E.query.preparable={text:y.text,args:y.values}:E.query.text=y.text,b?b=A(b):f?f=A(f):y.callback=A(y.callback))}catch(O){return c.apply(this,arguments)}return arguments[0]=y,arguments[1]=f,arguments[2]=b,arguments.length=arguments.length>3?arguments.length:3,C=c.apply(this,arguments),C},u}function _(u,l){var c=u.Client.prototype.query,v="__diagnosticOriginalFunc";return u.Client.prototype.query=function(y,f,b){var E=this,R=!!b,C={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},A=process.hrtime(),O;function z(X){X&&X[v]&&(X=X[v]);var Y=k.channel.bindToContext(function(me,Ee){var Ie=process.hrtime(A);if(C.result=Ee&&{rowCount:Ee.rowCount,command:Ee.command},C.error=me,C.duration=Math.ceil(Ie[0]*1e3+Ie[1]/1e6),k.channel.publish("postgres",C),me){if(X)return X.apply(this,arguments);O&&O instanceof p.EventEmitter&&O.emit("error",me)}else X&&X.apply(this,arguments)});try{return Object.defineProperty(Y,v,{value:X}),Y}catch(me){return X}}try{typeof y=="string"?f instanceof Array?(C.query.preparable={text:y,args:f},R=typeof b=="function",b=R?z(b):b):(C.query.text=y,b?(R=typeof b=="function",b=R?z(b):b):(R=typeof f=="function",f=R?z(f):f)):(typeof y.name=="string"?C.query.plan=y.name:y.values instanceof Array?C.query.preparable={text:y.text,args:y.values}:C.query.text=y.text,b?(R=typeof b=="function",b=z(b)):f?(R=typeof f=="function",f=R?z(f):f):(R=typeof y.callback=="function",y.callback=R?z(y.callback):y.callback))}catch(X){return c.apply(this,arguments)}return arguments[0]=y,arguments[1]=f,arguments[2]=b,arguments.length=arguments.length>3?arguments.length:3,O=c.apply(this,arguments),R?O:O.then(function(X){return z()(void 0,X),new E._Promise(function(Y,me){Y(X)})}).catch(function(X){return z()(X,void 0),new E._Promise(function(Y,me){me(X)})})},u}a.postgres6={versionSpecifier:"6.*",patch:g},a.postgres7={versionSpecifier:">=7.* <=8.*",patch:_};function m(){k.channel.registerMonkeyPatch("pg",a.postgres6),k.channel.registerMonkeyPatch("pg",a.postgres7)}a.enable=m}),sd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.redis=void 0;var k=fe(),p=function(_){var m=_.RedisClient.prototype.internal_send_command;return _.RedisClient.prototype.internal_send_command=function(u){if(u){var l=u.callback;if(!l||!l.pubsubBound){var c=this.address,v=process.hrtime(),y=new Date;u.callback=k.channel.bindToContext(function(f,b){var E=process.hrtime(v),R=E[0]*1e3+E[1]/1e6|0;k.channel.publish("redis",{duration:R,address:c,commandObj:u,err:f,result:b,time:y}),typeof l=="function"&&l.apply(this,arguments)}),u.callback.pubsubBound=!0}}return m.call(this,u)},_};a.redis={versionSpecifier:">= 2.0.0 < 4.0.0",patch:p};function g(){k.channel.registerMonkeyPatch("redis",a.redis)}a.enable=g}),od=I(a=>{"use strict";var k=a&&a.__assign||function(){return k=Object.assign||function(m){for(var u,l=1,c=arguments.length;l<c;l++){u=arguments[l];for(var v in u)Object.prototype.hasOwnProperty.call(u,v)&&(m[v]=u[v])}return m},k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.tedious=void 0;var p=fe(),g=function(m){var u=m.Connection.prototype.makeRequest;return m.Connection.prototype.makeRequest=function(){function l(v){var y=process.hrtime(),f={query:{},database:{host:null,port:null},result:null,error:null,duration:0};return p.channel.bindToContext(function(b,E,R){var C=process.hrtime(y);f=k(k({},f),{database:{host:this.connection.config.server,port:this.connection.config.options.port},result:!b&&{rowCount:E,rows:R},query:{text:this.parametersByName.statement.value},error:b,duration:Math.ceil(C[0]*1e3+C[1]/1e6)}),p.channel.publish("tedious",f),v.call(this,b,E,R)})}var c=arguments[0];arguments[0].callback=l(c.callback),u.apply(this,arguments)},m};a.tedious={versionSpecifier:">= 6.0.0 < 9.0.0",patch:g};function _(){p.channel.registerMonkeyPatch("tedious",a.tedious)}a.enable=_}),ld=I(a=>{"use strict";var k=a&&a.__extends||function(){var l=function(c,v){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(y[b]=f[b])},l(c,v)};return function(c,v){l(c,v);function y(){this.constructor=c}c.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),p=a&&a.__rest||function(l,c){var v={};for(var y in l)Object.prototype.hasOwnProperty.call(l,y)&&c.indexOf(y)<0&&(v[y]=l[y]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,y=Object.getOwnPropertySymbols(l);f<y.length;f++)c.indexOf(y[f])<0&&Object.prototype.propertyIsEnumerable.call(l,y[f])&&(v[y[f]]=l[y[f]]);return v};Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.winston2=a.winston3=void 0;var g=fe(),_=function(l){var c=l.Logger.prototype.log,v,y=function(f,b,E){var R;return v===l.config.npm.levels?R="npm":v===l.config.syslog.levels?R="syslog":R="unknown",g.channel.publish("winston",{level:f,message:b,meta:E,levelKind:R}),b};return l.Logger.prototype.log=function(){return v=this.levels,!this.filters||this.filters.length===0?this.filters=[y]:this.filters[this.filters.length-1]!==y&&(this.filters=this.filters.filter(function(f){return f!==y}),this.filters.push(y)),c.apply(this,arguments)},l},m=function(l){var c=function(E,R){var C;return E.config.npm.levels[R]!=null?C="npm":E.config.syslog.levels[R]!=null?C="syslog":C="unknown",C},v=function(E){k(R,E);function R(C,A){var O=E.call(this,A)||this;return O.winston=C,O}return R.prototype.log=function(C,A){var O=C.message,z=C.level,X=C.meta,Y=p(C,["message","level","meta"]);z=typeof Symbol.for=="function"?C[Symbol.for("level")]:z,O=C instanceof Error?C:O;var me=c(this.winston,z);X=X||{};for(var Ee in Y)Y.hasOwnProperty(Ee)&&(X[Ee]=Y[Ee]);g.channel.publish("winston",{message:O,level:z,levelKind:me,meta:X}),A()},R}(l.Transport);function y(){var E=arguments[0].levels||l.config.npm.levels,R;for(var C in E)E.hasOwnProperty(C)&&(R=R===void 0||E[C]>E[R]?C:R);this.add(new v(l,{level:R}))}var f=l.createLogger;l.createLogger=function(){var E=arguments[0].levels||l.config.npm.levels,R;for(var C in E)E.hasOwnProperty(C)&&(R=R===void 0||E[C]>E[R]?C:R);var A=f.apply(this,arguments);A.add(new v(l,{level:R}));var O=A.configure;return A.configure=function(){O.apply(this,arguments),y.apply(this,arguments)},A};var b=l.configure;return l.configure=function(){b.apply(this,arguments),y.apply(this,arguments)},l.add(new v(l)),l};a.winston3={versionSpecifier:"3.x",patch:m},a.winston2={versionSpecifier:"2.x",patch:_};function u(){g.channel.registerMonkeyPatch("winston",a.winston2),g.channel.registerMonkeyPatch("winston",a.winston3)}a.enable=u}),dd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.tedious=a.pgPool=a.pg=a.winston=a.redis=a.mysql=a.mongodb=a.mongodbCore=a.console=a.bunyan=a.azuresdk=void 0;var k=No();a.azuresdk=k;var p=id();a.bunyan=p;var g=Po();a.console=g;var _=sp();a.mongodbCore=_;var m=rd();a.mongodb=m;var u=op();a.mysql=u;var l=nd();a.pgPool=l;var c=ad();a.pg=c;var v=sd();a.redis=v;var y=od();a.tedious=y;var f=ld();a.winston=f;function b(){p.enable(),g.enable(),_.enable(),m.enable(),u.enable(),c.enable(),l.enable(),v.enable(),f.enable(),k.enable(),y.enable()}a.enable=b}),yn=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.registerContextPreservation=a.IsInitialized=void 0;var k=J(),p=oe();a.IsInitialized=!process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL;var g="DiagnosticChannel";if(a.IsInitialized){_=dd(),m=process.env.APPLICATION_INSIGHTS_NO_PATCH_MODULES||"",u=m.split(","),l={bunyan:_.bunyan,console:_.console,mongodb:_.mongodb,mongodbCore:_.mongodbCore,mysql:_.mysql,redis:_.redis,pg:_.pg,pgPool:_.pgPool,winston:_.winston,azuresdk:_.azuresdk};for(c in l)u.indexOf(c)===-1&&(l[c].enable(),p.info(g,"Subscribed to "+c+" events"));u.length>0&&p.info(g,"Some modules will not be patched",u)}else p.info(g,"Not subscribing to dependency autocollection because APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL was set");var _,m,u,l,c;function v(y){if(a.IsInitialized){var f=fe();f.channel.addContextPreservation(y),f.channel.spanContextPropagator=k.AsyncScopeManager}}a.registerContextPreservation=v}),da=I((a,k)=>{"use strict";k.exports={requestContextHeader:"request-context",requestContextSourceKey:"appId",requestContextTargetKey:"appId",requestIdHeader:"request-id",parentIdHeader:"x-ms-request-id",rootIdHeader:"x-ms-request-root-id",correlationContextHeader:"correlation-context",traceparentHeader:"traceparent",traceStateHeader:"tracestate"}}),yr=I((a,k)=>{"use strict";var p=a&&a.__assign||function(){return p=Object.assign||function(y){for(var f,b=1,E=arguments.length;b<E;b++){f=arguments[b];for(var R in f)Object.prototype.hasOwnProperty.call(f,R)&&(y[R]=f[R])}return y},p.apply(this,arguments)},g=U(3685),_=U(5687),m=U(7310),u=U(2057),l=oe(),c=da(),v=function(){function y(){}return y.getCookie=function(f,b){var E="";if(f&&f.length&&typeof b=="string")for(var R=f+"=",C=b.split(";"),A=0;A<C.length;A++){var b=C[A];if(b=y.trim(b),b&&b.indexOf(R)===0){E=b.substring(R.length,C[A].length);break}}return E},y.trim=function(f){return typeof f=="string"?f.replace(/^\s+|\s+$/g,""):""},y.int32ArrayToBase64=function(f){var b=function(O,z){return String.fromCharCode(O>>z&255)},E=function(O){return b(O,24)+b(O,16)+b(O,8)+b(O,0)},R=f.map(E).join(""),C=Buffer.from?Buffer.from(R,"binary"):new Buffer(R,"binary"),A=C.toString("base64");return A.substr(0,A.indexOf("="))},y.random32=function(){return 4294967296*Math.random()|0},y.randomu32=function(){return y.random32()+2147483648},y.w3cTraceId=function(){for(var f=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],b="",E,R=0;R<4;R++)E=y.random32(),b+=f[E&15]+f[E>>4&15]+f[E>>8&15]+f[E>>12&15]+f[E>>16&15]+f[E>>20&15]+f[E>>24&15]+f[E>>28&15];var C=f[8+Math.random()*4|0];return b.substr(0,8)+b.substr(9,4)+"4"+b.substr(13,3)+C+b.substr(16,3)+b.substr(19,12)},y.w3cSpanId=function(){return y.w3cTraceId().substring(16)},y.isValidW3CId=function(f){return f.length===32&&f!=="00000000000000000000000000000000"},y.isArray=function(f){return Object.prototype.toString.call(f)==="[object Array]"},y.isError=function(f){return f instanceof Error},y.isPrimitive=function(f){var b=typeof f;return b==="string"||b==="number"||b==="boolean"},y.isDate=function(f){return Object.prototype.toString.call(f)==="[object Date]"},y.msToTimeSpan=function(f){(isNaN(f)||f<0)&&(f=0);var b=(f/1e3%60).toFixed(7).replace(/0{0,4}$/,""),E=""+Math.floor(f/(1e3*60))%60,R=""+Math.floor(f/(1e3*60*60))%24,C=Math.floor(f/(1e3*60*60*24));b=b.indexOf(".")<2?"0"+b:b,E=E.length<2?"0"+E:E,R=R.length<2?"0"+R:R;var A=C>0?C+".":"";return A+R+":"+E+":"+b},y.extractError=function(f){var b=f;return{message:f.message,code:b.code||b.id||""}},y.extractObject=function(f){return f instanceof Error?y.extractError(f):typeof f.toJSON=="function"?f.toJSON():f},y.validateStringMap=function(f){if(typeof f!="object"){l.info("Invalid properties dropped from payload");return}var b={};for(var E in f){var R="",C=f[E],A=typeof C;if(y.isPrimitive(C))R=C.toString();else if(C===null||A==="undefined")R="";else if(A==="function"){l.info("key: "+E+" was function; will not serialize");continue}else{var O=y.isArray(C)?C:y.extractObject(C);try{y.isPrimitive(O)?R=O:R=JSON.stringify(O)}catch(z){R=C.constructor.name.toString()+" (Error: "+z.message+")",l.info("key: "+E+", could not be serialized")}}b[E]=R.substring(0,y.MAX_PROPERTY_LENGTH)}return b},y.canIncludeCorrelationHeader=function(f,b){var E=f&&f.config&&f.config.correlationHeaderExcludedDomains;if(!E||E.length==0||!b)return!0;for(var R=0;R<E.length;R++){var C=new RegExp(E[R].replace(/\./g,".").replace(/\*/g,".*"));if(C.test(m.parse(b).hostname))return!1}return!0},y.getCorrelationContextTarget=function(f,b){var E=f.headers&&f.headers[c.requestContextHeader];if(E)for(var R=E.split(","),C=0;C<R.length;++C){var A=R[C].split("=");if(A.length==2&&A[0]==b)return A[1]}},y.makeRequest=function(f,b,E,R){b&&b.indexOf("//")===0&&(b="https:"+b);var C=m.parse(b),A=p(p({},E),{host:C.hostname,port:C.port,path:C.pathname}),O=void 0;if(C.protocol==="https:"&&(O=f.proxyHttpsUrl||void 0),C.protocol==="http:"&&(O=f.proxyHttpUrl||void 0),O){O.indexOf("//")===0&&(O="http:"+O);var z=m.parse(O);z.protocol==="https:"?(l.info("Proxies that use HTTPS are not supported"),O=void 0):A=p(p({},A),{host:z.hostname,port:z.port||"80",path:b,headers:p(p({},A.headers),{Host:C.hostname})})}var X=C.protocol==="https:"&&!O;return X&&f.httpsAgent!==void 0?A.agent=f.httpsAgent:!X&&f.httpAgent!==void 0?A.agent=f.httpAgent:X&&(A.agent=y.tlsRestrictedAgent),X?_.request(A,R):g.request(A,R)},y.safeIncludeCorrelationHeader=function(f,b,E){var R;if(typeof E=="string")R=E;else if(E instanceof Array)R=E.join(",");else if(E&&typeof E.toString=="function")try{R=E.toString()}catch(C){l.warn("Outgoing request-context header could not be read. Correlation of requests may be lost.",C,E)}R?y.addCorrelationIdHeaderFromString(f,b,R):b.setHeader(c.requestContextHeader,c.requestContextSourceKey+"="+f.config.correlationId)},y.dumpObj=function(f){var b=Object.prototype.toString.call(f),E="";return b==="[object Error]"?E="{ stack: '"+f.stack+"', message: '"+f.message+"', name: '"+f.name+"'":E=JSON.stringify(f),b+E},y.addCorrelationIdHeaderFromString=function(f,b,E){var R=E.split(","),C=c.requestContextSourceKey+"=",A=R.some(function(O){return O.substring(0,C.length)===C});A||b.setHeader(c.requestContextHeader,E+","+c.requestContextSourceKey+"="+f.config.correlationId)},y.MAX_PROPERTY_LENGTH=8192,y.tlsRestrictedAgent=new _.Agent({keepAlive:!0,maxSockets:25,secureOptions:u.SSL_OP_NO_SSLv2|u.SSL_OP_NO_SSLv3|u.SSL_OP_NO_TLSv1|u.SSL_OP_NO_TLSv1_1}),y}();k.exports=v}),wn=I((a,k)=>{"use strict";var p=yr(),g=oe(),_=function(){function m(){}return m.queryCorrelationId=function(u,l){var c=u.profileQueryEndpoint+"/api/profiles/"+u.instrumentationKey+"/appId";if(m.completedLookups.hasOwnProperty(c)){l(m.completedLookups[c]);return}else if(m.pendingLookups[c]){m.pendingLookups[c].push(l);return}m.pendingLookups[c]=[l];var v=function(){if(m.pendingLookups[c]){var y={method:"GET",disableAppInsightsAutoCollection:!0};g.info(m.TAG,y);var f=p.makeRequest(u,c,y,function(b){if(b.statusCode===200){var E="";b.setEncoding("utf-8"),b.on("data",function(R){E+=R}),b.on("end",function(){g.info(m.TAG,E);var R=m.correlationIdPrefix+E;m.completedLookups[c]=R,m.pendingLookups[c]&&m.pendingLookups[c].forEach(function(C){return C(R)}),delete m.pendingLookups[c]})}else b.statusCode>=400&&b.statusCode<500?(m.completedLookups[c]=void 0,delete m.pendingLookups[c]):setTimeout(v,u.correlationIdRetryIntervalMs)});f&&(f.on("error",function(b){g.warn(m.TAG,b)}),f.end())}};setTimeout(v,0)},m.cancelCorrelationIdQuery=function(u,l){var c=u.profileQueryEndpoint+"/api/profiles/"+u.instrumentationKey+"/appId",v=m.pendingLookups[c];v&&(m.pendingLookups[c]=v.filter(function(y){return y!=l}),m.pendingLookups[c].length==0&&delete m.pendingLookups[c])},m.generateRequestId=function(u){if(u){u=u[0]=="|"?u:"|"+u,u[u.length-1]!=="."&&(u+=".");var l=(m.currentRootId++).toString(16);return m.appendSuffix(u,l,"_")}else return m.generateRootId()},m.getRootId=function(u){var l=u.indexOf(".");l<0&&(l=u.length);var c=u[0]==="|"?1:0;return u.substring(c,l)},m.generateRootId=function(){return"|"+p.w3cTraceId()+"."},m.appendSuffix=function(u,l,c){if(u.length+l.length<m.requestIdMaxLength)return u+l+c;var v=m.requestIdMaxLength-9;if(u.length>v)for(;v>1;--v){var y=u[v-1];if(y==="."||y==="_")break}if(v<=1)return m.generateRootId();for(l=p.randomu32().toString(16);l.length<8;)l="0"+l;return u.substring(0,v)+l+"#"},m.TAG="CorrelationIdManager",m.correlationIdPrefix="cid-v1:",m.w3cEnabled=!0,m.pendingLookups={},m.completedLookups={},m.requestIdMaxLength=1024,m.currentRootId=p.randomu32(),m}();k.exports=_}),Qn=I((a,k)=>{"use strict";var p=yr(),g=wn(),_=function(){function m(u,l){if(this.traceFlag=m.DEFAULT_TRACE_FLAG,this.version=m.DEFAULT_VERSION,u&&typeof u=="string")if(u.split(",").length>1)this.traceId=p.w3cTraceId(),this.spanId=p.w3cTraceId().substr(0,16);else{var c=u.trim().split("-"),v=c.length;v>=4?(this.version=c[0],this.traceId=c[1],this.spanId=c[2],this.traceFlag=c[3]):(this.traceId=p.w3cTraceId(),this.spanId=p.w3cTraceId().substr(0,16)),this.version.match(/^[0-9a-f]{2}$/g)||(this.version=m.DEFAULT_VERSION,this.traceId=p.w3cTraceId()),this.version==="00"&&v!==4&&(this.traceId=p.w3cTraceId(),this.spanId=p.w3cTraceId().substr(0,16)),this.version==="ff"&&(this.version=m.DEFAULT_VERSION,this.traceId=p.w3cTraceId(),this.spanId=p.w3cTraceId().substr(0,16)),this.version.match(/^0[0-9a-f]$/g)||(this.version=m.DEFAULT_VERSION),this.traceFlag.match(/^[0-9a-f]{2}$/g)||(this.traceFlag=m.DEFAULT_TRACE_FLAG,this.traceId=p.w3cTraceId()),m.isValidTraceId(this.traceId)||(this.traceId=p.w3cTraceId()),m.isValidSpanId(this.spanId)||(this.spanId=p.w3cTraceId().substr(0,16),this.traceId=p.w3cTraceId()),this.parentId=this.getBackCompatRequestId()}else if(l){this.parentId=l.slice();var y=g.getRootId(l);m.isValidTraceId(y)||(this.legacyRootId=y,y=p.w3cTraceId()),l.indexOf("|")!==-1&&(l=l.substring(1+l.substring(0,l.length-1).lastIndexOf("."),l.length-1)),this.traceId=y,this.spanId=l}else this.traceId=p.w3cTraceId(),this.spanId=p.w3cTraceId().substr(0,16)}return m.isValidTraceId=function(u){return u.match(/^[0-9a-f]{32}$/)&&u!=="00000000000000000000000000000000"},m.isValidSpanId=function(u){return u.match(/^[0-9a-f]{16}$/)&&u!=="0000000000000000"},m.formatOpenTelemetryTraceFlags=function(u){var l="0"+u.toString(16);return l.substring(l.length-2)},m.prototype.getBackCompatRequestId=function(){return"|"+this.traceId+"."+this.spanId+"."},m.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},m.prototype.updateSpanId=function(){this.spanId=p.w3cTraceId().substr(0,16)},m.DEFAULT_TRACE_FLAG="01",m.DEFAULT_VERSION="00",m}();k.exports=_}),ua=I((a,k)=>{"use strict";var p=function(){function g(_){this.fieldmap=[],!!_&&(this.fieldmap=this.parseHeader(_))}return g.prototype.toString=function(){var _=this.fieldmap;return!_||_.length==0?null:_.join(", ")},g.validateKeyChars=function(_){var m=_.split("@");if(m.length==2){var u=m[0].trim(),l=m[1].trim(),c=Boolean(u.match(/^[\ ]?[a-z0-9\*\-\_/]{1,241}$/)),v=Boolean(l.match(/^[\ ]?[a-z0-9\*\-\_/]{1,14}$/));return c&&v}else if(m.length==1)return Boolean(_.match(/^[\ ]?[a-z0-9\*\-\_/]{1,256}$/));return!1},g.prototype.parseHeader=function(_){var m=[],u={},l=_.split(",");if(l.length>32)return null;for(var c=0,v=l;c<v.length;c++){var y=v[c],f=y.trim();if(f.length!==0){var b=f.split("=");if(b.length!==2||!g.validateKeyChars(b[0])||u[b[0]])return null;u[b[0]]=!0,m.push(f)}}return m},g.strict=!0,g}();k.exports=p}),Jr=I((a,k)=>{"use strict";var p=function(){function g(){}return g}();k.exports=p}),ud=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var m=function(u,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(c[y]=v[y])},m(u,l)};return function(u,l){m(u,l);function c(){this.constructor=u}u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),g=Jr(),_=function(m){p(u,m);function u(){var l=m.call(this)||this;return l.ver=2,l.properties={},l.measurements={},l}return u}(g);k.exports=_}),Do=I((a,k)=>{"use strict";var p=function(){function g(){}return g}();k.exports=p}),pd=I((a,k)=>{"use strict";var p=function(){function g(){this.applicationVersion="ai.application.ver",this.deviceId="ai.device.id",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceOEMName="ai.device.oemName",this.deviceOSVersion="ai.device.osVersion",this.deviceType="ai.device.type",this.locationIp="ai.location.ip",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.userAccountId="ai.user.accountId",this.userId="ai.user.id",this.userAuthUserId="ai.user.authUserId",this.cloudRole="ai.cloud.role",this.cloudRoleInstance="ai.cloud.roleInstance",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion",this.internalNodeName="ai.internal.nodeName"}return g}();k.exports=p}),Ao=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var m=function(u,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(c[y]=v[y])},m(u,l)};return function(u,l){m(u,l);function c(){this.constructor=u}u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),g=Do(),_=function(m){p(u,m);function u(){return m.call(this)||this}return u}(g);k.exports=_}),Io=I((a,k)=>{"use strict";var p;(function(g){g[g.Measurement=0]="Measurement",g[g.Aggregation=1]="Aggregation"})(p||(p={})),k.exports=p}),ks=I((a,k)=>{"use strict";var p=Io(),g=function(){function _(){this.kind=p.Measurement}return _}();k.exports=g}),lp=I((a,k)=>{"use strict";var p=function(){function g(){this.ver=1,this.sampleRate=100,this.tags={}}return g}();k.exports=p}),Oo=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var m=function(u,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(c[y]=v[y])},m(u,l)};return function(u,l){m(u,l);function c(){this.constructor=u}u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),g=Jr(),_=function(m){p(u,m);function u(){var l=m.call(this)||this;return l.ver=2,l.properties={},l.measurements={},l}return u}(g);k.exports=_}),cd=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var m=function(u,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(c[y]=v[y])},m(u,l)};return function(u,l){m(u,l);function c(){this.constructor=u}u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),g=Jr(),_=function(m){p(u,m);function u(){var l=m.call(this)||this;return l.ver=2,l.exceptions=[],l.properties={},l.measurements={},l}return u}(g);k.exports=_}),md=I((a,k)=>{"use strict";var p=function(){function g(){this.hasFullStack=!0,this.parsedStack=[]}return g}();k.exports=p}),hd=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var m=function(u,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(c[y]=v[y])},m(u,l)};return function(u,l){m(u,l);function c(){this.constructor=u}u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),g=Jr(),_=function(m){p(u,m);function u(){var l=m.call(this)||this;return l.ver=2,l.properties={},l}return u}(g);k.exports=_}),fd=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var m=function(u,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(c[y]=v[y])},m(u,l)};return function(u,l){m(u,l);function c(){this.constructor=u}u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),g=Jr(),_=function(m){p(u,m);function u(){var l=m.call(this)||this;return l.ver=2,l.metrics=[],l.properties={},l}return u}(g);k.exports=_}),xo=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var m=function(u,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(c[y]=v[y])},m(u,l)};return function(u,l){m(u,l);function c(){this.constructor=u}u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),g=Oo(),_=function(m){p(u,m);function u(){var l=m.call(this)||this;return l.ver=2,l.properties={},l.measurements={},l}return u}(g);k.exports=_}),Rs=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var m=function(u,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(c[y]=v[y])},m(u,l)};return function(u,l){m(u,l);function c(){this.constructor=u}u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),g=Jr(),_=function(m){p(u,m);function u(){var l=m.call(this)||this;return l.ver=2,l.success=!0,l.properties={},l.measurements={},l}return u}(g);k.exports=_}),vd=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var m=function(u,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(c[y]=v[y])},m(u,l)};return function(u,l){m(u,l);function c(){this.constructor=u}u.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),g=Jr(),_=function(m){p(u,m);function u(){var l=m.call(this)||this;return l.ver=2,l.properties={},l.measurements={},l}return u}(g);k.exports=_}),Mo=I((a,k)=>{"use strict";var p;(function(g){g[g.Verbose=0]="Verbose",g[g.Information=1]="Information",g[g.Warning=2]="Warning",g[g.Error=3]="Error",g[g.Critical=4]="Critical"})(p||(p={})),k.exports=p}),gd=I((a,k)=>{"use strict";var p=function(){function g(){}return g}();k.exports=p}),Fo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.AvailabilityData=ud(),a.Base=Do(),a.ContextTagKeys=pd(),a.Data=Ao(),a.DataPoint=ks(),a.DataPointType=Io(),a.Domain=Jr(),a.Envelope=lp(),a.EventData=Oo(),a.ExceptionData=cd(),a.ExceptionDetails=md(),a.MessageData=hd(),a.MetricData=fd(),a.PageViewData=xo(),a.RemoteDependencyData=Rs(),a.RequestData=vd(),a.SeverityLevel=Mo(),a.StackFrame=gd()}),Cs=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.domainSupportsProperties=a.RemoteDependencyDataConstants=void 0;var k=Fo(),p=function(){function _(){}return _.TYPE_HTTP="Http",_.TYPE_AI="Http (tracked component)",_}();a.RemoteDependencyDataConstants=p;function g(_){return"properties"in _||_ instanceof k.EventData||_ instanceof k.ExceptionData||_ instanceof k.MessageData||_ instanceof k.MetricData||_ instanceof k.PageViewData||_ instanceof k.RemoteDependencyData||_ instanceof k.RequestData}a.domainSupportsProperties=g}),Lo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Uo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),dp=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),yd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),up=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Vo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),wd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),bd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),_d=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Ed=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),qo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Sd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Td=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TelemetryType=a.TelemetryTypeString=a.baseTypeToTelemetryType=a.telemetryTypeToBaseType=void 0;function k(_){switch(_){case g.Event:return"EventData";case g.Exception:return"ExceptionData";case g.Trace:return"MessageData";case g.Metric:return"MetricData";case g.Request:return"RequestData";case g.Dependency:return"RemoteDependencyData";case g.Availability:return"AvailabilityData";case g.PageView:return"PageViewData"}}a.telemetryTypeToBaseType=k;function p(_){switch(_){case"EventData":return g.Event;case"ExceptionData":return g.Exception;case"MessageData":return g.Trace;case"MetricData":return g.Metric;case"RequestData":return g.Request;case"RemoteDependencyData":return g.Dependency;case"AvailabilityData":return g.Availability;case"PageViewData":return g.PageView}}a.baseTypeToTelemetryType=p,a.TelemetryTypeString={Event:"EventData",Exception:"ExceptionData",Trace:"MessageData",Metric:"MetricData",Request:"RequestData",Dependency:"RemoteDependencyData",Availability:"AvailabilityData",PageView:"PageViewData"};var g;(function(_){_[_.Event=0]="Event",_[_.Exception=1]="Exception",_[_.Trace=2]="Trace",_[_.Metric=3]="Metric",_[_.Request=4]="Request",_[_.Dependency=5]="Dependency",_[_.Availability=6]="Availability",_[_.PageView=7]="PageView"})(g=a.TelemetryType||(a.TelemetryType={}))}),Ns=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(Lo(),a),p(Uo(),a),p(dp(),a),p(yd(),a),p(up(),a),p(Vo(),a),p(wd(),a),p(bd(),a),p(_d(),a),p(Ed(),a),p(qo(),a),p(Sd(),a),p(Td(),a)}),qr=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Ye=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),$o=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),pp=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),cp=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),mp=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Zr=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),en=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),hp=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(qr(),a),p(Ye(),a),p($o(),a),p(pp(),a),p(cp(),a),p(mp(),a),p(Zr(),a),p(en(),a)}),sr=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(Cs(),a),p(Fo(),a),p(Ns(),a),p(hp(),a)}),Ps=I((a,k)=>{"use strict";var p=function(){function g(){}return g.prototype.getUrl=function(){return this.url},g.prototype.RequestParser=function(){this.startTime=+new Date},g.prototype._setStatus=function(_,m){var u=+new Date;this.duration=u-this.startTime,this.statusCode=_;var l=this.properties||{};if(m){if(typeof m=="string")l.error=m;else if(m instanceof Error)l.error=m.message;else if(typeof m=="object")for(var c in m)l[c]=m[c]&&m[c].toString&&m[c].toString()}this.properties=l},g.prototype._isSuccess=function(){return 0<this.statusCode&&this.statusCode<400},g}();k.exports=p}),Go=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var b=function(E,R){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,A){C.__proto__=A}||function(C,A){for(var O in A)Object.prototype.hasOwnProperty.call(A,O)&&(C[O]=A[O])},b(E,R)};return function(E,R){b(E,R);function C(){this.constructor=E}E.prototype=R===null?Object.create(R):(C.prototype=R.prototype,new C)}}(),g=U(7310),_=sr(),m=yr(),u=da(),l=Ps(),c=wn(),v=ua(),y=Qn(),f=function(b){p(E,b);function E(R,C){var A=b.call(this)||this;return R&&(A.method=R.method,A.url=A._getAbsoluteUrl(R),A.startTime=+new Date,A.socketRemoteAddress=R.socket&&R.socket.remoteAddress,A.parseHeaders(R,C),R.connection&&(A.connectionRemoteAddress=R.connection.remoteAddress,A.legacySocketRemoteAddress=R.connection.socket&&R.connection.socket.remoteAddress)),A}return E.prototype.onError=function(R,C){this._setStatus(void 0,R),C&&(this.duration=C)},E.prototype.onResponse=function(R,C){this._setStatus(R.statusCode,void 0),C&&(this.duration=C)},E.prototype.getRequestTelemetry=function(R){var C={id:this.requestId,name:this.method+" "+g.parse(this.url).pathname,url:this.url,source:this.sourceCorrelationId,duration:this.duration,resultCode:this.statusCode?this.statusCode.toString():null,success:this._isSuccess(),properties:this.properties};if(R&&R.time?C.time=R.time:this.startTime&&(C.time=new Date(this.startTime)),R){for(var A in R)C[A]||(C[A]=R[A]);if(R.properties)for(var A in R.properties)C.properties[A]=R.properties[A]}return C},E.prototype.getRequestTags=function(R){var C={};for(var A in R)C[A]=R[A];return C[E.keys.locationIp]=R[E.keys.locationIp]||this._getIp(),C[E.keys.sessionId]=R[E.keys.sessionId]||this._getId("ai_session"),C[E.keys.userId]=R[E.keys.userId]||this._getId("ai_user"),C[E.keys.userAuthUserId]=R[E.keys.userAuthUserId]||this._getId("ai_authUser"),C[E.keys.operationName]=this.getOperationName(R),C[E.keys.operationParentId]=this.getOperationParentId(R),C[E.keys.operationId]=this.getOperationId(R),C},E.prototype.getOperationId=function(R){return R[E.keys.operationId]||this.operationId},E.prototype.getOperationParentId=function(R){return R[E.keys.operationParentId]||this.parentId||this.getOperationId(R)},E.prototype.getOperationName=function(R){return R[E.keys.operationName]||this.method+" "+g.parse(this.url).pathname},E.prototype.getRequestId=function(){return this.requestId},E.prototype.getCorrelationContextHeader=function(){return this.correlationContextHeader},E.prototype.getTraceparent=function(){return this.traceparent},E.prototype.getTracestate=function(){return this.tracestate},E.prototype.getLegacyRootId=function(){return this.legacyRootId},E.prototype._getAbsoluteUrl=function(R){if(!R.headers)return R.url;var C=R.connection?R.connection.encrypted:null,A=g.parse(R.url),O=A.pathname,z=A.search,X=C||R.headers["x-forwarded-proto"]=="https"?"https":"http",Y=g.format({protocol:X,host:R.headers.host,pathname:O,search:z});return Y},E.prototype._getIp=function(){var R=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/,C=function(O){var z=R.exec(O);if(z)return z[0]},A=C(this.rawHeaders["x-forwarded-for"])||C(this.rawHeaders["x-client-ip"])||C(this.rawHeaders["x-real-ip"])||C(this.connectionRemoteAddress)||C(this.socketRemoteAddress)||C(this.legacySocketRemoteAddress);return!A&&this.connectionRemoteAddress&&this.connectionRemoteAddress.substr&&this.connectionRemoteAddress.substr(0,2)==="::"&&(A="127.0.0.1"),A},E.prototype._getId=function(R){var C=this.rawHeaders&&this.rawHeaders.cookie&&typeof this.rawHeaders.cookie=="string"&&this.rawHeaders.cookie||"",A=E.parseId(m.getCookie(R,C));return A},E.prototype.setBackCompatFromThisTraceContext=function(){this.operationId=this.traceparent.traceId,this.traceparent.legacyRootId&&(this.legacyRootId=this.traceparent.legacyRootId),this.parentId=this.traceparent.parentId,this.traceparent.updateSpanId(),this.requestId=this.traceparent.getBackCompatRequestId()},E.prototype.parseHeaders=function(R,C){if(this.rawHeaders=R.headers||R.rawHeaders,this.userAgent=R.headers&&R.headers["user-agent"],this.sourceCorrelationId=m.getCorrelationContextTarget(R,u.requestContextSourceKey),R.headers){var A=R.headers[u.traceStateHeader]?R.headers[u.traceStateHeader].toString():null,O=R.headers[u.traceparentHeader]?R.headers[u.traceparentHeader].toString():null,z=R.headers[u.requestIdHeader]?R.headers[u.requestIdHeader].toString():null,X=R.headers[u.parentIdHeader]?R.headers[u.parentIdHeader].toString():null,Y=R.headers[u.rootIdHeader]?R.headers[u.rootIdHeader].toString():null;this.correlationContextHeader=R.headers[u.correlationContextHeader]?R.headers[u.correlationContextHeader].toString():null,c.w3cEnabled&&(O||A)?(this.traceparent=new y(O?O.toString():null),this.tracestate=O&&A&&new v(A?A.toString():null),this.setBackCompatFromThisTraceContext()):z?c.w3cEnabled?(this.traceparent=new y(null,z),this.setBackCompatFromThisTraceContext()):(this.parentId=z,this.requestId=c.generateRequestId(this.parentId),this.operationId=c.getRootId(this.requestId)):c.w3cEnabled?(this.traceparent=new y,this.traceparent.parentId=X,this.traceparent.legacyRootId=Y||X,this.setBackCompatFromThisTraceContext()):(this.parentId=X,this.requestId=c.generateRequestId(Y||this.parentId),this.correlationContextHeader=null,this.operationId=c.getRootId(this.requestId)),C&&(this.requestId=C,this.operationId=c.getRootId(this.requestId))}},E.parseId=function(R){var C=R.split("|");return C.length>0?C[0]:""},E.keys=new _.ContextTagKeys,E}(l);k.exports=f}),fp=I((a,k)=>{a=k.exports=$e;var p;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?p=function(){var w=Array.prototype.slice.call(arguments,0);w.unshift("SEMVER"),console.log.apply(console,w)}:p=function(){},a.SEMVER_SPEC_VERSION="2.0.0";var g=256,_=Number.MAX_SAFE_INTEGER||9007199254740991,m=16,u=a.re=[],l=a.src=[],c=0,v=c++;l[v]="0|[1-9]\\d*";var y=c++;l[y]="[0-9]+";var f=c++;l[f]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var b=c++;l[b]="("+l[v]+")\\.("+l[v]+")\\.("+l[v]+")";var E=c++;l[E]="("+l[y]+")\\.("+l[y]+")\\.("+l[y]+")";var R=c++;l[R]="(?:"+l[v]+"|"+l[f]+")";var C=c++;l[C]="(?:"+l[y]+"|"+l[f]+")";var A=c++;l[A]="(?:-("+l[R]+"(?:\\."+l[R]+")*))";var O=c++;l[O]="(?:-?("+l[C]+"(?:\\."+l[C]+")*))";var z=c++;l[z]="[0-9A-Za-z-]+";var X=c++;l[X]="(?:\\+("+l[z]+"(?:\\."+l[z]+")*))";var Y=c++,me="v?"+l[b]+l[A]+"?"+l[X]+"?";l[Y]="^"+me+"$";var Ee="[v=\\s]*"+l[E]+l[O]+"?"+l[X]+"?",Ie=c++;l[Ie]="^"+Ee+"$";var De=c++;l[De]="((?:<|>)?=?)";var Ve=c++;l[Ve]=l[y]+"|x|X|\\*";var Qe=c++;l[Qe]=l[v]+"|x|X|\\*";var Xe=c++;l[Xe]="[v=\\s]*("+l[Qe]+")(?:\\.("+l[Qe]+")(?:\\.("+l[Qe]+")(?:"+l[A]+")?"+l[X]+"?)?)?";var it=c++;l[it]="[v=\\s]*("+l[Ve]+")(?:\\.("+l[Ve]+")(?:\\.("+l[Ve]+")(?:"+l[O]+")?"+l[X]+"?)?)?";var Nt=c++;l[Nt]="^"+l[De]+"\\s*"+l[Xe]+"$";var yt=c++;l[yt]="^"+l[De]+"\\s*"+l[it]+"$";var Qt=c++;l[Qt]="(?:^|[^\\d])(\\d{1,"+m+"})(?:\\.(\\d{1,"+m+"}))?(?:\\.(\\d{1,"+m+"}))?(?:$|[^\\d])";var ht=c++;l[ht]="(?:~>?)";var He=c++;l[He]="(\\s*)"+l[ht]+"\\s+",u[He]=new RegExp(l[He],"g");var et="$1~",Je=c++;l[Je]="^"+l[ht]+l[Xe]+"$";var at=c++;l[at]="^"+l[ht]+l[it]+"$";var ct=c++;l[ct]="(?:\\^)";var Et=c++;l[Et]="(\\s*)"+l[ct]+"\\s+",u[Et]=new RegExp(l[Et],"g");var ut="$1^",qt=c++;l[qt]="^"+l[ct]+l[Xe]+"$";var oi=c++;l[oi]="^"+l[ct]+l[it]+"$";var ii=c++;l[ii]="^"+l[De]+"\\s*("+Ee+")$|^$";var Wt=c++;l[Wt]="^"+l[De]+"\\s*("+me+")$|^$";var Ot=c++;l[Ot]="(\\s*)"+l[De]+"\\s*("+Ee+"|"+l[Xe]+")",u[Ot]=new RegExp(l[Ot],"g");var Si="$1$2$3",Ri=c++;l[Ri]="^\\s*("+l[Xe]+")\\s+-\\s+("+l[Xe]+")\\s*$";var st=c++;l[st]="^\\s*("+l[it]+")\\s+-\\s+("+l[it]+")\\s*$";var pt=c++;for(l[pt]="(<|>)?=?\\s*\\*",St=0;St<c;St++)p(St,l[St]),u[St]||(u[St]=new RegExp(l[St]));var St;a.parse=Ft;function Ft(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof $e)return w;if(typeof w!="string"||w.length>g)return null;var F=N.loose?u[Ie]:u[Y];if(!F.test(w))return null;try{return new $e(w,N)}catch(ne){return null}}a.valid=Yn;function Yn(w,N){var F=Ft(w,N);return F?F.version:null}a.clean=Xn;function Xn(w,N){var F=Ft(w.trim().replace(/^[=v]+/,""),N);return F?F.version:null}a.SemVer=$e;function $e(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof $e){if(w.loose===N.loose)return w;w=w.version}else if(typeof w!="string")throw new TypeError("Invalid Version: "+w);if(w.length>g)throw new TypeError("version is longer than "+g+" characters");if(!(this instanceof $e))return new $e(w,N);p("SemVer",w,N),this.options=N,this.loose=!!N.loose;var F=w.trim().match(N.loose?u[Ie]:u[Y]);if(!F)throw new TypeError("Invalid Version: "+w);if(this.raw=w,this.major=+F[1],this.minor=+F[2],this.patch=+F[3],this.major>_||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_||this.patch<0)throw new TypeError("Invalid patch version");F[4]?this.prerelease=F[4].split(".").map(function(ne){if(/^[0-9]+$/.test(ne)){var de=+ne;if(de>=0&&de<_)return de}return ne}):this.prerelease=[],this.build=F[5]?F[5].split("."):[],this.format()}$e.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},$e.prototype.toString=function(){return this.version},$e.prototype.compare=function(w){return p("SemVer.compare",this.version,this.options,w),w instanceof $e||(w=new $e(w,this.options)),this.compareMain(w)||this.comparePre(w)},$e.prototype.compareMain=function(w){return w instanceof $e||(w=new $e(w,this.options)),hi(this.major,w.major)||hi(this.minor,w.minor)||hi(this.patch,w.patch)},$e.prototype.comparePre=function(w){if(w instanceof $e||(w=new $e(w,this.options)),this.prerelease.length&&!w.prerelease.length)return-1;if(!this.prerelease.length&&w.prerelease.length)return 1;if(!this.prerelease.length&&!w.prerelease.length)return 0;var N=0;do{var F=this.prerelease[N],ne=w.prerelease[N];if(p("prerelease compare",N,F,ne),F===void 0&&ne===void 0)return 0;if(ne===void 0)return 1;if(F===void 0)return-1;if(F!==ne)return hi(F,ne)}while(++N)},$e.prototype.inc=function(w,N){switch(w){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",N);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",N);break;case"prepatch":this.prerelease.length=0,this.inc("patch",N),this.inc("pre",N);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",N),this.inc("pre",N);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var F=this.prerelease.length;--F>=0;)typeof this.prerelease[F]=="number"&&(this.prerelease[F]++,F=-2);F===-1&&this.prerelease.push(0)}N&&(this.prerelease[0]===N?isNaN(this.prerelease[1])&&(this.prerelease=[N,0]):this.prerelease=[N,0]);break;default:throw new Error("invalid increment argument: "+w)}return this.format(),this.raw=this.version,this},a.inc=rn;function rn(w,N,F,ne){typeof F=="string"&&(ne=F,F=void 0);try{return new $e(w,F).inc(N,ne).version}catch(de){return null}}a.diff=_n;function _n(w,N){if(Oi(w,N))return null;var F=Ft(w),ne=Ft(N),de="";if(F.prerelease.length||ne.prerelease.length){de="pre";var ge="prerelease"}for(var we in F)if((we==="major"||we==="minor"||we==="patch")&&F[we]!==ne[we])return de+we;return ge}a.compareIdentifiers=hi;var or=/^[0-9]+$/;function hi(w,N){var F=or.test(w),ne=or.test(N);return F&&ne&&(w=+w,N=+N),w===N?0:F&&!ne?-1:ne&&!F?1:w<N?-1:1}a.rcompareIdentifiers=kr;function kr(w,N){return hi(N,w)}a.major=Ci;function Ci(w,N){return new $e(w,N).major}a.minor=Hr;function Hr(w,N){return new $e(w,N).minor}a.patch=nn;function nn(w,N){return new $e(w,N).patch}a.compare=Bt;function Bt(w,N,F){return new $e(w,F).compare(new $e(N,F))}a.compareLoose=En;function En(w,N){return Bt(w,N,!0)}a.rcompare=Ti;function Ti(w,N,F){return Bt(N,w,F)}a.sort=Rr;function Rr(w,N){return w.sort(function(F,ne){return a.compare(F,ne,N)})}a.rsort=an;function an(w,N){return w.sort(function(F,ne){return a.rcompare(F,ne,N)})}a.gt=At;function At(w,N,F){return Bt(w,N,F)>0}a.lt=Ii;function Ii(w,N,F){return Bt(w,N,F)<0}a.eq=Oi;function Oi(w,N,F){return Bt(w,N,F)===0}a.neq=Ji;function Ji(w,N,F){return Bt(w,N,F)!==0}a.gte=lr;function lr(w,N,F){return Bt(w,N,F)>=0}a.lte=Ni;function Ni(w,N,F){return Bt(w,N,F)<=0}a.cmp=li;function li(w,N,F,ne){switch(N){case"===":return typeof w=="object"&&(w=w.version),typeof F=="object"&&(F=F.version),w===F;case"!==":return typeof w=="object"&&(w=w.version),typeof F=="object"&&(F=F.version),w!==F;case"":case"=":case"==":return Oi(w,F,ne);case"!=":return Ji(w,F,ne);case">":return At(w,F,ne);case">=":return lr(w,F,ne);case"<":return Ii(w,F,ne);case"<=":return Ni(w,F,ne);default:throw new TypeError("Invalid operator: "+N)}}a.Comparator=Tt;function Tt(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof Tt){if(w.loose===!!N.loose)return w;w=w.value}if(!(this instanceof Tt))return new Tt(w,N);p("comparator",w,N),this.options=N,this.loose=!!N.loose,this.parse(w),this.semver===ki?this.value="":this.value=this.operator+this.semver.version,p("comp",this)}var ki={};Tt.prototype.parse=function(w){var N=this.options.loose?u[ii]:u[Wt],F=w.match(N);if(!F)throw new TypeError("Invalid comparator: "+w);this.operator=F[1],this.operator==="="&&(this.operator=""),F[2]?this.semver=new $e(F[2],this.options.loose):this.semver=ki},Tt.prototype.toString=function(){return this.value},Tt.prototype.test=function(w){return p("Comparator.test",w,this.options.loose),this.semver===ki?!0:(typeof w=="string"&&(w=new $e(w,this.options)),li(w,this.operator,this.semver,this.options))},Tt.prototype.intersects=function(w,N){if(!(w instanceof Tt))throw new TypeError("a Comparator is required");(!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1});var F;if(this.operator==="")return F=new rt(w.value,N),ji(this.value,F,N);if(w.operator==="")return F=new rt(this.value,N),ji(w.semver,F,N);var ne=(this.operator===">="||this.operator===">")&&(w.operator===">="||w.operator===">"),de=(this.operator==="<="||this.operator==="<")&&(w.operator==="<="||w.operator==="<"),ge=this.semver.version===w.semver.version,we=(this.operator===">="||this.operator==="<=")&&(w.operator===">="||w.operator==="<="),Be=li(this.semver,"<",w.semver,N)&&(this.operator===">="||this.operator===">")&&(w.operator==="<="||w.operator==="<"),Ge=li(this.semver,">",w.semver,N)&&(this.operator==="<="||this.operator==="<")&&(w.operator===">="||w.operator===">");return ne||de||ge&&we||Be||Ge},a.Range=rt;function rt(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof rt)return w.loose===!!N.loose&&w.includePrerelease===!!N.includePrerelease?w:new rt(w.raw,N);if(w instanceof Tt)return new rt(w.value,N);if(!(this instanceof rt))return new rt(w,N);if(this.options=N,this.loose=!!N.loose,this.includePrerelease=!!N.includePrerelease,this.raw=w,this.set=w.split(/\s*\|\|\s*/).map(function(F){return this.parseRange(F.trim())},this).filter(function(F){return F.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+w);this.format()}rt.prototype.format=function(){return this.range=this.set.map(function(w){return w.join(" ").trim()}).join("||").trim(),this.range},rt.prototype.toString=function(){return this.range},rt.prototype.parseRange=function(w){var N=this.options.loose;w=w.trim();var F=N?u[st]:u[Ri];w=w.replace(F,Rn),p("hyphen replace",w),w=w.replace(u[Ot],Si),p("comparator trim",w,u[Ot]),w=w.replace(u[He],et),w=w.replace(u[Et],ut),w=w.split(/\s+/).join(" ");var ne=N?u[ii]:u[Wt],de=w.split(" ").map(function(ge){return dr(ge,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(de=de.filter(function(ge){return!!ge.match(ne)})),de=de.map(function(ge){return new Tt(ge,this.options)},this),de},rt.prototype.intersects=function(w,N){if(!(w instanceof rt))throw new TypeError("a Range is required");return this.set.some(function(F){return F.every(function(ne){return w.set.some(function(de){return de.every(function(ge){return ne.intersects(ge,N)})})})})},a.toComparators=sn;function sn(w,N){return new rt(w,N).set.map(function(F){return F.map(function(ne){return ne.value}).join(" ").trim().split(" ")})}function dr(w,N){return p("comp",w,N),w=Tn(w,N),p("caret",w),w=ur(w,N),p("tildes",w),w=ln(w,N),p("xrange",w),w=Zi(w,N),p("stars",w),w}function vt(w){return!w||w.toLowerCase()==="x"||w==="*"}function ur(w,N){return w.trim().split(/\s+/).map(function(F){return Sn(F,N)}).join(" ")}function Sn(w,N){var F=N.loose?u[at]:u[Je];return w.replace(F,function(ne,de,ge,we,Be){p("tilde",w,ne,de,ge,we,Be);var Ge;return vt(de)?Ge="":vt(ge)?Ge=">="+de+".0.0 <"+(+de+1)+".0.0":vt(we)?Ge=">="+de+"."+ge+".0 <"+de+"."+(+ge+1)+".0":Be?(p("replaceTilde pr",Be),Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+de+"."+(+ge+1)+".0"):Ge=">="+de+"."+ge+"."+we+" <"+de+"."+(+ge+1)+".0",p("tilde return",Ge),Ge})}function Tn(w,N){return w.trim().split(/\s+/).map(function(F){return on(F,N)}).join(" ")}function on(w,N){p("caret",w,N);var F=N.loose?u[oi]:u[qt];return w.replace(F,function(ne,de,ge,we,Be){p("caret",w,ne,de,ge,we,Be);var Ge;return vt(de)?Ge="":vt(ge)?Ge=">="+de+".0.0 <"+(+de+1)+".0.0":vt(we)?de==="0"?Ge=">="+de+"."+ge+".0 <"+de+"."+(+ge+1)+".0":Ge=">="+de+"."+ge+".0 <"+(+de+1)+".0.0":Be?(p("replaceCaret pr",Be),de==="0"?ge==="0"?Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+de+"."+ge+"."+(+we+1):Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+de+"."+(+ge+1)+".0":Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+(+de+1)+".0.0"):(p("no pr"),de==="0"?ge==="0"?Ge=">="+de+"."+ge+"."+we+" <"+de+"."+ge+"."+(+we+1):Ge=">="+de+"."+ge+"."+we+" <"+de+"."+(+ge+1)+".0":Ge=">="+de+"."+ge+"."+we+" <"+(+de+1)+".0.0"),p("caret return",Ge),Ge})}function ln(w,N){return p("replaceXRanges",w,N),w.split(/\s+/).map(function(F){return kn(F,N)}).join(" ")}function kn(w,N){w=w.trim();var F=N.loose?u[yt]:u[Nt];return w.replace(F,function(ne,de,ge,we,Be,Ge){p("xRange",w,ne,de,ge,we,Be,Ge);var $t=vt(ge),xt=$t||vt(we),Pt=xt||vt(Be),Dt=Pt;return de==="="&&Dt&&(de=""),$t?de===">"||de==="<"?ne="<0.0.0":ne="*":de&&Dt?(xt&&(we=0),Be=0,de===">"?(de=">=",xt?(ge=+ge+1,we=0,Be=0):(we=+we+1,Be=0)):de==="<="&&(de="<",xt?ge=+ge+1:we=+we+1),ne=de+ge+"."+we+"."+Be):xt?ne=">="+ge+".0.0 <"+(+ge+1)+".0.0":Pt&&(ne=">="+ge+"."+we+".0 <"+ge+"."+(+we+1)+".0"),p("xRange return",ne),ne})}function Zi(w,N){return p("replaceStars",w,N),w.trim().replace(u[pt],"")}function Rn(w,N,F,ne,de,ge,we,Be,Ge,$t,xt,Pt,Dt){return vt(F)?N="":vt(ne)?N=">="+F+".0.0":vt(de)?N=">="+F+"."+ne+".0":N=">="+N,vt(Ge)?Be="":vt($t)?Be="<"+(+Ge+1)+".0.0":vt(xt)?Be="<"+Ge+"."+(+$t+1)+".0":Pt?Be="<="+Ge+"."+$t+"."+xt+"-"+Pt:Be="<="+Be,(N+" "+Be).trim()}rt.prototype.test=function(w){if(!w)return!1;typeof w=="string"&&(w=new $e(w,this.options));for(var N=0;N<this.set.length;N++)if(Cn(this.set[N],w,this.options))return!0;return!1};function Cn(w,N,F){for(var ne=0;ne<w.length;ne++)if(!w[ne].test(N))return!1;if(N.prerelease.length&&!F.includePrerelease){for(ne=0;ne<w.length;ne++)if(p(w[ne].semver),w[ne].semver!==ki&&w[ne].semver.prerelease.length>0){var de=w[ne].semver;if(de.major===N.major&&de.minor===N.minor&&de.patch===N.patch)return!0}return!1}return!0}a.satisfies=ji;function ji(w,N,F){try{N=new rt(N,F)}catch(ne){return!1}return N.test(w)}a.maxSatisfying=Nn;function Nn(w,N,F){var ne=null,de=null;try{var ge=new rt(N,F)}catch(we){return null}return w.forEach(function(we){ge.test(we)&&(!ne||de.compare(we)===-1)&&(ne=we,de=new $e(ne,F))}),ne}a.minSatisfying=Pn;function Pn(w,N,F){var ne=null,de=null;try{var ge=new rt(N,F)}catch(we){return null}return w.forEach(function(we){ge.test(we)&&(!ne||de.compare(we)===1)&&(ne=we,de=new $e(ne,F))}),ne}a.minVersion=Cr;function Cr(w,N){w=new rt(w,N);var F=new $e("0.0.0");if(w.test(F)||(F=new $e("0.0.0-0"),w.test(F)))return F;F=null;for(var ne=0;ne<w.set.length;++ne){var de=w.set[ne];de.forEach(function(ge){var we=new $e(ge.semver.version);switch(ge.operator){case">":we.prerelease.length===0?we.patch++:we.prerelease.push(0),we.raw=we.format();case"":case">=":(!F||At(F,we))&&(F=we);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+ge.operator)}})}return F&&w.test(F)?F:null}a.validRange=Dn;function Dn(w,N){try{return new rt(w,N).range||"*"}catch(F){return null}}a.ltr=An;function An(w,N,F){return pr(w,N,"<",F)}a.gtr=xr;function xr(w,N,F){return pr(w,N,">",F)}a.outside=pr;function pr(w,N,F,ne){w=new $e(w,ne),N=new rt(N,ne);var de,ge,we,Be,Ge;switch(F){case">":de=At,ge=Ni,we=Ii,Be=">",Ge=">=";break;case"<":de=Ii,ge=lr,we=At,Be="<",Ge="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ji(w,N,ne))return!1;for(var $t=0;$t<N.set.length;++$t){var xt=N.set[$t],Pt=null,Dt=null;if(xt.forEach(function(ri){ri.semver===ki&&(ri=new Tt(">=0.0.0")),Pt=Pt||ri,Dt=Dt||ri,de(ri.semver,Pt.semver,ne)?Pt=ri:we(ri.semver,Dt.semver,ne)&&(Dt=ri)}),Pt.operator===Be||Pt.operator===Ge||(!Dt.operator||Dt.operator===Be)&&ge(w,Dt.semver)||Dt.operator===Ge&&we(w,Dt.semver))return!1}return!0}a.prerelease=In;function In(w,N){var F=Ft(w,N);return F&&F.prerelease.length?F.prerelease:null}a.intersects=cr;function cr(w,N,F){return w=new rt(w,F),N=new rt(N,F),w.intersects(N)}a.coerce=vi;function vi(w){if(w instanceof $e)return w;if(typeof w!="string")return null;var N=w.match(u[Qt]);return N==null?null:Ft(N[1]+"."+(N[2]||"0")+"."+(N[3]||"0"))}}),pa=I((a,k)=>{"use strict";function p(y){return typeof y=="function"}var g=console.error.bind(console);function _(y,f,b){var E=!!y[f]&&y.propertyIsEnumerable(f);Object.defineProperty(y,f,{configurable:!0,enumerable:E,writable:!0,value:b})}function m(y){y&&y.logger&&(p(y.logger)?g=y.logger:g("new logger isn't a function, not replacing"))}function u(y,f,b){if(!y||!y[f]){g("no original function "+f+" to wrap");return}if(!b){g("no wrapper function"),g(new Error().stack);return}if(!p(y[f])||!p(b)){g("original object and wrapper must be functions");return}var E=y[f],R=b(E,f);return _(R,"__original",E),_(R,"__unwrap",function(){y[f]===R&&_(y,f,E)}),_(R,"__wrapped",!0),_(y,f,R),R}function l(y,f,b){if(y)Array.isArray(y)||(y=[y]);else{g("must provide one or more modules to patch"),g(new Error().stack);return}if(!(f&&Array.isArray(f))){g("must provide one or more functions to wrap on modules");return}y.forEach(function(E){f.forEach(function(R){u(E,R,b)})})}function c(y,f){if(!y||!y[f]){g("no function to unwrap."),g(new Error().stack);return}if(!y[f].__unwrap)g("no original to unwrap to -- has "+f+" already been unwrapped?");else return y[f].__unwrap()}function v(y,f){if(y)Array.isArray(y)||(y=[y]);else{g("must provide one or more modules to patch"),g(new Error().stack);return}if(!(f&&Array.isArray(f))){g("must provide one or more functions to unwrap on modules");return}y.forEach(function(b){f.forEach(function(E){c(b,E)})})}m.wrap=u,m.massWrap=l,m.unwrap=c,m.massUnwrap=v,k.exports=m}),Wn=I((a,k)=>{"use strict";var p=pa(),g=p.wrap,_=p.unwrap,m="wrap@before";function u(f,b,E){var R=!!f[b]&&f.propertyIsEnumerable(b);Object.defineProperty(f,b,{configurable:!0,enumerable:R,writable:!0,value:E})}function l(f,b){for(var E=b.length,R=0;R<E;R++){var C=b[R],A=f[m];if(typeof A=="function")A(C);else if(Array.isArray(A))for(var O=A.length,z=0;z<O;z++)A[z](C)}}function c(f,b){var E;return E=f._events&&f._events[b],Array.isArray(E)||(E?E=[E]:E=[]),E}function v(f,b,E){var R=c(f,b),C=R.filter(function(A){return E.indexOf(A)===-1});C.length>0&&l(f,C)}function y(f,b){if(f){var E=f;if(typeof f=="function")E=b(f);else if(Array.isArray(f)){E=[];for(var R=0;R<f.length;R++)E[R]=b(f[R])}return E}}k.exports=function(f,b,E){if(!f||!f.on||!f.addListener||!f.removeListener||!f.emit)throw new Error("can only wrap real EEs");if(!b)throw new Error("must have function to run on listener addition");if(!E)throw new Error("must have function to wrap listeners when emitting");function R(A){return function(O,z){var X=c(this,O).slice();try{var Y=A.call(this,O,z);return v(this,O,X),Y}finally{this.on.__wrapped||g(this,"on",R),this.addListener.__wrapped||g(this,"addListener",R)}}}function C(A){return function(O){if(!this._events||!this._events[O])return A.apply(this,arguments);var z=this._events[O];function X(Y){return function(){this._events[O]=z;try{return Y.apply(this,arguments)}finally{z=this._events[O],this._events[O]=y(z,E)}}}g(this,"removeListener",X);try{return this._events[O]=y(z,E),A.apply(this,arguments)}finally{_(this,"removeListener"),this._events[O]=z}}}f[m]?typeof f[m]=="function"?u(f,m,[f[m],b]):Array.isArray(f[m])&&f[m].push(b):u(f,m,b),f.__wrapped||(g(f,"addListener",R),g(f,"on",R),g(f,"emit",C),u(f,"__unwrap",function(){_(f,"addListener"),_(f,"on"),_(f,"emit"),delete f[m],delete f.__wrapped}),u(f,"__wrapped",!0))}}),vp=I((a,k)=>{"use strict";var p=U(3837),g=U(9491),_=Wn(),m=U(852),u="cls@contexts",l="error@context",c=process.env.DEBUG_CLS_HOOKED,v=-1;k.exports={getNamespace:f,createNamespace:b,destroyNamespace:E,reset:R,ERROR_SYMBOL:l};function y(A){this.name=A,this.active=null,this._set=[],this.id=null,this._contexts=new Map,this._indent=0}y.prototype.set=function(A,O){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");if(this.active[A]=O,c){let z=" ".repeat(this._indent<0?0:this._indent);C(z+"CONTEXT-SET KEY:"+A+"="+O+" in ns:"+this.name+" currentUid:"+v+" active:"+p.inspect(this.active,{showHidden:!0,depth:2,colors:!0}))}return O},y.prototype.get=function(A){if(!this.active){if(c){let O=m.currentId(),z=m.triggerAsyncId(),X=" ".repeat(this._indent<0?0:this._indent);C(`${X}CONTEXT-GETTING KEY NO ACTIVE NS: (${this.name}) ${A}=undefined currentUid:${v} asyncHooksCurrentId:${O} triggerId:${z} len:${this._set.length}`)}return}if(c){let O=m.executionAsyncId(),z=m.triggerAsyncId(),X=" ".repeat(this._indent<0?0:this._indent);C(X+"CONTEXT-GETTING KEY:"+A+"="+this.active[A]+" ("+this.name+") currentUid:"+v+" active:"+p.inspect(this.active,{showHidden:!0,depth:2,colors:!0})),C(`${X}CONTEXT-GETTING KEY: (${this.name}) ${A}=${this.active[A]} currentUid:${v} asyncHooksCurrentId:${O} triggerId:${z} len:${this._set.length} active:${p.inspect(this.active)}`)}return this.active[A]},y.prototype.createContext=function(){let A=Object.create(this.active?this.active:Object.prototype);if(A._ns_name=this.name,A.id=v,c){let O=m.executionAsyncId(),z=m.triggerAsyncId(),X=" ".repeat(this._indent<0?0:this._indent);C(`${X}CONTEXT-CREATED Context: (${this.name}) currentUid:${v} asyncHooksCurrentId:${O} triggerId:${z} len:${this._set.length} context:${p.inspect(A,{showHidden:!0,depth:2,colors:!0})}`)}return A},y.prototype.run=function(A){let O=this.createContext();this.enter(O);try{if(c){let z=m.triggerAsyncId(),X=m.executionAsyncId(),Y=" ".repeat(this._indent<0?0:this._indent);C(`${Y}CONTEXT-RUN BEGIN: (${this.name}) currentUid:${v} triggerId:${z} asyncHooksCurrentId:${X} len:${this._set.length} context:${p.inspect(O)}`)}return A(O),O}catch(z){throw z&&(z[l]=O),z}finally{if(c){let z=m.triggerAsyncId(),X=m.executionAsyncId(),Y=" ".repeat(this._indent<0?0:this._indent);C(`${Y}CONTEXT-RUN END: (${this.name}) currentUid:${v} triggerId:${z} asyncHooksCurrentId:${X} len:${this._set.length} ${p.inspect(O)}`)}this.exit(O)}},y.prototype.runAndReturn=function(A){let O;return this.run(function(z){O=A(z)}),O},y.prototype.runPromise=function(A){let O=this.createContext();this.enter(O);let z=A(O);if(!z||!z.then||!z.catch)throw new Error("fn must return a promise.");return c&&C("CONTEXT-runPromise BEFORE: ("+this.name+") currentUid:"+v+" len:"+this._set.length+" "+p.inspect(O)),z.then(X=>(c&&C("CONTEXT-runPromise AFTER then: ("+this.name+") currentUid:"+v+" len:"+this._set.length+" "+p.inspect(O)),this.exit(O),X)).catch(X=>{throw X[l]=O,c&&C("CONTEXT-runPromise AFTER catch: ("+this.name+") currentUid:"+v+" len:"+this._set.length+" "+p.inspect(O)),this.exit(O),X})},y.prototype.bind=function(A,O){O||(this.active?O=this.active:O=this.createContext());let z=this;return function(){z.enter(O);try{return A.apply(this,arguments)}catch(X){throw X&&(X[l]=O),X}finally{z.exit(O)}}},y.prototype.enter=function(A){if(g.ok(A,"context must be provided for entering"),c){let O=m.executionAsyncId(),z=m.triggerAsyncId(),X=" ".repeat(this._indent<0?0:this._indent);C(`${X}CONTEXT-ENTER: (${this.name}) currentUid:${v} triggerId:${z} asyncHooksCurrentId:${O} len:${this._set.length} ${p.inspect(A)}`)}this._set.push(this.active),this.active=A},y.prototype.exit=function(A){if(g.ok(A,"context must be provided for exiting"),c){let z=m.executionAsyncId(),X=m.triggerAsyncId(),Y=" ".repeat(this._indent<0?0:this._indent);C(`${Y}CONTEXT-EXIT: (${this.name}) currentUid:${v} triggerId:${X} asyncHooksCurrentId:${z} len:${this._set.length} ${p.inspect(A)}`)}if(this.active===A){g.ok(this._set.length,"can't remove top context"),this.active=this._set.pop();return}let O=this._set.lastIndexOf(A);O<0?(c&&C("??ERROR?? context exiting but not entered - ignoring: "+p.inspect(A)),g.ok(O>=0,`context not currently entered; can't exit.
|
||
`+p.inspect(this)+`
|
||
`+p.inspect(A))):(g.ok(O,"can't remove top context"),this._set.splice(O,1))},y.prototype.bindEmitter=function(A){g.ok(A.on&&A.addListener&&A.emit,"can only bind real EEs");let O=this,z="context@"+this.name;function X(me){!me||(me[u]||(me[u]=Object.create(null)),me[u][z]={namespace:O,context:O.active})}function Y(me){if(!(me&&me[u]))return me;let Ee=me,Ie=me[u];return Object.keys(Ie).forEach(function(De){let Ve=Ie[De];Ee=Ve.namespace.bind(Ee,Ve.context)}),Ee}_(A,X,Y)},y.prototype.fromException=function(A){return A[l]};function f(A){return process.namespaces[A]}function b(A){g.ok(A,"namespace must be given a name."),c&&C(`NS-CREATING NAMESPACE (${A})`);let O=new y(A);return O.id=v,m.createHook({init(z,X,Y,me){if(v=m.executionAsyncId(),O.active){if(O._contexts.set(z,O.active),c){let Ee=" ".repeat(O._indent<0?0:O._indent);C(`${Ee}INIT [${X}] (${A}) asyncId:${z} currentUid:${v} triggerId:${Y} active:${p.inspect(O.active,{showHidden:!0,depth:2,colors:!0})} resource:${me}`)}}else if(v===0){let Ee=m.triggerAsyncId(),Ie=O._contexts.get(Ee);if(Ie){if(O._contexts.set(z,Ie),c){let De=" ".repeat(O._indent<0?0:O._indent);C(`${De}INIT USING CONTEXT FROM TRIGGERID [${X}] (${A}) asyncId:${z} currentUid:${v} triggerId:${Ee} active:${p.inspect(O.active,{showHidden:!0,depth:2,colors:!0})} resource:${me}`)}}else if(c){let De=" ".repeat(O._indent<0?0:O._indent);C(`${De}INIT MISSING CONTEXT [${X}] (${A}) asyncId:${z} currentUid:${v} triggerId:${Ee} active:${p.inspect(O.active,{showHidden:!0,depth:2,colors:!0})} resource:${me}`)}}if(c&&X==="PROMISE"){C(p.inspect(me,{showHidden:!0}));let Ee=me.parentId,Ie=" ".repeat(O._indent<0?0:O._indent);C(`${Ie}INIT RESOURCE-PROMISE [${X}] (${A}) parentId:${Ee} asyncId:${z} currentUid:${v} triggerId:${Y} active:${p.inspect(O.active,{showHidden:!0,depth:2,colors:!0})} resource:${me}`)}},before(z){v=m.executionAsyncId();let X;if(X=O._contexts.get(z)||O._contexts.get(v),X){if(c){let Y=m.triggerAsyncId(),me=" ".repeat(O._indent<0?0:O._indent);C(`${me}BEFORE (${A}) asyncId:${z} currentUid:${v} triggerId:${Y} active:${p.inspect(O.active,{showHidden:!0,depth:2,colors:!0})} context:${p.inspect(X)}`),O._indent+=2}O.enter(X)}else if(c){let Y=m.triggerAsyncId(),me=" ".repeat(O._indent<0?0:O._indent);C(`${me}BEFORE MISSING CONTEXT (${A}) asyncId:${z} currentUid:${v} triggerId:${Y} active:${p.inspect(O.active,{showHidden:!0,depth:2,colors:!0})} namespace._contexts:${p.inspect(O._contexts,{showHidden:!0,depth:2,colors:!0})}`),O._indent+=2}},after(z){v=m.executionAsyncId();let X;if(X=O._contexts.get(z)||O._contexts.get(v),X){if(c){let Y=m.triggerAsyncId();O._indent-=2;let me=" ".repeat(O._indent<0?0:O._indent);C(`${me}AFTER (${A}) asyncId:${z} currentUid:${v} triggerId:${Y} active:${p.inspect(O.active,{showHidden:!0,depth:2,colors:!0})} context:${p.inspect(X)}`)}O.exit(X)}else if(c){let Y=m.triggerAsyncId();O._indent-=2;let me=" ".repeat(O._indent<0?0:O._indent);C(`${me}AFTER MISSING CONTEXT (${A}) asyncId:${z} currentUid:${v} triggerId:${Y} active:${p.inspect(O.active,{showHidden:!0,depth:2,colors:!0})} context:${p.inspect(X)}`)}},destroy(z){if(v=m.executionAsyncId(),c){let X=m.triggerAsyncId(),Y=" ".repeat(O._indent<0?0:O._indent);C(`${Y}DESTROY (${A}) currentUid:${v} asyncId:${z} triggerId:${X} active:${p.inspect(O.active,{showHidden:!0,depth:2,colors:!0})} context:${p.inspect(O._contexts.get(v))}`)}O._contexts.delete(z)}}).enable(),process.namespaces[A]=O,O}function E(A){let O=f(A);g.ok(O,`can't delete nonexistent namespace! "`+A+'"'),g.ok(O.id,"don't assign to process.namespaces directly! "+p.inspect(O)),process.namespaces[A]=null}function R(){process.namespaces&&Object.keys(process.namespaces).forEach(function(A){E(A)}),process.namespaces=Object.create(null)}process.namespaces={};function C(...A){c&&process._rawDebug(`${p.format(...A)}`)}}),gp=I((a,k)=>{"use strict";function p(){}k.exports=function(){let g=this._hooks,_=this._state,m=process.nextTick;process.nextTick=function(){if(!_.enabled)return m.apply(process,arguments);let u=new Array(arguments.length);for(let y=0;y<arguments.length;y++)u[y]=arguments[y];let l=u[0];if(typeof l!="function")throw new TypeError("callback is not a function");let c=new p,v=--_.counter;return g.init.call(c,v,0,null,null),u[0]=function(){g.pre.call(c,v);let y=!0;try{l.apply(this,arguments),y=!1}finally{y&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",function(){g.post.call(c,v,!0),g.destroy.call(null,v)})}g.post.call(c,v,!1),g.destroy.call(null,v)},m.apply(process,u)}}}),yp=I((a,k)=>{"use strict";function p(){}k.exports=function(){let g=this._hooks,_=this._state,m=global.Promise,u=m.prototype.then;m.prototype.then=y;function l(f,b,E,R){return typeof f!="function"?R?c(E):v(E):function(){g.pre.call(b,E);try{return f.apply(this,arguments)}finally{g.post.call(b,E,!1),g.destroy.call(null,E)}}}function c(f){return function(b){return g.destroy.call(null,f),b}}function v(f){return function(b){throw g.destroy.call(null,f),b}}function y(f,b){if(!_.enabled)return u.call(this,f,b);let E=new p,R=--_.counter;return g.init.call(E,R,0,null,null),u.call(this,l(f,E,R,!0),l(b,E,R,!1))}}}),wp=I((a,k)=>{"use strict";var p=U(9512);function g(){}function _(){}function m(){}var u=new Map,l=new Map,c=new Map,v=null,y=!1;k.exports=function(){f(this._hooks,this._state,"setTimeout","clearTimeout",g,u,!0),f(this._hooks,this._state,"setInterval","clearInterval",_,l,!1),f(this._hooks,this._state,"setImmediate","clearImmediate",m,c,!0),global.setTimeout=p.setTimeout,global.setInterval=p.setInterval,global.setImmediate=p.setImmediate,global.clearTimeout=p.clearTimeout,global.clearInterval=p.clearInterval,global.clearImmediate=p.clearImmediate};function f(b,E,R,C,A,O,z){let X=p[R],Y=p[C];p[R]=function(){if(!E.enabled)return X.apply(p,arguments);let me=new Array(arguments.length);for(let Qe=0;Qe<arguments.length;Qe++)me[Qe]=arguments[Qe];let Ee=me[0];if(typeof Ee!="function")throw new TypeError('"callback" argument must be a function');let Ie=new A,De=--E.counter,Ve;return b.init.call(Ie,De,0,null,null),me[0]=function(){v=Ve,b.pre.call(Ie,De);let Qe=!0;try{Ee.apply(this,arguments),Qe=!1}finally{Qe&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",function(){b.post.call(Ie,De,!0),O.delete(Ve),b.destroy.call(null,De)})}b.post.call(Ie,De,!1),v=null,(z||y)&&(y=!1,O.delete(Ve),b.destroy.call(null,De))},Ve=X.apply(p,me),O.set(Ve,De),Ve},p[C]=function(me){if(v===me&&me!==null)y=!0;else if(O.has(me)){let Ee=O.get(me);O.delete(me),b.destroy.call(null,Ee)}Y.apply(p,arguments)}}}),kd=I((a,k)=>{k.exports={name:"async-hook-jl",description:"Inspect the life of handle objects in node",version:"1.7.6",author:"Andreas Madsen <amwebdk@gmail.com>",main:"./index.js",scripts:{test:"node ./test/runner.js && eslint ."},repository:{type:"git",url:"git://github.com/jeff-lewis/async-hook-jl.git"},keywords:["async","async hooks","inspect","async wrap"],license:"MIT",dependencies:{"stack-chain":"^1.3.7"},devDependencies:{async:"1.5.x","cli-color":"1.1.x",eslint:"^3.4.0",endpoint:"0.4.x"},engines:{node:"^4.7 || >=6.9 || >=7.3"}}}),bp=I((a,k)=>{"use strict";var p=process.binding("async_wrap"),g=p.Providers.TIMERWRAP,_={nextTick:gp(),promise:yp(),timers:wp()},m=new Set;function u(){this.enabled=!1,this.counter=0}function l(){let y=this.initFns=[],f=this.preFns=[],b=this.postFns=[],E=this.destroyFns=[];this.init=function(R,C,A,O){if(C===g){m.add(R);return}for(let z of y)z(R,this,C,A,O)},this.pre=function(R){if(!m.has(R))for(let C of f)C(R,this)},this.post=function(R,C){if(!m.has(R))for(let A of b)A(R,this,C)},this.destroy=function(R){if(m.has(R)){m.delete(R);return}for(let C of E)C(R)}}l.prototype.add=function(y){y.init&&this.initFns.push(y.init),y.pre&&this.preFns.push(y.pre),y.post&&this.postFns.push(y.post),y.destroy&&this.destroyFns.push(y.destroy)};function c(y,f){let b=y.indexOf(f);b!==-1&&y.splice(b,1)}l.prototype.remove=function(y){y.init&&c(this.initFns,y.init),y.pre&&c(this.preFns,y.pre),y.post&&c(this.postFns,y.post),y.destroy&&c(this.destroyFns,y.destroy)};function v(){this._state=new u,this._hooks=new l,this.version=kd().version,this.providers=p.Providers;for(let y of Object.keys(_))_[y].call(this);process.env.hasOwnProperty("NODE_ASYNC_HOOK_WARNING")&&console.warn("warning: you are using async-hook-jl which is unstable."),p.setupHooks({init:this._hooks.init,pre:this._hooks.pre,post:this._hooks.post,destroy:this._hooks.destroy})}k.exports=v,v.prototype.addHooks=function(y){this._hooks.add(y)},v.prototype.removeHooks=function(y){this._hooks.remove(y)},v.prototype.enable=function(){this._state.enabled=!0,p.enable()},v.prototype.disable=function(){this._state.enabled=!1,p.disable()}}),Rd=I((a,k)=>{k.exports={name:"stack-chain",description:"API for combining call site modifiers",version:"1.3.7",author:"Andreas Madsen <amwebdk@gmail.com>",scripts:{test:"tap ./test/simple"},repository:{type:"git",url:"git://github.com/AndreasMadsen/stack-chain.git"},keywords:["stack","chain","trace","call site","concat","format"],devDependencies:{tap:"2.x.x","uglify-js":"2.5.x"},license:"MIT"}}),_p=I((a,k)=>{function p(g){try{return Error.prototype.toString.call(g)}catch(_){try{return"<error: "+_+">"}catch(m){return"<error>"}}}k.exports=function(g,_){var m=[];m.push(p(g));for(var u=0;u<_.length;u++){var l=_[u],c;try{c=l.toString()}catch(v){try{c="<error: "+v+">"}catch(y){c="<error>"}}m.push(" at "+c)}return m.join(`
|
||
`)}}),$r=I((a,k)=>{var p=_p();function g(){this.extend=new u,this.filter=new u,this.format=new l,this.version=Rd().version}var _=!1;g.prototype.callSite=function f(b){b||(b={}),_=!0;var E={};Error.captureStackTrace(E,f);var R=E.stack;return _=!1,R=R.slice(b.slice||0),b.extend&&(R=this.extend._modify(E,R)),b.filter&&(R=this.filter._modify(E,R)),R};var m=new g;function u(){this._modifiers=[]}u.prototype._modify=function(f,b){for(var E=0,R=this._modifiers.length;E<R;E++)b=this._modifiers[E](f,b);return b},u.prototype.attach=function(f){this._modifiers.push(f)},u.prototype.deattach=function(f){var b=this._modifiers.indexOf(f);return b===-1?!1:(this._modifiers.splice(b,1),!0)};function l(){this._formater=p,this._previous=void 0}l.prototype.replace=function(f){f?this._formater=f:this.restore()},l.prototype.restore=function(){this._formater=p,this._previous=void 0},l.prototype._backup=function(){this._previous=this._formater},l.prototype._roolback=function(){this._previous===p?this.replace(void 0):this.replace(this._previous),this._previous=void 0},Error.prepareStackTrace&&m.format.replace(Error.prepareStackTrace);var c=!1;function v(f,b){if(_)return b;if(c)return p(f,b);var E=b.concat();E=m.extend._modify(f,E),E=m.filter._modify(f,E),E=E.slice(0,Error.stackTraceLimit),Object.isExtensible(f)&&Object.getOwnPropertyDescriptor(f,"callSite")===void 0&&(f.callSite={original:b,mutated:E}),c=!0;var R=m.format._formater(f,E);return c=!1,R}Object.defineProperty(Error,"prepareStackTrace",{get:function(){return v},set:function(f){f===v?m.format._roolback():(m.format._backup(),m.format.replace(f))}});function y(){return this.stack,this.callSite}Object.defineProperty(Error.prototype,"callSite",{get:y,set:function(f){Object.defineProperty(this,"callSite",{value:f,writable:!0,configurable:!0})},configurable:!0}),k.exports=m}),Oa=I((a,k)=>{if(global._stackChain)if(global._stackChain.version===Rd().version)k.exports=global._stackChain;else throw new Error("Conflicting version of stack-chain found");else k.exports=global._stackChain=$r()}),Bo=I((a,k)=>{"use strict";var p=bp();if(global._asyncHook)if(global._asyncHook.version===kd().version)k.exports=global._asyncHook;else throw new Error("Conflicting version of async-hook-jl found");else Oa().filter.attach(function(g,_){return _.filter(function(m){let u=m.getFileName();return!(u&&u.slice(0,__dirname.length)===__dirname)})}),k.exports=global._asyncHook=new p}),Cd=I((a,k)=>{"use strict";var p=U(3837),g=U(9491),_=Wn(),m=Bo(),u="cls@contexts",l="error@context",c=[];for(let Y in m.providers)c[m.providers[Y]]=Y;var v=process.env.DEBUG_CLS_HOOKED,y=-1;k.exports={getNamespace:b,createNamespace:E,destroyNamespace:R,reset:C,ERROR_SYMBOL:l};function f(Y){this.name=Y,this.active=null,this._set=[],this.id=null,this._contexts=new Map}f.prototype.set=function(Y,me){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return v&&A(" SETTING KEY:"+Y+"="+me+" in ns:"+this.name+" uid:"+y+" active:"+p.inspect(this.active,!0)),this.active[Y]=me,me},f.prototype.get=function(Y){if(!this.active){v&&A(" GETTING KEY:"+Y+"=undefined "+this.name+" uid:"+y+" active:"+p.inspect(this.active,!0));return}return v&&A(" GETTING KEY:"+Y+"="+this.active[Y]+" "+this.name+" uid:"+y+" active:"+p.inspect(this.active,!0)),this.active[Y]},f.prototype.createContext=function(){v&&A(" CREATING Context: "+this.name+" uid:"+y+" len:"+this._set.length+" active:"+p.inspect(this.active,!0,2,!0));let Y=Object.create(this.active?this.active:Object.prototype);return Y._ns_name=this.name,Y.id=y,v&&A(" CREATED Context: "+this.name+" uid:"+y+" len:"+this._set.length+" context:"+p.inspect(Y,!0,2,!0)),Y},f.prototype.run=function(Y){let me=this.createContext();this.enter(me);try{return v&&A(" BEFORE RUN: "+this.name+" uid:"+y+" len:"+this._set.length+" "+p.inspect(me)),Y(me),me}catch(Ee){throw Ee&&(Ee[l]=me),Ee}finally{v&&A(" AFTER RUN: "+this.name+" uid:"+y+" len:"+this._set.length+" "+p.inspect(me)),this.exit(me)}},f.prototype.runAndReturn=function(Y){var me;return this.run(function(Ee){me=Y(Ee)}),me},f.prototype.runPromise=function(Y){let me=this.createContext();this.enter(me);let Ee=Y(me);if(!Ee||!Ee.then||!Ee.catch)throw new Error("fn must return a promise.");return v&&A(" BEFORE runPromise: "+this.name+" uid:"+y+" len:"+this._set.length+" "+p.inspect(me)),Ee.then(Ie=>(v&&A(" AFTER runPromise: "+this.name+" uid:"+y+" len:"+this._set.length+" "+p.inspect(me)),this.exit(me),Ie)).catch(Ie=>{throw Ie[l]=me,v&&A(" AFTER runPromise: "+this.name+" uid:"+y+" len:"+this._set.length+" "+p.inspect(me)),this.exit(me),Ie})},f.prototype.bind=function(Y,me){me||(this.active?me=this.active:me=this.createContext());let Ee=this;return function(){Ee.enter(me);try{return Y.apply(this,arguments)}catch(Ie){throw Ie&&(Ie[l]=me),Ie}finally{Ee.exit(me)}}},f.prototype.enter=function(Y){g.ok(Y,"context must be provided for entering"),v&&A(" ENTER "+this.name+" uid:"+y+" len:"+this._set.length+" context: "+p.inspect(Y)),this._set.push(this.active),this.active=Y},f.prototype.exit=function(Y){if(g.ok(Y,"context must be provided for exiting"),v&&A(" EXIT "+this.name+" uid:"+y+" len:"+this._set.length+" context: "+p.inspect(Y)),this.active===Y){g.ok(this._set.length,"can't remove top context"),this.active=this._set.pop();return}let me=this._set.lastIndexOf(Y);me<0?(v&&A("??ERROR?? context exiting but not entered - ignoring: "+p.inspect(Y)),g.ok(me>=0,`context not currently entered; can't exit.
|
||
`+p.inspect(this)+`
|
||
`+p.inspect(Y))):(g.ok(me,"can't remove top context"),this._set.splice(me,1))},f.prototype.bindEmitter=function(Y){g.ok(Y.on&&Y.addListener&&Y.emit,"can only bind real EEs");let me=this,Ee="context@"+this.name;function Ie(Ve){!Ve||(Ve[u]||(Ve[u]=Object.create(null)),Ve[u][Ee]={namespace:me,context:me.active})}function De(Ve){if(!(Ve&&Ve[u]))return Ve;let Qe=Ve,Xe=Ve[u];return Object.keys(Xe).forEach(function(it){let Nt=Xe[it];Qe=Nt.namespace.bind(Qe,Nt.context)}),Qe}_(Y,Ie,De)},f.prototype.fromException=function(Y){return Y[l]};function b(Y){return process.namespaces[Y]}function E(Y){g.ok(Y,"namespace must be given a name."),v&&A("CREATING NAMESPACE "+Y);let me=new f(Y);return me.id=y,m.addHooks({init(Ee,Ie,De,Ve,Qe){y=Ee,Ve?(me._contexts.set(Ee,me._contexts.get(Ve)),v&&A("PARENTID: "+Y+" uid:"+Ee+" parent:"+Ve+" provider:"+De)):me._contexts.set(y,me.active),v&&A("INIT "+Y+" uid:"+Ee+" parent:"+Ve+" provider:"+c[De]+" active:"+p.inspect(me.active,!0))},pre(Ee,Ie){y=Ee;let De=me._contexts.get(Ee);De?(v&&A(" PRE "+Y+" uid:"+Ee+" handle:"+O(Ie)+" context:"+p.inspect(De)),me.enter(De)):v&&A(" PRE MISSING CONTEXT "+Y+" uid:"+Ee+" handle:"+O(Ie))},post(Ee,Ie){y=Ee;let De=me._contexts.get(Ee);De?(v&&A(" POST "+Y+" uid:"+Ee+" handle:"+O(Ie)+" context:"+p.inspect(De)),me.exit(De)):v&&A(" POST MISSING CONTEXT "+Y+" uid:"+Ee+" handle:"+O(Ie))},destroy(Ee){y=Ee,v&&A("DESTROY "+Y+" uid:"+Ee+" context:"+p.inspect(me._contexts.get(y))+" active:"+p.inspect(me.active,!0)),me._contexts.delete(Ee)}}),process.namespaces[Y]=me,me}function R(Y){let me=b(Y);g.ok(me,`can't delete nonexistent namespace! "`+Y+'"'),g.ok(me.id,"don't assign to process.namespaces directly! "+p.inspect(me)),process.namespaces[Y]=null}function C(){process.namespaces&&Object.keys(process.namespaces).forEach(function(Y){R(Y)}),process.namespaces=Object.create(null)}process.namespaces={},m._state&&!m._state.enabled&&m.enable();function A(Y){process.env.DEBUG&&process._rawDebug(Y)}function O(Y){if(!Y)return Y;if(typeof Y=="function")return Y.name?Y.name:(Y.toString().trim().match(/^function\s*([^\s(]+)/)||[])[1];if(Y.constructor&&Y.constructor.name)return Y.constructor.name}if(v){z=Oa();for(X in z.filter._modifiers)z.filter.deattach(X)}var z,X}),Fi=I((a,k)=>{"use strict";var p=fp();process&&p.gte(process.versions.node,"8.0.0")?k.exports=vp():k.exports=Cd()}),Vt=I((a,k)=>{a=k.exports=$e;var p;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?p=function(){var w=Array.prototype.slice.call(arguments,0);w.unshift("SEMVER"),console.log.apply(console,w)}:p=function(){},a.SEMVER_SPEC_VERSION="2.0.0";var g=256,_=Number.MAX_SAFE_INTEGER||9007199254740991,m=16,u=a.re=[],l=a.src=[],c=0,v=c++;l[v]="0|[1-9]\\d*";var y=c++;l[y]="[0-9]+";var f=c++;l[f]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var b=c++;l[b]="("+l[v]+")\\.("+l[v]+")\\.("+l[v]+")";var E=c++;l[E]="("+l[y]+")\\.("+l[y]+")\\.("+l[y]+")";var R=c++;l[R]="(?:"+l[v]+"|"+l[f]+")";var C=c++;l[C]="(?:"+l[y]+"|"+l[f]+")";var A=c++;l[A]="(?:-("+l[R]+"(?:\\."+l[R]+")*))";var O=c++;l[O]="(?:-?("+l[C]+"(?:\\."+l[C]+")*))";var z=c++;l[z]="[0-9A-Za-z-]+";var X=c++;l[X]="(?:\\+("+l[z]+"(?:\\."+l[z]+")*))";var Y=c++,me="v?"+l[b]+l[A]+"?"+l[X]+"?";l[Y]="^"+me+"$";var Ee="[v=\\s]*"+l[E]+l[O]+"?"+l[X]+"?",Ie=c++;l[Ie]="^"+Ee+"$";var De=c++;l[De]="((?:<|>)?=?)";var Ve=c++;l[Ve]=l[y]+"|x|X|\\*";var Qe=c++;l[Qe]=l[v]+"|x|X|\\*";var Xe=c++;l[Xe]="[v=\\s]*("+l[Qe]+")(?:\\.("+l[Qe]+")(?:\\.("+l[Qe]+")(?:"+l[A]+")?"+l[X]+"?)?)?";var it=c++;l[it]="[v=\\s]*("+l[Ve]+")(?:\\.("+l[Ve]+")(?:\\.("+l[Ve]+")(?:"+l[O]+")?"+l[X]+"?)?)?";var Nt=c++;l[Nt]="^"+l[De]+"\\s*"+l[Xe]+"$";var yt=c++;l[yt]="^"+l[De]+"\\s*"+l[it]+"$";var Qt=c++;l[Qt]="(?:^|[^\\d])(\\d{1,"+m+"})(?:\\.(\\d{1,"+m+"}))?(?:\\.(\\d{1,"+m+"}))?(?:$|[^\\d])";var ht=c++;l[ht]="(?:~>?)";var He=c++;l[He]="(\\s*)"+l[ht]+"\\s+",u[He]=new RegExp(l[He],"g");var et="$1~",Je=c++;l[Je]="^"+l[ht]+l[Xe]+"$";var at=c++;l[at]="^"+l[ht]+l[it]+"$";var ct=c++;l[ct]="(?:\\^)";var Et=c++;l[Et]="(\\s*)"+l[ct]+"\\s+",u[Et]=new RegExp(l[Et],"g");var ut="$1^",qt=c++;l[qt]="^"+l[ct]+l[Xe]+"$";var oi=c++;l[oi]="^"+l[ct]+l[it]+"$";var ii=c++;l[ii]="^"+l[De]+"\\s*("+Ee+")$|^$";var Wt=c++;l[Wt]="^"+l[De]+"\\s*("+me+")$|^$";var Ot=c++;l[Ot]="(\\s*)"+l[De]+"\\s*("+Ee+"|"+l[Xe]+")",u[Ot]=new RegExp(l[Ot],"g");var Si="$1$2$3",Ri=c++;l[Ri]="^\\s*("+l[Xe]+")\\s+-\\s+("+l[Xe]+")\\s*$";var st=c++;l[st]="^\\s*("+l[it]+")\\s+-\\s+("+l[it]+")\\s*$";var pt=c++;for(l[pt]="(<|>)?=?\\s*\\*",St=0;St<c;St++)p(St,l[St]),u[St]||(u[St]=new RegExp(l[St]));var St;a.parse=Ft;function Ft(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof $e)return w;if(typeof w!="string"||w.length>g)return null;var F=N.loose?u[Ie]:u[Y];if(!F.test(w))return null;try{return new $e(w,N)}catch(ne){return null}}a.valid=Yn;function Yn(w,N){var F=Ft(w,N);return F?F.version:null}a.clean=Xn;function Xn(w,N){var F=Ft(w.trim().replace(/^[=v]+/,""),N);return F?F.version:null}a.SemVer=$e;function $e(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof $e){if(w.loose===N.loose)return w;w=w.version}else if(typeof w!="string")throw new TypeError("Invalid Version: "+w);if(w.length>g)throw new TypeError("version is longer than "+g+" characters");if(!(this instanceof $e))return new $e(w,N);p("SemVer",w,N),this.options=N,this.loose=!!N.loose;var F=w.trim().match(N.loose?u[Ie]:u[Y]);if(!F)throw new TypeError("Invalid Version: "+w);if(this.raw=w,this.major=+F[1],this.minor=+F[2],this.patch=+F[3],this.major>_||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_||this.patch<0)throw new TypeError("Invalid patch version");F[4]?this.prerelease=F[4].split(".").map(function(ne){if(/^[0-9]+$/.test(ne)){var de=+ne;if(de>=0&&de<_)return de}return ne}):this.prerelease=[],this.build=F[5]?F[5].split("."):[],this.format()}$e.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},$e.prototype.toString=function(){return this.version},$e.prototype.compare=function(w){return p("SemVer.compare",this.version,this.options,w),w instanceof $e||(w=new $e(w,this.options)),this.compareMain(w)||this.comparePre(w)},$e.prototype.compareMain=function(w){return w instanceof $e||(w=new $e(w,this.options)),hi(this.major,w.major)||hi(this.minor,w.minor)||hi(this.patch,w.patch)},$e.prototype.comparePre=function(w){if(w instanceof $e||(w=new $e(w,this.options)),this.prerelease.length&&!w.prerelease.length)return-1;if(!this.prerelease.length&&w.prerelease.length)return 1;if(!this.prerelease.length&&!w.prerelease.length)return 0;var N=0;do{var F=this.prerelease[N],ne=w.prerelease[N];if(p("prerelease compare",N,F,ne),F===void 0&&ne===void 0)return 0;if(ne===void 0)return 1;if(F===void 0)return-1;if(F!==ne)return hi(F,ne)}while(++N)},$e.prototype.inc=function(w,N){switch(w){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",N);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",N);break;case"prepatch":this.prerelease.length=0,this.inc("patch",N),this.inc("pre",N);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",N),this.inc("pre",N);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var F=this.prerelease.length;--F>=0;)typeof this.prerelease[F]=="number"&&(this.prerelease[F]++,F=-2);F===-1&&this.prerelease.push(0)}N&&(this.prerelease[0]===N?isNaN(this.prerelease[1])&&(this.prerelease=[N,0]):this.prerelease=[N,0]);break;default:throw new Error("invalid increment argument: "+w)}return this.format(),this.raw=this.version,this},a.inc=rn;function rn(w,N,F,ne){typeof F=="string"&&(ne=F,F=void 0);try{return new $e(w,F).inc(N,ne).version}catch(de){return null}}a.diff=_n;function _n(w,N){if(Oi(w,N))return null;var F=Ft(w),ne=Ft(N),de="";if(F.prerelease.length||ne.prerelease.length){de="pre";var ge="prerelease"}for(var we in F)if((we==="major"||we==="minor"||we==="patch")&&F[we]!==ne[we])return de+we;return ge}a.compareIdentifiers=hi;var or=/^[0-9]+$/;function hi(w,N){var F=or.test(w),ne=or.test(N);return F&&ne&&(w=+w,N=+N),w===N?0:F&&!ne?-1:ne&&!F?1:w<N?-1:1}a.rcompareIdentifiers=kr;function kr(w,N){return hi(N,w)}a.major=Ci;function Ci(w,N){return new $e(w,N).major}a.minor=Hr;function Hr(w,N){return new $e(w,N).minor}a.patch=nn;function nn(w,N){return new $e(w,N).patch}a.compare=Bt;function Bt(w,N,F){return new $e(w,F).compare(new $e(N,F))}a.compareLoose=En;function En(w,N){return Bt(w,N,!0)}a.rcompare=Ti;function Ti(w,N,F){return Bt(N,w,F)}a.sort=Rr;function Rr(w,N){return w.sort(function(F,ne){return a.compare(F,ne,N)})}a.rsort=an;function an(w,N){return w.sort(function(F,ne){return a.rcompare(F,ne,N)})}a.gt=At;function At(w,N,F){return Bt(w,N,F)>0}a.lt=Ii;function Ii(w,N,F){return Bt(w,N,F)<0}a.eq=Oi;function Oi(w,N,F){return Bt(w,N,F)===0}a.neq=Ji;function Ji(w,N,F){return Bt(w,N,F)!==0}a.gte=lr;function lr(w,N,F){return Bt(w,N,F)>=0}a.lte=Ni;function Ni(w,N,F){return Bt(w,N,F)<=0}a.cmp=li;function li(w,N,F,ne){switch(N){case"===":return typeof w=="object"&&(w=w.version),typeof F=="object"&&(F=F.version),w===F;case"!==":return typeof w=="object"&&(w=w.version),typeof F=="object"&&(F=F.version),w!==F;case"":case"=":case"==":return Oi(w,F,ne);case"!=":return Ji(w,F,ne);case">":return At(w,F,ne);case">=":return lr(w,F,ne);case"<":return Ii(w,F,ne);case"<=":return Ni(w,F,ne);default:throw new TypeError("Invalid operator: "+N)}}a.Comparator=Tt;function Tt(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof Tt){if(w.loose===!!N.loose)return w;w=w.value}if(!(this instanceof Tt))return new Tt(w,N);p("comparator",w,N),this.options=N,this.loose=!!N.loose,this.parse(w),this.semver===ki?this.value="":this.value=this.operator+this.semver.version,p("comp",this)}var ki={};Tt.prototype.parse=function(w){var N=this.options.loose?u[ii]:u[Wt],F=w.match(N);if(!F)throw new TypeError("Invalid comparator: "+w);this.operator=F[1],this.operator==="="&&(this.operator=""),F[2]?this.semver=new $e(F[2],this.options.loose):this.semver=ki},Tt.prototype.toString=function(){return this.value},Tt.prototype.test=function(w){return p("Comparator.test",w,this.options.loose),this.semver===ki?!0:(typeof w=="string"&&(w=new $e(w,this.options)),li(w,this.operator,this.semver,this.options))},Tt.prototype.intersects=function(w,N){if(!(w instanceof Tt))throw new TypeError("a Comparator is required");(!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1});var F;if(this.operator==="")return F=new rt(w.value,N),ji(this.value,F,N);if(w.operator==="")return F=new rt(this.value,N),ji(w.semver,F,N);var ne=(this.operator===">="||this.operator===">")&&(w.operator===">="||w.operator===">"),de=(this.operator==="<="||this.operator==="<")&&(w.operator==="<="||w.operator==="<"),ge=this.semver.version===w.semver.version,we=(this.operator===">="||this.operator==="<=")&&(w.operator===">="||w.operator==="<="),Be=li(this.semver,"<",w.semver,N)&&(this.operator===">="||this.operator===">")&&(w.operator==="<="||w.operator==="<"),Ge=li(this.semver,">",w.semver,N)&&(this.operator==="<="||this.operator==="<")&&(w.operator===">="||w.operator===">");return ne||de||ge&&we||Be||Ge},a.Range=rt;function rt(w,N){if((!N||typeof N!="object")&&(N={loose:!!N,includePrerelease:!1}),w instanceof rt)return w.loose===!!N.loose&&w.includePrerelease===!!N.includePrerelease?w:new rt(w.raw,N);if(w instanceof Tt)return new rt(w.value,N);if(!(this instanceof rt))return new rt(w,N);if(this.options=N,this.loose=!!N.loose,this.includePrerelease=!!N.includePrerelease,this.raw=w,this.set=w.split(/\s*\|\|\s*/).map(function(F){return this.parseRange(F.trim())},this).filter(function(F){return F.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+w);this.format()}rt.prototype.format=function(){return this.range=this.set.map(function(w){return w.join(" ").trim()}).join("||").trim(),this.range},rt.prototype.toString=function(){return this.range},rt.prototype.parseRange=function(w){var N=this.options.loose;w=w.trim();var F=N?u[st]:u[Ri];w=w.replace(F,Rn),p("hyphen replace",w),w=w.replace(u[Ot],Si),p("comparator trim",w,u[Ot]),w=w.replace(u[He],et),w=w.replace(u[Et],ut),w=w.split(/\s+/).join(" ");var ne=N?u[ii]:u[Wt],de=w.split(" ").map(function(ge){return dr(ge,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(de=de.filter(function(ge){return!!ge.match(ne)})),de=de.map(function(ge){return new Tt(ge,this.options)},this),de},rt.prototype.intersects=function(w,N){if(!(w instanceof rt))throw new TypeError("a Range is required");return this.set.some(function(F){return F.every(function(ne){return w.set.some(function(de){return de.every(function(ge){return ne.intersects(ge,N)})})})})},a.toComparators=sn;function sn(w,N){return new rt(w,N).set.map(function(F){return F.map(function(ne){return ne.value}).join(" ").trim().split(" ")})}function dr(w,N){return p("comp",w,N),w=Tn(w,N),p("caret",w),w=ur(w,N),p("tildes",w),w=ln(w,N),p("xrange",w),w=Zi(w,N),p("stars",w),w}function vt(w){return!w||w.toLowerCase()==="x"||w==="*"}function ur(w,N){return w.trim().split(/\s+/).map(function(F){return Sn(F,N)}).join(" ")}function Sn(w,N){var F=N.loose?u[at]:u[Je];return w.replace(F,function(ne,de,ge,we,Be){p("tilde",w,ne,de,ge,we,Be);var Ge;return vt(de)?Ge="":vt(ge)?Ge=">="+de+".0.0 <"+(+de+1)+".0.0":vt(we)?Ge=">="+de+"."+ge+".0 <"+de+"."+(+ge+1)+".0":Be?(p("replaceTilde pr",Be),Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+de+"."+(+ge+1)+".0"):Ge=">="+de+"."+ge+"."+we+" <"+de+"."+(+ge+1)+".0",p("tilde return",Ge),Ge})}function Tn(w,N){return w.trim().split(/\s+/).map(function(F){return on(F,N)}).join(" ")}function on(w,N){p("caret",w,N);var F=N.loose?u[oi]:u[qt];return w.replace(F,function(ne,de,ge,we,Be){p("caret",w,ne,de,ge,we,Be);var Ge;return vt(de)?Ge="":vt(ge)?Ge=">="+de+".0.0 <"+(+de+1)+".0.0":vt(we)?de==="0"?Ge=">="+de+"."+ge+".0 <"+de+"."+(+ge+1)+".0":Ge=">="+de+"."+ge+".0 <"+(+de+1)+".0.0":Be?(p("replaceCaret pr",Be),de==="0"?ge==="0"?Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+de+"."+ge+"."+(+we+1):Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+de+"."+(+ge+1)+".0":Ge=">="+de+"."+ge+"."+we+"-"+Be+" <"+(+de+1)+".0.0"):(p("no pr"),de==="0"?ge==="0"?Ge=">="+de+"."+ge+"."+we+" <"+de+"."+ge+"."+(+we+1):Ge=">="+de+"."+ge+"."+we+" <"+de+"."+(+ge+1)+".0":Ge=">="+de+"."+ge+"."+we+" <"+(+de+1)+".0.0"),p("caret return",Ge),Ge})}function ln(w,N){return p("replaceXRanges",w,N),w.split(/\s+/).map(function(F){return kn(F,N)}).join(" ")}function kn(w,N){w=w.trim();var F=N.loose?u[yt]:u[Nt];return w.replace(F,function(ne,de,ge,we,Be,Ge){p("xRange",w,ne,de,ge,we,Be,Ge);var $t=vt(ge),xt=$t||vt(we),Pt=xt||vt(Be),Dt=Pt;return de==="="&&Dt&&(de=""),$t?de===">"||de==="<"?ne="<0.0.0":ne="*":de&&Dt?(xt&&(we=0),Be=0,de===">"?(de=">=",xt?(ge=+ge+1,we=0,Be=0):(we=+we+1,Be=0)):de==="<="&&(de="<",xt?ge=+ge+1:we=+we+1),ne=de+ge+"."+we+"."+Be):xt?ne=">="+ge+".0.0 <"+(+ge+1)+".0.0":Pt&&(ne=">="+ge+"."+we+".0 <"+ge+"."+(+we+1)+".0"),p("xRange return",ne),ne})}function Zi(w,N){return p("replaceStars",w,N),w.trim().replace(u[pt],"")}function Rn(w,N,F,ne,de,ge,we,Be,Ge,$t,xt,Pt,Dt){return vt(F)?N="":vt(ne)?N=">="+F+".0.0":vt(de)?N=">="+F+"."+ne+".0":N=">="+N,vt(Ge)?Be="":vt($t)?Be="<"+(+Ge+1)+".0.0":vt(xt)?Be="<"+Ge+"."+(+$t+1)+".0":Pt?Be="<="+Ge+"."+$t+"."+xt+"-"+Pt:Be="<="+Be,(N+" "+Be).trim()}rt.prototype.test=function(w){if(!w)return!1;typeof w=="string"&&(w=new $e(w,this.options));for(var N=0;N<this.set.length;N++)if(Cn(this.set[N],w,this.options))return!0;return!1};function Cn(w,N,F){for(var ne=0;ne<w.length;ne++)if(!w[ne].test(N))return!1;if(N.prerelease.length&&!F.includePrerelease){for(ne=0;ne<w.length;ne++)if(p(w[ne].semver),w[ne].semver!==ki&&w[ne].semver.prerelease.length>0){var de=w[ne].semver;if(de.major===N.major&&de.minor===N.minor&&de.patch===N.patch)return!0}return!1}return!0}a.satisfies=ji;function ji(w,N,F){try{N=new rt(N,F)}catch(ne){return!1}return N.test(w)}a.maxSatisfying=Nn;function Nn(w,N,F){var ne=null,de=null;try{var ge=new rt(N,F)}catch(we){return null}return w.forEach(function(we){ge.test(we)&&(!ne||de.compare(we)===-1)&&(ne=we,de=new $e(ne,F))}),ne}a.minSatisfying=Pn;function Pn(w,N,F){var ne=null,de=null;try{var ge=new rt(N,F)}catch(we){return null}return w.forEach(function(we){ge.test(we)&&(!ne||de.compare(we)===1)&&(ne=we,de=new $e(ne,F))}),ne}a.minVersion=Cr;function Cr(w,N){w=new rt(w,N);var F=new $e("0.0.0");if(w.test(F)||(F=new $e("0.0.0-0"),w.test(F)))return F;F=null;for(var ne=0;ne<w.set.length;++ne){var de=w.set[ne];de.forEach(function(ge){var we=new $e(ge.semver.version);switch(ge.operator){case">":we.prerelease.length===0?we.patch++:we.prerelease.push(0),we.raw=we.format();case"":case">=":(!F||At(F,we))&&(F=we);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+ge.operator)}})}return F&&w.test(F)?F:null}a.validRange=Dn;function Dn(w,N){try{return new rt(w,N).range||"*"}catch(F){return null}}a.ltr=An;function An(w,N,F){return pr(w,N,"<",F)}a.gtr=xr;function xr(w,N,F){return pr(w,N,">",F)}a.outside=pr;function pr(w,N,F,ne){w=new $e(w,ne),N=new rt(N,ne);var de,ge,we,Be,Ge;switch(F){case">":de=At,ge=Ni,we=Ii,Be=">",Ge=">=";break;case"<":de=Ii,ge=lr,we=At,Be="<",Ge="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ji(w,N,ne))return!1;for(var $t=0;$t<N.set.length;++$t){var xt=N.set[$t],Pt=null,Dt=null;if(xt.forEach(function(ri){ri.semver===ki&&(ri=new Tt(">=0.0.0")),Pt=Pt||ri,Dt=Dt||ri,de(ri.semver,Pt.semver,ne)?Pt=ri:we(ri.semver,Dt.semver,ne)&&(Dt=ri)}),Pt.operator===Be||Pt.operator===Ge||(!Dt.operator||Dt.operator===Be)&&ge(w,Dt.semver)||Dt.operator===Ge&&we(w,Dt.semver))return!1}return!0}a.prerelease=In;function In(w,N){var F=Ft(w,N);return F&&F.prerelease.length?F.prerelease:null}a.intersects=cr;function cr(w,N,F){return w=new rt(w,F),N=new rt(N,F),w.intersects(N)}a.coerce=vi;function vi(w){if(w instanceof $e)return w;if(typeof w!="string")return null;var N=w.match(u[Qt]);return N==null?null:Ft(N[1]+"."+(N[2]||"0")+"."+(N[3]||"0"))}}),Ho=I((a,k)=>{var p=pa().wrap,g=1<<0,_=1<<1,m=1<<2,u=1<<3,l=[],c=0,v=!1,y=[],f,b;function E(Ie,De){var Ve=Ie.length,Qe=De.length,Xe=[];if(Ve===0&&Qe===0)return Xe;for(var it=0;it<Ve;it++)Xe[it]=Ie[it];if(Qe===0)return Xe;for(var Nt=0;Nt<Qe;Nt++){var yt=!0;for(it=0;it<Ve;it++)if(Ie[it].uid===De[Nt].uid){yt=!1;break}yt&&Xe.push(De[Nt])}return Xe}process._fatalException?(R=!1,f=function(Ie){var De=l.length;if(R||De===0)return!1;var Ve=!1;R=!0;for(var Qe=0;Qe<De;++Qe){var Xe=l[Qe];if((Xe.flags&u)!=0){var it=C&&C[Xe.uid];Ve=Xe.error(it,Ie)||Ve}}return R=!1,y.length>0&&(l=y.pop()),C=void 0,Ve&&!v},b=function(Ie,De,Ve){var Qe=[];v=!0;for(var Xe=0;Xe<Ve;++Xe){var it=De[Xe];if(Qe[it.uid]=it.data,(it.flags&g)!=0){var Nt=it.create(it.data);Nt!==void 0&&(Qe[it.uid]=Nt)}}return v=!1,function(){C=Qe,y.push(l),l=E(De,l),v=!0;for(var yt=0;yt<Ve;++yt)(De[yt].flags&_)>0&&De[yt].before(this,Qe[De[yt].uid]);v=!1;var Qt=Ie.apply(this,arguments);for(v=!0,yt=0;yt<Ve;++yt)(De[yt].flags&m)>0&&De[yt].after(this,Qe[De[yt].uid]);return v=!1,l=y.pop(),C=void 0,Qt}},p(process,"_fatalException",function(Ie){return function(De){return f(De)||Ie(De)}})):(A=!1,f=function(Ie){if(A)throw Ie;for(var De=!1,Ve=l.length,Qe=0;Qe<Ve;++Qe){var Xe=l[Qe];(Xe.flags&u)!=0&&(De=Xe.error(null,Ie)||De)}if(!De&&v)throw Ie},b=function(Ie,De,Ve){var Qe=[];v=!0;for(var Xe=0;Xe<Ve;++Xe){var it=De[Xe];if(Qe[it.uid]=it.data,(it.flags&g)!=0){var Nt=it.create(it.data);Nt!==void 0&&(Qe[it.uid]=Nt)}}return v=!1,function(){var yt=!1,Qt=!1;y.push(l),l=E(De,l),v=!0;for(var ht=0;ht<Ve;++ht)(De[ht].flags&_)>0&&De[ht].before(this,Qe[De[ht].uid]);v=!1;var He;try{He=Ie.apply(this,arguments)}catch(et){yt=!0;for(var ht=0;ht<Ve;++ht)if((l[ht].flags&u)!=0)try{Qt=l[ht].error(Qe[De[ht].uid],et)||Qt}catch(at){throw A=!0,at}if(!Qt)throw process.removeListener("uncaughtException",f),process._originalNextTick(function(){process.addListener("uncaughtException",f)}),et}finally{if(!yt||Qt){for(v=!0,ht=0;ht<Ve;++ht)(De[ht].flags&m)>0&&De[ht].after(this,Qe[De[ht].uid]);v=!1}l=y.pop()}return He}},process.addListener("uncaughtException",f));var R,C,A;function O(Ie,De,Ve){v=!0;for(var Qe=0;Qe<Ve;++Qe){var Xe=De[Qe];Xe.create&&Xe.create(Xe.data)}return v=!1,function(){y.push(l),l=E(De,l);var it=Ie.apply(this,arguments);return l=y.pop(),it}}function z(Ie){var De=l.length;if(De===0)return Ie;for(var Ve=l.slice(),Qe=0;Qe<De;++Qe)if(Ve[Qe].flags>0)return b(Ie,Ve,De);return O(Ie,Ve,De)}function X(Ie,De){typeof Ie.create=="function"&&(this.create=Ie.create,this.flags|=g),typeof Ie.before=="function"&&(this.before=Ie.before,this.flags|=_),typeof Ie.after=="function"&&(this.after=Ie.after,this.flags|=m),typeof Ie.error=="function"&&(this.error=Ie.error,this.flags|=u),this.uid=++c,this.data=De===void 0?null:De}X.prototype.create=void 0,X.prototype.before=void 0,X.prototype.after=void 0,X.prototype.error=void 0,X.prototype.data=void 0,X.prototype.uid=0,X.prototype.flags=0;function Y(Ie,De){if(typeof Ie!="object"||!Ie)throw new TypeError("callbacks argument must be an object");return Ie instanceof X?Ie:new X(Ie,De)}function me(Ie,De){var Ve;Ie instanceof X?Ve=Ie:Ve=Y(Ie,De);for(var Qe=!1,Xe=0;Xe<l.length;Xe++)if(Ve===l[Xe]){Qe=!0;break}return Qe||l.push(Ve),Ve}function Ee(Ie){for(var De=0;De<l.length;De++)if(Ie===l[De]){l.splice(De,1);break}}process.createAsyncListener=Y,process.addAsyncListener=me,process.removeAsyncListener=Ee,k.exports=z}),jo=I((a,k)=>{"use strict";k.exports=(p,g)=>class extends p{constructor(_){var m,u;super(c);var l=this;try{_.apply(m,u)}catch(v){u[1](v)}return l;function c(v,y){m=this,u=[f,b];function f(E){return g(l,!1),v(E)}function b(E){return g(l,!1),y(E)}}}}}),Ep=I(()=>{"use strict";if(process.addAsyncListener)throw new Error("Don't require polyfill unless needed");var a=pa(),k=Vt(),p=a.wrap,g=a.massWrap,_=Ho(),m=U(3837),u=k.gte(process.version,"6.0.0"),l=k.gte(process.version,"7.0.0"),c=k.gte(process.version,"8.0.0"),v=k.gte(process.version,"11.0.0"),y=U(1808);l&&!y._normalizeArgs?y._normalizeArgs=function(He){if(He.length===0)return[{},null];var et=He[0],Je={};typeof et=="object"&&et!==null?Je=et:ht(et)?Je.path=et:(Je.port=et,He.length>1&&typeof He[1]=="string"&&(Je.host=He[1]));var at=He[He.length-1];return typeof at!="function"?[Je,null]:[Je,at]}:!l&&!y._normalizeConnectArgs&&(y._normalizeConnectArgs=function(He){var et={};function Je(ct){return(ct=Number(ct))>=0?ct:!1}typeof He[0]=="object"&&He[0]!==null?et=He[0]:typeof He[0]=="string"&&Je(He[0])===!1?et.path=He[0]:(et.port=He[0],typeof He[1]=="string"&&(et.host=He[1]));var at=He[He.length-1];return typeof at=="function"?[et,at]:[et]}),"_setUpListenHandle"in y.Server.prototype?p(y.Server.prototype,"_setUpListenHandle",f):p(y.Server.prototype,"_listen2",f);function f(He){return function(){this.on("connection",function(et){et._handle&&(et._handle.onread=_(et._handle.onread))});try{return He.apply(this,arguments)}finally{this._handle&&this._handle.onconnection&&(this._handle.onconnection=_(this._handle.onconnection))}}}function b(He){if(He&&He._handle){var et=He._handle;et._originalOnread||(et._originalOnread=et.onread),et.onread=_(et._originalOnread)}}p(y.Socket.prototype,"connect",function(He){return function(){var et;c&&Array.isArray(arguments[0])&&Object.getOwnPropertySymbols(arguments[0]).length>0?et=arguments[0]:et=l?y._normalizeArgs(arguments):y._normalizeConnectArgs(arguments),et[1]&&(et[1]=_(et[1]));var Je=He.apply(this,et);return b(this),Je}});var E=U(3685);p(E.Agent.prototype,"addRequest",function(He){return function(et){var Je=et.onSocket;return et.onSocket=_(function(at){return b(at),Je.apply(this,arguments)}),He.apply(this,arguments)}});var R=U(2081);function C(He){Array.isArray(He.stdio)&&He.stdio.forEach(function(et){et&&et._handle&&(et._handle.onread=_(et._handle.onread),p(et._handle,"close",yt))}),He._handle&&(He._handle.onexit=_(He._handle.onexit))}R.ChildProcess?p(R.ChildProcess.prototype,"spawn",function(He){return function(){var et=He.apply(this,arguments);return C(this),et}}):g(R,["execFile","fork","spawn"],function(He){return function(){var et=He.apply(this,arguments);return C(et),et}}),process._fatalException||(process._originalNextTick=process.nextTick);var A=[];process._nextDomainTick&&A.push("_nextDomainTick"),process._tickDomainCallback&&A.push("_tickDomainCallback"),g(process,A,Nt),p(process,"nextTick",yt);var O=["setTimeout","setInterval"];global.setImmediate&&O.push("setImmediate");var z=U(9512),X=global.setTimeout===z.setTimeout;g(z,O,yt),X&&g(global,O,yt);var Y=U(9523);g(Y,["lookup","resolve","resolve4","resolve6","resolveCname","resolveMx","resolveNs","resolveTxt","resolveSrv","reverse"],Nt),Y.resolveNaptr&&p(Y,"resolveNaptr",Nt);var me=U(2048);g(me,["watch","rename","truncate","chown","fchown","chmod","fchmod","stat","lstat","fstat","link","symlink","readlink","realpath","unlink","rmdir","mkdir","readdir","close","open","utimes","futimes","fsync","write","read","readFile","writeFile","appendFile","watchFile","unwatchFile","exists"],Nt),me.lchown&&p(me,"lchown",Nt),me.lchmod&&p(me,"lchmod",Nt),me.ftruncate&&p(me,"ftruncate",Nt);var Ee;try{Ee=U(9796)}catch(He){}Ee&&Ee.Deflate&&Ee.Deflate.prototype&&(Ie=Object.getPrototypeOf(Ee.Deflate.prototype),Ie._transform?p(Ie,"_transform",Nt):Ie.write&&Ie.flush&&Ie.end&&g(Ie,["write","flush","end"],Nt));var Ie,De;try{De=U(6113)}catch(He){}De&&(Ve=["pbkdf2","randomBytes"],v||Ve.push("pseudoRandomBytes"),g(De,Ve,Nt));var Ve,Qe=!!global.Promise&&Promise.toString()==="function Promise() { [native code] }"&&Promise.toString.toString()==="function toString() { [native code] }";Qe&&(Xe=process.addAsyncListener({create:function(){Qe=!1}}),global.Promise.resolve(!0).then(function(){Qe=!1}),process.removeAsyncListener(Xe));var Xe;Qe&&it();function it(){var He=global.Promise;function et(ut){if(!(this instanceof et))return He(ut);if(typeof ut!="function")return new He(ut);var qt,oi,ii=new He(Wt);ii.__proto__=et.prototype;try{ut.apply(qt,oi)}catch(Ot){oi[1](Ot)}return ii;function Wt(Ot,Si){qt=this,oi=[Ri,st];function Ri(pt){return at(ii,!1),Ot(pt)}function st(pt){return at(ii,!1),Si(pt)}}}if(m.inherits(et,He),p(He.prototype,"then",Et),He.prototype.chain&&p(He.prototype,"chain",Et),u)global.Promise=jo()(He,at);else{var Je=["all","race","reject","resolve","accept","defer"];Je.forEach(function(ut){typeof He[ut]=="function"&&(et[ut]=He[ut])}),global.Promise=et}function at(ut,qt){(!ut.__asl_wrapper||qt)&&(ut.__asl_wrapper=_(ct))}function ct(ut,qt,oi,ii){var Wt;try{return Wt=qt.call(ut,oi),{returnVal:Wt,error:!1}}catch(Ot){return{errorVal:Ot,error:!0}}finally{Wt instanceof He?ii.__asl_wrapper=function(){var Ot=Wt.__asl_wrapper||ct;return Ot.apply(this,arguments)}:at(ii,!0)}}function Et(ut){return function(){var qt=this,oi=ut.apply(qt,Array.prototype.map.call(arguments,ii));return oi.__asl_wrapper=function(Wt,Ot,Si,Ri){return qt.__asl_wrapper?(qt.__asl_wrapper(Wt,function(){},null,oi),oi.__asl_wrapper(Wt,Ot,Si,Ri)):ct(Wt,Ot,Si,Ri)},oi;function ii(Wt){return typeof Wt!="function"?Wt:_(function(Ot){var Si=(qt.__asl_wrapper||ct)(this,Wt,Ot,oi);if(Si.error)throw Si.errorVal;return Si.returnVal})}}}}function Nt(He){var et=function(){var Je,at=arguments.length-1;if(typeof arguments[at]=="function"){Je=Array(arguments.length);for(var ct=0;ct<arguments.length-1;ct++)Je[ct]=arguments[ct];Je[at]=_(arguments[at])}return He.apply(this,Je||arguments)};switch(He.length){case 1:return function(Je){return arguments.length!==1?et.apply(this,arguments):(typeof Je=="function"&&(Je=_(Je)),He.call(this,Je))};case 2:return function(Je,at){return arguments.length!==2?et.apply(this,arguments):(typeof at=="function"&&(at=_(at)),He.call(this,Je,at))};case 3:return function(Je,at,ct){return arguments.length!==3?et.apply(this,arguments):(typeof ct=="function"&&(ct=_(ct)),He.call(this,Je,at,ct))};case 4:return function(Je,at,ct,Et){return arguments.length!==4?et.apply(this,arguments):(typeof Et=="function"&&(Et=_(Et)),He.call(this,Je,at,ct,Et))};case 5:return function(Je,at,ct,Et,ut){return arguments.length!==5?et.apply(this,arguments):(typeof ut=="function"&&(ut=_(ut)),He.call(this,Je,at,ct,Et,ut))};case 6:return function(Je,at,ct,Et,ut,qt){return arguments.length!==6?et.apply(this,arguments):(typeof qt=="function"&&(qt=_(qt)),He.call(this,Je,at,ct,Et,ut,qt))};default:return et}}function yt(He){var et=function(){var Je;if(typeof arguments[0]=="function"){Je=Array(arguments.length),Je[0]=_(arguments[0]);for(var at=1;at<arguments.length;at++)Je[at]=arguments[at]}return He.apply(this,Je||arguments)};switch(He.length){case 1:return function(Je){return arguments.length!==1?et.apply(this,arguments):(typeof Je=="function"&&(Je=_(Je)),He.call(this,Je))};case 2:return function(Je,at){return arguments.length!==2?et.apply(this,arguments):(typeof Je=="function"&&(Je=_(Je)),He.call(this,Je,at))};case 3:return function(Je,at,ct){return arguments.length!==3?et.apply(this,arguments):(typeof Je=="function"&&(Je=_(Je)),He.call(this,Je,at,ct))};case 4:return function(Je,at,ct,Et){return arguments.length!==4?et.apply(this,arguments):(typeof Je=="function"&&(Je=_(Je)),He.call(this,Je,at,ct,Et))};case 5:return function(Je,at,ct,Et,ut){return arguments.length!==5?et.apply(this,arguments):(typeof Je=="function"&&(Je=_(Je)),He.call(this,Je,at,ct,Et,ut))};case 6:return function(Je,at,ct,Et,ut,qt){return arguments.length!==6?et.apply(this,arguments):(typeof Je=="function"&&(Je=_(Je)),He.call(this,Je,at,ct,Et,ut,qt))};default:return et}}function Qt(He){return(He=Number(He))>=0?He:!1}function ht(He){return typeof He=="string"&&Qt(He)===!1}}),Sp=I((a,k)=>{"use strict";var p=U(9491),g=Wn(),_="cls@contexts",m="error@context";process.addAsyncListener||Ep();function u(f){this.name=f,this.active=null,this._set=[],this.id=null}u.prototype.set=function(f,b){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return this.active[f]=b,b},u.prototype.get=function(f){if(this.active)return this.active[f]},u.prototype.createContext=function(){return Object.create(this.active)},u.prototype.run=function(f){var b=this.createContext();this.enter(b);try{return f(b),b}catch(E){throw E&&(E[m]=b),E}finally{this.exit(b)}},u.prototype.runAndReturn=function(f){var b;return this.run(function(E){b=f(E)}),b},u.prototype.bind=function(f,b){b||(this.active?b=this.active:b=this.createContext());var E=this;return function(){E.enter(b);try{return f.apply(this,arguments)}catch(R){throw R&&(R[m]=b),R}finally{E.exit(b)}}},u.prototype.enter=function(f){p.ok(f,"context must be provided for entering"),this._set.push(this.active),this.active=f},u.prototype.exit=function(f){if(p.ok(f,"context must be provided for exiting"),this.active===f){p.ok(this._set.length,"can't remove top context"),this.active=this._set.pop();return}var b=this._set.lastIndexOf(f);p.ok(b>=0,"context not currently entered; can't exit"),p.ok(b,"can't remove top context"),this._set.splice(b,1)},u.prototype.bindEmitter=function(f){p.ok(f.on&&f.addListener&&f.emit,"can only bind real EEs");var b=this,E="context@"+this.name;function R(A){!A||(A[_]||(A[_]=Object.create(null)),A[_][E]={namespace:b,context:b.active})}function C(A){if(!(A&&A[_]))return A;var O=A,z=A[_];return Object.keys(z).forEach(function(X){var Y=z[X];O=Y.namespace.bind(O,Y.context)}),O}g(f,R,C)},u.prototype.fromException=function(f){return f[m]};function l(f){return process.namespaces[f]}function c(f){p.ok(f,"namespace must be given a name!");var b=new u(f);return b.id=process.addAsyncListener({create:function(){return b.active},before:function(E,R){R&&b.enter(R)},after:function(E,R){R&&b.exit(R)},error:function(E){E&&b.exit(E)}}),process.namespaces[f]=b,b}function v(f){var b=l(f);p.ok(b,"can't delete nonexistent namespace!"),p.ok(b.id,"don't assign to process.namespaces directly!"),process.removeAsyncListener(b.id),process.namespaces[f]=null}function y(){process.namespaces&&Object.keys(process.namespaces).forEach(function(f){v(f)}),process.namespaces=Object.create(null)}process.namespaces||y(),k.exports={getNamespace:l,createNamespace:c,destroyNamespace:v,reset:y}}),Kn=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.CorrelationContextManager=void 0;var k=oe(),p=yn(),g=Qn(),_=ua(),m=Go(),u=function(){function c(){}return c.getCurrentContext=function(){if(!c.enabled)return null;var v=c.session.get(c.CONTEXT_NAME);return v===void 0?null:v},c.generateContextObject=function(v,y,f,b,E,R){return y=y||v,this.enabled?{operation:{name:f,id:v,parentId:y,traceparent:E,tracestate:R},customProperties:new l(b)}:null},c.spanToContextObject=function(v,y,f){var b=new g;return b.traceId=v.traceId,b.spanId=v.spanId,b.traceFlag=g.formatOpenTelemetryTraceFlags(v.traceFlags)||g.DEFAULT_TRACE_FLAG,b.parentId=y,c.generateContextObject(b.traceId,b.parentId,f,null,b)},c.runWithContext=function(v,y){var f;return c.enabled?c.session.bind(y,(f={},f[c.CONTEXT_NAME]=v,f))():y()},c.wrapEmitter=function(v){c.enabled&&c.session.bindEmitter(v)},c.wrapCallback=function(v,y){var f;return c.enabled?c.session.bind(v,y?(f={},f[c.CONTEXT_NAME]=y,f):void 0):v},c.enable=function(v){if(!this.enabled){if(!this.isNodeVersionCompatible()){this.enabled=!1;return}c.hasEverEnabled||(this.forceClsHooked=v,this.hasEverEnabled=!0,typeof this.cls=="undefined"&&(c.forceClsHooked===!0||c.forceClsHooked===void 0&&c.shouldUseClsHooked()?this.cls=Fi():this.cls=Sp()),c.session=this.cls.createNamespace("AI-CLS-Session"),p.registerContextPreservation(function(y){return c.session.bind(y)})),this.enabled=!0}},c.startOperation=function(v,y){var f=v&&v.traceContext||null,b=v&&v.traceId?v:null,E=v&&v.headers;if(b){var R=new g("00-"+b.traceId+"-"+b.spanId+"-01"),C=new _(b.traceState?b.traceState.serialize():null),A=c.generateContextObject(b.traceId,"|"+b.traceId+"."+b.spanId+".",typeof y=="string"?y:"",void 0,R,C);return A}if(f){var R=new g(f.traceparent),C=new _(f.tracestate),O=typeof y=="object"?new m(y):null,A=c.generateContextObject(R.traceId,R.parentId,typeof y=="string"?y:O.getOperationName({}),O&&O.getCorrelationContextHeader()||void 0,R,C);return A}if(E){var R=new g(E.traceparent?E.traceparent.toString():null),C=new _(E.tracestate?E.tracestate.toString():null),O=new m(v),A=c.generateContextObject(R.traceId,R.parentId,O.getOperationName({}),O.getCorrelationContextHeader(),R,C);return A}return k.warn("startOperation was called with invalid arguments",arguments),null},c.disable=function(){this.enabled=!1},c.reset=function(){c.hasEverEnabled&&(c.session=null,c.session=this.cls.createNamespace("AI-CLS-Session"))},c.isNodeVersionCompatible=function(){var v=process.versions.node.split(".");return parseInt(v[0])>3||parseInt(v[0])>2&&parseInt(v[1])>2},c.shouldUseClsHooked=function(){var v=process.versions.node.split(".");return parseInt(v[0])>8||parseInt(v[0])>=8&&parseInt(v[1])>=2},c.canUseClsHooked=function(){var v=process.versions.node.split("."),y=parseInt(v[0])>8||parseInt(v[0])>=8&&parseInt(v[1])>=0,f=parseInt(v[0])<8||parseInt(v[0])<=8&&parseInt(v[1])<2,b=parseInt(v[0])>4||parseInt(v[0])>=4&&parseInt(v[1])>=7;return!(y&&f)&&b},c.enabled=!1,c.hasEverEnabled=!1,c.forceClsHooked=void 0,c.CONTEXT_NAME="ApplicationInsights-Context",c}();a.CorrelationContextManager=u;var l=function(){function c(v){this.props=[],this.addHeaderData(v)}return c.prototype.addHeaderData=function(v){var y=v?v.split(", "):[];this.props=y.map(function(f){var b=f.split("=");return{key:b[0],value:b[1]}}).concat(this.props)},c.prototype.serializeToHeader=function(){return this.props.map(function(v){return v.key+"="+v.value}).join(", ")},c.prototype.getProperty=function(v){for(var y=0;y<this.props.length;++y){var f=this.props[y];if(f.key===v)return f.value}},c.prototype.setProperty=function(v,y){if(c.bannedCharacters.test(v)||c.bannedCharacters.test(y)){k.warn("Correlation context property keys and values must not contain ',' or '='. setProperty was called with key: "+v+" and value: "+y);return}for(var f=0;f<this.props.length;++f){var b=this.props[f];if(b.key===v){b.value=y;return}}this.props.push({key:v,value:y})},c.bannedCharacters=/[,=]/,c}()}),Nd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.dispose=a.enable=void 0;var k=sr(),p=fe(),g=[],_=function(l){var c=l.data.message;g.forEach(function(v){c instanceof Error?v.trackException({exception:c}):(c.lastIndexOf(`
|
||
`)==c.length-1&&(c=c.substring(0,c.length-1)),v.trackTrace({message:c,severity:l.data.stderr?k.SeverityLevel.Warning:k.SeverityLevel.Information}))})};function m(l,c){l?(g.length===0&&p.channel.subscribe("console",_),g.push(c)):(g=g.filter(function(v){return v!=c}),g.length===0&&p.channel.unsubscribe("console",_))}a.enable=m;function u(){p.channel.unsubscribe("console",_),g=[]}a.dispose=u}),zo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.dispose=a.enable=void 0;var k=sr(),p=fe(),g=[],_={10:k.SeverityLevel.Verbose,20:k.SeverityLevel.Verbose,30:k.SeverityLevel.Information,40:k.SeverityLevel.Warning,50:k.SeverityLevel.Error,60:k.SeverityLevel.Critical},m=function(c){var v=c.data.result;g.forEach(function(y){var f=_[c.data.level];v instanceof Error?y.trackException({exception:v}):y.trackTrace({message:v,severity:f})})};function u(c,v){c?(g.length===0&&p.channel.subscribe("bunyan",m),g.push(v)):(g=g.filter(function(y){return y!=v}),g.length===0&&p.channel.unsubscribe("bunyan",m))}a.enable=u;function l(){p.channel.unsubscribe("bunyan",m),g=[]}a.dispose=l}),Qo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.dispose=a.enable=void 0;var k=sr(),p=fe(),g=[],_={syslog:function(c){var v={emerg:k.SeverityLevel.Critical,alert:k.SeverityLevel.Critical,crit:k.SeverityLevel.Critical,error:k.SeverityLevel.Error,warning:k.SeverityLevel.Warning,notice:k.SeverityLevel.Information,info:k.SeverityLevel.Information,debug:k.SeverityLevel.Verbose};return v[c]===void 0?k.SeverityLevel.Information:v[c]},npm:function(c){var v={error:k.SeverityLevel.Error,warn:k.SeverityLevel.Warning,info:k.SeverityLevel.Information,verbose:k.SeverityLevel.Verbose,debug:k.SeverityLevel.Verbose,silly:k.SeverityLevel.Verbose};return v[c]===void 0?k.SeverityLevel.Information:v[c]},unknown:function(c){return k.SeverityLevel.Information}},m=function(c){var v=c.data.message;g.forEach(function(y){if(v instanceof Error)y.trackException({exception:v,properties:c.data.meta});else{var f=_[c.data.levelKind](c.data.level);y.trackTrace({message:v,severity:f,properties:c.data.meta})}})};function u(c,v){c?(g.length===0&&p.channel.subscribe("winston",m),g.push(v)):(g=g.filter(function(y){return y!=v}),g.length===0&&p.channel.unsubscribe("winston",m))}a.enable=u;function l(){p.channel.unsubscribe("winston",m),g=[]}a.dispose=l}),Pd=I((a,k)=>{"use strict";var p=yn(),g=function(){function _(m){if(_.INSTANCE)throw new Error("Console logging adapter tracking should be configured from the applicationInsights object");this._client=m,_.INSTANCE=this}return _.prototype.enable=function(m,u){p.IsInitialized&&(Nd().enable(m&&u,this._client),zo().enable(m,this._client),Qo().enable(m,this._client))},_.prototype.isInitialized=function(){return this._isInitialized},_.prototype.dispose=function(){_.INSTANCE=null,this.enable(!1,!1)},_._methodNames=["debug","info","log","warn","error"],_}();k.exports=g}),Ds=I((a,k)=>{"use strict";var p=function(){function g(_){if(g.INSTANCE)throw new Error("Exception tracking should be configured from the applicationInsights object");g.INSTANCE=this,this._client=_;var m=process.versions.node.split(".");g._canUseUncaughtExceptionMonitor=parseInt(m[0])>13||parseInt(m[0])===13&&parseInt(m[1])>=7}return g.prototype.isInitialized=function(){return this._isInitialized},g.prototype.enable=function(_){var m=this;if(_){this._isInitialized=!0;var u=this;if(!this._exceptionListenerHandle){var l=function(c,v,y){y===void 0&&(y=new Error(g._FALLBACK_ERROR_MESSAGE)),m._client.trackException({exception:y}),m._client.flush({isAppCrashing:!0}),c&&v&&process.listeners(v).length===1&&(console.error(y),process.exit(1))};g._canUseUncaughtExceptionMonitor?(this._exceptionListenerHandle=l.bind(this,!1,void 0),process.on(g.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME,this._exceptionListenerHandle)):(this._exceptionListenerHandle=l.bind(this,!0,g.UNCAUGHT_EXCEPTION_HANDLER_NAME),this._rejectionListenerHandle=l.bind(this,!1,void 0),process.on(g.UNCAUGHT_EXCEPTION_HANDLER_NAME,this._exceptionListenerHandle),process.on(g.UNHANDLED_REJECTION_HANDLER_NAME,this._rejectionListenerHandle))}}else this._exceptionListenerHandle&&(g._canUseUncaughtExceptionMonitor?process.removeListener(g.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME,this._exceptionListenerHandle):(process.removeListener(g.UNCAUGHT_EXCEPTION_HANDLER_NAME,this._exceptionListenerHandle),process.removeListener(g.UNHANDLED_REJECTION_HANDLER_NAME,this._rejectionListenerHandle)),this._exceptionListenerHandle=void 0,this._rejectionListenerHandle=void 0,delete this._exceptionListenerHandle,delete this._rejectionListenerHandle)},g.prototype.dispose=function(){g.INSTANCE=null,this.enable(!1),this._isInitialized=!1},g.INSTANCE=null,g.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME="uncaughtExceptionMonitor",g.UNCAUGHT_EXCEPTION_HANDLER_NAME="uncaughtException",g.UNHANDLED_REJECTION_HANDLER_NAME="unhandledRejection",g._RETHROW_EXIT_MESSAGE="Application Insights Rethrow Exception Handler",g._FALLBACK_ERROR_MESSAGE="A promise was rejected without providing an error. Application Insights generated this error stack for you.",g._canUseUncaughtExceptionMonitor=!1,g}();k.exports=p}),Ai=I(a=>{"use strict";var k;Object.defineProperty(a,"__esModule",{value:!0}),a.HeartBeatMetricName=a.DependencyTypeName=a.SpanAttribute=a.TelemetryTypeStringToQuickPulseDocumentType=a.TelemetryTypeStringToQuickPulseType=a.QuickPulseType=a.QuickPulseDocumentType=a.PerformanceToQuickPulseCounter=a.MetricId=a.PerformanceCounter=a.QuickPulseCounter=a.DEFAULT_LIVEMETRICS_HOST=a.DEFAULT_LIVEMETRICS_ENDPOINT=a.DEFAULT_BREEZE_ENDPOINT=void 0,a.DEFAULT_BREEZE_ENDPOINT="https://dc.services.visualstudio.com",a.DEFAULT_LIVEMETRICS_ENDPOINT="https://rt.services.visualstudio.com",a.DEFAULT_LIVEMETRICS_HOST="rt.services.visualstudio.com";var p;(function(m){m.COMMITTED_BYTES="\\Memory\\Committed Bytes",m.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",m.REQUEST_RATE="\\ApplicationInsights\\Requests/Sec",m.REQUEST_FAILURE_RATE="\\ApplicationInsights\\Requests Failed/Sec",m.REQUEST_DURATION="\\ApplicationInsights\\Request Duration",m.DEPENDENCY_RATE="\\ApplicationInsights\\Dependency Calls/Sec",m.DEPENDENCY_FAILURE_RATE="\\ApplicationInsights\\Dependency Calls Failed/Sec",m.DEPENDENCY_DURATION="\\ApplicationInsights\\Dependency Call Duration",m.EXCEPTION_RATE="\\ApplicationInsights\\Exceptions/Sec"})(p=a.QuickPulseCounter||(a.QuickPulseCounter={}));var g;(function(m){m.PRIVATE_BYTES="\\Process(??APP_WIN32_PROC??)\\Private Bytes",m.AVAILABLE_BYTES="\\Memory\\Available Bytes",m.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",m.PROCESS_TIME="\\Process(??APP_WIN32_PROC??)\\% Processor Time",m.REQUEST_RATE="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Requests/Sec",m.REQUEST_DURATION="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Request Execution Time"})(g=a.PerformanceCounter||(a.PerformanceCounter={}));var _;(function(m){m.REQUESTS_DURATION="requests/duration",m.DEPENDENCIES_DURATION="dependencies/duration",m.EXCEPTIONS_COUNT="exceptions/count",m.TRACES_COUNT="traces/count"})(_=a.MetricId||(a.MetricId={})),a.PerformanceToQuickPulseCounter=(k={},k[g.PROCESSOR_TIME]=p.PROCESSOR_TIME,k[g.REQUEST_RATE]=p.REQUEST_RATE,k[g.REQUEST_DURATION]=p.REQUEST_DURATION,k[p.COMMITTED_BYTES]=p.COMMITTED_BYTES,k[p.REQUEST_FAILURE_RATE]=p.REQUEST_FAILURE_RATE,k[p.DEPENDENCY_RATE]=p.DEPENDENCY_RATE,k[p.DEPENDENCY_FAILURE_RATE]=p.DEPENDENCY_FAILURE_RATE,k[p.DEPENDENCY_DURATION]=p.DEPENDENCY_DURATION,k[p.EXCEPTION_RATE]=p.EXCEPTION_RATE,k),a.QuickPulseDocumentType={Event:"Event",Exception:"Exception",Trace:"Trace",Metric:"Metric",Request:"Request",Dependency:"RemoteDependency",Availability:"Availability",PageView:"PageView"},a.QuickPulseType={Event:"EventTelemetryDocument",Exception:"ExceptionTelemetryDocument",Trace:"TraceTelemetryDocument",Metric:"MetricTelemetryDocument",Request:"RequestTelemetryDocument",Dependency:"DependencyTelemetryDocument",Availability:"AvailabilityTelemetryDocument",PageView:"PageViewTelemetryDocument"},a.TelemetryTypeStringToQuickPulseType={EventData:a.QuickPulseType.Event,ExceptionData:a.QuickPulseType.Exception,MessageData:a.QuickPulseType.Trace,MetricData:a.QuickPulseType.Metric,RequestData:a.QuickPulseType.Request,RemoteDependencyData:a.QuickPulseType.Dependency,AvailabilityData:a.QuickPulseType.Availability,PageViewData:a.QuickPulseType.PageView},a.TelemetryTypeStringToQuickPulseDocumentType={EventData:a.QuickPulseDocumentType.Event,ExceptionData:a.QuickPulseDocumentType.Exception,MessageData:a.QuickPulseDocumentType.Trace,MetricData:a.QuickPulseDocumentType.Metric,RequestData:a.QuickPulseDocumentType.Request,RemoteDependencyData:a.QuickPulseDocumentType.Dependency,AvailabilityData:a.QuickPulseDocumentType.Availability,PageViewData:a.QuickPulseDocumentType.PageView},a.SpanAttribute={HttpHost:"http.host",HttpMethod:"http.method",HttpPort:"http.port",HttpStatusCode:"http.status_code",HttpUrl:"http.url",HttpUserAgent:"http.user_agent",GrpcMethod:"grpc.method",GrpcService:"rpc.service"},a.DependencyTypeName={Grpc:"GRPC",Http:"HTTP",InProc:"InProc"},a.HeartBeatMetricName="HeartBeat"}),ca=I((a,k)=>{"use strict";var p=U(2037),g=Ai(),_=function(){function m(u,l,c){l===void 0&&(l=6e4),c===void 0&&(c=!1),this._lastIntervalRequestExecutionTime=0,this._lastIntervalDependencyExecutionTime=0,m.INSTANCE||(m.INSTANCE=this),this._isInitialized=!1,this._client=u,this._collectionInterval=l,this._enableLiveMetricsCounters=c}return m.prototype.enable=function(u,l){var c=this;this._isEnabled=u,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),u?this._handle||(this._lastCpus=p.cpus(),this._lastRequests={totalRequestCount:m._totalRequestCount,totalFailedRequestCount:m._totalFailedRequestCount,time:+new Date},this._lastDependencies={totalDependencyCount:m._totalDependencyCount,totalFailedDependencyCount:m._totalFailedDependencyCount,time:+new Date},this._lastExceptions={totalExceptionCount:m._totalExceptionCount,time:+new Date},typeof process.cpuUsage=="function"&&(this._lastAppCpuUsage=process.cpuUsage()),this._lastHrtime=process.hrtime(),this._collectionInterval=l||this._collectionInterval,this._handle=setInterval(function(){return c.trackPerformance()},this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=void 0)},m.countRequest=function(u,l){var c;if(m.isEnabled()){if(typeof u=="string")c=+new Date("1970-01-01T"+u+"Z");else if(typeof u=="number")c=u;else return;m._intervalRequestExecutionTime+=c,l===!1&&m._totalFailedRequestCount++,m._totalRequestCount++}},m.countException=function(){m._totalExceptionCount++},m.countDependency=function(u,l){var c;if(m.isEnabled()){if(typeof u=="string")c=+new Date("1970-01-01T"+u+"Z");else if(typeof u=="number")c=u;else return;m._intervalDependencyExecutionTime+=c,l===!1&&m._totalFailedDependencyCount++,m._totalDependencyCount++}},m.prototype.isInitialized=function(){return this._isInitialized},m.isEnabled=function(){return m.INSTANCE&&m.INSTANCE._isEnabled},m.prototype.trackPerformance=function(){this._trackCpu(),this._trackMemory(),this._trackNetwork(),this._trackDependencyRate(),this._trackExceptionRate()},m.prototype._trackCpu=function(){var u=p.cpus();if(u&&u.length&&this._lastCpus&&u.length===this._lastCpus.length){for(var l=0,c=0,v=0,y=0,f=0,b=0;!!u&&b<u.length;b++){var E=u[b],R=this._lastCpus[b],C="% cpu("+b+") ",A=E.model,O=E.speed,z=E.times,X=R.times,Y=z.user-X.user||0;l+=Y;var me=z.sys-X.sys||0;c+=me;var Ee=z.nice-X.nice||0;v+=Ee;var Ie=z.idle-X.idle||0;y+=Ie;var De=z.irq-X.irq||0;f+=De}var Ve=void 0;if(typeof process.cpuUsage=="function"){var Qe=process.cpuUsage(),Xe=process.hrtime(),it=Qe.user-this._lastAppCpuUsage.user+(Qe.system-this._lastAppCpuUsage.system)||0;if(typeof this._lastHrtime!="undefined"&&this._lastHrtime.length===2){var Nt=(Xe[0]-this._lastHrtime[0])*1e6+(Xe[1]-this._lastHrtime[1])/1e3||0;Ve=100*it/(Nt*u.length)}this._lastAppCpuUsage=Qe,this._lastHrtime=Xe}var yt=l+c+v+y+f||1;this._client.trackMetric({name:g.PerformanceCounter.PROCESSOR_TIME,value:(yt-y)/yt*100}),this._client.trackMetric({name:g.PerformanceCounter.PROCESS_TIME,value:Ve||l/yt*100})}this._lastCpus=u},m.prototype._trackMemory=function(){var u=p.freemem(),l=process.memoryUsage().rss,c=p.totalmem()-u;this._client.trackMetric({name:g.PerformanceCounter.PRIVATE_BYTES,value:l}),this._client.trackMetric({name:g.PerformanceCounter.AVAILABLE_BYTES,value:u}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:g.QuickPulseCounter.COMMITTED_BYTES,value:c})},m.prototype._trackNetwork=function(){var u=this._lastRequests,l={totalRequestCount:m._totalRequestCount,totalFailedRequestCount:m._totalFailedRequestCount,time:+new Date},c=l.totalRequestCount-u.totalRequestCount||0,v=l.totalFailedRequestCount-u.totalFailedRequestCount||0,y=l.time-u.time,f=y/1e3,b=(m._intervalRequestExecutionTime-this._lastIntervalRequestExecutionTime)/c||0;if(this._lastIntervalRequestExecutionTime=m._intervalRequestExecutionTime,y>0){var E=c/f,R=v/f;this._client.trackMetric({name:g.PerformanceCounter.REQUEST_RATE,value:E}),(!this._enableLiveMetricsCounters||c>0)&&this._client.trackMetric({name:g.PerformanceCounter.REQUEST_DURATION,value:b}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:g.QuickPulseCounter.REQUEST_FAILURE_RATE,value:R})}this._lastRequests=l},m.prototype._trackDependencyRate=function(){if(this._enableLiveMetricsCounters){var u=this._lastDependencies,l={totalDependencyCount:m._totalDependencyCount,totalFailedDependencyCount:m._totalFailedDependencyCount,time:+new Date},c=l.totalDependencyCount-u.totalDependencyCount||0,v=l.totalFailedDependencyCount-u.totalFailedDependencyCount||0,y=l.time-u.time,f=y/1e3,b=(m._intervalDependencyExecutionTime-this._lastIntervalDependencyExecutionTime)/c||0;if(this._lastIntervalDependencyExecutionTime=m._intervalDependencyExecutionTime,y>0){var E=c/f,R=v/f;this._client.trackMetric({name:g.QuickPulseCounter.DEPENDENCY_RATE,value:E}),this._client.trackMetric({name:g.QuickPulseCounter.DEPENDENCY_FAILURE_RATE,value:R}),(!this._enableLiveMetricsCounters||c>0)&&this._client.trackMetric({name:g.QuickPulseCounter.DEPENDENCY_DURATION,value:b})}this._lastDependencies=l}},m.prototype._trackExceptionRate=function(){if(this._enableLiveMetricsCounters){var u=this._lastExceptions,l={totalExceptionCount:m._totalExceptionCount,time:+new Date},c=l.totalExceptionCount-u.totalExceptionCount||0,v=l.time-u.time,y=v/1e3;if(v>0){var f=c/y;this._client.trackMetric({name:g.QuickPulseCounter.EXCEPTION_RATE,value:f})}this._lastExceptions=l}},m.prototype.dispose=function(){m.INSTANCE=null,this.enable(!1),this._isInitialized=!1},m._totalRequestCount=0,m._totalFailedRequestCount=0,m._totalDependencyCount=0,m._totalFailedDependencyCount=0,m._totalExceptionCount=0,m._intervalDependencyExecutionTime=0,m._intervalRequestExecutionTime=0,m}();k.exports=_}),Wo=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.AggregatedMetricCounter=void 0;var k=function(){function p(g){this.dimensions=g,this.totalCount=0,this.lastTotalCount=0,this.intervalExecutionTime=0,this.lastTime=+new Date,this.lastIntervalExecutionTime=0}return p}();a.AggregatedMetricCounter=k}),Tp=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.PreaggregatedMetricPropertyNames=void 0,a.PreaggregatedMetricPropertyNames={cloudRoleInstance:"cloud/roleInstance",cloudRoleName:"cloud/roleName",operationSynthetic:"operation/synthetic",requestSuccess:"Request.Success",requestResultCode:"request/resultCode",dependencyType:"Dependency.Type",dependencyTarget:"dependency/target",dependencySuccess:"Dependency.Success",dependencyResultCode:"dependency/resultCode",traceSeverityLevel:"trace/severityLevel"}}),Dd=I((a,k)=>{"use strict";var p=a&&a.__assign||function(){return p=Object.assign||function(l){for(var c,v=1,y=arguments.length;v<y;v++){c=arguments[v];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])}return l},p.apply(this,arguments)},g=Ai(),_=Wo(),m=Tp(),u=function(){function l(c,v){v===void 0&&(v=6e4),l.INSTANCE||(l.INSTANCE=this),this._isInitialized=!1,l._dependencyCountersCollection=[],l._requestCountersCollection=[],l._exceptionCountersCollection=[],l._traceCountersCollection=[],this._client=c,this._collectionInterval=v}return l.prototype.enable=function(c,v){var y=this;this._isEnabled=c,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),c?this._handle||(this._collectionInterval=v||this._collectionInterval,this._handle=setInterval(function(){return y.trackPreAggregatedMetrics()},this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=void 0)},l.countException=function(c){if(l.isEnabled()){var v=l._getAggregatedCounter(c,this._exceptionCountersCollection);v.totalCount++}},l.countTrace=function(c){if(l.isEnabled()){var v=l._getAggregatedCounter(c,this._traceCountersCollection);v.totalCount++}},l.countRequest=function(c,v){if(l.isEnabled()){var y,f=l._getAggregatedCounter(v,this._requestCountersCollection);if(typeof c=="string")y=+new Date("1970-01-01T"+c+"Z");else if(typeof c=="number")y=c;else return;f.intervalExecutionTime+=y,f.totalCount++}},l.countDependency=function(c,v){if(l.isEnabled()){var y=l._getAggregatedCounter(v,this._dependencyCountersCollection),f;if(typeof c=="string")f=+new Date("1970-01-01T"+c+"Z");else if(typeof c=="number")f=c;else return;y.intervalExecutionTime+=f,y.totalCount++}},l.prototype.isInitialized=function(){return this._isInitialized},l.isEnabled=function(){return l.INSTANCE&&l.INSTANCE._isEnabled},l.prototype.trackPreAggregatedMetrics=function(){this._trackRequestMetrics(),this._trackDependencyMetrics(),this._trackExceptionMetrics(),this._trackTraceMetrics()},l._getAggregatedCounter=function(c,v){for(var y=!1,f=0;f<v.length;f++){if(c===v[f].dimensions)return v[f];if(Object.keys(c).length===Object.keys(v[f].dimensions).length){for(var b in c)if(c[b]!=v[f].dimensions[b]){y=!0;break}if(!y)return v[f];y=!1}}var E=new _.AggregatedMetricCounter(c);return v.push(E),E},l.prototype._trackRequestMetrics=function(){for(var c=0;c<l._requestCountersCollection.length;c++){var v=l._requestCountersCollection[c];v.time=+new Date;var y=v.totalCount-v.lastTotalCount||0,f=v.time-v.lastTime,b=(v.intervalExecutionTime-v.lastIntervalExecutionTime)/y||0;v.lastIntervalExecutionTime=v.intervalExecutionTime,f>0&&y>0&&this._trackPreAggregatedMetric({name:"Server response time",dimensions:v.dimensions,value:b,count:y,aggregationInterval:f,metricType:g.MetricId.REQUESTS_DURATION}),v.lastTotalCount=v.totalCount,v.lastTime=v.time}},l.prototype._trackDependencyMetrics=function(){for(var c=0;c<l._dependencyCountersCollection.length;c++){var v=l._dependencyCountersCollection[c];v.time=+new Date;var y=v.totalCount-v.lastTotalCount||0,f=v.time-v.lastTime,b=(v.intervalExecutionTime-v.lastIntervalExecutionTime)/y||0;v.lastIntervalExecutionTime=v.intervalExecutionTime,f>0&&y>0&&this._trackPreAggregatedMetric({name:"Dependency duration",dimensions:v.dimensions,value:b,count:y,aggregationInterval:f,metricType:g.MetricId.DEPENDENCIES_DURATION}),v.lastTotalCount=v.totalCount,v.lastTime=v.time}},l.prototype._trackExceptionMetrics=function(){for(var c=0;c<l._exceptionCountersCollection.length;c++){var v=l._exceptionCountersCollection[c],y=v.totalCount-v.lastTotalCount||0,f=v.time-v.lastTime;this._trackPreAggregatedMetric({name:"Exceptions",dimensions:v.dimensions,value:y,count:y,aggregationInterval:f,metricType:g.MetricId.EXCEPTIONS_COUNT}),v.lastTotalCount=v.totalCount,v.lastTime=v.time}},l.prototype._trackTraceMetrics=function(){for(var c=0;c<l._traceCountersCollection.length;c++){var v=l._traceCountersCollection[c],y=v.totalCount-v.lastTotalCount||0,f=v.time-v.lastTime;this._trackPreAggregatedMetric({name:"Traces",dimensions:v.dimensions,value:y,count:y,aggregationInterval:f,metricType:g.MetricId.TRACES_COUNT}),v.lastTotalCount=v.totalCount,v.lastTime=v.time}},l.prototype._trackPreAggregatedMetric=function(c){var v={};for(var y in c.dimensions)v[m.PreaggregatedMetricPropertyNames[y]]=c.dimensions[y];v=p(p({},v),{"_MS.MetricId":c.metricType,"_MS.AggregationIntervalMs":String(c.aggregationInterval),"_MS.IsAutocollected":"True"});var f={name:c.name,value:c.value,count:c.count,properties:v,kind:"Aggregation"};this._client.trackMetric(f)},l.prototype.dispose=function(){l.INSTANCE=null,this.enable(!1),this._isInitialized=!1},l}();k.exports=u}),As=I((a,k)=>{"use strict";var p=U(2037),g=U(2048),_=U(1017),m=sr(),u=oe(),l=function(){function c(v){this.keys=new m.ContextTagKeys,this.tags={},this._loadApplicationContext(v),this._loadDeviceContext(),this._loadInternalContext()}return c.prototype._loadApplicationContext=function(v){if(v=v||_.resolve(__dirname,"../../../../package.json"),!c.appVersion[v]){c.appVersion[v]="unknown";try{var y=JSON.parse(g.readFileSync(v,"utf8"));y&&typeof y.version=="string"&&(c.appVersion[v]=y.version)}catch(f){u.info("unable to read app version: ",f)}}this.tags[this.keys.applicationVersion]=c.appVersion[v]},c.prototype._loadDeviceContext=function(){this.tags[this.keys.deviceId]="",this.tags[this.keys.cloudRoleInstance]=p&&p.hostname(),this.tags[this.keys.deviceOSVersion]=p&&p.type()+" "+p.release(),this.tags[this.keys.cloudRole]=c.DefaultRoleName,this.tags["ai.device.osArchitecture"]=p&&p.arch(),this.tags["ai.device.osPlatform"]=p&&p.platform()},c.prototype._loadInternalContext=function(){var v=_.resolve(__dirname,"../../package.json");if(!c.sdkVersion){c.sdkVersion="unknown";try{var y=JSON.parse(g.readFileSync(v,"utf8"));y&&typeof y.version=="string"&&(c.sdkVersion=y.version)}catch(f){u.info("unable to read app version: ",f)}}this.tags[this.keys.internalSdkVersion]="node:"+c.sdkVersion},c.DefaultRoleName="Web",c.appVersion={},c.sdkVersion=null,c}();k.exports=l}),Ad=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var y=function(f,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,R){E.__proto__=R}||function(E,R){for(var C in R)Object.prototype.hasOwnProperty.call(R,C)&&(E[C]=R[C])},y(f,b)};return function(f,b){y(f,b);function E(){this.constructor=f}f.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}}(),g=U(7310),_=sr(),m=yr(),u=da(),l=Ps(),c=wn(),v=function(y){p(f,y);function f(b,E){var R=y.call(this)||this;return E&&E.method&&b&&(R.method=E.method,R.url=f._getUrlFromRequestOptions(b,E),R.startTime=+new Date),R}return f.prototype.onError=function(b){this._setStatus(void 0,b)},f.prototype.onResponse=function(b){this._setStatus(b.statusCode,void 0),this.correlationId=m.getCorrelationContextTarget(b,u.requestContextTargetKey)},f.prototype.getDependencyTelemetry=function(b,E){var R=g.parse(this.url);R.search=void 0,R.hash=void 0;var C=this.method.toUpperCase()+" "+R.pathname,A=_.RemoteDependencyDataConstants.TYPE_HTTP,O=R.hostname;R.port&&(O+=":"+R.port),this.correlationId?(A=_.RemoteDependencyDataConstants.TYPE_AI,this.correlationId!==c.correlationIdPrefix&&(O+=" | "+this.correlationId)):A=_.RemoteDependencyDataConstants.TYPE_HTTP;var z={id:E,name:C,data:this.url,duration:this.duration,success:this._isSuccess(),resultCode:this.statusCode?this.statusCode.toString():null,properties:this.properties||{},dependencyTypeName:A,target:O};if(b&&b.time?z.time=b.time:this.startTime&&(z.time=new Date(this.startTime)),b){for(var X in b)z[X]||(z[X]=b[X]);if(b.properties)for(var X in b.properties)z.properties[X]=b.properties[X]}return z},f._getUrlFromRequestOptions=function(b,E){if(typeof b=="string")if(b.indexOf("http://")===0||b.indexOf("https://")===0)b=g.parse(b);else{var R=g.parse(b);R.host==="443"?b=g.parse("https://"+b):b=g.parse("http://"+b)}else{if(b&&typeof g.URL=="function"&&b instanceof g.URL)return g.format(b);var C=b;b={},C&&Object.keys(C).forEach(function(z){b[z]=C[z]})}if(b.path){var A=g.parse(b.path);b.pathname=A.pathname,b.search=A.search}if(b.host&&b.port){var O=g.parse("http://"+b.host);!O.port&&b.port&&(b.hostname=b.host,delete b.host)}return b.protocol=b.protocol||E.agent&&E.agent.protocol||E.protocol||void 0,b.hostname=b.hostname||"localhost",g.format(b)},f}(l);k.exports=v}),Id=I(a=>{"use strict";var k=a&&a.__assign||function(){return k=Object.assign||function(u){for(var l,c=1,v=arguments.length;c<v;c++){l=arguments[c];for(var y in l)Object.prototype.hasOwnProperty.call(l,y)&&(u[y]=l[y])}return u},k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0}),a.spanToTelemetryContract=void 0;var p=Ct(),g=Ai();function _(u){var l=k({},u);return Object.keys(g.SpanAttribute).forEach(function(c){delete l[c]}),l}function m(u){var l="|"+u.spanContext().traceId+"."+u.spanContext().spanId+".",c=Math.round(u._duration[0]*1e3+u._duration[1]/1e6),v=u.attributes["peer.address"]?u.attributes["peer.address"].toString():"",y=u.attributes.component?u.attributes.component.toString():"",f=y.toUpperCase()===g.DependencyTypeName.Http||!!u.attributes[g.SpanAttribute.HttpUrl],b=y.toLowerCase()===g.DependencyTypeName.Grpc;if(f){var E=u.attributes[g.SpanAttribute.HttpMethod]||"GET",R=new URL(u.attributes[g.SpanAttribute.HttpUrl].toString()),C=u.attributes[g.SpanAttribute.HttpHost]||R.host,A=u.attributes[g.SpanAttribute.HttpPort]||R.port||null,O=R.pathname||"/",z=E+" "+O,X=g.DependencyTypeName.Http,Y=A?(C+":"+A).toString():C.toString(),me=R.toString(),Ee=u.attributes[g.SpanAttribute.HttpStatusCode]||u.status.code||0,Ie=Ee<400;return{id:l,name:z,dependencyTypeName:X,target:Y,data:me,success:Ie,duration:c,url:me,resultCode:String(Ee),properties:_(u.attributes)}}else if(b){var E=u.attributes[g.SpanAttribute.GrpcMethod]||"rpc",De=u.attributes[g.SpanAttribute.GrpcService],Ve=De?E+" "+De:u.name;return{id:l,duration:c,name:Ve,target:De.toString(),data:De.toString()||Ve,url:De.toString()||Ve,dependencyTypeName:g.DependencyTypeName.Grpc,resultCode:String(u.status.code||0),success:u.status.code===0,properties:_(u.attributes)}}else{var Qe=u.name,Xe=u.links&&u.links.map(function(it){return{operation_Id:it.context.traceId,id:it.context.spanId}});return{id:l,duration:c,name:Qe,target:v,data:v||Qe,url:v||Qe,dependencyTypeName:u.kind===p.SpanKind.INTERNAL?g.DependencyTypeName.InProc:y||u.name,resultCode:String(u.status.code||0),success:u.status.code===0,properties:k(k({},_(u.attributes)),{"_MS.links":Xe||void 0})}}}a.spanToTelemetryContract=m}),Od=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.subscriber=void 0;var k=Ct(),p=fe(),g=Qn(),_=Id(),m=J(),u=[],l=function(v){var y=v.data,f=_.spanToTelemetryContract(y),b=y.spanContext(),E=new g;E.traceId=b.traceId,E.spanId=b.spanId,E.traceFlag=g.formatOpenTelemetryTraceFlags(b.traceFlags),E.parentId=y.parentSpanId?"|"+b.traceId+"."+y.parentSpanId+".":null,m.AsyncScopeManager.with(y,function(){u.forEach(function(R){y.kind===k.SpanKind.SERVER?R.trackRequest(f):(y.kind===k.SpanKind.CLIENT||y.kind===k.SpanKind.INTERNAL)&&R.trackDependency(f)})})};a.subscriber=l;function c(v,y){v?(u.length===0&&p.channel.subscribe("azure-coretracing",a.subscriber),u.push(y)):(u=u.filter(function(f){return f!=y}),u.length===0&&p.channel.unsubscribe("azure-coretracing",a.subscriber))}a.enable=c}),xd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.subscriber=void 0;var k=fe(),p=[],g=function(m){m.data.event.commandName!=="ismaster"&&p.forEach(function(u){var l=m.data.startedData&&m.data.startedData.databaseName||"Unknown database";u.trackDependency({target:l,data:m.data.event.commandName,name:m.data.event.commandName,duration:m.data.event.duration,success:m.data.succeeded,resultCode:m.data.succeeded?"0":"1",time:m.data.startedData.time,dependencyTypeName:"mongodb"})})};a.subscriber=g;function _(m,u){m?(p.length===0&&k.channel.subscribe("mongodb",a.subscriber),p.push(u)):(p=p.filter(function(l){return l!=u}),p.length===0&&k.channel.unsubscribe("mongodb",a.subscriber))}a.enable=_}),Md=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.subscriber=void 0;var k=fe(),p=[],g=function(m){p.forEach(function(u){var l=m.data.query||{},c=l.sql||"Unknown query",v=!m.data.err,y=l._connection||{},f=y.config||{},b=f.socketPath?f.socketPath:(f.host||"localhost")+":"+f.port;u.trackDependency({target:b,data:c,name:c,duration:m.data.duration,success:v,resultCode:v?"0":"1",time:m.data.time,dependencyTypeName:"mysql"})})};a.subscriber=g;function _(m,u){m?(p.length===0&&k.channel.subscribe("mysql",a.subscriber),p.push(u)):(p=p.filter(function(l){return l!=u}),p.length===0&&k.channel.unsubscribe("mysql",a.subscriber))}a.enable=_}),Fd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.subscriber=void 0;var k=fe(),p=[],g=function(m){p.forEach(function(u){m.data.commandObj.command!=="info"&&u.trackDependency({target:m.data.address,name:m.data.commandObj.command,data:m.data.commandObj.command,duration:m.data.duration,success:!m.data.err,resultCode:m.data.err?"1":"0",time:m.data.time,dependencyTypeName:"redis"})})};a.subscriber=g;function _(m,u){m?(p.length===0&&k.channel.subscribe("redis",a.subscriber),p.push(u)):(p=p.filter(function(l){return l!=u}),p.length===0&&k.channel.unsubscribe("redis",a.subscriber))}a.enable=_}),Ld=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.enable=a.subscriber=void 0;var k=fe(),p=[],g=function(m){p.forEach(function(u){var l=m.data.query,c=l.preparable&&l.preparable.text||l.plan||l.text||"unknown query",v=!m.data.error,y=m.data.database.host+":"+m.data.database.port;u.trackDependency({target:y,data:c,name:c,duration:m.data.duration,success:v,resultCode:v?"0":"1",time:m.data.time,dependencyTypeName:"postgres"})})};a.subscriber=g;function _(m,u){m?(p.length===0&&k.channel.subscribe("postgres",a.subscriber),p.push(u)):(p=p.filter(function(l){return l!=u}),p.length===0&&k.channel.unsubscribe("postgres",a.subscriber))}a.enable=_}),ma=I((a,k)=>{"use strict";var p=a&&a.__spreadArrays||function(){for(var R=0,C=0,A=arguments.length;C<A;C++)R+=arguments[C].length;for(var O=Array(R),z=0,C=0;C<A;C++)for(var X=arguments[C],Y=0,me=X.length;Y<me;Y++,z++)O[z]=X[Y];return O},g=U(3685),_=U(5687),m=oe(),u=yr(),l=da(),c=Ad(),v=Kn(),y=wn(),f=Qn(),b=yn(),E=function(){function R(C){if(R.INSTANCE)throw new Error("Client request tracking should be configured from the applicationInsights object");R.INSTANCE=this,this._client=C}return R.prototype.enable=function(C){this._isEnabled=C,this._isEnabled&&!this._isInitialized&&this._initialize(),b.IsInitialized&&(Od().enable(!0,this._client),xd().enable(C,this._client),Md().enable(C,this._client),Fd().enable(C,this._client),Ld().enable(C,this._client))},R.prototype.isInitialized=function(){return this._isInitialized},R.prototype._initialize=function(){var C=this;this._isInitialized=!0;var A=g.request,O=_.request,z=function(X,Y){var me=!Y[R.disableCollectionRequestOption]&&!X[R.alreadyAutoCollectedFlag];Y.headers&&Y.headers["user-agent"]&&Y.headers["user-agent"].toString().indexOf("azsdk-js")!==-1&&(me=!1),X[R.alreadyAutoCollectedFlag]=!0,X&&Y&&me&&(v.CorrelationContextManager.wrapEmitter(X),R.trackRequest(C._client,{options:Y,request:X}))};g.request=function(X){for(var Y=[],me=1;me<arguments.length;me++)Y[me-1]=arguments[me];var Ee=A.call.apply(A,p([g,X],Y));return z(Ee,X),Ee},_.request=function(X){for(var Y=[],me=1;me<arguments.length;me++)Y[me-1]=arguments[me];var Ee=O.call.apply(O,p([_,X],Y));return z(Ee,X),Ee},g.get=function(X){for(var Y,me=[],Ee=1;Ee<arguments.length;Ee++)me[Ee-1]=arguments[Ee];var Ie=(Y=g.request).call.apply(Y,p([g,X],me));return Ie.end(),Ie},_.get=function(X){for(var Y,me=[],Ee=1;Ee<arguments.length;Ee++)me[Ee-1]=arguments[Ee];var Ie=(Y=_.request).call.apply(Y,p([_,X],me));return Ie.end(),Ie}},R.trackRequest=function(C,A){if(!A.options||!A.request||!C){m.info("AutoCollectHttpDependencies.trackRequest was called with invalid parameters: ",!A.options,!A.request,!C);return}var O=new c(A.options,A.request),z=v.CorrelationContextManager.getCurrentContext(),X,Y;if(z&&z.operation&&z.operation.traceparent&&f.isValidTraceId(z.operation.traceparent.traceId))z.operation.traceparent.updateSpanId(),X=z.operation.traceparent.getBackCompatRequestId();else if(y.w3cEnabled){var me=new f;Y=me.toString(),X=me.getBackCompatRequestId()}else X=z&&z.operation&&z.operation.parentId+R.requestNumber+++".";if(u.canIncludeCorrelationHeader(C,O.getUrl())&&A.request.getHeader&&A.request.setHeader&&C.config&&C.config.correlationId){var Ee=A.request.getHeader(l.requestContextHeader);try{u.safeIncludeCorrelationHeader(C,A.request,Ee)}catch(Ve){m.warn("Request-Context header could not be set. Correlation of requests may be lost",Ve)}if(z&&z.operation)try{if(A.request.setHeader(l.requestIdHeader,X),C.config.ignoreLegacyHeaders||(A.request.setHeader(l.parentIdHeader,z.operation.id),A.request.setHeader(l.rootIdHeader,X)),Y||z.operation.traceparent)A.request.setHeader(l.traceparentHeader,Y||z.operation.traceparent.toString());else if(y.w3cEnabled){var me=new f().toString();A.request.setHeader(l.traceparentHeader,me)}if(z.operation.tracestate){var Ie=z.operation.tracestate.toString();Ie&&A.request.setHeader(l.traceStateHeader,Ie)}var De=z.customProperties.serializeToHeader();De&&A.request.setHeader(l.correlationContextHeader,De)}catch(Ve){m.warn("Correlation headers could not be set. Correlation of requests may be lost.",Ve)}}A.request.on&&(A.request.on("response",function(Ve){O.onResponse(Ve);var Qe=O.getDependencyTelemetry(A,X);Qe.contextObjects=Qe.contextObjects||{},Qe.contextObjects["http.RequestOptions"]=A.options,Qe.contextObjects["http.ClientRequest"]=A.request,Qe.contextObjects["http.ClientResponse"]=Ve,C.trackDependency(Qe)}),A.request.on("error",function(Ve){O.onError(Ve);var Qe=O.getDependencyTelemetry(A,X);Qe.contextObjects=Qe.contextObjects||{},Qe.contextObjects["http.RequestOptions"]=A.options,Qe.contextObjects["http.ClientRequest"]=A.request,Qe.contextObjects.Error=Ve,C.trackDependency(Qe)}),A.request.on("abort",function(){O.onError(new Error);var Ve=O.getDependencyTelemetry(A,X);Ve.contextObjects=Ve.contextObjects||{},Ve.contextObjects["http.RequestOptions"]=A.options,Ve.contextObjects["http.ClientRequest"]=A.request,C.trackDependency(Ve)}))},R.prototype.dispose=function(){R.INSTANCE=null,this.enable(!1),this._isInitialized=!1},R.disableCollectionRequestOption="disableAppInsightsAutoCollection",R.requestNumber=1,R.alreadyAutoCollectedFlag="_appInsightsAutoCollected",R}();k.exports=E}),Ud=I((a,k)=>{"use strict";var p=U(2037),g=Ai(),_=yr(),m=As(),u=ma(),l="http://169.254.169.254/metadata/instance/compute",c="api-version=2017-12-01",v="format=json",y="ENETUNREACH",f=function(){function b(E){this._collectionInterval=9e5,this._vmData={},this._azInst_vmId="",this._azInst_subscriptionId="",this._azInst_osType="",b.INSTANCE||(b.INSTANCE=this),this._isInitialized=!1,this._client=E}return b.prototype.enable=function(E,R){var C=this;this._isEnabled=E,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),E?this._handle||(this._handle=setInterval(function(){return C.trackHeartBeat(R,function(){})},this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=null)},b.prototype.isInitialized=function(){return this._isInitialized},b.isEnabled=function(){return b.INSTANCE&&b.INSTANCE._isEnabled},b.prototype.trackHeartBeat=function(E,R){var C=this,A=!1,O={},z=m.sdkVersion;O.sdk=z,O.osType=p.type(),process.env.WEBSITE_SITE_NAME?(O.appSrv_SiteName=process.env.WEBSITE_SITE_NAME||"",O.appSrv_wsStamp=process.env.WEBSITE_HOME_STAMPNAME||"",O.appSrv_wsHost=process.env.WEBSITE_HOSTNAME||""):process.env.FUNCTIONS_WORKER_RUNTIME?O.azfunction_appId=process.env.WEBSITE_HOSTNAME:E&&(this._isVM===void 0?(A=!0,this._getAzureComputeMetadata(E,function(){C._isVM&&Object.keys(C._vmData).length>0&&(O.azInst_vmId=C._vmData.vmId||"",O.azInst_subscriptionId=C._vmData.subscriptionId||"",O.azInst_osType=C._vmData.osType||"",C._azInst_vmId=C._vmData.vmId||"",C._azInst_subscriptionId=C._vmData.subscriptionId||"",C._azInst_osType=C._vmData.osType||""),C._client.trackMetric({name:g.HeartBeatMetricName,value:0,properties:O}),R()})):this._isVM&&(O.azInst_vmId=this._azInst_vmId,O.azInst_subscriptionId=this._azInst_subscriptionId,O.azInst_osType=this._azInst_osType)),A||(this._client.trackMetric({name:g.HeartBeatMetricName,value:0,properties:O}),R())},b.prototype.dispose=function(){b.INSTANCE=null,this.enable(!1),this._isInitialized=!1},b.prototype._getAzureComputeMetadata=function(E,R){var C,A=this,O=l+"?"+c+"&"+v,z=(C={method:"GET"},C[u.disableCollectionRequestOption]=!0,C.headers={Metadata:"True"},C),X=_.makeRequest(E,O,z,function(Y){if(Y.statusCode===200){A._isVM=!0;var me="";Y.on("data",function(Ee){me+=Ee}),Y.on("end",function(){A._vmData=A._isJSON(me)?JSON.parse(me):{},R()})}else R()});X&&(X.on("error",function(Y){Y&&Y.message&&Y.message.indexOf(y)>-1&&(A._isVM=!1),R()}),X.end())},b.prototype._isJSON=function(E){try{return JSON.parse(E)&&!!E}catch(R){return!1}},b}();k.exports=f}),bn=I((a,k)=>{"use strict";var p=U(3685),g=U(5687),_=oe(),m=yr(),u=da(),l=Go(),c=Kn(),v=ca(),y=function(){function f(b){if(f.INSTANCE)throw new Error("Server request tracking should be configured from the applicationInsights object");f.INSTANCE=this,this._client=b}return f.prototype.enable=function(b){this._isEnabled=b,(this._isAutoCorrelating||this._isEnabled||v.isEnabled())&&!this._isInitialized&&(this.useAutoCorrelation(this._isAutoCorrelating),this._initialize())},f.prototype.useAutoCorrelation=function(b,E){b&&!this._isAutoCorrelating?c.CorrelationContextManager.enable(E):!b&&this._isAutoCorrelating&&c.CorrelationContextManager.disable(),this._isAutoCorrelating=b},f.prototype.isInitialized=function(){return this._isInitialized},f.prototype.isAutoCorrelating=function(){return this._isAutoCorrelating},f.prototype._generateCorrelationContext=function(b){if(this._isAutoCorrelating)return c.CorrelationContextManager.generateContextObject(b.getOperationId(this._client.context.tags),b.getRequestId(),b.getOperationName(this._client.context.tags),b.getCorrelationContextHeader(),b.getTraceparent(),b.getTracestate())},f.prototype._initialize=function(){var b=this;this._isInitialized=!0;var E=function(O){if(O){if(typeof O!="function")throw new Error("onRequest handler must be a function");return function(z,X){c.CorrelationContextManager.wrapEmitter(z),c.CorrelationContextManager.wrapEmitter(X);var Y=z&&!z[f.alreadyAutoCollectedFlag];if(z&&Y){var me=new l(z),Ee=b._generateCorrelationContext(me);c.CorrelationContextManager.runWithContext(Ee,function(){b._isEnabled&&(z[f.alreadyAutoCollectedFlag]=!0,f.trackRequest(b._client,{request:z,response:X},me)),typeof O=="function"&&O(z,X)})}else typeof O=="function"&&O(z,X)}}},R=function(O){var z=O.addListener.bind(O);O.addListener=function(X,Y){switch(X){case"request":case"checkContinue":return z(X,E(Y));default:return z(X,Y)}},O.on=O.addListener},C=p.createServer;p.createServer=function(O,z){if(z&&typeof z=="function"){var X=C(O,E(z));return R(X),X}else{var X=C(E(O));return R(X),X}};var A=g.createServer;g.createServer=function(O,z){var X=A(O,E(z));return R(X),X}},f.trackRequestSync=function(b,E){if(!E.request||!E.response||!b){_.info("AutoCollectHttpRequests.trackRequestSync was called with invalid parameters: ",!E.request,!E.response,!b);return}f.addResponseCorrelationIdHeader(b,E.response);var R=c.CorrelationContextManager.getCurrentContext(),C=new l(E.request,R&&R.operation.parentId);R&&(R.operation.id=C.getOperationId(b.context.tags)||R.operation.id,R.operation.name=C.getOperationName(b.context.tags)||R.operation.name,R.operation.parentId=C.getRequestId()||R.operation.parentId,R.customProperties.addHeaderData(C.getCorrelationContextHeader())),f.endRequest(b,C,E,E.duration,E.error)},f.trackRequest=function(b,E,R){if(!E.request||!E.response||!b){_.info("AutoCollectHttpRequests.trackRequest was called with invalid parameters: ",!E.request,!E.response,!b);return}var C=c.CorrelationContextManager.getCurrentContext(),A=R||new l(E.request,C&&C.operation.parentId);m.canIncludeCorrelationHeader(b,A.getUrl())&&f.addResponseCorrelationIdHeader(b,E.response),C&&!R&&(C.operation.id=A.getOperationId(b.context.tags)||C.operation.id,C.operation.name=A.getOperationName(b.context.tags)||C.operation.name,C.operation.parentId=A.getOperationParentId(b.context.tags)||C.operation.parentId,C.customProperties.addHeaderData(A.getCorrelationContextHeader())),E.response.once&&E.response.once("finish",function(){f.endRequest(b,A,E,null,null)}),E.request.on&&E.request.on("error",function(O){f.endRequest(b,A,E,null,O)}),E.request.on&&E.request.on("aborted",function(){var O="The request has been aborted and the network socket has closed.";f.endRequest(b,A,E,null,O)})},f.addResponseCorrelationIdHeader=function(b,E){if(b.config&&b.config.correlationId&&E.getHeader&&E.setHeader&&!E.headersSent){var R=E.getHeader(u.requestContextHeader);m.safeIncludeCorrelationHeader(b,E,R)}},f.endRequest=function(b,E,R,C,A){A?E.onError(A,C):E.onResponse(R.response,C);var O=E.getRequestTelemetry(R);if(O.tagOverrides=E.getRequestTags(b.context.tags),R.tagOverrides)for(var z in R.tagOverrides)O.tagOverrides[z]=R.tagOverrides[z];var X=E.getLegacyRootId();X&&(O.properties.ai_legacyRootId=X),O.contextObjects=O.contextObjects||{},O.contextObjects["http.ServerRequest"]=R.request,O.contextObjects["http.ServerResponse"]=R.response,b.trackRequest(O)},f.prototype.dispose=function(){f.INSTANCE=null,this.enable(!1),this._isInitialized=!1,c.CorrelationContextManager.disable(),this._isAutoCorrelating=!1},f.alreadyAutoCollectedFlag="_appInsightsAutoCollected",f}();k.exports=y}),Vd=I((a,k)=>{"use strict";var p=a&&a.__assign||function(){return p=Object.assign||function(y){for(var f,b=1,E=arguments.length;b<E;b++){f=arguments[b];for(var R in f)Object.prototype.hasOwnProperty.call(f,R)&&(y[R]=f[R])}return y},p.apply(this,arguments)},g=U(2037),_=sr(),m=Ai(),u=yr(),l=oe(),c=u.w3cTraceId(),v=function(){function y(){}return y.createQuickPulseEnvelope=function(f,b,E,R){var C=g&&typeof g.hostname=="function"&&g.hostname()||"Unknown",A=R.tags&&R.keys&&R.keys.cloudRoleInstance&&R.tags[R.keys.cloudRoleInstance]||C,O=R.tags&&R.keys&&R.keys.cloudRole&&R.tags[R.keys.cloudRole]||null,z={Documents:b.length>0?b:null,InstrumentationKey:E.instrumentationKey||"",Metrics:f.length>0?f:null,InvariantVersion:1,Timestamp:"/Date("+Date.now()+")/",Version:R.tags[R.keys.internalSdkVersion],StreamId:c,MachineName:C,Instance:A,RoleName:O};return z},y.createQuickPulseMetric=function(f){var b;return b={Name:f.name,Value:f.value,Weight:f.count||1},b},y.telemetryEnvelopeToQuickPulseDocument=function(f){switch(f.data.baseType){case _.TelemetryTypeString.Event:return y.createQuickPulseEventDocument(f);case _.TelemetryTypeString.Exception:return y.createQuickPulseExceptionDocument(f);case _.TelemetryTypeString.Trace:return y.createQuickPulseTraceDocument(f);case _.TelemetryTypeString.Dependency:return y.createQuickPulseDependencyDocument(f);case _.TelemetryTypeString.Request:return y.createQuickPulseRequestDocument(f)}return null},y.createQuickPulseEventDocument=function(f){var b=y.createQuickPulseDocument(f),E=f.data.baseData.name,R=p(p({},b),{Name:E});return R},y.createQuickPulseTraceDocument=function(f){var b=y.createQuickPulseDocument(f),E=f.data.baseData.severityLevel||0,R=p(p({},b),{Message:f.data.baseData.message,SeverityLevel:_.SeverityLevel[E]});return R},y.createQuickPulseExceptionDocument=function(f){var b=y.createQuickPulseDocument(f),E=f.data.baseData.exceptions,R="",C="",A="";E&&E.length>0&&(E[0].parsedStack&&E[0].parsedStack.length>0?E[0].parsedStack.forEach(function(z){R+=z.assembly+`
|
||
`}):E[0].stack&&E[0].stack.length>0&&(R=E[0].stack),C=E[0].message,A=E[0].typeName);var O=p(p({},b),{Exception:R,ExceptionMessage:C,ExceptionType:A});return O},y.createQuickPulseRequestDocument=function(f){var b=y.createQuickPulseDocument(f),E=f.data.baseData,R=p(p({},b),{Name:E.name,Success:E.success,Duration:E.duration,ResponseCode:E.responseCode,OperationName:E.name});return R},y.createQuickPulseDependencyDocument=function(f){var b=y.createQuickPulseDocument(f),E=f.data.baseData,R=p(p({},b),{Name:E.name,Target:E.target,Success:E.success,Duration:E.duration,ResultCode:E.resultCode,CommandName:E.data,OperationName:b.OperationId,DependencyTypeName:E.type});return R},y.createQuickPulseDocument=function(f){var b,E,R,C;f.data.baseType?(E=m.TelemetryTypeStringToQuickPulseType[f.data.baseType],b=m.TelemetryTypeStringToQuickPulseDocumentType[f.data.baseType]):l.warn("Document type invalid; not sending live metric document",f.data.baseType),R=f.tags[y.keys.operationId],C=y.aggregateProperties(f);var A={DocumentType:b,__type:E,OperationId:R,Version:"1.0",Properties:C};return A},y.aggregateProperties=function(f){var b=[],E=f.data.baseData.measurements||{};for(var R in E)if(E.hasOwnProperty(R)){var C=E[R],A={key:R,value:C};b.push(A)}var O=f.data.baseData.properties||{};for(var R in O)if(O.hasOwnProperty(R)){var C=O[R],A={key:R,value:C};b.push(A)}return b},y.keys=new _.ContextTagKeys,y}();k.exports=v}),qd=I((a,k)=>{"use strict";var p=function(){return(Date.now()+621355968e5)*1e4};k.exports={getTransmissionTime:p}}),Ko=I((a,k)=>{"use strict";var p=a&&a.__awaiter||function(f,b,E,R){function C(A){return A instanceof E?A:new E(function(O){O(A)})}return new(E||(E=Promise))(function(A,O){function z(me){try{Y(R.next(me))}catch(Ee){O(Ee)}}function X(me){try{Y(R.throw(me))}catch(Ee){O(Ee)}}function Y(me){me.done?A(me.value):C(me.value).then(z,X)}Y((R=R.apply(f,b||[])).next())})},g=a&&a.__generator||function(f,b){var E={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},R,C,A,O;return O={next:z(0),throw:z(1),return:z(2)},typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function z(Y){return function(me){return X([Y,me])}}function X(Y){if(R)throw new TypeError("Generator is already executing.");for(;E;)try{if(R=1,C&&(A=Y[0]&2?C.return:Y[0]?C.throw||((A=C.return)&&A.call(C),0):C.next)&&!(A=A.call(C,Y[1])).done)return A;switch(C=0,A&&(Y=[Y[0]&2,A.value]),Y[0]){case 0:case 1:A=Y;break;case 4:return E.label++,{value:Y[1],done:!1};case 5:E.label++,C=Y[1],Y=[0];continue;case 7:Y=E.ops.pop(),E.trys.pop();continue;default:if(A=E.trys,!(A=A.length>0&&A[A.length-1])&&(Y[0]===6||Y[0]===2)){E=0;continue}if(Y[0]===3&&(!A||Y[1]>A[0]&&Y[1]<A[3])){E.label=Y[1];break}if(Y[0]===6&&E.label<A[1]){E.label=A[1],A=Y;break}if(A&&E.label<A[2]){E.label=A[2],E.ops.push(Y);break}A[2]&&E.ops.pop(),E.trys.pop();continue}Y=b.call(f,E)}catch(me){Y=[6,me],C=0}finally{R=A=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}},_=U(5687),m=ma(),u=oe(),l=qd(),c=yr(),v={method:"POST",time:"x-ms-qps-transmission-time",pollingIntervalHint:"x-ms-qps-service-polling-interval-hint",endpointRedirect:"x-ms-qps-service-endpoint-redirect",instanceName:"x-ms-qps-instance-name",streamId:"x-ms-qps-stream-id",machineName:"x-ms-qps-machine-name",roleName:"x-ms-qps-role-name",streamid:"x-ms-qps-stream-id",invariantVersion:"x-ms-qps-invariant-version",subscribed:"x-ms-qps-subscribed"},y=function(){function f(b){this._config=b,this._consecutiveErrors=0}return f.prototype.ping=function(b,E,R){var C=[{name:v.streamId,value:b.StreamId},{name:v.machineName,value:b.MachineName},{name:v.roleName,value:b.RoleName},{name:v.instanceName,value:b.Instance},{name:v.invariantVersion,value:b.InvariantVersion.toString()}];this._submitData(b,E,R,"ping",C)},f.prototype.post=function(b,E,R){return p(this,void 0,void 0,function(){return g(this,function(C){switch(C.label){case 0:return[4,this._submitData([b],E,R,"post")];case 1:return C.sent(),[2]}})})},f.prototype._submitData=function(b,E,R,C,A){return p(this,void 0,void 0,function(){var O,z,X,Y,me,Ee=this;return g(this,function(Ie){return O=JSON.stringify(b),z=(Y={},Y[m.disableCollectionRequestOption]=!0,Y.host=E&&E.length>0?E:this._config.quickPulseHost,Y.method=v.method,Y.path="/QuickPulseService.svc/"+C+"?ikey="+this._config.instrumentationKey,Y.headers=(me={Expect:"100-continue"},me[v.time]=l.getTransmissionTime(),me["Content-Type"]="application/json",me["Content-Length"]=Buffer.byteLength(O),me),Y),A&&A.length>0&&A.forEach(function(De){return z.headers[De.name]=De.value}),this._config.httpsAgent?z.agent=this._config.httpsAgent:z.agent=c.tlsRestrictedAgent,X=_.request(z,function(De){if(De.statusCode==200){var Ve=De.headers[v.subscribed]==="true",Qe=De.headers[v.endpointRedirect]?De.headers[v.endpointRedirect].toString():null,Xe=De.headers[v.pollingIntervalHint]?parseInt(De.headers[v.pollingIntervalHint].toString()):null;Ee._consecutiveErrors=0,R(Ve,De,Qe,Xe)}else Ee._onError("StatusCode:"+De.statusCode+" StatusMessage:"+De.statusMessage),R()}),X.on("error",function(De){Ee._onError(De),R()}),X.write(O),X.end(),[2]})})},f.prototype._onError=function(b){this._consecutiveErrors++;var E="Transient error connecting to the Live Metrics endpoint. This packet will not appear in your Live Metrics Stream. Error:";this._consecutiveErrors%f.MAX_QPS_FAILURES_BEFORE_WARN==0?(E="Live Metrics endpoint could not be reached "+this._consecutiveErrors+" consecutive times. Most recent error:",u.warn(f.TAG,E,b)):u.info(f.TAG,E,b)},f.TAG="QuickPulseSender",f.MAX_QPS_FAILURES_BEFORE_WARN=25,f}();k.exports=y}),Is=I((a,k)=>{"use strict";var p=a&&a.__awaiter||function(y,f,b,E){function R(C){return C instanceof b?C:new b(function(A){A(C)})}return new(b||(b=Promise))(function(C,A){function O(Y){try{X(E.next(Y))}catch(me){A(me)}}function z(Y){try{X(E.throw(Y))}catch(me){A(me)}}function X(Y){Y.done?C(Y.value):R(Y.value).then(O,z)}X((E=E.apply(y,f||[])).next())})},g=a&&a.__generator||function(y,f){var b={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},E,R,C,A;return A={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function O(X){return function(Y){return z([X,Y])}}function z(X){if(E)throw new TypeError("Generator is already executing.");for(;b;)try{if(E=1,R&&(C=X[0]&2?R.return:X[0]?R.throw||((C=R.return)&&C.call(R),0):R.next)&&!(C=C.call(R,X[1])).done)return C;switch(R=0,C&&(X=[X[0]&2,C.value]),X[0]){case 0:case 1:C=X;break;case 4:return b.label++,{value:X[1],done:!1};case 5:b.label++,R=X[1],X=[0];continue;case 7:X=b.ops.pop(),b.trys.pop();continue;default:if(C=b.trys,!(C=C.length>0&&C[C.length-1])&&(X[0]===6||X[0]===2)){b=0;continue}if(X[0]===3&&(!C||X[1]>C[0]&&X[1]<C[3])){b.label=X[1];break}if(X[0]===6&&b.label<C[1]){b.label=C[1],C=X;break}if(C&&b.label<C[2]){b.label=C[2],b.ops.push(X);break}C[2]&&b.ops.pop(),b.trys.pop();continue}X=f.call(y,b)}catch(Y){X=[6,Y],R=0}finally{E=C=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}},_=oe(),m=Vd(),u=Ko(),l=Ai(),c=As(),v=function(){function y(f,b){this._isCollectingData=!1,this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0,this._metrics={},this._documents=[],this._collectors=[],this._redirectedHost=null,this._pollingIntervalHint=-1,this.config=f,this.context=b||new c,this._sender=new u(this.config),this._isEnabled=!1}return y.prototype.addCollector=function(f){this._collectors.push(f)},y.prototype.trackMetric=function(f){this._addMetric(f)},y.prototype.addDocument=function(f){var b=m.telemetryEnvelopeToQuickPulseDocument(f);b&&this._documents.push(b)},y.prototype.enable=function(f){f&&!this._isEnabled?(this._isEnabled=!0,this._goQuickPulse()):!f&&this._isEnabled&&(this._isEnabled=!1,clearTimeout(this._handle),this._handle=void 0)},y.prototype.enableCollectors=function(f){this._collectors.forEach(function(b){b.enable(f)})},y.prototype._addMetric=function(f){var b=f.value,E=f.count||1,R=l.PerformanceToQuickPulseCounter[f.name];R&&(this._metrics[R]?(this._metrics[R].Value=(this._metrics[R].Value*this._metrics[R].Weight+b*E)/(this._metrics[R].Weight+E),this._metrics[R].Weight+=E):(this._metrics[R]=m.createQuickPulseMetric(f),this._metrics[R].Name=R,this._metrics[R].Weight=1))},y.prototype._resetQuickPulseBuffer=function(){delete this._metrics,this._metrics={},this._documents.length=0},y.prototype._goQuickPulse=function(){return p(this,void 0,void 0,function(){var f,b,E,R,C=this;return g(this,function(A){switch(A.label){case 0:return f=Object.keys(this._metrics).map(function(O){return C._metrics[O]}),b=m.createQuickPulseEnvelope(f,this._documents.slice(),this.config,this.context),this._resetQuickPulseBuffer(),this._isCollectingData?[4,this._post(b)]:[3,2];case 1:return A.sent(),[3,3];case 2:this._ping(b),A.label=3;case 3:return E=this._pollingIntervalHint>0?this._pollingIntervalHint:y.PING_INTERVAL,R=this._isCollectingData?y.POST_INTERVAL:E,this._isCollectingData&&Date.now()-this._lastSuccessTime>=y.MAX_POST_WAIT_TIME&&!this._lastSendSucceeded?(this._isCollectingData=!1,R=y.FALLBACK_INTERVAL):!this._isCollectingData&&Date.now()-this._lastSuccessTime>=y.MAX_PING_WAIT_TIME&&!this._lastSendSucceeded&&(R=y.FALLBACK_INTERVAL),this._lastSendSucceeded=null,this._handle=setTimeout(this._goQuickPulse.bind(this),R),this._handle.unref(),[2]}})})},y.prototype._ping=function(f){this._sender.ping(f,this._redirectedHost,this._quickPulseDone.bind(this))},y.prototype._post=function(f){return p(this,void 0,void 0,function(){return g(this,function(b){switch(b.label){case 0:return[4,this._sender.post(f,this._redirectedHost,this._quickPulseDone.bind(this))];case 1:return b.sent(),[2]}})})},y.prototype._quickPulseDone=function(f,b,E,R){f!=null?(this._isCollectingData!==f&&(_.info("Live Metrics sending data",f),this.enableCollectors(f)),this._isCollectingData=f,E&&E.length>0&&(this._redirectedHost=E,_.info("Redirecting endpoint to: ",E)),R&&R>0&&(this._pollingIntervalHint=R),b&&b.statusCode<300&&b.statusCode>=200?(this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0):this._lastSendSucceeded=!1):this._lastSendSucceeded=!1},y.MAX_POST_WAIT_TIME=2e4,y.MAX_PING_WAIT_TIME=6e4,y.FALLBACK_INTERVAL=6e4,y.PING_INTERVAL=5e3,y.POST_INTERVAL=1e3,y}();k.exports=v}),ha=I((a,k)=>{"use strict";var p=Ai(),g=function(){function _(){}return _.parse=function(m){if(!m)return{};var u=m.split(_._FIELDS_SEPARATOR),l=u.reduce(function(v,y){var f=y.split(_._FIELD_KEY_VALUE_SEPARATOR);if(f.length===2){var b=f[0].toLowerCase(),E=f[1];v[b]=E}return v},{});if(Object.keys(l).length>0){if(l.endpointsuffix){var c=l.location?l.location+".":"";l.ingestionendpoint=l.ingestionendpoint||"https://"+c+"dc."+l.endpointsuffix,l.liveendpoint=l.liveendpoint||"https://"+c+"live."+l.endpointsuffix}l.ingestionendpoint=l.ingestionendpoint||p.DEFAULT_BREEZE_ENDPOINT,l.liveendpoint=l.liveendpoint||p.DEFAULT_LIVEMETRICS_ENDPOINT}return l},_._FIELDS_SEPARATOR=";",_._FIELD_KEY_VALUE_SEPARATOR="=",_}();k.exports=g}),Gr=I((a,k)=>{"use strict";var p=wn(),g=ha(),_=oe(),m=Ai(),u=U(7310),l=function(){function c(v){var y=this;this.endpointBase=m.DEFAULT_BREEZE_ENDPOINT;var f=process.env[c.ENV_connectionString],b=g.parse(v),E=g.parse(f),R=!b.instrumentationkey&&Object.keys(b).length>0?null:v;this.instrumentationKey=b.instrumentationkey||R||E.instrumentationkey||c._getInstrumentationKey(),c._validateInstrumentationKey(this.instrumentationKey),this.endpointUrl=(b.ingestionendpoint||E.ingestionendpoint||this.endpointBase)+"/v2.1/track",this.maxBatchSize=250,this.maxBatchIntervalMs=15e3,this.disableAppInsights=!1,this.samplingPercentage=100,this.correlationIdRetryIntervalMs=30*1e3,this.correlationHeaderExcludedDomains=["*.core.windows.net","*.core.chinacloudapi.cn","*.core.cloudapi.de","*.core.usgovcloudapi.net","*.core.microsoft.scloud","*.core.eaglex.ic.gov"],this.setCorrelationId=function(C){return y.correlationId=C},this.proxyHttpUrl=process.env[c.ENV_http_proxy]||void 0,this.proxyHttpsUrl=process.env[c.ENV_https_proxy]||void 0,this.httpAgent=void 0,this.httpsAgent=void 0,this.profileQueryEndpoint=b.ingestionendpoint||E.ingestionendpoint||process.env[c.ENV_profileQueryEndpoint]||this.endpointBase,this._quickPulseHost=b.liveendpoint||E.liveendpoint||process.env[c.ENV_quickPulseHost]||m.DEFAULT_LIVEMETRICS_HOST,this._quickPulseHost.match(/^https?:\/\//)&&(this._quickPulseHost=u.parse(this._quickPulseHost).host)}return Object.defineProperty(c.prototype,"profileQueryEndpoint",{get:function(){return this._profileQueryEndpoint},set:function(v){p.cancelCorrelationIdQuery(this,this.setCorrelationId),this._profileQueryEndpoint=v,this.correlationId=p.correlationIdPrefix,p.queryCorrelationId(this,this.setCorrelationId)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"quickPulseHost",{get:function(){return this._quickPulseHost},set:function(v){this._quickPulseHost=v},enumerable:!1,configurable:!0}),c._getInstrumentationKey=function(){var v=process.env[c.ENV_iKey]||process.env[c.ENV_azurePrefix+c.ENV_iKey]||process.env[c.legacy_ENV_iKey]||process.env[c.ENV_azurePrefix+c.legacy_ENV_iKey];if(!v||v=="")throw new Error("Instrumentation key not found, pass the key in the config to this method or set the key in the environment variable APPINSIGHTS_INSTRUMENTATIONKEY before starting the server");return v},c._validateInstrumentationKey=function(v){var y="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",f=new RegExp(y);return f.test(v)},c.ENV_azurePrefix="APPSETTING_",c.ENV_iKey="APPINSIGHTS_INSTRUMENTATIONKEY",c.legacy_ENV_iKey="APPINSIGHTS_INSTRUMENTATION_KEY",c.ENV_profileQueryEndpoint="APPINSIGHTS_PROFILE_QUERY_ENDPOINT",c.ENV_quickPulseHost="APPINSIGHTS_QUICKPULSE_HOST",c.ENV_connectionString="APPLICATIONINSIGHTS_CONNECTION_STRING",c.ENV_nativeMetricsDisablers="APPLICATION_INSIGHTS_DISABLE_EXTENDED_METRIC",c.ENV_nativeMetricsDisableAll="APPLICATION_INSIGHTS_DISABLE_ALL_EXTENDED_METRICS",c.ENV_http_proxy="http_proxy",c.ENV_https_proxy="https_proxy",c}();k.exports=l}),xa=I(a=>{"use strict";var k=a&&a.__assign||function(){return k=Object.assign||function(u){for(var l,c=1,v=arguments.length;c<v;c++){l=arguments[c];for(var y in l)Object.prototype.hasOwnProperty.call(l,y)&&(u[y]=l[y])}return u},k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0}),a.AutoCollectNativePerformance=void 0;var p=Gr(),g=As(),_=oe(),m=function(){function u(l){this._disabledMetrics={},u.INSTANCE&&u.INSTANCE.dispose(),u.INSTANCE=this,this._client=l}return u.isNodeVersionCompatible=function(){var l=process.versions.node.split(".");return parseInt(l[0])>=6},u.prototype.enable=function(l,c,v){var y=this;if(c===void 0&&(c={}),v===void 0&&(v=6e4),!!u.isNodeVersionCompatible()){if(u._metricsAvailable==null&&l&&!this._isInitialized)try{var f=U(2220);u._emitter=new f,u._metricsAvailable=!0,_.info("Native metrics module successfully loaded!")}catch(b){u._metricsAvailable=!1;return}this._isEnabled=l,this._disabledMetrics=c,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),this._isEnabled&&u._emitter?(u._emitter.enable(!0,v),this._handle||(this._handle=setInterval(function(){return y._trackNativeMetrics()},v),this._handle.unref())):u._emitter&&(u._emitter.enable(!1),this._handle&&(clearInterval(this._handle),this._handle=void 0))}},u.prototype.dispose=function(){this.enable(!1)},u.parseEnabled=function(l){var c=process.env[p.ENV_nativeMetricsDisableAll],v=process.env[p.ENV_nativeMetricsDisablers];if(c)return{isEnabled:!1,disabledMetrics:{}};if(v){var y=v.split(","),f={};if(y.length>0)for(var b=0,E=y;b<E.length;b++){var R=E[b];f[R]=!0}return typeof l=="object"?{isEnabled:!0,disabledMetrics:k(k({},l),f)}:{isEnabled:l,disabledMetrics:f}}return typeof l=="boolean"?{isEnabled:l,disabledMetrics:{}}:{isEnabled:!0,disabledMetrics:l}},u.prototype._trackNativeMetrics=function(){var l=!0;typeof this._isEnabled!="object"&&(l=this._isEnabled),l&&(this._trackGarbageCollection(),this._trackEventLoop(),this._trackHeapUsage())},u.prototype._trackGarbageCollection=function(){var l;if(!this._disabledMetrics.gc){var c=u._emitter.getGCData();for(var v in c){var y=c[v].metrics,f=v+" Garbage Collection Duration",b=Math.sqrt(y.sumSquares/y.count-Math.pow(y.total/y.count,2))||0;this._client.trackMetric({name:f,value:y.total,count:y.count,max:y.max,min:y.min,stdDev:b,tagOverrides:(l={},l[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+g.sdkVersion,l)})}}},u.prototype._trackEventLoop=function(){var l;if(!this._disabledMetrics.loop){var c=u._emitter.getLoopData(),v=c.loopUsage;if(v.count!=0){var y="Event Loop CPU Time",f=Math.sqrt(v.sumSquares/v.count-Math.pow(v.total/v.count,2))||0;this._client.trackMetric({name:y,value:v.total,count:v.count,min:v.min,max:v.max,stdDev:f,tagOverrides:(l={},l[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+g.sdkVersion,l)})}}},u.prototype._trackHeapUsage=function(){var l,c,v;if(!this._disabledMetrics.heap){var y=process.memoryUsage(),f=y.heapUsed,b=y.heapTotal,E=y.rss;this._client.trackMetric({name:"Memory Usage (Heap)",value:f,count:1,tagOverrides:(l={},l[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+g.sdkVersion,l)}),this._client.trackMetric({name:"Memory Total (Heap)",value:b,count:1,tagOverrides:(c={},c[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+g.sdkVersion,c)}),this._client.trackMetric({name:"Memory Usage (Non-Heap)",value:E-b,count:1,tagOverrides:(v={},v[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+g.sdkVersion,v)})}},u}();a.AutoCollectNativePerformance=m}),Ma=I((a,k)=>{"use strict";var p=oe(),g=function(){function _(m,u,l,c){this._buffer=[],this._lastSend=0,this._isDisabled=m,this._getBatchSize=u,this._getBatchIntervalMs=l,this._sender=c}return _.prototype.setUseDiskRetryCaching=function(m,u,l){this._sender.setDiskRetryMode(m,u,l)},_.prototype.send=function(m){var u=this;if(!this._isDisabled()){if(!m){p.warn("Cannot send null/undefined telemetry");return}if(this._buffer.push(m),this._buffer.length>=this._getBatchSize()){this.triggerSend(!1);return}!this._timeoutHandle&&this._buffer.length>0&&(this._timeoutHandle=setTimeout(function(){u._timeoutHandle=null,u.triggerSend(!1)},this._getBatchIntervalMs()))}},_.prototype.triggerSend=function(m,u){var l=this._buffer.length<1;l||(m?(this._sender.saveOnCrash(this._buffer),typeof u=="function"&&u("data saved on crash")):this._sender.send(this._buffer,u)),this._lastSend=+new Date,this._buffer=[],clearTimeout(this._timeoutHandle),this._timeoutHandle=null,l&&typeof u=="function"&&u("no data to send")},_}();k.exports=g}),Fa=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.azureRoleEnvironmentTelemetryProcessor=void 0;function k(p,g){process.env.WEBSITE_SITE_NAME&&(p.tags[g.keys.cloudRole]=process.env.WEBSITE_SITE_NAME)}a.azureRoleEnvironmentTelemetryProcessor=k}),$d=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.getSamplingHashCode=a.samplingTelemetryProcessor=void 0;var k=sr();function p(_,m){var u=_.sampleRate,l=!1;return u==null||u>=100||_.data&&k.TelemetryType.Metric===k.baseTypeToTelemetryType(_.data.baseType)?!0:(m.correlationContext&&m.correlationContext.operation?l=g(m.correlationContext.operation.id)<u:l=Math.random()*100<u,l)}a.samplingTelemetryProcessor=p;function g(_){var m=-2147483648,u=2147483647,l=5381;if(!_)return 0;for(;_.length<8;)_=_+_;for(var c=0;c<_.length;c++)l=((l<<5)+l|0)+_.charCodeAt(c)|0;return l=l<=m?u:Math.abs(l),l/u*100}a.getSamplingHashCode=g}),Gd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.performanceMetricsTelemetryProcessor=void 0;var k=ca(),p=sr();function g(_,m){switch(m&&m.addDocument(_),_.data.baseType){case p.TelemetryTypeString.Exception:k.countException();break;case p.TelemetryTypeString.Request:var u=_.data.baseData;k.countRequest(u.duration,u.success);break;case p.TelemetryTypeString.Dependency:var l=_.data.baseData;k.countDependency(l.duration,l.success);break}return!0}a.performanceMetricsTelemetryProcessor=g}),Yo=I(a=>{"use strict";var k=a&&a.__assign||function(){return k=Object.assign||function(u){for(var l,c=1,v=arguments.length;c<v;c++){l=arguments[c];for(var y in l)Object.prototype.hasOwnProperty.call(l,y)&&(u[y]=l[y])}return u},k.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0}),a.preAggregatedMetricsTelemetryProcessor=void 0;var p=sr(),g=Dd(),_=sr();function m(u,l){if(g.isEnabled())switch(u.data.baseType){case _.TelemetryTypeString.Exception:var c=u.data.baseData;c.properties=k(k({},c.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Exceptions', Ver:'1.1')"});var v={cloudRoleInstance:u.tags[l.keys.cloudRoleInstance],cloudRoleName:u.tags[l.keys.cloudRole]};g.countException(v);break;case _.TelemetryTypeString.Trace:var y=u.data.baseData;y.properties=k(k({},y.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Traces', Ver:'1.1')"});var f={cloudRoleInstance:u.tags[l.keys.cloudRoleInstance],cloudRoleName:u.tags[l.keys.cloudRole],traceSeverityLevel:p.SeverityLevel[y.severity]};g.countTrace(f);break;case _.TelemetryTypeString.Request:var b=u.data.baseData;b.properties=k(k({},b.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Requests', Ver:'1.1')"});var E={cloudRoleInstance:u.tags[l.keys.cloudRoleInstance],cloudRoleName:u.tags[l.keys.cloudRole],operationSynthetic:u.tags[l.keys.operationSyntheticSource],requestSuccess:b.success,requestResultCode:b.responseCode};g.countRequest(b.duration,E);break;case _.TelemetryTypeString.Dependency:var R=u.data.baseData;R.properties=k(k({},R.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Dependencies', Ver:'1.1')"});var C={cloudRoleInstance:u.tags[l.keys.cloudRoleInstance],cloudRoleName:u.tags[l.keys.cloudRole],operationSynthetic:u.tags[l.keys.operationSyntheticSource],dependencySuccess:R.success,dependencyType:R.type,dependencyTarget:R.target,dependencyResultCode:R.resultCode};g.countDependency(R.duration,C);break}return!0}a.preAggregatedMetricsTelemetryProcessor=m}),Bd=I(a=>{"use strict";var k=a&&a.__createBinding||(Object.create?function(g,_,m,u){u===void 0&&(u=m),Object.defineProperty(g,u,{enumerable:!0,get:function(){return _[m]}})}:function(g,_,m,u){u===void 0&&(u=m),g[u]=_[m]}),p=a&&a.__exportStar||function(g,_){for(var m in g)m!=="default"&&!Object.prototype.hasOwnProperty.call(_,m)&&k(_,g,m)};Object.defineProperty(a,"__esModule",{value:!0}),p(Fa(),a),p($d(),a),p(Gd(),a),p(Yo(),a)}),Os=I((a,k)=>{"use strict";var p=a&&a.__awaiter||function(E,R,C,A){function O(z){return z instanceof C?z:new C(function(X){X(z)})}return new(C||(C=Promise))(function(z,X){function Y(Ie){try{Ee(A.next(Ie))}catch(De){X(De)}}function me(Ie){try{Ee(A.throw(Ie))}catch(De){X(De)}}function Ee(Ie){Ie.done?z(Ie.value):O(Ie.value).then(Y,me)}Ee((A=A.apply(E,R||[])).next())})},g=a&&a.__generator||function(E,R){var C={label:0,sent:function(){if(z[0]&1)throw z[1];return z[1]},trys:[],ops:[]},A,O,z,X;return X={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(X[Symbol.iterator]=function(){return this}),X;function Y(Ee){return function(Ie){return me([Ee,Ie])}}function me(Ee){if(A)throw new TypeError("Generator is already executing.");for(;C;)try{if(A=1,O&&(z=Ee[0]&2?O.return:Ee[0]?O.throw||((z=O.return)&&z.call(O),0):O.next)&&!(z=z.call(O,Ee[1])).done)return z;switch(O=0,z&&(Ee=[Ee[0]&2,z.value]),Ee[0]){case 0:case 1:z=Ee;break;case 4:return C.label++,{value:Ee[1],done:!1};case 5:C.label++,O=Ee[1],Ee=[0];continue;case 7:Ee=C.ops.pop(),C.trys.pop();continue;default:if(z=C.trys,!(z=z.length>0&&z[z.length-1])&&(Ee[0]===6||Ee[0]===2)){C=0;continue}if(Ee[0]===3&&(!z||Ee[1]>z[0]&&Ee[1]<z[3])){C.label=Ee[1];break}if(Ee[0]===6&&C.label<z[1]){C.label=z[1],z=Ee;break}if(z&&C.label<z[2]){C.label=z[2],C.ops.push(Ee);break}z[2]&&C.ops.pop(),C.trys.pop();continue}Ee=R.call(E,C)}catch(Ie){Ee=[6,Ie],O=0}finally{A=z=0}if(Ee[0]&5)throw Ee[1];return{value:Ee[0]?Ee[1]:void 0,done:!0}}},_=U(2048),m=U(2037),u=U(1017),l=U(9796),c=U(2081),v=oe(),y=ma(),f=yr(),b=function(){function E(R,C,A){if(this._redirectedHost=null,this._config=R,this._onSuccess=C,this._onError=A,this._enableDiskRetryMode=!1,this._resendInterval=E.WAIT_BETWEEN_RESEND,this._maxBytesOnDisk=E.MAX_BYTES_ON_DISK,this._numConsecutiveFailures=0,this._numConsecutiveRedirects=0,this._resendTimer=null,this._fileCleanupTimer=null,this._tempDir=u.join(m.tmpdir(),E.TEMPDIR_PREFIX+this._config.instrumentationKey),!E.OS_PROVIDES_FILE_PROTECTION)if(E.USE_ICACLS){try{E.OS_PROVIDES_FILE_PROTECTION=_.existsSync(E.ICACLS_PATH)}catch(O){}E.OS_PROVIDES_FILE_PROTECTION||v.warn(E.TAG,"Could not find ICACLS in expected location! This is necessary to use disk retry mode on Windows.")}else E.OS_PROVIDES_FILE_PROTECTION=!0}return E.prototype.setDiskRetryMode=function(R,C,A){var O=this;this._enableDiskRetryMode=E.OS_PROVIDES_FILE_PROTECTION&&R,typeof C=="number"&&C>=0&&(this._resendInterval=Math.floor(C)),typeof A=="number"&&A>=0&&(this._maxBytesOnDisk=Math.floor(A)),R&&!E.OS_PROVIDES_FILE_PROTECTION&&(this._enableDiskRetryMode=!1,v.warn(E.TAG,"Ignoring request to enable disk retry mode. Sufficient file protection capabilities were not detected.")),this._enableDiskRetryMode?this._fileCleanupTimer||(this._fileCleanupTimer=setTimeout(function(){O._fileCleanupTask()},E.CLEANUP_TIMEOUT),this._fileCleanupTimer.unref()):this._fileCleanupTimer&&clearTimeout(this._fileCleanupTimer)},E.prototype.send=function(R,C){return p(this,void 0,void 0,function(){var A,O,z,X,Y=this;return g(this,function(me){return R&&(A=this._redirectedHost||this._config.endpointUrl,O={method:"POST",withCredentials:!1,headers:{"Content-Type":"application/x-json-stream"}},z="",R.forEach(function(Ee){var Ie=Y._stringify(Ee);typeof Ie=="string"&&(z+=Ie+`
|
||
`)}),z.length>0&&(z=z.substring(0,z.length-1)),X=Buffer.from?Buffer.from(z):new Buffer(z),l.gzip(X,function(Ee,Ie){var De=Ie;Ee?(v.warn(Ee),De=X,O.headers["Content-Length"]=X.length.toString()):(O.headers["Content-Encoding"]="gzip",O.headers["Content-Length"]=Ie.length.toString()),v.info(E.TAG,O),O[y.disableCollectionRequestOption]=!0;var Ve=function(Xe){Xe.setEncoding("utf-8");var it="";Xe.on("data",function(Nt){it+=Nt}),Xe.on("end",function(){if(Y._numConsecutiveFailures=0,Y._enableDiskRetryMode){if(Xe.statusCode===200)Y._resendTimer||(Y._resendTimer=setTimeout(function(){Y._resendTimer=null,Y._sendFirstFileOnDisk()},Y._resendInterval),Y._resendTimer.unref());else if(Y._isRetriable(Xe.statusCode))try{var Nt=JSON.parse(it),yt=[];Nt.errors.forEach(function(ht){Y._isRetriable(ht.statusCode)&&yt.push(R[ht.index])}),yt.length>0&&Y._storeToDisk(yt)}catch(ht){Y._storeToDisk(R)}}if(Xe.statusCode===307||Xe.statusCode===308)if(Y._numConsecutiveRedirects++,Y._numConsecutiveRedirects<10){var Qt=Xe.headers.location?Xe.headers.location.toString():null;Qt&&(Y._redirectedHost=Qt,Y.send(R,C))}else typeof C=="function"&&C("Error sending telemetry because of circular redirects.");else Y._numConsecutiveRedirects=0,typeof C=="function"&&C(it),v.info(E.TAG,it),typeof Y._onSuccess=="function"&&Y._onSuccess(it)})},Qe=f.makeRequest(Y._config,A,O,Ve);Qe.on("error",function(Xe){if(Y._numConsecutiveFailures++,!Y._enableDiskRetryMode||Y._numConsecutiveFailures>0&&Y._numConsecutiveFailures%E.MAX_CONNECTION_FAILURES_BEFORE_WARN==0){var it="Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:";Y._enableDiskRetryMode&&(it="Ingestion endpoint could not be reached "+Y._numConsecutiveFailures+" consecutive times. There may be resulting telemetry loss. Most recent error:"),v.warn(E.TAG,it,f.dumpObj(Xe))}else{var it="Transient failure to reach ingestion endpoint. This batch of telemetry items will be retried. Error:";v.info(E.TAG,it,f.dumpObj(Xe))}Y._onErrorHelper(Xe),typeof C=="function"&&(Xe&&C(f.dumpObj(Xe)),C("Error sending telemetry")),Y._enableDiskRetryMode&&Y._storeToDisk(R)}),Qe.write(De),Qe.end()})),[2]})})},E.prototype.saveOnCrash=function(R){this._enableDiskRetryMode&&this._storeToDiskSync(this._stringify(R))},E.prototype._isRetriable=function(R){return R===206||R===408||R===429||R===439||R===500||R===503},E.prototype._runICACLS=function(R,C){var A=c.spawn(E.ICACLS_PATH,R,{windowsHide:!0});A.on("error",function(O){return C(O)}),A.on("close",function(O,z){return C(O===0?null:new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+O+")"))})},E.prototype._runICACLSSync=function(R){if(c.spawnSync){var C=c.spawnSync(E.ICACLS_PATH,R,{windowsHide:!0});if(C.error)throw C.error;if(C.status!==0)throw new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+C.status+")")}else throw new Error("Could not synchronously call ICACLS under current version of Node.js")},E.prototype._getACLIdentity=function(R){if(E.ACL_IDENTITY)return R(null,E.ACL_IDENTITY);var C=c.spawn(E.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]}),A="";C.stdout.on("data",function(O){return A+=O}),C.on("error",function(O){return R(O,null)}),C.on("close",function(O,z){return E.ACL_IDENTITY=A&&A.trim(),R(O===0?null:new Error("Getting ACL identity did not succeed (PS returned code "+O+")"),E.ACL_IDENTITY)})},E.prototype._getACLIdentitySync=function(){if(E.ACL_IDENTITY)return E.ACL_IDENTITY;if(c.spawnSync){var R=c.spawnSync(E.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]});if(R.error)throw R.error;if(R.status!==0)throw new Error("Getting ACL identity did not succeed (PS returned code "+R.status+")");return E.ACL_IDENTITY=R.stdout&&R.stdout.toString().trim(),E.ACL_IDENTITY}else throw new Error("Could not synchronously get ACL identity under current version of Node.js")},E.prototype._getACLArguments=function(R,C){return[R,"/grant","*S-1-5-32-544:(OI)(CI)F","/grant",C+":(OI)(CI)F","/inheritance:r"]},E.prototype._applyACLRules=function(R,C){var A=this;if(!E.USE_ICACLS)return C(null);if(E.ACLED_DIRECTORIES[R]===void 0)E.ACLED_DIRECTORIES[R]=!1,this._getACLIdentity(function(O,z){if(O)return E.ACLED_DIRECTORIES[R]=!1,C(O);A._runICACLS(A._getACLArguments(R,z),function(X){return E.ACLED_DIRECTORIES[R]=!X,C(X)})});else return C(E.ACLED_DIRECTORIES[R]?null:new Error("Setting ACL restrictions did not succeed (cached result)"))},E.prototype._applyACLRulesSync=function(R){if(E.USE_ICACLS){if(E.ACLED_DIRECTORIES[R]===void 0){this._runICACLSSync(this._getACLArguments(R,this._getACLIdentitySync())),E.ACLED_DIRECTORIES[R]=!0;return}else if(!E.ACLED_DIRECTORIES[R])throw new Error("Setting ACL restrictions did not succeed (cached result)")}},E.prototype._confirmDirExists=function(R,C){var A=this;_.lstat(R,function(O,z){O&&O.code==="ENOENT"?_.mkdir(R,function(X){X&&X.code!=="EEXIST"?C(X):A._applyACLRules(R,C)}):!O&&z.isDirectory()?A._applyACLRules(R,C):C(O||new Error("Path existed but was not a directory"))})},E.prototype._getShallowDirectorySize=function(R,C){_.readdir(R,function(A,O){if(A)return C(A,-1);var z=null,X=0,Y=0;if(O.length===0){C(null,0);return}for(var me=0;me<O.length;me++)_.stat(u.join(R,O[me]),function(Ee,Ie){Y++,Ee?z=Ee:Ie.isFile()&&(X+=Ie.size),Y===O.length&&(z?C(z,-1):C(z,X))})})},E.prototype._getShallowDirectorySizeSync=function(R){for(var C=_.readdirSync(R),A=0,O=0;O<C.length;O++)A+=_.statSync(u.join(R,C[O])).size;return A},E.prototype._storeToDisk=function(R){var C=this;v.info(E.TAG,"Checking existence of data storage directory: "+this._tempDir),this._confirmDirExists(this._tempDir,function(A){if(A){v.warn(E.TAG,"Error while checking/creating directory: "+(A&&A.message)),C._onErrorHelper(A);return}C._getShallowDirectorySize(C._tempDir,function(O,z){if(O||z<0){v.warn(E.TAG,"Error while checking directory size: "+(O&&O.message)),C._onErrorHelper(O);return}else if(z>C._maxBytesOnDisk){v.warn(E.TAG,"Not saving data due to max size limit being met. Directory size in bytes is: "+z);return}var X=new Date().getTime()+".ai.json",Y=u.join(C._tempDir,X);v.info(E.TAG,"saving data to disk at: "+Y),_.writeFile(Y,C._stringify(R),{mode:384},function(me){return C._onErrorHelper(me)})})})},E.prototype._storeToDiskSync=function(R){try{v.info(E.TAG,"Checking existence of data storage directory: "+this._tempDir),_.existsSync(this._tempDir)||_.mkdirSync(this._tempDir),this._applyACLRulesSync(this._tempDir);var C=this._getShallowDirectorySizeSync(this._tempDir);if(C>this._maxBytesOnDisk){v.info(E.TAG,"Not saving data due to max size limit being met. Directory size in bytes is: "+C);return}var A=new Date().getTime()+".ai.json",O=u.join(this._tempDir,A);v.info(E.TAG,"saving data before crash to disk at: "+O),_.writeFileSync(O,R,{mode:384})}catch(z){v.warn(E.TAG,"Error while saving data to disk: "+(z&&z.message)),this._onErrorHelper(z)}},E.prototype._sendFirstFileOnDisk=function(){var R=this;_.exists(this._tempDir,function(C){C&&_.readdir(R._tempDir,function(A,O){if(A)R._onErrorHelper(A);else if(O=O.filter(function(Y){return u.basename(Y).indexOf(".ai.json")>-1}),O.length>0){var z=O[0],X=u.join(R._tempDir,z);_.readFile(X,function(Y,me){Y?R._onErrorHelper(Y):_.unlink(X,function(Ee){if(Ee)R._onErrorHelper(Ee);else try{var Ie=JSON.parse(me.toString());R.send(Ie)}catch(De){v.warn("Failed to read persisted file",De)}})})}})})},E.prototype._onErrorHelper=function(R){typeof this._onError=="function"&&this._onError(R)},E.prototype._stringify=function(R){try{return JSON.stringify(R)}catch(C){v.warn("Failed to serialize payload",C,R)}},E.prototype._fileCleanupTask=function(){var R=this;_.exists(this._tempDir,function(C){C&&_.readdir(R._tempDir,function(A,O){A?R._onErrorHelper(A):(O=O.filter(function(z){return u.basename(z).indexOf(".ai.json")>-1}),O.length>0&&O.forEach(function(z){var X=new Date(parseInt(z.split(".ai.json")[0])),Y=new Date(+new Date-E.FILE_RETEMPTION_PERIOD)>X;if(Y){var me=u.join(R._tempDir,z);_.unlink(me,function(Ee){Ee&&R._onErrorHelper(Ee)})}}))})})},E.TAG="Sender",E.ICACLS_PATH=process.env.systemdrive+"/windows/system32/icacls.exe",E.POWERSHELL_PATH=process.env.systemdrive+"/windows/system32/windowspowershell/v1.0/powershell.exe",E.ACLED_DIRECTORIES={},E.ACL_IDENTITY=null,E.WAIT_BETWEEN_RESEND=60*1e3,E.MAX_BYTES_ON_DISK=50*1024*1024,E.MAX_CONNECTION_FAILURES_BEFORE_WARN=5,E.CLEANUP_TIMEOUT=60*60*1e3,E.FILE_RETEMPTION_PERIOD=7*24*60*60*1e3,E.TEMPDIR_PREFIX="appInsights-node",E.OS_PROVIDES_FILE_PROTECTION=!1,E.USE_ICACLS=m.type()==="Windows_NT",E}();k.exports=b}),Hd=I((a,k)=>{"use strict";var p=sr(),g=yr(),_=Kn(),m=function(){function l(){}return l.createEnvelope=function(c,v,y,f,b){var E=null;switch(v){case p.TelemetryType.Trace:E=l.createTraceData(c);break;case p.TelemetryType.Dependency:E=l.createDependencyData(c);break;case p.TelemetryType.Event:E=l.createEventData(c);break;case p.TelemetryType.Exception:E=l.createExceptionData(c);break;case p.TelemetryType.Request:E=l.createRequestData(c);break;case p.TelemetryType.Metric:E=l.createMetricData(c);break;case p.TelemetryType.Availability:E=l.createAvailabilityData(c);break;case p.TelemetryType.PageView:E=l.createPageViewData(c);break}if(y&&p.domainSupportsProperties(E.baseData)){if(E&&E.baseData)if(!E.baseData.properties)E.baseData.properties=y;else for(var R in y)E.baseData.properties[R]||(E.baseData.properties[R]=y[R]);E.baseData.properties=g.validateStringMap(E.baseData.properties)}var C=b&&b.instrumentationKey||"",A=new p.Envelope;return A.data=E,A.iKey=C,A.name="Microsoft.ApplicationInsights."+C.replace(/-/g,"")+"."+E.baseType.substr(0,E.baseType.length-4),A.tags=this.getTags(f,c.tagOverrides),A.time=new Date().toISOString(),A.ver=1,A.sampleRate=b?b.samplingPercentage:100,v===p.TelemetryType.Metric&&(A.sampleRate=100),A},l.createTraceData=function(c){var v=new p.MessageData;v.message=c.message,v.properties=c.properties,isNaN(c.severity)?v.severityLevel=p.SeverityLevel.Information:v.severityLevel=c.severity;var y=new p.Data;return y.baseType=p.telemetryTypeToBaseType(p.TelemetryType.Trace),y.baseData=v,y},l.createDependencyData=function(c){var v=new p.RemoteDependencyData;typeof c.name=="string"&&(v.name=c.name.length>1024?c.name.slice(0,1021)+"...":c.name),v.data=c.data,v.target=c.target,v.duration=g.msToTimeSpan(c.duration),v.success=c.success,v.type=c.dependencyTypeName,v.properties=c.properties,v.resultCode=c.resultCode?c.resultCode+"":"",c.id?v.id=c.id:v.id=g.w3cTraceId();var y=new p.Data;return y.baseType=p.telemetryTypeToBaseType(p.TelemetryType.Dependency),y.baseData=v,y},l.createEventData=function(c){var v=new p.EventData;v.name=c.name,v.properties=c.properties,v.measurements=c.measurements;var y=new p.Data;return y.baseType=p.telemetryTypeToBaseType(p.TelemetryType.Event),y.baseData=v,y},l.createExceptionData=function(c){var v=new p.ExceptionData;v.properties=c.properties,isNaN(c.severity)?v.severityLevel=p.SeverityLevel.Error:v.severityLevel=c.severity,v.measurements=c.measurements,v.exceptions=[];var y=c.exception.stack,f=new p.ExceptionDetails;f.message=c.exception.message,f.typeName=c.exception.name,f.parsedStack=this.parseStack(y),f.hasFullStack=g.isArray(f.parsedStack)&&f.parsedStack.length>0,v.exceptions.push(f);var b=new p.Data;return b.baseType=p.telemetryTypeToBaseType(p.TelemetryType.Exception),b.baseData=v,b},l.createRequestData=function(c){var v=new p.RequestData;c.id?v.id=c.id:v.id=g.w3cTraceId(),v.name=c.name,v.url=c.url,v.source=c.source,v.duration=g.msToTimeSpan(c.duration),v.responseCode=c.resultCode?c.resultCode+"":"",v.success=c.success,v.properties=c.properties;var y=new p.Data;return y.baseType=p.telemetryTypeToBaseType(p.TelemetryType.Request),y.baseData=v,y},l.createMetricData=function(c){var v=new p.MetricData;v.metrics=[];var y=new p.DataPoint;y.count=isNaN(c.count)?1:c.count,y.kind=p.DataPointType.Aggregation,y.max=isNaN(c.max)?c.value:c.max,y.min=isNaN(c.min)?c.value:c.min,y.name=c.name,y.stdDev=isNaN(c.stdDev)?0:c.stdDev,y.value=c.value,v.metrics.push(y),v.properties=c.properties;var f=new p.Data;return f.baseType=p.telemetryTypeToBaseType(p.TelemetryType.Metric),f.baseData=v,f},l.createAvailabilityData=function(c){var v=new p.AvailabilityData;c.id?v.id=c.id:v.id=g.w3cTraceId(),v.name=c.name,v.duration=g.msToTimeSpan(c.duration),v.success=c.success,v.runLocation=c.runLocation,v.message=c.message,v.measurements=c.measurements,v.properties=c.properties;var y=new p.Data;return y.baseType=p.telemetryTypeToBaseType(p.TelemetryType.Availability),y.baseData=v,y},l.createPageViewData=function(c){var v=new p.PageViewData;v.name=c.name,v.duration=g.msToTimeSpan(c.duration),v.url=c.url,v.measurements=c.measurements,v.properties=c.properties;var y=new p.Data;return y.baseType=p.telemetryTypeToBaseType(p.TelemetryType.PageView),y.baseData=v,y},l.getTags=function(c,v){var y=_.CorrelationContextManager.getCurrentContext(),f={};if(c&&c.tags)for(var b in c.tags)f[b]=c.tags[b];if(v)for(var b in v)f[b]=v[b];return y&&(f[c.keys.operationId]=f[c.keys.operationId]||y.operation.id,f[c.keys.operationName]=f[c.keys.operationName]||y.operation.name,f[c.keys.operationParentId]=f[c.keys.operationParentId]||y.operation.parentId),f},l.parseStack=function(c){var v=void 0;if(typeof c=="string"){var y=c.split(`
|
||
`);v=[];for(var f=0,b=0,E=0;E<=y.length;E++){var R=y[E];if(u.regex.test(R)){var C=new u(y[E],f++);b+=C.sizeInBytes,v.push(C)}}var A=32*1024;if(b>A)for(var O=0,z=v.length-1,X=0,Y=O,me=z;O<z;){var Ee=v[O].sizeInBytes,Ie=v[z].sizeInBytes;if(X+=Ee+Ie,X>A){var De=me-Y+1;v.splice(Y,De);break}Y=O,me=z,O++,z--}}return v},l}(),u=function(){function l(c,v){this.sizeInBytes=0,this.level=v,this.method="<no_method>",this.assembly=g.trim(c);var y=c.match(l.regex);y&&y.length>=5&&(this.method=g.trim(y[2])||this.method,this.fileName=g.trim(y[4])||"<no_filename>",this.line=parseInt(y[5])||0),this.sizeInBytes+=this.method.length,this.sizeInBytes+=this.fileName.length,this.sizeInBytes+=this.assembly.length,this.sizeInBytes+=l.baseSize,this.sizeInBytes+=this.level.toString().length,this.sizeInBytes+=this.line.toString().length}return l.regex=/^(\s+at)?(.*?)(\@|\s\(|\s)([^\(\n]+):(\d+):(\d+)(\)?)$/,l.baseSize=58,l}();k.exports=m}),La=I((a,k)=>{"use strict";var p=U(7310),g=Gr(),_=As(),m=sr(),u=Ma(),l=Bd(),c=Kn(),v=Os(),y=yr(),f=oe(),b=Hd(),E=function(){function R(C){this._telemetryProcessors=[],this._enableAzureProperties=!1;var A=new g(C);this.config=A,this.context=new _,this.commonProperties={};var O=new v(this.config);this.channel=new u(function(){return A.disableAppInsights},function(){return A.maxBatchSize},function(){return A.maxBatchIntervalMs},O)}return R.prototype.trackAvailability=function(C){this.track(C,m.TelemetryType.Availability)},R.prototype.trackPageView=function(C){this.track(C,m.TelemetryType.PageView)},R.prototype.trackTrace=function(C){this.track(C,m.TelemetryType.Trace)},R.prototype.trackMetric=function(C){this.track(C,m.TelemetryType.Metric)},R.prototype.trackException=function(C){C&&C.exception&&!y.isError(C.exception)&&(C.exception=new Error(C.exception.toString())),this.track(C,m.TelemetryType.Exception)},R.prototype.trackEvent=function(C){this.track(C,m.TelemetryType.Event)},R.prototype.trackRequest=function(C){this.track(C,m.TelemetryType.Request)},R.prototype.trackDependency=function(C){C&&!C.target&&C.data&&(C.target=p.parse(C.data).host),this.track(C,m.TelemetryType.Dependency)},R.prototype.flush=function(C){this.channel.triggerSend(C?!!C.isAppCrashing:!1,C?C.callback:void 0)},R.prototype.track=function(C,A){if(C&&m.telemetryTypeToBaseType(A)){var O=b.createEnvelope(C,A,this.commonProperties,this.context,this.config);C.time&&(O.time=C.time.toISOString()),this._enableAzureProperties&&l.azureRoleEnvironmentTelemetryProcessor(O,this.context);var z=this.runTelemetryProcessors(O,C.contextObjects);z=z&&l.samplingTelemetryProcessor(O,{correlationContext:c.CorrelationContextManager.getCurrentContext()}),l.preAggregatedMetricsTelemetryProcessor(O,this.context),z&&(l.performanceMetricsTelemetryProcessor(O,this.quickPulseClient),this.channel.send(O))}else f.warn("track() requires telemetry object and telemetryType to be specified.")},R.prototype.setAutoPopulateAzureProperties=function(C){this._enableAzureProperties=C},R.prototype.addTelemetryProcessor=function(C){this._telemetryProcessors.push(C)},R.prototype.clearTelemetryProcessors=function(){this._telemetryProcessors=[]},R.prototype.runTelemetryProcessors=function(C,A){var O=!0,z=this._telemetryProcessors.length;if(z===0)return O;A=A||{},A.correlationContext=c.CorrelationContextManager.getCurrentContext();for(var X=0;X<z;++X)try{var Y=this._telemetryProcessors[X];if(Y&&Y.apply(null,[C,A])===!1){O=!1;break}}catch(me){O=!0,f.warn("One of telemetry processors failed, telemetry item will be sent.",me,C)}return O&&(C&&C.tags&&(C.tags=y.validateStringMap(C.tags)),C&&C.data&&C.data.baseData&&C.data.baseData.properties&&(C.data.baseData.properties=y.validateStringMap(C.data.baseData.properties))),O},R}();k.exports=E}),jd=I((a,k)=>{"use strict";var p=a&&a.__extends||function(){var c=function(v,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(f[E]=b[E])},c(v,y)};return function(v,y){c(v,y);function f(){this.constructor=v}v.prototype=y===null?Object.create(y):(f.prototype=y.prototype,new f)}}(),g=La(),_=bn(),m=ma(),u=oe(),l=function(c){p(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.trackNodeHttpRequestSync=function(y){y&&y.request&&y.response&&y.duration?_.trackRequestSync(this,y):u.warn("trackNodeHttpRequestSync requires NodeHttpRequestTelemetry object with request, response and duration specified.")},v.prototype.trackNodeHttpRequest=function(y){(y.duration||y.error)&&u.warn("trackNodeHttpRequest will ignore supplied duration and error parameters. These values are collected from the request and response objects."),y&&y.request&&y.response?_.trackRequest(this,y):u.warn("trackNodeHttpRequest requires NodeHttpRequestTelemetry object with request and response specified.")},v.prototype.trackNodeHttpDependency=function(y){y&&y.request?m.trackRequest(this,y):u.warn("trackNodeHttpDependency requires NodeHttpDependencyTelemetry object with request specified.")},v}(g);k.exports=l}),zd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})}),Qd=I(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.dispose=a.Configuration=a.wrapWithCorrelationContext=a.startOperation=a.getCorrelationContext=a.start=a.setup=a.liveMetricsClient=a.defaultClient=a.DistributedTracingModes=void 0;var k=Kn(),p=Pd(),g=Ds(),_=ca(),m=Dd(),u=Ud(),l=ma(),c=bn(),v=wn(),y=oe(),f=Is(),b=xa();a.TelemetryClient=jd(),a.Contracts=sr(),a.azureFunctionsTypes=zd();var E;(function(st){st[st.AI=0]="AI",st[st.AI_AND_W3C=1]="AI_AND_W3C"})(E=a.DistributedTracingModes||(a.DistributedTracingModes={}));var R=!0,C=!1,A=!0,O=!0,z=!0,X=!1,Y=!0,me=!0,Ee=!0,Ie=!0,De,Ve=!1,Qe=!0,Xe,it=void 0,Nt=void 0,yt,Qt,ht,He,et,Je,at,ct,Et=!1,ut;function qt(st){return a.defaultClient?y.info("The default client is already setup"):(a.defaultClient=new a.TelemetryClient(st),yt=new p(a.defaultClient),Qt=new g(a.defaultClient),ht=new _(a.defaultClient),He=new m(a.defaultClient),et=new u(a.defaultClient),at=new c(a.defaultClient),ct=new l(a.defaultClient),Je||(Je=new b.AutoCollectNativePerformance(a.defaultClient))),a.defaultClient&&a.defaultClient.channel&&a.defaultClient.channel.setUseDiskRetryCaching(Ee,it,Nt),Si}a.setup=qt;function oi(){return a.defaultClient?(Et=!0,yt.enable(R,C),Qt.enable(A),ht.enable(O),He.enable(z),et.enable(X,a.defaultClient.config),Je.enable(Qe,Xe),at.useAutoCorrelation(Ie,De),at.enable(Y),ct.enable(me),a.liveMetricsClient&&Ve&&a.liveMetricsClient.enable(Ve)):y.warn("Start cannot be called before setup"),Si}a.start=oi;function ii(){return Ie?k.CorrelationContextManager.getCurrentContext():null}a.getCorrelationContext=ii;function Wt(st,pt){return k.CorrelationContextManager.startOperation(st,pt)}a.startOperation=Wt;function Ot(st,pt){return k.CorrelationContextManager.wrapCallback(st,pt)}a.wrapWithCorrelationContext=Ot;var Si=function(){function st(){}return st.setDistributedTracingMode=function(pt){return v.w3cEnabled=pt===E.AI_AND_W3C,st},st.setAutoCollectConsole=function(pt,St){return St===void 0&&(St=!1),R=pt,C=St,Et&&yt.enable(pt,St),st},st.setAutoCollectExceptions=function(pt){return A=pt,Et&&Qt.enable(pt),st},st.setAutoCollectPerformance=function(pt,St){St===void 0&&(St=!0),O=pt;var Ft=b.AutoCollectNativePerformance.parseEnabled(St);return Qe=Ft.isEnabled,Xe=Ft.disabledMetrics,Et&&(ht.enable(pt),Je.enable(Ft.isEnabled,Ft.disabledMetrics)),st},st.setAutoCollectPreAggregatedMetrics=function(pt){return z=pt,Et&&He.enable(pt),st},st.setAutoCollectHeartbeat=function(pt){return X=pt,Et&&et.enable(pt,a.defaultClient.config),st},st.setAutoCollectRequests=function(pt){return Y=pt,Et&&at.enable(pt),st},st.setAutoCollectDependencies=function(pt){return me=pt,Et&&ct.enable(pt),st},st.setAutoDependencyCorrelation=function(pt,St){return Ie=pt,De=St,Et&&at.useAutoCorrelation(pt,St),st},st.setUseDiskRetryCaching=function(pt,St,Ft){return Ee=pt,it=St,Nt=Ft,a.defaultClient&&a.defaultClient.channel&&a.defaultClient.channel.setUseDiskRetryCaching(pt,St,Ft),st},st.setInternalLogging=function(pt,St){return pt===void 0&&(pt=!1),St===void 0&&(St=!0),y.enableDebug=pt,y.disableWarnings=!St,st},st.setSendLiveMetrics=function(pt){return pt===void 0&&(pt=!1),a.defaultClient?(!a.liveMetricsClient&&pt?(a.liveMetricsClient=new f(a.defaultClient.config,null),ut=new _(a.liveMetricsClient,1e3,!0),a.liveMetricsClient.addCollector(ut),a.defaultClient.quickPulseClient=a.liveMetricsClient):a.liveMetricsClient&&a.liveMetricsClient.enable(pt),Ve=pt,st):(y.warn("Live metrics client cannot be setup without the default client"),st)},st.start=oi,st}();a.Configuration=Si;function Ri(){v.w3cEnabled=!0,a.defaultClient=null,Et=!1,yt&&yt.dispose(),Qt&&Qt.dispose(),ht&&ht.dispose(),He&&He.dispose(),et&&et.dispose(),Je&&Je.dispose(),at&&at.dispose(),ct&&ct.dispose(),a.liveMetricsClient&&(a.liveMetricsClient.enable(!1),Ve=!1,a.liveMetricsClient=void 0)}a.dispose=Ri});te(K,{default:()=>Kd});var Ua=G(U(2037)),tn=G(U(9496)),_i=G(U(9496)),Br=G(U(9496)),Hi;(function(a){a.ON="on",a.OFF="off"})(Hi||(Hi={}));function xs(){let a="telemetry",k="enableTelemetry";return Br.env.isTelemetryEnabled!==void 0?Br.env.isTelemetryEnabled?Hi.ON:Hi.OFF:Br.workspace.getConfiguration(a).get(k)?Hi.ON:Hi.OFF}var Ms=class{constructor(a,k,p,g,_){this.extensionId=a,this.extensionVersion=k,this.telemetryAppender=p,this.osShim=g,this.firstParty=!1,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this.firstParty=!!_,this.updateUserOptStatus(),_i.env.onDidChangeTelemetryEnabled!==void 0?(this.disposables.push(_i.env.onDidChangeTelemetryEnabled(()=>this.updateUserOptStatus())),this.disposables.push(_i.workspace.onDidChangeConfiguration(()=>this.updateUserOptStatus()))):this.disposables.push(_i.workspace.onDidChangeConfiguration(()=>this.updateUserOptStatus()))}updateUserOptStatus(){let a=xs();this.userOptIn=a===Hi.ON,this.errorOptIn=a===Hi.ON,(this.userOptIn||this.errorOptIn)&&this.telemetryAppender.instantiateAppender()}cleanRemoteName(a){if(!a)return"none";let k="other";return["ssh-remote","dev-container","attached-container","wsl","codespaces"].forEach(p=>{a.indexOf(`${p}+`)===0&&(k=p)}),k}get extension(){return this._extension===void 0&&(this._extension=_i.extensions.getExtension(this.extensionId)),this._extension}cloneAndChange(a,k){if(a===null||typeof a!="object"||typeof k!="function")return a;let p={};for(let g in a)p[g]=k(g,a[g]);return p}shouldSendErrorTelemetry(){return this.errorOptIn===!1?!1:this.firstParty?this.cleanRemoteName(_i.env.remoteName)!=="other"?!0:!(this.extension===void 0||this.extension.extensionKind===_i.ExtensionKind.Workspace||_i.env.uiKind===_i.UIKind.Web):!0}getCommonProperties(){let a=Object.create(null);if(a["common.os"]=this.osShim.platform,a["common.nodeArch"]=this.osShim.architecture,a["common.platformversion"]=(this.osShim.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),a["common.extname"]=this.extensionId,a["common.extversion"]=this.extensionVersion,_i&&_i.env){switch(a["common.vscodemachineid"]=_i.env.machineId,a["common.vscodesessionid"]=_i.env.sessionId,a["common.vscodeversion"]=_i.version,a["common.isnewappinstall"]=_i.env.isNewAppInstall?_i.env.isNewAppInstall.toString():"false",a["common.product"]=_i.env.appHost,_i.env.uiKind){case _i.UIKind.Web:a["common.uikind"]="web";break;case _i.UIKind.Desktop:a["common.uikind"]="desktop";break;default:a["common.uikind"]="unknown"}a["common.remotename"]=this.cleanRemoteName(_i.env.remoteName)}return a}anonymizeFilePaths(a,k){let p;if(a==null)return"";let g=[];_i.env.appRoot!==""&&g.push(new RegExp(_i.env.appRoot.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi")),this.extension&&g.push(new RegExp(this.extension.extensionPath.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"));let _=a;if(k){let m=[];for(let v of g)for(;(p=v.exec(a))&&p;)m.push([p.index,v.lastIndex]);let u=/^[\\/]?(node_modules|node_modules\.asar)[\\/]/,l=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-._]+(\\\\|\\|\/))+[\w-._]*/g,c=0;for(_="";(p=l.exec(a))&&p;)p[0]&&!u.test(p[0])&&m.every(([v,y])=>p.index<v||p.index>=y)&&(_+=a.substring(c,p.index)+"<REDACTED: user-file-path>",c=l.lastIndex);c<a.length&&(_+=a.substr(c))}for(let m of g)_=_.replace(m,"");return _}removePropertiesWithPossibleUserInfo(a){if(typeof a!="object")return;let k=Object.create(null);for(let p of Object.keys(a)){let g=a[p];if(!g)continue;let _=/@[a-zA-Z0-9-.]+/;/(key|token|sig|signature|password|passwd|pwd)[="':\s]/.test(g.toLowerCase())?k[p]="<REDACTED: secret>":_.test(g)?k[p]="<REDACTED: email>":k[p]=g}return k}sendTelemetryEvent(a,k,p){if(this.userOptIn&&a!==""){k=$($({},k),this.getCommonProperties());let g=this.cloneAndChange(k,(_,m)=>this.anonymizeFilePaths(m,this.firstParty));this.telemetryAppender.logEvent(`${this.extensionId}/${a}`,{properties:this.removePropertiesWithPossibleUserInfo(g),measurements:p})}}sendRawTelemetryEvent(a,k,p){this.userOptIn&&a!==""&&(k=$($({},k),this.getCommonProperties()),this.telemetryAppender.logEvent(`${this.extensionId}/${a}`,{properties:k,measurements:p}))}sendTelemetryErrorEvent(a,k,p,g){if(this.errorOptIn&&a!==""){k=$($({},k),this.getCommonProperties());let _=this.cloneAndChange(k,(m,u)=>this.shouldSendErrorTelemetry()?this.anonymizeFilePaths(u,this.firstParty):g===void 0||g.indexOf(m)!==-1?"REDACTED":this.anonymizeFilePaths(u,this.firstParty));this.telemetryAppender.logEvent(`${this.extensionId}/${a}`,{properties:this.removePropertiesWithPossibleUserInfo(_),measurements:p})}}sendTelemetryException(a,k,p){if(this.shouldSendErrorTelemetry()&&this.errorOptIn&&a){k=$($({},k),this.getCommonProperties());let g=this.cloneAndChange(k,(_,m)=>this.anonymizeFilePaths(m,this.firstParty));a.stack&&(a.stack=this.anonymizeFilePaths(a.stack,this.firstParty)),this.telemetryAppender.logException(a,{properties:this.removePropertiesWithPossibleUserInfo(g),measurements:p})}}dispose(){return this.telemetryAppender.flush(),Promise.all(this.disposables.map(a=>a.dispose()))}},Va=class{constructor(a,k){this._isInstantiated=!1,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=k,this._key=a,xs()!==Hi.OFF&&this.instantiateAppender()}logEvent(a,k){if(!this._telemetryClient){!this._isInstantiated&&xs()===Hi.ON&&this._eventQueue.push({eventName:a,data:k});return}this._telemetryClient.logEvent(a,k)}logException(a,k){if(!this._telemetryClient){!this._isInstantiated&&xs()!==Hi.OFF&&this._exceptionQueue.push({exception:a,data:k});return}this._telemetryClient.logException(a,k)}async flush(){this._telemetryClient&&(await this._telemetryClient.flush(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach(({eventName:a,data:k})=>this.logEvent(a,k)),this._eventQueue=[],this._exceptionQueue.forEach(({exception:a,data:k})=>this.logException(a,k)),this._exceptionQueue=[]}instantiateAppender(){this._isInstantiated||this._clientFactory(this._key).then(a=>{this._telemetryClient=a,this._isInstantiated=!0,this._flushQueues()}).catch(a=>{console.error(a)})}},Wd=async a=>{let k;try{process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL="1";let p=await Promise.resolve().then(()=>G(Qd()));p.defaultClient?(k=new p.TelemetryClient(a),k.channel.setUseDiskRetryCaching(!0)):(p.setup(a).setAutoCollectRequests(!1).setAutoCollectPerformance(!1).setAutoCollectExceptions(!1).setAutoCollectDependencies(!1).setAutoDependencyCorrelation(!1).setAutoCollectConsole(!1).setAutoCollectHeartbeat(!1).setUseDiskRetryCaching(!0).start(),k=p.defaultClient),tn&&tn.env&&(k.context.tags[k.context.keys.userId]=tn.env.machineId,k.context.tags[k.context.keys.sessionId]=tn.env.sessionId,k.context.tags[k.context.keys.cloudRole]=tn.env.appName,k.context.tags[k.context.keys.cloudRoleInstance]=tn.env.appName),a&&a.indexOf("AIF-")===0&&(k.config.endpointUrl="https://vortex.data.microsoft.com/collect/v1")}catch(p){return Promise.reject(p)}return{logEvent:(p,g)=>{k==null||k.trackEvent({name:p,properties:g==null?void 0:g.properties,measurements:g==null?void 0:g.measurements})},logException:(p,g)=>{k==null||k.trackException({exception:p,properties:g==null?void 0:g.properties,measurements:g==null?void 0:g.measurements})},flush:async()=>{k==null||k.flush()}}},Kd=class extends Ms{constructor(a,k,p,g){let _=new Va(p,Wd);p&&p.indexOf("AIF-")===0&&(g=!0),super(a,k,_,{release:Ua.release(),platform:Ua.platform(),architecture:Ua.arch()},g)}}},3255:d=>{function K(U){var B=new Error("Cannot find module '"+U+"'");throw B.code="MODULE_NOT_FOUND",B}K.keys=()=>[],K.resolve=K,K.id=3255,d.exports=K},9118:d=>{function K(U){var B=new Error("Cannot find module '"+U+"'");throw B.code="MODULE_NOT_FOUND",B}K.keys=()=>[],K.resolve=K,K.id=9118,d.exports=K},9035:(d,K,U)=>{"use strict";var B;B={value:!0};var re=U(5654);K.X7=re.getExperimentationService,B=re.getExperimentationServiceAsync;var Q=U(2560);K.aU=Q.TargetPopulation},5708:(d,K)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});class U{constructor(re){this.mementoGlobalStorage=re}async getValue(re,Q){return await this.mementoGlobalStorage.get(re)||Q}setValue(re,Q){this.mementoGlobalStorage.update(re,Q)}}K.MementoKeyValueStorage=U},2560:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});const B=U(9496);class re{constructor(x,L,D){this.extensionName=x,this.extensionVersion=L,this.targetPopulation=D}static trimVersionSuffix(x){const L=/\-[a-zA-Z0-9]+$/;return x.split(L)[0]}getFilterValue(x){switch(x){case Q.ApplicationVersion:return re.trimVersionSuffix(B.version);case Q.Build:return B.env.appName;case Q.ClientId:return B.env.machineId;case Q.ExtensionName:return this.extensionName;case Q.ExtensionVersion:return re.trimVersionSuffix(this.extensionVersion);case Q.Language:return B.env.language;case Q.TargetPopulation:return this.targetPopulation;default:return""}}getFilters(){let x=new Map,L=Object.values(Q);for(let D of L)x.set(D,this.getFilterValue(D));return x}}K.VSCodeFilterProvider=re;var Q;(function(q){q.Market="X-MSEdge-Market",q.CorpNet="X-FD-Corpnet",q.ApplicationVersion="X-VSCode-AppVersion",q.Build="X-VSCode-Build",q.ClientId="X-MSEdge-ClientId",q.ExtensionName="X-VSCode-ExtensionName",q.ExtensionVersion="X-VSCode-ExtensionVersion",q.Language="X-VSCode-Language",q.TargetPopulation="X-VSCode-TargetPopulation"})(Q=K.Filters||(K.Filters={}));var M;(function(q){q.Team="team",q.Internal="internal",q.Insiders="insider",q.Public="public"})(M=K.TargetPopulation||(K.TargetPopulation={}))},5654:(d,K,U)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});const B=U(2560),re=U(4802),Q=U(5708),M="https://default.exp-tas.com/vscode/ab",q="query-expfeature",x="VSCode.ABExp.Features",L="abexp.assignmentcontext",D="VSCode.ABExp.FeatureData",H=1e3*60*30;function $(I,te,W,G,oe,...J){if(!oe)throw new Error("Memento storage was not provided.");const _e=[new B.VSCodeFilterProvider(I,te,W),...J],Le=new Q.MementoKeyValueStorage(oe);return new re.ExperimentationService({filterProviders:_e,telemetry:G,storageKey:D,keyValueStorage:Le,featuresTelemetryPropertyName:x,assignmentContextTelemetryPropertyName:L,telemetryEventName:q,endpoint:M,refetchInterval:H})}K.getExperimentationService=$;async function se(I,te,W,G,oe,...J){const Ce=$(I,te,W,G,oe,...J);return await Ce.initializePromise,Ce}K.getExperimentationServiceAsync=se},2479:d=>{d.exports=K;function K(U,B){if(U&&B)return K(U)(B);if(typeof U!="function")throw new TypeError("need wrapper function");return Object.keys(U).forEach(function(Q){re[Q]=U[Q]}),re;function re(){for(var Q=new Array(arguments.length),M=0;M<Q.length;M++)Q[M]=arguments[M];var q=U.apply(this,Q),x=Q[Q.length-1];return typeof q=="function"&&q!==x&&Object.keys(x).forEach(function(L){q[L]=x[L]}),q}}},9602:d=>{"use strict";d.exports=function(K){K.prototype[Symbol.iterator]=function*(){for(let U=this.head;U;U=U.next)yield U.value}}},4411:(d,K,U)=>{"use strict";d.exports=B,B.Node=q,B.create=B;function B(x){var L=this;if(L instanceof B||(L=new B),L.tail=null,L.head=null,L.length=0,x&&typeof x.forEach=="function")x.forEach(function($){L.push($)});else if(arguments.length>0)for(var D=0,H=arguments.length;D<H;D++)L.push(arguments[D]);return L}B.prototype.removeNode=function(x){if(x.list!==this)throw new Error("removing node which does not belong to this list");var L=x.next,D=x.prev;return L&&(L.prev=D),D&&(D.next=L),x===this.head&&(this.head=L),x===this.tail&&(this.tail=D),x.list.length--,x.next=null,x.prev=null,x.list=null,L},B.prototype.unshiftNode=function(x){if(x!==this.head){x.list&&x.list.removeNode(x);var L=this.head;x.list=this,x.next=L,L&&(L.prev=x),this.head=x,this.tail||(this.tail=x),this.length++}},B.prototype.pushNode=function(x){if(x!==this.tail){x.list&&x.list.removeNode(x);var L=this.tail;x.list=this,x.prev=L,L&&(L.next=x),this.tail=x,this.head||(this.head=x),this.length++}},B.prototype.push=function(){for(var x=0,L=arguments.length;x<L;x++)Q(this,arguments[x]);return this.length},B.prototype.unshift=function(){for(var x=0,L=arguments.length;x<L;x++)M(this,arguments[x]);return this.length},B.prototype.pop=function(){if(!!this.tail){var x=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,x}},B.prototype.shift=function(){if(!!this.head){var x=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,x}},B.prototype.forEach=function(x,L){L=L||this;for(var D=this.head,H=0;D!==null;H++)x.call(L,D.value,H,this),D=D.next},B.prototype.forEachReverse=function(x,L){L=L||this;for(var D=this.tail,H=this.length-1;D!==null;H--)x.call(L,D.value,H,this),D=D.prev},B.prototype.get=function(x){for(var L=0,D=this.head;D!==null&&L<x;L++)D=D.next;if(L===x&&D!==null)return D.value},B.prototype.getReverse=function(x){for(var L=0,D=this.tail;D!==null&&L<x;L++)D=D.prev;if(L===x&&D!==null)return D.value},B.prototype.map=function(x,L){L=L||this;for(var D=new B,H=this.head;H!==null;)D.push(x.call(L,H.value,this)),H=H.next;return D},B.prototype.mapReverse=function(x,L){L=L||this;for(var D=new B,H=this.tail;H!==null;)D.push(x.call(L,H.value,this)),H=H.prev;return D},B.prototype.reduce=function(x,L){var D,H=this.head;if(arguments.length>1)D=L;else if(this.head)H=this.head.next,D=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var $=0;H!==null;$++)D=x(D,H.value,$),H=H.next;return D},B.prototype.reduceReverse=function(x,L){var D,H=this.tail;if(arguments.length>1)D=L;else if(this.tail)H=this.tail.prev,D=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var $=this.length-1;H!==null;$--)D=x(D,H.value,$),H=H.prev;return D},B.prototype.toArray=function(){for(var x=new Array(this.length),L=0,D=this.head;D!==null;L++)x[L]=D.value,D=D.next;return x},B.prototype.toArrayReverse=function(){for(var x=new Array(this.length),L=0,D=this.tail;D!==null;L++)x[L]=D.value,D=D.prev;return x},B.prototype.slice=function(x,L){L=L||this.length,L<0&&(L+=this.length),x=x||0,x<0&&(x+=this.length);var D=new B;if(L<x||L<0)return D;x<0&&(x=0),L>this.length&&(L=this.length);for(var H=0,$=this.head;$!==null&&H<x;H++)$=$.next;for(;$!==null&&H<L;H++,$=$.next)D.push($.value);return D},B.prototype.sliceReverse=function(x,L){L=L||this.length,L<0&&(L+=this.length),x=x||0,x<0&&(x+=this.length);var D=new B;if(L<x||L<0)return D;x<0&&(x=0),L>this.length&&(L=this.length);for(var H=this.length,$=this.tail;$!==null&&H>L;H--)$=$.prev;for(;$!==null&&H>x;H--,$=$.prev)D.push($.value);return D},B.prototype.splice=function(x,L,...D){x>this.length&&(x=this.length-1),x<0&&(x=this.length+x);for(var H=0,$=this.head;$!==null&&H<x;H++)$=$.next;for(var se=[],H=0;$&&H<L;H++)se.push($.value),$=this.removeNode($);$===null&&($=this.tail),$!==this.head&&$!==this.tail&&($=$.prev);for(var H=0;H<D.length;H++)$=re(this,$,D[H]);return se},B.prototype.reverse=function(){for(var x=this.head,L=this.tail,D=x;D!==null;D=D.prev){var H=D.prev;D.prev=D.next,D.next=H}return this.head=L,this.tail=x,this};function re(x,L,D){var H=L===x.head?new q(D,null,L,x):new q(D,L,L.next,x);return H.next===null&&(x.tail=H),H.prev===null&&(x.head=H),x.length++,H}function Q(x,L){x.tail=new q(L,x.tail,null,x),x.head||(x.head=x.tail),x.length++}function M(x,L){x.head=new q(L,null,x.head,x),x.tail||(x.tail=x.head),x.length++}function q(x,L,D,H){if(!(this instanceof q))return new q(x,L,D,H);this.list=H,this.value=x,L?(L.next=this,this.prev=L):this.prev=null,D?(D.prev=this,this.next=D):this.next=null}try{U(9602)(B)}catch(x){}},9329:(d,K,U)=>{d.exports=U(516).Observable},516:(d,K)=>{"use strict";var U;U={value:!0},K.Observable=void 0;function B(Z,ae){if(!(Z instanceof ae))throw new TypeError("Cannot call a class as a function")}function re(Z,ae){for(var ee=0;ee<ae.length;ee++){var he=ae[ee];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(Z,he.key,he)}}function Q(Z,ae,ee){return ae&&re(Z.prototype,ae),ee&&re(Z,ee),Z}var M=function(){return typeof Symbol=="function"},q=function(Z){return M()&&Boolean(Symbol[Z])},x=function(Z){return q(Z)?Symbol[Z]:"@@"+Z};M()&&!q("observable")&&(Symbol.observable=Symbol("observable"));var L=x("iterator"),D=x("observable"),H=x("species");function $(Z,ae){var ee=Z[ae];if(ee!=null){if(typeof ee!="function")throw new TypeError(ee+" is not a function");return ee}}function se(Z){var ae=Z.constructor;return ae!==void 0&&(ae=ae[H],ae===null&&(ae=void 0)),ae!==void 0?ae:pe}function I(Z){return Z instanceof pe}function te(Z){te.log?te.log(Z):setTimeout(function(){throw Z})}function W(Z){Promise.resolve().then(function(){try{Z()}catch(ae){te(ae)}})}function G(Z){var ae=Z._cleanup;if(ae!==void 0&&(Z._cleanup=void 0,!!ae))try{if(typeof ae=="function")ae();else{var ee=$(ae,"unsubscribe");ee&&ee.call(ae)}}catch(he){te(he)}}function oe(Z){Z._observer=void 0,Z._queue=void 0,Z._state="closed"}function J(Z){var ae=Z._queue;if(!!ae){Z._queue=void 0,Z._state="ready";for(var ee=0;ee<ae.length&&(Ce(Z,ae[ee].type,ae[ee].value),Z._state!=="closed");++ee);}}function Ce(Z,ae,ee){Z._state="running";var he=Z._observer;try{var Pe=$(he,ae);switch(ae){case"next":Pe&&Pe.call(he,ee);break;case"error":if(oe(Z),Pe)Pe.call(he,ee);else throw ee;break;case"complete":oe(Z),Pe&&Pe.call(he);break}}catch(Ne){te(Ne)}Z._state==="closed"?G(Z):Z._state==="running"&&(Z._state="ready")}function _e(Z,ae,ee){if(Z._state!=="closed"){if(Z._state==="buffering"){Z._queue.push({type:ae,value:ee});return}if(Z._state!=="ready"){Z._state="buffering",Z._queue=[{type:ae,value:ee}],W(function(){return J(Z)});return}Ce(Z,ae,ee)}}var Le=function(){function Z(ae,ee){B(this,Z),this._cleanup=void 0,this._observer=ae,this._queue=void 0,this._state="initializing";var he=new fe(this);try{this._cleanup=ee.call(void 0,he)}catch(Pe){he.error(Pe)}this._state==="initializing"&&(this._state="ready")}return Q(Z,[{key:"unsubscribe",value:function(){this._state!=="closed"&&(oe(this),G(this))}},{key:"closed",get:function(){return this._state==="closed"}}]),Z}(),fe=function(){function Z(ae){B(this,Z),this._subscription=ae}return Q(Z,[{key:"next",value:function(ee){_e(this._subscription,"next",ee)}},{key:"error",value:function(ee){_e(this._subscription,"error",ee)}},{key:"complete",value:function(){_e(this._subscription,"complete")}},{key:"closed",get:function(){return this._subscription._state==="closed"}}]),Z}(),pe=function(){function Z(ae){if(B(this,Z),!(this instanceof Z))throw new TypeError("Observable cannot be called as a function");if(typeof ae!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=ae}return Q(Z,[{key:"subscribe",value:function(ee){return(typeof ee!="object"||ee===null)&&(ee={next:ee,error:arguments[1],complete:arguments[2]}),new Le(ee,this._subscriber)}},{key:"forEach",value:function(ee){var he=this;return new Promise(function(Pe,Ne){if(typeof ee!="function"){Ne(new TypeError(ee+" is not a function"));return}function ke(){Re.unsubscribe(),Pe()}var Re=he.subscribe({next:function(tt){try{ee(tt,ke)}catch(Ze){Ne(Ze),Re.unsubscribe()}},error:Ne,complete:Pe})})}},{key:"map",value:function(ee){var he=this;if(typeof ee!="function")throw new TypeError(ee+" is not a function");var Pe=se(this);return new Pe(function(Ne){return he.subscribe({next:function(ke){try{ke=ee(ke)}catch(Re){return Ne.error(Re)}Ne.next(ke)},error:function(ke){Ne.error(ke)},complete:function(){Ne.complete()}})})}},{key:"filter",value:function(ee){var he=this;if(typeof ee!="function")throw new TypeError(ee+" is not a function");var Pe=se(this);return new Pe(function(Ne){return he.subscribe({next:function(ke){try{if(!ee(ke))return}catch(Re){return Ne.error(Re)}Ne.next(ke)},error:function(ke){Ne.error(ke)},complete:function(){Ne.complete()}})})}},{key:"reduce",value:function(ee){var he=this;if(typeof ee!="function")throw new TypeError(ee+" is not a function");var Pe=se(this),Ne=arguments.length>1,ke=!1,Re=arguments[1],tt=Re;return new Pe(function(Ze){return he.subscribe({next:function(bt){var _t=!ke;if(ke=!0,!_t||Ne)try{tt=ee(tt,bt)}catch(zt){return Ze.error(zt)}else tt=bt},error:function(bt){Ze.error(bt)},complete:function(){if(!ke&&!Ne)return Ze.error(new TypeError("Cannot reduce an empty sequence"));Ze.next(tt),Ze.complete()}})})}},{key:"concat",value:function(){for(var ee=this,he=arguments.length,Pe=new Array(he),Ne=0;Ne<he;Ne++)Pe[Ne]=arguments[Ne];var ke=se(this);return new ke(function(Re){var tt,Ze=0;function bt(_t){tt=_t.subscribe({next:function(zt){Re.next(zt)},error:function(zt){Re.error(zt)},complete:function(){Ze===Pe.length?(tt=void 0,Re.complete()):bt(ke.from(Pe[Ze++]))}})}return bt(ee),function(){tt&&(tt.unsubscribe(),tt=void 0)}})}},{key:"flatMap",value:function(ee){var he=this;if(typeof ee!="function")throw new TypeError(ee+" is not a function");var Pe=se(this);return new Pe(function(Ne){var ke=[],Re=he.subscribe({next:function(Ze){if(ee)try{Ze=ee(Ze)}catch(_t){return Ne.error(_t)}var bt=Pe.from(Ze).subscribe({next:function(_t){Ne.next(_t)},error:function(_t){Ne.error(_t)},complete:function(){var _t=ke.indexOf(bt);_t>=0&&ke.splice(_t,1),tt()}});ke.push(bt)},error:function(Ze){Ne.error(Ze)},complete:function(){tt()}});function tt(){Re.closed&&ke.length===0&&Ne.complete()}return function(){ke.forEach(function(Ze){return Ze.unsubscribe()}),Re.unsubscribe()}})}},{key:D,value:function(){return this}}],[{key:"from",value:function(ee){var he=typeof this=="function"?this:Z;if(ee==null)throw new TypeError(ee+" is not an object");var Pe=$(ee,D);if(Pe){var Ne=Pe.call(ee);if(Object(Ne)!==Ne)throw new TypeError(Ne+" is not an object");return I(Ne)&&Ne.constructor===he?Ne:new he(function(ke){return Ne.subscribe(ke)})}if(q("iterator")&&(Pe=$(ee,L),Pe))return new he(function(ke){W(function(){if(!ke.closed){var Re=!0,tt=!1,Ze=void 0;try{for(var bt=Pe.call(ee)[Symbol.iterator](),_t;!(Re=(_t=bt.next()).done);Re=!0){var zt=_t.value;if(ke.next(zt),ke.closed)return}}catch(di){tt=!0,Ze=di}finally{try{!Re&&bt.return!=null&&bt.return()}finally{if(tt)throw Ze}}ke.complete()}})});if(Array.isArray(ee))return new he(function(ke){W(function(){if(!ke.closed){for(var Re=0;Re<ee.length;++Re)if(ke.next(ee[Re]),ke.closed)return;ke.complete()}})});throw new TypeError(ee+" is not observable")}},{key:"of",value:function(){for(var ee=arguments.length,he=new Array(ee),Pe=0;Pe<ee;Pe++)he[Pe]=arguments[Pe];var Ne=typeof this=="function"?this:Z;return new Ne(function(ke){W(function(){if(!ke.closed){for(var Re=0;Re<he.length;++Re)if(ke.next(he[Re]),ke.closed)return;ke.complete()}})})}},{key:H,get:function(){return this}}]),Z}();K.Observable=pe,M()&&Object.defineProperty(pe,Symbol("extensions"),{value:{symbol:D,hostReportError:te},configurable:!0})},9496:d=>{"use strict";d.exports=require("vscode")},2220:d=>{"use strict";d.exports=require("applicationinsights-native-metrics")},2048:d=>{"use strict";d.exports=require("fs")},9491:d=>{"use strict";d.exports=require("assert")},852:d=>{"use strict";d.exports=require("async_hooks")},2081:d=>{"use strict";d.exports=require("child_process")},6206:d=>{"use strict";d.exports=require("console")},2057:d=>{"use strict";d.exports=require("constants")},6113:d=>{"use strict";d.exports=require("crypto")},9523:d=>{"use strict";d.exports=require("dns")},2361:d=>{"use strict";d.exports=require("events")},3685:d=>{"use strict";d.exports=require("http")},5687:d=>{"use strict";d.exports=require("https")},8188:d=>{"use strict";d.exports=require("module")},1808:d=>{"use strict";d.exports=require("net")},2037:d=>{"use strict";d.exports=require("os")},1017:d=>{"use strict";d.exports=require("path")},4074:d=>{"use strict";d.exports=require("perf_hooks")},5477:d=>{"use strict";d.exports=require("punycode")},2781:d=>{"use strict";d.exports=require("stream")},9512:d=>{"use strict";d.exports=require("timers")},4404:d=>{"use strict";d.exports=require("tls")},6224:d=>{"use strict";d.exports=require("tty")},7310:d=>{"use strict";d.exports=require("url")},3837:d=>{"use strict";d.exports=require("util")},9796:d=>{"use strict";d.exports=require("zlib")},6292:(d,K,U)=>{"use strict";U.r(K),U.d(K,{default:()=>ei,Headers:()=>Re,Request:()=>Di,Response:()=>Jt,FetchError:()=>se});var B=U(2781),re=U(3685),Q=U(7310),M=U(4831),q=U(5687),x=U(9796);const L=B.Readable,D=Symbol("buffer"),H=Symbol("type");class ${constructor(){this[H]="";const ve=arguments[0],Me=arguments[1],Oe=[];let Ue=0;if(ve){const wi=ve,ti=Number(wi.length);for(let ft=0;ft<ti;ft++){const bi=wi[ft];let nr;bi instanceof Buffer?nr=bi:ArrayBuffer.isView(bi)?nr=Buffer.from(bi.buffer,bi.byteOffset,bi.byteLength):bi instanceof ArrayBuffer?nr=Buffer.from(bi):bi instanceof $?nr=bi[D]:nr=Buffer.from(typeof bi=="string"?bi:String(bi)),Ue+=nr.length,Oe.push(nr)}}this[D]=Buffer.concat(Oe);let kt=Me&&Me.type!==void 0&&String(Me.type).toLowerCase();kt&&!/[^\u0020-\u007E]/.test(kt)&&(this[H]=kt)}get size(){return this[D].length}get type(){return this[H]}text(){return Promise.resolve(this[D].toString())}arrayBuffer(){const ve=this[D],Me=ve.buffer.slice(ve.byteOffset,ve.byteOffset+ve.byteLength);return Promise.resolve(Me)}stream(){const ve=new L;return ve._read=function(){},ve.push(this[D]),ve.push(null),ve}toString(){return"[object Blob]"}slice(){const ve=this.size,Me=arguments[0],Oe=arguments[1];let Ue,kt;Me===void 0?Ue=0:Me<0?Ue=Math.max(ve+Me,0):Ue=Math.min(Me,ve),Oe===void 0?kt=ve:Oe<0?kt=Math.max(ve+Oe,0):kt=Math.min(Oe,ve);const wi=Math.max(kt-Ue,0),ft=this[D].slice(Ue,Ue+wi),bi=new $([],{type:arguments[2]});return bi[D]=ft,bi}}Object.defineProperties($.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty($.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0});function se(be,ve,Me){Error.call(this,be),this.message=be,this.type=ve,Me&&(this.code=this.errno=Me.code),Error.captureStackTrace(this,this.constructor)}se.prototype=Object.create(Error.prototype),se.prototype.constructor=se,se.prototype.name="FetchError";let I;try{I=require("encoding").convert}catch(be){}const te=Symbol("Body internals"),W=B.PassThrough;function G(be){var ve=this,Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=Me.size;let Ue=Oe===void 0?0:Oe;var kt=Me.timeout;let wi=kt===void 0?0:kt;be==null?be=null:Ce(be)?be=Buffer.from(be.toString()):_e(be)||Buffer.isBuffer(be)||(Object.prototype.toString.call(be)==="[object ArrayBuffer]"?be=Buffer.from(be):ArrayBuffer.isView(be)?be=Buffer.from(be.buffer,be.byteOffset,be.byteLength):be instanceof B||(be=Buffer.from(String(be)))),this[te]={body:be,disturbed:!1,error:null},this.size=Ue,this.timeout=wi,be instanceof B&&be.on("error",function(ti){const ft=ti.name==="AbortError"?ti:new se(`Invalid response body while trying to fetch ${ve.url}: ${ti.message}`,"system",ti);ve[te].error=ft})}G.prototype={get body(){return this[te].body},get bodyUsed(){return this[te].disturbed},arrayBuffer(){return oe.call(this).then(function(be){return be.buffer.slice(be.byteOffset,be.byteOffset+be.byteLength)})},blob(){let be=this.headers&&this.headers.get("content-type")||"";return oe.call(this).then(function(ve){return Object.assign(new $([],{type:be.toLowerCase()}),{[D]:ve})})},json(){var be=this;return oe.call(this).then(function(ve){try{return JSON.parse(ve.toString())}catch(Me){return G.Promise.reject(new se(`invalid json response body at ${be.url} reason: ${Me.message}`,"invalid-json"))}})},text(){return oe.call(this).then(function(be){return be.toString()})},buffer(){return oe.call(this)},textConverted(){var be=this;return oe.call(this).then(function(ve){return J(ve,be.headers)})}},Object.defineProperties(G.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),G.mixIn=function(be){for(const ve of Object.getOwnPropertyNames(G.prototype))if(!(ve in be)){const Me=Object.getOwnPropertyDescriptor(G.prototype,ve);Object.defineProperty(be,ve,Me)}};function oe(){var be=this;if(this[te].disturbed)return G.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[te].disturbed=!0,this[te].error)return G.Promise.reject(this[te].error);let ve=this.body;if(ve===null)return G.Promise.resolve(Buffer.alloc(0));if(_e(ve)&&(ve=ve.stream()),Buffer.isBuffer(ve))return G.Promise.resolve(ve);if(!(ve instanceof B))return G.Promise.resolve(Buffer.alloc(0));let Me=[],Oe=0,Ue=!1;return new G.Promise(function(kt,wi){let ti;be.timeout&&(ti=setTimeout(function(){Ue=!0,wi(new se(`Response timeout while trying to fetch ${be.url} (over ${be.timeout}ms)`,"body-timeout"))},be.timeout)),ve.on("error",function(ft){ft.name==="AbortError"?(Ue=!0,wi(ft)):wi(new se(`Invalid response body while trying to fetch ${be.url}: ${ft.message}`,"system",ft))}),ve.on("data",function(ft){if(!(Ue||ft===null)){if(be.size&&Oe+ft.length>be.size){Ue=!0,wi(new se(`content size at ${be.url} over limit: ${be.size}`,"max-size"));return}Oe+=ft.length,Me.push(ft)}}),ve.on("end",function(){if(!Ue){clearTimeout(ti);try{kt(Buffer.concat(Me,Oe))}catch(ft){wi(new se(`Could not create Buffer from response body for ${be.url}: ${ft.message}`,"system",ft))}}})})}function J(be,ve){if(typeof I!="function")throw new Error("The package `encoding` must be installed to use the textConverted() function");const Me=ve.get("content-type");let Oe="utf-8",Ue,kt;return Me&&(Ue=/charset=([^;]*)/i.exec(Me)),kt=be.slice(0,1024).toString(),!Ue&&kt&&(Ue=/<meta.+?charset=(['"])(.+?)\1/i.exec(kt)),!Ue&&kt&&(Ue=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(kt),Ue||(Ue=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(kt),Ue&&Ue.pop()),Ue&&(Ue=/charset=(.*)/i.exec(Ue.pop()))),!Ue&&kt&&(Ue=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(kt)),Ue&&(Oe=Ue.pop(),(Oe==="gb2312"||Oe==="gbk")&&(Oe="gb18030")),I(be,"UTF-8",Oe).toString()}function Ce(be){return typeof be!="object"||typeof be.append!="function"||typeof be.delete!="function"||typeof be.get!="function"||typeof be.getAll!="function"||typeof be.has!="function"||typeof be.set!="function"?!1:be.constructor.name==="URLSearchParams"||Object.prototype.toString.call(be)==="[object URLSearchParams]"||typeof be.sort=="function"}function _e(be){return typeof be=="object"&&typeof be.arrayBuffer=="function"&&typeof be.type=="string"&&typeof be.stream=="function"&&typeof be.constructor=="function"&&typeof be.constructor.name=="string"&&/^(Blob|File)$/.test(be.constructor.name)&&/^(Blob|File)$/.test(be[Symbol.toStringTag])}function Le(be){let ve,Me,Oe=be.body;if(be.bodyUsed)throw new Error("cannot clone body after it is used");return Oe instanceof B&&typeof Oe.getBoundary!="function"&&(ve=new W,Me=new W,Oe.pipe(ve),Oe.pipe(Me),be[te].body=ve,Oe=Me),Oe}function fe(be){return be===null?null:typeof be=="string"?"text/plain;charset=UTF-8":Ce(be)?"application/x-www-form-urlencoded;charset=UTF-8":_e(be)?be.type||null:Buffer.isBuffer(be)||Object.prototype.toString.call(be)==="[object ArrayBuffer]"||ArrayBuffer.isView(be)?null:typeof be.getBoundary=="function"?`multipart/form-data;boundary=${be.getBoundary()}`:be instanceof B?null:"text/plain;charset=UTF-8"}function pe(be){const ve=be.body;return ve===null?0:_e(ve)?ve.size:Buffer.isBuffer(ve)?ve.length:ve&&typeof ve.getLengthSync=="function"&&(ve._lengthRetrievers&&ve._lengthRetrievers.length==0||ve.hasKnownLength&&ve.hasKnownLength())?ve.getLengthSync():null}function Z(be,ve){const Me=ve.body;Me===null?be.end():_e(Me)?Me.stream().pipe(be):Buffer.isBuffer(Me)?(be.write(Me),be.end()):Me.pipe(be)}G.Promise=global.Promise;const ae=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,ee=/[^\t\x20-\x7e\x80-\xff]/;function he(be){if(be=`${be}`,ae.test(be)||be==="")throw new TypeError(`${be} is not a legal HTTP header name`)}function Pe(be){if(be=`${be}`,ee.test(be))throw new TypeError(`${be} is not a legal HTTP header value`)}function Ne(be,ve){ve=ve.toLowerCase();for(const Me in be)if(Me.toLowerCase()===ve)return Me}const ke=Symbol("map");class Re{constructor(){let ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;if(this[ke]=Object.create(null),ve instanceof Re){const Me=ve.raw(),Oe=Object.keys(Me);for(const Ue of Oe)for(const kt of Me[Ue])this.append(Ue,kt);return}if(ve!=null)if(typeof ve=="object"){const Me=ve[Symbol.iterator];if(Me!=null){if(typeof Me!="function")throw new TypeError("Header pairs must be iterable");const Oe=[];for(const Ue of ve){if(typeof Ue!="object"||typeof Ue[Symbol.iterator]!="function")throw new TypeError("Each header pair must be iterable");Oe.push(Array.from(Ue))}for(const Ue of Oe){if(Ue.length!==2)throw new TypeError("Each header pair must be a name/value tuple");this.append(Ue[0],Ue[1])}}else for(const Oe of Object.keys(ve)){const Ue=ve[Oe];this.append(Oe,Ue)}}else throw new TypeError("Provided initializer must be an object")}get(ve){ve=`${ve}`,he(ve);const Me=Ne(this[ke],ve);return Me===void 0?null:this[ke][Me].join(", ")}forEach(ve){let Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,Oe=tt(this),Ue=0;for(;Ue<Oe.length;){var kt=Oe[Ue];const wi=kt[0],ti=kt[1];ve.call(Me,ti,wi,this),Oe=tt(this),Ue++}}set(ve,Me){ve=`${ve}`,Me=`${Me}`,he(ve),Pe(Me);const Oe=Ne(this[ke],ve);this[ke][Oe!==void 0?Oe:ve]=[Me]}append(ve,Me){ve=`${ve}`,Me=`${Me}`,he(ve),Pe(Me);const Oe=Ne(this[ke],ve);Oe!==void 0?this[ke][Oe].push(Me):this[ke][ve]=[Me]}has(ve){return ve=`${ve}`,he(ve),Ne(this[ke],ve)!==void 0}delete(ve){ve=`${ve}`,he(ve);const Me=Ne(this[ke],ve);Me!==void 0&&delete this[ke][Me]}raw(){return this[ke]}keys(){return bt(this,"key")}values(){return bt(this,"value")}[Symbol.iterator](){return bt(this,"key+value")}}Re.prototype.entries=Re.prototype[Symbol.iterator],Object.defineProperty(Re.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Re.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});function tt(be){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key+value";return Object.keys(be[ke]).sort().map(ve==="key"?function(Oe){return Oe.toLowerCase()}:ve==="value"?function(Oe){return be[ke][Oe].join(", ")}:function(Oe){return[Oe.toLowerCase(),be[ke][Oe].join(", ")]})}const Ze=Symbol("internal");function bt(be,ve){const Me=Object.create(_t);return Me[Ze]={target:be,kind:ve,index:0},Me}const _t=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==_t)throw new TypeError("Value of `this` is not a HeadersIterator");var be=this[Ze];const ve=be.target,Me=be.kind,Oe=be.index,Ue=tt(ve,Me),kt=Ue.length;return Oe>=kt?{value:void 0,done:!0}:(this[Ze].index=Oe+1,{value:Ue[Oe],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(_t,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});function zt(be){const ve=Object.assign({__proto__:null},be[ke]),Me=Ne(be[ke],"Host");return Me!==void 0&&(ve[Me]=ve[Me][0]),ve}function di(be){const ve=new Re;for(const Me of Object.keys(be))if(!ae.test(Me))if(Array.isArray(be[Me]))for(const Oe of be[Me])ee.test(Oe)||(ve[ke][Me]===void 0?ve[ke][Me]=[Oe]:ve[ke][Me].push(Oe));else ee.test(be[Me])||(ve[ke][Me]=[be[Me]]);return ve}const jt=Symbol("Response internals"),ai=re.STATUS_CODES;class Jt{constructor(){let ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};G.call(this,ve,Me);const Oe=Me.status||200,Ue=new Re(Me.headers);if(ve!=null&&!Ue.has("Content-Type")){const kt=fe(ve);kt&&Ue.append("Content-Type",kt)}this[jt]={url:Me.url,status:Oe,statusText:Me.statusText||ai[Oe],headers:Ue,counter:Me.counter}}get url(){return this[jt].url||""}get status(){return this[jt].status}get ok(){return this[jt].status>=200&&this[jt].status<300}get redirected(){return this[jt].counter>0}get statusText(){return this[jt].statusText}get headers(){return this[jt].headers}clone(){return new Jt(Le(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}G.mixIn(Jt.prototype),Object.defineProperties(Jt.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Jt.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const ui=Symbol("Request internals"),tr=Q.URL||M.URL,Vr=Q.parse,Er=Q.format;function Sr(be){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(be)&&(be=new tr(be).toString()),Vr(be)}const Gt="destroy"in B.Readable.prototype;function Xi(be){return typeof be=="object"&&typeof be[ui]=="object"}function Zt(be){const ve=be&&typeof be=="object"&&Object.getPrototypeOf(be);return!!(ve&&ve.constructor.name==="AbortSignal")}class Di{constructor(ve){let Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe;Xi(ve)?Oe=Sr(ve.url):(ve&&ve.href?Oe=Sr(ve.href):Oe=Sr(`${ve}`),ve={});let Ue=Me.method||ve.method||"GET";if(Ue=Ue.toUpperCase(),(Me.body!=null||Xi(ve)&&ve.body!==null)&&(Ue==="GET"||Ue==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let kt=Me.body!=null?Me.body:Xi(ve)&&ve.body!==null?Le(ve):null;G.call(this,kt,{timeout:Me.timeout||ve.timeout||0,size:Me.size||ve.size||0});const wi=new Re(Me.headers||ve.headers||{});if(kt!=null&&!wi.has("Content-Type")){const ft=fe(kt);ft&&wi.append("Content-Type",ft)}let ti=Xi(ve)?ve.signal:null;if("signal"in Me&&(ti=Me.signal),ti!=null&&!Zt(ti))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[ui]={method:Ue,redirect:Me.redirect||ve.redirect||"follow",headers:wi,parsedURL:Oe,signal:ti},this.follow=Me.follow!==void 0?Me.follow:ve.follow!==void 0?ve.follow:20,this.compress=Me.compress!==void 0?Me.compress:ve.compress!==void 0?ve.compress:!0,this.counter=Me.counter||ve.counter||0,this.agent=Me.agent||ve.agent}get method(){return this[ui].method}get url(){return Er(this[ui].parsedURL)}get headers(){return this[ui].headers}get redirect(){return this[ui].redirect}get signal(){return this[ui].signal}clone(){return new Di(this)}}G.mixIn(Di.prototype),Object.defineProperty(Di.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Di.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}});function ce(be){const ve=be[ui].parsedURL,Me=new Re(be[ui].headers);if(Me.has("Accept")||Me.set("Accept","*/*"),!ve.protocol||!ve.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(ve.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(be.signal&&be.body instanceof B.Readable&&!Gt)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let Oe=null;if(be.body==null&&/^(POST|PUT)$/i.test(be.method)&&(Oe="0"),be.body!=null){const kt=pe(be);typeof kt=="number"&&(Oe=String(kt))}Oe&&Me.set("Content-Length",Oe),Me.has("User-Agent")||Me.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),be.compress&&!Me.has("Accept-Encoding")&&Me.set("Accept-Encoding","gzip,deflate");let Ue=be.agent;return typeof Ue=="function"&&(Ue=Ue(ve)),!Me.has("Connection")&&!Ue&&Me.set("Connection","close"),Object.assign({},ve,{method:be.method,headers:zt(Me),agent:Ue})}function le(be){Error.call(this,be),this.type="aborted",this.message=be,Error.captureStackTrace(this,this.constructor)}le.prototype=Object.create(Error.prototype),le.prototype.constructor=le,le.prototype.name="AbortError";const Fe=Q.URL||M.URL,We=B.PassThrough,nt=function(ve,Me){const Oe=new Fe(Me).hostname,Ue=new Fe(ve).hostname;return Oe===Ue||Oe[Oe.length-Ue.length-1]==="."&&Oe.endsWith(Ue)};function mt(be,ve){if(!mt.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return G.Promise=mt.Promise,new mt.Promise(function(Me,Oe){const Ue=new Di(be,ve),kt=ce(Ue),wi=(kt.protocol==="https:"?q:re).request,ti=Ue.signal;let ft=null;const bi=function(){let Gi=new le("The user aborted a request.");Oe(Gi),Ue.body&&Ue.body instanceof B.Readable&&Ue.body.destroy(Gi),!(!ft||!ft.body)&&ft.body.emit("error",Gi)};if(ti&&ti.aborted){bi();return}const nr=function(){bi(),Ar()},fn=wi(kt);let Gn;ti&&ti.addEventListener("abort",nr);function Ar(){fn.abort(),ti&&ti.removeEventListener("abort",nr),clearTimeout(Gn)}Ue.timeout&&fn.once("socket",function(Ct){Gn=setTimeout(function(){Oe(new se(`network timeout at: ${Ue.url}`,"request-timeout")),Ar()},Ue.timeout)}),fn.on("error",function(Ct){Oe(new se(`request to ${Ue.url} failed, reason: ${Ct.message}`,"system",Ct)),Ar()}),fn.on("response",function(Ct){clearTimeout(Gn);const Gi=di(Ct.headers);if(mt.isRedirect(Ct.statusCode)){const vn=Gi.get("Location");let gr=null;try{gr=vn===null?null:new Fe(vn,Ue.url).toString()}catch(Tr){if(Ue.redirect!=="manual"){Oe(new se(`uri requested responds with an invalid redirect URL: ${vn}`,"invalid-redirect")),Ar();return}}switch(Ue.redirect){case"error":Oe(new se(`uri requested responds with a redirect, redirect mode is set to error: ${Ue.url}`,"no-redirect")),Ar();return;case"manual":if(gr!==null)try{Gi.set("Location",gr)}catch(Yt){Oe(Yt)}break;case"follow":if(gr===null)break;if(Ue.counter>=Ue.follow){Oe(new se(`maximum redirect reached at: ${Ue.url}`,"max-redirect")),Ar();return}const Tr={headers:new Re(Ue.headers),follow:Ue.follow,counter:Ue.counter+1,agent:Ue.agent,compress:Ue.compress,method:Ue.method,body:Ue.body,signal:Ue.signal,timeout:Ue.timeout,size:Ue.size};if(!nt(Ue.url,gr))for(const Yt of["authorization","www-authenticate","cookie","cookie2"])Tr.headers.delete(Yt);if(Ct.statusCode!==303&&Ue.body&&pe(Ue)===null){Oe(new se("Cannot follow redirect with body being a readable stream","unsupported-redirect")),Ar();return}(Ct.statusCode===303||(Ct.statusCode===301||Ct.statusCode===302)&&Ue.method==="POST")&&(Tr.method="GET",Tr.body=void 0,Tr.headers.delete("content-length")),Me(mt(new Di(gr,Tr))),Ar();return}}Ct.once("end",function(){ti&&ti.removeEventListener("abort",nr)});let Mi=Ct.pipe(new We);const Xr={url:Ue.url,status:Ct.statusCode,statusText:Ct.statusMessage,headers:Gi,size:Ue.size,timeout:Ue.timeout,counter:Ue.counter},Ir=Gi.get("Content-Encoding");if(!Ue.compress||Ue.method==="HEAD"||Ir===null||Ct.statusCode===204||Ct.statusCode===304){ft=new Jt(Mi,Xr),Me(ft);return}const ms={flush:x.Z_SYNC_FLUSH,finishFlush:x.Z_SYNC_FLUSH};if(Ir=="gzip"||Ir=="x-gzip"){Mi=Mi.pipe(x.createGunzip(ms)),ft=new Jt(Mi,Xr),Me(ft);return}if(Ir=="deflate"||Ir=="x-deflate"){Ct.pipe(new We).once("data",function(gr){(gr[0]&15)==8?Mi=Mi.pipe(x.createInflate()):Mi=Mi.pipe(x.createInflateRaw()),ft=new Jt(Mi,Xr),Me(ft)});return}if(Ir=="br"&&typeof x.createBrotliDecompress=="function"){Mi=Mi.pipe(x.createBrotliDecompress()),ft=new Jt(Mi,Xr),Me(ft);return}ft=new Jt(Mi,Xr),Me(ft)}),Z(fn,Ue)})}mt.isRedirect=function(be){return be===301||be===302||be===303||be===307||be===308},mt.Promise=global.Promise;const ei=mt},8593:d=>{"use strict";d.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},1907:d=>{"use strict";d.exports=JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1000,1000],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6000],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8000,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8000]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9000],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[30000]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13000,13000],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43000,43000],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64000,64000],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66000,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[120000,120000],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128000,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23000]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149000]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32000]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195000,195000],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[40000]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918000,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]]')}},np={};function wt(d){var K=np[d];if(K!==void 0)return K.exports;var U=np[d]={id:d,loaded:!1,exports:{}};return Em[d].call(U.exports,U,U.exports,wt),U.loaded=!0,U.exports}(()=>{wt.n=d=>{var K=d&&d.__esModule?()=>d.default:()=>d;return wt.d(K,{a:K}),K}})(),(()=>{wt.d=(d,K)=>{for(var U in K)wt.o(K,U)&&!wt.o(d,U)&&Object.defineProperty(d,U,{enumerable:!0,get:K[U]})}})(),(()=>{wt.hmd=d=>(d=Object.create(d),d.children||(d.children=[]),Object.defineProperty(d,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+d.id)}}),d)})(),(()=>{wt.o=(d,K)=>Object.prototype.hasOwnProperty.call(d,K)})(),(()=>{wt.r=d=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})}})();var Ll={};(()=>{"use strict";wt.r(Ll),wt.d(Ll,{activate:()=>y0,deactivate:()=>b0});var d=wt(9496),K=wt(8361),U=wt.n(K),B=Object.defineProperty,re=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?B(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t),Q;(function(i){i[i.Info=0]="Info",i[i.Debug=1]="Debug",i[i.Off=2]="Off"})(Q||(Q={}));const M="githubPullRequests",q="logLevel";class x{constructor(){re(this,"_outputChannel"),re(this,"_logLevel"),re(this,"_disposable"),re(this,"_activePerfMarkers",new Map),this._outputChannel=d.window.createOutputChannel("GitHub Pull Request"),this._disposable=d.workspace.onDidChangeConfiguration(()=>{this.getLogLevel()}),this.getLogLevel()}startPerfMarker(e){const t=new Date().getTime();this._outputChannel.appendLine(`PERF_MARKER> Start ${e}`),this._activePerfMarkers.set(e,t)}endPerfMarker(e){const t=new Date().getTime();this._outputChannel.appendLine(`PERF_MARKER> End ${e}: ${t-this._activePerfMarkers.get(e)} ms`),this._activePerfMarkers.delete(e)}appendLine(e,t){switch(this._logLevel){case 2:return;case 1:const n=`${new Date().getTime()/1e3}s`,s=t?`${t}> ${e}`:`${e}`;this._outputChannel.appendLine(`[Debug ${n}] ${s}`);return;case 0:default:this._outputChannel.appendLine("[Info] "+(t?`${t}> ${e}`:`${e}`));return}}debug(e,t){this._logLevel===1&&this.appendLine(e,t)}dispose(){this._disposable&&this._disposable.dispose()}getLogLevel(){switch(d.workspace.getConfiguration(M).get(q)){case"debug":this._logLevel=1;break;case"off":this._logLevel=2;break;case"info":default:this._logLevel=0;break}}}const D=new x;var H=wt(1017),$=wt(7484),se=wt.n($),I=wt(4110),te=wt.n(I),W=wt(660),G=wt.n(W),oe=Object.defineProperty,J=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?oe(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);se().extend(te(),{thresholds:[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:6,d:"day"},{l:"w",r:7},{l:"ww",r:3,d:"week"},{l:"M",r:4},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}]}),se().extend(G()),se().updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}});function Ce(i,e){const t=Object.create(null);return i.filter(r=>{const n=e(r);return t[n]?!1:(t[n]=!0,!0)})}function _e(i){return i.forEach(e=>e.dispose()),[]}function Le(i){return{dispose:i}}function fe(i){return Le(()=>_e(i))}function pe(...i){return(e,t=null,r)=>{const n=fe(i.map(s=>s(o=>e.call(t,o))));return r&&r.push(n),n}}function Z(i,e){return(t,r=null,n)=>i(s=>e(s)&&t.call(r,s),null,n)}function ae(i){return(e,t=null,r)=>{const n=i(s=>(n.dispose(),e.call(t,s)),null,r);return n}}function ee(i){return/^[a-zA-Z]:\\/.test(i)}function he(i,e){return i===e?!0:(i.charAt(i.length-1)!==sep&&(i+=sep),ee(i)&&(i=i.toLowerCase(),e=e.toLowerCase()),e.startsWith(i))}function Pe(i,e){return i.reduce((t,r)=>{const n=e(r);return t[n]=[...t[n]||[],r],t},Object.create(null))}function Ne(i){return!!i.errors}function ke(i){let e=!0;if(!!i.errors&&Array.isArray(i.errors)){for(const t of i.errors)if(!t.field||!t.value||!t.code){e=!1;break}}else e=!1;return e}function Re(i){if(!(i instanceof Error))return typeof i=="string"?i:i.gitErrorCode?`${i.message}. Please check git output for more details`:i.stderr?`${i.stderr}. Please check git output for more details`:"Error";let e=i.message,t;if(i.message==="Validation Failed"&&ke(i))t=i.errors.map(r=>`Value "${r.value}" cannot be set for field ${r.field} (code: ${r.code})`).join(", ");else if(Ne(i)&&i.errors)return i.errors.map(r=>typeof r=="string"?r:r.message).join(", ");return t&&(e=`${e}: ${t}`),e}const tt=(i,e)=>e(i);async function Ze(i,e=tt){let t;return new Promise((r,n)=>t=i(s=>{try{Promise.resolve(e(s,r,n)).catch(n)}catch(o){n(o)}})).then(r=>(t.dispose(),r),r=>{throw t.dispose(),r})}function bt(i){const e=dayjs(i),t=Date.now();return e.diff(t,"month"),e.diff(t,"month")<1?e.fromNow():e.diff(t,"year")<1?`on ${e.format("MMM D")}`:`on ${e.format("MMM D, YYYY")}`}var _t;(function(i){i[i.Period=46]="Period",i[i.Slash=47]="Slash",i[i.A=65]="A",i[i.Z=90]="Z",i[i.Backslash=92]="Backslash",i[i.a=97]="a",i[i.z=122]="z"})(_t||(_t={}));function zt(i,e){return i<e?-1:i>e?1:0}function di(i,e,t=0,r=i.length,n=0,s=e.length){for(;t<r&&n<s;t++,n++){const S=i.charCodeAt(t),T=e.charCodeAt(n);if(S<T)return-1;if(S>T)return 1}const o=r-t,h=s-n;return o<h?-1:o>h?1:0}function jt(i,e){return ai(i,e,0,i.length,0,e.length)}function ai(i,e,t=0,r=i.length,n=0,s=e.length){for(;t<r&&n<s;t++,n++){let S=i.charCodeAt(t),T=e.charCodeAt(n);if(S===T)continue;const P=S-T;if(!(P===32&&ui(T))&&!(P===-32&&ui(S)))return Jt(S)&&Jt(T)?P:di(i.toLowerCase(),e.toLowerCase(),t,r,n,s)}const o=r-t,h=s-n;return o<h?-1:o>h?1:0}function Jt(i){return i>=97&&i<=122}function ui(i){return i>=65&&i<=90}class tr{constructor(){J(this,"_value",""),J(this,"_pos",0)}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){const t=e.charCodeAt(0),r=this._value.charCodeAt(this._pos);return t-r}value(){return this._value[this._pos]}}class Vr{constructor(e=!0){this._caseSensitive=e,J(this,"_value"),J(this,"_from"),J(this,"_to")}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(e)this._from++;else break;else e=!1;return this}cmp(e){return this._caseSensitive?di(e,this._value,0,e.length,this._from,this._to):ai(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class Er{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t,J(this,"_value"),J(this,"_from"),J(this,"_to")}reset(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){const t=this._value.charCodeAt(this._to);if(t===47||this._splitOnBackslash&&t===92)if(e)this._from++;else break;else e=!1}return this}cmp(e){return this._caseSensitive?di(e,this._value,0,e.length,this._from,this._to):ai(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}var Sr;(function(i){i[i.Scheme=1]="Scheme",i[i.Authority=2]="Authority",i[i.Path=3]="Path",i[i.Query=4]="Query",i[i.Fragment=5]="Fragment"})(Sr||(Sr={}));class Gt{constructor(e){this._ignorePathCasing=e,J(this,"_pathIterator"),J(this,"_value"),J(this,"_states",[]),J(this,"_stateIdx",0)}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new Er(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(this._states[this._stateIdx]===1)return jt(e,this._value.scheme);if(this._states[this._stateIdx]===2)return jt(e,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(e);if(this._states[this._stateIdx]===4)return zt(e,this._value.query);if(this._states[this._stateIdx]===5)return zt(e,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}class Xi{constructor(){J(this,"segment"),J(this,"value"),J(this,"key"),J(this,"left"),J(this,"mid"),J(this,"right")}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}}class Zt{constructor(e){J(this,"_iter"),J(this,"_root"),this._iter=e}static forUris(e=()=>!1){return new Zt(new Gt(e))}static forPaths(){return new Zt(new Er)}static forStrings(){return new Zt(new tr)}static forConfigKeys(){return new Zt(new Vr)}clear(){this._root=void 0}set(e,t){const r=this._iter.reset(e);let n;for(this._root||(this._root=new Xi,this._root.segment=r.value()),n=this._root;;){const o=r.cmp(n.segment);if(o>0)n.left||(n.left=new Xi,n.left.segment=r.value()),n=n.left;else if(o<0)n.right||(n.right=new Xi,n.right.segment=r.value()),n=n.right;else if(r.hasNext())r.next(),n.mid||(n.mid=new Xi,n.mid.segment=r.value()),n=n.mid;else break}const s=n.value;return n.value=t,n.key=e,s}get(e){var t;return(t=this._getNode(e))==null?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let r=this._root;for(;r;){const n=t.cmp(r.segment);if(n>0)r=r.left;else if(n<0)r=r.right;else if(t.hasNext())t.next(),r=r.mid;else break}return r}has(e){const t=this._getNode(e);return!((t==null?void 0:t.value)===void 0&&(t==null?void 0:t.mid)===void 0)}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){const r=this._iter.reset(e),n=[];let s=this._root;for(;s;){const o=r.cmp(s.segment);if(o>0)n.push([1,s]),s=s.left;else if(o<0)n.push([-1,s]),s=s.right;else if(r.hasNext())r.next(),n.push([0,s]),s=s.mid;else{for(t?(s.left=void 0,s.mid=void 0,s.right=void 0):s.value=void 0;n.length>0&&s.isEmpty();){let[h,S]=n.pop();switch(h){case 1:S.left=void 0;break;case 0:S.mid=void 0;break;case-1:S.right=void 0;break}s=S}break}}}findSubstr(e){const t=this._iter.reset(e);let r=this._root,n;for(;r;){const s=t.cmp(r.segment);if(s>0)r=r.left;else if(s<0)r=r.right;else if(t.hasNext())t.next(),n=r.value||n,r=r.mid;else break}return r&&r.value||n}findSuperstr(e){const t=this._iter.reset(e);let r=this._root;for(;r;){const n=t.cmp(r.segment);if(n>0)r=r.left;else if(n<0)r=r.right;else if(t.hasNext())t.next(),r=r.mid;else return r.mid?this._entries(r.mid):void 0}}forEach(e){for(const[t,r]of this)e(r,t)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(e){e&&(yield*this._entries(e.left),e.value&&(yield[e.key,e.value]),yield*this._entries(e.mid),yield*this._entries(e.right))}}var Di=Object.defineProperty,ce=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Di(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t),le;(function(i){i[i.Head=0]="Head",i[i.RemoteHead=1]="RemoteHead",i[i.Tag=2]="Tag"})(le||(le={}));var Fe;(function(i){i.BadConfigFile="BadConfigFile",i.AuthenticationFailed="AuthenticationFailed",i.NoUserNameConfigured="NoUserNameConfigured",i.NoUserEmailConfigured="NoUserEmailConfigured",i.NoRemoteRepositorySpecified="NoRemoteRepositorySpecified",i.NotAGitRepository="NotAGitRepository",i.NotAtRepositoryRoot="NotAtRepositoryRoot",i.Conflict="Conflict",i.StashConflict="StashConflict",i.UnmergedChanges="UnmergedChanges",i.PushRejected="PushRejected",i.RemoteConnectionError="RemoteConnectionError",i.DirtyWorkTree="DirtyWorkTree",i.CantOpenResource="CantOpenResource",i.GitNotFound="GitNotFound",i.CantCreatePipe="CantCreatePipe",i.CantAccessRemote="CantAccessRemote",i.RepositoryNotFound="RepositoryNotFound",i.RepositoryIsLocked="RepositoryIsLocked",i.BranchNotFullyMerged="BranchNotFullyMerged",i.NoRemoteReference="NoRemoteReference",i.InvalidBranchName="InvalidBranchName",i.BranchAlreadyExists="BranchAlreadyExists",i.NoLocalChanges="NoLocalChanges",i.NoStashFound="NoStashFound",i.LocalChangesOverwritten="LocalChangesOverwritten",i.NoUpstreamBranch="NoUpstreamBranch",i.IsInSubmodule="IsInSubmodule",i.WrongCase="WrongCase",i.CantLockRef="CantLockRef",i.CantRebaseMultipleBranches="CantRebaseMultipleBranches",i.PatchDoesNotApply="PatchDoesNotApply"})(Fe||(Fe={}));const We=class{constructor(){ce(this,"_providers",new Map),ce(this,"_onDidOpenRepository",new d.EventEmitter),ce(this,"onDidOpenRepository",this._onDidOpenRepository.event),ce(this,"_onDidCloseRepository",new d.EventEmitter),ce(this,"onDidCloseRepository",this._onDidCloseRepository.event),ce(this,"_onDidChangeState",new d.EventEmitter),ce(this,"onDidChangeState",this._onDidChangeState.event),ce(this,"_onDidPublish",new d.EventEmitter),ce(this,"onDidPublish",this._onDidPublish.event),ce(this,"_disposables"),this._disposables=[]}get repositories(){const i=[];return this._providers.forEach(({repositories:e})=>{e&&i.push(...e)}),i}get state(){if(this._providers.size!==0){for(const[,{state:i}]of this._providers)if(i!=="initialized")return"uninitialized";return"initialized"}}_updateReposContext(){const i=Array.from(this._providers.values()).reduce((e,t)=>e+t.repositories.length,0);d.commands.executeCommand("setContext","gitHubOpenRepositoryCount",i)}registerGitProvider(i){D.appendLine("Registering git provider");const e=this._nextHandle();return this._providers.set(e,i),this._disposables.push(i.onDidCloseRepository(t=>this._onDidCloseRepository.fire(t))),this._disposables.push(i.onDidOpenRepository(t=>{D.appendLine(`Repository ${t.rootUri} has been opened`),this._updateReposContext(),this._onDidOpenRepository.fire(t)})),i.onDidChangeState&&this._disposables.push(i.onDidChangeState(t=>this._onDidChangeState.fire(t))),i.onDidPublish&&this._disposables.push(i.onDidPublish(t=>this._onDidPublish.fire(t))),this._updateReposContext(),i.repositories.forEach(t=>{this._onDidOpenRepository.fire(t)}),{dispose:()=>{const t=i==null?void 0:i.repositories;t&&t.length>0&&t.forEach(r=>this._onDidCloseRepository.fire(r)),this._providers.delete(e)}}}getGitProvider(i){const e=Zt.forUris();return this._providers.forEach(t=>{const r=t.repositories;if(r&&r.length>0)for(const n of r)e.set(n.rootUri,t)}),e.findSubstr(i)}_nextHandle(){return We._handlePool++}dispose(){this._disposables.forEach(i=>i.dispose())}};let nt=We;ce(nt,"_handlePool",0);const mt=new Map;function ei(i,e){mt.set(i,e)}function be(i){mt.delete(i)}function ve(i){for(const e of mt.values())if(e.hasCommentThread(i))return e;D.appendLine(`Unable to find handler for comment thread ${i.gitHubThreadId}`)}const Me=require("buffer");var Oe;(function(i){i[i.ADD=0]="ADD",i[i.COPY=1]="COPY",i[i.DELETE=2]="DELETE",i[i.MODIFY=3]="MODIFY",i[i.RENAME=4]="RENAME",i[i.TYPE=5]="TYPE",i[i.UNKNOWN=6]="UNKNOWN",i[i.UNMERGED=7]="UNMERGED"})(Oe||(Oe={}));class Ue{constructor(e,t,r,n,s,o,h,S){this.baseCommit=e,this.status=t,this.fileName=r,this.previousFileName=n,this.patch=s,this.diffHunks=o,this.isPartial=h,this.blobUrl=S}}class kt{constructor(e,t,r,n,s){this.baseCommit=e,this.blobUrl=t,this.status=r,this.fileName=n,this.previousFileName=s}}var wi=Object.defineProperty,ti=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?wi(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t),ft;(function(i){i[i.Context=0]="Context",i[i.Add=1]="Add",i[i.Delete=2]="Delete",i[i.Control=3]="Control"})(ft||(ft={}));class bi{constructor(e,t,r,n,s,o=!0){this.type=e,this.oldLineNumber=t,this.newLineNumber=r,this.positionInHunk=n,this._raw=s,this.endwithLineBreak=o}get raw(){return this._raw}get text(){return this._raw.substr(1)}}function nr(i){switch(i[0]){case" ":return 0;case"+":return 1;case"-":return 2;default:return 3}}class fn{constructor(e,t,r,n,s){this.oldLineNumber=e,this.oldLength=t,this.newLineNumber=r,this.newLength=n,this.positionInHunk=s,ti(this,"diffLines",[])}}const Gn=/^@@ \-(\d+)(,(\d+))?( \+(\d+)(,(\d+)?)?)? @@/;function Ar(i){let e=0,t=0;for(;(t=i.indexOf("\r",t))!==-1;)t++,e++;return e}function*Ct(i){let e=0;for(;e!==-1&&e<i.length;){const t=e;e=i.indexOf(`
|
||
`,e);let n=(e!==-1?e:i.length)-t;e!==-1&&(e>0&&i[e-1]==="\r"&&n--,e++),yield i.substr(t,n)}}function*Gi(i){const e=Ct(i);let t=e.next(),r,n=-1,s=-1,o=-1;for(;!t.done;){const h=t.value;if(Gn.test(h)){r&&(yield r,r=void 0),n===-1&&(n=0);const S=Gn.exec(h),T=s=Number(S[1]),P=Number(S[3])||1,V=o=Number(S[5]),j=Number(S[7])||1;r=new fn(T,P,V,j,n),r.diffLines.push(new bi(3,-1,-1,n,h))}else if(r){const S=nr(h);if(S===3)r.diffLines&&r.diffLines.length&&(r.diffLines[r.diffLines.length-1].endwithLineBreak=!1);else{r.diffLines.push(new bi(S,S!==1?s:-1,S!==2?o:-1,n,h));const T=1+Ar(h);switch(S){case 0:s+=T,o+=T;break;case 2:s+=T;break;case 1:o+=T;break}}}n!==-1&&++n,t=e.next()}r&&(yield r)}function Mi(i){const e=Gi(i);let t=e.next();const r=[],n=[];for(;!t.done;){const s=t.value;r.push(s);for(let o=0;o<s.diffLines.length;o++){const h=s.diffLines[o];if(!(h.type===2||h.type===3))if(h.type===1)n.push(h.text);else{const S=h.text;n.push(S)}}t=e.next()}return r}function Xr(i,e){const t=i.split(/\r?\n/),r=Gi(e);let n=r.next();const s=[],o=[];let h=0;for(;!n.done;){const S=n.value;s.push(S);const T=S.oldLineNumber;for(let P=h+1;P<T;P++)o.push(t[P-1]);h=T+S.oldLength-1;for(let P=0;P<S.diffLines.length;P++){const V=S.diffLines[P];if(!(V.type===2||V.type===3))if(V.type===1)o.push(V.text);else{const j=V.text;o.push(j)}}n=r.next()}if(h<t.length)for(let S=h+1;S<=t.length;S++)o.push(t[S-1]);return o.join(`
|
||
`)}function Ir(i){switch(i){case"removed":return Oe.DELETE;case"added":return Oe.ADD;case"renamed":return Oe.RENAME;case"modified":return Oe.MODIFY;default:return Oe.UNKNOWN}}async function ms(i,e,t){const r=[];for(let n=0;n<i.length;n++){const s=i[n],o=Ir(s.status);if(!s.patch){r.push(new kt(t,s.blob_url,o,s.filename,s.previous_filename));continue}let h=!1;switch(o){case Oe.DELETE:case Oe.MODIFY:try{await e.getObjectDetails(t,s.filename),h=!0}catch(P){}break;case Oe.RENAME:try{await e.getObjectDetails(t,s.previous_filename),h=!0}catch(P){}break}const S=Mi(s.patch),T=!h&&o!==Oe.ADD;r.push(new Ue(t,o,s.filename,s.previous_filename,s.patch,S,T,s.blob_url))}return r}var vn=Object.defineProperty,gr=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?vn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Tr{constructor(){gr(this,"_onDidChangeFile",new d.EventEmitter),gr(this,"onDidChangeFile",this._onDidChangeFile.event)}watch(e,t){return{dispose:()=>{}}}stat(e){return{type:d.FileType.File,ctime:0,mtime:0,size:0}}readDirectory(e){return[]}createDirectory(e){}writeFile(e,t,r){}delete(e,t){}rename(e,t,r){}}var Yt;(function(i){i.LEFT="LEFT",i.RIGHT="RIGHT"})(Yt||(Yt={}));var Bi;(function(i){i.DISMISSED="DISMISSED",i.VIEWED="VIEWED",i.UNVIEWED="UNVIEWED"})(Bi||(Bi={}));const gn="githubPullRequests",lo="terminalLinksHandler",hs="createOnPublishBranch",fs="useReviewMode",Bn="fileListLayout";var Ul=wt(4165),vs=wt.n(Ul),uo=wt(5687),Hn=wt(7310),Vl=wt(6149);const po=ql();function ql(i=process.env.HTTPS_PROXY){if(!i)return uo.globalAgent;try{const{hostname:e,port:t,username:r,password:n}=new Hn.URL(i),s=r&&n&&`${r}:${n}`;return(0,Vl.httpsOverHttp)({proxy:{host:e,port:t,proxyAuth:s}})}catch(e){return d.window.showErrorMessage(`HTTPS_PROXY environment variable ignored: ${e.message}`),uo.globalAgent}}let gs=!1;const co=class{static async getApiHost(i){const e=process.env.GITHUB_TEST_SERVER;if(e){if(gs)return d.Uri.parse(e);if(await d.window.showInformationMessage(`The 'GITHUB_TEST_SERVER' environment variable is set to '${e}'. Use this as the GitHub API endpoint?`,{modal:!0},"Yes")==="Yes")return gs=!0,d.Uri.parse(e)}const t=i instanceof d.Uri?i:d.Uri.parse(i.host);return t.authority==="github.com"?d.Uri.parse("https://api.github.com"):d.Uri.parse(`${t.scheme}://${t.authority}`)}static getApiPath(i,e){return(i instanceof d.Uri?i:d.Uri.parse(i.host)).authority==="github.com"?e:`/api/v3${e}`}};var $l=Object.defineProperty,Gl=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?$l(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class ys{constructor(){Gl(this,"_servers",new Map().set("github.com",!0).set("ssh.github.com",!0))}async isGitHub(e){if(e===null||e.path.endsWith(".wiki")||e.authority.match(/gist[.]github[.]com/))return!1;if(this._servers.has(e.authority))return!!this._servers.get(e.authority);const[t,r]=await ys.getOptions(e,"HEAD","/rate_limit");let n=!1;try{const o=(await vs()(t.toString(),r)).headers.get("x-github-request-id");return n=o!=null,n}catch(s){return D.appendLine(`No response from host ${e}: ${s.message}`,"GitHubServer"),n}finally{D.debug(`Host ${e} is associated with GitHub: ${n}`,"GitHubServer"),this._servers.set(e.authority,n)}}static async getOptions(e,t="GET",r,n){const s={"user-agent":"GitHub VSCode Pull Requests"};n&&(s.authorization=`token ${n}`);const o=d.Uri.joinPath(await co.getApiHost(e),co.getApiPath(e,r)),h={hostname:o.authority,port:443,method:t,headers:s,agent:po};return[o,h]}}var Bl=wt(2048),mo=wt(2037),Hl=wt(6200),jl=Object.defineProperty,ho=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?jl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const fo=/^(?:([^@:]+)@)?([^:/]+):?(.+)$/,vo=/^([a-z-]+):\/\//,go=i=>{const e=vo.exec(i);if(e){const[o,h]=e;if(h==="ssh")i=i.slice(o.length);else return}const t=fo.exec(i);if(!t)return;const[,r,n,s]=t;return{User:r,Host:n,path:s}},ap=(i,e=Aa.current)=>{const t=go(i);return t&&e(t)};function Da(i){return{...i,Hostname:i.Host}}function ws(...i){const e=i.filter(t=>!!t);return t=>e.reduce((r,n)=>({...r,...n(r)}),t)}function ar(i){const e=(0,Hl.parse)(i);return t=>e.compute(t.Host)}const yo=class{static fromConfig(i){return ws(Da,ar(i))}};let Aa=yo;ho(Aa,"default",Da),ho(Aa,"current",yo.default);var wo=Object.defineProperty,bo=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?wo(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const _o=class{static fromConfig(i){return ws(Da,ar(i))}};let bs=_o;bo(bs,"default",ws(Da,Ql())),bo(bs,"current",_o.default);const zl=(i,e=bs.current)=>{const t=go(i);return t&&e(t)};function Ql(i=(0,H.join)((0,mo.homedir)(),".ssh","config")){try{const e=(0,Bl.readFileSync)(i).toString();return ar(e)}catch(e){D.appendLine(`${i}: ${e.message}`)}}var Wl=Object.defineProperty,sa=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Wl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t),_s;(function(i){i[i.Local=0]="Local",i[i.HTTP=1]="HTTP",i[i.SSH=2]="SSH",i[i.GIT=3]="GIT",i[i.OTHER=4]="OTHER"})(_s||(_s={}));class Or{constructor(e){if(sa(this,"type",4),sa(this,"host",""),sa(this,"owner",""),sa(this,"repositoryName",""),sa(this,"url"),!this.parseSshProtocol(e))try{this.url=d.Uri.parse(e),this.type=this.getType(this.url.scheme),this.host=this.getHostName(this.url.authority),this.host&&(this.repositoryName=this.getRepositoryName(this.url.path)||"",this.owner=this.getOwnerName(this.url.path)||"")}catch(t){D.appendLine(`Failed to parse '${e}'`),d.window.showWarningMessage(`Unable to parse remote '${e}'. Please check that it is correctly formatted.`)}}get nameWithOwner(){return this.owner?`${this.owner}/${this.repositoryName}`:this.repositoryName}getType(e){switch(e){case"file":return 0;case"http":case"https":return 1;case"git":return 3;case"ssh":return 2;default:return 4}}parseSshProtocol(e){const t=zl(e);if(!t)return!1;const{Hostname:r,HostName:n,path:s}=t;return this.host=n||r,this.owner=this.getOwnerName(s)||"",this.repositoryName=this.getRepositoryName(s)||"",this.type=2,!0}getHostName(e){const t=/^(?:.*:?@)?([^:]*)(?::.*)?$/.exec(e);return t&&t.length>=2?t[1].toLocaleLowerCase()==="www.github.com"?"github.com":t[1]:""}getRepositoryName(e){let t=e.replace(/\\/g,"/");t.endsWith("/")&&(t=t.substr(0,t.length-1));const r=t.lastIndexOf("/"),n=t.substr(r+1);if(!(n===""||n==="/"))return n.replace(/\/$/,"").replace(/\.git$/,"")}getOwnerName(e){let t=e.replace(/\\/g,"/");t.endsWith("/")&&(t=t.substr(0,t.length-1));const r=t.split("/");if(r.length>1)return r[r.length-2]}normalizeUri(){if(this.type===4&&!this.url)return;if(this.type===0)return this.url;let e="https";this.url&&(this.url.scheme==="http"||this.url.scheme==="https")&&(e=this.url.scheme);try{return d.Uri.parse(`${e}://${this.host.toLocaleLowerCase()}/${this.nameWithOwner.toLocaleLowerCase()}`)}catch(t){return}}toString(){if(this.type===2)return`git@${this.host}:${this.owner}/${this.repositoryName}`;if(this.type===3)return`git://git@${this.host}:${this.owner}/${this.repositoryName}`;const e=this.normalizeUri();if(e)return e.toString()}update(e){return e.type&&(this.type=e.type),e.host&&(this.host=e.host),e.owner&&(this.owner=e.owner),e.repositoryName&&(this.repositoryName=e.repositoryName),this}equals(e){const t=this.normalizeUri();if(!t)return!1;const r=e.normalizeUri();return r?t.toString().toLocaleLowerCase()===r.toString().toLocaleLowerCase():!1}}function oa(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&"version"in process?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}var Kl=wt(5186);/*!
|
||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||
*
|
||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||
* Released under the MIT License.
|
||
*/function Eo(i){return Object.prototype.toString.call(i)==="[object Object]"}function Ia(i){var e,t;return Eo(i)===!1?!1:(e=i.constructor,e===void 0?!0:(t=e.prototype,!(Eo(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)))}function Yl(i){return i?Object.keys(i).reduce((e,t)=>(e[t.toLowerCase()]=i[t],e),{}):{}}function Es(i,e){const t=Object.assign({},i);return Object.keys(e).forEach(r=>{Ia(e[r])?r in i?t[r]=Es(i[r],e[r]):Object.assign(t,{[r]:e[r]}):Object.assign(t,{[r]:e[r]})}),t}function So(i){for(const e in i)i[e]===void 0&&delete i[e];return i}function Ss(i,e,t){if(typeof e=="string"){let[n,s]=e.split(" ");t=Object.assign(s?{method:n,url:s}:{url:n},t)}else t=Object.assign({},e);t.headers=Yl(t.headers),So(t),So(t.headers);const r=Es(i||{},t);return i&&i.mediaType.previews.length&&(r.mediaType.previews=i.mediaType.previews.filter(n=>!r.mediaType.previews.includes(n)).concat(r.mediaType.previews)),r.mediaType.previews=r.mediaType.previews.map(n=>n.replace(/-preview/,"")),r}function Xl(i,e){const t=/\?/.test(i)?"&":"?",r=Object.keys(e);return r.length===0?i:i+t+r.map(n=>n==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${n}=${encodeURIComponent(e[n])}`).join("&")}const Jl=/\{[^}]+\}/g;function To(i){return i.replace(/^\W+|\W+$/g,"").split(/,/)}function Zl(i){const e=i.match(Jl);return e?e.map(To).reduce((t,r)=>t.concat(r),[]):[]}function ko(i,e){return Object.keys(i).filter(t=>!e.includes(t)).reduce((t,r)=>(t[r]=i[r],t),{})}function Ro(i){return i.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}function jn(i){return encodeURIComponent(i).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function la(i,e,t){return e=i==="+"||i==="#"?Ro(e):jn(e),t?jn(t)+"="+e:e}function zn(i){return i!=null}function Ts(i){return i===";"||i==="&"||i==="?"}function ed(i,e,t,r){var n=i[t],s=[];if(zn(n)&&n!=="")if(typeof n=="string"||typeof n=="number"||typeof n=="boolean")n=n.toString(),r&&r!=="*"&&(n=n.substring(0,parseInt(r,10))),s.push(la(e,n,Ts(e)?t:""));else if(r==="*")Array.isArray(n)?n.filter(zn).forEach(function(o){s.push(la(e,o,Ts(e)?t:""))}):Object.keys(n).forEach(function(o){zn(n[o])&&s.push(la(e,n[o],o))});else{const o=[];Array.isArray(n)?n.filter(zn).forEach(function(h){o.push(la(e,h))}):Object.keys(n).forEach(function(h){zn(n[h])&&(o.push(jn(h)),o.push(la(e,n[h].toString())))}),Ts(e)?s.push(jn(t)+"="+o.join(",")):o.length!==0&&s.push(o.join(","))}else e===";"?zn(n)&&s.push(jn(t)):n===""&&(e==="&"||e==="?")?s.push(jn(t)+"="):n===""&&s.push("");return s}function td(i){return{expand:Co.bind(null,i)}}function Co(i,e){var t=["+","#",".","/",";","?","&"];return i.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(r,n,s){if(n){let h="";const S=[];if(t.indexOf(n.charAt(0))!==-1&&(h=n.charAt(0),n=n.substr(1)),n.split(/,/g).forEach(function(T){var P=/([^:\*]*)(?::(\d+)|(\*))?/.exec(T);S.push(ed(e,h,P[1],P[2]||P[3]))}),h&&h!=="+"){var o=",";return h==="?"?o="&":h!=="#"&&(o=h),(S.length!==0?h:"")+S.join(o)}else return S.join(",")}else return Ro(s)})}function No(i){let e=i.method.toUpperCase(),t=(i.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),r=Object.assign({},i.headers),n,s=ko(i,["method","baseUrl","url","headers","request","mediaType"]);const o=Zl(t);t=td(t).expand(s),/^http/.test(t)||(t=i.baseUrl+t);const h=Object.keys(i).filter(P=>o.includes(P)).concat("baseUrl"),S=ko(s,h);if(!/application\/octet-stream/i.test(r.accept)&&(i.mediaType.format&&(r.accept=r.accept.split(/,/).map(P=>P.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${i.mediaType.format}`)).join(",")),i.mediaType.previews.length)){const P=r.accept.match(/[\w-]+(?=-preview)/g)||[];r.accept=P.concat(i.mediaType.previews).map(V=>{const j=i.mediaType.format?`.${i.mediaType.format}`:"+json";return`application/vnd.github.${V}-preview${j}`}).join(",")}return["GET","HEAD"].includes(e)?t=Xl(t,S):"data"in S?n=S.data:Object.keys(S).length?n=S:r["content-length"]=0,!r["content-type"]&&typeof n!="undefined"&&(r["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof n=="undefined"&&(n=""),Object.assign({method:e,url:t,headers:r},typeof n!="undefined"?{body:n}:null,i.request?{request:i.request}:null)}function id(i,e,t){return No(Ss(i,e,t))}function Po(i,e){const t=Ss(i,e),r=id.bind(null,t);return Object.assign(r,{DEFAULTS:t,defaults:Po.bind(null,t),merge:Ss.bind(null,t),parse:No})}const rd=`octokit-endpoint.js/6.0.11 ${oa()}`,nd=Po(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":rd},mediaType:{format:"",previews:[]}});var ad=wt(6292);class sd extends Error{constructor(e){super(e);Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var od=wt(778),ld=wt.n(od);const dd=ld()(i=>console.warn(i));class yn extends Error{constructor(e,t,r){super(e);Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,Object.defineProperty(this,"code",{get(){return dd(new sd("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t}}),this.headers=r.headers||{};const n=Object.assign({},r.request);r.request.headers.authorization&&(n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=n}}const da="5.4.14";function yr(i){return i.arrayBuffer()}function wn(i){(Ia(i.body)||Array.isArray(i.body))&&(i.body=JSON.stringify(i.body));let e={},t,r;return(i.request&&i.request.fetch||ad.default)(i.url,Object.assign({method:i.method,body:i.body,headers:i.headers,redirect:i.redirect},i.request)).then(s=>{r=s.url,t=s.status;for(const h of s.headers)e[h[0]]=h[1];if(t===204||t===205)return;if(i.method==="HEAD"){if(t<400)return;throw new yn(s.statusText,t,{headers:e,request:i})}if(t===304)throw new yn("Not modified",t,{headers:e,request:i});if(t>=400)return s.text().then(h=>{const S=new yn(h,t,{headers:e,request:i});try{let T=JSON.parse(S.message);Object.assign(S,T);let P=T.errors;S.message=S.message+": "+P.map(JSON.stringify).join(", ")}catch(T){}throw S});const o=s.headers.get("content-type");return/application\/json/.test(o)?s.json():!o||/^text\/|charset=utf-8$/.test(o)?s.text():yr(s)}).then(s=>({status:t,url:r,headers:e,data:s})).catch(s=>{throw s instanceof yn?s:new yn(s.message,500,{headers:e,request:i})})}function Qn(i,e){const t=i.defaults(e);return Object.assign(function(n,s){const o=t.merge(n,s);if(!o.request||!o.request.hook)return wn(t.parse(o));const h=(S,T)=>wn(t.parse(t.merge(S,T)));return Object.assign(h,{endpoint:t,defaults:Qn.bind(null,t)}),o.request.hook(h,o)},{endpoint:t,defaults:Qn.bind(null,t)})}const ua=Qn(nd,{headers:{"user-agent":`octokit-request.js/${da} ${oa()}`}}),Jr="4.6.1";class ud extends Error{constructor(e,t){const r=t.data.errors[0].message;super(r);Object.assign(this,t.data),Object.assign(this,{headers:t.headers}),this.name="GraphqlError",this.request=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const Do=["method","baseUrl","url","headers","request","query","mediaType"],pd=["query","method","url"],Ao=/\/api\/v3\/?$/;function Io(i,e,t){if(t){if(typeof e=="string"&&"query"in t)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const o in t)if(!!pd.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}const r=typeof e=="string"?Object.assign({query:e},t):e,n=Object.keys(r).reduce((o,h)=>Do.includes(h)?(o[h]=r[h],o):(o.variables||(o.variables={}),o.variables[h]=r[h],o),{}),s=r.baseUrl||i.endpoint.DEFAULTS.baseUrl;return Ao.test(s)&&(n.url=s.replace(Ao,"/api/graphql")),i(n).then(o=>{if(o.data.errors){const h={};for(const S of Object.keys(o.headers))h[S]=o.headers[S];throw new ud(n,{headers:h,data:o.data})}return o.data.data})}function ks(i,e){const t=i.defaults(e);return Object.assign((n,s)=>Io(t,n,s),{defaults:ks.bind(null,t),endpoint:ua.endpoint})}const lp=ks(ua,{headers:{"user-agent":`octokit-graphql.js/${Jr} ${oa()}`},method:"POST",url:"/graphql"});function Oo(i){return ks(i,{method:"POST",url:"/graphql"})}async function cd(i){const e=i.split(/\./).length===3?"app":/^v\d+\./.test(i)?"installation":"oauth";return{type:"token",token:i,tokenType:e}}function md(i){return i.split(/\./).length===3?`bearer ${i}`:`token ${i}`}async function hd(i,e,t,r){const n=e.endpoint.merge(t,r);return n.headers.authorization=md(i),e(n)}const fd=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(cd.bind(null,e),{hook:hd.bind(null,e)})},xo="3.3.1";class Rs{constructor(e={}){const t=new Kl.Collection,r={baseUrl:ua.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};if(r.headers["user-agent"]=[e.userAgent,`octokit-core.js/${xo} ${oa()}`].filter(Boolean).join(" "),e.baseUrl&&(r.baseUrl=e.baseUrl),e.previews&&(r.mediaType.previews=e.previews),e.timeZone&&(r.headers["time-zone"]=e.timeZone),this.request=ua.defaults(r),this.graphql=Oo(this.request).defaults(r),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),this.hook=t,e.authStrategy){const{authStrategy:s,...o}=e,h=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));t.wrap("request",h.hook),this.auth=h}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{const s=fd(e.auth);t.wrap("request",s.hook),this.auth=s}this.constructor.plugins.forEach(s=>{Object.assign(this,s(this,e))})}static defaults(e){return class extends this{constructor(...r){const n=r[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugin(...e){var t;const r=this.plugins;return t=class extends this{},t.plugins=r.concat(e.filter(s=>!r.includes(s))),t}}Rs.VERSION=xo,Rs.plugins=[];const vd="1.0.3";function Mo(i){i.hook.wrap("request",(e,t)=>{i.log.debug("request",t);const r=Date.now(),n=i.request.endpoint.parse(t),s=n.url.replace(t.baseUrl,"");return e(t).then(o=>(i.log.info(`${n.method} ${s} - ${o.status} in ${Date.now()-r}ms`),o)).catch(o=>{throw i.log.info(`${n.method} ${s} - ${o.status} in ${Date.now()-r}ms`),o})})}Mo.VERSION=vd;const gd="2.13.2";function Fo(i){if(!("total_count"in i.data&&!("url"in i.data)))return i;const t=i.data.incomplete_results,r=i.data.repository_selection,n=i.data.total_count;delete i.data.incomplete_results,delete i.data.repository_selection,delete i.data.total_count;const s=Object.keys(i.data)[0],o=i.data[s];return i.data=o,typeof t!="undefined"&&(i.data.incomplete_results=t),typeof r!="undefined"&&(i.data.repository_selection=r),i.data.total_count=n,i}function Cs(i,e,t){const r=typeof e=="function"?e.endpoint(t):i.request.endpoint(e,t),n=typeof e=="function"?e:i.request,s=r.method,o=r.headers;let h=r.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!h)return{done:!0};const S=await n({method:s,url:h,headers:o}),T=Fo(S);return h=((T.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:T}}})}}function Lo(i,e,t,r){return typeof t=="function"&&(r=t,t=void 0),Uo(i,[],Cs(i,e,t)[Symbol.asyncIterator](),r)}function Uo(i,e,t,r){return t.next().then(n=>{if(n.done)return e;let s=!1;function o(){s=!0}return e=e.concat(r?r(n.value,o):n.value.data),s?e:Uo(i,e,t,r)})}const dp=Object.assign(Lo,{iterator:Cs}),yd=null;function up(i){return typeof i=="string"?yd.includes(i):!1}function Vo(i){return{paginate:Object.assign(Lo.bind(null,i),{iterator:Cs.bind(null,i)})}}Vo.VERSION=gd;const wd={actions:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createContentAttachment:["POST /content_references/{content_reference_id}/attachments",{mediaType:{previews:["corsair"]}}],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct",{mediaType:{previews:["scarlet-witch"]}}],getConductCode:["GET /codes_of_conduct/{key}",{mediaType:{previews:["scarlet-witch"]}}],getForRepo:["GET /repos/{owner}/{repo}/community/code_of_conduct",{mediaType:{previews:["scarlet-witch"]}}]},emojis:{get:["GET /emojis"]},enterpriseAdmin:{disableSelectedOrganizationGithubActionsEnterprise:["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],enableSelectedOrganizationGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],getAllowedActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],getGithubActionsPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions"],listSelectedOrganizationsEnabledGithubActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/organizations"],setAllowedActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],setGithubActionsPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions"],setSelectedOrganizationsEnabledGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",{mediaType:{previews:["mockingbird"]}}],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive",{mediaType:{previews:["wyandotte"]}}],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}",{mediaType:{previews:["wyandotte"]}}],listForAuthenticatedUser:["GET /user/migrations",{mediaType:{previews:["wyandotte"]}}],listForOrg:["GET /orgs/{org}/migrations",{mediaType:{previews:["wyandotte"]}}],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{mediaType:{previews:["wyandotte"]}}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock",{mediaType:{previews:["wyandotte"]}}],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],createCard:["POST /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],createColumn:["POST /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],createForAuthenticatedUser:["POST /user/projects",{mediaType:{previews:["inertia"]}}],createForOrg:["POST /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],createForRepo:["POST /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],delete:["DELETE /projects/{project_id}",{mediaType:{previews:["inertia"]}}],deleteCard:["DELETE /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],deleteColumn:["DELETE /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],get:["GET /projects/{project_id}",{mediaType:{previews:["inertia"]}}],getCard:["GET /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],getColumn:["GET /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission",{mediaType:{previews:["inertia"]}}],listCards:["GET /projects/columns/{column_id}/cards",{mediaType:{previews:["inertia"]}}],listCollaborators:["GET /projects/{project_id}/collaborators",{mediaType:{previews:["inertia"]}}],listColumns:["GET /projects/{project_id}/columns",{mediaType:{previews:["inertia"]}}],listForOrg:["GET /orgs/{org}/projects",{mediaType:{previews:["inertia"]}}],listForRepo:["GET /repos/{owner}/{repo}/projects",{mediaType:{previews:["inertia"]}}],listForUser:["GET /users/{username}/projects",{mediaType:{previews:["inertia"]}}],moveCard:["POST /projects/columns/cards/{card_id}/moves",{mediaType:{previews:["inertia"]}}],moveColumn:["POST /projects/columns/{column_id}/moves",{mediaType:{previews:["inertia"]}}],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}",{mediaType:{previews:["inertia"]}}],update:["PATCH /projects/{project_id}",{mediaType:{previews:["inertia"]}}],updateCard:["PATCH /projects/columns/cards/{card_id}",{mediaType:{previews:["inertia"]}}],updateColumn:["PATCH /projects/columns/{column_id}",{mediaType:{previews:["inertia"]}}]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch",{mediaType:{previews:["lydian"]}}],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}}],deleteLegacy:["DELETE /reactions/{reaction_id}",{mediaType:{previews:["squirrel-girl"]}},{deprecated:"octokit.reactions.deleteLegacy() is deprecated, see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy"}],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",{mediaType:{previews:["squirrel-girl"]}}]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],createRelease:["POST /repos/{owner}/{repo}/releases"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate",{mediaType:{previews:["baptiste"]}}],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages",{mediaType:{previews:["switcheroo"]}}],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes",{mediaType:{previews:["london"]}}],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts",{mediaType:{previews:["dorian"]}}],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",{mediaType:{previews:["zzzax"]}}],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",{mediaType:{previews:["groot"]}}],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",{mediaType:{previews:["groot"]}}],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics",{mediaType:{previews:["mercy"]}}],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits",{mediaType:{previews:["cloak"]}}],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics",{mediaType:{previews:["mercy"]}}],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",{mediaType:{previews:["inertia"]}}],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects",{mediaType:{previews:["inertia"]}}],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},bd="4.12.0";function _d(i,e){const t={};for(const[r,n]of Object.entries(e))for(const[s,o]of Object.entries(n)){const[h,S,T]=o,[P,V]=h.split(/ /),j=Object.assign({method:P,url:V},S);t[r]||(t[r]={});const ue=t[r];if(T){ue[s]=Ed(i,r,s,j,T);continue}ue[s]=i.request.defaults(j)}return t}function Ed(i,e,t,r,n){const s=i.request.defaults(r);function o(...h){let S=s.endpoint.merge(...h);if(n.mapToData)return S=Object.assign({},S,{data:S[n.mapToData],[n.mapToData]:void 0}),s(S);if(n.renamed){const[T,P]=n.renamed;i.log.warn(`octokit.${e}.${t}() has been renamed to octokit.${T}.${P}()`)}if(n.deprecated&&i.log.warn(n.deprecated),n.renamedParameters){const T=s.endpoint.merge(...h);for(const[P,V]of Object.entries(n.renamedParameters))P in T&&(i.log.warn(`"${P}" parameter is deprecated for "octokit.${e}.${t}()". Use "${V}" instead`),V in T||(T[V]=T[P]),delete T[P]);return s(T)}return s(...h)}return Object.assign(o,s)}function qo(i){return _d(i,wd)}qo.VERSION=bd;const Sd="18.2.0",Td=Rs.plugin(Mo,qo,Vo).defaults({userAgent:`octokit-rest.js/${Sd}`});/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var Ns=function(i,e){return Ns=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])},Ns(i,e)};function qr(i,e){Ns(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ye=function(){return Ye=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Ye.apply(this,arguments)};function $o(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t}function pp(i,e,t,r){var n=arguments.length,s=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,e,t,r);else for(var h=i.length-1;h>=0;h--)(o=i[h])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s}function cp(i,e){return function(t,r){e(t,r,i)}}function mp(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}function Zr(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function h(P){try{T(r.next(P))}catch(V){o(V)}}function S(P){try{T(r.throw(P))}catch(V){o(V)}}function T(P){P.done?s(P.value):n(P.value).then(h,S)}T((r=r.apply(i,e||[])).next())})}function en(i,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,o;return o={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function h(T){return function(P){return S([T,P])}}function S(T){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(s=T[0]&2?n.return:T[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,T[1])).done)return s;switch(n=0,s&&(T=[T[0]&2,s.value]),T[0]){case 0:case 1:s=T;break;case 4:return t.label++,{value:T[1],done:!1};case 5:t.label++,n=T[1],T=[0];continue;case 7:T=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(T[0]===6||T[0]===2)){t=0;continue}if(T[0]===3&&(!s||T[1]>s[0]&&T[1]<s[3])){t.label=T[1];break}if(T[0]===6&&t.label<s[1]){t.label=s[1],s=T;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(T);break}s[2]&&t.ops.pop(),t.trys.pop();continue}T=e.call(i,t)}catch(P){T=[6,P],n=0}finally{r=s=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}}function hp(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}function sr(i,e){for(var t in i)t!=="default"&&!e.hasOwnProperty(t)&&(e[t]=i[t])}function Ps(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Go(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(h){o={error:h}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return s}function fp(){for(var i=[],e=0;e<arguments.length;e++)i=i.concat(Go(arguments[e]));return i}function pa(){for(var i=0,e=0,t=arguments.length;e<t;e++)i+=arguments[e].length;for(var r=Array(i),n=0,e=0;e<t;e++)for(var s=arguments[e],o=0,h=s.length;o<h;o++,n++)r[n]=s[o];return r}function Wn(i){return this instanceof Wn?(this.v=i,this):new Wn(i)}function vp(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(i,e||[]),n,s=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(j){r[j]&&(n[j]=function(ue){return new Promise(function(Te,Se){s.push([j,ue,Te,Se])>1||h(j,ue)})})}function h(j,ue){try{S(r[j](ue))}catch(Te){V(s[0][3],Te)}}function S(j){j.value instanceof Wn?Promise.resolve(j.value.v).then(T,P):V(s[0][2],j)}function T(j){h("next",j)}function P(j){h("throw",j)}function V(j,ue){j(ue),s.shift(),s.length&&h(s[0][0],s[0][1])}}function gp(i){var e,t;return e={},r("next"),r("throw",function(n){throw n}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(n,s){e[n]=i[n]?function(o){return(t=!t)?{value:Wn(i[n](o)),done:n==="return"}:s?s(o):o}:s}}function yp(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof Ps=="function"?Ps(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=i[s]&&function(o){return new Promise(function(h,S){o=i[s](o),n(h,S,o.done,o.value)})}}function n(s,o,h,S){Promise.resolve(S).then(function(T){s({value:T,done:h})},o)}}function wp(i,e){return Object.defineProperty?Object.defineProperty(i,"raw",{value:e}):i.raw=e,i}function kd(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)Object.hasOwnProperty.call(i,t)&&(e[t]=i[t]);return e.default=i,e}function bp(i){return i&&i.__esModule?i:{default:i}}function Rd(i,e){if(!e.has(i))throw new TypeError("attempted to get private field on non-instance");return e.get(i)}function _p(i,e,t){if(!e.has(i))throw new TypeError("attempted to set private field on non-instance");return e.set(i,t),t}var $r=wt(285),Oa="Invariant Violation",Bo=Object.setPrototypeOf,Cd=Bo===void 0?function(i,e){return i.__proto__=e,i}:Bo,Fi=function(i){qr(e,i);function e(t){t===void 0&&(t=Oa);var r=i.call(this,typeof t=="number"?Oa+": "+t+" (see https://github.com/apollographql/invariant-packages)":t)||this;return r.framesToPop=1,r.name=Oa,Cd(r,e.prototype),r}return e}(Error);function Vt(i,e){if(!i)throw new Fi(e)}function Ho(i){return function(){return console[i].apply(console,arguments)}}(function(i){i.warn=Ho("warn"),i.error=Ho("error")})(Vt||(Vt={}));var jo={env:{}};if(typeof process=="object")jo=process;else try{Function("stub","process = stub")(jo)}catch(i){}var Ep=null;const Sp=null;var Kn=wt(5035),Nd=wt.n(Kn),zo=Object.prototype,Qo=zo.toString,Pd=zo.hasOwnProperty,Ds=new Map;function Ai(i,e){try{return ca(i,e)}finally{Ds.clear()}}function ca(i,e){if(i===e)return!0;var t=Qo.call(i),r=Qo.call(e);if(t!==r)return!1;switch(t){case"[object Array]":if(i.length!==e.length)return!1;case"[object Object]":{if(Wo(i,e))return!0;var n=Object.keys(i),s=Object.keys(e),o=n.length;if(o!==s.length)return!1;for(var h=0;h<o;++h)if(!Pd.call(e,n[h]))return!1;for(var h=0;h<o;++h){var S=n[h];if(!ca(i[S],e[S]))return!1}return!0}case"[object Error]":return i.name===e.name&&i.message===e.message;case"[object Number]":if(i!==i)return e!==e;case"[object Boolean]":case"[object Date]":return+i==+e;case"[object RegExp]":case"[object String]":return i==""+e;case"[object Map]":case"[object Set]":{if(i.size!==e.size)return!1;if(Wo(i,e))return!0;for(var T=i.entries(),P=t==="[object Map]";;){var V=T.next();if(V.done)break;var j=V.value,ue=j[0],Te=j[1];if(!e.has(ue)||P&&!ca(Te,e.get(ue)))return!1}return!0}}return!1}function Wo(i,e){var t=Ds.get(i);if(t){if(t.has(e))return!0}else Ds.set(i,t=new Set);return t.add(e),!1}const Tp=null;function Dd(i){return["StringValue","BooleanValue","EnumValue"].indexOf(i.kind)>-1}function As(i){return["IntValue","FloatValue"].indexOf(i.kind)>-1}function Ad(i){return i.kind==="StringValue"}function Id(i){return i.kind==="BooleanValue"}function Od(i){return i.kind==="IntValue"}function xd(i){return i.kind==="FloatValue"}function Md(i){return i.kind==="Variable"}function Fd(i){return i.kind==="ObjectValue"}function Ld(i){return i.kind==="ListValue"}function ma(i){return i.kind==="EnumValue"}function Ud(i){return i.kind==="NullValue"}function bn(i,e,t,r){if(Od(t)||xd(t))i[e.value]=Number(t.value);else if(Id(t)||Ad(t))i[e.value]=t.value;else if(Fd(t)){var n={};t.fields.map(function(o){return bn(n,o.name,o.value,r)}),i[e.value]=n}else if(Md(t)){var s=(r||{})[t.name.value];i[e.value]=s}else if(Ld(t))i[e.value]=t.values.map(function(o){var h={};return bn(h,e,o,r),h[e.value]});else if(ma(t))i[e.value]=t.value;else if(Ud(t))i[e.value]=null;else throw new Fi(17)}function Vd(i,e){var t=null;i.directives&&(t={},i.directives.forEach(function(n){t[n.name.value]={},n.arguments&&n.arguments.forEach(function(s){var o=s.name,h=s.value;return bn(t[n.name.value],o,h,e)})}));var r=null;return i.arguments&&i.arguments.length&&(r={},i.arguments.forEach(function(n){var s=n.name,o=n.value;return bn(r,s,o,e)})),Ko(i.name.value,r,t)}var qd=["connection","include","skip","client","rest","export"];function Ko(i,e,t){if(t&&t.connection&&t.connection.key)if(t.connection.filter&&t.connection.filter.length>0){var r=t.connection.filter?t.connection.filter:[];r.sort();var n=e,s={};return r.forEach(function(S){s[S]=n[S]}),t.connection.key+"("+JSON.stringify(s)+")"}else return t.connection.key;var o=i;if(e){var h=Nd()(e);o+="("+h+")"}return t&&Object.keys(t).forEach(function(S){qd.indexOf(S)===-1&&(t[S]&&Object.keys(t[S]).length?o+="@"+S+"("+JSON.stringify(t[S])+")":o+="@"+S)}),o}function Is(i,e){if(i.arguments&&i.arguments.length){var t={};return i.arguments.forEach(function(r){var n=r.name,s=r.value;return bn(t,n,s,e)}),t}return null}function ha(i){return i.alias?i.alias.value:i.name.value}function Gr(i){return i.kind==="Field"}function xa(i){return i.kind==="InlineFragment"}function Ma(i){return i&&i.type==="id"&&typeof i.generated=="boolean"}function Fa(i,e){return e===void 0&&(e=!1),Ye({type:"id",generated:e},typeof i=="string"?{id:i,typename:void 0}:i)}function $d(i){return i!=null&&typeof i=="object"&&i.type==="json"}function Gd(i){throw new InvariantError(18)}function Yo(i,e){switch(e===void 0&&(e=Gd),i.kind){case"Variable":return e(i);case"NullValue":return null;case"IntValue":return parseInt(i.value,10);case"FloatValue":return parseFloat(i.value);case"ListValue":return i.values.map(function(o){return Yo(o,e)});case"ObjectValue":{for(var t={},r=0,n=i.fields;r<n.length;r++){var s=n[r];t[s.name.value]=Yo(s.value,e)}return t}default:return i.value}}function Bd(i,e){if(i.directives&&i.directives.length){var t={};return i.directives.forEach(function(r){t[r.name.value]=Is(r,e)}),t}return null}function Os(i,e){return e===void 0&&(e={}),Qd(i.directives).every(function(t){var r=t.directive,n=t.ifArgument,s=!1;return n.value.kind==="Variable"?(s=e[n.value.name.value],Vt(s!==void 0,13)):s=n.value.value,r.name.value==="skip"?!s:s})}function Hd(i){var e=[];return(0,$r.visit)(i,{Directive:function(t){e.push(t.name.value)}}),e}function La(i,e){return Hd(e).some(function(t){return i.indexOf(t)>-1})}function jd(i){return i&&La(["client"],i)&&La(["export"],i)}function zd(i){var e=i.name.value;return e==="skip"||e==="include"}function Qd(i){return i?i.filter(zd).map(function(e){var t=e.arguments,r=e.name.value;Vt(t&&t.length===1,14);var n=t[0];Vt(n.name&&n.name.value==="if",15);var s=n.value;return Vt(s&&(s.kind==="Variable"||s.kind==="BooleanValue"),16),{directive:e,ifArgument:n}}):[]}function Ua(i,e){var t=e,r=[];i.definitions.forEach(function(s){if(s.kind==="OperationDefinition")throw new Fi(11);s.kind==="FragmentDefinition"&&r.push(s)}),typeof t=="undefined"&&(Vt(r.length===1,12),t=r[0].name.value);var n=Ye(Ye({},i),{definitions:pa([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:t}}]}}],i.definitions)});return n}function tn(i){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.forEach(function(r){typeof r=="undefined"||r===null||Object.keys(r).forEach(function(n){i[n]=r[n]})}),i}function _i(i){Br(i);var e=i.definitions.filter(function(t){return t.kind==="OperationDefinition"&&t.operation==="mutation"})[0];return invariant(e,1),e}function Br(i){Vt(i&&i.kind==="Document",2);var e=i.definitions.filter(function(t){return t.kind!=="FragmentDefinition"}).map(function(t){if(t.kind!=="OperationDefinition")throw new Fi(3);return t});return Vt(e.length<=1,4),i}function Hi(i){return Br(i),i.definitions.filter(function(e){return e.kind==="OperationDefinition"})[0]}function xs(i){var e=Hi(i);return invariant(e,5),e}function Ms(i){return i.definitions.filter(function(e){return e.kind==="OperationDefinition"&&e.name}).map(function(e){return e.name.value})[0]||null}function Va(i){return i.definitions.filter(function(e){return e.kind==="FragmentDefinition"})}function Wd(i){var e=Hi(i);return Vt(e&&e.operation==="query",6),e}function Kd(i){Vt(i.kind==="Document",7),Vt(i.definitions.length<=1,8);var e=i.definitions[0];return Vt(e.kind==="FragmentDefinition",9),e}function a(i){Br(i);for(var e,t=0,r=i.definitions;t<r.length;t++){var n=r[t];if(n.kind==="OperationDefinition"){var s=n.operation;if(s==="query"||s==="mutation"||s==="subscription")return n}n.kind==="FragmentDefinition"&&!e&&(e=n)}if(e)return e;throw new Fi(10)}function k(i){i===void 0&&(i=[]);var e={};return i.forEach(function(t){e[t.name.value]=t}),e}function p(i){if(i&&i.variableDefinitions&&i.variableDefinitions.length){var e=i.variableDefinitions.filter(function(t){var r=t.defaultValue;return r}).map(function(t){var r=t.variable,n=t.defaultValue,s={};return bn(s,r.name,n),s});return tn.apply(void 0,pa([{}],e))}return{}}function g(i){var e=new Set;if(i.variableDefinitions)for(var t=0,r=i.variableDefinitions;t<r.length;t++){var n=r[t];e.add(n.variable.name.value)}return e}function _(i,e,t){var r=0;return i.forEach(function(n,s){e.call(this,n,s,i)&&(i[r++]=n)},t),i.length=r,i}var m={kind:"Field",name:{kind:"Name",value:"__typename"}};function u(i,e){return i.selectionSet.selections.every(function(t){return t.kind==="FragmentSpread"&&u(e[t.name.value],e)})}function l(i){return u(Hi(i)||Kd(i),k(Va(i)))?null:i}function c(i){return function(t){return i.some(function(r){return r.name&&r.name===t.name.value||r.test&&r.test(t)})}}function v(i,e){var t=Object.create(null),r=[],n=Object.create(null),s=[],o=l((0,$r.visit)(e,{Variable:{enter:function(h,S,T){T.kind!=="VariableDefinition"&&(t[h.name.value]=!0)}},Field:{enter:function(h){if(i&&h.directives){var S=i.some(function(T){return T.remove});if(S&&h.directives&&h.directives.some(c(i)))return h.arguments&&h.arguments.forEach(function(T){T.value.kind==="Variable"&&r.push({name:T.value.name.value})}),h.selectionSet&&X(h.selectionSet).forEach(function(T){s.push({name:T.name.value})}),null}}},FragmentSpread:{enter:function(h){n[h.name.value]=!0}},Directive:{enter:function(h){if(c(i)(h))return null}}}));return o&&_(r,function(h){return!t[h.name]}).length&&(o=O(r,o)),o&&_(s,function(h){return!n[h.name]}).length&&(o=z(s,o)),o}function y(i){return(0,$r.visit)(Br(i),{SelectionSet:{enter:function(e,t,r){if(!(r&&r.kind==="OperationDefinition")){var n=e.selections;if(!!n){var s=n.some(function(h){return Gr(h)&&(h.name.value==="__typename"||h.name.value.lastIndexOf("__",0)===0)});if(!s){var o=r;if(!(Gr(o)&&o.directives&&o.directives.some(function(h){return h.name.value==="export"})))return Ye(Ye({},e),{selections:pa(n,[m])})}}}}}})}var f={test:function(i){var e=i.name.value==="connection";return e&&(!i.arguments||!i.arguments.some(function(t){return t.name.value==="key"})),e}};function b(i){return v([f],Br(i))}function E(i,e,t){return t===void 0&&(t=!0),e&&e.selections&&e.selections.some(function(r){return R(i,r,t)})}function R(i,e,t){return t===void 0&&(t=!0),Gr(e)?e.directives?e.directives.some(c(i))||t&&E(i,e.selectionSet,t):!1:!0}function C(i,e){Br(e);var t;return l(visit(e,{SelectionSet:{enter:function(r,n,s,o){var h=o.join("-");if(!t||h===t||!h.startsWith(t))if(r.selections){var S=r.selections.filter(function(T){return R(i,T)});return E(i,r,!1)&&(t=h),__assign(__assign({},r),{selections:S})}else return null}}}))}function A(i){return function(t){return i.some(function(r){return t.value&&t.value.kind==="Variable"&&t.value.name&&(r.name===t.value.name.value||r.test&&r.test(t))})}}function O(i,e){var t=A(i);return l((0,$r.visit)(e,{OperationDefinition:{enter:function(r){return Ye(Ye({},r),{variableDefinitions:r.variableDefinitions.filter(function(n){return!i.some(function(s){return s.name===n.variable.name.value})})})}},Field:{enter:function(r){var n=i.some(function(o){return o.remove});if(n){var s=0;if(r.arguments.forEach(function(o){t(o)&&(s+=1)}),s===1)return null}}},Argument:{enter:function(r){if(t(r))return null}}}))}function z(i,e){function t(r){if(i.some(function(n){return n.name===r.name.value}))return null}return l((0,$r.visit)(e,{FragmentSpread:{enter:t},FragmentDefinition:{enter:t}}))}function X(i){var e=[];return i.selections.forEach(function(t){(Gr(t)||xa(t))&&t.selectionSet?X(t.selectionSet).forEach(function(r){return e.push(r)}):t.kind==="FragmentSpread"&&e.push(t)}),e}function Y(i){var e=a(i),t=e.operation;if(t==="query")return i;var r=(0,$r.visit)(i,{OperationDefinition:{enter:function(n){return Ye(Ye({},n),{operation:"query"})}}});return r}function me(i){Br(i);var e=v([{test:function(t){return t.name.value==="client"},remove:!0}],i);return e&&(e=(0,$r.visit)(e,{FragmentDefinition:{enter:function(t){if(t.selectionSet){var r=t.selectionSet.selections.every(function(n){return Gr(n)&&n.name.value==="__typename"});if(r)return null}}}})),e}var Ee=typeof WeakMap=="function"&&!(typeof navigator=="object"&&navigator.product==="ReactNative"),Ie=Object.prototype.toString;function De(i){return Ve(i,new Map)}function Ve(i,e){switch(Ie.call(i)){case"[object Array]":{if(e.has(i))return e.get(i);var t=i.slice(0);return e.set(i,t),t.forEach(function(n,s){t[s]=Ve(n,e)}),t}case"[object Object]":{if(e.has(i))return e.get(i);var r=Object.create(Object.getPrototypeOf(i));return e.set(i,r),Object.keys(i).forEach(function(n){r[n]=Ve(i[n],e)}),r}default:return i}}function Qe(){return typeof process!="undefined"?"production":"development"}function Xe(i){return Qe()===i}function it(){return Xe("production")===!0}function Nt(){return Xe("development")===!0}function yt(){return Xe("test")===!0}function Qt(i){try{return i()}catch(e){console.error&&console.error(e)}}function ht(i){return i.errors&&i.errors.length}function He(i){return Object.freeze(i),Object.getOwnPropertyNames(i).forEach(function(e){i[e]!==null&&(typeof i[e]=="object"||typeof i[e]=="function")&&!Object.isFrozen(i[e])&&He(i[e])}),i}function et(i){if(Nt()||yt()){var e=typeof Symbol=="function"&&typeof Symbol("")=="string";if(!e)return He(i)}return i}var Je=Object.prototype.hasOwnProperty;function at(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return ct(i)}function ct(i){var e=i[0]||{},t=i.length;if(t>1){var r=[];e=qt(e,r);for(var n=1;n<t;++n)e=ut(e,i[n],r)}return e}function Et(i){return i!==null&&typeof i=="object"}function ut(i,e,t){return Et(e)&&Et(i)?(Object.isExtensible&&!Object.isExtensible(i)&&(i=qt(i,t)),Object.keys(e).forEach(function(r){var n=e[r];if(Je.call(i,r)){var s=i[r];n!==s&&(i[r]=ut(qt(s,t),n,t))}else i[r]=n}),i):e}function qt(i,e){return i!==null&&typeof i=="object"&&e.indexOf(i)<0&&(Array.isArray(i)?i=i.slice(0):i=Ye({__proto__:Object.getPrototypeOf(i)},i),e.push(i)),i}var oi=Object.create({});function ii(i,e){e===void 0&&(e="warn"),!it()&&!oi[i]&&(yt()||(oi[i]=!0),e==="error"?console.error(i):console.warn(i))}function Wt(i){return JSON.parse(JSON.stringify(i))}var Ot=wt(9329),Si=wt.n(Ot),Ri=Si();const st=Ri;function pt(i){for(var e=["query","operationName","variables","extensions","context"],t=0,r=Object.keys(i);t<r.length;t++){var n=r[t];if(e.indexOf(n)<0)throw new Fi(2)}return i}var St=function(i){qr(e,i);function e(t,r){var n=i.call(this,t)||this;return n.link=r,n}return e}(Error);function Ft(i){return i.request.length<=1}function Yn(i){var e=!1;return new Promise(function(t,r){i.subscribe({next:function(n){e||(e=!0,t(n))},error:r})})}var Xn=null;function $e(i){return new Observable(function(e){i.then(function(t){e.next(t),e.complete()}).catch(e.error.bind(e))})}function rn(i){return new st(function(e){e.error(i)})}function _n(i){var e={variables:i.variables||{},extensions:i.extensions||{},operationName:i.operationName,query:i.query};return e.operationName||(e.operationName=typeof e.query!="string"?Ms(e.query):""),e}function or(i,e){var t=Ye({},i),r=function(s){typeof s=="function"?t=Ye({},t,s(t)):t=Ye({},t,s)},n=function(){return Ye({},t)};return Object.defineProperty(e,"setContext",{enumerable:!1,value:r}),Object.defineProperty(e,"getContext",{enumerable:!1,value:n}),Object.defineProperty(e,"toKey",{enumerable:!1,value:function(){return hi(e)}}),e}function hi(i){var e=i.query,t=i.variables,r=i.operationName;return JSON.stringify([r,e,t])}function kr(i,e){return e?e(i):st.of()}function Ci(i){return typeof i=="function"?new Ti(i):i}function Hr(){return new Ti(function(){return st.of()})}function nn(i){return i.length===0?Hr():i.map(Ci).reduce(function(e,t){return e.concat(t)})}function Bt(i,e,t){var r=Ci(e),n=Ci(t||new Ti(kr));return Ft(r)&&Ft(n)?new Ti(function(s){return i(s)?r.request(s)||st.of():n.request(s)||st.of()}):new Ti(function(s,o){return i(s)?r.request(s,o)||st.of():n.request(s,o)||st.of()})}var En=function(i,e){var t=Ci(i);if(Ft(t))return t;var r=Ci(e);return Ft(r)?new Ti(function(n){return t.request(n,function(s){return r.request(s)||st.of()})||st.of()}):new Ti(function(n,s){return t.request(n,function(o){return r.request(o,s)||st.of()})||st.of()})},Ti=function(){function i(e){e&&(this.request=e)}return i.prototype.split=function(e,t,r){return this.concat(Bt(e,t,r||new i(kr)))},i.prototype.concat=function(e){return En(this,e)},i.prototype.request=function(e,t){throw new Fi(1)},i.empty=Hr,i.from=nn,i.split=Bt,i.execute=Rr,i}();function Rr(i,e){return i.request(or(e.context,_n(pt(e))))||st.of()}var an=wt(7121),At;(function(i){i[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"})(At||(At={}));function Ii(i){return i<7}var Oi=function(i){qr(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype[an.Z]=function(){return this},e.prototype["@@observable"]=function(){return this},e}(st);function Ji(i){return Array.isArray(i)&&i.length>0}function lr(i){return i.hasOwnProperty("graphQLErrors")}var Ni=function(i){var e="";return Ji(i.graphQLErrors)&&i.graphQLErrors.forEach(function(t){var r=t?t.message:"Error message not found.";e+="GraphQL error: "+r+`
|
||
`}),i.networkError&&(e+="Network error: "+i.networkError.message+`
|
||
`),e=e.replace(/\n$/,""),e},li=function(i){qr(e,i);function e(t){var r=t.graphQLErrors,n=t.networkError,s=t.errorMessage,o=t.extraInfo,h=i.call(this,s)||this;return h.graphQLErrors=r||[],h.networkError=n||null,s?h.message=s:h.message=Ni(h),h.extraInfo=o,h.__proto__=e.prototype,h}return e}(Error),Tt;(function(i){i[i.normal=1]="normal",i[i.refetch=2]="refetch",i[i.poll=3]="poll"})(Tt||(Tt={}));var ki=function(i,e){return e===void 0&&(e="none"),i&&(i.networkError||e==="none"&&Ji(i.graphQLErrors))},rt=function(i){qr(e,i);function e(t){var r=t.queryManager,n=t.options,s=t.shouldSubscribe,o=s===void 0?!0:s,h=i.call(this,function(T){return h.onSubscribe(T)})||this;h.observers=new Set,h.subscriptions=new Set,h.isTornDown=!1,h.options=n,h.variables=n.variables||{},h.queryId=r.generateQueryId(),h.shouldSubscribe=o;var S=Hi(n.query);return h.queryName=S&&S.name&&S.name.value,h.queryManager=r,h}return e.prototype.result=function(){var t=this;return new Promise(function(r,n){var s={next:function(h){r(h),t.observers.delete(s),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout(function(){o.unsubscribe()},0)},error:n},o=t.subscribe(s)})},e.prototype.currentResult=function(){var t=this.getCurrentResult();return t.data===void 0&&(t.data={}),t},e.prototype.getCurrentResult=function(){if(this.isTornDown){var t=this.lastResult;return{data:!this.lastError&&t&&t.data||void 0,error:this.lastError,loading:!1,networkStatus:At.error}}var r=this.queryManager.getCurrentQueryResult(this),n=r.data,s=r.partial,o=this.queryManager.queryStore.get(this.queryId),h,S=this.options.fetchPolicy,T=S==="network-only"||S==="no-cache";if(o){var P=o.networkStatus;if(ki(o,this.options.errorPolicy))return{data:void 0,loading:!1,networkStatus:P,error:new li({graphQLErrors:o.graphQLErrors,networkError:o.networkError})};o.variables&&(this.options.variables=Ye(Ye({},this.options.variables),o.variables),this.variables=this.options.variables),h={data:n,loading:Ii(P),networkStatus:P},o.graphQLErrors&&this.options.errorPolicy==="all"&&(h.errors=o.graphQLErrors)}else{var V=T||s&&S!=="cache-only";h={data:n,loading:V,networkStatus:V?At.loading:At.ready}}return s||this.updateLastResult(Ye(Ye({},h),{stale:!1})),Ye(Ye({},h),{partial:s})},e.prototype.isDifferentFromLastResult=function(t){var r=this.lastResultSnapshot;return!(r&&t&&r.networkStatus===t.networkStatus&&r.stale===t.stale&&Ai(r.data,t.data))},e.prototype.getLastResult=function(){return this.lastResult},e.prototype.getLastError=function(){return this.lastError},e.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){var t=this.queryManager.queryStore.get(this.queryId);t&&(t.networkError=null,t.graphQLErrors=[])},e.prototype.refetch=function(t){var r=this.options.fetchPolicy;return r==="cache-only"?Promise.reject(new Fi(1)):(r!=="no-cache"&&r!=="cache-and-network"&&(r="network-only"),Ai(this.variables,t)||(this.variables=Ye(Ye({},this.variables),t)),Ai(this.options.variables,this.variables)||(this.options.variables=Ye(Ye({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Ye(Ye({},this.options),{fetchPolicy:r}),Tt.refetch))},e.prototype.fetchMore=function(t){var r=this;Vt(t.updateQuery,2);var n=Ye(Ye({},t.query?t:Ye(Ye(Ye({},this.options),t),{variables:Ye(Ye({},this.variables),t.variables)})),{fetchPolicy:"network-only"}),s=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(s,n,Tt.normal,this.queryId).then(function(o){return r.updateQuery(function(h){return t.updateQuery(h,{fetchMoreResult:o.data,variables:n.variables})}),r.queryManager.stopQuery(s),o},function(o){throw r.queryManager.stopQuery(s),o})},e.prototype.subscribeToMore=function(t){var r=this,n=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables}).subscribe({next:function(s){var o=t.updateQuery;o&&r.updateQuery(function(h,S){var T=S.variables;return o(h,{subscriptionData:s,variables:T})})},error:function(s){if(t.onError){t.onError(s);return}}});return this.subscriptions.add(n),function(){r.subscriptions.delete(n)&&n.unsubscribe()}},e.prototype.setOptions=function(t){var r=this.options.fetchPolicy;this.options=Ye(Ye({},this.options),t),t.pollInterval?this.startPolling(t.pollInterval):t.pollInterval===0&&this.stopPolling();var n=t.fetchPolicy;return this.setVariables(this.options.variables,r!==n&&(r==="cache-only"||r==="standby"||n==="network-only"),t.fetchResults)},e.prototype.setVariables=function(t,r,n){return r===void 0&&(r=!1),n===void 0&&(n=!0),this.isTornDown=!1,t=t||this.variables,!r&&Ai(t,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=t,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},e.prototype.updateQuery=function(t){var r=this.queryManager,n=r.getQueryWithPreviousResult(this.queryId),s=n.previousResult,o=n.variables,h=n.document,S=Qt(function(){return t(s,{variables:o})});S&&(r.dataStore.markUpdateQueryResult(h,o,S),r.broadcastQueries())},e.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},e.prototype.startPolling=function(t){vt(this),this.options.pollInterval=t,this.queryManager.startPollingQuery(this.options,this.queryId)},e.prototype.updateLastResult=function(t){var r=this.lastResult;return this.lastResult=t,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?t:De(t),r},e.prototype.onSubscribe=function(t){var r=this;try{var n=t._subscription._observer;n&&!n.error&&(n.error=sn)}catch(o){}var s=!this.observers.size;return this.observers.add(t),t.next&&this.lastResult&&t.next(this.lastResult),t.error&&this.lastError&&t.error(this.lastError),s&&this.setUpQuery(),function(){r.observers.delete(t)&&!r.observers.size&&r.tearDownQuery()}},e.prototype.setUpQuery=function(){var t=this,r=this,n=r.queryManager,s=r.queryId;this.shouldSubscribe&&n.addObservableQuery(s,this),this.options.pollInterval&&(vt(this),n.startPollingQuery(this.options,s));var o=function(h){t.updateLastResult(Ye(Ye({},t.lastResult),{errors:h.graphQLErrors,networkStatus:At.error,loading:!1})),dr(t.observers,"error",t.lastError=h)};n.observeQuery(s,this.options,{next:function(h){if(t.lastError||t.isDifferentFromLastResult(h)){var S=t.updateLastResult(h),T=t.options,P=T.query,V=T.variables,j=T.fetchPolicy;n.transform(P).hasClientExports?n.getLocalState().addExportedVariables(P,V).then(function(ue){var Te=t.variables;t.variables=t.options.variables=ue,!h.loading&&S&&j!=="cache-only"&&n.transform(P).serverQuery&&!Ai(Te,ue)?t.refetch():dr(t.observers,"next",h)}):dr(t.observers,"next",h)}},error:o}).catch(o)},e.prototype.tearDownQuery=function(){var t=this.queryManager;this.isTornDown=!0,t.stopPollingQuery(this.queryId),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),t.removeObservableQuery(this.queryId),t.stopQuery(this.queryId),this.observers.clear()},e}(Oi);function sn(i){}function dr(i,e,t){var r=[];i.forEach(function(n){return n[e]&&r.push(n)}),r.forEach(function(n){return n[e](t)})}function vt(i){var e=i.options.fetchPolicy;Vt(e!=="cache-first"&&e!=="cache-only",3)}var ur=function(){function i(){this.store={}}return i.prototype.getStore=function(){return this.store},i.prototype.get=function(e){return this.store[e]},i.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},i.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},i.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},i.prototype.reset=function(){this.store={}},i}(),Sn=function(){function i(){this.store={}}return i.prototype.getStore=function(){return this.store},i.prototype.get=function(e){return this.store[e]},i.prototype.initQuery=function(e){var t=this.store[e.queryId];Vt(!t||t.document===e.document||Ai(t.document,e.document),19);var r=!1,n=null;e.storePreviousVariables&&t&&t.networkStatus!==At.loading&&(Ai(t.variables,e.variables)||(r=!0,n=t.variables));var s;r?s=At.setVariables:e.isPoll?s=At.poll:e.isRefetch?s=At.refetch:s=At.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:n,networkError:null,graphQLErrors:o,networkStatus:s,metadata:e.metadata},typeof e.fetchMoreForQueryId=="string"&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=At.fetchMore)},i.prototype.markQueryResult=function(e,t,r){!this.store||!this.store[e]||(this.store[e].networkError=null,this.store[e].graphQLErrors=Ji(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=At.ready,typeof r=="string"&&this.store[r]&&(this.store[r].networkStatus=At.ready))},i.prototype.markQueryError=function(e,t,r){!this.store||!this.store[e]||(this.store[e].networkError=t,this.store[e].networkStatus=At.error,typeof r=="string"&&this.markQueryResultClient(r,!0))},i.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];r&&(r.networkError=null,r.previousVariables=null,t&&(r.networkStatus=At.ready))},i.prototype.stopQuery=function(e){delete this.store[e]},i.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach(function(r){e.indexOf(r)<0?t.stopQuery(r):t.store[r].networkStatus=At.loading})},i}();function Tn(i){return i.charAt(0).toUpperCase()+i.slice(1)}var on=function(){function i(e){var t=e.cache,r=e.client,n=e.resolvers,s=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),s&&this.setFragmentMatcher(s)}return i.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(r){t.resolvers=at(t.resolvers,r)}):this.resolvers=at(this.resolvers,e)},i.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},i.prototype.getResolvers=function(){return this.resolvers||{}},i.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,n=e.context,s=e.variables,o=e.onlyRunForcedResolvers,h=o===void 0?!1:o;return Zr(this,void 0,void 0,function(){return en(this,function(S){return t?[2,this.resolveDocument(t,r.data,n,s,this.fragmentMatcher,h).then(function(T){return Ye(Ye({},r),{data:T.result})})]:[2,r]})})},i.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},i.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},i.prototype.clientQuery=function(e){return La(["client"],e)&&this.resolvers?e:null},i.prototype.serverQuery=function(e){return this.resolvers?me(e):e},i.prototype.prepareContext=function(e){e===void 0&&(e={});var t=this.cache,r=Ye(Ye({},e),{cache:t,getCacheKey:function(n){if(t.config)return t.config.dataIdFromObject(n);Vt(!1,6)}});return r},i.prototype.addExportedVariables=function(e,t,r){return t===void 0&&(t={}),r===void 0&&(r={}),Zr(this,void 0,void 0,function(){return en(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(s){return Ye(Ye({},t),s.exportedVariables)})]:[2,Ye({},t)]})})},i.prototype.shouldForceResolvers=function(e){var t=!1;return(0,$r.visit)(e,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(t=r.arguments.some(function(n){return n.name.value==="always"&&n.value.kind==="BooleanValue"&&n.value.value===!0}),t))return $r.BREAK}}}),t},i.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Y(e),variables:t,returnPartialData:!0,optimistic:!1}).result},i.prototype.resolveDocument=function(e,t,r,n,s,o){return r===void 0&&(r={}),n===void 0&&(n={}),s===void 0&&(s=function(){return!0}),o===void 0&&(o=!1),Zr(this,void 0,void 0,function(){var h,S,T,P,V,j,ue,Te,Se;return en(this,function(qe){return h=a(e),S=Va(e),T=k(S),P=h.operation,V=P?Tn(P):"Query",j=this,ue=j.cache,Te=j.client,Se={fragmentMap:T,context:Ye(Ye({},r),{cache:ue,client:Te}),variables:n,fragmentMatcher:s,defaultOperationType:V,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(h.selectionSet,t,Se).then(function(xe){return{result:xe,exportedVariables:Se.exportedVariables}})]})})},i.prototype.resolveSelectionSet=function(e,t,r){return Zr(this,void 0,void 0,function(){var n,s,o,h,S,T=this;return en(this,function(P){return n=r.fragmentMap,s=r.context,o=r.variables,h=[t],S=function(V){return Zr(T,void 0,void 0,function(){var j,ue;return en(this,function(Te){return Os(V,o)?Gr(V)?[2,this.resolveField(V,t,r).then(function(Se){var qe;typeof Se!="undefined"&&h.push((qe={},qe[ha(V)]=Se,qe))})]:(xa(V)?j=V:(j=n[V.name.value],Vt(j,7)),j&&j.typeCondition&&(ue=j.typeCondition.name.value,r.fragmentMatcher(t,ue,s))?[2,this.resolveSelectionSet(j.selectionSet,t,r).then(function(Se){h.push(Se)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(S)).then(function(){return ct(h)})]})})},i.prototype.resolveField=function(e,t,r){return Zr(this,void 0,void 0,function(){var n,s,o,h,S,T,P,V,j,ue=this;return en(this,function(Te){return n=r.variables,s=e.name.value,o=ha(e),h=s!==o,S=t[o]||t[s],T=Promise.resolve(S),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(P=t.__typename||r.defaultOperationType,V=this.resolvers&&this.resolvers[P],V&&(j=V[h?s:o],j&&(T=Promise.resolve(j(t,Is(e,n),r.context,{field:e,fragmentMap:r.fragmentMap}))))),[2,T.then(function(Se){if(Se===void 0&&(Se=S),e.directives&&e.directives.forEach(function(qe){qe.name.value==="export"&&qe.arguments&&qe.arguments.forEach(function(xe){xe.name.value==="as"&&xe.value.kind==="StringValue"&&(r.exportedVariables[xe.value.value]=Se)})}),!e.selectionSet||Se==null)return Se;if(Array.isArray(Se))return ue.resolveSubSelectedArray(e,Se,r);if(e.selectionSet)return ue.resolveSelectionSet(e.selectionSet,Se,r)})]})})},i.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map(function(s){if(s===null)return null;if(Array.isArray(s))return n.resolveSubSelectedArray(e,s,r);if(e.selectionSet)return n.resolveSelectionSet(e.selectionSet,s,r)}))},i}();function ln(i){var e=new Set,t=null;return new Oi(function(r){return e.add(r),t=t||i.subscribe({next:function(n){e.forEach(function(s){return s.next&&s.next(n)})},error:function(n){e.forEach(function(s){return s.error&&s.error(n)})},complete:function(){e.forEach(function(n){return n.complete&&n.complete()})}}),function(){e.delete(r)&&!e.size&&t&&(t.unsubscribe(),t=null)}})}function kn(i,e){return new Oi(function(t){var r=t.next,n=t.error,s=t.complete,o=0,h=!1,S={next:function(P){++o,new Promise(function(V){V(e(P))}).then(function(V){--o,r&&r.call(t,V),h&&S.complete()},function(V){--o,n&&n.call(t,V)})},error:function(P){n&&n.call(t,P)},complete:function(){h=!0,o||s&&s.call(t)}},T=i.subscribe(S);return function(){return T.unsubscribe()}})}var Zi=Object.prototype.hasOwnProperty,Rn=function(){function i(e){var t=e.link,r=e.queryDeduplication,n=r===void 0?!1:r,s=e.store,o=e.onBroadcast,h=o===void 0?function(){}:o,S=e.ssrMode,T=S===void 0?!1:S,P=e.clientAwareness,V=P===void 0?{}:P,j=e.localState,ue=e.assumeImmutableResults;this.mutationStore=new ur,this.queryStore=new Sn,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(Ee?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=n,this.dataStore=s,this.onBroadcast=h,this.clientAwareness=V,this.localState=j||new on({cache:s.getCache()}),this.ssrMode=T,this.assumeImmutableResults=!!ue}return i.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.fetchQueryRejectFns.forEach(function(t){t(new Fi(8))})},i.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,s=e.updateQueries,o=e.refetchQueries,h=o===void 0?[]:o,S=e.awaitRefetchQueries,T=S===void 0?!1:S,P=e.update,V=e.errorPolicy,j=V===void 0?"none":V,ue=e.fetchPolicy,Te=e.context,Se=Te===void 0?{}:Te;return Zr(this,void 0,void 0,function(){var qe,xe,je,Ke=this;return en(this,function(ze){switch(ze.label){case 0:return Vt(t,9),Vt(!ue||ue==="no-cache",10),qe=this.generateQueryId(),t=this.transform(t).document,this.setQuery(qe,function(){return{document:t}}),r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,Se)]:[3,2];case 1:r=ze.sent(),ze.label=2;case 2:return xe=function(){var dt={};return s&&Ke.queries.forEach(function(Mt,Ht){var Xt=Mt.observableQuery;if(Xt){var Kt=Xt.queryName;Kt&&Zi.call(s,Kt)&&(dt[Ht]={updater:s[Kt],query:Ke.queryStore.get(Ht)})}}),dt},this.mutationStore.initMutation(qe,t,r),this.dataStore.markMutationInit({mutationId:qe,document:t,variables:r,updateQueries:xe(),update:P,optimisticResponse:n}),this.broadcastQueries(),je=this,[2,new Promise(function(dt,Mt){var Ht,Xt;je.getObservableFromLink(t,Ye(Ye({},Se),{optimisticResponse:n}),r,!1).subscribe({next:function(Kt){if(ht(Kt)&&j==="none"){Xt=new li({graphQLErrors:Kt.errors});return}je.mutationStore.markMutationResult(qe),ue!=="no-cache"&&je.dataStore.markMutationResult({mutationId:qe,result:Kt,document:t,variables:r,updateQueries:xe(),update:P}),Ht=Kt},error:function(Kt){je.mutationStore.markMutationError(qe,Kt),je.dataStore.markMutationComplete({mutationId:qe,optimisticResponse:n}),je.broadcastQueries(),je.setQuery(qe,function(){return{document:null}}),Mt(new li({networkError:Kt}))},complete:function(){if(Xt&&je.mutationStore.markMutationError(qe,Xt),je.dataStore.markMutationComplete({mutationId:qe,optimisticResponse:n}),je.broadcastQueries(),Xt){Mt(Xt);return}typeof h=="function"&&(h=h(Ht));var Kt=[];Ji(h)&&h.forEach(function(aa){if(typeof aa=="string")je.queries.forEach(function(Yr){var rr=Yr.observableQuery;rr&&rr.queryName===aa&&Kt.push(rr.refetch())});else{var oo={query:aa.query,variables:aa.variables,fetchPolicy:"network-only"};aa.context&&(oo.context=aa.context),Kt.push(je.query(oo))}}),Promise.all(T?Kt:[]).then(function(){je.setQuery(qe,function(){return{document:null}}),j==="ignore"&&Ht&&ht(Ht)&&delete Ht.errors,dt(Ht)})}})})]}})})},i.prototype.fetchQuery=function(e,t,r,n){return Zr(this,void 0,void 0,function(){var s,o,h,S,T,P,V,j,ue,Te,Se,qe,xe,je,Ke,ze,dt,Mt,Ht=this;return en(this,function(Xt){switch(Xt.label){case 0:return s=t.metadata,o=s===void 0?null:s,h=t.fetchPolicy,S=h===void 0?"cache-first":h,T=t.context,P=T===void 0?{}:T,V=this.transform(t.query).document,j=this.getVariables(V,t.variables),this.transform(V).hasClientExports?[4,this.localState.addExportedVariables(V,j,P)]:[3,2];case 1:j=Xt.sent(),Xt.label=2;case 2:if(t=Ye(Ye({},t),{variables:j}),Te=S==="network-only"||S==="no-cache",Se=Te,Te||(qe=this.dataStore.getCache().diff({query:V,variables:j,returnPartialData:!0,optimistic:!1}),xe=qe.complete,je=qe.result,Se=!xe||S==="cache-and-network",ue=je),Ke=Se&&S!=="cache-only"&&S!=="standby",La(["live"],V)&&(Ke=!0),ze=this.idCounter++,dt=S!=="no-cache"?this.updateQueryWatch(e,V,t):void 0,this.setQuery(e,function(){return{document:V,lastRequestId:ze,invalidated:!0,cancel:dt}}),this.invalidate(n),this.queryStore.initQuery({queryId:e,document:V,storePreviousVariables:Ke,variables:j,isPoll:r===Tt.poll,isRefetch:r===Tt.refetch,metadata:o,fetchMoreForQueryId:n}),this.broadcastQueries(),Ke){if(Mt=this.fetchRequest({requestId:ze,queryId:e,document:V,options:t,fetchMoreForQueryId:n}).catch(function(Kt){throw lr(Kt)?Kt:(ze>=Ht.getQuery(e).lastRequestId&&(Ht.queryStore.markQueryError(e,Kt,n),Ht.invalidate(e),Ht.invalidate(n),Ht.broadcastQueries()),new li({networkError:Kt}))}),S!=="cache-and-network")return[2,Mt];Mt.catch(function(){})}return this.queryStore.markQueryResultClient(e,!Ke),this.invalidate(e),this.invalidate(n),this.transform(V).hasForcedResolvers?[2,this.localState.runResolvers({document:V,remoteResult:{data:ue},context:P,variables:j,onlyRunForcedResolvers:!0}).then(function(Kt){return Ht.markQueryResult(e,Kt,t,n),Ht.broadcastQueries(),Kt})]:(this.broadcastQueries(),[2,{data:ue}])}})})},i.prototype.markQueryResult=function(e,t,r,n){var s=r.fetchPolicy,o=r.variables,h=r.errorPolicy;s==="no-cache"?this.setQuery(e,function(){return{newData:{result:t.data,complete:!0}}}):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,n,h==="ignore"||h==="all")},i.prototype.queryListenerForObserver=function(e,t,r){var n=this;function s(o,h){if(r[o])try{r[o](h)}catch(S){}}return function(o,h){if(n.invalidate(e,!1),!!o){var S=n.getQuery(e),T=S.observableQuery,P=S.document,V=T?T.options.fetchPolicy:t.fetchPolicy;if(V!=="standby"){var j=Ii(o.networkStatus),ue=T&&T.getLastResult(),Te=!!(ue&&ue.networkStatus!==o.networkStatus),Se=t.returnPartialData||!h&&o.previousVariables||Te&&t.notifyOnNetworkStatusChange||V==="cache-only"||V==="cache-and-network";if(!(j&&!Se)){var qe=Ji(o.graphQLErrors),xe=T&&T.options.errorPolicy||t.errorPolicy||"none";if(xe==="none"&&qe||o.networkError)return s("error",new li({graphQLErrors:o.graphQLErrors,networkError:o.networkError}));try{var je=void 0,Ke=void 0;if(h)V!=="no-cache"&&V!=="network-only"&&n.setQuery(e,function(){return{newData:null}}),je=h.result,Ke=!h.complete;else{var ze=T&&T.getLastError(),dt=xe!=="none"&&(ze&&ze.graphQLErrors)!==o.graphQLErrors;if(ue&&ue.data&&!dt)je=ue.data,Ke=!1;else{var Mt=n.dataStore.getCache().diff({query:P,variables:o.previousVariables||o.variables,returnPartialData:!0,optimistic:!0});je=Mt.result,Ke=!Mt.complete}}var Ht=Ke&&!(t.returnPartialData||V==="cache-only"),Xt={data:Ht?ue&&ue.data:je,loading:j,networkStatus:o.networkStatus,stale:Ht};xe==="all"&&qe&&(Xt.errors=o.graphQLErrors),s("next",Xt)}catch(Kt){s("error",new li({networkError:Kt}))}}}}}},i.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache(),n=r.transformDocument(e),s=b(r.transformForLink(n)),o=this.localState.clientQuery(n),h=this.localState.serverQuery(s),S={document:n,hasClientExports:jd(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:h,defaultVars:p(Hi(n))},T=function(P){P&&!t.has(P)&&t.set(P,S)};T(e),T(n),T(o),T(h)}return t.get(e)},i.prototype.getVariables=function(e,t){return Ye(Ye({},this.transform(e).defaultVars),t)},i.prototype.watchQuery=function(e,t){t===void 0&&(t=!0),Vt(e.fetchPolicy!=="standby",11),e.variables=this.getVariables(e.query,e.variables),typeof e.notifyOnNetworkStatusChange=="undefined"&&(e.notifyOnNetworkStatusChange=!1);var r=Ye({},e);return new rt({queryManager:this,options:r,shouldSubscribe:t})},i.prototype.query=function(e){var t=this;return Vt(e.query,12),Vt(e.query.kind==="Document",13),Vt(!e.returnPartialData,14),Vt(!e.pollInterval,15),new Promise(function(r,n){var s=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+s.queryId,n),s.result().then(r,n).then(function(){return t.fetchQueryRejectFns.delete("query:"+s.queryId)})})},i.prototype.generateQueryId=function(){return String(this.idCounter++)},i.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},i.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},i.prototype.addQueryListener=function(e,t){this.setQuery(e,function(r){var n=r.listeners;return n.add(t),{invalidated:!1}})},i.prototype.updateQueryWatch=function(e,t,r){var n=this,s=this.getQuery(e).cancel;s&&s();var o=function(){var h=null,S=n.getQuery(e).observableQuery;if(S){var T=S.getLastResult();T&&(h=T.data)}return h};return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:o,callback:function(h){n.setQuery(e,function(){return{invalidated:!0,newData:h}})}})},i.prototype.addObservableQuery=function(e,t){this.setQuery(e,function(){return{observableQuery:t}})},i.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,function(){return{observableQuery:null}}),t&&t()},i.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach(function(t){t(new Fi(16))});var e=[];return this.queries.forEach(function(t,r){var n=t.observableQuery;n&&e.push(r)}),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},i.prototype.resetStore=function(){var e=this;return this.clearStore().then(function(){return e.reFetchObservableQueries()})},i.prototype.reFetchObservableQueries=function(e){var t=this;e===void 0&&(e=!1);var r=[];return this.queries.forEach(function(n,s){var o=n.observableQuery;if(o){var h=o.options.fetchPolicy;o.resetLastResults(),h!=="cache-only"&&(e||h!=="standby")&&r.push(o.refetch()),t.setQuery(s,function(){return{newData:null}}),t.invalidate(s)}}),this.broadcastQueries(),Promise.all(r)},i.prototype.observeQuery=function(e,t,r){return this.addQueryListener(e,this.queryListenerForObserver(e,t,r)),this.fetchQuery(e,t)},i.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch(function(){}),e},i.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,s=e.variables;r=this.transform(r).document,s=this.getVariables(r,s);var o=function(S){return t.getObservableFromLink(r,{},S,!1).map(function(T){if((!n||n!=="no-cache")&&(t.dataStore.markSubscriptionResult(T,r,S),t.broadcastQueries()),ht(T))throw new li({graphQLErrors:T.errors});return T})};if(this.transform(r).hasClientExports){var h=this.localState.addExportedVariables(r,s).then(o);return new Oi(function(S){var T=null;return h.then(function(P){return T=P.subscribe(S)},S.error),function(){return T&&T.unsubscribe()}})}return o(s)},i.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},i.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},i.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach(function(t){return t.unsubscribe()}),this.queries.delete(e)},i.prototype.getCurrentQueryResult=function(e,t){t===void 0&&(t=!0);var r=e.options,n=r.variables,s=r.query,o=r.fetchPolicy,h=r.returnPartialData,S=e.getLastResult(),T=this.getQuery(e.queryId).newData;if(T&&T.complete)return{data:T.result,partial:!1};if(o==="no-cache"||o==="network-only")return{data:void 0,partial:!1};var P=this.dataStore.getCache().diff({query:s,variables:n,previousResult:S?S.data:void 0,returnPartialData:!0,optimistic:t}),V=P.result,j=P.complete;return{data:j||h?V:void 0,partial:!j}},i.prototype.getQueryWithPreviousResult=function(e){var t;if(typeof e=="string"){var r=this.getQuery(e).observableQuery;Vt(r,17),t=r}else t=e;var n=t.options,s=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:s,document:o}},i.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach(function(t,r){t.invalidated&&t.listeners.forEach(function(n){n&&n(e.queryStore.get(r),t.newData)})})},i.prototype.getLocalState=function(){return this.localState},i.prototype.getObservableFromLink=function(e,t,r,n){var s=this;n===void 0&&(n=this.queryDeduplication);var o,h=this.transform(e).serverQuery;if(h){var S=this,T=S.inFlightLinkObservables,P=S.link,V={query:h,variables:r,operationName:Ms(h)||void 0,context:this.prepareContext(Ye(Ye({},t),{forceFetch:!n}))};if(t=V.context,n){var j=T.get(h)||new Map;T.set(h,j);var ue=JSON.stringify(r);if(o=j.get(ue),!o){j.set(ue,o=ln(Rr(P,V)));var Te=function(){j.delete(ue),j.size||T.delete(h),Se.unsubscribe()},Se=o.subscribe({next:Te,error:Te,complete:Te})}}else o=ln(Rr(P,V))}else o=Oi.of({data:{}}),t=this.prepareContext(t);var qe=this.transform(e).clientQuery;return qe&&(o=kn(o,function(xe){return s.localState.runResolvers({document:qe,remoteResult:xe,context:t,variables:r})})),o},i.prototype.fetchRequest=function(e){var t=this,r=e.requestId,n=e.queryId,s=e.document,o=e.options,h=e.fetchMoreForQueryId,S=o.variables,T=o.errorPolicy,P=T===void 0?"none":T,V=o.fetchPolicy,j,ue;return new Promise(function(Te,Se){var qe=t.getObservableFromLink(s,o.context,S),xe="fetchRequest:"+n;t.fetchQueryRejectFns.set(xe,Se);var je=function(){t.fetchQueryRejectFns.delete(xe),t.setQuery(n,function(ze){var dt=ze.subscriptions;dt.delete(Ke)})},Ke=qe.map(function(ze){if(r>=t.getQuery(n).lastRequestId&&(t.markQueryResult(n,ze,o,h),t.queryStore.markQueryResult(n,ze,h),t.invalidate(n),t.invalidate(h),t.broadcastQueries()),P==="none"&&Ji(ze.errors))return Se(new li({graphQLErrors:ze.errors}));if(P==="all"&&(ue=ze.errors),h||V==="no-cache")j=ze.data;else{var dt=t.dataStore.getCache().diff({variables:S,query:s,optimistic:!1,returnPartialData:!0}),Mt=dt.result,Ht=dt.complete;(Ht||o.returnPartialData)&&(j=Mt)}}).subscribe({error:function(ze){je(),Se(ze)},complete:function(){je(),Te({data:j,errors:ue,loading:!1,networkStatus:At.ready,stale:!1})}});t.setQuery(n,function(ze){var dt=ze.subscriptions;dt.add(Ke)})})},i.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},i.prototype.setQuery=function(e,t){var r=this.getQuery(e),n=Ye(Ye({},r),t(r));this.queries.set(e,n)},i.prototype.invalidate=function(e,t){t===void 0&&(t=!0),e&&this.setQuery(e,function(){return{invalidated:t}})},i.prototype.prepareContext=function(e){e===void 0&&(e={});var t=this.localState.prepareContext(e);return Ye(Ye({},t),{clientAwareness:this.clientAwareness})},i.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==At.ready&&t.networkStatus!==At.error},i.prototype.startPollingQuery=function(e,t,r){var n=this,s=e.pollInterval;if(Vt(s,18),!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);o||this.pollingInfoByQueryId.set(t,o={}),o.interval=s,o.options=Ye(Ye({},e),{fetchPolicy:"network-only"});var h=function(){var T=n.pollingInfoByQueryId.get(t);T&&(n.checkInFlight(t)?S():n.fetchQuery(t,T.options,Tt.poll).then(S,S))},S=function(){var T=n.pollingInfoByQueryId.get(t);T&&(clearTimeout(T.timeout),T.timeout=setTimeout(h,T.interval))};r&&this.addQueryListener(t,r),S()}return t},i.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},i}(),Cn=function(){function i(e){this.cache=e}return i.prototype.getCache=function(){return this.cache},i.prototype.markQueryResult=function(e,t,r,n,s){s===void 0&&(s=!1);var o=!ht(e);s&&ht(e)&&e.data&&(o=!0),!n&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},i.prototype.markSubscriptionResult=function(e,t,r){ht(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},i.prototype.markMutationInit=function(e){var t=this;if(e.optimisticResponse){var r;typeof e.optimisticResponse=="function"?r=e.optimisticResponse(e.variables):r=e.optimisticResponse,this.cache.recordOptimisticTransaction(function(n){var s=t.cache;t.cache=n;try{t.markMutationResult({mutationId:e.mutationId,result:{data:r},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{t.cache=s}},e.mutationId)}},i.prototype.markMutationResult=function(e){var t=this;if(!ht(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.updateQueries;n&&Object.keys(n).forEach(function(s){var o=n[s],h=o.query,S=o.updater,T=t.cache.diff({query:h.document,variables:h.variables,returnPartialData:!0,optimistic:!1}),P=T.result,V=T.complete;if(V){var j=Qt(function(){return S(P,{mutationResult:e.result,queryName:Ms(h.document)||void 0,queryVariables:h.variables})});j&&r.push({result:j,dataId:"ROOT_QUERY",query:h.document,variables:h.variables})}}),this.cache.performTransaction(function(s){r.forEach(function(h){return s.write(h)});var o=e.update;o&&Qt(function(){return o(s,e.result)})})}},i.prototype.markMutationComplete=function(e){var t=e.mutationId,r=e.optimisticResponse;r&&this.cache.removeOptimistic(t)},i.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},i.prototype.reset=function(){return this.cache.reset()},i}(),ji="2.6.10",Nn=!1,Pn=function(){function i(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,s=n===void 0?!1:n,o=e.ssrForceFetchDelay,h=o===void 0?0:o,S=e.connectToDevTools,T=e.queryDeduplication,P=T===void 0?!0:T,V=e.defaultOptions,j=e.assumeImmutableResults,ue=j===void 0?!1:j,Te=e.resolvers,Se=e.typeDefs,qe=e.fragmentMatcher,xe=e.name,je=e.version,Ke=e.link;if(!Ke&&Te&&(Ke=Ti.empty()),!Ke||!r)throw new Fi(4);this.link=Ke,this.cache=r,this.store=new Cn(r),this.disableNetworkFetches=s||h>0,this.queryDeduplication=P,this.defaultOptions=V||{},this.typeDefs=Se,h&&setTimeout(function(){return t.disableNetworkFetches=!1},h),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);var ze=!1;(typeof S=="undefined"?ze:S&&typeof window!="undefined")&&(window.__APOLLO_CLIENT__=this),this.version=ji,this.localState=new on({cache:r,client:this,resolvers:Te,fragmentMatcher:qe}),this.queryManager=new Rn({link:this.link,store:this.store,queryDeduplication:P,ssrMode:s,clientAwareness:{name:xe,version:je},localState:this.localState,assumeImmutableResults:ue,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return i.prototype.stop=function(){this.queryManager.stop()},i.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Ye(Ye({},this.defaultOptions.watchQuery),e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=Ye(Ye({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},i.prototype.query=function(e){return this.defaultOptions.query&&(e=Ye(Ye({},this.defaultOptions.query),e)),Vt(e.fetchPolicy!=="cache-and-network",5),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=Ye(Ye({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},i.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Ye(Ye({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},i.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},i.prototype.readQuery=function(e,t){return t===void 0&&(t=!1),this.cache.readQuery(e,t)},i.prototype.readFragment=function(e,t){return t===void 0&&(t=!1),this.cache.readFragment(e,t)},i.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},i.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},i.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},i.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},i.prototype.__requestRaw=function(e){return Rr(this.link,e)},i.prototype.initQueryManager=function(){return this.queryManager},i.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(t){return t()}))}).then(function(){return e.reFetchObservableQueries()})},i.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(t){return t()}))})},i.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(r){return r!==e})}},i.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(r){return r!==e})}},i.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},i.prototype.extract=function(e){return this.cache.extract(e)},i.prototype.restore=function(e){return this.cache.restore(e)},i.prototype.addResolvers=function(e){this.localState.addResolvers(e)},i.prototype.setResolvers=function(e){this.localState.setResolvers(e)},i.prototype.getResolvers=function(){return this.localState.getResolvers()},i.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},i}();const Cr=null;function Dn(i){var e={kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:xr(i)},t={kind:"Document",definitions:[e]};return t}function An(i,e){var t={kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:e||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:xr(i)},r={kind:"Document",definitions:[t]};return r}function xr(i){if(typeof i=="number"||typeof i=="boolean"||typeof i=="string"||typeof i=="undefined"||i===null)return null;if(Array.isArray(i))return xr(i[0]);var e=[];Object.keys(i).forEach(function(r){var n=xr(i[r]),s={kind:"Field",name:{kind:"Name",value:r},selectionSet:n||void 0};e.push(s)});var t={kind:"SelectionSet",selections:e};return t}var pr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},In=function(){function i(){}return i.prototype.transformDocument=function(e){return e},i.prototype.transformForLink=function(e){return e},i.prototype.readQuery=function(e,t){return t===void 0&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},i.prototype.readFragment=function(e,t){return t===void 0&&(t=!1),this.read({query:Ua(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},i.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},i.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Ua(e.fragment,e.fragmentName)})},i.prototype.writeData=function(e){var t=e.id,r=e.data;if(typeof t!="undefined"){var n=null;try{n=this.read({rootId:t,optimistic:!1,query:pr})}catch(h){}var s=n&&n.__typename||"__ClientData",o=Object.assign({__typename:s},r);this.writeFragment({id:t,fragment:An(o,s),data:o})}else this.writeQuery({query:Dn(r),data:r})},i}(),cr;(function(i){})(cr||(cr={}));var vi=null,w={},N=1,F=function(){return function(){function i(){this.id=["slot",N++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return i.prototype.hasValue=function(){for(var e=vi;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===w)break;return e!==vi&&(vi.slots[this.id]=t),!0}return vi&&(vi.slots[this.id]=w),!1},i.prototype.getValue=function(){if(this.hasValue())return vi.slots[this.id]},i.prototype.withValue=function(e,t,r,n){var s,o=(s={__proto__:null},s[this.id]=e,s),h=vi;vi={parent:h,slots:o};try{return t.apply(n,r)}finally{vi=h}},i.bind=function(e){var t=vi;return function(){var r=vi;try{return vi=t,e.apply(this,arguments)}finally{vi=r}}},i.noContext=function(e,t,r){if(vi){var n=vi;try{return vi=null,e.apply(r,t)}finally{vi=n}}else return e.apply(r,t)},i}()},ne="@wry/context:Slot",de=Array,ge=de[ne]||function(){var i=F();try{Object.defineProperty(de,ne,{value:de[ne]=i,enumerable:!1,writable:!1,configurable:!1})}finally{return i}}(),we=ge.bind,Be=ge.noContext;function Ge(i,e){return setTimeout(we(i),e)}function $t(i){return function(){var e=i.apply(this,arguments),t=we(e.next),r=we(e.throw);return new Promise(function(n,s){function o(T,P){try{var V=T.call(e,P)}catch(ue){return s(ue)}var j=V.done?n:h;xt(V.value)?V.value.then(j,V.done?s:S):j(V.value)}var h=function(T){return o(t,T)},S=function(T){return o(r,T)};h()})}}function xt(i){return i&&typeof i.then=="function"}var Pt=null;function Dt(i){if(Pt.indexOf(i)<0){var e=function(t,r){var n=t[r];t[r]=function(){return Be(n,arguments,this)}};e(i,"yield"),e(i.prototype,"run"),e(i.prototype,"throwInto"),Pt.push(i)}return i}function ri(){}var Yd=function(){function i(e,t){e===void 0&&(e=Infinity),t===void 0&&(t=ri),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return i.prototype.has=function(e){return this.map.has(e)},i.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},i.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},i.prototype.set=function(e,t){var r=this.getEntry(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},i.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},i.prototype.delete=function(e){var t=this.map.get(e);return t?(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0):!1},i}(),fa=new ge,Xd=[],Fs=[],Jd=100;function Jn(i,e){if(!i)throw new Error(e||"assertion failure")}function Zd(i,e){var t=i.length;return t>0&&t===e.length&&i[t-1]===e[t-1]}function Xo(i){switch(i.length){case 0:throw new Error("unknown value");case 1:return i[0];case 2:throw i[1]}}function eu(i){return i.slice(0)}var tu=function(){function i(e,t){this.fn=e,this.args=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++i.count}return i.prototype.recompute=function(){if(Jn(!this.recomputing,"already recomputing"),!(!iu(this)&&$a(this)))return dn(this)?ru(this):Xo(this.value)},i.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Jo(this),va(this))},i.prototype.dispose=function(){var e=this;il(this).forEach($a),va(this),this.parents.forEach(function(t){t.setDirty(),rl(t,e)})},i.count=0,i}();function iu(i){var e=fa.getValue();if(e)return i.parents.add(e),e.childValues.has(i)||e.childValues.set(i,[]),dn(i)?Zo(e,i):el(e,i),e}function ru(i){var e=il(i);return fa.withValue(i,qa,[i]),au(i)&&nu(i),e.forEach($a),Xo(i.value)}function qa(i){i.recomputing=!0,i.value.length=0;try{i.value[0]=i.fn.apply(null,i.args)}catch(e){i.value[1]=e}i.recomputing=!1}function dn(i){return i.dirty||!!(i.dirtyChildren&&i.dirtyChildren.size)}function nu(i){i.dirty=!1,!dn(i)&&Ls(i)}function Jo(i){i.parents.forEach(function(e){return Zo(e,i)})}function Ls(i){i.parents.forEach(function(e){return el(e,i)})}function Zo(i,e){if(Jn(i.childValues.has(e)),Jn(dn(e)),!i.dirtyChildren)i.dirtyChildren=Fs.pop()||new Set;else if(i.dirtyChildren.has(e))return;i.dirtyChildren.add(e),Jo(i)}function el(i,e){Jn(i.childValues.has(e)),Jn(!dn(e));var t=i.childValues.get(e);t.length===0?i.childValues.set(e,eu(e.value)):Zd(t,e.value)||i.setDirty(),tl(i,e),!dn(i)&&Ls(i)}function tl(i,e){var t=i.dirtyChildren;t&&(t.delete(e),t.size===0&&(Fs.length<Jd&&Fs.push(t),i.dirtyChildren=null))}function $a(i){return i.parents.size===0&&typeof i.reportOrphan=="function"&&i.reportOrphan()===!0}function il(i){var e=Xd;return i.childValues.size>0&&(e=[],i.childValues.forEach(function(t,r){rl(i,r),e.push(r)})),Jn(i.dirtyChildren===null),e}function rl(i,e){e.parents.delete(i),i.childValues.delete(e),tl(i,e)}function au(i){if(typeof i.subscribe=="function")try{va(i),i.unsubscribe=i.subscribe.apply(null,i.args)}catch(e){return i.setDirty(),!1}return!0}function va(i){var e=i.unsubscribe;typeof e=="function"&&(i.unsubscribe=void 0,e())}var Us=function(){function i(e){this.weakness=e}return i.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},i.prototype.lookupArray=function(e){var t=this;return e.forEach(function(r){return t=t.getChildTrie(r)}),t.data||(t.data=Object.create(null))},i.prototype.getChildTrie=function(e){var t=this.weakness&&su(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=t.get(e);return r||t.set(e,r=new i(this.weakness)),r},i}();function su(i){switch(typeof i){case"object":if(i===null)break;case"function":return!0}return!1}var ou=new Us(typeof WeakMap=="function");function Ga(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return ou.lookupArray(i)}var ga=new Set;function On(i,e){e===void 0&&(e=Object.create(null));var t=new Yd(e.max||Math.pow(2,16),function(o){return o.dispose()}),r=!!e.disposable,n=e.makeCacheKey||Ga;function s(){if(!(r&&!fa.hasValue())){var o=n.apply(null,arguments);if(o===void 0)return i.apply(null,arguments);var h=Array.prototype.slice.call(arguments),S=t.get(o);S?S.args=h:(S=new tu(i,h),t.set(o,S),S.subscribe=e.subscribe,r&&(S.reportOrphan=function(){return t.delete(o)}));var T=S.recompute();return t.set(o,S),ga.add(t),fa.hasValue()||(ga.forEach(function(P){return P.clean()}),ga.clear()),r?void 0:T}}return s.dirty=function(){var o=n.apply(null,arguments),h=o!==void 0&&t.get(o);h&&h.setDirty()},s}var Ba=!1;function nl(){var i=!Ba;return yt()||(Ba=!0),i}var al=function(){function i(){}return i.prototype.ensureReady=function(){return Promise.resolve()},i.prototype.canBypassInit=function(){return!0},i.prototype.match=function(e,t,r){var n=r.store.get(e.id),s=e.id==="ROOT_QUERY";if(!n)return s;var o=n.__typename,h=o===void 0?s&&"Query":o;return h&&h===t?!0:(nl(),"heuristic")},i}(),sl=function(){function i(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return i.prototype.match=function(e,t,r){Vt(this.isReady,1);var n=r.store.get(e.id),s=e.id==="ROOT_QUERY";if(!n)return s;var o=n.__typename,h=o===void 0?s&&"Query":o;if(Vt(h,2),h===t)return!0;var S=this.possibleTypesMap[t];return!!(h&&S&&S.indexOf(h)>-1)},i.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach(function(r){(r.kind==="UNION"||r.kind==="INTERFACE")&&(t[r.name]=r.possibleTypes.map(function(n){return n.name}))}),t},i}(),Vs=Object.prototype.hasOwnProperty,wr=function(){function i(e){var t=this;e===void 0&&(e=Object.create(null)),this.data=e,this.depend=On(function(r){return t.data[r]},{disposable:!0,makeCacheKey:function(r){return r}})}return i.prototype.toObject=function(){return this.data},i.prototype.get=function(e){return this.depend(e),this.data[e]},i.prototype.set=function(e,t){var r=this.data[e];t!==r&&(this.data[e]=t,this.depend.dirty(e))},i.prototype.delete=function(e){Vs.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},i.prototype.clear=function(){this.replace(null)},i.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach(function(r){t.set(r,e[r])}),Object.keys(this.data).forEach(function(r){Vs.call(e,r)||t.delete(r)})):Object.keys(this.data).forEach(function(r){t.delete(r)})},i}();function Zn(i){return new wr(i)}var lu=function(){function i(e){var t=this,r=e===void 0?{}:e,n=r.cacheKeyRoot,s=n===void 0?new Us(Ee):n,o=r.freezeResults,h=o===void 0?!1:o,S=this,T=S.executeStoreQuery,P=S.executeSelectionSet,V=S.executeSubSelectedArray;this.freezeResults=h,this.executeStoreQuery=On(function(j){return T.call(t,j)},{makeCacheKey:function(j){var ue=j.query,Te=j.rootValue,Se=j.contextValue,qe=j.variableValues,xe=j.fragmentMatcher;if(Se.store instanceof wr)return s.lookup(Se.store,ue,xe,JSON.stringify(qe),Te.id)}}),this.executeSelectionSet=On(function(j){return P.call(t,j)},{makeCacheKey:function(j){var ue=j.selectionSet,Te=j.rootValue,Se=j.execContext;if(Se.contextValue.store instanceof wr)return s.lookup(Se.contextValue.store,ue,Se.fragmentMatcher,JSON.stringify(Se.variableValues),Te.id)}}),this.executeSubSelectedArray=On(function(j){return V.call(t,j)},{makeCacheKey:function(j){var ue=j.field,Te=j.array,Se=j.execContext;if(Se.contextValue.store instanceof wr)return s.lookup(Se.contextValue.store,ue,Te,JSON.stringify(Se.variableValues))}})}return i.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Ye(Ye({},e),{returnPartialData:!1})).result},i.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,s=e.previousResult,o=e.returnPartialData,h=o===void 0?!0:o,S=e.rootId,T=S===void 0?"ROOT_QUERY":S,P=e.fragmentMatcherFunction,V=e.config,j=Wd(r);n=tn({},p(j),n);var ue={store:t,dataIdFromObject:V&&V.dataIdFromObject,cacheRedirects:V&&V.cacheRedirects||{}},Te=this.executeStoreQuery({query:r,rootValue:{type:"id",id:T,generated:!0,typename:"Query"},contextValue:ue,variableValues:n,fragmentMatcher:P}),Se=Te.missing&&Te.missing.length>0;return Se&&!h&&Te.missing.forEach(function(qe){if(!qe.tolerable)throw new Fi(8)}),s&&Ai(s,Te.result)&&(Te.result=s),{result:Te.result,complete:!Se}},i.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,s=e.variableValues,o=e.fragmentMatcher,h=o===void 0?du:o,S=a(t),T=Va(t),P=k(T),V={query:t,fragmentMap:P,contextValue:n,variableValues:s,fragmentMatcher:h};return this.executeSelectionSet({selectionSet:S.selectionSet,rootValue:r,execContext:V})},i.prototype.executeSelectionSet=function(e){var t=this,r=e.selectionSet,n=e.rootValue,s=e.execContext,o=s.fragmentMap,h=s.contextValue,S=s.variableValues,T={result:null},P=[],V=h.store.get(n.id),j=V&&V.__typename||n.id==="ROOT_QUERY"&&"Query"||void 0;function ue(Te){var Se;return Te.missing&&(T.missing=T.missing||[],(Se=T.missing).push.apply(Se,Te.missing)),Te.result}return r.selections.forEach(function(Te){var Se;if(!!Os(Te,S))if(Gr(Te)){var qe=ue(t.executeField(V,j,Te,s));typeof qe!="undefined"&&P.push((Se={},Se[ha(Te)]=qe,Se))}else{var xe=void 0;if(xa(Te))xe=Te;else if(xe=o[Te.name.value],!xe)throw new Fi(9);var je=xe.typeCondition&&xe.typeCondition.name.value,Ke=!je||s.fragmentMatcher(n,je,h);if(Ke){var ze=t.executeSelectionSet({selectionSet:xe.selectionSet,rootValue:n,execContext:s});Ke==="heuristic"&&ze.missing&&(ze=Ye(Ye({},ze),{missing:ze.missing.map(function(dt){return Ye(Ye({},dt),{tolerable:!0})})})),P.push(ue(ze))}}}),T.result=ct(P),this.freezeResults,T},i.prototype.executeField=function(e,t,r,n){var s=n.variableValues,o=n.contextValue,h=r.name.value,S=Is(r,s),T={resultKey:ha(r),directives:Bd(r,s)},P=pu(e,t,h,S,o,T);return Array.isArray(P.result)?this.combineExecResults(P,this.executeSubSelectedArray({field:r,array:P.result,execContext:n})):r.selectionSet?P.result==null?P:this.combineExecResults(P,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:P.result,execContext:n})):(qs(r,P.result),this.freezeResults,P)},i.prototype.combineExecResults=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r;return e.forEach(function(n){n.missing&&(r=r||[],r.push.apply(r,n.missing))}),{result:e.pop().result,missing:r}},i.prototype.executeSubSelectedArray=function(e){var t=this,r=e.field,n=e.array,s=e.execContext,o;function h(S){return S.missing&&(o=o||[],o.push.apply(o,S.missing)),S.result}return n=n.map(function(S){return S===null?null:Array.isArray(S)?h(t.executeSubSelectedArray({field:r,array:S,execContext:s})):r.selectionSet?h(t.executeSelectionSet({selectionSet:r.selectionSet,rootValue:S,execContext:s})):(qs(r,S),S)}),this.freezeResults,{result:n,missing:o}},i}();function qs(i,e){if(!i.selectionSet&&Ma(e))throw new Fi(10)}function du(){return!0}function uu(i){invariant(isIdValue(i),11)}function pu(i,e,t,r,n,s){var o=s.resultKey,h=s.directives,S=t;(r||h)&&(S=Ko(S,r,h));var T=void 0;if(i&&(T=i[S],typeof T=="undefined"&&n.cacheRedirects&&typeof e=="string")){var P=n.cacheRedirects[e];if(P){var V=P[t];V&&(T=V(i,r,{getCacheKey:function(j){var ue=n.dataIdFromObject(j);return ue&&Fa({id:ue,typename:j.__typename})}}))}}return typeof T=="undefined"?{result:T,missing:[{object:i,fieldName:S,tolerable:!1}]}:($d(T)&&(T=T.json),{result:T})}var Ha=function(){function i(e){e===void 0&&(e=Object.create(null)),this.data=e}return i.prototype.toObject=function(){return this.data},i.prototype.get=function(e){return this.data[e]},i.prototype.set=function(e,t){this.data[e]=t},i.prototype.delete=function(e){this.data[e]=void 0},i.prototype.clear=function(){this.data=Object.create(null)},i.prototype.replace=function(e){this.data=e||Object.create(null)},i}();function cu(i){return new Ha(i)}var mu=function(i){qr(e,i);function e(){var t=i!==null&&i.apply(this,arguments)||this;return t.type="WriteError",t}return e}(Error);function ie(i,e){var t=new mu(`Error writing result to store for query:
|
||
`+JSON.stringify(e));return t.message+=`
|
||
`+i.message,t.stack=i.stack,t}var ye=function(){function i(){}return i.prototype.writeQueryToStore=function(e){var t=e.query,r=e.result,n=e.store,s=n===void 0?Zn():n,o=e.variables,h=e.dataIdFromObject,S=e.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:r,document:t,store:s,variables:o,dataIdFromObject:h,fragmentMatcherFunction:S})},i.prototype.writeResultToStore=function(e){var t=e.dataId,r=e.result,n=e.document,s=e.store,o=s===void 0?Zn():s,h=e.variables,S=e.dataIdFromObject,T=e.fragmentMatcherFunction,P=Hi(n);try{return this.writeSelectionSetToStore({result:r,dataId:t,selectionSet:P.selectionSet,context:{store:o,processedData:{},variables:tn({},p(P),h),dataIdFromObject:S,fragmentMap:k(Va(n)),fragmentMatcherFunction:T}})}catch(V){throw ie(V,n)}},i.prototype.writeSelectionSetToStore=function(e){var t=this,r=e.result,n=e.dataId,s=e.selectionSet,o=e.context,h=o.variables,S=o.store,T=o.fragmentMap;return s.selections.forEach(function(P){var V;if(!!Os(P,h))if(Gr(P)){var j=ha(P),ue=r[j];if(typeof ue!="undefined")t.writeFieldToStore({dataId:n,value:ue,field:P,context:o});else{var Te=!1,Se=!1;P.directives&&P.directives.length&&(Te=P.directives.some(function(Mt){return Mt.name&&Mt.name.value==="defer"}),Se=P.directives.some(function(Mt){return Mt.name&&Mt.name.value==="client"})),!Te&&!Se&&o.fragmentMatcherFunction}}else{var qe=void 0;xa(P)?qe=P:(qe=(T||{})[P.name.value],Vt(qe,3));var xe=!0;if(o.fragmentMatcherFunction&&qe.typeCondition){var je=n||"self",Ke=Fa({id:je,typename:void 0}),ze={store:new Ha((V={},V[je]=r,V)),cacheRedirects:{}},dt=o.fragmentMatcherFunction(Ke,qe.typeCondition.name.value,ze);!it()&&dt==="heuristic",xe=!!dt}xe&&t.writeSelectionSetToStore({result:r,selectionSet:qe.selectionSet,dataId:n,context:o})}}),S},i.prototype.writeFieldToStore=function(e){var t,r=e.field,n=e.value,s=e.dataId,o=e.context,h=o.variables,S=o.dataIdFromObject,T=o.store,P,V,j=Vd(r,h);if(!r.selectionSet||n===null)P=n!=null&&typeof n=="object"?{type:"json",json:n}:n;else if(Array.isArray(n)){var ue=s+"."+j;P=this.processArrayValue(n,ue,r.selectionSet,o)}else{var Te=s+"."+j,Se=!0;if(Ae(Te)||(Te="$"+Te),S){var qe=S(n);Vt(!qe||!Ae(qe),4),(qe||typeof qe=="number"&&qe===0)&&(Te=qe,Se=!1)}Lt(Te,r,o.processedData)||this.writeSelectionSetToStore({dataId:Te,result:n,selectionSet:r.selectionSet,context:o});var xe=n.__typename;P=Fa({id:Te,typename:xe},Se),V=T.get(s);var je=V&&V[j];if(je!==P&&Ma(je)){var Ke=je.typename!==void 0,ze=xe!==void 0,dt=Ke&&ze&&je.typename!==xe;Vt(!Se||je.generated||dt,5),Vt(!Ke||ze,6),je.generated&&(dt?Se||T.delete(je.id):ot(je.id,P.id,T))}}V=T.get(s),(!V||!Ai(P,V[j]))&&T.set(s,Ye(Ye({},V),(t={},t[j]=P,t)))},i.prototype.processArrayValue=function(e,t,r,n){var s=this;return e.map(function(o,h){if(o===null)return null;var S=t+"."+h;if(Array.isArray(o))return s.processArrayValue(o,S,r,n);var T=!0;if(n.dataIdFromObject){var P=n.dataIdFromObject(o);P&&(S=P,T=!1)}return Lt(S,r,n.processedData)||s.writeSelectionSetToStore({dataId:S,result:o,selectionSet:r,context:n}),Fa({id:S,typename:o.__typename},T)})},i}();function Ae(i){return i[0]==="$"}function ot(i,e,t){if(i===e)return!1;var r=t.get(i),n=t.get(e),s=!1;Object.keys(r).forEach(function(h){var S=r[h],T=n[h];Ma(S)&&Ae(S.id)&&Ma(T)&&!Ai(S,T)&&ot(S.id,T.id,t)&&(s=!0)}),t.delete(i);var o=Ye(Ye({},r),n);return Ai(o,n)?s:(t.set(e,o),!0)}function Lt(i,e,t){if(!t)return!1;if(t[i]){if(t[i].indexOf(e)>=0)return!0;t[i].push(e)}else t[i]=[e];return!1}var si={fragmentMatcher:new al,dataIdFromObject:fi,addTypename:!0,resultCaching:!0,freezeResults:!1};function fi(i){if(i.__typename){if(i.id!==void 0)return i.__typename+":"+i.id;if(i._id!==void 0)return i.__typename+":"+i._id}return null}var Ut=Object.prototype.hasOwnProperty,pi=function(i){qr(e,i);function e(t,r,n){var s=i.call(this,Object.create(null))||this;return s.optimisticId=t,s.parent=r,s.transaction=n,s}return e.prototype.toObject=function(){return Ye(Ye({},this.parent.toObject()),this.data)},e.prototype.get=function(t){return Ut.call(this.data,t)?this.data[t]:this.parent.get(t)},e}(Ha),br=function(i){qr(e,i);function e(t){t===void 0&&(t={});var r=i.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new Us(Ee),r.silenceBroadcast=!1,r.config=Ye(Ye({},si),t),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new wr:new Ha,r.optimisticData=r.data,r.storeWriter=new ye,r.storeReader=new lu({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var n=r,s=n.maybeBroadcastWatch;return r.maybeBroadcastWatch=On(function(o){return s.call(r,o)},{makeCacheKey:function(o){if(!o.optimistic&&!o.previousResult&&n.data instanceof wr)return n.cacheKeyRoot.lookup(o.query,JSON.stringify(o.variables))}}),r}return e.prototype.restore=function(t){return t&&this.data.replace(t),this},e.prototype.extract=function(t){return t===void 0&&(t=!1),(t?this.optimisticData:this.data).toObject()},e.prototype.read=function(t){if(typeof t.rootId=="string"&&typeof this.data.get(t.rootId)=="undefined")return null;var r=this.config.fragmentMatcher,n=r&&r.match;return this.storeReader.readQueryFromStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,rootId:t.rootId,fragmentMatcherFunction:n,previousResult:t.previousResult,config:this.config})||null},e.prototype.write=function(t){var r=this.config.fragmentMatcher,n=r&&r.match;this.storeWriter.writeResultToStore({dataId:t.dataId,result:t.result,variables:t.variables,document:this.transformDocument(t.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},e.prototype.diff=function(t){var r=this.config.fragmentMatcher,n=r&&r.match;return this.storeReader.diffQueryAgainstStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,returnPartialData:t.returnPartialData,previousResult:t.previousResult,fragmentMatcherFunction:n,config:this.config})},e.prototype.watch=function(t){var r=this;return this.watches.add(t),function(){r.watches.delete(t)}},e.prototype.evict=function(t){throw new Fi(7)},e.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){for(var r=[],n=0,s=this.optimisticData;s instanceof pi;)s.optimisticId===t?++n:r.push(s),s=s.parent;if(n>0){for(this.optimisticData=s;r.length>0;){var o=r.pop();this.performTransaction(o.transaction,o.optimisticId)}this.broadcastWatches()}},e.prototype.performTransaction=function(t,r){var n=this,s=n.data,o=n.silenceBroadcast;this.silenceBroadcast=!0,typeof r=="string"&&(this.data=this.optimisticData=new pi(r,this.optimisticData,t));try{t(this)}finally{this.silenceBroadcast=o,this.data=s}this.broadcastWatches()},e.prototype.recordOptimisticTransaction=function(t,r){return this.performTransaction(t,r)},e.prototype.transformDocument=function(t){if(this.addTypename){var r=this.typenameDocumentCache.get(t);return r||(r=y(t),this.typenameDocumentCache.set(t,r),this.typenameDocumentCache.set(r,r)),r}return t},e.prototype.broadcastWatches=function(){var t=this;this.silenceBroadcast||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r)})},e.prototype.maybeBroadcastWatch=function(t){t.callback(this.diff({query:t.query,variables:t.variables,previousResult:t.previousResult&&t.previousResult(),optimistic:t.optimistic}))},e}(In);function mr(i){return new Ti(function(e,t){var r=$o(e,[]);return new st(function(n){var s;return Promise.resolve(r).then(function(o){return i(o,e.getContext())}).then(e.setContext).then(function(){s=t(e).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)})}).catch(n.error.bind(n)),function(){s&&s.unsubscribe()}})})}var ya=wt(3033),$s={includeQuery:!0,includeExtensions:!1},Gs={accept:"*/*","content-type":"application/json"},ol={method:"POST"},Sm={http:$s,headers:Gs,options:ol},kp=function(i,e,t){var r=new Error(t);throw r.name="ServerError",r.response=i,r.statusCode=i.status,r.result=e,r},Tm=function(i){return function(e){return e.text().then(function(t){try{return JSON.parse(t)}catch(n){var r=n;return r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,Promise.reject(r)}}).then(function(t){return e.status>=300&&kp(e,t,"Response not successful: Received status code "+e.status),!Array.isArray(t)&&!t.hasOwnProperty("data")&&!t.hasOwnProperty("errors")&&kp(e,t,"Server response was missing for query '"+(Array.isArray(i)?i.map(function(r){return r.operationName}):i.operationName)+"'."),t})}},km=function(i){if(!i&&typeof fetch=="undefined"){var e="unfetch";throw typeof window=="undefined"&&(e="node-fetch"),new Fi(1)}},Rm=function(){if(typeof AbortController=="undefined")return{controller:!1,signal:!1};var i=new AbortController,e=i.signal;return{controller:i,signal:e}},Cm=function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n=Ye({},e.options,{headers:e.headers,credentials:e.credentials}),s=e.http;t.forEach(function(V){n=Ye({},n,V.options,{headers:Ye({},n.headers,V.headers)}),V.credentials&&(n.credentials=V.credentials),s=Ye({},s,V.http)});var o=i.operationName,h=i.extensions,S=i.variables,T=i.query,P={operationName:o,variables:S};return s.includeExtensions&&(P.extensions=h),s.includeQuery&&(P.query=(0,ya.S)(T)),{options:n,body:P}},hu=function(i,e){var t;try{t=JSON.stringify(i)}catch(n){var r=new Fi(2);throw r.parseError=n,r}return t},Nm=function(i,e){var t=i.getContext(),r=t.uri;return r||(typeof e=="function"?e(i):e||"/graphql")},Rp=function(i){i===void 0&&(i={});var e=i.uri,t=e===void 0?"/graphql":e,r=i.fetch,n=i.includeExtensions,s=i.useGETForQueries,o=$o(i,["uri","fetch","includeExtensions","useGETForQueries"]);km(r),r||(r=fetch);var h={http:{includeExtensions:n},options:o.fetchOptions,credentials:o.credentials,headers:o.headers};return new Ti(function(S){var T=Nm(S,t),P=S.getContext(),V={};if(P.clientAwareness){var j=P.clientAwareness,ue=j.name,Te=j.version;ue&&(V["apollographql-client-name"]=ue),Te&&(V["apollographql-client-version"]=Te)}var Se=Ye({},V,P.headers),qe={http:P.http,options:P.fetchOptions,credentials:P.credentials,headers:Se},xe=Cm(S,Sm,h,qe),je=xe.options,Ke=xe.body,ze;if(!je.signal){var dt=Rm(),Mt=dt.controller,Ht=dt.signal;ze=Mt,ze&&(je.signal=Ht)}var Xt=function(Yr){return Yr.kind==="OperationDefinition"&&Yr.operation==="mutation"};if(s&&!S.query.definitions.some(Xt)&&(je.method="GET"),je.method==="GET"){var Kt=Pm(T,Ke),aa=Kt.newURI,oo=Kt.parseError;if(oo)return rn(oo);T=aa}else try{je.body=hu(Ke,"Payload")}catch(Yr){return rn(Yr)}return new st(function(Yr){return r(T,je).then(function(rr){return S.setContext({response:rr}),rr}).then(Tm(S)).then(function(rr){return Yr.next(rr),Yr.complete(),rr}).catch(function(rr){rr.name!=="AbortError"&&(rr.result&&rr.result.errors&&rr.result.data&&Yr.next(rr.result),Yr.error(rr))}),function(){ze&&ze.abort()}})})};function Pm(i,e){var t=[],r=function(V,j){t.push(V+"="+encodeURIComponent(j))};if("query"in e&&r("query",e.query),e.operationName&&r("operationName",e.operationName),e.variables){var n=void 0;try{n=hu(e.variables,"Variables map")}catch(V){return{parseError:V}}r("variables",n)}if(e.extensions){var s=void 0;try{s=hu(e.extensions,"Extensions map")}catch(V){return{parseError:V}}r("extensions",s)}var o="",h=i,S=i.indexOf("#");S!==-1&&(o=i.substr(S),h=i.substr(0,S));var T=h.indexOf("?")===-1?"?":"&",P=h+T+t.join("&")+o;return{newURI:P}}var _0=function(i){qr(e,i);function e(t){return i.call(this,Rp(t).request)||this}return e}(Ti);let Bs;const Dm={};function Am(i){Bs=i.globalState}const Cp=(i,e)=>{if(!Bs)throw new Error("Persistent store not initialized.");return Bs.get(i+":"+e,Dm)},Np=(i,e,t)=>{if(!Bs)throw new Error("Persistent store not initialized.");return Bs.update(i+":"+e,t)};var Pp=wt(6113),Im=wt.n(Pp),Om=Object.defineProperty,xm=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Om(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const Dp=class{static initialize(i){Dp.icons={reactions:{THUMBS_UP:i.asAbsolutePath(H.join("resources","icons","reactions","thumbs_up.png")),THUMBS_DOWN:i.asAbsolutePath(H.join("resources","icons","reactions","thumbs_down.png")),CONFUSED:i.asAbsolutePath(H.join("resources","icons","reactions","confused.png")),EYES:i.asAbsolutePath(H.join("resources","icons","reactions","eyes.png")),HEART:i.asAbsolutePath(H.join("resources","icons","reactions","heart.png")),HOORAY:i.asAbsolutePath(H.join("resources","icons","reactions","hooray.png")),LAUGH:i.asAbsolutePath(H.join("resources","icons","reactions","laugh.png")),ROCKET:i.asAbsolutePath(H.join("resources","icons","reactions","rocket.png"))}}}};let un=Dp;xm(un,"icons");var Li;(function(i){i[i.Committed=0]="Committed",i[i.Mentioned=1]="Mentioned",i[i.Subscribed=2]="Subscribed",i[i.Commented=3]="Commented",i[i.Reviewed=4]="Reviewed",i[i.Labeled=5]="Labeled",i[i.Milestoned=6]="Milestoned",i[i.Assigned=7]="Assigned",i[i.HeadRefDeleted=8]="HeadRefDeleted",i[i.Merged=9]="Merged",i[i.Other=10]="Other"})(Li||(Li={}));function fu(i){return i.event===4}function Mm(i){return i.event===0}function Fm(i){return i.event===3}function E0(i){return i.event===9}function S0(i){return i.event===7}function T0(i){return i.event===8}var Lm=Object.defineProperty,Ap=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Lm(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class ll extends Error{constructor(e){super(e);this.message=e,Ap(this,"name"),Ap(this,"stack")}}function Um(i){var e;return!!((e=i.message)==null?void 0:e.startsWith("Resource protected by organization SAML enforcement."))}const dl=new Uint8Array(256);let ul=dl.length;function Vm(){return ul>dl.length-16&&(Im().randomFillSync(dl),ul=0),dl.slice(ul,ul+=16)}const qm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function $m(i){return typeof i=="string"&&qm.test(i)}const Gm=$m,er=[];for(let i=0;i<256;++i)er.push((i+256).toString(16).substr(1));function Bm(i,e=0){const t=(er[i[e+0]]+er[i[e+1]]+er[i[e+2]]+er[i[e+3]]+"-"+er[i[e+4]]+er[i[e+5]]+"-"+er[i[e+6]]+er[i[e+7]]+"-"+er[i[e+8]]+er[i[e+9]]+"-"+er[i[e+10]]+er[i[e+11]]+er[i[e+12]]+er[i[e+13]]+er[i[e+14]]+er[i[e+15]]).toLowerCase();if(!Gm(t))throw TypeError("Stringified UUID is invalid");return t}const Hm=Bm;function jm(i,e,t){i=i||{};const r=i.random||(i.rng||Vm)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){t=t||0;for(let n=0;n<16;++n)e[t+n]=r[n];return e}return Hm(r)}const Ip=jm;var zm=Object.defineProperty,Pi=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?zm(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const pl=class{constructor(i,e,t,r,n){Pi(this,"commentId"),Pi(this,"id"),Pi(this,"parent"),Pi(this,"body"),Pi(this,"originalBody"),Pi(this,"mode"),Pi(this,"author"),Pi(this,"label"),Pi(this,"commentReactions"),Pi(this,"contextValue"),this.parent=i,this.body=new d.MarkdownString(e),this.mode=d.CommentMode.Preview,this.author={name:r.login,iconPath:r.avatarUrl?d.Uri.parse(`${r.avatarUrl}&s=64`):void 0},this.label=t?"Pending":void 0,this.contextValue="canEdit,canDelete",this.originalBody=n?n._rawComment.body:void 0,this.commentReactions=n?n.reactions:void 0,this.id=pl.idPool++}static is(i){return i.commentId===void 0}startEdit(){this.parent.comments=this.parent.comments.map(i=>(i instanceof pl&&i.id===this.id&&(i.mode=d.CommentMode.Editing),i))}cancelEdit(){this.parent.comments=this.parent.comments.map(i=>(i instanceof pl&&i.id===this.id&&(i.mode=d.CommentMode.Preview,i.body=i.originalBody||i.body),i))}};let Nr=pl;Pi(Nr,"idPool",0);class Ui{constructor(e,t){Pi(this,"commentId"),Pi(this,"parent"),Pi(this,"body"),Pi(this,"mode"),Pi(this,"author"),Pi(this,"label"),Pi(this,"reactions"),Pi(this,"_rawComment"),Pi(this,"contextValue"),Pi(this,"timestamp"),this._rawComment=e,this.commentId=e.id.toString(),this.body=new d.MarkdownString(e.body),this.author={name:e.user.login,iconPath:e.user&&e.user.avatarUrl?d.Uri.parse(e.user.avatarUrl):void 0},c1(this,e.reactions),this.label=e.isDraft?"Pending":void 0;const r=[];e.canEdit&&r.push("canEdit"),e.canDelete&&r.push("canDelete"),this.contextValue=r.join(","),this.parent=t,this.timestamp=new Date(e.createdAt)}static is(e){return e.commentId!==void 0}startEdit(){this.parent.comments=this.parent.comments.map(e=>(e instanceof Ui&&e.commentId===this.commentId&&(e.mode=d.CommentMode.Editing),e))}cancelEdit(){this.parent.comments=this.parent.comments.map(e=>(e instanceof Ui&&e.commentId===this.commentId&&(e.mode=d.CommentMode.Preview,e.body=e._rawComment.body),e))}}var zi;(function(i){i[i.Query=0]="Query",i[i.All=1]="All",i[i.LocalPullRequest=2]="LocalPullRequest"})(zi||(zi={}));var xn;(function(i){i.Approve="APPROVE",i.RequestChanges="REQUEST_CHANGES",i.Comment="COMMENT"})(xn||(xn={}));var Ei;(function(i){i[i.Open=0]="Open",i[i.Merged=1]="Merged",i[i.Closed=2]="Closed"})(Ei||(Ei={}));var ea;(function(i){i[i.Mergeable=0]="Mergeable",i[i.NotMergeable=1]="NotMergeable",i[i.Unknown=2]="Unknown"})(ea||(ea={}));var Hs;(function(i){function e(r){return d.commands.executeCommand(r)}i.executeCommand=e;function t(r){return e(`${r}.focus`)}i.focusView=t})(Hs||(Hs={}));var Qm=Object.defineProperty,wa=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Qm(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);function vu(){let i="";const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let t=0;t<32;t++)i+=e.charAt(Math.floor(Math.random()*e.length));return i}class Op{constructor(){wa(this,"_webview"),wa(this,"_disposables",[]),wa(this,"_waitForReady"),wa(this,"_onIsReady",new d.EventEmitter),wa(this,"MESSAGE_UNHANDLED","message not handled"),this._waitForReady=new Promise(e=>{const t=this._onIsReady.event(()=>{t.dispose(),e()})})}initialize(){var e;const t=(e=this._webview)==null?void 0:e.onDidReceiveMessage(async r=>{await this._onDidReceiveMessage(r)},null,this._disposables);t&&this._disposables.push(t)}async _onDidReceiveMessage(e){switch(e.command){case"ready":this._onIsReady.fire();return;default:return this.MESSAGE_UNHANDLED}}async _postMessage(e){var t;await this._waitForReady,(t=this._webview)==null||t.postMessage({res:e})}async _replyMessage(e,t){var r;const n={seq:e.req,res:t};(r=this._webview)==null||r.postMessage(n)}async _throwError(e,t){var r;const n={seq:e.req,err:t};(r=this._webview)==null||r.postMessage(n)}dispose(){this._disposables.forEach(e=>e.dispose())}}class xp extends Op{constructor(e){super();this._extensionUri=e,wa(this,"viewType"),wa(this,"_view")}resolveWebviewView(e,t,r){this._view=e,this._webview=e.webview,super.initialize(),e.webview.options={enableScripts:!0,localResourceRoots:[this._extensionUri]},this._disposables.push(this._view.onDidDispose(()=>{this._webview=void 0,this._view=void 0}))}show(){this._view?this._view.show():Hs.focusView(this.viewType)}}var Wm=Object.defineProperty,Mn=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Wm(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const pn=class extends Op{constructor(i,e,t,r,n=pn._viewType){super();this._extensionUri=i,Mn(this,"_panel"),Mn(this,"_disposables",[]),Mn(this,"_descriptionNode"),Mn(this,"_item"),Mn(this,"_folderRepositoryManager"),Mn(this,"_scrollPosition",{x:0,y:0}),this._folderRepositoryManager=r,this._panel=d.window.createWebviewPanel(n,t,e,{enableScripts:!0,retainContextWhenHidden:!0,localResourceRoots:[d.Uri.joinPath(i,"dist")]}),this._webview=this._panel.webview,super.initialize(),this._panel.onDidDispose(()=>this.dispose(),null,this._disposables),this._folderRepositoryManager.onDidChangeActiveIssue(s=>{if(this._folderRepositoryManager&&this._item){const o=this._item.equals(this._folderRepositoryManager.activeIssue);this._postMessage({command:"pr.update-checkout-status",isCurrentlyCheckedOut:o})}},null,this._disposables)}static async createOrShow(i,e,t,r=!1){const n=r?d.ViewColumn.Beside:d.window.activeTextEditor?d.window.activeTextEditor.viewColumn:d.ViewColumn.One;if(pn.currentPanel)pn.currentPanel._panel.reveal(n,!0);else{const s=`Issue #${t.number.toString()}`;pn.currentPanel=new pn(i,n||d.ViewColumn.Active,s,e)}await pn.currentPanel.update(e,t)}static refresh(){this.currentPanel&&this.currentPanel.refreshPanel()}async refreshPanel(){this._panel&&this._panel.visible&&this.update(this._folderRepositoryManager,this._item)}async updateIssue(i){return Promise.all([this._folderRepositoryManager.resolveIssue(i.remote.owner,i.remote.repositoryName,i.number),i.getIssueTimelineEvents(),this._folderRepositoryManager.getPullRequestRepositoryDefaultBranch(i)]).then(e=>{const[t,r,n]=e;if(!t)throw new Error(`Fail to resolve issue #${i.number} in ${i.remote.owner}/${i.remote.repositoryName}`);this._item=t,this._panel.title=`Pull Request #${i.number.toString()}`,D.debug("pr.initialize",pn.ID),this._postMessage({command:"pr.initialize",pullrequest:{number:this._item.number,title:this._item.title,url:this._item.html_url,createdAt:this._item.createdAt,body:this._item.body,bodyHTML:this._item.bodyHTML,labels:this._item.item.labels,author:{login:this._item.author.login,name:this._item.author.name,avatarUrl:this._item.userAvatar,url:this._item.author.url},state:this._item.state,events:r,repositoryDefaultBranch:n,canEdit:!0,status:{statuses:[]},isIssue:!0}})}).catch(e=>{d.window.showErrorMessage(Re(e))})}async update(i,e){return this._folderRepositoryManager=i,this._postMessage({command:"set-scroll",scrollPosition:this._scrollPosition}),this._panel.webview.html=this.getHtmlForWebview(e.number.toString()),this.updateIssue(e)}async _onDidReceiveMessage(i){if(await super._onDidReceiveMessage(i)===this.MESSAGE_UNHANDLED)switch(i.command){case"alert":d.window.showErrorMessage(i.args);return;case"pr.close":return this.close(i);case"pr.comment":return this.createComment(i);case"scroll":this._scrollPosition=i.args;return;case"pr.edit-comment":return this.editComment(i);case"pr.delete-comment":return this.deleteComment(i);case"pr.edit-description":return this.editDescription(i);case"pr.edit-title":return this.editTitle(i);case"pr.refresh":this.refreshPanel();return;case"pr.add-labels":return this.addLabels(i);case"pr.remove-label":return this.removeLabel(i);case"pr.debug":return this.webviewDebug(i);default:return this.MESSAGE_UNHANDLED}}async addLabels(i){try{let e=[];async function t(n,s){return e=(await n.getLabels(s)).filter(h=>!s.item.labels.some(S=>S.name===h.name)),e.map(h=>({label:h.name}))}const r=await d.window.showQuickPick(t(this._folderRepositoryManager,this._item),{canPickMany:!0});if(r&&r.length){await this._item.addLabels(r.map(s=>s.label));const n=r.map(s=>e.find(o=>o.name===s.label));this._item.item.labels=this._item.item.labels.concat(...n),this._replyMessage(i,{added:n})}}catch(e){d.window.showErrorMessage(Re(e))}}async removeLabel(i){try{await this._item.removeLabel(i.args);const e=this._item.item.labels.findIndex(t=>t.name===i.args);this._item.item.labels.splice(e,1),this._replyMessage(i,{})}catch(e){d.window.showErrorMessage(Re(e))}}webviewDebug(i){D.debug(i.args,pn.ID)}editDescription(i){this._item.edit({body:i.args.text}).then(e=>{this._replyMessage(i,{body:e.body,bodyHTML:e.bodyHTML})}).catch(e=>{this._throwError(i,e),d.window.showErrorMessage(`Editing description failed: ${Re(e)}`)})}editTitle(i){this._item.edit({title:i.args.text}).then(e=>{this._replyMessage(i,{text:e.title})}).catch(e=>{this._throwError(i,e),d.window.showErrorMessage(`Editing title failed: ${Re(e)}`)})}editCommentPromise(i,e){return this._item.editIssueComment(i,e)}editComment(i){this.editCommentPromise(i.args.comment,i.args.text).then(e=>{this._replyMessage(i,{body:e.body,bodyHTML:e.bodyHTML})}).catch(e=>{this._throwError(i,e),d.window.showErrorMessage(Re(e))})}deleteCommentPromise(i){return this._item.deleteIssueComment(i.id.toString())}deleteComment(i){d.window.showWarningMessage("Are you sure you want to delete this comment?",{modal:!0},"Delete").then(e=>{e==="Delete"&&this.deleteCommentPromise(i.args).then(t=>{this._replyMessage(i,{})}).catch(t=>{this._throwError(i,t),d.window.showErrorMessage(Re(t))})})}close(i){d.commands.executeCommand("pr.close",this._item,i.args).then(e=>{e?this._replyMessage(i,{value:e}):this._throwError(i,"Close cancelled")})}createComment(i){this._item.createIssueComment(i.args).then(e=>{this._replyMessage(i,{value:e})})}set _currentPanel(i){pn.currentPanel=i}dispose(){for(this._currentPanel=void 0,this._panel.dispose(),this._webview=void 0;this._disposables.length;){const i=this._disposables.pop();i&&i.dispose()}}getHtmlForWebview(i){const e=vu(),t=d.Uri.joinPath(this._extensionUri,"dist","webview-pr-description.js");return`<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src vscode-resource: https:; script-src 'nonce-${e}'; style-src vscode-resource: 'unsafe-inline' http: https: data:;">
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>Pull Request #${i}</title>
|
||
</head>
|
||
<body class="${process.platform}">
|
||
<div id=app></div>
|
||
<script nonce="${e}" src="${this._webview.asWebviewUri(t).toString()}"></script>
|
||
</body>
|
||
</html>`}getCurrentTitle(){return this._panel.title}};let cl=pn;Mn(cl,"ID","PullRequestOverviewPanel"),Mn(cl,"currentPanel"),Mn(cl,"_viewType","IssueOverview");var Km=wt(4063),Ym=wt.n(Km),Xm=Object.defineProperty,Jm=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Xm(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Mp{constructor(e,t,r,n){this.ref=e,this.label=t,this.sha=r,Jm(this,"repositoryCloneUrl"),this.repositoryCloneUrl=new Or(n)}}function Zm(i){return i.__typename==="CheckRun"}var e1=Object.defineProperty,Qi=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?e1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const ml=class{constructor(i,e,t,r=!1){Qi(this,"id"),Qi(this,"graphNodeId"),Qi(this,"number"),Qi(this,"title"),Qi(this,"html_url"),Qi(this,"state",Ei.Open),Qi(this,"author"),Qi(this,"assignees"),Qi(this,"createdAt"),Qi(this,"updatedAt"),Qi(this,"milestone"),Qi(this,"githubRepository"),Qi(this,"remote"),Qi(this,"item"),Qi(this,"bodyHTML"),Qi(this,"_onDidInvalidate",new d.EventEmitter),Qi(this,"onDidInvalidate",this._onDidInvalidate.event),this.githubRepository=i,this.remote=e,this.item=t,r||this.update(t)}invalidate(){this._onDidInvalidate.fire()}get isOpen(){return this.state===Ei.Open}get isClosed(){return this.state===Ei.Closed}get isMerged(){return this.state===Ei.Merged}get userAvatar(){if(this.item)return this.item.user.avatarUrl}get userAvatarUri(){if(this.item){const i=this.userAvatar;if(i){const e=d.Uri.parse(`${i}&s=${64}`),t=e.toString;return e.toString=function(r){return t.call(e,!0)},e}}}get body(){return this.item?this.item.body:""}updateState(i){i.toLowerCase()==="open"?this.state=Ei.Open:this.state=Ei.Closed}update(i){this.id=i.id,this.graphNodeId=i.graphNodeId,this.number=i.number,this.title=i.title,this.bodyHTML=i.bodyHTML,this.html_url=i.url,this.author=i.user,this.milestone=i.milestone,this.createdAt=i.createdAt,this.updatedAt=i.updatedAt,this.updateState(i.state),i.assignees&&(this.assignees=i.assignees),this.item=i}equals(i){return!(!i||this.number!==i.number||this.html_url!==i.html_url)}async edit(i){try{const{mutate:e,schema:t}=await this.githubRepository.ensure(),{data:r}=await e({mutation:t.UpdatePullRequest,variables:{input:{pullRequestId:this.graphNodeId,body:i.body,title:i.title}}});return(r==null?void 0:r.updatePullRequest.pullRequest)&&(this.item.body=r.updatePullRequest.pullRequest.body,this.bodyHTML=r.updatePullRequest.pullRequest.bodyHTML,this.title=r.updatePullRequest.pullRequest.title,this.invalidate()),r.updatePullRequest.pullRequest}catch(e){throw new Error(Re(e))}}canEdit(){const i=this.author&&this.author.login;return this.githubRepository.isCurrentUser(i)}async getIssueComments(){D.debug(`Fetch issue comments of PR #${this.number} - enter`,ml.ID);const{octokit:i,remote:e}=await this.githubRepository.ensure(),t=await i.issues.listComments({owner:e.owner,repo:e.repositoryName,issue_number:this.number,per_page:100});return D.debug(`Fetch issue comments of PR #${this.number} - done`,ml.ID),t.data}async createIssueComment(i){const{mutate:e,schema:t}=await this.githubRepository.ensure(),{data:r}=await e({mutation:t.AddIssueComment,variables:{input:{subjectId:this.graphNodeId,body:i}}});return Hp(r.addComment.commentEdge.node)}async editIssueComment(i,e){try{const{mutate:t,schema:r}=await this.githubRepository.ensure(),{data:n}=await t({mutation:r.EditIssueComment,variables:{input:{id:i.graphNodeId,body:e}}});return Hp(n.updateIssueComment.issueComment)}catch(t){throw new Error(Re(t))}}async deleteIssueComment(i){try{const{octokit:e,remote:t}=await this.githubRepository.ensure();await e.issues.deleteComment({owner:t.owner,repo:t.repositoryName,comment_id:Number(i)})}catch(e){throw new Error(Re(e))}}async addLabels(i){const{octokit:e,remote:t}=await this.githubRepository.ensure();await e.issues.addLabels({owner:t.owner,repo:t.repositoryName,issue_number:this.number,labels:i})}async removeLabel(i){const{octokit:e,remote:t}=await this.githubRepository.ensure();await e.issues.removeLabel({owner:t.owner,repo:t.repositoryName,issue_number:this.number,name:i})}async getIssueTimelineEvents(){D.debug(`Fetch timeline events of issue #${this.number} - enter`,ml.ID);const i=this.githubRepository,{query:e,remote:t,schema:r}=await i.ensure();try{const{data:n}=await e({query:r.IssueTimelineEvents,variables:{owner:t.owner,name:t.repositoryName,number:this.number}}),s=n.repository.pullRequest.timelineItems.nodes;return Kp(s,i)}catch(n){return console.log(n),[]}}};let Wi=ml;Qi(Wi,"ID","IssueModel");var t1=Object.defineProperty,gi=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?t1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const jr=class extends Wi{constructor(i,e,t,r,n){super(e,t,r,!0);gi(this,"isDraft"),gi(this,"localBranchName"),gi(this,"mergeBase"),gi(this,"suggestedReviewers"),gi(this,"_hasPendingReview",!1),gi(this,"_onDidChangePendingReviewState",new d.EventEmitter),gi(this,"onDidChangePendingReviewState",this._onDidChangePendingReviewState.event),gi(this,"_reviewThreadsCache",[]),gi(this,"_reviewThreadsCacheInitialized",!1),gi(this,"_onDidChangeReviewThreads",new d.EventEmitter),gi(this,"onDidChangeReviewThreads",this._onDidChangeReviewThreads.event),gi(this,"_fileChangeViewedState",{}),gi(this,"_onDidChangeFileViewedState",new d.EventEmitter),gi(this,"onDidChangeFileViewedState",this._onDidChangeFileViewedState.event),gi(this,"_comments"),gi(this,"_onDidChangeComments",new d.EventEmitter),gi(this,"onDidChangeComments",this._onDidChangeComments.event),gi(this,"isActive"),gi(this,"_telemetry"),gi(this,"isRemoteHeadDeleted"),gi(this,"head"),gi(this,"isRemoteBaseDeleted"),gi(this,"base"),gi(this,"_fileChanges",new Map),this._telemetry=i,this.isActive=!!n,this.update(r)}clear(){this.comments=[],this._reviewThreadsCacheInitialized=!1,this._reviewThreadsCache=[]}async initializeReviewThreadCache(){await this.getReviewThreads(),this._reviewThreadsCacheInitialized=!0}get reviewThreadsCache(){return this._reviewThreadsCache}get reviewThreadsCacheReady(){return this._reviewThreadsCacheInitialized}get isMerged(){return this.state===Ei.Merged}get hasPendingReview(){return this._hasPendingReview}set hasPendingReview(i){this._hasPendingReview!==i&&(this._hasPendingReview=i,this._onDidChangePendingReviewState.fire(this._hasPendingReview))}get comments(){var i;return(i=this._comments)!=null?i:[]}set comments(i){this._comments=i,this._onDidChangeComments.fire()}get fileChangeViewedState(){return this._fileChangeViewedState}updateState(i){i.toLowerCase()==="open"?this.state=Ei.Open:this.state=this.item.merged?Ei.Merged:Ei.Closed}update(i){super.update(i),this.isDraft=i.isDraft,this.suggestedReviewers=i.suggestedReviewers,i.isRemoteHeadDeleted!=null&&(this.isRemoteHeadDeleted=i.isRemoteHeadDeleted),i.head&&(this.head=new Mp(i.head.ref,i.head.label,i.head.sha,i.head.repo.cloneUrl)),i.isRemoteBaseDeleted!=null&&(this.isRemoteBaseDeleted=i.isRemoteBaseDeleted),i.base&&(this.base=new Mp(i.base.ref,i.base.label,i.base.sha,i.base.repo.cloneUrl))}isResolved(){return!!this.head}validatePullRequestModel(i){if(this.head)return!0;const e=`There is no upstream branch for Pull Request #${this.number}. View it on GitHub for more details`;return i?i+=`: ${e}`:i=e,d.window.showWarningMessage(i,"Open on GitHub").then(t=>{t&&t==="Open on GitHub"&&d.commands.executeCommand("vscode.open",d.Uri.parse(this.html_url))}),!1}async approve(i){return(await this.getPendingReviewId()?this.submitReview(xn.Approve,i):this.createReview(xn.Approve,i)).then(t=>(this._telemetry.sendTelemetryEvent("pr.approve"),t))}async requestChanges(i){return(await this.getPendingReviewId()?this.submitReview(xn.RequestChanges,i):this.createReview(xn.RequestChanges,i)).then(t=>(this._telemetry.sendTelemetryEvent("pr.requestChanges"),t))}async close(){const{octokit:i,remote:e}=await this.githubRepository.ensure(),t=await i.pulls.update({owner:e.owner,repo:e.repositoryName,pull_number:this.number,state:"closed"});return this._telemetry.sendTelemetryEvent("pr.close"),ba(t.data,this.githubRepository)}async createReview(i,e){const{octokit:t,remote:r}=await this.githubRepository.ensure(),{data:n}=await t.pulls.createReview({owner:r.owner,repo:r.repositoryName,pull_number:this.number,event:i,body:e});return h1(n,this.githubRepository)}async submitReview(i,e){const t=await this.getPendingReviewId(),{mutate:r,schema:n}=await this.githubRepository.ensure();if(t){const{data:s}=await r({mutation:n.SubmitReview,variables:{id:t,event:i||xn.Comment,body:e}});this.hasPendingReview=!1,await this.updateDraftModeContext();const o=g1(s.submitPullRequestReview.pullRequestReview,this.githubRepository),h=this._reviewThreadsCache.find(S=>S.comments.length?S.comments[0].pullRequestReviewId===o.id:void 0);return h&&(h.comments=o.comments,h.viewerCanResolve=!0,this._onDidChangeReviewThreads.fire({added:[],changed:[h],removed:[]})),o}else throw new Error(`Submitting review failed, no pending review for current pull request: ${this.number}.`)}async updateMilestone(i){const{mutate:e,schema:t}=await this.githubRepository.ensure(),r=i==="null"?null:i;try{await e({mutation:t.UpdatePullRequest,variables:{input:{pullRequestId:this.item.graphNodeId,milestoneId:r}}})}catch(n){D.appendLine(n)}}async updateAssignees(i){const{octokit:e,remote:t}=await this.githubRepository.ensure();await e.issues.addAssignees({owner:t.owner,repo:t.repositoryName,issue_number:this.number,assignees:i})}async getPendingReviewId(){const{query:i,schema:e}=await this.githubRepository.ensure(),t=await this.githubRepository.getAuthenticatedUser();try{const{data:r}=await i({query:e.GetPendingReviewId,variables:{pullRequestId:this.item.graphNodeId,author:t}});return r.node.reviews.nodes.length>0?r.node.reviews.nodes[0].id:void 0}catch(r){return}}async deleteReview(){const i=await this.getPendingReviewId(),{mutate:e,schema:t}=await this.githubRepository.ensure(),{data:r}=await e({mutation:t.DeleteReview,variables:{input:{pullRequestReviewId:i}}}),{comments:n,databaseId:s}=r.deletePullRequestReview.pullRequestReview;return this.hasPendingReview=!1,await this.updateDraftModeContext(),this.getReviewThreads(),{deletedReviewId:s,deletedReviewComments:n.nodes.map(o=>Ka(o,!1))}}async startReview(i){var e;const{mutate:t,schema:r}=await this.githubRepository.ensure(),{data:n}=await t({mutation:r.StartReview,variables:{input:{body:"",pullRequestId:this.item.graphNodeId,commitOID:i||((e=this.head)==null?void 0:e.sha)}}});if(!n)throw new Error("Failed to start review");return n.addPullRequestReview.pullRequestReview.id}async createReviewThread(i,e,t,r,n){if(!this.validatePullRequestModel("Creating comment failed"))return;const s=await this.getPendingReviewId(),{mutate:o,schema:h}=await this.githubRepository.ensure(),{data:S}=await o({mutation:h.AddReviewThread,variables:{input:{path:e,body:i,pullRequestId:this.graphNodeId,pullRequestReviewId:s,line:t,side:r}}});if(!S)throw new Error("Creating review thread failed.");n||(this.hasPendingReview=!0,await this.updateDraftModeContext());const T=S.addPullRequestReviewThread.thread,P=fl(T);return this._reviewThreadsCache.push(P),this._onDidChangeReviewThreads.fire({added:[P],changed:[],removed:[]}),P}async createCommentReply(i,e,t,r){var n;if(!this.validatePullRequestModel("Creating comment failed"))return;let s=await this.getPendingReviewId();s||(s=await this.startReview(r));const{mutate:o,schema:h}=await this.githubRepository.ensure(),{data:S}=await o({mutation:h.AddComment,variables:{input:{pullRequestReviewId:s,body:i,inReplyTo:e,commitOID:r||((n=this.head)==null?void 0:n.sha)}}});if(!S)throw new Error("Creating comment reply failed.");const{comment:T}=S.addPullRequestReviewComment,P=Ka(T,!1);t&&(P.isDraft=!1);const V=this._reviewThreadsCache.find(j=>j.comments.some(ue=>ue.graphNodeId===e));return V&&(V.comments.push(P),this._onDidChangeReviewThreads.fire({added:[],changed:[V],removed:[]})),P}async validateDraftMode(){const i=!!await this.getPendingReviewId();return i!==this.hasPendingReview&&(this.hasPendingReview=i),await this.updateDraftModeContext(),i}async updateDraftModeContext(){this.isActive&&await d.commands.executeCommand("setContext","reviewInDraftMode",this.hasPendingReview)}async editReviewComment(i,e){const{mutate:t,schema:r}=await this.githubRepository.ensure();let n=this._reviewThreadsCache.find(h=>h.comments.some(S=>S.graphNodeId===i.graphNodeId));if(!n)return this.editIssueComment(i,e);const{data:s}=await t({mutation:r.EditComment,variables:{input:{pullRequestReviewCommentId:i.graphNodeId,body:e}}});if(!s)throw new Error("Editing review comment failed.");const o=Ka(s.updatePullRequestReviewComment.pullRequestReviewComment,!!i.isResolved);if(n){const h=n.comments.findIndex(S=>S.graphNodeId===i.graphNodeId);n.comments.splice(h,1,o),this._onDidChangeReviewThreads.fire({added:[],changed:[n],removed:[]})}return o}async deleteReviewComment(i){try{const{octokit:e,remote:t}=await this.githubRepository.ensure(),r=Number(i),n=this._reviewThreadsCache.findIndex(s=>s.comments.some(o=>o.id===r));if(n===-1)this.deleteIssueComment(i);else if(await e.pulls.deleteReviewComment({owner:t.owner,repo:t.repositoryName,comment_id:r}),n>-1){const s=this._reviewThreadsCache[n],o=s.comments.findIndex(h=>h.id===r);s.comments.splice(o,1),s.comments.length===0?(this._reviewThreadsCache.splice(n,1),this._onDidChangeReviewThreads.fire({added:[],changed:[],removed:[s]})):this._onDidChangeReviewThreads.fire({added:[],changed:[s],removed:[]})}}catch(e){throw new Error(Re(e))}}async getReviewRequests(){const i=this.githubRepository,{remote:e,octokit:t}=await i.ensure();return(await t.pulls.listRequestedReviewers({owner:e.owner,repo:e.repositoryName,pull_number:this.number})).data.users.map(n=>ta(n,i))}async requestReview(i){const{octokit:e,remote:t}=await this.githubRepository.ensure();await e.pulls.requestReviewers({owner:t.owner,repo:t.repositoryName,pull_number:this.number,reviewers:i})}async deleteReviewRequest(i){const{octokit:e,remote:t}=await this.githubRepository.ensure();await e.pulls.removeRequestedReviewers({owner:t.owner,repo:t.repositoryName,pull_number:this.number,reviewers:[i]})}async deleteAssignees(i){const{octokit:e,remote:t}=await this.githubRepository.ensure();await e.issues.removeAssignees({owner:t.owner,repo:t.repositoryName,issue_number:this.number,assignees:[i]})}diffThreads(i){const e=[],t=[],r=[];i.forEach(n=>{const s=this._reviewThreadsCache.find(o=>o.id===n.id);s?Ym()(n,s)||t.push(n):e.push(n)}),this._reviewThreadsCache.forEach(n=>{i.find(s=>s.id===n.id)||r.push(n)}),this._onDidChangeReviewThreads.fire({added:e,changed:t,removed:r})}async getReviewThreads(){const{remote:i,query:e,schema:t}=await this.githubRepository.ensure();try{const{data:r}=await e({query:t.PullRequestComments,variables:{owner:i.owner,name:i.repositoryName,number:this.number}}),n=r.repository.pullRequest.reviewThreads.nodes.map(s=>fl(s));return this.diffThreads(n),this._reviewThreadsCache=n,n}catch(r){return D.appendLine(`Failed to get pull request review comments: ${r}`),[]}}async initializeReviewComments(){const{remote:i,query:e,schema:t}=await this.githubRepository.ensure();try{const{data:r}=await e({query:t.PullRequestComments,variables:{owner:i.owner,name:i.repositoryName,number:this.number}}),n=r.repository.pullRequest.reviewThreads.nodes.map(s=>s.comments.nodes.map(o=>Ka(o,s.isResolved),i)).reduce((s,o)=>s.concat(o),[]).sort((s,o)=>s.createdAt>o.createdAt?1:-1);this.comments=n}catch(r){D.appendLine(`Failed to get pull request review comments: ${r}`)}}async getCommits(){try{D.debug(`Fetch commits of PR #${this.number} - enter`,jr.ID);const{remote:i,octokit:e}=await this.githubRepository.ensure(),t=await e.pulls.listCommits({pull_number:this.number,owner:i.owner,repo:i.repositoryName});return D.debug(`Fetch commits of PR #${this.number} - done`,jr.ID),t.data}catch(i){return d.window.showErrorMessage(`Fetching commits failed: ${Re(i)}`),[]}}async getCommitChangedFiles(i){var e,t;try{D.debug(`Fetch file changes of commit ${i.sha} in PR #${this.number} - enter`,jr.ID);const{octokit:r,remote:n}=await this.githubRepository.ensure(),s=await r.repos.getCommit({owner:n.owner,repo:n.repositoryName,ref:i.sha});return D.debug(`Fetch file changes of commit ${i.sha} in PR #${this.number} - done`,jr.ID),(t=(e=s.data.files)==null?void 0:e.filter(o=>!!o.patch))!=null?t:[]}catch(r){return d.window.showErrorMessage(`Fetching commit file changes failed: ${Re(r)}`),[]}}async getFile(i,e){var t;const{octokit:r,remote:n}=await this.githubRepository.ensure(),s=await r.repos.getContent({owner:n.owner,repo:n.repositoryName,path:i,ref:e});if(Array.isArray(s.data))throw new Error(`Unexpected array response when getting file ${i}`);const o=(t=s.data.content)!=null?t:"";return Me.Buffer.from(o,s.data.encoding).toString()}async getTimelineEvents(){D.debug(`Fetch timeline events of PR #${this.number} - enter`,jr.ID);const{query:i,remote:e,schema:t}=await this.githubRepository.ensure();try{const{data:r}=await i({query:t.TimelineEvents,variables:{owner:e.owner,name:e.repositoryName,number:this.number}}),n=r.repository.pullRequest.timelineItems.nodes,s=Kp(n,this.githubRepository);return await this.addReviewTimelineEventComments(s),s}catch(r){return console.log(r),[]}}async addReviewTimelineEventComments(i){const e=i.filter(fu),r=(await this.getReviewThreads()).reduce((T,P)=>T.concat(P.comments),[]),n=e.reduce((T,P)=>(T[P.id]=P,P.comments=[],T),{}),s=r.reduce((T,P)=>(T[P.id]=P,T),{}),o=[];let h=r.length;for(;h-- >0;){const T=r[h];if(!T.inReplyToId){o.unshift(T);continue}const P=s[T.inReplyToId];P.childComments=P.childComments||[],P.childComments=[T,...T.childComments||[],...P.childComments]}o.forEach(T=>{const P=n[T.pullRequestReviewId];P&&(P.comments=P.comments.concat(T).concat(T.childComments||[]))});const S=e.filter(T=>T.state.toLowerCase()==="pending")[0];S&&(S.comments=r.filter(T=>T.isDraft))}async getStatusChecks(){var i;const{query:e,remote:t,schema:r}=await this.githubRepository.ensure();let n;try{n=await e({query:r.GetChecks,variables:{owner:t.owner,name:t.repositoryName,number:this.number}})}catch(o){if((i=o.message)==null?void 0:i.startsWith("GraphQL error: Resource protected by organization SAML enforcement."))return{state:"pending",statuses:[]}}const s=n.data.repository.pullRequest.commits.nodes[0].commit.statusCheckRollup;return s?{state:s.state.toLowerCase(),statuses:s.contexts.nodes.map(o=>{var h,S,T,P;return Zm(o)?{id:o.id,url:(h=o.checkSuite.app)==null?void 0:h.url,avatar_url:(S=o.checkSuite.app)==null?void 0:S.logoUrl,state:((T=o.conclusion)==null?void 0:T.toLowerCase())||"pending",description:o.title,context:o.name,target_url:o.detailsUrl}:{id:o.id,url:o.targetUrl,avatar_url:o.avatarUrl,state:(P=o.state)==null?void 0:P.toLowerCase(),description:o.description,context:o.context,target_url:o.targetUrl}})}:{state:"pending",statuses:[]}}static async openDiffFromComment(i,e,t){const n=(await e.getFileChangesInfo(i.repository)).find(S=>S.fileName===t.path||S.previousFileName===t.path);if(!n)throw new Error("Can't find matching file");let s,o;if(e.equals(i.activePullRequest)){const S=d.Uri.file(H.resolve(i.repository.rootUri.fsPath,n.fileName));s=n.status===Oe.DELETE?Ur(S,void 0,void 0,"",!1,{base:!1},i.repository.rootUri):S;const T=e.mergeBase||e.base.sha;o=Ur(S,n.status===Oe.RENAME?n.previousFileName:n.fileName,void 0,n.status===Oe.ADD?"":T,!1,{base:!0},i.repository.rootUri)}else{const S=e.head.sha,T=n.status===Oe.RENAME?n.previousFileName:n.fileName;s=ss(d.Uri.file(os(i.repository.rootUri,n.fileName)),e,n.baseCommit,S,n.fileName,!1,n.status),o=ss(d.Uri.file(os(i.repository.rootUri,T)),e,n.baseCommit,S,n.fileName,!0,n.status)}const h=t.path.split("/");d.commands.executeCommand("vscode.diff",o,s,`${h[h.length-1]} (Pull Request)`,{})}get fileChanges(){return this._fileChanges}async getFileChangesInfo(i){this._fileChanges.clear();const e=await this.getRawFileChangesInfo(),t=this.mergeBase||this.base.sha,r=await ms(e,i,t);return r.forEach(n=>{this._fileChanges.set(n.fileName,n)}),r}async getRawFileChangesInfo(){D.debug(`Fetch file changes, base, head and merge base of PR #${this.number} - enter`,jr.ID);const i=this.githubRepository,{octokit:e,remote:t}=await i.ensure();if(!this.base){const o=await e.pulls.get({owner:t.owner,repo:t.repositoryName,pull_number:this.number});this.update(ba(o.data,i))}if(this.item.merged){const o=await e.pulls.listFiles({repo:t.repositoryName,owner:t.owner,pull_number:this.number});return this.mergeBase=this.base.sha,o.data}const{data:r}=await e.repos.compareCommits({repo:t.repositoryName,owner:t.owner,base:`${this.base.repositoryCloneUrl.owner}:${this.base.ref}`,head:`${this.head.repositoryCloneUrl.owner}:${this.head.ref}`});this.mergeBase=r.merge_base_commit.sha;const n=300;let s=[];return r.files.length>=n?(D.debug(`More than ${n} files changed, fetching all file changes of PR #${this.number}`,jr.ID),s=await e.paginate("GET /repos/:owner/:repo/pulls/:pull_number/files",{owner:this.base.repositoryCloneUrl.owner,pull_number:this.number,repo:t.repositoryName,per_page:100})):s=r.files,D.debug(`Fetch file changes and merge base of PR #${this.number} - done, total files ${s.length} `,jr.ID),s}async getMergeability(){try{D.debug(`Fetch pull request mergeability ${this.number} - enter`,jr.ID);const{query:i,remote:e,schema:t}=await this.githubRepository.ensure(),{data:r}=await i({query:t.PullRequestMergeability,variables:{owner:e.owner,name:e.repositoryName,number:this.number}});return D.debug(`Fetch pull request mergeability ${this.number} - done`,jr.ID),wu(r.repository.pullRequest.mergeable)}catch(i){return D.appendLine(`PullRequestModel> Unable to fetch PR Mergeability: ${i}`),ea.Unknown}}async setReadyForReview(){try{const{mutate:i,schema:e}=await this.githubRepository.ensure(),{data:t}=await i({mutation:e.ReadyForReview,variables:{input:{pullRequestId:this.graphNodeId}}});return this._telemetry.sendTelemetryEvent("pr.readyForReview.success"),t.markPullRequestReadyForReview.pullRequest.isDraft}catch(i){throw this._telemetry.sendTelemetryErrorEvent("pr.readyForReview.failure"),i}}updateCommentReactions(i,e){const t=this._reviewThreadsCache.find(r=>r.comments.some(n=>n.graphNodeId===i));if(t){const r=t.comments.find(n=>n.graphNodeId===i);r&&(r.reactions=jp(e),this._onDidChangeReviewThreads.fire({added:[],changed:[t],removed:[]}))}}async addCommentReaction(i,e){const t=gl().reduce((h,S)=>(h[S.label]=S.title,h),{}),{mutate:r,schema:n}=await this.githubRepository.ensure(),{data:s}=await r({mutation:n.AddReaction,variables:{input:{subjectId:i,content:t[e.label]}}});if(!s)throw new Error("Add comment reaction failed.");const o=s.addReaction.subject.reactionGroups;return this.updateCommentReactions(i,o),s}async deleteCommentReaction(i,e){const t=gl().reduce((h,S)=>(h[S.label]=S.title,h),{}),{mutate:r,schema:n}=await this.githubRepository.ensure(),{data:s}=await r({mutation:n.DeleteReaction,variables:{input:{subjectId:i,content:t[e.label]}}});if(!s)throw new Error("Delete comment reaction failed.");const o=s.removeReaction.subject.reactionGroups;return this.updateCommentReactions(i,o),s}async resolveReviewThread(i){const{mutate:e,schema:t}=await this.githubRepository.ensure(),{data:r}=await e({mutation:t.ResolveReviewThread,variables:{input:{threadId:i}}});if(!r)throw new Error("Resolve review thread failed.");const n=this._reviewThreadsCache.findIndex(s=>s.id===i);if(n>-1){const s=fl(r.resolveReviewThread.thread);this._reviewThreadsCache.splice(n,1,s),this._onDidChangeReviewThreads.fire({added:[],changed:[s],removed:[]})}}async unresolveReviewThread(i){const{mutate:e,schema:t}=await this.githubRepository.ensure(),{data:r}=await e({mutation:t.UnresolveReviewThread,variables:{input:{threadId:i}}});if(!r)throw new Error("Unresolve review thread failed.");const n=this._reviewThreadsCache.findIndex(s=>s.id===i);if(n>-1){const s=fl(r.unresolveReviewThread.thread);this._reviewThreadsCache.splice(n,1,s),this._onDidChangeReviewThreads.fire({added:[],changed:[s],removed:[]})}}async initializePullRequestFileViewState(){const{query:i,schema:e,remote:t}=await this.githubRepository.ensure(),r=[];let n=null,s=!1;do{const{data:o}=await i({query:e.PullRequestFiles,variables:{owner:t.owner,name:t.repositoryName,number:this.number,after:n}});o.repository.pullRequest.files.nodes.forEach(h=>{this._fileChangeViewedState[h.path]!==h.viewerViewedState&&r.push({fileName:h.path,viewed:h.viewerViewedState}),this._fileChangeViewedState[h.path]=h.viewerViewedState}),s=o.repository.pullRequest.files.pageInfo.hasNextPage,n=o.repository.pullRequest.files.pageInfo.endCursor}while(s);r.length&&this._onDidChangeFileViewedState.fire({changed:r})}async markFileAsViewed(i){const{mutate:e,schema:t}=await this.githubRepository.ensure();await e({mutation:t.MarkFileAsViewed,variables:{input:{path:i,pullRequestId:this.graphNodeId}}}),this._fileChangeViewedState[i]=Bi.VIEWED,this._onDidChangeFileViewedState.fire({changed:[{fileName:i,viewed:Bi.VIEWED}]})}async unmarkFileAsViewed(i){const{mutate:e,schema:t}=await this.githubRepository.ensure();await e({mutation:t.UnmarkFileAsViewed,variables:{input:{path:i,pullRequestId:this.graphNodeId}}}),this._fileChangeViewedState[i]=Bi.UNVIEWED,this._onDidChangeFileViewedState.fire({changed:[{fileName:i,viewed:Bi.UNVIEWED}]})}};let Fn=jr;gi(Fn,"ID","PullRequestModel");var i1=Object.defineProperty,ja=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?i1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);function r1(i){return!!i.id&&!!i.milestone}const cn=class extends cl{constructor(i,e,t,r){super(i,e,t,r,cn._viewType);ja(this,"_repositoryDefaultBranch"),ja(this,"_existingReviewers",[]),ja(this,"_changeActivePullRequestListener"),this.registerFolderRepositoryListener(),im(n=>{n&&this._item.update(n),this._postMessage({command:"update-state",state:this._item.state})},null,this._disposables),this._disposables.push(r.onDidMergePullRequest(n=>{this._postMessage({command:"update-state",state:Ei.Merged})}))}static async createOrShow(i,e,t,r=!1){const n=r?d.ViewColumn.Beside:d.window.activeTextEditor?d.window.activeTextEditor.viewColumn:d.ViewColumn.One;if(cn.currentPanel)cn.currentPanel._panel.reveal(n,!0);else{const s=`Pull Request #${t.number.toString()}`;cn.currentPanel=new cn(i,n||d.ViewColumn.Active,s,e)}await cn.currentPanel.update(e,t)}set _currentPanel(i){cn.currentPanel=i}static refresh(){this.currentPanel&&this.currentPanel.refreshPanel()}static scrollToReview(){this.currentPanel&&this.currentPanel._postMessage({command:"pr.scrollToPendingReview"})}registerFolderRepositoryListener(){this._changeActivePullRequestListener=this._folderRepositoryManager.onDidChangeActivePullRequest(i=>{if(this._folderRepositoryManager&&this._item){const e=this._item.equals(this._folderRepositoryManager.activePullRequest);this._postMessage({command:"pr.update-checkout-status",isCurrentlyCheckedOut:e})}})}getCurrentUserReviewState(i,e){const t=i.find(r=>r.reviewer.login===e.login);return t==null?void 0:t.state}async updatePullRequest(i){return Promise.all([this._folderRepositoryManager.resolvePullRequest(i.remote.owner,i.remote.repositoryName,i.number),i.getTimelineEvents(),this._folderRepositoryManager.getPullRequestRepositoryDefaultBranch(i),i.getStatusChecks(),i.getReviewRequests(),this._folderRepositoryManager.getPullRequestRepositoryAccessAndMergeMethods(i),this._folderRepositoryManager.getBranchNameForPullRequest(i)]).then(e=>{var t,r;const[n,s,o,h,S,T,P]=e;if(!n)throw new Error(`Fail to resolve Pull Request #${i.number} in ${i.remote.owner}/${i.remote.repositoryName}`);this._item=n,this._repositoryDefaultBranch=o,this._panel.title=`Pull Request #${i.number.toString()}`;const V=i.equals(this._folderRepositoryManager.activePullRequest),j=T.hasWritePermission,ue=T.mergeMethodsAvailability,Te=j||this._item.canEdit(),Se=d.workspace.getConfiguration("githubPullRequests").get("defaultMergeMethod"),qe=Fp(ue,Se);this._existingReviewers=Yp(S,s,n.author);const xe=this._folderRepositoryManager.getCurrentUser(this._item),Ke=n.base&&n.head&&!n.base.repositoryCloneUrl.equals(n.head.repositoryCloneUrl)&&Eu(),ze=this.getCurrentUserReviewState(this._existingReviewers,xe);D.debug("pr.initialize",cn.ID),this._postMessage({command:"pr.initialize",pullrequest:{number:n.number,title:n.title,url:n.html_url,createdAt:n.createdAt,body:n.body,bodyHTML:n.bodyHTML,labels:n.item.labels,author:{login:n.author.login,name:n.author.name,avatarUrl:n.userAvatar,url:n.author.url},state:n.state,events:s,isCurrentlyCheckedOut:V,isRemoteBaseDeleted:n.isRemoteBaseDeleted,base:n.base.label,isRemoteHeadDeleted:n.isRemoteHeadDeleted,isLocalHeadDeleted:!P,head:(r=(t=n.head)==null?void 0:t.label)!=null?r:"",repositoryDefaultBranch:o,canEdit:Te,hasWritePermission:j,status:h||{statuses:[]},mergeable:n.item.mergeable,reviewers:this._existingReviewers,isDraft:n.isDraft,mergeMethodsAvailability:ue,defaultMergeMethod:qe,isIssue:!1,milestone:n.milestone,assignees:n.assignees,continueOnGitHub:Ke,isAuthor:xe.login===n.author.login,currentUserReviewState:ze}})}).catch(e=>{d.window.showErrorMessage(Re(e))})}async update(i,e){return this._folderRepositoryManager!==i&&(this._folderRepositoryManager=i,this._changeActivePullRequestListener&&(this._changeActivePullRequestListener.dispose(),this._changeActivePullRequestListener=void 0,this.registerFolderRepositoryListener())),this._postMessage({command:"set-scroll",scrollPosition:this._scrollPosition}),this._panel.webview.html=this.getHtmlForWebview(e.number.toString()),this.updatePullRequest(e)}async _onDidReceiveMessage(i){if(await super._onDidReceiveMessage(i)===this.MESSAGE_UNHANDLED)switch(i.command){case"pr.checkout":return this.checkoutPullRequest(i);case"pr.merge":return this.mergePullRequest(i);case"pr.deleteBranch":return this.deleteBranch(i);case"pr.readyForReview":return this.setReadyForReview(i);case"pr.approve":return this.approvePullRequest(i);case"pr.request-changes":return this.requestChanges(i);case"pr.submit":return this.submitReview(i);case"pr.checkout-default-branch":return this.checkoutDefaultBranch(i);case"pr.apply-patch":return this.applyPatch(i);case"pr.open-diff":return this.openDiff(i);case"pr.checkMergeability":return this._replyMessage(i,await this._item.getMergeability());case"pr.add-reviewers":return this.addReviewers(i);case"pr.remove-milestone":return this.removeMilestone(i);case"pr.add-milestone":return this.addMilestone(i);case"pr.add-assignees":return this.addAssignees(i);case"pr.remove-reviewer":return this.removeReviewer(i);case"pr.remove-assignee":return this.removeAssignee(i);case"pr.copy-prlink":return this.copyPrLink();case"pr.openOnGitHub":return to(this._item,this._item._telemetry)}}async getReviewersQuickPickItems(i){var e;if(!i)return[];const r=(e=(await this._folderRepositoryManager.getAssignableUsers())[this._item.remote.remoteName])!=null?e:[],n=new Set([this._item.author.login,...this._existingReviewers.map(o=>o.reviewer.login)]),s=[];for(const o of i){const{login:h,name:S,isAuthor:T,isCommenter:P}=o;if(n.has(h))continue;const V=T&&P?"Recently edited and reviewed changes to these files":T?"Recently edited these files":P?"Recently reviewed changes to these files":"Suggested reviewer";s.push({label:h,description:S,detail:V,reviewer:o}),n.add(h)}for(const o of r)n.has(o.login)||s.push({label:o.login,description:o.name,reviewer:o});return s.length===0&&s.push({label:"No reviewers available for this repository"}),s}getAssigneesQuickPickItems(i,e){var t,r;if(!e)return[];i=i!=null?i:[];const n=new Set([...(r=(t=this._item.assignees)==null?void 0:t.map(o=>o.login))!=null?r:[]]),s=[];for(const o of e){const{login:h,name:S,isAuthor:T,isCommenter:P}=o;if(n.has(h))continue;const V=T&&P?"Recently edited and reviewed changes to these files":T?"Recently edited these files":P?"Recently reviewed changes to these files":"Suggested reviewer";s.push({label:h,description:S,detail:V,assignee:o}),n.add(h)}for(const o of i)n.has(o.login)||s.push({label:o.login,description:o.name,assignee:o});return s.length===0&&s.push({label:"No assignees available for this repository"}),s}async addReviewers(i){var e;try{const t=(e=await d.window.showQuickPick(this.getReviewersQuickPickItems(this._item.suggestedReviewers),{canPickMany:!0,matchOnDescription:!0}))==null?void 0:e.filter(r=>r.reviewer);if(t){await this._item.requestReview(t.map(n=>n.label));const r=t.map(n=>({reviewer:n.reviewer,state:"REQUESTED"}));this._existingReviewers=this._existingReviewers.concat(r),this._replyMessage(i,{added:r})}}catch(t){d.window.showErrorMessage(Re(t))}}async addMilestone(i){try{async function e(r){const n=await r.getMilestones();return n.items.length?n.items.map(s=>({label:s.milestone.title,id:s.milestone.id,milestone:s.milestone})):[{label:"No milestones created for this repository."}]}const t=await d.window.showQuickPick(e(this._folderRepositoryManager),{canPickMany:!1});t&&r1(t)&&(await this._item.updateMilestone(t.id),this._replyMessage(i,{added:t.milestone}))}catch(e){d.window.showErrorMessage(Re(e))}}async removeMilestone(i){try{await this._item.updateMilestone("null"),this._replyMessage(i,{})}catch(e){d.window.showErrorMessage(Re(e))}}async addAssignees(i){var e,t;try{const n=(await this._folderRepositoryManager.getAssignableUsers())[this._item.remote.remoteName],s=(e=await d.window.showQuickPick(this.getAssigneesQuickPickItems(n,[]),{canPickMany:!0,matchOnDescription:!0}))==null?void 0:e.filter(o=>o.assignee);if(s){const o=s.map(h=>h.assignee);this._item.assignees=(t=this._item.assignees)==null?void 0:t.concat(o),await this._item.updateAssignees(o.map(h=>h.login)),this._replyMessage(i,{added:o})}}catch(r){d.window.showErrorMessage(Re(r))}}async removeReviewer(i){try{await this._item.deleteReviewRequest(i.args);const e=this._existingReviewers.findIndex(t=>t.reviewer.login===i.args);this._existingReviewers.splice(e,1),this._replyMessage(i,{})}catch(e){d.window.showErrorMessage(Re(e))}}async removeAssignee(i){var e,t,r;try{await this._item.deleteAssignees(i.args);const n=(t=(e=this._item.assignees)==null?void 0:e.findIndex(s=>s.login===i.args))!=null?t:-1;(r=this._item.assignees)==null||r.splice(n,1),this._replyMessage(i,{})}catch(n){d.window.showErrorMessage(Re(n))}}async applyPatch(i){try{const e=i.args.comment,r=/```diff\n([\s\S]*)\n```/g.exec(e.body),n=H.join(this._folderRepositoryManager.repository.rootUri.path,".git",`${e.id}.diff`),s=new TextEncoder,o=d.Uri.parse(n);await d.workspace.fs.writeFile(o,s.encode(r[1])),await this._folderRepositoryManager.repository.apply(n,!0),await d.workspace.fs.delete(o)}catch(e){D.appendLine(`Applying patch failed: ${e}`),d.window.showErrorMessage(`Applying patch failed: ${Re(e)}`)}}async openDiff(i){try{const e=i.args.comment;return Fn.openDiffFromComment(this._folderRepositoryManager,this._item,e)}catch(e){D.appendLine(`Open diff view failed: ${Re(e)}`,cn.ID)}}checkoutPullRequest(i){d.commands.executeCommand("pr.pick",this._item).then(()=>{const e=this._item.equals(this._folderRepositoryManager.activePullRequest);this._replyMessage(i,{isCurrentlyCheckedOut:e})},()=>{const e=this._item.equals(this._folderRepositoryManager.activePullRequest);this._replyMessage(i,{isCurrentlyCheckedOut:e})})}mergePullRequest(i){const{title:e,description:t,method:r}=i.args;this._folderRepositoryManager.mergePullRequest(this._item,e,t,r).then(n=>{d.commands.executeCommand("pr.refreshList"),n.merged||d.window.showErrorMessage(`Merging PR failed: ${n.message}`),this._replyMessage(i,{state:n.merged?Ei.Merged:Ei.Open})}).catch(n=>{d.window.showErrorMessage(`Unable to merge pull request. ${Re(n)}`),this._throwError(i,{})})}async deleteBranch(i){const e=await this._folderRepositoryManager.getBranchNameForPullRequest(this._item),t=[];if(this._item.isResolved()){const s=this._item.head.ref;!(this._repositoryDefaultBranch===this._item.head.ref)&&!this._item.isRemoteHeadDeleted&&t.push({label:`Delete remote branch ${this._item.remote.remoteName}/${s}`,description:`${this._item.remote.normalizedHost}/${this._item.remote.owner}/${this._item.remote.repositoryName}`,type:"upstream",picked:!0})}if(e){const s=d.workspace.getConfiguration("githubPullRequests").get("defaultDeletionMethod.selectLocalBranch");t.push({label:`Delete local branch ${e.branch}`,type:"local",picked:!!s});const o=d.workspace.getConfiguration("githubPullRequests").get("defaultDeletionMethod.selectRemote");e.remote&&e.createdForPullRequest&&!e.remoteInUse&&t.push({label:`Delete remote ${e.remote}, which is no longer used by any other branch`,type:"remote",picked:!!o})}if(d.env.remoteName==="codespaces"&&t.push({label:"Suspend Codespace",type:"suspend"}),!t.length){d.window.showWarningMessage(`There is no longer an upstream or local branch for Pull Request #${this._item.number}`),this._replyMessage(i,{cancelled:!0});return}const r=await d.window.showQuickPick(t,{canPickMany:!0,ignoreFocusOut:!0}),n=[];if(r){const s=this._item.equals(this._folderRepositoryManager.activePullRequest),o=r.map(async h=>{switch(h.type){case"upstream":return await this._folderRepositoryManager.deleteBranch(this._item),n.push(h.type),this._folderRepositoryManager.repository.fetch({prune:!0});case"local":if(s){if(this._folderRepositoryManager.repository.state.workingTreeChanges.length)if(await d.window.showWarningMessage("Your local changes will be lost, do you want to continue?",{modal:!0},"Yes")==="Yes")await d.commands.executeCommand("git.cleanAll");else return;await this._folderRepositoryManager.repository.checkout(this._repositoryDefaultBranch)}return await this._folderRepositoryManager.repository.deleteBranch(e.branch,!0),n.push(h.type);case"remote":return n.push(h.type),this._folderRepositoryManager.repository.removeRemote(e.remote);case"suspend":return n.push(h.type),d.commands.executeCommand("github.codespaces.disconnectSuspend")}});await Promise.all(o),this.refreshPanel(),d.commands.executeCommand("pr.refreshList"),this._postMessage({command:"pr.deleteBranch",branchTypes:n})}else this._replyMessage(i,{cancelled:!0})}setReadyForReview(i){this._item.setReadyForReview().then(e=>{d.commands.executeCommand("pr.refreshList"),this._replyMessage(i,{isDraft:e})}).catch(e=>{d.window.showErrorMessage(`Unable to set PR ready for review. ${Re(e)}`),this._throwError(i,{})})}async checkoutDefaultBranch(i){try{await this._folderRepositoryManager.checkoutDefaultBranch(i.args)}finally{this._replyMessage(i,{})}}updateReviewers(i){if(i){const e=this._existingReviewers.find(t=>i.user.login===t.reviewer.login);e?e.state=i.state:this._existingReviewers.push({reviewer:i.user,state:i.state})}}approvePullRequest(i){this._item.approve(i.args).then(e=>{this.updateReviewers(e),this._replyMessage(i,{review:e,reviewers:this._existingReviewers}),d.commands.executeCommand("pr.refreshList")},e=>{d.window.showErrorMessage(`Approving pull request failed. ${Re(e)}`),this._throwError(i,`${Re(e)}`)})}requestChanges(i){this._item.requestChanges(i.args).then(e=>{this.updateReviewers(e),this._replyMessage(i,{review:e,reviewers:this._existingReviewers})},e=>{d.window.showErrorMessage(`Requesting changes failed. ${Re(e)}`),this._throwError(i,`${Re(e)}`)})}submitReview(i){this._item.submitReview(xn.Comment,i.args).then(e=>{this.updateReviewers(e),this._replyMessage(i,{review:e,reviewers:this._existingReviewers})},e=>{d.window.showErrorMessage(`Submitting review failed. ${Re(e)}`),this._throwError(i,`${Re(e)}`)})}async copyPrLink(){await d.env.clipboard.writeText(this._item.html_url),d.window.showInformationMessage(`Copied link to PR ${this._item.title}!`)}editCommentPromise(i,e){return this._item.editReviewComment(i,e)}deleteCommentPromise(i){return this._item.deleteReviewComment(i.id.toString())}dispose(){super.dispose(),this._changeActivePullRequestListener&&this._changeActivePullRequestListener.dispose()}};let Mr=cn;ja(Mr,"ID","PullRequestOverviewPanel"),ja(Mr,"currentPanel"),ja(Mr,"_viewType","PullRequestOverview");function Fp(i,e){return e&&i.hasOwnProperty(e)&&i[e]?e:["merge","squash","rebase"].find(r=>i[r])}var n1=Object.defineProperty,za=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?n1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class a1{constructor(e,t,r,n){if(this.pullRequestModel=e,this._folderReposManager=t,this._commentController=r,this._sessionState=n,za(this,"_pendingCommentThreadAdds",[]),za(this,"_commentHandlerId"),za(this,"_commentThreadCache",{}),za(this,"_openPREditors",[]),za(this,"_closedEditorCachedThreads",new Set),za(this,"_disposables",[]),this._commentHandlerId=Ip(),ei(this._commentHandlerId,this),this.pullRequestModel.reviewThreadsCacheReady)this.initializeThreadsInOpenEditors(),this.registerListeners();else{const s=this.pullRequestModel.onDidChangeReviewThreads(()=>{s.dispose(),this.initializeThreadsInOpenEditors(),this.registerListeners()})}}registerListeners(){this._disposables.push(this.pullRequestModel.onDidChangeReviewThreads(e=>this.onDidChangeReviewThreads(e))),this._disposables.push(d.window.onDidChangeVisibleTextEditors(async e=>{this.onDidChangeOpenEditors(e)})),this._disposables.push(this.pullRequestModel.onDidChangePendingReviewState(e=>{for(const t in this._commentThreadCache)this._commentThreadCache[t].forEach(r=>{$p(r,e)})})),this._disposables.push(d.window.onDidChangeActiveTextEditor(e=>{this.refreshContextKey(e)})),this._disposables.push(this._sessionState.onDidChangeCommentsExpandState(e=>{for(const t of this.pullRequestModel.reviewThreadsCache){const r=this.getCommentThreadCacheKey(t.path,t.diffSide===Yt.LEFT),n=this._commentThreadCache[r];if(!n){D.appendLine(`PullRequestCommentController> Thread with ID ${r} is no longer in cache`);continue}const s=n.findIndex(o=>o.gitHubThreadId===t.id);if(s>-1){const o=n[s];zs(o,t,e)}}}))}refreshContextKey(e){if(!e)return;const t=e.document.uri;if(t.scheme!=="pr")return;const r=fr(t);!r||r.prNumber!==this.pullRequestModel.number||this.setContextKey(this.pullRequestModel.hasPendingReview)}getPREditors(e){return e.filter(t=>{if(t.document.uri.scheme!=="pr")return!1;const r=fr(t.document.uri);return!(!r||r.prNumber!==this.pullRequestModel.number)})}getCommentThreadCacheKey(e,t){return`${e}-${t?"original":"modified"}`}tryUsedCachedEditor(e){const t=[];return e.forEach(r=>{const{fileName:n,isBase:s}=fr(r.document.uri),o=this.getCommentThreadCacheKey(n,s);this._closedEditorCachedThreads.has(o)?(this._closedEditorCachedThreads.delete(o),this._closedEditorCachedThreads.add(o)):t.push(r)}),t}addThreadsForEditors(e){const t=this.tryUsedCachedEditor(e),r=this.pullRequestModel.reviewThreadsCache,n=Pe(r,s=>s.path);t.forEach(s=>{const{fileName:o,isBase:h}=fr(s.document.uri);n[o]&&(this._commentThreadCache[this.getCommentThreadCacheKey(o,h)]=n[o].filter(S=>(S.diffSide===Yt.LEFT&&h||S.diffSide===Yt.RIGHT&&!h)&&S.line!==null).map(S=>{const T=new d.Range(new d.Position(S.line-1,0),new d.Position(S.line-1,0));return js(s.document.uri,T,S,this._commentController)}))})}initializeThreadsInOpenEditors(){const e=this.getPREditors(d.window.visibleTextEditors);this._openPREditors=e,this.addThreadsForEditors(e)}cleanCachedEditors(){if(this._closedEditorCachedThreads.size>8){const e=Array.from(this._closedEditorCachedThreads.keys());for(let t=0;t<this._closedEditorCachedThreads.size-4;t++){const r=e[t];this.cleanCachedEditor(r),this._closedEditorCachedThreads.delete(r)}}}cleanCachedEditor(e){(this._commentThreadCache[e]||[]).forEach(r=>r.dispose()),delete this._commentThreadCache[e]}addCachedEditors(e){e.forEach(t=>{const{fileName:r,isBase:n}=fr(t.document.uri),s=this.getCommentThreadCacheKey(r,n);this._closedEditorCachedThreads.has(s)&&this._closedEditorCachedThreads.delete(s),this._closedEditorCachedThreads.add(s)})}onDidChangeOpenEditors(e){const t=this.getPREditors(e),r=this._openPREditors.filter(s=>!t.includes(s));this.addCachedEditors(r),this.cleanCachedEditors();const n=t.filter(s=>!this._openPREditors.includes(s));this._openPREditors=t,n.length&&this.addThreadsForEditors(n)}onDidChangeReviewThreads(e){e.added.forEach(t=>{const r=t.path,n=this._pendingCommentThreadAdds.findIndex(h=>{const S=this.gitRelativeRootPath(h.uri.path)===t.path,T=h.range.start.line+1===t.line;return S&&T});let s;if(n>-1)s=this._pendingCommentThreadAdds[n],s.gitHubThreadId=t.id,s.comments=t.comments.map(h=>new Ui(h,s)),this._pendingCommentThreadAdds.splice(n,1);else{const S=this.getPREditors(d.window.visibleTextEditors).find(T=>{const P=fr(T.document.uri),V=t.diffSide===Yt.RIGHT&&!(P==null?void 0:P.isBase)||t.diffSide===Yt.LEFT&&(P==null?void 0:P.isBase);return(P==null?void 0:P.fileName)===r&&V});if(S){const T=new d.Range(new d.Position(t.line-1,0),new d.Position(t.line-1,0));s=js(S.document.uri,T,t,this._commentController)}}if(!s)return;const o=this.getCommentThreadCacheKey(t.path,t.diffSide===Yt.LEFT);this._commentThreadCache[o]?this._commentThreadCache[o].push(s):this._commentThreadCache[o]=[s]}),e.changed.forEach(t=>{const r=this.getCommentThreadCacheKey(t.path,t.diffSide===Yt.LEFT),n=this._commentThreadCache[r].findIndex(s=>s.gitHubThreadId===t.id);if(n>-1){const s=this._commentThreadCache[r][n];zs(s,t)}}),e.removed.forEach(async t=>{const r=this.getCommentThreadCacheKey(t.path,t.diffSide===Yt.LEFT),n=this._commentThreadCache[r].findIndex(s=>s.gitHubThreadId===t.id);if(n>-1){const s=this._commentThreadCache[r][n];this._commentThreadCache[r].splice(n,1),s.dispose()}})}hasCommentThread(e){if(e.uri.scheme!=="pr")return!1;const t=fr(e.uri);return!(!t||t.prNumber!==this.pullRequestModel.number)}getCommentSide(e){const t=fr(e.uri);return(t==null?void 0:t.isBase)?Yt.LEFT:Yt.RIGHT}async createOrReplyComment(e,t,r,n){var s;const o=e.comments.length,h=r?!1:n!==void 0?n:this.pullRequestModel.hasPendingReview,S=this.optimisticallyAddComment(e,t,h);try{if(o)await this.reply(e,t,r);else{const T=this.gitRelativeRootPath(e.uri.path),P=this.getCommentSide(e);this._pendingCommentThreadAdds.push(e),await this.pullRequestModel.createReviewThread(t,T,e.range.start.line+1,P,r)}r&&await this.pullRequestModel.submitReview()}catch(T){((s=T.graphQLErrors)==null?void 0:s.length)&&T.graphQLErrors[0].type==="NOT_FOUND"?d.window.showWarningMessage("The comment that you're replying to was deleted. Refresh to update.","Refresh").then(P=>{P==="Refresh"&&this.pullRequestModel.invalidate()}):d.window.showErrorMessage(`Creating comment failed: ${T}`),e.comments=e.comments.map(P=>(P instanceof Nr&&P.id===S&&(P.mode=d.CommentMode.Editing),P))}}reply(e,t,r){const n=e.comments[0];if(n instanceof Ui)return this.pullRequestModel.createCommentReply(t,n._rawComment.graphNodeId,r);throw new Error("Cannot respond to temporary comment")}optimisticallyEditComment(e,t){const r=this._folderReposManager.getCurrentUser(this.pullRequestModel),n=new Nr(e,t.body instanceof d.MarkdownString?t.body.value:t.body,!!t.label,r,t);return e.comments=e.comments.map(s=>s instanceof Ui&&s.commentId===t.commentId?n:s),n.id}async editComment(e,t){if(t instanceof Ui){const r=this.optimisticallyEditComment(e,t);try{await this.pullRequestModel.editReviewComment(t._rawComment,t.body instanceof d.MarkdownString?t.body.value:t.body)}catch(n){d.window.showErrorMessage(`Editing comment failed ${n}`),e.comments=e.comments.map(s=>s instanceof Nr&&s.id===r?new Ui(t._rawComment,e):s)}}else this.createOrReplyComment(e,t.body instanceof d.MarkdownString?t.body.value:t.body,!1)}async deleteComment(e,t){t instanceof Ui?await this.pullRequestModel.deleteReviewComment(t.commentId):e.comments=e.comments.filter(r=>!(r instanceof Nr&&r.id===t.id)),await this.pullRequestModel.validateDraftMode()}gitRelativeRootPath(e){return H.relative(this._folderReposManager.repository.rootUri.path,e).replace(/\\/g,"/")}async startReview(e,t){const r=e.comments.length,n=this.optimisticallyAddComment(e,t,!0);try{if(r)await this.reply(e,t,!1);else{const s=this.gitRelativeRootPath(e.uri.path),o=this.getCommentSide(e);this._pendingCommentThreadAdds.push(e),await this.pullRequestModel.createReviewThread(t,s,e.range.start.line+1,o)}this.setContextKey(!0)}catch(s){d.window.showErrorMessage(`Starting a review failed: ${s}`),e.comments=e.comments.map(o=>(o instanceof Nr&&o.id===n&&(o.mode=d.CommentMode.Editing),o))}}async openReview(){await Mr.createOrShow(this._folderReposManager.context.extensionUri,this._folderReposManager,this.pullRequestModel),Mr.scrollToReview(),this._folderReposManager.telemetry.sendTelemetryEvent("pr.openDescription")}optimisticallyAddComment(e,t,r){const n=this._folderReposManager.getCurrentUser(this.pullRequestModel),s=new Nr(e,t,r,n);return this.updateCommentThreadComments(e,[...e.comments,s]),s.id}updateCommentThreadComments(e,t){e.comments=t,Wa(e)}async createCommentOnResolve(e,t){const r=await this.pullRequestModel.getPendingReviewId();await this.createOrReplyComment(e,t,!r)}async resolveReviewThread(e,t){try{t&&await this.createCommentOnResolve(e,t),await this.pullRequestModel.resolveReviewThread(e.gitHubThreadId)}catch(r){d.window.showErrorMessage(`Resolving conversation failed: ${r}`)}}async unresolveReviewThread(e,t){try{t&&await this.createCommentOnResolve(e,t),await this.pullRequestModel.unresolveReviewThread(e.gitHubThreadId)}catch(r){d.window.showErrorMessage(`Unresolving conversation failed: ${r}`)}}async toggleReaction(e,t){e.parent.uri.scheme==="pr"&&(e.reactions&&!e.reactions.find(r=>r.label===t.label&&!!r.authorHasReacted)?await this.pullRequestModel.addCommentReaction(e._rawComment.graphNodeId,t):await this.pullRequestModel.deleteCommentReaction(e._rawComment.graphNodeId,t))}setContextKey(e){d.commands.executeCommand("setContext","prInDraft",e)}dispose(){Object.keys(this._commentThreadCache).forEach(e=>{this._commentThreadCache[e].forEach(t=>t.dispose())}),be(this._commentHandlerId),this._disposables.forEach(e=>e.dispose())}}var s1=Object.defineProperty,Lp=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?s1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class o1{constructor(e,t){this.commentsController=e,this._sessionState=t,Lp(this,"_prCommentHandlers",{}),Lp(this,"_prCommentingRangeProviders",{}),this.commentsController.commentingRangeProvider=this,this.commentsController.reactionHandler=this.toggleReaction.bind(this)}async provideCommentingRanges(e,t){const r=e.uri,n=fr(r);return!n||!this._prCommentingRangeProviders[n.prNumber]?void 0:this._prCommentingRangeProviders[n.prNumber].provideCommentingRanges.bind(this._prCommentingRangeProviders[n.prNumber])(e,t)}async toggleReaction(e,t){const r=e.parent.uri,n=fr(r);return!n||!this._prCommentHandlers[n.prNumber]||!this._prCommentHandlers[n.prNumber].handler.toggleReaction?void 0:this._prCommentHandlers[n.prNumber].handler.toggleReaction.bind(this._prCommentHandlers[n.prNumber].handler)(e,t)}registerCommentController(e,t,r){if(this._prCommentHandlers[e])return this._prCommentHandlers[e].refCount+=1,this._prCommentHandlers[e];const n=new a1(t,r,this.commentsController,this._sessionState);return this._prCommentHandlers[e]={handler:n,refCount:1,dispose:()=>{!this._prCommentHandlers[e]||(this._prCommentHandlers[e].refCount-=1,this._prCommentHandlers[e].refCount===0&&(this._prCommentHandlers[e].handler.dispose(),delete this._prCommentHandlers[e]))}},this._prCommentHandlers[e]}registerCommentingRangeProvider(e,t){return this._prCommentingRangeProviders[e]=t,{dispose:()=>{delete this._prCommentingRangeProviders[e]}}}dispose(){Object.keys(this._prCommentHandlers).forEach(e=>{this._prCommentHandlers[e].handler.dispose()}),this._prCommentingRangeProviders={},this._prCommentHandlers={}}}var l1=wt(9967),d1=wt.n(l1),u1=Object.defineProperty,Pr=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?u1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const Up=20,Qa="GraphQL";var _r;(function(i){i.Unknown="unknown",i.Admin="ADMIN",i.Maintain="MAINTAIN",i.Read="READ",i.Triage="TRIAGE",i.Write="WRITE"})(_r||(_r={}));const It=class{constructor(i,e,t,r){this.remote=i,this._credentialStore=e,this._telemetry=t,this._sessionState=r,Pr(this,"_initialized",!1),Pr(this,"_hub"),Pr(this,"_metadata"),Pr(this,"_toDispose",[]),Pr(this,"commentsController"),Pr(this,"commentsHandler"),Pr(this,"_pullRequestModels",new Map),Pr(this,"isGitHubDotCom"),Pr(this,"_onDidAddPullRequest",new d.EventEmitter),Pr(this,"onDidAddPullRequest",this._onDidAddPullRequest.event),Pr(this,"query",async n=>{var s;const o=this.hub&&this.hub.graphql;if(!o)return D.debug(`Not available for query: ${n}`,Qa),{data:null,loading:!1,networkStatus:At.error,stale:!1};D.debug(`Request: ${JSON.stringify(n,null,2)}`,Qa);let h;try{h=await o.query(n)}catch(S){if(n.query!==this.schema.GetChecks&&((s=S.message)==null?void 0:s.startsWith("GraphQL error: Resource protected by organization SAML enforcement.")))await this._credentialStore.recreate(),h=await o.query(n);else throw S}return D.debug(`Response: ${JSON.stringify(h,null,2)}`,Qa),h}),Pr(this,"mutate",async n=>{const s=this.hub&&this.hub.graphql;if(!s)return D.debug(`Not available for query: ${n}`,Qa),{data:null,loading:!1,networkStatus:At.error,stale:!1};D.debug(`Request: ${JSON.stringify(n,null,2)}`,Qa);const o=await s.mutate(n);return D.debug(`Response: ${JSON.stringify(o,null,2)}`,Qa),o}),this.isGitHubDotCom=i.host.toLowerCase()==="github.com"}get hub(){if(!this._hub)throw this._initialized?new ll("Not authenticated."):new Error("Call ensure() before accessing this property.");return this._hub}equals(i){return this.remote.equals(i.remote)}get pullRequestModels(){return this._pullRequestModels}async ensureCommentsController(){try{if(this.commentsController)return;await this.ensure(),this.commentsController=d.comments.createCommentController(`github-browse-${this.remote.normalizedHost}`,`GitHub Pull Request for ${this.remote.normalizedHost}`),this.commentsHandler=new o1(this.commentsController,this._sessionState),this._toDispose.push(this.commentsHandler),this._toDispose.push(this.commentsController)}catch(i){console.log(i)}}dispose(){this._toDispose.forEach(i=>i.dispose())}get octokit(){return this.hub&&this.hub.octokit}get schema(){return d1()}async getMetadata(){var i;if(D.debug("Fetch metadata - enter",It.ID),this._metadata)return D.debug(`Fetch metadata ${(i=this._metadata.owner)==null?void 0:i.login}/${this._metadata.name} - done`,It.ID),this._metadata;const{octokit:e,remote:t}=await this.ensure(),r=await e.repos.get({owner:t.owner,repo:t.repositoryName});return D.debug(`Fetch metadata ${t.owner}/${t.repositoryName} - done`,It.ID),this._metadata={...r.data,currentUser:e.currentUser},this._metadata}async resolveRemote(){try{const{clone_url:i}=await this.getMetadata();this.remote=ic(this.remote.remoteName,i,this.remote.gitProtocol)}catch(i){if(D.appendLine(`Unable to resolve remote: ${i}`),Um(i))return!1}return!0}async ensure(){return this._initialized=!0,this._credentialStore.isAuthenticated(this.remote.authProviderId)?this._hub=this._credentialStore.getHub(this.remote.authProviderId):(await this._credentialStore.create(),this._credentialStore.isAuthenticated(this.remote.authProviderId)||(this._hub=await this._credentialStore.showSignInNotification(this.remote.authProviderId))),this}async getDefaultBranch(){try{D.debug("Fetch default branch - enter",It.ID);const{octokit:i,remote:e}=await this.ensure(),{data:t}=await i.repos.get({owner:e.owner,repo:e.repositoryName});return D.debug("Fetch default branch - done",It.ID),t.default_branch}catch(i){D.appendLine(`GitHubRepository> Fetching default branch failed: ${i}`)}return"master"}async getRepoAccessAndMergeMethods(){var i,e,t,r,n;try{D.debug("Fetch repo permissions and available merge methods - enter",It.ID);const{octokit:s,remote:o}=await this.ensure(),{data:h}=await s.repos.get({owner:o.owner,repo:o.repositoryName});return D.debug("Fetch repo permissions and available merge methods - done",It.ID),{hasWritePermission:(e=(i=h.permissions)==null?void 0:i.push)!=null?e:!1,mergeMethodsAvailability:{merge:(t=h.allow_merge_commit)!=null?t:!1,squash:(r=h.allow_squash_merge)!=null?r:!1,rebase:(n=h.allow_rebase_merge)!=null?n:!1}}}catch(s){D.appendLine(`GitHubRepository> Fetching repo permissions and available merge methods failed: ${s}`)}return{hasWritePermission:!0,mergeMethodsAvailability:{merge:!0,squash:!0,rebase:!0}}}async getAllPullRequests(i){try{D.debug("Fetch all pull requests - enter",It.ID);const{octokit:e,remote:t}=await this.ensure(),r=await e.pulls.list({owner:t.owner,repo:t.repositoryName,per_page:Up,page:i||1}),n=!!r.headers.link&&r.headers.link.indexOf('rel="next"')>-1;if(!r.data)return D.appendLine(`Warning: no result data for ${t.owner}/${t.repositoryName} Status: ${r.status}`),{items:[],hasMorePages:!1};const s=r.data.map(o=>o.head.repo?this.createOrUpdatePullRequestModel(ba(o,this)):(D.appendLine("GitHubRepository> The remote branch for this PR was already deleted."),null)).filter(o=>o!==null);return D.debug("Fetch all pull requests - done",It.ID),{items:s,hasMorePages:n}}catch(e){if(D.appendLine(`Fetching all pull requests failed: ${e}`,It.ID),e.code===404)d.window.showWarningMessage(`Fetching pull requests for remote '${this.remote.remoteName}' failed, please check if the url ${this.remote.url} is valid.`);else throw e}}async getPullRequestForBranch(i){try{D.debug("Fetch pull requests for branch - enter",It.ID);const{octokit:e,remote:t}=await this.ensure(),n=(await e.pulls.list({owner:t.owner,repo:t.repositoryName,head:i})).data.map(s=>this.createOrUpdatePullRequestModel(ba(s,this))).filter(s=>s!==null);return D.debug("Fetch pull requests for branch - done",It.ID),n}catch(e){if(D.appendLine(`Fetching pull requests for branch failed: ${e}`,It.ID),e.code===404)d.window.showWarningMessage(`Fetching pull requests for remote '${this.remote.remoteName}' failed, please check if the url ${this.remote.url} is valid.`);else throw e}}getRepoForIssue(i,e){if(e.repositoryName&&e.repositoryUrl&&(i.remote.owner!==e.repositoryOwner||i.remote.repositoryName!==e.repositoryName)){const t=new wl(e.repositoryName,e.repositoryUrl,new Or(e.repositoryUrl));i=new It(t,this._credentialStore,this._telemetry,this._sessionState)}return i}async getIssuesForUserByMilestone(i){var e;try{D.debug("Fetch all issues - enter",It.ID);const{query:t,remote:r,schema:n}=await this.ensure(),{data:s}=await t({query:n.GetMilestones,variables:{owner:r.owner,name:r.repositoryName,assignee:(e=this._credentialStore.getCurrentUser(r.authProviderId))==null?void 0:e.login}});D.debug("Fetch all issues - done",It.ID);const o=[];let h=this;return s&&s.repository.milestones&&s.repository.milestones.nodes&&s.repository.milestones.nodes.forEach(S=>{const T=yu(S);if(T){const P=[];S.issues.edges.forEach(V=>{const j=bu(V.node,this);h=this.getRepoForIssue(h,j),P.push(new Wi(h,h.remote,j))}),o.push({milestone:T,issues:P})}}),{items:o,hasMorePages:s.repository.milestones.pageInfo.hasNextPage}}catch(t){D.appendLine(`GithubRepository> Unable to fetch issues: ${t}`);return}}async getIssuesWithoutMilestone(i){var e;try{D.debug("Fetch issues without milestone- enter",It.ID);const{query:t,remote:r,schema:n}=await this.ensure(),{data:s}=await t({query:n.IssuesWithoutMilestone,variables:{owner:r.owner,name:r.repositoryName,assignee:(e=this._credentialStore.getCurrentUser(r.authProviderId))==null?void 0:e.login}});D.debug("Fetch issues without milestone - done",It.ID);const o=[];let h=this;return s&&s.repository.issues.edges&&s.repository.issues.edges.forEach(S=>{if(S.node.id){const T=bu(S.node,this);h=this.getRepoForIssue(h,T),o.push(new Wi(h,h.remote,T))}}),{items:o,hasMorePages:s.repository.issues.pageInfo.hasNextPage}}catch(t){D.appendLine(`GithubRepository> Unable to fetch issues without milestone: ${t}`);return}}async getIssues(i,e){try{D.debug("Fetch issues with query - enter",It.ID);const{query:t,schema:r}=await this.ensure(),{data:n}=await t({query:r.Issues,variables:{query:`${e} type:issue`}});D.debug("Fetch issues with query - done",It.ID);const s=[];let o=this;return n&&n.search.edges&&n.search.edges.forEach(h=>{if(h.node.id){const S=bu(h.node,this);o=this.getRepoForIssue(o,S),s.push(new Wi(o,o.remote,S))}}),{items:s,hasMorePages:n.search.pageInfo.hasNextPage}}catch(t){D.appendLine(`GithubRepository> Unable to fetch issues with query: ${t}`);return}}async getMaxIssue(){try{D.debug("Fetch max issue - enter",It.ID);const{query:i,remote:e,schema:t}=await this.ensure(),{data:r}=await i({query:t.MaxIssue,variables:{owner:e.owner,name:e.repositoryName}});return D.debug("Fetch max issue - done",It.ID),r&&r.repository.issues.edges.length===1?r.repository.issues.edges[0].node.number:void 0}catch(i){D.appendLine(`GithubRepository> Unable to fetch issues with query: ${i}`);return}}async getViewerPermission(){try{D.debug("Fetch viewer permission - enter",It.ID);const{query:i,remote:e,schema:t}=await this.ensure(),{data:r}=await i({query:t.GetViewerPermission,variables:{owner:e.owner,name:e.repositoryName}});return D.debug("Fetch viewer permission - done",It.ID),_1(r)}catch(i){return D.appendLine(`GithubRepository> Unable to fetch viewer permission: ${i}`),_r.Unknown}}async fork(){try{D.debug("Fork repository",It.ID);const{octokit:i,remote:e}=await this.ensure();return(await i.repos.createFork({owner:e.owner,repo:e.repositoryName})).data.clone_url}catch(i){D.appendLine(`GitHubRepository> Forking repository failed: ${i}`);return}}async getRepositoryForkDetails(){try{D.debug("Fetch repository fork details - enter",It.ID);const{query:i,remote:e,schema:t}=await this.ensure(),{data:r}=await i({query:t.GetRepositoryForkDetails,variables:{owner:e.owner,name:e.repositoryName}});return D.debug("Fetch repository fork details - done",It.ID),r.repository}catch(i){D.appendLine(`GithubRepository> Unable to fetch repository fork details: ${i}`);return}}async getAuthenticatedUser(){const{octokit:i}=await this.ensure();return(await i.users.getAuthenticated({})).data.login}async getPullRequestsForCategory(i,e){try{D.debug(`Fetch pull request category ${i} - enter`,It.ID);const{octokit:t,remote:r}=await this.ensure(),n=await t.users.getAuthenticated({}),s=await t.repos.get({owner:this.remote.owner,repo:this.remote.repositoryName}),{data:o,headers:h}=await t.search.issuesAndPullRequests({q:E1(s.data.full_name,n.data.login,i),per_page:Up,page:e||1}),S=[];o.items.forEach(j=>{S.push(new Promise(async(ue,Te)=>{const Se=await t.pulls.get({owner:r.owner,repo:r.repositoryName,pull_number:j.number});ue(Se)}))});const T=!!h.link&&h.link.indexOf('rel="next"')>-1,V=(await Promise.all(S)).map(j=>j.data.head.repo?this.createOrUpdatePullRequestModel(ba(j.data,this)):(D.appendLine("GitHubRepository> The remote branch for this PR was already deleted."),null)).filter(j=>j!==null);return D.debug(`Fetch pull request category ${i} - done`,It.ID),{items:V,hasMorePages:T}}catch(t){if(D.appendLine(`GitHubRepository> Fetching all pull requests failed: ${t}`),t.code===404)d.window.showWarningMessage(`Fetching pull requests for remote ${this.remote.remoteName}, please check if the url ${this.remote.url} is valid.`);else throw t}}createOrUpdatePullRequestModel(i){let e=this._pullRequestModels.get(i.number);return e?e.update(i):(e=new Fn(this._telemetry,this,this.remote,i),e.onDidInvalidate(()=>this.getPullRequest(i.number)),this._pullRequestModels.set(i.number,e),this._onDidAddPullRequest.fire(e)),e}async createPullRequest(i){const{octokit:e}=await this.ensure(),{data:t}=await e.pulls.create(i);return this.createOrUpdatePullRequestModel(ba(t,this))}async getPullRequest(i){try{D.debug(`Fetch pull request ${i} - enter`,It.ID);const{query:e,remote:t,schema:r}=await this.ensure(),{data:n}=await e({query:r.PullRequest,variables:{owner:t.owner,name:t.repositoryName,number:i}});return D.debug(`Fetch pull request ${i} - done`,It.ID),this.createOrUpdatePullRequestModel(zp(n,this))}catch(e){D.appendLine(`GithubRepository> Unable to fetch PR: ${e}`);return}}async getIssue(i,e=!1){try{D.debug(`Fetch issue ${i} - enter`,It.ID);const{query:t,remote:r,schema:n}=await this.ensure(),{data:s}=await t({query:e?n.IssueWithComments:n.Issue,variables:{owner:r.owner,name:r.repositoryName,number:i}});return D.debug(`Fetch issue ${i} - done`,It.ID),new Wi(this,r,zp(s,this))}catch(t){D.appendLine(`GithubRepository> Unable to fetch PR: ${t}`);return}}async listBranches(i,e){const{octokit:t}=await this.ensure();D.debug(`List branches for ${i}/${e} - enter`,It.ID);try{let r=[];const n=new Date().getTime();for await(const s of t.paginate.iterator("GET /repos/:owner/:repo/branches",{owner:i,repo:e,per_page:100}))if(r.push(...s.data.map(o=>o.name)),new Date().getTime()-n>5e3)break;return D.debug(`List branches for ${i}/${e} - done`,It.ID),r}catch(r){throw D.debug(`List branches for ${i}/${e} failed`,It.ID),r}}async deleteBranch(i){const{octokit:e}=await this.ensure();if(!!i.validatePullRequestModel("Unable to delete branch"))try{await e.git.deleteRef({owner:i.head.repositoryCloneUrl.owner,repo:i.head.repositoryCloneUrl.repositoryName,ref:`heads/${i.head.ref}`})}catch(t){D.appendLine(`GithubRepository> Unable to delete branch: ${t}`);return}}async getMentionableUsers(){D.debug("Fetch mentionable users - enter",It.ID);const{query:i,remote:e,schema:t}=await this.ensure();let r=null,n=!1;const s=[];do try{const o=await i({query:t.GetMentionableUsers,variables:{owner:e.owner,name:e.repositoryName,first:100,after:r}});s.push(...o.data.repository.mentionableUsers.nodes.map(h=>({login:h.login,avatarUrl:h.avatarUrl,name:h.name,url:h.url,email:h.email}))),n=o.data.repository.mentionableUsers.pageInfo.hasNextPage,r=o.data.repository.mentionableUsers.pageInfo.endCursor}catch(o){return D.debug(`Unable to fetch mentionable users: ${o}`,It.ID),s}while(n);return s}async getAssignableUsers(){D.debug("Fetch assignable users - enter",It.ID);const{query:i,remote:e,schema:t}=await this.ensure();let r=null,n=!1;const s=[];do try{const o=await i({query:t.GetAssignableUsers,variables:{owner:e.owner,name:e.repositoryName,first:100,after:r}});s.push(...o.data.repository.assignableUsers.nodes.map(h=>({login:h.login,avatarUrl:h.avatarUrl,name:h.name,url:h.url,email:h.email}))),n=o.data.repository.assignableUsers.pageInfo.hasNextPage,r=o.data.repository.assignableUsers.pageInfo.endCursor}catch(o){return D.debug(`Unable to fetch assignable users: ${o}`,It.ID),o.graphQLErrors&&o.graphQLErrors.length>0&&o.graphQLErrors[0].type==="INSUFFICIENT_SCOPES"&&d.window.showWarningMessage(`GitHub user features will not work. ${o.graphQLErrors[0].message}`),s}while(n);return s}async compareCommits(i,e){const{remote:t,octokit:r}=await this.ensure(),{data:n}=await r.repos.compareCommits({repo:t.repositoryName,owner:t.owner,base:i,head:e});return n}isCurrentUser(i){return this._credentialStore.isCurrentUser(i)}};let Vp=It;Pr(Vp,"ID","GitHubRepository");function js(i,e,t,r){const n=r.createCommentThread(i,e,[]);return n.gitHubThreadId=t.id,n.comments=t.comments.map(s=>new Ui(s,n)),n.isResolved=t.isResolved,t.viewerCanResolve&&!t.isResolved?n.contextValue="canResolve":t.viewerCanUnresolve&&t.isResolved&&(n.contextValue="canUnresolve"),Wa(n),n.collapsibleState=qp(t.isResolved),n}const hl="commentExpandState",k0="collapseAll",gu="expandUnresolved";function qp(i,e){var t;return i?d.CommentThreadCollapsibleState.Collapsed:(e===void 0&&(e=((t=d.workspace.getConfiguration(Yi))==null?void 0:t.get(hl))===gu),e?d.CommentThreadCollapsibleState.Expanded:d.CommentThreadCollapsibleState.Collapsed)}function zs(i,e,t){e.viewerCanResolve&&!e.isResolved?i.contextValue="canResolve":e.viewerCanUnresolve&&e.isResolved&&(i.contextValue="canUnresolve"),i.isResolved!==e.isResolved&&(i.isResolved=e.isResolved),i.collapsibleState=qp(e.isResolved,t),i.comments=e.comments.map(r=>new Ui(r,i)),Wa(i)}function Wa(i){if(i.isResolved){i.label="This thread has been marked as resolved";return}if(i.comments.length){const e=Ce(i.comments,t=>t.author.name).map(t=>`@${t.author.name}`).join(", ");i.label=`Participants: ${e}`}else i.label="Start discussion"}function p1(i){return gl().map(e=>{if(!i)return{label:e.label,authorHasReacted:!1,count:0,iconPath:e.icon||""};const t=i.find(r=>r.label===e.label);return t?{label:t.label,authorHasReacted:t.viewerHasReacted,count:t.count,iconPath:e.icon||""}:{label:e.label,authorHasReacted:!1,count:0,iconPath:e.icon||""}})}function c1(i,e){i.reactions=p1(e)}function $p(i,e){e||(i.comments=i.comments.map(t=>(t instanceof Ui&&(t._rawComment.isDraft=!1),t.label=void 0,t)))}function ta(i,e){var t;return{login:i.login,url:i.html_url,avatarUrl:Tu(i.avatar_url,(t=i.gravatar_id)!=null?t:void 0,e.remote.authProviderId)}}function Gp(i){return{label:i.label,ref:i.ref,sha:i.sha,repo:{cloneUrl:i.repo.clone_url}}}function ba(i,e){const{number:t,body:r,title:n,html_url:s,user:o,state:h,assignees:S,created_at:T,updated_at:P,head:V,base:j,labels:ue,node_id:Te,id:Se,draft:qe}=i;return{id:Se,graphNodeId:Te,number:t,body:r!=null?r:"",title:n,url:s,user:ta(o,e),state:h,merged:i.merged||!1,assignees:S?S.map(je=>ta(je,e)):void 0,createdAt:T,updatedAt:P,head:Gp(V),base:Gp(j),mergeable:i.mergeable?ea.Mergeable:ea.NotMergeable,labels:ue.map(je=>({name:"",color:"",...je})),isDraft:qe,suggestedReviewers:[]}}function m1(i,e){const{number:t,body:r,title:n,html_url:s,user:o,state:h,assignees:S,created_at:T,updated_at:P,labels:V,node_id:j,id:ue}=i;return{id:ue,graphNodeId:j,number:t,body:r!=null?r:"",title:n,url:s,user:ta(o,e),state:h,assignees:S?S.map(Se=>ta(Se,e)):void 0,createdAt:T,updatedAt:P,labels:V.map(Se=>{var qe,xe;return typeof Se=="string"?{name:Se,color:""}:{name:(qe=Se.name)!=null?qe:"",color:(xe=Se.color)!=null?xe:""}}),suggestedReviewers:[]}}function h1(i,e){return{event:Li.Reviewed,comments:[],submittedAt:i.submitted_at,body:i.body,bodyHTML:i.body,htmlUrl:i.html_url,user:ta(i.user,e),authorAssociation:i.user.type,state:i.state,id:i.id}}function Bp(i){const e=[],t=Gi(i.diffHunk);let r=t.next();for(;!r.done;){const n=r.value;e.push(n),r=t.next()}return e}function R0(i,e){var t;const r={url:i.url,id:i.id,pullRequestReviewId:(t=i.pull_request_review_id)!=null?t:void 0,diffHunk:i.diff_hunk,path:i.path,position:i.position,commitId:i.commit_id,originalPosition:i.original_position,originalCommitId:i.original_commit_id,user:ta(i.user,e),body:i.body,createdAt:i.created_at,htmlUrl:i.html_url,inReplyToId:i.in_reply_to_id,graphNodeId:i.node_id},n=Bp(r);return r.diffHunks=n,r}function f1(i){switch(i){case"PullRequestCommit":return Li.Committed;case"LabeledEvent":return Li.Labeled;case"MilestonedEvent":return Li.Milestoned;case"AssignedEvent":return Li.Assigned;case"HeadRefDeletedEvent":return Li.HeadRefDeleted;case"IssueComment":return Li.Commented;case"PullRequestReview":return Li.Reviewed;case"MergedEvent":return Li.Merged;default:return Li.Other}}function fl(i){return{id:i.id,isResolved:i.isResolved,viewerCanResolve:i.viewerCanResolve,viewerCanUnresolve:i.viewerCanUnresolve,path:i.path,line:i.line,originalLine:i.originalLine,diffSide:i.diffSide,isOutdated:i.isOutdated,comments:i.comments.nodes.map(e=>Ka(e,i.isResolved))}}function Ka(i,e){const t={id:i.databaseId,url:i.url,body:i.body,bodyHTML:i.bodyHTML,path:i.path,canEdit:i.viewerCanDelete,canDelete:i.viewerCanDelete,pullRequestReviewId:i.pullRequestReview&&i.pullRequestReview.databaseId,diffHunk:i.diffHunk,position:i.position,commitId:i.commit.oid,originalPosition:i.originalPosition,originalCommitId:i.originalCommit&&i.originalCommit.oid,user:i.author,createdAt:i.createdAt,htmlUrl:i.url,graphNodeId:i.id,isDraft:i.state==="PENDING",inReplyToId:i.replyTo&&i.replyTo.databaseId,reactions:jp(i.reactionGroups),isResolved:e},r=Bp(t);return t.diffHunks=r,t}function Hp(i){return{id:i.databaseId,url:i.url,body:i.body,bodyHTML:i.bodyHTML,canEdit:i.viewerCanDelete,canDelete:i.viewerCanDelete,user:i.author,createdAt:i.createdAt,htmlUrl:i.url,graphNodeId:i.id,diffHunk:""}}function jp(i){const e=gl().reduce((r,n)=>(r[n.title]=n,r),{});return i.filter(r=>r.users.totalCount>0).map(r=>({label:e[r.content].label,count:r.users.totalCount,icon:e[r.content].icon,viewerHasReacted:r.viewerHasReacted}))}function vl(i,e,t){if(!!t)return{label:`${t.owner.login}:${i}`,ref:i,sha:e,repo:{cloneUrl:t.url}}}function zr(i,e){return i?{login:i.login,url:i.url,avatarUrl:Tu(i.avatarUrl,void 0,e.remote.authProviderId),email:i.email}:{login:"",url:""}}function yu(i){if(!!i)return{title:i.title,dueOn:i.dueOn,createdAt:i.createdAt,id:i.id}}function wu(i){switch(i){case"UNKNOWN":return ea.Unknown;case"MERGEABLE":return ea.Mergeable;case"CONFLICTING":return ea.NotMergeable}}function zp(i,e){var t,r,n,s,o,h;const S=i.repository.pullRequest;return{id:S.databaseId,graphNodeId:S.id,url:S.url,number:S.number,state:S.state,body:S.body,bodyHTML:S.bodyHTML,title:S.title,createdAt:S.createdAt,updatedAt:S.updatedAt,isRemoteHeadDeleted:!S.headRef,head:vl((r=(t=S.headRef)==null?void 0:t.name)!=null?r:S.headRefName,S.headRefOid,S.headRepository),isRemoteBaseDeleted:!S.baseRef,base:vl((s=(n=S.baseRef)==null?void 0:n.name)!=null?s:S.baseRefName,S.baseRefOid,S.baseRepository),user:zr(S.author,e),merged:S.merged,mergeable:wu(S.mergeable),labels:S.labels.nodes,isDraft:S.isDraft,suggestedReviewers:Qp(S.suggestedReviewers),comments:v1((o=S.comments)==null?void 0:o.nodes,e),milestone:yu(S.milestone),assignees:(h=S.assignees)==null?void 0:h.nodes.map(T=>zr(T,e))}}function v1(i,e){if(!i)return;const t=[];for(const r of i)t.push({author:zr(r.author,e),body:r.body,databaseId:r.databaseId});return t}function bu(i,e){var t,r,n,s;return{id:i.databaseId,graphNodeId:i.id,url:i.url,number:i.number,state:i.state,body:i.body,bodyHTML:i.bodyHTML,title:i.title,createdAt:i.createdAt,updatedAt:i.updatedAt,assignees:(t=i.assignees)==null?void 0:t.nodes.map(o=>zr(o,e)),user:zr(i.author,e),labels:i.labels.nodes,repositoryName:(r=i.repository)==null?void 0:r.name,repositoryOwner:(n=i.repository)==null?void 0:n.owner.login,repositoryUrl:(s=i.repository)==null?void 0:s.url}}function C0(i,e){var t,r,n,s;const o=i;return{id:o.databaseId,graphNodeId:o.id,url:o.url,number:o.number,state:o.state,body:o.body,bodyHTML:o.bodyHTML,title:o.title,createdAt:o.createdAt,updatedAt:o.updatedAt,isRemoteHeadDeleted:!o.headRef,head:vl((r=(t=o.headRef)==null?void 0:t.name)!=null?r:o.headRefName,o.headRefOid,o.headRepository),isRemoteBaseDeleted:!o.baseRef,base:vl((s=(n=o.baseRef)==null?void 0:n.name)!=null?s:o.baseRefName,o.baseRefOid,o.baseRepository),user:zr(o.author,e),merged:o.merged,mergeable:wu(o.mergeable),labels:o.labels.nodes,isDraft:o.isDraft,suggestedReviewers:Qp(o.suggestedReviewers),milestone:yu(o.milestone)}}function Qp(i){return i?i.map(t=>({login:t.reviewer.login,avatarUrl:t.reviewer.avatarUrl,name:t.reviewer.name,url:t.reviewer.url,isAuthor:t.isAuthor,isCommenter:t.isCommenter})).sort(Wp):[]}function Wp(i,e){return i.login.localeCompare(e.login,"en",{sensitivity:"accent"})}function g1(i,e){return{event:Li.Reviewed,comments:i.comments.nodes.map(t=>Ka(t,!1)).filter(t=>!t.inReplyToId),submittedAt:i.submittedAt,body:i.body,bodyHTML:i.bodyHTML,htmlUrl:i.url,user:zr(i.author,e),authorAssociation:i.authorAssociation,state:i.state,id:i.databaseId}}function Kp(i,e){const t=[];return i.forEach(r=>{const n=f1(r.__typename);switch(n){case Li.Commented:const s=r;t.push({htmlUrl:s.url,body:s.body,bodyHTML:s.bodyHTML,user:zr(s.author,e),event:n,canEdit:s.viewerCanUpdate,canDelete:s.viewerCanDelete,id:s.databaseId,graphNodeId:s.id,createdAt:s.createdAt});return;case Li.Reviewed:const o=r;t.push({event:n,comments:[],submittedAt:o.submittedAt,body:o.body,bodyHTML:o.bodyHTML,htmlUrl:o.url,user:zr(o.author,e),authorAssociation:o.authorAssociation,state:o.state,id:o.databaseId});return;case Li.Committed:const h=r;t.push({id:h.id,event:n,sha:h.commit.oid,author:h.commit.author.user?zr(h.commit.author.user,e):{login:h.commit.committer.name},htmlUrl:h.url,message:h.commit.message,authoredDate:new Date(h.commit.authoredDate)});return;case Li.Merged:const S=r;t.push({id:S.id,event:n,user:zr(S.actor,e),createdAt:S.createdAt,mergeRef:S.mergeRef.name,sha:S.commit.oid,commitUrl:S.commit.commitUrl,url:S.url,graphNodeId:S.id});return;case Li.Assigned:const T=r;t.push({id:T.databaseId,event:n,user:T.user,actor:T.actor});return;case Li.HeadRefDeleted:const P=r;t.push({id:P.id,event:n,actor:P.actor,createdAt:P.createdAt,headRef:P.headRefName});return;default:break}}),t}function y1(i,e){return{login:i.user.login,name:i.user.name,avatarUrl:i.user.avatarUrl?Tu(i.user.avatarUrl,void 0,e.remote.authProviderId):void 0,url:i.user.url,bio:i.user.bio,company:i.user.company,location:i.user.location,commitContributions:w1(i.user.contributionsCollection)}}function w1(i){const e=[];return i.commitContributionsByRepository.forEach(t=>{t.contributions.nodes.forEach(r=>{e.push({createdAt:new Date(r.occurredAt),repoNameWithOwner:t.repository.nameWithOwner})})}),e}function gl(){return[{title:"THUMBS_UP",label:"\u{1F44D}",icon:un.icons.reactions.THUMBS_UP},{title:"THUMBS_DOWN",label:"\u{1F44E}",icon:un.icons.reactions.THUMBS_DOWN},{title:"LAUGH",label:"\u{1F604}",icon:un.icons.reactions.LAUGH},{title:"HOORAY",label:"\u{1F389}",icon:un.icons.reactions.HOORAY},{title:"CONFUSED",label:"\u{1F615}",icon:un.icons.reactions.CONFUSED},{title:"HEART",label:"\u2764\uFE0F",icon:un.icons.reactions.HEART},{title:"ROCKET",label:"\u{1F680}",icon:un.icons.reactions.ROCKET},{title:"EYES",label:"\u{1F440}",icon:un.icons.reactions.EYES}]}function b1(i){const e=[];return i.forEach(t=>{var r,n;Mm(t)&&e.push({login:t.author.login,name:t.author.name||""}),fu(t)&&e.push({login:t.user.login,name:(r=t.user.name)!=null?r:t.user.login}),Fm(t)&&e.push({login:t.user.login,name:(n=t.user.name)!=null?n:t.user.login})}),e}function _1(i){return i&&i.repository.viewerPermission&&Object.values(_r).includes(i.repository.viewerPermission)?i.repository.viewerPermission:_r.Unknown}function _u(i,e){for(const t of i.repositories)if(e.path.toLowerCase()===t.rootUri.path.toLowerCase()||e.path.toLowerCase().startsWith(t.rootUri.path.toLowerCase())&&e.path.substring(t.rootUri.path.length).startsWith("/"))return t}function Yp(i,e,t){const r=e.filter(fu).filter(o=>o.state!=="PENDING");let n=[];const s=new Map;s.set(t.login,!0);for(let o=r.length-1;o>=0;o--){const h=r[o].user;s.get(h.login)||(s.set(h.login,!0),n.push({reviewer:h,state:r[o].state}))}return i.forEach(o=>{if(!s.get(o.login))n.push({reviewer:o,state:"REQUESTED"});else{const h=n.find(S=>S.reviewer.login===o.login);h.state="REQUESTED"}}),n=n.sort((o,h)=>o.state==="REQUESTED"&&h.state!=="REQUESTED"?1:h.state==="REQUESTED"&&o.state!=="REQUESTED"||o.reviewer.login.toLowerCase()<h.reviewer.login.toLowerCase()?-1:1),n}function E1(i,e,t){return`is:pull-request ${t.replace(/\$\{user\}/g,e)} type:pr repo:${i}`}function Eu(){return d.env.remoteName==="codespaces"&&d.env.uiKind===d.UIKind.Web}function Su(){const i=d.workspace.getConfiguration("github-enterprise").get("uri","");if(i)return d.Uri.parse(i,!0)}function yl(){return!!Su()}function S1(i,e=200){return i?`https://www.gravatar.com/avatar/${i}?s=${e}&d=retro`:void 0}function Tu(i,e,t){var r;return t===ni.github?i:e?S1(Pp.createHash("md5").update((r=e==null?void 0:e.trim())==null?void 0:r.toLowerCase()).digest("hex")):void 0}var T1=Object.defineProperty,Ln=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?T1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const Xp="Try again?",k1="Cancel",Jp="Sign in",R1="Don't show again",Zp="prompt for sign in",ec="login",tc=["read:user","user:email","repo"];var ni;(function(i){i.github="github",i["github-enterprise"]="github-enterprise"})(ni||(ni={}));class C1{constructor(e){this._telemetry=e,Ln(this,"_githubAPI"),Ln(this,"_sessionId"),Ln(this,"_githubEnterpriseAPI"),Ln(this,"_enterpriseSessionId"),Ln(this,"_disposables"),Ln(this,"_onDidInitialize",new d.EventEmitter),Ln(this,"onDidInitialize",this._onDidInitialize.event),Ln(this,"_onDidGetSession",new d.EventEmitter),Ln(this,"onDidGetSession",this._onDidGetSession.event),this._disposables=[],this._disposables.push(d.authentication.onDidChangeSessions(async()=>{const t=[];this.isAuthenticated(ni.github)||t.push(this.initialize(ni.github)),!this.isAuthenticated(ni["github-enterprise"])&&yl()&&t.push(this.initialize(ni["github-enterprise"])),await Promise.all(t),this.isAnyAuthenticated()&&this._onDidGetSession.fire()}))}async initialize(e,t){if(e===ni["github-enterprise"]&&!yl()){D.debug("GitHub Enterprise provider selected without URI.","Authentication");return}t={...t,createIfNone:!1};let r;try{r=await d.authentication.getSession(e,tc,t)}catch(n){if(!(t.forceNewSession&&n.message==="User did not consent to login."))throw n}if(r){e===ni.github?this._sessionId=r.id:this._enterpriseSessionId=r.id;const n=await this.createHub(r.accessToken,e);e===ni.github?this._githubAPI=n:this._githubEnterpriseAPI=n,await this.setCurrentUser(n),this._onDidInitialize.fire()}else D.debug(`No GitHub${ku(e)} token found.`,"Authentication")}async doCreate(e){await this.initialize(ni.github,e),yl()&&await this.initialize(ni["github-enterprise"],e)}async create(e={}){return this.doCreate(e)}async recreate(e){return this.doCreate({forceNewSession:e?{detail:e}:!0})}async reset(){return this._githubAPI=void 0,this._githubEnterpriseAPI=void 0,this.create()}isAnyAuthenticated(){return this.isAuthenticated(ni.github)||this.isAuthenticated(ni["github-enterprise"])}isAuthenticated(e){return e===ni.github?!!this._githubAPI:!!this._githubEnterpriseAPI}getHub(e){return e===ni.github?this._githubAPI:this._githubEnterpriseAPI}async getHubOrLogin(e){var t,r;return e===ni.github?(t=this._githubAPI)!=null?t:await this.login(e):(r=this._githubEnterpriseAPI)!=null?r:await this.login(e)}async showSignInNotification(e){if(Cp(Zp,ec)===!1)return;if(await d.window.showInformationMessage(`In order to use the Pull Requests functionality, you must sign in to GitHub${ku(e)}`,Jp,R1)===Jp)return await this.login(e);Np(Zp,ec,!1),this._telemetry.sendTelemetryEvent("auth.cancel")}async login(e){this._telemetry.sendTelemetryEvent("auth.start");const t=`Error signing in to GitHub${ku(e)}`;let r=!0,n;for(;r;){try{const s=await this.getSessionOrLogin(e);n=await this.createHub(s,e)}catch(s){D.appendLine(`${t}: ${s}`),s instanceof Error&&s.stack&&D.appendLine(s.stack)}n?r=!1:r=await d.window.showErrorMessage(t,Xp,k1)===Xp}return n?(this._githubAPI=n,await this.setCurrentUser(n),this._telemetry.sendTelemetryEvent("auth.success")):this._telemetry.sendTelemetryEvent("auth.fail"),n}async showSamlMessageAndAuth(){return this.recreate("GitHub Pull Requests and Issues requires that you provide SAML access to your organization when you sign in.")}isCurrentUser(e){var t,r,n,s;return((r=(t=this._githubAPI)==null?void 0:t.currentUser)==null?void 0:r.login)===e||((s=(n=this._githubEnterpriseAPI)==null?void 0:n.currentUser)==null?void 0:s.login)==e}getCurrentUser(e){const t=this.getHub(e);return(t==null?void 0:t.octokit)&&(t==null?void 0:t.currentUser)}async setCurrentUser(e){const t=await e.octokit.users.getAuthenticated({});e.currentUser=t.data}async getSessionOrLogin(e){const t=await d.authentication.getSession(e,tc,{createIfNone:!0});return e===ni.github?this._sessionId=t.id:this._enterpriseSessionId=t.id,t.accessToken}async createHub(e,t){let r="https://api.github.com",n;t===ni["github-enterprise"]&&(n=Su()),n&&(r=`${n.scheme}://${n.authority}/api/v3`);let s;d.env.uiKind===d.UIKind.Web&&(s=(T,P)=>{if(P.headers!==void 0){const{"user-agent":V,...j}=P.headers;V&&(P.headers=j)}return vs()(T,P)});const o=new Td({request:{agent:po,fetch:s},userAgent:"GitHub VSCode Pull Requests",previews:["shadow-cat-preview"],auth:`${e||""}`,baseUrl:r});n&&(r=`${n.scheme}://${n.authority}/api`);const h=new Pn({link:N1(r,e||""),cache:new br,defaultOptions:{query:{fetchPolicy:"no-cache"}}}),S={octokit:o,graphql:h};return await this.setCurrentUser(S),S}dispose(){this._disposables.forEach(e=>e.dispose())}}const N1=(i,e)=>mr((t,{headers:r})=>({headers:{...r,authorization:e?`Bearer ${e}`:"",Accept:"application/vnd.github.shadow-cat-preview+json, application/vnd.github.antiope-preview+json"}})).concat(Rp({uri:`${i}/graphql`,fetch:vs()}));function ku(i){return i===ni.github?"":" Enterprise"}class wl{constructor(e,t,r){this.remoteName=e,this.url=t,this.gitProtocol=r}get host(){return this.gitProtocol.host}get owner(){return this.gitProtocol.owner}get repositoryName(){return this.gitProtocol.repositoryName}get normalizedHost(){const e=this.gitProtocol.normalizeUri();return`${e.scheme}://${e.authority}`}get authProviderId(){var e;return this.host===((e=Su())==null?void 0:e.authority)?ni["github-enterprise"]:ni.github}equals(e){return!(this.remoteName!==e.remoteName||this.host!==e.host||this.owner!==e.owner||this.repositoryName!==e.repositoryName)}}function ic(i,e,t){if(!e)return null;const r=new Or(e);return t&&r.update({type:t.type}),r.host?new wl(i,e,r):null}function Ya(i){const e=[];for(const t of i.state.remotes){const r=[];t.fetchUrl&&r.push(t.fetchUrl),t.pushUrl&&t.pushUrl!==t.fetchUrl&&r.push(t.pushUrl),r.forEach(n=>{const s=ic(t.name,n);s&&e.push(s)})}return e}const _a="GitHub.vscode-pull-request-github",Ru="git",rc="ghpr",nc="initialize",ac="statechange",Xa="github:focusedReview",Cu="github.pullRequest.pullNotification.show",Qs="github.pullRequest.repos";function P1(i){i.globalState.setKeysForSync([Cu])}var D1=wt(9593),A1=wt.n(D1);function sc(){return{baseUrl:null,breaks:!1,extensions:null,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}}let Ja=sc();function I1(i){Ja=i}const O1=/[&<>"']/,x1=/[&<>"']/g,M1=/[<>"']|&(?!#?\w+;)/,F1=/[<>"']|&(?!#?\w+;)/g,L1={"&":"&","<":"<",">":">",'"':""","'":"'"},oc=i=>L1[i];function Ki(i,e){if(e){if(O1.test(i))return i.replace(x1,oc)}else if(M1.test(i))return i.replace(F1,oc);return i}const U1=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function lc(i){return i.replace(U1,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const V1=/(^|[^\[])\^/g;function ci(i,e){i=i.source||i,e=e||"";const t={replace:(r,n)=>(n=n.source||n,n=n.replace(V1,"$1"),i=i.replace(r,n),t),getRegex:()=>new RegExp(i,e)};return t}const q1=/[^\w:]/g,$1=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function dc(i,e,t){if(i){let r;try{r=decodeURIComponent(lc(t)).replace(q1,"").toLowerCase()}catch(n){return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}e&&!$1.test(t)&&(t=j1(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch(r){return null}return t}const bl={},G1=/^[^:]+:\/*[^/]*$/,B1=/^([^:]+:)[\s\S]*$/,H1=/^([^:]+:\/*[^/]*)[\s\S]*$/;function j1(i,e){bl[" "+i]||(G1.test(i)?bl[" "+i]=i+"/":bl[" "+i]=El(i,"/",!0)),i=bl[" "+i];const t=i.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:i.replace(B1,"$1")+e:e.charAt(0)==="/"?t?e:i.replace(H1,"$1")+e:i+e}const _l={exec:function(){}};function Qr(i){let e=1,t,r;for(;e<arguments.length;e++){t=arguments[e];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i}function uc(i,e){const t=i.replace(/\|/g,(s,o,h)=>{let S=!1,T=o;for(;--T>=0&&h[T]==="\\";)S=!S;return S?"|":" |"}),r=t.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r[r.length-1].trim()||r.pop(),r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function El(i,e,t){const r=i.length;if(r===0)return"";let n=0;for(;n<r;){const s=i.charAt(r-n-1);if(s===e&&!t)n++;else if(s!==e&&t)n++;else break}return i.substr(0,r-n)}function z1(i,e){if(i.indexOf(e[1])===-1)return-1;const t=i.length;let r=0,n=0;for(;n<t;n++)if(i[n]==="\\")n++;else if(i[n]===e[0])r++;else if(i[n]===e[1]&&(r--,r<0))return n;return-1}function pc(i){i&&i.sanitize&&!i.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function cc(i,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=i),e>>=1,i+=i;return t+i}function mc(i,e,t,r){const n=e.href,s=e.title?Ki(e.title):null,o=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){r.state.inLink=!0;const h={type:"link",raw:t,href:n,title:s,text:o,tokens:r.inlineTokens(o,[])};return r.state.inLink=!1,h}else return{type:"image",raw:t,href:n,title:s,text:Ki(o)}}function Q1(i,e){const t=i.match(/^(\s+)(?:```)/);if(t===null)return e;const r=t[1];return e.split(`
|
||
`).map(n=>{const s=n.match(/^\s+/);if(s===null)return n;const[o]=s;return o.length>=r.length?n.slice(r.length):n}).join(`
|
||
`)}class Nu{constructor(e){this.options=e||Ja}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:El(r,`
|
||
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=Q1(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const s=El(r,"#");(this.options.pedantic||!s||/ $/.test(s))&&(r=s.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const r=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(r,[]),text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,s,o,h,S,T,P,V,j,ue,Te,Se=t[1].trim();const qe=Se.length>1,xe={type:"list",raw:"",ordered:qe,start:qe?+Se.slice(0,-1):"",loose:!1,items:[]};Se=qe?`\\d{1,9}\\${Se.slice(-1)}`:`\\${Se}`,this.options.pedantic&&(Se=qe?Se:"[*+-]");const je=new RegExp(`^( {0,3}${Se})((?: [^\\n]*)?(?:\\n|$))`);for(;e&&(Te=!1,!(!(t=je.exec(e))||this.rules.block.hr.test(e)));){if(r=t[0],e=e.substring(r.length),P=t[2].split(`
|
||
`,1)[0],V=e.split(`
|
||
`,1)[0],this.options.pedantic?(o=2,ue=P.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,ue=P.slice(o),o+=t[1].length),S=!1,!P&&/^ *$/.test(V)&&(r+=V+`
|
||
`,e=e.substring(V.length+1),Te=!0),!Te){const ze=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(;e&&(j=e.split(`
|
||
`,1)[0],P=j,this.options.pedantic&&(P=P.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!ze.test(P));){if(P.search(/[^ ]/)>=o||!P.trim())ue+=`
|
||
`+P.slice(o);else if(!S)ue+=`
|
||
`+P;else break;!S&&!P.trim()&&(S=!0),r+=j+`
|
||
`,e=e.substring(j.length+1)}}xe.loose||(T?xe.loose=!0:/\n *\n *$/.test(r)&&(T=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(ue),n&&(s=n[0]!=="[ ] ",ue=ue.replace(/^\[[ xX]\] +/,""))),xe.items.push({type:"list_item",raw:r,task:!!n,checked:s,loose:!1,text:ue}),xe.raw+=r}xe.items[xe.items.length-1].raw=r.trimRight(),xe.items[xe.items.length-1].text=ue.trimRight(),xe.raw=xe.raw.trimRight();const Ke=xe.items.length;for(h=0;h<Ke;h++){this.lexer.state.top=!1,xe.items[h].tokens=this.lexer.blockTokens(xe.items[h].text,[]);const ze=xe.items[h].tokens.filter(Mt=>Mt.type==="space"),dt=ze.every(Mt=>{const Ht=Mt.raw.split("");let Xt=0;for(const Kt of Ht)if(Kt===`
|
||
`&&(Xt+=1),Xt>1)return!0;return!1});!xe.loose&&ze.length&&dt&&(xe.loose=!0,xe.items[h].loose=!0)}return xe}}html(e){const t=this.rules.block.html.exec(e);if(t){const r={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};return this.options.sanitize&&(r.type="paragraph",r.text=this.options.sanitizer?this.options.sanitizer(t[0]):Ki(t[0]),r.tokens=[],this.lexer.inline(r.text,r.tokens)),r}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));const r=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:r,raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const r={type:"table",header:uc(t[1]).map(n=>({text:n})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n[ \t]*$/,"").split(`
|
||
`):[]};if(r.header.length===r.align.length){r.raw=t[0];let n=r.align.length,s,o,h,S;for(s=0;s<n;s++)/^ *-+: *$/.test(r.align[s])?r.align[s]="right":/^ *:-+: *$/.test(r.align[s])?r.align[s]="center":/^ *:-+ *$/.test(r.align[s])?r.align[s]="left":r.align[s]=null;for(n=r.rows.length,s=0;s<n;s++)r.rows[s]=uc(r.rows[s],r.header.length).map(T=>({text:T}));for(n=r.header.length,o=0;o<n;o++)r.header[o].tokens=[],this.lexer.inlineTokens(r.header[o].text,r.header[o].tokens);for(n=r.rows.length,o=0;o<n;o++)for(S=r.rows[o],h=0;h<S.length;h++)S[h].tokens=[],this.lexer.inlineTokens(S[h].text,S[h].tokens);return r}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const r={type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r={type:"paragraph",raw:t[0],text:t[1].charAt(t[1].length-1)===`
|
||
`?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}text(e){const t=this.rules.block.text.exec(e);if(t){const r={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Ki(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Ki(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const o=El(r.slice(0,-1),"\\");if((r.length-o.length)%2==0)return}else{const o=z1(t[2],"()");if(o>-1){const S=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,S).trim(),t[3]=""}}let n=t[2],s="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);o&&(n=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(r)?n=n.slice(1):n=n.slice(1,-1)),mc(t,{href:n&&n.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(/\s+/g," ");if(n=t[n.toLowerCase()],!n||!n.href){const s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return mc(r,n,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n||n[3]&&r.match(/[\p{L}\p{N}]/u))return;const s=n[1]||n[2]||"";if(!s||s&&(r===""||this.rules.inline.punctuation.exec(r))){const o=n[0].length-1;let h,S,T=o,P=0;const V=n[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(V.lastIndex=0,t=t.slice(-1*e.length+o);(n=V.exec(t))!=null;){if(h=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!h)continue;if(S=h.length,n[3]||n[4]){T+=S;continue}else if((n[5]||n[6])&&o%3&&!((o+S)%3)){P+=S;continue}if(T-=S,T>0)continue;if(S=Math.min(S,S+T+P),Math.min(o,S)%2){const ue=e.slice(1,o+n.index+S);return{type:"em",raw:e.slice(0,o+n.index+S+1),text:ue,tokens:this.lexer.inlineTokens(ue,[])}}const j=e.slice(2,o+n.index+S-1);return{type:"strong",raw:e.slice(0,o+n.index+S+1),text:j,tokens:this.lexer.inlineTokens(j,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/\n/g," ");const n=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return n&&s&&(r=r.substring(1,r.length-1)),r=Ki(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let n,s;return r[2]==="@"?(n=Ki(this.options.mangle?t(r[1]):r[1]),s="mailto:"+n):(n=Ki(r[1]),s=n),{type:"link",raw:r[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let n,s;if(r[2]==="@")n=Ki(this.options.mangle?t(r[0]):r[0]),s="mailto:"+n;else{let o;do o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(o!==r[0]);n=Ki(r[0]),r[1]==="www."?s="http://"+n:s=n}return{type:"link",raw:r[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let n;return this.lexer.state.inRawBlock?n=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Ki(r[0]):r[0]:n=Ki(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}}}}const gt={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)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:_l,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};gt._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,gt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,gt.def=ci(gt.def).replace("label",gt._label).replace("title",gt._title).getRegex(),gt.bullet=/(?:[*+-]|\d{1,9}[.)])/,gt.listItemStart=ci(/^( *)(bull) */).replace("bull",gt.bullet).getRegex(),gt.list=ci(gt.list).replace(/bull/g,gt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+gt.def.source+")").getRegex(),gt._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",gt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,gt.html=ci(gt.html,"i").replace("comment",gt._comment).replace("tag",gt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),gt.paragraph=ci(gt._paragraph).replace("hr",gt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gt._tag).getRegex(),gt.blockquote=ci(gt.blockquote).replace("paragraph",gt.paragraph).getRegex(),gt.normal=Qr({},gt),gt.gfm=Qr({},gt.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),gt.gfm.table=ci(gt.gfm.table).replace("hr",gt.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gt._tag).getRegex(),gt.gfm.paragraph=ci(gt._paragraph).replace("hr",gt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",gt.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gt._tag).getRegex(),gt.pedantic=Qr({},gt.normal,{html:ci(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gt._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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_l,paragraph:ci(gt.normal._paragraph).replace("hr",gt.hr).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",gt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const lt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:_l,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:_l,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};lt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",lt.punctuation=ci(lt.punctuation).replace(/punctuation/g,lt._punctuation).getRegex(),lt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,lt.escapedEmSt=/\\\*|\\_/g,lt._comment=ci(gt._comment).replace("(?:-->|$)","-->").getRegex(),lt.emStrong.lDelim=ci(lt.emStrong.lDelim).replace(/punct/g,lt._punctuation).getRegex(),lt.emStrong.rDelimAst=ci(lt.emStrong.rDelimAst,"g").replace(/punct/g,lt._punctuation).getRegex(),lt.emStrong.rDelimUnd=ci(lt.emStrong.rDelimUnd,"g").replace(/punct/g,lt._punctuation).getRegex(),lt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,lt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,lt._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])?)+(?![-_])/,lt.autolink=ci(lt.autolink).replace("scheme",lt._scheme).replace("email",lt._email).getRegex(),lt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,lt.tag=ci(lt.tag).replace("comment",lt._comment).replace("attribute",lt._attribute).getRegex(),lt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,lt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,lt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,lt.link=ci(lt.link).replace("label",lt._label).replace("href",lt._href).replace("title",lt._title).getRegex(),lt.reflink=ci(lt.reflink).replace("label",lt._label).replace("ref",gt._label).getRegex(),lt.nolink=ci(lt.nolink).replace("ref",gt._label).getRegex(),lt.reflinkSearch=ci(lt.reflinkSearch,"g").replace("reflink",lt.reflink).replace("nolink",lt.nolink).getRegex(),lt.normal=Qr({},lt),lt.pedantic=Qr({},lt.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:ci(/^!?\[(label)\]\((.*?)\)/).replace("label",lt._label).getRegex(),reflink:ci(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",lt._label).getRegex()}),lt.gfm=Qr({},lt.normal,{escape:ci(lt.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)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),lt.gfm.url=ci(lt.gfm.url,"i").replace("email",lt.gfm._extended_email).getRegex(),lt.breaks=Qr({},lt.gfm,{br:ci(lt.br).replace("{2,}","*").getRegex(),text:ci(lt.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function W1(i){return i.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function hc(i){let e="",t,r;const n=i.length;for(t=0;t<n;t++)r=i.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),e+="&#"+r+";";return e}class Un{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ja,this.options.tokenizer=this.options.tokenizer||new Nu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:gt.normal,inline:lt.normal};this.options.pedantic?(t.block=gt.pedantic,t.inline=lt.pedantic):this.options.gfm&&(t.block=gt.gfm,this.options.breaks?t.inline=lt.breaks:t.inline=lt.gfm),this.tokenizer.rules=t}static get rules(){return{block:gt,inline:lt}}static lex(e,t){return new Un(t).lex(e)}static lexInline(e,t){return new Un(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
|
||
`).replace(/\t/g," "),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic&&(e=e.replace(/^ +$/gm,""));let r,n,s,o;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(h=>(r=h.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=`
|
||
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
|
||
`+r.raw,n.text+=`
|
||
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
|
||
`+r.raw,n.text+=`
|
||
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let h=Infinity;const S=e.slice(1);let T;this.options.extensions.startBlock.forEach(function(P){T=P.call({lexer:this},S),typeof T=="number"&&T>=0&&(h=Math.min(h,T))}),h<Infinity&&h>=0&&(s=e.substring(0,h+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){n=t[t.length-1],o&&n.type==="paragraph"?(n.raw+=`
|
||
`+r.raw,n.text+=`
|
||
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=s.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&n.type==="text"?(n.raw+=`
|
||
`+r.raw,n.text+=`
|
||
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(e){const h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let r,n,s,o=e,h,S,T;if(this.tokens.links){const P=Object.keys(this.tokens.links);if(P.length>0)for(;(h=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)P.includes(h[0].slice(h[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,h.index)+"["+cc("a",h[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(h=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,h.index)+"["+cc("a",h[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(h=this.tokenizer.rules.inline.escapedEmSt.exec(o))!=null;)o=o.slice(0,h.index)+"++"+o.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(S||(T=""),S=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(P=>(r=P.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,o,T)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e,hc)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,hc))){e=e.substring(r.raw.length),t.push(r);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let P=Infinity;const V=e.slice(1);let j;this.options.extensions.startInline.forEach(function(ue){j=ue.call({lexer:this},V),typeof j=="number"&&j>=0&&(P=Math.min(P,j))}),P<Infinity&&P>=0&&(s=e.substring(0,P+1))}if(r=this.tokenizer.inlineText(s,W1)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(T=r.raw.slice(-1)),S=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){const P="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(P);break}else throw new Error(P)}}return t}}class Sl{constructor(e){this.options=e||Ja}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(e,n);s!=null&&s!==e&&(r=!0,e=s)}return e=e.replace(/\n$/,"")+`
|
||
`,n?'<pre><code class="'+this.options.langPrefix+Ki(n,!0)+'">'+(r?e:Ki(e,!0))+`</code></pre>
|
||
`:"<pre><code>"+(r?e:Ki(e,!0))+`</code></pre>
|
||
`}blockquote(e){return`<blockquote>
|
||
`+e+`</blockquote>
|
||
`}html(e){return e}heading(e,t,r,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(r)+'">'+e+"</h"+t+`>
|
||
`:"<h"+t+">"+e+"</h"+t+`>
|
||
`}hr(){return this.options.xhtml?`<hr/>
|
||
`:`<hr>
|
||
`}list(e,t,r){const n=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+n+s+`>
|
||
`+e+"</"+n+`>
|
||
`}listitem(e){return"<li>"+e+`</li>
|
||
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+`</p>
|
||
`}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),`<table>
|
||
<thead>
|
||
`+e+`</thead>
|
||
`+t+`</table>
|
||
`}tablerow(e){return`<tr>
|
||
`+e+`</tr>
|
||
`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"</"+r+`>
|
||
`}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,r){if(e=dc(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n='<a href="'+Ki(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>",n}image(e,t,r){if(e=dc(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n='<img src="'+e+'" alt="'+r+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">",n}text(e){return e}}class fc{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class vc{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do n++,r=e+"-"+n;while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}class Vn{constructor(e){this.options=e||Ja,this.options.renderer=this.options.renderer||new Sl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new fc,this.slugger=new vc}static parse(e,t){return new Vn(t).parse(e)}static parseInline(e,t){return new Vn(t).parseInline(e)}parse(e,t=!0){let r="",n,s,o,h,S,T,P,V,j,ue,Te,Se,qe,xe,je,Ke,ze,dt,Mt;const Ht=e.length;for(n=0;n<Ht;n++){if(ue=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ue.type]&&(Mt=this.options.extensions.renderers[ue.type].call({parser:this},ue),Mt!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(ue.type))){r+=Mt||"";continue}switch(ue.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{r+=this.renderer.heading(this.parseInline(ue.tokens),ue.depth,lc(this.parseInline(ue.tokens,this.textRenderer)),this.slugger);continue}case"code":{r+=this.renderer.code(ue.text,ue.lang,ue.escaped);continue}case"table":{for(V="",P="",h=ue.header.length,s=0;s<h;s++)P+=this.renderer.tablecell(this.parseInline(ue.header[s].tokens),{header:!0,align:ue.align[s]});for(V+=this.renderer.tablerow(P),j="",h=ue.rows.length,s=0;s<h;s++){for(T=ue.rows[s],P="",S=T.length,o=0;o<S;o++)P+=this.renderer.tablecell(this.parseInline(T[o].tokens),{header:!1,align:ue.align[o]});j+=this.renderer.tablerow(P)}r+=this.renderer.table(V,j);continue}case"blockquote":{j=this.parse(ue.tokens),r+=this.renderer.blockquote(j);continue}case"list":{for(Te=ue.ordered,Se=ue.start,qe=ue.loose,h=ue.items.length,j="",s=0;s<h;s++)je=ue.items[s],Ke=je.checked,ze=je.task,xe="",je.task&&(dt=this.renderer.checkbox(Ke),qe?je.tokens.length>0&&je.tokens[0].type==="paragraph"?(je.tokens[0].text=dt+" "+je.tokens[0].text,je.tokens[0].tokens&&je.tokens[0].tokens.length>0&&je.tokens[0].tokens[0].type==="text"&&(je.tokens[0].tokens[0].text=dt+" "+je.tokens[0].tokens[0].text)):je.tokens.unshift({type:"text",text:dt}):xe+=dt),xe+=this.parse(je.tokens,qe),j+=this.renderer.listitem(xe,ze,Ke);r+=this.renderer.list(j,Te,Se);continue}case"html":{r+=this.renderer.html(ue.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(ue.tokens));continue}case"text":{for(j=ue.tokens?this.parseInline(ue.tokens):ue.text;n+1<Ht&&e[n+1].type==="text";)ue=e[++n],j+=`
|
||
`+(ue.tokens?this.parseInline(ue.tokens):ue.text);r+=t?this.renderer.paragraph(j):j;continue}default:{const Xt='Token with "'+ue.type+'" type was not found.';if(this.options.silent){console.error(Xt);return}else throw new Error(Xt)}}}return r}parseInline(e,t){t=t||this.renderer;let r="",n,s,o;const h=e.length;for(n=0;n<h;n++){if(s=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(o=this.options.extensions.renderers[s.type].call({parser:this},s),o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type))){r+=o||"";continue}switch(s.type){case"escape":{r+=t.text(s.text);break}case"html":{r+=t.html(s.text);break}case"link":{r+=t.link(s.href,s.title,this.parseInline(s.tokens,t));break}case"image":{r+=t.image(s.href,s.title,s.text);break}case"strong":{r+=t.strong(this.parseInline(s.tokens,t));break}case"em":{r+=t.em(this.parseInline(s.tokens,t));break}case"codespan":{r+=t.codespan(s.text);break}case"br":{r+=t.br();break}case"del":{r+=t.del(this.parseInline(s.tokens,t));break}case"text":{r+=t.text(s.text);break}default:{const S='Token with "'+s.type+'" type was not found.';if(this.options.silent){console.error(S);return}else throw new Error(S)}}}return r}}function Rt(i,e,t){if(typeof i=="undefined"||i===null)throw new Error("marked(): input parameter is undefined or null");if(typeof i!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected");if(typeof e=="function"&&(t=e,e=null),e=Qr({},Rt.defaults,e||{}),pc(e),t){const r=e.highlight;let n;try{n=Un.lex(i,e)}catch(h){return t(h)}const s=function(h){let S;if(!h)try{e.walkTokens&&Rt.walkTokens(n,e.walkTokens),S=Vn.parse(n,e)}catch(T){h=T}return e.highlight=r,h?t(h):t(null,S)};if(!r||r.length<3||(delete e.highlight,!n.length))return s();let o=0;Rt.walkTokens(n,function(h){h.type==="code"&&(o++,setTimeout(()=>{r(h.text,h.lang,function(S,T){if(S)return s(S);T!=null&&T!==h.text&&(h.text=T,h.escaped=!0),o--,o===0&&s()})},0))}),o===0&&s();return}try{const r=Un.lex(i,e);return e.walkTokens&&Rt.walkTokens(r,e.walkTokens),Vn.parse(r,e)}catch(r){if(r.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+Ki(r.message+"",!0)+"</pre>";throw r}}Rt.options=Rt.setOptions=function(i){return Qr(Rt.defaults,i),I1(Rt.defaults),Rt},Rt.getDefaults=sc,Rt.defaults=Ja,Rt.use=function(...i){const e=Qr({},...i),t=Rt.defaults.extensions||{renderers:{},childTokens:{}};let r;i.forEach(n=>{if(n.extensions&&(r=!0,n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const o=t.renderers?t.renderers[s.name]:null;o?t.renderers[s.name]=function(...h){let S=s.renderer.apply(this,h);return S===!1&&(S=o.apply(this,h)),S}:t.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[s.level]?t[s.level].unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}s.childTokens&&(t.childTokens[s.name]=s.childTokens)})),n.renderer){const s=Rt.defaults.renderer||new Sl;for(const o in n.renderer){const h=s[o];s[o]=(...S)=>{let T=n.renderer[o].apply(s,S);return T===!1&&(T=h.apply(s,S)),T}}e.renderer=s}if(n.tokenizer){const s=Rt.defaults.tokenizer||new Nu;for(const o in n.tokenizer){const h=s[o];s[o]=(...S)=>{let T=n.tokenizer[o].apply(s,S);return T===!1&&(T=h.apply(s,S)),T}}e.tokenizer=s}if(n.walkTokens){const s=Rt.defaults.walkTokens;e.walkTokens=function(o){n.walkTokens.call(this,o),s&&s.call(this,o)}}r&&(e.extensions=t),Rt.setOptions(e)})},Rt.walkTokens=function(i,e){for(const t of i)switch(e.call(Rt,t),t.type){case"table":{for(const r of t.header)Rt.walkTokens(r.tokens,e);for(const r of t.rows)for(const n of r)Rt.walkTokens(n.tokens,e);break}case"list":{Rt.walkTokens(t.items,e);break}default:Rt.defaults.extensions&&Rt.defaults.extensions.childTokens&&Rt.defaults.extensions.childTokens[t.type]?Rt.defaults.extensions.childTokens[t.type].forEach(function(r){Rt.walkTokens(t[r],e)}):t.tokens&&Rt.walkTokens(t.tokens,e)}},Rt.parseInline=function(i,e){if(typeof i=="undefined"||i===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof i!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected");e=Qr({},Rt.defaults,e||{}),pc(e);try{const t=Un.lexInline(i,e);return e.walkTokens&&Rt.walkTokens(t,e.walkTokens),Vn.parseInline(t,e)}catch(t){if(t.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+Ki(t.message+"",!0)+"</pre>";throw t}},Rt.Parser=Vn,Rt.parser=Vn.parse,Rt.Renderer=Sl,Rt.TextRenderer=fc,Rt.Lexer=Un,Rt.lexer=Un.lex,Rt.Tokenizer=Nu,Rt.Slugger=vc,Rt.parse=Rt;const N0=Rt.options,P0=Rt.setOptions,D0=Rt.use,A0=Rt.walkTokens,I0=Rt.parseInline,Pu=Rt,O0=Vn.parse,x0=Un.lex,gc=/http(s)?\:\/\/github\.com\/([^\/]+)\/([^\/]+)\/blob\/([0-9a-fA-F]{40})\/([^#]+)#L(\d+)(-L(\d+))?/;function yc(i){return i.match(gc)}function K1(i){return!!yc(i.body)}async function wc(i,e,t=!0){const r=i[2],n=i[3],s=i[5],o=Number(i[6])-1,h=i[8]?Number(i[8])-1:o;let S;for(const P of e.folderManagers){const V=P.getGitHubRemotes();for(const j of V)if(r.toLowerCase()===j.owner.toLowerCase()&&n.toLowerCase()===j.repositoryName.toLowerCase()){S=P;break}if(S)break}if(!S)return;const T=d.Uri.joinPath(S.repository.rootUri,s);try{await d.workspace.fs.stat(T)}catch(P){return}return{file:T,start:o,end:h}}async function Y1(i,e){const t=yc(i.body);if(!t){d.window.showInformationMessage("Issue has no link.");return}const r=await wc(t,e,!1);if(!r)return d.env.openExternal(d.Uri.parse(t[0]));const n=await d.workspace.openTextDocument(r==null?void 0:r.file),s=n.lineAt(r.end<n.lineCount?r.end:n.lineCount-1),o=new d.Range(r.start,0,r.end,s.text.length);return d.window.showTextDocument(r.file,{selection:o})}var X1=Object.defineProperty,bc=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?X1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const M0=/(([A-Za-z0-9_.\-]+)\/([A-Za-z0-9_.\-]+))?(#|GH-)([1-9][0-9]*)($|\b)/,Ws=/(https?:\/\/github\.com\/(([^\s]+)\/([^\s]+))\/([^\s]+\/)?(issues|pull)\/([0-9]+)(#issuecomment\-([0-9]+))?)|(([A-Za-z0-9_.\-]+)\/([A-Za-z0-9_.\-]+))?(#|GH-)([1-9][0-9]*)($|\b)/,Du=/\@([^\s]+)/,J1=150,Vi="githubIssues",Za="queries",Z1="default",_c="issueBranchTitle",Ec="useBranchForIssues",eh="workingIssueFormatScm";function Au(i){if(!i)return;const e={owner:void 0,name:void 0,issueNumber:0};return i.length===7?(e.owner=i[2],e.name=i[3],e.issueNumber=parseInt(i[5]),e):i.length===16?(e.owner=i[3]||i[11],e.name=i[4]||i[12],e.issueNumber=parseInt(i[7]||i[14]),e.commentNumber=i[9]!==void 0?parseInt(i[9]):void 0,e):void 0}async function th(i,e,t,r){var n;const s=(n=i.resolvedIssues.get(e.repository.rootUri.path))==null?void 0:n.get(t);if(s)return s;{let o,h,S;const T=e.getGitHubRemotes();for(const P of T){if(r)o=r.owner?r.owner:P.owner,h=r.name?r.name:P.repositoryName,S=r.issueNumber;else{const V=Au(t.match(Ws));V&&(!V.name||!V.owner)&&(o=P.owner,h=P.repositoryName)}if(o&&h&&S!==void 0){let V=await e.resolveIssue(o,h,S,!!r.commentNumber);if(V||(V=await e.resolvePullRequest(o,h,S)),V){let j;return i.resolvedIssues.has(e.repository.rootUri.path)?j=i.resolvedIssues.get(e.repository.rootUri.path):i.resolvedIssues.set(e.repository.rootUri.path,j=new(A1())(50)),j.set(t,V),V}}}}}function ih(i,e){let t;return i.commitContributions.forEach(r=>{e.toLowerCase()===r.repoNameWithOwner.toLowerCase()&&(t=r.createdAt.toLocaleString("default",{day:"numeric",month:"short",year:"numeric"}))}),t}class rh extends d.CompletionItem{constructor(){super(...arguments);bc(this,"login"),bc(this,"uri")}}function Iu(i,e){const t=new d.MarkdownString(void 0,!0);t.appendMarkdown(` **${e.name}** [${e.login}](${e.url})`),e.bio&&t.appendText(` \r
|
||
`+e.bio.replace(/\r\n/g," "));const r=ih(e,i.owner+"/"+i.repo);return(e.location||r)&&t.appendMarkdown(` \r
|
||
\r
|
||
---`),e.location&&t.appendMarkdown(` \r
|
||
$(location) ${e.location}`),r&&t.appendMarkdown(` \r
|
||
$(git-commit) Committed to this repository on ${r}`),e.company&&t.appendMarkdown(` \r
|
||
$(jersey) Member of ${e.company}`),t}function nh(i){const e=/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:void 0}function ah(i,e){const t=nh(i);let r="ffffff";return t&&(.299*t.r+.587*t.g+.114*t.b)/255>.5&&(r="000000"),`<span style="color:#${r};background-color:#${i};"> ${e} </span>`}async function Sc(i,e,t){let r=i.search(e),n=0;for(;r>=0&&r<i.length;){let s;if(r===0||i.charAt(r-1)!=="&"){const h=i.substring(r).match(e);if(h){const S=await t(h);S&&(s=i.slice(0,r)+S,i=s+i.slice(r+h[0].length))}}n=s?s.length:r+1;const o=i.substring(n).search(e);r=o>0?n+o:o}return i}function Tc(i,e){return Sc(i,Ws,async t=>{const r=Au(t);if(r){const n=Ac(r);return(!r.owner||!r.name)&&(r.owner=e.remote.owner,r.name=e.remote.repositoryName),`[${n}](https://github.com/${r.owner}/${r.name}/issues/${r.issueNumber})`}})}async function sh(i,e){return Sc(i,gc,async t=>{const r=await wc(t,e);if(r){const n=await d.workspace.openTextDocument(r==null?void 0:r.file),s=n.lineAt(r.end<n.lineCount?r.end:n.lineCount-1),o=[r.file,{selection:{start:{line:r.start,character:0},end:{line:r.end,character:s.text.length}}}],h=d.Uri.parse(`command:vscode.open?${encodeURIComponent(JSON.stringify(o))}`);return`[${t[0]}](${h} "Open ${r.file.fsPath}")`}})}const Tl=200;async function Ou(i,e,t,r){const n=new d.MarkdownString(void 0,!0);n.isTrusted=!0;const s=new Date(i.createdAt),o=`${i.remote.owner}/${i.remote.repositoryName}`;n.appendMarkdown(`[${o}](https://github.com/${o}) on ${s.toLocaleString("default",{day:"numeric",month:"short",year:"numeric"})}
|
||
`);const h=Pu(i.title,{renderer:new Lu}).trim();n.appendMarkdown(`${lh(i)} **${h}** [#${i.number}](${i.html_url})
|
||
`);let S=Pu(i.body,{renderer:new Lu});if(n.appendMarkdown(`
|
||
`),S=S.length>Tl?S.substr(0,Tl)+"...":S,S=await Tc(S,i),S=await sh(S,t),n.appendMarkdown(S+`
|
||
`),n.appendMarkdown(`
|
||
`),i.item.labels.length>0&&i.item.labels.forEach(T=>{n.appendMarkdown(`[${ah(T.color,T.name)}](https://github.com/${o}/labels/${encodeURIComponent(T.name)}) `)}),i.item.comments&&r){for(const T of i.item.comments)if(T.databaseId===r){n.appendMarkdown(` \r
|
||
\r
|
||
---\r
|
||
`),n.appendMarkdown(`
|
||
`),n.appendMarkdown(` **${T.author.login}** commented`),n.appendMarkdown(`
|
||
`);let P=Pu(T.body.length>Tl?T.body.substr(0,Tl)+"...":T.body,{renderer:new Lu});P=await Tc(P,i),n.appendMarkdown(P)}}return n}function oh(i){switch(i.state){case Ei.Open:return i instanceof Fn?"$(git-pull-request)":"$(issues)";case Ei.Closed:return i instanceof Fn?"$(git-pull-request)":"$(issue-closed)";case Ei.Merged:return"$(git-merge)"}}function lh(i){if(i instanceof Fn)return oh(i);switch(i.state){case Ei.Open:return'<span style="color:#22863a;">$(issues)</span>';case Ei.Closed:return'<span style="color:#cb2431;">$(issue-closed)</span>'}}const kc="HEAD",dh=1,uh=2,ph=3,Rc=4,kl=new Map([["upstream",dh],["ups",uh],["origin",ph]]);async function ch(i,e){var t,r,n;const s=((t=i.state.HEAD)==null?void 0:t.upstream)&&!kl.has(i.state.HEAD.upstream.remote)?i.state.HEAD.upstream.remote:void 0;let o;const h=i.state.remotes.map(V=>({name:V.name,remote:V})).filter(V=>(V.name===s&&(o=V.remote),kl.has(V.name))).sort((V,j)=>{var ue,Te;const Se=(ue=kl.get(V.name))!=null?ue:Rc,qe=(Te=kl.get(j.name))!=null?Te:Rc;return Se-qe});s&&h.push({name:s,remote:o});const S=[kc];((r=i.state.HEAD)==null?void 0:r.name)&&i.state.HEAD.name!==kc&&S.unshift((n=i.state.HEAD)==null?void 0:n.name);let T,P;for(let V=0;V<S.length&&!T;V++)for(let j=0;j<h.length&&!T;j++){const ue=(await i.getBranches({contains:e.hash,remote:!0,pattern:`remotes/${h[j].name}/${S[V]}`,count:1})).filter(Te=>Te.remote&&Te.name);ue&&ue.length>0&&(T=ue[0],P=h[j].remote)}return P}function Cc(i,e){var t;let r,n;if(i)r=i,((t=d.window.activeTextEditor)==null?void 0:t.document.uri.fsPath)===r.fsPath&&(n=d.window.activeTextEditor.selection);else if(!e&&d.window.activeTextEditor)r=d.window.activeTextEditor.document.uri,n=d.window.activeTextEditor.selection;else if(e)r=e.document.uri,n=e.range;else return{uri:void 0,range:void 0};return{uri:r,range:n}}function Nc(i){var e;if((e=i.state.HEAD)==null?void 0:e.upstream){for(const t of i.state.remotes)if(i.state.HEAD.upstream.remote===t.name)return t}}async function xu(i,e,t){var r;const{uri:n,range:s}=Cc(t,e);if(!n)return{permalink:void 0,error:"No active text editor position to create permalink from.",originalFile:void 0};const o=_u(i,n);if(!o)return{permalink:void 0,error:"The current file isn't part of repository.",originalFile:n};let h,S;try{const j=await o.log({maxEntries:1,path:n.fsPath});if(j.length===0)return{permalink:void 0,error:"No branch on a remote contains the most recent commit for the file.",originalFile:n};h=j[0],S=j[0].hash}catch(j){S=(r=o.state.HEAD)==null?void 0:r.commit}const T=new Promise(j=>{j(Nc(o))});let P=h?await Promise.race([ch(o,h),new Promise(j=>{setTimeout(()=>{j(T)},1500)})]):await T;if((!P||!P.fetchUrl)&&(P=await T,!P||!P.fetchUrl))return{permalink:void 0,error:"The selection may not exist on any remote.",originalFile:n};const V=n.path.substring(o.rootUri.path.length);return{permalink:`https://github.com/${new Or(P.fetchUrl).nameWithOwner}/blob/${S}${V}${Pc(s)}`,error:void 0,originalFile:n}}function Pc(i){if(!i)return"";let e=`#L${i.start.line+1}`;return i.start.line!==i.end.line&&(e+=`-L${i.end.line+1}`),e}async function mh(i,e){const{uri:t,range:r}=Cc(e);if(!t)return{permalink:void 0,error:"No active text editor position to create permalink from.",originalFile:void 0};const n=i.getManagerForFile(t);if(!n)return{permalink:void 0,error:"Current file does not belong to an open repository.",originalFile:void 0};const s=await n.getPullRequestDefaults(),o=Nc(n.repository);if(!(o==null?void 0:o.fetchUrl))return{permalink:void 0,error:"Repository does not have any remotes.",originalFile:void 0};const h=t.path.substring(n.repository.rootUri.path.length);return{permalink:`https://github.com/${new Or(o.fetchUrl).nameWithOwner}/blob/${s.base}${h}${Pc(r)}`,error:void 0,originalFile:t}}function Dc(i){const e=/[~^:;'".,~#?%*[\]@\\{}()]|\/\//g;return i.replace(e,"").trim().replace(/\s+/g,"-")}const hh=/\$\{(.*?)\}/g;async function Rl(i,e,t,r){return i.replace(hh,(n,s)=>{switch(s){case"user":return r||n;case"issueNumber":return e?`${e.number}`:n;case"issueNumberLabel":return e?`${es(e,t)}`:n;case"issueTitle":return e?e.title:n;case"repository":return t?t.repo:n;case"owner":return t?t.owner:n;case"sanitizedIssueTitle":return e?Dc(e.title):n;case"sanitizedLowercaseIssueTitle":return e?Dc(e.title).toLowerCase():n;default:return n}})}function es(i,e){const t={issueNumber:i.number,owner:void 0,name:void 0};return e&&(e.owner.toLowerCase()!==i.remote.owner.toLowerCase()||e.repo.toLowerCase()!==i.remote.repositoryName.toLowerCase())&&(t.owner=i.remote.owner,t.name=i.remote.repositoryName),Ac(t)}function Ac(i){return!i.owner||!i.name?`#${i.issueNumber}`:`${i.owner}/${i.name}#${i.issueNumber}`}async function Ic(i,e,t){var r;const n=await((r=e.currentIssue(i.repository.rootUri))==null?void 0:r.getCommitMessage());if(n)return i.repository.commit(n,{all:t})}const Oc="Commit Staged",xc="Commit All";async function fh(i,e,t){var r,n;if(i.repository.state.workingTreeChanges.length>0||i.repository.state.indexChanges.length>0){const s=[];switch(i.repository.state.indexChanges&&s.push(Oc),i.repository.state.workingTreeChanges&&s.push(xc),await d.window.showInformationMessage("There are uncommitted changes. Do you want to commit them with the default commit message?",{modal:!0},...s)){case Oc:{await Ic(i,t,!1);break}case xc:{await Ic(i,t,!0);break}default:return!1}}if((r=i.repository.state.HEAD)==null?void 0:r.upstream)return await i.repository.push(),await e.createPullRequest(void 0),!0;{let s;return i.repository.state.remotes.length===1?s=i.repository.state.remotes[0].name:i.repository.state.remotes.length>1&&(s=await d.window.showQuickPick(i.repository.state.remotes.map(o=>o.name),{placeHolder:"Remote to push to"})),s?(await i.repository.push(s,(n=i.repository.state.HEAD)==null?void 0:n.name,!0),await e.createPullRequest(void 0),!0):(d.window.showWarningMessage("The current repository has no remotes to push to. Please set up a remote and try again."),!1)}}async function Mu(i,e){return!(i.languageId!=="markdown"&&i.languageId!=="plaintext"&&(await d.languages.getTokenInformationAtPosition(i,e)).type!==d.StandardTokenType.Comment)}async function Mc(i,e){return i.lineAt(e.line).range.end.character>1e4?!1:Mu(i,e)}function Fu(i){const e=new Hn.URLSearchParams(i.query).get("rootUri");return e?d.Uri.parse(e):void 0}class Lu extends Sl{code(e){return e}blockquote(e){return e}html(e){return""}heading(e,t,r,n){return e+" "}hr(){return""}list(e,t,r){return e}listitem(e){return" "+e}checkbox(e){return""}paragraph(e){return e.replace(/\</g,"\\<").replace(/\>/g,"\\>")+" "}table(e,t){return e+" "+t}tablerow(e){return e}tablecell(e,t){return e}strong(e){return e}em(e){return e}codespan(e){return`\\\`${e}\\\``}br(){return" "}del(e){return e}image(e,t,r){return""}text(e){return e}link(e,t,r){return r+" "}}var vh=Object.defineProperty,gh=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?vh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const Fc="github-pr-remote",Lc="github-pr-owner-number",Uc=/branch\.(.+)\.github-pr-owner-number/,yh=/branch\.(.+)\.remote/,yi=class{static async checkoutFromFork(i,e,t){const r=await yi.calculateUniqueBranchNameForPR(i,e);t||(D.appendLine(`Branch ${r} is from a fork. Create a remote first.`,yi.ID),t=await yi.createRemote(i,e.remote,e.head.repositoryCloneUrl));const n=`${e.head.ref}:${r}`;D.debug(`Fetch ${t}/${e.head.ref}:${r} - start`,yi.ID),await i.fetch(t,n,1),D.debug(`Fetch ${t}/${e.head.ref}:${r} - done`,yi.ID),await i.checkout(r),await i.setBranchUpstream(r,`refs/remotes/${t}/${e.head.ref}`),await this.unshallow(i),await yi.associateBranchWithPullRequest(i,e,r)}static async fetchAndCheckout(i,e,t){var r;if(!t.validatePullRequestModel("Checkout pull request failed"))return;const n=yi.getHeadRemoteForPullRequest(e,t),s=t.head.repositoryCloneUrl.owner!==t.base.repositoryCloneUrl.owner;if(!n||s)return yi.checkoutFromFork(i,t,n&&n.remoteName);const o=t.head.ref,h=n.remoteName;let S;try{if(S=await i.getBranch(o),((r=i.state.HEAD)==null?void 0:r.name)===S.name){D.appendLine(`Tried to checkout ${o}, but branch is already checked out.`,yi.ID);return}if(D.debug(`Checkout ${o}`,yi.ID),await i.checkout(o),!S.upstream){const T=`refs/remotes/${h}/${o}`;await i.setBranchUpstream(o,T)}S.behind!==void 0&&S.behind>0&&S.ahead===0&&(D.debug("Pull from upstream",yi.ID),await i.pull())}catch(T){D.appendLine(`Branch ${h}/${o} doesn't exist on local disk yet.`,yi.ID);const P=`refs/remotes/${h}/${o}`;D.appendLine(`Fetch tracked branch ${P}`,yi.ID),await i.fetch(h,o,1);const V=await i.getBranch(P);await i.createBranch(o,!0,V.commit),await i.setBranchUpstream(o,P),await this.unshallow(i)}await yi.associateBranchWithPullRequest(i,t,o)}static async unshallow(i){try{await i.pull(!0)}catch(e){D.appendLine(`Unshallowing failed: ${e}. Falling back to git pull`);try{await i.pull(!1)}catch(t){throw D.appendLine(`Pull after failed unshallow still failed: ${t}`),t}}}static async checkoutExistingPullRequestBranch(i,e){const t=yi.buildPullRequestMetadata(e),r=await i.getConfigs(),n=o=>r.filter(({key:h})=>o===h).map(({value:h})=>h)[0],s=r.map(o=>{const h=Uc.exec(o.key);return{branch:h&&h.length?h[1]:null,value:o.value}}).filter(o=>o.branch&&o.value===t);if(s&&s.length){const o=s[0].branch;await i.checkout(o);const h=n(`branch.${o}.remote`),S=n(`branch.${o}.merge`);await i.fetch(h,S);const T=await i.getBranch(s[0].branch);return T.behind!==void 0&&T.behind>0&&T.ahead===0&&(D.debug("Pull from upstream",yi.ID),await i.pull()),!0}else return!1}static async getBranchNRemoteForPullRequest(i,e){const t=yi.buildPullRequestMetadata(e),r=await i.getConfigs(),n=r.map(s=>{const o=Uc.exec(s.key);return{branch:o&&o.length?o[1]:null,value:s.value}}).find(s=>!!s.branch&&s.value===t);if(n){const s=n.branch;try{const o=`branch.${s}.remote`,h=r.filter(V=>V.key===o).map(V=>V.value);let S;h.length&&(S=h[0]);let T=!1;if(S){const V=`remote.${S}.github-pr-remote`;r.filter(ue=>ue.key===V&&ue.value).length&&(T=!0)}let P;return T&&(P=r.some(V=>!!(yh.exec(V.key)&&V.key!==`branch.${s}.remote`&&V.value===S))),{branch:s,remote:S,createdForPullRequest:T,remoteInUse:P}}catch(o){return{branch:s}}}return null}static buildPullRequestMetadata(i){return`${i.base.repositoryCloneUrl.owner}#${i.base.repositoryCloneUrl.repositoryName}#${i.number}`}static parsePullRequestMetadata(i){if(i){const e=/(.*)#(.*)#(.*)/g.exec(i);if(e&&e.length===4){const[,t,r,n]=e;return{owner:t,repositoryName:r,prNumber:Number(n)}}}}static getMetadataKeyForBranch(i){return`branch.${i}.${Lc}`}static async getMatchingPullRequestMetadataForBranch(i,e){try{const t=this.getMetadataKeyForBranch(e),r=await i.getConfig(t);return yi.parsePullRequestMetadata(r)}catch(t){return}}static async createRemote(i,e,t){D.appendLine(`create remote for ${t}.`,yi.ID);const r=Ya(i);for(const s of r)if(new Or(s.url).equals(t))return s.remoteName;const n=yi.getUniqueRemoteName(i,t.owner);return t.update({type:e.gitProtocol.type}),await i.addRemote(n,t.toString()),await i.setConfig(`remote.${n}.${Fc}`,"true"),n}static async isRemoteCreatedForPullRequest(i,e){try{D.debug(`Check if remote '${e}' is created for pull request - start`,yi.ID);const t=await i.getConfig(`remote.${e}.${Fc}`);return D.debug(`Check if remote '${e}' is created for pull request - end`,yi.ID),t==="true"}catch(t){return!1}}static async calculateUniqueBranchNameForPR(i,e){const t=`pr/${e.author.login}/${e.number}`;let r=t,n=1;for(;;)try{await i.getBranch(r),r=`${t}-${n++}`}catch(s){break}return r}static getUniqueRemoteName(i,e){let t=e,r=1;const n=Ya(i);for(;n.find(s=>s.remoteName===t);)t=`${e}${r++}`;return t}static getHeadRemoteForPullRequest(i,e){return i.find(t=>t.gitProtocol&&t.gitProtocol.equals(e.head.repositoryCloneUrl))}static async associateBranchWithPullRequest(i,e,t){D.appendLine(`associate ${t} with Pull Request #${e.number}`,yi.ID);const r=`branch.${t}.${Lc}`;await i.setConfig(r,yi.buildPullRequestMetadata(e))}};let Wr=yi;gh(Wr,"ID","PullRequestGitHelper");var wh=Object.defineProperty,mi=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?wh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class bh extends Error{constructor(e){super();this.repository=e}get message(){return`${this.repository.rootUri.toString()} has no GitHub remotes`}}class Vc extends Error{constructor(e){super();this.repository=e}get message(){return`${this.repository.rootUri.toString()} has a detached HEAD (create a branch first)`}}class _h extends Error{constructor(e,t,r){super();this.branchName=e,this.upstreamRef=t,this.problem=r}get message(){const{upstreamRef:{remote:e,name:t},branchName:r,problem:n}=this;return`The upstream ref ${e}/${t} for branch ${r} ${n}.`}}const Yi="githubPullRequests",Ks="remotes",qc="ReposManagerStateContext";var Fr;(function(i){i.Initializing="Initializing",i.NeedsAuthentication="NeedsAuthentication",i.RepositoriesLoaded="RepositoriesLoaded"})(Fr||(Fr={}));const $c="No Milestone";var Gc;(function(i){i[i.PullRequest=0]="PullRequest",i[i.Milestones=1]="Milestones",i[i.IssuesWithoutMilestone=2]="IssuesWithoutMilestone",i[i.IssueSearch=3]="IssueSearch"})(Gc||(Gc={}));const Lr=class{constructor(i,e,t,r,n,s){this.context=i,this._repository=e,this.telemetry=t,this._git=r,this._credentialStore=n,this._sessionState=s,mi(this,"_subs"),mi(this,"_activePullRequest"),mi(this,"_activeIssue"),mi(this,"_githubRepositories"),mi(this,"_allGitHubRemotes",[]),mi(this,"_mentionableUsers"),mi(this,"_fetchMentionableUsersPromise"),mi(this,"_assignableUsers"),mi(this,"_fetchAssignableUsersPromise"),mi(this,"_gitBlameCache",{}),mi(this,"_githubManager"),mi(this,"_repositoryPageInformation",new Map),mi(this,"_onDidMergePullRequest",new d.EventEmitter),mi(this,"onDidMergePullRequest",this._onDidMergePullRequest.event),mi(this,"_onDidChangeActivePullRequest",new d.EventEmitter),mi(this,"onDidChangeActivePullRequest",this._onDidChangeActivePullRequest.event),mi(this,"_onDidChangeActiveIssue",new d.EventEmitter),mi(this,"onDidChangeActiveIssue",this._onDidChangeActiveIssue.event),mi(this,"_onDidLoadRepositories",new d.EventEmitter),mi(this,"onDidLoadRepositories",this._onDidLoadRepositories.event),mi(this,"_onDidChangeRepositories",new d.EventEmitter),mi(this,"onDidChangeRepositories",this._onDidChangeRepositories.event),mi(this,"_onDidChangeAssignableUsers",new d.EventEmitter),mi(this,"onDidChangeAssignableUsers",this._onDidChangeAssignableUsers.event),mi(this,"_updatingRepositories"),mi(this,"totalFetchedPages",new Map),this._subs=[],this._githubRepositories=[],this._githubManager=new ys,this._subs.push(d.workspace.onDidChangeConfiguration(async o=>{o.affectsConfiguration(`${Yi}.${Ks}`)&&await this.updateRepositories()})),this._subs.push(n.onDidInitialize(()=>this.updateRepositories())),this.setUpCompletionItemProvider(),this.cleanStoredRepoState()}cleanStoredRepoState(){const i=new Date().valueOf()-30*864e5,e=this.context.globalState.get(Qs);if(e==null?void 0:e.repos){let t=!1;Object.keys(e.repos).forEach(r=>{var n;((n=e.repos[r].stateModifiedTime)!=null?n:0)<i&&(t=!0,delete e.repos[r])}),t&&this.context.globalState.update(Qs,e)}}get gitHubRepositories(){return this._githubRepositories}computeAllGitHubRemotes(){const e=Ya(this.repository).filter(t=>t.host);return Promise.all(e.map(t=>this._githubManager.isGitHub(t.gitProtocol.normalizeUri()))).then(t=>e.filter((r,n,s)=>t[n])).catch(t=>(D.appendLine(`Resolving GitHub remotes failed: ${t}`),d.window.showErrorMessage(`Resolving GitHub remotes failed: ${Re(t)}`),[]))}async getActiveGitHubRemotes(i){const e=d.workspace.getConfiguration(Yi).get(Ks);if(!e)return D.appendLine("Unable to read remotes setting"),Promise.resolve([]);const t=e.filter(r=>!i.some(n=>n.remoteName===r));return t.length===e.length?D.appendLine(`No remotes found. The following remotes are missing: ${t.join(", ")}`):D.debug(`Not all remotes found. The following remotes are missing: ${t.join(", ")}`,Lr.ID),D.debug(`Displaying configured remotes: ${e.join(", ")}`,Lr.ID),e.map(r=>i.find(n=>n.remoteName===r)).filter(r=>!!r)}setUpCompletionItemProvider(){let i,e=[],t=[];d.languages.registerCompletionItemProvider({scheme:"comment"},{provideCompletionItems:async(r,n,s)=>{try{const o=JSON.parse(r.uri.query);if(jt(o.extensionId,_a)!==0)return;const h=r.getWordRangeAtPosition(n,/@([a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38})?/i);if(!h||h.isEmpty)return;let S=[];const T={};let P={},V,j;const ue=d.window.visibleTextEditors;if(ue.length){const Ke=ue.find(ze=>ze.document.uri.scheme==="pr");if(Ke){const ze=fr(Ke.document.uri);V=ze.prNumber,j=ze.remoteName}else this._activePullRequest&&(V=this._activePullRequest.number,j=this._activePullRequest.remote.remoteName);if(i&&V&&V===i.number)return t}const Te=new Promise(async Ke=>{if(V&&j){if(D.debug("get Timeline Events and parse users",Lr.ID),i&&i.number===V)return e;const ze=this._githubRepositories.find(dt=>dt.remote.remoteName===j);ze&&(i=await ze.getPullRequest(V),e=await i.getTimelineEvents()),S=b1(e),Ke()}Ke()}),Se=new Promise(async Ke=>{if(ue.length)try{D.debug("git blame and parse users",Lr.ID);const ze=H.resolve(ue[0].document.uri.fsPath);let dt;this._gitBlameCache[ze]?dt=this._gitBlameCache[ze]:(dt=await this.repository.blame(ze),this._gitBlameCache[ze]=dt);const Mt=dt.split(`
|
||
`);for(const Ht of Mt){const Xt=/^\w{11} \S*\s*\((.*)\s*\d{4}\-/.exec(Ht);if(Xt&&Xt.length===2){const Kt=Xt[1].trim();T[Kt]=!0}}}catch(ze){D.debug(ze,Lr.ID)}Ke()}),qe=new Promise(async Ke=>{D.debug("get mentionable users",Lr.ID),P=await this.getMentionableUsers(),Ke()});await Promise.all([Te,Se,qe]),t=[];const xe={};D.debug("prepare user suggestions",Lr.ID),S.forEach(Ke=>{xe[Ke.login]||(xe[Ke.login]=Ke)});const je={};for(const Ke in P)for(const ze of P[Ke])if(!xe[ze.login]&&!je[ze.login]){je[ze.login]=!0;let dt=2;(T[ze.login]||ze.name&&T[ze.name])&&(dt=1),xe[ze.login]&&(dt=0),t.push({label:ze.login,insertText:ze.login,filterText:`${ze.login}`+(ze.name&&ze.name!==ze.login?`_${ze.name.toLowerCase().replace(" ","_")}`:""),sortText:`${dt}_${ze.login}`,detail:ze.name,kind:d.CompletionItemKind.User,login:ze.login,uri:this.repository.rootUri})}for(const Ke in xe)je[Ke]||t.push({label:xe[Ke].login,insertText:`${xe[Ke].login}`,filterText:`${xe[Ke].login}`+(xe[Ke].name&&xe[Ke].name!==xe[Ke].login?`_${xe[Ke].name.toLowerCase().replace(" ","_")}`:""),sortText:`0_${xe[Ke].login}`,detail:xe[Ke].name,kind:d.CompletionItemKind.User,login:xe[Ke].login,uri:this.repository.rootUri});return D.debug("done",Lr.ID),t}catch(o){return[]}},resolveCompletionItem:async(r,n)=>{try{const s=await this.getPullRequestDefaults(),o=await this.resolveUser(s.owner,s.repo,typeof r.label=="string"?r.label:r.label.label);o&&(r.documentation=Iu(s,o))}catch(s){}return r}},"@")}get activeIssue(){return this._activeIssue}set activeIssue(i){this._activeIssue=i,this._onDidChangeActiveIssue.fire()}get activePullRequest(){return this._activePullRequest}set activePullRequest(i){this._activePullRequest&&(this._activePullRequest.isActive=!1),i&&(i.isActive=!0),this._activePullRequest=i,this._onDidChangeActivePullRequest.fire()}get repository(){return this._repository}set repository(i){this._repository=i}get credentialStore(){return this._credentialStore}async loginAndUpdate(){if(!this._credentialStore.isAnyAuthenticated()){const i=new Promise(e=>{const t=this.onDidChangeRepositories(()=>{t.dispose(),e()})});await this._credentialStore.login(ni.github),await i}}async getActiveRemotes(){this._allGitHubRemotes=await this.computeAllGitHubRemotes();const i=await this.getActiveGitHubRemotes(this._allGitHubRemotes);return i.length?(await d.commands.executeCommand("setContext","github:hasGitHubRemotes",!0),D.appendLine("Found GitHub remote")):(await d.commands.executeCommand("setContext","github:hasGitHubRemotes",!1),D.appendLine("No GitHub remotes found")),i}async updateRepositories(i=!1){return this._updatingRepositories&&await this._updatingRepositories,this._updatingRepositories=this.doUpdateRepositories(i),this._updatingRepositories}async doUpdateRepositories(i){if(this._git.state==="uninitialized"){D.appendLine("Cannot updates repositories as git is uninitialized");return}const e=await this.getActiveRemotes(),t=this._credentialStore.isAuthenticated(ni.github)||this._credentialStore.isAuthenticated(ni["github-enterprise"]);d.commands.executeCommand("setContext","github:authenticated",t);const r=[],n=[],s=[];return this._githubRepositories.forEach(h=>s.push(h)),e.filter(h=>this._credentialStore.isAuthenticated(h.authProviderId)).forEach(h=>{const S=this.createGitHubRepository(h,this._credentialStore);n.push(S.resolveRemote()),r.push(S)}),Promise.all(n).then(async h=>{if(h.some(T=>!T))return this._credentialStore.showSamlMessageAndAuth();this._githubRepositories=r,s.filter(T=>this._githubRepositories.indexOf(T)<0).forEach(T=>T.dispose());const S=s.length!==this._githubRepositories.length||!s.every(T=>this._githubRepositories.some(P=>P.remote.equals(T.remote)));if(this._githubRepositories.length&&S&&await this.checkIfMissingUpstream()){this.updateRepositories(i);return}this.activePullRequest&&this.getMentionableUsers(S,!0),this.getAssignableUsers(S),t&&e.length?this._onDidLoadRepositories.fire(Fr.RepositoriesLoaded):t||this._onDidLoadRepositories.fire(Fr.NeedsAuthentication),i||this._onDidChangeRepositories.fire()})}async checkIfMissingUpstream(){var i;try{const t=await(await this.getOrigin()).getMetadata();if(t.fork&&t.parent){const r=new Or(t.parent.git_url);if(!this._githubRepositories.some(s=>s.remote.owner===r.owner&&s.remote.repositoryName===r.repositoryName)){const o=!this.repository.state.remotes.some(h=>h.name==="upstream")?"upstream":(i=t.parent.owner)==null?void 0:i.login;if(o)return this.gitHubRepositories[0].remote.gitProtocol.type===_s.SSH?await this.repository.addRemote(o,t.parent.git_url):await this.repository.addRemote(o,t.parent.clone_url),!0}}}catch(e){D.appendLine(`Missing upstream check failed: ${e}`)}return!1}getAllAssignableUsers(){if(this._assignableUsers){const i=[];return Object.keys(this._assignableUsers).forEach(e=>{i.push(...this._assignableUsers[e])}),i}}getMentionableUsersFromGlobalState(){D.appendLine("Trying to use globalState for mentionable users.");const i=this.context.globalState.get(Qs);if(i){const e={};if(this._githubRepositories.every(r=>{var n;const s=`${r.remote.owner}/${r.remote.repositoryName}`;return i.repos[s]?(e[r.remote.repositoryName]=(n=i.repos[s].mentionableUsers)!=null?n:[],!0):!1}))return D.appendLine(`Using globalState mentionable users for ${Object.keys(e).length}.`),e}D.appendLine("No globalState for mentionable users.")}createFetchMentionableUsersPromise(){const i={};return new Promise(e=>{const t=this._githubRepositories.map(async r=>{const n=await r.getMentionableUsers();i[r.remote.remoteName]=n});Promise.all(t).then(()=>{this._mentionableUsers=i,this._fetchMentionableUsersPromise=void 0;const r=this.context.globalState.get(Qs,{repos:{}});this._githubRepositories.forEach(n=>{const s=`${n.remote.owner}/${n.remote.repositoryName}`;r.repos[s]||(r.repos[s]={}),r.repos[s].mentionableUsers=i[n.remote.remoteName],r.repos[s].stateModifiedTime=new Date().valueOf()}),this.context.globalState.update(Qs,r),e(i)})})}async getMentionableUsers(i,e){if(i&&delete this._mentionableUsers,this._mentionableUsers)return this._mentionableUsers;let t=this.getMentionableUsersFromGlobalState();return e&&!this._fetchMentionableUsersPromise&&t?t:this._fetchMentionableUsersPromise?this._fetchMentionableUsersPromise:(this._fetchMentionableUsersPromise=this.createFetchMentionableUsersPromise(),t!=null?t:this._fetchMentionableUsersPromise)}async getAssignableUsers(i){if(i&&delete this._assignableUsers,this._assignableUsers)return this._assignableUsers;if(!this._fetchAssignableUsersPromise){const e={},t=[];return this._fetchAssignableUsersPromise=new Promise(r=>{const n=this._githubRepositories.map(async s=>{const o=await s.getAssignableUsers();e[s.remote.remoteName]=o.sort(Wp),t.push(...o)});Promise.all(n).then(()=>{this._assignableUsers=e,this._fetchAssignableUsersPromise=void 0,r(e),this._onDidChangeAssignableUsers.fire(t)})})}return this._fetchAssignableUsersPromise}getGitHubRemotes(){const i=this._githubRepositories;return!i||!i.length?[]:i.map(e=>e.remote)}async getAllGitHubRemotes(){return await this.computeAllGitHubRemotes()}async getLocalPullRequests(){const i=this._githubRepositories;if(!i||!i.length)return[];const t=this.repository.state.refs.filter(r=>r.type===le.Head&&r.name!==void 0).map(r=>r.name).map(async r=>{const n=await Wr.getMatchingPullRequestMetadataForBranch(this.repository,r);if(n){const{owner:s,prNumber:o}=n,h=i.find(S=>S.remote.owner.toLocaleLowerCase()===s.toLocaleLowerCase());if(h){const S=await h.getPullRequest(o);if(S)return S.localBranchName=r,S}}return Promise.resolve(null)});return Promise.all(t).then(r=>r.filter(n=>n!==null))}async getLabels(i,e){const t=i?i.githubRepository:this._githubRepositories.find(S=>S.remote.owner===(e==null?void 0:e.owner)&&S.remote.repositoryName===(e==null?void 0:e.repo));if(!t)throw new Error("No matching repository found for getting labels.");const{remote:r,octokit:n}=await t.ensure();let s=!1,o=1,h=[];do{const S=await n.issues.listLabelsForRepo({owner:r.owner,repo:r.repositoryName,per_page:100,page:o});h=h.concat(S.data.map(T=>({name:T.name,color:T.color}))),h=h.sort((T,P)=>T.name.localeCompare(P.name)),s=!!S.headers.link&&S.headers.link.indexOf('rel="next"')>-1,o+=1}while(s);return h}async deleteLocalPullRequest(i,e){if(!i.localBranchName)return;await this.repository.deleteBranch(i.localBranchName,e);let t;try{t=await this.repository.getConfig(`branch.${i.localBranchName}.remote`)}catch(n){}if(!t)return;await Wr.isRemoteCreatedForPullRequest(this.repository,t)&&((await this.repository.getConfigs()).some(({key:o,value:h})=>/^branch.*\.remote$/.test(o)&&h===t)||await this.repository.removeRemote(t)),this.telemetry.sendTelemetryEvent("branch.delete")}async fetchPagedData(i={fetchNextPage:!1},e,t=0,r=zi.All,n){if(!this._githubRepositories||!this._githubRepositories.length)return{items:[],hasMorePages:!1,hasUnsearchedRepositories:!1};const s=()=>this.totalFetchedPages.get(e)||0,o=V=>this.totalFetchedPages.set(e,V);for(const V of this._githubRepositories){const j=V.remote.url.toString()+e;this._repositoryPageInformation.get(j)||this._repositoryPageInformation.set(j,{pullRequestPage:0,hasMorePages:null})}let h=0;const S={hasMorePages:!1,items:[]},T=V=>{h++,V&&(S.items=S.items.concat(V.items),S.hasMorePages=V.hasMorePages)},P=this._githubRepositories.filter(V=>{const j=this._repositoryPageInformation.get(V.remote.url.toString()+e);return j&&(i.fetchNextPage===!1||j.hasMorePages!==!1)});for(let V=0;V<P.length;V++){const j=P[V],ue=j.remote.url.toString()+e,Te=this._repositoryPageInformation.get(ue),Se=async qe=>{switch(t){case 0:return r===zi.All?j.getAllPullRequests(qe):j.getPullRequestsForCategory(n||"",qe);case 1:return j.getIssuesForUserByMilestone(Te.pullRequestPage);case 2:return j.getIssuesWithoutMilestone(Te.pullRequestPage);case 3:return j.getIssues(Te.pullRequestPage,n)}};if(i.fetchNextPage?(Te.pullRequestPage++,T(await Se(Te.pullRequestPage)),o(s()+1)):(Te.pullRequestPage===0&&(Te.pullRequestPage=1),(await Promise.all(Array.from({length:Te.pullRequestPage}).map((xe,je)=>Se(je+1)))).forEach(xe=>T(xe))),Te.hasMorePages=S.hasMorePages,S.items.length&&(i.fetchNextPage===!0||i.fetchNextPage===!1&&h>=s()))return s()===0&&o(h),{items:S.items,hasMorePages:Te.hasMorePages,hasUnsearchedRepositories:V<P.length-1}}return{items:[],hasMorePages:!1,hasUnsearchedRepositories:!1}}async getPullRequests(i,e={fetchNextPage:!1},t){const r=i.toString()+(t||"");return this.fetchPagedData(e,r,0,i,t)}async getMilestones(i={fetchNextPage:!1},e=!1,t){const r=await this.fetchPagedData(i,"issuesKey",1,zi.All,t);if(e){const n=await this.fetchPagedData(i,"issuesKey",2,zi.All,t);r.items.push({milestone:{createdAt:new Date(0).toDateString(),id:"",title:$c},issues:n.items})}return r}async getIssues(i={fetchNextPage:!1},e){return this.fetchPagedData(i,"issuesKey",3,zi.All,e)}async getMaxIssue(){const i=await Promise.all(this._githubRepositories.map(t=>t.getMaxIssue()));let e=0;for(const t of i)t!==void 0&&(e=Math.max(e,t));return e}async getPullRequestTemplates(){const i="{pull_request_template,PULL_REQUEST_TEMPLATE}.md",e=d.workspace.findFiles(new d.RelativePattern(this._repository.rootUri,i)),t="{docs,.github}/{pull_request_template,PULL_REQUEST_TEMPLATE}.md",r=d.workspace.findFiles(new d.RelativePattern(this._repository.rootUri,t),null),n="PULL_REQUEST_TEMPLATE/*.md",s=d.workspace.findFiles(new d.RelativePattern(this._repository.rootUri,n)),o="{docs,.github}/PULL_REQUEST_TEMPLATE/*.md",h=d.workspace.findFiles(new d.RelativePattern(this._repository.rootUri,o),null),S=await Promise.all([e,r,s,h]);return[...S[0],...S[1],...S[2],...S[3]]}async getPullRequestDefaults(i){var e;if(!i&&!this.repository.state.HEAD)throw new Vc(this.repository);const t=await this.getOrigin(i),r=await t.getMetadata(),n=(e=d.workspace.getConfiguration(Yi).inspect(Ks))==null?void 0:e.defaultValue,s=d.workspace.getConfiguration(Yi).get(Ks),o=!s||(n==null?void 0:n.every((S,T)=>s[T]===S)),h=r.fork&&r.parent&&o?r.parent:await(this.findRepo(is("upstream"))||t).getMetadata();return{owner:h.owner.login,repo:h.name,base:h.default_branch}}async getMetadata(i){const e=this.findRepo(is(i));return e&&e.getMetadata()}async getHeadCommitMessage(){const{repository:i}=this;if(i.state.HEAD&&i.state.HEAD.commit){const{message:e}=await i.getCommit(i.state.HEAD.commit);return e}return""}async getTipCommitMessage(i){const{repository:e}=this,{commit:t}=await e.getBranch(i);if(t){const{message:r}=await e.getCommit(t);return r}return""}async getOrigin(i){if(!this._githubRepositories.length)throw new bh(this.repository);const e=i?i.upstream:this.upstreamRef;if(e){const n=this.findRepo(is(e.remote));if(!n){const s=(await this.getAllGitHubRemotes()).find(o=>o.remoteName===e.remote);if(s)return this.createAndAddGitHubRepository(s,this._credentialStore);throw D.appendLine(`The remote '${e.remote}' is not a GitHub repository.`),new _h(this.repository.state.HEAD.name,e,"is not a GitHub repo")}return n}const[t,...r]=this._githubRepositories;return r.length&&(this.findRepo(is("origin"))||this.findRepo(Eh))||t}findRepo(i){return this._githubRepositories.filter(i)[0]}get upstreamRef(){const{HEAD:i}=this.repository.state;return i&&i.upstream}async createPullRequest(i){var e,t;const r=this._githubRepositories.find(n=>n.remote.owner===i.owner&&n.remote.repositoryName===i.repo);if(!r)throw new Error(`No matching repository ${i.repo} found for ${i.owner}`);try{const n=await r.createPullRequest(i),s=i.head.indexOf(":"),o=i.head.slice(s+1);return await Wr.associateBranchWithPullRequest(this._repository,n,o),this.telemetry.sendTelemetryEvent("pr.create.success",{isDraft:(i.draft||"").toString()}),n}catch(n){if(n.message.indexOf("No commits between ")>-1){if((e=this._repository.state.HEAD)==null?void 0:e.ahead)return await d.window.showInformationMessage(`There are no commits between '${i.base}' and '${i.head}'.
|
||
|
||
Do you want to push your local commits and create the pull request?`,{modal:!0},"Push commits")==="Push commits"?(await this._repository.push(),this.createPullRequest(i)):void 0;if(this._repository.state.workingTreeChanges.length||this._repository.state.indexChanges.length)return await d.window.showInformationMessage(`There are no commits between '${i.base}' and '${i.head}'.
|
||
|
||
Do you want to commit your changes and create the pull request?`,{modal:!0},"Commit changes")==="Commit changes"?(await d.commands.executeCommand("git.commit"),await this._repository.push(),this.createPullRequest(i)):void 0}if(!((t=this._repository.state.HEAD)==null?void 0:t.upstream))return await d.window.showInformationMessage(`There is no upstream branch for '${i.base}'.
|
||
|
||
Do you want to publish it and create the pull request?`,{modal:!0},"Publish branch")==="Publish branch"?(await this._repository.push(r.remote.remoteName,i.base,!0),this.createPullRequest(i)):void 0;throw D.appendLine(`GitHubRepository> Creating pull requests failed: ${n}`),this.telemetry.sendTelemetryErrorEvent("pr.create.failure",{isDraft:(i.draft||"").toString()}),new Error(Re(n))}}async createIssue(i){try{const e=this._githubRepositories.find(s=>s.remote.owner===i.owner&&s.remote.repositoryName===i.repo);if(!e)throw new Error(`No matching repository ${i.repo} found for ${i.owner}`);await e.ensure();const{data:t}=await e.octokit.issues.create(i),r=m1(t,e),n=new Wi(e,e.remote,r);return this.telemetry.sendTelemetryEvent("issue.create.success"),n}catch(e){D.appendLine(`GitHubRepository> Creating issue failed: ${e}`),this.telemetry.sendTelemetryErrorEvent("issue.create.failure"),d.window.showWarningMessage(`Creating issue failed: ${Re(e)}`)}}async assignIssue(i,e){try{const t=this._githubRepositories.find(n=>n.remote.owner===i.remote.owner&&n.remote.repositoryName===i.remote.repositoryName);if(!t)throw new Error(`No matching repository ${i.remote.repositoryName} found for ${i.remote.owner}`);await t.ensure();const r={assignees:[e],owner:i.remote.owner,repo:i.remote.repositoryName,issue_number:i.number};await t.octokit.issues.addAssignees(r),this.telemetry.sendTelemetryEvent("issue.assign.success")}catch(t){D.appendLine(`GitHubRepository> Assigning issue failed: ${t}`),this.telemetry.sendTelemetryErrorEvent("issue.assign.failure"),d.window.showWarningMessage(`Assigning issue failed: ${Re(t)}`)}}getCurrentUser(i){return ta(this._credentialStore.getCurrentUser(i.githubRepository.remote.authProviderId),i.githubRepository)}async mergePullRequest(i,e,t,r){const{octokit:n,remote:s}=await i.githubRepository.ensure(),o=this.activePullRequest&&this.activePullRequest.head&&this.activePullRequest.head.sha,h=this.repository.state.HEAD&&this.repository.state.HEAD.commit,S=i.head&&i.head.sha,T=this.repository.state.workingTreeChanges.length>0;if(o===S){if(h!==S){const{ahead:P}=this.repository.state.HEAD;if(P&&await d.window.showWarningMessage(`You have ${P} unpushed ${P>1?"commits":"commit"} on this PR branch.
|
||
|
||
Would you like to proceed anyway?`,{modal:!0},"Yes")===void 0)return{merged:!1,message:"unpushed changes"}}if(T&&await d.window.showWarningMessage(`You have uncommitted changes on this PR branch.
|
||
|
||
Would you like to proceed anyway?`,{modal:!0},"Yes")===void 0)return{merged:!1,message:"uncommitted changes"}}return await n.pulls.merge({commit_message:t,commit_title:e,merge_method:r||d.workspace.getConfiguration("githubPullRequests").get("defaultMergeMethod"),owner:s.owner,repo:s.repositoryName,pull_number:i.number}).then(P=>(this.telemetry.sendTelemetryEvent("pr.merge.success"),this._onDidMergePullRequest.fire(),P.data)).catch(P=>{throw this.telemetry.sendTelemetryErrorEvent("pr.merge.failure"),P})}async deleteBranch(i){await i.githubRepository.deleteBranch(i)}async getBranchDeletionItems(){const i=await this.repository.getConfigs(),e=new Map;i.forEach(n=>{const s=n.key,o=/^branch\.(.*)\.(.*)$/.exec(s);if(o&&o.length===3){const h=o[1];e.has(h)||e.set(h,{});const S=e.get(h);if(o[2]==="remote"&&(S.remote=n.value),o[2]==="github-pr-owner-number"){const T=Wr.parsePullRequestMetadata(n.value);S.metadata=T}e.set(h,S)}});const t=[];e.forEach((n,s)=>{if(n.metadata){const o=this.activePullRequest&&this.activePullRequest.base.repositoryCloneUrl;(o?o.owner===n.metadata.owner&&o.repositoryName===n.metadata.repositoryName&&this.activePullRequest&&this.activePullRequest.number===n.metadata.prNumber:!1)||t.push({label:`${s}`,description:`${n.metadata.repositoryName}/${n.metadata.owner} #${n.metadata.prNumber}`,picked:!1,metadata:n.metadata})}});const r=await Promise.all(t.map(async n=>{const s=n.metadata,o=this._githubRepositories.find(P=>P.remote.owner.toLowerCase()===s.owner.toLowerCase()&&P.remote.repositoryName.toLowerCase()===s.repositoryName.toLowerCase());if(!o)return n;const{remote:h,query:S,schema:T}=await o.ensure();try{const{data:P}=await S({query:T.PullRequestState,variables:{owner:h.owner,name:h.repositoryName,number:s.prNumber}});n.legacy=P.repository.pullRequest.state!=="OPEN"}catch{}return n}));return r.forEach(n=>{n.legacy?n.picked=!0:n.description=`${n.description} is still Open`}),r}async getRemoteDeletionItems(){const i=await this.repository.getConfigs(),e=new Map;i.forEach(r=>{const n=r.key;let s=/^branch\.(.*)\.(.*)$/.exec(n);if(s&&s.length===3){const o=s[1];if(s[2]==="remote"){const h=r.value;e.has(h)||e.set(h,{branches:new Set}),e.get(h).branches.add(o)}}if(s=/^remote\.(.*)\.(.*)$/.exec(n),s&&s.length===3){const o=s[1];e.has(o)||e.set(o,{branches:new Set});const h=e.get(o);s[2]==="github-pr-remote"&&(h.createdForPullRequest=r.value==="true"),s[2]==="url"&&(h.url=r.value)}});const t=[];return e.forEach((r,n)=>{if(r.branches.size===0){let s=r.createdForPullRequest?"":"Not created by GitHub Pull Request extension";r.url&&(s=s?s+" "+r.url:r.url),t.push({label:n,description:s,picked:r.createdForPullRequest,remote:n})}}),t}async deleteLocalBranchesNRemotes(){return new Promise(async i=>{const e=d.window.createQuickPick();e.canSelectMany=!0,e.ignoreFocusOut=!0,e.placeholder="Choose local branches you want to delete permanently",e.show(),e.busy=!0;const t=await this.getBranchDeletionItems();e.items=t,e.selectedItems=t.filter(n=>n.picked),e.busy=!1;let r=!0;e.onDidAccept(async()=>{if(r){const n=e.selectedItems;if(n.length){e.busy=!0;try{await Promise.all(n.map(async o=>{await this.repository.deleteBranch(o.label,!0)})),e.busy=!1}catch(o){e.hide(),d.window.showErrorMessage(`Deleting branches failed: ${o}`)}}r=!1,e.busy=!0;const s=await this.getRemoteDeletionItems();s?(e.placeholder="Choose remotes you want to delete permanently",e.busy=!1,e.items=s,e.selectedItems=s.filter(o=>o.picked)):e.hide()}else{const n=e.selectedItems;n.length&&(e.busy=!0,await Promise.all(n.map(async s=>{await this.repository.removeRemote(s.label)})),e.busy=!1),e.hide()}}),e.onDidHide(()=>{i()})})}async getPullRequestRepositoryDefaultBranch(i){return await i.githubRepository.getDefaultBranch()}async getPullRequestRepositoryAccessAndMergeMethods(i){return await i.githubRepository.getRepoAccessAndMergeMethods()}async fulfillPullRequestMissingInfo(i){try{if(!i.isResolved())return;D.debug("Fulfill pull request missing info - start",Lr.ID);const e=i.githubRepository,{octokit:t,remote:r}=await e.ensure();if(!i.base){const{data:n}=await t.pulls.get({owner:r.owner,repo:r.repositoryName,pull_number:i.number});i.update(ba(n,e))}if(!i.mergeBase){const{data:n}=await t.repos.compareCommits({repo:r.repositoryName,owner:r.owner,base:`${i.base.repositoryCloneUrl.owner}:${i.base.ref}`,head:`${i.head.repositoryCloneUrl.owner}:${i.head.ref}`});i.mergeBase=n.merge_base_commit.sha}}catch(e){d.window.showErrorMessage(`Fetching Pull Request merge base failed: ${Re(e)}`)}D.debug("Fulfill pull request missing info - done",Lr.ID)}async resolveItem(i,e){let t=this._githubRepositories.find(r=>r.remote.owner.toLowerCase()===i.toLowerCase()&&r.remote.repositoryName.toLowerCase()===e.toLowerCase());return t||(t=this.createGitHubRepositoryFromOwnerName(i,e)),t}async resolvePullRequest(i,e,t){const r=await this.resolveItem(i,e);if(r)return r.getPullRequest(t)}async resolveIssue(i,e,t,r=!1){const n=await this.resolveItem(i,e);if(n)return n.getIssue(t,r)}async resolveUser(i,e,t){var r;D.debug(`Fetch user ${t}`,Lr.ID);const n=this.createGitHubRepositoryFromOwnerName(i,e),{query:s,schema:o}=await n.ensure();try{const{data:h}=await s({query:o.GetUser,variables:{login:t}});return y1(h,n)}catch(h){((r=h.message)==null?void 0:r.startsWith("GraphQL error: Could not resolve to a User with the login of"))||D.appendLine(h.message)}}async getMatchingPullRequestMetadataForBranch(){return!this.repository||!this.repository.state.HEAD||!this.repository.state.HEAD.name?null:await Wr.getMatchingPullRequestMetadataForBranch(this.repository,this.repository.state.HEAD.name)}async getMatchingPullRequestMetadataFromGitHub(){if(!this.repository||!this.repository.state.HEAD||!this.repository.state.HEAD.name||!this.repository.state.HEAD.upstream)return null;const i=this.gitHubRepositories.find(e=>{var t,r;return e.remote.remoteName===((r=(t=this.repository.state.HEAD)==null?void 0:t.upstream)==null?void 0:r.remote)});for(const e of this.gitHubRepositories)if(e.remote.remoteName===this.repository.state.HEAD.upstream.remote){const t=await e.getPullRequestForBranch(`${i==null?void 0:i.remote.owner}:${this.repository.state.HEAD.upstream.name}`);if(t&&t.length>0)return{owner:e.remote.owner,repositoryName:e.remote.repositoryName,prNumber:t[0].number,model:t[0]};break}return null}async checkoutExistingPullRequestBranch(i){return await Wr.checkoutExistingPullRequestBranch(this.repository,i)}async getBranchNameForPullRequest(i){return await Wr.getBranchNRemoteForPullRequest(this.repository,i)}async fetchAndCheckout(i){await Wr.fetchAndCheckout(this.repository,this._allGitHubRemotes,i)}async checkout(i){return this.repository.checkout(i)}async fetchById(i,e){const t=await i.getPullRequest(e);if(t)return t;d.window.showErrorMessage(`Pull request number ${e} does not exist in ${i.remote.owner}/${i.remote.repositoryName}`,{modal:!0})}async checkoutDefaultBranch(i){var e;try{const t=await this.repository.getBranch(i);if(((e=this.repository.state.HEAD)==null?void 0:e.name)===t.name){const n="Choose a branch";d.window.showInformationMessage("The default branch is already checked out.","Choose a branch").then(s=>{if(s===n)return d.commands.executeCommand("git.checkout")});return}t.upstream&&i===t.upstream.name?await this.repository.checkout(i):await d.commands.executeCommand("git.checkout")}catch(t){if(t.gitErrorCode&&t.gitErrorCode===Fe.DirtyWorkTree){d.window.showErrorMessage("Your local changes would be overwritten by checkout, please commit your changes or stash them before you switch branches");return}d.window.showErrorMessage(`Exiting failed: ${t}`)}}findExistingGitHubRepository(i){return this._githubRepositories.find(e=>e.remote.owner===i.owner&&e.remote.repositoryName===i.repositoryName&&(!i.remoteName||e.remote.remoteName===i.remoteName))}createAndAddGitHubRepository(i,e){const t=new Vp(i,e,this.telemetry,this._sessionState);return this._githubRepositories.push(t),t}createGitHubRepository(i,e){var t;return(t=this.findExistingGitHubRepository(i))!=null?t:this.createAndAddGitHubRepository(i,e)}createGitHubRepositoryFromOwnerName(i,e){const t=this.findExistingGitHubRepository({owner:i,repositoryName:e});if(t)return t;const r=`https://github.com/${i}/${e}`;return this.createAndAddGitHubRepository(new wl(e,r,new Or(r)),this._credentialStore)}async findUpstreamForItem(i){let e,t;for(const n of this.gitHubRepositories){if(!e&&n.remote.owner===i.remote.owner&&n.remote.repositoryName===i.remote.repositoryName){e=n;continue}const s=await n.getRepositoryForkDetails();if(s&&s.isFork&&s.parent.owner.login===i.remote.owner&&s.parent.name===i.remote.repositoryName){const o=await n.getViewerPermission();if(o===_r.Admin||o===_r.Maintain||o===_r.Write){t=n.remote;break}}}let r=!1;if(e&&!t){const n=await i.githubRepository.getViewerPermission();(n===_r.Read||n===_r.Triage||n===_r.Unknown)&&(r=!0)}return{needsFork:r,upstream:e,remote:t}}async forkWithProgress(i,e,t,r){i.report({message:`Forking ${t}...`});const n=await e.fork();if(i.report({increment:50}),!n){d.window.showErrorMessage(`Unable to create a fork of ${t}. Check that your GitHub credentials are correct.`);return}const s=r.state.remotes.length>1?"origin":r.state.remotes[0].name;return i.report({message:"Adding remotes. This may take a few moments."}),await r.renameRemote(s,"upstream"),await r.addRemote(s,n),await new Promise(o=>{if(this.gitHubRepositories.length===0){const h=this.onDidChangeRepositories(()=>{this.gitHubRepositories.length>0&&(h.dispose(),o())})}else o()}),i.report({increment:50}),s}async doFork(i,e,t){return d.window.withProgress({location:d.ProgressLocation.Notification,title:"Creating Fork"},async r=>{try{return this.forkWithProgress(r,i,e,t)}catch(n){d.window.showErrorMessage(`Creating fork failed: ${n}`)}})}async tryOfferToFork(i){const e=`${i.remote.owner}/${i.remote.repositoryName}`,t="Fork",r="Don't Fork";switch(await d.window.showInformationMessage(`You don't have permission to push to ${e}. Do you want to fork ${e}? This will modify your git remotes to set \`origin\` to the fork, and \`upstream\` to ${e}.`,{modal:!0},t,r)){case t:return this.doFork(i,e,this.repository);case r:return!1;default:return}}dispose(){this._subs.forEach(i=>i.dispose())}};let ts=Lr;mi(ts,"ID","FolderRepositoryManager");function F0(i){switch(i){case"committed":return EventType.Committed;case"mentioned":return EventType.Mentioned;case"subscribed":return EventType.Subscribed;case"commented":return EventType.Commented;case"reviewed":return EventType.Reviewed;default:return EventType.Other}}const Eh=i=>{const{currentUser:e=null}=i.octokit;return e&&i.remote.owner===e.login},is=i=>({remote:{remoteName:e}})=>e===i,Bc=i=>{const e=i.indexOf(`
|
||
`);return{title:e===-1?i:i.substr(0,e),body:e===-1?"":i.slice(e+1).trim()}};var Sh=Object.defineProperty,Uu=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Sh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Th{constructor(){Uu(this,"fileHasComments",new Map),Uu(this,"_onDidChangeFileDecorations",new d.EventEmitter),Uu(this,"onDidChangeFileDecorations",this._onDidChangeFileDecorations.event)}updateFileComments(e,t,r,n){const s=`${t}:${r}`;this.fileHasComments.get(s)!==n&&(this.fileHasComments.set(`${t}:${r}`,n),this._onDidChangeFileDecorations.fire(e))}provideFileDecoration(e,t){const r=Kc(e);if(r){const n=`${r.prNumber}:${r.fileName}`;if(this.fileHasComments.get(n))return{propagate:!1,tooltip:"Commented",badge:"\u{1F4AC}"}}}}const Hc=new Th;var kh=Object.defineProperty,Cl=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?kh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class hr{constructor(){Cl(this,"childrenDisposables"),Cl(this,"parent"),Cl(this,"label"),Cl(this,"accessibilityInformation")}getParent(){if(this.parent instanceof hr)return this.parent}async reveal(e,t){try{await this.parent.reveal(e||this,t)}catch(r){D.appendLine(r,"TreeNode")}}refresh(e){return this.parent.refresh(e)}async getChildren(){return[]}dispose(){this.childrenDisposables&&(this.childrenDisposables.forEach(e=>e.dispose()),this.childrenDisposables=[])}}var Rh=Object.defineProperty,xi=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Rh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);function jc(i){const e=d.window.activeTextEditor,t={preserveFocus:!0,viewColumn:d.ViewColumn.Active};return e&&e.document.uri.path===i.path&&(t.selection=e.selection),{command:"vscode.open",arguments:[i,t],title:"Open File"}}async function Vu(i,e,t,r,n){let s=await $u(e,i.repository)||e,o=await $u(t,i.repository)||t;(s.scheme==="data"||o.scheme==="data")&&(n===Oe.ADD&&(s=Wc),n===Oe.DELETE&&(o=Wc));const h=t.path.split("/");return{command:"vscode.diff",arguments:[s,o,`${h[h.length-1]} (Pull Request)`,r],title:"Open Changed File in PR"}}class Ys extends hr{constructor(e,t,r,n,s,o,h,S){super();this.parent=e,this.pullRequest=t,this.status=r,this.fileName=n,this.previousFileName=s,this.blobUrl=o,this.filePath=h,this.parentFilePath=S,xi(this,"description"),xi(this,"iconPath"),xi(this,"command"),xi(this,"fileChangeResourceUri"),xi(this,"contextValue"),xi(this,"childrenDisposables",[]),xi(this,"_viewed");var T;const P=(T=this.pullRequest.fileChangeViewedState[n])!=null?T:Bi.UNVIEWED;this.contextValue=`${Xs}:${Oe[r]}:${P===Bi.VIEWED?"viewed":"unviewed"}`,this.label=H.basename(n),this.description=d.workspace.asRelativePath(H.dirname(n),!1),this.description==="."&&(this.description=""),this.iconPath=d.ThemeIcon.File,this.fileChangeResourceUri=Gu(d.Uri.parse(this.blobUrl),t.number,n,r),this.updateViewed(P),this.command={command:"pr.openFileOnGitHub",title:"Open File on GitHub",arguments:[this]},this.childrenDisposables.push(this.pullRequest.onDidChangeFileViewedState(V=>{const j=V.changed.find(ue=>ue.fileName===this.fileName);j&&(this.updateViewed(j.viewed),this.refresh(this))})),this.accessibilityInformation={label:`View diffs and comments for file ${this.label}`,role:"link"}}get resourceUri(){return this.filePath.with({query:this.fileChangeResourceUri.query})}updateViewed(e){this._viewed!==e&&(this._viewed=e,this.contextValue=`${Xs}:${Oe[this.status]}:${e===Bi.VIEWED?"viewed":"unviewed"}`)}getTreeItem(){return this}}class zc extends hr{constructor(e,t,r,n,s,o,h){super();this.parent=e,this.pullRequestManager=t,this.pullRequest=r,this.change=n,this.filePath=s,this.parentFilePath=o,this.sha=h,xi(this,"iconPath"),xi(this,"fileChangeResourceUri"),xi(this,"parentSha"),xi(this,"contextValue"),xi(this,"command"),xi(this,"opts"),xi(this,"childrenDisposables",[]),xi(this,"_viewed");var S;const T=(S=this.pullRequest.fileChangeViewedState[this.fileName])!=null?S:Bi.UNVIEWED;this.contextValue=`${Xs}:${Oe[this.status]}:${T===Bi.VIEWED?"viewed":"unviewed"}`,this.label=H.basename(this.fileName),this.iconPath=d.ThemeIcon.File,this.opts={preserveFocus:!0},this.updateShowOptions(),this.fileChangeResourceUri=Gu(d.Uri.file(this.fileName),this.pullRequest.number,this.fileName,this.status),this.updateViewed(T),this.childrenDisposables.push(this.pullRequest.onDidChangeReviewThreads(P=>{[...P.added,...P.removed].some(V=>V.path===this.fileName)&&this.updateShowOptions()})),this.childrenDisposables.push(this.pullRequest.onDidChangeFileViewedState(P=>{const V=P.changed.find(j=>j.fileName===this.fileName);V&&(this.updateViewed(V.viewed),this.refresh(this))})),this.accessibilityInformation={label:`View diffs and comments for file ${this.label}`,role:"link"}}get status(){return this.change.status}get fileName(){return this.change.fileName}get blobUrl(){return this.change.blobUrl}async diffHunks(){var e;let t=[];if(this.change instanceof Ue)t=this.change.diffHunks;else if(this.status!==Oe.RENAME)try{const r=(e=this.sha)!=null?e:this.pullRequest.head.sha,n=await this.pullRequestManager.repository.diffBetween(this.pullRequest.base.sha,r,this.change.fileName);t=Mi(n)}catch(r){D.appendLine(`Failed to parse patch for outdated comments: ${r}`)}return t}get resourceUri(){return this.filePath.with({query:this.fileChangeResourceUri.query})}get description(){return d.workspace.getConfiguration(Yi).get(Bn)==="flat"?!0:""}updateViewed(e){this._viewed!==e&&(this._viewed=e,this.contextValue=`${Xs}:${Oe[this.status]}:${e===Bi.VIEWED?"viewed":"unviewed"}`)}updateShowOptions(){const e=this.pullRequest.reviewThreadsCache,r=(Pe(e,n=>n.path)[this.fileName]||[]).filter(n=>!n.isOutdated);Hc.updateFileComments(this.fileChangeResourceUri,this.pullRequest.number,this.fileName,r.length>0),r.length?(r.sort((n,s)=>n.line-s.line),this.opts.selection=new d.Range(r[0].line,0,r[0].line,0)):delete this.opts.selection}getTreeItem(){return this}openFileCommand(){return jc(this.filePath)}async openDiff(e,t){var r;const n=await Vu(e,this.parentFilePath,this.filePath,{...this.opts,...t},this.status);d.commands.executeCommand(n.command,...(r=n.arguments)!=null?r:[])}}class Nl extends zc{constructor(e,t,r,n,s,o,h,S,T,P){super(t,e,r,n,o,h,P);this.folderRepositoryManager=e,this.parent=t,this.pullRequest=r,this.previousFileName=s,this.filePath=o,this.parentFilePath=h,this.isPartial=S,this.patch=T,this.sha=P}get comments(){return this.pullRequest.comments.filter(e=>e.path===this.change.fileName&&e.position!==null)}getTreeItem(){return this}async resolve(){this.command=await Vu(this.folderRepositoryManager,this.parentFilePath,this.filePath,void 0,this.status)}}class rs extends zc{constructor(e,t,r,n,s,o,h,S,T){super(e,t,r,n,s,o,h);this.parent=e,this.pullRequest=r,this.filePath=s,this.parentFilePath=o,this.sha=h,this.isCurrent=S,this._comments=T,xi(this,"_useViewChangesCommand",!1)}get comments(){return this._comments?this._comments:this.pullRequest.comments.filter(e=>!this.sha||this.sha===this.pullRequest.head.sha?e.position&&e.path===this.change.fileName:e.path===this.change.fileName&&e.originalCommitId===this.sha)}useViewChangesCommand(){this._useViewChangesCommand=!0}async alternateCommand(){if(this.status===Oe.DELETE||this.status===Oe.ADD){const ue=this.parentFilePath.with({query:JSON.stringify({path:null,commit:null})});return{command:"vscode.diff",arguments:this.status===Oe.DELETE?[this.parentFilePath,ue,`${this.fileName}`,{preserveFocus:!0}]:[ue,this.parentFilePath,`${this.fileName}`,{preserveFocus:!0}],title:"Open Diff"}}const{path:e,ref:t,commit:r,rootPath:n}=as(this.filePath.query),s=`${r}^`,o={path:e,ref:t,commit:s,base:!0,isOutdated:!0,rootPath:n},h=this.filePath.with({query:JSON.stringify(o)});let S=this.filePath;this.isCurrent&&(S=this.pullRequestManager.repository.rootUri.with({path:H.posix.join(o.rootPath,o.path)}));const T={preserveFocus:!0},P=this.pullRequest.reviewThreadsCache,j=(Pe(P,ue=>ue.path)[this.fileName]||[]).filter(ue=>ue.isOutdated).sort((ue,Te)=>ue.line-Te.line);return j.length&&(T.selection=new d.Range(j[0].originalLine,0,j[0].originalLine,0)),{command:"vscode.diff",arguments:[h,S,`${this.fileName} from ${(r||"").substr(0,8)}`,T],title:"View Changes"}}async resolve(){this._useViewChangesCommand?this.command=await this.alternateCommand():d.workspace.getConfiguration().get("git.openDiffOnClick",!0)?this.command=await Vu(this.pullRequestManager,this.parentFilePath,this.filePath,this.opts,this.status):this.command=this.openFileCommand()}}class Ch extends hr{constructor(e,t,r,n,s,o){super();this.parent=e,this.fileName=t,this.previousFileName=r,this.status=n,this.baseBranch=s,this.headBranch=o,xi(this,"description"),xi(this,"iconPath"),xi(this,"fileChangeResourceUri"),xi(this,"command"),this.label=t,this.iconPath=d.ThemeIcon.File,this.fileChangeResourceUri=d.Uri.file(t).with({scheme:Ea,query:JSON.stringify({status:n,fileName:t})});let h=d.Uri.file(t).with({scheme:Ea,query:JSON.stringify({fileName:t,branch:s})}),S=d.Uri.file(t).with({scheme:Ea,query:JSON.stringify({fileName:t,branch:o})});switch(n){case Oe.ADD:h=d.Uri.file(t).with({scheme:Ea,query:JSON.stringify({fileName:t,branch:s,isEmpty:!0})});break;case Oe.RENAME:h=d.Uri.file(r).with({scheme:Ea,query:JSON.stringify({fileName:r,branch:s,isEmpty:!0})});break;case Oe.DELETE:S=d.Uri.file(t).with({scheme:Ea,query:JSON.stringify({fileName:t,branch:o,isEmpty:!0})});break}this.command={title:"Open Diff",command:"vscode.diff",arguments:[h,S,`${t} (Pull Request Preview)`]}}get resourceUri(){return d.Uri.file(this.fileName).with({query:this.fileChangeResourceUri.query})}getTreeItem(){return this}}function qu(i){return i.filter(e=>e instanceof rs)}var Nh=Object.defineProperty,ns=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Nh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const Ea="githubpr",Xs="filechange";class Ph{constructor(e,t,r,n,s,o,h){this.repository=e,this.baseOwner=t,this.baseBranchName=r,this._compareOwner=n,this.compareBranchName=s,this.compareHasUpstream=o,this.folderRepoManager=h,ns(this,"_view"),ns(this,"_onDidChangeTreeData",new d.EventEmitter),ns(this,"onDidChangeTreeData",this._onDidChangeTreeData.event),ns(this,"_contentProvider"),ns(this,"_disposables",[]),ns(this,"_gitHubRepository"),this._view=d.window.createTreeView("github:compareChanges",{treeDataProvider:this}),this._gitHubRepository=this.folderRepoManager.gitHubRepositories.find(S=>S.remote.owner===this._compareOwner),this._disposables.push(this._view)}get view(){return this._view}updateBaseBranch(e){this.baseBranchName=e,this._onDidChangeTreeData.fire()}updateBaseOwner(e){this.baseOwner=e,this._onDidChangeTreeData.fire()}async reveal(e,t){return this._view.reveal(e,t)}refresh(){this._onDidChangeTreeData.fire()}async updateHasUpstream(e){var t;if(((t=this.repository.state.HEAD)==null?void 0:t.name)===e){const r=await this.repository.getBranch(e);this.compareHasUpstream=!!r.upstream}else this.compareHasUpstream=!0}async updateCompareBranch(e){e&&(await this.updateHasUpstream(e),this.compareBranchName=e),this._onDidChangeTreeData.fire()}get compareOwner(){return this._compareOwner}set compareOwner(e){this._gitHubRepository=this.folderRepoManager.gitHubRepositories.find(t=>t.remote.owner===e),this._contentProvider&&this._gitHubRepository&&(this._contentProvider.gitHubRepository=this._gitHubRepository),this._compareOwner=e,this._onDidChangeTreeData.fire()}getTreeItem(e){return e.getTreeItem()}async getChildren(){if(this.compareHasUpstream)d.commands.executeCommand("setContext","github:noUpstream",!1);else return d.commands.executeCommand("setContext","github:noUpstream",!0),this._view.message=void 0,[];if(!this._gitHubRepository)return[];this._contentProvider||(this._contentProvider=new Dh(this._gitHubRepository),this._disposables.push(d.workspace.registerFileSystemProvider(Ea,this._contentProvider,{isReadonly:!0})));const{octokit:e,remote:t}=await this._gitHubRepository.ensure();try{const{data:r}=await e.repos.compareCommits({repo:t.repositoryName,owner:t.owner,base:`${this.baseOwner}:${this.baseBranchName}`,head:`${this.compareOwner}:${this.compareBranchName}`});return r.files.length?this._view.message=void 0:this._view.message=`There are no commits between the base '${this.baseBranchName}' branch and the comparing '${this.compareBranchName}' branch`,r.files.map(n=>new Ch(this,n.filename,n.previous_filename,Ir(n.status),r.merge_base_commit.sha,this.compareBranchName))}catch(r){return D.appendLine(`Comparing changes failed: ${r}`),[]}}dispose(){this._disposables.forEach(e=>e.dispose()),this._contentProvider=void 0}}class Dh extends Tr{constructor(e){super();this.gitHubRepository=e}async readFile(e){var t;const r=Ih(e);if(!r||r.isEmpty)return new TextEncoder().encode("");const{octokit:n,remote:s}=await this.gitHubRepository.ensure(),o=await n.repos.getContent({owner:s.owner,repo:s.repositoryName,path:r.fileName,ref:r.branch}),h=(t=o.data.content)!=null?t:"";return Me.Buffer.from(h,o.data.encoding)}}var Ah=Object.defineProperty,Qc=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Ah(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);let ia;class Pl extends d.Disposable{constructor(e){super(()=>this.disposables.forEach(t=>t.dispose()));this._storageUri=e,Qc(this,"SUBPATH","temp"),Qc(this,"disposables",[])}get path(){return d.Uri.joinPath(this._storageUri,this.SUBPATH)}addDisposable(e){if(this.disposables.length>30){const t=this.disposables.shift();t==null||t.dispose()}this.disposables.push(e)}async writeState(e,t,r){let n=this.path;const s=d.workspace.workspaceFolders&&d.workspace.workspaceFolders.length>0?d.workspace.workspaceFolders[0].name:void 0;s&&(n=d.Uri.joinPath(n,s)),e&&(n=d.Uri.joinPath(n,e)),await d.workspace.fs.createDirectory(n);const o=d.Uri.joinPath(n,t);await d.workspace.fs.writeFile(o,r);const h={dispose:()=>d.workspace.fs.delete(o,{recursive:!0})};return this.addDisposable(h),o}static async init(e){if(e.globalStorageUri&&!ia){ia=new Pl(e.globalStorageUri);try{await d.workspace.fs.delete(ia.path,{recursive:!0})}catch(t){D.appendLine(`TemporaryState> Error in initialization: ${t.message}`)}try{await d.workspace.fs.createDirectory(ia.path)}catch(t){D.appendLine(`TemporaryState> Error in initialization: ${t.message}`)}return e.subscriptions.push(ia),ia}}static async write(e,t,r){if(!!ia)return ia.writeState(e,t,r)}}function as(i){return JSON.parse(i)}function fr(i){try{return JSON.parse(i.query)}catch(e){}}function Ih(i){try{return JSON.parse(i.query)}catch(e){}}const Oh=["image/png","image/gif","image/jpeg","image/webp","image/tiff","image/bmp"],Wc=d.Uri.parse("data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==");async function $u(i,e){try{const{commit:t,baseCommit:r,headCommit:n,isBase:s,path:o}=JSON.parse(i.query),h=i.scheme==="review"?t:s?r:n,{object:S}=await e.getObjectDetails(h,i.fsPath),{mimetype:T}=await e.detectObjectType(S);if(T==="text/plain")return;if(Oh.indexOf(T)>-1){const P=await e.buffer(h,i.fsPath);return Pl.write(H.dirname(o),H.basename(o),P)}}catch(t){return}}function Ur(i,e,t,r,n,s,o){const h={path:e||i.path,ref:t,commit:r,base:s.base,isOutdated:n,rootPath:o.path};let S=i.path;return s.replaceFileExtension&&(S=`${S}.git`),i.with({scheme:"review",path:S,query:JSON.stringify(h)})}function Gu(i,e,t,r){const n={prNumber:e,fileName:t,status:r};return i.with({scheme:Xs,query:JSON.stringify(n)})}function Kc(i){try{return i.query?JSON.parse(i.query):void 0}catch(e){}}function ss(i,e,t,r,n,s,o){const h={baseCommit:t,headCommit:r,isBase:s,fileName:n,prNumber:e.number,status:o,remoteName:e.githubRepository.remote.remoteName},S=i.path;return i.with({scheme:"pr",path:S,query:JSON.stringify(h)})}var Bu;(function(i){i.file="file"})(Bu||(Bu={}));function os(i,e){return i.scheme===Bu.file?H.resolve(i.fsPath,e):H.posix.resolve(i.path,e)}class xh extends d.EventEmitter{handleUri(e){this.fire(e)}}const Mh=new xh;var Fh=Object.defineProperty,Hu=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Fh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Lh extends xp{constructor(e,t,r){super(e);this._folderRepositoryManager=t,this._item=r,Hu(this,"viewType","github:activePullRequest"),Hu(this,"_existingReviewers",[]),Hu(this,"_prChangeListener"),im(n=>{n&&this._item.update(n),this._postMessage({command:"update-state",state:this._item.state})},null,this._disposables),this._disposables.push(this._folderRepositoryManager.onDidMergePullRequest(n=>{this._postMessage({command:"update-state",state:Ei.Merged})}))}resolveWebviewView(e,t,r){super.resolveWebviewView(e,t,r),e.webview.html=this._getHtmlForWebview(),this.updatePullRequest(this._item)}async _onDidReceiveMessage(e){if(await super._onDidReceiveMessage(e)===this.MESSAGE_UNHANDLED)switch(e.command){case"alert":d.window.showErrorMessage(e.args);return;case"pr.close":return this.close(e);case"pr.comment":return this.createComment(e);case"pr.merge":return this.mergePullRequest(e);case"pr.deleteBranch":return this.deleteBranch(e);case"pr.readyForReview":return this.setReadyForReview(e);case"pr.approve":return this.approvePullRequest(e);case"pr.request-changes":return this.requestChanges(e);case"pr.submit":return this.submitReview(e);case"pr.openOnGitHub":return to(this._item,this._item._telemetry);case"pr.checkout-default-branch":return this.checkoutDefaultBranch(e)}}async checkoutDefaultBranch(e){try{const t=await this._folderRepositoryManager.getPullRequestRepositoryDefaultBranch(this._item);await this._folderRepositoryManager.checkoutDefaultBranch(t)}finally{this._replyMessage(e,{})}}async refresh(){await this.updatePullRequest(this._item)}async updatePullRequest(e){var t;return(!this._prChangeListener||e.number!==this._item.number)&&((t=this._prChangeListener)==null||t.dispose(),this._prChangeListener=e.onDidInvalidate(()=>this.updatePullRequest(e))),Promise.all([this._folderRepositoryManager.resolvePullRequest(e.remote.owner,e.remote.repositoryName,e.number),this._folderRepositoryManager.getPullRequestRepositoryAccessAndMergeMethods(e),e.getTimelineEvents(),e.getReviewRequests(),this._folderRepositoryManager.getBranchNameForPullRequest(e)]).then(r=>{var n,s;const[o,h,S,T,P]=r;if(!o)throw new Error(`Fail to resolve Pull Request #${e.number} in ${e.remote.owner}/${e.remote.repositoryName}`);if(this._item=o,!this._view)return;this._view.title=`${o.title} #${e.number.toString()}`;const V=e.equals(this._folderRepositoryManager.activePullRequest),j=h.hasWritePermission,ue=h.mergeMethodsAvailability,Te=j||this._item.canEdit(),Se=d.workspace.getConfiguration("githubPullRequests").get("defaultMergeMethod"),qe=Fp(ue,Se),xe=this._folderRepositoryManager.getCurrentUser(this._item);this._existingReviewers=Yp(T!=null?T:[],S!=null?S:[],o.author);const Ke=o.base&&o.head&&!o.base.repositoryCloneUrl.equals(o.head.repositoryCloneUrl)&&Eu();this._postMessage({command:"pr.initialize",pullrequest:{number:o.number,title:o.title,url:o.html_url,createdAt:o.createdAt,body:o.body,bodyHTML:o.bodyHTML,labels:o.item.labels,author:{login:o.author.login,name:o.author.name,avatarUrl:o.userAvatar,url:o.author.url},state:o.state,isCurrentlyCheckedOut:V,isRemoteBaseDeleted:o.isRemoteBaseDeleted,base:o.base.label,isRemoteHeadDeleted:o.isRemoteHeadDeleted,isLocalHeadDeleted:!P,head:(s=(n=o.head)==null?void 0:n.label)!=null?s:"",canEdit:Te,hasWritePermission:j,mergeable:o.item.mergeable,isDraft:o.isDraft,status:{statuses:[]},events:[],mergeMethodsAvailability:ue,defaultMergeMethod:qe,isIssue:!1,isAuthor:xe.login===o.author.login,reviewers:this._existingReviewers,continueOnGitHub:Ke}})}).catch(r=>{d.window.showErrorMessage(Re(r))})}close(e){d.commands.executeCommand("pr.close",this._item,e.args).then(t=>{t&&this._replyMessage(e,{value:t})})}createComment(e){this._item.createIssueComment(e.args).then(t=>{this._replyMessage(e,{value:t})})}updateReviewers(e){if(e){const t=this._existingReviewers.find(r=>e.user.login===r.reviewer.login);t?t.state=e.state:this._existingReviewers.push({reviewer:e.user,state:e.state})}}approvePullRequest(e){this._item.approve(e.args).then(t=>{this.updateReviewers(t),this._replyMessage(e,{review:t,reviewers:this._existingReviewers}),d.commands.executeCommand("pr.refreshList")},t=>{d.window.showErrorMessage(`Approving pull request failed. ${Re(t)}`),this._throwError(e,`${Re(t)}`)})}requestChanges(e){this._item.requestChanges(e.args).then(t=>{this.updateReviewers(t),this._replyMessage(e,{review:t,reviewers:this._existingReviewers})},t=>{d.window.showErrorMessage(`Requesting changes failed. ${Re(t)}`),this._throwError(e,`${Re(t)}`)})}submitReview(e){this._item.submitReview(xn.Comment,e.args).then(t=>{this.updateReviewers(t),this._replyMessage(e,{review:t,reviewers:this._existingReviewers})},t=>{d.window.showErrorMessage(`Submitting review failed. ${Re(t)}`),this._throwError(e,`${Re(t)}`)})}async deleteBranch(e){const t=await this._folderRepositoryManager.getBranchNameForPullRequest(this._item),r=[];if(this._item.isResolved()){const o=this._item.head.ref;await this._folderRepositoryManager.getPullRequestRepositoryDefaultBranch(this._item)===this._item.head.ref||r.push({label:`Delete remote branch ${this._item.remote.remoteName}/${o}`,description:`${this._item.remote.normalizedHost}/${this._item.remote.owner}/${this._item.remote.repositoryName}`,type:"upstream",picked:!0})}if(t){const o=d.workspace.getConfiguration("githubPullRequests").get("defaultDeletionMethod.selectLocalBranch");r.push({label:`Delete local branch ${t.branch}`,type:"local",picked:!!o});const h=d.workspace.getConfiguration("githubPullRequests").get("defaultDeletionMethod.selectRemote");t.remote&&t.createdForPullRequest&&!t.remoteInUse&&r.push({label:`Delete remote ${t.remote}, which is no longer used by any other branch`,type:"remote",picked:!!h})}if(d.env.remoteName==="codespaces"&&r.push({label:"Suspend Codespace",type:"suspend"}),!r.length){d.window.showWarningMessage(`There is no longer an upstream or local branch for Pull Request #${this._item.number}`),this._replyMessage(e,{cancelled:!0});return}const n=await d.window.showQuickPick(r,{canPickMany:!0,ignoreFocusOut:!0}),s=[];if(n){const o=this._item.equals(this._folderRepositoryManager.activePullRequest),h=n.map(async S=>{switch(S.type){case"upstream":return await this._folderRepositoryManager.deleteBranch(this._item),s.push(S.type),this._folderRepositoryManager.repository.fetch({prune:!0});case"local":if(o){if(this._folderRepositoryManager.repository.state.workingTreeChanges.length)if(await d.window.showWarningMessage("Your local changes will be lost, do you want to continue?",{modal:!0},"Yes")==="Yes")await d.commands.executeCommand("git.cleanAll");else return;const T=await this._folderRepositoryManager.getPullRequestRepositoryDefaultBranch(this._item);await this._folderRepositoryManager.repository.checkout(T)}return await this._folderRepositoryManager.repository.deleteBranch(t.branch,!0),s.push(S.type);case"remote":return await this._folderRepositoryManager.repository.removeRemote(t.remote),s.push(S.type);case"suspend":return await d.commands.executeCommand("github.codespaces.disconnectSuspend"),s.push(S.type)}});await Promise.all(h),d.commands.executeCommand("pr.refreshList"),this._postMessage({command:"pr.deleteBranch",branchTypes:s})}else this._replyMessage(e,{cancelled:!0})}setReadyForReview(e){this._item.setReadyForReview().then(t=>{d.commands.executeCommand("pr.refreshList"),this._replyMessage(e,{isDraft:t})}).catch(t=>{d.window.showErrorMessage(`Unable to set PR ready for review. ${Re(t)}`),this._throwError(e,{})})}async mergePullRequest(e){const{title:t,description:r,method:n}=e.args;if(await d.window.showInformationMessage("Merge this pull request?",{modal:!0},"Yes")!=="Yes"){this._replyMessage(e,{state:Ei.Open});return}this._folderRepositoryManager.mergePullRequest(this._item,t,r,n).then(o=>{d.commands.executeCommand("pr.refreshList"),o.merged||d.window.showErrorMessage(`Merging PR failed: ${o.message}`),this._replyMessage(e,{state:o.merged?Ei.Merged:Ei.Open})}).catch(o=>{d.window.showErrorMessage(`Unable to merge pull request. ${Re(o)}`),this._throwError(e,{})})}_getHtmlForWebview(){const e=vu(),t=d.Uri.joinPath(this._extensionUri,"dist","webview-open-pr-view.js");return`<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src vscode-resource: https:; script-src 'nonce-${e}'; style-src vscode-resource: 'unsafe-inline' http: https: data:;">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
||
<title>Active Pull Request</title>
|
||
</head>
|
||
<body>
|
||
<div id="app"></div>
|
||
<script nonce="${e}" src="${this._webview.asWebviewUri(t).toString()}"></script>
|
||
</body>
|
||
</html>`}}class Dl{constructor(e,t){this.reviewManager=e,this.folderRepositoryManager=t}static getSettingsValue(){return d.workspace.getConfiguration(gn).get(lo)}static registerProvider(e,t,r){e.push(d.window.registerTerminalLinkProvider(new Dl(t,r)))}provideTerminalLinks(e,t){var r;const n=e.line.indexOf("https://github.com");if(n===-1)return[];const s=e.line.substring(n),o=new RegExp(/https:\/\/github\.com\/(.*)\/(.*)\/pull\/new\/(.*)/),h=s.match(o);if(h&&h.length===4){const S=h[1],T=h[2],P=h[3];if(this.folderRepositoryManager.gitHubRepositories.findIndex(j=>j.remote.owner===S&&j.remote.repositoryName===T)>-1&&((r=this.reviewManager.repository.state.HEAD)==null?void 0:r.name)===P)return[{startIndex:n,length:e.line.length-n,tooltip:"Create a Pull Request",url:s}]}return[]}openLink(e){return d.env.openExternal(d.Uri.parse(e.url))}handleTerminalLink(e){const t=Dl.getSettingsValue();if(t==="github"){this.openLink(e);return}if(t==="vscode"){this.reviewManager.createPullRequest();return}const r="Yes",n="Don't show again";d.window.showInformationMessage("Do you want to create a pull request using the GitHub Pull Requests and Issues extension?",r,"No, continue to github.com",n).then(s=>{switch(s){case r:{this.reviewManager.createPullRequest();break}case n:{d.workspace.getConfiguration(gn).update(lo,"github",d.ConfigurationTarget.Global),this.openLink(e);break}default:this.openLink(e)}})}}var Uh=Object.defineProperty,vr=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Uh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Vh extends xp{constructor(e,t,r,n){super(e);this._folderRepositoryManager=t,this._pullRequestDefaults=r,vr(this,"viewType","github:createPullRequest"),vr(this,"_onDone",new d.EventEmitter),vr(this,"onDone",this._onDone.event),vr(this,"_onDidChangeBaseRemote",new d.EventEmitter),vr(this,"onDidChangeBaseRemote",this._onDidChangeBaseRemote.event),vr(this,"_onDidChangeBaseBranch",new d.EventEmitter),vr(this,"onDidChangeBaseBranch",this._onDidChangeBaseBranch.event),vr(this,"_onDidChangeCompareRemote",new d.EventEmitter),vr(this,"onDidChangeCompareRemote",this._onDidChangeCompareRemote.event),vr(this,"_onDidChangeCompareBranch",new d.EventEmitter),vr(this,"onDidChangeCompareBranch",this._onDidChangeCompareBranch.event),vr(this,"_compareBranch"),vr(this,"_baseBranch"),vr(this,"_firstLoad",!0),vr(this,"_defaultCompareBranch"),this._defaultCompareBranch=n}resolveWebviewView(e,t,r){super.resolveWebviewView(e,t,r),e.webview.html=this._getHtmlForWebview(),this._firstLoad?(this._firstLoad=!1,this.initializeParams(!0)):this.initializeParams()}get defaultCompareBranch(){return this._defaultCompareBranch}set defaultCompareBranch(e){var t,r;e&&((e==null?void 0:e.name)!==this._defaultCompareBranch.name||((t=e==null?void 0:e.upstream)==null?void 0:t.remote)!==((r=this._defaultCompareBranch.upstream)==null?void 0:r.remote))&&(this._defaultCompareBranch=e,this.initializeParams(),this._onDidChangeCompareBranch.fire(this._defaultCompareBranch.name))}show(e){e&&(this.defaultCompareBranch=e),super.show()}async getTotalCommits(e,t){var r;const n=await this._folderRepositoryManager.getOrigin(e);if(e.upstream){const s=this._folderRepositoryManager.findRepo(is(e.upstream.remote));if(s){const o=`${s.remote.owner}:${(r=e.name)!=null?r:""}`,h=`${this._pullRequestDefaults.owner}:${t}`,{total_commits:S}=await n.compareCommits(h,o);return S}}else if(e.commit){const s=await this._folderRepositoryManager.repository.getBranch(t);if(s.commit)return(await this._folderRepositoryManager.repository.diffBetween(s.commit,e.commit)).length}return 0}async getTitle(e,t){const r=await this._folderRepositoryManager.getOrigin(e);let n=this._pullRequestDefaults.base===e.name;try{await this.getTotalCommits(e,t)>1&&(n=await r.getDefaultBranch()!==e.name)}catch(s){}if(n){const s=e.name;return s?`${s.charAt(0).toUpperCase()}${s.slice(1)}`:""}else return e.name?Bc(await this._folderRepositoryManager.getTipCommitMessage(e.name)).title:""}async getPullRequestTemplate(){const e=await this._folderRepositoryManager.getPullRequestTemplates();if(e[0])try{const t=await d.workspace.fs.readFile(e[0]);return new TextDecoder("utf-8").decode(t)}catch(t){D.appendLine(`Reading pull request template failed: ${t}`);return}}async getDescription(e,t){let r;try{await this.getTotalCommits(e,t)===1&&e.name&&(r=Bc(await this._folderRepositoryManager.getTipCommitMessage(e.name)).body)}catch(s){}const n=await this.getPullRequestTemplate();return n&&r?`${r}
|
||
|
||
${n}`:n||(r&&this._pullRequestDefaults.base!==e.name?r:"")}async initializeParams(e=!1){var t,r;if(!this.defaultCompareBranch)throw new Vc(this._folderRepositoryManager.repository);const n={owner:this._pullRequestDefaults.owner,repositoryName:this._pullRequestDefaults.repo},s=await this._folderRepositoryManager.getOrigin(this.defaultCompareBranch),o={owner:s.remote.owner,repositoryName:s.remote.repositoryName},h=this._pullRequestDefaults.base,[S,T,P,V,j]=await Promise.all([this._folderRepositoryManager.getGitHubRemotes(),this._folderRepositoryManager.getAllGitHubRemotes(),s.listBranches(this._pullRequestDefaults.owner,this._pullRequestDefaults.repo),this.getTitle(this.defaultCompareBranch,h),this.getDescription(this.defaultCompareBranch,h)]),ue=S.map(xe=>({owner:xe.owner,repositoryName:xe.repositoryName})),Te=T.map(xe=>({owner:xe.owner,repositoryName:xe.repositoryName}));P.includes(this._pullRequestDefaults.base)||(P.push(this._pullRequestDefaults.base),P.sort());let Se=P;o.owner!==n.owner&&(Se=await s.listBranches(o.owner,o.repositoryName)),this.defaultCompareBranch.name&&!Se.includes(this.defaultCompareBranch.name)&&(Se.push(this.defaultCompareBranch.name),Se.sort());const qe={availableBaseRemotes:ue,availableCompareRemotes:Te,defaultBaseRemote:n,defaultBaseBranch:h,defaultCompareRemote:o,defaultCompareBranch:(t=this.defaultCompareBranch.name)!=null?t:"",branchesForRemote:P,branchesForCompare:Se,defaultTitle:V,defaultDescription:j,isDraft:!1};this._compareBranch=(r=this.defaultCompareBranch.name)!=null?r:"",this._baseBranch=h,this._postMessage({command:e?"reset":"pr.initialize",params:qe})}async changeRemote(e,t){var r,n,s,o;const{owner:h,repositoryName:S}=e.args;let T=this._folderRepositoryManager.findRepo(ue=>h===ue.remote.owner&&S===ue.remote.repositoryName);if(T||(T=this._folderRepositoryManager.createGitHubRepositoryFromOwnerName(h,S)),!T)throw new Error("No matching GitHub repository found.");const P=await T.getDefaultBranch(),V=await T.listBranches(h,S);!t&&((r=this.defaultCompareBranch)==null?void 0:r.name)&&!V.includes(this.defaultCompareBranch.name)&&(V.push(this.defaultCompareBranch.name),V.sort());let j;return t?(j=P,this._baseBranch=P,this._onDidChangeBaseRemote.fire({owner:h,repositoryName:S}),this._onDidChangeBaseBranch.fire(P)):(((n=this.defaultCompareBranch)==null?void 0:n.name)&&(j=(s=this.defaultCompareBranch)==null?void 0:s.name,this._compareBranch=(o=this.defaultCompareBranch)==null?void 0:o.name),this._onDidChangeCompareRemote.fire({owner:h,repositoryName:S})),this._replyMessage(e,{branches:V,defaultBranch:j})}async create(e){try{const t=e.args.compareOwner,r=e.args.compareRepo,n=e.args.compareBranch,s=`${t}/${r}`;let h=(await this._folderRepositoryManager.repository.getBranch(n)).upstream?this._folderRepositoryManager.findRepo(V=>V.remote.owner===t&&V.remote.repositoryName===r):void 0,S=h==null?void 0:h.remote;if((!S||S.owner!==t||S.repositoryName!==r)&&await d.window.showInformationMessage(`There is no upstream branch for '${n}'.
|
||
|
||
Do you want to publish it and then create the pull request?`,{modal:!0},"Publish branch")==="Publish branch"){let j;const ue=this._folderRepositoryManager.repository.state.remotes.find(Te=>{if(!Te.pushUrl)return!1;const Se=new wl(Te.name,Te.pushUrl,new Or(Te.pushUrl));return Se.owner===t&&Se.repositoryName===r?(j=Se,!0):!1});ue&&j?(await this._folderRepositoryManager.repository.push(ue.name,n,!0),S=j,h=this._folderRepositoryManager.findRepo(is(S.remoteName))):this._throwError(e,`The current repository does not have a push remote for ${s}`)}if(!S){this._throwError(e,"No upstream for the compare branch.");return}if(!h)throw new Error(`Unable to find GitHub repository matching '${S.remoteName}'. You can add '${S.remoteName}' to the setting "githubPullRequests.remotes" to ensure '${S.remoteName}' is found.`);const T=`${h.remote.owner}:${n}`,P=await this._folderRepositoryManager.createPullRequest({...e.args,head:T});P?(await this._replyMessage(e,{}),await Wr.associateBranchWithPullRequest(this._folderRepositoryManager.repository,P,n),this._onDone.fire(P)):this._throwError(e,"There must be a difference in commits to create a pull request.")}catch(t){this._throwError(e,t.message)}}async changeBranch(e,t){const r=typeof e.args=="string"?e.args:e.args.name;let n;if(t)this._baseBranch=r,this._onDidChangeBaseBranch.fire(r);else try{n=await this._folderRepositoryManager.repository.getBranch(r),this._onDidChangeCompareBranch.fire(n.name)}catch(h){d.window.showErrorMessage("Branch does not exist locally.")}n=n!=null?n:await this._folderRepositoryManager.repository.getBranch(this._compareBranch);const s=await this.getTitle(n,this._baseBranch),o=await this.getDescription(n,this._baseBranch);return this._replyMessage(e,{title:s,description:o})}async _onDidReceiveMessage(e){if(await super._onDidReceiveMessage(e)===this.MESSAGE_UNHANDLED)switch(e.command){case"pr.cancelCreate":return d.commands.executeCommand("setContext","github:createPullRequest",!1),this._onDone.fire(void 0),this._replyMessage(e,void 0);case"pr.create":return this.create(e);case"pr.changeBaseRemote":return this.changeRemote(e,!0);case"pr.changeBaseBranch":return this.changeBranch(e,!0);case"pr.changeCompareRemote":return this.changeRemote(e,!1);case"pr.changeCompareBranch":return this.changeBranch(e,!1);default:d.window.showErrorMessage("Unsupported webview message")}}_getHtmlForWebview(){const e=vu(),t=d.Uri.joinPath(this._extensionUri,"dist","webview-create-pr-view.js");return`<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src vscode-resource: https:; script-src 'nonce-${e}'; style-src vscode-resource: 'unsafe-inline' http: https: data:;">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
||
<title>Create Pull Request</title>
|
||
</head>
|
||
<body>
|
||
<div id="app"></div>
|
||
<script nonce="${e}" src="${this._webview.asWebviewUri(t).toString()}"></script>
|
||
</body>
|
||
</html>`}}var qh=Object.defineProperty,Js=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?qh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class $h{constructor(e){this.repository=e,Js(this,"_disposables",[]),Js(this,"_createPRViewProvider"),Js(this,"_treeView"),Js(this,"_onDidCreate",new d.EventEmitter),Js(this,"onDidCreate",this._onDidCreate.event)}registerListeners(e){this._disposables.push(this._createPRViewProvider.onDone(async t=>{var r,n;d.commands.executeCommand("setContext","github:createPullRequest",!1),(r=this._createPRViewProvider)==null||r.dispose(),this._createPRViewProvider=void 0,(n=this._treeView)==null||n.dispose(),this._treeView=void 0,this._disposables.forEach(s=>s.dispose()),t&&this._onDidCreate.fire(t)})),this._disposables.push(this._createPRViewProvider.onDidChangeCompareBranch(t=>{var r;(r=this._treeView)==null||r.updateCompareBranch(t)})),this._disposables.push(this._createPRViewProvider.onDidChangeCompareRemote(t=>{this._treeView&&(this._treeView.compareOwner=t.owner)})),this._disposables.push(this._createPRViewProvider.onDidChangeBaseBranch(t=>{var r;(r=this._treeView)==null||r.updateBaseBranch(t)})),this._disposables.push(this._createPRViewProvider.onDidChangeBaseRemote(t=>{var r;(r=this._treeView)==null||r.updateBaseOwner(t.owner)})),e&&this._disposables.push(this.repository.state.onDidChange(t=>{var r;this._createPRViewProvider&&this.repository.state.HEAD&&(this._createPRViewProvider.defaultCompareBranch=this.repository.state.HEAD,(r=this._treeView)==null||r.updateCompareBranch())}))}get isCreatingPullRequest(){return!!this._createPRViewProvider}async ensureDefaultsAreLocal(e,t){if(e.gitHubRepositories.some(r=>r.remote.owner===t.owner&&r.remote.repositoryName===t.repo))return t;{const r=await e.getOrigin(),n=await e.getMetadata(r.remote.remoteName);return{owner:n.owner.login,repo:n.name,base:n.default_branch}}}async create(e,t,r){var n;await t.loginAndUpdate(),d.commands.executeCommand("setContext","github:createPullRequest",!0);const s=(n=r?await t.repository.getBranch(r):void 0)!=null?n:t.repository.state.HEAD;if(!this._createPRViewProvider){const o=await this.ensureDefaultsAreLocal(t,await t.getPullRequestDefaults(s));this._createPRViewProvider=new Vh(e,t,o,s);const h=await t.getOrigin(s);this._treeView=new Ph(this.repository,o.owner,o.base,h.remote.owner,s.name,!!s.upstream,t),this.registerListeners(!r),this._disposables.push(d.window.registerWebviewViewProvider(this._createPRViewProvider.viewType,this._createPRViewProvider))}this._createPRViewProvider.show(s)}}var Gh=Object.defineProperty,Yc=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Gh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Xc{constructor(e,t,r,n,s=`${e}:${t}`){this.owner=e,this.name=t,this.description=r,this.remote=n,this.label=s,Yc(this,"detail"),Yc(this,"picked")}static fromRemote(e){return new this(e.owner,e.repositoryName,e.url,e)}}function Zs(i){return i===void 0||i===0?0:i-1}function L0(i,e){for(let t=0;t<i.length;t++){const r=i[t];for(let n=0;n<r.diffLines.length;n++)if(r.diffLines[n].positionInHunk===e)return r.diffLines[n]}}function ju(i,e){const t=Gi(i);let r=t.next(),n=0;for(;!r.done;){const s=r.value;if(!(s.oldLineNumber>e))if(s.oldLineNumber+s.oldLength-1<e)n+=s.newLength-s.oldLength;else return n+=s.newLength-s.oldLength,e+n;r=t.next()}return e+n}function zu(i,e){const t=Gi(i);let r=t.next(),n=0;for(;!r.done;){const s=r.value;if(!(s.newLineNumber>e))if(s.newLineNumber+s.newLength-1<e)n+=s.oldLength-s.newLength;else return n+=s.oldLength-s.newLength,e+n;r=t.next()}return e+n}function Jc(i,e){const t=[];for(let r=0;r<i.length;r++){const n=i[r];let s,o;if(e){let h;for(let S=0;S<n.diffLines.length;S++){const T=n.diffLines[S];T.type===ft.Delete?(s!==void 0||(s=Zs(T.oldLineNumber)),h=Zs(T.oldLineNumber)):s!==void 0&&h!==void 0&&(t.push(new d.Range(s,0,h,0)),s=void 0,h=void 0)}s!==void 0&&h!==void 0&&(t.push(new d.Range(s,0,h,0)),s=void 0,h=void 0)}else n.newLineNumber&&(s=Zs(n.newLineNumber),o=Zs(n.newLength),t.push(new d.Range(s,0,s+o,0)))}return t}var Bh=Object.defineProperty,mn=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Bh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Hh{constructor(e,t,r,n,s){this._reviewManager=e,this._reposManager=t,this._repository=r,this._reviewModel=n,this._sessionState=s,mn(this,"_localToDispose",[]),mn(this,"_onDidChangeComments",new d.EventEmitter),mn(this,"onDidChangeComments",this._onDidChangeComments.event),mn(this,"_commentHandlerId"),mn(this,"_commentController"),mn(this,"_workspaceFileChangeCommentThreads",{}),mn(this,"_reviewSchemeFileChangeCommentThreads",{}),mn(this,"_obsoleteFileChangeCommentThreads",{}),mn(this,"_visibleNormalTextEditors",[]),mn(this,"_pendingCommentThreadAdds",[]),this._commentController=d.comments.createCommentController(`github-review-${t.activePullRequest.number}`,t.activePullRequest.title),this._commentController.commentingRangeProvider=this,this._commentController.reactionHandler=this.toggleReaction.bind(this),this._localToDispose.push(this._commentController),this._commentHandlerId=Ip(),ei(this._commentHandlerId,this)}get commentController(){return this._commentController}async initialize(){this._visibleNormalTextEditors=d.window.visibleTextEditors.filter(e=>e.document.uri.scheme!=="comment"),await this._reposManager.activePullRequest.validateDraftMode(),await this.initializeCommentThreads(),await this.registerListeners()}createOutdatedCommentThread(e,t){const r=t.comments[0].originalCommitId,n=d.Uri.file(H.join(`commit~${r.substr(0,8)}`,e)),s=Ur(n,e,void 0,r,!0,{base:t.diffSide===Yt.LEFT},this._repository.rootUri),o=new d.Range(new d.Position(t.originalLine-1,0),new d.Position(t.originalLine-1,0));return js(s,o,t,this._commentController)}async createWorkspaceCommentThread(e,t,r){let n=r.line;const s=await this._repository.diffWithHEAD(t);s&&(n=ju(s,r.line));const o=new d.Range(new d.Position(n-1,0),new d.Position(n-1,0));return js(e,o,r,this._commentController)}createReviewCommentThread(e,t,r){var n;if(!((n=this._reposManager.activePullRequest)==null?void 0:n.mergeBase))throw new Error("Cannot create review comment thread without an active pull request base.");const s=Ur(e,t,void 0,this._reposManager.activePullRequest.mergeBase,!1,{base:!0},this._repository.rootUri),o=new d.Range(new d.Position(r.line-1,0),new d.Position(r.line-1,0));return js(s,o,r,this._commentController)}async doInitializeCommentThreads(e){const t=Pe(e,r=>r.path);Object.keys(t).forEach(r=>{const n=t[r],s=n[0];if(s){const o=H.join(this._repository.rootUri.path,s.path).replace(/\\/g,"/"),h=this._repository.rootUri.with({path:o});let S=[],T=[],P=[];const V=n.map(async j=>{j.isOutdated?P.push(this.createOutdatedCommentThread(r,j)):j.diffSide===Yt.RIGHT?S.push(await this.createWorkspaceCommentThread(h,r,j)):T.push(this.createReviewCommentThread(h,r,j))});Promise.all(V),this._workspaceFileChangeCommentThreads[r]=S,this._reviewSchemeFileChangeCommentThreads[r]=T,this._obsoleteFileChangeCommentThreads[r]=P}})}async initializeCommentThreads(){const e=this._reposManager.activePullRequest;if(!(!e||!e.isResolved()))return this.doInitializeCommentThreads(e.reviewThreadsCache)}async registerListeners(){this._localToDispose.push(this._reposManager.activePullRequest.onDidChangePendingReviewState(e=>{[this._workspaceFileChangeCommentThreads,this._obsoleteFileChangeCommentThreads,this._reviewSchemeFileChangeCommentThreads].forEach(t=>{for(const r in t)t[r].forEach(n=>{$p(n,e),Wa(n)})})})),this._localToDispose.push(this._reposManager.activePullRequest.onDidChangeReviewThreads(e=>{e.added.forEach(async t=>{const{path:r}=t,n=this._pendingCommentThreadAdds.findIndex(async h=>{const S=this.gitRelativeRootPath(h.uri.path);if(S!==t.path)return!1;const T=await this.getContentDiff(h.uri,S);return zu(T,h.range.start.line)+1===t.line});let s;if(n>-1)s=this._pendingCommentThreadAdds[n],s.gitHubThreadId=t.id,s.comments=t.comments.map(h=>new Ui(h,s)),zs(s,t),this._pendingCommentThreadAdds.splice(n,1);else{const h=H.join(this._repository.rootUri.path,r).replace(/\\/g,"/"),S=this._repository.rootUri.with({path:h});t.isOutdated?s=this.createOutdatedCommentThread(r,t):t.diffSide===Yt.RIGHT?s=await this.createWorkspaceCommentThread(S,r,t):s=this.createReviewCommentThread(S,r,t)}const o=t.isOutdated?this._obsoleteFileChangeCommentThreads:t.diffSide===Yt.RIGHT?this._workspaceFileChangeCommentThreads:this._reviewSchemeFileChangeCommentThreads;o[r]?o[r].push(s):o[r]=[s]}),e.changed.forEach(t=>{const r=t.isOutdated?this._obsoleteFileChangeCommentThreads:t.diffSide===Yt.RIGHT?this._workspaceFileChangeCommentThreads:this._reviewSchemeFileChangeCommentThreads,n=r[t.path].findIndex(s=>s.gitHubThreadId===t.id);if(n>-1){const s=r[t.path][n];zs(s,t)}}),e.removed.forEach(t=>{const r=t.isOutdated?this._obsoleteFileChangeCommentThreads:t.diffSide===Yt.RIGHT?this._workspaceFileChangeCommentThreads:this._reviewSchemeFileChangeCommentThreads,n=r[t.path].findIndex(s=>s.gitHubThreadId===t.id);if(n>-1){const s=r[t.path][n];r[t.path].splice(n,1),s.dispose()}})})),this._localToDispose.push(this._sessionState.onDidChangeCommentsExpandState(e=>{this.updateCommentExpandState(e)}))}updateCommentExpandState(e){if(!this._reposManager.activePullRequest)return;function t(o,h){if(h.size!==0)for(const S of h.keys()){const T=h.get(S),P=o[S];for(const V of P){const j=T.get(V.gitHubThreadId);zs(V,j,e)}}}const r=new Map,n=new Map,s=new Map;for(const o of this._reposManager.activePullRequest.reviewThreadsCache){let h;o.isOutdated?h=r:o.diffSide===Yt.RIGHT?h=s:h=n,h.has(o.path)||h.set(o.path,new Map),h.get(o.path).set(o.id,o)}t(this._obsoleteFileChangeCommentThreads,r),t(this._reviewSchemeFileChangeCommentThreads,n),t(this._workspaceFileChangeCommentThreads,s)}visibleEditorsEqual(e,t){if(e=e.filter(r=>r.document.uri.scheme!=="comment"),t=t.filter(r=>r.document.uri.scheme!=="comment"),e=Ce(e,r=>r.document.uri.toString()),t=Ce(t,r=>r.document.uri.toString()),e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!t.find(s=>s.document.uri.toString()===e[r].document.uri.toString()))return!1;return!0}hasCommentThread(e){if(e.uri.scheme==="review")return!0;const t=d.workspace.getWorkspaceFolder(e.uri);return t?!!(e.uri.scheme===t.uri.scheme&&e.uri.fsPath.startsWith(this._repository.rootUri.fsPath)):!1}async provideCommentingRanges(e,t){let r=e.uri.query&&e.uri.query!==""?as(e.uri.query):void 0;if(r){const s=this.findMatchedFileChangeForReviewDiffView(this._reviewModel.localFileChanges,e.uri);if(s)return Jc(await s.diffHunks(),r.base)}const n=d.workspace.getWorkspaceFolder(e.uri);if(!!n&&e.uri.scheme===n.uri.scheme){if(!this._reposManager.activePullRequest.isResolved())return;const s=this.gitRelativeRootPath(e.uri.path),o=qu(this._reviewModel.localFileChanges).find(S=>S.fileName===s),h=[];if(o){const S=await o.diffHunks();if(o.status===Oe.RENAME&&S.length===0)return[];const T=await this.getContentDiff(e.uri,o.fileName);for(let P=0;P<S.length;P++){const V=S[P],j=ju(T,V.newLineNumber),ue=ju(T,V.newLineNumber+V.newLength-1);j>0&&ue>0&&h.push(new d.Range(j-1,0,ue-1,0))}}return h}}async getContentDiff(e,t){var r;const n=d.window.visibleTextEditors.find(s=>s.document.uri.toString()===e.toString());if(!((r=this._reposManager.activePullRequest)==null?void 0:r.head))throw new Error("Cannot get content diff without an active pull request head.");if(n&&n.document.isDirty){const s=n.document.getText(),h=(await this._repository.getObjectDetails(this._reposManager.activePullRequest.head.sha,t)).object,S=await this._repository.hashObject(s);return await this._repository.diffBlobs(h,S)}else return await this._repository.diffWith(this._reposManager.activePullRequest.head.sha,t)}findMatchedFileChangeForReviewDiffView(e,t){const r=as(t.query),n=e.filter(s=>{if(s instanceof Ys||s.fileName!==r.path)return!1;if(s.filePath.scheme!=="review"&&s.sha===r.commit)return!0;const o=s.filePath.query?JSON.parse(s.filePath.query):void 0;if(o&&o.commit===r.commit)return!0;const h=s.parentFilePath.query?JSON.parse(s.parentFilePath.query):void 0;return!!(h&&h.commit===r.commit)});if(n&&n.length)return n[0]}gitRelativeRootPath(e){return H.relative(this._repository.rootUri.path,e).replace(/\\/g,"/")}getCommentSide(e){return e.uri.scheme==="review"&&as(e.uri.query).base?Yt.LEFT:Yt.RIGHT}async startReview(e,t){const r=e.comments.length,n=this.optimisticallyAddComment(e,t,!0);try{if(r){const s=e.comments[0];if(s instanceof Ui)await this._reposManager.activePullRequest.createCommentReply(t,s._rawComment.graphNodeId,!1);else throw new Error("Cannot reply to temporary comment")}else{const s=this.gitRelativeRootPath(e.uri.path),o=this.getCommentSide(e);this._pendingCommentThreadAdds.push(e);let h;if(o===Yt.RIGHT){const S=await this.getContentDiff(e.uri,s);h=zu(S,e.range.start.line)}else h=e.range.start.line;await this._reposManager.activePullRequest.createReviewThread(t,s,h+1,o)}}catch(s){d.window.showErrorMessage(`Starting review failed: ${s}`),e.comments=e.comments.map(o=>(o instanceof Nr&&o.id===n&&(o.mode=d.CommentMode.Editing),o))}}async openReview(){await this._reviewManager.openDescription(),Mr.scrollToReview()}optimisticallyAddComment(e,t,r){const n=this._reposManager.getCurrentUser(this._reposManager.activePullRequest),s=new Nr(e,t,r,n);return this.updateCommentThreadComments(e,[...e.comments,s]),s.id}updateCommentThreadComments(e,t){e.comments=t,Wa(e)}optimisticallyEditComment(e,t){const r=this._reposManager.getCurrentUser(this._reposManager.activePullRequest),n=new Nr(e,t.body instanceof d.MarkdownString?t.body.value:t.body,!!t.label,r,t);return e.comments=e.comments.map(s=>s instanceof Ui&&s.commentId===t.commentId?n:s),n.id}async createOrReplyComment(e,t,r,n){var s;if(!this._reposManager.activePullRequest)throw new Error("Cannot create comment without an active pull request.");const o=e.comments.length,h=r?!1:n!==void 0?n:this._reposManager.activePullRequest.hasPendingReview,S=this.optimisticallyAddComment(e,t,h);try{if(o){const T=e.comments[0];if(T instanceof Ui)await this._reposManager.activePullRequest.createCommentReply(t,T._rawComment.graphNodeId,r);else throw new Error("Cannot reply to temporary comment")}else{const T=this.gitRelativeRootPath(e.uri.path);this._pendingCommentThreadAdds.push(e);const P=this.getCommentSide(e);let V;if(P===Yt.RIGHT){const j=await this.getContentDiff(e.uri,T);V=zu(j,e.range.start.line)}else V=e.range.start.line;await this._reposManager.activePullRequest.createReviewThread(t,T,V+1,P,r)}r&&await this._reposManager.activePullRequest.submitReview()}catch(T){((s=T.graphQLErrors)==null?void 0:s.length)&&T.graphQLErrors[0].type==="NOT_FOUND"?d.window.showWarningMessage("The comment that you're replying to was deleted. Refresh to update.","Refresh").then(P=>{P==="Refresh"&&this._reviewManager.updateComments()}):d.window.showErrorMessage(`Creating comment failed: ${T}`),e.comments=e.comments.map(P=>(P instanceof Nr&&P.id===S&&(P.mode=d.CommentMode.Editing),P))}}async createCommentOnResolve(e,t){if(!this._reposManager.activePullRequest)throw new Error("Cannot create comment on resolve without an active pull request.");const r=await this._reposManager.activePullRequest.getPendingReviewId();await this.createOrReplyComment(e,t,!r)}async resolveReviewThread(e,t){try{t&&await this.createCommentOnResolve(e,t),await this._reposManager.activePullRequest.resolveReviewThread(e.gitHubThreadId)}catch(r){d.window.showErrorMessage(`Resolving conversation failed: ${r}`)}}async unresolveReviewThread(e,t){try{t&&await this.createCommentOnResolve(e,t),await this._reposManager.activePullRequest.unresolveReviewThread(e.gitHubThreadId)}catch(r){d.window.showErrorMessage(`Unresolving conversation failed: ${r}`)}}async editComment(e,t){if(t instanceof Ui){const r=this.optimisticallyEditComment(e,t);try{if(!this._reposManager.activePullRequest)throw new Error("Unable to find active pull request");await this._reposManager.activePullRequest.editReviewComment(t._rawComment,t.body instanceof d.MarkdownString?t.body.value:t.body)}catch(n){d.window.showErrorMessage(Re(n)),e.comments=e.comments.map(s=>s instanceof Nr&&s.id===r?new Ui(t._rawComment,e):s)}}else this.createOrReplyComment(e,t.body instanceof d.MarkdownString?t.body.value:t.body,!1)}async deleteComment(e,t){try{if(!this._reposManager.activePullRequest)throw new Error("Unable to find active pull request");t instanceof Ui?await this._reposManager.activePullRequest.deleteReviewComment(t.commentId):e.comments=e.comments.filter(n=>!(n instanceof Nr&&n.id===t.id)),e.comments.length===0?e.dispose():Wa(e);const r=await this._reposManager.activePullRequest.validateDraftMode();r!==this._reposManager.activePullRequest.hasPendingReview&&(this._reposManager.activePullRequest.hasPendingReview=r),this.update()}catch(r){throw new Error(Re(r))}}async update(){await this._reposManager.activePullRequest.validateDraftMode()}async toggleReaction(e,t){try{if(!this._reposManager.activePullRequest)throw new Error("Unable to find active pull request");e.reactions&&!e.reactions.find(r=>r.label===t.label&&!!r.authorHasReacted)?await this._reposManager.activePullRequest.addCommentReaction(e._rawComment.graphNodeId,t):await this._reposManager.activePullRequest.deleteCommentReaction(e._rawComment.graphNodeId,t)}catch(r){throw new Error(Re(r))}}dispose(){this._commentController&&this._commentController.dispose(),be(this._commentHandlerId),this._localToDispose.forEach(e=>e.dispose())}}var jh=Object.defineProperty,Al=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?jh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class zh{constructor(){Al(this,"_localFileChanges"),Al(this,"_onDidChangeLocalFileChanges",new d.EventEmitter),Al(this,"onDidChangeLocalFileChanges",this._onDidChangeLocalFileChanges.event),Al(this,"_obsoleteFileChanges",[])}get hasLocalFileChanges(){return this._localFileChanges&&this._localFileChanges.length>0}get localFileChanges(){var e;return(e=this._localFileChanges)!=null?e:[]}set localFileChanges(e){this._localFileChanges=e,this._onDidChangeLocalFileChanges.fire()}get obsoleteFileChanges(){return this._obsoleteFileChanges}set obsoleteFileChanges(e){this._obsoleteFileChanges=e}clear(){this.obsoleteFileChanges=[],this._localFileChanges=void 0}}var Qh=Object.defineProperty,qi=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Qh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const Zc=class{constructor(i,e,t,r,n,s,o){this._context=i,this._repository=e,this._folderRepoManager=t,this._telemetry=r,this.changesInPrDataProvider=n,this._showPullRequest=s,this._sessionState=o,qi(this,"_localToDispose",[]),qi(this,"_disposables"),qi(this,"_reviewModel",new zh),qi(this,"_lastCommitSha"),qi(this,"_updateMessageShown",!1),qi(this,"_validateStatusInProgress"),qi(this,"_reviewCommentController"),qi(this,"_statusBarItem"),qi(this,"_prNumber"),qi(this,"_previousRepositoryState"),qi(this,"_webviewViewProvider"),qi(this,"_createPullRequestHelper"),qi(this,"_switchingToReviewMode"),qi(this,"justSwitchedToReviewMode",!1),qi(this,"_isFirstLoad",!0),this._switchingToReviewMode=!1,this._disposables=[],this._previousRepositoryState={HEAD:e.state.HEAD,remotes:Ya(this._repository)},this.registerListeners(),this.updateState(!0),this.pollForStatusChange()}get switchingToReviewMode(){return this._switchingToReviewMode}set switchingToReviewMode(i){this._switchingToReviewMode=i,i||this.updateState()}registerListeners(){this._disposables.push(this._repository.state.onDidChange(i=>{const e=this._previousRepositoryState.HEAD,t=this._repository.state.HEAD;if(!e&&!t)return;let r;!e||!t?r=!1:r=e.upstream?t.upstream&&e.upstream.name===t.upstream.name&&e.upstream.remote===t.upstream.remote:!t.upstream;const n=r&&e.ahead===t.ahead&&e.behind===t.behind&&e.commit===t.commit&&e.name===t.name&&e.remote===t.remote&&e.type===t.type,s=Ya(this._repository),o=this._previousRepositoryState.remotes.length===s.length&&this._previousRepositoryState.remotes.every(h=>s.some(S=>h.equals(S)));(!n||!o)&&(this._previousRepositoryState={HEAD:this._repository.state.HEAD,remotes:s},this.updateState(!0))})),this._disposables.push(d.workspace.onDidChangeConfiguration(i=>{this.updateFocusedViewMode()})),this._disposables.push(this._folderRepoManager.onDidChangeActivePullRequest(i=>{this.updateFocusedViewMode()})),Dl.registerProvider(this._disposables,this,this._folderRepoManager)}get statusBarItem(){return this._statusBarItem||(this._statusBarItem=d.window.createStatusBarItem("github.pullrequest.status",d.StatusBarAlignment.Left),this._statusBarItem.name="GitHub Active Pull Request"),this._statusBarItem}get repository(){return this._repository}get reviewModel(){return this._reviewModel}pollForStatusChange(){setTimeout(async()=>{this._validateStatusInProgress||await this.updateComments(),this.pollForStatusChange()},1e3*60*5)}async checkBranchUpToDate(i){var e;const t=this._repository.state.HEAD;if(t){const r=t.upstream?t.upstream.remote:null,n=t.upstream?t.upstream.name:t.name;if(r&&(await this._repository.fetch(r,n),!this._context.globalState.get(Cu,!1)&&!this._updateMessageShown&&(this._lastCommitSha&&i.head.sha!==this._lastCommitSha||t.behind!==void 0&&t.behind>0))){this._updateMessageShown=!0;const o="Pull",h="Never show again";await d.window.showInformationMessage(`There are updates available for pull request ${i.number}: ${i.title}.`,{},o,h)===o?(((e=this._repository.state.HEAD)==null?void 0:e.name)===t.name&&await this._repository.pull(),this._updateMessageShown=!1):h&&await this._context.globalState.update(Cu,!0)}}}async updateState(i=!1,e=!0){if(!this.switchingToReviewMode)return this._validateStatusInProgress?(D.appendLine("Review> Queuing additional validate state"),this._validateStatusInProgress=this._validateStatusInProgress.then(async t=>await this.validateStatueAndSetContext(i,e)),this._validateStatusInProgress):(D.appendLine("Review> Validate state in progress"),this._validateStatusInProgress=this.validateStatueAndSetContext(i,e),this._validateStatusInProgress)}async validateStatueAndSetContext(i,e){await this.validateState(i,e),await d.commands.executeCommand("setContext","github:stateValidated",!0)}async validateState(i,e){D.appendLine("Review> Validating state...");const t=this._lastCommitSha;if(this._lastCommitSha=void 0,await this._folderRepoManager.updateRepositories(!1),!this._repository.state.HEAD){this.clear(!0);return}const r=this._repository.state.HEAD;let n=await this._folderRepoManager.getMatchingPullRequestMetadataForBranch();if(!n){D.appendLine(`Review> no matching pull request metadata found for current branch ${r.name}`);const j=await this._folderRepoManager.getMatchingPullRequestMetadataFromGitHub();j&&(await Wr.associateBranchWithPullRequest(this._repository,j.model,r.name),n=j)}if(!n){D.appendLine(`Review> no matching pull request metadata found on GitHub for current branch ${r.name}`),this.clear(!0);return}const s=r.commit!==t&&r.ahead===0&&r.behind===0;if(this._prNumber===n.prNumber&&!s){d.commands.executeCommand("pr.refreshList");return}if(!(r.upstream?r.upstream.remote:null)){D.appendLine(`Review> current branch ${this._repository.state.HEAD.name} hasn't setup remote yet`),this.clear(!0);return}D.appendLine(`Review> current branch ${this._repository.state.HEAD.name} is associated with pull request #${n.prNumber}`),this.clear(!1),this._prNumber=n.prNumber;const{owner:h,repositoryName:S}=n;D.appendLine("Review> Resolving pull request");const T=await this._folderRepoManager.resolvePullRequest(h,S,n.prNumber);if(!T||!T.isResolved()){this._prNumber=void 0,D.appendLine("Review> This PR is no longer valid");return}const P=d.workspace.getConfiguration(gn).get(fs,{merged:!0,closed:!1});if(T.isClosed&&!P.closed){this.clear(!0),D.appendLine("Review> This PR is closed");return}if(T.isMerged&&!P.merged){this.clear(!0),D.appendLine("Review> This PR is merged");return}this._folderRepoManager.activePullRequest=T,this._lastCommitSha=T.head.sha,this._isFirstLoad&&(this._isFirstLoad=!1,this.checkBranchUpToDate(T)),D.appendLine("Review> Fetching pull request data"),this.initializePullRequestData(T),await this.changesInPrDataProvider.addPrToView(this._folderRepoManager,T,this._reviewModel,this.justSwitchedToReviewMode),this.justSwitchedToReviewMode=!1,D.appendLine("Review> register comments provider"),await this.registerCommentController();const V=this._context.workspaceState.get(Xa);if(this._webviewViewProvider?await this._webviewViewProvider.updatePullRequest(T):(this._webviewViewProvider=new Lh(this._context.extensionUri,this._folderRepoManager,T),this._context.subscriptions.push(d.window.registerWebviewViewProvider(this._webviewViewProvider.viewType,this._webviewViewProvider)),this._context.subscriptions.push(d.commands.registerCommand("pr.refreshActivePullRequest",j=>{var ue;(ue=this._webviewViewProvider)==null||ue.refresh()}))),this.statusBarItem.text=`$(git-pull-request) Pull Request #${this._prNumber}`,this.statusBarItem.command={command:"pr.openDescription",title:"View Pull Request Description",arguments:[T]},D.appendLine("Review> display pull request status bar indicator and refresh pull request tree view."),this.statusBarItem.show(),d.commands.executeCommand("pr.refreshList"),D.appendLine(`Review> using focus mode = ${V}.`),D.appendLine(`Review> state validation silent = ${i}.`),D.appendLine(`Review> PR show should show = ${this._showPullRequest.shouldShow}.`),(!i||this._showPullRequest.shouldShow)&&V)this._doFocusShow(e);else if(!this._showPullRequest.shouldShow&&V){const j=this._showPullRequest.onChangedShowValue(ue=>{D.appendLine(`Review> PR show value changed = ${ue}.`),ue&&this._doFocusShow(e),j.dispose()});this._localToDispose.push(j)}this._validateStatusInProgress=void 0}openDiff(){if(this._reviewModel.localFileChanges.length){let i;for(const e of this._reviewModel.localFileChanges)if(e.status===Oe.MODIFY){i=e;break}i=i!=null?i:this._reviewModel.localFileChanges[0],i.openDiff(this._folderRepoManager)}}_doFocusShow(i){var e;if(Hs.executeCommand("workbench.action.focusCommentsPanel"),(e=this._webviewViewProvider)==null||e.show(),i)if(this._reviewModel.localFileChanges.length)this.openDiff();else{const t=this._reviewModel.onDidChangeLocalFileChanges(()=>{t.dispose(),this.openDiff()})}}async updateComments(){const i=this._repository.state.HEAD;if(!i)return;const e=await this._folderRepoManager.getMatchingPullRequestMetadataForBranch();if(!e||!(i.upstream?i.upstream.remote:null)||this._prNumber===void 0||!this._folderRepoManager.activePullRequest)return;const r=await this._folderRepoManager.resolvePullRequest(e.owner,e.repositoryName,this._prNumber);if(!r||!r.isResolved()){D.appendLine("Review> This PR is no longer valid");return}return await this.checkBranchUpToDate(r),await this.initializePullRequestData(r),await this._reviewCommentController.update(),Promise.resolve(void 0)}async getLocalChangeNodes(i,e){const t=[],r=i.mergeBase||i.base.sha,n=i.head.sha;for(let s=0;s<e.length;s++){const o=e[s],h=H.join(this._repository.rootUri.path,o.fileName).replace(/\\/g,"/"),S=this._repository.rootUri.with({path:h}),T=o.status===Oe.DELETE?Ur(S,void 0,void 0,"",!1,{base:!1},this._repository.rootUri):S,P=Ur(S,o.status===Oe.RENAME?o.previousFileName:o.fileName,void 0,o.status===Oe.ADD?"":r,!1,{base:!0},this._repository.rootUri),V=new rs(this.changesInPrDataProvider,this._folderRepoManager,i,o,T,P,n);t.push(V)}return t}async initializePullRequestData(i){try{const e=await i.getFileChangesInfo(this._repository);this._reviewModel.localFileChanges=await this.getLocalChangeNodes(i,e),await Promise.all([i.initializeReviewComments(),i.initializeReviewThreadCache(),i.initializePullRequestFileViewState()]);const t=i.comments.filter(s=>!s.position),r=Pe(t,s=>s.originalCommitId),n=[];for(const s in r){const o=r[s],h=Pe(o,S=>S.path);for(const S in h){const T=h[S],P=d.Uri.file(H.join(`commit~${s.substr(0,8)}`,S)),V=new rs(this.changesInPrDataProvider,this._folderRepoManager,i,{status:Oe.MODIFY,fileName:S,blobUrl:void 0},Ur(P,S,void 0,T[0].originalCommitId,!0,{base:!1},this._repository.rootUri),Ur(P,S,void 0,T[0].originalCommitId,!0,{base:!0},this._repository.rootUri),s,!1,T);n.push(V)}}return this._reviewModel.obsoleteFileChanges=n,Promise.resolve(void 0)}catch(e){D.appendLine(`Review> ${e}`)}}async registerCommentController(){var i;if(((i=this._folderRepoManager.activePullRequest)==null?void 0:i.reviewThreadsCacheReady)&&this._reviewModel.hasLocalFileChanges)await this.doRegisterCommentController();else{const e=this._reviewModel.onDidChangeLocalFileChanges(async()=>{var t;((t=this._folderRepoManager.activePullRequest)==null?void 0:t.reviewThreadsCache)&&this._reviewModel.hasLocalFileChanges&&(e&&e.dispose(),await this.doRegisterCommentController())})}}async doRegisterCommentController(){this._reviewCommentController=new Hh(this,this._folderRepoManager,this._repository,this._reviewModel,this._sessionState),await this._reviewCommentController.initialize(),this._localToDispose.push(this._reviewCommentController),this._localToDispose.push(this._reviewCommentController.onDidChangeComments(i=>{this._folderRepoManager.activePullRequest&&(this._folderRepoManager.activePullRequest.comments=i)}))}async switch(i){var e;D.appendLine(`Review> switch to Pull Request #${i.number} - start`),this.statusBarItem.text="$(sync~spin) Switching to Review Mode",this.statusBarItem.command=void 0,this.statusBarItem.show(),this.switchingToReviewMode=!0;try{await this._folderRepoManager.checkoutExistingPullRequestBranch(i)||await this._folderRepoManager.fetchAndCheckout(i)}catch(t){D.appendLine(`Review> checkout failed #${JSON.stringify(t)}`),this.switchingToReviewMode=!1,t.message==="User aborted"||(t.gitErrorCode&&(t.gitErrorCode===Fe.LocalChangesOverwritten||t.gitErrorCode===Fe.DirtyWorkTree)?d.window.showErrorMessage("Your local changes would be overwritten by checkout, please commit your changes or stash them before you switch branches"):((e=t.stderr)==null?void 0:e.startsWith("fatal: couldn't find remote ref"))?d.window.showErrorMessage("The remote branch for this pull request has been deleted. The pull request cannot be checked out."):d.window.showErrorMessage(Re(t))),this._folderRepoManager.activePullRequest?this.setStatusForPr(this._folderRepoManager.activePullRequest):(this.statusBarItem.hide(),this.switchingToReviewMode=!1);return}try{this.statusBarItem.text=`$(sync~spin) Fetching additional data: pr/${i.number}`,this.statusBarItem.command=void 0,this.statusBarItem.show(),await this._folderRepoManager.fulfillPullRequestMissingInfo(i),this._telemetry.sendTelemetryEvent("pr.checkout"),D.appendLine(`Review> switch to Pull Request #${i.number} - done`,Zc.ID)}finally{this.setStatusForPr(i),await this._repository.status()}}setStatusForPr(i){this.switchingToReviewMode=!1,this.justSwitchedToReviewMode=!0,this.statusBarItem.text=`Pull Request #${i.number}`,this.statusBarItem.command=void 0,this.statusBarItem.show()}async publishBranch(i){const e=await this._folderRepoManager.getAllGitHubRemotes();let t=(await this.getRemote(e,`Pick a remote to publish the branch '${i.name}' to:`)).remote;if(!t||i.name===void 0)return;const r=this._folderRepoManager.createGitHubRepository(t,this._folderRepoManager.credentialStore),n=await r.getViewerPermission();if(n===_r.Read||n===_r.Triage||n===_r.Unknown){const o=await this._folderRepoManager.tryOfferToFork(r);if(!o)return;t=this._folderRepoManager.getGitHubRemotes().find(h=>h.remoteName===o)}if(!t)return;const s=t;return new Promise(async o=>{const h=d.window.createInputBox();h.value=i.name,h.ignoreFocusOut=!0,h.prompt=e.length===1?`The branch '${i.name}' is not published yet, pick a name for the upstream branch`:"Pick a name for the upstream branch";const S=async function(T){try{h.busy=!0,await this._reposManager.getBranch(s,T)?h.validationMessage=`Branch ${T} already exists in ${s.owner}/${s.repositoryName}`:h.validationMessage=void 0}catch(P){h.validationMessage=void 0}h.busy=!1};await S(i.name),h.onDidChangeValue(S.bind(this)),h.onDidAccept(async()=>{h.validationMessage=void 0,h.hide();try{await this._repository.push(s.remoteName,`${i.name}:${h.value}`,!0)}catch(P){throw P.gitErrorCode===Fe.PushRejected&&(d.window.showWarningMessage("Can't push refs to remote, try running 'git pull' first to integrate with your change",{modal:!0}),o(void 0)),P.gitErrorCode===Fe.RemoteConnectionError&&(d.window.showWarningMessage(`Could not read from remote repository '${s.remoteName}'. Please make sure you have the correct access rights and the repository exists.`,{modal:!0}),o(void 0)),P}const T=await this._repository.getBranch(i.name);(!T||!T.upstream)&&o(void 0),o(T)}),h.show()})}async getRemote(i,e,t){if(!i.length){d.window.showWarningMessage("No GitHub remotes found. Add a remote and try again.");return}if(i.length===1&&!t)return Xc.fromRemote(i[0]);if(i.length===1&&t&&t.owner===i[0].owner&&t.name===i[0].repositoryName)return t;let r=!1;const n=i.map(o=>{const h=Xc.fromRemote(o);if(t){const{owner:S,name:T}=t;h.picked=h.owner===S&&h.name===T,h.picked&&(r=!0)}return h});!r&&t&&n.unshift(t);const s=await d.window.showQuickPick(n,{ignoreFocusOut:!0,placeHolder:e});if(!!s)return s}async createPullRequest(i){this._createPullRequestHelper||(this._createPullRequestHelper=new $h(this.repository),this._createPullRequestHelper.onDidCreate(async e=>{await this.updateState(!1,!1);const t=this.changesInPrDataProvider.getDescriptionNode(this._folderRepoManager);await Ku(this._context,this._telemetry,e,t,this._folderRepoManager)})),this._createPullRequestHelper.create(this._context.extensionUri,this._folderRepoManager,i)}async openDescription(){const i=this._folderRepoManager.activePullRequest;if(!i)return;const e=this.changesInPrDataProvider.getDescriptionNode(this._folderRepoManager);await Ku(this._context,this._telemetry,i,e,this._folderRepoManager)}get isCreatingPullRequest(){var i,e;return(e=(i=this._createPullRequestHelper)==null?void 0:i.isCreatingPullRequest)!=null?e:!1}async updateFocusedViewMode(){d.workspace.getConfiguration(Yi).get("focusedMode")?(d.commands.executeCommand("setContext",Xa,!0),await this._context.workspaceState.update(Xa,!0)):(d.commands.executeCommand("setContext",Xa,!1),this._context.workspaceState.update(Xa,!1))}clear(i){var e;this._updateMessageShown=!1,this._reviewModel.clear(),this._localToDispose.forEach(t=>t.dispose()),(e=this._folderRepoManager.activePullRequest)==null||e.clear(),i&&(this._prNumber=void 0,this._folderRepoManager.activePullRequest=void 0,this._statusBarItem&&this._statusBarItem.hide(),this.changesInPrDataProvider&&this.changesInPrDataProvider.removePrFromView(this._folderRepoManager),d.commands.executeCommand("pr.refreshList"))}async provideTextDocumentContent(i){const{path:e,commit:t}=as(i.query);let r=qu(this._reviewModel.localFileChanges).filter(n=>n.fileName===e).filter(n=>n.sha===t||(n.parentSha?n.parentSha:`${n.sha}^`)===t);if(r.length){const n=r[0],s=t===n.sha?ft.Delete:ft.Add;return(await n.diffHunks()).map(h=>h.diffLines.filter(S=>S.type!==s).map(S=>S.text)).reduce((h,S)=>h.concat(...S),[]).join(`
|
||
`)}if(r=qu(this._reviewModel.obsoleteFileChanges).filter(n=>n.fileName===e).filter(n=>n.sha===t||(n.parentSha?n.parentSha:`${n.sha}^`)===t),r.length){const n=r[0],s=t===n.sha?ft.Delete:ft.Add,o=[],h=Pe(n.comments,S=>String(S.originalPosition));for(const S in h){if(!h[S][0].diffHunks)continue;const T=h[S][0].diffHunks.map(P=>P.diffLines.filter(V=>V.type!==s).map(V=>V.text)).reduce((P,V)=>P.concat(...V),[]);o.push(...T)}return o.join(`
|
||
`)}}dispose(){this.clear(!0),this._disposables.forEach(i=>{i.dispose()})}static getReviewManagerForRepository(i,e){return i.find(t=>t._folderRepoManager.gitHubRepositories.some(r=>r.equals(e)))}static getReviewManagerForFolderManager(i,e){return i.find(t=>t._folderRepoManager===e)}};let qn=Zc;qi(qn,"ID","Review");class Wh{constructor(){qi(this,"_shouldShow",!1),qi(this,"_onChangedShowValue",new d.EventEmitter),qi(this,"onChangedShowValue",this._onChangedShowValue.event)}get shouldShow(){return this._shouldShow}set shouldShow(e){const t=this._shouldShow;this._shouldShow=e,t!==this._shouldShow&&this._onChangedShowValue.fire(this._shouldShow)}}var Kh=Object.defineProperty,Qu=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Kh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Sa extends hr{constructor(e,t,r,n){super();this.parent=e,this.label=t,this.iconPath=r,this.pullRequestModel=n,Qu(this,"command"),Qu(this,"contextValue"),Qu(this,"tooltip"),this.command={title:"View Pull Request Description",command:"pr.openDescription",arguments:[this]},this.contextValue="description",this.tooltip=`Description of pull request #${n.number}`,this.accessibilityInformation={label:`Pull request page of pull request number ${n.number}`,role:"button"}}getTreeItem(){return this}}var Yh=Object.defineProperty,Xh=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Yh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Jh extends Tr{constructor(){super(...arguments);Xh(this,"_prFileChangeContentProviders",{})}registerTextDocumentContentProvider(e,t){return this._prFileChangeContentProviders[e]=t,{dispose:()=>{delete this._prFileChangeContentProviders[e]}}}async readFile(e){const t=fr(e);if(t&&t.prNumber){const r=this._prFileChangeContentProviders[t.prNumber];if(r){const n=await r(e);return new TextEncoder().encode(n)}}return new TextEncoder().encode("")}}const Zh=new Jh;function em(){return Zh}var ef=Object.defineProperty,Wu=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?ef(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Ta extends hr{constructor(e,t){super();this.parent=e,this.label=t,Wu(this,"collapsibleState"),Wu(this,"children",[]),Wu(this,"pathToChild",new Map),this.collapsibleState=d.TreeItemCollapsibleState.Expanded}async getChildren(){return this.children}finalize(){this.trimTree(),this.sort()}trimTree(){if(this.children.length===0||(this.children.forEach(t=>{t instanceof Ta&&t.trimTree()}),this.children.length!==1))return;const e=this.children[0];e instanceof Ta&&(this.label=this.label+"/"+e.label,this.label.startsWith("/")&&(this.label=this.label.substr(1)),this.children=e.children)}sort(){if(this.children.length<=1)return;const e=[],t=[];this.children.forEach(r=>{r instanceof Ta?(r.sort(),e.push(r)):t.push(r)}),e.sort((r,n)=>r.label<n.label?-1:1),t.sort((r,n)=>r.label<n.label?-1:1),this.children=[...e,...t]}addFile(e){const t=e.fileName.split("/");this.addPathRecc(t,e)}addPathRecc(e,t){if(e.length<=0)return;if(e.length===1){this.children.push(t);return}const r=e[0],n=e.slice(1);let s=this.pathToChild.get(r);s||(s=new Ta(this,r),this.pathToChild.set(r,s),this.children.push(s)),s.addPathRecc(n,t)}getTreeItem(){return this}}var tf=Object.defineProperty,ls=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?tf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const tm=class extends hr{constructor(i,e,t,r){super();this.parent=i,this._folderReposManager=e,this.pullRequestModel=t,this._isLocal=r,ls(this,"_fileChanges"),ls(this,"_commentController"),ls(this,"_disposables",[]),ls(this,"_inMemPRContentProvider"),ls(this,"_command")}get command(){return this._command}set command(i){this._command=i}async getChildren(){D.debug(`Fetch children of PRNode #${this.pullRequestModel.number}`,tm.ID),this.pullRequestModel.onDidInvalidate(()=>this.refresh(this));try{this.childrenDisposables&&this.childrenDisposables.length&&(this.childrenDisposables.forEach(r=>r.dispose()),this.childrenDisposables=[]);const i=new Sa(this,"Description",new d.ThemeIcon("git-pull-request"),this.pullRequestModel);if(!this.pullRequestModel.isResolved())return[i];await this.pullRequestModel.initializeReviewThreadCache(),await this.pullRequestModel.initializePullRequestFileViewState(),this._fileChanges=await this.resolveFileChanges(),this._inMemPRContentProvider||(this._inMemPRContentProvider=em().registerTextDocumentContentProvider(this.pullRequestModel.number,this.provideDocumentContent.bind(this))),this._commentController||await this.resolvePRCommentController(),await this.pullRequestModel.validateDraftMode();const e=[i];if(d.workspace.getConfiguration(Yi).get(Bn)==="tree"){const r=new Ta(this,"");this._fileChanges.forEach(n=>r.addFile(n)),r.finalize(),r.label===""?e.push(...r.children):e.push(r)}else e.push(...this._fileChanges);return this.childrenDisposables=e,e}catch(i){return D.appendLine(i),[]}}async resolvePRCommentController(){this.pullRequestModel.equals(this._folderReposManager.activePullRequest)||(await this.pullRequestModel.githubRepository.ensureCommentsController(),this._commentController=this.pullRequestModel.githubRepository.commentsController,this._disposables.push(this.pullRequestModel.githubRepository.commentsHandler.registerCommentingRangeProvider(this.pullRequestModel.number,this)),this._disposables.push(this.pullRequestModel.githubRepository.commentsHandler.registerCommentController(this.pullRequestModel.number,this.pullRequestModel,this._folderReposManager)),this.registerListeners())}registerListeners(){this._disposables.push(this.pullRequestModel.onDidChangePendingReviewState(async i=>{i||(await this.getFileChanges()).forEach(e=>{e instanceof Nl&&e.comments.forEach(t=>t.isDraft=i)})}))}async getFileChanges(){return this._fileChanges||(this._fileChanges=await this.resolveFileChanges()),this._fileChanges}async resolveFileChanges(){if(!this.pullRequestModel.isResolved())return[];const i=this.pullRequestModel.equals(this._folderReposManager.activePullRequest),e=await this.pullRequestModel.getFileChangesInfo(this._folderReposManager.repository),t=this.pullRequestModel.mergeBase;return t?e.map(r=>{const n=this.pullRequestModel.head.sha,s=r.status===Oe.RENAME?r.previousFileName:r.fileName;if(r instanceof kt)return new Ys(this,this.pullRequestModel,r.status,r.fileName,r.previousFileName,r.blobUrl,ss(d.Uri.file(os(this._folderReposManager.repository.rootUri,r.fileName)),this.pullRequestModel,r.baseCommit,n,r.fileName,!1,r.status),ss(d.Uri.file(os(this._folderReposManager.repository.rootUri,s)),this.pullRequestModel,r.baseCommit,n,r.fileName,!0,r.status));const o=d.Uri.file(os(this._folderReposManager.repository.rootUri,r.fileName)),h=d.Uri.file(os(this._folderReposManager.repository.rootUri,s));return new Nl(this._folderReposManager,this,this.pullRequestModel,r,r.previousFileName,i?r.status===Oe.DELETE?Ur(o,void 0,void 0,"",!1,{base:!1},this._folderReposManager.repository.rootUri):o:ss(o,this.pullRequestModel,r.baseCommit,n,r.fileName,!1,r.status),i?Ur(h,r.status===Oe.RENAME?r.previousFileName:r.fileName,void 0,r.status===Oe.ADD?"":t,!1,{base:!0},this._folderReposManager.repository.rootUri):ss(h,this.pullRequestModel,r.baseCommit,n,r.fileName,!0,r.status),r.isPartial,r.patch)}):[]}getTreeItem(){const i=this.pullRequestModel.equals(this._folderReposManager.activePullRequest),{title:e,number:t,author:r,isDraft:n,html_url:s}=this.pullRequestModel,{login:o}=r,h=i?"\u2713 ":"",S=i?"Current Branch * ":"",T=t.toString(),P=`${h}#${T}: ${n?"[DRAFT] ":""}${e}`,V=`${S}${e} by @${o}`,j=`by @${o}`;return{label:P,id:`${this.parent instanceof hr?this.parent.label:""}${s}`,tooltip:V,description:j,collapsibleState:1,contextValue:"pullrequest"+(this._isLocal?":local":"")+(i?":active":":nonactive"),iconPath:this.pullRequestModel.userAvatarUri?this.pullRequestModel.userAvatarUri:new d.ThemeIcon("github"),accessibilityInformation:{label:`${n?"Draft ":""}Pull request number ${T}: ${e} by ${o}`}}}async provideCommentingRanges(i,e){if(i.uri.scheme==="pr"){const t=fr(i.uri);if(!t||t.prNumber!==this.pullRequestModel.number)return;const r=(await this.getFileChanges()).find(n=>n.fileName===t.fileName);return!r||r instanceof Ys?void 0:Jc(await r.diffHunks(),t.isBase)}}async provideDocumentContent(i){const e=fr(i);if(!e)return"";const t=(await this.getFileChanges()).find(r=>r.fileName===e.fileName);if(!t)return D.appendLine(`PR> can not find content for document ${i.toString()}`),"";if(e.isBase&&t.status===Oe.ADD||!e.isBase&&t.status===Oe.DELETE)return"";if(t instanceof Ys||t.isPartial)try{return e.isBase?this.pullRequestModel.getFile(t.previousFileName||t.fileName,e.baseCommit):this.pullRequestModel.getFile(t.fileName,e.headCommit)}catch(r){return D.appendLine(`PR> Fetching file content failed: ${r}`),d.window.showWarningMessage("Opening this file locally failed. Would you like to view it on GitHub?","Open on GitHub").then(n=>{n==="Open on GitHub"&&t.blobUrl&&d.commands.executeCommand("vscode.open",d.Uri.parse(t.blobUrl))}),""}if(t instanceof Nl)if(t.status===Oe.ADD||t.status===Oe.DELETE)if(e.isBase){const n=[],s=await t.diffHunks();for(let o=0;o<s.length;o++)for(let h=0;h<s[o].diffLines.length;h++){const S=s[o].diffLines[h];S.type===ft.Add||(S.type===ft.Delete?n.push(S.text):S.type===ft.Control||n.push(S.text))}return n.join(`
|
||
`)}else{const n=[],s=await t.diffHunks();for(let o=0;o<s.length;o++)for(let h=0;h<s[o].diffLines.length;h++){const S=s[o].diffLines[h];S.type===ft.Add?n.push(S.text):S.type===ft.Delete||S.type===ft.Control||n.push(S.text)}return n.join(`
|
||
`)}else{const n=t.status===Oe.RENAME?t.previousFileName:t.fileName,s=d.Uri.joinPath(this._folderReposManager.repository.rootUri,n),o=await this._folderReposManager.repository.show(e.baseCommit,s.fsPath);return e.isBase?o:Xr(o,t.patch)}return""}dispose(){super.dispose(),this._inMemPRContentProvider&&this._inMemPRContentProvider.dispose(),this._commentController=void 0,this._disposables.forEach(i=>i.dispose()),this._disposables=[]}};let ds=tm;ls(ds,"ID","PRNode");const Il=new d.EventEmitter,im=Il.event;function eo(i,e){if(e)return e instanceof ds?e.pullRequestModel:e;if(!i.activePullRequest)throw d.window.showErrorMessage("Unable to find current pull request."),new Error("Unable to find current pull request.");return i.activePullRequest}async function Ku(i,e,t,r,n){const s=eo(n,t);r==null||r.reveal(r,{select:!0,focus:!0}),await Mr.createOrShow(i.extensionUri,n,s),e.sendTelemetryEvent("pr.openDescription")}async function ka(i,e,t){var r;if(i.length===1)return i[0];const n=i.map(s=>({label:e(s),itemValue:s}));return(r=await d.window.showQuickPick(n,t))==null?void 0:r.itemValue}async function to(i,e){i instanceof ds||i instanceof Sa?d.commands.executeCommand("vscode.open",d.Uri.parse(i.pullRequestModel.html_url)):d.commands.executeCommand("vscode.open",d.Uri.parse(i.html_url)),e.sendTelemetryEvent("pr.openInGitHub")}function rf(i,e,t,r,n,s,o){i.subscriptions.push(d.commands.registerCommand("pr.openPullRequestOnGitHub",async T=>{if(T)to(T,n);else{const P=t.folderManagers.map(V=>V.activePullRequest).filter(V=>!!V);if(P.length>=1){const V=await ka(P,j=>j.html_url);V&&to(V,n)}}})),i.subscriptions.push(d.commands.registerCommand("pr.openAllDiffs",async()=>{const T=t.folderManagers.filter(ue=>ue.activePullRequest).map(ue=>({activePr:ue.activePullRequest,folderManager:ue})),P=T.length>=1?await ka(T,ue=>ue.activePr.html_url):T[0];if(!P)return;const{folderManager:V}=P,j=qn.getReviewManagerForFolderManager(r,V);!j||j.reviewModel.localFileChanges.forEach(ue=>ue.openDiff(V,{preview:!1}))})),i.subscriptions.push(d.commands.registerCommand("review.suggestDiff",async T=>{try{const P=await ka(t.folderManagers,Ke=>H.basename(Ke.repository.rootUri.fsPath));if(!P||!P.activePullRequest)return;const{indexChanges:V,workingTreeChanges:j}=P.repository.state;if(!V.length)if(j.length)if(await d.window.showWarningMessage(`There are no staged changes to suggest.
|
||
|
||
Would you like to automatically stage all your of changes and suggest them?`,{modal:!0},"Yes")==="Yes")await d.commands.executeCommand("git.stageAll");else return;else{d.window.showInformationMessage("There are no changes to suggest.");return}const ue=await P.repository.diff(!0);let Te=`Suggested edit:
|
||
`;T&&T.inputBox&&T.inputBox.value&&(Te=`${T.inputBox.value}
|
||
`,T.inputBox.value="");const Se=`${Te}\`\`\`diff
|
||
${ue}
|
||
\`\`\``;await P.activePullRequest.createIssueComment(Se),await d.commands.executeCommand("git.unstageAll");const qe=H.join(P.repository.rootUri.fsPath,".git",`${P.activePullRequest.number}.diff`),xe=new TextEncoder,je=d.Uri.file(qe);await d.workspace.fs.writeFile(je,xe.encode(ue)),await P.repository.apply(qe,!0),await d.workspace.fs.delete(je)}catch(P){const V=`${P}${P.stderr?`
|
||
${P.stderr}`:""}`;D.appendLine(`Applying patch failed: ${V}`),d.window.showErrorMessage(`Applying patch failed: ${Re(P)}`)}})),i.subscriptions.push(d.commands.registerCommand("pr.openFileOnGitHub",async T=>{if(!(T instanceof Ys&&!await d.window.showInformationMessage(`${T.fileName} can't be opened locally. Do you want to open it on GitHub?`,"Open"))&&T.blobUrl)return d.commands.executeCommand("vscode.open",d.Uri.parse(T.blobUrl))})),i.subscriptions.push(d.commands.registerCommand("pr.copyCommitHash",T=>{d.env.clipboard.writeText(T.sha)})),i.subscriptions.push(d.commands.registerCommand("pr.openOriginalFile",async T=>{const P=t.getManagerForIssueModel(T.pullRequest);if(P){const V=await $u(T.parentFilePath,P.repository);d.commands.executeCommand("vscode.open",V||T.parentFilePath)}})),i.subscriptions.push(d.commands.registerCommand("pr.openModifiedFile",T=>{d.commands.executeCommand("vscode.open",T.filePath)})),i.subscriptions.push(d.commands.registerCommand("pr.openDiffView",T=>{const P=t.getManagerForIssueModel(T.pullRequest);!P||T.openDiff(P)})),i.subscriptions.push(d.commands.registerCommand("pr.deleteLocalBranch",async T=>{const P=t.getManagerForIssueModel(T.pullRequestModel);if(!P)return;const V=eo(P,T),j="delete branch (even if not merged)";let ue=null;try{await P.deleteLocalPullRequest(V)}catch(Te){if(Te.gitErrorCode===Fe.BranchNotFullyMerged){if(await d.window.showErrorMessage(`The branch '${V.localBranchName}' is not fully merged, are you sure you want to delete it? `,j)!==j)return;try{await P.deleteLocalPullRequest(V,!0)}catch(qe){ue=qe}}else ue=Te}ue?(n.sendTelemetryErrorEvent("pr.deleteLocalPullRequest.failure"),await d.window.showErrorMessage(`Deleting local pull request branch failed: ${ue}`)):(n.sendTelemetryEvent("pr.deleteLocalPullRequest.success"),d.commands.executeCommand("pr.refreshList"))}));function h(T){if(T){const P=d.Uri.file(T).toString();for(const V of r)if(V.repository.rootUri.toString()===P)return V}return ka(r,P=>H.basename(P.repository.rootUri.fsPath),{placeHolder:"Choose a repository to create a pull request in",ignoreFocusOut:!0})}function S(T){return!!(T==null?void 0:T.rootUri)}i.subscriptions.push(d.commands.registerCommand("pr.create",async T=>{var P,V;S(T)?(P=await h(T.rootUri.fsPath))==null||P.createPullRequest():(V=await h(T==null?void 0:T.repoPath))==null||V.createPullRequest(T==null?void 0:T.compareBranch)})),i.subscriptions.push(d.commands.registerCommand("pr.pick",async T=>{let P;T instanceof ds||T instanceof Sa?P=T.pullRequestModel:P=T;const V=T instanceof Fn;return n.sendTelemetryEvent("pr.checkout",{fromDescription:V.toString()}),d.window.withProgress({location:d.ProgressLocation.SourceControl,title:`Switching to Pull Request #${P.number}`},async()=>{var j;await((j=qn.getReviewManagerForRepository(r,P.githubRepository))==null?void 0:j.switch(P))})})),i.subscriptions.push(d.commands.registerCommand("pr.exit",async T=>{let P;T instanceof ds||T instanceof Sa?P=T.pullRequestModel:P=T;const V=T instanceof Fn;return n.sendTelemetryEvent("pr.exit",{fromDescription:V.toString()}),d.window.withProgress({location:d.ProgressLocation.SourceControl,title:"Exiting Pull Request"},async()=>{const j=await P.githubRepository.getDefaultBranch(),ue=t.getManagerForIssueModel(P);ue&&ue.checkoutDefaultBranch(j)})})),i.subscriptions.push(d.commands.registerCommand("pr.merge",async T=>{const P=t.getManagerForIssueModel(T==null?void 0:T.pullRequestModel);if(!P)return;const V=eo(P,T);return V.base&&V.head&&!V.base.repositoryCloneUrl.equals(V.head.repositoryCloneUrl)&&Eu()?to(V,n):d.window.showWarningMessage("Are you sure you want to merge this pull request on GitHub?",{modal:!0},"Yes").then(async Te=>{let Se;if(Te==="Yes")try{return Se=await P.mergePullRequest(V),Se}catch(qe){return d.window.showErrorMessage(`Unable to merge pull request. ${Re(qe)}`),Se}})})),i.subscriptions.push(d.commands.registerCommand("pr.readyForReview",async T=>{const P=t.getManagerForIssueModel(T==null?void 0:T.pullRequestModel);if(!P)return;const V=eo(P,T);return d.window.showWarningMessage("Are you sure you want to mark this pull request as ready to review on GitHub?",{modal:!0},"Yes").then(async j=>{let ue;if(j==="Yes")try{return ue=await V.setReadyForReview(),d.commands.executeCommand("pr.refreshList"),ue}catch(Te){return d.window.showErrorMessage(`Unable to mark pull request as ready to review. ${Re(Te)}`),ue}})})),i.subscriptions.push(d.commands.registerCommand("pr.close",async(T,P)=>{let V;if(T)V=T instanceof Fn?T:T.pullRequestModel;else{const ue=t.folderManagers.map(Te=>Te.activePullRequest).filter(Te=>!!Te);V=await ka(ue,Te=>`${Te.number}: ${Te.title}`,{placeHolder:"Pull request to close"})}if(!V)return;const j=V;return d.window.showWarningMessage("Are you sure you want to close this pull request on GitHub? This will close the pull request without merging.",{modal:!0},"Yes","No").then(async ue=>{if(ue==="Yes")try{let Te;P&&(Te=await j.createIssueComment(P));const Se=await j.close();return d.commands.executeCommand("pr.refreshList"),Il.fire(Se),Te}catch(Te){d.window.showErrorMessage(`Unable to close pull request. ${Re(Te)}`),Il.fire()}Il.fire()})})),i.subscriptions.push(d.commands.registerCommand("pr.openDescription",async T=>{let P;if(T)P=T instanceof Sa?T.pullRequestModel:T;else{const ue=t.folderManagers.map(Te=>Te.activePullRequest).filter(Te=>!!Te);ue.length>=1&&(P=await ka(ue,Te=>Te.title))}if(!P){D.appendLine("No pull request found.");return}const V=t.getManagerForIssueModel(P);if(!V)return;let j;if(T instanceof Sa)j=T;else{const ue=qn.getReviewManagerForFolderManager(r,V);if(!ue)return;j=ue.changesInPrDataProvider.getDescriptionNode(V)}await Ku(i,n,P,j,V)})),i.subscriptions.push(d.commands.registerCommand("pr.refreshDescription",async()=>{Mr.currentPanel&&Mr.refresh()})),i.subscriptions.push(d.commands.registerCommand("pr.openDescriptionToTheSide",async T=>{const P=t.getManagerForIssueModel(T.pullRequestModel);if(!P)return;const V=T.pullRequestModel,j=eo(P,V);T.reveal(T,{select:!0,focus:!0}),Mr.createOrShow(i.extensionUri,P,j,!0),n.sendTelemetryEvent("pr.openDescriptionToTheSide")})),i.subscriptions.push(d.commands.registerCommand("pr.signin",async()=>{await t.authenticate()})),i.subscriptions.push(d.commands.registerCommand("pr.deleteLocalBranchesNRemotes",async()=>{for(const T of t.folderManagers)await T.deleteLocalBranchesNRemotes()})),i.subscriptions.push(d.commands.registerCommand("pr.signinAndRefreshList",async()=>{await t.authenticate()&&d.commands.executeCommand("pr.refreshList")})),i.subscriptions.push(d.commands.registerCommand("pr.configureRemotes",async()=>d.commands.executeCommand("workbench.action.openSettings",`@ext:${_a} remotes`))),i.subscriptions.push(d.commands.registerCommand("pr.startReview",async T=>{n.sendTelemetryEvent("pr.startReview");const P=ve(T.thread);P&&P.startReview(T.thread,T.text)})),i.subscriptions.push(d.commands.registerCommand("pr.openReview",async T=>{n.sendTelemetryEvent("pr.openReview");const P=ve(T.thread);P&&await P.openReview(T.thread)})),i.subscriptions.push(d.commands.registerCommand("pr.resolveReviewThread",async T=>{n.sendTelemetryEvent("pr.resolveReviewThread");const P=ve(T.thread);P&&await P.resolveReviewThread(T.thread,T.text)})),i.subscriptions.push(d.commands.registerCommand("pr.unresolveReviewThread",async T=>{n.sendTelemetryEvent("pr.unresolveReviewThread");const P=ve(T.thread);P&&await P.unresolveReviewThread(T.thread,T.text)})),i.subscriptions.push(d.commands.registerCommand("pr.createComment",async T=>{n.sendTelemetryEvent("pr.createComment");const P=ve(T.thread);P&&P.createOrReplyComment(T.thread,T.text,!1)})),i.subscriptions.push(d.commands.registerCommand("pr.createSingleComment",async T=>{n.sendTelemetryEvent("pr.createSingleComment");const P=ve(T.thread);P&&P.createOrReplyComment(T.thread,T.text,!0)})),i.subscriptions.push(d.commands.registerCommand("pr.editComment",async T=>{n.sendTelemetryEvent("pr.editComment"),T.startEdit()})),i.subscriptions.push(d.commands.registerCommand("pr.editQuery",T=>(n.sendTelemetryEvent("pr.editQuery"),T.editQuery()))),i.subscriptions.push(d.commands.registerCommand("pr.cancelEditComment",async T=>{n.sendTelemetryEvent("pr.cancelEditComment"),T.cancelEdit()})),i.subscriptions.push(d.commands.registerCommand("pr.saveComment",async T=>{n.sendTelemetryEvent("pr.saveComment");const P=ve(T.parent);P&&await P.editComment(T.parent,T)})),i.subscriptions.push(d.commands.registerCommand("pr.deleteComment",async T=>{if(n.sendTelemetryEvent("pr.deleteComment"),await d.window.showWarningMessage("Delete comment?",{modal:!0},"Delete")==="Delete"){const V=ve(T.parent);V&&await V.deleteComment(T.parent,T)}})),i.subscriptions.push(d.commands.registerCommand("review.openFile",T=>{var P;const V=T instanceof rs?T.openFileCommand():jc(T);d.commands.executeCommand(V.command,...(P=V.arguments)!=null?P:[])})),i.subscriptions.push(d.commands.registerCommand("pr.refreshChanges",T=>{r.forEach(P=>{P.updateComments(),Mr.refresh(),P.changesInPrDataProvider.refresh()})})),i.subscriptions.push(d.commands.registerCommand("pr.setFileListLayoutAsTree",T=>{d.workspace.getConfiguration("githubPullRequests").update("fileListLayout","tree",!0)})),i.subscriptions.push(d.commands.registerCommand("pr.setFileListLayoutAsFlat",T=>{d.workspace.getConfiguration("githubPullRequests").update("fileListLayout","flat",!0)})),i.subscriptions.push(d.commands.registerCommand("pr.refreshPullRequest",T=>{var P;const V=t.getManagerForIssueModel(T.pullRequestModel);V&&T.pullRequestModel.equals(V==null?void 0:V.activePullRequest)&&((P=qn.getReviewManagerForFolderManager(r,V))==null||P.updateComments()),Mr.refresh(),o.refresh(T)})),i.subscriptions.push(d.commands.registerCommand("pr.markFileAsViewed",async T=>{try{await T.pullRequest.markFileAsViewed(T.fileName)}catch(P){d.window.showErrorMessage(`Marked file as viewed failed: ${P}`)}})),i.subscriptions.push(d.commands.registerCommand("pr.unmarkFileAsViewed",async T=>{try{await T.pullRequest.unmarkFileAsViewed(T.fileName)}catch(P){d.window.showErrorMessage(`Marked file as not viewed failed: ${P}`)}})),i.subscriptions.push(d.commands.registerCommand("pr.expandAllComments",()=>{e.commentsExpandState=!0})),i.subscriptions.push(d.commands.registerCommand("pr.collapseAllComments",()=>{e.commentsExpandState=!1})),i.subscriptions.push(d.commands.registerCommand("pr.checkoutByNumber",async()=>{var T;const P=[];t.folderManagers.forEach(Se=>{P.push(...Se.gitHubRepositories.map(qe=>({manager:Se,repo:qe})))});const V=await ka(P,Se=>`${Se.repo.remote.owner}/${Se.repo.remote.repositoryName}`,{placeHolder:"Which GitHub repository do you want to checkout the pull request from?"});if(!V)return;const j=/^#?(\d*)$/,ue=await d.window.showInputBox({ignoreFocusOut:!0,prompt:"Enter the a pull request number",validateInput:Se=>{const qe=Se.match(j);if(!qe||qe.length!==2||Number.isNaN(Number(qe[1])))return"Value must be a number"}});if(ue===void 0||ue==="#")return;const Te=await V.manager.fetchById(V.repo,Number(ue.match(j)[1]));if(Te)return(T=qn.getReviewManagerForFolderManager(r,V.manager))==null?void 0:T.switch(Te)}))}var nf=Object.defineProperty,Yu=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?nf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class af{constructor(e){Yu(this,"_commentsExpandState"),Yu(this,"_onDidChangeCommentsExpandState",new d.EventEmitter),Yu(this,"onDidChangeCommentsExpandState",this._onDidChangeCommentsExpandState.event);var t;const r=(t=d.workspace.getConfiguration(Yi))==null?void 0:t.get(hl);this._commentsExpandState=r===gu,e.subscriptions.push(d.workspace.onDidChangeConfiguration(n=>{var s;if(n.affectsConfiguration(`${Yi}.${hl}`)){const o=(s=d.workspace.getConfiguration(Yi))==null?void 0:s.get(hl);this.commentsExpandState=o===gu}}))}get commentsExpandState(){return this._commentsExpandState}set commentsExpandState(e){this._commentsExpandState=e,this._onDidChangeCommentsExpandState.fire(this._commentsExpandState)}}var us=wt(9035),sf=Object.defineProperty,rm=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?sf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class of{constructor(e){this.baseReporter=e,rm(this,"sharedProperties",{})}sendTelemetryEvent(e,t,r){var n;(n=this.baseReporter)==null||n.sendTelemetryEvent(e,{...this.sharedProperties,...t},r)}sendTelemetryErrorEvent(e,t,r){var n;(n=this.baseReporter)==null||n.sendTelemetryErrorEvent(e,{...this.sharedProperties,...t})}setSharedProperty(e,t){this.sharedProperties[e]=t}postEvent(e,t){const r={};for(const[n,s]of t)r[n]=s;this.sendTelemetryEvent(e,r)}async dispose(){var e;return(e=this.baseReporter)==null?void 0:e.dispose()}}function lf(){switch(d.env.uriScheme){case"vscode":return us.aU.Public;case"vscode-insiders":return us.aU.Insiders;case"vscode-exploration":return us.aU.Internal;case"code-oss":return us.aU.Team;default:return us.aU.Public}}class df{constructor(){rm(this,"initializePromise",Promise.resolve())}isFlightEnabled(e){return!1}isCachedFlightEnabled(e){return Promise.resolve(!1)}isFlightEnabledAsync(e){return Promise.resolve(!1)}getTreatmentVariable(e,t){}getTreatmentVariableAsync(e,t){return Promise.resolve(void 0)}}async function uf(i,e){const t=i.extension.id,r=i.extension.packageJSON.name,n=i.extension.packageJSON.version,s=lf();return r==="vscode-pull-request-github"?(0,us.X7)(t,n,s,e,i.globalState):new df}var pf=Object.defineProperty,Ra=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?pf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class U0 extends Error{constructor(e){super();this.repository=e}get message(){return`${this.repository.rootUri.toString()} has no GitHub remotes`}}class V0 extends Error{constructor(e){super();this.repository=e}get message(){return`${this.repository.rootUri.toString()} has a detached HEAD (create a branch first)`}}class q0 extends Error{constructor(e,t,r){super();this.branchName=e,this.upstreamRef=t,this.problem=r}get message(){const{upstreamRef:{remote:e,name:t},branchName:r,problem:n}=this;return`The upstream ref ${e}/${t} for branch ${r} ${n}.`}}const $0="No Milestone";class nm{constructor(e,t,r,n){this._folderManagers=e,this._credentialStore=t,this._telemetry=r,this._sessionState=n,Ra(this,"_subs"),Ra(this,"_onDidChangeState",new d.EventEmitter),Ra(this,"onDidChangeState",this._onDidChangeState.event),Ra(this,"_onDidChangeFolderRepositories",new d.EventEmitter),Ra(this,"onDidChangeFolderRepositories",this._onDidChangeFolderRepositories.event),Ra(this,"_state",Fr.Initializing),this._subs=[],d.commands.executeCommand("setContext",qc,this._state),this._subs.push(...e.map(s=>s.onDidLoadRepositories(o=>this.state=o)))}get folderManagers(){return this._folderManagers}insertFolderManager(e){this._subs.push(e.onDidLoadRepositories(r=>this.state=r));const t=d.workspace.workspaceFolders;if(t){const r=t.findIndex(n=>n.uri.toString()===e.repository.rootUri.toString());if(r>-1){const n=this._folderManagers.slice(r,this._folderManagers.length);this._folderManagers=this._folderManagers.slice(0,r),this._folderManagers.push(e),this._folderManagers.push(...n),this._onDidChangeFolderRepositories.fire();return}}this._folderManagers.push(e),this._onDidChangeFolderRepositories.fire()}removeRepo(e){const t=this._folderManagers.findIndex(r=>r.repository.rootUri.toString()===e.rootUri.toString());if(t>-1){const r=this._folderManagers[t];this._folderManagers.splice(t),r.dispose(),this._onDidChangeFolderRepositories.fire()}}getManagerForIssueModel(e){if(e===void 0)return;const t=e.remote.url.substring(0,e.remote.url.length-H.extname(e.remote.url).length);for(const r of this._folderManagers)if(r.gitHubRepositories.map(n=>n.remote.url.substring(0,n.remote.url.length-H.extname(n.remote.url).length)).includes(t))return r}getManagerForFile(e){if(e.scheme==="untitled")return this._folderManagers[0];for(const t of this._folderManagers){const r=t.repository.rootUri.path,n=e.path.substring(r.length>1?r.length+1:r.length);if(jt(d.Uri.joinPath(t.repository.rootUri,n).path,e.path)===0)return t}}get state(){return this._state}set state(e){const t=e!==this._state;this._state=e,t&&(d.commands.executeCommand("setContext",qc,e),this._onDidChangeState.fire())}get credentialStore(){return this._credentialStore}async clearCredentialCache(){await this._credentialStore.reset(),this.state=Fr.Initializing}async authenticate(){const e=await this._credentialStore.login(ni.github);let t;return yl()&&(t=await this._credentialStore.login(ni["github-enterprise"])),!!e||!!t}dispose(){this._subs.forEach(e=>e.dispose())}}Ra(nm,"ID","RepositoriesManager");function G0(i){switch(i){case"committed":return EventType.Committed;case"mentioned":return EventType.Mentioned;case"subscribed":return EventType.Subscribed;case"commented":return EventType.Commented;case"reviewed":return EventType.Reviewed;default:return EventType.Other}}var cf=Object.defineProperty,hn=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?cf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Xu{constructor(e){hn(this,"_onDidOpenRepository",new d.EventEmitter),hn(this,"onDidOpenRepository",this._onDidOpenRepository.event),hn(this,"_onDidCloseRepository",new d.EventEmitter),hn(this,"onDidCloseRepository",this._onDidCloseRepository.event),hn(this,"_onDidChangeState",new d.EventEmitter),hn(this,"onDidChangeState",this._onDidChangeState.event),hn(this,"_onDidPublish",new d.EventEmitter),hn(this,"onDidPublish",this._onDidPublish.event),hn(this,"_gitAPI"),hn(this,"_disposables");const t=e.exports;try{this._gitAPI=t.getAPI(1)}catch(r){throw d.window.showErrorMessage("Activating the Pull Requests and Issues extension failed. Please make sure you have git installed."),r}this._disposables=[],this._disposables.push(this._gitAPI.onDidCloseRepository(r=>this._onDidCloseRepository.fire(r))),this._disposables.push(this._gitAPI.onDidOpenRepository(r=>this._onDidOpenRepository.fire(r))),this._disposables.push(this._gitAPI.onDidChangeState(r=>this._onDidChangeState.fire(r))),this._disposables.push(this._gitAPI.onDidPublish(r=>this._onDidPublish.fire(r)))}get repositories(){return this._gitAPI.repositories}get state(){return this._gitAPI.state}static async createProvider(){const e=d.extensions.getExtension("vscode.git");if(e)return await e.activate(),new Xu(e)}dispose(){this._disposables.forEach(e=>e.dispose())}}var mf=Object.defineProperty,$i=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?mf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class hf{constructor(e){this._liveShareAPI=e,$i(this,"_onDidOpenRepository",new d.EventEmitter),$i(this,"onDidOpenRepository",this._onDidOpenRepository.event),$i(this,"_onDidCloseRepository",new d.EventEmitter),$i(this,"onDidCloseRepository",this._onDidCloseRepository.event),$i(this,"_openRepositories",[]),$i(this,"_sharedServiceProxy"),$i(this,"_disposables"),this._disposables=[]}get repositories(){return this._openRepositories}async initialize(){this._sharedServiceProxy=await this._liveShareAPI.getSharedService(rc)||void 0,!!this._sharedServiceProxy&&(this._sharedServiceProxy.isServiceAvailable&&await this._refreshWorkspaces(!0),this._disposables.push(this._sharedServiceProxy.onDidChangeIsServiceAvailable(async e=>{await this._refreshWorkspaces(e)})),this._disposables.push(d.workspace.onDidChangeWorkspaceFolders(this._onDidChangeWorkspaceFolders.bind(this))))}async _onDidChangeWorkspaceFolders(e){e.added.forEach(async t=>{t.uri.scheme==="vsls"&&this._sharedServiceProxy&&this._sharedServiceProxy.isServiceAvailable&&await this.openVSLSRepository(t)}),e.removed.forEach(async t=>{t.uri.scheme==="vsls"&&this._sharedServiceProxy&&this._sharedServiceProxy.isServiceAvailable&&await this.closeVSLSRepository(t)})}async _refreshWorkspaces(e){d.workspace.workspaceFolders&&d.workspace.workspaceFolders.forEach(async t=>{t.uri.scheme==="vsls"&&(e?await this.openVSLSRepository(t):await this.closeVSLSRepository(t))})}async openVSLSRepository(e){if(this.getRepository(e))return;const r=new gf(e,this._sharedServiceProxy),n=new ff,s=new Proxy(r,n);await s.initialize(),this.openRepository(s)}async closeVSLSRepository(e){const t=this.getRepository(e);!t||this.closeRepository(t)}openRepository(e){this._openRepositories.push(e),this._onDidOpenRepository.fire(e)}closeRepository(e){this._openRepositories=this._openRepositories.filter(t=>t!==e),this._onDidCloseRepository.fire(e)}getRepository(e){return this._openRepositories.filter(t=>t.workspaceFolder===e)[0]}dispose(){this._sharedServiceProxy=void 0,this._disposables.forEach(e=>e.dispose()),this._disposables=[]}}class ff{constructor(){}get(e,t){return t in e?e[t]:function(...r){return e.proxy.request(Ru,[t,e.workspaceFolder.uri.toString(),...r])}}}class vf{constructor(e){$i(this,"HEAD"),$i(this,"refs"),$i(this,"remotes"),$i(this,"submodules",[]),$i(this,"rebaseCommit"),$i(this,"mergeChanges",[]),$i(this,"indexChanges",[]),$i(this,"workingTreeChanges",[]),$i(this,"_onDidChange",new d.EventEmitter),$i(this,"onDidChange",this._onDidChange.event),this.HEAD=e.HEAD,this.remotes=e.remotes,this.refs=e.refs}update(e){this.HEAD=e.HEAD,this.remotes=e.remotes,this.refs=e.refs,this._onDidChange.fire()}}class gf{constructor(e,t){this.workspaceFolder=e,this.proxy=t,$i(this,"rootUri"),$i(this,"state")}async initialize(){const e=await this.proxy.request(Ru,[nc,this.workspaceFolder.uri.toString()]);this.state=new vf(e),this.rootUri=d.Uri.parse(e.rootUri),this.proxy.onNotify(ac,this._notifyHandler.bind(this))}_notifyHandler(e){var t;(t=this.state)==null||t.update(e)}}var yf=Object.defineProperty,am=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?yf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class wf{constructor(e,t){this._liveShareAPI=e,this._api=t,am(this,"_sharedService"),am(this,"_disposables"),this._disposables=[]}async initialize(){this._sharedService=await this._liveShareAPI.shareService(rc)||void 0,this._sharedService&&this._sharedService.onRequest(Ru,this._gitHandler.bind(this))}async _gitHandler(e){const t=e[0],r=e[1],n=d.Uri.parse(r),s=this._liveShareAPI.convertSharedUriToLocal(n),o=this._api.getGitProvider(s);if(!o)return;const h=o.repositories.filter(S=>S.rootUri.toString()===s.toString())[0];if(h){const S=e.slice(2);if(t===nc)return this._disposables.push(h.state.onDidChange(T=>{this._sharedService.notify(ac,{HEAD:h.state.HEAD,remotes:h.state.remotes,refs:h.state.refs})})),{HEAD:h.state.HEAD,remotes:h.state.remotes,refs:h.state.refs,rootUri:n.toString()};if(t==="show"){const T=S[1],P=n.with({path:T}),V=this._liveShareAPI.convertSharedUriToLocal(P);return S[1]=V.fsPath,h[t](...S)}if(h[t])return h[t](...S)}else return null}dispose(){this._disposables.forEach(e=>e.dispose()),this._sharedService=void 0,this._disposables=[]}}var bf=Object.defineProperty,io=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?bf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);async function _f(){const i=d.extensions.getExtension("ms-vsliveshare.vsliveshare");if(!i)return null;const e=i.isActive?i.exports:await i.activate();if(!e)return null;const t="0.3.967";return e.getApi?e.getApi(t):e.getApiAsync(t)}class Ef{constructor(e){this._api=e,io(this,"_liveShareAPI"),io(this,"_host"),io(this,"_guest"),io(this,"_localDisposables"),io(this,"_globalDisposables"),this._localDisposables=[],this._globalDisposables=[]}async initialize(){if(this._liveShareAPI||(this._liveShareAPI=await _f()),!!this._liveShareAPI)return this._globalDisposables.push(this._liveShareAPI.onDidChangeSession(e=>this._onDidChangeSession(e.session),this)),this._liveShareAPI.session&&this._onDidChangeSession(this._liveShareAPI.session),this._liveShareAPI}async _onDidChangeSession(e){if(this._localDisposables.forEach(t=>t.dispose()),e.role===1){this._host=new wf(this._liveShareAPI,this._api),this._localDisposables.push(this._host),await this._host.initialize();return}e.role===2&&(this._guest=new hf(this._liveShareAPI),this._localDisposables.push(this._guest),await this._guest.initialize(),this._localDisposables.push(this._api.registerGitProvider(this._guest)))}dispose(){this._liveShareAPI=void 0,this._localDisposables.forEach(e=>e.dispose()),this._globalDisposables.forEach(e=>e.dispose())}}function Sf(i){return new Ef(i)}async function Tf(i,e){const t=await Xu.createProvider();if(t)return e.registerGitProvider(t),t}var kf=Object.defineProperty,sm=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?kf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Rf{constructor(e){this.pullRequestManager=e,sm(this,"onNotifiedEmitter",new d.EventEmitter),sm(this,"onNotified",this.onNotifiedEmitter.event),e.folderManagers.forEach(t=>{t.onDidChangeAssignableUsers(r=>{this.notifySuggestedAccounts(r)})})}async requestAsync(e,t,r){let n=null;switch(e){case"initialize":n={description:"Pullrequest",capabilities:{supportsDispose:!1,supportsInviteLink:!1,supportsPresence:!1,supportsContactPresenceRequest:!1,supportsPublishPresence:!1}};const s=new Map;for(const o of this.pullRequestManager.folderManagers){const h=o.getAllAssignableUsers();if(!!h)for(const S of h)s.has(S.login)||s.set(S.login,S)}s.size>0&&this.notifySuggestedAccounts(Array.from(s.values()));break;default:throw new Error(`type:${e} not supported`)}return n}async notifySuggestedAccounts(e){let t;try{t=await this.getCurrentUserLogin()}catch(r){}t&&e.findIndex(r=>r.login===t)!==-1&&this.notifySuggestedUsers(e.filter(r=>r.email).map(r=>({id:r.login,displayName:r.name?r.name:r.login,email:r.email})),!0)}async getCurrentUserLogin(){var e;if(this.pullRequestManager.folderManagers.length===0)return;const t=await((e=this.pullRequestManager.folderManagers[0])==null?void 0:e.getOrigin());if(t){const r=t.hub.currentUser;if(r)return r.login}}notify(e,t){this.onNotifiedEmitter.fire({type:e,body:t})}notifySuggestedUsers(e,t){this.notify("suggestedUsers",{contacts:e,exclusive:t})}}var Cf=Object.defineProperty,om=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Cf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Nf{constructor(){om(this,"_extensionsDisposable"),om(this,"_subscriptions",[]),this._extensionsDisposable=d.extensions.onDidChange(this.onExtensionsChanged,this),this.onExtensionsChanged()}dispose(){this._extensionsDisposable.dispose(),d.Disposable.from(...this._subscriptions).dispose()}register(e){this._subscriptions.push(e.registerActionRunner("createPullRequest",{partnerId:"ghpr",name:"GitHub Pull Requests and Issues",label:"Create Pull Request",run:function(t){t.branch.isRemote||d.commands.executeCommand("pr.create",{repoPath:t.repoPath,compareBranch:t.branch.name})}}))}async onExtensionsChanged(){var e;const t=(e=d.extensions.getExtension("eamodio.gitlens"))!=null?e:d.extensions.getExtension("eamodio.gitlens-insiders");if(t)if(this._extensionsDisposable.dispose(),t.isActive)this.register(await t.exports);else{let r=0;const n=setInterval(async()=>{t.isActive?(clearInterval(n),this.register(await t.exports)):(r++,r>60&&clearInterval(n))},1e3)}}}var Pf=Object.defineProperty,Ca=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Pf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class lm{constructor(e,t,r,n,s){this.issueModel=e,this.manager=t,this.stateManager=r,this.shouldPromptForBranch=s,Ca(this,"repoChangeDisposable"),Ca(this,"_branchName"),Ca(this,"user"),Ca(this,"repo"),Ca(this,"_repoDefaults"),Ca(this,"_onDidChangeCurrentIssueState",new d.EventEmitter),Ca(this,"onDidChangeCurrentIssueState",this._onDidChangeCurrentIssueState.event),this.setRepo(n!=null?n:this.issueModel.githubRepository.remote)}setRepo(e){var t;for(let r=0;r<this.stateManager.gitAPI.repositories.length;r++){const n=this.stateManager.gitAPI.repositories[r];for(let s=0;s<n.state.remotes.length;s++){const o=n.state.remotes[s];if(o.name===(e==null?void 0:e.remoteName)&&((t=o.fetchUrl)==null?void 0:t.toLowerCase().search(`${e.owner.toLowerCase()}/${e.repositoryName.toLowerCase()}`))!==-1){this.repo=n;return}}}}get branchName(){return this._branchName}get repoDefaults(){return this._repoDefaults}get issue(){return this.issueModel}async startWorking(){var e;try{if(this._repoDefaults=await this.manager.getPullRequestDefaults(),await this.createIssueBranch()){await this.setCommitMessageAndGitEvent(),this._onDidChangeCurrentIssueState.fire();const t=this.manager.getCurrentUser(this.issueModel).login;return d.workspace.getConfiguration("githubIssues").get("assignWhenWorking")&&!((e=this.issueModel.assignees)==null?void 0:e.find(r=>r.login===t))&&(this.manager.gitHubRepositories.find(r=>r.remote.owner===this.issueModel.remote.owner&&r.remote.repositoryName===this.issueModel.remote.repositoryName)&&await this.manager.assignIssue(this.issueModel,t),await this.stateManager.refresh()),!0}}catch(t){d.window.showErrorMessage("There is no remote. Can't start working on an issue.")}return!1}dispose(){var e;(e=this.repoChangeDisposable)==null||e.dispose()}async stopWorking(){this.repo&&(this.repo.inputBox.value=""),this._repoDefaults&&await this.manager.repository.checkout(this._repoDefaults.base),this._onDidChangeCurrentIssueState.fire(),this.dispose()}getBasicBranchName(e){return`${e}/issue${this.issueModel.number}`}async branchExists(e){try{return!!await this.manager.repository.getBranch(e)}catch(t){}return!1}async createOrCheckoutBranch(e){try{return await this.branchExists(e)?await this.manager.repository.checkout(e):await this.manager.repository.createBranch(e,!0),!0}catch(t){return t.message!=="User aborted"&&d.window.showErrorMessage(`Unable to checkout branch ${e}. There may be file conflicts that prevent this branch change. Git error: ${t.error}`),!1}}async getUser(){return this.user||(this.user=await this.issueModel.githubRepository.getAuthenticatedUser()),this.user}async getBranchTitle(){var e;return(e=d.workspace.getConfiguration(Vi).get(_c))!=null?e:this.getBasicBranchName(await this.getUser())}validateBranchName(e){const t=/[^ \\@\~\^\?\*\[]+/,r=e.match(t);if(r&&r.length>0&&r[0]!==e)return"Branch name cannot contain a space or the following characters: \\@~^?*["}showBranchNameError(e){const t="Edit Setting";d.window.showErrorMessage(e,t).then(r=>{r===t&&d.commands.executeCommand("workbench.action.openSettings",`${Vi}.${_c}`)})}async createIssueBranch(){const e=this.shouldPromptForBranch?"prompt":d.workspace.getConfiguration(Vi).get(Ec);if(e==="off")return!0;const t=this.stateManager.getSavedIssueState(this.issueModel.number);this._branchName=this.shouldPromptForBranch?void 0:t.branch;const r=await Rl(await this.getBranchTitle(),this.issue,void 0,await this.getUser());if(e==="on"&&this._branchName!==r&&(await this.branchExists(this._branchName)||(this._branchName=r)),this._branchName||(this._branchName=await d.window.showInputBox({value:r,prompt:"Enter the label for the new branch."})),!this._branchName)return!1;const n=this.validateBranchName(this._branchName);return n?(this.showBranchNameError(n),!1):(t.branch=this._branchName,await this.stateManager.setSavedIssueState(this.issueModel,t),await this.createOrCheckoutBranch(this._branchName)?!0:(this._branchName=void 0,!1))}async getCommitMessage(){const e=d.workspace.getConfiguration(Vi).get(eh);if(typeof e=="string")return Rl(e,this.issueModel,this._repoDefaults)}async setCommitMessageAndGitEvent(){const e=await this.getCommitMessage();this.repo&&e&&(this.repo.inputBox.value=e)}}var Df=Object.defineProperty,ro=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Df(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const Kr="newIssue",Af="NewIssue.md",ps="Assignees:",no="Labels:";function Ol(i){const e=JSON.parse(i.query);if(e.origin)return d.Uri.parse(e.origin)}class If{constructor(){ro(this,"content"),ro(this,"createTime",0),ro(this,"modifiedTime",0),ro(this,"_onDidChangeFile",new d.EventEmitter),ro(this,"onDidChangeFile",this._onDidChangeFile.event)}watch(e,t){const r=this.onDidChangeFile(n=>{n.length===0&&n[0].type===d.FileChangeType.Deleted&&r.dispose()});return r}stat(e){var t,r;return{type:d.FileType.File,ctime:this.createTime,mtime:this.modifiedTime,size:(r=(t=this.content)==null?void 0:t.length)!=null?r:0}}readDirectory(e){return[]}createDirectory(e){}readFile(e){var t;return(t=this.content)!=null?t:new Uint8Array(0)}writeFile(e,t,r={create:!1,overwrite:!1}){const n=this.content;this.content=t,n===void 0?(this.createTime=new Date().getTime(),this._onDidChangeFile.fire([{uri:e,type:d.FileChangeType.Created}])):(this.modifiedTime=new Date().getTime(),this._onDidChangeFile.fire([{uri:e,type:d.FileChangeType.Changed}]))}delete(e,t){this.content=void 0,this.createTime=0,this.modifiedTime=0,this._onDidChangeFile.fire([{uri:e,type:d.FileChangeType.Deleted}])}rename(e,t,r){}}class Of{constructor(e){this.manager=e}async provideCompletionItems(e,t,r,n){if(!e.lineAt(t.line).text.startsWith(no))return[];const s=Ol(e.uri);if(!s)return[];const o=this.manager.getManagerForFile(s);if(!o)return[];const h=await o.getPullRequestDefaults();return(await o.getLabels(void 0,h)).map(T=>{const P=new d.CompletionItem(T.name,d.CompletionItemKind.Color);return P.documentation=`#${T.color}`,P.commitCharacters=[" ",","],P})}}class dm extends d.CompletionItem{constructor(e){super(`${e.number}: ${e.title}`,d.CompletionItemKind.Issue);this.issue=e}}class xf{constructor(e,t,r){this.stateManager=e,this.repositoriesManager=t,this.context=r}async provideCompletionItems(e,t,r,n){var s,o,h,S,T;if(e.languageId!=="scminput"&&e.uri.scheme!=="comment"&&t.character>0&&n.triggerKind===d.CompletionTriggerKind.Invoke&&!e.getText(e.getWordRangeAtPosition(t)).match(/#[0-9]*$/))return[];if(t.character<=6&&e.languageId==="markdown"&&e.getText(new d.Range(t.with(void 0,0),t))===new Array(t.character+1).join("#")&&e.uri.scheme!=="comment"&&n.triggerKind===d.CompletionTriggerKind.TriggerCharacter)return[];if(n.triggerKind===d.CompletionTriggerKind.TriggerCharacter&&d.workspace.getConfiguration(Vi).get("ignoreCompletionTrigger",[]).find(je=>je===e.languageId))return[];if(e.languageId!=="scminput"&&!await Mu(e,t))return[];let P=new d.Range(t,t);t.character-1>=0&&e.getText(new d.Range(t.translate(0,-1),t))==="#"&&(P=new d.Range(t.translate(0,-1),t)),await this.stateManager.tryInitializeAndWait();const V=new Map,j=new Date;let ue,Te;if(e.languageId==="scminput")Te=Fu(e.uri);else if(e.uri.scheme==="comment"&&((s=d.workspace.workspaceFolders)==null?void 0:s.length))for(const je of d.window.visibleTextEditors){const Ke=d.workspace.workspaceFolders[0].uri.with({path:je.document.uri.path}),ze=d.workspace.getWorkspaceFolder(Ke);if(ze){Te=ze.uri;break}}else Te=e.uri.scheme===Kr?(o=Ol(e.uri))!=null?o:e.uri:e.languageId==="scminput"?Fu(e.uri):e.uri;if(!Te)return[];let Se;try{Se=this.repositoriesManager.getManagerForFile(Te),ue=await(Se==null?void 0:Se.getPullRequestDefaults())}catch(je){}const qe=this.stateManager.getIssueCollection((h=Se==null?void 0:Se.repository.rootUri)!=null?h:Te);let xe=0;for(const je of qe){const Ke=(S=await je[1])!=null?S:[];if(Ke[0]instanceof Wi)xe+=Ke.length;else for(const ze of Ke)xe+=ze.issues.length}for(const je of qe){const Ke=(T=await je[1])!=null?T:[];if(Ke.length!==0)if(Ke[0]instanceof Wi){let ze=0;for(const dt of Ke)V.set(es(dt),await this.completionItemFromIssue(ue,dt,j,P,e,ze++,xe))}else for(let ze=0;ze<Ke.length;ze++){const dt=Ke[ze];for(const Mt of dt.issues)V.set(es(Mt),await this.completionItemFromIssue(ue,Mt,j,P,e,ze,xe,dt.milestone))}}return[...V.values()]}async completionItemFromIssue(e,t,r,n,s,o,h,S){var T;const P=new dm(t);if(s.languageId==="markdown")P.insertText=`[${es(t,e)}](${t.html_url})`;else{const V=d.workspace.getConfiguration(Vi).get("issueCompletionFormatScm");s.uri.path.match(/scm\/git\/scm\d\/input/)&&typeof V=="string"?P.insertText=await Rl(V,t,e):P.insertText=`${es(t,e)}`}return P.documentation=t.body,P.range=n,P.detail=S?S.title:(T=t.milestone)==null?void 0:T.title,P.sortText=`${o}`.padStart(`${h}`.length,"0"),P.filterText=`${P.detail} # ${t.number} ${t.title} ${P.documentation}`,P}async resolveCompletionItem(e,t){return e instanceof dm&&(e.documentation=await Ou(e.issue,this.context,this.repositoriesManager),e.command={command:"issues.issueCompletion",title:"Issue Completion Chose,"}),e}}class Mf{constructor(e,t,r,n){this.manager=e,this.stateManager=t,this.context=r,this.telemetry=n}async provideHover(e,t,r){var n;if(!await Mc(e,t))return;let s=e.getWordRangeAtPosition(t,Ws);if(s&&s.start.character>0){s=new d.Range(new d.Position(s.start.line,s.start.character),s.end);const h=e.getText(s).match(Ws),S=Au(h),T=(n=this.manager.getManagerForFile(e.uri))!=null?n:this.manager.folderManagers[0];if(!T)return;if(S&&h&&S.issueNumber<=this.stateManager.maxIssueNumber(T.repository.rootUri))return this.createHover(T,h[0],S,s)}else return}async createHover(e,t,r,n){const s=await th(this.stateManager,e,t,r);if(!!s)return this.telemetry.sendTelemetryEvent("issues.issueHover"),new d.Hover(await Ou(s,this.context,this.manager,r.commentNumber),n)}}var Ff=Object.defineProperty,um=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Ff(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Na extends d.TreeItem{constructor(e,t,r){super(t,r);this.uri=e}get labelAsString(){var e;return typeof this.label=="string"?this.label:(e=this.label)==null?void 0:e.label}}class Lf{constructor(e,t,r){this.stateManager=e,this.manager=t,this.context=r,um(this,"_onDidChangeTreeData",new d.EventEmitter),um(this,"onDidChangeTreeData",this._onDidChangeTreeData.event),r.subscriptions.push(this.manager.onDidChangeState(()=>{this._onDidChangeTreeData.fire()})),r.subscriptions.push(this.stateManager.onDidChangeIssueData(()=>{this._onDidChangeTreeData.fire()})),r.subscriptions.push(this.stateManager.onDidChangeCurrentIssue(()=>{this._onDidChangeTreeData.fire()}))}getTreeItem(e){var t;let r;return e instanceof Na?r=e:e instanceof ts?r=new Na(e.repository.rootUri,H.basename(e.repository.rootUri.fsPath),d.TreeItemCollapsibleState.Expanded):e instanceof Wi?(r=new Na(void 0,`${e.number}: ${e.title}`,d.TreeItemCollapsibleState.None),r.iconPath=e.isOpen?new d.ThemeIcon("issues",new d.ThemeColor("issues.open")):new d.ThemeIcon("issue-closed",new d.ThemeColor("issues.closed")),((t=this.stateManager.currentIssue(e.uri))==null?void 0:t.issue.number)===e.number?(r.label=`\u2713 ${r.label}`,r.contextValue="currentissue"):this.stateManager.getSavedIssueState(e.number).branch?r.contextValue="continueissue":r.contextValue="issue",K1(e)&&(r.contextValue="link"+r.contextValue)):r=new Na(e.uri,e.milestone.title,e.issues.length>0?d.TreeItemCollapsibleState.Expanded:d.TreeItemCollapsibleState.None),r}getChildren(e){return e===void 0&&this.manager.state!==Fr.RepositoriesLoaded?this.getStateChildren():this.getIssuesChildren(e)}async resolveTreeItem(e,t){return t instanceof Wi&&(e.tooltip=await Ou(t,this.context,this.manager)),e}getStateChildren(){return this.manager.state===Fr.NeedsAuthentication||!this.manager.folderManagers.length?[]:[new Na(void 0,"Loading...")]}getQueryItems(e){const t=this.stateManager.getIssueCollection(e.repository.rootUri);if(t.size===1)return Array.from(t.values())[0];const r=Array.from(t.keys()),n=r[0];return r.map(s=>{const o=new Na(e.repository.rootUri,s);return o.contextValue="query",o.collapsibleState=s===n?d.TreeItemCollapsibleState.Expanded:d.TreeItemCollapsibleState.Collapsed,o})}getIssuesChildren(e){var t;return e===void 0?this.manager.folderManagers.length===1?this.getQueryItems(this.manager.folderManagers[0]):this.manager.folderManagers.length>1?this.manager.folderManagers:[]:e instanceof ts?this.getQueryItems(e):e instanceof Na?e.uri?(t=this.stateManager.getIssueCollection(e.uri).get(e.labelAsString))!=null?t:[]:[]:e instanceof Wi?[]:e.issues.map(r=>{const n=Object.assign(r);return n.uri=e.uri,n})}}var Uf=Object.defineProperty,Vf=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Uf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class qf{constructor(e){Vf(this,"expression"),e.subscriptions.push(d.workspace.onDidChangeConfiguration(()=>{this.updateTriggers()})),this.updateTriggers()}updateTriggers(){const e=d.workspace.getConfiguration(Vi).get("createIssueTriggers",[]);this.expression=e.length>0?new RegExp(e.join("|")):void 0}async provideCodeActions(e,t,r,n){if(this.expression===void 0||r.only&&r.only!==d.CodeActionKind.QuickFix)return[];const s=[];let o=t.start.line;do{const h=e.lineAt(o).text,S=h.substring(0,J1);if(!S.match(Ws)){const P=S.search(this.expression);if(P>=0){const V=new d.CodeAction("Create GitHub Issue",d.CodeActionKind.QuickFix),j=S.substring(P).search(/\s/),ue=P+(j>0?j:S.match(this.expression)[0].length);V.command={title:"Create GitHub Issue",command:"issue.createIssueFromSelection",arguments:[{document:e,lineNumber:o,line:h,insertIndex:ue,range:t}]},s.push(V);break}}o++}while(t.end.line>=o);return s}}var $f=Object.defineProperty,Dr=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?$f(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const Gf=["Recovery"],Bf="currentIssue",Ju="issues",pm="ignoreMilestones",Zu=[{label:"My Issues",query:"default"}];class B0 extends null{constructor(){super(...arguments);Dr(this,"uri")}}class Hf{constructor(e,t,r){this.gitAPI=e,this.manager=t,this.context=r,Dr(this,"resolvedIssues",new Map),Dr(this,"_singleRepoStates",new Map),Dr(this,"_onRefreshCacheNeeded",new d.EventEmitter),Dr(this,"onRefreshCacheNeeded",this._onRefreshCacheNeeded.event),Dr(this,"_onDidChangeIssueData",new d.EventEmitter),Dr(this,"onDidChangeIssueData",this._onDidChangeIssueData.event),Dr(this,"_queries",[]),Dr(this,"_onDidChangeCurrentIssue",new d.EventEmitter),Dr(this,"onDidChangeCurrentIssue",this._onDidChangeCurrentIssue.event),Dr(this,"initializePromise"),Dr(this,"statusBarItem"),Dr(this,"isSettingIssue",!1),t.folderManagers.forEach(n=>{this.context.subscriptions.push(n.onDidChangeRepositories(()=>this.refresh()))})}getIssueCollection(e){var t;let r=(t=this._singleRepoStates.get(e.path))==null?void 0:t.issueCollection;return r||(r=new Map,r)}getOrCreateSingleRepoState(e,t){let r=this._singleRepoStates.get(e.path);return r||(t||(t=this.manager.getManagerForFile(e)),r={issueCollection:new Map,maxIssueNumber:0,folderManager:t},this._singleRepoStates.set(e.path,r),r)}async tryInitializeAndWait(){return this.initializePromise||(this.initializePromise=new Promise(e=>{if(this.manager.credentialStore.isAnyAuthenticated())if(this.manager.state===Fr.RepositoriesLoaded)this.doInitialize().then(()=>e());else{const t=this.manager.onDidChangeState(()=>{this.manager.state===Fr.RepositoriesLoaded&&this.doInitialize().then(()=>{t.dispose(),e()})});this.context.subscriptions.push(t)}else{const t=this.manager.credentialStore.onDidGetSession(()=>{t.dispose(),this.doInitialize()});e()}})),this.initializePromise}registerRepositoryChangeEvent(){async function e(r,n){var s;const o=r.getOrCreateSingleRepoState(n.rootUri),h=o.lastHead,S=o.lastBranch,T=n.state.HEAD?n.state.HEAD.commit:void 0;(n.state.HEAD?n.state.HEAD.commit:void 0)!==h&&await r.setIssueData(o.folderManager);const P=(s=n.state.HEAD)==null?void 0:s.name;(h!==T||S!==P)&&(!o.currentIssue||P!==o.currentIssue.branchName)&&(P?o.folderManager&&await r.setCurrentIssueFromBranch(o,P):await r.setCurrentIssue(o,void 0)),o.lastHead=n.state.HEAD?n.state.HEAD.commit:void 0,o.lastBranch=n.state.HEAD?n.state.HEAD.name:void 0}function t(r,n){r.context.subscriptions.push(n.state.onDidChange(async()=>{e(r,n)}))}this.context.subscriptions.push(this.gitAPI.onDidOpenRepository(r=>{e(this,r),t(this,r)})),this.gitAPI.repositories.forEach(r=>{t(this,r)})}refreshCacheNeeded(){this._onRefreshCacheNeeded.fire()}async refresh(){return this.setAllIssueData()}async doInitialize(){var e;this.cleanIssueState(),this._queries=d.workspace.getConfiguration(Vi).get(Za,Zu),this._queries.length===0&&(this._queries=Zu),this.context.subscriptions.push(d.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration(`${Vi}.${Za}`)?(this._queries=d.workspace.getConfiguration(Vi).get(Za,Zu),this._onRefreshCacheNeeded.fire()):t.affectsConfiguration(`${Vi}.${pm}`)&&this._onRefreshCacheNeeded.fire()})),this.registerRepositoryChangeEvent(),await this.setAllIssueData(),this.context.subscriptions.push(this.onRefreshCacheNeeded(async()=>{await this.refresh()}));for(const t of this.manager.folderManagers){const r=this.getOrCreateSingleRepoState(t.repository.rootUri,t);r.lastHead=t.repository.state.HEAD?t.repository.state.HEAD.commit:void 0,this._singleRepoStates.set(t.repository.rootUri.path,r);const n=(e=t.repository.state.HEAD)==null?void 0:e.name;!r.currentIssue&&n&&await this.setCurrentIssueFromBranch(r,n)}}cleanIssueState(){const e=this.context.workspaceState.get(Ju),t=e?JSON.parse(e):{issues:[],branches:[]},r=new Date().valueOf()-30*864e5;for(const n in t.issues)t.issues[n].stateModifiedTime<r&&(t.branches&&t.branches[n]&&delete t.branches[n],delete t.issues[n])}async getUsers(e){var t;await this.initializePromise;const r=await((t=this.manager.getManagerForFile(e))==null?void 0:t.getAssignableUsers()),n=new Map;for(const s in r)r[s].forEach(o=>{n.set(o.login,o)});return n}async getUserMap(e){if(!this.initializePromise)return Promise.resolve(new Map);const t=this.getOrCreateSingleRepoState(e);return(!t.userMap||(await t.userMap).size===0)&&(t.userMap=this.getUsers(e)),t.userMap}async getCurrentUser(e){var t;return(t=this.manager.credentialStore.getCurrentUser(e))==null?void 0:t.login}async setAllIssueData(){return Promise.all(this.manager.folderManagers.map(e=>this.setIssueData(e)))}async setIssueData(e){var t,r;const n=this.getOrCreateSingleRepoState(e.repository.rootUri,e);n.issueCollection.clear();let s,o;for(const h of this._queries){let S;if(h.query===Z1)S=this.setMilestones(e);else{if(!s)try{s=await e.getPullRequestDefaults()}catch(T){}if(!o){const T=Ya(e.repository).filter(P=>P.authProviderId===ni["github-enterprise"]);o=await this.getCurrentUser(T.length?ni["github-enterprise"]:ni.github)}S=this.setIssues(e,await Rl(h.query,void 0,s,o))}n.issueCollection.set(h.label,S)}n.maxIssueNumber=await e.getMaxIssue(),n.lastHead=(t=e.repository.state.HEAD)==null?void 0:t.commit,n.lastBranch=(r=e.repository.state.HEAD)==null?void 0:r.name}setIssues(e,t){return new Promise(async r=>{const n=await e.getIssues({fetchNextPage:!1},t);this._onDidChangeIssueData.fire(),r(n.items.map(s=>{const o=s;return o.uri=e.repository.rootUri,o}))})}async setCurrentIssueFromBranch(e,t){if(d.workspace.getConfiguration(Vi).get(Ec)==="off")return;let n;try{n=await e.folderManager.getPullRequestDefaults()}catch(o){return}if(t===n.base){await this.setCurrentIssue(e,void 0);return}if(e.currentIssue&&e.currentIssue.branchName===t)return;const s=this.getSavedState();for(const o in s.branches)if(o===t){const h=await e.folderManager.resolveIssue(s.branches[o].owner,s.branches[o].repositoryName,s.branches[o].number);h&&await this.setCurrentIssue(e,new lm(h,e.folderManager,this));return}}setMilestones(e){return new Promise(async t=>{const r=new Date,n=d.workspace.getConfiguration(Vi).get(pm,[]),s=await e.getMilestones({fetchNextPage:!1},n.indexOf($c)<0);let o;const h=new Map,S=[];for(let T=0;T<s.items.length;T++){const P=s.items[T];P.uri=e.repository.rootUri;const V=s.items[T].milestone;if(P.issues&&P.issues.length<=0||n.indexOf(V.title)>=0)continue;S.push(P);let j=V.dueOn?new Date(V.dueOn):void 0;j||(j=new Date(this.removeDateExcludeStrings(V.title)),isNaN(j.getTime())&&(j=new Date(V.createdAt))),j<r&&(o===void 0||j>o)&&(o=j),h.set(V.id?V.id:V.title,j)}S.sort((T,P)=>{const V=h.get(T.milestone.id?T.milestone.id:T.milestone.title),j=h.get(P.milestone.id?P.milestone.id:P.milestone.title);return o&&V>=o&&j>=o?V<=j?-1:1:V>=j?-1:1}),this._onDidChangeIssueData.fire(),t(S)})}removeDateExcludeStrings(e){return Gf.forEach(t=>e=e.replace(t,"")),e}currentIssue(e){var t;return(t=this._singleRepoStates.get(e.path))==null?void 0:t.currentIssue}currentIssues(){return Array.from(this._singleRepoStates.values()).filter(e=>e==null?void 0:e.currentIssue).map(e=>e.currentIssue)}maxIssueNumber(e){var t,r;return(r=(t=this._singleRepoStates.get(e.path))==null?void 0:t.maxIssueNumber)!=null?r:0}async setCurrentIssue(e,t){if(!(this.isSettingIssue&&t===void 0)){if(this.isSettingIssue=!0,e instanceof ts){const r=this._singleRepoStates.get(e.repository.rootUri.path);if(!r)return;e=r}try{if(e.currentIssue&&(t==null?void 0:t.issue.number)===e.currentIssue.issue.number)return;e.currentIssue&&await e.currentIssue.stopWorking(),t&&this.context.subscriptions.push(t.onDidChangeCurrentIssueState(()=>this.updateStatusBar())),this.context.workspaceState.update(Bf,t==null?void 0:t.issue.number),(!t||await t.startWorking())&&(e.currentIssue=t,this.updateStatusBar()),this._onDidChangeCurrentIssue.fire()}catch(r){}finally{this.isSettingIssue=!1}}}updateStatusBar(){const e=this.currentIssues(),t=e.length>0;if(!t){this.statusBarItem&&(this.statusBarItem.hide(),this.statusBarItem.dispose(),this.statusBarItem=void 0);return}t&&!this.statusBarItem&&(this.statusBarItem=d.window.createStatusBarItem("github.issues.status",d.StatusBarAlignment.Left,0),this.statusBarItem.name="GitHub Active Issue");const r=this.statusBarItem;r.text=`$(issues) Issue ${e.map(n=>es(n.issue,n.repoDefaults)).join(", ")}`,r.tooltip=e.map(n=>n.issue.title).join(", "),r.command="issue.statusBar",r.show()}getSavedState(){const e=this.context.workspaceState.get(Ju);return e?JSON.parse(e):{issues:Object.create(null),branches:Object.create(null)}}getSavedIssueState(e){var t;return(t=this.getSavedState().issues[`${e}`])!=null?t:{}}async setSavedIssueState(e,t){const r=this.getSavedState();return r.issues[`${e.number}`]={...t,stateModifiedTime:new Date().valueOf()},t.branch&&(r.branches||(r.branches=Object.create(null)),r.branches[t.branch]={number:e.number,owner:e.remote.owner,repositoryName:e.remote.repositoryName}),this.context.workspaceState.update(Ju,JSON.stringify(r))}}class jf{constructor(e,t,r){this.stateManager=e,this.manager=t}async provideCompletionItems(e,t,r,n){var s,o,h;if(e.languageId!=="scminput"&&e.uri.scheme!==Kr&&t.character>0&&n.triggerKind===d.CompletionTriggerKind.Invoke&&e.getText(new d.Range(t.with(void 0,t.character-1),t))!=="@")return[];if(e.uri.scheme===Kr&&n.triggerKind===d.CompletionTriggerKind.Invoke&&e.getText(new d.Range(t.with(void 0,0),t.with(void 0,ps.length)))!==ps)return[];if(n.triggerKind===d.CompletionTriggerKind.TriggerCharacter&&d.workspace.getConfiguration(Vi).get("ignoreUserCompletionTrigger",[]).find(j=>j===e.languageId))return[];if(!this.isCodeownersFiles(e.uri)&&e.languageId!=="scminput"&&!await Mu(e,t))return[];let S=new d.Range(t,t);t.character-1>=0&&e.getText(new d.Range(t.translate(0,-1),t))==="@"&&(S=new d.Range(t.translate(0,-1),t));const T=e.uri.scheme===Kr?(s=Ol(e.uri))!=null?s:e.uri:e.languageId==="scminput"?Fu(e.uri):e.uri;if(!T)return[];const P=(h=(o=this.manager.getManagerForFile(T))==null?void 0:o.repository.rootUri)!=null?h:T,V=[];return(await this.stateManager.getUserMap(P)).forEach(j=>{const ue=new rh({label:j.login,description:j.name},d.CompletionItemKind.User);ue.insertText=`@${j.login}`,ue.login=j.login,ue.uri=P,ue.range=S,ue.detail=j.name,ue.filterText=`@ ${j.login} ${j.name}`,e.uri.scheme===Kr&&(ue.commitCharacters=[" ",","]),V.push(ue)}),V}isCodeownersFiles(e){const t=this.manager.getManagerForFile(e);if(!t||!e.path.startsWith(t.repository.rootUri.path))return!1;const r=e.path.substring(t.repository.rootUri.path.length).toLowerCase();return!!["/codeowners","/docs/codeowners","/.github/codeowners"].find(s=>s===r)}async resolveCompletionItem(e,t){const r=this.manager.getManagerForFile(e.uri);if(!r)return e;const n=await r.getPullRequestDefaults(),s=await r.resolveUser(n.owner,n.repo,e.login);return s&&(e.documentation=Iu(n,s),e.command={command:"issues.userCompletion",title:"User Completion Chosen"}),e}}const zf=["abstract","access","alias","async","augments","author","borrows","callback","class","classdesc","constant","constructs","copyright","default","deprecated","description","enum","event","example","exports","external","host","file","fires","function","generator","global","hideconstructor","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","listens","member","memberof","mixes","mixin","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","this","throws","exception","todo","tutorial","type","typedef","variation","version","yields","yield","link"];class Qf{constructor(e,t){this.manager=e,this.telemetry=t}async provideHover(e,t,r){if(!await Mc(e,t))return;let n=e.getWordRangeAtPosition(t,Du);if(n&&n.start.character>0){n=new d.Range(new d.Position(n.start.line,n.start.character),n.end);const o=e.getText(n).match(Du);if(o){const h=o[1];return(e.languageId==="javascript"||e.languageId==="typescript")&&zf.indexOf(h)>=0?void 0:this.createHover(e.uri,h,n)}}else return}async createHover(e,t,r){try{const n=this.manager.getManagerForFile(e);if(!n)return;const s=await n.getPullRequestDefaults(),o=await n.resolveUser(s.owner,s.repo,t);return o&&o.name?(this.telemetry.sendTelemetryEvent("issues.userHover"),new d.Hover(Iu(s,o),r)):void 0}catch(n){return}}}var Wf=Object.defineProperty,ep=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Wf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const Kf="issueCompletions.enabled",Yf="userCompletions.enabled",cm="issues.creatingFromFile";class Xf{constructor(e,t,r,n,s){this.gitAPI=e,this.manager=t,this.reviewManagers=r,this.context=n,this.telemetry=s,ep(this,"_stateManager"),ep(this,"createIssueInfo"),ep(this,"documentFilters",[{language:"php"},{language:"powershell"},{language:"jade"},{language:"python"},{language:"r"},{language:"razor"},{language:"ruby"},{language:"rust"},{language:"scss"},{language:"search-result"},{language:"shaderlab"},{language:"shellscript"},{language:"sql"},{language:"swift"},{language:"typescript"},{language:"vb"},{language:"xml"},{language:"yaml"},{language:"markdown"},{language:"bat"},{language:"clojure"},{language:"coffeescript"},{language:"jsonc"},{language:"c"},{language:"cpp"},{language:"csharp"},{language:"css"},{language:"dockerfile"},{language:"fsharp"},{language:"git-commit"},{language:"go"},{language:"groovy"},{language:"handlebars"},{language:"hlsl"},{language:"ini"},{language:"java"},{language:"javascriptreact"},{language:"javascript"},{language:"json"},{language:"less"},{language:"log"},{language:"lua"},{language:"makefile"},{language:"ignore"},{language:"properties"},{language:"objective-c"},{language:"perl"},{language:"perl6"},"*"]),this._stateManager=new Hf(e,this.manager,this.context)}async initialize(){this.context.subscriptions.push(d.workspace.registerFileSystemProvider(Kr,new If)),this.registerCompletionProviders(),this.context.subscriptions.push(d.languages.registerCompletionItemProvider({scheme:Kr},new Of(this.manager)," ",",")),this.context.subscriptions.push(d.window.createTreeView("issues:github",{showCollapseAll:!0,treeDataProvider:new Lf(this._stateManager,this.manager,this.context)})),this.context.subscriptions.push(d.commands.registerCommand("issue.createIssueFromSelection",(e,t)=>(this.telemetry.sendTelemetryEvent("issue.createIssueFromSelection"),this.createTodoIssue(e,t)),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.createIssueFromClipboard",()=>(this.telemetry.sendTelemetryEvent("issue.createIssueFromClipboard"),this.createTodoIssueClipboard()),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.copyGithubPermalink",e=>(this.telemetry.sendTelemetryEvent("issue.copyGithubPermalink"),this.copyPermalink(e instanceof d.Uri?e:void 0)),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.copyGithubHeadLink",e=>(this.telemetry.sendTelemetryEvent("issue.copyGithubHeadLink"),this.copyHeadLink(e)),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.copyMarkdownGithubPermalink",()=>(this.telemetry.sendTelemetryEvent("issue.copyMarkdownGithubPermalink"),this.copyMarkdownPermalink()),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.openGithubPermalink",()=>(this.telemetry.sendTelemetryEvent("issue.openGithubPermalink"),this.openPermalink()),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.openIssue",e=>(this.telemetry.sendTelemetryEvent("issue.openIssue"),this.openIssue(e)))),this.context.subscriptions.push(d.commands.registerCommand("issue.startWorking",e=>(this.telemetry.sendTelemetryEvent("issue.startWorking"),this.startWorking(e)),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.startWorkingBranchDescriptiveTitle",e=>(this.telemetry.sendTelemetryEvent("issue.startWorking"),this.startWorking(e)),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.continueWorking",e=>(this.telemetry.sendTelemetryEvent("issue.continueWorking"),this.startWorking(e)),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.startWorkingBranchPrompt",e=>(this.telemetry.sendTelemetryEvent("issue.startWorkingBranchPrompt"),this.startWorkingBranchPrompt(e)),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.stopWorking",e=>(this.telemetry.sendTelemetryEvent("issue.stopWorking"),this.stopWorking(e)),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.stopWorkingBranchDescriptiveTitle",e=>(this.telemetry.sendTelemetryEvent("issue.stopWorking"),this.stopWorking(e)),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.statusBar",()=>(this.telemetry.sendTelemetryEvent("issue.statusBar"),this.statusBar()),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.copyIssueNumber",e=>(this.telemetry.sendTelemetryEvent("issue.copyIssueNumber"),this.copyIssueNumber(e)))),this.context.subscriptions.push(d.commands.registerCommand("issue.copyIssueUrl",e=>(this.telemetry.sendTelemetryEvent("issue.copyIssueUrl"),this.copyIssueUrl(e)))),this.context.subscriptions.push(d.commands.registerCommand("issue.refresh",()=>(this.telemetry.sendTelemetryEvent("issue.refresh"),this.refreshView()),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.suggestRefresh",()=>(this.telemetry.sendTelemetryEvent("issue.suggestRefresh"),this.suggestRefresh()),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.getCurrent",()=>(this.telemetry.sendTelemetryEvent("issue.getCurrent"),this.getCurrent()),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.editQuery",e=>(this.telemetry.sendTelemetryEvent("issue.editQuery"),this.editQuery(e)),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.createIssue",()=>(this.telemetry.sendTelemetryEvent("issue.createIssue"),this.createIssue()),this)),this.context.subscriptions.push(d.commands.registerCommand("issue.createIssueFromFile",async()=>{this.telemetry.sendTelemetryEvent("issue.createIssueFromFile"),await d.commands.executeCommand("setContext",cm,!0),await this.createIssueFromFile(),await d.commands.executeCommand("setContext",cm,!1)},this)),this.context.subscriptions.push(d.commands.registerCommand("issue.issueCompletion",()=>{this.telemetry.sendTelemetryEvent("issue.issueCompletion")})),this.context.subscriptions.push(d.commands.registerCommand("issue.userCompletion",()=>{this.telemetry.sendTelemetryEvent("issue.userCompletion")})),this.context.subscriptions.push(d.commands.registerCommand("issue.signinAndRefreshList",async()=>this.manager.authenticate())),this.context.subscriptions.push(d.commands.registerCommand("issue.goToLinkedCode",async e=>Y1(e,this.manager))),this._stateManager.tryInitializeAndWait().then(()=>{this.context.subscriptions.push(d.languages.registerHoverProvider("*",new Mf(this.manager,this._stateManager,this.context,this.telemetry))),this.context.subscriptions.push(d.languages.registerHoverProvider("*",new Qf(this.manager,this.telemetry))),this.context.subscriptions.push(d.languages.registerCodeActionsProvider("*",new qf(this.context),{providedCodeActionKinds:[d.CodeActionKind.QuickFix]}))})}dispose(){}registerCompletionProviders(){const e=[{provider:xf,trigger:"#",disposable:void 0,configuration:Kf},{provider:jf,trigger:"@",disposable:void 0,configuration:Yf}];for(const t of e)d.workspace.getConfiguration(Vi).get(t.configuration,!0)&&this.context.subscriptions.push(t.disposable=d.languages.registerCompletionItemProvider(this.documentFilters,new t.provider(this._stateManager,this.manager,this.context),t.trigger));this.context.subscriptions.push(d.workspace.onDidChangeConfiguration(t=>{for(const r of e)if(t.affectsConfiguration(`${Vi}.${r.configuration}`)){const n=d.workspace.getConfiguration(Vi).get(r.configuration,!0);!n&&r.disposable?(r.disposable.dispose(),r.disposable=void 0):n&&!r.disposable&&this.context.subscriptions.push(r.disposable=d.languages.registerCompletionItemProvider(this.documentFilters,new r.provider(this._stateManager,this.manager,this.context),r.trigger));break}}))}async createIssue(){var e,t;let r=(e=d.window.activeTextEditor)==null?void 0:e.document.uri;if(r||(r=(t=await this.chooseRepo("Select the repo to create the issue in."))==null?void 0:t.repository.rootUri),r)return this.makeNewIssueFile(r)}async createIssueFromFile(){var e,t,r,n;let s;if(!d.window.activeTextEditor||d.window.activeTextEditor.document.uri.scheme!==Kr)return;s=d.window.activeTextEditor.document.getText();const o=s.indexOf(`\r
|
||
\r
|
||
`),h=s.indexOf(`
|
||
|
||
`);let S;if(o<0&&h<0)return;o<0?S=h:h<0?S=o:S=Math.min(o,h);const T=s.substring(0,S);let P;if(s=s.substring(S+2).trim(),s.startsWith(ps)){const Te=s.split(/\r\n|\n/,1);Te.length===1&&(P=Te[0].substring(ps.length).split(",").map(Se=>(Se=Se.trim(),Se.startsWith("@")&&(Se=Se.substring(1)),Se)),s=s.substring(Te[0].length).trim())}let V;if(s.startsWith(no)){const Te=s.split(/\r\n|\n/,1);Te.length===1&&(V=Te[0].substring(no.length).split(",").map(Se=>Se.trim()).filter(Se=>Se),s=s.substring(Te[0].length).trim())}const j=s;if(!T||!j)return;const ue=await this.doCreateIssue((e=this.createIssueInfo)==null?void 0:e.document,(t=this.createIssueInfo)==null?void 0:t.newIssue,T,j,P,V,(r=this.createIssueInfo)==null?void 0:r.lineNumber,(n=this.createIssueInfo)==null?void 0:n.insertIndex,Ol(d.window.activeTextEditor.document.uri));this.createIssueInfo=void 0,ue&&await d.commands.executeCommand("workbench.action.closeActiveEditor")}async editQuery(e){const t=d.workspace.getConfiguration(Vi),r=t.inspect(Za);let n;if(r==null?void 0:r.workspaceValue)n="workbench.action.openWorkspaceSettingsFile";else{const o=t.get(Za);(r==null?void 0:r.defaultValue)&&JSON.stringify(r==null?void 0:r.defaultValue)===JSON.stringify(o)&&t.update(Za,r.defaultValue,d.ConfigurationTarget.Global),n="workbench.action.openSettingsJson"}await d.commands.executeCommand(n);const s=d.window.activeTextEditor;if(s){const h=s.document.getText().search(e.labelAsString);if(h>=0){const S=s.document.positionAt(h);s.revealRange(new d.Range(S,S)),s.selection=new d.Selection(S,S)}}}getCurrent(){const e=this._stateManager.currentIssues();if(e.length>0)return{owner:e[0].issue.remote.owner,repo:e[0].issue.remote.repositoryName,number:e[0].issue.number}}refreshView(){this._stateManager.refreshCacheNeeded()}async suggestRefresh(){return await d.commands.executeCommand("hideSuggestWidget"),await this._stateManager.refresh(),d.commands.executeCommand("editor.action.triggerSuggest")}openIssue(e){if(e instanceof Wi)return d.env.openExternal(d.Uri.parse(e.html_url))}async doStartWorking(e,t,r){let n=e,s=t.githubRepository,o=t.remote;if(!n){if(n=await this.chooseRepo("Choose which repository you want to work on this isssue in."),!n)return;s=await n.getOrigin(),o=s.remote}const h=await n.findUpstreamForItem({githubRepository:s,remote:o});h.needsFork&&await n.tryOfferToFork(s)===void 0||await this._stateManager.setCurrentIssue(n,new lm(t,n,this._stateManager,h.remote,r))}async startWorking(e){e instanceof Wi&&this.doStartWorking(this.manager.getManagerForIssueModel(e),e)}async startWorkingBranchPrompt(e){e instanceof Wi&&this.doStartWorking(this.manager.getManagerForIssueModel(e),e,!0)}async stopWorking(e){var t;let r=this.manager.getManagerForIssueModel(e);!r&&(r=await this.chooseRepo("Choose which repository you want to stop working on this issue in."),!r)||e instanceof Wi&&((t=this._stateManager.currentIssue(r.repository.rootUri))==null?void 0:t.issue.number)===e.number&&await this._stateManager.setCurrentIssue(r,void 0)}async statusBarActions(e){const t=`$(globe) Open #${e.issue.number} ${e.issue.title}`,r=`$(git-pull-request) Create pull request for #${e.issue.number} (pushes branch)`;let n;try{n=await e.manager.getPullRequestDefaults()}catch(S){}const s=`$(primitive-square) Stop working on #${e.issue.number}`,o=e.branchName&&n?[t,r,s]:[t,r,s];switch(await d.window.showQuickPick(o,{placeHolder:"Current issue options"})){case t:return this.openIssue(e.issue);case r:{const S=qn.getReviewManagerForFolderManager(this.reviewManagers,e.manager);if(S)return fh(e.manager,S,this._stateManager);break}case s:return this._stateManager.setCurrentIssue(e.manager,void 0)}}async statusBar(){const e=this._stateManager.currentIssues();if(e.length===1)return this.statusBarActions(e[0]);{const t=e.map(n=>({label:`#${n.issue.number} from ${n.issue.githubRepository.remote.owner}/${n.issue.githubRepository.remote.repositoryName}`,currentIssue:n})),r=await d.window.showQuickPick(t);if(r)return this.statusBarActions(r.currentIssue)}}stringToUint8Array(e){return new TextEncoder().encode(e)}copyIssueNumber(e){if(e instanceof Wi)return d.env.clipboard.writeText(e.number.toString())}copyIssueUrl(e){if(e instanceof Wi)return d.env.clipboard.writeText(e.html_url)}async createTodoIssueClipboard(){return this.createTodoIssue(void 0,await d.env.clipboard.readText())}async createTodoIssueBody(e,t){if(t||(e==null?void 0:e.document.isUntitled))return t;let r="";if(e){const n=_u(this.gitAPI,e.document.uri);(n==null?void 0:n.state.workingTreeChanges.find(o=>o.uri.toString()===e.document.uri.toString()))&&(r=`\`\`\`
|
||
${e.line}
|
||
\`\`\`
|
||
|
||
`)}return r+=(await xu(this.gitAPI,e)).permalink,r}async createTodoIssue(e,t){let r,n,s,o,h,S;if(!e&&d.window.activeTextEditor)r=d.window.activeTextEditor.document,S=r.getText(d.window.activeTextEditor.selection);else if(e)r=e.document,s=e.insertIndex,o=e.lineNumber,n=e.line.substring(s,e.line.length).trim(),S=r.getText(e.range.isEmpty?r.lineAt(e.range.start.line).range:e.range);else return;const T=S.match(Du);T&&T.length===2&&(await this._stateManager.getUserMap(r.uri)).has(T[1])&&(h=[T[1]]);let P;const V=await this.createTodoIssueBody(e,t),j=d.window.createInputBox();j.value=n!=null?n:"",j.prompt="Set the issue title. Confirm to create the issue now or use the edit button to edit the issue title and description.",j.title="Create Issue",j.buttons=[{iconPath:new d.ThemeIcon("edit"),tooltip:"Edit Description"}],j.onDidAccept(async()=>{P=j.value,P&&(j.busy=!0,await this.doCreateIssue(r,e,P,V,h,void 0,o,s),j.busy=!1),j.hide()}),j.onDidTriggerButton(async()=>{P=j.value,j.busy=!0,this.createIssueInfo={document:r,newIssue:e,lineNumber:o,insertIndex:s},this.makeNewIssueFile(r.uri,P,V,h),j.busy=!1,j.hide()}),j.show()}async makeNewIssueFile(e,t,r,n){const s=`?{"origin":"${e.toString()}"}`,o=d.Uri.parse(`${Kr}:/${Af}${s}`);if(d.window.visibleTextEditors.filter(Se=>Se.document.uri.scheme===Kr).length>0)return;await d.workspace.fs.delete(o);const h=`${ps} ${n&&n.length>0?n.map(Se=>"@"+Se).join(", ")+" ":""}`,S=`${no} `,T=`${t!=null?t:"Issue Title"}
|
||
|
||
${h}
|
||
${S}
|
||
|
||
${r!=null?r:""}
|
||
|
||
<!-- Edit the body of your new issue then click the \u2713 "Create Issue" button in the top right of the editor. The first line will be the issue title. Assignees and Labels follow after a blank line. Leave an empty line before beginning the body of the issue. -->`;await d.workspace.fs.writeFile(o,this.stringToUint8Array(T));const P=d.window.createTextEditorDecorationType({after:{contentText:" Comma-separated usernames, either @username or just username.",fontStyle:"italic",color:new d.ThemeColor("issues.newIssueDecoration")}}),V=d.window.createTextEditorDecorationType({after:{contentText:" Comma-separated labels.",fontStyle:"italic",color:new d.ThemeColor("issues.newIssueDecoration")}}),j=d.window.onDidChangeActiveTextEditor(Se=>{if((Se==null?void 0:Se.document.uri.scheme)===Kr){const qe=Se.document.lineAt(2);qe.text.startsWith(ps)&&Se.setDecorations(P,[new d.Range(new d.Position(2,0),new d.Position(2,qe.text.length))]);const xe=Se.document.lineAt(3);xe.text.startsWith(no)&&Se.setDecorations(V,[new d.Range(new d.Position(3,0),new d.Position(3,xe.text.length))])}}),ue=await d.window.showTextDocument(o),Te=d.workspace.onDidCloseTextDocument(Se=>{Se===ue.document&&(j.dispose(),Te.dispose())})}async verifyLabels(e,t){var r;if(!t.labels)return!0;const n=(await e.getLabels(void 0,t)).map(h=>h.name),s=[],o=[];if((r=t.labels)==null||r.forEach(h=>{let S=typeof h=="string"?h:h.name;!S||(n.includes(S)?o.push(S):s.push(S))}),s.length>0){const h="Yes",S="No";switch(await d.window.showInformationMessage(`The following labels don't exist in this repository: ${s.join(", ")}.
|
||
Do you want to create these labels?`,{modal:!0},h,S)){case h:return!0;case S:return t.labels=o,!0;default:return!1}}return!0}async chooseRepo(e){const t=[];for(const n of this.manager.folderManagers)try{const s=await n.getPullRequestDefaults();t.push({label:`${s.owner}/${s.repo}`,repo:n})}catch(s){}if(t.length===0)return;if(t.length===1)return t[0].repo;const r=await d.window.showQuickPick(t,{placeHolder:e});return r==null?void 0:r.repo}async doCreateIssue(e,t,r,n,s,o,h,S,T){let P,V;if(e?V=this.manager.getManagerForFile(e.uri):T&&(V=this.manager.getManagerForFile(T)),V||(V=await this.chooseRepo("Choose where to create the issue.")),!V)return!1;try{P=await V.getPullRequestDefaults()}catch(Se){return d.window.showErrorMessage("There is no remote. Can't create an issue."),!1}const j=n||(t==null?void 0:t.document.isUntitled)?n:(await xu(this.gitAPI,t)).permalink,ue={owner:P.owner,repo:P.repo,title:r,body:j,assignees:s,labels:o};if(!await this.verifyLabels(V,ue))return!1;const Te=await V.createIssue(ue);if(Te){if(e!==void 0&&S!==void 0&&h!==void 0){const Se=new d.WorkspaceEdit,qe=d.workspace.getConfiguration(Vi).get("createInsertFormat","number")==="number"?`#${Te.number}`:Te.html_url;Se.insert(e.uri,new d.Position(h,S),` ${qe}`),await d.workspace.applyEdit(Se)}else{const Se="Copy URL",qe="Open Issue";d.window.showInformationMessage("Issue created",Se,qe).then(async xe=>{switch(xe){case Se:await d.env.clipboard.writeText(Te.html_url);break;case qe:await d.env.openExternal(d.Uri.parse(Te.html_url));break}})}return this._stateManager.refreshCacheNeeded(),!0}return!1}async getPermalinkWithError(e){const t=await xu(this.gitAPI,void 0,e);return t.error&&d.window.showWarningMessage(`Unable to create a GitHub permalink for the selection. ${t.error}`),t}async getHeadLinkWithError(e){const t=await mh(this.manager,e);return t.error&&d.window.showWarningMessage(`Unable to create a GitHub link for the selection. ${t.error}`),t}async getContextualizedLink(e,t){let r;try{r=await d.env.asExternalUri(e)}catch(h){return t}const n=r.scheme==="https"&&/^(vscode|github)\./.test(r.authority)?r.authority:void 0;if(!n)return t;const s=d.Uri.parse(t),o=/^(github)\./.test(r.authority)?s.path:`/github${s.path}`;return s.with({authority:n,path:o}).toString()}async copyPermalink(e){const t=await this.getPermalinkWithError(e);if(t.permalink)return d.env.clipboard.writeText(t.originalFile?await this.getContextualizedLink(t.originalFile,t.permalink):t.permalink)}async copyHeadLink(e){const t=await this.getHeadLinkWithError(e);if(t.permalink)return d.env.clipboard.writeText(t.originalFile?await this.getContextualizedLink(t.originalFile,t.permalink):t.permalink)}getMarkdownLinkText(){if(!d.window.activeTextEditor)return;let e=d.window.activeTextEditor.selection;e.start.line!==e.end.line&&(e=new d.Range(e.start,new d.Position(e.start.line+1,0)));const t=d.window.activeTextEditor.document.getText(e);if(t)return t;if(e=d.window.activeTextEditor.document.getWordRangeAtPosition(e.start),e)return d.window.activeTextEditor.document.getText(e)}async copyMarkdownPermalink(){const e=await this.getPermalinkWithError(),t=this.getMarkdownLinkText();if(e.permalink&&t)return d.env.clipboard.writeText(`[${t.trim()}](${e.permalink})`)}async openPermalink(){const e=await this.getPermalinkWithError();if(e.permalink)return d.env.openExternal(d.Uri.parse(e.originalFile?await this.getContextualizedLink(e.originalFile,e.permalink):e.permalink))}}var Jf=Object.defineProperty,cs=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?Jf(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class Zf{constructor(e,t){this._repositoriesManager=e,this._reviewManagers=t,cs(this,"_disposables",[]),cs(this,"_gitHubReposListeners",[]),cs(this,"_pullRequestListeners",[]),cs(this,"_fileViewedListeners",[]),cs(this,"_onDidChangeFileDecorations",new d.EventEmitter),cs(this,"onDidChangeFileDecorations",this._onDidChangeFileDecorations.event),this._disposables.push(d.window.registerFileDecorationProvider(this)),this._registerListeners()}_registerFileViewedListeners(e,t){return t.onDidChangeFileViewedState(r=>{r.changed.forEach(n=>{const s=d.Uri.joinPath(e.repository.rootUri,n.fileName),o=t.fileChanges.get(n.fileName);if(o){const h=Gu(s,t.number,n.fileName,o.status);this._onDidChangeFileDecorations.fire(h),this._onDidChangeFileDecorations.fire(h.with({scheme:e.repository.rootUri.scheme})),this._onDidChangeFileDecorations.fire(h.with({scheme:"pr",authority:""}))}})})}_registerPullRequestAddedListeners(e){e.gitHubRepositories.forEach(t=>{this._pullRequestListeners.push(t.onDidAddPullRequest(r=>{this._fileViewedListeners.push(this._registerFileViewedListeners(e,r))})),this._fileViewedListeners.push(...Array.from(t.pullRequestModels.values()).map(r=>this._registerFileViewedListeners(e,r)))})}_registerRepositoriesChangedListeners(){this._gitHubReposListeners.forEach(e=>e.dispose()),this._gitHubReposListeners=[],this._pullRequestListeners.forEach(e=>e.dispose()),this._pullRequestListeners=[],this._fileViewedListeners.forEach(e=>e.dispose()),this._fileViewedListeners=[],this._repositoriesManager.folderManagers.forEach(e=>{this._gitHubReposListeners.push(e.onDidChangeRepositories(()=>{this._registerPullRequestAddedListeners(e)}))})}_registerListeners(){this._registerRepositoriesChangedListeners(),this._disposables.push(this._repositoriesManager.onDidChangeFolderRepositories(()=>{this._registerRepositoriesChangedListeners()}))}getViewedState(e,t,r){var n,s,o;const h=(s=(n=this._repositoriesManager.getManagerForFile(r))==null?void 0:n.gitHubRepositories)!=null?s:[];for(const S of h){const T=S.pullRequestModels.get(e);if(T)return(o=T.fileChangeViewedState[t])!=null?o:Bi.UNVIEWED}return Bi.UNVIEWED}provideFileDecoration(e,t){if(!e.query)return;const r=Kc(e);if(r&&r.status!==void 0){const s=this.getViewedState(r.prNumber,r.fileName,e);return{propagate:!1,badge:this.letter(r.status,s),color:this.color(r.status,s)}}const n=fr(e);if(n&&n.status!==void 0)return{propagate:!1,badge:this.letter(n.status),color:this.color(n.status)}}color(e,t){if(t===Bi.VIEWED)return;let r;switch(e){case Oe.MODIFY:r="gitDecoration.modifiedResourceForeground";break;case Oe.ADD:r="gitDecoration.addedResourceForeground";break;case Oe.DELETE:r="gitDecoration.deletedResourceForeground";break;case Oe.RENAME:r="gitDecoration.renamedResourceForeground";break;case Oe.UNKNOWN:r=void 0;break;case Oe.UNMERGED:r="gitDecoration.conflictingResourceForeground";break}return r?new d.ThemeColor(r):void 0}letter(e,t){if(t===Bi.VIEWED)return"\u2713";switch(e){case Oe.MODIFY:return"M";case Oe.ADD:return"A";case Oe.DELETE:return"D";case Oe.RENAME:return"R";case Oe.UNKNOWN:return"U";case Oe.UNMERGED:return"C"}return""}dispose(){this._disposables.forEach(e=>e.dispose()),this._gitHubReposListeners.forEach(e=>e.dispose()),this._pullRequestListeners.forEach(e=>e.dispose()),this._fileViewedListeners.forEach(e=>e.dispose())}}var e0=Object.defineProperty,xl=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?e0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class t0 extends hr{constructor(e,t,r,n,s){super();this.parent=e,this.pullRequestManager=t,this.pullRequest=r,this.commit=n,this.isCurrent=s,xl(this,"sha"),xl(this,"collapsibleState"),xl(this,"iconPath"),xl(this,"contextValue"),this.label=n.commit.message,this.sha=n.sha,this.collapsibleState=d.TreeItemCollapsibleState.Collapsed;let o;try{n.author&&n.author.avatar_url&&(o=d.Uri.parse(`${n.author.avatar_url}&s=${64}`))}catch(h){}this.iconPath=o,this.contextValue="commit"}getTreeItem(){return this}async getChildren(){var e;const r=((e=await this.pullRequest.getCommitChangedFiles(this.commit))!=null?e:[]).map(n=>{const s=n.filename,o=d.Uri.parse(H.posix.join(`commit~${this.commit.sha.substr(0,8)}`,s)),h=new rs(this,this.pullRequestManager,this.pullRequest,{status:Ir(n.status),fileName:s,blobUrl:void 0},Ur(o,s,void 0,this.commit.sha,!0,{base:!1},this.pullRequestManager.repository.rootUri),Ur(o,s,void 0,this.commit.sha,!0,{base:!0},this.pullRequestManager.repository.rootUri),this.commit.sha,this.isCurrent);return h.useViewChangesCommand(),h});return Promise.resolve(r)}}var i0=Object.defineProperty,Ml=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?i0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class r0 extends hr{constructor(e,t,r){super();Ml(this,"label","Commits"),Ml(this,"collapsibleState"),Ml(this,"_folderRepoManager"),Ml(this,"_pr"),this.parent=e,this._pr=r,this._folderRepoManager=t,this.collapsibleState=d.TreeItemCollapsibleState.Collapsed,this.childrenDisposables=[],this.childrenDisposables.push(this._pr.onDidChangeReviewThreads(()=>this.refresh(this))),this.childrenDisposables.push(this._pr.onDidChangeComments(()=>this.refresh(this)))}getTreeItem(){return this}async getChildren(){try{const e=await this._pr.getCommits(),t=e.map((r,n)=>new t0(this,this._folderRepoManager,this._pr,r,n===e.length-1));return Promise.resolve(t)}catch(e){return Promise.resolve([])}}}var n0=Object.defineProperty,tp=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?n0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class a0 extends hr{constructor(e,t,r){super();this.parent=e,this._reviewModel=t,tp(this,"label","Files"),tp(this,"collapsibleState"),tp(this,"directories",[]),this.collapsibleState=d.TreeItemCollapsibleState.Expanded,this.childrenDisposables=[],this.childrenDisposables.push(this._reviewModel.onDidChangeLocalFileChanges(()=>this.refresh(this))),this.childrenDisposables.push(r.onDidChangeReviewThreads(()=>this.refresh(this))),this.childrenDisposables.push(r.onDidChangeComments(()=>this.refresh(this)))}getTreeItem(){return this}async getChildren(){if(this._reviewModel.localFileChanges.length===0)return new Promise(n=>{const s=this._reviewModel.onDidChangeLocalFileChanges(()=>{n([]),s.dispose()})});let e;const t=d.workspace.getConfiguration("githubPullRequests").get("fileListLayout"),r=new Ta(this,"");return this._reviewModel.localFileChanges.forEach(n=>r.addFile(n)),r.finalize(),r.label===""?this.directories=r.children:this.directories=[r],t==="tree"?e=this.directories:e=this._reviewModel.localFileChanges,Promise.resolve(e)}}var s0=Object.defineProperty,Fl=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?s0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class o0 extends Sa{constructor(e,t,r,n){super(e,t.title,t.userAvatarUri,t);this.parent=e,this._pullRequest=t,this._pullRequestManager=r,this._reviewModel=n,Fl(this,"_filesCategoryNode"),Fl(this,"_commitsCategoryNode"),Fl(this,"collapsibleState",d.TreeItemCollapsibleState.Expanded),Fl(this,"_disposables",[]),this.getTreeItem(),this._disposables.push(d.window.onDidChangeActiveTextEditor(s=>{if(d.workspace.getConfiguration("explorer").get("autoReveal")){const o=s==null?void 0:s.document.uri.toString();this.revealActiveEditorInTree(o)}})),this._disposables.push(this.parent.view.onDidChangeVisibility(s=>{var o;const h=(o=d.window.activeTextEditor)==null?void 0:o.document.uri.toString();this.revealActiveEditorInTree(h)})),this._disposables.push(t.onDidInvalidate(()=>{this.refresh()}))}revealActiveEditorInTree(e){if(this.parent.view.visible&&e){const t=this._reviewModel.localFileChanges.find(r=>r.filePath.toString()===e);t&&this.reveal(t,{select:!0})}}async getChildren(){return(!this._filesCategoryNode||!this._commitsCategoryNode)&&(this._filesCategoryNode=new a0(this.parent,this._reviewModel,this._pullRequest),this._commitsCategoryNode=new r0(this.parent,this._pullRequestManager,this._pullRequest)),[this._filesCategoryNode,this._commitsCategoryNode]}getTreeItem(){return this.label=this._pullRequest.title,this}dispose(){super.dispose(),this._disposables.forEach(e=>e.dispose()),this._disposables=[]}}var l0=Object.defineProperty,ao=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?l0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class mm extends d.Disposable{constructor(e){super(()=>this.dispose());this._context=e,ao(this,"_onDidChangeTreeData",new d.EventEmitter),ao(this,"onDidChangeTreeData",this._onDidChangeTreeData.event),ao(this,"_disposables",[]),ao(this,"_pullRequestManagerMap",new Map),ao(this,"_view"),this._view=d.window.createTreeView("prStatus:github",{treeDataProvider:this,showCollapseAll:!0}),this._context.subscriptions.push(this._view),this._disposables.push(d.workspace.onDidChangeConfiguration(async t=>{if(t.affectsConfiguration(`${Yi}.${Bn}`)){this._onDidChangeTreeData.fire();const r=d.workspace.getConfiguration(`${Yi}`).get(Bn);await d.commands.executeCommand("setContext","fileListLayout:flat",r==="flat")}else t.affectsConfiguration("git.openDiffOnClick")&&this._onDidChangeTreeData.fire()}))}get view(){return this._view}refresh(e){this._onDidChangeTreeData.fire(e)}updateViewTitle(){let e;if(this._pullRequestManagerMap.size===1){const t=this._pullRequestManagerMap.values().next();t.done||(e=t.value.pullRequestModel.number)}this._view.title=e?`Changes in Pull Request #${e}`:"Changes in Pull Request"}async addPrToView(e,t,r,n){if(this._pullRequestManagerMap.has(e)){const o=this._pullRequestManagerMap.get(e);if(o&&o.pullRequestModel===t)return;o==null||o.dispose()}const s=new o0(this,t,e,r);this._pullRequestManagerMap.set(e,s),this.updateViewTitle(),await d.commands.executeCommand("setContext","github:inReviewMode",!0),this._onDidChangeTreeData.fire(),n&&this.reveal(s)}async removePrFromView(e){const t=this._pullRequestManagerMap.has(e)?this._pullRequestManagerMap.get(e):void 0;t==null||t.dispose(),this._pullRequestManagerMap.delete(e),this.updateViewTitle(),this._pullRequestManagerMap.size===0&&this.hide(),this._onDidChangeTreeData.fire()}async hide(){await d.commands.executeCommand("setContext","github:inReviewMode",!1)}getTreeItem(e){return e.getTreeItem()}getParent(e){return e.getParent()}async reveal(e,t){try{await this._view.reveal(e,t)}catch(r){D.appendLine(r,"PullRequestChangesTreeDataProvider")}}async getChildren(e){if(e)return await e.getChildren();{const t=[];if(this._pullRequestManagerMap.size>=1)for(const r of this._pullRequestManagerMap.values())t.push(r);return t}}getDescriptionNode(e){return this._pullRequestManagerMap.get(e)}async resolveTreeItem(e,t){return t instanceof rs&&await t.resolve(),t}dispose(){this._disposables.forEach(e=>e.dispose())}}var d0=Object.defineProperty,$n=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?d0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const ip="queries";var Pa;(function(i){i[i.Empty=0]="Empty",i[i.More=1]="More",i[i.TryOtherRemotes=2]="TryOtherRemotes",i[i.Login=3]="Login",i[i.NoRemotes=4]="NoRemotes",i[i.NoMatchingRemotes=5]="NoMatchingRemotes",i[i.ConfigureRemotes=6]="ConfigureRemotes",i[i.Initializing=7]="Initializing"})(Pa||(Pa={}));class ra extends hr{constructor(e,t,r){super();switch($n(this,"collapsibleState"),$n(this,"iconPath"),$n(this,"type"),$n(this,"command"),this.parent=e,this.type=t,this.collapsibleState=d.TreeItemCollapsibleState.None,t){case 0:this.label="0 pull requests in this category";break;case 1:this.label="Load more",this.command={title:"Load more",command:"pr.loadMore",arguments:[r]};break;case 2:this.label="Continue fetching from other remotes",this.command={title:"Load more",command:"pr.loadMore",arguments:[r]};break;case 3:this.label="Sign in",this.command={title:"Sign in",command:"pr.signinAndRefreshList",arguments:[]};break;case 4:this.label="No GitHub repositories found.";break;case 5:this.label="No remotes match the current setting.";break;case 6:this.label="Configure remotes...",this.command={title:"Configure remotes",command:"pr.configureRemotes",arguments:[]};break;case 7:this.label="Loading...";break;default:break}}getTreeItem(){return this}}class rp extends hr{constructor(e,t,r,n,s,o){super();switch(this.parent=e,this._folderRepoManager=t,this._telemetry=r,this._type=n,this._categoryQuery=o,$n(this,"collapsibleState"),$n(this,"prs"),$n(this,"fetchNextPage",!1),$n(this,"repositoryPageInformation",new Map),$n(this,"contextValue"),this.prs=[],this.collapsibleState=this._type===zi.All?d.TreeItemCollapsibleState.Expanded:d.TreeItemCollapsibleState.Collapsed,n){case zi.All:this.label="All Open";break;case zi.Query:this.label=s;break;case zi.LocalPullRequest:this.label="Local Pull Request Branches";break;default:break}this._categoryQuery&&(this.contextValue="query")}async editQuery(){const e=d.workspace.getConfiguration(gn),t=e.inspect(ip);let r;if(t==null?void 0:t.workspaceValue)r="workbench.action.openWorkspaceSettingsFile";else{const s=e.get(ip);(t==null?void 0:t.defaultValue)&&JSON.stringify(t==null?void 0:t.defaultValue)===JSON.stringify(s)&&e.update(ip,t.defaultValue,d.ConfigurationTarget.Global),r="workbench.action.openSettingsJson"}await d.commands.executeCommand(r);const n=d.window.activeTextEditor;if(n){const o=n.document.getText().search(this.label);if(o>=0){const h=n.document.positionAt(o);n.revealRange(new d.Range(h,h)),n.selection=new d.Selection(h,h)}}}async getChildren(){this.childrenDisposables&&this.childrenDisposables.length&&(this.childrenDisposables.forEach(n=>n.dispose()),this.childrenDisposables=[]);let e=!1,t=!1,r=!1;if(this._type===zi.LocalPullRequest)try{this.prs=await this._folderRepoManager.getLocalPullRequests(),this._telemetry.sendTelemetryEvent("pr.expand.local")}catch(n){d.window.showErrorMessage(`Fetching local pull requests failed: ${Re(n)}`),r=n instanceof ll}else if(this.fetchNextPage){try{const n=await this._folderRepoManager.getPullRequests(this._type,{fetchNextPage:!0},this._categoryQuery);this.prs=this.prs.concat(n.items),e=n.hasMorePages,t=n.hasUnsearchedRepositories}catch(n){d.window.showErrorMessage(`Fetching pull requests failed: ${Re(n)}`),r=n instanceof ll}this.fetchNextPage=!1}else try{const n=await this._folderRepoManager.getPullRequests(this._type,{fetchNextPage:!1},this._categoryQuery);switch(this.prs=n.items,e=n.hasMorePages,t=n.hasUnsearchedRepositories,this._type){case zi.All:this._telemetry.sendTelemetryEvent("pr.expand.all");break;case zi.Query:this._telemetry.sendTelemetryEvent("pr.expand.query");break}}catch(n){d.window.showErrorMessage(`Fetching pull requests failed: ${Re(n)}`),r=n instanceof ll}if(this.prs&&this.prs.length){const n=this.prs.map(s=>new ds(this,this._folderRepoManager,s,this._type===zi.LocalPullRequest));return e?n.push(new ra(this,1,this)):t&&n.push(new ra(this,2,this)),this.childrenDisposables=n,n}else{const n=r?3:0,s=[new ra(this,n)];return this.childrenDisposables=s,s}}getTreeItem(){return this}}var u0=Object.defineProperty,hm=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?u0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);const fm="queries";class so extends hr{constructor(e,t,r,n){super();this.folderManager=r,this.telemetry=n,hm(this,"collapsibleState"),hm(this,"iconPath"),this.parent=e,this.collapsibleState=d.TreeItemCollapsibleState.Expanded,this.label=H.basename(t.fsPath)}static getQueries(e){return d.workspace.getConfiguration(Yi,e.repository.rootUri).get(fm)||[]}getTreeItem(){return this}async getChildren(){return so.getCategoryTreeNodes(this.folderManager,this.telemetry,this)}static getCategoryTreeNodes(e,t,r){const n=so.getQueries(e).map(s=>new rp(r,e,t,zi.Query,s.label,s.query));return[new rp(r,e,t,zi.LocalPullRequest),...n,new rp(r,e,t,zi.All)]}}var p0=Object.defineProperty,na=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?p0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class vm{constructor(e){this._telemetry=e,na(this,"_onDidChangeTreeData",new d.EventEmitter),na(this,"onDidChangeTreeData",this._onDidChangeTreeData.event),na(this,"_onDidChange",new d.EventEmitter),na(this,"_disposables"),na(this,"_childrenDisposables"),na(this,"_view"),na(this,"_reposManager"),na(this,"_initialized",!1),this._disposables=[],this._disposables.push(d.window.registerFileDecorationProvider(Hc)),this._disposables.push(d.commands.registerCommand("pr.refreshList",t=>{this._onDidChangeTreeData.fire()})),this._disposables.push(d.commands.registerCommand("pr.loadMore",t=>{t.fetchNextPage=!0,this._onDidChangeTreeData.fire(t)})),this._view=d.window.createTreeView("pr:github",{treeDataProvider:this,showCollapseAll:!0}),this._disposables.push(this._view),this._childrenDisposables=[],this._disposables.push(d.commands.registerCommand("pr.configurePRViewlet",async()=>{switch(await d.window.showQuickPick(["Configure Remotes...","Configure Queries..."])){case"Configure Queries...":return d.commands.executeCommand("workbench.action.openSettings",`@ext:${_a} queries`);case"Configure Remotes...":return d.commands.executeCommand("workbench.action.openSettings",`@ext:${_a} remotes`);default:return}})),this._disposables.push(d.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration(`${Yi}.${Bn}`)&&this._onDidChangeTreeData.fire()}))}get onDidChange(){return this._onDidChange.event}get view(){return this._view}async reveal(e,t){return this._view.reveal(e,t)}initialize(e){if(this._initialized)throw new Error("Tree has already been initialized!");this._initialized=!0,this._reposManager=e,this._disposables.push(this._reposManager.onDidChangeState(()=>{this._onDidChangeTreeData.fire()})),this._disposables.push(...this._reposManager.folderManagers.map(t=>t.onDidChangeRepositories(()=>{this._onDidChangeTreeData.fire()}))),this.initializeCategories(),this.refresh()}async initializeCategories(){this._disposables.push(d.workspace.onDidChangeConfiguration(async e=>{e.affectsConfiguration(`${Yi}.${fm}`)&&this.refresh()}))}refresh(e){return e?this._onDidChangeTreeData.fire(e):this._onDidChangeTreeData.fire()}getTreeItem(e){return e.getTreeItem()}async resolveTreeItem(e,t){return t instanceof Nl&&await t.resolve(),t}needsRemotes(){var e;return((e=this._reposManager)==null?void 0:e.state)===Fr.NeedsAuthentication?Promise.resolve([]):d.workspace.getConfiguration(Yi).get(Ks)?Promise.resolve([new ra(this,Pa.NoMatchingRemotes),new ra(this,Pa.ConfigureRemotes)]):Promise.resolve([new ra(this,Pa.NoRemotes)])}async getChildren(e){var t;if(!((t=this._reposManager)==null?void 0:t.folderManagers.length))return[];if(this._reposManager.state===Fr.Initializing)return Promise.resolve([new ra(this,Pa.Initializing)]);if(this._reposManager.folderManagers.filter(r=>r.getGitHubRemotes().length>0).length===0)return this.needsRemotes();if(!e){this._childrenDisposables&&this._childrenDisposables.length&&this._childrenDisposables.forEach(n=>n.dispose());let r;return this._reposManager.folderManagers.length===1?r=so.getCategoryTreeNodes(this._reposManager.folderManagers[0],this._telemetry,this):r=this._reposManager.folderManagers.map(n=>new so(this,n.repository.rootUri,n,this._telemetry)),this._childrenDisposables=r,Promise.resolve(r)}return this._reposManager.folderManagers.filter(r=>r.repository.state.remotes.length>0).length===0?Promise.resolve([new ra(this,Pa.Empty)]):e.getChildren()}async getParent(e){return e.getParent()}dispose(){this._disposables.forEach(e=>e.dispose())}}var c0=Object.defineProperty,m0=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?c0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class h0 extends Tr{constructor(e,t){super();this.gitAPI=e,this.credentialStore=t,m0(this,"_fallback")}async waitForRepos(e){D.appendLine("Waiting for repositories.","GitContentFileSystemProvider");let t;const r=new Promise(o=>{t=this.gitAPI.onDidOpenRepository(()=>{D.appendLine("Found at least one repository.","GitContentFileSystemProvider"),t==null||t.dispose(),t=void 0,o()})});let n;const s=new Promise(o=>{n=setTimeout(()=>{D.appendLine("Timed out while waiting for repositories.","GitContentFileSystemProvider"),o()},e)});await Promise.race([r,s]),n&&clearTimeout(n),t&&t.dispose()}async waitForAuth(){if(!this.credentialStore.isAnyAuthenticated())return new Promise(e=>this.credentialStore.onDidGetSession(()=>e()))}async getRepositoryForFile(e){return await this.waitForAuth(),(this.gitAPI.state!=="initialized"||this.gitAPI.repositories.length===0)&&await this.waitForRepos(4e3),_u(this.gitAPI,e)}async readFile(e){if(!this._fallback)return new TextEncoder().encode("");const{path:t,commit:r,rootPath:n}=as(e.query);if(!t||!r)return new TextEncoder().encode("");const s=await this.getRepositoryForFile(d.Uri.file(n));if(!s)return d.window.showErrorMessage(`We couldn't find an open repository for ${r} locally.`),new TextEncoder().encode("");const o=H.join(s.rootUri.fsPath,t).replace(/\\/g,"/");let h;try{if(D.appendLine(`Getting repository (${s.rootUri}) content for commit ${r} and path ${o}`,"GitContentFileSystemProvider"),h=await s.show(r,o),!h)throw new Error}catch(S){if(h=await this._fallback(e),!h)try{await s.getCommit(r)}catch(T){d.window.showErrorMessage(`We couldn't find commit ${r} locally. You may want to sync the branch with remote. Sometimes commits can disappear after a force-push`)}}return new TextEncoder().encode(h||"")}registerTextDocumentContentFallback(e){this._fallback=e}}var f0=Object.defineProperty,gm=(i,e,t)=>(typeof e!="symbol"&&(e+=""),e in i?f0(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t);class ym{constructor(e,t,r,n,s,o,h,S){this._context=e,this._reposManager=t,this._reviewManagers=r,this._prsTreeDataProvider=n,this._prFileChangesProvider=s,this._telemetry=o,gm(this,"_disposables"),this._disposables=[];const T=new h0(S,h);T.registerTextDocumentContentFallback(this.provideTextDocumentContent.bind(this)),this._disposables.push(d.workspace.registerFileSystemProvider("review",T,{isReadonly:!0})),this.registerListeners(),this._disposables.push(this._prsTreeDataProvider)}registerListeners(){this._disposables.push(d.workspace.onDidChangeConfiguration(async e=>{if(e.affectsConfiguration("githubPullRequests.showInSCM")){if(this._prFileChangesProvider){this._prFileChangesProvider.dispose(),this._prFileChangesProvider=new mm(this._context);for(const t of this._reviewManagers)t.updateState(!0)}this._prsTreeDataProvider.dispose(),this._prsTreeDataProvider=new vm(this._telemetry),this._prsTreeDataProvider.initialize(this._reposManager),this._disposables.push(this._prsTreeDataProvider)}}))}async provideTextDocumentContent(e){for(const t of this._reviewManagers)if(e.fsPath.startsWith(t.repository.rootUri.fsPath))return t.provideTextDocumentContent(e);return""}addReviewManager(e){this._reviewManagers.push(e)}removeReviewManager(e){const t=this._reviewManagers.findIndex(r=>r.repository.rootUri.toString()===e.rootUri.toString());if(t){const r=this._reviewManagers[t];this._reviewManagers.splice(t),r.dispose()}}dispose(){this._disposables.forEach(e=>{e.dispose()})}}gm(ym,"ID","Reviews");const v0="AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217";let ir;const wm="prompts",bm="createPROnPublish";async function g0(i,e,t,r,n,s,o){i.subscriptions.push(D),D.appendLine("Git repository found, initializing review manager and pr tree view."),d.authentication.onDidChangeSessions(async xe=>{xe.provider.id==="github"&&(await P.clearCredentialCache(),j&&j.forEach(je=>je.updateState(!0)))}),i.subscriptions.push(e.onDidPublish(async xe=>{if(!xe.branch||d.workspace.getConfiguration(gn).get(hs)!=="ask")return;const je=j.find(Xt=>Xt.repository.rootUri.toString()===xe.repository.rootUri.toString());if(je==null?void 0:je.isCreatingPullRequest)return;const Ke=T.find(Xt=>Xt.repository.rootUri.toString()===xe.repository.rootUri.toString());if(!Ke||Ke.gitHubRepositories.length===0||(await Ke.getPullRequestDefaults()).base===xe.branch)return;const dt="Create Pull Request...",Mt="Don't Show Again",Ht=await d.window.showInformationMessage(`Would you like to create a Pull Request for branch '${xe.branch}'?`,dt,Mt);Ht===dt?je==null||je.createPullRequest(xe.branch):Ht===Mt&&await d.workspace.getConfiguration(gn).update(hs,"never",d.ConfigurationTarget.Global)})),i.subscriptions.push(d.window.registerUriHandler(Mh));const h=d.workspace.workspaceFolders;h&&(r=r.sort((xe,je)=>{let Ke=h.length,ze=h.length;for(let dt=0;dt<h.length&&(h[dt].uri.toString()===xe.rootUri.toString()?Ke=dt:h[dt].uri.toString()===je.rootUri.toString()&&(ze=dt),!(Ke!==h.length&&ze!==h.length));dt++);return Ke-ze}));const S=new af(i),T=r.map(xe=>new ts(i,xe,ir,e,t,S));i.subscriptions.push(...T);const P=new nm(T,t,ir,S);i.subscriptions.push(P),s.then(xe=>{xe&&xe.registerContactServiceProvider("github-pr",new Rf(P))});const V=new mm(i);i.subscriptions.push(V);const j=T.map(xe=>new qn(i,xe.repository,xe,ir,V,o,S));i.subscriptions.push(new Zf(P,j));const ue=new ym(i,P,j,n,V,ir,t,e);i.subscriptions.push(ue),e.onDidChangeState(()=>{D.appendLine(`Git initialization state changed: state=${e.state}`),j.forEach(xe=>xe.updateState(!0))}),e.onDidOpenRepository(xe=>{function je(){if(P.getManagerForFile(xe.rootUri)){D.appendLine(`Repo ${xe.rootUri} has already been setup.`);return}const dt=new ts(i,xe,ir,e,t,S);P.insertFolderManager(dt);const Mt=new qn(i,dt.repository,dt,ir,V,o,S);ue.addReviewManager(Mt),n.refresh()}je();const Ke=xe.state.onDidChange(()=>{D.appendLine(`Repo state for ${xe.rootUri} changed.`),je(),Ke.dispose()})}),e.onDidCloseRepository(xe=>{P.removeRepo(xe),ue.removeReviewManager(xe),n.refresh()}),n.initialize(P),P1(i),rf(i,S,P,j,ir,t,n);const Te=d.workspace.getConfiguration(Yi).get(Bn);await d.commands.executeCommand("setContext","fileListLayout:flat",Te==="flat");const Se=new Xf(e,P,j,i,ir);i.subscriptions.push(Se),await Se.initialize(),i.subscriptions.push(new Nf),await d.commands.executeCommand("setContext","github:initialized",!0);const qe=await uf(i,ir);await qe.initializePromise,await qe.isCachedFlightEnabled("githubaa"),ir.sendTelemetryEvent("startup")}async function y0(i){if(_a==="GitHub.vscode-pull-request-github-insiders"&&d.extensions.getExtension("github.vscode-pull-request-github")!==void 0)throw new Error("GitHub Pull Requests and Issues Nightly cannot be used while GitHub Pull Requests and Issues is also installed. Please ensure that only one version of the extension is installed.");const e=new Wh;d.commands.registerCommand("github.api.preloadPullRequest",async s=>{await d.commands.executeCommand("setContext",Xa,!0),await Hs.focusView("github:activePullRequest:welcome"),e.shouldShow=s});const t=d.workspace.getConfiguration("git").get("openDiffOnClick",!0);await d.commands.executeCommand("setContext","openDiffOnClick",t),un.initialize(i),D.debug("Creating API implementation.","Activation");const r=new nt,n=d.extensions.getExtension(_a).packageJSON.version;return ir=new of(new(U())(_a,n,v0)),i.subscriptions.push(ir),await w0(i,r,e),r}async function _m(i,e,t){const r=await Tf(e,t);return r?(i.subscriptions.push(r),!0):!1}async function w0(i,e,t){D.debug("Initializing state.","Activation"),Am(i),Cp(wm,bm)===!1&&(await d.workspace.getConfiguration(gn).update(hs,"never",d.ConfigurationTarget.Global),Np(wm,bm,!0)),Pl.init(i),D.debug("Creating credential store.","Activation");const r=new C1(ir);if(i.subscriptions.push(r),await r.create({silent:!0}),D.debug("Registering built in git provider.","Activation"),!await _m(i,r,e)){const S=d.extensions.onDidChange(async()=>{await _m(i,r,e)&&S.dispose()});i.subscriptions.push(S)}D.debug("Registering live share git provider.","Activation");const n=Sf(e);i.subscriptions.push(n);const s=n.initialize();i.subscriptions.push(e),D.debug("Creating tree view.","Activation");const o=new vm(ir);i.subscriptions.push(o),i.subscriptions.push(d.workspace.registerFileSystemProvider("pr",em(),{isReadonly:!0})),D.appendLine("Looking for git repository");const h=e.repositories;D.appendLine(`Found ${h.length} repositories during activation`),await g0(i,e,r,h,o,s,t)}async function b0(){ir&&ir.dispose()}})(),module.exports=Ll})();
|