shop-components 0.0.17 → 0.0.18
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.
package/dist/shop-components.mjs
CHANGED
|
@@ -28782,6 +28782,9 @@ let io = class extends Ka {
|
|
|
28782
28782
|
addLine(n) {
|
|
28783
28783
|
this.lines.has(n.uuid) || this.lines.set(n.uuid, n);
|
|
28784
28784
|
}
|
|
28785
|
+
clear() {
|
|
28786
|
+
this.lines.clear();
|
|
28787
|
+
}
|
|
28785
28788
|
removeLine(n) {
|
|
28786
28789
|
this.lines.delete(n.uuid);
|
|
28787
28790
|
}
|
|
@@ -29074,7 +29077,7 @@ class NX {
|
|
|
29074
29077
|
t.href = e, t.download = "transparent-background-object.png", document.body.appendChild(t), t.click(), document.body.removeChild(t);
|
|
29075
29078
|
}
|
|
29076
29079
|
clearAMR() {
|
|
29077
|
-
yc(this._container);
|
|
29080
|
+
yc(this._container), this._slots = [], this._logos = [], this._skins = [], this._materialsCache.clear(), this.opacityCache = void 0, this.usePathTracing = !1, this.lines.clear();
|
|
29078
29081
|
}
|
|
29079
29082
|
async addAMR(e) {
|
|
29080
29083
|
if (!e.startsWith("blob") && !e.endsWith(".sglb"))
|
|
@@ -7941,7 +7941,7 @@ bool bvhIntersectFogVolumeHit(
|
|
|
7941
7941
|
* @license
|
|
7942
7942
|
* Copyright 2017 Google LLC
|
|
7943
7943
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7944
|
-
*/function Wv(n,e){return(t,i,s)=>{const r=a=>{var o;return((o=a.renderRoot)==null?void 0:o.querySelector(n))??null};if(e){const{get:a,set:o}=typeof i=="object"?t:s??(()=>{const l=Symbol();return{get(){return this[l]},set(c){this[l]=c}}})();return zv(t,i,{get(){let l=a.call(this);return l===void 0&&(l=r(this),(l!==null||this.hasUpdated)&&o.call(this,l)),l}})}return zv(t,i,{get(){return r(this)}})}}var zP=Object.defineProperty,WP=Object.getOwnPropertyDescriptor,gp=(n,e,t,i)=>{for(var s=i>1?void 0:i?WP(e,t):e,r=n.length-1,a;r>=0;r--)(a=n[r])&&(s=(i?a(e,t,s):a(s))||s);return i&&s&&zP(e,t,s),s};class NP{constructor(e,t,i,s){this.name=e,this.slot=t,this.start=i,this.end=s,this.split="--",this.uuid="",this.valid=!1,this.editable=!1,this.highlight=!1,this.uuid=e+this.split+t}update(e,t){this.start=e.clone(),this.end=t.clone()}}ft.DeviceLines=class extends Na{constructor(e,t=0){super(),this.offset=e,this.heightOffset=t,this.lines=new Map,this.setOffset(this.offset.x,this.offset.y)}setOffset(e,t){this.offset.set(e,t),this.style.setProperty("--left",this.offset.x+"px"),this.style.setProperty("--top",this.offset.y+"px")}setHeightOffset(e){this.heightOffset=e,this.style.setProperty("--heightOffset",this.heightOffset+"px")}hide(){var e;(e=this.container)==null||e.classList.add("hidden")}show(){var e;(e=this.container)==null||e.classList.remove("hidden")}addLine(e){this.lines.has(e.uuid)||this.lines.set(e.uuid,e)}removeLine(e){this.lines.delete(e.uuid)}getLineByName(e){const t=[];return this.lines.forEach((i,s)=>{i.name===e&&t.push(i)}),t}getLineBySlot(e){const t=[];return this.lines.forEach((i,s)=>{i.slot===e&&t.push(i)}),t}getPath(e){const t=e.end.clone();t.set(t.x-this.offset.x,t.y-this.offset.y);const i=e.start.clone().add(t).multiplyScalar(.5),s=e.start.clone().add(t).multiplyScalar(.7);return`M${e.start.x} ${e.start.y}
|
|
7944
|
+
*/function Wv(n,e){return(t,i,s)=>{const r=a=>{var o;return((o=a.renderRoot)==null?void 0:o.querySelector(n))??null};if(e){const{get:a,set:o}=typeof i=="object"?t:s??(()=>{const l=Symbol();return{get(){return this[l]},set(c){this[l]=c}}})();return zv(t,i,{get(){let l=a.call(this);return l===void 0&&(l=r(this),(l!==null||this.hasUpdated)&&o.call(this,l)),l}})}return zv(t,i,{get(){return r(this)}})}}var zP=Object.defineProperty,WP=Object.getOwnPropertyDescriptor,gp=(n,e,t,i)=>{for(var s=i>1?void 0:i?WP(e,t):e,r=n.length-1,a;r>=0;r--)(a=n[r])&&(s=(i?a(e,t,s):a(s))||s);return i&&s&&zP(e,t,s),s};class NP{constructor(e,t,i,s){this.name=e,this.slot=t,this.start=i,this.end=s,this.split="--",this.uuid="",this.valid=!1,this.editable=!1,this.highlight=!1,this.uuid=e+this.split+t}update(e,t){this.start=e.clone(),this.end=t.clone()}}ft.DeviceLines=class extends Na{constructor(e,t=0){super(),this.offset=e,this.heightOffset=t,this.lines=new Map,this.setOffset(this.offset.x,this.offset.y)}setOffset(e,t){this.offset.set(e,t),this.style.setProperty("--left",this.offset.x+"px"),this.style.setProperty("--top",this.offset.y+"px")}setHeightOffset(e){this.heightOffset=e,this.style.setProperty("--heightOffset",this.heightOffset+"px")}hide(){var e;(e=this.container)==null||e.classList.add("hidden")}show(){var e;(e=this.container)==null||e.classList.remove("hidden")}addLine(e){this.lines.has(e.uuid)||this.lines.set(e.uuid,e)}clear(){this.lines.clear()}removeLine(e){this.lines.delete(e.uuid)}getLineByName(e){const t=[];return this.lines.forEach((i,s)=>{i.name===e&&t.push(i)}),t}getLineBySlot(e){const t=[];return this.lines.forEach((i,s)=>{i.slot===e&&t.push(i)}),t}getPath(e){const t=e.end.clone();t.set(t.x-this.offset.x,t.y-this.offset.y);const i=e.start.clone().add(t).multiplyScalar(.5),s=e.start.clone().add(t).multiplyScalar(.7);return`M${e.start.x} ${e.start.y}
|
|
7945
7945
|
C${i.x} ${e.start.y}
|
|
7946
7946
|
${s.x} ${e.end.y}
|
|
7947
7947
|
${t.x} ${t.y}
|
|
@@ -8022,7 +8022,7 @@ d="${this.getPath(e)}"></path>`)}
|
|
|
8022
8022
|
color *= newPeak * invPeak;
|
|
8023
8023
|
float g = 1. - 3. / (desaturation * extraBrightness + 3.);
|
|
8024
8024
|
return mix(color, vec3(1, 1, 1), g);
|
|
8025
|
-
}`),this.camera.position.set(10,0,-10),this.camera.lookAt(new A),this.ptRenderer=new aw(this.renderer),this.ptRenderer.camera=this.camera,this.ptRenderer.material=new uG,this.ptRenderer.tiles.set(1,1),this.ptRenderer.material.filterGlossyFactor=.6,this.ptRenderer.material.environmentIntensity=this.renderer.toneMappingExposure,this.ptRenderer.material.backgroundAlpha=0,this.ptRenderer.material.environmentBlur=0,this.ptRenderer.material.bounces=6,this.ptRenderer.material.transmissiveBounces=8,this.ptRenderer.alpha=!0,this.fsQuad=new $n(new xn({map:this.ptRenderer.target.texture,blending:Tm})),this.controls.addEventListener("change",()=>{this.sampleCount=0,this.ptRenderer.reset()}),this._composer=new pG(this.renderer),this._composer.setPixelRatio(window.devicePixelRatio),this._composer.addPass(new B2(this.scene,this.camera)),this._composer.addPass(new $2),this._outlinePass=new es(new me(window.innerWidth,window.innerHeight),this.scene,this.camera),this._outlinePass.visibleEdgeColor.set(26367),this._outlinePass.edgeThickness=.5,this._outlinePass.hiddenEdgeColor.set(26367),this._outlinePass.edgeStrength=3,this._outlinePass.edgeGlow=0,this._composer.addPass(this._outlinePass),this._outlinePassError=new es(new me(window.innerWidth,window.innerHeight),this.scene,this.camera),this._outlinePassError.visibleEdgeColor.set(16711680),this._outlinePassError.edgeThickness=.5,this._outlinePassError.hiddenEdgeColor.set(16711680),this._outlinePassError.edgeStrength=3,this._outlinePassError.edgeGlow=0,this._composer.addPass(this._outlinePassError),this._composer.renderTarget1.texture.colorSpace=mt,this._composer.renderTarget2.texture.colorSpace=mt,this._fxaaPass=new e0(J2),this._composer.addPass(this._fxaaPass),this.scene.add(this._container),this.ticker(),this._loadEnv(),this._initEvents()}get usePathTracing(){return this._usePathTracing}set usePathTracing(e){e?(this.bodyOpacity=1,this.slots.forEach(t=>t.hide()),this.lines.hide()):(this.slots.forEach(t=>t.show()),this.lines.show(),this.opacityCache!==void 0?(this.bodyOpacity=this.opacityCache,this.opacityCache=void 0):this.bodyOpacity=1),this._usePathTracing=e,this.controls.dampingFactor=e?1:kv,this.sampleCount=0}get slots(){return this._slots}get logos(){return this._logos}get skins(){return this._skins}get fpsAverage(){return ov(this._fpsCache)}set bodyOpacity(e){this._bodyOpacity=e,e<1?this._materialsCache.forEach(t=>{t.mat.transparent=!0,t.mat.opacity=e,t.mat.metalness=0,t.mat.roughness=1,t.mat.color=new qe("#3859be")}):this._materialsCache.forEach(t=>{t.mat.transparent=t.transparent,t.mat.opacity=t.opacity,t.mat.metalness=t.metalness,t.mat.roughness=t.roughness,t.mat.color=t.color})}get bodyOpacity(){return this._bodyOpacity}changeSkin(e,t){var s;if(!e)return;const i=e.target.name;this.usePathTracing?((s=this.sceneInfo.materials.find(r=>r.name===i))==null||s.color.set(t),this.ptRenderer.material.materials.updateFrom(this.sceneInfo.materials,this.sceneInfo.textures),this.sampleCount=0,this.ptRenderer.reset()):e.target.color.set(t)}showState(){this.stats.dom.style.display="block"}hideState(){this.stats.dom.style.display="none"}_loadEnv(){new Y2(new Yy).load(kP,t=>{t.mapping=wl,t.minFilter=lt,t.magFilter=lt,t.colorSpace=mt,t.needsUpdate=!0,this._usePathTracing||(this.scene.environment=t),this.ptRenderer.material.envMapInfo.updateFrom(t),this.ptRenderer.reset()},()=>{},()=>{})}_initEvents(){document.addEventListener("wheel",this._detectTrackpad),this.renderer.domElement.addEventListener("pointermove",this._pointermove),this.renderer.domElement.addEventListener("pointerdown",this._pointerdown)}changeLogo(e,t){var r;const i=HP.load(t);i.flipY=!1,i.colorSpace=mt;const s=e.target;s.material&&(Array.isArray(s.material)?s.material.forEach(a=>{var o;(o=a.map)==null||o.dispose(),a.map=i}):((r=s.material.map)==null||r.dispose(),s.material.map=i))}async generateBVH(){this.slots.forEach(c=>c.hide()),this.lines.hide(),this.opacityCache=this.bodyOpacity,this.bodyOpacity=1;const e=new _G;this._container.updateMatrixWorld();const{bvh:t,textures:i,materials:s,lights:r}=await e.generate(this._container);this.sceneInfo={materials:s,textures:i};const a=t.geometry,o=this.ptRenderer.material;o.bvh.updateFrom(t),o.attributesArray.updateFrom(a.attributes.normal,a.attributes.tangent,a.attributes.uv,a.attributes.color),o.materialIndexAttribute.updateFrom(a.attributes.materialIndex);const l=window.devicePixelRatio||1;o.textures.setTextures(this.renderer,1024*l,1024*l,i),o.materials.updateFrom(s,i),o.lights.updateFrom(r),o.lightCount=r.length,this.ptRenderer.material.materials.updateFrom(this.sceneInfo.materials,this.sceneInfo.textures),this.ptRenderer.reset(),this.sampleCount=0,e.dispose(),this.usePathTracing=!0}download(){const e=this.renderer.domElement.toDataURL("image/png"),t=document.createElement("a");t.href=e,t.download="transparent-background-object.png",document.body.appendChild(t),t.click(),document.body.removeChild(t)}clearAMR(){Yh(this._container)}async addAMR(e){if(!e.startsWith("blob")&&!e.endsWith(".sglb"))return console.error("Not valid amr file url.");const i=await new rp({useCache:!0}).loadAsync(e);if(!i.glb)return;const s=i.glb.clone(!0);s.traverse(l=>{if(l instanceof Qt&&(l.material&&(Array.isArray(l.material)?l.material.forEach(c=>{c.userData.changeColor&&this._skins.push({name:c.userData.name,target:c})}):l.material.userData.changeColor&&this._skins.push({name:l.material.userData.name,target:l.material})),l.userData.isLOGO&&(l.material.transparent=!0,this._logos.push({name:l.userData.name,target:l}))),l.name.startsWith("Slot")){const c=l.userData.name;if(c&&l.userData.isSlot){const d=new ap({name:c,slot:l});d.addEventListener(ln.ON_DROP,h=>{this.props.useSound&&this._sound.play()}),d.addEventListener(ln.ON_BEFORE_SELECTED,h=>{this.slots.forEach(u=>{u.selected&&(u.selected=!1)})}),d.addEventListener(ln.ON_ERROR_STATE_CHANGE,h=>{if(this._outlinePassError.selectedObjects=this._outlinePassError.selectedObjects.filter(u=>!!u.parent),h){if(d.device){if(this._outlinePassError.selectedObjects.find(p=>{var m;return p.parent==((m=d.device)==null?void 0:m.parent)}))return;this._outlinePassError.selectedObjects=[d.device,...this._outlinePassError.selectedObjects]}}else d.device&&(this._outlinePassError.selectedObjects=this._outlinePassError.selectedObjects.filter(u=>{var p;return u.parent!=((p=d.device)==null?void 0:p.parent)}))}),this.slots.push(d),l.add(d)}}}),s.traverse(l=>{if(l instanceof Qt&&l.material)if(Array.isArray(l.material))l.material.forEach(d=>{this._materialsCache.set(d.uuid,{opacity:d.opacity,transparent:d.transparent,roughness:d.roughness,metalness:d.metalness,color:d.color,mat:d})});else{const c=l.material;this._materialsCache.set(c.uuid,{opacity:c.opacity,transparent:c.transparent,roughness:c.roughness,metalness:c.metalness,color:c.color,mat:c})}}),s.updateMatrixWorld(!0),this._container.updateMatrixWorld(),this.add(s);const r=new _t;r.setFromObject(this._container);const a=new A;r.getSize(a);const o=Math.max(a.x,a.y,a.z);this.controls.minDistance=o*2/3,this.controls.maxDistance=o*2}select(e){typeof e=="string"||(Array.isArray(e)?this._outlinePass.selectedObjects=[...e]:this._outlinePass.selectedObjects=[e])}appendTo(e){e.append(this.renderer.domElement),e.append(this.stats.dom),e.append(this.lines),e.append(this.css2dRenderer.domElement),this.stats.dom.style.bottom="0",this.stats.dom.style.top="auto",this.resize(),this._resizeObserver=new ResizeObserver(this.resize),this._resizeObserver.observe(e)}add(e){this._container.add(e)}updatePosition(){this.lines.forceUpdate()}destroy(){var t,i;this.stats.dom.remove(),this._emitter.removeAllListeners(),(t=this._fitAnimation)==null||t.stop(),document.removeEventListener("wheel",this._detectTrackpad),this.renderer.domElement.removeEventListener("pointermove",this._pointermove);const e=this.renderer.domElement.parentElement;e&&((i=this._resizeObserver)==null||i.unobserve(e)),this.controls.dispose(),this.renderer.dispose(),this._composer.dispose(),this.scene.traverse(s=>{s instanceof Qt?(s.geometry.dispose(),Array.isArray(s.material)?s.material.forEach(r=>r.dispose()):s.material&&s.material.dispose()):s instanceof ap&&s.dispose(),s.removeFromParent()})}}var pr=(n=>(n[n.WEBGL_LEGACY=0]="WEBGL_LEGACY",n[n.WEBGL=1]="WEBGL",n[n.WEBGL2=2]="WEBGL2",n))(pr||{}),Hv=(n=>(n[n.UNKNOWN=0]="UNKNOWN",n[n.WEBGL=1]="WEBGL",n[n.CANVAS=2]="CANVAS",n))(Hv||{}),vp=(n=>(n[n.COLOR=16384]="COLOR",n[n.DEPTH=256]="DEPTH",n[n.STENCIL=1024]="STENCIL",n))(vp||{}),He=(n=>(n[n.NORMAL=0]="NORMAL",n[n.ADD=1]="ADD",n[n.MULTIPLY=2]="MULTIPLY",n[n.SCREEN=3]="SCREEN",n[n.OVERLAY=4]="OVERLAY",n[n.DARKEN=5]="DARKEN",n[n.LIGHTEN=6]="LIGHTEN",n[n.COLOR_DODGE=7]="COLOR_DODGE",n[n.COLOR_BURN=8]="COLOR_BURN",n[n.HARD_LIGHT=9]="HARD_LIGHT",n[n.SOFT_LIGHT=10]="SOFT_LIGHT",n[n.DIFFERENCE=11]="DIFFERENCE",n[n.EXCLUSION=12]="EXCLUSION",n[n.HUE=13]="HUE",n[n.SATURATION=14]="SATURATION",n[n.COLOR=15]="COLOR",n[n.LUMINOSITY=16]="LUMINOSITY",n[n.NORMAL_NPM=17]="NORMAL_NPM",n[n.ADD_NPM=18]="ADD_NPM",n[n.SCREEN_NPM=19]="SCREEN_NPM",n[n.NONE=20]="NONE",n[n.SRC_OVER=0]="SRC_OVER",n[n.SRC_IN=21]="SRC_IN",n[n.SRC_OUT=22]="SRC_OUT",n[n.SRC_ATOP=23]="SRC_ATOP",n[n.DST_OVER=24]="DST_OVER",n[n.DST_IN=25]="DST_IN",n[n.DST_OUT=26]="DST_OUT",n[n.DST_ATOP=27]="DST_ATOP",n[n.ERASE=26]="ERASE",n[n.SUBTRACT=28]="SUBTRACT",n[n.XOR=29]="XOR",n))(He||{}),In=(n=>(n[n.POINTS=0]="POINTS",n[n.LINES=1]="LINES",n[n.LINE_LOOP=2]="LINE_LOOP",n[n.LINE_STRIP=3]="LINE_STRIP",n[n.TRIANGLES=4]="TRIANGLES",n[n.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",n[n.TRIANGLE_FAN=6]="TRIANGLE_FAN",n))(In||{}),se=(n=>(n[n.RGBA=6408]="RGBA",n[n.RGB=6407]="RGB",n[n.RG=33319]="RG",n[n.RED=6403]="RED",n[n.RGBA_INTEGER=36249]="RGBA_INTEGER",n[n.RGB_INTEGER=36248]="RGB_INTEGER",n[n.RG_INTEGER=33320]="RG_INTEGER",n[n.RED_INTEGER=36244]="RED_INTEGER",n[n.ALPHA=6406]="ALPHA",n[n.LUMINANCE=6409]="LUMINANCE",n[n.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",n[n.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",n[n.DEPTH_STENCIL=34041]="DEPTH_STENCIL",n))(se||{}),Ha=(n=>(n[n.TEXTURE_2D=3553]="TEXTURE_2D",n[n.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",n[n.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",n[n.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",n[n.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",n[n.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",n[n.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",n))(Ha||{}),Ee=(n=>(n[n.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",n[n.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",n[n.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",n[n.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",n[n.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",n[n.UNSIGNED_INT=5125]="UNSIGNED_INT",n[n.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",n[n.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",n[n.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",n[n.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",n[n.BYTE=5120]="BYTE",n[n.SHORT=5122]="SHORT",n[n.INT=5124]="INT",n[n.FLOAT=5126]="FLOAT",n[n.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",n[n.HALF_FLOAT=36193]="HALF_FLOAT",n))(Ee||{}),ve=(n=>(n[n.FLOAT=0]="FLOAT",n[n.INT=1]="INT",n[n.UINT=2]="UINT",n))(ve||{}),ss=(n=>(n[n.NEAREST=0]="NEAREST",n[n.LINEAR=1]="LINEAR",n))(ss||{}),Gs=(n=>(n[n.CLAMP=33071]="CLAMP",n[n.REPEAT=10497]="REPEAT",n[n.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",n))(Gs||{}),wn=(n=>(n[n.OFF=0]="OFF",n[n.POW2=1]="POW2",n[n.ON=2]="ON",n[n.ON_MANUAL=3]="ON_MANUAL",n))(wn||{}),_i=(n=>(n[n.NPM=0]="NPM",n[n.UNPACK=1]="UNPACK",n[n.PMA=2]="PMA",n[n.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",n[n.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",n[n.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",n))(_i||{}),_n=(n=>(n[n.NO=0]="NO",n[n.YES=1]="YES",n[n.AUTO=2]="AUTO",n[n.BLEND=0]="BLEND",n[n.CLEAR=1]="CLEAR",n[n.BLIT=2]="BLIT",n))(_n||{}),bp=(n=>(n[n.AUTO=0]="AUTO",n[n.MANUAL=1]="MANUAL",n))(bp||{}),ji=(n=>(n.LOW="lowp",n.MEDIUM="mediump",n.HIGH="highp",n))(ji||{}),Ft=(n=>(n[n.NONE=0]="NONE",n[n.SCISSOR=1]="SCISSOR",n[n.STENCIL=2]="STENCIL",n[n.SPRITE=3]="SPRITE",n[n.COLOR=4]="COLOR",n))(Ft||{}),Ht=(n=>(n[n.NONE=0]="NONE",n[n.LOW=2]="LOW",n[n.MEDIUM=4]="MEDIUM",n[n.HIGH=8]="HIGH",n))(Ht||{}),Gn=(n=>(n[n.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",n[n.ARRAY_BUFFER=34962]="ARRAY_BUFFER",n[n.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",n))(Gn||{});const be={ADAPTER:{createCanvas:(n,e)=>{const t=document.createElement("canvas");return t.width=n,t.height=e,t},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(n,e)=>fetch(n,e),parseXML:n=>new DOMParser().parseFromString(n,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var xp=/iPhone/i,Zv=/iPod/i,Yv=/iPad/i,Dv=/\biOS-universal(?:.+)Mac\b/i,Sp=/\bAndroid(?:.+)Mobile\b/i,jv=/Android/i,Za=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Qh=/Silk/i,rs=/Windows Phone/i,Fv=/\bWindows(?:.+)ARM\b/i,Bv=/BlackBerry/i,Jv=/BB10/i,Vv=/Opera Mini/i,Uv=/\b(CriOS|Chrome)(?:.+)Mobile/i,Qv=/Mobile(?:.+)Firefox\b/i,$v=function(n){return typeof n<"u"&&n.platform==="MacIntel"&&typeof n.maxTouchPoints=="number"&&n.maxTouchPoints>1&&typeof MSStream>"u"};function DP(n){return function(e){return e.test(n)}}function eb(n){var e={userAgent:"",platform:"",maxTouchPoints:0};!n&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof n=="string"?e.userAgent=n:n&&n.userAgent&&(e={userAgent:n.userAgent,platform:n.platform,maxTouchPoints:n.maxTouchPoints||0});var t=e.userAgent,i=t.split("[FBAN");typeof i[1]<"u"&&(t=i[0]),i=t.split("Twitter"),typeof i[1]<"u"&&(t=i[0]);var s=DP(t),r={apple:{phone:s(xp)&&!s(rs),ipod:s(Zv),tablet:!s(xp)&&(s(Yv)||$v(e))&&!s(rs),universal:s(Dv),device:(s(xp)||s(Zv)||s(Yv)||s(Dv)||$v(e))&&!s(rs)},amazon:{phone:s(Za),tablet:!s(Za)&&s(Qh),device:s(Za)||s(Qh)},android:{phone:!s(rs)&&s(Za)||!s(rs)&&s(Sp),tablet:!s(rs)&&!s(Za)&&!s(Sp)&&(s(Qh)||s(jv)),device:!s(rs)&&(s(Za)||s(Qh)||s(Sp)||s(jv))||s(/\bokhttp\b/i)},windows:{phone:s(rs),tablet:s(Fv),device:s(rs)||s(Fv)},other:{blackberry:s(Bv),blackberry10:s(Jv),opera:s(Vv),firefox:s(Qv),chrome:s(Uv),device:s(Bv)||s(Jv)||s(Vv)||s(Qv)||s(Uv)},any:!1,phone:!1,tablet:!1};return r.any=r.apple.device||r.android.device||r.windows.device||r.other.device,r.phone=r.apple.phone||r.android.phone||r.windows.phone,r.tablet=r.apple.tablet||r.android.tablet||r.windows.tablet,r}const jP=eb.default??eb,as=jP(globalThis.navigator);be.RETINA_PREFIX=/@([0-9\.]+)x/,be.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var tb={exports:{}};(function(n){var e=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function s(l,c,d){this.fn=l,this.context=c,this.once=d||!1}function r(l,c,d,h,u){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new s(d,h||l,u),m=t?t+c:c;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new i:delete l._events[c]}function o(){this._events=new i,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],d,h;if(this._eventsCount===0)return c;for(h in d=this._events)e.call(d,h)&&c.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},o.prototype.listeners=function(c){var d=t?t+c:c,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var u=0,p=h.length,m=new Array(p);u<p;u++)m[u]=h[u].fn;return m},o.prototype.listenerCount=function(c){var d=t?t+c:c,h=this._events[d];return h?h.fn?1:h.length:0},o.prototype.emit=function(c,d,h,u,p,m){var y=t?t+c:c;if(!this._events[y])return!1;var g=this._events[y],f=arguments.length,v,b;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),f){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,d),!0;case 3:return g.fn.call(g.context,d,h),!0;case 4:return g.fn.call(g.context,d,h,u),!0;case 5:return g.fn.call(g.context,d,h,u,p),!0;case 6:return g.fn.call(g.context,d,h,u,p,m),!0}for(b=1,v=new Array(f-1);b<f;b++)v[b-1]=arguments[b];g.fn.apply(g.context,v)}else{var x=g.length,S;for(b=0;b<x;b++)switch(g[b].once&&this.removeListener(c,g[b].fn,void 0,!0),f){case 1:g[b].fn.call(g[b].context);break;case 2:g[b].fn.call(g[b].context,d);break;case 3:g[b].fn.call(g[b].context,d,h);break;case 4:g[b].fn.call(g[b].context,d,h,u);break;default:if(!v)for(S=1,v=new Array(f-1);S<f;S++)v[S-1]=arguments[S];g[b].fn.apply(g[b].context,v)}}return!0},o.prototype.on=function(c,d,h){return r(this,c,d,h,!1)},o.prototype.once=function(c,d,h){return r(this,c,d,h,!0)},o.prototype.removeListener=function(c,d,h,u){var p=t?t+c:c;if(!this._events[p])return this;if(!d)return a(this,p),this;var m=this._events[p];if(m.fn)m.fn===d&&(!u||m.once)&&(!h||m.context===h)&&a(this,p);else{for(var y=0,g=[],f=m.length;y<f;y++)(m[y].fn!==d||u&&!m[y].once||h&&m[y].context!==h)&&g.push(m[y]);g.length?this._events[p]=g.length===1?g[0]:g:a(this,p)}return this},o.prototype.removeAllListeners=function(c){var d;return c?(d=t?t+c:c,this._events[d]&&a(this,d)):(this._events=new i,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=t,o.EventEmitter=o,n.exports=o})(tb);var FP=tb.exports;const $o=Ud(FP);var Lp={exports:{}};Lp.exports=$h,Lp.exports.default=$h;function $h(n,e,t){t=t||2;var i=e&&e.length,s=i?e[0]*t:n.length,r=ib(n,0,s,t,!0),a=[];if(!r||r.next===r.prev)return a;var o,l,c,d,h,u,p;if(i&&(r=QP(n,e,r,t)),n.length>80*t){o=c=n[0],l=d=n[1];for(var m=t;m<s;m+=t)h=n[m],u=n[m+1],h<o&&(o=h),u<l&&(l=u),h>c&&(c=h),u>d&&(d=u);p=Math.max(c-o,d-l),p=p!==0?32767/p:0}return el(r,a,t,o,l,p,0),a}function ib(n,e,t,i,s){var r,a;if(s===Mp(n,e,t,i)>0)for(r=e;r<t;r+=i)a=rb(r,n[r],n[r+1],a);else for(r=t-i;r>=e;r-=i)a=rb(r,n[r],n[r+1],a);return a&&ec(a,a.next)&&(il(a),a=a.next),a}function fr(n,e){if(!n)return n;e||(e=n);var t=n,i;do if(i=!1,!t.steiner&&(ec(t,t.next)||Pt(t.prev,t,t.next)===0)){if(il(t),t=e=t.prev,t===t.next)break;i=!0}else t=t.next;while(i||t!==e);return e}function el(n,e,t,i,s,r,a){if(n){!a&&r&&n5(n,i,s,r);for(var o=n,l,c;n.prev!==n.next;){if(l=n.prev,c=n.next,r?JP(n,i,s,r):BP(n)){e.push(l.i/t|0),e.push(n.i/t|0),e.push(c.i/t|0),il(n),n=c.next,o=c.next;continue}if(n=c,n===o){a?a===1?(n=VP(fr(n),e,t),el(n,e,t,i,s,r,2)):a===2&&UP(n,e,t,i,s,r):el(fr(n),e,t,i,s,r,1);break}}}}function BP(n){var e=n.prev,t=n,i=n.next;if(Pt(e,t,i)>=0)return!1;for(var s=e.x,r=t.x,a=i.x,o=e.y,l=t.y,c=i.y,d=s<r?s<a?s:a:r<a?r:a,h=o<l?o<c?o:c:l<c?l:c,u=s>r?s>a?s:a:r>a?r:a,p=o>l?o>c?o:c:l>c?l:c,m=i.next;m!==e;){if(m.x>=d&&m.x<=u&&m.y>=h&&m.y<=p&&Ya(s,o,r,l,a,c,m.x,m.y)&&Pt(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function JP(n,e,t,i){var s=n.prev,r=n,a=n.next;if(Pt(s,r,a)>=0)return!1;for(var o=s.x,l=r.x,c=a.x,d=s.y,h=r.y,u=a.y,p=o<l?o<c?o:c:l<c?l:c,m=d<h?d<u?d:u:h<u?h:u,y=o>l?o>c?o:c:l>c?l:c,g=d>h?d>u?d:u:h>u?h:u,f=Cp(p,m,e,t,i),v=Cp(y,g,e,t,i),b=n.prevZ,x=n.nextZ;b&&b.z>=f&&x&&x.z<=v;){if(b.x>=p&&b.x<=y&&b.y>=m&&b.y<=g&&b!==s&&b!==a&&Ya(o,d,l,h,c,u,b.x,b.y)&&Pt(b.prev,b,b.next)>=0||(b=b.prevZ,x.x>=p&&x.x<=y&&x.y>=m&&x.y<=g&&x!==s&&x!==a&&Ya(o,d,l,h,c,u,x.x,x.y)&&Pt(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;b&&b.z>=f;){if(b.x>=p&&b.x<=y&&b.y>=m&&b.y<=g&&b!==s&&b!==a&&Ya(o,d,l,h,c,u,b.x,b.y)&&Pt(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;x&&x.z<=v;){if(x.x>=p&&x.x<=y&&x.y>=m&&x.y<=g&&x!==s&&x!==a&&Ya(o,d,l,h,c,u,x.x,x.y)&&Pt(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function VP(n,e,t){var i=n;do{var s=i.prev,r=i.next.next;!ec(s,r)&&nb(s,i,i.next,r)&&tl(s,r)&&tl(r,s)&&(e.push(s.i/t|0),e.push(i.i/t|0),e.push(r.i/t|0),il(i),il(i.next),i=n=r),i=i.next}while(i!==n);return fr(i)}function UP(n,e,t,i,s,r){var a=n;do{for(var o=a.next.next;o!==a.prev;){if(a.i!==o.i&&a5(a,o)){var l=sb(a,o);a=fr(a,a.next),l=fr(l,l.next),el(a,e,t,i,s,r,0),el(l,e,t,i,s,r,0);return}o=o.next}a=a.next}while(a!==n)}function QP(n,e,t,i){var s=[],r,a,o,l,c;for(r=0,a=e.length;r<a;r++)o=e[r]*i,l=r<a-1?e[r+1]*i:n.length,c=ib(n,o,l,i,!1),c===c.next&&(c.steiner=!0),s.push(r5(c));for(s.sort($P),r=0;r<s.length;r++)t=e5(s[r],t);return t}function $P(n,e){return n.x-e.x}function e5(n,e){var t=t5(n,e);if(!t)return e;var i=sb(t,n);return fr(i,i.next),fr(t,t.next)}function t5(n,e){var t=e,i=n.x,s=n.y,r=-1/0,a;do{if(s<=t.y&&s>=t.next.y&&t.next.y!==t.y){var o=t.x+(s-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(o<=i&&o>r&&(r=o,a=t.x<t.next.x?t:t.next,o===i))return a}t=t.next}while(t!==e);if(!a)return null;var l=a,c=a.x,d=a.y,h=1/0,u;t=a;do i>=t.x&&t.x>=c&&i!==t.x&&Ya(s<d?i:r,s,c,d,s<d?r:i,s,t.x,t.y)&&(u=Math.abs(s-t.y)/(i-t.x),tl(t,n)&&(u<h||u===h&&(t.x>a.x||t.x===a.x&&i5(a,t)))&&(a=t,h=u)),t=t.next;while(t!==l);return a}function i5(n,e){return Pt(n.prev,n,e.prev)<0&&Pt(e.next,n,n.next)<0}function n5(n,e,t,i){var s=n;do s.z===0&&(s.z=Cp(s.x,s.y,e,t,i)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next;while(s!==n);s.prevZ.nextZ=null,s.prevZ=null,s5(s)}function s5(n){var e,t,i,s,r,a,o,l,c=1;do{for(t=n,n=null,r=null,a=0;t;){for(a++,i=t,o=0,e=0;e<c&&(o++,i=i.nextZ,!!i);e++);for(l=c;o>0||l>0&&i;)o!==0&&(l===0||!i||t.z<=i.z)?(s=t,t=t.nextZ,o--):(s=i,i=i.nextZ,l--),r?r.nextZ=s:n=s,s.prevZ=r,r=s;t=i}r.nextZ=null,c*=2}while(a>1);return n}function Cp(n,e,t,i,s){return n=(n-t)*s|0,e=(e-i)*s|0,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,n|e<<1}function r5(n){var e=n,t=n;do(e.x<t.x||e.x===t.x&&e.y<t.y)&&(t=e),e=e.next;while(e!==n);return t}function Ya(n,e,t,i,s,r,a,o){return(s-a)*(e-o)>=(n-a)*(r-o)&&(n-a)*(i-o)>=(t-a)*(e-o)&&(t-a)*(r-o)>=(s-a)*(i-o)}function a5(n,e){return n.next.i!==e.i&&n.prev.i!==e.i&&!o5(n,e)&&(tl(n,e)&&tl(e,n)&&l5(n,e)&&(Pt(n.prev,n,e.prev)||Pt(n,e.prev,e))||ec(n,e)&&Pt(n.prev,n,n.next)>0&&Pt(e.prev,e,e.next)>0)}function Pt(n,e,t){return(e.y-n.y)*(t.x-e.x)-(e.x-n.x)*(t.y-e.y)}function ec(n,e){return n.x===e.x&&n.y===e.y}function nb(n,e,t,i){var s=ic(Pt(n,e,t)),r=ic(Pt(n,e,i)),a=ic(Pt(t,i,n)),o=ic(Pt(t,i,e));return!!(s!==r&&a!==o||s===0&&tc(n,t,e)||r===0&&tc(n,i,e)||a===0&&tc(t,n,i)||o===0&&tc(t,e,i))}function tc(n,e,t){return e.x<=Math.max(n.x,t.x)&&e.x>=Math.min(n.x,t.x)&&e.y<=Math.max(n.y,t.y)&&e.y>=Math.min(n.y,t.y)}function ic(n){return n>0?1:n<0?-1:0}function o5(n,e){var t=n;do{if(t.i!==n.i&&t.next.i!==n.i&&t.i!==e.i&&t.next.i!==e.i&&nb(t,t.next,n,e))return!0;t=t.next}while(t!==n);return!1}function tl(n,e){return Pt(n.prev,n,n.next)<0?Pt(n,e,n.next)>=0&&Pt(n,n.prev,e)>=0:Pt(n,e,n.prev)<0||Pt(n,n.next,e)<0}function l5(n,e){var t=n,i=!1,s=(n.x+e.x)/2,r=(n.y+e.y)/2;do t.y>r!=t.next.y>r&&t.next.y!==t.y&&s<(t.next.x-t.x)*(r-t.y)/(t.next.y-t.y)+t.x&&(i=!i),t=t.next;while(t!==n);return i}function sb(n,e){var t=new Tp(n.i,n.x,n.y),i=new Tp(e.i,e.x,e.y),s=n.next,r=e.prev;return n.next=e,e.prev=n,t.next=s,s.prev=t,i.next=t,t.prev=i,r.next=i,i.prev=r,i}function rb(n,e,t,i){var s=new Tp(n,e,t);return i?(s.next=i.next,s.prev=i,i.next.prev=s,i.next=s):(s.prev=s,s.next=s),s}function il(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function Tp(n,e,t){this.i=n,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}$h.deviation=function(n,e,t,i){var s=e&&e.length,r=s?e[0]*t:n.length,a=Math.abs(Mp(n,0,r,t));if(s)for(var o=0,l=e.length;o<l;o++){var c=e[o]*t,d=o<l-1?e[o+1]*t:n.length;a-=Math.abs(Mp(n,c,d,t))}var h=0;for(o=0;o<i.length;o+=3){var u=i[o]*t,p=i[o+1]*t,m=i[o+2]*t;h+=Math.abs((n[u]-n[m])*(n[p+1]-n[u+1])-(n[u]-n[p])*(n[m+1]-n[u+1]))}return a===0&&h===0?0:Math.abs((h-a)/a)};function Mp(n,e,t,i){for(var s=0,r=e,a=t-i;r<t;r+=i)s+=(n[a]-n[r])*(n[r+1]+n[a+1]),a=r;return s}$h.flatten=function(n){for(var e=n[0][0].length,t={vertices:[],holes:[],dimensions:e},i=0,s=0;s<n.length;s++){for(var r=0;r<n[s].length;r++)for(var a=0;a<e;a++)t.vertices.push(n[s][r][a]);s>0&&(i+=n[s-1].length,t.holes.push(i))}return t};var h5=Lp.exports;const c5=Ud(h5);var nc={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */nc.exports,function(n,e){(function(t){var i=e&&!e.nodeType&&e,s=n&&!n.nodeType&&n,r=typeof ns=="object"&&ns;(r.global===r||r.window===r||r.self===r)&&(t=r);var a,o=2147483647,l=36,c=1,d=26,h=38,u=700,p=72,m=128,y="-",g=/^xn--/,f=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-c,S=Math.floor,C=String.fromCharCode,T;function I(N){throw new RangeError(b[N])}function L(N,H){for(var ee=N.length,Y=[];ee--;)Y[ee]=H(N[ee]);return Y}function M(N,H){var ee=N.split("@"),Y="";ee.length>1&&(Y=ee[0]+"@",N=ee[1]),N=N.replace(v,".");var U=N.split("."),re=L(U,H).join(".");return Y+re}function K(N){for(var H=[],ee=0,Y=N.length,U,re;ee<Y;)U=N.charCodeAt(ee++),U>=55296&&U<=56319&&ee<Y?(re=N.charCodeAt(ee++),(re&64512)==56320?H.push(((U&1023)<<10)+(re&1023)+65536):(H.push(U),ee--)):H.push(U);return H}function P(N){return L(N,function(H){var ee="";return H>65535&&(H-=65536,ee+=C(H>>>10&1023|55296),H=56320|H&1023),ee+=C(H),ee}).join("")}function G(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:l}function w(N,H){return N+22+75*(N<26)-((H!=0)<<5)}function O(N,H,ee){var Y=0;for(N=ee?S(N/u):N>>1,N+=S(N/H);N>x*d>>1;Y+=l)N=S(N/x);return S(Y+(x+1)*N/(N+h))}function X(N){var H=[],ee=N.length,Y,U=0,re=m,pe=p,ge,we,Pe,Le,Se,k,tt,Ce,ke;for(ge=N.lastIndexOf(y),ge<0&&(ge=0),we=0;we<ge;++we)N.charCodeAt(we)>=128&&I("not-basic"),H.push(N.charCodeAt(we));for(Pe=ge>0?ge+1:0;Pe<ee;){for(Le=U,Se=1,k=l;Pe>=ee&&I("invalid-input"),tt=G(N.charCodeAt(Pe++)),(tt>=l||tt>S((o-U)/Se))&&I("overflow"),U+=tt*Se,Ce=k<=pe?c:k>=pe+d?d:k-pe,!(tt<Ce);k+=l)ke=l-Ce,Se>S(o/ke)&&I("overflow"),Se*=ke;Y=H.length+1,pe=O(U-Le,Y,Le==0),S(U/Y)>o-re&&I("overflow"),re+=S(U/Y),U%=Y,H.splice(U++,0,re)}return P(H)}function W(N){var H,ee,Y,U,re,pe,ge,we,Pe,Le,Se,k=[],tt,Ce,ke,Xe;for(N=K(N),tt=N.length,H=m,ee=0,re=p,pe=0;pe<tt;++pe)Se=N[pe],Se<128&&k.push(C(Se));for(Y=U=k.length,U&&k.push(y);Y<tt;){for(ge=o,pe=0;pe<tt;++pe)Se=N[pe],Se>=H&&Se<ge&&(ge=Se);for(Ce=Y+1,ge-H>S((o-ee)/Ce)&&I("overflow"),ee+=(ge-H)*Ce,H=ge,pe=0;pe<tt;++pe)if(Se=N[pe],Se<H&&++ee>o&&I("overflow"),Se==H){for(we=ee,Pe=l;Le=Pe<=re?c:Pe>=re+d?d:Pe-re,!(we<Le);Pe+=l)Xe=we-Le,ke=l-Le,k.push(C(w(Le+Xe%ke,0))),we=S(Xe/ke);k.push(C(w(we,0))),re=O(ee,Ce,Y==U),ee=0,++Y}++ee,++H}return k.join("")}function J(N){return M(N,function(H){return g.test(H)?X(H.slice(4).toLowerCase()):H})}function D(N){return M(N,function(H){return f.test(H)?"xn--"+W(H):H})}if(a={version:"1.4.1",ucs2:{decode:K,encode:P},decode:X,encode:W,toASCII:D,toUnicode:J},i&&s)if(n.exports==i)s.exports=a;else for(T in a)a.hasOwnProperty(T)&&(i[T]=a[T]);else t.punycode=a})(ns)}(nc,nc.exports);var u5=nc.exports,d5=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var s=42;e[t]=s;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var r=Object.getOwnPropertySymbols(e);if(r.length!==1||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==s||a.enumerable!==!0)return!1}return!0},ab=typeof Symbol<"u"&&Symbol,p5=d5,f5=function(){return typeof ab!="function"||typeof Symbol!="function"||typeof ab("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:p5()},ob={foo:{}},m5=Object,g5=function(){return{__proto__:ob}.foo===ob.foo&&!({__proto__:null}instanceof m5)},y5="Function.prototype.bind called on incompatible ",v5=Object.prototype.toString,b5=Math.max,x5="[object Function]",lb=function(e,t){for(var i=[],s=0;s<e.length;s+=1)i[s]=e[s];for(var r=0;r<t.length;r+=1)i[r+e.length]=t[r];return i},S5=function(e,t){for(var i=[],s=t||0,r=0;s<e.length;s+=1,r+=1)i[r]=e[s];return i},L5=function(n,e){for(var t="",i=0;i<n.length;i+=1)t+=n[i],i+1<n.length&&(t+=e);return t},C5=function(e){var t=this;if(typeof t!="function"||v5.apply(t)!==x5)throw new TypeError(y5+t);for(var i=S5(arguments,1),s,r=function(){if(this instanceof s){var d=t.apply(this,lb(i,arguments));return Object(d)===d?d:this}return t.apply(e,lb(i,arguments))},a=b5(0,t.length-i.length),o=[],l=0;l<a;l++)o[l]="$"+l;if(s=Function("binder","return function ("+L5(o,",")+"){ return binder.apply(this,arguments); }")(r),t.prototype){var c=function(){};c.prototype=t.prototype,s.prototype=new c,c.prototype=null}return s},T5=C5,Ip=Function.prototype.bind||T5,M5=Function.prototype.call,I5=Object.prototype.hasOwnProperty,w5=Ip,_5=w5.call(M5,I5),ot,Da=SyntaxError,hb=Function,ja=TypeError,wp=function(n){try{return hb('"use strict"; return ('+n+").constructor;")()}catch{}},mr=Object.getOwnPropertyDescriptor;if(mr)try{mr({},"")}catch{mr=null}var _p=function(){throw new ja},G5=mr?function(){try{return arguments.callee,_p}catch{try{return mr(arguments,"callee").get}catch{return _p}}}():_p,Fa=f5(),P5=g5(),ei=Object.getPrototypeOf||(P5?function(n){return n.__proto__}:null),Ba={},E5=typeof Uint8Array>"u"||!ei?ot:ei(Uint8Array),gr={"%AggregateError%":typeof AggregateError>"u"?ot:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ot:ArrayBuffer,"%ArrayIteratorPrototype%":Fa&&ei?ei([][Symbol.iterator]()):ot,"%AsyncFromSyncIteratorPrototype%":ot,"%AsyncFunction%":Ba,"%AsyncGenerator%":Ba,"%AsyncGeneratorFunction%":Ba,"%AsyncIteratorPrototype%":Ba,"%Atomics%":typeof Atomics>"u"?ot:Atomics,"%BigInt%":typeof BigInt>"u"?ot:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ot:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ot:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ot:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ot:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ot:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ot:FinalizationRegistry,"%Function%":hb,"%GeneratorFunction%":Ba,"%Int8Array%":typeof Int8Array>"u"?ot:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ot:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ot:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Fa&&ei?ei(ei([][Symbol.iterator]())):ot,"%JSON%":typeof JSON=="object"?JSON:ot,"%Map%":typeof Map>"u"?ot:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Fa||!ei?ot:ei(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ot:Promise,"%Proxy%":typeof Proxy>"u"?ot:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ot:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ot:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Fa||!ei?ot:ei(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ot:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Fa&&ei?ei(""[Symbol.iterator]()):ot,"%Symbol%":Fa?Symbol:ot,"%SyntaxError%":Da,"%ThrowTypeError%":G5,"%TypedArray%":E5,"%TypeError%":ja,"%Uint8Array%":typeof Uint8Array>"u"?ot:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ot:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ot:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ot:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ot:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ot:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ot:WeakSet};if(ei)try{null.error}catch(n){var A5=ei(ei(n));gr["%Error.prototype%"]=A5}var R5=function n(e){var t;if(e==="%AsyncFunction%")t=wp("async function () {}");else if(e==="%GeneratorFunction%")t=wp("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=wp("async function* () {}");else if(e==="%AsyncGenerator%"){var i=n("%AsyncGeneratorFunction%");i&&(t=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=n("%AsyncGenerator%");s&&ei&&(t=ei(s.prototype))}return gr[e]=t,t},cb={"%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"]},nl=Ip,sc=_5,K5=nl.call(Function.call,Array.prototype.concat),O5=nl.call(Function.apply,Array.prototype.splice),ub=nl.call(Function.call,String.prototype.replace),rc=nl.call(Function.call,String.prototype.slice),q5=nl.call(Function.call,RegExp.prototype.exec),X5=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z5=/\\(\\)?/g,W5=function(e){var t=rc(e,0,1),i=rc(e,-1);if(t==="%"&&i!=="%")throw new Da("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new Da("invalid intrinsic syntax, expected opening `%`");var s=[];return ub(e,X5,function(r,a,o,l){s[s.length]=o?ub(l,z5,"$1"):a||r}),s},N5=function(e,t){var i=e,s;if(sc(cb,i)&&(s=cb[i],i="%"+s[0]+"%"),sc(gr,i)){var r=gr[i];if(r===Ba&&(r=R5(i)),typeof r>"u"&&!t)throw new ja("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:i,value:r}}throw new Da("intrinsic "+e+" does not exist!")},yr=function(e,t){if(typeof e!="string"||e.length===0)throw new ja("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new ja('"allowMissing" argument must be a boolean');if(q5(/^%?[^%]*%?$/,e)===null)throw new Da("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=W5(e),s=i.length>0?i[0]:"",r=N5("%"+s+"%",t),a=r.name,o=r.value,l=!1,c=r.alias;c&&(s=c[0],O5(i,K5([0,1],c)));for(var d=1,h=!0;d<i.length;d+=1){var u=i[d],p=rc(u,0,1),m=rc(u,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new Da("property names with quotes must have matching quotes");if((u==="constructor"||!h)&&(l=!0),s+="."+u,a="%"+s+"%",sc(gr,a))o=gr[a];else if(o!=null){if(!(u in o)){if(!t)throw new ja("base intrinsic for "+e+" exists, but the property is not available.");return}if(mr&&d+1>=i.length){var y=mr(o,u);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[u]}else h=sc(o,u),o=o[u];h&&!l&&(gr[a]=o)}}return o},db={exports:{}},k5=yr,Gp=k5("%Object.defineProperty%",!0),Pp=function(){if(Gp)try{return Gp({},"a",{value:1}),!0}catch{return!1}return!1};Pp.hasArrayLengthDefineBug=function(){if(!Pp())return null;try{return Gp([],"length",{value:1}).length!==1}catch{return!0}};var pb=Pp,H5=yr,ac=H5("%Object.getOwnPropertyDescriptor%",!0);if(ac)try{ac([],"length")}catch{ac=null}var fb=ac,Z5=pb(),Ep=yr,sl=Z5&&Ep("%Object.defineProperty%",!0);if(sl)try{sl({},"a",{value:1})}catch{sl=!1}var Y5=Ep("%SyntaxError%"),Ja=Ep("%TypeError%"),mb=fb,D5=function(e,t,i){if(!e||typeof e!="object"&&typeof e!="function")throw new Ja("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Ja("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ja("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ja("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ja("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ja("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,r=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,l=!!mb&&mb(e,t);if(sl)sl(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:s===null&&l?l.enumerable:!s,value:i,writable:r===null&&l?l.writable:!r});else if(o||!s&&!r&&!a)e[t]=i;else throw new Y5("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},gb=yr,yb=D5,j5=pb(),vb=fb,bb=gb("%TypeError%"),F5=gb("%Math.floor%"),B5=function(e,t){if(typeof e!="function")throw new bb("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||F5(t)!==t)throw new bb("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],s=!0,r=!0;if("length"in e&&vb){var a=vb(e,"length");a&&!a.configurable&&(s=!1),a&&!a.writable&&(r=!1)}return(s||r||!i)&&(j5?yb(e,"length",t,!0,!0):yb(e,"length",t)),e};(function(n){var e=Ip,t=yr,i=B5,s=t("%TypeError%"),r=t("%Function.prototype.apply%"),a=t("%Function.prototype.call%"),o=t("%Reflect.apply%",!0)||e.call(a,r),l=t("%Object.defineProperty%",!0),c=t("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}n.exports=function(u){if(typeof u!="function")throw new s("a function is required");var p=o(e,a,arguments);return i(p,1+c(0,u.length-(arguments.length-1)),!0)};var d=function(){return o(e,r,arguments)};l?l(n.exports,"apply",{value:d}):n.exports.apply=d})(db);var J5=db.exports,xb=yr,Sb=J5,V5=Sb(xb("String.prototype.indexOf")),U5=function(e,t){var i=xb(e,!!t);return typeof i=="function"&&V5(e,".prototype.")>-1?Sb(i):i};const Q5=CG(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ap=typeof Map=="function"&&Map.prototype,Rp=Object.getOwnPropertyDescriptor&&Ap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,oc=Ap&&Rp&&typeof Rp.get=="function"?Rp.get:null,Lb=Ap&&Map.prototype.forEach,Kp=typeof Set=="function"&&Set.prototype,Op=Object.getOwnPropertyDescriptor&&Kp?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,lc=Kp&&Op&&typeof Op.get=="function"?Op.get:null,Cb=Kp&&Set.prototype.forEach,$5=typeof WeakMap=="function"&&WeakMap.prototype,rl=$5?WeakMap.prototype.has:null,eE=typeof WeakSet=="function"&&WeakSet.prototype,al=eE?WeakSet.prototype.has:null,tE=typeof WeakRef=="function"&&WeakRef.prototype,Tb=tE?WeakRef.prototype.deref:null,iE=Boolean.prototype.valueOf,nE=Object.prototype.toString,sE=Function.prototype.toString,rE=String.prototype.match,qp=String.prototype.slice,Ps=String.prototype.replace,aE=String.prototype.toUpperCase,Mb=String.prototype.toLowerCase,Ib=RegExp.prototype.test,wb=Array.prototype.concat,Pn=Array.prototype.join,oE=Array.prototype.slice,_b=Math.floor,Xp=typeof BigInt=="function"?BigInt.prototype.valueOf:null,zp=Object.getOwnPropertySymbols,Wp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Va=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fi=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Va||!0)?Symbol.toStringTag:null,Gb=Object.prototype.propertyIsEnumerable,Pb=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function Eb(n,e){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||Ib.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var i=n<0?-_b(-n):_b(n);if(i!==n){var s=String(i),r=qp.call(e,s.length+1);return Ps.call(s,t,"$&_")+"."+Ps.call(Ps.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ps.call(e,t,"$&_")}var Np=Q5,Ab=Np.custom,Rb=qb(Ab)?Ab:null,lE=function n(e,t,i,s){var r=t||{};if(Es(r,"quoteStyle")&&r.quoteStyle!=="single"&&r.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Es(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Es(r,"customInspect")?r.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Es(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Es(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=r.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return zb(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?Eb(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return o?Eb(e,c):c}var d=typeof r.depth>"u"?5:r.depth;if(typeof i>"u"&&(i=0),i>=d&&d>0&&typeof e=="object")return kp(e)?"[Array]":"[Object]";var h=IE(r,i);if(typeof s>"u")s=[];else if(Xb(s,e)>=0)return"[Circular]";function u(G,w,O){if(w&&(s=oE.call(s),s.push(w)),O){var X={depth:r.depth};return Es(r,"quoteStyle")&&(X.quoteStyle=r.quoteStyle),n(G,X,i+1,s)}return n(G,r,i+1,s)}if(typeof e=="function"&&!Ob(e)){var p=yE(e),m=hc(e,u);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(m.length>0?" { "+Pn.call(m,", ")+" }":"")}if(qb(e)){var y=Va?Ps.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Wp.call(e);return typeof e=="object"&&!Va?ol(y):y}if(CE(e)){for(var g="<"+Mb.call(String(e.nodeName)),f=e.attributes||[],v=0;v<f.length;v++)g+=" "+f[v].name+"="+Kb(hE(f[v].value),"double",r);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+Mb.call(String(e.nodeName))+">",g}if(kp(e)){if(e.length===0)return"[]";var b=hc(e,u);return h&&!ME(b)?"["+Zp(b,h)+"]":"[ "+Pn.call(b,", ")+" ]"}if(uE(e)){var x=hc(e,u);return!("cause"in Error.prototype)&&"cause"in e&&!Gb.call(e,"cause")?"{ ["+String(e)+"] "+Pn.call(wb.call("[cause]: "+u(e.cause),x),", ")+" }":x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Pn.call(x,", ")+" }"}if(typeof e=="object"&&a){if(Rb&&typeof e[Rb]=="function"&&Np)return Np(e,{depth:d-i});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(vE(e)){var S=[];return Lb&&Lb.call(e,function(G,w){S.push(u(w,e,!0)+" => "+u(G,e))}),Wb("Map",oc.call(e),S,h)}if(SE(e)){var C=[];return Cb&&Cb.call(e,function(G){C.push(u(G,e))}),Wb("Set",lc.call(e),C,h)}if(bE(e))return Hp("WeakMap");if(LE(e))return Hp("WeakSet");if(xE(e))return Hp("WeakRef");if(pE(e))return ol(u(Number(e)));if(mE(e))return ol(u(Xp.call(e)));if(fE(e))return ol(iE.call(e));if(dE(e))return ol(u(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===ns)return"{ [object globalThis] }";if(!cE(e)&&!Ob(e)){var T=hc(e,u),I=Pb?Pb(e)===Object.prototype:e instanceof Object||e.constructor===Object,L=e instanceof Object?"":"null prototype",M=!I&&fi&&Object(e)===e&&fi in e?qp.call(As(e),8,-1):L?"Object":"",K=I||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=K+(M||L?"["+Pn.call(wb.call([],M||[],L||[]),": ")+"] ":"");return T.length===0?P+"{}":h?P+"{"+Zp(T,h)+"}":P+"{ "+Pn.call(T,", ")+" }"}return String(e)};function Kb(n,e,t){var i=(t.quoteStyle||e)==="double"?'"':"'";return i+n+i}function hE(n){return Ps.call(String(n),/"/g,""")}function kp(n){return As(n)==="[object Array]"&&(!fi||!(typeof n=="object"&&fi in n))}function cE(n){return As(n)==="[object Date]"&&(!fi||!(typeof n=="object"&&fi in n))}function Ob(n){return As(n)==="[object RegExp]"&&(!fi||!(typeof n=="object"&&fi in n))}function uE(n){return As(n)==="[object Error]"&&(!fi||!(typeof n=="object"&&fi in n))}function dE(n){return As(n)==="[object String]"&&(!fi||!(typeof n=="object"&&fi in n))}function pE(n){return As(n)==="[object Number]"&&(!fi||!(typeof n=="object"&&fi in n))}function fE(n){return As(n)==="[object Boolean]"&&(!fi||!(typeof n=="object"&&fi in n))}function qb(n){if(Va)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!Wp)return!1;try{return Wp.call(n),!0}catch{}return!1}function mE(n){if(!n||typeof n!="object"||!Xp)return!1;try{return Xp.call(n),!0}catch{}return!1}var gE=Object.prototype.hasOwnProperty||function(n){return n in this};function Es(n,e){return gE.call(n,e)}function As(n){return nE.call(n)}function yE(n){if(n.name)return n.name;var e=rE.call(sE.call(n),/^function\s*([\w$]+)/);return e?e[1]:null}function Xb(n,e){if(n.indexOf)return n.indexOf(e);for(var t=0,i=n.length;t<i;t++)if(n[t]===e)return t;return-1}function vE(n){if(!oc||!n||typeof n!="object")return!1;try{oc.call(n);try{lc.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function bE(n){if(!rl||!n||typeof n!="object")return!1;try{rl.call(n,rl);try{al.call(n,al)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function xE(n){if(!Tb||!n||typeof n!="object")return!1;try{return Tb.call(n),!0}catch{}return!1}function SE(n){if(!lc||!n||typeof n!="object")return!1;try{lc.call(n);try{oc.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function LE(n){if(!al||!n||typeof n!="object")return!1;try{al.call(n,al);try{rl.call(n,rl)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function CE(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function zb(n,e){if(n.length>e.maxStringLength){var t=n.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return zb(qp.call(n,0,e.maxStringLength),e)+i}var s=Ps.call(Ps.call(n,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,TE);return Kb(s,"single",e)}function TE(n){var e=n.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+aE.call(e.toString(16))}function ol(n){return"Object("+n+")"}function Hp(n){return n+" { ? }"}function Wb(n,e,t,i){var s=i?Zp(t,i):Pn.call(t,", ");return n+" ("+e+") {"+s+"}"}function ME(n){for(var e=0;e<n.length;e++)if(Xb(n[e],`
|
|
8025
|
+
}`),this.camera.position.set(10,0,-10),this.camera.lookAt(new A),this.ptRenderer=new aw(this.renderer),this.ptRenderer.camera=this.camera,this.ptRenderer.material=new uG,this.ptRenderer.tiles.set(1,1),this.ptRenderer.material.filterGlossyFactor=.6,this.ptRenderer.material.environmentIntensity=this.renderer.toneMappingExposure,this.ptRenderer.material.backgroundAlpha=0,this.ptRenderer.material.environmentBlur=0,this.ptRenderer.material.bounces=6,this.ptRenderer.material.transmissiveBounces=8,this.ptRenderer.alpha=!0,this.fsQuad=new $n(new xn({map:this.ptRenderer.target.texture,blending:Tm})),this.controls.addEventListener("change",()=>{this.sampleCount=0,this.ptRenderer.reset()}),this._composer=new pG(this.renderer),this._composer.setPixelRatio(window.devicePixelRatio),this._composer.addPass(new B2(this.scene,this.camera)),this._composer.addPass(new $2),this._outlinePass=new es(new me(window.innerWidth,window.innerHeight),this.scene,this.camera),this._outlinePass.visibleEdgeColor.set(26367),this._outlinePass.edgeThickness=.5,this._outlinePass.hiddenEdgeColor.set(26367),this._outlinePass.edgeStrength=3,this._outlinePass.edgeGlow=0,this._composer.addPass(this._outlinePass),this._outlinePassError=new es(new me(window.innerWidth,window.innerHeight),this.scene,this.camera),this._outlinePassError.visibleEdgeColor.set(16711680),this._outlinePassError.edgeThickness=.5,this._outlinePassError.hiddenEdgeColor.set(16711680),this._outlinePassError.edgeStrength=3,this._outlinePassError.edgeGlow=0,this._composer.addPass(this._outlinePassError),this._composer.renderTarget1.texture.colorSpace=mt,this._composer.renderTarget2.texture.colorSpace=mt,this._fxaaPass=new e0(J2),this._composer.addPass(this._fxaaPass),this.scene.add(this._container),this.ticker(),this._loadEnv(),this._initEvents()}get usePathTracing(){return this._usePathTracing}set usePathTracing(e){e?(this.bodyOpacity=1,this.slots.forEach(t=>t.hide()),this.lines.hide()):(this.slots.forEach(t=>t.show()),this.lines.show(),this.opacityCache!==void 0?(this.bodyOpacity=this.opacityCache,this.opacityCache=void 0):this.bodyOpacity=1),this._usePathTracing=e,this.controls.dampingFactor=e?1:kv,this.sampleCount=0}get slots(){return this._slots}get logos(){return this._logos}get skins(){return this._skins}get fpsAverage(){return ov(this._fpsCache)}set bodyOpacity(e){this._bodyOpacity=e,e<1?this._materialsCache.forEach(t=>{t.mat.transparent=!0,t.mat.opacity=e,t.mat.metalness=0,t.mat.roughness=1,t.mat.color=new qe("#3859be")}):this._materialsCache.forEach(t=>{t.mat.transparent=t.transparent,t.mat.opacity=t.opacity,t.mat.metalness=t.metalness,t.mat.roughness=t.roughness,t.mat.color=t.color})}get bodyOpacity(){return this._bodyOpacity}changeSkin(e,t){var s;if(!e)return;const i=e.target.name;this.usePathTracing?((s=this.sceneInfo.materials.find(r=>r.name===i))==null||s.color.set(t),this.ptRenderer.material.materials.updateFrom(this.sceneInfo.materials,this.sceneInfo.textures),this.sampleCount=0,this.ptRenderer.reset()):e.target.color.set(t)}showState(){this.stats.dom.style.display="block"}hideState(){this.stats.dom.style.display="none"}_loadEnv(){new Y2(new Yy).load(kP,t=>{t.mapping=wl,t.minFilter=lt,t.magFilter=lt,t.colorSpace=mt,t.needsUpdate=!0,this._usePathTracing||(this.scene.environment=t),this.ptRenderer.material.envMapInfo.updateFrom(t),this.ptRenderer.reset()},()=>{},()=>{})}_initEvents(){document.addEventListener("wheel",this._detectTrackpad),this.renderer.domElement.addEventListener("pointermove",this._pointermove),this.renderer.domElement.addEventListener("pointerdown",this._pointerdown)}changeLogo(e,t){var r;const i=HP.load(t);i.flipY=!1,i.colorSpace=mt;const s=e.target;s.material&&(Array.isArray(s.material)?s.material.forEach(a=>{var o;(o=a.map)==null||o.dispose(),a.map=i}):((r=s.material.map)==null||r.dispose(),s.material.map=i))}async generateBVH(){this.slots.forEach(c=>c.hide()),this.lines.hide(),this.opacityCache=this.bodyOpacity,this.bodyOpacity=1;const e=new _G;this._container.updateMatrixWorld();const{bvh:t,textures:i,materials:s,lights:r}=await e.generate(this._container);this.sceneInfo={materials:s,textures:i};const a=t.geometry,o=this.ptRenderer.material;o.bvh.updateFrom(t),o.attributesArray.updateFrom(a.attributes.normal,a.attributes.tangent,a.attributes.uv,a.attributes.color),o.materialIndexAttribute.updateFrom(a.attributes.materialIndex);const l=window.devicePixelRatio||1;o.textures.setTextures(this.renderer,1024*l,1024*l,i),o.materials.updateFrom(s,i),o.lights.updateFrom(r),o.lightCount=r.length,this.ptRenderer.material.materials.updateFrom(this.sceneInfo.materials,this.sceneInfo.textures),this.ptRenderer.reset(),this.sampleCount=0,e.dispose(),this.usePathTracing=!0}download(){const e=this.renderer.domElement.toDataURL("image/png"),t=document.createElement("a");t.href=e,t.download="transparent-background-object.png",document.body.appendChild(t),t.click(),document.body.removeChild(t)}clearAMR(){Yh(this._container),this._slots=[],this._logos=[],this._skins=[],this._materialsCache.clear(),this.opacityCache=void 0,this.usePathTracing=!1,this.lines.clear()}async addAMR(e){if(!e.startsWith("blob")&&!e.endsWith(".sglb"))return console.error("Not valid amr file url.");const i=await new rp({useCache:!0}).loadAsync(e);if(!i.glb)return;const s=i.glb.clone(!0);s.traverse(l=>{if(l instanceof Qt&&(l.material&&(Array.isArray(l.material)?l.material.forEach(c=>{c.userData.changeColor&&this._skins.push({name:c.userData.name,target:c})}):l.material.userData.changeColor&&this._skins.push({name:l.material.userData.name,target:l.material})),l.userData.isLOGO&&(l.material.transparent=!0,this._logos.push({name:l.userData.name,target:l}))),l.name.startsWith("Slot")){const c=l.userData.name;if(c&&l.userData.isSlot){const d=new ap({name:c,slot:l});d.addEventListener(ln.ON_DROP,h=>{this.props.useSound&&this._sound.play()}),d.addEventListener(ln.ON_BEFORE_SELECTED,h=>{this.slots.forEach(u=>{u.selected&&(u.selected=!1)})}),d.addEventListener(ln.ON_ERROR_STATE_CHANGE,h=>{if(this._outlinePassError.selectedObjects=this._outlinePassError.selectedObjects.filter(u=>!!u.parent),h){if(d.device){if(this._outlinePassError.selectedObjects.find(p=>{var m;return p.parent==((m=d.device)==null?void 0:m.parent)}))return;this._outlinePassError.selectedObjects=[d.device,...this._outlinePassError.selectedObjects]}}else d.device&&(this._outlinePassError.selectedObjects=this._outlinePassError.selectedObjects.filter(u=>{var p;return u.parent!=((p=d.device)==null?void 0:p.parent)}))}),this.slots.push(d),l.add(d)}}}),s.traverse(l=>{if(l instanceof Qt&&l.material)if(Array.isArray(l.material))l.material.forEach(d=>{this._materialsCache.set(d.uuid,{opacity:d.opacity,transparent:d.transparent,roughness:d.roughness,metalness:d.metalness,color:d.color,mat:d})});else{const c=l.material;this._materialsCache.set(c.uuid,{opacity:c.opacity,transparent:c.transparent,roughness:c.roughness,metalness:c.metalness,color:c.color,mat:c})}}),s.updateMatrixWorld(!0),this._container.updateMatrixWorld(),this.add(s);const r=new _t;r.setFromObject(this._container);const a=new A;r.getSize(a);const o=Math.max(a.x,a.y,a.z);this.controls.minDistance=o*2/3,this.controls.maxDistance=o*2}select(e){typeof e=="string"||(Array.isArray(e)?this._outlinePass.selectedObjects=[...e]:this._outlinePass.selectedObjects=[e])}appendTo(e){e.append(this.renderer.domElement),e.append(this.stats.dom),e.append(this.lines),e.append(this.css2dRenderer.domElement),this.stats.dom.style.bottom="0",this.stats.dom.style.top="auto",this.resize(),this._resizeObserver=new ResizeObserver(this.resize),this._resizeObserver.observe(e)}add(e){this._container.add(e)}updatePosition(){this.lines.forceUpdate()}destroy(){var t,i;this.stats.dom.remove(),this._emitter.removeAllListeners(),(t=this._fitAnimation)==null||t.stop(),document.removeEventListener("wheel",this._detectTrackpad),this.renderer.domElement.removeEventListener("pointermove",this._pointermove);const e=this.renderer.domElement.parentElement;e&&((i=this._resizeObserver)==null||i.unobserve(e)),this.controls.dispose(),this.renderer.dispose(),this._composer.dispose(),this.scene.traverse(s=>{s instanceof Qt?(s.geometry.dispose(),Array.isArray(s.material)?s.material.forEach(r=>r.dispose()):s.material&&s.material.dispose()):s instanceof ap&&s.dispose(),s.removeFromParent()})}}var pr=(n=>(n[n.WEBGL_LEGACY=0]="WEBGL_LEGACY",n[n.WEBGL=1]="WEBGL",n[n.WEBGL2=2]="WEBGL2",n))(pr||{}),Hv=(n=>(n[n.UNKNOWN=0]="UNKNOWN",n[n.WEBGL=1]="WEBGL",n[n.CANVAS=2]="CANVAS",n))(Hv||{}),vp=(n=>(n[n.COLOR=16384]="COLOR",n[n.DEPTH=256]="DEPTH",n[n.STENCIL=1024]="STENCIL",n))(vp||{}),He=(n=>(n[n.NORMAL=0]="NORMAL",n[n.ADD=1]="ADD",n[n.MULTIPLY=2]="MULTIPLY",n[n.SCREEN=3]="SCREEN",n[n.OVERLAY=4]="OVERLAY",n[n.DARKEN=5]="DARKEN",n[n.LIGHTEN=6]="LIGHTEN",n[n.COLOR_DODGE=7]="COLOR_DODGE",n[n.COLOR_BURN=8]="COLOR_BURN",n[n.HARD_LIGHT=9]="HARD_LIGHT",n[n.SOFT_LIGHT=10]="SOFT_LIGHT",n[n.DIFFERENCE=11]="DIFFERENCE",n[n.EXCLUSION=12]="EXCLUSION",n[n.HUE=13]="HUE",n[n.SATURATION=14]="SATURATION",n[n.COLOR=15]="COLOR",n[n.LUMINOSITY=16]="LUMINOSITY",n[n.NORMAL_NPM=17]="NORMAL_NPM",n[n.ADD_NPM=18]="ADD_NPM",n[n.SCREEN_NPM=19]="SCREEN_NPM",n[n.NONE=20]="NONE",n[n.SRC_OVER=0]="SRC_OVER",n[n.SRC_IN=21]="SRC_IN",n[n.SRC_OUT=22]="SRC_OUT",n[n.SRC_ATOP=23]="SRC_ATOP",n[n.DST_OVER=24]="DST_OVER",n[n.DST_IN=25]="DST_IN",n[n.DST_OUT=26]="DST_OUT",n[n.DST_ATOP=27]="DST_ATOP",n[n.ERASE=26]="ERASE",n[n.SUBTRACT=28]="SUBTRACT",n[n.XOR=29]="XOR",n))(He||{}),In=(n=>(n[n.POINTS=0]="POINTS",n[n.LINES=1]="LINES",n[n.LINE_LOOP=2]="LINE_LOOP",n[n.LINE_STRIP=3]="LINE_STRIP",n[n.TRIANGLES=4]="TRIANGLES",n[n.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",n[n.TRIANGLE_FAN=6]="TRIANGLE_FAN",n))(In||{}),se=(n=>(n[n.RGBA=6408]="RGBA",n[n.RGB=6407]="RGB",n[n.RG=33319]="RG",n[n.RED=6403]="RED",n[n.RGBA_INTEGER=36249]="RGBA_INTEGER",n[n.RGB_INTEGER=36248]="RGB_INTEGER",n[n.RG_INTEGER=33320]="RG_INTEGER",n[n.RED_INTEGER=36244]="RED_INTEGER",n[n.ALPHA=6406]="ALPHA",n[n.LUMINANCE=6409]="LUMINANCE",n[n.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",n[n.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",n[n.DEPTH_STENCIL=34041]="DEPTH_STENCIL",n))(se||{}),Ha=(n=>(n[n.TEXTURE_2D=3553]="TEXTURE_2D",n[n.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",n[n.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",n[n.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",n[n.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",n[n.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",n[n.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",n))(Ha||{}),Ee=(n=>(n[n.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",n[n.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",n[n.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",n[n.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",n[n.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",n[n.UNSIGNED_INT=5125]="UNSIGNED_INT",n[n.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",n[n.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",n[n.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",n[n.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",n[n.BYTE=5120]="BYTE",n[n.SHORT=5122]="SHORT",n[n.INT=5124]="INT",n[n.FLOAT=5126]="FLOAT",n[n.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",n[n.HALF_FLOAT=36193]="HALF_FLOAT",n))(Ee||{}),ve=(n=>(n[n.FLOAT=0]="FLOAT",n[n.INT=1]="INT",n[n.UINT=2]="UINT",n))(ve||{}),ss=(n=>(n[n.NEAREST=0]="NEAREST",n[n.LINEAR=1]="LINEAR",n))(ss||{}),Gs=(n=>(n[n.CLAMP=33071]="CLAMP",n[n.REPEAT=10497]="REPEAT",n[n.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",n))(Gs||{}),wn=(n=>(n[n.OFF=0]="OFF",n[n.POW2=1]="POW2",n[n.ON=2]="ON",n[n.ON_MANUAL=3]="ON_MANUAL",n))(wn||{}),_i=(n=>(n[n.NPM=0]="NPM",n[n.UNPACK=1]="UNPACK",n[n.PMA=2]="PMA",n[n.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",n[n.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",n[n.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",n))(_i||{}),_n=(n=>(n[n.NO=0]="NO",n[n.YES=1]="YES",n[n.AUTO=2]="AUTO",n[n.BLEND=0]="BLEND",n[n.CLEAR=1]="CLEAR",n[n.BLIT=2]="BLIT",n))(_n||{}),bp=(n=>(n[n.AUTO=0]="AUTO",n[n.MANUAL=1]="MANUAL",n))(bp||{}),ji=(n=>(n.LOW="lowp",n.MEDIUM="mediump",n.HIGH="highp",n))(ji||{}),Ft=(n=>(n[n.NONE=0]="NONE",n[n.SCISSOR=1]="SCISSOR",n[n.STENCIL=2]="STENCIL",n[n.SPRITE=3]="SPRITE",n[n.COLOR=4]="COLOR",n))(Ft||{}),Ht=(n=>(n[n.NONE=0]="NONE",n[n.LOW=2]="LOW",n[n.MEDIUM=4]="MEDIUM",n[n.HIGH=8]="HIGH",n))(Ht||{}),Gn=(n=>(n[n.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",n[n.ARRAY_BUFFER=34962]="ARRAY_BUFFER",n[n.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",n))(Gn||{});const be={ADAPTER:{createCanvas:(n,e)=>{const t=document.createElement("canvas");return t.width=n,t.height=e,t},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(n,e)=>fetch(n,e),parseXML:n=>new DOMParser().parseFromString(n,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var xp=/iPhone/i,Zv=/iPod/i,Yv=/iPad/i,Dv=/\biOS-universal(?:.+)Mac\b/i,Sp=/\bAndroid(?:.+)Mobile\b/i,jv=/Android/i,Za=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Qh=/Silk/i,rs=/Windows Phone/i,Fv=/\bWindows(?:.+)ARM\b/i,Bv=/BlackBerry/i,Jv=/BB10/i,Vv=/Opera Mini/i,Uv=/\b(CriOS|Chrome)(?:.+)Mobile/i,Qv=/Mobile(?:.+)Firefox\b/i,$v=function(n){return typeof n<"u"&&n.platform==="MacIntel"&&typeof n.maxTouchPoints=="number"&&n.maxTouchPoints>1&&typeof MSStream>"u"};function DP(n){return function(e){return e.test(n)}}function eb(n){var e={userAgent:"",platform:"",maxTouchPoints:0};!n&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof n=="string"?e.userAgent=n:n&&n.userAgent&&(e={userAgent:n.userAgent,platform:n.platform,maxTouchPoints:n.maxTouchPoints||0});var t=e.userAgent,i=t.split("[FBAN");typeof i[1]<"u"&&(t=i[0]),i=t.split("Twitter"),typeof i[1]<"u"&&(t=i[0]);var s=DP(t),r={apple:{phone:s(xp)&&!s(rs),ipod:s(Zv),tablet:!s(xp)&&(s(Yv)||$v(e))&&!s(rs),universal:s(Dv),device:(s(xp)||s(Zv)||s(Yv)||s(Dv)||$v(e))&&!s(rs)},amazon:{phone:s(Za),tablet:!s(Za)&&s(Qh),device:s(Za)||s(Qh)},android:{phone:!s(rs)&&s(Za)||!s(rs)&&s(Sp),tablet:!s(rs)&&!s(Za)&&!s(Sp)&&(s(Qh)||s(jv)),device:!s(rs)&&(s(Za)||s(Qh)||s(Sp)||s(jv))||s(/\bokhttp\b/i)},windows:{phone:s(rs),tablet:s(Fv),device:s(rs)||s(Fv)},other:{blackberry:s(Bv),blackberry10:s(Jv),opera:s(Vv),firefox:s(Qv),chrome:s(Uv),device:s(Bv)||s(Jv)||s(Vv)||s(Qv)||s(Uv)},any:!1,phone:!1,tablet:!1};return r.any=r.apple.device||r.android.device||r.windows.device||r.other.device,r.phone=r.apple.phone||r.android.phone||r.windows.phone,r.tablet=r.apple.tablet||r.android.tablet||r.windows.tablet,r}const jP=eb.default??eb,as=jP(globalThis.navigator);be.RETINA_PREFIX=/@([0-9\.]+)x/,be.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var tb={exports:{}};(function(n){var e=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function s(l,c,d){this.fn=l,this.context=c,this.once=d||!1}function r(l,c,d,h,u){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new s(d,h||l,u),m=t?t+c:c;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new i:delete l._events[c]}function o(){this._events=new i,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],d,h;if(this._eventsCount===0)return c;for(h in d=this._events)e.call(d,h)&&c.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},o.prototype.listeners=function(c){var d=t?t+c:c,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var u=0,p=h.length,m=new Array(p);u<p;u++)m[u]=h[u].fn;return m},o.prototype.listenerCount=function(c){var d=t?t+c:c,h=this._events[d];return h?h.fn?1:h.length:0},o.prototype.emit=function(c,d,h,u,p,m){var y=t?t+c:c;if(!this._events[y])return!1;var g=this._events[y],f=arguments.length,v,b;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),f){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,d),!0;case 3:return g.fn.call(g.context,d,h),!0;case 4:return g.fn.call(g.context,d,h,u),!0;case 5:return g.fn.call(g.context,d,h,u,p),!0;case 6:return g.fn.call(g.context,d,h,u,p,m),!0}for(b=1,v=new Array(f-1);b<f;b++)v[b-1]=arguments[b];g.fn.apply(g.context,v)}else{var x=g.length,S;for(b=0;b<x;b++)switch(g[b].once&&this.removeListener(c,g[b].fn,void 0,!0),f){case 1:g[b].fn.call(g[b].context);break;case 2:g[b].fn.call(g[b].context,d);break;case 3:g[b].fn.call(g[b].context,d,h);break;case 4:g[b].fn.call(g[b].context,d,h,u);break;default:if(!v)for(S=1,v=new Array(f-1);S<f;S++)v[S-1]=arguments[S];g[b].fn.apply(g[b].context,v)}}return!0},o.prototype.on=function(c,d,h){return r(this,c,d,h,!1)},o.prototype.once=function(c,d,h){return r(this,c,d,h,!0)},o.prototype.removeListener=function(c,d,h,u){var p=t?t+c:c;if(!this._events[p])return this;if(!d)return a(this,p),this;var m=this._events[p];if(m.fn)m.fn===d&&(!u||m.once)&&(!h||m.context===h)&&a(this,p);else{for(var y=0,g=[],f=m.length;y<f;y++)(m[y].fn!==d||u&&!m[y].once||h&&m[y].context!==h)&&g.push(m[y]);g.length?this._events[p]=g.length===1?g[0]:g:a(this,p)}return this},o.prototype.removeAllListeners=function(c){var d;return c?(d=t?t+c:c,this._events[d]&&a(this,d)):(this._events=new i,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=t,o.EventEmitter=o,n.exports=o})(tb);var FP=tb.exports;const $o=Ud(FP);var Lp={exports:{}};Lp.exports=$h,Lp.exports.default=$h;function $h(n,e,t){t=t||2;var i=e&&e.length,s=i?e[0]*t:n.length,r=ib(n,0,s,t,!0),a=[];if(!r||r.next===r.prev)return a;var o,l,c,d,h,u,p;if(i&&(r=QP(n,e,r,t)),n.length>80*t){o=c=n[0],l=d=n[1];for(var m=t;m<s;m+=t)h=n[m],u=n[m+1],h<o&&(o=h),u<l&&(l=u),h>c&&(c=h),u>d&&(d=u);p=Math.max(c-o,d-l),p=p!==0?32767/p:0}return el(r,a,t,o,l,p,0),a}function ib(n,e,t,i,s){var r,a;if(s===Mp(n,e,t,i)>0)for(r=e;r<t;r+=i)a=rb(r,n[r],n[r+1],a);else for(r=t-i;r>=e;r-=i)a=rb(r,n[r],n[r+1],a);return a&&ec(a,a.next)&&(il(a),a=a.next),a}function fr(n,e){if(!n)return n;e||(e=n);var t=n,i;do if(i=!1,!t.steiner&&(ec(t,t.next)||Pt(t.prev,t,t.next)===0)){if(il(t),t=e=t.prev,t===t.next)break;i=!0}else t=t.next;while(i||t!==e);return e}function el(n,e,t,i,s,r,a){if(n){!a&&r&&n5(n,i,s,r);for(var o=n,l,c;n.prev!==n.next;){if(l=n.prev,c=n.next,r?JP(n,i,s,r):BP(n)){e.push(l.i/t|0),e.push(n.i/t|0),e.push(c.i/t|0),il(n),n=c.next,o=c.next;continue}if(n=c,n===o){a?a===1?(n=VP(fr(n),e,t),el(n,e,t,i,s,r,2)):a===2&&UP(n,e,t,i,s,r):el(fr(n),e,t,i,s,r,1);break}}}}function BP(n){var e=n.prev,t=n,i=n.next;if(Pt(e,t,i)>=0)return!1;for(var s=e.x,r=t.x,a=i.x,o=e.y,l=t.y,c=i.y,d=s<r?s<a?s:a:r<a?r:a,h=o<l?o<c?o:c:l<c?l:c,u=s>r?s>a?s:a:r>a?r:a,p=o>l?o>c?o:c:l>c?l:c,m=i.next;m!==e;){if(m.x>=d&&m.x<=u&&m.y>=h&&m.y<=p&&Ya(s,o,r,l,a,c,m.x,m.y)&&Pt(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function JP(n,e,t,i){var s=n.prev,r=n,a=n.next;if(Pt(s,r,a)>=0)return!1;for(var o=s.x,l=r.x,c=a.x,d=s.y,h=r.y,u=a.y,p=o<l?o<c?o:c:l<c?l:c,m=d<h?d<u?d:u:h<u?h:u,y=o>l?o>c?o:c:l>c?l:c,g=d>h?d>u?d:u:h>u?h:u,f=Cp(p,m,e,t,i),v=Cp(y,g,e,t,i),b=n.prevZ,x=n.nextZ;b&&b.z>=f&&x&&x.z<=v;){if(b.x>=p&&b.x<=y&&b.y>=m&&b.y<=g&&b!==s&&b!==a&&Ya(o,d,l,h,c,u,b.x,b.y)&&Pt(b.prev,b,b.next)>=0||(b=b.prevZ,x.x>=p&&x.x<=y&&x.y>=m&&x.y<=g&&x!==s&&x!==a&&Ya(o,d,l,h,c,u,x.x,x.y)&&Pt(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;b&&b.z>=f;){if(b.x>=p&&b.x<=y&&b.y>=m&&b.y<=g&&b!==s&&b!==a&&Ya(o,d,l,h,c,u,b.x,b.y)&&Pt(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;x&&x.z<=v;){if(x.x>=p&&x.x<=y&&x.y>=m&&x.y<=g&&x!==s&&x!==a&&Ya(o,d,l,h,c,u,x.x,x.y)&&Pt(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function VP(n,e,t){var i=n;do{var s=i.prev,r=i.next.next;!ec(s,r)&&nb(s,i,i.next,r)&&tl(s,r)&&tl(r,s)&&(e.push(s.i/t|0),e.push(i.i/t|0),e.push(r.i/t|0),il(i),il(i.next),i=n=r),i=i.next}while(i!==n);return fr(i)}function UP(n,e,t,i,s,r){var a=n;do{for(var o=a.next.next;o!==a.prev;){if(a.i!==o.i&&a5(a,o)){var l=sb(a,o);a=fr(a,a.next),l=fr(l,l.next),el(a,e,t,i,s,r,0),el(l,e,t,i,s,r,0);return}o=o.next}a=a.next}while(a!==n)}function QP(n,e,t,i){var s=[],r,a,o,l,c;for(r=0,a=e.length;r<a;r++)o=e[r]*i,l=r<a-1?e[r+1]*i:n.length,c=ib(n,o,l,i,!1),c===c.next&&(c.steiner=!0),s.push(r5(c));for(s.sort($P),r=0;r<s.length;r++)t=e5(s[r],t);return t}function $P(n,e){return n.x-e.x}function e5(n,e){var t=t5(n,e);if(!t)return e;var i=sb(t,n);return fr(i,i.next),fr(t,t.next)}function t5(n,e){var t=e,i=n.x,s=n.y,r=-1/0,a;do{if(s<=t.y&&s>=t.next.y&&t.next.y!==t.y){var o=t.x+(s-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(o<=i&&o>r&&(r=o,a=t.x<t.next.x?t:t.next,o===i))return a}t=t.next}while(t!==e);if(!a)return null;var l=a,c=a.x,d=a.y,h=1/0,u;t=a;do i>=t.x&&t.x>=c&&i!==t.x&&Ya(s<d?i:r,s,c,d,s<d?r:i,s,t.x,t.y)&&(u=Math.abs(s-t.y)/(i-t.x),tl(t,n)&&(u<h||u===h&&(t.x>a.x||t.x===a.x&&i5(a,t)))&&(a=t,h=u)),t=t.next;while(t!==l);return a}function i5(n,e){return Pt(n.prev,n,e.prev)<0&&Pt(e.next,n,n.next)<0}function n5(n,e,t,i){var s=n;do s.z===0&&(s.z=Cp(s.x,s.y,e,t,i)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next;while(s!==n);s.prevZ.nextZ=null,s.prevZ=null,s5(s)}function s5(n){var e,t,i,s,r,a,o,l,c=1;do{for(t=n,n=null,r=null,a=0;t;){for(a++,i=t,o=0,e=0;e<c&&(o++,i=i.nextZ,!!i);e++);for(l=c;o>0||l>0&&i;)o!==0&&(l===0||!i||t.z<=i.z)?(s=t,t=t.nextZ,o--):(s=i,i=i.nextZ,l--),r?r.nextZ=s:n=s,s.prevZ=r,r=s;t=i}r.nextZ=null,c*=2}while(a>1);return n}function Cp(n,e,t,i,s){return n=(n-t)*s|0,e=(e-i)*s|0,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,n|e<<1}function r5(n){var e=n,t=n;do(e.x<t.x||e.x===t.x&&e.y<t.y)&&(t=e),e=e.next;while(e!==n);return t}function Ya(n,e,t,i,s,r,a,o){return(s-a)*(e-o)>=(n-a)*(r-o)&&(n-a)*(i-o)>=(t-a)*(e-o)&&(t-a)*(r-o)>=(s-a)*(i-o)}function a5(n,e){return n.next.i!==e.i&&n.prev.i!==e.i&&!o5(n,e)&&(tl(n,e)&&tl(e,n)&&l5(n,e)&&(Pt(n.prev,n,e.prev)||Pt(n,e.prev,e))||ec(n,e)&&Pt(n.prev,n,n.next)>0&&Pt(e.prev,e,e.next)>0)}function Pt(n,e,t){return(e.y-n.y)*(t.x-e.x)-(e.x-n.x)*(t.y-e.y)}function ec(n,e){return n.x===e.x&&n.y===e.y}function nb(n,e,t,i){var s=ic(Pt(n,e,t)),r=ic(Pt(n,e,i)),a=ic(Pt(t,i,n)),o=ic(Pt(t,i,e));return!!(s!==r&&a!==o||s===0&&tc(n,t,e)||r===0&&tc(n,i,e)||a===0&&tc(t,n,i)||o===0&&tc(t,e,i))}function tc(n,e,t){return e.x<=Math.max(n.x,t.x)&&e.x>=Math.min(n.x,t.x)&&e.y<=Math.max(n.y,t.y)&&e.y>=Math.min(n.y,t.y)}function ic(n){return n>0?1:n<0?-1:0}function o5(n,e){var t=n;do{if(t.i!==n.i&&t.next.i!==n.i&&t.i!==e.i&&t.next.i!==e.i&&nb(t,t.next,n,e))return!0;t=t.next}while(t!==n);return!1}function tl(n,e){return Pt(n.prev,n,n.next)<0?Pt(n,e,n.next)>=0&&Pt(n,n.prev,e)>=0:Pt(n,e,n.prev)<0||Pt(n,n.next,e)<0}function l5(n,e){var t=n,i=!1,s=(n.x+e.x)/2,r=(n.y+e.y)/2;do t.y>r!=t.next.y>r&&t.next.y!==t.y&&s<(t.next.x-t.x)*(r-t.y)/(t.next.y-t.y)+t.x&&(i=!i),t=t.next;while(t!==n);return i}function sb(n,e){var t=new Tp(n.i,n.x,n.y),i=new Tp(e.i,e.x,e.y),s=n.next,r=e.prev;return n.next=e,e.prev=n,t.next=s,s.prev=t,i.next=t,t.prev=i,r.next=i,i.prev=r,i}function rb(n,e,t,i){var s=new Tp(n,e,t);return i?(s.next=i.next,s.prev=i,i.next.prev=s,i.next=s):(s.prev=s,s.next=s),s}function il(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function Tp(n,e,t){this.i=n,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}$h.deviation=function(n,e,t,i){var s=e&&e.length,r=s?e[0]*t:n.length,a=Math.abs(Mp(n,0,r,t));if(s)for(var o=0,l=e.length;o<l;o++){var c=e[o]*t,d=o<l-1?e[o+1]*t:n.length;a-=Math.abs(Mp(n,c,d,t))}var h=0;for(o=0;o<i.length;o+=3){var u=i[o]*t,p=i[o+1]*t,m=i[o+2]*t;h+=Math.abs((n[u]-n[m])*(n[p+1]-n[u+1])-(n[u]-n[p])*(n[m+1]-n[u+1]))}return a===0&&h===0?0:Math.abs((h-a)/a)};function Mp(n,e,t,i){for(var s=0,r=e,a=t-i;r<t;r+=i)s+=(n[a]-n[r])*(n[r+1]+n[a+1]),a=r;return s}$h.flatten=function(n){for(var e=n[0][0].length,t={vertices:[],holes:[],dimensions:e},i=0,s=0;s<n.length;s++){for(var r=0;r<n[s].length;r++)for(var a=0;a<e;a++)t.vertices.push(n[s][r][a]);s>0&&(i+=n[s-1].length,t.holes.push(i))}return t};var h5=Lp.exports;const c5=Ud(h5);var nc={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */nc.exports,function(n,e){(function(t){var i=e&&!e.nodeType&&e,s=n&&!n.nodeType&&n,r=typeof ns=="object"&&ns;(r.global===r||r.window===r||r.self===r)&&(t=r);var a,o=2147483647,l=36,c=1,d=26,h=38,u=700,p=72,m=128,y="-",g=/^xn--/,f=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-c,S=Math.floor,C=String.fromCharCode,T;function I(N){throw new RangeError(b[N])}function L(N,H){for(var ee=N.length,Y=[];ee--;)Y[ee]=H(N[ee]);return Y}function M(N,H){var ee=N.split("@"),Y="";ee.length>1&&(Y=ee[0]+"@",N=ee[1]),N=N.replace(v,".");var U=N.split("."),re=L(U,H).join(".");return Y+re}function K(N){for(var H=[],ee=0,Y=N.length,U,re;ee<Y;)U=N.charCodeAt(ee++),U>=55296&&U<=56319&&ee<Y?(re=N.charCodeAt(ee++),(re&64512)==56320?H.push(((U&1023)<<10)+(re&1023)+65536):(H.push(U),ee--)):H.push(U);return H}function P(N){return L(N,function(H){var ee="";return H>65535&&(H-=65536,ee+=C(H>>>10&1023|55296),H=56320|H&1023),ee+=C(H),ee}).join("")}function G(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:l}function w(N,H){return N+22+75*(N<26)-((H!=0)<<5)}function O(N,H,ee){var Y=0;for(N=ee?S(N/u):N>>1,N+=S(N/H);N>x*d>>1;Y+=l)N=S(N/x);return S(Y+(x+1)*N/(N+h))}function X(N){var H=[],ee=N.length,Y,U=0,re=m,pe=p,ge,we,Pe,Le,Se,k,tt,Ce,ke;for(ge=N.lastIndexOf(y),ge<0&&(ge=0),we=0;we<ge;++we)N.charCodeAt(we)>=128&&I("not-basic"),H.push(N.charCodeAt(we));for(Pe=ge>0?ge+1:0;Pe<ee;){for(Le=U,Se=1,k=l;Pe>=ee&&I("invalid-input"),tt=G(N.charCodeAt(Pe++)),(tt>=l||tt>S((o-U)/Se))&&I("overflow"),U+=tt*Se,Ce=k<=pe?c:k>=pe+d?d:k-pe,!(tt<Ce);k+=l)ke=l-Ce,Se>S(o/ke)&&I("overflow"),Se*=ke;Y=H.length+1,pe=O(U-Le,Y,Le==0),S(U/Y)>o-re&&I("overflow"),re+=S(U/Y),U%=Y,H.splice(U++,0,re)}return P(H)}function W(N){var H,ee,Y,U,re,pe,ge,we,Pe,Le,Se,k=[],tt,Ce,ke,Xe;for(N=K(N),tt=N.length,H=m,ee=0,re=p,pe=0;pe<tt;++pe)Se=N[pe],Se<128&&k.push(C(Se));for(Y=U=k.length,U&&k.push(y);Y<tt;){for(ge=o,pe=0;pe<tt;++pe)Se=N[pe],Se>=H&&Se<ge&&(ge=Se);for(Ce=Y+1,ge-H>S((o-ee)/Ce)&&I("overflow"),ee+=(ge-H)*Ce,H=ge,pe=0;pe<tt;++pe)if(Se=N[pe],Se<H&&++ee>o&&I("overflow"),Se==H){for(we=ee,Pe=l;Le=Pe<=re?c:Pe>=re+d?d:Pe-re,!(we<Le);Pe+=l)Xe=we-Le,ke=l-Le,k.push(C(w(Le+Xe%ke,0))),we=S(Xe/ke);k.push(C(w(we,0))),re=O(ee,Ce,Y==U),ee=0,++Y}++ee,++H}return k.join("")}function J(N){return M(N,function(H){return g.test(H)?X(H.slice(4).toLowerCase()):H})}function D(N){return M(N,function(H){return f.test(H)?"xn--"+W(H):H})}if(a={version:"1.4.1",ucs2:{decode:K,encode:P},decode:X,encode:W,toASCII:D,toUnicode:J},i&&s)if(n.exports==i)s.exports=a;else for(T in a)a.hasOwnProperty(T)&&(i[T]=a[T]);else t.punycode=a})(ns)}(nc,nc.exports);var u5=nc.exports,d5=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var s=42;e[t]=s;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var r=Object.getOwnPropertySymbols(e);if(r.length!==1||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==s||a.enumerable!==!0)return!1}return!0},ab=typeof Symbol<"u"&&Symbol,p5=d5,f5=function(){return typeof ab!="function"||typeof Symbol!="function"||typeof ab("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:p5()},ob={foo:{}},m5=Object,g5=function(){return{__proto__:ob}.foo===ob.foo&&!({__proto__:null}instanceof m5)},y5="Function.prototype.bind called on incompatible ",v5=Object.prototype.toString,b5=Math.max,x5="[object Function]",lb=function(e,t){for(var i=[],s=0;s<e.length;s+=1)i[s]=e[s];for(var r=0;r<t.length;r+=1)i[r+e.length]=t[r];return i},S5=function(e,t){for(var i=[],s=t||0,r=0;s<e.length;s+=1,r+=1)i[r]=e[s];return i},L5=function(n,e){for(var t="",i=0;i<n.length;i+=1)t+=n[i],i+1<n.length&&(t+=e);return t},C5=function(e){var t=this;if(typeof t!="function"||v5.apply(t)!==x5)throw new TypeError(y5+t);for(var i=S5(arguments,1),s,r=function(){if(this instanceof s){var d=t.apply(this,lb(i,arguments));return Object(d)===d?d:this}return t.apply(e,lb(i,arguments))},a=b5(0,t.length-i.length),o=[],l=0;l<a;l++)o[l]="$"+l;if(s=Function("binder","return function ("+L5(o,",")+"){ return binder.apply(this,arguments); }")(r),t.prototype){var c=function(){};c.prototype=t.prototype,s.prototype=new c,c.prototype=null}return s},T5=C5,Ip=Function.prototype.bind||T5,M5=Function.prototype.call,I5=Object.prototype.hasOwnProperty,w5=Ip,_5=w5.call(M5,I5),ot,Da=SyntaxError,hb=Function,ja=TypeError,wp=function(n){try{return hb('"use strict"; return ('+n+").constructor;")()}catch{}},mr=Object.getOwnPropertyDescriptor;if(mr)try{mr({},"")}catch{mr=null}var _p=function(){throw new ja},G5=mr?function(){try{return arguments.callee,_p}catch{try{return mr(arguments,"callee").get}catch{return _p}}}():_p,Fa=f5(),P5=g5(),ei=Object.getPrototypeOf||(P5?function(n){return n.__proto__}:null),Ba={},E5=typeof Uint8Array>"u"||!ei?ot:ei(Uint8Array),gr={"%AggregateError%":typeof AggregateError>"u"?ot:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ot:ArrayBuffer,"%ArrayIteratorPrototype%":Fa&&ei?ei([][Symbol.iterator]()):ot,"%AsyncFromSyncIteratorPrototype%":ot,"%AsyncFunction%":Ba,"%AsyncGenerator%":Ba,"%AsyncGeneratorFunction%":Ba,"%AsyncIteratorPrototype%":Ba,"%Atomics%":typeof Atomics>"u"?ot:Atomics,"%BigInt%":typeof BigInt>"u"?ot:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ot:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ot:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ot:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ot:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ot:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ot:FinalizationRegistry,"%Function%":hb,"%GeneratorFunction%":Ba,"%Int8Array%":typeof Int8Array>"u"?ot:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ot:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ot:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Fa&&ei?ei(ei([][Symbol.iterator]())):ot,"%JSON%":typeof JSON=="object"?JSON:ot,"%Map%":typeof Map>"u"?ot:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Fa||!ei?ot:ei(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ot:Promise,"%Proxy%":typeof Proxy>"u"?ot:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ot:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ot:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Fa||!ei?ot:ei(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ot:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Fa&&ei?ei(""[Symbol.iterator]()):ot,"%Symbol%":Fa?Symbol:ot,"%SyntaxError%":Da,"%ThrowTypeError%":G5,"%TypedArray%":E5,"%TypeError%":ja,"%Uint8Array%":typeof Uint8Array>"u"?ot:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ot:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ot:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ot:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ot:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ot:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ot:WeakSet};if(ei)try{null.error}catch(n){var A5=ei(ei(n));gr["%Error.prototype%"]=A5}var R5=function n(e){var t;if(e==="%AsyncFunction%")t=wp("async function () {}");else if(e==="%GeneratorFunction%")t=wp("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=wp("async function* () {}");else if(e==="%AsyncGenerator%"){var i=n("%AsyncGeneratorFunction%");i&&(t=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=n("%AsyncGenerator%");s&&ei&&(t=ei(s.prototype))}return gr[e]=t,t},cb={"%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"]},nl=Ip,sc=_5,K5=nl.call(Function.call,Array.prototype.concat),O5=nl.call(Function.apply,Array.prototype.splice),ub=nl.call(Function.call,String.prototype.replace),rc=nl.call(Function.call,String.prototype.slice),q5=nl.call(Function.call,RegExp.prototype.exec),X5=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z5=/\\(\\)?/g,W5=function(e){var t=rc(e,0,1),i=rc(e,-1);if(t==="%"&&i!=="%")throw new Da("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new Da("invalid intrinsic syntax, expected opening `%`");var s=[];return ub(e,X5,function(r,a,o,l){s[s.length]=o?ub(l,z5,"$1"):a||r}),s},N5=function(e,t){var i=e,s;if(sc(cb,i)&&(s=cb[i],i="%"+s[0]+"%"),sc(gr,i)){var r=gr[i];if(r===Ba&&(r=R5(i)),typeof r>"u"&&!t)throw new ja("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:i,value:r}}throw new Da("intrinsic "+e+" does not exist!")},yr=function(e,t){if(typeof e!="string"||e.length===0)throw new ja("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new ja('"allowMissing" argument must be a boolean');if(q5(/^%?[^%]*%?$/,e)===null)throw new Da("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=W5(e),s=i.length>0?i[0]:"",r=N5("%"+s+"%",t),a=r.name,o=r.value,l=!1,c=r.alias;c&&(s=c[0],O5(i,K5([0,1],c)));for(var d=1,h=!0;d<i.length;d+=1){var u=i[d],p=rc(u,0,1),m=rc(u,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new Da("property names with quotes must have matching quotes");if((u==="constructor"||!h)&&(l=!0),s+="."+u,a="%"+s+"%",sc(gr,a))o=gr[a];else if(o!=null){if(!(u in o)){if(!t)throw new ja("base intrinsic for "+e+" exists, but the property is not available.");return}if(mr&&d+1>=i.length){var y=mr(o,u);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[u]}else h=sc(o,u),o=o[u];h&&!l&&(gr[a]=o)}}return o},db={exports:{}},k5=yr,Gp=k5("%Object.defineProperty%",!0),Pp=function(){if(Gp)try{return Gp({},"a",{value:1}),!0}catch{return!1}return!1};Pp.hasArrayLengthDefineBug=function(){if(!Pp())return null;try{return Gp([],"length",{value:1}).length!==1}catch{return!0}};var pb=Pp,H5=yr,ac=H5("%Object.getOwnPropertyDescriptor%",!0);if(ac)try{ac([],"length")}catch{ac=null}var fb=ac,Z5=pb(),Ep=yr,sl=Z5&&Ep("%Object.defineProperty%",!0);if(sl)try{sl({},"a",{value:1})}catch{sl=!1}var Y5=Ep("%SyntaxError%"),Ja=Ep("%TypeError%"),mb=fb,D5=function(e,t,i){if(!e||typeof e!="object"&&typeof e!="function")throw new Ja("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Ja("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ja("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ja("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ja("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ja("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,r=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,l=!!mb&&mb(e,t);if(sl)sl(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:s===null&&l?l.enumerable:!s,value:i,writable:r===null&&l?l.writable:!r});else if(o||!s&&!r&&!a)e[t]=i;else throw new Y5("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},gb=yr,yb=D5,j5=pb(),vb=fb,bb=gb("%TypeError%"),F5=gb("%Math.floor%"),B5=function(e,t){if(typeof e!="function")throw new bb("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||F5(t)!==t)throw new bb("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],s=!0,r=!0;if("length"in e&&vb){var a=vb(e,"length");a&&!a.configurable&&(s=!1),a&&!a.writable&&(r=!1)}return(s||r||!i)&&(j5?yb(e,"length",t,!0,!0):yb(e,"length",t)),e};(function(n){var e=Ip,t=yr,i=B5,s=t("%TypeError%"),r=t("%Function.prototype.apply%"),a=t("%Function.prototype.call%"),o=t("%Reflect.apply%",!0)||e.call(a,r),l=t("%Object.defineProperty%",!0),c=t("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}n.exports=function(u){if(typeof u!="function")throw new s("a function is required");var p=o(e,a,arguments);return i(p,1+c(0,u.length-(arguments.length-1)),!0)};var d=function(){return o(e,r,arguments)};l?l(n.exports,"apply",{value:d}):n.exports.apply=d})(db);var J5=db.exports,xb=yr,Sb=J5,V5=Sb(xb("String.prototype.indexOf")),U5=function(e,t){var i=xb(e,!!t);return typeof i=="function"&&V5(e,".prototype.")>-1?Sb(i):i};const Q5=CG(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ap=typeof Map=="function"&&Map.prototype,Rp=Object.getOwnPropertyDescriptor&&Ap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,oc=Ap&&Rp&&typeof Rp.get=="function"?Rp.get:null,Lb=Ap&&Map.prototype.forEach,Kp=typeof Set=="function"&&Set.prototype,Op=Object.getOwnPropertyDescriptor&&Kp?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,lc=Kp&&Op&&typeof Op.get=="function"?Op.get:null,Cb=Kp&&Set.prototype.forEach,$5=typeof WeakMap=="function"&&WeakMap.prototype,rl=$5?WeakMap.prototype.has:null,eE=typeof WeakSet=="function"&&WeakSet.prototype,al=eE?WeakSet.prototype.has:null,tE=typeof WeakRef=="function"&&WeakRef.prototype,Tb=tE?WeakRef.prototype.deref:null,iE=Boolean.prototype.valueOf,nE=Object.prototype.toString,sE=Function.prototype.toString,rE=String.prototype.match,qp=String.prototype.slice,Ps=String.prototype.replace,aE=String.prototype.toUpperCase,Mb=String.prototype.toLowerCase,Ib=RegExp.prototype.test,wb=Array.prototype.concat,Pn=Array.prototype.join,oE=Array.prototype.slice,_b=Math.floor,Xp=typeof BigInt=="function"?BigInt.prototype.valueOf:null,zp=Object.getOwnPropertySymbols,Wp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Va=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fi=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Va||!0)?Symbol.toStringTag:null,Gb=Object.prototype.propertyIsEnumerable,Pb=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function Eb(n,e){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||Ib.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var i=n<0?-_b(-n):_b(n);if(i!==n){var s=String(i),r=qp.call(e,s.length+1);return Ps.call(s,t,"$&_")+"."+Ps.call(Ps.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ps.call(e,t,"$&_")}var Np=Q5,Ab=Np.custom,Rb=qb(Ab)?Ab:null,lE=function n(e,t,i,s){var r=t||{};if(Es(r,"quoteStyle")&&r.quoteStyle!=="single"&&r.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Es(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=Es(r,"customInspect")?r.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Es(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Es(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=r.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return zb(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?Eb(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return o?Eb(e,c):c}var d=typeof r.depth>"u"?5:r.depth;if(typeof i>"u"&&(i=0),i>=d&&d>0&&typeof e=="object")return kp(e)?"[Array]":"[Object]";var h=IE(r,i);if(typeof s>"u")s=[];else if(Xb(s,e)>=0)return"[Circular]";function u(G,w,O){if(w&&(s=oE.call(s),s.push(w)),O){var X={depth:r.depth};return Es(r,"quoteStyle")&&(X.quoteStyle=r.quoteStyle),n(G,X,i+1,s)}return n(G,r,i+1,s)}if(typeof e=="function"&&!Ob(e)){var p=yE(e),m=hc(e,u);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(m.length>0?" { "+Pn.call(m,", ")+" }":"")}if(qb(e)){var y=Va?Ps.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Wp.call(e);return typeof e=="object"&&!Va?ol(y):y}if(CE(e)){for(var g="<"+Mb.call(String(e.nodeName)),f=e.attributes||[],v=0;v<f.length;v++)g+=" "+f[v].name+"="+Kb(hE(f[v].value),"double",r);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+Mb.call(String(e.nodeName))+">",g}if(kp(e)){if(e.length===0)return"[]";var b=hc(e,u);return h&&!ME(b)?"["+Zp(b,h)+"]":"[ "+Pn.call(b,", ")+" ]"}if(uE(e)){var x=hc(e,u);return!("cause"in Error.prototype)&&"cause"in e&&!Gb.call(e,"cause")?"{ ["+String(e)+"] "+Pn.call(wb.call("[cause]: "+u(e.cause),x),", ")+" }":x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Pn.call(x,", ")+" }"}if(typeof e=="object"&&a){if(Rb&&typeof e[Rb]=="function"&&Np)return Np(e,{depth:d-i});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(vE(e)){var S=[];return Lb&&Lb.call(e,function(G,w){S.push(u(w,e,!0)+" => "+u(G,e))}),Wb("Map",oc.call(e),S,h)}if(SE(e)){var C=[];return Cb&&Cb.call(e,function(G){C.push(u(G,e))}),Wb("Set",lc.call(e),C,h)}if(bE(e))return Hp("WeakMap");if(LE(e))return Hp("WeakSet");if(xE(e))return Hp("WeakRef");if(pE(e))return ol(u(Number(e)));if(mE(e))return ol(u(Xp.call(e)));if(fE(e))return ol(iE.call(e));if(dE(e))return ol(u(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===ns)return"{ [object globalThis] }";if(!cE(e)&&!Ob(e)){var T=hc(e,u),I=Pb?Pb(e)===Object.prototype:e instanceof Object||e.constructor===Object,L=e instanceof Object?"":"null prototype",M=!I&&fi&&Object(e)===e&&fi in e?qp.call(As(e),8,-1):L?"Object":"",K=I||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=K+(M||L?"["+Pn.call(wb.call([],M||[],L||[]),": ")+"] ":"");return T.length===0?P+"{}":h?P+"{"+Zp(T,h)+"}":P+"{ "+Pn.call(T,", ")+" }"}return String(e)};function Kb(n,e,t){var i=(t.quoteStyle||e)==="double"?'"':"'";return i+n+i}function hE(n){return Ps.call(String(n),/"/g,""")}function kp(n){return As(n)==="[object Array]"&&(!fi||!(typeof n=="object"&&fi in n))}function cE(n){return As(n)==="[object Date]"&&(!fi||!(typeof n=="object"&&fi in n))}function Ob(n){return As(n)==="[object RegExp]"&&(!fi||!(typeof n=="object"&&fi in n))}function uE(n){return As(n)==="[object Error]"&&(!fi||!(typeof n=="object"&&fi in n))}function dE(n){return As(n)==="[object String]"&&(!fi||!(typeof n=="object"&&fi in n))}function pE(n){return As(n)==="[object Number]"&&(!fi||!(typeof n=="object"&&fi in n))}function fE(n){return As(n)==="[object Boolean]"&&(!fi||!(typeof n=="object"&&fi in n))}function qb(n){if(Va)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!Wp)return!1;try{return Wp.call(n),!0}catch{}return!1}function mE(n){if(!n||typeof n!="object"||!Xp)return!1;try{return Xp.call(n),!0}catch{}return!1}var gE=Object.prototype.hasOwnProperty||function(n){return n in this};function Es(n,e){return gE.call(n,e)}function As(n){return nE.call(n)}function yE(n){if(n.name)return n.name;var e=rE.call(sE.call(n),/^function\s*([\w$]+)/);return e?e[1]:null}function Xb(n,e){if(n.indexOf)return n.indexOf(e);for(var t=0,i=n.length;t<i;t++)if(n[t]===e)return t;return-1}function vE(n){if(!oc||!n||typeof n!="object")return!1;try{oc.call(n);try{lc.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function bE(n){if(!rl||!n||typeof n!="object")return!1;try{rl.call(n,rl);try{al.call(n,al)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function xE(n){if(!Tb||!n||typeof n!="object")return!1;try{return Tb.call(n),!0}catch{}return!1}function SE(n){if(!lc||!n||typeof n!="object")return!1;try{lc.call(n);try{oc.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function LE(n){if(!al||!n||typeof n!="object")return!1;try{al.call(n,al);try{rl.call(n,rl)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function CE(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function zb(n,e){if(n.length>e.maxStringLength){var t=n.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return zb(qp.call(n,0,e.maxStringLength),e)+i}var s=Ps.call(Ps.call(n,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,TE);return Kb(s,"single",e)}function TE(n){var e=n.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+aE.call(e.toString(16))}function ol(n){return"Object("+n+")"}function Hp(n){return n+" { ? }"}function Wb(n,e,t,i){var s=i?Zp(t,i):Pn.call(t,", ");return n+" ("+e+") {"+s+"}"}function ME(n){for(var e=0;e<n.length;e++)if(Xb(n[e],`
|
|
8026
8026
|
`)>=0)return!1;return!0}function IE(n,e){var t;if(n.indent===" ")t=" ";else if(typeof n.indent=="number"&&n.indent>0)t=Pn.call(Array(n.indent+1)," ");else return null;return{base:t,prev:Pn.call(Array(e+1),t)}}function Zp(n,e){if(n.length===0)return"";var t=`
|
|
8027
8027
|
`+e.prev+e.base;return t+Pn.call(n,","+t)+`
|
|
8028
8028
|
`+e.prev}function hc(n,e){var t=kp(n),i=[];if(t){i.length=n.length;for(var s=0;s<n.length;s++)i[s]=Es(n,s)?e(n[s],n):""}var r=typeof zp=="function"?zp(n):[],a;if(Va){a={};for(var o=0;o<r.length;o++)a["$"+r[o]]=r[o]}for(var l in n)Es(n,l)&&(t&&String(Number(l))===l&&l<n.length||Va&&a["$"+l]instanceof Symbol||(Ib.call(/[^\w$]/,l)?i.push(e(l,n)+": "+e(n[l],n)):i.push(l+": "+e(n[l],n))));if(typeof zp=="function")for(var c=0;c<r.length;c++)Gb.call(n,r[c])&&i.push("["+e(r[c])+"]: "+e(n[r[c]],n));return i}var Yp=yr,Ua=U5,wE=lE,_E=Yp("%TypeError%"),cc=Yp("%WeakMap%",!0),uc=Yp("%Map%",!0),GE=Ua("WeakMap.prototype.get",!0),PE=Ua("WeakMap.prototype.set",!0),EE=Ua("WeakMap.prototype.has",!0),AE=Ua("Map.prototype.get",!0),RE=Ua("Map.prototype.set",!0),KE=Ua("Map.prototype.has",!0),Dp=function(n,e){for(var t=n,i;(i=t.next)!==null;t=i)if(i.key===e)return t.next=i.next,i.next=n.next,n.next=i,i},OE=function(n,e){var t=Dp(n,e);return t&&t.value},qE=function(n,e,t){var i=Dp(n,e);i?i.value=t:n.next={key:e,next:n.next,value:t}},XE=function(n,e){return!!Dp(n,e)},zE=function(){var e,t,i,s={assert:function(r){if(!s.has(r))throw new _E("Side channel does not contain "+wE(r))},get:function(r){if(cc&&r&&(typeof r=="object"||typeof r=="function")){if(e)return GE(e,r)}else if(uc){if(t)return AE(t,r)}else if(i)return OE(i,r)},has:function(r){if(cc&&r&&(typeof r=="object"||typeof r=="function")){if(e)return EE(e,r)}else if(uc){if(t)return KE(t,r)}else if(i)return XE(i,r);return!1},set:function(r,a){cc&&r&&(typeof r=="object"||typeof r=="function")?(e||(e=new cc),PE(e,r,a)):uc?(t||(t=new uc),RE(t,r,a)):(i||(i={key:{},next:null}),qE(i,r,a))}};return s},WE=String.prototype.replace,NE=/%20/g,jp={RFC1738:"RFC1738",RFC3986:"RFC3986"},Fp={default:jp.RFC3986,formatters:{RFC1738:function(n){return WE.call(n,NE,"+")},RFC3986:function(n){return String(n)}},RFC1738:jp.RFC1738,RFC3986:jp.RFC3986},kE=Fp,Bp=Object.prototype.hasOwnProperty,vr=Array.isArray,En=function(){for(var n=[],e=0;e<256;++e)n.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return n}(),HE=function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(vr(i)){for(var s=[],r=0;r<i.length;++r)typeof i[r]<"u"&&s.push(i[r]);t.obj[t.prop]=s}}},Nb=function(e,t){for(var i=t&&t.plainObjects?Object.create(null):{},s=0;s<e.length;++s)typeof e[s]<"u"&&(i[s]=e[s]);return i},ZE=function n(e,t,i){if(!t)return e;if(typeof t!="object"){if(vr(e))e.push(t);else if(e&&typeof e=="object")(i&&(i.plainObjects||i.allowPrototypes)||!Bp.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var s=e;return vr(e)&&!vr(t)&&(s=Nb(e,i)),vr(e)&&vr(t)?(t.forEach(function(r,a){if(Bp.call(e,a)){var o=e[a];o&&typeof o=="object"&&r&&typeof r=="object"?e[a]=n(o,r,i):e.push(r)}else e[a]=r}),e):Object.keys(t).reduce(function(r,a){var o=t[a];return Bp.call(r,a)?r[a]=n(r[a],o,i):r[a]=o,r},s)},YE=function(e,t){return Object.keys(t).reduce(function(i,s){return i[s]=t[s],i},e)},DE=function(n,e,t){var i=n.replace(/\+/g," ");if(t==="iso-8859-1")return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch{return i}},jE=function(e,t,i,s,r){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),i==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var o="",l=0;l<a.length;++l){var c=a.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||r===kE.RFC1738&&(c===40||c===41)){o+=a.charAt(l);continue}if(c<128){o=o+En[c];continue}if(c<2048){o=o+(En[192|c>>6]+En[128|c&63]);continue}if(c<55296||c>=57344){o=o+(En[224|c>>12]+En[128|c>>6&63]+En[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|a.charCodeAt(l)&1023),o+=En[240|c>>18]+En[128|c>>12&63]+En[128|c>>6&63]+En[128|c&63]}return o},FE=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],s=0;s<t.length;++s)for(var r=t[s],a=r.obj[r.prop],o=Object.keys(a),l=0;l<o.length;++l){var c=o[l],d=a[c];typeof d=="object"&&d!==null&&i.indexOf(d)===-1&&(t.push({obj:a,prop:c}),i.push(d))}return HE(t),e},BE=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},JE=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},VE=function(e,t){return[].concat(e,t)},UE=function(e,t){if(vr(e)){for(var i=[],s=0;s<e.length;s+=1)i.push(t(e[s]));return i}return t(e)},kb={arrayToObject:Nb,assign:YE,combine:VE,compact:FE,decode:DE,encode:jE,isBuffer:JE,isRegExp:BE,maybeMap:UE,merge:ZE},Hb=zE,dc=kb,ll=Fp,QE=Object.prototype.hasOwnProperty,Zb={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},os=Array.isArray,$E=Array.prototype.push,Yb=function(n,e){$E.apply(n,os(e)?e:[e])},eA=Date.prototype.toISOString,Db=ll.default,mi={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:dc.encode,encodeValuesOnly:!1,format:Db,formatter:ll.formatters[Db],indices:!1,serializeDate:function(e){return eA.call(e)},skipNulls:!1,strictNullHandling:!1},tA=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Jp={},iA=function n(e,t,i,s,r,a,o,l,c,d,h,u,p,m,y,g){for(var f=e,v=g,b=0,x=!1;(v=v.get(Jp))!==void 0&&!x;){var S=v.get(e);if(b+=1,typeof S<"u"){if(S===b)throw new RangeError("Cyclic object value");x=!0}typeof v.get(Jp)>"u"&&(b=0)}if(typeof l=="function"?f=l(t,f):f instanceof Date?f=h(f):i==="comma"&&os(f)&&(f=dc.maybeMap(f,function(X){return X instanceof Date?h(X):X})),f===null){if(r)return o&&!m?o(t,mi.encoder,y,"key",u):t;f=""}if(tA(f)||dc.isBuffer(f)){if(o){var C=m?t:o(t,mi.encoder,y,"key",u);return[p(C)+"="+p(o(f,mi.encoder,y,"value",u))]}return[p(t)+"="+p(String(f))]}var T=[];if(typeof f>"u")return T;var I;if(i==="comma"&&os(f))m&&o&&(f=dc.maybeMap(f,o)),I=[{value:f.length>0?f.join(",")||null:void 0}];else if(os(l))I=l;else{var L=Object.keys(f);I=c?L.sort(c):L}for(var M=s&&os(f)&&f.length===1?t+"[]":t,K=0;K<I.length;++K){var P=I[K],G=typeof P=="object"&&typeof P.value<"u"?P.value:f[P];if(!(a&&G===null)){var w=os(f)?typeof i=="function"?i(M,P):M:M+(d?"."+P:"["+P+"]");g.set(e,b);var O=Hb();O.set(Jp,g),Yb(T,n(G,w,i,s,r,a,i==="comma"&&m&&os(f)?null:o,l,c,d,h,u,p,m,y,O))}}return T},nA=function(e){if(!e)return mi;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||mi.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=ll.default;if(typeof e.format<"u"){if(!QE.call(ll.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var s=ll.formatters[i],r=mi.filter;return(typeof e.filter=="function"||os(e.filter))&&(r=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:mi.addQueryPrefix,allowDots:typeof e.allowDots>"u"?mi.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:mi.charsetSentinel,delimiter:typeof e.delimiter>"u"?mi.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:mi.encode,encoder:typeof e.encoder=="function"?e.encoder:mi.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:mi.encodeValuesOnly,filter:r,format:i,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:mi.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:mi.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:mi.strictNullHandling}},sA=function(n,e){var t=n,i=nA(e),s,r;typeof i.filter=="function"?(r=i.filter,t=r("",t)):os(i.filter)&&(r=i.filter,s=r);var a=[];if(typeof t!="object"||t===null)return"";var o;e&&e.arrayFormat in Zb?o=e.arrayFormat:e&&"indices"in e?o=e.indices?"indices":"repeat":o="indices";var l=Zb[o];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&e&&e.commaRoundTrip;s||(s=Object.keys(t)),i.sort&&s.sort(i.sort);for(var d=Hb(),h=0;h<s.length;++h){var u=s[h];i.skipNulls&&t[u]===null||Yb(a,iA(t[u],u,l,c,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,d))}var p=a.join(i.delimiter),m=i.addQueryPrefix===!0?"?":"";return i.charsetSentinel&&(i.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),p.length>0?m+p:""},Qa=kb,Vp=Object.prototype.hasOwnProperty,rA=Array.isArray,ti={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Qa.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},aA=function(n){return n.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},jb=function(n,e){return n&&typeof n=="string"&&e.comma&&n.indexOf(",")>-1?n.split(","):n},oA="utf8=%26%2310003%3B",lA="utf8=%E2%9C%93",hA=function(e,t){var i={__proto__:null},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,r=t.parameterLimit===1/0?void 0:t.parameterLimit,a=s.split(t.delimiter,r),o=-1,l,c=t.charset;if(t.charsetSentinel)for(l=0;l<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===lA?c="utf-8":a[l]===oA&&(c="iso-8859-1"),o=l,l=a.length);for(l=0;l<a.length;++l)if(l!==o){var d=a[l],h=d.indexOf("]="),u=h===-1?d.indexOf("="):h+1,p,m;u===-1?(p=t.decoder(d,ti.decoder,c,"key"),m=t.strictNullHandling?null:""):(p=t.decoder(d.slice(0,u),ti.decoder,c,"key"),m=Qa.maybeMap(jb(d.slice(u+1),t),function(y){return t.decoder(y,ti.decoder,c,"value")})),m&&t.interpretNumericEntities&&c==="iso-8859-1"&&(m=aA(m)),d.indexOf("[]=")>-1&&(m=rA(m)?[m]:m),Vp.call(i,p)?i[p]=Qa.combine(i[p],m):i[p]=m}return i},cA=function(n,e,t,i){for(var s=i?e:jb(e,t),r=n.length-1;r>=0;--r){var a,o=n[r];if(o==="[]"&&t.parseArrays)a=[].concat(s);else{a=t.plainObjects?Object.create(null):{};var l=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,c=parseInt(l,10);!t.parseArrays&&l===""?a={0:s}:!isNaN(c)&&o!==l&&String(c)===l&&c>=0&&t.parseArrays&&c<=t.arrayLimit?(a=[],a[c]=s):l!=="__proto__"&&(a[l]=s)}s=a}return s},uA=function(e,t,i,s){if(e){var r=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,l=i.depth>0&&a.exec(r),c=l?r.slice(0,l.index):r,d=[];if(c){if(!i.plainObjects&&Vp.call(Object.prototype,c)&&!i.allowPrototypes)return;d.push(c)}for(var h=0;i.depth>0&&(l=o.exec(r))!==null&&h<i.depth;){if(h+=1,!i.plainObjects&&Vp.call(Object.prototype,l[1].slice(1,-1))&&!i.allowPrototypes)return;d.push(l[1])}return l&&d.push("["+r.slice(l.index)+"]"),cA(d,t,i,s)}},dA=function(e){if(!e)return ti;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?ti.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?ti.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ti.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ti.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ti.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ti.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ti.comma,decoder:typeof e.decoder=="function"?e.decoder:ti.decoder,delimiter:typeof e.delimiter=="string"||Qa.isRegExp(e.delimiter)?e.delimiter:ti.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ti.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ti.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ti.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ti.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ti.strictNullHandling}},pA=function(n,e){var t=dA(e);if(n===""||n===null||typeof n>"u")return t.plainObjects?Object.create(null):{};for(var i=typeof n=="string"?hA(n,t):n,s=t.plainObjects?Object.create(null):{},r=Object.keys(i),a=0;a<r.length;++a){var o=r[a],l=uA(o,i[o],t,typeof n=="string");s=Qa.merge(s,l,t)}return t.allowSparse===!0?s:Qa.compact(s)},fA=sA,mA=pA,gA=Fp,yA={formats:gA,parse:mA,stringify:fA},vA=u5;function ls(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var bA=/^([a-z0-9.+-]+:)/i,xA=/:[0-9]*$/,SA=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,LA=["<",">",'"',"`"," ","\r",`
|