Spaces:
Paused
Paused
| (()=>{var aa=Object.create,Xe=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,oa=Object.getOwnPropertyNames,ca=Object.getPrototypeOf,ua=Object.prototype.hasOwnProperty,la=(e,t,i)=>t in e?Xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Tt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dr=(e,t)=>{for(var i in t)Xe(e,i,{get:t[i],enumerable:!0})},ha=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of oa(t))ua.call(e,n)||n===i||Xe(e,n,{get:()=>t[n],enumerable:!(r=sa(t,n))||r.enumerable});return e},Qe=(e,t,i)=>(i=null!=e?aa(ca(e)):{},ha(!t&&e&&e.__esModule?i:Xe(i,"default",{value:e,enumerable:!0}),e)),q=(e,t,i)=>(la(e,"symbol"!=typeof t?t+"":t,i),i),Nt=Tt((e,t)=>{function i(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var i,r="",n=0,s=-1,a=0,o=0;o<=e.length;++o){if(o<e.length)i=e.charCodeAt(o);else{if(47===i)break;i=47}if(47===i){if(!(s===o-1||1===a)){if(s!==o-1&&2===a){if(r.length<2||2!==n||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",n=0):n=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),s=o,a=0;continue}}else if(2===r.length||1===r.length){r="",n=0,s=o,a=0;continue}}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+e.slice(s+1,o):r=e.slice(s+1,o),n=o-s-1}s=o,a=0}else 46===i&&-1!==a?++a:a=-1}return r}function n(e,t){var i=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return i?i===t.root?i+r:i+e+r:r}var s={resolve(){for(var e,t,n="",s=!1,a=arguments.length-1;a>=-1&&!s;a--)a>=0?e=arguments[a]:(void 0===t&&(t=process.cwd()),e=t),i(e),0!==e.length&&(n=e+"/"+n,s=47===e.charCodeAt(0));return n=r(n,!s),s?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(i(e),e.length>0&&47===e.charCodeAt(0)),join(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];i(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":s.normalize(e)},relative(e,t){if(i(e),i(t),e===t||(e=s.resolve(e))===(t=s.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,a=n-r,o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var c=t.length,u=c-o,l=a<u?a:u,h=-1,p=0;p<=l;++p){if(p===l){if(u>l){if(47===t.charCodeAt(o+p))return t.slice(o+p+1);if(0===p)return t.slice(o+p)}else a>l&&(47===e.charCodeAt(r+p)?h=p:0===p&&(h=0));break}var d=e.charCodeAt(r+p);if(d!==t.charCodeAt(o+p))break;47===d&&(h=p)}var m="";for(p=r+h+1;p<=n;++p)(p===n||47===e.charCodeAt(p))&&(0===m.length?m+="..":m+="/..");return m.length>0?m+t.slice(o+h):(o+=h,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:e=>e,dirname(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!s){n=a;break}}else s=!1;return -1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename(e,t){if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');i(e);var r,n=0,s=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var o=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){n=r+1;break}}else -1===c&&(a=!1,c=r+1),o>=0&&(u===t.charCodeAt(o)?-1==--o&&(s=r):(o=-1,s=c))}return n===s?s=c:-1===s&&(s=e.length),e.slice(n,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else -1===s&&(a=!1,s=r+1);return -1===s?"":e.slice(n,s)},extname(e){i(e);for(var t=-1,r=0,n=-1,s=!0,a=0,o=e.length-1;o>=0;--o){var c=e.charCodeAt(o);if(47===c){if(!s){r=o+1;break}continue}-1===n&&(s=!1,n=o+1),46===c?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1)}return -1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format(e){if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return n("/",e)},parse(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),s=47===n;s?(t.root="/",r=1):r=0;for(var a=-1,o=0,c=-1,u=!0,l=e.length-1,h=0;l>=r;--l){if(47===(n=e.charCodeAt(l))){if(!u){o=l+1;break}continue}-1===c&&(u=!1,c=l+1),46===n?-1===a?a=l:1!==h&&(h=1):-1!==a&&(h=-1)}return -1===a||-1===c||0===h||1===h&&a===c-1&&a===o+1?-1!==c&&(0===o&&s?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(o,c)):(0===o&&s?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(o,a),t.base=e.slice(o,c)),t.ext=e.slice(a,c)),o>0?t.dir=e.slice(0,o-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,t.exports=s}),vn=Tt(e=>{e.parse=r,e.serialize=n;var t=Object.prototype.toString,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function r(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var i={},r=(t||{}).decode||s,n=0;n<e.length;){var a=e.indexOf("=",n);if(-1===a)break;var o=e.indexOf(";",n);if(-1===o)o=e.length;else if(o<a){n=e.lastIndexOf(";",a-1)+1;continue}var u=e.slice(n,a).trim();if(void 0===i[u]){var l=e.slice(a+1,o).trim();34===l.charCodeAt(0)&&(l=l.slice(1,-1)),i[u]=c(l,r)}n=o+1}return i}function n(e,t,r){var n=r||{},s=n.encode||a;if("function"!=typeof s)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var c=s(t);if(c&&!i.test(c))throw TypeError("argument val is invalid");var u=e+"="+c;if(null!=n.maxAge){var l=n.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(l)}if(n.domain){if(!i.test(n.domain))throw TypeError("option domain is invalid");u+="; Domain="+n.domain}if(n.path){if(!i.test(n.path))throw TypeError("option path is invalid");u+="; Path="+n.path}if(n.expires){var h=n.expires;if(!o(h)||isNaN(h.valueOf()))throw TypeError("option expires is invalid");u+="; Expires="+h.toUTCString()}if(n.httpOnly&&(u+="; HttpOnly"),n.secure&&(u+="; Secure"),n.priority){var p="string"==typeof n.priority?n.priority.toLowerCase():n.priority;switch(p){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw TypeError("option priority is invalid")}}if(n.sameSite){var d="string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite;switch(d){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}}return u}function s(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function a(e){return encodeURIComponent(e)}function o(e){return"[object Date]"===t.call(e)||e instanceof Date}function c(e,t){try{return t(e)}catch{return e}}}),En=Tt((e,t)=>{var i={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"==typeof e&&!!e.trim()}function n(e,t){var n=e.split(";").filter(r),a=s(n.shift()),o=a.name,c=a.value;t=t?Object.assign({},i,t):i;try{c=t.decodeValues?decodeURIComponent(c):c}catch(u){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+c+"'. Set options.decodeValues to false to disable this feature.",u)}var l={name:o,value:c};return n.forEach(e=>{var t=e.split("="),i=t.shift().trimLeft().toLowerCase(),r=t.join("=");"expires"===i?l.expires=new Date(r):"max-age"===i?l.maxAge=Number.parseInt(r,10):"secure"===i?l.secure=!0:"httponly"===i?l.httpOnly=!0:"samesite"===i?l.sameSite=r:l[i]=r}),l}function s(e){var t="",i="",r=e.split("=");return r.length>1?(t=r.shift(),i=r.join("=")):i=e,{name:t,value:i}}function a(e,t){if(t=t?Object.assign({},i,t):i,!e)return t.map?{}:[];if(e.headers){if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var s=e.headers[Object.keys(e.headers).find(e=>"set-cookie"===e.toLowerCase())];s||!e.headers.cookie||t.silent||console.warn("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."),e=s}}return(Array.isArray(e)||(e=[e]),(t=t?Object.assign({},i,t):i).map)?e.filter(r).reduce((e,i)=>{var r=n(i,t);return e[r.name]=r,e},{}):e.filter(r).map(e=>n(e,t))}function o(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,i,r,n,s,a=[],o=0;function c(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}function u(){return"="!==(i=e.charAt(o))&&";"!==i&&","!==i}for(;o<e.length;){for(t=o,s=!1;c();)if(","===(i=e.charAt(o))){for(r=o,o+=1,c(),n=o;o<e.length&&u();)o+=1;o<e.length&&"="===e.charAt(o)?(s=!0,o=n,a.push(e.substring(t,r)),t=o):o=r+1}else o+=1;(!s||o>=e.length)&&a.push(e.substring(t,e.length))}return a}t.exports=a,t.exports.parse=a,t.exports.parseString=n,t.exports.splitCookiesString=o}),xr=Qe(Nt()),Ye={"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"]}},_r=/^\s*([^;\s]*)(?:;|\s|$)/,fa=/^text\//i,U={};function gr(e){if(!e||"string"!=typeof e)return!1;var t=_r.exec(e),i=t&&Ye[t[1].toLowerCase()];return i&&i.charset?i.charset:!(!t||!fa.test(t[1]))&&"UTF-8"}function da(e){if(!e||"string"!=typeof e)return!1;var t=-1===e.indexOf("/")?U.lookup(e):e;if(!t)return!1;if(-1===t.indexOf("charset")){var i=U.charset(t);i&&(t+="; charset="+i.toLowerCase())}return t}function ma(e){if(!e||"string"!=typeof e)return!1;var t=_r.exec(e),i=t&&U.extensions[t[1].toLowerCase()];return!(!i||!i.length)&&i[0]}function ya(e){if(!e||"string"!=typeof e)return!1;var t=(0,xr.extname)("x."+e).toLowerCase().substr(1);return t&&U.types[t]||!1}function ga(e,t){var i=["nginx","apache",void 0,"iana"];Object.keys(Ye).forEach(r=>{var n=Ye[r],s=n.extensions;if(s&&s.length){e[r]=s;for(var a=0;a<s.length;a++){var o=s[a];if(t[o]){var c=i.indexOf(Ye[t[o]].source),u=i.indexOf(n.source);if("application/octet-stream"!==t[o]&&(c>u||c===u&&"application/"===t[o].substr(0,12)))continue}t[o]=r}}})}U.charset=gr,U.charsets={lookup:gr},U.contentType=da,U.extension=ma,U.extensions=Object.create(null),U.lookup=ya,U.types=Object.create(null),ga(U.extensions,U.types);var br=U,Us=Qe(Nt(),1),Je={};dr(Je,{deleteDB:()=>Ca,openDB:()=>Bt,unwrap:()=>Le,wrap:()=>G});var wr,vr,xa=(e,t)=>t.some(t=>e instanceof t);function _a(){return wr||(wr=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ba(){return vr||(vr=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey,])}var Sr=new WeakMap,Dt=new WeakMap,Er=new WeakMap,Mt=new WeakMap,Vt=new WeakMap;function wa(e){let t=new Promise((t,i)=>{let r=()=>{e.removeEventListener("success",n),e.removeEventListener("error",s)},n=()=>{t(G(e.result)),r()},s=()=>{i(e.error),r()};e.addEventListener("success",n),e.addEventListener("error",s)});return t.then(t=>{t instanceof IDBCursor&&Sr.set(t,e)}).catch(()=>{}),Vt.set(t,e),t}function va(e){if(Dt.has(e))return;let t=new Promise((t,i)=>{let r=()=>{e.removeEventListener("complete",n),e.removeEventListener("error",s),e.removeEventListener("abort",s)},n=()=>{t(),r()},s=()=>{i(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",n),e.addEventListener("error",s),e.addEventListener("abort",s)});Dt.set(e,t)}var Ot={get(e,t,i){if(e instanceof IDBTransaction){if("done"===t)return Dt.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Er.get(e);if("store"===t)return i.objectStoreNames[1]?void 0:i.objectStore(i.objectStoreNames[0])}return G(e[t])},set:(e,t,i)=>(e[t]=i,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Cr(e){Ot=e(Ot)}function Sa(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?ba().includes(e)?function(...t){return e.apply(Le(this),t),G(Sr.get(this))}:function(...t){return G(e.apply(Le(this),t))}:function(t,...i){let r=e.call(Le(this),t,...i);return Er.set(r,t.sort?t.sort():[t]),G(r)}}function Ea(e){return"function"==typeof e?Sa(e):(e instanceof IDBTransaction&&va(e),xa(e,_a())?new Proxy(e,Ot):e)}function G(e){if(e instanceof IDBRequest)return wa(e);if(Mt.has(e))return Mt.get(e);let t=Ea(e);return t!==e&&(Mt.set(e,t),Vt.set(t,e)),t}var Le=e=>Vt.get(e);function Bt(e,t,{blocked:i,upgrade:r,blocking:n,terminated:s}={}){let a=indexedDB.open(e,t),o=G(a);return r&&a.addEventListener("upgradeneeded",e=>{r(G(a.result),e.oldVersion,e.newVersion,G(a.transaction),e)}),i&&a.addEventListener("blocked",e=>i(e.oldVersion,e.newVersion,e)),o.then(e=>{s&&e.addEventListener("close",()=>s()),n&&e.addEventListener("versionchange",e=>n(e.oldVersion,e.newVersion,e))}).catch(()=>{}),o}function Ca(e,{blocked:t}={}){let i=indexedDB.deleteDatabase(e);return t&&i.addEventListener("blocked",e=>t(e.oldVersion,e)),G(i).then(()=>{})}var ka=["get","getKey","getAll","getAllKeys","count"],Aa=["put","add","delete","clear"],Ft=new Map;function kr(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(Ft.get(t))return Ft.get(t);let i=t.replace(/FromIndex$/,""),r=t!==i,n=Aa.includes(i);if(!(i in(r?IDBIndex:IDBObjectStore).prototype)||!(n||ka.includes(i)))return;let s=async function(e,...t){let s=this.transaction(e,n?"readwrite":"readonly"),a=s.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[i](...t),n&&s.done]))[0]};return Ft.set(t,s),s}Cr(e=>({...e,get:(t,i,r)=>kr(t,i)||e.get(t,i,r),has:(t,i)=>!!kr(t,i)||e.has(t,i)}));var La=[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,],Ir=[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,],Pa="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Tr="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",$t={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",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},jt="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",Ra={5:jt,"5module":jt+" export import",6:jt+" const class extends export import super"},Ia=/^in(stanceof)?$/,Ta=RegExp("["+Tr+"]"),Na=RegExp("["+Tr+Pa+"]");function Ht(e,t){for(var i=65536,r=0;r<t.length&&!((i+=t[r])>e);r+=2)if((i+=t[r+1])>=e)return!0;return!1}function ce(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Ta.test(String.fromCharCode(e)):!1!==t&&Ht(e,Ir)))}function be(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Na.test(String.fromCharCode(e)):!1!==t&&(Ht(e,Ir)||Ht(e,La)))))}var L=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function z(e,t){return new L(e,{beforeExpr:!0,binop:t})}var K={beforeExpr:!0},H={startsExpr:!0},Gt={};function k(e,t){return void 0===t&&(t={}),t.keyword=e,Gt[e]=new L(e,t)}var u={num:new L("num",H),regexp:new L("regexp",H),string:new L("string",H),name:new L("name",H),privateId:new L("privateId",H),eof:new L("eof"),bracketL:new L("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new L("]"),braceL:new L("{",{beforeExpr:!0,startsExpr:!0}),braceR:new L("}"),parenL:new L("(",{beforeExpr:!0,startsExpr:!0}),parenR:new L(")"),comma:new L(",",K),semi:new L(";",K),colon:new L(":",K),dot:new L("."),question:new L("?",K),questionDot:new L("?."),arrow:new L("=>",K),template:new L("template"),invalidTemplate:new L("invalidTemplate"),ellipsis:new L("...",K),backQuote:new L("`",H),dollarBraceL:new L("${",{beforeExpr:!0,startsExpr:!0}),eq:new L("=",{beforeExpr:!0,isAssign:!0}),assign:new L("_=",{beforeExpr:!0,isAssign:!0}),incDec:new L("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new L("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:z("||",1),logicalAND:z("&&",2),bitwiseOR:z("|",3),bitwiseXOR:z("^",4),bitwiseAND:z("&",5),equality:z("==/!=/===/!==",6),relational:z("</>/<=/>=",7),bitShift:z("<</>>/>>>",8),plusMin:new L("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:z("%",10),star:z("*",10),slash:z("/",10),starstar:new L("**",{beforeExpr:!0}),coalesce:z("??",1),_break:k("break"),_case:k("case",K),_catch:k("catch"),_continue:k("continue"),_debugger:k("debugger"),_default:k("default",K),_do:k("do",{isLoop:!0,beforeExpr:!0}),_else:k("else",K),_finally:k("finally"),_for:k("for",{isLoop:!0}),_function:k("function",H),_if:k("if"),_return:k("return",K),_switch:k("switch"),_throw:k("throw",K),_try:k("try"),_var:k("var"),_const:k("const"),_while:k("while",{isLoop:!0}),_with:k("with"),_new:k("new",{beforeExpr:!0,startsExpr:!0}),_this:k("this",H),_super:k("super",H),_class:k("class",H),_extends:k("extends",K),_export:k("export"),_import:k("import",H),_null:k("null",H),_true:k("true",H),_false:k("false",H),_in:k("in",{beforeExpr:!0,binop:7}),_instanceof:k("instanceof",{beforeExpr:!0,binop:7}),_typeof:k("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:k("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:k("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Y=/\r\n?|\n|\u2028|\u2029/,Ma=RegExp(Y.source,"g");function we(e){return 10===e||13===e||8232===e||8233===e}function Nr(e,t,i){void 0===i&&(i=e.length);for(var r=t;r<i;r++){var n=e.charCodeAt(r);if(we(n))return r<i-1&&13===n&&10===e.charCodeAt(r+1)?r+2:r+1}return -1}var Mr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,X=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Dr=Object.prototype,Da=Dr.hasOwnProperty,Oa=Dr.toString,Te=Object.hasOwn||((e,t)=>Da.call(e,t)),Ar=Array.isArray||(e=>"[object Array]"===Oa.call(e));function pe(e){return RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function fe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}var Va=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Re=function(e,t){this.line=e,this.column=t};Re.prototype.offset=function(e){return new Re(this.line,this.column+e)};var rt=function(e,t,i){this.start=t,this.end=i,null!==e.sourceFile&&(this.source=e.sourceFile)};function Or(e,t){for(var i=1,r=0;;){var n=Nr(e,r,t);if(n<0)return new Re(i,t-r);++i,r=n}}var Wt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Lr=!1;function Fa(e){var t={};for(var i in Wt)t[i]=e&&Te(e,i)?e[i]:Wt[i];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Lr&&"object"==typeof console&&console.warn&&(Lr=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. | |
| Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),Ar(t.onToken)){var r=t.onToken;t.onToken=e=>r.push(e)}return Ar(t.onComment)&&(t.onComment=Ba(t,t.onComment)),t}function Ba(e,t){return function(i,r,n,s,a,o){var c={type:i?"Block":"Line",value:r,start:n,end:s};e.locations&&(c.loc=new rt(this,a,o)),e.ranges&&(c.range=[n,s]),t.push(c)}}var Ie=1,ve=2,zt=4,Vr=8,Fr=16,Br=32,Kt=64,$r=128,Ne=256,Xt=Ie|ve|Ne;function Qt(e,t){return ve|(e?zt:0)|(t?Vr:0)}var et=0,Yt=1,le=2,jr=3,Ur=4,Hr=5,T=function(e,t,i){this.options=e=Fa(e),this.sourceFile=e.sourceFile,this.keywords=pe(Ra[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=$t[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=pe(r);var n=(r?r+" ":"")+$t.strict;this.reservedWordsStrict=pe(n),this.reservedWordsStrictBind=pe(n+" "+$t.strictBind),this.input=String(t),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(` | |
| `,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Y).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Ie),this.regexpState=null,this.privateNameStack=[]},ie={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};T.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ie.inFunction.get=function(){return(this.currentVarScope().flags&ve)>0},ie.inGenerator.get=function(){return(this.currentVarScope().flags&Vr)>0&&!this.currentVarScope().inClassFieldInit},ie.inAsync.get=function(){return(this.currentVarScope().flags&zt)>0&&!this.currentVarScope().inClassFieldInit},ie.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Ne)return!1;if(t.flags&ve)return(t.flags&zt)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ie.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&Kt)>0||i||this.options.allowSuperOutsideMethod},ie.allowDirectSuper.get=function(){return(this.currentThisScope().flags&$r)>0},ie.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ie.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(ve|Ne))>0||i},ie.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ne)>0},T.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=this,r=0;r<e.length;r++)i=e[r](i);return i},T.parse=function(e,t){return new this(t,e).parse()},T.parseExpressionAt=function(e,t,i){var r=new this(i,e,t);return r.nextToken(),r.parseExpression()},T.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(T.prototype,ie);var $=T.prototype,$a=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;$.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){X.lastIndex=e,e+=X.exec(this.input)[0].length;var t=$a.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){X.lastIndex=e+t[0].length;var i=X.exec(this.input),r=i.index+i[0].length,n=this.input.charAt(r);return";"===n||"}"===n||Y.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||"!"===n&&"="===this.input.charAt(r+1))}e+=t[0].length,X.lastIndex=e,e+=X.exec(this.input)[0].length,";"===this.input[e]&&e++}},$.eat=function(e){return this.type===e&&(this.next(),!0)},$.isContextual=function(e){return this.type===u.name&&this.value===e&&!this.containsEsc},$.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},$.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},$.canInsertSemicolon=function(){return this.type===u.eof||this.type===u.braceR||Y.test(this.input.slice(this.lastTokEnd,this.start))},$.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$.semicolon=function(){this.eat(u.semi)||this.insertSemicolon()||this.unexpected()},$.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},$.expect=function(e){this.eat(e)||this.unexpected()},$.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var nt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},$.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,r=e.doubleProto;if(!t)return i>=0||r>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},$.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},$.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var w=T.prototype;w.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==u.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var r=0,n=Object.keys(this.undefinedExports);r<n.length;r+=1){var s=n[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Jt={kind:"loop"},ja={kind:"switch"};w.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;X.lastIndex=this.pos;var t=X.exec(this.input),i=this.pos+t[0].length,r=this.input.charCodeAt(i);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&r<56320)return!0;if(ce(r,!0)){for(var n=i+1;be(r=this.input.charCodeAt(n),!0);)++n;if(92===r||r>55295&&r<56320)return!0;var s=this.input.slice(i,n);if(!Ia.test(s))return!0}return!1},w.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;X.lastIndex=this.pos;var e,t=X.exec(this.input),i=this.pos+t[0].length;return!Y.test(this.input.slice(this.pos,i))&&"function"===this.input.slice(i,i+8)&&(i+8===this.input.length||!(be(e=this.input.charCodeAt(i+8))||e>55295&&e<56320))},w.parseStatement=function(e,t,i){var r,n=this.type,s=this.startNode();switch(this.isLet(e)&&(n=u._var,r="let"),n){case u._break:case u._continue:return this.parseBreakContinueStatement(s,n.keyword);case u._debugger:return this.parseDebuggerStatement(s);case u._do:return this.parseDoStatement(s);case u._for:return this.parseForStatement(s);case u._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case u._class:return e&&this.unexpected(),this.parseClass(s,!0);case u._if:return this.parseIfStatement(s);case u._return:return this.parseReturnStatement(s);case u._switch:return this.parseSwitchStatement(s);case u._throw:return this.parseThrowStatement(s);case u._try:return this.parseTryStatement(s);case u._const:case u._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case u._while:return this.parseWhileStatement(s);case u._with:return this.parseWithStatement(s);case u.braceL:return this.parseBlock(!0,s);case u.semi:return this.parseEmptyStatement(s);case u._export:case u._import:if(this.options.ecmaVersion>10&&n===u._import){X.lastIndex=this.pos;var a=X.exec(this.input),o=this.pos+a[0].length,c=this.input.charCodeAt(o);if(40===c||46===c)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===u._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var l=this.value,h=this.parseExpression();return n===u.name&&"Identifier"===h.type&&this.eat(u.colon)?this.parseLabeledStatement(s,l,h,e):this.parseExpressionStatement(s,h)}},w.parseBreakContinueStatement=function(e,t){var i="break"===t;this.next(),this.eat(u.semi)||this.insertSemicolon()?e.label=null:this.type!==u.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var n=this.labels[r];if((null==e.label||n.name===e.label.name)&&(null!=n.kind&&(i||"loop"===n.kind)||e.label&&i))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},w.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},w.parseDoStatement=function(e){return this.next(),this.labels.push(Jt),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(u._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(u.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},w.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Jt),this.enterScope(0),this.expect(u.parenL),this.type===u.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===u._var||this.type===u._const||i){var r=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var s=this.isContextual("let"),a=!1,o=new nt,c=this.parseExpression(!(t>-1)||"await",o);return this.type===u._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),s&&a&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,o),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},w.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,Pe|(i?0:qt),!1,t)},w.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},w.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(u.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},w.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(u.braceL),this.labels.push(ja),this.enterScope(0);for(var t,i=!1;this.type!==u.braceR;)if(this.type===u._case||this.type===u._default){var r=this.type===u._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(u.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},w.parseThrowStatement=function(e){return this.next(),Y.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ua=[];w.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?Br:0),this.checkLValPattern(e,t?Ur:le),this.expect(u.parenR),e},w.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===u._catch){var t=this.startNode();this.next(),this.eat(u.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(u._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},w.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},w.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Jt),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},w.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},w.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},w.parseLabeledStatement=function(e,t,i,r){for(var n=0,s=this.labels;n<s.length;n+=1)s[n].name===t&&this.raise(i.start,"Label '"+t+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===u._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var c=this.labels[o];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=a;else break}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},w.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},w.parseBlock=function(e,t,i){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(u.braceL),e&&this.enterScope(0);this.type!==u.braceR;){var r=this.parseStatement(null);t.body.push(r)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},w.parseFor=function(e,t){return e.init=t,this.expect(u.semi),e.test=this.type===u.semi?null:this.parseExpression(),this.expect(u.semi),e.update=this.type===u.parenR?null:this.parseExpression(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},w.parseForIn=function(e,t){var i=this.type===u._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},w.parseVar=function(e,t,i,r){for(e.declarations=[],e.kind=i;;){var n=this.startNode();if(this.parseVarId(n,i),this.eat(u.eq)?n.init=this.parseMaybeAssign(t):r||"const"!==i||this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===n.id.type||t&&(this.type===u._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(u.comma))break}return e},w.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?Yt:le,!1)};var Pe=1,qt=2,Wr=4;function Ha(e,t){var i=t.key.name,r=e[i],n="true";return"MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(n=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===n||"iset"===r&&"iget"===n||"sget"===r&&"sset"===n||"sset"===r&&"sget"===n?(e[i]="true",!1):!!r||(e[i]=n,!1)}function tt(e,t){var i=e.computed,r=e.key;return!i&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}w.parseFunction=function(e,t,i,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===u.star&&t&qt&&this.unexpected(),e.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Pe&&(e.id=t&Wr&&this.type!==u.name?null:this.parseIdent(),e.id&&!(t&qt)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Yt:le:jr));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Qt(e.async,e.generator)),t&Pe||(e.id=this.type===u.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,n),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&Pe?"FunctionDeclaration":"FunctionExpression")},w.parseFunctionParams=function(e){this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},w.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),n=this.startNode(),s=!1;for(n.body=[],this.expect(u.braceL);this.type!==u.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(n.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&Ha(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},w.parseClassElement=function(e){if(this.eat(u.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),r="",n=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===u.star?o=!0:r="static"}if(i.static=o,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===u.star)&&!this.canInsertSemicolon()?s=!0:r="async"),!r&&(t>=9||!s)&&this.eat(u.star)&&(n=!0),!r&&!s&&!n){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=c:r=c)}if(r?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=r,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===u.parenL||"method"!==a||n||s){var l=!i.static&&tt(i,"constructor");l&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=l?"constructor":a,this.parseClassMethod(i,n,s,l&&e)}else this.parseClassField(i);return i},w.isClassElementNameStart=function(){return this.type===u.name||this.type===u.privateId||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword},w.parseClassElementName=function(e){this.type===u.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},w.parseClassMethod=function(e,t,i,r){var n=e.key;"constructor"===e.kind?(t&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):e.static&&tt(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,i,r);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},w.parseClassField=function(e){if(tt(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&tt(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(u.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},w.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Ne|Kt);this.type!==u.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},w.parseClassId=function(e,t){this.type===u.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,le,!1)):(!0===t&&this.unexpected(),e.id=null)},w.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts(null,!1):null},w.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},w.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,n=0===r?null:this.privateNameStack[r-1],s=0;s<i.length;++s){var a=i[s];Te(t,a.name)||(n?n.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},w.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},w.parseExport=function(e,t){if(this.next(),this.eat(u.star))return this.parseExportAllDeclaration(e,t);if(this.eat(u._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,r=e.specifiers;i<r.length;i+=1){var n=r[i];this.checkUnreserved(n.local),this.checkLocalExport(n.local),"Literal"===n.local.type&&this.raise(n.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},w.parseExportDeclaration=function(e){return this.parseStatement(null)},w.parseExportDefaultDeclaration=function(){if(this.type===u._function||(e=this.isAsyncFunction())){var e,t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Pe|Wr,!1,e)}if(this.type===u._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},w.checkExport=function(e,t,i){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),Te(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},w.checkPatternExport=function(e,t){var i=t.type;if("Identifier"===i)this.checkExport(e,t,t.start);else if("ObjectPattern"===i)for(var r=0,n=t.properties;r<n.length;r+=1){var s=n[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===i)for(var a=0,o=t.elements;a<o.length;a+=1){var c=o[a];c&&this.checkPatternExport(e,c)}else"Property"===i?this.checkPatternExport(e,t.value):"AssignmentPattern"===i?this.checkPatternExport(e,t.left):"RestElement"===i?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===i&&this.checkPatternExport(e,t.expression)},w.checkVariableExport=function(e,t){if(e)for(var i=0,r=t;i<r.length;i+=1){var n=r[i];this.checkPatternExport(e,n.id)}},w.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},w.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},w.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(i)i=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;t.push(this.parseExportSpecifier(e))}return t},w.parseImport=function(e){return this.next(),this.type===u.string?(e.specifiers=Ua,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===u.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},w.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,le),this.finishNode(e,"ImportSpecifier")},w.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,le),this.finishNode(e,"ImportDefaultSpecifier")},w.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,le),this.finishNode(e,"ImportNamespaceSpecifier")},w.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===u.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(u.comma)))return e;if(this.type===u.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;e.push(this.parseImportSpecifier())}return e},w.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===u.string){var e=this.parseLiteral(this.value);return Va.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},w.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},w.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var J=T.prototype;J.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var r=0,n=e.properties;r<n.length;r+=1){var s=n[r];this.toAssignable(s,t),"RestElement"===s.type&&("ArrayPattern"===s.argument.type||"ObjectPattern"===s.argument.type)&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e},J.toAssignableList=function(e,t){for(var i=e.length,r=0;r<i;r++){var n=e[r];n&&this.toAssignable(n,t)}if(i){var s=e[i-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},J.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},J.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==u.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},J.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case u.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(u.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case u.braceL:return this.parseObj(!0)}return this.parseIdent()},J.parseBindingList=function(e,t,i,r){for(var n=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(u.comma),t&&this.type===u.comma)n.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===u.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),n.push(a),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}n.push(this.parseAssignableListItem(r))}return n},J.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},J.parseBindingListItem=e=>e,J.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(u.eq))return i;var r=this.startNodeAt(e,t);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},J.checkLValSimple=function(e,t,i){void 0===t&&(t=et);var r=t!==et;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===le&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(Te(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==Hr&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},J.checkLValPattern=function(e,t,i){switch(void 0===t&&(t=et),e.type){case"ObjectPattern":for(var r=0,n=e.properties;r<n.length;r+=1){var s=n[r];this.checkLValInnerPattern(s,t,i)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var c=o[a];c&&this.checkLValInnerPattern(c,t,i)}break;default:this.checkLValSimple(e,t,i)}},J.checkLValInnerPattern=function(e,t,i){switch(void 0===t&&(t=et),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var Z=function(e,t,i,r,n){this.token=e,this.isExpr=!!t,this.preserveSpace=!!i,this.override=r,this.generator=!!n},R={b_stat:new Z("{",!1),b_expr:new Z("{",!0),b_tmpl:new Z("${",!1),p_stat:new Z("(",!1),p_expr:new Z("(",!0),q_tmpl:new Z("`",!0,!0,e=>e.tryReadTemplateToken()),f_stat:new Z("function",!1),f_expr:new Z("function",!0),f_expr_gen:new Z("function",!0,!1,null,!0),f_gen:new Z("function",!1,!1,null,!0)},Se=T.prototype;Se.initialContext=()=>[R.b_stat],Se.curContext=function(){return this.context[this.context.length-1]},Se.braceIsBlock=function(e){var t=this.curContext();return t===R.f_expr||t===R.f_stat||(e===u.colon&&(t===R.b_stat||t===R.b_expr)?!t.isExpr:e===u._return||e===u.name&&this.exprAllowed?Y.test(this.input.slice(this.lastTokEnd,this.start)):e===u._else||e===u.semi||e===u.eof||e===u.parenR||e===u.arrow||(e===u.braceL?t===R.b_stat:e!==u._var&&e!==u._const&&e!==u.name&&!this.exprAllowed))},Se.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Se.updateContext=function(e){var t,i=this.type;i.keyword&&e===u.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},Se.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},u.parenR.updateContext=u.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var e=this.context.pop();e===R.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},u.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?R.b_stat:R.b_expr),this.exprAllowed=!0},u.dollarBraceL.updateContext=function(){this.context.push(R.b_tmpl),this.exprAllowed=!0},u.parenL.updateContext=function(e){var t=e===u._if||e===u._for||e===u._with||e===u._while;this.context.push(t?R.p_stat:R.p_expr),this.exprAllowed=!0},u.incDec.updateContext=()=>{},u._function.updateContext=u._class.updateContext=function(e){!e.beforeExpr||e===u._else||e===u.semi&&this.curContext()!==R.p_stat||e===u._return&&Y.test(this.input.slice(this.lastTokEnd,this.start))||(e===u.colon||e===u.braceL)&&this.curContext()===R.b_stat?this.context.push(R.f_stat):this.context.push(R.f_expr),this.exprAllowed=!1},u.backQuote.updateContext=function(){this.curContext()===R.q_tmpl?this.context.pop():this.context.push(R.q_tmpl),this.exprAllowed=!1},u.star.updateContext=function(e){if(e===u._function){var t=this.context.length-1;this.context[t]===R.f_expr?this.context[t]=R.f_expr_gen:this.context[t]=R.f_gen}this.exprAllowed=!0},u.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==u.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var v=T.prototype;function qr(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&qr(e.expression)}v.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,n,s=e.key;switch(s.type){case"Identifier":n=s.name;break;case"Literal":n=String(s.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){"__proto__"===n&&"init"===a&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);return}var o=t[n="$"+n];o?(r="init"===a?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(s.start,"Redefinition of property"):o=t[n]={init:!1,get:!1,set:!1},o[a]=!0}},v.parseExpression=function(e,t){var i=this.start,r=this.startLoc,n=this.parseMaybeAssign(e,t);if(this.type===u.comma){var s=this.startNodeAt(i,r);for(s.expressions=[n];this.eat(u.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return n},v.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,n=-1,s=-1,a=-1;t?(n=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new nt,r=!0);var o=this.start,c=this.startLoc;(this.type===u.parenL||this.type===u.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var l=this.parseMaybeConditional(e,t);if(i&&(l=i.call(this,l,o,c)),this.type.isAssign){var h=this.startNodeAt(o,c);return h.operator=this.value,this.type===u.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===u.eq?this.checkLValPattern(l):this.checkLValSimple(l),h.left=l,this.next(),h.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(h,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),n>-1&&(t.parenthesizedAssign=n),s>-1&&(t.trailingComma=s),l},v.parseMaybeConditional=function(e,t){var i=this.start,r=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(this.eat(u.question)){var s=this.startNodeAt(i,r);return s.test=n,s.consequent=this.parseMaybeAssign(),this.expect(u.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return n},v.parseExprOps=function(e,t){var i=this.start,r=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===i&&"ArrowFunctionExpression"===n.type?n:this.parseExprOp(n,i,r,-1,e)},v.parseExprOp=function(e,t,i,r,n){var s=this.type.binop;if(null!=s&&(!n||this.type!==u._in)&&s>r){var a=this.type===u.logicalOR||this.type===u.logicalAND,o=this.type===u.coalesce;o&&(s=u.logicalAND.binop);var c=this.value;this.next();var l=this.start,h=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),l,h,s,n),d=this.buildBinary(t,i,e,p,c,a||o);return(a&&this.type===u.coalesce||o&&(this.type===u.logicalOR||this.type===u.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,i,r,n)}return e},v.buildBinary=function(e,t,i,r,n,s){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=i,a.operator=n,a.right=r,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},v.parseMaybeUnary=function(e,t,i,r){var n,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)n=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),c=this.type===u.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&qr(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,n=this.finishNode(o,c?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==u.privateId){if(n=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(s,a);l.operator=this.value,l.prefix=!1,l.argument=n,this.checkLValSimple(n),this.next(),n=this.finishNode(l,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),n=this.parsePrivateIdent(),this.type!==u._in&&this.unexpected();return!i&&this.eat(u.starstar)?t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,n,this.parseMaybeUnary(null,!1,!1,r),"**",!1):n},v.parseExprSubscripts=function(e,t){var i=this.start,r=this.startLoc,n=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return n;var s=this.parseSubscripts(n,i,r,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},v.parseSubscripts=function(e,t,i,r,n){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,i,r,s,a,n);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var c=this.startNodeAt(t,i);c.expression=o,o=this.finishNode(c,"ChainExpression")}return o}e=o}},v.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(u.arrow)},v.parseSubscriptAsyncArrow=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,r)},v.parseSubscript=function(e,t,i,r,n,s,a){var o=this.options.ecmaVersion>=11,c=o&&this.eat(u.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(u.bracketL);if(l||c&&this.type!==u.parenL&&this.type!==u.backQuote||this.eat(u.dot)){var h=this.startNodeAt(t,i);h.object=e,l?(h.property=this.parseExpression(),this.expect(u.bracketR)):this.type===u.privateId&&"Super"!==e.type?h.property=this.parsePrivateIdent():h.property=this.parseIdent("never"!==this.options.allowReserved),h.computed=!!l,o&&(h.optional=c),e=this.finishNode(h,"MemberExpression")}else if(!r&&this.eat(u.parenL)){var p=new nt,d=this.yieldPos,m=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var $=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1,p);if(n&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=m,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,i,$,a);this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var y=this.startNodeAt(t,i);y.callee=e,y.arguments=$,o&&(y.optional=c),e=this.finishNode(y,"CallExpression")}else if(this.type===u.backQuote){(c||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var _=this.startNodeAt(t,i);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,"TaggedTemplateExpression")}return e},v.parseExprAtom=function(e,t,i){this.type===u.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case u._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==u.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==u.dot&&this.type!==u.bracketL&&this.type!==u.parenL&&this.unexpected(),this.finishNode(r,"Super");case u._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case u.name:var s=this.start,a=this.startLoc,o=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===c.name&&!this.canInsertSemicolon()&&this.eat(u._function))return this.overrideContext(R.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[c],!1,t);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===u.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(u.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[c],!0,t)}return c;case u.regexp:var l=this.value;return(r=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},r;case u.num:case u.string:return this.parseLiteral(this.value);case u._null:case u._true:case u._false:return(r=this.startNode()).value=this.type===u._null?null:this.type===u._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case u.parenL:var h=this.start,p=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=h),e.parenthesizedBind<0&&(e.parenthesizedBind=h)),p;case u.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(u.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case u.braceL:return this.overrideContext(R.b_expr),this.parseObj(!1,e);case u._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case u._class:return this.parseClass(this.startNode(),!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},v.parseExprAtomDefault=function(){this.unexpected()},v.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);return this.type!==u.parenL||e?this.type===u.dot?(t.meta=i,this.parseImportMeta(t)):void this.unexpected():this.parseDynamicImport(t)},v.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(u.parenR)){var t=this.start;this.eat(u.comma)&&this.eat(u.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},v.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},v.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},v.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e},v.shouldParseArrow=function(e){return!this.canInsertSemicolon()},v.parseParenAndDistinguishExpression=function(e,t){var i,r=this.start,n=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,c=this.startLoc,l=[],h=!0,p=!1,d=new nt,m=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==u.parenR;)if(h?h=!1:this.expect(u.comma),s&&this.afterTrailingComma(u.parenR,!0)){p=!0;break}else if(this.type===u.ellipsis){a=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else l.push(this.parseMaybeAssign(!1,d,this.parseParenItem));var $=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(u.parenR),e&&this.shouldParseArrow(l)&&this.eat(u.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=m,this.awaitPos=f,this.parseParenArrowList(r,n,l,t);(!l.length||p)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=f||this.awaitPos,l.length>1?((i=this.startNodeAt(o,c)).expressions=l,this.finishNodeAt(i,"SequenceExpression",$,y)):i=l[0]}else i=this.parseParenExpression();if(!this.options.preserveParens)return i;var _=this.startNodeAt(r,n);return _.expression=i,this.finishNode(_,"ParenthesizedExpression")},v.parseParenItem=e=>e,v.parseParenArrowList=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,r)};var Wa=[];v.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(u.dot)){e.meta=t;var i=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,n,!0,!1),this.eat(u.parenL)?e.arguments=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Wa,this.finishNode(e,"NewExpression")},v.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===u.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` | |
| `),cooked:this.value},this.next(),i.tail=this.type===u.backQuote,this.finishNode(i,"TemplateElement")},v.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(i.quasis=[r];!r.tail;)this.type===u.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(u.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(u.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},v.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===u.name||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===u.star)&&!Y.test(this.input.slice(this.lastTokEnd,this.start))},v.parseObj=function(e,t){var i=this.startNode(),r=!0,n={};for(i.properties=[],this.next();!this.eat(u.braceR);){if(r)r=!1;else if(this.expect(u.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(u.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,n,t),i.properties.push(s)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},v.parseProperty=function(e,t){var i,r,n,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===u.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(n=this.start,s=this.startLoc),e||(i=this.eat(u.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(r=!0,i=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,i,r,n,s,t,o),this.finishNode(a,"Property")},v.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var i=e.value.start;"get"===e.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},v.parsePropertyValue=function(e,t,i,r,n,s,a,o){(i||r)&&this.type===u.colon&&this.unexpected(),this.eat(u.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===u.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,r)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===u.comma||this.type===u.braceR||this.type===u.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((i||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,s,this.copyNode(e.key)):this.type===u.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((i||r)&&this.unexpected(),this.parseGetterSetter(e))},v.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(u.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR),e.key;e.computed=!1}return e.key=this.type===u.num||this.type===u.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},v.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},v.parseMethod=function(e,t,i){var r=this.startNode(),n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Qt(t,r.generator)|Kt|(i?$r:0)),this.expect(u.parenL),r.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},v.parseArrowExpression=function(e,t,i,r){var n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(Qt(i,!1)|Fr),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},v.parseFunctionBody=function(e,t,i,r){var n=t&&this.type!==u.braceL,s=this.strict,a=!1;if(n)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var c=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Hr),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},v.isSimpleParamList=e=>{for(var t,i=0,r=e;i<r.length;i+=1)if("Identifier"!==r[i].type)return!1;return!0},v.checkParams=function(e,t){for(var i=Object.create(null),r=0,n=e.params;r<n.length;r+=1){var s=n[r];this.checkLValInnerPattern(s,Yt,t?null:i)}},v.parseExprList=function(e,t,i,r){for(var n=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(u.comma),t&&this.afterTrailingComma(e))break;var a=void 0;i&&this.type===u.comma?a=null:this.type===u.ellipsis?(a=this.parseSpread(r),r&&this.type===u.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),n.push(a)}return n},v.checkUnreserved=function(e){var t=e.start,i=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===r||"await"===r)&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&-1!==this.input.slice(t,i).indexOf("\\"))&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},v.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},v.parseIdentNode=function(){var e=this.startNode();return this.type===u.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,("class"===e.name||"function"===e.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop()):this.unexpected(),e},v.parsePrivateIdent=function(){var e=this.startNode();return this.type===u.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},v.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===u.semi||this.canInsertSemicolon()||this.type!==u.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(u.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},v.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var it=T.prototype;it.raise=function(e,t){var i=Or(this.input,e),r=SyntaxError(t+=" ("+i.line+":"+i.column+")");throw r.pos=e,r.loc=i,r.raisedAt=this.pos,r},it.raiseRecoverable=it.raise,it.curPosition=function(){if(this.options.locations)return new Re(this.curLine,this.pos-this.lineStart)};var de=T.prototype,qa=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};de.enterScope=function(e){this.scopeStack.push(new qa(e))},de.exitScope=function(){this.scopeStack.pop()},de.treatFunctionsAsVarInScope=function(e){return e.flags&ve||!this.inModule&&e.flags&Ie},de.declareName=function(e,t,i){var r=!1;if(t===le){var n=this.currentScope();r=n.lexical.indexOf(e)>-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&Ie&&delete this.undefinedExports[e]}else if(t===Ur)this.currentScope().lexical.push(e);else if(t===jr){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(o.flags&Br&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&o.flags&Ie&&delete this.undefinedExports[e],o.flags&Xt)break}r&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},de.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},de.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},de.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Xt)return t}},de.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Xt&&!(t.flags&Fr))return t}};var at=function(e,t,i){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new rt(e,i)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Me=T.prototype;function Gr(e,t,i,r){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=i),e}Me.startNode=function(){return new at(this,this.start,this.startLoc)},Me.startNodeAt=function(e,t){return new at(this,e,t)},Me.finishNode=function(e,t){return Gr.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Me.finishNodeAt=function(e,t,i,r){return Gr.call(this,e,t,i,r)},Me.copyNode=function(e){var t=new at(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Ka,zr="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",Kr=zr+" Extended_Pictographic",Xr=Kr,Qr=Xr+" EBase EComp EMod EPres ExtPict",Yr=Qr,Ga=Yr,za={9:zr,10:Kr,11:Xr,12:Qr,13:Yr,14:Ga},Xa={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Pr="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",Jr="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",Zr=Jr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",en=Zr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tn=en+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",rn=tn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Qa=rn+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Ya={9:Jr,10:Zr,11:en,12:tn,13:rn,14:Qa},nn={};function Ja(e){var t=nn[e]={binary:pe(za[e]+" "+Pr),binaryOfStrings:pe(Xa[e]),nonBinary:{General_Category:pe(Pr),Script:pe(Ya[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Ze=0,Ut=[9,10,11,12,13,14];Ze<Ut.length;Ze+=1)Ja(Rr=Ut[Ze]);var Rr,Ze,Ut,b=T.prototype,re=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=nn[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function an(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Za(e){return ce(e,!0)||36===e||95===e}function es(e){return be(e,!0)||36===e||95===e||8204===e||8205===e}function sn(e){return e>=65&&e<=90||e>=97&&e<=122}function ts(e){return e>=0&&e<=1114111}re.prototype.reset=function(e,t,i){var r=-1!==i.indexOf("v"),n=-1!==i.indexOf("u");this.start=0|e,this.source=t+"",this.flags=i,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)},re.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},re.prototype.at=function(e,t){void 0===t&&(t=!1);var i=this.source,r=i.length;if(e>=r)return -1;var n=i.charCodeAt(e);if(!(t||this.switchU)||n<=55295||n>=57344||e+1>=r)return n;var s=i.charCodeAt(e+1);return s>=56320&&s<=57343?(n<<10)+s-56613888:n},re.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var i=this.source,r=i.length;if(e>=r)return r;var n,s=i.charCodeAt(e);return!(t||this.switchU)||s<=55295||s>=57344||e+1>=r||(n=i.charCodeAt(e+1))<56320||n>57343?e+1:e+2},re.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},re.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},re.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},re.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},re.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var i=this.pos,r=0,n=e;r<n.length;r+=1){var s=n[r],a=this.at(i,t);if(-1===a||a!==s)return!1;i=this.nextIndex(i,t)}return this.pos=i,!0},b.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,r=!1,n=!1,s=0;s<i.length;s++){var a=i.charAt(s);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(a,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(n=!0)}this.options.ecmaVersion>=15&&r&&n&&this.raise(e.start,"Invalid regular expression flag")},b.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},b.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var r=i[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},b.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},b.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},b.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?!!this.regexp_eatAtom(e):!!this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},b.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},b.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},b.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},b.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var r=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return -1!==n&&n<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},b.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},b.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},b.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},b.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},b.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},b.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},b.regexp_eatSyntaxCharacter=e=>{var t=e.current();return!!an(t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatPatternCharacters=e=>{for(var t=e.pos,i=0;-1!==(i=e.current())&&!an(i);)e.advance();return e.pos!==t},b.regexp_eatExtendedPatternCharacter=e=>{var t=e.current();return -1!==t&&36!==t&&(!(t>=40)||!(t<=43))&&46!==t&&63!==t&&91!==t&&94!==t&&124!==t&&(e.advance(),!0)},b.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},b.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},b.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=fe(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=fe(e.lastIntValue);return!0}return!1},b.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),Za(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},b.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),es(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},b.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},b.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},b.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},b.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},b.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},b.regexp_eatZero=e=>!(48!==e.current()||st(e.lookahead()))&&(e.lastIntValue=0,e.advance(),!0),b.regexp_eatControlEscape=e=>{var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},b.regexp_eatControlLetter=e=>{var t=e.current();return!!sn(t)&&(e.lastIntValue=t%32,e.advance(),!0)},b.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var i=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(r&&n>=55296&&n<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=(n-55296)*1024+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=n}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ts(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=i}return!1},b.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return 99!==t&&(!e.switchN||107!==t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatDecimalEscape=e=>{e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var on=0,ue=1,Q=2;function is(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function cn(e){return sn(e)||95===e}function rs(e){return cn(e)||st(e)}function ns(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}function as(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}function ss(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}function st(e){return e>=48&&e<=57}function un(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ln(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function hn(e){return e>=48&&e<=55}b.regexp_eatCharacterClassEscape=function(e){var t,i=e.current();if(is(i))return e.lastIntValue=-1,e.advance(),ue;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=80===i)||112===i)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(t=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&t===Q&&e.raise("Invalid property name"),t;e.raise("Invalid property name")}return on},b.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,r),ue}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return on},b.regexp_validateUnicodePropertyNameAndValue=(e,t,i)=>{Te(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},b.regexp_validateUnicodePropertyNameOrValue=(e,t)=>e.unicodeProperties.binary.test(t)?ue:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?Q:void e.raise("Invalid property name"),b.regexp_eatUnicodePropertyName=e=>{var t=0;for(e.lastStringValue="";cn(t=e.current());)e.lastStringValue+=fe(t),e.advance();return""!==e.lastStringValue},b.regexp_eatUnicodePropertyValue=e=>{var t=0;for(e.lastStringValue="";rs(t=e.current());)e.lastStringValue+=fe(t),e.advance();return""!==e.lastStringValue},b.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},b.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===Q&&e.raise("Negated character class may contain strings"),!0}return!1},b.regexp_classContents=function(e){return 93===e.current()?ue:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),ue)},b.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(-1===t||-1===i)&&e.raise("Invalid character class"),-1!==t&&-1!==i&&t>i&&e.raise("Range out of order in character class")}}},b.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(99===i||hn(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},b.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},b.regexp_classSetExpression=function(e){var t,i=ue;if(!this.regexp_eatClassSetRange(e)){if(t=this.regexp_eatClassSetOperand(e)){t===Q&&(i=Q);for(var r=e.pos;e.eatChars([38,38]);){if(38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))){t!==Q&&(i=ue);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return i}else e.raise("Invalid character in character class")}for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return i;t===Q&&(i=Q)}},b.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return -1!==i&&-1!==r&&i>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},b.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?ue:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},b.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return i&&r===Q&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null},b.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},b.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Q&&(t=Q);return t},b.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?ue:Q},b.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!!(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var i=e.current();return!(i<0||i===e.lookahead()&&ns(i)||as(i))&&(e.advance(),e.lastIntValue=i,!0)},b.regexp_eatClassSetReservedPunctuator=e=>{var t=e.current();return!!ss(t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatClassControlLetter=e=>{var t=e.current();return(!!st(t)||95===t)&&(e.lastIntValue=t%32,e.advance(),!0)},b.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},b.regexp_eatDecimalDigits=e=>{var t=e.pos,i=0;for(e.lastIntValue=0;st(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t},b.regexp_eatHexDigits=e=>{var t=e.pos,i=0;for(e.lastIntValue=0;un(i=e.current());)e.lastIntValue=16*e.lastIntValue+ln(i),e.advance();return e.pos!==t},b.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*i+e.lastIntValue:e.lastIntValue=8*t+i}else e.lastIntValue=t;return!0}return!1},b.regexp_eatOctalDigit=e=>{var t=e.current();return hn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},b.regexp_eatFixedHexDigits=(e,t)=>{var i=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var n=e.current();if(!un(n))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+ln(n),e.advance()}return!0};var Zt=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new rt(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},C=T.prototype;function os(e,t){return t?Number.parseInt(e,8):Number.parseFloat(e.replace(/_/g,""))}function pn(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}C.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Zt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},C.getToken=function(){return this.next(),new Zt(this)},"u">typeof Symbol&&(C[Symbol.iterator]=function(){return{next:()=>{var e=this.getToken();return{done:e.type===u.eof,value:e}}}}),C.nextToken=function(){var e=this.curContext();return(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)?this.finishToken(u.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},C.readToken=function(e){return ce(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},C.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},C.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var r=void 0,n=t;(r=Nr(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},C.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!we(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())},C.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Mr.test(String.fromCharCode(e)))++this.pos;else break e}}},C.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},C.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(u.ellipsis)):(++this.pos,this.finishToken(u.dot))},C.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(u.assign,2):this.finishOp(u.slash,1)},C.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,r=42===e?u.star:u.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++i,r=u.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(u.assign,i+1):this.finishOp(r,i)},C.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e)return this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(u.assign,3):this.finishOp(124===e?u.logicalOR:u.logicalAND,2);return 61===t?this.finishOp(u.assign,2):this.finishOp(124===e?u.bitwiseOR:u.bitwiseAND,1)},C.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(u.assign,2):this.finishOp(u.bitwiseXOR,1)},C.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45===t&&!this.inModule&&62===this.input.charCodeAt(this.pos+2)&&(0===this.lastTokEnd||Y.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(u.incDec,2):61===t?this.finishOp(u.assign,2):this.finishOp(u.plusMin,1)},C.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(u.assign,i+1):this.finishOp(u.bitShift,i)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(i=2),this.finishOp(u.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},C.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(u.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(u.arrow)):this.finishOp(61===e?u.eq:u.prefix,1)},C.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(u.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(u.assign,3):this.finishOp(u.coalesce,2)}return this.finishOp(u.question,1)},C.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,ce(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(u.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+fe(t)+"'")},C.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(u.parenL);case 41:return++this.pos,this.finishToken(u.parenR);case 59:return++this.pos,this.finishToken(u.semi);case 44:return++this.pos,this.finishToken(u.comma);case 91:return++this.pos,this.finishToken(u.bracketL);case 93:return++this.pos,this.finishToken(u.bracketR);case 123:return++this.pos,this.finishToken(u.braceL);case 125:return++this.pos,this.finishToken(u.braceR);case 58:return++this.pos,this.finishToken(u.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(u.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(u.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+fe(e)+"'")},C.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},C.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Y.test(r)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new re(this));o.reset(i,n,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=RegExp(n,a)}catch{}return this.finishToken(u.regexp,{pattern:n,flags:a,value:c})},C.readInt=function(e,t,i){for(var r=this.options.ecmaVersion>=12&&void 0===t,n=i&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,c=0,u=t??1/0;c<u;++c,++this.pos){var l=this.input.charCodeAt(this.pos),h=void 0;if(r&&95===l){n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=l;continue}if((h=l>=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=e)break;o=l,a=a*e+h}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:a},C.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return null==i&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=pn(this.input.slice(t,this.pos)),++this.pos):ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,i)},C.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var i=this.pos-t>=2&&48===this.input.charCodeAt(t);i&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===r){var n=pn(this.input.slice(t,this.pos));return++this.pos,ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,n)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),46!==r||i||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||i||((43===(r=this.input.charCodeAt(++this.pos))||45===r)&&++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=os(this.input.slice(t,this.pos),i);return this.finishToken(u.num,s)},C.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},C.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(we(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(u.string,t)};var fn={};C.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===fn)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},C.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw fn;this.raise(e,t)},C.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos===this.start&&(this.type===u.template||this.type===u.invalidTemplate)?36===i?(this.pos+=2,this.finishToken(u.dollarBraceL)):(++this.pos,this.finishToken(u.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(u.template,e));if(92===i)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(we(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+=` | |
| `;break;default:e+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},C.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(u.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},C.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return` | |
| `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return fe(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=Number.parseInt(r,8);return n>255&&(n=Number.parseInt(r=r.slice(0,-1),8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),("0"!==r||56===t||57===t)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return we(t)?"":String.fromCharCode(t)}},C.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return null===i&&this.invalidStringToken(t,"Bad character escape sequence"),i},C.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(be(n,r))this.pos+=n<=65535?1:2;else if(92===n){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?ce:be)(a,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=fe(a),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)},C.readWord=function(){var e=this.readWord1(),t=u.name;return this.keywords.test(e)&&(t=Gt[e]),this.finishToken(t,e)};var cs="8.10.0";function dn(e,t){return T.parse(e,t)}T.acorn={Parser:T,version:cs,defaultOptions:Wt,Position:Re,SourceLocation:rt,getLineInfo:Or,Node:at,TokenType:L,tokTypes:u,keywordTypes:Gt,TokContext:Z,tokContexts:R,isIdentifierChar:be,isIdentifierStart:ce,Token:Zt,isNewLine:we,lineBreak:Y,lineBreakG:Ma,nonASCIIwhitespace:Mr};var ti=globalThis.fetch,me=globalThis.WebSocket,us=globalThis.Request,mn=globalThis.Response,ge={prototype:{send:me.prototype.send},CLOSED:me.CLOSED,CLOSING:me.CLOSING,CONNECTING:me.CONNECTING,OPEN:me.OPEN},ls=20,hs=[101,204,205,304],ps=[301,302,303,307,308],ct=class extends Error{constructor(e,t){super(t.message||t.code),q(this,"status"),q(this,"body"),this.status=e,this.body=t}},ii=class{constructor(e,t){q(this,"base"),this.base=new URL(`./v${e}/`,t)}};function ye(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function fs(e,t){return e<<t|e>>>32-t}function ut(e,t,i,r,n,s){return ye(fs(ye(ye(t,e),ye(r,s)),n),i)}function D(e,t,i,r,n,s,a){return ut(t&i|~t&r,e,t,n,s,a)}function O(e,t,i,r,n,s,a){return ut(t&r|i&~r,e,t,n,s,a)}function V(e,t,i,r,n,s,a){return ut(t^i^r,e,t,n,s,a)}function F(e,t,i,r,n,s,a){return ut(i^(t|~r),e,t,n,s,a)}function ot(e,t){e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;let i=1732584193,r=-271733879,n=-1732584194,s=271733878;for(let a=0;a<e.length;a+=16){let o=i,c=r,u=n,l=s;i=D(i,r,n,s,e[a],7,-680876936),s=D(s,i,r,n,e[a+1],12,-389564586),n=D(n,s,i,r,e[a+2],17,606105819),r=D(r,n,s,i,e[a+3],22,-1044525330),i=D(i,r,n,s,e[a+4],7,-176418897),s=D(s,i,r,n,e[a+5],12,1200080426),n=D(n,s,i,r,e[a+6],17,-1473231341),r=D(r,n,s,i,e[a+7],22,-45705983),i=D(i,r,n,s,e[a+8],7,1770035416),s=D(s,i,r,n,e[a+9],12,-1958414417),n=D(n,s,i,r,e[a+10],17,-42063),r=D(r,n,s,i,e[a+11],22,-1990404162),i=D(i,r,n,s,e[a+12],7,1804603682),s=D(s,i,r,n,e[a+13],12,-40341101),n=D(n,s,i,r,e[a+14],17,-1502002290),r=D(r,n,s,i,e[a+15],22,1236535329),i=O(i,r,n,s,e[a+1],5,-165796510),s=O(s,i,r,n,e[a+6],9,-1069501632),n=O(n,s,i,r,e[a+11],14,643717713),r=O(r,n,s,i,e[a],20,-373897302),i=O(i,r,n,s,e[a+5],5,-701558691),s=O(s,i,r,n,e[a+10],9,38016083),n=O(n,s,i,r,e[a+15],14,-660478335),r=O(r,n,s,i,e[a+4],20,-405537848),i=O(i,r,n,s,e[a+9],5,568446438),s=O(s,i,r,n,e[a+14],9,-1019803690),n=O(n,s,i,r,e[a+3],14,-187363961),r=O(r,n,s,i,e[a+8],20,1163531501),i=O(i,r,n,s,e[a+13],5,-1444681467),s=O(s,i,r,n,e[a+2],9,-51403784),n=O(n,s,i,r,e[a+7],14,1735328473),r=O(r,n,s,i,e[a+12],20,-1926607734),i=V(i,r,n,s,e[a+5],4,-378558),s=V(s,i,r,n,e[a+8],11,-2022574463),n=V(n,s,i,r,e[a+11],16,1839030562),r=V(r,n,s,i,e[a+14],23,-35309556),i=V(i,r,n,s,e[a+1],4,-1530992060),s=V(s,i,r,n,e[a+4],11,1272893353),n=V(n,s,i,r,e[a+7],16,-155497632),r=V(r,n,s,i,e[a+10],23,-1094730640),i=V(i,r,n,s,e[a+13],4,681279174),s=V(s,i,r,n,e[a],11,-358537222),n=V(n,s,i,r,e[a+3],16,-722521979),r=V(r,n,s,i,e[a+6],23,76029189),i=V(i,r,n,s,e[a+9],4,-640364487),s=V(s,i,r,n,e[a+12],11,-421815835),n=V(n,s,i,r,e[a+15],16,530742520),r=V(r,n,s,i,e[a+2],23,-995338651),i=F(i,r,n,s,e[a],6,-198630844),s=F(s,i,r,n,e[a+7],10,1126891415),n=F(n,s,i,r,e[a+14],15,-1416354905),r=F(r,n,s,i,e[a+5],21,-57434055),i=F(i,r,n,s,e[a+12],6,1700485571),s=F(s,i,r,n,e[a+3],10,-1894986606),n=F(n,s,i,r,e[a+10],15,-1051523),r=F(r,n,s,i,e[a+1],21,-2054922799),i=F(i,r,n,s,e[a+8],6,1873313359),s=F(s,i,r,n,e[a+15],10,-30611744),n=F(n,s,i,r,e[a+6],15,-1560198380),r=F(r,n,s,i,e[a+13],21,1309151649),i=F(i,r,n,s,e[a+4],6,-145523070),s=F(s,i,r,n,e[a+11],10,-1120210379),n=F(n,s,i,r,e[a+2],15,718787259),r=F(r,n,s,i,e[a+9],21,-343485551),i=ye(i,o),r=ye(r,c),n=ye(n,u),s=ye(s,l)}return[i,r,n,s]}function yn(e){let t="",i=32*e.length;for(let r=0;r<i;r+=8)t+=String.fromCharCode(e[r>>5]>>>r%32&255);return t}function ri(e){let t=[],i=e.length>>2;for(let r=0;r<i;r+=1)t[r]=0;let n=8*e.length;for(let s=0;s<n;s+=8)t[s>>5]|=(255&e.charCodeAt(s/8))<<s%32;return t}function ds(e){return yn(ot(ri(e),8*e.length))}function ms(e,t){let i=ri(e),r=[],n=[];i.length>16&&(i=ot(i,8*e.length));for(let s=0;s<16;s+=1)r[s]=909522486^i[s],n[s]=1549556828^i[s];let a=ot(r.concat(ri(t)),512+8*t.length);return yn(ot(n.concat(a),640))}function gn(e){let t="0123456789abcdef",i="";for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);i+=t.charAt(n>>>4&15)+t.charAt(15&n)}return i}function ni(e){return unescape(encodeURIComponent(e))}function xn(e){return ds(ni(e))}function ys(e){return gn(xn(e))}function _n(e,t){return ms(ni(e),ni(t))}function gs(e,t){return gn(_n(e,t))}function xs(e,t,i){return t?i?_n(t,e):gs(t,e):i?xn(e):ys(e)}var ei=3072;function _s(e){let t=new Headers(e);if(e.has("x-bare-headers")){let i=e.get("x-bare-headers");if(i.length>ei){t.delete("x-bare-headers");let r=0;for(let n=0;n<i.length;n+=ei){let s=i.slice(n,n+ei),a=r++;t.set(`x-bare-headers-${a}`,`;${s}`)}}}return t}function bs(e){let t=new Headers(e),i="x-bare-headers";if(e.has(`${i}-0`)){let r=[];for(let[n,s]of e){if(!n.startsWith(i))continue;if(!s.startsWith(";"))throw new ct(400,{code:"INVALID_BARE_HEADER",id:`request.headers.${n}`,message:"Value didn't begin with semi-colon."});let a=Number.parseInt(n.slice(i.length+1));r[a]=s.slice(1),t.delete(n)}t.set(i,r.join(""))}return t}var ai=class extends ii{constructor(e){super(3,e),q(this,"ws"),q(this,"http"),this.ws=new URL(this.base),this.http=new URL(this.base),"https:"===this.ws.protocol?this.ws.protocol="wss:":this.ws.protocol="ws:"}connect(e,t,i,r,n){let s=new me(this.ws),a=()=>{s.removeEventListener("close",o),s.removeEventListener("message",c)},o=()=>{a()},c=e=>{if(a(),"string"!=typeof e.data)throw TypeError("the first websocket message was not a text frame");let t=JSON.parse(e.data);if("open"!==t.type)throw TypeError("message was not of open type");e.stopImmediatePropagation(),r({protocol:t.protocol,setCookies:t.setCookies}),n(ge.OPEN),s.dispatchEvent(new Event("open"))};return s.addEventListener("close",o),s.addEventListener("message",c),s.addEventListener("open",r=>{r.stopImmediatePropagation(),n(ge.CONNECTING),i().then(i=>ge.prototype.send.call(s,JSON.stringify({type:"connect",remote:e.toString(),protocols:t,headers:i,forwardHeaders:[]})))},{once:!0}),s}async request(e,t,i,r,n,s,a){if(r.protocol.startsWith("blob:")){let o=await ti(r),c=new mn(o.body,o);return c.rawHeaders=Object.fromEntries(o.headers),c.rawResponse=o,c}let u={};if(t instanceof Headers)for(let[l,h]of t)u[l]=h;else for(let p in t)u[p]=t[p];let d={credentials:"omit",method:e,signal:a};"only-if-cached"!==n&&(d.cache=n),void 0!==i&&(d.body=i),void 0!==s&&(d.duplex=s),d.headers=this.createBareHeaders(r,u);let m=await ti(this.http+"?cache="+xs(r.toString()),d),f=await this.readBareResponse(m),$=new mn(hs.includes(f.status)?void 0:m.body,{status:f.status,statusText:f.statusText??void 0,headers:new Headers(f.headers)});return $.rawHeaders=f.headers,$.rawResponse=m,$}async readBareResponse(e){if(!e.ok)throw new ct(e.status,await e.json());let t=bs(e.headers),i={},r=t.get("x-bare-status");null!==r&&(i.status=Number.parseInt(r));let n=t.get("x-bare-status-text");null!==n&&(i.statusText=n);let s=t.get("x-bare-headers");return null!==s&&(i.headers=JSON.parse(s)),i}createBareHeaders(e,t,i=[],r=[],n=[]){let s=new Headers;for(let a of(s.set("x-bare-url",e.toString()),s.set("x-bare-headers",JSON.stringify(t)),i))s.append("x-bare-forward-headers",a);for(let o of r)s.append("x-bare-pass-headers",o);for(let c of n)s.append("x-bare-pass-status",c.toString());return _s(s),s}},ws="!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~";function vs(e){for(let t=0;t<e.length;t++){let i=e[t];if(!ws.includes(i))return!1}return!0}var Ss=[["v3",ai]];async function bn(e,t){let i=await ti(e,{signal:t});if(!i.ok)throw Error(`Unable to fetch Bare meta: ${i.status} ${await i.text()}`);return await i.json()}var Es=Object.getOwnPropertyDescriptor(me.prototype,"readyState").get,Cs=["ws:","wss:"],De=class{constructor(e,t){q(this,"manifest"),q(this,"client"),q(this,"server"),q(this,"working"),q(this,"onDemand"),q(this,"onDemandSignal"),this.server=new URL(e),!t||t instanceof AbortSignal?(this.onDemand=!0,this.onDemandSignal=t):(this.onDemand=!1,this.loadManifest(t))}loadManifest(e){return this.manifest=e,this.client=this.getClient(),this.client}demand(){return this.onDemand?(this.working||(this.working=bn(this.server,this.onDemandSignal).then(e=>this.loadManifest(e)).catch(e=>{throw delete this.working,e})),this.working):this.client}getClient(){for(let[e,t]of Ss)if(this.manifest.versions.includes(e))return new t(this.server);throw Error("Unable to find compatible client version. Starting from v2.0.0, @tomphttp/bare-client only supports Bare servers v3+. For more information, see https://github.com/tomphttp/bare-client/")}createWebSocket(e,t=[],i){if(!this.client)throw TypeError("You need to wait for the client to finish fetching the manifest before creating any WebSockets. Try caching the manifest data before making this request.");try{e=new URL(e)}catch{throw new DOMException(`Faiiled to construct 'WebSocket': The URL '${e}' is invalid.`)}if(!Cs.includes(e.protocol))throw new DOMException(`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${e.protocol}' is not allowed.`);for(let r of(Array.isArray(t)||(t=[t]),t=t.map(String)))if(!vs(r))throw new DOMException(`Failed to construct 'WebSocket': The subprotocol '${r}' is invalid.`);let n=this.client.connect(e,t,async()=>{let t="function"==typeof i.headers?await i.headers():i.headers||{},r=t instanceof Headers?Object.fromEntries(t):t;return r.Host=e.host,r.Pragma="no-cache",r["Cache-Control"]="no-cache",r.Upgrade="websocket",r.Connection="Upgrade",r},e=>{s=e.protocol,i.setCookiesCallback&&i.setCookiesCallback(e.setCookies)},e=>{a=e},i.webSocketImpl||me),s="",a=ge.CONNECTING,o=()=>{let e=Es.call(n);return e===ge.OPEN?a:e};i.readyStateHook?i.readyStateHook(n,o):Object.defineProperty(n,"readyState",{get:o,configurable:!0,enumerable:!0});let c=()=>{if(o()===ge.CONNECTING)return new DOMException("Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.")};i.sendErrorHook?i.sendErrorHook(n,c):n.send=function(...e){let t=c();if(t)throw t;ge.prototype.send.call(this,...e)},i.urlHook?i.urlHook(n,e):Object.defineProperty(n,"url",{get:()=>e.toString(),configurable:!0,enumerable:!0});let u=()=>s;return i.protocolHook?i.protocolHook(n,u):Object.defineProperty(n,"protocol",{get:u,configurable:!0,enumerable:!0}),n}async fetch(e,t){let i=ks(e)?new us(e,t):e,r=t?.headers||i.headers,n=r instanceof Headers?Object.fromEntries(r):r,s=t?.duplex,a=t?.body||i.body,o=new URL(i.url),c=await this.demand();for(let u=0;;u++){"host"in n?n.host=o.host:n.Host=o.host;let l=await c.request(i.method,n,a,o,i.cache,s,i.signal);l.finalURL=o.toString();let h=t?.redirect||i.redirect;if(!ps.includes(l.status))return l;switch(h){case"follow":{let p=l.headers.get("location");if(ls>u&&null!==p){o=new URL(p,o);continue}throw TypeError("Failed to fetch")}case"error":throw TypeError("Failed to fetch");case"manual":return l}}}};function ks(e){return"string"==typeof e||e instanceof URL}async function wn(e,t){let i=await bn(e,t);return new De(e,i)}var Hs=Qe(vn(),1),Nn=Qe(En(),1),{stringify:Os}=JSON;if(!String.prototype.repeat)throw Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var ht={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},ee=17,Vs={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:ee,ClassExpression:ee,FunctionExpression:ee,ObjectExpression:ee,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function Ce(e,t){let{generator:i}=e;if(e.write("("),null!=t&&t.length>0){i[t[0].type](t[0],e);let{length:r}=t;for(let n=1;n<r;n++){let s=t[n];e.write(", "),i[s.type](s,e)}}e.write(")")}function In(e,t,i,r){let n=e.expressionsPrecedence[t.type];if(n===ee)return!0;let s=e.expressionsPrecedence[i.type];return n!==s?!r&&15===n&&14===s&&"**"===i.operator||n<s:(13===n||14===n)&&("**"===t.operator&&"**"===i.operator?!r:13===n&&13===s&&("??"===t.operator||"??"===i.operator)||(r?ht[t.operator]<=ht[i.operator]:ht[t.operator]<ht[i.operator]))}function pt(e,t,i,r){let{generator:n}=e;In(e,t,i,r)?(e.write("("),n[t.type](t,e),e.write(")")):n[t.type](t,e)}function Fs(e,t,i,r){let n=t.split(` | |
| `),s=n.length-1;if(e.write(n[0].trim()),s>0){e.write(r);for(let a=1;a<s;a++)e.write(i+n[a].trim()+r);e.write(i+n[s].trim())}}function j(e,t,i,r){let{length:n}=t;for(let s=0;s<n;s++){let a=t[s];e.write(i),"L"===a.type[0]?e.write("// "+a.value.trim()+` | |
| `,a):(e.write("/*"),Fs(e,a.value,i,r),e.write("*/"+r))}}function Bs(e){let t=e;for(;null!=t;){let{type:i}=t;if("C"===i[0]&&"a"===i[1])return!0;if("M"!==i[0]||"e"!==i[1]||"m"!==i[2])return!1;t=t.object}}function ui(e,t){let{generator:i}=e,{declarations:r}=t;e.write(t.kind+" ");let{length:n}=r;if(n>0){i.VariableDeclarator(r[0],e);for(let s=1;s<n;s++)e.write(", "),i.VariableDeclarator(r[s],e)}}var Cn,kn,An,Ln,Pn,Rn,js,$s,li=class{constructor(e){let t=e??{};this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:{Program(e,t){let i=t.indent.repeat(t.indentLevel),{lineEnd:r,writeComments:n}=t;n&&null!=e.comments&&j(t,e.comments,i,r);let s=e.body,{length:a}=s;for(let o=0;o<a;o++){let c=s[o];n&&null!=c.comments&&j(t,c.comments,i,r),t.write(i),this[c.type](c,t),t.write(r)}n&&null!=e.trailingComments&&j(t,e.trailingComments,i,r)},BlockStatement:Rn=function(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t,s=i+t.indent;t.write("{");let a=e.body;if(null!=a&&a.length>0){t.write(r),n&&null!=e.comments&&j(t,e.comments,s,r);let{length:o}=a;for(let c=0;c<o;c++){let u=a[c];n&&null!=u.comments&&j(t,u.comments,s,r),t.write(s),this[u.type](u,t),t.write(r)}t.write(i)}else n&&null!=e.comments&&(t.write(r),j(t,e.comments,s,r),t.write(i));n&&null!=e.trailingComments&&j(t,e.trailingComments,s,r),t.write("}"),t.indentLevel--},ClassBody:Rn,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){let i=t.expressionsPrecedence[e.expression.type];i===ee||3===i&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t;t.indentLevel++;let s=i+t.indent,a=s+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+r);let{cases:o}=e,{length:c}=o;for(let u=0;u<c;u++){let l=o[u];n&&null!=l.comments&&j(t,l.comments,s,r),l.test?(t.write(s+"case "),this[l.test.type](l.test,t),t.write(":"+r)):t.write(s+"default:"+r);let{consequent:h}=l,{length:p}=h;for(let d=0;d<p;d++){let m=h[d];n&&null!=m.comments&&j(t,m.comments,a,r),t.write(a),this[m.type](m,t),t.write(r)}}t.indentLevel-=2,t.write(i+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){let{handler:i}=e;null==i.param?t.write(" catch "):(t.write(" catch ("),this[i.param.type](i.param,t),t.write(") ")),this[i.body.type](i.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),null!=e.init){let{init:i}=e;"V"===i.type[0]?ui(t,i):this[i.type](i,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:Cn=function(e,t){t.write(`for ${e.await?"await ":""}(`);let{left:i}=e;"V"===i.type[0]?ui(t,i):this[i.type](i,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:Cn,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:kn=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),Ce(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:kn,VariableDeclaration(e,t){ui(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");let{superClass:i}=e,{type:r}=i,n=t.expressionsPrecedence[r];("C"!==r[0]||"l"!==r[1]||"E"!==r[5])&&(n===ee||n<t.expressionsPrecedence.ClassExpression)?(t.write("("),this[e.superClass.type](i,t),t.write(")")):this[i.type](i,t),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");let{specifiers:i}=e,{length:r}=i,n=0;if(r>0){for(;n<r;){n>0&&t.write(", ");let s=i[n],a=s.type[6];if("D"===a)t.write(s.local.name,s),n++;else if("N"===a)t.write("* as "+s.local.name,s),n++;else break}if(n<r){for(t.write("{");;){let o=i[n],{name:c}=o.imported;if(t.write(c,o),c!==o.local.name&&t.write(" as "+o.local.name),++n<r)t.write(", ");else break}t.write("}")}t.write(" from ")}this.Literal(e.source,t),t.write(";")},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");let{specifiers:i}=e,{length:r}=i;if(r>0)for(let n=0;;){let s=i[n],{name:a}=s.local;if(t.write(a,s),a!==s.exported.name&&t.write(" as "+s.exported.name),++n<r)t.write(", ");else break}t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),t.write(";")}},ExportAllDeclaration(e,t){null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");let i=e.kind[0];("g"===i||"s"===i)&&t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),Ce(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);let{params:i}=e;null!=i&&(1===i.length&&"I"===i[0].type[0]?t.write(i[0].name,i[0]):Ce(t,e.params)),t.write(" => "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:An=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:An,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),pt(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:i,expressions:r}=e;t.write("`");let{length:n}=r;for(let s=0;s<n;s++){let a=r[s],o=i[s];t.write(o.value.raw,o),t.write("${"),this[a.type](a,t),t.write("}")}let c=i[i.length-1];t.write(c.value.raw,c),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){pt(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:Pn=function(e,t){if(t.write("["),e.elements.length>0){let{elements:i}=e,{length:r}=i;for(let n=0;;){let s=i[n];if(null!=s&&this[s.type](s,t),++n<r)t.write(", ");else{null==s&&t.write(", ");break}}}t.write("]")},ArrayPattern:Pn,ObjectExpression(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t,s=i+t.indent;if(t.write("{"),e.properties.length>0){t.write(r),n&&null!=e.comments&&j(t,e.comments,s,r);let a=","+r,{properties:o}=e,{length:c}=o;for(let u=0;;){let l=o[u];if(n&&null!=l.comments&&j(t,l.comments,s,r),t.write(s),this[l.type](l,t),++u<c)t.write(a);else break}t.write(r),n&&null!=e.trailingComments&&j(t,e.trailingComments,s,r),t.write(i+"}")}else n?null!=e.comments?(t.write(r),j(t,e.comments,s,r),null!=e.trailingComments&&j(t,e.trailingComments,s,r),t.write(i+"}")):null!=e.trailingComments?(t.write(r),j(t,e.trailingComments,s,r),t.write(i+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){if(e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),null==e.value){"F"!==e.key.type[0]&&t.write(";");return}t.write(" = "),this[e.value.type](e.value,t),t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){let{properties:i}=e,{length:r}=i;for(let n=0;this[i[n].type](i[n],t),++n<r;)t.write(", ")}t.write("}")},SequenceExpression(e,t){Ce(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){let{operator:i,argument:r,argument:{type:n}}=e;t.write(i);let s=In(t,r,e);!s&&(i.length>1||"U"===n[0]&&("n"===n[1]||"p"===n[1])&&r.prefix&&r.operator[0]===i&&("+"===i||"-"===i))&&t.write(" "),s?(t.write(i.length>1?" (":"("),this[n](r,t),t.write(")")):this[n](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:Ln=(e,t)=>{let i="in"===e.operator;i&&t.write("("),pt(t,e.left,e,!1),t.write(" "+e.operator+" "),pt(t,e.right,e,!0),i&&t.write(")")},LogicalExpression:Ln,ConditionalExpression(e,t){let{test:i}=e,r=t.expressionsPrecedence[i.type];r===ee||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[i.type](i,t),t.write(")")):this[i.type](i,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let i=t.expressionsPrecedence[e.callee.type];i===ee||i<t.expressionsPrecedence.CallExpression||Bs(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),Ce(t,e.arguments)},CallExpression(e,t){let i=t.expressionsPrecedence[e.callee.type];i===ee||i<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),Ce(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){let i=t.expressionsPrecedence[e.object.type];i===ee||i<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(Os(e.value),e)},RegExpLiteral(e,t){let{regex:i}=e;t.write(`/${i.pattern}/${i.flags}`,e)}},this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:Vs,this.indent=null!=t.indent?t.indent:" ",this.lineEnd=null!=t.lineEnd?t.lineEnd:` | |
| `,this.indentLevel=null!=t.startingIndentLevel?t.startingIndentLevel:0,this.writeComments=!!t.comments&&t.comments,null!=t.sourceMap&&(this.write=null==t.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=t.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split(` | |
| `).length-1,this.mapping={original:null,generated:this,name:void 0,source:t.sourceMap.file||t.sourceMap._file})}write(e){this.output+=e}writeToStream(e){this.output.write(e)}writeAndMap(e,t){this.output+=e,this.map(e,t)}writeToStreamAndMap(e,t){this.output.write(e),this.map(e,t)}map(e,t){if(null!=t){let{type:i}=t;if("L"===i[0]&&"n"===i[2]){this.column=0,this.line++;return}if(null!=t.loc){let{mapping:r}=this;r.original=t.loc.start,r.name=t.name,this.sourceMap.addMapping(r)}if("T"===i[0]&&"E"===i[8]||"L"===i[0]&&"i"===i[1]&&"string"==typeof t.value){let{length:n}=e,{column:s,line:a}=this;for(let o=0;o<n;o++)e[o]===` | |
| `?(s=0,a++):s++;this.column=s,this.line=a;return}}let{length:c}=e,{lineEnd:u}=this;c>0&&(this.lineEndSize>0&&(1===u.length?e[c-1]===u:e.endsWith(u))?(this.line+=this.lineEndSize,this.column=0):this.column+=c)}toString(){return this.output}};function Tn(e,t){let i=new li(t);return i.generator[e.type](e,i),i.output}var hi,Mn=class{constructor(e){this.mime=br,this.idb=Je,this.path=Us,this.acorn={parse:dn},this.bare={createBareClient:wn,BareClient:De},this.base64={encode:btoa,decode:atob},this.estree={generate:Tn},this.cookie=Hs,this.setCookieParser=Nn.parse,this.ctx=e}};function pi(e,t,i,r,n="",s=!1,a=""){if(self.__dynamic$config)var o="development"==self.__dynamic$config.mode;else var o=!1;if(s){var c=[{nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:e+(o?"?"+Math.floor(89999*Math.random()+1e4):"")},]},{nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:t+(o?"?"+Math.floor(89999*Math.random()+1e4):"")},]},];return this.ctx.config.assets.files.inject&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:this.ctx.config.assets.files.inject+(o?"?"+Math.floor(89999*Math.random()+1e4):"")},]}),r&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(`self.__dynamic$cookies = atob("${btoa(r)}");document.currentScript?.remove();`)},]}),n&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(n+";document.currentScript?.remove();")},]}),a&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(a+";document.currentScript?.remove();")},]}),c}var u=[`<script src="${t+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}"></script>`,`<script src="${e+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}"></script>`,];return this.ctx.config.assets.files.inject&&u.unshift(`<script src="${this.ctx.config.assets.files.inject+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}"></script>`),r&&u.unshift(`<script src="${"data:application/javascript;base64,"+btoa(`self.__dynamic$cookies = atob("${btoa(r)}");document.currentScript?.remove();`)}"></script>`),n&&u.unshift(`<script src="${"data:application/javascript;base64,"+btoa(n+";document.currentScript?.remove();")}"></script>`),a&&u.unshift(`<script src="${"data:application/javascript;base64,"+btoa(a+";document.currentScript?.remove();")}"></script>`),u}var Ve=class{constructor(e){this.generateHead=pi,this.config=[{elements:"all",tags:["style"],action:"css"},{elements:["script","iframe","embed","input","track","media","source","img","a","link","area","form","object",],tags:["src","href","action","data"],action:"url"},{elements:["source","img"],tags:["srcset"],action:"srcset"},{elements:["script","link"],tags:["integrity"],action:"rewrite",new:"nointegrity"},{elements:["script","link"],tags:["nonce"],action:"rewrite",new:"nononce"},{elements:["meta"],tags:["http-equiv"],action:"http-equiv"},{elements:["iframe"],tags:["srcdoc"],action:"html"},{elements:["link"],tags:["imagesrcset"],action:"srcset"},{elements:"all",tags:["onclick"],action:"js"},],this.ctx=e.ctx}generateRedirect(e){return` | |
| <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"> | |
| <TITLE>301 Moved</TITLE></HEAD><BODY> | |
| <H1>301 Moved</H1> | |
| The document has moved | |
| <A HREF="${e}">here</A>. | |
| </BODY></HTML> | |
| `}iterate(e,t){!function i(r=e){for(var n=0;n<r.childNodes.length;n++)t(r.childNodes[n]),r.childNodes[n].childNodes&&r.childNodes[n].childNodes.length&&i(r.childNodes[n])}(e)}rewrite(e,t,i=[]){return Array.isArray(e)&&(e=e[0]),e&&((e=e.toString()).match(/<\!DOCTYPE[^>]*>/gi)||(e="<!DOCTYPE html>"+e),e.replace(/(<!DOCTYPE html>|<html(.*?)>)/im,`$1${i.join("")} | |
| `).replace(/<(script|link)\b[^>]*>/g,(e,t)=>e.replace(/\snonce\s*=\s*"[^"]*"/,e=>e.replace("nonce","nononce")).replace(/\sintegrity\s*=\s*"[^"]*"/,e=>e.replace("integrity","nointegrity"))))}},Fe=class{constructor(e){this.ctx=e.ctx}rewrite(e,t,i={}){return e&&e.toString().replace(/(?:@import\s?|url\(?)['"]?(.*?)['")]/gim,(...e)=>{try{return e[0].replace(e[3],this.ctx.url.encode(e[3],t))}catch{return e[0]}})}};function fi(e,t){"object"==typeof e&&t&&function e(t,i,r){if(!("object"!=typeof t||!r)){for(let n in t.parent=i,r(t,i,r),t)"parent"!==n&&(Array.isArray(t[n])?t[n].forEach(i=>{i&&e(i,t,r)}):t[n]&&e(t[n],t,r));"function"==typeof t.iterateEnd&&t.iterateEnd()}}(e,null,t)}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,(e,n=null)=>{this.emit(e,e.type,n,i,r,t)}),e=this.ctx.modules.estree.generate(n)}function mi(e,t={}){if("string"!=typeof e.name)return!1;if(!0!==e.__dynamic){if(!["parent","top","postMessage","opener","window","self","globalThis","parent","location",].includes(e.name))return!1;if(!("CallExpression"==t.type&&t.callee==e)&&!("MemberExpression"==t.type&&t.object!==e&&!["document","window","self","globalThis"].includes(t.object.name))&&"FunctionDeclaration"!=t.type&&"VariableDeclaration"!=t.type&&!("VariableDeclarator"==t.type&&t.id==e)&&"LabeledStatement"!=t.type&&!("Property"==t.type&&t.key==e)&&!("ArrowFunctionExpression"==t.type&&t.params.includes(e))&&!("FunctionExpression"==t.type&&t.params.includes(e))&&!("FunctionExpression"==t.type&&t.id==e)&&!("CatchClause"==t.type&&t.param==e)&&"ContinueStatement"!=t.type&&"BreakStatement"!=t.type&&!("AssignmentExpression"==t.type&&t.left==e)&&"UpdateExpression"!=t.type&&"UpdateExpression"!=t.type&&!("ForInStatement"==t.type&&t.left==e)&&!("MethodDefinition"==t.type&&t.key==e)&&!("AssignmentPattern"==t.type&&t.left==e)&&"NewExpression"!=t.type&&t?.parent?.type!="NewExpression"&&!("UnaryExpression"==t.type&&t.argument==e)&&!("Property"==t.type&&!0==t.shorthand&&t.value==e)){if("__dynamic"==e.name)return e.name="undefined";if("eval"==e.name&&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(([t,i])=>e[t]=i)}function yi(e,t={},i={}){if(e.object.name+="","AssignmentExpression"!==t.type&&t.left!==e){if("postMessage"==e.property.value&&"CallExpression"==t.type&&t.callee==e||"postMessage"==e.object.value&&"CallExpression"==t.type&&t.callee==e)return ke(e,t);if(("postMessage"==e.property.name||"postMessage"==e.object.name)&&"Super"!==e.object.type){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},],"CallExpression"==t.type&&(t.arguments=t.arguments);return}}if("eval"==e.property.name&&(e.property.name="__dynamic$eval"),"eval"==e.object.name&&(e.object.name="__dynamic$eval"),"worker"!==i.destination&&("window"==e.property.name&&"top"!=e.object.name&&("self"==e.object.name||"globalThis"==e.object.name)&&"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&(e.property.name="__dynamic$window"),"top"==e.object.name&&"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&(e.object.name="top.__dynamic$window"),"top"==e.property.name&&("self"==e.object.name||"globalThis"==e.object.name)&&"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&(e.property.name="top.__dynamic$window"),"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&("window"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"parent"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"__dynamic"==e.property.name&&(e.property.name="undefined"),"self"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"document"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"globalThis"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0})),"location"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"location"==e.property.name&&"BinaryExpression"!==t.type&&"AssignmentExpression"!==t.type)){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&&"worker"!==i.destination&&(e.property={type:"CallExpression",callee:{type:"Identifier",name:"dp$"},arguments:[e.property],__dynamic:!0})}function gi(e,t={}){if(!(e.value instanceof String)||("__dynamic"==e.value&&(e.value="undefined"),!["location","parent","top","postMessage"].includes(e.value)))return!1;"postMessage"==e.value&&"AssignmentExpression"!=t.type&&t.left!=e&&ke(e,t),"location"==e.value&&(e.value="__dynamic$location"),"__dynamic"==e.value&&(e.value="undefined"),"eval"==e.value&&(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(!("AssignmentExpression"==t.type&&t.left==e)){if("Identifier"==e.callee.type){if("postMessage"==e.callee.name){e.callee.type="CallExpression",e.callee.callee={type:"Identifier",name:"__dynamic$message"},e.callee.arguments=[{type:"Identifier",name:"undefined"},{type:"Identifier",name:"self",__dynamic:!0},];return}"eval"==e.callee.name&&ft(e)}if("MemberExpression"==e.callee.type){if("postMessage"==e.callee.property.name&&"Super"!==e.callee.object.type){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}"eval"==e.callee.object.name&&ft(e)}e.arguments.length>0&&e.arguments.length}}function _i(e,t={}){if("Identifier"==e.left.type&&!0!==e.left.__dynamic&&"location"==e.left.name){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={}){"ObjectPattern"!=e.parent.type&&e.parent?.parent?.type!="AssignmentExpression"&&(e.shorthand=!1)}function wi(e,t={},i={},r={}){if("Literal"==e.type&&("ImportDeclaration"==t.type||"ExportNamedDeclaration"==t.type||"ExportAllDeclaration"==t.type)){var n=e.value+"";e.value=i.url.encode(e.value,r.meta),e.raw=e.raw.replace(n,e.value),e.__dynamic=!0}"ImportExpression"==e.type&&(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("Identifier"!==e.id.type)return!1;!0!==e.id.__dynamic&&e.id.name}function Ws(e,t,i={},r={},n={},s={}){if(!e.__dynamic){switch(t){case"Identifier":mi(e,i);break;case"MemberExpression":yi(e,i,s);break;case"Literal":gi(e,i);break;case"CallExpression":xi(e,i);break;case"AssignmentExpression":_i(e,i);break;case"ThisExpression":case"CatchClause":break;case"Property":bi(e,i);break;case"VariableDeclarator":vi(e,i)}wi(e,i,r,n)}}var Dn,Be,$e,On,Si,Vn=class{constructor(e){this.ctx=e,this.html=new Ve(this),this.srcset={encode:(e,t)=>e&&e.toString()?e.split(", ").map(e=>e.split(" ").map((e,i)=>0==i?t.url.encode(e,t.baseURL||t.meta):e).join(" ")).join(", "):e,decode:e=>e},this.js=new class{constructor(e){this.iterate=fi,this.process=di,this.emit=Ws,this.ctx=e.ctx}rewrite(e,t={},i=!0,r={}){if(!e||e instanceof Object||(e=e.toString()).includes("/* dynamic.js */"))return e;e=`/* dynamic.js */ | |
| ${e}`;try{try{e=this.process(e,t,{module:!0,...this.ctx},r)}catch{e=this.process(e,t,{module:!1,...this.ctx},r)}}catch{}return i&&(e=` | |
| if (typeof self !== undefined && typeof self.importScripts == 'function' && typeof self.__dynamic == 'undefined') importScripts('/assets/dyn/config.js?v=10-02-2024', '/assets/dyn/handler.js?v=10-02-2024'+Math.floor(Math.random()*(99999-10000)+10000)); | |
| ${e}`),e}}(this),this.css=new Fe(this),this.man=new class{constructor(e){this.config={rewrite:[["icons","urlit"],["name"," - Dynamic"],["start_url","url"],["scope","url"],["short_name"," - Dynamic"],["shortcuts","urlev"],],delete:["serviceworker"]},this.ctx=e.ctx}rewrite(e,t){let i=JSON.parse(e);for(let r in this.config)if("rewrite"==r)for(var[n,s]of this.config[r]){if("urlit"==s&&i[n]){for(var a=0;a<i[n].length;a++)i[n][a].src=this.ctx.url.encode(i[n][a].src,t);continue}if("urlev"==s&&i[n]){for(var a=0;a<i[n].length;a++)i[n][a].url=this.ctx.url.encode(i[n][a].url,t);continue}if("url"==s&&i[n]){i[n]=this.ctx.url.encode(i[n],t);continue}"url"==s||"urlit"==s||"urlev"==s||(i[n]=i[n]+s)}else if("delete"==r)for(var n of this.config[r])i[n]&&delete i[n];return JSON.stringify(i)}}(this)}};async function Fn(e){var t;if("GET"===e.method){var i=new URL(e.url);t=i.searchParams.get("url")}else{if("POST"!==e.method)return new Response("Error: Invalid method",{status:405});if(null===(t=(await e.formData()).get("url"))){var i=new URL(e.url);t=i.searchParams.get("url")}if(!t)return new Response("Error: Invalid or Unfound url",{status:400})}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 r in e){if(-1!==this.ctx.headers.csp.indexOf(r.toLowerCase())&&delete e[r],"location"==r.toLowerCase()){e[r]=this.ctx.url.encode(e[r],t);continue}if("set-cookie"===r.toLowerCase()){for await(var n of(Array.isArray(e[r])?e[r]=e[r].map(e=>this.ctx.modules.setCookieParser(e,{decodeValues:!1})[0]):e[r]=this.ctx.modules.setCookieParser(e[r],{decodeValues:!1}),e[r]))await i.set(t.host,this.ctx.modules.cookie.serialize(n.name,n.value,{...n,encode:e=>e}));delete e[r];continue}}return new Headers(e)}function ki(e,t,i,r){let{referrer:n}=i;if(["origin","Origin","host","Host","referer","Referer"].forEach(t=>{e[t]&&delete e[t]}),e.Origin=`${t.protocol}//${t.host}${t.port?":"+t.port:""}`,e.Host=t.host+(t.port?":"+t.port:""),e.Referer=t.href,"strict-origin-when-cross-origin"==i.referrerPolicy&&(e.Referer=`${t.protocol}//${t.host}/`),"origin"==i.referrerPolicy&&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}e.Cookie=r}if(n&&n!=location.origin+"/")try{e.Referer=this.ctx.url.decode(n),"strict-origin-when-cross-origin"==i.referrerPolicy&&(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,"strict-origin-when-cross-origin"==i.referrerPolicy&&(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","navigate"==i.mode&&(e["sec-fetch-site"]="same-origin"),e["sec-fetch-user"]="?1",new Headers(e)}function Ai(e){return Object.assign(Object.create(Object.getPrototypeOf(e)),e)}function Li(e){try{if(new new Proxy(e,{construct:()=>({})}),!Object.getOwnPropertyNames(e).includes("arguments"))throw 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("development"!==self.__dynamic$config.mode){var i=await caches.open("__dynamic$files");t=i&&await i.match(e.url)||await fetch(e)}else t=await fetch(e);let r=await t.blob();return(e.url.startsWith(location.origin+"/assets/dyn/config.js?v=10-02-2024")||e.url.startsWith(location.origin+"/assets/dyn/client.js?v=10-02-2024"))&&(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(e){this.rawHeaders={},this.headers=new Headers({}),this.status=200,this.statusText="OK",this.body=e}async blob(){return this.body}async text(){return await this.body.text()}};function Ti(e){var t=this.ctx.encoding;return t="object"==typeof this.ctx.config.encoding?{...t,...this.ctx.encoding}:{...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,$n=class{constructor(e){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=e}};function Di(e,t){if(!e)return e;if((e=new String(e).toString()).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 i=new URL(e);return`javascript:__dynamic$eval(${JSON.stringify(i.pathname)})`}if(e.match(this.ctx.regex.WeirdRegex)){var r=this.ctx.regex.WeirdRegex.exec(e);r&&(e=r[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 r=this.ctx.regex.DataRegex.exec(e);if(r){var[n,s,a,o,c]=r;c="base64"==o?this.ctx.modules.base64.atob(decodeURIComponent(c)):decodeURIComponent(c),s&&("text/html"==s?c=this.ctx.rewrite.html.rewrite(c,t,this.ctx.rewrite.html.generateHead(location.origin+"/assets/dyn/client.js?v=10-02-2024",location.origin+"/assets/dyn/config.js?v=10-02-2024","",`window.__dynamic$url = "${t.href}"; window.__dynamic$parentURL = "${location.href}";`)):"text/css"==s?c=this.ctx.rewrite.css.rewrite(c,t):("text/javascript"==s||"application/javascript"==s)&&(c=this.ctx.rewrite.js.rewrite(c,t))),c="base64"==o?this.ctx.modules.base64.btoa(c):encodeURIComponent(c),e=a?o?`data:${s};${a};${o},${c}`:`data:${s};${a},${c}`:o?`data:${s};${o},${c}`:`data:${s},${c}`}}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||("null"==location.origin?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()).match(this.ctx.regex.BypassRegex))return e;var t=e.indexOf(this.ctx.config.prefix);if(-1==t)return e;try{if(t=(e=new URL(e,new URL(self.location.origin)).href).indexOf(this.ctx.config.prefix),"about:blank"==e.slice(t+this.ctx.config.prefix.length).trim())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)}var Vi,qs,Gs,zs,jn=class{constructor(e){this.encode=Di,this.decode=Oi,this.ctx=e}},Ue=class{constructor(e){this.BypassRegex=/^(#|about:|mailto:|blob:|javascript:)/g,this.DataRegex=/^data:([a-z\/A-Z0-9\-\+]+);?(charset\=[\-A-Za-z0-9]+)?;?(base64)?[;,]*(.*)/g,this.WeirdRegex=/^([\/A-Za-z0-9\-%]+)(http[s]?:\/\/.*)/g,this.ctx=e}};function Fi(e){for(var t in e=new URL(e.href))this.ctx.meta[t]=e[t];return!0}var Bi,He=class{constructor(){}},Un=class extends He{constructor(e){super(),this.load=Fi,this.ctx=e}},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"text/css"===(this.ctx.modules.mime.contentType(t||e.pathname)||"text/css").split(";")[0]}function ji(e,t="",i=""){let r;return t||this.ctx.modules.mime.contentType(e.pathname)!=e.pathname?"text/html"===(this.ctx.modules.mime.contentType(t||e.pathname)||"text/html").split(";")[0]||i.trim().match(/\<\!(doctype|DOCTYPE) html\>/g):i.trim().match(/<(html|script|body)[^>]*>/g)&&(r=i.trim().indexOf((i.trim().match(/<(html|script|body)[^>]*>/g)||[])[0]))>-1&&r<100}function Ui(e,t=""){if(e.pathname.endsWith(".js")&&"text/plain"==t)return!0;var i=(this.ctx.modules.mime.contentType(t||e.pathname)||"application/javascript").split(";")[0];return"text/javascript"==i||"application/javascript"==i||"application/x-javascript"==i}var Hi,Wn=class{constructor(e){this.html=ji,this.js=Ui,this.css=$i,this.ctx=e}};function dt(e,t=!0){let i=t=>{let i=e.__dynamic.util.clone(t);for(var r=0;r<t.length;r++)e.__dynamic.define(i,r,{value:(e.top.__dynamic$location||e.__dynamic$location).origin,configurable:!0,enumerable:!0,writable:!1});return e.__dynamic.define(i,"length",{value:t.length,configurable:!0,enumerable:!0,writable:!1}),i},r=e.location.ancestorOrigins||[],n=[e.Window,e.Location,e.WorkerLocation,e.Document].filter(e=>e);[...n,e.Object].forEach(e=>{delete e.prototype.__dynamic$location});let s={get:()=>e.__dynamic.location,set(t){if(t instanceof e.Location)return e.__dynamic.location=t;e.__dynamic.location.href=t},configurable:!0};try{var a=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 a=new URL("about:blank")}return e.__dynamic.property=a,e.__dynamic.meta.load(a),e.__dynamic.location=e.__dynamic.util.clone(e.location),["href","host","hash","origin","hostname","port","pathname","protocol","search",].forEach(t=>{e.__dynamic.define(e.__dynamic.location,t,{get:()=>"search"==t&&e.location[t]+(e.location.search?a.search.replace("?","&"):a.search)||("hash"==t?location[t]:a[t]),set(i){"href"===t?e.location[t]=e.__dynamic.url.encode(e.__dynamic.meta.href.replace(a[t],i),a):e.location[t]=i.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(t){return this===e||this===e.__dynamic$window||this===e.document||this===e.__dynamic$document?this.__dynamic.location.href=t:this.location=t},configurable:!0}),["assign","replace","toString","reload"].forEach(t=>{e.__dynamic.define(e.__dynamic.location,t,{get:()=>"toString"==t?()=>a.href:new e.__dynamic.Function("arg",`return window.location.${t}(arg?${"reload"!==t&&"toString"!==t?"(self.__dynamic).url.encode(arg, new URL('"+a.href+"'))":"arg"}:null)`),set:()=>null})}),r.length&&e.__dynamic.define(e.__dynamic.location,"ancestorOrigins",{get:()=>i(r),set:()=>null}),n.forEach(t=>{e.__dynamic.define(t.prototype,"__dynamic$location",s)}),e.__dynamic.hashchange||(e.__dynamic.hashchange=(e.addEventListener("hashchange",e=>{}),!0)),e.__dynamic.location}function mt(e){e.__dynamic$get=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:"function"==typeof t&&"__d$Send"==t.name?e.__dynamic$message(t.target,e):t}catch{return t}},e.__dynamic$property=e=>"string"!=typeof e?e:"location"==e?"__dynamic$location":"eval"==e?"__dynamic$eval":e,e.__dynamic$set=(t,i)=>t?e.__dynamic.url.encode(e.__dynamic.meta.href.replace(e.__dynamic.property.href,i),e.__dynamic.property):i,e.__dynamic$var=(e,t)=>window[t]=e,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=t=>new Proxy(t,{get(i,r){let n=i[r];return"location"==r?t.defaultView?t.defaultView.__dynamic$location:e.__dynamic$location:"documentURI"==r&&t.defaultView||"baseURI"==r&&t.defaultView?t.defaultView.__dynamic.location.toString():n&&("function"==typeof n&&n.toString==e.Object.toString?new Proxy(n,{apply:(i,r,s)=>((t.defaultView&&s[0]==t.defaultView.__dynamic$document||s[0]==e.__dynamic$document)&&(s[0]=t),n.apply(t,s))}):n)},set(e,i,r){try{try{t.defaultView.__dynamic?t.defaultView.__dynamic.Reflect.set(e,i,r):e[i]=r}catch{}return r||e[i]||!0}catch{return r||e[i]||!0}}}),e.__dynamic.util.CreateWindowProxy=t=>new Proxy(t,{get(i,r){let n=e.__dynamic.Reflect.get(i,r);if(Object.getOwnPropertyDescriptor(i,r)){var s=Object.getOwnPropertyDescriptor(i,r);if(s?.configurable===!1&&s?.writable===!1&&s?.hasOwnProperty("enumerable"))return s?.value||s?.get?.call(i)}return"__dynamic$self"==r?t.window:"location"==r?t.__dynamic$location:"parent"==r?t.parent.__dynamic$window||t.parent:"top"==r?t.top.__dynamic?t.top.__dynamic$window:t.parent.__dynamic$window:"self"==r||"globalThis"==r?t.__dynamic$window:n&&("function"==typeof n&&n.toString==e.Object.toString?new Proxy(n,{apply:(e,i,r)=>Reflect.apply(e,t,r)}):n)},set(i,r,n){try{var s=Object.getOwnPropertyDescriptor(i,r);if(s?.writable===!1&&s?.enumerable===!1)return!1;if(r.constructor==e.Symbol)return Reflect.set(i,r,n),i[r];if(i.hasOwnProperty("undefined")&&i[r]+""==r)return i[r]||n||!0;if("location"==r)return t.__dynamic$location=n;if(i.hasOwnProperty(r)&&!i.propertyIsEnumerable(r)&&!s?.writable)return i[r];try{t.__dynamic?t.__dynamic.Reflect.set(i,r,n):i[r]=n}catch{}return i[r]||!0}catch{return i[r]||!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=(t,i)=>{if(typeof e.DOMParser>"u"||!t)return t;var r=new e.DOMParser().parseFromString(t.toString(),"text/html").documentElement;return r.querySelectorAll("script").forEach(t=>{!t.type||t.type&&"text/javascript"!==t.type&&"application/javascript"!==t.type&&"application/x-javascript"!==t.type?t.src&&(t.src=e.__dynamic.url.encode(t.getAttribute("src"),i)):t.innerHTML&&(t.innerHTML=e.__dynamic.js.encode(t.innerHTML,{type:"script"},i,{}))}),r.querySelectorAll("link").forEach(t=>{t.href&&"stylesheet"!==t.getAttribute("rel")&&(t.href=e.__dynamic.url.encode(t.getAttribute("href"),i))}),r.querySelectorAll("img").forEach(t=>{t.src&&(t.src=e.__dynamic.url.encode(t.getAttribute("src"),i)),t.srcset&&(t.srcset=e.__dynamic.rewrite.srcset.encode(t.getAttribute("srcset"),e.__dynamic))}),r.querySelectorAll("a").forEach(t=>{t.href&&(t.href=e.__dynamic.url.encode(t.getAttribute("href"),i))}),r.querySelectorAll("style").forEach(t=>{t.innerHTML&&(t.innerHTML=e.__dynamic.rewrite.css.rewrite(t.innerHTML,i))}),r.outerHTML}}function qi(e){let t=e=>new DOMParser().parseFromString(e,"text/html").body.innerHTML;if(e.__dynamic.elements.config.forEach(t=>{t.elements.forEach(i=>{t.tags.forEach(r=>{var n=Object.getOwnPropertyDescriptor(i.prototype,r);n||(n=Object.getOwnPropertyDescriptor(HTMLElement.prototype,r)),typeof i.prototype.setAttribute.__dynamic$target>"u"&&(i.prototype.setAttribute=e.__dynamic.wrap(i.prototype.setAttribute,function(t,...i){return this instanceof HTMLLinkElement&&e.__dynamic$icon&&"href"==i[0].toLowerCase()&&("icon"==this.rel||"shortcut icon"==this.rel)?(i[1]=e.__dynamic$icon,Reflect.apply(t,this,i)):-1==e.__dynamic.elements.attributes.indexOf(i[0].toLowerCase())?Reflect.apply(t,this,i):"srcset"==i[0].toLowerCase()||"imagesrcset"==i[0].toLowerCase()?(this.dataset[`dynamic_${i[0]}`]=i[1],i[1]=e.__dynamic.rewrite.srcset.encode(i[1],e.__dynamic),Reflect.apply(t,this,i)):"integrity"==i[0].toLowerCase()||"nonce"==i[0].toLowerCase()?(this.dataset[`dynamic_${i[0]}`]=i[1],this.removeAttribute(i[0]),Reflect.apply(t,this,["nointegrity",i[1]])):(this.dataset[`dynamic_${i[0]}`]=i[1],i[1]=e.__dynamic.url.encode(i[1],e.__dynamic.baseURL||e.__dynamic.meta),Reflect.apply(t,this,i))},"setAttribute"),i.prototype.setAttributeNS=e.__dynamic.wrap(i.prototype.setAttributeNS,function(t,...i){return this instanceof HTMLLinkElement&&e.__dynamic$icon&&"href"==i[1].toLowerCase()&&("icon"==this.rel||"shortcut icon"==this.rel)?(i[2]=e.__dynamic$icon,Reflect.apply(t,this,i)):-1==e.__dynamic.elements.attributes.indexOf(i[1].toLowerCase())?Reflect.apply(t,this,i):"srcset"==i[1].toLowerCase()||"imagesrcset"==i[1].toLowerCase()?(this.dataset[`dynamic_${i[1]}`]=i[2],i[2]=e.__dynamic.rewrite.srcset.encode(i[2],e.__dynamic),Reflect.apply(t,this,i)):"integrity"==i[1].toLowerCase()||"nonce"==i[1].toLowerCase()?(this.dataset[`dynamic_${i[1]}`]=i[2],this.removeAttribute(i[1]),Reflect.apply(t,this,["nointegrity",i[2]])):(this.dataset[`dynamic_${i[1]}`]=i[2],i[2]=e.__dynamic.url.encode(i[2],e.__dynamic.baseURL||e.__dynamic.meta),Reflect.apply(t,this,i))},"setAttributeNS"),i.prototype.getAttribute=e.__dynamic.wrap(i.prototype.getAttribute,function(e,...t){return this.dataset[`dynamic_${t[0]}`]?this.dataset[`dynamic_${t[0]}`]:Reflect.apply(e,this,t)},"getAttribute"),i.prototype.getAttributeNS=e.__dynamic.wrap(i.prototype.getAttributeNS,function(e,...t){return this.dataset[`dynamic_${t[1]}`]?this.dataset[`dynamic_${t[1]}`]:Reflect.apply(e,this,t)},"getAttributeNS")),e.__dynamic.define(i.prototype,r,{get(){if("window"==t.action){let i=e.__dynamic.elements.contentWindow.get.call(this),s=!0;try{i.location.href}catch{s=!1}if(s&&(i.__dynamic||e.__dynamic.elements.client(i,e.__dynamic$config,decodeURIComponent(this.src))),"contentDocument"==r)return i.document;if("contentWindow"==r)return s&&i.__dynamic$window||i}if("css"==t.action)return n.get.call(this);try{return e.__dynamic.url.decode(n.get.call(this))}catch{}return n.get.call(this)},set(i){return i&&"string"==typeof i&&(i=i.toString()),"href"==r&&this instanceof HTMLLinkElement&&e.__dynamic$icon&&("icon"==this.rel||"shortcut icon"==this.rel)&&(this.dataset[`dynamic_${r}`]=i,i=e.__dynamic$icon),"html"==t.action?(Promise.resolve(e.__dynamic.createBlobHandler(new Blob([i],{type:"text/html"}),this,i)).then(e=>{this.setAttribute(r,e)}),i):("srcset"==t.action&&(i=e.__dynamic.rewrite.srcset.encode(i,e.__dynamic)),"rewrite"==t.action?(this.dataset[`dynamic_${r}`]=i,this.removeAttribute(r),this.setAttribute(t.new,i)):("css"==t.action&&(i=e.__dynamic.rewrite.css.rewrite(i,e.__dynamic.meta)),"url"==t.action&&(i=e.__dynamic.url.encode(i,e.__dynamic.baseURL||e.__dynamic.meta)),this.dataset[`dynamic_${r}`]=i,n.set.call(this,i)))}})})})}),["innerHTML","outerHTML"].forEach(i=>{e.__dynamic.define(e.HTMLElement.prototype,i,{get(){return(this["__"+i]||e.__dynamic.elements[i].get.call(this)).toString()},set(r){return this["__"+i]=t(r),this instanceof e.HTMLTextAreaElement?e.__dynamic.elements[i].set.call(this,r):this instanceof e.HTMLScriptElement?e.__dynamic.elements[i].set.call(this,e.__dynamic.rewrite.js.rewrite(r,{type:"script"})):this instanceof e.HTMLStyleElement?e.__dynamic.elements[i].set.call(this,e.__dynamic.rewrite.css.rewrite(r,e.__dynamic.meta)):e.__dynamic.elements[i].set.call(this,e.__dynamic.rewrite.dom(r,e.__dynamic.meta))}})}),["MutationObserver","ResizeObserver","IntersectionObserver"].forEach(t=>{e[t].prototype.observe=e.__dynamic.wrap(e[t].prototype.observe,function(t,...i){return i[0]==e.__dynamic$document&&(i[0]=e.document),Reflect.apply(t,this,i)},t+".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(e){this.__toString=e}}}),e.HTMLElement.prototype.insertAdjacentHTML=e.__dynamic.wrap(e.HTMLElement.prototype.insertAdjacentHTML,function(t,...i){return this instanceof e.HTMLStyleElement?Reflect.apply(t,this,[i[0],e.__dynamic.rewrite.css.rewrite(i[1],e.__dynamic.meta),]):this instanceof e.HTMLScriptElement?Reflect.apply(t,this,[i[0],e.__dynamic.rewrite.js.rewrite(i[1],{type:"script"},!1,e.__dynamic),]):this instanceof e.HTMLTextAreaElement?Reflect.apply(t,this,i):Reflect.apply(t,this,[i[0],e.__dynamic.rewrite.html.rewrite(i[1],e.__dynamic.meta),])},"insertAdjacentHTML"),[[e.Node,"textContent"],[e.HTMLElement,"innerText"],].forEach(([t,i])=>{var r=Object.getOwnPropertyDescriptor(t.prototype,i);function n(){return this["__"+i]||r?.get&&r.get.call(this)}e.__dynamic.define(e.HTMLStyleElement.prototype,i,{get:n,set(t){return this["__"+i]=t,r?.set&&r.set.call(this,e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}}),e.__dynamic.define(e.HTMLScriptElement.prototype,i,{get:n,set(t){return this["__"+i]=t,null!==this.type||"application/javascript"!==this.type||"text/javascript"!==this.type||"application/x-javascript"!==this.type?r?.set&&r.set.call(this,t):r?.set&&r.set.call(this,e.__dynamic.rewrite.js.rewrite(t,{type:"script"},!1,e.__dynamic))}})}),e.Text.prototype.toString=function(){return this.textContent},e.document.createElement=e.__dynamic.wrap(e.document.createElement,function(e,...t){var i=Reflect.apply(e,this,t);return i.rewritten=!0,"iframe"==t[0].toLowerCase()&&(i.src="about:blank"),i},"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(t){return this.__value=t,"href"==this.name||"src"==this.name?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.url.encode(t,e.__dynamic.meta)):"style"==this.name?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta)):"onclick"==this.name?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.rewrite.js.rewrite(t,{type:"script"},!1,e.__dynamic)):e.__dynamic.elements.attrValue.set.call(this,t)}})}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 s=e.__dynamic.rewrite.js.rewrite(n.responseText,{type:"worker"},!0),a=new Blob([s],{type:"application/javascript"});r[0]=URL.createObjectURL(a)}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;i<e.length;i++){let r=e[i];if(Ks.includes(r)&&!Xs.includes(r))t+=r;else{let n=r.charCodeAt();t+="%"+n.toString(16).padStart(2,0)}}return t}function Ki(e){let t=()=>e.location.protocol.replace("http","ws")+"//"+new URL(e.__dynamic$config.bare.path+"/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 t=i.get.call(this);return e.__dynamic.url.decode(t)},set:e=>!1}),e.WebSocket=e.__dynamic.wrap(e.WebSocket,(i,...r)=>{console.log(r);let n=new URL(r[0]),s={remote:{host:n.hostname,port:n.port||("wss:"===n.protocol?"443":"80"),path:n.pathname+n.search,protocol:n.protocol},headers:{Host:n.hostname+(n.port?":"+n.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 r[1]&&(s.headers["sec-websocket-protocol"]=r[1].toString()),[t(),["bare",qn(JSON.stringify(s))]]})}function Xi(e){e.Request=e.__dynamic.wrap(e.Request,(t,...i)=>{if(i[0]instanceof t){let r=Reflect.construct(t,i);return"navigate"===i[0].mode&&(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:e=>e}),e.fetch=e.__dynamic.wrap(e.fetch,(t,...i)=>e.Request&&("Request"===i[0].constructor.name||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)),!1===i[2]&&(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:e=>e}),Object.defineProperty(e.Response.prototype,"url",{get(){return e.__dynamic.url.decode(e.__dynamic.http.ResponseURL.get.call(this))},set:e=>e}),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{"about:"===new URL(i[0]).protocol?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:()=>(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=t=>"Worker"==t.constructor.name||"MessagePort"==t.constructor.name||"DedicatedWorkerGlobalScope"==e.constructor.name,i=e=>"Window"==e.constructor.name||"global"==e.constructor.name,r=(e,t)=>Object.keys(window||{}).map(e=>Number.parseInt(e)).filter(e=>isFinite(e)).map(e=>window[e]).filter(e=>e||!1).find(i=>{try{return i.name==e&&i.location.href==t}catch{return!1}});e.__dynamic$message=(r,n=top)=>(r||(r=e),function s(){var a=arguments;return t(r)||!i(r)?r.postMessage.call(r,...a):(r.__dynamic$self&&(r=r.__dynamic$self),(r._postMessage||r.postMessage).call(r,[a[0],n.__dynamic$location.origin,n.location.href,n.name,n!==e,],"*",a[2]||[]))}),"Window"==e.constructor.name&&(e.addEventListener&&(e.addEventListener=new Proxy(e.addEventListener,{apply(t,i,n){if(i==e.__dynamic$window&&(i=e),!n[1]||!n[0]||"function"!=typeof n[1])return Reflect.apply(t,i,n);if("message"==n[0]){var s=n[1].bind({});n[1]=t=>s(function t(i){let n=e.__dynamic.util.clone(i),s;for(var a in i.source&&(s=r(i.data[3],i.data[2])||i.currentTarget),e.__dynamic.define(n,"isTrusted",{value:!0,writable:!1}),i.origin&&(Array.isArray(i.data)&&5==i.data.length?e.__dynamic.define(n,"origin",{value:i.data[1],writable:!1}):e.__dynamic.define(n,"origin",{value:i.origin,writable:!1})),i.data&&(Array.isArray(i.data)&&5==i.data.length?e.__dynamic.define(n,"data",{value:i.data[0],writable:!1}):e.__dynamic.define(n,"data",{value:i.data,writable:!1})),i.source&&(s?e.__dynamic.define(n,"source",{value:s?.__dynamic$window||s,writable:!0}):e.__dynamic.define(n,"source",{value:s||Array.isArray(i.data)&&3==i.data.length&&!0===i.data[2]?i.source:i.currentTarget,writable:!0})),i)"isTrusted"!==a&&"origin"!==a&&"data"!==a&&"source"!==a&&e.__dynamic.define(n,a,{value:i[a],writable:!1});return n}(t))}return Reflect.apply(t,i,n)}})),"Window"==e.constructor.name&&e.__dynamic.define(e,"onmessage",{get:()=>e._onmessage||null,set:t=>(e._onmessage&&e.removeEventListener("message",e._onmessage),e.addEventListener("message",t),e._onmessage=t)}))}function Qi(e){function t(t,...i){for(var r in i)i[r]=e.__dynamic.rewrite.dom(i[r],e.__dynamic.meta);return t.apply(this,i)}["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)=>([...r].forEach((t,i)=>{r[i]=e.__dynamic.url.encode(t,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:()=>e.__dynamic.location,set:e=>e}),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(t,...r){return"Window"==r[0].constructor.name&&"location"==r[1]?(r[0].__dynamic$location=r[2],!0):"Location"==r[0].constructor.name?(e.__dynamic$location[r[1]]=r[2],!0):Reflect.apply(i,this,r)},"Reflect.set"),e.Reflect.get=e.__dynamic.wrap(e.Reflect.get,function(i,...r){if("object"==typeof r[0]){if("Window"==r[0].constructor.name){if("location"==r[1])return r[0].__dynamic?r[0].__dynamic$location:Reflect.apply(t,this,r);if(r[0][r[1]]&&"Window"==r[0][r[1]].constructor.name)return r[0][r[1]].__dynamic$window}if("Location"==r[0].constructor.name)return e.__dynamic$location[r[1]]}return Reflect.apply(t,this,r)},"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:()=>(e.__dynamic.baseURL||e.__dynamic$location).href})}),["getEntries","getEntriesByName","getEntriesByType"].forEach(t=>{e.performance[t]=new Proxy(e.performance[t],{apply:(t,i,r)=>Reflect.apply(t,i,r).filter(t=>!t.name?.includes(e.location.origin+"/assets/dyn/dynamic.")).filter(t=>!t.name.includes(e.location.origin+e.__dynamic.config.prefix+"caches/")).map(t=>{if(t.name){var i=e.__dynamic.util.clone(t);for(var r in i.__defineGetter__("name",function(){return this._name}),i.__defineSetter__("name",function(e){this._name=e}),i.name=e.__dynamic.url.decode(t.name),e.__dynamic.define(i,"name",{get:void 0,set:void 0}),e.__dynamic.define(i,"name",{value:i._name,writable:!1}),delete i._name,t)if("name"!=r){if("function"==typeof t[r])var n=new Proxy(t[r],{apply(e,r,n){if("toJSON"==e.name){var s={};for(var a in i)s[a]=i[a];return s}return Reflect.apply(e,t,n)}});else var n=t[r];Object.defineProperty(i,r,{value:n,writable:!0})}t=i}return t})})}),e.MouseEvent&&(e.MouseEvent.prototype.initMouseEvent=e.__dynamic.wrap(e.MouseEvent.prototype.initMouseEvent,function(t,...i){return i.length&&(i=i.map(t=>t==e.__dynamic$window?e:t)),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(t=>t==e.__dynamic$window?e:t)),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(t=>t==e.localStorage?e.__dynamic.storage.localStorage:t==e.sessionStorage?e.__dynamic.storage.sessionStorage:t)),Reflect.apply(t,this,i)})),e.Object.defineProperty=e.__dynamic.wrap(e.Object.defineProperty,function(e,...t){try{return Reflect.apply(e,this,t)}catch(i){i.toString().includes("Cannot redefine property:")&&(t[0].__defined||(t[0].__defined={}),t[0].__defined[t[1]]=t[2])}}),"https://www.google.com"==e.__dynamic.meta.origin&&(e.setInterval=new Proxy(e.setInterval,{apply:(e,t,i)=>500==i[1]?null:Reflect.apply(e,t,i)}))}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<this.length;n++)t.call(this,n)?.startsWith("__dynamic$"+e.__dynamic$location.host+"$")&&r.push(t.call(this,n)?.replace("__dynamic$"+e.__dynamic$location.host+"$",""));for(var s in r)t.call(this,r[s])},"Storage.prototype.clear"),e.Storage.prototype.key=e.__dynamic.wrap(e.Storage.prototype.key,function(t,...i){for(var r=[],n=0;n<this.length;n++)t.call(this,n)?.startsWith("__dynamic$"+e.__dynamic$location.host+"$")&&r.push(t.call(this,n)?.replace("__dynamic$"+e.__dynamic$location.host+"$",""));return r[i[0]]?r[i[0]]:null},"Storage.prototype.key"),["localStorage","sessionStorage"].forEach(t=>{e["__dynamic$"+t]=new Proxy(e[t],{get(i,r){if("length"==r){for(var n=[],s=0;s<Object.keys(e.__dynamic.storage[t]).length;s++)Object.keys(e.__dynamic.storage[t])[s].startsWith("__dynamic$"+e.__dynamic$location.host+"$")&&n.push(Object.keys(e.__dynamic.storage[t])[s].replace("__dynamic$"+e.__dynamic$location.host+"$",""));return n.length}return e.__dynamic.storage.methods.includes(r)?e.__dynamic.storage.cloned[t][r].bind(e.__dynamic.storage[t]):e.__dynamic.storage[t].getItem("__dynamic$"+e.__dynamic$location.host+"$"+r.toString())},set:(i,r,n)=>(e.__dynamic.storage[t].setItem("__dynamic$"+e.__dynamic$location.host+"$"+r.toString(),n),n||!0),deleteProperty:(i,r)=>e.__dynamic.storage[t].removeItem("__dynamic$"+e.__dynamic$location.host+"$"+r.toString())}),delete e[t],e[t]=e["__dynamic$"+t]})}function Zi(e){"serviceWorker"in e.navigator&&(e.__dynamic.sw=e.navigator.serviceWorker,delete e.navigator.serviceWorker,delete e.Navigator.prototype.serviceWorker),e.navigator.sendBeacon=e.__dynamic.wrap(e.navigator.sendBeacon,function(t,...i){return i[0]&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),Reflect.apply(t,this,i)},"navigator.sendBeacon")}var er=e=>e?e.split(";").map(e=>e.split("=")).reduce((e,t)=>(e[t[0].trim()]=t[1].trim(),e),{}):{},We=(e=[])=>e.map(e=>`${e.name}=${e.value}`).join("; ");function tr(e){if(delete e.Document.prototype.cookie,e.__dynamic.define(e.document,"cookie",{get(){return e.__dynamic.fire("getCookies",[e.__dynamic.location.host,e.__dynamic.cookie.str||"",])||(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:e=>e}))).then(async t=>{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(e=>({name:e[0],value:e[1]})))}}),e.navigator.serviceWorker)try{e.navigator.serviceWorker.onmessage=({data:t})=>{if(t.host==e.__dynamic.location.host&&"set-cookie"==t.type){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(e=>({name:e[0],value:e[1]})))}t.host==e.__dynamic.location.host&&"cookies"==t.type&&(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("background-image"==i[0]||"background"==i[0]||"backgroundImage"==i[0])&&(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(t,i,r)=>{let n=(await e.__dynamic.sw.ready).active;e.__dynamic.sw.addEventListener("message",({data:{url:t}})=>{t&&e.__dynamic.elements.iframeSrc.set.call(i,t)},{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(t=>{for(var i of t)e[i.type](i),document.dispatchEvent(new CustomEvent({attributes:"attrChanged",characterData:"characterData",childList:"nodeChanged"}[i.type],{detail:i}))})).observe(t,{subtree:!0,attributes:!0,childList:!0}),i);function wt(e,t){function i(e){if(!e.rewritten&&!(1!==e.nodeType&&3!==e.nodeType)){if((e=new Proxy(e,{get:(e,i)=>"src"==i||"href"==i||"srcset"==i||"imageSrcset"==i||"data"==i||"action"==i?t.elements.getAttribute.call(e,i.toLowerCase()):"setAttribute"==i||"getAttribute"==i||"removeAttribute"==i||"hasAttribute"==i||"cloneNode"==i||"addEventListener"==i?(...r)=>t.elements[i].call(e,...r):"node"==i?e:e[i],set:(e,i,r)=>("src"==i||"href"==i||"srcset"==i||"imageSrcset"==i||"data"==i||"action"==i?t.elements.setAttribute.call(e,i.toLowerCase(),r):e[i]=r,!0)}))instanceof HTMLScriptElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.type&&e.textContent?.length?("application/javascript"==e.type||"text/javascript"==e.type||"application/x-javascript"==e.type&&e.textContent?.length)&&(e.textContent=t.rewrite.js.rewrite(e.textContent,{type:"script"},!1,t)):!e.type&&e.textContent?.length&&(e.textContent=t.rewrite.js.rewrite(e.textContent,{type:"script"},!1,t))),e instanceof HTMLStyleElement&&e.textContent?.length&&(e.textContent=t.rewrite.css.rewrite(e.textContent,t.meta)),e instanceof HTMLIFrameElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.srcdoc)){e.dataset.dynamic_srcdoc=e.srcdoc;let i=new Blob([t.rewrite.html.rewrite(e.srcdoc,t.meta)],{type:"text/html"});e.src=URL.createObjectURL(i)}if(e instanceof HTMLLinkElement&&("stylesheet"!==e.getAttribute("rel")&&"prefetch"!==e.getAttribute("rel")&&"dns-prefetch"!==e.getAttribute("rel")?(e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e.imageSrcset&&(e.dataset.dynamic_imagesrcset=e.imageSrcset,e.imageSrcset=t.rewrite.srcset.encode(e.imageSrcset,t))):e.addEventListener("error",i=>{if(e instanceof HTMLLinkElement)return e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e.imageSrcset&&(e.dataset.dynamic_imagesrcset=e.imageSrcset,e.imageSrcset=t.rewrite.srcset.encode(e.imageSrcset,t)),i.preventDefault(),!1},{once:!0})),e instanceof HTMLAnchorElement&&e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e instanceof HTMLFormElement&&e.action&&(e.dataset.dynamic_action=e.action,e.action=t.url.encode(e.action,t.meta)),e instanceof HTMLObjectElement&&e.data&&(e.dataset.dynamic_data=e.data,e.data=t.url.encode(e.data,t.meta)),e instanceof HTMLSourceElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.srcset&&(e.dataset.dynamic_srcset=e.srcset,e.srcset=t.rewrite.srcset.encode(e.srcset,t))),e instanceof HTMLImageElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.srcset&&(e.dataset.dynamic_srcset=e.srcset,e.srcset=t.rewrite.srcset.encode(e.srcset,t))),e instanceof HTMLAreaElement&&e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e instanceof HTMLBaseElement&&e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e instanceof HTMLInputElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLAudioElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLVideoElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLTrackElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLMediaElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLMetaElement&&e.httpEquiv){if("refresh"==e.httpEquiv.toLowerCase()){var r=e.content.split(";url=")[0],n=e.content.split(";url=")[1];e.content=`${r};url=${t.url.encode(n,t.meta)}`}"content-security-policy"==e.httpEquiv.toLowerCase()&&e.remove()}return e instanceof HTMLElement&&(e.getAttribute("style")&&e.setAttribute("style",t.rewrite.css.rewrite(e.getAttribute("style"),t.meta)),e.integrity&&(e.setAttribute("nointegrity",e.integrity),e.removeAttribute("integrity")),e.nonce&&(e.setAttribute("nononce",e.nonce),e.removeAttribute("nonce"))),e.rewritten=!0}}t||(t=e.__dynamic);let r=Gn({childList(e){for(let t of(i(e.target),e.addedNodes))if(t.childNodes)for(let r of t.childNodes)i(r);if(e.target.childNodes)for(var n of e.target.childNodes)i(n)},attributes(e){},characterData(e){}},e.document);e.document.addEventListener("DOMContentLoaded",()=>{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:e=>e}),e.__dynamic$wrapEval=t=>arguments.length?e.__dynamic.fire("eval",[e,t])||(t=e.__dynamic.rewrite.js.rewrite(t,{type:"script"},!1,e.__dynamic)):arguments[0]}function nr(e){var t=e.Function.prototype.toString;e.__dynamic.Function=e.Function.bind({}),e.__dynamic.define(e.Function.prototype,"_toString",{get:()=>t,set(){}});var i=function(){try{var e=Reflect.apply(t,this,[])}catch{return`function ${this.name}() { [native code] }`}return e.includes("[native code]")?`function ${this.name}() { [native code] }`:e};e.__dynamic.define(e.Function.prototype,"toString",{get(){return this.__toString||i},set(e){this.__toString=e}}),e.Function=new Proxy(e.Function,{apply(t,i,r){var n=[...r],s=n.pop();return s=`(function anonymous(${n.toString()}) {${s}})`,s=e.__dynamic.rewrite.js.rewrite(s,{type:"script"},!1,e.__dynamic),e.eval(s)},construct(t,i){var r=[...i],n=r.pop();return n=`(function anonymous(${r.toString()}) {${n}})`,n=e.__dynamic.rewrite.js.rewrite(n,{type:"script"},!1,e.__dynamic),e.eval(n)}}),e.Function.prototype.apply=e.__dynamic.wrap(e.Function.prototype.apply,function(t,...i){return i[0]==e.__dynamic$window&&(i[0]=i[0].__dynamic$self),i[0]==e.__dynamic$document&&(i[0]=e.document),Reflect.apply(t,this,i)},"Function.prototype.apply"),e.Function.prototype.call=new Proxy(e.Function.prototype.call,{apply:(t,i,r)=>(r[0]==e.__dynamic$window&&(r[0]=r[0].__dynamic$self),r[0]==e.__dynamic$document&&(r[0]=e.document),Reflect.apply(t,i,r))}),e.Function.prototype.bind=e.__dynamic.wrap(e.Function.prototype.bind,function(t,...i){return i[0]==e.__dynamic$window&&(i[0]=i[0].__dynamic$self),i[0]==e.__dynamic$document&&(i[0]=e.document),t.apply(this,i)},"Function.prototype.bind")}function ar(e){}function sr(e){}var zn,qe=class{constructor(e){this.methods=[{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"},],"DedicatedWorkerGlobalScope"==self.constructor.name||"SharedWorkerGlobalScope"==self.constructor.name?(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=e}};function Qs(e,t){return e||(e=[]),e.find(e=>e.name==t.name)?e[e.findIndex(e=>e.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)=>(t.domain&&(e=t.domain),e.startsWith(".")&&(e=e.slice(1)),t.expires&&new Date(t.expires)<new Date)?he.remove(e,t,i):(await (await i).put("__dynamic$cookies",Qs(await (await i).get("__dynamic$cookies",e),t),e),!0),async get(e,t){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:s,value:a,expires:o}of n){if(o&&new Date(o)<=new Date){he.remove(e,n.find(e=>e.name==s&&e.value==a&&e.expires==o),t);continue}r.find(e=>e.name==s&&e.value==a)||r.push({name:s,value:a,expires:o||new Date(1e13)})}}return r},async remove(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&&(await (await i).put("__dynamic$cookies",r=r.filter(e=>e.name!==t.name),e),!0)},async update(e,t){var i=await (await t).get("__dynamic$cookies",e.replace(/^(.*\.)?([^.]*\..*)$/g,"$2"));if(i){for(var{name:r,value:n,expires:s}of i)if(s&&new Date(s)<=new Date){he.remove(e,{name:r,value:n,expires:s},t);continue}}return i}},Ge=class{constructor(e){this.db=he,this.ctx=e}async get(e){this._db||(this._db=this.db.open());let t=await he.get(e,this._db);return We(t)}async set(e,t=""){return t=this.ctx.modules.setCookieParser.parse(t,{decodeValues:!1})[0],this._db||(this._db=this.db.open()),await he.set(e,t,this._db)}async open(){await he.open()}async update(e){return this._db||(this._db=this.db.open()),await he.update(e,this._db)}},lr={};dr(lr,{aes:()=>po,base64:()=>mo,none:()=>fo,plain:()=>ho,xor:()=>lo});var xe=14,ne=8,ze=!1,Ys=e=>{try{return unescape(encodeURIComponent(e))}catch{throw"Error on UTF-8 encode"}},Js=e=>{try{return decodeURIComponent(escape(e))}catch{throw"Bad Key"}},Zs=e=>{var t,i,r=[];for(e.length<16&&(r=[t=16-e.length,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t]),i=0;i<e.length;i++)r[i]=e[i];return r},Kn=(e,t)=>{var i,r,n="";if(t){if((i=e[15])>16)throw"Decryption error: Maybe bad key";if(16===i)return"";for(r=0;r<16-i;r++)n+=String.fromCharCode(e[r])}else for(r=0;r<16;r++)n+=String.fromCharCode(e[r]);return n},or=(e,t)=>{var i,r=[];for(t||(e=Ys(e)),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return r},eo=e=>{var t,i=[];for(t=0;t<e;t++)i=i.concat(Math.floor(256*Math.random()));return i},Yn=(e,t)=>{var i,r=xe>=12?3:2,n=[],s=[],a=[],o=[],c=e.concat(t);for(a[0]=Qn(c),o=a[0],i=1;i<r;i++)a[i]=Qn(a[i-1].concat(c)),o=o.concat(a[i]);return{key:n=o.slice(0,4*ne),iv:s=o.slice(4*ne,4*ne+16)}},to=(e,t,i)=>{t=ta(t);var r,n=Math.ceil(e.length/16),s=[],a=[];for(r=0;r<n;r++)s[r]=Zs(e.slice(16*r,16*r+16));for(e.length%16==0&&(s.push([16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,]),n++),r=0;r<s.length;r++)s[r]=0===r?Pt(s[r],i):Pt(s[r],a[r-1]),a[r]=ro(s[r],t);return a},io=(e,t,i,r)=>{t=ta(t);var n,s=e.length/16,a=[],o=[],c="";for(n=0;n<s;n++)a.push(e.slice(16*n,(n+1)*16));for(n=a.length-1;n>=0;n--)o[n]=no(a[n],t),o[n]=0===n?Pt(o[n],i):Pt(o[n],a[n-1]);for(n=0;n<s-1;n++)c+=Kn(o[n],!1);return c+=Kn(o[n],!0),r?c:Js(c)},ro=(e,t)=>{ze=!1;var i,r=Lt(e,t,0);for(i=1;i<xe+1;i++)r=Jn(r),r=Zn(r),i<xe&&(r=ea(r)),r=Lt(r,t,i);return r},no=(e,t)=>{ze=!0;var i,r=Lt(e,t,xe);for(i=xe-1;i>-1;i--)r=Zn(r),r=Jn(r),r=Lt(r,t,i),i>0&&(r=ea(r));return r},Jn=e=>{var t,i=ze?co:ur,r=[];for(t=0;t<16;t++)r[t]=i[e[t]];return r},Zn=e=>{var t,i=[],r=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];for(t=0;t<16;t++)i[t]=e[r[t]];return i},ea=e=>{var t,i=[];if(ze)for(t=0;t<4;t++)i[4*t]=At[e[4*t]]^Ct[e[1+4*t]]^kt[e[2+4*t]]^Et[e[3+4*t]],i[1+4*t]=Et[e[4*t]]^At[e[1+4*t]]^Ct[e[2+4*t]]^kt[e[3+4*t]],i[2+4*t]=kt[e[4*t]]^Et[e[1+4*t]]^At[e[2+4*t]]^Ct[e[3+4*t]],i[3+4*t]=Ct[e[4*t]]^kt[e[1+4*t]]^Et[e[2+4*t]]^At[e[3+4*t]];else for(t=0;t<4;t++)i[4*t]=vt[e[4*t]]^St[e[1+4*t]]^e[2+4*t]^e[3+4*t],i[1+4*t]=e[4*t]^vt[e[1+4*t]]^St[e[2+4*t]]^e[3+4*t],i[2+4*t]=e[4*t]^e[1+4*t]^vt[e[2+4*t]]^St[e[3+4*t]],i[3+4*t]=St[e[4*t]]^e[1+4*t]^e[2+4*t]^vt[e[3+4*t]];return i},Lt=(e,t,i)=>{var r,n=[];for(r=0;r<16;r++)n[r]=e[r]^t[i][r];return n},Pt=(e,t)=>{var i,r=[];for(i=0;i<16;i++)r[i]=e[i]^t[i];return r},ta=e=>{var t,i,r,n,s=[],a=[],o=[];for(t=0;t<ne;t++)i=[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]],s[t]=i;for(t=ne;t<4*(xe+1);t++){for(s[t]=[],r=0;r<4;r++)a[r]=s[t-1][r];for(t%ne==0?(a=Xn(ao(a)),a[0]^=uo[t/ne-1]):ne>6&&t%ne==4&&(a=Xn(a)),r=0;r<4;r++)s[t][r]=s[t-ne][r]^a[r]}for(t=0;t<xe+1;t++)for(o[t]=[],n=0;n<4;n++)o[t].push(s[4*t+n][0],s[4*t+n][1],s[4*t+n][2],s[4*t+n][3]);return o},Xn=e=>{for(var t=0;t<4;t++)e[t]=ur[e[t]];return e},ao=e=>{var t,i=e[0];for(t=0;t<3;t++)e[t]=e[t+1];return e[3]=i,e},cr=(e,t)=>{var i,r=[];for(i=0;i<e.length;i+=t)r[i/t]=Number.parseInt(e.substr(i,t),16);return r},so=e=>{var t,i=[];for(t=0;t<e.length;t++)i[e[t]]=t;return i},oo=(e,t)=>{var i,r;for(r=0,i=0;i<8;i++)r=(1&t)==1?r^e:r,e=e>127?283^e<<1:e<<1,t>>>=1;return r},Ae=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=(e,t,i)=>{var r,n=eo(8),s=Yn(or(t,i),n),a=s.key,o=s.iv,c=[[83,97,108,116,101,100,95,95].concat(n)];return e=or(e,i),r=c.concat(r=to(e,a,o)),na.encode(r)},ra=(e,t,i)=>{var r=na.decode(e),n=r.slice(8,16),s=Yn(or(t,i),n),a=s.key,o=s.iv;return e=io(r=r.slice(16,r.length),a,o,i)},Qn=e=>{function t(e,t){return e<<t|e>>>32-t}function i(e,t){var i,r,n,s,a;return n=2147483648&e,s=2147483648&t,i=1073741824&e,r=1073741824&t,a=(1073741823&e)+(1073741823&t),i&r?2147483648^a^n^s:i|r?1073741824&a?3221225472^a^n^s:1073741824^a^n^s:a^n^s}function r(e,t,i){return e&t|~e&i}function n(e,t,i){return e&i|t&~i}function s(e,t,i){return e^t^i}function a(e,t,i){return t^(e|~i)}function o(e,n,s,a,o,c,u){return e=i(e,i(i(r(n,s,a),o),u)),i(t(e,c),n)}function c(e,r,s,a,o,c,u){return e=i(e,i(i(n(r,s,a),o),u)),i(t(e,c),r)}function u(e,r,n,a,o,c,u){return e=i(e,i(i(s(r,n,a),o),u)),i(t(e,c),r)}function l(e,r,n,s,o,c,u){return e=i(e,i(i(a(r,n,s),o),u)),i(t(e,c),r)}function h(e){for(var t,i=e.length,r=i+8,n=((r-r%64)/64+1)*16,s=[],a=0,o=0;o<i;)t=(o-o%4)/4,a=o%4*8,s[t]=s[t]|e[o]<<a,o++;return t=(o-o%4)/4,a=o%4*8,s[t]=s[t]|128<<a,s[n-2]=i<<3,s[n-1]=i>>>29,s}function p(e){var t,i,r=[];for(i=0;i<=3;i++)t=e>>>8*i&255,r=r.concat(t);return r}var d,m,f,$,y,_,g,x,v,w=[],b=cr("67452301efcdab8998badcfe10325476d76aa478e8c7b756242070dbc1bdceeef57c0faf4787c62aa8304613fd469501698098d88b44f7afffff5bb1895cd7be6b901122fd987193a679438e49b40821f61e2562c040b340265e5a51e9b6c7aad62f105d02441453d8a1e681e7d3fbc821e1cde6c33707d6f4d50d87455a14eda9e3e905fcefa3f8676f02d98d2a4c8afffa39428771f6816d9d6122fde5380ca4beea444bdecfa9f6bb4b60bebfbc70289b7ec6eaa127fad4ef308504881d05d9d4d039e6db99e51fa27cf8c4ac5665f4292244432aff97ab9423a7fc93a039655b59c38f0ccc92ffeff47d85845dd16fa87e4ffe2ce6e0a30143144e0811a1f7537e82bd3af2352ad7d2bbeb86d391",8);for(w=h(e),_=b[0],g=b[1],x=b[2],v=b[3],d=0;d<w.length;d+=16)m=_,f=g,$=x,y=v,_=o(_,g,x,v,w[d+0],7,b[4]),v=o(v,_,g,x,w[d+1],12,b[5]),x=o(x,v,_,g,w[d+2],17,b[6]),g=o(g,x,v,_,w[d+3],22,b[7]),_=o(_,g,x,v,w[d+4],7,b[8]),v=o(v,_,g,x,w[d+5],12,b[9]),x=o(x,v,_,g,w[d+6],17,b[10]),g=o(g,x,v,_,w[d+7],22,b[11]),_=o(_,g,x,v,w[d+8],7,b[12]),v=o(v,_,g,x,w[d+9],12,b[13]),x=o(x,v,_,g,w[d+10],17,b[14]),g=o(g,x,v,_,w[d+11],22,b[15]),_=o(_,g,x,v,w[d+12],7,b[16]),v=o(v,_,g,x,w[d+13],12,b[17]),x=o(x,v,_,g,w[d+14],17,b[18]),g=o(g,x,v,_,w[d+15],22,b[19]),_=c(_,g,x,v,w[d+1],5,b[20]),v=c(v,_,g,x,w[d+6],9,b[21]),x=c(x,v,_,g,w[d+11],14,b[22]),g=c(g,x,v,_,w[d+0],20,b[23]),_=c(_,g,x,v,w[d+5],5,b[24]),v=c(v,_,g,x,w[d+10],9,b[25]),x=c(x,v,_,g,w[d+15],14,b[26]),g=c(g,x,v,_,w[d+4],20,b[27]),_=c(_,g,x,v,w[d+9],5,b[28]),v=c(v,_,g,x,w[d+14],9,b[29]),x=c(x,v,_,g,w[d+3],14,b[30]),g=c(g,x,v,_,w[d+8],20,b[31]),_=c(_,g,x,v,w[d+13],5,b[32]),v=c(v,_,g,x,w[d+2],9,b[33]),x=c(x,v,_,g,w[d+7],14,b[34]),g=c(g,x,v,_,w[d+12],20,b[35]),_=u(_,g,x,v,w[d+5],4,b[36]),v=u(v,_,g,x,w[d+8],11,b[37]),x=u(x,v,_,g,w[d+11],16,b[38]),g=u(g,x,v,_,w[d+14],23,b[39]),_=u(_,g,x,v,w[d+1],4,b[40]),v=u(v,_,g,x,w[d+4],11,b[41]),x=u(x,v,_,g,w[d+7],16,b[42]),g=u(g,x,v,_,w[d+10],23,b[43]),_=u(_,g,x,v,w[d+13],4,b[44]),v=u(v,_,g,x,w[d+0],11,b[45]),x=u(x,v,_,g,w[d+3],16,b[46]),g=u(g,x,v,_,w[d+6],23,b[47]),_=u(_,g,x,v,w[d+9],4,b[48]),v=u(v,_,g,x,w[d+12],11,b[49]),x=u(x,v,_,g,w[d+15],16,b[50]),g=u(g,x,v,_,w[d+2],23,b[51]),_=l(_,g,x,v,w[d+0],6,b[52]),v=l(v,_,g,x,w[d+7],10,b[53]),x=l(x,v,_,g,w[d+14],15,b[54]),g=l(g,x,v,_,w[d+5],21,b[55]),_=l(_,g,x,v,w[d+12],6,b[56]),v=l(v,_,g,x,w[d+3],10,b[57]),x=l(x,v,_,g,w[d+10],15,b[58]),g=l(g,x,v,_,w[d+1],21,b[59]),_=l(_,g,x,v,w[d+8],6,b[60]),v=l(v,_,g,x,w[d+15],10,b[61]),x=l(x,v,_,g,w[d+6],15,b[62]),g=l(g,x,v,_,w[d+13],21,b[63]),_=l(_,g,x,v,w[d+4],6,b[64]),v=l(v,_,g,x,w[d+11],10,b[65]),x=l(x,v,_,g,w[d+2],15,b[66]),g=l(g,x,v,_,w[d+9],21,b[67]),_=i(_,m),g=i(g,f),x=i(x,$),v=i(v,y);return p(_).concat(p(g),p(x),p(v))},na=(()=>{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=e.split(""),i=(e,i)=>{var r,n,s=[],a="",o=Math.floor(16*e.length/3);for(r=0;r<16*e.length;r++)s.push(e[Math.floor(r/16)][r%16]);for(r=0;r<s.length;r+=3)a+=t[s[r]>>2],a+=t[(3&s[r])<<4|s[r+1]>>4],void 0!==s[r+1]?a+=t[(15&s[r+1])<<2|s[r+2]>>6]:a+="=",void 0!==s[r+2]?a+=t[63&s[r+2]]:a+="=";for(n=a.slice(0,64)+` | |
| `,r=1;r<Math.ceil(a.length/64);r++)n+=a.slice(64*r,64*r+64)+(Math.ceil(a.length/64)===r+1?"":` | |
| `);return n},r=t=>{t=t.replace(/\n/g,"");var i,r=[],n=[],s=[];for(i=0;i<t.length;i+=4)n[0]=e.indexOf(t.charAt(i)),n[1]=e.indexOf(t.charAt(i+1)),n[2]=e.indexOf(t.charAt(i+2)),n[3]=e.indexOf(t.charAt(i+3)),s[0]=n[0]<<2|n[1]>>4,s[1]=(15&n[1])<<4|n[2]>>2,s[2]=(3&n[2])<<6|n[3],r.push(s[0],s[1],s[2]);return r.slice(0,r.length-r.length%16)};return"function"==typeof Array.indexOf&&(e=t),{encode:i,decode:r}})(),lo={encode:(e,t=2)=>e&&encodeURIComponent(e.split("").map((e,i)=>i%t?String.fromCharCode(e.charCodeAt(0)^t):e).join("")),decode:(e,t=2)=>e&&decodeURIComponent(e).split("").map((e,i)=>i%t?String.fromCharCode(e.charCodeAt(0)^t):e).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)},Rt=class{constructor(e){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=[],e&&!this.config&&(this.config=e),e&&this.util.encode(self)}on(e,t){this.listeners.push({event:e,cb:t})}fire(e,t){let i=!1;for(let r of this.listeners)r.event===e&&(t=(i=!0,r.cb(...t)));return i&&t?t:null}};function hr(e,t){t||(t=e.__dynamic),t.define=new e.Proxy(e.Object.defineProperty,{apply(e,t,i){try{return Reflect.apply(e,t,i)}catch{return i[2]}}}),t.defines=new e.Proxy(e.Object.defineProperties,{apply(e,t,i){try{return Reflect.apply(e,t,i)}catch{return i[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:t=>({get(){return new URL(this.href||e.__dynamic$location.href)[t]},set(e){}}),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:e=>e,createScript:e=>e,createScriptURL:e=>e,createURL:e=>e}),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:()=>e.__dynamic$config.tab.title,set:e=>e})),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:()=>e.__dynamic$config.tab.ua,set(){}}))}function pr(e){e.__dynamic.wrap=(t,i,r)=>{if(t.__dynamic$target)return t;if(t.toString().includes("{ [native code] }")&&!t.prototype){var n=i,s=t,a=function(...t){if("string"==typeof r){var i=e.__dynamic.fire(r,this?[this,...t]:t);if(i)return i}return n.call(this,s,...t)},o=function(...e){return a.call(this,...e)};return e.__dynamic.define(o,"name",{value:t.name,writable:!1}),o.__dynamic$target=t,o.toString=()=>`function ${t.name}() { [native code] }`,o}try{let c=class extends t{constructor(...e){var n=[...e],s=i.call(t,t,...e);s&&(e=s),super(...e),r&&r(this,n)}};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);for(var n of(r.config.bare.path="string"==typeof r.config.bare.path||r.config.bare.path instanceof URL?new URL(r.config.bare.path,e.location):r.config.bare.path.map(t=>new URL(t,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),e.__dynamic.client.methods)){let s=n.name,a=Object.entries(e.__dynamic.client).find(e=>e[0]==s);"mutation"==s&&e.frameElement||"self"==n.function&&a[1](e)}return e}var Fl=It(self)})(); /*! Bundled license information: | |
| cookie/index.js: | |
| (*! | |
| * cookie | |
| * Copyright(c) 2012-2014 Roman Shtylman | |
| * Copyright(c) 2015 Douglas Christopher Wilson | |
| * MIT Licensed | |
| *) | |
| */ |