zenstack 0.3.13 → 0.3.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,8 @@
1
1
  try {
2
+ if (process.env.DO_NOT_TRACK == '1') {
3
+ process.exit(0);
4
+ }
5
+
2
6
  const Mixpanel = require('mixpanel');
3
7
  const machineId = require('node-machine-id');
4
8
  const os = require('os');
@@ -3751,7 +3751,7 @@ See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return e}
3751
3751
  `;let A=L8e.default(s);s.write(`${f}\r
3752
3752
  `);let{statusCode:O,buffered:R}=yield A;if(O===200){if(r.once("socket",N8e),t.secureEndpoint){let b=t.servername||t.host;if(!b)throw new Error('Could not determine "servername"');return QA("Upgrading socket connection to TLS"),gue.default.connect(Object.assign(Object.assign({},O8e(t,"host","hostname","path","port")),{socket:s,servername:b}))}return s}s.destroy();let h=new _ue.default.Socket;return h.readable=!0,r.once("socket",b=>{QA("replaying proxy buffer for failed request"),D8e.default(b.listenerCount("data")>0),b.push(R),b.push(null)}),h})}};UT.default=oW;function N8e(e){e.resume()}function I8e(e,r){return Boolean(!r&&e===80||r&&e===443)}function P8e(e){return typeof e=="string"?/^https:?$/i.test(e):!1}function O8e(e,...r){let t={},i;for(i in e)r.includes(i)||(t[i]=e[i]);return t}});var hue=pt((uW,vue)=>{"use strict";var k8e=uW&&uW.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},sW=k8e(yue());function lW(e){return new sW.default(e)}(function(e){e.HttpsProxyAgent=sW.default,e.prototype=sW.default.prototype})(lW||(lW={}));vue.exports=lW});var Eue=pt(($$e,R8e)=>{R8e.exports={name:"mixpanel",description:"A simple server-side API for mixpanel",keywords:["mixpanel","analytics","api","stats"],version:"0.17.0",homepage:"https://github.com/mixpanel/mixpanel-node",author:"Carl Sverre",license:"MIT",main:"lib/mixpanel-node",directories:{lib:"lib"},repository:{type:"git",url:"http://github.com/mixpanel/mixpanel-node.git"},engines:{node:">=10.0"},scripts:{test:"nodeunit"},types:"./lib/mixpanel-node.d.ts",devDependencies:{nodeunit:"^0.11.3",proxyquire:"^1.7.11",sinon:"^7.1.1"},dependencies:{"https-proxy-agent":"5.0.0"}}});var dW=pt(cW=>{cW.async_all=function(e,r,t){var i=e.length,a=null,s=[],u=function(m,_){m&&(a=a||[],a.push(m)),s.push(_),--i===0&&t(a,s)};if(i===0)t(a,s);else for(var p=0,f=e.length;p<f;p++)r(e[p],u)};cW.ensure_timestamp=function(e){if(!(e instanceof Date||typeof e=="number"))throw new Error("`time` property must be a Date or Unix timestamp and is only required for `import` endpoint");return e instanceof Date?e.getTime():e}});var pW=pt(fW=>{var Hk=require("util"),{ensure_timestamp:M8e}=dW();function bD(e,r){return r&&(r.$ignore_alias&&(e.$ignore_alias=r.$ignore_alias),r.$ignore_time&&(e.$ignore_time=r.$ignore_time),r.hasOwnProperty("$ip")&&(e.$ip=r.$ip),r.hasOwnProperty("$time")&&(e.$time=M8e(r.$time)),r.hasOwnProperty("$latitude")&&r.hasOwnProperty("$longitude")&&(e.$latitude=r.$latitude,e.$longitude=r.$longitude)),e}fW.merge_modifiers=bD;fW.ProfileHelpers=(e=Object)=>class extends e{get token(){return this.mixpanel.token}get config(){return this.mixpanel.config}_set(r,t,i,a,{identifiers:s,set_once:u=!1}){let p={};typeof r=="object"?(typeof t=="object"?(a=i,i=t):a=t,p=r):(p[r]=t,(typeof i=="function"||!i)&&(a=i));let f={$token:this.token,...s},m=u?"$set_once":"$set";f[m]=p,"ip"in p&&(f.$ip=p.ip,delete p.ip),p.$ignore_time&&(f.$ignore_time=p.$ignore_time,delete p.$ignore_time),f=bD(f,i),this.config.debug&&(console.log(`Sending the following data to Mixpanel (${this.endpoint}):`),console.log(f)),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:f},a)}_delete_profile({identifiers:r,modifiers:t,callback:i}){let a={$delete:"",$token:this.token,...r};typeof t=="function"&&(i=t),a=bD(a,t),this.config.debug&&console.log(`Deleting profile ${JSON.stringify(r)}`),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:a},i)}_remove({identifiers:r,data:t,modifiers:i,callback:a}){let s={};if(typeof t!="object"||Hk.isArray(t)){this.config.debug&&console.error("Invalid value passed to #remove - data must be an object with scalar values");return}for(let[u,p]of Object.entries(t))if(typeof p=="string"||typeof p=="number")s[u]=p;else{this.config.debug&&(console.error("Invalid argument passed to #remove - values must be scalar"),console.error("Passed "+u+":",p));return}Object.keys(s).length!==0&&(t={$remove:s,$token:this.token,...r},typeof i=="function"&&(a=i),t=bD(t,i),this.config.debug&&(console.log(`Sending the following data to Mixpanel (${this.endpoint}):`),console.log(t)),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:t},a))}_union({identifiers:r,data:t,modifiers:i,callback:a}){let s={};if(typeof t!="object"||Hk.isArray(t)){this.config.debug&&console.error("Invalid value passed to #union - data must be an object with scalar or array values");return}for(let[p,f]of Object.entries(t))if(Hk.isArray(f)){var u=f.filter(function(m){return typeof m=="string"||typeof m=="number"});u.length>0&&(s[p]=u)}else typeof f=="string"||typeof f=="number"?s[p]=[f]:this.config.debug&&(console.error("Invalid argument passed to #union - values must be a scalar value or array"),console.error("Passed "+p+":",f));Object.keys(s).length!==0&&(t={$union:s,$token:this.token,...r},typeof i=="function"&&(a=i),t=bD(t,i),this.config.debug&&(console.log(`Sending the following data to Mixpanel (${this.endpoint}):`),console.log(t)),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:t},a))}_unset({identifiers:r,prop:t,modifiers:i,callback:a}){let s=[];if(Hk.isArray(t))s=t;else if(typeof t=="string")s=[t];else{this.config.debug&&(console.error("Invalid argument passed to #unset - must be a string or array"),console.error("Passed: "+t));return}let u={$unset:s,$token:this.token,...r};typeof i=="function"&&(a=i),u=bD(u,i),this.config.debug&&(console.log(`Sending the following data to Mixpanel (${this.endpoint}):`),console.log(u)),this.mixpanel.send_request({method:"GET",endpoint:this.endpoint,data:u},a)}}});var Sue=pt(bue=>{var{ProfileHelpers:w8e}=pW(),mW=class extends w8e(){constructor(r){super(),this.mixpanel=r,this.endpoint="/groups"}set_once(r,t,i,a,s,u){let p={$group_key:r,$group_id:t};this._set(i,a,s,u,{identifiers:p,set_once:!0})}set(r,t,i,a,s,u){let p={$group_key:r,$group_id:t};this._set(i,a,s,u,{identifiers:p})}delete_group(r,t,i,a){let s={$group_key:r,$group_id:t};this._delete_profile({identifiers:s,modifiers:i,callback:a})}remove(r,t,i,a,s){let u={$group_key:r,$group_id:t};this._remove({identifiers:u,data:i,modifiers:a,callback:s})}union(r,t,i,a,s){let u={$group_key:r,$group_id:t};this._union({identifiers:u,data:i,modifiers:a,callback:s})}unset(r,t,i,a,s){let u={$group_key:r,$group_id:t};this._unset({identifiers:u,prop:i,modifiers:a,callback:s})}};bue.MixpanelGroups=mW});var xue=pt(Tue=>{var{merge_modifiers:qk,ProfileHelpers:F8e}=pW(),_W=class extends F8e(){constructor(r){super(),this.mixpanel=r,this.endpoint="/engage"}set_once(r,t,i,a,s){let u={$distinct_id:r};this._set(t,i,a,s,{identifiers:u,set_once:!0})}set(r,t,i,a,s){let u={$distinct_id:r};this._set(t,i,a,s,{identifiers:u})}increment(r,t,i,a,s){var u={};if(typeof t=="object"){typeof i=="object"?(s=a,a=i):s=i;for(let[f,m]of Object.entries(t))isNaN(parseFloat(m))?this.mixpanel.config.debug&&(console.error("Invalid increment value passed to mixpanel.people.increment - must be a number"),console.error("Passed "+f+":"+m)):u[f]=m}else typeof i=="number"||!i?(i=i||1,u[t]=i,typeof a=="function"&&(s=a)):typeof i=="function"?(s=i,u[t]=1):(s=a,a=typeof i=="object"?i:{},u[t]=1);var p={$add:u,$token:this.mixpanel.token,$distinct_id:r};p=qk(p,a),this.mixpanel.config.debug&&(console.log("Sending the following data to Mixpanel (Engage):"),console.log(p)),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:p},s)}append(r,t,i,a,s){var u={};typeof t=="object"?(typeof i=="object"?(s=a,a=i):s=i,Object.keys(t).forEach(function(f){u[f]=t[f]})):(u[t]=i,typeof a=="function"&&(s=a));var p={$append:u,$token:this.mixpanel.token,$distinct_id:r};p=qk(p,a),this.mixpanel.config.debug&&(console.log("Sending the following data to Mixpanel (Engage):"),console.log(p)),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:p},s)}track_charge(r,t,i,a,s){if(typeof i=="function"||!i?(s=i||function(){},i={}):(typeof a=="function"||!a)&&(s=a||function(){},(i.$ignore_time||i.hasOwnProperty("$ip"))&&(a={},Object.keys(i).forEach(function(f){a[f]=i[f],delete i[f]}))),typeof t!="number"&&(t=parseFloat(t),isNaN(t))){console.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}if(i.$amount=t,i.hasOwnProperty("$time")){var u=i.$time;Object.prototype.toString.call(u)==="[object Date]"&&(i.$time=u.toISOString())}var p={$append:{$transactions:i},$token:this.mixpanel.token,$distinct_id:r};p=qk(p,a),this.mixpanel.config.debug&&(console.log("Sending the following data to Mixpanel (Engage):"),console.log(p)),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:p},s)}clear_charges(r,t,i){var a={$set:{$transactions:[]},$token:this.mixpanel.token,$distinct_id:r};typeof t=="function"&&(i=t),a=qk(a,t),this.mixpanel.config.debug&&console.log("Clearing this user's charges:",r),this.mixpanel.send_request({method:"GET",endpoint:"/engage",data:a},i)}delete_user(r,t,i){let a={$distinct_id:r};this._delete_profile({identifiers:a,modifiers:t,callback:i})}remove(r,t,i,a){let s={$distinct_id:r};this._remove({identifiers:s,data:t,modifiers:i,callback:a})}union(r,t,i,a){let s={$distinct_id:r};this._union({identifiers:s,data:t,modifiers:i,callback:a})}unset(r,t,i,a){let s={$distinct_id:r};this._unset({identifiers:s,prop:t,modifiers:i,callback:a})}};Tue.MixpanelPeople=_W});var Lue=pt((rXe,Aue)=>{var G8e=require("querystring"),gW=require("buffer").Buffer,Due=require("http"),yW=require("https"),B8e=hue(),U8e=require("url"),K8e=Eue(),{async_all:W8e,ensure_timestamp:vW}=dW(),{MixpanelGroups:V8e}=Sue(),{MixpanelPeople:j8e}=xue(),H8e={test:!1,debug:!1,verbose:!1,host:"api.mixpanel.com",protocol:"https",path:"",keepAlive:!0,geolocate:!1},Cue=function(e,r){if(!e)throw new Error("The Mixpanel Client needs a Mixpanel token: `init(token)`");let t={token:e,config:{...H8e}},{keepAlive:i}=t.config,a=50,s={http:Due,https:yW},u={http:new Due.Agent({keepAlive:i}),https:new yW.Agent({keepAlive:i})},p=process.env.HTTPS_PROXY||process.env.HTTP_PROXY,f=p?new B8e(Object.assign(U8e.parse(p),{keepAlive:i})):null;t.send_request=function(x,A){A=A||function(){};let O=gW.from(JSON.stringify(x.data)).toString("base64"),R=x.endpoint,h=(x.method||"GET").toUpperCase(),b={ip:t.config.geolocate?1:0,verbose:t.config.verbose?1:0},K=t.config.key,C=t.config.secret,F=s[t.config.protocol],N={host:t.config.host,port:t.config.port,headers:{},method:h},q;if(!F)throw new Error("Mixpanel Initialization Error: Unsupported protocol "+t.config.protocol+". Supported protocols are: "+Object.keys(s));if(h==="POST"?(O="data="+O,N.headers["Content-Type"]="application/x-www-form-urlencoded",N.headers["Content-Length"]=gW.byteLength(O)):h==="GET"&&(b.data=O),C){if(F!==yW)throw new Error("Must use HTTPS if authenticating with API Secret");let I=gW.from(C+":").toString("base64");N.headers.Authorization="Basic "+I}else if(K)b.api_key=K;else if(R==="/import")throw new Error("The Mixpanel Client needs a Mixpanel API Secret when importing old events: `init(token, { secret: ... })`");N.agent=f||u[t.config.protocol],t.config.test&&(b.test=1),N.path=t.config.path+R+"?"+G8e.stringify(b),q=F.request(N,function(I){var le="";I.on("data",function(fe){le+=fe}),I.on("end",function(){var fe;if(t.config.verbose)try{var he=JSON.parse(le);he.status!=1&&(fe=new Error("Mixpanel Server Error: "+he.error))}catch{fe=new Error("Could not parse response from Mixpanel")}else fe=le!=="1"?new Error("Mixpanel Server Error: "+le):void 0;A(fe)})}),q.on("error",function(I){t.config.debug&&console.log("Got Error: "+I.message),A(I)}),h==="POST"&&q.write(O),q.end()},t.send_event_request=function(x,A,O,R){O.token=t.token,O.mp_lib="node",O.$lib_version=K8e.version;var h={event:A,properties:O};t.config.debug&&console.log(`Sending the following event to Mixpanel:
3753
3753
  `,h),t.send_request({method:"GET",endpoint:x,data:h},R)};var m=function(x,A){for(var O=[],R=0,h=x.length;R<h;)O.push(x.slice(R,R+=A));return O},_=function(x,A){var O=x.event_list,R=x.endpoint,h=x.max_batch_size?Math.min(a,x.max_batch_size):a,b=x.max_concurrent_requests||x.max_batch_size>a&&Math.ceil(x.max_batch_size/a),K=m(O,h),C=b?m(K,b):[K],F=K.length,N=C.length;function q(le,fe){le.length>0&&(le=le.map(function(he){var re=he.properties;return(R==="/import"||he.properties.time)&&(he.properties.time=vW(he.properties.time)),he.properties.token=he.properties.token||t.token,he}),t.send_request({method:"POST",endpoint:R,data:le},fe))}function I(le){var fe=C[le],he=function(re,G){le+=1,le===N?A&&A(re,G):I(le)};W8e(fe,q,he)}I(0),t.config.debug&&console.log("Sending "+O.length+" events to Mixpanel in "+F+" batches of events and "+N+" batches of requests")};return t.track=function(x,A,O){(!A||typeof A=="function")&&(O=A,A={}),A.time&&(A.time=vW(A.time)),t.send_event_request("/track",x,A,O)},t.track_batch=function(x,A,O){A=A||{},typeof A=="function"&&(O=A,A={});var R={event_list:x,endpoint:"/track",max_concurrent_requests:A.max_concurrent_requests,max_batch_size:A.max_batch_size};_(R,O)},t.import=function(x,A,O,R){(!O||typeof O=="function")&&(R=O,O={}),O.time=vW(A),t.send_event_request("/import",x,O,R)},t.import_batch=function(x,A,O){var R;(typeof A=="function"||!A)&&(O=A,A={}),R={event_list:x,endpoint:"/import",max_concurrent_requests:A.max_concurrent_requests,max_batch_size:A.max_batch_size},_(R,O)},t.alias=function(x,A,O){var R={distinct_id:x,alias:A};t.track("$create_alias",R,O)},t.groups=new V8e(t),t.people=new j8e(t),t.set_config=function(x){if(Object.assign(t.config,x),x.host){let[A,O]=x.host.split(":");t.config.host=A,O&&(t.config.port=Number(O))}},r&&t.set_config(r),t};Aue.exports={Client:function(e){return console.warn("The function `Client(token)` is deprecated. It is now called `init(token)`."),Cue(e)},init:Cue}});var Iue=pt((ZA,hW)=>{(function(e,r){typeof ZA=="object"&&typeof hW=="object"?hW.exports=r(require("child_process"),require("crypto")):typeof define=="function"&&define.amd?define(["child_process","crypto"],r):typeof ZA=="object"?ZA["electron-machine-id"]=r(require("child_process"),require("crypto")):e["electron-machine-id"]=r(e.child_process,e.crypto)})(ZA,function(e,r){return function(t){function i(s){if(a[s])return a[s].exports;var u=a[s]={exports:{},id:s,loaded:!1};return t[s].call(u.exports,u,u.exports,i),u.loaded=!0,u.exports}var a={};return i.m=t,i.c=a,i.p="",i(0)}([function(t,i,a){t.exports=a(34)},function(t,i,a){var s=a(29)("wks"),u=a(33),p=a(2).Symbol,f=typeof p=="function",m=t.exports=function(_){return s[_]||(s[_]=f&&p[_]||(f?p:u)("Symbol."+_))};m.store=s},function(t,i){var a=t.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)},function(t,i,a){var s=a(9);t.exports=function(u){if(!s(u))throw TypeError(u+" is not an object!");return u}},function(t,i,a){t.exports=!a(24)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(t,i,a){var s=a(12),u=a(17);t.exports=a(4)?function(p,f,m){return s.f(p,f,u(1,m))}:function(p,f,m){return p[f]=m,p}},function(t,i){var a=t.exports={version:"2.4.0"};typeof __e=="number"&&(__e=a)},function(t,i,a){var s=a(14);t.exports=function(u,p,f){if(s(u),p===void 0)return u;switch(f){case 1:return function(m){return u.call(p,m)};case 2:return function(m,_){return u.call(p,m,_)};case 3:return function(m,_,x){return u.call(p,m,_,x)}}return function(){return u.apply(p,arguments)}}},function(t,i){var a={}.hasOwnProperty;t.exports=function(s,u){return a.call(s,u)}},function(t,i){t.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},function(t,i){t.exports={}},function(t,i){var a={}.toString;t.exports=function(s){return a.call(s).slice(8,-1)}},function(t,i,a){var s=a(3),u=a(26),p=a(32),f=Object.defineProperty;i.f=a(4)?Object.defineProperty:function(m,_,x){if(s(m),_=p(_,!0),s(x),u)try{return f(m,_,x)}catch{}if("get"in x||"set"in x)throw TypeError("Accessors not supported!");return"value"in x&&(m[_]=x.value),m}},function(t,i,a){var s=a(42),u=a(15);t.exports=function(p){return s(u(p))}},function(t,i){t.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},function(t,i){t.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},function(t,i,a){var s=a(9),u=a(2).document,p=s(u)&&s(u.createElement);t.exports=function(f){return p?u.createElement(f):{}}},function(t,i){t.exports=function(a,s){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:s}}},function(t,i,a){var s=a(12).f,u=a(8),p=a(1)("toStringTag");t.exports=function(f,m,_){f&&!u(f=_?f:f.prototype,p)&&s(f,p,{configurable:!0,value:m})}},function(t,i,a){var s=a(29)("keys"),u=a(33);t.exports=function(p){return s[p]||(s[p]=u(p))}},function(t,i){var a=Math.ceil,s=Math.floor;t.exports=function(u){return isNaN(u=+u)?0:(u>0?s:a)(u)}},function(t,i,a){var s=a(11),u=a(1)("toStringTag"),p=s(function(){return arguments}())=="Arguments",f=function(m,_){try{return m[_]}catch{}};t.exports=function(m){var _,x,A;return m===void 0?"Undefined":m===null?"Null":typeof(x=f(_=Object(m),u))=="string"?x:p?s(_):(A=s(_))=="Object"&&typeof _.callee=="function"?"Arguments":A}},function(t,i){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,i,a){var s=a(2),u=a(6),p=a(7),f=a(5),m="prototype",_=function(x,A,O){var R,h,b,K=x&_.F,C=x&_.G,F=x&_.S,N=x&_.P,q=x&_.B,I=x&_.W,le=C?u:u[A]||(u[A]={}),fe=le[m],he=C?s:F?s[A]:(s[A]||{})[m];C&&(O=A);for(R in O)h=!K&&he&&he[R]!==void 0,h&&R in le||(b=h?he[R]:O[R],le[R]=C&&typeof he[R]!="function"?O[R]:q&&h?p(b,s):I&&he[R]==b?function(re){var G=function(Y,X,P){if(this instanceof re){switch(arguments.length){case 0:return new re;case 1:return new re(Y);case 2:return new re(Y,X)}return new re(Y,X,P)}return re.apply(this,arguments)};return G[m]=re[m],G}(b):N&&typeof b=="function"?p(Function.call,b):b,N&&((le.virtual||(le.virtual={}))[R]=b,x&_.R&&fe&&!fe[R]&&f(fe,R,b)))};_.F=1,_.G=2,_.S=4,_.P=8,_.B=16,_.W=32,_.U=64,_.R=128,t.exports=_},function(t,i){t.exports=function(a){try{return!!a()}catch{return!0}}},function(t,i,a){t.exports=a(2).document&&document.documentElement},function(t,i,a){t.exports=!a(4)&&!a(24)(function(){return Object.defineProperty(a(16)("div"),"a",{get:function(){return 7}}).a!=7})},function(t,i,a){"use strict";var s=a(28),u=a(23),p=a(57),f=a(5),m=a(8),_=a(10),x=a(45),A=a(18),O=a(52),R=a(1)("iterator"),h=!([].keys&&"next"in[].keys()),b="@@iterator",K="keys",C="values",F=function(){return this};t.exports=function(N,q,I,le,fe,he,re){x(I,q,le);var G,Y,X,P=function(ue){if(!h&&ue in V)return V[ue];switch(ue){case K:return function(){return new I(this,ue)};case C:return function(){return new I(this,ue)}}return function(){return new I(this,ue)}},B=q+" Iterator",ie=fe==C,$=!1,V=N.prototype,j=V[R]||V[b]||fe&&V[fe],ne=j||P(fe),Z=fe?ie?P("entries"):ne:void 0,se=q=="Array"&&V.entries||j;if(se&&(X=O(se.call(new N)),X!==Object.prototype&&(A(X,B,!0),s||m(X,R)||f(X,R,F))),ie&&j&&j.name!==C&&($=!0,ne=function(){return j.call(this)}),s&&!re||!h&&!$&&V[R]||f(V,R,ne),_[q]=ne,_[B]=F,fe)if(G={values:ie?ne:P(C),keys:he?ne:P(K),entries:Z},re)for(Y in G)Y in V||p(V,Y,G[Y]);else u(u.P+u.F*(h||$),q,G);return G}},function(t,i){t.exports=!0},function(t,i,a){var s=a(2),u="__core-js_shared__",p=s[u]||(s[u]={});t.exports=function(f){return p[f]||(p[f]={})}},function(t,i,a){var s,u,p,f=a(7),m=a(41),_=a(25),x=a(16),A=a(2),O=A.process,R=A.setImmediate,h=A.clearImmediate,b=A.MessageChannel,K=0,C={},F="onreadystatechange",N=function(){var I=+this;if(C.hasOwnProperty(I)){var le=C[I];delete C[I],le()}},q=function(I){N.call(I.data)};R&&h||(R=function(I){for(var le=[],fe=1;arguments.length>fe;)le.push(arguments[fe++]);return C[++K]=function(){m(typeof I=="function"?I:Function(I),le)},s(K),K},h=function(I){delete C[I]},a(11)(O)=="process"?s=function(I){O.nextTick(f(N,I,1))}:b?(u=new b,p=u.port2,u.port1.onmessage=q,s=f(p.postMessage,p,1)):A.addEventListener&&typeof postMessage=="function"&&!A.importScripts?(s=function(I){A.postMessage(I+"","*")},A.addEventListener("message",q,!1)):s=F in x("script")?function(I){_.appendChild(x("script"))[F]=function(){_.removeChild(this),N.call(I)}}:function(I){setTimeout(f(N,I,1),0)}),t.exports={set:R,clear:h}},function(t,i,a){var s=a(20),u=Math.min;t.exports=function(p){return p>0?u(s(p),9007199254740991):0}},function(t,i,a){var s=a(9);t.exports=function(u,p){if(!s(u))return u;var f,m;if(p&&typeof(f=u.toString)=="function"&&!s(m=f.call(u))||typeof(f=u.valueOf)=="function"&&!s(m=f.call(u))||!p&&typeof(f=u.toString)=="function"&&!s(m=f.call(u)))return m;throw TypeError("Can't convert object to primitive value")}},function(t,i){var a=0,s=Math.random();t.exports=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++a+s).toString(36))}},function(t,i,a){"use strict";function s(F){return F&&F.__esModule?F:{default:F}}function u(){return process.platform!=="win32"?"":process.arch==="ia32"&&process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?"mixed":"native"}function p(F){return(0,R.createHash)("sha256").update(F).digest("hex")}function f(F){switch(b){case"darwin":return F.split("IOPlatformUUID")[1].split(`
