first commit

This commit is contained in:
2026-02-09 10:48:21 +01:00
commit 15f28c0dd6
848 changed files with 107188 additions and 0 deletions

View File

@@ -0,0 +1 @@
define(["exports"],function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;function abortableFetch(input,init){var abortError,cancellation,signal=Request&&Request.prototype.isPrototypeOf(input)?input.signal:init?init.signal:void 0;if(signal){try{abortError=new DOMException("Aborted","AbortError")}catch(err){(abortError=new Error("Aborted")).name="AbortError"}return signal.aborted?Promise.reject(abortError):(cancellation=new Promise(function(_,reject){signal.addEventListener("abort",function(){return reject(abortError)},{once:!0})}),init&&init.signal&&delete init.signal,Promise.race([cancellation,realFetch(input,init)]))}return realFetch(input,init)}var fetch=globalThis.fetch,_globalThis$Request=globalThis.Request,NativeRequest=void 0===_globalThis$Request?fetch.Request:_globalThis$Request,realFetch=(globalThis.AbortController,(Request=function(input,init){init&&init.signal&&(signal=init.signal,delete init.signal);var signal,input=new NativeRequest(input,init);return signal&&Object.defineProperty(input,"signal",{writable:!1,enumerable:!1,configurable:!0,value:signal}),input}).prototype=NativeRequest.prototype,fetch);globalThis.fetch=abortableFetch,globalThis.Request=Request,_exports.default=abortableFetch});

View File

@@ -0,0 +1 @@
define(["exports"],function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=_exports.AbortControllerPolyFill=void 0;var AbortControllerPolyFill=_exports.AbortControllerPolyFill=function(){return babelHelpers.createClass(function(){Object.defineProperty(this,"signal",{value:new AbortSignal,writable:!0,configurable:!0})},[{key:"abort",value:function(reason){var event;try{event=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(event=document.createEvent("Event")).initEvent("abort",!1,!1):(event=document.createEventObject()).type="abort":event={type:"abort",bubbles:!1,cancelable:!1}}if(void 0===reason)if("undefined"==typeof document)(reason=new Error("This operation was aborted")).name="AbortError";else try{reason=new DOMException("signal is aborted without reason")}catch(err){(reason=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=reason,this.signal.dispatchEvent(event)}},{key:"toString",value:function(){return"[object AbortController]"}}])}(),isMissingRequestSignalSupport="function"==typeof globalThis.Request&&!Object.prototype.hasOwnProperty.call(globalThis.Request.prototype,"signal");"undefined"!=typeof AbortController&&!isMissingRequestSignalSupport||Object.defineProperty(globalThis,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:AbortControllerPolyFill}),_exports.default=AbortControllerPolyFill});

View File

