Build 589089stable
Module 439619
8,212 characters · in 52082.07941602b067c1b4.jsDependencies
Required by (17)
Lazily required by (0)none
Requires (25)
Lazily requires (0)none
Source Raw
function(t,e,r){"use strict";var o,n=r(624462),i=r(866307),a=r(216233),s=r(333654),l=r(896758),p=r(870064),c=r(741623),u=r(913789),f=r(603763),y=r(949893),h=r(783277),d=r(658471),m=r(327709),b=r(682587),g=r(138478),v=Function,w=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},S=r(267768),_=r(969001),A=function(){throw new c},O=S?function(){try{return arguments.callee,A}catch(t){try{return S(arguments,"callee").get}catch(t){return A}}}():A,E=r(912877)(),j=r(428495),x=r(755311),P=r(521033),k=r(343920),T=r(357522),I={},R="u">typeof Uint8Array&&j?j(Uint8Array):o,N={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":E&&j?j([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"u"<typeof Atomics?o:Atomics,"%BigInt%":"u"<typeof BigInt?o:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"u"<typeof Float16Array?o:Float16Array,"%Float32Array%":"u"<typeof Float32Array?o:Float32Array,"%Float64Array%":"u"<typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":I,"%Int8Array%":"u"<typeof Int8Array?o:Int8Array,"%Int16Array%":"u"<typeof Int16Array?o:Int16Array,"%Int32Array%":"u"<typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&j?j(j([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"u"<typeof Map?o:Map,"%MapIteratorPrototype%":"u">typeof Map&&E&&j?j(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?o:Promise,"%Proxy%":"u"<typeof Proxy?o:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?o:Set,"%SetIteratorPrototype%":"u">typeof Set&&E&&j?j(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&j?j(""[Symbol.iterator]()):o,"%Symbol%":E?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":O,"%TypedArray%":R,"%TypeError%":c,"%Uint8Array%":"u"<typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?o:Uint32Array,"%URIError%":u,"%WeakMap%":"u"<typeof WeakMap?o:WeakMap,"%WeakRef%":"u"<typeof WeakRef?o:WeakRef,"%WeakSet%":"u"<typeof WeakSet?o:WeakSet,"%Function.prototype.call%":T,"%Function.prototype.apply%":k,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":x,"%Math.abs%":f,"%Math.floor%":y,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":m,"%Math.round%":b,"%Math.sign%":g,"%Reflect.getPrototypeOf%":P};if(j)try{null.error}catch(t){var D=j(j(t));N["%Error.prototype%"]=D}var F=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&j&&(r=j(n.prototype))}return N[e]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=r(94867),L=r(353841),U=C.call(T,Array.prototype.concat),B=C.call(k,Array.prototype.splice),W=C.call(T,String.prototype.replace),$=C.call(T,String.prototype.slice),z=C.call(T,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,K=function(t){var e=$(t,0,1),r=$(t,-1);if("%"===e&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return W(t,q,function(t,e,r,n){o[o.length]=r?W(n,H,"$1"):e||t}),o},G=function(t,e){var r,o=t;if(L(M,o)&&(o="%"+(r=M[o])[0]+"%"),L(N,o)){var n=N[o];if(n===I&&(n=F(o)),void 0===n&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,t))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=K(t),o=r.length>0?r[0]:"",n=G("%"+o+"%",e),i=n.name,a=n.value,s=!1,l=n.alias;l&&(o=l[0],B(r,U([0,1],l)));for(var u=1,f=!0;u<r.length;u+=1){var y=r[u],h=$(y,0,1),d=$(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===d||"'"===d||"`"===d)&&h!==d)throw new p("property names with quotes must have matching quotes");if("constructor"!==y&&f||(s=!0),o+="."+y,L(N,i="%"+o+"%"))a=N[i];else if(null!=a){if(!(y in a)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(S&&u+1>=r.length){var m=S(a,y);a=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[y]}else f=L(a,y),a=a[y];f&&!s&&(N[i]=a)}}return a}}