3754
- `)[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return F.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":return F.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"freebsd":return F.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw new Error("Unsupported platform: "+process.platform)}}function m(F){var N=f((0,O.execSync)(C[b]).toString());return F?N:p(N)}function _(F){return new A.default(function(N,q){return(0,O.exec)(C[b],{},function(I,le,fe){if(I)return q(new Error("Error while obtaining machine id: "+I.stack));var he=f(le.toString());return N(F?he:p(he))})})}Object.defineProperty(i,"__esModule",{value:!0});var x=a(35),A=s(x);i.machineIdSync=m,i.machineId=_;var O=a(70),R=a(71),h=process,b=h.platform,K={native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"},C={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:K[u()]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(t,i,a){t.exports={default:a(36),__esModule:!0}},function(t,i,a){a(66),a(68),a(69),a(67),t.exports=a(6).Promise},function(t,i){t.exports=function(){}},function(t,i){t.exports=function(a,s,u,p){if(!(a instanceof s)||p!==void 0&&p in a)throw TypeError(u+": incorrect invocation!");return a}},function(t,i,a){var s=a(13),u=a(31),p=a(62);t.exports=function(f){return function(m,_,x){var A,O=s(m),R=u(O.length),h=p(x,R);if(f&&_!=_){for(;R>h;)if(A=O[h++],A!=A)return!0}else for(;R>h;h++)if((f||h in O)&&O[h]===_)return f||h||0;return!f&&-1}}},function(t,O,a){var s=a(7),u=a(44),p=a(43),f=a(3),m=a(31),_=a(64),x={},A={},O=t.exports=function(R,h,b,K,C){var F,N,q,I,le=C?function(){return R}:_(R),fe=s(b,K,h?2:1),he=0;if(typeof le!="function")throw TypeError(R+" is not iterable!");if(p(le)){for(F=m(R.length);F>he;he++)if(I=h?fe(f(N=R[he])[0],N[1]):fe(R[he]),I===x||I===A)return I}else for(q=le.call(R);!(N=q.next()).done;)if(I=u(q,fe,N.value,h),I===x||I===A)return I};O.BREAK=x,O.RETURN=A},function(t,i){t.exports=function(a,s,u){var p=u===void 0;switch(s.length){case 0:return p?a():a.call(u);case 1:return p?a(s[0]):a.call(u,s[0]);case 2:return p?a(s[0],s[1]):a.call(u,s[0],s[1]);case 3:return p?a(s[0],s[1],s[2]):a.call(u,s[0],s[1],s[2]);case 4:return p?a(s[0],s[1],s[2],s[3]):a.call(u,s[0],s[1],s[2],s[3])}return a.apply(u,s)}},function(t,i,a){var s=a(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(t,i,a){var s=a(10),u=a(1)("iterator"),p=Array.prototype;t.exports=function(f){return f!==void 0&&(s.Array===f||p[u]===f)}},function(t,i,a){var s=a(3);t.exports=function(u,p,f,m){try{return m?p(s(f)[0],f[1]):p(f)}catch(x){var _=u.return;throw _!==void 0&&s(_.call(u)),x}}},function(t,i,a){"use strict";var s=a(49),u=a(17),p=a(18),f={};a(5)(f,a(1)("iterator"),function(){return this}),t.exports=function(m,_,x){m.prototype=s(f,{next:u(1,x)}),p(m,_+" Iterator")}},function(t,i,a){var s=a(1)("iterator"),u=!1;try{var p=[7][s]();p.return=function(){u=!0},Array.from(p,function(){throw 2})}catch{}t.exports=function(f,m){if(!m&&!u)return!1;var _=!1;try{var x=[7],A=x[s]();A.next=function(){return{done:_=!0}},x[s]=function(){return A},f(x)}catch{}return _}},function(t,i){t.exports=function(a,s){return{value:s,done:!!a}}},function(t,i,a){var s=a(2),u=a(30).set,p=s.MutationObserver||s.WebKitMutationObserver,f=s.process,m=s.Promise,_=a(11)(f)=="process";t.exports=function(){var x,A,O,R=function(){var C,F;for(_&&(C=f.domain)&&C.exit();x;){F=x.fn,x=x.next;try{F()}catch(N){throw x?O():A=void 0,N}}A=void 0,C&&C.enter()};if(_)O=function(){f.nextTick(R)};else if(p){var h=!0,b=document.createTextNode("");new p(R).observe(b,{characterData:!0}),O=function(){b.data=h=!h}}else if(m&&m.resolve){var K=m.resolve();O=function(){K.then(R)}}else O=function(){u.call(s,R)};return function(C){var F={fn:C,next:void 0};A&&(A.next=F),x||(x=F,O()),A=F}}},function(t,i,a){var s=a(3),u=a(50),p=a(22),f=a(19)("IE_PROTO"),m=function(){},_="prototype",x=function(){var A,O=a(16)("iframe"),R=p.length,h=">";for(O.style.display="none",a(25).appendChild(O),O.src="javascript:",A=O.contentWindow.document,A.open(),A.write("<script>document.F=Object<\/script"+h),A.close(),x=A.F;R--;)delete x[_][p[R]];return x()};t.exports=Object.create||function(A,O){var R;return A!==null?(m[_]=s(A),R=new m,m[_]=null,R[f]=A):R=x(),O===void 0?R:u(R,O)}},function(t,i,a){var s=a(12),u=a(3),p=a(54);t.exports=a(4)?Object.defineProperties:function(f,m){u(f);for(var _,x=p(m),A=x.length,O=0;A>O;)s.f(f,_=x[O++],m[_]);return f}},function(t,i,a){var s=a(55),u=a(17),p=a(13),f=a(32),m=a(8),_=a(26),x=Object.getOwnPropertyDescriptor;i.f=a(4)?x:function(A,O){if(A=p(A),O=f(O,!0),_)try{return x(A,O)}catch{}if(m(A,O))return u(!s.f.call(A,O),A[O])}},function(t,i,a){var s=a(8),u=a(63),p=a(19)("IE_PROTO"),f=Object.prototype;t.exports=Object.getPrototypeOf||function(m){return m=u(m),s(m,p)?m[p]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?f:null}},function(t,i,a){var s=a(8),u=a(13),p=a(39)(!1),f=a(19)("IE_PROTO");t.exports=function(m,_){var x,A=u(m),O=0,R=[];for(x in A)x!=f&&s(A,x)&&R.push(x);for(;_.length>O;)s(A,x=_[O++])&&(~p(R,x)||R.push(x));return R}},function(t,i,a){var s=a(53),u=a(22);t.exports=Object.keys||function(p){return s(p,u)}},function(t,i){i.f={}.propertyIsEnumerable},function(t,i,a){var s=a(5);t.exports=function(u,p,f){for(var m in p)f&&u[m]?u[m]=p[m]:s(u,m,p[m]);return u}},function(t,i,a){t.exports=a(5)},function(t,i,a){var s=a(9),u=a(3),p=function(f,m){if(u(f),!s(m)&&m!==null)throw TypeError(m+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(f,m,_){try{_=a(7)(Function.call,a(51).f(Object.prototype,"__proto__").set,2),_(f,[]),m=!(f instanceof Array)}catch{m=!0}return function(x,A){return p(x,A),m?x.__proto__=A:_(x,A),x}}({},!1):void 0),check:p}},function(t,i,a){"use strict";var s=a(2),u=a(6),p=a(12),f=a(4),m=a(1)("species");t.exports=function(_){var x=typeof u[_]=="function"?u[_]:s[_];f&&x&&!x[m]&&p.f(x,m,{configurable:!0,get:function(){return this}})}},function(t,i,a){var s=a(3),u=a(14),p=a(1)("species");t.exports=function(f,m){var _,x=s(f).constructor;return x===void 0||(_=s(x)[p])==null?m:u(_)}},function(t,i,a){var s=a(20),u=a(15);t.exports=function(p){return function(f,m){var _,x,A=String(u(f)),O=s(m),R=A.length;return O<0||O>=R?p?"":void 0:(_=A.charCodeAt(O),_<55296||_>56319||O+1===R||(x=A.charCodeAt(O+1))<56320||x>57343?p?A.charAt(O):_:p?A.slice(O,O+2):(_-55296<<10)+(x-56320)+65536)}}},function(t,i,a){var s=a(20),u=Math.max,p=Math.min;t.exports=function(f,m){return f=s(f),f<0?u(f+m,0):p(f,m)}},function(t,i,a){var s=a(15);t.exports=function(u){return Object(s(u))}},function(t,i,a){var s=a(21),u=a(1)("iterator"),p=a(10);t.exports=a(6).getIteratorMethod=function(f){if(f!=null)return f[u]||f["@@iterator"]||p[s(f)]}},function(t,i,a){"use strict";var s=a(37),u=a(47),p=a(10),f=a(13);t.exports=a(27)(Array,"Array",function(m,_){this._t=f(m),this._i=0,this._k=_},function(){var m=this._t,_=this._k,x=this._i++;return!m||x>=m.length?(this._t=void 0,u(1)):_=="keys"?u(0,x):_=="values"?u(0,m[x]):u(0,[x,m[x]])},"values"),p.Arguments=p.Array,s("keys"),s("values"),s("entries")},function(t,i){},function(t,i,a){"use strict";var s,u,p,f=a(28),m=a(2),_=a(7),x=a(21),A=a(23),O=a(9),R=(a(3),a(14)),h=a(38),b=a(40),K=(a(58).set,a(60)),C=a(30).set,F=a(48)(),N="Promise",q=m.TypeError,le=m.process,I=m[N],le=m.process,fe=x(le)=="process",he=function(){},re=!!function(){try{var se=I.resolve(1),ue=(se.constructor={})[a(1)("species")]=function(k){k(he,he)};return(fe||typeof PromiseRejectionEvent=="function")&&se.then(he)instanceof ue}catch{}}(),G=function(se,ue){return se===ue||se===I&&ue===p},Y=function(se){var ue;return!(!O(se)||typeof(ue=se.then)!="function")&&ue},X=function(se){return G(I,se)?new P(se):new u(se)},P=u=function(se){var ue,k;this.promise=new se(function(W,T){if(ue!==void 0||k!==void 0)throw q("Bad Promise constructor");ue=W,k=T}),this.resolve=R(ue),this.reject=R(k)},B=function(se){try{se()}catch(ue){return{error:ue}}},ie=function(se,ue){if(!se._n){se._n=!0;var k=se._c;F(function(){for(var W=se._v,T=se._s==1,L=0,J=function(v){var U,H,Q=T?v.ok:v.fail,te=v.resolve,be=v.reject,ye=v.domain;try{Q?(T||(se._h==2&&j(se),se._h=1),Q===!0?U=W:(ye&&ye.enter(),U=Q(W),ye&&ye.exit()),U===v.promise?be(q("Promise-chain cycle")):(H=Y(U))?H.call(U,te,be):te(U)):be(W)}catch(xe){be(xe)}};k.length>L;)J(k[L++]);se._c=[],se._n=!1,ue&&!se._h&&$(se)})}},$=function(se){C.call(m,function(){var ue,k,W,T=se._v;if(V(se)&&(ue=B(function(){fe?le.emit("unhandledRejection",T,se):(k=m.onunhandledrejection)?k({promise:se,reason:T}):(W=m.console)&&W.error&&W.error("Unhandled promise rejection",T)}),se._h=fe||V(se)?2:1),se._a=void 0,ue)throw ue.error})},V=function(se){if(se._h==1)return!1;for(var ue,k=se._a||se._c,W=0;k.length>W;)if(ue=k[W++],ue.fail||!V(ue.promise))return!1;return!0},j=function(se){C.call(m,function(){var ue;fe?le.emit("rejectionHandled",se):(ue=m.onrejectionhandled)&&ue({promise:se,reason:se._v})})},ne=function(se){var ue=this;ue._d||(ue._d=!0,ue=ue._w||ue,ue._v=se,ue._s=2,ue._a||(ue._a=ue._c.slice()),ie(ue,!0))},Z=function(se){var ue,k=this;if(!k._d){k._d=!0,k=k._w||k;try{if(k===se)throw q("Promise can't be resolved itself");(ue=Y(se))?F(function(){var W={_w:k,_d:!1};try{ue.call(se,_(Z,W,1),_(ne,W,1))}catch(T){ne.call(W,T)}}):(k._v=se,k._s=1,ie(k,!1))}catch(W){ne.call({_w:k,_d:!1},W)}}};re||(I=function(se){h(this,I,N,"_h"),R(se),s.call(this);try{se(_(Z,this,1),_(ne,this,1))}catch(ue){ne.call(this,ue)}},s=function(se){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},s.prototype=a(56)(I.prototype,{then:function(se,ue){var k=X(K(this,I));return k.ok=typeof se!="function"||se,k.fail=typeof ue=="function"&&ue,k.domain=fe?le.domain:void 0,this._c.push(k),this._a&&this._a.push(k),this._s&&ie(this,!1),k.promise},catch:function(se){return this.then(void 0,se)}}),P=function(){var se=new s;this.promise=se,this.resolve=_(Z,se,1),this.reject=_(ne,se,1)}),A(A.G+A.W+A.F*!re,{Promise:I}),a(18)(I,N),a(59)(N),p=a(6)[N],A(A.S+A.F*!re,N,{reject:function(se){var ue=X(this),k=ue.reject;return k(se),ue.promise}}),A(A.S+A.F*(f||!re),N,{resolve:function(se){if(se instanceof I&&G(se.constructor,this))return se;var ue=X(this),k=ue.resolve;return k(se),ue.promise}}),A(A.S+A.F*!(re&&a(46)(function(se){I.all(se).catch(he)})),N,{all:function(se){var ue=this,k=X(ue),W=k.resolve,T=k.reject,L=B(function(){var J=[],v=0,U=1;b(se,!1,function(H){var Q=v++,te=!1;J.push(void 0),U++,ue.resolve(H).then(function(be){te||(te=!0,J[Q]=be,--U||W(J))},T)}),--U||W(J)});return L&&T(L.error),k.promise},race:function(se){var ue=this,k=X(ue),W=k.reject,T=B(function(){b(se,!1,function(L){ue.resolve(L).then(k.resolve,W)})});return T&&W(T.error),k.promise}})},function(t,i,a){"use strict";var s=a(61)(!0);a(27)(String,"String",function(u){this._t=String(u),this._i=0},function(){var u,p=this._t,f=this._i;return f>=p.length?{value:void 0,done:!0}:(u=s(p,f),this._i+=u.length,{value:u,done:!1})})},function(t,i,a){a(65);for(var s=a(2),u=a(5),p=a(10),f=a(1)("toStringTag"),m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],_=0;_<5;_++){var x=m[_],A=s[x],O=A&&A.prototype;O&&!O[f]&&u(O,f,x),p[x]=p.Array}},function(t,i){t.exports=require("child_process")},function(t,i){t.exports=require("crypto")}])})});var EW=pt((nXe,Pue)=>{Pue.exports=function(r,t){var i="000000000"+r;return i.substr(i.length-t)}});var wue=pt((iXe,Mue)=>{var Oue=EW(),J8e=require("os"),kue=2,z8e=Oue(process.pid.toString(36),kue),Rue=J8e.hostname(),$8e=Rue.length,X8e=Oue(Rue.split("").reduce(function(e,r){return+e+r.charCodeAt(0)},+$8e+36).toString(36),kue);Mue.exports=function(){return z8e+X8e}});var Gue=pt((aXe,Fue)=>{var Y8e=require("crypto"),Q8e=Math.pow(2,32)-1;Fue.exports=function(){return Math.abs(Y8e.randomBytes(4).readInt32BE()/Q8e)}});var Vue=pt((oXe,Wue)=>{var Jk=wue(),Bue=EW(),Z8e=Gue(),eL=0,SW=4,zk=36,Uue=Math.pow(zk,SW);function bW(){return Bue((Z8e()*Uue<<0).toString(zk),SW)}function Kue(){return eL=eL<Uue?eL:0,eL++,eL-1}function rL(){var e="c",r=new Date().getTime().toString(zk),t=Bue(Kue().toString(zk),SW),i=Jk(),a=bW()+bW();return e+r+t+i+a}rL.slug=function(){var r=new Date().getTime().toString(36),t=Kue().toString(36).slice(-4),i=Jk().slice(0,1)+Jk().slice(-1),a=bW().slice(-2);return r.slice(-2)+t+i+a};rL.isCuid=function(r){return typeof r!="string"?!1:!!r.startsWith("c")};rL.isSlug=function(r){if(typeof r!="string")return!1;var t=r.length;return t>=7&&t<=10};rL.fingerprint=Jk;Wue.exports=rL});var Hue=pt((sXe,jue)=>{"use strict";var e5e=setTimeout;function r5e(e,r){var t=r.useCachedSetTimeout?e5e:setTimeout;return new Promise(function(i){t(i,e)})}jue.exports=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.useCachedSetTimeout,i=r5e(e,{useCachedSetTimeout:t});function a(s){return i.then(function(){return s})}return a.then=function(){return i.then.apply(i,arguments)},a.catch=Promise.resolve().catch,a}});var $ue=pt((lXe,zue)=>{"use strict";var xW=[],nL=[],que=!1,TW=0,Jue=1e4,SD={},tL={};function DW(e,r,t){let i=!1;function a(){i||(i=!0,e===!0&&process.nextTick(process.exit.bind(null,r)))}function s(){process.nextTick(()=>{--TW===0&&a()})}function u(p,f,m){return e&&m.length>p?(TW++,f?m(f,s):m(s)):f?m(f):m()}que||(que=!0,t&&nL.map(u.bind(null,1,t)),xW.map(u.bind(null,0,null)),TW?setTimeout(()=>{a()},Jue):a())}function c_(e){xW.push(e),xW.length===1&&(c_.hookEvent("exit"),c_.hookEvent("beforeExit",0),c_.hookEvent("SIGHUP",128+1),c_.hookEvent("SIGINT",128+2),c_.hookEvent("SIGTERM",128+15),c_.hookEvent("SIGBREAK",128+21),c_.hookEvent("message",0,function(r){if(r!=="shutdown")return!0}))}c_.hookEvent=function(e,r,t){SD[e]=function(){let i=tL[e];for(let a=0;a<i.length;a++)if(i[a].apply(this,arguments))return;DW(r!=null,r)},tL[e]||(tL[e]=[]),t&&tL[e].push(t),process.on(e,SD[e])};c_.unhookEvent=function(e){process.removeListener(e,SD[e]),delete SD[e],delete tL[e]};c_.hookedEvents=function(){let e=[];for(let r in SD)({}).hasOwnProperty.call(SD,r)&&e.push(r);return e};c_.uncaughtExceptionHandler=function(e){nL.push(e),nL.length===1&&process.once("uncaughtException",DW.bind(null,!0,1))};c_.unhandledRejectionHandler=function(e){nL.push(e),nL.length===1&&process.once("unhandledRejection",DW.bind(null,!0,1))};c_.forceExitTimeout=function(e){Jue=e};zue.exports=c_});var $k=pt((cXe,t5e)=>{t5e.exports={name:"zenstack",publisher:"zenstack",displayName:"ZenStack Language Tools",description:"A toolkit for modeling data and access policies in full-stack development with Next.js and Typescript",version:"0.3.13",author:{name:"ZenStack Team"},license:"MIT",keywords:["fullstack","react","typescript","data modeling"],preview:!0,icon:"asset/logo-256-bg.png",repository:{type:"git",url:"https://github.com/zenstackhq/zenstack"},engines:{vscode:"^1.56.0"},categories:["Programming Languages"],contributes:{languages:[{id:"zmodel",aliases:["ZenStack Model","zmodel"],extensions:[".zmodel"],configuration:"./language-configuration.json",icon:{light:"./asset/logo-light-256.png",dark:"./asset/logo-dark-256.png"}}],grammars:[{language:"zmodel",scopeName:"source.zmodel",path:"./syntaxes/zmodel.tmLanguage.json"}]},activationEvents:["onLanguage:zmodel"],files:["bin","src","bundle"],bin:{zenstack:"./bin/cli"},main:"./bundle/extension.js",scripts:{"vscode:publish":"vsce publish --no-dependencies","vscode:prepublish":"cp ../../README.md ./ && pnpm lint && pnpm build","vscode:package":"vsce package --no-dependencies",clean:"rimraf bundle",build:"pnpm -C ../runtime build && pnpm langium:generate && tsc --noEmit && pnpm bundle && cp -r src/res/* bundle/res/",bundle:"npm run clean && node build/bundle.js --minify","bundle-watch":"node build/bundle.js --watch","ts:watch":"tsc --watch --noEmit","tsc-alias:watch":"tsc-alias --watch",lint:"eslint src --ext ts","langium:generate":"langium generate","langium:watch":"langium generate --watch",watch:'concurrently --kill-others "npm:langium:watch" "npm:bundle-watch"',test:"jest",prepublishOnly:"cp ../../README.md ./ && pnpm build",postinstall:"bin/post-install.js"},dependencies:{"@zenstackhq/runtime":"workspace:../runtime/dist","async-exit-hook":"^2.0.1","change-case":"^4.1.2",chevrotain:"^9.1.0",colors:"1.4.0",commander:"^8.3.0",cuid:"^2.1.8",langium:"^0.5.0",mixpanel:"^0.17.0","node-machine-id":"^1.1.12",pluralize:"^8.0.0",prisma:"^4.5.0",promisify:"^0.0.3","sleep-promise":"^9.1.0","ts-morph":"^16.0.0",uuid:"^9.0.0","vscode-jsonrpc":"^8.0.2","vscode-languageclient":"^8.0.2","vscode-languageserver":"^8.0.2","vscode-languageserver-textdocument":"^1.0.7","vscode-uri":"^3.0.6"},devDependencies:{"@prisma/internals":"^4.5.0","@types/async-exit-hook":"^2.0.0","@types/jest":"^29.2.0","@types/node":"^14.18.32","@types/pluralize":"^0.0.29","@types/tmp":"^0.2.3","@types/uuid":"^8.3.4","@types/vscode":"^1.56.0","@typescript-eslint/eslint-plugin":"^5.42.0","@typescript-eslint/parser":"^5.42.0",concurrently:"^7.4.0",dotenv:"^16.0.3",esbuild:"^0.15.12",eslint:"^8.27.0",jest:"^29.2.1","langium-cli":"^0.5.0",rimraf:"^3.0.2",tmp:"^0.2.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tsc-alias":"^1.7.0","tsconfig-paths-jest":"^0.0.1",typescript:"^4.8.4",vsce:"^2.13.0"}}});var ace=pt((PW,OW)=>{(function(e,r){typeof require=="function"&&typeof PW=="object"&&typeof OW=="object"?OW.exports=r():typeof define=="function"&&define.amd?define(function(){return r()}):e.pluralize=r()})(PW,function(){var e=[],r=[],t={},i={},a={};function s(O){return typeof O=="string"?new RegExp("^"+O+"$","i"):O}function u(O,R){return O===R?R:O===O.toLowerCase()?R.toLowerCase():O===O.toUpperCase()?R.toUpperCase():O[0]===O[0].toUpperCase()?R.charAt(0).toUpperCase()+R.substr(1).toLowerCase():R.toLowerCase()}function p(O,R){return O.replace(/\$(\d{1,2})/g,function(h,b){return R[b]||""})}function f(O,R){return O.replace(R[0],function(h,b){var K=p(R[1],arguments);return u(h===""?O[b-1]:h,K)})}function m(O,R,h){if(!O.length||t.hasOwnProperty(O))return R;for(var b=h.length;b--;){var K=h[b];if(K[0].test(R))return f(R,K)}return R}function _(O,R,h){return function(b){var K=b.toLowerCase();return R.hasOwnProperty(K)?u(b,K):O.hasOwnProperty(K)?u(b,O[K]):m(K,b,h)}}function x(O,R,h,b){return function(K){var C=K.toLowerCase();return R.hasOwnProperty(C)?!0:O.hasOwnProperty(C)?!1:m(C,C,h)===C}}function A(O,R,h){var b=R===1?A.singular(O):A.plural(O);return(h?R+" ":"")+b}return A.plural=_(a,i,e),A.isPlural=x(a,i,e),A.singular=_(i,a,r),A.isSingular=x(i,a,r),A.addPluralRule=function(O,R){e.push([s(O),R])},A.addSingularRule=function(O,R){r.push([s(O),R])},A.addUncountableRule=function(O){if(typeof O=="string"){t[O.toLowerCase()]=!0;return}A.addPluralRule(O,"$0"),A.addSingularRule(O,"$0")},A.addIrregularRule=function(O,R){R=R.toLowerCase(),O=O.toLowerCase(),a[O]=R,i[R]=O},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(O){return A.addIrregularRule(O[0],O[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(O){return A.addPluralRule(O[0],O[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(O){return A.addSingularRule(O[0],O[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(A.addUncountableRule),A})});var _ce=pt(iS=>{"use strict";var s5e=iS&&iS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(iS,"__esModule",{value:!0});iS.NodeFileSystem=iS.NodeFileSystemProvider=void 0;var kW=s5e(require("fs")),l5e=iv(),rR=class{constructor(){this.encoding="utf-8"}readFile(r){return kW.default.promises.readFile(r.fsPath,this.encoding)}readFileSync(r){return kW.default.readFileSync(r.fsPath,this.encoding)}async readDirectory(r){return(await kW.default.promises.readdir(r.fsPath,{withFileTypes:!0})).map(i=>({dirent:i,isFile:i.isFile(),isDirectory:i.isDirectory(),uri:l5e.Utils.joinPath(r,i.name)}))}};iS.NodeFileSystemProvider=rR;iS.NodeFileSystem={fileSystemProvider:()=>new rR}});var gce=pt(WT=>{"use strict";var u5e=WT&&WT.__createBinding||(Object.create?function(e,r,t,i){i===void 0&&(i=t);var a=Object.getOwnPropertyDescriptor(r,t);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,i,a)}:function(e,r,t,i){i===void 0&&(i=t),e[i]=r[t]}),c5e=WT&&WT.__exportStar||function(e,r){for(var t in e)t!=="default"&&!Object.prototype.hasOwnProperty.call(r,t)&&u5e(r,e,t)};Object.defineProperty(WT,"__esModule",{value:!0});c5e(_ce(),WT)});var vce=pt((oQe,yce)=>{yce.exports=gce()});var Dce=pt(jW=>{var xce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");jW.encode=function(e){if(0<=e&&e<xce.length)return xce[e];throw new TypeError("Must be between 0 and 63: "+e)};jW.decode=function(e){var r=65,t=90,i=97,a=122,s=48,u=57,p=43,f=47,m=26,_=52;return r<=e&&e<=t?e-r:i<=e&&e<=a?e-i+m:s<=e&&e<=u?e-s+_:e==p?62:e==f?63:-1}});var JW=pt(qW=>{var Cce=Dce(),HW=5,Ace=1<<HW,Lce=Ace-1,Nce=Ace;function f5e(e){return e<0?(-e<<1)+1:(e<<1)+0}function p5e(e){var r=(e&1)===1,t=e>>1;return r?-t:t}qW.encode=function(r){var t="",i,a=f5e(r);do i=a&Lce,a>>>=HW,a>0&&(i|=Nce),t+=Cce.encode(i);while(a>0);return t};qW.decode=function(r,t,i){var a=r.length,s=0,u=0,p,f;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(f=Cce.decode(r.charCodeAt(t++)),f===-1)throw new Error("Invalid base64 digit: "+r.charAt(t-1));p=!!(f&Nce),f&=Lce,s=s+(f<<u),u+=HW}while(p);i.value=p5e(s),i.rest=t}});var PD=pt(Qp=>{function m5e(e,r,t){if(r in e)return e[r];if(arguments.length===3)return t;throw new Error('"'+r+'" is a required argument.')}Qp.getArg=m5e;var Ice=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,_5e=/^data:.+\,.+$/;function _L(e){var r=e.match(Ice);return r?{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}:null}Qp.urlParse=_L;function ND(e){var r="";return e.scheme&&(r+=e.scheme+":"),r+="//",e.auth&&(r+=e.auth+"@"),e.host&&(r+=e.host),e.port&&(r+=":"+e.port),e.path&&(r+=e.path),r}Qp.urlGenerate=ND;function zW(e){var r=e,t=_L(e);if(t){if(!t.path)return e;r=t.path}for(var i=Qp.isAbsolute(r),a=r.split(/\/+/),s,u=0,p=a.length-1;p>=0;p--)s=a[p],s==="."?a.splice(p,1):s===".."?u++:u>0&&(s===""?(a.splice(p+1,u),u=0):(a.splice(p,2),u--));return r=a.join("/"),r===""&&(r=i?"/":"."),t?(t.path=r,ND(t)):r}Qp.normalize=zW;function Pce(e,r){e===""&&(e="."),r===""&&(r=".");var t=_L(r),i=_L(e);if(i&&(e=i.path||"/"),t&&!t.scheme)return i&&(t.scheme=i.scheme),ND(t);if(t||r.match(_5e))return r;if(i&&!i.host&&!i.path)return i.host=r,ND(i);var a=r.charAt(0)==="/"?r:zW(e.replace(/\/+$/,"")+"/"+r);return i?(i.path=a,ND(i)):a}Qp.join=Pce;Qp.isAbsolute=function(e){return e.charAt(0)==="/"||Ice.test(e)};function g5e(e,r){e===""&&(e="."),e=e.replace(/\/$/,"");for(var t=0;r.indexOf(e+"/")!==0;){var i=e.lastIndexOf("/");if(i<0||(e=e.slice(0,i),e.match(/^([^\/]+:\/)?\/*$/)))return r;++t}return Array(t+1).join("../")+r.substr(e.length+1)}Qp.relative=g5e;var Oce=function(){var e=Object.create(null);return!("__proto__"in e)}();function kce(e){return e}function y5e(e){return Rce(e)?"$"+e:e}Qp.toSetString=Oce?kce:y5e;function v5e(e){return Rce(e)?e.slice(1):e}Qp.fromSetString=Oce?kce:v5e;function Rce(e){if(!e)return!1;var r=e.length;if(r<9||e.charCodeAt(r-1)!==95||e.charCodeAt(r-2)!==95||e.charCodeAt(r-3)!==111||e.charCodeAt(r-4)!==116||e.charCodeAt(r-5)!==111||e.charCodeAt(r-6)!==114||e.charCodeAt(r-7)!==112||e.charCodeAt(r-8)!==95||e.charCodeAt(r-9)!==95)return!1;for(var t=r-10;t>=0;t--)if(e.charCodeAt(t)!==36)return!1;return!0}function h5e(e,r,t){var i=ID(e.source,r.source);return i!==0||(i=e.originalLine-r.originalLine,i!==0)||(i=e.originalColumn-r.originalColumn,i!==0||t)||(i=e.generatedColumn-r.generatedColumn,i!==0)||(i=e.generatedLine-r.generatedLine,i!==0)?i:ID(e.name,r.name)}Qp.compareByOriginalPositions=h5e;function E5e(e,r,t){var i=e.generatedLine-r.generatedLine;return i!==0||(i=e.generatedColumn-r.generatedColumn,i!==0||t)||(i=ID(e.source,r.source),i!==0)||(i=e.originalLine-r.originalLine,i!==0)||(i=e.originalColumn-r.originalColumn,i!==0)?i:ID(e.name,r.name)}Qp.compareByGeneratedPositionsDeflated=E5e;function ID(e,r){return e===r?0:e===null?1:r===null?-1:e>r?1:-1}function b5e(e,r){var t=e.generatedLine-r.generatedLine;return t!==0||(t=e.generatedColumn-r.generatedColumn,t!==0)||(t=ID(e.source,r.source),t!==0)||(t=e.originalLine-r.originalLine,t!==0)||(t=e.originalColumn-r.originalColumn,t!==0)?t:ID(e.name,r.name)}Qp.compareByGeneratedPositionsInflated=b5e;function S5e(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Qp.parseSourceMapInput=S5e;function T5e(e,r,t){if(r=r||"",e&&(e[e.length-1]!=="/"&&r[0]!=="/"&&(e+="/"),r=e+r),t){var i=_L(t);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var a=i.path.lastIndexOf("/");a>=0&&(i.path=i.path.substring(0,a+1))}r=Pce(ND(i),r)}return zW(r)}Qp.computeSourceURL=T5e});var YW=pt(Mce=>{var $W=PD(),XW=Object.prototype.hasOwnProperty,jT=typeof Map<"u";function wE(){this._array=[],this._set=jT?new Map:Object.create(null)}wE.fromArray=function(r,t){for(var i=new wE,a=0,s=r.length;a<s;a++)i.add(r[a],t);return i};wE.prototype.size=function(){return jT?this._set.size:Object.getOwnPropertyNames(this._set).length};wE.prototype.add=function(r,t){var i=jT?r:$W.toSetString(r),a=jT?this.has(r):XW.call(this._set,i),s=this._array.length;(!a||t)&&this._array.push(r),a||(jT?this._set.set(r,s):this._set[i]=s)};wE.prototype.has=function(r){if(jT)return this._set.has(r);var t=$W.toSetString(r);return XW.call(this._set,t)};wE.prototype.indexOf=function(r){if(jT){var t=this._set.get(r);if(t>=0)return t}else{var i=$W.toSetString(r);if(XW.call(this._set,i))return this._set[i]}throw new Error('"'+r+'" is not in the set.')};wE.prototype.at=function(r){if(r>=0&&r<this._array.length)return this._array[r];throw new Error("No element indexed by "+r)};wE.prototype.toArray=function(){return this._array.slice()};Mce.ArraySet=wE});var Gce=pt(Fce=>{var wce=PD();function x5e(e,r){var t=e.generatedLine,i=r.generatedLine,a=e.generatedColumn,s=r.generatedColumn;return i>t||i==t&&s>=a||wce.compareByGeneratedPositionsInflated(e,r)<=0}function oR(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}oR.prototype.unsortedForEach=function(r,t){this._array.forEach(r,t)};oR.prototype.add=function(r){x5e(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))};oR.prototype.toArray=function(){return this._sorted||(this._array.sort(wce.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Fce.MappingList=oR});var QW=pt(Bce=>{var gL=JW(),Od=PD(),sR=YW().ArraySet,D5e=Gce().MappingList;function ey(e){e||(e={}),this._file=Od.getArg(e,"file",null),this._sourceRoot=Od.getArg(e,"sourceRoot",null),this._skipValidation=Od.getArg(e,"skipValidation",!1),this._sources=new sR,this._names=new sR,this._mappings=new D5e,this._sourcesContents=null}ey.prototype._version=3;ey.fromSourceMap=function(r){var t=r.sourceRoot,i=new ey({file:r.file,sourceRoot:t});return r.eachMapping(function(a){var s={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source!=null&&(s.source=a.source,t!=null&&(s.source=Od.relative(t,s.source)),s.original={line:a.originalLine,column:a.originalColumn},a.name!=null&&(s.name=a.name)),i.addMapping(s)}),r.sources.forEach(function(a){var s=a;t!==null&&(s=Od.relative(t,a)),i._sources.has(s)||i._sources.add(s);var u=r.sourceContentFor(a);u!=null&&i.setSourceContent(a,u)}),i};ey.prototype.addMapping=function(r){var t=Od.getArg(r,"generated"),i=Od.getArg(r,"original",null),a=Od.getArg(r,"source",null),s=Od.getArg(r,"name",null);this._skipValidation||this._validateMapping(t,i,a,s),a!=null&&(a=String(a),this._sources.has(a)||this._sources.add(a)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:a,name:s})};ey.prototype.setSourceContent=function(r,t){var i=r;this._sourceRoot!=null&&(i=Od.relative(this._sourceRoot,i)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Od.toSetString(i)]=t):this._sourcesContents&&(delete this._sourcesContents[Od.toSetString(i)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};ey.prototype.applySourceMap=function(r,t,i){var a=t;if(t==null){if(r.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=r.file}var s=this._sourceRoot;s!=null&&(a=Od.relative(s,a));var u=new sR,p=new sR;this._mappings.unsortedForEach(function(f){if(f.source===a&&f.originalLine!=null){var m=r.originalPositionFor({line:f.originalLine,column:f.originalColumn});m.source!=null&&(f.source=m.source,i!=null&&(f.source=Od.join(i,f.source)),s!=null&&(f.source=Od.relative(s,f.source)),f.originalLine=m.line,f.originalColumn=m.column,m.name!=null&&(f.name=m.name))}var _=f.source;_!=null&&!u.has(_)&&u.add(_);var x=f.name;x!=null&&!p.has(x)&&p.add(x)},this),this._sources=u,this._names=p,r.sources.forEach(function(f){var m=r.sourceContentFor(f);m!=null&&(i!=null&&(f=Od.join(i,f)),s!=null&&(f=Od.relative(s,f)),this.setSourceContent(f,m))},this)};ey.prototype._validateMapping=function(r,t,i,a){if(t&&typeof t.line!="number"&&typeof t.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(r&&"line"in r&&"column"in r&&r.line>0&&r.column>=0&&!t&&!i&&!a)){if(r&&"line"in r&&"column"in r&&t&&"line"in t&&"column"in t&&r.line>0&&r.column>=0&&t.line>0&&t.column>=0&&i)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:r,source:i,original:t,name:a}))}};ey.prototype._serializeMappings=function(){for(var r=0,t=1,i=0,a=0,s=0,u=0,p="",f,m,_,x,A=this._mappings.toArray(),O=0,R=A.length;O<R;O++){if(m=A[O],f="",m.generatedLine!==t)for(r=0;m.generatedLine!==t;)f+=";",t++;else if(O>0){if(!Od.compareByGeneratedPositionsInflated(m,A[O-1]))continue;f+=","}f+=gL.encode(m.generatedColumn-r),r=m.generatedColumn,m.source!=null&&(x=this._sources.indexOf(m.source),f+=gL.encode(x-u),u=x,f+=gL.encode(m.originalLine-1-a),a=m.originalLine-1,f+=gL.encode(m.originalColumn-i),i=m.originalColumn,m.name!=null&&(_=this._names.indexOf(m.name),f+=gL.encode(_-s),s=_)),p+=f}return p};ey.prototype._generateSourcesContent=function(r,t){return r.map(function(i){if(!this._sourcesContents)return null;t!=null&&(i=Od.relative(t,i));var a=Od.toSetString(i);return Object.prototype.hasOwnProperty.call(this._sourcesContents,a)?this._sourcesContents[a]:null},this)};ey.prototype.toJSON=function(){var r={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(r.file=this._file),this._sourceRoot!=null&&(r.sourceRoot=this._sourceRoot),this._sourcesContents&&(r.sourcesContent=this._generateSourcesContent(r.sources,r.sourceRoot)),r};ey.prototype.toString=function(){return JSON.stringify(this.toJSON())};Bce.SourceMapGenerator=ey});var Uce=pt(HT=>{HT.GREATEST_LOWER_BOUND=1;HT.LEAST_UPPER_BOUND=2;function ZW(e,r,t,i,a,s){var u=Math.floor((r-e)/2)+e,p=a(t,i[u],!0);return p===0?u:p>0?r-u>1?ZW(u,r,t,i,a,s):s==HT.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-e>1?ZW(e,u,t,i,a,s):s==HT.LEAST_UPPER_BOUND?u:e<0?-1:e}HT.search=function(r,t,i,a){if(t.length===0)return-1;var s=ZW(-1,t.length,r,t,i,a||HT.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&i(t[s],t[s-1],!0)===0;)--s;return s}});var Wce=pt(Kce=>{function eV(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}function C5e(e,r){return Math.round(e+Math.random()*(r-e))}function rV(e,r,t,i){if(t<i){var a=C5e(t,i),s=t-1;eV(e,a,i);for(var u=e[i],p=t;p<i;p++)r(e[p],u)<=0&&(s+=1,eV(e,s,p));eV(e,s+1,p);var f=s+1;rV(e,r,t,f-1),rV(e,r,f+1,i)}}Kce.quickSort=function(e,r){rV(e,r,0,e.length-1)}});var jce=pt(lR=>{var Eo=PD(),tV=Uce(),OD=YW().ArraySet,A5e=JW(),yL=Wce().quickSort;function nc(e,r){var t=e;return typeof e=="string"&&(t=Eo.parseSourceMapInput(e)),t.sections!=null?new _v(t,r):new fp(t,r)}nc.fromSourceMap=function(e,r){return fp.fromSourceMap(e,r)};nc.prototype._version=3;nc.prototype.__generatedMappings=null;Object.defineProperty(nc.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});nc.prototype.__originalMappings=null;Object.defineProperty(nc.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});nc.prototype._charIsMappingSeparator=function(r,t){var i=r.charAt(t);return i===";"||i===","};nc.prototype._parseMappings=function(r,t){throw new Error("Subclasses must implement _parseMappings")};nc.GENERATED_ORDER=1;nc.ORIGINAL_ORDER=2;nc.GREATEST_LOWER_BOUND=1;nc.LEAST_UPPER_BOUND=2;nc.prototype.eachMapping=function(r,t,i){var a=t||null,s=i||nc.GENERATED_ORDER,u;switch(s){case nc.GENERATED_ORDER:u=this._generatedMappings;break;case nc.ORIGINAL_ORDER:u=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var p=this.sourceRoot;u.map(function(f){var m=f.source===null?null:this._sources.at(f.source);return m=Eo.computeSourceURL(p,m,this._sourceMapURL),{source:m,generatedLine:f.generatedLine,generatedColumn:f.generatedColumn,originalLine:f.originalLine,originalColumn:f.originalColumn,name:f.name===null?null:this._names.at(f.name)}},this).forEach(r,a)};nc.prototype.allGeneratedPositionsFor=function(r){var t=Eo.getArg(r,"line"),i={source:Eo.getArg(r,"source"),originalLine:t,originalColumn:Eo.getArg(r,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],s=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",Eo.compareByOriginalPositions,tV.LEAST_UPPER_BOUND);if(s>=0){var u=this._originalMappings[s];if(r.column===void 0)for(var p=u.originalLine;u&&u.originalLine===p;)a.push({line:Eo.getArg(u,"generatedLine",null),column:Eo.getArg(u,"generatedColumn",null),lastColumn:Eo.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++s];else for(var f=u.originalColumn;u&&u.originalLine===t&&u.originalColumn==f;)a.push({line:Eo.getArg(u,"generatedLine",null),column:Eo.getArg(u,"generatedColumn",null),lastColumn:Eo.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++s]}return a};lR.SourceMapConsumer=nc;function fp(e,r){var t=e;typeof e=="string"&&(t=Eo.parseSourceMapInput(e));var i=Eo.getArg(t,"version"),a=Eo.getArg(t,"sources"),s=Eo.getArg(t,"names",[]),u=Eo.getArg(t,"sourceRoot",null),p=Eo.getArg(t,"sourcesContent",null),f=Eo.getArg(t,"mappings"),m=Eo.getArg(t,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);u&&(u=Eo.normalize(u)),a=a.map(String).map(Eo.normalize).map(function(_){return u&&Eo.isAbsolute(u)&&Eo.isAbsolute(_)?Eo.relative(u,_):_}),this._names=OD.fromArray(s.map(String),!0),this._sources=OD.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map(function(_){return Eo.computeSourceURL(u,_,r)}),this.sourceRoot=u,this.sourcesContent=p,this._mappings=f,this._sourceMapURL=r,this.file=m}fp.prototype=Object.create(nc.prototype);fp.prototype.consumer=nc;fp.prototype._findSourceIndex=function(e){var r=e;if(this.sourceRoot!=null&&(r=Eo.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1};fp.fromSourceMap=function(r,t){var i=Object.create(fp.prototype),a=i._names=OD.fromArray(r._names.toArray(),!0),s=i._sources=OD.fromArray(r._sources.toArray(),!0);i.sourceRoot=r._sourceRoot,i.sourcesContent=r._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=r._file,i._sourceMapURL=t,i._absoluteSources=i._sources.toArray().map(function(O){return Eo.computeSourceURL(i.sourceRoot,O,t)});for(var u=r._mappings.toArray().slice(),p=i.__generatedMappings=[],f=i.__originalMappings=[],m=0,_=u.length;m<_;m++){var x=u[m],A=new Vce;A.generatedLine=x.generatedLine,A.generatedColumn=x.generatedColumn,x.source&&(A.source=s.indexOf(x.source),A.originalLine=x.originalLine,A.originalColumn=x.originalColumn,x.name&&(A.name=a.indexOf(x.name)),f.push(A)),p.push(A)}return yL(i.__originalMappings,Eo.compareByOriginalPositions),i};fp.prototype._version=3;Object.defineProperty(fp.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Vce(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}fp.prototype._parseMappings=function(r,t){for(var i=1,a=0,s=0,u=0,p=0,f=0,m=r.length,_=0,x={},A={},O=[],R=[],h,b,K,C,F;_<m;)if(r.charAt(_)===";")i++,_++,a=0;else if(r.charAt(_)===",")_++;else{for(h=new Vce,h.generatedLine=i,C=_;C<m&&!this._charIsMappingSeparator(r,C);C++);if(b=r.slice(_,C),K=x[b],K)_+=b.length;else{for(K=[];_<C;)A5e.decode(r,_,A),F=A.value,_=A.rest,K.push(F);if(K.length===2)throw new Error("Found a source, but no line and column");if(K.length===3)throw new Error("Found a source and line, but no column");x[b]=K}h.generatedColumn=a+K[0],a=h.generatedColumn,K.length>1&&(h.source=p+K[1],p+=K[1],h.originalLine=s+K[2],s=h.originalLine,h.originalLine+=1,h.originalColumn=u+K[3],u=h.originalColumn,K.length>4&&(h.name=f+K[4],f+=K[4])),R.push(h),typeof h.originalLine=="number"&&O.push(h)}yL(R,Eo.compareByGeneratedPositionsDeflated),this.__generatedMappings=R,yL(O,Eo.compareByOriginalPositions),this.__originalMappings=O};fp.prototype._findMapping=function(r,t,i,a,s,u){if(r[i]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+r[i]);if(r[a]<0)throw new TypeError("Column must be greater than or equal to 0, got "+r[a]);return tV.search(r,t,s,u)};fp.prototype.computeColumnSpans=function(){for(var r=0;r<this._generatedMappings.length;++r){var t=this._generatedMappings[r];if(r+1<this._generatedMappings.length){var i=this._generatedMappings[r+1];if(t.generatedLine===i.generatedLine){t.lastGeneratedColumn=i.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};fp.prototype.originalPositionFor=function(r){var t={generatedLine:Eo.getArg(r,"line"),generatedColumn:Eo.getArg(r,"column")},i=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",Eo.compareByGeneratedPositionsDeflated,Eo.getArg(r,"bias",nc.GREATEST_LOWER_BOUND));if(i>=0){var a=this._generatedMappings[i];if(a.generatedLine===t.generatedLine){var s=Eo.getArg(a,"source",null);s!==null&&(s=this._sources.at(s),s=Eo.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var u=Eo.getArg(a,"name",null);return u!==null&&(u=this._names.at(u)),{source:s,line:Eo.getArg(a,"originalLine",null),column:Eo.getArg(a,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}};fp.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(r){return r==null}):!1};fp.prototype.sourceContentFor=function(r,t){if(!this.sourcesContent)return null;var i=this._findSourceIndex(r);if(i>=0)return this.sourcesContent[i];var a=r;this.sourceRoot!=null&&(a=Eo.relative(this.sourceRoot,a));var s;if(this.sourceRoot!=null&&(s=Eo.urlParse(this.sourceRoot))){var u=a.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];if((!s.path||s.path=="/")&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(t)return null;throw new Error('"'+a+'" is not in the SourceMap.')};fp.prototype.generatedPositionFor=function(r){var t=Eo.getArg(r,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var i={source:t,originalLine:Eo.getArg(r,"line"),originalColumn:Eo.getArg(r,"column")},a=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",Eo.compareByOriginalPositions,Eo.getArg(r,"bias",nc.GREATEST_LOWER_BOUND));if(a>=0){var s=this._originalMappings[a];if(s.source===i.source)return{line:Eo.getArg(s,"generatedLine",null),column:Eo.getArg(s,"generatedColumn",null),lastColumn:Eo.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};lR.BasicSourceMapConsumer=fp;function _v(e,r){var t=e;typeof e=="string"&&(t=Eo.parseSourceMapInput(e));var i=Eo.getArg(t,"version"),a=Eo.getArg(t,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new OD,this._names=new OD;var s={line:-1,column:0};this._sections=a.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var p=Eo.getArg(u,"offset"),f=Eo.getArg(p,"line"),m=Eo.getArg(p,"column");if(f<s.line||f===s.line&&m<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=p,{generatedOffset:{generatedLine:f+1,generatedColumn:m+1},consumer:new nc(Eo.getArg(u,"map"),r)}})}_v.prototype=Object.create(nc.prototype);_v.prototype.constructor=nc;_v.prototype._version=3;Object.defineProperty(_v.prototype,"sources",{get:function(){for(var e=[],r=0;r<this._sections.length;r++)for(var t=0;t<this._sections[r].consumer.sources.length;t++)e.push(this._sections[r].consumer.sources[t]);return e}});_v.prototype.originalPositionFor=function(r){var t={generatedLine:Eo.getArg(r,"line"),generatedColumn:Eo.getArg(r,"column")},i=tV.search(t,this._sections,function(s,u){var p=s.generatedLine-u.generatedOffset.generatedLine;return p||s.generatedColumn-u.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:t.generatedLine-(a.generatedOffset.generatedLine-1),column:t.generatedColumn-(a.generatedOffset.generatedLine===t.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:r.bias}):{source:null,line:null,column:null,name:null}};_v.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(r){return r.consumer.hasContentsOfAllSources()})};_v.prototype.sourceContentFor=function(r,t){for(var i=0;i<this._sections.length;i++){var a=this._sections[i],s=a.consumer.sourceContentFor(r,!0);if(s)return s}if(t)return null;throw new Error('"'+r+'" is not in the SourceMap.')};_v.prototype.generatedPositionFor=function(r){for(var t=0;t<this._sections.length;t++){var i=this._sections[t];if(i.consumer._findSourceIndex(Eo.getArg(r,"source"))!==-1){var a=i.consumer.generatedPositionFor(r);if(a){var s={line:a.line+(i.generatedOffset.generatedLine-1),column:a.column+(i.generatedOffset.generatedLine===a.line?i.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};_v.prototype._parseMappings=function(r,t){this.__generatedMappings=[],this.__originalMappings=[];for(var i=0;i<this._sections.length;i++)for(var a=this._sections[i],s=a.consumer._generatedMappings,u=0;u<s.length;u++){var p=s[u],f=a.consumer._sources.at(p.source);f=Eo.computeSourceURL(a.consumer.sourceRoot,f,this._sourceMapURL),this._sources.add(f),f=this._sources.indexOf(f);var m=null;p.name&&(m=a.consumer._names.at(p.name),this._names.add(m),m=this._names.indexOf(m));var _={source:f,generatedLine:p.generatedLine+(a.generatedOffset.generatedLine-1),generatedColumn:p.generatedColumn+(a.generatedOffset.generatedLine===p.generatedLine?a.generatedOffset.generatedColumn-1:0),originalLine:p.originalLine,originalColumn:p.originalColumn,name:m};this.__generatedMappings.push(_),typeof _.originalLine=="number"&&this.__originalMappings.push(_)}yL(this.__generatedMappings,Eo.compareByGeneratedPositionsDeflated),yL(this.__originalMappings,Eo.compareByOriginalPositions)};lR.IndexedSourceMapConsumer=_v});var qce=pt(Hce=>{var L5e=QW().SourceMapGenerator,uR=PD(),N5e=/(\r?\n)/,I5e=10,kD="$$$isSourceNode$$$";function H_(e,r,t,i,a){this.children=[],this.sourceContents={},this.line=e??null,this.column=r??null,this.source=t??null,this.name=a??null,this[kD]=!0,i!=null&&this.add(i)}H_.fromStringWithSourceMap=function(r,t,i){var a=new H_,s=r.split(N5e),u=0,p=function(){var A=R(),O=R()||"";return A+O;function R(){return u<s.length?s[u++]:void 0}},f=1,m=0,_=null;return t.eachMapping(function(A){if(_!==null)if(f<A.generatedLine)x(_,p()),f++,m=0;else{var O=s[u]||"",R=O.substr(0,A.generatedColumn-m);s[u]=O.substr(A.generatedColumn-m),m=A.generatedColumn,x(_,R),_=A;return}for(;f<A.generatedLine;)a.add(p()),f++;if(m<A.generatedColumn){var O=s[u]||"";a.add(O.substr(0,A.generatedColumn)),s[u]=O.substr(A.generatedColumn),m=A.generatedColumn}_=A},this),u<s.length&&(_&&x(_,p()),a.add(s.splice(u).join(""))),t.sources.forEach(function(A){var O=t.sourceContentFor(A);O!=null&&(i!=null&&(A=uR.join(i,A)),a.setSourceContent(A,O))}),a;function x(A,O){if(A===null||A.source===void 0)a.add(O);else{var R=i?uR.join(i,A.source):A.source;a.add(new H_(A.originalLine,A.originalColumn,R,O,A.name))}}};H_.prototype.add=function(r){if(Array.isArray(r))r.forEach(function(t){this.add(t)},this);else if(r[kD]||typeof r=="string")r&&this.children.push(r);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+r);return this};H_.prototype.prepend=function(r){if(Array.isArray(r))for(var t=r.length-1;t>=0;t--)this.prepend(r[t]);else if(r[kD]||typeof r=="string")this.children.unshift(r);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+r);return this};H_.prototype.walk=function(r){for(var t,i=0,a=this.children.length;i<a;i++)t=this.children[i],t[kD]?t.walk(r):t!==""&&r(t,{source:this.source,line:this.line,column:this.column,name:this.name})};H_.prototype.join=function(r){var t,i,a=this.children.length;if(a>0){for(t=[],i=0;i<a-1;i++)t.push(this.children[i]),t.push(r);t.push(this.children[i]),this.children=t}return this};H_.prototype.replaceRight=function(r,t){var i=this.children[this.children.length-1];return i[kD]?i.replaceRight(r,t):typeof i=="string"?this.children[this.children.length-1]=i.replace(r,t):this.children.push("".replace(r,t)),this};H_.prototype.setSourceContent=function(r,t){this.sourceContents[uR.toSetString(r)]=t};H_.prototype.walkSourceContents=function(r){for(var t=0,i=this.children.length;t<i;t++)this.children[t][kD]&&this.children[t].walkSourceContents(r);for(var a=Object.keys(this.sourceContents),t=0,i=a.length;t<i;t++)r(uR.fromSetString(a[t]),this.sourceContents[a[t]])};H_.prototype.toString=function(){var r="";return this.walk(function(t){r+=t}),r};H_.prototype.toStringWithSourceMap=function(r){var t={code:"",line:1,column:0},i=new L5e(r),a=!1,s=null,u=null,p=null,f=null;return this.walk(function(m,_){t.code+=m,_.source!==null&&_.line!==null&&_.column!==null?((s!==_.source||u!==_.line||p!==_.column||f!==_.name)&&i.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:t.line,column:t.column},name:_.name}),s=_.source,u=_.line,p=_.column,f=_.name,a=!0):a&&(i.addMapping({generated:{line:t.line,column:t.column}}),s=null,a=!1);for(var x=0,A=m.length;x<A;x++)m.charCodeAt(x)===I5e?(t.line++,t.column=0,x+1===A?(s=null,a=!1):a&&i.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:t.line,column:t.column},name:_.name})):t.column++}),this.walkSourceContents(function(m,_){i.setSourceContent(m,_)}),{code:t.code,map:i}};Hce.SourceNode=H_});var Jce=pt(cR=>{cR.SourceMapGenerator=QW().SourceMapGenerator;cR.SourceMapConsumer=jce().SourceMapConsumer;cR.SourceNode=qce().SourceNode});var $ce=pt((JQe,zce)=>{var P5e=Object.prototype.toString,nV=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function O5e(e){return P5e.call(e).slice(8,-1)==="ArrayBuffer"}function k5e(e,r,t){r>>>=0;var i=e.byteLength-r;if(i<0)throw new RangeError("'offset' is out of bounds");if(t===void 0)t=i;else if(t>>>=0,t>i)throw new RangeError("'length' is out of bounds");return nV?Buffer.from(e.slice(r,r+t)):new Buffer(new Uint8Array(e.slice(r,r+t)))}function R5e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Buffer.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');return nV?Buffer.from(e,r):new Buffer(e,r)}function M5e(e,r,t){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return O5e(e)?k5e(e,r,t):typeof e=="string"?R5e(e,r):nV?Buffer.from(e):new Buffer(e)}zce.exports=M5e});var tde=pt(JT=>{var w5e=Jce().SourceMapConsumer,iV=require("path"),Lh;try{Lh=require("fs"),(!Lh.existsSync||!Lh.readFileSync)&&(Lh=null)}catch{}var F5e=$ce(),Xce=!1,Yce=!1,aV=!1,vL="auto",qT={},hL={},G5e=/^data:application\/json[^,]+base64,/,oS=[],sS=[];function sV(){return vL==="browser"?!0:vL==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function B5e(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function dR(e){return function(r){for(var t=0;t<e.length;t++){var i=e[t](r);if(i)return i}return null}}var lV=dR(oS);oS.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(i,a){return a?"":"/"})),e in qT)return qT[e];var r="";try{if(Lh)Lh.existsSync(e)&&(r=Lh.readFileSync(e,"utf8"));else{var t=new XMLHttpRequest;t.open("GET",e,!1),t.send(null),t.readyState===4&&t.status===200&&(r=t.responseText)}}catch{}return qT[e]=r});function oV(e,r){if(!e)return r;var t=iV.dirname(e),i=/^\w+:\/\/[^\/]*/.exec(t),a=i?i[0]:"",s=t.slice(a.length);return a&&/^\/\w\:/.test(s)?(a+="/",a+iV.resolve(t.slice(a.length),r).replace(/\\/g,"/")):a+iV.resolve(t.slice(a.length),r)}function U5e(e){var r;if(sV())try{var t=new XMLHttpRequest;t.open("GET",e,!1),t.send(null),r=t.readyState===4?t.responseText:null;var i=t.getResponseHeader("SourceMap")||t.getResponseHeader("X-SourceMap");if(i)return i}catch{}r=lV(e);for(var a=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,u;u=a.exec(r);)s=u;return s?s[1]:null}var uV=dR(sS);sS.push(function(e){var r=U5e(e);if(!r)return null;var t;if(G5e.test(r)){var i=r.slice(r.indexOf(",")+1);t=F5e(i,"base64").toString(),r=e}else r=oV(e,r),t=lV(r);return t?{url:r,map:t}:null});function cV(e){var r=hL[e.source];if(!r){var t=uV(e.source);t?(r=hL[e.source]={url:t.url,map:new w5e(t.map)},r.map.sourcesContent&&r.map.sources.forEach(function(a,s){var u=r.map.sourcesContent[s];if(u){var p=oV(r.url,a);qT[p]=u}})):r=hL[e.source]={url:null,map:null}}if(r&&r.map&&typeof r.map.originalPositionFor=="function"){var i=r.map.originalPositionFor(e);if(i.source!==null)return i.source=oV(r.url,i.source),i}return e}function Zce(e){var r=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(r){var t=cV({source:r[2],line:+r[3],column:r[4]-1});return"eval at "+r[1]+" ("+t.source+":"+t.line+":"+(t.column+1)+")"}return r=/^eval at ([^(]+) \((.+)\)$/.exec(e),r?"eval at "+r[1]+" ("+Zce(r[2])+")":e}function K5e(){var e,r="";if(this.isNative())r="native";else{e=this.getScriptNameOrSourceURL(),!e&&this.isEval()&&(r=this.getEvalOrigin(),r+=", "),e?r+=e:r+="<anonymous>";var t=this.getLineNumber();if(t!=null){r+=":"+t;var i=this.getColumnNumber();i&&(r+=":"+i)}}var a="",s=this.getFunctionName(),u=!0,p=this.isConstructor(),f=!(this.isToplevel()||p);if(f){var m=this.getTypeName();m==="[object Object]"&&(m="null");var _=this.getMethodName();s?(m&&s.indexOf(m)!=0&&(a+=m+"."),a+=s,_&&s.indexOf("."+_)!=s.length-_.length-1&&(a+=" [as "+_+"]")):a+=m+"."+(_||"<anonymous>")}else p?a+="new "+(s||"<anonymous>"):s?a+=s:(a+=r,u=!1);return u&&(a+=" ("+r+")"),a}function Qce(e){var r={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(t){r[t]=/^(?:is|get)/.test(t)?function(){return e[t].call(e)}:e[t]}),r.toString=K5e,r}function ede(e){if(e.isNative())return e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var t=e.getLineNumber(),i=e.getColumnNumber()-1,a=62;t===1&&i>a&&!sV()&&!e.isEval()&&(i-=a);var s=cV({source:r,line:t,column:i});e=Qce(e);var u=e.getFunctionName;return e.getFunctionName=function(){return s.name||u()},e.getFileName=function(){return s.source},e.getLineNumber=function(){return s.line},e.getColumnNumber=function(){return s.column+1},e.getScriptNameOrSourceURL=function(){return s.source},e}var p=e.isEval()&&e.getEvalOrigin();return p&&(p=Zce(p),e=Qce(e),e.getEvalOrigin=function(){return p}),e}function W5e(e,r){aV&&(qT={},hL={});var t=e.name||"Error",i=e.message||"",a=t+": "+i;return a+r.map(function(s){return`
3754
+ `)[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return F.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":return F.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"freebsd":return F.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw new Error("Unsupported platform: "+process.platform)}}function m(F){var N=f((0,O.execSync)(C[b]).toString());return F?N:p(N)}function _(F){return new A.default(function(N,q){return(0,O.exec)(C[b],{},function(I,le,fe){if(I)return q(new Error("Error while obtaining machine id: "+I.stack));var he=f(le.toString());return N(F?he:p(he))})})}Object.defineProperty(i,"__esModule",{value:!0});var x=a(35),A=s(x);i.machineIdSync=m,i.machineId=_;var O=a(70),R=a(71),h=process,b=h.platform,K={native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"},C={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:K[u()]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(t,i,a){t.exports={default:a(36),__esModule:!0}},function(t,i,a){a(66),a(68),a(69),a(67),t.exports=a(6).Promise},function(t,i){t.exports=function(){}},function(t,i){t.exports=function(a,s,u,p){if(!(a instanceof s)||p!==void 0&&p in a)throw TypeError(u+": incorrect invocation!");return a}},function(t,i,a){var s=a(13),u=a(31),p=a(62);t.exports=function(f){return function(m,_,x){var A,O=s(m),R=u(O.length),h=p(x,R);if(f&&_!=_){for(;R>h;)if(A=O[h++],A!=A)return!0}else for(;R>h;h++)if((f||h in O)&&O[h]===_)return f||h||0;return!f&&-1}}},function(t,O,a){var s=a(7),u=a(44),p=a(43),f=a(3),m=a(31),_=a(64),x={},A={},O=t.exports=function(R,h,b,K,C){var F,N,q,I,le=C?function(){return R}:_(R),fe=s(b,K,h?2:1),he=0;if(typeof le!="function")throw TypeError(R+" is not iterable!");if(p(le)){for(F=m(R.length);F>he;he++)if(I=h?fe(f(N=R[he])[0],N[1]):fe(R[he]),I===x||I===A)return I}else for(q=le.call(R);!(N=q.next()).done;)if(I=u(q,fe,N.value,h),I===x||I===A)return I};O.BREAK=x,O.RETURN=A},function(t,i){t.exports=function(a,s,u){var p=u===void 0;switch(s.length){case 0:return p?a():a.call(u);case 1:return p?a(s[0]):a.call(u,s[0]);case 2:return p?a(s[0],s[1]):a.call(u,s[0],s[1]);case 3:return p?a(s[0],s[1],s[2]):a.call(u,s[0],s[1],s[2]);case 4:return p?a(s[0],s[1],s[2],s[3]):a.call(u,s[0],s[1],s[2],s[3])}return a.apply(u,s)}},function(t,i,a){var s=a(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(t,i,a){var s=a(10),u=a(1)("iterator"),p=Array.prototype;t.exports=function(f){return f!==void 0&&(s.Array===f||p[u]===f)}},function(t,i,a){var s=a(3);t.exports=function(u,p,f,m){try{return m?p(s(f)[0],f[1]):p(f)}catch(x){var _=u.return;throw _!==void 0&&s(_.call(u)),x}}},function(t,i,a){"use strict";var s=a(49),u=a(17),p=a(18),f={};a(5)(f,a(1)("iterator"),function(){return this}),t.exports=function(m,_,x){m.prototype=s(f,{next:u(1,x)}),p(m,_+" Iterator")}},function(t,i,a){var s=a(1)("iterator"),u=!1;try{var p=[7][s]();p.return=function(){u=!0},Array.from(p,function(){throw 2})}catch{}t.exports=function(f,m){if(!m&&!u)return!1;var _=!1;try{var x=[7],A=x[s]();A.next=function(){return{done:_=!0}},x[s]=function(){return A},f(x)}catch{}return _}},function(t,i){t.exports=function(a,s){return{value:s,done:!!a}}},function(t,i,a){var s=a(2),u=a(30).set,p=s.MutationObserver||s.WebKitMutationObserver,f=s.process,m=s.Promise,_=a(11)(f)=="process";t.exports=function(){var x,A,O,R=function(){var C,F;for(_&&(C=f.domain)&&C.exit();x;){F=x.fn,x=x.next;try{F()}catch(N){throw x?O():A=void 0,N}}A=void 0,C&&C.enter()};if(_)O=function(){f.nextTick(R)};else if(p){var h=!0,b=document.createTextNode("");new p(R).observe(b,{characterData:!0}),O=function(){b.data=h=!h}}else if(m&&m.resolve){var K=m.resolve();O=function(){K.then(R)}}else O=function(){u.call(s,R)};return function(C){var F={fn:C,next:void 0};A&&(A.next=F),x||(x=F,O()),A=F}}},function(t,i,a){var s=a(3),u=a(50),p=a(22),f=a(19)("IE_PROTO"),m=function(){},_="prototype",x=function(){var A,O=a(16)("iframe"),R=p.length,h=">";for(O.style.display="none",a(25).appendChild(O),O.src="javascript:",A=O.contentWindow.document,A.open(),A.write("<script>document.F=Object<\/script"+h),A.close(),x=A.F;R--;)delete x[_][p[R]];return x()};t.exports=Object.create||function(A,O){var R;return A!==null?(m[_]=s(A),R=new m,m[_]=null,R[f]=A):R=x(),O===void 0?R:u(R,O)}},function(t,i,a){var s=a(12),u=a(3),p=a(54);t.exports=a(4)?Object.defineProperties:function(f,m){u(f);for(var _,x=p(m),A=x.length,O=0;A>O;)s.f(f,_=x[O++],m[_]);return f}},function(t,i,a){var s=a(55),u=a(17),p=a(13),f=a(32),m=a(8),_=a(26),x=Object.getOwnPropertyDescriptor;i.f=a(4)?x:function(A,O){if(A=p(A),O=f(O,!0),_)try{return x(A,O)}catch{}if(m(A,O))return u(!s.f.call(A,O),A[O])}},function(t,i,a){var s=a(8),u=a(63),p=a(19)("IE_PROTO"),f=Object.prototype;t.exports=Object.getPrototypeOf||function(m){return m=u(m),s(m,p)?m[p]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?f:null}},function(t,i,a){var s=a(8),u=a(13),p=a(39)(!1),f=a(19)("IE_PROTO");t.exports=function(m,_){var x,A=u(m),O=0,R=[];for(x in A)x!=f&&s(A,x)&&R.push(x);for(;_.length>O;)s(A,x=_[O++])&&(~p(R,x)||R.push(x));return R}},function(t,i,a){var s=a(53),u=a(22);t.exports=Object.keys||function(p){return s(p,u)}},function(t,i){i.f={}.propertyIsEnumerable},function(t,i,a){var s=a(5);t.exports=function(u,p,f){for(var m in p)f&&u[m]?u[m]=p[m]:s(u,m,p[m]);return u}},function(t,i,a){t.exports=a(5)},function(t,i,a){var s=a(9),u=a(3),p=function(f,m){if(u(f),!s(m)&&m!==null)throw TypeError(m+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(f,m,_){try{_=a(7)(Function.call,a(51).f(Object.prototype,"__proto__").set,2),_(f,[]),m=!(f instanceof Array)}catch{m=!0}return function(x,A){return p(x,A),m?x.__proto__=A:_(x,A),x}}({},!1):void 0),check:p}},function(t,i,a){"use strict";var s=a(2),u=a(6),p=a(12),f=a(4),m=a(1)("species");t.exports=function(_){var x=typeof u[_]=="function"?u[_]:s[_];f&&x&&!x[m]&&p.f(x,m,{configurable:!0,get:function(){return this}})}},function(t,i,a){var s=a(3),u=a(14),p=a(1)("species");t.exports=function(f,m){var _,x=s(f).constructor;return x===void 0||(_=s(x)[p])==null?m:u(_)}},function(t,i,a){var s=a(20),u=a(15);t.exports=function(p){return function(f,m){var _,x,A=String(u(f)),O=s(m),R=A.length;return O<0||O>=R?p?"":void 0:(_=A.charCodeAt(O),_<55296||_>56319||O+1===R||(x=A.charCodeAt(O+1))<56320||x>57343?p?A.charAt(O):_:p?A.slice(O,O+2):(_-55296<<10)+(x-56320)+65536)}}},function(t,i,a){var s=a(20),u=Math.max,p=Math.min;t.exports=function(f,m){return f=s(f),f<0?u(f+m,0):p(f,m)}},function(t,i,a){var s=a(15);t.exports=function(u){return Object(s(u))}},function(t,i,a){var s=a(21),u=a(1)("iterator"),p=a(10);t.exports=a(6).getIteratorMethod=function(f){if(f!=null)return f[u]||f["@@iterator"]||p[s(f)]}},function(t,i,a){"use strict";var s=a(37),u=a(47),p=a(10),f=a(13);t.exports=a(27)(Array,"Array",function(m,_){this._t=f(m),this._i=0,this._k=_},function(){var m=this._t,_=this._k,x=this._i++;return!m||x>=m.length?(this._t=void 0,u(1)):_=="keys"?u(0,x):_=="values"?u(0,m[x]):u(0,[x,m[x]])},"values"),p.Arguments=p.Array,s("keys"),s("values"),s("entries")},function(t,i){},function(t,i,a){"use strict";var s,u,p,f=a(28),m=a(2),_=a(7),x=a(21),A=a(23),O=a(9),R=(a(3),a(14)),h=a(38),b=a(40),K=(a(58).set,a(60)),C=a(30).set,F=a(48)(),N="Promise",q=m.TypeError,le=m.process,I=m[N],le=m.process,fe=x(le)=="process",he=function(){},re=!!function(){try{var se=I.resolve(1),ue=(se.constructor={})[a(1)("species")]=function(k){k(he,he)};return(fe||typeof PromiseRejectionEvent=="function")&&se.then(he)instanceof ue}catch{}}(),G=function(se,ue){return se===ue||se===I&&ue===p},Y=function(se){var ue;return!(!O(se)||typeof(ue=se.then)!="function")&&ue},X=function(se){return G(I,se)?new P(se):new u(se)},P=u=function(se){var ue,k;this.promise=new se(function(W,T){if(ue!==void 0||k!==void 0)throw q("Bad Promise constructor");ue=W,k=T}),this.resolve=R(ue),this.reject=R(k)},B=function(se){try{se()}catch(ue){return{error:ue}}},ie=function(se,ue){if(!se._n){se._n=!0;var k=se._c;F(function(){for(var W=se._v,T=se._s==1,L=0,J=function(v){var U,H,Q=T?v.ok:v.fail,te=v.resolve,be=v.reject,ye=v.domain;try{Q?(T||(se._h==2&&j(se),se._h=1),Q===!0?U=W:(ye&&ye.enter(),U=Q(W),ye&&ye.exit()),U===v.promise?be(q("Promise-chain cycle")):(H=Y(U))?H.call(U,te,be):te(U)):be(W)}catch(xe){be(xe)}};k.length>L;)J(k[L++]);se._c=[],se._n=!1,ue&&!se._h&&$(se)})}},$=function(se){C.call(m,function(){var ue,k,W,T=se._v;if(V(se)&&(ue=B(function(){fe?le.emit("unhandledRejection",T,se):(k=m.onunhandledrejection)?k({promise:se,reason:T}):(W=m.console)&&W.error&&W.error("Unhandled promise rejection",T)}),se._h=fe||V(se)?2:1),se._a=void 0,ue)throw ue.error})},V=function(se){if(se._h==1)return!1;for(var ue,k=se._a||se._c,W=0;k.length>W;)if(ue=k[W++],ue.fail||!V(ue.promise))return!1;return!0},j=function(se){C.call(m,function(){var ue;fe?le.emit("rejectionHandled",se):(ue=m.onrejectionhandled)&&ue({promise:se,reason:se._v})})},ne=function(se){var ue=this;ue._d||(ue._d=!0,ue=ue._w||ue,ue._v=se,ue._s=2,ue._a||(ue._a=ue._c.slice()),ie(ue,!0))},Z=function(se){var ue,k=this;if(!k._d){k._d=!0,k=k._w||k;try{if(k===se)throw q("Promise can't be resolved itself");(ue=Y(se))?F(function(){var W={_w:k,_d:!1};try{ue.call(se,_(Z,W,1),_(ne,W,1))}catch(T){ne.call(W,T)}}):(k._v=se,k._s=1,ie(k,!1))}catch(W){ne.call({_w:k,_d:!1},W)}}};re||(I=function(se){h(this,I,N,"_h"),R(se),s.call(this);try{se(_(Z,this,1),_(ne,this,1))}catch(ue){ne.call(this,ue)}},s=function(se){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},s.prototype=a(56)(I.prototype,{then:function(se,ue){var k=X(K(this,I));return k.ok=typeof se!="function"||se,k.fail=typeof ue=="function"&&ue,k.domain=fe?le.domain:void 0,this._c.push(k),this._a&&this._a.push(k),this._s&&ie(this,!1),k.promise},catch:function(se){return this.then(void 0,se)}}),P=function(){var se=new s;this.promise=se,this.resolve=_(Z,se,1),this.reject=_(ne,se,1)}),A(A.G+A.W+A.F*!re,{Promise:I}),a(18)(I,N),a(59)(N),p=a(6)[N],A(A.S+A.F*!re,N,{reject:function(se){var ue=X(this),k=ue.reject;return k(se),ue.promise}}),A(A.S+A.F*(f||!re),N,{resolve:function(se){if(se instanceof I&&G(se.constructor,this))return se;var ue=X(this),k=ue.resolve;return k(se),ue.promise}}),A(A.S+A.F*!(re&&a(46)(function(se){I.all(se).catch(he)})),N,{all:function(se){var ue=this,k=X(ue),W=k.resolve,T=k.reject,L=B(function(){var J=[],v=0,U=1;b(se,!1,function(H){var Q=v++,te=!1;J.push(void 0),U++,ue.resolve(H).then(function(be){te||(te=!0,J[Q]=be,--U||W(J))},T)}),--U||W(J)});return L&&T(L.error),k.promise},race:function(se){var ue=this,k=X(ue),W=k.reject,T=B(function(){b(se,!1,function(L){ue.resolve(L).then(k.resolve,W)})});return T&&W(T.error),k.promise}})},function(t,i,a){"use strict";var s=a(61)(!0);a(27)(String,"String",function(u){this._t=String(u),this._i=0},function(){var u,p=this._t,f=this._i;return f>=p.length?{value:void 0,done:!0}:(u=s(p,f),this._i+=u.length,{value:u,done:!1})})},function(t,i,a){a(65);for(var s=a(2),u=a(5),p=a(10),f=a(1)("toStringTag"),m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],_=0;_<5;_++){var x=m[_],A=s[x],O=A&&A.prototype;O&&!O[f]&&u(O,f,x),p[x]=p.Array}},function(t,i){t.exports=require("child_process")},function(t,i){t.exports=require("crypto")}])})});var EW=pt((nXe,Pue)=>{Pue.exports=function(r,t){var i="000000000"+r;return i.substr(i.length-t)}});var wue=pt((iXe,Mue)=>{var Oue=EW(),J8e=require("os"),kue=2,z8e=Oue(process.pid.toString(36),kue),Rue=J8e.hostname(),$8e=Rue.length,X8e=Oue(Rue.split("").reduce(function(e,r){return+e+r.charCodeAt(0)},+$8e+36).toString(36),kue);Mue.exports=function(){return z8e+X8e}});var Gue=pt((aXe,Fue)=>{var Y8e=require("crypto"),Q8e=Math.pow(2,32)-1;Fue.exports=function(){return Math.abs(Y8e.randomBytes(4).readInt32BE()/Q8e)}});var Vue=pt((oXe,Wue)=>{var Jk=wue(),Bue=EW(),Z8e=Gue(),eL=0,SW=4,zk=36,Uue=Math.pow(zk,SW);function bW(){return Bue((Z8e()*Uue<<0).toString(zk),SW)}function Kue(){return eL=eL<Uue?eL:0,eL++,eL-1}function rL(){var e="c",r=new Date().getTime().toString(zk),t=Bue(Kue().toString(zk),SW),i=Jk(),a=bW()+bW();return e+r+t+i+a}rL.slug=function(){var r=new Date().getTime().toString(36),t=Kue().toString(36).slice(-4),i=Jk().slice(0,1)+Jk().slice(-1),a=bW().slice(-2);return r.slice(-2)+t+i+a};rL.isCuid=function(r){return typeof r!="string"?!1:!!r.startsWith("c")};rL.isSlug=function(r){if(typeof r!="string")return!1;var t=r.length;return t>=7&&t<=10};rL.fingerprint=Jk;Wue.exports=rL});var Hue=pt((sXe,jue)=>{"use strict";var e5e=setTimeout;function r5e(e,r){var t=r.useCachedSetTimeout?e5e:setTimeout;return new Promise(function(i){t(i,e)})}jue.exports=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=r.useCachedSetTimeout,i=r5e(e,{useCachedSetTimeout:t});function a(s){return i.then(function(){return s})}return a.then=function(){return i.then.apply(i,arguments)},a.catch=Promise.resolve().catch,a}});var $ue=pt((lXe,zue)=>{"use strict";var xW=[],nL=[],que=!1,TW=0,Jue=1e4,SD={},tL={};function DW(e,r,t){let i=!1;function a(){i||(i=!0,e===!0&&process.nextTick(process.exit.bind(null,r)))}function s(){process.nextTick(()=>{--TW===0&&a()})}function u(p,f,m){return e&&m.length>p?(TW++,f?m(f,s):m(s)):f?m(f):m()}que||(que=!0,t&&nL.map(u.bind(null,1,t)),xW.map(u.bind(null,0,null)),TW?setTimeout(()=>{a()},Jue):a())}function c_(e){xW.push(e),xW.length===1&&(c_.hookEvent("exit"),c_.hookEvent("beforeExit",0),c_.hookEvent("SIGHUP",128+1),c_.hookEvent("SIGINT",128+2),c_.hookEvent("SIGTERM",128+15),c_.hookEvent("SIGBREAK",128+21),c_.hookEvent("message",0,function(r){if(r!=="shutdown")return!0}))}c_.hookEvent=function(e,r,t){SD[e]=function(){let i=tL[e];for(let a=0;a<i.length;a++)if(i[a].apply(this,arguments))return;DW(r!=null,r)},tL[e]||(tL[e]=[]),t&&tL[e].push(t),process.on(e,SD[e])};c_.unhookEvent=function(e){process.removeListener(e,SD[e]),delete SD[e],delete tL[e]};c_.hookedEvents=function(){let e=[];for(let r in SD)({}).hasOwnProperty.call(SD,r)&&e.push(r);return e};c_.uncaughtExceptionHandler=function(e){nL.push(e),nL.length===1&&process.once("uncaughtException",DW.bind(null,!0,1))};c_.unhandledRejectionHandler=function(e){nL.push(e),nL.length===1&&process.once("unhandledRejection",DW.bind(null,!0,1))};c_.forceExitTimeout=function(e){Jue=e};zue.exports=c_});var $k=pt((cXe,t5e)=>{t5e.exports={name:"zenstack",publisher:"zenstack",displayName:"ZenStack Language Tools",description:"A toolkit for modeling data and access policies in full-stack development with Next.js and Typescript",version:"0.3.16",author:{name:"ZenStack Team"},license:"MIT",keywords:["fullstack","react","typescript","data modeling"],preview:!0,icon:"asset/logo-256-bg.png",repository:{type:"git",url:"https://github.com/zenstackhq/zenstack"},engines:{vscode:"^1.56.0"},categories:["Programming Languages"],contributes:{languages:[{id:"zmodel",aliases:["ZenStack Model","zmodel"],extensions:[".zmodel"],configuration:"./language-configuration.json",icon:{light:"./asset/logo-light-256.png",dark:"./asset/logo-dark-256.png"}}],grammars:[{language:"zmodel",scopeName:"source.zmodel",path:"./syntaxes/zmodel.tmLanguage.json"}]},activationEvents:["onLanguage:zmodel"],files:["bin","src","bundle"],bin:{zenstack:"./bin/cli"},main:"./bundle/extension.js",scripts:{"vscode:publish":"vsce publish --no-dependencies","vscode:prepublish":"cp ../../README.md ./ && pnpm lint && pnpm build","vscode:package":"vsce package --no-dependencies",clean:"rimraf bundle",build:"pnpm -C ../runtime build && pnpm langium:generate && tsc --noEmit && pnpm bundle && cp -r src/res/* bundle/res/",bundle:"npm run clean && node build/bundle.js --minify","bundle-watch":"node build/bundle.js --watch","ts:watch":"tsc --watch --noEmit","tsc-alias:watch":"tsc-alias --watch",lint:"eslint src --ext ts","langium:generate":"langium generate","langium:watch":"langium generate --watch",watch:'concurrently --kill-others "npm:langium:watch" "npm:bundle-watch"',test:"jest",prepublishOnly:"cp ../../README.md ./ && pnpm build",postinstall:"bin/post-install.js"},dependencies:{"@zenstackhq/runtime":"workspace:../runtime/dist","async-exit-hook":"^2.0.1","change-case":"^4.1.2",chevrotain:"^9.1.0",colors:"1.4.0",commander:"^8.3.0",cuid:"^2.1.8",langium:"^0.5.0",mixpanel:"^0.17.0","node-machine-id":"^1.1.12",pluralize:"^8.0.0",prisma:"^4.5.0",promisify:"^0.0.3","sleep-promise":"^9.1.0","ts-morph":"^16.0.0",uuid:"^9.0.0","vscode-jsonrpc":"^8.0.2","vscode-languageclient":"^8.0.2","vscode-languageserver":"^8.0.2","vscode-languageserver-textdocument":"^1.0.7","vscode-uri":"^3.0.6"},devDependencies:{"@prisma/internals":"^4.5.0","@types/async-exit-hook":"^2.0.0","@types/jest":"^29.2.0","@types/node":"^14.18.32","@types/pluralize":"^0.0.29","@types/tmp":"^0.2.3","@types/uuid":"^8.3.4","@types/vscode":"^1.56.0","@typescript-eslint/eslint-plugin":"^5.42.0","@typescript-eslint/parser":"^5.42.0",concurrently:"^7.4.0",dotenv:"^16.0.3",esbuild:"^0.15.12",eslint:"^8.27.0",jest:"^29.2.1","langium-cli":"^0.5.0",rimraf:"^3.0.2",tmp:"^0.2.1","ts-jest":"^29.0.3","ts-node":"^10.9.1","tsc-alias":"^1.7.0","tsconfig-paths-jest":"^0.0.1",typescript:"^4.8.4",vsce:"^2.13.0"}}});var ace=pt((PW,OW)=>{(function(e,r){typeof require=="function"&&typeof PW=="object"&&typeof OW=="object"?OW.exports=r():typeof define=="function"&&define.amd?define(function(){return r()}):e.pluralize=r()})(PW,function(){var e=[],r=[],t={},i={},a={};function s(O){return typeof O=="string"?new RegExp("^"+O+"$","i"):O}function u(O,R){return O===R?R:O===O.toLowerCase()?R.toLowerCase():O===O.toUpperCase()?R.toUpperCase():O[0]===O[0].toUpperCase()?R.charAt(0).toUpperCase()+R.substr(1).toLowerCase():R.toLowerCase()}function p(O,R){return O.replace(/\$(\d{1,2})/g,function(h,b){return R[b]||""})}function f(O,R){return O.replace(R[0],function(h,b){var K=p(R[1],arguments);return u(h===""?O[b-1]:h,K)})}function m(O,R,h){if(!O.length||t.hasOwnProperty(O))return R;for(var b=h.length;b--;){var K=h[b];if(K[0].test(R))return f(R,K)}return R}function _(O,R,h){return function(b){var K=b.toLowerCase();return R.hasOwnProperty(K)?u(b,K):O.hasOwnProperty(K)?u(b,O[K]):m(K,b,h)}}function x(O,R,h,b){return function(K){var C=K.toLowerCase();return R.hasOwnProperty(C)?!0:O.hasOwnProperty(C)?!1:m(C,C,h)===C}}function A(O,R,h){var b=R===1?A.singular(O):A.plural(O);return(h?R+" ":"")+b}return A.plural=_(a,i,e),A.isPlural=x(a,i,e),A.singular=_(i,a,r),A.isSingular=x(i,a,r),A.addPluralRule=function(O,R){e.push([s(O),R])},A.addSingularRule=function(O,R){r.push([s(O),R])},A.addUncountableRule=function(O){if(typeof O=="string"){t[O.toLowerCase()]=!0;return}A.addPluralRule(O,"$0"),A.addSingularRule(O,"$0")},A.addIrregularRule=function(O,R){R=R.toLowerCase(),O=O.toLowerCase(),a[O]=R,i[R]=O},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(O){return A.addIrregularRule(O[0],O[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(O){return A.addPluralRule(O[0],O[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(O){return A.addSingularRule(O[0],O[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(A.addUncountableRule),A})});var _ce=pt(iS=>{"use strict";var s5e=iS&&iS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(iS,"__esModule",{value:!0});iS.NodeFileSystem=iS.NodeFileSystemProvider=void 0;var kW=s5e(require("fs")),l5e=iv(),rR=class{constructor(){this.encoding="utf-8"}readFile(r){return kW.default.promises.readFile(r.fsPath,this.encoding)}readFileSync(r){return kW.default.readFileSync(r.fsPath,this.encoding)}async readDirectory(r){return(await kW.default.promises.readdir(r.fsPath,{withFileTypes:!0})).map(i=>({dirent:i,isFile:i.isFile(),isDirectory:i.isDirectory(),uri:l5e.Utils.joinPath(r,i.name)}))}};iS.NodeFileSystemProvider=rR;iS.NodeFileSystem={fileSystemProvider:()=>new rR}});var gce=pt(WT=>{"use strict";var u5e=WT&&WT.__createBinding||(Object.create?function(e,r,t,i){i===void 0&&(i=t);var a=Object.getOwnPropertyDescriptor(r,t);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,i,a)}:function(e,r,t,i){i===void 0&&(i=t),e[i]=r[t]}),c5e=WT&&WT.__exportStar||function(e,r){for(var t in e)t!=="default"&&!Object.prototype.hasOwnProperty.call(r,t)&&u5e(r,e,t)};Object.defineProperty(WT,"__esModule",{value:!0});c5e(_ce(),WT)});var vce=pt((oQe,yce)=>{yce.exports=gce()});var Dce=pt(jW=>{var xce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");jW.encode=function(e){if(0<=e&&e<xce.length)return xce[e];throw new TypeError("Must be between 0 and 63: "+e)};jW.decode=function(e){var r=65,t=90,i=97,a=122,s=48,u=57,p=43,f=47,m=26,_=52;return r<=e&&e<=t?e-r:i<=e&&e<=a?e-i+m:s<=e&&e<=u?e-s+_:e==p?62:e==f?63:-1}});var JW=pt(qW=>{var Cce=Dce(),HW=5,Ace=1<<HW,Lce=Ace-1,Nce=Ace;function f5e(e){return e<0?(-e<<1)+1:(e<<1)+0}function p5e(e){var r=(e&1)===1,t=e>>1;return r?-t:t}qW.encode=function(r){var t="",i,a=f5e(r);do i=a&Lce,a>>>=HW,a>0&&(i|=Nce),t+=Cce.encode(i);while(a>0);return t};qW.decode=function(r,t,i){var a=r.length,s=0,u=0,p,f;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(f=Cce.decode(r.charCodeAt(t++)),f===-1)throw new Error("Invalid base64 digit: "+r.charAt(t-1));p=!!(f&Nce),f&=Lce,s=s+(f<<u),u+=HW}while(p);i.value=p5e(s),i.rest=t}});var PD=pt(Qp=>{function m5e(e,r,t){if(r in e)return e[r];if(arguments.length===3)return t;throw new Error('"'+r+'" is a required argument.')}Qp.getArg=m5e;var Ice=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,_5e=/^data:.+\,.+$/;function _L(e){var r=e.match(Ice);return r?{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}:null}Qp.urlParse=_L;function ND(e){var r="";return e.scheme&&(r+=e.scheme+":"),r+="//",e.auth&&(r+=e.auth+"@"),e.host&&(r+=e.host),e.port&&(r+=":"+e.port),e.path&&(r+=e.path),r}Qp.urlGenerate=ND;function zW(e){var r=e,t=_L(e);if(t){if(!t.path)return e;r=t.path}for(var i=Qp.isAbsolute(r),a=r.split(/\/+/),s,u=0,p=a.length-1;p>=0;p--)s=a[p],s==="."?a.splice(p,1):s===".."?u++:u>0&&(s===""?(a.splice(p+1,u),u=0):(a.splice(p,2),u--));return r=a.join("/"),r===""&&(r=i?"/":"."),t?(t.path=r,ND(t)):r}Qp.normalize=zW;function Pce(e,r){e===""&&(e="."),r===""&&(r=".");var t=_L(r),i=_L(e);if(i&&(e=i.path||"/"),t&&!t.scheme)return i&&(t.scheme=i.scheme),ND(t);if(t||r.match(_5e))return r;if(i&&!i.host&&!i.path)return i.host=r,ND(i);var a=r.charAt(0)==="/"?r:zW(e.replace(/\/+$/,"")+"/"+r);return i?(i.path=a,ND(i)):a}Qp.join=Pce;Qp.isAbsolute=function(e){return e.charAt(0)==="/"||Ice.test(e)};function g5e(e,r){e===""&&(e="."),e=e.replace(/\/$/,"");for(var t=0;r.indexOf(e+"/")!==0;){var i=e.lastIndexOf("/");if(i<0||(e=e.slice(0,i),e.match(/^([^\/]+:\/)?\/*$/)))return r;++t}return Array(t+1).join("../")+r.substr(e.length+1)}Qp.relative=g5e;var Oce=function(){var e=Object.create(null);return!("__proto__"in e)}();function kce(e){return e}function y5e(e){return Rce(e)?"$"+e:e}Qp.toSetString=Oce?kce:y5e;function v5e(e){return Rce(e)?e.slice(1):e}Qp.fromSetString=Oce?kce:v5e;function Rce(e){if(!e)return!1;var r=e.length;if(r<9||e.charCodeAt(r-1)!==95||e.charCodeAt(r-2)!==95||e.charCodeAt(r-3)!==111||e.charCodeAt(r-4)!==116||e.charCodeAt(r-5)!==111||e.charCodeAt(r-6)!==114||e.charCodeAt(r-7)!==112||e.charCodeAt(r-8)!==95||e.charCodeAt(r-9)!==95)return!1;for(var t=r-10;t>=0;t--)if(e.charCodeAt(t)!==36)return!1;return!0}function h5e(e,r,t){var i=ID(e.source,r.source);return i!==0||(i=e.originalLine-r.originalLine,i!==0)||(i=e.originalColumn-r.originalColumn,i!==0||t)||(i=e.generatedColumn-r.generatedColumn,i!==0)||(i=e.generatedLine-r.generatedLine,i!==0)?i:ID(e.name,r.name)}Qp.compareByOriginalPositions=h5e;function E5e(e,r,t){var i=e.generatedLine-r.generatedLine;return i!==0||(i=e.generatedColumn-r.generatedColumn,i!==0||t)||(i=ID(e.source,r.source),i!==0)||(i=e.originalLine-r.originalLine,i!==0)||(i=e.originalColumn-r.originalColumn,i!==0)?i:ID(e.name,r.name)}Qp.compareByGeneratedPositionsDeflated=E5e;function ID(e,r){return e===r?0:e===null?1:r===null?-1:e>r?1:-1}function b5e(e,r){var t=e.generatedLine-r.generatedLine;return t!==0||(t=e.generatedColumn-r.generatedColumn,t!==0)||(t=ID(e.source,r.source),t!==0)||(t=e.originalLine-r.originalLine,t!==0)||(t=e.originalColumn-r.originalColumn,t!==0)?t:ID(e.name,r.name)}Qp.compareByGeneratedPositionsInflated=b5e;function S5e(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Qp.parseSourceMapInput=S5e;function T5e(e,r,t){if(r=r||"",e&&(e[e.length-1]!=="/"&&r[0]!=="/"&&(e+="/"),r=e+r),t){var i=_L(t);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var a=i.path.lastIndexOf("/");a>=0&&(i.path=i.path.substring(0,a+1))}r=Pce(ND(i),r)}return zW(r)}Qp.computeSourceURL=T5e});var YW=pt(Mce=>{var $W=PD(),XW=Object.prototype.hasOwnProperty,jT=typeof Map<"u";function wE(){this._array=[],this._set=jT?new Map:Object.create(null)}wE.fromArray=function(r,t){for(var i=new wE,a=0,s=r.length;a<s;a++)i.add(r[a],t);return i};wE.prototype.size=function(){return jT?this._set.size:Object.getOwnPropertyNames(this._set).length};wE.prototype.add=function(r,t){var i=jT?r:$W.toSetString(r),a=jT?this.has(r):XW.call(this._set,i),s=this._array.length;(!a||t)&&this._array.push(r),a||(jT?this._set.set(r,s):this._set[i]=s)};wE.prototype.has=function(r){if(jT)return this._set.has(r);var t=$W.toSetString(r);return XW.call(this._set,t)};wE.prototype.indexOf=function(r){if(jT){var t=this._set.get(r);if(t>=0)return t}else{var i=$W.toSetString(r);if(XW.call(this._set,i))return this._set[i]}throw new Error('"'+r+'" is not in the set.')};wE.prototype.at=function(r){if(r>=0&&r<this._array.length)return this._array[r];throw new Error("No element indexed by "+r)};wE.prototype.toArray=function(){return this._array.slice()};Mce.ArraySet=wE});var Gce=pt(Fce=>{var wce=PD();function x5e(e,r){var t=e.generatedLine,i=r.generatedLine,a=e.generatedColumn,s=r.generatedColumn;return i>t||i==t&&s>=a||wce.compareByGeneratedPositionsInflated(e,r)<=0}function oR(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}oR.prototype.unsortedForEach=function(r,t){this._array.forEach(r,t)};oR.prototype.add=function(r){x5e(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))};oR.prototype.toArray=function(){return this._sorted||(this._array.sort(wce.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Fce.MappingList=oR});var QW=pt(Bce=>{var gL=JW(),Od=PD(),sR=YW().ArraySet,D5e=Gce().MappingList;function ey(e){e||(e={}),this._file=Od.getArg(e,"file",null),this._sourceRoot=Od.getArg(e,"sourceRoot",null),this._skipValidation=Od.getArg(e,"skipValidation",!1),this._sources=new sR,this._names=new sR,this._mappings=new D5e,this._sourcesContents=null}ey.prototype._version=3;ey.fromSourceMap=function(r){var t=r.sourceRoot,i=new ey({file:r.file,sourceRoot:t});return r.eachMapping(function(a){var s={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source!=null&&(s.source=a.source,t!=null&&(s.source=Od.relative(t,s.source)),s.original={line:a.originalLine,column:a.originalColumn},a.name!=null&&(s.name=a.name)),i.addMapping(s)}),r.sources.forEach(function(a){var s=a;t!==null&&(s=Od.relative(t,a)),i._sources.has(s)||i._sources.add(s);var u=r.sourceContentFor(a);u!=null&&i.setSourceContent(a,u)}),i};ey.prototype.addMapping=function(r){var t=Od.getArg(r,"generated"),i=Od.getArg(r,"original",null),a=Od.getArg(r,"source",null),s=Od.getArg(r,"name",null);this._skipValidation||this._validateMapping(t,i,a,s),a!=null&&(a=String(a),this._sources.has(a)||this._sources.add(a)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:a,name:s})};ey.prototype.setSourceContent=function(r,t){var i=r;this._sourceRoot!=null&&(i=Od.relative(this._sourceRoot,i)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Od.toSetString(i)]=t):this._sourcesContents&&(delete this._sourcesContents[Od.toSetString(i)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};ey.prototype.applySourceMap=function(r,t,i){var a=t;if(t==null){if(r.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=r.file}var s=this._sourceRoot;s!=null&&(a=Od.relative(s,a));var u=new sR,p=new sR;this._mappings.unsortedForEach(function(f){if(f.source===a&&f.originalLine!=null){var m=r.originalPositionFor({line:f.originalLine,column:f.originalColumn});m.source!=null&&(f.source=m.source,i!=null&&(f.source=Od.join(i,f.source)),s!=null&&(f.source=Od.relative(s,f.source)),f.originalLine=m.line,f.originalColumn=m.column,m.name!=null&&(f.name=m.name))}var _=f.source;_!=null&&!u.has(_)&&u.add(_);var x=f.name;x!=null&&!p.has(x)&&p.add(x)},this),this._sources=u,this._names=p,r.sources.forEach(function(f){var m=r.sourceContentFor(f);m!=null&&(i!=null&&(f=Od.join(i,f)),s!=null&&(f=Od.relative(s,f)),this.setSourceContent(f,m))},this)};ey.prototype._validateMapping=function(r,t,i,a){if(t&&typeof t.line!="number"&&typeof t.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(r&&"line"in r&&"column"in r&&r.line>0&&r.column>=0&&!t&&!i&&!a)){if(r&&"line"in r&&"column"in r&&t&&"line"in t&&"column"in t&&r.line>0&&r.column>=0&&t.line>0&&t.column>=0&&i)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:r,source:i,original:t,name:a}))}};ey.prototype._serializeMappings=function(){for(var r=0,t=1,i=0,a=0,s=0,u=0,p="",f,m,_,x,A=this._mappings.toArray(),O=0,R=A.length;O<R;O++){if(m=A[O],f="",m.generatedLine!==t)for(r=0;m.generatedLine!==t;)f+=";",t++;else if(O>0){if(!Od.compareByGeneratedPositionsInflated(m,A[O-1]))continue;f+=","}f+=gL.encode(m.generatedColumn-r),r=m.generatedColumn,m.source!=null&&(x=this._sources.indexOf(m.source),f+=gL.encode(x-u),u=x,f+=gL.encode(m.originalLine-1-a),a=m.originalLine-1,f+=gL.encode(m.originalColumn-i),i=m.originalColumn,m.name!=null&&(_=this._names.indexOf(m.name),f+=gL.encode(_-s),s=_)),p+=f}return p};ey.prototype._generateSourcesContent=function(r,t){return r.map(function(i){if(!this._sourcesContents)return null;t!=null&&(i=Od.relative(t,i));var a=Od.toSetString(i);return Object.prototype.hasOwnProperty.call(this._sourcesContents,a)?this._sourcesContents[a]:null},this)};ey.prototype.toJSON=function(){var r={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(r.file=this._file),this._sourceRoot!=null&&(r.sourceRoot=this._sourceRoot),this._sourcesContents&&(r.sourcesContent=this._generateSourcesContent(r.sources,r.sourceRoot)),r};ey.prototype.toString=function(){return JSON.stringify(this.toJSON())};Bce.SourceMapGenerator=ey});var Uce=pt(HT=>{HT.GREATEST_LOWER_BOUND=1;HT.LEAST_UPPER_BOUND=2;function ZW(e,r,t,i,a,s){var u=Math.floor((r-e)/2)+e,p=a(t,i[u],!0);return p===0?u:p>0?r-u>1?ZW(u,r,t,i,a,s):s==HT.LEAST_UPPER_BOUND?r<i.length?r:-1:u:u-e>1?ZW(e,u,t,i,a,s):s==HT.LEAST_UPPER_BOUND?u:e<0?-1:e}HT.search=function(r,t,i,a){if(t.length===0)return-1;var s=ZW(-1,t.length,r,t,i,a||HT.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&i(t[s],t[s-1],!0)===0;)--s;return s}});var Wce=pt(Kce=>{function eV(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}function C5e(e,r){return Math.round(e+Math.random()*(r-e))}function rV(e,r,t,i){if(t<i){var a=C5e(t,i),s=t-1;eV(e,a,i);for(var u=e[i],p=t;p<i;p++)r(e[p],u)<=0&&(s+=1,eV(e,s,p));eV(e,s+1,p);var f=s+1;rV(e,r,t,f-1),rV(e,r,f+1,i)}}Kce.quickSort=function(e,r){rV(e,r,0,e.length-1)}});var jce=pt(lR=>{var Eo=PD(),tV=Uce(),OD=YW().ArraySet,A5e=JW(),yL=Wce().quickSort;function nc(e,r){var t=e;return typeof e=="string"&&(t=Eo.parseSourceMapInput(e)),t.sections!=null?new _v(t,r):new fp(t,r)}nc.fromSourceMap=function(e,r){return fp.fromSourceMap(e,r)};nc.prototype._version=3;nc.prototype.__generatedMappings=null;Object.defineProperty(nc.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});nc.prototype.__originalMappings=null;Object.defineProperty(nc.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});nc.prototype._charIsMappingSeparator=function(r,t){var i=r.charAt(t);return i===";"||i===","};nc.prototype._parseMappings=function(r,t){throw new Error("Subclasses must implement _parseMappings")};nc.GENERATED_ORDER=1;nc.ORIGINAL_ORDER=2;nc.GREATEST_LOWER_BOUND=1;nc.LEAST_UPPER_BOUND=2;nc.prototype.eachMapping=function(r,t,i){var a=t||null,s=i||nc.GENERATED_ORDER,u;switch(s){case nc.GENERATED_ORDER:u=this._generatedMappings;break;case nc.ORIGINAL_ORDER:u=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var p=this.sourceRoot;u.map(function(f){var m=f.source===null?null:this._sources.at(f.source);return m=Eo.computeSourceURL(p,m,this._sourceMapURL),{source:m,generatedLine:f.generatedLine,generatedColumn:f.generatedColumn,originalLine:f.originalLine,originalColumn:f.originalColumn,name:f.name===null?null:this._names.at(f.name)}},this).forEach(r,a)};nc.prototype.allGeneratedPositionsFor=function(r){var t=Eo.getArg(r,"line"),i={source:Eo.getArg(r,"source"),originalLine:t,originalColumn:Eo.getArg(r,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],s=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",Eo.compareByOriginalPositions,tV.LEAST_UPPER_BOUND);if(s>=0){var u=this._originalMappings[s];if(r.column===void 0)for(var p=u.originalLine;u&&u.originalLine===p;)a.push({line:Eo.getArg(u,"generatedLine",null),column:Eo.getArg(u,"generatedColumn",null),lastColumn:Eo.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++s];else for(var f=u.originalColumn;u&&u.originalLine===t&&u.originalColumn==f;)a.push({line:Eo.getArg(u,"generatedLine",null),column:Eo.getArg(u,"generatedColumn",null),lastColumn:Eo.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++s]}return a};lR.SourceMapConsumer=nc;function fp(e,r){var t=e;typeof e=="string"&&(t=Eo.parseSourceMapInput(e));var i=Eo.getArg(t,"version"),a=Eo.getArg(t,"sources"),s=Eo.getArg(t,"names",[]),u=Eo.getArg(t,"sourceRoot",null),p=Eo.getArg(t,"sourcesContent",null),f=Eo.getArg(t,"mappings"),m=Eo.getArg(t,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);u&&(u=Eo.normalize(u)),a=a.map(String).map(Eo.normalize).map(function(_){return u&&Eo.isAbsolute(u)&&Eo.isAbsolute(_)?Eo.relative(u,_):_}),this._names=OD.fromArray(s.map(String),!0),this._sources=OD.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map(function(_){return Eo.computeSourceURL(u,_,r)}),this.sourceRoot=u,this.sourcesContent=p,this._mappings=f,this._sourceMapURL=r,this.file=m}fp.prototype=Object.create(nc.prototype);fp.prototype.consumer=nc;fp.prototype._findSourceIndex=function(e){var r=e;if(this.sourceRoot!=null&&(r=Eo.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1};fp.fromSourceMap=function(r,t){var i=Object.create(fp.prototype),a=i._names=OD.fromArray(r._names.toArray(),!0),s=i._sources=OD.fromArray(r._sources.toArray(),!0);i.sourceRoot=r._sourceRoot,i.sourcesContent=r._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=r._file,i._sourceMapURL=t,i._absoluteSources=i._sources.toArray().map(function(O){return Eo.computeSourceURL(i.sourceRoot,O,t)});for(var u=r._mappings.toArray().slice(),p=i.__generatedMappings=[],f=i.__originalMappings=[],m=0,_=u.length;m<_;m++){var x=u[m],A=new Vce;A.generatedLine=x.generatedLine,A.generatedColumn=x.generatedColumn,x.source&&(A.source=s.indexOf(x.source),A.originalLine=x.originalLine,A.originalColumn=x.originalColumn,x.name&&(A.name=a.indexOf(x.name)),f.push(A)),p.push(A)}return yL(i.__originalMappings,Eo.compareByOriginalPositions),i};fp.prototype._version=3;Object.defineProperty(fp.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Vce(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}fp.prototype._parseMappings=function(r,t){for(var i=1,a=0,s=0,u=0,p=0,f=0,m=r.length,_=0,x={},A={},O=[],R=[],h,b,K,C,F;_<m;)if(r.charAt(_)===";")i++,_++,a=0;else if(r.charAt(_)===",")_++;else{for(h=new Vce,h.generatedLine=i,C=_;C<m&&!this._charIsMappingSeparator(r,C);C++);if(b=r.slice(_,C),K=x[b],K)_+=b.length;else{for(K=[];_<C;)A5e.decode(r,_,A),F=A.value,_=A.rest,K.push(F);if(K.length===2)throw new Error("Found a source, but no line and column");if(K.length===3)throw new Error("Found a source and line, but no column");x[b]=K}h.generatedColumn=a+K[0],a=h.generatedColumn,K.length>1&&(h.source=p+K[1],p+=K[1],h.originalLine=s+K[2],s=h.originalLine,h.originalLine+=1,h.originalColumn=u+K[3],u=h.originalColumn,K.length>4&&(h.name=f+K[4],f+=K[4])),R.push(h),typeof h.originalLine=="number"&&O.push(h)}yL(R,Eo.compareByGeneratedPositionsDeflated),this.__generatedMappings=R,yL(O,Eo.compareByOriginalPositions),this.__originalMappings=O};fp.prototype._findMapping=function(r,t,i,a,s,u){if(r[i]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+r[i]);if(r[a]<0)throw new TypeError("Column must be greater than or equal to 0, got "+r[a]);return tV.search(r,t,s,u)};fp.prototype.computeColumnSpans=function(){for(var r=0;r<this._generatedMappings.length;++r){var t=this._generatedMappings[r];if(r+1<this._generatedMappings.length){var i=this._generatedMappings[r+1];if(t.generatedLine===i.generatedLine){t.lastGeneratedColumn=i.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};fp.prototype.originalPositionFor=function(r){var t={generatedLine:Eo.getArg(r,"line"),generatedColumn:Eo.getArg(r,"column")},i=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",Eo.compareByGeneratedPositionsDeflated,Eo.getArg(r,"bias",nc.GREATEST_LOWER_BOUND));if(i>=0){var a=this._generatedMappings[i];if(a.generatedLine===t.generatedLine){var s=Eo.getArg(a,"source",null);s!==null&&(s=this._sources.at(s),s=Eo.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var u=Eo.getArg(a,"name",null);return u!==null&&(u=this._names.at(u)),{source:s,line:Eo.getArg(a,"originalLine",null),column:Eo.getArg(a,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}};fp.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(r){return r==null}):!1};fp.prototype.sourceContentFor=function(r,t){if(!this.sourcesContent)return null;var i=this._findSourceIndex(r);if(i>=0)return this.sourcesContent[i];var a=r;this.sourceRoot!=null&&(a=Eo.relative(this.sourceRoot,a));var s;if(this.sourceRoot!=null&&(s=Eo.urlParse(this.sourceRoot))){var u=a.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];if((!s.path||s.path=="/")&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(t)return null;throw new Error('"'+a+'" is not in the SourceMap.')};fp.prototype.generatedPositionFor=function(r){var t=Eo.getArg(r,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var i={source:t,originalLine:Eo.getArg(r,"line"),originalColumn:Eo.getArg(r,"column")},a=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",Eo.compareByOriginalPositions,Eo.getArg(r,"bias",nc.GREATEST_LOWER_BOUND));if(a>=0){var s=this._originalMappings[a];if(s.source===i.source)return{line:Eo.getArg(s,"generatedLine",null),column:Eo.getArg(s,"generatedColumn",null),lastColumn:Eo.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};lR.BasicSourceMapConsumer=fp;function _v(e,r){var t=e;typeof e=="string"&&(t=Eo.parseSourceMapInput(e));var i=Eo.getArg(t,"version"),a=Eo.getArg(t,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new OD,this._names=new OD;var s={line:-1,column:0};this._sections=a.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var p=Eo.getArg(u,"offset"),f=Eo.getArg(p,"line"),m=Eo.getArg(p,"column");if(f<s.line||f===s.line&&m<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=p,{generatedOffset:{generatedLine:f+1,generatedColumn:m+1},consumer:new nc(Eo.getArg(u,"map"),r)}})}_v.prototype=Object.create(nc.prototype);_v.prototype.constructor=nc;_v.prototype._version=3;Object.defineProperty(_v.prototype,"sources",{get:function(){for(var e=[],r=0;r<this._sections.length;r++)for(var t=0;t<this._sections[r].consumer.sources.length;t++)e.push(this._sections[r].consumer.sources[t]);return e}});_v.prototype.originalPositionFor=function(r){var t={generatedLine:Eo.getArg(r,"line"),generatedColumn:Eo.getArg(r,"column")},i=tV.search(t,this._sections,function(s,u){var p=s.generatedLine-u.generatedOffset.generatedLine;return p||s.generatedColumn-u.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:t.generatedLine-(a.generatedOffset.generatedLine-1),column:t.generatedColumn-(a.generatedOffset.generatedLine===t.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:r.bias}):{source:null,line:null,column:null,name:null}};_v.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(r){return r.consumer.hasContentsOfAllSources()})};_v.prototype.sourceContentFor=function(r,t){for(var i=0;i<this._sections.length;i++){var a=this._sections[i],s=a.consumer.sourceContentFor(r,!0);if(s)return s}if(t)return null;throw new Error('"'+r+'" is not in the SourceMap.')};_v.prototype.generatedPositionFor=function(r){for(var t=0;t<this._sections.length;t++){var i=this._sections[t];if(i.consumer._findSourceIndex(Eo.getArg(r,"source"))!==-1){var a=i.consumer.generatedPositionFor(r);if(a){var s={line:a.line+(i.generatedOffset.generatedLine-1),column:a.column+(i.generatedOffset.generatedLine===a.line?i.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};_v.prototype._parseMappings=function(r,t){this.__generatedMappings=[],this.__originalMappings=[];for(var i=0;i<this._sections.length;i++)for(var a=this._sections[i],s=a.consumer._generatedMappings,u=0;u<s.length;u++){var p=s[u],f=a.consumer._sources.at(p.source);f=Eo.computeSourceURL(a.consumer.sourceRoot,f,this._sourceMapURL),this._sources.add(f),f=this._sources.indexOf(f);var m=null;p.name&&(m=a.consumer._names.at(p.name),this._names.add(m),m=this._names.indexOf(m));var _={source:f,generatedLine:p.generatedLine+(a.generatedOffset.generatedLine-1),generatedColumn:p.generatedColumn+(a.generatedOffset.generatedLine===p.generatedLine?a.generatedOffset.generatedColumn-1:0),originalLine:p.originalLine,originalColumn:p.originalColumn,name:m};this.__generatedMappings.push(_),typeof _.originalLine=="number"&&this.__originalMappings.push(_)}yL(this.__generatedMappings,Eo.compareByGeneratedPositionsDeflated),yL(this.__originalMappings,Eo.compareByOriginalPositions)};lR.IndexedSourceMapConsumer=_v});var qce=pt(Hce=>{var L5e=QW().SourceMapGenerator,uR=PD(),N5e=/(\r?\n)/,I5e=10,kD="$$$isSourceNode$$$";function H_(e,r,t,i,a){this.children=[],this.sourceContents={},this.line=e??null,this.column=r??null,this.source=t??null,this.name=a??null,this[kD]=!0,i!=null&&this.add(i)}H_.fromStringWithSourceMap=function(r,t,i){var a=new H_,s=r.split(N5e),u=0,p=function(){var A=R(),O=R()||"";return A+O;function R(){return u<s.length?s[u++]:void 0}},f=1,m=0,_=null;return t.eachMapping(function(A){if(_!==null)if(f<A.generatedLine)x(_,p()),f++,m=0;else{var O=s[u]||"",R=O.substr(0,A.generatedColumn-m);s[u]=O.substr(A.generatedColumn-m),m=A.generatedColumn,x(_,R),_=A;return}for(;f<A.generatedLine;)a.add(p()),f++;if(m<A.generatedColumn){var O=s[u]||"";a.add(O.substr(0,A.generatedColumn)),s[u]=O.substr(A.generatedColumn),m=A.generatedColumn}_=A},this),u<s.length&&(_&&x(_,p()),a.add(s.splice(u).join(""))),t.sources.forEach(function(A){var O=t.sourceContentFor(A);O!=null&&(i!=null&&(A=uR.join(i,A)),a.setSourceContent(A,O))}),a;function x(A,O){if(A===null||A.source===void 0)a.add(O);else{var R=i?uR.join(i,A.source):A.source;a.add(new H_(A.originalLine,A.originalColumn,R,O,A.name))}}};H_.prototype.add=function(r){if(Array.isArray(r))r.forEach(function(t){this.add(t)},this);else if(r[kD]||typeof r=="string")r&&this.children.push(r);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+r);return this};H_.prototype.prepend=function(r){if(Array.isArray(r))for(var t=r.length-1;t>=0;t--)this.prepend(r[t]);else if(r[kD]||typeof r=="string")this.children.unshift(r);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+r);return this};H_.prototype.walk=function(r){for(var t,i=0,a=this.children.length;i<a;i++)t=this.children[i],t[kD]?t.walk(r):t!==""&&r(t,{source:this.source,line:this.line,column:this.column,name:this.name})};H_.prototype.join=function(r){var t,i,a=this.children.length;if(a>0){for(t=[],i=0;i<a-1;i++)t.push(this.children[i]),t.push(r);t.push(this.children[i]),this.children=t}return this};H_.prototype.replaceRight=function(r,t){var i=this.children[this.children.length-1];return i[kD]?i.replaceRight(r,t):typeof i=="string"?this.children[this.children.length-1]=i.replace(r,t):this.children.push("".replace(r,t)),this};H_.prototype.setSourceContent=function(r,t){this.sourceContents[uR.toSetString(r)]=t};H_.prototype.walkSourceContents=function(r){for(var t=0,i=this.children.length;t<i;t++)this.children[t][kD]&&this.children[t].walkSourceContents(r);for(var a=Object.keys(this.sourceContents),t=0,i=a.length;t<i;t++)r(uR.fromSetString(a[t]),this.sourceContents[a[t]])};H_.prototype.toString=function(){var r="";return this.walk(function(t){r+=t}),r};H_.prototype.toStringWithSourceMap=function(r){var t={code:"",line:1,column:0},i=new L5e(r),a=!1,s=null,u=null,p=null,f=null;return this.walk(function(m,_){t.code+=m,_.source!==null&&_.line!==null&&_.column!==null?((s!==_.source||u!==_.line||p!==_.column||f!==_.name)&&i.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:t.line,column:t.column},name:_.name}),s=_.source,u=_.line,p=_.column,f=_.name,a=!0):a&&(i.addMapping({generated:{line:t.line,column:t.column}}),s=null,a=!1);for(var x=0,A=m.length;x<A;x++)m.charCodeAt(x)===I5e?(t.line++,t.column=0,x+1===A?(s=null,a=!1):a&&i.addMapping({source:_.source,original:{line:_.line,column:_.column},generated:{line:t.line,column:t.column},name:_.name})):t.column++}),this.walkSourceContents(function(m,_){i.setSourceContent(m,_)}),{code:t.code,map:i}};Hce.SourceNode=H_});var Jce=pt(cR=>{cR.SourceMapGenerator=QW().SourceMapGenerator;cR.SourceMapConsumer=jce().SourceMapConsumer;cR.SourceNode=qce().SourceNode});var $ce=pt((JQe,zce)=>{var P5e=Object.prototype.toString,nV=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function O5e(e){return P5e.call(e).slice(8,-1)==="ArrayBuffer"}function k5e(e,r,t){r>>>=0;var i=e.byteLength-r;if(i<0)throw new RangeError("'offset' is out of bounds");if(t===void 0)t=i;else if(t>>>=0,t>i)throw new RangeError("'length' is out of bounds");return nV?Buffer.from(e.slice(r,r+t)):new Buffer(new Uint8Array(e.slice(r,r+t)))}function R5e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Buffer.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');return nV?Buffer.from(e,r):new Buffer(e,r)}function M5e(e,r,t){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return O5e(e)?k5e(e,r,t):typeof e=="string"?R5e(e,r):nV?Buffer.from(e):new Buffer(e)}zce.exports=M5e});var tde=pt(JT=>{var w5e=Jce().SourceMapConsumer,iV=require("path"),Lh;try{Lh=require("fs"),(!Lh.existsSync||!Lh.readFileSync)&&(Lh=null)}catch{}var F5e=$ce(),Xce=!1,Yce=!1,aV=!1,vL="auto",qT={},hL={},G5e=/^data:application\/json[^,]+base64,/,oS=[],sS=[];function sV(){return vL==="browser"?!0:vL==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function B5e(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function dR(e){return function(r){for(var t=0;t<e.length;t++){var i=e[t](r);if(i)return i}return null}}var lV=dR(oS);oS.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(i,a){return a?"":"/"})),e in qT)return qT[e];var r="";try{if(Lh)Lh.existsSync(e)&&(r=Lh.readFileSync(e,"utf8"));else{var t=new XMLHttpRequest;t.open("GET",e,!1),t.send(null),t.readyState===4&&t.status===200&&(r=t.responseText)}}catch{}return qT[e]=r});function oV(e,r){if(!e)return r;var t=iV.dirname(e),i=/^\w+:\/\/[^\/]*/.exec(t),a=i?i[0]:"",s=t.slice(a.length);return a&&/^\/\w\:/.test(s)?(a+="/",a+iV.resolve(t.slice(a.length),r).replace(/\\/g,"/")):a+iV.resolve(t.slice(a.length),r)}function U5e(e){var r;if(sV())try{var t=new XMLHttpRequest;t.open("GET",e,!1),t.send(null),r=t.readyState===4?t.responseText:null;var i=t.getResponseHeader("SourceMap")||t.getResponseHeader("X-SourceMap");if(i)return i}catch{}r=lV(e);for(var a=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,u;u=a.exec(r);)s=u;return s?s[1]:null}var uV=dR(sS);sS.push(function(e){var r=U5e(e);if(!r)return null;var t;if(G5e.test(r)){var i=r.slice(r.indexOf(",")+1);t=F5e(i,"base64").toString(),r=e}else r=oV(e,r),t=lV(r);return t?{url:r,map:t}:null});function cV(e){var r=hL[e.source];if(!r){var t=uV(e.source);t?(r=hL[e.source]={url:t.url,map:new w5e(t.map)},r.map.sourcesContent&&r.map.sources.forEach(function(a,s){var u=r.map.sourcesContent[s];if(u){var p=oV(r.url,a);qT[p]=u}})):r=hL[e.source]={url:null,map:null}}if(r&&r.map&&typeof r.map.originalPositionFor=="function"){var i=r.map.originalPositionFor(e);if(i.source!==null)return i.source=oV(r.url,i.source),i}return e}function Zce(e){var r=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(r){var t=cV({source:r[2],line:+r[3],column:r[4]-1});return"eval at "+r[1]+" ("+t.source+":"+t.line+":"+(t.column+1)+")"}return r=/^eval at ([^(]+) \((.+)\)$/.exec(e),r?"eval at "+r[1]+" ("+Zce(r[2])+")":e}function K5e(){var e,r="";if(this.isNative())r="native";else{e=this.getScriptNameOrSourceURL(),!e&&this.isEval()&&(r=this.getEvalOrigin(),r+=", "),e?r+=e:r+="<anonymous>";var t=this.getLineNumber();if(t!=null){r+=":"+t;var i=this.getColumnNumber();i&&(r+=":"+i)}}var a="",s=this.getFunctionName(),u=!0,p=this.isConstructor(),f=!(this.isToplevel()||p);if(f){var m=this.getTypeName();m==="[object Object]"&&(m="null");var _=this.getMethodName();s?(m&&s.indexOf(m)!=0&&(a+=m+"."),a+=s,_&&s.indexOf("."+_)!=s.length-_.length-1&&(a+=" [as "+_+"]")):a+=m+"."+(_||"<anonymous>")}else p?a+="new "+(s||"<anonymous>"):s?a+=s:(a+=r,u=!1);return u&&(a+=" ("+r+")"),a}function Qce(e){var r={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(t){r[t]=/^(?:is|get)/.test(t)?function(){return e[t].call(e)}:e[t]}),r.toString=K5e,r}function ede(e){if(e.isNative())return e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var t=e.getLineNumber(),i=e.getColumnNumber()-1,a=62;t===1&&i>a&&!sV()&&!e.isEval()&&(i-=a);var s=cV({source:r,line:t,column:i});e=Qce(e);var u=e.getFunctionName;return e.getFunctionName=function(){return s.name||u()},e.getFileName=function(){return s.source},e.getLineNumber=function(){return s.line},e.getColumnNumber=function(){return s.column+1},e.getScriptNameOrSourceURL=function(){return s.source},e}var p=e.isEval()&&e.getEvalOrigin();return p&&(p=Zce(p),e=Qce(e),e.getEvalOrigin=function(){return p}),e}function W5e(e,r){aV&&(qT={},hL={});var t=e.name||"Error",i=e.message||"",a=t+": "+i;return a+r.map(function(s){return`
3755
3755
  at `+ede(s)}).join("")}function rde(e){var r=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(r){var t=r[1],i=+r[2],a=+r[3],s=qT[t];if(!s&&Lh&&Lh.existsSync(t))try{s=Lh.readFileSync(t,"utf8")}catch{s=""}if(s){var u=s.split(/(?:\r\n|\r|\n)/)[i-1];if(u)return t+":"+i+`
