@nocobase/app 1.9.46 → 1.9.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[2547],{28627:function(Ma,Oa,We){const _=globalThis,{Array:ln,ArrayBuffer:fe,Date:fn,FinalizationRegistry:Wt,Float32Array:pn,JSON:dn,Map:dt,Math:gn,Number:xo,Object:ko,Promise:ze,Proxy:re,Reflect:yn,RegExp:Ct,Set:zt,String:Z,Symbol:Kt,Uint8Array:Ke,WeakMap:_t,WeakSet:Vt}=globalThis,{Error:q,RangeError:mn,ReferenceError:ne,SyntaxError:se,TypeError:E,AggregateError:Ve}=globalThis,{assign:ae,create:$,defineProperties:C,entries:tt,freeze:y,getOwnPropertyDescriptor:H,getOwnPropertyDescriptors:Pt,getOwnPropertyNames:qt,getPrototypeOf:N,is:pe,isFrozen:Da,isSealed:Ua,isExtensible:Ga,keys:Co,prototype:qe,seal:Ha,preventExtensions:hn,setPrototypeOf:de,values:No,fromEntries:Lt,hasOwn:B}=ko,{species:Ye,toStringTag:Nt,iterator:At,matchAll:Ro,unscopables:Sn,keyFor:En,for:bn}=Kt,{isInteger:_n}=xo,{stringify:Fo}=dn,{defineProperty:Pn}=ko,x=(t,o,r)=>{const n=Pn(t,o,r);if(n!==t)throw E(`Please report that the original defineProperty silently failed to set ${Fo(Z(o))}. (SES_DEFINE_PROPERTY_FAILED_SILENTLY)`);return n},{apply:z,construct:ge,get:$o,getOwnPropertyDescriptor:An,has:Lo,isExtensible:wn,ownKeys:It,preventExtensions:In,set:Mo}=yn,{isArray:Mt,prototype:it}=ln,{prototype:ye}=fe,{prototype:Yt}=dt,{revocable:Ba}=re,{prototype:me}=RegExp,{prototype:ie}=zt,{prototype:wt}=Z,{prototype:he}=_t,{prototype:Oo}=Vt,{prototype:Se}=Function,{prototype:Do}=ze,{prototype:Uo}=N(function*(){}),Je=N(N(it.values())),Go=N(Ke.prototype),{bind:Qe}=Se,P=Qe.bind(Qe.call),ja=null,Rt=P(it.filter),Ft=P(it.forEach),Ee=P(it.includes),Jt=P(it.join),Y=P(it.map),be=P(it.flatMap),_e=P(it.pop),j=P(it.push),Tn=P(it.slice),Ho=P(it.some),Bo=P(it.sort),vn=P(it[At]),xn=P(ye.slice),kn=P(H(ye,"byteLength").get),Cn=P(Go.set),et=P(Yt.set),Tt=P(Yt.get),Pe=P(Yt.has),Nn=P(Yt.delete),Rn=P(Yt.entries),Fn=P(Yt[At]),Xe=P(ie.add),Wa=P(ie.delete),jo=P(ie.forEach),Ze=P(ie.has),$n=P(ie[At]),to=P(me.test),eo=P(me.exec),Ln=P(me[Ro]),Wo=P(wt.endsWith),zo=P(wt.includes),Mn=P(wt.indexOf),za=P(wt.match),Ae=P(Uo.next),Ko=P(Uo.throw),we=P(wt.replace),On=P(wt.search),oo=P(wt.slice),ro=P(wt.split),Vo=P(wt.startsWith),Dn=P(wt[At]),Un=P(he.delete),k=P(he.get),Qt=P(he.has),ot=P(he.set),Ie=P(Oo.add),ce=P(Oo.has),Gn=P(Se.toString),qo=P(Qe),{all:Hn}=ze,Ka=t=>z(Hn,ze,[t]),Va=P(Do.catch),Yo=P(Do.then),Bn=Wt&&P(Wt.prototype.register),qa=Wt&&P(Wt.prototype.unregister),Ya=t=>$o(N(t),"constructor"),ut=t=>!t||typeof t!="object"&&typeof t!="function",Te=t=>t instanceof q,Jo=t=>t,no=eval,rt=Function,jn=()=>{throw E('Cannot eval with evalTaming set to "no-eval" (SES_NO_EVAL)')},$t=H(Error("er1"),"stack"),so=H(E("er2"),"stack");let Qo,Xo;if($t&&so&&$t.get)if(typeof $t.get=="function"&&$t.get===so.get&&typeof $t.set=="function"&&$t.set===so.set)Qo=y($t.get),Xo=y($t.set);else throw E("Unexpected Error own stack accessor functions (SES_UNEXPECTED_ERROR_OWN_STACK_ACCESSOR)");const ao=Qo,Wn=Xo,io=(()=>{try{return new rt("return (async function* AsyncGeneratorFunctionInstance() {})")()}catch(t){if(t.name==="SyntaxError")return;if(t.name==="EvalError")return async function*(){};throw t}})();function zn(){return this}if(zn())throw E("SES failed to initialize, sloppy mode (SES_NO_SLOPPY)");var J=We(34745),Qa=We(33970);const Xa=(t,o)=>{if(t.length===0)return"(none)";if(t.length===1)return t[0];if(t.length===2){const[r,n]=t;return`${r} ${o} ${n}`}else return`${arrayJoin(arraySlice(t,0,-1),", ")}, ${o} ${t[t.length-1]}`},ve=t=>(t=`${t}`,t.length>=1&&zo("aeiouAEIOU",t[0])?`an ${t}`:`a ${t}`);y(ve);const Zo=(t,o=void 0)=>{const r=new zt,n=(s,a)=>{switch(typeof a){case"object":{if(a===null)return null;if(Ze(r,a))return"[Seen]";if(Xe(r,a),Te(a))return`[${a.name}: ${a.message}]`;if(Nt in a)return`[${a[Nt]}]`;if(Mt(a))return a;const c=Co(a);if(c.length<2)return a;let i=!0;for(let p=1;p<c.length;p+=1)if(c[p-1]>=c[p]){i=!1;break}if(i)return a;Bo(c);const l=Y(c,p=>[p,a[p]]);return Lt(l)}case"function":return`[Function ${a.name||"<anon>"}]`;case"string":return Vo(a,"[")?`[${a}]`:a;case"undefined":case"symbol":return`[${Z(a)}]`;case"bigint":return`[${a}n]`;case"number":return pe(a,NaN)?"[NaN]":a===1/0?"[Infinity]":a===-1/0?"[-Infinity]":a;default:return a}};try{return Fo(t,n,o)}catch{return"[Something that failed to stringify]"}};y(Zo);var Kn=We(42768);const{freeze:xe}=Object,{isSafeInteger:Vn}=Number,qn=1e3,Yn=100,tr=(t=qn,o=Yn)=>{if(!Vn(o)||o<1)throw TypeError("argsPerErrorBudget must be a safe positive integer number");const{cache:r}=(0,Kn.E)(t),n=(a,c)=>{const i=r.get(a);i!==void 0?(i.length>=o&&i.shift(),i.push(c)):r.set(a,[c])};xe(n);const s=a=>{const c=r.get(a);return r.delete(a),c};return xe(s),xe({addLogArgs:n,takeLogArgsArray:s})};xe(tr);const Xt=new _t,v=(t,o=void 0)=>{const r=y({toString:y(()=>Zo(t,o))});return ot(Xt,r,t),r};y(v);const Jn=y(/^[\w:-]( ?[\w:-])*$/),ke=(t,o=void 0)=>{if(typeof t!="string"||!to(Jn,t))return v(t,o);const r=y({toString:y(()=>t)});return ot(Xt,r,t),r};y(ke);const Ce=new _t,er=({template:t,args:o})=>{const r=[t[0]];for(let n=0;n<o.length;n+=1){const s=o[n];let a;Qt(Xt,s)?a=`${s}`:Te(s)?a=`(${ve(s.name)})`:a=`(${ve(typeof s)})`,j(r,a,t[n+1])}return Jt(r,"")},or=y({toString(){const t=k(Ce,this);return t===void 0?"[Not a DetailsToken]":er(t)}});y(or.toString);const K=(t,...o)=>{const r=y({__proto__:or});return ot(Ce,r,{template:t,args:o}),r};y(K);const rr=(t,...o)=>(o=Y(o,r=>Qt(Xt,r)?r:v(r)),K(t,...o));y(rr);const nr=({template:t,args:o})=>{const r=[t[0]];for(let n=0;n<o.length;n+=1){let s=o[n];Qt(Xt,s)&&(s=k(Xt,s));const a=we(_e(r)||"",/ $/,"");a!==""&&j(r,a);const c=we(t[n+1],/^ /,"");j(r,s,c)}return r[r.length-1]===""&&_e(r),r},Ne=new _t;let co=0;const sr=new _t,ar=(t,o=t.name)=>{let r=k(sr,t);return r!==void 0||(co+=1,r=`${o}#${co}`,ot(sr,t,r)),r},Qn=t=>{const o=Pt(t),{name:r,message:n,errors:s=void 0,cause:a=void 0,stack:c=void 0,...i}=o,l=It(i);if(l.length>=1){for(const g of l)delete t[g];const p=$(qe,i);Re(t,K`originally with properties ${v(p)}`)}for(const p of It(t)){const g=o[p];g&&B(g,"get")&&x(t,p,{value:t[p]})}y(t)},gt=(t=K`Assert failed`,o=_.Error,{errorName:r=void 0,cause:n=void 0,errors:s=void 0,sanitize:a=!0}={})=>{typeof t=="string"&&(t=K([t]));const c=k(Ce,t);if(c===void 0)throw E(`unrecognized details ${v(t)}`);const i=er(c),l=n&&{cause:n};let p;return typeof Ve<"u"&&o===Ve?p=Ve(s||[],i,l):(p=o(i,l),s!==void 0&&x(p,"errors",{value:s,writable:!0,enumerable:!1,configurable:!0})),ot(Ne,p,nr(c)),r!==void 0&&ar(p,r),a&&Qn(p),p};y(gt);const{addLogArgs:Xn,takeLogArgsArray:Zn}=tr(),uo=new _t,Re=(t,o)=>{typeof o=="string"&&(o=K([o]));const r=k(Ce,o);if(r===void 0)throw E(`unrecognized details ${v(o)}`);const n=nr(r),s=k(uo,t);if(s!==void 0)for(const a of s)a(t,n);else Xn(t,n)};y(Re);const ts=t=>{if(!("stack"in t))return"";const o=`${t.stack}`,r=Mn(o,`
2
+ `);return Vo(o," ")||r===-1?o:oo(o,r+1)},Fe={getStackString:_.getStackString||ts,tagError:t=>ar(t),resetErrorTagNum:()=>{co=0},getMessageLogArgs:t=>k(Ne,t),takeMessageLogArgs:t=>{const o=k(Ne,t);return Un(Ne,t),o},takeNoteLogArgsArray:(t,o)=>{const r=Zn(t);if(o!==void 0){const n=k(uo,t);n?j(n,o):ot(uo,t,[o])}return r||[]}};y(Fe);const $e=(t=void 0,o=!1)=>{const r=o?rr:K,n=r`Check failed`,s=(u=n,f=void 0,d=void 0)=>{const h=gt(u,f,d);throw t!==void 0&&t(h),h};y(s);const a=(u,...f)=>s(r(u,...f));function c(u,f=void 0,d=void 0,h=void 0){u||s(f,d,h)}const i=(u,f,d=void 0,h=void 0,b=void 0)=>{pe(u,f)||s(d||r`Expected ${u} is same as ${f}`,h||mn,b)};y(i);const l=(u,f,d)=>{if(typeof u!==f){if(typeof f=="string"||a`${v(f)} must be a string`,d===void 0){const h=ve(f);d=r`${u} must be ${ke(h)}`}s(d,E)}};y(l);const g=ae(c,{error:gt,fail:s,equal:i,typeof:l,string:(u,f=void 0)=>l(u,"string",f),note:Re,details:r,Fail:a,quote:v,bare:ke,makeAssert:$e});return y(g)};y($e);const O=$e(),ir=O.equal,cr=H(Go,Nt);O(cr);const ur=cr.get;O(ur);const es=t=>z(ur,t,[])!==void 0,os=t=>{const o=+Z(t);return _n(o)&&Z(o)===t},rs=t=>{hn(t),Ft(It(t),o=>{const r=H(t,o);O(r),os(o)||x(t,o,{...r,writable:!1,configurable:!1})})},ns=()=>{if(typeof _.harden=="function")return _.harden;const t=new Vt,{harden:o}={harden(r){const n=new zt;function s(g){if(ut(g))return;const u=typeof g;if(u!=="object"&&u!=="function")throw E(`Unexpected typeof: ${u}`);ce(t,g)||Ze(n,g)||Xe(n,g)}const a=g=>{es(g)?rs(g):y(g);const u=Pt(g),f=N(g);s(f),Ft(It(u),d=>{const h=u[d];B(h,"value")?s(h.value):(s(h.get),s(h.set))})},c=ao===void 0&&Wn===void 0?a:g=>{if(Te(g)){const u=H(g,"stack");u&&u.get===ao&&u.configurable&&x(g,"stack",{value:z(ao,g,[])})}return a(g)},i=()=>{jo(n,c)},l=g=>{Ie(t,g)},p=()=>{jo(n,l)};return s(r),i(),p(),r}};return o},lr=(t,o,r,n,{warn:s,error:a})=>{r||s(`Removing ${n}`);try{delete t[o]}catch(c){if(B(t,o)){if(typeof t=="function"&&o==="prototype"&&(t.prototype=void 0,t.prototype===void 0)){s(`Tolerating undeletable ${n} === undefined`);return}a(`failed to delete ${n}`,c)}else a(`deleting ${n} threw`,c);throw c}},fr={Infinity:1/0,NaN:NaN,undefined:void 0},pr={isFinite:"isFinite",isNaN:"isNaN",parseFloat:"parseFloat",parseInt:"parseInt",decodeURI:"decodeURI",decodeURIComponent:"decodeURIComponent",encodeURI:"encodeURI",encodeURIComponent:"encodeURIComponent",Array:"Array",ArrayBuffer:"ArrayBuffer",BigInt:"BigInt",BigInt64Array:"BigInt64Array",BigUint64Array:"BigUint64Array",Boolean:"Boolean",DataView:"DataView",EvalError:"EvalError",Float16Array:"Float16Array",Float32Array:"Float32Array",Float64Array:"Float64Array",Int8Array:"Int8Array",Int16Array:"Int16Array",Int32Array:"Int32Array",Map:"Map",Number:"Number",Object:"Object",Promise:"Promise",Proxy:"Proxy",RangeError:"RangeError",ReferenceError:"ReferenceError",Set:"Set",String:"String",SyntaxError:"SyntaxError",TypeError:"TypeError",Uint8Array:"Uint8Array",Uint8ClampedArray:"Uint8ClampedArray",Uint16Array:"Uint16Array",Uint32Array:"Uint32Array",URIError:"URIError",WeakMap:"WeakMap",WeakSet:"WeakSet",Iterator:"Iterator",AsyncIterator:"AsyncIterator",AggregateError:"AggregateError",JSON:"JSON",Reflect:"Reflect",escape:"escape",unescape:"unescape",ModuleSource:"ModuleSource",lockdown:"lockdown",harden:"harden",HandledPromise:"HandledPromise"},dr={Date:"%InitialDate%",Error:"%InitialError%",RegExp:"%InitialRegExp%",Math:"%InitialMath%",getStackString:"%InitialGetStackString%"},gr={Date:"%SharedDate%",Error:"%SharedError%",RegExp:"%SharedRegExp%",Symbol:"%SharedSymbol%",Math:"%SharedMath%"},Za={globalThis:"%UniqueGlobalThis%",eval:"%UniqueEval%",Function:"%UniqueFunction%",Compartment:"%UniqueCompartment%"},yr=[EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError];typeof AggregateError<"u"&&j(yr,AggregateError);const Le={"[[Proto]]":"%FunctionPrototype%",length:"number",name:"string"},ss={"[[Proto]]":"%AsyncFunctionPrototype%"},e=Le,mr=ss,A={get:e,set:"undefined"},yt={get:e,set:e},as=function(){"use strict"};Ft(["caller","arguments"],t=>{try{as[t]}catch(o){o.message==="Restricted in strict mode"&&(Le[t]=yt)}});const hr=t=>t===A||t===yt;function Ot(t){return{"[[Proto]]":"%SharedError%",prototype:t}}function Dt(t){return{"[[Proto]]":"%ErrorPrototype%",constructor:t,message:"string",name:"string",toString:!1,cause:!1}}function lt(t){return{"[[Proto]]":"%TypedArray%",BYTES_PER_ELEMENT:"number",prototype:t}}function ft(t){return{"[[Proto]]":"%TypedArrayPrototype%",BYTES_PER_ELEMENT:"number",constructor:t}}const Sr={E:"number",LN10:"number",LN2:"number",LOG10E:"number",LOG2E:"number",PI:"number",SQRT1_2:"number",SQRT2:"number","@@toStringTag":"string",abs:e,acos:e,acosh:e,asin:e,asinh:e,atan:e,atanh:e,atan2:e,cbrt:e,ceil:e,clz32:e,cos:e,cosh:e,exp:e,expm1:e,floor:e,fround:e,hypot:e,imul:e,log:e,log1p:e,log10:e,log2:e,max:e,min:e,pow:e,round:e,sign:e,sin:e,sinh:e,sqrt:e,tan:e,tanh:e,trunc:e,f16round:e,sumPrecise:e,idiv:!1,idivmod:!1,imod:!1,imuldiv:!1,irem:!1,mod:!1,irandom:!1},Me={"[[Proto]]":null,"%ThrowTypeError%":e,Infinity:"number",NaN:"number",undefined:"undefined","%UniqueEval%":e,isFinite:e,isNaN:e,parseFloat:e,parseInt:e,decodeURI:e,decodeURIComponent:e,encodeURI:e,encodeURIComponent:e,Object:{"[[Proto]]":"%FunctionPrototype%",assign:e,create:e,defineProperties:e,defineProperty:e,entries:e,freeze:e,fromEntries:e,getOwnPropertyDescriptor:e,getOwnPropertyDescriptors:e,getOwnPropertyNames:e,getOwnPropertySymbols:e,getPrototypeOf:e,is:e,isExtensible:e,isFrozen:e,isSealed:e,keys:e,preventExtensions:e,prototype:"%ObjectPrototype%",seal:e,setPrototypeOf:e,values:e,hasOwn:e,groupBy:e,__getClass:!1},"%ObjectPrototype%":{"[[Proto]]":null,constructor:"Object",hasOwnProperty:e,isPrototypeOf:e,propertyIsEnumerable:e,toLocaleString:e,toString:e,valueOf:e,"--proto--":yt,__defineGetter__:e,__defineSetter__:e,__lookupGetter__:e,__lookupSetter__:e},"%UniqueFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%InertFunction%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%FunctionPrototype%"},"%FunctionPrototype%":{apply:e,bind:e,call:e,constructor:"%InertFunction%",toString:e,"@@hasInstance":e,caller:!1,arguments:!1,fileName:!1,lineNumber:!1},Boolean:{"[[Proto]]":"%FunctionPrototype%",prototype:"%BooleanPrototype%"},"%BooleanPrototype%":{constructor:"Boolean",toString:e,valueOf:e},"%SharedSymbol%":{"[[Proto]]":"%FunctionPrototype%",asyncIterator:"symbol",for:e,hasInstance:"symbol",isConcatSpreadable:"symbol",iterator:"symbol",keyFor:e,match:"symbol",matchAll:"symbol",prototype:"%SymbolPrototype%",replace:"symbol",search:"symbol",species:"symbol",split:"symbol",toPrimitive:"symbol",toStringTag:"symbol",unscopables:"symbol",asyncDispose:"symbol",dispose:"symbol",useSimple:!1,useSetter:!1,operatorSet:!1},"%SymbolPrototype%":{constructor:"%SharedSymbol%",description:A,toString:e,valueOf:e,"@@toPrimitive":e,"@@toStringTag":"string"},"%InitialError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:e,stackTraceLimit:yt,prepareStackTrace:yt,isError:e},"%SharedError%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%ErrorPrototype%",captureStackTrace:e,stackTraceLimit:yt,prepareStackTrace:yt,isError:e},"%ErrorPrototype%":{constructor:"%SharedError%",message:"string",name:"string",toString:e,at:!1,stack:yt,cause:!1},EvalError:Ot("%EvalErrorPrototype%"),RangeError:Ot("%RangeErrorPrototype%"),ReferenceError:Ot("%ReferenceErrorPrototype%"),SyntaxError:Ot("%SyntaxErrorPrototype%"),TypeError:Ot("%TypeErrorPrototype%"),URIError:Ot("%URIErrorPrototype%"),AggregateError:Ot("%AggregateErrorPrototype%"),"%EvalErrorPrototype%":Dt("EvalError"),"%RangeErrorPrototype%":Dt("RangeError"),"%ReferenceErrorPrototype%":Dt("ReferenceError"),"%SyntaxErrorPrototype%":Dt("SyntaxError"),"%TypeErrorPrototype%":Dt("TypeError"),"%URIErrorPrototype%":Dt("URIError"),"%AggregateErrorPrototype%":Dt("AggregateError"),Number:{"[[Proto]]":"%FunctionPrototype%",EPSILON:"number",isFinite:e,isInteger:e,isNaN:e,isSafeInteger:e,MAX_SAFE_INTEGER:"number",MAX_VALUE:"number",MIN_SAFE_INTEGER:"number",MIN_VALUE:"number",NaN:"number",NEGATIVE_INFINITY:"number",parseFloat:e,parseInt:e,POSITIVE_INFINITY:"number",prototype:"%NumberPrototype%"},"%NumberPrototype%":{constructor:"Number",toExponential:e,toFixed:e,toLocaleString:e,toPrecision:e,toString:e,valueOf:e},BigInt:{"[[Proto]]":"%FunctionPrototype%",asIntN:e,asUintN:e,prototype:"%BigIntPrototype%",bitLength:!1,fromArrayBuffer:!1,tdiv:!1,fdiv:!1,cdiv:!1,ediv:!1,tdivrem:!1,fdivrem:!1,cdivrem:!1,edivrem:!1,sqrt:!1,sqrtrem:!1,floorLog2:!1,ctz:!1},"%BigIntPrototype%":{constructor:"BigInt",toLocaleString:e,toString:e,valueOf:e,"@@toStringTag":"string"},"%InitialMath%":{...Sr,random:e},"%SharedMath%":{...Sr,random:e},"%InitialDate%":{"[[Proto]]":"%FunctionPrototype%",now:e,parse:e,prototype:"%DatePrototype%",UTC:e},"%SharedDate%":{"[[Proto]]":"%FunctionPrototype%",now:e,parse:e,prototype:"%DatePrototype%",UTC:e},"%DatePrototype%":{constructor:"%SharedDate%",getDate:e,getDay:e,getFullYear:e,getHours:e,getMilliseconds:e,getMinutes:e,getMonth:e,getSeconds:e,getTime:e,getTimezoneOffset:e,getUTCDate:e,getUTCDay:e,getUTCFullYear:e,getUTCHours:e,getUTCMilliseconds:e,getUTCMinutes:e,getUTCMonth:e,getUTCSeconds:e,setDate:e,setFullYear:e,setHours:e,setMilliseconds:e,setMinutes:e,setMonth:e,setSeconds:e,setTime:e,setUTCDate:e,setUTCFullYear:e,setUTCHours:e,setUTCMilliseconds:e,setUTCMinutes:e,setUTCMonth:e,setUTCSeconds:e,toDateString:e,toISOString:e,toJSON:e,toLocaleDateString:e,toLocaleString:e,toLocaleTimeString:e,toString:e,toTimeString:e,toUTCString:e,valueOf:e,"@@toPrimitive":e,getYear:e,setYear:e,toGMTString:e},String:{"[[Proto]]":"%FunctionPrototype%",fromCharCode:e,fromCodePoint:e,prototype:"%StringPrototype%",raw:e,fromArrayBuffer:!1},"%StringPrototype%":{length:"number",charAt:e,charCodeAt:e,codePointAt:e,concat:e,constructor:"String",endsWith:e,includes:e,indexOf:e,lastIndexOf:e,localeCompare:e,match:e,matchAll:e,normalize:e,padEnd:e,padStart:e,repeat:e,replace:e,replaceAll:e,search:e,slice:e,split:e,startsWith:e,substring:e,toLocaleLowerCase:e,toLocaleUpperCase:e,toLowerCase:e,toString:e,toUpperCase:e,trim:e,trimEnd:e,trimStart:e,valueOf:e,"@@iterator":e,at:e,isWellFormed:e,toWellFormed:e,unicodeSets:e,substr:e,anchor:e,big:e,blink:e,bold:e,fixed:e,fontcolor:e,fontsize:e,italics:e,link:e,small:e,strike:e,sub:e,sup:e,trimLeft:e,trimRight:e,compare:!1,__quote:!1},"%StringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:e,"@@toStringTag":"string"},"%InitialRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":A,escape:e,input:!1,$_:!1,lastMatch:!1,"$&":!1,lastParen:!1,"$+":!1,leftContext:!1,"$`":!1,rightContext:!1,"$'":!1,$1:!1,$2:!1,$3:!1,$4:!1,$5:!1,$6:!1,$7:!1,$8:!1,$9:!1},"%SharedRegExp%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%RegExpPrototype%","@@species":A,escape:e},"%RegExpPrototype%":{constructor:"%SharedRegExp%",exec:e,dotAll:A,flags:A,global:A,hasIndices:A,ignoreCase:A,"@@match":e,"@@matchAll":e,multiline:A,"@@replace":e,"@@search":e,source:A,"@@split":e,sticky:A,test:e,toString:e,unicode:A,unicodeSets:A,compile:!1},"%RegExpStringIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:e,"@@toStringTag":"string"},Array:{"[[Proto]]":"%FunctionPrototype%",from:e,isArray:e,of:e,prototype:"%ArrayPrototype%","@@species":A,at:e,fromAsync:e},"%ArrayPrototype%":{length:"number",concat:e,constructor:"Array",copyWithin:e,entries:e,every:e,fill:e,filter:e,find:e,findIndex:e,flat:e,flatMap:e,forEach:e,includes:e,indexOf:e,join:e,keys:e,lastIndexOf:e,map:e,pop:e,push:e,reduce:e,reduceRight:e,reverse:e,shift:e,slice:e,some:e,sort:e,splice:e,toLocaleString:e,toString:e,unshift:e,values:e,"@@iterator":e,"@@unscopables":{"[[Proto]]":null,copyWithin:"boolean",entries:"boolean",fill:"boolean",find:"boolean",findIndex:"boolean",flat:"boolean",flatMap:"boolean",includes:"boolean",keys:"boolean",values:"boolean",at:"boolean",findLast:"boolean",findLastIndex:"boolean",toReversed:"boolean",toSorted:"boolean",toSpliced:"boolean",with:"boolean",group:"boolean",groupToMap:"boolean",groupBy:"boolean"},findLast:e,findLastIndex:e,toReversed:e,toSorted:e,toSpliced:e,with:e,group:e,groupToMap:e,groupBy:e,at:e},"%ArrayIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:e,"@@toStringTag":"string"},"%TypedArray%":{"[[Proto]]":"%FunctionPrototype%",from:e,of:e,prototype:"%TypedArrayPrototype%","@@species":A},"%TypedArrayPrototype%":{buffer:A,byteLength:A,byteOffset:A,constructor:"%TypedArray%",copyWithin:e,entries:e,every:e,fill:e,filter:e,find:e,findIndex:e,forEach:e,includes:e,indexOf:e,join:e,keys:e,lastIndexOf:e,length:A,map:e,reduce:e,reduceRight:e,reverse:e,set:e,slice:e,some:e,sort:e,subarray:e,toLocaleString:e,toString:e,values:e,"@@iterator":e,"@@toStringTag":A,at:e,findLast:e,findLastIndex:e,toReversed:e,toSorted:e,with:e},BigInt64Array:lt("%BigInt64ArrayPrototype%"),BigUint64Array:lt("%BigUint64ArrayPrototype%"),Float16Array:lt("%Float16ArrayPrototype%"),Float32Array:lt("%Float32ArrayPrototype%"),Float64Array:lt("%Float64ArrayPrototype%"),Int16Array:lt("%Int16ArrayPrototype%"),Int32Array:lt("%Int32ArrayPrototype%"),Int8Array:lt("%Int8ArrayPrototype%"),Uint16Array:lt("%Uint16ArrayPrototype%"),Uint32Array:lt("%Uint32ArrayPrototype%"),Uint8ClampedArray:lt("%Uint8ClampedArrayPrototype%"),Uint8Array:{...lt("%Uint8ArrayPrototype%"),fromBase64:e,fromHex:e},"%BigInt64ArrayPrototype%":ft("BigInt64Array"),"%BigUint64ArrayPrototype%":ft("BigUint64Array"),"%Float16ArrayPrototype%":ft("Float16Array"),"%Float32ArrayPrototype%":ft("Float32Array"),"%Float64ArrayPrototype%":ft("Float64Array"),"%Int16ArrayPrototype%":ft("Int16Array"),"%Int32ArrayPrototype%":ft("Int32Array"),"%Int8ArrayPrototype%":ft("Int8Array"),"%Uint16ArrayPrototype%":ft("Uint16Array"),"%Uint32ArrayPrototype%":ft("Uint32Array"),"%Uint8ClampedArrayPrototype%":ft("Uint8ClampedArray"),"%Uint8ArrayPrototype%":{...ft("Uint8Array"),setFromBase64:e,setFromHex:e,toBase64:e,toHex:e},Map:{"[[Proto]]":"%FunctionPrototype%","@@species":A,prototype:"%MapPrototype%",groupBy:e},"%MapPrototype%":{clear:e,constructor:"Map",delete:e,entries:e,forEach:e,get:e,has:e,keys:e,set:e,size:A,values:e,"@@iterator":e,"@@toStringTag":"string"},"%MapIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:e,"@@toStringTag":"string"},Set:{"[[Proto]]":"%FunctionPrototype%",prototype:"%SetPrototype%","@@species":A,groupBy:!1},"%SetPrototype%":{add:e,clear:e,constructor:"Set",delete:e,entries:e,forEach:e,has:e,keys:e,size:A,values:e,"@@iterator":e,"@@toStringTag":"string",intersection:e,union:e,difference:e,symmetricDifference:e,isSubsetOf:e,isSupersetOf:e,isDisjointFrom:e},"%SetIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:e,"@@toStringTag":"string"},WeakMap:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakMapPrototype%"},"%WeakMapPrototype%":{constructor:"WeakMap",delete:e,get:e,has:e,set:e,"@@toStringTag":"string"},WeakSet:{"[[Proto]]":"%FunctionPrototype%",prototype:"%WeakSetPrototype%"},"%WeakSetPrototype%":{add:e,constructor:"WeakSet",delete:e,has:e,"@@toStringTag":"string"},ArrayBuffer:{"[[Proto]]":"%FunctionPrototype%",isView:e,prototype:"%ArrayBufferPrototype%","@@species":A,fromString:!1,fromBigInt:!1},"%ArrayBufferPrototype%":{byteLength:A,constructor:"ArrayBuffer",slice:e,"@@toStringTag":"string",concat:!1,transfer:e,resize:e,resizable:A,maxByteLength:A,transferToFixedLength:e,detached:A,transferToImmutable:e,sliceToImmutable:e,immutable:A},"%ImmutableArrayBufferPrototype%":{"[[Proto]]":"%ArrayBufferPrototype%",byteLength:A,slice:e,"@@toStringTag":"string",transfer:e,resize:e,resizable:A,maxByteLength:A,transferToFixedLength:e,detached:A,transferToImmutable:e,sliceToImmutable:e,immutable:A},SharedArrayBuffer:!1,"%SharedArrayBufferPrototype%":!1,DataView:{"[[Proto]]":"%FunctionPrototype%",BYTES_PER_ELEMENT:"number",prototype:"%DataViewPrototype%"},"%DataViewPrototype%":{buffer:A,byteLength:A,byteOffset:A,constructor:"DataView",getBigInt64:e,getBigUint64:e,getFloat16:e,getFloat32:e,getFloat64:e,getInt8:e,getInt16:e,getInt32:e,getUint8:e,getUint16:e,getUint32:e,setBigInt64:e,setBigUint64:e,setFloat16:e,setFloat32:e,setFloat64:e,setInt8:e,setInt16:e,setInt32:e,setUint8:e,setUint16:e,setUint32:e,"@@toStringTag":"string"},Atomics:!1,JSON:{parse:e,stringify:e,"@@toStringTag":"string",rawJSON:e,isRawJSON:e},Iterator:{"[[Proto]]":"%FunctionPrototype%",prototype:"%IteratorPrototype%",from:e,zip:e,zipKeyed:e,concat:e},"%IteratorPrototype%":{"@@iterator":e,constructor:"Iterator",map:e,filter:e,take:e,drop:e,flatMap:e,reduce:e,toArray:e,forEach:e,some:e,every:e,find:e,"@@toStringTag":"string",toAsync:e,"@@dispose":!1},"%WrapForValidIteratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:e,return:e},"%IteratorHelperPrototype%":{"[[Proto]]":"%IteratorPrototype%",next:e,return:e,"@@toStringTag":"string"},AsyncIterator:{"[[Proto]]":"%FunctionPrototype%",prototype:"%AsyncIteratorPrototype%",from:e},"%AsyncIteratorPrototype%":{"@@asyncIterator":e,constructor:"AsyncIterator",map:e,filter:e,take:e,drop:e,flatMap:e,reduce:e,toArray:e,forEach:e,some:e,every:e,find:e,"@@toStringTag":"string","@@asyncDispose":!1},"%WrapForValidAsyncIteratorPrototype%":{"[[Proto]]":"%AsyncIteratorPrototype%",next:e,return:e},"%AsyncIteratorHelperPrototype%":{"[[Proto]]":"%AsyncIteratorPrototype%",next:e,return:e,"@@toStringTag":"string"},"%InertGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%Generator%"},"%Generator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertGeneratorFunction%",prototype:"%GeneratorPrototype%","@@toStringTag":"string"},"%InertAsyncGeneratorFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncGenerator%"},"%AsyncGenerator%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncGeneratorFunction%",prototype:"%AsyncGeneratorPrototype%",length:"number","@@toStringTag":"string"},"%GeneratorPrototype%":{"[[Proto]]":"%IteratorPrototype%",constructor:"%Generator%",next:e,return:e,throw:e,"@@toStringTag":"string"},"%AsyncGeneratorPrototype%":{"[[Proto]]":"%AsyncIteratorPrototype%",constructor:"%AsyncGenerator%",next:e,return:e,throw:e,"@@toStringTag":"string"},HandledPromise:{"[[Proto]]":"Promise",applyFunction:e,applyFunctionSendOnly:e,applyMethod:e,applyMethodSendOnly:e,get:e,getSendOnly:e,prototype:"%PromisePrototype%",resolve:e},ModuleSource:{"[[Proto]]":"%AbstractModuleSource%",prototype:"%ModuleSourcePrototype%"},"%ModuleSourcePrototype%":{"[[Proto]]":"%AbstractModuleSourcePrototype%",constructor:"ModuleSource","@@toStringTag":"string",bindings:A,needsImport:A,needsImportMeta:A,imports:A,exports:A,reexports:A},"%AbstractModuleSource%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%AbstractModuleSourcePrototype%"},"%AbstractModuleSourcePrototype%":{constructor:"%AbstractModuleSource%"},Promise:{"[[Proto]]":"%FunctionPrototype%",all:e,allSettled:e,any:e,prototype:"%PromisePrototype%",race:e,reject:e,resolve:e,withResolvers:e,"@@species":A,try:e},"%PromisePrototype%":{catch:e,constructor:"Promise",finally:e,then:e,"@@toStringTag":"string","UniqueSymbol(async_id_symbol)":yt,"UniqueSymbol(trigger_async_id_symbol)":yt,"UniqueSymbol(destroyed)":yt},"%InertAsyncFunction%":{"[[Proto]]":"%InertFunction%",prototype:"%AsyncFunctionPrototype%"},"%AsyncFunctionPrototype%":{"[[Proto]]":"%FunctionPrototype%",constructor:"%InertAsyncFunction%",length:"number","@@toStringTag":"string"},Reflect:{apply:e,construct:e,defineProperty:e,deleteProperty:e,get:e,getOwnPropertyDescriptor:e,getPrototypeOf:e,has:e,isExtensible:e,ownKeys:e,preventExtensions:e,set:e,setPrototypeOf:e,"@@toStringTag":"string"},Proxy:{"[[Proto]]":"%FunctionPrototype%",revocable:e},escape:e,unescape:e,"%UniqueCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:e},"%InertCompartment%":{"[[Proto]]":"%FunctionPrototype%",prototype:"%CompartmentPrototype%",toString:e},"%CompartmentPrototype%":{constructor:"%InertCompartment%",evaluate:e,globalThis:A,name:A,import:mr,load:mr,importNow:e,module:e,"@@toStringTag":"string"},lockdown:e,harden:{...e,isFake:"boolean"},"%InitialGetStackString%":e},is=t=>typeof t=="function";function cs(t,o,r){if(B(t,o)){const n=H(t,o);if(!n||!pe(n.value,r.value)||n.get!==r.get||n.set!==r.set||n.writable!==r.writable||n.enumerable!==r.enumerable||n.configurable!==r.configurable)throw E(`Conflicting definitions of ${o}`)}x(t,o,r)}function us(t,o){for(const[r,n]of tt(o))cs(t,r,n)}function Er(t,o){const r={__proto__:null};for(const[n,s]of tt(o))B(t,n)&&(r[s]=t[n]);return r}const br=t=>{const o=$(null);let r;const n=l=>{us(o,Pt(l))};y(n);const s=()=>{for(const[l,p]of tt(o)){if(ut(p)||!B(p,"prototype"))continue;const g=Me[l];if(typeof g!="object")throw E(`Expected permit object at permits.${l}`);const u=g.prototype;if(!u){lr(p,"prototype",!1,`${l}.prototype`,t);continue}if(typeof u!="string"||!B(Me,u))throw E(`Unrecognized ${l}.prototype permits entry`);const f=p.prototype;if(B(o,u)){if(o[u]!==f)throw E(`Conflicting bindings of ${u}`);continue}o[u]=f}};y(s);const a=()=>(y(o),r=new Vt(Rt(No(o),is)),o);y(a);const c=l=>{if(!r)throw E("isPseudoNative can only be called after finalIntrinsics");return ce(r,l)};y(c);const i={addIntrinsics:n,completePrototypes:s,finalIntrinsics:a,isPseudoNative:c};return y(i),n(fr),n(Er(_,pr)),i},ls=(t,o)=>{const{addIntrinsics:r,finalIntrinsics:n}=br(o);return r(Er(t,gr)),n()};function fs(t,o,r){const n=["undefined","boolean","number","string","symbol"],s=new dt(Kt?Y(Rt(tt(Me["%SharedSymbol%"]),([u,f])=>f==="symbol"&&typeof Kt[u]=="symbol"),([u])=>[Kt[u],`@@${u}`]):[]);function a(u,f){if(typeof f=="string")return f;const d=Tt(s,f);if(typeof f=="symbol"){if(d)return d;{const h=En(f);return h!==void 0?`RegisteredSymbol(${h})`:`Unique${Z(f)}`}}throw E(`Unexpected property name type ${u} ${f}`)}function c(u,f,d){if(ut(f))throw E(`Object expected: ${u}, ${Z(f)}, ${d}`);const h=N(f);if(!(h===null&&d===null)){if(d!==void 0&&typeof d!="string")throw E(`Malformed permit ${u}.__proto__`);if(h!==t[d||"%ObjectPrototype%"])throw E(`Unexpected [[Prototype]] at ${u}.__proto__ (expected ${d||"%ObjectPrototype%"})`)}}function i(u,f,d,h){if(typeof h=="object")return g(u,f,h),!0;if(h===!1)return!1;if(typeof h=="string"){if(d==="prototype"||d==="constructor"){if(B(t,h)){if(f!==t[h])throw E(`Does not match permit for ${u}`);return!0}}else if(Ee(n,h)){if(typeof f!==h)throw E(`At ${u} expected ${h} not ${typeof f}`);return!0}}throw E(`Unexpected property ${d} with permit ${h} at ${u}`)}function l(u,f,d,h){const b=H(f,d);if(!b)throw E(`Property ${d} not found at ${u}`);if(B(b,"value")){if(hr(h))throw E(`Accessor expected at ${u}`);return i(u,b.value,d,h)}if(!hr(h))throw E(`Accessor not expected at ${u}`);return i(`${u}<get>`,b.get,d,h.get)&&i(`${u}<set>`,b.set,d,h.set)}function p(u,f,d){const h=d==="__proto__"?"--proto--":d;if(B(f,h))return f[h];if(typeof u=="function"&&B(Le,h))return Le[h]}function g(u,f,d){if(f==null)return;const h=d["[[Proto]]"];c(u,f,h),typeof f=="function"&&o(f);for(const b of It(f)){const m=a(u,b),S=`${u}.${m}`,w=p(f,d,m);(!w||!l(S,f,b,w))&&lr(f,b,w===!1,S,r)}}g("intrinsics",t,Me)}function ps(){try{rt.prototype.constructor("return 1")}catch{return y({})}const t={};function o(r,n,s){let a;try{a=(0,eval)(s)}catch(l){if(l instanceof se)return;throw l}const c=N(a),i=function(){throw E("Function.prototype.constructor is not a valid constructor.")};C(i,{prototype:{value:c},name:{value:r,writable:!1,enumerable:!1,configurable:!0}}),C(c,{constructor:{value:i}}),i!==rt.prototype.constructor&&de(i,rt.prototype.constructor),t[n]=i}return o("Function","%InertFunction%","(function(){})"),o("GeneratorFunction","%InertGeneratorFunction%","(function*(){})"),o("AsyncFunction","%InertAsyncFunction%","(async function(){})"),io!==void 0&&o("AsyncGeneratorFunction","%InertAsyncGeneratorFunction%","(async function*(){})"),t}function ds(){const t=fn,o=t.prototype,r={now(){throw E("secure mode Calling %SharedDate%.now() throws")}},n=({powers:c="none"}={})=>{let i;return c==="original"?i=function(...p){return new.target===void 0?z(t,void 0,p):ge(t,p,new.target)}:i=function(...p){if(new.target===void 0)throw E("secure mode Calling %SharedDate% constructor as a function throws");if(p.length===0)throw E("secure mode Calling new %SharedDate%() with no arguments throws");return ge(t,p,new.target)},C(i,{length:{value:7},prototype:{value:o,writable:!1,enumerable:!1,configurable:!1},parse:{value:t.parse,writable:!0,enumerable:!1,configurable:!0},UTC:{value:t.UTC,writable:!0,enumerable:!1,configurable:!0}}),i},s=n({powers:"original"}),a=n({powers:"none"});return C(s,{now:{value:t.now,writable:!0,enumerable:!1,configurable:!0}}),C(a,{now:{value:r.now,writable:!0,enumerable:!1,configurable:!0}}),C(o,{constructor:{value:a}}),{"%InitialDate%":s,"%SharedDate%":a}}function gs(){const t=gn,o=t,{random:r,...n}=Pt(t),a=$(qe,{...n,random:{value:{random(){throw E("secure mode %SharedMath%.random() throws")}}.random,writable:!0,enumerable:!1,configurable:!0}});return{"%InitialMath%":o,"%SharedMath%":a}}function ys(t="safe"){const o=Ct.prototype,r=(a={})=>{const c=function(...l){return new.target===void 0?Ct(...l):ge(Ct,l,new.target)};if(C(c,{length:{value:2},prototype:{value:o,writable:!1,enumerable:!1,configurable:!1}}),Ye){const i=H(Ct,Ye);if(!i)throw E("no RegExp[Symbol.species] descriptor");C(c,{[Ye]:i})}return c},n=r(),s=r();return t!=="unsafe"&&delete o.compile,C(o,{constructor:{value:s}}),{"%InitialRegExp%":n,"%SharedRegExp%":s}}const ms={"%ObjectPrototype%":{toString:!0},"%FunctionPrototype%":{toString:!0},"%ErrorPrototype%":{name:!0},"%IteratorPrototype%":{toString:!0,constructor:!0,[Nt]:!0}},_r={"%ObjectPrototype%":{toString:!0,valueOf:!0},"%ArrayPrototype%":{toString:!0,push:!0,concat:!0,[At]:!0},"%FunctionPrototype%":{constructor:!0,bind:!0,toString:!0},"%ErrorPrototype%":{constructor:!0,message:!0,name:!0,toString:!0},"%TypeErrorPrototype%":{constructor:!0,message:!0,name:!0},"%SyntaxErrorPrototype%":{message:!0,name:!0},"%RangeErrorPrototype%":{message:!0,name:!0},"%URIErrorPrototype%":{message:!0,name:!0},"%EvalErrorPrototype%":{message:!0,name:!0},"%ReferenceErrorPrototype%":{message:!0,name:!0},"%AggregateErrorPrototype%":{message:!0,name:!0},"%PromisePrototype%":{constructor:!0},"%TypedArrayPrototype%":"*","%Generator%":{constructor:!0,name:!0,toString:!0},"%IteratorPrototype%":{toString:!0,constructor:!0,[Nt]:!0}},hs={..._r,"%ObjectPrototype%":"*","%TypedArrayPrototype%":"*","%MapPrototype%":"*","%SetPrototype%":"*"};function Ss(t,o,{warn:r},n=[]){const s=new zt(n);function a(g,u,f,d){if("value"in d&&d.configurable){const{value:h}=d,b=Ze(s,f),{get:m,set:S}=H({get[f](){return h},set[f](w){if(u===this)throw E(`Cannot assign to read only property '${Z(f)}' of '${g}'`);B(this,f)?this[f]=w:(b&&r(E(`Override property ${f}`)),x(this,f,{value:w,writable:!0,enumerable:!0,configurable:!0}))}},f);x(m,"originalValue",{value:h,writable:!1,enumerable:!1,configurable:!1}),x(u,f,{get:m,set:S,enumerable:d.enumerable,configurable:d.configurable})}}function c(g,u,f){const d=H(u,f);d&&a(g,u,f,d)}function i(g,u){const f=Pt(u);f&&Ft(It(f),d=>a(g,u,d,f[d]))}function l(g,u,f){for(const d of It(f)){const h=H(u,d);if(!h||h.get||h.set)continue;const b=`${g}.${Z(d)}`,m=f[d];if(m===!0)c(b,u,d);else if(m==="*")i(b,h.value);else if(!ut(m))l(b,h.value,m);else throw E(`Unexpected override enablement plan ${b}`)}}let p;switch(o){case"min":{p=ms;break}case"moderate":{p=_r;break}case"severe":{p=hs;break}default:throw E(`unrecognized overrideTaming ${o}`)}l("root",t,p)}const{Fail:lo,quote:Oe}=O,Es=/^(\w*[a-z])Locale([A-Z]\w*)$/,Pr={localeCompare(t){if(this===null||this===void 0)throw E('Cannot localeCompare with null or undefined "this" value');const o=`${this}`,r=`${t}`;return o<r?-1:o>r?1:(o===r||lo`expected ${Oe(o)} and ${Oe(r)} to compare`,0)},toString(){return`${this}`}},bs=Pr.localeCompare,_s=Pr.toString;function Ps(t,o="safe"){if(o!=="unsafe"){x(Z.prototype,"localeCompare",{value:bs});for(const r of qt(t)){const n=t[r];if(!ut(n))for(const s of qt(n)){const a=eo(Es,s);if(a){typeof n[s]=="function"||lo`expected ${Oe(s)} to be a function`;const c=`${a[1]}${a[2]}`,i=n[c];typeof i=="function"||lo`function ${Oe(c)} not found`,x(n,s,{value:i})}}}x(xo.prototype,"toLocaleString",{value:_s})}}const As=t=>({eval(r){return typeof r!="string"?r:t(r)}}).eval,{Fail:Ar}=O,ws=t=>{const o=function(n){const s=`${_e(arguments)||""}`,a=`${Jt(arguments,",")}`;new rt(a,""),new rt(s);const c=`(function anonymous(${a}
3
+ ) {
4
+ ${s}
5
+ })`;return t(c)};return C(o,{prototype:{value:rt.prototype,writable:!1,enumerable:!1,configurable:!1}}),N(rt)===rt.prototype||Ar`Function prototype is the same accross compartments`,N(o)===rt.prototype||Ar`Function constructor prototype is the same across compartments`,o},Is=t=>{x(t,Sn,y(ae($(null),{set:y(()=>{throw E("Cannot set Symbol.unscopables of a Compartment's globalThis")}),enumerable:!1,configurable:!1})))},wr=t=>{for(const[o,r]of tt(fr))x(t,o,{value:r,writable:!1,enumerable:!1,configurable:!1})},Ir=(t,{intrinsics:o,newGlobalPropertyNames:r,makeCompartmentConstructor:n,markVirtualizedNativeFunction:s,parentCompartment:a})=>{for(const[i,l]of tt(pr))B(o,l)&&x(t,i,{value:o[l],writable:!0,enumerable:!1,configurable:!0});for(const[i,l]of tt(r))B(o,l)&&x(t,i,{value:o[l],writable:!0,enumerable:!1,configurable:!0});const c={globalThis:t};c.Compartment=y(n(n,o,s,{parentCompartment:a,enforceNew:!0}));for(const[i,l]of tt(c))x(t,i,{value:l,writable:!0,enumerable:!1,configurable:!0}),typeof l=="function"&&s(l)},fo=(t,o,r)=>{{const n=y(As(o));r(n),x(t,"eval",{value:n,writable:!0,enumerable:!1,configurable:!0})}{const n=y(ws(o));r(n),x(t,"Function",{value:n,writable:!0,enumerable:!1,configurable:!0})}},{Fail:Ts,quote:Tr}=O,vr=y({__proto__:null}),xr=new re(vr,y({get(t,o){Ts`Please report unexpected scope handler trap: ${Tr(Z(o))}`}})),kr=y($(xr,Pt({get(t,o){},set(t,o,r){throw ne(`${Z(o)} is not defined`)},has(t,o){return!0},getPrototypeOf(t){return null},getOwnPropertyDescriptor(t,o){const r=Tr(Z(o));console.warn(`getOwnPropertyDescriptor trap on scopeTerminatorHandler for ${r}`,E().stack)},ownKeys(t){return[]}}))),vs=new re(vr,kr),xs=y({__proto__:null}),Cr=t=>{const o={...kr,set(s,a,c){return Mo(t,a,c)},has(s,a){return!0}},r=y($(xr,Pt(o)));return new re(xs,r)};y(Cr);const{Fail:ks}=O,Cs=()=>{const t=$(null),o=y({eval:{get(){return delete t.eval,no},enumerable:!1,configurable:!0}}),r={evalScope:t,allowNextEvalToBeUnsafe(){const{revoked:n}=r;n!==null&&ks`a handler did not reset allowNextEvalToBeUnsafe ${n.err}`,C(t,o)},revoked:null};return r},Nr="\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)",Ns=new Ct(`(?:\\s*//${Nr}|/\\*${Nr}\\s*\\*/)\\s*$`),po=t=>{let o="<unknown>";for(;t.length>0;){const r=eo(Ns,t);if(r===null)break;t=oo(t,0,t.length-r[0].length),r[3]==="sourceURL"?o=r[4]:r[1]==="sourceURL"&&(o=r[2])}return o};function go(t,o){const r=On(t,o);if(r<0)return-1;const n=t[r]===`
6
+ `?1:0;return ro(oo(t,0,r),`
7
+ `).length+n}const Rr=new Ct("(?:<!--|-->)","g"),Fr=t=>{const o=go(t,Rr);if(o<0)return t;const r=po(t);throw se(`Possible HTML comment rejected at ${r}:${o}. (SES_HTML_COMMENT_REJECTED)`)},$r=t=>we(t,Rr,r=>r[0]==="<"?"< ! --":"-- >"),Lr=new Ct("(^|[^.]|\\.\\.\\.)\\bimport(\\s*(?:\\(|/[/*]))","g"),Mr=t=>{const o=go(t,Lr);if(o<0)return t;const r=po(t);throw se(`Possible import expression rejected at ${r}:${o}. (SES_IMPORT_REJECTED)`)},Or=t=>we(t,Lr,(r,n,s)=>`${n}__import__${s}`),Rs=new Ct("(^|[^.])\\beval(\\s*\\()","g"),Dr=t=>{const o=go(t,Rs);if(o<0)return t;const r=po(t);throw se(`Possible direct eval expression rejected at ${r}:${o}. (SES_EVAL_REJECTED)`)},Ur=t=>(t=Fr(t),t=Mr(t),t),Gr=(t,o)=>{for(let r=0,n=o.length;r<n;r+=1){const s=o[r];t=s(t)}return t},ei=y({rejectHtmlComments:y(Fr),evadeHtmlCommentTest:y($r),rejectImportExpressions:y(Mr),evadeImportExpressionTest:y(Or),rejectSomeDirectEvalExpressions:y(Dr),mandatoryTransforms:y(Ur),applyTransforms:y(Gr)}),Fs=["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","let","static","enum","implements","package","protected","interface","private","public","await","null","true","false","this","arguments"],$s=/^[a-zA-Z_$][\w$]*$/,Hr=t=>t!=="eval"&&!Ee(Fs,t)&&to($s,t);function Br(t,o){const r=H(t,o);return r&&r.configurable===!1&&r.writable===!1&&B(r,"value")}const Ls=(t,o={})=>{const r=qt(t),n=qt(o),s=Rt(n,c=>Hr(c)&&Br(o,c));return{globalObjectConstants:Rt(r,c=>!Ee(n,c)&&Hr(c)&&Br(t,c)),moduleLexicalConstants:s}};function jr(t,o){return t.length===0?"":`const {${Jt(t,",")}} = this.${o};`}const Ms=t=>{const{globalObjectConstants:o,moduleLexicalConstants:r}=Ls(t.globalObject,t.moduleLexicals),n=jr(o,"globalObject"),s=jr(r,"moduleLexicals"),a=rt(`
8
+ with (this.scopeTerminator) {
9
+ with (this.globalObject) {
10
+ with (this.moduleLexicals) {
11
+ with (this.evalScope) {
12
+ ${n}
13
+ ${s}
14
+ return function() {
15
+ 'use strict';
16
+ return eval(arguments[0]);
17
+ };
18
+ }
19
+ }
20
+ }
21
+ }
22
+ `);return z(a,t,[])},{Fail:Os}=O,yo=({globalObject:t,moduleLexicals:o={},globalTransforms:r=[],sloppyGlobalsMode:n=!1})=>{const s=n?Cr(t):vs,a=Cs(),{evalScope:c}=a,i=y({evalScope:c,moduleLexicals:o,globalObject:t,scopeTerminator:s});let l;const p=()=>{l||(l=Ms(i))};return{safeEvaluate:(u,f)=>{const{localTransforms:d=[]}=f||{};p(),u=Gr(u,be([d,r,[Ur]],Jo));let h;try{return a.allowNextEvalToBeUnsafe(),z(l,t,[u])}catch(b){throw h=b,b}finally{const b="eval"in c;delete c.eval,b&&(a.revoked={err:h},Os`handler did not reset allowNextEvalToBeUnsafe ${h}`)}}}},Ds=") { [native code] }";let mo;const Wr=()=>{if(mo===void 0){const t=new Vt;x(Se,"toString",{value:{toString(){const r=Gn(this);return Wo(r,Ds)||!ce(t,this)?r:`function ${this.name}() { [native code] }`}}.toString}),mo=y(r=>Ie(t,r))}return mo};function Us(t="safe"){if(t==="unsafe")return;const o=_.process||void 0;if(typeof o=="object"){const r=H(o,"domain");if(r!==void 0&&r.get!==void 0)throw E("SES failed to lockdown, Node.js domains have been initialized (SES_NO_DOMAINS)");x(o,"domain",{value:null,configurable:!1,writable:!1,enumerable:!1})}}const Gs=()=>{const t={},o=_.ModuleSource;if(o!==void 0){let r=function(){};t.ModuleSource=o;const n=N(o);n===Se?(de(o,r),t["%AbstractModuleSource%"]=r,t["%AbstractModuleSourcePrototype%"]=r.prototype):(t["%AbstractModuleSource%"]=n,t["%AbstractModuleSourcePrototype%"]=n.prototype);const s=o.prototype;s!==void 0&&(t["%ModuleSourcePrototype%"]=s,N(s)===qe&&de(o.prototype,r.prototype))}return t},vt=(t,o)=>x(o,"name",{value:t}),ho=y([["debug","debug"],["log","log"],["info","info"],["warn","warn"],["error","error"],["trace","log"],["dirxml","log"],["group","log"],["groupCollapsed","log"]]),So=y([["assert","error"],["timeLog","log"],["clear",void 0],["count","info"],["countReset",void 0],["dir","log"],["groupEnd","log"],["table","log"],["time","info"],["timeEnd","info"],["profile",void 0],["profileEnd",void 0],["timeStamp",void 0]]),zr=y([...ho,...So]);y((t,{shouldResetForDebugging:o=!1}={})=>{o&&t.resetErrorTagNum();let r=[];const n=Lt(Y(zr,([c,i])=>{const l=vt(c,(...p)=>{j(r,[c,...p])});return[c,y(l)]}));y(n);const s=()=>{const c=y(r);return r=[],c};return y(s),y({loggingConsole:n,takeLog:s})});const ri=(t,o)=>{for(const[r,...n]of t)o[r](...n)},Ut={NOTE:"ERROR_NOTE:",MESSAGE:"ERROR_MESSAGE:",CAUSE:"cause:",ERRORS:"errors:"};y(Ut);const Eo=(t,o)=>{if(!t)return;const{getStackString:r,tagError:n,takeMessageLogArgs:s,takeNoteLogArgsArray:a}=o,c=(m,S)=>Y(m,I=>Te(I)?(j(S,I),`(${n(I)})`):I),i=(m,S,w,I,T)=>{const R=n(S),F=w===Ut.MESSAGE?`${R}:`:`${R} ${w}`,U=c(I,T);t[m](F,...U)},l=(m,S,w=void 0)=>{if(S.length===0)return;if(S.length===1&&w===void 0){u(m,S[0]);return}let I;S.length===1?I="Nested error":I=`Nested ${S.length} errors`,w!==void 0&&(I=`${I} under ${w}`),t.group(I);try{for(const T of S)u(m,T)}finally{t.groupEnd&&t.groupEnd()}},p=new Vt,g=m=>(S,w)=>{const I=[];i(m,S,Ut.NOTE,w,I),l(m,I,n(S))},u=(m,S)=>{if(ce(p,S))return;const w=n(S);Ie(p,S);const I=[],T=s(S),R=a(S,g(m));T===void 0?t[m](`${w}:`,S.message):i(m,S,Ut.MESSAGE,T,I);let F=r(S);typeof F=="string"&&F.length>=1&&!Wo(F,`
23
+ `)&&(F+=`
24
+ `),t[m](F),S.cause&&i(m,S,Ut.CAUSE,[S.cause],I),S.errors&&i(m,S,Ut.ERRORS,S.errors,I);for(const U of R)i(m,S,Ut.NOTE,U,I);l(m,I,w)},f=Y(ho,([m,S])=>{const w=vt(m,(...I)=>{const T=[],R=c(I,T);t[m]&&t[m](...R),l(m,T)});return[m,y(w)]}),d=Rt(So,([m,S])=>m in t),h=Y(d,([m,S])=>{const w=vt(m,(...I)=>{t[m](...I)});return[m,y(w)]}),b=Lt([...f,...h]);return y(b)};y(Eo);const Hs=(t,o,r)=>{const[n,...s]=ro(t,o),a=be(s,c=>[o,...r,c]);return["",n,...a]},Kr=t=>y(r=>{const n=[],s=(...i)=>(n.length>0&&(i=be(i,l=>typeof l=="string"&&zo(l,`
25
+ `)?Hs(l,`
26
+ `,n):[l]),i=[...n,...i]),r(...i)),a=Lt([...Y(ho,([i])=>[i,vt(i,(...l)=>s(...l))]),...Y(So,([i])=>[i,vt(i,(...l)=>s(i,...l))])]);for(const i of["group","groupCollapsed"])a[i]?a[i]=vt(i,(...l)=>{l.length>=1&&s(...l),j(n," ")}):a[i]=vt(i,()=>{});return a.groupEnd=vt("groupEnd",a.groupEnd?(...i)=>{_e(n)}:()=>{}),harden(a),Eo(a,t)});y(Kr),y((t,o,r=void 0)=>{const n=Rt(zr,([c,i])=>c in t),s=Y(n,([c,i])=>{const l=vt(c,(...p)=>{(i===void 0||o.canLog(i))&&t[c](...p)});return[c,y(l)]}),a=Lt(s);return y(a)});const Vr=t=>{if(Wt===void 0)return;let o=0;const r=new dt;let n;const s=u=>{Nn(r,u),n&&r.size===0&&(n(),n=void 0)},a=new _t,c=u=>{if(Pe(r,u)){const f=Tt(r,u);s(u),t(f)}},i=new Wt(c);return{rejectionHandledHandler:u=>{const f=k(a,u);s(f)},unhandledRejectionHandler:(u,f)=>{o+=1;const d=o;et(r,d,u),ot(a,f,d),Bn(i,f,d,f)},processTerminationHandler:()=>{for(const[u,f]of Rn(r))s(u),t(f)}}},qr=t=>{throw E(t)},Yr=(t,o)=>y((...r)=>z(t,o,r)),Bs=(t="safe",o="platform",r="report",n=void 0)=>{let s;n===void 0?s=Fe:s={...Fe,getStackString:n};const a=typeof _.console<"u"?_.console:typeof _.print=="function"?(p=>y({debug:p,log:p,info:p,warn:p,error:p}))(Yr(_.print)):void 0;if(a&&a.log)for(const p of["warn","error"])a[p]||x(a,p,{value:Yr(a.log,a)});const c=t==="unsafe"?a:Eo(a,s),i=_.process||void 0;if(o!=="none"&&typeof i=="object"&&typeof i.on=="function"){let p;if(o==="platform"||o==="exit"){const{exit:g}=i;typeof g=="function"||qr("missing process.exit"),p=()=>g(i.exitCode||-1)}else o==="abort"&&(p=i.abort,typeof p=="function"||qr("missing process.abort"));i.on("uncaughtException",g=>{c.error("SES_UNCAUGHT_EXCEPTION:",g),p&&p()})}if(r!=="none"&&typeof i=="object"&&typeof i.on=="function"){const g=Vr(u=>{c.error("SES_UNHANDLED_REJECTION:",u)});g&&(i.on("unhandledRejection",g.unhandledRejectionHandler),i.on("rejectionHandled",g.rejectionHandledHandler),i.on("exit",g.processTerminationHandler))}const l=_.window||void 0;if(o!=="none"&&typeof l=="object"&&typeof l.addEventListener=="function"&&l.addEventListener("error",p=>{p.preventDefault(),c.error("SES_UNCAUGHT_EXCEPTION:",p.error),(o==="exit"||o==="abort")&&(l.location.href="about:blank")}),r!=="none"&&typeof l=="object"&&typeof l.addEventListener=="function"){const g=Vr(u=>{c.error("SES_UNHANDLED_REJECTION:",u)});g&&(l.addEventListener("unhandledrejection",u=>{u.preventDefault(),g.unhandledRejectionHandler(u.reason,u.promise)}),l.addEventListener("rejectionhandled",u=>{u.preventDefault(),g.rejectionHandledHandler(u.promise)}),l.addEventListener("beforeunload",u=>{g.processTerminationHandler()}))}return{console:c}},js=["getTypeName","getFunctionName","getMethodName","getFileName","getLineNumber","getColumnNumber","getEvalOrigin","isToplevel","isEval","isNative","isConstructor","isAsync","getPosition","getScriptNameOrSourceURL","toString"],Ws=t=>{const r=Lt(Y(js,n=>{const s=t[n];return[n,()=>z(s,t,[])]}));return $(r,{})},zs=t=>Y(t,Ws),Ks=[/\/node_modules\//,/^(?:node:)?internal\//,/\/packages\/ses\/src\/error\/assert\.js$/,/\/packages\/eventual-send\/src\//,/\/packages\/ses-ava\/src\/ses-ava-test\.js$/],Vs=t=>{if(!t)return!0;for(const o of Ks)if(to(o,t))return!1;return!0},qs=[/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/,/^((?:.*[( ])?)\.\.\.\/(.+)$/,/^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/,/^((?:.*[( ])?)file:\/\/([^/].*)$/],Ys=t=>{for(const o of qs){const r=eo(o,t);if(r)return Jt(Tn(r,1),"")}return t},Js=(t,o,r,n)=>{if(r==="unsafe-debug")throw E("internal: v8+unsafe-debug special case should already be done");const s=t.captureStackTrace,a=n==="concise"||n==="omit-frames",c=n==="concise"||n==="shorten-paths",i=b=>a?Vs(b.getFileName()):!0,l=b=>{let m=`${b}`;return c&&(m=Ys(m)),`
27
+ at ${m}`},p=(b,m)=>Jt(Y(Rt(m,i),l),""),g=new _t,u={captureStackTrace(b,m=u.captureStackTrace){if(typeof s=="function"){z(s,t,[b,m]);return}Mo(b,"stack","")},getStackString(b){let m=k(g,b);if(m===void 0&&(b.stack,m=k(g,b),m||(m={stackString:""},ot(g,b,m))),m.stackString!==void 0)return m.stackString;const S=p(b,m.callSites);return ot(g,b,{stackString:S}),S},prepareStackTrace(b,m){if(r==="unsafe"){const S=p(b,m);return ot(g,b,{stackString:S}),`${b}${S}`}else return ot(g,b,{callSites:m}),""}},f=u.prepareStackTrace;t.prepareStackTrace=f;const d=new Vt([f]),h=b=>{if(ce(d,b))return b;const m={prepareStackTrace(S,w){return ot(g,S,{callSites:w}),b(S,zs(w))}};return Ie(d,m.prepareStackTrace),m.prepareStackTrace};return C(o,{captureStackTrace:{value:u.captureStackTrace,writable:!0,enumerable:!1,configurable:!0},prepareStackTrace:{get(){return t.prepareStackTrace},set(b){if(typeof b=="function"){const m=h(b);t.prepareStackTrace=m}else t.prepareStackTrace=f},enumerable:!1,configurable:!0}}),u.getStackString},Jr=H(q.prototype,"stack"),Qr=Jr&&Jr.get;let De={getStackString(t){return typeof Qr=="function"?z(Qr,t,[]):"stack"in t?`${t.stack}`:""}}.getStackString;function Qs(t="safe",o="concise"){const r=q.prototype,{captureStackTrace:n}=q,s=typeof n=="function"?"v8":"unknown",a=(l={})=>{const p=function(...u){let f;return new.target===void 0?f=z(q,this,u):f=ge(q,u,new.target),s==="v8"&&z(n,q,[f,p]),f};return C(p,{length:{value:1},prototype:{value:r,writable:!1,enumerable:!1,configurable:!1}}),p},c=a({powers:"original"}),i=a({powers:"none"});C(r,{constructor:{value:i}});for(const l of yr)de(l,i);if(C(c,{stackTraceLimit:{get(){if(typeof q.stackTraceLimit=="number")return q.stackTraceLimit},set(l){if(typeof l=="number"&&typeof q.stackTraceLimit=="number"){q.stackTraceLimit=l;return}},enumerable:!1,configurable:!0}}),t==="unsafe-debug"&&s==="v8"){C(c,{prepareStackTrace:{get(){return q.prepareStackTrace},set(p){q.prepareStackTrace=p},enumerable:!1,configurable:!0},captureStackTrace:{value:q.captureStackTrace,writable:!0,enumerable:!1,configurable:!0}});const l=Pt(c);return C(i,{stackTraceLimit:l.stackTraceLimit,prepareStackTrace:l.prepareStackTrace,captureStackTrace:l.captureStackTrace}),{"%InitialGetStackString%":De,"%InitialError%":c,"%SharedError%":i}}return C(i,{stackTraceLimit:{get(){},set(l){},enumerable:!1,configurable:!0}}),s==="v8"&&C(i,{prepareStackTrace:{get(){return()=>""},set(l){},enumerable:!1,configurable:!0},captureStackTrace:{value:(l,p)=>{x(l,"stack",{value:""})},writable:!1,enumerable:!1,configurable:!0}}),s==="v8"?De=Js(q,c,t,o):t==="unsafe"||t==="unsafe-debug"?C(r,{stack:{get(){return De(this)},set(l){C(this,{stack:{value:l,writable:!0,enumerable:!0,configurable:!0}})}}}):C(r,{stack:{get(){return`${this}`},set(l){C(this,{stack:{value:l,writable:!0,enumerable:!0,configurable:!0}})}}}),{"%InitialGetStackString%":De,"%InitialError%":c,"%SharedError%":i}}const Xs=()=>{},Zs=async(t,o,r)=>{await null;const n=t(...o);let s=Ae(n);for(;!s.done;)try{const a=await s.value;s=Ae(n,a)}catch(a){s=Ko(n,r(a))}return s.value},ta=(t,o)=>{const r=t(...o);let n=Ae(r);for(;!n.done;)try{n=Ae(r,n.value)}catch(s){n=Ko(r,s)}return n.value},ea=(t,o)=>y({compartment:t,specifier:o}),oa=(t,o,r)=>{const n=$(null);for(const s of t){const a=o(s,r);n[s]=a}return y(n)},ue=(t,o,r,n,s,a,c,i,l)=>{const{resolveHook:p,name:g}=k(t,r),{imports:u}=s;if(!Mt(u)||Ho(u,h=>typeof h!="string"))throw gt(K`Invalid module source: 'imports' must be an array of strings, got ${u} for module ${v(n)} of compartment ${v(g)}`);const f=oa(u,p,n),d=y({compartment:r,moduleSource:s,moduleSpecifier:n,resolvedImports:f,importMeta:l});for(const h of No(f))a(Zt,[t,o,r,h,a,c,i]);return d};function*ra(t,o,r,n,s,a,c){const{importHook:i,importNowHook:l,moduleMap:p,moduleMapHook:g,moduleRecords:u,parentCompartment:f}=k(t,r);if(Pe(u,n))return Tt(u,n);let d=p[n];if(d===void 0&&g!==void 0&&(d=g(n)),d===void 0){const h=a(i,l);if(h===void 0){const b=a("importHook","importNowHook");throw gt(K`${ke(b)} needed to load module ${v(n)} in compartment ${v(r.name)}`)}d=h(n),Qt(o,d)||(d=yield d)}if(typeof d=="string")throw gt(K`Cannot map module ${v(n)} to ${v(d)} in parent compartment, use {source} module descriptor`,E);if(ut(d))throw gt(K`module descriptor must be a string or object for specifier ${v(n)} in compartment ${v(r.name)}`);{let h=k(o,d);if(h!==void 0&&(d=h),d.namespace!==void 0){if(typeof d.namespace=="string"){const{compartment:S=f,namespace:w}=d;if(ut(S)||!Qt(t,S))throw gt(K`Invalid compartment in module descriptor for specifier ${v(n)} in compartment ${v(r.name)}`);const I=yield Zt(t,o,S,w,s,a,c);return et(u,n,I),I}if(ut(d.namespace))throw gt(K`Invalid compartment in module descriptor for specifier ${v(n)} in compartment ${v(r.name)}`);{const{namespace:S}=d;if(h=k(o,S),h!==void 0)d=h;else{const w=qt(S),R=ue(t,o,r,n,{imports:[],exports:w,execute(F){for(const U of w)F[U]=S[U]}},s,a,c,void 0);return et(u,n,R),R}}}if(d.source!==void 0)if(typeof d.source=="string"){const{source:S,specifier:w=n,compartment:I=f,importMeta:T=void 0}=d,R=yield Zt(t,o,I,S,s,a,c),{moduleSource:F}=R,U=ue(t,o,r,w,F,s,a,c,T);return et(u,n,U),U}else{const{source:S,specifier:w=n,importMeta:I}=d,T=ue(t,o,r,w,S,s,a,c,I);return et(u,n,T),T}if(d.archive!==void 0)throw gt(K`Unsupported archive module descriptor for specifier ${v(n)} in compartment ${v(r.name)}`);if(d.record!==void 0){const{compartment:S=r,specifier:w=n,record:I,importMeta:T}=d,R=ue(t,o,S,w,I,s,a,c,T);return et(u,n,R),et(u,w,R),R}if(d.compartment!==void 0&&d.specifier!==void 0){if(ut(d.compartment)||!Qt(t,d.compartment)||typeof d.specifier!="string")throw gt(K`Invalid compartment in module descriptor for specifier ${v(n)} in compartment ${v(r.name)}`);const S=yield Zt(t,o,d.compartment,d.specifier,s,a,c);return et(u,n,S),S}const m=ue(t,o,r,n,d,s,a,c);return et(u,n,m),m}}const Zt=(t,o,r,n,s,a,c)=>{const{name:i}=k(t,r);let l=Tt(c,r);l===void 0&&(l=new dt,et(c,r,l));let p=Tt(l,n);return p!==void 0||(p=a(Zs,ta)(ra,[t,o,r,n,s,a,c],g=>{throw Re(g,K`${g.message}, loading ${v(n)} in compartment ${v(i)}`),g}),et(l,n,p)),p},na=({errors:t=[],noAggregateErrors:o=!1}={})=>{const r=new zt;return{enqueueJob:(a,c)=>{Xe(r,Yo(a(...c),Xs,i=>{if(o)throw i;j(t,i)}))},drainQueue:async()=>{await null;for(const a of r)await a},errors:t}},sa=({errors:t=[],noAggregateErrors:o=!1}={})=>{let r=[],n=[];const s=(c,i)=>{j(n,[c,i])},a=()=>{for(const[c,i]of r)try{c(...i)}catch(l){if(o)throw l;j(t,l)}r=n,n=[],r.length>0&&a()};return{enqueueJob:s,drainQueue:a,errors:t}},Xr=({errors:t,errorPrefix:o})=>{if(t.length>0){const r=(0,J._u)("COMPARTMENT_LOAD_ERRORS","",["verbose"])==="verbose";throw E(`${o} (${t.length} underlying failures: ${Jt(Y(t,n=>n.message+(r?n.stack:"")),", ")}`)}},aa=(t,o)=>o,ia=(t,o)=>t,bo=async(t,o,r,n,{noAggregateErrors:s=!1}={})=>{const{name:a}=k(t,r),c=new dt,{enqueueJob:i,drainQueue:l,errors:p}=na({noAggregateErrors:s});i(Zt,[t,o,r,n,i,ia,c]),await l(),Xr({errors:p,errorPrefix:`Failed to load module ${v(n)} in package ${v(a)}`})},ca=(t,o,r,n,{noAggregateErrors:s=!1}={})=>{const{name:a}=k(t,r),c=new dt,{enqueueJob:i,drainQueue:l,errors:p}=sa({noAggregateErrors:s});i(Zt,[t,o,r,n,i,aa,c]),l(),Xr({errors:p,errorPrefix:`Failed to load module ${v(n)} in package ${v(a)}`})},{quote:te}=O,ua=()=>{let t=!1;const o=$(null,{[Nt]:{value:"Module",writable:!1,enumerable:!1,configurable:!1}});return y({activate(){t=!0},exportsTarget:o,exportsProxy:new re(o,{get(r,n,s){if(!t)throw E(`Cannot get property ${te(n)} of module exports namespace, the module has not yet begun to execute`);return $o(o,n,s)},set(r,n,s){throw E(`Cannot set property ${te(n)} of module exports namespace`)},has(r,n){if(!t)throw E(`Cannot check property ${te(n)}, the module has not yet begun to execute`);return Lo(o,n)},deleteProperty(r,n){throw E(`Cannot delete property ${te(n)}s of module exports namespace`)},ownKeys(r){if(!t)throw E("Cannot enumerate keys, the module has not yet begun to execute");return It(o)},getOwnPropertyDescriptor(r,n){if(!t)throw E(`Cannot get own property descriptor ${te(n)}, the module has not yet begun to execute`);return An(o,n)},preventExtensions(r){if(!t)throw E("Cannot prevent extensions of module exports namespace, the module has not yet begun to execute");return In(o)},isExtensible(){if(!t)throw E("Cannot check extensibility of module exports namespace, the module has not yet begun to execute");return wn(o)},getPrototypeOf(r){return null},setPrototypeOf(r,n){throw E("Cannot set prototype of module exports namespace")},defineProperty(r,n,s){throw E(`Cannot define property ${te(n)} of module exports namespace`)},apply(r,n,s){throw E("Cannot call module exports namespace, it is not a function")},construct(r,n){throw E("Cannot construct module exports namespace, it is not a constructor")}})})},_o=(t,o,r,n)=>{const{deferredExports:s}=o;if(!Pe(s,n)){const a=ua();ot(r,a.exportsProxy,ea(t,n)),et(s,n,a)}return Tt(s,n)},la=(t,o)=>{const{sloppyGlobalsMode:r=!1,__moduleShimLexicals__:n=void 0}=o;let s;if(n===void 0&&!r)({safeEvaluate:s}=t);else{let{globalTransforms:a}=t;const{globalObject:c}=t;let i;n!==void 0&&(a=void 0,i=$(null,Pt(n))),{safeEvaluate:s}=yo({globalObject:c,moduleLexicals:i,globalTransforms:a,sloppyGlobalsMode:r})}return{safeEvaluate:s}},Zr=(t,o,r)=>{if(typeof o!="string")throw E("first argument of evaluate() must be a string");const{transforms:n=[],__evadeHtmlCommentTest__:s=!1,__evadeImportExpressionTest__:a=!1,__rejectSomeDirectEvalExpressions__:c=!0}=r,i=[...n];s===!0&&j(i,$r),a===!0&&j(i,Or),c===!0&&j(i,Dr);const{safeEvaluate:l}=la(t,r);return l(o,{localTransforms:i})},{quote:Ue}=O,fa=(t,o,r,n,s,a)=>{const{exportsProxy:c,exportsTarget:i,activate:l}=_o(r,k(t,r),n,s),p=$(null);if(o.exports){if(!Mt(o.exports)||Ho(o.exports,u=>typeof u!="string"))throw E(`SES virtual module source "exports" property must be an array of strings for module ${s}`);Ft(o.exports,u=>{let f=i[u];const d=[];x(i,u,{get:()=>f,set:m=>{f=m;for(const S of d)S(m)},enumerable:!0,configurable:!1}),p[u]=m=>{j(d,m),m(f)}}),p["*"]=u=>{u(i)}}const g={activated:!1};return y({notifiers:p,exportsProxy:c,execute(){if(Lo(g,"errorFromExecute"))throw g.errorFromExecute;if(!g.activated){l(),g.activated=!0;try{o.execute(i,r,a)}catch(u){throw g.errorFromExecute=u,u}}}})},pa=(t,o,r,n)=>{const{compartment:s,moduleSpecifier:a,moduleSource:c,importMeta:i}=r,{reexports:l=[],__syncModuleProgram__:p,__fixedExportMap__:g={},__liveExportMap__:u={},__reexportMap__:f={},__needsImport__:d=!1,__needsImportMeta__:h=!1,__syncModuleFunctor__:b}=c,m=k(t,s),{__shimTransforms__:S,resolveHook:w,importMetaHook:I,compartmentImport:T}=m,{exportsProxy:R,exportsTarget:F,activate:U}=_o(s,m,o,a),mt=$(null),G=$(null),D=$(null),xt=$(null),Bt=$(null);i&&ae(Bt,i),h&&I&&I(a,Bt);let kt;d&&(kt=async at=>T(w(at,a)));const st=$(null),pt=$(null);Ft(tt(g),([at,[L]])=>{let M=st[L];if(!M){let Q,X=!0,ct=[];const V=()=>{if(X)throw ne(`binding ${Ue(L)} not yet initialized`);return Q},St=y(Et=>{if(!X)throw E(`Internal: binding ${Ue(L)} already initialized`);Q=Et;const un=ct;ct=null,X=!1;for(const bt of un||[])bt(Et);return Et});M={get:V,notify:Et=>{Et!==St&&(X?j(ct||[],Et):Et(Q))}},st[L]=M,D[L]=St}mt[at]={get:M.get,set:void 0,enumerable:!0,configurable:!1},pt[at]=M.notify}),Ft(tt(u),([at,[L,M]])=>{let Q=st[L];if(!Q){let X,ct=!0;const V=[],St=()=>{if(ct)throw ne(`binding ${Ue(at)} not yet initialized`);return X},oe=y(bt=>{X=bt,ct=!1;for(const vo of V)vo(bt)}),Et=bt=>{if(ct)throw ne(`binding ${Ue(L)} not yet initialized`);X=bt;for(const vo of V)vo(bt)};Q={get:St,notify:bt=>{bt!==oe&&(j(V,bt),ct||bt(X))}},st[L]=Q,M&&x(G,L,{get:St,set:Et,enumerable:!0,configurable:!1}),xt[L]=oe}mt[at]={get:Q.get,set:void 0,enumerable:!0,configurable:!1},pt[at]=Q.notify});const je=at=>{at(F)};pt["*"]=je;function le(at){const L=$(null);L.default=!1;for(const[M,Q]of at){const X=Tt(n,M);X.execute();const{notifiers:ct}=X;for(const[V,St]of Q){const oe=ct[V];if(!oe)throw se(`The requested module '${M}' does not provide an export named '${V}'`);for(const Et of St)oe(Et)}if(Ee(l,M))for(const[V,St]of tt(ct))L[V]===void 0?L[V]=St:L[V]=!1;if(f[M])for(const[V,St]of f[M])L[St]=ct[V]}for(const[M,Q]of tt(L))if(!pt[M]&&Q!==!1){pt[M]=Q;let X;Q(V=>X=V),mt[M]={get(){return X},set:void 0,enumerable:!0,configurable:!1}}Ft(Bo(Co(mt)),M=>x(F,M,mt[M])),y(F),U()}let ee;b!==void 0?ee=b:ee=Zr(m,p,{globalObject:s.globalThis,transforms:S,__moduleShimLexicals__:G});let ht=!1,jt;function La(){if(ee){const at=ee;ee=null;try{at(y({imports:y(le),onceVar:y(D),liveVar:y(xt),import:kt,importMeta:Bt}))}catch(L){ht=!0,jt=L}}if(ht)throw jt}return y({notifiers:pt,exportsProxy:R,execute:La})},{Fail:Gt,quote:W}=O,Po=(t,o,r,n)=>{const{name:s,moduleRecords:a}=k(t,r),c=Tt(a,n);if(c===void 0)throw ne(`Missing link to module ${W(n)} from compartment ${W(s)}`);return Sa(t,o,c)};function da(t){return typeof t.__syncModuleProgram__=="string"}function ga(t,o){const{__fixedExportMap__:r,__liveExportMap__:n}=t;!ut(r)||Gt`Property '__fixedExportMap__' of a precompiled module source must be an object, got ${W(r)}, for module ${W(o)}`,!ut(n)||Gt`Property '__liveExportMap__' of a precompiled module source must be an object, got ${W(n)}, for module ${W(o)}`}function ya(t){return typeof t.execute=="function"}function ma(t,o){const{exports:r}=t;Mt(r)||Gt`Invalid module source: 'exports' of a virtual module source must be an array, got ${W(r)}, for module ${W(o)}`}function ha(t,o){!ut(t)||Gt`Invalid module source: must be of type object, got ${W(t)}, for module ${W(o)}`;const{imports:r,exports:n,reexports:s=[]}=t;Mt(r)||Gt`Invalid module source: 'imports' must be an array, got ${W(r)}, for module ${W(o)}`,Mt(n)||Gt`Invalid module source: 'exports' must be an array, got ${W(n)}, for module ${W(o)}`,Mt(s)||Gt`Invalid module source: 'reexports' must be an array if present, got ${W(s)}, for module ${W(o)}`}const Sa=(t,o,r)=>{const{compartment:n,moduleSpecifier:s,resolvedImports:a,moduleSource:c}=r,{instances:i}=k(t,n);if(Pe(i,s))return Tt(i,s);ha(c,s);const l=new dt;let p;if(da(c))ga(c,s),p=pa(t,o,r,l);else if(ya(c))ma(c,s),p=fa(t,c,n,o,s,a);else throw E(`Invalid module source, got ${W(c)}`);et(i,s,p);for(const[g,u]of tt(a)){const f=Po(t,o,n,u);et(l,g,f)}return p},Ht=new _t,nt=new _t,Ao=function(o={},r={},n={}){throw E("Compartment.prototype.constructor is not a valid constructor.")},tn=(t,o)=>{const{execute:r,exportsProxy:n}=Po(nt,Ht,t,o);return r(),n},wo={constructor:Ao,get globalThis(){return k(nt,this).globalObject},get name(){return k(nt,this).name},evaluate(t,o={}){const r=k(nt,this);return Zr(r,t,o)},module(t){if(typeof t!="string")throw E("first argument of module() must be a string");const{exportsProxy:o}=_o(this,k(nt,this),Ht,t);return o},async import(t){const{noNamespaceBox:o,noAggregateLoadErrors:r}=k(nt,this);if(typeof t!="string")throw E("first argument of import() must be a string");return Yo(bo(nt,Ht,this,t,{noAggregateErrors:r}),()=>{const n=tn(this,t);return o?n:{namespace:n}})},async load(t){if(typeof t!="string")throw E("first argument of load() must be a string");const{noAggregateLoadErrors:o}=k(nt,this);return bo(nt,Ht,this,t,{noAggregateErrors:o})},importNow(t){if(typeof t!="string")throw E("first argument of importNow() must be a string");const{noAggregateLoadErrors:o}=k(nt,this);return ca(nt,Ht,this,t,{noAggregateErrors:o}),tn(this,t)}};C(wo,{[Nt]:{value:"Compartment",writable:!1,enumerable:!1,configurable:!0}}),C(Ao,{prototype:{value:wo}});const Ea=(...t)=>{if(t.length===0)return{};if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&"__options__"in t[0]){const{__options__:o,...r}=t[0];return O(o===!0,`Compartment constructor only supports true __options__ sigil, got ${o}`),r}else{const[o={},r={},n={}]=t;return ir(n.modules,void 0,"Compartment constructor must receive either a module map argument or modules option, not both"),ir(n.globals,void 0,"Compartment constructor must receive either globals argument or option, not both"),{...n,globals:o,modules:r}}},Io=(t,o,r,{parentCompartment:n=void 0,enforceNew:s=!1}={})=>{function a(...c){if(s&&new.target===void 0)throw E("Class constructor Compartment cannot be invoked without 'new'");const{name:i="<unknown>",transforms:l=[],__shimTransforms__:p=[],globals:g={},modules:u={},resolveHook:f,importHook:d,importNowHook:h,moduleMapHook:b,importMetaHook:m,__noNamespaceBox__:S=!1,noAggregateLoadErrors:w=!1}=Ea(...c),I=be([l,p],Jo),T={__proto__:null,...g},R={__proto__:null,...u},F=new dt,U=new dt,mt=new dt,G={},D=this;Is(G),wr(G);const{safeEvaluate:xt}=yo({globalObject:G,globalTransforms:I,sloppyGlobalsMode:!1});Ir(G,{intrinsics:o,newGlobalPropertyNames:gr,makeCompartmentConstructor:t,parentCompartment:this,markVirtualizedNativeFunction:r}),fo(G,xt,r),ae(G,T);const Bt=async kt=>{if(typeof f!="function")throw E(`Compartment does not support dynamic import: no configured resolveHook for compartment ${v(i)}`);await bo(nt,Ht,D,kt,{noAggregateErrors:w});const{execute:st,exportsProxy:pt}=Po(nt,Ht,D,kt);return st(),pt};ot(nt,this,{name:`${i}`,globalTransforms:I,globalObject:G,safeEvaluate:xt,resolveHook:f,importHook:d,importNowHook:h,moduleMap:R,moduleMapHook:b,importMetaHook:m,moduleRecords:F,__shimTransforms__:p,deferredExports:mt,instances:U,parentCompartment:n,noNamespaceBox:S,compartmentImport:Bt,noAggregateLoadErrors:w})}return a.prototype=wo,a};function To(t){return N(t).constructor}function ba(){return arguments}const _a=()=>{const t=rt.prototype.constructor,o=H(ba(),"callee"),r=o&&o.get,n=Dn(new Z),s=N(n),a=me[Ro]&&Ln(/./),c=a&&N(a),i=vn([]),l=N(i),p=N(pn),g=Fn(new dt),u=N(g),f=$n(new zt),d=N(f),h=N(l);function*b(){}const m=To(b),S=m.prototype;async function w(){}const I=To(w),T={"%InertFunction%":t,"%ArrayIteratorPrototype%":l,"%InertAsyncFunction%":I,"%Generator%":S,"%InertGeneratorFunction%":m,"%IteratorPrototype%":h,"%MapIteratorPrototype%":u,"%RegExpStringIteratorPrototype%":c,"%SetIteratorPrototype%":d,"%StringIteratorPrototype%":s,"%ThrowTypeError%":r,"%TypedArray%":p,"%InertCompartment%":Ao};if(io!==void 0){const mt=To(io),G=mt.prototype,D=G.prototype,xt=N(D);ae(T,{"%AsyncGenerator%":G,"%InertAsyncGeneratorFunction%":mt,"%AsyncGeneratorPrototype%":D,"%AsyncIteratorPrototype%":xt})}_.Iterator&&(T["%IteratorHelperPrototype%"]=N(_.Iterator.from([]).take(0)),T["%WrapForValidIteratorPrototype%"]=N(_.Iterator.from({next(){return{value:void 0}}}))),_.AsyncIterator&&(T["%AsyncIteratorHelperPrototype%"]=N(_.AsyncIterator.from([]).take(0)),T["%WrapForValidAsyncIteratorPrototype%"]=N(_.AsyncIterator.from({next(){}})));const F=new fe(0).sliceToImmutable(),U=N(F);return U!==fe.prototype&&(T["%ImmutableArrayBufferPrototype%"]=U),T},en=(t,o)=>{if(o==="safe"||(Object.isExtensible=()=>!1,Object.isFrozen=()=>!0,Object.isSealed=()=>!0,Reflect.isExtensible=()=>!1,t.isFake))return t;const r=n=>n;return r.isFake=!0,y(r)};y(en);const Pa=()=>{const t=Kt,o=t.prototype,r=qo(Kt,void 0);C(o,{constructor:{value:r}});const n=tt(Pt(t)),s=Lt(Y(n,([a,c])=>[a,{...c,configurable:!0}]));return C(r,s),{"%SharedSymbol%":r}},Aa=t=>{try{return t(),!1}catch{return!0}},on=(t,o,r)=>{if(t===void 0)return!1;const n=H(t,o);if(!n||"value"in n)return!1;const{get:s,set:a}=n;if(typeof s!="function"||typeof a!="function"||s()!==r||z(s,t,[])!==r)return!1;const c="Seems to be a setter",i={__proto__:null};if(z(a,i,[c]),i[o]!==c)return!1;const l={__proto__:t};return z(a,l,[c]),l[o]!==c||!Aa(()=>z(a,t,[r]))||"originalValue"in s||n.configurable===!1?!1:(x(t,o,{value:r,writable:!0,enumerable:n.enumerable,configurable:!0}),!0)},wa=t=>{on(t["%IteratorPrototype%"],"constructor",t.Iterator),on(t["%IteratorPrototype%"],Nt,"Iterator")},Ia=()=>{const t=Je[At];x(Je,At,{configurable:!0,get(){return t},set(o){this!==Je&&(B(this,At)&&(this[At]=o),x(this,At,{value:o,writable:!0,enumerable:!0,configurable:!0}))}})},Ta=()=>{if(typeof ye.transfer=="function")return{};const t=_.structuredClone;return typeof t!="function"?{}:(x(ye,"transfer",{value:{transfer(r=void 0){const n=kn(this);if(r===void 0||r===n)return t(this,{transfer:[this]});if(typeof r!="number")throw E("transfer newLength if provided must be a number");if(r>n){const s=new fe(r),a=new Ke(this),c=new Ke(s);return Cn(c,a),t(this,{transfer:[this]}),s}else{const s=xn(this,0,r);return t(this,{transfer:[this]}),s}}}.transfer,writable:!0,enumerable:!1,configurable:!0}),{})},Ge=t=>{let o=!1;const r=(...n)=>{o?t(" ",...n):t(...n)};return{warn(...n){r(...n)},error(...n){r(...n)},groupCollapsed(...n){O(!o),t(...n),o=!0},groupEnd(){o=!1}}},rn=()=>{},nn=t=>{if(t==="none")return Ge(rn);if(t==="console"||_.window===_||_.importScripts!==void 0)return console;if(_.console!==void 0){const o=_.console,r=qo(o.error,o);return Ge(r)}return _.print!==void 0?Ge(_.print):Ge(rn)},sn=(t,o,r)=>{const{warn:n,error:s,groupCollapsed:a,groupEnd:c}=o,i=a&&c;let l=!1;try{return r({warn(...p){i&&!l&&(a(t),l=!0),n(...p)},error(...p){i&&!l&&(a(t),l=!0),s(...p)}})}finally{i&&l&&(c(),l=!1)}},{Fail:va,details:an,quote:xa}=O;let He,Be;const ka=ns(),Ca=()=>{let t;try{t=rt("return true")()}catch{t=!1}let o;try{o=no("true")}catch{o=!1}let r;return t&&o&&(r=rt("eval","SES_changed",` eval("SES_changed = true");
28
+ return SES_changed;
29
+ `)(no,!1),r||delete _.SES_changed),{functionAllowed:t,evalAllowed:o,directEvalAllowed:r}},cn=(t={})=>{const{errorTaming:o=(0,J._u)("LOCKDOWN_ERROR_TAMING","safe",["unsafe","unsafe-debug"]),errorTrapping:r=(0,J._u)("LOCKDOWN_ERROR_TRAPPING","platform",["none","report","abort","exit"]),reporting:n=(0,J._u)("LOCKDOWN_REPORTING","platform",["console","none"]),unhandledRejectionTrapping:s=(0,J._u)("LOCKDOWN_UNHANDLED_REJECTION_TRAPPING","report",["none"]),regExpTaming:a=(0,J._u)("LOCKDOWN_REGEXP_TAMING","safe",["unsafe"]),localeTaming:c=(0,J._u)("LOCKDOWN_LOCALE_TAMING","safe",["unsafe"]),consoleTaming:i=(0,J._u)("LOCKDOWN_CONSOLE_TAMING","safe",["unsafe"]),overrideTaming:l=(0,J._u)("LOCKDOWN_OVERRIDE_TAMING","moderate",["min","severe"]),stackFiltering:p=(0,J._u)("LOCKDOWN_STACK_FILTERING","concise",["omit-frames","shorten-paths","verbose"]),domainTaming:g=(0,J._u)("LOCKDOWN_DOMAIN_TAMING","safe",["unsafe"]),evalTaming:u=(0,J._u)("LOCKDOWN_EVAL_TAMING","safe-eval",["unsafe-eval","no-eval","safeEval","unsafeEval","noEval"]),overrideDebug:f=Rt(ro((0,J._u)("LOCKDOWN_OVERRIDE_DEBUG",""),","),ht=>ht!==""),legacyRegeneratorRuntimeTaming:d=(0,J._u)("LOCKDOWN_LEGACY_REGENERATOR_RUNTIME_TAMING","safe",["unsafe-ignore"]),__hardenTaming__:h=(0,J._u)("LOCKDOWN_HARDEN_TAMING","safe",["unsafe"]),dateTaming:b,mathTaming:m,...S}=t,w=It(S);w.length===0||va`lockdown(): non supported option ${xa(w)}`;const I=nn(n),{warn:T}=I;b!==void 0&&T("SES The 'dateTaming' option is deprecated and does nothing. In the future specifying it will be an error."),m!==void 0&&T("SES The 'mathTaming' option is deprecated and does nothing. In the future specifying it will be an error."),He===void 0||O.fail(an`Already locked down at ${He} (SES_ALREADY_LOCKED_DOWN)`,E),He=E("Prior lockdown (SES_ALREADY_LOCKED_DOWN)"),He.stack;const{functionAllowed:R,evalAllowed:F,directEvalAllowed:U}=Ca();if(U===!1&&u==="safe-eval"&&(R||F))throw E("SES cannot initialize unless 'eval' is the original intrinsic 'eval', suitable for direct eval (dynamically scoped eval) (SES_DIRECT_EVAL)");if((()=>_.Function.prototype.constructor!==_.Function&&typeof _.harden=="function"&&typeof _.lockdown=="function"&&_.Date.prototype.constructor!==_.Date&&typeof _.Date.now=="function"&&pe(_.Date.prototype.constructor.now(),NaN))())throw E("Already locked down but not by this SES instance (SES_MULTIPLE_INSTANCES)");Us(g);const G=Wr(),{addIntrinsics:D,completePrototypes:xt,finalIntrinsics:Bt}=br(I),kt=en(ka,h);D({harden:kt}),D(ps()),D(ds()),D(Qs(o,p)),D(gs()),D(ys(a)),D(Pa()),D(Ta()),D(Gs()),D(_a()),xt();const st=Bt(),pt={__proto__:null};typeof _.Buffer=="function"&&(pt.Buffer=_.Buffer);let je;o==="safe"&&(je=st["%InitialGetStackString%"]);const le=Bs(i,r,s,je);if(_.console=le.console,typeof le.console._times=="object"&&(pt.SafeMap=N(le.console._times)),(o==="unsafe"||o==="unsafe-debug")&&_.assert===O&&(_.assert=$e(void 0,!0)),Ps(st,c),wa(st),sn("SES Removing unpermitted intrinsics",I,ht=>fs(st,G,ht)),wr(_),Ir(_,{intrinsics:st,newGlobalPropertyNames:dr,makeCompartmentConstructor:Io,markVirtualizedNativeFunction:G}),u==="no-eval"||u==="noEval")fo(_,jn,G);else if(u==="safe-eval"||u==="safeEval"){const{safeEvaluate:ht}=yo({globalObject:_});fo(_,ht,G)}return()=>{Be===void 0||O.fail(an`Already locked down at ${Be} (SES_ALREADY_LOCKED_DOWN)`,E),Be=E("Prior lockdown (SES_ALREADY_LOCKED_DOWN)"),Be.stack,sn("SES Enabling property overrides",I,jt=>Ss(st,l,jt,f)),d==="unsafe-ignore"&&Ia();const ht={intrinsics:st,hostIntrinsics:pt,globals:{Function:_.Function,eval:_.eval,Compartment:_.Compartment,Symbol:_.Symbol}};for(const jt of qt(dr))ht.globals[jt]=_[jt];return kt(ht),kt}};_.lockdown=t=>{const o=cn(t);_.harden=o()},_.repairIntrinsics=t=>{const o=cn(t);_.hardenIntrinsics=()=>{_.harden=o()}};const Na=Wr(),Ra=nn("none");_.Compartment=Io(Io,ls(_,Ra),Na,{enforceNew:!0}),_.assert=O;const Fa=Kr(Fe),$a=bn("MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA");_[$a]=Fa}}]);