@@ -0,0 +1 @@
define(["exports"],function(_exports){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=_exports.AbortSignalPolyfill=void 0;var Emitter=function(){return babelHelpers.createClass(function(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})},[{key:"addEventListener",value:function(type,callback,options){type in this.listeners||(this.listeners[type]=[]),this.listeners[type].push({callback:callback,options:options})}},{key:"removeEventListener",value:function(type,callback){if(type in this.listeners)for(var stack=this.listeners[type],i=0,l=stack.length;i<l;i++)if(stack[i].callback===callback)return void stack.splice(i,1)}},{key:"dispatchEvent",value:function(event){var _this=this;if(event.type in this.listeners){for(var stackToCall=this.listeners[event.type].slice(),i=0,l=stackToCall.length;i<l;i++){listener=void 0;var listener=stackToCall[i];try{listener.callback.call(_this,event)}catch(e){Promise.resolve().then(function(){throw e})}listener.options&&listener.options.once&&_this.removeEventListener(event.type,listener.callback)}return!event.defaultPrevented}}}])}(),AbortSignalPolyfill=_exports.AbortSignalPolyfill=function(_Emitter){function AbortSignalPolyfill(){var _this2=_Emitter.call(this)||this;return _this2.listeners||Emitter.call(_this2),Object.defineProperty(_this2,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(_this2,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(_this2,"reason",{value:void 0,writable:!0,configurable:!0}),_this2}return babelHelpers.inherits(AbortSignalPolyfill,_Emitter),babelHelpers.createClass(AbortSignalPolyfill,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(event){var t,o,e,r,p;"abort"===event.type&&(this.aborted=!0,"function"==typeof this.onabort)&&this.onabort.call(this,event),t=AbortSignalPolyfill,o="dispatchEvent",e=this,r=3,p=babelHelpers.get(babelHelpers.getPrototypeOf(1&r?t.prototype:t),o,e),(2&r&&"function"==typeof p?function(t){return p.apply(e,t)}:p)([event])}}])}(Emitter),isMissingRequestSignalSupport="function"==typeof globalThis.Request&&!Object.prototype.hasOwnProperty.call(globalThis.Request.prototype,"signal");"undefined"!=typeof AbortSignal&&!isMissingRequestSignalSupport||Object.defineProperty(globalThis,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:AbortSignalPolyfill}),AbortSignal.timeout||(AbortSignal.timeout=function(duration){var controller=new AbortController;return setTimeout(function(){return controller.abort()},duration),controller.signal}),AbortSignal.any||(AbortSignal.any=function(signals){for(var controller=new AbortController,i=0,length=signals.length;i<length;i++){var signal=signals[i];if(signal.aborted)return controller.abort(signal.reason),controller.signal}function abort(){controller.abort(this.reason)}for(var _i=0,_length=signals.length;_i<_length;_i++)signals[_i].addEventListener("abort",abort);return controller.signal}),AbortSignal.prototype.throwIfAborted||(AbortSignal.prototype.throwIfAborted=function(){var reason;if(this.aborted)throw(reason=this.reason)||((reason=new Error("Aborted")).name="AbortError"),reason}),_exports.default=AbortSignalPolyfill});

View File

@@ -0,0 +1 @@
Array.prototype.filter||(Array.prototype.filter=function(fun){if(null==this)throw new TypeError;var t=Object(this),len=t.length>>>0;if("function"!=typeof fun)throw new TypeError;for(var val,res=[],thisp=arguments[1],i=0;i<len;i++)i in t&&(val=t[i],fun.call(thisp,val,i,t))&&res.push(val);return res}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(searchElement,fromIndex){if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),len=o.length>>>0;if(0!=len)for(var x,y,fromIndex=0|fromIndex,k=Math.max(0<=fromIndex?fromIndex:len-Math.abs(fromIndex),0);k<len;){if((x=o[k])===(y=searchElement)||"number"==typeof x&&"number"==typeof y&&isNaN(x)&&isNaN(y))return!0;k++}return!1}}),Array.isArray||(Array.isArray=function(arg){return"[object Array]"===Object.prototype.toString.call(arg)}),Array.prototype.some||(Array.prototype.some=function(fun,thisArg){if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof fun)throw new TypeError;for(var t=Object(this),len=t.length>>>0,i=0;i<len;i++)if(i in t&&fun.call(thisArg,t[i],i,t))return!0;return!1}),Array.from||(Array.from=function(){function isCallable(fn){return"function"==typeof fn||"[object Function]"===toStr.call(fn)}function toLength(value){return value=function(value){value=Number(value);return isNaN(value)?0:0!==value&&isFinite(value)?(0<value?1:-1)*Math.floor(Math.abs(value)):value}(value),Math.min(Math.max(value,0),maxSafeInteger)}var toStr=Object.prototype.toString,maxSafeInteger=Math.pow(2,53)-1;return function(arrayLike){var items=Object(arrayLike);if(null==arrayLike)throw new TypeError("Array.from requires an array-like object - not null or undefined");var T,array,mapFn=1<arguments.length?arguments[1]:void 0;if(void 0!==mapFn){if(!isCallable(mapFn))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(T=arguments[2])}if(items instanceof Set)return array=[],items.forEach(function(v){return array.push(v)}),array;for(var kValue,len=toLength(items.length),A=isCallable(this)?Object(new this(len)):new Array(len),k=0;k<len;)kValue=items[k],A[k]=mapFn?void 0===T?mapFn(kValue,k):mapFn.call(T,kValue,k):kValue,k+=1;return A.length=len,A}}());

View File