3756
3756
  `+u+`
3757
3757
  `+new Array(a).join(" ")+"^"}}return null}function V5e(e){var r=rde(e);process.stderr._handle&&process.stderr._handle.setBlocking&&process.stderr._handle.setBlocking(!0),r&&(console.error(),console.error(r)),console.error(e.stack),process.exit(1)}function j5e(){var e=process.emit;process.emit=function(r){if(r==="uncaughtException"){var t=arguments[1]&&arguments[1].stack,i=this.listeners(r).length>0;if(t&&!i)return V5e(arguments[1])}return e.apply(this,arguments)}}var H5e=oS.slice(0),q5e=sS.slice(0);JT.wrapCallSite=ede;JT.getErrorSource=rde;JT.mapSourcePosition=cV;JT.retrieveSourceMap=uV;JT.install=function(e){if(e=e||{},e.environment&&(vL=e.environment,["node","browser","auto"].indexOf(vL)===-1))throw new Error("environment "+vL+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(oS.length=0),oS.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(sS.length=0),sS.unshift(e.retrieveSourceMap)),e.hookRequire&&!sV()){var r;try{r=require("module")}catch{}var t=r.prototype._compile;t.__sourceMapSupport||(r.prototype._compile=function(a,s){return qT[s]=a,hL[s]=void 0,t.call(this,a,s)},r.prototype._compile.__sourceMapSupport=!0)}if(aV||(aV="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),Xce||(Xce=!0,Error.prepareStackTrace=W5e),!Yce){var i="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;i&&B5e()&&(Yce=!0,j5e())}};JT.resetRetrieveHandlers=function(){oS.length=0,sS.length=0,oS=H5e.slice(0),sS=q5e.slice(0),uV=dR(sS),lV=dR(oS)}});var ide=pt((q_,EL)=>{"use strict";var zt=q_&&q_.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var i=0,a=r.length,s;i<a;i++)(s||!(i in r))&&(s||(s=Array.prototype.slice.call(r,0,i)),s[i]=r[i]);return e.concat(s||Array.prototype.slice.call(r))},Mn=q_&&q_.__assign||function(){return Mn=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Mn.apply(this,arguments)},nde=q_&&q_.__makeTemplateObject||function(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e},RD=q_&&q_.__generator||function(e,r){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,u;return u={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function p(m){return function(_){return f([m,_])}}function f(m){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,a&&(s=m[0]&2?a.return:m[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,m[1])).done)return s;switch(a=0,s&&(m=[m[0]&2,s.value]),m[0]){case 0:case 1:s=m;break;case 4:return t.label++,{value:m[1],done:!1};case 5:t.label++,a=m[1],m=[0];continue;case 7:m=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(m[0]===6||m[0]===2)){t=0;continue}if(m[0]===3&&(!s||m[1]>s[0]&&m[1]<s[3])){t.label=m[1];break}if(m[0]===6&&t.label<s[1]){t.label=s[1],s=m;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(m);break}s[2]&&t.ops.pop(),t.trys.pop();continue}m=r.call(e,t)}catch(_){m=[6,_],a=0}finally{i=s=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},fV=q_&&q_.__rest||function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)r.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]]);return t},zT=q_&&q_.__extends||function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function i(){this.constructor=r}r.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),hr;(function(e){function r(){var h={};return h.prev=h,{head:h,tail:h,size:0}}function t(h,b){return{key:h,value:b,next:void 0,prev:void 0}}function i(h,b){return h===b||h!==h&&b!==b}function a(h){var b=h.prev;if(!b||b===h)throw new Error("Illegal state");return b}function s(h){for(;h;){var b=!h.prev;if(h=h.next,!b)return h}}function u(h,b){for(var K=h.tail;K!==h.head;K=a(K))if(i(K.key,b))return K}function p(h,b,K){var C=u(h,b);if(C){C.value=K;return}var F=t(b,K);return F.prev=h.tail,h.tail.next=F,h.tail=F,h.size++,F}function f(h,b){for(var K=h.tail;K!==h.head;K=a(K)){if(K.prev===void 0)throw new Error("Illegal state");if(i(K.key,b)){if(K.next)K.next.prev=K.prev;else{if(h.tail!==K)throw new Error("Illegal state");h.tail=K.prev}return K.prev.next=K.next,K.next=K.prev,K.prev=void 0,h.size--,K}}}function m(h){for(var b=h.tail;b!==h.head;){var K=a(b);b.next=h.head,b.prev=void 0,b=K}h.head.next=void 0,h.tail=h.head,h.size=0}function _(h,b){for(var K=h.head;K;)K=s(K),K&&b(K.value,K.key)}function x(h,b){if(h)for(var K=h.next();!K.done;K=h.next())b(K.value)}function A(h,b){return{current:h.head,selector:b}}function O(h){return h.current=s(h.current),h.current?{value:h.selector(h.current.key,h.current.value),done:!1}:{value:void 0,done:!0}}var R;(function(h){function b(C){var F=function(){function N(q,I){this._data=A(q,I)}return N.prototype.next=function(){return O(this._data)},N}();return function(){function N(q){var I=this;this._mapData=r(),x(C(q),function(le){var fe=le[0],he=le[1];return I.set(fe,he)})}return Object.defineProperty(N.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),N.prototype.get=function(q){var I;return(I=u(this._mapData,q))===null||I===void 0?void 0:I.value},N.prototype.set=function(q,I){return p(this._mapData,q,I),this},N.prototype.has=function(q){return!!u(this._mapData,q)},N.prototype.delete=function(q){return!!f(this._mapData,q)},N.prototype.clear=function(){m(this._mapData)},N.prototype.keys=function(){return new F(this._mapData,function(q,I){return q})},N.prototype.values=function(){return new F(this._mapData,function(q,I){return I})},N.prototype.entries=function(){return new F(this._mapData,function(q,I){return[q,I]})},N.prototype.forEach=function(q){_(this._mapData,q)},N}()}h.createMapShim=b;function K(C){var F=function(){function N(q,I){this._data=A(q,I)}return N.prototype.next=function(){return O(this._data)},N}();return function(){function N(q){var I=this;this._mapData=r(),x(C(q),function(le){return I.add(le)})}return Object.defineProperty(N.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),N.prototype.add=function(q){return p(this._mapData,q,q),this},N.prototype.has=function(q){return!!u(this._mapData,q)},N.prototype.delete=function(q){return!!f(this._mapData,q)},N.prototype.clear=function(){m(this._mapData)},N.prototype.keys=function(){return new F(this._mapData,function(q,I){return q})},N.prototype.values=function(){return new F(this._mapData,function(q,I){return I})},N.prototype.entries=function(){return new F(this._mapData,function(q,I){return[q,I]})},N.prototype.forEach=function(q){_(this._mapData,q)},N}()}h.createSetShim=K})(R=e.ShimCollections||(e.ShimCollections={}))})(hr||(hr={}));var hr;(function(e){e.versionMajorMinor="4.8",e.version="4.8.2";var r;(function(a){a[a.LessThan=-1]="LessThan",a[a.EqualTo=0]="EqualTo",a[a.GreaterThan=1]="GreaterThan"})(r=e.Comparison||(e.Comparison={}));var t;(function(a){var s=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:void 0;function u(){var f=s?.Map;return typeof f<"u"&&"entries"in f.prototype&&new f([[0,0]]).size===1?f:void 0}a.tryGetNativeMap=u;function p(){var f=s?.Set;return typeof f<"u"&&"entries"in f.prototype&&new f([0]).size===1?f:void 0}a.tryGetNativeSet=p})(t||(t={})),e.Map=i("Map","tryGetNativeMap","createMapShim"),e.Set=i("Set","tryGetNativeSet","createSetShim");function i(a,s,u){var p,f=(p=t[s]())!==null&&p!==void 0?p:e.ShimCollections===null||e.ShimCollections===void 0?void 0:e.ShimCollections[u](e.getIterator);if(f)return f;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(a," implementation."))}})(hr||(hr={}));var hr;(function(e){function r(Be){if(Be){if(He(Be))return Wr(Be);if(Be instanceof e.Map)return Be.entries();if(Be instanceof e.Set)return Be.values();throw new Error("Iteration not supported.")}}e.getIterator=r,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set;function t(Be){return Be?Be.length:0}e.length=t;function i(Be,fr){if(Be)for(var br=0;br<Be.length;br++){var Fr=fr(Be[br],br);if(Fr)return Fr}}e.forEach=i;function a(Be,fr){if(Be)for(var br=Be.length-1;br>=0;br--){var Fr=fr(Be[br],br);if(Fr)return Fr}}e.forEachRight=a;function s(Be,fr){if(Be!==void 0)for(var br=0;br<Be.length;br++){var Fr=fr(Be[br],br);if(Fr!==void 0)return Fr}}e.firstDefined=s;function u(Be,fr){for(;;){var br=Be.next();if(br.done)return;var Fr=fr(br.value);if(Fr!==void 0)return Fr}}e.firstDefinedIterator=u;function p(Be,fr,br){var Fr=br;if(Be)for(var mt=Be.next(),an=0;!mt.done;mt=Be.next(),an++)Fr=fr(Fr,mt.value,an);return Fr}e.reduceLeftIterator=p;function f(Be,fr,br){var Fr=[];e.Debug.assertEqual(Be.length,fr.length);for(var mt=0;mt<Be.length;mt++)Fr.push(br(Be[mt],fr[mt],mt));return Fr}e.zipWith=f;function m(Be,fr){e.Debug.assertEqual(Be.length,fr.length);var br=0;return{next:function(){return br===Be.length?{value:void 0,done:!0}:(br++,{value:[Be[br-1],fr[br-1]],done:!1})}}}e.zipToIterator=m;function _(Be,fr){e.Debug.assert(Be.length===fr.length);for(var br=new e.Map,Fr=0;Fr<Be.length;++Fr)br.set(Be[Fr],fr[Fr]);return br}e.zipToMap=_;function x(Be,fr){if(Be.length<=1)return Be;for(var br=[],Fr=0,mt=Be.length;Fr<mt;Fr++)Fr&&br.push(fr),br.push(Be[Fr]);return br}e.intersperse=x;function A(Be,fr){if(Be){for(var br=0;br<Be.length;br++)if(!fr(Be[br],br))return!1}return!0}e.every=A;function O(Be,fr,br){if(Be!==void 0)for(var Fr=br??0;Fr<Be.length;Fr++){var mt=Be[Fr];if(fr(mt,Fr))return mt}}e.find=O;function R(Be,fr,br){if(Be!==void 0)for(var Fr=br??Be.length-1;Fr>=0;Fr--){var mt=Be[Fr];if(fr(mt,Fr))return mt}}e.findLast=R;function h(Be,fr,br){if(Be===void 0)return-1;for(var Fr=br??0;Fr<Be.length;Fr++)if(fr(Be[Fr],Fr))return Fr;return-1}e.findIndex=h;function b(Be,fr,br){if(Be===void 0)return-1;for(var Fr=br??Be.length-1;Fr>=0;Fr--)if(fr(Be[Fr],Fr))return Fr;return-1}e.findLastIndex=b;function K(Be,fr){for(var br=0;br<Be.length;br++){var Fr=fr(Be[br],br);if(Fr)return Fr}return e.Debug.fail()}e.findMap=K;function C(Be,fr,br){if(br===void 0&&(br=hn),Be)for(var Fr=0,mt=Be;Fr<mt.length;Fr++){var an=mt[Fr];if(br(an,fr))return!0}return!1}e.contains=C;function F(Be,fr,br){return br===void 0&&(br=hn),Be.length===fr.length&&Be.every(function(Fr,mt){return br(Fr,fr[mt])})}e.arraysEqual=F;function N(Be,fr,br){for(var Fr=br||0;Fr<Be.length;Fr++)if(C(fr,Be.charCodeAt(Fr)))return Fr;return-1}e.indexOfAnyCharCode=N;function q(Be,fr){var br=0;if(Be)for(var Fr=0;Fr<Be.length;Fr++){var mt=Be[Fr];fr(mt,Fr)&&br++}return br}e.countWhere=q;function I(Be,fr){if(Be){for(var br=Be.length,Fr=0;Fr<br&&fr(Be[Fr]);)Fr++;if(Fr<br){var mt=Be.slice(0,Fr);for(Fr++;Fr<br;){var an=Be[Fr];fr(an)&&mt.push(an),Fr++}return mt}}return Be}e.filter=I;function le(Be,fr){for(var br=0,Fr=0;Fr<Be.length;Fr++)fr(Be[Fr],Fr,Be)&&(Be[br]=Be[Fr],br++);Be.length=br}e.filterMutate=le;function fe(Be){Be.length=0}e.clear=fe;function he(Be,fr){var br;if(Be){br=[];for(var Fr=0;Fr<Be.length;Fr++)br.push(fr(Be[Fr],Fr))}return br}e.map=he;function re(Be,fr){return{next:function(){var br=Be.next();return br.done?br:{value:fr(br.value),done:!1}}}}e.mapIterator=re;function G(Be,fr){if(Be)for(var br=0;br<Be.length;br++){var Fr=Be[br],mt=fr(Fr,br);if(Fr!==mt){var an=Be.slice(0,br);for(an.push(mt),br++;br<Be.length;br++)an.push(fr(Be[br],br));return an}}return Be}e.sameMap=G;function Y(Be){for(var fr=[],br=0,Fr=Be;br<Fr.length;br++){var mt=Fr[br];mt&&(He(mt)?Le(fr,mt):fr.push(mt))}return fr}e.flatten=Y;function X(Be,fr){var br;if(Be)for(var Fr=0;Fr<Be.length;Fr++){var mt=fr(Be[Fr],Fr);mt&&(He(mt)?br=Le(br,mt):br=Ae(br,mt))}return br||e.emptyArray}e.flatMap=X;function P(Be,fr){var br=[];if(Be)for(var Fr=0;Fr<Be.length;Fr++){var mt=fr(Be[Fr],Fr);mt&&(He(mt)?Le(br,mt):br.push(mt))}return br}e.flatMapToMutable=P;function B(Be,fr){var br=Be.next();if(br.done)return e.emptyIterator;var Fr=mt(br.value);return{next:function(){for(;;){var an=Fr.next();if(!an.done)return an;var on=Be.next();if(on.done)return on;Fr=mt(on.value)}}};function mt(an){var on=fr(an);return on===void 0?e.emptyIterator:He(on)?Wr(on):on}}e.flatMapIterator=B;function ie(Be,fr){var br;if(Be)for(var Fr=0;Fr<Be.length;Fr++){var mt=Be[Fr],an=fr(mt,Fr);(br||mt!==an||He(an))&&(br||(br=Be.slice(0,Fr)),He(an)?Le(br,an):br.push(an))}return br||Be}e.sameFlatMap=ie;function $(Be,fr){for(var br=[],Fr=0;Fr<Be.length;Fr++){var mt=fr(Be[Fr],Fr);if(mt===void 0)return;br.push(mt)}return br}e.mapAllOrFail=$;function V(Be,fr){var br=[];if(Be)for(var Fr=0;Fr<Be.length;Fr++){var mt=fr(Be[Fr],Fr);mt!==void 0&&br.push(mt)}return br}e.mapDefined=V;function j(Be,fr){return{next:function(){for(;;){var br=Be.next();if(br.done)return br;var Fr=fr(br.value);if(Fr!==void 0)return{value:Fr,done:!1}}}}}e.mapDefinedIterator=j;function ne(Be,fr){if(!!Be){var br=new e.Map;return Be.forEach(function(Fr,mt){var an=fr(mt,Fr);if(an!==void 0){var on=an[0],En=an[1];on!==void 0&&En!==void 0&&br.set(on,En)}}),br}}e.mapDefinedEntries=ne;function Z(Be,fr){if(Be){var br=new e.Set;return Be.forEach(function(Fr){var mt=fr(Fr);mt!==void 0&&br.add(mt)}),br}}e.mapDefinedValues=Z;function se(Be,fr,br){if(Be.has(fr))return Be.get(fr);var Fr=br();return Be.set(fr,Fr),Fr}e.getOrUpdate=se;function ue(Be,fr){return Be.has(fr)?!1:(Be.add(fr),!0)}e.tryAddToSet=ue,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function k(Be){var fr=!1;return{next:function(){var br=fr;return fr=!0,br?{value:void 0,done:!0}:{value:Be,done:!1}}}}e.singleIterator=k;function W(Be,fr,br){var Fr;if(Be){Fr=[];for(var mt=Be.length,an=void 0,on=void 0,En=0,fi=0;En<mt;){for(;fi<mt;){var Ri=Be[fi];if(on=fr(Ri,fi),fi===0)an=on;else if(on!==an)break;fi++}if(En<fi){var oa=br(Be.slice(En,fi),an,En,fi);oa&&Fr.push(oa),En=fi}an=on,fi++}}return Fr}e.spanMap=W;function T(Be,fr){if(!!Be){var br=new e.Map;return Be.forEach(function(Fr,mt){var an=fr(mt,Fr),on=an[0],En=an[1];br.set(on,En)}),br}}e.mapEntries=T;function L(Be,fr){if(Be)if(fr)for(var br=0,Fr=Be;br<Fr.length;br++){var mt=Fr[br];if(fr(mt))return!0}else return Be.length>0;return!1}e.some=L;function J(Be,fr,br){for(var Fr,mt=0;mt<Be.length;mt++)fr(Be[mt])?Fr=Fr===void 0?mt:Fr:Fr!==void 0&&(br(Fr,mt),Fr=void 0);Fr!==void 0&&br(Fr,Be.length)}e.getRangesWhere=J;function v(Be,fr){return L(fr)?L(Be)?zt(zt([],Be,!0),fr,!0):fr:Be}e.concatenate=v;function U(Be,fr){return fr}function H(Be){return Be.map(U)}e.indicesOf=H;function Q(Be,fr,br){var Fr=H(Be);Xe(Be,Fr,br);for(var mt=Be[Fr[0]],an=[Fr[0]],on=1;on<Fr.length;on++){var En=Fr[on],fi=Be[En];fr(mt,fi)||(an.push(En),mt=fi)}return an.sort(),an.map(function(Ri){return Be[Ri]})}function te(Be,fr){for(var br=[],Fr=0,mt=Be;Fr<mt.length;Fr++){var an=mt[Fr];ke(br,an,fr)}return br}function be(Be,fr,br){return Be.length===0?[]:Be.length===1?Be.slice():br?Q(Be,fr,br):te(Be,fr)}e.deduplicate=be;function ye(Be,fr){if(Be.length===0)return e.emptyArray;for(var br=Be[0],Fr=[br],mt=1;mt<Be.length;mt++){var an=Be[mt];switch(fr(an,br)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}Fr.push(br=an)}return Fr}function xe(){return[]}e.createSortedArray=xe;function Ve(Be,fr,br,Fr){if(Be.length===0){Be.push(fr);return}var mt=Qe(Be,fr,bt,br);mt<0?Be.splice(~mt,0,fr):Fr&&Be.splice(mt,0,fr)}e.insertSorted=Ve;function Ge(Be,fr,br){return ye(dr(Be,fr),br||fr||Jn)}e.sortAndDeduplicate=Ge;function we(Be,fr){if(Be.length<2)return!0;for(var br=Be[0],Fr=0,mt=Be.slice(1);Fr<mt.length;Fr++){var an=mt[Fr];if(fr(br,an)===1)return!1;br=an}return!0}e.arrayIsSorted=we;function Ne(Be,fr,br){if(br===void 0&&(br=hn),!Be||!fr)return Be===fr;if(Be.length!==fr.length)return!1;for(var Fr=0;Fr<Be.length;Fr++)if(!br(Be[Fr],fr[Fr],Fr))return!1;return!0}e.arrayIsEqualTo=Ne;function Je(Be){var fr;if(Be)for(var br=0;br<Be.length;br++){var Fr=Be[br];(fr||!Fr)&&(fr||(fr=Be.slice(0,br)),Fr&&fr.push(Fr))}return fr||Be}e.compact=Je;function Ie(Be,fr,br){if(!fr||!Be||fr.length===0||Be.length===0)return fr;var Fr=[];e:for(var mt=0,an=0;an<fr.length;an++){an>0&&e.Debug.assertGreaterThanOrEqual(br(fr[an],fr[an-1]),0);r:for(var on=mt;mt<Be.length;mt++)switch(mt>on&&e.Debug.assertGreaterThanOrEqual(br(Be[mt],Be[mt-1]),0),br(fr[an],Be[mt])){case-1:Fr.push(fr[an]);continue e;case 0:continue e;case 1:continue r}}return Fr}e.relativeComplement=Ie;function me(Be,fr){for(var br=0,Fr=0,mt=Be;Fr<mt.length;Fr++){var an=mt[Fr];br+=an[fr]}return br}e.sum=me;function Ae(Be,fr){return fr===void 0?Be:Be===void 0?[fr]:(Be.push(fr),Be)}e.append=Ae;function _e(Be,fr){return Be===void 0?fr:fr===void 0?Be:He(Be)?He(fr)?v(Be,fr):Ae(Be,fr):He(fr)?Ae(fr,Be):[Be,fr]}e.combine=_e;function ae(Be,fr){return fr<0?Be.length+fr:fr}function Le(Be,fr,br,Fr){if(fr===void 0||fr.length===0)return Be;if(Be===void 0)return fr.slice(br,Fr);br=br===void 0?0:ae(fr,br),Fr=Fr===void 0?fr.length:ae(fr,Fr);for(var mt=br;mt<Fr&&mt<fr.length;mt++)fr[mt]!==void 0&&Be.push(fr[mt]);return Be}e.addRange=Le;function ke(Be,fr,br){return C(Be,fr,br)?!1:(Be.push(fr),!0)}e.pushIfUnique=ke;function Ue(Be,fr,br){return Be?(ke(Be,fr,br),Be):[fr]}e.appendIfUnique=Ue;function Xe(Be,fr,br){fr.sort(function(Fr,mt){return br(Be[Fr],Be[mt])||Et(Fr,mt)})}function dr(Be,fr){return Be.length===0?Be:Be.slice().sort(fr)}e.sort=dr;function Wr(Be){var fr=0;return{next:function(){return fr===Be.length?{value:void 0,done:!0}:(fr++,{value:Be[fr-1],done:!1})}}}e.arrayIterator=Wr;function kr(Be){var fr=Be.length;return{next:function(){return fr===0?{value:void 0,done:!0}:(fr--,{value:Be[fr],done:!1})}}}e.arrayReverseIterator=kr;function Ce(Be,fr){var br=H(Be);return Xe(Be,br,fr),br.map(function(Fr){return Be[Fr]})}e.stableSort=Ce;function d(Be,fr,br,Fr){for(;br<Fr;){if(Be[br]!==fr[br])return!1;br++}return!0}e.rangeEquals=d;function Jr(Be,fr){if(Be&&(fr=ae(Be,fr),fr<Be.length))return Be[fr]}e.elementAt=Jr;function Yr(Be){return Be===void 0||Be.length===0?void 0:Be[0]}e.firstOrUndefined=Yr;function Br(Be){return e.Debug.assert(Be.length!==0),Be[0]}e.first=Br;function Ir(Be){return Be===void 0||Be.length===0?void 0:Be[Be.length-1]}e.lastOrUndefined=Ir;function ze(Be){return e.Debug.assert(Be.length!==0),Be[Be.length-1]}e.last=ze;function mr(Be){return Be&&Be.length===1?Be[0]:void 0}e.singleOrUndefined=mr;function pr(Be){return Be&&Be.length===1?Be[0]:Be}e.singleOrMany=pr;function Er(Be,fr,br){var Fr=Be.slice(0);return Fr[fr]=br,Fr}e.replaceElement=Er;function Qe(Be,fr,br,Fr,mt){return Rr(Be,br(fr),br,Fr,mt)}e.binarySearch=Qe;function Rr(Be,fr,br,Fr,mt){if(!L(Be))return-1;for(var an=mt||0,on=Be.length-1;an<=on;){var En=an+(on-an>>1),fi=br(Be[En],En);switch(Fr(fi,fr)){case-1:an=En+1;break;case 0:return En;case 1:on=En-1;break}}return~an}e.binarySearchKey=Rr;function pe(Be,fr,br,Fr,mt){if(Be&&Be.length>0){var an=Be.length;if(an>0){var on=Fr===void 0||Fr<0?0:Fr,En=mt===void 0||on+mt>an-1?an-1:on+mt,fi=void 0;for(arguments.length<=2?(fi=Be[on],on++):fi=br;on<=En;)fi=fr(fi,Be[on],on),on++;return fi}}return br}e.reduceLeft=pe;var Me=Object.prototype.hasOwnProperty;function z(Be,fr){return Me.call(Be,fr)}e.hasProperty=z;function Pe(Be,fr){return Me.call(Be,fr)?Be[fr]:void 0}e.getProperty=Pe;function Ze(Be){var fr=[];for(var br in Be)Me.call(Be,br)&&fr.push(br);return fr}e.getOwnKeys=Ze;function gr(Be){var fr=[];do for(var br=Object.getOwnPropertyNames(Be),Fr=0,mt=br;Fr<mt.length;Fr++){var an=mt[Fr];ke(fr,an)}while(Be=Object.getPrototypeOf(Be));return fr}e.getAllKeys=gr;function jr(Be){var fr=[];for(var br in Be)Me.call(Be,br)&&fr.push(Be[br]);return fr}e.getOwnValues=jr;var Qr=Object.entries||function(Be){for(var fr=Ze(Be),br=Array(fr.length),Fr=0;Fr<fr.length;Fr++)br[Fr]=[fr[Fr],Be[fr[Fr]]];return br};function Or(Be){return Be?Qr(Be):[]}e.getEntries=Or;function it(Be,fr){for(var br=new Array(Be),Fr=0;Fr<Be;Fr++)br[Fr]=fr(Fr);return br}e.arrayOf=it;function Tt(Be,fr){for(var br=[],Fr=Be.next();!Fr.done;Fr=Be.next())br.push(fr?fr(Fr.value):Fr.value);return br}e.arrayFrom=Tt;function Nt(Be){for(var fr=[],br=1;br<arguments.length;br++)fr[br-1]=arguments[br];for(var Fr=0,mt=fr;Fr<mt.length;Fr++){var an=mt[Fr];if(an!==void 0)for(var on in an)z(an,on)&&(Be[on]=an[on])}return Be}e.assign=Nt;function Ye(Be,fr,br){if(br===void 0&&(br=hn),Be===fr)return!0;if(!Be||!fr)return!1;for(var Fr in Be)if(Me.call(Be,Fr)&&(!Me.call(fr,Fr)||!br(Be[Fr],fr[Fr])))return!1;for(var Fr in fr)if(Me.call(fr,Fr)&&!Me.call(Be,Fr))return!1;return!0}e.equalOwnProperties=Ye;function lr(Be,fr,br){br===void 0&&(br=bt);for(var Fr=new e.Map,mt=0,an=Be;mt<an.length;mt++){var on=an[mt],En=fr(on);En!==void 0&&Fr.set(En,br(on))}return Fr}e.arrayToMap=lr;function Kr(Be,fr,br){br===void 0&&(br=bt);for(var Fr=[],mt=0,an=Be;mt<an.length;mt++){var on=an[mt];Fr[fr(on)]=br(on)}return Fr}e.arrayToNumericMap=Kr;function ut(Be,fr,br){br===void 0&&(br=bt);for(var Fr=je(),mt=0,an=Be;mt<an.length;mt++){var on=an[mt];Fr.add(fr(on),br(on))}return Fr}e.arrayToMultiMap=ut;function kt(Be,fr,br){return br===void 0&&(br=bt),Tt(ut(Be,fr).values(),br)}e.group=kt;function It(Be){var fr={};for(var br in Be)Me.call(Be,br)&&(fr[br]=Be[br]);return fr}e.clone=It;function ln(Be,fr){var br={};for(var Fr in fr)Me.call(fr,Fr)&&(br[Fr]=fr[Fr]);for(var Fr in Be)Me.call(Be,Fr)&&(br[Fr]=Be[Fr]);return br}e.extend=ln;function Pr(Be,fr){for(var br in fr)Me.call(fr,br)&&(Be[br]=fr[br])}e.copyProperties=Pr;function wr(Be,fr){return fr?fr.bind(Be):void 0}e.maybeBind=wr;function je(){var Be=new e.Map;return Be.add=Ee,Be.remove=er,Be}e.createMultiMap=je;function Ee(Be,fr){var br=this.get(Be);return br?br.push(fr):this.set(Be,br=[fr]),br}function er(Be,fr){var br=this.get(Be);br&&(go(br,fr),br.length||this.delete(Be))}function ar(){return je()}e.createUnderscoreEscapedMultiMap=ar;function xr(Be){var fr=Be?.slice()||[],br=0;function Fr(){return br===fr.length}function mt(){for(var on=[],En=0;En<arguments.length;En++)on[En]=arguments[En];fr.push.apply(fr,on)}function an(){if(Fr())throw new Error("Queue is empty");var on=fr[br];if(fr[br]=void 0,br++,br>100&&br>fr.length>>1){var En=fr.length-br;fr.copyWithin(0,br),fr.length=En,br=0}return on}return{enqueue:mt,dequeue:an,isEmpty:Fr}}e.createQueue=xr;function Re(Be,fr){var br=new e.Map,Fr=0;function mt(){var on=br.values(),En;return{next:function(){for(;;)if(En){var fi=En.next();if(!fi.done)return{value:fi.value};En=void 0}else{var fi=on.next();if(fi.done)return{value:void 0,done:!0};if(!He(fi.value))return{value:fi.value};En=Wr(fi.value)}}}}var an={has:function(on){var En=Be(on);if(!br.has(En))return!1;var fi=br.get(En);if(!He(fi))return fr(fi,on);for(var Ri=0,oa=fi;Ri<oa.length;Ri++){var Sa=oa[Ri];if(fr(Sa,on))return!0}return!1},add:function(on){var En=Be(on);if(br.has(En)){var fi=br.get(En);if(He(fi))C(fi,on,fr)||(fi.push(on),Fr++);else{var Ri=fi;fr(Ri,on)||(br.set(En,[Ri,on]),Fr++)}}else br.set(En,on),Fr++;return this},delete:function(on){var En=Be(on);if(!br.has(En))return!1;var fi=br.get(En);if(He(fi)){for(var Ri=0;Ri<fi.length;Ri++)if(fr(fi[Ri],on))return fi.length===1?br.delete(En):fi.length===2?br.set(En,fi[1-Ri]):ia(fi,Ri),Fr--,!0}else{var oa=fi;if(fr(oa,on))return br.delete(En),Fr--,!0}return!1},clear:function(){br.clear(),Fr=0},get size(){return Fr},forEach:function(on){for(var En=0,fi=Tt(br.values());En<fi.length;En++){var Ri=fi[En];if(He(Ri))for(var oa=0,Sa=Ri;oa<Sa.length;oa++){var to=Sa[oa];on(to,to)}else{var to=Ri;on(to,to)}}},keys:function(){return mt()},values:function(){return mt()},entries:function(){var on=mt();return{next:function(){var En=on.next();return En.done?En:{value:[En.value,En.value]}}}}};return an}e.createSet=Re;function He(Be){return Array.isArray?Array.isArray(Be):Be instanceof Array}e.isArray=He;function Lr(Be){return He(Be)?Be:[Be]}e.toArray=Lr;function Se(Be){return typeof Be=="string"}e.isString=Se;function We(Be){return typeof Be=="number"}e.isNumber=We;function ur(Be,fr){return Be!==void 0&&fr(Be)?Be:void 0}e.tryCast=ur;function ge(Be,fr){return Be!==void 0&&fr(Be)?Be:e.Debug.fail("Invalid cast. The supplied value ".concat(Be," did not pass the test '").concat(e.Debug.getFunctionName(fr),"'."))}e.cast=ge;function _r(Be){}e.noop=_r,e.noopPush={push:_r,length:0};function Ur(){return!1}e.returnFalse=Ur;function Dr(){return!0}e.returnTrue=Dr;function ft(){}e.returnUndefined=ft;function bt(Be){return Be}e.identity=bt;function Jt(Be){return Be.toLowerCase()}e.toLowerCase=Jt;var qt=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function _t(Be){return qt.test(Be)?Be.replace(qt,Jt):Be}e.toFileNameLowerCase=_t;function Rt(){throw new Error("Not implemented")}e.notImplemented=Rt;function yn(Be){var fr;return function(){return Be&&(fr=Be(),Be=void 0),fr}}e.memoize=yn;function kn(Be){var fr=new e.Map;return function(br){var Fr="".concat(typeof br,":").concat(br),mt=fr.get(Fr);return mt===void 0&&!fr.has(Fr)&&(mt=Be(br),fr.set(Fr,mt)),mt}}e.memoizeOne=kn;function xn(Be,fr,br,Fr,mt){if(mt){for(var an=[],on=0;on<arguments.length;on++)an[on]=arguments[on];return function(En){return pe(an,function(fi,Ri){return Ri(fi)},En)}}else return Fr?function(En){return Fr(br(fr(Be(En))))}:br?function(En){return br(fr(Be(En)))}:fr?function(En){return fr(Be(En))}:Be?function(En){return Be(En)}:function(En){return En}}e.compose=xn;var un;(function(Be){Be[Be.None=0]="None",Be[Be.Normal=1]="Normal",Be[Be.Aggressive=2]="Aggressive",Be[Be.VeryAggressive=3]="VeryAggressive"})(un=e.AssertionLevel||(e.AssertionLevel={}));function hn(Be,fr){return Be===fr}e.equateValues=hn;function _n(Be,fr){return Be===fr||Be!==void 0&&fr!==void 0&&Be.toUpperCase()===fr.toUpperCase()}e.equateStringsCaseInsensitive=_n;function Wt(Be,fr){return hn(Be,fr)}e.equateStringsCaseSensitive=Wt;function Mt(Be,fr){return Be===fr?0:Be===void 0?-1:fr===void 0?1:Be<fr?-1:1}function Et(Be,fr){return Mt(Be,fr)}e.compareValues=Et;function ot(Be,fr){return Et(Be?.start,fr?.start)||Et(Be?.length,fr?.length)}e.compareTextSpans=ot;function ri(Be,fr,br){return br(Be,fr)===-1?Be:fr}e.min=ri;function Pn(Be,fr){return Be===fr?0:Be===void 0?-1:fr===void 0?1:(Be=Be.toUpperCase(),fr=fr.toUpperCase(),Be<fr?-1:Be>fr?1:0)}e.compareStringsCaseInsensitive=Pn;function Jn(Be,fr){return Mt(Be,fr)}e.compareStringsCaseSensitive=Jn;function Pt(Be){return Be?Pn:Jn}e.getStringComparer=Pt;var Ft=function(){var Be,fr,br=En();return fi;function Fr(Ri,oa,Sa){if(Ri===oa)return 0;if(Ri===void 0)return-1;if(oa===void 0)return 1;var to=Sa(Ri,oa);return to<0?-1:to>0?1:0}function mt(Ri){var oa=new Intl.Collator(Ri,{usage:"sort",sensitivity:"variant"}).compare;return function(Sa,to){return Fr(Sa,to,oa)}}function an(Ri){if(Ri!==void 0)return on();return function(Sa,to){return Fr(Sa,to,oa)};function oa(Sa,to){return Sa.localeCompare(to)}}function on(){return function(Sa,to){return Fr(Sa,to,Ri)};function Ri(Sa,to){return oa(Sa.toUpperCase(),to.toUpperCase())||oa(Sa,to)}function oa(Sa,to){return Sa<to?-1:Sa>to?1:0}}function En(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?mt:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?an:on}function fi(Ri){return Ri===void 0?Be||(Be=br(Ri)):Ri==="en-US"?fr||(fr=br(Ri)):br(Ri)}}(),Gt,nn;function qe(){return nn}e.getUILocale=qe;function tt(Be){nn!==Be&&(nn=Be,Gt=void 0)}e.setUILocale=tt;function Vt(Be,fr){var br=Gt||(Gt=Ft(nn));return br(Be,fr)}e.compareStringsCaseSensitiveUI=Vt;function Gn(Be,fr,br,Fr){return Be===fr?0:Be===void 0?-1:fr===void 0?1:Fr(Be[br],fr[br])}e.compareProperties=Gn;function si(Be,fr){return Et(Be?1:0,fr?1:0)}e.compareBooleans=si;function xi(Be,fr,br){for(var Fr=Math.max(2,Math.floor(Be.length*.34)),mt=Math.floor(Be.length*.4)+1,an,on=0,En=fr;on<En.length;on++){var fi=En[on],Ri=br(fi);if(Ri!==void 0&&Math.abs(Ri.length-Be.length)<=Fr){if(Ri===Be||Ri.length<3&&Ri.toLowerCase()!==Be.toLowerCase())continue;var oa=Pi(Be,Ri,mt-.1);if(oa===void 0)continue;e.Debug.assert(oa<mt),mt=oa,an=fi}}return an}e.getSpellingSuggestion=xi;function Pi(Be,fr,br){for(var Fr=new Array(fr.length+1),mt=new Array(fr.length+1),an=br+.01,on=0;on<=fr.length;on++)Fr[on]=on;for(var on=1;on<=Be.length;on++){var En=Be.charCodeAt(on-1),fi=Math.ceil(on>br?on-br:1),Ri=Math.floor(fr.length>br+on?br+on:fr.length);mt[0]=on;for(var oa=on,Sa=1;Sa<fi;Sa++)mt[Sa]=an;for(var Sa=fi;Sa<=Ri;Sa++){var to=Be[on-1].toLowerCase()===fr[Sa-1].toLowerCase()?Fr[Sa-1]+.1:Fr[Sa-1]+2,is=En===fr.charCodeAt(Sa-1)?Fr[Sa-1]:Math.min(Fr[Sa]+1,mt[Sa-1]+1,to);mt[Sa]=is,oa=Math.min(oa,is)}for(var Sa=Ri+1;Sa<=fr.length;Sa++)mt[Sa]=an;if(oa>br)return;var Ks=Fr;Fr=mt,mt=Ks}var Ws=Fr[fr.length];return Ws>br?void 0:Ws}function qn(Be,fr){var br=Be.length-fr.length;return br>=0&&Be.indexOf(fr,br)===br}e.endsWith=qn;function la(Be,fr){return qn(Be,fr)?Be.slice(0,Be.length-fr.length):Be}e.removeSuffix=la;function Zn(Be,fr){return qn(Be,fr)?Be.slice(0,Be.length-fr.length):void 0}e.tryRemoveSuffix=Zn;function Wi(Be,fr){return Be.indexOf(fr)!==-1}e.stringContains=Wi;function Bt(Be){for(var fr=Be.length,br=fr-1;br>0;br--){var Fr=Be.charCodeAt(br);if(Fr>=48&&Fr<=57)do--br,Fr=Be.charCodeAt(br);while(br>0&&Fr>=48&&Fr<=57);else if(br>4&&(Fr===110||Fr===78)){if(--br,Fr=Be.charCodeAt(br),Fr!==105&&Fr!==73||(--br,Fr=Be.charCodeAt(br),Fr!==109&&Fr!==77))break;--br,Fr=Be.charCodeAt(br)}else break;if(Fr!==45&&Fr!==46)break;fr=br}return fr===Be.length?Be:Be.slice(0,fr)}e.removeMinAndVersionNumbers=Bt;function ao(Be,fr){for(var br=0;br<Be.length;br++)if(Be[br]===fr)return Ja(Be,br),!0;return!1}e.orderedRemoveItem=ao;function Ja(Be,fr){for(var br=fr;br<Be.length-1;br++)Be[br]=Be[br+1];Be.pop()}e.orderedRemoveItemAt=Ja;function ia(Be,fr){Be[fr]=Be[Be.length-1],Be.pop()}e.unorderedRemoveItemAt=ia;function go(Be,fr){return wa(Be,function(br){return br===fr})}e.unorderedRemoveItem=go;function wa(Be,fr){for(var br=0;br<Be.length;br++)if(fr(Be[br]))return ia(Be,br),!0;return!1}function Ya(Be){return Be?bt:_t}e.createGetCanonicalFileName=Ya;function ki(Be){var fr=Be.prefix,br=Be.suffix;return"".concat(fr,"*").concat(br)}e.patternText=ki;function Vi(Be,fr){return e.Debug.assert(hs(Be,fr)),fr.substring(Be.prefix.length,fr.length-Be.suffix.length)}e.matchedText=Vi;function Wa(Be,fr,br){for(var Fr,mt=-1,an=0,on=Be;an<on.length;an++){var En=on[an],fi=fr(En);hs(fi,br)&&fi.prefix.length>mt&&(mt=fi.prefix.length,Fr=En)}return Fr}e.findBestPatternMatch=Wa;function fo(Be,fr){return Be.lastIndexOf(fr,0)===0}e.startsWith=fo;function Ho(Be,fr){return fo(Be,fr)?Be.substr(fr.length):Be}e.removePrefix=Ho;function xs(Be,fr,br){return br===void 0&&(br=bt),fo(br(Be),br(fr))?Be.substring(fr.length):void 0}e.tryRemovePrefix=xs;function hs(Be,fr){var br=Be.prefix,Fr=Be.suffix;return fr.length>=br.length+Fr.length&&fo(fr,br)&&qn(fr,Fr)}e.isPatternMatch=hs;function es(Be,fr){return function(br){return Be(br)&&fr(br)}}e.and=es;function Ps(){for(var Be=[],fr=0;fr<arguments.length;fr++)Be[fr]=arguments[fr];return function(){for(var br=[],Fr=0;Fr<arguments.length;Fr++)br[Fr]=arguments[Fr];for(var mt,an=0,on=Be;an<on.length;an++){var En=on[an];if(mt=En.apply(void 0,br),mt)return mt}return mt}}e.or=Ps;function Es(Be){return function(){for(var fr=[],br=0;br<arguments.length;br++)fr[br]=arguments[br];return!Be.apply(void 0,fr)}}e.not=Es;function Js(Be){}e.assertType=Js;function Nr(Be){return Be===void 0?void 0:[Be]}e.singleElementArray=Nr;function Dt(Be,fr,br,Fr,mt,an){an=an||_r;for(var on=0,En=0,fi=Be.length,Ri=fr.length,oa=!1;on<fi&&En<Ri;){var Sa=Be[on],to=fr[En],is=br(Sa,to);is===-1?(Fr(Sa),on++,oa=!0):is===1?(mt(to),En++,oa=!0):(an(to,Sa),on++,En++)}for(;on<fi;)Fr(Be[on++]),oa=!0;for(;En<Ri;)mt(fr[En++]),oa=!0;return oa}e.enumerateInsertsAndDeletes=Dt;function fn(Be,fr){for(var br=Array(Be),Fr=0;Fr<Be;Fr++)br[Fr]=fr(Fr);return br}e.fill=fn;function mi(Be){var fr=[];return Na(Be,fr,void 0,0),fr}e.cartesianProduct=mi;function Na(Be,fr,br,Fr){for(var mt=0,an=Be[Fr];mt<an.length;mt++){var on=an[mt],En=void 0;br?(En=br.slice(),En.push(on)):En=[on],Fr===Be.length-1?fr.push(En):Na(Be,fr,En,Fr+1)}}function oo(Be,fr,br){return br===void 0&&(br=" "),fr<=Be.length?Be:br.repeat(fr-Be.length)+Be}e.padLeft=oo;function rr(Be,fr,br){return br===void 0&&(br=" "),fr<=Be.length?Be:Be+br.repeat(fr-Be.length)}e.padRight=rr;function et(Be,fr){for(var br=Be.length,Fr=0;Fr<br&&fr(Be[Fr]);)Fr++;return Be.slice(0,Fr)}e.takeWhile=et,e.trimString=String.prototype.trim?function(Be){return Be.trim()}:function(Be){return e.trimStringEnd(e.trimStringStart(Be))},e.trimStringEnd=String.prototype.trimEnd?function(Be){return Be.trimEnd()}:Ct,e.trimStringStart=String.prototype.trimStart?function(Be){return Be.trimStart()}:function(Be){return Be.replace(/^\s+/g,"")};function Ct(Be){for(var fr=Be.length-1;fr>=0&&e.isWhiteSpaceLike(Be.charCodeAt(fr));)fr--;return Be.slice(0,fr+1)}})(hr||(hr={}));var hr;(function(e){var r;(function(i){i[i.Off=0]="Off",i[i.Error=1]="Error",i[i.Warning=2]="Warning",i[i.Info=3]="Info",i[i.Verbose=4]="Verbose"})(r=e.LogLevel||(e.LogLevel={}));var t;(function(i){var a,s=0;i.currentLogLevel=r.Warning,i.isDebugging=!1,i.enableDeprecationWarnings=!0;function u(){return a??(a=new e.Version(e.version))}i.getTypeScriptVersion=u;function p(Ir){return i.currentLogLevel<=Ir}i.shouldLog=p;function f(Ir,ze){i.loggingHost&&p(Ir)&&i.loggingHost.log(Ir,ze)}function m(Ir){f(r.Info,Ir)}i.log=m,function(Ir){function ze(Qe){f(r.Error,Qe)}Ir.error=ze;function mr(Qe){f(r.Warning,Qe)}Ir.warn=mr;function pr(Qe){f(r.Info,Qe)}Ir.log=pr;function Er(Qe){f(r.Verbose,Qe)}Ir.trace=Er}(m=i.log||(i.log={}));var _={};function x(){return s}i.getAssertionLevel=x;function A(Ir){var ze=s;if(s=Ir,Ir>ze)for(var mr=0,pr=e.getOwnKeys(_);mr<pr.length;mr++){var Er=pr[mr],Qe=_[Er];Qe!==void 0&&i[Er]!==Qe.assertion&&Ir>=Qe.level&&(i[Er]=Qe,_[Er]=void 0)}}i.setAssertionLevel=A;function O(Ir){return s>=Ir}i.shouldAssert=O;function R(Ir,ze){return O(Ir)?!0:(_[ze]={level:Ir,assertion:i[ze]},i[ze]=e.noop,!1)}function h(Ir,ze){debugger;var mr=new Error(Ir?"Debug Failure. ".concat(Ir):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(mr,ze||h),mr}i.fail=h;function b(Ir,ze,mr){return h("".concat(ze||"Unexpected node.",`\r
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publisher": "zenstack",
4
4
  "displayName": "ZenStack Language Tools",
5
5
  "description": "A toolkit for modeling data and access policies in full-stack development with Next.js and Typescript",
6
- "version": "0.3.13",
6
+ "version": "0.3.16",
7
7
  "author": {
8
8
  "name": "ZenStack Team"
9
9
  },
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "main": "./bundle/extension.js",
67
67
  "dependencies": {
68
- "@zenstackhq/runtime": "0.3.13",
68
+ "@zenstackhq/runtime": "0.3.16",
69
69
  "async-exit-hook": "^2.0.1",
70
70
  "change-case": "^4.1.2",
71
71
  "chevrotain": "^9.1.0",