@mapxus/mapxus-map-jp 9.0.0-pre.3 → 9.1.0
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/index.css +0 -9
- package/dist/index.umd.js +1 -1
- package/es/index.d.ts +293 -206
- package/es/index.mjs +1 -1
- package/es/utils/index.mjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/utils/index.cjs +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.cjs.LICENSE.txt */
|
|
2
|
-
(()=>{var t={22:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polyval=e.ghash=void 0,e._toGHASHKey=u;const n=r(6527),i=16,o=new Uint8Array(16),s=(0,n.u32)(o),a=(t,e,r,n)=>({s3:r<<31|n>>>1,s2:e<<31|r>>>1,s1:t<<31|e>>>1,s0:t>>>1^225<<24&-(1&(1&n))}),c=t=>(t>>>0&255)<<24|(t>>>8&255)<<16|(t>>>16&255)<<8|t>>>24&255;function u(t){t.reverse();const e=1&t[15];let r=0;for(let e=0;e<t.length;e++){const n=t[e];t[e]=n>>>1|r,r=(1&n)<<7}return t[0]^=225&-e,t}class l{constructor(t,e){this.blockLen=i,this.outputLen=i,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,t=(0,n.toBytes)(t),(0,n.abytes)(t,16);const r=(0,n.createView)(t);let o=r.getUint32(0,!1),s=r.getUint32(4,!1),u=r.getUint32(8,!1),l=r.getUint32(12,!1);const d=[];for(let t=0;t<128;t++)d.push({s0:c(o),s1:c(s),s2:c(u),s3:c(l)}),({s0:o,s1:s,s2:u,s3:l}=a(o,s,u,l));const h=(f=e||1024)>65536?8:f>1024?4:2;var f;if(![1,2,4,8].includes(h))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=h;const p=128/h,y=this.windowSize=2**h,g=[];for(let t=0;t<p;t++)for(let e=0;e<y;e++){let r=0,n=0,i=0,o=0;for(let s=0;s<h;s++){if(!(e>>>h-s-1&1))continue;const{s0:a,s1:c,s2:u,s3:l}=d[h*t+s];r^=a,n^=c,i^=u,o^=l}g.push({s0:r,s1:n,s2:i,s3:o})}this.t=g}_updateBlock(t,e,r,n){t^=this.s0,e^=this.s1,r^=this.s2,n^=this.s3;const{W:i,t:o,windowSize:s}=this;let a=0,c=0,u=0,l=0;const d=(1<<i)-1;let h=0;for(const f of[t,e,r,n])for(let t=0;t<4;t++){const e=f>>>8*t&255;for(let t=8/i-1;t>=0;t--){const r=e>>>i*t&d,{s0:n,s1:f,s2:p,s3:y}=o[h*s+r];a^=n,c^=f,u^=p,l^=y,h+=1}}this.s0=a,this.s1=c,this.s2=u,this.s3=l}update(t){(0,n.aexists)(this),t=(0,n.toBytes)(t),(0,n.abytes)(t);const e=(0,n.u32)(t),r=Math.floor(t.length/i),a=t.length%i;for(let t=0;t<r;t++)this._updateBlock(e[4*t+0],e[4*t+1],e[4*t+2],e[4*t+3]);return a&&(o.set(t.subarray(r*i)),this._updateBlock(s[0],s[1],s[2],s[3]),(0,n.clean)(s)),this}destroy(){const{t}=this;for(const e of t)e.s0=0,e.s1=0,e.s2=0,e.s3=0}digestInto(t){(0,n.aexists)(this),(0,n.aoutput)(t,this),this.finished=!0;const{s0:e,s1:r,s2:i,s3:o}=this,s=(0,n.u32)(t);return s[0]=e,s[1]=r,s[2]=i,s[3]=o,t}digest(){const t=new Uint8Array(i);return this.digestInto(t),this.destroy(),t}}class d extends l{constructor(t,e){t=(0,n.toBytes)(t),(0,n.abytes)(t);const r=u((0,n.copyBytes)(t));super(r,e),(0,n.clean)(r)}update(t){t=(0,n.toBytes)(t),(0,n.aexists)(this);const e=(0,n.u32)(t),r=t.length%i,a=Math.floor(t.length/i);for(let t=0;t<a;t++)this._updateBlock(c(e[4*t+3]),c(e[4*t+2]),c(e[4*t+1]),c(e[4*t+0]));return r&&(o.set(t.subarray(a*i)),this._updateBlock(c(s[3]),c(s[2]),c(s[1]),c(s[0])),(0,n.clean)(s)),this}digestInto(t){(0,n.aexists)(this),(0,n.aoutput)(t,this),this.finished=!0;const{s0:e,s1:r,s2:i,s3:o}=this,s=(0,n.u32)(t);return s[0]=e,s[1]=r,s[2]=i,s[3]=o,t.reverse()}}function h(t){const e=(e,r)=>t(r,e.length).update((0,n.toBytes)(e)).digest(),r=t(new Uint8Array(16),0);return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=(e,r)=>t(e,r),e}e.ghash=h((t,e)=>new l(t,e)),e.polyval=h((t,e)=>new d(t,e))},42:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},52:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(241),i=r(5572),o=r(2049),s=r(1882),a=n.A?n.A.prototype:void 0,c=a?a.toString:void 0;const u=function t(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,i.A)(e,t)+"";if((0,s.A)(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},66:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){let r,n,i=0,o=1e3/e;const s=(e,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),a=e-i;a>=o?s(t,e):(r=t,n||(n=setTimeout(()=>{n=null,s(r)},o-a)))},()=>r&&s(r)]}},83:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.chacha20=e.xchacha20=void 0;var n=r(8900);e.xchacha20=function(t,e,r){return(0,n.xchacha20poly1305)(t,e,r)};e.chacha20=function(t,e,r){return(0,n.chacha20poly1305)(t,e,r)}},139:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5267);const i="undefined"!=typeof URLSearchParams?URLSearchParams:n.A},169:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(6984);const i=function(t,e){for(var r=t.length;r--;)if((0,n.A)(t[r][0],e))return r;return-1}},180:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(702),i=r(1917);const o=(0,n.A)(i.A,"Promise")},181:(t,e,r)=>{"use strict";r.d(e,{d:()=>n});class n{static instance;_buildingUnitsMap;_ordinalsMap;_visitedBuildingUnits;constructor(){this._buildingUnitsMap=new Map,this._ordinalsMap=new Map,this._visitedBuildingUnits=[]}static getInstance(){return n.instance||(n.instance=new n),n.instance}getBuildingUnitByVenue(t){return this._buildingUnitsMap.get(t)}setBuildingUnitByVenue(t,e){this._buildingUnitsMap.set(t,e)}getOrdinalByBuildingUnit(t){return this._ordinalsMap.get(t)}setOrdinalByBuildingUnit(t,e){this._ordinalsMap.set(t,e)}getVisitedBuildingUnits(){return this._visitedBuildingUnits}addVisitedBuildingUnit(t){this._visitedBuildingUnits.push(t),this._visitedBuildingUnits.length>100&&(this._visitedBuildingUnits=this._visitedBuildingUnits.slice(this._visitedBuildingUnits.length-100))}}},241:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(1917).A.Symbol},244:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSharedKey=e.deriveKey=void 0;var n=r(6527),i=r(4139),o=r(7076);e.deriveKey=function(t,e,r){return(0,i.hkdf)(o.sha256,t,e,r,32)};e.getSharedKey=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0,e.deriveKey)(n.concatBytes.apply(void 0,t))}},251:(t,e)=>{e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,c=(1<<a)-1,u=c>>1,l=-7,d=r?i-1:0,h=r?-1:1,f=t[e+d];for(d+=h,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+t[e+d],d+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+d],d+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,d=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(e*c-1)*Math.pow(2,i),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;t[r+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[r+f]=255&s,f+=p,s/=256,u-=8);t[r+f-p]|=128*y}},367:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return function(r){return t(e(r))}}},402:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(241),i=r(3988),o=r(6984),s=r(8967),a=r(4877),c=r(9959),u=n.A?n.A.prototype:void 0,l=u?u.valueOf:void 0;const d=function(t,e,r,n,u,d,h){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new i.A(t),new i.A(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,o.A)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=a.A;case"[object Set]":var p=1&n;if(f||(f=c.A),t.size!=e.size&&!p)return!1;var y=h.get(t);if(y)return y==e;n|=2,h.set(t,e);var g=(0,s.A)(f(t),f(e),n,u,d,h);return h.delete(t),g;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},423:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(9520),i=r(1788),o=r(2049),s=r(4616),a=r(5353),c=r(8719),u=Object.prototype.hasOwnProperty;const l=function(t,e){var r=(0,o.A)(t),l=!r&&(0,i.A)(t),d=!r&&!l&&(0,s.A)(t),h=!r&&!l&&!d&&(0,c.A)(t),f=r||l||d||h,p=f?(0,n.A)(t.length,String):[],y=p.length;for(var g in t)!e&&!u.call(t,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,a.A)(g,y))||p.push(g);return p}},451:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(241),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n.A?n.A.toStringTag:void 0;const c=function(t){var e=o.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var i=s.call(t);return n&&(e?t[a]=r:delete t[a]),i}},459:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hash_to_ristretto255=e.hashToRistretto255=e.RistrettoPoint=e.encodeToCurve=e.hashToCurve=e.ed25519_hasher=e.edwardsToMontgomery=e.x25519=e.ed25519ph=e.ed25519ctx=e.ed25519=e.ED25519_TORSION_SUBGROUP=void 0,e.edwardsToMontgomeryPub=B,e.edwardsToMontgomeryPriv=function(t){const e=E.hash(t.subarray(0,32));return E.adjustScalarBytes(e).subarray(0,32)};const n=r(7076),i=r(9175),o=r(2422),s=r(6377),a=r(1761),c=r(4967),u=r(2854),l=r(8627),d=BigInt(0),h=BigInt(1),f=BigInt(2),p=BigInt(3),y=BigInt(5),g=BigInt(8),m={p:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:g,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function _(t){const e=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),o=m.p,s=t*t%o*t%o,a=(0,c.pow2)(s,f,o)*s%o,u=(0,c.pow2)(a,h,o)*t%o,l=(0,c.pow2)(u,y,o)*u%o,d=(0,c.pow2)(l,e,o)*l%o,p=(0,c.pow2)(d,r,o)*d%o,g=(0,c.pow2)(p,n,o)*p%o,_=(0,c.pow2)(g,i,o)*g%o,b=(0,c.pow2)(_,i,o)*g%o,v=(0,c.pow2)(b,e,o)*l%o;return{pow_p_5_8:(0,c.pow2)(v,f,o)*t%o,b2:s}}function b(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}const v=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function w(t,e){const r=m.p,n=(0,c.mod)(e*e*e,r),i=_(t*(0,c.mod)(n*n*e,r)).pow_p_5_8;let o=(0,c.mod)(t*n*i,r);const s=(0,c.mod)(e*o*o,r),a=o,u=(0,c.mod)(o*v,r),l=s===t,d=s===(0,c.mod)(-t,r),h=s===(0,c.mod)(-t*v,r);return l&&(o=a),(d||h)&&(o=u),(0,c.isNegativeLE)(o,r)&&(o=(0,c.mod)(-o,r)),{isValid:l||d,value:o}}e.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];const A=(()=>(0,c.Field)(m.p,void 0,!0))(),E=(()=>({...m,Fp:A,hash:n.sha512,adjustScalarBytes:b,uvRatio:w}))();function S(t,e,r){if(e.length>255)throw new Error("Context is too big");return(0,i.concatBytes)((0,i.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([r?1:0,e.length]),e,t)}function B(t){const r=(0,l.ensureBytes)("pub",t),{y:n}=e.ed25519.Point.fromHex(r),i=BigInt(1);return A.toBytes(A.create((i+n)*A.inv(i-n)))}e.ed25519=(0,s.twistedEdwards)(E),e.ed25519ctx=(0,s.twistedEdwards)({...E,domain:S}),e.ed25519ph=(0,s.twistedEdwards)(Object.assign({},E,{domain:S,prehash:n.sha512})),e.x25519=(()=>{const t=m.p;return(0,u.montgomery)({P:t,type:"x25519",powPminus2:e=>{const{pow_p_5_8:r,b2:n}=_(e);return(0,c.mod)((0,c.pow2)(r,p,t)*n,t)},adjustScalarBytes:b})})(),e.edwardsToMontgomery=B;const I=(()=>(A.ORDER+p)/g)(),x=(()=>A.pow(f,I))(),L=(()=>A.sqrt(A.neg(A.ONE)))();const O=(()=>(0,c.FpSqrtEven)(A,A.neg(BigInt(486664))))();function T(t){const{xMn:e,xMd:r,yMn:n,yMd:i}=function(t){const e=(A.ORDER-y)/g,r=BigInt(486662);let n=A.sqr(t);n=A.mul(n,f);let i=A.add(n,A.ONE),o=A.neg(r),s=A.sqr(i),a=A.mul(s,i),c=A.mul(n,r);c=A.mul(c,o),c=A.add(c,s),c=A.mul(c,o);let u=A.sqr(a);s=A.sqr(u),u=A.mul(u,a),u=A.mul(u,c),s=A.mul(s,u);let l=A.pow(s,e);l=A.mul(l,u);let d=A.mul(l,L);s=A.sqr(l),s=A.mul(s,a);let p=A.eql(s,c),m=A.cmov(d,l,p),_=A.mul(o,n),b=A.mul(l,t);b=A.mul(b,x);let v=A.mul(b,L),w=A.mul(c,n);s=A.sqr(b),s=A.mul(s,a);let E=A.eql(s,w),S=A.cmov(v,b,E);s=A.sqr(m),s=A.mul(s,a);let B=A.eql(s,c),I=A.cmov(_,o,B),O=A.cmov(S,m,B),T=A.isOdd(O);return O=A.cmov(O,A.neg(O),B!==T),{xMn:I,xMd:i,yMn:O,yMd:h}}(t);let o=A.mul(e,i);o=A.mul(o,O);let s=A.mul(r,n),a=A.sub(e,r),u=A.add(e,r),l=A.mul(s,u),d=A.eql(l,A.ZERO);o=A.cmov(o,A.ZERO,d),s=A.cmov(s,A.ONE,d),a=A.cmov(a,A.ONE,d),u=A.cmov(u,A.ONE,d);const[p,m]=(0,c.FpInvertBatch)(A,[s,u],!0);return{x:A.mul(o,p),y:A.mul(a,m)}}function k(t){if(!(t instanceof V))throw new Error("RistrettoPoint expected")}e.ed25519_hasher=(0,a.createHasher)(e.ed25519.Point,t=>T(t[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:A.ORDER,m:1,k:128,expand:"xmd",hash:n.sha512}),e.hashToCurve=e.ed25519_hasher.hashToCurve,e.encodeToCurve=e.ed25519_hasher.encodeToCurve;const R=v,C=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),P=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),F=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),M=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),U=t=>w(h,t),H=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),j=t=>e.ed25519.CURVE.Fp.create((0,l.bytesToNumberLE)(t)&H);function N(t){const{d:r}=e.ed25519.CURVE,n=e.ed25519.CURVE.Fp.ORDER,i=e.ed25519.CURVE.Fp.create,o=i(R*t*t),s=i((o+h)*F);let a=BigInt(-1);const u=i((a-r*o)*i(o+r));let{isValid:l,value:d}=w(s,u),f=i(d*t);(0,c.isNegativeLE)(f,n)||(f=i(-f)),l||(d=f),l||(a=o);const p=i(a*(o-h)*M-u),y=d*d,g=i((d+d)*u),m=i(p*C),_=i(h-y),b=i(h+y);return new e.ed25519.Point(i(g*b),i(_*m),i(m*b),i(g*_))}class V{constructor(t){this.ep=t}static fromAffine(t){return new V(e.ed25519.Point.fromAffine(t))}static hashToCurve(t){t=(0,l.ensureBytes)("ristrettoHash",t,64);const e=N(j(t.slice(0,32))),r=N(j(t.slice(32,64)));return new V(e.add(r))}static fromBytes(t){return(0,i.abytes)(t),this.fromHex(t)}static fromHex(t){t=(0,l.ensureBytes)("ristrettoHex",t,32);const{a:r,d:n}=e.ed25519.CURVE,i=A.ORDER,o=A.create,s="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",a=j(t);if(!(0,l.equalBytes)((0,l.numberToBytesLE)(a,32),t)||(0,c.isNegativeLE)(a,i))throw new Error(s);const u=o(a*a),f=o(h+r*u),p=o(h-r*u),y=o(f*f),g=o(p*p),m=o(r*n*y-g),{isValid:_,value:b}=U(o(m*g)),v=o(b*p),w=o(b*v*m);let E=o((a+a)*v);(0,c.isNegativeLE)(E,i)&&(E=o(-E));const S=o(f*w),B=o(E*S);if(!_||(0,c.isNegativeLE)(B,i)||S===d)throw new Error(s);return new V(new e.ed25519.Point(E,S,h,B))}static msm(t,r){const n=(0,c.Field)(e.ed25519.CURVE.n,e.ed25519.CURVE.nBitLength);return(0,o.pippenger)(V,n,t,r)}toBytes(){let{ex:t,ey:e,ez:r,et:n}=this.ep;const i=A.ORDER,o=A.create,s=o(o(r+e)*o(r-e)),a=o(t*e),u=o(a*a),{value:d}=U(o(s*u)),h=o(d*s),f=o(d*a),p=o(h*f*n);let y;if((0,c.isNegativeLE)(n*p,i)){let r=o(e*R),n=o(t*R);t=r,e=n,y=o(h*P)}else y=f;(0,c.isNegativeLE)(t*p,i)&&(e=o(-e));let g=o((r-e)*y);return(0,c.isNegativeLE)(g,i)&&(g=o(-g)),(0,l.numberToBytesLE)(g,32)}toRawBytes(){return this.toBytes()}toHex(){return(0,l.bytesToHex)(this.toBytes())}toString(){return this.toHex()}equals(t){k(t);const{ex:e,ey:r}=this.ep,{ex:n,ey:i}=t.ep,o=A.create,s=o(e*i)===o(r*n),a=o(r*i)===o(e*n);return s||a}add(t){return k(t),new V(this.ep.add(t.ep))}subtract(t){return k(t),new V(this.ep.subtract(t.ep))}multiply(t){return new V(this.ep.multiply(t))}multiplyUnsafe(t){return new V(this.ep.multiplyUnsafe(t))}double(){return new V(this.ep.double())}negate(){return new V(this.ep.negate())}}e.RistrettoPoint=(V.BASE||(V.BASE=new V(e.ed25519.Point.BASE)),V.ZERO||(V.ZERO=new V(e.ed25519.Point.ZERO)),V);e.hashToRistretto255=(t,e)=>{const r=e.DST,o="string"==typeof r?(0,i.utf8ToBytes)(r):r,s=(0,a.expand_message_xmd)(t,o,64,n.sha512);return V.hashToCurve(s)},e.hash_to_ristretto255=e.hashToRistretto255},469:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unsafe=e.aeskwp=e.aeskw=e.siv=e.gcmsiv=e.gcm=e.cfb=e.cbc=e.ecb=e.ctr=void 0;const n=r(22),i=r(6527),o=16,s=new Uint8Array(o);function a(t){return t<<1^283&-(t>>7)}function c(t,e){let r=0;for(;e>0;e>>=1)r^=t&-(1&e),t=a(t);return r}const u=(()=>{const t=new Uint8Array(256);for(let e=0,r=1;e<256;e++,r^=a(r))t[e]=r;const e=new Uint8Array(256);e[0]=99;for(let r=0;r<255;r++){let n=t[255-r];n|=n<<8,e[t[r]]=255&(n^n>>4^n>>5^n>>6^n>>7^99)}return(0,i.clean)(t),e})(),l=u.map((t,e)=>u.indexOf(e)),d=t=>t<<24|t>>>8,h=t=>t<<8|t>>>24,f=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255;function p(t,e){if(256!==t.length)throw new Error("Wrong sbox length");const r=new Uint32Array(256).map((r,n)=>e(t[n])),n=r.map(h),i=n.map(h),o=i.map(h),s=new Uint32Array(65536),a=new Uint32Array(65536),c=new Uint16Array(65536);for(let e=0;e<256;e++)for(let u=0;u<256;u++){const l=256*e+u;s[l]=r[e]^n[u],a[l]=i[e]^o[u],c[l]=t[e]<<8|t[u]}return{sbox:t,sbox2:c,T0:r,T1:n,T2:i,T3:o,T01:s,T23:a}}const y=p(u,t=>c(t,3)<<24|t<<16|t<<8|c(t,2)),g=p(l,t=>c(t,11)<<24|c(t,13)<<16|c(t,9)<<8|c(t,14)),m=(()=>{const t=new Uint8Array(16);for(let e=0,r=1;e<16;e++,r=a(r))t[e]=r;return t})();function _(t){(0,i.abytes)(t);const e=t.length;if(![16,24,32].includes(e))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+e);const{sbox2:r}=y,n=[];(0,i.isAligned32)(t)||n.push(t=(0,i.copyBytes)(t));const o=(0,i.u32)(t),s=o.length,a=t=>w(r,t,t,t,t),c=new Uint32Array(e+28);c.set(o);for(let t=s;t<c.length;t++){let e=c[t-1];t%s===0?e=a(d(e))^m[t/s-1]:s>6&&t%s===4&&(e=a(e)),c[t]=c[t-s]^e}return(0,i.clean)(...n),c}function b(t){const e=_(t),r=e.slice(),n=e.length,{sbox2:o}=y,{T0:s,T1:a,T2:c,T3:u}=g;for(let t=0;t<n;t+=4)for(let i=0;i<4;i++)r[t+i]=e[n-t-4+i];(0,i.clean)(e);for(let t=4;t<n-4;t++){const e=r[t],n=w(o,e,e,e,e);r[t]=s[255&n]^a[n>>>8&255]^c[n>>>16&255]^u[n>>>24]}return r}function v(t,e,r,n,i,o){return t[r<<8&65280|n>>>8&255]^e[i>>>8&65280|o>>>24&255]}function w(t,e,r,n,i){return t[255&e|65280&r]|t[n>>>16&255|i>>>16&65280]<<16}function A(t,e,r,n,i){const{sbox2:o,T01:s,T23:a}=y;let c=0;e^=t[c++],r^=t[c++],n^=t[c++],i^=t[c++];const u=t.length/4-2;for(let o=0;o<u;o++){const o=t[c++]^v(s,a,e,r,n,i),u=t[c++]^v(s,a,r,n,i,e),l=t[c++]^v(s,a,n,i,e,r),d=t[c++]^v(s,a,i,e,r,n);e=o,r=u,n=l,i=d}return{s0:t[c++]^w(o,e,r,n,i),s1:t[c++]^w(o,r,n,i,e),s2:t[c++]^w(o,n,i,e,r),s3:t[c++]^w(o,i,e,r,n)}}function E(t,e,r,n,i){const{sbox2:o,T01:s,T23:a}=g;let c=0;e^=t[c++],r^=t[c++],n^=t[c++],i^=t[c++];const u=t.length/4-2;for(let o=0;o<u;o++){const o=t[c++]^v(s,a,e,i,n,r),u=t[c++]^v(s,a,r,e,i,n),l=t[c++]^v(s,a,n,r,e,i),d=t[c++]^v(s,a,i,n,r,e);e=o,r=u,n=l,i=d}return{s0:t[c++]^w(o,e,i,n,r),s1:t[c++]^w(o,r,e,i,n),s2:t[c++]^w(o,n,r,e,i),s3:t[c++]^w(o,i,n,r,e)}}function S(t,e,r,n){(0,i.abytes)(e,o),(0,i.abytes)(r);const s=r.length;n=(0,i.getOutput)(s,n),(0,i.complexOverlapBytes)(r,n);const a=e,c=(0,i.u32)(a);let{s0:u,s1:l,s2:d,s3:h}=A(t,c[0],c[1],c[2],c[3]);const f=(0,i.u32)(r),p=(0,i.u32)(n);for(let e=0;e+4<=f.length;e+=4){p[e+0]=f[e+0]^u,p[e+1]=f[e+1]^l,p[e+2]=f[e+2]^d,p[e+3]=f[e+3]^h;let r=1;for(let t=a.length-1;t>=0;t--)r=r+(255&a[t])|0,a[t]=255&r,r>>>=8;({s0:u,s1:l,s2:d,s3:h}=A(t,c[0],c[1],c[2],c[3]))}const y=o*Math.floor(f.length/4);if(y<s){const t=new Uint32Array([u,l,d,h]),e=(0,i.u8)(t);for(let t=y,i=0;t<s;t++,i++)n[t]=r[t]^e[i];(0,i.clean)(t)}return n}function B(t,e,r,n,s){(0,i.abytes)(r,o),(0,i.abytes)(n),s=(0,i.getOutput)(n.length,s);const a=r,c=(0,i.u32)(a),u=(0,i.createView)(a),l=(0,i.u32)(n),d=(0,i.u32)(s),h=e?0:12,f=n.length;let p=u.getUint32(h,e),{s0:y,s1:g,s2:m,s3:_}=A(t,c[0],c[1],c[2],c[3]);for(let r=0;r+4<=l.length;r+=4)d[r+0]=l[r+0]^y,d[r+1]=l[r+1]^g,d[r+2]=l[r+2]^m,d[r+3]=l[r+3]^_,p=p+1>>>0,u.setUint32(h,p,e),({s0:y,s1:g,s2:m,s3:_}=A(t,c[0],c[1],c[2],c[3]));const b=o*Math.floor(l.length/4);if(b<f){const t=new Uint32Array([y,g,m,_]),e=(0,i.u8)(t);for(let t=b,r=0;t<f;t++,r++)s[t]=n[t]^e[r];(0,i.clean)(t)}return s}function I(t){if((0,i.abytes)(t),t.length%o!==0)throw new Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size 16")}function x(t,e,r){(0,i.abytes)(t);let n=t.length;const s=n%o;if(!e&&0!==s)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");(0,i.isAligned32)(t)||(t=(0,i.copyBytes)(t));const a=(0,i.u32)(t);if(e){let t=o-s;t||(t=o),n+=t}r=(0,i.getOutput)(n,r),(0,i.complexOverlapBytes)(t,r);return{b:a,o:(0,i.u32)(r),out:r}}function L(t,e){if(!e)return t;const r=t.length;if(!r)throw new Error("aes/pcks5: empty ciphertext not allowed");const n=t[r-1];if(n<=0||n>16)throw new Error("aes/pcks5: wrong padding");const i=t.subarray(0,-n);for(let e=0;e<n;e++)if(t[r-e-1]!==n)throw new Error("aes/pcks5: wrong padding");return i}function O(t){const e=new Uint8Array(16),r=(0,i.u32)(e);e.set(t);const n=o-t.length;for(let t=o-n;t<o;t++)e[t]=n;return r}function T(t,e,r,n,o){const s=o?o.length:0,a=t.create(r,n.length+s);o&&a.update(o);const c=(0,i.u64Lengths)(8*n.length,8*s,e);a.update(n),a.update(c);const u=a.digest();return(0,i.clean)(c),u}e.ctr=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(t,e){function r(r,n){if((0,i.abytes)(r),void 0!==n&&((0,i.abytes)(n),!(0,i.isAligned32)(n)))throw new Error("unaligned destination");const o=_(t),s=(0,i.copyBytes)(e),a=[o,s];(0,i.isAligned32)(r)||a.push(r=(0,i.copyBytes)(r));const c=S(o,s,r,n);return(0,i.clean)(...a),c}return{encrypt:(t,e)=>r(t,e),decrypt:(t,e)=>r(t,e)}}),e.ecb=(0,i.wrapCipher)({blockSize:16},function(t,e={}){const r=!e.disablePadding;return{encrypt(e,n){const{b:o,o:s,out:a}=x(e,r,n),c=_(t);let u=0;for(;u+4<=o.length;){const{s0:t,s1:e,s2:r,s3:n}=A(c,o[u+0],o[u+1],o[u+2],o[u+3]);s[u++]=t,s[u++]=e,s[u++]=r,s[u++]=n}if(r){const t=O(e.subarray(4*u)),{s0:r,s1:n,s2:i,s3:o}=A(c,t[0],t[1],t[2],t[3]);s[u++]=r,s[u++]=n,s[u++]=i,s[u++]=o}return(0,i.clean)(c),a},decrypt(e,n){I(e);const o=b(t);n=(0,i.getOutput)(e.length,n);const s=[o];(0,i.isAligned32)(e)||s.push(e=(0,i.copyBytes)(e)),(0,i.complexOverlapBytes)(e,n);const a=(0,i.u32)(e),c=(0,i.u32)(n);for(let t=0;t+4<=a.length;){const{s0:e,s1:r,s2:n,s3:i}=E(o,a[t+0],a[t+1],a[t+2],a[t+3]);c[t++]=e,c[t++]=r,c[t++]=n,c[t++]=i}return(0,i.clean)(...s),L(n,r)}}}),e.cbc=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(t,e,r={}){const n=!r.disablePadding;return{encrypt(r,o){const s=_(t),{b:a,o:c,out:u}=x(r,n,o);let l=e;const d=[s];(0,i.isAligned32)(l)||d.push(l=(0,i.copyBytes)(l));const h=(0,i.u32)(l);let f=h[0],p=h[1],y=h[2],g=h[3],m=0;for(;m+4<=a.length;)f^=a[m+0],p^=a[m+1],y^=a[m+2],g^=a[m+3],({s0:f,s1:p,s2:y,s3:g}=A(s,f,p,y,g)),c[m++]=f,c[m++]=p,c[m++]=y,c[m++]=g;if(n){const t=O(r.subarray(4*m));f^=t[0],p^=t[1],y^=t[2],g^=t[3],({s0:f,s1:p,s2:y,s3:g}=A(s,f,p,y,g)),c[m++]=f,c[m++]=p,c[m++]=y,c[m++]=g}return(0,i.clean)(...d),u},decrypt(r,o){I(r);const s=b(t);let a=e;const c=[s];(0,i.isAligned32)(a)||c.push(a=(0,i.copyBytes)(a));const u=(0,i.u32)(a);o=(0,i.getOutput)(r.length,o),(0,i.isAligned32)(r)||c.push(r=(0,i.copyBytes)(r)),(0,i.complexOverlapBytes)(r,o);const l=(0,i.u32)(r),d=(0,i.u32)(o);let h=u[0],f=u[1],p=u[2],y=u[3];for(let t=0;t+4<=l.length;){const e=h,r=f,n=p,i=y;h=l[t+0],f=l[t+1],p=l[t+2],y=l[t+3];const{s0:o,s1:a,s2:c,s3:u}=E(s,h,f,p,y);d[t++]=o^e,d[t++]=a^r,d[t++]=c^n,d[t++]=u^i}return(0,i.clean)(...c),L(o,n)}}}),e.cfb=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(t,e){function r(r,n,s){(0,i.abytes)(r);const a=r.length;if(s=(0,i.getOutput)(a,s),(0,i.overlapBytes)(r,s))throw new Error("overlapping src and dst not supported.");const c=_(t);let u=e;const l=[c];(0,i.isAligned32)(u)||l.push(u=(0,i.copyBytes)(u)),(0,i.isAligned32)(r)||l.push(r=(0,i.copyBytes)(r));const d=(0,i.u32)(r),h=(0,i.u32)(s),f=n?h:d,p=(0,i.u32)(u);let y=p[0],g=p[1],m=p[2],b=p[3];for(let t=0;t+4<=d.length;){const{s0:e,s1:r,s2:n,s3:i}=A(c,y,g,m,b);h[t+0]=d[t+0]^e,h[t+1]=d[t+1]^r,h[t+2]=d[t+2]^n,h[t+3]=d[t+3]^i,y=f[t++],g=f[t++],m=f[t++],b=f[t++]}const v=o*Math.floor(d.length/4);if(v<a){({s0:y,s1:g,s2:m,s3:b}=A(c,y,g,m,b));const t=(0,i.u8)(new Uint32Array([y,g,m,b]));for(let e=v,n=0;e<a;e++,n++)s[e]=r[e]^t[n];(0,i.clean)(t)}return(0,i.clean)(...l),s}return{encrypt:(t,e)=>r(t,!0,e),decrypt:(t,e)=>r(t,!1,e)}}),e.gcm=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(t,e,r){if(e.length<8)throw new Error("aes/gcm: invalid nonce length");function o(t,e,i){const o=T(n.ghash,!1,t,i,r);for(let t=0;t<e.length;t++)o[t]^=e[t];return o}function a(){const r=_(t),o=s.slice(),a=s.slice();if(B(r,!1,a,a,o),12===e.length)a.set(e);else{const t=s.slice(),r=(0,i.createView)(t);(0,i.setBigUint64)(r,8,BigInt(8*e.length),!1);const c=n.ghash.create(o).update(e).update(t);c.digestInto(a),c.destroy()}return{xk:r,authKey:o,counter:a,tagMask:B(r,!1,a,s)}}return{encrypt(t){const{xk:e,authKey:r,counter:n,tagMask:s}=a(),c=new Uint8Array(t.length+16),u=[e,r,n,s];(0,i.isAligned32)(t)||u.push(t=(0,i.copyBytes)(t)),B(e,!1,n,t,c.subarray(0,t.length));const l=o(r,s,c.subarray(0,c.length-16));return u.push(l),c.set(l,t.length),(0,i.clean)(...u),c},decrypt(t){const{xk:e,authKey:r,counter:n,tagMask:s}=a(),c=[e,r,s,n];(0,i.isAligned32)(t)||c.push(t=(0,i.copyBytes)(t));const u=t.subarray(0,-16),l=t.subarray(-16),d=o(r,s,u);if(c.push(d),!(0,i.equalBytes)(d,l))throw new Error("aes/gcm: invalid ghash tag");const h=B(e,!1,n,u);return(0,i.clean)(...c),h}}});const k=(t,e,r)=>n=>{if(!Number.isSafeInteger(n)||e>n||n>r){throw new Error(t+": expected value in range "+("["+e+".."+r+"]")+", got "+n)}};function R(t){return t instanceof Uint32Array||ArrayBuffer.isView(t)&&"Uint32Array"===t.constructor.name}function C(t,e){if((0,i.abytes)(e,16),!R(t))throw new Error("_encryptBlock accepts result of expandKeyLE");const r=(0,i.u32)(e);let{s0:n,s1:o,s2:s,s3:a}=A(t,r[0],r[1],r[2],r[3]);return r[0]=n,r[1]=o,r[2]=s,r[3]=a,e}function P(t,e){if((0,i.abytes)(e,16),!R(t))throw new Error("_decryptBlock accepts result of expandKeyLE");const r=(0,i.u32)(e);let{s0:n,s1:o,s2:s,s3:a}=E(t,r[0],r[1],r[2],r[3]);return r[0]=n,r[1]=o,r[2]=s,r[3]=a,e}e.gcmsiv=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(t,e,r){const o=k("AAD",0,2**36),s=k("plaintext",0,2**36),a=k("nonce",12,12),c=k("ciphertext",16,2**36+16);function u(){const r=_(t),n=new Uint8Array(t.length),o=new Uint8Array(16),s=[r,n];let a=e;(0,i.isAligned32)(a)||s.push(a=(0,i.copyBytes)(a));const c=(0,i.u32)(a);let u=0,l=c[0],d=c[1],h=c[2],f=0;for(const t of[o,n].map(i.u32)){const e=(0,i.u32)(t);for(let t=0;t<e.length;t+=2){const{s0:n,s1:i}=A(r,u,l,d,h);e[t+0]=n,e[t+1]=i,u=++f}}const p={authKey:o,encKey:_(n)};return(0,i.clean)(...s),p}function l(t,o,s){const a=T(n.polyval,!0,o,s,r);for(let t=0;t<12;t++)a[t]^=e[t];a[15]&=127;const c=(0,i.u32)(a);let u=c[0],l=c[1],d=c[2],h=c[3];return({s0:u,s1:l,s2:d,s3:h}=A(t,u,l,d,h)),c[0]=u,c[1]=l,c[2]=d,c[3]=h,a}function d(t,e,r){let n=(0,i.copyBytes)(e);n[15]|=128;const o=B(t,!0,n,r);return(0,i.clean)(n),o}return(0,i.abytes)(t,16,24,32),a(e.length),void 0!==r&&o(r.length),{encrypt(t){s(t.length);const{encKey:e,authKey:r}=u(),n=l(e,r,t),o=[e,r,n];(0,i.isAligned32)(t)||o.push(t=(0,i.copyBytes)(t));const a=new Uint8Array(t.length+16);return a.set(n,t.length),a.set(d(e,n,t)),(0,i.clean)(...o),a},decrypt(t){c(t.length);const e=t.subarray(-16),{encKey:r,authKey:n}=u(),o=[r,n];(0,i.isAligned32)(t)||o.push(t=(0,i.copyBytes)(t));const s=d(r,e,t.subarray(0,-16)),a=l(r,n,s);if(o.push(a),!(0,i.equalBytes)(e,a))throw(0,i.clean)(...o),new Error("invalid polyval tag");return(0,i.clean)(...o),s}}}),e.siv=e.gcmsiv;const F={encrypt(t,e){if(e.length>=2**32)throw new Error("plaintext should be less than 4gb");const r=_(t);if(16===e.length)C(r,e);else{const t=(0,i.u32)(e);let n=t[0],o=t[1];for(let e=0,i=1;e<6;e++)for(let e=2;e<t.length;e+=2,i++){const{s0:s,s1:a,s2:c,s3:u}=A(r,n,o,t[e],t[e+1]);n=s,o=a^f(i),t[e]=c,t[e+1]=u}t[0]=n,t[1]=o}r.fill(0)},decrypt(t,e){if(e.length-8>=2**32)throw new Error("ciphertext should be less than 4gb");const r=b(t),n=e.length/8-1;if(1===n)P(r,e);else{const t=(0,i.u32)(e);let o=t[0],s=t[1];for(let e=0,i=6*n;e<6;e++)for(let e=2*n;e>=1;e-=2,i--){s^=f(i);const{s0:n,s1:a,s2:c,s3:u}=E(r,o,s,t[e],t[e+1]);o=n,s=a,t[e]=c,t[e+1]=u}t[0]=o,t[1]=s}r.fill(0)}},M=new Uint8Array(8).fill(166);e.aeskw=(0,i.wrapCipher)({blockSize:8},t=>({encrypt(e){if(!e.length||e.length%8!=0)throw new Error("invalid plaintext length");if(8===e.length)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const r=(0,i.concatBytes)(M,e);return F.encrypt(t,r),r},decrypt(e){if(e.length%8!=0||e.length<24)throw new Error("invalid ciphertext length");const r=(0,i.copyBytes)(e);if(F.decrypt(t,r),!(0,i.equalBytes)(r.subarray(0,8),M))throw new Error("integrity check failed");return r.subarray(0,8).fill(0),r.subarray(8)}}));const U=2790873510;e.aeskwp=(0,i.wrapCipher)({blockSize:8},t=>({encrypt(e){if(!e.length)throw new Error("invalid plaintext length");const r=8*Math.ceil(e.length/8),n=new Uint8Array(8+r);n.set(e,8);const o=(0,i.u32)(n);return o[0]=U,o[1]=f(e.length),F.encrypt(t,n),n},decrypt(e){if(e.length<16)throw new Error("invalid ciphertext length");const r=(0,i.copyBytes)(e),n=(0,i.u32)(r);F.decrypt(t,r);const o=f(n[1])>>>0,s=8*Math.ceil(o/8);if(n[0]!==U||r.length-8!==s)throw new Error("integrity check failed");for(let t=o;t<s;t++)if(0!==r[8+t])throw new Error("integrity check failed");return r.subarray(0,8).fill(0),r.subarray(8,8+o)}})),e.unsafe={expandKeyLE:_,expandKeyDecLE:b,encrypt:A,decrypt:E,encryptBlock:C,decryptBlock:P,ctrCounter:S,ctr32:B}},520:(t,e,r)=>{"use strict";r.d(e,{z:()=>i});var n=r(1682);class i{_container;_anchor;_theme;constructor(t){this._theme=t.theme?t.theme:"default"}onAdd(t){return this._container=(0,n.r)("div","maplibregl-ctrl mapxus-ctrl-attribution",t.getContainer()),this._anchor=(0,n.r)("a","mapxus-attribution",this._container),this._anchor.target="_blank",this._setCopyrightInfo(this._theme),this._anchor.setAttribute("aria-label","Mapxus attribution"),this._anchor.setAttribute("rel","noopener"),this._container.appendChild(this._anchor),this._container}onRemove(){(0,n.Z)(this._container)}getDefaultPosition(){return"bottom-right"}changeTheme(t){this._setCopyrightInfo(t)}_setCopyrightInfo(t){this._anchor.innerText="landsD"===t?"© The Government of the Hong Kong SAR":"©Mapxus driven by Kawasaki ©OpenStreetMap contributors","landsD"===t&&(this._anchor.href="https://www.map.gov.hk/gm/")}}},549:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5547);const i=function(t,e){var r=(0,n.A)(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},605:(t,e,r)=>{"use strict";function n(t){return function(e){return t.apply(null,e)}}r.d(e,{A:()=>n})},608:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(6632);const i=function(t){var e=(0,n.A)(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},640:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n,i=r(3161),o=(n=/[^.]+$/.exec(i.A&&i.A.keys&&i.A.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";const s=function(t){return!!o&&o in t}},665:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(7275),i=r(4062),o=r(3119);function s(t){return n.A.isPlainObject(t)||n.A.isArray(t)}function a(t){return n.A.endsWith(t,"[]")?t.slice(0,-2):t}function c(t,e,r){return t?t.concat(e).map(function(t,e){return t=a(t),!r&&e?"["+t+"]":t}).join(r?".":""):e}const u=n.A.toFlatObject(n.A,{},null,function(t){return/^is[A-Z]/.test(t)});const l=function(t,e,r){if(!n.A.isObject(t))throw new TypeError("target must be an object");e=e||new(o.A||FormData);const l=(r=n.A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!n.A.isUndefined(e[t])})).metaTokens,d=r.visitor||g,h=r.dots,f=r.indexes,p=(r.Blob||"undefined"!=typeof Blob&&Blob)&&n.A.isSpecCompliantForm(e);if(!n.A.isFunction(d))throw new TypeError("visitor must be a function");function y(t){if(null===t)return"";if(n.A.isDate(t))return t.toISOString();if(n.A.isBoolean(t))return t.toString();if(!p&&n.A.isBlob(t))throw new i.A("Blob is not supported. Use a Buffer instead.");return n.A.isArrayBuffer(t)||n.A.isTypedArray(t)?p&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function g(t,r,i){let o=t;if(t&&!i&&"object"==typeof t)if(n.A.endsWith(r,"{}"))r=l?r:r.slice(0,-2),t=JSON.stringify(t);else if(n.A.isArray(t)&&function(t){return n.A.isArray(t)&&!t.some(s)}(t)||(n.A.isFileList(t)||n.A.endsWith(r,"[]"))&&(o=n.A.toArray(t)))return r=a(r),o.forEach(function(t,i){!n.A.isUndefined(t)&&null!==t&&e.append(!0===f?c([r],i,h):null===f?r:r+"[]",y(t))}),!1;return!!s(t)||(e.append(c(i,r,h),y(t)),!1)}const m=[],_=Object.assign(u,{defaultVisitor:g,convertValue:y,isVisitable:s});if(!n.A.isObject(t))throw new TypeError("data must be an object");return function t(r,i){if(!n.A.isUndefined(r)){if(-1!==m.indexOf(r))throw Error("Circular reference detected in "+i.join("."));m.push(r),n.A.forEach(r,function(r,o){!0===(!(n.A.isUndefined(r)||null===r)&&d.call(e,r,n.A.isString(o)?o.trim():o,i,_))&&t(r,i?i.concat(o):[o])}),m.pop()}}(t),e}},674:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=(0,r(702).A)(Object,"create")},702:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(1979),i=r(8104);const o=function(t,e){var r=(0,i.A)(t,e);return(0,n.A)(r)?r:void 0}},759:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(3265),i=r(1038);const o=function(t,e,r,o){var s=r.length,a=s,c=!o;if(null==t)return!a;for(t=Object(t);s--;){var u=r[s];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<a;){var l=(u=r[s])[0],d=t[l],h=u[1];if(c&&u[2]){if(void 0===d&&!(l in t))return!1}else{var f=new n.A;if(o)var p=o(d,h,l,t,e,f);if(!(void 0===p?(0,i.A)(h,d,3,o,f):p))return!1}}return!0}},805:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return function(e){return null==e?void 0:e[t]}}},807:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},853:(t,e,r)=>{"use strict";async function n(t,e){if(!t.hasImage(e))try{const r=await t.loadImage(e);t.addImage(e,r.data)}catch(t){throw new Error(t)}}r.d(e,{K:()=>n})},901:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(1882);const i=function(t){if("string"==typeof t||(0,n.A)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},1031:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(169);const i=function(t,e){var r=this.__data__,i=(0,n.A)(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},1038:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(3244),i=r(3098);const o=function t(e,r,o,s,a){return e===r||(null==e||null==r||!(0,i.A)(e)&&!(0,i.A)(r)?e!=e&&r!=r:(0,n.A)(e,r,o,s,t,a))}},1052:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(1917);const i=function(){return n.A.Date.now()}},1076:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7275),i=r(665),o=r(3820);function s(t,e){return(0,i.A)(t,new o.A.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,i){return o.A.isNode&&n.A.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}},1088:(t,e,r)=>{"use strict";r.d(e,{B6:()=>s.B,CA:()=>i.C,EJ:()=>n.E,Nj:()=>o.N});var n=r(2468),i=r(9644),o=r(9205),s=r(6294)},1089:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n={value:()=>{}};function i(){for(var t,e=0,r=arguments.length,n={};e<r;++e){if(!(t=arguments[e]+"")||t in n||/[\s.]/.test(t))throw new Error("illegal type: "+t);n[t]=[]}return new o(n)}function o(t){this._=t}function s(t,e){for(var r,n=0,i=t.length;n<i;++n)if((r=t[n]).name===e)return r.value}function a(t,e,r){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=n,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:e,value:r}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var r,n,i=this._,o=(n=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),c=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c<u;)if(r=(t=o[c]).type)i[r]=a(i[r],t.name,e);else if(null==e)for(r in i)i[r]=a(i[r],t.name,null);return this}for(;++c<u;)if((r=(t=o[c]).type)&&(r=s(i[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new o(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,i=new Array(r),o=0;o<r;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,r=(n=this._[t]).length;o<r;++o)n[o].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],i=0,o=n.length;i<o;++i)n[i].value.apply(e,r)}};const c=i},1121:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=Function.prototype.toString;const i=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1210:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.poly1305=void 0,e.wrapConstructorWithKey=s;const n=r(6527),i=(t,e)=>255&t[e++]|(255&t[e++])<<8;class o{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,t=(0,n.toBytes)(t),(0,n.abytes)(t,32);const e=i(t,0),r=i(t,2),o=i(t,4),s=i(t,6),a=i(t,8),c=i(t,10),u=i(t,12),l=i(t,14);this.r[0]=8191&e,this.r[1]=8191&(e>>>13|r<<3),this.r[2]=7939&(r>>>10|o<<6),this.r[3]=8191&(o>>>7|s<<9),this.r[4]=255&(s>>>4|a<<12),this.r[5]=a>>>1&8190,this.r[6]=8191&(a>>>14|c<<2),this.r[7]=8065&(c>>>11|u<<5),this.r[8]=8191&(u>>>8|l<<8),this.r[9]=l>>>5&127;for(let e=0;e<8;e++)this.pad[e]=i(t,16+2*e)}process(t,e,r=!1){const n=r?0:2048,{h:o,r:s}=this,a=s[0],c=s[1],u=s[2],l=s[3],d=s[4],h=s[5],f=s[6],p=s[7],y=s[8],g=s[9],m=i(t,e+0),_=i(t,e+2),b=i(t,e+4),v=i(t,e+6),w=i(t,e+8),A=i(t,e+10),E=i(t,e+12),S=i(t,e+14);let B=o[0]+(8191&m),I=o[1]+(8191&(m>>>13|_<<3)),x=o[2]+(8191&(_>>>10|b<<6)),L=o[3]+(8191&(b>>>7|v<<9)),O=o[4]+(8191&(v>>>4|w<<12)),T=o[5]+(w>>>1&8191),k=o[6]+(8191&(w>>>14|A<<2)),R=o[7]+(8191&(A>>>11|E<<5)),C=o[8]+(8191&(E>>>8|S<<8)),P=o[9]+(S>>>5|n),F=0,M=F+B*a+I*(5*g)+x*(5*y)+L*(5*p)+O*(5*f);F=M>>>13,M&=8191,M+=T*(5*h)+k*(5*d)+R*(5*l)+C*(5*u)+P*(5*c),F+=M>>>13,M&=8191;let U=F+B*c+I*a+x*(5*g)+L*(5*y)+O*(5*p);F=U>>>13,U&=8191,U+=T*(5*f)+k*(5*h)+R*(5*d)+C*(5*l)+P*(5*u),F+=U>>>13,U&=8191;let H=F+B*u+I*c+x*a+L*(5*g)+O*(5*y);F=H>>>13,H&=8191,H+=T*(5*p)+k*(5*f)+R*(5*h)+C*(5*d)+P*(5*l),F+=H>>>13,H&=8191;let j=F+B*l+I*u+x*c+L*a+O*(5*g);F=j>>>13,j&=8191,j+=T*(5*y)+k*(5*p)+R*(5*f)+C*(5*h)+P*(5*d),F+=j>>>13,j&=8191;let N=F+B*d+I*l+x*u+L*c+O*a;F=N>>>13,N&=8191,N+=T*(5*g)+k*(5*y)+R*(5*p)+C*(5*f)+P*(5*h),F+=N>>>13,N&=8191;let V=F+B*h+I*d+x*l+L*u+O*c;F=V>>>13,V&=8191,V+=T*a+k*(5*g)+R*(5*y)+C*(5*p)+P*(5*f),F+=V>>>13,V&=8191;let D=F+B*f+I*h+x*d+L*l+O*u;F=D>>>13,D&=8191,D+=T*c+k*a+R*(5*g)+C*(5*y)+P*(5*p),F+=D>>>13,D&=8191;let $=F+B*p+I*f+x*h+L*d+O*l;F=$>>>13,$&=8191,$+=T*u+k*c+R*a+C*(5*g)+P*(5*y),F+=$>>>13,$&=8191;let z=F+B*y+I*p+x*f+L*h+O*d;F=z>>>13,z&=8191,z+=T*l+k*u+R*c+C*a+P*(5*g),F+=z>>>13,z&=8191;let G=F+B*g+I*y+x*p+L*f+O*h;F=G>>>13,G&=8191,G+=T*d+k*l+R*u+C*c+P*a,F+=G>>>13,G&=8191,F=(F<<2)+F|0,F=F+M|0,M=8191&F,F>>>=13,U+=F,o[0]=M,o[1]=U,o[2]=H,o[3]=j,o[4]=N,o[5]=V,o[6]=D,o[7]=$,o[8]=z,o[9]=G}finalize(){const{h:t,pad:e}=this,r=new Uint16Array(10);let i=t[1]>>>13;t[1]&=8191;for(let e=2;e<10;e++)t[e]+=i,i=t[e]>>>13,t[e]&=8191;t[0]+=5*i,i=t[0]>>>13,t[0]&=8191,t[1]+=i,i=t[1]>>>13,t[1]&=8191,t[2]+=i,r[0]=t[0]+5,i=r[0]>>>13,r[0]&=8191;for(let e=1;e<10;e++)r[e]=t[e]+i,i=r[e]>>>13,r[e]&=8191;r[9]-=8192;let o=(1^i)-1;for(let t=0;t<10;t++)r[t]&=o;o=~o;for(let e=0;e<10;e++)t[e]=t[e]&o|r[e];t[0]=65535&(t[0]|t[1]<<13),t[1]=65535&(t[1]>>>3|t[2]<<10),t[2]=65535&(t[2]>>>6|t[3]<<7),t[3]=65535&(t[3]>>>9|t[4]<<4),t[4]=65535&(t[4]>>>12|t[5]<<1|t[6]<<14),t[5]=65535&(t[6]>>>2|t[7]<<11),t[6]=65535&(t[7]>>>5|t[8]<<8),t[7]=65535&(t[8]>>>8|t[9]<<5);let s=t[0]+e[0];t[0]=65535&s;for(let r=1;r<8;r++)s=(t[r]+e[r]|0)+(s>>>16)|0,t[r]=65535&s;(0,n.clean)(r)}update(t){(0,n.aexists)(this),t=(0,n.toBytes)(t),(0,n.abytes)(t);const{buffer:e,blockLen:r}=this,i=t.length;for(let n=0;n<i;){const o=Math.min(r-this.pos,i-n);if(o!==r)e.set(t.subarray(n,n+o),this.pos),this.pos+=o,n+=o,this.pos===r&&(this.process(e,0,!1),this.pos=0);else for(;r<=i-n;n+=r)this.process(t,n)}return this}destroy(){(0,n.clean)(this.h,this.r,this.buffer,this.pad)}digestInto(t){(0,n.aexists)(this),(0,n.aoutput)(t,this),this.finished=!0;const{buffer:e,h:r}=this;let{pos:i}=this;if(i){for(e[i++]=1;i<16;i++)e[i]=0;this.process(e,0,!0)}this.finalize();let o=0;for(let e=0;e<8;e++)t[o++]=r[e]>>>0,t[o++]=r[e]>>>8;return t}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const r=t.slice(0,e);return this.destroy(),r}}function s(t){const e=(e,r)=>t(r).update((0,n.toBytes)(e)).digest(),r=t(new Uint8Array(32));return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e}e.poly1305=s(t=>new o(t))},1275:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(5917),i=r(5668),o=r(9875);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n.A;++e<r;)this.add(t[e])}s.prototype.add=s.prototype.push=i.A,s.prototype.has=o.A;const a=s},1470:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(5572),i=r(2141),o=r(9084),s=r(3973);const a=function(t,e){if(null==t)return{};var r=(0,n.A)((0,s.A)(t),function(t){return[t]});return e=(0,i.A)(e),(0,o.A)(t,r,function(t,r){return e(t,r[0])})}},1472:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(3454),i=r(8776),o=r(9313);const s=function(t,e,r){return e=(0,i.A)(e),void 0===r?(r=e,e=0):r=(0,i.A)(r),t=(0,o.A)(t),(0,n.A)(t,e,r)}},1493:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},1521:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5547);const i=function(t){return(0,n.A)(this,t).get(t)}},1532:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7919);const i=function(){this.__data__=new n.A,this.size=0}},1635:(t,e,r)=>{"use strict";r.d(e,{Cl:()=>n,YH:()=>o,fX:()=>s,sH:()=>i});var n=function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};function i(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{c(n.next(t))}catch(t){o(t)}}function a(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})}function o(t,e){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function s(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError},1666:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AEAD_TAG_LENGTH=e.XCHACHA20_NONCE_LENGTH=e.CURVE25519_PUBLIC_KEY_SIZE=e.ETH_PUBLIC_KEY_SIZE=e.UNCOMPRESSED_PUBLIC_KEY_SIZE=e.COMPRESSED_PUBLIC_KEY_SIZE=e.SECRET_KEY_LENGTH=void 0,e.SECRET_KEY_LENGTH=32,e.COMPRESSED_PUBLIC_KEY_SIZE=33,e.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,e.ETH_PUBLIC_KEY_SIZE=64,e.CURVE25519_PUBLIC_KEY_SIZE=32,e.XCHACHA20_NONCE_LENGTH=24,e.AEAD_TAG_LENGTH=16},1682:(t,e,r)=>{"use strict";function n(t){t.parentNode&&t.parentNode.removeChild(t)}function i(t,e,r){const n=document.createElement(t);return e&&(n.className=e),r&&r.appendChild(n),n}r.d(e,{Z:()=>n,r:()=>i})},1694:(t,e,r)=>{"use strict";r.d(e,{F0:()=>l,F2:()=>c,pT:()=>a,qT:()=>u,xW:()=>d});var n=r(4545);const i=new n.H$,o=new n.w1,s=new n.FR;async function a(t){try{return(await i.searchByIds(t)).data.result.buildings[0]}catch(t){throw t}}async function c(t){try{const e=(await i.searchByFloorId(t)).data.result.buildings[0].buildingId;return await a(e)}catch(t){throw t}}async function u(t){try{return(await o.searchByIds(t)).data.result.venues[0]}catch(t){throw t}}async function l(t){try{return(await o.searchBySharedFloorId(t)).data.result.venues[0]}catch(t){throw t}}async function d(t){try{return(await s.searchByIds([t])).data.result.pois[0]}catch(t){throw t}}},1705:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DER=e.DERErr=void 0,e._legacyHelperEquat=p,e._legacyHelperNormPriv=y,e.weierstrassN=g,e.weierstrassPoints=function(t){const{CURVE:e,curveOpts:r}=b(t),n=g(e,r);return function(t,e){const{Fp:r,Fn:n}=e;function o(t){return(0,i.inRange)(t,l,n.ORDER)}const s=p(r,t.a,t.b),a=y(n,t.allowedPrivateKeyLengths,t.wrapPrivateKey);return Object.assign({},{CURVE:t,Point:e,ProjectivePoint:e,normPrivateKeyToScalar:a,weierstrassEquation:s,isWithinCurveOrder:o})}(t,n)},e.ecdsa=_,e.weierstrass=function(t){const{CURVE:e,curveOpts:r,ecdsaOpts:n}=function(t){const{CURVE:e,curveOpts:r}=b(t),n={hash:t.hash,hmac:t.hmac,randomBytes:t.randomBytes,lowS:t.lowS,bits2int:t.bits2int,bits2int_modN:t.bits2int_modN};return{CURVE:e,curveOpts:r,ecdsaOpts:n}}(t),i=_(g(e,r),n,r);return function(t,e){return Object.assign({},e,{ProjectivePoint:e.Point,CURVE:t})}(t,i)},e.SWUFpSqrtRatio=v,e.mapToCurveSimpleSWU=function(t,e){(0,s.validateField)(t);const{A:r,B:n,Z:i}=e;if(!t.isValid(r)||!t.isValid(n)||!t.isValid(i))throw new Error("mapToCurveSimpleSWU: invalid opts");const o=v(t,i);if(!t.isOdd)throw new Error("Field does not have .isOdd()");return e=>{let a,c,u,l,d,h,f,p;a=t.sqr(e),a=t.mul(a,i),c=t.sqr(a),c=t.add(c,a),u=t.add(c,t.ONE),u=t.mul(u,n),l=t.cmov(i,t.neg(c),!t.eql(c,t.ZERO)),l=t.mul(l,r),c=t.sqr(u),h=t.sqr(l),d=t.mul(h,r),c=t.add(c,d),c=t.mul(c,u),h=t.mul(h,l),d=t.mul(h,n),c=t.add(c,d),f=t.mul(a,u);const{isValid:y,value:g}=o(c,h);p=t.mul(a,e),p=t.mul(p,g),f=t.cmov(f,u,y),p=t.cmov(p,g,y);const m=t.isOdd(e)===t.isOdd(p);p=t.cmov(t.neg(p),p,m);const _=(0,s.FpInvertBatch)(t,[l],!0)[0];return f=t.mul(f,_),{x:f,y:p}}};const n=r(9615),i=r(8627),o=r(2422),s=r(4967);function a(t){void 0!==t.lowS&&(0,i.abool)("lowS",t.lowS),void 0!==t.prehash&&(0,i.abool)("prehash",t.prehash)}class c extends Error{constructor(t=""){super(t)}}e.DERErr=c,e.DER={Err:c,_tlv:{encode:(t,r)=>{const{Err:n}=e.DER;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(1&r.length)throw new n("tlv.encode: unpadded data");const o=r.length/2,s=(0,i.numberToHexUnpadded)(o);if(s.length/2&128)throw new n("tlv.encode: long form length too big");const a=o>127?(0,i.numberToHexUnpadded)(s.length/2|128):"";return(0,i.numberToHexUnpadded)(t)+a+s+r},decode(t,r){const{Err:n}=e.DER;let i=0;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(r.length<2||r[i++]!==t)throw new n("tlv.decode: wrong tlv");const o=r[i++];let s=0;if(!!(128&o)){const t=127&o;if(!t)throw new n("tlv.decode(long): indefinite length not supported");if(t>4)throw new n("tlv.decode(long): byte length is too big");const e=r.subarray(i,i+t);if(e.length!==t)throw new n("tlv.decode: length bytes not complete");if(0===e[0])throw new n("tlv.decode(long): zero leftmost byte");for(const t of e)s=s<<8|t;if(i+=t,s<128)throw new n("tlv.decode(long): not minimal encoding")}else s=o;const a=r.subarray(i,i+s);if(a.length!==s)throw new n("tlv.decode: wrong value length");return{v:a,l:r.subarray(i+s)}}},_int:{encode(t){const{Err:r}=e.DER;if(t<u)throw new r("integer: negative integers are not allowed");let n=(0,i.numberToHexUnpadded)(t);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new r("unexpected DER parsing assertion: unpadded hex");return n},decode(t){const{Err:r}=e.DER;if(128&t[0])throw new r("invalid signature integer: negative");if(0===t[0]&&!(128&t[1]))throw new r("invalid signature integer: unnecessary leading zero");return(0,i.bytesToNumberBE)(t)}},toSig(t){const{Err:r,_int:n,_tlv:o}=e.DER,s=(0,i.ensureBytes)("signature",t),{v:a,l:c}=o.decode(48,s);if(c.length)throw new r("invalid signature: left bytes after parsing");const{v:u,l}=o.decode(2,a),{v:d,l:h}=o.decode(2,l);if(h.length)throw new r("invalid signature: left bytes after parsing");return{r:n.decode(u),s:n.decode(d)}},hexFromSig(t){const{_tlv:r,_int:n}=e.DER,i=r.encode(2,n.encode(t.r))+r.encode(2,n.encode(t.s));return r.encode(48,i)}};const u=BigInt(0),l=BigInt(1),d=BigInt(2),h=BigInt(3),f=BigInt(4);function p(t,e,r){return function(n){const i=t.sqr(n),o=t.mul(i,n);return t.add(t.add(o,t.mul(n,e)),r)}}function y(t,e,r){const{BYTES:n}=t;return function(o){let s;if("bigint"==typeof o)s=o;else{let r=(0,i.ensureBytes)("private key",o);if(e){if(!e.includes(2*r.length))throw new Error("invalid private key");const t=new Uint8Array(n);t.set(r,t.length-r.length),r=t}try{s=t.fromBytes(r)}catch(t){throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof o}`)}}if(r&&(s=t.create(s)),!t.isValidNot0(s))throw new Error("invalid private key: out of range [1..N-1]");return s}}function g(t,e={}){const{Fp:r,Fn:n}=(0,o._createCurveFields)("weierstrass",t,e),{h:s,n:a}=t;(0,i._validateObject)(e,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:c}=e;if(c&&(!r.is0(t.a)||"bigint"!=typeof c.beta||"function"!=typeof c.splitScalar))throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function');function d(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const g=e.toBytes||function(t,e,n){const{x:o,y:s}=e.toAffine(),a=r.toBytes(o);if((0,i.abool)("isCompressed",n),n){d();const t=!r.isOdd(s);return(0,i.concatBytes)(m(t),a)}return(0,i.concatBytes)(Uint8Array.of(4),a,r.toBytes(s))},_=e.fromBytes||function(t){(0,i.abytes)(t);const e=r.BYTES,n=e+1,o=2*e+1,s=t.length,a=t[0],c=t.subarray(1);if(s!==n||2!==a&&3!==a){if(s===o&&4===a){const t=r.fromBytes(c.subarray(0*e,1*e)),n=r.fromBytes(c.subarray(1*e,2*e));if(!v(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error(`bad point: got length ${s}, expected compressed=${n} or uncompressed=${o}`)}{const t=r.fromBytes(c);if(!r.isValid(t))throw new Error("bad point: is not on curve, wrong x");const e=b(t);let n;try{n=r.sqrt(e)}catch(t){const e=t instanceof Error?": "+t.message:"";throw new Error("bad point: is not on curve, sqrt error"+e)}d();return!(1&~a)!==r.isOdd(n)&&(n=r.neg(n)),{x:t,y:n}}},b=p(r,t.a,t.b);function v(t,e){const n=r.sqr(e),i=b(t);return r.eql(n,i)}if(!v(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const w=r.mul(r.pow(t.a,h),f),A=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(w,A)))throw new Error("bad curve params: a or b");function E(t,e,n=!1){if(!r.isValid(e)||n&&r.is0(e))throw new Error(`bad point coordinate ${t}`);return e}function S(t){if(!(t instanceof L))throw new Error("ProjectivePoint expected")}const B=(0,i.memoized)((t,e)=>{const{px:n,py:i,pz:o}=t;if(r.eql(o,r.ONE))return{x:n,y:i};const s=t.is0();null==e&&(e=s?r.ONE:r.inv(o));const a=r.mul(n,e),c=r.mul(i,e),u=r.mul(o,e);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw new Error("invZ was invalid");return{x:a,y:c}}),I=(0,i.memoized)(t=>{if(t.is0()){if(e.allowInfinityPoint&&!r.is0(t.py))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=t.toAffine();if(!r.isValid(n)||!r.isValid(i))throw new Error("bad point: x or y not field elements");if(!v(n,i))throw new Error("bad point: equation left != right");if(!t.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function x(t,e,n,i,s){return n=new L(r.mul(n.px,t),n.py,n.pz),e=(0,o.negateCt)(i,e),n=(0,o.negateCt)(s,n),e.add(n)}class L{constructor(t,e,r){this.px=E("x",t),this.py=E("y",e,!0),this.pz=E("z",r),Object.freeze(this)}static fromAffine(t){const{x:e,y:n}=t||{};if(!t||!r.isValid(e)||!r.isValid(n))throw new Error("invalid affine point");if(t instanceof L)throw new Error("projective point not allowed");return r.is0(e)&&r.is0(n)?L.ZERO:new L(e,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){return(0,o.normalizeZ)(L,"pz",t)}static fromBytes(t){return(0,i.abytes)(t),L.fromHex(t)}static fromHex(t){const e=L.fromAffine(_((0,i.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){const r=y(n,e.allowedPrivateKeyLengths,e.wrapPrivateKey);return L.BASE.multiply(r(t))}static msm(t,e){return(0,o.pippenger)(L,n,t,e)}precompute(t=8,e=!0){return T.setWindowSize(this,t),e||this.multiply(h),this}_setWindowSize(t){this.precompute(t)}assertValidity(){I(this)}hasEvenY(){const{y:t}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(t)}equals(t){S(t);const{px:e,py:n,pz:i}=this,{px:o,py:s,pz:a}=t,c=r.eql(r.mul(e,a),r.mul(o,i)),u=r.eql(r.mul(n,a),r.mul(s,i));return c&&u}negate(){return new L(this.px,r.neg(this.py),this.pz)}double(){const{a:e,b:n}=t,i=r.mul(n,h),{px:o,py:s,pz:a}=this;let c=r.ZERO,u=r.ZERO,l=r.ZERO,d=r.mul(o,o),f=r.mul(s,s),p=r.mul(a,a),y=r.mul(o,s);return y=r.add(y,y),l=r.mul(o,a),l=r.add(l,l),c=r.mul(e,l),u=r.mul(i,p),u=r.add(c,u),c=r.sub(f,u),u=r.add(f,u),u=r.mul(c,u),c=r.mul(y,c),l=r.mul(i,l),p=r.mul(e,p),y=r.sub(d,p),y=r.mul(e,y),y=r.add(y,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,p),d=r.mul(d,y),u=r.add(u,d),p=r.mul(s,a),p=r.add(p,p),d=r.mul(p,y),c=r.sub(c,d),l=r.mul(p,f),l=r.add(l,l),l=r.add(l,l),new L(c,u,l)}add(e){S(e);const{px:n,py:i,pz:o}=this,{px:s,py:a,pz:c}=e;let u=r.ZERO,l=r.ZERO,d=r.ZERO;const f=t.a,p=r.mul(t.b,h);let y=r.mul(n,s),g=r.mul(i,a),m=r.mul(o,c),_=r.add(n,i),b=r.add(s,a);_=r.mul(_,b),b=r.add(y,g),_=r.sub(_,b),b=r.add(n,o);let v=r.add(s,c);return b=r.mul(b,v),v=r.add(y,m),b=r.sub(b,v),v=r.add(i,o),u=r.add(a,c),v=r.mul(v,u),u=r.add(g,m),v=r.sub(v,u),d=r.mul(f,b),u=r.mul(p,m),d=r.add(u,d),u=r.sub(g,d),d=r.add(g,d),l=r.mul(u,d),g=r.add(y,y),g=r.add(g,y),m=r.mul(f,m),b=r.mul(p,b),g=r.add(g,m),m=r.sub(y,m),m=r.mul(f,m),b=r.add(b,m),y=r.mul(g,b),l=r.add(l,y),y=r.mul(v,b),u=r.mul(_,u),u=r.sub(u,y),y=r.mul(_,g),d=r.mul(v,d),d=r.add(d,y),new L(u,l,d)}subtract(t){return this.add(t.negate())}is0(){return this.equals(L.ZERO)}multiply(t){const{endo:r}=e;if(!n.isValidNot0(t))throw new Error("invalid scalar: out of range");let i,o;const s=t=>T.wNAFCached(this,t,L.normalizeZ);if(r){const{k1neg:e,k1:n,k2neg:a,k2:c}=r.splitScalar(t),{p:u,f:l}=s(n),{p:d,f:h}=s(c);o=l.add(h),i=x(r.beta,u,d,e,a)}else{const{p:e,f:r}=s(t);i=e,o=r}return L.normalizeZ([i,o])[0]}multiplyUnsafe(t){const{endo:r}=e,i=this;if(!n.isValid(t))throw new Error("invalid scalar: out of range");if(t===u||i.is0())return L.ZERO;if(t===l)return i;if(T.hasPrecomputes(this))return this.multiply(t);if(r){const{k1neg:e,k1:n,k2neg:s,k2:a}=r.splitScalar(t),{p1:c,p2:u}=(0,o.mulEndoUnsafe)(L,i,n,a);return x(r.beta,c,u,e,s)}return T.wNAFCachedUnsafe(i,t)}multiplyAndAddUnsafe(t,e,r){const n=this.multiplyUnsafe(e).add(t.multiplyUnsafe(r));return n.is0()?void 0:n}toAffine(t){return B(this,t)}isTorsionFree(){const{isTorsionFree:t}=e;return s===l||(t?t(L,this):T.wNAFCachedUnsafe(this,a).is0())}clearCofactor(){const{clearCofactor:t}=e;return s===l?this:t?t(L,this):this.multiplyUnsafe(s)}toBytes(t=!0){return(0,i.abool)("isCompressed",t),this.assertValidity(),g(L,this,t)}toRawBytes(t=!0){return this.toBytes(t)}toHex(t=!0){return(0,i.bytesToHex)(this.toBytes(t))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}L.BASE=new L(t.Gx,t.Gy,r.ONE),L.ZERO=new L(r.ZERO,r.ONE,r.ZERO),L.Fp=r,L.Fn=n;const O=n.BITS,T=(0,o.wNAF)(L,e.endo?Math.ceil(O/2):O);return L}function m(t){return Uint8Array.of(t?2:3)}function _(t,r,o={}){(0,i._validateObject)(r,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const c=r.randomBytes||i.randomBytes,h=r.hmac||((t,...e)=>(0,n.hmac)(r.hash,t,(0,i.concatBytes)(...e))),{Fp:f,Fn:p}=t,{ORDER:g,BITS:_}=p;function b(t){return t>g>>l}function v(t,e){if(!p.isValidNot0(e))throw new Error(`invalid signature ${t}: out of range 1..CURVE.n`)}class w{constructor(t,e,r){v("r",t),v("s",e),this.r=t,this.s=e,null!=r&&(this.recovery=r),Object.freeze(this)}static fromCompact(t){const e=p.BYTES,r=(0,i.ensureBytes)("compactSignature",t,2*e);return new w(p.fromBytes(r.subarray(0,e)),p.fromBytes(r.subarray(e,2*e)))}static fromDER(t){const{r,s:n}=e.DER.toSig((0,i.ensureBytes)("DER",t));return new w(r,n)}assertValidity(){}addRecoveryBit(t){return new w(this.r,this.s,t)}recoverPublicKey(e){const r=f.ORDER,{r:n,s:o,recovery:s}=this;if(null==s||![0,1,2,3].includes(s))throw new Error("recovery id invalid");if(g*d<r&&s>1)throw new Error("recovery id is ambiguous for h>1 curve");const a=2===s||3===s?n+g:n;if(!f.isValid(a))throw new Error("recovery id 2 or 3 invalid");const c=f.toBytes(a),u=t.fromHex((0,i.concatBytes)(m(!(1&s)),c)),l=p.inv(a),h=I((0,i.ensureBytes)("msgHash",e)),y=p.create(-h*l),_=p.create(o*l),b=t.BASE.multiplyUnsafe(y).add(u.multiplyUnsafe(_));if(b.is0())throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return b(this.s)}normalizeS(){return this.hasHighS()?new w(this.r,p.neg(this.s),this.recovery):this}toBytes(t){if("compact"===t)return(0,i.concatBytes)(p.toBytes(this.r),p.toBytes(this.s));if("der"===t)return(0,i.hexToBytes)(e.DER.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,i.bytesToHex)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,i.bytesToHex)(this.toBytes("compact"))}}const A=y(p,o.allowedPrivateKeyLengths,o.wrapPrivateKey),E={isValidPrivateKey(t){try{return A(t),!0}catch(t){return!1}},normPrivateKeyToScalar:A,randomPrivateKey:()=>{const t=g;return(0,s.mapHashToField)(c((0,s.getMinHashLength)(t)),t)},precompute:(e=8,r=t.BASE)=>r.precompute(e,!1)};function S(e){if("bigint"==typeof e)return!1;if(e instanceof t)return!0;const r=(0,i.ensureBytes)("key",e).length,n=f.BYTES,s=n+1,a=2*n+1;return o.allowedPrivateKeyLengths||p.BYTES===s?void 0:r===s||r===a}const B=r.bits2int||function(t){if(t.length>8192)throw new Error("input is too large");const e=(0,i.bytesToNumberBE)(t),r=8*t.length-_;return r>0?e>>BigInt(r):e},I=r.bits2int_modN||function(t){return p.create(B(t))},x=(0,i.bitMask)(_);function L(t){return(0,i.aInRange)("num < 2^"+_,t,u,x),p.toBytes(t)}function O(e,n,o=T){if(["recovered","canonical"].some(t=>t in o))throw new Error("sign() legacy options not supported");const{hash:s}=r;let{lowS:d,prehash:h,extraEntropy:y}=o;null==d&&(d=!0),e=(0,i.ensureBytes)("msgHash",e),a(o),h&&(e=(0,i.ensureBytes)("prehashed msgHash",s(e)));const g=I(e),m=A(n),_=[L(m),L(g)];if(null!=y&&!1!==y){const t=!0===y?c(f.BYTES):y;_.push((0,i.ensureBytes)("extraEntropy",t))}const v=(0,i.concatBytes)(..._),E=g;return{seed:v,k2sig:function(e){const r=B(e);if(!p.isValidNot0(r))return;const n=p.inv(r),i=t.BASE.multiply(r).toAffine(),o=p.create(i.x);if(o===u)return;const s=p.create(n*p.create(E+o*m));if(s===u)return;let a=(i.x===o?0:2)|Number(i.y&l),c=s;return d&&b(s)&&(c=function(t){return b(t)?p.neg(t):t}(s),a^=1),new w(o,c,a)}}}const T={lowS:r.lowS,prehash:!1},k={lowS:r.lowS,prehash:!1};return t.BASE.precompute(8),Object.freeze({getPublicKey:function(e,r=!0){return t.fromPrivateKey(e).toBytes(r)},getSharedSecret:function(e,r,n=!0){if(!0===S(e))throw new Error("first arg must be private key");if(!1===S(r))throw new Error("second arg must be public key");return t.fromHex(r).multiply(A(e)).toBytes(n)},sign:function(t,e,n=T){const{seed:o,k2sig:s}=O(t,e,n);return(0,i.createHmacDrbg)(r.hash.outputLen,p.BYTES,h)(o,s)},verify:function(n,o,s,c=k){const u=n;o=(0,i.ensureBytes)("msgHash",o),s=(0,i.ensureBytes)("publicKey",s),a(c);const{lowS:l,prehash:d,format:h}=c;if("strict"in c)throw new Error("options.strict was renamed to lowS");if(void 0!==h&&!["compact","der","js"].includes(h))throw new Error('format must be "compact", "der" or "js"');const f="string"==typeof u||(0,i.isBytes)(u),y=!f&&!h&&"object"==typeof u&&null!==u&&"bigint"==typeof u.r&&"bigint"==typeof u.s;if(!f&&!y)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let g,m;try{if(y){if(void 0!==h&&"js"!==h)throw new Error("invalid format");g=new w(u.r,u.s)}if(f){try{"compact"!==h&&(g=w.fromDER(u))}catch(t){if(!(t instanceof e.DER.Err))throw t}g||"der"===h||(g=w.fromCompact(u))}m=t.fromHex(s)}catch(t){return!1}if(!g)return!1;if(l&&g.hasHighS())return!1;d&&(o=r.hash(o));const{r:_,s:b}=g,v=I(o),A=p.inv(b),E=p.create(v*A),S=p.create(_*A),B=t.BASE.multiplyUnsafe(E).add(m.multiplyUnsafe(S));return!B.is0()&&p.create(B.x)===_},utils:E,Point:t,Signature:w})}function b(t){const e={a:t.a,b:t.b,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy};return{CURVE:e,curveOpts:{Fp:t.Fp,Fn:(0,s.Field)(e.n,t.nBitLength),allowedPrivateKeyLengths:t.allowedPrivateKeyLengths,allowInfinityPoint:t.allowInfinityPoint,endo:t.endo,wrapPrivateKey:t.wrapPrivateKey,isTorsionFree:t.isTorsionFree,clearCofactor:t.clearCofactor,fromBytes:t.fromBytes,toBytes:t.toBytes}}}function v(t,e){const r=t.ORDER;let n=u;for(let t=r-l;t%d===u;t/=d)n+=l;const i=n,o=d<<i-l-l,s=o*d,a=(r-l)/s,c=(a-l)/d,p=s-l,y=o,g=t.pow(e,a),m=t.pow(e,(a+l)/d);let _=(e,r)=>{let n=g,o=t.pow(r,p),s=t.sqr(o);s=t.mul(s,r);let a=t.mul(e,s);a=t.pow(a,c),a=t.mul(a,o),o=t.mul(a,r),s=t.mul(a,e);let u=t.mul(s,o);a=t.pow(u,y);let h=t.eql(a,t.ONE);o=t.mul(s,m),a=t.mul(u,n),s=t.cmov(o,s,h),u=t.cmov(a,u,h);for(let e=i;e>l;e--){let r=e-d;r=d<<r-l;let i=t.pow(u,r);const a=t.eql(i,t.ONE);o=t.mul(s,n),n=t.mul(n,n),i=t.mul(u,n),s=t.cmov(o,s,a),u=t.cmov(i,u,a)}return{isValid:h,value:s}};if(t.ORDER%f===h){const r=(t.ORDER-h)/f,n=t.sqrt(t.neg(e));_=(e,i)=>{let o=t.sqr(i);const s=t.mul(e,i);o=t.mul(o,s);let a=t.pow(o,r);a=t.mul(a,s);const c=t.mul(a,n),u=t.mul(t.sqr(a),i),l=t.eql(u,e);return{isValid:l,value:t.cmov(c,a,l)}}}return _}},1761:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expand_message_xmd=u,e.expand_message_xof=l,e.hash_to_field=d,e.isogenyMap=function(t,e){const r=e.map(t=>Array.from(t).reverse());return(e,n)=>{const[o,s,a,c]=r.map(r=>r.reduce((r,n)=>t.add(t.mul(r,e),n))),[u,l]=(0,i.FpInvertBatch)(t,[s,c],!0);return e=t.mul(o,u),n=t.mul(n,t.mul(a,l)),{x:e,y:n}}},e.createHasher=function(t,e,r){if("function"!=typeof e)throw new Error("mapToCurve() must be defined");function n(r){return t.fromAffine(e(r))}function i(e){const r=e.clearCofactor();return r.equals(t.ZERO)?t.ZERO:(r.assertValidity(),r)}return{defaults:r,hashToCurve(t,e){const o=r.DST?r.DST:{},s=d(t,2,Object.assign({},r,o,e)),a=n(s[0]),c=n(s[1]);return i(a.add(c))},encodeToCurve(t,e){const o=r.encodeDST?r.encodeDST:{};return i(n(d(t,1,Object.assign({},r,o,e))[0]))},mapToCurve(t){if(!Array.isArray(t))throw new Error("expected array of bigints");for(const e of t)if("bigint"!=typeof e)throw new Error("expected array of bigints");return i(n(t))}}};const n=r(8627),i=r(4967),o=n.bytesToNumberBE;function s(t,e){if(c(t),c(e),t<0||t>=1<<8*e)throw new Error("invalid I2OSP input: "+t);const r=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)r[n]=255&t,t>>>=8;return new Uint8Array(r)}function a(t,e){const r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t[n]^e[n];return r}function c(t){if(!Number.isSafeInteger(t))throw new Error("number expected")}function u(t,e,r,i){(0,n.abytes)(t),(0,n.abytes)(e),c(r),e.length>255&&(e=i((0,n.concatBytes)((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:o,blockLen:u}=i,l=Math.ceil(r/o);if(r>65535||l>255)throw new Error("expand_message_xmd: invalid lenInBytes");const d=(0,n.concatBytes)(e,s(e.length,1)),h=s(0,u),f=s(r,2),p=new Array(l),y=i((0,n.concatBytes)(h,t,f,s(0,1),d));p[0]=i((0,n.concatBytes)(y,s(1,1),d));for(let t=1;t<=l;t++){const e=[a(y,p[t-1]),s(t+1,1),d];p[t]=i((0,n.concatBytes)(...e))}return(0,n.concatBytes)(...p).slice(0,r)}function l(t,e,r,i,o){if((0,n.abytes)(t),(0,n.abytes)(e),c(r),e.length>255){const t=Math.ceil(2*i/8);e=o.create({dkLen:t}).update((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:r}).update(t).update(s(r,2)).update(e).update(s(e.length,1)).digest()}function d(t,e,r){(0,n._validateObject)(r,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:s,k:a,m:d,hash:h,expand:f,DST:p}=r;if(!(0,n.isBytes)(p)&&"string"!=typeof p)throw new Error("DST must be string or uint8array");if(!(0,n.isHash)(r.hash))throw new Error("expected valid hash");(0,n.abytes)(t),c(e);const y="string"==typeof p?(0,n.utf8ToBytes)(p):p,g=s.toString(2).length,m=Math.ceil((g+a)/8),_=e*d*m;let b;if("xmd"===f)b=u(t,y,_,h);else if("xof"===f)b=l(t,y,_,a,h);else{if("_internal_pass"!==f)throw new Error('expand must be "xmd" or "xof"');b=t}const v=new Array(e);for(let t=0;t<e;t++){const e=new Array(d);for(let r=0;r<d;r++){const n=m*(r+t*d),a=b.subarray(n,n+m);e[r]=(0,i.mod)(o(a),s)}v[t]=e}return v}},1788:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(4846),i=r(3098),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable;const c=(0,n.A)(function(){return arguments}())?n.A:function(t){return(0,i.A)(t)&&s.call(t,"callee")&&!a.call(t,"callee")}},1791:(t,e,r)=>{"use strict";r.d(e,{E9:()=>o});const n=function*(t,e){let r=t.byteLength;if(!e||r<e)return void(yield t);let n,i=0;for(;i<r;)n=i+e,yield t.slice(i,n),i=n},i=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},o=(t,e,r,o)=>{const s=async function*(t,e){for await(const r of i(t))yield*n(r,e)}(t,e);let a,c=0,u=t=>{a||(a=!0,o&&o(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await s.next();if(e)return u(),void t.close();let i=n.byteLength;if(r){let t=c+=i;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw u(t),t}},cancel:t=>(u(t),s.return())},{highWaterMark:2})}},1865:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(423),i=r(8823),o=r(8446);const s=function(t){return(0,o.A)(t)?(0,n.A)(t,!0):(0,i.A)(t)}},1882:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9672),i=r(3098);const o=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,n.A)(t)}},1917:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(2136),i="object"==typeof self&&self&&self.Object===Object&&self;const o=n.A||i||Function("return this")()},1965:(t,e,r)=>{"use strict";r.d(e,{FI:()=>n,TU:()=>i,Zj:()=>o});const n="reserve_mapxus-level-fill",i="reserve_mapxus-shared-level-fill",o="reserve_mapxus-building-fill"},1979:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=r(9610),i=r(640),o=r(3149),s=r(1121),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,h=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const f=function(t){return!(!(0,o.A)(t)||(0,i.A)(t))&&((0,n.A)(t)?h:a).test((0,s.A)(t))}},2049:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=Array.isArray},2068:(t,e,r)=>{"use strict";r.d(e,{K:()=>s});var n=r(7536),i=r(9588);const o=r(7311).o.getInstance();class s{static instance;_axios;_isRefreshingToken=!1;_retryCount=0;constructor(){this._axios=n.A.create({baseURL:i.hl}),this._setupInterceptors()}static getInstance(){return s.instance||(s.instance=new s),s.instance}async get(t){return this._axios.get(t)}async post(t,e){return this._axios.post(t,e)}async getRequestHeaders(){return{"Content-Type":"application/json",sdkVersion:o.getSdkVersion(),identifier:await o.getIdentifier(),token:await o.getAccessToken()}}_setupInterceptors(){this._axios.interceptors.request.use(async t=>{const e=await this.getRequestHeaders();return t.headers=Object.assign({},t.headers,e),t},t=>{throw t}),this._axios.interceptors.response.use(null,async t=>{if(401!==t.response?.status||this._retryCount>=3)throw this._retryCount=0,t;if(this._isRefreshingToken)throw t;o.getGlobalDispatcher().call("unauthorized"),this._isRefreshingToken=!0,this._retryCount++;try{const e=await this.getRequestHeaders(),r=t.config;return r.headers=Object.assign({},r.headers,e),this._axios.request(r)}catch(t){throw t}finally{this._isRefreshingToken=!1}})}}},2075:(t,e,r)=>{"use strict";r.d(e,{$b:()=>h,Hf:()=>d,_C:()=>s,aS:()=>f,em:()=>l,lu:()=>a,ts:()=>c,xR:()=>u});var n=r(9588);const i="v3";function o(t){return`${n.hl}/api/${i}/tiles/styles/${t}`}const s=o("christmas_mims2_v1"),a=o("common_mims2_v1"),c=o("halloween_mims2_v1"),u=o("mappybee_mims2_v1"),l=o("mapxus_mims2_v1"),d=o("lands_d_mims2_v1"),h=o("mapxus_v7");function f(t){return o(t)}},2125:(t,e,r)=>{"use strict";function n(t,e){return function(){return t.apply(e,arguments)}}r.d(e,{A:()=>n})},2136:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},2141:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(4943),i=r(6474),o=r(9008),s=r(2049),a=r(2263);const c=function(t){return"function"==typeof t?t:null==t?o.A:"object"==typeof t?(0,s.A)(t)?(0,i.A)(t[0],t[1]):(0,n.A)(t):(0,a.A)(t)}},2158:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(9378),e),i(r(244),e),i(r(3503),e),i(r(7757),e)},2199:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(6318);const i=function(t){return function(e){return(0,n.A)(e,t)}}},2263:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(805),i=r(2199),o=r(6586),s=r(901);const a=function(t){return(0,o.A)(t)?(0,n.A)((0,s.A)(t)):(0,i.A)(t)}},2302:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){}},2318:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toBig=e.shrSL=e.shrSH=e.rotrSL=e.rotrSH=e.rotrBL=e.rotrBH=e.rotr32L=e.rotr32H=e.rotlSL=e.rotlSH=e.rotlBL=e.rotlBH=e.add5L=e.add5H=e.add4L=e.add4H=e.add3L=e.add3H=void 0,e.add=b,e.fromBig=i,e.split=o;const r=BigInt(2**32-1),n=BigInt(32);function i(t,e=!1){return e?{h:Number(t&r),l:Number(t>>n&r)}:{h:0|Number(t>>n&r),l:0|Number(t&r)}}function o(t,e=!1){const r=t.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let s=0;s<r;s++){const{h:r,l:a}=i(t[s],e);[n[s],o[s]]=[r,a]}return[n,o]}const s=(t,e)=>BigInt(t>>>0)<<n|BigInt(e>>>0);e.toBig=s;const a=(t,e,r)=>t>>>r;e.shrSH=a;const c=(t,e,r)=>t<<32-r|e>>>r;e.shrSL=c;const u=(t,e,r)=>t>>>r|e<<32-r;e.rotrSH=u;const l=(t,e,r)=>t<<32-r|e>>>r;e.rotrSL=l;const d=(t,e,r)=>t<<64-r|e>>>r-32;e.rotrBH=d;const h=(t,e,r)=>t>>>r-32|e<<64-r;e.rotrBL=h;const f=(t,e)=>e;e.rotr32H=f;const p=(t,e)=>t;e.rotr32L=p;const y=(t,e,r)=>t<<r|e>>>32-r;e.rotlSH=y;const g=(t,e,r)=>e<<r|t>>>32-r;e.rotlSL=g;const m=(t,e,r)=>e<<r-32|t>>>64-r;e.rotlBH=m;const _=(t,e,r)=>t<<r-32|e>>>64-r;function b(t,e,r,n){const i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:0|i}}e.rotlBL=_;const v=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0);e.add3L=v;const w=(t,e,r,n)=>e+r+n+(t/2**32|0)|0;e.add3H=w;const A=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0);e.add4L=A;const E=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0;e.add4H=E;const S=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0);e.add5L=S;const B=(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0;e.add5H=B;const I={fromBig:i,split:o,toBig:s,shrSH:a,shrSL:c,rotrSH:u,rotrSL:l,rotrBH:d,rotrBL:h,rotr32H:f,rotr32L:p,rotlSH:y,rotlSL:g,rotlBH:m,rotlBL:_,add:b,add3L:v,add3H:w,add4L:A,add4H:E,add5H:B,add5L:S};e.default=I},2384:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(169),i=Array.prototype.splice;const o=function(t){var e=this.__data__,r=(0,n.A)(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},2422:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.negateCt=a,e.normalizeZ=function(t,e,r){const n="pz"===e?t=>t.pz:t=>t.ez,o=(0,i.FpInvertBatch)(t.Fp,r.map(n));return r.map((t,e)=>t.toAffine(o[e])).map(t.fromAffine)},e.wNAF=function(t,e){return{constTimeNegate:a,hasPrecomputes:t=>1!==y(t),unsafeLadder(e,r,n=t.ZERO){let i=e;for(;r>o;)r&s&&(n=n.add(i)),i=i.double(),r>>=s;return n},precomputeWindow(t,r){const{windows:n,windowSize:i}=u(r,e),o=[];let s=t,a=s;for(let t=0;t<n;t++){a=s,o.push(a);for(let t=1;t<i;t++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(r,n,i){let o=t.ZERO,s=t.BASE;const c=u(r,e);for(let t=0;t<c.windows;t++){const{nextN:e,offset:r,isZero:u,isNeg:d,isNegF:h,offsetF:f}=l(i,t,c);i=e,u?s=s.add(a(h,n[f])):o=o.add(a(d,n[r]))}return g(i),{p:o,f:s}},wNAFUnsafe(r,n,i,s=t.ZERO){const a=u(r,e);for(let t=0;t<a.windows&&i!==o;t++){const{nextN:e,offset:r,isZero:o,isNeg:c}=l(i,t,a);if(i=e,!o){const t=n[r];s=s.add(c?t.negate():t)}}return g(i),s},getPrecomputes(t,e,r){let n=f.get(e);return n||(n=this.precomputeWindow(e,t),1!==t&&("function"==typeof r&&(n=r(n)),f.set(e,n))),n},wNAFCached(t,e,r){const n=y(t);return this.wNAF(n,this.getPrecomputes(n,t,r),e)},wNAFCachedUnsafe(t,e,r,n){const i=y(t);return 1===i?this.unsafeLadder(t,e,n):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),e,n)},setWindowSize(t,r){c(r,e),p.set(t,r),f.delete(t)}}},e.mulEndoUnsafe=function(t,e,r,n){let i=e,a=t.ZERO,c=t.ZERO;for(;r>o||n>o;)r&s&&(a=a.add(i)),n&s&&(c=c.add(i)),i=i.double(),r>>=s,n>>=s;return{p1:a,p2:c}},e.pippenger=function(t,e,r,i){d(r,t),h(i,e);const o=r.length,s=i.length;if(o!==s)throw new Error("arrays of points and scalars must have equal length");const a=t.ZERO,c=(0,n.bitLen)(BigInt(o));let u=1;c>12?u=c-3:c>4?u=c-2:c>0&&(u=2);const l=(0,n.bitMask)(u),f=new Array(Number(l)+1).fill(a),p=Math.floor((e.BITS-1)/u)*u;let y=a;for(let t=p;t>=0;t-=u){f.fill(a);for(let e=0;e<s;e++){const n=i[e],o=Number(n>>BigInt(t)&l);f[o]=f[o].add(r[e])}let e=a;for(let t=f.length-1,r=a;t>0;t--)r=r.add(f[t]),e=e.add(r);if(y=y.add(e),0!==t)for(let t=0;t<u;t++)y=y.double()}return y},e.precomputeMSMUnsafe=function(t,e,r,i){c(i,e.BITS),d(r,t);const o=t.ZERO,s=2**i-1,a=Math.ceil(e.BITS/i),u=(0,n.bitMask)(i),l=r.map(t=>{const e=[];for(let r=0,n=t;r<s;r++)e.push(n),n=n.add(t);return e});return t=>{if(h(t,e),t.length>r.length)throw new Error("array of scalars must be smaller than array of points");let n=o;for(let e=0;e<a;e++){if(n!==o)for(let t=0;t<i;t++)n=n.double();const r=BigInt(a*i-(e+1)*i);for(let e=0;e<t.length;e++){const i=t[e],o=Number(i>>r&u);o&&(n=n.add(l[e][o-1]))}}return n}},e.validateBasic=function(t){return(0,i.validateField)(t.Fp),(0,n.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,i.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})},e._createCurveFields=function(t,e,r={}){if(!e||"object"!=typeof e)throw new Error(`expected valid ${t} CURVE object`);for(const t of["p","n","h"]){const r=e[t];if(!("bigint"==typeof r&&r>o))throw new Error(`CURVE.${t} must be positive bigint`)}const n=m(e.p,r.Fp),i=m(e.n,r.Fn),s=["Gx","Gy","a","weierstrass"===t?"b":"d"];for(const t of s)if(!n.isValid(e[t]))throw new Error(`CURVE.${t} must be valid field element of CURVE.Fp`);return{Fp:n,Fn:i}};const n=r(8627),i=r(4967),o=BigInt(0),s=BigInt(1);function a(t,e){const r=e.negate();return t?r:e}function c(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function u(t,e){c(t,e);const r=2**t;return{windows:Math.ceil(e/t)+1,windowSize:2**(t-1),mask:(0,n.bitMask)(t),maxNumber:r,shiftBy:BigInt(t)}}function l(t,e,r){const{windowSize:n,mask:i,maxNumber:o,shiftBy:a}=r;let c=Number(t&i),u=t>>a;c>n&&(c-=o,u+=s);const l=e*n;return{nextN:u,offset:l+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:e%2!=0,offsetF:l}}function d(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach((t,r)=>{if(!(t instanceof e))throw new Error("invalid point at index "+r)})}function h(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((t,r)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+r)})}const f=new WeakMap,p=new WeakMap;function y(t){return p.get(t)||1}function g(t){if(t!==o)throw new Error("invalid wNAF")}function m(t,e){if(e){if(e.ORDER!==t)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,i.validateField)(e),e}return(0,i.Field)(t)}},2468:(t,e,r)=>{"use strict";r.d(e,{E:()=>n});class n{_buildingSelector;_isEnabled=!0;_position;constructor(t){this._buildingSelector=t}enable(){this._isEnabled=!0,this._buildingSelector.enabled||this._buildingSelector.setVisibility(!0)}disable(){this._isEnabled=!1,this._buildingSelector.enabled&&this._buildingSelector.setVisibility(!1)}setPosition(t,e){this._position=t,this._buildingSelector.changePosition(this._buildingSelector.position,t,e)}get isEnabled(){return this._isEnabled}get position(){return this._position}}},2506:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rotl=function(t,e){return t<<e|t>>>32-e},e.createCipher=function(t,e){const{allowShortKeys:r,extendNonceFn:i,counterLength:o,counterRight:s,rounds:p}=(0,n.checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},e);if("function"!=typeof t)throw new Error("core must be a function");return(0,n.anumber)(o),(0,n.anumber)(p),(0,n.abool)(s),(0,n.abool)(r),(e,y,g,m,_=0)=>{(0,n.abytes)(e),(0,n.abytes)(y),(0,n.abytes)(g);const b=g.length;if(void 0===m&&(m=new Uint8Array(b)),(0,n.abytes)(m),(0,n.anumber)(_),_<0||_>=h)throw new Error("arx: counter overflow");if(m.length<b)throw new Error(`arx: output (${m.length}) is shorter than data (${b})`);const v=[];let w,A,E=e.length;if(32===E)v.push(w=(0,n.copyBytes)(e)),A=c;else{if(16!==E||!r)throw new Error(`arx: invalid 32-byte key, got length=${E}`);w=new Uint8Array(32),w.set(e),w.set(e,16),A=a,v.push(w)}u(y)||v.push(y=(0,n.copyBytes)(y));const S=(0,n.u32)(w);if(i){if(24!==y.length)throw new Error("arx: extended nonce must be 24 bytes");i(A,S,(0,n.u32)(y.subarray(0,16)),S),y=y.subarray(16)}const B=16-o;if(B!==y.length)throw new Error(`arx: nonce must be ${B} or 16 bytes`);if(12!==B){const t=new Uint8Array(12);t.set(y,s?0:12-y.length),y=t,v.push(y)}const I=(0,n.u32)(y);return function(t,e,r,i,o,s,a,c){const p=o.length,y=new Uint8Array(l),g=(0,n.u32)(y),m=u(o)&&u(s),_=m?(0,n.u32)(o):f,b=m?(0,n.u32)(s):f;for(let n=0;n<p;a++){if(t(e,r,i,g,a,c),a>=h)throw new Error("arx: counter overflow");const u=Math.min(l,p-n);if(m&&u===l){const t=n/4;if(n%4!=0)throw new Error("arx: invalid block position");for(let e,r=0;r<d;r++)e=t+r,b[e]=_[e]^g[r];n+=l;continue}for(let t,e=0;e<u;e++)t=n+e,s[t]=o[t]^y[e];n+=u}}(t,A,S,I,g,m,_,p),(0,n.clean)(...v),m}};const n=r(6527),i=t=>Uint8Array.from(t.split("").map(t=>t.charCodeAt(0))),o=i("expand 16-byte k"),s=i("expand 32-byte k"),a=(0,n.u32)(o),c=(0,n.u32)(s);function u(t){return t.byteOffset%4==0}const l=64,d=16,h=2**32-1,f=new Uint32Array},2509:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5547);const i=function(t){return(0,n.A)(this,t).has(t)}},2528:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(4171);const i=function(t,e,r){"__proto__"==e&&n.A?(0,n.A)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},2531:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(5707),i=r(6983),o=r(6031);const s=function(t,e,r){return e==e?(0,o.A)(t,e,r):(0,n.A)(t,i.A,r)}},2557:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=void 0;var n=r(6527),i=r(2158),o=function(){function t(t,e){var r=(0,i.convertPublicKeyFormat)(t,!0,e),n=(0,i.convertPublicKeyFormat)(t,!1,e);this.data=r,this.dataUncompressed=r.length!==n.length?n:null}return t.fromHex=function(e,r){return new t((0,i.hexToPublicKey)(e,r),r)},Object.defineProperty(t.prototype,"_uncompressed",{get:function(){return null!==this.dataUncompressed?this.dataUncompressed:this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uncompressed",{get:function(){return Buffer.from(this._uncompressed)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"compressed",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),t.prototype.toBytes=function(t){return void 0===t&&(t=!0),t?this.data:this._uncompressed},t.prototype.toHex=function(t){return void 0===t&&(t=!0),(0,n.bytesToHex)(this.toBytes(t))},t.prototype.decapsulate=function(t,e){void 0===e&&(e=!1);var r=this.toBytes(e),n=t.multiply(this,e);return(0,i.getSharedKey)(r,n)},t.prototype.equals=function(t){return(0,n.equalBytes)(this.data,t.data)},t}();e.PublicKey=o},2559:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(1882);const i=function(t,e,r){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(void 0===c?a==a&&!(0,n.A)(a):r(a,c)))var c=a,u=s}return u}},2569:(t,e,r)=>{"use strict";r.r(e),r.d(e,{hasBrowserEnv:()=>n,hasStandardBrowserEnv:()=>o,hasStandardBrowserWebWorkerEnv:()=>s,navigator:()=>i,origin:()=>a});const n="undefined"!=typeof window&&"undefined"!=typeof document,i="object"==typeof navigator&&navigator||void 0,o=n&&(!i||["ReactNative","NativeScript","NS"].indexOf(i.product)<0),s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,a=n&&window.location.href||"http://localhost"},2634:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}},2658:(t,e,r)=>{"use strict";r.d(e,{S:()=>i,d:()=>o});let n=[];const i={[Symbol.for("mapxus/callers-register")]:t=>{n=t}};function o(){return n}},2723:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(8458),i=r(4062),o=r(7275);const s=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,s=new AbortController;const a=function(t){if(!r){r=!0,u();const e=t instanceof Error?t:this.reason;s.abort(e instanceof i.A?e:new n.A(e instanceof Error?e.message:e))}};let c=e&&setTimeout(()=>{c=null,a(new i.A(`timeout ${e} of ms exceeded`,i.A.ETIMEDOUT))},e);const u=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(a):t.removeEventListener("abort",a)}),t=null)};t.forEach(t=>t.addEventListener("abort",a));const{signal:l}=s;return l.unsubscribe=()=>o.A.asap(u),l}}},2732:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(702),i=r(1917);const o=(0,n.A)(i.A,"DataView")},2789:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return function(e){return t(e)}}},2801:(t,e,r)=>{"use strict";r.d(e,{w:()=>c});var n=r(2068),i=r(9573),o=r(9588),s=r(6034);const a=["opening_hours","description","phone","website","email","appURL","icon"];class c{_api="/api/v5/venues";_request=n.K.getInstance();constructor(){}searchByIds(t){const e=(0,i.VS)(t);if(!e)throw new Error("Please input venue id at least one.");const r=`${this._api}/${e}`;return this._changedRes(r)}searchByDistance(t){const{center:e,distance:r,keywords:n="",offset:s=o.e$,page:a=o.KL}=t;if(!(0,i.ES)(e))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,i.F5)(r)||r>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000.");const c=new URLSearchParams;c.set("center",e.join(",")),c.set("distance",String(r)),c.set("offset",String(s)),c.set("page",String(a)),(0,i.BW)(n)&&c.set("keywords",n);const u=`${this._api}?${c.toString()}`;return this._changedRes(u)}searchByBounds(t){const{keywords:e,bounds:r,offset:n=o.e$,page:s=o.KL}=t;if(!(0,i.dD)(r))throw new Error("'bounds' must be an array of two arrays, each containing two numbers.");const a=new URLSearchParams;a.set("bbox",r.flat().join()),a.set("offset",String(n)),a.set("page",String(s)),(0,i.BW)(e)&&a.set("keywords",e);const c=`${this._api}?${a.toString()}`;return this._changedRes(c)}searchByGlobal(t){const{keywords:e,offset:r=o.e$,page:n=o.KL}=t,s=new URLSearchParams;s.set("offset",String(r)),s.set("page",String(n)),(0,i.BW)(e)&&s.set("keywords",e);const a=`${this._api}?${s.toString()}`;return this._changedRes(a)}searchBySharedFloorId(t){if(!(0,i.BW)(t))throw new Error("Please input correct sharedFloorId.");const e=`${this._api}/shared_floors/${t}`;return this._changedRes(e)}search(t){const e=new URLSearchParams;return Object.entries(t).forEach(([t,r])=>{"bounds"===t?e.set("bbox",r.flat().join()):"center"===t?e.set("center",r.join()):e.set(t,String(r))}),this._changedRes(`${this._api}?${e.toString()}`)}async _changedRes(t){return this._request.get(t).then(t=>{if(t.data?.result?.venues){const e=t.data.result.venues.map(t=>(0,s.A)(t,(t,e)=>a.includes(e)));return{...t,data:{...t.data,result:{...t.data.result,venues:e}}}}return t})}}},2851:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(2528),i=r(6984),o=Object.prototype.hasOwnProperty;const s=function(t,e,r){var s=t[e];o.call(t,e)&&(0,i.A)(s,r)&&(void 0!==r||e in t)||(0,n.A)(t,e,r)}},2854:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.montgomery=function(t){const e=(f=t,(0,n._validateObject)(f,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...f})),{P:r,type:c,adjustScalarBytes:u,powPminus2:l,randomBytes:d}=e,h="x25519"===c;var f;if(!h&&"x448"!==c)throw new Error("invalid type");const p=d||n.randomBytes,y=h?255:448,g=h?32:56,m=h?BigInt(9):BigInt(5),_=h?BigInt(121665):BigInt(39081),b=h?a**BigInt(254):a**BigInt(447),v=h?BigInt(8)*a**BigInt(251)-s:BigInt(4)*a**BigInt(445)-s,w=b+v+s,A=t=>(0,i.mod)(t,r),E=S(m);function S(t){return(0,n.numberToBytesLE)(A(t),g)}function B(t,e){const i=function(t,e){(0,n.aInRange)("u",t,o,r),(0,n.aInRange)("scalar",e,b,w);const i=e,a=t;let c=s,u=o,d=t,h=s,f=o;for(let t=BigInt(y-1);t>=o;t--){const e=i>>t&s;f^=e,({x_2:c,x_3:d}=x(f,c,d)),({x_2:u,x_3:h}=x(f,u,h)),f=e;const r=c+u,n=A(r*r),o=c-u,l=A(o*o),p=n-l,y=d+h,g=A((d-h)*r),m=A(y*o),b=g+m,v=g-m;d=A(b*b),h=A(a*A(v*v)),c=A(n*l),u=A(p*(n+A(_*p)))}({x_2:c,x_3:d}=x(f,c,d)),({x_2:u,x_3:h}=x(f,u,h));const p=l(u);return A(c*p)}(function(t){const e=(0,n.ensureBytes)("u coordinate",t,g);return h&&(e[31]&=127),A((0,n.bytesToNumberLE)(e))}(e),function(t){return(0,n.bytesToNumberLE)(u((0,n.ensureBytes)("scalar",t,g)))}(t));if(i===o)throw new Error("invalid private or public key received");return S(i)}function I(t){return B(t,E)}function x(t,e,r){const n=A(t*(e-r));return{x_2:e=A(e-n),x_3:r=A(r+n)}}return{scalarMult:B,scalarMultBase:I,getSharedSecret:(t,e)=>B(t,e),getPublicKey:t=>I(t),utils:{randomPrivateKey:()=>p(g)},GuBytes:E.slice()}};const n=r(8627),i=r(4967),o=BigInt(0),s=BigInt(1),a=BigInt(2)},2944:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(674);const i=function(){this.__data__=n.A?(0,n.A)(null):{},this.size=0}},3061:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return this.__data__.get(t)}},3098:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return null!=t&&"object"==typeof t}},3119:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=null},3149:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3153:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){return[]}},3161:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(1917).A["__core-js_shared__"]},3198:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9396),i=r(7422);const o=function(t){for(var e=(0,i.A)(t),r=e.length;r--;){var o=e[r],s=t[o];e[r]=[o,s,(0,n.A)(s)]}return e}},3207:(t,e,r)=>{"use strict";r.d(e,{t:()=>c});var n=r(6568),i=r(8330),o=r(9588),s=r(7007),a=r(3574);class c extends s.EventEmitter{static instance;static platform={sdkVersion:i.rE,identifier:""};_appIds=new Map([[a.en.Access,{}],[a.en.Map,{}]]);_tokenStorage={};_appIdsHistory=[];static getInstance(){return c.instance||(c.instance=new c),c.instance}static setPlatform(t){c.platform=t}updateToken(t){const{appId:e,secret:r,token:n,from:i}=t;this._tokenStorage[e]=n,this._appIds.get(i)[e]=r,this._appIdsHistory.push(e)}deleteToken(t,e){delete this._tokenStorage[t],e&&(delete this._appIds.get(e)[t],this.emit("permission-disconnected",{appId:t,from:e}))}getVersion(){return c.platform.sdkVersion}getToken(t){return this._tokenStorage[t]}async getIdentifier(){if(!c.platform.identifier){const t=await n.Ay.load(),e=await t.get();c.platform.identifier=e.visitorId}return c.platform.identifier}getAppId(t){const e=t?Object.keys(this._appIds.get(t)):[...Object.keys(this._appIds.get(a.en.Access)),...Object.keys(this._appIds.get(a.en.Map))];return this._appIdsHistory.reverse().find(t=>e.includes(t))}async fetchToken(t,e,r=0){try{const r={appId:t,secret:e,..."bundleId"in c.platform?{bundleId:c.platform.bundleId}:"sha1"in c.platform?{sha1:c.platform.sha1,packageName:c.platform.packageName}:{origin:window.location.hostname||"restriction.test.example.com",keyPlatform:"WEB"}},n={"Content-Type":"application/json",sdkVersion:c.platform.sdkVersion,identifier:c.platform.identifier??await this.getIdentifier()},i=await fetch(o.R0,{method:"POST",body:JSON.stringify(r),headers:n});return(await i.json()).result.idToken}catch(n){if(r<3){const n=500*Math.pow(2,r);return console.warn(`Retrying to fetch token in ${n} ms...`,++r),await new Promise(t=>setTimeout(t,n)),this.fetchToken(t,e,r)}throw n}}}},3236:(t,e,r)=>{"use strict";function n(t){const{buildingId:e,labelCenter:{lat:r,lon:n},floors:i,name:o,venueId:s,defaultFloor:a}=t,c=Object.keys(o).map(t=>"default"===t?"name":`name:${t}`),{codes:u,ids:l,ordinals:d}=i.reduce((t,e)=>{const{id:r,code:n,ordinal:i}=e;return{codes:t.codes?`${t.codes},${n}`:n,ids:t.ids?`${t.ids},${r}`:r,ordinals:`${t.ordinals}`?`${t.ordinals},${i}`:`${i}`}},{codes:"",ids:"",ordinals:""});return{layer:{id:"mapxus-building-line"},properties:{building:"yes",id:e,label_center:`${n},${r}`,level_ids:l,level_names:u,ordinals:d,"ref:venue":s,...c,...a?{default_displayed_floor:a}:{}},source:"indoor-planet",sourceLayer:"mapxus_building"}}function i(t){const{address:e,buildings:r,id:n,name:i,type:o,labelCenter:{lon:s,lat:a},defaultBuilding:c,sharedFloors:u}=t,l=Object.entries(e).reduce((t,[e,r])=>Object.assign(t,"default"===e?{"addr:street":r.street,"addr:housenumber":r.housenumber}:{[`addr:street:${e}`]:r.street}),{}),d=Object.keys(i).map(t=>"default"===t?"name":`name:${t}`),h=c?r.find(t=>t.id===c)?.defaultFloor:null,f=c?{default_displayed_building:c,...h?{default_displayed_ordinal:h}:{}}:{},p=u?.length?{shared_level_ids:u.map(({id:t})=>t).join(","),shared_level_ordinals:u.map(({ordinal:t})=>t).join(",")}:{};return{layer:{id:"mapxus-venue-fill"},properties:{...l,...d,id:n,venue:o,label_center:`${s},${a}`,building_ids:r.map(({id:t})=>t).join(),...f,...p},source:"indoor-planet",sourceLayer:"mapxus_venue"}}r.d(e,{E:()=>i,r:()=>n})},3244:(t,e,r)=>{"use strict";r.d(e,{A:()=>y});var n=r(3265),i=r(8967),o=r(402),s=r(7265),a=r(5861),c=r(2049),u=r(4616),l=r(8719),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;const y=function(t,e,r,y,g,m){var _=(0,c.A)(t),b=(0,c.A)(e),v=_?h:(0,a.A)(t),w=b?h:(0,a.A)(e),A=(v=v==d?f:v)==f,E=(w=w==d?f:w)==f,S=v==w;if(S&&(0,u.A)(t)){if(!(0,u.A)(e))return!1;_=!0,A=!1}if(S&&!A)return m||(m=new n.A),_||(0,l.A)(t)?(0,i.A)(t,e,r,y,g,m):(0,o.A)(t,e,v,r,y,g,m);if(!(1&r)){var B=A&&p.call(t,"__wrapped__"),I=E&&p.call(e,"__wrapped__");if(B||I){var x=B?t.value():t,L=I?e.value():e;return m||(m=new n.A),g(x,L,r,y,m)}}return!!S&&(m||(m=new n.A),(0,s.A)(t,e,r,y,g,m))}},3265:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(7919),i=r(1532),o=r(42),s=r(3061),a=r(4105),c=r(7681);function u(t){var e=this.__data__=new n.A(t);this.size=e.size}u.prototype.clear=i.A,u.prototype.delete=o.A,u.prototype.get=s.A,u.prototype.has=a.A,u.prototype.set=c.A;const l=u},3325:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});const n=r(7275).A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),i=t=>{const e={};let r,i,o;return t&&t.split("\n").forEach(function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),i=t.substring(o+1).trim(),!r||e[r]&&n[r]||("set-cookie"===r?e[r]?e[r].push(i):e[r]=[i]:e[r]=e[r]?e[r]+", "+i:i)}),e}},3390:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(9888),i=r(4062);const o={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{o[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const s={};o.transitional=function(t,e,r){function o(t,e){return"[Axios v"+n.x+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,n,a)=>{if(!1===t)throw new i.A(o(n," has been removed"+(e?" in "+e:"")),i.A.ERR_DEPRECATED);return e&&!s[n]&&(s[n]=!0,console.warn(o(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,a)}},o.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};const a={assertOptions:function(t,e,r){if("object"!=typeof t)throw new i.A("options must be an object",i.A.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const s=n[o],a=e[s];if(a){const e=t[s],r=void 0===e||a(e,s,t);if(!0!==r)throw new i.A("option "+s+" must be "+r,i.A.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new i.A("Unknown option "+s,i.A.ERR_BAD_OPTION)}},validators:o}},3442:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n=r(5629),i=r(1682),o=r(5056),s=r(1965),a=r(1472),c=r(3549);class u{_container;_indoor;_maplibre;_position="top-right";_buildingId;_floorNames;_ordinals;_ordinal;_style;_$innerFloors;_$activeFloor;_centerSelectorIdx;_lastNormalScrollableIdx;_$arrowBtnUp;_$arrowBtnDown;_maxScrollTop;_$selectorExpanded;_$selectorFolded;_componentDidMount=!1;_visible=!1;_isEnabled;_dragPan;_language;_debounceScroll;_clearScrollEventListener;constructor(t,e){const{style:r,enabled:n=!0,language:i}=e;this._indoor=t,this._language=i,this._style=r?Object.assign({},o.kC,r):o.kC,this._isEnabled=n,this._addIndoorEventListeners()}onAdd(t){return this._maplibre=t,this._addMapMoveEventListener(),this._container=(0,i.r)("div","maplibregl-ctrl mapxus-ctrl-floors hidden"),this._container}onRemove(){this._debounceScroll&&this._debounceScroll.cancel(),this._clearScrollEventListener&&this._clearScrollEventListener(),(0,i.Z)(this._container)}get position(){return this._position}get enabled(){return this._isEnabled}setEnabled(t){this._isEnabled=t,t&&!this._visible&&this._setVisibility(!0),!t&&this._visible&&this._setVisibility(!1)}getDefaultPosition(){return"top-right"}async switchByOrdinal(t,e){this._ordinal=t,this._dragPan=e??!0,await this._indoor.switchFloorByOrdinal(t),this._updateSelectorStatus(t),this._scrollCenterActiveFloor()}changePosition(t,e,r){const n=document.querySelector(`.maplibregl-ctrl-${t}`),i=n.querySelector(".mapxus-ctrl-floors");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);i&&(n.removeChild(i),Number.isFinite(r)?t.insertBefore(i,t.children[r]):t.append(i),this._show(),this._scrollCenterActiveFloor())}else Number.isFinite(r)&&n.children[r]!==i&&(n.removeChild(i),n.insertBefore(i,n.children[r]),this._show(),this._scrollCenterActiveFloor())}setStyle(t){this._style=Object.assign({},this._style,t),this._componentDidMount&&(this._clearFloors(),this._calcSelectorLayout(),this._render(),this._scrollCenterActiveFloor())}_setVisibility(t){this._componentDidMount?t?(this._show(),this._scrollCenterActiveFloor()):this._hide():(this._visible=t,this._indoor.building&&t&&(this._render(),this._show(),this._scrollCenterActiveFloor()))}_addIndoorEventListeners(){this._indoor.on(n.Ms,t=>{if(this._updatePrepared(),!t)return;const{ordinal:e,dragPan:r}=t;this._dragPan=r,"building"in t?this._renderBuildingFloors(t.building,e):this._renderSharedLevelFloor(t)})}_updatePrepared(){this._clearState(),this._visible&&this._hide(),this._componentDidMount&&this._clearFloors()}_renderBuildingFloors(t,e){const{level_names:r,ordinals:n,id:i}=t.properties;this._buildingId=i,this._floorNames=r.split(",").reverse(),this._ordinals=n.split(",").reverse(),this._ordinal=e,this._calcSelectorLayout(),this._render();const o=this._indoor.getFeaturesById(i,{filter:t=>"mapxus-building-line"===t.layer.id})[0];this._checkIfShowFloorSelector(o)}_renderSharedLevelFloor(t){const{name:e,ordinal:r,id:n}=t;this._floorNames=[e[this._language]||e.default],this._ordinals=[r],this._ordinal=r,this._calcSelectorLayout(),this._render();const i=this._indoor.getFeaturesById(n,{layerIds:[s.TU]})[0];this._checkIfShowFloorSelector(i)}_checkIfShowFloorSelector(t){this.enabled&&(!1!==this._dragPan||!1===this._dragPan&&t)&&(this._show(),this._scrollCenterActiveFloor())}_addMapMoveEventListener(){this._maplibre.on("moveend",()=>{if(this.enabled&&!1===this._dragPan&&this._buildingId){this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0]?this._componentDidMount?this._visible||(this._show(),this._scrollCenterActiveFloor()):(this._render(),this._show(),this._scrollCenterActiveFloor()):this._componentDidMount&&this._visible&&this._hide()}})}_clearState(){this._buildingId=null,this._floorNames=[],this._ordinals=[],this._ordinal=null}_calcSelectorLayout(){const{itemCount:t,itemSize:e}=this._style;this._centerSelectorIdx=Math.ceil(t/2)-1,this._maxScrollTop=(this._floorNames.length-t)*e,this._lastNormalScrollableIdx=this._floorNames.length-(t-this._centerSelectorIdx-1)-1}_render(){this._createFloors(),this._componentDidMount=!0}_hide(){this._container.classList.add("hidden"),this._visible=!1}_show(){this._container.classList.remove("hidden"),this._visible=!0}_createFloors(){this._$selectorFolded=this._$foldedSelector(this._container,()=>{this._expandSelector(!0),this._scrollCenterActiveFloor()}),this._$selectorExpanded=this._$expandedSelector(this._container,()=>this._expandSelector(!1))}_$expandedSelector(t,e){const{itemSize:r,itemCount:n,defaultFolded:o,backgroundColor:s}=this._style,a=(0,i.r)("div","mapxus-ctrl-floors-expanded "+(o?"hidden":""),t);if(this._floorNames.length>1){(0,i.r)("div","mapxus-ctrl-floors-close",a).onclick=e}const u=(0,i.r)("div","mapxus-ctrl-floors-wrapper",a);return u.style.backgroundColor=s,this._floorNames.length>n&&(this._$arrowBtnUp=this._$createScrollButton(u,"up"),this._$arrowBtnUp.onclick=()=>this._handleScroll("up")),this._$innerFloors=(0,i.r)("div","mapxus-ctrl-floors-inner",u),Object.assign(this._$innerFloors.style,{maxHeight:r*n+"px",width:`${r}px`}),this._$createFloors(this._$innerFloors),this._floorNames.length>n&&(this._$arrowBtnDown=this._$createScrollButton(u,"down"),this._$arrowBtnDown.onclick=()=>this._handleScroll("down"),this._$innerFloors.addEventListener("scroll",this._debounceScroll=(0,c.A)(t=>{t.stopPropagation(),this._resetArrowBtnStatus(this._$innerFloors.scrollTop)},100)),this._clearScrollEventListener=()=>this._$innerFloors.removeEventListener("scroll",this._debounceScroll)),a}_$foldedSelector(t,e){const{itemSize:r,activeFontColor:n,activeBackgroundColor:o,defaultFolded:s}=this._style,a=(0,i.r)("div","mapxus-ctrl-floors-folded mapxus-ctrl-floors-floor "+(s?"":"hidden"),t);return a.onclick=e,Object.assign(a.style,{width:`${r}px`,height:`${r}px`,lineHeight:`${r}px`,color:n,backgroundColor:o}),a}_clearFloors(){this._container.replaceChildren(),this._componentDidMount=!1}_$createScrollButton(t,e){return(0,i.r)("div",`mapxus-ctrl-floors-arrow mapxus-ctrl-floors-floor ${e}`,t)}_$createFloors(t){const{fontColor:e,itemSize:r}=this._style;let n;this._floorNames.forEach((o,s)=>{n=(0,i.r)("div","mapxus-ctrl-floors-floor",t),n.dataset.floor=o,n.dataset.ordinal=this._ordinals[s],n.innerText=o,Object.assign(n.style,{color:e,height:`${r}px`,lineHeight:`${r}px`}),n.dataset.ordinal===this._ordinal&&(this._$activeFloor=n,this._resetActiveFloor(!0),this._$selectorFolded.innerText=o),n.onclick=async t=>{this._indoor.setDragPan("restrict"),await this.switchByOrdinal(t.target.dataset.ordinal)}})}_updateSelectorStatus(t){const e=this._floorNames[this._ordinals.indexOf(t)];this._$activeFloor&&this._resetActiveFloor(!1);for(const e of this._$innerFloors.children){const r=e;r.dataset.ordinal===t&&(this._$activeFloor=r,this._resetActiveFloor(!0))}this._$selectorFolded.innerText=e}_resetArrowBtnStatus(t){0===t?this._$arrowBtnUp?.classList?.add("hidden"):this._$arrowBtnUp?.classList?.remove("hidden"),t===this._maxScrollTop?this._$arrowBtnDown?.classList?.add("hidden"):this._$arrowBtnDown?.classList?.remove("hidden")}_resetActiveFloor(t){const{activeBackgroundColor:e,backgroundColor:r,activeFontColor:n,fontColor:i}=this._style;Object.assign(this._$activeFloor.style,{color:t?n:i,backgroundColor:t?e:r,fontWeight:t?"bold":"normal",cursor:t?"auto":"pointer"}),this._$activeFloor.disabled=t}_scrollCenterActiveFloor(){if(this._ordinal){const t=this._ordinals.indexOf(this._ordinal);t>-1&&(this._$innerFloors.scrollTop=this._getScrollTop(t),this._$innerFloors.scrollTop||this._resetArrowBtnStatus(0))}}_getScrollTop(t){return(0,a.A)(this._centerSelectorIdx,this._lastNormalScrollableIdx+1)?(t-this._centerSelectorIdx)*this._style.itemSize:t>this._lastNormalScrollableIdx?this._maxScrollTop:0}_handleScroll(t){const e=this._$innerFloors.scrollTop,{itemSize:r}=this._style;if("up"===t){const t=e-2*r;this._$innerFloors.scrollTop=t<0?0:t}else if("down"===t){const t=e+2*r;this._$innerFloors.scrollTop=t>this._maxScrollTop?this._maxScrollTop:t}}_expandSelector(t){t?(this._$selectorExpanded.classList.remove("hidden"),this._$selectorFolded.classList.add("hidden")):(this._$selectorExpanded.classList.add("hidden"),this._$selectorFolded.classList.remove("hidden"))}}},3454:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=Math.max,i=Math.min;const o=function(t,e,r){return t>=i(e,r)&&t<n(e,r)}},3503:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHex=e.remove0x=void 0;var n=r(6527);e.remove0x=function(t){return t.startsWith("0x")||t.startsWith("0X")?t.slice(2):t};e.decodeHex=function(t){return(0,n.hexToBytes)((0,e.remove0x)(t))}},3511:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(6912),i=r(5647),o=r(4792),s=r(3153);const a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,n.A)(e,(0,o.A)(t)),t=(0,i.A)(t);return e}:s.A},3549:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(3149),i=r(1052),o=r(9313),s=Math.max,a=Math.min;const c=function(t,e,r){var c,u,l,d,h,f,p=0,y=!1,g=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function _(e){var r=c,n=u;return c=u=void 0,p=e,d=t.apply(n,r)}function b(t){var r=t-f;return void 0===f||r>=e||r<0||g&&t-p>=l}function v(){var t=(0,i.A)();if(b(t))return w(t);h=setTimeout(v,function(t){var r=e-(t-f);return g?a(r,l-(t-p)):r}(t))}function w(t){return h=void 0,m&&c?_(t):(c=u=void 0,d)}function A(){var t=(0,i.A)(),r=b(t);if(c=arguments,u=this,f=t,r){if(void 0===h)return function(t){return p=t,h=setTimeout(v,e),y?_(t):d}(f);if(g)return clearTimeout(h),h=setTimeout(v,e),_(f)}return void 0===h&&(h=setTimeout(v,e)),d}return e=(0,o.A)(e)||0,(0,n.A)(r)&&(y=!!r.leading,l=(g="maxWait"in r)?s((0,o.A)(r.maxWait)||0,e):l,m="trailing"in r?!!r.trailing:m),A.cancel=function(){void 0!==h&&clearTimeout(h),p=0,c=f=u=h=void 0},A.flush=function(){return void 0===h?d:w((0,i.A)())},A}},3562:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getHash=function(t){return{hash:t}},e.createCurve=function(t,e){const r=e=>(0,n.weierstrass)({...t,hash:e});return{...r(e),create:r}};const n=r(1705)},3574:(t,e,r)=>{"use strict";r.d(e,{$O:()=>a.$,Kp:()=>s.Kp,LJ:()=>s.LJ,SV:()=>i.S,_P:()=>s._P,en:()=>o.e,nH:()=>s.nH,ys:()=>n.y});var n=r(6612),i=r(9408),o=r(8884),s=r(6358),a=r(5405)},3626:(t,e,r)=>{"use strict";r.d(e,{V:()=>i});var n=r(1682);class i{_container;_isEnabled;constructor(t){this._isEnabled=t?.enabled??!0}onAdd(t){if(this._container=(0,n.r)("div","maplibregl-ctrl mapxus-ctrl-logo",t.getContainer()),this._isEnabled){const t=(0,n.r)("a","mapxus-logo",this._container);t.target="_blank",t.href="https://www.khi.co.jp/groupvision2030/mapxus.html",t.setAttribute("aria-label","Mapxus logo"),t.setAttribute("rel","noopener"),this._container.appendChild(t)}return this._container}onRemove(){(0,n.Z)(this._container)}getDefaultPosition(){return"bottom-left"}}},3631:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(702),i=r(1917);const o=(0,n.A)(i.A,"WeakMap")},3724:(t,e,r)=>{"use strict";r.d(e,{H:()=>c});var n=r(9588),i=r(2068),o=r(9573),s=r(6034);const a=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","description"];class c{_api="/api/v5/buildings";_request=i.K.getInstance();constructor(){}searchByIds(t){const e=(0,o.VS)(t);if(!e)throw new Error("Please input building id at least one.");const r=`${this._api}/${e}`;return this._changedRes(r)}searchByDistance(t){const{center:e,distance:r,keywords:i="",offset:s=n.e$,page:a=n.KL}=t;if(!(0,o.ES)(e))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(r)||r>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000.");const c=new URLSearchParams;c.set("center",e.join(",")),c.set("distance",String(r)),c.set("offset",String(s)),c.set("page",String(a)),(0,o.BW)(i)&&c.set("keywords",i);const u=`${this._api}?${c.toString()}`;return this._changedRes(u)}searchByBounds(t){const{bounds:e,offset:r=n.e$,page:i=n.KL,keywords:s}=t;if(!(0,o.dD)(e))throw new Error("'bounds' must be an array of two arrays, each containing two numbers.");const a=new URLSearchParams;a.set("bbox",e.flat().join()),a.set("offset",String(r)),a.set("page",String(i)),(0,o.BW)(s)&&a.set("keywords",s);const c=`${this._api}?${a.toString()}`;return this._changedRes(c)}searchByGlobal(t){const{keywords:e,offset:r=n.e$,page:i=n.KL}=t,s=new URLSearchParams;s.set("searchGlobal",String(!0)),s.set("offset",String(r)),s.set("page",String(i)),(0,o.BW)(e)&&s.set("keywords",e);const a=`${this._api}?${s.toString()}`;return this._changedRes(a)}searchByFloorId(t){if(!(0,o.BW)(t))throw new Error("'floorId' cannot be empty.");return this._changedRes(`${this._api}/floors/${t}`)}search(t){const e=new URLSearchParams;return Object.entries(t).forEach(([t,r])=>{"bounds"===t?e.set("bbox",r.flat().join()):"center"===t?e.set("center",r.join()):e.set(t,String(r))}),this._changedRes(`${this._api}?${e.toString()}`)}async _changedRes(t){return this._request.get(t).then(t=>{if(t.data?.result?.buildings){const e=t.data.result.buildings.map(t=>(0,s.A)(t,(t,e)=>a.includes(e)));return{...t,data:{...t.data,result:{...t.data.result,buildings:e}}}}return t})}}},3736:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},3820:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(6847);const i={...r(2569),...n.A}},3831:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(6912),i=r(2049);const o=function(t,e,r){var o=e(t);return(0,i.A)(t)?o:(0,n.A)(o,r(t))}},3853:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(4062);function i(t,e,r){const i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(new n.A("Request failed with status code "+r.status,[n.A.ERR_BAD_REQUEST,n.A.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}},3873:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=n[s];i||(i=c),r[o]=a,n[o]=c;let l=s,d=0;for(;l!==o;)d+=r[l++],l%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-i<e)return;const h=u&&c-u;return h?Math.round(1e3*d/h):void 0}}},3913:(t,e,r)=>{"use strict";r.d(e,{d:()=>i});var n=r(1682);class i{_container;_$icon;_removeClickEventListener;onAdd(t){return this._container=(0,n.r)("div","maplibregl-ctrl mapxus-ctrl-collapsed-copyright",t.getContainer()),this._container.innerHTML='\n <div class="mapxus-collapsed-copyright-content">\n <div class="mapxus-collapsed-copyright-menu hidden">\n <div class="mapxus-collapsed-copyright-logo" onclick="window.open(\'https://www.khi.co.jp/groupvision2030/mapxus.html\')"></div>\n <div class="mapxus-collapsed-horizontal-divider"></div>\n <div class="mapxus-collapsed-copyright-text" onclick="window.open(\'https://www.openstreetmap.org/copyright/\')"></div>\n </div>\n <div class="mapxus-collapsed-copyright-btn"></div>\n </div>\n ',this._bindEvents(),this._container}onRemove(){this._removeClickEventListener(),(0,n.Z)(this._container)}getDefaultPosition(){return"bottom-right"}_bindEvents(){const t=this._container.querySelector(".mapxus-collapsed-copyright-menu");this._$icon=this._container.querySelector(".mapxus-collapsed-copyright-btn");let e=!1;function r(){e=!e,e?t.classList.remove("hidden"):t.classList.add("hidden")}this._$icon.addEventListener("click",r),this._removeClickEventListener=()=>this._$icon.removeEventListener("click",r)}}},3938:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=(0,r(367).A)(Object.keys,Object)},3957:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(674);const i=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n.A&&void 0===e?"__lodash_hash_undefined__":e,this}},3967:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7275),i=r(5267);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function s(t,e,r){if(!e)return t;const s=r&&r.encode||o;n.A.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let c;if(c=a?a(e,r):n.A.isURLSearchParams(e)?e.toString():new i.A(e,r).toString(s),c){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+c}return t}},3973:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(3831),i=r(3511),o=r(1865);const s=function(t){return(0,n.A)(t,o.A,i.A)}},3988:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(1917).A.Uint8Array},4062:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(7275);function i(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}n.A.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n.A.toJSONObject(this.config),code:this.code,status:this.status}}});const o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{s[t]={value:t}}),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(t,e,r,s,a,c)=>{const u=Object.create(o);return n.A.toFlatObject(t,u,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),i.call(u,t.message,e,r,s,a),u.cause=t,u.name=t.name,c&&Object.assign(u,c),u};const a=i},4099:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return t.has(e)}},4105:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return this.__data__.has(t)}},4116:(t,e,r)=>{"use strict";r.d(e,{p:()=>o});var n=r(853),i=r(5664);class o{_maplibreMap;_layerId;_sourceId;_imageName="poi-01";_imageSize=.75;_iconAnchor="bottom";constructor(t){this._maplibreMap=t;const e=(0,i.A)();this._layerId=`MXMap_preset_marker_layer_${e}`,this._sourceId=`MXMap_preset_marker_source_${e}`}async setIcon(t){t&&await(0,n.K)(this._maplibreMap,t),this._imageName=t}setIconSize(t){this._imageSize=t}setIconAnchor(t){this._iconAnchor=t}get layerId(){return this._layerId}get sourceId(){return this._sourceId}create(t){if(t.length){const e=t.map(t=>this._createIconFeature(t));this._addIconSource(e),this._addIconLayer()}}updateData(t){const e=this._maplibreMap.getSource(this._sourceId);if(!e)return;const r=!(!t.remove||!t.remove.length),n=!(!t.add||!t.add.length),i=!(!t.update||!t.update.length);if(r||n||i){const o={};r&&(o.remove=t.remove.map(t=>String(t))),n&&(o.add=t.add.map(t=>this._createIconFeature(t))),i&&(o.update=t.update.map(t=>{const e="properties"in t,r=this._createIconFeature(t),{id:n,geometry:i,properties:o}=r;return{id:n,newGeometry:i,removeAllProperties:e,...o?{addOrUpdateProperties:o.map((t,e)=>({key:e,value:t}))}:{}}})),e.updateData(o)}}remove(){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.removeLayer(this._layerId),this._maplibreMap.getSource(this._sourceId)&&this._maplibreMap.removeSource(this._sourceId)}on(t,e){const{unsubscribe:r}=this._maplibreMap.on(t,this._layerId,t=>this._handleEventListener(t,e));return{off:r}}setFilter(t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,t)}setFilterByVenue(t,e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","venueId"],t??""],["==",["get","ordinal"],e??""]],["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]]])}setFilterByBuilding(t,e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","buildingId"],t??""],["==",["get","ordinal"],e??""]],["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]]])}setOpacity(t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",t)}setOpacityByVenue(t,e,r){if(this._maplibreMap.getLayer(this._layerId)){const n=["case",["all",["==",["get","venueId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]],1,r??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",n)}}setOpacityByBuilding(t,e,r){if(this._maplibreMap.getLayer(this._layerId)){const n=["case",["all",["==",["get","buildingId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]],1,r??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",n)}}_createIconFeature(t){const{lngLat:e,properties:r}=t;return{id:"featureId"in t&&Number.isFinite(t.featureId)?String(t.featureId):void 0,type:"Feature",geometry:{type:"Point",coordinates:e},properties:r||null}}_addIconSource(t){const e={type:"geojson",data:{type:"FeatureCollection",features:t}};this._maplibreMap.addSource(this._sourceId,e)}_addIconLayer(){this._maplibreMap.addLayer({id:this._layerId,type:"symbol",source:this._sourceId,layout:{"icon-image":this._imageName,"icon-size":this._imageSize,"icon-anchor":this._iconAnchor,"icon-allow-overlap":!0,"icon-ignore-placement":!0}})}_handleEventListener(t,e){const{point:r}=t;e(this._maplibreMap.queryRenderedFeatures(r,{layers:[this._layerId]})[0])}}},4139:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hkdf=void 0,e.extract=o,e.expand=c;const n=r(9615),i=r(9175);function o(t,e,r){return(0,i.ahash)(t),void 0===r&&(r=new Uint8Array(t.outputLen)),(0,n.hmac)(t,(0,i.toBytes)(r),(0,i.toBytes)(e))}const s=Uint8Array.from([0]),a=Uint8Array.of();function c(t,e,r,o=32){(0,i.ahash)(t),(0,i.anumber)(o);const c=t.outputLen;if(o>255*c)throw new Error("Length should be <= 255*HashLen");const u=Math.ceil(o/c);void 0===r&&(r=a);const l=new Uint8Array(u*c),d=n.hmac.create(t,e),h=d._cloneInto(),f=new Uint8Array(d.outputLen);for(let t=0;t<u;t++)s[0]=t+1,h.update(0===t?a:f).update(r).update(s).digestInto(f),l.set(f,c*t),d._cloneInto(h);return d.destroy(),h.destroy(),(0,i.clean)(f,s),l.slice(0,o)}e.hkdf=(t,e,r,n,i)=>c(t,o(t,e,r),n,i)},4171:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(702);const i=function(){try{var t=(0,n.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},4543:(t,e,r)=>{"use strict";r.d(e,{e:()=>n});class n extends Error{status;constructor(t,e){super(t);const{status:r,name:n}=e;void 0!==r&&(this.status=r),void 0!==n&&(this.name=n)}}},4545:(t,e,r)=>{"use strict";r.d(e,{FR:()=>o.F,H$:()=>i.H,v$:()=>s.v,w1:()=>n.w});var n=r(2801),i=r(3724),o=r(5568),s=r(5344)},4616:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(1917),i=r(4639),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?n.A.Buffer:void 0;const c=(a?a.isBuffer:void 0)||i.A},4639:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){return!1}},4662:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7275),i=r(7110);const o=t=>t instanceof i.A?{...t}:t;function s(t,e){e=e||{};const r={};function i(t,e,r,i){return n.A.isPlainObject(t)&&n.A.isPlainObject(e)?n.A.merge.call({caseless:i},t,e):n.A.isPlainObject(e)?n.A.merge({},e):n.A.isArray(e)?e.slice():e}function s(t,e,r,o){return n.A.isUndefined(e)?n.A.isUndefined(t)?void 0:i(void 0,t,0,o):i(t,e,0,o)}function a(t,e){if(!n.A.isUndefined(e))return i(void 0,e)}function c(t,e){return n.A.isUndefined(e)?n.A.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function u(r,n,o){return o in e?i(r,n):o in t?i(void 0,r):void 0}const l={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:u,headers:(t,e,r)=>s(o(t),o(e),0,!0)};return n.A.forEach(Object.keys(Object.assign({},t,e)),function(i){const o=l[i]||s,a=o(t[i],e[i],i);n.A.isUndefined(a)&&o!==u||(r[i]=a)}),r}},4762:(t,e,r)=>{"use strict";r.d(e,{G:()=>i});var n=r(1682);class i{_map;_maplibre;_buildingId;_features;_$container;_$listContainer;_$buildingList;_listHeight;_language;_visible;_position="top-right";_isMobileMode;_isListShown=!1;constructor(t,e){this._map=t,this._language=t.getLanguage(),this._visible=e??!0,this._detectDeviceMode()}onAdd(t){return this._maplibre=t,this._$container=(0,n.r)("div","maplibregl-ctrl maplibregl-ctrl-building-filter "+(this._visible?"":"hide"),this._maplibre.getContainer()),this._$container.appendChild(this._buildingFilterIconCreate("div")),this._$container.appendChild(this._buildingNameListCreate("div")),this._bindEvents(),this._$container}onRemove(){(0,n.Z)(this._$container)}get position(){return this._position}get enabled(){return this._visible}getDefaultPosition(){return"top-right"}setVisibility(t){this._visible=t,t?this._$showLayout():this._$hideLayout()}changePosition(t,e,r){const n=document.querySelector(`.maplibregl-ctrl-${t}`),i=n.querySelector(".maplibregl-ctrl-building-filter");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);i&&(n.removeChild(i),Number.isFinite(r)?t.insertBefore(i,t.children[r]):t.append(i),this._updateBuildingListLayout(e))}else Number.isFinite(r)&&n.children[r]!==i&&(n.removeChild(i),n.insertBefore(i,n.children[r]))}_bindEvents(){this._maplibre.on("moveend",()=>this._refresh()),this._map.onMapChangeListener(t=>{const e=t.building?.properties?.id??"";this._buildingId!==e&&(this._buildingId=e,this._refresh())}),this._map.renderComplete(()=>this._init())}_init(){this._load()}_refresh(){this._load()}_load(){this._buildingNameListClean(),this._buildingNameListUpdate()}_buildingFilterIconCreate(t){const e=(0,n.r)(t,"mapxus-building-filter-icon");return this._bindMouseOnEvents(e,!1),this._bindMobileTouchEvents(e),e}_buildingNameListCreate(t){return this._$listContainer=(0,n.r)(t,"mapxus-building-name-layout"),this._$listContainer.style.display="none",this._$listContainer.style.top="20px",this._$buildingList=(0,n.r)(t,"mapxus-building-name-list",this._$listContainer),this._bindMouseOnEvents(this._$listContainer,!0),this._$listContainer}_buildingNameListUpdate(){this._features=[];const t=this._map.getMaplibre(),e=t?t.queryRenderedFeatures({layers:["mapxus-building-line"]}):[];for(const t of e){const{properties:e}=t,{id:r,name:n}=e,i=e?.[`name:${this._language}`]??n;this._features.find(t=>t.properties.id===r)||(this._features.push(t),this._$buildingList.appendChild(this._buildingNameCreate("p",i,r,r===this._map.building?.properties?.id)))}this._setBuildingListHeight(this._features),this._updateBuildingListLayout(this._position)}_buildingNameListClean(){this._$buildingList.replaceChildren()}_setBuildingListHeight(t){const e=t.map(t=>{const e=t?.properties?.[`name:${this._language}`]??t?.properties?.name;return e?Math.ceil(8*e.length/107):0}).reduce((t,e)=>t+e,0);this._listHeight=26*e+8*t.length,this._$buildingList.style.height=this._$listContainer.style.height=`${this._listHeight>=208?208:this._listHeight}px`}_buildingNameCreate(t,e,r,i){const o=(0,n.r)(t,"mapxus-building-name"+(i?" active":""));return o.dataset.id=r,o.innerText=e,this._buildingNameClickEvent(o),o}_toggleList(t){this._isListShown=t,this._$listContainer.style.display=t?"block":"none"}_buildingNameClickEvent(t){t.onclick||(t.onclick=async t=>{const e=t.target;await this._map.selectBuildingById(e.dataset.id)})}_bindMouseOnEvents(t,e){t.onmouseenter=()=>{this._isMobileMode||this._toggleList(!0)},e&&(t.onmouseleave=()=>this._toggleList(!1))}_bindMobileTouchEvents(t){window.addEventListener("resize",()=>this._detectDeviceMode()),t.ontouchend=()=>this._toggleList(!this._isListShown)}_$showLayout(){this._$container.classList.remove("hide")}_$hideLayout(){this._$container.classList.add("hide")}_updateBuildingListLayout(t){t.indexOf("left")>-1?(this._$listContainer.style.right=null,this._$listContainer.style.left="55px"):(this._$listContainer.style.left=null,this._$listContainer.style.right="55px");const e=this._$container.offsetParent?this._$container.offsetParent.clientHeight-(this._$container.offsetTop+this._$container.clientHeight)-25:0;t.includes("bottom")&&this._listHeight-20>e?(this._$listContainer.style.top=null,this._$listContainer.style.bottom="15px"):(this._$listContainer.style.bottom=null,this._$listContainer.style.top="20px")}_detectDeviceMode(){this._isMobileMode=window.matchMedia("(pointer: coarse) and (max-width: 768px)").matches}}},4787:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(169);const i=function(t){var e=this.__data__,r=(0,n.A)(e,t);return r<0?void 0:e[r][1]}},4792:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2634),i=r(3153),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(t){return null==t?[]:(t=Object(t),(0,n.A)(s(t),function(e){return o.call(t,e)}))}:i.A},4841:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2136),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i&&n.A.process;const a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}()},4846:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9672),i=r(3098);const o=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,n.A)(t)}},4874:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(8458);class i{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t});const r=this;this.promise.then(t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null}),this.promise.then=t=>{let e;const n=new Promise(t=>{r.subscribe(t),e=t}).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t(function(t,i,o){r.reason||(r.reason=new n.A(t,i,o),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new i(function(e){t=e}),cancel:t}}}const o=i},4877:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},4928:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ephemeralKeySize=e.symmetricNonceLength=e.symmetricAlgorithm=e.isHkdfKeyCompressed=e.isEphemeralKeyCompressed=e.ellipticCurve=e.ECIES_CONFIG=void 0;var n=r(1666),i=function(){this.ellipticCurve="secp256k1",this.isEphemeralKeyCompressed=!1,this.isHkdfKeyCompressed=!1,this.symmetricAlgorithm="aes-256-gcm",this.symmetricNonceLength=16};e.ECIES_CONFIG=new i;e.ellipticCurve=function(){return e.ECIES_CONFIG.ellipticCurve};e.isEphemeralKeyCompressed=function(){return e.ECIES_CONFIG.isEphemeralKeyCompressed};e.isHkdfKeyCompressed=function(){return e.ECIES_CONFIG.isHkdfKeyCompressed};e.symmetricAlgorithm=function(){return e.ECIES_CONFIG.symmetricAlgorithm};e.symmetricNonceLength=function(){return e.ECIES_CONFIG.symmetricNonceLength};e.ephemeralKeySize=function(){var t={secp256k1:e.ECIES_CONFIG.isEphemeralKeyCompressed?n.COMPRESSED_PUBLIC_KEY_SIZE:n.UNCOMPRESSED_PUBLIC_KEY_SIZE,x25519:n.CURVE25519_PUBLIC_KEY_SIZE,ed25519:n.CURVE25519_PUBLIC_KEY_SIZE};if(e.ECIES_CONFIG.ellipticCurve in t)return t[e.ECIES_CONFIG.ellipticCurve];throw new Error("Not implemented")}},4943:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(759),i=r(3198),o=r(5997);const s=function(t){var e=(0,i.A)(t);return 1==e.length&&e[0][2]?(0,o.A)(e[0][0],e[0][1]):function(r){return r===t||(0,n.A)(r,t,e)}}},4967:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNegativeLE=void 0,e.mod=d,e.pow=function(t,e,r){return _(A(r),t,e)},e.pow2=function(t,e,r){let n=t;for(;e-- >i;)n*=n,n%=r;return n},e.invert=h,e.tonelliShanks=y,e.FpSqrt=g,e.validateField=function(t){const e=m.reduce((t,e)=>(t[e]="function",t),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"});return(0,n._validateObject)(t,e),t},e.FpPow=_,e.FpInvertBatch=b,e.FpDiv=function(t,e,r){return t.mul(e,"bigint"==typeof r?h(r,t.ORDER):t.inv(r))},e.FpLegendre=v,e.FpIsSquare=function(t,e){return 1===v(t,e)},e.nLength=w,e.Field=A,e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?r:t.neg(r)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?t.neg(r):r},e.hashToPrivateScalar=function(t,e,r=!1){const i=(t=(0,n.ensureBytes)("privateHash",t)).length,s=w(e).nByteLength+8;if(s<24||i<s||i>1024)throw new Error("hashToPrivateScalar: expected "+s+"-1024 bytes of input, got "+i);return d(r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t),e-o)+o},e.getFieldBytesLength=E,e.getMinHashLength=S,e.mapHashToField=function(t,e,r=!1){const i=t.length,s=E(e),a=S(e);if(i<16||i<a||i>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+i);const c=d(r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t),e-o)+o;return r?(0,n.numberToBytesLE)(c,s):(0,n.numberToBytesBE)(c,s)};const n=r(8627),i=BigInt(0),o=BigInt(1),s=BigInt(2),a=BigInt(3),c=BigInt(4),u=BigInt(5),l=BigInt(8);function d(t,e){const r=t%e;return r>=i?r:e+r}function h(t,e){if(t===i)throw new Error("invert: expected non-zero number");if(e<=i)throw new Error("invert: expected positive modulus, got "+e);let r=d(t,e),n=e,s=i,a=o,c=o,u=i;for(;r!==i;){const t=n/r,e=n%r,i=s-c*t,o=a-u*t;n=r,r=e,s=c,a=u,c=i,u=o}if(n!==o)throw new Error("invert: does not exist");return d(s,e)}function f(t,e){const r=(t.ORDER+o)/c,n=t.pow(e,r);if(!t.eql(t.sqr(n),e))throw new Error("Cannot find square root");return n}function p(t,e){const r=(t.ORDER-u)/l,n=t.mul(e,s),i=t.pow(n,r),o=t.mul(e,i),a=t.mul(t.mul(o,s),i),c=t.mul(o,t.sub(a,t.ONE));if(!t.eql(t.sqr(c),e))throw new Error("Cannot find square root");return c}function y(t){if(t<BigInt(3))throw new Error("sqrt is not defined for small field");let e=t-o,r=0;for(;e%s===i;)e/=s,r++;let n=s;const a=A(t);for(;1===v(a,n);)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===r)return f;let c=a.pow(n,e);const u=(e+o)/s;return function(t,n){if(t.is0(n))return n;if(1!==v(t,n))throw new Error("Cannot find square root");let i=r,s=t.mul(t.ONE,c),a=t.pow(n,e),l=t.pow(n,u);for(;!t.eql(a,t.ONE);){if(t.is0(a))return t.ZERO;let e=1,r=t.sqr(a);for(;!t.eql(r,t.ONE);)if(e++,r=t.sqr(r),e===i)throw new Error("Cannot find square root");const n=o<<BigInt(i-e-1),c=t.pow(s,n);i=e,s=t.sqr(c),a=t.mul(a,s),l=t.mul(l,c)}return l}}function g(t){return t%c===a?f:t%l===u?p:y(t)}e.isNegativeLE=(t,e)=>(d(t,e)&o)===o;const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function _(t,e,r){if(r<i)throw new Error("invalid exponent, negatives unsupported");if(r===i)return t.ONE;if(r===o)return e;let n=t.ONE,s=e;for(;r>i;)r&o&&(n=t.mul(n,s)),s=t.sqr(s),r>>=o;return n}function b(t,e,r=!1){const n=new Array(e.length).fill(r?t.ZERO:void 0),i=e.reduce((e,r,i)=>t.is0(r)?e:(n[i]=e,t.mul(e,r)),t.ONE),o=t.inv(i);return e.reduceRight((e,r,i)=>t.is0(r)?e:(n[i]=t.mul(e,n[i]),t.mul(e,r)),o),n}function v(t,e){const r=(t.ORDER-o)/s,n=t.pow(e,r),i=t.eql(n,t.ONE),a=t.eql(n,t.ZERO),c=t.eql(n,t.neg(t.ONE));if(!i&&!a&&!c)throw new Error("invalid Legendre symbol result");return i?1:a?0:-1}function w(t,e){void 0!==e&&(0,n.anumber)(e);const r=void 0!==e?e:t.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function A(t,e,r=!1,s={}){if(t<=i)throw new Error("invalid field: expected ORDER > 0, got "+t);let a,c;if("object"==typeof e&&null!=e){if(s.sqrt||r)throw new Error("cannot specify opts in two arguments");const t=e;t.BITS&&(a=t.BITS),t.sqrt&&(c=t.sqrt),"boolean"==typeof t.isLE&&(r=t.isLE)}else"number"==typeof e&&(a=e),s.sqrt&&(c=s.sqrt);const{nBitLength:u,nByteLength:l}=w(t,a);if(l>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let f;const p=Object.freeze({ORDER:t,isLE:r,BITS:u,BYTES:l,MASK:(0,n.bitMask)(u),ZERO:i,ONE:o,create:e=>d(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("invalid field element: expected bigint, got "+typeof e);return i<=e&&e<t},is0:t=>t===i,isValidNot0:t=>!p.is0(t)&&p.isValid(t),isOdd:t=>(t&o)===o,neg:e=>d(-e,t),eql:(t,e)=>t===e,sqr:e=>d(e*e,t),add:(e,r)=>d(e+r,t),sub:(e,r)=>d(e-r,t),mul:(e,r)=>d(e*r,t),pow:(t,e)=>_(p,t,e),div:(e,r)=>d(e*h(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>h(e,t),sqrt:c||(e=>(f||(f=g(t)),f(p,e))),toBytes:t=>r?(0,n.numberToBytesLE)(t,l):(0,n.numberToBytesBE)(t,l),fromBytes:t=>{if(t.length!==l)throw new Error("Field.fromBytes: expected "+l+" bytes, got "+t.length);return r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t)},invertBatch:t=>b(p,t),cmov:(t,e,r)=>r?e:t});return Object.freeze(p)}function E(t){if("bigint"!=typeof t)throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function S(t){const e=E(t);return e+Math.ceil(e/2)}},4969:(t,e,r)=>{"use strict";r.d(e,{y:()=>i});var n=r(3574);function i(t){let e=null;return!function(t){return/^en(-(US|GB|AU))?$/.test(t)}(t)?!function(t){return/^zh(-(Hans|CN))?$/.test(t)}(t)?!function(t){return/^zh-(Hant|HK|MO)$/.test(t)}(t)?!function(t){return"zh-TW"===t}(t)?!function(t){return/^ja(-JP)?$/.test(t)}(t)?!function(t){return/^ko(-KR)?$/.test(t)}(t)?!function(t){return/^(fil|tl)(-PH)?$/.test(t)}(t)?!function(t){return/^id(-ID)?$/.test(t)}(t)?!function(t){return/^pt(-(BR|PT))?$/.test(t)}(t)?!function(t){return/^th(-TH)?$/.test(t)}(t)?!function(t){return/^vi(-VN)?$/.test(t)}(t)?function(t){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(t)}(t)&&(e=n.ys.ARABIC):e=n.ys.VIETNAMESE:e=n.ys.THAI:e=n.ys.PORTUGUESE:e=n.ys.INDONESIAN:e=n.ys.FILIPINO:e=n.ys.KOREAN:e=n.ys.JAPANESE:e=n.ys.CHINESE_TRADITIONAL_TW:e=n.ys.CHINESE_TRADITIONAL:e=n.ys.CHINESE_SIMPLIFIED:e=n.ys.ENGLISH,e}},5054:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(7465),i=r(1788),o=r(2049),s=r(5353),a=r(5254),c=r(901);const u=function(t,e,r){for(var u=-1,l=(e=(0,n.A)(e,t)).length,d=!1;++u<l;){var h=(0,c.A)(e[u]);if(!(d=null!=t&&r(t,h)))break;t=t[h]}return d||++u!=l?d:!!(l=null==t?0:t.length)&&(0,a.A)(l)&&(0,s.A)(h,l)&&((0,o.A)(t)||(0,i.A)(t))}},5056:(t,e,r)=>{"use strict";r.d(e,{eG:()=>a,kC:()=>s,sy:()=>o});var n=r(4969),i=r(3574);const o={lineWidth:3,lineColor:"#A5E3FF",lineOpacity:1,lineOffset:-1.5},s={fontColor:"#8c8c8c",activeFontColor:"#fff",backgroundColor:"#fff",activeBackgroundColor:"#074769",itemSize:50,itemCount:4,defaultFolded:!1},a=(0,n.y)(window.navigator.language)??i.ys.ENGLISH},5088:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(5373),i=r(7919),o=r(8335);const s=function(){this.size=0,this.__data__={hash:new n.A,map:new(o.A||i.A),string:new n.A}}},5145:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5188:(t,e,r)=>{"use strict";r.d(e,{p:()=>a});var n=r(8291),i=r(1089),o=r(5664);const s="Poi_poiClick";class a{_map;_currentStyle=null;_layerIds=[];_dispatch=(0,i.A)(s);_listeners=[];constructor(t){this._map=t,this._bindPoiClickEvent()}destroy(){this._dispatch.on(`.${s}`,null),this._currentStyle=null,this._map=null,this._dispatch=null,this._listeners=[],this._layerIds=[]}onPoiClick(t){const e=(0,o.A)(`${s}.`);return this._dispatch.on(e,t),this._listeners.push(e),{unsubscribe:()=>this._dispatch.on(e,null)}}_queryPoiLayers(){const t=this._map.getStyle();if(t.name===this._currentStyle)return;const e=(0,n.cq)(t).filter(t=>"mapxus_place"===t["source-layer"]&&"symbol"===t.type);this._layerIds=e.map(({id:t})=>t),this._currentStyle=t.name}_bindPoiClickEvent(){this._map.on("click",t=>{if(0===this._listeners.length)return;this._queryPoiLayers();const e=this._map.queryRenderedFeatures(t.point,{layers:this._layerIds});if(0===e.length)return;const r=e[0],n=Boolean(r.properties?.["ref:shared_level"]),i=n?r.properties?.["ref:shared_level"]:r.properties?.["ref:level"],{floor:o,building:a,venue:c}=n?this._queryIndoorFeaturesBySharedFloor(i):this._queryIndoorFeaturesByFloor(i);this._dispatch.call(s,null,{coordinate:t.lngLat,poi:r,building:a,venue:c,floor:o})})}_queryIndoorFeaturesBySharedFloor(t){const e=this._map.queryRenderedFeatures({layers:["mapxus-shared-level-fill","mapxus-shared-level-fill-overlap-copy","mapxus-shared-level-fill-shared-bg","mapxus-building-line","mapxus-venue-fill"]}),r=e.find(e=>e.layer.id.includes("mapxus-shared-level-fill")&&e.properties.id===t);if(!r)return{floor:null,building:null,venue:null};const n=r.properties["ref:venue"],i=e.find(t=>"mapxus-venue-fill"===t.layer.id&&t.properties.id===n),{id:o,ordinal:s,name:a}=r.properties;return{floor:{id:o,ordinal:s,name:{default:a}},building:null,venue:i}}_queryIndoorFeaturesByFloor(t){const e=this._map.queryRenderedFeatures({layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy","mapxus-building-line","mapxus-venue-fill"]}),r=e.find(e=>e.layer.id.includes("mapxus-level-fill")&&e.properties.id===t);if(!r)return{floor:null,building:null,venue:null};const{id:n,ordinal:i,name:o,"ref:building":s}=r.properties,a=e.find(t=>"mapxus-building-line"===t.layer.id&&t.properties.id===s),c=e.find(t=>"mapxus-venue-fill"===t.layer.id&&t.properties.id===a?.properties?.["ref:venue"]);return{floor:{id:n,ordinal:i,code:o},building:a,venue:c}}}},5254:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5267:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(665);function i(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function o(t,e){this._pairs=[],t&&(0,n.A)(t,this,e)}const s=o.prototype;s.append=function(t,e){this._pairs.push([t,e])},s.toString=function(t){const e=t?function(e){return t.call(this,e,i)}:i;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};const a=o},5295:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrivateKey=void 0;var n=r(6527),i=r(2158),o=r(2557),s=function(){function t(t,e){if(this.curve=e,void 0===t)this.data=(0,i.getValidSecret)(e);else{if(!(0,i.isValidPrivateKey)(t,e))throw new Error("Invalid private key");this.data=t}this.publicKey=new o.PublicKey((0,i.getPublicKey)(this.data,e),e)}return t.fromHex=function(e,r){return new t((0,i.decodeHex)(e),r)},Object.defineProperty(t.prototype,"secret",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),t.prototype.toHex=function(){return(0,n.bytesToHex)(this.data)},t.prototype.encapsulate=function(t,e){void 0===e&&(e=!1);var r=this.publicKey.toBytes(e),n=this.multiply(t,e);return(0,i.getSharedKey)(r,n)},t.prototype.multiply=function(t,e){return void 0===e&&(e=!1),(0,i.getSharedPoint)(this.data,t.toBytes(!0),e,this.curve)},t.prototype.equals=function(t){return(0,n.equalBytes)(this.data,t.data)},t}();e.PrivateKey=s},5297:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5344:(t,e,r)=>{"use strict";r.d(e,{v:()=>o});var n=r(2068),i=r(5405);class o{_api="/api/v4/route/query";_request=n.K.getInstance();constructor(){}search(t){const{points:e,vehicle:r=i.$.FOOT,locale:n="en"}=t;if(!(e&&e.length>1&&e.length<6))throw new Error("Parameter error. It must be 1 < {points.length} < 6");if(function(t){return t.some(t=>!t||"number"!=typeof t.lat||"number"!=typeof t.lon)}(e))throw new Error("Parameter error. Points must have lat and lon.");const o={points:e,vehicle:r,locale:n};return this._request.post(this._api,JSON.stringify(o))}}},5353:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=/^(?:0|[1-9]\d*)$/;const i=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},5373:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(2944),i=r(9190),o=r(8417),s=r(8813),a=r(3957);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const u=c},5405:(t,e,r)=>{"use strict";var n;r.d(e,{$:()=>n}),function(t){t.FOOT="foot",t.WHEELCHAIR="wheelchair",t.ESCALATOR="escalator",t.EMERGENCY="emergency"}(n||(n={}))},5461:(t,e,r)=>{"use strict";r.d(e,{U:()=>a,l:()=>s});var n=r(9588);const i="-webkit-extension-67d8e3e8-";let o=null;async function s(){let t=sessionStorage.getItem(i);if(!t)try{a(),await c(Date.now()),t=sessionStorage.getItem(i)}catch(t){throw new Error("Failed to fetch public key: "+t)}return t}function a(){sessionStorage.removeItem(i),o&&(clearTimeout(o),o=null)}async function c(t){try{const r=await fetch(`${n.kk}?timestamp=${t}`,{method:"GET",headers:{"Content-Type":"text/plain"}}),{headers:s}=r,a=parseInt(s.get("x-retry-in"));o=setTimeout(async()=>{await c(t)},1e3*a),e=await r.text(),sessionStorage.setItem(i,e)}catch(t){throw t}var e}},5462:(t,e,r)=>{"use strict";r.d(e,{T:()=>F});var n=r(5629),i=r(5188),o=r(9983),s=r(2068),a=r(3626),c=r(520),u=r(3913),l=r(1089),d=r(3236),h=r(5056),f=r(181),p=r(5706),y=r(7311),g=r(1682),m=r(1965),_=r(3574),b=r(6996),v=r.n(b),w=r(2075),A=r(1694),E=r(6294),S=r(9205),B=r(2468),I=r(9644),x=r(3549),L=r(5664),O=r(5582);const T="Map_mapClick",k="Map_pointClick",R="Map_isRenderComplete",C="Map_isDestroyed",P=y.o.getInstance();class F{_map;_indoor;_poi;_floorsControl;_buildingFilterControl;_attributionControl;_language;_dispatch=(0,l.A)(T,k,R,C);_fitBuildingBounds;_history=f.d.getInstance();_hiddenBuildings=p.Q.getInstance().getHiddenBuildings();_debounceHTTPErrorHandler;_transformRequestHandler;_tokenRefreshingPromise=null;_request=s.K.getInstance();_$mask=null;_cancelTokenChangedListener;isDestroyed=!1;switchOutdoor;switchBuilding;buildingSelector;floorSelector;constructor(t){if(!t.map)throw new Error("Map is required.");if(!U(t)&&!M(t))throw new Error("Access params are required.");U(t)?P.setAccessByAppKey({appId:t.appId,secret:t.secret,platform:t.platform}).then(async()=>{await P.setupTokenManager(),this._setup(t)}):M(t)&&(P.setTokenGetter(t.getTokenAsync),P.setupTokenManager().then(()=>{this._setup(t)}))}renderComplete(t){const e=(0,L.A)(`${R}.`);this._dispatch.on(e,t)}destroyed(t){const e=(0,L.A)(`${C}.`);this._dispatch.on(e,()=>{t(),this._dispatch.on(e,null),0===this._dispatch._[C].length&&(delete this._dispatch,Object.freeze(this))})}setTransformRequest(t){this._transformRequestHandler=t}getIndoor(){return this._indoor}getMaplibre(){return this._map}get floor(){return this.getIndoor()?.floor??null}get building(){return this.getIndoor()?.building??null}get venue(){return this.getIndoor()?.venue??null}setLanguage(t){this._language!==t&&(this._language=t);const e=this._map?.getStyle(),r=(e?.layers||[]).filter(({type:t})=>"symbol"===t);for(const{id:e}of r){const r=this._map.getLayer(e),n="string"==typeof this._map.getLayoutProperty(e,"text-field");r&&!n&&this._map.setLayoutProperty(e,"text-field",["coalesce",["get",`name:${t}`],["get","name"]])}}getLanguage(){return this._language}setOutdoorMapShown(t){this.getIndoor()?.setOutdoorMapShown(t)}getIndoorFeaturesByCoordinates(t,e){const r=this._map.project(t),n=this._map.queryRenderedFeatures(r,{layers:["mapxus-venue-fill","mapxus-building-line","mapxus-level-fill","mapxus-level-fill-overlap-copy"]});if(0===n.length)return{venue:null,building:null,level:null};const i=n.filter(t=>t.layer.id.includes("mapxus-level-fill")).find(t=>Number.isFinite(e)?t.properties.ordinal===e+"":t.layer.id.startsWith("mapxus-level-fill"));if(!i)return{venue:null,building:null,level:null};const o=n.find(t=>t.properties.id===i.properties["ref:building"]);return{venue:n.find(t=>t.properties.id===o.properties["ref:venue"]),building:o,level:i}}getFeaturesById(t,e){return this.getIndoor()?.getFeaturesById(t,e)||[]}async selectFloorById(t,e){const{dragPan:r=!0}=e||{};if(this._indoor.setDragPan(r),t===this.floor?.id){if(!r)return;this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let e,n,i=!1;try{if(this._fitBuildingBounds){e=await(0,A.F2)(t),n=(0,d.r)(e),i=!0;const{maxLat:r,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,r]])}else n=(this._indoor?.features||[]).find(e=>e.properties?.level_ids?.includes(t)&&"mapxus-building-line"===e.layer.id)??null,n||(e=await(0,A.F2)(t),n=(0,d.r)(e),i=!0)}catch(t){this._handleSearchError(t)}if(n&&n?.properties?.id===this.building?.properties?.id){const{level_ids:e,ordinals:i}=n.properties,o=e.split(",").indexOf(t),s=i.split(",")[o]??null;await this._floorsControl.switchByOrdinal(s,r)}else await(this._indoor?.selectBuilding(n,{floorId:t,featureIncomplete:i}))}}async selectSharedFloorById(t,e){const{dragPan:r=!0}=e||{};if(this._indoor.setDragPan(r),t===this.floor?.id){if(!r)return;this._fitBuildingBounds?this._indoor.fitVenueBbox():await this._indoor.panToVenueCenter()}else{let e,r,n=!1;const i=async t=>{n=!0;const i=await(0,A.F0)(t);r=(0,d.E)(i);const{maxLat:o,maxLon:s,minLat:a,minLon:c}=i.bbox;this._indoor.setVenueBounds([[c,a],[s,o]]);const u=i.sharedFloors.find(({id:e})=>e===t),{id:l,name:h,ordinal:f}=u;e={id:l,name:h,ordinal:f+""}};try{if(this._fitBuildingBounds)await i(t);else{r=(this._indoor?.features||[]).find(e=>e.properties?.shared_level_ids?.includes(t)&&"mapxus-venue-fill"===e.layer.id);const n=r?this._indoor.features.find(e=>e.properties.id===t):null;if(n){const{id:t,name:r,ordinal:i}=n.properties;e={id:t,name:"string"==typeof r?{default:r}:r,ordinal:i}}else await i(t)}}catch(t){this._handleSearchError(t)}e&&r&&await(this._indoor?.selectSharedFloor(e,r,{featureIncomplete:n}))}}async selectBuildingById(t,e){const{dragPan:r=!0}=e||{};if(this._indoor.setDragPan(r),t===this.building?.properties?.id){if(!r)return;this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let e,r,n=!1;try{if(this._fitBuildingBounds){e=await(0,A.pT)(t),r=(0,d.r)(e),n=!0;const{maxLat:i,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,i]])}else r=this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(t,{layerIds:["mapxus-building-line"]})[0]||null,r||(e=await(0,A.pT)(t),r=(0,d.r)(e),n=!0);await(this._indoor?.selectBuilding(r,{featureIncomplete:n}))}catch(t){this._handleSearchError(t)}}}async selectVenueById(t,e){const{dragPan:r=!0}=e||{};if(this._indoor.setDragPan(r),"string"==typeof t&&""===t.trim()||null===t)await(this._indoor?.selectBuilding(null));else if(t===this.venue?.properties?.id){if(!r)return;this.building?this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter():"name"in this.floor&&(this._fitBuildingBounds?this._indoor.fitVenueBbox():await this._indoor.panToVenueCenter())}else{const e=this._history.getBuildingUnitByVenue(t);if(e){const{id:t,type:n}=e;"building"===n?await this.selectBuildingById(t,{dragPan:r}):await this.selectSharedFloorById(t,{dragPan:r})}else{let e;const n=this._map.getLayer("mapxus-venue-fill")&&this.getFeaturesById(t,{layerIds:["mapxus-venue-fill"]})[0];if(n){const{default_displayed_building:t,building_ids:r}=n.properties;e=t||(r?.split(",")||[])[0]}else try{const r=await(0,A.qT)(t);e=r.defaultBuilding||r.buildings[0]?.id}catch(t){this._handleSearchError(t)}e&&await this.selectBuildingById(e,{dragPan:r})}}}onMapClickListener(t){const e=(0,L.A)(`${T}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}onPoiClickListener(t){return this._poi?.onPoiClick(t)}onPointClickListener(t){const e=(0,L.A)(`${k}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}onMapChangeListener(t){return this._indoor?.onMapChange(t)}switchTheme(t){this._setStyle(this._getStyleUrl(t)),this._map?.once("styledata",()=>this._setIndoorFilter()),"changeTheme"in this._attributionControl&&this._attributionControl.changeTheme(t)}setSelectedBuildingBorderStyle(t){return this._indoor?.setSelectedHighlightStyle(t),this}setSelectedHighlightStyle(t){return this._indoor?.setSelectedHighlightStyle(t),this}async _setup(t){const{map:e,poiId:r,sharedFloorId:s,floorId:l,buildingId:d,venueId:f,theme:p=_.SV.MAPXUS_DEFAULT,floorSelectorEnabled:y,buildingSelectorEnabled:g,outdoorMapShown:m,collapseCopyright:b=!1,maskNonSelectedAreas:v,fitBuildingBounds:w=!1,boundsPadding:A=30,selectedHighlightStyle:L,floorSelectorStyle:O,language:T=h.eG,autoSelectBuilding:k=!1,transformRequest:C=null,mapxusLogoEnabled:P=!0}=t;this._map=e,this._language=T,this._indoor=new n.SN({map:this._map,startWithIndoorView:Boolean(f||d||l||r),outdoorMapShown:m,fitBuildingBounds:w,boundsPadding:A,maskNonSelectedAreas:v,selectedHighlightStyle:L}),this._poi=new i.p(this._map),this._fitBuildingBounds=w,this._transformRequestHandler=C,this._setMaskEnabled(!0),await this._resourceRequestTransform(),this._installRtlTextPlugin(),this._setStyle(this._getStyleUrl(p)),this._checkMapZoom(),b?this._attributionControl=new u.d:(this._attributionControl=new c.z({theme:p}),this._addControl(new a.V({enabled:P}))),this._addControl(this._attributionControl),this._addControl(this._buildingFilterControl=new o.G(this,g)),this._addControl(this._floorsControl=new o.Z(this._indoor,{language:T,style:O,enabled:y})),r?this._selectPoiById(r):l?this.selectFloorById(l):d?this.selectBuildingById(d):f?this.selectVenueById(f):s&&this.selectSharedFloorById(s),this.switchOutdoor=new E.B(this._indoor),this.switchBuilding=new S.N(this._indoor),this.buildingSelector=new B.E(this._buildingFilterControl),this.floorSelector=new I.C(this._floorsControl),this._map.once("styledata",()=>this.setLanguage(this._language)),this._map.on("remove",()=>this._destroy()),this._map.on("error",this._debounceHTTPErrorHandler=(0,x.A)(t=>this._updatePermission(t),300)),this._indoor.once(n.Hv,()=>{this._setMaskEnabled(!1),k&&this._map.on("moveend",()=>this._selectCenterBuilding()),this._bindMapClickListener(),this._bindTokenChangedListener(),this._dispatch.call(R)})}_getStyleUrl(t){const e=new globalThis.Map([[_.SV.CHRISTMAS,w._C],[_.SV.HALLOWEEN,w.ts],[_.SV.MAPPY_BEE,w.xR],[_.SV.MAPXUS,w.em],[_.SV.COMMON,w.lu],[_.SV.LANDS_D,w.Hf],[_.SV.MAPXUS_DEFAULT,w.$b]]);return e.has(t)?e.get(t):(0,w.aS)(t)}_setIndoorFilter(){this._indoor.updateCustomLayers(),this._indoor.updateRendering()}_setStyle(t){this._map?.setStyle(t,{localIdeographFontFamily:!1})}_addControl(t,e){this._map.addControl(t,e)}async _selectPoiById(t){try{const e=await(0,A.xW)(t),{lon:r,lat:n}=e.location;"floorId"in e?await this.selectFloorById(e.floorId):"sharedFloorId"in e&&await this.selectSharedFloorById(e.sharedFloorId),this._map.panTo([r,n])}catch(t){this._handleSearchError(t)}}async _resourceRequestTransform(){const t=await this._request.getRequestHeaders();this._map.setTransformRequest((e,r)=>{const{host:n}=new URL(e);return n.includes("map-api")&&n.includes("mapxus")?{url:e,headers:t}:this._transformRequestHandler?this._transformRequestHandler(e,r):{url:e}})}_checkMapZoom(){const t=this._map.getZoom();(t<8||t>22)&&t>1&&console.warn("Indoor maps perform better at zoom levels [8, 22].")}async _updatePermission(t){if(401===t.error?.status)return this._tokenRefreshingPromise||(this._tokenRefreshingPromise=this._resourceRequestTransform().finally(()=>this._tokenRefreshingPromise=null)),this._tokenRefreshingPromise}_selectCenterBuilding(){const t=this._getCenterBuildingUnitsMap();if(!t.size)return;let e=t.entries().next().value[1];const r=this._history.getVisitedBuildingUnits().reverse();for(const n of r){const{id:r}=n;if(t.get(r)){e=n;break}}"building"===e.type?this.selectBuildingById(e.id,{dragPan:!1}):this.selectSharedFloorById(e.id,{dragPan:!1})}_getCenterBuildingUnitsMap(){const t=this._map.getCanvas().getBoundingClientRect(),e=t.width/4,r=t.height/4,n=[e,r],i=[t.width-e,t.height-r],o=["mapxus-building-line",m.TU].filter(t=>this._map.getLayer(t));let s=this._map.queryRenderedFeatures([n,i],{layers:o});return s=(0,O.A)(s,"properties.id"),s=s.filter(t=>!this._hiddenBuildings.has(t.properties.id)),new globalThis.Map(s.map(({properties:t})=>[`${t.id}`,{id:t.id,type:t.building?"building":"sharedFloor"}]))}_bindMapClickListener(){this._map.on("click",async t=>{const{point:e,lngLat:r}=t;await this._indoor.selectByClickMap(e),this._dispatch.call(k,null,{point:e,coordinate:r}),this._dispatch.call(T,null,{coordinate:r,venue:this.venue,building:this.building,floor:this.floor})})}_bindTokenChangedListener(){const{off:t}=P.on(y.O,async()=>{await this._resourceRequestTransform()});this._cancelTokenChangedListener=t}_handleSearchError(t){const e=t?.response?.status||"unknown",r=t?.response?.data?.message||"unknown";P.getGlobalDispatcher().call("initError",null,{status:e,message:r})}_setMaskEnabled(t){t?this._$mask||(this._$mask=(0,g.r)("div","mapxus-map-mask",this._map.getContainer())):this._$mask&&((0,g.Z)(this._$mask),this._$mask=null)}_installRtlTextPlugin(){"unavailable"===v().getRTLTextPluginStatus()&&v().setRTLTextPlugin("https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.3.0/dist/mapbox-gl-rtl-text.js",!0)}_destroy(){if(this.isDestroyed)return;this.isDestroyed=!0,this._debounceHTTPErrorHandler?.cancel();const t=this._dispatch._;for(const e in t)e!==C&&t.hasOwnProperty(e)&&t[e].forEach(({name:t})=>{this._dispatch.on(`${e}.${t}`,null)});this._indoor.destroy(),this._poi.destroy(),Object.keys(this).forEach(t=>{"isDestroyed"!==t&&"_dispatch"!==t&&delete this[t]}),this._cancelTokenChangedListener&&this._cancelTokenChangedListener(),P.clearState(),this._dispatch.call(C)}}function M(t){return"getTokenAsync"in t&&"function"==typeof t.getTokenAsync}function U(t){return"appId"in t&&""!==t.appId.trim()&&"secret"in t&&""!==t.secret.trim()}},5488:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(7880),i=/^\s+/;const o=function(t){return t?t.slice(0,(0,n.A)(t)+1).replace(i,""):t}},5530:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(2531);const i=function(t,e){return!!(null==t?0:t.length)&&(0,n.A)(t,e,0)>-1}},5537:(t,e,r)=>{"use strict";r.d(e,{s:()=>o});class n extends Error{}function i(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(t){return decodeURIComponent(atob(t).replace(/(.)/g,(t,e)=>{let r=e.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(e)}catch(t){return atob(e)}}function o(t,e){if("string"!=typeof t)throw new n("Invalid token specified: must be a string");e||(e={});const r=!0===e.header?0:1,o=t.split(".")[r];if("string"!=typeof o)throw new n(`Invalid token specified: missing part #${r+1}`);let s;try{s=i(o)}catch(t){throw new n(`Invalid token specified: invalid base64 for part #${r+1} (${t.message})`)}try{return JSON.parse(s)}catch(t){throw new n(`Invalid token specified: invalid json for part #${r+1} (${t.message})`)}}n.prototype.name="InvalidTokenError"},5547:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(9914);const i=function(t,e){var r=t.__data__;return(0,n.A)(e)?r["string"==typeof e?"string":"hash"]:r.map}},5568:(t,e,r)=>{"use strict";r.d(e,{F:()=>u});var n=r(9588),i=r(2068),o=r(9573),s=r(3574),a=r(6034);const c=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","icon"];class u{_poisApi="/api/v5/pois";_categoriesGroupApi="/api/v5/categories/group";_request=i.K.getInstance();constructor(){}searchByIds(t){const e=(0,o.VS)(t);if(!e)throw new Error("Invalid ids parameter. Expected a non-empty string or an array of strings.");const r=`${this._poisApi}/${e}`;return this._changedRes(r)}searchByDistance(t){const{center:e,distance:r,keywords:i="",offset:s=n.e$,page:a=n.KL}=t;if(!(0,o.ES)(e))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(r)||r>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000.");const c=new URLSearchParams;c.set("center",e.join(",")),c.set("distance",String(Math.round(r))),c.set("offset",String(s)),c.set("page",String(a)),(0,o.BW)(i)&&c.set("keywords",i);const u=`${this._poisApi}?${c.toString()}`;return this._changedRes(u)}searchByBounds(t){const{bounds:e,offset:r=n.e$,page:i=n.KL,keywords:s,orderBy:a}=t;if(!(0,o.dD)(e))throw new Error("'bounds' must be an array of two arrays, each containing two numbers.");const c=new URLSearchParams;c.set("bbox",e.flat().join()),c.set("offset",String(r)),c.set("page",String(i)),(0,o.BW)(s)&&c.set("keywords",s),a&&c.set("orderBy",a);const u=`${this._poisApi}?${c.toString()}`;return this._changedRes(u)}searchByBuilding(t){const{buildingId:e,offset:r=n.e$,page:i=n.KL,keywords:s,orderBy:a}=t;if(!(0,o.BW)(e))throw new Error("'buildingId' must be a non-empty string.");const c=new URLSearchParams;c.set("buildingId",e),c.set("offset",String(r)),c.set("page",String(i)),(0,o.BW)(s)&&c.set("keywords",s),a&&c.set("orderBy",a);const u=`${this._poisApi}?${c.toString()}`;return this._changedRes(u)}searchByVenue(t){const{venueId:e,offset:r=n.e$,page:i=n.KL,keywords:s,orderBy:a}=t;if(!(0,o.BW)(e))throw new Error("'venueId' must be a non-empty string.");const c=new URLSearchParams;c.set("venueId",e),c.set("offset",String(r)),c.set("page",String(i)),(0,o.BW)(s)&&c.set("keywords",s),a&&c.set("orderBy",a);const u=`${this._poisApi}?${c.toString()}`;return this._changedRes(u)}searchByFloor(t){let e=null,r=null;if("floorId"in t&&(0,o.BW)(t.floorId)?(e="floorId",r=t.floorId):"sharedFloorId"in t&&(0,o.BW)(t.sharedFloorId)&&(e="sharedFloorId",r=t.sharedFloorId),!e||!r)throw new Error("Either 'floorId' or 'sharedFloorId' must be a non-empty string.");const{offset:i=n.e$,page:s=n.KL,keywords:a,orderBy:c}=t,u=new URLSearchParams;u.set("offset",String(i)),u.set("page",String(s)),u.set(e,r),(0,o.BW)(a)&&u.set("keywords",a),c&&u.set("orderBy",c);const l=`${this._poisApi}?${u.toString()}`;return this._changedRes(l)}searchByOrientation(t){const{center:e,angle:r,distance:n,distanceSearchType:i=s._P.POINT}=t;if(!(0,o.ES)(e))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(n)||n>100)throw new Error("Invalid distance parameter. Expected a positive number and no more than 100.");if(!(0,o.F5)(r))throw new Error("Invalid angle parameter. Expected a positive number.");const a=new URLSearchParams;if("ordinal"in t){if(!(0,o.BW)(t.ordinal))throw new Error("'ordinal' must be a non-empty string.");a.set("ordinal",t.ordinal)}else if("floorId"in t){if(!(0,o.BW)(t.floorId))throw new Error("'floorId' must be a non-empty string.");a.set("floorId",t.floorId)}else{if(!("buildingId"in t))throw new Error("Either 'ordinal', 'floorId', or 'buildingId' must be provided.");if(!(0,o.BW)(t.buildingId))throw new Error("'buildingId' must be a non-empty string.");a.set("buildingId",t.buildingId)}a.set("center",e.join()),a.set("angle",String(Math.round(r))),a.set("distance",String(n)),a.set("distanceSearchType",i);const c=`${this._poisApi}/orientation?${a.toString()}`;return this._request.get(c)}searchByCategory(t){const{center:e,distance:r,page:i=n.KL,offset:s=n.e$}=t;if(!(0,o.ES)(e))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(r)||r>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000");const a=new URLSearchParams;if("category"in t&&(0,o.BW)(t.category))a.set("category",String(t.category));else{if(!("excludedCategories"in t)||!(0,o.VS)(t.excludedCategories))throw new Error("Either 'category' or 'excludedCategories' must be provided.");a.set("excludeCategories",(0,o.VS)(t.excludedCategories))}a.set("center",e.join(",")),a.set("distance",String(r)),a.set("page",String(i)),a.set("offset",String(s));const c=`${this._poisApi}?${a.toString()}`;return this._changedRes(c)}searchCategories(t){const e=new URLSearchParams;if("floorId"in t&&(0,o.BW)(t.floorId)?e.set("floorId",t.floorId):"buildingId"in t&&(0,o.BW)(t.buildingId)?e.set("buildingId",t.buildingId):"sharedFloorId"in t&&(0,o.BW)(t.sharedFloorId)?e.set("sharedFloorId",t.sharedFloorId):"venueId"in t&&(0,o.BW)(t.venueId)&&e.set("venueId",t.venueId),"bounds"in t&&(0,o.dD)(t.bounds)&&(e.set("bbox",t.bounds.flat().join()),(0,o.BW)(t.keywords)&&e.set("keywords",t.keywords)),0===e.toString().length)throw new Error("At least one of 'floorId', 'buildingId', 'sharedFloorId', 'venueId', or 'bounds' must be provided.");const r=`${this._categoriesGroupApi}?${e.toString()}`;return this._request.get(r)}search(t){const e=new URLSearchParams;Object.entries(t).forEach(([t,r])=>{switch(t){case"bounds":(0,o.dD)(r)&&e.set("bbox",r.flat().join());break;case"center":(0,o.ES)(r)&&e.set("center",r.join());break;case"excludedCategories":(0,o.VS)(r)&&e.set("excludeCategories",(0,o.VS)(r));break;default:e.set(t,String(r))}});const r=`${this._poisApi}?${e.toString()}`;return this._request.get(r)}async _changedRes(t){return this._request.get(t).then(t=>{if(t.data?.result?.pois){const e=t.data.result.pois.map(t=>(0,a.A)(t,(t,e)=>c.includes(e)));return{...t,data:{...t.data,result:{...t.data.result,pois:e}}}}return t})}}},5572:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},5579:(t,e,r)=>{"use strict";function n(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}r.d(e,{A:()=>n})},5582:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(2141),i=r(5781);const o=function(t,e){return t&&t.length?(0,i.A)(t,(0,n.A)(e,2)):[]}},5606:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=Object.prototype.toString;const i=function(t){return n.call(t)}},5629:(t,e,r)=>{"use strict";r.d(e,{Hv:()=>A,Ms:()=>w,SN:()=>k});var n=r(7007),i=r(8291),o=r(3236),s=r(8700),a=r(9266),c=r(1965),u=r(4545),l=r(5056),d=r(1694),h=r(8021),f=r(1089),p=r(181),y=r(5706),g=r(8389),m=r(3549),_=r(5582),b=r(5664);const v="Indoor_selectedFloorChanged",w="Indoor_selectedBuildingChanged",A="Indoor_mapxusMapLoaded",E="Indoor_maplibreMapLoaded",S="mapxus-venue-fill",B="mapxus-building-line",I="mapxus-level-fill",x="mapxus-shared-level-fill",L="highlight-mapxus_level",O="highlight-mapxus_shared_level",T=new u.w1;class k extends n.EventEmitter{_map;_features;_allVenuesMap;_allBuildingsMap;_allSharedLevelsMap;_curBuildingId=null;_curBuildingFeature=null;_curSharedLevelId=null;_floor={code:null,id:null,ordinal:null};_sharedFloor={id:null,ordinal:null,name:null};_allowOutdoorSwitch;_allowBuildingSwitch;_outdoorMapShown;_originIndoorLayers;_outdoorLayers;_curVenueId=null;_curVenueFeature=null;_selectedHighlightStyle;_upperLayers=[];_middleLayers=[];_commonLayers=[];_lowerLayers=[];_excludedPoisInMiddle=[];_dispatch=(0,f.A)(v);_fitBuildingBounds;_boundsPadding;_startWithIndoorView;_indoorMapLoaded=!1;_isSelectSharedFloor=!1;_isMaskMode;_upperLevels=new Set;_middleLevels=new Set;_lowerLevels=new Set;_featureIncomplete=!1;_dragPan;_buildingBounds;_venueBounds;_history=p.d.getInstance();_layerBuildings=y.Q.getInstance();_hiddenBuildings=this._layerBuildings.getHiddenBuildings();_maskBuildings=new Set;_maskSharedFloors=new Set;_isDestroyed=!1;_fetchBuildingTimeoutId=null;_fetchVenueTimeoutId=null;_fitBoundsTimer=null;_abortQueryBuilding;_debounceRendering;constructor(t){super();const{map:e,startWithIndoorView:r=!0,outdoorMapShown:n=!0,selectedHighlightStyle:i,fitBuildingBounds:o,boundsPadding:s,maskNonSelectedAreas:a=!1}=t;this._map=e,this._allowOutdoorSwitch=!0,this._allowBuildingSwitch=!0,this._startWithIndoorView=r,this._outdoorMapShown=n,this._isMaskMode=a,this._fitBuildingBounds=o,this._boundsPadding=s,this._selectedHighlightStyle=i?Object.assign({},l.sy,i):l.sy,this._hiddenBuildings=new Set,this._bindMaplibreEventListeners()}destroy(){this._isDestroyed||(this._isDestroyed=!0,this._dispatch.on(`.${v}`,null),this.removeAllListeners(w),this.removeAllListeners(E),this.removeAllListeners(A),this._debounceRendering?.cancel(),this._fetchBuildingTimeoutId&&(clearTimeout(this._fetchBuildingTimeoutId),this._fetchBuildingTimeoutId=null),this._fetchVenueTimeoutId&&(clearTimeout(this._fetchVenueTimeoutId),this._fetchVenueTimeoutId=null),this._fitBoundsTimer&&(clearTimeout(this._fitBoundsTimer),this._fitBoundsTimer=null),this._abortQueryBuilding&&(this._abortQueryBuilding(),this._abortQueryBuilding=null))}setAllowOutdoorSwitch(t){return this._allowOutdoorSwitch=t,this}setAllowBuildingSwitch(t){return this._allowBuildingSwitch=t,this}get floor(){return this._isSelectSharedFloor?this._sharedFloor:this._curBuildingId?this._floor:null}get building(){return this._curBuildingFeature}get venue(){return this._curVenueFeature}get features(){return this._features}getFeaturesById(t,e){const{layerIds:r,filter:n}=e||{},i=this._queryRenderedFeatures(r),o=n?e=>e.properties.id===t&&n(e):e=>e.properties.id===t;return i.filter(o)}async switchFloorByOrdinal(t){this._updateFloorState(t),this._dispatch.call(v,null,{venue:this.venue,building:this.building,floor:this.floor}),this.venue&&t&&(!0===this._dragPan&&(this._fitBuildingBounds?await this.fitBuildingBbox():await this.panToBuildingCenter()),"restrict"===this._dragPan&&await this._checkAndPanToBuilding(),this._resetSelectedDisplayedLevel()),this.updateRendering()}setOutdoorMapShown(t){this._outdoorMapShown=t,this._setOutdoorVisibility(t)}setSelectedHighlightStyle(t){this._selectedHighlightStyle=Object.assign({},this._selectedHighlightStyle,t??{"line-opacity":0});for(const e of[L,O])if(this._map.getLayer(e))if(t){const{lineColor:t,lineOpacity:r,lineWidth:n,lineOffset:i}=this._selectedHighlightStyle,o=R(n,i);this._map.setPaintProperty(e,"line-color",t),this._map.setPaintProperty(e,"line-opacity",r),this._map.setPaintProperty(e,"line-width",n),this._map.setPaintProperty(e,"line-offset",o)}else this._map.setPaintProperty(e,"line-opacity",0)}onMapChange(t){const e=(0,b.A)(`${v}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}async selectBuilding(t,e){(this._allowOutdoorSwitch||t)&&this._allowBuildingSwitch&&this._isNotCurrentFeature(t)&&(this._isSelectSharedFloor=!1,this._curSharedLevelId=null,this._featureIncomplete=e?.featureIncomplete??this._featureIncomplete,t?.properties?.id&&this._history.addVisitedBuildingUnit({id:t.properties.id,type:"building"}),await this._updateIndoorState(t,e?.floorId),await this.switchFloorByOrdinal(this._floor.ordinal),this.emit(w,t?{building:t,ordinal:this._floor.ordinal,dragPan:this._dragPan}:null),this._dispatchIndoorMapLoaded())}async selectSharedFloor(t,e,r){const{id:n,ordinal:i}=t;this._isSelectSharedFloor=!0,this._curBuildingId=null,this._curBuildingFeature=null,this._sharedFloor=t,this._curSharedLevelId=n,this._curVenueFeature=e,this._curVenueId=e.properties.id,this._featureIncomplete=r?.featureIncomplete??this._featureIncomplete,this._history.addVisitedBuildingUnit({id:n,type:"sharedFloor"}),this._history.setOrdinalByBuildingUnit(n,i),this._history.setBuildingUnitByVenue(this._curVenueId,{id:n,type:"sharedFloor"}),this._dragPan&&"restrict"!==this._dragPan&&(this._fitBuildingBounds?this.fitVenueBbox():await this.panToVenueCenter()),this._dispatch.call(v,null,{venue:this.venue,building:this.building,floor:this.floor}),this.emit(w,{...t,dragPan:this._dragPan}),this._dispatchIndoorMapLoaded(),this._resetSelectedDisplayedLevel(),this.updateRendering()}updateCustomLayers(){const t=this._map.getStyle();this._originIndoorLayers=(0,i.cq)(t),this._outdoorLayers=(0,i.Z3)(t),this._copyOverlapLayers(),this._copySharedFloorBackgroundLayers(),this._addSelectedHighlightLayers(),this._addReserveFloorLayers(),this._isMaskMode&&this._addBuildingMaskLayer(),this._outdoorMapShown||this._setOutdoorVisibility(!1)}updateRendering(){this._updateFeatures(),this._updateSelectedFeatures(),this._layerFloors(),this._calExcludedPoisInMiddle(),this._filterLayers(),this._filterSelectedHighlight(),this._updateUnselectedMask()}async panToBuildingCenter(){const t=this._curBuildingFeature.properties?.label_center?.split(",");if(!t)return;if(this._map.panTo(t),!this._featureIncomplete)return;const{promise:e,abort:r}=(0,h.B)(()=>{if(!this._isDestroyed)return this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(this._curBuildingId,{layerIds:["mapxus-building-line"]})[0]});this._abortQueryBuilding=r,await e}async fitBuildingBbox(){return this._map.fitBounds(this._buildingBounds,{animate:!0,duration:500,padding:this._boundsPadding,bearing:this._map.getBearing()}),new Promise(t=>{this._fitBoundsTimer=setTimeout(()=>{t(!0),this._fitBoundsTimer=null},600)})}async panToVenueCenter(){const t=this._curVenueFeature.properties?.label_center?.split(",");if(!t)return;if(this._map.panTo(t),!this._featureIncomplete)return;const{promise:e,abort:r}=(0,h.B)(()=>{if(!this._isDestroyed)return this._map.getLayer(S)&&this.getFeaturesById(this._curVenueId,{layerIds:[S]})[0]});this._abortQueryBuilding=r,await e}fitVenueBbox(){this._map.fitBounds(this._venueBounds,{padding:this._boundsPadding,bearing:this._map.getBearing()})}setDragPan(t){this._dragPan=t}setBuildingBounds(t){this._buildingBounds=t}setVenueBounds(t){this._venueBounds=t}async selectByClickMap(t){this.setDragPan(!1),this._featureIncomplete=!1;const e=await this._queryFeatureByPoint(t);if(e){if("building"in e){if(await this.selectBuilding(e.building,{floorId:e.floorId}),this._fitBuildingBounds){const t=e.building;if(!t)return;this._fetchBuildingTimeoutId=setTimeout(()=>this._updateBuildingBounds(t.properties.id))}}else if("sharedLevel"in e&&(await this.selectSharedFloor(e.sharedLevel,e.venue),this._fitBuildingBounds)){const t=e.venue;if(!t)return;this._fetchVenueTimeoutId=setTimeout(()=>this._updateVenueBounds(t.properties.id))}}else await this.selectBuilding(null)}async _updateBuildingBounds(t){const e=await(0,d.pT)(t),{minLon:r,minLat:n,maxLon:i,maxLat:o}=e.bbox;this.setBuildingBounds([[r,n],[i,o]])}async _updateVenueBounds(t){const e=await(0,d.qT)(t),{minLon:r,minLat:n,maxLon:i,maxLat:o}=e.bbox;this.setVenueBounds([[r,n],[i,o]])}_bindMaplibreEventListeners(){this._map.once("styledata",()=>this.updateCustomLayers()),this._map.once("idle",()=>{this.emit(E),(!this._startWithIndoorView||this._map.getZoom()<14)&&this._dispatchIndoorMapLoaded()}),this._map.on("sourcedata",this._debounceRendering=(0,m.A)(()=>this.updateRendering(),300))}_clear(){this._curBuildingFeature=null,this._curBuildingId=null,this._floor={code:null,id:null,ordinal:null},this._curVenueId=null,this._curVenueFeature=null,this._buildingBounds=null,this._curSharedLevelId=null,this._venueBounds=null}_getIndoorFeatures(){return this._queryRenderedFeatures().filter(t=>(0,i.ld)(t.source))}_getBuildingFloorByOrdinal(t,e){let r=null,n=null;if(t?.properties){const{ordinals:i,level_names:o,level_ids:a}=t.properties,c=(0,s.S)(i).findIndex(t=>t===e);r=(0,s.S)(o)[c]??null,n=(0,s.S)(a)[c]??null}return{code:r,id:n,ordinal:e}}_isNotCurrentFeature(t){return t?.properties?.id!==this._curBuildingId}_setOutdoorVisibility(t){for(const{id:e}of this._outdoorLayers)this._map.getLayer(e)&&this._map.setLayoutProperty(e,"visibility",t?"visible":"none")}_addReserveFloorLayers(){for(const t of[a.ASSISTANT_LAYER_INDOOR_FLOORS,a.ASSISTANT_LAYER_SHARED_FLOORS]){if(this._map.getLayer(t))continue;const e=t.split("_")[1],r=this._map.getLayer(e);if(!r)continue;const{source:n,sourceLayer:i}=r,o=t===a.ASSISTANT_LAYER_INDOOR_FLOORS?this._middleLayers[0]:this._lowerLayers[0];let s={"fill-opacity":0};if(this._isMaskMode&&t===a.ASSISTANT_LAYER_SHARED_FLOORS){const t=this._originIndoorLayers.find(({id:t})=>t===B);t&&(s=Object.assign({},t.paint??{},s))}this._map.addLayer({id:t,source:n,"source-layer":i,type:"fill",paint:s},o.id)}}_addBuildingMaskLayer(){if(this._map.getLayer(c.Zj))return;const t=this._originIndoorLayers.find(({id:t})=>t===B);if(t){const e=Object.assign({},t,{id:c.Zj,layout:Object.assign({},t.layout??{},{visibility:"visible"}),paint:Object.assign({},t.paint??{},{"fill-opacity":0})});this._map.addLayer(e,B)}}_updateUnselectedMask(){if(!this._isMaskMode)return;const t=[...this._maskBuildings],e=[...this._maskSharedFloors];this._map.getLayer(c.Zj)&&this._map.setPaintProperty(c.Zj,"fill-opacity",["case",["in",["get","id"],["literal",t]],1,0]),this._map.getLayer(a.ASSISTANT_LAYER_SHARED_FLOORS)&&this._map.setPaintProperty(a.ASSISTANT_LAYER_SHARED_FLOORS,"fill-opacity",["case",["in",["get","id"],["literal",e]],1,0])}_addSelectedHighlightLayers(){const t=[{layerId:L,sourceLayer:"mapxus_level"},{layerId:O,sourceLayer:"mapxus_shared_level"}];let e=this._originIndoorLayers.find(({type:t})=>j(t));if(!e){const t=this._originIndoorLayers.findIndex(({id:t})=>t===this._upperLayers[this._upperLayers.length-1].id);e=this._originIndoorLayers[t+1]}for(const{layerId:r,sourceLayer:n}of t){if(this._map.getLayer(r))continue;const{lineWidth:t,lineOpacity:i,lineColor:o,lineOffset:s}=this._selectedHighlightStyle,a=R(t,s);this._map.addLayer({id:r,source:"indoor-planet","source-layer":n,type:"line",filter:["==","id",""],paint:{"line-offset":a,"line-width":t,"line-color":o,"line-opacity":i}},e?.id)}}_filterSelectedHighlight(){for(const t of[L,O])this._map.getLayer(t)&&this._map.setFilter(t,["==","id",this._isSelectSharedFloor?this._curSharedLevelId:this._floor.id??""])}_getBuildingDefaultOrdinal(t){let e=null;if(t?.properties){const{level_ids:r,ordinals:n,default_displayed_floor:i}=t.properties,o=(0,s.S)(n);if(o.length){if(i){e=o[(0,s.S)(r).findIndex(t=>t===i)]??null}e||(e=(0,g.A)(o,t=>Math.abs(Number(t)-.1)))}}return e}_copyOverlapLayers(){const t=this._originIndoorLayers.findIndex(({type:t,"source-layer":e})=>F(e,t)),e=this._originIndoorLayers.findIndex(({type:t,"source-layer":e})=>H(e,t));this._commonLayers=this._originIndoorLayers.slice(0,t).concat(this._originIndoorLayers.slice(e)),this._upperLayers=this._originIndoorLayers.slice(t,e).filter(({type:t})=>function(t){return"line"===t||"fill"===t||"fill-extrusion"===t}(t));const r=this._upperLayers[0];this._middleLayers=this._upperLayers.filter(({type:t})=>!j(t)).map(t=>{const e=`${t.id}-overlap-copy`;let n=this._map.getLayer(e);return n||(n=Object.assign({},t,{id:e}),this._map.addLayer(n,r.id)),n})}_copySharedFloorBackgroundLayers(){if(!!!this._upperLayers.find(t=>t.id===a.ASSISTANT_LAYER_SHARED_FLOORS.split("_")[1]))return;const t=this._upperLayers.filter(({"source-layer":t,type:e})=>!M(t,e)&&!j(e)),e=this._commonLayers.filter(({"source-layer":t,type:e})=>H(t,e)),r=this._middleLayers[0]||this._upperLayers[0];this._lowerLayers=[...t,...e].map(t=>{const e=`${t.id}-shared-bg`;let n=this._map.getLayer(e);return n||(n=Object.assign({},t,{id:e}),this._map.addLayer(n,r.id)),n})}_updateFeatures(){this._features=this._getIndoorFeatures();const t=(0,_.A)(this._features,t=>t.layer.id+":"+t.properties.id),e=[],r=[],n=[];for(const i of t){const t=i.layer.id;t===S?e.push(i):t===B?r.push(i):t===a.ASSISTANT_LAYER_SHARED_FLOORS&&n.push(i)}this._allVenuesMap=new Map(e.map(t=>[t.properties.id,t])),this._allBuildingsMap=new Map(r.map(t=>[t.properties.id,t])),this._allSharedLevelsMap=new Map(n.map(t=>[t.properties.id,t]))}_calExcludedPoisInMiddle(){const t=this._map.querySourceFeatures("indoor-planet",{sourceLayer:"mapxus_place"}),e=t=>{if(!t)return!1;return(0,s.S)(t).some(t=>this._upperLevels.has(t))},r=t.filter(t=>{const r=t.properties["ref:level"]||t.properties["ref:shared_level"];return!!this._middleLevels.has(r)&&e(t.properties.overlap)});this._excludedPoisInMiddle=r.map(t=>t.properties["osm:ref"])}_updateSelectedFeatures(){if(this._featureIncomplete){if(this._isSelectSharedFloor){const t=this._features.find(t=>t.properties.id===this._curVenueId);if(!t)return;this._curVenueFeature=t}else{const t=this._allBuildingsMap.get(this._curBuildingId);if(!t)return;this._curBuildingFeature=t}this._featureIncomplete=!1}}_layerFloors(){const{displayedLevels:t,selectedLevelIds:e,alwaysDisplayedSharedLevelIds:r,hiddenBuildingIds:n,maskBuildingIds:i,maskSharedFloorIds:o}=this._classifyFloors();this._isMaskMode&&(this._maskBuildings.clear(),i.forEach(t=>this._maskBuildings.add(t)),this._maskSharedFloors.clear(),o.forEach(t=>this._maskSharedFloors.add(t)),this._upperLevels.clear(),this._middleLevels.clear(),this._lowerLevels.clear()),this._layerSelectedLevels(t,e,r),this._layerUnselectedLevels(t,e,r),n.forEach(t=>{this._hiddenBuildings.has(t)||this._hiddenBuildings.add(t)})}_layerSelectedLevels(t,e,r){for(const n of e){this._upperLevels.has(n)||(this._middleLevels.delete(n),this._lowerLevels.delete(n),this._upperLevels.add(n));const e=t.find(({level:t,overlap:e})=>t===n&&!!e);if(e)for(const t of e.overlap)this._upperLevels.has(t)&&(this._upperLevels.delete(t),r.includes(t)?this._lowerLevels.add(t):this._middleLevels.add(t))}}_layerUnselectedLevels(t,e,r){for(const n of t){if(e.includes(n.level))continue;const{level:t,overlap:i}=n,o=!i||!i.some(t=>this._upperLevels.has(t)),s=r.includes(t);o?s?this._lowerLevels.add(t):this._upperLevels.add(t):s?this._lowerLevels.add(t):this._middleLevels.add(t)}}_classifyFloors(){const t=[],e=[],r=[],n=[],i=[],o=[],a=[...this._allVenuesMap.values()],c=this._curVenueId?[this._allVenuesMap.get(this._curVenueId),...a.filter(t=>t.properties.id!==this._curVenueId)]:a;for(const a of c){if(!a||!a.properties)continue;const{id:c,overlap:u,building_ids:l,shared_level_ids:d,default_displayed_ordinal:h}=a.properties,f=c===this._curVenueId,p=N(u),y=(0,s.S)(l),g=this._history.getBuildingUnitByVenue(c);let m=g?this._history.getOrdinalByBuildingUnit(g.id):h;m||(m=this._setVenueInitOrdinal(c,y)),m&&(y.forEach(r=>{const o=this._allBuildingsMap.get(r),s=this._getBuildingDisplayedLevel(o,m);s?this._isMaskMode?f?(e.push(s),t.push({level:s,overlap:p.get(s)??null})):i.push(r):(t.push({level:s,overlap:p.get(s)??null}),f&&e.push(s)):n.push(r)}),(0,s.S)(d).forEach(i=>{const s=this._allSharedLevelsMap.get(i),{ordinal:a,persistence:c=!1}=s?.properties||{},u=Boolean(c)&&0<=a&&a<=m,l=a===m,d=u||l,h={level:i,overlap:p.get(i)??null};d?this._isMaskMode?f?(t.push(h),u&&r.push(i),l&&e.push(i)):o.push(i):(t.push(h),f&&l&&e.push(i),u&&r.push(i)):n.push(i)}))}return{displayedLevels:t,hiddenBuildingIds:n,maskBuildingIds:i,maskSharedFloorIds:o,alwaysDisplayedSharedLevelIds:r,selectedLevelIds:e}}_setVenueInitOrdinal(t,e){const r=e.find(t=>this._allBuildingsMap.has(t)),n=r?this._allBuildingsMap.get(r):null,i=n?this._getBuildingDefaultOrdinal(n):null;return i&&(this._history.setOrdinalByBuildingUnit(r,i),this._history.setBuildingUnitByVenue(t,{id:r,type:"building"})),i}_getBuildingDisplayedLevel(t,e){if(!t||!t.properties)return null;const{level_ids:r,ordinals:n}=t.properties,i=(0,s.S)(n).findIndex(t=>t===e);return(0,s.S)(r)[i]??null}_filterLayers(){this._filterIndoorLayers([...this._upperLevels,...this._middleLevels],this._commonLayers),this._filterIndoorLayers([...this._upperLevels],this._upperLayers),this._filterIndoorLayers([...this._middleLevels],this._middleLayers),this._filterIndoorLayers([...this._lowerLevels],this._lowerLayers)}_filterIndoorLayers(t,e){let r;for(const n of e){const{id:e,filter:i,type:o,"source-layer":s}=n,a=e.includes("-shared-bg"),c=[...this._maskBuildings],u=[...this._maskSharedFloors];C(s,o)||P(s,o)||(F(s,o)?r=["all",M(s,o)?["!in","ref:building",...c]:["!in","id",...u],["in","id",...t],i]:a?r=["all",["!in","ref:shared_level",...u],["in","ref:shared_level",...t],i]:(r=["all",["any",["all",["!in","ref:building",...c],["in","ref:level",...t]],["all",["!in","ref:shared_level",...u],["in","ref:shared_level",...t]]],i],H(s,o)&&r.splice(1,0,["any",["!has","overlap"],["any",["in","ref:level",...this._upperLevels],["in","ref:shared_level",...this._upperLevels],["!in","osm:ref",...this._excludedPoisInMiddle]]])),this._map.setFilter(e,r))}}async _updateIndoorState(t,e){if(!t)return void this._clear();if(!t.properties)return;const{id:r,"ref:venue":n,level_ids:i,ordinals:a}=t.properties;if(this._curVenueId!==n){this._curVenueId=n;let t=this.getFeaturesById(n,{layerIds:[S]})[0]??null;if(!t)try{const e=(await T.searchByIds(n)).data.result.venues[0];t=(0,o.E)(e)}catch(t){throw t}this._curVenueFeature=t}if(this._curBuildingFeature=t,this._curBuildingId=r,e){const t=(0,s.S)(i).findIndex(t=>t===e);this._floor.ordinal=(0,s.S)(a)[t]??null}else{const e=this._history.getBuildingUnitByVenue(n);this._floor.ordinal=e?this._history.getOrdinalByBuildingUnit(e.id):this._getBuildingDefaultOrdinal(t)}}_updateFloorState(t){if(this._floor={code:null,id:null,ordinal:t},!t)return;const{code:e,id:r}=this._getBuildingFloorByOrdinal(this._curBuildingFeature,t);this._floor.code=e,this._floor.id=r,this._history.setOrdinalByBuildingUnit(this._curBuildingId,t),this._history.setBuildingUnitByVenue(this._curVenueId,{id:this._curBuildingId,type:"building"})}_resetSelectedDisplayedLevel(){const{building_ids:t,shared_level_ids:e}=this._curVenueFeature.properties,r=(0,s.S)(t),n=(0,s.S)(e);for(const t of r){const e=this._allBuildingsMap.get(t);if(!e)continue;const r=(0,s.S)(e.properties.level_ids);n.push(...r),this._hiddenBuildings.delete(t),this._isMaskMode&&this._maskBuildings.delete(t)}for(const t of n)this._upperLevels.delete(t),this._middleLevels.delete(t),this._lowerLevels.delete(t),this._isMaskMode&&this._maskSharedFloors.delete(t)}async _checkAndPanToBuilding(){this.getFeaturesById(this._curBuildingId,{layerIds:[B]})[0]||(this._fitBuildingBounds?this.fitBuildingBbox():await this.panToBuildingCenter())}async _queryFeatureByPoint(t){const e=this._queryVisibleFeature(t);if(!e)return null;let r=null;if(M(e.sourceLayer,e.layer.type)){const{id:t,"ref:building":n}=e.properties;let i=this._allBuildingsMap.get(n);if(!i){const t=await(0,d.pT)(n);i=(0,o.r)(t),this._featureIncomplete=!0}i&&(r={building:i,floorId:t})}else if(U(e.sourceLayer,e.layer.type)){const{id:t,ordinal:n,name:i,"ref:venue":s}=e.properties;let a=this._allVenuesMap.get(s);if(!a){const t=await(0,d.qT)(s);a=(0,o.E)(t),this._featureIncomplete=!0}a&&(r={sharedLevel:{id:t,ordinal:n,name:"string"==typeof i?{default:i}:i},venue:a})}else r={building:e};return r}_queryVisibleFeature(t){const e=[I,x,`${I}-overlap-copy`,`${x}-overlap-copy`,`${x}-shared-bg`,...this._isMaskMode?[c.Zj,a.ASSISTANT_LAYER_SHARED_FLOORS]:[]].filter(t=>!!this._map.getLayer(t)),r=this._map.queryRenderedFeatures(t,{layers:e});let n=null;for(const t of e){const e=r.find(e=>e.layer.id===t);if(e){n=e;break}}return n&&P(n.sourceLayer,n.layer.type)&&(this._maskBuildings.has(n.properties.id)||(n=null)),n}_queryRenderedFeatures(t){const e=(t||[]).filter(t=>this._map.getLayer(t)),r=e.length?{layers:e}:void 0,n=this._map.getCanvas().getBoundingClientRect();return this._map.queryRenderedFeatures([[0,0],[n.width,n.height]],r)}_dispatchIndoorMapLoaded(){this._indoorMapLoaded||(this._indoorMapLoaded=!0,this.emit(A))}}function R(t,e){const r="number"==typeof t&&t===l.sy.lineWidth,n="number"==typeof e&&e===l.sy.lineOffset;return n?r&&n?["interpolate",["linear"],["zoom"],18,-1.5,20.2,-3.75,20.4,-3.8,21.5,-7.5,22,-9.55]:!r&&n?"number"==typeof t?-t/2:e:void 0:e}function C(t,e){return"mapxus_venue"===t&&"fill"===e}function P(t,e){return"mapxus_building"===t&&("fill"===e||"line"===e||"symbol"===e)}function F(t,e){return M(t,e)||U(t,e)}function M(t,e){return"mapxus_level"===t&&("fill"===e||"line"===e)}function U(t,e){return"mapxus_shared_level"===t&&("fill"===e||"line"===e)}function H(t,e){return"mapxus_place"===t&&"symbol"===e}function j(t){return"fill-extrusion"===t}function N(t){const e=new Map;if(!t)return e;for(const r of(0,s.S)(t,"/")){const[t,n]=(0,s.S)(r,":");e.set(t,(0,s.S)(n))}return e}},5647:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=(0,r(367).A)(Object.getPrototypeOf,Object)},5664:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(8182),i=0;const o=function(t){var e=++i;return(0,n.A)(t)+e}},5668:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},5706:(t,e,r)=>{"use strict";r.d(e,{Q:()=>n});class n{static instance;_hiddenBuildings;constructor(){this._hiddenBuildings=new Set}static getInstance(){return n.instance||(n.instance=new n),n.instance}getHiddenBuildings(){return this._hiddenBuildings}}},5707:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},5722:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(608),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;const s=(0,n.A)(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e})},5781:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(1275),i=r(5530),o=r(7809),s=r(4099),a=r(9109),c=r(9959);const u=function(t,e,r){var u=-1,l=i.A,d=t.length,h=!0,f=[],p=f;if(r)h=!1,l=o.A;else if(d>=200){var y=e?null:(0,a.A)(t);if(y)return(0,c.A)(y);h=!1,l=s.A,p=new n.A}else p=e?[]:f;t:for(;++u<d;){var g=t[u],m=e?e(g):g;if(g=r||0!==g?g:0,h&&m==m){for(var _=p.length;_--;)if(p[_]===m)continue t;e&&p.push(m),f.push(g)}else l(p,m,r)||(p!==f&&p.push(m),f.push(g))}return f}},5861:(t,e,r)=>{"use strict";r.d(e,{A:()=>w});var n=r(2732),i=r(8335),o=r(180),s=r(9857),a=r(3631),c=r(9672),u=r(1121),l="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",y=(0,u.A)(n.A),g=(0,u.A)(i.A),m=(0,u.A)(o.A),_=(0,u.A)(s.A),b=(0,u.A)(a.A),v=c.A;(n.A&&v(new n.A(new ArrayBuffer(1)))!=p||i.A&&v(new i.A)!=l||o.A&&v(o.A.resolve())!=d||s.A&&v(new s.A)!=h||a.A&&v(new a.A)!=f)&&(v=function(t){var e=(0,c.A)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,u.A)(r):"";if(n)switch(n){case y:return p;case g:return l;case m:return d;case _:return h;case b:return f}return e});const w=v},5917:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(5088),i=r(9846),o=r(1521),s=r(2509),a=r(549);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const u=c},5978:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=r(7275),i=r(3967),o=r(7352),s=r(8683),a=r(4662),c=r(8262),u=r(3390),l=r(7110);const d=u.A.validators;class h{constructor(t){this.defaults=t||{},this.interceptors={request:new o.A,response:new o.A}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=(0,a.A)(this.defaults,e);const{transitional:r,paramsSerializer:i,headers:o}=e;void 0!==r&&u.A.assertOptions(r,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1),null!=i&&(n.A.isFunction(i)?e.paramsSerializer={serialize:i}:u.A.assertOptions(i,{encode:d.function,serialize:d.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),u.A.assertOptions(e,{baseUrl:d.spelling("baseURL"),withXsrfToken:d.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let c=o&&n.A.merge(o.common,o[e.method]);o&&n.A.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=l.A.concat(c,o);const h=[];let f=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(f=f&&t.synchronous,h.unshift(t.fulfilled,t.rejected))});const p=[];let y;this.interceptors.response.forEach(function(t){p.push(t.fulfilled,t.rejected)});let g,m=0;if(!f){const t=[s.A.bind(this),void 0];for(t.unshift.apply(t,h),t.push.apply(t,p),g=t.length,y=Promise.resolve(e);m<g;)y=y.then(t[m++],t[m++]);return y}g=h.length;let _=e;for(m=0;m<g;){const t=h[m++],e=h[m++];try{_=t(_)}catch(t){e.call(this,t);break}}try{y=s.A.call(this,_)}catch(t){return Promise.reject(t)}for(m=0,g=p.length;m<g;)y=y.then(p[m++],p[m++]);return y}getUri(t){t=(0,a.A)(this.defaults,t);const e=(0,c.A)(t.baseURL,t.url,t.allowAbsoluteUrls);return(0,i.A)(e,t.params,t.paramsSerializer)}}n.A.forEach(["delete","get","head","options"],function(t){h.prototype[t]=function(e,r){return this.request((0,a.A)(r||{},{method:t,url:e,data:(r||{}).data}))}}),n.A.forEach(["post","put","patch"],function(t){function e(e){return function(r,n,i){return this.request((0,a.A)(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}h.prototype[t]=e(),h.prototype[t+"Form"]=e(!0)});const f=h},5997:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},6013:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(7275),i=r(4062),o=r(807),s=r(665),a=r(1076),c=r(3820),u=r(7887);const l={transitional:o.A,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",i=r.indexOf("application/json")>-1,o=n.A.isObject(t);o&&n.A.isHTMLForm(t)&&(t=new FormData(t));if(n.A.isFormData(t))return i?JSON.stringify((0,u.A)(t)):t;if(n.A.isArrayBuffer(t)||n.A.isBuffer(t)||n.A.isStream(t)||n.A.isFile(t)||n.A.isBlob(t)||n.A.isReadableStream(t))return t;if(n.A.isArrayBufferView(t))return t.buffer;if(n.A.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return(0,a.A)(t,this.formSerializer).toString();if((c=n.A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return(0,s.A)(c?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||i?(e.setContentType("application/json",!1),function(t,e,r){if(n.A.isString(t))try{return(e||JSON.parse)(t),n.A.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||l.transitional,r=e&&e.forcedJSONParsing,o="json"===this.responseType;if(n.A.isResponse(t)||n.A.isReadableStream(t))return t;if(t&&n.A.isString(t)&&(r&&!this.responseType||o)){const r=!(e&&e.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw i.A.from(t,i.A.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:c.A.classes.FormData,Blob:c.A.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};n.A.forEach(["delete","get","head","post","put","patch"],t=>{l.headers[t]={}});const d=l},6031:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}},6034:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(2141),i=r(8672),o=r(1470);const s=function(t,e){return(0,o.A)(t,(0,i.A)((0,n.A)(e)))}},6224:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return t<e}},6242:(t,e,r)=>{"use strict";r.d(e,{k:()=>a});var n=r(7007),i=r(5537),o=r(3574),s=r(3207);class a extends n.EventEmitter{_appId=null;_secret=null;isClosed=!1;_timeoutId;_isInitialized=!1;_initializationPromise;_tokenManager=s.t.getInstance();_from;constructor(t,e,r=o.en.Access){super(),this._from=r,this._appId=t,this._secret=e,this._initializationPromise=this._initToken()}async ready(){await this._initializationPromise}get appId(){return this._appId}get token(){if(!this._isInitialized)throw new Error("Token is not initialized yet. Use the 'ready' method to wait for initialization.");return this._tokenManager.getToken(this._appId)}close(){this.isClosed||(this._timeoutId&&clearTimeout(this._timeoutId),this._tokenManager.deleteToken(this._appId,this._from),this.emit("updated",{appId:this._appId,token:null}),Object.keys(this).forEach(t=>{"isClosed"!==t&&"_events"!==t&&delete this[t]}),this.isClosed=!0,this.emit("closed"),delete this._events,Object.freeze(this))}forceUpdateToken(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null),this._isInitialized=!1,this._initializationPromise=this._initToken()}async _initToken(){try{const t=await this._tokenManager.fetchToken(this._appId,this._secret);this._isInitialized=!0,this._tokenManager.updateToken({appId:this._appId,secret:this._secret,token:t,from:this._from});const e=(0,i.s)(t),r=1e3*(e.exp-e.iat-60);this._loopUpdateToken(r)}catch(t){throw this.emit("error",new Error("Failed to initialize token.",{cause:t})),t}}_loopUpdateToken(t){this.isClosed||(this._timeoutId=setTimeout(async()=>{try{const e=await this._tokenManager.fetchToken(this._appId,this._secret);this._tokenManager.updateToken({appId:this._appId,secret:this._secret,token:e,from:this._from}),this.emit("updated",{appId:this._appId,token:e}),this._loopUpdateToken(t)}catch(t){this.emit("error",new Error("Failed to update token.",{cause:t}))}},t))}}},6263:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(7275),i=r(3119),o=r(7013),s=r(7960),a=r(4062);const c={http:i.A,xhr:o.A,fetch:s.A};n.A.forEach(c,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const u=t=>`- ${t}`,l=t=>n.A.isFunction(t)||null===t||!1===t,d={getAdapter:t=>{t=n.A.isArray(t)?t:[t];const{length:e}=t;let r,i;const o={};for(let n=0;n<e;n++){let e;if(r=t[n],i=r,!l(r)&&(i=c[(e=String(r)).toLowerCase()],void 0===i))throw new a.A(`Unknown adapter '${e}'`);if(i)break;o[e||"#"+n]=i}if(!i){const t=Object.entries(o).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let r=e?t.length>1?"since :\n"+t.map(u).join("\n"):" "+u(t[0]):"as no adapter specified";throw new a.A("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:c}},6294:(t,e,r)=>{"use strict";r.d(e,{B:()=>n});class n{_indoor;_isEnabled=!0;constructor(t){this._indoor=t}enable(){this._isEnabled=!0,this._indoor.setAllowOutdoorSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowOutdoorSwitch(!1)}get isEnabled(){return this._isEnabled}}},6305:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(3820);const i=n.A.hasStandardBrowserEnv?(o=new URL(n.A.origin),s=n.A.navigator&&/(msie|trident)/i.test(n.A.navigator.userAgent),t=>(t=new URL(t,n.A.origin),o.protocol===t.protocol&&o.host===t.host&&(s||o.port===t.port))):()=>!0;var o,s},6318:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(7465),i=r(901);const o=function(t,e){for(var r=0,o=(e=(0,n.A)(e,t)).length;null!=t&&r<o;)t=t[(0,i.A)(e[r++])];return r&&r==o?t:void 0}},6358:(t,e,r)=>{"use strict";var n,i,o,s;r.d(e,{Kp:()=>n,LJ:()=>o,_P:()=>i,nH:()=>s}),function(t){t.POINT="Point",t.POLYGON="Polygon"}(n||(n={})),function(t){t.POINT="Point",t.POLYGON="Polygon",t.GATE="Gate"}(i||(i={})),function(t){t.DEFAULT_NAME="DefaultName"}(o||(o={})),function(t){t.ABSOLUTE_DISTANCE="AbsoluteDistance",t.ACTUAL_DISTANCE="ActualDistance"}(s||(s={}))},6377:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.edwards=d,e.eddsa=h,e.twistedEdwards=function(t){const{CURVE:e,curveOpts:r,eddsaOpts:n}=function(t){const e={a:t.a,d:t.d,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp,n=(0,o.Field)(e.n,t.nBitLength,!0),i={Fp:r,Fn:n,uvRatio:t.uvRatio},s={hash:t.hash,randomBytes:t.randomBytes,adjustScalarBytes:t.adjustScalarBytes,domain:t.domain,prehash:t.prehash,mapToCurve:t.mapToCurve};return{CURVE:e,curveOpts:i,eddsaOpts:s}}(t),i=h(d(e,r),n);return function(t,e){const r=Object.assign({},e,{ExtendedPoint:e.Point,CURVE:t});return r}(t,i)};const n=r(8627),i=r(2422),o=r(4967),s=BigInt(0),a=BigInt(1),c=BigInt(2),u=BigInt(8),l={zip215:!0};function d(t,e={}){const{Fp:r,Fn:o}=(0,i._createCurveFields)("edwards",t,e),{h:l,n:d}=t;(0,n._validateObject)(e,{},{uvRatio:"function"});const h=c<<BigInt(8*o.BYTES)-a,f=t=>r.create(t),p=e.uvRatio||((t,e)=>{try{return{isValid:!0,value:r.sqrt(r.div(t,e))}}catch(t){return{isValid:!1,value:s}}});if(!function(t,e,r,n){const i=t.sqr(r),o=t.sqr(n),s=t.add(t.mul(e.a,i),o),a=t.add(t.ONE,t.mul(e.d,t.mul(i,o)));return t.eql(s,a)}(r,t,t.Gx,t.Gy))throw new Error("bad curve params: generator point");function y(t,e,r=!1){const i=r?a:s;return(0,n.aInRange)("coordinate "+t,e,i,h),e}function g(t){if(!(t instanceof b))throw new Error("ExtendedPoint expected")}const m=(0,n.memoized)((t,e)=>{const{ex:n,ey:i,ez:o}=t,c=t.is0();null==e&&(e=c?u:r.inv(o));const l=f(n*e),d=f(i*e),h=f(o*e);if(c)return{x:s,y:a};if(h!==a)throw new Error("invZ was invalid");return{x:l,y:d}}),_=(0,n.memoized)(e=>{const{a:r,d:n}=t;if(e.is0())throw new Error("bad point: ZERO");const{ex:i,ey:o,ez:s,et:a}=e,c=f(i*i),u=f(o*o),l=f(s*s),d=f(l*l),h=f(c*r);if(f(l*f(h+u))!==f(d+f(n*f(c*u))))throw new Error("bad point: equation left != right (1)");if(f(i*o)!==f(s*a))throw new Error("bad point: equation left != right (2)");return!0});class b{constructor(t,e,r,n){this.ex=y("x",t),this.ey=y("y",e),this.ez=y("z",r,!0),this.et=y("t",n),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(t){if(t instanceof b)throw new Error("extended point not allowed");const{x:e,y:r}=t||{};return y("x",e),y("y",r),new b(e,r,a,f(e*r))}static normalizeZ(t){return(0,i.normalizeZ)(b,"ez",t)}static msm(t,e){return(0,i.pippenger)(b,o,t,e)}_setWindowSize(t){this.precompute(t)}precompute(t=8,e=!0){return v.setWindowSize(this,t),e||this.multiply(c),this}assertValidity(){_(this)}equals(t){g(t);const{ex:e,ey:r,ez:n}=this,{ex:i,ey:o,ez:s}=t,a=f(e*s),c=f(i*n),u=f(r*s),l=f(o*n);return a===c&&u===l}is0(){return this.equals(b.ZERO)}negate(){return new b(f(-this.ex),this.ey,this.ez,f(-this.et))}double(){const{a:e}=t,{ex:r,ey:n,ez:i}=this,o=f(r*r),s=f(n*n),a=f(c*f(i*i)),u=f(e*o),l=r+n,d=f(f(l*l)-o-s),h=u+s,p=h-a,y=u-s,g=f(d*p),m=f(h*y),_=f(d*y),v=f(p*h);return new b(g,m,v,_)}add(e){g(e);const{a:r,d:n}=t,{ex:i,ey:o,ez:s,et:a}=this,{ex:c,ey:u,ez:l,et:d}=e,h=f(i*c),p=f(o*u),y=f(a*n*d),m=f(s*l),_=f((i+o)*(c+u)-h-p),v=m-y,w=m+y,A=f(p-r*h),E=f(_*v),S=f(w*A),B=f(_*A),I=f(v*w);return new b(E,S,I,B)}subtract(t){return this.add(t.negate())}multiply(t){const e=t;(0,n.aInRange)("scalar",e,a,d);const{p:r,f:i}=v.wNAFCached(this,e,b.normalizeZ);return b.normalizeZ([r,i])[0]}multiplyUnsafe(t,e=b.ZERO){const r=t;return(0,n.aInRange)("scalar",r,s,d),r===s?b.ZERO:this.is0()||r===a?this:v.wNAFCachedUnsafe(this,r,b.normalizeZ,e)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return v.wNAFCachedUnsafe(this,d).is0()}toAffine(t){return m(this,t)}clearCofactor(){return l===a?this:this.multiplyUnsafe(l)}static fromBytes(t,e=!1){return(0,n.abytes)(t),this.fromHex(t,e)}static fromHex(e,i=!1){const{d:o,a:c}=t,u=r.BYTES;e=(0,n.ensureBytes)("pointHex",e,u),(0,n.abool)("zip215",i);const l=e.slice(),d=e[u-1];l[u-1]=-129&d;const y=(0,n.bytesToNumberLE)(l),g=i?h:r.ORDER;(0,n.aInRange)("pointHex.y",y,s,g);const m=f(y*y),_=f(m-a),v=f(o*m-c);let{isValid:w,value:A}=p(_,v);if(!w)throw new Error("Point.fromHex: invalid y coordinate");const E=(A&a)===a,S=!!(128&d);if(!i&&A===s&&S)throw new Error("Point.fromHex: x=0 and x_0=1");return S!==E&&(A=f(-A)),b.fromAffine({x:A,y})}static fromPrivateScalar(t){return b.BASE.multiply(t)}toBytes(){const{x:t,y:e}=this.toAffine(),i=(0,n.numberToBytesLE)(e,r.BYTES);return i[i.length-1]|=t&a?128:0,i}toRawBytes(){return this.toBytes()}toHex(){return(0,n.bytesToHex)(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}b.BASE=new b(t.Gx,t.Gy,a,f(t.Gx*t.Gy)),b.ZERO=new b(s,a,a,s),b.Fp=r,b.Fn=o;const v=(0,i.wNAF)(b,8*o.BYTES);return b}function h(t,e){(0,n._validateObject)(e,{hash:"function"},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:r,hash:i}=e,{BASE:o,Fp:a,Fn:c}=t,u=c.ORDER,d=e.randomBytes||n.randomBytes,h=e.adjustScalarBytes||(t=>t),f=e.domain||((t,e,r)=>{if((0,n.abool)("phflag",r),e.length||r)throw new Error("Contexts/pre-hash are not supported");return t});function p(t){return c.create(t)}function y(t){return p((0,n.bytesToNumberLE)(t))}function g(t){const{head:e,prefix:r,scalar:s}=function(t){const e=a.BYTES;t=(0,n.ensureBytes)("private key",t,e);const r=(0,n.ensureBytes)("hashed private key",i(t),2*e),o=h(r.slice(0,e));return{head:o,prefix:r.slice(e,2*e),scalar:y(o)}}(t),c=o.multiply(s),u=c.toBytes();return{head:e,prefix:r,scalar:s,point:c,pointBytes:u}}function m(t=Uint8Array.of(),...e){const o=(0,n.concatBytes)(...e);return y(i(f(o,(0,n.ensureBytes)("context",t),!!r)))}const _=l;o.precompute(8);return{getPublicKey:function(t){return g(t).pointBytes},sign:function(t,e,i={}){t=(0,n.ensureBytes)("message",t),r&&(t=r(t));const{prefix:c,scalar:l,pointBytes:d}=g(e),h=m(i.context,c,t),f=o.multiply(h).toBytes(),y=p(h+m(i.context,f,d,t)*l);(0,n.aInRange)("signature.s",y,s,u);const _=a.BYTES,b=(0,n.concatBytes)(f,(0,n.numberToBytesLE)(y,_));return(0,n.ensureBytes)("result",b,2*_)},verify:function(e,i,s,c=_){const{context:u,zip215:l}=c,d=a.BYTES;e=(0,n.ensureBytes)("signature",e,2*d),i=(0,n.ensureBytes)("message",i),s=(0,n.ensureBytes)("publicKey",s,d),void 0!==l&&(0,n.abool)("zip215",l),r&&(i=r(i));const h=(0,n.bytesToNumberLE)(e.slice(d,2*d));let f,p,y;try{f=t.fromHex(s,l),p=t.fromHex(e.slice(0,d),l),y=o.multiplyUnsafe(h)}catch(t){return!1}if(!l&&f.isSmallOrder())return!1;const g=m(u,p.toBytes(),f.toBytes(),i);return p.add(f.multiplyUnsafe(g)).subtract(y).clearCofactor().is0()},utils:{getExtendedPublicKey:g,randomPrivateKey:()=>d(a.BYTES),precompute:(e=8,r=t.BASE)=>r.precompute(e,!1)},Point:t}}},6474:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(1038),i=r(7500),o=r(7511),s=r(6586),a=r(9396),c=r(5997),u=r(901);const l=function(t,e){return(0,s.A)(t)&&(0,a.A)(e)?(0,c.A)((0,u.A)(t),e):function(r){var s=(0,i.A)(r,t);return void 0===s&&s===e?(0,o.A)(r,t):(0,n.A)(e,s,3)}}},6501:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n="undefined"!=typeof Blob?Blob:null},6527:(t,e)=>{"use strict";function r(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function n(t){if("boolean"!=typeof t)throw new Error(`boolean expected, not ${t}`)}function i(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function o(t,...e){if(!r(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function s(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}Object.defineProperty(e,"__esModule",{value:!0}),e.wrapCipher=e.Hash=e.nextTick=e.isLE=void 0,e.isBytes=r,e.abool=n,e.anumber=i,e.abytes=o,e.ahash=function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");i(t.outputLen),i(t.blockLen)},e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){o(t);const r=e.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)},e.u8=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},e.u32=function(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))},e.clean=function(...t){for(let e=0;e<t.length;e++)t[e].fill(0)},e.createView=s,e.bytesToHex=u,e.hexToBytes=h,e.hexToNumber=f,e.bytesToNumberBE=function(t){return f(u(t))},e.numberToBytesBE=function(t,e){return h(t.toString(16).padStart(2*e,"0"))},e.utf8ToBytes=p,e.bytesToUtf8=function(t){return(new TextDecoder).decode(t)},e.toBytes=function(t){if("string"==typeof t)t=p(t);else{if(!r(t))throw new Error("Uint8Array expected, got "+typeof t);t=_(t)}return t},e.overlapBytes=y,e.complexOverlapBytes=function(t,e){if(y(t,e)&&t.byteOffset<e.byteOffset)throw new Error("complex overlap of input and output is not supported")},e.concatBytes=function(...t){let e=0;for(let r=0;r<t.length;r++){const n=t[r];o(n),e+=n.length}const r=new Uint8Array(e);for(let e=0,n=0;e<t.length;e++){const i=t[e];r.set(i,n),n+=i.length}return r},e.checkOpts=function(t,e){if(null==e||"object"!=typeof e)throw new Error("options must be defined");return Object.assign(t,e)},e.equalBytes=function(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return 0===r},e.getOutput=function(t,e,r=!0){if(void 0===e)return new Uint8Array(t);if(e.length!==t)throw new Error("invalid output length, expected "+t+", got: "+e.length);if(r&&!m(e))throw new Error("invalid output, must be aligned");return e},e.setBigUint64=g,e.u64Lengths=function(t,e,r){n(r);const i=new Uint8Array(16),o=s(i);return g(o,0,BigInt(e),r),g(o,8,BigInt(t),r),i},e.isAligned32=m,e.copyBytes=_,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];const a=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),c=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function u(t){if(o(t),a)return t.toHex();let e="";for(let r=0;r<t.length;r++)e+=c[t[r]];return e}const l={_0:48,_9:57,A:65,F:70,a:97,f:102};function d(t){return t>=l._0&&t<=l._9?t-l._0:t>=l.A&&t<=l.F?t-(l.A-10):t>=l.a&&t<=l.f?t-(l.a-10):void 0}function h(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(a)return Uint8Array.fromHex(t);const e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const n=new Uint8Array(r);for(let e=0,i=0;e<r;e++,i+=2){const r=d(t.charCodeAt(i)),o=d(t.charCodeAt(i+1));if(void 0===r||void 0===o){const e=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+i)}n[e]=16*r+o}return n}function f(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return BigInt(""===t?"0":"0x"+t)}function p(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function y(t,e){return t.buffer===e.buffer&&t.byteOffset<e.byteOffset+e.byteLength&&e.byteOffset<t.byteOffset+t.byteLength}e.nextTick=async()=>{};e.Hash=class{};function g(t,e,r,n){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,r,n);const i=BigInt(32),o=BigInt(4294967295),s=Number(r>>i&o),a=Number(r&o),c=n?4:0,u=n?0:4;t.setUint32(e+c,s,n),t.setUint32(e+u,a,n)}function m(t){return t.byteOffset%4==0}function _(t){return Uint8Array.from(t)}e.wrapCipher=(t,r)=>{function n(n,...i){if(o(n),!e.isLE)throw new Error("Non little-endian hardware is not yet supported");if(void 0!==t.nonceLength){const e=i[0];if(!e)throw new Error("nonce / iv required");t.varSizeNonce?o(e):o(e,t.nonceLength)}const s=t.tagLength;s&&void 0!==i[1]&&o(i[1]);const a=r(n,...i),c=(t,e)=>{if(void 0!==e){if(2!==t)throw new Error("cipher output not supported");o(e)}};let u=!1;return{encrypt(t,e){if(u)throw new Error("cannot encrypt() twice with same key + nonce");return u=!0,o(t),c(a.encrypt.length,e),a.encrypt(t,e)},decrypt(t,e){if(o(t),s&&t.length<s)throw new Error("invalid ciphertext length: smaller than tagLength="+s);return c(a.decrypt.length,e),a.decrypt(t,e)}}}return Object.assign(n,t),n}},6568:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>Lt});var n=r(1635),i="4.6.2";function o(t,e){return new Promise(function(r){return setTimeout(r,t,e)})}function s(t){return!!t&&"function"==typeof t.then}function a(t,e){try{var r=t();s(r)?r.then(function(t){return e(!0,t)},function(t){return e(!1,t)}):e(!0,r)}catch(t){e(!1,t)}}function c(t,e,r){return void 0===r&&(r=16),(0,n.sH)(this,void 0,void 0,function(){var i,o,s,a;return(0,n.YH)(this,function(n){switch(n.label){case 0:i=Array(t.length),o=Date.now(),s=0,n.label=1;case 1:return s<t.length?(i[s]=e(t[s],s),(a=Date.now())>=o+r?(o=a,[4,new Promise(function(t){var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(null)})]):[3,3]):[3,4];case 2:n.sent(),n.label=3;case 3:return++s,[3,1];case 4:return[2,i]}})})}function u(t){return t.then(void 0,function(){}),t}function l(t){return parseInt(t)}function d(t){return parseFloat(t)}function h(t,e){return"number"==typeof t&&isNaN(t)?e:t}function f(t){return t.reduce(function(t,e){return t+(e?1:0)},0)}function p(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var r=1/e;return Math.round(t*r)/r}function y(t,e){var r=t[0]>>>16,n=65535&t[0],i=t[1]>>>16,o=65535&t[1],s=e[0]>>>16,a=65535&e[0],c=e[1]>>>16,u=0,l=0,d=0,h=0;d+=(h+=o+(65535&e[1]))>>>16,h&=65535,l+=(d+=i+c)>>>16,d&=65535,u+=(l+=n+a)>>>16,l&=65535,u+=r+s,u&=65535,t[0]=u<<16|l,t[1]=d<<16|h}function g(t,e){var r=t[0]>>>16,n=65535&t[0],i=t[1]>>>16,o=65535&t[1],s=e[0]>>>16,a=65535&e[0],c=e[1]>>>16,u=65535&e[1],l=0,d=0,h=0,f=0;h+=(f+=o*u)>>>16,f&=65535,d+=(h+=i*u)>>>16,h&=65535,d+=(h+=o*c)>>>16,h&=65535,l+=(d+=n*u)>>>16,d&=65535,l+=(d+=i*c)>>>16,d&=65535,l+=(d+=o*a)>>>16,d&=65535,l+=r*u+n*c+i*a+o*s,l&=65535,t[0]=l<<16|d,t[1]=h<<16|f}function m(t,e){var r=t[0];32===(e%=64)?(t[0]=t[1],t[1]=r):e<32?(t[0]=r<<e|t[1]>>>32-e,t[1]=t[1]<<e|r>>>32-e):(e-=32,t[0]=t[1]<<e|r>>>32-e,t[1]=r<<e|t[1]>>>32-e)}function _(t,e){0!==(e%=64)&&(e<32?(t[0]=t[1]>>>32-e,t[1]=t[1]<<e):(t[0]=t[1]<<e-32,t[1]=0))}function b(t,e){t[0]^=e[0],t[1]^=e[1]}var v=[4283543511,3981806797],w=[3301882366,444984403];function A(t){var e=[0,t[0]>>>1];b(t,e),g(t,v),e[1]=t[0]>>>1,b(t,e),g(t,w),e[1]=t[0]>>>1,b(t,e)}var E=[2277735313,289559509],S=[1291169091,658871167],B=[0,5],I=[0,1390208809],x=[0,944331445];function L(t,e){var r=function(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n>127)return(new TextEncoder).encode(t);e[r]=n}return e}(t);e=e||0;var n,i=[0,r.length],o=i[1]%16,s=i[1]-o,a=[0,e],c=[0,e],u=[0,0],l=[0,0];for(n=0;n<s;n+=16)u[0]=r[n+4]|r[n+5]<<8|r[n+6]<<16|r[n+7]<<24,u[1]=r[n]|r[n+1]<<8|r[n+2]<<16|r[n+3]<<24,l[0]=r[n+12]|r[n+13]<<8|r[n+14]<<16|r[n+15]<<24,l[1]=r[n+8]|r[n+9]<<8|r[n+10]<<16|r[n+11]<<24,g(u,E),m(u,31),g(u,S),b(a,u),m(a,27),y(a,c),g(a,B),y(a,I),g(l,S),m(l,33),g(l,E),b(c,l),m(c,31),y(c,a),g(c,B),y(c,x);u[0]=0,u[1]=0,l[0]=0,l[1]=0;var d=[0,0];switch(o){case 15:d[1]=r[n+14],_(d,48),b(l,d);case 14:d[1]=r[n+13],_(d,40),b(l,d);case 13:d[1]=r[n+12],_(d,32),b(l,d);case 12:d[1]=r[n+11],_(d,24),b(l,d);case 11:d[1]=r[n+10],_(d,16),b(l,d);case 10:d[1]=r[n+9],_(d,8),b(l,d);case 9:d[1]=r[n+8],b(l,d),g(l,S),m(l,33),g(l,E),b(c,l);case 8:d[1]=r[n+7],_(d,56),b(u,d);case 7:d[1]=r[n+6],_(d,48),b(u,d);case 6:d[1]=r[n+5],_(d,40),b(u,d);case 5:d[1]=r[n+4],_(d,32),b(u,d);case 4:d[1]=r[n+3],_(d,24),b(u,d);case 3:d[1]=r[n+2],_(d,16),b(u,d);case 2:d[1]=r[n+1],_(d,8),b(u,d);case 1:d[1]=r[n],b(u,d),g(u,E),m(u,31),g(u,S),b(a,u)}return b(a,i),b(c,i),y(a,c),y(c,a),A(a),A(c),y(a,c),y(c,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}function O(t){return"function"!=typeof t}function T(t,e,r,i){var o=Object.keys(t).filter(function(t){return!function(t,e){for(var r=0,n=t.length;r<n;++r)if(t[r]===e)return!0;return!1}(r,t)}),s=u(c(o,function(r){return function(t,e){var r=u(new Promise(function(r){var n=Date.now();a(t.bind(null,e),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=Date.now()-n;if(!t[0])return r(function(){return{error:t[1],duration:i}});var o=t[1];if(O(o))return r(function(){return{value:o,duration:i}});r(function(){return new Promise(function(t){var e=Date.now();a(o,function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=i+Date.now()-e;if(!r[0])return t({error:r[1],duration:o});t({value:r[1],duration:o})})})})})}));return function(){return r.then(function(t){return t()})}}(t[r],e)},i));return function(){return(0,n.sH)(this,void 0,void 0,function(){var t,e,r,a;return(0,n.YH)(this,function(n){switch(n.label){case 0:return[4,s];case 1:return[4,c(n.sent(),function(t){return u(t())},i)];case 2:return t=n.sent(),[4,Promise.all(t)];case 3:for(e=n.sent(),r={},a=0;a<o.length;++a)r[o[a]]=e[a];return[2,r]}})})}}function k(){var t=window,e=navigator;return f(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function R(){var t=window,e=navigator;return f(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===(e.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function C(){var t=window;return f(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===navigator.vendor.indexOf("Apple"),"RGBColor"in t,"WebKitMediaKeys"in t])>=4}function P(){var t=window,e=t.HTMLElement,r=t.Document;return f(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),r&&"pointerLockElement"in r.prototype])>=4}function F(){var t,e=window;return t=e.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))&&"[object WebPageNamespace]"===String(e.browser)}function M(){var t,e,r=window;return f(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}function U(){var t=window,e=navigator,r=t.CSS,n=t.HTMLButtonElement;return f([!("getStorageUpdates"in e),n&&"popover"in n.prototype,"CSSCounterStyleRule"in t,r.supports("font-size-adjust: ex-height 0.5"),r.supports("text-transform: full-width")])>=4}function H(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function j(){var t=R(),e=M(),r=window,n=navigator,i="connection";return t?f([!("SharedWorker"in r),n[i]&&"ontypechange"in n[i],!("sinkId"in new Audio)])>=2:!!e&&f(["onorientationchange"in r,"orientation"in r,/android/i.test(n.appVersion)])>=2}function N(t){var e=new Error(t);return e.name=t,e}function V(t,e,r){var i,s,a;return void 0===r&&(r=50),(0,n.sH)(this,void 0,void 0,function(){var c,u;return(0,n.YH)(this,function(n){switch(n.label){case 0:c=document,n.label=1;case 1:return c.body?[3,3]:[4,o(r)];case 2:return n.sent(),[3,1];case 3:u=c.createElement("iframe"),n.label=4;case 4:return n.trys.push([4,,10,11]),[4,new Promise(function(t,r){var n=!1,i=function(){n=!0,t()};u.onload=i,u.onerror=function(t){n=!0,r(t)};var o=u.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",e&&"srcdoc"in u?u.srcdoc=e:u.src="about:blank",c.body.appendChild(u);var s=function(){var t,e;n||("complete"===(null===(e=null===(t=u.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?i():setTimeout(s,10))};s()})];case 5:n.sent(),n.label=6;case 6:return(null===(s=null===(i=u.contentWindow)||void 0===i?void 0:i.document)||void 0===s?void 0:s.body)?[3,8]:[4,o(r)];case 7:return n.sent(),[3,6];case 8:return[4,t(u,u.contentWindow)];case 9:return[2,n.sent()];case 10:return null===(a=u.parentNode)||void 0===a||a.removeChild(u),[7];case 11:return[2]}})})}function D(t){for(var e=function(t){for(var e,r,n="Unexpected syntax '".concat(t,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(t),o=i[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(t,e){s[t]=s[t]||[],s[t].push(e)};;){var u=a.exec(i[2]);if(!u)break;var l=u[0];switch(l[0]){case".":c("class",l.slice(1));break;case"#":c("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(n);c(d[1],null!==(r=null!==(e=d[4])&&void 0!==e?e:d[5])&&void 0!==r?r:"");break;default:throw new Error(n)}}return[o,s]}(t),r=e[0],n=e[1],i=document.createElement(null!=r?r:"div"),o=0,s=Object.keys(n);o<s.length;o++){var a=s[o],c=n[a].join(" ");"style"===a?$(i.style,c):i.setAttribute(a,c)}return i}function $(t,e){for(var r=0,n=e.split(";");r<n.length;r++){var i=n[r],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(o){var s=o[1],a=o[2],c=o[4];t.setProperty(s,a,c||"")}}}var z=["monospace","sans-serif","serif"],G=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function W(t){return t.toDataURL()}var q,Z;function K(){var t=this;return function(){if(void 0===Z){var t=function(){var e=Y();X(e)?Z=setTimeout(t,2500):(q=e,Z=void 0)};t()}}(),function(){return(0,n.sH)(t,void 0,void 0,function(){var t;return(0,n.YH)(this,function(e){switch(e.label){case 0:return X(t=Y())?q?[2,(0,n.fX)([],q,!0)]:(r=document).fullscreenElement||r.msFullscreenElement||r.mozFullScreenElement||r.webkitFullscreenElement?[4,H()]:[3,2]:[3,2];case 1:e.sent(),t=Y(),e.label=2;case 2:return X(t)||(q=t),[2,t]}var r})})}}function Y(){var t=screen;return[h(d(t.availTop),null),h(d(t.width)-d(t.availWidth)-h(d(t.availLeft),0),null),h(d(t.height)-d(t.availHeight)-h(d(t.availTop),0),null),h(d(t.availLeft),null)]}function X(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function J(t){var e;return(0,n.sH)(this,void 0,void 0,function(){var r,i,s,a,c,u,l;return(0,n.YH)(this,function(n){switch(n.label){case 0:for(r=document,i=r.createElement("div"),s=new Array(t.length),a={},Q(i),l=0;l<t.length;++l)"DIALOG"===(c=D(t[l])).tagName&&c.show(),Q(u=r.createElement("div")),u.appendChild(c),i.appendChild(u),s[l]=c;n.label=1;case 1:return r.body?[3,3]:[4,o(50)];case 2:return n.sent(),[3,1];case 3:r.body.appendChild(i);try{for(l=0;l<t.length;++l)s[l].offsetParent||(a[t[l]]=!0)}finally{null===(e=i.parentNode)||void 0===e||e.removeChild(i)}return[2,a]}})})}function Q(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function tt(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function et(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function rt(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function nt(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function it(t){return matchMedia("(prefers-reduced-transparency: ".concat(t,")")).matches}function ot(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var st=Math,at=function(){return 0};var ct={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var ut=function(){for(var t=window;;){var e=t.parent;if(!e||e===t)return!1;try{if(e.location.origin!==t.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}t=e}};var lt=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),dt=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),ht=["FRAGMENT_SHADER","VERTEX_SHADER"],ft=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],pt="WEBGL_debug_renderer_info";function yt(t){if(t.webgl)return t.webgl.context;var e,r=document.createElement("canvas");r.addEventListener("webglCreateContextError",function(){return e=void 0});for(var n=0,i=["webgl","experimental-webgl"];n<i.length;n++){var o=i[n];try{e=r.getContext(o)}catch(t){}if(e)break}return t.webgl={context:e},e}function gt(t,e,r){var n=t.getShaderPrecisionFormat(t[e],t[r]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}function mt(t){return Object.keys(t.__proto__).filter(_t)}function _t(t){return"string"==typeof t&&!t.match(/[^A-Z0-9_x]/)}function bt(){return M()}function vt(){return R()||C()}function wt(t){return"function"==typeof t.getParameter}var At={fonts:function(){var t=this;return V(function(e,r){var i=r.document;return(0,n.sH)(t,void 0,void 0,function(){var t,e,r,o,s,a,c,u,l,d,h;return(0,n.YH)(this,function(n){for((t=i.body).style.fontSize="48px",(e=i.createElement("div")).style.setProperty("visibility","hidden","important"),r={},o={},s=function(t){var r=i.createElement("span"),n=r.style;return n.position="absolute",n.top="0",n.left="0",n.fontFamily=t,r.textContent="mmMwWLliI0O&1",e.appendChild(r),r},a=function(t,e){return s("'".concat(t,"',").concat(e))},c=function(){for(var t={},e=function(e){t[e]=z.map(function(t){return a(e,t)})},r=0,n=G;r<n.length;r++){e(n[r])}return t},u=function(t){return z.some(function(e,n){return t[n].offsetWidth!==r[e]||t[n].offsetHeight!==o[e]})},l=function(){return z.map(s)}(),d=c(),t.appendChild(e),h=0;h<z.length;h++)r[z[h]]=l[h].offsetWidth,o[z[h]]=l[h].offsetHeight;return[2,G.filter(function(t){return u(d[t])})]})})})},domBlockers:function(t){var e=(void 0===t?{}:t).debug;return(0,n.sH)(this,void 0,void 0,function(){var t,r,i,o,s;return(0,n.YH)(this,function(n){switch(n.label){case 0:return C()||j()?(a=atob,t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',a("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",a("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",a("LnNwb25zb3JpdA=="),".ylamainos",a("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",a("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",a("LmhlYWRlci1ibG9ja2VkLWFk"),a("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",a("I2FkXzMwMFgyNTA="),a("I2Jhbm5lcmZsb2F0MjI="),a("I2NhbXBhaWduLWJhbm5lcg=="),a("I0FkLUNvbnRlbnQ=")],adGuardChinese:[a("LlppX2FkX2FfSA=="),a("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",a("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),a("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",a("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",a("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",a("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),a("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),a("LmFkZ29vZ2xl"),a("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[a("YW1wLWF1dG8tYWRz"),a("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",a("I2FkX2ludmlld19hcmVh")],adGuardRussian:[a("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),a("LnJlY2xhbWE="),'div[id^="smi2adblock"]',a("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[a("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),a("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",a("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),a("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),a("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",a("I3Jla2xhbWk="),a("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),a("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),a("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[a("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",a("LndpZGdldF9wb19hZHNfd2lkZ2V0"),a("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",a("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[a("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),a("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",a("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",a("I3Jla2xhbW5pLWJveA=="),a("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",a("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[a("I2FkdmVydGVudGll"),a("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",a("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",a("LnNwb25zb3JsaW5rZ3J1ZW4="),a("I3dlcmJ1bmdza3k="),a("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),a("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[a("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",a("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[a("LnJla2xhbW9zX3RhcnBhcw=="),a("LnJla2xhbW9zX251b3JvZG9z"),a("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),a("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),a("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[a("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[a("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),a("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",a("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[a("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),a("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),a("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",a("LmFkX19tYWlu"),a("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[a("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[a("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),a("I2xpdmVyZUFkV3JhcHBlcg=="),a("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),a("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[a("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",a("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),a("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),a("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[a("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),a("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),a("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",a("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),a("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),a("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),a("ZGl2I3NrYXBpZWNfYWQ=")],ro:[a("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),a("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[a("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),a("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),a("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",a("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),a("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",a("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},r=Object.keys(t),[4,J((s=[]).concat.apply(s,r.map(function(e){return t[e]})))]):[2,void 0];case 1:return i=n.sent(),e&&function(t,e){for(var r="DOM blockers debug:\n```",n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];r+="\n".concat(o,":");for(var s=0,a=t[o];s<a.length;s++){var c=a[s];r+="\n ".concat(e[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(r,"\n```"))}(t,i),(o=r.filter(function(e){var r=t[e];return f(r.map(function(t){return i[t]}))>.6*r.length})).sort(),[2,o]}var a})})},fontPreferences:function(){return function(t,e){void 0===e&&(e=4e3);return V(function(r,i){var o=i.document,s=o.body,a=s.style;a.width="".concat(e,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",R()?s.style.zoom="".concat(1/i.devicePixelRatio):C()&&(s.style.zoom="reset");var c=o.createElement("div");return c.textContent=(0,n.fX)([],Array(e/20|0),!0).map(function(){return"word"}).join(" "),s.appendChild(c),t(o,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}(function(t,e){for(var r={},n={},i=0,o=Object.keys(ct);i<o.length;i++){var s=o[i],a=ct[s],c=a[0],u=void 0===c?{}:c,l=a[1],d=void 0===l?"mmMwWLliI0fiflO&1":l,h=t.createElement("span");h.textContent=d,h.style.whiteSpace="nowrap";for(var f=0,p=Object.keys(u);f<p.length;f++){var y=p[f],g=u[y];void 0!==g&&(h.style[y]=g)}r[s]=h,e.append(t.createElement("br"),h)}for(var m=0,_=Object.keys(ct);m<_.length;m++){n[s=_[m]]=r[s].getBoundingClientRect().width}return n})},audio:function(){return C()&&U()&&F()||R()&&(t=navigator,e=window,r=Audio.prototype,n=e.visualViewport,f(["srLatency"in r,"srChannelCount"in r,"devicePosture"in t,n&&"segments"in n,"getTextInformation"in Image.prototype])>=3)&&function(){var t=window,e=t.URLPattern;return f(["union"in Set.prototype,"Iterator"in t,e&&"hasRegExpGroups"in e.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()?-4:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(C()&&!P()&&!function(){var t=window;return f(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var r=4500,n=new e(1,5e3,44100),i=n.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(n.destination),i.start(0);var a=function(t){var e=3,r=500,n=500,i=5e3,o=function(){},a=new Promise(function(a,c){var l=!1,d=0,h=0;t.oncomplete=function(t){return a(t.renderedBuffer)};var f=function(){setTimeout(function(){return c(N("timeout"))},Math.min(n,h+i-Date.now()))},p=function(){try{var n=t.startRendering();switch(s(n)&&u(n),t.state){case"running":h=Date.now(),l&&f();break;case"suspended":document.hidden||d++,l&&d>=e?c(N("suspended")):setTimeout(p,r)}}catch(t){c(t)}};p(),o=function(){l||(l=!0,h>0&&f())}});return[a,o]}(n),c=a[0],l=a[1],d=u(c.then(function(t){return function(t){for(var e=0,r=0;r<t.length;++r)e+=Math.abs(t[r]);return e}(t.getChannelData(0).subarray(r))},function(t){if("timeout"===t.name||"suspended"===t.name)return-3;throw t}));return function(){return l(),d}}();var t,e,r,n},screenFrame:function(){var t=this;if(C()&&U()&&F())return function(){return Promise.resolve(void 0)};var e=K();return function(){return(0,n.sH)(t,void 0,void 0,function(){var t,r;return(0,n.YH)(this,function(n){switch(n.label){case 0:return[4,e()];case 1:return t=n.sent(),[2,[(r=function(t){return null===t?null:p(t,10)})(t[0]),r(t[1]),r(t[2]),r(t[3])]]}})})}},canvas:function(){return function(t){var e,r,n,i=!1,o=function(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}(),s=o[0],a=o[1];!function(t,e){return!(!e||!t.toDataURL)}(s,a)?r=n="unsupported":(i=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(a),t?r=n="skipped":(e=function(t,e){!function(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var r="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(r,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(r,4,45)}(t,e);var r=W(t),n=W(t);if(r!==n)return["unstable","unstable"];!function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var r=0,n=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<n.length;r++){var i=n[r],o=i[0],s=i[1],a=i[2];e.fillStyle=o,e.beginPath(),e.arc(s,a,40,0,2*Math.PI,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,2*Math.PI,!0),e.arc(60,60,20,0,2*Math.PI,!0),e.fill("evenodd")}(t,e);var i=W(t);return[i,r]}(s,a),r=e[0],n=e[1]));return{winding:i,geometry:r,text:n}}(C()&&U()&&F())},osCpu:function(){return navigator.oscpu},languages:function(){var t,e=navigator,r=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==n&&r.push([n]),Array.isArray(e.languages))R()&&f([!("MediaSettingsRange"in(t=window)),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3||r.push(e.languages);else if("string"==typeof e.languages){var i=e.languages;i&&r.push(i.split(","))}return r},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return h(d(navigator.deviceMemory),void 0)},screenResolution:function(){var t,e,r;if(!(C()&&U()&&F()))return t=screen,(r=[(e=function(t){return h(l(t),null)})(t.width),e(t.height)]).sort().reverse(),r},hardwareConcurrency:function(){return h(l(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var r=(new e).resolvedOptions().timeZone;if(r)return r}var n,i=(n=(new Date).getFullYear(),-Math.max(d(new Date(n,0,1).getTimezoneOffset()),d(new Date(n,6,1).getTimezoneOffset())));return"UTC".concat(i>=0?"+":"").concat(i)},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){var t,e;if(!(k()||(t=window,e=navigator,f(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!k())))try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&C()&&!P()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return f(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],r=0;r<t.length;++r){var n=t[r];if(n){for(var i=[],o=0;o<n.length;++o){var s=n[o];i.push({type:s.type,suffixes:s.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:i})}}return e}},touchSupport:function(){var t,e=navigator,r=0;void 0!==e.maxTouchPoints?r=l(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(r=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return{maxTouchPoints:r,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],e=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<r.length;e++){var n=r[e],i=window[n];i&&"object"==typeof i&&t.push(n)}return t.sort()},cookiesEnabled:function(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}},colorGamut:function(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var r=e[t];if(matchMedia("(color-gamut: ".concat(r,")")).matches)return r}},invertedColors:function(){return!!tt("inverted")||!tt("none")&&void 0},forcedColors:function(){return!!et("active")||!et("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=100;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}},contrast:function(){return rt("no-preference")?0:rt("high")||rt("more")?1:rt("low")||rt("less")?-1:rt("forced")?10:void 0},reducedMotion:function(){return!!nt("reduce")||!nt("no-preference")&&void 0},reducedTransparency:function(){return!!it("reduce")||!it("no-preference")&&void 0},hdr:function(){return!!ot("high")||!ot("standard")&&void 0},math:function(){var t,e=st.acos||at,r=st.acosh||at,n=st.asin||at,i=st.asinh||at,o=st.atanh||at,s=st.atan||at,a=st.sin||at,c=st.sinh||at,u=st.cos||at,l=st.cosh||at,d=st.tan||at,h=st.tanh||at,f=st.exp||at,p=st.expm1||at,y=st.log1p||at;return{acos:e(.12312423423423424),acosh:r(1e308),acoshPf:(t=1e154,st.log(t+st.sqrt(t*t-1))),asin:n(.12312423423423424),asinh:i(1),asinhPf:function(t){return st.log(t+st.sqrt(t*t+1))}(1),atanh:o(.5),atanhPf:function(t){return st.log((1+t)/(1-t))/2}(.5),atan:s(.5),sin:a(-1e300),sinh:c(1),sinhPf:function(t){return st.exp(t)-1/st.exp(t)/2}(1),cos:u(10.000000000123),cosh:l(1),coshPf:function(t){return(st.exp(t)+1/st.exp(t))/2}(1),tan:d(-1e300),tanh:h(1),tanhPf:function(t){return(st.exp(2*t)-1)/(st.exp(2*t)+1)}(1),exp:f(1),expm1:p(1),expm1Pf:function(t){return st.exp(t)-1}(1),log1p:y(10),log1pPf:function(t){return st.log(1+t)}(10),powPI:function(t){return st.pow(st.PI,t)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]},applePay:function(){var t=window.ApplePaySession;if("function"!=typeof(null==t?void 0:t.canMakePayments))return-1;if(ut())return-3;try{return t.canMakePayments()?1:0}catch(t){return function(t){if(t instanceof Error&&"InvalidAccessError"===t.name&&/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;throw t}(t)}},privateClickMeasurement:function(){var t,e=document.createElement("a"),r=null!==(t=e.attributionSourceId)&&void 0!==t?t:e.attributionsourceid;return void 0===r?void 0:String(r)},audioBaseLatency:function(){if(!(j()||C()))return-2;if(!window.AudioContext)return-1;var t=(new AudioContext).baseLatency;return null==t?-1:isFinite(t)?t:-3},dateTimeLocale:function(){if(!window.Intl)return-1;var t=window.Intl.DateTimeFormat;if(!t)return-2;var e=t().resolvedOptions().locale;return e||""===e?e:-3},webGlBasics:function(t){var e,r,n,i,o,s,a=yt(t.cache);if(!a)return-1;if(!wt(a))return-2;var c=bt()?null:a.getExtension(pt);return{version:(null===(e=a.getParameter(a.VERSION))||void 0===e?void 0:e.toString())||"",vendor:(null===(r=a.getParameter(a.VENDOR))||void 0===r?void 0:r.toString())||"",vendorUnmasked:c?null===(n=a.getParameter(c.UNMASKED_VENDOR_WEBGL))||void 0===n?void 0:n.toString():"",renderer:(null===(i=a.getParameter(a.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:c?null===(o=a.getParameter(c.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(s=a.getParameter(a.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||""}},webGlExtensions:function(t){var e=yt(t.cache);if(!e)return-1;if(!wt(e))return-2;var r=e.getSupportedExtensions(),n=e.getContextAttributes(),i=[],o=[],s=[],a=[],c=[];if(n)for(var u=0,l=Object.keys(n);u<l.length;u++){var d=l[u];o.push("".concat(d,"=").concat(n[d]))}for(var h=0,f=mt(e);h<f.length;h++){var p=e[w=f[h]];s.push("".concat(w,"=").concat(p).concat(lt.has(p)?"=".concat(e.getParameter(p)):""))}if(r)for(var y=0,g=r;y<g.length;y++){var m=g[y];if(!(m===pt&&bt()||"WEBGL_polygon_mode"===m&&vt())){var _=e.getExtension(m);if(_)for(var b=0,v=mt(_);b<v.length;b++){var w;p=_[w=v[b]];a.push("".concat(w,"=").concat(p).concat(dt.has(p)?"=".concat(e.getParameter(p)):""))}else i.push(m)}}for(var A=0,E=ht;A<E.length;A++)for(var S=E[A],B=0,I=ft;B<I.length;B++){var x=I[B],L=gt(e,S,x);c.push("".concat(S,".").concat(x,"=").concat(L.join(",")))}return a.sort(),s.sort(),{contextAttributes:o,parameters:s,shaderPrecisions:c,extensions:r,extensionParameters:a,unsupportedExtensions:i}}};function Et(t){var e=function(t){if(j())return.4;if(C())return!P()||U()&&F()?.3:.5;var e="value"in t.platform?t.platform.value:"";if(/^Win/.test(e))return.6;if(/^Mac/.test(e))return.5;return.7}(t),r=function(t){return p(.99+.01*t,1e-4)}(e);return{score:e,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(r))}}function St(t){return JSON.stringify(t,function(t,e){return e instanceof Error?(r=e,(0,n.Cl)({name:r.name,message:r.message,stack:null===(i=r.stack)||void 0===i?void 0:i.split("\n")},r)):e;var r,i},2)}function Bt(t){return L(function(t){for(var e="",r=0,n=Object.keys(t).sort();r<n.length;r++){var i=n[r],o=t[i],s="error"in o?"error":JSON.stringify(o.value);e+="".concat(e?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return e}(t))}function It(t){return void 0===t&&(t=50),function(t,e){void 0===e&&(e=1/0);var r=window.requestIdleCallback;return r?new Promise(function(t){return r.call(window,function(){return t()},{timeout:e})}):o(Math.min(t,e))}(t,2*t)}function xt(t,e){var r=Date.now();return{get:function(o){return(0,n.sH)(this,void 0,void 0,function(){var s,a,c;return(0,n.YH)(this,function(n){switch(n.label){case 0:return s=Date.now(),[4,t()];case 1:return a=n.sent(),c=function(t){var e,r=Et(t);return{get visitorId(){return void 0===e&&(e=Bt(this.components)),e},set visitorId(t){e=t},confidence:r,components:t,version:i}}(a),(e||(null==o?void 0:o.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(c.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(s-r,"\nvisitorId: ").concat(c.visitorId,"\ncomponents: ").concat(St(a),"\n```")),[2,c]}})})}}}var Lt={load:function(t){var e;return void 0===t&&(t={}),(0,n.sH)(this,void 0,void 0,function(){var r,o,s;return(0,n.YH)(this,function(n){switch(n.label){case 0:return(null===(e=t.monitoring)||void 0===e||e)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(i,"/npm-monitoring"),!0),t.send()}catch(t){console.error(t)}}(),r=t.delayFallback,o=t.debug,[4,It(r)];case 1:return n.sent(),s=function(t){return T(At,t,[])}({cache:{},debug:o}),[2,xt(s,o)]}})})},hashComponents:Bt,componentsToDebugString:St}},6586:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2049),i=r(1882),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;const a=function(t,e){if((0,n.A)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,i.A)(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},6612:(t,e,r)=>{"use strict";var n;r.d(e,{y:()=>n}),function(t){t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.CHINESE_TRADITIONAL_TW="zh-Hant-TW",t.JAPANESE="ja",t.KOREAN="ko",t.FILIPINO="fil",t.INDONESIAN="id",t.PORTUGUESE="pt",t.THAI="th",t.VIETNAMESE="vi",t.ARABIC="ar"}(n||(n={}))},6632:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(5917);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(i.Cache||n.A),r}i.Cache=n.A;const o=i},6666:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},6733:(t,e,r)=>{"use strict";r.d(e,{B:()=>b});var n=r(8291),i=r(853),o=r(1472),s=r(6666);const a={indoorLineColor:"#45b1cc",outdoorLineColor:"#8183ba",dashedLineColor:"#969696",shuttleBusLineColor:"#fb923c",lineWidth:4,dashedLineWidth:4,disableDashedLine:!1,inactiveRouteOpacity:.5,outdoorLineOpacity:1,markerIconSize:.75,markers:{from:"poi-02",to:"poi-01",stops:["waypoint-01"]},lineSymbol:{image:"east-blue-arrow-01",size:.25,spacing:1}},c="mmws-source-line-solid",u="mmws-layer-line-solid",l="mmws-layer-icon-line-symbol",d="mmws-source-line-dashed",h="mmws-layer-line-dashed",f="mmws-source-icon-connector",p="mmws-layer-icon-connector",y="mmws-source-icon-marker",g="mmws-layer-icon-marker",m=[u,l,h,p,g],_=[c,d,f,y];class b{_maplibreMap;_routeStyle=a;_styleDiffs={};_filterBy="venue";_curVenue=null;_curBuilding=null;_curOrdinal=null;_renderBoundaryLayer;constructor(t,e){this._maplibreMap=t,e&&(this._updateStyleProperties(e),t.on("load",()=>this._loadMarkerIcons()))}async setStyle(t){this._updateStyleProperties(t),await this._loadMarkerIcons(),await this._updateLayers()}async setMarkerIcons(t){if(Array.isArray(t)&&t.length){const e=t.slice(1,t.length-1);this._routeStyle.markers={from:t[0],to:(0,s.A)(t),stops:e.length?e:[t[0]]},this._styleDiffs={markers:this._routeStyle.markers}}else"from"in t&&(this._routeStyle.markers.from=t.from,this._styleDiffs.markers.from=t.from),"to"in t&&(this._routeStyle.markers.to=t.to,this._styleDiffs.markers.to=t.to),"stops"in t&&(this._routeStyle.markers.stops=t.stops??[null],this._styleDiffs.markers.stops=t.stops??[null]);await this._loadMarkerIcons()}setMarkerIconSize(t){return this._routeStyle.markerIconSize=t,this}setIndoorLineColor(t){return this._routeStyle.indoorLineColor=t,this}setOutdoorLineColor(t){return this._routeStyle.outdoorLineColor=t,this}setDashedLineColor(t){return this._routeStyle.dashedLineColor=t,this}setBusLineColor(t){return this._routeStyle.shuttleBusLineColor=t,this}render(t,e){if(!this._renderBoundaryLayer){const t=this._maplibreMap.getStyle(),e=(0,n.cq)(t);let r=e.find(({type:t,id:e})=>!e.includes("-overlap-copy")&&"fill-extrusion"===t);r||(r=e.find(t=>"symbol"===t.type&&"mapxus_place"===t?.["source-layer"])),this._renderBoundaryLayer=r?.id}const{instructions:r,points:{coordinates:i}}=t,{lineFeatures:o,connectorFeatures:s,dashedLineFeatures:a,markerFeatures:u}=this._classifyFeatures(r,i,e);this._renderSolidLines(o),this._renderLineSymbols(c,l),!0!==this._routeStyle.disableDashedLine&&this._renderDashedLines(a),this._renderConnectors(s),this._renderMarkers(u)}remove(){m.forEach(t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.removeLayer(t)}),_.forEach(t=>{this._maplibreMap.getSource(t)&&this._maplibreMap.removeSource(t)})}setFilterByVenue(t,e){this._filterBy="venue",this._curVenue=t??null,this._curOrdinal=e??null,this._filterRouteOpacity()}setFilterByBuilding(t,e){this._filterBy="building",this._curBuilding=t??null,this._curOrdinal=e??null,this._filterRouteOpacity()}_classifyFeatures(t,e,r){const n=[],i=[],o=[],a=[],c=[];t.forEach((r,o)=>{const{venue_id:s,building_id:a,floor_id:u,ordinal:l,sign:d,type:h,interval:[f,p]}=r;if(function(t){return 5===t}(d))c.push(r);else if(function(t){return 100===t||-100===t}(d)){0!==o&&o!==t.length-1&&i.push(this._createIconFeature(`connector-${i.length}`,e[f],{...v({venue_id:s,building_id:a,floor_id:u,ordinal:l}),icon:h}));const r=t[o+1];if(r){const{venue_id:t,building_id:n,floor_id:o,ordinal:s}=r;i.push(this._createIconFeature(`connector-${i.length}`,e[p],{...v({venue_id:t,building_id:n,floor_id:o,ordinal:s}),icon:h}))}}else n.push(this._createLineFeature(`solid-line-${n.length}`,e.slice(f,p+1),v({venue_id:s,building_id:a,floor_id:u,ordinal:l,isShuttleBus:w(d)?1:0})))});const u=t[0],{venue_id:l,building_id:d,floor_id:h,ordinal:f}=u,p=t[t.length-1],{venue_id:y,building_id:g,floor_id:m,ordinal:_}=p,b=e[0],A=e[e.length-1],E=r[0],S=r[r.length-1],B=r.slice(1,r.length-1);return E&&o.push(this._createLineFeature(`dashed-line-${o.length}`,[E,b],v({venue_id:l,building_id:d,floor_id:h,ordinal:f}))),S&&o.push(this._createLineFeature(`dashed-line-${o.length}`,[A,S],v({venue_id:y,building_id:g,floor_id:m,ordinal:_}))),c.length&&B.length&&c.forEach(({venue_id:t,building_id:r,floor_id:n,ordinal:i,interval:[c]},u)=>{o.push(this._createLineFeature(`dashed-line-${o.length}`,[e[c],B[u]],v({venue_id:t,building_id:r,floor_id:n,ordinal:i}))),a.push(this._createIconFeature(`marker-${a.length}`,B[u],{...v({venue_id:t,building_id:r,floor_id:n,ordinal:i,markerType:`stops_${u}`}),icon:this._routeStyle.markers.stops[u]??(0,s.A)(this._routeStyle.markers.stops),iconSize:this._routeStyle.markerIconSize}))}),a.push(this._createIconFeature(`marker-${a.length}`,E??b,{...v({venue_id:l,building_id:d,floor_id:h,ordinal:f,markerType:"from"}),icon:this._routeStyle.markers.from,iconSize:this._routeStyle.markerIconSize})),a.push(this._createIconFeature(`marker-${a.length}`,S??A,{...v({venue_id:y,building_id:g,floor_id:m,ordinal:_,markerType:"to"}),icon:this._routeStyle.markers.to,iconSize:this._routeStyle.markerIconSize})),{lineFeatures:n,connectorFeatures:i,dashedLineFeatures:o,markerFeatures:a}}_createLineFeature(t,e,r){return{id:t,type:"Feature",geometry:{type:"LineString",coordinates:e},properties:r}}_createIconFeature(t,e,r){return{id:t,type:"Feature",geometry:{type:"Point",coordinates:e},properties:r}}_renderSolidLines(t){this._addCollectionSource(c,t),this._addLineLayer(c,u,{"line-color":["case",["==",["get","isShuttleBus"],"1"],this._routeStyle.shuttleBusLineColor,["==",["get","floor_id"],null],this._routeStyle.outdoorLineColor,this._routeStyle.indoorLineColor],"line-opacity":["case",["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,1],"line-width":this._routeStyle.lineWidth})}_renderDashedLines(t){this._addCollectionSource(d,t),this._addLineLayer(d,h,{"line-color":this._routeStyle.dashedLineColor,"line-width":this._routeStyle.dashedLineWidth,"line-dasharray":[.1,1.8]})}_renderConnectors(t){this._addCollectionSource(f,t),this._addIconLayer(f,p)}_renderMarkers(t){this._addCollectionSource(y,t),this._addIconLayer(y,g,{"icon-anchor":"bottom","icon-allow-overlap":!0,"icon-ignore-placement":!0})}_addCollectionSource(t,e){this._maplibreMap.addSource(t,{type:"geojson",data:{type:"FeatureCollection",features:e}})}_addLineLayer(t,e,r){this._maplibreMap.addLayer({id:e,type:"line",source:t,layout:{"line-join":"round","line-cap":"round"},paint:{"line-width":4,...r||{}}},this._renderBoundaryLayer)}_renderLineSymbols(t,e){this._maplibreMap.addLayer({id:e,type:"symbol",source:t,layout:{"symbol-placement":"line","symbol-spacing":this._routeStyle.lineSymbol.spacing,"icon-size":this._routeStyle.lineSymbol.size,"icon-image":this._routeStyle.lineSymbol.image},paint:{"icon-opacity":["case",["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,1]}},this._renderBoundaryLayer)}_addIconLayer(t,e,r){this._maplibreMap.addLayer({id:e,type:"symbol",source:t,layout:{"icon-image":["get","icon"],"icon-size":["case",["has","iconSize"],["get","iconSize"],1],...r||{}}})}_updateStyleProperties(t){if(this._styleDiffs=A(this._routeStyle,t??a),t){if(Object.keys(this._styleDiffs).length){const t={...this._routeStyle.lineSymbol,...this._styleDiffs.lineSymbol??{}},e=this._styleDiffs.markers;let r=this._routeStyle.markers;const n={outdoorLineOpacity:(this._styleDiffs.outdoorLineOpacity>1?1:this._styleDiffs.outdoorLineOpacity<0?0:this._styleDiffs.outdoorLineOpacity)??this._routeStyle.outdoorLineOpacity},i={inactiveRouteOpacity:(this._styleDiffs.inactiveRouteOpacity>1?1:this._styleDiffs.inactiveRouteOpacity<0?0:this._styleDiffs.inactiveRouteOpacity)??this._routeStyle.inactiveRouteOpacity};e&&Object.keys(e).length&&(r={...r,...e}),this._routeStyle={...this._routeStyle,...this._styleDiffs,...n,...i,markers:r,lineSymbol:t}}}else this._routeStyle=a}async _loadMarkerIcons(){const{markers:t,lineSymbol:e}=this._styleDiffs;if(e?.image&&await(0,i.K)(this._maplibreMap,e.image),t&&Object.keys(t).length){const{from:e,to:r,stops:n}=t;if(e&&await(0,i.K)(this._maplibreMap,e),r&&await(0,i.K)(this._maplibreMap,r),n&&n.length){const t=n.filter(t=>!!t);t.length&&await Promise.all(t.map(t=>(0,i.K)(this._maplibreMap,t)))}}}async _updateLayers(){if(!this._maplibreMap.getLayer(u))return;const{indoorLineColor:t,outdoorLineColor:e,dashedLineColor:r,shuttleBusLineColor:n,lineWidth:i,dashedLineWidth:o,disableDashedLine:a,inactiveRouteOpacity:c,outdoorLineOpacity:d,markerIconSize:f,markers:p,lineSymbol:m}=this._styleDiffs;if((t||e||n)&&this._maplibreMap.setPaintProperty(u,"line-color",["case",["==",["get","isShuttleBus"],"1"],this._routeStyle.shuttleBusLineColor,["==",["get","floor_id"],null],this._routeStyle.outdoorLineColor,this._routeStyle.indoorLineColor]),void 0!==i&&i+""&&this._maplibreMap.setPaintProperty(u,"line-width",i),"boolean"==typeof a?a?this._maplibreMap.setPaintProperty(h,"line-color","transparent"):(this._maplibreMap.setPaintProperty(h,"line-color",this._routeStyle.dashedLineColor),this._maplibreMap.setPaintProperty(h,"line-width",this._routeStyle.dashedLineWidth)):!0!==this._routeStyle.disableDashedLine&&(r&&this._maplibreMap.setPaintProperty(h,"line-color",r),void 0!==o&&o+""&&this._maplibreMap.setPaintProperty(h,"line-width",o)),void 0!==c&&c+""&&this._filterRouteOpacity(),void 0!==f&&f+""&&this._maplibreMap.setLayoutProperty(g,"icon-size",f),p&&Object.keys(p).length){const{from:t,to:e,stops:r}=p,n=this._maplibreMap.getSource(y),i=await n.getData();i.features=i.features.map(n=>{const{markerType:i}=n.properties;if(void 0!==t&&"from"===i&&(n.properties.icon=t),void 0!==e&&"to"===i&&(n.properties.icon=e),r&&i.includes("stops")){const t=parseInt(i.split("_")[1]);n.properties.icon=r[t]??(0,s.A)(r)}return n}),n.setData(i)}if(m){const{image:t,size:e,spacing:r}=m;void 0!==t&&this._maplibreMap.setLayoutProperty(l,"icon-image",t),void 0!==e&&e+""&&this._maplibreMap.setLayoutProperty(l,"icon-size",e),void 0!==r&&r+""&&this._maplibreMap.setLayoutProperty(l,"symbol-spacing",r)}void 0!==d&&d+""&&(this._maplibreMap.setPaintProperty(u,"line-opacity",["case",["==",["get","floor_id"],null],d,1]),this._maplibreMap.setPaintProperty(l,"icon-opacity",["case",["==",["get","floor_id"],null],d,1]),this._filterRouteOpacity())}_filterRouteOpacity(){let t;switch(this._filterBy){case"venue":t=["case",["all",["==",["get","ordinal"],this._curOrdinal??""],["==",["get","venue_id"],this._curVenue??""]],1,["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,this._routeStyle.inactiveRouteOpacity];break;case"building":t=["case",["all",["==",["get","ordinal"],this._curOrdinal??""],["==",["get","building_id"],this._curBuilding??""]],1,["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,this._routeStyle.inactiveRouteOpacity]}m.forEach(e=>{this._maplibreMap.getLayer(e)&&this._maplibreMap.setPaintProperty(e,e.includes("layer-line")?"line-opacity":"icon-opacity",t)})}}function v(t){return Object.fromEntries(Object.entries(t).map(([t,e])=>[t,Number.isFinite(e)?e+"":e]))}function w(t){return(0,o.A)(t,104,108)}function A(t,e){const r={};for(const n in e){const i=t[n],o=e[n];if("markers"===n||"lineSymbol"===n)if(Array.isArray(o)){const t=o.slice(1,o.length-1);r[n]={from:o[0],to:(0,s.A)(o),stops:t.length?t:[o[0]]}}else{const t=A(i,o);Object.keys(t).length&&(r[n]=t)}else o+""!=i+""&&(r[n]="stops"===n?o??[null]:o)}return r}},6748:(t,e,r)=>{"use strict";e.VV=void 0,e.w=function(t,e){return Buffer.from(function(t,e){var r=(0,i.ellipticCurve)(),a=new o.PrivateKey(void 0,r),c=t instanceof Uint8Array?new o.PublicKey(t,r):o.PublicKey.fromHex(t,r),u=a.encapsulate(c,(0,i.isHkdfKeyCompressed)()),l=a.publicKey.toBytes((0,i.isEphemeralKeyCompressed)()),d=(0,s.symEncrypt)(u,e);return(0,n.concatBytes)(l,d)}(t,e))};var n=r(6527),i=r(4928),o=r(9065),s=r(2158);var a=r(4928);Object.defineProperty(e,"VV",{enumerable:!0,get:function(){return a.ECIES_CONFIG}});var c=r(9065);s.aesEncrypt,s.aesDecrypt,s.symEncrypt,s.symDecrypt,s.decodeHex,s.getValidSecret,s.remove0x},6787:(t,e,r)=>{"use strict";function n(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}r.d(e,{A:()=>n})},6838:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){this.__data__=[],this.size=0}},6847:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(139),i=r(8556),o=r(6501);const s={isBrowser:!0,classes:{URLSearchParams:n.A,FormData:i.A,Blob:o.A},protocols:["http","https","file","blob","url","data"]}},6912:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},6983:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return t!=t}},6984:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return t===e||t!=t&&e!=e}},6996:t=>{"use strict";t.exports=require("maplibre-gl")},7007:t=>{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise(function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}y(t,e,o,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&y(t,"error",e,r)}(t,i,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function u(t,e,r,n){var i,o,s,u;if(a(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=c(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function h(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):p(i,i.length)}function f(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function y(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,function i(o){n.once&&t.removeEventListener(e,i),r(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[t];if(void 0===c)return!1;if("function"==typeof c)n(c,this,e);else{var u=c.length,l=p(c,u);for(r=0;r<u;++r)n(l[r],this,e)}return!0},o.prototype.addListener=function(t,e){return u(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return u(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,d(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,d(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,n,i,o,s;if(a(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},7013:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=r(7275),i=r(3853),o=r(807),s=r(4062),a=r(8458),c=r(5579),u=r(3820),l=r(7110),d=r(7837),h=r(8382);const f="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,r){const f=(0,h.A)(t);let p=f.data;const y=l.A.from(f.headers).normalize();let g,m,_,b,v,{responseType:w,onUploadProgress:A,onDownloadProgress:E}=f;function S(){b&&b(),v&&v(),f.cancelToken&&f.cancelToken.unsubscribe(g),f.signal&&f.signal.removeEventListener("abort",g)}let B=new XMLHttpRequest;function I(){if(!B)return;const n=l.A.from("getAllResponseHeaders"in B&&B.getAllResponseHeaders()),o={data:w&&"text"!==w&&"json"!==w?B.response:B.responseText,status:B.status,statusText:B.statusText,headers:n,config:t,request:B};(0,i.A)(function(t){e(t),S()},function(t){r(t),S()},o),B=null}B.open(f.method.toUpperCase(),f.url,!0),B.timeout=f.timeout,"onloadend"in B?B.onloadend=I:B.onreadystatechange=function(){B&&4===B.readyState&&(0!==B.status||B.responseURL&&0===B.responseURL.indexOf("file:"))&&setTimeout(I)},B.onabort=function(){B&&(r(new s.A("Request aborted",s.A.ECONNABORTED,t,B)),B=null)},B.onerror=function(){r(new s.A("Network Error",s.A.ERR_NETWORK,t,B)),B=null},B.ontimeout=function(){let e=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const n=f.transitional||o.A;f.timeoutErrorMessage&&(e=f.timeoutErrorMessage),r(new s.A(e,n.clarifyTimeoutError?s.A.ETIMEDOUT:s.A.ECONNABORTED,t,B)),B=null},void 0===p&&y.setContentType(null),"setRequestHeader"in B&&n.A.forEach(y.toJSON(),function(t,e){B.setRequestHeader(e,t)}),n.A.isUndefined(f.withCredentials)||(B.withCredentials=!!f.withCredentials),w&&"json"!==w&&(B.responseType=f.responseType),E&&([_,v]=(0,d.C1)(E,!0),B.addEventListener("progress",_)),A&&B.upload&&([m,b]=(0,d.C1)(A),B.upload.addEventListener("progress",m),B.upload.addEventListener("loadend",b)),(f.cancelToken||f.signal)&&(g=e=>{B&&(r(!e||e.type?new a.A(null,t,B):e),B.abort(),B=null)},f.cancelToken&&f.cancelToken.subscribe(g),f.signal&&(f.signal.aborted?g():f.signal.addEventListener("abort",g)));const x=(0,c.A)(f.url);x&&-1===u.A.protocols.indexOf(x)?r(new s.A("Unsupported protocol "+x+":",s.A.ERR_BAD_REQUEST,t)):B.send(p||null)})}},7064:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7271),i=r(3938),o=Object.prototype.hasOwnProperty;const s=function(t){if(!(0,n.A)(t))return(0,i.A)(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},7076:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha512_224=e.sha512_256=e.sha384=e.sha512=e.sha224=e.sha256=e.SHA512_256=e.SHA512_224=e.SHA384=e.SHA512=e.SHA224=e.SHA256=void 0;const n=r(7202),i=r(2318),o=r(9175),s=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array(64);class c extends n.HashMD{constructor(t=32){super(64,t,8,!1),this.A=0|n.SHA256_IV[0],this.B=0|n.SHA256_IV[1],this.C=0|n.SHA256_IV[2],this.D=0|n.SHA256_IV[3],this.E=0|n.SHA256_IV[4],this.F=0|n.SHA256_IV[5],this.G=0|n.SHA256_IV[6],this.H=0|n.SHA256_IV[7]}get(){const{A:t,B:e,C:r,D:n,E:i,F:o,G:s,H:a}=this;return[t,e,r,n,i,o,s,a]}set(t,e,r,n,i,o,s,a){this.A=0|t,this.B=0|e,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(t,e){for(let r=0;r<16;r++,e+=4)a[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=a[t-15],r=a[t-2],n=(0,o.rotr)(e,7)^(0,o.rotr)(e,18)^e>>>3,i=(0,o.rotr)(r,17)^(0,o.rotr)(r,19)^r>>>10;a[t]=i+a[t-7]+n+a[t-16]|0}let{A:r,B:i,C:c,D:u,E:l,F:d,G:h,H:f}=this;for(let t=0;t<64;t++){const e=f+((0,o.rotr)(l,6)^(0,o.rotr)(l,11)^(0,o.rotr)(l,25))+(0,n.Chi)(l,d,h)+s[t]+a[t]|0,p=((0,o.rotr)(r,2)^(0,o.rotr)(r,13)^(0,o.rotr)(r,22))+(0,n.Maj)(r,i,c)|0;f=h,h=d,d=l,l=u+e|0,u=c,c=i,i=r,r=e+p|0}r=r+this.A|0,i=i+this.B|0,c=c+this.C|0,u=u+this.D|0,l=l+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(r,i,c,u,l,d,h,f)}roundClean(){(0,o.clean)(a)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,o.clean)(this.buffer)}}e.SHA256=c;class u extends c{constructor(){super(28),this.A=0|n.SHA224_IV[0],this.B=0|n.SHA224_IV[1],this.C=0|n.SHA224_IV[2],this.D=0|n.SHA224_IV[3],this.E=0|n.SHA224_IV[4],this.F=0|n.SHA224_IV[5],this.G=0|n.SHA224_IV[6],this.H=0|n.SHA224_IV[7]}}e.SHA224=u;const l=(()=>i.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))))(),d=(()=>l[0])(),h=(()=>l[1])(),f=new Uint32Array(80),p=new Uint32Array(80);class y extends n.HashMD{constructor(t=64){super(128,t,16,!1),this.Ah=0|n.SHA512_IV[0],this.Al=0|n.SHA512_IV[1],this.Bh=0|n.SHA512_IV[2],this.Bl=0|n.SHA512_IV[3],this.Ch=0|n.SHA512_IV[4],this.Cl=0|n.SHA512_IV[5],this.Dh=0|n.SHA512_IV[6],this.Dl=0|n.SHA512_IV[7],this.Eh=0|n.SHA512_IV[8],this.El=0|n.SHA512_IV[9],this.Fh=0|n.SHA512_IV[10],this.Fl=0|n.SHA512_IV[11],this.Gh=0|n.SHA512_IV[12],this.Gl=0|n.SHA512_IV[13],this.Hh=0|n.SHA512_IV[14],this.Hl=0|n.SHA512_IV[15]}get(){const{Ah:t,Al:e,Bh:r,Bl:n,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:u,Fh:l,Fl:d,Gh:h,Gl:f,Hh:p,Hl:y}=this;return[t,e,r,n,i,o,s,a,c,u,l,d,h,f,p,y]}set(t,e,r,n,i,o,s,a,c,u,l,d,h,f,p,y){this.Ah=0|t,this.Al=0|e,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|u,this.Fh=0|l,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|y}process(t,e){for(let r=0;r<16;r++,e+=4)f[r]=t.getUint32(e),p[r]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|f[t-15],r=0|p[t-15],n=i.rotrSH(e,r,1)^i.rotrSH(e,r,8)^i.shrSH(e,r,7),o=i.rotrSL(e,r,1)^i.rotrSL(e,r,8)^i.shrSL(e,r,7),s=0|f[t-2],a=0|p[t-2],c=i.rotrSH(s,a,19)^i.rotrBH(s,a,61)^i.shrSH(s,a,6),u=i.rotrSL(s,a,19)^i.rotrBL(s,a,61)^i.shrSL(s,a,6),l=i.add4L(o,u,p[t-7],p[t-16]),d=i.add4H(l,n,c,f[t-7],f[t-16]);f[t]=0|d,p[t]=0|l}let{Ah:r,Al:n,Bh:o,Bl:s,Ch:a,Cl:c,Dh:u,Dl:l,Eh:y,El:g,Fh:m,Fl:_,Gh:b,Gl:v,Hh:w,Hl:A}=this;for(let t=0;t<80;t++){const e=i.rotrSH(y,g,14)^i.rotrSH(y,g,18)^i.rotrBH(y,g,41),E=i.rotrSL(y,g,14)^i.rotrSL(y,g,18)^i.rotrBL(y,g,41),S=y&m^~y&b,B=g&_^~g&v,I=i.add5L(A,E,B,h[t],p[t]),x=i.add5H(I,w,e,S,d[t],f[t]),L=0|I,O=i.rotrSH(r,n,28)^i.rotrBH(r,n,34)^i.rotrBH(r,n,39),T=i.rotrSL(r,n,28)^i.rotrBL(r,n,34)^i.rotrBL(r,n,39),k=r&o^r&a^o&a,R=n&s^n&c^s&c;w=0|b,A=0|v,b=0|m,v=0|_,m=0|y,_=0|g,({h:y,l:g}=i.add(0|u,0|l,0|x,0|L)),u=0|a,l=0|c,a=0|o,c=0|s,o=0|r,s=0|n;const C=i.add3L(L,T,R);r=i.add3H(C,x,O,k),n=0|C}({h:r,l:n}=i.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:o,l:s}=i.add(0|this.Bh,0|this.Bl,0|o,0|s)),({h:a,l:c}=i.add(0|this.Ch,0|this.Cl,0|a,0|c)),({h:u,l}=i.add(0|this.Dh,0|this.Dl,0|u,0|l)),({h:y,l:g}=i.add(0|this.Eh,0|this.El,0|y,0|g)),({h:m,l:_}=i.add(0|this.Fh,0|this.Fl,0|m,0|_)),({h:b,l:v}=i.add(0|this.Gh,0|this.Gl,0|b,0|v)),({h:w,l:A}=i.add(0|this.Hh,0|this.Hl,0|w,0|A)),this.set(r,n,o,s,a,c,u,l,y,g,m,_,b,v,w,A)}roundClean(){(0,o.clean)(f,p)}destroy(){(0,o.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}e.SHA512=y;class g extends y{constructor(){super(48),this.Ah=0|n.SHA384_IV[0],this.Al=0|n.SHA384_IV[1],this.Bh=0|n.SHA384_IV[2],this.Bl=0|n.SHA384_IV[3],this.Ch=0|n.SHA384_IV[4],this.Cl=0|n.SHA384_IV[5],this.Dh=0|n.SHA384_IV[6],this.Dl=0|n.SHA384_IV[7],this.Eh=0|n.SHA384_IV[8],this.El=0|n.SHA384_IV[9],this.Fh=0|n.SHA384_IV[10],this.Fl=0|n.SHA384_IV[11],this.Gh=0|n.SHA384_IV[12],this.Gl=0|n.SHA384_IV[13],this.Hh=0|n.SHA384_IV[14],this.Hl=0|n.SHA384_IV[15]}}e.SHA384=g;const m=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),_=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class b extends y{constructor(){super(28),this.Ah=0|m[0],this.Al=0|m[1],this.Bh=0|m[2],this.Bl=0|m[3],this.Ch=0|m[4],this.Cl=0|m[5],this.Dh=0|m[6],this.Dl=0|m[7],this.Eh=0|m[8],this.El=0|m[9],this.Fh=0|m[10],this.Fl=0|m[11],this.Gh=0|m[12],this.Gl=0|m[13],this.Hh=0|m[14],this.Hl=0|m[15]}}e.SHA512_224=b;class v extends y{constructor(){super(32),this.Ah=0|_[0],this.Al=0|_[1],this.Bh=0|_[2],this.Bl=0|_[3],this.Ch=0|_[4],this.Cl=0|_[5],this.Dh=0|_[6],this.Dl=0|_[7],this.Eh=0|_[8],this.El=0|_[9],this.Fh=0|_[10],this.Fl=0|_[11],this.Gh=0|_[12],this.Gl=0|_[13],this.Hh=0|_[14],this.Hl=0|_[15]}}e.SHA512_256=v,e.sha256=(0,o.createHasher)(()=>new c),e.sha224=(0,o.createHasher)(()=>new u),e.sha512=(0,o.createHasher)(()=>new y),e.sha384=(0,o.createHasher)(()=>new g),e.sha512_256=(0,o.createHasher)(()=>new v),e.sha512_224=(0,o.createHasher)(()=>new b)},7110:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(7275),i=r(3325);const o=Symbol("internals");function s(t){return t&&String(t).trim().toLowerCase()}function a(t){return!1===t||null==t?t:n.A.isArray(t)?t.map(a):String(t)}function c(t,e,r,i,o){return n.A.isFunction(i)?i.call(this,e,r):(o&&(e=r),n.A.isString(e)?n.A.isString(i)?-1!==e.indexOf(i):n.A.isRegExp(i)?i.test(e):void 0:void 0)}class u{constructor(t){t&&this.set(t)}set(t,e,r){const o=this;function c(t,e,r){const i=s(e);if(!i)throw new Error("header name must be a non-empty string");const c=n.A.findKey(o,i);(!c||void 0===o[c]||!0===r||void 0===r&&!1!==o[c])&&(o[c||e]=a(t))}const u=(t,e)=>n.A.forEach(t,(t,r)=>c(t,r,e));if(n.A.isPlainObject(t)||t instanceof this.constructor)u(t,e);else if(n.A.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))u((0,i.A)(t),e);else if(n.A.isObject(t)&&n.A.isIterable(t)){let r,i,o={};for(const e of t){if(!n.A.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[i=e[0]]=(r=o[i])?n.A.isArray(r)?[...r,e[1]]:[r,e[1]]:e[1]}u(o,e)}else null!=t&&c(e,t,r);return this}get(t,e){if(t=s(t)){const r=n.A.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(n.A.isFunction(e))return e.call(this,t,r);if(n.A.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=s(t)){const r=n.A.findKey(this,t);return!(!r||void 0===this[r]||e&&!c(0,this[r],r,e))}return!1}delete(t,e){const r=this;let i=!1;function o(t){if(t=s(t)){const o=n.A.findKey(r,t);!o||e&&!c(0,r[o],o,e)||(delete r[o],i=!0)}}return n.A.isArray(t)?t.forEach(o):o(t),i}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const i=e[r];t&&!c(0,this[i],i,t,!0)||(delete this[i],n=!0)}return n}normalize(t){const e=this,r={};return n.A.forEach(this,(i,o)=>{const s=n.A.findKey(r,o);if(s)return e[s]=a(i),void delete e[o];const c=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}(o):String(o).trim();c!==o&&delete e[o],e[c]=a(i),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return n.A.forEach(this,(r,i)=>{null!=r&&!1!==r&&(e[i]=t&&n.A.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(t=>r.set(t)),r}static accessor(t){const e=(this[o]=this[o]={accessors:{}}).accessors,r=this.prototype;function i(t){const i=s(t);e[i]||(!function(t,e){const r=n.A.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(t,r,i){return this[n].call(this,e,t,r,i)},configurable:!0})})}(r,t),e[i]=!0)}return n.A.isArray(t)?t.forEach(i):i(t),this}}u.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),n.A.reduceDescriptors(u.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}}),n.A.freezeMethods(u);const l=u},7202:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHA512_IV=e.SHA384_IV=e.SHA224_IV=e.SHA256_IV=e.HashMD=void 0,e.setBigUint64=i,e.Chi=function(t,e,r){return t&e^~t&r},e.Maj=function(t,e,r){return t&e^t&r^e&r};const n=r(9175);function i(t,e,r,n){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,r,n);const i=BigInt(32),o=BigInt(4294967295),s=Number(r>>i&o),a=Number(r&o),c=n?4:0,u=n?0:4;t.setUint32(e+c,s,n),t.setUint32(e+u,a,n)}class o extends n.Hash{constructor(t,e,r,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=i,this.buffer=new Uint8Array(t),this.view=(0,n.createView)(this.buffer)}update(t){(0,n.aexists)(this),t=(0,n.toBytes)(t),(0,n.abytes)(t);const{view:e,buffer:r,blockLen:i}=this,o=t.length;for(let s=0;s<o;){const a=Math.min(i-this.pos,o-s);if(a===i){const e=(0,n.createView)(t);for(;i<=o-s;s+=i)this.process(e,s);continue}r.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,n.aexists)(this),(0,n.aoutput)(t,this),this.finished=!0;const{buffer:e,view:r,blockLen:o,isLE:s}=this;let{pos:a}=this;e[a++]=128,(0,n.clean)(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(r,0),a=0);for(let t=a;t<o;t++)e[t]=0;i(r,o-8,BigInt(8*this.length),s),this.process(r,0);const c=(0,n.createView)(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=u/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<l;t++)c.setUint32(4*t,d[t],s)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const r=t.slice(0,e);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:r,length:n,finished:i,destroyed:o,pos:s}=this;return t.destroyed=o,t.finished=i,t.length=n,t.pos=s,n%e&&t.buffer.set(r),t}clone(){return this._cloneInto()}}e.HashMD=o,e.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),e.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),e.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),e.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},7265:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9042),i=Object.prototype.hasOwnProperty;const o=function(t,e,r,o,s,a){var c=1&r,u=(0,n.A)(t),l=u.length;if(l!=(0,n.A)(e).length&&!c)return!1;for(var d=l;d--;){var h=u[d];if(!(c?h in e:i.call(e,h)))return!1}var f=a.get(t),p=a.get(e);if(f&&p)return f==e&&p==t;var y=!0;a.set(t,e),a.set(e,t);for(var g=c;++d<l;){var m=t[h=u[d]],_=e[h];if(o)var b=c?o(_,m,h,e,t,a):o(m,_,h,t,e,a);if(!(void 0===b?m===_||s(m,_,r,o,a):b)){y=!1;break}g||(g="constructor"==h)}if(y&&!g){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(y=!1)}return a.delete(t),a.delete(e),y}},7271:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=Object.prototype;const i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},7275:(t,e,r)=>{"use strict";r.d(e,{A:()=>W});var n=r(2125);const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:s,toStringTag:a}=Symbol,c=(u=Object.create(null),t=>{const e=i.call(t);return u[e]||(u[e]=e.slice(8,-1).toLowerCase())});var u;const l=t=>(t=t.toLowerCase(),e=>c(e)===t),d=t=>e=>typeof e===t,{isArray:h}=Array,f=d("undefined");const p=l("ArrayBuffer");const y=d("string"),g=d("function"),m=d("number"),_=t=>null!==t&&"object"==typeof t,b=t=>{if("object"!==c(t))return!1;const e=o(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||a in t||s in t)},v=l("Date"),w=l("File"),A=l("Blob"),E=l("FileList"),S=l("URLSearchParams"),[B,I,x,L]=["ReadableStream","Request","Response","Headers"].map(l);function O(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,i;if("object"!=typeof t&&(t=[t]),h(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{const i=r?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(n=0;n<o;n++)s=i[n],e.call(null,t[s],s,t)}}function T(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,i=r.length;for(;i-- >0;)if(n=r[i],e===n.toLowerCase())return n;return null}const k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,R=t=>!f(t)&&t!==k;const C=(P="undefined"!=typeof Uint8Array&&o(Uint8Array),t=>P&&t instanceof P);var P;const F=l("HTMLFormElement"),M=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),U=l("RegExp"),H=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};O(r,(r,i)=>{let o;!1!==(o=e(r,i,t))&&(n[i]=o||r)}),Object.defineProperties(t,n)};const j=l("AsyncFunction"),N=(V="function"==typeof setImmediate,D=g(k.postMessage),V?setImmediate:D?($=`axios@${Math.random()}`,z=[],k.addEventListener("message",({source:t,data:e})=>{t===k&&e===$&&z.length&&z.shift()()},!1),t=>{z.push(t),k.postMessage($,"*")}):t=>setTimeout(t));var V,D,$,z;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(k):"undefined"!=typeof process&&process.nextTick||N,W={isArray:h,isArrayBuffer:p,isBuffer:function(t){return null!==t&&!f(t)&&null!==t.constructor&&!f(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=c(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e},isString:y,isNumber:m,isBoolean:t=>!0===t||!1===t,isObject:_,isPlainObject:b,isReadableStream:B,isRequest:I,isResponse:x,isHeaders:L,isUndefined:f,isDate:v,isFile:w,isBlob:A,isRegExp:U,isFunction:g,isStream:t=>_(t)&&g(t.pipe),isURLSearchParams:S,isTypedArray:C,isFileList:E,forEach:O,merge:function t(){const{caseless:e}=R(this)&&this||{},r={},n=(n,i)=>{const o=e&&T(r,i)||i;b(r[o])&&b(n)?r[o]=t(r[o],n):b(n)?r[o]=t({},n):h(n)?r[o]=n.slice():r[o]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&O(arguments[t],n);return r},extend:(t,e,r,{allOwnKeys:i}={})=>(O(e,(e,i)=>{r&&g(e)?t[i]=(0,n.A)(e,r):t[i]=e},{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let i,s,a;const c={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],n&&!n(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==r&&o(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:c,kindOfTest:l,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(h(t))return t;let e=t.length;if(!m(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[s]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:F,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors:H,freezeMethods:t=>{H(t,(e,r)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];g(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach(t=>{r[t]=!0})};return h(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:T,global:k,isContextDefined:R,isSpecCompliantForm:function(t){return!!(t&&g(t.append)&&"FormData"===t[a]&&t[s])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(_(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const i=h(t)?[]:{};return O(t,(t,e)=>{const o=r(t,n+1);!f(o)&&(i[e]=o)}),e[n]=void 0,i}}return t};return r(t,0)},isAsyncFn:j,isThenable:t=>t&&(_(t)||g(t))&&g(t.then)&&g(t.catch),setImmediate:N,asap:G,isIterable:t=>null!=t&&g(t[s])}},7311:(t,e,r)=>{"use strict";r.d(e,{O:()=>a,o:()=>u});var n=r(6568),i=r(8330),o=r(8693),s=r(1089);const a="tokenUpdated",c={maxRetries:3,initialDelay:500};class u{static instance;_appId="";_secret="";_platform;_accessToken="";_expiredTime=0;_version="";_identifier="";_webIdentifier="";_tokenGetter;_tokenPending=null;_dispatch=(0,s.A)(a);_globalDispatcher;constructor(){}static getInstance(){return u.instance||(u.instance=new u),u.instance}async setAccessByAppKey(t){this._tokenGetter=this._fetchToken.bind(this);const{appId:e,secret:r,platform:n}=t;this._appId=e,this._secret=r,this._platform=n,this._version=n?.sdkVersion||i.rE,this._identifier=n?.identifier||await this.getWebIdentifier()}setTokenGetter(t){this._tokenGetter=t}async setupTokenManager(){if(!this._tokenGetter)throw new Error("getTokenAsync() is not set!");const{maxRetries:t,initialDelay:e}=c;let r=0;for(;r<=t;)try{const t=await this._tokenGetter();if(t)return void this._updateContext(t)}catch(n){if(r++,r>t)throw this._globalDispatcher.call("unauthorized"),n;await this._retryDelay(r,e)}}getSdkVersion(){return this._version||i.rE}async getIdentifier(){return this._identifier||await this.getWebIdentifier()}async getAccessToken(){if(this._accessToken&&!this._isTokenExpired)return this._accessToken;if(this._tokenPending)return this._tokenPending;if(!this._tokenGetter)throw new Error("Token getter not configured. Call setGetTokenAsync() first.");return this._tokenPending=this._tokenGetter().then(t=>(this._updateContext(t),this._dispatch.call(a,null,t.accessToken),t.accessToken)).catch(t=>{throw this._tokenPending=null,t}).finally(()=>{this._tokenPending=null}),this._tokenPending}async getWebIdentifier(){if(!this._webIdentifier){const t=await n.Ay.load(),e=await t.get();this._webIdentifier=e.visitorId}return this._webIdentifier}on(t,e){return this._dispatch.on(t,e),{off:()=>this._dispatch.on(t,null)}}setGlobalDispatcher(t){this._globalDispatcher=t}getGlobalDispatcher(){return this._globalDispatcher}clearState(){this._appId="",this._secret="",this._platform=void 0,this._webIdentifier="",this._tokenPending=null,this._tokenGetter=void 0,this._accessToken="",this._expiredTime=0,this._version="",this._identifier=""}get _isTokenExpired(){return this._expiredTime<=Date.now()}_updateContext(t){const{accessToken:e,expiredTime:r,identifier:n,sdkVersion:i}=t;this._accessToken=e,this._expiredTime=r,void 0!==n&&(this._identifier=n),void 0!==i&&(this._version=i)}_fetchToken(){return(0,o.i)(this._appId,this._secret,this._platform)}async _retryDelay(t,e){const r=e*Math.pow(2,t-1);return console.warn(`Retrying in ${r} ms... (Attempt ${t})`),new Promise(t=>setTimeout(t,r))}}},7346:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(2851),i=r(7465),o=r(5353),s=r(3149),a=r(901);const c=function(t,e,r,c){if(!(0,s.A)(t))return t;for(var u=-1,l=(e=(0,i.A)(e,t)).length,d=l-1,h=t;null!=h&&++u<l;){var f=(0,a.A)(e[u]),p=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(u!=d){var y=h[f];void 0===(p=c?c(y,f,h):void 0)&&(p=(0,s.A)(y)?y:(0,o.A)(e[u+1])?[]:{})}(0,n.A)(h,f,p),h=h[f]}return t}},7352:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7275);const i=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){n.A.forEach(this.handlers,function(e){null!==e&&t(e)})}}},7422:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(423),i=r(7064),o=r(8446);const s=function(t){return(0,o.A)(t)?(0,n.A)(t):(0,i.A)(t)}},7465:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2049),i=r(6586),o=r(5722),s=r(8182);const a=function(t,e){return(0,n.A)(t)?t:(0,i.A)(t,e)?[t]:(0,o.A)((0,s.A)(t))}},7500:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(6318);const i=function(t,e,r){var i=null==t?void 0:(0,n.A)(t,e);return void 0===i?r:i}},7511:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9789),i=r(5054);const o=function(t,e){return null!=t&&(0,i.A)(t,e,n.A)}},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=a(t),s=o[0],c=o[1],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,c)),l=0,d=c>0?s-4:s;for(r=0;r<d;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===c&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[l++]=255&e);1===c&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,c=n-i;a<c;a+=s)o.push(u(t,a,a+s>c?c:a+s));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function u(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(c(n));return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7536:(t,e,r)=>{"use strict";r.d(e,{A:()=>w});var n=r(7275),i=r(2125),o=r(5978),s=r(4662),a=r(6013),c=r(7887),u=r(8458),l=r(4874),d=r(9575),h=r(9888),f=r(665),p=r(4062),y=r(605),g=r(8562),m=r(7110),_=r(6263),b=r(7693);const v=function t(e){const r=new o.A(e),a=(0,i.A)(o.A.prototype.request,r);return n.A.extend(a,o.A.prototype,r,{allOwnKeys:!0}),n.A.extend(a,r,null,{allOwnKeys:!0}),a.create=function(r){return t((0,s.A)(e,r))},a}(a.A);v.Axios=o.A,v.CanceledError=u.A,v.CancelToken=l.A,v.isCancel=d.A,v.VERSION=h.x,v.toFormData=f.A,v.AxiosError=p.A,v.Cancel=v.CanceledError,v.all=function(t){return Promise.all(t)},v.spread=y.A,v.isAxiosError=g.A,v.mergeConfig=s.A,v.AxiosHeaders=m.A,v.formToJSON=t=>(0,c.A)(n.A.isHTMLForm(t)?new FormData(t):t),v.getAdapter=_.A.getAdapter,v.HttpStatusCode=b.A,v.default=v;const w=v},7678:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aes256cbc=e.aes256gcm=void 0;var n=r(469);e.aes256gcm=function(t,e,r){return(0,n.gcm)(t,e,r)};e.aes256cbc=function(t,e,r){return(0,n.cbc)(t,e)}},7681:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7919),i=r(8335),o=r(5917);const s=function(t,e){var r=this.__data__;if(r instanceof n.A){var s=r.__data__;if(!i.A||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new o.A(s)}return r.set(t,e),this.size=r.size,this}},7693:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});const n={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(n).forEach(([t,e])=>{n[e]=t});const i=n},7757:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aesDecrypt=e.aesEncrypt=e.symDecrypt=e.symEncrypt=void 0;var n=r(6527),i=r(8489),o=r(7678),s=r(83),a=r(4928),c=r(1666);e.symEncrypt=function(t,e,r){return u(l,t,e,r)};function u(t,e,r,n){var i=(0,a.symmetricAlgorithm)();if("aes-256-gcm"===i)return t(o.aes256gcm,e,r,(0,a.symmetricNonceLength)(),c.AEAD_TAG_LENGTH,n);if("xchacha20"===i)return t(s.xchacha20,e,r,c.XCHACHA20_NONCE_LENGTH,c.AEAD_TAG_LENGTH,n);if("aes-256-cbc"===i)return t(o.aes256cbc,e,r,16,0);throw new Error("Not implemented")}function l(t,e,r,o,s,a){var c=(0,i.randomBytes)(o),u=t(e,c,a).encrypt(r);if(0===s)return(0,n.concatBytes)(c,u);var l=u.length-s,d=u.subarray(0,l),h=u.subarray(l);return(0,n.concatBytes)(c,h,d)}function d(t,e,r,i,o,s){var a=r.subarray(0,i),c=t(e,Uint8Array.from(a),s),u=r.subarray(i);if(0===o)return c.decrypt(u);var l=u.subarray(0,o),d=u.subarray(o);return c.decrypt((0,n.concatBytes)(d,l))}e.symDecrypt=function(t,e,r){return u(d,t,e,r)},e.aesEncrypt=e.symEncrypt,e.aesDecrypt=e.symDecrypt},7808:(t,e,r)=>{"use strict";r.d(e,{Cm:()=>i,EC:()=>s,Uk:()=>o});var n=r(7311);function i(){return n.o.getInstance().getIdentifier()}function o(t){n.o.getInstance().setTokenGetter(t)}function s(){return n.o.getInstance().setupTokenManager()}},7809:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}},7837:(t,e,r)=>{"use strict";r.d(e,{C1:()=>s,Vj:()=>a,mM:()=>c});var n=r(3873),i=r(66),o=r(7275);const s=(t,e,r=3)=>{let o=0;const s=(0,n.A)(50,250);return(0,i.A)(r=>{const n=r.loaded,i=r.lengthComputable?r.total:void 0,a=n-o,c=s(a);o=n;t({loaded:n,total:i,progress:i?n/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&n<=i?(i-n)/c:void 0,event:r,lengthComputable:null!=i,[e?"download":"upload"]:!0})},r)},a=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},c=t=>(...e)=>o.A.asap(()=>t(...e))},7880:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=/\s/;const i=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},7887:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7275);const i=function(t){function e(t,r,i,o){let s=t[o++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),c=o>=t.length;if(s=!s&&n.A.isArray(i)?i.length:s,c)return n.A.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a;i[s]&&n.A.isObject(i[s])||(i[s]=[]);return e(t,r,i[s],o)&&n.A.isArray(i[s])&&(i[s]=function(t){const e={},r=Object.keys(t);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],e[o]=t[o];return e}(i[s])),!a}if(n.A.isFormData(t)&&n.A.isFunction(t.entries)){const r={};return n.A.forEachEntry(t,(t,i)=>{e(function(t){return n.A.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),i,r,0)}),r}return null}},7919:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(6838),i=r(2384),o=r(4787),s=r(8207),a=r(1031);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const u=c},7960:(t,e,r)=>{"use strict";r.d(e,{A:()=>A});var n=r(3820),i=r(7275),o=r(4062),s=r(2723),a=r(1791),c=r(7110),u=r(7837),l=r(8382),d=r(3853);const h="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,f=h&&"function"==typeof ReadableStream,p=h&&("function"==typeof TextEncoder?(y=new TextEncoder,t=>y.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var y;const g=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},m=f&&g(()=>{let t=!1;const e=new Request(n.A.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),_=f&&g(()=>i.A.isReadableStream(new Response("").body)),b={stream:_&&(t=>t.body)};var v;h&&(v=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!b[t]&&(b[t]=i.A.isFunction(v[t])?e=>e[t]():(e,r)=>{throw new o.A(`Response type '${t}' is not supported`,o.A.ERR_NOT_SUPPORT,r)})}));const w=async(t,e)=>{const r=i.A.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(i.A.isBlob(t))return t.size;if(i.A.isSpecCompliantForm(t)){const e=new Request(n.A.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return i.A.isArrayBufferView(t)||i.A.isArrayBuffer(t)?t.byteLength:(i.A.isURLSearchParams(t)&&(t+=""),i.A.isString(t)?(await p(t)).byteLength:void 0)})(e):r},A=h&&(async t=>{let{url:e,method:r,data:n,signal:h,cancelToken:f,timeout:p,onDownloadProgress:y,onUploadProgress:g,responseType:v,headers:A,withCredentials:E="same-origin",fetchOptions:S}=(0,l.A)(t);v=v?(v+"").toLowerCase():"text";let B,I=(0,s.A)([h,f&&f.toAbortSignal()],p);const x=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let L;try{if(g&&m&&"get"!==r&&"head"!==r&&0!==(L=await w(A,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(i.A.isFormData(n)&&(t=r.headers.get("content-type"))&&A.setContentType(t),r.body){const[t,e]=(0,u.Vj)(L,(0,u.C1)((0,u.mM)(g)));n=(0,a.E9)(r.body,65536,t,e)}}i.A.isString(E)||(E=E?"include":"omit");const o="credentials"in Request.prototype;B=new Request(e,{...S,signal:I,method:r.toUpperCase(),headers:A.normalize().toJSON(),body:n,duplex:"half",credentials:o?E:void 0});let s=await fetch(B,S);const l=_&&("stream"===v||"response"===v);if(_&&(y||l&&x)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=s[e]});const e=i.A.toFiniteNumber(s.headers.get("content-length")),[r,n]=y&&(0,u.Vj)(e,(0,u.C1)((0,u.mM)(y),!0))||[];s=new Response((0,a.E9)(s.body,65536,r,()=>{n&&n(),x&&x()}),t)}v=v||"text";let h=await b[i.A.findKey(b,v)||"text"](s,t);return!l&&x&&x(),await new Promise((e,r)=>{(0,d.A)(e,r,{data:h,headers:c.A.from(s.headers),status:s.status,statusText:s.statusText,config:t,request:B})})}catch(e){if(x&&x(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new o.A("Network Error",o.A.ERR_NETWORK,t,B),{cause:e.cause||e});throw o.A.from(e,e&&e.code,t,B)}})},8021:(t,e,r)=>{"use strict";r.d(e,{B:()=>i});var n=r(4543);function i(t,e=30){let r,i=null;return{promise:new Promise((o,s)=>{i=s;const a=performance.now(),c=t();c?o(c):r=setInterval(()=>{const i=t();i?(clearInterval(r),o(i)):(performance.now()-a)/1e3>e&&(s(new n.e("Timeouts or Feature is not found in the map at current zoom level.",{status:404,name:"NetworkError"})),clearInterval(r))},100)}),abort:()=>{r&&(clearInterval(r),r=void 0),i&&(i(new n.e("Query was aborted by the user.",{status:400,name:"AbortError"})),i=null)}}}},8104:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return null==t?void 0:t[e]}},8167:(t,e,r)=>{"use strict";r.d(e,{Z:()=>s});var n=r(8287),i=r(6748);void 0===globalThis.Buffer&&(globalThis.Buffer=n.hp),i.VV.ellipticCurve="secp256k1",i.VV.symmetricAlgorithm="aes-256-gcm";const o=new TextEncoder;function s(t,e){return(0,i.w)(t,o.encode(e)).toString("hex")}},8182:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(52);const i=function(t){return null==t?"":(0,n.A)(t)}},8207:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(169);const i=function(t){return(0,n.A)(this.__data__,t)>-1}},8262:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9034),i=r(6787);function o(t,e,r){let o=!(0,n.A)(e);return t&&(o||0==r)?(0,i.A)(t,e):e}},8287:(t,e,r)=>{"use strict";const n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=c,e.IS=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|y(t,e);let n=a(r);const i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(K(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return f(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(K(t,SharedArrayBuffer)||t&&K(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return c.from(n,e,r);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||Y(t.length)?a(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function d(t){return l(t),a(t<0?0:0|p(t))}function h(t){const e=t.length<0?0:0|p(t.length),r=a(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function f(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function y(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(t).length;default:if(i)return n?-1:W(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,r);case"utf8":case"utf-8":return I(this,e,r);case"ascii":return L(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return B(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function _(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){let o,s=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;o<a;o++)if(u(t,o)===u(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===c)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+c>a&&(r=a-c),o=r;o>=0;o--){let r=!0;for(let n=0;n<c;n++)if(u(t,o+n)!==u(e,n)){r=!1;break}if(r)return o}return-1}function v(t,e,r,n){r=Number(r)||0;const i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=e.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(e.substr(2*s,2),16);if(Y(n))return s;t[r+s]=n}return s}function w(t,e,r,n){return Z(W(e,t.length-r),t,r,n)}function A(t,e,r,n){return Z(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function E(t,e,r,n){return Z(q(e),t,r,n)}function S(t,e,r,n){return Z(function(t,e){let r,n,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function B(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function I(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i<r;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,a,c;switch(s){case 1:e<128&&(o=e);break;case 2:r=t[i+1],128==(192&r)&&(c=(31&e)<<6|63&r,c>127&&(o=c));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(c=(15&e)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(c=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(t){const e=t.length;if(e<=x)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=x));return r}(n)}c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,r){return function(t,e,r){return l(t),t<=0?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)}(t,e,r)},c.allocUnsafe=function(t){return d(t)},c.allocUnsafeSlow=function(t){return d(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=c.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if(K(e,Uint8Array))i+e.length>n.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?I(this,0,t):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const r=e.IS;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,r,n,i){if(K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0);const a=Math.min(o,s),u=this.slice(n,i),l=t.slice(e,r);for(let t=0;t<a;++t)if(u[t]!==l[t]){o=u[t],s=l[t];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},c.prototype.indexOf=function(t,e,r){return _(this,t,e,r,!0)},c.prototype.lastIndexOf=function(t,e,r){return _(this,t,e,r,!1)},c.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":case"latin1":case"binary":return A(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const x=4096;function L(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function O(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function T(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=X[t[n]];return i}function k(t,e,r){const n=t.slice(e,r);let i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}function R(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function P(t,e,r,n,i){D(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function F(t,e,r,n,i){D(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function M(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,o){return e=+e,r>>>=0,o||M(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function H(t,e,r,n,o){return e=+e,r>>>=0,o||M(t,0,r,8),i.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=J(function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=J(function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||R(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){t>>>=0,e||R(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=J(function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),c.prototype.readBigInt64BE=J(function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)}),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||R(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){C(this,t,e,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){C(this,t,e,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=J(function(t,e=0){return P(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=J(function(t,e=0){return F(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);C(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);C(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=J(function(t,e=0){return P(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=J(function(t,e=0){return F(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return H(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return H(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);const i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},c.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{const o=c.isBuffer(t)?t:c.from(t,n),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%s]}return this};const j={};function N(t,e,r){j[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function V(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function D(t,e,r,n,i,o){if(t>r||t<e){const n="bigint"==typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new j.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){$(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||z(e,t.length-(r+1))}(n,i,o)}function $(t,e){if("number"!=typeof t)throw new j.ERR_INVALID_ARG_TYPE(e,"number",t)}function z(t,e,r){if(Math.floor(t)!==t)throw $(t,r),new j.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}N("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),N("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),N("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=V(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);const G=/[^+/0-9A-Za-z-_]/g;function W(t,e){let r;e=e||1/0;const n=t.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Z(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function K(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function J(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},8291:(t,e,r)=>{"use strict";function n(t){return t.layers.filter(t=>!o(t.source))}function i(t){return t.layers.filter(t=>o(t.source))}function o(t){return"string"==typeof t&&t.startsWith("indoor-")}r.d(e,{Z3:()=>n,cq:()=>i,ld:()=>o})},8330:t=>{"use strict";t.exports={rE:"9.0.0-pre.3"}},8335:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(702),i=r(1917);const o=(0,n.A)(i.A,"Map")},8382:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(3820),i=r(7275),o=r(6305),s=r(9887),a=r(8262),c=r(4662),u=r(7110),l=r(3967);const d=t=>{const e=(0,c.A)({},t);let r,{data:d,withXSRFToken:h,xsrfHeaderName:f,xsrfCookieName:p,headers:y,auth:g}=e;if(e.headers=y=u.A.from(y),e.url=(0,l.A)((0,a.A)(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),g&&y.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),i.A.isFormData(d))if(n.A.hasStandardBrowserEnv||n.A.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if(!1!==(r=y.getContentType())){const[t,...e]=r?r.split(";").map(t=>t.trim()).filter(Boolean):[];y.setContentType([t||"multipart/form-data",...e].join("; "))}if(n.A.hasStandardBrowserEnv&&(h&&i.A.isFunction(h)&&(h=h(e)),h||!1!==h&&(0,o.A)(e.url))){const t=f&&p&&s.A.read(p);t&&y.set(f,t)}return e}},8389:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(2559),i=r(2141),o=r(6224);const s=function(t,e){return t&&t.length?(0,n.A)(t,(0,i.A)(e,2),o.A):void 0}},8417:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(674),i=Object.prototype.hasOwnProperty;const o=function(t){var e=this.__data__;if(n.A){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},8446:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9610),i=r(5254);const o=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,n.A)(t)}},8458:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4062);function i(t,e,r){n.A.call(this,null==t?"canceled":t,n.A.ERR_CANCELED,e,r),this.name="CanceledError"}r(7275).A.inherits(i,n.A,{__CANCEL__:!0});const o=i},8489:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gcm=e.ctr=e.cbc=e.utils=void 0,e.randomBytes=o,e.getWebcryptoSubtle=s,e.managedNonce=function(t){const{nonceLength:e}=t;return(0,i.anumber)(e),(r,...n)=>({encrypt(s,...a){const c=o(e),u=t(r,c,...n).encrypt(s,...a),l=(0,i.concatBytes)(c,u);return u.fill(0),l},decrypt(i,...o){const s=i.subarray(0,e),a=i.subarray(e);return t(r,s,...n).decrypt(a,...o)}})};const n=r(5297),i=r(6527);function o(t=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(t));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}function s(){if(n.crypto&&"object"==typeof n.crypto.subtle&&null!=n.crypto.subtle)return n.crypto.subtle;throw new Error("crypto.subtle must be defined")}e.utils={async encrypt(t,e,r,n){const i=s(),o=await i.importKey("raw",t,e,!0,["encrypt"]),a=await i.encrypt(r,o,n);return new Uint8Array(a)},async decrypt(t,e,r,n){const i=s(),o=await i.importKey("raw",t,e,!0,["decrypt"]),a=await i.decrypt(r,o,n);return new Uint8Array(a)}};const a="AES-CBC",c="AES-CTR",u="AES-GCM";function l(t){return(r,n,o)=>{(0,i.abytes)(r),(0,i.abytes)(n);const s={name:t,length:8*r.length},l=function(t,e,r){if(t===a)return{name:a,iv:e};if(t===c)return{name:c,counter:e,length:64};if(t===u)return r?{name:u,iv:e,additionalData:r}:{name:u,iv:e};throw new Error("unknown aes block mode")}(t,n,o);let d=!1;return{encrypt(t){if((0,i.abytes)(t),d)throw new Error("Cannot encrypt() twice with same key / nonce");return d=!0,e.utils.encrypt(r,s,l,t)},decrypt:t=>((0,i.abytes)(t),e.utils.decrypt(r,s,l,t))}}}e.cbc=l(a),e.ctr=l(c),e.gcm=(()=>l(u))()},8510:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.secp256k1_hasher=e.schnorr=e.secp256k1=void 0;const n=r(7076),i=r(9175),o=r(3562),s=r(1761),a=r(4967),c=r(1705),u=r(8627),l={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},d=BigInt(0),h=BigInt(1),f=BigInt(2),p=(t,e)=>(t+e/f)/e;function y(t){const e=l.p,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),c=BigInt(44),u=BigInt(88),d=t*t*t%e,h=d*d*t%e,p=(0,a.pow2)(h,r,e)*h%e,y=(0,a.pow2)(p,r,e)*h%e,m=(0,a.pow2)(y,f,e)*d%e,_=(0,a.pow2)(m,i,e)*m%e,b=(0,a.pow2)(_,o,e)*_%e,v=(0,a.pow2)(b,c,e)*b%e,w=(0,a.pow2)(v,u,e)*v%e,A=(0,a.pow2)(w,c,e)*b%e,E=(0,a.pow2)(A,r,e)*h%e,S=(0,a.pow2)(E,s,e)*_%e,B=(0,a.pow2)(S,n,e)*d%e,I=(0,a.pow2)(B,f,e);if(!g.eql(g.sqr(I),t))throw new Error("Cannot find square root");return I}const g=(0,a.Field)(l.p,void 0,void 0,{sqrt:y});e.secp256k1=(0,o.createCurve)({...l,Fp:g,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=l.n,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-h*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,s=BigInt("0x100000000000000000000000000000000"),c=p(o*t,e),u=p(-n*t,e);let d=(0,a.mod)(t-c*r-u*i,e),f=(0,a.mod)(-c*n-u*o,e);const y=d>s,g=f>s;if(y&&(d=e-d),g&&(f=e-f),d>s||f>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:y,k1:d,k2neg:g,k2:f}}}},n.sha256);const m={};function _(t,...e){let r=m[t];if(void 0===r){const e=(0,n.sha256)(Uint8Array.from(t,t=>t.charCodeAt(0)));r=(0,u.concatBytes)(e,e),m[t]=r}return(0,n.sha256)((0,u.concatBytes)(r,...e))}const b=t=>t.toBytes(!0).slice(1),v=t=>(0,u.numberToBytesBE)(t,32),w=t=>(0,a.mod)(t,l.p),A=t=>(0,a.mod)(t,l.n),E=(()=>e.secp256k1.Point)(),S=t=>t%f===d;function B(t){let r=e.secp256k1.utils.normPrivateKeyToScalar(t),n=E.fromPrivateKey(r);return{scalar:S(n.y)?r:A(-r),bytes:b(n)}}function I(t){(0,u.aInRange)("x",t,h,l.p);const e=w(t*t);let r=y(w(e*t+BigInt(7)));S(r)||(r=w(-r));const n=E.fromAffine({x:t,y:r});return n.assertValidity(),n}const x=u.bytesToNumberBE;function L(...t){return A(x(_("BIP0340/challenge",...t)))}function O(t){return B(t).bytes}function T(t,e,r=(0,i.randomBytes)(32)){const n=(0,u.ensureBytes)("message",t),{bytes:o,scalar:s}=B(e),a=(0,u.ensureBytes)("auxRand",r,32),c=v(s^x(_("BIP0340/aux",a))),l=_("BIP0340/nonce",c,o,n),h=A(x(l));if(h===d)throw new Error("sign failed: k is zero");const{bytes:f,scalar:p}=B(h),y=L(f,o,n),g=new Uint8Array(64);if(g.set(f,0),g.set(v(A(p+y*s)),32),!k(g,n,o))throw new Error("sign: Invalid signature produced");return g}function k(t,e,r){const n=(0,u.ensureBytes)("signature",t,64),i=(0,u.ensureBytes)("message",e),o=(0,u.ensureBytes)("publicKey",r,32);try{const t=I(x(o)),e=x(n.subarray(0,32));if(!(0,u.inRange)(e,h,l.p))return!1;const r=x(n.subarray(32,64));if(!(0,u.inRange)(r,h,l.n))return!1;const s=L(v(e),b(t),i),a=E.BASE.multiplyUnsafe(r).add(t.multiplyUnsafe(A(-s))),{x:c,y:d}=a.toAffine();return!(a.is0()||!S(d)||c!==e)}catch(t){return!1}}e.schnorr={getPublicKey:O,sign:T,verify:k,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:I,pointToBytes:b,numberToBytesBE:u.numberToBytesBE,bytesToNumberBE:u.bytesToNumberBE,taggedHash:_,mod:a.mod}};const R=(()=>(0,s.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(t=>t.map(t=>BigInt(t)))))(),C=(()=>(0,c.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))();e.secp256k1_hasher=(0,s.createHasher)(e.secp256k1.Point,t=>{const{x:e,y:r}=C(g.create(t[0]));return R(e,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}),e.hashToCurve=e.secp256k1_hasher.hashToCurve,e.encodeToCurve=e.secp256k1_hasher.encodeToCurve},8556:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n="undefined"!=typeof FormData?FormData:null},8562:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7275);function i(t){return n.A.isObject(t)&&!0===t.isAxiosError}},8627:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notImplemented=e.bitMask=e.utf8ToBytes=e.randomBytes=e.isBytes=e.hexToBytes=e.concatBytes=e.bytesToUtf8=e.bytesToHex=e.anumber=e.abytes=void 0,e.abool=function(t,e){if("boolean"!=typeof e)throw new Error(t+" boolean expected, got "+e)},e.numberToHexUnpadded=a,e.hexToNumber=c,e.bytesToNumberBE=function(t){return c((0,n.bytesToHex)(t))},e.bytesToNumberLE=function(t){return(0,n.abytes)(t),c((0,n.bytesToHex)(Uint8Array.from(t).reverse()))},e.numberToBytesBE=u,e.numberToBytesLE=function(t,e){return u(t,e).reverse()},e.numberToVarBytesBE=function(t){return(0,n.hexToBytes)(a(t))},e.ensureBytes=function(t,e,r){let i;if("string"==typeof e)try{i=(0,n.hexToBytes)(e)}catch(e){throw new Error(t+" must be hex string or Uint8Array, cause: "+e)}else{if(!(0,n.isBytes)(e))throw new Error(t+" must be hex string or Uint8Array");i=Uint8Array.from(e)}const o=i.length;if("number"==typeof r&&o!==r)throw new Error(t+" of length "+r+" expected, got "+o);return i},e.equalBytes=function(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return 0===r},e.inRange=d,e.aInRange=function(t,e,r,n){if(!d(e,r,n))throw new Error("expected valid "+t+": "+r+" <= n < "+n+", got "+e)},e.bitLen=function(t){let e;for(e=0;t>o;t>>=s,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&s},e.bitSet=function(t,e,r){return t|(r?s:o)<<BigInt(e)},e.createHmacDrbg=function(t,e,r){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");const i=t=>new Uint8Array(t),o=t=>Uint8Array.of(t);let s=i(t),a=i(t),c=0;const u=()=>{s.fill(1),a.fill(0),c=0},l=(...t)=>r(a,s,...t),d=(t=i(0))=>{a=l(o(0),t),s=l(),0!==t.length&&(a=l(o(1),t),s=l())},h=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const r=[];for(;t<e;){s=l();const e=s.slice();r.push(e),t+=s.length}return(0,n.concatBytes)(...r)};return(t,e)=>{let r;for(u(),d(t);!(r=e(h()));)d();return u(),r}},e.validateObject=function(t,e,r={}){const n=(e,r,n)=>{const i=h[r];if("function"!=typeof i)throw new Error("invalid validator function");const o=t[e];if(!(n&&void 0===o||i(o,t)))throw new Error("param "+String(e)+" is invalid. Expected "+r+", got "+o)};for(const[t,r]of Object.entries(e))n(t,r,!1);for(const[t,e]of Object.entries(r))n(t,e,!0);return t},e.isHash=function(t){return"function"==typeof t&&Number.isSafeInteger(t.outputLen)},e._validateObject=function(t,e,r={}){if(!t||"object"!=typeof t)throw new Error("expected valid options object");function n(e,r,n){const i=t[e];if(n&&void 0===i)return;const o=typeof i;if(o!==r||null===i)throw new Error(`param "${e}" is invalid: expected ${r}, got ${o}`)}Object.entries(e).forEach(([t,e])=>n(t,e,!1)),Object.entries(r).forEach(([t,e])=>n(t,e,!0))},e.memoized=function(t){const e=new WeakMap;return(r,...n)=>{const i=e.get(r);if(void 0!==i)return i;const o=t(r,...n);return e.set(r,o),o}};const n=r(9175);var i=r(9175);Object.defineProperty(e,"abytes",{enumerable:!0,get:function(){return i.abytes}}),Object.defineProperty(e,"anumber",{enumerable:!0,get:function(){return i.anumber}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return i.bytesToHex}}),Object.defineProperty(e,"bytesToUtf8",{enumerable:!0,get:function(){return i.bytesToUtf8}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return i.concatBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return i.hexToBytes}}),Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return i.isBytes}}),Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return i.randomBytes}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return i.utf8ToBytes}});const o=BigInt(0),s=BigInt(1);function a(t){const e=t.toString(16);return 1&e.length?"0"+e:e}function c(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return""===t?o:BigInt("0x"+t)}function u(t,e){return(0,n.hexToBytes)(t.toString(16).padStart(2*e,"0"))}const l=t=>"bigint"==typeof t&&o<=t;function d(t,e,r){return l(t)&&l(e)&&l(r)&&e<=t&&t<r}e.bitMask=t=>(s<<BigInt(t))-s;const h={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,stringOrUint8Array:t=>"string"==typeof t||(0,n.isBytes)(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};e.notImplemented=()=>{throw new Error("not implemented")}},8672:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},8683:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(9152),i=r(9575),o=r(6013),s=r(8458),a=r(7110),c=r(6263);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s.A(null,t)}function l(t){u(t),t.headers=a.A.from(t.headers),t.data=n.A.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return c.A.getAdapter(t.adapter||o.A.adapter)(t).then(function(e){return u(t),e.data=n.A.call(t,t.transformResponse,e),e.headers=a.A.from(e.headers),e},function(e){return(0,i.A)(e)||(u(t),e&&e.response&&(e.response.data=n.A.call(t,t.transformResponse,e.response),e.response.headers=a.A.from(e.response.headers))),Promise.reject(e)})}},8693:(t,e,r)=>{"use strict";r.d(e,{i:()=>l});var n=r(2658),i=r(5461),o=r(7808),s=r(9588),a=r(8167),c=r(8330);const u=["CORE_SDK",...(0,n.d)()];async function l(t,e,r,n){if(!t||!e)throw new Error("appId and secret are required");try{const l=await(0,i.l)(),h=await async function(t,e=d){return t??async function(t){return{identifier:await(0,o.Cm)(),origin:t,keyPlatform:"WEB",sdkVersion:c.rE}}(e)}(r,n),{identifier:f,sdkVersion:p,...y}=h,g={"Content-Type":"text/plain",sdkVersion:p},m=function(t,e){return(0,a.Z)(t,JSON.stringify(e))}(l,{appId:t,secret:e,identifier:f,timestamp:Date.now(),products:u,...y}),_=await fetch(s.R0,{method:"POST",body:m,headers:g});if(!_.ok){const t=await _.json(),{code:e,message:r}=t;if(401===_.status&&7001005===e)throw(0,i.U)(),new Error(r);throw new Error(r||`HTTP error! status: ${_.status}`)}const b=await _.json(),{accessToken:v,expiresIn:w}=b;return{accessToken:v,expiredTime:Date.now()+1e3*(w-90)}}catch(t){throw t instanceof Error?new Error(`Failed to get access token: ${t.message}`,{cause:t}):new Error(`Failed to get access token: ${String(t)}`)}}const d="undefined"!=typeof window&&window.location?.hostname?window.location.hostname:"restriction.test.example.com"},8700:(t,e,r)=>{"use strict";function n(t,e=","){return"string"==typeof t&&t.trim()?t.split(e):[]}r.d(e,{S:()=>n})},8719:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(9717),i=r(2789),o=r(4841),s=o.A&&o.A.isTypedArray;const a=s?(0,i.A)(s):n.A},8776:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9313),i=1/0;const o=function(t){return t?(t=(0,n.A)(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},8813:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(674),i=Object.prototype.hasOwnProperty;const o=function(t){var e=this.__data__;return n.A?void 0!==e[t]:i.call(e,t)}},8823:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(3149),i=r(7271),o=r(1493),s=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,n.A)(t))return(0,o.A)(t);var e=(0,i.A)(t),r=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&r.push(a);return r}},8884:(t,e,r)=>{"use strict";var n;r.d(e,{e:()=>n}),function(t){t.Access="access_control",t.Map="map"}(n||(n={}))},8900:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.xchacha20poly1305=e.chacha20poly1305=e._poly1305_aead=e.chacha12=e.chacha8=e.xchacha20=e.chacha20=e.chacha20orig=void 0,e.hchacha=a;const n=r(2506),i=r(1210),o=r(6527);function s(t,e,r,i,o,s=20){let a=t[0],c=t[1],u=t[2],l=t[3],d=e[0],h=e[1],f=e[2],p=e[3],y=e[4],g=e[5],m=e[6],_=e[7],b=o,v=r[0],w=r[1],A=r[2],E=a,S=c,B=u,I=l,x=d,L=h,O=f,T=p,k=y,R=g,C=m,P=_,F=b,M=v,U=w,H=A;for(let t=0;t<s;t+=2)E=E+x|0,F=(0,n.rotl)(F^E,16),k=k+F|0,x=(0,n.rotl)(x^k,12),E=E+x|0,F=(0,n.rotl)(F^E,8),k=k+F|0,x=(0,n.rotl)(x^k,7),S=S+L|0,M=(0,n.rotl)(M^S,16),R=R+M|0,L=(0,n.rotl)(L^R,12),S=S+L|0,M=(0,n.rotl)(M^S,8),R=R+M|0,L=(0,n.rotl)(L^R,7),B=B+O|0,U=(0,n.rotl)(U^B,16),C=C+U|0,O=(0,n.rotl)(O^C,12),B=B+O|0,U=(0,n.rotl)(U^B,8),C=C+U|0,O=(0,n.rotl)(O^C,7),I=I+T|0,H=(0,n.rotl)(H^I,16),P=P+H|0,T=(0,n.rotl)(T^P,12),I=I+T|0,H=(0,n.rotl)(H^I,8),P=P+H|0,T=(0,n.rotl)(T^P,7),E=E+L|0,H=(0,n.rotl)(H^E,16),C=C+H|0,L=(0,n.rotl)(L^C,12),E=E+L|0,H=(0,n.rotl)(H^E,8),C=C+H|0,L=(0,n.rotl)(L^C,7),S=S+O|0,F=(0,n.rotl)(F^S,16),P=P+F|0,O=(0,n.rotl)(O^P,12),S=S+O|0,F=(0,n.rotl)(F^S,8),P=P+F|0,O=(0,n.rotl)(O^P,7),B=B+T|0,M=(0,n.rotl)(M^B,16),k=k+M|0,T=(0,n.rotl)(T^k,12),B=B+T|0,M=(0,n.rotl)(M^B,8),k=k+M|0,T=(0,n.rotl)(T^k,7),I=I+x|0,U=(0,n.rotl)(U^I,16),R=R+U|0,x=(0,n.rotl)(x^R,12),I=I+x|0,U=(0,n.rotl)(U^I,8),R=R+U|0,x=(0,n.rotl)(x^R,7);let j=0;i[j++]=a+E|0,i[j++]=c+S|0,i[j++]=u+B|0,i[j++]=l+I|0,i[j++]=d+x|0,i[j++]=h+L|0,i[j++]=f+O|0,i[j++]=p+T|0,i[j++]=y+k|0,i[j++]=g+R|0,i[j++]=m+C|0,i[j++]=_+P|0,i[j++]=b+F|0,i[j++]=v+M|0,i[j++]=w+U|0,i[j++]=A+H|0}function a(t,e,r,i){let o=t[0],s=t[1],a=t[2],c=t[3],u=e[0],l=e[1],d=e[2],h=e[3],f=e[4],p=e[5],y=e[6],g=e[7],m=r[0],_=r[1],b=r[2],v=r[3];for(let t=0;t<20;t+=2)o=o+u|0,m=(0,n.rotl)(m^o,16),f=f+m|0,u=(0,n.rotl)(u^f,12),o=o+u|0,m=(0,n.rotl)(m^o,8),f=f+m|0,u=(0,n.rotl)(u^f,7),s=s+l|0,_=(0,n.rotl)(_^s,16),p=p+_|0,l=(0,n.rotl)(l^p,12),s=s+l|0,_=(0,n.rotl)(_^s,8),p=p+_|0,l=(0,n.rotl)(l^p,7),a=a+d|0,b=(0,n.rotl)(b^a,16),y=y+b|0,d=(0,n.rotl)(d^y,12),a=a+d|0,b=(0,n.rotl)(b^a,8),y=y+b|0,d=(0,n.rotl)(d^y,7),c=c+h|0,v=(0,n.rotl)(v^c,16),g=g+v|0,h=(0,n.rotl)(h^g,12),c=c+h|0,v=(0,n.rotl)(v^c,8),g=g+v|0,h=(0,n.rotl)(h^g,7),o=o+l|0,v=(0,n.rotl)(v^o,16),y=y+v|0,l=(0,n.rotl)(l^y,12),o=o+l|0,v=(0,n.rotl)(v^o,8),y=y+v|0,l=(0,n.rotl)(l^y,7),s=s+d|0,m=(0,n.rotl)(m^s,16),g=g+m|0,d=(0,n.rotl)(d^g,12),s=s+d|0,m=(0,n.rotl)(m^s,8),g=g+m|0,d=(0,n.rotl)(d^g,7),a=a+h|0,_=(0,n.rotl)(_^a,16),f=f+_|0,h=(0,n.rotl)(h^f,12),a=a+h|0,_=(0,n.rotl)(_^a,8),f=f+_|0,h=(0,n.rotl)(h^f,7),c=c+u|0,b=(0,n.rotl)(b^c,16),p=p+b|0,u=(0,n.rotl)(u^p,12),c=c+u|0,b=(0,n.rotl)(b^c,8),p=p+b|0,u=(0,n.rotl)(u^p,7);let w=0;i[w++]=o,i[w++]=s,i[w++]=a,i[w++]=c,i[w++]=m,i[w++]=_,i[w++]=b,i[w++]=v}e.chacha20orig=(0,n.createCipher)(s,{counterRight:!1,counterLength:8,allowShortKeys:!0}),e.chacha20=(0,n.createCipher)(s,{counterRight:!1,counterLength:4,allowShortKeys:!1}),e.xchacha20=(0,n.createCipher)(s,{counterRight:!1,counterLength:8,extendNonceFn:a,allowShortKeys:!1}),e.chacha8=(0,n.createCipher)(s,{counterRight:!1,counterLength:4,rounds:8}),e.chacha12=(0,n.createCipher)(s,{counterRight:!1,counterLength:4,rounds:12});const c=new Uint8Array(16),u=(t,e)=>{t.update(e);const r=e.length%16;r&&t.update(c.subarray(r))},l=new Uint8Array(32);function d(t,e,r,n,s){const a=t(e,r,l),c=i.poly1305.create(a);s&&u(c,s),u(c,n);const d=(0,o.u64Lengths)(n.length,s?s.length:0,!0);c.update(d);const h=c.digest();return(0,o.clean)(a,d),h}e._poly1305_aead=t=>(e,r,n)=>{const i=16;return{encrypt(s,a){const c=s.length;(a=(0,o.getOutput)(c+i,a,!1)).set(s);const u=a.subarray(0,-16);t(e,r,u,u,1);const l=d(t,e,r,u,n);return a.set(l,c),(0,o.clean)(l),a},decrypt(s,a){a=(0,o.getOutput)(s.length-i,a,!1);const c=s.subarray(0,-16),u=s.subarray(-16),l=d(t,e,r,c,n);if(!(0,o.equalBytes)(u,l))throw new Error("invalid tag");return a.set(s.subarray(0,-16)),t(e,r,a,a,1),(0,o.clean)(l),a}}},e.chacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:12,tagLength:16},(0,e._poly1305_aead)(e.chacha20)),e.xchacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:24,tagLength:16},(0,e._poly1305_aead)(e.xchacha20))},8967:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(1275),i=r(3736),o=r(4099);const s=function(t,e,r,s,a,c){var u=1&r,l=t.length,d=e.length;if(l!=d&&!(u&&d>l))return!1;var h=c.get(t),f=c.get(e);if(h&&f)return h==e&&f==t;var p=-1,y=!0,g=2&r?new n.A:void 0;for(c.set(t,e),c.set(e,t);++p<l;){var m=t[p],_=e[p];if(s)var b=u?s(_,m,p,e,t,c):s(m,_,p,t,e,c);if(void 0!==b){if(b)continue;y=!1;break}if(g){if(!(0,i.A)(e,function(t,e){if(!(0,o.A)(g,e)&&(m===t||a(m,t,r,s,c)))return g.push(e)})){y=!1;break}}else if(m!==_&&!a(m,_,r,s,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},9008:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return t}},9034:(t,e,r)=>{"use strict";function n(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}r.d(e,{A:()=>n})},9042:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(3831),i=r(4792),o=r(7422);const s=function(t){return(0,n.A)(t,o.A,i.A)}},9065:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var n=r(5295);Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return n.PrivateKey}});var i=r(2557);Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}})},9084:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(6318),i=r(7346),o=r(7465);const s=function(t,e,r){for(var s=-1,a=e.length,c={};++s<a;){var u=e[s],l=(0,n.A)(t,u);r(l,u)&&(0,i.A)(c,(0,o.A)(u,t),l)}return c}},9109:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9857),i=r(2302),o=r(9959);const s=n.A&&1/(0,o.A)(new n.A([,-0]))[1]==1/0?function(t){return new n.A(t)}:i.A},9152:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7275),i=r(6013),o=r(7110);function s(t,e){const r=this||i.A,s=e||r,a=o.A.from(s.headers);let c=s.data;return n.A.forEach(t,function(t){c=t.call(r,c,a.normalize(),e?e.status:void 0)}),a.normalize(),c}},9175:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=i,e.anumber=o,e.abytes=s,e.ahash=function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");o(t.outputLen),o(t.blockLen)},e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){s(t);const r=e.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)},e.u8=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},e.u32=function(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))},e.clean=function(...t){for(let e=0;e<t.length;e++)t[e].fill(0)},e.createView=function(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)},e.rotr=function(t,e){return t<<32-e|t>>>e},e.rotl=function(t,e){return t<<e|t>>>32-e>>>0},e.byteSwap=a,e.byteSwap32=c,e.bytesToHex=function(t){if(s(t),u)return t.toHex();let e="";for(let r=0;r<t.length;r++)e+=l[t[r]];return e},e.hexToBytes=function(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(u)return Uint8Array.fromHex(t);const e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const n=new Uint8Array(r);for(let e=0,i=0;e<r;e++,i+=2){const r=h(t.charCodeAt(i)),o=h(t.charCodeAt(i+1));if(void 0===r||void 0===o){const e=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+i)}n[e]=16*r+o}return n},e.asyncLoop=async function(t,r,n){let i=Date.now();for(let o=0;o<t;o++){n(o);const t=Date.now()-i;t>=0&&t<r||(await(0,e.nextTick)(),i+=t)}},e.utf8ToBytes=f,e.bytesToUtf8=function(t){return(new TextDecoder).decode(t)},e.toBytes=p,e.kdfInputToBytes=function(t){"string"==typeof t&&(t=f(t));return s(t),t},e.concatBytes=function(...t){let e=0;for(let r=0;r<t.length;r++){const n=t[r];s(n),e+=n.length}const r=new Uint8Array(e);for(let e=0,n=0;e<t.length;e++){const i=t[e];r.set(i,n),n+=i.length}return r},e.checkOpts=function(t,e){if(void 0!==e&&"[object Object]"!=={}.toString.call(e))throw new Error("options should be object or undefined");return Object.assign(t,e)},e.createHasher=y,e.createOptHasher=g,e.createXOFer=m,e.randomBytes=function(t=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(t));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")};const n=r(5145);function i(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function o(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function s(t,...e){if(!i(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function a(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function c(t){for(let e=0;e<t.length;e++)t[e]=a(t[e]);return t}e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],e.swap8IfBE=e.isLE?t=>t:t=>a(t),e.byteSwapIfBE=e.swap8IfBE,e.swap32IfBE=e.isLE?t=>t:c;const u=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),l=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));const d={_0:48,_9:57,A:65,F:70,a:97,f:102};function h(t){return t>=d._0&&t<=d._9?t-d._0:t>=d.A&&t<=d.F?t-(d.A-10):t>=d.a&&t<=d.f?t-(d.a-10):void 0}function f(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function p(t){return"string"==typeof t&&(t=f(t)),s(t),t}e.nextTick=async()=>{};function y(t){const e=e=>t().update(p(e)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function g(t){const e=(e,r)=>t(r).update(p(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e}function m(t){const e=(e,r)=>t(r).update(p(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e}e.Hash=class{},e.wrapConstructor=y,e.wrapConstructorWithOpts=g,e.wrapXOFConstructorWithOpts=m},9190:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},9205:(t,e,r)=>{"use strict";r.d(e,{N:()=>n});class n{_indoor;_isEnabled=!0;constructor(t){this._indoor=t}enable(){this._isEnabled=!0,this._indoor.setAllowBuildingSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowBuildingSwitch(!1)}get isEnabled(){return this._isEnabled}}},9266:(t,e,r)=>{"use strict";r.d(e,{ASSISTANT_LAYER_INDOOR_FLOORS:()=>s.FI,ASSISTANT_LAYER_SHARED_FLOORS:()=>s.TU,ERRORS:()=>l.S,OFFSET:()=>i.e$,PAGE:()=>i.KL,VERSION:()=>d,__internal:()=>u.S,convertBrowserLangToPresetLang:()=>o.y,getAccessToken:()=>a.i,getIdentifier:()=>c.Cm,setGetTokenAsync:()=>c.Uk,setupTokenManager:()=>c.EC});var n=r(8330),i=r(9588),o=r(4969),s=r(1965),a=r(8693),c=r(7808),u=r(2658),l=r(9489);const d=n.rE},9313:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(5488),i=r(3149),o=r(1882),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;const l=function(t){if("number"==typeof t)return t;if((0,o.A)(t))return NaN;if((0,i.A)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,i.A)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=(0,n.A)(t);var r=a.test(t);return r||c.test(t)?u(t.slice(2),r?2:8):s.test(t)?NaN:+t}},9378:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hexToPublicKey=e.convertPublicKeyFormat=e.getSharedPoint=e.getPublicKey=e.isValidPrivateKey=e.getValidSecret=void 0;var n=r(8489),i=r(459),o=r(8510),s=r(4928),a=r(1666),c=r(3503);e.getValidSecret=function(t){var r;do{r=(0,n.randomBytes)(a.SECRET_KEY_LENGTH)}while(!(0,e.isValidPrivateKey)(r,t));return r};e.isValidPrivateKey=function(t,e){return u(e||(0,s.ellipticCurve)(),function(e){return e.utils.isValidPrivateKey(t)},function(){return!0},function(){return!0})};e.getPublicKey=function(t,e){return u(e||(0,s.ellipticCurve)(),function(e){return e.getPublicKey(t)},function(e){return e.getPublicKey(t)},function(e){return e.getPublicKey(t)})};e.getSharedPoint=function(t,e,r,n){return u(n||(0,s.ellipticCurve)(),function(n){return n.getSharedSecret(t,e,r)},function(r){return r.getSharedSecret(t,e)},function(r){return d(r,t,e)})};e.convertPublicKeyFormat=function(t,e,r){return u(r||(0,s.ellipticCurve)(),function(r){return r.getSharedSecret(BigInt(1),t,e)},function(){return t},function(){return t})};function u(t,e,r,n){if("secp256k1"===t)return e(o.secp256k1);if("x25519"===t)return r(i.x25519);if("ed25519"===t)return n(i.ed25519);throw new Error("Not implemented")}e.hexToPublicKey=function(t,e){var r=(0,c.decodeHex)(t);return u(e||(0,s.ellipticCurve)(),function(){return l(r)},function(){return r},function(){return r})};var l=function(t){if(t.length===a.ETH_PUBLIC_KEY_SIZE){var e=new Uint8Array(1+t.length);return e.set([4]),e.set(t,1),e}return t},d=function(t,e,r){var n=t.utils.getExtendedPublicKey(e).scalar;return t.ExtendedPoint.fromHex(r).multiply(n).toRawBytes()}},9396:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(3149);const i=function(t){return t==t&&!(0,n.A)(t)}},9408:(t,e,r)=>{"use strict";var n;r.d(e,{S:()=>n}),function(t){t.CHRISTMAS="christmas",t.HALLOWEEN="halloween",t.MAPPY_BEE="mappyBee",t.MAPXUS="mapxus",t.LANDS_D="landsD",t.COMMON="common",t.MAPXUS_V2="mapxus_v2",t.MAPXUS_DEFAULT="mapxus_default"}(n||(n={}))},9489:(t,e,r)=>{"use strict";r.d(e,{S:()=>o});var n=r(1089),i=r(7311);const o=["unauthorized","initError"],s=globalThis,a=(0,n.A)(...o);i.o.getInstance().setGlobalDispatcher(a),s.MapxusMapEvents=s.MapxusMapEvents||{},s.MapxusMapEvents.on=function(t,e){return a.on(t,e),{off:()=>a.on(t,null)}}},9520:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},9573:(t,e,r)=>{"use strict";function n(t){let e=!0,r="";if(Array.isArray(t)){const n=t.filter(i);e=0===n.length,r=n.join(",")}else i(t)&&(e=!1,r=t.trim());return e?null:r}function i(t){return"string"==typeof t&&t.trim().length>0}function o(t){return Array.isArray(t)&&2===t.length&&t.every(t=>"number"==typeof t)}function s(t){return Array.isArray(t)&&2===t.length&&t.every(t=>o(t))}function a(t){return"number"==typeof t&&t>0}r.d(e,{BW:()=>i,ES:()=>o,F5:()=>a,VS:()=>n,dD:()=>s})},9575:(t,e,r)=>{"use strict";function n(t){return!(!t||!t.__CANCEL__)}r.d(e,{A:()=>n})},9588:(t,e,r)=>{"use strict";r.d(e,{KL:()=>a,R0:()=>n,e$:()=>s,hl:()=>i,kk:()=>o});const n="https://map-api.mapxus.co.jp/accounts/v1/auth/secure-token",i="https://map-api.mapxus.co.jp/bms",o="https://map-sdk.mapxus.co.jp/prod/static/resources/manifest-z6frc5.dat",s=10,a=1},9610:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9672),i=r(3149);const o=function(t){if(!(0,i.A)(t))return!1;var e=(0,n.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9615:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const n=r(9175);class i extends n.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,n.ahash)(t);const r=(0,n.toBytes)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(r.length>i?t.create().update(r).digest():r);for(let t=0;t<o.length;t++)o[t]^=54;this.iHash.update(o),this.oHash=t.create();for(let t=0;t<o.length;t++)o[t]^=106;this.oHash.update(o),(0,n.clean)(o)}update(t){return(0,n.aexists)(this),this.iHash.update(t),this}digestInto(t){(0,n.aexists)(this),(0,n.abytes)(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:s}=this;return t.finished=n,t.destroyed=i,t.blockLen=o,t.outputLen=s,t.oHash=e._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=i;e.hmac=(t,e,r)=>new i(t,e).update(r).digest(),e.hmac.create=(t,e)=>new i(t,e)},9644:(t,e,r)=>{"use strict";r.d(e,{C:()=>n});class n{_floorSelector;_isEnabled;_position;constructor(t){this._floorSelector=t,this._position=t.position,this._isEnabled=this._floorSelector.enabled}enable(){this._isEnabled=!0,this._floorSelector.setEnabled(!0)}disable(){this._isEnabled=!1,this._floorSelector.setEnabled(!1)}setPosition(t,e){this._position=t,this._floorSelector.changePosition(this._floorSelector.position,t,e)}setStyle(t){this._floorSelector.setStyle(t)}get isEnabled(){return this._isEnabled}get position(){return this._position}}},9672:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(241),i=r(451),o=r(5606),s=n.A?n.A.toStringTag:void 0;const a=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?(0,i.A)(t):(0,o.A)(t)}},9717:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(9672),i=r(5254),o=r(3098),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;const a=function(t){return(0,o.A)(t)&&(0,i.A)(t.length)&&!!s[(0,n.A)(t)]}},9789:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return null!=t&&e in Object(t)}},9846:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5547);const i=function(t){var e=(0,n.A)(this,t).delete(t);return this.size-=e?1:0,e}},9857:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(702),i=r(1917);const o=(0,n.A)(i.A,"Set")},9875:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return this.__data__.has(t)}},9887:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7275);const i=r(3820).A.hasStandardBrowserEnv?{write(t,e,r,i,o,s){const a=[t+"="+encodeURIComponent(e)];n.A.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.A.isString(i)&&a.push("path="+i),n.A.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}}},9888:(t,e,r)=>{"use strict";r.d(e,{x:()=>n});const n="1.10.0"},9914:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},9959:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},9983:(t,e,r)=>{"use strict";r.d(e,{G:()=>n.G,Z:()=>i.Z});var n=r(4762),i=r(3442)}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{ASSISTANT_LAYER_INDOOR_FLOORS:()=>h.ASSISTANT_LAYER_INDOOR_FLOORS,ASSISTANT_LAYER_SHARED_FLOORS:()=>h.ASSISTANT_LAYER_SHARED_FLOORS,AccessControl:()=>a.k,AccessControlOrigin:()=>d.en,BuildingFilterControl:()=>c.G,BuildingSelectorHandler:()=>u.EJ,BuildingsService:()=>l.H$,DistanceSearchType:()=>d.Kp,ERRORS:()=>h.ERRORS,FloorSelectorHandler:()=>u.CA,FloorsControl:()=>c.Z,Indoor:()=>e.SN,Map:()=>t.T,Marker:()=>i.p,OFFSET:()=>h.OFFSET,OrientationDistanceSearchType:()=>d._P,PAGE:()=>h.PAGE,Poi:()=>o.p,PoisOrderBy:()=>d.LJ,PoisService:()=>l.FR,PoisSortBy:()=>d.nH,PresetLanguage:()=>d.ys,RoutePainter:()=>s.B,RouteService:()=>l.v$,SwitchBuildingHandler:()=>u.Nj,SwitchOutdoorHandler:()=>u.B6,ThemeType:()=>d.SV,VERSION:()=>h.VERSION,VehicleType:()=>d.$O,VenuesService:()=>l.w1,__internal:()=>h.__internal,convertBrowserLangToPresetLang:()=>h.convertBrowserLangToPresetLang,getAccessToken:()=>h.getAccessToken,getIdentifier:()=>h.getIdentifier,setGetTokenAsync:()=>h.setGetTokenAsync,setupTokenManager:()=>h.setupTokenManager});var t=r(5462),e=r(5629),i=r(4116),o=r(5188),s=r(6733),a=r(6242),c=r(9983),u=r(1088),l=r(4545),d=r(3574),h=r(9266)})();var i=exports;for(var o in n)i[o]=n[o];n.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
2
|
+
(()=>{var t={22:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polyval=e.ghash=void 0,e._toGHASHKey=u;const n=r(6527),i=16,o=new Uint8Array(16),s=(0,n.u32)(o),a=(t,e,r,n)=>({s3:r<<31|n>>>1,s2:e<<31|r>>>1,s1:t<<31|e>>>1,s0:t>>>1^225<<24&-(1&(1&n))}),c=t=>(t>>>0&255)<<24|(t>>>8&255)<<16|(t>>>16&255)<<8|t>>>24&255;function u(t){t.reverse();const e=1&t[15];let r=0;for(let e=0;e<t.length;e++){const n=t[e];t[e]=n>>>1|r,r=(1&n)<<7}return t[0]^=225&-e,t}class l{constructor(t,e){this.blockLen=i,this.outputLen=i,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,t=(0,n.toBytes)(t),(0,n.abytes)(t,16);const r=(0,n.createView)(t);let o=r.getUint32(0,!1),s=r.getUint32(4,!1),u=r.getUint32(8,!1),l=r.getUint32(12,!1);const d=[];for(let t=0;t<128;t++)d.push({s0:c(o),s1:c(s),s2:c(u),s3:c(l)}),({s0:o,s1:s,s2:u,s3:l}=a(o,s,u,l));const h=(f=e||1024)>65536?8:f>1024?4:2;var f;if(![1,2,4,8].includes(h))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=h;const p=128/h,y=this.windowSize=2**h,g=[];for(let t=0;t<p;t++)for(let e=0;e<y;e++){let r=0,n=0,i=0,o=0;for(let s=0;s<h;s++){if(!(e>>>h-s-1&1))continue;const{s0:a,s1:c,s2:u,s3:l}=d[h*t+s];r^=a,n^=c,i^=u,o^=l}g.push({s0:r,s1:n,s2:i,s3:o})}this.t=g}_updateBlock(t,e,r,n){t^=this.s0,e^=this.s1,r^=this.s2,n^=this.s3;const{W:i,t:o,windowSize:s}=this;let a=0,c=0,u=0,l=0;const d=(1<<i)-1;let h=0;for(const f of[t,e,r,n])for(let t=0;t<4;t++){const e=f>>>8*t&255;for(let t=8/i-1;t>=0;t--){const r=e>>>i*t&d,{s0:n,s1:f,s2:p,s3:y}=o[h*s+r];a^=n,c^=f,u^=p,l^=y,h+=1}}this.s0=a,this.s1=c,this.s2=u,this.s3=l}update(t){(0,n.aexists)(this),t=(0,n.toBytes)(t),(0,n.abytes)(t);const e=(0,n.u32)(t),r=Math.floor(t.length/i),a=t.length%i;for(let t=0;t<r;t++)this._updateBlock(e[4*t+0],e[4*t+1],e[4*t+2],e[4*t+3]);return a&&(o.set(t.subarray(r*i)),this._updateBlock(s[0],s[1],s[2],s[3]),(0,n.clean)(s)),this}destroy(){const{t}=this;for(const e of t)e.s0=0,e.s1=0,e.s2=0,e.s3=0}digestInto(t){(0,n.aexists)(this),(0,n.aoutput)(t,this),this.finished=!0;const{s0:e,s1:r,s2:i,s3:o}=this,s=(0,n.u32)(t);return s[0]=e,s[1]=r,s[2]=i,s[3]=o,t}digest(){const t=new Uint8Array(i);return this.digestInto(t),this.destroy(),t}}class d extends l{constructor(t,e){t=(0,n.toBytes)(t),(0,n.abytes)(t);const r=u((0,n.copyBytes)(t));super(r,e),(0,n.clean)(r)}update(t){t=(0,n.toBytes)(t),(0,n.aexists)(this);const e=(0,n.u32)(t),r=t.length%i,a=Math.floor(t.length/i);for(let t=0;t<a;t++)this._updateBlock(c(e[4*t+3]),c(e[4*t+2]),c(e[4*t+1]),c(e[4*t+0]));return r&&(o.set(t.subarray(a*i)),this._updateBlock(c(s[3]),c(s[2]),c(s[1]),c(s[0])),(0,n.clean)(s)),this}digestInto(t){(0,n.aexists)(this),(0,n.aoutput)(t,this),this.finished=!0;const{s0:e,s1:r,s2:i,s3:o}=this,s=(0,n.u32)(t);return s[0]=e,s[1]=r,s[2]=i,s[3]=o,t.reverse()}}function h(t){const e=(e,r)=>t(r,e.length).update((0,n.toBytes)(e)).digest(),r=t(new Uint8Array(16),0);return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=(e,r)=>t(e,r),e}e.ghash=h((t,e)=>new l(t,e)),e.polyval=h((t,e)=>new d(t,e))},42:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},52:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(241),i=r(5572),o=r(2049),s=r(1882),a=n.A?n.A.prototype:void 0,c=a?a.toString:void 0;const u=function t(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,i.A)(e,t)+"";if((0,s.A)(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},66:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){let r,n,i=0,o=1e3/e;const s=(e,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),a=e-i;a>=o?s(t,e):(r=t,n||(n=setTimeout(()=>{n=null,s(r)},o-a)))},()=>r&&s(r)]}},83:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.chacha20=e.xchacha20=void 0;var n=r(8900);e.xchacha20=function(t,e,r){return(0,n.xchacha20poly1305)(t,e,r)};e.chacha20=function(t,e,r){return(0,n.chacha20poly1305)(t,e,r)}},139:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5267);const i="undefined"!=typeof URLSearchParams?URLSearchParams:n.A},169:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(6984);const i=function(t,e){for(var r=t.length;r--;)if((0,n.A)(t[r][0],e))return r;return-1}},180:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(702),i=r(1917);const o=(0,n.A)(i.A,"Promise")},181:(t,e,r)=>{"use strict";r.d(e,{d:()=>n});class n{static instance;_buildingUnitsMap;_ordinalsMap;_visitedBuildingUnits;constructor(){this._buildingUnitsMap=new Map,this._ordinalsMap=new Map,this._visitedBuildingUnits=[]}static getInstance(){return n.instance||(n.instance=new n),n.instance}getBuildingUnitByVenue(t){return this._buildingUnitsMap.get(t)}setBuildingUnitByVenue(t,e){this._buildingUnitsMap.set(t,e)}getOrdinalByBuildingUnit(t){return this._ordinalsMap.get(t)}setOrdinalByBuildingUnit(t,e){this._ordinalsMap.set(t,e)}getVisitedBuildingUnits(){return this._visitedBuildingUnits}addVisitedBuildingUnit(t){this._visitedBuildingUnits.push(t),this._visitedBuildingUnits.length>100&&(this._visitedBuildingUnits=this._visitedBuildingUnits.slice(this._visitedBuildingUnits.length-100))}}},241:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(1917).A.Symbol},244:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSharedKey=e.deriveKey=void 0;var n=r(6527),i=r(4139),o=r(7076);e.deriveKey=function(t,e,r){return(0,i.hkdf)(o.sha256,t,e,r,32)};e.getSharedKey=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0,e.deriveKey)(n.concatBytes.apply(void 0,t))}},251:(t,e)=>{e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,c=(1<<a)-1,u=c>>1,l=-7,d=r?i-1:0,h=r?-1:1,f=t[e+d];for(d+=h,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+t[e+d],d+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+d],d+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,d=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(e*c-1)*Math.pow(2,i),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;t[r+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[r+f]=255&s,f+=p,s/=256,u-=8);t[r+f-p]|=128*y}},367:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return function(r){return t(e(r))}}},402:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(241),i=r(3988),o=r(6984),s=r(8967),a=r(4877),c=r(9959),u=n.A?n.A.prototype:void 0,l=u?u.valueOf:void 0;const d=function(t,e,r,n,u,d,h){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new i.A(t),new i.A(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,o.A)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=a.A;case"[object Set]":var p=1&n;if(f||(f=c.A),t.size!=e.size&&!p)return!1;var y=h.get(t);if(y)return y==e;n|=2,h.set(t,e);var g=(0,s.A)(f(t),f(e),n,u,d,h);return h.delete(t),g;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},423:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(9520),i=r(1788),o=r(2049),s=r(4616),a=r(5353),c=r(8719),u=Object.prototype.hasOwnProperty;const l=function(t,e){var r=(0,o.A)(t),l=!r&&(0,i.A)(t),d=!r&&!l&&(0,s.A)(t),h=!r&&!l&&!d&&(0,c.A)(t),f=r||l||d||h,p=f?(0,n.A)(t.length,String):[],y=p.length;for(var g in t)!e&&!u.call(t,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,a.A)(g,y))||p.push(g);return p}},451:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(241),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n.A?n.A.toStringTag:void 0;const c=function(t){var e=o.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var i=s.call(t);return n&&(e?t[a]=r:delete t[a]),i}},459:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ED25519_TORSION_SUBGROUP=e.hash_to_ristretto255=e.hashToRistretto255=e.encodeToCurve=e.hashToCurve=e.ristretto255_hasher=e.ristretto255=e.RistrettoPoint=e.ed25519_hasher=e.edwardsToMontgomery=e.x25519=e.ed25519ph=e.ed25519ctx=e.ed25519=void 0,e.edwardsToMontgomeryPub=I,e.edwardsToMontgomeryPriv=function(t){return e.ed25519.utils.toMontgomeryPriv((0,l.ensureBytes)("pub",t))};const n=r(7076),i=r(9175),o=r(2422),s=r(6377),a=r(1761),c=r(4967),u=r(2854),l=r(8627),d=BigInt(0),h=BigInt(1),f=BigInt(2),p=BigInt(3),y=BigInt(5),g=BigInt(8),m={p:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:g,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function _(t){const e=BigInt(10),r=BigInt(20),n=BigInt(40),i=BigInt(80),o=m.p,s=t*t%o*t%o,a=(0,c.pow2)(s,f,o)*s%o,u=(0,c.pow2)(a,h,o)*t%o,l=(0,c.pow2)(u,y,o)*u%o,d=(0,c.pow2)(l,e,o)*l%o,p=(0,c.pow2)(d,r,o)*d%o,g=(0,c.pow2)(p,n,o)*p%o,_=(0,c.pow2)(g,i,o)*g%o,b=(0,c.pow2)(_,i,o)*g%o,v=(0,c.pow2)(b,e,o)*l%o;return{pow_p_5_8:(0,c.pow2)(v,f,o)*t%o,b2:s}}function b(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}const v=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function w(t,e){const r=m.p,n=(0,c.mod)(e*e*e,r),i=_(t*(0,c.mod)(n*n*e,r)).pow_p_5_8;let o=(0,c.mod)(t*n*i,r);const s=(0,c.mod)(e*o*o,r),a=o,u=(0,c.mod)(o*v,r),l=s===t,d=s===(0,c.mod)(-t,r),h=s===(0,c.mod)(-t*v,r);return l&&(o=a),(d||h)&&(o=u),(0,c.isNegativeLE)(o,r)&&(o=(0,c.mod)(-o,r)),{isValid:l||d,value:o}}const A=(()=>(0,c.Field)(m.p,{isLE:!0}))(),S=(()=>(0,c.Field)(m.n,{isLE:!0}))(),E=(()=>({...m,Fp:A,hash:n.sha512,adjustScalarBytes:b,uvRatio:w}))();function B(t,e,r){if(e.length>255)throw new Error("Context is too big");return(0,i.concatBytes)((0,i.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([r?1:0,e.length]),e,t)}function I(t){return e.ed25519.utils.toMontgomery((0,l.ensureBytes)("pub",t))}e.ed25519=(0,s.twistedEdwards)(E),e.ed25519ctx=(0,s.twistedEdwards)({...E,domain:B}),e.ed25519ph=(0,s.twistedEdwards)(Object.assign({},E,{domain:B,prehash:n.sha512})),e.x25519=(()=>{const t=m.p;return(0,u.montgomery)({P:t,type:"x25519",powPminus2:e=>{const{pow_p_5_8:r,b2:n}=_(e);return(0,c.mod)((0,c.pow2)(r,p,t)*n,t)},adjustScalarBytes:b})})(),e.edwardsToMontgomery=I;const L=(()=>(A.ORDER+p)/g)(),x=(()=>A.pow(f,L))(),O=(()=>A.sqrt(A.neg(A.ONE)))();const T=(()=>(0,c.FpSqrtEven)(A,A.neg(BigInt(486664))))();function k(t){const{xMn:e,xMd:r,yMn:n,yMd:i}=function(t){const e=(A.ORDER-y)/g,r=BigInt(486662);let n=A.sqr(t);n=A.mul(n,f);let i=A.add(n,A.ONE),o=A.neg(r),s=A.sqr(i),a=A.mul(s,i),c=A.mul(n,r);c=A.mul(c,o),c=A.add(c,s),c=A.mul(c,o);let u=A.sqr(a);s=A.sqr(u),u=A.mul(u,a),u=A.mul(u,c),s=A.mul(s,u);let l=A.pow(s,e);l=A.mul(l,u);let d=A.mul(l,O);s=A.sqr(l),s=A.mul(s,a);let p=A.eql(s,c),m=A.cmov(d,l,p),_=A.mul(o,n),b=A.mul(l,t);b=A.mul(b,x);let v=A.mul(b,O),w=A.mul(c,n);s=A.sqr(b),s=A.mul(s,a);let S=A.eql(s,w),E=A.cmov(v,b,S);s=A.sqr(m),s=A.mul(s,a);let B=A.eql(s,c),I=A.cmov(_,o,B),L=A.cmov(E,m,B),T=A.isOdd(L);return L=A.cmov(L,A.neg(L),B!==T),{xMn:I,xMd:i,yMn:L,yMd:h}}(t);let o=A.mul(e,i);o=A.mul(o,T);let s=A.mul(r,n),a=A.sub(e,r),u=A.add(e,r),l=A.mul(s,u),d=A.eql(l,A.ZERO);o=A.cmov(o,A.ZERO,d),s=A.cmov(s,A.ONE,d),a=A.cmov(a,A.ONE,d),u=A.cmov(u,A.ONE,d);const[p,m]=(0,c.FpInvertBatch)(A,[s,u],!0);return{x:A.mul(o,p),y:A.mul(a,m)}}e.ed25519_hasher=(0,a.createHasher)(e.ed25519.Point,t=>k(t[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:A.ORDER,m:1,k:128,expand:"xmd",hash:n.sha512});const R=v,C=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),F=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),P=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),M=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),U=t=>w(h,t),H=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),j=t=>e.ed25519.CURVE.Fp.create((0,l.bytesToNumberLE)(t)&H);function N(t){const{d:r}=e.ed25519.CURVE,n=e.ed25519.CURVE.Fp.ORDER,i=e.ed25519.CURVE.Fp.create,o=i(R*t*t),s=i((o+h)*P);let a=BigInt(-1);const u=i((a-r*o)*i(o+r));let{isValid:l,value:d}=w(s,u),f=i(d*t);(0,c.isNegativeLE)(f,n)||(f=i(-f)),l||(d=f),l||(a=o);const p=i(a*(o-h)*M-u),y=d*d,g=i((d+d)*u),m=i(p*C),_=i(h-y),b=i(h+y);return new e.ed25519.Point(i(g*b),i(_*m),i(m*b),i(g*_))}function V(t){(0,i.abytes)(t,64);const e=N(j(t.subarray(0,32))),r=N(j(t.subarray(32,64)));return new D(e.add(r))}class D extends s.PrimeEdwardsPoint{constructor(t){super(t)}static fromAffine(t){return new D(e.ed25519.Point.fromAffine(t))}assertSame(t){if(!(t instanceof D))throw new Error("RistrettoPoint expected")}init(t){return new D(t)}static hashToCurve(t){return V((0,l.ensureBytes)("ristrettoHash",t,64))}static fromBytes(t){(0,i.abytes)(t,32);const{a:r,d:n}=e.ed25519.CURVE,o=A.ORDER,s=A.create,a=j(t);if(!(0,l.equalBytes)((0,l.numberToBytesLE)(a,32),t)||(0,c.isNegativeLE)(a,o))throw new Error("invalid ristretto255 encoding 1");const u=s(a*a),f=s(h+r*u),p=s(h-r*u),y=s(f*f),g=s(p*p),m=s(r*n*y-g),{isValid:_,value:b}=U(s(m*g)),v=s(b*p),w=s(b*v*m);let S=s((a+a)*v);(0,c.isNegativeLE)(S,o)&&(S=s(-S));const E=s(f*w),B=s(S*E);if(!_||(0,c.isNegativeLE)(B,o)||E===d)throw new Error("invalid ristretto255 encoding 2");return new D(new e.ed25519.Point(S,E,h,B))}static fromHex(t){return D.fromBytes((0,l.ensureBytes)("ristrettoHex",t,32))}static msm(t,r){return(0,o.pippenger)(D,e.ed25519.Point.Fn,t,r)}toBytes(){let{X:t,Y:e,Z:r,T:n}=this.ep;const i=A.ORDER,o=A.create,s=o(o(r+e)*o(r-e)),a=o(t*e),u=o(a*a),{value:d}=U(o(s*u)),h=o(d*s),f=o(d*a),p=o(h*f*n);let y;if((0,c.isNegativeLE)(n*p,i)){let r=o(e*R),n=o(t*R);t=r,e=n,y=o(h*F)}else y=f;(0,c.isNegativeLE)(t*p,i)&&(e=o(-e));let g=o((r-e)*y);return(0,c.isNegativeLE)(g,i)&&(g=o(-g)),(0,l.numberToBytesLE)(g,32)}equals(t){this.assertSame(t);const{X:e,Y:r}=this.ep,{X:n,Y:i}=t.ep,o=A.create,s=o(e*i)===o(r*n),a=o(r*i)===o(e*n);return s||a}is0(){return this.equals(D.ZERO)}}D.BASE=(()=>new D(e.ed25519.Point.BASE))(),D.ZERO=(()=>new D(e.ed25519.Point.ZERO))(),D.Fp=A,D.Fn=S,e.RistrettoPoint=D,e.ristretto255={Point:D},e.ristretto255_hasher={hashToCurve(t,e){const r=e?.DST||"ristretto255_XMD:SHA-512_R255MAP_RO_";return V((0,a.expand_message_xmd)(t,r,64,n.sha512))},hashToScalar:(t,e={DST:a._DST_scalar})=>S.create((0,l.bytesToNumberLE)((0,a.expand_message_xmd)(t,e.DST,64,n.sha512)))},e.hashToCurve=e.ed25519_hasher.hashToCurve,e.encodeToCurve=e.ed25519_hasher.encodeToCurve,e.hashToRistretto255=e.ristretto255_hasher.hashToCurve,e.hash_to_ristretto255=e.ristretto255_hasher.hashToCurve,e.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"]},469:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unsafe=e.aeskwp=e.aeskw=e.siv=e.gcmsiv=e.gcm=e.cfb=e.cbc=e.ecb=e.ctr=void 0;const n=r(22),i=r(6527),o=16,s=new Uint8Array(o);function a(t){return t<<1^283&-(t>>7)}function c(t,e){let r=0;for(;e>0;e>>=1)r^=t&-(1&e),t=a(t);return r}const u=(()=>{const t=new Uint8Array(256);for(let e=0,r=1;e<256;e++,r^=a(r))t[e]=r;const e=new Uint8Array(256);e[0]=99;for(let r=0;r<255;r++){let n=t[255-r];n|=n<<8,e[t[r]]=255&(n^n>>4^n>>5^n>>6^n>>7^99)}return(0,i.clean)(t),e})(),l=u.map((t,e)=>u.indexOf(e)),d=t=>t<<24|t>>>8,h=t=>t<<8|t>>>24,f=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255;function p(t,e){if(256!==t.length)throw new Error("Wrong sbox length");const r=new Uint32Array(256).map((r,n)=>e(t[n])),n=r.map(h),i=n.map(h),o=i.map(h),s=new Uint32Array(65536),a=new Uint32Array(65536),c=new Uint16Array(65536);for(let e=0;e<256;e++)for(let u=0;u<256;u++){const l=256*e+u;s[l]=r[e]^n[u],a[l]=i[e]^o[u],c[l]=t[e]<<8|t[u]}return{sbox:t,sbox2:c,T0:r,T1:n,T2:i,T3:o,T01:s,T23:a}}const y=p(u,t=>c(t,3)<<24|t<<16|t<<8|c(t,2)),g=p(l,t=>c(t,11)<<24|c(t,13)<<16|c(t,9)<<8|c(t,14)),m=(()=>{const t=new Uint8Array(16);for(let e=0,r=1;e<16;e++,r=a(r))t[e]=r;return t})();function _(t){(0,i.abytes)(t);const e=t.length;if(![16,24,32].includes(e))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+e);const{sbox2:r}=y,n=[];(0,i.isAligned32)(t)||n.push(t=(0,i.copyBytes)(t));const o=(0,i.u32)(t),s=o.length,a=t=>w(r,t,t,t,t),c=new Uint32Array(e+28);c.set(o);for(let t=s;t<c.length;t++){let e=c[t-1];t%s===0?e=a(d(e))^m[t/s-1]:s>6&&t%s===4&&(e=a(e)),c[t]=c[t-s]^e}return(0,i.clean)(...n),c}function b(t){const e=_(t),r=e.slice(),n=e.length,{sbox2:o}=y,{T0:s,T1:a,T2:c,T3:u}=g;for(let t=0;t<n;t+=4)for(let i=0;i<4;i++)r[t+i]=e[n-t-4+i];(0,i.clean)(e);for(let t=4;t<n-4;t++){const e=r[t],n=w(o,e,e,e,e);r[t]=s[255&n]^a[n>>>8&255]^c[n>>>16&255]^u[n>>>24]}return r}function v(t,e,r,n,i,o){return t[r<<8&65280|n>>>8&255]^e[i>>>8&65280|o>>>24&255]}function w(t,e,r,n,i){return t[255&e|65280&r]|t[n>>>16&255|i>>>16&65280]<<16}function A(t,e,r,n,i){const{sbox2:o,T01:s,T23:a}=y;let c=0;e^=t[c++],r^=t[c++],n^=t[c++],i^=t[c++];const u=t.length/4-2;for(let o=0;o<u;o++){const o=t[c++]^v(s,a,e,r,n,i),u=t[c++]^v(s,a,r,n,i,e),l=t[c++]^v(s,a,n,i,e,r),d=t[c++]^v(s,a,i,e,r,n);e=o,r=u,n=l,i=d}return{s0:t[c++]^w(o,e,r,n,i),s1:t[c++]^w(o,r,n,i,e),s2:t[c++]^w(o,n,i,e,r),s3:t[c++]^w(o,i,e,r,n)}}function S(t,e,r,n,i){const{sbox2:o,T01:s,T23:a}=g;let c=0;e^=t[c++],r^=t[c++],n^=t[c++],i^=t[c++];const u=t.length/4-2;for(let o=0;o<u;o++){const o=t[c++]^v(s,a,e,i,n,r),u=t[c++]^v(s,a,r,e,i,n),l=t[c++]^v(s,a,n,r,e,i),d=t[c++]^v(s,a,i,n,r,e);e=o,r=u,n=l,i=d}return{s0:t[c++]^w(o,e,i,n,r),s1:t[c++]^w(o,r,e,i,n),s2:t[c++]^w(o,n,r,e,i),s3:t[c++]^w(o,i,n,r,e)}}function E(t,e,r,n){(0,i.abytes)(e,o),(0,i.abytes)(r);const s=r.length;n=(0,i.getOutput)(s,n),(0,i.complexOverlapBytes)(r,n);const a=e,c=(0,i.u32)(a);let{s0:u,s1:l,s2:d,s3:h}=A(t,c[0],c[1],c[2],c[3]);const f=(0,i.u32)(r),p=(0,i.u32)(n);for(let e=0;e+4<=f.length;e+=4){p[e+0]=f[e+0]^u,p[e+1]=f[e+1]^l,p[e+2]=f[e+2]^d,p[e+3]=f[e+3]^h;let r=1;for(let t=a.length-1;t>=0;t--)r=r+(255&a[t])|0,a[t]=255&r,r>>>=8;({s0:u,s1:l,s2:d,s3:h}=A(t,c[0],c[1],c[2],c[3]))}const y=o*Math.floor(f.length/4);if(y<s){const t=new Uint32Array([u,l,d,h]),e=(0,i.u8)(t);for(let t=y,i=0;t<s;t++,i++)n[t]=r[t]^e[i];(0,i.clean)(t)}return n}function B(t,e,r,n,s){(0,i.abytes)(r,o),(0,i.abytes)(n),s=(0,i.getOutput)(n.length,s);const a=r,c=(0,i.u32)(a),u=(0,i.createView)(a),l=(0,i.u32)(n),d=(0,i.u32)(s),h=e?0:12,f=n.length;let p=u.getUint32(h,e),{s0:y,s1:g,s2:m,s3:_}=A(t,c[0],c[1],c[2],c[3]);for(let r=0;r+4<=l.length;r+=4)d[r+0]=l[r+0]^y,d[r+1]=l[r+1]^g,d[r+2]=l[r+2]^m,d[r+3]=l[r+3]^_,p=p+1>>>0,u.setUint32(h,p,e),({s0:y,s1:g,s2:m,s3:_}=A(t,c[0],c[1],c[2],c[3]));const b=o*Math.floor(l.length/4);if(b<f){const t=new Uint32Array([y,g,m,_]),e=(0,i.u8)(t);for(let t=b,r=0;t<f;t++,r++)s[t]=n[t]^e[r];(0,i.clean)(t)}return s}function I(t){if((0,i.abytes)(t),t.length%o!==0)throw new Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size 16")}function L(t,e,r){(0,i.abytes)(t);let n=t.length;const s=n%o;if(!e&&0!==s)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");(0,i.isAligned32)(t)||(t=(0,i.copyBytes)(t));const a=(0,i.u32)(t);if(e){let t=o-s;t||(t=o),n+=t}r=(0,i.getOutput)(n,r),(0,i.complexOverlapBytes)(t,r);return{b:a,o:(0,i.u32)(r),out:r}}function x(t,e){if(!e)return t;const r=t.length;if(!r)throw new Error("aes/pcks5: empty ciphertext not allowed");const n=t[r-1];if(n<=0||n>16)throw new Error("aes/pcks5: wrong padding");const i=t.subarray(0,-n);for(let e=0;e<n;e++)if(t[r-e-1]!==n)throw new Error("aes/pcks5: wrong padding");return i}function O(t){const e=new Uint8Array(16),r=(0,i.u32)(e);e.set(t);const n=o-t.length;for(let t=o-n;t<o;t++)e[t]=n;return r}function T(t,e,r,n,o){const s=o?o.length:0,a=t.create(r,n.length+s);o&&a.update(o);const c=(0,i.u64Lengths)(8*n.length,8*s,e);a.update(n),a.update(c);const u=a.digest();return(0,i.clean)(c),u}e.ctr=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(t,e){function r(r,n){if((0,i.abytes)(r),void 0!==n&&((0,i.abytes)(n),!(0,i.isAligned32)(n)))throw new Error("unaligned destination");const o=_(t),s=(0,i.copyBytes)(e),a=[o,s];(0,i.isAligned32)(r)||a.push(r=(0,i.copyBytes)(r));const c=E(o,s,r,n);return(0,i.clean)(...a),c}return{encrypt:(t,e)=>r(t,e),decrypt:(t,e)=>r(t,e)}}),e.ecb=(0,i.wrapCipher)({blockSize:16},function(t,e={}){const r=!e.disablePadding;return{encrypt(e,n){const{b:o,o:s,out:a}=L(e,r,n),c=_(t);let u=0;for(;u+4<=o.length;){const{s0:t,s1:e,s2:r,s3:n}=A(c,o[u+0],o[u+1],o[u+2],o[u+3]);s[u++]=t,s[u++]=e,s[u++]=r,s[u++]=n}if(r){const t=O(e.subarray(4*u)),{s0:r,s1:n,s2:i,s3:o}=A(c,t[0],t[1],t[2],t[3]);s[u++]=r,s[u++]=n,s[u++]=i,s[u++]=o}return(0,i.clean)(c),a},decrypt(e,n){I(e);const o=b(t);n=(0,i.getOutput)(e.length,n);const s=[o];(0,i.isAligned32)(e)||s.push(e=(0,i.copyBytes)(e)),(0,i.complexOverlapBytes)(e,n);const a=(0,i.u32)(e),c=(0,i.u32)(n);for(let t=0;t+4<=a.length;){const{s0:e,s1:r,s2:n,s3:i}=S(o,a[t+0],a[t+1],a[t+2],a[t+3]);c[t++]=e,c[t++]=r,c[t++]=n,c[t++]=i}return(0,i.clean)(...s),x(n,r)}}}),e.cbc=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(t,e,r={}){const n=!r.disablePadding;return{encrypt(r,o){const s=_(t),{b:a,o:c,out:u}=L(r,n,o);let l=e;const d=[s];(0,i.isAligned32)(l)||d.push(l=(0,i.copyBytes)(l));const h=(0,i.u32)(l);let f=h[0],p=h[1],y=h[2],g=h[3],m=0;for(;m+4<=a.length;)f^=a[m+0],p^=a[m+1],y^=a[m+2],g^=a[m+3],({s0:f,s1:p,s2:y,s3:g}=A(s,f,p,y,g)),c[m++]=f,c[m++]=p,c[m++]=y,c[m++]=g;if(n){const t=O(r.subarray(4*m));f^=t[0],p^=t[1],y^=t[2],g^=t[3],({s0:f,s1:p,s2:y,s3:g}=A(s,f,p,y,g)),c[m++]=f,c[m++]=p,c[m++]=y,c[m++]=g}return(0,i.clean)(...d),u},decrypt(r,o){I(r);const s=b(t);let a=e;const c=[s];(0,i.isAligned32)(a)||c.push(a=(0,i.copyBytes)(a));const u=(0,i.u32)(a);o=(0,i.getOutput)(r.length,o),(0,i.isAligned32)(r)||c.push(r=(0,i.copyBytes)(r)),(0,i.complexOverlapBytes)(r,o);const l=(0,i.u32)(r),d=(0,i.u32)(o);let h=u[0],f=u[1],p=u[2],y=u[3];for(let t=0;t+4<=l.length;){const e=h,r=f,n=p,i=y;h=l[t+0],f=l[t+1],p=l[t+2],y=l[t+3];const{s0:o,s1:a,s2:c,s3:u}=S(s,h,f,p,y);d[t++]=o^e,d[t++]=a^r,d[t++]=c^n,d[t++]=u^i}return(0,i.clean)(...c),x(o,n)}}}),e.cfb=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(t,e){function r(r,n,s){(0,i.abytes)(r);const a=r.length;if(s=(0,i.getOutput)(a,s),(0,i.overlapBytes)(r,s))throw new Error("overlapping src and dst not supported.");const c=_(t);let u=e;const l=[c];(0,i.isAligned32)(u)||l.push(u=(0,i.copyBytes)(u)),(0,i.isAligned32)(r)||l.push(r=(0,i.copyBytes)(r));const d=(0,i.u32)(r),h=(0,i.u32)(s),f=n?h:d,p=(0,i.u32)(u);let y=p[0],g=p[1],m=p[2],b=p[3];for(let t=0;t+4<=d.length;){const{s0:e,s1:r,s2:n,s3:i}=A(c,y,g,m,b);h[t+0]=d[t+0]^e,h[t+1]=d[t+1]^r,h[t+2]=d[t+2]^n,h[t+3]=d[t+3]^i,y=f[t++],g=f[t++],m=f[t++],b=f[t++]}const v=o*Math.floor(d.length/4);if(v<a){({s0:y,s1:g,s2:m,s3:b}=A(c,y,g,m,b));const t=(0,i.u8)(new Uint32Array([y,g,m,b]));for(let e=v,n=0;e<a;e++,n++)s[e]=r[e]^t[n];(0,i.clean)(t)}return(0,i.clean)(...l),s}return{encrypt:(t,e)=>r(t,!0,e),decrypt:(t,e)=>r(t,!1,e)}}),e.gcm=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(t,e,r){if(e.length<8)throw new Error("aes/gcm: invalid nonce length");function o(t,e,i){const o=T(n.ghash,!1,t,i,r);for(let t=0;t<e.length;t++)o[t]^=e[t];return o}function a(){const r=_(t),o=s.slice(),a=s.slice();if(B(r,!1,a,a,o),12===e.length)a.set(e);else{const t=s.slice(),r=(0,i.createView)(t);(0,i.setBigUint64)(r,8,BigInt(8*e.length),!1);const c=n.ghash.create(o).update(e).update(t);c.digestInto(a),c.destroy()}return{xk:r,authKey:o,counter:a,tagMask:B(r,!1,a,s)}}return{encrypt(t){const{xk:e,authKey:r,counter:n,tagMask:s}=a(),c=new Uint8Array(t.length+16),u=[e,r,n,s];(0,i.isAligned32)(t)||u.push(t=(0,i.copyBytes)(t)),B(e,!1,n,t,c.subarray(0,t.length));const l=o(r,s,c.subarray(0,c.length-16));return u.push(l),c.set(l,t.length),(0,i.clean)(...u),c},decrypt(t){const{xk:e,authKey:r,counter:n,tagMask:s}=a(),c=[e,r,s,n];(0,i.isAligned32)(t)||c.push(t=(0,i.copyBytes)(t));const u=t.subarray(0,-16),l=t.subarray(-16),d=o(r,s,u);if(c.push(d),!(0,i.equalBytes)(d,l))throw new Error("aes/gcm: invalid ghash tag");const h=B(e,!1,n,u);return(0,i.clean)(...c),h}}});const k=(t,e,r)=>n=>{if(!Number.isSafeInteger(n)||e>n||n>r){throw new Error(t+": expected value in range "+("["+e+".."+r+"]")+", got "+n)}};function R(t){return t instanceof Uint32Array||ArrayBuffer.isView(t)&&"Uint32Array"===t.constructor.name}function C(t,e){if((0,i.abytes)(e,16),!R(t))throw new Error("_encryptBlock accepts result of expandKeyLE");const r=(0,i.u32)(e);let{s0:n,s1:o,s2:s,s3:a}=A(t,r[0],r[1],r[2],r[3]);return r[0]=n,r[1]=o,r[2]=s,r[3]=a,e}function F(t,e){if((0,i.abytes)(e,16),!R(t))throw new Error("_decryptBlock accepts result of expandKeyLE");const r=(0,i.u32)(e);let{s0:n,s1:o,s2:s,s3:a}=S(t,r[0],r[1],r[2],r[3]);return r[0]=n,r[1]=o,r[2]=s,r[3]=a,e}e.gcmsiv=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(t,e,r){const o=k("AAD",0,2**36),s=k("plaintext",0,2**36),a=k("nonce",12,12),c=k("ciphertext",16,2**36+16);function u(){const r=_(t),n=new Uint8Array(t.length),o=new Uint8Array(16),s=[r,n];let a=e;(0,i.isAligned32)(a)||s.push(a=(0,i.copyBytes)(a));const c=(0,i.u32)(a);let u=0,l=c[0],d=c[1],h=c[2],f=0;for(const t of[o,n].map(i.u32)){const e=(0,i.u32)(t);for(let t=0;t<e.length;t+=2){const{s0:n,s1:i}=A(r,u,l,d,h);e[t+0]=n,e[t+1]=i,u=++f}}const p={authKey:o,encKey:_(n)};return(0,i.clean)(...s),p}function l(t,o,s){const a=T(n.polyval,!0,o,s,r);for(let t=0;t<12;t++)a[t]^=e[t];a[15]&=127;const c=(0,i.u32)(a);let u=c[0],l=c[1],d=c[2],h=c[3];return({s0:u,s1:l,s2:d,s3:h}=A(t,u,l,d,h)),c[0]=u,c[1]=l,c[2]=d,c[3]=h,a}function d(t,e,r){let n=(0,i.copyBytes)(e);n[15]|=128;const o=B(t,!0,n,r);return(0,i.clean)(n),o}return(0,i.abytes)(t,16,24,32),a(e.length),void 0!==r&&o(r.length),{encrypt(t){s(t.length);const{encKey:e,authKey:r}=u(),n=l(e,r,t),o=[e,r,n];(0,i.isAligned32)(t)||o.push(t=(0,i.copyBytes)(t));const a=new Uint8Array(t.length+16);return a.set(n,t.length),a.set(d(e,n,t)),(0,i.clean)(...o),a},decrypt(t){c(t.length);const e=t.subarray(-16),{encKey:r,authKey:n}=u(),o=[r,n];(0,i.isAligned32)(t)||o.push(t=(0,i.copyBytes)(t));const s=d(r,e,t.subarray(0,-16)),a=l(r,n,s);if(o.push(a),!(0,i.equalBytes)(e,a))throw(0,i.clean)(...o),new Error("invalid polyval tag");return(0,i.clean)(...o),s}}}),e.siv=e.gcmsiv;const P={encrypt(t,e){if(e.length>=2**32)throw new Error("plaintext should be less than 4gb");const r=_(t);if(16===e.length)C(r,e);else{const t=(0,i.u32)(e);let n=t[0],o=t[1];for(let e=0,i=1;e<6;e++)for(let e=2;e<t.length;e+=2,i++){const{s0:s,s1:a,s2:c,s3:u}=A(r,n,o,t[e],t[e+1]);n=s,o=a^f(i),t[e]=c,t[e+1]=u}t[0]=n,t[1]=o}r.fill(0)},decrypt(t,e){if(e.length-8>=2**32)throw new Error("ciphertext should be less than 4gb");const r=b(t),n=e.length/8-1;if(1===n)F(r,e);else{const t=(0,i.u32)(e);let o=t[0],s=t[1];for(let e=0,i=6*n;e<6;e++)for(let e=2*n;e>=1;e-=2,i--){s^=f(i);const{s0:n,s1:a,s2:c,s3:u}=S(r,o,s,t[e],t[e+1]);o=n,s=a,t[e]=c,t[e+1]=u}t[0]=o,t[1]=s}r.fill(0)}},M=new Uint8Array(8).fill(166);e.aeskw=(0,i.wrapCipher)({blockSize:8},t=>({encrypt(e){if(!e.length||e.length%8!=0)throw new Error("invalid plaintext length");if(8===e.length)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const r=(0,i.concatBytes)(M,e);return P.encrypt(t,r),r},decrypt(e){if(e.length%8!=0||e.length<24)throw new Error("invalid ciphertext length");const r=(0,i.copyBytes)(e);if(P.decrypt(t,r),!(0,i.equalBytes)(r.subarray(0,8),M))throw new Error("integrity check failed");return r.subarray(0,8).fill(0),r.subarray(8)}}));const U=2790873510;e.aeskwp=(0,i.wrapCipher)({blockSize:8},t=>({encrypt(e){if(!e.length)throw new Error("invalid plaintext length");const r=8*Math.ceil(e.length/8),n=new Uint8Array(8+r);n.set(e,8);const o=(0,i.u32)(n);return o[0]=U,o[1]=f(e.length),P.encrypt(t,n),n},decrypt(e){if(e.length<16)throw new Error("invalid ciphertext length");const r=(0,i.copyBytes)(e),n=(0,i.u32)(r);P.decrypt(t,r);const o=f(n[1])>>>0,s=8*Math.ceil(o/8);if(n[0]!==U||r.length-8!==s)throw new Error("integrity check failed");for(let t=o;t<s;t++)if(0!==r[8+t])throw new Error("integrity check failed");return r.subarray(0,8).fill(0),r.subarray(8,8+o)}})),e.unsafe={expandKeyLE:_,expandKeyDecLE:b,encrypt:A,decrypt:S,encryptBlock:C,decryptBlock:F,ctrCounter:E,ctr32:B}},520:(t,e,r)=>{"use strict";r.d(e,{z:()=>i});var n=r(1682);class i{_container;_anchor;_theme;constructor(t){this._theme=t.theme?t.theme:"default"}onAdd(t){return this._container=(0,n.r)("div","maplibregl-ctrl mapxus-ctrl-attribution",t.getContainer()),this._anchor=(0,n.r)("a","mapxus-attribution",this._container),this._anchor.target="_blank",this._setCopyrightInfo(this._theme),this._anchor.setAttribute("aria-label","Mapxus attribution"),this._anchor.setAttribute("rel","noopener"),this._container.appendChild(this._anchor),this._container}onRemove(){(0,n.Z)(this._container)}getDefaultPosition(){return"bottom-right"}changeTheme(t){this._setCopyrightInfo(t)}_setCopyrightInfo(t){this._anchor.innerText="landsD"===t?"© The Government of the Hong Kong SAR":"©Mapxus driven by Kawasaki ©OpenStreetMap contributors","landsD"===t&&(this._anchor.href="https://www.map.gov.hk/gm/")}}},549:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5547);const i=function(t,e){var r=(0,n.A)(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},605:(t,e,r)=>{"use strict";function n(t){return function(e){return t.apply(null,e)}}r.d(e,{A:()=>n})},608:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(6632);const i=function(t){var e=(0,n.A)(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},640:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n,i=r(3161),o=(n=/[^.]+$/.exec(i.A&&i.A.keys&&i.A.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";const s=function(t){return!!o&&o in t}},665:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(7275),i=r(4062),o=r(3119);function s(t){return n.A.isPlainObject(t)||n.A.isArray(t)}function a(t){return n.A.endsWith(t,"[]")?t.slice(0,-2):t}function c(t,e,r){return t?t.concat(e).map(function(t,e){return t=a(t),!r&&e?"["+t+"]":t}).join(r?".":""):e}const u=n.A.toFlatObject(n.A,{},null,function(t){return/^is[A-Z]/.test(t)});const l=function(t,e,r){if(!n.A.isObject(t))throw new TypeError("target must be an object");e=e||new(o.A||FormData);const l=(r=n.A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!n.A.isUndefined(e[t])})).metaTokens,d=r.visitor||g,h=r.dots,f=r.indexes,p=(r.Blob||"undefined"!=typeof Blob&&Blob)&&n.A.isSpecCompliantForm(e);if(!n.A.isFunction(d))throw new TypeError("visitor must be a function");function y(t){if(null===t)return"";if(n.A.isDate(t))return t.toISOString();if(n.A.isBoolean(t))return t.toString();if(!p&&n.A.isBlob(t))throw new i.A("Blob is not supported. Use a Buffer instead.");return n.A.isArrayBuffer(t)||n.A.isTypedArray(t)?p&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function g(t,r,i){let o=t;if(t&&!i&&"object"==typeof t)if(n.A.endsWith(r,"{}"))r=l?r:r.slice(0,-2),t=JSON.stringify(t);else if(n.A.isArray(t)&&function(t){return n.A.isArray(t)&&!t.some(s)}(t)||(n.A.isFileList(t)||n.A.endsWith(r,"[]"))&&(o=n.A.toArray(t)))return r=a(r),o.forEach(function(t,i){!n.A.isUndefined(t)&&null!==t&&e.append(!0===f?c([r],i,h):null===f?r:r+"[]",y(t))}),!1;return!!s(t)||(e.append(c(i,r,h),y(t)),!1)}const m=[],_=Object.assign(u,{defaultVisitor:g,convertValue:y,isVisitable:s});if(!n.A.isObject(t))throw new TypeError("data must be an object");return function t(r,i){if(!n.A.isUndefined(r)){if(-1!==m.indexOf(r))throw Error("Circular reference detected in "+i.join("."));m.push(r),n.A.forEach(r,function(r,o){!0===(!(n.A.isUndefined(r)||null===r)&&d.call(e,r,n.A.isString(o)?o.trim():o,i,_))&&t(r,i?i.concat(o):[o])}),m.pop()}}(t),e}},674:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=(0,r(702).A)(Object,"create")},702:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(1979),i=r(8104);const o=function(t,e){var r=(0,i.A)(t,e);return(0,n.A)(r)?r:void 0}},759:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(3265),i=r(1038);const o=function(t,e,r,o){var s=r.length,a=s,c=!o;if(null==t)return!a;for(t=Object(t);s--;){var u=r[s];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<a;){var l=(u=r[s])[0],d=t[l],h=u[1];if(c&&u[2]){if(void 0===d&&!(l in t))return!1}else{var f=new n.A;if(o)var p=o(d,h,l,t,e,f);if(!(void 0===p?(0,i.A)(h,d,3,o,f):p))return!1}}return!0}},805:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return function(e){return null==e?void 0:e[t]}}},807:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},853:(t,e,r)=>{"use strict";async function n(t,e){if(!t.hasImage(e))try{const r=await t.loadImage(e);t.addImage(e,r.data)}catch(t){throw new Error(t)}}r.d(e,{K:()=>n})},901:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(1882);const i=function(t){if("string"==typeof t||(0,n.A)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},1031:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(169);const i=function(t,e){var r=this.__data__,i=(0,n.A)(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},1038:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(3244),i=r(3098);const o=function t(e,r,o,s,a){return e===r||(null==e||null==r||!(0,i.A)(e)&&!(0,i.A)(r)?e!=e&&r!=r:(0,n.A)(e,r,o,s,t,a))}},1052:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(1917);const i=function(){return n.A.Date.now()}},1076:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7275),i=r(665),o=r(3820);function s(t,e){return(0,i.A)(t,new o.A.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,i){return o.A.isNode&&n.A.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}},1088:(t,e,r)=>{"use strict";r.d(e,{B6:()=>s.B,CA:()=>i.C,EJ:()=>n.E,Nj:()=>o.N});var n=r(2468),i=r(9644),o=r(9205),s=r(6294)},1089:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n={value:()=>{}};function i(){for(var t,e=0,r=arguments.length,n={};e<r;++e){if(!(t=arguments[e]+"")||t in n||/[\s.]/.test(t))throw new Error("illegal type: "+t);n[t]=[]}return new o(n)}function o(t){this._=t}function s(t,e){for(var r,n=0,i=t.length;n<i;++n)if((r=t[n]).name===e)return r.value}function a(t,e,r){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=n,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:e,value:r}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var r,n,i=this._,o=(n=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),c=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c<u;)if(r=(t=o[c]).type)i[r]=a(i[r],t.name,e);else if(null==e)for(r in i)i[r]=a(i[r],t.name,null);return this}for(;++c<u;)if((r=(t=o[c]).type)&&(r=s(i[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new o(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,i=new Array(r),o=0;o<r;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,r=(n=this._[t]).length;o<r;++o)n[o].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],i=0,o=n.length;i<o;++i)n[i].value.apply(e,r)}};const c=i},1121:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=Function.prototype.toString;const i=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1210:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.poly1305=void 0,e.wrapConstructorWithKey=s;const n=r(6527),i=(t,e)=>255&t[e++]|(255&t[e++])<<8;class o{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,t=(0,n.toBytes)(t),(0,n.abytes)(t,32);const e=i(t,0),r=i(t,2),o=i(t,4),s=i(t,6),a=i(t,8),c=i(t,10),u=i(t,12),l=i(t,14);this.r[0]=8191&e,this.r[1]=8191&(e>>>13|r<<3),this.r[2]=7939&(r>>>10|o<<6),this.r[3]=8191&(o>>>7|s<<9),this.r[4]=255&(s>>>4|a<<12),this.r[5]=a>>>1&8190,this.r[6]=8191&(a>>>14|c<<2),this.r[7]=8065&(c>>>11|u<<5),this.r[8]=8191&(u>>>8|l<<8),this.r[9]=l>>>5&127;for(let e=0;e<8;e++)this.pad[e]=i(t,16+2*e)}process(t,e,r=!1){const n=r?0:2048,{h:o,r:s}=this,a=s[0],c=s[1],u=s[2],l=s[3],d=s[4],h=s[5],f=s[6],p=s[7],y=s[8],g=s[9],m=i(t,e+0),_=i(t,e+2),b=i(t,e+4),v=i(t,e+6),w=i(t,e+8),A=i(t,e+10),S=i(t,e+12),E=i(t,e+14);let B=o[0]+(8191&m),I=o[1]+(8191&(m>>>13|_<<3)),L=o[2]+(8191&(_>>>10|b<<6)),x=o[3]+(8191&(b>>>7|v<<9)),O=o[4]+(8191&(v>>>4|w<<12)),T=o[5]+(w>>>1&8191),k=o[6]+(8191&(w>>>14|A<<2)),R=o[7]+(8191&(A>>>11|S<<5)),C=o[8]+(8191&(S>>>8|E<<8)),F=o[9]+(E>>>5|n),P=0,M=P+B*a+I*(5*g)+L*(5*y)+x*(5*p)+O*(5*f);P=M>>>13,M&=8191,M+=T*(5*h)+k*(5*d)+R*(5*l)+C*(5*u)+F*(5*c),P+=M>>>13,M&=8191;let U=P+B*c+I*a+L*(5*g)+x*(5*y)+O*(5*p);P=U>>>13,U&=8191,U+=T*(5*f)+k*(5*h)+R*(5*d)+C*(5*l)+F*(5*u),P+=U>>>13,U&=8191;let H=P+B*u+I*c+L*a+x*(5*g)+O*(5*y);P=H>>>13,H&=8191,H+=T*(5*p)+k*(5*f)+R*(5*h)+C*(5*d)+F*(5*l),P+=H>>>13,H&=8191;let j=P+B*l+I*u+L*c+x*a+O*(5*g);P=j>>>13,j&=8191,j+=T*(5*y)+k*(5*p)+R*(5*f)+C*(5*h)+F*(5*d),P+=j>>>13,j&=8191;let N=P+B*d+I*l+L*u+x*c+O*a;P=N>>>13,N&=8191,N+=T*(5*g)+k*(5*y)+R*(5*p)+C*(5*f)+F*(5*h),P+=N>>>13,N&=8191;let V=P+B*h+I*d+L*l+x*u+O*c;P=V>>>13,V&=8191,V+=T*a+k*(5*g)+R*(5*y)+C*(5*p)+F*(5*f),P+=V>>>13,V&=8191;let D=P+B*f+I*h+L*d+x*l+O*u;P=D>>>13,D&=8191,D+=T*c+k*a+R*(5*g)+C*(5*y)+F*(5*p),P+=D>>>13,D&=8191;let $=P+B*p+I*f+L*h+x*d+O*l;P=$>>>13,$&=8191,$+=T*u+k*c+R*a+C*(5*g)+F*(5*y),P+=$>>>13,$&=8191;let z=P+B*y+I*p+L*f+x*h+O*d;P=z>>>13,z&=8191,z+=T*l+k*u+R*c+C*a+F*(5*g),P+=z>>>13,z&=8191;let Z=P+B*g+I*y+L*p+x*f+O*h;P=Z>>>13,Z&=8191,Z+=T*d+k*l+R*u+C*c+F*a,P+=Z>>>13,Z&=8191,P=(P<<2)+P|0,P=P+M|0,M=8191&P,P>>>=13,U+=P,o[0]=M,o[1]=U,o[2]=H,o[3]=j,o[4]=N,o[5]=V,o[6]=D,o[7]=$,o[8]=z,o[9]=Z}finalize(){const{h:t,pad:e}=this,r=new Uint16Array(10);let i=t[1]>>>13;t[1]&=8191;for(let e=2;e<10;e++)t[e]+=i,i=t[e]>>>13,t[e]&=8191;t[0]+=5*i,i=t[0]>>>13,t[0]&=8191,t[1]+=i,i=t[1]>>>13,t[1]&=8191,t[2]+=i,r[0]=t[0]+5,i=r[0]>>>13,r[0]&=8191;for(let e=1;e<10;e++)r[e]=t[e]+i,i=r[e]>>>13,r[e]&=8191;r[9]-=8192;let o=(1^i)-1;for(let t=0;t<10;t++)r[t]&=o;o=~o;for(let e=0;e<10;e++)t[e]=t[e]&o|r[e];t[0]=65535&(t[0]|t[1]<<13),t[1]=65535&(t[1]>>>3|t[2]<<10),t[2]=65535&(t[2]>>>6|t[3]<<7),t[3]=65535&(t[3]>>>9|t[4]<<4),t[4]=65535&(t[4]>>>12|t[5]<<1|t[6]<<14),t[5]=65535&(t[6]>>>2|t[7]<<11),t[6]=65535&(t[7]>>>5|t[8]<<8),t[7]=65535&(t[8]>>>8|t[9]<<5);let s=t[0]+e[0];t[0]=65535&s;for(let r=1;r<8;r++)s=(t[r]+e[r]|0)+(s>>>16)|0,t[r]=65535&s;(0,n.clean)(r)}update(t){(0,n.aexists)(this),t=(0,n.toBytes)(t),(0,n.abytes)(t);const{buffer:e,blockLen:r}=this,i=t.length;for(let n=0;n<i;){const o=Math.min(r-this.pos,i-n);if(o!==r)e.set(t.subarray(n,n+o),this.pos),this.pos+=o,n+=o,this.pos===r&&(this.process(e,0,!1),this.pos=0);else for(;r<=i-n;n+=r)this.process(t,n)}return this}destroy(){(0,n.clean)(this.h,this.r,this.buffer,this.pad)}digestInto(t){(0,n.aexists)(this),(0,n.aoutput)(t,this),this.finished=!0;const{buffer:e,h:r}=this;let{pos:i}=this;if(i){for(e[i++]=1;i<16;i++)e[i]=0;this.process(e,0,!0)}this.finalize();let o=0;for(let e=0;e<8;e++)t[o++]=r[e]>>>0,t[o++]=r[e]>>>8;return t}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const r=t.slice(0,e);return this.destroy(),r}}function s(t){const e=(e,r)=>t(r).update((0,n.toBytes)(e)).digest(),r=t(new Uint8Array(32));return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e}e.poly1305=s(t=>new o(t))},1275:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(5917),i=r(5668),o=r(9875);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n.A;++e<r;)this.add(t[e])}s.prototype.add=s.prototype.push=i.A,s.prototype.has=o.A;const a=s},1470:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(5572),i=r(2141),o=r(9084),s=r(3973);const a=function(t,e){if(null==t)return{};var r=(0,n.A)((0,s.A)(t),function(t){return[t]});return e=(0,i.A)(e),(0,o.A)(t,r,function(t,r){return e(t,r[0])})}},1472:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(3454),i=r(8776),o=r(9313);const s=function(t,e,r){return e=(0,i.A)(e),void 0===r?(r=e,e=0):r=(0,i.A)(r),t=(0,o.A)(t),(0,n.A)(t,e,r)}},1493:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},1521:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5547);const i=function(t){return(0,n.A)(this,t).get(t)}},1532:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7919);const i=function(){this.__data__=new n.A,this.size=0}},1635:(t,e,r)=>{"use strict";r.d(e,{Cl:()=>n,YH:()=>o,fX:()=>s,sH:()=>i});var n=function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};function i(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{c(n.next(t))}catch(t){o(t)}}function a(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})}function o(t,e){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function s(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError},1666:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AEAD_TAG_LENGTH=e.XCHACHA20_NONCE_LENGTH=e.CURVE25519_PUBLIC_KEY_SIZE=e.ETH_PUBLIC_KEY_SIZE=e.UNCOMPRESSED_PUBLIC_KEY_SIZE=e.COMPRESSED_PUBLIC_KEY_SIZE=e.SECRET_KEY_LENGTH=void 0,e.SECRET_KEY_LENGTH=32,e.COMPRESSED_PUBLIC_KEY_SIZE=33,e.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,e.ETH_PUBLIC_KEY_SIZE=64,e.CURVE25519_PUBLIC_KEY_SIZE=32,e.XCHACHA20_NONCE_LENGTH=24,e.AEAD_TAG_LENGTH=16},1682:(t,e,r)=>{"use strict";function n(t){t.parentNode&&t.parentNode.removeChild(t)}function i(t,e,r){const n=document.createElement(t);return e&&(n.className=e),r&&r.appendChild(n),n}r.d(e,{Z:()=>n,r:()=>i})},1694:(t,e,r)=>{"use strict";r.d(e,{F0:()=>l,F2:()=>c,pT:()=>a,qT:()=>u,xW:()=>d});var n=r(4545);const i=new n.H$,o=new n.w1,s=new n.FR;async function a(t){try{return(await i.searchByIds(t)).data.result.buildings[0]}catch(t){throw t}}async function c(t){try{const e=(await i.searchByFloorId(t)).data.result.buildings[0].buildingId;return await a(e)}catch(t){throw t}}async function u(t){try{return(await o.searchByIds(t)).data.result.venues[0]}catch(t){throw t}}async function l(t){try{return(await o.searchBySharedFloorId(t)).data.result.venues[0]}catch(t){throw t}}async function d(t){try{return(await s.searchByIds([t])).data.result.pois[0]}catch(t){throw t}}},1705:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DER=e.DERErr=void 0,e._splitEndoScalar=u,e._legacyHelperEquat=m,e._normFnElement=_,e.weierstrassN=b,e.weierstrassPoints=function(t){const{CURVE:e,curveOpts:r}=S(t),n=b(e,r);return function(t,e){const{Fp:r,Fn:n}=e;function i(t){return(0,o.inRange)(t,f,n.ORDER)}const s=m(r,t.a,t.b);return Object.assign({},{CURVE:t,Point:e,ProjectivePoint:e,normPrivateKeyToScalar:t=>_(n,t),weierstrassEquation:s,isWithinCurveOrder:i})}(t,n)},e.SWUFpSqrtRatio=w,e.mapToCurveSimpleSWU=function(t,e){(0,a.validateField)(t);const{A:r,B:n,Z:i}=e;if(!t.isValid(r)||!t.isValid(n)||!t.isValid(i))throw new Error("mapToCurveSimpleSWU: invalid opts");const o=w(t,i);if(!t.isOdd)throw new Error("Field does not have .isOdd()");return e=>{let s,c,u,l,d,h,f,p;s=t.sqr(e),s=t.mul(s,i),c=t.sqr(s),c=t.add(c,s),u=t.add(c,t.ONE),u=t.mul(u,n),l=t.cmov(i,t.neg(c),!t.eql(c,t.ZERO)),l=t.mul(l,r),c=t.sqr(u),h=t.sqr(l),d=t.mul(h,r),c=t.add(c,d),c=t.mul(c,u),h=t.mul(h,l),d=t.mul(h,n),c=t.add(c,d),f=t.mul(s,u);const{isValid:y,value:g}=o(c,h);p=t.mul(s,e),p=t.mul(p,g),f=t.cmov(f,u,y),p=t.cmov(p,g,y);const m=t.isOdd(e)===t.isOdd(p);p=t.cmov(t.neg(p),p,m);const _=(0,a.FpInvertBatch)(t,[l],!0)[0];return f=t.mul(f,_),{x:f,y:p}}},e.ecdsa=A,e.weierstrass=function(t){const{CURVE:e,curveOpts:r,hash:n,ecdsaOpts:i}=function(t){const{CURVE:e,curveOpts:r}=S(t),n={hmac:t.hmac,randomBytes:t.randomBytes,lowS:t.lowS,bits2int:t.bits2int,bits2int_modN:t.bits2int_modN};return{CURVE:e,curveOpts:r,hash:t.hash,ecdsaOpts:n}}(t),o=A(b(e,r),n,i);return function(t,e){return Object.assign({},e,{ProjectivePoint:e.Point,CURVE:t})}(t,o)};const n=r(9615),i=r(9175),o=r(8627),s=r(2422),a=r(4967),c=(t,e)=>(t+(t>=0?e:-e)/p)/e;function u(t,e,r){const[[n,i],[s,a]]=e,u=c(a*t,r),l=c(-i*t,r);let d=t-u*n-l*s,p=-u*i-l*a;const y=d<h,g=p<h;y&&(d=-d),g&&(p=-p);const m=(0,o.bitMask)(Math.ceil((0,o.bitLen)(r)/2))+f;if(d<h||d>=m||p<h||p>=m)throw new Error("splitScalar (endomorphism): failed, k="+t);return{k1neg:y,k1:d,k2neg:g,k2:p}}function l(t){void 0!==t.lowS&&(0,o.abool)("lowS",t.lowS),void 0!==t.prehash&&(0,o.abool)("prehash",t.prehash)}class d extends Error{constructor(t=""){super(t)}}e.DERErr=d,e.DER={Err:d,_tlv:{encode:(t,r)=>{const{Err:n}=e.DER;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(1&r.length)throw new n("tlv.encode: unpadded data");const i=r.length/2,s=(0,o.numberToHexUnpadded)(i);if(s.length/2&128)throw new n("tlv.encode: long form length too big");const a=i>127?(0,o.numberToHexUnpadded)(s.length/2|128):"";return(0,o.numberToHexUnpadded)(t)+a+s+r},decode(t,r){const{Err:n}=e.DER;let i=0;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(r.length<2||r[i++]!==t)throw new n("tlv.decode: wrong tlv");const o=r[i++];let s=0;if(!!(128&o)){const t=127&o;if(!t)throw new n("tlv.decode(long): indefinite length not supported");if(t>4)throw new n("tlv.decode(long): byte length is too big");const e=r.subarray(i,i+t);if(e.length!==t)throw new n("tlv.decode: length bytes not complete");if(0===e[0])throw new n("tlv.decode(long): zero leftmost byte");for(const t of e)s=s<<8|t;if(i+=t,s<128)throw new n("tlv.decode(long): not minimal encoding")}else s=o;const a=r.subarray(i,i+s);if(a.length!==s)throw new n("tlv.decode: wrong value length");return{v:a,l:r.subarray(i+s)}}},_int:{encode(t){const{Err:r}=e.DER;if(t<h)throw new r("integer: negative integers are not allowed");let n=(0,o.numberToHexUnpadded)(t);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new r("unexpected DER parsing assertion: unpadded hex");return n},decode(t){const{Err:r}=e.DER;if(128&t[0])throw new r("invalid signature integer: negative");if(0===t[0]&&!(128&t[1]))throw new r("invalid signature integer: unnecessary leading zero");return(0,o.bytesToNumberBE)(t)}},toSig(t){const{Err:r,_int:n,_tlv:i}=e.DER,s=(0,o.ensureBytes)("signature",t),{v:a,l:c}=i.decode(48,s);if(c.length)throw new r("invalid signature: left bytes after parsing");const{v:u,l}=i.decode(2,a),{v:d,l:h}=i.decode(2,l);if(h.length)throw new r("invalid signature: left bytes after parsing");return{r:n.decode(u),s:n.decode(d)}},hexFromSig(t){const{_tlv:r,_int:n}=e.DER,i=r.encode(2,n.encode(t.r))+r.encode(2,n.encode(t.s));return r.encode(48,i)}};const h=BigInt(0),f=BigInt(1),p=BigInt(2),y=BigInt(3),g=BigInt(4);function m(t,e,r){return function(n){const i=t.sqr(n),o=t.mul(i,n);return t.add(t.add(o,t.mul(n,e)),r)}}function _(t,e){const{BYTES:r}=t;let n;if("bigint"==typeof e)n=e;else{let i=(0,o.ensureBytes)("private key",e);try{n=t.fromBytes(i)}catch(t){throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof e}`)}}if(!t.isValidNot0(n))throw new Error("invalid private key: out of range [1..N-1]");return n}function b(t,e={}){const{Fp:r,Fn:n}=(0,s._createCurveFields)("weierstrass",t,e),{h:i,n:a}=t;(0,o._validateObject)(e,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:c}=e;if(c&&(!r.is0(t.a)||"bigint"!=typeof c.beta||!Array.isArray(c.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');function l(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const d=e.toBytes||function(t,e,n){const{x:i,y:s}=e.toAffine(),a=r.toBytes(i);if((0,o.abool)("isCompressed",n),n){l();const t=!r.isOdd(s);return(0,o.concatBytes)(v(t),a)}return(0,o.concatBytes)(Uint8Array.of(4),a,r.toBytes(s))},p=e.fromBytes||function(t){(0,o.abytes)(t);const e=r.BYTES,n=e+1,i=2*e+1,s=t.length,a=t[0],c=t.subarray(1);if(s!==n||2!==a&&3!==a){if(s===i&&4===a){const t=r.fromBytes(c.subarray(0*e,1*e)),n=r.fromBytes(c.subarray(1*e,2*e));if(!w(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error(`bad point: got length ${s}, expected compressed=${n} or uncompressed=${i}`)}{const t=r.fromBytes(c);if(!r.isValid(t))throw new Error("bad point: is not on curve, wrong x");const e=b(t);let n;try{n=r.sqrt(e)}catch(t){const e=t instanceof Error?": "+t.message:"";throw new Error("bad point: is not on curve, sqrt error"+e)}l();return!(1&~a)!==r.isOdd(n)&&(n=r.neg(n)),{x:t,y:n}}},b=m(r,t.a,t.b);function w(t,e){const n=r.sqr(e),i=b(t);return r.eql(n,i)}if(!w(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const A=r.mul(r.pow(t.a,y),g),S=r.mul(r.sqr(t.b),BigInt(27));if(r.is0(r.add(A,S)))throw new Error("bad curve params: a or b");function E(t,e,n=!1){if(!r.isValid(e)||n&&r.is0(e))throw new Error(`bad point coordinate ${t}`);return e}function B(t){if(!(t instanceof T))throw new Error("ProjectivePoint expected")}function I(t){if(!c||!c.basises)throw new Error("no endo");return u(t,c.basises,n.ORDER)}const L=(0,o.memoized)((t,e)=>{const{X:n,Y:i,Z:o}=t;if(r.eql(o,r.ONE))return{x:n,y:i};const s=t.is0();null==e&&(e=s?r.ONE:r.inv(o));const a=r.mul(n,e),c=r.mul(i,e),u=r.mul(o,e);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw new Error("invZ was invalid");return{x:a,y:c}}),x=(0,o.memoized)(t=>{if(t.is0()){if(e.allowInfinityPoint&&!r.is0(t.Y))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=t.toAffine();if(!r.isValid(n)||!r.isValid(i))throw new Error("bad point: x or y not field elements");if(!w(n,i))throw new Error("bad point: equation left != right");if(!t.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function O(t,e,n,i,o){return n=new T(r.mul(n.X,t),n.Y,n.Z),e=(0,s.negateCt)(i,e),n=(0,s.negateCt)(o,n),e.add(n)}class T{constructor(t,e,r){this.X=E("x",t),this.Y=E("y",e,!0),this.Z=E("z",r),Object.freeze(this)}static fromAffine(t){const{x:e,y:n}=t||{};if(!t||!r.isValid(e)||!r.isValid(n))throw new Error("invalid affine point");if(t instanceof T)throw new Error("projective point not allowed");return r.is0(e)&&r.is0(n)?T.ZERO:new T(e,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}static normalizeZ(t){return(0,s.normalizeZ)(T,t)}static fromBytes(t){return(0,o.abytes)(t),T.fromHex(t)}static fromHex(t){const e=T.fromAffine(p((0,o.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return T.BASE.multiply(_(n,t))}static msm(t,e){return(0,s.pippenger)(T,n,t,e)}_setWindowSize(t){this.precompute(t)}precompute(t=8,e=!0){return R.createCache(this,t),e||this.multiply(y),this}assertValidity(){x(this)}hasEvenY(){const{y:t}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(t)}equals(t){B(t);const{X:e,Y:n,Z:i}=this,{X:o,Y:s,Z:a}=t,c=r.eql(r.mul(e,a),r.mul(o,i)),u=r.eql(r.mul(n,a),r.mul(s,i));return c&&u}negate(){return new T(this.X,r.neg(this.Y),this.Z)}double(){const{a:e,b:n}=t,i=r.mul(n,y),{X:o,Y:s,Z:a}=this;let c=r.ZERO,u=r.ZERO,l=r.ZERO,d=r.mul(o,o),h=r.mul(s,s),f=r.mul(a,a),p=r.mul(o,s);return p=r.add(p,p),l=r.mul(o,a),l=r.add(l,l),c=r.mul(e,l),u=r.mul(i,f),u=r.add(c,u),c=r.sub(h,u),u=r.add(h,u),u=r.mul(c,u),c=r.mul(p,c),l=r.mul(i,l),f=r.mul(e,f),p=r.sub(d,f),p=r.mul(e,p),p=r.add(p,l),l=r.add(d,d),d=r.add(l,d),d=r.add(d,f),d=r.mul(d,p),u=r.add(u,d),f=r.mul(s,a),f=r.add(f,f),d=r.mul(f,p),c=r.sub(c,d),l=r.mul(f,h),l=r.add(l,l),l=r.add(l,l),new T(c,u,l)}add(e){B(e);const{X:n,Y:i,Z:o}=this,{X:s,Y:a,Z:c}=e;let u=r.ZERO,l=r.ZERO,d=r.ZERO;const h=t.a,f=r.mul(t.b,y);let p=r.mul(n,s),g=r.mul(i,a),m=r.mul(o,c),_=r.add(n,i),b=r.add(s,a);_=r.mul(_,b),b=r.add(p,g),_=r.sub(_,b),b=r.add(n,o);let v=r.add(s,c);return b=r.mul(b,v),v=r.add(p,m),b=r.sub(b,v),v=r.add(i,o),u=r.add(a,c),v=r.mul(v,u),u=r.add(g,m),v=r.sub(v,u),d=r.mul(h,b),u=r.mul(f,m),d=r.add(u,d),u=r.sub(g,d),d=r.add(g,d),l=r.mul(u,d),g=r.add(p,p),g=r.add(g,p),m=r.mul(h,m),b=r.mul(f,b),g=r.add(g,m),m=r.sub(p,m),m=r.mul(h,m),b=r.add(b,m),p=r.mul(g,b),l=r.add(l,p),p=r.mul(v,b),u=r.mul(_,u),u=r.sub(u,p),p=r.mul(_,g),d=r.mul(v,d),d=r.add(d,p),new T(u,l,d)}subtract(t){return this.add(t.negate())}is0(){return this.equals(T.ZERO)}multiply(t){const{endo:r}=e;if(!n.isValidNot0(t))throw new Error("invalid scalar: out of range");let i,o;const a=t=>R.cached(this,t,t=>(0,s.normalizeZ)(T,t));if(r){const{k1neg:e,k1:n,k2neg:s,k2:c}=I(t),{p:u,f:l}=a(n),{p:d,f:h}=a(c);o=l.add(h),i=O(r.beta,u,d,e,s)}else{const{p:e,f:r}=a(t);i=e,o=r}return(0,s.normalizeZ)(T,[i,o])[0]}multiplyUnsafe(t){const{endo:r}=e,i=this;if(!n.isValid(t))throw new Error("invalid scalar: out of range");if(t===h||i.is0())return T.ZERO;if(t===f)return i;if(R.hasCache(this))return this.multiply(t);if(r){const{k1neg:e,k1:n,k2neg:o,k2:a}=I(t),{p1:c,p2:u}=(0,s.mulEndoUnsafe)(T,i,n,a);return O(r.beta,c,u,e,o)}return R.unsafe(i,t)}multiplyAndAddUnsafe(t,e,r){const n=this.multiplyUnsafe(e).add(t.multiplyUnsafe(r));return n.is0()?void 0:n}toAffine(t){return L(this,t)}isTorsionFree(){const{isTorsionFree:t}=e;return i===f||(t?t(T,this):R.unsafe(this,a).is0())}clearCofactor(){const{clearCofactor:t}=e;return i===f?this:t?t(T,this):this.multiplyUnsafe(i)}isSmallOrder(){return this.multiplyUnsafe(i).is0()}toBytes(t=!0){return(0,o.abool)("isCompressed",t),this.assertValidity(),d(T,this,t)}toRawBytes(t=!0){return this.toBytes(t)}toHex(t=!0){return(0,o.bytesToHex)(this.toBytes(t))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}T.BASE=new T(t.Gx,t.Gy,r.ONE),T.ZERO=new T(r.ZERO,r.ONE,r.ZERO),T.Fp=r,T.Fn=n;const k=n.BITS,R=new s.wNAF(T,e.endo?Math.ceil(k/2):k);return T}function v(t){return Uint8Array.of(t?2:3)}function w(t,e){const r=t.ORDER;let n=h;for(let t=r-f;t%p===h;t/=p)n+=f;const i=n,o=p<<i-f-f,s=o*p,a=(r-f)/s,c=(a-f)/p,u=s-f,l=o,d=t.pow(e,a),m=t.pow(e,(a+f)/p);let _=(e,r)=>{let n=d,o=t.pow(r,u),s=t.sqr(o);s=t.mul(s,r);let a=t.mul(e,s);a=t.pow(a,c),a=t.mul(a,o),o=t.mul(a,r),s=t.mul(a,e);let h=t.mul(s,o);a=t.pow(h,l);let y=t.eql(a,t.ONE);o=t.mul(s,m),a=t.mul(h,n),s=t.cmov(o,s,y),h=t.cmov(a,h,y);for(let e=i;e>f;e--){let r=e-p;r=p<<r-f;let i=t.pow(h,r);const a=t.eql(i,t.ONE);o=t.mul(s,n),n=t.mul(n,n),i=t.mul(h,n),s=t.cmov(o,s,a),h=t.cmov(i,h,a)}return{isValid:y,value:s}};if(t.ORDER%g===y){const r=(t.ORDER-y)/g,n=t.sqrt(t.neg(e));_=(e,i)=>{let o=t.sqr(i);const s=t.mul(e,i);o=t.mul(o,s);let a=t.pow(o,r);a=t.mul(a,s);const c=t.mul(a,n),u=t.mul(t.sqr(a),i),l=t.eql(u,e);return{isValid:l,value:t.cmov(c,a,l)}}}return _}function A(t,r,s={}){(0,i.ahash)(r),(0,o._validateObject)(s,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const c=s.randomBytes||o.randomBytes,u=s.hmac||((t,...e)=>(0,n.hmac)(r,t,(0,o.concatBytes)(...e))),{Fp:d,Fn:y}=t,{ORDER:g,BITS:m}=y,b=(0,a.getMinHashLength)(g),w={secret:y.BYTES,public:1+d.BYTES,publicUncompressed:1+2*d.BYTES,signature:2*y.BYTES,seed:b};function A(t){return t>g>>f}function S(t,e){if(!y.isValidNot0(e))throw new Error(`invalid signature ${t}: out of range 1..CURVE.n`)}class E{constructor(t,e,r){S("r",t),S("s",e),this.r=t,this.s=e,null!=r&&(this.recovery=r),Object.freeze(this)}static fromBytes(t,r="compact"){if("compact"===r){const e=y.BYTES;(0,o.abytes)(t,2*e);const r=t.subarray(0,e),n=t.subarray(e,2*e);return new E(y.fromBytes(r),y.fromBytes(n))}if("der"===r){(0,o.abytes)(t);const{r,s:n}=e.DER.toSig(t);return new E(r,n)}throw new Error("invalid format")}static fromHex(t,e){return this.fromBytes((0,o.hexToBytes)(t),e)}addRecoveryBit(t){return new E(this.r,this.s,t)}recoverPublicKey(e){const r=d.ORDER,{r:n,s:i,recovery:s}=this;if(null==s||![0,1,2,3].includes(s))throw new Error("recovery id invalid");if(g*p<r&&s>1)throw new Error("recovery id is ambiguous for h>1 curve");const a=2===s||3===s?n+g:n;if(!d.isValid(a))throw new Error("recovery id 2 or 3 invalid");const c=d.toBytes(a),u=t.fromHex((0,o.concatBytes)(v(!(1&s)),c)),l=y.inv(a),h=k((0,o.ensureBytes)("msgHash",e)),f=y.create(-h*l),m=y.create(i*l),_=t.BASE.multiplyUnsafe(f).add(u.multiplyUnsafe(m));if(_.is0())throw new Error("point at infinify");return _.assertValidity(),_}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new E(this.r,y.neg(this.s),this.recovery):this}toBytes(t="compact"){if("compact"===t)return(0,o.concatBytes)(y.toBytes(this.r),y.toBytes(this.s));if("der"===t)return(0,o.hexToBytes)(e.DER.hexFromSig(this));throw new Error("invalid format")}toHex(t){return(0,o.bytesToHex)(this.toBytes(t))}assertValidity(){}static fromCompact(t){return E.fromBytes((0,o.ensureBytes)("sig",t),"compact")}static fromDER(t){return E.fromBytes((0,o.ensureBytes)("sig",t),"der")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,o.bytesToHex)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,o.bytesToHex)(this.toBytes("compact"))}}function B(t){try{return!!_(y,t)}catch(t){return!1}}function I(t=c(b)){return(0,a.mapHashToField)(t,g)}const L={isValidSecretKey:B,isValidPublicKey:function(e,r){try{const n=e.length;return(!0!==r||n===w.public)&&((!1!==r||n===w.publicUncompressed)&&!!t.fromBytes(e))}catch(t){return!1}},randomSecretKey:I,isValidPrivateKey:B,randomPrivateKey:I,normPrivateKeyToScalar:t=>_(y,t),precompute:(e=8,r=t.BASE)=>r.precompute(e,!1)};function x(e,r=!0){return t.BASE.multiply(_(y,e)).toBytes(r)}function O(e){if("bigint"==typeof e)return!1;if(e instanceof t)return!0;if(y.allowedLengths||w.secret===w.public)return;const r=(0,o.ensureBytes)("key",e).length;return r===w.public||r===w.publicUncompressed}const T=s.bits2int||function(t){if(t.length>8192)throw new Error("input is too large");const e=(0,o.bytesToNumberBE)(t),r=8*t.length-m;return r>0?e>>BigInt(r):e},k=s.bits2int_modN||function(t){return y.create(T(t))},R=(0,o.bitMask)(m);function C(t){return(0,o.aInRange)("num < 2^"+m,t,h,R),y.toBytes(t)}function F(e,n,i=P){if(["recovered","canonical"].some(t=>t in i))throw new Error("sign() legacy options not supported");let{lowS:s,prehash:a,extraEntropy:u}=i;null==s&&(s=!0),e=(0,o.ensureBytes)("msgHash",e),l(i),a&&(e=(0,o.ensureBytes)("prehashed msgHash",r(e)));const d=k(e),p=_(y,n),g=[C(p),C(d)];if(null!=u&&!1!==u){const t=!0===u?c(w.secret):u;g.push((0,o.ensureBytes)("extraEntropy",t))}const m=(0,o.concatBytes)(...g),b=d;return{seed:m,k2sig:function(e){const r=T(e);if(!y.isValidNot0(r))return;const n=y.inv(r),i=t.BASE.multiply(r).toAffine(),o=y.create(i.x);if(o===h)return;const a=y.create(n*y.create(b+o*p));if(a===h)return;let c=(i.x===o?0:2)|Number(i.y&f),u=a;return s&&A(a)&&(u=function(t){return A(t)?y.neg(t):t}(a),c^=1),new E(o,u,c)}}}const P={lowS:s.lowS,prehash:!1},M={lowS:s.lowS,prehash:!1};return t.BASE.precompute(8),Object.freeze({keygen:function(t){const e=L.randomSecretKey(t);return{secretKey:e,publicKey:x(e)}},getPublicKey:x,sign:function(t,e,n=P){const{seed:i,k2sig:s}=F(t,e,n);return(0,o.createHmacDrbg)(r.outputLen,y.BYTES,u)(i,s)},verify:function(n,i,s,a=M){const c=n;i=(0,o.ensureBytes)("msgHash",i),s=(0,o.ensureBytes)("publicKey",s),l(a);const{lowS:u,prehash:d,format:h}=a;if("strict"in a)throw new Error("options.strict was renamed to lowS");let f,p;if(void 0===h){const t="string"==typeof c||(0,o.isBytes)(c),r=!t&&null!==c&&"object"==typeof c&&"bigint"==typeof c.r&&"bigint"==typeof c.s;if(!t&&!r)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(r)f=new E(c.r,c.s);else if(t){try{f=E.fromDER(c)}catch(t){if(!(t instanceof e.DER.Err))throw t}if(!f)try{f=E.fromCompact(c)}catch(t){return!1}}}else if("compact"===h||"der"===h){if("string"!=typeof c&&!(0,o.isBytes)(c))throw new Error('"der" / "compact" format expects Uint8Array signature');f=E.fromBytes((0,o.ensureBytes)("sig",c),h)}else{if("js"!==h)throw new Error('format must be "compact", "der" or "js"');if(!(c instanceof E))throw new Error('"js" format expects Signature instance');f=c}if(!f)return!1;try{if(p=t.fromHex(s),u&&f.hasHighS())return!1;d&&(i=r(i));const{r:e,s:n}=f,o=k(i),a=y.inv(n),c=y.create(o*a),l=y.create(e*a),h=t.BASE.multiplyUnsafe(c).add(p.multiplyUnsafe(l));if(h.is0())return!1;return y.create(h.x)===e}catch(t){return!1}},getSharedSecret:function(e,r,n=!0){if(!0===O(e))throw new Error("first arg must be private key");if(!1===O(r))throw new Error("second arg must be public key");const i=_(y,e);return t.fromHex(r).multiply(i).toBytes(n)},utils:L,Point:t,Signature:E,info:{type:"weierstrass",lengths:w,publicKeyHasPrefix:!0}})}function S(t){const e={a:t.a,b:t.b,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp;let n=t.allowedPrivateKeyLengths?Array.from(new Set(t.allowedPrivateKeyLengths.map(t=>Math.ceil(t/2)))):void 0;return{CURVE:e,curveOpts:{Fp:r,Fn:(0,a.Field)(e.n,{BITS:t.nBitLength,allowedLengths:n,modOnDecode:t.wrapPrivateKey}),allowInfinityPoint:t.allowInfinityPoint,endo:t.endo,isTorsionFree:t.isTorsionFree,clearCofactor:t.clearCofactor,fromBytes:t.fromBytes,toBytes:t.toBytes}}}},1761:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._DST_scalar=void 0,e.expand_message_xmd=l,e.expand_message_xof=d,e.hash_to_field=h,e.isogenyMap=function(t,e){const r=e.map(t=>Array.from(t).reverse());return(e,n)=>{const[o,s,a,c]=r.map(r=>r.reduce((r,n)=>t.add(t.mul(r,e),n))),[u,l]=(0,i.FpInvertBatch)(t,[s,c],!0);return e=t.mul(o,u),n=t.mul(n,t.mul(a,l)),{x:e,y:n}}},e.createHasher=function(t,r,n){if("function"!=typeof r)throw new Error("mapToCurve() must be defined");function i(e){return t.fromAffine(r(e))}function o(e){const r=e.clearCofactor();return r.equals(t.ZERO)?t.ZERO:(r.assertValidity(),r)}return{defaults:n,hashToCurve(t,e){const r=h(t,2,Object.assign({},n,e)),s=i(r[0]),a=i(r[1]);return o(s.add(a))},encodeToCurve(t,e){const r=n.encodeDST?{DST:n.encodeDST}:{};return o(i(h(t,1,Object.assign({},n,r,e))[0]))},mapToCurve(t){if(!Array.isArray(t))throw new Error("expected array of bigints");for(const e of t)if("bigint"!=typeof e)throw new Error("expected array of bigints");return o(i(t))},hashToScalar(r,i){const o=t.Fn.ORDER;return h(r,1,Object.assign({},n,{p:o,m:1,DST:e._DST_scalar},i))[0][0]}}};const n=r(8627),i=r(4967),o=n.bytesToNumberBE;function s(t,e){if(c(t),c(e),t<0||t>=1<<8*e)throw new Error("invalid I2OSP input: "+t);const r=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)r[n]=255&t,t>>>=8;return new Uint8Array(r)}function a(t,e){const r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t[n]^e[n];return r}function c(t){if(!Number.isSafeInteger(t))throw new Error("number expected")}function u(t){if(!(0,n.isBytes)(t)&&"string"!=typeof t)throw new Error("DST must be Uint8Array or string");return"string"==typeof t?(0,n.utf8ToBytes)(t):t}function l(t,e,r,i){(0,n.abytes)(t),c(r),(e=u(e)).length>255&&(e=i((0,n.concatBytes)((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:o,blockLen:l}=i,d=Math.ceil(r/o);if(r>65535||d>255)throw new Error("expand_message_xmd: invalid lenInBytes");const h=(0,n.concatBytes)(e,s(e.length,1)),f=s(0,l),p=s(r,2),y=new Array(d),g=i((0,n.concatBytes)(f,t,p,s(0,1),h));y[0]=i((0,n.concatBytes)(g,s(1,1),h));for(let t=1;t<=d;t++){const e=[a(g,y[t-1]),s(t+1,1),h];y[t]=i((0,n.concatBytes)(...e))}return(0,n.concatBytes)(...y).slice(0,r)}function d(t,e,r,i,o){if((0,n.abytes)(t),c(r),(e=u(e)).length>255){const t=Math.ceil(2*i/8);e=o.create({dkLen:t}).update((0,n.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:r}).update(t).update(s(r,2)).update(e).update(s(e.length,1)).digest()}function h(t,e,r){(0,n._validateObject)(r,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:s,k:a,m:u,hash:h,expand:f,DST:p}=r;if(!(0,n.isHash)(r.hash))throw new Error("expected valid hash");(0,n.abytes)(t),c(e);const y=s.toString(2).length,g=Math.ceil((y+a)/8),m=e*u*g;let _;if("xmd"===f)_=l(t,p,m,h);else if("xof"===f)_=d(t,p,m,a,h);else{if("_internal_pass"!==f)throw new Error('expand must be "xmd" or "xof"');_=t}const b=new Array(e);for(let t=0;t<e;t++){const e=new Array(u);for(let r=0;r<u;r++){const n=g*(r+t*u),a=_.subarray(n,n+g);e[r]=(0,i.mod)(o(a),s)}b[t]=e}return b}e._DST_scalar=(0,n.utf8ToBytes)("HashToScalar-")},1788:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(4846),i=r(3098),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable;const c=(0,n.A)(function(){return arguments}())?n.A:function(t){return(0,i.A)(t)&&s.call(t,"callee")&&!a.call(t,"callee")}},1791:(t,e,r)=>{"use strict";r.d(e,{E9:()=>o});const n=function*(t,e){let r=t.byteLength;if(!e||r<e)return void(yield t);let n,i=0;for(;i<r;)n=i+e,yield t.slice(i,n),i=n},i=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},o=(t,e,r,o)=>{const s=async function*(t,e){for await(const r of i(t))yield*n(r,e)}(t,e);let a,c=0,u=t=>{a||(a=!0,o&&o(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await s.next();if(e)return u(),void t.close();let i=n.byteLength;if(r){let t=c+=i;r(t)}t.enqueue(new Uint8Array(n))}catch(t){throw u(t),t}},cancel:t=>(u(t),s.return())},{highWaterMark:2})}},1865:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(423),i=r(8823),o=r(8446);const s=function(t){return(0,o.A)(t)?(0,n.A)(t,!0):(0,i.A)(t)}},1882:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9672),i=r(3098);const o=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,n.A)(t)}},1917:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(2136),i="object"==typeof self&&self&&self.Object===Object&&self;const o=n.A||i||Function("return this")()},1965:(t,e,r)=>{"use strict";r.d(e,{FI:()=>n,TU:()=>i,Zj:()=>o});const n="reserve_mapxus-level-fill",i="reserve_mapxus-shared-level-fill",o="reserve_mapxus-building-fill"},1979:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=r(9610),i=r(640),o=r(3149),s=r(1121),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,h=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const f=function(t){return!(!(0,o.A)(t)||(0,i.A)(t))&&((0,n.A)(t)?h:a).test((0,s.A)(t))}},2049:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=Array.isArray},2068:(t,e,r)=>{"use strict";r.d(e,{K:()=>s});var n=r(7536),i=r(9588);const o=r(7311).o.getInstance();class s{static instance;_axios;_isRefreshingToken=!1;_retryCount=0;constructor(){this._axios=n.A.create({baseURL:i.hl}),this._setupInterceptors()}static getInstance(){return s.instance||(s.instance=new s),s.instance}async get(t){return this._axios.get(t)}async post(t,e){return this._axios.post(t,e)}async getRequestHeaders(){return{"Content-Type":"application/json",sdkVersion:o.getSdkVersion(),identifier:await o.getIdentifier(),token:await o.getAccessToken()}}_setupInterceptors(){this._axios.interceptors.request.use(async t=>{const e=await this.getRequestHeaders();return t.headers=Object.assign({},t.headers,e),t},t=>{throw t}),this._axios.interceptors.response.use(null,async t=>{if(401!==t.response?.status||this._retryCount>=3)throw this._retryCount=0,t;if(this._isRefreshingToken)throw t;o.getGlobalDispatcher().call("unauthorized"),this._isRefreshingToken=!0,this._retryCount++;try{const e=await this.getRequestHeaders(),r=t.config;return r.headers=Object.assign({},r.headers,e),this._axios.request(r)}catch(t){throw t}finally{this._isRefreshingToken=!1}})}}},2075:(t,e,r)=>{"use strict";r.d(e,{$b:()=>h,Hf:()=>d,_C:()=>s,aS:()=>f,em:()=>l,lu:()=>a,ts:()=>c,xR:()=>u});var n=r(9588);const i="v3";function o(t){return`${n.hl}/api/${i}/tiles/styles/${t}`}const s=o("christmas_mims2_v1"),a=o("common_mims2_v1"),c=o("halloween_mims2_v1"),u=o("mappybee_mims2_v1"),l=o("mapxus_mims2_v1"),d=o("lands_d_mims2_v1"),h=o("mapxus_v7");function f(t){return o(t)}},2125:(t,e,r)=>{"use strict";function n(t,e){return function(){return t.apply(e,arguments)}}r.d(e,{A:()=>n})},2136:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},2141:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(4943),i=r(6474),o=r(9008),s=r(2049),a=r(2263);const c=function(t){return"function"==typeof t?t:null==t?o.A:"object"==typeof t?(0,s.A)(t)?(0,i.A)(t[0],t[1]):(0,n.A)(t):(0,a.A)(t)}},2158:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(9378),e),i(r(244),e),i(r(3503),e),i(r(7757),e)},2199:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(6318);const i=function(t){return function(e){return(0,n.A)(e,t)}}},2263:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(805),i=r(2199),o=r(6586),s=r(901);const a=function(t){return(0,o.A)(t)?(0,n.A)((0,s.A)(t)):(0,i.A)(t)}},2302:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){}},2318:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toBig=e.shrSL=e.shrSH=e.rotrSL=e.rotrSH=e.rotrBL=e.rotrBH=e.rotr32L=e.rotr32H=e.rotlSL=e.rotlSH=e.rotlBL=e.rotlBH=e.add5L=e.add5H=e.add4L=e.add4H=e.add3L=e.add3H=void 0,e.add=b,e.fromBig=i,e.split=o;const r=BigInt(2**32-1),n=BigInt(32);function i(t,e=!1){return e?{h:Number(t&r),l:Number(t>>n&r)}:{h:0|Number(t>>n&r),l:0|Number(t&r)}}function o(t,e=!1){const r=t.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let s=0;s<r;s++){const{h:r,l:a}=i(t[s],e);[n[s],o[s]]=[r,a]}return[n,o]}const s=(t,e)=>BigInt(t>>>0)<<n|BigInt(e>>>0);e.toBig=s;const a=(t,e,r)=>t>>>r;e.shrSH=a;const c=(t,e,r)=>t<<32-r|e>>>r;e.shrSL=c;const u=(t,e,r)=>t>>>r|e<<32-r;e.rotrSH=u;const l=(t,e,r)=>t<<32-r|e>>>r;e.rotrSL=l;const d=(t,e,r)=>t<<64-r|e>>>r-32;e.rotrBH=d;const h=(t,e,r)=>t>>>r-32|e<<64-r;e.rotrBL=h;const f=(t,e)=>e;e.rotr32H=f;const p=(t,e)=>t;e.rotr32L=p;const y=(t,e,r)=>t<<r|e>>>32-r;e.rotlSH=y;const g=(t,e,r)=>e<<r|t>>>32-r;e.rotlSL=g;const m=(t,e,r)=>e<<r-32|t>>>64-r;e.rotlBH=m;const _=(t,e,r)=>t<<r-32|e>>>64-r;function b(t,e,r,n){const i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:0|i}}e.rotlBL=_;const v=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0);e.add3L=v;const w=(t,e,r,n)=>e+r+n+(t/2**32|0)|0;e.add3H=w;const A=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0);e.add4L=A;const S=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0;e.add4H=S;const E=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0);e.add5L=E;const B=(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0;e.add5H=B;const I={fromBig:i,split:o,toBig:s,shrSH:a,shrSL:c,rotrSH:u,rotrSL:l,rotrBH:d,rotrBL:h,rotr32H:f,rotr32L:p,rotlSH:y,rotlSL:g,rotlBH:m,rotlBL:_,add:b,add3L:v,add3H:w,add4L:A,add4H:S,add5H:B,add5L:E};e.default=I},2384:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(169),i=Array.prototype.splice;const o=function(t){var e=this.__data__,r=(0,n.A)(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},2422:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wNAF=void 0,e.negateCt=a,e.normalizeZ=function(t,e){const r=(0,i.FpInvertBatch)(t.Fp,e.map(t=>t.Z));return e.map((e,n)=>t.fromAffine(e.toAffine(r[n])))},e.mulEndoUnsafe=function(t,e,r,n){let i=e,a=t.ZERO,c=t.ZERO;for(;r>o||n>o;)r&s&&(a=a.add(i)),n&s&&(c=c.add(i)),i=i.double(),r>>=s,n>>=s;return{p1:a,p2:c}},e.pippenger=function(t,e,r,i){d(r,t),h(i,e);const o=r.length,s=i.length;if(o!==s)throw new Error("arrays of points and scalars must have equal length");const a=t.ZERO,c=(0,n.bitLen)(BigInt(o));let u=1;c>12?u=c-3:c>4?u=c-2:c>0&&(u=2);const l=(0,n.bitMask)(u),f=new Array(Number(l)+1).fill(a),p=Math.floor((e.BITS-1)/u)*u;let y=a;for(let t=p;t>=0;t-=u){f.fill(a);for(let e=0;e<s;e++){const n=i[e],o=Number(n>>BigInt(t)&l);f[o]=f[o].add(r[e])}let e=a;for(let t=f.length-1,r=a;t>0;t--)r=r.add(f[t]),e=e.add(r);if(y=y.add(e),0!==t)for(let t=0;t<u;t++)y=y.double()}return y},e.precomputeMSMUnsafe=function(t,e,r,i){c(i,e.BITS),d(r,t);const o=t.ZERO,s=2**i-1,a=Math.ceil(e.BITS/i),u=(0,n.bitMask)(i),l=r.map(t=>{const e=[];for(let r=0,n=t;r<s;r++)e.push(n),n=n.add(t);return e});return t=>{if(h(t,e),t.length>r.length)throw new Error("array of scalars must be smaller than array of points");let n=o;for(let e=0;e<a;e++){if(n!==o)for(let t=0;t<i;t++)n=n.double();const r=BigInt(a*i-(e+1)*i);for(let e=0;e<t.length;e++){const i=t[e],o=Number(i>>r&u);o&&(n=n.add(l[e][o-1]))}}return n}},e.validateBasic=function(t){return(0,i.validateField)(t.Fp),(0,n.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,i.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})},e._createCurveFields=function(t,e,r={}){if(!e||"object"!=typeof e)throw new Error(`expected valid ${t} CURVE object`);for(const t of["p","n","h"]){const r=e[t];if(!("bigint"==typeof r&&r>o))throw new Error(`CURVE.${t} must be positive bigint`)}const n=m(e.p,r.Fp),i=m(e.n,r.Fn),s=["Gx","Gy","a","weierstrass"===t?"b":"d"];for(const t of s)if(!n.isValid(e[t]))throw new Error(`CURVE.${t} must be valid field element of CURVE.Fp`);return{Fp:n,Fn:i}};const n=r(8627),i=r(4967),o=BigInt(0),s=BigInt(1);function a(t,e){const r=e.negate();return t?r:e}function c(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function u(t,e){c(t,e);const r=2**t;return{windows:Math.ceil(e/t)+1,windowSize:2**(t-1),mask:(0,n.bitMask)(t),maxNumber:r,shiftBy:BigInt(t)}}function l(t,e,r){const{windowSize:n,mask:i,maxNumber:o,shiftBy:a}=r;let c=Number(t&i),u=t>>a;c>n&&(c-=o,u+=s);const l=e*n;return{nextN:u,offset:l+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:e%2!=0,offsetF:l}}function d(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach((t,r)=>{if(!(t instanceof e))throw new Error("invalid point at index "+r)})}function h(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((t,r)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+r)})}const f=new WeakMap,p=new WeakMap;function y(t){return p.get(t)||1}function g(t){if(t!==o)throw new Error("invalid wNAF")}function m(t,e){if(e){if(e.ORDER!==t)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,i.validateField)(e),e}return(0,i.Field)(t)}e.wNAF=class{constructor(t,e){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=e}_unsafeLadder(t,e,r=this.ZERO){let n=t;for(;e>o;)e&s&&(r=r.add(n)),n=n.double(),e>>=s;return r}precomputeWindow(t,e){const{windows:r,windowSize:n}=u(e,this.bits),i=[];let o=t,s=o;for(let t=0;t<r;t++){s=o,i.push(s);for(let t=1;t<n;t++)s=s.add(o),i.push(s);o=s.double()}return i}wNAF(t,e,r){if(!this.Fn.isValid(r))throw new Error("invalid scalar");let n=this.ZERO,i=this.BASE;const o=u(t,this.bits);for(let t=0;t<o.windows;t++){const{nextN:s,offset:c,isZero:u,isNeg:d,isNegF:h,offsetF:f}=l(r,t,o);r=s,u?i=i.add(a(h,e[f])):n=n.add(a(d,e[c]))}return g(r),{p:n,f:i}}wNAFUnsafe(t,e,r,n=this.ZERO){const i=u(t,this.bits);for(let t=0;t<i.windows&&r!==o;t++){const{nextN:o,offset:s,isZero:a,isNeg:c}=l(r,t,i);if(r=o,!a){const t=e[s];n=n.add(c?t.negate():t)}}return g(r),n}getPrecomputes(t,e,r){let n=f.get(e);return n||(n=this.precomputeWindow(e,t),1!==t&&("function"==typeof r&&(n=r(n)),f.set(e,n))),n}cached(t,e,r){const n=y(t);return this.wNAF(n,this.getPrecomputes(n,t,r),e)}unsafe(t,e,r,n){const i=y(t);return 1===i?this._unsafeLadder(t,e,n):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),e,n)}createCache(t,e){c(e,this.bits),p.set(t,e),f.delete(t)}hasCache(t){return 1!==y(t)}}},2468:(t,e,r)=>{"use strict";r.d(e,{E:()=>n});class n{_buildingSelector;_isEnabled=!0;_position;constructor(t){this._buildingSelector=t}enable(){this._isEnabled=!0,this._buildingSelector.enabled||this._buildingSelector.setVisibility(!0)}disable(){this._isEnabled=!1,this._buildingSelector.enabled&&this._buildingSelector.setVisibility(!1)}setPosition(t,e){this._position=t,this._buildingSelector.changePosition(this._buildingSelector.position,t,e)}get isEnabled(){return this._isEnabled}get position(){return this._position}}},2506:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rotl=function(t,e){return t<<e|t>>>32-e},e.createCipher=function(t,e){const{allowShortKeys:r,extendNonceFn:i,counterLength:o,counterRight:s,rounds:p}=(0,n.checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},e);if("function"!=typeof t)throw new Error("core must be a function");return(0,n.anumber)(o),(0,n.anumber)(p),(0,n.abool)(s),(0,n.abool)(r),(e,y,g,m,_=0)=>{(0,n.abytes)(e),(0,n.abytes)(y),(0,n.abytes)(g);const b=g.length;if(void 0===m&&(m=new Uint8Array(b)),(0,n.abytes)(m),(0,n.anumber)(_),_<0||_>=h)throw new Error("arx: counter overflow");if(m.length<b)throw new Error(`arx: output (${m.length}) is shorter than data (${b})`);const v=[];let w,A,S=e.length;if(32===S)v.push(w=(0,n.copyBytes)(e)),A=c;else{if(16!==S||!r)throw new Error(`arx: invalid 32-byte key, got length=${S}`);w=new Uint8Array(32),w.set(e),w.set(e,16),A=a,v.push(w)}u(y)||v.push(y=(0,n.copyBytes)(y));const E=(0,n.u32)(w);if(i){if(24!==y.length)throw new Error("arx: extended nonce must be 24 bytes");i(A,E,(0,n.u32)(y.subarray(0,16)),E),y=y.subarray(16)}const B=16-o;if(B!==y.length)throw new Error(`arx: nonce must be ${B} or 16 bytes`);if(12!==B){const t=new Uint8Array(12);t.set(y,s?0:12-y.length),y=t,v.push(y)}const I=(0,n.u32)(y);return function(t,e,r,i,o,s,a,c){const p=o.length,y=new Uint8Array(l),g=(0,n.u32)(y),m=u(o)&&u(s),_=m?(0,n.u32)(o):f,b=m?(0,n.u32)(s):f;for(let n=0;n<p;a++){if(t(e,r,i,g,a,c),a>=h)throw new Error("arx: counter overflow");const u=Math.min(l,p-n);if(m&&u===l){const t=n/4;if(n%4!=0)throw new Error("arx: invalid block position");for(let e,r=0;r<d;r++)e=t+r,b[e]=_[e]^g[r];n+=l;continue}for(let t,e=0;e<u;e++)t=n+e,s[t]=o[t]^y[e];n+=u}}(t,A,E,I,g,m,_,p),(0,n.clean)(...v),m}};const n=r(6527),i=t=>Uint8Array.from(t.split("").map(t=>t.charCodeAt(0))),o=i("expand 16-byte k"),s=i("expand 32-byte k"),a=(0,n.u32)(o),c=(0,n.u32)(s);function u(t){return t.byteOffset%4==0}const l=64,d=16,h=2**32-1,f=new Uint32Array},2509:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5547);const i=function(t){return(0,n.A)(this,t).has(t)}},2528:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(4171);const i=function(t,e,r){"__proto__"==e&&n.A?(0,n.A)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},2531:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(5707),i=r(6983),o=r(6031);const s=function(t,e,r){return e==e?(0,o.A)(t,e,r):(0,n.A)(t,i.A,r)}},2557:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=void 0;var n=r(6527),i=r(2158),o=function(){function t(t,e){var r=(0,i.convertPublicKeyFormat)(t,!0,e),n=(0,i.convertPublicKeyFormat)(t,!1,e);this.data=r,this.dataUncompressed=r.length!==n.length?n:null}return t.fromHex=function(e,r){return new t((0,i.hexToPublicKey)(e,r),r)},Object.defineProperty(t.prototype,"_uncompressed",{get:function(){return null!==this.dataUncompressed?this.dataUncompressed:this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uncompressed",{get:function(){return Buffer.from(this._uncompressed)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"compressed",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),t.prototype.toBytes=function(t){return void 0===t&&(t=!0),t?this.data:this._uncompressed},t.prototype.toHex=function(t){return void 0===t&&(t=!0),(0,n.bytesToHex)(this.toBytes(t))},t.prototype.decapsulate=function(t,e){void 0===e&&(e=!1);var r=this.toBytes(e),n=t.multiply(this,e);return(0,i.getSharedKey)(r,n)},t.prototype.equals=function(t){return(0,n.equalBytes)(this.data,t.data)},t}();e.PublicKey=o},2559:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(1882);const i=function(t,e,r){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(void 0===c?a==a&&!(0,n.A)(a):r(a,c)))var c=a,u=s}return u}},2569:(t,e,r)=>{"use strict";r.r(e),r.d(e,{hasBrowserEnv:()=>n,hasStandardBrowserEnv:()=>o,hasStandardBrowserWebWorkerEnv:()=>s,navigator:()=>i,origin:()=>a});const n="undefined"!=typeof window&&"undefined"!=typeof document,i="object"==typeof navigator&&navigator||void 0,o=n&&(!i||["ReactNative","NativeScript","NS"].indexOf(i.product)<0),s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,a=n&&window.location.href||"http://localhost"},2634:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}},2658:(t,e,r)=>{"use strict";r.d(e,{S:()=>i,d:()=>o});let n=[];const i={[Symbol.for("mapxus/callers-register")]:t=>{n=t}};function o(){return n}},2723:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(8458),i=r(4062),o=r(7275);const s=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,s=new AbortController;const a=function(t){if(!r){r=!0,u();const e=t instanceof Error?t:this.reason;s.abort(e instanceof i.A?e:new n.A(e instanceof Error?e.message:e))}};let c=e&&setTimeout(()=>{c=null,a(new i.A(`timeout ${e} of ms exceeded`,i.A.ETIMEDOUT))},e);const u=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(a):t.removeEventListener("abort",a)}),t=null)};t.forEach(t=>t.addEventListener("abort",a));const{signal:l}=s;return l.unsubscribe=()=>o.A.asap(u),l}}},2732:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(702),i=r(1917);const o=(0,n.A)(i.A,"DataView")},2789:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return function(e){return t(e)}}},2801:(t,e,r)=>{"use strict";r.d(e,{w:()=>c});var n=r(2068),i=r(9573),o=r(9588),s=r(6034);const a=["opening_hours","description","phone","website","email","appURL","icon"];class c{_api="/api/v5/venues";_request=n.K.getInstance();constructor(){}searchByIds(t){const e=(0,i.VS)(t);if(!e)throw new Error("Please input venue id at least one.");const r=`${this._api}/${e}`;return this._changedRes(r)}searchByDistance(t){const{center:e,distance:r,keywords:n="",offset:s=o.e$,page:a=o.KL}=t;if(!(0,i.ES)(e))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,i.F5)(r)||r>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000.");const c=new URLSearchParams;c.set("center",e.join(",")),c.set("distance",String(r)),c.set("offset",String(s)),c.set("page",String(a)),(0,i.BW)(n)&&c.set("keywords",n);const u=`${this._api}?${c.toString()}`;return this._changedRes(u)}searchByBounds(t){const{keywords:e,bounds:r,offset:n=o.e$,page:s=o.KL}=t;if(!(0,i.dD)(r))throw new Error("'bounds' must be an array of two arrays, each containing two numbers.");const a=new URLSearchParams;a.set("bbox",r.flat().join()),a.set("offset",String(n)),a.set("page",String(s)),(0,i.BW)(e)&&a.set("keywords",e);const c=`${this._api}?${a.toString()}`;return this._changedRes(c)}searchByGlobal(t){const{keywords:e,offset:r=o.e$,page:n=o.KL}=t,s=new URLSearchParams;s.set("offset",String(r)),s.set("page",String(n)),(0,i.BW)(e)&&s.set("keywords",e);const a=`${this._api}?${s.toString()}`;return this._changedRes(a)}searchBySharedFloorId(t){if(!(0,i.BW)(t))throw new Error("Please input correct sharedFloorId.");const e=`${this._api}/shared_floors/${t}`;return this._changedRes(e)}search(t){const e=new URLSearchParams;return Object.entries(t).forEach(([t,r])=>{"bounds"===t?e.set("bbox",r.flat().join()):"center"===t?e.set("center",r.join()):e.set(t,String(r))}),this._changedRes(`${this._api}?${e.toString()}`)}async _changedRes(t){return this._request.get(t).then(t=>{if(t.data?.result?.venues){const e=t.data.result.venues.map(t=>(0,s.A)(t,(t,e)=>a.includes(e)));return{...t,data:{...t.data,result:{...t.data.result,venues:e}}}}return t})}}},2851:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(2528),i=r(6984),o=Object.prototype.hasOwnProperty;const s=function(t,e,r){var s=t[e];o.call(t,e)&&(0,i.A)(s,r)&&(void 0!==r||e in t)||(0,n.A)(t,e,r)}},2854:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.montgomery=function(t){const e=(f=t,(0,n._validateObject)(f,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...f})),{P:r,type:c,adjustScalarBytes:u,powPminus2:l,randomBytes:d}=e,h="x25519"===c;var f;if(!h&&"x448"!==c)throw new Error("invalid type");const p=d||n.randomBytes,y=h?255:448,g=h?32:56,m=h?BigInt(9):BigInt(5),_=h?BigInt(121665):BigInt(39081),b=h?a**BigInt(254):a**BigInt(447),v=h?BigInt(8)*a**BigInt(251)-s:BigInt(4)*a**BigInt(445)-s,w=b+v+s,A=t=>(0,i.mod)(t,r),S=E(m);function E(t){return(0,n.numberToBytesLE)(A(t),g)}function B(t,e){const i=function(t,e){(0,n.aInRange)("u",t,o,r),(0,n.aInRange)("scalar",e,b,w);const i=e,a=t;let c=s,u=o,d=t,h=s,f=o;for(let t=BigInt(y-1);t>=o;t--){const e=i>>t&s;f^=e,({x_2:c,x_3:d}=L(f,c,d)),({x_2:u,x_3:h}=L(f,u,h)),f=e;const r=c+u,n=A(r*r),o=c-u,l=A(o*o),p=n-l,y=d+h,g=A((d-h)*r),m=A(y*o),b=g+m,v=g-m;d=A(b*b),h=A(a*A(v*v)),c=A(n*l),u=A(p*(n+A(_*p)))}({x_2:c,x_3:d}=L(f,c,d)),({x_2:u,x_3:h}=L(f,u,h));const p=l(u);return A(c*p)}(function(t){const e=(0,n.ensureBytes)("u coordinate",t,g);return h&&(e[31]&=127),A((0,n.bytesToNumberLE)(e))}(e),function(t){return(0,n.bytesToNumberLE)(u((0,n.ensureBytes)("scalar",t,g)))}(t));if(i===o)throw new Error("invalid private or public key received");return E(i)}function I(t){return B(t,S)}function L(t,e,r){const n=A(t*(e-r));return{x_2:e=A(e-n),x_3:r=A(r+n)}}const x=(t=p(g))=>t,O={randomSecretKey:x,randomPrivateKey:x};const T={secret:g,public:g,seed:g};return{keygen:function(t){const e=O.randomSecretKey(t);return{secretKey:e,publicKey:I(e)}},getSharedSecret:(t,e)=>B(t,e),getPublicKey:t=>I(t),scalarMult:B,scalarMultBase:I,utils:O,GuBytes:S.slice(),info:{type:"montgomery",lengths:T}}};const n=r(8627),i=r(4967),o=BigInt(0),s=BigInt(1),a=BigInt(2)},2944:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(674);const i=function(){this.__data__=n.A?(0,n.A)(null):{},this.size=0}},3061:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return this.__data__.get(t)}},3098:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return null!=t&&"object"==typeof t}},3119:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=null},3149:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3153:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){return[]}},3161:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(1917).A["__core-js_shared__"]},3198:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9396),i=r(7422);const o=function(t){for(var e=(0,i.A)(t),r=e.length;r--;){var o=e[r],s=t[o];e[r]=[o,s,(0,n.A)(s)]}return e}},3207:(t,e,r)=>{"use strict";r.d(e,{t:()=>c});var n=r(6568),i=r(8330),o=r(9588),s=r(7007),a=r(3574);class c extends s.EventEmitter{static instance;static platform={sdkVersion:i.rE,identifier:""};_appIds=new Map([[a.en.Access,{}],[a.en.Map,{}]]);_tokenStorage={};_appIdsHistory=[];static getInstance(){return c.instance||(c.instance=new c),c.instance}static setPlatform(t){c.platform=t}updateToken(t){const{appId:e,secret:r,token:n,from:i}=t;this._tokenStorage[e]=n,this._appIds.get(i)[e]=r,this._appIdsHistory.push(e)}deleteToken(t,e){delete this._tokenStorage[t],e&&(delete this._appIds.get(e)[t],this.emit("permission-disconnected",{appId:t,from:e}))}getVersion(){return c.platform.sdkVersion}getToken(t){return this._tokenStorage[t]}async getIdentifier(){if(!c.platform.identifier){const t=await n.Ay.load(),e=await t.get();c.platform.identifier=e.visitorId}return c.platform.identifier}getAppId(t){const e=t?Object.keys(this._appIds.get(t)):[...Object.keys(this._appIds.get(a.en.Access)),...Object.keys(this._appIds.get(a.en.Map))];return this._appIdsHistory.reverse().find(t=>e.includes(t))}async fetchToken(t,e,r=0){try{const r={appId:t,secret:e,..."bundleId"in c.platform?{bundleId:c.platform.bundleId}:"sha1"in c.platform?{sha1:c.platform.sha1,packageName:c.platform.packageName}:{origin:window.location.hostname||"restriction.test.example.com",keyPlatform:"WEB"}},n={"Content-Type":"application/json",sdkVersion:c.platform.sdkVersion,identifier:c.platform.identifier??await this.getIdentifier()},i=await fetch(o.R0,{method:"POST",body:JSON.stringify(r),headers:n});return(await i.json()).result.idToken}catch(n){if(r<3){const n=500*Math.pow(2,r);return console.warn(`Retrying to fetch token in ${n} ms...`,++r),await new Promise(t=>setTimeout(t,n)),this.fetchToken(t,e,r)}throw n}}}},3236:(t,e,r)=>{"use strict";function n(t){const{buildingId:e,labelCenter:{lat:r,lon:n},floors:i,name:o,venueId:s,defaultFloor:a}=t,c=Object.entries(o).reduce((t,[e,r])=>{const n="default"===e?"name":`name:${e}`;return Object.assign(t,{[n]:r})},{}),{codes:u,ids:l,ordinals:d}=i.reduce((t,e)=>{const{id:r,code:n,ordinal:i}=e;return{codes:t.codes?`${t.codes},${n}`:n,ids:t.ids?`${t.ids},${r}`:r,ordinals:`${t.ordinals}`?`${t.ordinals},${i}`:`${i}`}},{codes:"",ids:"",ordinals:""});return{layer:{id:"mapxus-building-line"},properties:{building:"yes",id:e,label_center:`${n},${r}`,level_ids:l,level_names:u,ordinals:d,"ref:venue":s,...c,...a?{default_displayed_floor:a}:{}},source:"indoor-planet",sourceLayer:"mapxus_building"}}function i(t){const{address:e,buildings:r,id:n,name:i,type:o,labelCenter:{lon:s,lat:a},defaultBuilding:c,sharedFloors:u}=t,l=Object.entries(e).reduce((t,[e,r])=>Object.assign(t,"default"===e?{"addr:street":r.street,"addr:housenumber":r.housenumber}:{[`addr:street:${e}`]:r.street}),{}),d=Object.entries(i).reduce((t,[e,r])=>{const n="default"===e?"name":`name:${e}`;return Object.assign(t,{[n]:r})},{}),h=c?r.find(t=>t.id===c)?.defaultFloor:null,f=c?{default_displayed_building:c,...h?{default_displayed_ordinal:h}:{}}:{},p=u?.length?{shared_level_ids:u.map(({id:t})=>t).join(","),shared_level_ordinals:u.map(({ordinal:t})=>t).join(",")}:{};return{layer:{id:"mapxus-venue-fill"},properties:{...l,...d,id:n,venue:o,label_center:`${s},${a}`,building_ids:r.map(({id:t})=>t).join(),...f,...p},source:"indoor-planet",sourceLayer:"mapxus_venue"}}r.d(e,{E:()=>i,r:()=>n})},3244:(t,e,r)=>{"use strict";r.d(e,{A:()=>y});var n=r(3265),i=r(8967),o=r(402),s=r(7265),a=r(5861),c=r(2049),u=r(4616),l=r(8719),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;const y=function(t,e,r,y,g,m){var _=(0,c.A)(t),b=(0,c.A)(e),v=_?h:(0,a.A)(t),w=b?h:(0,a.A)(e),A=(v=v==d?f:v)==f,S=(w=w==d?f:w)==f,E=v==w;if(E&&(0,u.A)(t)){if(!(0,u.A)(e))return!1;_=!0,A=!1}if(E&&!A)return m||(m=new n.A),_||(0,l.A)(t)?(0,i.A)(t,e,r,y,g,m):(0,o.A)(t,e,v,r,y,g,m);if(!(1&r)){var B=A&&p.call(t,"__wrapped__"),I=S&&p.call(e,"__wrapped__");if(B||I){var L=B?t.value():t,x=I?e.value():e;return m||(m=new n.A),g(L,x,r,y,m)}}return!!E&&(m||(m=new n.A),(0,s.A)(t,e,r,y,g,m))}},3265:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(7919),i=r(1532),o=r(42),s=r(3061),a=r(4105),c=r(7681);function u(t){var e=this.__data__=new n.A(t);this.size=e.size}u.prototype.clear=i.A,u.prototype.delete=o.A,u.prototype.get=s.A,u.prototype.has=a.A,u.prototype.set=c.A;const l=u},3325:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});const n=r(7275).A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),i=t=>{const e={};let r,i,o;return t&&t.split("\n").forEach(function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),i=t.substring(o+1).trim(),!r||e[r]&&n[r]||("set-cookie"===r?e[r]?e[r].push(i):e[r]=[i]:e[r]=e[r]?e[r]+", "+i:i)}),e}},3390:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(9888),i=r(4062);const o={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{o[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const s={};o.transitional=function(t,e,r){function o(t,e){return"[Axios v"+n.x+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,n,a)=>{if(!1===t)throw new i.A(o(n," has been removed"+(e?" in "+e:"")),i.A.ERR_DEPRECATED);return e&&!s[n]&&(s[n]=!0,console.warn(o(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,a)}},o.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};const a={assertOptions:function(t,e,r){if("object"!=typeof t)throw new i.A("options must be an object",i.A.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const s=n[o],a=e[s];if(a){const e=t[s],r=void 0===e||a(e,s,t);if(!0!==r)throw new i.A("option "+s+" must be "+r,i.A.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new i.A("Unknown option "+s,i.A.ERR_BAD_OPTION)}},validators:o}},3442:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n=r(5629),i=r(1682),o=r(5056),s=r(1965),a=r(1472),c=r(3549);class u{_container;_indoor;_maplibre;_position="top-right";_buildingId;_floorNames;_ordinals;_ordinal;_style;_$innerFloors;_$activeFloor;_centerSelectorIdx;_lastNormalScrollableIdx;_$arrowBtnUp;_$arrowBtnDown;_maxScrollTop;_$selectorExpanded;_$selectorFolded;_componentDidMount=!1;_visible=!1;_isEnabled;_dragPan;_language;_debounceScroll;_clearScrollEventListener;constructor(t,e){const{style:r,enabled:n=!0,language:i}=e;this._indoor=t,this._language=i,this._style=r?Object.assign({},o.kC,r):o.kC,this._isEnabled=n,this._addIndoorEventListeners()}onAdd(t){return this._maplibre=t,this._addMapMoveEventListener(),this._container=(0,i.r)("div","maplibregl-ctrl mapxus-ctrl-floors hidden"),this._container}onRemove(){this._debounceScroll&&this._debounceScroll.cancel(),this._clearScrollEventListener&&this._clearScrollEventListener(),(0,i.Z)(this._container)}get position(){return this._position}get enabled(){return this._isEnabled}setEnabled(t){this._isEnabled=t,t&&!this._visible&&this._setVisibility(!0),!t&&this._visible&&this._setVisibility(!1)}getDefaultPosition(){return"top-right"}async switchByOrdinal(t,e){this._ordinal=t,this._dragPan=e??!0,await this._indoor.switchFloorByOrdinal(t),this._updateSelectorStatus(t),this._scrollCenterActiveFloor()}changePosition(t,e,r){const n=document.querySelector(`.maplibregl-ctrl-${t}`),i=n.querySelector(".mapxus-ctrl-floors");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);i&&(n.removeChild(i),Number.isFinite(r)?t.insertBefore(i,t.children[r]):t.append(i),this._show(),this._scrollCenterActiveFloor())}else Number.isFinite(r)&&n.children[r]!==i&&(n.removeChild(i),n.insertBefore(i,n.children[r]),this._show(),this._scrollCenterActiveFloor())}setStyle(t){this._style=Object.assign({},this._style,t),this._componentDidMount&&(this._clearFloors(),this._calcSelectorLayout(),this._render(),this._scrollCenterActiveFloor())}_setVisibility(t){this._componentDidMount?t?(this._show(),this._scrollCenterActiveFloor()):this._hide():(this._visible=t,this._indoor.building&&t&&(this._render(),this._show(),this._scrollCenterActiveFloor()))}_addIndoorEventListeners(){this._indoor.on(n.Ms,t=>{if(this._updatePrepared(),!t)return;const{ordinal:e,dragPan:r}=t;this._dragPan=r,"building"in t?this._renderBuildingFloors(t.building,e):this._renderSharedLevelFloor(t)})}_updatePrepared(){this._clearState(),this._visible&&this._hide(),this._componentDidMount&&this._clearFloors()}_renderBuildingFloors(t,e){const{level_names:r,ordinals:n,id:i}=t.properties;this._buildingId=i,this._floorNames=r.split(",").reverse(),this._ordinals=n.split(",").reverse(),this._ordinal=e,this._calcSelectorLayout(),this._render();const o=this._indoor.getFeaturesById(i,{filter:t=>"mapxus-building-line"===t.layer.id})[0];this._checkIfShowFloorSelector(o)}_renderSharedLevelFloor(t){const{name:e,ordinal:r,id:n}=t;this._floorNames=[e[this._language]||e.default],this._ordinals=[r],this._ordinal=r,this._calcSelectorLayout(),this._render();const i=this._indoor.getFeaturesById(n,{layerIds:[s.TU]})[0];this._checkIfShowFloorSelector(i)}_checkIfShowFloorSelector(t){this.enabled&&(!1!==this._dragPan||!1===this._dragPan&&t)&&(this._show(),this._scrollCenterActiveFloor())}_addMapMoveEventListener(){this._maplibre.on("moveend",()=>{if(this.enabled&&!1===this._dragPan&&this._buildingId){this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0]?this._componentDidMount?this._visible||(this._show(),this._scrollCenterActiveFloor()):(this._render(),this._show(),this._scrollCenterActiveFloor()):this._componentDidMount&&this._visible&&this._hide()}})}_clearState(){this._buildingId=null,this._floorNames=[],this._ordinals=[],this._ordinal=null}_calcSelectorLayout(){const{itemCount:t,itemSize:e}=this._style;this._centerSelectorIdx=Math.ceil(t/2)-1,this._maxScrollTop=(this._floorNames.length-t)*e,this._lastNormalScrollableIdx=this._floorNames.length-(t-this._centerSelectorIdx-1)-1}_render(){this._createFloors(),this._componentDidMount=!0}_hide(){this._container.classList.add("hidden"),this._visible=!1}_show(){this._container.classList.remove("hidden"),this._visible=!0}_createFloors(){this._$selectorFolded=this._$foldedSelector(this._container,()=>{this._expandSelector(!0),this._scrollCenterActiveFloor()}),this._$selectorExpanded=this._$expandedSelector(this._container,()=>this._expandSelector(!1))}_$expandedSelector(t,e){const{itemSize:r,itemCount:n,defaultFolded:o,backgroundColor:s}=this._style,a=(0,i.r)("div","mapxus-ctrl-floors-expanded "+(o?"hidden":""),t);if(this._floorNames.length>1){(0,i.r)("div","mapxus-ctrl-floors-close",a).onclick=e}const u=(0,i.r)("div","mapxus-ctrl-floors-wrapper",a);return u.style.backgroundColor=s,this._floorNames.length>n&&(this._$arrowBtnUp=this._$createScrollButton(u,"up"),this._$arrowBtnUp.onclick=()=>this._handleScroll("up")),this._$innerFloors=(0,i.r)("div","mapxus-ctrl-floors-inner",u),Object.assign(this._$innerFloors.style,{maxHeight:r*n+"px",width:`${r}px`}),this._$createFloors(this._$innerFloors),this._floorNames.length>n&&(this._$arrowBtnDown=this._$createScrollButton(u,"down"),this._$arrowBtnDown.onclick=()=>this._handleScroll("down"),this._$innerFloors.addEventListener("scroll",this._debounceScroll=(0,c.A)(t=>{t.stopPropagation(),this._resetArrowBtnStatus(this._$innerFloors.scrollTop)},100)),this._clearScrollEventListener=()=>this._$innerFloors.removeEventListener("scroll",this._debounceScroll)),a}_$foldedSelector(t,e){const{itemSize:r,activeFontColor:n,activeBackgroundColor:o,defaultFolded:s}=this._style,a=(0,i.r)("div","mapxus-ctrl-floors-folded mapxus-ctrl-floors-floor "+(s?"":"hidden"),t);return a.onclick=e,Object.assign(a.style,{width:`${r}px`,height:`${r}px`,lineHeight:`${r}px`,color:n,backgroundColor:o}),a}_clearFloors(){this._container.replaceChildren(),this._componentDidMount=!1}_$createScrollButton(t,e){return(0,i.r)("div",`mapxus-ctrl-floors-arrow mapxus-ctrl-floors-floor ${e}`,t)}_$createFloors(t){const{fontColor:e,itemSize:r}=this._style;let n;this._floorNames.forEach((o,s)=>{n=(0,i.r)("div","mapxus-ctrl-floors-floor",t),n.dataset.floor=o,n.dataset.ordinal=this._ordinals[s],n.innerText=o,Object.assign(n.style,{color:e,height:`${r}px`,lineHeight:`${r}px`}),n.dataset.ordinal===this._ordinal&&(this._$activeFloor=n,this._resetActiveFloor(!0),this._$selectorFolded.innerText=o),n.onclick=async t=>{this._indoor.setDragPan("restrict"),await this.switchByOrdinal(t.target.dataset.ordinal)}})}_updateSelectorStatus(t){const e=this._floorNames[this._ordinals.indexOf(t)];this._$activeFloor&&this._resetActiveFloor(!1);for(const e of this._$innerFloors.children){const r=e;r.dataset.ordinal===t&&(this._$activeFloor=r,this._resetActiveFloor(!0))}this._$selectorFolded.innerText=e}_resetArrowBtnStatus(t){0===t?this._$arrowBtnUp?.classList?.add("hidden"):this._$arrowBtnUp?.classList?.remove("hidden"),t===this._maxScrollTop?this._$arrowBtnDown?.classList?.add("hidden"):this._$arrowBtnDown?.classList?.remove("hidden")}_resetActiveFloor(t){const{activeBackgroundColor:e,backgroundColor:r,activeFontColor:n,fontColor:i}=this._style;Object.assign(this._$activeFloor.style,{color:t?n:i,backgroundColor:t?e:r,fontWeight:t?"bold":"normal",cursor:t?"auto":"pointer"}),this._$activeFloor.disabled=t}_scrollCenterActiveFloor(){if(this._ordinal){const t=this._ordinals.indexOf(this._ordinal);t>-1&&(this._$innerFloors.scrollTop=this._getScrollTop(t),this._$innerFloors.scrollTop||this._resetArrowBtnStatus(0))}}_getScrollTop(t){return(0,a.A)(this._centerSelectorIdx,this._lastNormalScrollableIdx+1)?(t-this._centerSelectorIdx)*this._style.itemSize:t>this._lastNormalScrollableIdx?this._maxScrollTop:0}_handleScroll(t){const e=this._$innerFloors.scrollTop,{itemSize:r}=this._style;if("up"===t){const t=e-2*r;this._$innerFloors.scrollTop=t<0?0:t}else if("down"===t){const t=e+2*r;this._$innerFloors.scrollTop=t>this._maxScrollTop?this._maxScrollTop:t}}_expandSelector(t){t?(this._$selectorExpanded.classList.remove("hidden"),this._$selectorFolded.classList.add("hidden")):(this._$selectorExpanded.classList.add("hidden"),this._$selectorFolded.classList.remove("hidden"))}}},3454:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=Math.max,i=Math.min;const o=function(t,e,r){return t>=i(e,r)&&t<n(e,r)}},3503:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHex=e.remove0x=void 0;var n=r(6527);e.remove0x=function(t){return t.startsWith("0x")||t.startsWith("0X")?t.slice(2):t};e.decodeHex=function(t){return(0,n.hexToBytes)((0,e.remove0x)(t))}},3511:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(6912),i=r(5647),o=r(4792),s=r(3153);const a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,n.A)(e,(0,o.A)(t)),t=(0,i.A)(t);return e}:s.A},3549:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(3149),i=r(1052),o=r(9313),s=Math.max,a=Math.min;const c=function(t,e,r){var c,u,l,d,h,f,p=0,y=!1,g=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function _(e){var r=c,n=u;return c=u=void 0,p=e,d=t.apply(n,r)}function b(t){var r=t-f;return void 0===f||r>=e||r<0||g&&t-p>=l}function v(){var t=(0,i.A)();if(b(t))return w(t);h=setTimeout(v,function(t){var r=e-(t-f);return g?a(r,l-(t-p)):r}(t))}function w(t){return h=void 0,m&&c?_(t):(c=u=void 0,d)}function A(){var t=(0,i.A)(),r=b(t);if(c=arguments,u=this,f=t,r){if(void 0===h)return function(t){return p=t,h=setTimeout(v,e),y?_(t):d}(f);if(g)return clearTimeout(h),h=setTimeout(v,e),_(f)}return void 0===h&&(h=setTimeout(v,e)),d}return e=(0,o.A)(e)||0,(0,n.A)(r)&&(y=!!r.leading,l=(g="maxWait"in r)?s((0,o.A)(r.maxWait)||0,e):l,m="trailing"in r?!!r.trailing:m),A.cancel=function(){void 0!==h&&clearTimeout(h),p=0,c=f=u=h=void 0},A.flush=function(){return void 0===h?d:w((0,i.A)())},A}},3562:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getHash=function(t){return{hash:t}},e.createCurve=function(t,e){const r=e=>(0,n.weierstrass)({...t,hash:e});return{...r(e),create:r}};const n=r(1705)},3574:(t,e,r)=>{"use strict";r.d(e,{$O:()=>a.$,Kp:()=>s.Kp,LJ:()=>s.LJ,SV:()=>i.S,_P:()=>s._P,en:()=>o.e,nH:()=>s.nH,ys:()=>n.y});var n=r(6612),i=r(9408),o=r(8884),s=r(6358),a=r(5405)},3626:(t,e,r)=>{"use strict";r.d(e,{V:()=>i});var n=r(1682);class i{_container;_isEnabled;constructor(t){this._isEnabled=t?.enabled??!0}onAdd(t){if(this._container=(0,n.r)("div","maplibregl-ctrl mapxus-ctrl-logo",t.getContainer()),this._isEnabled){const t=(0,n.r)("a","mapxus-logo",this._container);t.target="_blank",t.href="https://www.khi.co.jp/groupvision2030/mapxus.html",t.setAttribute("aria-label","Mapxus logo"),t.setAttribute("rel","noopener"),this._container.appendChild(t)}return this._container}onRemove(){(0,n.Z)(this._container)}getDefaultPosition(){return"bottom-left"}}},3631:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(702),i=r(1917);const o=(0,n.A)(i.A,"WeakMap")},3724:(t,e,r)=>{"use strict";r.d(e,{H:()=>c});var n=r(9588),i=r(2068),o=r(9573),s=r(6034);const a=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","description"];class c{_api="/api/v5/buildings";_request=i.K.getInstance();constructor(){}searchByIds(t){const e=(0,o.VS)(t);if(!e)throw new Error("Please input building id at least one.");const r=`${this._api}/${e}`;return this._changedRes(r)}searchByDistance(t){const{center:e,distance:r,keywords:i="",offset:s=n.e$,page:a=n.KL}=t;if(!(0,o.ES)(e))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(r)||r>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000.");const c=new URLSearchParams;c.set("center",e.join(",")),c.set("distance",String(r)),c.set("offset",String(s)),c.set("page",String(a)),(0,o.BW)(i)&&c.set("keywords",i);const u=`${this._api}?${c.toString()}`;return this._changedRes(u)}searchByBounds(t){const{bounds:e,offset:r=n.e$,page:i=n.KL,keywords:s}=t;if(!(0,o.dD)(e))throw new Error("'bounds' must be an array of two arrays, each containing two numbers.");const a=new URLSearchParams;a.set("bbox",e.flat().join()),a.set("offset",String(r)),a.set("page",String(i)),(0,o.BW)(s)&&a.set("keywords",s);const c=`${this._api}?${a.toString()}`;return this._changedRes(c)}searchByGlobal(t){const{keywords:e,offset:r=n.e$,page:i=n.KL}=t,s=new URLSearchParams;s.set("searchGlobal",String(!0)),s.set("offset",String(r)),s.set("page",String(i)),(0,o.BW)(e)&&s.set("keywords",e);const a=`${this._api}?${s.toString()}`;return this._changedRes(a)}searchByFloorId(t){if(!(0,o.BW)(t))throw new Error("'floorId' cannot be empty.");return this._changedRes(`${this._api}/floors/${t}`)}search(t){const e=new URLSearchParams;return Object.entries(t).forEach(([t,r])=>{"bounds"===t?e.set("bbox",r.flat().join()):"center"===t?e.set("center",r.join()):e.set(t,String(r))}),this._changedRes(`${this._api}?${e.toString()}`)}async _changedRes(t){return this._request.get(t).then(t=>{if(t.data?.result?.buildings){const e=t.data.result.buildings.map(t=>(0,s.A)(t,(t,e)=>a.includes(e)));return{...t,data:{...t.data,result:{...t.data.result,buildings:e}}}}return t})}}},3736:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},3820:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(6847);const i={...r(2569),...n.A}},3831:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(6912),i=r(2049);const o=function(t,e,r){var o=e(t);return(0,i.A)(t)?o:(0,n.A)(o,r(t))}},3853:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(4062);function i(t,e,r){const i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(new n.A("Request failed with status code "+r.status,[n.A.ERR_BAD_REQUEST,n.A.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}},3873:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=n[s];i||(i=c),r[o]=a,n[o]=c;let l=s,d=0;for(;l!==o;)d+=r[l++],l%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-i<e)return;const h=u&&c-u;return h?Math.round(1e3*d/h):void 0}}},3913:(t,e,r)=>{"use strict";r.d(e,{d:()=>i});var n=r(1682);class i{_container;_$icon;_removeClickEventListener;onAdd(t){return this._container=(0,n.r)("div","maplibregl-ctrl mapxus-ctrl-collapsed-copyright",t.getContainer()),this._container.innerHTML='\n <div class="mapxus-collapsed-copyright-content">\n <div class="mapxus-collapsed-copyright-menu hidden">\n <div class="mapxus-collapsed-copyright-logo" onclick="window.open(\'https://www.khi.co.jp/groupvision2030/mapxus.html\')"></div>\n <div class="mapxus-collapsed-horizontal-divider"></div>\n <div class="mapxus-collapsed-copyright-text" onclick="window.open(\'https://www.openstreetmap.org/copyright/\')"></div>\n </div>\n <div class="mapxus-collapsed-copyright-btn"></div>\n </div>\n ',this._bindEvents(),this._container}onRemove(){this._removeClickEventListener(),(0,n.Z)(this._container)}getDefaultPosition(){return"bottom-right"}_bindEvents(){const t=this._container.querySelector(".mapxus-collapsed-copyright-menu");this._$icon=this._container.querySelector(".mapxus-collapsed-copyright-btn");let e=!1;function r(){e=!e,e?t.classList.remove("hidden"):t.classList.add("hidden")}this._$icon.addEventListener("click",r),this._removeClickEventListener=()=>this._$icon.removeEventListener("click",r)}}},3938:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=(0,r(367).A)(Object.keys,Object)},3957:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(674);const i=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n.A&&void 0===e?"__lodash_hash_undefined__":e,this}},3967:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7275),i=r(5267);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function s(t,e,r){if(!e)return t;const s=r&&r.encode||o;n.A.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let c;if(c=a?a(e,r):n.A.isURLSearchParams(e)?e.toString():new i.A(e,r).toString(s),c){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+c}return t}},3973:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(3831),i=r(3511),o=r(1865);const s=function(t){return(0,n.A)(t,o.A,i.A)}},3988:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(1917).A.Uint8Array},4062:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(7275);function i(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}n.A.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n.A.toJSONObject(this.config),code:this.code,status:this.status}}});const o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{s[t]={value:t}}),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(t,e,r,s,a,c)=>{const u=Object.create(o);return n.A.toFlatObject(t,u,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),i.call(u,t.message,e,r,s,a),u.cause=t,u.name=t.name,c&&Object.assign(u,c),u};const a=i},4099:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return t.has(e)}},4105:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return this.__data__.has(t)}},4116:(t,e,r)=>{"use strict";r.d(e,{p:()=>o});var n=r(853),i=r(5664);class o{_maplibreMap;_layerId;_sourceId;_imageName="poi-01";_imageSize=.75;_iconAnchor="bottom";constructor(t){this._maplibreMap=t;const e=(0,i.A)();this._layerId=`MXMap_preset_marker_layer_${e}`,this._sourceId=`MXMap_preset_marker_source_${e}`}async setIcon(t){if("string"!=typeof t||!t.trim())throw new Error("Icon must be a non-empty string.");await(0,n.K)(this._maplibreMap,t.trim()),this._imageName=t}setIconSize(t){this._imageSize=t}setIconAnchor(t){this._iconAnchor=t}get layerId(){return this._layerId}get sourceId(){return this._sourceId}create(t){if(!Array.isArray(t)||!t.length)return;const e=t.map(t=>this._createIconFeature(t));this._addIconSource(e),this._addIconLayer()}updateData(t){const e=Boolean(t.remove&&t.remove.length),r=Boolean(t.add&&t.add.length),n=Boolean(t.update&&t.update.length),i=this._maplibreMap.getSource(this._sourceId);if(!e&&!r&&!n||!i)return;const o={};e&&(o.remove=t.remove),r&&(o.add=t.add.map(t=>this._createIconFeature(t))),n&&(o.update=t.update.map(t=>{const e=this._createIconFeature(t),{id:r,geometry:n,properties:i}=e;return{id:r,...n&&{newGeometry:n},...i&&{addOrUpdateProperties:Object.entries(i).map(([t,e])=>({key:t,value:e}))},...!n&&!i&&{removeAllProperties:!0}}})),i.updateData(o)}remove(){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.removeLayer(this._layerId),this._maplibreMap.getSource(this._sourceId)&&this._maplibreMap.removeSource(this._sourceId)}on(t,e){const{unsubscribe:r}=this._maplibreMap.on(t,this._layerId,t=>this._handleEventListener(t,e));return{off:r}}setFilter(t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,t)}setFilterByVenue(t,e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","venueId"],t??""],["==",["get","ordinal"],e??""]],["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]]])}setFilterByBuilding(t,e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","buildingId"],t??""],["==",["get","ordinal"],e??""]],["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]]])}setOpacity(t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",t)}setOpacityByVenue(t,e,r){if(this._maplibreMap.getLayer(this._layerId)){const n=["case",["all",["==",["get","venueId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]],1,r??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",n)}}setOpacityByBuilding(t,e,r){if(this._maplibreMap.getLayer(this._layerId)){const n=["case",["all",["==",["get","buildingId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]],1,r??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",n)}}_createIconFeature(t){const{lngLat:e,properties:r}=t;return{id:"featureId"in t?t.featureId:void 0,type:"Feature",...e&&{geometry:{type:"Point",coordinates:e}},...r&&{properties:r}}}_addIconSource(t){const e={type:"geojson",data:{type:"FeatureCollection",features:t}};this._maplibreMap.addSource(this._sourceId,e)}_addIconLayer(){this._maplibreMap.addLayer({id:this._layerId,type:"symbol",source:this._sourceId,layout:{"icon-image":this._imageName,"icon-size":this._imageSize,"icon-anchor":this._iconAnchor,"icon-allow-overlap":!0,"icon-ignore-placement":!0}})}_handleEventListener(t,e){const{point:r}=t;e(this._maplibreMap.queryRenderedFeatures(r,{layers:[this._layerId]})[0])}}},4139:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hkdf=void 0,e.extract=o,e.expand=c;const n=r(9615),i=r(9175);function o(t,e,r){return(0,i.ahash)(t),void 0===r&&(r=new Uint8Array(t.outputLen)),(0,n.hmac)(t,(0,i.toBytes)(r),(0,i.toBytes)(e))}const s=Uint8Array.from([0]),a=Uint8Array.of();function c(t,e,r,o=32){(0,i.ahash)(t),(0,i.anumber)(o);const c=t.outputLen;if(o>255*c)throw new Error("Length should be <= 255*HashLen");const u=Math.ceil(o/c);void 0===r&&(r=a);const l=new Uint8Array(u*c),d=n.hmac.create(t,e),h=d._cloneInto(),f=new Uint8Array(d.outputLen);for(let t=0;t<u;t++)s[0]=t+1,h.update(0===t?a:f).update(r).update(s).digestInto(f),l.set(f,c*t),d._cloneInto(h);return d.destroy(),h.destroy(),(0,i.clean)(f,s),l.slice(0,o)}e.hkdf=(t,e,r,n,i)=>c(t,o(t,e,r),n,i)},4171:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(702);const i=function(){try{var t=(0,n.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},4543:(t,e,r)=>{"use strict";r.d(e,{e:()=>n});class n extends Error{status;constructor(t,e){super(t);const{status:r,name:n}=e;void 0!==r&&(this.status=r),void 0!==n&&(this.name=n)}}},4545:(t,e,r)=>{"use strict";r.d(e,{FR:()=>o.F,H$:()=>i.H,v$:()=>s.v,w1:()=>n.w});var n=r(2801),i=r(3724),o=r(5568),s=r(5344)},4616:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(1917),i=r(4639),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?n.A.Buffer:void 0;const c=(a?a.isBuffer:void 0)||i.A},4639:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){return!1}},4662:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7275),i=r(7110);const o=t=>t instanceof i.A?{...t}:t;function s(t,e){e=e||{};const r={};function i(t,e,r,i){return n.A.isPlainObject(t)&&n.A.isPlainObject(e)?n.A.merge.call({caseless:i},t,e):n.A.isPlainObject(e)?n.A.merge({},e):n.A.isArray(e)?e.slice():e}function s(t,e,r,o){return n.A.isUndefined(e)?n.A.isUndefined(t)?void 0:i(void 0,t,0,o):i(t,e,0,o)}function a(t,e){if(!n.A.isUndefined(e))return i(void 0,e)}function c(t,e){return n.A.isUndefined(e)?n.A.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function u(r,n,o){return o in e?i(r,n):o in t?i(void 0,r):void 0}const l={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:u,headers:(t,e,r)=>s(o(t),o(e),0,!0)};return n.A.forEach(Object.keys(Object.assign({},t,e)),function(i){const o=l[i]||s,a=o(t[i],e[i],i);n.A.isUndefined(a)&&o!==u||(r[i]=a)}),r}},4762:(t,e,r)=>{"use strict";r.d(e,{G:()=>i});var n=r(1682);class i{_map;_maplibre;_buildingId;_features;_$container;_$listContainer;_$buildingList;_listHeight;_language;_visible;_position="top-right";_isMobileMode;_isListShown=!1;constructor(t,e){this._map=t,this._language=t.getLanguage(),this._visible=e??!0,this._detectDeviceMode()}onAdd(t){return this._maplibre=t,this._$container=(0,n.r)("div","maplibregl-ctrl maplibregl-ctrl-building-filter "+(this._visible?"":"hide"),this._maplibre.getContainer()),this._$container.appendChild(this._buildingFilterIconCreate("div")),this._$container.appendChild(this._buildingNameListCreate("div")),this._bindEvents(),this._$container}onRemove(){(0,n.Z)(this._$container)}get position(){return this._position}get enabled(){return this._visible}getDefaultPosition(){return"top-right"}setVisibility(t){this._visible=t,t?this._$showLayout():this._$hideLayout()}changePosition(t,e,r){const n=document.querySelector(`.maplibregl-ctrl-${t}`),i=n.querySelector(".maplibregl-ctrl-building-filter");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);i&&(n.removeChild(i),Number.isFinite(r)?t.insertBefore(i,t.children[r]):t.append(i),this._updateBuildingListLayout(e))}else Number.isFinite(r)&&n.children[r]!==i&&(n.removeChild(i),n.insertBefore(i,n.children[r]))}_bindEvents(){this._maplibre.on("moveend",()=>this._refresh()),this._map.onMapChangeListener(t=>{const e=t.building?.properties?.id??"";this._buildingId!==e&&(this._buildingId=e,this._refresh())}),this._map.renderComplete(()=>this._init())}_init(){this._load()}_refresh(){this._load()}_load(){this._buildingNameListClean(),this._buildingNameListUpdate()}_buildingFilterIconCreate(t){const e=(0,n.r)(t,"mapxus-building-filter-icon");return this._bindMouseOnEvents(e,!1),this._bindMobileTouchEvents(e),e}_buildingNameListCreate(t){return this._$listContainer=(0,n.r)(t,"mapxus-building-name-layout"),this._$listContainer.style.display="none",this._$listContainer.style.top="20px",this._$buildingList=(0,n.r)(t,"mapxus-building-name-list",this._$listContainer),this._bindMouseOnEvents(this._$listContainer,!0),this._$listContainer}_buildingNameListUpdate(){this._features=[];const t=this._map.getMaplibre(),e=t?t.queryRenderedFeatures({layers:["mapxus-building-line"]}):[];for(const t of e){const{properties:e}=t,{id:r,name:n}=e,i=e?.[`name:${this._language}`]??n;this._features.find(t=>t.properties.id===r)||(this._features.push(t),this._$buildingList.appendChild(this._buildingNameCreate("p",i,r,r===this._map.building?.properties?.id)))}this._setBuildingListHeight(this._features),this._updateBuildingListLayout(this._position)}_buildingNameListClean(){this._$buildingList.replaceChildren()}_setBuildingListHeight(t){const e=t.map(t=>{const e=t?.properties?.[`name:${this._language}`]??t?.properties?.name;return e?Math.ceil(8*e.length/107):0}).reduce((t,e)=>t+e,0);this._listHeight=26*e+8*t.length,this._$buildingList.style.height=this._$listContainer.style.height=`${this._listHeight>=208?208:this._listHeight}px`}_buildingNameCreate(t,e,r,i){const o=(0,n.r)(t,"mapxus-building-name"+(i?" active":""));return o.dataset.id=r,o.innerText=e,this._buildingNameClickEvent(o),o}_toggleList(t){this._isListShown=t,this._$listContainer.style.display=t?"block":"none"}_buildingNameClickEvent(t){t.onclick||(t.onclick=async t=>{const e=t.target;await this._map.selectBuildingById(e.dataset.id)})}_bindMouseOnEvents(t,e){t.onmouseenter=()=>{this._isMobileMode||this._toggleList(!0)},e&&(t.onmouseleave=()=>this._toggleList(!1))}_bindMobileTouchEvents(t){window.addEventListener("resize",()=>this._detectDeviceMode()),t.ontouchend=()=>this._toggleList(!this._isListShown)}_$showLayout(){this._$container.classList.remove("hide")}_$hideLayout(){this._$container.classList.add("hide")}_updateBuildingListLayout(t){t.indexOf("left")>-1?(this._$listContainer.style.right=null,this._$listContainer.style.left="55px"):(this._$listContainer.style.left=null,this._$listContainer.style.right="55px");const e=this._$container.offsetParent?this._$container.offsetParent.clientHeight-(this._$container.offsetTop+this._$container.clientHeight)-25:0;t.includes("bottom")&&this._listHeight-20>e?(this._$listContainer.style.top=null,this._$listContainer.style.bottom="15px"):(this._$listContainer.style.bottom=null,this._$listContainer.style.top="20px")}_detectDeviceMode(){this._isMobileMode=window.matchMedia("(pointer: coarse) and (max-width: 768px)").matches}}},4787:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(169);const i=function(t){var e=this.__data__,r=(0,n.A)(e,t);return r<0?void 0:e[r][1]}},4792:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2634),i=r(3153),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(t){return null==t?[]:(t=Object(t),(0,n.A)(s(t),function(e){return o.call(t,e)}))}:i.A},4841:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2136),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i&&n.A.process;const a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}()},4846:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9672),i=r(3098);const o=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,n.A)(t)}},4874:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(8458);class i{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t});const r=this;this.promise.then(t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null}),this.promise.then=t=>{let e;const n=new Promise(t=>{r.subscribe(t),e=t}).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t(function(t,i,o){r.reason||(r.reason=new n.A(t,i,o),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new i(function(e){t=e}),cancel:t}}}const o=i},4877:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},4928:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ephemeralKeySize=e.symmetricNonceLength=e.symmetricAlgorithm=e.isHkdfKeyCompressed=e.isEphemeralKeyCompressed=e.ellipticCurve=e.ECIES_CONFIG=void 0;var n=r(1666),i=function(){this.ellipticCurve="secp256k1",this.isEphemeralKeyCompressed=!1,this.isHkdfKeyCompressed=!1,this.symmetricAlgorithm="aes-256-gcm",this.symmetricNonceLength=16};e.ECIES_CONFIG=new i;e.ellipticCurve=function(){return e.ECIES_CONFIG.ellipticCurve};e.isEphemeralKeyCompressed=function(){return e.ECIES_CONFIG.isEphemeralKeyCompressed};e.isHkdfKeyCompressed=function(){return e.ECIES_CONFIG.isHkdfKeyCompressed};e.symmetricAlgorithm=function(){return e.ECIES_CONFIG.symmetricAlgorithm};e.symmetricNonceLength=function(){return e.ECIES_CONFIG.symmetricNonceLength};e.ephemeralKeySize=function(){var t={secp256k1:e.ECIES_CONFIG.isEphemeralKeyCompressed?n.COMPRESSED_PUBLIC_KEY_SIZE:n.UNCOMPRESSED_PUBLIC_KEY_SIZE,x25519:n.CURVE25519_PUBLIC_KEY_SIZE,ed25519:n.CURVE25519_PUBLIC_KEY_SIZE};if(e.ECIES_CONFIG.ellipticCurve in t)return t[e.ECIES_CONFIG.ellipticCurve];throw new Error("Not implemented")}},4943:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(759),i=r(3198),o=r(5997);const s=function(t){var e=(0,i.A)(t);return 1==e.length&&e[0][2]?(0,o.A)(e[0][0],e[0][1]):function(r){return r===t||(0,n.A)(r,t,e)}}},4967:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNegativeLE=void 0,e.mod=p,e.pow=function(t,e,r){return A(I(r),t,e)},e.pow2=function(t,e,r){let n=t;for(;e-- >i;)n*=n,n%=r;return n},e.invert=y,e.tonelliShanks=b,e.FpSqrt=v,e.validateField=function(t){const e=w.reduce((t,e)=>(t[e]="function",t),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"});return(0,n._validateObject)(t,e),t},e.FpPow=A,e.FpInvertBatch=S,e.FpDiv=function(t,e,r){return t.mul(e,"bigint"==typeof r?y(r,t.ORDER):t.inv(r))},e.FpLegendre=E,e.FpIsSquare=function(t,e){return 1===E(t,e)},e.nLength=B,e.Field=I,e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?r:t.neg(r)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?t.neg(r):r},e.hashToPrivateScalar=function(t,e,r=!1){const i=(t=(0,n.ensureBytes)("privateHash",t)).length,s=B(e).nByteLength+8;if(s<24||i<s||i>1024)throw new Error("hashToPrivateScalar: expected "+s+"-1024 bytes of input, got "+i);return p(r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t),e-o)+o},e.getFieldBytesLength=L,e.getMinHashLength=x,e.mapHashToField=function(t,e,r=!1){const i=t.length,s=L(e),a=x(e);if(i<16||i<a||i>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+i);const c=p(r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t),e-o)+o;return r?(0,n.numberToBytesLE)(c,s):(0,n.numberToBytesBE)(c,s)};const n=r(8627),i=BigInt(0),o=BigInt(1),s=BigInt(2),a=BigInt(3),c=BigInt(4),u=BigInt(5),l=BigInt(7),d=BigInt(8),h=BigInt(9),f=BigInt(16);function p(t,e){const r=t%e;return r>=i?r:e+r}function y(t,e){if(t===i)throw new Error("invert: expected non-zero number");if(e<=i)throw new Error("invert: expected positive modulus, got "+e);let r=p(t,e),n=e,s=i,a=o,c=o,u=i;for(;r!==i;){const t=n/r,e=n%r,i=s-c*t,o=a-u*t;n=r,r=e,s=c,a=u,c=i,u=o}if(n!==o)throw new Error("invert: does not exist");return p(s,e)}function g(t,e,r){if(!t.eql(t.sqr(e),r))throw new Error("Cannot find square root")}function m(t,e){const r=(t.ORDER+o)/c,n=t.pow(e,r);return g(t,n,e),n}function _(t,e){const r=(t.ORDER-u)/d,n=t.mul(e,s),i=t.pow(n,r),o=t.mul(e,i),a=t.mul(t.mul(o,s),i),c=t.mul(o,t.sub(a,t.ONE));return g(t,c,e),c}function b(t){if(t<a)throw new Error("sqrt is not defined for small field");let e=t-o,r=0;for(;e%s===i;)e/=s,r++;let n=s;const c=I(t);for(;1===E(c,n);)if(n++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===r)return m;let u=c.pow(n,e);const l=(e+o)/s;return function(t,n){if(t.is0(n))return n;if(1!==E(t,n))throw new Error("Cannot find square root");let i=r,s=t.mul(t.ONE,u),a=t.pow(n,e),c=t.pow(n,l);for(;!t.eql(a,t.ONE);){if(t.is0(a))return t.ZERO;let e=1,r=t.sqr(a);for(;!t.eql(r,t.ONE);)if(e++,r=t.sqr(r),e===i)throw new Error("Cannot find square root");const n=o<<BigInt(i-e-1),u=t.pow(s,n);i=e,s=t.sqr(u),a=t.mul(a,s),c=t.mul(c,u)}return c}}function v(t){return t%c===a?m:t%d===u?_:t%f===h?function(t){const e=I(t),r=b(t),n=r(e,e.neg(e.ONE)),i=r(e,n),o=r(e,e.neg(n)),s=(t+l)/f;return(t,e)=>{let r=t.pow(e,s),a=t.mul(r,n);const c=t.mul(r,i),u=t.mul(r,o),l=t.eql(t.sqr(a),e),d=t.eql(t.sqr(c),e);r=t.cmov(r,a,l),a=t.cmov(u,c,d);const h=t.eql(t.sqr(a),e),f=t.cmov(r,a,h);return g(t,f,e),f}}(t):b(t)}e.isNegativeLE=(t,e)=>(p(t,e)&o)===o;const w=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function A(t,e,r){if(r<i)throw new Error("invalid exponent, negatives unsupported");if(r===i)return t.ONE;if(r===o)return e;let n=t.ONE,s=e;for(;r>i;)r&o&&(n=t.mul(n,s)),s=t.sqr(s),r>>=o;return n}function S(t,e,r=!1){const n=new Array(e.length).fill(r?t.ZERO:void 0),i=e.reduce((e,r,i)=>t.is0(r)?e:(n[i]=e,t.mul(e,r)),t.ONE),o=t.inv(i);return e.reduceRight((e,r,i)=>t.is0(r)?e:(n[i]=t.mul(e,n[i]),t.mul(e,r)),o),n}function E(t,e){const r=(t.ORDER-o)/s,n=t.pow(e,r),i=t.eql(n,t.ONE),a=t.eql(n,t.ZERO),c=t.eql(n,t.neg(t.ONE));if(!i&&!a&&!c)throw new Error("invalid Legendre symbol result");return i?1:a?0:-1}function B(t,e){void 0!==e&&(0,n.anumber)(e);const r=void 0!==e?e:t.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function I(t,e,r=!1,s={}){if(t<=i)throw new Error("invalid field: expected ORDER > 0, got "+t);let a,c,u,l=!1;if("object"==typeof e&&null!=e){if(s.sqrt||r)throw new Error("cannot specify opts in two arguments");const t=e;t.BITS&&(a=t.BITS),t.sqrt&&(c=t.sqrt),"boolean"==typeof t.isLE&&(r=t.isLE),"boolean"==typeof t.modOnDecode&&(l=t.modOnDecode),u=t.allowedLengths}else"number"==typeof e&&(a=e),s.sqrt&&(c=s.sqrt);const{nBitLength:d,nByteLength:h}=B(t,a);if(h>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let f;const g=Object.freeze({ORDER:t,isLE:r,BITS:d,BYTES:h,MASK:(0,n.bitMask)(d),ZERO:i,ONE:o,allowedLengths:u,create:e=>p(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("invalid field element: expected bigint, got "+typeof e);return i<=e&&e<t},is0:t=>t===i,isValidNot0:t=>!g.is0(t)&&g.isValid(t),isOdd:t=>(t&o)===o,neg:e=>p(-e,t),eql:(t,e)=>t===e,sqr:e=>p(e*e,t),add:(e,r)=>p(e+r,t),sub:(e,r)=>p(e-r,t),mul:(e,r)=>p(e*r,t),pow:(t,e)=>A(g,t,e),div:(e,r)=>p(e*y(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>y(e,t),sqrt:c||(e=>(f||(f=v(t)),f(g,e))),toBytes:t=>r?(0,n.numberToBytesLE)(t,h):(0,n.numberToBytesBE)(t,h),fromBytes:(e,i=!0)=>{if(u){if(!u.includes(e.length)||e.length>h)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+e.length);const t=new Uint8Array(h);t.set(e,r?0:t.length-e.length),e=t}if(e.length!==h)throw new Error("Field.fromBytes: expected "+h+" bytes, got "+e.length);let o=r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e);if(l&&(o=p(o,t)),!i&&!g.isValid(o))throw new Error("invalid field element: outside of range 0..ORDER");return o},invertBatch:t=>S(g,t),cmov:(t,e,r)=>r?e:t});return Object.freeze(g)}function L(t){if("bigint"!=typeof t)throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function x(t){const e=L(t);return e+Math.ceil(e/2)}},4969:(t,e,r)=>{"use strict";r.d(e,{y:()=>i});var n=r(3574);function i(t){let e=null;return!function(t){return/^en(-(US|GB|AU))?$/.test(t)}(t)?!function(t){return/^zh(-(Hans|CN))?$/.test(t)}(t)?!function(t){return/^zh-(Hant|HK|MO)$/.test(t)}(t)?!function(t){return"zh-TW"===t}(t)?!function(t){return/^ja(-JP)?$/.test(t)}(t)?!function(t){return/^ko(-KR)?$/.test(t)}(t)?!function(t){return/^(fil|tl)(-PH)?$/.test(t)}(t)?!function(t){return/^id(-ID)?$/.test(t)}(t)?!function(t){return/^pt(-(BR|PT))?$/.test(t)}(t)?!function(t){return/^th(-TH)?$/.test(t)}(t)?!function(t){return/^vi(-VN)?$/.test(t)}(t)?function(t){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(t)}(t)&&(e=n.ys.ARABIC):e=n.ys.VIETNAMESE:e=n.ys.THAI:e=n.ys.PORTUGUESE:e=n.ys.INDONESIAN:e=n.ys.FILIPINO:e=n.ys.KOREAN:e=n.ys.JAPANESE:e=n.ys.CHINESE_TRADITIONAL_TW:e=n.ys.CHINESE_TRADITIONAL:e=n.ys.CHINESE_SIMPLIFIED:e=n.ys.ENGLISH,e}},5054:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(7465),i=r(1788),o=r(2049),s=r(5353),a=r(5254),c=r(901);const u=function(t,e,r){for(var u=-1,l=(e=(0,n.A)(e,t)).length,d=!1;++u<l;){var h=(0,c.A)(e[u]);if(!(d=null!=t&&r(t,h)))break;t=t[h]}return d||++u!=l?d:!!(l=null==t?0:t.length)&&(0,a.A)(l)&&(0,s.A)(h,l)&&((0,o.A)(t)||(0,i.A)(t))}},5056:(t,e,r)=>{"use strict";r.d(e,{eG:()=>a,kC:()=>s,sy:()=>o});var n=r(4969),i=r(3574);const o={lineWidth:3,lineColor:"#A5E3FF",lineOpacity:1,lineOffset:-1.5},s={fontColor:"#8c8c8c",activeFontColor:"#fff",backgroundColor:"#fff",activeBackgroundColor:"#074769",itemSize:50,itemCount:4,defaultFolded:!1},a=(0,n.y)(window.navigator.language)??i.ys.ENGLISH},5088:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(5373),i=r(7919),o=r(8335);const s=function(){this.size=0,this.__data__={hash:new n.A,map:new(o.A||i.A),string:new n.A}}},5145:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5188:(t,e,r)=>{"use strict";r.d(e,{p:()=>u});var n=r(8291),i=r(8700),o=r(1965),s=r(1089),a=r(5664);const c="Poi_poiClick";class u{_map;_currentStyle=null;_styleLayersLength=0;_layerIds=[];_dispatch=(0,s.A)(c);_listeners=[];constructor(t){this._map=t,this._bindPoiClickEvent()}destroy(){this._dispatch.on(`.${c}`,null),this._currentStyle=null,this._map=null,this._dispatch=null,this._listeners=[],this._layerIds=[]}onPoiClick(t){const e=(0,a.A)(`${c}.`);return this._dispatch.on(e,t),this._listeners.push(e),{unsubscribe:()=>this._dispatch.on(e,null)}}_queryPoiLayers(){const t=this._map.getStyle();if(t.name===this._currentStyle&&t.layers.length===this._styleLayersLength)return;const e=(0,n.cq)(t).filter(t=>"mapxus_place"===t["source-layer"]&&"symbol"===t.type);this._layerIds=e.map(({id:t})=>t),this._currentStyle=t.name,this._styleLayersLength=t.layers.length}_bindPoiClickEvent(){this._map.on("click",t=>{if(0===this._listeners.length)return;this._queryPoiLayers();const e=this._map.queryRenderedFeatures(t.point,{layers:this._layerIds});if(0===e.length)return;const r=e[0],n=(0,i.S)(r.properties["ref:sections"]),o=!!r.properties["ref:shared_level"],s={coordinate:t.lngLat,poi:r};if(n.length>0){const t=this._map.querySourceFeatures("indoor-planet",{sourceLayer:"mapxus_section"});s.sections=n.map(e=>{const r=t.find(t=>t.properties.id===e),{id:n,section:i="",correlation_id:o}=r?.properties||{};return{id:n,category:i,sectionName:l(r?.properties),...o&&{correlationId:o}}})}if(o){const t=r.properties["ref:shared_level"],{floor:e,venue:n}=this._queryIndoorFeaturesBySharedFloor(t);s.floor=e,s.venue=n}else{const t=r.properties["ref:level"],{floor:e,building:n,venue:i}=this._queryIndoorFeaturesByFloor(t);s.floor=e,s.building=n,s.venue=i}this._dispatch.call(c,null,s)})}_queryIndoorFeaturesBySharedFloor(t){const e=this._map.queryRenderedFeatures({layers:[o.TU,"mapxus-venue-fill"]}),r=e.find(e=>"mapxus_shared_level"===e.sourceLayer&&e.properties.id===t);if(!r)return{floor:null,venue:null};const n=r.properties["ref:venue"],i=e.find(t=>"mapxus-venue-fill"===t.layer.id&&t.properties.id===n)??null,{id:s,ordinal:a}=r.properties;return{floor:{id:s,ordinal:a,name:l(r.properties)},venue:i}}_queryIndoorFeaturesByFloor(t){const e=this._map.queryRenderedFeatures({layers:[o.FI,"mapxus-building-line","mapxus-venue-fill"]}),r=e.find(e=>"mapxus_level"===e.sourceLayer&&e.properties.id===t);if(!r)return{floor:null,building:null,venue:null};const{id:n,ordinal:i,name:s,"ref:building":a}=r.properties||{},c=e.find(t=>"mapxus-building-line"===t.layer.id&&t.properties.id===a)??null,u=e.find(t=>"mapxus-venue-fill"===t.layer.id&&t.properties.id===c?.properties?.["ref:venue"])??null;return{floor:{id:n,ordinal:i,code:s},building:c,venue:u}}}function l(t){if(!t)return{default:""};return Object.keys(t).filter(t=>t.includes("name")).reduce((e,r)=>{const[,n]=(0,i.S)(r,":");return n?e[n]=t[r]:e.default=t[r],e},{})}},5254:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5267:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(665);function i(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function o(t,e){this._pairs=[],t&&(0,n.A)(t,this,e)}const s=o.prototype;s.append=function(t,e){this._pairs.push([t,e])},s.toString=function(t){const e=t?function(e){return t.call(this,e,i)}:i;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};const a=o},5295:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrivateKey=void 0;var n=r(6527),i=r(2158),o=r(2557),s=function(){function t(t,e){if(this.curve=e,void 0===t)this.data=(0,i.getValidSecret)(e);else{if(!(0,i.isValidPrivateKey)(t,e))throw new Error("Invalid private key");this.data=t}this.publicKey=new o.PublicKey((0,i.getPublicKey)(this.data,e),e)}return t.fromHex=function(e,r){return new t((0,i.decodeHex)(e),r)},Object.defineProperty(t.prototype,"secret",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),t.prototype.toHex=function(){return(0,n.bytesToHex)(this.data)},t.prototype.encapsulate=function(t,e){void 0===e&&(e=!1);var r=this.publicKey.toBytes(e),n=this.multiply(t,e);return(0,i.getSharedKey)(r,n)},t.prototype.multiply=function(t,e){return void 0===e&&(e=!1),(0,i.getSharedPoint)(this.data,t.toBytes(!0),e,this.curve)},t.prototype.equals=function(t){return(0,n.equalBytes)(this.data,t.data)},t}();e.PrivateKey=s},5297:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5344:(t,e,r)=>{"use strict";r.d(e,{v:()=>o});var n=r(2068),i=r(5405);class o{_api="/api/v4/route/query";_request=n.K.getInstance();constructor(){}search(t){const{points:e,vehicle:r=i.$.FOOT,locale:n="en"}=t;if(!(e&&e.length>1&&e.length<6))throw new Error("Parameter error. It must be 1 < {points.length} < 6");if(function(t){return t.some(t=>!t||"number"!=typeof t.lat||"number"!=typeof t.lon)}(e))throw new Error("Parameter error. Points must have lat and lon.");const o={points:e,vehicle:r,locale:n};return this._request.post(this._api,JSON.stringify(o))}}},5353:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=/^(?:0|[1-9]\d*)$/;const i=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},5373:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(2944),i=r(9190),o=r(8417),s=r(8813),a=r(3957);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const u=c},5405:(t,e,r)=>{"use strict";var n;r.d(e,{$:()=>n}),function(t){t.FOOT="foot",t.WHEELCHAIR="wheelchair",t.ESCALATOR="escalator",t.EMERGENCY="emergency"}(n||(n={}))},5461:(t,e,r)=>{"use strict";r.d(e,{U:()=>a,l:()=>s});var n=r(9588);const i="-webkit-extension-67d8e3e8-";let o=null;async function s(){let t=sessionStorage.getItem(i);if(!t)try{a(),await c(Date.now()),t=sessionStorage.getItem(i)}catch(t){throw new Error("Failed to fetch public key: "+t)}return t}function a(){sessionStorage.removeItem(i),o&&(clearTimeout(o),o=null)}async function c(t){try{const r=await fetch(`${n.kk}?timestamp=${t}`,{method:"GET",headers:{"Content-Type":"text/plain"}}),{headers:s}=r,a=parseInt(s.get("x-retry-in"));o=setTimeout(async()=>{await c(t)},1e3*a),e=await r.text(),sessionStorage.setItem(i,e)}catch(t){throw t}var e}},5462:(t,e,r)=>{"use strict";r.d(e,{T:()=>F});var n=r(5629),i=r(5188),o=r(9983),s=r(2068),a=r(3626),c=r(520),u=r(3913),l=r(1089),d=r(3236),h=r(1965),f=r(5056),p=r(181),y=r(5706),g=r(7311),m=r(3574),_=r(6996),b=r.n(_),v=r(2075),w=r(1694),A=r(2468),S=r(9644),E=r(9205),B=r(6294),I=r(3549),L=r(5664),x=r(5582);const O="Map_mapClick",T="Map_pointClick",k="Map_isRenderComplete",R="Map_isDestroyed",C=g.o.getInstance();class F{_map;_indoor;_poi;_floorsControl;_buildingFilterControl;_attributionControl;_language;_dispatch=(0,l.A)(O,T,k,R);_fitBuildingBounds;_history=p.d.getInstance();_hiddenBuildings=y.Q.getInstance().getHiddenBuildings();_debounceHTTPErrorHandler;_transformRequestHandler;_tokenRefreshingPromise=null;_request=s.K.getInstance();_cancelTokenChangedListener;isDestroyed=!1;switchOutdoor;switchBuilding;buildingSelector;floorSelector;constructor(t){if(!t.map)throw new Error("Map is required.");if(!M(t)&&!P(t))throw new Error("Access params are required.");M(t)?C.setAccessByAppKey({appId:t.appId,secret:t.secret,platform:t.platform}).then(async()=>{await C.setupTokenManager(),this._setup(t)}):P(t)&&(C.setTokenGetter(t.getTokenAsync),C.setupTokenManager().then(()=>{this._setup(t)}))}renderComplete(t){const e=(0,L.A)(`${k}.`);this._dispatch.on(e,t)}destroyed(t){const e=(0,L.A)(`${R}.`);this._dispatch.on(e,()=>{t(),this._dispatch.on(e,null),0===this._dispatch._[R].length&&(delete this._dispatch,Object.freeze(this))})}setTransformRequest(t){this._transformRequestHandler=t}getIndoor(){return this._indoor}getMaplibre(){return this._map}get floor(){return this._indoor?.floor??null}get building(){return this._indoor?.building??null}get venue(){return this._indoor?.venue??null}setLanguage(t){this._language!==t&&(this._language=t);const e=this._map?.getStyle(),r=(e?.layers||[]).filter(({type:t})=>"symbol"===t);for(const{id:e}of r){const r=this._map.getLayer(e),n="string"==typeof this._map.getLayoutProperty(e,"text-field");r&&!n&&this._map.setLayoutProperty(e,"text-field",["coalesce",["get",`name:${t}`],["get","name"]])}}getLanguage(){return this._language}setOutdoorMapShown(t){this._indoor?.setOutdoorMapShown(t)}queryIndoorFeaturesByPoint(t){const{x:e,y:r}=t,n=this._map.queryRenderedFeatures([e,r],{layers:["mapxus-venue-fill","mapxus-building-line",h.FI,h.TU]}),i=n.find(t=>"mapxus-venue-fill"===t.layer.id);if(!i)return null;const{id:o}=i.properties,s=this._history.getBuildingUnitByVenue(o),a=this._history.getOrdinalByBuildingUnit(s.id),c=n.find(t=>t.properties?.ordinal===a);if(c){if("mapxus_shared_level"===c.sourceLayer)return{venue:i,sharedLevel:c};return{venue:i,building:n.find(t=>t.properties.id===c.properties["ref:building"]),level:c}}}getIndoorFeaturesByCoordinates(t,e){const r=this._map.project(t),n=this._map.queryRenderedFeatures(r,{layers:["mapxus-venue-fill","mapxus-building-line","mapxus-level-fill","mapxus-level-fill-overlap-copy"]});if(0===n.length)return{venue:null,building:null,level:null};const i=n.filter(t=>t.layer.id.includes("mapxus-level-fill")).find(t=>Number.isFinite(e)?t.properties.ordinal===e+"":t.layer.id.startsWith("mapxus-level-fill"));if(!i)return{venue:null,building:null,level:null};const o=n.find(t=>t.properties.id===i.properties["ref:building"]);return{venue:n.find(t=>t.properties.id===o.properties["ref:venue"]),building:o,level:i}}getFeaturesById(t,e){return this._indoor?.getFeaturesById(t,e)||[]}async switchFloorByOrdinal(t){await(this._indoor?.switchFloorByOrdinal(t))}async selectFloorById(t,e){const{dragPan:r=!0,animate:n=!0}=e||{};if(this._indoor.setDragPan(r),this._indoor.setAnimate(n),t===this.floor?.id){if(!r)return;this._fitBuildingBounds?await this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let e,n,i=!1;try{if(this._fitBuildingBounds){e=await(0,w.F2)(t),n=(0,d.r)(e),i=!0;const{maxLat:r,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,r]])}else n=(this._indoor?.features||[]).find(e=>e.properties?.level_ids?.includes(t)&&"mapxus-building-line"===e.layer.id)??null,n||(e=await(0,w.F2)(t),n=(0,d.r)(e),i=!0)}catch(t){this._handleSearchError(t)}if(n&&n?.properties?.id===this.building?.properties?.id){const{level_ids:e,ordinals:i}=n.properties,o=e.split(",").indexOf(t),s=i.split(",")[o]??null;await this._floorsControl.switchByOrdinal(s,r)}else await(this._indoor?.selectBuilding(n,{floorId:t,featureIncomplete:i}))}}async selectSharedFloorById(t,e){const{dragPan:r=!0,animate:n=!0}=e||{};if(this._indoor.setDragPan(r),this._indoor.setAnimate(n),t===this.floor?.id){if(!r)return;this._fitBuildingBounds?await this._indoor.fitVenueBbox():await this._indoor.panToVenueCenter()}else{let e,r,n=!1;const i=async t=>{n=!0;const i=await(0,w.F0)(t);r=(0,d.E)(i);const{maxLat:o,maxLon:s,minLat:a,minLon:c}=i.bbox;this._indoor.setVenueBounds([[c,a],[s,o]]);const u=i.sharedFloors.find(({id:e})=>e===t),{id:l,name:h,ordinal:f}=u;e={id:l,name:h,ordinal:f+""}};try{if(this._fitBuildingBounds)await i(t);else{r=(this._indoor?.features||[]).find(e=>e.properties?.shared_level_ids?.includes(t)&&"mapxus-venue-fill"===e.layer.id);const n=r?this._indoor.features.find(e=>e.properties.id===t):null;if(n){const{id:t,name:r,ordinal:i}=n.properties;e={id:t,name:"string"==typeof r?{default:r}:r,ordinal:i}}else await i(t)}}catch(t){this._handleSearchError(t)}e&&r&&await(this._indoor?.selectSharedFloor(e,r,{featureIncomplete:n}))}}async selectBuildingById(t,e){const{dragPan:r=!0,animate:n=!0}=e||{};if(this._indoor.setDragPan(r),this._indoor.setAnimate(n),t===this.building?.properties?.id){if(!r)return;this._fitBuildingBounds?await this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let e,r,n=!1;try{if(this._fitBuildingBounds){e=await(0,w.pT)(t),r=(0,d.r)(e),n=!0;const{maxLat:i,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,i]])}else r=this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(t,{layerIds:["mapxus-building-line"]})[0]||null,r||(e=await(0,w.pT)(t),r=(0,d.r)(e),n=!0);await(this._indoor?.selectBuilding(r,{featureIncomplete:n}))}catch(t){this._handleSearchError(t)}}}async selectVenueById(t,e){const{dragPan:r=!0,animate:n=!0}=e||{};if(this._indoor.setDragPan(r),this._indoor.setAnimate(n),"string"==typeof t&&""===t.trim()||null===t)await(this._indoor?.selectBuilding(null));else if(t===this.venue?.properties?.id){if(!r)return;this.building?this._fitBuildingBounds?await this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter():"name"in this.floor&&(this._fitBuildingBounds?await this._indoor.fitVenueBbox():await this._indoor.panToVenueCenter())}else{const e=this._history.getBuildingUnitByVenue(t);if(e){const{id:t,type:n}=e;"building"===n?await this.selectBuildingById(t,{dragPan:r}):await this.selectSharedFloorById(t,{dragPan:r})}else{let e;const n=this._map.getLayer("mapxus-venue-fill")&&this.getFeaturesById(t,{layerIds:["mapxus-venue-fill"]})[0];if(n){const{default_displayed_building:t,building_ids:r}=n.properties;e=t||(r?.split(",")||[])[0]}else try{const r=await(0,w.qT)(t);e=r.defaultBuilding||r.buildings[0]?.id}catch(t){this._handleSearchError(t)}e&&await this.selectBuildingById(e,{dragPan:r})}}}onMapClickListener(t){const e=(0,L.A)(`${O}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}onPoiClickListener(t){return this._poi?.onPoiClick(t)}onPointClickListener(t){const e=(0,L.A)(`${T}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}onMapChangeListener(t){return this._indoor?.onMapChange(t)}switchTheme(t){this._setStyle(this._getStyleUrl(t)),this._map?.once("styledata",()=>this._setIndoorFilter()),"changeTheme"in this._attributionControl&&this._attributionControl.changeTheme(t)}setTheme(t){this._setStyle(this._getStyleUrl(t)),this._map?.once("styledata",()=>this._setIndoorFilter()),"changeTheme"in this._attributionControl&&this._attributionControl.changeTheme(t)}setSelectedBuildingBorderStyle(t){return this._indoor?.setSelectedHighlightStyle(t),this}setSelectedHighlightStyle(t){return this._indoor?.setSelectedHighlightStyle(t),this}async _setup(t){const{map:e,poiId:r,sharedFloorId:s,floorId:l,buildingId:d,venueId:h,theme:p=m.SV.MAPXUS_DEFAULT,floorSelectorEnabled:y,buildingSelectorEnabled:g,outdoorMapShown:_,collapseCopyright:b=!1,maskNonSelectedAreas:v,fitBuildingBounds:w=!1,boundsPadding:L=30,selectedHighlightStyle:x,floorSelectorStyle:O,language:T=f.eG,autoSelectBuilding:R=!1,transformRequest:C=null,mapxusLogoEnabled:F=!0,enableIndoorClickSelection:P=!0,enableOutdoorClickSelection:M=!0}=t;this._map=e,this._language=T,this._indoor=new n.SN({map:this._map,startWithIndoorView:Boolean(h||d||l||r),outdoorMapShown:_,fitBuildingBounds:w,boundsPadding:L,maskNonSelectedAreas:v,selectedHighlightStyle:x,enableIndoorClickSelection:P,enableOutdoorClickSelection:M}),this._poi=new i.p(this._map),this._fitBuildingBounds=w,this._transformRequestHandler=C,await this._resourceRequestTransform(),this._installRtlTextPlugin(),this._setStyle(this._getStyleUrl(p)),this._checkMapZoom(),b?this._attributionControl=new u.d:(this._attributionControl=new c.z({theme:p}),this._addControl(new a.V({enabled:F}))),this._addControl(this._attributionControl),this._addControl(this._buildingFilterControl=new o.G(this,g)),this._addControl(this._floorsControl=new o.Z(this._indoor,{language:T,style:O,enabled:y})),r?this._selectPoiById(r):l?this.selectFloorById(l,{animate:!1}):d?this.selectBuildingById(d,{animate:!1}):h?this.selectVenueById(h,{animate:!1}):s&&this.selectSharedFloorById(s,{animate:!1}),this.switchOutdoor=new B.B(this._indoor),this.switchBuilding=new E.N(this._indoor),this.buildingSelector=new A.E(this._buildingFilterControl),this.floorSelector=new S.C(this._floorsControl),this._map.once("styledata",()=>this.setLanguage(this._language)),this._map.on("remove",()=>this._destroy()),this._map.on("error",this._debounceHTTPErrorHandler=(0,I.A)(t=>this._updatePermission(t),300)),this._indoor.once(n.Hv,()=>{R&&this._map.on("moveend",()=>this._selectCenterBuilding()),this._bindMapClickListener(),this._bindTokenChangedListener(),this._dispatch.call(k)})}_getStyleUrl(t){const e=new globalThis.Map([[m.SV.CHRISTMAS,v._C],[m.SV.HALLOWEEN,v.ts],[m.SV.MAPPY_BEE,v.xR],[m.SV.MAPXUS,v.em],[m.SV.COMMON,v.lu],[m.SV.LANDS_D,v.Hf],[m.SV.MAPXUS_DEFAULT,v.$b]]);return e.has(t)?e.get(t):(0,v.aS)(t)}_setIndoorFilter(){this._indoor.updateCustomLayers(),this._indoor.updateRendering()}_setStyle(t){this._map?.setStyle(t,{localIdeographFontFamily:!1})}_addControl(t,e){this._map.addControl(t,e)}async _selectPoiById(t){try{const e=await(0,w.xW)(t),{lon:r,lat:n}=e.location;"floorId"in e?await this.selectFloorById(e.floorId,{animate:!1}):"sharedFloorId"in e&&await this.selectSharedFloorById(e.sharedFloorId,{animate:!1}),this._map.panTo([r,n],{animate:!1})}catch(t){this._handleSearchError(t)}}async _resourceRequestTransform(){const t=await this._request.getRequestHeaders();this._map.setTransformRequest((e,r)=>{const{host:n}=new URL(e);return n.includes("map-api")&&n.includes("mapxus")?{url:e,headers:t}:this._transformRequestHandler?this._transformRequestHandler(e,r):{url:e}})}_checkMapZoom(){const t=this._map.getZoom();(t<8||t>22)&&t>1&&console.warn("Indoor maps perform better at zoom levels [8, 22].")}async _updatePermission(t){if(401===t.error?.status)return this._tokenRefreshingPromise||(this._tokenRefreshingPromise=this._resourceRequestTransform().finally(()=>this._tokenRefreshingPromise=null)),this._tokenRefreshingPromise}_selectCenterBuilding(){const t=this._getCenterBuildingUnitsMap();if(!t.size)return;let e=t.entries().next().value[1];const r=this._history.getVisitedBuildingUnits().reverse();for(const n of r){const{id:r}=n;if(t.get(r)){e=n;break}}"building"===e.type?this.selectBuildingById(e.id,{dragPan:!1}):this.selectSharedFloorById(e.id,{dragPan:!1})}_getCenterBuildingUnitsMap(){const t=this._map.getCanvas().getBoundingClientRect(),e=t.width/4,r=t.height/4,n=[e,r],i=[t.width-e,t.height-r],o=["mapxus-building-line",h.TU].filter(t=>this._map.getLayer(t));let s=this._map.queryRenderedFeatures([n,i],{layers:o});return s=(0,x.A)(s,"properties.id"),s=s.filter(t=>!this._hiddenBuildings.has(t.properties.id)),new globalThis.Map(s.map(({properties:t})=>[`${t.id}`,{id:t.id,type:t.building?"building":"sharedFloor"}]))}_bindMapClickListener(){this._map.on("click",async t=>{const{point:e,lngLat:r}=t,n=await this._indoor.queryIndoorFeaturesByClickPoint(e);await this._indoor.selectByClickMap(n),this._dispatch.call(T,null,{point:e,coordinate:r}),this._dispatch.call(O,null,{coordinate:r,venue:n?.venue??null,building:n&&"building"in n?n.building:null,floor:n?"sharedFloor"in n?n.sharedFloor:n.floor??null:null})})}_bindTokenChangedListener(){const{off:t}=C.on(g.O,async()=>{await this._resourceRequestTransform()});this._cancelTokenChangedListener=t}_handleSearchError(t){const e=t?.response?.status||"unknown",r=t?.response?.data?.message||"unknown";C.getGlobalDispatcher().call("initError",null,{status:e,message:r})}_installRtlTextPlugin(){"unavailable"===b().getRTLTextPluginStatus()&&b().setRTLTextPlugin("https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.3.0/dist/mapbox-gl-rtl-text.js",!0)}_destroy(){if(this.isDestroyed)return;this.isDestroyed=!0,this._debounceHTTPErrorHandler?.cancel();const t=this._dispatch._;for(const e in t)e!==R&&t.hasOwnProperty(e)&&t[e].forEach(({name:t})=>{this._dispatch.on(`${e}.${t}`,null)});this._indoor.destroy(),this._poi.destroy(),Object.keys(this).forEach(t=>{"isDestroyed"!==t&&"_dispatch"!==t&&delete this[t]}),this._cancelTokenChangedListener&&this._cancelTokenChangedListener(),C.clearState(),this._dispatch.call(R)}}function P(t){return"getTokenAsync"in t&&"function"==typeof t.getTokenAsync}function M(t){return"appId"in t&&""!==t.appId.trim()&&"secret"in t&&""!==t.secret.trim()}},5488:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(7880),i=/^\s+/;const o=function(t){return t?t.slice(0,(0,n.A)(t)+1).replace(i,""):t}},5530:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(2531);const i=function(t,e){return!!(null==t?0:t.length)&&(0,n.A)(t,e,0)>-1}},5537:(t,e,r)=>{"use strict";r.d(e,{s:()=>o});class n extends Error{}function i(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(t){return decodeURIComponent(atob(t).replace(/(.)/g,(t,e)=>{let r=e.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(e)}catch(t){return atob(e)}}function o(t,e){if("string"!=typeof t)throw new n("Invalid token specified: must be a string");e||(e={});const r=!0===e.header?0:1,o=t.split(".")[r];if("string"!=typeof o)throw new n(`Invalid token specified: missing part #${r+1}`);let s;try{s=i(o)}catch(t){throw new n(`Invalid token specified: invalid base64 for part #${r+1} (${t.message})`)}try{return JSON.parse(s)}catch(t){throw new n(`Invalid token specified: invalid json for part #${r+1} (${t.message})`)}}n.prototype.name="InvalidTokenError"},5547:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(9914);const i=function(t,e){var r=t.__data__;return(0,n.A)(e)?r["string"==typeof e?"string":"hash"]:r.map}},5568:(t,e,r)=>{"use strict";r.d(e,{F:()=>u});var n=r(9588),i=r(2068),o=r(9573),s=r(3574),a=r(6034);const c=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","icon"];class u{_poisApi="/api/v5/pois";_categoriesGroupApi="/api/v5/categories/group";_request=i.K.getInstance();constructor(){}searchByIds(t){const e=(0,o.VS)(t);if(!e)throw new Error("Invalid ids parameter. Expected a non-empty string or an array of strings.");const r=`${this._poisApi}/${e}`;return this._changedRes(r)}searchByDistance(t){const{center:e,distance:r,keywords:i="",offset:s=n.e$,page:a=n.KL}=t;if(!(0,o.ES)(e))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(r)||r>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000.");const c=new URLSearchParams;c.set("center",e.join(",")),c.set("distance",String(Math.round(r))),c.set("offset",String(s)),c.set("page",String(a)),(0,o.BW)(i)&&c.set("keywords",i);const u=`${this._poisApi}?${c.toString()}`;return this._changedRes(u)}searchByBounds(t){const{bounds:e,offset:r=n.e$,page:i=n.KL,keywords:s,orderBy:a}=t;if(!(0,o.dD)(e))throw new Error("'bounds' must be an array of two arrays, each containing two numbers.");const c=new URLSearchParams;c.set("bbox",e.flat().join()),c.set("offset",String(r)),c.set("page",String(i)),(0,o.BW)(s)&&c.set("keywords",s),a&&c.set("orderBy",a);const u=`${this._poisApi}?${c.toString()}`;return this._changedRes(u)}searchByBuilding(t){const{buildingId:e,offset:r=n.e$,page:i=n.KL,keywords:s,orderBy:a}=t;if(!(0,o.BW)(e))throw new Error("'buildingId' must be a non-empty string.");const c=new URLSearchParams;c.set("buildingId",e),c.set("offset",String(r)),c.set("page",String(i)),(0,o.BW)(s)&&c.set("keywords",s),a&&c.set("orderBy",a);const u=`${this._poisApi}?${c.toString()}`;return this._changedRes(u)}searchByVenue(t){const{venueId:e,offset:r=n.e$,page:i=n.KL,keywords:s,orderBy:a}=t;if(!(0,o.BW)(e))throw new Error("'venueId' must be a non-empty string.");const c=new URLSearchParams;c.set("venueId",e),c.set("offset",String(r)),c.set("page",String(i)),(0,o.BW)(s)&&c.set("keywords",s),a&&c.set("orderBy",a);const u=`${this._poisApi}?${c.toString()}`;return this._changedRes(u)}searchByFloor(t){let e=null,r=null;if("floorId"in t&&(0,o.BW)(t.floorId)?(e="floorId",r=t.floorId):"sharedFloorId"in t&&(0,o.BW)(t.sharedFloorId)&&(e="sharedFloorId",r=t.sharedFloorId),!e||!r)throw new Error("Either 'floorId' or 'sharedFloorId' must be a non-empty string.");const{offset:i=n.e$,page:s=n.KL,keywords:a,orderBy:c}=t,u=new URLSearchParams;u.set("offset",String(i)),u.set("page",String(s)),u.set(e,r),(0,o.BW)(a)&&u.set("keywords",a),c&&u.set("orderBy",c);const l=`${this._poisApi}?${u.toString()}`;return this._changedRes(l)}searchByOrientation(t){const{center:e,angle:r,distance:n,distanceSearchType:i=s._P.POINT}=t;if(!(0,o.ES)(e))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(n)||n>100)throw new Error("Invalid distance parameter. Expected a positive number and no more than 100.");if(!(0,o.F5)(r))throw new Error("Invalid angle parameter. Expected a positive number.");const a=new URLSearchParams;if("ordinal"in t){if(!(0,o.BW)(t.ordinal))throw new Error("'ordinal' must be a non-empty string.");a.set("ordinal",t.ordinal)}else if("floorId"in t){if(!(0,o.BW)(t.floorId))throw new Error("'floorId' must be a non-empty string.");a.set("floorId",t.floorId)}else{if(!("buildingId"in t))throw new Error("Either 'ordinal', 'floorId', or 'buildingId' must be provided.");if(!(0,o.BW)(t.buildingId))throw new Error("'buildingId' must be a non-empty string.");a.set("buildingId",t.buildingId)}a.set("center",e.join()),a.set("angle",String(Math.round(r))),a.set("distance",String(n)),a.set("distanceSearchType",i);const c=`${this._poisApi}/orientation?${a.toString()}`;return this._request.get(c)}searchByCategory(t){const{center:e,distance:r,page:i=n.KL,offset:s=n.e$}=t;if(!(0,o.ES)(e))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(r)||r>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000");const a=new URLSearchParams;if("category"in t&&(0,o.BW)(t.category))a.set("category",String(t.category));else{if(!("excludedCategories"in t)||!(0,o.VS)(t.excludedCategories))throw new Error("Either 'category' or 'excludedCategories' must be provided.");a.set("excludeCategories",(0,o.VS)(t.excludedCategories))}a.set("center",e.join(",")),a.set("distance",String(r)),a.set("page",String(i)),a.set("offset",String(s));const c=`${this._poisApi}?${a.toString()}`;return this._changedRes(c)}searchCategories(t){const e=new URLSearchParams;if("floorId"in t&&(0,o.BW)(t.floorId)?e.set("floorId",t.floorId):"buildingId"in t&&(0,o.BW)(t.buildingId)?e.set("buildingId",t.buildingId):"sharedFloorId"in t&&(0,o.BW)(t.sharedFloorId)?e.set("sharedFloorId",t.sharedFloorId):"venueId"in t&&(0,o.BW)(t.venueId)&&e.set("venueId",t.venueId),"bounds"in t&&(0,o.dD)(t.bounds)&&(e.set("bbox",t.bounds.flat().join()),(0,o.BW)(t.keywords)&&e.set("keywords",t.keywords)),0===e.toString().length)throw new Error("At least one of 'floorId', 'buildingId', 'sharedFloorId', 'venueId', or 'bounds' must be provided.");const r=`${this._categoriesGroupApi}?${e.toString()}`;return this._request.get(r)}search(t){const e=new URLSearchParams;Object.entries(t).forEach(([t,r])=>{switch(t){case"bounds":(0,o.dD)(r)&&e.set("bbox",r.flat().join());break;case"center":(0,o.ES)(r)&&e.set("center",r.join());break;case"excludedCategories":(0,o.VS)(r)&&e.set("excludeCategories",(0,o.VS)(r));break;default:e.set(t,String(r))}});const r=`${this._poisApi}?${e.toString()}`;return this._request.get(r)}async _changedRes(t){return this._request.get(t).then(t=>{if(t.data?.result?.pois){const e=t.data.result.pois.map(t=>(0,a.A)(t,(t,e)=>c.includes(e)));return{...t,data:{...t.data,result:{...t.data.result,pois:e}}}}return t})}}},5572:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},5579:(t,e,r)=>{"use strict";function n(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}r.d(e,{A:()=>n})},5582:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(2141),i=r(5781);const o=function(t,e){return t&&t.length?(0,i.A)(t,(0,n.A)(e,2)):[]}},5606:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=Object.prototype.toString;const i=function(t){return n.call(t)}},5629:(t,e,r)=>{"use strict";r.d(e,{Hv:()=>w,Ms:()=>v,SN:()=>O});var n=r(7007),i=r(8291),o=r(3236),s=r(8700),a=r(9266),c=r(1965),u=r(5056),l=r(1694),d=r(8021),h=r(1089),f=r(181),p=r(5706),y=r(8389),g=r(3549),m=r(5582),_=r(5664);const b="Indoor_selectedFloorChanged",v="Indoor_selectedBuildingChanged",w="Indoor_mapxusMapLoaded",A="Indoor_maplibreMapLoaded",S="mapxus-venue-fill",E="mapxus-building-line",B="mapxus-level-fill",I="mapxus-shared-level-fill",L="highlight-mapxus_level",x="highlight-mapxus_shared_level";class O extends n.EventEmitter{_map;_features=[];_allVenuesMap=new Map;_allBuildingsMap=new Map;_allSharedLevelsMap=new Map;_curBuildingId=null;_curBuildingFeature=null;_curSharedLevelId=null;_floor={code:null,id:null,ordinal:null};_sharedFloor={id:null,ordinal:null,name:null};_allowOutdoorSwitch;_allowBuildingSwitch;_outdoorMapShown;_originIndoorLayers=[];_outdoorLayers=[];_curVenueId=null;_curVenueFeature=null;_selectedHighlightStyle;_upperLayers=[];_middleLayers=[];_commonLayers=[];_lowerLayers=[];_excludedPoisInMiddle=[];_dispatch=(0,h.A)(b);_fitBuildingBounds;_boundsPadding;_startWithIndoorView;_indoorMapLoaded=!1;_isSelectSharedFloor=!1;_isMaskMode;_upperLevels=new Set;_middleLevels=new Set;_lowerLevels=new Set;_featureIncomplete=!1;_dragPan;_animate;_buildingBounds;_venueBounds;_history=f.d.getInstance();_layerBuildings=p.Q.getInstance();_hiddenBuildings=this._layerBuildings.getHiddenBuildings();_maskBuildings=new Set;_maskSharedFloors=new Set;_enableIndoorClickSelection;_enableOutdoorClickSelection;_isDestroyed=!1;_fetchBuildingTimeoutId=null;_fetchVenueTimeoutId=null;_fitBoundsTimer=null;_abortQueryFeature;_debounceRendering;constructor(t){super();const{map:e,startWithIndoorView:r=!0,outdoorMapShown:n=!0,selectedHighlightStyle:i,fitBuildingBounds:o,boundsPadding:s,maskNonSelectedAreas:a=!1,enableIndoorClickSelection:c,enableOutdoorClickSelection:l}=t;this._map=e,this._allowOutdoorSwitch=!0,this._allowBuildingSwitch=!0,this._startWithIndoorView=r,this._outdoorMapShown=n,this._isMaskMode=a,this._fitBuildingBounds=o,this._boundsPadding=s,this._enableIndoorClickSelection=c,this._enableOutdoorClickSelection=l,this._selectedHighlightStyle=i?Object.assign({},u.sy,i):u.sy,this._hiddenBuildings=new Set,this._bindMaplibreEventListeners()}destroy(){this._isDestroyed||(this._isDestroyed=!0,this._dispatch.on(`.${b}`,null),this.removeAllListeners(v),this.removeAllListeners(A),this.removeAllListeners(w),this._debounceRendering?.cancel(),this._fetchBuildingTimeoutId&&(clearTimeout(this._fetchBuildingTimeoutId),this._fetchBuildingTimeoutId=null),this._fetchVenueTimeoutId&&(clearTimeout(this._fetchVenueTimeoutId),this._fetchVenueTimeoutId=null),this._fitBoundsTimer&&(clearTimeout(this._fitBoundsTimer),this._fitBoundsTimer=null),this._abortQueryFeature&&(this._abortQueryFeature(),this._abortQueryFeature=null))}setAllowOutdoorSwitch(t){return this._allowOutdoorSwitch=t,this}setAllowBuildingSwitch(t){return this._allowBuildingSwitch=t,this}get floor(){return this._isSelectSharedFloor?this._sharedFloor:this._curBuildingId?this._floor:null}get building(){return this._curBuildingFeature}get venue(){return this._curVenueFeature}get features(){return this._features}getFeaturesById(t,e){const{layerIds:r,filter:n}=e||{},i=this._queryRenderedFeatures(r);if(!i.length)return[];const o=n?e=>e.properties.id===t&&n(e):e=>e.properties.id===t;return i.filter(o)}async switchFloorByOrdinal(t){this._updateFloorState(t),this._dispatch.call(b,null,{venue:this.venue,building:this.building,floor:this.floor}),this.venue&&t&&(!0===this._dragPan&&(this._fitBuildingBounds?await this.fitBuildingBbox():await this.panToBuildingCenter()),"restrict"===this._dragPan&&await this._checkAndPanToBuilding(),this._resetSelectedDisplayedLevel()),this.updateRendering()}setOutdoorMapShown(t){this._outdoorMapShown=t,this._setOutdoorVisibility(t)}setSelectedHighlightStyle(t){this._selectedHighlightStyle=Object.assign({},this._selectedHighlightStyle,t??{"line-opacity":0});for(const e of[L,x])if(this._map.getLayer(e))if(t){const{lineColor:t,lineOpacity:r,lineWidth:n,lineOffset:i}=this._selectedHighlightStyle,o=T(n,i);this._map.setPaintProperty(e,"line-color",t),this._map.setPaintProperty(e,"line-opacity",r),this._map.setPaintProperty(e,"line-width",n),this._map.setPaintProperty(e,"line-offset",o)}else this._map.setPaintProperty(e,"line-opacity",0)}onMapChange(t){const e=(0,_.A)(`${b}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}async selectBuilding(t,e){if(this._isSelectingDisabled(Boolean(t))||!this._isNotCurrentFeature(t))return;let r=null;if(t&&t.properties){const{floorId:n,featureIncomplete:i}=e||{};this._isSelectSharedFloor=!1,this._curSharedLevelId=null,this._featureIncomplete=i??this._featureIncomplete;const{id:o,"ref:venue":s}=t.properties;this._curBuildingFeature=t,this._curBuildingId=o,this._history.addVisitedBuildingUnit({id:o,type:"building"}),this._curVenueId!==s&&(this._curVenueId=s,this._curVenueFeature=await this._queryVenueFeature(s)),r=this._getBuildingDisplayedOrdinal(t,n)}else this._clear();await this.switchFloorByOrdinal(r),this.emit(v,t?{building:t,ordinal:r,dragPan:this._dragPan}:null),this._dispatchIndoorMapLoaded()}async selectSharedFloor(t,e,r){if(t.id===this._curSharedLevelId)return;const{id:n,ordinal:i}=t;this._isSelectSharedFloor=!0,this._curBuildingId=null,this._curBuildingFeature=null,this._sharedFloor=t,this._curSharedLevelId=n,this._curVenueFeature=e,this._curVenueId=e.properties.id,this._featureIncomplete=r?.featureIncomplete??this._featureIncomplete,this._history.addVisitedBuildingUnit({id:n,type:"sharedFloor"}),this._history.setOrdinalByBuildingUnit(n,i),this._history.setBuildingUnitByVenue(this._curVenueId,{id:n,type:"sharedFloor"}),this._dragPan&&"restrict"!==this._dragPan&&(this._fitBuildingBounds?await this.fitVenueBbox():await this.panToVenueCenter()),this._dispatch.call(b,null,{venue:this.venue,building:this.building,floor:this.floor}),this.emit(v,{...t,dragPan:this._dragPan}),this._dispatchIndoorMapLoaded(),this._resetSelectedDisplayedLevel(),this.updateRendering()}updateCustomLayers(){const t=this._map.getStyle();this._originIndoorLayers=(0,i.cq)(t),this._outdoorLayers=(0,i.Z3)(t),this._copyOverlapLayers(),this._copySharedFloorBackgroundLayers(),this._addSelectedHighlightLayers(),this._addReserveFloorLayers(),this._isMaskMode&&this._addBuildingMaskLayer(),this._outdoorMapShown||this._setOutdoorVisibility(!1)}updateRendering(){this._updateFeatures(),this._updateSelectedFeatures(),this._layerFloors(),this._calExcludedPoisInMiddle(),this._filterLayers(),this._filterSelectedHighlight(),this._updateUnselectedMask()}async panToBuildingCenter(){const t=this._curBuildingFeature?.properties?.label_center;if(!t)return;const e=(0,s.S)(t).map(t=>parseFloat(t)),r=this._animate?{}:{animate:!1};if(this._map.panTo(e,r),this._featureIncomplete){const t=()=>this.getFeaturesById(this._curBuildingId,{layerIds:[E]})[0];await this._waitForFeatureLoaded(t)}}async fitBuildingBbox(){if(!this._buildingBounds)return;this._fitBoundsTimer&&(clearTimeout(this._fitBoundsTimer),this._fitBoundsTimer=null);const t=this._animate?{animate:!0,duration:500}:{animate:!1},e=this._animate?500:0;return new Promise(r=>{const n=()=>{this._map.off("idle",n),r(!0)};this._map.on("idle",n),this._map.fitBounds(this._buildingBounds,{...t,padding:this._boundsPadding,bearing:this._map.getBearing()}),this._fitBoundsTimer=setTimeout(()=>{this._map.off("idle",n),this._fitBoundsTimer=null,r(!0)},e+200)})}async panToVenueCenter(){const t=this._curVenueFeature?.properties?.label_center;if(!t)return;const e=(0,s.S)(t).map(t=>parseFloat(t)),r=this._animate?{}:{animate:!1};if(this._map.panTo(e,r),this._featureIncomplete){const t=()=>this.getFeaturesById(this._curVenueId,{layerIds:[S]})[0];await this._waitForFeatureLoaded(t)}}async fitVenueBbox(){if(!this._venueBounds)return;this._fitBoundsTimer&&(clearTimeout(this._fitBoundsTimer),this._fitBoundsTimer=null);const t=this._animate?{animate:!0,duration:500}:{animate:!1},e=this._animate?500:0;return new Promise(r=>{const n=()=>{this._map.off("idle",n),r(!0)};this._map.on("idle",n),this._map.fitBounds(this._venueBounds,{...t,padding:this._boundsPadding,bearing:this._map.getBearing()}),this._fitBoundsTimer=setTimeout(()=>{this._map.off("idle",n),this._fitBoundsTimer=null,r(!0)},e+200)})}async _waitForFeatureLoaded(t){const{promise:e,abort:r}=(0,d.y)(()=>this._isDestroyed?(this._abortQueryFeature?.(),!0):!!t());this._abortQueryFeature=r;try{await Promise.race([e,new Promise((t,e)=>{this._abortQueryFeature=()=>{e(new Error("Aborted")),this._abortQueryFeature=null}})])}catch(t){return void console.warn(t)}}setDragPan(t){this._dragPan=t}setAnimate(t){this._animate=t}setBuildingBounds(t){this._buildingBounds=t}setVenueBounds(t){this._venueBounds=t}async queryIndoorFeaturesByClickPoint(t){const e=this._queryVisibleFeature(t);if(!e)return null;const r=async t=>{let e=this._allVenuesMap.get(t);if(!e){const r=await(0,l.qT)(t);e=(0,o.E)(r),this._featureIncomplete=!0}return e??null},n=async t=>{let e=this._allBuildingsMap.get(t);if(!e){const r=await(0,l.pT)(t);e=(0,o.r)(r),this._featureIncomplete=!0}return e??null};if(!F(e.sourceLayer,e.layer.type)){if(P(e.sourceLayer,e.layer.type)){const{id:t,ordinal:n,name:i,"ref:venue":o}=e.properties;return{sharedFloor:{id:t,ordinal:n,name:"string"==typeof i?{default:i}:i},venue:await r(o)}}{const t=e?.properties?.["ref:venue"];return e?{building:e,venue:await r(t)}:null}}{const{id:t,"ref:building":i,name:o,ordinal:s}=e.properties,a=await n(i);if(a){const e=a.properties["ref:venue"];return{venue:await r(e),building:a,floor:{id:t,code:o,ordinal:s}}}}}async selectByClickMap(t){if(this._enableIndoorClickSelection||this._enableOutdoorClickSelection)if(this.setDragPan(!1),this._featureIncomplete=!1,t){if(this._enableIndoorClickSelection)if("building"in t){if(await this.selectBuilding(t.building,{floorId:t?.floor?.id}),this._fitBuildingBounds){const e=t.building;if(!e)return;this._fetchBuildingTimeoutId=setTimeout(()=>this._updateBuildingBounds(e.properties.id))}}else if("sharedFloor"in t&&(await this.selectSharedFloor(t.sharedFloor,t.venue),this._fitBuildingBounds)){const e=t.venue;if(!e)return;this._fetchVenueTimeoutId=setTimeout(()=>this._updateVenueBounds(e.properties.id))}}else this._enableOutdoorClickSelection&&await this.selectBuilding(null)}async _updateBuildingBounds(t){const e=await(0,l.pT)(t),{minLon:r,minLat:n,maxLon:i,maxLat:o}=e.bbox;this.setBuildingBounds([[r,n],[i,o]])}async _updateVenueBounds(t){const e=await(0,l.qT)(t),{minLon:r,minLat:n,maxLon:i,maxLat:o}=e.bbox;this.setVenueBounds([[r,n],[i,o]])}_bindMaplibreEventListeners(){this._map.once("styledata",()=>this.updateCustomLayers()),this._map.once("idle",()=>{this.emit(A),(!this._startWithIndoorView||this._map.getZoom()<14)&&this._dispatchIndoorMapLoaded()}),this._map.on("sourcedata",this._debounceRendering=(0,g.A)(()=>this.updateRendering(),300))}_clear(){this._curBuildingFeature=null,this._curBuildingId=null,this._floor={code:null,id:null,ordinal:null},this._curVenueId=null,this._curVenueFeature=null,this._buildingBounds=null,this._curSharedLevelId=null,this._venueBounds=null}_getIndoorFeatures(){return this._queryRenderedFeatures().filter(t=>(0,i.ld)(t.source))}_getBuildingFloorByOrdinal(t,e){let r=null,n=null;if(t?.properties){const{ordinals:i,level_names:o,level_ids:a}=t.properties,c=(0,s.S)(i).findIndex(t=>t===e);r=(0,s.S)(o)[c]??null,n=(0,s.S)(a)[c]??null}return{code:r,id:n,ordinal:e}}_isNotCurrentFeature(t){return(t?.properties?.id??null)!==this._curBuildingId}_setOutdoorVisibility(t){for(const{id:e}of this._outdoorLayers)this._map.getLayer(e)&&this._map.setLayoutProperty(e,"visibility",t?"visible":"none")}_addReserveFloorLayers(){for(const t of[a.ASSISTANT_LAYER_INDOOR_FLOORS,a.ASSISTANT_LAYER_SHARED_FLOORS]){if(this._map.getLayer(t))continue;const e=t.split("_")[1],r=this._map.getLayer(e);if(!r)continue;const{source:n,sourceLayer:i}=r,o=t===a.ASSISTANT_LAYER_INDOOR_FLOORS?this._middleLayers[0]:this._lowerLayers[0];let s={"fill-opacity":0};if(this._isMaskMode&&t===a.ASSISTANT_LAYER_SHARED_FLOORS){const t=this._originIndoorLayers.find(({id:t})=>t===E);t&&(s=Object.assign({},t.paint??{},s))}this._map.addLayer({id:t,source:n,"source-layer":i,type:"fill",paint:s},o.id)}}_addBuildingMaskLayer(){if(this._map.getLayer(c.Zj))return;const t=this._originIndoorLayers.find(({id:t})=>t===E);if(t){const e=Object.assign({},t,{id:c.Zj,layout:Object.assign({},t.layout??{},{visibility:"visible"}),paint:Object.assign({},t.paint??{},{"fill-opacity":0})});this._map.addLayer(e,E)}}_updateUnselectedMask(){if(!this._isMaskMode)return;const t=[...this._maskBuildings],e=[...this._maskSharedFloors];this._map.getLayer(c.Zj)&&this._map.setPaintProperty(c.Zj,"fill-opacity",["case",["in",["get","id"],["literal",t]],1,0]),this._map.getLayer(a.ASSISTANT_LAYER_SHARED_FLOORS)&&this._map.setPaintProperty(a.ASSISTANT_LAYER_SHARED_FLOORS,"fill-opacity",["case",["in",["get","id"],["literal",e]],1,0])}_addSelectedHighlightLayers(){const t=[{layerId:L,sourceLayer:"mapxus_level"},{layerId:x,sourceLayer:"mapxus_shared_level"}];let e=this._originIndoorLayers.find(({type:t})=>U(t));if(!e){const t=this._originIndoorLayers.findIndex(({id:t})=>t===this._upperLayers[this._upperLayers.length-1].id);e=this._originIndoorLayers[t+1]}for(const{layerId:r,sourceLayer:n}of t){if(this._map.getLayer(r))continue;const{lineWidth:t,lineOpacity:i,lineColor:o,lineOffset:s}=this._selectedHighlightStyle,a=T(t,s);this._map.addLayer({id:r,source:"indoor-planet","source-layer":n,type:"line",filter:["==","id",""],paint:{"line-offset":a,"line-width":t,"line-color":o,"line-opacity":i}},e?.id)}}_filterSelectedHighlight(){for(const t of[L,x])this._map.getLayer(t)&&this._map.setFilter(t,["==","id",this._isSelectSharedFloor?this._curSharedLevelId:this._floor.id??""])}_getBuildingDefaultOrdinal(t){let e=null;if(t?.properties){const{level_ids:r,ordinals:n,default_displayed_floor:i}=t.properties,o=(0,s.S)(n);if(o.length){if(i){e=o[(0,s.S)(r).findIndex(t=>t===i)]??null}e||(e=(0,y.A)(o,t=>Math.abs(Number(t)-.1)))}}return e}_copyOverlapLayers(){const t=this._originIndoorLayers.findIndex(({type:t,"source-layer":e})=>C(e,t)),e=this._originIndoorLayers.findIndex(({type:t,"source-layer":e})=>M(e,t)),r=this._originIndoorLayers.slice(t,e);this._commonLayers=this._originIndoorLayers.slice(0,t).concat(r.filter(({type:t})=>"symbol"===t)).concat(this._originIndoorLayers.slice(e)),this._upperLayers=r.filter(({type:t})=>function(t){return"line"===t||"fill"===t||"fill-extrusion"===t}(t));const n=this._upperLayers[0];this._middleLayers=this._upperLayers.filter(({type:t})=>!U(t)).map(t=>{const e=`${t.id}-overlap-copy`;let r=this._map.getLayer(e);return r||(r=Object.assign({},t,{id:e}),this._map.addLayer(r,n.id)),r})}_copySharedFloorBackgroundLayers(){if(!!!this._upperLayers.find(t=>t.id===a.ASSISTANT_LAYER_SHARED_FLOORS.split("_")[1]))return;const t=this._upperLayers.filter(({"source-layer":t,type:e})=>!F(t,e)&&!U(e)),e=this._commonLayers.filter(({"source-layer":t,type:e})=>M(t,e)),r=this._middleLayers[0]||this._upperLayers[0];this._lowerLayers=[...t,...e].map(t=>{const e=`${t.id}-shared-bg`;let n=this._map.getLayer(e);return n||(n=Object.assign({},t,{id:e}),this._map.addLayer(n,r.id)),n})}_updateFeatures(){this._features=this._getIndoorFeatures();const t=(0,m.A)(this._features,t=>t.layer.id+":"+t.properties.id),e=[],r=[],n=[];for(const i of t){const t=i.layer.id;t===S?e.push(i):t===E?r.push(i):t===a.ASSISTANT_LAYER_SHARED_FLOORS&&n.push(i)}this._allVenuesMap=new Map(e.map(t=>[t.properties.id,t])),this._allBuildingsMap=new Map(r.map(t=>[t.properties.id,t])),this._allSharedLevelsMap=new Map(n.map(t=>[t.properties.id,t]))}_calExcludedPoisInMiddle(){const t=this._map.querySourceFeatures("indoor-planet",{sourceLayer:"mapxus_place"}),e=t=>{if(!t)return!1;return(0,s.S)(t).some(t=>this._upperLevels.has(t))},r=t.filter(t=>{const r=t.properties["ref:level"]||t.properties["ref:shared_level"];return!!this._middleLevels.has(r)&&e(t.properties.overlap)});this._excludedPoisInMiddle=r.map(t=>t.properties["osm:ref"])}_updateSelectedFeatures(){if(this._featureIncomplete){if(this._isSelectSharedFloor){const t=this._features.find(t=>t.properties.id===this._curVenueId);if(!t)return;this._curVenueFeature=t}else{const t=this._allBuildingsMap.get(this._curBuildingId);if(!t)return;this._curBuildingFeature=t}this._featureIncomplete=!1}}_layerFloors(){this._upperLevels.clear(),this._middleLevels.clear(),this._lowerLevels.clear(),this._hiddenBuildings.clear();const{displayedLevels:t,selectedLevelIds:e,alwaysDisplayedSharedLevelIds:r,hiddenBuildingIds:n,maskBuildingIds:i,maskSharedFloorIds:o}=this._classifyFloors();this._isMaskMode&&(this._maskBuildings.clear(),i.forEach(t=>this._maskBuildings.add(t)),this._maskSharedFloors.clear(),o.forEach(t=>this._maskSharedFloors.add(t))),this._layerSelectedLevels(t,e,r),this._layerUnselectedLevels(t,e,r),n.forEach(t=>this._hiddenBuildings.add(t))}_layerSelectedLevels(t,e,r){for(const n of e){this._upperLevels.has(n)||(this._middleLevels.delete(n),this._lowerLevels.delete(n),this._upperLevels.add(n));const e=t.find(({level:t,overlap:e})=>t===n&&!!e);if(e)for(const t of e.overlap)this._upperLevels.has(t)&&(this._upperLevels.delete(t),r.includes(t)?this._lowerLevels.add(t):this._middleLevels.add(t))}}_layerUnselectedLevels(t,e,r){for(const n of t){if(e.includes(n.level))continue;const{level:t,overlap:i}=n,o=!i||!i.some(t=>this._upperLevels.has(t)),s=r.includes(t);o?s?this._lowerLevels.add(t):this._upperLevels.add(t):s?this._lowerLevels.add(t):this._middleLevels.add(t)}}_classifyFloors(){const t=[],e=[],r=[],n=[],i=[],o=[],a=[...this._allVenuesMap.values()],c=this._curVenueId?[this._allVenuesMap.get(this._curVenueId),...a.filter(t=>t.properties.id!==this._curVenueId)]:a;for(const a of c){if(!a||!a.properties)continue;const{id:c,overlap:u,building_ids:l,shared_level_ids:d,default_displayed_ordinal:h,default_displayed_building:f}=a.properties,p=c===this._curVenueId,y=H(u),g=(0,s.S)(l),m=this._history.getBuildingUnitByVenue(c);let _=m?this._history.getOrdinalByBuildingUnit(m.id):h;_?m||(this._history.setOrdinalByBuildingUnit(f,_),this._history.setBuildingUnitByVenue(c,{id:f,type:"building"})):_=this._calcVenueInitOrdinal(c,g),_&&(g.forEach(r=>{const o=this._allBuildingsMap.get(r),s=this._getBuildingDisplayedLevel(o,_);s?this._isMaskMode?p?(e.push(s),t.push({level:s,overlap:y.get(s)??null})):i.push(r):(t.push({level:s,overlap:y.get(s)??null}),p&&e.push(s)):n.push(r)}),(0,s.S)(d).forEach(i=>{const s=this._allSharedLevelsMap.get(i),{ordinal:a,persistence:c=!1}=s?.properties||{},u=Boolean(c)&&0<=a&&a<=_,l=a===_,d=u||l,h={level:i,overlap:y.get(i)??null};d?this._isMaskMode?p?(t.push(h),u&&r.push(i),l&&e.push(i)):o.push(i):(t.push(h),p&&l&&e.push(i),u&&r.push(i)):n.push(i)}))}return{displayedLevels:t,hiddenBuildingIds:n,maskBuildingIds:i,maskSharedFloorIds:o,alwaysDisplayedSharedLevelIds:r,selectedLevelIds:e}}_calcVenueInitOrdinal(t,e){const r=e.find(t=>this._allBuildingsMap.has(t)),n=r?this._allBuildingsMap.get(r):null,i=n?this._getBuildingDefaultOrdinal(n):null;return i&&(this._history.setOrdinalByBuildingUnit(r,i),this._history.setBuildingUnitByVenue(t,{id:r,type:"building"})),i}_getBuildingDisplayedLevel(t,e){if(!t||!t.properties)return null;const{level_ids:r,ordinals:n}=t.properties,i=(0,s.S)(n).findIndex(t=>t===e);return(0,s.S)(r)[i]??null}_filterLayers(){this._filterIndoorLayers([...this._upperLevels,...this._middleLevels],this._commonLayers),this._filterIndoorLayers([...this._upperLevels],this._upperLayers),this._filterIndoorLayers([...this._middleLevels],this._middleLayers),this._filterIndoorLayers([...this._lowerLevels],this._lowerLayers)}_filterIndoorLayers(t,e){let r;for(const n of e){const{id:e,filter:i,type:o,"source-layer":s}=n,a=Boolean(i)?[i]:[],c=e.includes("-shared-bg"),u=[...this._maskBuildings],l=[...this._maskSharedFloors];k(s,o)||R(s,o)||(C(s,o)?r=["all",F(s,o)?["!in","ref:building",...u]:["!in","id",...l],["in","id",...t],...a]:c?r=["all",["!in","ref:shared_level",...l],["in","ref:shared_level",...t],...a]:(r=["all",["any",["all",["!in","ref:building",...u],["in","ref:level",...t]],["all",["!in","ref:shared_level",...l],["in","ref:shared_level",...t]]],...a],M(s,o)&&r.splice(1,0,["any",["!has","overlap"],["any",["in","ref:level",...this._upperLevels],["in","ref:shared_level",...this._upperLevels],["!in","osm:ref",...this._excludedPoisInMiddle]]])),this._map.setFilter(e,r))}}async _queryVenueFeature(t){let e=this.getFeaturesById(t,{layerIds:[S]})[0]??null;if(!e)try{const r=await(0,l.qT)(t);e=(0,o.E)(r)}catch(t){console.error(t)}return e}_getBuildingDisplayedOrdinal(t,e){const{"ref:venue":r,level_ids:n,ordinals:i}=t.properties,o=(0,s.S)(n),a=(0,s.S)(i);if(e){return a[o.findIndex(t=>t===e)]??null}const c=this._history.getBuildingUnitByVenue(r);let u=null;if(c){const t=this._history.getOrdinalByBuildingUnit(c.id);t&&a.includes(t)&&(u=t)}return u||(u=this._getBuildingDefaultOrdinal(t)),u}_updateFloorState(t){if(!t)return void(this._floor={code:null,id:null,ordinal:null});const{code:e,id:r}=this._getBuildingFloorByOrdinal(this._curBuildingFeature,t);e&&r||console.error(`Floor with ordinal "${t}" not found in building "${this._curBuildingId}".`),this._floor={code:e,id:r,ordinal:t},this._history.setOrdinalByBuildingUnit(this._curBuildingId,t),this._history.setBuildingUnitByVenue(this._curVenueId,{id:this._curBuildingId,type:"building"})}_resetSelectedDisplayedLevel(){const{building_ids:t,shared_level_ids:e}=this._curVenueFeature.properties,r=(0,s.S)(t),n=(0,s.S)(e);for(const t of r){const e=this._allBuildingsMap.get(t);if(!e)continue;const r=(0,s.S)(e.properties.level_ids);n.push(...r),this._hiddenBuildings.delete(t),this._isMaskMode&&this._maskBuildings.delete(t)}for(const t of n)this._upperLevels.delete(t),this._middleLevels.delete(t),this._lowerLevels.delete(t),this._isMaskMode&&this._maskSharedFloors.delete(t)}async _checkAndPanToBuilding(){this.getFeaturesById(this._curBuildingId,{layerIds:[E]})[0]||(this._fitBuildingBounds?this.fitBuildingBbox():await this.panToBuildingCenter())}_queryVisibleFeature(t){const e=[B,I,`${B}-overlap-copy`,`${I}-overlap-copy`,`${I}-shared-bg`,...this._isMaskMode?[a.ASSISTANT_LAYER_SHARED_FLOORS,c.Zj]:[]].filter(t=>!!this._map.getLayer(t)),r=this._map.queryRenderedFeatures(t,{layers:e});let n=null;for(const t of e){const e=r.find(e=>e.layer.id===t);if(e){n=e;break}}return n&&R(n.sourceLayer,n.layer.type)&&(this._maskBuildings.has(n.properties.id)||(n=null)),n}_queryRenderedFeatures(t){const e=(t||[]).filter(t=>this._map.getLayer(t));if(t&&t.length>0&&0===e.length)return[];const r=e.length?{layers:e}:{},n=this._map.getCanvas().getBoundingClientRect();return this._map.queryRenderedFeatures([[0,0],[n.width,n.height]],r)}_dispatchIndoorMapLoaded(){this._indoorMapLoaded||(this._indoorMapLoaded=!0,this.emit(w))}_isSelectingDisabled(t){return!this._allowBuildingSwitch&&t||!this._allowOutdoorSwitch&&!t}}function T(t,e){const r="number"==typeof t&&t===u.sy.lineWidth,n="number"==typeof e&&e===u.sy.lineOffset;return n?r&&n?["interpolate",["linear"],["zoom"],18,-1.5,20.2,-3.75,20.4,-3.8,21.5,-7.5,22,-9.55]:!r&&n?"number"==typeof t?-t/2:e:void 0:e}function k(t,e){return"mapxus_venue"===t&&"fill"===e}function R(t,e){return"mapxus_building"===t&&("fill"===e||"line"===e||"symbol"===e)}function C(t,e){return F(t,e)||P(t,e)}function F(t,e){return"mapxus_level"===t&&("fill"===e||"line"===e)}function P(t,e){return"mapxus_shared_level"===t&&("fill"===e||"line"===e)}function M(t,e){return"mapxus_place"===t&&"symbol"===e}function U(t){return"fill-extrusion"===t}function H(t){const e=new Map;if(!t)return e;for(const r of(0,s.S)(t,"/")){const[t,n]=(0,s.S)(r,":");e.set(t,(0,s.S)(n))}return e}},5647:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=(0,r(367).A)(Object.getPrototypeOf,Object)},5664:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(8182),i=0;const o=function(t){var e=++i;return(0,n.A)(t)+e}},5668:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},5706:(t,e,r)=>{"use strict";r.d(e,{Q:()=>n});class n{static instance;_hiddenBuildings;constructor(){this._hiddenBuildings=new Set}static getInstance(){return n.instance||(n.instance=new n),n.instance}getHiddenBuildings(){return this._hiddenBuildings}}},5707:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},5722:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(608),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;const s=(0,n.A)(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e})},5781:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(1275),i=r(5530),o=r(7809),s=r(4099),a=r(9109),c=r(9959);const u=function(t,e,r){var u=-1,l=i.A,d=t.length,h=!0,f=[],p=f;if(r)h=!1,l=o.A;else if(d>=200){var y=e?null:(0,a.A)(t);if(y)return(0,c.A)(y);h=!1,l=s.A,p=new n.A}else p=e?[]:f;t:for(;++u<d;){var g=t[u],m=e?e(g):g;if(g=r||0!==g?g:0,h&&m==m){for(var _=p.length;_--;)if(p[_]===m)continue t;e&&p.push(m),f.push(g)}else l(p,m,r)||(p!==f&&p.push(m),f.push(g))}return f}},5861:(t,e,r)=>{"use strict";r.d(e,{A:()=>w});var n=r(2732),i=r(8335),o=r(180),s=r(9857),a=r(3631),c=r(9672),u=r(1121),l="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",y=(0,u.A)(n.A),g=(0,u.A)(i.A),m=(0,u.A)(o.A),_=(0,u.A)(s.A),b=(0,u.A)(a.A),v=c.A;(n.A&&v(new n.A(new ArrayBuffer(1)))!=p||i.A&&v(new i.A)!=l||o.A&&v(o.A.resolve())!=d||s.A&&v(new s.A)!=h||a.A&&v(new a.A)!=f)&&(v=function(t){var e=(0,c.A)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,u.A)(r):"";if(n)switch(n){case y:return p;case g:return l;case m:return d;case _:return h;case b:return f}return e});const w=v},5917:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(5088),i=r(9846),o=r(1521),s=r(2509),a=r(549);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const u=c},5978:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=r(7275),i=r(3967),o=r(7352),s=r(8683),a=r(4662),c=r(8262),u=r(3390),l=r(7110);const d=u.A.validators;class h{constructor(t){this.defaults=t||{},this.interceptors={request:new o.A,response:new o.A}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=(0,a.A)(this.defaults,e);const{transitional:r,paramsSerializer:i,headers:o}=e;void 0!==r&&u.A.assertOptions(r,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1),null!=i&&(n.A.isFunction(i)?e.paramsSerializer={serialize:i}:u.A.assertOptions(i,{encode:d.function,serialize:d.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),u.A.assertOptions(e,{baseUrl:d.spelling("baseURL"),withXsrfToken:d.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let c=o&&n.A.merge(o.common,o[e.method]);o&&n.A.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=l.A.concat(c,o);const h=[];let f=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(f=f&&t.synchronous,h.unshift(t.fulfilled,t.rejected))});const p=[];let y;this.interceptors.response.forEach(function(t){p.push(t.fulfilled,t.rejected)});let g,m=0;if(!f){const t=[s.A.bind(this),void 0];for(t.unshift.apply(t,h),t.push.apply(t,p),g=t.length,y=Promise.resolve(e);m<g;)y=y.then(t[m++],t[m++]);return y}g=h.length;let _=e;for(m=0;m<g;){const t=h[m++],e=h[m++];try{_=t(_)}catch(t){e.call(this,t);break}}try{y=s.A.call(this,_)}catch(t){return Promise.reject(t)}for(m=0,g=p.length;m<g;)y=y.then(p[m++],p[m++]);return y}getUri(t){t=(0,a.A)(this.defaults,t);const e=(0,c.A)(t.baseURL,t.url,t.allowAbsoluteUrls);return(0,i.A)(e,t.params,t.paramsSerializer)}}n.A.forEach(["delete","get","head","options"],function(t){h.prototype[t]=function(e,r){return this.request((0,a.A)(r||{},{method:t,url:e,data:(r||{}).data}))}}),n.A.forEach(["post","put","patch"],function(t){function e(e){return function(r,n,i){return this.request((0,a.A)(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}h.prototype[t]=e(),h.prototype[t+"Form"]=e(!0)});const f=h},5997:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},6013:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(7275),i=r(4062),o=r(807),s=r(665),a=r(1076),c=r(3820),u=r(7887);const l={transitional:o.A,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",i=r.indexOf("application/json")>-1,o=n.A.isObject(t);o&&n.A.isHTMLForm(t)&&(t=new FormData(t));if(n.A.isFormData(t))return i?JSON.stringify((0,u.A)(t)):t;if(n.A.isArrayBuffer(t)||n.A.isBuffer(t)||n.A.isStream(t)||n.A.isFile(t)||n.A.isBlob(t)||n.A.isReadableStream(t))return t;if(n.A.isArrayBufferView(t))return t.buffer;if(n.A.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return(0,a.A)(t,this.formSerializer).toString();if((c=n.A.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return(0,s.A)(c?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||i?(e.setContentType("application/json",!1),function(t,e,r){if(n.A.isString(t))try{return(e||JSON.parse)(t),n.A.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||l.transitional,r=e&&e.forcedJSONParsing,o="json"===this.responseType;if(n.A.isResponse(t)||n.A.isReadableStream(t))return t;if(t&&n.A.isString(t)&&(r&&!this.responseType||o)){const r=!(e&&e.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw i.A.from(t,i.A.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:c.A.classes.FormData,Blob:c.A.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};n.A.forEach(["delete","get","head","post","put","patch"],t=>{l.headers[t]={}});const d=l},6031:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}},6034:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(2141),i=r(8672),o=r(1470);const s=function(t,e){return(0,o.A)(t,(0,i.A)((0,n.A)(e)))}},6224:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return t<e}},6242:(t,e,r)=>{"use strict";r.d(e,{k:()=>a});var n=r(7007),i=r(5537),o=r(3574),s=r(3207);class a extends n.EventEmitter{_appId=null;_secret=null;isClosed=!1;_timeoutId;_isInitialized=!1;_initializationPromise;_tokenManager=s.t.getInstance();_from;constructor(t,e,r=o.en.Access){super(),this._from=r,this._appId=t,this._secret=e,this._initializationPromise=this._initToken()}async ready(){await this._initializationPromise}get appId(){return this._appId}get token(){if(!this._isInitialized)throw new Error("Token is not initialized yet. Use the 'ready' method to wait for initialization.");return this._tokenManager.getToken(this._appId)}close(){this.isClosed||(this._timeoutId&&clearTimeout(this._timeoutId),this._tokenManager.deleteToken(this._appId,this._from),this.emit("updated",{appId:this._appId,token:null}),Object.keys(this).forEach(t=>{"isClosed"!==t&&"_events"!==t&&delete this[t]}),this.isClosed=!0,this.emit("closed"),delete this._events,Object.freeze(this))}forceUpdateToken(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null),this._isInitialized=!1,this._initializationPromise=this._initToken()}async _initToken(){try{const t=await this._tokenManager.fetchToken(this._appId,this._secret);this._isInitialized=!0,this._tokenManager.updateToken({appId:this._appId,secret:this._secret,token:t,from:this._from});const e=(0,i.s)(t),r=1e3*(e.exp-e.iat-60);this._loopUpdateToken(r)}catch(t){throw this.emit("error",new Error("Failed to initialize token.",{cause:t})),t}}_loopUpdateToken(t){this.isClosed||(this._timeoutId=setTimeout(async()=>{try{const e=await this._tokenManager.fetchToken(this._appId,this._secret);this._tokenManager.updateToken({appId:this._appId,secret:this._secret,token:e,from:this._from}),this.emit("updated",{appId:this._appId,token:e}),this._loopUpdateToken(t)}catch(t){this.emit("error",new Error("Failed to update token.",{cause:t}))}},t))}}},6263:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(7275),i=r(3119),o=r(7013),s=r(7960),a=r(4062);const c={http:i.A,xhr:o.A,fetch:s.A};n.A.forEach(c,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const u=t=>`- ${t}`,l=t=>n.A.isFunction(t)||null===t||!1===t,d={getAdapter:t=>{t=n.A.isArray(t)?t:[t];const{length:e}=t;let r,i;const o={};for(let n=0;n<e;n++){let e;if(r=t[n],i=r,!l(r)&&(i=c[(e=String(r)).toLowerCase()],void 0===i))throw new a.A(`Unknown adapter '${e}'`);if(i)break;o[e||"#"+n]=i}if(!i){const t=Object.entries(o).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let r=e?t.length>1?"since :\n"+t.map(u).join("\n"):" "+u(t[0]):"as no adapter specified";throw new a.A("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:c}},6294:(t,e,r)=>{"use strict";r.d(e,{B:()=>n});class n{_indoor;_isEnabled=!0;constructor(t){this._indoor=t}enable(){this._isEnabled=!0,this._indoor.setAllowOutdoorSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowOutdoorSwitch(!1)}get isEnabled(){return this._isEnabled}}},6305:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(3820);const i=n.A.hasStandardBrowserEnv?(o=new URL(n.A.origin),s=n.A.navigator&&/(msie|trident)/i.test(n.A.navigator.userAgent),t=>(t=new URL(t,n.A.origin),o.protocol===t.protocol&&o.host===t.host&&(s||o.port===t.port))):()=>!0;var o,s},6318:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(7465),i=r(901);const o=function(t,e){for(var r=0,o=(e=(0,n.A)(e,t)).length;null!=t&&r<o;)t=t[(0,i.A)(e[r++])];return r&&r==o?t:void 0}},6358:(t,e,r)=>{"use strict";var n,i,o,s;r.d(e,{Kp:()=>n,LJ:()=>o,_P:()=>i,nH:()=>s}),function(t){t.POINT="Point",t.POLYGON="Polygon"}(n||(n={})),function(t){t.POINT="Point",t.POLYGON="Polygon",t.GATE="Gate"}(i||(i={})),function(t){t.DEFAULT_NAME="DefaultName"}(o||(o={})),function(t){t.ABSOLUTE_DISTANCE="AbsoluteDistance",t.ACTUAL_DISTANCE="ActualDistance"}(s||(s={}))},6377:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrimeEdwardsPoint=void 0,e.edwards=l,e.eddsa=d,e.twistedEdwards=function(t){const{CURVE:e,curveOpts:r,hash:n,eddsaOpts:i}=function(t){const e={a:t.a,d:t.d,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp,n=(0,o.Field)(e.n,t.nBitLength,!0),i={Fp:r,Fn:n,uvRatio:t.uvRatio},s={randomBytes:t.randomBytes,adjustScalarBytes:t.adjustScalarBytes,domain:t.domain,prehash:t.prehash,mapToCurve:t.mapToCurve};return{CURVE:e,curveOpts:i,hash:t.hash,eddsaOpts:s}}(t),s=d(l(e,r),n,i);return function(t,e){const r=Object.assign({},e,{ExtendedPoint:e.Point,CURVE:t});return r}(t,s)};const n=r(8627),i=r(2422),o=r(4967),s=BigInt(0),a=BigInt(1),c=BigInt(2),u=BigInt(8);function l(t,e={}){const{Fp:r,Fn:o}=(0,i._createCurveFields)("edwards",t,e),{h:l,n:d}=t;(0,n._validateObject)(e,{},{uvRatio:"function"});const h=c<<BigInt(8*o.BYTES)-a,f=t=>r.create(t),p=e.uvRatio||((t,e)=>{try{return{isValid:!0,value:r.sqrt(r.div(t,e))}}catch(t){return{isValid:!1,value:s}}});if(!function(t,e,r,n){const i=t.sqr(r),o=t.sqr(n),s=t.add(t.mul(e.a,i),o),a=t.add(t.ONE,t.mul(e.d,t.mul(i,o)));return t.eql(s,a)}(r,t,t.Gx,t.Gy))throw new Error("bad curve params: generator point");function y(t,e,r=!1){const i=r?a:s;return(0,n.aInRange)("coordinate "+t,e,i,h),e}function g(t){if(!(t instanceof b))throw new Error("ExtendedPoint expected")}const m=(0,n.memoized)((t,e)=>{const{X:n,Y:i,Z:o}=t,c=t.is0();null==e&&(e=c?u:r.inv(o));const l=f(n*e),d=f(i*e),h=r.mul(o,e);if(c)return{x:s,y:a};if(h!==a)throw new Error("invZ was invalid");return{x:l,y:d}}),_=(0,n.memoized)(e=>{const{a:r,d:n}=t;if(e.is0())throw new Error("bad point: ZERO");const{X:i,Y:o,Z:s,T:a}=e,c=f(i*i),u=f(o*o),l=f(s*s),d=f(l*l),h=f(c*r);if(f(l*f(h+u))!==f(d+f(n*f(c*u))))throw new Error("bad point: equation left != right (1)");if(f(i*o)!==f(s*a))throw new Error("bad point: equation left != right (2)");return!0});class b{constructor(t,e,r,n){this.X=y("x",t),this.Y=y("y",e),this.Z=y("z",r,!0),this.T=y("t",n),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(t){return(0,i.normalizeZ)(b,t)}static msm(t,e){return(0,i.pippenger)(b,o,t,e)}_setWindowSize(t){this.precompute(t)}static fromAffine(t){if(t instanceof b)throw new Error("extended point not allowed");const{x:e,y:r}=t||{};return y("x",e),y("y",r),new b(e,r,a,f(e*r))}precompute(t=8,e=!0){return v.createCache(this,t),e||this.multiply(c),this}assertValidity(){_(this)}equals(t){g(t);const{X:e,Y:r,Z:n}=this,{X:i,Y:o,Z:s}=t,a=f(e*s),c=f(i*n),u=f(r*s),l=f(o*n);return a===c&&u===l}is0(){return this.equals(b.ZERO)}negate(){return new b(f(-this.X),this.Y,this.Z,f(-this.T))}double(){const{a:e}=t,{X:r,Y:n,Z:i}=this,o=f(r*r),s=f(n*n),a=f(c*f(i*i)),u=f(e*o),l=r+n,d=f(f(l*l)-o-s),h=u+s,p=h-a,y=u-s,g=f(d*p),m=f(h*y),_=f(d*y),v=f(p*h);return new b(g,m,v,_)}add(e){g(e);const{a:r,d:n}=t,{X:i,Y:o,Z:s,T:a}=this,{X:c,Y:u,Z:l,T:d}=e,h=f(i*c),p=f(o*u),y=f(a*n*d),m=f(s*l),_=f((i+o)*(c+u)-h-p),v=m-y,w=m+y,A=f(p-r*h),S=f(_*v),E=f(w*A),B=f(_*A),I=f(v*w);return new b(S,E,I,B)}subtract(t){return this.add(t.negate())}multiply(t){const e=t;(0,n.aInRange)("scalar",e,a,d);const{p:r,f:o}=v.cached(this,e,t=>(0,i.normalizeZ)(b,t));return(0,i.normalizeZ)(b,[r,o])[0]}multiplyUnsafe(t,e=b.ZERO){const r=t;return(0,n.aInRange)("scalar",r,s,d),r===s?b.ZERO:this.is0()||r===a?this:v.unsafe(this,r,t=>(0,i.normalizeZ)(b,t),e)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return v.unsafe(this,d).is0()}toAffine(t){return m(this,t)}clearCofactor(){return l===a?this:this.multiplyUnsafe(l)}static fromBytes(t,e=!1){return(0,n.abytes)(t),b.fromHex(t,e)}static fromHex(e,i=!1){const{d:o,a:c}=t,u=r.BYTES;e=(0,n.ensureBytes)("pointHex",e,u),(0,n.abool)("zip215",i);const l=e.slice(),d=e[u-1];l[u-1]=-129&d;const y=(0,n.bytesToNumberLE)(l),g=i?h:r.ORDER;(0,n.aInRange)("pointHex.y",y,s,g);const m=f(y*y),_=f(m-a),v=f(o*m-c);let{isValid:w,value:A}=p(_,v);if(!w)throw new Error("Point.fromHex: invalid y coordinate");const S=(A&a)===a,E=!!(128&d);if(!i&&A===s&&E)throw new Error("Point.fromHex: x=0 and x_0=1");return E!==S&&(A=f(-A)),b.fromAffine({x:A,y})}toBytes(){const{x:t,y:e}=this.toAffine(),i=(0,n.numberToBytesLE)(e,r.BYTES);return i[i.length-1]|=t&a?128:0,i}toRawBytes(){return this.toBytes()}toHex(){return(0,n.bytesToHex)(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}b.BASE=new b(t.Gx,t.Gy,a,f(t.Gx*t.Gy)),b.ZERO=new b(s,a,a,s),b.Fp=r,b.Fn=o;const v=new i.wNAF(b,8*o.BYTES);return b}function d(t,e,r){if("function"!=typeof e)throw new Error('"hash" function param is required');(0,n._validateObject)(r,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:i}=r,{BASE:o,Fp:c,Fn:u}=t,l=u.ORDER,d=r.randomBytes||n.randomBytes,h=r.adjustScalarBytes||(t=>t),f=r.domain||((t,e,r)=>{if((0,n.abool)("phflag",r),e.length||r)throw new Error("Contexts/pre-hash are not supported");return t});function p(t){return u.create(t)}function y(t){return p((0,n.bytesToNumberLE)(t))}function g(t){const{head:r,prefix:i,scalar:s}=function(t){const r=c.BYTES;t=(0,n.ensureBytes)("private key",t,r);const i=(0,n.ensureBytes)("hashed private key",e(t),2*r),o=h(i.slice(0,r));return{head:o,prefix:i.slice(r,2*r),scalar:y(o)}}(t),a=o.multiply(s),u=a.toBytes();return{head:r,prefix:i,scalar:s,point:a,pointBytes:u}}function m(t){return g(t).pointBytes}function _(t=Uint8Array.of(),...r){const o=(0,n.concatBytes)(...r);return y(e(f(o,(0,n.ensureBytes)("context",t),!!i)))}const b={zip215:!0};o.precompute(8);const v=c.BYTES,w={secret:v,public:v,signature:2*v,seed:v};function A(t=d(w.seed)){return t}const S={getExtendedPublicKey:g,randomSecretKey:A,isValidSecretKey:function(t){try{return!!u.fromBytes(t,!1)}catch(t){return!1}},isValidPublicKey:function(e,r){try{return!!t.fromBytes(e,r)}catch(t){return!1}},randomPrivateKey:A,toMontgomery(e){const{y:r}=t.fromBytes(e),n=32===v;if(!n&&57!==v)throw new Error("only defined for 25519 and 448");const i=n?c.div(a+r,a-r):c.div(r-a,r+a);return c.toBytes(i)},toMontgomeryPriv(t){(0,n.abytes)(t,v);const r=e(t.subarray(0,v));return h(r).subarray(0,v)},precompute:(e=8,r=t.BASE)=>r.precompute(e,!1)};return Object.freeze({keygen:function(t){const e=S.randomSecretKey(t);return{secretKey:e,publicKey:m(e)}},getPublicKey:m,sign:function(t,e,r={}){t=(0,n.ensureBytes)("message",t),i&&(t=i(t));const{prefix:a,scalar:u,pointBytes:d}=g(e),h=_(r.context,a,t),f=o.multiply(h).toBytes(),y=p(h+_(r.context,f,d,t)*u);(0,n.aInRange)("signature.s",y,s,l);const m=c.BYTES,b=(0,n.concatBytes)(f,(0,n.numberToBytesLE)(y,m));return(0,n.ensureBytes)("result",b,2*m)},verify:function(e,r,s,a=b){const{context:u,zip215:l}=a,d=c.BYTES;e=(0,n.ensureBytes)("signature",e,2*d),r=(0,n.ensureBytes)("message",r),s=(0,n.ensureBytes)("publicKey",s,d),void 0!==l&&(0,n.abool)("zip215",l),i&&(r=i(r));const h=(0,n.bytesToNumberLE)(e.slice(d,2*d));let f,p,y;try{f=t.fromHex(s,l),p=t.fromHex(e.slice(0,d),l),y=o.multiplyUnsafe(h)}catch(t){return!1}if(!l&&f.isSmallOrder())return!1;const g=_(u,p.toBytes(),f.toBytes(),r);return p.add(f.multiplyUnsafe(g)).subtract(y).clearCofactor().is0()},utils:S,Point:t,info:{type:"edwards",lengths:w}})}e.PrimeEdwardsPoint=class{constructor(t){this.ep=t}static fromBytes(t){throw new Error("fromBytes must be implemented by subclass")}static fromHex(t){throw new Error("fromHex must be implemented by subclass")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}clearCofactor(){return this}assertValidity(){this.ep.assertValidity()}toAffine(t){return this.ep.toAffine(t)}toRawBytes(){return this.toBytes()}toHex(){return(0,n.bytesToHex)(this.toBytes())}toString(){return this.toHex()}isTorsionFree(){return!0}isSmallOrder(){return!1}add(t){return this.assertSame(t),this.init(this.ep.add(t.ep))}subtract(t){return this.assertSame(t),this.init(this.ep.subtract(t.ep))}multiply(t){return this.init(this.ep.multiply(t))}multiplyUnsafe(t){return this.init(this.ep.multiplyUnsafe(t))}double(){return this.init(this.ep.double())}negate(){return this.init(this.ep.negate())}precompute(t,e){return this.init(this.ep.precompute(t,e))}}},6474:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(1038),i=r(7500),o=r(7511),s=r(6586),a=r(9396),c=r(5997),u=r(901);const l=function(t,e){return(0,s.A)(t)&&(0,a.A)(e)?(0,c.A)((0,u.A)(t),e):function(r){var s=(0,i.A)(r,t);return void 0===s&&s===e?(0,o.A)(r,t):(0,n.A)(e,s,3)}}},6501:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n="undefined"!=typeof Blob?Blob:null},6527:(t,e)=>{"use strict";function r(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function n(t){if("boolean"!=typeof t)throw new Error(`boolean expected, not ${t}`)}function i(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function o(t,...e){if(!r(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function s(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}Object.defineProperty(e,"__esModule",{value:!0}),e.wrapCipher=e.Hash=e.nextTick=e.isLE=void 0,e.isBytes=r,e.abool=n,e.anumber=i,e.abytes=o,e.ahash=function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");i(t.outputLen),i(t.blockLen)},e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){o(t);const r=e.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)},e.u8=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},e.u32=function(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))},e.clean=function(...t){for(let e=0;e<t.length;e++)t[e].fill(0)},e.createView=s,e.bytesToHex=u,e.hexToBytes=h,e.hexToNumber=f,e.bytesToNumberBE=function(t){return f(u(t))},e.numberToBytesBE=function(t,e){return h(t.toString(16).padStart(2*e,"0"))},e.utf8ToBytes=p,e.bytesToUtf8=function(t){return(new TextDecoder).decode(t)},e.toBytes=function(t){if("string"==typeof t)t=p(t);else{if(!r(t))throw new Error("Uint8Array expected, got "+typeof t);t=_(t)}return t},e.overlapBytes=y,e.complexOverlapBytes=function(t,e){if(y(t,e)&&t.byteOffset<e.byteOffset)throw new Error("complex overlap of input and output is not supported")},e.concatBytes=function(...t){let e=0;for(let r=0;r<t.length;r++){const n=t[r];o(n),e+=n.length}const r=new Uint8Array(e);for(let e=0,n=0;e<t.length;e++){const i=t[e];r.set(i,n),n+=i.length}return r},e.checkOpts=function(t,e){if(null==e||"object"!=typeof e)throw new Error("options must be defined");return Object.assign(t,e)},e.equalBytes=function(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return 0===r},e.getOutput=function(t,e,r=!0){if(void 0===e)return new Uint8Array(t);if(e.length!==t)throw new Error("invalid output length, expected "+t+", got: "+e.length);if(r&&!m(e))throw new Error("invalid output, must be aligned");return e},e.setBigUint64=g,e.u64Lengths=function(t,e,r){n(r);const i=new Uint8Array(16),o=s(i);return g(o,0,BigInt(e),r),g(o,8,BigInt(t),r),i},e.isAligned32=m,e.copyBytes=_,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];const a=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),c=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function u(t){if(o(t),a)return t.toHex();let e="";for(let r=0;r<t.length;r++)e+=c[t[r]];return e}const l={_0:48,_9:57,A:65,F:70,a:97,f:102};function d(t){return t>=l._0&&t<=l._9?t-l._0:t>=l.A&&t<=l.F?t-(l.A-10):t>=l.a&&t<=l.f?t-(l.a-10):void 0}function h(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(a)return Uint8Array.fromHex(t);const e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const n=new Uint8Array(r);for(let e=0,i=0;e<r;e++,i+=2){const r=d(t.charCodeAt(i)),o=d(t.charCodeAt(i+1));if(void 0===r||void 0===o){const e=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+i)}n[e]=16*r+o}return n}function f(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return BigInt(""===t?"0":"0x"+t)}function p(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function y(t,e){return t.buffer===e.buffer&&t.byteOffset<e.byteOffset+e.byteLength&&e.byteOffset<t.byteOffset+t.byteLength}e.nextTick=async()=>{};e.Hash=class{};function g(t,e,r,n){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,r,n);const i=BigInt(32),o=BigInt(4294967295),s=Number(r>>i&o),a=Number(r&o),c=n?4:0,u=n?0:4;t.setUint32(e+c,s,n),t.setUint32(e+u,a,n)}function m(t){return t.byteOffset%4==0}function _(t){return Uint8Array.from(t)}e.wrapCipher=(t,r)=>{function n(n,...i){if(o(n),!e.isLE)throw new Error("Non little-endian hardware is not yet supported");if(void 0!==t.nonceLength){const e=i[0];if(!e)throw new Error("nonce / iv required");t.varSizeNonce?o(e):o(e,t.nonceLength)}const s=t.tagLength;s&&void 0!==i[1]&&o(i[1]);const a=r(n,...i),c=(t,e)=>{if(void 0!==e){if(2!==t)throw new Error("cipher output not supported");o(e)}};let u=!1;return{encrypt(t,e){if(u)throw new Error("cannot encrypt() twice with same key + nonce");return u=!0,o(t),c(a.encrypt.length,e),a.encrypt(t,e)},decrypt(t,e){if(o(t),s&&t.length<s)throw new Error("invalid ciphertext length: smaller than tagLength="+s);return c(a.decrypt.length,e),a.decrypt(t,e)}}}return Object.assign(n,t),n}},6568:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>xt});var n=r(1635),i="4.6.2";function o(t,e){return new Promise(function(r){return setTimeout(r,t,e)})}function s(t){return!!t&&"function"==typeof t.then}function a(t,e){try{var r=t();s(r)?r.then(function(t){return e(!0,t)},function(t){return e(!1,t)}):e(!0,r)}catch(t){e(!1,t)}}function c(t,e,r){return void 0===r&&(r=16),(0,n.sH)(this,void 0,void 0,function(){var i,o,s,a;return(0,n.YH)(this,function(n){switch(n.label){case 0:i=Array(t.length),o=Date.now(),s=0,n.label=1;case 1:return s<t.length?(i[s]=e(t[s],s),(a=Date.now())>=o+r?(o=a,[4,new Promise(function(t){var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(null)})]):[3,3]):[3,4];case 2:n.sent(),n.label=3;case 3:return++s,[3,1];case 4:return[2,i]}})})}function u(t){return t.then(void 0,function(){}),t}function l(t){return parseInt(t)}function d(t){return parseFloat(t)}function h(t,e){return"number"==typeof t&&isNaN(t)?e:t}function f(t){return t.reduce(function(t,e){return t+(e?1:0)},0)}function p(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var r=1/e;return Math.round(t*r)/r}function y(t,e){var r=t[0]>>>16,n=65535&t[0],i=t[1]>>>16,o=65535&t[1],s=e[0]>>>16,a=65535&e[0],c=e[1]>>>16,u=0,l=0,d=0,h=0;d+=(h+=o+(65535&e[1]))>>>16,h&=65535,l+=(d+=i+c)>>>16,d&=65535,u+=(l+=n+a)>>>16,l&=65535,u+=r+s,u&=65535,t[0]=u<<16|l,t[1]=d<<16|h}function g(t,e){var r=t[0]>>>16,n=65535&t[0],i=t[1]>>>16,o=65535&t[1],s=e[0]>>>16,a=65535&e[0],c=e[1]>>>16,u=65535&e[1],l=0,d=0,h=0,f=0;h+=(f+=o*u)>>>16,f&=65535,d+=(h+=i*u)>>>16,h&=65535,d+=(h+=o*c)>>>16,h&=65535,l+=(d+=n*u)>>>16,d&=65535,l+=(d+=i*c)>>>16,d&=65535,l+=(d+=o*a)>>>16,d&=65535,l+=r*u+n*c+i*a+o*s,l&=65535,t[0]=l<<16|d,t[1]=h<<16|f}function m(t,e){var r=t[0];32===(e%=64)?(t[0]=t[1],t[1]=r):e<32?(t[0]=r<<e|t[1]>>>32-e,t[1]=t[1]<<e|r>>>32-e):(e-=32,t[0]=t[1]<<e|r>>>32-e,t[1]=r<<e|t[1]>>>32-e)}function _(t,e){0!==(e%=64)&&(e<32?(t[0]=t[1]>>>32-e,t[1]=t[1]<<e):(t[0]=t[1]<<e-32,t[1]=0))}function b(t,e){t[0]^=e[0],t[1]^=e[1]}var v=[4283543511,3981806797],w=[3301882366,444984403];function A(t){var e=[0,t[0]>>>1];b(t,e),g(t,v),e[1]=t[0]>>>1,b(t,e),g(t,w),e[1]=t[0]>>>1,b(t,e)}var S=[2277735313,289559509],E=[1291169091,658871167],B=[0,5],I=[0,1390208809],L=[0,944331445];function x(t,e){var r=function(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n>127)return(new TextEncoder).encode(t);e[r]=n}return e}(t);e=e||0;var n,i=[0,r.length],o=i[1]%16,s=i[1]-o,a=[0,e],c=[0,e],u=[0,0],l=[0,0];for(n=0;n<s;n+=16)u[0]=r[n+4]|r[n+5]<<8|r[n+6]<<16|r[n+7]<<24,u[1]=r[n]|r[n+1]<<8|r[n+2]<<16|r[n+3]<<24,l[0]=r[n+12]|r[n+13]<<8|r[n+14]<<16|r[n+15]<<24,l[1]=r[n+8]|r[n+9]<<8|r[n+10]<<16|r[n+11]<<24,g(u,S),m(u,31),g(u,E),b(a,u),m(a,27),y(a,c),g(a,B),y(a,I),g(l,E),m(l,33),g(l,S),b(c,l),m(c,31),y(c,a),g(c,B),y(c,L);u[0]=0,u[1]=0,l[0]=0,l[1]=0;var d=[0,0];switch(o){case 15:d[1]=r[n+14],_(d,48),b(l,d);case 14:d[1]=r[n+13],_(d,40),b(l,d);case 13:d[1]=r[n+12],_(d,32),b(l,d);case 12:d[1]=r[n+11],_(d,24),b(l,d);case 11:d[1]=r[n+10],_(d,16),b(l,d);case 10:d[1]=r[n+9],_(d,8),b(l,d);case 9:d[1]=r[n+8],b(l,d),g(l,E),m(l,33),g(l,S),b(c,l);case 8:d[1]=r[n+7],_(d,56),b(u,d);case 7:d[1]=r[n+6],_(d,48),b(u,d);case 6:d[1]=r[n+5],_(d,40),b(u,d);case 5:d[1]=r[n+4],_(d,32),b(u,d);case 4:d[1]=r[n+3],_(d,24),b(u,d);case 3:d[1]=r[n+2],_(d,16),b(u,d);case 2:d[1]=r[n+1],_(d,8),b(u,d);case 1:d[1]=r[n],b(u,d),g(u,S),m(u,31),g(u,E),b(a,u)}return b(a,i),b(c,i),y(a,c),y(c,a),A(a),A(c),y(a,c),y(c,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}function O(t){return"function"!=typeof t}function T(t,e,r,i){var o=Object.keys(t).filter(function(t){return!function(t,e){for(var r=0,n=t.length;r<n;++r)if(t[r]===e)return!0;return!1}(r,t)}),s=u(c(o,function(r){return function(t,e){var r=u(new Promise(function(r){var n=Date.now();a(t.bind(null,e),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=Date.now()-n;if(!t[0])return r(function(){return{error:t[1],duration:i}});var o=t[1];if(O(o))return r(function(){return{value:o,duration:i}});r(function(){return new Promise(function(t){var e=Date.now();a(o,function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=i+Date.now()-e;if(!r[0])return t({error:r[1],duration:o});t({value:r[1],duration:o})})})})})}));return function(){return r.then(function(t){return t()})}}(t[r],e)},i));return function(){return(0,n.sH)(this,void 0,void 0,function(){var t,e,r,a;return(0,n.YH)(this,function(n){switch(n.label){case 0:return[4,s];case 1:return[4,c(n.sent(),function(t){return u(t())},i)];case 2:return t=n.sent(),[4,Promise.all(t)];case 3:for(e=n.sent(),r={},a=0;a<o.length;++a)r[o[a]]=e[a];return[2,r]}})})}}function k(){var t=window,e=navigator;return f(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function R(){var t=window,e=navigator;return f(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===(e.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function C(){var t=window;return f(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===navigator.vendor.indexOf("Apple"),"RGBColor"in t,"WebKitMediaKeys"in t])>=4}function F(){var t=window,e=t.HTMLElement,r=t.Document;return f(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),r&&"pointerLockElement"in r.prototype])>=4}function P(){var t,e=window;return t=e.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))&&"[object WebPageNamespace]"===String(e.browser)}function M(){var t,e,r=window;return f(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}function U(){var t=window,e=navigator,r=t.CSS,n=t.HTMLButtonElement;return f([!("getStorageUpdates"in e),n&&"popover"in n.prototype,"CSSCounterStyleRule"in t,r.supports("font-size-adjust: ex-height 0.5"),r.supports("text-transform: full-width")])>=4}function H(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function j(){var t=R(),e=M(),r=window,n=navigator,i="connection";return t?f([!("SharedWorker"in r),n[i]&&"ontypechange"in n[i],!("sinkId"in new Audio)])>=2:!!e&&f(["onorientationchange"in r,"orientation"in r,/android/i.test(n.appVersion)])>=2}function N(t){var e=new Error(t);return e.name=t,e}function V(t,e,r){var i,s,a;return void 0===r&&(r=50),(0,n.sH)(this,void 0,void 0,function(){var c,u;return(0,n.YH)(this,function(n){switch(n.label){case 0:c=document,n.label=1;case 1:return c.body?[3,3]:[4,o(r)];case 2:return n.sent(),[3,1];case 3:u=c.createElement("iframe"),n.label=4;case 4:return n.trys.push([4,,10,11]),[4,new Promise(function(t,r){var n=!1,i=function(){n=!0,t()};u.onload=i,u.onerror=function(t){n=!0,r(t)};var o=u.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",e&&"srcdoc"in u?u.srcdoc=e:u.src="about:blank",c.body.appendChild(u);var s=function(){var t,e;n||("complete"===(null===(e=null===(t=u.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?i():setTimeout(s,10))};s()})];case 5:n.sent(),n.label=6;case 6:return(null===(s=null===(i=u.contentWindow)||void 0===i?void 0:i.document)||void 0===s?void 0:s.body)?[3,8]:[4,o(r)];case 7:return n.sent(),[3,6];case 8:return[4,t(u,u.contentWindow)];case 9:return[2,n.sent()];case 10:return null===(a=u.parentNode)||void 0===a||a.removeChild(u),[7];case 11:return[2]}})})}function D(t){for(var e=function(t){for(var e,r,n="Unexpected syntax '".concat(t,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(t),o=i[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(t,e){s[t]=s[t]||[],s[t].push(e)};;){var u=a.exec(i[2]);if(!u)break;var l=u[0];switch(l[0]){case".":c("class",l.slice(1));break;case"#":c("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(n);c(d[1],null!==(r=null!==(e=d[4])&&void 0!==e?e:d[5])&&void 0!==r?r:"");break;default:throw new Error(n)}}return[o,s]}(t),r=e[0],n=e[1],i=document.createElement(null!=r?r:"div"),o=0,s=Object.keys(n);o<s.length;o++){var a=s[o],c=n[a].join(" ");"style"===a?$(i.style,c):i.setAttribute(a,c)}return i}function $(t,e){for(var r=0,n=e.split(";");r<n.length;r++){var i=n[r],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(o){var s=o[1],a=o[2],c=o[4];t.setProperty(s,a,c||"")}}}var z=["monospace","sans-serif","serif"],Z=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function q(t){return t.toDataURL()}var G,W;function K(){var t=this;return function(){if(void 0===W){var t=function(){var e=Y();X(e)?W=setTimeout(t,2500):(G=e,W=void 0)};t()}}(),function(){return(0,n.sH)(t,void 0,void 0,function(){var t;return(0,n.YH)(this,function(e){switch(e.label){case 0:return X(t=Y())?G?[2,(0,n.fX)([],G,!0)]:(r=document).fullscreenElement||r.msFullscreenElement||r.mozFullScreenElement||r.webkitFullscreenElement?[4,H()]:[3,2]:[3,2];case 1:e.sent(),t=Y(),e.label=2;case 2:return X(t)||(G=t),[2,t]}var r})})}}function Y(){var t=screen;return[h(d(t.availTop),null),h(d(t.width)-d(t.availWidth)-h(d(t.availLeft),0),null),h(d(t.height)-d(t.availHeight)-h(d(t.availTop),0),null),h(d(t.availLeft),null)]}function X(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function J(t){var e;return(0,n.sH)(this,void 0,void 0,function(){var r,i,s,a,c,u,l;return(0,n.YH)(this,function(n){switch(n.label){case 0:for(r=document,i=r.createElement("div"),s=new Array(t.length),a={},Q(i),l=0;l<t.length;++l)"DIALOG"===(c=D(t[l])).tagName&&c.show(),Q(u=r.createElement("div")),u.appendChild(c),i.appendChild(u),s[l]=c;n.label=1;case 1:return r.body?[3,3]:[4,o(50)];case 2:return n.sent(),[3,1];case 3:r.body.appendChild(i);try{for(l=0;l<t.length;++l)s[l].offsetParent||(a[t[l]]=!0)}finally{null===(e=i.parentNode)||void 0===e||e.removeChild(i)}return[2,a]}})})}function Q(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function tt(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function et(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function rt(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function nt(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function it(t){return matchMedia("(prefers-reduced-transparency: ".concat(t,")")).matches}function ot(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var st=Math,at=function(){return 0};var ct={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var ut=function(){for(var t=window;;){var e=t.parent;if(!e||e===t)return!1;try{if(e.location.origin!==t.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}t=e}};var lt=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),dt=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),ht=["FRAGMENT_SHADER","VERTEX_SHADER"],ft=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],pt="WEBGL_debug_renderer_info";function yt(t){if(t.webgl)return t.webgl.context;var e,r=document.createElement("canvas");r.addEventListener("webglCreateContextError",function(){return e=void 0});for(var n=0,i=["webgl","experimental-webgl"];n<i.length;n++){var o=i[n];try{e=r.getContext(o)}catch(t){}if(e)break}return t.webgl={context:e},e}function gt(t,e,r){var n=t.getShaderPrecisionFormat(t[e],t[r]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}function mt(t){return Object.keys(t.__proto__).filter(_t)}function _t(t){return"string"==typeof t&&!t.match(/[^A-Z0-9_x]/)}function bt(){return M()}function vt(){return R()||C()}function wt(t){return"function"==typeof t.getParameter}var At={fonts:function(){var t=this;return V(function(e,r){var i=r.document;return(0,n.sH)(t,void 0,void 0,function(){var t,e,r,o,s,a,c,u,l,d,h;return(0,n.YH)(this,function(n){for((t=i.body).style.fontSize="48px",(e=i.createElement("div")).style.setProperty("visibility","hidden","important"),r={},o={},s=function(t){var r=i.createElement("span"),n=r.style;return n.position="absolute",n.top="0",n.left="0",n.fontFamily=t,r.textContent="mmMwWLliI0O&1",e.appendChild(r),r},a=function(t,e){return s("'".concat(t,"',").concat(e))},c=function(){for(var t={},e=function(e){t[e]=z.map(function(t){return a(e,t)})},r=0,n=Z;r<n.length;r++){e(n[r])}return t},u=function(t){return z.some(function(e,n){return t[n].offsetWidth!==r[e]||t[n].offsetHeight!==o[e]})},l=function(){return z.map(s)}(),d=c(),t.appendChild(e),h=0;h<z.length;h++)r[z[h]]=l[h].offsetWidth,o[z[h]]=l[h].offsetHeight;return[2,Z.filter(function(t){return u(d[t])})]})})})},domBlockers:function(t){var e=(void 0===t?{}:t).debug;return(0,n.sH)(this,void 0,void 0,function(){var t,r,i,o,s;return(0,n.YH)(this,function(n){switch(n.label){case 0:return C()||j()?(a=atob,t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',a("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",a("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",a("LnNwb25zb3JpdA=="),".ylamainos",a("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",a("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",a("LmhlYWRlci1ibG9ja2VkLWFk"),a("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",a("I2FkXzMwMFgyNTA="),a("I2Jhbm5lcmZsb2F0MjI="),a("I2NhbXBhaWduLWJhbm5lcg=="),a("I0FkLUNvbnRlbnQ=")],adGuardChinese:[a("LlppX2FkX2FfSA=="),a("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",a("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),a("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",a("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",a("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",a("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),a("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),a("LmFkZ29vZ2xl"),a("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[a("YW1wLWF1dG8tYWRz"),a("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",a("I2FkX2ludmlld19hcmVh")],adGuardRussian:[a("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),a("LnJlY2xhbWE="),'div[id^="smi2adblock"]',a("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[a("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),a("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",a("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),a("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),a("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",a("I3Jla2xhbWk="),a("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),a("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),a("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[a("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",a("LndpZGdldF9wb19hZHNfd2lkZ2V0"),a("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",a("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[a("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),a("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",a("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",a("I3Jla2xhbW5pLWJveA=="),a("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",a("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[a("I2FkdmVydGVudGll"),a("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",a("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",a("LnNwb25zb3JsaW5rZ3J1ZW4="),a("I3dlcmJ1bmdza3k="),a("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),a("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[a("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",a("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[a("LnJla2xhbW9zX3RhcnBhcw=="),a("LnJla2xhbW9zX251b3JvZG9z"),a("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),a("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),a("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[a("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[a("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),a("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",a("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[a("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),a("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),a("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",a("LmFkX19tYWlu"),a("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[a("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[a("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),a("I2xpdmVyZUFkV3JhcHBlcg=="),a("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),a("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[a("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",a("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),a("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),a("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[a("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),a("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),a("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",a("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),a("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),a("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),a("ZGl2I3NrYXBpZWNfYWQ=")],ro:[a("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),a("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[a("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),a("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),a("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",a("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),a("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",a("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},r=Object.keys(t),[4,J((s=[]).concat.apply(s,r.map(function(e){return t[e]})))]):[2,void 0];case 1:return i=n.sent(),e&&function(t,e){for(var r="DOM blockers debug:\n```",n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];r+="\n".concat(o,":");for(var s=0,a=t[o];s<a.length;s++){var c=a[s];r+="\n ".concat(e[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(r,"\n```"))}(t,i),(o=r.filter(function(e){var r=t[e];return f(r.map(function(t){return i[t]}))>.6*r.length})).sort(),[2,o]}var a})})},fontPreferences:function(){return function(t,e){void 0===e&&(e=4e3);return V(function(r,i){var o=i.document,s=o.body,a=s.style;a.width="".concat(e,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",R()?s.style.zoom="".concat(1/i.devicePixelRatio):C()&&(s.style.zoom="reset");var c=o.createElement("div");return c.textContent=(0,n.fX)([],Array(e/20|0),!0).map(function(){return"word"}).join(" "),s.appendChild(c),t(o,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}(function(t,e){for(var r={},n={},i=0,o=Object.keys(ct);i<o.length;i++){var s=o[i],a=ct[s],c=a[0],u=void 0===c?{}:c,l=a[1],d=void 0===l?"mmMwWLliI0fiflO&1":l,h=t.createElement("span");h.textContent=d,h.style.whiteSpace="nowrap";for(var f=0,p=Object.keys(u);f<p.length;f++){var y=p[f],g=u[y];void 0!==g&&(h.style[y]=g)}r[s]=h,e.append(t.createElement("br"),h)}for(var m=0,_=Object.keys(ct);m<_.length;m++){n[s=_[m]]=r[s].getBoundingClientRect().width}return n})},audio:function(){return C()&&U()&&P()||R()&&(t=navigator,e=window,r=Audio.prototype,n=e.visualViewport,f(["srLatency"in r,"srChannelCount"in r,"devicePosture"in t,n&&"segments"in n,"getTextInformation"in Image.prototype])>=3)&&function(){var t=window,e=t.URLPattern;return f(["union"in Set.prototype,"Iterator"in t,e&&"hasRegExpGroups"in e.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()?-4:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(C()&&!F()&&!function(){var t=window;return f(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var r=4500,n=new e(1,5e3,44100),i=n.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(n.destination),i.start(0);var a=function(t){var e=3,r=500,n=500,i=5e3,o=function(){},a=new Promise(function(a,c){var l=!1,d=0,h=0;t.oncomplete=function(t){return a(t.renderedBuffer)};var f=function(){setTimeout(function(){return c(N("timeout"))},Math.min(n,h+i-Date.now()))},p=function(){try{var n=t.startRendering();switch(s(n)&&u(n),t.state){case"running":h=Date.now(),l&&f();break;case"suspended":document.hidden||d++,l&&d>=e?c(N("suspended")):setTimeout(p,r)}}catch(t){c(t)}};p(),o=function(){l||(l=!0,h>0&&f())}});return[a,o]}(n),c=a[0],l=a[1],d=u(c.then(function(t){return function(t){for(var e=0,r=0;r<t.length;++r)e+=Math.abs(t[r]);return e}(t.getChannelData(0).subarray(r))},function(t){if("timeout"===t.name||"suspended"===t.name)return-3;throw t}));return function(){return l(),d}}();var t,e,r,n},screenFrame:function(){var t=this;if(C()&&U()&&P())return function(){return Promise.resolve(void 0)};var e=K();return function(){return(0,n.sH)(t,void 0,void 0,function(){var t,r;return(0,n.YH)(this,function(n){switch(n.label){case 0:return[4,e()];case 1:return t=n.sent(),[2,[(r=function(t){return null===t?null:p(t,10)})(t[0]),r(t[1]),r(t[2]),r(t[3])]]}})})}},canvas:function(){return function(t){var e,r,n,i=!1,o=function(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}(),s=o[0],a=o[1];!function(t,e){return!(!e||!t.toDataURL)}(s,a)?r=n="unsupported":(i=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(a),t?r=n="skipped":(e=function(t,e){!function(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var r="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(r,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(r,4,45)}(t,e);var r=q(t),n=q(t);if(r!==n)return["unstable","unstable"];!function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var r=0,n=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];r<n.length;r++){var i=n[r],o=i[0],s=i[1],a=i[2];e.fillStyle=o,e.beginPath(),e.arc(s,a,40,0,2*Math.PI,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,2*Math.PI,!0),e.arc(60,60,20,0,2*Math.PI,!0),e.fill("evenodd")}(t,e);var i=q(t);return[i,r]}(s,a),r=e[0],n=e[1]));return{winding:i,geometry:r,text:n}}(C()&&U()&&P())},osCpu:function(){return navigator.oscpu},languages:function(){var t,e=navigator,r=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==n&&r.push([n]),Array.isArray(e.languages))R()&&f([!("MediaSettingsRange"in(t=window)),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3||r.push(e.languages);else if("string"==typeof e.languages){var i=e.languages;i&&r.push(i.split(","))}return r},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return h(d(navigator.deviceMemory),void 0)},screenResolution:function(){var t,e,r;if(!(C()&&U()&&P()))return t=screen,(r=[(e=function(t){return h(l(t),null)})(t.width),e(t.height)]).sort().reverse(),r},hardwareConcurrency:function(){return h(l(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var r=(new e).resolvedOptions().timeZone;if(r)return r}var n,i=(n=(new Date).getFullYear(),-Math.max(d(new Date(n,0,1).getTimezoneOffset()),d(new Date(n,6,1).getTimezoneOffset())));return"UTC".concat(i>=0?"+":"").concat(i)},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){var t,e;if(!(k()||(t=window,e=navigator,f(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!k())))try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&C()&&!F()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return f(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],r=0;r<t.length;++r){var n=t[r];if(n){for(var i=[],o=0;o<n.length;++o){var s=n[o];i.push({type:s.type,suffixes:s.suffixes})}e.push({name:n.name,description:n.description,mimeTypes:i})}}return e}},touchSupport:function(){var t,e=navigator,r=0;void 0!==e.maxTouchPoints?r=l(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(r=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return{maxTouchPoints:r,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],e=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<r.length;e++){var n=r[e],i=window[n];i&&"object"==typeof i&&t.push(n)}return t.sort()},cookiesEnabled:function(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}},colorGamut:function(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var r=e[t];if(matchMedia("(color-gamut: ".concat(r,")")).matches)return r}},invertedColors:function(){return!!tt("inverted")||!tt("none")&&void 0},forcedColors:function(){return!!et("active")||!et("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=100;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}},contrast:function(){return rt("no-preference")?0:rt("high")||rt("more")?1:rt("low")||rt("less")?-1:rt("forced")?10:void 0},reducedMotion:function(){return!!nt("reduce")||!nt("no-preference")&&void 0},reducedTransparency:function(){return!!it("reduce")||!it("no-preference")&&void 0},hdr:function(){return!!ot("high")||!ot("standard")&&void 0},math:function(){var t,e=st.acos||at,r=st.acosh||at,n=st.asin||at,i=st.asinh||at,o=st.atanh||at,s=st.atan||at,a=st.sin||at,c=st.sinh||at,u=st.cos||at,l=st.cosh||at,d=st.tan||at,h=st.tanh||at,f=st.exp||at,p=st.expm1||at,y=st.log1p||at;return{acos:e(.12312423423423424),acosh:r(1e308),acoshPf:(t=1e154,st.log(t+st.sqrt(t*t-1))),asin:n(.12312423423423424),asinh:i(1),asinhPf:function(t){return st.log(t+st.sqrt(t*t+1))}(1),atanh:o(.5),atanhPf:function(t){return st.log((1+t)/(1-t))/2}(.5),atan:s(.5),sin:a(-1e300),sinh:c(1),sinhPf:function(t){return st.exp(t)-1/st.exp(t)/2}(1),cos:u(10.000000000123),cosh:l(1),coshPf:function(t){return(st.exp(t)+1/st.exp(t))/2}(1),tan:d(-1e300),tanh:h(1),tanhPf:function(t){return(st.exp(2*t)-1)/(st.exp(2*t)+1)}(1),exp:f(1),expm1:p(1),expm1Pf:function(t){return st.exp(t)-1}(1),log1p:y(10),log1pPf:function(t){return st.log(1+t)}(10),powPI:function(t){return st.pow(st.PI,t)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]},applePay:function(){var t=window.ApplePaySession;if("function"!=typeof(null==t?void 0:t.canMakePayments))return-1;if(ut())return-3;try{return t.canMakePayments()?1:0}catch(t){return function(t){if(t instanceof Error&&"InvalidAccessError"===t.name&&/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;throw t}(t)}},privateClickMeasurement:function(){var t,e=document.createElement("a"),r=null!==(t=e.attributionSourceId)&&void 0!==t?t:e.attributionsourceid;return void 0===r?void 0:String(r)},audioBaseLatency:function(){if(!(j()||C()))return-2;if(!window.AudioContext)return-1;var t=(new AudioContext).baseLatency;return null==t?-1:isFinite(t)?t:-3},dateTimeLocale:function(){if(!window.Intl)return-1;var t=window.Intl.DateTimeFormat;if(!t)return-2;var e=t().resolvedOptions().locale;return e||""===e?e:-3},webGlBasics:function(t){var e,r,n,i,o,s,a=yt(t.cache);if(!a)return-1;if(!wt(a))return-2;var c=bt()?null:a.getExtension(pt);return{version:(null===(e=a.getParameter(a.VERSION))||void 0===e?void 0:e.toString())||"",vendor:(null===(r=a.getParameter(a.VENDOR))||void 0===r?void 0:r.toString())||"",vendorUnmasked:c?null===(n=a.getParameter(c.UNMASKED_VENDOR_WEBGL))||void 0===n?void 0:n.toString():"",renderer:(null===(i=a.getParameter(a.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:c?null===(o=a.getParameter(c.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(s=a.getParameter(a.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||""}},webGlExtensions:function(t){var e=yt(t.cache);if(!e)return-1;if(!wt(e))return-2;var r=e.getSupportedExtensions(),n=e.getContextAttributes(),i=[],o=[],s=[],a=[],c=[];if(n)for(var u=0,l=Object.keys(n);u<l.length;u++){var d=l[u];o.push("".concat(d,"=").concat(n[d]))}for(var h=0,f=mt(e);h<f.length;h++){var p=e[w=f[h]];s.push("".concat(w,"=").concat(p).concat(lt.has(p)?"=".concat(e.getParameter(p)):""))}if(r)for(var y=0,g=r;y<g.length;y++){var m=g[y];if(!(m===pt&&bt()||"WEBGL_polygon_mode"===m&&vt())){var _=e.getExtension(m);if(_)for(var b=0,v=mt(_);b<v.length;b++){var w;p=_[w=v[b]];a.push("".concat(w,"=").concat(p).concat(dt.has(p)?"=".concat(e.getParameter(p)):""))}else i.push(m)}}for(var A=0,S=ht;A<S.length;A++)for(var E=S[A],B=0,I=ft;B<I.length;B++){var L=I[B],x=gt(e,E,L);c.push("".concat(E,".").concat(L,"=").concat(x.join(",")))}return a.sort(),s.sort(),{contextAttributes:o,parameters:s,shaderPrecisions:c,extensions:r,extensionParameters:a,unsupportedExtensions:i}}};function St(t){var e=function(t){if(j())return.4;if(C())return!F()||U()&&P()?.3:.5;var e="value"in t.platform?t.platform.value:"";if(/^Win/.test(e))return.6;if(/^Mac/.test(e))return.5;return.7}(t),r=function(t){return p(.99+.01*t,1e-4)}(e);return{score:e,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(r))}}function Et(t){return JSON.stringify(t,function(t,e){return e instanceof Error?(r=e,(0,n.Cl)({name:r.name,message:r.message,stack:null===(i=r.stack)||void 0===i?void 0:i.split("\n")},r)):e;var r,i},2)}function Bt(t){return x(function(t){for(var e="",r=0,n=Object.keys(t).sort();r<n.length;r++){var i=n[r],o=t[i],s="error"in o?"error":JSON.stringify(o.value);e+="".concat(e?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return e}(t))}function It(t){return void 0===t&&(t=50),function(t,e){void 0===e&&(e=1/0);var r=window.requestIdleCallback;return r?new Promise(function(t){return r.call(window,function(){return t()},{timeout:e})}):o(Math.min(t,e))}(t,2*t)}function Lt(t,e){var r=Date.now();return{get:function(o){return(0,n.sH)(this,void 0,void 0,function(){var s,a,c;return(0,n.YH)(this,function(n){switch(n.label){case 0:return s=Date.now(),[4,t()];case 1:return a=n.sent(),c=function(t){var e,r=St(t);return{get visitorId(){return void 0===e&&(e=Bt(this.components)),e},set visitorId(t){e=t},confidence:r,components:t,version:i}}(a),(e||(null==o?void 0:o.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(c.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(s-r,"\nvisitorId: ").concat(c.visitorId,"\ncomponents: ").concat(Et(a),"\n```")),[2,c]}})})}}}var xt={load:function(t){var e;return void 0===t&&(t={}),(0,n.sH)(this,void 0,void 0,function(){var r,o,s;return(0,n.YH)(this,function(n){switch(n.label){case 0:return(null===(e=t.monitoring)||void 0===e||e)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(i,"/npm-monitoring"),!0),t.send()}catch(t){console.error(t)}}(),r=t.delayFallback,o=t.debug,[4,It(r)];case 1:return n.sent(),s=function(t){return T(At,t,[])}({cache:{},debug:o}),[2,Lt(s,o)]}})})},hashComponents:Bt,componentsToDebugString:Et}},6586:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2049),i=r(1882),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;const a=function(t,e){if((0,n.A)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,i.A)(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},6612:(t,e,r)=>{"use strict";var n;r.d(e,{y:()=>n}),function(t){t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.CHINESE_TRADITIONAL_TW="zh-Hant-TW",t.JAPANESE="ja",t.KOREAN="ko",t.FILIPINO="fil",t.INDONESIAN="id",t.PORTUGUESE="pt",t.THAI="th",t.VIETNAMESE="vi",t.ARABIC="ar"}(n||(n={}))},6632:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(5917);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(i.Cache||n.A),r}i.Cache=n.A;const o=i},6666:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},6733:(t,e,r)=>{"use strict";r.d(e,{B:()=>b});var n=r(8291),i=r(853),o=r(1472),s=r(6666);const a={indoorLineColor:"#45b1cc",outdoorLineColor:"#8183ba",dashedLineColor:"#969696",shuttleBusLineColor:"#fb923c",lineWidth:4,dashedLineWidth:4,disableDashedLine:!1,inactiveRouteOpacity:.5,outdoorLineOpacity:1,markerIconSize:.75,markers:{from:"poi-02",to:"poi-01",stops:["waypoint-01"]},lineSymbol:{image:"east-blue-arrow-01",size:.25,spacing:1}},c="mmws-source-line-solid",u="mmws-layer-line-solid",l="mmws-layer-icon-line-symbol",d="mmws-source-line-dashed",h="mmws-layer-line-dashed",f="mmws-source-icon-connector",p="mmws-layer-icon-connector",y="mmws-source-icon-marker",g="mmws-layer-icon-marker",m=[u,l,h,p,g],_=[c,d,f,y];class b{_maplibreMap;_routeStyle=a;_styleDiffs={};_filterBy="venue";_curVenue=null;_curBuilding=null;_curOrdinal=null;_renderBoundaryLayer;constructor(t,e){this._maplibreMap=t,e&&(this._updateStyleProperties(e),t.on("load",()=>this._loadMarkerIcons()))}async setStyle(t){this._updateStyleProperties(t),await this._loadMarkerIcons(),await this._updateLayers()}async setMarkerIcons(t){if(Array.isArray(t)&&t.length){const e=t.slice(1,t.length-1);this._routeStyle.markers={from:t[0],to:(0,s.A)(t),stops:e.length?e:[t[0]]},this._styleDiffs={markers:this._routeStyle.markers}}else"from"in t&&(this._routeStyle.markers.from=t.from,this._styleDiffs.markers.from=t.from),"to"in t&&(this._routeStyle.markers.to=t.to,this._styleDiffs.markers.to=t.to),"stops"in t&&(this._routeStyle.markers.stops=t.stops??[null],this._styleDiffs.markers.stops=t.stops??[null]);await this._loadMarkerIcons()}setMarkerIconSize(t){return this._routeStyle.markerIconSize=t,this}setIndoorLineColor(t){return this._routeStyle.indoorLineColor=t,this}setOutdoorLineColor(t){return this._routeStyle.outdoorLineColor=t,this}setDashedLineColor(t){return this._routeStyle.dashedLineColor=t,this}setBusLineColor(t){return this._routeStyle.shuttleBusLineColor=t,this}render(t,e){if(!this._renderBoundaryLayer){const t=this._maplibreMap.getStyle(),e=(0,n.cq)(t);let r=e.find(({type:t,id:e})=>!e.includes("-overlap-copy")&&"fill-extrusion"===t);r||(r=e.find(t=>"symbol"===t.type&&"mapxus_place"===t?.["source-layer"])),this._renderBoundaryLayer=r?.id}const{instructions:r,points:{coordinates:i}}=t,{lineFeatures:o,connectorFeatures:s,dashedLineFeatures:a,markerFeatures:u}=this._classifyFeatures(r,i,e);this._renderSolidLines(o),this._renderLineSymbols(c,l),!0!==this._routeStyle.disableDashedLine&&this._renderDashedLines(a),this._renderConnectors(s),this._renderMarkers(u)}remove(){m.forEach(t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.removeLayer(t)}),_.forEach(t=>{this._maplibreMap.getSource(t)&&this._maplibreMap.removeSource(t)})}setFilterByVenue(t,e){this._filterBy="venue",this._curVenue=t??null,this._curOrdinal=e??null,this._filterRouteOpacity()}setFilterByBuilding(t,e){this._filterBy="building",this._curBuilding=t??null,this._curOrdinal=e??null,this._filterRouteOpacity()}_classifyFeatures(t,e,r){const n=[],i=[],o=[],a=[],c=[];t.forEach((r,o)=>{const{venue_id:s,building_id:a,floor_id:u,ordinal:l,sign:d,type:h,interval:[f,p]}=r;if(function(t){return 5===t}(d))c.push(r);else if(function(t){return 100===t||-100===t}(d)){0!==o&&o!==t.length-1&&i.push(this._createIconFeature(`connector-${i.length}`,e[f],{...v({venue_id:s,building_id:a,floor_id:u,ordinal:l}),icon:h}));const r=t[o+1];if(r){const{venue_id:t,building_id:n,floor_id:o,ordinal:s}=r;i.push(this._createIconFeature(`connector-${i.length}`,e[p],{...v({venue_id:t,building_id:n,floor_id:o,ordinal:s}),icon:h}))}}else n.push(this._createLineFeature(`solid-line-${n.length}`,e.slice(f,p+1),v({venue_id:s,building_id:a,floor_id:u,ordinal:l,isShuttleBus:w(d)?1:0})))});const u=t[0],{venue_id:l,building_id:d,floor_id:h,ordinal:f}=u,p=t[t.length-1],{venue_id:y,building_id:g,floor_id:m,ordinal:_}=p,b=e[0],A=e[e.length-1],S=r[0],E=r[r.length-1],B=r.slice(1,r.length-1);return S&&o.push(this._createLineFeature(`dashed-line-${o.length}`,[S,b],v({venue_id:l,building_id:d,floor_id:h,ordinal:f}))),E&&o.push(this._createLineFeature(`dashed-line-${o.length}`,[A,E],v({venue_id:y,building_id:g,floor_id:m,ordinal:_}))),c.length&&B.length&&c.forEach(({venue_id:t,building_id:r,floor_id:n,ordinal:i,interval:[c]},u)=>{o.push(this._createLineFeature(`dashed-line-${o.length}`,[e[c],B[u]],v({venue_id:t,building_id:r,floor_id:n,ordinal:i}))),a.push(this._createIconFeature(`marker-${a.length}`,B[u],{...v({venue_id:t,building_id:r,floor_id:n,ordinal:i,markerType:`stops_${u}`}),icon:this._routeStyle.markers.stops[u]??(0,s.A)(this._routeStyle.markers.stops),iconSize:this._routeStyle.markerIconSize}))}),a.push(this._createIconFeature(`marker-${a.length}`,S??b,{...v({venue_id:l,building_id:d,floor_id:h,ordinal:f,markerType:"from"}),icon:this._routeStyle.markers.from,iconSize:this._routeStyle.markerIconSize})),a.push(this._createIconFeature(`marker-${a.length}`,E??A,{...v({venue_id:y,building_id:g,floor_id:m,ordinal:_,markerType:"to"}),icon:this._routeStyle.markers.to,iconSize:this._routeStyle.markerIconSize})),{lineFeatures:n,connectorFeatures:i,dashedLineFeatures:o,markerFeatures:a}}_createLineFeature(t,e,r){return{id:t,type:"Feature",geometry:{type:"LineString",coordinates:e},properties:r}}_createIconFeature(t,e,r){return{id:t,type:"Feature",geometry:{type:"Point",coordinates:e},properties:r}}_renderSolidLines(t){this._addCollectionSource(c,t),this._addLineLayer(c,u,{"line-color":["case",["==",["get","isShuttleBus"],"1"],this._routeStyle.shuttleBusLineColor,["==",["get","floor_id"],null],this._routeStyle.outdoorLineColor,this._routeStyle.indoorLineColor],"line-opacity":["case",["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,1],"line-width":this._routeStyle.lineWidth})}_renderDashedLines(t){this._addCollectionSource(d,t),this._addLineLayer(d,h,{"line-color":this._routeStyle.dashedLineColor,"line-width":this._routeStyle.dashedLineWidth,"line-dasharray":[.1,1.8]})}_renderConnectors(t){this._addCollectionSource(f,t),this._addIconLayer(f,p)}_renderMarkers(t){this._addCollectionSource(y,t),this._addIconLayer(y,g,{"icon-anchor":"bottom","icon-allow-overlap":!0,"icon-ignore-placement":!0})}_addCollectionSource(t,e){this._maplibreMap.addSource(t,{type:"geojson",data:{type:"FeatureCollection",features:e}})}_addLineLayer(t,e,r){this._maplibreMap.addLayer({id:e,type:"line",source:t,layout:{"line-join":"round","line-cap":"round"},paint:{"line-width":4,...r||{}}},this._renderBoundaryLayer)}_renderLineSymbols(t,e){this._maplibreMap.addLayer({id:e,type:"symbol",source:t,layout:{"symbol-placement":"line","symbol-spacing":this._routeStyle.lineSymbol.spacing,"icon-size":this._routeStyle.lineSymbol.size,"icon-image":this._routeStyle.lineSymbol.image},paint:{"icon-opacity":["case",["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,1]}},this._renderBoundaryLayer)}_addIconLayer(t,e,r){this._maplibreMap.addLayer({id:e,type:"symbol",source:t,layout:{"icon-image":["get","icon"],"icon-size":["case",["has","iconSize"],["get","iconSize"],1],...r||{}}})}_updateStyleProperties(t){if(this._styleDiffs=A(this._routeStyle,t??a),t){if(Object.keys(this._styleDiffs).length){const t={...this._routeStyle.lineSymbol,...this._styleDiffs.lineSymbol??{}},e=this._styleDiffs.markers;let r=this._routeStyle.markers;const n={outdoorLineOpacity:(this._styleDiffs.outdoorLineOpacity>1?1:this._styleDiffs.outdoorLineOpacity<0?0:this._styleDiffs.outdoorLineOpacity)??this._routeStyle.outdoorLineOpacity},i={inactiveRouteOpacity:(this._styleDiffs.inactiveRouteOpacity>1?1:this._styleDiffs.inactiveRouteOpacity<0?0:this._styleDiffs.inactiveRouteOpacity)??this._routeStyle.inactiveRouteOpacity};e&&Object.keys(e).length&&(r={...r,...e}),this._routeStyle={...this._routeStyle,...this._styleDiffs,...n,...i,markers:r,lineSymbol:t}}}else this._routeStyle=a}async _loadMarkerIcons(){const{markers:t,lineSymbol:e}=this._styleDiffs;if(e?.image&&await(0,i.K)(this._maplibreMap,e.image),t&&Object.keys(t).length){const{from:e,to:r,stops:n}=t;if(e&&await(0,i.K)(this._maplibreMap,e),r&&await(0,i.K)(this._maplibreMap,r),n&&n.length){const t=n.filter(t=>!!t);t.length&&await Promise.all(t.map(t=>(0,i.K)(this._maplibreMap,t)))}}}async _updateLayers(){if(!this._maplibreMap.getLayer(u))return;const{indoorLineColor:t,outdoorLineColor:e,dashedLineColor:r,shuttleBusLineColor:n,lineWidth:i,dashedLineWidth:o,disableDashedLine:a,inactiveRouteOpacity:c,outdoorLineOpacity:d,markerIconSize:f,markers:p,lineSymbol:m}=this._styleDiffs;if((t||e||n)&&this._maplibreMap.setPaintProperty(u,"line-color",["case",["==",["get","isShuttleBus"],"1"],this._routeStyle.shuttleBusLineColor,["==",["get","floor_id"],null],this._routeStyle.outdoorLineColor,this._routeStyle.indoorLineColor]),void 0!==i&&i+""&&this._maplibreMap.setPaintProperty(u,"line-width",i),"boolean"==typeof a?a?this._maplibreMap.setPaintProperty(h,"line-color","transparent"):(this._maplibreMap.setPaintProperty(h,"line-color",this._routeStyle.dashedLineColor),this._maplibreMap.setPaintProperty(h,"line-width",this._routeStyle.dashedLineWidth)):!0!==this._routeStyle.disableDashedLine&&(r&&this._maplibreMap.setPaintProperty(h,"line-color",r),void 0!==o&&o+""&&this._maplibreMap.setPaintProperty(h,"line-width",o)),void 0!==c&&c+""&&this._filterRouteOpacity(),void 0!==f&&f+""&&this._maplibreMap.setLayoutProperty(g,"icon-size",f),p&&Object.keys(p).length){const{from:t,to:e,stops:r}=p,n=this._maplibreMap.getSource(y),i=await n.getData();i.features=i.features.map(n=>{const{markerType:i}=n.properties;if(void 0!==t&&"from"===i&&(n.properties.icon=t),void 0!==e&&"to"===i&&(n.properties.icon=e),r&&i.includes("stops")){const t=parseInt(i.split("_")[1]);n.properties.icon=r[t]??(0,s.A)(r)}return n}),n.setData(i)}if(m){const{image:t,size:e,spacing:r}=m;void 0!==t&&this._maplibreMap.setLayoutProperty(l,"icon-image",t),void 0!==e&&e+""&&this._maplibreMap.setLayoutProperty(l,"icon-size",e),void 0!==r&&r+""&&this._maplibreMap.setLayoutProperty(l,"symbol-spacing",r)}void 0!==d&&d+""&&(this._maplibreMap.setPaintProperty(u,"line-opacity",["case",["==",["get","floor_id"],null],d,1]),this._maplibreMap.setPaintProperty(l,"icon-opacity",["case",["==",["get","floor_id"],null],d,1]),this._filterRouteOpacity())}_filterRouteOpacity(){let t;switch(this._filterBy){case"venue":t=["case",["all",["==",["get","ordinal"],this._curOrdinal??""],["==",["get","venue_id"],this._curVenue??""]],1,["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,this._routeStyle.inactiveRouteOpacity];break;case"building":t=["case",["all",["==",["get","ordinal"],this._curOrdinal??""],["==",["get","building_id"],this._curBuilding??""]],1,["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,this._routeStyle.inactiveRouteOpacity]}m.forEach(e=>{this._maplibreMap.getLayer(e)&&this._maplibreMap.setPaintProperty(e,e.includes("layer-line")?"line-opacity":"icon-opacity",t)})}}function v(t){return Object.fromEntries(Object.entries(t).map(([t,e])=>[t,Number.isFinite(e)?e+"":e]))}function w(t){return(0,o.A)(t,104,108)}function A(t,e){const r={};for(const n in e){const i=t[n],o=e[n];if("markers"===n||"lineSymbol"===n)if(Array.isArray(o)){const t=o.slice(1,o.length-1);r[n]={from:o[0],to:(0,s.A)(o),stops:t.length?t:[o[0]]}}else{const t=A(i,o);Object.keys(t).length&&(r[n]=t)}else o+""!=i+""&&(r[n]="stops"===n?o??[null]:o)}return r}},6748:(t,e,r)=>{"use strict";e.VV=void 0,e.w=function(t,e){return Buffer.from(function(t,e){var r=(0,i.ellipticCurve)(),a=new o.PrivateKey(void 0,r),c=t instanceof Uint8Array?new o.PublicKey(t,r):o.PublicKey.fromHex(t,r),u=a.encapsulate(c,(0,i.isHkdfKeyCompressed)()),l=a.publicKey.toBytes((0,i.isEphemeralKeyCompressed)()),d=(0,s.symEncrypt)(u,e);return(0,n.concatBytes)(l,d)}(t,e))};var n=r(6527),i=r(4928),o=r(9065),s=r(2158);var a=r(4928);Object.defineProperty(e,"VV",{enumerable:!0,get:function(){return a.ECIES_CONFIG}});var c=r(9065);s.aesEncrypt,s.aesDecrypt,s.symEncrypt,s.symDecrypt,s.decodeHex,s.getValidSecret,s.remove0x},6787:(t,e,r)=>{"use strict";function n(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}r.d(e,{A:()=>n})},6838:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){this.__data__=[],this.size=0}},6847:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(139),i=r(8556),o=r(6501);const s={isBrowser:!0,classes:{URLSearchParams:n.A,FormData:i.A,Blob:o.A},protocols:["http","https","file","blob","url","data"]}},6912:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},6983:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return t!=t}},6984:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return t===e||t!=t&&e!=e}},6996:t=>{"use strict";t.exports=require("maplibre-gl")},7007:t=>{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise(function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}y(t,e,o,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&y(t,"error",e,r)}(t,i,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function u(t,e,r,n){var i,o,s,u;if(a(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=c(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function h(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):p(i,i.length)}function f(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function y(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,function i(o){n.once&&t.removeEventListener(e,i),r(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[t];if(void 0===c)return!1;if("function"==typeof c)n(c,this,e);else{var u=c.length,l=p(c,u);for(r=0;r<u;++r)n(l[r],this,e)}return!0},o.prototype.addListener=function(t,e){return u(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return u(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,d(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,d(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,n,i,o,s;if(a(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},7013:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=r(7275),i=r(3853),o=r(807),s=r(4062),a=r(8458),c=r(5579),u=r(3820),l=r(7110),d=r(7837),h=r(8382);const f="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,r){const f=(0,h.A)(t);let p=f.data;const y=l.A.from(f.headers).normalize();let g,m,_,b,v,{responseType:w,onUploadProgress:A,onDownloadProgress:S}=f;function E(){b&&b(),v&&v(),f.cancelToken&&f.cancelToken.unsubscribe(g),f.signal&&f.signal.removeEventListener("abort",g)}let B=new XMLHttpRequest;function I(){if(!B)return;const n=l.A.from("getAllResponseHeaders"in B&&B.getAllResponseHeaders()),o={data:w&&"text"!==w&&"json"!==w?B.response:B.responseText,status:B.status,statusText:B.statusText,headers:n,config:t,request:B};(0,i.A)(function(t){e(t),E()},function(t){r(t),E()},o),B=null}B.open(f.method.toUpperCase(),f.url,!0),B.timeout=f.timeout,"onloadend"in B?B.onloadend=I:B.onreadystatechange=function(){B&&4===B.readyState&&(0!==B.status||B.responseURL&&0===B.responseURL.indexOf("file:"))&&setTimeout(I)},B.onabort=function(){B&&(r(new s.A("Request aborted",s.A.ECONNABORTED,t,B)),B=null)},B.onerror=function(){r(new s.A("Network Error",s.A.ERR_NETWORK,t,B)),B=null},B.ontimeout=function(){let e=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const n=f.transitional||o.A;f.timeoutErrorMessage&&(e=f.timeoutErrorMessage),r(new s.A(e,n.clarifyTimeoutError?s.A.ETIMEDOUT:s.A.ECONNABORTED,t,B)),B=null},void 0===p&&y.setContentType(null),"setRequestHeader"in B&&n.A.forEach(y.toJSON(),function(t,e){B.setRequestHeader(e,t)}),n.A.isUndefined(f.withCredentials)||(B.withCredentials=!!f.withCredentials),w&&"json"!==w&&(B.responseType=f.responseType),S&&([_,v]=(0,d.C1)(S,!0),B.addEventListener("progress",_)),A&&B.upload&&([m,b]=(0,d.C1)(A),B.upload.addEventListener("progress",m),B.upload.addEventListener("loadend",b)),(f.cancelToken||f.signal)&&(g=e=>{B&&(r(!e||e.type?new a.A(null,t,B):e),B.abort(),B=null)},f.cancelToken&&f.cancelToken.subscribe(g),f.signal&&(f.signal.aborted?g():f.signal.addEventListener("abort",g)));const L=(0,c.A)(f.url);L&&-1===u.A.protocols.indexOf(L)?r(new s.A("Unsupported protocol "+L+":",s.A.ERR_BAD_REQUEST,t)):B.send(p||null)})}},7064:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7271),i=r(3938),o=Object.prototype.hasOwnProperty;const s=function(t){if(!(0,n.A)(t))return(0,i.A)(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},7076:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha512_224=e.sha512_256=e.sha384=e.sha512=e.sha224=e.sha256=e.SHA512_256=e.SHA512_224=e.SHA384=e.SHA512=e.SHA224=e.SHA256=void 0;const n=r(7202),i=r(2318),o=r(9175),s=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array(64);class c extends n.HashMD{constructor(t=32){super(64,t,8,!1),this.A=0|n.SHA256_IV[0],this.B=0|n.SHA256_IV[1],this.C=0|n.SHA256_IV[2],this.D=0|n.SHA256_IV[3],this.E=0|n.SHA256_IV[4],this.F=0|n.SHA256_IV[5],this.G=0|n.SHA256_IV[6],this.H=0|n.SHA256_IV[7]}get(){const{A:t,B:e,C:r,D:n,E:i,F:o,G:s,H:a}=this;return[t,e,r,n,i,o,s,a]}set(t,e,r,n,i,o,s,a){this.A=0|t,this.B=0|e,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(t,e){for(let r=0;r<16;r++,e+=4)a[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=a[t-15],r=a[t-2],n=(0,o.rotr)(e,7)^(0,o.rotr)(e,18)^e>>>3,i=(0,o.rotr)(r,17)^(0,o.rotr)(r,19)^r>>>10;a[t]=i+a[t-7]+n+a[t-16]|0}let{A:r,B:i,C:c,D:u,E:l,F:d,G:h,H:f}=this;for(let t=0;t<64;t++){const e=f+((0,o.rotr)(l,6)^(0,o.rotr)(l,11)^(0,o.rotr)(l,25))+(0,n.Chi)(l,d,h)+s[t]+a[t]|0,p=((0,o.rotr)(r,2)^(0,o.rotr)(r,13)^(0,o.rotr)(r,22))+(0,n.Maj)(r,i,c)|0;f=h,h=d,d=l,l=u+e|0,u=c,c=i,i=r,r=e+p|0}r=r+this.A|0,i=i+this.B|0,c=c+this.C|0,u=u+this.D|0,l=l+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(r,i,c,u,l,d,h,f)}roundClean(){(0,o.clean)(a)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,o.clean)(this.buffer)}}e.SHA256=c;class u extends c{constructor(){super(28),this.A=0|n.SHA224_IV[0],this.B=0|n.SHA224_IV[1],this.C=0|n.SHA224_IV[2],this.D=0|n.SHA224_IV[3],this.E=0|n.SHA224_IV[4],this.F=0|n.SHA224_IV[5],this.G=0|n.SHA224_IV[6],this.H=0|n.SHA224_IV[7]}}e.SHA224=u;const l=(()=>i.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))))(),d=(()=>l[0])(),h=(()=>l[1])(),f=new Uint32Array(80),p=new Uint32Array(80);class y extends n.HashMD{constructor(t=64){super(128,t,16,!1),this.Ah=0|n.SHA512_IV[0],this.Al=0|n.SHA512_IV[1],this.Bh=0|n.SHA512_IV[2],this.Bl=0|n.SHA512_IV[3],this.Ch=0|n.SHA512_IV[4],this.Cl=0|n.SHA512_IV[5],this.Dh=0|n.SHA512_IV[6],this.Dl=0|n.SHA512_IV[7],this.Eh=0|n.SHA512_IV[8],this.El=0|n.SHA512_IV[9],this.Fh=0|n.SHA512_IV[10],this.Fl=0|n.SHA512_IV[11],this.Gh=0|n.SHA512_IV[12],this.Gl=0|n.SHA512_IV[13],this.Hh=0|n.SHA512_IV[14],this.Hl=0|n.SHA512_IV[15]}get(){const{Ah:t,Al:e,Bh:r,Bl:n,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:u,Fh:l,Fl:d,Gh:h,Gl:f,Hh:p,Hl:y}=this;return[t,e,r,n,i,o,s,a,c,u,l,d,h,f,p,y]}set(t,e,r,n,i,o,s,a,c,u,l,d,h,f,p,y){this.Ah=0|t,this.Al=0|e,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|u,this.Fh=0|l,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|y}process(t,e){for(let r=0;r<16;r++,e+=4)f[r]=t.getUint32(e),p[r]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|f[t-15],r=0|p[t-15],n=i.rotrSH(e,r,1)^i.rotrSH(e,r,8)^i.shrSH(e,r,7),o=i.rotrSL(e,r,1)^i.rotrSL(e,r,8)^i.shrSL(e,r,7),s=0|f[t-2],a=0|p[t-2],c=i.rotrSH(s,a,19)^i.rotrBH(s,a,61)^i.shrSH(s,a,6),u=i.rotrSL(s,a,19)^i.rotrBL(s,a,61)^i.shrSL(s,a,6),l=i.add4L(o,u,p[t-7],p[t-16]),d=i.add4H(l,n,c,f[t-7],f[t-16]);f[t]=0|d,p[t]=0|l}let{Ah:r,Al:n,Bh:o,Bl:s,Ch:a,Cl:c,Dh:u,Dl:l,Eh:y,El:g,Fh:m,Fl:_,Gh:b,Gl:v,Hh:w,Hl:A}=this;for(let t=0;t<80;t++){const e=i.rotrSH(y,g,14)^i.rotrSH(y,g,18)^i.rotrBH(y,g,41),S=i.rotrSL(y,g,14)^i.rotrSL(y,g,18)^i.rotrBL(y,g,41),E=y&m^~y&b,B=g&_^~g&v,I=i.add5L(A,S,B,h[t],p[t]),L=i.add5H(I,w,e,E,d[t],f[t]),x=0|I,O=i.rotrSH(r,n,28)^i.rotrBH(r,n,34)^i.rotrBH(r,n,39),T=i.rotrSL(r,n,28)^i.rotrBL(r,n,34)^i.rotrBL(r,n,39),k=r&o^r&a^o&a,R=n&s^n&c^s&c;w=0|b,A=0|v,b=0|m,v=0|_,m=0|y,_=0|g,({h:y,l:g}=i.add(0|u,0|l,0|L,0|x)),u=0|a,l=0|c,a=0|o,c=0|s,o=0|r,s=0|n;const C=i.add3L(x,T,R);r=i.add3H(C,L,O,k),n=0|C}({h:r,l:n}=i.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:o,l:s}=i.add(0|this.Bh,0|this.Bl,0|o,0|s)),({h:a,l:c}=i.add(0|this.Ch,0|this.Cl,0|a,0|c)),({h:u,l}=i.add(0|this.Dh,0|this.Dl,0|u,0|l)),({h:y,l:g}=i.add(0|this.Eh,0|this.El,0|y,0|g)),({h:m,l:_}=i.add(0|this.Fh,0|this.Fl,0|m,0|_)),({h:b,l:v}=i.add(0|this.Gh,0|this.Gl,0|b,0|v)),({h:w,l:A}=i.add(0|this.Hh,0|this.Hl,0|w,0|A)),this.set(r,n,o,s,a,c,u,l,y,g,m,_,b,v,w,A)}roundClean(){(0,o.clean)(f,p)}destroy(){(0,o.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}e.SHA512=y;class g extends y{constructor(){super(48),this.Ah=0|n.SHA384_IV[0],this.Al=0|n.SHA384_IV[1],this.Bh=0|n.SHA384_IV[2],this.Bl=0|n.SHA384_IV[3],this.Ch=0|n.SHA384_IV[4],this.Cl=0|n.SHA384_IV[5],this.Dh=0|n.SHA384_IV[6],this.Dl=0|n.SHA384_IV[7],this.Eh=0|n.SHA384_IV[8],this.El=0|n.SHA384_IV[9],this.Fh=0|n.SHA384_IV[10],this.Fl=0|n.SHA384_IV[11],this.Gh=0|n.SHA384_IV[12],this.Gl=0|n.SHA384_IV[13],this.Hh=0|n.SHA384_IV[14],this.Hl=0|n.SHA384_IV[15]}}e.SHA384=g;const m=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),_=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class b extends y{constructor(){super(28),this.Ah=0|m[0],this.Al=0|m[1],this.Bh=0|m[2],this.Bl=0|m[3],this.Ch=0|m[4],this.Cl=0|m[5],this.Dh=0|m[6],this.Dl=0|m[7],this.Eh=0|m[8],this.El=0|m[9],this.Fh=0|m[10],this.Fl=0|m[11],this.Gh=0|m[12],this.Gl=0|m[13],this.Hh=0|m[14],this.Hl=0|m[15]}}e.SHA512_224=b;class v extends y{constructor(){super(32),this.Ah=0|_[0],this.Al=0|_[1],this.Bh=0|_[2],this.Bl=0|_[3],this.Ch=0|_[4],this.Cl=0|_[5],this.Dh=0|_[6],this.Dl=0|_[7],this.Eh=0|_[8],this.El=0|_[9],this.Fh=0|_[10],this.Fl=0|_[11],this.Gh=0|_[12],this.Gl=0|_[13],this.Hh=0|_[14],this.Hl=0|_[15]}}e.SHA512_256=v,e.sha256=(0,o.createHasher)(()=>new c),e.sha224=(0,o.createHasher)(()=>new u),e.sha512=(0,o.createHasher)(()=>new y),e.sha384=(0,o.createHasher)(()=>new g),e.sha512_256=(0,o.createHasher)(()=>new v),e.sha512_224=(0,o.createHasher)(()=>new b)},7110:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(7275),i=r(3325);const o=Symbol("internals");function s(t){return t&&String(t).trim().toLowerCase()}function a(t){return!1===t||null==t?t:n.A.isArray(t)?t.map(a):String(t)}function c(t,e,r,i,o){return n.A.isFunction(i)?i.call(this,e,r):(o&&(e=r),n.A.isString(e)?n.A.isString(i)?-1!==e.indexOf(i):n.A.isRegExp(i)?i.test(e):void 0:void 0)}class u{constructor(t){t&&this.set(t)}set(t,e,r){const o=this;function c(t,e,r){const i=s(e);if(!i)throw new Error("header name must be a non-empty string");const c=n.A.findKey(o,i);(!c||void 0===o[c]||!0===r||void 0===r&&!1!==o[c])&&(o[c||e]=a(t))}const u=(t,e)=>n.A.forEach(t,(t,r)=>c(t,r,e));if(n.A.isPlainObject(t)||t instanceof this.constructor)u(t,e);else if(n.A.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))u((0,i.A)(t),e);else if(n.A.isObject(t)&&n.A.isIterable(t)){let r,i,o={};for(const e of t){if(!n.A.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[i=e[0]]=(r=o[i])?n.A.isArray(r)?[...r,e[1]]:[r,e[1]]:e[1]}u(o,e)}else null!=t&&c(e,t,r);return this}get(t,e){if(t=s(t)){const r=n.A.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(n.A.isFunction(e))return e.call(this,t,r);if(n.A.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=s(t)){const r=n.A.findKey(this,t);return!(!r||void 0===this[r]||e&&!c(0,this[r],r,e))}return!1}delete(t,e){const r=this;let i=!1;function o(t){if(t=s(t)){const o=n.A.findKey(r,t);!o||e&&!c(0,r[o],o,e)||(delete r[o],i=!0)}}return n.A.isArray(t)?t.forEach(o):o(t),i}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const i=e[r];t&&!c(0,this[i],i,t,!0)||(delete this[i],n=!0)}return n}normalize(t){const e=this,r={};return n.A.forEach(this,(i,o)=>{const s=n.A.findKey(r,o);if(s)return e[s]=a(i),void delete e[o];const c=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}(o):String(o).trim();c!==o&&delete e[o],e[c]=a(i),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return n.A.forEach(this,(r,i)=>{null!=r&&!1!==r&&(e[i]=t&&n.A.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(t=>r.set(t)),r}static accessor(t){const e=(this[o]=this[o]={accessors:{}}).accessors,r=this.prototype;function i(t){const i=s(t);e[i]||(!function(t,e){const r=n.A.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(t,r,i){return this[n].call(this,e,t,r,i)},configurable:!0})})}(r,t),e[i]=!0)}return n.A.isArray(t)?t.forEach(i):i(t),this}}u.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),n.A.reduceDescriptors(u.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}}),n.A.freezeMethods(u);const l=u},7202:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHA512_IV=e.SHA384_IV=e.SHA224_IV=e.SHA256_IV=e.HashMD=void 0,e.setBigUint64=i,e.Chi=function(t,e,r){return t&e^~t&r},e.Maj=function(t,e,r){return t&e^t&r^e&r};const n=r(9175);function i(t,e,r,n){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,r,n);const i=BigInt(32),o=BigInt(4294967295),s=Number(r>>i&o),a=Number(r&o),c=n?4:0,u=n?0:4;t.setUint32(e+c,s,n),t.setUint32(e+u,a,n)}class o extends n.Hash{constructor(t,e,r,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=i,this.buffer=new Uint8Array(t),this.view=(0,n.createView)(this.buffer)}update(t){(0,n.aexists)(this),t=(0,n.toBytes)(t),(0,n.abytes)(t);const{view:e,buffer:r,blockLen:i}=this,o=t.length;for(let s=0;s<o;){const a=Math.min(i-this.pos,o-s);if(a===i){const e=(0,n.createView)(t);for(;i<=o-s;s+=i)this.process(e,s);continue}r.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,n.aexists)(this),(0,n.aoutput)(t,this),this.finished=!0;const{buffer:e,view:r,blockLen:o,isLE:s}=this;let{pos:a}=this;e[a++]=128,(0,n.clean)(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(r,0),a=0);for(let t=a;t<o;t++)e[t]=0;i(r,o-8,BigInt(8*this.length),s),this.process(r,0);const c=(0,n.createView)(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=u/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<l;t++)c.setUint32(4*t,d[t],s)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const r=t.slice(0,e);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:r,length:n,finished:i,destroyed:o,pos:s}=this;return t.destroyed=o,t.finished=i,t.length=n,t.pos=s,n%e&&t.buffer.set(r),t}clone(){return this._cloneInto()}}e.HashMD=o,e.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),e.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),e.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),e.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},7265:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9042),i=Object.prototype.hasOwnProperty;const o=function(t,e,r,o,s,a){var c=1&r,u=(0,n.A)(t),l=u.length;if(l!=(0,n.A)(e).length&&!c)return!1;for(var d=l;d--;){var h=u[d];if(!(c?h in e:i.call(e,h)))return!1}var f=a.get(t),p=a.get(e);if(f&&p)return f==e&&p==t;var y=!0;a.set(t,e),a.set(e,t);for(var g=c;++d<l;){var m=t[h=u[d]],_=e[h];if(o)var b=c?o(_,m,h,e,t,a):o(m,_,h,t,e,a);if(!(void 0===b?m===_||s(m,_,r,o,a):b)){y=!1;break}g||(g="constructor"==h)}if(y&&!g){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(y=!1)}return a.delete(t),a.delete(e),y}},7271:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=Object.prototype;const i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},7275:(t,e,r)=>{"use strict";r.d(e,{A:()=>q});var n=r(2125);const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:s,toStringTag:a}=Symbol,c=(u=Object.create(null),t=>{const e=i.call(t);return u[e]||(u[e]=e.slice(8,-1).toLowerCase())});var u;const l=t=>(t=t.toLowerCase(),e=>c(e)===t),d=t=>e=>typeof e===t,{isArray:h}=Array,f=d("undefined");const p=l("ArrayBuffer");const y=d("string"),g=d("function"),m=d("number"),_=t=>null!==t&&"object"==typeof t,b=t=>{if("object"!==c(t))return!1;const e=o(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||a in t||s in t)},v=l("Date"),w=l("File"),A=l("Blob"),S=l("FileList"),E=l("URLSearchParams"),[B,I,L,x]=["ReadableStream","Request","Response","Headers"].map(l);function O(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,i;if("object"!=typeof t&&(t=[t]),h(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{const i=r?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(n=0;n<o;n++)s=i[n],e.call(null,t[s],s,t)}}function T(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,i=r.length;for(;i-- >0;)if(n=r[i],e===n.toLowerCase())return n;return null}const k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,R=t=>!f(t)&&t!==k;const C=(F="undefined"!=typeof Uint8Array&&o(Uint8Array),t=>F&&t instanceof F);var F;const P=l("HTMLFormElement"),M=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),U=l("RegExp"),H=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};O(r,(r,i)=>{let o;!1!==(o=e(r,i,t))&&(n[i]=o||r)}),Object.defineProperties(t,n)};const j=l("AsyncFunction"),N=(V="function"==typeof setImmediate,D=g(k.postMessage),V?setImmediate:D?($=`axios@${Math.random()}`,z=[],k.addEventListener("message",({source:t,data:e})=>{t===k&&e===$&&z.length&&z.shift()()},!1),t=>{z.push(t),k.postMessage($,"*")}):t=>setTimeout(t));var V,D,$,z;const Z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(k):"undefined"!=typeof process&&process.nextTick||N,q={isArray:h,isArrayBuffer:p,isBuffer:function(t){return null!==t&&!f(t)&&null!==t.constructor&&!f(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=c(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e},isString:y,isNumber:m,isBoolean:t=>!0===t||!1===t,isObject:_,isPlainObject:b,isReadableStream:B,isRequest:I,isResponse:L,isHeaders:x,isUndefined:f,isDate:v,isFile:w,isBlob:A,isRegExp:U,isFunction:g,isStream:t=>_(t)&&g(t.pipe),isURLSearchParams:E,isTypedArray:C,isFileList:S,forEach:O,merge:function t(){const{caseless:e}=R(this)&&this||{},r={},n=(n,i)=>{const o=e&&T(r,i)||i;b(r[o])&&b(n)?r[o]=t(r[o],n):b(n)?r[o]=t({},n):h(n)?r[o]=n.slice():r[o]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&O(arguments[t],n);return r},extend:(t,e,r,{allOwnKeys:i}={})=>(O(e,(e,i)=>{r&&g(e)?t[i]=(0,n.A)(e,r):t[i]=e},{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let i,s,a;const c={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],n&&!n(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==r&&o(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:c,kindOfTest:l,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(h(t))return t;let e=t.length;if(!m(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[s]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:P,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors:H,freezeMethods:t=>{H(t,(e,r)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];g(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach(t=>{r[t]=!0})};return h(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:T,global:k,isContextDefined:R,isSpecCompliantForm:function(t){return!!(t&&g(t.append)&&"FormData"===t[a]&&t[s])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(_(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const i=h(t)?[]:{};return O(t,(t,e)=>{const o=r(t,n+1);!f(o)&&(i[e]=o)}),e[n]=void 0,i}}return t};return r(t,0)},isAsyncFn:j,isThenable:t=>t&&(_(t)||g(t))&&g(t.then)&&g(t.catch),setImmediate:N,asap:Z,isIterable:t=>null!=t&&g(t[s])}},7311:(t,e,r)=>{"use strict";r.d(e,{O:()=>a,o:()=>u});var n=r(6568),i=r(8330),o=r(8693),s=r(1089);const a="tokenUpdated",c={maxRetries:3,initialDelay:500};class u{static instance;_appId="";_secret="";_platform;_accessToken="";_expiredTime=0;_version="";_identifier="";_webIdentifier="";_tokenGetter;_tokenPending=null;_dispatch=(0,s.A)(a);_globalDispatcher;constructor(){}static getInstance(){return u.instance||(u.instance=new u),u.instance}async setAccessByAppKey(t){this._tokenGetter=this._fetchToken.bind(this);const{appId:e,secret:r,platform:n}=t;this._appId=e,this._secret=r,this._platform=n,this._version=n?.sdkVersion||i.rE,this._identifier=n?.identifier||await this.getWebIdentifier()}setTokenGetter(t){this._tokenGetter=t}async setupTokenManager(){if(!this._tokenGetter)throw new Error("getTokenAsync() is not set!");const{maxRetries:t,initialDelay:e}=c;let r=0;for(;r<=t;)try{const t=await this._tokenGetter();if(t)return void this._updateContext(t)}catch(n){if(r++,r>t)throw this._globalDispatcher.call("unauthorized"),n;await this._retryDelay(r,e)}}getSdkVersion(){return this._version||i.rE}async getIdentifier(){return this._identifier||await this.getWebIdentifier()}async getAccessToken(){if(this._accessToken&&!this._isTokenExpired)return this._accessToken;if(this._tokenPending)return this._tokenPending;if(!this._tokenGetter)throw new Error("Token getter not configured. Call setGetTokenAsync() first.");return this._tokenPending=this._tokenGetter().then(t=>(this._updateContext(t),this._dispatch.call(a,null,t.accessToken),t.accessToken)).catch(t=>{throw this._tokenPending=null,t}).finally(()=>{this._tokenPending=null}),this._tokenPending}async getWebIdentifier(){if(!this._webIdentifier){const t=await n.Ay.load(),e=await t.get();this._webIdentifier=e.visitorId}return this._webIdentifier}on(t,e){return this._dispatch.on(t,e),{off:()=>this._dispatch.on(t,null)}}setGlobalDispatcher(t){this._globalDispatcher=t}getGlobalDispatcher(){return this._globalDispatcher}clearState(){this._appId="",this._secret="",this._platform=void 0,this._webIdentifier="",this._tokenPending=null,this._tokenGetter=void 0,this._accessToken="",this._expiredTime=0,this._version="",this._identifier=""}get _isTokenExpired(){return this._expiredTime<=Date.now()}_updateContext(t){const{accessToken:e,expiredTime:r,identifier:n,sdkVersion:i}=t;this._accessToken=e,this._expiredTime=r,void 0!==n&&(this._identifier=n),void 0!==i&&(this._version=i)}_fetchToken(){return(0,o.i)(this._appId,this._secret,this._platform)}async _retryDelay(t,e){const r=e*Math.pow(2,t-1);return console.warn(`Retrying in ${r} ms... (Attempt ${t})`),new Promise(t=>setTimeout(t,r))}}},7346:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(2851),i=r(7465),o=r(5353),s=r(3149),a=r(901);const c=function(t,e,r,c){if(!(0,s.A)(t))return t;for(var u=-1,l=(e=(0,i.A)(e,t)).length,d=l-1,h=t;null!=h&&++u<l;){var f=(0,a.A)(e[u]),p=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(u!=d){var y=h[f];void 0===(p=c?c(y,f,h):void 0)&&(p=(0,s.A)(y)?y:(0,o.A)(e[u+1])?[]:{})}(0,n.A)(h,f,p),h=h[f]}return t}},7352:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7275);const i=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){n.A.forEach(this.handlers,function(e){null!==e&&t(e)})}}},7422:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(423),i=r(7064),o=r(8446);const s=function(t){return(0,o.A)(t)?(0,n.A)(t):(0,i.A)(t)}},7465:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2049),i=r(6586),o=r(5722),s=r(8182);const a=function(t,e){return(0,n.A)(t)?t:(0,i.A)(t,e)?[t]:(0,o.A)((0,s.A)(t))}},7500:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(6318);const i=function(t,e,r){var i=null==t?void 0:(0,n.A)(t,e);return void 0===i?r:i}},7511:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9789),i=r(5054);const o=function(t,e){return null!=t&&(0,i.A)(t,e,n.A)}},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=a(t),s=o[0],c=o[1],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,c)),l=0,d=c>0?s-4:s;for(r=0;r<d;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===c&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[l++]=255&e);1===c&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,c=n-i;a<c;a+=s)o.push(u(t,a,a+s>c?c:a+s));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function u(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(c(n));return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7536:(t,e,r)=>{"use strict";r.d(e,{A:()=>w});var n=r(7275),i=r(2125),o=r(5978),s=r(4662),a=r(6013),c=r(7887),u=r(8458),l=r(4874),d=r(9575),h=r(9888),f=r(665),p=r(4062),y=r(605),g=r(8562),m=r(7110),_=r(6263),b=r(7693);const v=function t(e){const r=new o.A(e),a=(0,i.A)(o.A.prototype.request,r);return n.A.extend(a,o.A.prototype,r,{allOwnKeys:!0}),n.A.extend(a,r,null,{allOwnKeys:!0}),a.create=function(r){return t((0,s.A)(e,r))},a}(a.A);v.Axios=o.A,v.CanceledError=u.A,v.CancelToken=l.A,v.isCancel=d.A,v.VERSION=h.x,v.toFormData=f.A,v.AxiosError=p.A,v.Cancel=v.CanceledError,v.all=function(t){return Promise.all(t)},v.spread=y.A,v.isAxiosError=g.A,v.mergeConfig=s.A,v.AxiosHeaders=m.A,v.formToJSON=t=>(0,c.A)(n.A.isHTMLForm(t)?new FormData(t):t),v.getAdapter=_.A.getAdapter,v.HttpStatusCode=b.A,v.default=v;const w=v},7678:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aes256cbc=e.aes256gcm=void 0;var n=r(469);e.aes256gcm=function(t,e,r){return(0,n.gcm)(t,e,r)};e.aes256cbc=function(t,e,r){return(0,n.cbc)(t,e)}},7681:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7919),i=r(8335),o=r(5917);const s=function(t,e){var r=this.__data__;if(r instanceof n.A){var s=r.__data__;if(!i.A||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new o.A(s)}return r.set(t,e),this.size=r.size,this}},7693:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});const n={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(n).forEach(([t,e])=>{n[e]=t});const i=n},7757:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aesDecrypt=e.aesEncrypt=e.symDecrypt=e.symEncrypt=void 0;var n=r(6527),i=r(8489),o=r(7678),s=r(83),a=r(4928),c=r(1666);e.symEncrypt=function(t,e,r){return u(l,t,e,r)};function u(t,e,r,n){var i=(0,a.symmetricAlgorithm)();if("aes-256-gcm"===i)return t(o.aes256gcm,e,r,(0,a.symmetricNonceLength)(),c.AEAD_TAG_LENGTH,n);if("xchacha20"===i)return t(s.xchacha20,e,r,c.XCHACHA20_NONCE_LENGTH,c.AEAD_TAG_LENGTH,n);if("aes-256-cbc"===i)return t(o.aes256cbc,e,r,16,0);throw new Error("Not implemented")}function l(t,e,r,o,s,a){var c=(0,i.randomBytes)(o),u=t(e,c,a).encrypt(r);if(0===s)return(0,n.concatBytes)(c,u);var l=u.length-s,d=u.subarray(0,l),h=u.subarray(l);return(0,n.concatBytes)(c,h,d)}function d(t,e,r,i,o,s){var a=r.subarray(0,i),c=t(e,Uint8Array.from(a),s),u=r.subarray(i);if(0===o)return c.decrypt(u);var l=u.subarray(0,o),d=u.subarray(o);return c.decrypt((0,n.concatBytes)(d,l))}e.symDecrypt=function(t,e,r){return u(d,t,e,r)},e.aesEncrypt=e.symEncrypt,e.aesDecrypt=e.symDecrypt},7808:(t,e,r)=>{"use strict";r.d(e,{Cm:()=>i,EC:()=>s,Uk:()=>o});var n=r(7311);function i(){return n.o.getInstance().getIdentifier()}function o(t){n.o.getInstance().setTokenGetter(t)}function s(){return n.o.getInstance().setupTokenManager()}},7809:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}},7837:(t,e,r)=>{"use strict";r.d(e,{C1:()=>s,Vj:()=>a,mM:()=>c});var n=r(3873),i=r(66),o=r(7275);const s=(t,e,r=3)=>{let o=0;const s=(0,n.A)(50,250);return(0,i.A)(r=>{const n=r.loaded,i=r.lengthComputable?r.total:void 0,a=n-o,c=s(a);o=n;t({loaded:n,total:i,progress:i?n/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&n<=i?(i-n)/c:void 0,event:r,lengthComputable:null!=i,[e?"download":"upload"]:!0})},r)},a=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},c=t=>(...e)=>o.A.asap(()=>t(...e))},7880:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=/\s/;const i=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},7887:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7275);const i=function(t){function e(t,r,i,o){let s=t[o++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),c=o>=t.length;if(s=!s&&n.A.isArray(i)?i.length:s,c)return n.A.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a;i[s]&&n.A.isObject(i[s])||(i[s]=[]);return e(t,r,i[s],o)&&n.A.isArray(i[s])&&(i[s]=function(t){const e={},r=Object.keys(t);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],e[o]=t[o];return e}(i[s])),!a}if(n.A.isFormData(t)&&n.A.isFunction(t.entries)){const r={};return n.A.forEachEntry(t,(t,i)=>{e(function(t){return n.A.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),i,r,0)}),r}return null}},7919:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(6838),i=r(2384),o=r(4787),s=r(8207),a=r(1031);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const u=c},7960:(t,e,r)=>{"use strict";r.d(e,{A:()=>A});var n=r(3820),i=r(7275),o=r(4062),s=r(2723),a=r(1791),c=r(7110),u=r(7837),l=r(8382),d=r(3853);const h="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,f=h&&"function"==typeof ReadableStream,p=h&&("function"==typeof TextEncoder?(y=new TextEncoder,t=>y.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var y;const g=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},m=f&&g(()=>{let t=!1;const e=new Request(n.A.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),_=f&&g(()=>i.A.isReadableStream(new Response("").body)),b={stream:_&&(t=>t.body)};var v;h&&(v=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!b[t]&&(b[t]=i.A.isFunction(v[t])?e=>e[t]():(e,r)=>{throw new o.A(`Response type '${t}' is not supported`,o.A.ERR_NOT_SUPPORT,r)})}));const w=async(t,e)=>{const r=i.A.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(i.A.isBlob(t))return t.size;if(i.A.isSpecCompliantForm(t)){const e=new Request(n.A.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return i.A.isArrayBufferView(t)||i.A.isArrayBuffer(t)?t.byteLength:(i.A.isURLSearchParams(t)&&(t+=""),i.A.isString(t)?(await p(t)).byteLength:void 0)})(e):r},A=h&&(async t=>{let{url:e,method:r,data:n,signal:h,cancelToken:f,timeout:p,onDownloadProgress:y,onUploadProgress:g,responseType:v,headers:A,withCredentials:S="same-origin",fetchOptions:E}=(0,l.A)(t);v=v?(v+"").toLowerCase():"text";let B,I=(0,s.A)([h,f&&f.toAbortSignal()],p);const L=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let x;try{if(g&&m&&"get"!==r&&"head"!==r&&0!==(x=await w(A,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(i.A.isFormData(n)&&(t=r.headers.get("content-type"))&&A.setContentType(t),r.body){const[t,e]=(0,u.Vj)(x,(0,u.C1)((0,u.mM)(g)));n=(0,a.E9)(r.body,65536,t,e)}}i.A.isString(S)||(S=S?"include":"omit");const o="credentials"in Request.prototype;B=new Request(e,{...E,signal:I,method:r.toUpperCase(),headers:A.normalize().toJSON(),body:n,duplex:"half",credentials:o?S:void 0});let s=await fetch(B,E);const l=_&&("stream"===v||"response"===v);if(_&&(y||l&&L)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=s[e]});const e=i.A.toFiniteNumber(s.headers.get("content-length")),[r,n]=y&&(0,u.Vj)(e,(0,u.C1)((0,u.mM)(y),!0))||[];s=new Response((0,a.E9)(s.body,65536,r,()=>{n&&n(),L&&L()}),t)}v=v||"text";let h=await b[i.A.findKey(b,v)||"text"](s,t);return!l&&L&&L(),await new Promise((e,r)=>{(0,d.A)(e,r,{data:h,headers:c.A.from(s.headers),status:s.status,statusText:s.statusText,config:t,request:B})})}catch(e){if(L&&L(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new o.A("Network Error",o.A.ERR_NETWORK,t,B),{cause:e.cause||e});throw o.A.from(e,e&&e.code,t,B)}})},8021:(t,e,r)=>{"use strict";r.d(e,{y:()=>i});var n=r(4543);function i(t,e=30){let r,i=null;return{promise:new Promise((o,s)=>{i=s;const a=performance.now(),c=()=>{t()?(clearInterval(r),o(!0)):(performance.now()-a)/1e3>e&&(s(new n.e("Timeouts or Feature is not found in the map at current zoom level.",{status:404,name:"NetworkError"})),clearInterval(r))};c(),r=setInterval(c,100)}),abort:()=>{r&&(clearInterval(r),r=null),i&&(i(new n.e("Query was aborted by the user.",{status:400,name:"AbortError"})),i=null)}}}},8104:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return null==t?void 0:t[e]}},8167:(t,e,r)=>{"use strict";r.d(e,{Z:()=>s});var n=r(8287),i=r(6748);void 0===globalThis.Buffer&&(globalThis.Buffer=n.hp),i.VV.ellipticCurve="secp256k1",i.VV.symmetricAlgorithm="aes-256-gcm";const o=new TextEncoder;function s(t,e){return(0,i.w)(t,o.encode(e)).toString("hex")}},8182:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(52);const i=function(t){return null==t?"":(0,n.A)(t)}},8207:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(169);const i=function(t){return(0,n.A)(this.__data__,t)>-1}},8262:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9034),i=r(6787);function o(t,e,r){let o=!(0,n.A)(e);return t&&(o||0==r)?(0,i.A)(t,e):e}},8287:(t,e,r)=>{"use strict";const n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=c,e.IS=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|y(t,e);let n=a(r);const i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(K(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return f(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(K(t,SharedArrayBuffer)||t&&K(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return c.from(n,e,r);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||Y(t.length)?a(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function d(t){return l(t),a(t<0?0:0|p(t))}function h(t){const e=t.length<0?0:0|p(t.length),r=a(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function f(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,c.prototype),n}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function y(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(i)return n?-1:q(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,r);case"utf8":case"utf-8":return I(this,e,r);case"ascii":return x(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return B(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function _(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){let o,s=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;o<a;o++)if(u(t,o)===u(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===c)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+c>a&&(r=a-c),o=r;o>=0;o--){let r=!0;for(let n=0;n<c;n++)if(u(t,o+n)!==u(e,n)){r=!1;break}if(r)return o}return-1}function v(t,e,r,n){r=Number(r)||0;const i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=e.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(e.substr(2*s,2),16);if(Y(n))return s;t[r+s]=n}return s}function w(t,e,r,n){return W(q(e,t.length-r),t,r,n)}function A(t,e,r,n){return W(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function S(t,e,r,n){return W(G(e),t,r,n)}function E(t,e,r,n){return W(function(t,e){let r,n,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function B(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function I(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i<r;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,a,c;switch(s){case 1:e<128&&(o=e);break;case 2:r=t[i+1],128==(192&r)&&(c=(31&e)<<6|63&r,c>127&&(o=c));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(c=(15&e)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(c=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(t){const e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=L));return r}(n)}c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,r){return function(t,e,r){return l(t),t<=0?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)}(t,e,r)},c.allocUnsafe=function(t){return d(t)},c.allocUnsafeSlow=function(t){return d(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=c.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if(K(e,Uint8Array))i+e.length>n.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?I(this,0,t):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const r=e.IS;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,r,n,i){if(K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0);const a=Math.min(o,s),u=this.slice(n,i),l=t.slice(e,r);for(let t=0;t<a;++t)if(u[t]!==l[t]){o=u[t],s=l[t];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},c.prototype.indexOf=function(t,e,r){return _(this,t,e,r,!0)},c.prototype.lastIndexOf=function(t,e,r){return _(this,t,e,r,!1)},c.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":case"latin1":case"binary":return A(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const L=4096;function x(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function O(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function T(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=X[t[n]];return i}function k(t,e,r){const n=t.slice(e,r);let i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}function R(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function F(t,e,r,n,i){D(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function P(t,e,r,n,i){D(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function M(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,o){return e=+e,r>>>=0,o||M(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function H(t,e,r,n,o){return e=+e,r>>>=0,o||M(t,0,r,8),i.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=J(function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=J(function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||R(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){t>>>=0,e||R(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=J(function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),c.prototype.readBigInt64BE=J(function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)}),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||R(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){C(this,t,e,r,Math.pow(2,8*r)-1,0)}let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){C(this,t,e,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=J(function(t,e=0){return F(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=J(function(t,e=0){return P(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);C(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);C(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||C(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=J(function(t,e=0){return F(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=J(function(t,e=0){return P(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return H(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return H(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);const i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},c.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{const o=c.isBuffer(t)?t:c.from(t,n),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%s]}return this};const j={};function N(t,e,r){j[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function V(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function D(t,e,r,n,i,o){if(t>r||t<e){const n="bigint"==typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new j.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){$(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||z(e,t.length-(r+1))}(n,i,o)}function $(t,e){if("number"!=typeof t)throw new j.ERR_INVALID_ARG_TYPE(e,"number",t)}function z(t,e,r){if(Math.floor(t)!==t)throw $(t,r),new j.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}N("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),N("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),N("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=V(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function q(t,e){let r;e=e||1/0;const n=t.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function K(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function J(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},8291:(t,e,r)=>{"use strict";function n(t){return t.layers.filter(t=>!o(t.source))}function i(t){return t.layers.filter(t=>o(t.source))}function o(t){return"string"==typeof t&&t.startsWith("indoor-")}r.d(e,{Z3:()=>n,cq:()=>i,ld:()=>o})},8330:t=>{"use strict";t.exports={rE:"9.1.0"}},8335:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(702),i=r(1917);const o=(0,n.A)(i.A,"Map")},8382:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(3820),i=r(7275),o=r(6305),s=r(9887),a=r(8262),c=r(4662),u=r(7110),l=r(3967);const d=t=>{const e=(0,c.A)({},t);let r,{data:d,withXSRFToken:h,xsrfHeaderName:f,xsrfCookieName:p,headers:y,auth:g}=e;if(e.headers=y=u.A.from(y),e.url=(0,l.A)((0,a.A)(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),g&&y.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),i.A.isFormData(d))if(n.A.hasStandardBrowserEnv||n.A.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if(!1!==(r=y.getContentType())){const[t,...e]=r?r.split(";").map(t=>t.trim()).filter(Boolean):[];y.setContentType([t||"multipart/form-data",...e].join("; "))}if(n.A.hasStandardBrowserEnv&&(h&&i.A.isFunction(h)&&(h=h(e)),h||!1!==h&&(0,o.A)(e.url))){const t=f&&p&&s.A.read(p);t&&y.set(f,t)}return e}},8389:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(2559),i=r(2141),o=r(6224);const s=function(t,e){return t&&t.length?(0,n.A)(t,(0,i.A)(e,2),o.A):void 0}},8417:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(674),i=Object.prototype.hasOwnProperty;const o=function(t){var e=this.__data__;if(n.A){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},8446:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9610),i=r(5254);const o=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,n.A)(t)}},8458:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4062);function i(t,e,r){n.A.call(this,null==t?"canceled":t,n.A.ERR_CANCELED,e,r),this.name="CanceledError"}r(7275).A.inherits(i,n.A,{__CANCEL__:!0});const o=i},8489:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gcm=e.ctr=e.cbc=e.utils=void 0,e.randomBytes=o,e.getWebcryptoSubtle=s,e.managedNonce=function(t){const{nonceLength:e}=t;return(0,i.anumber)(e),(r,...n)=>({encrypt(s,...a){const c=o(e),u=t(r,c,...n).encrypt(s,...a),l=(0,i.concatBytes)(c,u);return u.fill(0),l},decrypt(i,...o){const s=i.subarray(0,e),a=i.subarray(e);return t(r,s,...n).decrypt(a,...o)}})};const n=r(5297),i=r(6527);function o(t=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(t));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}function s(){if(n.crypto&&"object"==typeof n.crypto.subtle&&null!=n.crypto.subtle)return n.crypto.subtle;throw new Error("crypto.subtle must be defined")}e.utils={async encrypt(t,e,r,n){const i=s(),o=await i.importKey("raw",t,e,!0,["encrypt"]),a=await i.encrypt(r,o,n);return new Uint8Array(a)},async decrypt(t,e,r,n){const i=s(),o=await i.importKey("raw",t,e,!0,["decrypt"]),a=await i.decrypt(r,o,n);return new Uint8Array(a)}};const a="AES-CBC",c="AES-CTR",u="AES-GCM";function l(t){return(r,n,o)=>{(0,i.abytes)(r),(0,i.abytes)(n);const s={name:t,length:8*r.length},l=function(t,e,r){if(t===a)return{name:a,iv:e};if(t===c)return{name:c,counter:e,length:64};if(t===u)return r?{name:u,iv:e,additionalData:r}:{name:u,iv:e};throw new Error("unknown aes block mode")}(t,n,o);let d=!1;return{encrypt(t){if((0,i.abytes)(t),d)throw new Error("Cannot encrypt() twice with same key / nonce");return d=!0,e.utils.encrypt(r,s,l,t)},decrypt:t=>((0,i.abytes)(t),e.utils.decrypt(r,s,l,t))}}}e.cbc=l(a),e.ctr=l(c),e.gcm=(()=>l(u))()},8510:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.secp256k1_hasher=e.schnorr=e.secp256k1=void 0;const n=r(7076),i=r(9175),o=r(3562),s=r(1761),a=r(4967),c=r(1705),u=r(8627),l={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},d={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},h=BigInt(0),f=BigInt(1),p=BigInt(2);function y(t){const e=l.p,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),c=BigInt(44),u=BigInt(88),d=t*t*t%e,h=d*d*t%e,f=(0,a.pow2)(h,r,e)*h%e,y=(0,a.pow2)(f,r,e)*h%e,m=(0,a.pow2)(y,p,e)*d%e,_=(0,a.pow2)(m,i,e)*m%e,b=(0,a.pow2)(_,o,e)*_%e,v=(0,a.pow2)(b,c,e)*b%e,w=(0,a.pow2)(v,u,e)*v%e,A=(0,a.pow2)(w,c,e)*b%e,S=(0,a.pow2)(A,r,e)*h%e,E=(0,a.pow2)(S,s,e)*_%e,B=(0,a.pow2)(E,n,e)*d%e,I=(0,a.pow2)(B,p,e);if(!g.eql(g.sqr(I),t))throw new Error("Cannot find square root");return I}const g=(0,a.Field)(l.p,void 0,void 0,{sqrt:y});e.secp256k1=(0,o.createCurve)({...l,Fp:g,lowS:!0,endo:d},n.sha256);const m={};function _(t,...e){let r=m[t];if(void 0===r){const e=(0,n.sha256)(Uint8Array.from(t,t=>t.charCodeAt(0)));r=(0,u.concatBytes)(e,e),m[t]=r}return(0,n.sha256)((0,u.concatBytes)(r,...e))}const b=t=>t.toBytes(!0).slice(1),v=t=>(0,u.numberToBytesBE)(t,32),w=t=>(0,a.mod)(t,l.p),A=t=>(0,a.mod)(t,l.n),S=(()=>e.secp256k1.Point)(),E=t=>t%p===h;function B(t){let e=(0,c._normFnElement)(S.Fn,t),r=S.BASE.multiply(e);return{scalar:E(r.y)?e:A(-e),bytes:b(r)}}function I(t){(0,u.aInRange)("x",t,f,l.p);const e=w(t*t);let r=y(w(e*t+BigInt(7)));E(r)||(r=w(-r));const n=S.fromAffine({x:t,y:r});return n.assertValidity(),n}const L=u.bytesToNumberBE;function x(...t){return A(L(_("BIP0340/challenge",...t)))}function O(t){return B(t).bytes}function T(t,e,r=(0,i.randomBytes)(32)){const n=(0,u.ensureBytes)("message",t),{bytes:o,scalar:s}=B(e),a=(0,u.ensureBytes)("auxRand",r,32),c=v(s^L(_("BIP0340/aux",a))),l=_("BIP0340/nonce",c,o,n),d=A(L(l));if(d===h)throw new Error("sign failed: k is zero");const{bytes:f,scalar:p}=B(d),y=x(f,o,n),g=new Uint8Array(64);if(g.set(f,0),g.set(v(A(p+y*s)),32),!k(g,n,o))throw new Error("sign: Invalid signature produced");return g}function k(t,e,r){const n=(0,u.ensureBytes)("signature",t,64),i=(0,u.ensureBytes)("message",e),o=(0,u.ensureBytes)("publicKey",r,32);try{const t=I(L(o)),e=L(n.subarray(0,32));if(!(0,u.inRange)(e,f,l.p))return!1;const r=L(n.subarray(32,64));if(!(0,u.inRange)(r,f,l.n))return!1;const s=x(v(e),b(t),i),a=S.BASE.multiplyUnsafe(r).add(t.multiplyUnsafe(A(-s))),{x:c,y:d}=a.toAffine();return!(a.is0()||!E(d)||c!==e)}catch(t){return!1}}e.schnorr=(()=>{const t=(t=(0,i.randomBytes)(48))=>(0,a.mapHashToField)(t,l.n);return e.secp256k1.utils.randomSecretKey,{keygen:function(e){const r=t(e);return{secretKey:r,publicKey:O(r)}},getPublicKey:O,sign:T,verify:k,Point:S,utils:{randomSecretKey:t,randomPrivateKey:t,taggedHash:_,lift_x:I,pointToBytes:b,numberToBytesBE:u.numberToBytesBE,bytesToNumberBE:u.bytesToNumberBE,mod:a.mod},info:{type:"weierstrass",publicKeyHasPrefix:!1,lengths:{secret:32,public:32,signature:64,seed:48}}}})();const R=(()=>(0,s.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(t=>t.map(t=>BigInt(t)))))(),C=(()=>(0,c.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))();e.secp256k1_hasher=(0,s.createHasher)(e.secp256k1.Point,t=>{const{x:e,y:r}=C(g.create(t[0]));return R(e,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}),e.hashToCurve=e.secp256k1_hasher.hashToCurve,e.encodeToCurve=e.secp256k1_hasher.encodeToCurve},8556:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n="undefined"!=typeof FormData?FormData:null},8562:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7275);function i(t){return n.A.isObject(t)&&!0===t.isAxiosError}},8627:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notImplemented=e.bitMask=e.utf8ToBytes=e.randomBytes=e.isBytes=e.hexToBytes=e.concatBytes=e.bytesToUtf8=e.bytesToHex=e.anumber=e.abytes=void 0,e.abool=function(t,e){if("boolean"!=typeof e)throw new Error(t+" boolean expected, got "+e)},e.numberToHexUnpadded=a,e.hexToNumber=c,e.bytesToNumberBE=function(t){return c((0,n.bytesToHex)(t))},e.bytesToNumberLE=function(t){return(0,n.abytes)(t),c((0,n.bytesToHex)(Uint8Array.from(t).reverse()))},e.numberToBytesBE=u,e.numberToBytesLE=function(t,e){return u(t,e).reverse()},e.numberToVarBytesBE=function(t){return(0,n.hexToBytes)(a(t))},e.ensureBytes=function(t,e,r){let i;if("string"==typeof e)try{i=(0,n.hexToBytes)(e)}catch(e){throw new Error(t+" must be hex string or Uint8Array, cause: "+e)}else{if(!(0,n.isBytes)(e))throw new Error(t+" must be hex string or Uint8Array");i=Uint8Array.from(e)}const o=i.length;if("number"==typeof r&&o!==r)throw new Error(t+" of length "+r+" expected, got "+o);return i},e.equalBytes=function(t,e){if(t.length!==e.length)return!1;let r=0;for(let n=0;n<t.length;n++)r|=t[n]^e[n];return 0===r},e.inRange=d,e.aInRange=function(t,e,r,n){if(!d(e,r,n))throw new Error("expected valid "+t+": "+r+" <= n < "+n+", got "+e)},e.bitLen=function(t){let e;for(e=0;t>o;t>>=s,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&s},e.bitSet=function(t,e,r){return t|(r?s:o)<<BigInt(e)},e.createHmacDrbg=function(t,e,r){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");const i=t=>new Uint8Array(t),o=t=>Uint8Array.of(t);let s=i(t),a=i(t),c=0;const u=()=>{s.fill(1),a.fill(0),c=0},l=(...t)=>r(a,s,...t),d=(t=i(0))=>{a=l(o(0),t),s=l(),0!==t.length&&(a=l(o(1),t),s=l())},h=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const r=[];for(;t<e;){s=l();const e=s.slice();r.push(e),t+=s.length}return(0,n.concatBytes)(...r)};return(t,e)=>{let r;for(u(),d(t);!(r=e(h()));)d();return u(),r}},e.validateObject=function(t,e,r={}){const n=(e,r,n)=>{const i=h[r];if("function"!=typeof i)throw new Error("invalid validator function");const o=t[e];if(!(n&&void 0===o||i(o,t)))throw new Error("param "+String(e)+" is invalid. Expected "+r+", got "+o)};for(const[t,r]of Object.entries(e))n(t,r,!1);for(const[t,e]of Object.entries(r))n(t,e,!0);return t},e.isHash=function(t){return"function"==typeof t&&Number.isSafeInteger(t.outputLen)},e._validateObject=function(t,e,r={}){if(!t||"object"!=typeof t)throw new Error("expected valid options object");function n(e,r,n){const i=t[e];if(n&&void 0===i)return;const o=typeof i;if(o!==r||null===i)throw new Error(`param "${e}" is invalid: expected ${r}, got ${o}`)}Object.entries(e).forEach(([t,e])=>n(t,e,!1)),Object.entries(r).forEach(([t,e])=>n(t,e,!0))},e.memoized=function(t){const e=new WeakMap;return(r,...n)=>{const i=e.get(r);if(void 0!==i)return i;const o=t(r,...n);return e.set(r,o),o}};const n=r(9175);var i=r(9175);Object.defineProperty(e,"abytes",{enumerable:!0,get:function(){return i.abytes}}),Object.defineProperty(e,"anumber",{enumerable:!0,get:function(){return i.anumber}}),Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return i.bytesToHex}}),Object.defineProperty(e,"bytesToUtf8",{enumerable:!0,get:function(){return i.bytesToUtf8}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return i.concatBytes}}),Object.defineProperty(e,"hexToBytes",{enumerable:!0,get:function(){return i.hexToBytes}}),Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return i.isBytes}}),Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return i.randomBytes}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return i.utf8ToBytes}});const o=BigInt(0),s=BigInt(1);function a(t){const e=t.toString(16);return 1&e.length?"0"+e:e}function c(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return""===t?o:BigInt("0x"+t)}function u(t,e){return(0,n.hexToBytes)(t.toString(16).padStart(2*e,"0"))}const l=t=>"bigint"==typeof t&&o<=t;function d(t,e,r){return l(t)&&l(e)&&l(r)&&e<=t&&t<r}e.bitMask=t=>(s<<BigInt(t))-s;const h={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,stringOrUint8Array:t=>"string"==typeof t||(0,n.isBytes)(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};e.notImplemented=()=>{throw new Error("not implemented")}},8672:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},8683:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(9152),i=r(9575),o=r(6013),s=r(8458),a=r(7110),c=r(6263);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s.A(null,t)}function l(t){u(t),t.headers=a.A.from(t.headers),t.data=n.A.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return c.A.getAdapter(t.adapter||o.A.adapter)(t).then(function(e){return u(t),e.data=n.A.call(t,t.transformResponse,e),e.headers=a.A.from(e.headers),e},function(e){return(0,i.A)(e)||(u(t),e&&e.response&&(e.response.data=n.A.call(t,t.transformResponse,e.response),e.response.headers=a.A.from(e.response.headers))),Promise.reject(e)})}},8693:(t,e,r)=>{"use strict";r.d(e,{i:()=>l});var n=r(2658),i=r(5461),o=r(7808),s=r(9588),a=r(8167),c=r(8330);const u=["CORE_SDK",...(0,n.d)()];async function l(t,e,r,n){if(!t||!e)throw new Error("appId and secret are required");try{const l=await(0,i.l)(),h=await async function(t,e=d){return t??async function(t){return{identifier:await(0,o.Cm)(),origin:t,keyPlatform:"WEB",sdkVersion:c.rE}}(e)}(r,n),{identifier:f,sdkVersion:p,...y}=h,g={"Content-Type":"text/plain",sdkVersion:p},m=function(t,e){return(0,a.Z)(t,JSON.stringify(e))}(l,{appId:t,secret:e,identifier:f,timestamp:Date.now(),products:u,...y}),_=await fetch(s.R0,{method:"POST",body:m,headers:g});if(!_.ok){const t=await _.json(),{code:e,message:r}=t;if(401===_.status&&7001005===e)throw(0,i.U)(),new Error(r);throw new Error(r||`HTTP error! status: ${_.status}`)}const b=await _.json(),{accessToken:v,expiresIn:w}=b;return{accessToken:v,expiredTime:Date.now()+1e3*(w-90)}}catch(t){throw t instanceof Error?new Error(`Failed to get access token: ${t.message}`,{cause:t}):new Error(`Failed to get access token: ${String(t)}`)}}const d="undefined"!=typeof window&&window.location?.hostname?window.location.hostname:"restriction.test.example.com"},8700:(t,e,r)=>{"use strict";function n(t,e=","){return"string"==typeof t&&t.trim()?t.split(e):[]}r.d(e,{S:()=>n})},8719:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(9717),i=r(2789),o=r(4841),s=o.A&&o.A.isTypedArray;const a=s?(0,i.A)(s):n.A},8776:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9313),i=1/0;const o=function(t){return t?(t=(0,n.A)(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},8813:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(674),i=Object.prototype.hasOwnProperty;const o=function(t){var e=this.__data__;return n.A?void 0!==e[t]:i.call(e,t)}},8823:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(3149),i=r(7271),o=r(1493),s=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,n.A)(t))return(0,o.A)(t);var e=(0,i.A)(t),r=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&r.push(a);return r}},8884:(t,e,r)=>{"use strict";var n;r.d(e,{e:()=>n}),function(t){t.Access="access_control",t.Map="map"}(n||(n={}))},8900:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.xchacha20poly1305=e.chacha20poly1305=e._poly1305_aead=e.chacha12=e.chacha8=e.xchacha20=e.chacha20=e.chacha20orig=void 0,e.hchacha=a;const n=r(2506),i=r(1210),o=r(6527);function s(t,e,r,i,o,s=20){let a=t[0],c=t[1],u=t[2],l=t[3],d=e[0],h=e[1],f=e[2],p=e[3],y=e[4],g=e[5],m=e[6],_=e[7],b=o,v=r[0],w=r[1],A=r[2],S=a,E=c,B=u,I=l,L=d,x=h,O=f,T=p,k=y,R=g,C=m,F=_,P=b,M=v,U=w,H=A;for(let t=0;t<s;t+=2)S=S+L|0,P=(0,n.rotl)(P^S,16),k=k+P|0,L=(0,n.rotl)(L^k,12),S=S+L|0,P=(0,n.rotl)(P^S,8),k=k+P|0,L=(0,n.rotl)(L^k,7),E=E+x|0,M=(0,n.rotl)(M^E,16),R=R+M|0,x=(0,n.rotl)(x^R,12),E=E+x|0,M=(0,n.rotl)(M^E,8),R=R+M|0,x=(0,n.rotl)(x^R,7),B=B+O|0,U=(0,n.rotl)(U^B,16),C=C+U|0,O=(0,n.rotl)(O^C,12),B=B+O|0,U=(0,n.rotl)(U^B,8),C=C+U|0,O=(0,n.rotl)(O^C,7),I=I+T|0,H=(0,n.rotl)(H^I,16),F=F+H|0,T=(0,n.rotl)(T^F,12),I=I+T|0,H=(0,n.rotl)(H^I,8),F=F+H|0,T=(0,n.rotl)(T^F,7),S=S+x|0,H=(0,n.rotl)(H^S,16),C=C+H|0,x=(0,n.rotl)(x^C,12),S=S+x|0,H=(0,n.rotl)(H^S,8),C=C+H|0,x=(0,n.rotl)(x^C,7),E=E+O|0,P=(0,n.rotl)(P^E,16),F=F+P|0,O=(0,n.rotl)(O^F,12),E=E+O|0,P=(0,n.rotl)(P^E,8),F=F+P|0,O=(0,n.rotl)(O^F,7),B=B+T|0,M=(0,n.rotl)(M^B,16),k=k+M|0,T=(0,n.rotl)(T^k,12),B=B+T|0,M=(0,n.rotl)(M^B,8),k=k+M|0,T=(0,n.rotl)(T^k,7),I=I+L|0,U=(0,n.rotl)(U^I,16),R=R+U|0,L=(0,n.rotl)(L^R,12),I=I+L|0,U=(0,n.rotl)(U^I,8),R=R+U|0,L=(0,n.rotl)(L^R,7);let j=0;i[j++]=a+S|0,i[j++]=c+E|0,i[j++]=u+B|0,i[j++]=l+I|0,i[j++]=d+L|0,i[j++]=h+x|0,i[j++]=f+O|0,i[j++]=p+T|0,i[j++]=y+k|0,i[j++]=g+R|0,i[j++]=m+C|0,i[j++]=_+F|0,i[j++]=b+P|0,i[j++]=v+M|0,i[j++]=w+U|0,i[j++]=A+H|0}function a(t,e,r,i){let o=t[0],s=t[1],a=t[2],c=t[3],u=e[0],l=e[1],d=e[2],h=e[3],f=e[4],p=e[5],y=e[6],g=e[7],m=r[0],_=r[1],b=r[2],v=r[3];for(let t=0;t<20;t+=2)o=o+u|0,m=(0,n.rotl)(m^o,16),f=f+m|0,u=(0,n.rotl)(u^f,12),o=o+u|0,m=(0,n.rotl)(m^o,8),f=f+m|0,u=(0,n.rotl)(u^f,7),s=s+l|0,_=(0,n.rotl)(_^s,16),p=p+_|0,l=(0,n.rotl)(l^p,12),s=s+l|0,_=(0,n.rotl)(_^s,8),p=p+_|0,l=(0,n.rotl)(l^p,7),a=a+d|0,b=(0,n.rotl)(b^a,16),y=y+b|0,d=(0,n.rotl)(d^y,12),a=a+d|0,b=(0,n.rotl)(b^a,8),y=y+b|0,d=(0,n.rotl)(d^y,7),c=c+h|0,v=(0,n.rotl)(v^c,16),g=g+v|0,h=(0,n.rotl)(h^g,12),c=c+h|0,v=(0,n.rotl)(v^c,8),g=g+v|0,h=(0,n.rotl)(h^g,7),o=o+l|0,v=(0,n.rotl)(v^o,16),y=y+v|0,l=(0,n.rotl)(l^y,12),o=o+l|0,v=(0,n.rotl)(v^o,8),y=y+v|0,l=(0,n.rotl)(l^y,7),s=s+d|0,m=(0,n.rotl)(m^s,16),g=g+m|0,d=(0,n.rotl)(d^g,12),s=s+d|0,m=(0,n.rotl)(m^s,8),g=g+m|0,d=(0,n.rotl)(d^g,7),a=a+h|0,_=(0,n.rotl)(_^a,16),f=f+_|0,h=(0,n.rotl)(h^f,12),a=a+h|0,_=(0,n.rotl)(_^a,8),f=f+_|0,h=(0,n.rotl)(h^f,7),c=c+u|0,b=(0,n.rotl)(b^c,16),p=p+b|0,u=(0,n.rotl)(u^p,12),c=c+u|0,b=(0,n.rotl)(b^c,8),p=p+b|0,u=(0,n.rotl)(u^p,7);let w=0;i[w++]=o,i[w++]=s,i[w++]=a,i[w++]=c,i[w++]=m,i[w++]=_,i[w++]=b,i[w++]=v}e.chacha20orig=(0,n.createCipher)(s,{counterRight:!1,counterLength:8,allowShortKeys:!0}),e.chacha20=(0,n.createCipher)(s,{counterRight:!1,counterLength:4,allowShortKeys:!1}),e.xchacha20=(0,n.createCipher)(s,{counterRight:!1,counterLength:8,extendNonceFn:a,allowShortKeys:!1}),e.chacha8=(0,n.createCipher)(s,{counterRight:!1,counterLength:4,rounds:8}),e.chacha12=(0,n.createCipher)(s,{counterRight:!1,counterLength:4,rounds:12});const c=new Uint8Array(16),u=(t,e)=>{t.update(e);const r=e.length%16;r&&t.update(c.subarray(r))},l=new Uint8Array(32);function d(t,e,r,n,s){const a=t(e,r,l),c=i.poly1305.create(a);s&&u(c,s),u(c,n);const d=(0,o.u64Lengths)(n.length,s?s.length:0,!0);c.update(d);const h=c.digest();return(0,o.clean)(a,d),h}e._poly1305_aead=t=>(e,r,n)=>{const i=16;return{encrypt(s,a){const c=s.length;(a=(0,o.getOutput)(c+i,a,!1)).set(s);const u=a.subarray(0,-16);t(e,r,u,u,1);const l=d(t,e,r,u,n);return a.set(l,c),(0,o.clean)(l),a},decrypt(s,a){a=(0,o.getOutput)(s.length-i,a,!1);const c=s.subarray(0,-16),u=s.subarray(-16),l=d(t,e,r,c,n);if(!(0,o.equalBytes)(u,l))throw new Error("invalid tag");return a.set(s.subarray(0,-16)),t(e,r,a,a,1),(0,o.clean)(l),a}}},e.chacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:12,tagLength:16},(0,e._poly1305_aead)(e.chacha20)),e.xchacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:24,tagLength:16},(0,e._poly1305_aead)(e.xchacha20))},8967:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(1275),i=r(3736),o=r(4099);const s=function(t,e,r,s,a,c){var u=1&r,l=t.length,d=e.length;if(l!=d&&!(u&&d>l))return!1;var h=c.get(t),f=c.get(e);if(h&&f)return h==e&&f==t;var p=-1,y=!0,g=2&r?new n.A:void 0;for(c.set(t,e),c.set(e,t);++p<l;){var m=t[p],_=e[p];if(s)var b=u?s(_,m,p,e,t,c):s(m,_,p,t,e,c);if(void 0!==b){if(b)continue;y=!1;break}if(g){if(!(0,i.A)(e,function(t,e){if(!(0,o.A)(g,e)&&(m===t||a(m,t,r,s,c)))return g.push(e)})){y=!1;break}}else if(m!==_&&!a(m,_,r,s,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},9008:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return t}},9034:(t,e,r)=>{"use strict";function n(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}r.d(e,{A:()=>n})},9042:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(3831),i=r(4792),o=r(7422);const s=function(t){return(0,n.A)(t,o.A,i.A)}},9065:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var n=r(5295);Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return n.PrivateKey}});var i=r(2557);Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}})},9084:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(6318),i=r(7346),o=r(7465);const s=function(t,e,r){for(var s=-1,a=e.length,c={};++s<a;){var u=e[s],l=(0,n.A)(t,u);r(l,u)&&(0,i.A)(c,(0,o.A)(u,t),l)}return c}},9109:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9857),i=r(2302),o=r(9959);const s=n.A&&1/(0,o.A)(new n.A([,-0]))[1]==1/0?function(t){return new n.A(t)}:i.A},9152:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(7275),i=r(6013),o=r(7110);function s(t,e){const r=this||i.A,s=e||r,a=o.A.from(s.headers);let c=s.data;return n.A.forEach(t,function(t){c=t.call(r,c,a.normalize(),e?e.status:void 0)}),a.normalize(),c}},9175:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=i,e.anumber=o,e.abytes=s,e.ahash=function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");o(t.outputLen),o(t.blockLen)},e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){s(t);const r=e.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)},e.u8=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},e.u32=function(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))},e.clean=function(...t){for(let e=0;e<t.length;e++)t[e].fill(0)},e.createView=function(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)},e.rotr=function(t,e){return t<<32-e|t>>>e},e.rotl=function(t,e){return t<<e|t>>>32-e>>>0},e.byteSwap=a,e.byteSwap32=c,e.bytesToHex=function(t){if(s(t),u)return t.toHex();let e="";for(let r=0;r<t.length;r++)e+=l[t[r]];return e},e.hexToBytes=function(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(u)return Uint8Array.fromHex(t);const e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const n=new Uint8Array(r);for(let e=0,i=0;e<r;e++,i+=2){const r=h(t.charCodeAt(i)),o=h(t.charCodeAt(i+1));if(void 0===r||void 0===o){const e=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+i)}n[e]=16*r+o}return n},e.asyncLoop=async function(t,r,n){let i=Date.now();for(let o=0;o<t;o++){n(o);const t=Date.now()-i;t>=0&&t<r||(await(0,e.nextTick)(),i+=t)}},e.utf8ToBytes=f,e.bytesToUtf8=function(t){return(new TextDecoder).decode(t)},e.toBytes=p,e.kdfInputToBytes=function(t){"string"==typeof t&&(t=f(t));return s(t),t},e.concatBytes=function(...t){let e=0;for(let r=0;r<t.length;r++){const n=t[r];s(n),e+=n.length}const r=new Uint8Array(e);for(let e=0,n=0;e<t.length;e++){const i=t[e];r.set(i,n),n+=i.length}return r},e.checkOpts=function(t,e){if(void 0!==e&&"[object Object]"!=={}.toString.call(e))throw new Error("options should be object or undefined");return Object.assign(t,e)},e.createHasher=y,e.createOptHasher=g,e.createXOFer=m,e.randomBytes=function(t=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(t));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return Uint8Array.from(n.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")};const n=r(5145);function i(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function o(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function s(t,...e){if(!i(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function a(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function c(t){for(let e=0;e<t.length;e++)t[e]=a(t[e]);return t}e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],e.swap8IfBE=e.isLE?t=>t:t=>a(t),e.byteSwapIfBE=e.swap8IfBE,e.swap32IfBE=e.isLE?t=>t:c;const u=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),l=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));const d={_0:48,_9:57,A:65,F:70,a:97,f:102};function h(t){return t>=d._0&&t<=d._9?t-d._0:t>=d.A&&t<=d.F?t-(d.A-10):t>=d.a&&t<=d.f?t-(d.a-10):void 0}function f(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function p(t){return"string"==typeof t&&(t=f(t)),s(t),t}e.nextTick=async()=>{};function y(t){const e=e=>t().update(p(e)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function g(t){const e=(e,r)=>t(r).update(p(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e}function m(t){const e=(e,r)=>t(r).update(p(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e}e.Hash=class{},e.wrapConstructor=y,e.wrapConstructorWithOpts=g,e.wrapXOFConstructorWithOpts=m},9190:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},9205:(t,e,r)=>{"use strict";r.d(e,{N:()=>n});class n{_indoor;_isEnabled=!0;constructor(t){this._indoor=t}enable(){this._isEnabled=!0,this._indoor.setAllowBuildingSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowBuildingSwitch(!1)}get isEnabled(){return this._isEnabled}}},9266:(t,e,r)=>{"use strict";r.d(e,{ASSISTANT_LAYER_INDOOR_FLOORS:()=>s.FI,ASSISTANT_LAYER_SHARED_FLOORS:()=>s.TU,ERRORS:()=>l.S,OFFSET:()=>i.e$,PAGE:()=>i.KL,VERSION:()=>d,__internal:()=>u.S,convertBrowserLangToPresetLang:()=>o.y,getAccessToken:()=>a.i,getIdentifier:()=>c.Cm,setGetTokenAsync:()=>c.Uk,setupTokenManager:()=>c.EC});var n=r(8330),i=r(9588),o=r(4969),s=r(1965),a=r(8693),c=r(7808),u=r(2658),l=r(9489);const d=n.rE},9313:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(5488),i=r(3149),o=r(1882),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;const l=function(t){if("number"==typeof t)return t;if((0,o.A)(t))return NaN;if((0,i.A)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,i.A)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=(0,n.A)(t);var r=a.test(t);return r||c.test(t)?u(t.slice(2),r?2:8):s.test(t)?NaN:+t}},9378:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hexToPublicKey=e.convertPublicKeyFormat=e.getSharedPoint=e.getPublicKey=e.isValidPrivateKey=e.getValidSecret=void 0;var n=r(8489),i=r(459),o=r(8510),s=r(4928),a=r(1666),c=r(3503);e.getValidSecret=function(t){var r;do{r=(0,n.randomBytes)(a.SECRET_KEY_LENGTH)}while(!(0,e.isValidPrivateKey)(r,t));return r};e.isValidPrivateKey=function(t,e){return u(e||(0,s.ellipticCurve)(),function(e){return e.utils.isValidPrivateKey(t)},function(){return!0},function(){return!0})};e.getPublicKey=function(t,e){return u(e||(0,s.ellipticCurve)(),function(e){return e.getPublicKey(t)},function(e){return e.getPublicKey(t)},function(e){return e.getPublicKey(t)})};e.getSharedPoint=function(t,e,r,n){return u(n||(0,s.ellipticCurve)(),function(n){return n.getSharedSecret(t,e,r)},function(r){return r.getSharedSecret(t,e)},function(r){return d(r,t,e)})};e.convertPublicKeyFormat=function(t,e,r){return u(r||(0,s.ellipticCurve)(),function(r){return r.getSharedSecret(BigInt(1),t,e)},function(){return t},function(){return t})};function u(t,e,r,n){if("secp256k1"===t)return e(o.secp256k1);if("x25519"===t)return r(i.x25519);if("ed25519"===t)return n(i.ed25519);throw new Error("Not implemented")}e.hexToPublicKey=function(t,e){var r=(0,c.decodeHex)(t);return u(e||(0,s.ellipticCurve)(),function(){return l(r)},function(){return r},function(){return r})};var l=function(t){if(t.length===a.ETH_PUBLIC_KEY_SIZE){var e=new Uint8Array(1+t.length);return e.set([4]),e.set(t,1),e}return t},d=function(t,e,r){var n=t.utils.getExtendedPublicKey(e).scalar;return t.ExtendedPoint.fromHex(r).multiply(n).toRawBytes()}},9396:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(3149);const i=function(t){return t==t&&!(0,n.A)(t)}},9408:(t,e,r)=>{"use strict";var n;r.d(e,{S:()=>n}),function(t){t.CHRISTMAS="christmas",t.HALLOWEEN="halloween",t.MAPPY_BEE="mappyBee",t.MAPXUS="mapxus",t.LANDS_D="landsD",t.COMMON="common",t.MAPXUS_V2="mapxus_v2",t.MAPXUS_DEFAULT="mapxus_default"}(n||(n={}))},9489:(t,e,r)=>{"use strict";r.d(e,{S:()=>o});var n=r(1089),i=r(7311);const o=["unauthorized","initError"],s=globalThis,a=(0,n.A)(...o);i.o.getInstance().setGlobalDispatcher(a),s.MapxusMapEvents=s.MapxusMapEvents||{},s.MapxusMapEvents.on=function(t,e){return a.on(t,e),{off:()=>a.on(t,null)}}},9520:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},9573:(t,e,r)=>{"use strict";function n(t){let e=!0,r="";if(Array.isArray(t)){const n=t.filter(i);e=0===n.length,r=n.join(",")}else i(t)&&(e=!1,r=t.trim());return e?null:r}function i(t){return"string"==typeof t&&t.trim().length>0}function o(t){return Array.isArray(t)&&2===t.length&&t.every(t=>"number"==typeof t)}function s(t){return Array.isArray(t)&&2===t.length&&t.every(t=>o(t))}function a(t){return"number"==typeof t&&t>0}r.d(e,{BW:()=>i,ES:()=>o,F5:()=>a,VS:()=>n,dD:()=>s})},9575:(t,e,r)=>{"use strict";function n(t){return!(!t||!t.__CANCEL__)}r.d(e,{A:()=>n})},9588:(t,e,r)=>{"use strict";r.d(e,{KL:()=>a,R0:()=>n,e$:()=>s,hl:()=>i,kk:()=>o});const n="https://map-api.mapxus.co.jp/accounts/v1/auth/secure-token",i="https://map-api.mapxus.co.jp/bms",o="https://map-sdk.mapxus.co.jp/prod/static/resources/manifest-z6frc5.dat",s=10,a=1},9610:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9672),i=r(3149);const o=function(t){if(!(0,i.A)(t))return!1;var e=(0,n.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9615:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const n=r(9175);class i extends n.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,n.ahash)(t);const r=(0,n.toBytes)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(r.length>i?t.create().update(r).digest():r);for(let t=0;t<o.length;t++)o[t]^=54;this.iHash.update(o),this.oHash=t.create();for(let t=0;t<o.length;t++)o[t]^=106;this.oHash.update(o),(0,n.clean)(o)}update(t){return(0,n.aexists)(this),this.iHash.update(t),this}digestInto(t){(0,n.aexists)(this),(0,n.abytes)(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:s}=this;return t.finished=n,t.destroyed=i,t.blockLen=o,t.outputLen=s,t.oHash=e._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=i;e.hmac=(t,e,r)=>new i(t,e).update(r).digest(),e.hmac.create=(t,e)=>new i(t,e)},9644:(t,e,r)=>{"use strict";r.d(e,{C:()=>n});class n{_floorSelector;_isEnabled;_position;constructor(t){this._floorSelector=t,this._position=t.position,this._isEnabled=this._floorSelector.enabled}enable(){this._isEnabled=!0,this._floorSelector.setEnabled(!0)}disable(){this._isEnabled=!1,this._floorSelector.setEnabled(!1)}setPosition(t,e){this._position=t,this._floorSelector.changePosition(this._floorSelector.position,t,e)}setStyle(t){this._floorSelector.setStyle(t)}get isEnabled(){return this._isEnabled}get position(){return this._position}}},9672:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(241),i=r(451),o=r(5606),s=n.A?n.A.toStringTag:void 0;const a=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?(0,i.A)(t):(0,o.A)(t)}},9717:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(9672),i=r(5254),o=r(3098),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;const a=function(t){return(0,o.A)(t)&&(0,i.A)(t.length)&&!!s[(0,n.A)(t)]}},9789:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return null!=t&&e in Object(t)}},9846:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5547);const i=function(t){var e=(0,n.A)(this,t).delete(t);return this.size-=e?1:0,e}},9857:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(702),i=r(1917);const o=(0,n.A)(i.A,"Set")},9875:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return this.__data__.has(t)}},9887:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(7275);const i=r(3820).A.hasStandardBrowserEnv?{write(t,e,r,i,o,s){const a=[t+"="+encodeURIComponent(e)];n.A.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.A.isString(i)&&a.push("path="+i),n.A.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}}},9888:(t,e,r)=>{"use strict";r.d(e,{x:()=>n});const n="1.10.0"},9914:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},9959:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},9983:(t,e,r)=>{"use strict";r.d(e,{G:()=>n.G,Z:()=>i.Z});var n=r(4762),i=r(3442)}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{ASSISTANT_LAYER_INDOOR_FLOORS:()=>h.ASSISTANT_LAYER_INDOOR_FLOORS,ASSISTANT_LAYER_SHARED_FLOORS:()=>h.ASSISTANT_LAYER_SHARED_FLOORS,AccessControl:()=>a.k,AccessControlOrigin:()=>d.en,BuildingFilterControl:()=>c.G,BuildingSelectorHandler:()=>u.EJ,BuildingsService:()=>l.H$,DistanceSearchType:()=>d.Kp,ERRORS:()=>h.ERRORS,FloorSelectorHandler:()=>u.CA,FloorsControl:()=>c.Z,Indoor:()=>e.SN,Map:()=>t.T,Marker:()=>i.p,OFFSET:()=>h.OFFSET,OrientationDistanceSearchType:()=>d._P,PAGE:()=>h.PAGE,Poi:()=>o.p,PoisOrderBy:()=>d.LJ,PoisService:()=>l.FR,PoisSortBy:()=>d.nH,PresetLanguage:()=>d.ys,RoutePainter:()=>s.B,RouteService:()=>l.v$,SwitchBuildingHandler:()=>u.Nj,SwitchOutdoorHandler:()=>u.B6,ThemeType:()=>d.SV,VERSION:()=>h.VERSION,VehicleType:()=>d.$O,VenuesService:()=>l.w1,__internal:()=>h.__internal,convertBrowserLangToPresetLang:()=>h.convertBrowserLangToPresetLang,getAccessToken:()=>h.getAccessToken,getIdentifier:()=>h.getIdentifier,setGetTokenAsync:()=>h.setGetTokenAsync,setupTokenManager:()=>h.setupTokenManager});var t=r(5462),e=r(5629),i=r(4116),o=r(5188),s=r(6733),a=r(6242),c=r(9983),u=r(1088),l=r(4545),d=r(3574),h=r(9266)})();var i=exports;for(var o in n)i[o]=n[o];n.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|