@@ -0,0 +1 @@
Function.prototype.bind||(Function.prototype.bind=function(oThis){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");function fBound(){return fToBind.apply(this instanceof fNOP?this:oThis,aArgs.concat(Array.prototype.slice.call(arguments)))}var aArgs=Array.prototype.slice.call(arguments,1),fToBind=this,fNOP=function(){};return this.prototype&&(fNOP.prototype=this.prototype),fBound.prototype=new fNOP,fBound});

View File

@@ -0,0 +1 @@
globalThis.crypto||(globalThis.crypto={}),crypto.randomUUID||(crypto.getRandomValues?crypto.randomUUID=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(c){return(c^crypto.getRandomValues(new Uint8Array(1))[0]&15>>c/4).toString(16)})}:crypto.randomUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var r=16*Math.random()|0;return("x"===c?r:3&r|8).toString(16)})});

1
modules/polyfills/css.js Normal file
View File

@@ -0,0 +1 @@
globalThis.CSS||(globalThis.CSS={}),CSS.supports||(CSS.supports=function(prop,value){if("undefined"!=typeof window&&(value=2===arguments.length?value:"inherit",!(prop.includes("--")||value&&value.includes("--")))){if("supportsCSS"in window)return window.supportsCSS(prop,value);try{var camel=prop.replace(/-([a-z]|[0-9])/gi,function(all,letter){return(letter+"").toUpperCase()}),el=document.createElement("div");if(camel in el.style)return el.style.cssText=prop+":"+value,""!==el.style[camel]}catch(err){}}return!1});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
function DataTransfer(){this.dropEffect="move",this.effectAllowed="all",this._data={}}Object.defineProperty(DataTransfer.prototype,"types",{get:function(){return Object.keys(this._data)},enumerable:!0,configurable:!0}),DataTransfer.prototype.clearData=function(type){null!=type?delete this._data[type]:this._data={}},DataTransfer.prototype.getData=function(type){return this._data[type]||""},DataTransfer.prototype.setData=function(type,value){this._data[type]=value};

View File

@@ -0,0 +1 @@
globalThis.Intl||(globalThis.Intl={});var toLocaleTimeStringSupportsLocales=function(){try{(new Date).toLocaleTimeString("i")}catch(e){return"RangeError"===e.name}return!1}();function getOptionList(options){var i,list=[];for(i in options)list.push({name:i,value:options[i]});return list}Intl.DateTimeFormat||(Intl.DateTimeFormat=function(locales,options){this.options=options||{},this.locales=Array.isArray(locales)?locales:[locales]},Intl.DateTimeFormat.prototype.format=function(value){var weekday,options=this.options,locale=this.locales[0],renderDate=options.dateStyle||options.month||options.day||options.year;return renderDate&&options.timeStyle?toLocaleTimeStringSupportsLocales?value.toLocaleString(locale,options):value.toLocaleString():renderDate?toLocaleTimeStringSupportsLocales?value.toLocaleDateString(locale,options):1===(renderDate=getOptionList(options)).length&&"weekday"===renderDate[0].name?(weekday=[],"long"===renderDate[0].value?(weekday[0]="Sunday",weekday[1]="Monday",weekday[2]="Tuesday",weekday[3]="Wednesday",weekday[4]="Thursday",weekday[5]="Friday",weekday[6]="Saturday"):(weekday[0]="Sun",weekday[1]="Mon",weekday[2]="Tue",weekday[3]="Wed",weekday[4]="Thu",weekday[5]="Fri",weekday[6]="Sat"),weekday[value.getDay()]):value.toLocaleDateString():toLocaleTimeStringSupportsLocales?value.toLocaleTimeString(locale,options):value.toLocaleTimeString()});

View File

@@ -0,0 +1 @@
globalThis.Intl||(globalThis.Intl={}),Intl.DisplayNames||(Intl.DisplayNames=function(locales,options){this.options=options||{},this.locales=Array.isArray(locales)?locales:[locales]},Intl.DisplayNames.prototype.of=function(value){var _this$options;return"none"===(null==(_this$options=this.options)?void 0:_this$options.fallback)?null:value});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
globalThis.Intl||(globalThis.Intl={});var Styles={long:{years:" years",days:" days",hours:" hours",minutes:" minutes",seconds:" seconds",milliseconds:" milliseconds"},short:{years:" yr",days:" d",hours:" hr",minutes:" min",seconds:" sec",milliseconds:" ms"},narrow:{years:"y",days:"d",hours:"h",minutes:"m",seconds:"s",milliseconds:"ms"},digital:{years:"",days:"",hours:"",minutes:"",seconds:"",milliseconds:""}};Intl.DurationFormat||(Intl.DurationFormat=function(locales,options){this.options=options||{},this.locales=Array.isArray(locales)?locales:[locales]},Intl.DurationFormat.prototype.format=function(value){var options=this.options,requestedStyle=options.style,style=Styles[requestedStyle||"narrow"],parts=[],minutes=(null!=value.years&&parts.push(value.years+style.years),null!=value.days&&parts.push(value.days+style.days),null!=value.hours&&parts.push(value.hours+style.hours),value.minutes),minutes=(null==minutes&&"always"!==options.minutesDisplay||(minutes=minutes||0,parts.push((minutes="digital"===requestedStyle&&minutes<10?"0"+minutes:minutes)+style.minutes)),value.seconds);return null==minutes&&"always"!==options.secondsDisplay||(minutes=minutes||0,parts.push((minutes="digital"===requestedStyle&&minutes<10?"0"+minutes:minutes)+style.seconds)),value.milliseconds&&parts.push(value.milliseconds+style.milliseconds),parts.join("digital"!==requestedStyle?" ":":")});

View File

@@ -0,0 +1 @@
Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){for(var matches=(this.document||this.ownerDocument).querySelectorAll(s),i=matches.length;0<=--i&&matches.item(i)!==this;);return-1<i}),Element.prototype.closest||(Element.prototype.closest=function(s){var el=this;do{if(Element.prototype.matches.call(el,s))return el}while(null!==(el=el.parentElement||el.parentNode)&&1===el.nodeType);return null}),Element.prototype.remove||(Element.prototype.remove=function(s){var parentNode=this.parentNode;parentNode&&parentNode.removeChild(this)}),Element.prototype.replaceChildren||(Element.prototype.replaceChildren=function(addNodes){for(;this.lastChild;)this.removeChild(this.lastChild);addNodes&&this.append(addNodes)}),Element.prototype.append||(Element.prototype.append=function(){for(var fragment=document.createDocumentFragment(),i=0,len=arguments.length;i<len;i++)fragment.appendChild(arguments[i]instanceof Node?arguments[i]:document.createTextNode(String(arguments[i])));this.appendChild(fragment)});

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
HTMLFormElement.prototype.requestSubmit||(HTMLFormElement.prototype.requestSubmit=function(submitter){submitter?submitter.click():((submitter=document.createElement("input")).type="submit",submitter.hidden=!0,this.appendChild(submitter),submitter.click(),this.removeChild(submitter))});

File diff suppressed because one or more lines are too long

1
modules/polyfills/map.js Normal file
View File

@@ -0,0 +1 @@
"undefined"==typeof Map&&!function(){function Map(iterable){function MapIterator(map,kind){var _index=0;return Object.create({},{next:{value:function(){if(_index<map.items().length)switch(kind){case"keys":return map.keys()[_index++];case"values":return map.values()[_index++];case"keys+values":return[].slice.call(map.items()[_index++]);default:throw new TypeError("Invalid iterator type")}throw new Error("Stop Iteration")}},iterator:{value:function(){return this}},toString:{value:function(){return"[object Map Iterator]"}}})}function _set(key,value){var index=betterIndexOf.call(_keys,key);-1<index?(_items[index]=value,_values[index]=value):(_items.push([key,value]),_keys.push(key),_values.push(value))}var _items=[],_keys=[],_values=[],is=Object.is||function(a,b){return a===b?0!==a||1/a==1/b:a!=a&&b!=b},betterIndexOf=function(value){if(value!=value||0===value)for(var i=this.length;i--&&!is(this[i],value););else i=[].indexOf.call(this,value);return i};if(Array.isArray(iterable))iterable.forEach(function(item){if(2!==item.length)throw new TypeError("Invalid iterable passed to Map constructor");_set(item[0],item[1])});else if(void 0!==iterable)throw new TypeError("Invalid Map");return Object.create(MapPrototype,{items:{value:function(){return[].slice.call(_items)}},keys:{value:function(){return[].slice.call(_keys)}},values:{value:function(){return[].slice.call(_values)}},has:{value:function(key){return-1<betterIndexOf.call(_keys,key)}},get:{value:function(key){key=betterIndexOf.call(_keys,key);return-1<key?_values[key]:void 0}},set:{value:_set},size:{get:function(){return _items.length}},clear:{value:function(){_keys.length=_values.length=_items.length=0}},delete:{value:function(key){key=betterIndexOf.call(_keys,key);return-1<key&&(_keys.splice(key,1),_values.splice(key,1),_items.splice(key,1),!0)}},forEach:{value:function(callbackfn){if("function"!=typeof callbackfn)throw new TypeError("Invalid callback function given to forEach");function tryNext(){try{return iter.next()}catch(e){}}for(var iter=this.iterator(),current=tryNext(),next=tryNext();void 0!==current;)callbackfn.apply(arguments[1],[current[1],current[0],this]),current=next,next=tryNext()}},iterator:{value:function(){return new MapIterator(this,"keys+values")}},toString:{value:function(){return"[Object Map]"}}})}var MapPrototype=Map.prototype;Map.prototype=MapPrototype=Map(),window.Map=Map}();

View File

@@ -0,0 +1 @@
Math.trunc||(Math.trunc=function(v){return v=+v,isFinite(v)?v-v%1||(v<0?-0:0===v?v:0):v});

View File

@@ -0,0 +1 @@
!function(name,context,definition){context[name]=definition(),"undefined"!=typeof module&&module.exports?module.exports=context[name]:"function"==typeof define&&define.amd&&define(function(){return context[name]})}("Promise","undefined"!=typeof global?global:this,function(){"use strict";var builtInProp,cycle,first,last,item,ToString=Object.prototype.toString,timer="undefined"!=typeof setImmediate?function(fn){return setImmediate(fn)}:setTimeout;try{Object.defineProperty({},"x",{}),builtInProp=function(obj,name,val,config){return Object.defineProperty(obj,name,{value:val,writable:!0,configurable:!1!==config})}}catch(err){builtInProp=function(obj,name,val){return obj[name]=val,obj}}function Item(fn,self){this.fn=fn,this.self=self,this.next=void 0}function schedule(fn,self){scheduling_queue.add(fn,self),cycle=cycle||timer(scheduling_queue.drain)}function isThenable(o){var _then,o_type=typeof o;return"function"==typeof(_then=null==o||"object"!=o_type&&"function"!=o_type?_then:o.then)&&_then}function notify(){for(var i=0;i<this.chain.length;i++){_then=ret=chain=cb=self=void 0;var ret,_then,self=this,cb=1===this.state?this.chain[i].success:this.chain[i].failure,chain=this.chain[i];try{!1===cb?chain.reject(self.msg):(ret=!0===cb?self.msg:cb.call(void 0,self.msg))===chain.promise?chain.reject(TypeError("Promise-chain cycle")):(_then=isThenable(ret))?_then.call(ret,chain.resolve,chain.reject):chain.resolve(ret)}catch(err){chain.reject(err)}}this.chain.length=0}function resolve(msg){var _then,self=this;if(!self.triggered){self.triggered=!0,self.def&&(self=self.def);try{(_then=isThenable(msg))?schedule(function(){var def_wrapper=new MakeDefWrapper(self);try{_then.call(msg,function(){resolve.apply(def_wrapper,arguments)},function(){reject.apply(def_wrapper,arguments)})}catch(err){reject.call(def_wrapper,err)}}):(self.msg=msg,self.state=1,0<self.chain.length&&schedule(notify,self))}catch(err){reject.call(new MakeDefWrapper(self),err)}}}function reject(msg){var self=this;self.triggered||(self.triggered=!0,(self=self.def?self.def:self).msg=msg,self.state=2,0<self.chain.length&&schedule(notify,self))}function iteratePromises(Constructor,arr,resolver,rejecter){for(var idx=0;idx<arr.length;idx++)!function(idx){Constructor.resolve(arr[idx]).then(function(msg){resolver(idx,msg)},rejecter)}(idx)}function MakeDefWrapper(self){this.def=self,this.triggered=!1}function MakeDef(self){this.promise=self,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Promise(executor){if("function"!=typeof executor)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var def=new MakeDef(this);this.then=function(success,failure){var o={success:"function"!=typeof success||success,failure:"function"==typeof failure&&failure};return o.promise=new this.constructor(function(resolve,reject){if("function"!=typeof resolve||"function"!=typeof reject)throw TypeError("Not a function");o.resolve=resolve,o.reject=reject}),def.chain.push(o),0!==def.state&&schedule(notify,def),o.promise},this.catch=function(failure){return this.then(void 0,failure)};try{executor.call(void 0,function(msg){resolve.call(def,msg)},function(msg){reject.call(def,msg)})}catch(err){reject.call(def,err)}}var scheduling_queue={add:function(fn,self){item=new Item(fn,self),last?last.next=item:first=item,last=item},drain:function(){var f=first;for(first=last=cycle=void 0;f;)f.fn.call(f.self),f=f.next}},PromisePrototype=builtInProp({},"constructor",Promise,!1);return builtInProp(Promise.prototype=PromisePrototype,"__NPO__",0,!1),builtInProp(Promise,"resolve",function(msg){return msg&&"object"==typeof msg&&1===msg.__NPO__?msg:new this(function(resolve,reject){if("function"!=typeof resolve||"function"!=typeof reject)throw TypeError("Not a function");resolve(msg)})}),builtInProp(Promise,"reject",function(msg){return new this(function(resolve,reject){if("function"!=typeof resolve||"function"!=typeof reject)throw TypeError("Not a function");reject(msg)})}),builtInProp(Promise,"all",function(arr){var Constructor=this;return"[object Array]"!=ToString.call(arr)?Constructor.reject(TypeError("Not an array")):0===arr.length?Constructor.resolve([]):new Constructor(function(resolve,reject){if("function"!=typeof resolve||"function"!=typeof reject)throw TypeError("Not a function");var len=arr.length,msgs=Array(len),count=0;iteratePromises(Constructor,arr,function(idx,msg){msgs[idx]=msg,++count===len&&resolve(msgs)},reject)})}),builtInProp(Promise,"race",function(arr){var Constructor=this;return"[object Array]"!=ToString.call(arr)?Constructor.reject(TypeError("Not an array")):new Constructor(function(resolve,reject){if("function"!=typeof resolve||"function"!=typeof reject)throw TypeError("Not a function");iteratePromises(Constructor,arr,function(idx,msg){resolve(msg)},reject)})}),Promise});

View File

@@ -0,0 +1 @@
"function"!=typeof Number.isInteger&&(Number.isInteger=function(value){return"number"==typeof value&&isFinite(value)&&Math.floor(value)===value});

View File

@@ -0,0 +1 @@
globalThis.Intl||(globalThis.Intl={}),Intl.NumberFormat||(Intl.NumberFormat=function(locales,options){this.options=options||{},this.locales=Array.isArray(locales)?locales:[locales]},Intl.NumberFormat.prototype.format=function(value){var options=this.options;return value=(options.maximumFractionDigits?parseFloat(value.toFixed(options.maximumFractionDigits)):value).toString(),"percent"===options.style&&(value+="%"),value});

View File

@@ -0,0 +1 @@
"function"!=typeof Object.hasOwn&&(Object.hasOwn=function(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}),"function"!=typeof Object.assign&&(Object.assign=function(target){if(null==target)throw new TypeError("Cannot convert undefined or null to object");for(var output=Object(target),index=1;index<arguments.length;index++){var source=arguments[index];if(null!=source)for(var nextKey in source)Object.hasOwn(source,nextKey)&&(output[nextKey]=source[nextKey])}return output}),"function"!=typeof Object.create&&(Object.create=function(){function F(){}return function(o){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return F.prototype=o,new F}}());

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"function"!=typeof Promise.any&&(Promise.any=function(n){return new Promise(function(e,o,t,i){t=[],i=n.map(function(n,r){return Promise.resolve(n).then(e,function(n){return t[r]=n,--i||o({errors:t})})}).length})}),"function"!=typeof Promise.allSettled&&(Promise.allSettled=function(t){var e=this;return e.all(t.map(function(t){return e.resolve(t).then(this.$,this._)},{$:function(t){return{status:"fulfilled",value:t}},_:function(t){return{status:"rejected",reason:t}}}))}),"function"!=typeof Promise.prototype.finally&&(Promise.prototype.finally=function(callback){var P;return"function"!=typeof callback?this.then(callback,callback):(P=this.constructor||Promise,this.then(function(value){return P.resolve(callback()).then(function(){return value})},function(err){return P.resolve(callback()).then(function(){throw err})}))});

View File

@@ -0,0 +1 @@
globalThis.Intl||(globalThis.Intl={}),Intl.RelativeTimeFormat||(Intl.RelativeTimeFormat=function(locales,options){this.options=options||{},this.locales=Array.isArray(locales)?locales:[locales]},Intl.RelativeTimeFormat.prototype.format=function(elapsed,unit){var prefix="",suffix="";return elapsed<0?suffix=" ago":0<elapsed&&(prefix="in "),1<(elapsed=Math.abs(elapsed))&&(unit+="s"),prefix+elapsed+" "+unit+suffix});

File diff suppressed because one or more lines are too long

1
modules/polyfills/set.js Normal file
View File

@@ -0,0 +1 @@
try{if(!(globalThis.Set=Set).prototype.entries)throw{}}catch(Set){!function(i,dPs){var proto=dPs(Set.prototype,{size:{configurable:!0,get:function(){return this._v.length}}});function Set(iterable){dPs(this,{_v:{value:[]}}),iterable&&iterable.forEach(this.add,this)}function has(self,value){return-1<(i=self._v.indexOf(value))}function pair(value){return[value,value]}proto.add=function(value){return has(this,value)||this._v.push(value),this},proto.clear=function(){var length=this._v.length;this._v.splice(0,length)},proto.delete=function(value){return has(this,value)&&!!this._v.splice(i,1)},proto.entries=function(){return this._v.map(pair)},proto.forEach=function(callback,context){this._v.forEach(function(value,i){callback.call(context,value,value,this)},this)},proto.has=function(key){return has(this,key)},proto.keys=proto.values=function(){return this._v.slice(0)},globalThis.Set=Set}(0,Object.defineProperties)}

View File

@@ -0,0 +1 @@
String.prototype.includes||(String.prototype.includes=function(search,start){if(search instanceof RegExp)throw TypeError("first argument must not be a RegExp");return-1!==this.indexOf(search,start=void 0===start?0:start)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(search,rawPos){rawPos=0<rawPos?0|rawPos:0;return this.substring(rawPos,rawPos+search.length)===search}}),String.prototype.endsWith||(String.prototype.endsWith=function(search,this_len){return(void 0===this_len||this_len>this.length)&&(this_len=this.length),this.substring(this_len-search.length,this_len)===search}),String.prototype.replaceAll||(String.prototype.replaceAll=function(find,replace){for(var index,next,s="";~(next=this.indexOf(find,index));)s+=this.substring(index,next)+replace,index=next+find.length;return s+this.substring(index)});

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"undefined"==typeof WeakMap&&!function(){function WeakMap(){this.name="__st"+(1e9*Math.random()>>>0)+counter+++"__"}var defineProperty=Object.defineProperty,counter=Date.now()%1e9;WeakMap.prototype={set:function(key,value){var entry=key[this.name];return entry&&entry[0]===key?entry[1]=value:defineProperty(key,this.name,{value:[key,value],writable:!0}),this},get:function(key){var entry;return(entry=key[this.name])&&entry[0]===key?entry[1]:void 0},delete:function(key){var entry=key[this.name];return!(!entry||entry[0]!==key||(entry[0]=entry[1]=void 0))},has:function(key){var entry=key[this.name];return!!entry&&entry[0]===key}},globalThis.WeakMap=WeakMap}();