diff --git a/static/assets/scripts/index.js b/static/assets/scripts/index.js index ee7eadbe2..4b089091b 100644 --- a/static/assets/scripts/index.js +++ b/static/assets/scripts/index.js @@ -1,5 +1,5 @@ window.addEventListener('load', () => { - navigator.serviceWorker.register('../sw.js?v=1', { + navigator.serviceWorker.register('../sw.js?v=2', { scope: '/a/', }) }) diff --git a/static/assets/scripts/main.js b/static/assets/scripts/main.js index 87ed01e42..50fd35c47 100644 --- a/static/assets/scripts/main.js +++ b/static/assets/scripts/main.js @@ -23,18 +23,6 @@ document.addEventListener('DOMContentLoaded', function () { } } }) -// UA Detection -const isiPhone = /iPhone/i.test(navigator.userAgent) -const isiPad = /iPad/i.test(navigator.userAgent) - -if (isiPhone || isiPad) { - if (typeof localStorage !== 'undefined') { - localStorage.setItem('dy', 'auto') - } else { - console.error('localStorage is not available.') - } -} - // Themes var themeid = localStorage.getItem('theme') themeEle = document.createElement('link') diff --git a/static/dy/client.js b/static/dy/client.js index 67980d86d..4c462e838 100644 --- a/static/dy/client.js +++ b/static/dy/client.js @@ -19,10 +19,10 @@ The document has moved `).replace(/<(script|link)\b[^>]*>/g,(n,a)=>n.replace(/\snonce\s*=\s*"[^"]*"/,s=>s.replace("nonce","nononce")).replace(/\sintegrity\s*=\s*"[^"]*"/,s=>s.replace("integrity","nointegrity"))))}};var Fe=class{constructor(t){this.ctx=t.ctx}rewrite(t,i,r={}){return t&&t.toString().replace(/(?:@import\s?|url\(?)['"]?(.*?)['")]/gmi,(...n)=>{try{return n[0].replace(n[3],this.ctx.url.encode(n[3],i))}catch{return n[0]}})}};function fi(e,t){if(typeof e!="object"||!t)return;i(e,null,t);function i(r,n,a){if(!(typeof r!="object"||!a)){r.parent=n,a(r,n,a);for(let s in r)s!=="parent"&&(Array.isArray(r[s])?r[s].forEach(o=>{o&&i(o,r,a)}):r[s]&&i(r[s],r,a));typeof r.iterateEnd=="function"&&r.iterateEnd()}}}function di(e,t={},i,r){var n=this.ctx.modules.acorn.parse(e.toString(),{sourceType:t.module?"module":"script",allowImportExportEverywhere:!0,allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,ecmaVersion:"latest",preserveParens:!1,loose:!0,allowReserved:!0});return this.iterate(n,(a,s=null)=>{this.emit(a,a.type,s,i,r,t)}),e=this.ctx.modules.estree.generate(n),e}function mi(e,t={}){if(typeof e.name!="string")return!1;if(e.__dynamic!==!0){if(!["parent","top","postMessage","opener","window","self","globalThis","parent","location"].includes(e.name))return!1;if(!(t.type=="CallExpression"&&t.callee==e)&&!(t.type=="MemberExpression"&&t.object!==e&&!["document","window","self","globalThis"].includes(t.object.name))&&t.type!="FunctionDeclaration"&&t.type!="VariableDeclaration"&&!(t.type=="VariableDeclarator"&&t.id==e)&&t.type!="LabeledStatement"&&!(t.type=="Property"&&t.key==e)&&!(t.type=="ArrowFunctionExpression"&&t.params.includes(e))&&!(t.type=="FunctionExpression"&&t.params.includes(e))&&!(t.type=="FunctionExpression"&&t.id==e)&&!(t.type=="CatchClause"&&t.param==e)&&t.type!="ContinueStatement"&&t.type!="BreakStatement"&&!(t.type=="AssignmentExpression"&&t.left==e)&&t.type!="UpdateExpression"&&t.type!="UpdateExpression"&&!(t.type=="ForInStatement"&&t.left==e)&&!(t.type=="MethodDefinition"&&t.key==e)&&!(t.type=="AssignmentPattern"&&t.left==e)&&t.type!="NewExpression"&&t?.parent?.type!="NewExpression"&&!(t.type=="UnaryExpression"&&t.argument==e)&&!(t.type=="Property"&&t.shorthand==!0&&t.value==e)){if(e.name=="__dynamic")return e.name="undefined";if(e.name=="eval"&&t.right!==e)return e.name="__dynamic$eval";e.name=`dg$(${e.name})`}}}function ke(e,t={}){Object.entries({type:"CallExpression",callee:{type:"MemberExpression",object:{type:"Identifier",name:"self"},property:{type:"Identifier",name:"__dynamic$message"}},arguments:[e.object||e,{type:"Identifier",name:"self",__dynamic:!0}]}).forEach(([i,r])=>e[i]=r)}function yi(e,t={},i={}){if(e.object.name+="",t.type!=="AssignmentExpression"&&t.left!==e){if(e.property.value=="postMessage"&&t.type=="CallExpression"&&t.callee==e)return ke(e,t);if(e.object.value=="postMessage"&&t.type=="CallExpression"&&t.callee==e)return ke(e,t);if((e.property.name=="postMessage"||e.object.name=="postMessage")&&e.object.type!=="Super"){var r=e.object?.name;e.type="CallExpression",e.callee={type:"Identifier",name:"__dynamic$message"},e.arguments=[{type:"Identifier",name:r},{type:"Identifier",name:"self",__dynamic:!0}],t.type=="CallExpression"&&(t.arguments=t.arguments);return}}if(e.property.name=="eval"&&(e.property.name="__dynamic$eval"),e.object.name=="eval"&&(e.object.name="__dynamic$eval"),i.destination!=="worker"&&(e.property.name=="window"&&e.object.name!="top"&&(e.object.name=="self"||e.object.name=="globalThis")&&t.type!=="NewExpression"&&(t.type!=="CallExpression"||t.type=="CallExpression"&&e!==t.callee)&&(e.property.name="__dynamic$window"),e.object.name=="top"&&t.type!=="NewExpression"&&(t.type!=="CallExpression"||t.type=="CallExpression"&&e!==t.callee)&&(e.object.name="top.__dynamic$window"),e.property.name=="top"&&(e.object.name=="self"||e.object.name=="globalThis")&&t.type!=="NewExpression"&&(t.type!=="CallExpression"||t.type=="CallExpression"&&e!==t.callee)&&(e.property.name="top.__dynamic$window"),t.type!=="NewExpression"&&(t.type!=="CallExpression"||t.type=="CallExpression"&&e!==t.callee)&&(e.object.name=="window"&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),e.object.name=="parent"&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),e.property.name=="__dynamic"&&(e.property.name="undefined"),e.object.name=="self"&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),e.object.name=="document"&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),e.object.name=="globalThis"&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0})),e.object.name=="location"&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),e.property.name=="location"&&t.type!=="BinaryExpression"&&t.type!=="AssignmentExpression")){e.property.__dynamic=!0,e.__dynamic=!0;let n=Object.assign({},e);e.type="CallExpression",e.callee={type:"Identifier",name:"dg$",__dynamic:!0},e.arguments=[n],e.__dynamic=!0}e.computed&&i.destination!=="worker"&&(e.property={type:"CallExpression",callee:{type:"Identifier",name:"dp$"},arguments:[e.property],__dynamic:!0})}function gi(e,t={}){if(!(e.value instanceof String)||(e.value=="__dynamic"&&(e.value="undefined"),!["location","parent","top","postMessage"].includes(e.value)))return!1;e.value=="postMessage"&&t.type!="AssignmentExpression"&&t.left!=e&&ke(e,t),e.value=="location"&&(e.value="__dynamic$location"),e.value=="__dynamic"&&(e.value="undefined"),e.value=="eval"&&(e.value="__dynamic$eval")}function ft(e,t={}){e.__dynamic||e.arguments.length&&(e.arguments=[{type:"CallExpression",callee:{type:"Identifier",name:"__dynamic$wrapEval",__dynamic:!0},arguments:e.arguments,__dynamic:!0}],e.__dynamic=!0)}function xi(e,t={}){if(!(t.type=="AssignmentExpression"&&t.left==e)){if(e.callee.type=="Identifier"){if(e.callee.name=="postMessage"){let i="undefined";e.callee.type="CallExpression",e.callee.callee={type:"Identifier",name:"__dynamic$message"},e.callee.arguments=[{type:"Identifier",name:i},{type:"Identifier",name:"self",__dynamic:!0}];return}e.callee.name=="eval"&&ft(e)}if(e.callee.type=="MemberExpression"){if(e.callee.property.name=="postMessage"&&e.callee.object.type!=="Super"){let i=e.callee.object;e.callee.type="CallExpression",e.callee.callee={type:"Identifier",name:"__dynamic$message"},e.callee.arguments=[i,{type:"Identifier",name:"self",__dynamic:!0}];return}e.callee.object.name=="eval"&&ft(e)}e.arguments.length>0&&e.arguments.length<4;try{}catch{}}}function _i(e,t={}){if(e.left.type=="Identifier"){if(e.left.__dynamic===!0)return;if(e.left.name=="location"){var i=structuredClone(e.left),r=structuredClone(e.right);e.right.type="CallExpression",e.right.callee={type:"Identifier",name:"ds$"},e.right.arguments=[i,r]}}}function bi(e,t={}){e.parent.type!="ObjectPattern"&&e.parent?.parent?.type!="AssignmentExpression"&&(e.shorthand=!1)}function wi(e,t={},i={},r={}){if(e.type=="Literal"&&(t.type=="ImportDeclaration"||t.type=="ExportNamedDeclaration"||t.type=="ExportAllDeclaration")){var n=e.value+"";e.value=i.url.encode(e.value,r.meta),e.raw=e.raw.replace(n,e.value),e.__dynamic=!0}e.type=="ImportExpression"&&(e.source={type:"CallExpression",callee:{type:"Identifier",name:"__dynamic$import"},arguments:[e.source,{type:"Literal",__dynamic:!0,value:i.meta.href}]},e.__dynamic=!0)}function vi(e,t={}){if(e.id.type!=="Identifier")return!1;e.id.__dynamic!==!0&&e.id.name!="location"}function Ws(e,t,i={},r={},n={},a={}){if(!e.__dynamic){switch(t){case"Identifier":mi(e,i);break;case"MemberExpression":yi(e,i,a);break;case"Literal":gi(e,i);break;case"CallExpression":xi(e,i);break;case"AssignmentExpression":_i(e,i);break;case"ThisExpression":break;case"Property":bi(e,i);break;case"VariableDeclarator":vi(e,i);break;case"CatchClause":break;default:break}wi(e,i,r,n)}}var Dn=Ws;var Be=class{constructor(t){this.iterate=fi;this.process=di;this.emit=Dn;this.ctx=t.ctx}rewrite(t,i={},r=!0,n={}){if(!t||t instanceof Object||(t=t.toString(),t.includes("/* dynamic.js */")))return t;t=`/* dynamic.js */ ${t}`;try{try{t=this.process(t,i,{module:!0,...this.ctx},n)}catch{t=this.process(t,i,{module:!1,...this.ctx},n)}}catch{}return r&&(t=` - if (typeof self !== undefined && typeof self.importScripts == 'function' && typeof self.__dynamic == 'undefined') importScripts('/dy/config.js?v=2', '/dy/handler.js?'+Math.floor(Math.random()*(99999-10000)+10000)); + if (typeof self !== undefined && typeof self.importScripts == 'function' && typeof self.__dynamic == 'undefined') importScripts('/dy/config.js?v=3', '/dy/handler.js?'+Math.floor(Math.random()*(99999-10000)+10000)); - ${t}`),t}};var $e=class{constructor(t){this.config={rewrite:[["icons","urlit"],["name"," - Dynamic"],["start_url","url"],["scope","url"],["short_name"," - Dynamic"],["shortcuts","urlev"]],delete:["serviceworker"]};this.ctx=t.ctx}rewrite(t,i){let r=JSON.parse(t);for(let o in this.config)if(o=="rewrite")for(var[n,a]of this.config[o]){if(a=="urlit"&&r[n]){for(var s=0;si.split(" ").map((r,n)=>n==0?t.url.encode(r,t.baseURL||t.meta):r).join(" ")).join(", ")},decode(e){return e}};var Si=class{constructor(t){this.ctx=t,this.html=new Ve(this),this.srcset=On,this.js=new Be(this),this.css=new Fe(this),this.man=new $e(this)}},Vn=Si;async function Fn(e){var t;if(e.method==="GET"){var i=new URL(e.url);t=i.searchParams.get("url")}else if(e.method==="POST"){if(t=(await e.formData()).get("url"),t===null){var i=new URL(e.url);t=i.searchParams.get("url")}if(!t)return new Response("Error: Invalid or Unfound url",{status:400})}else return new Response("Error: Invalid method",{status:405});return new Response("",{status:301,headers:{location:location.origin+this.ctx.config.prefix+this.ctx.encoding.encode(t)}})}function Bn({url:e}){return!e.toString().substr(location.origin.length,(this.ctx.config.prefix+"route").length).startsWith(this.ctx.config.prefix+"route")}function Ei({url:e}){return!e.toString().substr(location.origin.length,this.ctx.config.prefix.length).startsWith(this.ctx.config.prefix)}async function Ci(e,t,i){for(let n in e){if(this.ctx.headers.csp.indexOf(n.toLowerCase())!==-1&&delete e[n],n.toLowerCase()=="location"){e[n]=this.ctx.url.encode(e[n],t);continue}if(n.toLowerCase()==="set-cookie"){Array.isArray(e[n])?e[n]=e[n].map(a=>this.ctx.modules.setCookieParser(a,{decodeValues:!1})[0]):e[n]=this.ctx.modules.setCookieParser(e[n],{decodeValues:!1});for await(var r of e[n])await i.set(t.host,this.ctx.modules.cookie.serialize(r.name,r.value,{...r,encode:a=>a}));delete e[n];continue}}return new Headers(e)}function ki(e,t,i,r){let{referrer:n}=i;if(["origin","Origin","host","Host","referer","Referer"].forEach(a=>{e[a]&&delete e[a]}),e.Origin=`${t.protocol}//${t.host}${t.port?":"+t.port:""}`,e.Host=t.host+(t.port?":"+t.port:""),e.Referer=t.href,i.referrerPolicy=="strict-origin-when-cross-origin"&&(e.Referer=`${t.protocol}//${t.host}/`),i.referrerPolicy=="origin"&&t.origin&&(n=t.origin+"/"),r){switch(i.credentials){case"omit":break;case"same-origin":i.client&&t.origin==i.client.__dynamic$location.origin&&(e.Cookie=r),i.client||(e.Cookie=r);break;case"include":e.Cookie=r;break;default:break}e.Cookie=r}if(n&&n!=location.origin+"/")try{e.Referer=this.ctx.url.decode(n),i.referrerPolicy=="strict-origin-when-cross-origin"&&(e.Referer=new URL(this.ctx.url.decode(n)).origin),e.Origin=new URL(this.ctx.url.decode(n)).origin}catch{}return i.client&&(e.Origin=i.client.__dynamic$location.origin,e.Referer=i.client.__dynamic$location.href,i.referrerPolicy=="strict-origin-when-cross-origin"&&(e.Referer=i.client.__dynamic$location.origin)),this.ctx.config.tab&&this.ctx.config.tab.ua&&(delete e["user-agent"],delete e["User-Agent"],e["user-agent"]=this.ctx.config.tab.ua),e["sec-fetch-dest"]=i.destination||"empty",e["sec-fetch-mode"]=i.mode||"cors",e["sec-fetch-site"]=i.client?i.client.__dynamic$location.origin==t.origin?i.client.__dynamic$location.port==t.port?"same-origin":"same-site":"cross-origin":"none",i.mode=="navigate"&&(e["sec-fetch-site"]="same-origin"),e["sec-fetch-user"]="?1",new Headers(e)}function Ai(e){var t=Object.assign(Object.create(Object.getPrototypeOf(e)),e);return t}function Li(e){try{if(new new Proxy(e,{construct:()=>({})}),!Object.getOwnPropertyNames(e).includes("arguments"))throw new Error("");return!0}catch{return!1}}function Pi(e){return e.url.toString().substr(location.origin.length,e.url.toString().length).startsWith(self.__dynamic$config.assets.prefix)}async function Ri(e){let t;if(self.__dynamic$config.mode!=="development"){var i=await caches.open("__dynamic$files");i?t=await i.match(e.url)||await fetch(e):t=await fetch(e)}else t=await fetch(e);let r=await t.blob();return(e.url.startsWith(location.origin+"/dy/config.js?v=2")||e.url.startsWith(location.origin+"/dy/client.j"))&&(r=new Blob([`${await r.text()} -self.document?.currentScript?.remove();`],{type:"application/javascript"})),new Response(r,{headers:t.headers,status:t.status,statusText:t.statusText})}async function Ii(e,t){}var je=class{constructor(t){this.rawHeaders={};this.headers=new Headers({});this.status=200;this.statusText="OK";this.body=t}async blob(){return this.body}async text(){return await this.body.text()}};function Ti(e){var t=this.ctx.encoding;return typeof this.ctx.config.encoding=="object"?t={...t,...this.ctx.encoding}:t={...this.ctx.encoding[this.ctx.config.encoding]},this.ctx.encoding={...this.ctx.encoding,...t},this.ctx.encoding}function Ni(e,t,i){if(!e.url.startsWith("http"))return e.url;let r=e.url.toString();return e.url.startsWith(location.origin)&&(r=r.substr(self.location.origin.length)),r=new URL(r,new URL(t.__dynamic$location.href)).href,this.ctx.url.encode(r,i)}var Mi=class{constructor(t){this.route=Fn;this.routePath=Bn;this.path=Ei;this.resHeader=Ci;this.reqHeader=ki;this.clone=Ai;this.class=Li;this.file=Pi;this.edit=Ri;this.error=Ii;this.encode=Ti;this.rewritePath=Ni;this.about=je;this.ctx=t}},$n=Mi;function Di(e,t){if(!e)return e;if(e=new String(e).toString(),e.startsWith("about:blank"))return location.origin+this.ctx.config.prefix+e;if(!e.match(this.ctx.regex.ProtocolRegex)&&e.match(/^([a-zA-Z0-9\-]+)\:\/\//g)||e.startsWith("chrome-extension://"))return e;if(e.startsWith("javascript:")&&!e.startsWith("javascript:__dynamic$eval")){let c=new URL(e);return`javascript:__dynamic$eval(${JSON.stringify(c.pathname)})`}if(e.match(this.ctx.regex.WeirdRegex)){var i=this.ctx.regex.WeirdRegex.exec(e);i&&(e=i[2])}if(e.startsWith(location.origin+this.ctx.config.prefix)||e.startsWith(this.ctx.config.prefix)||e.startsWith(location.origin+this.ctx.config.assets.prefix+"dynamic.")||e.match(this.ctx.regex.BypassRegex))return e;if(e.match(this.ctx.regex.DataRegex)){try{var i=this.ctx.regex.DataRegex.exec(e);if(i){var[r,n,a,s,o]=i;s=="base64"?o=this.ctx.modules.base64.atob(decodeURIComponent(o)):o=decodeURIComponent(o),n&&(n=="text/html"?o=this.ctx.rewrite.html.rewrite(o,t,this.ctx.rewrite.html.generateHead(location.origin+"/dy/client.j",location.origin+"/dy/config.js?v=2","",`window.__dynamic$url = "${t.href}"; window.__dynamic$parentURL = "${location.href}";`)):n=="text/css"?o=this.ctx.rewrite.css.rewrite(o,t):(n=="text/javascript"||n=="application/javascript")&&(o=this.ctx.rewrite.js.rewrite(o,t))),s=="base64"?o=this.ctx.modules.base64.btoa(o):o=encodeURIComponent(o),a?s?e=`data:${n};${a};${s},${o}`:e=`data:${n};${a},${o}`:s?e=`data:${n};${s},${o}`:e=`data:${n},${o}`}}catch{}return e}return e=new String(e).toString(),t.href.match(this.ctx.regex.BypassRegex)&&(e=new URL(e,new URL((this.ctx.parent.__dynamic||this.ctx).meta.href)).href),e=new URL(e,t.href),(this.ctx._location?.origin||(location.origin=="null"?location.ancestorOrigins[0]:location.origin))+this.ctx.config.prefix+(this.ctx.encoding.encode(e.origin+e.pathname)+e.search+e.hash)}function Oi(e){if(!e||(e=new String(e).toString(),e.match(this.ctx.regex.BypassRegex)))return e;var t=e.indexOf(this.ctx.config.prefix);if(t==-1)return e;try{if(e=new URL(e,new URL(self.location.origin)).href,t=e.indexOf(this.ctx.config.prefix),e.slice(t+this.ctx.config.prefix.length).trim()=="about:blank")return"about:blank";var i=new URL(e).search+new URL(e).hash||"",r=new URL(this.ctx.encoding.decode(e.slice(t+this.ctx.config.prefix.length).replace("https://","https:/").replace("https:/","https://").split("?")[0]))}catch{return e}return e=r.origin+r.pathname+i+(new URL(e).search?r.search.replace("?","&"):r.search),e}var Vi=class{constructor(t){this.encode=Di;this.decode=Oi;this.ctx=t}},jn=Vi;var qs=/^(#|about:|mailto:|blob:|javascript:)/g,Gs=/^data:([a-z\/A-Z0-9\-\+]+);?(charset\=[\-A-Za-z0-9]+)?;?(base64)?[;,]*(.*)/g,zs=/^([\/A-Za-z0-9\-%]+)(http[s]?:\/\/.*)/g,Ue=class{constructor(t){this.BypassRegex=qs;this.DataRegex=Gs;this.WeirdRegex=zs;this.ctx=t}};function Fi(e){e=new URL(e.href);for(var t in e)this.ctx.meta[t]=e[t];return!0}var He=class{constructor(){}};var Bi=class extends He{constructor(i){super();this.load=Fi;this.ctx=i}},Un=Bi;var Hn={csp:["cross-origin-embedder-policy","cross-origin-opener-policy","cross-origin-resource-policy","content-security-policy","content-security-policy-report-only","expect-ct","feature-policy","origin-isolation","strict-transport-security","upgrade-insecure-requests","x-content-type-options","x-frame-options","x-permitted-cross-domain-policies","x-xss-protection"],status:{empty:[204,101,205,304]},method:{body:["GET","HEAD"]}};function $i(e,t=""){return(this.ctx.modules.mime.contentType(t||e.pathname)||"text/css").split(";")[0]==="text/css"}function ji(e,t="",i=""){let r;return!t&&this.ctx.modules.mime.contentType(e.pathname)==e.pathname?i.trim().match(/<(html|script|body)[^>]*>/g)&&(r=i.trim().indexOf((i.trim().match(/<(html|script|body)[^>]*>/g)||[])[0]),r>-1&&r<100):(this.ctx.modules.mime.contentType(t||e.pathname)||"text/html").split(";")[0]==="text/html"||i.trim().match(/\<\!(doctype|DOCTYPE) html\>/g)}function Ui(e,t=""){if(e.pathname.endsWith(".js")&&t=="text/plain")return!0;var i=(this.ctx.modules.mime.contentType(t||e.pathname)||"application/javascript").split(";")[0];return i=="text/javascript"||i=="application/javascript"||i=="application/x-javascript"}var Hi=class{constructor(t){this.html=ji;this.js=Ui;this.css=$i;this.ctx=t}},Wn=Hi;function dt(e,t=!0){let i=l=>{let h=e.__dynamic.util.clone(l);for(var f=0;fl);[...n,e.Object].forEach(l=>{delete l.prototype.__dynamic$location});let a={get(){return e.__dynamic.location},set(l){if(l instanceof e.Location)return e.__dynamic.location=l;e.__dynamic.location.href=l},configurable:!0},s=["href","host","hash","origin","hostname","port","pathname","protocol","search"],o=["assign","replace","toString","reload"];try{var c=new URL(e.__dynamic$url||e.__dynamic.url.decode(e.location.pathname+e.location.search+e.location.hash))}catch{e.__dynamic$url="about:blank";var c=new URL("about:blank")}return e.__dynamic.property=c,e.__dynamic.meta.load(c),e.__dynamic.location=e.__dynamic.util.clone(e.location),s.forEach(l=>{e.__dynamic.define(e.__dynamic.location,l,{get:()=>l=="search"&&e.location[l]+(e.location.search?c.search.replace("?","&"):c.search)||(l=="hash"?location[l]:c[l]),set:h=>{l==="href"?e.location[l]=e.__dynamic.url.encode(e.__dynamic.meta.href.replace(c[l],h),c):e.location[l]=h.toString()}})}),e.__dynamic.define(e.Object.prototype,"__dynamic$location",{get(){return this===e||this===e.__dynamic$window||this===e.document||this===e.__dynamic$document?this.__dynamic?.location:this.location},set(l){return this===e||this===e.__dynamic$window||this===e.document||this===e.__dynamic$document?this.__dynamic.location.href=l:this.location=l},configurable:!0}),o.forEach(l=>{e.__dynamic.define(e.__dynamic.location,l,{get:()=>l=="toString"?()=>c.href:new e.__dynamic.Function("arg",`return window.location.${l}(arg?${l!=="reload"&&l!=="toString"?"(self.__dynamic).url.encode(arg, new URL('"+c.href+"'))":"arg"}:null)`),set:()=>null})}),r.length&&e.__dynamic.define(e.__dynamic.location,"ancestorOrigins",{get:()=>i(r),set:()=>null}),n.forEach(l=>{e.__dynamic.define(l.prototype,"__dynamic$location",a)}),e.__dynamic.hashchange||(e.__dynamic.hashchange=(e.addEventListener("hashchange",l=>{}),!0)),e.__dynamic.location}function mt(e){e.__dynamic$get=function(t){var i=e.__dynamic.fire("get",[t]);if(i)return i;try{return t==e.parent?e.parent.__dynamic$window:t==e.top?e.top.__dynamic$window:t==e.location||(e.Location||e.WorkerLocation)&&t instanceof(e.Location||e.WorkerLocation)?e.__dynamic$location:e.Document&&t instanceof e.Document?e.__dynamic$document:t==e?e.__dynamic$window:typeof t=="function"&&t.name=="__d$Send"?e.__dynamic$message(t.target,e):t}catch{return t}},e.__dynamic$property=function(t){return typeof t!="string"?t:t=="location"?"__dynamic$location":t=="eval"?"__dynamic$eval":t},e.__dynamic$set=function(t,i){return t?e.__dynamic.url.encode(e.__dynamic.meta.href.replace(e.__dynamic.property.href,i),e.__dynamic.property):i},e.__dynamic$var=function(t,i){return window[i]=t},e.dg$=e.__dynamic$get,e.ds$=e.__dynamic$set,e.dp$=e.__dynamic$property,e.dv$=e.__dynamic$var,e.d$g_=e.__dynamic$get,e.d$s_=e.__dynamic$set,e.d$p_=e.__dynamic$property,e.d$v_=e.__dynamic$var}function yt(e){e.__dynamic.util.CreateDocumentProxy=function(i){return new Proxy(i,{get(r,n){let a=r[n];return n=="location"?i.defaultView?i.defaultView.__dynamic$location:e.__dynamic$location:n=="documentURI"&&i.defaultView||n=="baseURI"&&i.defaultView?i.defaultView.__dynamic.location.toString():a&&(typeof a=="function"&&a.toString==e.Object.toString?new Proxy(a,{apply(s,o,c){return(i.defaultView&&c[0]==i.defaultView.__dynamic$document||c[0]==e.__dynamic$document)&&(c[0]=i),a.apply(i,c)}}):a)},set(r,n,a){try{try{i.defaultView.__dynamic?i.defaultView.__dynamic.Reflect.set(r,n,a):r[n]=a}catch{return a||r[n]||!0}return a||r[n]||!0}catch{return a||r[n]||!0}}})},e.__dynamic.util.CreateWindowProxy=function(i){return new Proxy(i,{get(r,n){let a=e.__dynamic.Reflect.get(r,n);if(Object.getOwnPropertyDescriptor(r,n)){var s=Object.getOwnPropertyDescriptor(r,n);if(s?.configurable===!1&&s?.writable===!1&&s?.hasOwnProperty("enumerable"))return s?.value||s?.get?.call(r)}return n=="__dynamic$self"?i.window:n=="location"?i.__dynamic$location:n=="parent"?i.parent.__dynamic$window||i.parent:n=="top"?i.top.__dynamic?i.top.__dynamic$window:i.parent.__dynamic$window:n=="self"||n=="globalThis"?i.__dynamic$window:a&&(typeof a=="function"&&a.toString==e.Object.toString?new Proxy(a,{apply(o,c,l){return Reflect.apply(o,i,l)}}):a)},set(r,n,a){try{var s=Object.getOwnPropertyDescriptor(r,n);if(s?.writable===!1&&s?.enumerable===!1)return!1;if(n.constructor==e.Symbol)return Reflect.set(r,n,a),r[n];if(r.hasOwnProperty("undefined")&&r[n]+""==n)return r[n]||a||!0;if(n=="location")return i.__dynamic$location=a;if(r.hasOwnProperty(n)&&!r.propertyIsEnumerable(n)&&!s?.writable)return r[n];try{i.__dynamic?i.__dynamic.Reflect.set(r,n,a):r[n]=a}catch{return r[n]||!0}return r[n]||!0}catch{return r[n]||!0}}})},e.__dynamic.define(e,"__dynamic$window",{value:e.__dynamic.util.CreateWindowProxy(e),configurable:!1,enumerable:!1,writable:!1}),e.document&&e.__dynamic.define(e,"__dynamic$document",{value:e.__dynamic.util.CreateDocumentProxy(e.document),configurable:!1,enumerable:!1,writable:!1}),e.__dynamic$globalThis=e.__dynamic$window,e.__dynamic$self=e.__dynamic$window}function Wi(e){e.__dynamic.rewrite.dom=function(t,i){if(typeof e.DOMParser>"u"||!t)return t;var r=new e.DOMParser,n=r.parseFromString(t.toString(),"text/html"),a=n.documentElement;return a.querySelectorAll("script").forEach(function(s){!s.type||s.type&&s.type!=="text/javascript"&&s.type!=="application/javascript"&&s.type!=="application/x-javascript"?s.src&&(s.src=e.__dynamic.url.encode(s.getAttribute("src"),i)):s.innerHTML&&(s.innerHTML=e.__dynamic.js.encode(s.innerHTML,{type:"script"},i,{}))}),a.querySelectorAll("link").forEach(function(s){s.href&&s.getAttribute("rel")!=="stylesheet"&&(s.href=e.__dynamic.url.encode(s.getAttribute("href"),i))}),a.querySelectorAll("img").forEach(function(s){s.src&&(s.src=e.__dynamic.url.encode(s.getAttribute("src"),i)),s.srcset&&(s.srcset=e.__dynamic.rewrite.srcset.encode(s.getAttribute("srcset"),e.__dynamic))}),a.querySelectorAll("a").forEach(function(s){s.href&&(s.href=e.__dynamic.url.encode(s.getAttribute("href"),i))}),a.querySelectorAll("style").forEach(function(s){s.innerHTML&&(s.innerHTML=e.__dynamic.rewrite.css.rewrite(s.innerHTML,i))}),a.outerHTML}}function qi(e){let t=r=>new DOMParser().parseFromString(r,"text/html").body.innerHTML;if(e.__dynamic.elements.config.forEach(r=>{r.elements.forEach(n=>{r.tags.forEach(a=>{var s=Object.getOwnPropertyDescriptor(n.prototype,a);s||(s=Object.getOwnPropertyDescriptor(HTMLElement.prototype,a)),typeof n.prototype.setAttribute.__dynamic$target>"u"&&(n.prototype.setAttribute=e.__dynamic.wrap(n.prototype.setAttribute,function(o,...c){return this instanceof HTMLLinkElement&&e.__dynamic$icon&&c[0].toLowerCase()=="href"&&(this.rel=="icon"||this.rel=="shortcut icon")?(c[1]=e.__dynamic$icon,Reflect.apply(o,this,c)):e.__dynamic.elements.attributes.indexOf(c[0].toLowerCase())==-1?Reflect.apply(o,this,c):c[0].toLowerCase()=="srcset"||c[0].toLowerCase()=="imagesrcset"?(this.dataset[`dynamic_${c[0]}`]=c[1],c[1]=e.__dynamic.rewrite.srcset.encode(c[1],e.__dynamic),Reflect.apply(o,this,c)):c[0].toLowerCase()=="integrity"||c[0].toLowerCase()=="nonce"?(this.dataset[`dynamic_${c[0]}`]=c[1],this.removeAttribute(c[0]),Reflect.apply(o,this,["nointegrity",c[1]])):(this.dataset[`dynamic_${c[0]}`]=c[1],c[1]=e.__dynamic.url.encode(c[1],e.__dynamic.baseURL||e.__dynamic.meta),Reflect.apply(o,this,c))},"setAttribute"),n.prototype.setAttributeNS=e.__dynamic.wrap(n.prototype.setAttributeNS,function(o,...c){return this instanceof HTMLLinkElement&&e.__dynamic$icon&&c[1].toLowerCase()=="href"&&(this.rel=="icon"||this.rel=="shortcut icon")?(c[2]=e.__dynamic$icon,Reflect.apply(o,this,c)):e.__dynamic.elements.attributes.indexOf(c[1].toLowerCase())==-1?Reflect.apply(o,this,c):c[1].toLowerCase()=="srcset"||c[1].toLowerCase()=="imagesrcset"?(this.dataset[`dynamic_${c[1]}`]=c[2],c[2]=e.__dynamic.rewrite.srcset.encode(c[2],e.__dynamic),Reflect.apply(o,this,c)):c[1].toLowerCase()=="integrity"||c[1].toLowerCase()=="nonce"?(this.dataset[`dynamic_${c[1]}`]=c[2],this.removeAttribute(c[1]),Reflect.apply(o,this,["nointegrity",c[2]])):(this.dataset[`dynamic_${c[1]}`]=c[2],c[2]=e.__dynamic.url.encode(c[2],e.__dynamic.baseURL||e.__dynamic.meta),Reflect.apply(o,this,c))},"setAttributeNS"),n.prototype.getAttribute=e.__dynamic.wrap(n.prototype.getAttribute,function(o,...c){return this.dataset[`dynamic_${c[0]}`]?this.dataset[`dynamic_${c[0]}`]:Reflect.apply(o,this,c)},"getAttribute"),n.prototype.getAttributeNS=e.__dynamic.wrap(n.prototype.getAttributeNS,function(o,...c){return this.dataset[`dynamic_${c[1]}`]?this.dataset[`dynamic_${c[1]}`]:Reflect.apply(o,this,c)},"getAttributeNS")),e.__dynamic.define(n.prototype,a,{get(){if(r.action=="window"){let o=e.__dynamic.elements.contentWindow.get.call(this),c=!0;try{o.location.href}catch{c=!1}if(c&&(o.__dynamic||e.__dynamic.elements.client(o,e.__dynamic$config,decodeURIComponent(this.src))),a=="contentDocument")return o.document;if(a=="contentWindow")return c&&o.__dynamic$window||o}if(r.action=="css")return s.get.call(this);try{return e.__dynamic.url.decode(s.get.call(this))}catch{}return s.get.call(this)},set(o){return o&&typeof o=="string"&&(o=o.toString()),a=="href"&&this instanceof HTMLLinkElement&&e.__dynamic$icon&&(this.rel=="icon"||this.rel=="shortcut icon")&&(this.dataset[`dynamic_${a}`]=o,o=e.__dynamic$icon),r.action=="html"?(Promise.resolve(e.__dynamic.createBlobHandler(new Blob([o],{type:"text/html"}),this,o)).then(c=>{this.setAttribute(a,c)}),o):(r.action=="srcset"&&(o=e.__dynamic.rewrite.srcset.encode(o,e.__dynamic)),r.action=="rewrite"?(this.dataset[`dynamic_${a}`]=o,this.removeAttribute(a),this.setAttribute(r.new,o)):(r.action=="css"&&(o=e.__dynamic.rewrite.css.rewrite(o,e.__dynamic.meta)),r.action=="url"&&(o=e.__dynamic.url.encode(o,e.__dynamic.baseURL||e.__dynamic.meta)),this.dataset[`dynamic_${a}`]=o,s.set.call(this,o)))}})})})}),["innerHTML","outerHTML"].forEach(r=>{e.__dynamic.define(e.HTMLElement.prototype,r,{get(){return(this["__"+r]||e.__dynamic.elements[r].get.call(this)).toString()},set(n){return this["__"+r]=t(n),this instanceof e.HTMLTextAreaElement?e.__dynamic.elements[r].set.call(this,n):this instanceof e.HTMLScriptElement?e.__dynamic.elements[r].set.call(this,e.__dynamic.rewrite.js.rewrite(n,{type:"script"})):this instanceof e.HTMLStyleElement?e.__dynamic.elements[r].set.call(this,e.__dynamic.rewrite.css.rewrite(n,e.__dynamic.meta)):e.__dynamic.elements[r].set.call(this,e.__dynamic.rewrite.dom(n,e.__dynamic.meta))}})}),["MutationObserver","ResizeObserver","IntersectionObserver"].forEach(r=>{e[r].prototype.observe=e.__dynamic.wrap(e[r].prototype.observe,function(n,...a){return a[0]==e.__dynamic$document&&(a[0]=e.document),Reflect.apply(n,this,a)},r+".prototype.observe")}),e.__dynamic.defines(e.HTMLAnchorElement.prototype,{pathname:e.__dynamic.elements.createGetter("pathname"),origin:e.__dynamic.elements.createGetter("origin"),host:e.__dynamic.elements.createGetter("host"),hostname:e.__dynamic.elements.createGetter("hostname"),port:e.__dynamic.elements.createGetter("port"),protocol:e.__dynamic.elements.createGetter("protocol"),search:e.__dynamic.elements.createGetter("search"),hash:e.__dynamic.elements.createGetter("hash"),toString:{get:function(){return this.__toString||(()=>this.href?new URL(this.href).toString():"")},set:function(r){this.__toString=r}}}),e.HTMLElement.prototype.insertAdjacentHTML=e.__dynamic.wrap(e.HTMLElement.prototype.insertAdjacentHTML,function(r,...n){return this instanceof e.HTMLStyleElement?Reflect.apply(r,this,[n[0],e.__dynamic.rewrite.css.rewrite(n[1],e.__dynamic.meta)]):this instanceof e.HTMLScriptElement?Reflect.apply(r,this,[n[0],e.__dynamic.rewrite.js.rewrite(n[1],{type:"script"},!1,e.__dynamic)]):this instanceof e.HTMLTextAreaElement?Reflect.apply(r,this,n):Reflect.apply(r,this,[n[0],e.__dynamic.rewrite.html.rewrite(n[1],e.__dynamic.meta)])},"insertAdjacentHTML"),[[e.Node,"textContent"],[e.HTMLElement,"innerText"]].forEach(([r,n])=>{var a=Object.getOwnPropertyDescriptor(r.prototype,n);function s(){return this["__"+n]||a?.get&&a.get.call(this)}e.__dynamic.define(e.HTMLStyleElement.prototype,n,{get:s,set(o){return this["__"+n]=o,a?.set&&a.set.call(this,e.__dynamic.rewrite.css.rewrite(o,e.__dynamic.meta))}}),e.__dynamic.define(e.HTMLScriptElement.prototype,n,{get:s,set(o){return this["__"+n]=o,this.type!==null||this.type!=="application/javascript"||this.type!=="text/javascript"||this.type!=="application/x-javascript"?a?.set&&a.set.call(this,o):a?.set&&a.set.call(this,e.__dynamic.rewrite.js.rewrite(o,{type:"script"},!1,e.__dynamic))}})}),e.Text.prototype.toString=function(){return this.textContent},e.document.createElement=e.__dynamic.wrap(e.document.createElement,function(r,...n){var a=Reflect.apply(r,this,n);return a.rewritten=!0,n[0].toLowerCase()=="iframe"&&(a.src="about:blank"),a},"createElement"),!document.querySelector('link[rel="icon"], link[rel="shortcut icon"]')){var i=document.createElement("link");i.rel="icon",i.href=(e.__dynamic$icon||"/favicon.ico")+"?dynamic",i.dataset.dynamic_hidden="true",document.head.appendChild(i)}e.__dynamic.define(e.Attr.prototype,"value",{get(){return this.__value||e.__dynamic.elements.attrValue.get.call(this)},set(r){return this.__value=r,this.name=="href"||this.name=="src"?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.url.encode(r,e.__dynamic.meta)):this.name=="style"?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.rewrite.css.rewrite(r,e.__dynamic.meta)):this.name=="onclick"?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.rewrite.js.rewrite(r,{type:"script"},!1,e.__dynamic)):e.__dynamic.elements.attrValue.set.call(this,r)}})}function Gi(e){let t=e.XMLHttpRequest;e.Worker=new Proxy(e.Worker,{construct(i,r){if(r[0])if(r[0]=r[0].toString(),r[0].trim().startsWith(`blob:${e.location.origin}`)){let n=new t;n.open("GET",r[0],!1),n.send();let a=e.__dynamic.rewrite.js.rewrite(n.responseText,{type:"worker"},!0),s=new Blob([a],{type:"application/javascript"});r[0]=URL.createObjectURL(s)}else r[0]=e.__dynamic.url.encode(r[0],e.__dynamic.meta);return Reflect.construct(i,r)}})}function zi(e){e.__dynamic$history=function(t,...i){i[2]&&(i[2]=e.__dynamic.url.encode(i[2],e.__dynamic.meta)),e.__dynamic.Reflect.apply(t,this,i),e.__dynamic.client.location(e,!0,!1)},e.History.prototype.pushState=e.__dynamic.wrap(e.History.prototype.pushState,e.__dynamic$history),e.History.prototype.replaceState=e.__dynamic.wrap(e.History.prototype.replaceState,e.__dynamic$history)}var Ks="!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~",Xs="%";function qn(e){e=e.toString();let t="";for(let i=0;ie.location.protocol.replace("http","ws")+"//"+new URL((e.__dynamic$config.bare.path+"/"||"/bare/")+"v1/",new URL(location.origin)).href.replace(/http(s?):\/\//g,"").replace(/\/\//g,"/"),i=Object.getOwnPropertyDescriptor(e.WebSocket.prototype,"url");e.__dynamic.define(e.WebSocket.prototype,"url",{get(){let r=i.get.call(this);return e.__dynamic.url.decode(r)},set(r){return!1}}),e.WebSocket=e.__dynamic.wrap(e.WebSocket,(r,...n)=>{console.log(n);let a=new URL(n[0]),s={remote:{host:a.hostname,port:a.port||(a.protocol==="wss:"?"443":"80"),path:a.pathname+a.search,protocol:a.protocol},headers:{Host:a.hostname+(a.port?":"+a.port:""),Origin:e.__dynamic$location.origin,Pragma:"no-cache","Cache-Control":"no-cache",Upgrade:"websocket",Connection:"Upgrade"},forward_headers:["accept-encoding","accept-language","sec-websocket-extensions","sec-websocket-key","sec-websocket-version","sec-websocket-accept"]};return n[1]&&(s.headers["sec-websocket-protocol"]=n[1].toString()),[t(),["bare",qn(JSON.stringify(s))]]})}function Xi(e){e.Request=e.__dynamic.wrap(e.Request,function(t,...i){if(i[0]instanceof t){let r=Reflect.construct(t,i);return i[0].mode==="navigate"&&(r.mode="same-origin"),r}return i[0]&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),i}),e.__dynamic.define(e.Request.prototype,"url",{get(){return e.__dynamic.url.decode(e.__dynamic.http.RequestURL.get.call(this))},set(t){return t}}),e.fetch=e.__dynamic.wrap(e.fetch,function(t,...i){return e.Request&&(i[0].constructor.name==="Request"||i[0]instanceof e.Request)?(console.log(i[0]),Reflect.apply(t,e,i)):(i[0]&&e.__dynamic&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),Reflect.apply(t,e,i))},"fetch"),e.XMLHttpRequest.prototype.open=e.__dynamic.wrap(e.XMLHttpRequest.prototype.open,function(t,...i){return i[1]&&(i[1]=e.__dynamic.url.encode(i[1],e.__dynamic.meta)),i[2]===!1&&(i[2]=!0),Reflect.apply(t,this,i)},"XMLHttpRequest.prototype.open"),Object.defineProperty(e.XMLHttpRequest.prototype,"responseURL",{get(){return e.__dynamic.url.decode(e.__dynamic.http.XMLResponseURL.get.call(this))},set(t){return t}}),Object.defineProperty(e.Response.prototype,"url",{get(){return e.__dynamic.url.decode(e.__dynamic.http.ResponseURL.get.call(this))},set(t){return t}}),e.open=e.__dynamic.wrap(e.open,function(t,...i){i[0]!=""&&i[0]&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),i[0]==""&&(i[0]="about:blank");let r=Reflect.apply(t,this,i);r.opener=e.__dynamic$window;try{new URL(i[0]).protocol==="about:"?r.__dynamic$url="about:srcdoc":r.__dynamic$url=e.__dynamic.url.decode(i[0])}catch{r.__dynamic$url="about:srcdoc"}return e.__dynamic.elements.client(r,e.__dynamic$config,r.__dynamic$url),r.__dynamic$window},"window.open"),e.__dynamic.define(e,"__dynamic$import",{get(){return function(t,i){try{return e.__dynamic.url.encode(t,new URL(i))}catch{return e.__dynamic.url.encode(t,e.__dynamic.meta)}}},set:()=>{}})}function gt(e){let t=a=>a.constructor.name=="Worker"||a.constructor.name=="MessagePort"||e.constructor.name=="DedicatedWorkerGlobalScope",i=a=>a.constructor.name=="Window"||a.constructor.name=="global",r=(a,s)=>Object.keys(window||{}).map(o=>parseInt(o)).filter(o=>isFinite(o)).map(o=>window[o]).filter(o=>o||!1).find(o=>{try{return o.name==a&&o.location.href==s}catch{return!1}});e.__dynamic$message=function(a,s=top){a||(a=e);function o(){var c=arguments;return t(a)||!i(a)?a.postMessage.call(a,...c):(a.__dynamic$self&&(a=a.__dynamic$self),(a._postMessage||a.postMessage).call(a,[c[0],s.__dynamic$location.origin,s.location.href,s.name,s!==e],"*",c[2]||[]))}return o},e.constructor.name=="Window"&&(e.addEventListener&&(e.addEventListener=new Proxy(e.addEventListener,{apply(a,s,o){if(s==e.__dynamic$window&&(s=e),!o[1]||!o[0]||typeof o[1]!="function")return Reflect.apply(a,s,o);if(o[0]=="message"){var c=o[1].bind({});o[1]=function(l){return c(n(l))}}return Reflect.apply(a,s,o)}})),e.constructor.name=="Window"&&e.__dynamic.define(e,"onmessage",{get(){return e._onmessage||null},set(a){return e._onmessage&&e.removeEventListener("message",e._onmessage),e.addEventListener("message",a),e._onmessage=a}}));function n(a){let s=e.__dynamic.util.clone(a),o;a.source&&(o=r(a.data[3],a.data[2])||a.currentTarget),e.__dynamic.define(s,"isTrusted",{value:!0,writable:!1}),a.origin&&(Array.isArray(a.data)&&a.data.length==5?e.__dynamic.define(s,"origin",{value:a.data[1],writable:!1}):e.__dynamic.define(s,"origin",{value:a.origin,writable:!1})),a.data&&(Array.isArray(a.data)&&a.data.length==5?e.__dynamic.define(s,"data",{value:a.data[0],writable:!1}):e.__dynamic.define(s,"data",{value:a.data,writable:!1})),a.source&&(o?e.__dynamic.define(s,"source",{value:o?.__dynamic$window||o,writable:!0}):e.__dynamic.define(s,"source",{value:o||Array.isArray(a.data)&&a.data.length==3&&a.data[2]===!0?a.source:a.currentTarget,writable:!0}));for(var c in a)switch(c){default:c!=="isTrusted"&&c!=="origin"&&c!=="data"&&c!=="source"&&e.__dynamic.define(s,c,{value:a[c],writable:!1});break}return s}}function Qi(e){function t(i,...r){for(var n in r)r[n]=e.__dynamic.rewrite.dom(r[n],e.__dynamic.meta);return i.apply(this,r)}["write","writeln"].forEach(i=>{e.document[i]=e.__dynamic.wrap(e.document[i],t,`document.${i}`)})}function xt(e){e.importScripts=new Proxy(e.importScripts,{apply(t,i,r){return[...r].forEach((n,a)=>{r[a]=e.__dynamic.url.encode(n,e.__dynamic.meta)}),Reflect.apply(t,i,r)}}),e.__dynamic.define(e.__dynamic,"_location",{value:e.location,writable:!0}),e.__dynamic.define(e.WorkerGlobalScope.prototype,"location",{get(){return e.__dynamic.location},set(t){return t}}),e.location=e.__dynamic.location}function _t(e){var t=e.Reflect.get.bind({}),i=e.Reflect.set.bind({});e.Reflect.set=e.__dynamic.wrap(e.Reflect.set,function(r,...n){return n[0].constructor.name=="Window"&&n[1]=="location"?(n[0].__dynamic$location=n[2],!0):n[0].constructor.name=="Location"?(e.__dynamic$location[n[1]]=n[2],!0):Reflect.apply(i,this,n)},"Reflect.set"),e.Reflect.get=e.__dynamic.wrap(e.Reflect.get,function(r,...n){if(typeof n[0]=="object"){if(n[0].constructor.name=="Window"){if(n[1]=="location")return n[0].__dynamic?n[0].__dynamic$location:Reflect.apply(t,this,n);if(n[0][n[1]]&&n[0][n[1]].constructor.name=="Window")return n[0][n[1]].__dynamic$window}if(n[0].constructor.name=="Location")return e.__dynamic$location[n[1]]}return Reflect.apply(t,this,n)},"Reflect.get"),e.__dynamic.Reflect={get:t,set:i,apply:e.Reflect.apply.bind({}),construct:e.Reflect.construct.bind({}),defineProperty:e.Reflect.defineProperty.bind({}),deleteProperty:e.Reflect.deleteProperty.bind({}),getOwnPropertyDescriptor:e.Reflect.getOwnPropertyDescriptor.bind({}),getPrototypeOf:e.Reflect.getPrototypeOf.bind({}),has:e.Reflect.has.bind({}),isExtensible:e.Reflect.isExtensible.bind({}),ownKeys:e.Reflect.ownKeys.bind({}),preventExtensions:e.Reflect.preventExtensions.bind({}),setPrototypeOf:e.Reflect.setPrototypeOf.bind({})}}function Yi(e){e.__dynamic.define(e.document,"origin",{value:e.__dynamic$location.origin,configurable:!1,enumerable:!1}),e.__dynamic.define(e.document,"domain",{value:e.__dynamic$location.hostname,configurable:!1,enumerable:!1}),["referrer","URL","documentURI"].forEach(t=>{e.__dynamic.define(e.document,t,{value:e.__dynamic$location.toString(),configurable:!1,enumerable:!1})}),[e.document,e.HTMLElement.prototype].forEach(t=>{e.__dynamic.define(t,"baseURI",{get(){return(e.__dynamic.baseURL||e.__dynamic$location).href}})}),["getEntries","getEntriesByName","getEntriesByType"].forEach(t=>{e.performance[t]=new Proxy(e.performance[t],{apply(i,r,n){return Reflect.apply(i,r,n).filter(a=>!a.name?.includes(e.location.origin+"/dy/dynamic.")).filter(a=>!a.name.includes(e.location.origin+e.__dynamic.config.prefix+"caches/")).map(a=>{if(a.name){var s=e.__dynamic.util.clone(a);s.__defineGetter__("name",function(){return this._name}),s.__defineSetter__("name",function(l){this._name=l}),s.name=e.__dynamic.url.decode(a.name),e.__dynamic.define(s,"name",{get:void 0,set:void 0}),e.__dynamic.define(s,"name",{value:s._name,writable:!1}),delete s._name;for(var o in a)if(o!="name"){if(typeof a[o]=="function")var c=new Proxy(a[o],{apply(l,h,f){if(l.name=="toJSON"){var A={};for(var d in s)A[d]=s[d];return A}return Reflect.apply(l,a,f)}});else var c=a[o];Object.defineProperty(s,o,{value:c,writable:!0})}a=s}return a})}})}),e.MouseEvent&&(e.MouseEvent.prototype.initMouseEvent=e.__dynamic.wrap(e.MouseEvent.prototype.initMouseEvent,function(t,...i){return i.length&&(i=i.map(r=>r==e.__dynamic$window?e:r)),Reflect.apply(t,this,i)})),e.KeyboardEvent&&(e.KeyboardEvent.prototype.initKeyboardEvent=e.__dynamic.wrap(e.KeyboardEvent.prototype.initKeyboardEvent,function(t,...i){return i.length&&(i=i.map(r=>r==e.__dynamic$window?e:r)),Reflect.apply(t,this,i)})),e.StorageEvent&&(e.StorageEvent.prototype.initStorageEvent=e.__dynamic.wrap(e.StorageEvent.prototype.initStorageEvent,function(t,...i){return i.length&&(i=i.map(r=>r==e.localStorage?e.__dynamic.storage.localStorage:r==e.sessionStorage?e.__dynamic.storage.sessionStorage:r)),Reflect.apply(t,this,i)})),e.Object.defineProperty=e.__dynamic.wrap(e.Object.defineProperty,function(t,...i){try{return Reflect.apply(t,this,i)}catch(r){r.toString().includes("Cannot redefine property:")&&(i[0].__defined||(i[0].__defined={}),i[0].__defined[i[1]]=i[2])}}),e.__dynamic.meta.origin=="https://www.google.com"&&(e.setInterval=new Proxy(e.setInterval,{apply(t,i,r){return r[1]==500?null:Reflect.apply(t,i,r)}}))}function Ji(e){e.Storage.prototype.setItem=e.__dynamic.wrap(e.Storage.prototype.setItem,function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)},"Storage.prototype.setItem"),e.Storage.prototype.getItem=e.__dynamic.wrap(e.Storage.prototype.getItem,function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)||null},"Storage.prototype.getItem"),e.Storage.prototype.removeItem=e.__dynamic.wrap(e.Storage.prototype.removeItem,function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)},"Storage.prototype.removeItem"),e.Storage.prototype.clear=e.__dynamic.wrap(e.Storage.prototype.clear,function(t,...i){for(var r=[],n=0;n{e["__dynamic$"+t]=new Proxy(e[t],{get(i,r){if(r=="length"){for(var n=[],a=0;ae?e.split(";").map(t=>t.split("=")).reduce((t,i)=>(t[i[0].trim()]=i[1].trim(),t),{}):{},We=(e=[])=>e.map(t=>`${t.name}=${t.value}`).join("; ");function tr(e){if(delete e.Document.prototype.cookie,e.__dynamic.define(e.document,"cookie",{get(){var t=e.__dynamic.fire("getCookies",[e.__dynamic.location.host,e.__dynamic.cookie.str||""]);return t||(e.__dynamic.cookies.update(e.__dynamic.location.host),e.__dynamic.cookie.str||e.__dynamic.cookie.desc.get.call(this)||"")},set(t){var i=e.__dynamic.modules.setCookieParser.parse(t,{decodeValues:!1})[0],r=e.__dynamic.fire("setCookie",[e.__dynamic.location.host,t,i]);if(r)return r;i.name=i.name.replace(/^\./g,""),Promise.resolve(e.__dynamic.cookies.set(e.__dynamic.location.host,e.__dynamic.modules.cookie.serialize(i.name,i.value,{...i,encode:a=>a}))).then(async a=>{await e.__dynamic.cookies.update(e.__dynamic.location.host),e.__dynamic.cookie.str=await e.__dynamic.cookies.get(e.__dynamic.location.host)});var n=er(e.__dynamic.cookie.str||"");n[i.name]=i.value,e.__dynamic.cookie.str=We(Object.entries(n).map(a=>({name:a[0],value:a[1]})))}}),e.navigator.serviceWorker)try{e.navigator.serviceWorker.onmessage=({data:t})=>{if(t.host==e.__dynamic.location.host&&t.type=="set-cookie"){var i=e.__dynamic.modules.cookie.parse(t.val),r=er(e.__dynamic.cookie.str||"");r[Object.entries(i)[0][0]]=Object.entries(i)[0][1],e.__dynamic.cookie.str=We(Object.entries(r).map(n=>({name:n[0],value:n[1]})))}t.host==e.__dynamic.location.host&&t.type=="cookies"&&(e.__dynamic.cookie.str=t.cookies)}}catch{}}function ir(e){e.CSSStyleDeclaration.prototype._setProperty=e.CSSStyleDeclaration.prototype.setProperty,e.CSSStyleDeclaration.prototype.setProperty=e.__dynamic.wrap(e.CSSStyleDeclaration.prototype.setProperty,function(t,...i){return(i[0]=="background-image"||i[0]=="background"||i[0]=="backgroundImage")&&(i[1]=e.__dynamic.rewrite.css.rewrite(i[1],e.__dynamic.meta)),t.apply(this,i)},"CSSStyleDeclaration.prototype.setProperty"),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"background",{get(){return this._background?this._background:this.getPropertyValue("background")},set(t){return this._background=t,this._setProperty("background",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}}),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"backgroundImage",{get(){return this._backgroundImage?this._backgroundImage:this.getPropertyValue("background-image")},set(t){return this._backgroundImage=t,this._setProperty("background-image",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}}),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"background-image",{get(){return this._backgroundImage?this._backgroundImage:this.getPropertyValue("background-image")},set(t){return this._backgroundImage=t,this._setProperty("background-image",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}})}function bt(e){e.__dynamic.createBlobHandler=async function(t,i,r){let n=(await e.__dynamic.sw.ready).active;e.__dynamic.sw.addEventListener("message",({data:{url:a}})=>{a&&e.__dynamic.elements.iframeSrc.set.call(i,a)},{once:!0}),n.postMessage({type:"createBlobHandler",blob:t,url:e.__dynamic.modules.base64.encode(r.toString().split("").slice(0,10)),location:e.__dynamic.location.href})}}var Gn=(e,t,i)=>((i=new MutationObserver(function(n){for(var a of n)e[a.type](a),document.dispatchEvent(new CustomEvent({attributes:"attrChanged",characterData:"characterData",childList:"nodeChanged"}[a.type],{detail:a}))})).observe(t,{subtree:!0,attributes:!0,childList:!0}),i);function wt(e,t){t||(t=e.__dynamic);function i(n){if(!n.rewritten&&!(n.nodeType!==1&&n.nodeType!==3)){if(n=new Proxy(n,{get(o,c){return c=="src"||c=="href"||c=="srcset"||c=="imageSrcset"||c=="data"||c=="action"?t.elements.getAttribute.call(o,c.toLowerCase()):c=="setAttribute"||c=="getAttribute"||c=="removeAttribute"||c=="hasAttribute"||c=="cloneNode"||c=="addEventListener"?(...l)=>t.elements[c].call(o,...l):c=="node"?o:o[c]},set(o,c,l){return c=="src"||c=="href"||c=="srcset"||c=="imageSrcset"||c=="data"||c=="action"?t.elements.setAttribute.call(o,c.toLowerCase(),l):o[c]=l,!0}}),n instanceof HTMLScriptElement&&(n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n.type&&n.textContent?.length?(n.type=="application/javascript"||n.type=="text/javascript"||n.type=="application/x-javascript"&&n.textContent?.length)&&(n.textContent=t.rewrite.js.rewrite(n.textContent,{type:"script"},!1,t)):!n.type&&n.textContent?.length&&(n.textContent=t.rewrite.js.rewrite(n.textContent,{type:"script"},!1,t))),n instanceof HTMLStyleElement&&n.textContent?.length&&(n.textContent=t.rewrite.css.rewrite(n.textContent,t.meta)),n instanceof HTMLIFrameElement&&(n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n.srcdoc)){n.dataset.dynamic_srcdoc=n.srcdoc;let o=new Blob([t.rewrite.html.rewrite(n.srcdoc,t.meta)],{type:"text/html"});n.src=URL.createObjectURL(o)}if(n instanceof HTMLLinkElement&&(n.getAttribute("rel")!=="stylesheet"&&n.getAttribute("rel")!=="prefetch"&&n.getAttribute("rel")!=="dns-prefetch"?(n.href&&(n.dataset.dynamic_href=n.href,n.href=t.url.encode(n.href,t.meta)),n.imageSrcset&&(n.dataset.dynamic_imagesrcset=n.imageSrcset,n.imageSrcset=t.rewrite.srcset.encode(n.imageSrcset,t))):n.addEventListener("error",o=>{if(n instanceof HTMLLinkElement)return n.href&&(n.dataset.dynamic_href=n.href,n.href=t.url.encode(n.href,t.meta)),n.imageSrcset&&(n.dataset.dynamic_imagesrcset=n.imageSrcset,n.imageSrcset=t.rewrite.srcset.encode(n.imageSrcset,t)),o.preventDefault(),!1},{once:!0})),n instanceof HTMLAnchorElement&&n.href&&(n.dataset.dynamic_href=n.href,n.href=t.url.encode(n.href,t.meta)),n instanceof HTMLFormElement&&n.action&&(n.dataset.dynamic_action=n.action,n.action=t.url.encode(n.action,t.meta)),n instanceof HTMLObjectElement&&n.data&&(n.dataset.dynamic_data=n.data,n.data=t.url.encode(n.data,t.meta)),n instanceof HTMLSourceElement&&(n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n.srcset&&(n.dataset.dynamic_srcset=n.srcset,n.srcset=t.rewrite.srcset.encode(n.srcset,t))),n instanceof HTMLImageElement&&(n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n.srcset&&(n.dataset.dynamic_srcset=n.srcset,n.srcset=t.rewrite.srcset.encode(n.srcset,t))),n instanceof HTMLAreaElement&&n.href&&(n.dataset.dynamic_href=n.href,n.href=t.url.encode(n.href,t.meta)),n instanceof HTMLBaseElement&&n.href&&(n.dataset.dynamic_href=n.href,n.href=t.url.encode(n.href,t.meta)),n instanceof HTMLInputElement&&n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n instanceof HTMLAudioElement&&n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n instanceof HTMLVideoElement&&n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n instanceof HTMLTrackElement&&n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n instanceof HTMLMediaElement&&n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n instanceof HTMLMetaElement&&n.httpEquiv){if(n.httpEquiv.toLowerCase()=="refresh"){var a=n.content.split(";url=")[0],s=n.content.split(";url=")[1];n.content=`${a};url=${t.url.encode(s,t.meta)}`}n.httpEquiv.toLowerCase()=="content-security-policy"&&n.remove()}return n instanceof HTMLElement&&(n.getAttribute("style")&&n.setAttribute("style",t.rewrite.css.rewrite(n.getAttribute("style"),t.meta)),n.integrity&&(n.setAttribute("nointegrity",n.integrity),n.removeAttribute("integrity")),n.nonce&&(n.setAttribute("nononce",n.nonce),n.removeAttribute("nonce"))),n.rewritten=!0}}let r=Gn({childList(n){i(n.target);for(let s of n.addedNodes)if(s.childNodes)for(let o of s.childNodes)i(o);if(n.target.childNodes)for(var a of n.target.childNodes)i(a)},attributes(n){},characterData(n){}},e.document);e.document.addEventListener("DOMContentLoaded",function(){r.disconnect()},{once:!0})}function rr(e){e.__dynamic.eval=e.__dynamic.wrap(eval,function(t,...i){if(i.length){var r=i[0].toString();return r=e.__dynamic.rewrite.js.rewrite(r,{type:"script"},!1,e.__dynamic),t.apply(this,[r])}},"eval"),e.__dynamic.define(e.Object.prototype,"__dynamic$eval",{get(){return this===window?e.__dynamic.eval:this.eval},set(t){return t}}),e.__dynamic$wrapEval=function(t){if(!arguments.length)return arguments[0];var i=e.__dynamic.fire("eval",[e,t]);return i||(t=e.__dynamic.rewrite.js.rewrite(t,{type:"script"},!1,e.__dynamic),t)}}function nr(e){var t=e.Function.prototype.toString;e.__dynamic.Function=e.Function.bind({}),e.__dynamic.define(e.Function.prototype,"_toString",{get(){return t},set:()=>{}});var i=function(){try{var r=Reflect.apply(t,this,[])}catch{return`function ${this.name}() { [native code] }`}return r.includes("[native code]")?`function ${this.name}() { [native code] }`:r};e.__dynamic.define(e.Function.prototype,"toString",{get(){return this.__toString||i},set(r){this.__toString=r}}),e.Function=new Proxy(e.Function,{apply(r,n,a){var s=[...a],o=s.pop();return o=`(function anonymous(${s.toString()}) {${o}})`,o=e.__dynamic.rewrite.js.rewrite(o,{type:"script"},!1,e.__dynamic),e.eval(o)},construct(r,n){var a=[...n],s=a.pop();return s=`(function anonymous(${a.toString()}) {${s}})`,s=e.__dynamic.rewrite.js.rewrite(s,{type:"script"},!1,e.__dynamic),e.eval(s)}}),e.Function.prototype.apply=e.__dynamic.wrap(e.Function.prototype.apply,function(r,...n){return n[0]==e.__dynamic$window&&(n[0]=n[0].__dynamic$self),n[0]==e.__dynamic$document&&(n[0]=e.document),Reflect.apply(r,this,n)},"Function.prototype.apply"),e.Function.prototype.call=new Proxy(e.Function.prototype.call,{apply(r,n,a){return a[0]==e.__dynamic$window&&(a[0]=a[0].__dynamic$self),a[0]==e.__dynamic$document&&(a[0]=e.document),Reflect.apply(r,n,a)}}),e.Function.prototype.bind=e.__dynamic.wrap(e.Function.prototype.bind,function(r,...n){return n[0]==e.__dynamic$window&&(n[0]=n[0].__dynamic$self),n[0]==e.__dynamic$document&&(n[0]=e.document),r.apply(this,n)},"Function.prototype.bind")}function ar(e){}function sr(e){}var zn=[{name:"get",function:"self"},{name:"func",function:"self"},{name:"location",function:"self"},{name:"mutation",function:"self"},{name:"dom",function:"self"},{name:"write",function:"self"},{name:"message",function:"self"},{name:"reflect",function:"self"},{name:"window",function:"self"},{name:"eval",function:"self"},{name:"attr",function:"self"},{name:"policy",function:"self"},{name:"worker",function:"self"},{name:"history",function:"self"},{name:"ws",function:"self"},{name:"cookie",function:"self"},{name:"fetch",function:"self"},{name:"niche",function:"self"},{name:"storage",function:"self"},{name:"style",function:"self"},{name:"rtc",function:"self"},{name:"blob",function:"self"},{name:"navigator",function:"self"}];var qe=class{constructor(t){this.methods=zn;self.constructor.name=="DedicatedWorkerGlobalScope"||self.constructor.name=="SharedWorkerGlobalScope"?(this.message=gt,this.location=dt,this.window=yt,this.get=mt,this.reflect=_t,this.imports=xt,this.blob=bt,this.mutation=wt):(this.location=dt,this.get=mt,this.window=yt,this.attr=qi,this.worker=Gi,this.history=zi,this.ws=Ki,this.fetch=Xi,this.message=gt,this.policy=ar,this.write=Qi,this.imports=xt,this.reflect=_t,this.niche=Yi,this.storage=Ji,this.navigator=Zi,this.cookie=tr,this.style=ir,this.blob=bt,this.mutation=wt,this.eval=rr,this.func=nr,this.rtc=sr,this.dom=Wi),this.ctx=t}};function Qs(e,t){return e||(e=[]),e.find(i=>i.name==t.name)?e[e.findIndex(i=>i.name==t.name)]={name:t.name,value:t.value,expires:t.expires}:e.push({name:t.name,value:t.value,expires:t.expires}),e}var he={open:async()=>Bt("__dynamic$cookies",1,{async upgrade(e){await e.createObjectStore("__dynamic$cookies")}}),set:async(e,t,i)=>{if(t.domain&&(e=t.domain),e.startsWith(".")&&(e=e.slice(1)),t.expires){var r=new Date(t.expires);if(r{var i=e.replace(/^(.*\.)?([^.]*\..*)$/g,"$2"),r=await(await t).get("__dynamic$cookies",e)||[];if(e!==i&&e!=="."+i){var n=await(await t).get("__dynamic$cookies",i);if(n)for(var{name:a,value:s,expires:o}of n){if(o){var c=new Date(o);if(c<=new Date){he.remove(e,n.find(l=>l.name==a&&l.value==s&&l.expires==o),t);continue}}r.find(l=>l.name==a&&l.value==s)||r.push({name:a,value:s,expires:o||new Date(1e13)})}}return r},remove:async(e,t,i)=>{t.domain&&(e=t.domain),e.startsWith(".")&&(e=e.slice(1));var r=await(await i).get("__dynamic$cookies",e);return r?(r=r.filter(n=>n.name!==t.name),await(await i).put("__dynamic$cookies",r,e),!0):!1},update:async(e,t)=>{var i=e.replace(/^(.*\.)?([^.]*\..*)$/g,"$2"),r=await(await t).get("__dynamic$cookies",i);if(r){for(var{name:n,value:a,expires:s}of r)if(s){var o=new Date(s);if(o<=new Date){he.remove(e,{name:n,value:a,expires:s},t);continue}}}return r}};var Ge=class{constructor(t){this.db=he;this.ctx=t}async get(t){this._db||(this._db=this.db.open());let i=await he.get(t,this._db);return We(i)}async set(t,i=""){return i=this.ctx.modules.setCookieParser.parse(i,{decodeValues:!1})[0],this._db||(this._db=this.db.open()),await he.set(t,i,this._db)}async open(){await he.open()}async update(t){return this._db||(this._db=this.db.open()),await he.update(t,this._db)}};var lr={};dr(lr,{aes:()=>po,base64:()=>mo,none:()=>fo,plain:()=>ho,xor:()=>lo});var xe=14,ne=8,ze=!1,Ys=function(e){try{return unescape(encodeURIComponent(e))}catch{throw"Error on UTF-8 encode"}},Js=function(e){try{return decodeURIComponent(escape(e))}catch{throw"Bad Key"}},Zs=function(e){var t=[],i,r;for(e.length<16&&(i=16-e.length,t=[i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i]),r=0;r16)throw"Decryption error: Maybe bad key";if(r===16)return"";for(n=0;n<16-r;n++)i+=String.fromCharCode(e[n])}else for(n=0;n<16;n++)i+=String.fromCharCode(e[n]);return i};var or=function(e,t){var i=[],r;for(t||(e=Ys(e)),r=0;r=12?3:2,r=[],n=[],a=[],s=[],o=e.concat(t),c;for(a[0]=Qn(o),s=a[0],c=1;c=0;s--)o[s]=no(a[s],t),o[s]=s===0?Pt(o[s],i):Pt(o[s],a[s-1]);for(s=0;s-1;r--)i=Zn(i),i=Jn(i),i=Lt(i,t,r),r>0&&(i=ea(i));return i},Jn=function(e){var t=ze?co:ur,i=[],r;for(r=0;r<16;r++)i[r]=t[e[r]];return i},Zn=function(e){var t=[],i=ze?[0,13,10,7,4,1,14,11,8,5,2,15,12,9,6,3]:[0,5,10,15,4,9,14,3,8,13,2,7,12,1,6,11],r;for(r=0;r<16;r++)t[r]=e[i[r]];return t},ea=function(e){var t=[],i;if(ze)for(i=0;i<4;i++)t[i*4]=At[e[i*4]]^Ct[e[1+i*4]]^kt[e[2+i*4]]^Et[e[3+i*4]],t[1+i*4]=Et[e[i*4]]^At[e[1+i*4]]^Ct[e[2+i*4]]^kt[e[3+i*4]],t[2+i*4]=kt[e[i*4]]^Et[e[1+i*4]]^At[e[2+i*4]]^Ct[e[3+i*4]],t[3+i*4]=Ct[e[i*4]]^kt[e[1+i*4]]^Et[e[2+i*4]]^At[e[3+i*4]];else for(i=0;i<4;i++)t[i*4]=vt[e[i*4]]^St[e[1+i*4]]^e[2+i*4]^e[3+i*4],t[1+i*4]=e[i*4]^vt[e[1+i*4]]^St[e[2+i*4]]^e[3+i*4],t[2+i*4]=e[i*4]^e[1+i*4]^vt[e[2+i*4]]^St[e[3+i*4]],t[3+i*4]=St[e[i*4]]^e[1+i*4]^e[2+i*4]^vt[e[3+i*4]];return t},Lt=function(e,t,i){var r=[],n;for(n=0;n<16;n++)r[n]=e[n]^t[i][n];return r},Pt=function(e,t){var i=[],r;for(r=0;r<16;r++)i[r]=e[r]^t[r];return i},ta=function(e){var t=[],i=[],r,n,a,s=[],o;for(r=0;r6&&r%ne===4&&(i=Xn(i)),a=0;a<4;a++)t[r][a]=t[r-ne][a]^i[a]}for(r=0;r127?283^e<<1:e<<1,t>>>=1;return r},Ae=function(e){var t,i=[];for(t=0;t<256;t++)i[t]=oo(e,t);return i},ur=cr("637c777bf26b6fc53001672bfed7ab76ca82c97dfa5947f0add4a2af9ca472c0b7fd9326363ff7cc34a5e5f171d8311504c723c31896059a071280e2eb27b27509832c1a1b6e5aa0523bd6b329e32f8453d100ed20fcb15b6acbbe394a4c58cfd0efaafb434d338545f9027f503c9fa851a3408f929d38f5bcb6da2110fff3d2cd0c13ec5f974417c4a77e3d645d197360814fdc222a908846eeb814de5e0bdbe0323a0a4906245cc2d3ac629195e479e7c8376d8dd54ea96c56f4ea657aae08ba78252e1ca6b4c6e8dd741f4bbd8b8a703eb5664803f60e613557b986c11d9ee1f8981169d98e949b1e87e9ce5528df8ca1890dbfe6426841992d0fb054bb16",2),co=so(ur),uo=cr("01020408102040801b366cd8ab4d9a2f5ebc63c697356ad4b37dfaefc591",2),vt=Ae(2),St=Ae(3),Et=Ae(9),Ct=Ae(11),kt=Ae(13),At=Ae(14),ia=function(e,t,i){var r=eo(8),n=Yn(or(t,i),r),a=n.key,s=n.iv,o,c=[[83,97,108,116,101,100,95,95].concat(r)];return e=or(e,i),o=to(e,a,s),o=c.concat(o),na.encode(o)},ra=function(e,t,i){var r=na.decode(e),n=r.slice(8,16),a=Yn(or(t,i),n),s=a.key,o=a.iv;return r=r.slice(16,r.length),e=io(r,s,o,i),e},Qn=function(e){function t(S,E){return S<>>32-E}function i(S,E){var P,N,B,M,I;return B=S&2147483648,M=E&2147483648,P=S&1073741824,N=E&1073741824,I=(S&1073741823)+(E&1073741823),P&N?I^2147483648^B^M:P|N?I&1073741824?I^3221225472^B^M:I^1073741824^B^M:I^B^M}function r(S,E,P){return S&E|~S&P}function n(S,E,P){return S&P|E&~P}function a(S,E,P){return S^E^P}function s(S,E,P){return E^(S|~P)}function o(S,E,P,N,B,M,I){return S=i(S,i(i(r(E,P,N),B),I)),i(t(S,M),E)}function c(S,E,P,N,B,M,I){return S=i(S,i(i(n(E,P,N),B),I)),i(t(S,M),E)}function l(S,E,P,N,B,M,I){return S=i(S,i(i(a(E,P,N),B),I)),i(t(S,M),E)}function h(S,E,P,N,B,M,I){return S=i(S,i(i(s(E,P,N),B),I)),i(t(S,M),E)}function f(S){for(var E,P=S.length,N=P+8,B=(N-N%64)/64,M=(B+1)*16,I=[],Ke=0,oe=0;oe>>29,I}function A(S){var E,P,N=[];for(P=0;P<=3;P++)E=S>>>P*8&255,N=N.concat(E);return N}var d=[],p,W,ae,se,fr,m,y,g,x,_=cr("67452301efcdab8998badcfe10325476d76aa478e8c7b756242070dbc1bdceeef57c0faf4787c62aa8304613fd469501698098d88b44f7afffff5bb1895cd7be6b901122fd987193a679438e49b40821f61e2562c040b340265e5a51e9b6c7aad62f105d02441453d8a1e681e7d3fbc821e1cde6c33707d6f4d50d87455a14eda9e3e905fcefa3f8676f02d98d2a4c8afffa39428771f6816d9d6122fde5380ca4beea444bdecfa9f6bb4b60bebfbc70289b7ec6eaa127fad4ef308504881d05d9d4d039e6db99e51fa27cf8c4ac5665f4292244432aff97ab9423a7fc93a039655b59c38f0ccc92ffeff47d85845dd16fa87e4ffe2ce6e0a30143144e0811a1f7537e82bd3af2352ad7d2bbeb86d391",8);for(d=f(e),m=_[0],y=_[1],g=_[2],x=_[3],p=0;p>2],o+=t[(s[c]&3)<<4|s[c+1]>>4],s[c+1]!==void 0?o+=t[(s[c+1]&15)<<2|s[c+2]>>6]:o+="=",s[c+2]!==void 0?o+=t[s[c+2]&63]:o+="=";for(l=o.slice(0,64)+` + ${t}`),t}};var $e=class{constructor(t){this.config={rewrite:[["icons","urlit"],["name"," - Dynamic"],["start_url","url"],["scope","url"],["short_name"," - Dynamic"],["shortcuts","urlev"]],delete:["serviceworker"]};this.ctx=t.ctx}rewrite(t,i){let r=JSON.parse(t);for(let o in this.config)if(o=="rewrite")for(var[n,a]of this.config[o]){if(a=="urlit"&&r[n]){for(var s=0;si.split(" ").map((r,n)=>n==0?t.url.encode(r,t.baseURL||t.meta):r).join(" ")).join(", ")},decode(e){return e}};var Si=class{constructor(t){this.ctx=t,this.html=new Ve(this),this.srcset=On,this.js=new Be(this),this.css=new Fe(this),this.man=new $e(this)}},Vn=Si;async function Fn(e){var t;if(e.method==="GET"){var i=new URL(e.url);t=i.searchParams.get("url")}else if(e.method==="POST"){if(t=(await e.formData()).get("url"),t===null){var i=new URL(e.url);t=i.searchParams.get("url")}if(!t)return new Response("Error: Invalid or Unfound url",{status:400})}else return new Response("Error: Invalid method",{status:405});return new Response("",{status:301,headers:{location:location.origin+this.ctx.config.prefix+this.ctx.encoding.encode(t)}})}function Bn({url:e}){return!e.toString().substr(location.origin.length,(this.ctx.config.prefix+"route").length).startsWith(this.ctx.config.prefix+"route")}function Ei({url:e}){return!e.toString().substr(location.origin.length,this.ctx.config.prefix.length).startsWith(this.ctx.config.prefix)}async function Ci(e,t,i){for(let n in e){if(this.ctx.headers.csp.indexOf(n.toLowerCase())!==-1&&delete e[n],n.toLowerCase()=="location"){e[n]=this.ctx.url.encode(e[n],t);continue}if(n.toLowerCase()==="set-cookie"){Array.isArray(e[n])?e[n]=e[n].map(a=>this.ctx.modules.setCookieParser(a,{decodeValues:!1})[0]):e[n]=this.ctx.modules.setCookieParser(e[n],{decodeValues:!1});for await(var r of e[n])await i.set(t.host,this.ctx.modules.cookie.serialize(r.name,r.value,{...r,encode:a=>a}));delete e[n];continue}}return new Headers(e)}function ki(e,t,i,r){let{referrer:n}=i;if(["origin","Origin","host","Host","referer","Referer"].forEach(a=>{e[a]&&delete e[a]}),e.Origin=`${t.protocol}//${t.host}${t.port?":"+t.port:""}`,e.Host=t.host+(t.port?":"+t.port:""),e.Referer=t.href,i.referrerPolicy=="strict-origin-when-cross-origin"&&(e.Referer=`${t.protocol}//${t.host}/`),i.referrerPolicy=="origin"&&t.origin&&(n=t.origin+"/"),r){switch(i.credentials){case"omit":break;case"same-origin":i.client&&t.origin==i.client.__dynamic$location.origin&&(e.Cookie=r),i.client||(e.Cookie=r);break;case"include":e.Cookie=r;break;default:break}e.Cookie=r}if(n&&n!=location.origin+"/")try{e.Referer=this.ctx.url.decode(n),i.referrerPolicy=="strict-origin-when-cross-origin"&&(e.Referer=new URL(this.ctx.url.decode(n)).origin),e.Origin=new URL(this.ctx.url.decode(n)).origin}catch{}return i.client&&(e.Origin=i.client.__dynamic$location.origin,e.Referer=i.client.__dynamic$location.href,i.referrerPolicy=="strict-origin-when-cross-origin"&&(e.Referer=i.client.__dynamic$location.origin)),this.ctx.config.tab&&this.ctx.config.tab.ua&&(delete e["user-agent"],delete e["User-Agent"],e["user-agent"]=this.ctx.config.tab.ua),e["sec-fetch-dest"]=i.destination||"empty",e["sec-fetch-mode"]=i.mode||"cors",e["sec-fetch-site"]=i.client?i.client.__dynamic$location.origin==t.origin?i.client.__dynamic$location.port==t.port?"same-origin":"same-site":"cross-origin":"none",i.mode=="navigate"&&(e["sec-fetch-site"]="same-origin"),e["sec-fetch-user"]="?1",new Headers(e)}function Ai(e){var t=Object.assign(Object.create(Object.getPrototypeOf(e)),e);return t}function Li(e){try{if(new new Proxy(e,{construct:()=>({})}),!Object.getOwnPropertyNames(e).includes("arguments"))throw new Error("");return!0}catch{return!1}}function Pi(e){return e.url.toString().substr(location.origin.length,e.url.toString().length).startsWith(self.__dynamic$config.assets.prefix)}async function Ri(e){let t;if(self.__dynamic$config.mode!=="development"){var i=await caches.open("__dynamic$files");i?t=await i.match(e.url)||await fetch(e):t=await fetch(e)}else t=await fetch(e);let r=await t.blob();return(e.url.startsWith(location.origin+"/dy/config.js?v=3")||e.url.startsWith(location.origin+"/dy/client.j"))&&(r=new Blob([`${await r.text()} +self.document?.currentScript?.remove();`],{type:"application/javascript"})),new Response(r,{headers:t.headers,status:t.status,statusText:t.statusText})}async function Ii(e,t){}var je=class{constructor(t){this.rawHeaders={};this.headers=new Headers({});this.status=200;this.statusText="OK";this.body=t}async blob(){return this.body}async text(){return await this.body.text()}};function Ti(e){var t=this.ctx.encoding;return typeof this.ctx.config.encoding=="object"?t={...t,...this.ctx.encoding}:t={...this.ctx.encoding[this.ctx.config.encoding]},this.ctx.encoding={...this.ctx.encoding,...t},this.ctx.encoding}function Ni(e,t,i){if(!e.url.startsWith("http"))return e.url;let r=e.url.toString();return e.url.startsWith(location.origin)&&(r=r.substr(self.location.origin.length)),r=new URL(r,new URL(t.__dynamic$location.href)).href,this.ctx.url.encode(r,i)}var Mi=class{constructor(t){this.route=Fn;this.routePath=Bn;this.path=Ei;this.resHeader=Ci;this.reqHeader=ki;this.clone=Ai;this.class=Li;this.file=Pi;this.edit=Ri;this.error=Ii;this.encode=Ti;this.rewritePath=Ni;this.about=je;this.ctx=t}},$n=Mi;function Di(e,t){if(!e)return e;if(e=new String(e).toString(),e.startsWith("about:blank"))return location.origin+this.ctx.config.prefix+e;if(!e.match(this.ctx.regex.ProtocolRegex)&&e.match(/^([a-zA-Z0-9\-]+)\:\/\//g)||e.startsWith("chrome-extension://"))return e;if(e.startsWith("javascript:")&&!e.startsWith("javascript:__dynamic$eval")){let c=new URL(e);return`javascript:__dynamic$eval(${JSON.stringify(c.pathname)})`}if(e.match(this.ctx.regex.WeirdRegex)){var i=this.ctx.regex.WeirdRegex.exec(e);i&&(e=i[2])}if(e.startsWith(location.origin+this.ctx.config.prefix)||e.startsWith(this.ctx.config.prefix)||e.startsWith(location.origin+this.ctx.config.assets.prefix+"dynamic.")||e.match(this.ctx.regex.BypassRegex))return e;if(e.match(this.ctx.regex.DataRegex)){try{var i=this.ctx.regex.DataRegex.exec(e);if(i){var[r,n,a,s,o]=i;s=="base64"?o=this.ctx.modules.base64.atob(decodeURIComponent(o)):o=decodeURIComponent(o),n&&(n=="text/html"?o=this.ctx.rewrite.html.rewrite(o,t,this.ctx.rewrite.html.generateHead(location.origin+"/dy/client.j",location.origin+"/dy/config.js?v=3","",`window.__dynamic$url = "${t.href}"; window.__dynamic$parentURL = "${location.href}";`)):n=="text/css"?o=this.ctx.rewrite.css.rewrite(o,t):(n=="text/javascript"||n=="application/javascript")&&(o=this.ctx.rewrite.js.rewrite(o,t))),s=="base64"?o=this.ctx.modules.base64.btoa(o):o=encodeURIComponent(o),a?s?e=`data:${n};${a};${s},${o}`:e=`data:${n};${a},${o}`:s?e=`data:${n};${s},${o}`:e=`data:${n},${o}`}}catch{}return e}return e=new String(e).toString(),t.href.match(this.ctx.regex.BypassRegex)&&(e=new URL(e,new URL((this.ctx.parent.__dynamic||this.ctx).meta.href)).href),e=new URL(e,t.href),(this.ctx._location?.origin||(location.origin=="null"?location.ancestorOrigins[0]:location.origin))+this.ctx.config.prefix+(this.ctx.encoding.encode(e.origin+e.pathname)+e.search+e.hash)}function Oi(e){if(!e||(e=new String(e).toString(),e.match(this.ctx.regex.BypassRegex)))return e;var t=e.indexOf(this.ctx.config.prefix);if(t==-1)return e;try{if(e=new URL(e,new URL(self.location.origin)).href,t=e.indexOf(this.ctx.config.prefix),e.slice(t+this.ctx.config.prefix.length).trim()=="about:blank")return"about:blank";var i=new URL(e).search+new URL(e).hash||"",r=new URL(this.ctx.encoding.decode(e.slice(t+this.ctx.config.prefix.length).replace("https://","https:/").replace("https:/","https://").split("?")[0]))}catch{return e}return e=r.origin+r.pathname+i+(new URL(e).search?r.search.replace("?","&"):r.search),e}var Vi=class{constructor(t){this.encode=Di;this.decode=Oi;this.ctx=t}},jn=Vi;var qs=/^(#|about:|mailto:|blob:|javascript:)/g,Gs=/^data:([a-z\/A-Z0-9\-\+]+);?(charset\=[\-A-Za-z0-9]+)?;?(base64)?[;,]*(.*)/g,zs=/^([\/A-Za-z0-9\-%]+)(http[s]?:\/\/.*)/g,Ue=class{constructor(t){this.BypassRegex=qs;this.DataRegex=Gs;this.WeirdRegex=zs;this.ctx=t}};function Fi(e){e=new URL(e.href);for(var t in e)this.ctx.meta[t]=e[t];return!0}var He=class{constructor(){}};var Bi=class extends He{constructor(i){super();this.load=Fi;this.ctx=i}},Un=Bi;var Hn={csp:["cross-origin-embedder-policy","cross-origin-opener-policy","cross-origin-resource-policy","content-security-policy","content-security-policy-report-only","expect-ct","feature-policy","origin-isolation","strict-transport-security","upgrade-insecure-requests","x-content-type-options","x-frame-options","x-permitted-cross-domain-policies","x-xss-protection"],status:{empty:[204,101,205,304]},method:{body:["GET","HEAD"]}};function $i(e,t=""){return(this.ctx.modules.mime.contentType(t||e.pathname)||"text/css").split(";")[0]==="text/css"}function ji(e,t="",i=""){let r;return!t&&this.ctx.modules.mime.contentType(e.pathname)==e.pathname?i.trim().match(/<(html|script|body)[^>]*>/g)&&(r=i.trim().indexOf((i.trim().match(/<(html|script|body)[^>]*>/g)||[])[0]),r>-1&&r<100):(this.ctx.modules.mime.contentType(t||e.pathname)||"text/html").split(";")[0]==="text/html"||i.trim().match(/\<\!(doctype|DOCTYPE) html\>/g)}function Ui(e,t=""){if(e.pathname.endsWith(".js")&&t=="text/plain")return!0;var i=(this.ctx.modules.mime.contentType(t||e.pathname)||"application/javascript").split(";")[0];return i=="text/javascript"||i=="application/javascript"||i=="application/x-javascript"}var Hi=class{constructor(t){this.html=ji;this.js=Ui;this.css=$i;this.ctx=t}},Wn=Hi;function dt(e,t=!0){let i=l=>{let h=e.__dynamic.util.clone(l);for(var f=0;fl);[...n,e.Object].forEach(l=>{delete l.prototype.__dynamic$location});let a={get(){return e.__dynamic.location},set(l){if(l instanceof e.Location)return e.__dynamic.location=l;e.__dynamic.location.href=l},configurable:!0},s=["href","host","hash","origin","hostname","port","pathname","protocol","search"],o=["assign","replace","toString","reload"];try{var c=new URL(e.__dynamic$url||e.__dynamic.url.decode(e.location.pathname+e.location.search+e.location.hash))}catch{e.__dynamic$url="about:blank";var c=new URL("about:blank")}return e.__dynamic.property=c,e.__dynamic.meta.load(c),e.__dynamic.location=e.__dynamic.util.clone(e.location),s.forEach(l=>{e.__dynamic.define(e.__dynamic.location,l,{get:()=>l=="search"&&e.location[l]+(e.location.search?c.search.replace("?","&"):c.search)||(l=="hash"?location[l]:c[l]),set:h=>{l==="href"?e.location[l]=e.__dynamic.url.encode(e.__dynamic.meta.href.replace(c[l],h),c):e.location[l]=h.toString()}})}),e.__dynamic.define(e.Object.prototype,"__dynamic$location",{get(){return this===e||this===e.__dynamic$window||this===e.document||this===e.__dynamic$document?this.__dynamic?.location:this.location},set(l){return this===e||this===e.__dynamic$window||this===e.document||this===e.__dynamic$document?this.__dynamic.location.href=l:this.location=l},configurable:!0}),o.forEach(l=>{e.__dynamic.define(e.__dynamic.location,l,{get:()=>l=="toString"?()=>c.href:new e.__dynamic.Function("arg",`return window.location.${l}(arg?${l!=="reload"&&l!=="toString"?"(self.__dynamic).url.encode(arg, new URL('"+c.href+"'))":"arg"}:null)`),set:()=>null})}),r.length&&e.__dynamic.define(e.__dynamic.location,"ancestorOrigins",{get:()=>i(r),set:()=>null}),n.forEach(l=>{e.__dynamic.define(l.prototype,"__dynamic$location",a)}),e.__dynamic.hashchange||(e.__dynamic.hashchange=(e.addEventListener("hashchange",l=>{}),!0)),e.__dynamic.location}function mt(e){e.__dynamic$get=function(t){var i=e.__dynamic.fire("get",[t]);if(i)return i;try{return t==e.parent?e.parent.__dynamic$window:t==e.top?e.top.__dynamic$window:t==e.location||(e.Location||e.WorkerLocation)&&t instanceof(e.Location||e.WorkerLocation)?e.__dynamic$location:e.Document&&t instanceof e.Document?e.__dynamic$document:t==e?e.__dynamic$window:typeof t=="function"&&t.name=="__d$Send"?e.__dynamic$message(t.target,e):t}catch{return t}},e.__dynamic$property=function(t){return typeof t!="string"?t:t=="location"?"__dynamic$location":t=="eval"?"__dynamic$eval":t},e.__dynamic$set=function(t,i){return t?e.__dynamic.url.encode(e.__dynamic.meta.href.replace(e.__dynamic.property.href,i),e.__dynamic.property):i},e.__dynamic$var=function(t,i){return window[i]=t},e.dg$=e.__dynamic$get,e.ds$=e.__dynamic$set,e.dp$=e.__dynamic$property,e.dv$=e.__dynamic$var,e.d$g_=e.__dynamic$get,e.d$s_=e.__dynamic$set,e.d$p_=e.__dynamic$property,e.d$v_=e.__dynamic$var}function yt(e){e.__dynamic.util.CreateDocumentProxy=function(i){return new Proxy(i,{get(r,n){let a=r[n];return n=="location"?i.defaultView?i.defaultView.__dynamic$location:e.__dynamic$location:n=="documentURI"&&i.defaultView||n=="baseURI"&&i.defaultView?i.defaultView.__dynamic.location.toString():a&&(typeof a=="function"&&a.toString==e.Object.toString?new Proxy(a,{apply(s,o,c){return(i.defaultView&&c[0]==i.defaultView.__dynamic$document||c[0]==e.__dynamic$document)&&(c[0]=i),a.apply(i,c)}}):a)},set(r,n,a){try{try{i.defaultView.__dynamic?i.defaultView.__dynamic.Reflect.set(r,n,a):r[n]=a}catch{return a||r[n]||!0}return a||r[n]||!0}catch{return a||r[n]||!0}}})},e.__dynamic.util.CreateWindowProxy=function(i){return new Proxy(i,{get(r,n){let a=e.__dynamic.Reflect.get(r,n);if(Object.getOwnPropertyDescriptor(r,n)){var s=Object.getOwnPropertyDescriptor(r,n);if(s?.configurable===!1&&s?.writable===!1&&s?.hasOwnProperty("enumerable"))return s?.value||s?.get?.call(r)}return n=="__dynamic$self"?i.window:n=="location"?i.__dynamic$location:n=="parent"?i.parent.__dynamic$window||i.parent:n=="top"?i.top.__dynamic?i.top.__dynamic$window:i.parent.__dynamic$window:n=="self"||n=="globalThis"?i.__dynamic$window:a&&(typeof a=="function"&&a.toString==e.Object.toString?new Proxy(a,{apply(o,c,l){return Reflect.apply(o,i,l)}}):a)},set(r,n,a){try{var s=Object.getOwnPropertyDescriptor(r,n);if(s?.writable===!1&&s?.enumerable===!1)return!1;if(n.constructor==e.Symbol)return Reflect.set(r,n,a),r[n];if(r.hasOwnProperty("undefined")&&r[n]+""==n)return r[n]||a||!0;if(n=="location")return i.__dynamic$location=a;if(r.hasOwnProperty(n)&&!r.propertyIsEnumerable(n)&&!s?.writable)return r[n];try{i.__dynamic?i.__dynamic.Reflect.set(r,n,a):r[n]=a}catch{return r[n]||!0}return r[n]||!0}catch{return r[n]||!0}}})},e.__dynamic.define(e,"__dynamic$window",{value:e.__dynamic.util.CreateWindowProxy(e),configurable:!1,enumerable:!1,writable:!1}),e.document&&e.__dynamic.define(e,"__dynamic$document",{value:e.__dynamic.util.CreateDocumentProxy(e.document),configurable:!1,enumerable:!1,writable:!1}),e.__dynamic$globalThis=e.__dynamic$window,e.__dynamic$self=e.__dynamic$window}function Wi(e){e.__dynamic.rewrite.dom=function(t,i){if(typeof e.DOMParser>"u"||!t)return t;var r=new e.DOMParser,n=r.parseFromString(t.toString(),"text/html"),a=n.documentElement;return a.querySelectorAll("script").forEach(function(s){!s.type||s.type&&s.type!=="text/javascript"&&s.type!=="application/javascript"&&s.type!=="application/x-javascript"?s.src&&(s.src=e.__dynamic.url.encode(s.getAttribute("src"),i)):s.innerHTML&&(s.innerHTML=e.__dynamic.js.encode(s.innerHTML,{type:"script"},i,{}))}),a.querySelectorAll("link").forEach(function(s){s.href&&s.getAttribute("rel")!=="stylesheet"&&(s.href=e.__dynamic.url.encode(s.getAttribute("href"),i))}),a.querySelectorAll("img").forEach(function(s){s.src&&(s.src=e.__dynamic.url.encode(s.getAttribute("src"),i)),s.srcset&&(s.srcset=e.__dynamic.rewrite.srcset.encode(s.getAttribute("srcset"),e.__dynamic))}),a.querySelectorAll("a").forEach(function(s){s.href&&(s.href=e.__dynamic.url.encode(s.getAttribute("href"),i))}),a.querySelectorAll("style").forEach(function(s){s.innerHTML&&(s.innerHTML=e.__dynamic.rewrite.css.rewrite(s.innerHTML,i))}),a.outerHTML}}function qi(e){let t=r=>new DOMParser().parseFromString(r,"text/html").body.innerHTML;if(e.__dynamic.elements.config.forEach(r=>{r.elements.forEach(n=>{r.tags.forEach(a=>{var s=Object.getOwnPropertyDescriptor(n.prototype,a);s||(s=Object.getOwnPropertyDescriptor(HTMLElement.prototype,a)),typeof n.prototype.setAttribute.__dynamic$target>"u"&&(n.prototype.setAttribute=e.__dynamic.wrap(n.prototype.setAttribute,function(o,...c){return this instanceof HTMLLinkElement&&e.__dynamic$icon&&c[0].toLowerCase()=="href"&&(this.rel=="icon"||this.rel=="shortcut icon")?(c[1]=e.__dynamic$icon,Reflect.apply(o,this,c)):e.__dynamic.elements.attributes.indexOf(c[0].toLowerCase())==-1?Reflect.apply(o,this,c):c[0].toLowerCase()=="srcset"||c[0].toLowerCase()=="imagesrcset"?(this.dataset[`dynamic_${c[0]}`]=c[1],c[1]=e.__dynamic.rewrite.srcset.encode(c[1],e.__dynamic),Reflect.apply(o,this,c)):c[0].toLowerCase()=="integrity"||c[0].toLowerCase()=="nonce"?(this.dataset[`dynamic_${c[0]}`]=c[1],this.removeAttribute(c[0]),Reflect.apply(o,this,["nointegrity",c[1]])):(this.dataset[`dynamic_${c[0]}`]=c[1],c[1]=e.__dynamic.url.encode(c[1],e.__dynamic.baseURL||e.__dynamic.meta),Reflect.apply(o,this,c))},"setAttribute"),n.prototype.setAttributeNS=e.__dynamic.wrap(n.prototype.setAttributeNS,function(o,...c){return this instanceof HTMLLinkElement&&e.__dynamic$icon&&c[1].toLowerCase()=="href"&&(this.rel=="icon"||this.rel=="shortcut icon")?(c[2]=e.__dynamic$icon,Reflect.apply(o,this,c)):e.__dynamic.elements.attributes.indexOf(c[1].toLowerCase())==-1?Reflect.apply(o,this,c):c[1].toLowerCase()=="srcset"||c[1].toLowerCase()=="imagesrcset"?(this.dataset[`dynamic_${c[1]}`]=c[2],c[2]=e.__dynamic.rewrite.srcset.encode(c[2],e.__dynamic),Reflect.apply(o,this,c)):c[1].toLowerCase()=="integrity"||c[1].toLowerCase()=="nonce"?(this.dataset[`dynamic_${c[1]}`]=c[2],this.removeAttribute(c[1]),Reflect.apply(o,this,["nointegrity",c[2]])):(this.dataset[`dynamic_${c[1]}`]=c[2],c[2]=e.__dynamic.url.encode(c[2],e.__dynamic.baseURL||e.__dynamic.meta),Reflect.apply(o,this,c))},"setAttributeNS"),n.prototype.getAttribute=e.__dynamic.wrap(n.prototype.getAttribute,function(o,...c){return this.dataset[`dynamic_${c[0]}`]?this.dataset[`dynamic_${c[0]}`]:Reflect.apply(o,this,c)},"getAttribute"),n.prototype.getAttributeNS=e.__dynamic.wrap(n.prototype.getAttributeNS,function(o,...c){return this.dataset[`dynamic_${c[1]}`]?this.dataset[`dynamic_${c[1]}`]:Reflect.apply(o,this,c)},"getAttributeNS")),e.__dynamic.define(n.prototype,a,{get(){if(r.action=="window"){let o=e.__dynamic.elements.contentWindow.get.call(this),c=!0;try{o.location.href}catch{c=!1}if(c&&(o.__dynamic||e.__dynamic.elements.client(o,e.__dynamic$config,decodeURIComponent(this.src))),a=="contentDocument")return o.document;if(a=="contentWindow")return c&&o.__dynamic$window||o}if(r.action=="css")return s.get.call(this);try{return e.__dynamic.url.decode(s.get.call(this))}catch{}return s.get.call(this)},set(o){return o&&typeof o=="string"&&(o=o.toString()),a=="href"&&this instanceof HTMLLinkElement&&e.__dynamic$icon&&(this.rel=="icon"||this.rel=="shortcut icon")&&(this.dataset[`dynamic_${a}`]=o,o=e.__dynamic$icon),r.action=="html"?(Promise.resolve(e.__dynamic.createBlobHandler(new Blob([o],{type:"text/html"}),this,o)).then(c=>{this.setAttribute(a,c)}),o):(r.action=="srcset"&&(o=e.__dynamic.rewrite.srcset.encode(o,e.__dynamic)),r.action=="rewrite"?(this.dataset[`dynamic_${a}`]=o,this.removeAttribute(a),this.setAttribute(r.new,o)):(r.action=="css"&&(o=e.__dynamic.rewrite.css.rewrite(o,e.__dynamic.meta)),r.action=="url"&&(o=e.__dynamic.url.encode(o,e.__dynamic.baseURL||e.__dynamic.meta)),this.dataset[`dynamic_${a}`]=o,s.set.call(this,o)))}})})})}),["innerHTML","outerHTML"].forEach(r=>{e.__dynamic.define(e.HTMLElement.prototype,r,{get(){return(this["__"+r]||e.__dynamic.elements[r].get.call(this)).toString()},set(n){return this["__"+r]=t(n),this instanceof e.HTMLTextAreaElement?e.__dynamic.elements[r].set.call(this,n):this instanceof e.HTMLScriptElement?e.__dynamic.elements[r].set.call(this,e.__dynamic.rewrite.js.rewrite(n,{type:"script"})):this instanceof e.HTMLStyleElement?e.__dynamic.elements[r].set.call(this,e.__dynamic.rewrite.css.rewrite(n,e.__dynamic.meta)):e.__dynamic.elements[r].set.call(this,e.__dynamic.rewrite.dom(n,e.__dynamic.meta))}})}),["MutationObserver","ResizeObserver","IntersectionObserver"].forEach(r=>{e[r].prototype.observe=e.__dynamic.wrap(e[r].prototype.observe,function(n,...a){return a[0]==e.__dynamic$document&&(a[0]=e.document),Reflect.apply(n,this,a)},r+".prototype.observe")}),e.__dynamic.defines(e.HTMLAnchorElement.prototype,{pathname:e.__dynamic.elements.createGetter("pathname"),origin:e.__dynamic.elements.createGetter("origin"),host:e.__dynamic.elements.createGetter("host"),hostname:e.__dynamic.elements.createGetter("hostname"),port:e.__dynamic.elements.createGetter("port"),protocol:e.__dynamic.elements.createGetter("protocol"),search:e.__dynamic.elements.createGetter("search"),hash:e.__dynamic.elements.createGetter("hash"),toString:{get:function(){return this.__toString||(()=>this.href?new URL(this.href).toString():"")},set:function(r){this.__toString=r}}}),e.HTMLElement.prototype.insertAdjacentHTML=e.__dynamic.wrap(e.HTMLElement.prototype.insertAdjacentHTML,function(r,...n){return this instanceof e.HTMLStyleElement?Reflect.apply(r,this,[n[0],e.__dynamic.rewrite.css.rewrite(n[1],e.__dynamic.meta)]):this instanceof e.HTMLScriptElement?Reflect.apply(r,this,[n[0],e.__dynamic.rewrite.js.rewrite(n[1],{type:"script"},!1,e.__dynamic)]):this instanceof e.HTMLTextAreaElement?Reflect.apply(r,this,n):Reflect.apply(r,this,[n[0],e.__dynamic.rewrite.html.rewrite(n[1],e.__dynamic.meta)])},"insertAdjacentHTML"),[[e.Node,"textContent"],[e.HTMLElement,"innerText"]].forEach(([r,n])=>{var a=Object.getOwnPropertyDescriptor(r.prototype,n);function s(){return this["__"+n]||a?.get&&a.get.call(this)}e.__dynamic.define(e.HTMLStyleElement.prototype,n,{get:s,set(o){return this["__"+n]=o,a?.set&&a.set.call(this,e.__dynamic.rewrite.css.rewrite(o,e.__dynamic.meta))}}),e.__dynamic.define(e.HTMLScriptElement.prototype,n,{get:s,set(o){return this["__"+n]=o,this.type!==null||this.type!=="application/javascript"||this.type!=="text/javascript"||this.type!=="application/x-javascript"?a?.set&&a.set.call(this,o):a?.set&&a.set.call(this,e.__dynamic.rewrite.js.rewrite(o,{type:"script"},!1,e.__dynamic))}})}),e.Text.prototype.toString=function(){return this.textContent},e.document.createElement=e.__dynamic.wrap(e.document.createElement,function(r,...n){var a=Reflect.apply(r,this,n);return a.rewritten=!0,n[0].toLowerCase()=="iframe"&&(a.src="about:blank"),a},"createElement"),!document.querySelector('link[rel="icon"], link[rel="shortcut icon"]')){var i=document.createElement("link");i.rel="icon",i.href=(e.__dynamic$icon||"/favicon.ico")+"?dynamic",i.dataset.dynamic_hidden="true",document.head.appendChild(i)}e.__dynamic.define(e.Attr.prototype,"value",{get(){return this.__value||e.__dynamic.elements.attrValue.get.call(this)},set(r){return this.__value=r,this.name=="href"||this.name=="src"?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.url.encode(r,e.__dynamic.meta)):this.name=="style"?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.rewrite.css.rewrite(r,e.__dynamic.meta)):this.name=="onclick"?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.rewrite.js.rewrite(r,{type:"script"},!1,e.__dynamic)):e.__dynamic.elements.attrValue.set.call(this,r)}})}function Gi(e){let t=e.XMLHttpRequest;e.Worker=new Proxy(e.Worker,{construct(i,r){if(r[0])if(r[0]=r[0].toString(),r[0].trim().startsWith(`blob:${e.location.origin}`)){let n=new t;n.open("GET",r[0],!1),n.send();let a=e.__dynamic.rewrite.js.rewrite(n.responseText,{type:"worker"},!0),s=new Blob([a],{type:"application/javascript"});r[0]=URL.createObjectURL(s)}else r[0]=e.__dynamic.url.encode(r[0],e.__dynamic.meta);return Reflect.construct(i,r)}})}function zi(e){e.__dynamic$history=function(t,...i){i[2]&&(i[2]=e.__dynamic.url.encode(i[2],e.__dynamic.meta)),e.__dynamic.Reflect.apply(t,this,i),e.__dynamic.client.location(e,!0,!1)},e.History.prototype.pushState=e.__dynamic.wrap(e.History.prototype.pushState,e.__dynamic$history),e.History.prototype.replaceState=e.__dynamic.wrap(e.History.prototype.replaceState,e.__dynamic$history)}var Ks="!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~",Xs="%";function qn(e){e=e.toString();let t="";for(let i=0;ie.location.protocol.replace("http","ws")+"//"+new URL((e.__dynamic$config.bare.path+"/"||"/bare/")+"v1/",new URL(location.origin)).href.replace(/http(s?):\/\//g,"").replace(/\/\//g,"/"),i=Object.getOwnPropertyDescriptor(e.WebSocket.prototype,"url");e.__dynamic.define(e.WebSocket.prototype,"url",{get(){let r=i.get.call(this);return e.__dynamic.url.decode(r)},set(r){return!1}}),e.WebSocket=e.__dynamic.wrap(e.WebSocket,(r,...n)=>{console.log(n);let a=new URL(n[0]),s={remote:{host:a.hostname,port:a.port||(a.protocol==="wss:"?"443":"80"),path:a.pathname+a.search,protocol:a.protocol},headers:{Host:a.hostname+(a.port?":"+a.port:""),Origin:e.__dynamic$location.origin,Pragma:"no-cache","Cache-Control":"no-cache",Upgrade:"websocket",Connection:"Upgrade"},forward_headers:["accept-encoding","accept-language","sec-websocket-extensions","sec-websocket-key","sec-websocket-version","sec-websocket-accept"]};return n[1]&&(s.headers["sec-websocket-protocol"]=n[1].toString()),[t(),["bare",qn(JSON.stringify(s))]]})}function Xi(e){e.Request=e.__dynamic.wrap(e.Request,function(t,...i){if(i[0]instanceof t){let r=Reflect.construct(t,i);return i[0].mode==="navigate"&&(r.mode="same-origin"),r}return i[0]&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),i}),e.__dynamic.define(e.Request.prototype,"url",{get(){return e.__dynamic.url.decode(e.__dynamic.http.RequestURL.get.call(this))},set(t){return t}}),e.fetch=e.__dynamic.wrap(e.fetch,function(t,...i){return e.Request&&(i[0].constructor.name==="Request"||i[0]instanceof e.Request)?(console.log(i[0]),Reflect.apply(t,e,i)):(i[0]&&e.__dynamic&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),Reflect.apply(t,e,i))},"fetch"),e.XMLHttpRequest.prototype.open=e.__dynamic.wrap(e.XMLHttpRequest.prototype.open,function(t,...i){return i[1]&&(i[1]=e.__dynamic.url.encode(i[1],e.__dynamic.meta)),i[2]===!1&&(i[2]=!0),Reflect.apply(t,this,i)},"XMLHttpRequest.prototype.open"),Object.defineProperty(e.XMLHttpRequest.prototype,"responseURL",{get(){return e.__dynamic.url.decode(e.__dynamic.http.XMLResponseURL.get.call(this))},set(t){return t}}),Object.defineProperty(e.Response.prototype,"url",{get(){return e.__dynamic.url.decode(e.__dynamic.http.ResponseURL.get.call(this))},set(t){return t}}),e.open=e.__dynamic.wrap(e.open,function(t,...i){i[0]!=""&&i[0]&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),i[0]==""&&(i[0]="about:blank");let r=Reflect.apply(t,this,i);r.opener=e.__dynamic$window;try{new URL(i[0]).protocol==="about:"?r.__dynamic$url="about:srcdoc":r.__dynamic$url=e.__dynamic.url.decode(i[0])}catch{r.__dynamic$url="about:srcdoc"}return e.__dynamic.elements.client(r,e.__dynamic$config,r.__dynamic$url),r.__dynamic$window},"window.open"),e.__dynamic.define(e,"__dynamic$import",{get(){return function(t,i){try{return e.__dynamic.url.encode(t,new URL(i))}catch{return e.__dynamic.url.encode(t,e.__dynamic.meta)}}},set:()=>{}})}function gt(e){let t=a=>a.constructor.name=="Worker"||a.constructor.name=="MessagePort"||e.constructor.name=="DedicatedWorkerGlobalScope",i=a=>a.constructor.name=="Window"||a.constructor.name=="global",r=(a,s)=>Object.keys(window||{}).map(o=>parseInt(o)).filter(o=>isFinite(o)).map(o=>window[o]).filter(o=>o||!1).find(o=>{try{return o.name==a&&o.location.href==s}catch{return!1}});e.__dynamic$message=function(a,s=top){a||(a=e);function o(){var c=arguments;return t(a)||!i(a)?a.postMessage.call(a,...c):(a.__dynamic$self&&(a=a.__dynamic$self),(a._postMessage||a.postMessage).call(a,[c[0],s.__dynamic$location.origin,s.location.href,s.name,s!==e],"*",c[2]||[]))}return o},e.constructor.name=="Window"&&(e.addEventListener&&(e.addEventListener=new Proxy(e.addEventListener,{apply(a,s,o){if(s==e.__dynamic$window&&(s=e),!o[1]||!o[0]||typeof o[1]!="function")return Reflect.apply(a,s,o);if(o[0]=="message"){var c=o[1].bind({});o[1]=function(l){return c(n(l))}}return Reflect.apply(a,s,o)}})),e.constructor.name=="Window"&&e.__dynamic.define(e,"onmessage",{get(){return e._onmessage||null},set(a){return e._onmessage&&e.removeEventListener("message",e._onmessage),e.addEventListener("message",a),e._onmessage=a}}));function n(a){let s=e.__dynamic.util.clone(a),o;a.source&&(o=r(a.data[3],a.data[2])||a.currentTarget),e.__dynamic.define(s,"isTrusted",{value:!0,writable:!1}),a.origin&&(Array.isArray(a.data)&&a.data.length==5?e.__dynamic.define(s,"origin",{value:a.data[1],writable:!1}):e.__dynamic.define(s,"origin",{value:a.origin,writable:!1})),a.data&&(Array.isArray(a.data)&&a.data.length==5?e.__dynamic.define(s,"data",{value:a.data[0],writable:!1}):e.__dynamic.define(s,"data",{value:a.data,writable:!1})),a.source&&(o?e.__dynamic.define(s,"source",{value:o?.__dynamic$window||o,writable:!0}):e.__dynamic.define(s,"source",{value:o||Array.isArray(a.data)&&a.data.length==3&&a.data[2]===!0?a.source:a.currentTarget,writable:!0}));for(var c in a)switch(c){default:c!=="isTrusted"&&c!=="origin"&&c!=="data"&&c!=="source"&&e.__dynamic.define(s,c,{value:a[c],writable:!1});break}return s}}function Qi(e){function t(i,...r){for(var n in r)r[n]=e.__dynamic.rewrite.dom(r[n],e.__dynamic.meta);return i.apply(this,r)}["write","writeln"].forEach(i=>{e.document[i]=e.__dynamic.wrap(e.document[i],t,`document.${i}`)})}function xt(e){e.importScripts=new Proxy(e.importScripts,{apply(t,i,r){return[...r].forEach((n,a)=>{r[a]=e.__dynamic.url.encode(n,e.__dynamic.meta)}),Reflect.apply(t,i,r)}}),e.__dynamic.define(e.__dynamic,"_location",{value:e.location,writable:!0}),e.__dynamic.define(e.WorkerGlobalScope.prototype,"location",{get(){return e.__dynamic.location},set(t){return t}}),e.location=e.__dynamic.location}function _t(e){var t=e.Reflect.get.bind({}),i=e.Reflect.set.bind({});e.Reflect.set=e.__dynamic.wrap(e.Reflect.set,function(r,...n){return n[0].constructor.name=="Window"&&n[1]=="location"?(n[0].__dynamic$location=n[2],!0):n[0].constructor.name=="Location"?(e.__dynamic$location[n[1]]=n[2],!0):Reflect.apply(i,this,n)},"Reflect.set"),e.Reflect.get=e.__dynamic.wrap(e.Reflect.get,function(r,...n){if(typeof n[0]=="object"){if(n[0].constructor.name=="Window"){if(n[1]=="location")return n[0].__dynamic?n[0].__dynamic$location:Reflect.apply(t,this,n);if(n[0][n[1]]&&n[0][n[1]].constructor.name=="Window")return n[0][n[1]].__dynamic$window}if(n[0].constructor.name=="Location")return e.__dynamic$location[n[1]]}return Reflect.apply(t,this,n)},"Reflect.get"),e.__dynamic.Reflect={get:t,set:i,apply:e.Reflect.apply.bind({}),construct:e.Reflect.construct.bind({}),defineProperty:e.Reflect.defineProperty.bind({}),deleteProperty:e.Reflect.deleteProperty.bind({}),getOwnPropertyDescriptor:e.Reflect.getOwnPropertyDescriptor.bind({}),getPrototypeOf:e.Reflect.getPrototypeOf.bind({}),has:e.Reflect.has.bind({}),isExtensible:e.Reflect.isExtensible.bind({}),ownKeys:e.Reflect.ownKeys.bind({}),preventExtensions:e.Reflect.preventExtensions.bind({}),setPrototypeOf:e.Reflect.setPrototypeOf.bind({})}}function Yi(e){e.__dynamic.define(e.document,"origin",{value:e.__dynamic$location.origin,configurable:!1,enumerable:!1}),e.__dynamic.define(e.document,"domain",{value:e.__dynamic$location.hostname,configurable:!1,enumerable:!1}),["referrer","URL","documentURI"].forEach(t=>{e.__dynamic.define(e.document,t,{value:e.__dynamic$location.toString(),configurable:!1,enumerable:!1})}),[e.document,e.HTMLElement.prototype].forEach(t=>{e.__dynamic.define(t,"baseURI",{get(){return(e.__dynamic.baseURL||e.__dynamic$location).href}})}),["getEntries","getEntriesByName","getEntriesByType"].forEach(t=>{e.performance[t]=new Proxy(e.performance[t],{apply(i,r,n){return Reflect.apply(i,r,n).filter(a=>!a.name?.includes(e.location.origin+"/dy/dynamic.")).filter(a=>!a.name.includes(e.location.origin+e.__dynamic.config.prefix+"caches/")).map(a=>{if(a.name){var s=e.__dynamic.util.clone(a);s.__defineGetter__("name",function(){return this._name}),s.__defineSetter__("name",function(l){this._name=l}),s.name=e.__dynamic.url.decode(a.name),e.__dynamic.define(s,"name",{get:void 0,set:void 0}),e.__dynamic.define(s,"name",{value:s._name,writable:!1}),delete s._name;for(var o in a)if(o!="name"){if(typeof a[o]=="function")var c=new Proxy(a[o],{apply(l,h,f){if(l.name=="toJSON"){var A={};for(var d in s)A[d]=s[d];return A}return Reflect.apply(l,a,f)}});else var c=a[o];Object.defineProperty(s,o,{value:c,writable:!0})}a=s}return a})}})}),e.MouseEvent&&(e.MouseEvent.prototype.initMouseEvent=e.__dynamic.wrap(e.MouseEvent.prototype.initMouseEvent,function(t,...i){return i.length&&(i=i.map(r=>r==e.__dynamic$window?e:r)),Reflect.apply(t,this,i)})),e.KeyboardEvent&&(e.KeyboardEvent.prototype.initKeyboardEvent=e.__dynamic.wrap(e.KeyboardEvent.prototype.initKeyboardEvent,function(t,...i){return i.length&&(i=i.map(r=>r==e.__dynamic$window?e:r)),Reflect.apply(t,this,i)})),e.StorageEvent&&(e.StorageEvent.prototype.initStorageEvent=e.__dynamic.wrap(e.StorageEvent.prototype.initStorageEvent,function(t,...i){return i.length&&(i=i.map(r=>r==e.localStorage?e.__dynamic.storage.localStorage:r==e.sessionStorage?e.__dynamic.storage.sessionStorage:r)),Reflect.apply(t,this,i)})),e.Object.defineProperty=e.__dynamic.wrap(e.Object.defineProperty,function(t,...i){try{return Reflect.apply(t,this,i)}catch(r){r.toString().includes("Cannot redefine property:")&&(i[0].__defined||(i[0].__defined={}),i[0].__defined[i[1]]=i[2])}}),e.__dynamic.meta.origin=="https://www.google.com"&&(e.setInterval=new Proxy(e.setInterval,{apply(t,i,r){return r[1]==500?null:Reflect.apply(t,i,r)}}))}function Ji(e){e.Storage.prototype.setItem=e.__dynamic.wrap(e.Storage.prototype.setItem,function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)},"Storage.prototype.setItem"),e.Storage.prototype.getItem=e.__dynamic.wrap(e.Storage.prototype.getItem,function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)||null},"Storage.prototype.getItem"),e.Storage.prototype.removeItem=e.__dynamic.wrap(e.Storage.prototype.removeItem,function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)},"Storage.prototype.removeItem"),e.Storage.prototype.clear=e.__dynamic.wrap(e.Storage.prototype.clear,function(t,...i){for(var r=[],n=0;n{e["__dynamic$"+t]=new Proxy(e[t],{get(i,r){if(r=="length"){for(var n=[],a=0;ae?e.split(";").map(t=>t.split("=")).reduce((t,i)=>(t[i[0].trim()]=i[1].trim(),t),{}):{},We=(e=[])=>e.map(t=>`${t.name}=${t.value}`).join("; ");function tr(e){if(delete e.Document.prototype.cookie,e.__dynamic.define(e.document,"cookie",{get(){var t=e.__dynamic.fire("getCookies",[e.__dynamic.location.host,e.__dynamic.cookie.str||""]);return t||(e.__dynamic.cookies.update(e.__dynamic.location.host),e.__dynamic.cookie.str||e.__dynamic.cookie.desc.get.call(this)||"")},set(t){var i=e.__dynamic.modules.setCookieParser.parse(t,{decodeValues:!1})[0],r=e.__dynamic.fire("setCookie",[e.__dynamic.location.host,t,i]);if(r)return r;i.name=i.name.replace(/^\./g,""),Promise.resolve(e.__dynamic.cookies.set(e.__dynamic.location.host,e.__dynamic.modules.cookie.serialize(i.name,i.value,{...i,encode:a=>a}))).then(async a=>{await e.__dynamic.cookies.update(e.__dynamic.location.host),e.__dynamic.cookie.str=await e.__dynamic.cookies.get(e.__dynamic.location.host)});var n=er(e.__dynamic.cookie.str||"");n[i.name]=i.value,e.__dynamic.cookie.str=We(Object.entries(n).map(a=>({name:a[0],value:a[1]})))}}),e.navigator.serviceWorker)try{e.navigator.serviceWorker.onmessage=({data:t})=>{if(t.host==e.__dynamic.location.host&&t.type=="set-cookie"){var i=e.__dynamic.modules.cookie.parse(t.val),r=er(e.__dynamic.cookie.str||"");r[Object.entries(i)[0][0]]=Object.entries(i)[0][1],e.__dynamic.cookie.str=We(Object.entries(r).map(n=>({name:n[0],value:n[1]})))}t.host==e.__dynamic.location.host&&t.type=="cookies"&&(e.__dynamic.cookie.str=t.cookies)}}catch{}}function ir(e){e.CSSStyleDeclaration.prototype._setProperty=e.CSSStyleDeclaration.prototype.setProperty,e.CSSStyleDeclaration.prototype.setProperty=e.__dynamic.wrap(e.CSSStyleDeclaration.prototype.setProperty,function(t,...i){return(i[0]=="background-image"||i[0]=="background"||i[0]=="backgroundImage")&&(i[1]=e.__dynamic.rewrite.css.rewrite(i[1],e.__dynamic.meta)),t.apply(this,i)},"CSSStyleDeclaration.prototype.setProperty"),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"background",{get(){return this._background?this._background:this.getPropertyValue("background")},set(t){return this._background=t,this._setProperty("background",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}}),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"backgroundImage",{get(){return this._backgroundImage?this._backgroundImage:this.getPropertyValue("background-image")},set(t){return this._backgroundImage=t,this._setProperty("background-image",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}}),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"background-image",{get(){return this._backgroundImage?this._backgroundImage:this.getPropertyValue("background-image")},set(t){return this._backgroundImage=t,this._setProperty("background-image",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}})}function bt(e){e.__dynamic.createBlobHandler=async function(t,i,r){let n=(await e.__dynamic.sw.ready).active;e.__dynamic.sw.addEventListener("message",({data:{url:a}})=>{a&&e.__dynamic.elements.iframeSrc.set.call(i,a)},{once:!0}),n.postMessage({type:"createBlobHandler",blob:t,url:e.__dynamic.modules.base64.encode(r.toString().split("").slice(0,10)),location:e.__dynamic.location.href})}}var Gn=(e,t,i)=>((i=new MutationObserver(function(n){for(var a of n)e[a.type](a),document.dispatchEvent(new CustomEvent({attributes:"attrChanged",characterData:"characterData",childList:"nodeChanged"}[a.type],{detail:a}))})).observe(t,{subtree:!0,attributes:!0,childList:!0}),i);function wt(e,t){t||(t=e.__dynamic);function i(n){if(!n.rewritten&&!(n.nodeType!==1&&n.nodeType!==3)){if(n=new Proxy(n,{get(o,c){return c=="src"||c=="href"||c=="srcset"||c=="imageSrcset"||c=="data"||c=="action"?t.elements.getAttribute.call(o,c.toLowerCase()):c=="setAttribute"||c=="getAttribute"||c=="removeAttribute"||c=="hasAttribute"||c=="cloneNode"||c=="addEventListener"?(...l)=>t.elements[c].call(o,...l):c=="node"?o:o[c]},set(o,c,l){return c=="src"||c=="href"||c=="srcset"||c=="imageSrcset"||c=="data"||c=="action"?t.elements.setAttribute.call(o,c.toLowerCase(),l):o[c]=l,!0}}),n instanceof HTMLScriptElement&&(n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n.type&&n.textContent?.length?(n.type=="application/javascript"||n.type=="text/javascript"||n.type=="application/x-javascript"&&n.textContent?.length)&&(n.textContent=t.rewrite.js.rewrite(n.textContent,{type:"script"},!1,t)):!n.type&&n.textContent?.length&&(n.textContent=t.rewrite.js.rewrite(n.textContent,{type:"script"},!1,t))),n instanceof HTMLStyleElement&&n.textContent?.length&&(n.textContent=t.rewrite.css.rewrite(n.textContent,t.meta)),n instanceof HTMLIFrameElement&&(n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n.srcdoc)){n.dataset.dynamic_srcdoc=n.srcdoc;let o=new Blob([t.rewrite.html.rewrite(n.srcdoc,t.meta)],{type:"text/html"});n.src=URL.createObjectURL(o)}if(n instanceof HTMLLinkElement&&(n.getAttribute("rel")!=="stylesheet"&&n.getAttribute("rel")!=="prefetch"&&n.getAttribute("rel")!=="dns-prefetch"?(n.href&&(n.dataset.dynamic_href=n.href,n.href=t.url.encode(n.href,t.meta)),n.imageSrcset&&(n.dataset.dynamic_imagesrcset=n.imageSrcset,n.imageSrcset=t.rewrite.srcset.encode(n.imageSrcset,t))):n.addEventListener("error",o=>{if(n instanceof HTMLLinkElement)return n.href&&(n.dataset.dynamic_href=n.href,n.href=t.url.encode(n.href,t.meta)),n.imageSrcset&&(n.dataset.dynamic_imagesrcset=n.imageSrcset,n.imageSrcset=t.rewrite.srcset.encode(n.imageSrcset,t)),o.preventDefault(),!1},{once:!0})),n instanceof HTMLAnchorElement&&n.href&&(n.dataset.dynamic_href=n.href,n.href=t.url.encode(n.href,t.meta)),n instanceof HTMLFormElement&&n.action&&(n.dataset.dynamic_action=n.action,n.action=t.url.encode(n.action,t.meta)),n instanceof HTMLObjectElement&&n.data&&(n.dataset.dynamic_data=n.data,n.data=t.url.encode(n.data,t.meta)),n instanceof HTMLSourceElement&&(n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n.srcset&&(n.dataset.dynamic_srcset=n.srcset,n.srcset=t.rewrite.srcset.encode(n.srcset,t))),n instanceof HTMLImageElement&&(n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n.srcset&&(n.dataset.dynamic_srcset=n.srcset,n.srcset=t.rewrite.srcset.encode(n.srcset,t))),n instanceof HTMLAreaElement&&n.href&&(n.dataset.dynamic_href=n.href,n.href=t.url.encode(n.href,t.meta)),n instanceof HTMLBaseElement&&n.href&&(n.dataset.dynamic_href=n.href,n.href=t.url.encode(n.href,t.meta)),n instanceof HTMLInputElement&&n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n instanceof HTMLAudioElement&&n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n instanceof HTMLVideoElement&&n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n instanceof HTMLTrackElement&&n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n instanceof HTMLMediaElement&&n.src&&(n.dataset.dynamic_src=n.src,n.src=t.url.encode(n.src,t.meta)),n instanceof HTMLMetaElement&&n.httpEquiv){if(n.httpEquiv.toLowerCase()=="refresh"){var a=n.content.split(";url=")[0],s=n.content.split(";url=")[1];n.content=`${a};url=${t.url.encode(s,t.meta)}`}n.httpEquiv.toLowerCase()=="content-security-policy"&&n.remove()}return n instanceof HTMLElement&&(n.getAttribute("style")&&n.setAttribute("style",t.rewrite.css.rewrite(n.getAttribute("style"),t.meta)),n.integrity&&(n.setAttribute("nointegrity",n.integrity),n.removeAttribute("integrity")),n.nonce&&(n.setAttribute("nononce",n.nonce),n.removeAttribute("nonce"))),n.rewritten=!0}}let r=Gn({childList(n){i(n.target);for(let s of n.addedNodes)if(s.childNodes)for(let o of s.childNodes)i(o);if(n.target.childNodes)for(var a of n.target.childNodes)i(a)},attributes(n){},characterData(n){}},e.document);e.document.addEventListener("DOMContentLoaded",function(){r.disconnect()},{once:!0})}function rr(e){e.__dynamic.eval=e.__dynamic.wrap(eval,function(t,...i){if(i.length){var r=i[0].toString();return r=e.__dynamic.rewrite.js.rewrite(r,{type:"script"},!1,e.__dynamic),t.apply(this,[r])}},"eval"),e.__dynamic.define(e.Object.prototype,"__dynamic$eval",{get(){return this===window?e.__dynamic.eval:this.eval},set(t){return t}}),e.__dynamic$wrapEval=function(t){if(!arguments.length)return arguments[0];var i=e.__dynamic.fire("eval",[e,t]);return i||(t=e.__dynamic.rewrite.js.rewrite(t,{type:"script"},!1,e.__dynamic),t)}}function nr(e){var t=e.Function.prototype.toString;e.__dynamic.Function=e.Function.bind({}),e.__dynamic.define(e.Function.prototype,"_toString",{get(){return t},set:()=>{}});var i=function(){try{var r=Reflect.apply(t,this,[])}catch{return`function ${this.name}() { [native code] }`}return r.includes("[native code]")?`function ${this.name}() { [native code] }`:r};e.__dynamic.define(e.Function.prototype,"toString",{get(){return this.__toString||i},set(r){this.__toString=r}}),e.Function=new Proxy(e.Function,{apply(r,n,a){var s=[...a],o=s.pop();return o=`(function anonymous(${s.toString()}) {${o}})`,o=e.__dynamic.rewrite.js.rewrite(o,{type:"script"},!1,e.__dynamic),e.eval(o)},construct(r,n){var a=[...n],s=a.pop();return s=`(function anonymous(${a.toString()}) {${s}})`,s=e.__dynamic.rewrite.js.rewrite(s,{type:"script"},!1,e.__dynamic),e.eval(s)}}),e.Function.prototype.apply=e.__dynamic.wrap(e.Function.prototype.apply,function(r,...n){return n[0]==e.__dynamic$window&&(n[0]=n[0].__dynamic$self),n[0]==e.__dynamic$document&&(n[0]=e.document),Reflect.apply(r,this,n)},"Function.prototype.apply"),e.Function.prototype.call=new Proxy(e.Function.prototype.call,{apply(r,n,a){return a[0]==e.__dynamic$window&&(a[0]=a[0].__dynamic$self),a[0]==e.__dynamic$document&&(a[0]=e.document),Reflect.apply(r,n,a)}}),e.Function.prototype.bind=e.__dynamic.wrap(e.Function.prototype.bind,function(r,...n){return n[0]==e.__dynamic$window&&(n[0]=n[0].__dynamic$self),n[0]==e.__dynamic$document&&(n[0]=e.document),r.apply(this,n)},"Function.prototype.bind")}function ar(e){}function sr(e){}var zn=[{name:"get",function:"self"},{name:"func",function:"self"},{name:"location",function:"self"},{name:"mutation",function:"self"},{name:"dom",function:"self"},{name:"write",function:"self"},{name:"message",function:"self"},{name:"reflect",function:"self"},{name:"window",function:"self"},{name:"eval",function:"self"},{name:"attr",function:"self"},{name:"policy",function:"self"},{name:"worker",function:"self"},{name:"history",function:"self"},{name:"ws",function:"self"},{name:"cookie",function:"self"},{name:"fetch",function:"self"},{name:"niche",function:"self"},{name:"storage",function:"self"},{name:"style",function:"self"},{name:"rtc",function:"self"},{name:"blob",function:"self"},{name:"navigator",function:"self"}];var qe=class{constructor(t){this.methods=zn;self.constructor.name=="DedicatedWorkerGlobalScope"||self.constructor.name=="SharedWorkerGlobalScope"?(this.message=gt,this.location=dt,this.window=yt,this.get=mt,this.reflect=_t,this.imports=xt,this.blob=bt,this.mutation=wt):(this.location=dt,this.get=mt,this.window=yt,this.attr=qi,this.worker=Gi,this.history=zi,this.ws=Ki,this.fetch=Xi,this.message=gt,this.policy=ar,this.write=Qi,this.imports=xt,this.reflect=_t,this.niche=Yi,this.storage=Ji,this.navigator=Zi,this.cookie=tr,this.style=ir,this.blob=bt,this.mutation=wt,this.eval=rr,this.func=nr,this.rtc=sr,this.dom=Wi),this.ctx=t}};function Qs(e,t){return e||(e=[]),e.find(i=>i.name==t.name)?e[e.findIndex(i=>i.name==t.name)]={name:t.name,value:t.value,expires:t.expires}:e.push({name:t.name,value:t.value,expires:t.expires}),e}var he={open:async()=>Bt("__dynamic$cookies",1,{async upgrade(e){await e.createObjectStore("__dynamic$cookies")}}),set:async(e,t,i)=>{if(t.domain&&(e=t.domain),e.startsWith(".")&&(e=e.slice(1)),t.expires){var r=new Date(t.expires);if(r{var i=e.replace(/^(.*\.)?([^.]*\..*)$/g,"$2"),r=await(await t).get("__dynamic$cookies",e)||[];if(e!==i&&e!=="."+i){var n=await(await t).get("__dynamic$cookies",i);if(n)for(var{name:a,value:s,expires:o}of n){if(o){var c=new Date(o);if(c<=new Date){he.remove(e,n.find(l=>l.name==a&&l.value==s&&l.expires==o),t);continue}}r.find(l=>l.name==a&&l.value==s)||r.push({name:a,value:s,expires:o||new Date(1e13)})}}return r},remove:async(e,t,i)=>{t.domain&&(e=t.domain),e.startsWith(".")&&(e=e.slice(1));var r=await(await i).get("__dynamic$cookies",e);return r?(r=r.filter(n=>n.name!==t.name),await(await i).put("__dynamic$cookies",r,e),!0):!1},update:async(e,t)=>{var i=e.replace(/^(.*\.)?([^.]*\..*)$/g,"$2"),r=await(await t).get("__dynamic$cookies",i);if(r){for(var{name:n,value:a,expires:s}of r)if(s){var o=new Date(s);if(o<=new Date){he.remove(e,{name:n,value:a,expires:s},t);continue}}}return r}};var Ge=class{constructor(t){this.db=he;this.ctx=t}async get(t){this._db||(this._db=this.db.open());let i=await he.get(t,this._db);return We(i)}async set(t,i=""){return i=this.ctx.modules.setCookieParser.parse(i,{decodeValues:!1})[0],this._db||(this._db=this.db.open()),await he.set(t,i,this._db)}async open(){await he.open()}async update(t){return this._db||(this._db=this.db.open()),await he.update(t,this._db)}};var lr={};dr(lr,{aes:()=>po,base64:()=>mo,none:()=>fo,plain:()=>ho,xor:()=>lo});var xe=14,ne=8,ze=!1,Ys=function(e){try{return unescape(encodeURIComponent(e))}catch{throw"Error on UTF-8 encode"}},Js=function(e){try{return decodeURIComponent(escape(e))}catch{throw"Bad Key"}},Zs=function(e){var t=[],i,r;for(e.length<16&&(i=16-e.length,t=[i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i]),r=0;r16)throw"Decryption error: Maybe bad key";if(r===16)return"";for(n=0;n<16-r;n++)i+=String.fromCharCode(e[n])}else for(n=0;n<16;n++)i+=String.fromCharCode(e[n]);return i};var or=function(e,t){var i=[],r;for(t||(e=Ys(e)),r=0;r=12?3:2,r=[],n=[],a=[],s=[],o=e.concat(t),c;for(a[0]=Qn(o),s=a[0],c=1;c=0;s--)o[s]=no(a[s],t),o[s]=s===0?Pt(o[s],i):Pt(o[s],a[s-1]);for(s=0;s-1;r--)i=Zn(i),i=Jn(i),i=Lt(i,t,r),r>0&&(i=ea(i));return i},Jn=function(e){var t=ze?co:ur,i=[],r;for(r=0;r<16;r++)i[r]=t[e[r]];return i},Zn=function(e){var t=[],i=ze?[0,13,10,7,4,1,14,11,8,5,2,15,12,9,6,3]:[0,5,10,15,4,9,14,3,8,13,2,7,12,1,6,11],r;for(r=0;r<16;r++)t[r]=e[i[r]];return t},ea=function(e){var t=[],i;if(ze)for(i=0;i<4;i++)t[i*4]=At[e[i*4]]^Ct[e[1+i*4]]^kt[e[2+i*4]]^Et[e[3+i*4]],t[1+i*4]=Et[e[i*4]]^At[e[1+i*4]]^Ct[e[2+i*4]]^kt[e[3+i*4]],t[2+i*4]=kt[e[i*4]]^Et[e[1+i*4]]^At[e[2+i*4]]^Ct[e[3+i*4]],t[3+i*4]=Ct[e[i*4]]^kt[e[1+i*4]]^Et[e[2+i*4]]^At[e[3+i*4]];else for(i=0;i<4;i++)t[i*4]=vt[e[i*4]]^St[e[1+i*4]]^e[2+i*4]^e[3+i*4],t[1+i*4]=e[i*4]^vt[e[1+i*4]]^St[e[2+i*4]]^e[3+i*4],t[2+i*4]=e[i*4]^e[1+i*4]^vt[e[2+i*4]]^St[e[3+i*4]],t[3+i*4]=St[e[i*4]]^e[1+i*4]^e[2+i*4]^vt[e[3+i*4]];return t},Lt=function(e,t,i){var r=[],n;for(n=0;n<16;n++)r[n]=e[n]^t[i][n];return r},Pt=function(e,t){var i=[],r;for(r=0;r<16;r++)i[r]=e[r]^t[r];return i},ta=function(e){var t=[],i=[],r,n,a,s=[],o;for(r=0;r6&&r%ne===4&&(i=Xn(i)),a=0;a<4;a++)t[r][a]=t[r-ne][a]^i[a]}for(r=0;r127?283^e<<1:e<<1,t>>>=1;return r},Ae=function(e){var t,i=[];for(t=0;t<256;t++)i[t]=oo(e,t);return i},ur=cr("637c777bf26b6fc53001672bfed7ab76ca82c97dfa5947f0add4a2af9ca472c0b7fd9326363ff7cc34a5e5f171d8311504c723c31896059a071280e2eb27b27509832c1a1b6e5aa0523bd6b329e32f8453d100ed20fcb15b6acbbe394a4c58cfd0efaafb434d338545f9027f503c9fa851a3408f929d38f5bcb6da2110fff3d2cd0c13ec5f974417c4a77e3d645d197360814fdc222a908846eeb814de5e0bdbe0323a0a4906245cc2d3ac629195e479e7c8376d8dd54ea96c56f4ea657aae08ba78252e1ca6b4c6e8dd741f4bbd8b8a703eb5664803f60e613557b986c11d9ee1f8981169d98e949b1e87e9ce5528df8ca1890dbfe6426841992d0fb054bb16",2),co=so(ur),uo=cr("01020408102040801b366cd8ab4d9a2f5ebc63c697356ad4b37dfaefc591",2),vt=Ae(2),St=Ae(3),Et=Ae(9),Ct=Ae(11),kt=Ae(13),At=Ae(14),ia=function(e,t,i){var r=eo(8),n=Yn(or(t,i),r),a=n.key,s=n.iv,o,c=[[83,97,108,116,101,100,95,95].concat(r)];return e=or(e,i),o=to(e,a,s),o=c.concat(o),na.encode(o)},ra=function(e,t,i){var r=na.decode(e),n=r.slice(8,16),a=Yn(or(t,i),n),s=a.key,o=a.iv;return r=r.slice(16,r.length),e=io(r,s,o,i),e},Qn=function(e){function t(S,E){return S<>>32-E}function i(S,E){var P,N,B,M,I;return B=S&2147483648,M=E&2147483648,P=S&1073741824,N=E&1073741824,I=(S&1073741823)+(E&1073741823),P&N?I^2147483648^B^M:P|N?I&1073741824?I^3221225472^B^M:I^1073741824^B^M:I^B^M}function r(S,E,P){return S&E|~S&P}function n(S,E,P){return S&P|E&~P}function a(S,E,P){return S^E^P}function s(S,E,P){return E^(S|~P)}function o(S,E,P,N,B,M,I){return S=i(S,i(i(r(E,P,N),B),I)),i(t(S,M),E)}function c(S,E,P,N,B,M,I){return S=i(S,i(i(n(E,P,N),B),I)),i(t(S,M),E)}function l(S,E,P,N,B,M,I){return S=i(S,i(i(a(E,P,N),B),I)),i(t(S,M),E)}function h(S,E,P,N,B,M,I){return S=i(S,i(i(s(E,P,N),B),I)),i(t(S,M),E)}function f(S){for(var E,P=S.length,N=P+8,B=(N-N%64)/64,M=(B+1)*16,I=[],Ke=0,oe=0;oe>>29,I}function A(S){var E,P,N=[];for(P=0;P<=3;P++)E=S>>>P*8&255,N=N.concat(E);return N}var d=[],p,W,ae,se,fr,m,y,g,x,_=cr("67452301efcdab8998badcfe10325476d76aa478e8c7b756242070dbc1bdceeef57c0faf4787c62aa8304613fd469501698098d88b44f7afffff5bb1895cd7be6b901122fd987193a679438e49b40821f61e2562c040b340265e5a51e9b6c7aad62f105d02441453d8a1e681e7d3fbc821e1cde6c33707d6f4d50d87455a14eda9e3e905fcefa3f8676f02d98d2a4c8afffa39428771f6816d9d6122fde5380ca4beea444bdecfa9f6bb4b60bebfbc70289b7ec6eaa127fad4ef308504881d05d9d4d039e6db99e51fa27cf8c4ac5665f4292244432aff97ab9423a7fc93a039655b59c38f0ccc92ffeff47d85845dd16fa87e4ffe2ce6e0a30143144e0811a1f7537e82bd3af2352ad7d2bbeb86d391",8);for(d=f(e),m=_[0],y=_[1],g=_[2],x=_[3],p=0;p>2],o+=t[(s[c]&3)<<4|s[c+1]>>4],s[c+1]!==void 0?o+=t[(s[c+1]&15)<<2|s[c+2]>>6]:o+="=",s[c+2]!==void 0?o+=t[s[c+2]&63]:o+="=";for(l=o.slice(0,64)+` `,c=1;c>4,o[1]=(s[1]&15)<<4|s[2]>>2,o[2]=(s[2]&3)<<6|s[3],a.push(o[0],o[1],o[2]);return a=a.slice(0,a.length-a.length%16),a};return typeof Array.indexOf=="function"&&(e=t),{encode:i,decode:r}}();var lo={encode:(e,t=2)=>e&&encodeURIComponent(e.split("").map((i,r)=>r%t?String.fromCharCode(i.charCodeAt(0)^t):i).join("")),decode:(e,t=2)=>e&&decodeURIComponent(e).split("").map((i,r)=>r%t?String.fromCharCode(i.charCodeAt(0)^t):i).join("")},ho={encode:e=>e&&encodeURIComponent(e),decode:e=>e&&decodeURIComponent(e)},po={encode:e=>e&&encodeURIComponent(ia(e,"dynamic").substring(10)),decode:e=>e&&ra("U2FsdGVkX1"+decodeURIComponent(e),"dynamic")},fo={encode:e=>e,decode:e=>e},mo={encode:e=>e&&decodeURIComponent(btoa(e)),decode:e=>e&&atob(e)};var Rt=class{constructor(t){this.modules=new Mn(this);this.util=new $n(this);this.meta=new Un(this);this.regex=new Ue(this);this.rewrite=new Vn(this);this.url=new jn(this);this.is=new Wn(this);this.cookies=new Ge(this);this.client=new qe(this);this.encoding=lr;this.headers=Hn;this.listeners=[];t&&!this.config&&(this.config=t),t&&this.util.encode(self)}on(t,i){this.listeners.push({event:t,cb:i})}fire(t,i){let r=!1;for(let n of this.listeners)n.event===t&&(i=(r=!0,n.cb(...i)));return r&&i?i:null}};function hr(e,t){t||(t=e.__dynamic),t.define=new e.Proxy(e.Object.defineProperty,{apply(i,r,n){try{return Reflect.apply(i,r,n)}catch{return n[2]}}}),t.defines=new e.Proxy(e.Object.defineProperties,{apply(i,r,n){try{return Reflect.apply(i,r,n)}catch{return n[1]}}}),e.parent&&(t.parent=e.parent),e.top&&(t.top=e.top),e.document&&(t.elements={attributes:["src","href","srcset","action","data","integrity","nonce","imagesrcset"],iframeSrc:Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"src"),contentWindow:Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"contentWindow"),innerHTML:Object.getOwnPropertyDescriptor(e.Element.prototype,"innerHTML"),outerHTML:Object.getOwnPropertyDescriptor(e.Element.prototype,"outerHTML"),attrValue:Object.getOwnPropertyDescriptor(e.Attr.prototype,"value"),setAttribute:e.Element.prototype.setAttribute,getAttribute:e.Element.prototype.getAttribute,removeAttribute:e.Element.prototype.removeAttribute,hasAttribute:e.Element.prototype.hasAttribute,cloneNode:e.Node.prototype.cloneNode,addEventListener:e.Node.prototype.addEventListener,config:[{elements:[e.HTMLScriptElement,e.HTMLIFrameElement,e.HTMLEmbedElement,e.HTMLInputElement,e.HTMLTrackElement,e.HTMLMediaElement,e.HTMLSourceElement,e.Image,e.HTMLImageElement],tags:["src"],action:"url"},{elements:[e.HTMLSourceElement,e.HTMLImageElement],tags:["srcset"],action:"srcset"},{elements:[e.HTMLAnchorElement,e.HTMLLinkElement,e.HTMLAreaElement,e.SVGImageElement,e.HTMLBaseElement],tags:["href"],action:"url"},{elements:[e.HTMLIFrameElement],tags:["contentWindow","contentDocument"],action:"window"},{elements:[e.HTMLFormElement],tags:["action"],action:"url"},{elements:[e.HTMLObjectElement],tags:["data"],action:"url"},{elements:[e.HTMLScriptElement,e.HTMLLinkElement],tags:["integrity"],action:"rewrite",new:"nointegrity"},{elements:[e.HTMLScriptElement,e.HTMLLinkElement],tags:["nonce"],action:"rewrite",new:"nononce"},{elements:[e.HTMLIFrameElement],tags:["srcdoc"],action:"html"},{elements:[e.HTMLElement],tags:["style"],action:"css"},{elements:[e.HTMLLinkElement],tags:["imageSrcset"],action:"srcset"}],createGetter:i=>({get(){return new URL(this.href||e.__dynamic$location.href)[i]},set(r){}}),client:It},e.__dynamic.baseURL=e.document?new URL(e.__dynamic.url.decode(e.document.baseURI)):null),e.document&&(t.cookie={str:e.__dynamic$cookie||"",desc:Object.getOwnPropertyDescriptor(e.Document.prototype,"cookie")}),e.XMLHttpRequest&&(t.http={XMLResponseURL:Object.getOwnPropertyDescriptor(e.XMLHttpRequest.prototype,"responseURL"),ResponseURL:Object.getOwnPropertyDescriptor(e.Response.prototype,"url"),RequestURL:Object.getOwnPropertyDescriptor(e.Request.prototype,"url"),XMLHttpRequest:e.XMLHttpRequest}),e.Storage&&(t.storage={localStorage:e.localStorage,sessionStorage:e.sessionStorage,keys:{localStorage:Object.keys(e.localStorage),sessionStorage:Object.keys(e.sessionStorage)},methods:["getItem","setItem","removeItem","clear","length","keys","values","entries","forEach","hasOwnProperty","toString","toLocaleString","valueOf","isPrototypeOf","propertyIsEnumerable","constructor","key"]},t.storage.cloned={localStorage:t.util.clone(t.storage.localStorage),sessionStorage:t.util.clone(t.storage.sessionStorage)}),e.RTCPeerConnection&&(t.webrtc={endpoints:["stun:stun.webice.org"]}),e.trustedTypes&&(t.trustedTypes={policy:e.trustedTypes.createPolicy("dynamic",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i,createURL:i=>i}),createScript:e.TrustedTypePolicy.prototype.createScript}),e.__dynamic$config.tab&&(e.document&&e.__dynamic$config.tab.title&&(document.title=e.__dynamic$config.tab.title,t.define(e.document,"title",{get(){return e.__dynamic$config.tab.title},set(i){return i}})),e.__dynamic$config.tab.icon&&(e.__dynamic$icon=e.__dynamic$config.tab.icon),e.Navigator&&e.__dynamic$config.tab.ua&&t.define(e.navigator,"userAgent",{get(){return e.__dynamic$config.tab.ua},set(){}}))}function pr(e){e.__dynamic.wrap=function(t,i,r){if(t.__dynamic$target)return t;if(t.toString().includes("{ [native code] }")&&!t.prototype){var n=i,a=t,s=function(...c){if(typeof r=="string"){var l=e.__dynamic.fire(r,this?[this,...c]:c);if(l)return l}var h=n.call(this,a,...c);return h},o=function(...c){return s.call(this,...c)};return e.__dynamic.define(o,"name",{value:t.name,writable:!1}),o.__dynamic$target=t,o.toString=()=>`function ${t.name}() { [native code] }`,o}else try{let c=class extends t{constructor(...l){var h=[...l],f=i.call(t,t,...l);f&&(l=f),super(...l),r&&r(this,h)}};return Object.defineProperty(c,"name",{value:t.name,writable:!1}),c}catch{return t}}}function It(e,t={},i=""){if(e.hasOwnProperty("__dynamic"))return!1;e.hasOwnProperty("__dynamic$config")||(e.__dynamic$config=t),e.parent?.__dynamic&&(e.__dynamic$bare=e.parent.__dynamic$bare);let r=new Rt(e.__dynamic$config);r.config.bare.path=typeof r.config.bare.path=="string"||r.config.bare.path instanceof URL?[new URL(r.config.bare.path,e.location)][0]:r.config.bare.path.map(a=>new URL(a,e.location)),e.__dynamic$baseURL=i||e.__dynamic$url||r.url.decode(location.pathname+location.search+location.hash)||"",e.__dynamic=r,e.__dynamic.bare=new e.__dynamic.modules.bare.BareClient(e.__dynamic$config.bare.path,e.__dynamic$bare),e.__dynamic.meta.load(new URL(e.__dynamic$baseURL)),hr(e,null),pr(e);for(var n of e.__dynamic.client.methods){let a=n.name,s=Object.entries(e.__dynamic.client).find(o=>o[0]==a);a=="mutation"&&e.frameElement||n.function=="self"&&s[1](e)}return e}var Fl=It(self);})(); /*! Bundled license information: diff --git a/static/dy/client.js.map b/static/dy/client.js.map index 78ae1bce7..86752dabc 100644 --- a/static/dy/client.js.map +++ b/static/dy/client.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../node_modules/path-browserify/index.js", "../node_modules/cookie/index.js", "../node_modules/set-cookie-parser/lib/set-cookie.js", "../node_modules/@dynamic-pkg/mime/index.js", "../lib/global/modules.ts", "../node_modules/idb/build/index.js", "../node_modules/idb/build/wrap-idb-value.js", "../node_modules/acorn/dist/acorn.mjs", "../node_modules/@tomphttp/bare-client/src/snapshot.ts", "../node_modules/@tomphttp/bare-client/src/BareTypes.ts", "../node_modules/@tomphttp/bare-client/src/Client.ts", "../node_modules/@tomphttp/bare-client/src/md5.ts", "../node_modules/@tomphttp/bare-client/src/splitHeaderUtil.ts", "../node_modules/@tomphttp/bare-client/src/V3.ts", "../node_modules/@tomphttp/bare-client/src/webSocket.ts", "../node_modules/@tomphttp/bare-client/src/BareClient.ts", "../node_modules/@tomphttp/bare-client/src/index.ts", "../node_modules/astring/dist/astring.mjs", "../lib/global/rewrite/html/generateHead.ts", "../lib/global/rewrite/html/html.ts", "../lib/global/rewrite/css.ts", "../lib/global/rewrite/js/iterate.ts", "../lib/global/rewrite/js/process.ts", "../lib/global/rewrite/js/type/Identifier.ts", "../lib/global/rewrite/js/object/PostMessage.ts", "../lib/global/rewrite/js/type/MemberExpression.ts", "../lib/global/rewrite/js/type/Literal.ts", "../lib/global/rewrite/js/object/Eval.ts", "../lib/global/rewrite/js/type/CallExpression.ts", "../lib/global/rewrite/js/type/AssignmentExpression.ts", "../lib/global/rewrite/js/type/Property.ts", "../lib/global/rewrite/js/type/Imports.ts", "../lib/global/rewrite/js/type/VariableDeclaractor.ts", "../lib/global/rewrite/js/emit.ts", "../lib/global/rewrite/js/js.ts", "../lib/global/rewrite/manifest.ts", "../lib/global/rewrite/html/srcset.ts", "../lib/global/rewrite.ts", "../lib/global/util/route.ts", "../lib/global/util/path.ts", "../lib/global/util/resHeader.ts", "../lib/global/util/reqHeader.ts", "../lib/global/util/clone.ts", "../lib/global/util/class.ts", "../lib/global/util/file.ts", "../lib/global/util/edit.ts", "../lib/global/util/error.ts", "../lib/global/util/about.ts", "../lib/global/util/encode.ts", "../lib/global/util/rewritePath.ts", "../lib/global/util.ts", "../lib/global/url/encode.ts", "../lib/global/url/decode.ts", "../lib/global/url.ts", "../lib/global/regex.ts", "../lib/global/meta/load.ts", "../lib/global/meta/type.ts", "../lib/global/meta.ts", "../lib/global/headers.ts", "../lib/global/is/css.ts", "../lib/global/is/html.ts", "../lib/global/is/js.ts", "../lib/global/istype.ts", "../lib/global/client/methods/core/location.ts", "../lib/global/client/methods/core/get.ts", "../lib/global/client/methods/core/window.ts", "../lib/global/client/methods/core/html.ts", "../lib/global/client/methods/document/attr.ts", "../lib/global/client/methods/window/worker.ts", "../lib/global/client/methods/window/history.ts", "../lib/global/client/methods/core/protocol.ts", "../lib/global/client/methods/window/ws.ts", "../lib/global/client/methods/window/fetch.ts", "../lib/global/client/methods/window/message.ts", "../lib/global/client/methods/document/write.ts", "../lib/global/client/methods/window/imports.ts", "../lib/global/client/methods/core/reflect.ts", "../lib/global/client/methods/window/niche.ts", "../lib/global/client/methods/window/storage.ts", "../lib/global/client/methods/window/navigator.ts", "../lib/global/cookie/parse.ts", "../lib/global/client/methods/document/cookie.ts", "../lib/global/client/methods/document/style.ts", "../lib/global/client/methods/window/blob.ts", "../node_modules/@dynamic-pkg/mutation/index.js", "../lib/global/client/methods/document/mutation.ts", "../lib/global/client/methods/core/eval.ts", "../lib/global/client/methods/core/function.ts", "../lib/global/client/methods/window/policy.ts", "../lib/global/client/methods/window/rtc.ts", "../lib/global/client/methods.ts", "../lib/global/client/index.ts", "../lib/global/cookie/db.ts", "../lib/global/cookie/index.ts", "../lib/global/codec.ts", "../lib/global/aes.js", "../lib/global/client.ts", "../lib/global/client/methods/init.ts", "../lib/global/client/methods/wrap.ts", "../lib/client/client.ts", "../lib/client/index.ts"], - "sourcesContent": ["// 'path' module extracted from Node.js v8.11.1 (only the posix part)\n// transplited with Babel\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nfunction assertPath(path) {\n if (typeof path !== 'string') {\n throw new TypeError('Path must be a string. Received ' + JSON.stringify(path));\n }\n}\n\n// Resolves . and .. elements in a path with directory names\nfunction normalizeStringPosix(path, allowAboveRoot) {\n var res = '';\n var lastSegmentLength = 0;\n var lastSlash = -1;\n var dots = 0;\n var code;\n for (var i = 0; i <= path.length; ++i) {\n if (i < path.length)\n code = path.charCodeAt(i);\n else if (code === 47 /*/*/)\n break;\n else\n code = 47 /*/*/;\n if (code === 47 /*/*/) {\n if (lastSlash === i - 1 || dots === 1) {\n // NOOP\n } else if (lastSlash !== i - 1 && dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) {\n if (res.length > 2) {\n var lastSlashIndex = res.lastIndexOf('/');\n if (lastSlashIndex !== res.length - 1) {\n if (lastSlashIndex === -1) {\n res = '';\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf('/');\n }\n lastSlash = i;\n dots = 0;\n continue;\n }\n } else if (res.length === 2 || res.length === 1) {\n res = '';\n lastSegmentLength = 0;\n lastSlash = i;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n if (res.length > 0)\n res += '/..';\n else\n res = '..';\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0)\n res += '/' + path.slice(lastSlash + 1, i);\n else\n res = path.slice(lastSlash + 1, i);\n lastSegmentLength = i - lastSlash - 1;\n }\n lastSlash = i;\n dots = 0;\n } else if (code === 46 /*.*/ && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\n\nfunction _format(sep, pathObject) {\n var dir = pathObject.dir || pathObject.root;\n var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || '');\n if (!dir) {\n return base;\n }\n if (dir === pathObject.root) {\n return dir + base;\n }\n return dir + sep + base;\n}\n\nvar posix = {\n // path.resolve([from ...], to)\n resolve: function resolve() {\n var resolvedPath = '';\n var resolvedAbsolute = false;\n var cwd;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path;\n if (i >= 0)\n path = arguments[i];\n else {\n if (cwd === undefined)\n cwd = process.cwd();\n path = cwd;\n }\n\n assertPath(path);\n\n // Skip empty entries\n if (path.length === 0) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/;\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);\n\n if (resolvedAbsolute) {\n if (resolvedPath.length > 0)\n return '/' + resolvedPath;\n else\n return '/';\n } else if (resolvedPath.length > 0) {\n return resolvedPath;\n } else {\n return '.';\n }\n },\n\n normalize: function normalize(path) {\n assertPath(path);\n\n if (path.length === 0) return '.';\n\n var isAbsolute = path.charCodeAt(0) === 47 /*/*/;\n var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/;\n\n // Normalize the path\n path = normalizeStringPosix(path, !isAbsolute);\n\n if (path.length === 0 && !isAbsolute) path = '.';\n if (path.length > 0 && trailingSeparator) path += '/';\n\n if (isAbsolute) return '/' + path;\n return path;\n },\n\n isAbsolute: function isAbsolute(path) {\n assertPath(path);\n return path.length > 0 && path.charCodeAt(0) === 47 /*/*/;\n },\n\n join: function join() {\n if (arguments.length === 0)\n return '.';\n var joined;\n for (var i = 0; i < arguments.length; ++i) {\n var arg = arguments[i];\n assertPath(arg);\n if (arg.length > 0) {\n if (joined === undefined)\n joined = arg;\n else\n joined += '/' + arg;\n }\n }\n if (joined === undefined)\n return '.';\n return posix.normalize(joined);\n },\n\n relative: function relative(from, to) {\n assertPath(from);\n assertPath(to);\n\n if (from === to) return '';\n\n from = posix.resolve(from);\n to = posix.resolve(to);\n\n if (from === to) return '';\n\n // Trim any leading backslashes\n var fromStart = 1;\n for (; fromStart < from.length; ++fromStart) {\n if (from.charCodeAt(fromStart) !== 47 /*/*/)\n break;\n }\n var fromEnd = from.length;\n var fromLen = fromEnd - fromStart;\n\n // Trim any leading backslashes\n var toStart = 1;\n for (; toStart < to.length; ++toStart) {\n if (to.charCodeAt(toStart) !== 47 /*/*/)\n break;\n }\n var toEnd = to.length;\n var toLen = toEnd - toStart;\n\n // Compare paths to find the longest common path from root\n var length = fromLen < toLen ? fromLen : toLen;\n var lastCommonSep = -1;\n var i = 0;\n for (; i <= length; ++i) {\n if (i === length) {\n if (toLen > length) {\n if (to.charCodeAt(toStart + i) === 47 /*/*/) {\n // We get here if `from` is the exact base path for `to`.\n // For example: from='/foo/bar'; to='/foo/bar/baz'\n return to.slice(toStart + i + 1);\n } else if (i === 0) {\n // We get here if `from` is the root\n // For example: from='/'; to='/foo'\n return to.slice(toStart + i);\n }\n } else if (fromLen > length) {\n if (from.charCodeAt(fromStart + i) === 47 /*/*/) {\n // We get here if `to` is the exact base path for `from`.\n // For example: from='/foo/bar/baz'; to='/foo/bar'\n lastCommonSep = i;\n } else if (i === 0) {\n // We get here if `to` is the root.\n // For example: from='/foo'; to='/'\n lastCommonSep = 0;\n }\n }\n break;\n }\n var fromCode = from.charCodeAt(fromStart + i);\n var toCode = to.charCodeAt(toStart + i);\n if (fromCode !== toCode)\n break;\n else if (fromCode === 47 /*/*/)\n lastCommonSep = i;\n }\n\n var out = '';\n // Generate the relative path based on the path difference between `to`\n // and `from`\n for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {\n if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) {\n if (out.length === 0)\n out += '..';\n else\n out += '/..';\n }\n }\n\n // Lastly, append the rest of the destination (`to`) path that comes after\n // the common path parts\n if (out.length > 0)\n return out + to.slice(toStart + lastCommonSep);\n else {\n toStart += lastCommonSep;\n if (to.charCodeAt(toStart) === 47 /*/*/)\n ++toStart;\n return to.slice(toStart);\n }\n },\n\n _makeLong: function _makeLong(path) {\n return path;\n },\n\n dirname: function dirname(path) {\n assertPath(path);\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) return '//';\n return path.slice(0, end);\n },\n\n basename: function basename(path, ext) {\n if (ext !== undefined && typeof ext !== 'string') throw new TypeError('\"ext\" argument must be a string');\n assertPath(path);\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {\n if (ext.length === path.length && ext === path) return '';\n var extIdx = ext.length - 1;\n var firstNonSlashEnd = -1;\n for (i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else {\n if (firstNonSlashEnd === -1) {\n // We saw the first non-path separator, remember this index in case\n // we need it if the extension ends up not matching\n matchedSlash = false;\n firstNonSlashEnd = i + 1;\n }\n if (extIdx >= 0) {\n // Try to match the explicit extension\n if (code === ext.charCodeAt(extIdx)) {\n if (--extIdx === -1) {\n // We matched the extension, so mark this as the end of our path\n // component\n end = i;\n }\n } else {\n // Extension does not match, so our result is the entire path\n // component\n extIdx = -1;\n end = firstNonSlashEnd;\n }\n }\n }\n }\n\n if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;\n return path.slice(start, end);\n } else {\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n }\n },\n\n extname: function extname(path) {\n assertPath(path);\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n },\n\n format: function format(pathObject) {\n if (pathObject === null || typeof pathObject !== 'object') {\n throw new TypeError('The \"pathObject\" argument must be of type Object. Received type ' + typeof pathObject);\n }\n return _format('/', pathObject);\n },\n\n parse: function parse(path) {\n assertPath(path);\n\n var ret = { root: '', dir: '', base: '', ext: '', name: '' };\n if (path.length === 0) return ret;\n var code = path.charCodeAt(0);\n var isAbsolute = code === 47 /*/*/;\n var start;\n if (isAbsolute) {\n ret.root = '/';\n start = 1;\n } else {\n start = 0;\n }\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n var i = path.length - 1;\n\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n\n // Get non-dir info\n for (; i >= start; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n if (end !== -1) {\n if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);\n }\n } else {\n if (startPart === 0 && isAbsolute) {\n ret.name = path.slice(1, startDot);\n ret.base = path.slice(1, end);\n } else {\n ret.name = path.slice(startPart, startDot);\n ret.base = path.slice(startPart, end);\n }\n ret.ext = path.slice(startDot, end);\n }\n\n if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/';\n\n return ret;\n },\n\n sep: '/',\n delimiter: ':',\n win32: null,\n posix: null\n};\n\nposix.posix = posix;\n\nmodule.exports = posix;\n", "/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module exports.\n * @public\n */\n\nexports.parse = parse;\nexports.serialize = serialize;\n\n/**\n * Module variables.\n * @private\n */\n\nvar __toString = Object.prototype.toString\n\n/**\n * RegExp to match field-content in RFC 7230 sec 3.2\n *\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n * obs-text = %x80-FF\n */\n\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\n/**\n * Parse a cookie header.\n *\n * Parse the given cookie header string into an object\n * The object has the various cookies as keys(names) => values\n *\n * @param {string} str\n * @param {object} [options]\n * @return {object}\n * @public\n */\n\nfunction parse(str, options) {\n if (typeof str !== 'string') {\n throw new TypeError('argument str must be a string');\n }\n\n var obj = {}\n var opt = options || {};\n var dec = opt.decode || decode;\n\n var index = 0\n while (index < str.length) {\n var eqIdx = str.indexOf('=', index)\n\n // no more cookie pairs\n if (eqIdx === -1) {\n break\n }\n\n var endIdx = str.indexOf(';', index)\n\n if (endIdx === -1) {\n endIdx = str.length\n } else if (endIdx < eqIdx) {\n // backtrack on prior semicolon\n index = str.lastIndexOf(';', eqIdx - 1) + 1\n continue\n }\n\n var key = str.slice(index, eqIdx).trim()\n\n // only assign once\n if (undefined === obj[key]) {\n var val = str.slice(eqIdx + 1, endIdx).trim()\n\n // quoted values\n if (val.charCodeAt(0) === 0x22) {\n val = val.slice(1, -1)\n }\n\n obj[key] = tryDecode(val, dec);\n }\n\n index = endIdx + 1\n }\n\n return obj;\n}\n\n/**\n * Serialize data into a cookie header.\n *\n * Serialize the a name value pair into a cookie string suitable for\n * http headers. An optional options object specified cookie parameters.\n *\n * serialize('foo', 'bar', { httpOnly: true })\n * => \"foo=bar; httpOnly\"\n *\n * @param {string} name\n * @param {string} val\n * @param {object} [options]\n * @return {string}\n * @public\n */\n\nfunction serialize(name, val, options) {\n var opt = options || {};\n var enc = opt.encode || encode;\n\n if (typeof enc !== 'function') {\n throw new TypeError('option encode is invalid');\n }\n\n if (!fieldContentRegExp.test(name)) {\n throw new TypeError('argument name is invalid');\n }\n\n var value = enc(val);\n\n if (value && !fieldContentRegExp.test(value)) {\n throw new TypeError('argument val is invalid');\n }\n\n var str = name + '=' + value;\n\n if (null != opt.maxAge) {\n var maxAge = opt.maxAge - 0;\n\n if (isNaN(maxAge) || !isFinite(maxAge)) {\n throw new TypeError('option maxAge is invalid')\n }\n\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n var expires = opt.expires\n\n if (!isDate(expires) || isNaN(expires.valueOf())) {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + expires.toUTCString()\n }\n\n if (opt.httpOnly) {\n str += '; HttpOnly';\n }\n\n if (opt.secure) {\n str += '; Secure';\n }\n\n if (opt.priority) {\n var priority = typeof opt.priority === 'string'\n ? opt.priority.toLowerCase()\n : opt.priority\n\n switch (priority) {\n case 'low':\n str += '; Priority=Low'\n break\n case 'medium':\n str += '; Priority=Medium'\n break\n case 'high':\n str += '; Priority=High'\n break\n default:\n throw new TypeError('option priority is invalid')\n }\n }\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string'\n ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n}\n\n/**\n * URL-decode string value. Optimized to skip native call when no %.\n *\n * @param {string} str\n * @returns {string}\n */\n\nfunction decode (str) {\n return str.indexOf('%') !== -1\n ? decodeURIComponent(str)\n : str\n}\n\n/**\n * URL-encode value.\n *\n * @param {string} str\n * @returns {string}\n */\n\nfunction encode (val) {\n return encodeURIComponent(val)\n}\n\n/**\n * Determine if value is a Date.\n *\n * @param {*} val\n * @private\n */\n\nfunction isDate (val) {\n return __toString.call(val) === '[object Date]' ||\n val instanceof Date\n}\n\n/**\n * Try decoding a string using a decoding function.\n *\n * @param {string} str\n * @param {function} decode\n * @private\n */\n\nfunction tryDecode(str, decode) {\n try {\n return decode(str);\n } catch (e) {\n return str;\n }\n}\n", "\"use strict\";\n\nvar defaultParseOptions = {\n decodeValues: true,\n map: false,\n silent: false,\n};\n\nfunction isNonEmptyString(str) {\n return typeof str === \"string\" && !!str.trim();\n}\n\nfunction parseString(setCookieValue, options) {\n var parts = setCookieValue.split(\";\").filter(isNonEmptyString);\n\n var nameValuePairStr = parts.shift();\n var parsed = parseNameValuePair(nameValuePairStr);\n var name = parsed.name;\n var value = parsed.value;\n\n options = options\n ? Object.assign({}, defaultParseOptions, options)\n : defaultParseOptions;\n\n try {\n value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value\n } catch (e) {\n console.error(\n \"set-cookie-parser encountered an error while decoding a cookie with value '\" +\n value +\n \"'. Set options.decodeValues to false to disable this feature.\",\n e\n );\n }\n\n var cookie = {\n name: name,\n value: value,\n };\n\n parts.forEach(function (part) {\n var sides = part.split(\"=\");\n var key = sides.shift().trimLeft().toLowerCase();\n var value = sides.join(\"=\");\n if (key === \"expires\") {\n cookie.expires = new Date(value);\n } else if (key === \"max-age\") {\n cookie.maxAge = parseInt(value, 10);\n } else if (key === \"secure\") {\n cookie.secure = true;\n } else if (key === \"httponly\") {\n cookie.httpOnly = true;\n } else if (key === \"samesite\") {\n cookie.sameSite = value;\n } else {\n cookie[key] = value;\n }\n });\n\n return cookie;\n}\n\nfunction parseNameValuePair(nameValuePairStr) {\n // Parses name-value-pair according to rfc6265bis draft\n\n var name = \"\";\n var value = \"\";\n var nameValueArr = nameValuePairStr.split(\"=\");\n if (nameValueArr.length > 1) {\n name = nameValueArr.shift();\n value = nameValueArr.join(\"=\"); // everything after the first =, joined by a \"=\" if there was more than one part\n } else {\n value = nameValuePairStr;\n }\n\n return { name: name, value: value };\n}\n\nfunction parse(input, options) {\n options = options\n ? Object.assign({}, defaultParseOptions, options)\n : defaultParseOptions;\n\n if (!input) {\n if (!options.map) {\n return [];\n } else {\n return {};\n }\n }\n\n if (input.headers) {\n if (typeof input.headers.getSetCookie === \"function\") {\n // for fetch responses - they combine headers of the same type in the headers array,\n // but getSetCookie returns an uncombined array\n input = input.headers.getSetCookie();\n } else if (input.headers[\"set-cookie\"]) {\n // fast-path for node.js (which automatically normalizes header names to lower-case\n input = input.headers[\"set-cookie\"];\n } else {\n // slow-path for other environments - see #25\n var sch =\n input.headers[\n Object.keys(input.headers).find(function (key) {\n return key.toLowerCase() === \"set-cookie\";\n })\n ];\n // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36\n if (!sch && input.headers.cookie && !options.silent) {\n console.warn(\n \"Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.\"\n );\n }\n input = sch;\n }\n }\n if (!Array.isArray(input)) {\n input = [input];\n }\n\n options = options\n ? Object.assign({}, defaultParseOptions, options)\n : defaultParseOptions;\n\n if (!options.map) {\n return input.filter(isNonEmptyString).map(function (str) {\n return parseString(str, options);\n });\n } else {\n var cookies = {};\n return input.filter(isNonEmptyString).reduce(function (cookies, str) {\n var cookie = parseString(str, options);\n cookies[cookie.name] = cookie;\n return cookies;\n }, cookies);\n }\n}\n\n/*\n Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas\n that are within a single set-cookie field-value, such as in the Expires portion.\n\n This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2\n Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128\n React Native's fetch does this for *every* header, including set-cookie.\n\n Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25\n Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation\n*/\nfunction splitCookiesString(cookiesString) {\n if (Array.isArray(cookiesString)) {\n return cookiesString;\n }\n if (typeof cookiesString !== \"string\") {\n return [];\n }\n\n var cookiesStrings = [];\n var pos = 0;\n var start;\n var ch;\n var lastComma;\n var nextStart;\n var cookiesSeparatorFound;\n\n function skipWhitespace() {\n while (pos < cookiesString.length && /\\s/.test(cookiesString.charAt(pos))) {\n pos += 1;\n }\n return pos < cookiesString.length;\n }\n\n function notSpecialChar() {\n ch = cookiesString.charAt(pos);\n\n return ch !== \"=\" && ch !== \";\" && ch !== \",\";\n }\n\n while (pos < cookiesString.length) {\n start = pos;\n cookiesSeparatorFound = false;\n\n while (skipWhitespace()) {\n ch = cookiesString.charAt(pos);\n if (ch === \",\") {\n // ',' is a cookie separator if we have later first '=', not ';' or ','\n lastComma = pos;\n pos += 1;\n\n skipWhitespace();\n nextStart = pos;\n\n while (pos < cookiesString.length && notSpecialChar()) {\n pos += 1;\n }\n\n // currently special character\n if (pos < cookiesString.length && cookiesString.charAt(pos) === \"=\") {\n // we found cookies separator\n cookiesSeparatorFound = true;\n // pos is inside the next cookie, so back up and return it.\n pos = nextStart;\n cookiesStrings.push(cookiesString.substring(start, lastComma));\n start = pos;\n } else {\n // in param ',' or param separator ';',\n // we continue from that comma\n pos = lastComma + 1;\n }\n } else {\n pos += 1;\n }\n }\n\n if (!cookiesSeparatorFound || pos >= cookiesString.length) {\n cookiesStrings.push(cookiesString.substring(start, cookiesString.length));\n }\n }\n\n return cookiesStrings;\n}\n\nmodule.exports = parse;\nmodule.exports.parse = parse;\nmodule.exports.parseString = parseString;\nmodule.exports.splitCookiesString = splitCookiesString;\n", "\"use strict\";const db={\"application/ecmascript\":{source:\"apache\",compressible:!0,extensions:[\"ecma\"]},\"application/gzip\":{source:\"iana\",compressible:!1,extensions:[\"gz\"]},\"application/http\":{source:\"iana\"},\"application/javascript\":{source:\"apache\",charset:\"UTF-8\",compressible:!0,extensions:[\"js\"]},\"application/json\":{source:\"iana\",charset:\"UTF-8\",compressible:!0,extensions:[\"json\",\"map\"]},\"application/manifest+json\":{source:\"iana\",charset:\"UTF-8\",compressible:!0,extensions:[\"webmanifest\"]},\"application/marc\":{source:\"iana\",extensions:[\"mrc\"]},\"application/mp4\":{source:\"iana\",extensions:[\"mp4\",\"mpg4\",\"mp4s\",\"m4p\"]},\"application/ogg\":{source:\"iana\",compressible:!1,extensions:[\"ogx\"]},\"application/sql\":{source:\"iana\",extensions:[\"sql\"]},\"application/wasm\":{source:\"iana\",compressible:!0,extensions:[\"wasm\"]},\"application/x-bittorrent\":{source:\"apache\",extensions:[\"torrent\"]},\"application/x-gzip\":{source:\"apache\"},\"application/x-javascript\":{compressible:!0},\"application/x-web-app-manifest+json\":{compressible:!0,extensions:[\"webapp\"]},\"application/x-www-form-urlencoded\":{source:\"iana\",compressible:!0},\"application/xhtml+xml\":{source:\"iana\",compressible:!0,extensions:[\"xhtml\",\"xht\"]},\"application/xhtml-voice+xml\":{source:\"apache\",compressible:!0},\"application/xml\":{source:\"iana\",compressible:!0,extensions:[\"xml\",\"xsl\",\"xsd\",\"rng\"]},\"application/zip\":{source:\"iana\",compressible:!1,extensions:[\"zip\"]},\"application/zlib\":{source:\"iana\"},\"audio/midi\":{source:\"apache\",extensions:[\"mid\",\"midi\",\"kar\",\"rmi\"]},\"audio/mp3\":{compressible:!1,extensions:[\"mp3\"]},\"audio/mp4\":{source:\"iana\",compressible:!1,extensions:[\"m4a\",\"mp4a\"]},\"audio/mp4a-latm\":{source:\"iana\"},\"audio/mpa\":{source:\"iana\"},\"audio/mpa-robust\":{source:\"iana\"},\"audio/mpeg\":{source:\"iana\",compressible:!1,extensions:[\"mpga\",\"mp2\",\"mp2a\",\"mp3\",\"m2a\",\"m3a\"]},\"audio/ogg\":{source:\"iana\",compressible:!1,extensions:[\"oga\",\"ogg\",\"spx\",\"opus\"]},\"audio/red\":{source:\"iana\"},\"audio/rtx\":{source:\"iana\"},\"audio/scip\":{source:\"iana\"},\"audio/silk\":{source:\"apache\",extensions:[\"sil\"]},\"audio/smv\":{source:\"iana\"},\"audio/wav\":{compressible:!1,extensions:[\"wav\"]},\"audio/wave\":{compressible:!1,extensions:[\"wav\"]},\"audio/webm\":{source:\"apache\",compressible:!1,extensions:[\"weba\"]},\"audio/x-aac\":{source:\"apache\",compressible:!1,extensions:[\"aac\"]},\"audio/x-aiff\":{source:\"apache\",extensions:[\"aif\",\"aiff\",\"aifc\"]},\"audio/x-caf\":{source:\"apache\",compressible:!1,extensions:[\"caf\"]},\"audio/x-flac\":{source:\"apache\",extensions:[\"flac\"]},\"audio/x-m4a\":{source:\"nginx\",extensions:[\"m4a\"]},\"audio/x-matroska\":{source:\"apache\",extensions:[\"mka\"]},\"audio/x-mpegurl\":{source:\"apache\",extensions:[\"m3u\"]},\"audio/x-ms-wax\":{source:\"apache\",extensions:[\"wax\"]},\"audio/x-ms-wma\":{source:\"apache\",extensions:[\"wma\"]},\"audio/x-pn-realaudio\":{source:\"apache\",extensions:[\"ram\",\"ra\"]},\"audio/x-pn-realaudio-plugin\":{source:\"apache\",extensions:[\"rmp\"]},\"audio/x-realaudio\":{source:\"nginx\",extensions:[\"ra\"]},\"audio/x-tta\":{source:\"apache\"},\"audio/x-wav\":{source:\"apache\",extensions:[\"wav\"]},\"audio/xm\":{source:\"apache\",extensions:[\"xm\"]},\"font/collection\":{source:\"iana\",extensions:[\"ttc\"]},\"font/otf\":{source:\"iana\",compressible:!0,extensions:[\"otf\"]},\"font/sfnt\":{source:\"iana\"},\"font/ttf\":{source:\"iana\",compressible:!0,extensions:[\"ttf\"]},\"font/woff\":{source:\"iana\",extensions:[\"woff\"]},\"font/woff2\":{source:\"iana\",extensions:[\"woff2\"]},\"image/gif\":{source:\"iana\",compressible:!1,extensions:[\"gif\"]},\"image/heic\":{source:\"iana\",extensions:[\"heic\"]},\"image/heic-sequence\":{source:\"iana\",extensions:[\"heics\"]},\"image/heif\":{source:\"iana\",extensions:[\"heif\"]},\"image/jpeg\":{source:\"iana\",compressible:!1,extensions:[\"jpeg\",\"jpg\",\"jpe\"]},\"image/png\":{source:\"iana\",compressible:!1,extensions:[\"png\"]},\"image/svg+xml\":{source:\"iana\",compressible:!0,extensions:[\"svg\",\"svgz\"]},\"image/webp\":{source:\"iana\",extensions:[\"webp\"]},\"text/coffeescript\":{extensions:[\"coffee\",\"litcoffee\"]},\"text/css\":{source:\"iana\",charset:\"UTF-8\",compressible:!0,extensions:[\"css\"]},\"text/ecmascript\":{source:\"apache\"},\"text/html\":{source:\"iana\",compressible:!0,extensions:[\"html\",\"htm\",\"shtml\"]},\"text/jade\":{extensions:[\"jade\"]},\"text/javascript\":{source:\"iana\",charset:\"UTF-8\",compressible:!0,extensions:[\"js\",\"mjs\"]},\"text/markdown\":{source:\"iana\",compressible:!0,extensions:[\"md\",\"markdown\"]}};import{extname}from\"path-browserify\";var EXTRACT_TYPE_REGEXP=/^\\s*([^;\\s]*)(?:;|\\s|$)/,TEXT_TYPE_REGEXP=/^text\\//i,exports={};function charset(e){if(!e||\"string\"!=typeof e)return!1;var s=EXTRACT_TYPE_REGEXP.exec(e),a=s&&db[s[1].toLowerCase()];return a&&a.charset?a.charset:!(!s||!TEXT_TYPE_REGEXP.test(s[1]))&&\"UTF-8\"}function contentType(e){if(!e||\"string\"!=typeof e)return!1;var s=-1===e.indexOf(\"/\")?exports.lookup(e):e;if(!s)return!1;if(-1===s.indexOf(\"charset\")){var a=exports.charset(s);a&&(s+=\"; charset=\"+a.toLowerCase())}return s}function extension(e){if(!e||\"string\"!=typeof e)return!1;var s=EXTRACT_TYPE_REGEXP.exec(e),a=s&&exports.extensions[s[1].toLowerCase()];return!(!a||!a.length)&&a[0]}function lookup(e){if(!e||\"string\"!=typeof e)return!1;var s=extname(\"x.\"+e).toLowerCase().substr(1);return s&&exports.types[s]||!1}function populateMaps(e,s){var a=[\"nginx\",\"apache\",void 0,\"iana\"];Object.keys(db).forEach((function(o){var i=db[o],n=i.extensions;if(n&&n.length){e[o]=n;for(var t=0;tp||r===p&&\"application/\"===s[c].substr(0,12)))continue}s[c]=o}}}))}exports.charset=charset,exports.charsets={lookup:charset},exports.contentType=contentType,exports.extension=extension,exports.extensions=Object.create(null),exports.lookup=lookup,exports.types=Object.create(null),populateMaps(exports.extensions,exports.types);export default exports;", "import mime from '@dynamic-pkg/mime';\r\nimport * as path from 'path-browserify';\r\nimport * as idb from 'idb';\r\nimport { parse } from 'acorn';\r\nimport { BareClient, createBareClient } from '@tomphttp/bare-client';\r\nimport * as cookie from 'cookie';\r\nimport { parse as cookieParser } from 'set-cookie-parser'\r\nimport { generate } from 'astring';\r\n\r\nclass DynamicModules {\r\n mime = mime;\r\n idb = idb;\r\n path = path;\r\n acorn = { parse };\r\n bare = {createBareClient, BareClient};\r\n base64 = { encode: btoa, decode: atob };\r\n estree = { generate };\r\n cookie = cookie;\r\n setCookieParser = cookieParser;\r\n\r\n ctx;\r\n\r\n constructor(ctx:any) {\r\n this.ctx = ctx;\r\n }\r\n}\r\n\r\nexport default DynamicModules;", "import { w as wrap, r as replaceTraps } from './wrap-idb-value.js';\nexport { u as unwrap, w as wrap } from './wrap-idb-value.js';\n\n/**\n * Open a database.\n *\n * @param name Name of the database.\n * @param version Schema version.\n * @param callbacks Additional callbacks.\n */\nfunction openDB(name, version, { blocked, upgrade, blocking, terminated } = {}) {\n const request = indexedDB.open(name, version);\n const openPromise = wrap(request);\n if (upgrade) {\n request.addEventListener('upgradeneeded', (event) => {\n upgrade(wrap(request.result), event.oldVersion, event.newVersion, wrap(request.transaction), event);\n });\n }\n if (blocked) {\n request.addEventListener('blocked', (event) => blocked(\n // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405\n event.oldVersion, event.newVersion, event));\n }\n openPromise\n .then((db) => {\n if (terminated)\n db.addEventListener('close', () => terminated());\n if (blocking) {\n db.addEventListener('versionchange', (event) => blocking(event.oldVersion, event.newVersion, event));\n }\n })\n .catch(() => { });\n return openPromise;\n}\n/**\n * Delete a database.\n *\n * @param name Name of the database.\n */\nfunction deleteDB(name, { blocked } = {}) {\n const request = indexedDB.deleteDatabase(name);\n if (blocked) {\n request.addEventListener('blocked', (event) => blocked(\n // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405\n event.oldVersion, event));\n }\n return wrap(request).then(() => undefined);\n}\n\nconst readMethods = ['get', 'getKey', 'getAll', 'getAllKeys', 'count'];\nconst writeMethods = ['put', 'add', 'delete', 'clear'];\nconst cachedMethods = new Map();\nfunction getMethod(target, prop) {\n if (!(target instanceof IDBDatabase &&\n !(prop in target) &&\n typeof prop === 'string')) {\n return;\n }\n if (cachedMethods.get(prop))\n return cachedMethods.get(prop);\n const targetFuncName = prop.replace(/FromIndex$/, '');\n const useIndex = prop !== targetFuncName;\n const isWrite = writeMethods.includes(targetFuncName);\n if (\n // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.\n !(targetFuncName in (useIndex ? IDBIndex : IDBObjectStore).prototype) ||\n !(isWrite || readMethods.includes(targetFuncName))) {\n return;\n }\n const method = async function (storeName, ...args) {\n // isWrite ? 'readwrite' : undefined gzipps better, but fails in Edge :(\n const tx = this.transaction(storeName, isWrite ? 'readwrite' : 'readonly');\n let target = tx.store;\n if (useIndex)\n target = target.index(args.shift());\n // Must reject if op rejects.\n // If it's a write operation, must reject if tx.done rejects.\n // Must reject with op rejection first.\n // Must resolve with op value.\n // Must handle both promises (no unhandled rejections)\n return (await Promise.all([\n target[targetFuncName](...args),\n isWrite && tx.done,\n ]))[0];\n };\n cachedMethods.set(prop, method);\n return method;\n}\nreplaceTraps((oldTraps) => ({\n ...oldTraps,\n get: (target, prop, receiver) => getMethod(target, prop) || oldTraps.get(target, prop, receiver),\n has: (target, prop) => !!getMethod(target, prop) || oldTraps.has(target, prop),\n}));\n\nexport { deleteDB, openDB };\n", "const instanceOfAny = (object, constructors) => constructors.some((c) => object instanceof c);\n\nlet idbProxyableTypes;\nlet cursorAdvanceMethods;\n// This is a function to prevent it throwing up in node environments.\nfunction getIdbProxyableTypes() {\n return (idbProxyableTypes ||\n (idbProxyableTypes = [\n IDBDatabase,\n IDBObjectStore,\n IDBIndex,\n IDBCursor,\n IDBTransaction,\n ]));\n}\n// This is a function to prevent it throwing up in node environments.\nfunction getCursorAdvanceMethods() {\n return (cursorAdvanceMethods ||\n (cursorAdvanceMethods = [\n IDBCursor.prototype.advance,\n IDBCursor.prototype.continue,\n IDBCursor.prototype.continuePrimaryKey,\n ]));\n}\nconst cursorRequestMap = new WeakMap();\nconst transactionDoneMap = new WeakMap();\nconst transactionStoreNamesMap = new WeakMap();\nconst transformCache = new WeakMap();\nconst reverseTransformCache = new WeakMap();\nfunction promisifyRequest(request) {\n const promise = new Promise((resolve, reject) => {\n const unlisten = () => {\n request.removeEventListener('success', success);\n request.removeEventListener('error', error);\n };\n const success = () => {\n resolve(wrap(request.result));\n unlisten();\n };\n const error = () => {\n reject(request.error);\n unlisten();\n };\n request.addEventListener('success', success);\n request.addEventListener('error', error);\n });\n promise\n .then((value) => {\n // Since cursoring reuses the IDBRequest (*sigh*), we cache it for later retrieval\n // (see wrapFunction).\n if (value instanceof IDBCursor) {\n cursorRequestMap.set(value, request);\n }\n // Catching to avoid \"Uncaught Promise exceptions\"\n })\n .catch(() => { });\n // This mapping exists in reverseTransformCache but doesn't doesn't exist in transformCache. This\n // is because we create many promises from a single IDBRequest.\n reverseTransformCache.set(promise, request);\n return promise;\n}\nfunction cacheDonePromiseForTransaction(tx) {\n // Early bail if we've already created a done promise for this transaction.\n if (transactionDoneMap.has(tx))\n return;\n const done = new Promise((resolve, reject) => {\n const unlisten = () => {\n tx.removeEventListener('complete', complete);\n tx.removeEventListener('error', error);\n tx.removeEventListener('abort', error);\n };\n const complete = () => {\n resolve();\n unlisten();\n };\n const error = () => {\n reject(tx.error || new DOMException('AbortError', 'AbortError'));\n unlisten();\n };\n tx.addEventListener('complete', complete);\n tx.addEventListener('error', error);\n tx.addEventListener('abort', error);\n });\n // Cache it for later retrieval.\n transactionDoneMap.set(tx, done);\n}\nlet idbProxyTraps = {\n get(target, prop, receiver) {\n if (target instanceof IDBTransaction) {\n // Special handling for transaction.done.\n if (prop === 'done')\n return transactionDoneMap.get(target);\n // Polyfill for objectStoreNames because of Edge.\n if (prop === 'objectStoreNames') {\n return target.objectStoreNames || transactionStoreNamesMap.get(target);\n }\n // Make tx.store return the only store in the transaction, or undefined if there are many.\n if (prop === 'store') {\n return receiver.objectStoreNames[1]\n ? undefined\n : receiver.objectStore(receiver.objectStoreNames[0]);\n }\n }\n // Else transform whatever we get back.\n return wrap(target[prop]);\n },\n set(target, prop, value) {\n target[prop] = value;\n return true;\n },\n has(target, prop) {\n if (target instanceof IDBTransaction &&\n (prop === 'done' || prop === 'store')) {\n return true;\n }\n return prop in target;\n },\n};\nfunction replaceTraps(callback) {\n idbProxyTraps = callback(idbProxyTraps);\n}\nfunction wrapFunction(func) {\n // Due to expected object equality (which is enforced by the caching in `wrap`), we\n // only create one new func per func.\n // Edge doesn't support objectStoreNames (booo), so we polyfill it here.\n if (func === IDBDatabase.prototype.transaction &&\n !('objectStoreNames' in IDBTransaction.prototype)) {\n return function (storeNames, ...args) {\n const tx = func.call(unwrap(this), storeNames, ...args);\n transactionStoreNamesMap.set(tx, storeNames.sort ? storeNames.sort() : [storeNames]);\n return wrap(tx);\n };\n }\n // Cursor methods are special, as the behaviour is a little more different to standard IDB. In\n // IDB, you advance the cursor and wait for a new 'success' on the IDBRequest that gave you the\n // cursor. It's kinda like a promise that can resolve with many values. That doesn't make sense\n // with real promises, so each advance methods returns a new promise for the cursor object, or\n // undefined if the end of the cursor has been reached.\n if (getCursorAdvanceMethods().includes(func)) {\n return function (...args) {\n // Calling the original function with the proxy as 'this' causes ILLEGAL INVOCATION, so we use\n // the original object.\n func.apply(unwrap(this), args);\n return wrap(cursorRequestMap.get(this));\n };\n }\n return function (...args) {\n // Calling the original function with the proxy as 'this' causes ILLEGAL INVOCATION, so we use\n // the original object.\n return wrap(func.apply(unwrap(this), args));\n };\n}\nfunction transformCachableValue(value) {\n if (typeof value === 'function')\n return wrapFunction(value);\n // This doesn't return, it just creates a 'done' promise for the transaction,\n // which is later returned for transaction.done (see idbObjectHandler).\n if (value instanceof IDBTransaction)\n cacheDonePromiseForTransaction(value);\n if (instanceOfAny(value, getIdbProxyableTypes()))\n return new Proxy(value, idbProxyTraps);\n // Return the same value back if we're not going to transform it.\n return value;\n}\nfunction wrap(value) {\n // We sometimes generate multiple promises from a single IDBRequest (eg when cursoring), because\n // IDB is weird and a single IDBRequest can yield many responses, so these can't be cached.\n if (value instanceof IDBRequest)\n return promisifyRequest(value);\n // If we've already transformed this value before, reuse the transformed value.\n // This is faster, but it also provides object equality.\n if (transformCache.has(value))\n return transformCache.get(value);\n const newValue = transformCachableValue(value);\n // Not all types are transformed.\n // These may be primitive types, so they can't be WeakMap keys.\n if (newValue !== value) {\n transformCache.set(value, newValue);\n reverseTransformCache.set(newValue, value);\n }\n return newValue;\n}\nconst unwrap = (value) => reverseTransformCache.get(value);\n\nexport { reverseTransformCache as a, instanceOfAny as i, replaceTraps as r, unwrap as u, wrap as w };\n", "// This file was generated. Do not modify manually!\nvar astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];\n\n// This file was generated. Do not modify manually!\nvar astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191];\n\n// This file was generated. Do not modify manually!\nvar nonASCIIidentifierChars = \"\\u200c\\u200d\\xb7\\u0300-\\u036f\\u0387\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u064b-\\u0669\\u0670\\u06d6-\\u06dc\\u06df-\\u06e4\\u06e7\\u06e8\\u06ea-\\u06ed\\u06f0-\\u06f9\\u0711\\u0730-\\u074a\\u07a6-\\u07b0\\u07c0-\\u07c9\\u07eb-\\u07f3\\u07fd\\u0816-\\u0819\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0859-\\u085b\\u0898-\\u089f\\u08ca-\\u08e1\\u08e3-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09cb-\\u09cd\\u09d7\\u09e2\\u09e3\\u09e6-\\u09ef\\u09fe\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2\\u0ae3\\u0ae6-\\u0aef\\u0afa-\\u0aff\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b55-\\u0b57\\u0b62\\u0b63\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c00-\\u0c04\\u0c3c\\u0c3e-\\u0c44\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62\\u0c63\\u0c66-\\u0c6f\\u0c81-\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2\\u0ce3\\u0ce6-\\u0cef\\u0cf3\\u0d00-\\u0d03\\u0d3b\\u0d3c\\u0d3e-\\u0d44\\u0d46-\\u0d48\\u0d4a-\\u0d4d\\u0d57\\u0d62\\u0d63\\u0d66-\\u0d6f\\u0d81-\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0de6-\\u0def\\u0df2\\u0df3\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0e50-\\u0e59\\u0eb1\\u0eb4-\\u0ebc\\u0ec8-\\u0ece\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f3e\\u0f3f\\u0f71-\\u0f84\\u0f86\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u102b-\\u103e\\u1040-\\u1049\\u1056-\\u1059\\u105e-\\u1060\\u1062-\\u1064\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u1369-\\u1371\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17b4-\\u17d3\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u180f-\\u1819\\u18a9\\u1920-\\u192b\\u1930-\\u193b\\u1946-\\u194f\\u19d0-\\u19da\\u1a17-\\u1a1b\\u1a55-\\u1a5e\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1ab0-\\u1abd\\u1abf-\\u1ace\\u1b00-\\u1b04\\u1b34-\\u1b44\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1b80-\\u1b82\\u1ba1-\\u1bad\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c24-\\u1c37\\u1c40-\\u1c49\\u1c50-\\u1c59\\u1cd0-\\u1cd2\\u1cd4-\\u1ce8\\u1ced\\u1cf4\\u1cf7-\\u1cf9\\u1dc0-\\u1dff\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2cef-\\u2cf1\\u2d7f\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\ua620-\\ua629\\ua66f\\ua674-\\ua67d\\ua69e\\ua69f\\ua6f0\\ua6f1\\ua802\\ua806\\ua80b\\ua823-\\ua827\\ua82c\\ua880\\ua881\\ua8b4-\\ua8c5\\ua8d0-\\ua8d9\\ua8e0-\\ua8f1\\ua8ff-\\ua909\\ua926-\\ua92d\\ua947-\\ua953\\ua980-\\ua983\\ua9b3-\\ua9c0\\ua9d0-\\ua9d9\\ua9e5\\ua9f0-\\ua9f9\\uaa29-\\uaa36\\uaa43\\uaa4c\\uaa4d\\uaa50-\\uaa59\\uaa7b-\\uaa7d\\uaab0\\uaab2-\\uaab4\\uaab7\\uaab8\\uaabe\\uaabf\\uaac1\\uaaeb-\\uaaef\\uaaf5\\uaaf6\\uabe3-\\uabea\\uabec\\uabed\\uabf0-\\uabf9\\ufb1e\\ufe00-\\ufe0f\\ufe20-\\ufe2f\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f\";\n\n// This file was generated. Do not modify manually!\nvar nonASCIIidentifierStartChars = \"\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u037f\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u052f\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05d0-\\u05ea\\u05ef-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086a\\u0870-\\u0887\\u0889-\\u088e\\u08a0-\\u08c9\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u09fc\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0af9\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c39\\u0c3d\\u0c58-\\u0c5a\\u0c5d\\u0c60\\u0c61\\u0c80\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cdd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d04-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d54-\\u0d56\\u0d5f-\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e86-\\u0e8a\\u0e8c-\\u0ea3\\u0ea5\\u0ea7-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f5\\u13f8-\\u13fd\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f8\\u1700-\\u1711\\u171f-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1878\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191e\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19b0-\\u19c9\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4c\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1c80-\\u1c88\\u1c90-\\u1cba\\u1cbd-\\u1cbf\\u1ce9-\\u1cec\\u1cee-\\u1cf3\\u1cf5\\u1cf6\\u1cfa\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2118-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309b-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u31a0-\\u31bf\\u31f0-\\u31ff\\u3400-\\u4dbf\\u4e00-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua69d\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua7ca\\ua7d0\\ua7d1\\ua7d3\\ua7d5-\\ua7d9\\ua7f2-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua8fd\\ua8fe\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\ua9e0-\\ua9e4\\ua9e6-\\ua9ef\\ua9fa-\\ua9fe\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa7e-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uab30-\\uab5a\\uab5c-\\uab69\\uab70-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc\";\n\n// These are a run-length and offset encoded representation of the\n// >0xffff code points that are a valid part of identifiers. The\n// offset starts at 0x10000, and each pair of numbers represents an\n// offset to the next range, and then a size of the range.\n\n// Reserved word lists for various dialects of the language\n\nvar reservedWords = {\n 3: \"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile\",\n 5: \"class enum extends super const export import\",\n 6: \"enum\",\n strict: \"implements interface let package private protected public static yield\",\n strictBind: \"eval arguments\"\n};\n\n// And the keywords\n\nvar ecma5AndLessKeywords = \"break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this\";\n\nvar keywords$1 = {\n 5: ecma5AndLessKeywords,\n \"5module\": ecma5AndLessKeywords + \" export import\",\n 6: ecma5AndLessKeywords + \" const class extends export import super\"\n};\n\nvar keywordRelationalOperator = /^in(stanceof)?$/;\n\n// ## Character categories\n\nvar nonASCIIidentifierStart = new RegExp(\"[\" + nonASCIIidentifierStartChars + \"]\");\nvar nonASCIIidentifier = new RegExp(\"[\" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + \"]\");\n\n// This has a complexity linear to the value of the code. The\n// assumption is that looking up astral identifier characters is\n// rare.\nfunction isInAstralSet(code, set) {\n var pos = 0x10000;\n for (var i = 0; i < set.length; i += 2) {\n pos += set[i];\n if (pos > code) { return false }\n pos += set[i + 1];\n if (pos >= code) { return true }\n }\n return false\n}\n\n// Test whether a given character code starts an identifier.\n\nfunction isIdentifierStart(code, astral) {\n if (code < 65) { return code === 36 }\n if (code < 91) { return true }\n if (code < 97) { return code === 95 }\n if (code < 123) { return true }\n if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)) }\n if (astral === false) { return false }\n return isInAstralSet(code, astralIdentifierStartCodes)\n}\n\n// Test whether a given character is part of an identifier.\n\nfunction isIdentifierChar(code, astral) {\n if (code < 48) { return code === 36 }\n if (code < 58) { return true }\n if (code < 65) { return false }\n if (code < 91) { return true }\n if (code < 97) { return code === 95 }\n if (code < 123) { return true }\n if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)) }\n if (astral === false) { return false }\n return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes)\n}\n\n// ## Token types\n\n// The assignment of fine-grained, information-carrying type objects\n// allows the tokenizer to store the information it has about a\n// token in a way that is very cheap for the parser to look up.\n\n// All token type variables start with an underscore, to make them\n// easy to recognize.\n\n// The `beforeExpr` property is used to disambiguate between regular\n// expressions and divisions. It is set on all token types that can\n// be followed by an expression (thus, a slash after them would be a\n// regular expression).\n//\n// The `startsExpr` property is used to check if the token ends a\n// `yield` expression. It is set on all token types that either can\n// directly start an expression (like a quotation mark) or can\n// continue an expression (like the body of a string).\n//\n// `isLoop` marks a keyword as starting a loop, which is important\n// to know when parsing a label, in order to allow or disallow\n// continue jumps to that label.\n\nvar TokenType = function TokenType(label, conf) {\n if ( conf === void 0 ) conf = {};\n\n this.label = label;\n this.keyword = conf.keyword;\n this.beforeExpr = !!conf.beforeExpr;\n this.startsExpr = !!conf.startsExpr;\n this.isLoop = !!conf.isLoop;\n this.isAssign = !!conf.isAssign;\n this.prefix = !!conf.prefix;\n this.postfix = !!conf.postfix;\n this.binop = conf.binop || null;\n this.updateContext = null;\n};\n\nfunction binop(name, prec) {\n return new TokenType(name, {beforeExpr: true, binop: prec})\n}\nvar beforeExpr = {beforeExpr: true}, startsExpr = {startsExpr: true};\n\n// Map keyword names to token types.\n\nvar keywords = {};\n\n// Succinct definitions of keyword token types\nfunction kw(name, options) {\n if ( options === void 0 ) options = {};\n\n options.keyword = name;\n return keywords[name] = new TokenType(name, options)\n}\n\nvar types$1 = {\n num: new TokenType(\"num\", startsExpr),\n regexp: new TokenType(\"regexp\", startsExpr),\n string: new TokenType(\"string\", startsExpr),\n name: new TokenType(\"name\", startsExpr),\n privateId: new TokenType(\"privateId\", startsExpr),\n eof: new TokenType(\"eof\"),\n\n // Punctuation token types.\n bracketL: new TokenType(\"[\", {beforeExpr: true, startsExpr: true}),\n bracketR: new TokenType(\"]\"),\n braceL: new TokenType(\"{\", {beforeExpr: true, startsExpr: true}),\n braceR: new TokenType(\"}\"),\n parenL: new TokenType(\"(\", {beforeExpr: true, startsExpr: true}),\n parenR: new TokenType(\")\"),\n comma: new TokenType(\",\", beforeExpr),\n semi: new TokenType(\";\", beforeExpr),\n colon: new TokenType(\":\", beforeExpr),\n dot: new TokenType(\".\"),\n question: new TokenType(\"?\", beforeExpr),\n questionDot: new TokenType(\"?.\"),\n arrow: new TokenType(\"=>\", beforeExpr),\n template: new TokenType(\"template\"),\n invalidTemplate: new TokenType(\"invalidTemplate\"),\n ellipsis: new TokenType(\"...\", beforeExpr),\n backQuote: new TokenType(\"`\", startsExpr),\n dollarBraceL: new TokenType(\"${\", {beforeExpr: true, startsExpr: true}),\n\n // Operators. These carry several kinds of properties to help the\n // parser use them properly (the presence of these properties is\n // what categorizes them as operators).\n //\n // `binop`, when present, specifies that this operator is a binary\n // operator, and will refer to its precedence.\n //\n // `prefix` and `postfix` mark the operator as a prefix or postfix\n // unary operator.\n //\n // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as\n // binary operators with a very low precedence, that should result\n // in AssignmentExpression nodes.\n\n eq: new TokenType(\"=\", {beforeExpr: true, isAssign: true}),\n assign: new TokenType(\"_=\", {beforeExpr: true, isAssign: true}),\n incDec: new TokenType(\"++/--\", {prefix: true, postfix: true, startsExpr: true}),\n prefix: new TokenType(\"!/~\", {beforeExpr: true, prefix: true, startsExpr: true}),\n logicalOR: binop(\"||\", 1),\n logicalAND: binop(\"&&\", 2),\n bitwiseOR: binop(\"|\", 3),\n bitwiseXOR: binop(\"^\", 4),\n bitwiseAND: binop(\"&\", 5),\n equality: binop(\"==/!=/===/!==\", 6),\n relational: binop(\"/<=/>=\", 7),\n bitShift: binop(\"<>/>>>\", 8),\n plusMin: new TokenType(\"+/-\", {beforeExpr: true, binop: 9, prefix: true, startsExpr: true}),\n modulo: binop(\"%\", 10),\n star: binop(\"*\", 10),\n slash: binop(\"/\", 10),\n starstar: new TokenType(\"**\", {beforeExpr: true}),\n coalesce: binop(\"??\", 1),\n\n // Keyword token types.\n _break: kw(\"break\"),\n _case: kw(\"case\", beforeExpr),\n _catch: kw(\"catch\"),\n _continue: kw(\"continue\"),\n _debugger: kw(\"debugger\"),\n _default: kw(\"default\", beforeExpr),\n _do: kw(\"do\", {isLoop: true, beforeExpr: true}),\n _else: kw(\"else\", beforeExpr),\n _finally: kw(\"finally\"),\n _for: kw(\"for\", {isLoop: true}),\n _function: kw(\"function\", startsExpr),\n _if: kw(\"if\"),\n _return: kw(\"return\", beforeExpr),\n _switch: kw(\"switch\"),\n _throw: kw(\"throw\", beforeExpr),\n _try: kw(\"try\"),\n _var: kw(\"var\"),\n _const: kw(\"const\"),\n _while: kw(\"while\", {isLoop: true}),\n _with: kw(\"with\"),\n _new: kw(\"new\", {beforeExpr: true, startsExpr: true}),\n _this: kw(\"this\", startsExpr),\n _super: kw(\"super\", startsExpr),\n _class: kw(\"class\", startsExpr),\n _extends: kw(\"extends\", beforeExpr),\n _export: kw(\"export\"),\n _import: kw(\"import\", startsExpr),\n _null: kw(\"null\", startsExpr),\n _true: kw(\"true\", startsExpr),\n _false: kw(\"false\", startsExpr),\n _in: kw(\"in\", {beforeExpr: true, binop: 7}),\n _instanceof: kw(\"instanceof\", {beforeExpr: true, binop: 7}),\n _typeof: kw(\"typeof\", {beforeExpr: true, prefix: true, startsExpr: true}),\n _void: kw(\"void\", {beforeExpr: true, prefix: true, startsExpr: true}),\n _delete: kw(\"delete\", {beforeExpr: true, prefix: true, startsExpr: true})\n};\n\n// Matches a whole line break (where CRLF is considered a single\n// line break). Used to count lines.\n\nvar lineBreak = /\\r\\n?|\\n|\\u2028|\\u2029/;\nvar lineBreakG = new RegExp(lineBreak.source, \"g\");\n\nfunction isNewLine(code) {\n return code === 10 || code === 13 || code === 0x2028 || code === 0x2029\n}\n\nfunction nextLineBreak(code, from, end) {\n if ( end === void 0 ) end = code.length;\n\n for (var i = from; i < end; i++) {\n var next = code.charCodeAt(i);\n if (isNewLine(next))\n { return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1 }\n }\n return -1\n}\n\nvar nonASCIIwhitespace = /[\\u1680\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\n\nvar skipWhiteSpace = /(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;\n\nvar ref = Object.prototype;\nvar hasOwnProperty = ref.hasOwnProperty;\nvar toString = ref.toString;\n\nvar hasOwn = Object.hasOwn || (function (obj, propName) { return (\n hasOwnProperty.call(obj, propName)\n); });\n\nvar isArray = Array.isArray || (function (obj) { return (\n toString.call(obj) === \"[object Array]\"\n); });\n\nfunction wordsRegexp(words) {\n return new RegExp(\"^(?:\" + words.replace(/ /g, \"|\") + \")$\")\n}\n\nfunction codePointToString(code) {\n // UTF-16 Decoding\n if (code <= 0xFFFF) { return String.fromCharCode(code) }\n code -= 0x10000;\n return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00)\n}\n\nvar loneSurrogate = /(?:[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])/;\n\n// These are used when `options.locations` is on, for the\n// `startLoc` and `endLoc` properties.\n\nvar Position = function Position(line, col) {\n this.line = line;\n this.column = col;\n};\n\nPosition.prototype.offset = function offset (n) {\n return new Position(this.line, this.column + n)\n};\n\nvar SourceLocation = function SourceLocation(p, start, end) {\n this.start = start;\n this.end = end;\n if (p.sourceFile !== null) { this.source = p.sourceFile; }\n};\n\n// The `getLineInfo` function is mostly useful when the\n// `locations` option is off (for performance reasons) and you\n// want to find the line/column position for a given character\n// offset. `input` should be the code string that the offset refers\n// into.\n\nfunction getLineInfo(input, offset) {\n for (var line = 1, cur = 0;;) {\n var nextBreak = nextLineBreak(input, cur, offset);\n if (nextBreak < 0) { return new Position(line, offset - cur) }\n ++line;\n cur = nextBreak;\n }\n}\n\n// A second argument must be given to configure the parser process.\n// These options are recognized (only `ecmaVersion` is required):\n\nvar defaultOptions = {\n // `ecmaVersion` indicates the ECMAScript version to parse. Must be\n // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10\n // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `\"latest\"`\n // (the latest version the library supports). This influences\n // support for strict mode, the set of reserved words, and support\n // for new syntax features.\n ecmaVersion: null,\n // `sourceType` indicates the mode the code should be parsed in.\n // Can be either `\"script\"` or `\"module\"`. This influences global\n // strict mode and parsing of `import` and `export` declarations.\n sourceType: \"script\",\n // `onInsertedSemicolon` can be a callback that will be called\n // when a semicolon is automatically inserted. It will be passed\n // the position of the comma as an offset, and if `locations` is\n // enabled, it is given the location as a `{line, column}` object\n // as second argument.\n onInsertedSemicolon: null,\n // `onTrailingComma` is similar to `onInsertedSemicolon`, but for\n // trailing commas.\n onTrailingComma: null,\n // By default, reserved words are only enforced if ecmaVersion >= 5.\n // Set `allowReserved` to a boolean value to explicitly turn this on\n // an off. When this option has the value \"never\", reserved words\n // and keywords can also not be used as property names.\n allowReserved: null,\n // When enabled, a return at the top level is not considered an\n // error.\n allowReturnOutsideFunction: false,\n // When enabled, import/export statements are not constrained to\n // appearing at the top of the program, and an import.meta expression\n // in a script isn't considered an error.\n allowImportExportEverywhere: false,\n // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022.\n // When enabled, await identifiers are allowed to appear at the top-level scope,\n // but they are still not allowed in non-async functions.\n allowAwaitOutsideFunction: null,\n // When enabled, super identifiers are not constrained to\n // appearing in methods and do not raise an error when they appear elsewhere.\n allowSuperOutsideMethod: null,\n // When enabled, hashbang directive in the beginning of file is\n // allowed and treated as a line comment. Enabled by default when\n // `ecmaVersion` >= 2023.\n allowHashBang: false,\n // By default, the parser will verify that private properties are\n // only used in places where they are valid and have been declared.\n // Set this to false to turn such checks off.\n checkPrivateFields: true,\n // When `locations` is on, `loc` properties holding objects with\n // `start` and `end` properties in `{line, column}` form (with\n // line being 1-based and column 0-based) will be attached to the\n // nodes.\n locations: false,\n // A function can be passed as `onToken` option, which will\n // cause Acorn to call that function with object in the same\n // format as tokens returned from `tokenizer().getToken()`. Note\n // that you are not allowed to call the parser from the\n // callback\u2014that will corrupt its internal state.\n onToken: null,\n // A function can be passed as `onComment` option, which will\n // cause Acorn to call that function with `(block, text, start,\n // end)` parameters whenever a comment is skipped. `block` is a\n // boolean indicating whether this is a block (`/* */`) comment,\n // `text` is the content of the comment, and `start` and `end` are\n // character offsets that denote the start and end of the comment.\n // When the `locations` option is on, two more parameters are\n // passed, the full `{line, column}` locations of the start and\n // end of the comments. Note that you are not allowed to call the\n // parser from the callback\u2014that will corrupt its internal state.\n onComment: null,\n // Nodes have their start and end characters offsets recorded in\n // `start` and `end` properties (directly on the node, rather than\n // the `loc` object, which holds line/column data. To also add a\n // [semi-standardized][range] `range` property holding a `[start,\n // end]` array with the same numbers, set the `ranges` option to\n // `true`.\n //\n // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678\n ranges: false,\n // It is possible to parse multiple files into a single AST by\n // passing the tree produced by parsing the first file as\n // `program` option in subsequent parses. This will add the\n // toplevel forms of the parsed file to the `Program` (top) node\n // of an existing parse tree.\n program: null,\n // When `locations` is on, you can pass this to record the source\n // file in every node's `loc` object.\n sourceFile: null,\n // This value, if given, is stored in every node, whether\n // `locations` is on or off.\n directSourceFile: null,\n // When enabled, parenthesized expressions are represented by\n // (non-standard) ParenthesizedExpression nodes\n preserveParens: false\n};\n\n// Interpret and default an options object\n\nvar warnedAboutEcmaVersion = false;\n\nfunction getOptions(opts) {\n var options = {};\n\n for (var opt in defaultOptions)\n { options[opt] = opts && hasOwn(opts, opt) ? opts[opt] : defaultOptions[opt]; }\n\n if (options.ecmaVersion === \"latest\") {\n options.ecmaVersion = 1e8;\n } else if (options.ecmaVersion == null) {\n if (!warnedAboutEcmaVersion && typeof console === \"object\" && console.warn) {\n warnedAboutEcmaVersion = true;\n console.warn(\"Since Acorn 8.0.0, options.ecmaVersion is required.\\nDefaulting to 2020, but this will stop working in the future.\");\n }\n options.ecmaVersion = 11;\n } else if (options.ecmaVersion >= 2015) {\n options.ecmaVersion -= 2009;\n }\n\n if (options.allowReserved == null)\n { options.allowReserved = options.ecmaVersion < 5; }\n\n if (!opts || opts.allowHashBang == null)\n { options.allowHashBang = options.ecmaVersion >= 14; }\n\n if (isArray(options.onToken)) {\n var tokens = options.onToken;\n options.onToken = function (token) { return tokens.push(token); };\n }\n if (isArray(options.onComment))\n { options.onComment = pushComment(options, options.onComment); }\n\n return options\n}\n\nfunction pushComment(options, array) {\n return function(block, text, start, end, startLoc, endLoc) {\n var comment = {\n type: block ? \"Block\" : \"Line\",\n value: text,\n start: start,\n end: end\n };\n if (options.locations)\n { comment.loc = new SourceLocation(this, startLoc, endLoc); }\n if (options.ranges)\n { comment.range = [start, end]; }\n array.push(comment);\n }\n}\n\n// Each scope gets a bitset that may contain these flags\nvar\n SCOPE_TOP = 1,\n SCOPE_FUNCTION = 2,\n SCOPE_ASYNC = 4,\n SCOPE_GENERATOR = 8,\n SCOPE_ARROW = 16,\n SCOPE_SIMPLE_CATCH = 32,\n SCOPE_SUPER = 64,\n SCOPE_DIRECT_SUPER = 128,\n SCOPE_CLASS_STATIC_BLOCK = 256,\n SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;\n\nfunction functionFlags(async, generator) {\n return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0)\n}\n\n// Used in checkLVal* and declareName to determine the type of a binding\nvar\n BIND_NONE = 0, // Not a binding\n BIND_VAR = 1, // Var-style binding\n BIND_LEXICAL = 2, // Let- or const-style binding\n BIND_FUNCTION = 3, // Function declaration\n BIND_SIMPLE_CATCH = 4, // Simple (identifier pattern) catch binding\n BIND_OUTSIDE = 5; // Special case for function names as bound inside the function\n\nvar Parser = function Parser(options, input, startPos) {\n this.options = options = getOptions(options);\n this.sourceFile = options.sourceFile;\n this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === \"module\" ? \"5module\" : 5]);\n var reserved = \"\";\n if (options.allowReserved !== true) {\n reserved = reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3];\n if (options.sourceType === \"module\") { reserved += \" await\"; }\n }\n this.reservedWords = wordsRegexp(reserved);\n var reservedStrict = (reserved ? reserved + \" \" : \"\") + reservedWords.strict;\n this.reservedWordsStrict = wordsRegexp(reservedStrict);\n this.reservedWordsStrictBind = wordsRegexp(reservedStrict + \" \" + reservedWords.strictBind);\n this.input = String(input);\n\n // Used to signal to callers of `readWord1` whether the word\n // contained any escape sequences. This is needed because words with\n // escape sequences must not be interpreted as keywords.\n this.containsEsc = false;\n\n // Set up token state\n\n // The current position of the tokenizer in the input.\n if (startPos) {\n this.pos = startPos;\n this.lineStart = this.input.lastIndexOf(\"\\n\", startPos - 1) + 1;\n this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length;\n } else {\n this.pos = this.lineStart = 0;\n this.curLine = 1;\n }\n\n // Properties of the current token:\n // Its type\n this.type = types$1.eof;\n // For tokens that include more information than their type, the value\n this.value = null;\n // Its start and end offset\n this.start = this.end = this.pos;\n // And, if locations are used, the {line, column} object\n // corresponding to those offsets\n this.startLoc = this.endLoc = this.curPosition();\n\n // Position information for the previous token\n this.lastTokEndLoc = this.lastTokStartLoc = null;\n this.lastTokStart = this.lastTokEnd = this.pos;\n\n // The context stack is used to superficially track syntactic\n // context to predict whether a regular expression is allowed in a\n // given position.\n this.context = this.initialContext();\n this.exprAllowed = true;\n\n // Figure out if it's a module code.\n this.inModule = options.sourceType === \"module\";\n this.strict = this.inModule || this.strictDirective(this.pos);\n\n // Used to signify the start of a potential arrow function\n this.potentialArrowAt = -1;\n this.potentialArrowInForAwait = false;\n\n // Positions to delayed-check that yield/await does not exist in default parameters.\n this.yieldPos = this.awaitPos = this.awaitIdentPos = 0;\n // Labels in scope.\n this.labels = [];\n // Thus-far undefined exports.\n this.undefinedExports = Object.create(null);\n\n // If enabled, skip leading hashbang line.\n if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === \"#!\")\n { this.skipLineComment(2); }\n\n // Scope tracking for duplicate variable names (see scope.js)\n this.scopeStack = [];\n this.enterScope(SCOPE_TOP);\n\n // For RegExp validation\n this.regexpState = null;\n\n // The stack of private names.\n // Each element has two properties: 'declared' and 'used'.\n // When it exited from the outermost class definition, all used private names must be declared.\n this.privateNameStack = [];\n};\n\nvar prototypeAccessors = { inFunction: { configurable: true },inGenerator: { configurable: true },inAsync: { configurable: true },canAwait: { configurable: true },allowSuper: { configurable: true },allowDirectSuper: { configurable: true },treatFunctionsAsVar: { configurable: true },allowNewDotTarget: { configurable: true },inClassStaticBlock: { configurable: true } };\n\nParser.prototype.parse = function parse () {\n var node = this.options.program || this.startNode();\n this.nextToken();\n return this.parseTopLevel(node)\n};\n\nprototypeAccessors.inFunction.get = function () { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 };\n\nprototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit };\n\nprototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit };\n\nprototypeAccessors.canAwait.get = function () {\n for (var i = this.scopeStack.length - 1; i >= 0; i--) {\n var scope = this.scopeStack[i];\n if (scope.inClassFieldInit || scope.flags & SCOPE_CLASS_STATIC_BLOCK) { return false }\n if (scope.flags & SCOPE_FUNCTION) { return (scope.flags & SCOPE_ASYNC) > 0 }\n }\n return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction\n};\n\nprototypeAccessors.allowSuper.get = function () {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod\n};\n\nprototypeAccessors.allowDirectSuper.get = function () { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 };\n\nprototypeAccessors.treatFunctionsAsVar.get = function () { return this.treatFunctionsAsVarInScope(this.currentScope()) };\n\nprototypeAccessors.allowNewDotTarget.get = function () {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & (SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit\n};\n\nprototypeAccessors.inClassStaticBlock.get = function () {\n return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0\n};\n\nParser.extend = function extend () {\n var plugins = [], len = arguments.length;\n while ( len-- ) plugins[ len ] = arguments[ len ];\n\n var cls = this;\n for (var i = 0; i < plugins.length; i++) { cls = plugins[i](cls); }\n return cls\n};\n\nParser.parse = function parse (input, options) {\n return new this(options, input).parse()\n};\n\nParser.parseExpressionAt = function parseExpressionAt (input, pos, options) {\n var parser = new this(options, input, pos);\n parser.nextToken();\n return parser.parseExpression()\n};\n\nParser.tokenizer = function tokenizer (input, options) {\n return new this(options, input)\n};\n\nObject.defineProperties( Parser.prototype, prototypeAccessors );\n\nvar pp$9 = Parser.prototype;\n\n// ## Parser utilities\n\nvar literal = /^(?:'((?:\\\\.|[^'\\\\])*?)'|\"((?:\\\\.|[^\"\\\\])*?)\")/;\npp$9.strictDirective = function(start) {\n if (this.options.ecmaVersion < 5) { return false }\n for (;;) {\n // Try to find string literal.\n skipWhiteSpace.lastIndex = start;\n start += skipWhiteSpace.exec(this.input)[0].length;\n var match = literal.exec(this.input.slice(start));\n if (!match) { return false }\n if ((match[1] || match[2]) === \"use strict\") {\n skipWhiteSpace.lastIndex = start + match[0].length;\n var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;\n var next = this.input.charAt(end);\n return next === \";\" || next === \"}\" ||\n (lineBreak.test(spaceAfter[0]) &&\n !(/[(`.[+\\-/*%<>=,?^&]/.test(next) || next === \"!\" && this.input.charAt(end + 1) === \"=\"))\n }\n start += match[0].length;\n\n // Skip semicolon, if any.\n skipWhiteSpace.lastIndex = start;\n start += skipWhiteSpace.exec(this.input)[0].length;\n if (this.input[start] === \";\")\n { start++; }\n }\n};\n\n// Predicate that tests whether the next token is of the given\n// type, and if yes, consumes it as a side effect.\n\npp$9.eat = function(type) {\n if (this.type === type) {\n this.next();\n return true\n } else {\n return false\n }\n};\n\n// Tests whether parsed token is a contextual keyword.\n\npp$9.isContextual = function(name) {\n return this.type === types$1.name && this.value === name && !this.containsEsc\n};\n\n// Consumes contextual keyword if possible.\n\npp$9.eatContextual = function(name) {\n if (!this.isContextual(name)) { return false }\n this.next();\n return true\n};\n\n// Asserts that following token is given contextual keyword.\n\npp$9.expectContextual = function(name) {\n if (!this.eatContextual(name)) { this.unexpected(); }\n};\n\n// Test whether a semicolon can be inserted at the current position.\n\npp$9.canInsertSemicolon = function() {\n return this.type === types$1.eof ||\n this.type === types$1.braceR ||\n lineBreak.test(this.input.slice(this.lastTokEnd, this.start))\n};\n\npp$9.insertSemicolon = function() {\n if (this.canInsertSemicolon()) {\n if (this.options.onInsertedSemicolon)\n { this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc); }\n return true\n }\n};\n\n// Consume a semicolon, or, failing that, see if we are allowed to\n// pretend that there is a semicolon at this position.\n\npp$9.semicolon = function() {\n if (!this.eat(types$1.semi) && !this.insertSemicolon()) { this.unexpected(); }\n};\n\npp$9.afterTrailingComma = function(tokType, notNext) {\n if (this.type === tokType) {\n if (this.options.onTrailingComma)\n { this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc); }\n if (!notNext)\n { this.next(); }\n return true\n }\n};\n\n// Expect a token of a given type. If found, consume it, otherwise,\n// raise an unexpected token error.\n\npp$9.expect = function(type) {\n this.eat(type) || this.unexpected();\n};\n\n// Raise an unexpected token error.\n\npp$9.unexpected = function(pos) {\n this.raise(pos != null ? pos : this.start, \"Unexpected token\");\n};\n\nvar DestructuringErrors = function DestructuringErrors() {\n this.shorthandAssign =\n this.trailingComma =\n this.parenthesizedAssign =\n this.parenthesizedBind =\n this.doubleProto =\n -1;\n};\n\npp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {\n if (!refDestructuringErrors) { return }\n if (refDestructuringErrors.trailingComma > -1)\n { this.raiseRecoverable(refDestructuringErrors.trailingComma, \"Comma is not permitted after the rest element\"); }\n var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;\n if (parens > -1) { this.raiseRecoverable(parens, isAssign ? \"Assigning to rvalue\" : \"Parenthesized pattern\"); }\n};\n\npp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {\n if (!refDestructuringErrors) { return false }\n var shorthandAssign = refDestructuringErrors.shorthandAssign;\n var doubleProto = refDestructuringErrors.doubleProto;\n if (!andThrow) { return shorthandAssign >= 0 || doubleProto >= 0 }\n if (shorthandAssign >= 0)\n { this.raise(shorthandAssign, \"Shorthand property assignments are valid only in destructuring patterns\"); }\n if (doubleProto >= 0)\n { this.raiseRecoverable(doubleProto, \"Redefinition of __proto__ property\"); }\n};\n\npp$9.checkYieldAwaitInDefaultParams = function() {\n if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos))\n { this.raise(this.yieldPos, \"Yield expression cannot be a default value\"); }\n if (this.awaitPos)\n { this.raise(this.awaitPos, \"Await expression cannot be a default value\"); }\n};\n\npp$9.isSimpleAssignTarget = function(expr) {\n if (expr.type === \"ParenthesizedExpression\")\n { return this.isSimpleAssignTarget(expr.expression) }\n return expr.type === \"Identifier\" || expr.type === \"MemberExpression\"\n};\n\nvar pp$8 = Parser.prototype;\n\n// ### Statement parsing\n\n// Parse a program. Initializes the parser, reads any number of\n// statements, and wraps them in a Program node. Optionally takes a\n// `program` argument. If present, the statements will be appended\n// to its body instead of creating a new node.\n\npp$8.parseTopLevel = function(node) {\n var exports = Object.create(null);\n if (!node.body) { node.body = []; }\n while (this.type !== types$1.eof) {\n var stmt = this.parseStatement(null, true, exports);\n node.body.push(stmt);\n }\n if (this.inModule)\n { for (var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1)\n {\n var name = list[i];\n\n this.raiseRecoverable(this.undefinedExports[name].start, (\"Export '\" + name + \"' is not defined\"));\n } }\n this.adaptDirectivePrologue(node.body);\n this.next();\n node.sourceType = this.options.sourceType;\n return this.finishNode(node, \"Program\")\n};\n\nvar loopLabel = {kind: \"loop\"}, switchLabel = {kind: \"switch\"};\n\npp$8.isLet = function(context) {\n if (this.options.ecmaVersion < 6 || !this.isContextual(\"let\")) { return false }\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n // For ambiguous cases, determine if a LexicalDeclaration (or only a\n // Statement) is allowed here. If context is not empty then only a Statement\n // is allowed. However, `let [` is an explicit negative lookahead for\n // ExpressionStatement, so special-case it first.\n if (nextCh === 91 || nextCh === 92) { return true } // '[', '/'\n if (context) { return false }\n\n if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '{', astral\n if (isIdentifierStart(nextCh, true)) {\n var pos = next + 1;\n while (isIdentifierChar(nextCh = this.input.charCodeAt(pos), true)) { ++pos; }\n if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true }\n var ident = this.input.slice(next, pos);\n if (!keywordRelationalOperator.test(ident)) { return true }\n }\n return false\n};\n\n// check 'async [no LineTerminator here] function'\n// - 'async /*foo*/ function' is OK.\n// - 'async /*\\n*/ function' is invalid.\npp$8.isAsyncFunction = function() {\n if (this.options.ecmaVersion < 8 || !this.isContextual(\"async\"))\n { return false }\n\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, after;\n return !lineBreak.test(this.input.slice(this.pos, next)) &&\n this.input.slice(next, next + 8) === \"function\" &&\n (next + 8 === this.input.length ||\n !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00))\n};\n\n// Parse a single statement.\n//\n// If expecting a statement and finding a slash operator, parse a\n// regular expression literal. This is to handle cases like\n// `if (foo) /blah/.exec(foo)`, where looking at the previous token\n// does not help.\n\npp$8.parseStatement = function(context, topLevel, exports) {\n var starttype = this.type, node = this.startNode(), kind;\n\n if (this.isLet(context)) {\n starttype = types$1._var;\n kind = \"let\";\n }\n\n // Most types of statements are recognized by the keyword they\n // start with. Many are trivial to parse, some require a bit of\n // complexity.\n\n switch (starttype) {\n case types$1._break: case types$1._continue: return this.parseBreakContinueStatement(node, starttype.keyword)\n case types$1._debugger: return this.parseDebuggerStatement(node)\n case types$1._do: return this.parseDoStatement(node)\n case types$1._for: return this.parseForStatement(node)\n case types$1._function:\n // Function as sole body of either an if statement or a labeled statement\n // works, but not when it is part of a labeled statement that is the sole\n // body of an if statement.\n if ((context && (this.strict || context !== \"if\" && context !== \"label\")) && this.options.ecmaVersion >= 6) { this.unexpected(); }\n return this.parseFunctionStatement(node, false, !context)\n case types$1._class:\n if (context) { this.unexpected(); }\n return this.parseClass(node, true)\n case types$1._if: return this.parseIfStatement(node)\n case types$1._return: return this.parseReturnStatement(node)\n case types$1._switch: return this.parseSwitchStatement(node)\n case types$1._throw: return this.parseThrowStatement(node)\n case types$1._try: return this.parseTryStatement(node)\n case types$1._const: case types$1._var:\n kind = kind || this.value;\n if (context && kind !== \"var\") { this.unexpected(); }\n return this.parseVarStatement(node, kind)\n case types$1._while: return this.parseWhileStatement(node)\n case types$1._with: return this.parseWithStatement(node)\n case types$1.braceL: return this.parseBlock(true, node)\n case types$1.semi: return this.parseEmptyStatement(node)\n case types$1._export:\n case types$1._import:\n if (this.options.ecmaVersion > 10 && starttype === types$1._import) {\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n if (nextCh === 40 || nextCh === 46) // '(' or '.'\n { return this.parseExpressionStatement(node, this.parseExpression()) }\n }\n\n if (!this.options.allowImportExportEverywhere) {\n if (!topLevel)\n { this.raise(this.start, \"'import' and 'export' may only appear at the top level\"); }\n if (!this.inModule)\n { this.raise(this.start, \"'import' and 'export' may appear only with 'sourceType: module'\"); }\n }\n return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports)\n\n // If the statement does not start with a statement keyword or a\n // brace, it's an ExpressionStatement or LabeledStatement. We\n // simply start parsing an expression, and afterwards, if the\n // next token is a colon and the expression was a simple\n // Identifier node, we switch to interpreting it as a label.\n default:\n if (this.isAsyncFunction()) {\n if (context) { this.unexpected(); }\n this.next();\n return this.parseFunctionStatement(node, true, !context)\n }\n\n var maybeName = this.value, expr = this.parseExpression();\n if (starttype === types$1.name && expr.type === \"Identifier\" && this.eat(types$1.colon))\n { return this.parseLabeledStatement(node, maybeName, expr, context) }\n else { return this.parseExpressionStatement(node, expr) }\n }\n};\n\npp$8.parseBreakContinueStatement = function(node, keyword) {\n var isBreak = keyword === \"break\";\n this.next();\n if (this.eat(types$1.semi) || this.insertSemicolon()) { node.label = null; }\n else if (this.type !== types$1.name) { this.unexpected(); }\n else {\n node.label = this.parseIdent();\n this.semicolon();\n }\n\n // Verify that there is an actual destination to break or\n // continue to.\n var i = 0;\n for (; i < this.labels.length; ++i) {\n var lab = this.labels[i];\n if (node.label == null || lab.name === node.label.name) {\n if (lab.kind != null && (isBreak || lab.kind === \"loop\")) { break }\n if (node.label && isBreak) { break }\n }\n }\n if (i === this.labels.length) { this.raise(node.start, \"Unsyntactic \" + keyword); }\n return this.finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\")\n};\n\npp$8.parseDebuggerStatement = function(node) {\n this.next();\n this.semicolon();\n return this.finishNode(node, \"DebuggerStatement\")\n};\n\npp$8.parseDoStatement = function(node) {\n this.next();\n this.labels.push(loopLabel);\n node.body = this.parseStatement(\"do\");\n this.labels.pop();\n this.expect(types$1._while);\n node.test = this.parseParenExpression();\n if (this.options.ecmaVersion >= 6)\n { this.eat(types$1.semi); }\n else\n { this.semicolon(); }\n return this.finishNode(node, \"DoWhileStatement\")\n};\n\n// Disambiguating between a `for` and a `for`/`in` or `for`/`of`\n// loop is non-trivial. Basically, we have to parse the init `var`\n// statement or expression, disallowing the `in` operator (see\n// the second parameter to `parseExpression`), and then check\n// whether the next token is `in` or `of`. When there is no init\n// part (semicolon immediately after the opening parenthesis), it\n// is a regular `for` loop.\n\npp$8.parseForStatement = function(node) {\n this.next();\n var awaitAt = (this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual(\"await\")) ? this.lastTokStart : -1;\n this.labels.push(loopLabel);\n this.enterScope(0);\n this.expect(types$1.parenL);\n if (this.type === types$1.semi) {\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node, null)\n }\n var isLet = this.isLet();\n if (this.type === types$1._var || this.type === types$1._const || isLet) {\n var init$1 = this.startNode(), kind = isLet ? \"let\" : this.value;\n this.next();\n this.parseVar(init$1, true, kind);\n this.finishNode(init$1, \"VariableDeclaration\");\n if ((this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) && init$1.declarations.length === 1) {\n if (this.options.ecmaVersion >= 9) {\n if (this.type === types$1._in) {\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n } else { node.await = awaitAt > -1; }\n }\n return this.parseForIn(node, init$1)\n }\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node, init$1)\n }\n var startsWithLet = this.isContextual(\"let\"), isForOf = false;\n var refDestructuringErrors = new DestructuringErrors;\n var init = this.parseExpression(awaitAt > -1 ? \"await\" : true, refDestructuringErrors);\n if (this.type === types$1._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) {\n if (this.options.ecmaVersion >= 9) {\n if (this.type === types$1._in) {\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n } else { node.await = awaitAt > -1; }\n }\n if (startsWithLet && isForOf) { this.raise(init.start, \"The left-hand side of a for-of loop may not start with 'let'.\"); }\n this.toAssignable(init, false, refDestructuringErrors);\n this.checkLValPattern(init);\n return this.parseForIn(node, init)\n } else {\n this.checkExpressionErrors(refDestructuringErrors, true);\n }\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node, init)\n};\n\npp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {\n this.next();\n return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), false, isAsync)\n};\n\npp$8.parseIfStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n // allow function declarations in branches, but only in non-strict mode\n node.consequent = this.parseStatement(\"if\");\n node.alternate = this.eat(types$1._else) ? this.parseStatement(\"if\") : null;\n return this.finishNode(node, \"IfStatement\")\n};\n\npp$8.parseReturnStatement = function(node) {\n if (!this.inFunction && !this.options.allowReturnOutsideFunction)\n { this.raise(this.start, \"'return' outside of function\"); }\n this.next();\n\n // In `return` (and `break`/`continue`), the keywords with\n // optional arguments, we eagerly look for a semicolon or the\n // possibility to insert one.\n\n if (this.eat(types$1.semi) || this.insertSemicolon()) { node.argument = null; }\n else { node.argument = this.parseExpression(); this.semicolon(); }\n return this.finishNode(node, \"ReturnStatement\")\n};\n\npp$8.parseSwitchStatement = function(node) {\n this.next();\n node.discriminant = this.parseParenExpression();\n node.cases = [];\n this.expect(types$1.braceL);\n this.labels.push(switchLabel);\n this.enterScope(0);\n\n // Statements under must be grouped (by label) in SwitchCase\n // nodes. `cur` is used to keep the node that we are currently\n // adding statements to.\n\n var cur;\n for (var sawDefault = false; this.type !== types$1.braceR;) {\n if (this.type === types$1._case || this.type === types$1._default) {\n var isCase = this.type === types$1._case;\n if (cur) { this.finishNode(cur, \"SwitchCase\"); }\n node.cases.push(cur = this.startNode());\n cur.consequent = [];\n this.next();\n if (isCase) {\n cur.test = this.parseExpression();\n } else {\n if (sawDefault) { this.raiseRecoverable(this.lastTokStart, \"Multiple default clauses\"); }\n sawDefault = true;\n cur.test = null;\n }\n this.expect(types$1.colon);\n } else {\n if (!cur) { this.unexpected(); }\n cur.consequent.push(this.parseStatement(null));\n }\n }\n this.exitScope();\n if (cur) { this.finishNode(cur, \"SwitchCase\"); }\n this.next(); // Closing brace\n this.labels.pop();\n return this.finishNode(node, \"SwitchStatement\")\n};\n\npp$8.parseThrowStatement = function(node) {\n this.next();\n if (lineBreak.test(this.input.slice(this.lastTokEnd, this.start)))\n { this.raise(this.lastTokEnd, \"Illegal newline after throw\"); }\n node.argument = this.parseExpression();\n this.semicolon();\n return this.finishNode(node, \"ThrowStatement\")\n};\n\n// Reused empty array added for node fields that are always empty.\n\nvar empty$1 = [];\n\npp$8.parseCatchClauseParam = function() {\n var param = this.parseBindingAtom();\n var simple = param.type === \"Identifier\";\n this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);\n this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);\n this.expect(types$1.parenR);\n\n return param\n};\n\npp$8.parseTryStatement = function(node) {\n this.next();\n node.block = this.parseBlock();\n node.handler = null;\n if (this.type === types$1._catch) {\n var clause = this.startNode();\n this.next();\n if (this.eat(types$1.parenL)) {\n clause.param = this.parseCatchClauseParam();\n } else {\n if (this.options.ecmaVersion < 10) { this.unexpected(); }\n clause.param = null;\n this.enterScope(0);\n }\n clause.body = this.parseBlock(false);\n this.exitScope();\n node.handler = this.finishNode(clause, \"CatchClause\");\n }\n node.finalizer = this.eat(types$1._finally) ? this.parseBlock() : null;\n if (!node.handler && !node.finalizer)\n { this.raise(node.start, \"Missing catch or finally clause\"); }\n return this.finishNode(node, \"TryStatement\")\n};\n\npp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {\n this.next();\n this.parseVar(node, false, kind, allowMissingInitializer);\n this.semicolon();\n return this.finishNode(node, \"VariableDeclaration\")\n};\n\npp$8.parseWhileStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n this.labels.push(loopLabel);\n node.body = this.parseStatement(\"while\");\n this.labels.pop();\n return this.finishNode(node, \"WhileStatement\")\n};\n\npp$8.parseWithStatement = function(node) {\n if (this.strict) { this.raise(this.start, \"'with' in strict mode\"); }\n this.next();\n node.object = this.parseParenExpression();\n node.body = this.parseStatement(\"with\");\n return this.finishNode(node, \"WithStatement\")\n};\n\npp$8.parseEmptyStatement = function(node) {\n this.next();\n return this.finishNode(node, \"EmptyStatement\")\n};\n\npp$8.parseLabeledStatement = function(node, maybeName, expr, context) {\n for (var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1)\n {\n var label = list[i$1];\n\n if (label.name === maybeName)\n { this.raise(expr.start, \"Label '\" + maybeName + \"' is already declared\");\n } }\n var kind = this.type.isLoop ? \"loop\" : this.type === types$1._switch ? \"switch\" : null;\n for (var i = this.labels.length - 1; i >= 0; i--) {\n var label$1 = this.labels[i];\n if (label$1.statementStart === node.start) {\n // Update information about previous labels on this node\n label$1.statementStart = this.start;\n label$1.kind = kind;\n } else { break }\n }\n this.labels.push({name: maybeName, kind: kind, statementStart: this.start});\n node.body = this.parseStatement(context ? context.indexOf(\"label\") === -1 ? context + \"label\" : context : \"label\");\n this.labels.pop();\n node.label = expr;\n return this.finishNode(node, \"LabeledStatement\")\n};\n\npp$8.parseExpressionStatement = function(node, expr) {\n node.expression = expr;\n this.semicolon();\n return this.finishNode(node, \"ExpressionStatement\")\n};\n\n// Parse a semicolon-enclosed block of statements, handling `\"use\n// strict\"` declarations when `allowStrict` is true (used for\n// function bodies).\n\npp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) {\n if ( createNewLexicalScope === void 0 ) createNewLexicalScope = true;\n if ( node === void 0 ) node = this.startNode();\n\n node.body = [];\n this.expect(types$1.braceL);\n if (createNewLexicalScope) { this.enterScope(0); }\n while (this.type !== types$1.braceR) {\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n if (exitStrict) { this.strict = false; }\n this.next();\n if (createNewLexicalScope) { this.exitScope(); }\n return this.finishNode(node, \"BlockStatement\")\n};\n\n// Parse a regular `for` loop. The disambiguation code in\n// `parseStatement` will already have parsed the init statement or\n// expression.\n\npp$8.parseFor = function(node, init) {\n node.init = init;\n this.expect(types$1.semi);\n node.test = this.type === types$1.semi ? null : this.parseExpression();\n this.expect(types$1.semi);\n node.update = this.type === types$1.parenR ? null : this.parseExpression();\n this.expect(types$1.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, \"ForStatement\")\n};\n\n// Parse a `for`/`in` and `for`/`of` loop, which are almost\n// same from parser's perspective.\n\npp$8.parseForIn = function(node, init) {\n var isForIn = this.type === types$1._in;\n this.next();\n\n if (\n init.type === \"VariableDeclaration\" &&\n init.declarations[0].init != null &&\n (\n !isForIn ||\n this.options.ecmaVersion < 8 ||\n this.strict ||\n init.kind !== \"var\" ||\n init.declarations[0].id.type !== \"Identifier\"\n )\n ) {\n this.raise(\n init.start,\n ((isForIn ? \"for-in\" : \"for-of\") + \" loop variable declaration may not have an initializer\")\n );\n }\n node.left = init;\n node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign();\n this.expect(types$1.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, isForIn ? \"ForInStatement\" : \"ForOfStatement\")\n};\n\n// Parse a list of variable declarations.\n\npp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {\n node.declarations = [];\n node.kind = kind;\n for (;;) {\n var decl = this.startNode();\n this.parseVarId(decl, kind);\n if (this.eat(types$1.eq)) {\n decl.init = this.parseMaybeAssign(isFor);\n } else if (!allowMissingInitializer && kind === \"const\" && !(this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual(\"of\")))) {\n this.unexpected();\n } else if (!allowMissingInitializer && decl.id.type !== \"Identifier\" && !(isFor && (this.type === types$1._in || this.isContextual(\"of\")))) {\n this.raise(this.lastTokEnd, \"Complex binding patterns require an initialization value\");\n } else {\n decl.init = null;\n }\n node.declarations.push(this.finishNode(decl, \"VariableDeclarator\"));\n if (!this.eat(types$1.comma)) { break }\n }\n return node\n};\n\npp$8.parseVarId = function(decl, kind) {\n decl.id = this.parseBindingAtom();\n this.checkLValPattern(decl.id, kind === \"var\" ? BIND_VAR : BIND_LEXICAL, false);\n};\n\nvar FUNC_STATEMENT = 1, FUNC_HANGING_STATEMENT = 2, FUNC_NULLABLE_ID = 4;\n\n// Parse a function declaration or literal (depending on the\n// `statement & FUNC_STATEMENT`).\n\n// Remove `allowExpressionBody` for 7.0.0, as it is only called with false\npp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) {\n this.initFunction(node);\n if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) {\n if (this.type === types$1.star && (statement & FUNC_HANGING_STATEMENT))\n { this.unexpected(); }\n node.generator = this.eat(types$1.star);\n }\n if (this.options.ecmaVersion >= 8)\n { node.async = !!isAsync; }\n\n if (statement & FUNC_STATEMENT) {\n node.id = (statement & FUNC_NULLABLE_ID) && this.type !== types$1.name ? null : this.parseIdent();\n if (node.id && !(statement & FUNC_HANGING_STATEMENT))\n // If it is a regular function declaration in sloppy mode, then it is\n // subject to Annex B semantics (BIND_FUNCTION). Otherwise, the binding\n // mode depends on properties of the current scope (see\n // treatFunctionsAsVar).\n { this.checkLValSimple(node.id, (this.strict || node.generator || node.async) ? this.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION); }\n }\n\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope(functionFlags(node.async, node.generator));\n\n if (!(statement & FUNC_STATEMENT))\n { node.id = this.type === types$1.name ? this.parseIdent() : null; }\n\n this.parseFunctionParams(node);\n this.parseFunctionBody(node, allowExpressionBody, false, forInit);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, (statement & FUNC_STATEMENT) ? \"FunctionDeclaration\" : \"FunctionExpression\")\n};\n\npp$8.parseFunctionParams = function(node) {\n this.expect(types$1.parenL);\n node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n};\n\n// Parse a class declaration or literal (depending on the\n// `isStatement` parameter).\n\npp$8.parseClass = function(node, isStatement) {\n this.next();\n\n // ecma-262 14.6 Class Definitions\n // A class definition is always strict mode code.\n var oldStrict = this.strict;\n this.strict = true;\n\n this.parseClassId(node, isStatement);\n this.parseClassSuper(node);\n var privateNameMap = this.enterClassBody();\n var classBody = this.startNode();\n var hadConstructor = false;\n classBody.body = [];\n this.expect(types$1.braceL);\n while (this.type !== types$1.braceR) {\n var element = this.parseClassElement(node.superClass !== null);\n if (element) {\n classBody.body.push(element);\n if (element.type === \"MethodDefinition\" && element.kind === \"constructor\") {\n if (hadConstructor) { this.raiseRecoverable(element.start, \"Duplicate constructor in the same class\"); }\n hadConstructor = true;\n } else if (element.key && element.key.type === \"PrivateIdentifier\" && isPrivateNameConflicted(privateNameMap, element)) {\n this.raiseRecoverable(element.key.start, (\"Identifier '#\" + (element.key.name) + \"' has already been declared\"));\n }\n }\n }\n this.strict = oldStrict;\n this.next();\n node.body = this.finishNode(classBody, \"ClassBody\");\n this.exitClassBody();\n return this.finishNode(node, isStatement ? \"ClassDeclaration\" : \"ClassExpression\")\n};\n\npp$8.parseClassElement = function(constructorAllowsSuper) {\n if (this.eat(types$1.semi)) { return null }\n\n var ecmaVersion = this.options.ecmaVersion;\n var node = this.startNode();\n var keyName = \"\";\n var isGenerator = false;\n var isAsync = false;\n var kind = \"method\";\n var isStatic = false;\n\n if (this.eatContextual(\"static\")) {\n // Parse static init block\n if (ecmaVersion >= 13 && this.eat(types$1.braceL)) {\n this.parseClassStaticBlock(node);\n return node\n }\n if (this.isClassElementNameStart() || this.type === types$1.star) {\n isStatic = true;\n } else {\n keyName = \"static\";\n }\n }\n node.static = isStatic;\n if (!keyName && ecmaVersion >= 8 && this.eatContextual(\"async\")) {\n if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) {\n isAsync = true;\n } else {\n keyName = \"async\";\n }\n }\n if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) {\n isGenerator = true;\n }\n if (!keyName && !isAsync && !isGenerator) {\n var lastValue = this.value;\n if (this.eatContextual(\"get\") || this.eatContextual(\"set\")) {\n if (this.isClassElementNameStart()) {\n kind = lastValue;\n } else {\n keyName = lastValue;\n }\n }\n }\n\n // Parse element name\n if (keyName) {\n // 'async', 'get', 'set', or 'static' were not a keyword contextually.\n // The last token is any of those. Make it the element name.\n node.computed = false;\n node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc);\n node.key.name = keyName;\n this.finishNode(node.key, \"Identifier\");\n } else {\n this.parseClassElementName(node);\n }\n\n // Parse element value\n if (ecmaVersion < 13 || this.type === types$1.parenL || kind !== \"method\" || isGenerator || isAsync) {\n var isConstructor = !node.static && checkKeyName(node, \"constructor\");\n var allowsDirectSuper = isConstructor && constructorAllowsSuper;\n // Couldn't move this check into the 'parseClassMethod' method for backward compatibility.\n if (isConstructor && kind !== \"method\") { this.raise(node.key.start, \"Constructor can't have get/set modifier\"); }\n node.kind = isConstructor ? \"constructor\" : kind;\n this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper);\n } else {\n this.parseClassField(node);\n }\n\n return node\n};\n\npp$8.isClassElementNameStart = function() {\n return (\n this.type === types$1.name ||\n this.type === types$1.privateId ||\n this.type === types$1.num ||\n this.type === types$1.string ||\n this.type === types$1.bracketL ||\n this.type.keyword\n )\n};\n\npp$8.parseClassElementName = function(element) {\n if (this.type === types$1.privateId) {\n if (this.value === \"constructor\") {\n this.raise(this.start, \"Classes can't have an element named '#constructor'\");\n }\n element.computed = false;\n element.key = this.parsePrivateIdent();\n } else {\n this.parsePropertyName(element);\n }\n};\n\npp$8.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) {\n // Check key and flags\n var key = method.key;\n if (method.kind === \"constructor\") {\n if (isGenerator) { this.raise(key.start, \"Constructor can't be a generator\"); }\n if (isAsync) { this.raise(key.start, \"Constructor can't be an async method\"); }\n } else if (method.static && checkKeyName(method, \"prototype\")) {\n this.raise(key.start, \"Classes may not have a static property named prototype\");\n }\n\n // Parse value\n var value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper);\n\n // Check value\n if (method.kind === \"get\" && value.params.length !== 0)\n { this.raiseRecoverable(value.start, \"getter should have no params\"); }\n if (method.kind === \"set\" && value.params.length !== 1)\n { this.raiseRecoverable(value.start, \"setter should have exactly one param\"); }\n if (method.kind === \"set\" && value.params[0].type === \"RestElement\")\n { this.raiseRecoverable(value.params[0].start, \"Setter cannot use rest params\"); }\n\n return this.finishNode(method, \"MethodDefinition\")\n};\n\npp$8.parseClassField = function(field) {\n if (checkKeyName(field, \"constructor\")) {\n this.raise(field.key.start, \"Classes can't have a field named 'constructor'\");\n } else if (field.static && checkKeyName(field, \"prototype\")) {\n this.raise(field.key.start, \"Classes can't have a static field named 'prototype'\");\n }\n\n if (this.eat(types$1.eq)) {\n // To raise SyntaxError if 'arguments' exists in the initializer.\n var scope = this.currentThisScope();\n var inClassFieldInit = scope.inClassFieldInit;\n scope.inClassFieldInit = true;\n field.value = this.parseMaybeAssign();\n scope.inClassFieldInit = inClassFieldInit;\n } else {\n field.value = null;\n }\n this.semicolon();\n\n return this.finishNode(field, \"PropertyDefinition\")\n};\n\npp$8.parseClassStaticBlock = function(node) {\n node.body = [];\n\n var oldLabels = this.labels;\n this.labels = [];\n this.enterScope(SCOPE_CLASS_STATIC_BLOCK | SCOPE_SUPER);\n while (this.type !== types$1.braceR) {\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n this.next();\n this.exitScope();\n this.labels = oldLabels;\n\n return this.finishNode(node, \"StaticBlock\")\n};\n\npp$8.parseClassId = function(node, isStatement) {\n if (this.type === types$1.name) {\n node.id = this.parseIdent();\n if (isStatement)\n { this.checkLValSimple(node.id, BIND_LEXICAL, false); }\n } else {\n if (isStatement === true)\n { this.unexpected(); }\n node.id = null;\n }\n};\n\npp$8.parseClassSuper = function(node) {\n node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(null, false) : null;\n};\n\npp$8.enterClassBody = function() {\n var element = {declared: Object.create(null), used: []};\n this.privateNameStack.push(element);\n return element.declared\n};\n\npp$8.exitClassBody = function() {\n var ref = this.privateNameStack.pop();\n var declared = ref.declared;\n var used = ref.used;\n if (!this.options.checkPrivateFields) { return }\n var len = this.privateNameStack.length;\n var parent = len === 0 ? null : this.privateNameStack[len - 1];\n for (var i = 0; i < used.length; ++i) {\n var id = used[i];\n if (!hasOwn(declared, id.name)) {\n if (parent) {\n parent.used.push(id);\n } else {\n this.raiseRecoverable(id.start, (\"Private field '#\" + (id.name) + \"' must be declared in an enclosing class\"));\n }\n }\n }\n};\n\nfunction isPrivateNameConflicted(privateNameMap, element) {\n var name = element.key.name;\n var curr = privateNameMap[name];\n\n var next = \"true\";\n if (element.type === \"MethodDefinition\" && (element.kind === \"get\" || element.kind === \"set\")) {\n next = (element.static ? \"s\" : \"i\") + element.kind;\n }\n\n // `class { get #a(){}; static set #a(_){} }` is also conflict.\n if (\n curr === \"iget\" && next === \"iset\" ||\n curr === \"iset\" && next === \"iget\" ||\n curr === \"sget\" && next === \"sset\" ||\n curr === \"sset\" && next === \"sget\"\n ) {\n privateNameMap[name] = \"true\";\n return false\n } else if (!curr) {\n privateNameMap[name] = next;\n return false\n } else {\n return true\n }\n}\n\nfunction checkKeyName(node, name) {\n var computed = node.computed;\n var key = node.key;\n return !computed && (\n key.type === \"Identifier\" && key.name === name ||\n key.type === \"Literal\" && key.value === name\n )\n}\n\n// Parses module export declaration.\n\npp$8.parseExportAllDeclaration = function(node, exports) {\n if (this.options.ecmaVersion >= 11) {\n if (this.eatContextual(\"as\")) {\n node.exported = this.parseModuleExportName();\n this.checkExport(exports, node.exported, this.lastTokStart);\n } else {\n node.exported = null;\n }\n }\n this.expectContextual(\"from\");\n if (this.type !== types$1.string) { this.unexpected(); }\n node.source = this.parseExprAtom();\n this.semicolon();\n return this.finishNode(node, \"ExportAllDeclaration\")\n};\n\npp$8.parseExport = function(node, exports) {\n this.next();\n // export * from '...'\n if (this.eat(types$1.star)) {\n return this.parseExportAllDeclaration(node, exports)\n }\n if (this.eat(types$1._default)) { // export default ...\n this.checkExport(exports, \"default\", this.lastTokStart);\n node.declaration = this.parseExportDefaultDeclaration();\n return this.finishNode(node, \"ExportDefaultDeclaration\")\n }\n // export var|const|let|function|class ...\n if (this.shouldParseExportStatement()) {\n node.declaration = this.parseExportDeclaration(node);\n if (node.declaration.type === \"VariableDeclaration\")\n { this.checkVariableExport(exports, node.declaration.declarations); }\n else\n { this.checkExport(exports, node.declaration.id, node.declaration.id.start); }\n node.specifiers = [];\n node.source = null;\n } else { // export { x, y as z } [from '...']\n node.declaration = null;\n node.specifiers = this.parseExportSpecifiers(exports);\n if (this.eatContextual(\"from\")) {\n if (this.type !== types$1.string) { this.unexpected(); }\n node.source = this.parseExprAtom();\n } else {\n for (var i = 0, list = node.specifiers; i < list.length; i += 1) {\n // check for keywords used as local names\n var spec = list[i];\n\n this.checkUnreserved(spec.local);\n // check if export is defined\n this.checkLocalExport(spec.local);\n\n if (spec.local.type === \"Literal\") {\n this.raise(spec.local.start, \"A string literal cannot be used as an exported binding without `from`.\");\n }\n }\n\n node.source = null;\n }\n this.semicolon();\n }\n return this.finishNode(node, \"ExportNamedDeclaration\")\n};\n\npp$8.parseExportDeclaration = function(node) {\n return this.parseStatement(null)\n};\n\npp$8.parseExportDefaultDeclaration = function() {\n var isAsync;\n if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {\n var fNode = this.startNode();\n this.next();\n if (isAsync) { this.next(); }\n return this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync)\n } else if (this.type === types$1._class) {\n var cNode = this.startNode();\n return this.parseClass(cNode, \"nullableID\")\n } else {\n var declaration = this.parseMaybeAssign();\n this.semicolon();\n return declaration\n }\n};\n\npp$8.checkExport = function(exports, name, pos) {\n if (!exports) { return }\n if (typeof name !== \"string\")\n { name = name.type === \"Identifier\" ? name.name : name.value; }\n if (hasOwn(exports, name))\n { this.raiseRecoverable(pos, \"Duplicate export '\" + name + \"'\"); }\n exports[name] = true;\n};\n\npp$8.checkPatternExport = function(exports, pat) {\n var type = pat.type;\n if (type === \"Identifier\")\n { this.checkExport(exports, pat, pat.start); }\n else if (type === \"ObjectPattern\")\n { for (var i = 0, list = pat.properties; i < list.length; i += 1)\n {\n var prop = list[i];\n\n this.checkPatternExport(exports, prop);\n } }\n else if (type === \"ArrayPattern\")\n { for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {\n var elt = list$1[i$1];\n\n if (elt) { this.checkPatternExport(exports, elt); }\n } }\n else if (type === \"Property\")\n { this.checkPatternExport(exports, pat.value); }\n else if (type === \"AssignmentPattern\")\n { this.checkPatternExport(exports, pat.left); }\n else if (type === \"RestElement\")\n { this.checkPatternExport(exports, pat.argument); }\n else if (type === \"ParenthesizedExpression\")\n { this.checkPatternExport(exports, pat.expression); }\n};\n\npp$8.checkVariableExport = function(exports, decls) {\n if (!exports) { return }\n for (var i = 0, list = decls; i < list.length; i += 1)\n {\n var decl = list[i];\n\n this.checkPatternExport(exports, decl.id);\n }\n};\n\npp$8.shouldParseExportStatement = function() {\n return this.type.keyword === \"var\" ||\n this.type.keyword === \"const\" ||\n this.type.keyword === \"class\" ||\n this.type.keyword === \"function\" ||\n this.isLet() ||\n this.isAsyncFunction()\n};\n\n// Parses a comma-separated list of module exports.\n\npp$8.parseExportSpecifier = function(exports) {\n var node = this.startNode();\n node.local = this.parseModuleExportName();\n\n node.exported = this.eatContextual(\"as\") ? this.parseModuleExportName() : node.local;\n this.checkExport(\n exports,\n node.exported,\n node.exported.start\n );\n\n return this.finishNode(node, \"ExportSpecifier\")\n};\n\npp$8.parseExportSpecifiers = function(exports) {\n var nodes = [], first = true;\n // export { x, y as z } [from '...']\n this.expect(types$1.braceL);\n while (!this.eat(types$1.braceR)) {\n if (!first) {\n this.expect(types$1.comma);\n if (this.afterTrailingComma(types$1.braceR)) { break }\n } else { first = false; }\n\n nodes.push(this.parseExportSpecifier(exports));\n }\n return nodes\n};\n\n// Parses import declaration.\n\npp$8.parseImport = function(node) {\n this.next();\n\n // import '...'\n if (this.type === types$1.string) {\n node.specifiers = empty$1;\n node.source = this.parseExprAtom();\n } else {\n node.specifiers = this.parseImportSpecifiers();\n this.expectContextual(\"from\");\n node.source = this.type === types$1.string ? this.parseExprAtom() : this.unexpected();\n }\n this.semicolon();\n return this.finishNode(node, \"ImportDeclaration\")\n};\n\n// Parses a comma-separated list of module imports.\n\npp$8.parseImportSpecifier = function() {\n var node = this.startNode();\n node.imported = this.parseModuleExportName();\n\n if (this.eatContextual(\"as\")) {\n node.local = this.parseIdent();\n } else {\n this.checkUnreserved(node.imported);\n node.local = node.imported;\n }\n this.checkLValSimple(node.local, BIND_LEXICAL);\n\n return this.finishNode(node, \"ImportSpecifier\")\n};\n\npp$8.parseImportDefaultSpecifier = function() {\n // import defaultObj, { x, y as z } from '...'\n var node = this.startNode();\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, BIND_LEXICAL);\n return this.finishNode(node, \"ImportDefaultSpecifier\")\n};\n\npp$8.parseImportNamespaceSpecifier = function() {\n var node = this.startNode();\n this.next();\n this.expectContextual(\"as\");\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, BIND_LEXICAL);\n return this.finishNode(node, \"ImportNamespaceSpecifier\")\n};\n\npp$8.parseImportSpecifiers = function() {\n var nodes = [], first = true;\n if (this.type === types$1.name) {\n nodes.push(this.parseImportDefaultSpecifier());\n if (!this.eat(types$1.comma)) { return nodes }\n }\n if (this.type === types$1.star) {\n nodes.push(this.parseImportNamespaceSpecifier());\n return nodes\n }\n this.expect(types$1.braceL);\n while (!this.eat(types$1.braceR)) {\n if (!first) {\n this.expect(types$1.comma);\n if (this.afterTrailingComma(types$1.braceR)) { break }\n } else { first = false; }\n\n nodes.push(this.parseImportSpecifier());\n }\n return nodes\n};\n\npp$8.parseModuleExportName = function() {\n if (this.options.ecmaVersion >= 13 && this.type === types$1.string) {\n var stringLiteral = this.parseLiteral(this.value);\n if (loneSurrogate.test(stringLiteral.value)) {\n this.raise(stringLiteral.start, \"An export name cannot include a lone surrogate.\");\n }\n return stringLiteral\n }\n return this.parseIdent(true)\n};\n\n// Set `ExpressionStatement#directive` property for directive prologues.\npp$8.adaptDirectivePrologue = function(statements) {\n for (var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i) {\n statements[i].directive = statements[i].expression.raw.slice(1, -1);\n }\n};\npp$8.isDirectiveCandidate = function(statement) {\n return (\n this.options.ecmaVersion >= 5 &&\n statement.type === \"ExpressionStatement\" &&\n statement.expression.type === \"Literal\" &&\n typeof statement.expression.value === \"string\" &&\n // Reject parenthesized strings.\n (this.input[statement.start] === \"\\\"\" || this.input[statement.start] === \"'\")\n )\n};\n\nvar pp$7 = Parser.prototype;\n\n// Convert existing expression atom to assignable pattern\n// if possible.\n\npp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 6 && node) {\n switch (node.type) {\n case \"Identifier\":\n if (this.inAsync && node.name === \"await\")\n { this.raise(node.start, \"Cannot use 'await' as identifier inside an async function\"); }\n break\n\n case \"ObjectPattern\":\n case \"ArrayPattern\":\n case \"AssignmentPattern\":\n case \"RestElement\":\n break\n\n case \"ObjectExpression\":\n node.type = \"ObjectPattern\";\n if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }\n for (var i = 0, list = node.properties; i < list.length; i += 1) {\n var prop = list[i];\n\n this.toAssignable(prop, isBinding);\n // Early error:\n // AssignmentRestProperty[Yield, Await] :\n // `...` DestructuringAssignmentTarget[Yield, Await]\n //\n // It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|.\n if (\n prop.type === \"RestElement\" &&\n (prop.argument.type === \"ArrayPattern\" || prop.argument.type === \"ObjectPattern\")\n ) {\n this.raise(prop.argument.start, \"Unexpected token\");\n }\n }\n break\n\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n if (node.kind !== \"init\") { this.raise(node.key.start, \"Object pattern can't contain getter or setter\"); }\n this.toAssignable(node.value, isBinding);\n break\n\n case \"ArrayExpression\":\n node.type = \"ArrayPattern\";\n if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }\n this.toAssignableList(node.elements, isBinding);\n break\n\n case \"SpreadElement\":\n node.type = \"RestElement\";\n this.toAssignable(node.argument, isBinding);\n if (node.argument.type === \"AssignmentPattern\")\n { this.raise(node.argument.start, \"Rest elements cannot have a default value\"); }\n break\n\n case \"AssignmentExpression\":\n if (node.operator !== \"=\") { this.raise(node.left.end, \"Only '=' operator can be used for specifying default value.\"); }\n node.type = \"AssignmentPattern\";\n delete node.operator;\n this.toAssignable(node.left, isBinding);\n break\n\n case \"ParenthesizedExpression\":\n this.toAssignable(node.expression, isBinding, refDestructuringErrors);\n break\n\n case \"ChainExpression\":\n this.raiseRecoverable(node.start, \"Optional chaining cannot appear in left-hand side\");\n break\n\n case \"MemberExpression\":\n if (!isBinding) { break }\n\n default:\n this.raise(node.start, \"Assigning to rvalue\");\n }\n } else if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }\n return node\n};\n\n// Convert list of expression atoms to binding list.\n\npp$7.toAssignableList = function(exprList, isBinding) {\n var end = exprList.length;\n for (var i = 0; i < end; i++) {\n var elt = exprList[i];\n if (elt) { this.toAssignable(elt, isBinding); }\n }\n if (end) {\n var last = exprList[end - 1];\n if (this.options.ecmaVersion === 6 && isBinding && last && last.type === \"RestElement\" && last.argument.type !== \"Identifier\")\n { this.unexpected(last.argument.start); }\n }\n return exprList\n};\n\n// Parses spread element.\n\npp$7.parseSpread = function(refDestructuringErrors) {\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n return this.finishNode(node, \"SpreadElement\")\n};\n\npp$7.parseRestBinding = function() {\n var node = this.startNode();\n this.next();\n\n // RestElement inside of a function parameter must be an identifier\n if (this.options.ecmaVersion === 6 && this.type !== types$1.name)\n { this.unexpected(); }\n\n node.argument = this.parseBindingAtom();\n\n return this.finishNode(node, \"RestElement\")\n};\n\n// Parses lvalue (assignable) atom.\n\npp$7.parseBindingAtom = function() {\n if (this.options.ecmaVersion >= 6) {\n switch (this.type) {\n case types$1.bracketL:\n var node = this.startNode();\n this.next();\n node.elements = this.parseBindingList(types$1.bracketR, true, true);\n return this.finishNode(node, \"ArrayPattern\")\n\n case types$1.braceL:\n return this.parseObj(true)\n }\n }\n return this.parseIdent()\n};\n\npp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {\n var elts = [], first = true;\n while (!this.eat(close)) {\n if (first) { first = false; }\n else { this.expect(types$1.comma); }\n if (allowEmpty && this.type === types$1.comma) {\n elts.push(null);\n } else if (allowTrailingComma && this.afterTrailingComma(close)) {\n break\n } else if (this.type === types$1.ellipsis) {\n var rest = this.parseRestBinding();\n this.parseBindingListItem(rest);\n elts.push(rest);\n if (this.type === types$1.comma) { this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\"); }\n this.expect(close);\n break\n } else {\n elts.push(this.parseAssignableListItem(allowModifiers));\n }\n }\n return elts\n};\n\npp$7.parseAssignableListItem = function(allowModifiers) {\n var elem = this.parseMaybeDefault(this.start, this.startLoc);\n this.parseBindingListItem(elem);\n return elem\n};\n\npp$7.parseBindingListItem = function(param) {\n return param\n};\n\n// Parses assignment pattern around given atom if possible.\n\npp$7.parseMaybeDefault = function(startPos, startLoc, left) {\n left = left || this.parseBindingAtom();\n if (this.options.ecmaVersion < 6 || !this.eat(types$1.eq)) { return left }\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.right = this.parseMaybeAssign();\n return this.finishNode(node, \"AssignmentPattern\")\n};\n\n// The following three functions all verify that a node is an lvalue \u2014\n// something that can be bound, or assigned to. In order to do so, they perform\n// a variety of checks:\n//\n// - Check that none of the bound/assigned-to identifiers are reserved words.\n// - Record name declarations for bindings in the appropriate scope.\n// - Check duplicate argument names, if checkClashes is set.\n//\n// If a complex binding pattern is encountered (e.g., object and array\n// destructuring), the entire pattern is recursively checked.\n//\n// There are three versions of checkLVal*() appropriate for different\n// circumstances:\n//\n// - checkLValSimple() shall be used if the syntactic construct supports\n// nothing other than identifiers and member expressions. Parenthesized\n// expressions are also correctly handled. This is generally appropriate for\n// constructs for which the spec says\n//\n// > It is a Syntax Error if AssignmentTargetType of [the production] is not\n// > simple.\n//\n// It is also appropriate for checking if an identifier is valid and not\n// defined elsewhere, like import declarations or function/class identifiers.\n//\n// Examples where this is used include:\n// a += \u2026;\n// import a from '\u2026';\n// where a is the node to be checked.\n//\n// - checkLValPattern() shall be used if the syntactic construct supports\n// anything checkLValSimple() supports, as well as object and array\n// destructuring patterns. This is generally appropriate for constructs for\n// which the spec says\n//\n// > It is a Syntax Error if [the production] is neither an ObjectLiteral nor\n// > an ArrayLiteral and AssignmentTargetType of [the production] is not\n// > simple.\n//\n// Examples where this is used include:\n// (a = \u2026);\n// const a = \u2026;\n// try { \u2026 } catch (a) { \u2026 }\n// where a is the node to be checked.\n//\n// - checkLValInnerPattern() shall be used if the syntactic construct supports\n// anything checkLValPattern() supports, as well as default assignment\n// patterns, rest elements, and other constructs that may appear within an\n// object or array destructuring pattern.\n//\n// As a special case, function parameters also use checkLValInnerPattern(),\n// as they also support defaults and rest constructs.\n//\n// These functions deliberately support both assignment and binding constructs,\n// as the logic for both is exceedingly similar. If the node is the target of\n// an assignment, then bindingType should be set to BIND_NONE. Otherwise, it\n// should be set to the appropriate BIND_* constant, like BIND_VAR or\n// BIND_LEXICAL.\n//\n// If the function is called with a non-BIND_NONE bindingType, then\n// additionally a checkClashes object may be specified to allow checking for\n// duplicate argument names. checkClashes is ignored if the provided construct\n// is an assignment (i.e., bindingType is BIND_NONE).\n\npp$7.checkLValSimple = function(expr, bindingType, checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n var isBind = bindingType !== BIND_NONE;\n\n switch (expr.type) {\n case \"Identifier\":\n if (this.strict && this.reservedWordsStrictBind.test(expr.name))\n { this.raiseRecoverable(expr.start, (isBind ? \"Binding \" : \"Assigning to \") + expr.name + \" in strict mode\"); }\n if (isBind) {\n if (bindingType === BIND_LEXICAL && expr.name === \"let\")\n { this.raiseRecoverable(expr.start, \"let is disallowed as a lexically bound name\"); }\n if (checkClashes) {\n if (hasOwn(checkClashes, expr.name))\n { this.raiseRecoverable(expr.start, \"Argument name clash\"); }\n checkClashes[expr.name] = true;\n }\n if (bindingType !== BIND_OUTSIDE) { this.declareName(expr.name, bindingType, expr.start); }\n }\n break\n\n case \"ChainExpression\":\n this.raiseRecoverable(expr.start, \"Optional chaining cannot appear in left-hand side\");\n break\n\n case \"MemberExpression\":\n if (isBind) { this.raiseRecoverable(expr.start, \"Binding member expression\"); }\n break\n\n case \"ParenthesizedExpression\":\n if (isBind) { this.raiseRecoverable(expr.start, \"Binding parenthesized expression\"); }\n return this.checkLValSimple(expr.expression, bindingType, checkClashes)\n\n default:\n this.raise(expr.start, (isBind ? \"Binding\" : \"Assigning to\") + \" rvalue\");\n }\n};\n\npp$7.checkLValPattern = function(expr, bindingType, checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n switch (expr.type) {\n case \"ObjectPattern\":\n for (var i = 0, list = expr.properties; i < list.length; i += 1) {\n var prop = list[i];\n\n this.checkLValInnerPattern(prop, bindingType, checkClashes);\n }\n break\n\n case \"ArrayPattern\":\n for (var i$1 = 0, list$1 = expr.elements; i$1 < list$1.length; i$1 += 1) {\n var elem = list$1[i$1];\n\n if (elem) { this.checkLValInnerPattern(elem, bindingType, checkClashes); }\n }\n break\n\n default:\n this.checkLValSimple(expr, bindingType, checkClashes);\n }\n};\n\npp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n switch (expr.type) {\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n this.checkLValInnerPattern(expr.value, bindingType, checkClashes);\n break\n\n case \"AssignmentPattern\":\n this.checkLValPattern(expr.left, bindingType, checkClashes);\n break\n\n case \"RestElement\":\n this.checkLValPattern(expr.argument, bindingType, checkClashes);\n break\n\n default:\n this.checkLValPattern(expr, bindingType, checkClashes);\n }\n};\n\n// The algorithm used to determine whether a regexp can appear at a\n// given point in the program is loosely based on sweet.js' approach.\n// See https://github.com/mozilla/sweet.js/wiki/design\n\n\nvar TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) {\n this.token = token;\n this.isExpr = !!isExpr;\n this.preserveSpace = !!preserveSpace;\n this.override = override;\n this.generator = !!generator;\n};\n\nvar types = {\n b_stat: new TokContext(\"{\", false),\n b_expr: new TokContext(\"{\", true),\n b_tmpl: new TokContext(\"${\", false),\n p_stat: new TokContext(\"(\", false),\n p_expr: new TokContext(\"(\", true),\n q_tmpl: new TokContext(\"`\", true, true, function (p) { return p.tryReadTemplateToken(); }),\n f_stat: new TokContext(\"function\", false),\n f_expr: new TokContext(\"function\", true),\n f_expr_gen: new TokContext(\"function\", true, false, null, true),\n f_gen: new TokContext(\"function\", false, false, null, true)\n};\n\nvar pp$6 = Parser.prototype;\n\npp$6.initialContext = function() {\n return [types.b_stat]\n};\n\npp$6.curContext = function() {\n return this.context[this.context.length - 1]\n};\n\npp$6.braceIsBlock = function(prevType) {\n var parent = this.curContext();\n if (parent === types.f_expr || parent === types.f_stat)\n { return true }\n if (prevType === types$1.colon && (parent === types.b_stat || parent === types.b_expr))\n { return !parent.isExpr }\n\n // The check for `tt.name && exprAllowed` detects whether we are\n // after a `yield` or `of` construct. See the `updateContext` for\n // `tt.name`.\n if (prevType === types$1._return || prevType === types$1.name && this.exprAllowed)\n { return lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) }\n if (prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow)\n { return true }\n if (prevType === types$1.braceL)\n { return parent === types.b_stat }\n if (prevType === types$1._var || prevType === types$1._const || prevType === types$1.name)\n { return false }\n return !this.exprAllowed\n};\n\npp$6.inGeneratorContext = function() {\n for (var i = this.context.length - 1; i >= 1; i--) {\n var context = this.context[i];\n if (context.token === \"function\")\n { return context.generator }\n }\n return false\n};\n\npp$6.updateContext = function(prevType) {\n var update, type = this.type;\n if (type.keyword && prevType === types$1.dot)\n { this.exprAllowed = false; }\n else if (update = type.updateContext)\n { update.call(this, prevType); }\n else\n { this.exprAllowed = type.beforeExpr; }\n};\n\n// Used to handle egde cases when token context could not be inferred correctly during tokenization phase\n\npp$6.overrideContext = function(tokenCtx) {\n if (this.curContext() !== tokenCtx) {\n this.context[this.context.length - 1] = tokenCtx;\n }\n};\n\n// Token-specific context update code\n\ntypes$1.parenR.updateContext = types$1.braceR.updateContext = function() {\n if (this.context.length === 1) {\n this.exprAllowed = true;\n return\n }\n var out = this.context.pop();\n if (out === types.b_stat && this.curContext().token === \"function\") {\n out = this.context.pop();\n }\n this.exprAllowed = !out.isExpr;\n};\n\ntypes$1.braceL.updateContext = function(prevType) {\n this.context.push(this.braceIsBlock(prevType) ? types.b_stat : types.b_expr);\n this.exprAllowed = true;\n};\n\ntypes$1.dollarBraceL.updateContext = function() {\n this.context.push(types.b_tmpl);\n this.exprAllowed = true;\n};\n\ntypes$1.parenL.updateContext = function(prevType) {\n var statementParens = prevType === types$1._if || prevType === types$1._for || prevType === types$1._with || prevType === types$1._while;\n this.context.push(statementParens ? types.p_stat : types.p_expr);\n this.exprAllowed = true;\n};\n\ntypes$1.incDec.updateContext = function() {\n // tokExprAllowed stays unchanged\n};\n\ntypes$1._function.updateContext = types$1._class.updateContext = function(prevType) {\n if (prevType.beforeExpr && prevType !== types$1._else &&\n !(prevType === types$1.semi && this.curContext() !== types.p_stat) &&\n !(prevType === types$1._return && lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) &&\n !((prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types.b_stat))\n { this.context.push(types.f_expr); }\n else\n { this.context.push(types.f_stat); }\n this.exprAllowed = false;\n};\n\ntypes$1.backQuote.updateContext = function() {\n if (this.curContext() === types.q_tmpl)\n { this.context.pop(); }\n else\n { this.context.push(types.q_tmpl); }\n this.exprAllowed = false;\n};\n\ntypes$1.star.updateContext = function(prevType) {\n if (prevType === types$1._function) {\n var index = this.context.length - 1;\n if (this.context[index] === types.f_expr)\n { this.context[index] = types.f_expr_gen; }\n else\n { this.context[index] = types.f_gen; }\n }\n this.exprAllowed = true;\n};\n\ntypes$1.name.updateContext = function(prevType) {\n var allowed = false;\n if (this.options.ecmaVersion >= 6 && prevType !== types$1.dot) {\n if (this.value === \"of\" && !this.exprAllowed ||\n this.value === \"yield\" && this.inGeneratorContext())\n { allowed = true; }\n }\n this.exprAllowed = allowed;\n};\n\n// A recursive descent parser operates by defining functions for all\n// syntactic elements, and recursively calling those, each function\n// advancing the input stream and returning an AST node. Precedence\n// of constructs (for example, the fact that `!x[1]` means `!(x[1])`\n// instead of `(!x)[1]` is handled by the fact that the parser\n// function that parses unary prefix operators is called first, and\n// in turn calls the function that parses `[]` subscripts \u2014 that\n// way, it'll receive the node for `x[1]` already parsed, and wraps\n// *that* in the unary operator node.\n//\n// Acorn uses an [operator precedence parser][opp] to handle binary\n// operator precedence, because it is much more compact than using\n// the technique outlined above, which uses different, nesting\n// functions to specify precedence, for all of the ten binary\n// precedence levels that JavaScript defines.\n//\n// [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser\n\n\nvar pp$5 = Parser.prototype;\n\n// Check if property name clashes with already added.\n// Object/class getters and setters are not allowed to clash \u2014\n// either with each other or with an init property \u2014 and in\n// strict mode, init properties are also not allowed to be repeated.\n\npp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 9 && prop.type === \"SpreadElement\")\n { return }\n if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand))\n { return }\n var key = prop.key;\n var name;\n switch (key.type) {\n case \"Identifier\": name = key.name; break\n case \"Literal\": name = String(key.value); break\n default: return\n }\n var kind = prop.kind;\n if (this.options.ecmaVersion >= 6) {\n if (name === \"__proto__\" && kind === \"init\") {\n if (propHash.proto) {\n if (refDestructuringErrors) {\n if (refDestructuringErrors.doubleProto < 0) {\n refDestructuringErrors.doubleProto = key.start;\n }\n } else {\n this.raiseRecoverable(key.start, \"Redefinition of __proto__ property\");\n }\n }\n propHash.proto = true;\n }\n return\n }\n name = \"$\" + name;\n var other = propHash[name];\n if (other) {\n var redefinition;\n if (kind === \"init\") {\n redefinition = this.strict && other.init || other.get || other.set;\n } else {\n redefinition = other.init || other[kind];\n }\n if (redefinition)\n { this.raiseRecoverable(key.start, \"Redefinition of property\"); }\n } else {\n other = propHash[name] = {\n init: false,\n get: false,\n set: false\n };\n }\n other[kind] = true;\n};\n\n// ### Expression parsing\n\n// These nest, from the most general expression type at the top to\n// 'atomic', nondivisible expression types at the bottom. Most of\n// the functions will simply let the function(s) below them parse,\n// and, *if* the syntactic construct they handle is present, wrap\n// the AST node that the inner parser gave them in another node.\n\n// Parse a full expression. The optional arguments are used to\n// forbid the `in` operator (in for loops initalization expressions)\n// and provide reference for storing '=' operator inside shorthand\n// property assignment in contexts where both object expression\n// and object pattern might appear (so it's possible to raise\n// delayed syntax error at correct position).\n\npp$5.parseExpression = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeAssign(forInit, refDestructuringErrors);\n if (this.type === types$1.comma) {\n var node = this.startNodeAt(startPos, startLoc);\n node.expressions = [expr];\n while (this.eat(types$1.comma)) { node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors)); }\n return this.finishNode(node, \"SequenceExpression\")\n }\n return expr\n};\n\n// Parse an assignment expression. This includes applications of\n// operators like `+=`.\n\npp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {\n if (this.isContextual(\"yield\")) {\n if (this.inGenerator) { return this.parseYield(forInit) }\n // The tokenizer will assume an expression is allowed after\n // `yield`, but this isn't that kind of yield\n else { this.exprAllowed = false; }\n }\n\n var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;\n if (refDestructuringErrors) {\n oldParenAssign = refDestructuringErrors.parenthesizedAssign;\n oldTrailingComma = refDestructuringErrors.trailingComma;\n oldDoubleProto = refDestructuringErrors.doubleProto;\n refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1;\n } else {\n refDestructuringErrors = new DestructuringErrors;\n ownDestructuringErrors = true;\n }\n\n var startPos = this.start, startLoc = this.startLoc;\n if (this.type === types$1.parenL || this.type === types$1.name) {\n this.potentialArrowAt = this.start;\n this.potentialArrowInForAwait = forInit === \"await\";\n }\n var left = this.parseMaybeConditional(forInit, refDestructuringErrors);\n if (afterLeftParse) { left = afterLeftParse.call(this, left, startPos, startLoc); }\n if (this.type.isAssign) {\n var node = this.startNodeAt(startPos, startLoc);\n node.operator = this.value;\n if (this.type === types$1.eq)\n { left = this.toAssignable(left, false, refDestructuringErrors); }\n if (!ownDestructuringErrors) {\n refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1;\n }\n if (refDestructuringErrors.shorthandAssign >= left.start)\n { refDestructuringErrors.shorthandAssign = -1; } // reset because shorthand default was used correctly\n if (this.type === types$1.eq)\n { this.checkLValPattern(left); }\n else\n { this.checkLValSimple(left); }\n node.left = left;\n this.next();\n node.right = this.parseMaybeAssign(forInit);\n if (oldDoubleProto > -1) { refDestructuringErrors.doubleProto = oldDoubleProto; }\n return this.finishNode(node, \"AssignmentExpression\")\n } else {\n if (ownDestructuringErrors) { this.checkExpressionErrors(refDestructuringErrors, true); }\n }\n if (oldParenAssign > -1) { refDestructuringErrors.parenthesizedAssign = oldParenAssign; }\n if (oldTrailingComma > -1) { refDestructuringErrors.trailingComma = oldTrailingComma; }\n return left\n};\n\n// Parse a ternary conditional (`?:`) operator.\n\npp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprOps(forInit, refDestructuringErrors);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n if (this.eat(types$1.question)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.test = expr;\n node.consequent = this.parseMaybeAssign();\n this.expect(types$1.colon);\n node.alternate = this.parseMaybeAssign(forInit);\n return this.finishNode(node, \"ConditionalExpression\")\n }\n return expr\n};\n\n// Start the precedence parser.\n\npp$5.parseExprOps = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n return expr.start === startPos && expr.type === \"ArrowFunctionExpression\" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit)\n};\n\n// Parse binary operators with the operator precedence parsing\n// algorithm. `left` is the left-hand side of the operator.\n// `minPrec` provides context that allows the function to stop and\n// defer further parser to one of its callers when it encounters an\n// operator that has a lower precedence than the set it is parsing.\n\npp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) {\n var prec = this.type.binop;\n if (prec != null && (!forInit || this.type !== types$1._in)) {\n if (prec > minPrec) {\n var logical = this.type === types$1.logicalOR || this.type === types$1.logicalAND;\n var coalesce = this.type === types$1.coalesce;\n if (coalesce) {\n // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions.\n // In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error.\n prec = types$1.logicalAND.binop;\n }\n var op = this.value;\n this.next();\n var startPos = this.start, startLoc = this.startLoc;\n var right = this.parseExprOp(this.parseMaybeUnary(null, false, false, forInit), startPos, startLoc, prec, forInit);\n var node = this.buildBinary(leftStartPos, leftStartLoc, left, right, op, logical || coalesce);\n if ((logical && this.type === types$1.coalesce) || (coalesce && (this.type === types$1.logicalOR || this.type === types$1.logicalAND))) {\n this.raiseRecoverable(this.start, \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses\");\n }\n return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, forInit)\n }\n }\n return left\n};\n\npp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) {\n if (right.type === \"PrivateIdentifier\") { this.raise(right.start, \"Private identifier can only be left side of binary expression\"); }\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.operator = op;\n node.right = right;\n return this.finishNode(node, logical ? \"LogicalExpression\" : \"BinaryExpression\")\n};\n\n// Parse unary operators, both prefix and postfix.\n\npp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) {\n var startPos = this.start, startLoc = this.startLoc, expr;\n if (this.isContextual(\"await\") && this.canAwait) {\n expr = this.parseAwait(forInit);\n sawUnary = true;\n } else if (this.type.prefix) {\n var node = this.startNode(), update = this.type === types$1.incDec;\n node.operator = this.value;\n node.prefix = true;\n this.next();\n node.argument = this.parseMaybeUnary(null, true, update, forInit);\n this.checkExpressionErrors(refDestructuringErrors, true);\n if (update) { this.checkLValSimple(node.argument); }\n else if (this.strict && node.operator === \"delete\" &&\n node.argument.type === \"Identifier\")\n { this.raiseRecoverable(node.start, \"Deleting local variable in strict mode\"); }\n else if (node.operator === \"delete\" && isPrivateFieldAccess(node.argument))\n { this.raiseRecoverable(node.start, \"Private fields can not be deleted\"); }\n else { sawUnary = true; }\n expr = this.finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\");\n } else if (!sawUnary && this.type === types$1.privateId) {\n if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) { this.unexpected(); }\n expr = this.parsePrivateIdent();\n // only could be private fields in 'in', such as #x in obj\n if (this.type !== types$1._in) { this.unexpected(); }\n } else {\n expr = this.parseExprSubscripts(refDestructuringErrors, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n while (this.type.postfix && !this.canInsertSemicolon()) {\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.operator = this.value;\n node$1.prefix = false;\n node$1.argument = expr;\n this.checkLValSimple(expr);\n this.next();\n expr = this.finishNode(node$1, \"UpdateExpression\");\n }\n }\n\n if (!incDec && this.eat(types$1.starstar)) {\n if (sawUnary)\n { this.unexpected(this.lastTokStart); }\n else\n { return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), \"**\", false) }\n } else {\n return expr\n }\n};\n\nfunction isPrivateFieldAccess(node) {\n return (\n node.type === \"MemberExpression\" && node.property.type === \"PrivateIdentifier\" ||\n node.type === \"ChainExpression\" && isPrivateFieldAccess(node.expression)\n )\n}\n\n// Parse call, dot, and `[]`-subscript expressions.\n\npp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprAtom(refDestructuringErrors, forInit);\n if (expr.type === \"ArrowFunctionExpression\" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== \")\")\n { return expr }\n var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit);\n if (refDestructuringErrors && result.type === \"MemberExpression\") {\n if (refDestructuringErrors.parenthesizedAssign >= result.start) { refDestructuringErrors.parenthesizedAssign = -1; }\n if (refDestructuringErrors.parenthesizedBind >= result.start) { refDestructuringErrors.parenthesizedBind = -1; }\n if (refDestructuringErrors.trailingComma >= result.start) { refDestructuringErrors.trailingComma = -1; }\n }\n return result\n};\n\npp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {\n var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === \"Identifier\" && base.name === \"async\" &&\n this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 &&\n this.potentialArrowAt === base.start;\n var optionalChained = false;\n\n while (true) {\n var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit);\n\n if (element.optional) { optionalChained = true; }\n if (element === base || element.type === \"ArrowFunctionExpression\") {\n if (optionalChained) {\n var chainNode = this.startNodeAt(startPos, startLoc);\n chainNode.expression = element;\n element = this.finishNode(chainNode, \"ChainExpression\");\n }\n return element\n }\n\n base = element;\n }\n};\n\npp$5.shouldParseAsyncArrow = function() {\n return !this.canInsertSemicolon() && this.eat(types$1.arrow)\n};\n\npp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit)\n};\n\npp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {\n var optionalSupported = this.options.ecmaVersion >= 11;\n var optional = optionalSupported && this.eat(types$1.questionDot);\n if (noCalls && optional) { this.raise(this.lastTokStart, \"Optional chaining cannot appear in the callee of new expressions\"); }\n\n var computed = this.eat(types$1.bracketL);\n if (computed || (optional && this.type !== types$1.parenL && this.type !== types$1.backQuote) || this.eat(types$1.dot)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.object = base;\n if (computed) {\n node.property = this.parseExpression();\n this.expect(types$1.bracketR);\n } else if (this.type === types$1.privateId && base.type !== \"Super\") {\n node.property = this.parsePrivateIdent();\n } else {\n node.property = this.parseIdent(this.options.allowReserved !== \"never\");\n }\n node.computed = !!computed;\n if (optionalSupported) {\n node.optional = optional;\n }\n base = this.finishNode(node, \"MemberExpression\");\n } else if (!noCalls && this.eat(types$1.parenL)) {\n var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n var exprList = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);\n if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n if (this.awaitIdentPos > 0)\n { this.raise(this.awaitIdentPos, \"Cannot use 'await' as identifier inside an async function\"); }\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit)\n }\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos;\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.callee = base;\n node$1.arguments = exprList;\n if (optionalSupported) {\n node$1.optional = optional;\n }\n base = this.finishNode(node$1, \"CallExpression\");\n } else if (this.type === types$1.backQuote) {\n if (optional || optionalChained) {\n this.raise(this.start, \"Optional chaining cannot appear in the tag of tagged template expressions\");\n }\n var node$2 = this.startNodeAt(startPos, startLoc);\n node$2.tag = base;\n node$2.quasi = this.parseTemplate({isTagged: true});\n base = this.finishNode(node$2, \"TaggedTemplateExpression\");\n }\n return base\n};\n\n// Parse an atomic expression \u2014 either a single token that is an\n// expression, an expression started by a keyword like `function` or\n// `new`, or an expression wrapped in punctuation like `()`, `[]`,\n// or `{}`.\n\npp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {\n // If a division operator appears in an expression position, the\n // tokenizer got confused, and we force it to read a regexp instead.\n if (this.type === types$1.slash) { this.readRegexp(); }\n\n var node, canBeArrow = this.potentialArrowAt === this.start;\n switch (this.type) {\n case types$1._super:\n if (!this.allowSuper)\n { this.raise(this.start, \"'super' keyword outside a method\"); }\n node = this.startNode();\n this.next();\n if (this.type === types$1.parenL && !this.allowDirectSuper)\n { this.raise(node.start, \"super() call outside constructor of a subclass\"); }\n // The `super` keyword can appear at below:\n // SuperProperty:\n // super [ Expression ]\n // super . IdentifierName\n // SuperCall:\n // super ( Arguments )\n if (this.type !== types$1.dot && this.type !== types$1.bracketL && this.type !== types$1.parenL)\n { this.unexpected(); }\n return this.finishNode(node, \"Super\")\n\n case types$1._this:\n node = this.startNode();\n this.next();\n return this.finishNode(node, \"ThisExpression\")\n\n case types$1.name:\n var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc;\n var id = this.parseIdent(false);\n if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === \"async\" && !this.canInsertSemicolon() && this.eat(types$1._function)) {\n this.overrideContext(types.f_expr);\n return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit)\n }\n if (canBeArrow && !this.canInsertSemicolon()) {\n if (this.eat(types$1.arrow))\n { return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], false, forInit) }\n if (this.options.ecmaVersion >= 8 && id.name === \"async\" && this.type === types$1.name && !containsEsc &&\n (!this.potentialArrowInForAwait || this.value !== \"of\" || this.containsEsc)) {\n id = this.parseIdent(false);\n if (this.canInsertSemicolon() || !this.eat(types$1.arrow))\n { this.unexpected(); }\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], true, forInit)\n }\n }\n return id\n\n case types$1.regexp:\n var value = this.value;\n node = this.parseLiteral(value.value);\n node.regex = {pattern: value.pattern, flags: value.flags};\n return node\n\n case types$1.num: case types$1.string:\n return this.parseLiteral(this.value)\n\n case types$1._null: case types$1._true: case types$1._false:\n node = this.startNode();\n node.value = this.type === types$1._null ? null : this.type === types$1._true;\n node.raw = this.type.keyword;\n this.next();\n return this.finishNode(node, \"Literal\")\n\n case types$1.parenL:\n var start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit);\n if (refDestructuringErrors) {\n if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr))\n { refDestructuringErrors.parenthesizedAssign = start; }\n if (refDestructuringErrors.parenthesizedBind < 0)\n { refDestructuringErrors.parenthesizedBind = start; }\n }\n return expr\n\n case types$1.bracketL:\n node = this.startNode();\n this.next();\n node.elements = this.parseExprList(types$1.bracketR, true, true, refDestructuringErrors);\n return this.finishNode(node, \"ArrayExpression\")\n\n case types$1.braceL:\n this.overrideContext(types.b_expr);\n return this.parseObj(false, refDestructuringErrors)\n\n case types$1._function:\n node = this.startNode();\n this.next();\n return this.parseFunction(node, 0)\n\n case types$1._class:\n return this.parseClass(this.startNode(), false)\n\n case types$1._new:\n return this.parseNew()\n\n case types$1.backQuote:\n return this.parseTemplate()\n\n case types$1._import:\n if (this.options.ecmaVersion >= 11) {\n return this.parseExprImport(forNew)\n } else {\n return this.unexpected()\n }\n\n default:\n return this.parseExprAtomDefault()\n }\n};\n\npp$5.parseExprAtomDefault = function() {\n this.unexpected();\n};\n\npp$5.parseExprImport = function(forNew) {\n var node = this.startNode();\n\n // Consume `import` as an identifier for `import.meta`.\n // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.\n if (this.containsEsc) { this.raiseRecoverable(this.start, \"Escape sequence in keyword import\"); }\n var meta = this.parseIdent(true);\n\n if (this.type === types$1.parenL && !forNew) {\n return this.parseDynamicImport(node)\n } else if (this.type === types$1.dot) {\n node.meta = meta;\n return this.parseImportMeta(node)\n } else {\n this.unexpected();\n }\n};\n\npp$5.parseDynamicImport = function(node) {\n this.next(); // skip `(`\n\n // Parse node.source.\n node.source = this.parseMaybeAssign();\n\n // Verify ending.\n if (!this.eat(types$1.parenR)) {\n var errorPos = this.start;\n if (this.eat(types$1.comma) && this.eat(types$1.parenR)) {\n this.raiseRecoverable(errorPos, \"Trailing comma is not allowed in import()\");\n } else {\n this.unexpected(errorPos);\n }\n }\n\n return this.finishNode(node, \"ImportExpression\")\n};\n\npp$5.parseImportMeta = function(node) {\n this.next(); // skip `.`\n\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n\n if (node.property.name !== \"meta\")\n { this.raiseRecoverable(node.property.start, \"The only valid meta property for import is 'import.meta'\"); }\n if (containsEsc)\n { this.raiseRecoverable(node.start, \"'import.meta' must not contain escaped characters\"); }\n if (this.options.sourceType !== \"module\" && !this.options.allowImportExportEverywhere)\n { this.raiseRecoverable(node.start, \"Cannot use 'import.meta' outside a module\"); }\n\n return this.finishNode(node, \"MetaProperty\")\n};\n\npp$5.parseLiteral = function(value) {\n var node = this.startNode();\n node.value = value;\n node.raw = this.input.slice(this.start, this.end);\n if (node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0, -1).replace(/_/g, \"\"); }\n this.next();\n return this.finishNode(node, \"Literal\")\n};\n\npp$5.parseParenExpression = function() {\n this.expect(types$1.parenL);\n var val = this.parseExpression();\n this.expect(types$1.parenR);\n return val\n};\n\npp$5.shouldParseArrow = function(exprList) {\n return !this.canInsertSemicolon()\n};\n\npp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {\n var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;\n if (this.options.ecmaVersion >= 6) {\n this.next();\n\n var innerStartPos = this.start, innerStartLoc = this.startLoc;\n var exprList = [], first = true, lastIsComma = false;\n var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart;\n this.yieldPos = 0;\n this.awaitPos = 0;\n // Do not save awaitIdentPos to allow checking awaits nested in parameters\n while (this.type !== types$1.parenR) {\n first ? first = false : this.expect(types$1.comma);\n if (allowTrailingComma && this.afterTrailingComma(types$1.parenR, true)) {\n lastIsComma = true;\n break\n } else if (this.type === types$1.ellipsis) {\n spreadStart = this.start;\n exprList.push(this.parseParenItem(this.parseRestBinding()));\n if (this.type === types$1.comma) {\n this.raiseRecoverable(\n this.start,\n \"Comma is not permitted after the rest element\"\n );\n }\n break\n } else {\n exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem));\n }\n }\n var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;\n this.expect(types$1.parenR);\n\n if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$1.arrow)) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n return this.parseParenArrowList(startPos, startLoc, exprList, forInit)\n }\n\n if (!exprList.length || lastIsComma) { this.unexpected(this.lastTokStart); }\n if (spreadStart) { this.unexpected(spreadStart); }\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n\n if (exprList.length > 1) {\n val = this.startNodeAt(innerStartPos, innerStartLoc);\n val.expressions = exprList;\n this.finishNodeAt(val, \"SequenceExpression\", innerEndPos, innerEndLoc);\n } else {\n val = exprList[0];\n }\n } else {\n val = this.parseParenExpression();\n }\n\n if (this.options.preserveParens) {\n var par = this.startNodeAt(startPos, startLoc);\n par.expression = val;\n return this.finishNode(par, \"ParenthesizedExpression\")\n } else {\n return val\n }\n};\n\npp$5.parseParenItem = function(item) {\n return item\n};\n\npp$5.parseParenArrowList = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit)\n};\n\n// New's precedence is slightly tricky. It must allow its argument to\n// be a `[]` or dot subscript expression, but not a call \u2014 at least,\n// not without wrapping it in parentheses. Thus, it uses the noCalls\n// argument to parseSubscripts to prevent it from consuming the\n// argument list.\n\nvar empty = [];\n\npp$5.parseNew = function() {\n if (this.containsEsc) { this.raiseRecoverable(this.start, \"Escape sequence in keyword new\"); }\n var node = this.startNode();\n var meta = this.parseIdent(true);\n if (this.options.ecmaVersion >= 6 && this.eat(types$1.dot)) {\n node.meta = meta;\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n if (node.property.name !== \"target\")\n { this.raiseRecoverable(node.property.start, \"The only valid meta property for new is 'new.target'\"); }\n if (containsEsc)\n { this.raiseRecoverable(node.start, \"'new.target' must not contain escaped characters\"); }\n if (!this.allowNewDotTarget)\n { this.raiseRecoverable(node.start, \"'new.target' can only be used in functions and class static block\"); }\n return this.finishNode(node, \"MetaProperty\")\n }\n var startPos = this.start, startLoc = this.startLoc;\n node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);\n if (this.eat(types$1.parenL)) { node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false); }\n else { node.arguments = empty; }\n return this.finishNode(node, \"NewExpression\")\n};\n\n// Parse template expression.\n\npp$5.parseTemplateElement = function(ref) {\n var isTagged = ref.isTagged;\n\n var elem = this.startNode();\n if (this.type === types$1.invalidTemplate) {\n if (!isTagged) {\n this.raiseRecoverable(this.start, \"Bad escape sequence in untagged template literal\");\n }\n elem.value = {\n raw: this.value,\n cooked: null\n };\n } else {\n elem.value = {\n raw: this.input.slice(this.start, this.end).replace(/\\r\\n?/g, \"\\n\"),\n cooked: this.value\n };\n }\n this.next();\n elem.tail = this.type === types$1.backQuote;\n return this.finishNode(elem, \"TemplateElement\")\n};\n\npp$5.parseTemplate = function(ref) {\n if ( ref === void 0 ) ref = {};\n var isTagged = ref.isTagged; if ( isTagged === void 0 ) isTagged = false;\n\n var node = this.startNode();\n this.next();\n node.expressions = [];\n var curElt = this.parseTemplateElement({isTagged: isTagged});\n node.quasis = [curElt];\n while (!curElt.tail) {\n if (this.type === types$1.eof) { this.raise(this.pos, \"Unterminated template literal\"); }\n this.expect(types$1.dollarBraceL);\n node.expressions.push(this.parseExpression());\n this.expect(types$1.braceR);\n node.quasis.push(curElt = this.parseTemplateElement({isTagged: isTagged}));\n }\n this.next();\n return this.finishNode(node, \"TemplateLiteral\")\n};\n\npp$5.isAsyncProp = function(prop) {\n return !prop.computed && prop.key.type === \"Identifier\" && prop.key.name === \"async\" &&\n (this.type === types$1.name || this.type === types$1.num || this.type === types$1.string || this.type === types$1.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === types$1.star)) &&\n !lineBreak.test(this.input.slice(this.lastTokEnd, this.start))\n};\n\n// Parse an object literal or binding pattern.\n\npp$5.parseObj = function(isPattern, refDestructuringErrors) {\n var node = this.startNode(), first = true, propHash = {};\n node.properties = [];\n this.next();\n while (!this.eat(types$1.braceR)) {\n if (!first) {\n this.expect(types$1.comma);\n if (this.options.ecmaVersion >= 5 && this.afterTrailingComma(types$1.braceR)) { break }\n } else { first = false; }\n\n var prop = this.parseProperty(isPattern, refDestructuringErrors);\n if (!isPattern) { this.checkPropClash(prop, propHash, refDestructuringErrors); }\n node.properties.push(prop);\n }\n return this.finishNode(node, isPattern ? \"ObjectPattern\" : \"ObjectExpression\")\n};\n\npp$5.parseProperty = function(isPattern, refDestructuringErrors) {\n var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc;\n if (this.options.ecmaVersion >= 9 && this.eat(types$1.ellipsis)) {\n if (isPattern) {\n prop.argument = this.parseIdent(false);\n if (this.type === types$1.comma) {\n this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n }\n return this.finishNode(prop, \"RestElement\")\n }\n // Parse argument.\n prop.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n // To disallow trailing comma via `this.toAssignable()`.\n if (this.type === types$1.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) {\n refDestructuringErrors.trailingComma = this.start;\n }\n // Finish\n return this.finishNode(prop, \"SpreadElement\")\n }\n if (this.options.ecmaVersion >= 6) {\n prop.method = false;\n prop.shorthand = false;\n if (isPattern || refDestructuringErrors) {\n startPos = this.start;\n startLoc = this.startLoc;\n }\n if (!isPattern)\n { isGenerator = this.eat(types$1.star); }\n }\n var containsEsc = this.containsEsc;\n this.parsePropertyName(prop);\n if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {\n isAsync = true;\n isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star);\n this.parsePropertyName(prop);\n } else {\n isAsync = false;\n }\n this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);\n return this.finishNode(prop, \"Property\")\n};\n\npp$5.parseGetterSetter = function(prop) {\n prop.kind = prop.key.name;\n this.parsePropertyName(prop);\n prop.value = this.parseMethod(false);\n var paramCount = prop.kind === \"get\" ? 0 : 1;\n if (prop.value.params.length !== paramCount) {\n var start = prop.value.start;\n if (prop.kind === \"get\")\n { this.raiseRecoverable(start, \"getter should have no params\"); }\n else\n { this.raiseRecoverable(start, \"setter should have exactly one param\"); }\n } else {\n if (prop.kind === \"set\" && prop.value.params[0].type === \"RestElement\")\n { this.raiseRecoverable(prop.value.params[0].start, \"Setter cannot use rest params\"); }\n }\n};\n\npp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {\n if ((isGenerator || isAsync) && this.type === types$1.colon)\n { this.unexpected(); }\n\n if (this.eat(types$1.colon)) {\n prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors);\n prop.kind = \"init\";\n } else if (this.options.ecmaVersion >= 6 && this.type === types$1.parenL) {\n if (isPattern) { this.unexpected(); }\n prop.kind = \"init\";\n prop.method = true;\n prop.value = this.parseMethod(isGenerator, isAsync);\n } else if (!isPattern && !containsEsc &&\n this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === \"Identifier\" &&\n (prop.key.name === \"get\" || prop.key.name === \"set\") &&\n (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) {\n if (isGenerator || isAsync) { this.unexpected(); }\n this.parseGetterSetter(prop);\n } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === \"Identifier\") {\n if (isGenerator || isAsync) { this.unexpected(); }\n this.checkUnreserved(prop.key);\n if (prop.key.name === \"await\" && !this.awaitIdentPos)\n { this.awaitIdentPos = startPos; }\n prop.kind = \"init\";\n if (isPattern) {\n prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n } else if (this.type === types$1.eq && refDestructuringErrors) {\n if (refDestructuringErrors.shorthandAssign < 0)\n { refDestructuringErrors.shorthandAssign = this.start; }\n prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n } else {\n prop.value = this.copyNode(prop.key);\n }\n prop.shorthand = true;\n } else { this.unexpected(); }\n};\n\npp$5.parsePropertyName = function(prop) {\n if (this.options.ecmaVersion >= 6) {\n if (this.eat(types$1.bracketL)) {\n prop.computed = true;\n prop.key = this.parseMaybeAssign();\n this.expect(types$1.bracketR);\n return prop.key\n } else {\n prop.computed = false;\n }\n }\n return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== \"never\")\n};\n\n// Initialize empty function node.\n\npp$5.initFunction = function(node) {\n node.id = null;\n if (this.options.ecmaVersion >= 6) { node.generator = node.expression = false; }\n if (this.options.ecmaVersion >= 8) { node.async = false; }\n};\n\n// Parse object or class method.\n\npp$5.parseMethod = function(isGenerator, isAsync, allowDirectSuper) {\n var node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n\n this.initFunction(node);\n if (this.options.ecmaVersion >= 6)\n { node.generator = isGenerator; }\n if (this.options.ecmaVersion >= 8)\n { node.async = !!isAsync; }\n\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope(functionFlags(isAsync, node.generator) | SCOPE_SUPER | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0));\n\n this.expect(types$1.parenL);\n node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n this.parseFunctionBody(node, false, true, false);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"FunctionExpression\")\n};\n\n// Parse arrow function expression with given parameters.\n\npp$5.parseArrowExpression = function(node, params, isAsync, forInit) {\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n\n this.enterScope(functionFlags(isAsync, false) | SCOPE_ARROW);\n this.initFunction(node);\n if (this.options.ecmaVersion >= 8) { node.async = !!isAsync; }\n\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n\n node.params = this.toAssignableList(params, true);\n this.parseFunctionBody(node, true, false, forInit);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"ArrowFunctionExpression\")\n};\n\n// Parse function body and check parameters.\n\npp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) {\n var isExpression = isArrowFunction && this.type !== types$1.braceL;\n var oldStrict = this.strict, useStrict = false;\n\n if (isExpression) {\n node.body = this.parseMaybeAssign(forInit);\n node.expression = true;\n this.checkParams(node, false);\n } else {\n var nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params);\n if (!oldStrict || nonSimple) {\n useStrict = this.strictDirective(this.end);\n // If this is a strict mode function, verify that argument names\n // are not repeated, and it does not try to bind the words `eval`\n // or `arguments`.\n if (useStrict && nonSimple)\n { this.raiseRecoverable(node.start, \"Illegal 'use strict' directive in function with non-simple parameter list\"); }\n }\n // Start a new scope with regard to labels and the `inFunction`\n // flag (restore them to their old value afterwards).\n var oldLabels = this.labels;\n this.labels = [];\n if (useStrict) { this.strict = true; }\n\n // Add the params to varDeclaredNames to ensure that an error is thrown\n // if a let/const declaration in the function clashes with one of the params.\n this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params));\n // Ensure the function name isn't a forbidden identifier in strict mode, e.g. 'eval'\n if (this.strict && node.id) { this.checkLValSimple(node.id, BIND_OUTSIDE); }\n node.body = this.parseBlock(false, undefined, useStrict && !oldStrict);\n node.expression = false;\n this.adaptDirectivePrologue(node.body.body);\n this.labels = oldLabels;\n }\n this.exitScope();\n};\n\npp$5.isSimpleParamList = function(params) {\n for (var i = 0, list = params; i < list.length; i += 1)\n {\n var param = list[i];\n\n if (param.type !== \"Identifier\") { return false\n } }\n return true\n};\n\n// Checks function params for various disallowed patterns such as using \"eval\"\n// or \"arguments\" and duplicate parameters.\n\npp$5.checkParams = function(node, allowDuplicates) {\n var nameHash = Object.create(null);\n for (var i = 0, list = node.params; i < list.length; i += 1)\n {\n var param = list[i];\n\n this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash);\n }\n};\n\n// Parses a comma-separated list of expressions, and returns them as\n// an array. `close` is the token type that ends the list, and\n// `allowEmpty` can be turned on to allow subsequent commas with\n// nothing in between them to be parsed as `null` (which is needed\n// for array literals).\n\npp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) {\n var elts = [], first = true;\n while (!this.eat(close)) {\n if (!first) {\n this.expect(types$1.comma);\n if (allowTrailingComma && this.afterTrailingComma(close)) { break }\n } else { first = false; }\n\n var elt = (void 0);\n if (allowEmpty && this.type === types$1.comma)\n { elt = null; }\n else if (this.type === types$1.ellipsis) {\n elt = this.parseSpread(refDestructuringErrors);\n if (refDestructuringErrors && this.type === types$1.comma && refDestructuringErrors.trailingComma < 0)\n { refDestructuringErrors.trailingComma = this.start; }\n } else {\n elt = this.parseMaybeAssign(false, refDestructuringErrors);\n }\n elts.push(elt);\n }\n return elts\n};\n\npp$5.checkUnreserved = function(ref) {\n var start = ref.start;\n var end = ref.end;\n var name = ref.name;\n\n if (this.inGenerator && name === \"yield\")\n { this.raiseRecoverable(start, \"Cannot use 'yield' as identifier inside a generator\"); }\n if (this.inAsync && name === \"await\")\n { this.raiseRecoverable(start, \"Cannot use 'await' as identifier inside an async function\"); }\n if (this.currentThisScope().inClassFieldInit && name === \"arguments\")\n { this.raiseRecoverable(start, \"Cannot use 'arguments' in class field initializer\"); }\n if (this.inClassStaticBlock && (name === \"arguments\" || name === \"await\"))\n { this.raise(start, (\"Cannot use \" + name + \" in class static initialization block\")); }\n if (this.keywords.test(name))\n { this.raise(start, (\"Unexpected keyword '\" + name + \"'\")); }\n if (this.options.ecmaVersion < 6 &&\n this.input.slice(start, end).indexOf(\"\\\\\") !== -1) { return }\n var re = this.strict ? this.reservedWordsStrict : this.reservedWords;\n if (re.test(name)) {\n if (!this.inAsync && name === \"await\")\n { this.raiseRecoverable(start, \"Cannot use keyword 'await' outside an async function\"); }\n this.raiseRecoverable(start, (\"The keyword '\" + name + \"' is reserved\"));\n }\n};\n\n// Parse the next token as an identifier. If `liberal` is true (used\n// when parsing properties), it will also convert keywords into\n// identifiers.\n\npp$5.parseIdent = function(liberal) {\n var node = this.parseIdentNode();\n this.next(!!liberal);\n this.finishNode(node, \"Identifier\");\n if (!liberal) {\n this.checkUnreserved(node);\n if (node.name === \"await\" && !this.awaitIdentPos)\n { this.awaitIdentPos = node.start; }\n }\n return node\n};\n\npp$5.parseIdentNode = function() {\n var node = this.startNode();\n if (this.type === types$1.name) {\n node.name = this.value;\n } else if (this.type.keyword) {\n node.name = this.type.keyword;\n\n // To fix https://github.com/acornjs/acorn/issues/575\n // `class` and `function` keywords push new context into this.context.\n // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name.\n // If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword\n if ((node.name === \"class\" || node.name === \"function\") &&\n (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) {\n this.context.pop();\n }\n } else {\n this.unexpected();\n }\n return node\n};\n\npp$5.parsePrivateIdent = function() {\n var node = this.startNode();\n if (this.type === types$1.privateId) {\n node.name = this.value;\n } else {\n this.unexpected();\n }\n this.next();\n this.finishNode(node, \"PrivateIdentifier\");\n\n // For validating existence\n if (this.options.checkPrivateFields) {\n if (this.privateNameStack.length === 0) {\n this.raise(node.start, (\"Private field '#\" + (node.name) + \"' must be declared in an enclosing class\"));\n } else {\n this.privateNameStack[this.privateNameStack.length - 1].used.push(node);\n }\n }\n\n return node\n};\n\n// Parses yield expression inside generator.\n\npp$5.parseYield = function(forInit) {\n if (!this.yieldPos) { this.yieldPos = this.start; }\n\n var node = this.startNode();\n this.next();\n if (this.type === types$1.semi || this.canInsertSemicolon() || (this.type !== types$1.star && !this.type.startsExpr)) {\n node.delegate = false;\n node.argument = null;\n } else {\n node.delegate = this.eat(types$1.star);\n node.argument = this.parseMaybeAssign(forInit);\n }\n return this.finishNode(node, \"YieldExpression\")\n};\n\npp$5.parseAwait = function(forInit) {\n if (!this.awaitPos) { this.awaitPos = this.start; }\n\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeUnary(null, true, false, forInit);\n return this.finishNode(node, \"AwaitExpression\")\n};\n\nvar pp$4 = Parser.prototype;\n\n// This function is used to raise exceptions on parse errors. It\n// takes an offset integer (into the current `input`) to indicate\n// the location of the error, attaches the position to the end\n// of the error message, and then raises a `SyntaxError` with that\n// message.\n\npp$4.raise = function(pos, message) {\n var loc = getLineInfo(this.input, pos);\n message += \" (\" + loc.line + \":\" + loc.column + \")\";\n var err = new SyntaxError(message);\n err.pos = pos; err.loc = loc; err.raisedAt = this.pos;\n throw err\n};\n\npp$4.raiseRecoverable = pp$4.raise;\n\npp$4.curPosition = function() {\n if (this.options.locations) {\n return new Position(this.curLine, this.pos - this.lineStart)\n }\n};\n\nvar pp$3 = Parser.prototype;\n\nvar Scope = function Scope(flags) {\n this.flags = flags;\n // A list of var-declared names in the current lexical scope\n this.var = [];\n // A list of lexically-declared names in the current lexical scope\n this.lexical = [];\n // A list of lexically-declared FunctionDeclaration names in the current lexical scope\n this.functions = [];\n // A switch to disallow the identifier reference 'arguments'\n this.inClassFieldInit = false;\n};\n\n// The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names.\n\npp$3.enterScope = function(flags) {\n this.scopeStack.push(new Scope(flags));\n};\n\npp$3.exitScope = function() {\n this.scopeStack.pop();\n};\n\n// The spec says:\n// > At the top level of a function, or script, function declarations are\n// > treated like var declarations rather than like lexical declarations.\npp$3.treatFunctionsAsVarInScope = function(scope) {\n return (scope.flags & SCOPE_FUNCTION) || !this.inModule && (scope.flags & SCOPE_TOP)\n};\n\npp$3.declareName = function(name, bindingType, pos) {\n var redeclared = false;\n if (bindingType === BIND_LEXICAL) {\n var scope = this.currentScope();\n redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1;\n scope.lexical.push(name);\n if (this.inModule && (scope.flags & SCOPE_TOP))\n { delete this.undefinedExports[name]; }\n } else if (bindingType === BIND_SIMPLE_CATCH) {\n var scope$1 = this.currentScope();\n scope$1.lexical.push(name);\n } else if (bindingType === BIND_FUNCTION) {\n var scope$2 = this.currentScope();\n if (this.treatFunctionsAsVar)\n { redeclared = scope$2.lexical.indexOf(name) > -1; }\n else\n { redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1; }\n scope$2.functions.push(name);\n } else {\n for (var i = this.scopeStack.length - 1; i >= 0; --i) {\n var scope$3 = this.scopeStack[i];\n if (scope$3.lexical.indexOf(name) > -1 && !((scope$3.flags & SCOPE_SIMPLE_CATCH) && scope$3.lexical[0] === name) ||\n !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) {\n redeclared = true;\n break\n }\n scope$3.var.push(name);\n if (this.inModule && (scope$3.flags & SCOPE_TOP))\n { delete this.undefinedExports[name]; }\n if (scope$3.flags & SCOPE_VAR) { break }\n }\n }\n if (redeclared) { this.raiseRecoverable(pos, (\"Identifier '\" + name + \"' has already been declared\")); }\n};\n\npp$3.checkLocalExport = function(id) {\n // scope.functions must be empty as Module code is always strict.\n if (this.scopeStack[0].lexical.indexOf(id.name) === -1 &&\n this.scopeStack[0].var.indexOf(id.name) === -1) {\n this.undefinedExports[id.name] = id;\n }\n};\n\npp$3.currentScope = function() {\n return this.scopeStack[this.scopeStack.length - 1]\n};\n\npp$3.currentVarScope = function() {\n for (var i = this.scopeStack.length - 1;; i--) {\n var scope = this.scopeStack[i];\n if (scope.flags & SCOPE_VAR) { return scope }\n }\n};\n\n// Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`.\npp$3.currentThisScope = function() {\n for (var i = this.scopeStack.length - 1;; i--) {\n var scope = this.scopeStack[i];\n if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) { return scope }\n }\n};\n\nvar Node = function Node(parser, pos, loc) {\n this.type = \"\";\n this.start = pos;\n this.end = 0;\n if (parser.options.locations)\n { this.loc = new SourceLocation(parser, loc); }\n if (parser.options.directSourceFile)\n { this.sourceFile = parser.options.directSourceFile; }\n if (parser.options.ranges)\n { this.range = [pos, 0]; }\n};\n\n// Start an AST node, attaching a start offset.\n\nvar pp$2 = Parser.prototype;\n\npp$2.startNode = function() {\n return new Node(this, this.start, this.startLoc)\n};\n\npp$2.startNodeAt = function(pos, loc) {\n return new Node(this, pos, loc)\n};\n\n// Finish an AST node, adding `type` and `end` properties.\n\nfunction finishNodeAt(node, type, pos, loc) {\n node.type = type;\n node.end = pos;\n if (this.options.locations)\n { node.loc.end = loc; }\n if (this.options.ranges)\n { node.range[1] = pos; }\n return node\n}\n\npp$2.finishNode = function(node, type) {\n return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc)\n};\n\n// Finish node at given position\n\npp$2.finishNodeAt = function(node, type, pos, loc) {\n return finishNodeAt.call(this, node, type, pos, loc)\n};\n\npp$2.copyNode = function(node) {\n var newNode = new Node(this, node.start, this.startLoc);\n for (var prop in node) { newNode[prop] = node[prop]; }\n return newNode\n};\n\n// This file contains Unicode properties extracted from the ECMAScript specification.\n// The lists are extracted like so:\n// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)\n\n// #table-binary-unicode-properties\nvar ecma9BinaryProperties = \"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS\";\nvar ecma10BinaryProperties = ecma9BinaryProperties + \" Extended_Pictographic\";\nvar ecma11BinaryProperties = ecma10BinaryProperties;\nvar ecma12BinaryProperties = ecma11BinaryProperties + \" EBase EComp EMod EPres ExtPict\";\nvar ecma13BinaryProperties = ecma12BinaryProperties;\nvar ecma14BinaryProperties = ecma13BinaryProperties;\n\nvar unicodeBinaryProperties = {\n 9: ecma9BinaryProperties,\n 10: ecma10BinaryProperties,\n 11: ecma11BinaryProperties,\n 12: ecma12BinaryProperties,\n 13: ecma13BinaryProperties,\n 14: ecma14BinaryProperties\n};\n\n// #table-binary-unicode-properties-of-strings\nvar ecma14BinaryPropertiesOfStrings = \"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji\";\n\nvar unicodeBinaryPropertiesOfStrings = {\n 9: \"\",\n 10: \"\",\n 11: \"\",\n 12: \"\",\n 13: \"\",\n 14: ecma14BinaryPropertiesOfStrings\n};\n\n// #table-unicode-general-category-values\nvar unicodeGeneralCategoryValues = \"Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu\";\n\n// #table-unicode-script-values\nvar ecma9ScriptValues = \"Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb\";\nvar ecma10ScriptValues = ecma9ScriptValues + \" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd\";\nvar ecma11ScriptValues = ecma10ScriptValues + \" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho\";\nvar ecma12ScriptValues = ecma11ScriptValues + \" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi\";\nvar ecma13ScriptValues = ecma12ScriptValues + \" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith\";\nvar ecma14ScriptValues = ecma13ScriptValues + \" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz\";\n\nvar unicodeScriptValues = {\n 9: ecma9ScriptValues,\n 10: ecma10ScriptValues,\n 11: ecma11ScriptValues,\n 12: ecma12ScriptValues,\n 13: ecma13ScriptValues,\n 14: ecma14ScriptValues\n};\n\nvar data = {};\nfunction buildUnicodeData(ecmaVersion) {\n var d = data[ecmaVersion] = {\n binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + \" \" + unicodeGeneralCategoryValues),\n binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]),\n nonBinary: {\n General_Category: wordsRegexp(unicodeGeneralCategoryValues),\n Script: wordsRegexp(unicodeScriptValues[ecmaVersion])\n }\n };\n d.nonBinary.Script_Extensions = d.nonBinary.Script;\n\n d.nonBinary.gc = d.nonBinary.General_Category;\n d.nonBinary.sc = d.nonBinary.Script;\n d.nonBinary.scx = d.nonBinary.Script_Extensions;\n}\n\nfor (var i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) {\n var ecmaVersion = list[i];\n\n buildUnicodeData(ecmaVersion);\n}\n\nvar pp$1 = Parser.prototype;\n\nvar RegExpValidationState = function RegExpValidationState(parser) {\n this.parser = parser;\n this.validFlags = \"gim\" + (parser.options.ecmaVersion >= 6 ? \"uy\" : \"\") + (parser.options.ecmaVersion >= 9 ? \"s\" : \"\") + (parser.options.ecmaVersion >= 13 ? \"d\" : \"\") + (parser.options.ecmaVersion >= 15 ? \"v\" : \"\");\n this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];\n this.source = \"\";\n this.flags = \"\";\n this.start = 0;\n this.switchU = false;\n this.switchV = false;\n this.switchN = false;\n this.pos = 0;\n this.lastIntValue = 0;\n this.lastStringValue = \"\";\n this.lastAssertionIsQuantifiable = false;\n this.numCapturingParens = 0;\n this.maxBackReference = 0;\n this.groupNames = [];\n this.backReferenceNames = [];\n};\n\nRegExpValidationState.prototype.reset = function reset (start, pattern, flags) {\n var unicodeSets = flags.indexOf(\"v\") !== -1;\n var unicode = flags.indexOf(\"u\") !== -1;\n this.start = start | 0;\n this.source = pattern + \"\";\n this.flags = flags;\n if (unicodeSets && this.parser.options.ecmaVersion >= 15) {\n this.switchU = true;\n this.switchV = true;\n this.switchN = true;\n } else {\n this.switchU = unicode && this.parser.options.ecmaVersion >= 6;\n this.switchV = false;\n this.switchN = unicode && this.parser.options.ecmaVersion >= 9;\n }\n};\n\nRegExpValidationState.prototype.raise = function raise (message) {\n this.parser.raiseRecoverable(this.start, (\"Invalid regular expression: /\" + (this.source) + \"/: \" + message));\n};\n\n// If u flag is given, this returns the code point at the index (it combines a surrogate pair).\n// Otherwise, this returns the code unit of the index (can be a part of a surrogate pair).\nRegExpValidationState.prototype.at = function at (i, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var s = this.source;\n var l = s.length;\n if (i >= l) {\n return -1\n }\n var c = s.charCodeAt(i);\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) {\n return c\n }\n var next = s.charCodeAt(i + 1);\n return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c\n};\n\nRegExpValidationState.prototype.nextIndex = function nextIndex (i, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var s = this.source;\n var l = s.length;\n if (i >= l) {\n return l\n }\n var c = s.charCodeAt(i), next;\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l ||\n (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) {\n return i + 1\n }\n return i + 2\n};\n\nRegExpValidationState.prototype.current = function current (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n return this.at(this.pos, forceU)\n};\n\nRegExpValidationState.prototype.lookahead = function lookahead (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n return this.at(this.nextIndex(this.pos, forceU), forceU)\n};\n\nRegExpValidationState.prototype.advance = function advance (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n this.pos = this.nextIndex(this.pos, forceU);\n};\n\nRegExpValidationState.prototype.eat = function eat (ch, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n if (this.current(forceU) === ch) {\n this.advance(forceU);\n return true\n }\n return false\n};\n\nRegExpValidationState.prototype.eatChars = function eatChars (chs, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var pos = this.pos;\n for (var i = 0, list = chs; i < list.length; i += 1) {\n var ch = list[i];\n\n var current = this.at(pos, forceU);\n if (current === -1 || current !== ch) {\n return false\n }\n pos = this.nextIndex(pos, forceU);\n }\n this.pos = pos;\n return true\n};\n\n/**\n * Validate the flags part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */\npp$1.validateRegExpFlags = function(state) {\n var validFlags = state.validFlags;\n var flags = state.flags;\n\n var u = false;\n var v = false;\n\n for (var i = 0; i < flags.length; i++) {\n var flag = flags.charAt(i);\n if (validFlags.indexOf(flag) === -1) {\n this.raise(state.start, \"Invalid regular expression flag\");\n }\n if (flags.indexOf(flag, i + 1) > -1) {\n this.raise(state.start, \"Duplicate regular expression flag\");\n }\n if (flag === \"u\") { u = true; }\n if (flag === \"v\") { v = true; }\n }\n if (this.options.ecmaVersion >= 15 && u && v) {\n this.raise(state.start, \"Invalid regular expression flag\");\n }\n};\n\n/**\n * Validate the pattern part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */\npp$1.validateRegExpPattern = function(state) {\n this.regexp_pattern(state);\n\n // The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of\n // parsing contains a |GroupName|, reparse with the goal symbol\n // |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError*\n // exception if _P_ did not conform to the grammar, if any elements of _P_\n // were not matched by the parse, or if any Early Error conditions exist.\n if (!state.switchN && this.options.ecmaVersion >= 9 && state.groupNames.length > 0) {\n state.switchN = true;\n this.regexp_pattern(state);\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern\npp$1.regexp_pattern = function(state) {\n state.pos = 0;\n state.lastIntValue = 0;\n state.lastStringValue = \"\";\n state.lastAssertionIsQuantifiable = false;\n state.numCapturingParens = 0;\n state.maxBackReference = 0;\n state.groupNames.length = 0;\n state.backReferenceNames.length = 0;\n\n this.regexp_disjunction(state);\n\n if (state.pos !== state.source.length) {\n // Make the same messages as V8.\n if (state.eat(0x29 /* ) */)) {\n state.raise(\"Unmatched ')'\");\n }\n if (state.eat(0x5D /* ] */) || state.eat(0x7D /* } */)) {\n state.raise(\"Lone quantifier brackets\");\n }\n }\n if (state.maxBackReference > state.numCapturingParens) {\n state.raise(\"Invalid escape\");\n }\n for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) {\n var name = list[i];\n\n if (state.groupNames.indexOf(name) === -1) {\n state.raise(\"Invalid named capture referenced\");\n }\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction\npp$1.regexp_disjunction = function(state) {\n this.regexp_alternative(state);\n while (state.eat(0x7C /* | */)) {\n this.regexp_alternative(state);\n }\n\n // Make the same message as V8.\n if (this.regexp_eatQuantifier(state, true)) {\n state.raise(\"Nothing to repeat\");\n }\n if (state.eat(0x7B /* { */)) {\n state.raise(\"Lone quantifier brackets\");\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative\npp$1.regexp_alternative = function(state) {\n while (state.pos < state.source.length && this.regexp_eatTerm(state))\n { }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term\npp$1.regexp_eatTerm = function(state) {\n if (this.regexp_eatAssertion(state)) {\n // Handle `QuantifiableAssertion Quantifier` alternative.\n // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion\n // is a QuantifiableAssertion.\n if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) {\n // Make the same message as V8.\n if (state.switchU) {\n state.raise(\"Invalid quantifier\");\n }\n }\n return true\n }\n\n if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) {\n this.regexp_eatQuantifier(state);\n return true\n }\n\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion\npp$1.regexp_eatAssertion = function(state) {\n var start = state.pos;\n state.lastAssertionIsQuantifiable = false;\n\n // ^, $\n if (state.eat(0x5E /* ^ */) || state.eat(0x24 /* $ */)) {\n return true\n }\n\n // \\b \\B\n if (state.eat(0x5C /* \\ */)) {\n if (state.eat(0x42 /* B */) || state.eat(0x62 /* b */)) {\n return true\n }\n state.pos = start;\n }\n\n // Lookahead / Lookbehind\n if (state.eat(0x28 /* ( */) && state.eat(0x3F /* ? */)) {\n var lookbehind = false;\n if (this.options.ecmaVersion >= 9) {\n lookbehind = state.eat(0x3C /* < */);\n }\n if (state.eat(0x3D /* = */) || state.eat(0x21 /* ! */)) {\n this.regexp_disjunction(state);\n if (!state.eat(0x29 /* ) */)) {\n state.raise(\"Unterminated group\");\n }\n state.lastAssertionIsQuantifiable = !lookbehind;\n return true\n }\n }\n\n state.pos = start;\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier\npp$1.regexp_eatQuantifier = function(state, noError) {\n if ( noError === void 0 ) noError = false;\n\n if (this.regexp_eatQuantifierPrefix(state, noError)) {\n state.eat(0x3F /* ? */);\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix\npp$1.regexp_eatQuantifierPrefix = function(state, noError) {\n return (\n state.eat(0x2A /* * */) ||\n state.eat(0x2B /* + */) ||\n state.eat(0x3F /* ? */) ||\n this.regexp_eatBracedQuantifier(state, noError)\n )\n};\npp$1.regexp_eatBracedQuantifier = function(state, noError) {\n var start = state.pos;\n if (state.eat(0x7B /* { */)) {\n var min = 0, max = -1;\n if (this.regexp_eatDecimalDigits(state)) {\n min = state.lastIntValue;\n if (state.eat(0x2C /* , */) && this.regexp_eatDecimalDigits(state)) {\n max = state.lastIntValue;\n }\n if (state.eat(0x7D /* } */)) {\n // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term\n if (max !== -1 && max < min && !noError) {\n state.raise(\"numbers out of order in {} quantifier\");\n }\n return true\n }\n }\n if (state.switchU && !noError) {\n state.raise(\"Incomplete quantifier\");\n }\n state.pos = start;\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Atom\npp$1.regexp_eatAtom = function(state) {\n return (\n this.regexp_eatPatternCharacters(state) ||\n state.eat(0x2E /* . */) ||\n this.regexp_eatReverseSolidusAtomEscape(state) ||\n this.regexp_eatCharacterClass(state) ||\n this.regexp_eatUncapturingGroup(state) ||\n this.regexp_eatCapturingGroup(state)\n )\n};\npp$1.regexp_eatReverseSolidusAtomEscape = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */)) {\n if (this.regexp_eatAtomEscape(state)) {\n return true\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatUncapturingGroup = function(state) {\n var start = state.pos;\n if (state.eat(0x28 /* ( */)) {\n if (state.eat(0x3F /* ? */) && state.eat(0x3A /* : */)) {\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */)) {\n return true\n }\n state.raise(\"Unterminated group\");\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatCapturingGroup = function(state) {\n if (state.eat(0x28 /* ( */)) {\n if (this.options.ecmaVersion >= 9) {\n this.regexp_groupSpecifier(state);\n } else if (state.current() === 0x3F /* ? */) {\n state.raise(\"Invalid group\");\n }\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */)) {\n state.numCapturingParens += 1;\n return true\n }\n state.raise(\"Unterminated group\");\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom\npp$1.regexp_eatExtendedAtom = function(state) {\n return (\n state.eat(0x2E /* . */) ||\n this.regexp_eatReverseSolidusAtomEscape(state) ||\n this.regexp_eatCharacterClass(state) ||\n this.regexp_eatUncapturingGroup(state) ||\n this.regexp_eatCapturingGroup(state) ||\n this.regexp_eatInvalidBracedQuantifier(state) ||\n this.regexp_eatExtendedPatternCharacter(state)\n )\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier\npp$1.regexp_eatInvalidBracedQuantifier = function(state) {\n if (this.regexp_eatBracedQuantifier(state, true)) {\n state.raise(\"Nothing to repeat\");\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter\npp$1.regexp_eatSyntaxCharacter = function(state) {\n var ch = state.current();\n if (isSyntaxCharacter(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n return false\n};\nfunction isSyntaxCharacter(ch) {\n return (\n ch === 0x24 /* $ */ ||\n ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ ||\n ch === 0x2E /* . */ ||\n ch === 0x3F /* ? */ ||\n ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ ||\n ch >= 0x7B /* { */ && ch <= 0x7D /* } */\n )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter\n// But eat eager.\npp$1.regexp_eatPatternCharacters = function(state) {\n var start = state.pos;\n var ch = 0;\n while ((ch = state.current()) !== -1 && !isSyntaxCharacter(ch)) {\n state.advance();\n }\n return state.pos !== start\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter\npp$1.regexp_eatExtendedPatternCharacter = function(state) {\n var ch = state.current();\n if (\n ch !== -1 &&\n ch !== 0x24 /* $ */ &&\n !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */) &&\n ch !== 0x2E /* . */ &&\n ch !== 0x3F /* ? */ &&\n ch !== 0x5B /* [ */ &&\n ch !== 0x5E /* ^ */ &&\n ch !== 0x7C /* | */\n ) {\n state.advance();\n return true\n }\n return false\n};\n\n// GroupSpecifier ::\n// [empty]\n// `?` GroupName\npp$1.regexp_groupSpecifier = function(state) {\n if (state.eat(0x3F /* ? */)) {\n if (this.regexp_eatGroupName(state)) {\n if (state.groupNames.indexOf(state.lastStringValue) !== -1) {\n state.raise(\"Duplicate capture group name\");\n }\n state.groupNames.push(state.lastStringValue);\n return\n }\n state.raise(\"Invalid group\");\n }\n};\n\n// GroupName ::\n// `<` RegExpIdentifierName `>`\n// Note: this updates `state.lastStringValue` property with the eaten name.\npp$1.regexp_eatGroupName = function(state) {\n state.lastStringValue = \"\";\n if (state.eat(0x3C /* < */)) {\n if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */)) {\n return true\n }\n state.raise(\"Invalid capture group name\");\n }\n return false\n};\n\n// RegExpIdentifierName ::\n// RegExpIdentifierStart\n// RegExpIdentifierName RegExpIdentifierPart\n// Note: this updates `state.lastStringValue` property with the eaten name.\npp$1.regexp_eatRegExpIdentifierName = function(state) {\n state.lastStringValue = \"\";\n if (this.regexp_eatRegExpIdentifierStart(state)) {\n state.lastStringValue += codePointToString(state.lastIntValue);\n while (this.regexp_eatRegExpIdentifierPart(state)) {\n state.lastStringValue += codePointToString(state.lastIntValue);\n }\n return true\n }\n return false\n};\n\n// RegExpIdentifierStart ::\n// UnicodeIDStart\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\npp$1.regexp_eatRegExpIdentifierStart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {\n ch = state.lastIntValue;\n }\n if (isRegExpIdentifierStart(ch)) {\n state.lastIntValue = ch;\n return true\n }\n\n state.pos = start;\n return false\n};\nfunction isRegExpIdentifierStart(ch) {\n return isIdentifierStart(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */\n}\n\n// RegExpIdentifierPart ::\n// UnicodeIDContinue\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\n// \n// \npp$1.regexp_eatRegExpIdentifierPart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {\n ch = state.lastIntValue;\n }\n if (isRegExpIdentifierPart(ch)) {\n state.lastIntValue = ch;\n return true\n }\n\n state.pos = start;\n return false\n};\nfunction isRegExpIdentifierPart(ch) {\n return isIdentifierChar(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* */ || ch === 0x200D /* */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape\npp$1.regexp_eatAtomEscape = function(state) {\n if (\n this.regexp_eatBackReference(state) ||\n this.regexp_eatCharacterClassEscape(state) ||\n this.regexp_eatCharacterEscape(state) ||\n (state.switchN && this.regexp_eatKGroupName(state))\n ) {\n return true\n }\n if (state.switchU) {\n // Make the same message as V8.\n if (state.current() === 0x63 /* c */) {\n state.raise(\"Invalid unicode escape\");\n }\n state.raise(\"Invalid escape\");\n }\n return false\n};\npp$1.regexp_eatBackReference = function(state) {\n var start = state.pos;\n if (this.regexp_eatDecimalEscape(state)) {\n var n = state.lastIntValue;\n if (state.switchU) {\n // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape\n if (n > state.maxBackReference) {\n state.maxBackReference = n;\n }\n return true\n }\n if (n <= state.numCapturingParens) {\n return true\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatKGroupName = function(state) {\n if (state.eat(0x6B /* k */)) {\n if (this.regexp_eatGroupName(state)) {\n state.backReferenceNames.push(state.lastStringValue);\n return true\n }\n state.raise(\"Invalid named reference\");\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape\npp$1.regexp_eatCharacterEscape = function(state) {\n return (\n this.regexp_eatControlEscape(state) ||\n this.regexp_eatCControlLetter(state) ||\n this.regexp_eatZero(state) ||\n this.regexp_eatHexEscapeSequence(state) ||\n this.regexp_eatRegExpUnicodeEscapeSequence(state, false) ||\n (!state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state)) ||\n this.regexp_eatIdentityEscape(state)\n )\n};\npp$1.regexp_eatCControlLetter = function(state) {\n var start = state.pos;\n if (state.eat(0x63 /* c */)) {\n if (this.regexp_eatControlLetter(state)) {\n return true\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatZero = function(state) {\n if (state.current() === 0x30 /* 0 */ && !isDecimalDigit(state.lookahead())) {\n state.lastIntValue = 0;\n state.advance();\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape\npp$1.regexp_eatControlEscape = function(state) {\n var ch = state.current();\n if (ch === 0x74 /* t */) {\n state.lastIntValue = 0x09; /* \\t */\n state.advance();\n return true\n }\n if (ch === 0x6E /* n */) {\n state.lastIntValue = 0x0A; /* \\n */\n state.advance();\n return true\n }\n if (ch === 0x76 /* v */) {\n state.lastIntValue = 0x0B; /* \\v */\n state.advance();\n return true\n }\n if (ch === 0x66 /* f */) {\n state.lastIntValue = 0x0C; /* \\f */\n state.advance();\n return true\n }\n if (ch === 0x72 /* r */) {\n state.lastIntValue = 0x0D; /* \\r */\n state.advance();\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter\npp$1.regexp_eatControlLetter = function(state) {\n var ch = state.current();\n if (isControlLetter(ch)) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true\n }\n return false\n};\nfunction isControlLetter(ch) {\n return (\n (ch >= 0x41 /* A */ && ch <= 0x5A /* Z */) ||\n (ch >= 0x61 /* a */ && ch <= 0x7A /* z */)\n )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence\npp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var start = state.pos;\n var switchU = forceU || state.switchU;\n\n if (state.eat(0x75 /* u */)) {\n if (this.regexp_eatFixedHexDigits(state, 4)) {\n var lead = state.lastIntValue;\n if (switchU && lead >= 0xD800 && lead <= 0xDBFF) {\n var leadSurrogateEnd = state.pos;\n if (state.eat(0x5C /* \\ */) && state.eat(0x75 /* u */) && this.regexp_eatFixedHexDigits(state, 4)) {\n var trail = state.lastIntValue;\n if (trail >= 0xDC00 && trail <= 0xDFFF) {\n state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000;\n return true\n }\n }\n state.pos = leadSurrogateEnd;\n state.lastIntValue = lead;\n }\n return true\n }\n if (\n switchU &&\n state.eat(0x7B /* { */) &&\n this.regexp_eatHexDigits(state) &&\n state.eat(0x7D /* } */) &&\n isValidUnicode(state.lastIntValue)\n ) {\n return true\n }\n if (switchU) {\n state.raise(\"Invalid unicode escape\");\n }\n state.pos = start;\n }\n\n return false\n};\nfunction isValidUnicode(ch) {\n return ch >= 0 && ch <= 0x10FFFF\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape\npp$1.regexp_eatIdentityEscape = function(state) {\n if (state.switchU) {\n if (this.regexp_eatSyntaxCharacter(state)) {\n return true\n }\n if (state.eat(0x2F /* / */)) {\n state.lastIntValue = 0x2F; /* / */\n return true\n }\n return false\n }\n\n var ch = state.current();\n if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */)) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape\npp$1.regexp_eatDecimalEscape = function(state) {\n state.lastIntValue = 0;\n var ch = state.current();\n if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */) {\n do {\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */);\n state.advance();\n } while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */)\n return true\n }\n return false\n};\n\n// Return values used by character set parsing methods, needed to\n// forbid negation of sets that can match strings.\nvar CharSetNone = 0; // Nothing parsed\nvar CharSetOk = 1; // Construct parsed, cannot contain strings\nvar CharSetString = 2; // Construct parsed, can contain strings\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape\npp$1.regexp_eatCharacterClassEscape = function(state) {\n var ch = state.current();\n\n if (isCharacterClassEscape(ch)) {\n state.lastIntValue = -1;\n state.advance();\n return CharSetOk\n }\n\n var negate = false;\n if (\n state.switchU &&\n this.options.ecmaVersion >= 9 &&\n ((negate = ch === 0x50 /* P */) || ch === 0x70 /* p */)\n ) {\n state.lastIntValue = -1;\n state.advance();\n var result;\n if (\n state.eat(0x7B /* { */) &&\n (result = this.regexp_eatUnicodePropertyValueExpression(state)) &&\n state.eat(0x7D /* } */)\n ) {\n if (negate && result === CharSetString) { state.raise(\"Invalid property name\"); }\n return result\n }\n state.raise(\"Invalid property name\");\n }\n\n return CharSetNone\n};\n\nfunction isCharacterClassEscape(ch) {\n return (\n ch === 0x64 /* d */ ||\n ch === 0x44 /* D */ ||\n ch === 0x73 /* s */ ||\n ch === 0x53 /* S */ ||\n ch === 0x77 /* w */ ||\n ch === 0x57 /* W */\n )\n}\n\n// UnicodePropertyValueExpression ::\n// UnicodePropertyName `=` UnicodePropertyValue\n// LoneUnicodePropertyNameOrValue\npp$1.regexp_eatUnicodePropertyValueExpression = function(state) {\n var start = state.pos;\n\n // UnicodePropertyName `=` UnicodePropertyValue\n if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */)) {\n var name = state.lastStringValue;\n if (this.regexp_eatUnicodePropertyValue(state)) {\n var value = state.lastStringValue;\n this.regexp_validateUnicodePropertyNameAndValue(state, name, value);\n return CharSetOk\n }\n }\n state.pos = start;\n\n // LoneUnicodePropertyNameOrValue\n if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {\n var nameOrValue = state.lastStringValue;\n return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue)\n }\n return CharSetNone\n};\n\npp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) {\n if (!hasOwn(state.unicodeProperties.nonBinary, name))\n { state.raise(\"Invalid property name\"); }\n if (!state.unicodeProperties.nonBinary[name].test(value))\n { state.raise(\"Invalid property value\"); }\n};\n\npp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {\n if (state.unicodeProperties.binary.test(nameOrValue)) { return CharSetOk }\n if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) { return CharSetString }\n state.raise(\"Invalid property name\");\n};\n\n// UnicodePropertyName ::\n// UnicodePropertyNameCharacters\npp$1.regexp_eatUnicodePropertyName = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while (isUnicodePropertyNameCharacter(ch = state.current())) {\n state.lastStringValue += codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\"\n};\n\nfunction isUnicodePropertyNameCharacter(ch) {\n return isControlLetter(ch) || ch === 0x5F /* _ */\n}\n\n// UnicodePropertyValue ::\n// UnicodePropertyValueCharacters\npp$1.regexp_eatUnicodePropertyValue = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while (isUnicodePropertyValueCharacter(ch = state.current())) {\n state.lastStringValue += codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\"\n};\nfunction isUnicodePropertyValueCharacter(ch) {\n return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch)\n}\n\n// LoneUnicodePropertyNameOrValue ::\n// UnicodePropertyValueCharacters\npp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {\n return this.regexp_eatUnicodePropertyValue(state)\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass\npp$1.regexp_eatCharacterClass = function(state) {\n if (state.eat(0x5B /* [ */)) {\n var negate = state.eat(0x5E /* ^ */);\n var result = this.regexp_classContents(state);\n if (!state.eat(0x5D /* ] */))\n { state.raise(\"Unterminated character class\"); }\n if (negate && result === CharSetString)\n { state.raise(\"Negated character class may contain strings\"); }\n return true\n }\n return false\n};\n\n// https://tc39.es/ecma262/#prod-ClassContents\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges\npp$1.regexp_classContents = function(state) {\n if (state.current() === 0x5D /* ] */) { return CharSetOk }\n if (state.switchV) { return this.regexp_classSetExpression(state) }\n this.regexp_nonEmptyClassRanges(state);\n return CharSetOk\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash\npp$1.regexp_nonEmptyClassRanges = function(state) {\n while (this.regexp_eatClassAtom(state)) {\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */) && this.regexp_eatClassAtom(state)) {\n var right = state.lastIntValue;\n if (state.switchU && (left === -1 || right === -1)) {\n state.raise(\"Invalid character class\");\n }\n if (left !== -1 && right !== -1 && left > right) {\n state.raise(\"Range out of order in character class\");\n }\n }\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash\npp$1.regexp_eatClassAtom = function(state) {\n var start = state.pos;\n\n if (state.eat(0x5C /* \\ */)) {\n if (this.regexp_eatClassEscape(state)) {\n return true\n }\n if (state.switchU) {\n // Make the same message as V8.\n var ch$1 = state.current();\n if (ch$1 === 0x63 /* c */ || isOctalDigit(ch$1)) {\n state.raise(\"Invalid class escape\");\n }\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n\n var ch = state.current();\n if (ch !== 0x5D /* ] */) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape\npp$1.regexp_eatClassEscape = function(state) {\n var start = state.pos;\n\n if (state.eat(0x62 /* b */)) {\n state.lastIntValue = 0x08; /* */\n return true\n }\n\n if (state.switchU && state.eat(0x2D /* - */)) {\n state.lastIntValue = 0x2D; /* - */\n return true\n }\n\n if (!state.switchU && state.eat(0x63 /* c */)) {\n if (this.regexp_eatClassControlLetter(state)) {\n return true\n }\n state.pos = start;\n }\n\n return (\n this.regexp_eatCharacterClassEscape(state) ||\n this.regexp_eatCharacterEscape(state)\n )\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetExpression\n// https://tc39.es/ecma262/#prod-ClassUnion\n// https://tc39.es/ecma262/#prod-ClassIntersection\n// https://tc39.es/ecma262/#prod-ClassSubtraction\npp$1.regexp_classSetExpression = function(state) {\n var result = CharSetOk, subResult;\n if (this.regexp_eatClassSetRange(state)) ; else if (subResult = this.regexp_eatClassSetOperand(state)) {\n if (subResult === CharSetString) { result = CharSetString; }\n // https://tc39.es/ecma262/#prod-ClassIntersection\n var start = state.pos;\n while (state.eatChars([0x26, 0x26] /* && */)) {\n if (\n state.current() !== 0x26 /* & */ &&\n (subResult = this.regexp_eatClassSetOperand(state))\n ) {\n if (subResult !== CharSetString) { result = CharSetOk; }\n continue\n }\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) { return result }\n // https://tc39.es/ecma262/#prod-ClassSubtraction\n while (state.eatChars([0x2D, 0x2D] /* -- */)) {\n if (this.regexp_eatClassSetOperand(state)) { continue }\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) { return result }\n } else {\n state.raise(\"Invalid character in character class\");\n }\n // https://tc39.es/ecma262/#prod-ClassUnion\n for (;;) {\n if (this.regexp_eatClassSetRange(state)) { continue }\n subResult = this.regexp_eatClassSetOperand(state);\n if (!subResult) { return result }\n if (subResult === CharSetString) { result = CharSetString; }\n }\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetRange\npp$1.regexp_eatClassSetRange = function(state) {\n var start = state.pos;\n if (this.regexp_eatClassSetCharacter(state)) {\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */) && this.regexp_eatClassSetCharacter(state)) {\n var right = state.lastIntValue;\n if (left !== -1 && right !== -1 && left > right) {\n state.raise(\"Range out of order in character class\");\n }\n return true\n }\n state.pos = start;\n }\n return false\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetOperand\npp$1.regexp_eatClassSetOperand = function(state) {\n if (this.regexp_eatClassSetCharacter(state)) { return CharSetOk }\n return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state)\n};\n\n// https://tc39.es/ecma262/#prod-NestedClass\npp$1.regexp_eatNestedClass = function(state) {\n var start = state.pos;\n if (state.eat(0x5B /* [ */)) {\n var negate = state.eat(0x5E /* ^ */);\n var result = this.regexp_classContents(state);\n if (state.eat(0x5D /* ] */)) {\n if (negate && result === CharSetString) {\n state.raise(\"Negated character class may contain strings\");\n }\n return result\n }\n state.pos = start;\n }\n if (state.eat(0x5C /* \\ */)) {\n var result$1 = this.regexp_eatCharacterClassEscape(state);\n if (result$1) {\n return result$1\n }\n state.pos = start;\n }\n return null\n};\n\n// https://tc39.es/ecma262/#prod-ClassStringDisjunction\npp$1.regexp_eatClassStringDisjunction = function(state) {\n var start = state.pos;\n if (state.eatChars([0x5C, 0x71] /* \\q */)) {\n if (state.eat(0x7B /* { */)) {\n var result = this.regexp_classStringDisjunctionContents(state);\n if (state.eat(0x7D /* } */)) {\n return result\n }\n } else {\n // Make the same message as V8.\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n return null\n};\n\n// https://tc39.es/ecma262/#prod-ClassStringDisjunctionContents\npp$1.regexp_classStringDisjunctionContents = function(state) {\n var result = this.regexp_classString(state);\n while (state.eat(0x7C /* | */)) {\n if (this.regexp_classString(state) === CharSetString) { result = CharSetString; }\n }\n return result\n};\n\n// https://tc39.es/ecma262/#prod-ClassString\n// https://tc39.es/ecma262/#prod-NonEmptyClassString\npp$1.regexp_classString = function(state) {\n var count = 0;\n while (this.regexp_eatClassSetCharacter(state)) { count++; }\n return count === 1 ? CharSetOk : CharSetString\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetCharacter\npp$1.regexp_eatClassSetCharacter = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */)) {\n if (\n this.regexp_eatCharacterEscape(state) ||\n this.regexp_eatClassSetReservedPunctuator(state)\n ) {\n return true\n }\n if (state.eat(0x62 /* b */)) {\n state.lastIntValue = 0x08; /* */\n return true\n }\n state.pos = start;\n return false\n }\n var ch = state.current();\n if (ch < 0 || ch === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter(ch)) { return false }\n if (isClassSetSyntaxCharacter(ch)) { return false }\n state.advance();\n state.lastIntValue = ch;\n return true\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedDoublePunctuator\nfunction isClassSetReservedDoublePunctuatorCharacter(ch) {\n return (\n ch === 0x21 /* ! */ ||\n ch >= 0x23 /* # */ && ch <= 0x26 /* & */ ||\n ch >= 0x2A /* * */ && ch <= 0x2C /* , */ ||\n ch === 0x2E /* . */ ||\n ch >= 0x3A /* : */ && ch <= 0x40 /* @ */ ||\n ch === 0x5E /* ^ */ ||\n ch === 0x60 /* ` */ ||\n ch === 0x7E /* ~ */\n )\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter\nfunction isClassSetSyntaxCharacter(ch) {\n return (\n ch === 0x28 /* ( */ ||\n ch === 0x29 /* ) */ ||\n ch === 0x2D /* - */ ||\n ch === 0x2F /* / */ ||\n ch >= 0x5B /* [ */ && ch <= 0x5D /* ] */ ||\n ch >= 0x7B /* { */ && ch <= 0x7D /* } */\n )\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\npp$1.regexp_eatClassSetReservedPunctuator = function(state) {\n var ch = state.current();\n if (isClassSetReservedPunctuator(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n return false\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\nfunction isClassSetReservedPunctuator(ch) {\n return (\n ch === 0x21 /* ! */ ||\n ch === 0x23 /* # */ ||\n ch === 0x25 /* % */ ||\n ch === 0x26 /* & */ ||\n ch === 0x2C /* , */ ||\n ch === 0x2D /* - */ ||\n ch >= 0x3A /* : */ && ch <= 0x3E /* > */ ||\n ch === 0x40 /* @ */ ||\n ch === 0x60 /* ` */ ||\n ch === 0x7E /* ~ */\n )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter\npp$1.regexp_eatClassControlLetter = function(state) {\n var ch = state.current();\n if (isDecimalDigit(ch) || ch === 0x5F /* _ */) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\npp$1.regexp_eatHexEscapeSequence = function(state) {\n var start = state.pos;\n if (state.eat(0x78 /* x */)) {\n if (this.regexp_eatFixedHexDigits(state, 2)) {\n return true\n }\n if (state.switchU) {\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits\npp$1.regexp_eatDecimalDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while (isDecimalDigit(ch = state.current())) {\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */);\n state.advance();\n }\n return state.pos !== start\n};\nfunction isDecimalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits\npp$1.regexp_eatHexDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while (isHexDigit(ch = state.current())) {\n state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch);\n state.advance();\n }\n return state.pos !== start\n};\nfunction isHexDigit(ch) {\n return (\n (ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) ||\n (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) ||\n (ch >= 0x61 /* a */ && ch <= 0x66 /* f */)\n )\n}\nfunction hexToInt(ch) {\n if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) {\n return 10 + (ch - 0x41 /* A */)\n }\n if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) {\n return 10 + (ch - 0x61 /* a */)\n }\n return ch - 0x30 /* 0 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence\n// Allows only 0-377(octal) i.e. 0-255(decimal).\npp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {\n if (this.regexp_eatOctalDigit(state)) {\n var n1 = state.lastIntValue;\n if (this.regexp_eatOctalDigit(state)) {\n var n2 = state.lastIntValue;\n if (n1 <= 3 && this.regexp_eatOctalDigit(state)) {\n state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue;\n } else {\n state.lastIntValue = n1 * 8 + n2;\n }\n } else {\n state.lastIntValue = n1;\n }\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit\npp$1.regexp_eatOctalDigit = function(state) {\n var ch = state.current();\n if (isOctalDigit(ch)) {\n state.lastIntValue = ch - 0x30; /* 0 */\n state.advance();\n return true\n }\n state.lastIntValue = 0;\n return false\n};\nfunction isOctalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit\n// And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\npp$1.regexp_eatFixedHexDigits = function(state, length) {\n var start = state.pos;\n state.lastIntValue = 0;\n for (var i = 0; i < length; ++i) {\n var ch = state.current();\n if (!isHexDigit(ch)) {\n state.pos = start;\n return false\n }\n state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch);\n state.advance();\n }\n return true\n};\n\n// Object type used to represent tokens. Note that normally, tokens\n// simply exist as properties on the parser object. This is only\n// used for the onToken callback and the external tokenizer.\n\nvar Token = function Token(p) {\n this.type = p.type;\n this.value = p.value;\n this.start = p.start;\n this.end = p.end;\n if (p.options.locations)\n { this.loc = new SourceLocation(p, p.startLoc, p.endLoc); }\n if (p.options.ranges)\n { this.range = [p.start, p.end]; }\n};\n\n// ## Tokenizer\n\nvar pp = Parser.prototype;\n\n// Move to the next token\n\npp.next = function(ignoreEscapeSequenceInKeyword) {\n if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc)\n { this.raiseRecoverable(this.start, \"Escape sequence in keyword \" + this.type.keyword); }\n if (this.options.onToken)\n { this.options.onToken(new Token(this)); }\n\n this.lastTokEnd = this.end;\n this.lastTokStart = this.start;\n this.lastTokEndLoc = this.endLoc;\n this.lastTokStartLoc = this.startLoc;\n this.nextToken();\n};\n\npp.getToken = function() {\n this.next();\n return new Token(this)\n};\n\n// If we're in an ES6 environment, make parsers iterable\nif (typeof Symbol !== \"undefined\")\n { pp[Symbol.iterator] = function() {\n var this$1$1 = this;\n\n return {\n next: function () {\n var token = this$1$1.getToken();\n return {\n done: token.type === types$1.eof,\n value: token\n }\n }\n }\n }; }\n\n// Toggle strict mode. Re-reads the next number or string to please\n// pedantic tests (`\"use strict\"; 010;` should fail).\n\n// Read a single token, updating the parser object's token-related\n// properties.\n\npp.nextToken = function() {\n var curContext = this.curContext();\n if (!curContext || !curContext.preserveSpace) { this.skipSpace(); }\n\n this.start = this.pos;\n if (this.options.locations) { this.startLoc = this.curPosition(); }\n if (this.pos >= this.input.length) { return this.finishToken(types$1.eof) }\n\n if (curContext.override) { return curContext.override(this) }\n else { this.readToken(this.fullCharCodeAtPos()); }\n};\n\npp.readToken = function(code) {\n // Identifier or keyword. '\\uXXXX' sequences are allowed in\n // identifiers, so '\\' also dispatches to that.\n if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92 /* '\\' */)\n { return this.readWord() }\n\n return this.getTokenFromCode(code)\n};\n\npp.fullCharCodeAtPos = function() {\n var code = this.input.charCodeAt(this.pos);\n if (code <= 0xd7ff || code >= 0xdc00) { return code }\n var next = this.input.charCodeAt(this.pos + 1);\n return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00\n};\n\npp.skipBlockComment = function() {\n var startLoc = this.options.onComment && this.curPosition();\n var start = this.pos, end = this.input.indexOf(\"*/\", this.pos += 2);\n if (end === -1) { this.raise(this.pos - 2, \"Unterminated comment\"); }\n this.pos = end + 2;\n if (this.options.locations) {\n for (var nextBreak = (void 0), pos = start; (nextBreak = nextLineBreak(this.input, pos, this.pos)) > -1;) {\n ++this.curLine;\n pos = this.lineStart = nextBreak;\n }\n }\n if (this.options.onComment)\n { this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos,\n startLoc, this.curPosition()); }\n};\n\npp.skipLineComment = function(startSkip) {\n var start = this.pos;\n var startLoc = this.options.onComment && this.curPosition();\n var ch = this.input.charCodeAt(this.pos += startSkip);\n while (this.pos < this.input.length && !isNewLine(ch)) {\n ch = this.input.charCodeAt(++this.pos);\n }\n if (this.options.onComment)\n { this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos,\n startLoc, this.curPosition()); }\n};\n\n// Called at the start of the parse and after every token. Skips\n// whitespace and comments, and.\n\npp.skipSpace = function() {\n loop: while (this.pos < this.input.length) {\n var ch = this.input.charCodeAt(this.pos);\n switch (ch) {\n case 32: case 160: // ' '\n ++this.pos;\n break\n case 13:\n if (this.input.charCodeAt(this.pos + 1) === 10) {\n ++this.pos;\n }\n case 10: case 8232: case 8233:\n ++this.pos;\n if (this.options.locations) {\n ++this.curLine;\n this.lineStart = this.pos;\n }\n break\n case 47: // '/'\n switch (this.input.charCodeAt(this.pos + 1)) {\n case 42: // '*'\n this.skipBlockComment();\n break\n case 47:\n this.skipLineComment(2);\n break\n default:\n break loop\n }\n break\n default:\n if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {\n ++this.pos;\n } else {\n break loop\n }\n }\n }\n};\n\n// Called at the end of every token. Sets `end`, `val`, and\n// maintains `context` and `exprAllowed`, and skips the space after\n// the token, so that the next one's `start` will point at the\n// right position.\n\npp.finishToken = function(type, val) {\n this.end = this.pos;\n if (this.options.locations) { this.endLoc = this.curPosition(); }\n var prevType = this.type;\n this.type = type;\n this.value = val;\n\n this.updateContext(prevType);\n};\n\n// ### Token reading\n\n// This is the function that is called to fetch the next token. It\n// is somewhat obscure, because it works in character codes rather\n// than characters, and because operator parsing has been inlined\n// into it.\n//\n// All in the name of speed.\n//\npp.readToken_dot = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next >= 48 && next <= 57) { return this.readNumber(true) }\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) { // 46 = dot '.'\n this.pos += 3;\n return this.finishToken(types$1.ellipsis)\n } else {\n ++this.pos;\n return this.finishToken(types$1.dot)\n }\n};\n\npp.readToken_slash = function() { // '/'\n var next = this.input.charCodeAt(this.pos + 1);\n if (this.exprAllowed) { ++this.pos; return this.readRegexp() }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.slash, 1)\n};\n\npp.readToken_mult_modulo_exp = function(code) { // '%*'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n var tokentype = code === 42 ? types$1.star : types$1.modulo;\n\n // exponentiation operator ** and **=\n if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) {\n ++size;\n tokentype = types$1.starstar;\n next = this.input.charCodeAt(this.pos + 2);\n }\n\n if (next === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(tokentype, size)\n};\n\npp.readToken_pipe_amp = function(code) { // '|&'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (this.options.ecmaVersion >= 12) {\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (next2 === 61) { return this.finishOp(types$1.assign, 3) }\n }\n return this.finishOp(code === 124 ? types$1.logicalOR : types$1.logicalAND, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(code === 124 ? types$1.bitwiseOR : types$1.bitwiseAND, 1)\n};\n\npp.readToken_caret = function() { // '^'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.bitwiseXOR, 1)\n};\n\npp.readToken_plus_min = function(code) { // '+-'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 &&\n (this.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.lastTokEnd, this.pos)))) {\n // A `-->` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // `` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // `` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // `` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // `` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // `` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // `