@mapxus/mapxus-map-jp 8.4.0 → 8.5.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/lib/index.cjs CHANGED
@@ -1 +1,2 @@
1
- (()=>{"use strict";var e={241:(e,t,i)=>{i.d(t,{A:()=>n});const n=i(1917).A.Symbol},367:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e,t){return function(i){return e(t(i))}}},531:(e,t,i)=>{i.d(t,{k:()=>l});var n=i(7007);class r extends Error{}function o(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let i=t.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i})))}(t)}catch(e){return atob(t)}}r.prototype.name="InvalidTokenError";var s=i(916),a=i(7463);class l extends n.EventEmitter{_appId=null;_secret=null;isClosed=!1;_timeoutId;_isInitialized=!1;_initializationPromise;_tokenManager=a.t.getInstance();_from;constructor(e,t,i=s.en.Access){super(),this._from=i,this._appId=e,this._secret=t,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((e=>{"isClosed"!==e&&"_events"!==e&&delete this[e]})),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 e=await this._tokenManager.fetchToken(this._appId,this._secret);this._isInitialized=!0,this._tokenManager.updateToken({appId:this._appId,secret:this._secret,token:e,from:this._from});const t=function(e,t){if("string"!=typeof e)throw new r("Invalid token specified: must be a string");t||(t={});const i=!0===t.header?0:1,n=e.split(".")[i];if("string"!=typeof n)throw new r(`Invalid token specified: missing part #${i+1}`);let s;try{s=o(n)}catch(e){throw new r(`Invalid token specified: invalid base64 for part #${i+1} (${e.message})`)}try{return JSON.parse(s)}catch(e){throw new r(`Invalid token specified: invalid json for part #${i+1} (${e.message})`)}}(e),i=1e3*(t.exp-t.iat-60);this._loopUpdateToken(i)}catch(e){throw this.emit("error",new Error("Failed to initialize token.",{cause:e})),e}}_loopUpdateToken(e){this.isClosed||(this._timeoutId=setTimeout((async()=>{try{const t=await this._tokenManager.fetchToken(this._appId,this._secret);this._tokenManager.updateToken({appId:this._appId,secret:this._secret,token:t,from:this._from}),this.emit("updated",{appId:this._appId,token:t}),this._loopUpdateToken(e)}catch(e){this.emit("error",new Error("Failed to update token.",{cause:e}))}}),e))}}},751:(e,t,i)=>{i.d(t,{A:()=>p});var n=/\s/;const r=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t};var o=/^\s+/;const s=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e};var a=i(3149),l=i(1882),c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;const p=function(e){if("number"==typeof e)return e;if((0,l.A)(e))return NaN;if((0,a.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,a.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var i=u.test(e);return i||d.test(e)?h(e.slice(2),i?2:8):c.test(e)?NaN:+e}},901:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(1882);const r=function(e){if("string"==typeof e||(0,n.A)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},916:(e,t,i)=>{var n,r,o,s,a,l,c,u,d,h;i.d(t,{en:()=>s,Kp:()=>u,MA:()=>n,_P:()=>d,LJ:()=>a,nH:()=>l,ys:()=>r,SV:()=>o,$O:()=>c}),function(e){e[e.SWITCHED_BY_BUILDING=0]="SWITCHED_BY_BUILDING",e[e.SWITCHED_BY_VENUE=1]="SWITCHED_BY_VENUE"}(n||(n={})),function(e){e.ENGLISH="en",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_TRADITIONAL="zh-Hant",e.CHINESE_TRADITIONAL_TW="zh-Hant-TW",e.JAPANESE="ja",e.KOREAN="ko",e.FILIPINO="fil",e.INDONESIAN="id",e.PORTUGUESE="pt",e.THAI="th",e.VIETNAMESE="vi",e.ARABIC="ar"}(r||(r={})),function(e){e.CHRISTMAS="christmas",e.HALLOWEEN="halloween",e.MAPPY_BEE="mappyBee",e.MAPXUS="mapxus",e.LANDS_D="landsD",e.COMMON="common",e.MAPXUS_V2="mapxus_v2",e.MAPXUS_DEFAULT="mapxus_default"}(o||(o={})),function(e){e.Access="access_control",e.Map="map"}(s||(s={})),function(e){e.DEFAULT_NAME="DefaultName"}(a||(a={})),function(e){e.ABSOLUTE_DISTANCE="AbsoluteDistance",e.ACTUAL_DISTANCE="ActualDistance"}(l||(l={})),function(e){e.FOOT="foot",e.WHEELCHAIR="wheelchair",e.ESCALATOR="escalator",e.EMERGENCY="emergency"}(c||(c={})),function(e){e.POINT="Point",e.POLYGON="Polygon"}(u||(u={})),function(e){e.POINT="Point",e.POLYGON="Polygon",e.GATE="Gate"}(d||(d={})),function(e){e.DEFAULT_NAME="DefaultName"}(h||(h={}))},1121:(e,t,i)=>{i.d(t,{A:()=>r});var n=Function.prototype.toString;const r=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1200:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(1917);const r=function(){return!1};var 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 l=(a?a.isBuffer:void 0)||r},1625:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(5707),r=i(8816),o=i(8593),s=Math.max;const a=function(e,t,i){var a=null==e?0:e.length;if(!a)return-1;var l=null==i?0:(0,o.A)(i);return l<0&&(l=s(a+l,0)),(0,n.A)(e,(0,r.A)(t,3),l)}},1882:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(2383),r=i(3098);const o=function(e){return"symbol"==typeof e||(0,r.A)(e)&&"[object Symbol]"==(0,n.A)(e)}},1917:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(2136),r="object"==typeof self&&self&&self.Object===Object&&self;const o=n.A||r||Function("return this")()},2049:(e,t,i)=>{i.d(t,{A:()=>n});const n=Array.isArray},2050:(e,t,i)=>{i.d(t,{A:()=>I});const n=(0,i(8562).A)(Object,"create");const r=function(){this.__data__=n?n(null):{},this.size=0};const o=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var s=Object.prototype.hasOwnProperty;const a=function(e){var t=this.__data__;if(n){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return s.call(t,e)?t[e]:void 0};var l=Object.prototype.hasOwnProperty;const c=function(e){var t=this.__data__;return n?void 0!==t[e]:l.call(t,e)};const u=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this};function d(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}d.prototype.clear=r,d.prototype.delete=o,d.prototype.get=a,d.prototype.has=c,d.prototype.set=u;const h=d;var p=i(9469),_=i(8335);const f=function(){this.size=0,this.__data__={hash:new h,map:new(_.A||p.A),string:new h}};const g=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const m=function(e,t){var i=e.__data__;return g(t)?i["string"==typeof t?"string":"hash"]:i.map};const y=function(e){var t=m(this,e).delete(e);return this.size-=t?1:0,t};const v=function(e){return m(this,e).get(e)};const b=function(e){return m(this,e).has(e)};const w=function(e,t){var i=m(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};function L(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}L.prototype.clear=f,L.prototype.delete=y,L.prototype.get=v,L.prototype.has=b,L.prototype.set=w;const I=L},2136:(e,t,i)=>{i.d(t,{A:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},2383:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(241),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=n.A?n.A.toStringTag:void 0;const l=function(e){var t=o.call(e,a),i=e[a];try{e[a]=void 0;var n=!0}catch(e){}var r=s.call(e);return n&&(t?e[a]=i:delete e[a]),r};var c=Object.prototype.toString;const u=function(e){return c.call(e)};var d=n.A?n.A.toStringTag:void 0;const h=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":d&&d in Object(e)?l(e):u(e)}},2505:(e,t,i)=>{i.d(t,{A:()=>u});const n=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n};var r=i(5175),o=i(2049),s=i(1200),a=i(5353),l=i(2871),c=Object.prototype.hasOwnProperty;const u=function(e,t){var i=(0,o.A)(e),u=!i&&(0,r.A)(e),d=!i&&!u&&(0,s.A)(e),h=!i&&!u&&!d&&(0,l.A)(e),p=i||u||d||h,_=p?n(e.length,String):[],f=_.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,a.A)(g,f))||_.push(g);return _}},2634:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i<n;){var s=e[i];t(s,i,e)&&(o[r++]=s)}return o}},2871:(e,t,i)=>{i.d(t,{A:()=>f});var n=i(2383),r=i(5254),o=i(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(e){return(0,o.A)(e)&&(0,r.A)(e.length)&&!!s[(0,n.A)(e)]};const l=function(e){return function(t){return e(t)}};var c=i(2136),u="object"==typeof exports&&exports&&!exports.nodeType&&exports,d=u&&"object"==typeof module&&module&&!module.nodeType&&module,h=d&&d.exports===u&&c.A.process,p=function(){try{var e=d&&d.require&&d.require("util").types;return e||h&&h.binding&&h.binding("util")}catch(e){}}();var _=p&&p.isTypedArray;const f=_?l(_):a},3098:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e){return null!=e&&"object"==typeof e}},3149:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3153:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(){return[]}},3456:(e,t,i)=>{i.d(t,{A:()=>u});var n=i(241),r=i(5572),o=i(2049),s=i(1882),a=n.A?n.A.prototype:void 0,l=a?a.toString:void 0;const c=function e(t){if("string"==typeof t)return t;if((0,o.A)(t))return(0,r.A)(t,e)+"";if((0,s.A)(t))return l?l.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i};const u=function(e){return null==e?"":c(e)}},3736:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}},3831:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(6912),r=i(2049);const o=function(e,t,i){var o=t(e);return(0,r.A)(e)?o:(0,n.A)(o,i(e))}},4099:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e,t){return e.has(t)}},4792:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(2634),r=i(3153),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(e){return null==e?[]:(e=Object(e),(0,n.A)(s(e),(function(t){return o.call(e,t)})))}:r.A},4878:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(2049),r=i(6586),o=i(2050);function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=e.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(s.Cache||o.A),i}s.Cache=o.A;const a=s;var l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g;const u=function(e){var t=a(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(l,(function(e,i,n,r){t.push(n?r.replace(c,"$1"):i||e)})),t}));var d=i(3456);const h=function(e,t){return(0,n.A)(e)?e:(0,r.A)(e,t)?[e]:u((0,d.A)(e))}},4969:(e,t,i)=>{i.d(t,{y:()=>r});var n=i(916);function r(e){let t=null;return!function(e){return/^en(-(US|GB|AU))?$/.test(e)}(e)?!function(e){return/^zh(-(Hans|CN))?$/.test(e)}(e)?!function(e){return/^zh-(Hant|HK|MO)$/.test(e)}(e)?!function(e){return"zh-TW"===e}(e)?!function(e){return/^ja(-JP)?$/.test(e)}(e)?!function(e){return/^ko(-KR)?$/.test(e)}(e)?!function(e){return/^(fil|tl)(-PH)?$/.test(e)}(e)?!function(e){return/^id(-ID)?$/.test(e)}(e)?!function(e){return/^pt(-(BR|PT))?$/.test(e)}(e)?!function(e){return/^th(-TH)?$/.test(e)}(e)?!function(e){return/^vi(-VN)?$/.test(e)}(e)?function(e){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(e)}(e)&&(t=n.ys.ARABIC):t=n.ys.VIETNAMESE:t=n.ys.THAI:t=n.ys.PORTUGUESE:t=n.ys.INDONESIAN:t=n.ys.FILIPINO:t=n.ys.KOREAN:t=n.ys.JAPANESE:t=n.ys.CHINESE_TRADITIONAL_TW:t=n.ys.CHINESE_TRADITIONAL:t=n.ys.CHINESE_SIMPLIFIED:t=n.ys.ENGLISH,t}},5175:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(2383),r=i(3098);const o=function(e){return(0,r.A)(e)&&"[object Arguments]"==(0,n.A)(e)};var s=Object.prototype,a=s.hasOwnProperty,l=s.propertyIsEnumerable;const c=o(function(){return arguments}())?o:function(e){return(0,r.A)(e)&&a.call(e,"callee")&&!l.call(e,"callee")}},5254:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5353:(e,t,i)=>{i.d(t,{A:()=>r});var n=/^(?:0|[1-9]\d*)$/;const r=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}},5572:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}},5707:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e,t,i,n){for(var r=e.length,o=i+(n?1:-1);n?o--:++o<r;)if(t(e[o],o,e))return o;return-1}},6318:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(4878),r=i(901);const o=function(e,t){for(var i=0,o=(t=(0,n.A)(t,e)).length;null!=e&&i<o;)e=e[(0,r.A)(t[i++])];return i&&i==o?e:void 0}},6586:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(2049),r=i(1882),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;const a=function(e,t){if((0,n.A)(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!(0,r.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}},6912:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}},6984:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e,t){return e===t||e!=e&&t!=t}},7007:e=>{var t,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};t=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(i,n){function r(i){e.removeListener(t,o),n(i)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),i([].slice.call(arguments))}f(e,t,o,{once:!0}),"error"!==t&&function(e,t,i){"function"==typeof e.on&&f(e,"error",t,i)}(e,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,i,n){var r,o,s,c;if(a(i),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),o=e._events),s=o[t]),void 0===s)s=o[t]=i,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[i,s]:[s,i]:n?s.unshift(i):s.push(i),(r=l(e))>0&&s.length>r&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){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(e,t,i){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},r=u.bind(n);return r.listener=i,n.wrapFn=r,r}function h(e,t,i){var n=e._events;if(void 0===n)return[];var r=n[t];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(r):_(r,r.length)}function p(e){var t=this._events;if(void 0!==t){var i=t[e];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function _(e,t){for(var i=new Array(t),n=0;n<t;++n)i[n]=e[n];return i}function f(e,t,i,n){if("function"==typeof e.on)n.once?e.once(t,i):e.on(t,i);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(o){n.once&&e.removeEventListener(t,r),i(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),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(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var c=l.length,u=_(l,c);for(i=0;i<c;++i)n(u[i],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var i,n,r,o,s;if(a(t),void 0===(n=this._events))return this;if(void 0===(i=n[e]))return this;if(i===t||i.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(r=-1,o=i.length-1;o>=0;o--)if(i[o]===t||i[o].listener===t){s=i[o].listener,r=o;break}if(r<0)return this;0===r?i.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(i,r),1===i.length&&(n[e]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var r,o=Object.keys(i);for(n=0;n<o.length;++n)"removeListener"!==(r=o[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},7271:(e,t,i)=>{i.d(t,{A:()=>r});var n=Object.prototype;const r=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},7311:(e,t,i)=>{i.d(t,{o:()=>s});var n=i(531),r=i(916),o=i(7463);class s{static _instance;_tokenManager=o.t.getInstance();_accessControls=new Map;static setPlatform(e){o.t.setPlatform(e)}static getInstance(){return s._instance||(s._instance=new s),s._instance}get version(){return this._tokenManager.getVersion()}async getIdentifier(){return await this._tokenManager.getIdentifier()}async getToken(e,t){let i=this._tokenManager.getToken(e);if(!i){const o=this._accessControls.get(e);if(o)o.forceUpdateToken(),await o.ready(),i=o.token;else if(t){const o=new n.k(e,t,r.en.Map);await o.ready(),i=o.token,this._accessControls.set(e,o)}}return i}deleteToken(e,t){this._tokenManager.deleteToken(e,t)}getAppId(e){return this._tokenManager.getAppId(e)}disconnect(e){this._tokenManager.on(o._,e)}}},7405:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(2505),r=i(7271);const o=(0,i(367).A)(Object.keys,Object);var s=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,r.A)(e))return o(e);var t=[];for(var i in Object(e))s.call(e,i)&&"constructor"!=i&&t.push(i);return t};var l=i(8446);const c=function(e){return(0,l.A)(e)?(0,n.A)(e):a(e)}},7463:(e,t,i)=>{i.d(t,{_:()=>je,t:()=>Te});var n=function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};function r(e,t,i,n){return new(i||(i=Promise))((function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))}function o(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[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(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=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(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}Object.create;function s(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var a="4.6.1";function l(e,t){return new Promise((function(i){return setTimeout(i,e,t)}))}function c(e){return!!e&&"function"==typeof e.then}function u(e,t){try{var i=e();c(i)?i.then((function(e){return t(!0,e)}),(function(e){return t(!1,e)})):t(!0,i)}catch(e){t(!1,e)}}function d(e,t,i){return void 0===i&&(i=16),r(this,void 0,void 0,(function(){var n,r,s,a;return o(this,(function(o){switch(o.label){case 0:n=Array(e.length),r=Date.now(),s=0,o.label=1;case 1:return s<e.length?(n[s]=t(e[s],s),(a=Date.now())>=r+i?(r=a,[4,new Promise((function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:o.sent(),o.label=3;case 3:return++s,[3,1];case 4:return[2,n]}}))}))}function h(e){return e.then(void 0,(function(){})),e}function p(e){return parseInt(e)}function _(e){return parseFloat(e)}function f(e,t){return"number"==typeof e&&isNaN(e)?t:e}function g(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function m(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var i=1/t;return Math.round(e*i)/i}function y(e,t){var i=e[0]>>>16,n=65535&e[0],r=e[1]>>>16,o=65535&e[1],s=t[0]>>>16,a=65535&t[0],l=t[1]>>>16,c=0,u=0,d=0,h=0;d+=(h+=o+(65535&t[1]))>>>16,h&=65535,u+=(d+=r+l)>>>16,d&=65535,c+=(u+=n+a)>>>16,u&=65535,c+=i+s,c&=65535,e[0]=c<<16|u,e[1]=d<<16|h}function v(e,t){var i=e[0]>>>16,n=65535&e[0],r=e[1]>>>16,o=65535&e[1],s=t[0]>>>16,a=65535&t[0],l=t[1]>>>16,c=65535&t[1],u=0,d=0,h=0,p=0;h+=(p+=o*c)>>>16,p&=65535,d+=(h+=r*c)>>>16,h&=65535,d+=(h+=o*l)>>>16,h&=65535,u+=(d+=n*c)>>>16,d&=65535,u+=(d+=r*l)>>>16,d&=65535,u+=(d+=o*a)>>>16,d&=65535,u+=i*c+n*l+r*a+o*s,u&=65535,e[0]=u<<16|d,e[1]=h<<16|p}function b(e,t){var i=e[0];32===(t%=64)?(e[0]=e[1],e[1]=i):t<32?(e[0]=i<<t|e[1]>>>32-t,e[1]=e[1]<<t|i>>>32-t):(t-=32,e[0]=e[1]<<t|i>>>32-t,e[1]=i<<t|e[1]>>>32-t)}function w(e,t){0!==(t%=64)&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function L(e,t){e[0]^=t[0],e[1]^=t[1]}var I=[4283543511,3981806797],S=[3301882366,444984403];function A(e){var t=[0,e[0]>>>1];L(e,t),v(e,I),t[1]=e[0]>>>1,L(e,t),v(e,S),t[1]=e[0]>>>1,L(e,t)}var B=[2277735313,289559509],k=[1291169091,658871167],M=[0,5],x=[0,1390208809],C=[0,944331445];function E(e,t){var i=function(e){for(var t=new Uint8Array(e.length),i=0;i<e.length;i++){var n=e.charCodeAt(i);if(n>127)return(new TextEncoder).encode(e);t[i]=n}return t}(e);t=t||0;var n,r=[0,i.length],o=r[1]%16,s=r[1]-o,a=[0,t],l=[0,t],c=[0,0],u=[0,0];for(n=0;n<s;n+=16)c[0]=i[n+4]|i[n+5]<<8|i[n+6]<<16|i[n+7]<<24,c[1]=i[n]|i[n+1]<<8|i[n+2]<<16|i[n+3]<<24,u[0]=i[n+12]|i[n+13]<<8|i[n+14]<<16|i[n+15]<<24,u[1]=i[n+8]|i[n+9]<<8|i[n+10]<<16|i[n+11]<<24,v(c,B),b(c,31),v(c,k),L(a,c),b(a,27),y(a,l),v(a,M),y(a,x),v(u,k),b(u,33),v(u,B),L(l,u),b(l,31),y(l,a),v(l,M),y(l,C);c[0]=0,c[1]=0,u[0]=0,u[1]=0;var d=[0,0];switch(o){case 15:d[1]=i[n+14],w(d,48),L(u,d);case 14:d[1]=i[n+13],w(d,40),L(u,d);case 13:d[1]=i[n+12],w(d,32),L(u,d);case 12:d[1]=i[n+11],w(d,24),L(u,d);case 11:d[1]=i[n+10],w(d,16),L(u,d);case 10:d[1]=i[n+9],w(d,8),L(u,d);case 9:d[1]=i[n+8],L(u,d),v(u,k),b(u,33),v(u,B),L(l,u);case 8:d[1]=i[n+7],w(d,56),L(c,d);case 7:d[1]=i[n+6],w(d,48),L(c,d);case 6:d[1]=i[n+5],w(d,40),L(c,d);case 5:d[1]=i[n+4],w(d,32),L(c,d);case 4:d[1]=i[n+3],w(d,24),L(c,d);case 3:d[1]=i[n+2],w(d,16),L(c,d);case 2:d[1]=i[n+1],w(d,8),L(c,d);case 1:d[1]=i[n],L(c,d),v(c,B),b(c,31),v(c,k),L(a,c)}return L(a,r),L(l,r),y(a,l),y(l,a),A(a),A(l),y(a,l),y(l,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)}function O(e){return"function"!=typeof e}function P(e,t,i,n){var s=Object.keys(e).filter((function(e){return!function(e,t){for(var i=0,n=e.length;i<n;++i)if(e[i]===t)return!0;return!1}(i,e)})),a=h(d(s,(function(i){return function(e,t){var i=h(new Promise((function(i){var n=Date.now();u(e.bind(null,t),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Date.now()-n;if(!e[0])return i((function(){return{error:e[1],duration:r}}));var o=e[1];if(O(o))return i((function(){return{value:o,duration:r}}));i((function(){return new Promise((function(e){var t=Date.now();u(o,(function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=r+Date.now()-t;if(!i[0])return e({error:i[1],duration:o});e({value:i[1],duration:o})}))}))}))}))})));return function(){return i.then((function(e){return e()}))}}(e[i],t)}),n));return function(){return r(this,void 0,void 0,(function(){var e,t,i,r;return o(this,(function(o){switch(o.label){case 0:return[4,a];case 1:return[4,d(o.sent(),(function(e){return h(e())}),n)];case 2:return e=o.sent(),[4,Promise.all(e)];case 3:for(t=o.sent(),i={},r=0;r<s.length;++r)i[s[r]]=t[r];return[2,i]}}))}))}}function F(){var e=window,t=navigator;return g(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function $(){var e=window,t=navigator;return g(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===(t.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function j(){var e=window;return g(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function T(){var e=window,t=e.HTMLElement,i=e.Document;return g(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),i&&"pointerLockElement"in i.prototype])>=4}function V(){var e,t=window;return e=t.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))&&"[object WebPageNamespace]"===String(t.browser)}function R(){var e,t,i=window;return g(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in i,"mozInnerScreenX"in i,"CSSMozDocumentRule"in i,"CanvasCaptureMediaStream"in i])>=4}function N(){var e=window,t=navigator,i=e.CSS,n=e.HTMLButtonElement;return g([!("getStorageUpdates"in t),n&&"popover"in n.prototype,"CSSCounterStyleRule"in e,i.supports("font-size-adjust: ex-height 0.5"),i.supports("text-transform: full-width")])>=4}function D(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function H(){var e=$(),t=R(),i=window,n=navigator,r="connection";return e?g([!("SharedWorker"in i),n[r]&&"ontypechange"in n[r],!("sinkId"in new Audio)])>=2:!!t&&g(["onorientationchange"in i,"orientation"in i,/android/i.test(n.appVersion)])>=2}function W(e){var t=new Error(e);return t.name=e,t}function z(e,t,i){var n,s,a;return void 0===i&&(i=50),r(this,void 0,void 0,(function(){var r,c;return o(this,(function(o){switch(o.label){case 0:r=document,o.label=1;case 1:return r.body?[3,3]:[4,l(i)];case 2:return o.sent(),[3,1];case 3:c=r.createElement("iframe"),o.label=4;case 4:return o.trys.push([4,,10,11]),[4,new Promise((function(e,i){var n=!1,o=function(){n=!0,e()};c.onload=o,c.onerror=function(e){n=!0,i(e)};var s=c.style;s.setProperty("display","block","important"),s.position="absolute",s.top="0",s.left="0",s.visibility="hidden",t&&"srcdoc"in c?c.srcdoc=t:c.src="about:blank",r.body.appendChild(c);var a=function(){var e,t;n||("complete"===(null===(t=null===(e=c.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?o():setTimeout(a,10))};a()}))];case 5:o.sent(),o.label=6;case 6:return(null===(s=null===(n=c.contentWindow)||void 0===n?void 0:n.document)||void 0===s?void 0:s.body)?[3,8]:[4,l(i)];case 7:return o.sent(),[3,6];case 8:return[4,e(c,c.contentWindow)];case 9:return[2,o.sent()];case 10:return null===(a=c.parentNode)||void 0===a||a.removeChild(c),[7];case 11:return[2]}}))}))}function G(e){for(var t=function(e){for(var t,i,n="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),o=r[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,l=function(e,t){s[e]=s[e]||[],s[e].push(t)};;){var c=a.exec(r[2]);if(!c)break;var u=c[0];switch(u[0]){case".":l("class",u.slice(1));break;case"#":l("id",u.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(!d)throw new Error(n);l(d[1],null!==(i=null!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==i?i:"");break;default:throw new Error(n)}}return[o,s]}(e),i=t[0],n=t[1],r=document.createElement(null!=i?i:"div"),o=0,s=Object.keys(n);o<s.length;o++){var a=s[o],l=n[a].join(" ");"style"===a?Z(r.style,l):r.setAttribute(a,l)}return r}function Z(e,t){for(var i=0,n=t.split(";");i<n.length;i++){var r=n[i],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(r);if(o){var s=o[1],a=o[2],l=o[4];e.setProperty(s,a,l||"")}}}var Y=["monospace","sans-serif","serif"],X=["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 U(e){return e.toDataURL()}var J,q;function K(){var e=this;return function(){if(void 0===q){var e=function(){var t=Q();ee(t)?q=setTimeout(e,2500):(J=t,q=void 0)};e()}}(),function(){return r(e,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return ee(e=Q())?J?[2,s([],J,!0)]:(i=document).fullscreenElement||i.msFullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement?[4,D()]:[3,2]:[3,2];case 1:t.sent(),e=Q(),t.label=2;case 2:return ee(e)||(J=e),[2,e]}var i}))}))}}function Q(){var e=screen;return[f(_(e.availTop),null),f(_(e.width)-_(e.availWidth)-f(_(e.availLeft),0),null),f(_(e.height)-_(e.availHeight)-f(_(e.availTop),0),null),f(_(e.availLeft),null)]}function ee(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function te(e){var t;return r(this,void 0,void 0,(function(){var i,n,r,s,a,c,u;return o(this,(function(o){switch(o.label){case 0:for(i=document,n=i.createElement("div"),r=new Array(e.length),s={},ie(n),u=0;u<e.length;++u)"DIALOG"===(a=G(e[u])).tagName&&a.show(),ie(c=i.createElement("div")),c.appendChild(a),n.appendChild(c),r[u]=a;o.label=1;case 1:return i.body?[3,3]:[4,l(50)];case 2:return o.sent(),[3,1];case 3:i.body.appendChild(n);try{for(u=0;u<e.length;++u)r[u].offsetParent||(s[e[u]]=!0)}finally{null===(t=n.parentNode)||void 0===t||t.removeChild(n)}return[2,s]}}))}))}function ie(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function ne(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function re(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function oe(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function se(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function ae(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function le(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var ce=Math,ue=function(){return 0};var de={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var he=function(){for(var e=window;;){var t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return!0;throw e}e=t}};var pe=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]),_e=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),fe=["FRAGMENT_SHADER","VERTEX_SHADER"],ge=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],me="WEBGL_debug_renderer_info";function ye(e){if(e.webgl)return e.webgl.context;var t,i=document.createElement("canvas");i.addEventListener("webglCreateContextError",(function(){return t=void 0}));for(var n=0,r=["webgl","experimental-webgl"];n<r.length;n++){var o=r[n];try{t=i.getContext(o)}catch(e){}if(t)break}return e.webgl={context:t},t}function ve(e,t,i){var n=e.getShaderPrecisionFormat(e[t],e[i]);return n?[n.rangeMin,n.rangeMax,n.precision]:[]}function be(e){return Object.keys(e.__proto__).filter(we)}function we(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function Le(){return R()}function Ie(e){return"function"==typeof e.getParameter}var Se={fonts:function(){var e=this;return z((function(t,i){var n=i.document;return r(e,void 0,void 0,(function(){var e,t,i,r,s,a,l,c,u,d,h;return o(this,(function(o){for((e=n.body).style.fontSize="48px",(t=n.createElement("div")).style.setProperty("visibility","hidden","important"),i={},r={},s=function(e){var i=n.createElement("span"),r=i.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=e,i.textContent="mmMwWLliI0O&1",t.appendChild(i),i},a=function(e,t){return s("'".concat(e,"',").concat(t))},l=function(){for(var e={},t=function(t){e[t]=Y.map((function(e){return a(t,e)}))},i=0,n=X;i<n.length;i++){t(n[i])}return e},c=function(e){return Y.some((function(t,n){return e[n].offsetWidth!==i[t]||e[n].offsetHeight!==r[t]}))},u=function(){return Y.map(s)}(),d=l(),e.appendChild(t),h=0;h<Y.length;h++)i[Y[h]]=u[h].offsetWidth,r[Y[h]]=u[h].offsetHeight;return[2,X.filter((function(e){return c(d[e])}))]}))}))}))},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return r(this,void 0,void 0,(function(){var e,i,n,r,s;return o(this,(function(o){switch(o.label){case 0:return j()||H()?(a=atob,e={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"]},i=Object.keys(e),[4,te((s=[]).concat.apply(s,i.map((function(t){return e[t]}))))]):[2,void 0];case 1:return n=o.sent(),t&&function(e,t){for(var i="DOM blockers debug:\n```",n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];i+="\n".concat(o,":");for(var s=0,a=e[o];s<a.length;s++){var l=a[s];i+="\n ".concat(t[l]?"🚫":"➡️"," ").concat(l)}}console.log("".concat(i,"\n```"))}(e,n),(r=i.filter((function(t){var i=e[t];return g(i.map((function(e){return n[e]})))>.6*i.length}))).sort(),[2,r]}var a}))}))},fontPreferences:function(){return function(e,t){void 0===t&&(t=4e3);return z((function(i,n){var r=n.document,o=r.body,a=o.style;a.width="".concat(t,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",$()?o.style.zoom="".concat(1/n.devicePixelRatio):j()&&(o.style.zoom="reset");var l=r.createElement("div");return l.textContent=s([],Array(t/20|0),!0).map((function(){return"word"})).join(" "),o.appendChild(l),e(r,o)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(e,t){for(var i={},n={},r=0,o=Object.keys(de);r<o.length;r++){var s=o[r],a=de[s],l=a[0],c=void 0===l?{}:l,u=a[1],d=void 0===u?"mmMwWLliI0fiflO&1":u,h=e.createElement("span");h.textContent=d,h.style.whiteSpace="nowrap";for(var p=0,_=Object.keys(c);p<_.length;p++){var f=_[p],g=c[f];void 0!==g&&(h.style[f]=g)}i[s]=h,t.append(e.createElement("br"),h)}for(var m=0,y=Object.keys(de);m<y.length;m++){n[s=y[m]]=i[s].getBoundingClientRect().width}return n}))},audio:function(){return j()&&N()&&V()||$()&&(e=navigator,t=window,i=Audio.prototype,n=t.visualViewport,g(["srLatency"in i,"srChannelCount"in i,"devicePosture"in e,n&&"segments"in n,"getTextInformation"in Image.prototype])>=3)&&function(){var e=window,t=e.URLPattern;return g(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()?-4:function(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(j()&&!T()&&!function(){var e=window;return g(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var i=4500,n=new t(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.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,r.connect(o),o.connect(n.destination),r.start(0);var s=function(e){var t=3,i=500,n=500,r=5e3,o=function(){},s=new Promise((function(s,a){var l=!1,u=0,d=0;e.oncomplete=function(e){return s(e.renderedBuffer)};var p=function(){setTimeout((function(){return a(W("timeout"))}),Math.min(n,d+r-Date.now()))},_=function(){try{var n=e.startRendering();switch(c(n)&&h(n),e.state){case"running":d=Date.now(),l&&p();break;case"suspended":document.hidden||u++,l&&u>=t?a(W("suspended")):setTimeout(_,i)}}catch(e){a(e)}};_(),o=function(){l||(l=!0,d>0&&p())}}));return[s,o]}(n),a=s[0],l=s[1],u=h(a.then((function(e){return function(e){for(var t=0,i=0;i<e.length;++i)t+=Math.abs(e[i]);return t}(e.getChannelData(0).subarray(i))}),(function(e){if("timeout"===e.name||"suspended"===e.name)return-3;throw e})));return function(){return l(),u}}();var e,t,i,n},screenFrame:function(){var e=this;if(j()&&N()&&V())return function(){return Promise.resolve(void 0)};var t=K();return function(){return r(e,void 0,void 0,(function(){var e,i;return o(this,(function(n){switch(n.label){case 0:return[4,t()];case 1:return e=n.sent(),[2,[(i=function(e){return null===e?null:m(e,10)})(e[0]),i(e[1]),i(e[2]),i(e[3])]]}}))}))}},canvas:function(){return function(e){var t,i,n,r=!1,o=function(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),s=o[0],a=o[1];!function(e,t){return!(!t||!e.toDataURL)}(s,a)?i=n="unsupported":(r=function(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(a),e?i=n="skipped":(t=function(e,t){!function(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var i="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));t.fillText(i,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(i,4,45)}(e,t);var i=U(e),n=U(e);if(i!==n)return["unstable","unstable"];!function(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var i=0,n=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];i<n.length;i++){var r=n[i],o=r[0],s=r[1],a=r[2];t.fillStyle=o,t.beginPath(),t.arc(s,a,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}(e,t);var r=U(e);return[r,i]}(s,a),i=t[0],n=t[1]));return{winding:r,geometry:i,text:n}}(j()&&N()&&V())},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,i=[],n=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==n&&i.push([n]),Array.isArray(t.languages))$()&&g([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||i.push(t.languages);else if("string"==typeof t.languages){var r=t.languages;r&&i.push(r.split(","))}return i},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return f(_(navigator.deviceMemory),void 0)},screenResolution:function(){var e,t,i;if(!(j()&&N()&&V()))return e=screen,(i=[(t=function(e){return f(p(e),null)})(e.width),t(e.height)]).sort().reverse(),i},hardwareConcurrency:function(){return f(p(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var i=(new t).resolvedOptions().timeZone;if(i)return i}var n,r=(n=(new Date).getFullYear(),-Math.max(_(new Date(n,0,1).getTimezoneOffset()),_(new Date(n,6,1).getTimezoneOffset())));return"UTC".concat(r>=0?"+":"").concat(r)},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(F()||(e=window,t=navigator,g(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!F())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&j()&&!T()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return g(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],i=0;i<e.length;++i){var n=e[i];if(n){for(var r=[],o=0;o<n.length;++o){var s=n[o];r.push({type:s.type,suffixes:s.suffixes})}t.push({name:n.name,description:n.description,mimeTypes:r})}}return t}},touchSupport:function(){var e,t=navigator,i=0;void 0!==t.maxTouchPoints?i=p(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(i=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:i,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,i=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<i.length;t++){var n=i[t],r=window[n];r&&"object"==typeof r&&e.push(n)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var i=t[e];if(matchMedia("(color-gamut: ".concat(i,")")).matches)return i}},invertedColors:function(){return!!ne("inverted")||!ne("none")&&void 0},forcedColors:function(){return!!re("active")||!re("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function(){return oe("no-preference")?0:oe("high")||oe("more")?1:oe("low")||oe("less")?-1:oe("forced")?10:void 0},reducedMotion:function(){return!!se("reduce")||!se("no-preference")&&void 0},reducedTransparency:function(){return!!ae("reduce")||!ae("no-preference")&&void 0},hdr:function(){return!!le("high")||!le("standard")&&void 0},math:function(){var e,t=ce.acos||ue,i=ce.acosh||ue,n=ce.asin||ue,r=ce.asinh||ue,o=ce.atanh||ue,s=ce.atan||ue,a=ce.sin||ue,l=ce.sinh||ue,c=ce.cos||ue,u=ce.cosh||ue,d=ce.tan||ue,h=ce.tanh||ue,p=ce.exp||ue,_=ce.expm1||ue,f=ce.log1p||ue;return{acos:t(.12312423423423424),acosh:i(1e308),acoshPf:(e=1e154,ce.log(e+ce.sqrt(e*e-1))),asin:n(.12312423423423424),asinh:r(1),asinhPf:function(e){return ce.log(e+ce.sqrt(e*e+1))}(1),atanh:o(.5),atanhPf:function(e){return ce.log((1+e)/(1-e))/2}(.5),atan:s(.5),sin:a(-1e300),sinh:l(1),sinhPf:function(e){return ce.exp(e)-1/ce.exp(e)/2}(1),cos:c(10.000000000123),cosh:u(1),coshPf:function(e){return(ce.exp(e)+1/ce.exp(e))/2}(1),tan:d(-1e300),tanh:h(1),tanhPf:function(e){return(ce.exp(2*e)-1)/(ce.exp(2*e)+1)}(1),exp:p(1),expm1:_(1),expm1Pf:function(e){return ce.exp(e)-1}(1),log1p:f(10),log1pPf:function(e){return ce.log(1+e)}(10),powPI:function(e){return ce.pow(ce.PI,e)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]},applePay:function(){var e=window.ApplePaySession;if("function"!=typeof(null==e?void 0:e.canMakePayments))return-1;if(he())return-3;try{return e.canMakePayments()?1:0}catch(e){return function(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}(e)}},privateClickMeasurement:function(){var e,t=document.createElement("a"),i=null!==(e=t.attributionSourceId)&&void 0!==e?e:t.attributionsourceid;return void 0===i?void 0:String(i)},audioBaseLatency:function(){var e;return H()||j()?window.AudioContext&&null!==(e=(new AudioContext).baseLatency)&&void 0!==e?e:-1:-2},dateTimeLocale:function(){if(!window.Intl)return-1;var e=window.Intl.DateTimeFormat;if(!e)return-2;var t=e().resolvedOptions().locale;return t||""===t?t:-3},webGlBasics:function(e){var t,i,n,r,o,s,a=ye(e.cache);if(!a)return-1;if(!Ie(a))return-2;var l=Le()?null:a.getExtension(me);return{version:(null===(t=a.getParameter(a.VERSION))||void 0===t?void 0:t.toString())||"",vendor:(null===(i=a.getParameter(a.VENDOR))||void 0===i?void 0:i.toString())||"",vendorUnmasked:l?null===(n=a.getParameter(l.UNMASKED_VENDOR_WEBGL))||void 0===n?void 0:n.toString():"",renderer:(null===(r=a.getParameter(a.RENDERER))||void 0===r?void 0:r.toString())||"",rendererUnmasked:l?null===(o=a.getParameter(l.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(e){var t=ye(e.cache);if(!t)return-1;if(!Ie(t))return-2;var i=t.getSupportedExtensions(),n=t.getContextAttributes(),r=[],o=[],s=[],a=[],l=[];if(n)for(var c=0,u=Object.keys(n);c<u.length;c++){var d=u[c];o.push("".concat(d,"=").concat(n[d]))}for(var h=0,p=be(t);h<p.length;h++){var _=t[w=p[h]];s.push("".concat(w,"=").concat(_).concat(pe.has(_)?"=".concat(t.getParameter(_)):""))}if(i)for(var f=0,g=i;f<g.length;f++){var m=g[f];if(!(m===me&&Le()||"WEBGL_polygon_mode"===m&&($()||j()))){var y=t.getExtension(m);if(y)for(var v=0,b=be(y);v<b.length;v++){var w;_=y[w=b[v]];a.push("".concat(w,"=").concat(_).concat(_e.has(_)?"=".concat(t.getParameter(_)):""))}else r.push(m)}}for(var L=0,I=fe;L<I.length;L++)for(var S=I[L],A=0,B=ge;A<B.length;A++){var k=B[A],M=ve(t,S,k);l.push("".concat(S,".").concat(k,"=").concat(M.join(",")))}return a.sort(),s.sort(),{contextAttributes:o,parameters:s,shaderPrecisions:l,extensions:i,extensionParameters:a,unsupportedExtensions:r}}};function Ae(e){var t=function(e){if(H())return.4;if(j())return!T()||N()&&V()?.3:.5;var t="value"in e.platform?e.platform.value:"";if(/^Win/.test(t))return.6;if(/^Mac/.test(t))return.5;return.7}(e),i=function(e){return m(.99+.01*e,1e-4)}(t);return{score:t,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(i))}}function Be(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?n({name:(i=t).name,message:i.message,stack:null===(r=i.stack)||void 0===r?void 0:r.split("\n")},i):t;var i,r}),2)}function ke(e){return E(function(e){for(var t="",i=0,n=Object.keys(e).sort();i<n.length;i++){var r=n[i],o=e[r],s="error"in o?"error":JSON.stringify(o.value);t+="".concat(t?"|":"").concat(r.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return t}(e))}function Me(e){return void 0===e&&(e=50),function(e,t){void 0===t&&(t=1/0);var i=window.requestIdleCallback;return i?new Promise((function(e){return i.call(window,(function(){return e()}),{timeout:t})})):l(Math.min(e,t))}(e,2*e)}function xe(e,t){var i=Date.now();return{get:function(n){return r(this,void 0,void 0,(function(){var r,s,l;return o(this,(function(o){switch(o.label){case 0:return r=Date.now(),[4,e()];case 1:return s=o.sent(),l=function(e){var t,i=Ae(e);return{get visitorId(){return void 0===t&&(t=ke(this.components)),t},set visitorId(e){t=e},confidence:i,components:e,version:a}}(s),(t||(null==n?void 0:n.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(l.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(r-i,"\nvisitorId: ").concat(l.visitorId,"\ncomponents: ").concat(Be(s),"\n```")),[2,l]}}))}))}}}var Ce={load:function(e){var t;return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var i,n,r;return o(this,(function(o){switch(o.label){case 0:return(null===(t=e.monitoring)||void 0===t||t)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(a,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),i=e.delayFallback,n=e.debug,[4,Me(i)];case 1:return o.sent(),r=function(e){return P(Se,e,[])}({cache:{},debug:n}),[2,xe(r,n)]}}))}))},hashComponents:ke,componentsToDebugString:Be},Ee=i(8330),Oe=i(9588),Pe=i(7007),Fe=i(916),$e=i(8301);const je="permission-disconnected";class Te extends Pe.EventEmitter{static instance;static platform={sdkVersion:Ee.rE,identifier:""};_appIds=new Map([[Fe.en.Access,{}],[Fe.en.Map,{}]]);_tokenStorage={};_appIdsHistory=[];static getInstance(){return Te.instance||(Te.instance=new Te),Te.instance}static setPlatform(e){Te.platform=e}updateToken(e){const{appId:t,secret:i,token:n,from:r}=e;this._tokenStorage[t]=n,this._appIds.get(r)[t]=i,this._appIdsHistory.push(t)}deleteToken(e,t){delete this._tokenStorage[e],t&&(delete this._appIds.get(t)[e],this.emit(je,{appId:e,from:t}))}getVersion(){return Te.platform.sdkVersion}getToken(e){return this._tokenStorage[e]}async getIdentifier(){if(!Te.platform.identifier){const e=await Ce.load(),t=await e.get();Te.platform.identifier=t.visitorId}return Te.platform.identifier}getAppId(e){const t=e?Object.keys(this._appIds.get(e)):[...Object.keys(this._appIds.get(Fe.en.Access)),...Object.keys(this._appIds.get(Fe.en.Map))];return(0,$e.A)(this._appIdsHistory.reverse(),(e=>t.includes(e)))}async fetchToken(e,t,i=0){try{const i={appId:e,secret:t,..."bundleId"in Te.platform?{bundleId:Te.platform.bundleId}:"sha1"in Te.platform?{sha1:Te.platform.sha1,packageName:Te.platform.packageName}:{origin:window.location.hostname||"restriction.test.example.com",keyPlatform:"WEB"}},n={"Content-Type":"application/json",sdkVersion:Te.platform.sdkVersion,identifier:Te.platform.identifier??await this.getIdentifier()},r=await fetch(Oe.R0,{method:"POST",body:JSON.stringify(i),headers:n});return(await r.json()).result.idToken}catch(n){if(i<3){const n=500*Math.pow(2,i);return console.warn(`Retrying to fetch token in ${n} ms...`,++i),await new Promise((e=>setTimeout(e,n))),this.fetchToken(e,t,i)}throw n}}}},7726:(e,t,i)=>{i.d(t,{OFFSET:()=>r.e$,PAGE:()=>r.KL,VERSION:()=>l,convertBrowserLangToPresetLang:()=>o.y,getIdentifier:()=>a});var n=i(8330),r=i(9588),o=i(4969),s=i(7311);async function a(){return s.o.getInstance().getIdentifier()}const l=n.rE},8300:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(2050);const r=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const o=function(e){return this.__data__.has(e)};function s(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n.A;++t<i;)this.add(e[t])}s.prototype.add=s.prototype.push=r,s.prototype.has=o;const a=s},8301:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(8816),r=i(8446),o=i(7405);const s=function(e){return function(t,i,s){var a=Object(t);if(!(0,r.A)(t)){var l=(0,n.A)(i,3);t=(0,o.A)(t),i=function(e){return l(a[e],e,a)}}var c=e(t,i,s);return c>-1?a[l?t[c]:c]:void 0}}(i(1625).A)},8330:e=>{e.exports={rE:"8.4.0"}},8335:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(8562),r=i(1917);const o=(0,n.A)(r.A,"Map")},8446:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(9610),r=i(5254);const o=function(e){return null!=e&&(0,r.A)(e.length)&&!(0,n.A)(e)}},8562:(e,t,i)=>{i.d(t,{A:()=>y});var n=i(9610);const r=i(1917).A["__core-js_shared__"];var o,s=(o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";const a=function(e){return!!s&&s in e};var l=i(3149),c=i(1121),u=/^\[object .+?Constructor\]$/,d=Function.prototype,h=Object.prototype,p=d.toString,_=h.hasOwnProperty,f=RegExp("^"+p.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const g=function(e){return!(!(0,l.A)(e)||a(e))&&((0,n.A)(e)?f:u).test((0,c.A)(e))};const m=function(e,t){return null==e?void 0:e[t]};const y=function(e,t){var i=m(e,t);return g(i)?i:void 0}},8593:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(8776);const r=function(e){var t=(0,n.A)(e),i=t%1;return t==t?i?t-i:t:0}},8776:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(751),r=1/0;const o=function(e){return e?(e=(0,n.A)(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},8816:(e,t,i)=>{i.d(t,{A:()=>xe});var n=i(9469);const r=function(){this.__data__=new n.A,this.size=0};const o=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i};const s=function(e){return this.__data__.get(e)};const a=function(e){return this.__data__.has(e)};var l=i(8335),c=i(2050);const u=function(e,t){var i=this.__data__;if(i instanceof n.A){var r=i.__data__;if(!l.A||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new c.A(r)}return i.set(e,t),this.size=i.size,this};function d(e){var t=this.__data__=new n.A(e);this.size=t.size}d.prototype.clear=r,d.prototype.delete=o,d.prototype.get=s,d.prototype.has=a,d.prototype.set=u;const h=d;var p=i(8300),_=i(3736),f=i(4099);const g=function(e,t,i,n,r,o){var s=1&i,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,g=2&i?new p.A:void 0;for(o.set(e,t),o.set(t,e);++d<a;){var m=e[d],y=t[d];if(n)var v=s?n(y,m,d,t,e,o):n(m,y,d,e,t,o);if(void 0!==v){if(v)continue;h=!1;break}if(g){if(!(0,_.A)(t,(function(e,t){if(!(0,f.A)(g,t)&&(m===e||r(m,e,i,n,o)))return g.push(t)}))){h=!1;break}}else if(m!==y&&!r(m,y,i,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var m=i(241),y=i(1917);const v=y.A.Uint8Array;var b=i(6984);const w=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i};var L=i(9959),I=m.A?m.A.prototype:void 0,S=I?I.valueOf:void 0;const A=function(e,t,i,n,r,o,s){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new v(e),new v(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,b.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=w;case"[object Set]":var l=1&n;if(a||(a=L.A),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=2,s.set(e,t);var u=g(a(e),a(t),n,r,o,s);return s.delete(e),u;case"[object Symbol]":if(S)return S.call(e)==S.call(t)}return!1};var B=i(3831),k=i(4792),M=i(7405);const x=function(e){return(0,B.A)(e,M.A,k.A)};var C=Object.prototype.hasOwnProperty;const E=function(e,t,i,n,r,o){var s=1&i,a=x(e),l=a.length;if(l!=x(t).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in t:C.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var _=s;++c<l;){var f=e[u=a[c]],g=t[u];if(n)var m=s?n(g,f,u,t,e,o):n(f,g,u,e,t,o);if(!(void 0===m?f===g||r(f,g,i,n,o):m)){p=!1;break}_||(_="constructor"==u)}if(p&&!_){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(e),o.delete(t),p};var O=i(8562);const P=(0,O.A)(y.A,"DataView");const F=(0,O.A)(y.A,"Promise");var $=i(9857);const j=(0,O.A)(y.A,"WeakMap");var T=i(2383),V=i(1121),R="[object Map]",N="[object Promise]",D="[object Set]",H="[object WeakMap]",W="[object DataView]",z=(0,V.A)(P),G=(0,V.A)(l.A),Z=(0,V.A)(F),Y=(0,V.A)($.A),X=(0,V.A)(j),U=T.A;(P&&U(new P(new ArrayBuffer(1)))!=W||l.A&&U(new l.A)!=R||F&&U(F.resolve())!=N||$.A&&U(new $.A)!=D||j&&U(new j)!=H)&&(U=function(e){var t=(0,T.A)(e),i="[object Object]"==t?e.constructor:void 0,n=i?(0,V.A)(i):"";if(n)switch(n){case z:return W;case G:return R;case Z:return N;case Y:return D;case X:return H}return t});const J=U;var q=i(2049),K=i(1200),Q=i(2871),ee="[object Arguments]",te="[object Array]",ie="[object Object]",ne=Object.prototype.hasOwnProperty;const re=function(e,t,i,n,r,o){var s=(0,q.A)(e),a=(0,q.A)(t),l=s?te:J(e),c=a?te:J(t),u=(l=l==ee?ie:l)==ie,d=(c=c==ee?ie:c)==ie,p=l==c;if(p&&(0,K.A)(e)){if(!(0,K.A)(t))return!1;s=!0,u=!1}if(p&&!u)return o||(o=new h),s||(0,Q.A)(e)?g(e,t,i,n,r,o):A(e,t,l,i,n,r,o);if(!(1&i)){var _=u&&ne.call(e,"__wrapped__"),f=d&&ne.call(t,"__wrapped__");if(_||f){var m=_?e.value():e,y=f?t.value():t;return o||(o=new h),r(m,y,i,n,o)}}return!!p&&(o||(o=new h),E(e,t,i,n,r,o))};var oe=i(3098);const se=function e(t,i,n,r,o){return t===i||(null==t||null==i||!(0,oe.A)(t)&&!(0,oe.A)(i)?t!=t&&i!=i:re(t,i,n,r,e,o))};const ae=function(e,t,i,n){var r=i.length,o=r,s=!n;if(null==e)return!o;for(e=Object(e);r--;){var a=i[r];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<o;){var l=(a=i[r])[0],c=e[l],u=a[1];if(s&&a[2]){if(void 0===c&&!(l in e))return!1}else{var d=new h;if(n)var p=n(c,u,l,e,t,d);if(!(void 0===p?se(u,c,3,n,d):p))return!1}}return!0};var le=i(3149);const ce=function(e){return e==e&&!(0,le.A)(e)};const ue=function(e){for(var t=(0,M.A)(e),i=t.length;i--;){var n=t[i],r=e[n];t[i]=[n,r,ce(r)]}return t};const de=function(e,t){return function(i){return null!=i&&(i[e]===t&&(void 0!==t||e in Object(i)))}};const he=function(e){var t=ue(e);return 1==t.length&&t[0][2]?de(t[0][0],t[0][1]):function(i){return i===e||ae(i,e,t)}};var pe=i(6318);const _e=function(e,t,i){var n=null==e?void 0:(0,pe.A)(e,t);return void 0===n?i:n};const fe=function(e,t){return null!=e&&t in Object(e)};var ge=i(4878),me=i(5175),ye=i(5353),ve=i(5254),be=i(901);const we=function(e,t,i){for(var n=-1,r=(t=(0,ge.A)(t,e)).length,o=!1;++n<r;){var s=(0,be.A)(t[n]);if(!(o=null!=e&&i(e,s)))break;e=e[s]}return o||++n!=r?o:!!(r=null==e?0:e.length)&&(0,ve.A)(r)&&(0,ye.A)(s,r)&&((0,q.A)(e)||(0,me.A)(e))};const Le=function(e,t){return null!=e&&we(e,t,fe)};var Ie=i(6586);const Se=function(e,t){return(0,Ie.A)(e)&&ce(t)?de((0,be.A)(e),t):function(i){var n=_e(i,e);return void 0===n&&n===t?Le(i,e):se(t,n,3)}};var Ae=i(9008);const Be=function(e){return function(t){return null==t?void 0:t[e]}};const ke=function(e){return function(t){return(0,pe.A)(t,e)}};const Me=function(e){return(0,Ie.A)(e)?Be((0,be.A)(e)):ke(e)};const xe=function(e){return"function"==typeof e?e:null==e?Ae.A:"object"==typeof e?(0,q.A)(e)?Se(e[0],e[1]):he(e):Me(e)}},9008:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e){return e}},9469:(e,t,i)=>{i.d(t,{A:()=>h});const n=function(){this.__data__=[],this.size=0};var r=i(6984);const o=function(e,t){for(var i=e.length;i--;)if((0,r.A)(e[i][0],t))return i;return-1};var s=Array.prototype.splice;const a=function(e){var t=this.__data__,i=o(t,e);return!(i<0)&&(i==t.length-1?t.pop():s.call(t,i,1),--this.size,!0)};const l=function(e){var t=this.__data__,i=o(t,e);return i<0?void 0:t[i][1]};const c=function(e){return o(this.__data__,e)>-1};const u=function(e,t){var i=this.__data__,n=o(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};function d(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}d.prototype.clear=n,d.prototype.delete=a,d.prototype.get=l,d.prototype.has=c,d.prototype.set=u;const h=d},9588:(e,t,i)=>{i.d(t,{KL:()=>s,R0:()=>n,e$:()=>o,hl:()=>r});const n="https://map-api.mapxus.co.jp/sc/api/v1/apikeys/auth",r="https://map-api.mapxus.co.jp/bms",o=10,s=1},9610:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(2383),r=i(3149);const o=function(e){if(!(0,r.A)(e))return!1;var t=(0,n.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9857:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(8562),r=i(1917);const o=(0,n.A)(r.A,"Set")},9959:(e,t,i)=>{i.d(t,{A:()=>n});const n=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};i.r(n),i.d(n,{AccessControl:()=>Ti.k,AccessControlOrigin:()=>o.en,BuildingFilterControl:()=>Nt,BuildingSelectorHandler:()=>di,BuildingsService:()=>Ae,DistanceSearchType:()=>o.Kp,FloorSelectorHandler:()=>hi,FloorSwitchMode:()=>o.MA,FloorsControl:()=>Jt,Indoor:()=>Ft,Map:()=>mi,Marker:()=>vi,OFFSET:()=>Vi.OFFSET,OrientationDistanceSearchType:()=>o._P,PAGE:()=>Vi.PAGE,Poi:()=>jt,PoisOrderBy:()=>o.LJ,PoisService:()=>ke,PoisSortBy:()=>o.nH,PresetLanguage:()=>o.ys,RoutePainter:()=>Pi,RouteService:()=>xe,SwitchBuildingHandler:()=>ui,SwitchOutdoorHandler:()=>ci,ThemeType:()=>o.SV,VERSION:()=>Vi.VERSION,VehicleType:()=>o.$O,VenuesService:()=>Ie,convertBrowserLangToPresetLang:()=>Vi.convertBrowserLangToPresetLang,getIdentifier:()=>Vi.getIdentifier});var r=i(7007),o=i(916);function s(e){return e.layers.filter(a)}function a(e){return e.source===c}function l(e){return e.source!==c}const c="indoor-planet";var u=i(8562);const d=function(){try{var e=(0,u.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const h=function(e,t,i){"__proto__"==t&&d?d(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i};const p=function(e){return function(t,i,n){for(var r=-1,o=Object(t),s=n(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===i(o[l],l,o))break}return t}}();var _=i(7405);const f=function(e,t){return e&&p(e,t,_.A)};var g=i(8816);const m=function(e,t){var i={};return t=(0,g.A)(t,3),f(e,(function(e,n,r){h(i,t(e,n,r),e)})),i};const y=function(e,t,i,n){var r=-1,o=null==e?0:e.length;for(n&&o&&(i=e[++r]);++r<o;)i=t(i,e[r],r,e);return i};var v=i(8446);const b=function(e,t){return function(i,n){if(null==i)return i;if(!(0,v.A)(i))return e(i,n);for(var r=i.length,o=t?r:-1,s=Object(i);(t?o--:++o<r)&&!1!==n(s[o],o,s););return i}}(f);const w=function(e,t,i,n,r){return r(e,(function(e,r,o){i=n?(n=!1,e):t(i,e,r,o)})),i};var L=i(2049);const I=function(e,t,i){var n=(0,L.A)(e)?y:w,r=arguments.length<3;return n(e,(0,g.A)(t,4),i,r,b)};function S(e){const{buildingId:t,labelCenter:{lat:i,lon:n},floors:r,name:o,venueId:s,defaultFloor:a}=e,l=m(o,((e,t)=>"default"===t?"name":`name:${t}`)),{codes:c,ids:u,ordinals:d}=r.reduce(((e,t)=>{const{id:i,code:n,ordinal:r}=t;return{codes:e.codes?`${e.codes},${n}`:n,ids:e.ids?`${e.ids},${i}`:i,ordinals:`${e.ordinals}`?`${e.ordinals},${r}`:`${r}`}}),{codes:"",ids:"",ordinals:""});return{layer:{id:"mapxus-building-line"},properties:{building:"yes",id:t,label_center:`${n},${i}`,level_ids:u,level_names:c,ordinals:d,"ref:venue":s,...l,...a?{default_displayed_floor:a}:{}},source:"indoor-planet",sourceLayer:"mapxus_building"}}const A=require("axios");var B=i.n(A),k=i(9588),M=i(7311);let x="",C="";const E=new Map,O=M.o.getInstance();O.disconnect((async({appId:e,from:t})=>{if(t===o.en.Map){const e=O.getAppId(o.en.Access);e!==x&&(delete B().defaults.headers.common.token,e&&await P.setHeaders(e,"")),x="",C=""}else e!==x&&(delete B().defaults.headers.common.token,x&&C&&await P.setHeaders(x,C))})),B().interceptors.response.use(null,(async e=>{const{config:t,response:i}=e;if(401!==i.status||!t)throw e;{const i=t.url,n=(E.get(i)||0)+1;if(n>1&&n<3&&(O.deleteToken(O.getAppId()),await new Promise((e=>setTimeout(e,1e3)))),n>3)throw E.delete(i),e;t.headers.token=await O.getToken(O.getAppId()),E.set(i,n),t.headers.sdkVersion||(t.headers.sdkVersion=O.version),t.headers.identifier||(t.headers.identifier=await O.getIdentifier());try{const e=await B()(t);return E.delete(i),e}catch(e){throw e}}}));class P{static async setHeaders(e,t){e&&t&&(x=e,C=t);const i=await O.getIdentifier(),n=await O.getToken(e,t);i&&n&&(B().defaults.headers.common={identifier:i,token:n,sdkVersion:O.version,"Content-Type":"application/json"})}static getDefaultRequestParams(e){return{url:e,headers:B().defaults.headers.common}}constructor(e){B().defaults.baseURL=e??k.hl}get(e){return B().get(e)}post(e,t){return B().post(e,t)}}function F(e){const t=(0,L.A)(e),i=t&&!e.length||!t&&!e.trim().length;if(i)throw new Error("Parameter cannot be empty.");return i?null:t?e.filter((e=>!!e.trim())).map((e=>e.trim())).join(","):e.trim()}var $=i(5572);const j=function(e,t){var i=-1,n=(0,v.A)(e)?Array(e.length):[];return b(e,(function(e,r,o){n[++i]=t(e,r,o)})),n};const T=function(e,t){return((0,L.A)(e)?$.A:j)(e,(0,g.A)(t,3))};const V=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};var R=i(6318),N=i(6984),D=Object.prototype.hasOwnProperty;const H=function(e,t,i){var n=e[t];D.call(e,t)&&(0,N.A)(n,i)&&(void 0!==i||t in e)||h(e,t,i)};var W=i(4878),z=i(5353),G=i(3149),Z=i(901);const Y=function(e,t,i,n){if(!(0,G.A)(e))return e;for(var r=-1,o=(t=(0,W.A)(t,e)).length,s=o-1,a=e;null!=a&&++r<o;){var l=(0,Z.A)(t[r]),c=i;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(r!=s){var u=a[l];void 0===(c=n?n(u,l,a):void 0)&&(c=(0,G.A)(u)?u:(0,z.A)(t[r+1])?[]:{})}H(a,l,c),a=a[l]}return e};const X=function(e,t,i){for(var n=-1,r=t.length,o={};++n<r;){var s=t[n],a=(0,R.A)(e,s);i(a,s)&&Y(o,(0,W.A)(s,e),a)}return o};var U=i(3831),J=i(6912);const q=(0,i(367).A)(Object.getPrototypeOf,Object);var K=i(4792),Q=i(3153);const ee=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,J.A)(t,(0,K.A)(e)),e=q(e);return t}:Q.A;var te=i(2505),ie=i(7271);const ne=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t};var re=Object.prototype.hasOwnProperty;const oe=function(e){if(!(0,G.A)(e))return ne(e);var t=(0,ie.A)(e),i=[];for(var n in e)("constructor"!=n||!t&&re.call(e,n))&&i.push(n);return i};const se=function(e){return(0,v.A)(e)?(0,te.A)(e,!0):oe(e)};const ae=function(e){return(0,U.A)(e,se,ee)};const le=function(e,t){if(null==e)return{};var i=(0,$.A)(ae(e),(function(e){return[e]}));return t=(0,g.A)(t),X(e,i,(function(e,i){return t(e,i[0])}))};const ce=function(e,t){return le(e,V((0,g.A)(t)))};var ue=i(5707);const de=function(e){return e!=e};const he=function(e,t,i){for(var n=i-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1};const pe=function(e,t,i){return t==t?he(e,t,i):(0,ue.A)(e,de,i)};var _e=i(2383),fe=i(3098);const ge=function(e){return"string"==typeof e||!(0,L.A)(e)&&(0,fe.A)(e)&&"[object String]"==(0,_e.A)(e)};var me=i(8593);const ye=function(e,t){return(0,$.A)(t,(function(t){return e[t]}))};const ve=function(e){return null==e?[]:ye(e,(0,_.A)(e))};var be=Math.max;const we=function(e,t,i,n){e=(0,v.A)(e)?e:ve(e),i=i&&!n?(0,me.A)(i):0;var r=e.length;return i<0&&(i=be(r+i,0)),ge(e)?i<=r&&e.indexOf(t,i)>-1:!!r&&pe(e,t,i)>-1},Le=["opening_hours","description","phone","website","email","appURL","icon"];class Ie{_api="/api/v4/venues";_request;constructor(){this._request=new P}searchByIds(e){const t=F(e);if(!t)throw new Error("Please input venue id at least one.");const i=`${this._api}/${t}`;return this._changedRes(i)}searchByDistance(e,t,i,n=k.e$,r=k.KL){if(!e||!t||!i)throw new Error("Missing required parameter.");const o=new URLSearchParams({keywords:e,center:t.join(","),distance:String(i),offset:String(n),page:String(r)}),s=`${this._api}?${o.toString()}`;return this._changedRes(s)}searchByBbox(e,t,i=k.e$,n=k.KL){if(!e||!t)throw new Error("Missing required parameter.");const r=new URLSearchParams({keywords:e,bbox:t.join(","),offset:String(i),page:String(n)}),o=`${this._api}?${r.toString()}`;return this._changedRes(o)}searchByGlobal(e,t=k.e$,i=k.KL){if(!e)throw new Error("Missing required parameter.");const n=new URLSearchParams({keywords:e,offset:String(t),page:String(i)}),r=`${this._api}?${n.toString()}`;return this._changedRes(r)}search(e){const t=T(e,((e,t)=>"bounds"===t?`bbox=${e.flat().join()}`:"center"===t?`center=${e.join()}`:`${t}=${e}`));return this._changedRes(`${this._api}?${t.join("&")}`)}_changedRes(e){return new Promise(((t,i)=>{this._request.get(e).then((e=>{e.data.result.venues=T(e.data.result.venues,(e=>ce(e,((e,t)=>we(Le,t))))),t(e)})).catch(i)}))}}const Se=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","description"];class Ae{_api="/api/v4/buildings";_request;constructor(){this._request=new P}searchByIds(e){const t=F(e);if(!t)throw new Error("Please input building id at least one.");const i=`${this._api}/${t}`;return this._changedRes(i)}searchByDistance(e,t,i,n=k.e$,r=k.KL){if(arguments.length<3)throw new Error("Parameter cannot be empty.");if(2!==t.length)throw new Error("Center lon lat cannot be less than 2.");const o=[`center=${t.join(",")}`,`distance=${i}`,`offset=${n}`,`page=${r}`];e&&o.unshift(`keywords=${e}`);const s=`${this._api}?${o.join("&")}`;return this._changedRes(s)}searchByBbox(e,t,i=k.e$,n=k.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");if(4!==t.length)throw new Error("Bbox parameters cannot be less than 2.");const r=[`bbox=${t.join(",")}`,`offset=${i}`,`page=${n}`];e&&r.unshift(`keywords=${e}`);const o=`${this._api}?${r.join("&")}`;return this._changedRes(o)}searchByGlobal(e,t=k.e$,i=k.KL){if(!arguments.length)throw new Error("Parameter cannot be empty.");const n=["searchGlobal=true",`offset=${t}`,`page=${i}`];e&&n.unshift(`keywords=${e}`);const r=`${this._api}?${n.join("&")}`;return this._changedRes(r)}searchByFloorId(e){if(!e)throw new Error("Parameter cannot be empty.");return this._changedRes(`${this._api}/floors/${e}`)}search(e){const t=T(e,((e,t)=>"bounds"===t?`bbox=${e.flat().join()}`:"center"===t?`center=${e.join()}`:`${t}=${e}`));return this._changedRes(`${this._api}?${t.join("&")}`)}_changedRes(e){return new Promise(((t,i)=>{this._request.get(e).then((e=>{e.data.result.buildings=T(e.data.result.buildings,(e=>ce(e,((e,t)=>we(Se,t))))),t(e)})).catch(i)}))}}const Be=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","icon"];class ke{_api="/api/v3/pois";_apiV4="/api/v4/pois";_categoriesApi="/api/v2/categories/pois";_categoriesGroupApi="/api/v5/categories/group";_request;constructor(){this._request=new P}searchByIds(e){const t=F(e);if(!t)throw new Error("Please input poi id at least one.");const i=`${this._apiV4}/${t}`;return this._changedRes(i,(e=>e.descriptions?.default?{description:e.descriptions.default}:null))}searchByDistance(e){const{center:t,distance:i,keywords:n="",offset:r=k.e$,page:o=k.KL}=e;if(!t||!i)throw new Error("Parameter missing.");const s=[`keywords=${n}`,`center=${t.join(",")}`,`distance=${Math.round(i)}`,`offset=${r}`,`page=${o}`],a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByBounds(e){const{bounds:t,offset:i=k.e$,page:n=k.KL,keywords:r,orderBy:o}=e,s=[`bbox=${t.flat().join()}`,`offset=${i}`,`page=${n}`];Me(r)&&s.push(`keywords=${r.trim()}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByBuilding(e){const{buildingId:t,offset:i=k.e$,page:n=k.KL,keywords:r,orderBy:o}=e,s=[`buildingId=${t}`,`offset=${i}`,`page=${n}`];Me(r)&&s.push(`keywords=${r.trim()}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByVenue(e){const{venueId:t,offset:i=k.e$,page:n=k.KL,keywords:r,orderBy:o}=e,s=[`venueId=${t}`,`offset=${i}`,`page=${n}`];Me(r)&&s.push(`keywords=${r.trim()}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByFloor(e){const{floorId:t,offset:i=k.e$,page:n=k.KL,keywords:r,orderBy:o}=e,s=[`floorId=${t}`,`offset=${i}`,`page=${n}`];r&&s.push(`keywords=${r}`),o&&s.push(`orderBy=${o}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchCategories(e){let t,i;var n;"bounds"in e?(t=`bbox=${e.bounds.flat().join()}`,"string"==typeof(n=e.keywords)&&Boolean(n.trim())&&(t+=`&keywords=${e.keywords.trim()}`),i=`${this._categoriesGroupApi}?${t}`):("floorId"in e?t=`floorId=${e.floorId}`:"buildingId"in e?t=`buildingId=${e.buildingId}`:"venueId"in e&&(t=`venueId=${e.venueId}`),i=`${this._categoriesApi}?${t}`);try{return this._request.get(i)}catch(e){throw e}}searchByOrientation(e){const{center:t,angle:i,distance:n,distanceSearchType:r=o._P.POINT}=e,s=[`center=${t.join()}`,`angle=${Math.round(i)}`,`distance=${n}`,`distanceSearchType=${r}`];"ordinal"in e?s.push(`ordinal=${e.ordinal}`):"floorId"in e?s.push(`floorId=${e.floorId}`):"buildingId"in e&&s.push(`buildingId=${e.buildingId}`);const a=`${this._api}/orientation?${s.join("&")}`;return this._request.get(a)}searchByCategory(e){const{center:t,distance:i,page:n=k.KL,offset:r=k.e$}=e,o=[`center=${t.join(",")}`,`distance=${i}`,`offset=${r}`,`page=${n}`];let s="";if("category"in e)s=`${this._api}?category=${e.category}&${o.join("&")}`;else if("excludedCategories"in e){const{excludedCategories:t}=e;s=(0,L.A)(t)?`${this._api}?excludeCategories=${t.join(",")}&${o.join("&")}`:`${this._api}?excludeCategories=${t}&${o.join("&")}`}if(s.length)return this._changedRes(s);throw new Error("Parameter missing.")}search(e){const t=T(e,((e,t)=>"bounds"===t?`bbox=${e.flat().join()}`:"center"===t?`center=${e.join()}`:"excludedCategories"===t?`excludeCategories=${(0,L.A)(e)?e.join(","):e}`:`${t}=${e}`));return this._request.get(`${this._api}?${t.join("&")}`)}_changedRes(e,t){return new Promise(((i,n)=>{this._request.get(e).then((e=>{e.data.result.pois=T(e.data.result.pois,(e=>{let i=ce(e,((e,t)=>we(Be,t)));return t&&t(i)&&(i=Object.assign({},i,t(i))),i})),i(e)})).catch(n)}))}}function Me(e){return"string"==typeof e&&Boolean(e.trim())}class xe{_api="/api/v3/route/query";_request;constructor(){this._request=new P}search(e){const{points:t,vehicle:i=o.$O.FOOT,locale:n="en"}=e;if(!(t&&t.length>1&&t.length<6))throw new Error("Parameter error. It must be 1 < {points.length} < 6");const r={points:t,vehicle:i,locale:n};try{return this._request.post(this._api,JSON.stringify(r))}catch(e){throw new Error(e)}}}var Ce=i(4969);const Ee={lineWidth:3,lineColor:"#A5E3FF",lineOpacity:1},Oe={fontColor:"#8c8c8c",activeFontColor:"#fff",backgroundColor:"#fff",activeBackgroundColor:"#074769",itemSize:50,itemCount:4,defaultFolded:!1},Pe=(0,Ce.y)(window.navigator.language)??o.ys.ENGLISH,Fe=new Ae,$e=new Ie,je=new ke;async function Te(e){try{return(await Fe.searchByIds(e)).data.result.buildings[0]}catch(e){throw new Error(e)}}async function Ve(e){try{const t=(await Fe.searchByFloorId(e)).data.result.buildings[0].buildingId;return await Te(t)}catch(e){throw new Error(e)}}const Re="reserve_mapxus-building-fill";var Ne={value:()=>{}};function De(){for(var e,t=0,i=arguments.length,n={};t<i;++t){if(!(e=arguments[t]+"")||e in n||/[\s.]/.test(e))throw new Error("illegal type: "+e);n[e]=[]}return new He(n)}function He(e){this._=e}function We(e,t){for(var i,n=0,r=e.length;n<r;++n)if((i=e[n]).name===t)return i.value}function ze(e,t,i){for(var n=0,r=e.length;n<r;++n)if(e[n].name===t){e[n]=Ne,e=e.slice(0,n).concat(e.slice(n+1));break}return null!=i&&e.push({name:t,value:i}),e}He.prototype=De.prototype={constructor:He,on:function(e,t){var i,n=this._,r=function(e,t){return e.trim().split(/^|\s+/).map((function(e){var i="",n=e.indexOf(".");if(n>=0&&(i=e.slice(n+1),e=e.slice(0,n)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}}))}(e+"",n),o=-1,s=r.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o<s;)if(i=(e=r[o]).type)n[i]=ze(n[i],e.name,t);else if(null==t)for(i in n)n[i]=ze(n[i],e.name,null);return this}for(;++o<s;)if((i=(e=r[o]).type)&&(i=We(n[i],e.name)))return i},copy:function(){var e={},t=this._;for(var i in t)e[i]=t[i].slice();return new He(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var i,n,r=new Array(i),o=0;o<i;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,i=(n=this._[e]).length;o<i;++o)n[o].value.apply(t,r)},apply:function(e,t,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],r=0,o=n.length;r<o;++r)n[r].value.apply(t,i)}};const Ge=De;class Ze{_historyBuilding;_historyOrdinal;_selectedBuildings;static instance;constructor(){this._historyBuilding=new Map,this._historyOrdinal=new Map,this._selectedBuildings=new Set}static getInstance(){return Ze.instance||(Ze.instance=new Ze),Ze.instance}getHistoryBuilding(e){return this._historyBuilding.get(e)}setHistoryBuilding(e,t){this._historyBuilding.set(e,t)}getHistoryOrdinal(e){return this._historyOrdinal.get(e)}setHistoryOrdinal(e,t){this._historyOrdinal.set(e,t)}getHistoryBuildings(){return this._selectedBuildings}addHistoryBuilding(e){this._selectedBuildings.delete(e),this._selectedBuildings.add(e),this._selectedBuildings.size>100&&(this._selectedBuildings=new Set(Array.from(this._selectedBuildings).slice(this._selectedBuildings.size-100)))}}class Ye{static instance;_upperBuildings;_lowerBuildings;_hiddenBuildings;constructor(){this._upperBuildings=new Set,this._lowerBuildings=new Set,this._hiddenBuildings=new Set}static getInstance(){return Ye.instance||(Ye.instance=new Ye),Ye.instance}getUpperBuildings(){return this._upperBuildings}getLowerBuildings(){return this._lowerBuildings}getHiddenBuildings(){return this._hiddenBuildings}}var Xe=i(8301),Ue=i(1625),Je=i(1882);const qe=function(e,t,i){for(var n=-1,r=e.length;++n<r;){var o=e[n],s=t(o);if(null!=s&&(void 0===a?s==s&&!(0,Je.A)(s):i(s,a)))var a=s,l=o}return l};const Ke=function(e,t){return e<t};const Qe=function(e,t){return e&&e.length?qe(e,(0,g.A)(t,2),Ke):void 0};var et=i(1917);const tt=function(){return et.A.Date.now()};var it=i(751),nt=Math.max,rt=Math.min;const ot=function(e,t,i){var n,r,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var i=n,o=r;return n=r=void 0,c=t,s=e.apply(o,i)}function _(e){var i=e-l;return void 0===l||i>=t||i<0||d&&e-c>=o}function f(){var e=tt();if(_(e))return g(e);a=setTimeout(f,function(e){var i=t-(e-l);return d?rt(i,o-(e-c)):i}(e))}function g(e){return a=void 0,h&&n?p(e):(n=r=void 0,s)}function m(){var e=tt(),i=_(e);if(n=arguments,r=this,l=e,i){if(void 0===a)return function(e){return c=e,a=setTimeout(f,t),u?p(e):s}(l);if(d)return clearTimeout(a),a=setTimeout(f,t),p(l)}return void 0===a&&(a=setTimeout(f,t)),s}return t=(0,it.A)(t)||0,(0,G.A)(i)&&(u=!!i.leading,o=(d="maxWait"in i)?nt((0,it.A)(i.maxWait)||0,t):o,h="trailing"in i?!!i.trailing:h),m.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=l=r=a=void 0},m.flush=function(){return void 0===a?s:g(tt())},m};var st=i(8300);const at=function(e,t){return!!(null==e?0:e.length)&&pe(e,t,0)>-1};const lt=function(e,t,i){for(var n=-1,r=null==e?0:e.length;++n<r;)if(i(t,e[n]))return!0;return!1};var ct=i(4099),ut=i(9857);const dt=function(){};var ht=i(9959),pt=ut.A&&1/(0,ht.A)(new ut.A([,-0]))[1]==1/0?function(e){return new ut.A(e)}:dt;const _t=pt;const ft=function(e,t,i){var n=-1,r=at,o=e.length,s=!0,a=[],l=a;if(i)s=!1,r=lt;else if(o>=200){var c=t?null:_t(e);if(c)return(0,ht.A)(c);s=!1,r=ct.A,l=new st.A}else l=t?[]:a;e:for(;++n<o;){var u=e[n],d=t?t(u):u;if(u=i||0!==u?u:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),a.push(u)}else r(l,d,i)||(l!==a&&l.push(d),a.push(u))}return a};const gt=function(e,t){return e&&e.length?ft(e,(0,g.A)(t,2)):[]};var mt=i(2634);const yt=function(e,t){var i=[];return b(e,(function(e,n,r){t(e,n,r)&&i.push(e)})),i};const vt=function(e,t){return((0,L.A)(e)?mt.A:yt)(e,(0,g.A)(t,3))};var bt=i(3456),wt=0;const Lt=function(e){var t=++wt;return(0,bt.A)(e)+t};var It=i(3736);const St=function(e,t){var i;return b(e,(function(e,n,r){return!(i=t(e,n,r))})),!!i};const At=function(e,t,i){if(!(0,G.A)(i))return!1;var n=typeof t;return!!("number"==n?(0,v.A)(i)&&(0,z.A)(t,i.length):"string"==n&&t in i)&&(0,N.A)(i[t],e)};const Bt=function(e,t,i){var n=(0,L.A)(e)?It.A:St;return i&&At(e,t,i)&&(t=void 0),n(e,(0,g.A)(t,3))},kt="Indoor_selectedFloorChanged",Mt="Indoor_selectedBuildingChanged",xt="Indoor_mapxusMapLoaded",Ct="Indoor_maplibreMapLoaded",Et="mapxus-building-line",Ot="assistant-mapxus-level-outline",Pt=new Ie;class Ft extends r.EventEmitter{_map;_features;_allBuildings;_curBuildingId=null;_curBuildingFeature=null;_ordinal=null;_floorId=null;_floorName=null;_allowOutdoorSwitch;_allowBuildingSwitch;_outdoorMapShown;_originIndoorLayers;_curVenueId=null;_curVenueFeature=null;_buildingHighlightStyle;_lowerLayers;_upperLayers;_commonLayers;_dispatch=Ge(kt);_fitBuildingBounds;_boundsPadding;_startWithIndoorView;_maplibreMapLoaded=!1;_indoorMapLoaded=!1;_isVenueMode;_isMaskMode;_upperLevels=new Set;_lowerLevels=new Set;_featureIncomplete=!1;_dragPan;_isNewBuilding=!1;_buildingBounds;_history=Ze.getInstance();_layerBuildings=Ye.getInstance();_upperBuildings=this._layerBuildings.getUpperBuildings();_lowerBuildings=this._layerBuildings.getLowerBuildings();_hiddenBuildings=this._layerBuildings.getHiddenBuildings();_isDestroyed=!1;_findBuildingTimeoutId=null;_findBuildingIntervalId=null;_debounceRendering;constructor(e){super();const{map:t,startWithIndoorView:i=!0,outdoorMapShown:n=!0,selectedBuildingBorderStyle:r,floorSwitchMode:s=o.MA.SWITCHED_BY_VENUE,fitBuildingBounds:a,boundsPadding:l,maskNonSelectedAreas:c=!1}=e;this._map=t,this._allowOutdoorSwitch=!0,this._allowBuildingSwitch=!0,this._startWithIndoorView=i,this._outdoorMapShown=n,this._isVenueMode=s===o.MA.SWITCHED_BY_VENUE,this._isMaskMode=c,this._fitBuildingBounds=a,this._boundsPadding=l,this._buildingHighlightStyle=r?Object.assign({},Ee,r):Ee,this._hiddenBuildings=new Set,this._loadData()}destroy(){this._isDestroyed||(this._isDestroyed=!0,this._dispatch.on(`.${kt}`,null),this.removeAllListeners(Mt),this.removeAllListeners(Ct),this.removeAllListeners(xt),this._debounceRendering?.cancel(),this._findBuildingTimeoutId&&(clearTimeout(this._findBuildingTimeoutId),this._findBuildingTimeoutId=null),this._findBuildingIntervalId&&(clearInterval(this._findBuildingIntervalId),this._findBuildingIntervalId=null))}setAllowOutdoorSwitch(e){return this._allowOutdoorSwitch=e,this}setAllowBuildingSwitch(e){return this._allowBuildingSwitch=e,this}get floor(){return{code:this._floorName,id:this._floorId,ordinal:this._ordinal}}get building(){return this._curBuildingFeature}get venue(){return this._curVenueFeature}get features(){return this._features}getFeaturesById(e,t){const{layerIds:i,filter:n}=t||{};let r=this.features;if(i?.length){const e=this._map.getCanvas().getBoundingClientRect();r=this._map.queryRenderedFeatures([[0,0],[e.width,e.height]],{layers:i})}return vt(r,n?t=>t.properties.id===e&&n(t):t=>t.properties.id===e)}async switchFloorByOrdinal(e){this._updateFloorState(e),this._dispatch.call(kt,null,{venue:this.venue,building:this.building,floor:this.floor}),e&&this._floorId&&(this._resetSelectedBuildingLevel(),!0===this._dragPan&&(this._fitBuildingBounds?(this._isNewBuilding&&this._featureIncomplete&&await this.panToBuildingCenter(),this.fitBuildingBbox()):await this.panToBuildingCenter()),"restrict"===this._dragPan&&await this._checkAndPanToBuilding()),this.updateRendering()}setOutdoorMapShown(e){this._outdoorMapShown=e,this._setOutdoorVisibility(e)}updateCustomLayers(){this._originIndoorLayers=s(this._map.getStyle()),this._copyOverlapLayers(),this._addBuildingHighlightLayer(),this._addCustomLevelFillLayer(),this._isMaskMode&&this._addBuildingMaskLayer(),this._outdoorMapShown||this._setOutdoorVisibility(!1)}setSelectedBuildingBorderStyle(e){e?(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,e),this._map.getLayer(Ot)&&(this._map.setPaintProperty(Ot,"line-color",this._buildingHighlightStyle.lineColor),this._map.setPaintProperty(Ot,"line-opacity",this._buildingHighlightStyle.lineOpacity),this._map.setPaintProperty(Ot,"line-width",this._buildingHighlightStyle.lineWidth),this._map.setPaintProperty(Ot,"line-offset",this._buildingHighlightStyle.lineWidth))):(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,{"line-opacity":0}),this._map.getLayer(Ot)&&this._map.setPaintProperty(Ot,"line-opacity",0))}onMapChange(e){const t=Lt(`${kt}.`);return this._dispatch.on(t,e),{unsubscribe:()=>this._dispatch.on(t,null)}}async selectBuilding(e,t){(this._allowOutdoorSwitch||e)&&this._allowBuildingSwitch&&this._allowBuildingSwitch&&this._isNotCurrentFeature(e)&&(this._featureIncomplete=t?.featureIncomplete??this._featureIncomplete,this._isNewBuilding=!0,this._isMaskMode&&this._invisibleSelectedBuilding(),await this._updateIndoorState(e,t?.floorId),await this.switchFloorByOrdinal(this._ordinal),this.emit(Mt,{buildingId:this._curBuildingId,ordinal:this._ordinal,dragPan:this._dragPan}),this._indoorMapLoaded||(this._indoorMapLoaded=!0,this.emit(xt)),this._isNewBuilding=!1)}updateRendering(){this._updateFeatures(),this._layerDisplayedBuildings(),this._setDisplayedLevels(),this._filterTiles(),this._setBuildingLineOpacity(),this._filterBuildingHighlight()}async panToBuildingCenter(){const e=this._curBuildingFeature.properties?.label_center?.split(",");if(e&&(this._map.panTo(e),this._featureIncomplete))return new Promise((e=>{this._findBuildingTimeoutId=setTimeout((()=>{let t=!1;const i=()=>{if(this._isDestroyed)return void this._clearTimers();this._map.getLayer(Et)&&this.getFeaturesById(this._curBuildingId,{layerIds:[Et]})[0]&&(t=!0,e(!0))};this._findBuildingIntervalId=setInterval((()=>{t?this._clearTimers():i()}),100),i(),this._map.getZoom()<14&&(this._clearTimers(),e(!1))}))}))}fitBuildingBbox(){this._buildingBounds&&this._map.fitBounds(this._buildingBounds,{padding:this._boundsPadding,bearing:this._map.getBearing()})}setDragPan(e){this._dragPan=e}setBuildingBounds(e){this._buildingBounds=e}async selectBuildingByClickMap(e){let t=null;const i=this._map.queryRenderedFeatures(e,{layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy",Et]});if(i.length){const e=(0,Xe.A)(i,(e=>e.layer.id.startsWith("mapxus-level-fill")));t=e?(0,Xe.A)(i,(t=>t.properties.id===e.properties["ref:building"])):(0,Xe.A)(i,(e=>{const{id:t,level_ids:i}=e.properties;return!this._hiddenBuildings.has(t)&&!Bt(i.split(","),(e=>this._upperLevels.has(e)||this._lowerLevels.has(e)))}))??null}this.setDragPan("restrict"),await this.selectBuilding(t),setTimeout((async()=>{if(this._fitBuildingBounds)if(t){const e=await Te(t.properties.id),{minLon:i,minLat:n,maxLon:r,maxLat:o}=e.bbox;this.setBuildingBounds([[i,n],[r,o]])}else this.setBuildingBounds(null)}))}_loadData(){this._map.on("load",(()=>this._init()))}_init(){this.updateCustomLayers(),this._map.on("data",this._debounceRendering=ot((()=>{this._maplibreMapLoaded||(this._maplibreMapLoaded=!0,this.emit(Ct),(!this._startWithIndoorView||this._map.getZoom()<14)&&(this._indoorMapLoaded=!0,this.emit(xt))),this.updateRendering()}),300))}_clear(){this._curBuildingFeature=null,this._curBuildingId=null,this._ordinal=null,this._floorName=null,this._floorId=null,this._curVenueId=null,this._curVenueFeature=null,this._buildingBounds=null}_getIndoorFeatures(){const e=this._map.getCanvas().getBoundingClientRect(),t=this._map.queryRenderedFeatures([[0,0],[e.width,e.height]]),i=vt(t,(e=>"indoor-planet"===e.source));return gt(i,(e=>e.layer.id+":"+e.properties.id))}_getBuildingFloorByOrdinal(e,t){let i=null,n=null;if(e?.properties){const{ordinals:r,level_names:o,level_ids:s}=e.properties,a=(0,Ue.A)(r?.split(",")||[],(e=>e===t));i=(o?.split(",")||[])[a]??null,n=(s?.split(",")||[])[a]??null}return{code:i,id:n,ordinal:t}}_isNotCurrentFeature(e){return e?.properties?.id!==this._curBuildingId}_setOutdoorVisibility(e){const t=this._map.getStyle().layers.filter(l);if(t.length){const i=e?"visible":"none";t.forEach((({id:e})=>{this._map.getLayer(e)&&this._map.setLayoutProperty(e,"visibility",i)}))}}_addCustomLevelFillLayer(){this._map.getLayer("custom-level-fill")||this._map.addLayer({id:"custom-level-fill",source:"indoor-planet","source-layer":"mapxus_level",type:"fill",paint:{"fill-opacity":0}})}_addBuildingMaskLayer(){if(this._map.getLayer(Re))return;const e=this._originIndoorLayers.find((({id:e})=>e===Et));if(e){const t=Object.assign({},e,{id:Re,layout:Object.assign({},e.layout??{},{visibility:"visible"}),paint:Object.assign({},e.paint??{},{"fill-opacity":0})});this._map.addLayer(t,Et)}}_setBuildingLineOpacity(){this._isMaskMode&&this._map.getLayer(Et)&&this._map.setPaintProperty(Et,"fill-opacity",["case",["in",["get","id"],["literal",[...this._upperBuildings]]],0,["in",["get","id"],["literal",[...this._hiddenBuildings]]],0,1])}_addBuildingHighlightLayer(){if(!this._map.getLayer(Ot)){const{lineWidth:e,lineOpacity:t,lineColor:i}=this._buildingHighlightStyle;this._map.addLayer({id:Ot,source:"indoor-planet","source-layer":"mapxus_level",type:"line",filter:["==","id",""],paint:{"line-offset":e,"line-width":e,"line-color":i,"line-opacity":t}});const n=this._originIndoorLayers.findIndex((({id:e})=>e===this._upperLayers[this._upperLayers.length-1].id)),r=this._originIndoorLayers[n+1];this._map.moveLayer(Ot,r.id)}}_filterBuildingHighlight(){this._map.getLayer(Ot)&&this._map.setFilter(Ot,["==","id",this._floorId??""])}_handleBuildings(e,t){if(t.clear(),e.size)for(const i of e){const n=this._allBuildings.get(i);if(!n?.properties)continue;const{"ref:venue":r,ordinals:o,level_ids:s}=n.properties;let a=this._history.getHistoryOrdinal(this._isVenueMode?this._history.getHistoryBuilding(r):i);if(!a){if(this._isVenueMode){const e=this._features.find((e=>"mapxus-venue-fill"===e.layer.id&&e.properties.id===r));a=this._getVenueDefaultOrdinal(e)}else a=this._getBuildingDefaultOrdinal(n);if(!a)continue;this._history.setHistoryOrdinal(i,a),this._isVenueMode&&this._history.setHistoryBuilding(r,i)}const l=(0,Ue.A)(o.split(","),(e=>e===a));if(l>-1){const n=s.split(",")[l];if(this._isMaskMode){(this._isVenueMode?this._curVenueFeature?.properties?.building_ids?.split(",")||[]:this._curBuildingId?[this._curBuildingId]:[]).includes(i)?(t.add(n),this._hiddenBuildings.delete(i)):e.delete(i)}else t.add(n),this._hiddenBuildings.delete(i)}else this._hiddenBuildings.add(i),e.delete(i)}}_getVenueDefaultOrdinal(e){let t=null;if(e?.properties){const{default_displayed_ordinal:i,building_ids:n}=e.properties;if(i&&(t=i),!t&&n){const e=(0,Xe.A)(this._getBuildingsOfBbox(),(e=>n.includes(e.properties.id)));t=e?this._getBuildingDefaultOrdinal(e):null}}return t}_getBuildingDefaultOrdinal(e){let t=null;if(e?.properties){const{level_ids:i,ordinals:n,default_displayed_floor:r}=e.properties,o=n?.split(",")||[];if(o.length){if(r){t=o[(0,Ue.A)(i?.split(",")||[],(e=>e===r))]??null}t||(t=Qe(o,(e=>Math.abs(Number(e)-.1))))}}return t}_getBuildingsOfBbox(e){let t=this._map.queryRenderedFeatures({layers:[Et]});return t=gt(t,(e=>e.properties.id)),e&&(t=t.filter(e)),t}_copyOverlapLayers(){const e=this._originIndoorLayers.findIndex((({id:e})=>"mapxus-level-fill"===e)),t=this._originIndoorLayers.findIndex((({id:e})=>e.startsWith("mapxus-poi")));this._commonLayers=this._originIndoorLayers.slice(0,e).concat(this._originIndoorLayers.slice(t)),this._upperLayers=this._originIndoorLayers.slice(e,t).filter((e=>"mapxus_building"!==e["source-layer"])),this._lowerLayers=this._upperLayers.map((e=>{const t=Object.assign({},e,{id:`${e.id}-overlap-copy`});return this._map.getLayer(t.id)||(this._map.addLayer(t),this._map.moveLayer(t.id,"mapxus-level-fill")),t}))}_updateFeatures(){this._features=this._getIndoorFeatures();const e=gt(vt(this._features,(e=>e.layer.id===Et)),(e=>e.properties.id));this._allBuildings=new Map(e.map((e=>[e.properties.id,e]))),this._featureIncomplete&&this._allBuildings.get(this._curBuildingId)&&(this._curBuildingFeature=this._allBuildings.get(this._curBuildingId),this._featureIncomplete=!1)}_layerDisplayedBuildings(){if(this._allBuildings.size)for(const e of this._allBuildings.values()){if(!e.properties)continue;const{id:t,overlap:i}=e.properties;let n=!1;if(t===this._curBuildingId)this._hiddenBuildings.delete(t),this._lowerBuildings.delete(t),this._upperBuildings.add(t),i&&(n=!0);else{!this._upperBuildings.has(t)&&!this._lowerBuildings.has(t)&&!this._hiddenBuildings.has(t)&&(this._upperBuildings.add(t),i&&(n=!0))}n&&i.split(",").forEach((e=>{this._hiddenBuildings.has(e)||(this._upperBuildings.delete(e),this._lowerBuildings.add(e))}))}}_setDisplayedLevels(){this._handleBuildings(this._upperBuildings,this._upperLevels),this._handleBuildings(this._lowerBuildings,this._lowerLevels)}_filterTiles(){this._filterIndoorLayers([...this._upperLevels],this._upperLayers??[]),this._filterIndoorLayers([...this._lowerLevels],this._lowerLayers??[]),this._filterIndoorLayers([...this._upperLevels,...this._lowerLevels],this._commonLayers??[])}_filterIndoorLayers(e,t){if(t.length){let i;for(const n of t){const t=n,r=t["source-layer"];if("mapxus_venue"===r||"mapxus_building"===r)continue;const o=t.layout?.visibility,{id:s,filter:a}=t;"none"===o&&this._map.setLayoutProperty(s,"visibility","visible"),a&&(i=["all","mapxus_level"===r?["in","id",...e]:["in","ref:level",...e],a],"mapxus_place"===r&&i.splice(2,0,["any",["all",["has","overlap"],["in","ref:building",...this._upperBuildings]],["!has","overlap"]]),this._map.setFilter(s,i))}}}async _updateIndoorState(e,t){if(e){if(!e.properties)return void console.warn("Building feature properties is empty.",e);const{id:i,"ref:venue":n,level_ids:r,ordinals:o}=e.properties;if(this._curVenueId!==n){this._curVenueId=n;let e=this.getFeaturesById(n,{layerIds:["mapxus-venue-fill"]})[0]??null;if(!e)try{const t=await Pt.searchByIds(n);e=function(e){const{address:t,buildings:i,id:n,name:r,type:o}=e;return{layer:{id:"mapxus-venue-fill"},properties:{...I(t,((e,t,i)=>Object.assign(e,"default"===i?{"addr:street":t.street,"addr:housenumber":t.housenumber}:{[`addr:street:${i}`]:t.street})),{}),...m(r,((e,t)=>"default"===t?"name":`name:${t}`)),id:n,venue:o,building_ids:i.map((({id:e})=>e)).join()},source:"indoor-planet",sourceLayer:"mapxus_venue"}}(t.data.result.venues[0])}catch(e){throw new Error("Venue not found.",{cause:e})}this._curVenueFeature=e}this._curBuildingFeature=e,this._curBuildingId=i,this._history.addHistoryBuilding(i);const s=o.split(",");if(t){const i=s[(0,Ue.A)(r.split(","),(e=>e===t))];i||console.warn("Building has no corresponding ordinal.",e),this._ordinal=i??null}else{let t=this._history.getHistoryOrdinal(this._isVenueMode?this._history.getHistoryBuilding(n):i);(!t||t&&!s.includes(t))&&(t=this._getBuildingDefaultOrdinal(e)),this._ordinal=t}}else this._clear()}_updateFloorState(e){if(this._ordinal=e,this._floorName=null,this._floorId=null,e){const{code:e,id:t}=this._getBuildingFloorByOrdinal(this._curBuildingFeature,this._ordinal);if(this._floorName=e,this._floorId=t,!t)return;this._history.setHistoryOrdinal(this._curBuildingId,this._ordinal),this._isVenueMode&&this._history.setHistoryBuilding(this._curVenueId,this._curBuildingId)}}_resetSelectedBuildingLevel(){(this._isVenueMode?this._curVenueFeature?this._curVenueFeature.properties.building_ids.split(","):[]:[this._curBuildingId]).forEach((e=>{this._upperBuildings.delete(e),this._lowerBuildings.delete(e),this._hiddenBuildings.delete(e)})),this._upperBuildings.add(this._curBuildingId);const e=this._curBuildingFeature.properties.overlap;e&&e.split(",").forEach((e=>{this._upperBuildings.has(e)&&(this._upperBuildings.delete(e),this._lowerBuildings.add(e))}))}async _checkAndPanToBuilding(){this.getFeaturesById(this._curBuildingId,{layerIds:[Et]})[0]||(this._fitBuildingBounds?this.fitBuildingBbox():await this.panToBuildingCenter())}_invisibleSelectedBuilding(){if(this._isVenueMode){if(!this._curVenueFeature)return;const{building_ids:e}=this._curVenueFeature.properties;e&&e.split(",").forEach((e=>{this._upperBuildings.delete(e),this._lowerBuildings.delete(e)}))}else this._curBuildingId&&(this._upperBuildings.delete(this._curBuildingId),this._lowerBuildings.delete(this._curBuildingId))}_clearTimers(){clearInterval(this._findBuildingIntervalId),this._findBuildingIntervalId=null,clearTimeout(this._findBuildingTimeoutId),this._findBuildingTimeoutId=null}}const $t="Poi_poiClick";class jt{_map;_layerIds=[];_dispatch=Ge($t);_debounceQueryFeatures;constructor(e){this._map=e,this._bindEvents()}destroy(){this._dispatch.on(`.${$t}`,null),this._debounceQueryFeatures?.cancel()}onPoiClick(e){const t=Lt(`${$t}.`);return this._dispatch.on(t,e),{unsubscribe:()=>this._dispatch.on(t,null)}}_bindEvents(){this._map.on("styledata",this._debounceQueryFeatures=ot((()=>this._queryPoiLayers()),300)),this._initPoiClick()}_queryPoiLayers(){this._layerIds=T(vt(s(this._map.getStyle()),(e=>"mapxus_place"===e["source-layer"])),(({id:e})=>e))}_initPoiClick(){this._map.on("click",(e=>{const t=this._map.queryRenderedFeatures(e.point,{layers:[...this._layerIds,"mapxus-building-line","mapxus-venue-fill"]});if(t.length){const i=(0,Xe.A)(t,(e=>e.layer.id.indexOf("mapxus-poi")>-1));if(i?.properties){const{"ref:level":n=null,"ref:building":r}=i.properties,o=(0,Xe.A)(t,(e=>e.properties.id===r))??null,s=(0,Xe.A)(t,(e=>e.properties.id===o?.properties?.["ref:venue"]))??null,{floorName:a,ordinal:l}=this._getFloorDataByFloorId(n,o);this._dispatch.call($t,null,{coordinate:e.lngLat,poi:i,building:o,venue:s,floor:{code:a,id:n,ordinal:l}})}}}))}_getFloorDataByFloorId(e,t){let i=null,n=null;if(e&&t?.properties){const{level_ids:r,level_names:o,ordinals:s}=t.properties,a=r?.split(",")||[],l=(0,Ue.A)(a,(t=>t===e));l>-1&&(i=(o?.split(",")||[])[l]??null,n=(s?.split(",")||[])[l]??null)}return{floorName:i,ordinal:n}}}function Tt(e){e.parentNode&&e.parentNode.removeChild(e)}function Vt(e,t,i){const n=document.createElement(e);return t&&(n.className=t),i&&i.appendChild(n),n}const Rt=function(e){return"number"==typeof e||(0,fe.A)(e)&&"[object Number]"==(0,_e.A)(e)};class Nt{_map;_maplibre;_buildingId;_features;_$container;_$listContainer;_$buildingList;_listHeight;_language;_visible;_position="top-right";_isMobileMode;_isListShown=!1;constructor(e,t){this._map=e,this._language=e.getLanguage(),this._visible=t??!0,this._detectDeviceMode()}onAdd(e){return this._maplibre=e,this._$container=Vt("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(){Tt(this._$container)}get position(){return this._position}get enabled(){return this._visible}getDefaultPosition(){return"top-right"}setVisibility(e){this._visible=e,e?this._$showLayout():this._$hideLayout()}changePosition(e,t,i){const n=document.querySelector(`.maplibregl-ctrl-${e}`),r=n.querySelector(".maplibregl-ctrl-building-filter");if(e!==t){this._position=t;const e=document.querySelector(`.maplibregl-ctrl-${t}`);r&&(n.removeChild(r),Rt(i)?e.insertBefore(r,e.children[i]):e.append(r),this._updateBuildingListLayout(t))}else Rt(i)&&n.children[i]!==r&&(n.removeChild(r),n.insertBefore(r,n.children[i]))}_bindEvents(){this._maplibre.on("moveend",(()=>this._refresh())),this._map.onMapChangeListener((e=>{const t=e.building?.properties?.id??"";this._buildingId!==t&&(this._buildingId=t,this._refresh())})),this._map.renderComplete((()=>this._init()))}_init(){this._load()}_refresh(){this._load()}_load(){this._buildingNameListClean(),this._buildingNameListUpdate()}_buildingFilterIconCreate(e){const t=Vt(e,"mapxus-building-filter-icon");return this._bindMouseOnEvents(t,!1),this._bindMobileTouchEvents(t),t}_buildingNameListCreate(e){return this._$listContainer=Vt(e,"mapxus-building-name-layout"),this._$listContainer.style.display="none",this._$listContainer.style.top="20px",this._$buildingList=Vt(e,"mapxus-building-name-list",this._$listContainer),this._bindMouseOnEvents(this._$listContainer,!0),this._$listContainer}_buildingNameListUpdate(){this._features=[];const e=this._map.getMaplibre(),t=e?e.queryRenderedFeatures({layers:["mapxus-building-line"]}):[];for(const e of t){const{properties:t}=e,{id:i,name:n}=t,r=t?.[`name:${this._language}`]??n;(0,Xe.A)(this._features,(e=>e.properties.id===i))||(this._features.push(e),this._$buildingList.appendChild(this._buildingNameCreate("p",r,i,i===this._map.building?.properties?.id)))}this._setBuildingListHeight(this._features),this._updateBuildingListLayout(this._position)}_buildingNameListClean(){this._$buildingList.replaceChildren()}_setBuildingListHeight(e){const t=e.map((e=>{const t=e?.properties?.[`name:${this._language}`]??e?.properties?.name;return t?Math.ceil(8*t.length/107):0})).reduce(((e,t)=>e+t),0);this._listHeight=26*t+8*e.length,this._$buildingList.style.height=this._$listContainer.style.height=`${this._listHeight>=208?208:this._listHeight}px`}_buildingNameCreate(e,t,i,n){const r=Vt(e,"mapxus-building-name"+(n?" active":""));return r.dataset.id=i,r.innerText=t,this._buildingNameClickEvent(r),r}_toggleList(e){this._isListShown=e,this._$listContainer.style.display=e?"block":"none"}_buildingNameClickEvent(e){e.onclick||(e.onclick=async e=>{const t=e.target;await this._map.selectBuildingById(t.dataset.id)})}_bindMouseOnEvents(e,t){e.onmouseenter=()=>{this._isMobileMode||this._toggleList(!0)},t&&(e.onmouseleave=()=>this._toggleList(!1))}_bindMobileTouchEvents(e){window.addEventListener("resize",(()=>this._detectDeviceMode())),e.ontouchend=()=>this._toggleList(!this._isListShown)}_$showLayout(){this._$container.classList.remove("hide")}_$hideLayout(){this._$container.classList.add("hide")}_updateBuildingListLayout(e){e.indexOf("left")>-1?(this._$listContainer.style.right=null,this._$listContainer.style.left="55px"):(this._$listContainer.style.left=null,this._$listContainer.style.right="55px");const t=this._$container.offsetParent?this._$container.offsetParent.clientHeight-(this._$container.offsetTop+this._$container.clientHeight)-25:0;e.includes("bottom")&&this._listHeight-20>t?(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)").matches||window.innerWidth<=768}}const Dt=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e};var Ht=i(9008);const Wt=function(e){return"function"==typeof e?e:Ht.A};const zt=function(e,t){return((0,L.A)(e)?Dt:b)(e,Wt(t))};var Gt=Math.max,Zt=Math.min;const Yt=function(e,t,i){return e>=Zt(t,i)&&e<Gt(t,i)};var Xt=i(8776);const Ut=function(e,t,i){return t=(0,Xt.A)(t),void 0===i?(i=t,t=0):i=(0,Xt.A)(i),e=(0,it.A)(e),Yt(e,t,i)};class Jt{_container;_indoor;_maplibre;_position="top-right";_buildingId=null;_floorNames;_ordinals;_ordinal=null;_style;_$innerFloors;_$activeFloor;_centerSelectorIdx;_lastNormalScrollableIdx;_$arrowBtnUp;_$arrowBtnDown;_maxScrollTop;_$selectorExpanded;_$selectorFolded;_componentDidMount=!1;_isEnabled;_visible=!1;_dragPan;_debounceScroll;_clearScrollEventListener;constructor(e,t){const{style:i,enabled:n=!0}=t;this._indoor=e,this._style=i?Object.assign({},Oe,i):Oe,this._isEnabled=n,this._bindEvents()}onAdd(e){return this._maplibre=e,this._addMapMoveEventListener(),this._container=Vt("div","maplibregl-ctrl mapxus-ctrl-floors hidden"),this._container}onRemove(){this._debounceScroll&&this._debounceScroll.cancel(),this._clearScrollEventListener&&this._clearScrollEventListener(),Tt(this._container)}get position(){return this._position}get enabled(){return this._isEnabled}setEnabled(e){this._isEnabled=e,e&&!this._visible&&this._setVisibility(!0),!e&&this._visible&&this._setVisibility(!1)}getDefaultPosition(){return"top-right"}async switchByOrdinal(e,t){this._ordinal=e,this._dragPan=t??!0,await this._indoor.switchFloorByOrdinal(e),this._updateSelectorStatus(e),this._scrollCenterActiveFloor()}changePosition(e,t,i){const n=document.querySelector(`.maplibregl-ctrl-${e}`),r=n.querySelector(".mapxus-ctrl-floors");if(e!==t){this._position=t;const e=document.querySelector(`.maplibregl-ctrl-${t}`);r&&(n.removeChild(r),Rt(i)?e.insertBefore(r,e.children[i]):e.append(r),this._show(),this._scrollCenterActiveFloor())}else Rt(i)&&n.children[i]!==r&&(n.removeChild(r),n.insertBefore(r,n.children[i]),this._show(),this._scrollCenterActiveFloor())}setStyle(e){this._style=Object.assign({},this._style,e),this._componentDidMount&&(this._clearFloors(),this._render(),this._scrollCenterActiveFloor(),this._componentDidMount=!0)}_setVisibility(e){this._componentDidMount?e?(this._show(),this._scrollCenterActiveFloor()):this._hide():(this._visible=e,this._indoor.building&&e&&(this._mountFloors(this._indoor.building),this._show(),this._scrollCenterActiveFloor()))}_bindEvents(){this._indoor.on(Mt,(({buildingId:e,ordinal:t,dragPan:i})=>{if(this._buildingId=e,this._ordinal=t,this._dragPan=i,this._visible&&this._hide(),this._componentDidMount&&this._clearFloors(),this._indoor.building){this._mountFloors(this._indoor.building);const e=this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0];this.enabled&&(!1!==this._dragPan||!1===this._dragPan&&e)&&(this._show(),this._scrollCenterActiveFloor())}else this._clearState()}))}_addMapMoveEventListener(){this._maplibre.on("moveend",(()=>{if(this.enabled&&!1===this._dragPan&&this._buildingId){const e=this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0];e?this._componentDidMount?this._visible||(this._show(),this._scrollCenterActiveFloor()):(this._mountFloors(e),this._show(),this._scrollCenterActiveFloor()):this._componentDidMount&&this._visible&&this._hide()}}))}_mountFloors(e){this._updateFloorSelector(e),this._componentDidMount=!0}_updateFloorSelector(e){const{level_names:t,ordinals:i}=e.properties;this._floorNames=t.split(",").reverse(),this._ordinals=i.split(",").reverse(),this._render()}_clearState(){this._floorNames=[],this._ordinals=[],this._ordinal=null}_render(){const{itemCount:e,itemSize:t}=this._style;this._centerSelectorIdx=Math.ceil(e/2)-1,this._maxScrollTop=(this._floorNames.length-e)*t,this._lastNormalScrollableIdx=this._floorNames.length-(e-this._centerSelectorIdx-1)-1,this._createFloors()}_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(e,t){const{itemSize:i,itemCount:n,defaultFolded:r,backgroundColor:o}=this._style,s=Vt("div","mapxus-ctrl-floors-expanded "+(r?"hidden":""),e);if(this._floorNames.length>1){Vt("div","mapxus-ctrl-floors-close",s).onclick=t}const a=Vt("div","mapxus-ctrl-floors-wrapper",s);return a.style.backgroundColor=o,this._floorNames.length>n&&(this._$arrowBtnUp=this._$createScrollButton(a,"up"),this._$arrowBtnUp.onclick=()=>this._handleScroll("up")),this._$innerFloors=Vt("div","mapxus-ctrl-floors-inner",a),Object.assign(this._$innerFloors.style,{maxHeight:i*n+"px",width:`${i}px`}),this._$createFloors(this._$innerFloors),this._floorNames.length>n&&(this._$arrowBtnDown=this._$createScrollButton(a,"down"),this._$arrowBtnDown.onclick=()=>this._handleScroll("down"),this._$innerFloors.addEventListener("scroll",this._debounceScroll=ot((e=>{e.stopPropagation(),this._resetArrowBtnStatus(this._$innerFloors.scrollTop)}),100)),this._clearScrollEventListener=()=>this._$innerFloors.removeEventListener("scroll",this._debounceScroll)),s}_$foldedSelector(e,t){const{itemSize:i,activeFontColor:n,activeBackgroundColor:r,defaultFolded:o}=this._style,s=Vt("div","mapxus-ctrl-floors-folded mapxus-ctrl-floors-floor "+(o?"":"hidden"),e);return s.onclick=t,Object.assign(s.style,{width:`${i}px`,height:`${i}px`,lineHeight:`${i}px`,color:n,backgroundColor:r}),s}_clearFloors(){this._container.replaceChildren(),this._componentDidMount=!1}_$createScrollButton(e,t){return Vt("div",`mapxus-ctrl-floors-arrow mapxus-ctrl-floors-floor ${t}`,e)}_$createFloors(e){const{fontColor:t,itemSize:i}=this._style;let n;zt(this._floorNames,((r,o)=>{n=Vt("div","mapxus-ctrl-floors-floor",e),n.dataset.floor=r,n.dataset.ordinal=this._ordinals[o],n.innerText=r,Object.assign(n.style,{color:t,height:`${i}px`,lineHeight:`${i}px`}),n.dataset.ordinal===this._ordinal&&(this._$activeFloor=n,this._resetActiveFloor(!0),this._$selectorFolded.innerText=r),n.onclick=async e=>{this._indoor.setDragPan("restrict"),await this.switchByOrdinal(e.target.dataset.ordinal)}}))}_updateSelectorStatus(e){const t=this._floorNames[this._ordinals.indexOf(e)];this._$activeFloor&&this._resetActiveFloor(!1),zt(this._$innerFloors.children,(t=>{t.dataset.ordinal===e&&(this._$activeFloor=t,this._resetActiveFloor(!0))})),this._$selectorFolded.innerText=t}_resetArrowBtnStatus(e){0===e?this._$arrowBtnUp?.classList?.add("hidden"):this._$arrowBtnUp?.classList?.remove("hidden"),e===this._maxScrollTop?this._$arrowBtnDown?.classList?.add("hidden"):this._$arrowBtnDown?.classList?.remove("hidden")}_resetActiveFloor(e){const{activeBackgroundColor:t,backgroundColor:i,activeFontColor:n,fontColor:r}=this._style;Object.assign(this._$activeFloor.style,{color:e?n:r,backgroundColor:e?t:i,fontWeight:e?"bold":"normal",cursor:e?"auto":"pointer"}),this._$activeFloor.disabled=e}_scrollCenterActiveFloor(){if(this._ordinal){const e=this._ordinals.indexOf(this._ordinal);e>-1&&(this._$innerFloors.scrollTop=this._getScrollTop(e),this._$innerFloors.scrollTop||this._resetArrowBtnStatus(0))}}_getScrollTop(e){return Ut(this._centerSelectorIdx,this._lastNormalScrollableIdx+1)?(e-this._centerSelectorIdx)*this._style.itemSize:e>this._lastNormalScrollableIdx?this._maxScrollTop:0}_handleScroll(e){const t=this._$innerFloors.scrollTop,{itemSize:i}=this._style;if("up"===e){const e=t-2*i;this._$innerFloors.scrollTop=e<0?0:e}else if("down"===e){const e=t+2*i;this._$innerFloors.scrollTop=e>this._maxScrollTop?this._maxScrollTop:e}}_expandSelector(e){e?(this._$selectorExpanded.classList.remove("hidden"),this._$selectorFolded.classList.add("hidden")):(this._$selectorExpanded.classList.add("hidden"),this._$selectorFolded.classList.remove("hidden"))}}class qt{_container;_isEnabled;constructor(e){this._isEnabled=e?.enabled??!0}onAdd(e){if(this._container=Vt("div","maplibregl-ctrl mapxus-ctrl-logo",e.getContainer()),this._isEnabled){const e=Vt("a","mapxus-logo",this._container);e.target="_blank",e.href="https://www.khi.co.jp/groupvision2030/mapxus.html",e.setAttribute("aria-label","Mapxus logo"),e.setAttribute("rel","noopener"),this._container.appendChild(e)}return this._container}onRemove(){Tt(this._container)}getDefaultPosition(){return"bottom-left"}}class Kt{_container;_anchor;_theme;constructor(e){this._theme=e.theme?e.theme:"default"}onAdd(e){return this._container=Vt("div","maplibregl-ctrl mapxus-ctrl-attribution",e.getContainer()),this._anchor=Vt("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(){Tt(this._container)}getDefaultPosition(){return"bottom-right"}changeTheme(e){this._setCopyrightInfo(e)}_setCopyrightInfo(e){this._anchor.innerText="landsD"===e?"© The Government of the Hong Kong SAR":"©Mapxus driven by Kawasaki ©OpenStreetMap contributors","landsD"===e&&(this._anchor.href="https://www.map.gov.hk/gm/")}}class Qt{_container;_$icon;_removeClickEventListener;onAdd(e){return this._container=Vt("div","maplibregl-ctrl mapxus-ctrl-collapsed-copyright",e.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(),Tt(this._container)}getDefaultPosition(){return"bottom-right"}_bindEvents(){const e=this._container.querySelector(".mapxus-collapsed-copyright-menu");this._$icon=this._container.querySelector(".mapxus-collapsed-copyright-btn");let t=!1;function i(){t=!t,t?e.classList.remove("hidden"):e.classList.add("hidden")}this._$icon.addEventListener("click",i),this._removeClickEventListener=()=>this._$icon.removeEventListener("click",i)}}var ei=i(7463);function ti(e){return`${k.hl}/api/v3/tiles/styles/${e}`}const ii=ti("christmas_mims2_v1"),ni=ti("common_mims2_v1"),ri=ti("halloween_mims2_v1"),oi=ti("mappybee_mims2_v1"),si=ti("mapxus_mims2_v1"),ai=ti("lands_d_mims2_v1"),li=ti("mapxus_mims2_v5");class ci{_indoor;_isEnabled=!0;constructor(e){this._indoor=e}enable(){this._isEnabled=!0,this._indoor.setAllowOutdoorSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowOutdoorSwitch(!1)}get isEnabled(){return this._isEnabled}}class ui{_indoor;_isEnabled=!0;constructor(e){this._indoor=e}enable(){this._isEnabled=!0,this._indoor.setAllowBuildingSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowBuildingSwitch(!1)}get isEnabled(){return this._isEnabled}}class di{_buildingSelector;_isEnabled=!0;_position;constructor(e){this._buildingSelector=e}enable(){this._isEnabled=!0,this._buildingSelector.enabled||this._buildingSelector.setVisibility(!0)}disable(){this._isEnabled=!1,this._buildingSelector.enabled&&this._buildingSelector.setVisibility(!1)}setPosition(e,t){this._position=e,this._buildingSelector.changePosition(this._buildingSelector.position,e,t)}get isEnabled(){return this._isEnabled}get position(){return this._position}}class hi{_floorSelector;_isEnabled;_position;constructor(e){this._floorSelector=e,this._position=e.position,this._isEnabled=this._floorSelector.enabled}enable(){this._isEnabled=!0,this._floorSelector.setEnabled(!0)}disable(){this._isEnabled=!1,this._floorSelector.setEnabled(!1)}setPosition(e,t){this._position=e,this._floorSelector.changePosition(this._floorSelector.position,e,t)}setStyle(e){this._floorSelector.setStyle(e)}get isEnabled(){return this._isEnabled}get position(){return this._position}}const pi="Map_mapClick",_i="Map_pointClick",fi="Map_isRenderComplete",gi="Map_isDestroyed";class mi{_appId;_map;_indoor;_poi;_floorsControl;_buildingFilterControl;_attributionControl;_initialHiddenLayers;_language;_dispatch=Ge(pi,_i,fi,gi);_fitBuildingBounds;_history=Ze.getInstance();_hiddenBuildings=Ye.getInstance().getHiddenBuildings();_debounceHTTPErrorHandler;_debounceTilesFilter;_transformRequestHandler;isDestroyed=!1;switchOutdoor;switchBuilding;buildingSelector;floorSelector;constructor(e){const{map:t,appId:i,secret:n,poiId:r,floorId:s,buildingId:a,venueId:l,theme:c=o.SV.MAPXUS_DEFAULT,floorSelectorEnabled:u,buildingSelectorEnabled:d,outdoorMapShown:h,collapseCopyright:p=!1,floorSwitchMode:_,maskNonSelectedAreas:f,fitBuildingBounds:g=!1,boundsPadding:m=30,selectedBuildingBorderStyle:y,floorSelectorStyle:v,language:b=Pe,autoSelectBuilding:w=!1,transformRequest:L=null,mapxusLogoEnabled:I=!0,platform:S}=e;if(!t)throw new Error("Outdoor Map parameter missing.");if(!i||!n)throw new Error("Permission parameter missing.");S&&M.o.setPlatform(S),P.setHeaders(i,n).then((()=>{this._appId=i,this._map=t,this._language=b,this._indoor=new Ft({map:this._map,startWithIndoorView:Boolean(l||a||s||r),outdoorMapShown:h,floorSwitchMode:_,fitBuildingBounds:g,boundsPadding:m,maskNonSelectedAreas:f,selectedBuildingBorderStyle:y}),this._poi=new jt(this._map),this._fitBuildingBounds=g,this._transformRequestHandler=L,this._resourceRequestTransform(),this._setStyle(this._getStyleUrl(c)),this._checkMapZoom(),p?this._attributionControl=new Qt:(this._attributionControl=new Kt({theme:c}),this._addControl(new qt({enabled:I}))),this._addControl(this._attributionControl),this._addControl(this._buildingFilterControl=new Nt(this,d)),this._addControl(this._floorsControl=new Jt(this._indoor,{style:v,enabled:u})),r?this._selectPoiById(r):s?this.selectFloorById(s):a?this.selectBuildingById(a):l&&this.selectVenueById(l),this.switchOutdoor=new ci(this._indoor),this.switchBuilding=new ui(this._indoor),this.buildingSelector=new di(this._buildingFilterControl),this.floorSelector=new hi(this._floorsControl),this._map.on("remove",(()=>this._destroy())),this._map.once("styledata",(()=>this._hideIndoorLayers())),this._map.on("click",(async e=>{const{point:t,lngLat:i}=e;await this._indoor.selectBuildingByClickMap(t),this._dispatch.call(_i,null,{point:t,coordinate:i}),this._dispatch.call(pi,null,{coordinate:i,venue:this.venue,building:this.building,floor:this.floor})})),this._map.on("error",this._debounceHTTPErrorHandler=ot((e=>this._updatePermission(e,i,n)),350)),this._indoor.once(Ct,(()=>{this._showIndoorLayers(),this.setLanguage(this._language)})),this._indoor.once(xt,(()=>{w&&this._map.on("moveend",(()=>this._selectCenterBuilding())),this._dispatch.call(fi)}))})).catch((e=>{throw e}))}renderComplete(e){const t=Lt(`${fi}.`);this._dispatch.on(t,e)}destroyed(e){const t=Lt(`${gi}.`);this._dispatch.on(t,(()=>{e(),this._dispatch.on(t,null),0===this._dispatch._[gi].length&&(delete this._dispatch,Object.freeze(this))}))}setTransformRequest(e){this._transformRequestHandler=e}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(e){this._language!==e&&(this._language=e);const t=this._map?.getStyle(),i=t?.layers;if(i&&i.length){const t=i.filter((({type:e})=>"symbol"===e));t.length&&t.forEach((({id:t})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"text-field",["coalesce",["get",`name:${e}`],["get","name"]])}))}}getLanguage(){return this._language}setOutdoorMapShown(e){this.getIndoor()?.setOutdoorMapShown(e)}getIndoorFeaturesByCoordinates(e,t){const i=this._map.project(e),n=this._map.queryRenderedFeatures(i,{layers:["mapxus-venue-fill","mapxus-building-line","mapxus-level-fill","mapxus-level-fill-overlap-copy"]});let r=null,o=null,s=null;if(n.length){const e=n.filter((e=>e.layer.id.includes("mapxus-level-fill")));s=(0,Xe.A)(e,(e=>Rt(t)?e.properties.ordinal===t+"":e.layer.id.startsWith("mapxus-level-fill"))),s&&(o=(0,Xe.A)(n,(e=>e.properties.id===s.properties["ref:building"])),r=(0,Xe.A)(n,(e=>e.properties.id===o.properties["ref:venue"])))}return{venue:r,building:o,level:s}}getFeaturesById(e,t){return this.getIndoor()?.getFeaturesById(e,t)||[]}async selectFloorById(e,t){const{dragPan:i=!0}=t||{};if(this._indoor.setDragPan(i),e===this.floor?.id)i&&(this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter());else{let t,n,r;if(this._fitBuildingBounds){t=await Ve(e),n=S(t),r=!0;const{maxLat:i,maxLon:o,minLat:s,minLon:a}=t.bbox;this._indoor.setBuildingBounds([[a,s],[o,i]])}else n=(0,Xe.A)(this._indoor?.features||[],(t=>t.properties?.level_ids?.includes(e)&&"mapxus-building-line"===t.layer.id))??null,n?r=!1:(t=await Ve(e),n=S(t),r=!0);if(n&&n?.properties?.id===this.building?.properties?.id){const{level_ids:t,ordinals:r}=n.properties,o=t.split(",").indexOf(e),s=r.split(",")[o]??null;await this._floorsControl.switchByOrdinal(s,i)}else await(this._indoor?.selectBuilding(n,{floorId:e,featureIncomplete:r}))}}async selectBuildingById(e,t){const{dragPan:i=!0}=t||{};if(this._indoor.setDragPan(i),e===this.building?.properties?.id)i&&(this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter());else{let t,i,n=!1;if(this._fitBuildingBounds){t=await Te(e),i=S(t),n=!0;const{maxLat:r,maxLon:o,minLat:s,minLon:a}=t.bbox;this._indoor.setBuildingBounds([[a,s],[o,r]])}else i=this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(e,{layerIds:["mapxus-building-line"]})[0]||null,i||(t=await Te(e),i=S(t),n=!0);await(this._indoor?.selectBuilding(i,{featureIncomplete:n}))}}async selectVenueById(e,t){const{dragPan:i=!0}=t||{};if(this._indoor.setDragPan(i),e)if(e===this.venue?.properties?.id)i&&(this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter());else{let t=this._history.getHistoryBuilding(e);if(!t){const i=this._map.getLayer("mapxus-venue-fill")&&this.getFeaturesById(e,{layerIds:["mapxus-venue-fill"]})[0];if(i){const{default_displayed_building:e,building_ids:n}=i.properties;t=e||(n?.split(",")||[])[0]}else{const i=await async function(e){try{return(await $e.searchByIds(e)).data.result.venues[0]}catch(e){throw new Error(e)}}(e);t=i.defaultBuilding||i.buildings[0]?.id}}await this.selectBuildingById(t,{dragPan:i})}else await(this._indoor?.selectBuilding(null))}onMapClickListener(e){const t=Lt(`${pi}.`);return this._dispatch.on(t,e),{unsubscribe:()=>this._dispatch.on(t,null)}}onPoiClickListener(e){return this._poi?.onPoiClick(e)}onPointClickListener(e){const t=Lt(`${_i}.`);return this._dispatch.on(t,e),{unsubscribe:()=>this._dispatch.on(t,null)}}onMapChangeListener(e){return this._indoor?.onMapChange(e)}switchTheme(e){this._setStyle(this._getStyleUrl(e)),"changeTheme"in this._attributionControl&&this._attributionControl.changeTheme(e),this._map?.once("styledata",this._debounceTilesFilter=ot((()=>this._setIndoorFilter()),250))}setSelectedBuildingBorderStyle(e){return this._indoor?.setSelectedBuildingBorderStyle(e),this}_getStyleUrl(e){let t;if(ve(o.SV).indexOf(e)>-1)switch(e){case o.SV.CHRISTMAS:t=ii;break;case o.SV.HALLOWEEN:t=ri;break;case o.SV.MAPPY_BEE:t=oi;break;case o.SV.MAPXUS:t=si;break;case o.SV.COMMON:t=ni;break;case o.SV.LANDS_D:t=ai;break;default:t=li}else t=function(e){return ti(e)}(e);return t}_setIndoorFilter(){this._indoor.updateCustomLayers(),this._indoor.updateRendering()}_setStyle(e){this._map?.setStyle(e,{localIdeographFontFamily:!1})}_addControl(e,t){this._map.addControl(e,t)}async _selectPoiById(e){try{const t=await async function(e){try{return(await je.searchByIds([e])).data.result.pois[0]}catch(e){throw new Error(e)}}(e),{floorId:i,location:{lon:n,lat:r}}=t;await this.selectFloorById(i),this._map.panTo([n,r])}catch(e){throw new Error(e)}}_resourceRequestTransform(){this._map.setTransformRequest(((e,t)=>{const{host:i}=new URL(e);return i.includes("map-api")&&i.includes("mapxus")?P.getDefaultRequestParams(e):this._transformRequestHandler?this._transformRequestHandler(e,t):{url:e}}))}_checkMapZoom(){const e=this._map.getZoom();(e<8||e>22)&&e>1&&console.warn("Indoor maps perform better at zoom levels [8, 22].")}_hideIndoorLayers(){this._initialHiddenLayers=s(this._map.getStyle()).filter((({id:e})=>!e.includes("mapxus-building")||"mapxus-venue-fill"!==e)),this._initialHiddenLayers.forEach((({id:e})=>{this._map.getLayer(e)&&this._map.setLayoutProperty(e,"visibility","none")}))}_showIndoorLayers(){zt(this._initialHiddenLayers,(({id:e})=>{this._map.getLayer(e)&&this._map.setLayoutProperty(e,"visibility","visible")}))}_updatePermission(e,t,i){401===e.error?.status&&P.setHeaders(t,i).then((()=>{this._resourceRequestTransform()}))}_selectCenterBuilding(){const e=this._getCenterBuildingsMap();if(e.size){let t=e.entries().next().value[0];const i=this._history.getHistoryBuildings();if(i.size){const n=Array.from(i).reverse();for(const i of n)if(e.get(i)){t=i;break}}this.selectBuildingById(t,{dragPan:!1})}}_getCenterBuildingsMap(){const e=this._map.getCanvas().getBoundingClientRect(),t=e.width/4,i=e.height/4,n=[t,i],r=[e.width-t,e.height-i];let o=this._map.queryRenderedFeatures([n,r],{layers:["mapxus-building-line"]});return o=gt(o,"properties.id"),o=vt(o,(e=>!this._hiddenBuildings.has(e.properties.id))),new globalThis.Map(o.map((e=>[`${e.properties.id}`,e])))}_destroy(){if(this.isDestroyed)return;this.isDestroyed=!0,this._debounceHTTPErrorHandler?.cancel(),this._debounceTilesFilter?.cancel();const e=this._dispatch._;for(const t in e)t!==gi&&e.hasOwnProperty(t)&&e[t].forEach((({name:e})=>{this._dispatch.on(`${t}.${e}`,null)}));ei.t.getInstance().deleteToken(this._appId,o.en.Map),this._indoor.destroy(),this._poi.destroy(),Object.keys(this).forEach((e=>{"isDestroyed"!==e&&"_dispatch"!==e&&delete this[e]})),this._dispatch.call(gi)}}async function yi(e,t){if(!e.hasImage(t))try{const i=await e.loadImage(t);e.addImage(t,i.data)}catch(e){throw new Error(e)}}class vi{_maplibreMap;_layerId;_sourceId;_imageName="poi-01";_imageSize=.75;_iconAnchor="bottom";constructor(e){this._maplibreMap=e;const t=Lt();this._layerId=`MXMap_preset_marker_layer_${t}`,this._sourceId=`MXMap_preset_marker_source_${t}`}async setIcon(e){e&&await yi(this._maplibreMap,e),this._imageName=e}setIconSize(e){this._imageSize=e}setIconAnchor(e){this._iconAnchor=e}get layerId(){return this._layerId}get sourceId(){return this._sourceId}create(e){if(e.length){const t=T(e,(e=>this._createIconFeature(e)));this._addIconSource(t),this._addIconLayer()}}updateData(e){const t=this._maplibreMap.getSource(this._sourceId);if(!t)return;const i=!(!e.remove||!e.remove.length),n=!(!e.add||!e.add.length),r=!(!e.update||!e.update.length);if(i||n||r){const o={};i&&(o.remove=e.remove.map((e=>String(e)))),n&&(o.add=e.add.map((e=>this._createIconFeature(e)))),r&&(o.update=e.update.map((e=>{const t="properties"in e,i=this._createIconFeature(e),{id:n,geometry:r,properties:o}=i;return{id:n,newGeometry:r,removeAllProperties:t,...o?{addOrUpdateProperties:T(o,((e,t)=>({key:t,value:e})))}:{}}}))),t.updateData(o)}}remove(){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.removeLayer(this._layerId),this._maplibreMap.getSource(this._sourceId)&&this._maplibreMap.removeSource(this._sourceId)}on(e,t){const i=e=>this._handleEventListener(e,t);return this._maplibreMap.on(e,this._layerId,i),{off:()=>this._maplibreMap.off(e,this._layerId,i)}}setFilter(e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,e)}setFilterByVenue(e,t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","venueId"],e??""],["==",["get","ordinal"],t??""]],["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]]])}setFilterByBuilding(e,t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","buildingId"],e??""],["==",["get","ordinal"],t??""]],["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]]])}setOpacity(e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",e)}setOpacityByVenue(e,t,i){if(this._maplibreMap.getLayer(this._layerId)){const n=["case",["all",["==",["get","venueId"],e??""],["==",["get","ordinal"],t??""]],1,["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]],1,i??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",n)}}setOpacityByBuilding(e,t,i){if(this._maplibreMap.getLayer(this._layerId)){const n=["case",["all",["==",["get","buildingId"],e??""],["==",["get","ordinal"],t??""]],1,["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]],1,i??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",n)}}_createIconFeature(e){const{lngLat:t,properties:i}=e;return{id:"featureId"in e&&Rt(e.featureId)?String(e.featureId):void 0,type:"Feature",geometry:{type:"Point",coordinates:t},properties:i||null}}_addIconSource(e){const t={type:"geojson",data:{type:"FeatureCollection",features:e}};this._maplibreMap.addSource(this._sourceId,t)}_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(e,t){const{point:i}=e;t(this._maplibreMap.queryRenderedFeatures(i,{layers:[this._layerId]})[0])}}const bi=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},wi={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}},Li="mmws-source-line-solid",Ii="mmws-layer-line-solid",Si="mmws-layer-icon-line-symbol",Ai="mmws-source-line-dashed",Bi="mmws-layer-line-dashed",ki="mmws-source-icon-connector",Mi="mmws-layer-icon-connector",xi="mmws-source-icon-marker",Ci="mmws-layer-icon-marker",Ei=[Ii,Si,Bi,Mi,Ci],Oi=[Li,Ai,ki,xi];class Pi{_maplibreMap;_routeStyle=wi;_styleDiffs={};_filterBy="venue";_curVenue=null;_curBuilding=null;_curOrdinal=null;constructor(e,t){this._maplibreMap=e,t&&(this._updateStyleProperties(t),e.on("load",(()=>this._loadMarkerIcons())))}async setStyle(e){this._updateStyleProperties(e),await this._loadMarkerIcons(),await this._updateLayers()}async setMarkerIcons(e){if((0,L.A)(e)&&e.length){const t=e.slice(1,e.length-1);this._routeStyle.markers={from:e[0],to:bi(e),stops:t.length?t:[e[0]]},this._styleDiffs={markers:this._routeStyle.markers}}else"from"in e&&(this._routeStyle.markers.from=e.from,this._styleDiffs.markers.from=e.from),"to"in e&&(this._routeStyle.markers.to=e.to,this._styleDiffs.markers.to=e.to),"stops"in e&&(this._routeStyle.markers.stops=e.stops??[null],this._styleDiffs.markers.stops=e.stops??[null]);await this._loadMarkerIcons()}setMarkerIconSize(e){return this._routeStyle.markerIconSize=e,this}setIndoorLineColor(e){return this._routeStyle.indoorLineColor=e,this}setOutdoorLineColor(e){return this._routeStyle.outdoorLineColor=e,this}setDashedLineColor(e){return this._routeStyle.dashedLineColor=e,this}setBusLineColor(e){return this._routeStyle.shuttleBusLineColor=e,this}render(e,t){const{instructions:i,points:{coordinates:n}}=e,{lineFeatures:r,connectorFeatures:o,dashedLineFeatures:s,markerFeatures:a}=this._classifyFeatures(i,n,t);this._renderSolidLines(r),this._renderLineSymbols(Li,Si),!0!==this._routeStyle.disableDashedLine&&this._renderDashedLines(s),this._renderConnectors(o),this._renderMarkers(a)}remove(){Ei.forEach((e=>{this._maplibreMap.getLayer(e)&&this._maplibreMap.removeLayer(e)})),Oi.forEach((e=>{this._maplibreMap.getSource(e)&&this._maplibreMap.removeSource(e)}))}setFilterByVenue(e,t){this._filterBy="venue",this._curVenue=e??null,this._curOrdinal=t??null,this._filterRouteOpacity()}setFilterByBuilding(e,t){this._filterBy="building",this._curBuilding=e??null,this._curOrdinal=t??null,this._filterRouteOpacity()}_classifyFeatures(e,t,i){const n=[],r=[],o=[],s=[],a=[];zt(e,((i,o)=>{const{venue_id:s,building_id:l,floor_id:c,ordinal:u,sign:d,type:h,interval:[p,_]}=i;if(function(e){return 5===e}(d))a.push(i);else if(function(e){return 100===e||-100===e}(d)){0!==o&&o!==e.length-1&&r.push(this._createIconFeature(`connector-${r.length}`,t[p],{...Fi({venue_id:s,building_id:l,floor_id:c,ordinal:u}),icon:h}));const i=e[o+1];if(i){const{venue_id:e,building_id:n,floor_id:o,ordinal:s}=i;r.push(this._createIconFeature(`connector-${r.length}`,t[_],{...Fi({venue_id:e,building_id:n,floor_id:o,ordinal:s}),icon:h}))}}else n.push(this._createLineFeature(`solid-line-${n.length}`,t.slice(p,_+1),Fi({venue_id:s,building_id:l,floor_id:c,ordinal:u,isShuttleBus:$i(d)?1:0})))}));const l=e[0],{venue_id:c,building_id:u,floor_id:d,ordinal:h}=l,p=e[e.length-1],{venue_id:_,building_id:f,floor_id:g,ordinal:m}=p,y=t[0],v=t[t.length-1],b=i[0],w=i[i.length-1],L=i.slice(1,i.length-1);return b&&o.push(this._createLineFeature(`dashed-line-${o.length}`,[b,y],Fi({venue_id:c,building_id:u,floor_id:d,ordinal:h}))),w&&o.push(this._createLineFeature(`dashed-line-${o.length}`,[v,w],Fi({venue_id:_,building_id:f,floor_id:g,ordinal:m}))),a.length&&L.length&&a.forEach((({venue_id:e,building_id:i,floor_id:n,ordinal:r,interval:[a]},l)=>{o.push(this._createLineFeature(`dashed-line-${o.length}`,[t[a],L[l]],Fi({venue_id:e,building_id:i,floor_id:n,ordinal:r}))),s.push(this._createIconFeature(`marker-${s.length}`,L[l],{...Fi({venue_id:e,building_id:i,floor_id:n,ordinal:r,markerType:`stops_${l}`}),icon:this._routeStyle.markers.stops[l]??bi(this._routeStyle.markers.stops),iconSize:this._routeStyle.markerIconSize}))})),s.push(this._createIconFeature(`marker-${s.length}`,b??y,{...Fi({venue_id:c,building_id:u,floor_id:d,ordinal:h,markerType:"from"}),icon:this._routeStyle.markers.from,iconSize:this._routeStyle.markerIconSize})),s.push(this._createIconFeature(`marker-${s.length}`,w??v,{...Fi({venue_id:_,building_id:f,floor_id:g,ordinal:m,markerType:"to"}),icon:this._routeStyle.markers.to,iconSize:this._routeStyle.markerIconSize})),{lineFeatures:n,connectorFeatures:r,dashedLineFeatures:o,markerFeatures:s}}_createLineFeature(e,t,i){return{id:e,type:"Feature",geometry:{type:"LineString",coordinates:t},properties:i}}_createIconFeature(e,t,i){return{id:e,type:"Feature",geometry:{type:"Point",coordinates:t},properties:i}}_renderSolidLines(e){this._addCollectionSource(Li,e),this._addLineLayer(Li,Ii,{"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(e){this._addCollectionSource(Ai,e),this._addLineLayer(Ai,Bi,{"line-color":this._routeStyle.dashedLineColor,"line-width":this._routeStyle.dashedLineWidth,"line-dasharray":[.1,1.8]})}_renderConnectors(e){this._addCollectionSource(ki,e),this._addIconLayer(ki,Mi)}_renderMarkers(e){this._addCollectionSource(xi,e),this._addIconLayer(xi,Ci,{"icon-anchor":"bottom","icon-allow-overlap":!0,"icon-ignore-placement":!0})}_addCollectionSource(e,t){this._maplibreMap.addSource(e,{type:"geojson",data:{type:"FeatureCollection",features:t}})}_addLineLayer(e,t,i){this._maplibreMap.addLayer({id:t,type:"line",source:e,layout:{"line-join":"round","line-cap":"round"},paint:{"line-width":4,...i||{}}})}_renderLineSymbols(e,t){this._maplibreMap.addLayer({id:t,type:"symbol",source:e,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]}})}_addIconLayer(e,t,i){this._maplibreMap.addLayer({id:t,type:"symbol",source:e,layout:{"icon-image":["get","icon"],"icon-size":["case",["has","iconSize"],["get","iconSize"],1],...i||{}}})}_updateStyleProperties(e){if(this._styleDiffs=ji(this._routeStyle,e??wi),e){if(Object.keys(this._styleDiffs).length){const e={...this._routeStyle.lineSymbol,...this._styleDiffs.lineSymbol??{}},t=this._styleDiffs.markers;let i=this._routeStyle.markers;const n={outdoorLineOpacity:(this._styleDiffs.outdoorLineOpacity>1?1:this._styleDiffs.outdoorLineOpacity<0?0:this._styleDiffs.outdoorLineOpacity)??this._routeStyle.outdoorLineOpacity},r={inactiveRouteOpacity:(this._styleDiffs.inactiveRouteOpacity>1?1:this._styleDiffs.inactiveRouteOpacity<0?0:this._styleDiffs.inactiveRouteOpacity)??this._routeStyle.inactiveRouteOpacity};t&&Object.keys(t).length&&(i={...i,...t}),this._routeStyle={...this._routeStyle,...this._styleDiffs,...n,...r,markers:i,lineSymbol:e}}}else this._routeStyle=wi}async _loadMarkerIcons(){const{markers:e,lineSymbol:t}=this._styleDiffs;if(t?.image&&await yi(this._maplibreMap,t.image),e&&Object.keys(e).length){const{from:t,to:i,stops:n}=e;if(t&&await yi(this._maplibreMap,t),i&&await yi(this._maplibreMap,i),n&&n.length){const e=n.filter((e=>!!e));e.length&&await Promise.all(e.map((e=>yi(this._maplibreMap,e))))}}}async _updateLayers(){if(!this._maplibreMap.getLayer(Ii))return;const{indoorLineColor:e,outdoorLineColor:t,dashedLineColor:i,shuttleBusLineColor:n,lineWidth:r,dashedLineWidth:o,disableDashedLine:s,inactiveRouteOpacity:a,outdoorLineOpacity:l,markerIconSize:c,markers:u,lineSymbol:d}=this._styleDiffs;if((e||t||n)&&this._maplibreMap.setPaintProperty(Ii,"line-color",["case",["==",["get","isShuttleBus"],"1"],this._routeStyle.shuttleBusLineColor,["==",["get","floor_id"],null],this._routeStyle.outdoorLineColor,this._routeStyle.indoorLineColor]),void 0!==r&&r+""&&this._maplibreMap.setPaintProperty(Ii,"line-width",r),"boolean"==typeof s?s?this._maplibreMap.setPaintProperty(Bi,"line-color","transparent"):(this._maplibreMap.setPaintProperty(Bi,"line-color",this._routeStyle.dashedLineColor),this._maplibreMap.setPaintProperty(Bi,"line-width",this._routeStyle.dashedLineWidth)):!0!==this._routeStyle.disableDashedLine&&(i&&this._maplibreMap.setPaintProperty(Bi,"line-color",i),void 0!==o&&o+""&&this._maplibreMap.setPaintProperty(Bi,"line-width",o)),void 0!==a&&a+""&&this._filterRouteOpacity(),void 0!==c&&c+""&&this._maplibreMap.setLayoutProperty(Ci,"icon-size",c),u&&Object.keys(u).length){const{from:e,to:t,stops:i}=u,n=this._maplibreMap.getSource(xi),r=await n.getData();r.features=r.features.map((n=>{const{markerType:r}=n.properties;if(void 0!==e&&"from"===r&&(n.properties.icon=e),void 0!==t&&"to"===r&&(n.properties.icon=t),i&&r.includes("stops")){const e=parseInt(r.split("_")[1]);n.properties.icon=i[e]??bi(i)}return n})),n.setData(r)}if(d){const{image:e,size:t,spacing:i}=d;void 0!==e&&this._maplibreMap.setLayoutProperty(Si,"icon-image",e),void 0!==t&&t+""&&this._maplibreMap.setLayoutProperty(Si,"icon-size",t),void 0!==i&&i+""&&this._maplibreMap.setLayoutProperty(Si,"symbol-spacing",i)}void 0!==l&&l+""&&(this._maplibreMap.setPaintProperty(Ii,"line-opacity",["case",["==",["get","floor_id"],null],l,1]),this._maplibreMap.setPaintProperty(Si,"icon-opacity",["case",["==",["get","floor_id"],null],l,1]),this._filterRouteOpacity())}_filterRouteOpacity(){let e;switch(this._filterBy){case"venue":e=["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":e=["case",["all",["==",["get","ordinal"],this._curOrdinal??""],["==",["get","building_id"],this._curBuilding??""]],1,["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,this._routeStyle.inactiveRouteOpacity]}Ei.forEach((t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.setPaintProperty(t,t.includes("layer-line")?"line-opacity":"icon-opacity",e)}))}}function Fi(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Rt(t)?t+"":t])))}function $i(e){return Ut(e,104,108)}function ji(e,t){const i={};for(const n in t){const r=e[n],o=t[n];if("markers"===n||"lineSymbol"===n)if((0,L.A)(o)){const e=o.slice(1,o.length-1);i[n]={from:o[0],to:bi(o),stops:e.length?e:[o[0]]}}else{const e=ji(r,o);Object.keys(e).length&&(i[n]=e)}else o+""!=r+""&&(i[n]="stops"===n?o??[null]:o)}return i}var Ti=i(531),Vi=i(7726),Ri=exports;for(var Ni in n)Ri[Ni]=n[Ni];n.__esModule&&Object.defineProperty(Ri,"__esModule",{value:!0})})();
1
+ /*! For license information please see index.cjs.LICENSE.txt */
2
+ (()=>{var t={22:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polyval=e.ghash=void 0,e._toGHASHKey=c;const r=n(6527),i=16,o=new Uint8Array(16),s=(0,r.u32)(o),a=t=>(t>>>0&255)<<24|(t>>>8&255)<<16|(t>>>16&255)<<8|t>>>24&255;function c(t){t.reverse();const e=1&t[15];let n=0;for(let e=0;e<t.length;e++){const r=t[e];t[e]=r>>>1|n,n=(1&r)<<7}return t[0]^=225&-e,t}class u{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,r.toBytes)(t),(0,r.abytes)(t,16);const n=(0,r.createView)(t);let o=n.getUint32(0,!1),s=n.getUint32(4,!1),c=n.getUint32(8,!1),u=n.getUint32(12,!1);const l=[];for(let t=0;t<128;t++)l.push({s0:a(o),s1:a(s),s2:a(c),s3:a(u)}),({s0:o,s1:s,s2:c,s3:u}={s3:(f=c)<<31|(p=u)>>>1,s2:(h=s)<<31|f>>>1,s1:(d=o)<<31|h>>>1,s0:d>>>1^225<<24&-(1&p)});var d,h,f,p;const y=(g=e||1024)>65536?8:g>1024?4:2;var g;if(![1,2,4,8].includes(y))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=y;const m=128/y,_=this.windowSize=2**y,b=[];for(let t=0;t<m;t++)for(let e=0;e<_;e++){let n=0,r=0,i=0,o=0;for(let s=0;s<y;s++){if(!(e>>>y-s-1&1))continue;const{s0:a,s1:c,s2:u,s3:d}=l[y*t+s];n^=a,r^=c,i^=u,o^=d}b.push({s0:n,s1:r,s2:i,s3:o})}this.t=b}_updateBlock(t,e,n,r){t^=this.s0,e^=this.s1,n^=this.s2,r^=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,n,r])for(let t=0;t<4;t++){const e=f>>>8*t&255;for(let t=8/i-1;t>=0;t--){const n=e>>>i*t&d,{s0:r,s1:f,s2:p,s3:y}=o[h*s+n];a^=r,c^=f,u^=p,l^=y,h+=1}}this.s0=a,this.s1=c,this.s2=u,this.s3=l}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const e=(0,r.u32)(t),n=Math.floor(t.length/i),a=t.length%i;for(let t=0;t<n;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(n*i)),this._updateBlock(s[0],s[1],s[2],s[3]),(0,r.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,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{s0:e,s1:n,s2:i,s3:o}=this,s=(0,r.u32)(t);return s[0]=e,s[1]=n,s[2]=i,s[3]=o,t}digest(){const t=new Uint8Array(i);return this.digestInto(t),this.destroy(),t}}class l extends u{constructor(t,e){t=(0,r.toBytes)(t),(0,r.abytes)(t);const n=c((0,r.copyBytes)(t));super(n,e),(0,r.clean)(n)}update(t){t=(0,r.toBytes)(t),(0,r.aexists)(this);const e=(0,r.u32)(t),n=t.length%i,c=Math.floor(t.length/i);for(let t=0;t<c;t++)this._updateBlock(a(e[4*t+3]),a(e[4*t+2]),a(e[4*t+1]),a(e[4*t+0]));return n&&(o.set(t.subarray(c*i)),this._updateBlock(a(s[3]),a(s[2]),a(s[1]),a(s[0])),(0,r.clean)(s)),this}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{s0:e,s1:n,s2:i,s3:o}=this,s=(0,r.u32)(t);return s[0]=e,s[1]=n,s[2]=i,s[3]=o,t.reverse()}}function d(t){const e=(e,n)=>t(n,e.length).update((0,r.toBytes)(e)).digest(),n=t(new Uint8Array(16),0);return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=(e,n)=>t(e,n),e}e.ghash=d(((t,e)=>new u(t,e))),e.polyval=d(((t,e)=>new l(t,e)))},42:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},52:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(241),i=n(5572),o=n(2049),s=n(1882),a=r.A?r.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 n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},66:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){let n,r,i=0,o=1e3/e;const s=(e,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),a=e-i;a>=o?s(t,e):(n=t,r||(r=setTimeout((()=>{r=null,s(n)}),o-a)))},()=>n&&s(n)]}},83:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.chacha20=e.xchacha20=void 0;var r=n(8900);e.xchacha20=function(t,e,n){return(0,r.xchacha20poly1305)(t,e,n)};e.chacha20=function(t,e,n){return(0,r.chacha20poly1305)(t,e,n)}},139:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(5267);const i="undefined"!=typeof URLSearchParams?URLSearchParams:r.A},169:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(6984);const i=function(t,e){for(var n=t.length;n--;)if((0,r.A)(t[n][0],e))return n;return-1}},180:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"Promise")},181:(t,e,n)=>{"use strict";n.d(e,{d:()=>r});class r{_historyBuilding;_historyOrdinal;_selectedBuildings;static instance;constructor(){this._historyBuilding=new Map,this._historyOrdinal=new Map,this._selectedBuildings=new Set}static getInstance(){return r.instance||(r.instance=new r),r.instance}getHistoryBuilding(t){return this._historyBuilding.get(t)}setHistoryBuilding(t,e){this._historyBuilding.set(t,e)}getHistoryOrdinal(t){return this._historyOrdinal.get(t)}setHistoryOrdinal(t,e){this._historyOrdinal.set(t,e)}getHistoryBuildings(){return this._selectedBuildings}addHistoryBuilding(t){this._selectedBuildings.delete(t),this._selectedBuildings.add(t),this._selectedBuildings.size>100&&(this._selectedBuildings=new Set(Array.from(this._selectedBuildings).slice(this._selectedBuildings.size-100)))}}},241:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=n(1917).A.Symbol},244:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSharedKey=e.deriveKey=void 0;var r=n(6527),i=n(4139),o=n(7076);e.deriveKey=function(t,e,n){return(0,i.hkdf)(o.sha256,t,e,n,32)};e.getSharedKey=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0,e.deriveKey)(r.concatBytes.apply(void 0,t))}},251:(t,e)=>{e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,d=n?i-1:0,h=n?-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+=r;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,r),o-=u}return(f?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,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=r?0:o-1,p=r?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[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[n+f]=255&s,f+=p,s/=256,u-=8);t[n+f-p]|=128*y}},367:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){return function(n){return t(e(n))}}},402:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var r=n(241),i=n(3988),o=n(6984),s=n(8967),a=n(4877),c=n(9959),u=r.A?r.A.prototype:void 0,l=u?u.valueOf:void 0;const d=function(t,e,n,r,u,d,h){switch(n){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&r;if(f||(f=c.A),t.size!=e.size&&!p)return!1;var y=h.get(t);if(y)return y==e;r|=2,h.set(t,e);var g=(0,s.A)(f(t),f(e),r,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,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(9520),i=n(1788),o=n(2049),s=n(4616),a=n(5353),c=n(8719),u=Object.prototype.hasOwnProperty;const l=function(t,e){var n=(0,o.A)(t),l=!n&&(0,i.A)(t),d=!n&&!l&&(0,s.A)(t),h=!n&&!l&&!d&&(0,c.A)(t),f=n||l||d||h,p=f?(0,r.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,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(241),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r.A?r.A.toStringTag:void 0;const c=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},459:(t,e,n)=>{"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=S,e.edwardsToMontgomeryPriv=function(t){const e=E.hash(t.subarray(0,32));return E.adjustScalarBytes(e).subarray(0,32)};const r=n(7076),i=n(9175),o=n(2422),s=n(6377),a=n(1761),c=n(4967),u=n(2854),l=n(1484),d=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),h=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),f=BigInt(0),p=BigInt(1),y=BigInt(2),g=BigInt(3),m=BigInt(5),_=BigInt(8);function b(t){const e=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),o=d,s=t*t%o*t%o,a=(0,c.pow2)(s,y,o)*s%o,u=(0,c.pow2)(a,p,o)*t%o,l=(0,c.pow2)(u,m,o)*u%o,h=(0,c.pow2)(l,e,o)*l%o,f=(0,c.pow2)(h,n,o)*h%o,g=(0,c.pow2)(f,r,o)*f%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,y,o)*t%o,b2:s}}function v(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function w(t,e){const n=d,r=(0,c.mod)(e*e*e,n),i=b(t*(0,c.mod)(r*r*e,n)).pow_p_5_8;let o=(0,c.mod)(t*r*i,n);const s=(0,c.mod)(e*o*o,n),a=o,u=(0,c.mod)(o*h,n),l=s===t,f=s===(0,c.mod)(-t,n),p=s===(0,c.mod)(-t*h,n);return l&&(o=a),(f||p)&&(o=u),(0,c.isNegativeLE)(o,n)&&(o=(0,c.mod)(-o,n)),{isValid:l||f,value:o}}e.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];const A=(()=>(0,c.Field)(d,void 0,!0))(),E=(()=>({a:A.create(BigInt(-1)),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:A,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:_,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:r.sha512,randomBytes:i.randomBytes,adjustScalarBytes:v,uvRatio:w}))();function B(t,e,n){if(e.length>255)throw new Error("Context is too big");return(0,i.concatBytes)((0,i.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([n?1:0,e.length]),e,t)}function S(t){const{y:n}=e.ed25519.ExtendedPoint.fromHex(t),r=BigInt(1);return A.toBytes(A.create((r+n)*A.inv(r-n)))}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:r.sha512})),e.x25519=(0,u.montgomery)({P:d,type:"x25519",powPminus2:t=>{const e=d,{pow_p_5_8:n,b2:r}=b(t);return(0,c.mod)((0,c.pow2)(n,g,e)*r,e)},adjustScalarBytes:v,randomBytes:i.randomBytes}),e.edwardsToMontgomery=S;const x=(()=>(A.ORDER+g)/_)(),I=(()=>A.pow(y,x))(),L=(()=>A.sqrt(A.neg(A.ONE)))();const O=(()=>(0,c.FpSqrtEven)(A,A.neg(BigInt(486664))))();function k(t){const{xMn:e,xMd:n,yMn:r,yMd:i}=function(t){const e=(A.ORDER-m)/_,n=BigInt(486662);let r=A.sqr(t);r=A.mul(r,y);let i=A.add(r,A.ONE),o=A.neg(n),s=A.sqr(i),a=A.mul(s,i),c=A.mul(r,n);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 h=A.eql(s,c),f=A.cmov(d,l,h),g=A.mul(o,r),b=A.mul(l,t);b=A.mul(b,I);let v=A.mul(b,L),w=A.mul(c,r);s=A.sqr(b),s=A.mul(s,a);let E=A.eql(s,w),B=A.cmov(v,b,E);s=A.sqr(f),s=A.mul(s,a);let S=A.eql(s,c),x=A.cmov(g,o,S),O=A.cmov(B,f,S),k=A.isOdd(O);return O=A.cmov(O,A.neg(O),S!==k),{xMn:x,xMd:i,yMn:O,yMd:p}}(t);let o=A.mul(e,i);o=A.mul(o,O);let s=A.mul(n,r),a=A.sub(e,n),u=A.add(e,n),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[h,f]=(0,c.FpInvertBatch)(A,[s,u],!0);return{x:A.mul(o,h),y:A.mul(a,f)}}function C(t){if(!(t instanceof V))throw new Error("RistrettoPoint expected")}e.ed25519_hasher=(0,a.createHasher)(e.ed25519.ExtendedPoint,(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:r.sha512}),e.hashToCurve=e.ed25519_hasher.hashToCurve,e.encodeToCurve=e.ed25519_hasher.encodeToCurve;const T=h,R=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),P=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),M=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),F=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),H=t=>w(p,t),j=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),N=t=>e.ed25519.CURVE.Fp.create((0,l.bytesToNumberLE)(t)&j);function U(t){const{d:n}=e.ed25519.CURVE,r=e.ed25519.CURVE.Fp.ORDER,i=e.ed25519.CURVE.Fp.create,o=i(T*t*t),s=i((o+p)*M);let a=BigInt(-1);const u=i((a-n*o)*i(o+n));let{isValid:l,value:d}=w(s,u),h=i(d*t);(0,c.isNegativeLE)(h,r)||(h=i(-h)),l||(d=h),l||(a=o);const f=i(a*(o-p)*F-u),y=d*d,g=i((d+d)*u),m=i(f*R),_=i(p-y),b=i(p+y);return new e.ed25519.ExtendedPoint(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.ExtendedPoint.fromAffine(t))}static hashToCurve(t){t=(0,l.ensureBytes)("ristrettoHash",t,64);const e=U(N(t.slice(0,32))),n=U(N(t.slice(32,64)));return new V(e.add(n))}static fromHex(t){t=(0,l.ensureBytes)("ristrettoHex",t,32);const{a:n,d:r}=e.ed25519.CURVE,i=e.ed25519.CURVE.Fp.ORDER,o=e.ed25519.CURVE.Fp.create,s="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",a=N(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),d=o(p+n*u),h=o(p-n*u),y=o(d*d),g=o(h*h),m=o(n*r*y-g),{isValid:_,value:b}=H(o(m*g)),v=o(b*h),w=o(b*v*m);let A=o((a+a)*v);(0,c.isNegativeLE)(A,i)&&(A=o(-A));const E=o(d*w),B=o(A*E);if(!_||(0,c.isNegativeLE)(B,i)||E===f)throw new Error(s);return new V(new e.ed25519.ExtendedPoint(A,E,p,B))}static msm(t,n){const r=(0,c.Field)(e.ed25519.CURVE.n,e.ed25519.CURVE.nBitLength);return(0,o.pippenger)(V,r,t,n)}toRawBytes(){let{ex:t,ey:n,ez:r,et:i}=this.ep;const o=e.ed25519.CURVE.Fp.ORDER,s=e.ed25519.CURVE.Fp.create,a=s(s(r+n)*s(r-n)),u=s(t*n),d=s(u*u),{value:h}=H(s(a*d)),f=s(h*a),p=s(h*u),y=s(f*p*i);let g;if((0,c.isNegativeLE)(i*y,o)){let e=s(n*T),r=s(t*T);t=e,n=r,g=s(f*P)}else g=p;(0,c.isNegativeLE)(t*y,o)&&(n=s(-n));let m=s((r-n)*g);return(0,c.isNegativeLE)(m,o)&&(m=s(-m)),(0,l.numberToBytesLE)(m,32)}toHex(){return(0,l.bytesToHex)(this.toRawBytes())}toString(){return this.toHex()}equals(t){C(t);const{ex:n,ey:r}=this.ep,{ex:i,ey:o}=t.ep,s=e.ed25519.CURVE.Fp.create,a=s(n*o)===s(r*i),c=s(r*o)===s(n*i);return a||c}add(t){return C(t),new V(this.ep.add(t.ep))}subtract(t){return C(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.ExtendedPoint.BASE)),V.ZERO||(V.ZERO=new V(e.ed25519.ExtendedPoint.ZERO)),V);e.hashToRistretto255=(t,e)=>{const n=e.DST,o="string"==typeof n?(0,i.utf8ToBytes)(n):n,s=(0,a.expand_message_xmd)(t,o,64,r.sha512);return V.hashToCurve(s)},e.hash_to_ristretto255=e.hashToRistretto255},469:(t,e,n)=>{"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 r=n(22),i=n(6527),o=16,s=new Uint8Array(o);function a(t){return t<<1^283&-(t>>7)}function c(t,e){let n=0;for(;e>0;e>>=1)n^=t&-(1&e),t=a(t);return n}const u=(()=>{const t=new Uint8Array(256);for(let e=0,n=1;e<256;e++,n^=a(n))t[e]=n;const e=new Uint8Array(256);e[0]=99;for(let n=0;n<255;n++){let r=t[255-n];r|=r<<8,e[t[n]]=255&(r^r>>4^r>>5^r>>6^r>>7^99)}return(0,i.clean)(t),e})(),l=u.map(((t,e)=>u.indexOf(e))),d=t=>t<<8|t>>>24,h=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255;function f(t,e){if(256!==t.length)throw new Error("Wrong sbox length");const n=new Uint32Array(256).map(((n,r)=>e(t[r]))),r=n.map(d),i=r.map(d),o=i.map(d),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]=n[e]^r[u],a[l]=i[e]^o[u],c[l]=t[e]<<8|t[u]}return{sbox:t,sbox2:c,T0:n,T1:r,T2:i,T3:o,T01:s,T23:a}}const p=f(u,(t=>c(t,3)<<24|t<<16|t<<8|c(t,2))),y=f(l,(t=>c(t,11)<<24|c(t,13)<<16|c(t,9)<<8|c(t,14))),g=(()=>{const t=new Uint8Array(16);for(let e=0,n=1;e<16;e++,n=a(n))t[e]=n;return t})();function m(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:n}=p,r=[];(0,i.isAligned32)(t)||r.push(t=(0,i.copyBytes)(t));const o=(0,i.u32)(t),s=o.length,a=t=>v(n,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((u=e)<<24|u>>>8)^g[t/s-1]:s>6&&t%s===4&&(e=a(e)),c[t]=c[t-s]^e}var u;return(0,i.clean)(...r),c}function _(t){const e=m(t),n=e.slice(),r=e.length,{sbox2:o}=p,{T0:s,T1:a,T2:c,T3:u}=y;for(let t=0;t<r;t+=4)for(let i=0;i<4;i++)n[t+i]=e[r-t-4+i];(0,i.clean)(e);for(let t=4;t<r-4;t++){const e=n[t],r=v(o,e,e,e,e);n[t]=s[255&r]^a[r>>>8&255]^c[r>>>16&255]^u[r>>>24]}return n}function b(t,e,n,r,i,o){return t[n<<8&65280|r>>>8&255]^e[i>>>8&65280|o>>>24&255]}function v(t,e,n,r,i){return t[255&e|65280&n]|t[r>>>16&255|i>>>16&65280]<<16}function w(t,e,n,r,i){const{sbox2:o,T01:s,T23:a}=p;let c=0;e^=t[c++],n^=t[c++],r^=t[c++],i^=t[c++];const u=t.length/4-2;for(let o=0;o<u;o++){const o=t[c++]^b(s,a,e,n,r,i),u=t[c++]^b(s,a,n,r,i,e),l=t[c++]^b(s,a,r,i,e,n),d=t[c++]^b(s,a,i,e,n,r);e=o,n=u,r=l,i=d}return{s0:t[c++]^v(o,e,n,r,i),s1:t[c++]^v(o,n,r,i,e),s2:t[c++]^v(o,r,i,e,n),s3:t[c++]^v(o,i,e,n,r)}}function A(t,e,n,r,i){const{sbox2:o,T01:s,T23:a}=y;let c=0;e^=t[c++],n^=t[c++],r^=t[c++],i^=t[c++];const u=t.length/4-2;for(let o=0;o<u;o++){const o=t[c++]^b(s,a,e,i,r,n),u=t[c++]^b(s,a,n,e,i,r),l=t[c++]^b(s,a,r,n,e,i),d=t[c++]^b(s,a,i,r,n,e);e=o,n=u,r=l,i=d}return{s0:t[c++]^v(o,e,i,r,n),s1:t[c++]^v(o,n,e,i,r),s2:t[c++]^v(o,r,n,e,i),s3:t[c++]^v(o,i,r,n,e)}}function E(t,e,n,r){(0,i.abytes)(e,o),(0,i.abytes)(n);const s=n.length;r=(0,i.getOutput)(s,r),(0,i.complexOverlapBytes)(n,r);const a=e,c=(0,i.u32)(a);let{s0:u,s1:l,s2:d,s3:h}=w(t,c[0],c[1],c[2],c[3]);const f=(0,i.u32)(n),p=(0,i.u32)(r);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 n=1;for(let t=a.length-1;t>=0;t--)n=n+(255&a[t])|0,a[t]=255&n,n>>>=8;({s0:u,s1:l,s2:d,s3:h}=w(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++)r[t]=n[t]^e[i];(0,i.clean)(t)}return r}function B(t,e,n,r,s){(0,i.abytes)(n,o),(0,i.abytes)(r),s=(0,i.getOutput)(r.length,s);const a=n,c=(0,i.u32)(a),u=(0,i.createView)(a),l=(0,i.u32)(r),d=(0,i.u32)(s),h=e?0:12,f=r.length;let p=u.getUint32(h,e),{s0:y,s1:g,s2:m,s3:_}=w(t,c[0],c[1],c[2],c[3]);for(let n=0;n+4<=l.length;n+=4)d[n+0]=l[n+0]^y,d[n+1]=l[n+1]^g,d[n+2]=l[n+2]^m,d[n+3]=l[n+3]^_,p=p+1>>>0,u.setUint32(h,p,e),({s0:y,s1:g,s2:m,s3:_}=w(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,n=0;t<f;t++,n++)s[t]=r[t]^e[n];(0,i.clean)(t)}return s}function S(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,n){(0,i.abytes)(t);let r=t.length;const s=r%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),r+=t}n=(0,i.getOutput)(r,n),(0,i.complexOverlapBytes)(t,n);return{b:a,o:(0,i.u32)(n),out:n}}function I(t,e){if(!e)return t;const n=t.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");const r=t[n-1];if(r<=0||r>16)throw new Error("aes/pcks5: wrong padding");const i=t.subarray(0,-r);for(let e=0;e<r;e++)if(t[n-e-1]!==r)throw new Error("aes/pcks5: wrong padding");return i}function L(t){const e=new Uint8Array(16),n=(0,i.u32)(e);e.set(t);const r=o-t.length;for(let t=o-r;t<o;t++)e[t]=r;return n}function O(t,e,n,r,o){const s=o?o.length:0,a=t.create(n,r.length+s);o&&a.update(o);const c=(0,i.u64Lengths)(8*r.length,8*s,e);a.update(r),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 n(n,r){if((0,i.abytes)(n),void 0!==r&&((0,i.abytes)(r),!(0,i.isAligned32)(r)))throw new Error("unaligned destination");const o=m(t),s=(0,i.copyBytes)(e),a=[o,s];(0,i.isAligned32)(n)||a.push(n=(0,i.copyBytes)(n));const c=E(o,s,n,r);return(0,i.clean)(...a),c}return{encrypt:(t,e)=>n(t,e),decrypt:(t,e)=>n(t,e)}})),e.ecb=(0,i.wrapCipher)({blockSize:16},(function(t,e={}){const n=!e.disablePadding;return{encrypt(e,r){const{b:o,o:s,out:a}=x(e,n,r),c=m(t);let u=0;for(;u+4<=o.length;){const{s0:t,s1:e,s2:n,s3:r}=w(c,o[u+0],o[u+1],o[u+2],o[u+3]);s[u++]=t,s[u++]=e,s[u++]=n,s[u++]=r}if(n){const t=L(e.subarray(4*u)),{s0:n,s1:r,s2:i,s3:o}=w(c,t[0],t[1],t[2],t[3]);s[u++]=n,s[u++]=r,s[u++]=i,s[u++]=o}return(0,i.clean)(c),a},decrypt(e,r){S(e);const o=_(t);r=(0,i.getOutput)(e.length,r);const s=[o];(0,i.isAligned32)(e)||s.push(e=(0,i.copyBytes)(e)),(0,i.complexOverlapBytes)(e,r);const a=(0,i.u32)(e),c=(0,i.u32)(r);for(let t=0;t+4<=a.length;){const{s0:e,s1:n,s2:r,s3:i}=A(o,a[t+0],a[t+1],a[t+2],a[t+3]);c[t++]=e,c[t++]=n,c[t++]=r,c[t++]=i}return(0,i.clean)(...s),I(r,n)}}})),e.cbc=(0,i.wrapCipher)({blockSize:16,nonceLength:16},(function(t,e,n={}){const r=!n.disablePadding;return{encrypt(n,o){const s=m(t),{b:a,o:c,out:u}=x(n,r,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],_=0;for(;_+4<=a.length;)f^=a[_+0],p^=a[_+1],y^=a[_+2],g^=a[_+3],({s0:f,s1:p,s2:y,s3:g}=w(s,f,p,y,g)),c[_++]=f,c[_++]=p,c[_++]=y,c[_++]=g;if(r){const t=L(n.subarray(4*_));f^=t[0],p^=t[1],y^=t[2],g^=t[3],({s0:f,s1:p,s2:y,s3:g}=w(s,f,p,y,g)),c[_++]=f,c[_++]=p,c[_++]=y,c[_++]=g}return(0,i.clean)(...d),u},decrypt(n,o){S(n);const s=_(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)(n.length,o),(0,i.isAligned32)(n)||c.push(n=(0,i.copyBytes)(n)),(0,i.complexOverlapBytes)(n,o);const l=(0,i.u32)(n),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,n=f,r=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}=A(s,h,f,p,y);d[t++]=o^e,d[t++]=a^n,d[t++]=c^r,d[t++]=u^i}return(0,i.clean)(...c),I(o,r)}}})),e.cfb=(0,i.wrapCipher)({blockSize:16,nonceLength:16},(function(t,e){function n(n,r,s){(0,i.abytes)(n);const a=n.length;if(s=(0,i.getOutput)(a,s),(0,i.overlapBytes)(n,s))throw new Error("overlapping src and dst not supported.");const c=m(t);let u=e;const l=[c];(0,i.isAligned32)(u)||l.push(u=(0,i.copyBytes)(u)),(0,i.isAligned32)(n)||l.push(n=(0,i.copyBytes)(n));const d=(0,i.u32)(n),h=(0,i.u32)(s),f=r?h:d,p=(0,i.u32)(u);let y=p[0],g=p[1],_=p[2],b=p[3];for(let t=0;t+4<=d.length;){const{s0:e,s1:n,s2:r,s3:i}=w(c,y,g,_,b);h[t+0]=d[t+0]^e,h[t+1]=d[t+1]^n,h[t+2]=d[t+2]^r,h[t+3]=d[t+3]^i,y=f[t++],g=f[t++],_=f[t++],b=f[t++]}const v=o*Math.floor(d.length/4);if(v<a){({s0:y,s1:g,s2:_,s3:b}=w(c,y,g,_,b));const t=(0,i.u8)(new Uint32Array([y,g,_,b]));for(let e=v,r=0;e<a;e++,r++)s[e]=n[e]^t[r];(0,i.clean)(t)}return(0,i.clean)(...l),s}return{encrypt:(t,e)=>n(t,!0,e),decrypt:(t,e)=>n(t,!1,e)}})),e.gcm=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},(function(t,e,n){if(e.length<8)throw new Error("aes/gcm: invalid nonce length");function o(t,e,i){const o=O(r.ghash,!1,t,i,n);for(let t=0;t<e.length;t++)o[t]^=e[t];return o}function a(){const n=m(t),o=s.slice(),a=s.slice();if(B(n,!1,a,a,o),12===e.length)a.set(e);else{const t=s.slice(),n=(0,i.createView)(t);(0,i.setBigUint64)(n,8,BigInt(8*e.length),!1);const c=r.ghash.create(o).update(e).update(t);c.digestInto(a),c.destroy()}return{xk:n,authKey:o,counter:a,tagMask:B(n,!1,a,s)}}return{encrypt(t){const{xk:e,authKey:n,counter:r,tagMask:s}=a(),c=new Uint8Array(t.length+16),u=[e,n,r,s];(0,i.isAligned32)(t)||u.push(t=(0,i.copyBytes)(t)),B(e,!1,r,t,c.subarray(0,t.length));const l=o(n,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:n,counter:r,tagMask:s}=a(),c=[e,n,s,r];(0,i.isAligned32)(t)||c.push(t=(0,i.copyBytes)(t));const u=t.subarray(0,-16),l=t.subarray(-16),d=o(n,s,u);if(c.push(d),!(0,i.equalBytes)(d,l))throw new Error("aes/gcm: invalid ghash tag");const h=B(e,!1,r,u);return(0,i.clean)(...c),h}}}));const k=(t,e,n)=>r=>{if(!Number.isSafeInteger(r)||e>r||r>n){throw new Error(t+": expected value in range "+("["+e+".."+n+"]")+", got "+r)}};function C(t){return t instanceof Uint32Array||ArrayBuffer.isView(t)&&"Uint32Array"===t.constructor.name}function T(t,e){if((0,i.abytes)(e,16),!C(t))throw new Error("_encryptBlock accepts result of expandKeyLE");const n=(0,i.u32)(e);let{s0:r,s1:o,s2:s,s3:a}=w(t,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=s,n[3]=a,e}function R(t,e){if((0,i.abytes)(e,16),!C(t))throw new Error("_decryptBlock accepts result of expandKeyLE");const n=(0,i.u32)(e);let{s0:r,s1:o,s2:s,s3:a}=A(t,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=s,n[3]=a,e}e.gcmsiv=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},(function(t,e,n){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 n=m(t),r=new Uint8Array(t.length),o=new Uint8Array(16),s=[n,r];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,r].map(i.u32)){const e=(0,i.u32)(t);for(let t=0;t<e.length;t+=2){const{s0:r,s1:i}=w(n,u,l,d,h);e[t+0]=r,e[t+1]=i,u=++f}}const p={authKey:o,encKey:m(r)};return(0,i.clean)(...s),p}function l(t,o,s){const a=O(r.polyval,!0,o,s,n);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}=w(t,u,l,d,h)),c[0]=u,c[1]=l,c[2]=d,c[3]=h,a}function d(t,e,n){let r=(0,i.copyBytes)(e);r[15]|=128;const o=B(t,!0,r,n);return(0,i.clean)(r),o}return(0,i.abytes)(t,16,24,32),a(e.length),void 0!==n&&o(n.length),{encrypt(t){s(t.length);const{encKey:e,authKey:n}=u(),r=l(e,n,t),o=[e,n,r];(0,i.isAligned32)(t)||o.push(t=(0,i.copyBytes)(t));const a=new Uint8Array(t.length+16);return a.set(r,t.length),a.set(d(e,r,t)),(0,i.clean)(...o),a},decrypt(t){c(t.length);const e=t.subarray(-16),{encKey:n,authKey:r}=u(),o=[n,r];(0,i.isAligned32)(t)||o.push(t=(0,i.copyBytes)(t));const s=d(n,e,t.subarray(0,-16)),a=l(n,r,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 n=m(t);if(16===e.length)T(n,e);else{const t=(0,i.u32)(e);let r=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}=w(n,r,o,t[e],t[e+1]);r=s,o=a^h(i),t[e]=c,t[e+1]=u}t[0]=r,t[1]=o}n.fill(0)},decrypt(t,e){if(e.length-8>=2**32)throw new Error("ciphertext should be less than 4gb");const n=_(t),r=e.length/8-1;if(1===r)R(n,e);else{const t=(0,i.u32)(e);let o=t[0],s=t[1];for(let e=0,i=6*r;e<6;e++)for(let e=2*r;e>=1;e-=2,i--){s^=h(i);const{s0:r,s1:a,s2:c,s3:u}=A(n,o,s,t[e],t[e+1]);o=r,s=a,t[e]=c,t[e+1]=u}t[0]=o,t[1]=s}n.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 n=(0,i.concatBytes)(M,e);return P.encrypt(t,n),n},decrypt(e){if(e.length%8!=0||e.length<24)throw new Error("invalid ciphertext length");const n=(0,i.copyBytes)(e);if(P.decrypt(t,n),!(0,i.equalBytes)(n.subarray(0,8),M))throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8)}})));const F=2790873510;e.aeskwp=(0,i.wrapCipher)({blockSize:8},(t=>({encrypt(e){if(!e.length)throw new Error("invalid plaintext length");const n=8*Math.ceil(e.length/8),r=new Uint8Array(8+n);r.set(e,8);const o=(0,i.u32)(r);return o[0]=F,o[1]=h(e.length),P.encrypt(t,r),r},decrypt(e){if(e.length<16)throw new Error("invalid ciphertext length");const n=(0,i.copyBytes)(e),r=(0,i.u32)(n);P.decrypt(t,n);const o=h(r[1])>>>0,s=8*Math.ceil(o/8);if(r[0]!==F||n.length-8!==s)throw new Error("integrity check failed");for(let t=o;t<s;t++)if(0!==n[8+t])throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8,8+o)}}))),e.unsafe={expandKeyLE:m,expandKeyDecLE:_,encrypt:w,decrypt:A,encryptBlock:T,decryptBlock:R,ctrCounter:E,ctr32:B}},514:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(5572);const i=function(t,e){return(0,r.A)(e,(function(e){return t[e]}))}},520:(t,e,n)=>{"use strict";n.d(e,{z:()=>i});var r=n(1682);class i{_container;_anchor;_theme;constructor(t){this._theme=t.theme?t.theme:"default"}onAdd(t){return this._container=(0,r.r)("div","maplibregl-ctrl mapxus-ctrl-attribution",t.getContainer()),this._anchor=(0,r.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,r.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,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(5547);const i=function(t,e){var n=(0,r.A)(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},605:(t,e,n)=>{"use strict";function r(t){return function(e){return t.apply(null,e)}}n.d(e,{A:()=>r})},608:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(6632);const i=function(t){var e=(0,r.A)(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},640:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r,i=n(3161),o=(r=/[^.]+$/.exec(i.A&&i.A.keys&&i.A.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";const s=function(t){return!!o&&o in t}},665:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(7275),i=n(4062),o=n(3119);function s(t){return r.A.isPlainObject(t)||r.A.isArray(t)}function a(t){return r.A.endsWith(t,"[]")?t.slice(0,-2):t}function c(t,e,n){return t?t.concat(e).map((function(t,e){return t=a(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const u=r.A.toFlatObject(r.A,{},null,(function(t){return/^is[A-Z]/.test(t)}));const l=function(t,e,n){if(!r.A.isObject(t))throw new TypeError("target must be an object");e=e||new(o.A||FormData);const l=(n=r.A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!r.A.isUndefined(e[t])}))).metaTokens,d=n.visitor||g,h=n.dots,f=n.indexes,p=(n.Blob||"undefined"!=typeof Blob&&Blob)&&r.A.isSpecCompliantForm(e);if(!r.A.isFunction(d))throw new TypeError("visitor must be a function");function y(t){if(null===t)return"";if(r.A.isDate(t))return t.toISOString();if(!p&&r.A.isBlob(t))throw new i.A("Blob is not supported. Use a Buffer instead.");return r.A.isArrayBuffer(t)||r.A.isTypedArray(t)?p&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function g(t,n,i){let o=t;if(t&&!i&&"object"==typeof t)if(r.A.endsWith(n,"{}"))n=l?n:n.slice(0,-2),t=JSON.stringify(t);else if(r.A.isArray(t)&&function(t){return r.A.isArray(t)&&!t.some(s)}(t)||(r.A.isFileList(t)||r.A.endsWith(n,"[]"))&&(o=r.A.toArray(t)))return n=a(n),o.forEach((function(t,i){!r.A.isUndefined(t)&&null!==t&&e.append(!0===f?c([n],i,h):null===f?n:n+"[]",y(t))})),!1;return!!s(t)||(e.append(c(i,n,h),y(t)),!1)}const m=[],_=Object.assign(u,{defaultVisitor:g,convertValue:y,isVisitable:s});if(!r.A.isObject(t))throw new TypeError("data must be an object");return function t(n,i){if(!r.A.isUndefined(n)){if(-1!==m.indexOf(n))throw Error("Circular reference detected in "+i.join("."));m.push(n),r.A.forEach(n,(function(n,o){!0===(!(r.A.isUndefined(n)||null===n)&&d.call(e,n,r.A.isString(o)?o.trim():o,i,_))&&t(n,i?i.concat(o):[o])})),m.pop()}}(t),e}},674:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=(0,n(702).A)(Object,"create")},702:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(1979),i=n(8104);const o=function(t,e){var n=(0,i.A)(t,e);return(0,r.A)(n)?n:void 0}},714:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(2528),i=n(9841),o=n(2141);const s=function(t,e){var n={};return e=(0,o.A)(e,3),(0,i.A)(t,(function(t,i,o){(0,r.A)(n,e(t,i,o),t)})),n}},746:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(3736),i=n(2141),o=n(3828),s=n(2049),a=n(6832);const c=function(t,e,n){var c=(0,s.A)(t)?r.A:o.A;return n&&(0,a.A)(t,e,n)&&(e=void 0),c(t,(0,i.A)(e,3))}},759:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(3265),i=n(1038);const o=function(t,e,n,o){var s=n.length,a=s,c=!o;if(null==t)return!a;for(t=Object(t);s--;){var u=n[s];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<a;){var l=(u=n[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 r.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,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return function(e){return null==e?void 0:e[t]}}},807:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},817:(t,e,n)=>{"use strict";n.d(e,{A:()=>A});var r=n(3820),i=n(7275),o=n(4062),s=n(2723),a=n(1791),c=n(7110),u=n(7837),l=n(8382),d=n(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(r.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,n)=>{throw new o.A(`Response type '${t}' is not supported`,o.A.ERR_NOT_SUPPORT,n)})})));const w=async(t,e)=>{const n=i.A.toFiniteNumber(t.getContentLength());return null==n?(async t=>{if(null==t)return 0;if(i.A.isBlob(t))return t.size;if(i.A.isSpecCompliantForm(t)){const e=new Request(r.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):n},A=h&&(async t=>{let{url:e,method:n,data:r,signal:h,cancelToken:f,timeout:p,onDownloadProgress:y,onUploadProgress:g,responseType:v,headers:A,withCredentials:E="same-origin",fetchOptions:B}=(0,l.A)(t);v=v?(v+"").toLowerCase():"text";let S,x=(0,s.A)([h,f&&f.toAbortSignal()],p);const I=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let L;try{if(g&&m&&"get"!==n&&"head"!==n&&0!==(L=await w(A,r))){let t,n=new Request(e,{method:"POST",body:r,duplex:"half"});if(i.A.isFormData(r)&&(t=n.headers.get("content-type"))&&A.setContentType(t),n.body){const[t,e]=(0,u.Vj)(L,(0,u.C1)((0,u.mM)(g)));r=(0,a.E9)(n.body,65536,t,e)}}i.A.isString(E)||(E=E?"include":"omit");const o="credentials"in Request.prototype;S=new Request(e,{...B,signal:x,method:n.toUpperCase(),headers:A.normalize().toJSON(),body:r,duplex:"half",credentials:o?E:void 0});let s=await fetch(S);const l=_&&("stream"===v||"response"===v);if(_&&(y||l&&I)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=s[e]}));const e=i.A.toFiniteNumber(s.headers.get("content-length")),[n,r]=y&&(0,u.Vj)(e,(0,u.C1)((0,u.mM)(y),!0))||[];s=new Response((0,a.E9)(s.body,65536,n,(()=>{r&&r(),I&&I()})),t)}v=v||"text";let h=await b[i.A.findKey(b,v)||"text"](s,t);return!l&&I&&I(),await new Promise(((e,n)=>{(0,d.A)(e,n,{data:h,headers:c.A.from(s.headers),status:s.status,statusText:s.statusText,config:t,request:S})}))}catch(e){if(I&&I(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new o.A("Network Error",o.A.ERR_NETWORK,t,S),{cause:e.cause||e});throw o.A.from(e,e&&e.code,t,S)}})},853:(t,e,n)=>{"use strict";async function r(t,e){if(!t.hasImage(e))try{const n=await t.loadImage(e);t.addImage(e,n.data)}catch(t){throw new Error(t)}}n.d(e,{K:()=>r})},901:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(1882);const i=function(t){if("string"==typeof t||(0,r.A)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},973:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(1894),i=n(1625);const o=(0,r.A)(i.A)},1031:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(169);const i=function(t,e){var n=this.__data__,i=(0,r.A)(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},1038:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(3244),i=n(3098);const o=function t(e,n,o,s,a){return e===n||(null==e||null==n||!(0,i.A)(e)&&!(0,i.A)(n)?e!=e&&n!=n:(0,r.A)(e,n,o,s,t,a))}},1052:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(1917);const i=function(){return r.A.Date.now()}},1076:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(7275),i=n(665),o=n(3820);function s(t,e){return(0,i.A)(t,new o.A.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,i){return o.A.isNode&&r.A.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}},1088:(t,e,n)=>{"use strict";n.d(e,{B6:()=>s.B,CA:()=>i.C,EJ:()=>r.E,Nj:()=>o.N});var r=n(2468),i=n(9644),o=n(9205),s=n(6294)},1089:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r={value:()=>{}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function a(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.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(n=(t=o[c]).type)i[n]=a(i[n],t.name,e);else if(null==e)for(n in i)i[n]=a(i[n],t.name,null);return this}for(;++c<u;)if((n=(t=o[c]).type)&&(n=s(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};const c=i},1121:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=Function.prototype.toString;const i=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1210:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.poly1305=void 0,e.wrapConstructorWithKey=s;const r=n(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,r.toBytes)(t),(0,r.abytes)(t,32);const e=i(t,0),n=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|n<<3),this.r[2]=7939&(n>>>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,n=!1){const r=n?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),B=i(t,e+14);let S=o[0]+(8191&m),x=o[1]+(8191&(m>>>13|_<<3)),I=o[2]+(8191&(_>>>10|b<<6)),L=o[3]+(8191&(b>>>7|v<<9)),O=o[4]+(8191&(v>>>4|w<<12)),k=o[5]+(w>>>1&8191),C=o[6]+(8191&(w>>>14|A<<2)),T=o[7]+(8191&(A>>>11|E<<5)),R=o[8]+(8191&(E>>>8|B<<8)),P=o[9]+(B>>>5|r),M=0,F=M+S*a+x*(5*g)+I*(5*y)+L*(5*p)+O*(5*f);M=F>>>13,F&=8191,F+=k*(5*h)+C*(5*d)+T*(5*l)+R*(5*u)+P*(5*c),M+=F>>>13,F&=8191;let H=M+S*c+x*a+I*(5*g)+L*(5*y)+O*(5*p);M=H>>>13,H&=8191,H+=k*(5*f)+C*(5*h)+T*(5*d)+R*(5*l)+P*(5*u),M+=H>>>13,H&=8191;let j=M+S*u+x*c+I*a+L*(5*g)+O*(5*y);M=j>>>13,j&=8191,j+=k*(5*p)+C*(5*f)+T*(5*h)+R*(5*d)+P*(5*l),M+=j>>>13,j&=8191;let N=M+S*l+x*u+I*c+L*a+O*(5*g);M=N>>>13,N&=8191,N+=k*(5*y)+C*(5*p)+T*(5*f)+R*(5*h)+P*(5*d),M+=N>>>13,N&=8191;let U=M+S*d+x*l+I*u+L*c+O*a;M=U>>>13,U&=8191,U+=k*(5*g)+C*(5*y)+T*(5*p)+R*(5*f)+P*(5*h),M+=U>>>13,U&=8191;let V=M+S*h+x*d+I*l+L*u+O*c;M=V>>>13,V&=8191,V+=k*a+C*(5*g)+T*(5*y)+R*(5*p)+P*(5*f),M+=V>>>13,V&=8191;let D=M+S*f+x*h+I*d+L*l+O*u;M=D>>>13,D&=8191,D+=k*c+C*a+T*(5*g)+R*(5*y)+P*(5*p),M+=D>>>13,D&=8191;let $=M+S*p+x*f+I*h+L*d+O*l;M=$>>>13,$&=8191,$+=k*u+C*c+T*a+R*(5*g)+P*(5*y),M+=$>>>13,$&=8191;let z=M+S*y+x*p+I*f+L*h+O*d;M=z>>>13,z&=8191,z+=k*l+C*u+T*c+R*a+P*(5*g),M+=z>>>13,z&=8191;let G=M+S*g+x*y+I*p+L*f+O*h;M=G>>>13,G&=8191,G+=k*d+C*l+T*u+R*c+P*a,M+=G>>>13,G&=8191,M=(M<<2)+M|0,M=M+F|0,F=8191&M,M>>>=13,H+=M,o[0]=F,o[1]=H,o[2]=j,o[3]=N,o[4]=U,o[5]=V,o[6]=D,o[7]=$,o[8]=z,o[9]=G}finalize(){const{h:t,pad:e}=this,n=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,n[0]=t[0]+5,i=n[0]>>>13,n[0]&=8191;for(let e=1;e<10;e++)n[e]=t[e]+i,i=n[e]>>>13,n[e]&=8191;n[9]-=8192;let o=(1^i)-1;for(let t=0;t<10;t++)n[t]&=o;o=~o;for(let e=0;e<10;e++)t[e]=t[e]&o|n[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 n=1;n<8;n++)s=(t[n]+e[n]|0)+(s>>>16)|0,t[n]=65535&s;(0,r.clean)(n)}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const{buffer:e,blockLen:n}=this,i=t.length;for(let r=0;r<i;){const o=Math.min(n-this.pos,i-r);if(o!==n)e.set(t.subarray(r,r+o),this.pos),this.pos+=o,r+=o,this.pos===n&&(this.process(e,0,!1),this.pos=0);else for(;n<=i-r;r+=n)this.process(t,r)}return this}destroy(){(0,r.clean)(this.h,this.r,this.buffer,this.pad)}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{buffer:e,h:n}=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++]=n[e]>>>0,t[o++]=n[e]>>>8;return t}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}}function s(t){const e=(e,n)=>t(n).update((0,r.toBytes)(e)).digest(),n=t(new Uint8Array(32));return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}e.poly1305=s((t=>new o(t)))},1275:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(5917),i=n(5668),o=n(9875);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r.A;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i.A,s.prototype.has=o.A;const a=s},1470:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(5572),i=n(2141),o=n(9084),s=n(3973);const a=function(t,e){if(null==t)return{};var n=(0,r.A)((0,s.A)(t),(function(t){return[t]}));return e=(0,i.A)(e),(0,o.A)(t,n,(function(t,n){return e(t,n[0])}))}},1472:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(3454),i=n(8776),o=n(1694);const s=function(t,e,n){return e=(0,i.A)(e),void 0===n?(n=e,e=0):n=(0,i.A)(n),t=(0,o.A)(t),(0,r.A)(t,e,n)}},1484:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.notImplemented=e.bitMask=void 0,e.isBytes=i,e.abytes=o,e.abool=function(t,e){if("boolean"!=typeof e)throw new Error(t+" boolean expected, got "+e)},e.numberToHexUnpadded=s,e.hexToNumber=a,e.bytesToHex=l,e.hexToBytes=f,e.bytesToNumberBE=function(t){return a(l(t))},e.bytesToNumberLE=function(t){return o(t),a(l(Uint8Array.from(t).reverse()))},e.numberToBytesBE=p,e.numberToBytesLE=function(t,e){return p(t,e).reverse()},e.numberToVarBytesBE=function(t){return f(s(t))},e.ensureBytes=function(t,e,n){let r;if("string"==typeof e)try{r=f(e)}catch(e){throw new Error(t+" must be hex string or Uint8Array, cause: "+e)}else{if(!i(e))throw new Error(t+" must be hex string or Uint8Array");r=Uint8Array.from(e)}const o=r.length;if("number"==typeof n&&o!==n)throw new Error(t+" of length "+n+" expected, got "+o);return r},e.concatBytes=y,e.equalBytes=function(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return 0===n},e.utf8ToBytes=function(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))},e.inRange=m,e.aInRange=function(t,e,n,r){if(!m(e,n,r))throw new Error("expected valid "+t+": "+n+" <= n < "+r+", got "+e)},e.bitLen=function(t){let e;for(e=0;t>n;t>>=r,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&r},e.bitSet=function(t,e,i){return t|(i?r:n)<<BigInt(e)},e.createHmacDrbg=function(t,e,n){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 n)throw new Error("hmacFn must be a function");let r=_(t),i=_(t),o=0;const s=()=>{r.fill(1),i.fill(0),o=0},a=(...t)=>n(i,r,...t),c=(t=_(0))=>{i=a(b([0]),t),r=a(),0!==t.length&&(i=a(b([1]),t),r=a())},u=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const n=[];for(;t<e;){r=a();const e=r.slice();n.push(e),t+=r.length}return y(...n)};return(t,e)=>{let n;for(s(),c(t);!(n=e(u()));)c();return s(),n}},e.validateObject=function(t,e,n={}){const r=(e,n,r)=>{const i=v[n];if("function"!=typeof i)throw new Error("invalid validator function");const o=t[e];if(!(r&&void 0===o||i(o,t)))throw new Error("param "+String(e)+" is invalid. Expected "+n+", got "+o)};for(const[t,n]of Object.entries(e))r(t,n,!1);for(const[t,e]of Object.entries(n))r(t,e,!0);return t},e.memoized=function(t){const e=new WeakMap;return(n,...r)=>{const i=e.get(n);if(void 0!==i)return i;const o=t(n,...r);return e.set(n,o),o}};const n=BigInt(0),r=BigInt(1);function i(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function o(t){if(!i(t))throw new Error("Uint8Array expected")}function s(t){const e=t.toString(16);return 1&e.length?"0"+e:e}function a(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return""===t?n:BigInt("0x"+t)}const c="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,u=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function l(t){if(o(t),c)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=u[t[n]];return e}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("hex string expected, got "+typeof t);if(c)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,i=0;e<n;e++,i+=2){const n=h(t.charCodeAt(i)),o=h(t.charCodeAt(i+1));if(void 0===n||void 0===o){const e=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+i)}r[e]=16*n+o}return r}function p(t,e){return f(t.toString(16).padStart(2*e,"0"))}function y(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];o(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const i=t[e];n.set(i,r),r+=i.length}return n}const g=t=>"bigint"==typeof t&&n<=t;function m(t,e,n){return g(t)&&g(e)&&g(n)&&e<=t&&t<n}e.bitMask=t=>(r<<BigInt(t))-r;const _=t=>new Uint8Array(t),b=t=>Uint8Array.from(t);const v={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||i(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")}},1493:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1521:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(5547);const i=function(t){return(0,r.A)(this,t).get(t)}},1532:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(7919);const i=function(){this.__data__=new r.A,this.size=0}},1625:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(5707),i=n(2141),o=n(8593),s=Math.max;const a=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var c=null==n?0:(0,o.A)(n);return c<0&&(c=s(a+c,0)),(0,r.A)(t,(0,i.A)(e,3),c)}},1635:(t,e,n)=>{"use strict";n.d(e,{Cl:()=>r,YH:()=>o,fX:()=>s,sH:()=>i});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function o(t,e){var n,r,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(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=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++,r=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],r=0}finally{n=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,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||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,n)=>{"use strict";function r(t){t.parentNode&&t.parentNode.removeChild(t)}function i(t,e,n){const r=document.createElement(t);return e&&(r.className=e),n&&n.appendChild(r),r}n.d(e,{Z:()=>r,r:()=>i})},1694:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(5488),i=n(3149),o=n(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,r.A)(t);var n=a.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):s.test(t)?NaN:+t}},1705:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DER=e.DERErr=void 0,e.weierstrassPoints=p,e.weierstrass=function(t){const n=function(t){const e=(0,r.validateBasic)(t);return(0,o.validateObject)(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:a,n:d,nByteLength:h,nBitLength:f}=n,y=a.BYTES+1,g=2*a.BYTES+1;function m(t){return(0,i.mod)(t,d)}function _(t){return(0,i.invert)(t,d)}const{ProjectivePoint:b,normPrivateKeyToScalar:v,weierstrassEquation:w,isWithinCurveOrder:A}=p({...n,toBytes(t,e,n){const r=e.toAffine(),i=a.toBytes(r.x),s=o.concatBytes;return(0,o.abool)("isCompressed",n),n?s(Uint8Array.from([e.hasEvenY()?2:3]),i):s(Uint8Array.from([4]),i,a.toBytes(r.y))},fromBytes(t){const e=t.length,n=t[0],r=t.subarray(1);if(e!==y||2!==n&&3!==n){if(e===g&&4===n){return{x:a.fromBytes(r.subarray(0,a.BYTES)),y:a.fromBytes(r.subarray(a.BYTES,2*a.BYTES))}}throw new Error("invalid Point, expected length of "+y+", or uncompressed "+g+", got "+e)}{const t=(0,o.bytesToNumberBE)(r);if(!(0,o.inRange)(t,l,a.ORDER))throw new Error("Point is not on curve");const e=w(t);let i;try{i=a.sqrt(e)}catch(t){const e=t instanceof Error?": "+t.message:"";throw new Error("Point is not on curve"+e)}return!(1&~n)!==((i&l)===l)&&(i=a.neg(i)),{x:t,y:i}}}});function E(t){return t>d>>l}const B=(t,e,n)=>(0,o.bytesToNumberBE)(t.slice(e,n));class S{constructor(t,e,n){(0,o.aInRange)("r",t,l,d),(0,o.aInRange)("s",e,l,d),this.r=t,this.s=e,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(t){const e=h;return t=(0,o.ensureBytes)("compactSignature",t,2*e),new S(B(t,0,e),B(t,e,2*e))}static fromDER(t){const{r:n,s:r}=e.DER.toSig((0,o.ensureBytes)("DER",t));return new S(n,r)}assertValidity(){}addRecoveryBit(t){return new S(this.r,this.s,t)}recoverPublicKey(t){const{r:e,s:r,recovery:i}=this,s=O((0,o.ensureBytes)("msgHash",t));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const u=2===i||3===i?e+n.n:e;if(u>=a.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=1&i?"03":"02",d=b.fromHex(l+c(u,a.BYTES)),h=_(u),f=m(-s*h),p=m(r*h),y=b.BASE.multiplyAndAddUnsafe(d,f,p);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new S(this.r,m(-this.s),this.recovery):this}toDERRawBytes(){return(0,o.hexToBytes)(this.toDERHex())}toDERHex(){return e.DER.hexFromSig(this)}toCompactRawBytes(){return(0,o.hexToBytes)(this.toCompactHex())}toCompactHex(){const t=h;return c(this.r,t)+c(this.s,t)}}const x={isValidPrivateKey(t){try{return v(t),!0}catch(t){return!1}},normPrivateKeyToScalar:v,randomPrivateKey:()=>{const t=(0,i.getMinHashLength)(n.n);return(0,i.mapHashToField)(n.randomBytes(t),n.n)},precompute:(t=8,e=b.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function I(t){if("bigint"==typeof t)return!1;if(t instanceof b)return!0;const e=(0,o.ensureBytes)("key",t).length,r=a.BYTES,i=r+1,s=2*r+1;return n.allowedPrivateKeyLengths||h===i?void 0:e===i||e===s}const L=n.bits2int||function(t){if(t.length>8192)throw new Error("input is too large");const e=(0,o.bytesToNumberBE)(t),n=8*t.length-f;return n>0?e>>BigInt(n):e},O=n.bits2int_modN||function(t){return m(L(t))},k=(0,o.bitMask)(f);function C(t){return(0,o.aInRange)("num < 2^"+f,t,u,k),(0,o.numberToBytesBE)(t,h)}function T(t,e,r=R){if(["recovered","canonical"].some((t=>t in r)))throw new Error("sign() legacy options not supported");const{hash:i,randomBytes:c}=n;let{lowS:d,prehash:h,extraEntropy:f}=r;null==d&&(d=!0),t=(0,o.ensureBytes)("msgHash",t),s(r),h&&(t=(0,o.ensureBytes)("prehashed msgHash",i(t)));const p=O(t),y=v(e),g=[C(y),C(p)];if(null!=f&&!1!==f){const t=!0===f?c(a.BYTES):f;g.push((0,o.ensureBytes)("extraEntropy",t))}const w=(0,o.concatBytes)(...g),B=p;return{seed:w,k2sig:function(t){const e=L(t);if(!A(e))return;const n=_(e),r=b.BASE.multiply(e).toAffine(),i=m(r.x);if(i===u)return;const o=m(n*m(B+i*y));if(o===u)return;let s=(r.x===i?0:2)|Number(r.y&l),a=o;return d&&E(o)&&(a=function(t){return E(t)?m(-t):t}(o),s^=1),new S(i,a,s)}}}const R={lowS:n.lowS,prehash:!1},P={lowS:n.lowS,prehash:!1};return b.BASE._setWindowSize(8),{CURVE:n,getPublicKey:function(t,e=!0){return b.fromPrivateKey(t).toRawBytes(e)},getSharedSecret:function(t,e,n=!0){if(!0===I(t))throw new Error("first arg must be private key");if(!1===I(e))throw new Error("second arg must be public key");return b.fromHex(e).multiply(v(t)).toRawBytes(n)},sign:function(t,e,r=R){const{seed:i,k2sig:s}=T(t,e,r),a=n;return(0,o.createHmacDrbg)(a.hash.outputLen,a.nByteLength,a.hmac)(i,s)},verify:function(t,r,i,a=P){const c=t;r=(0,o.ensureBytes)("msgHash",r),i=(0,o.ensureBytes)("publicKey",i);const{lowS:u,prehash:l,format:d}=a;if(s(a),"strict"in a)throw new Error("options.strict was renamed to lowS");if(void 0!==d&&"compact"!==d&&"der"!==d)throw new Error("format must be compact or der");const h="string"==typeof c||(0,o.isBytes)(c),f=!h&&!d&&"object"==typeof c&&null!==c&&"bigint"==typeof c.r&&"bigint"==typeof c.s;if(!h&&!f)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let p,y;try{if(f&&(p=new S(c.r,c.s)),h){try{"compact"!==d&&(p=S.fromDER(c))}catch(t){if(!(t instanceof e.DER.Err))throw t}p||"der"===d||(p=S.fromCompact(c))}y=b.fromHex(i)}catch(t){return!1}if(!p)return!1;if(u&&p.hasHighS())return!1;l&&(r=n.hash(r));const{r:g,s:v}=p,w=O(r),A=_(v),E=m(w*A),B=m(g*A),x=b.BASE.multiplyAndAddUnsafe(y,E,B)?.toAffine();if(!x)return!1;return m(x.x)===g},ProjectivePoint:b,Signature:S,utils:x}},e.SWUFpSqrtRatio=y,e.mapToCurveSimpleSWU=function(t,e){if((0,i.validateField)(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=y(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let o,s,a,c,u,l,d,h;o=t.sqr(r),o=t.mul(o,e.Z),s=t.sqr(o),s=t.add(s,o),a=t.add(s,t.ONE),a=t.mul(a,e.B),c=t.cmov(e.Z,t.neg(s),!t.eql(s,t.ZERO)),c=t.mul(c,e.A),s=t.sqr(a),l=t.sqr(c),u=t.mul(l,e.A),s=t.add(s,u),s=t.mul(s,a),l=t.mul(l,c),u=t.mul(l,e.B),s=t.add(s,u),d=t.mul(o,a);const{isValid:f,value:p}=n(s,l);h=t.mul(o,r),h=t.mul(h,p),d=t.cmov(d,a,f),h=t.cmov(h,p,f);const y=t.isOdd(r)===t.isOdd(h);h=t.cmov(t.neg(h),h,y);const g=(0,i.FpInvertBatch)(t,[c],!0)[0];return d=t.mul(d,g),{x:d,y:h}}};const r=n(2422),i=n(4967),o=n(1484);function s(t){void 0!==t.lowS&&(0,o.abool)("lowS",t.lowS),void 0!==t.prehash&&(0,o.abool)("prehash",t.prehash)}class a extends Error{constructor(t=""){super(t)}}function c(t,e){return(0,o.bytesToHex)((0,o.numberToBytesBE)(t,e))}e.DERErr=a,e.DER={Err:a,_tlv:{encode:(t,n)=>{const{Err:r}=e.DER;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(1&n.length)throw new r("tlv.encode: unpadded data");const i=n.length/2,s=(0,o.numberToHexUnpadded)(i);if(s.length/2&128)throw new r("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+n},decode(t,n){const{Err:r}=e.DER;let i=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(n.length<2||n[i++]!==t)throw new r("tlv.decode: wrong tlv");const o=n[i++];let s=0;if(!!(128&o)){const t=127&o;if(!t)throw new r("tlv.decode(long): indefinite length not supported");if(t>4)throw new r("tlv.decode(long): byte length is too big");const e=n.subarray(i,i+t);if(e.length!==t)throw new r("tlv.decode: length bytes not complete");if(0===e[0])throw new r("tlv.decode(long): zero leftmost byte");for(const t of e)s=s<<8|t;if(i+=t,s<128)throw new r("tlv.decode(long): not minimal encoding")}else s=o;const a=n.subarray(i,i+s);if(a.length!==s)throw new r("tlv.decode: wrong value length");return{v:a,l:n.subarray(i+s)}}},_int:{encode(t){const{Err:n}=e.DER;if(t<u)throw new n("integer: negative integers are not allowed");let r=(0,o.numberToHexUnpadded)(t);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new n("unexpected DER parsing assertion: unpadded hex");return r},decode(t){const{Err:n}=e.DER;if(128&t[0])throw new n("invalid signature integer: negative");if(0===t[0]&&!(128&t[1]))throw new n("invalid signature integer: unnecessary leading zero");return(0,o.bytesToNumberBE)(t)}},toSig(t){const{Err:n,_int:r,_tlv:i}=e.DER,s=(0,o.ensureBytes)("signature",t),{v:a,l:c}=i.decode(48,s);if(c.length)throw new n("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 n("invalid signature: left bytes after parsing");return{r:r.decode(u),s:r.decode(d)}},hexFromSig(t){const{_tlv:n,_int:r}=e.DER,i=n.encode(2,r.encode(t.r))+n.encode(2,r.encode(t.s));return n.encode(48,i)}};const u=BigInt(0),l=BigInt(1),d=BigInt(2),h=BigInt(3),f=BigInt(4);function p(t){const e=function(t){const e=(0,r.validateBasic)(t);(0,o.validateObject)(e,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:i,a:s}=e;if(n){if(!i.eql(s,i.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...e})}(t),{Fp:n}=e,s=(0,i.Field)(e.n,e.nBitLength),a=e.toBytes||((t,e,r)=>{const i=e.toAffine();return(0,o.concatBytes)(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),c=e.fromBytes||(t=>{const e=t.subarray(1);return{x:n.fromBytes(e.subarray(0,n.BYTES)),y:n.fromBytes(e.subarray(n.BYTES,2*n.BYTES))}});function d(t){const{a:r,b:i}=e,o=n.sqr(t),s=n.mul(o,t);return n.add(n.add(s,n.mul(t,r)),i)}function p(t,e){const r=n.sqr(e),i=d(t);return n.eql(r,i)}if(!p(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const y=n.mul(n.pow(e.a,h),f),g=n.mul(n.sqr(e.b),BigInt(27));if(n.is0(n.add(y,g)))throw new Error("bad curve params: a or b");function m(t){const{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:s,n:a}=e;if(n&&"bigint"!=typeof t){if((0,o.isBytes)(t)&&(t=(0,o.bytesToHex)(t)),"string"!=typeof t||!n.includes(t.length))throw new Error("invalid private key");t=t.padStart(2*r,"0")}let c;try{c="bigint"==typeof t?t:(0,o.bytesToNumberBE)((0,o.ensureBytes)("private key",t,r))}catch(e){throw new Error("invalid private key, expected hex or "+r+" bytes, got "+typeof t)}return s&&(c=(0,i.mod)(c,a)),(0,o.aInRange)("private key",c,l,a),c}function _(t){if(!(t instanceof w))throw new Error("ProjectivePoint expected")}const b=(0,o.memoized)(((t,e)=>{const{px:r,py:i,pz:o}=t;if(n.eql(o,n.ONE))return{x:r,y:i};const s=t.is0();null==e&&(e=s?n.ONE:n.inv(o));const a=n.mul(r,e),c=n.mul(i,e),u=n.mul(o,e);if(s)return{x:n.ZERO,y:n.ZERO};if(!n.eql(u,n.ONE))throw new Error("invZ was invalid");return{x:a,y:c}})),v=(0,o.memoized)((t=>{if(t.is0()){if(e.allowInfinityPoint&&!n.is0(t.py))return;throw new Error("bad point: ZERO")}const{x:r,y:i}=t.toAffine();if(!n.isValid(r)||!n.isValid(i))throw new Error("bad point: x or y not FE");if(!p(r,i))throw new Error("bad point: equation left != right");if(!t.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0}));class w{constructor(t,e,r){if(null==t||!n.isValid(t))throw new Error("x required");if(null==e||!n.isValid(e)||n.is0(e))throw new Error("y required");if(null==r||!n.isValid(r))throw new Error("z required");this.px=t,this.py=e,this.pz=r,Object.freeze(this)}static fromAffine(t){const{x:e,y:r}=t||{};if(!t||!n.isValid(e)||!n.isValid(r))throw new Error("invalid affine point");if(t instanceof w)throw new Error("projective point not allowed");const i=t=>n.eql(t,n.ZERO);return i(e)&&i(r)?w.ZERO:new w(e,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=(0,i.FpInvertBatch)(n,t.map((t=>t.pz)));return t.map(((t,n)=>t.toAffine(e[n]))).map(w.fromAffine)}static fromHex(t){const e=w.fromAffine(c((0,o.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return w.BASE.multiply(m(t))}static msm(t,e){return(0,r.pippenger)(w,s,t,e)}_setWindowSize(t){B.setWindowSize(this,t)}assertValidity(){v(this)}hasEvenY(){const{y:t}=this.toAffine();if(n.isOdd)return!n.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){_(t);const{px:e,py:r,pz:i}=this,{px:o,py:s,pz:a}=t,c=n.eql(n.mul(e,a),n.mul(o,i)),u=n.eql(n.mul(r,a),n.mul(s,i));return c&&u}negate(){return new w(this.px,n.neg(this.py),this.pz)}double(){const{a:t,b:r}=e,i=n.mul(r,h),{px:o,py:s,pz:a}=this;let c=n.ZERO,u=n.ZERO,l=n.ZERO,d=n.mul(o,o),f=n.mul(s,s),p=n.mul(a,a),y=n.mul(o,s);return y=n.add(y,y),l=n.mul(o,a),l=n.add(l,l),c=n.mul(t,l),u=n.mul(i,p),u=n.add(c,u),c=n.sub(f,u),u=n.add(f,u),u=n.mul(c,u),c=n.mul(y,c),l=n.mul(i,l),p=n.mul(t,p),y=n.sub(d,p),y=n.mul(t,y),y=n.add(y,l),l=n.add(d,d),d=n.add(l,d),d=n.add(d,p),d=n.mul(d,y),u=n.add(u,d),p=n.mul(s,a),p=n.add(p,p),d=n.mul(p,y),c=n.sub(c,d),l=n.mul(p,f),l=n.add(l,l),l=n.add(l,l),new w(c,u,l)}add(t){_(t);const{px:r,py:i,pz:o}=this,{px:s,py:a,pz:c}=t;let u=n.ZERO,l=n.ZERO,d=n.ZERO;const f=e.a,p=n.mul(e.b,h);let y=n.mul(r,s),g=n.mul(i,a),m=n.mul(o,c),b=n.add(r,i),v=n.add(s,a);b=n.mul(b,v),v=n.add(y,g),b=n.sub(b,v),v=n.add(r,o);let A=n.add(s,c);return v=n.mul(v,A),A=n.add(y,m),v=n.sub(v,A),A=n.add(i,o),u=n.add(a,c),A=n.mul(A,u),u=n.add(g,m),A=n.sub(A,u),d=n.mul(f,v),u=n.mul(p,m),d=n.add(u,d),u=n.sub(g,d),d=n.add(g,d),l=n.mul(u,d),g=n.add(y,y),g=n.add(g,y),m=n.mul(f,m),v=n.mul(p,v),g=n.add(g,m),m=n.sub(y,m),m=n.mul(f,m),v=n.add(v,m),y=n.mul(g,v),l=n.add(l,y),y=n.mul(A,v),u=n.mul(b,u),u=n.sub(u,y),y=n.mul(b,g),d=n.mul(A,d),d=n.add(d,y),new w(u,l,d)}subtract(t){return this.add(t.negate())}is0(){return this.equals(w.ZERO)}wNAF(t){return B.wNAFCached(this,t,w.normalizeZ)}multiplyUnsafe(t){const{endo:r,n:i}=e;(0,o.aInRange)("scalar",t,u,i);const s=w.ZERO;if(t===u)return s;if(this.is0()||t===l)return this;if(!r||B.hasPrecomputes(this))return B.wNAFCachedUnsafe(this,t,w.normalizeZ);let{k1neg:a,k1:c,k2neg:d,k2:h}=r.splitScalar(t),f=s,p=s,y=this;for(;c>u||h>u;)c&l&&(f=f.add(y)),h&l&&(p=p.add(y)),y=y.double(),c>>=l,h>>=l;return a&&(f=f.negate()),d&&(p=p.negate()),p=new w(n.mul(p.px,r.beta),p.py,p.pz),f.add(p)}multiply(t){const{endo:r,n:i}=e;let s,a;if((0,o.aInRange)("scalar",t,l,i),r){const{k1neg:e,k1:i,k2neg:o,k2:c}=r.splitScalar(t);let{p:u,f:l}=this.wNAF(i),{p:d,f:h}=this.wNAF(c);u=B.constTimeNegate(e,u),d=B.constTimeNegate(o,d),d=new w(n.mul(d.px,r.beta),d.py,d.pz),s=u.add(d),a=l.add(h)}else{const{p:e,f:n}=this.wNAF(t);s=e,a=n}return w.normalizeZ([s,a])[0]}multiplyAndAddUnsafe(t,e,n){const r=w.BASE,i=(t,e)=>e!==u&&e!==l&&t.equals(r)?t.multiply(e):t.multiplyUnsafe(e),o=i(this,e).add(i(t,n));return o.is0()?void 0:o}toAffine(t){return b(this,t)}isTorsionFree(){const{h:t,isTorsionFree:n}=e;if(t===l)return!0;if(n)return n(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:n}=e;return t===l?this:n?n(w,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return(0,o.abool)("isCompressed",t),this.assertValidity(),a(w,this,t)}toHex(t=!0){return(0,o.abool)("isCompressed",t),(0,o.bytesToHex)(this.toRawBytes(t))}}w.BASE=new w(e.Gx,e.Gy,n.ONE),w.ZERO=new w(n.ZERO,n.ONE,n.ZERO);const{endo:A,nBitLength:E}=e,B=(0,r.wNAF)(w,A?Math.ceil(E/2):E);return{CURVE:e,ProjectivePoint:w,normPrivateKeyToScalar:m,weierstrassEquation:d,isWithinCurveOrder:function(t){return(0,o.inRange)(t,l,e.n)}}}function y(t,e){const n=t.ORDER;let r=u;for(let t=n-l;t%d===u;t/=d)r+=l;const i=r,o=d<<i-l-l,s=o*d,a=(n-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,n)=>{let r=g,o=t.pow(n,p),s=t.sqr(o);s=t.mul(s,n);let a=t.mul(e,s);a=t.pow(a,c),a=t.mul(a,o),o=t.mul(a,n),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,r),s=t.cmov(o,s,h),u=t.cmov(a,u,h);for(let e=i;e>l;e--){let n=e-d;n=d<<n-l;let i=t.pow(u,n);const a=t.eql(i,t.ONE);o=t.mul(s,r),r=t.mul(r,r),i=t.mul(u,r),s=t.cmov(o,s,a),u=t.cmov(i,u,a)}return{isValid:h,value:s}};if(t.ORDER%f===h){const n=(t.ORDER-h)/f,r=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,n);a=t.mul(a,s);const c=t.mul(a,r),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,n)=>{"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 n=e.map((t=>Array.from(t).reverse()));return(e,i)=>{const[o,s,a,c]=n.map((n=>n.reduce(((n,r)=>t.add(t.mul(n,e),r))))),[u,l]=(0,r.FpInvertBatch)(t,[s,c],!0);return e=t.mul(o,u),i=t.mul(i,t.mul(a,l)),{x:e,y:i}}},e.createHasher=function(t,e,n){if("function"!=typeof e)throw new Error("mapToCurve() must be defined");function r(n){return t.fromAffine(e(n))}function i(e){const n=e.clearCofactor();return n.equals(t.ZERO)?t.ZERO:(n.assertValidity(),n)}return{defaults:n,hashToCurve(t,e){const o=d(t,2,{...n,DST:n.DST,...e}),s=r(o[0]),a=r(o[1]);return i(s.add(a))},encodeToCurve:(t,e)=>i(r(d(t,1,{...n,DST:n.encodeDST,...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(r(t))}}};const r=n(4967),i=n(1484),o=i.bytesToNumberBE;function s(t,e){if(c(t),c(e),t<0||t>=1<<8*e)throw new Error("invalid I2OSP input: "+t);const n=Array.from({length:e}).fill(0);for(let r=e-1;r>=0;r--)n[r]=255&t,t>>>=8;return new Uint8Array(n)}function a(t,e){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r]^e[r];return n}function c(t){if(!Number.isSafeInteger(t))throw new Error("number expected")}function u(t,e,n,r){(0,i.abytes)(t),(0,i.abytes)(e),c(n),e.length>255&&(e=r((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:o,blockLen:u}=r,l=Math.ceil(n/o);if(n>65535||l>255)throw new Error("expand_message_xmd: invalid lenInBytes");const d=(0,i.concatBytes)(e,s(e.length,1)),h=s(0,u),f=s(n,2),p=new Array(l),y=r((0,i.concatBytes)(h,t,f,s(0,1),d));p[0]=r((0,i.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]=r((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...p).slice(0,n)}function l(t,e,n,r,o){if((0,i.abytes)(t),(0,i.abytes)(e),c(n),e.length>255){const t=Math.ceil(2*r/8);e=o.create({dkLen:t}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(n>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:n}).update(t).update(s(n,2)).update(e).update(s(e.length,1)).digest()}function d(t,e,n){(0,i.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:s,k:a,m:d,hash:h,expand:f,DST:p}=n;(0,i.abytes)(t),c(e);const y="string"==typeof p?(0,i.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 n=0;n<d;n++){const i=m*(n+t*d),a=b.subarray(i,i+m);e[n]=(0,r.mod)(o(a),s)}v[t]=e}return v}},1788:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(4846),i=n(3098),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable;const c=(0,r.A)(function(){return arguments}())?r.A:function(t){return(0,i.A)(t)&&s.call(t,"callee")&&!a.call(t,"callee")}},1790:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(9501);const i=function(t,e){var n=[];return(0,r.A)(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},1791:(t,e,n)=>{"use strict";n.d(e,{E9:()=>o});const r=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,i=0;for(;i<n;)r=i+e,yield t.slice(i,r),i=r},i=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},o=(t,e,n,o)=>{const s=async function*(t,e){for await(const n of i(t))yield*r(n,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:r}=await s.next();if(e)return u(),void t.close();let i=r.byteLength;if(n){let t=c+=i;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw u(t),t}},cancel:t=>(u(t),s.return())},{highWaterMark:2})}},1865:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(423),i=n(8823),o=n(8446);const s=function(t){return(0,o.A)(t)?(0,r.A)(t,!0):(0,i.A)(t)}},1879:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(9672),i=n(3098);const o=function(t){return"number"==typeof t||(0,i.A)(t)&&"[object Number]"==(0,r.A)(t)}},1882:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(9672),i=n(3098);const o=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,r.A)(t)}},1894:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(2141),i=n(8446),o=n(7422);const s=function(t){return function(e,n,s){var a=Object(e);if(!(0,i.A)(e)){var c=(0,r.A)(n,3);e=(0,o.A)(e),n=function(t){return c(a[t],t,a)}}var u=t(e,n,s);return u>-1?a[c?e[u]:u]:void 0}}},1917:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(2136),i="object"==typeof self&&self&&self.Object===Object&&self;const o=r.A||i||Function("return this")()},1965:(t,e,n)=>{"use strict";n.d(e,{Zj:()=>r});const r="reserve_mapxus-building-fill"},1979:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var r=n(9610),i=n(640),o=n(3149),s=n(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,r.A)(t)?h:a).test((0,s.A)(t))}},2049:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=Array.isArray},2068:(t,e,n)=>{"use strict";n.d(e,{K:()=>s});var r=n(7536),i=n(9588);const o=n(7311).o.getInstance();class s{static instance;_axios;_isRefreshingToken=!1;_retryCount=0;constructor(){this._axios=r.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(),n=t.config;return n.headers=Object.assign({},n.headers,e),this._axios.request(n)}catch(t){throw t}finally{this._isRefreshingToken=!1}}))}}},2075:(t,e,n)=>{"use strict";n.d(e,{$b:()=>h,Hf:()=>d,_C:()=>s,aS:()=>f,em:()=>l,lu:()=>a,ts:()=>c,xR:()=>u});var r=n(9588);const i="v3";function o(t){return`${r.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_mims2_v5");function f(t){return o(t)}},2125:(t,e,n)=>{"use strict";function r(t,e){return function(){return t.apply(e,arguments)}}n.d(e,{A:()=>r})},2136:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},2141:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(4943),i=n(6474),o=n(9008),s=n(2049),a=n(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,r.A)(t):(0,a.A)(t)}},2158:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(9378),e),i(n(244),e),i(n(3503),e),i(n(7757),e)},2199:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(6318);const i=function(t){return function(e){return(0,r.A)(e,t)}}},2263:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(805),i=n(2199),o=n(6586),s=n(901);const a=function(t){return(0,o.A)(t)?(0,r.A)((0,s.A)(t)):(0,i.A)(t)}},2302:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=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 n=BigInt(2**32-1),r=BigInt(32);function i(t,e=!1){return e?{h:Number(t&n),l:Number(t>>r&n)}:{h:0|Number(t>>r&n),l:0|Number(t&n)}}function o(t,e=!1){const n=t.length;let r=new Uint32Array(n),o=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:a}=i(t[s],e);[r[s],o[s]]=[n,a]}return[r,o]}const s=(t,e)=>BigInt(t>>>0)<<r|BigInt(e>>>0);e.toBig=s;const a=(t,e,n)=>t>>>n;e.shrSH=a;const c=(t,e,n)=>t<<32-n|e>>>n;e.shrSL=c;const u=(t,e,n)=>t>>>n|e<<32-n;e.rotrSH=u;const l=(t,e,n)=>t<<32-n|e>>>n;e.rotrSL=l;const d=(t,e,n)=>t<<64-n|e>>>n-32;e.rotrBH=d;const h=(t,e,n)=>t>>>n-32|e<<64-n;e.rotrBL=h;const f=(t,e)=>e;e.rotr32H=f;const p=(t,e)=>t;e.rotr32L=p;const y=(t,e,n)=>t<<n|e>>>32-n;e.rotlSH=y;const g=(t,e,n)=>e<<n|t>>>32-n;e.rotlSL=g;const m=(t,e,n)=>e<<n-32|t>>>64-n;e.rotlBH=m;const _=(t,e,n)=>t<<n-32|e>>>64-n;function b(t,e,n,r){const i=(e>>>0)+(r>>>0);return{h:t+n+(i/2**32|0)|0,l:0|i}}e.rotlBL=_;const v=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0);e.add3L=v;const w=(t,e,n,r)=>e+n+r+(t/2**32|0)|0;e.add3H=w;const A=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0);e.add4L=A;const E=(t,e,n,r,i)=>e+n+r+i+(t/2**32|0)|0;e.add4H=E;const B=(t,e,n,r,i)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(i>>>0);e.add5L=B;const S=(t,e,n,r,i,o)=>e+n+r+i+o+(t/2**32|0)|0;e.add5H=S;const x={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:S,add5L:B};e.default=x},2384:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(169),i=Array.prototype.splice;const o=function(t){var e=this.__data__,n=(0,r.A)(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},2422:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wNAF=function(t,e){return{constTimeNegate:a,hasPrecomputes:t=>1!==y(t),unsafeLadder(e,n,r=t.ZERO){let i=e;for(;n>o;)n&s&&(r=r.add(i)),i=i.double(),n>>=s;return r},precomputeWindow(t,n){const{windows:r,windowSize:i}=u(n,e),o=[];let s=t,a=s;for(let t=0;t<r;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(n,r,i){let o=t.ZERO,s=t.BASE;const c=u(n,e);for(let t=0;t<c.windows;t++){const{nextN:e,offset:n,isZero:u,isNeg:d,isNegF:h,offsetF:f}=l(i,t,c);i=e,u?s=s.add(a(h,r[f])):o=o.add(a(d,r[n]))}return{p:o,f:s}},wNAFUnsafe(n,r,i,s=t.ZERO){const a=u(n,e);for(let t=0;t<a.windows&&i!==o;t++){const{nextN:e,offset:n,isZero:o,isNeg:c}=l(i,t,a);if(i=e,!o){const t=r[n];s=s.add(c?t.negate():t)}}return s},getPrecomputes(t,e,n){let r=f.get(e);return r||(r=this.precomputeWindow(e,t),1!==t&&f.set(e,n(r))),r},wNAFCached(t,e,n){const r=y(t);return this.wNAF(r,this.getPrecomputes(r,t,n),e)},wNAFCachedUnsafe(t,e,n,r){const i=y(t);return 1===i?this.unsafeLadder(t,e,r):this.wNAFUnsafe(i,this.getPrecomputes(i,t,n),e,r)},setWindowSize(t,n){c(n,e),p.set(t,n),f.delete(t)}}},e.pippenger=function(t,e,n,r){d(n,t),h(r,e);const o=n.length,s=r.length;if(o!==s)throw new Error("arrays of points and scalars must have equal length");const a=t.ZERO,c=(0,i.bitLen)(BigInt(o));let u=1;c>12?u=c-3:c>4?u=c-2:c>0&&(u=2);const l=(0,i.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 i=r[e],o=Number(i>>BigInt(t)&l);f[o]=f[o].add(n[e])}let e=a;for(let t=f.length-1,n=a;t>0;t--)n=n.add(f[t]),e=e.add(n);if(y=y.add(e),0!==t)for(let t=0;t<u;t++)y=y.double()}return y},e.precomputeMSMUnsafe=function(t,e,n,r){c(r,e.BITS),d(n,t);const o=t.ZERO,s=2**r-1,a=Math.ceil(e.BITS/r),u=(0,i.bitMask)(r),l=n.map((t=>{const e=[];for(let n=0,r=t;n<s;n++)e.push(r),r=r.add(t);return e}));return t=>{if(h(t,e),t.length>n.length)throw new Error("array of scalars must be smaller than array of points");let i=o;for(let e=0;e<a;e++){if(i!==o)for(let t=0;t<r;t++)i=i.double();const n=BigInt(a*r-(e+1)*r);for(let e=0;e<t.length;e++){const r=t[e],o=Number(r>>n&u);o&&(i=i.add(l[e][o-1]))}}return i}},e.validateBasic=function(t){return(0,r.validateField)(t.Fp),(0,i.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,r.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})};const r=n(4967),i=n(1484),o=BigInt(0),s=BigInt(1);function a(t,e){const n=e.negate();return t?n: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 n=2**t;return{windows:Math.ceil(e/t)+1,windowSize:2**(t-1),mask:(0,i.bitMask)(t),maxNumber:n,shiftBy:BigInt(t)}}function l(t,e,n){const{windowSize:r,mask:i,maxNumber:o,shiftBy:a}=n;let c=Number(t&i),u=t>>a;c>r&&(c-=o,u+=s);const l=e*r;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,n)=>{if(!(t instanceof e))throw new Error("invalid point at index "+n)}))}function h(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach(((t,n)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+n)}))}const f=new WeakMap,p=new WeakMap;function y(t){return p.get(t)||1}},2468:(t,e,n)=>{"use strict";n.d(e,{E:()=>r});class r{_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,n)=>{"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:n,extendNonceFn:i,counterLength:o,counterRight:s,rounds:p}=(0,r.checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},e);if("function"!=typeof t)throw new Error("core must be a function");return(0,r.anumber)(o),(0,r.anumber)(p),(0,r.abool)(s),(0,r.abool)(n),(e,y,g,m,_=0)=>{(0,r.abytes)(e),(0,r.abytes)(y),(0,r.abytes)(g);const b=g.length;if(void 0===m&&(m=new Uint8Array(b)),(0,r.abytes)(m),(0,r.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,r.copyBytes)(e)),A=c;else{if(16!==E||!n)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,r.copyBytes)(y));const B=(0,r.u32)(w);if(i){if(24!==y.length)throw new Error("arx: extended nonce must be 24 bytes");i(A,B,(0,r.u32)(y.subarray(0,16)),B),y=y.subarray(16)}const S=16-o;if(S!==y.length)throw new Error(`arx: nonce must be ${S} or 16 bytes`);if(12!==S){const t=new Uint8Array(12);t.set(y,s?0:12-y.length),y=t,v.push(y)}const x=(0,r.u32)(y);return function(t,e,n,i,o,s,a,c){const p=o.length,y=new Uint8Array(l),g=(0,r.u32)(y),m=u(o)&&u(s),_=m?(0,r.u32)(o):f,b=m?(0,r.u32)(s):f;for(let r=0;r<p;a++){if(t(e,n,i,g,a,c),a>=h)throw new Error("arx: counter overflow");const u=Math.min(l,p-r);if(m&&u===l){const t=r/4;if(r%4!=0)throw new Error("arx: invalid block position");for(let e,n=0;n<d;n++)e=t+n,b[e]=_[e]^g[n];r+=l}else{for(let t,e=0;e<u;e++)t=r+e,s[t]=o[t]^y[e];r+=u}}}(t,A,B,x,g,m,_,p),(0,r.clean)(...v),m}};const r=n(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,r.u32)(o),c=(0,r.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,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(5547);const i=function(t){return(0,r.A)(this,t).has(t)}},2528:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(4171);const i=function(t,e,n){"__proto__"==e&&r.A?(0,r.A)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},2531:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(4912),i=n(8446),o=n(9703),s=n(8593),a=n(2872),c=Math.max;const u=function(t,e,n,u){t=(0,i.A)(t)?t:(0,a.A)(t),n=n&&!u?(0,s.A)(n):0;var l=t.length;return n<0&&(n=c(l+n,0)),(0,o.A)(t)?n<=l&&t.indexOf(e,n)>-1:!!l&&(0,r.A)(t,e,n)>-1}},2557:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=void 0;var r=n(6527),i=n(2158),o=function(){function t(t,e){var n=(0,i.convertPublicKeyFormat)(t,!0,e),r=(0,i.convertPublicKeyFormat)(t,!1,e);this.data=n,this.dataUncompressed=n.length!==r.length?r:null}return t.fromHex=function(e,n){return new t((0,i.hexToPublicKey)(e,n),n)},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,r.bytesToHex)(this.toBytes(t))},t.prototype.decapsulate=function(t,e){void 0===e&&(e=!1);var n=this.toBytes(e),r=t.multiply(this,e);return(0,i.getSharedKey)(n,r)},t.prototype.equals=function(t){return(0,r.equalBytes)(this.data,t.data)},t}();e.PublicKey=o},2559:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(1882);const i=function(t,e,n){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,r.A)(a):n(a,c)))var c=a,u=s}return u}},2568:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(9501),i=n(8446);const o=function(t,e){var n=-1,o=(0,i.A)(t)?Array(t.length):[];return(0,r.A)(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},2569:(t,e,n)=>{"use strict";n.r(e),n.d(e,{hasBrowserEnv:()=>r,hasStandardBrowserEnv:()=>o,hasStandardBrowserWebWorkerEnv:()=>s,navigator:()=>i,origin:()=>a});const r="undefined"!=typeof window&&"undefined"!=typeof document,i="object"==typeof navigator&&navigator||void 0,o=r&&(!i||["ReactNative","NativeScript","NS"].indexOf(i.product)<0),s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,a=r&&window.location.href||"http://localhost"},2634:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},2641:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},2658:(t,e,n)=>{"use strict";n.d(e,{S:()=>i,d:()=>o});let r=[];const i={[Symbol.for("mapxus/callers-register")]:t=>{r=t}};function o(){return r}},2723:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(8458),i=n(4062),o=n(7275);const s=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,s=new AbortController;const a=function(t){if(!n){n=!0,u();const e=t instanceof Error?t:this.reason;s.abort(e instanceof i.A?e:new r.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,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"DataView")},2789:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return function(e){return t(e)}}},2801:(t,e,n)=>{"use strict";n.d(e,{w:()=>l});var r=n(2068),i=n(9588),o=n(9573),s=n(4722),a=n(6034),c=n(2531);const u=["opening_hours","description","phone","website","email","appURL","icon"];class l{_api="/api/v4/venues";_request=r.K.getInstance();constructor(){}searchByIds(t){const e=(0,o.V)(t);if(!e)throw new Error("Please input venue id at least one.");const n=`${this._api}/${e}`;return this._changedRes(n)}searchByDistance(t,e,n,r=i.e$,o=i.KL){if(!t||!e||!n)throw new Error("Missing required parameter.");const s=new URLSearchParams({keywords:t,center:e.join(","),distance:String(n),offset:String(r),page:String(o)}),a=`${this._api}?${s.toString()}`;return this._changedRes(a)}searchByBbox(t,e,n=i.e$,r=i.KL){if(!t||!e)throw new Error("Missing required parameter.");const o=new URLSearchParams({keywords:t,bbox:e.join(","),offset:String(n),page:String(r)}),s=`${this._api}?${o.toString()}`;return this._changedRes(s)}searchByGlobal(t,e=i.e$,n=i.KL){if(!t)throw new Error("Missing required parameter.");const r=new URLSearchParams({keywords:t,offset:String(e),page:String(n)}),o=`${this._api}?${r.toString()}`;return this._changedRes(o)}search(t){const e=(0,s.A)(t,((t,e)=>"bounds"===e?`bbox=${t.flat().join()}`:"center"===e?`center=${t.join()}`:`${e}=${t}`));return this._changedRes(`${this._api}?${e.join("&")}`)}_changedRes(t){return new Promise(((e,n)=>{this._request.get(t).then((t=>{t.data.result.venues=(0,s.A)(t.data.result.venues,(t=>(0,a.A)(t,((t,e)=>(0,c.A)(u,e))))),e(t)})).catch(n)}))}}},2851:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(2528),i=n(6984),o=Object.prototype.hasOwnProperty;const s=function(t,e,n){var s=t[e];o.call(t,e)&&(0,i.A)(s,n)&&(void 0!==n||e in t)||(0,r.A)(t,e,n)}},2854:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.montgomery=function(t){const e=(h=t,(0,i.validateObject)(h,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...h})),{P:n,type:c,adjustScalarBytes:u,powPminus2:l}=e,d="x25519"===c;var h;if(!d&&"x448"!==c)throw new Error("invalid type");const f=d?255:448,p=d?32:56,y=d?BigInt(9):BigInt(5),g=d?BigInt(121665):BigInt(39081),m=d?a**BigInt(254):a**BigInt(447),_=d?BigInt(8)*a**BigInt(251)-s:BigInt(4)*a**BigInt(445)-s,b=m+_+s,v=t=>(0,r.mod)(t,n),w=A(y);function A(t){return(0,i.numberToBytesLE)(v(t),p)}function E(t,e){const r=function(t,e){(0,i.aInRange)("u",t,o,n),(0,i.aInRange)("scalar",e,m,b);const r=e,a=t;let c=s,u=o,d=t,h=s,p=o;for(let t=BigInt(f-1);t>=o;t--){const e=r>>t&s;p^=e,({x_2:c,x_3:d}=S(p,c,d)),({x_2:u,x_3:h}=S(p,u,h)),p=e;const n=c+u,i=v(n*n),o=c-u,l=v(o*o),f=i-l,y=d+h,m=v((d-h)*n),_=v(y*o),b=m+_,w=m-_;d=v(b*b),h=v(a*v(w*w)),c=v(i*l),u=v(f*(i+v(g*f)))}({x_2:c,x_3:d}=S(p,c,d)),({x_2:u,x_3:h}=S(p,u,h));const y=l(u);return v(c*y)}(function(t){const e=(0,i.ensureBytes)("u coordinate",t,p);return d&&(e[31]&=127),v((0,i.bytesToNumberLE)(e))}(e),function(t){return(0,i.bytesToNumberLE)(u((0,i.ensureBytes)("scalar",t,p)))}(t));if(r===o)throw new Error("invalid private or public key received");return A(r)}function B(t){return E(t,w)}function S(t,e,n){const r=v(t*(e-n));return{x_2:e=v(e-r),x_3:n=v(n+r)}}return{scalarMult:E,scalarMultBase:B,getSharedSecret:(t,e)=>E(t,e),getPublicKey:t=>B(t),utils:{randomPrivateKey:()=>e.randomBytes(p)},GuBytes:w.slice()}};const r=n(4967),i=n(1484),o=BigInt(0),s=BigInt(1),a=BigInt(2)},2872:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(514),i=n(7422);const o=function(t){return null==t?[]:(0,r.A)(t,(0,i.A)(t))}},2944:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(674);const i=function(){this.__data__=r.A?(0,r.A)(null):{},this.size=0}},3013:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var c=s[t?a:++i];if(!1===n(o[c],c,o))break}return e}}},3061:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return this.__data__.get(t)}},3098:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return null!=t&&"object"==typeof t}},3119:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=null},3149:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3153:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(){return[]}},3161:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=n(1917).A["__core-js_shared__"]},3207:(t,e,n)=>{"use strict";n.d(e,{t:()=>u});var r=n(6568),i=n(8330),o=n(9588),s=n(7007),a=n(3574),c=n(973);class u 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 u.instance||(u.instance=new u),u.instance}static setPlatform(t){u.platform=t}updateToken(t){const{appId:e,secret:n,token:r,from:i}=t;this._tokenStorage[e]=r,this._appIds.get(i)[e]=n,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 u.platform.sdkVersion}getToken(t){return this._tokenStorage[t]}async getIdentifier(){if(!u.platform.identifier){const t=await r.Ay.load(),e=await t.get();u.platform.identifier=e.visitorId}return u.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(0,c.A)(this._appIdsHistory.reverse(),(t=>e.includes(t)))}async fetchToken(t,e,n=0){try{const n={appId:t,secret:e,..."bundleId"in u.platform?{bundleId:u.platform.bundleId}:"sha1"in u.platform?{sha1:u.platform.sha1,packageName:u.platform.packageName}:{origin:window.location.hostname||"restriction.test.example.com",keyPlatform:"WEB"}},r={"Content-Type":"application/json",sdkVersion:u.platform.sdkVersion,identifier:u.platform.identifier??await this.getIdentifier()},i=await fetch(o.R0,{method:"POST",body:JSON.stringify(n),headers:r});return(await i.json()).result.idToken}catch(r){if(n<3){const r=500*Math.pow(2,n);return console.warn(`Retrying to fetch token in ${r} ms...`,++n),await new Promise((t=>setTimeout(t,r))),this.fetchToken(t,e,n)}throw r}}}},3236:(t,e,n)=>{"use strict";n.d(e,{E:()=>s,r:()=>o});var r=n(714),i=n(7980);function o(t){const{buildingId:e,labelCenter:{lat:n,lon:i},floors:o,name:s,venueId:a,defaultFloor:c}=t,u=(0,r.A)(s,((t,e)=>"default"===e?"name":`name:${e}`)),{codes:l,ids:d,ordinals:h}=o.reduce(((t,e)=>{const{id:n,code:r,ordinal:i}=e;return{codes:t.codes?`${t.codes},${r}`:r,ids:t.ids?`${t.ids},${n}`:n,ordinals:`${t.ordinals}`?`${t.ordinals},${i}`:`${i}`}}),{codes:"",ids:"",ordinals:""});return{layer:{id:"mapxus-building-line"},properties:{building:"yes",id:e,label_center:`${i},${n}`,level_ids:d,level_names:l,ordinals:h,"ref:venue":a,...u,...c?{default_displayed_floor:c}:{}},source:"indoor-planet",sourceLayer:"mapxus_building"}}function s(t){const{address:e,buildings:n,id:o,name:s,type:a}=t;return{layer:{id:"mapxus-venue-fill"},properties:{...(0,i.A)(e,((t,e,n)=>Object.assign(t,"default"===n?{"addr:street":e.street,"addr:housenumber":e.housenumber}:{[`addr:street:${n}`]:e.street})),{}),...(0,r.A)(s,((t,e)=>"default"===e?"name":`name:${e}`)),id:o,venue:a,building_ids:n.map((({id:t})=>t)).join()},source:"indoor-planet",sourceLayer:"mapxus_venue"}}},3244:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var r=n(3265),i=n(8967),o=n(402),s=n(7265),a=n(5861),c=n(2049),u=n(4616),l=n(8719),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;const y=function(t,e,n,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,B=v==w;if(B&&(0,u.A)(t)){if(!(0,u.A)(e))return!1;_=!0,A=!1}if(B&&!A)return m||(m=new r.A),_||(0,l.A)(t)?(0,i.A)(t,e,n,y,g,m):(0,o.A)(t,e,v,n,y,g,m);if(!(1&n)){var S=A&&p.call(t,"__wrapped__"),x=E&&p.call(e,"__wrapped__");if(S||x){var I=S?t.value():t,L=x?e.value():e;return m||(m=new r.A),g(I,L,n,y,m)}}return!!B&&(m||(m=new r.A),(0,s.A)(t,e,n,y,g,m))}},3265:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(7919),i=n(1532),o=n(42),s=n(3061),a=n(4105),c=n(7681);function u(t){var e=this.__data__=new r.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,n)=>{"use strict";n.d(e,{A:()=>i});const r=n(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 n,i,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),i=t.substring(o+1).trim(),!n||e[n]&&r[n]||("set-cookie"===n?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)})),e}},3390:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9888),i=n(4062);const o={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const s={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r.x+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,r,a)=>{if(!1===t)throw new i.A(o(r," has been removed"+(e?" in "+e:"")),i.A.ERR_DEPRECATED);return e&&!s[r]&&(s[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},o.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};const a={assertOptions:function(t,e,n){if("object"!=typeof t)throw new i.A("options must be an object",i.A.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],a=e[s];if(a){const e=t[s],n=void 0===e||a(e,s,t);if(!0!==n)throw new i.A("option "+s+" must be "+n,i.A.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i.A("Unknown option "+s,i.A.ERR_BAD_OPTION)}},validators:o}},3442:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(5629),i=n(1682),o=n(5056),s=n(8058),a=n(1472),c=n(1879),u=n(3549);class l{_container;_indoor;_maplibre;_position="top-right";_buildingId=null;_floorNames;_ordinals;_ordinal=null;_style;_$innerFloors;_$activeFloor;_centerSelectorIdx;_lastNormalScrollableIdx;_$arrowBtnUp;_$arrowBtnDown;_maxScrollTop;_$selectorExpanded;_$selectorFolded;_componentDidMount=!1;_isEnabled;_visible=!1;_dragPan;_debounceScroll;_clearScrollEventListener;constructor(t,e){const{style:n,enabled:r=!0}=e;this._indoor=t,this._style=n?Object.assign({},o.kC,n):o.kC,this._isEnabled=r,this._bindEvents()}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,n){const r=document.querySelector(`.maplibregl-ctrl-${t}`),i=r.querySelector(".mapxus-ctrl-floors");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);i&&(r.removeChild(i),(0,c.A)(n)?t.insertBefore(i,t.children[n]):t.append(i),this._show(),this._scrollCenterActiveFloor())}else(0,c.A)(n)&&r.children[n]!==i&&(r.removeChild(i),r.insertBefore(i,r.children[n]),this._show(),this._scrollCenterActiveFloor())}setStyle(t){this._style=Object.assign({},this._style,t),this._componentDidMount&&(this._clearFloors(),this._render(),this._scrollCenterActiveFloor(),this._componentDidMount=!0)}_setVisibility(t){this._componentDidMount?t?(this._show(),this._scrollCenterActiveFloor()):this._hide():(this._visible=t,this._indoor.building&&t&&(this._mountFloors(this._indoor.building),this._show(),this._scrollCenterActiveFloor()))}_bindEvents(){this._indoor.on(r.Ms,(({buildingId:t,ordinal:e,dragPan:n})=>{if(this._buildingId=t,this._ordinal=e,this._dragPan=n,this._visible&&this._hide(),this._componentDidMount&&this._clearFloors(),this._indoor.building){this._mountFloors(this._indoor.building);const t=this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0];this.enabled&&(!1!==this._dragPan||!1===this._dragPan&&t)&&(this._show(),this._scrollCenterActiveFloor())}else this._clearState()}))}_addMapMoveEventListener(){this._maplibre.on("moveend",(()=>{if(this.enabled&&!1===this._dragPan&&this._buildingId){const t=this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0];t?this._componentDidMount?this._visible||(this._show(),this._scrollCenterActiveFloor()):(this._mountFloors(t),this._show(),this._scrollCenterActiveFloor()):this._componentDidMount&&this._visible&&this._hide()}}))}_mountFloors(t){this._updateFloorSelector(t),this._componentDidMount=!0}_updateFloorSelector(t){const{level_names:e,ordinals:n}=t.properties;this._floorNames=e.split(",").reverse(),this._ordinals=n.split(",").reverse(),this._render()}_clearState(){this._floorNames=[],this._ordinals=[],this._ordinal=null}_render(){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,this._createFloors()}_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:n,itemCount:r,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 c=(0,i.r)("div","mapxus-ctrl-floors-wrapper",a);return c.style.backgroundColor=s,this._floorNames.length>r&&(this._$arrowBtnUp=this._$createScrollButton(c,"up"),this._$arrowBtnUp.onclick=()=>this._handleScroll("up")),this._$innerFloors=(0,i.r)("div","mapxus-ctrl-floors-inner",c),Object.assign(this._$innerFloors.style,{maxHeight:n*r+"px",width:`${n}px`}),this._$createFloors(this._$innerFloors),this._floorNames.length>r&&(this._$arrowBtnDown=this._$createScrollButton(c,"down"),this._$arrowBtnDown.onclick=()=>this._handleScroll("down"),this._$innerFloors.addEventListener("scroll",this._debounceScroll=(0,u.A)((t=>{t.stopPropagation(),this._resetArrowBtnStatus(this._$innerFloors.scrollTop)}),100)),this._clearScrollEventListener=()=>this._$innerFloors.removeEventListener("scroll",this._debounceScroll)),a}_$foldedSelector(t,e){const{itemSize:n,activeFontColor:r,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:`${n}px`,height:`${n}px`,lineHeight:`${n}px`,color:r,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:n}=this._style;let r;(0,s.A)(this._floorNames,((o,s)=>{r=(0,i.r)("div","mapxus-ctrl-floors-floor",t),r.dataset.floor=o,r.dataset.ordinal=this._ordinals[s],r.innerText=o,Object.assign(r.style,{color:e,height:`${n}px`,lineHeight:`${n}px`}),r.dataset.ordinal===this._ordinal&&(this._$activeFloor=r,this._resetActiveFloor(!0),this._$selectorFolded.innerText=o),r.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),(0,s.A)(this._$innerFloors.children,(e=>{e.dataset.ordinal===t&&(this._$activeFloor=e,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:n,activeFontColor:r,fontColor:i}=this._style;Object.assign(this._$activeFloor.style,{color:t?r:i,backgroundColor:t?e:n,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:n}=this._style;if("up"===t){const t=e-2*n;this._$innerFloors.scrollTop=t<0?0:t}else if("down"===t){const t=e+2*n;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,n)=>{"use strict";n.d(e,{A:()=>o});var r=Math.max,i=Math.min;const o=function(t,e,n){return t>=i(e,n)&&t<r(e,n)}},3503:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHex=e.remove0x=void 0;var r=n(6527);e.remove0x=function(t){return t.startsWith("0x")||t.startsWith("0X")?t.slice(2):t};e.decodeHex=function(t){return(0,r.hexToBytes)((0,e.remove0x)(t))}},3511:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(6912),i=n(5647),o=n(4792),s=n(3153);const a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,r.A)(e,(0,o.A)(t)),t=(0,i.A)(t);return e}:s.A},3549:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(3149),i=n(1052),o=n(1694),s=Math.max,a=Math.min;const c=function(t,e,n){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 n=c,r=u;return c=u=void 0,p=e,d=t.apply(r,n)}function b(t){var n=t-f;return void 0===f||n>=e||n<0||g&&t-p>=l}function v(){var t=(0,i.A)();if(b(t))return w(t);h=setTimeout(v,function(t){var n=e-(t-f);return g?a(n,l-(t-p)):n}(t))}function w(t){return h=void 0,m&&c?_(t):(c=u=void 0,d)}function A(){var t=(0,i.A)(),n=b(t);if(c=arguments,u=this,f=t,n){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,r.A)(n)&&(y=!!n.leading,l=(g="maxWait"in n)?s((0,o.A)(n.maxWait)||0,e):l,m="trailing"in n?!!n.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,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getHash=s,e.createCurve=function(t,e){const n=e=>(0,o.weierstrass)({...t,...s(e)});return{...n(e),create:n}};const r=n(9615),i=n(9175),o=n(1705);function s(t){return{hash:t,hmac:(e,...n)=>(0,r.hmac)(t,e,(0,i.concatBytes)(...n)),randomBytes:i.randomBytes}}},3574:(t,e,n)=>{"use strict";n.d(e,{$O:()=>c.$,Kp:()=>u.Kp,LJ:()=>a.L,MA:()=>r.M,SV:()=>o.S,_P:()=>u._P,en:()=>s.e,nH:()=>a.n,ys:()=>i.y});var r=n(4760),i=n(6612),o=n(9408),s=n(8884),a=n(6358),c=n(5405),u=n(8412)},3626:(t,e,n)=>{"use strict";n.d(e,{V:()=>i});var r=n(1682);class i{_container;_isEnabled;constructor(t){this._isEnabled=t?.enabled??!0}onAdd(t){if(this._container=(0,r.r)("div","maplibregl-ctrl mapxus-ctrl-logo",t.getContainer()),this._isEnabled){const t=(0,r.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,r.Z)(this._container)}getDefaultPosition(){return"bottom-left"}}},3631:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"WeakMap")},3641:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(8446);const i=function(t,e){return function(n,i){if(null==n)return n;if(!(0,r.A)(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},3724:(t,e,n)=>{"use strict";n.d(e,{H:()=>l});var r=n(9588),i=n(2068),o=n(9573),s=n(4722),a=n(6034),c=n(2531);const u=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","description"];class l{_api="/api/v4/buildings";_request=i.K.getInstance();constructor(){}searchByIds(t){const e=(0,o.V)(t);if(!e)throw new Error("Please input building id at least one.");const n=`${this._api}/${e}`;return this._changedRes(n)}searchByDistance(t,e,n,i=r.e$,o=r.KL){if(arguments.length<3)throw new Error("Parameter cannot be empty.");if(2!==e.length)throw new Error("Center lon lat cannot be less than 2.");const s=[`center=${e.join(",")}`,`distance=${n}`,`offset=${i}`,`page=${o}`];t&&s.unshift(`keywords=${t}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByBbox(t,e,n=r.e$,i=r.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");if(4!==e.length)throw new Error("Bbox parameters cannot be less than 2.");const o=[`bbox=${e.join(",")}`,`offset=${n}`,`page=${i}`];t&&o.unshift(`keywords=${t}`);const s=`${this._api}?${o.join("&")}`;return this._changedRes(s)}searchByGlobal(t,e=r.e$,n=r.KL){if(!arguments.length)throw new Error("Parameter cannot be empty.");const i=["searchGlobal=true",`offset=${e}`,`page=${n}`];t&&i.unshift(`keywords=${t}`);const o=`${this._api}?${i.join("&")}`;return this._changedRes(o)}searchByFloorId(t){if(!t)throw new Error("Parameter cannot be empty.");return this._changedRes(`${this._api}/floors/${t}`)}search(t){const e=(0,s.A)(t,((t,e)=>"bounds"===e?`bbox=${t.flat().join()}`:"center"===e?`center=${t.join()}`:`${e}=${t}`));return this._changedRes(`${this._api}?${e.join("&")}`)}_changedRes(t){return new Promise(((e,n)=>{this._request.get(t).then((t=>{t.data.result.buildings=(0,s.A)(t.data.result.buildings,(t=>(0,a.A)(t,((t,e)=>(0,c.A)(u,e))))),e(t)})).catch(n)}))}}},3736:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},3820:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(6847);const i={...n(2569),...r.A}},3828:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(9501);const i=function(t,e){var n;return(0,r.A)(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}},3831:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(6912),i=n(2049);const o=function(t,e,n){var o=e(t);return(0,i.A)(t)?o:(0,r.A)(o,n(t))}},3853:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(4062);function i(t,e,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new r.A("Request failed with status code "+n.status,[r.A.ERR_BAD_REQUEST,r.A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}},3873:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=r[s];i||(i=c),n[o]=a,r[o]=c;let l=s,d=0;for(;l!==o;)d+=n[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,n)=>{"use strict";n.d(e,{d:()=>i});var r=n(1682);class i{_container;_$icon;_removeClickEventListener;onAdd(t){return this._container=(0,r.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,r.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 n(){e=!e,e?t.classList.remove("hidden"):t.classList.add("hidden")}this._$icon.addEventListener("click",n),this._removeClickEventListener=()=>this._$icon.removeEventListener("click",n)}}},3938:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=(0,n(367).A)(Object.keys,Object)},3957:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(674);const i=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r.A&&void 0===e?"__lodash_hash_undefined__":e,this}},3967:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(7275),i=n(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,n){if(!e)return t;const s=n&&n.encode||o;r.A.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let c;if(c=a?a(e,n):r.A.isURLSearchParams(e)?e.toString():new i.A(e,n).toString(s),c){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+c}return t}},3973:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(3831),i=n(3511),o=n(1865);const s=function(t){return(0,r.A)(t,o.A,i.A)}},3988:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=n(1917).A.Uint8Array},4057:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=(0,n(3013).A)()},4062:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(7275);function i(t,e,n,r,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),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}r.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:r.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,n,s,a,c)=>{const u=Object.create(o);return r.A.toFlatObject(t,u,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),i.call(u,t.message,e,n,s,a),u.cause=t,u.name=t.name,c&&Object.assign(u,c),u};const a=i},4092:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(2634),i=n(1790),o=n(2141),s=n(2049);const a=function(t,e){return((0,s.A)(t)?r.A:i.A)(t,(0,o.A)(e,3))}},4099:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){return t.has(e)}},4105:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return this.__data__.has(t)}},4116:(t,e,n)=>{"use strict";n.d(e,{p:()=>a});var r=n(853),i=n(5664),o=n(4722),s=n(1879);class a{_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,r.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=(0,o.A)(t,(t=>this._createIconFeature(t)));this._addIconSource(e),this._addIconLayer()}}updateData(t){const e=this._maplibreMap.getSource(this._sourceId);if(!e)return;const n=!(!t.remove||!t.remove.length),r=!(!t.add||!t.add.length),i=!(!t.update||!t.update.length);if(n||r||i){const s={};n&&(s.remove=t.remove.map((t=>String(t)))),r&&(s.add=t.add.map((t=>this._createIconFeature(t)))),i&&(s.update=t.update.map((t=>{const e="properties"in t,n=this._createIconFeature(t),{id:r,geometry:i,properties:s}=n;return{id:r,newGeometry:i,removeAllProperties:e,...s?{addOrUpdateProperties:(0,o.A)(s,((t,e)=>({key:e,value:t})))}:{}}}))),e.updateData(s)}}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 n=t=>this._handleEventListener(t,e);return this._maplibreMap.on(t,this._layerId,n),{off:()=>this._maplibreMap.off(t,this._layerId,n)}}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,n){if(this._maplibreMap.getLayer(this._layerId)){const r=["case",["all",["==",["get","venueId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]],1,n??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",r)}}setOpacityByBuilding(t,e,n){if(this._maplibreMap.getLayer(this._layerId)){const r=["case",["all",["==",["get","buildingId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]],1,n??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",r)}}_createIconFeature(t){const{lngLat:e,properties:n}=t;return{id:"featureId"in t&&(0,s.A)(t.featureId)?String(t.featureId):void 0,type:"Feature",geometry:{type:"Point",coordinates:e},properties:n||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:n}=t;e(this._maplibreMap.queryRenderedFeatures(n,{layers:[this._layerId]})[0])}}},4139:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hkdf=void 0,e.extract=o,e.expand=c;const r=n(9615),i=n(9175);function o(t,e,n){return(0,i.ahash)(t),void 0===n&&(n=new Uint8Array(t.outputLen)),(0,r.hmac)(t,(0,i.toBytes)(n),(0,i.toBytes)(e))}const s=Uint8Array.from([0]),a=Uint8Array.of();function c(t,e,n,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===n&&(n=a);const l=new Uint8Array(u*c),d=r.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(n).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,n,r,i)=>c(t,o(t,e,n),r,i)},4171:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(702);const i=function(){try{var t=(0,r.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},4545:(t,e,n)=>{"use strict";n.d(e,{FR:()=>o.F,H$:()=>i.H,v$:()=>s.v,w1:()=>r.w});var r=n(2801),i=n(3724),o=n(5568),s=n(5344)},4616:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(1917),i=n(4639),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?r.A.Buffer:void 0;const c=(a?a.isBuffer:void 0)||i.A},4639:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(){return!1}},4662:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(7275),i=n(7110);const o=t=>t instanceof i.A?{...t}:t;function s(t,e){e=e||{};const n={};function i(t,e,n,i){return r.A.isPlainObject(t)&&r.A.isPlainObject(e)?r.A.merge.call({caseless:i},t,e):r.A.isPlainObject(e)?r.A.merge({},e):r.A.isArray(e)?e.slice():e}function s(t,e,n,o){return r.A.isUndefined(e)?r.A.isUndefined(t)?void 0:i(void 0,t,0,o):i(t,e,0,o)}function a(t,e){if(!r.A.isUndefined(e))return i(void 0,e)}function c(t,e){return r.A.isUndefined(e)?r.A.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function u(n,r,o){return o in e?i(n,r):o in t?i(void 0,n):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,n)=>s(o(t),o(e),0,!0)};return r.A.forEach(Object.keys(Object.assign({},t,e)),(function(i){const o=l[i]||s,a=o(t[i],e[i],i);r.A.isUndefined(a)&&o!==u||(n[i]=a)})),n}},4722:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(5572),i=n(2141),o=n(2568),s=n(2049);const a=function(t,e){return((0,s.A)(t)?r.A:o.A)(t,(0,i.A)(e,3))}},4760:(t,e,n)=>{"use strict";var r;n.d(e,{M:()=>r}),function(t){t[t.SWITCHED_BY_BUILDING=0]="SWITCHED_BY_BUILDING",t[t.SWITCHED_BY_VENUE=1]="SWITCHED_BY_VENUE"}(r||(r={}))},4762:(t,e,n)=>{"use strict";n.d(e,{G:()=>s});var r=n(1682),i=n(973),o=n(1879);class s{_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,r.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,r.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,n){const r=document.querySelector(`.maplibregl-ctrl-${t}`),i=r.querySelector(".maplibregl-ctrl-building-filter");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);i&&(r.removeChild(i),(0,o.A)(n)?t.insertBefore(i,t.children[n]):t.append(i),this._updateBuildingListLayout(e))}else(0,o.A)(n)&&r.children[n]!==i&&(r.removeChild(i),r.insertBefore(i,r.children[n]))}_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,r.r)(t,"mapxus-building-filter-icon");return this._bindMouseOnEvents(e,!1),this._bindMobileTouchEvents(e),e}_buildingNameListCreate(t){return this._$listContainer=(0,r.r)(t,"mapxus-building-name-layout"),this._$listContainer.style.display="none",this._$listContainer.style.top="20px",this._$buildingList=(0,r.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:n,name:r}=e,o=e?.[`name:${this._language}`]??r;(0,i.A)(this._features,(t=>t.properties.id===n))||(this._features.push(t),this._$buildingList.appendChild(this._buildingNameCreate("p",o,n,n===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,n,i){const o=(0,r.r)(t,"mapxus-building-name"+(i?" active":""));return o.dataset.id=n,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,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(169);const i=function(t){var e=this.__data__,n=(0,r.A)(e,t);return n<0?void 0:e[n][1]}},4792:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(2634),i=n(3153),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(t){return null==t?[]:(t=Object(t),(0,r.A)(s(t),(function(e){return o.call(t,e)})))}:i.A},4841:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(2136),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i&&r.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,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(9672),i=n(3098);const o=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,r.A)(t)}},4874:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(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 n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,i,o){n.reason||(n.reason=new r.A(t,i,o),e(n.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,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},4912:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(5707),i=n(6983),o=n(6031);const s=function(t,e,n){return e==e?(0,o.A)(t,e,n):(0,r.A)(t,i.A,n)}},4928:(t,e,n)=>{"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 r=n(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?r.COMPRESSED_PUBLIC_KEY_SIZE:r.UNCOMPRESSED_PUBLIC_KEY_SIZE,x25519:r.CURVE25519_PUBLIC_KEY_SIZE,ed25519:r.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,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(759),i=n(7960),o=n(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(n){return n===t||(0,r.A)(n,t,e)}}},4967:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNegativeLE=void 0,e.mod=h,e.pow=function(t,e,n){return b(E(n),t,e)},e.pow2=function(t,e,n){let r=t;for(;e-- >o;)r*=r,r%=n;return r},e.invert=f,e.tonelliShanks=g,e.FpSqrt=m,e.validateField=function(t){const e=_.reduce(((t,e)=>(t[e]="function",t)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,i.validateObject)(t,e)},e.FpPow=b,e.FpInvertBatch=v,e.FpDiv=function(t,e,n){return t.mul(e,"bigint"==typeof n?f(n,t.ORDER):t.inv(n))},e.FpLegendre=w,e.FpIsSquare=function(t,e){return 1===w(t,e)},e.nLength=A,e.Field=E,e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?n:t.neg(n)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?t.neg(n):n},e.hashToPrivateScalar=function(t,e,n=!1){const r=(t=(0,i.ensureBytes)("privateHash",t)).length,o=A(e).nByteLength+8;if(o<24||r<o||r>1024)throw new Error("hashToPrivateScalar: expected "+o+"-1024 bytes of input, got "+r);return h(n?(0,i.bytesToNumberLE)(t):(0,i.bytesToNumberBE)(t),e-s)+s},e.getFieldBytesLength=B,e.getMinHashLength=S,e.mapHashToField=function(t,e,n=!1){const r=t.length,o=B(e),a=S(e);if(r<16||r<a||r>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+r);const c=h(n?(0,i.bytesToNumberLE)(t):(0,i.bytesToNumberBE)(t),e-s)+s;return n?(0,i.numberToBytesLE)(c,o):(0,i.numberToBytesBE)(c,o)};const r=n(9175),i=n(1484),o=BigInt(0),s=BigInt(1),a=BigInt(2),c=BigInt(3),u=BigInt(4),l=BigInt(5),d=BigInt(8);function h(t,e){const n=t%e;return n>=o?n:e+n}function f(t,e){if(t===o)throw new Error("invert: expected non-zero number");if(e<=o)throw new Error("invert: expected positive modulus, got "+e);let n=h(t,e),r=e,i=o,a=s,c=s,u=o;for(;n!==o;){const t=r/n,e=r%n,o=i-c*t,s=a-u*t;r=n,n=e,i=c,a=u,c=o,u=s}if(r!==s)throw new Error("invert: does not exist");return h(i,e)}function p(t,e){const n=(t.ORDER+s)/u,r=t.pow(e,n);if(!t.eql(t.sqr(r),e))throw new Error("Cannot find square root");return r}function y(t,e){const n=(t.ORDER-l)/d,r=t.mul(e,a),i=t.pow(r,n),o=t.mul(e,i),s=t.mul(t.mul(o,a),i),c=t.mul(o,t.sub(s,t.ONE));if(!t.eql(t.sqr(c),e))throw new Error("Cannot find square root");return c}function g(t){if(t<BigInt(3))throw new Error("sqrt is not defined for small field");let e=t-s,n=0;for(;e%a===o;)e/=a,n++;let r=a;const i=E(t);for(;1===w(i,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return p;let c=i.pow(r,e);const u=(e+s)/a;return function(t,r){if(t.is0(r))return r;if(1!==w(t,r))throw new Error("Cannot find square root");let i=n,o=t.mul(t.ONE,c),a=t.pow(r,e),l=t.pow(r,u);for(;!t.eql(a,t.ONE);){if(t.is0(a))return t.ZERO;let e=1,n=t.sqr(a);for(;!t.eql(n,t.ONE);)if(e++,n=t.sqr(n),e===i)throw new Error("Cannot find square root");const r=s<<BigInt(i-e-1),c=t.pow(o,r);i=e,o=t.sqr(c),a=t.mul(a,o),l=t.mul(l,c)}return l}}function m(t){return t%u===c?p:t%d===l?y:g(t)}e.isNegativeLE=(t,e)=>(h(t,e)&s)===s;const _=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(t,e,n){if(n<o)throw new Error("invalid exponent, negatives unsupported");if(n===o)return t.ONE;if(n===s)return e;let r=t.ONE,i=e;for(;n>o;)n&s&&(r=t.mul(r,i)),i=t.sqr(i),n>>=s;return r}function v(t,e,n=!1){const r=new Array(e.length).fill(n?t.ZERO:void 0),i=e.reduce(((e,n,i)=>t.is0(n)?e:(r[i]=e,t.mul(e,n))),t.ONE),o=t.inv(i);return e.reduceRight(((e,n,i)=>t.is0(n)?e:(r[i]=t.mul(e,r[i]),t.mul(e,n))),o),r}function w(t,e){const n=(t.ORDER-s)/a,r=t.pow(e,n),i=t.eql(r,t.ONE),o=t.eql(r,t.ZERO),c=t.eql(r,t.neg(t.ONE));if(!i&&!o&&!c)throw new Error("invalid Legendre symbol result");return i?1:o?0:-1}function A(t,e){void 0!==e&&(0,r.anumber)(e);const n=void 0!==e?e:t.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function E(t,e,n=!1,r={}){if(t<=o)throw new Error("invalid field: expected ORDER > 0, got "+t);const{nBitLength:a,nByteLength:c}=A(t,e);if(c>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let u;const l=Object.freeze({ORDER:t,isLE:n,BITS:a,BYTES:c,MASK:(0,i.bitMask)(a),ZERO:o,ONE:s,create:e=>h(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("invalid field element: expected bigint, got "+typeof e);return o<=e&&e<t},is0:t=>t===o,isOdd:t=>(t&s)===s,neg:e=>h(-e,t),eql:(t,e)=>t===e,sqr:e=>h(e*e,t),add:(e,n)=>h(e+n,t),sub:(e,n)=>h(e-n,t),mul:(e,n)=>h(e*n,t),pow:(t,e)=>b(l,t,e),div:(e,n)=>h(e*f(n,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>f(e,t),sqrt:r.sqrt||(e=>(u||(u=m(t)),u(l,e))),toBytes:t=>n?(0,i.numberToBytesLE)(t,c):(0,i.numberToBytesBE)(t,c),fromBytes:t=>{if(t.length!==c)throw new Error("Field.fromBytes: expected "+c+" bytes, got "+t.length);return n?(0,i.bytesToNumberLE)(t):(0,i.bytesToNumberBE)(t)},invertBatch:t=>v(l,t),cmov:(t,e,n)=>n?e:t});return Object.freeze(l)}function B(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=B(t);return e+Math.ceil(e/2)}},4969:(t,e,n)=>{"use strict";n.d(e,{y:()=>i});var r=n(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=r.ys.ARABIC):e=r.ys.VIETNAMESE:e=r.ys.THAI:e=r.ys.PORTUGUESE:e=r.ys.INDONESIAN:e=r.ys.FILIPINO:e=r.ys.KOREAN:e=r.ys.JAPANESE:e=r.ys.CHINESE_TRADITIONAL_TW:e=r.ys.CHINESE_TRADITIONAL:e=r.ys.CHINESE_SIMPLIFIED:e=r.ys.ENGLISH,e}},5054:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(7465),i=n(1788),o=n(2049),s=n(5353),a=n(5254),c=n(901);const u=function(t,e,n){for(var u=-1,l=(e=(0,r.A)(e,t)).length,d=!1;++u<l;){var h=(0,c.A)(e[u]);if(!(d=null!=t&&n(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,n)=>{"use strict";n.d(e,{eG:()=>a,ef:()=>o,kC:()=>s});var r=n(4969),i=n(3574);const o={lineWidth:3,lineColor:"#A5E3FF",lineOpacity:1},s={fontColor:"#8c8c8c",activeFontColor:"#fff",backgroundColor:"#fff",activeBackgroundColor:"#074769",itemSize:50,itemCount:4,defaultFolded:!1},a=(0,r.y)(window.navigator.language)??i.ys.ENGLISH},5088:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(5373),i=n(7919),o=n(8335);const s=function(){this.size=0,this.__data__={hash:new r.A,map:new(o.A||i.A),string:new r.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},5154:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},5188:(t,e,n)=>{"use strict";n.d(e,{p:()=>h});var r=n(8291),i=n(1089),o=n(5664),s=n(973),a=n(1625),c=n(3549),u=n(4092),l=n(4722);const d="Poi_poiClick";class h{_map;_layerIds=[];_dispatch=(0,i.A)(d);_debounceQueryFeatures;constructor(t){this._map=t,this._bindEvents()}destroy(){this._dispatch.on(`.${d}`,null),this._debounceQueryFeatures?.cancel()}onPoiClick(t){const e=(0,o.A)(`${d}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}_bindEvents(){this._map.on("styledata",this._debounceQueryFeatures=(0,c.A)((()=>this._queryPoiLayers()),300)),this._initPoiClick()}_queryPoiLayers(){this._layerIds=(0,l.A)((0,u.A)((0,r.cq)(this._map.getStyle()),(t=>"mapxus_place"===t["source-layer"])),(({id:t})=>t))}_initPoiClick(){this._map.on("click",(t=>{const e=this._map.queryRenderedFeatures(t.point,{layers:[...this._layerIds,"mapxus-building-line","mapxus-venue-fill"]});if(e.length){const n=(0,s.A)(e,(t=>t.layer.id.indexOf("mapxus-poi")>-1));if(n?.properties){const{"ref:level":r=null,"ref:building":i}=n.properties,o=(0,s.A)(e,(t=>t.properties.id===i))??null,a=(0,s.A)(e,(t=>t.properties.id===o?.properties?.["ref:venue"]))??null,{floorName:c,ordinal:u}=this._getFloorDataByFloorId(r,o);this._dispatch.call(d,null,{coordinate:t.lngLat,poi:n,building:o,venue:a,floor:{code:c,id:r,ordinal:u}})}}}))}_getFloorDataByFloorId(t,e){let n=null,r=null;if(t&&e?.properties){const{level_ids:i,level_names:o,ordinals:s}=e.properties,c=i?.split(",")||[],u=(0,a.A)(c,(e=>e===t));u>-1&&(n=(o?.split(",")||[])[u]??null,r=(s?.split(",")||[])[u]??null)}return{floorName:n,ordinal:r}}}},5254:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5267:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(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,r.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,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrivateKey=void 0;var r=n(6527),i=n(2158),o=n(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,n){return new t((0,i.decodeHex)(e),n)},Object.defineProperty(t.prototype,"secret",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),t.prototype.toHex=function(){return(0,r.bytesToHex)(this.data)},t.prototype.encapsulate=function(t,e){void 0===e&&(e=!1);var n=this.publicKey.toBytes(e),r=this.multiply(t,e);return(0,i.getSharedKey)(n,r)},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,r.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,n)=>{"use strict";n.d(e,{v:()=>o});var r=n(2068),i=n(3574);class o{_api="/api/v3/route/query";_request=r.K.getInstance();constructor(){}search(t){const{points:e,vehicle:n=i.$O.FOOT,locale:r="en"}=t;if(!(e&&e.length>1&&e.length<6))throw new Error("Parameter error. It must be 1 < {points.length} < 6");const o={points:e,vehicle:n,locale:r};try{return this._request.post(this._api,JSON.stringify(o))}catch(t){throw new Error(t)}}}},5353:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;const i=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},5373:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(2944),i=n(9190),o=n(8417),s=n(8813),a=n(3957);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r.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,n)=>{"use strict";var r;n.d(e,{$:()=>r}),function(t){t.FOOT="foot",t.WHEELCHAIR="wheelchair",t.ESCALATOR="escalator",t.EMERGENCY="emergency"}(r||(r={}))},5461:(t,e,n)=>{"use strict";n.d(e,{U:()=>a,l:()=>s});var r=n(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 n=await fetch(`${r.kk}?timestamp=${t}`,{method:"GET",headers:{"Content-Type":"text/plain"}}),{headers:s}=n,a=parseInt(s.get("x-retry-in"));o=setTimeout((async()=>{await c(t)}),1e3*a),e=await n.text(),sessionStorage.setItem(i,e)}catch(t){throw t}var e}},5462:(t,e,n)=>{"use strict";n.d(e,{T:()=>H});var r=n(5629),i=n(5188),o=n(9983),s=n(2068),a=n(3626),c=n(520),u=n(3913),l=n(1089),d=n(3236),h=n(5056),f=n(181),p=n(5706),y=n(7311),g=n(1682),m=n(3574),_=n(6996),b=n.n(_),v=n(2075),w=n(9313),A=n(6294),E=n(9205),B=n(2468),S=n(9644),x=n(4092),I=n(3549),L=n(5664),O=n(973),k=n(1879),C=n(5582);const T="Map_mapClick",R="Map_pointClick",P="Map_isRenderComplete",M="Map_isDestroyed",F=y.o.getInstance();class H{_map;_indoor;_poi;_floorsControl;_buildingFilterControl;_attributionControl;_language;_dispatch=(0,l.A)(T,R,P,M);_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(!N(t)&&!j(t))throw new Error("Access params are required.");N(t)?F.setAccessByAppKey({appId:t.appId,secret:t.secret,platform:t.platform}).then((async()=>{await F.setupTokenManager(),this._setup(t)})):j(t)&&(F.setTokenGetter(t.getTokenAsync),F.setupTokenManager().then((()=>{this._setup(t)})))}renderComplete(t){const e=(0,L.A)(`${P}.`);this._dispatch.on(e,t)}destroyed(t){const e=(0,L.A)(`${M}.`);this._dispatch.on(e,(()=>{t(),this._dispatch.on(e,null),0===this._dispatch._[M].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),t===m.ys.ARABIC&&b().setRTLTextPlugin("https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.3.0/dist/mapbox-gl-rtl-text.js",!0);const e=this._map?.getStyle(),n=(e?.layers||[]).filter((({type:t})=>"symbol"===t));for(const{id:e}of n){const n=this._map.getLayer(e),r="string"==typeof this._map.getLayoutProperty(e,"text-field");n&&!r&&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 n=this._map.project(t),r=this._map.queryRenderedFeatures(n,{layers:["mapxus-venue-fill","mapxus-building-line","mapxus-level-fill","mapxus-level-fill-overlap-copy"]});if(0===r.length)return{venue:null,building:null,level:null};const i=r.filter((t=>t.layer.id.includes("mapxus-level-fill"))),o=(0,O.A)(i,(t=>(0,k.A)(e)?t.properties.ordinal===e+"":t.layer.id.startsWith("mapxus-level-fill")));if(!o)return{venue:null,building:null,level:null};const s=(0,O.A)(r,(t=>t.properties.id===o.properties["ref:building"]));return{venue:(0,O.A)(r,(t=>t.properties.id===s.properties["ref:venue"])),building:s,level:o}}getFeaturesById(t,e){return this.getIndoor()?.getFeaturesById(t,e)||[]}async selectFloorById(t,e){const{dragPan:n=!0}=e||{};if(this._indoor.setDragPan(n),t===this.floor?.id){if(!n)return;this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let e,r,i;try{if(this._fitBuildingBounds){e=await(0,w.F2)(t),r=(0,d.r)(e),i=!0;const{maxLat:n,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,n]])}else r=(0,O.A)(this._indoor?.features||[],(e=>e.properties?.level_ids?.includes(t)&&"mapxus-building-line"===e.layer.id))??null,r?i=!1:(e=await(0,w.F2)(t),r=(0,d.r)(e),i=!0)}catch(t){this._handleSearchError(t)}if(r&&r?.properties?.id===this.building?.properties?.id){const{level_ids:e,ordinals:i}=r.properties,o=e.split(",").indexOf(t),s=i.split(",")[o]??null;await this._floorsControl.switchByOrdinal(s,n)}else await(this._indoor?.selectBuilding(r,{floorId:t,featureIncomplete:i}))}}async selectBuildingById(t,e){const{dragPan:n=!0}=e||{};if(this._indoor.setDragPan(n),t===this.building?.properties?.id){if(!n)return;this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let e,n,r=!1;try{if(this._fitBuildingBounds){e=await(0,w.pT)(t),n=(0,d.r)(e),r=!0;const{maxLat:i,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,i]])}else n=this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(t,{layerIds:["mapxus-building-line"]})[0]||null,n||(e=await(0,w.pT)(t),n=(0,d.r)(e),r=!0);await(this._indoor?.selectBuilding(n,{featureIncomplete:r}))}catch(t){this._handleSearchError(t)}}}async selectVenueById(t,e){const{dragPan:n=!0}=e||{};if(this._indoor.setDragPan(n),"string"==typeof t&&""===t.trim()||null===t)await(this._indoor?.selectBuilding(null));else if(t===this.venue?.properties?.id){if(!n)return;this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let e=this._history.getHistoryBuilding(t);if(!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 n=await(0,w.qT)(t);e=n.defaultBuilding||n.buildings[0]?.id}catch(t){this._handleSearchError(t)}}e&&await this.selectBuildingById(e,{dragPan:n})}}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)(`${R}.`);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?.setSelectedBuildingBorderStyle(t),this}async _setup(t){const{map:e,poiId:n,floorId:s,buildingId:l,venueId:d,theme:f=m.SV.MAPXUS_DEFAULT,floorSelectorEnabled:p,buildingSelectorEnabled:y,outdoorMapShown:g,collapseCopyright:_=!1,floorSwitchMode:b,maskNonSelectedAreas:v,fitBuildingBounds:w=!1,boundsPadding:x=30,selectedBuildingBorderStyle:L,floorSelectorStyle:O,language:k=h.eG,autoSelectBuilding:C=!1,transformRequest:T=null,mapxusLogoEnabled:R=!0}=t;this._map=e,this._language=k,this._indoor=new r.SN({map:this._map,startWithIndoorView:Boolean(d||l||s||n),outdoorMapShown:g,floorSwitchMode:b,fitBuildingBounds:w,boundsPadding:x,maskNonSelectedAreas:v,selectedBuildingBorderStyle:L}),this._poi=new i.p(this._map),this._fitBuildingBounds=w,this._transformRequestHandler=T,this._setMaskEnabled(!0),await this._resourceRequestTransform(),this._setStyle(this._getStyleUrl(f)),this._checkMapZoom(),_?this._attributionControl=new u.d:(this._attributionControl=new c.z({theme:f}),this._addControl(new a.V({enabled:R}))),this._addControl(this._attributionControl),this._addControl(this._buildingFilterControl=new o.G(this,y)),this._addControl(this._floorsControl=new o.Z(this._indoor,{style:O,enabled:p})),n?this._selectPoiById(n):s?this.selectFloorById(s):l?this.selectBuildingById(l):d&&this.selectVenueById(d),this.switchOutdoor=new A.B(this._indoor),this.switchBuilding=new E.N(this._indoor),this.buildingSelector=new B.E(this._buildingFilterControl),this.floorSelector=new S.C(this._floorsControl),this._map.on("remove",(()=>this._destroy())),this._map.on("error",this._debounceHTTPErrorHandler=(0,I.A)((t=>this._updatePermission(t)),350)),this._indoor.once(r.mp,(()=>this.setLanguage(this._language))),this._indoor.once(r.Hv,(()=>{this._fitBuildingBounds?this._map.once("moveend",(()=>this._setMaskEnabled(!1))):this._setMaskEnabled(!1),C&&this._map.on("moveend",(()=>this._selectCenterBuilding())),this._bindMapClickListener(),this._bindTokenChangedListener(),this._dispatch.call(P)}))}_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),{floorId:n,location:{lon:r,lat:i}}=e;await this.selectFloorById(n),this._map.panTo([r,i])}catch(t){this._handleSearchError(t)}}async _resourceRequestTransform(){const t=await this._request.getRequestHeaders();this._map.setTransformRequest(((e,n)=>{const{host:r}=new URL(e);return r.includes("map-api")&&r.includes("mapxus")?{url:e,headers:t}:this._transformRequestHandler?this._transformRequestHandler(e,n):{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._getCenterBuildingsMap();if(!t.size)return;let e=t.entries().next().value[0];const n=this._history.getHistoryBuildings();if(n.size){const r=Array.from(n).reverse();for(const n of r)if(t.get(n)){e=n;break}}this.selectBuildingById(e,{dragPan:!1})}_getCenterBuildingsMap(){const t=this._map.getCanvas().getBoundingClientRect(),e=t.width/4,n=t.height/4,r=[e,n],i=[t.width-e,t.height-n];let o=this._map.queryRenderedFeatures([r,i],{layers:["mapxus-building-line"]});return o=(0,C.A)(o,"properties.id"),o=(0,x.A)(o,(t=>!this._hiddenBuildings.has(t.properties.id))),new globalThis.Map(o.map((t=>[`${t.properties.id}`,t])))}_bindMapClickListener(){this._map.on("click",(async t=>{const{point:e,lngLat:n}=t;await this._indoor.selectBuildingByClickMap(e),this._dispatch.call(R,null,{point:e,coordinate:n}),this._dispatch.call(T,null,{coordinate:n,venue:this.venue,building:this.building,floor:this.floor})}))}_bindTokenChangedListener(){const{off:t}=F.on(y.O,(async()=>{await this._resourceRequestTransform()}));this._cancelTokenChangedListener=t}_handleSearchError(t){const e=t?.response?.status||"unknown",n=t?.response?.data?.message||"unknown";F.getGlobalDispatcher().call("initError",null,{status:e,message:n})}_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)}_destroy(){if(this.isDestroyed)return;this.isDestroyed=!0,this._debounceHTTPErrorHandler?.cancel();const t=this._dispatch._;for(const e in t)e!==M&&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(),F.clearState(),this._dispatch.call(M)}}function j(t){return"getTokenAsync"in t&&"function"==typeof t.getTokenAsync}function N(t){return"appId"in t&&""!==t.appId.trim()&&"secret"in t&&""!==t.secret.trim()}},5488:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(7880),i=/^\s+/;const o=function(t){return t?t.slice(0,(0,r.A)(t)+1).replace(i,""):t}},5530:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(4912);const i=function(t,e){return!!(null==t?0:t.length)&&(0,r.A)(t,e,0)>-1}},5537:(t,e,n)=>{"use strict";n.d(e,{s:()=>o});class r 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 n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return atob(e)}}function o(t,e){if("string"!=typeof t)throw new r("Invalid token specified: must be a string");e||(e={});const n=!0===e.header?0:1,o=t.split(".")[n];if("string"!=typeof o)throw new r(`Invalid token specified: missing part #${n+1}`);let s;try{s=i(o)}catch(t){throw new r(`Invalid token specified: invalid base64 for part #${n+1} (${t.message})`)}try{return JSON.parse(s)}catch(t){throw new r(`Invalid token specified: invalid json for part #${n+1} (${t.message})`)}}r.prototype.name="InvalidTokenError"},5547:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(9914);const i=function(t,e){var n=t.__data__;return(0,r.A)(e)?n["string"==typeof e?"string":"hash"]:n.map}},5568:(t,e,n)=>{"use strict";n.d(e,{F:()=>f});var r=n(9588),i=n(2068),o=n(9573),s=n(8346),a=n(3574),c=n(4722),u=n(6034),l=n(2049),d=n(2531);const h=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","icon"];class f{_api="/api/v3/pois";_apiV4="/api/v4/pois";_categoriesApi="/api/v2/categories/pois";_categoriesGroupApi="/api/v5/categories/group";_request=i.K.getInstance();constructor(){}searchByIds(t){const e=(0,o.V)(t);if(!e)throw new Error("Please input poi id at least one.");const n=`${this._apiV4}/${e}`;return this._changedRes(n,(t=>t.descriptions?.default?{description:t.descriptions.default}:null))}searchByDistance(t){const{center:e,distance:n,keywords:i="",offset:o=r.e$,page:s=r.KL}=t;if(!e||!n)throw new Error("Parameter missing.");const a=[`keywords=${i}`,`center=${e.join(",")}`,`distance=${Math.round(n)}`,`offset=${o}`,`page=${s}`],c=`${this._api}?${a.join("&")}`;return this._changedRes(c)}searchByBounds(t){const{bounds:e,offset:n=r.e$,page:i=r.KL,keywords:o,orderBy:s}=t,a=[`bbox=${e.flat().join()}`,`offset=${n}`,`page=${i}`];p(o)&&a.push(`keywords=${o.trim()}`),s&&a.push(`orderBy=${s}`);const c=`${this._api}?${a.join("&")}`;return this._changedRes(c)}searchByBuilding(t){const{buildingId:e,offset:n=r.e$,page:i=r.KL,keywords:o,orderBy:s}=t,a=[`buildingId=${e}`,`offset=${n}`,`page=${i}`];p(o)&&a.push(`keywords=${o.trim()}`),s&&a.push(`orderBy=${s}`);const c=`${this._api}?${a.join("&")}`;return this._changedRes(c)}searchByVenue(t){const{venueId:e,offset:n=r.e$,page:i=r.KL,keywords:o,orderBy:s}=t,a=[`venueId=${e}`,`offset=${n}`,`page=${i}`];p(o)&&a.push(`keywords=${o.trim()}`),s&&a.push(`orderBy=${s}`);const c=`${this._api}?${a.join("&")}`;return this._changedRes(c)}searchByFloor(t){const{floorId:e,offset:n=r.e$,page:i=r.KL,keywords:o,orderBy:s}=t,a=[`floorId=${e}`,`offset=${n}`,`page=${i}`];o&&a.push(`keywords=${o}`),s&&a.push(`orderBy=${s}`);const c=`${this._api}?${a.join("&")}`;return this._changedRes(c)}searchCategories(t){let e,n;"bounds"in t?(e=`bbox=${t.bounds.flat().join()}`,(0,s.t)(t.keywords)&&(e+=`&keywords=${t.keywords.trim()}`),n=`${this._categoriesGroupApi}?${e}`):("floorId"in t?e=`floorId=${t.floorId}`:"buildingId"in t?e=`buildingId=${t.buildingId}`:"venueId"in t&&(e=`venueId=${t.venueId}`),n=`${this._categoriesApi}?${e}`);try{return this._request.get(n)}catch(t){throw t}}searchByOrientation(t){const{center:e,angle:n,distance:r,distanceSearchType:i=a._P.POINT}=t,o=[`center=${e.join()}`,`angle=${Math.round(n)}`,`distance=${r}`,`distanceSearchType=${i}`];"ordinal"in t?o.push(`ordinal=${t.ordinal}`):"floorId"in t?o.push(`floorId=${t.floorId}`):"buildingId"in t&&o.push(`buildingId=${t.buildingId}`);const s=`${this._api}/orientation?${o.join("&")}`;return this._request.get(s)}searchByCategory(t){const{center:e,distance:n,page:i=r.KL,offset:o=r.e$}=t,s=[`center=${e.join(",")}`,`distance=${n}`,`offset=${o}`,`page=${i}`];let a="";if("category"in t)a=`${this._api}?category=${t.category}&${s.join("&")}`;else if("excludedCategories"in t){const{excludedCategories:e}=t;a=(0,l.A)(e)?`${this._api}?excludeCategories=${e.join(",")}&${s.join("&")}`:`${this._api}?excludeCategories=${e}&${s.join("&")}`}if(a.length)return this._changedRes(a);throw new Error("Parameter missing.")}search(t){const e=(0,c.A)(t,((t,e)=>"bounds"===e?`bbox=${t.flat().join()}`:"center"===e?`center=${t.join()}`:"excludedCategories"===e?`excludeCategories=${(0,l.A)(t)?t.join(","):t}`:`${e}=${t}`));return this._request.get(`${this._api}?${e.join("&")}`)}_changedRes(t,e){return new Promise(((n,r)=>{this._request.get(t).then((t=>{t.data.result.pois=(0,c.A)(t.data.result.pois,(t=>{let n=(0,u.A)(t,((t,e)=>(0,d.A)(h,e)));return e&&e(n)&&(n=Object.assign({},n,e(n))),n})),n(t)})).catch(r)}))}}function p(t){return"string"==typeof t&&Boolean(t.trim())}},5572:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},5579:(t,e,n)=>{"use strict";function r(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}n.d(e,{A:()=>r})},5582:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(2141),i=n(5781);const o=function(t,e){return t&&t.length?(0,i.A)(t,(0,r.A)(e,2)):[]}},5606:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=Object.prototype.toString;const i=function(t){return r.call(t)}},5629:(t,e,n)=>{"use strict";n.d(e,{Hv:()=>B,Ms:()=>E,SN:()=>O,mp:()=>S});var r=n(7007),i=n(3574),o=n(8291),s=n(3236),a=n(4545),c=n(5056),u=n(9313),l=n(1965),d=n(1089),h=n(181),f=n(5706),p=n(973),y=n(1625),g=n(8389),m=n(3549),_=n(5582),b=n(4092),v=n(5664),w=n(746);const A="Indoor_selectedFloorChanged",E="Indoor_selectedBuildingChanged",B="Indoor_mapxusMapLoaded",S="Indoor_maplibreMapLoaded",x="mapxus-building-line",I="assistant-mapxus-level-outline",L=new a.w1;class O extends r.EventEmitter{_map;_features;_allBuildingsMap;_curBuildingId=null;_curBuildingFeature=null;_ordinal=null;_floorId=null;_floorName=null;_allowOutdoorSwitch;_allowBuildingSwitch;_outdoorMapShown;_originIndoorLayers;_curVenueId=null;_curVenueFeature=null;_buildingHighlightStyle;_lowerLayers;_upperLayers;_commonLayers;_dispatch=(0,d.A)(A);_fitBuildingBounds;_boundsPadding;_startWithIndoorView;_indoorMapLoaded=!1;_isVenueMode;_isMaskMode;_upperLevels=new Set;_lowerLevels=new Set;_featureIncomplete=!1;_dragPan;_isNewBuilding=!1;_buildingBounds;_history=h.d.getInstance();_layerBuildings=f.Q.getInstance();_upperBuildings=this._layerBuildings.getUpperBuildings();_lowerBuildings=this._layerBuildings.getLowerBuildings();_hiddenBuildings=this._layerBuildings.getHiddenBuildings();_isDestroyed=!1;_findBuildingTimeoutId=null;_findBuildingIntervalId=null;_debounceRendering;constructor(t){super();const{map:e,startWithIndoorView:n=!0,outdoorMapShown:r=!0,selectedBuildingBorderStyle:o,floorSwitchMode:s=i.MA.SWITCHED_BY_VENUE,fitBuildingBounds:a,boundsPadding:u,maskNonSelectedAreas:l=!1}=t;this._map=e,this._allowOutdoorSwitch=!0,this._allowBuildingSwitch=!0,this._startWithIndoorView=n,this._outdoorMapShown=r,this._isVenueMode=s===i.MA.SWITCHED_BY_VENUE,this._isMaskMode=l,this._fitBuildingBounds=a,this._boundsPadding=u,this._buildingHighlightStyle=o?Object.assign({},c.ef,o):c.ef,this._hiddenBuildings=new Set,this._bindMaplibreEventListeners()}destroy(){this._isDestroyed||(this._isDestroyed=!0,this._dispatch.on(`.${A}`,null),this.removeAllListeners(E),this.removeAllListeners(S),this.removeAllListeners(B),this._debounceRendering?.cancel(),this._findBuildingTimeoutId&&(clearTimeout(this._findBuildingTimeoutId),this._findBuildingTimeoutId=null),this._findBuildingIntervalId&&(clearInterval(this._findBuildingIntervalId),this._findBuildingIntervalId=null))}setAllowOutdoorSwitch(t){return this._allowOutdoorSwitch=t,this}setAllowBuildingSwitch(t){return this._allowBuildingSwitch=t,this}get floor(){return{code:this._floorName,id:this._floorId,ordinal:this._ordinal}}get building(){return this._curBuildingFeature}get venue(){return this._curVenueFeature}get features(){return this._features}getFeaturesById(t,e){const{layerIds:n,filter:r}=e||{},i=this._queryRenderedFeatures(n),o=r?e=>e.properties.id===t&&r(e):e=>e.properties.id===t;return(0,b.A)(i,o)}async switchFloorByOrdinal(t){this._updateFloorState(t),this._dispatch.call(A,null,{venue:this.venue,building:this.building,floor:this.floor}),t&&this._floorId&&(this._resetSelectedBuildingLevel(),!0===this._dragPan&&(this._fitBuildingBounds?(this._isNewBuilding&&this._featureIncomplete&&await this.panToBuildingCenter(),this.fitBuildingBbox()):await this.panToBuildingCenter()),"restrict"===this._dragPan&&await this._checkAndPanToBuilding()),this.updateRendering()}setOutdoorMapShown(t){this._outdoorMapShown=t,this._setOutdoorVisibility(t)}updateCustomLayers(){this._originIndoorLayers=(0,o.cq)(this._map.getStyle()),this._copyOverlapLayers(),this._addBuildingHighlightLayer(),this._addCustomLevelFillLayer(),this._isMaskMode&&this._addBuildingMaskLayer(),this._outdoorMapShown||this._setOutdoorVisibility(!1)}setSelectedBuildingBorderStyle(t){t?(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,t),this._map.getLayer(I)&&(this._map.setPaintProperty(I,"line-color",this._buildingHighlightStyle.lineColor),this._map.setPaintProperty(I,"line-opacity",this._buildingHighlightStyle.lineOpacity),this._map.setPaintProperty(I,"line-width",this._buildingHighlightStyle.lineWidth),this._map.setPaintProperty(I,"line-offset",this._buildingHighlightStyle.lineWidth))):(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,{"line-opacity":0}),this._map.getLayer(I)&&this._map.setPaintProperty(I,"line-opacity",0))}onMapChange(t){const e=(0,v.A)(`${A}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}async selectBuilding(t,e){(this._allowOutdoorSwitch||t)&&this._allowBuildingSwitch&&this._allowBuildingSwitch&&this._isNotCurrentFeature(t)&&(this._featureIncomplete=e?.featureIncomplete??this._featureIncomplete,this._isNewBuilding=!0,this._isMaskMode&&this._invisibleSelectedBuilding(),await this._updateIndoorState(t,e?.floorId),await this.switchFloorByOrdinal(this._ordinal),this.emit(E,{buildingId:this._curBuildingId,ordinal:this._ordinal,dragPan:this._dragPan}),this._indoorMapLoaded||(this._indoorMapLoaded=!0,this.emit(B)),this._isNewBuilding=!1)}updateRendering(){this._updateFeatures(),this._updateSelectedFeatures(),this._layerDisplayedBuildings(),this._setDisplayedLevels(),this._filterTiles(),this._setBuildingLineOpacity(),this._filterBuildingHighlight()}async panToBuildingCenter(){const t=this._curBuildingFeature.properties?.label_center?.split(",");if(t&&(this._map.panTo(t),this._featureIncomplete))return new Promise((t=>{this._findBuildingTimeoutId=setTimeout((()=>{let e=!1;const n=()=>{if(this._isDestroyed)return void this._clearTimers();this._map.getLayer(x)&&this.getFeaturesById(this._curBuildingId,{layerIds:[x]})[0]&&(e=!0,t(!0))};this._findBuildingIntervalId=setInterval((()=>{e?this._clearTimers():n()}),100),n(),this._map.getZoom()<14&&(this._clearTimers(),t(!1))}))}))}fitBuildingBbox(){this._buildingBounds&&this._map.fitBounds(this._buildingBounds,{padding:this._boundsPadding,bearing:this._map.getBearing()})}setDragPan(t){this._dragPan=t}setBuildingBounds(t){this._buildingBounds=t}async selectBuildingByClickMap(t){let e=null;const n=this._map.queryRenderedFeatures(t,{layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy",x]});if(n.length){const t=(0,p.A)(n,(t=>t.layer.id.startsWith("mapxus-level-fill")));e=t?(0,p.A)(n,(e=>e.properties.id===t.properties["ref:building"])):(0,p.A)(n,(t=>{const{id:e,level_ids:n}=t.properties;return!this._hiddenBuildings.has(e)&&!(0,w.A)(n.split(","),(t=>this._upperLevels.has(t)||this._lowerLevels.has(t)))}))??null}this.setDragPan("restrict"),await this.selectBuilding(e),setTimeout((async()=>{if(this._fitBuildingBounds)if(e){const t=await(0,u.pT)(e.properties.id),{minLon:n,minLat:r,maxLon:i,maxLat:o}=t.bbox;this.setBuildingBounds([[n,r],[i,o]])}else this.setBuildingBounds(null)}))}_bindMaplibreEventListeners(){this._map.once("styledata",(()=>this.updateCustomLayers())),this._map.once("idle",(()=>{this.emit(S),(!this._startWithIndoorView||this._map.getZoom()<14)&&(this._indoorMapLoaded=!0,this.emit(B))})),this._map.on("sourcedata",this._debounceRendering=(0,m.A)((()=>this.updateRendering()),300))}_clear(){this._curBuildingFeature=null,this._curBuildingId=null,this._ordinal=null,this._floorName=null,this._floorId=null,this._curVenueId=null,this._curVenueFeature=null,this._buildingBounds=null}_getIndoorFeatures(){return this._queryRenderedFeatures().filter((t=>"indoor-planet"===t.source))}_getBuildingFloorByOrdinal(t,e){let n=null,r=null;if(t?.properties){const{ordinals:i,level_names:o,level_ids:s}=t.properties,a=(0,y.A)(i?.split(",")||[],(t=>t===e));n=(o?.split(",")||[])[a]??null,r=(s?.split(",")||[])[a]??null}return{code:n,id:r,ordinal:e}}_isNotCurrentFeature(t){return t?.properties?.id!==this._curBuildingId}_setOutdoorVisibility(t){const e=(0,o.Z3)(this._map.getStyle());if(e.length){const n=t?"visible":"none";e.forEach((({id:t})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"visibility",n)}))}}_addCustomLevelFillLayer(){this._map.getLayer("custom-level-fill")||this._map.addLayer({id:"custom-level-fill",source:"indoor-planet","source-layer":"mapxus_level",type:"fill",paint:{"fill-opacity":0}})}_addBuildingMaskLayer(){if(this._map.getLayer(l.Zj))return;const t=this._originIndoorLayers.find((({id:t})=>t===x));if(t){const e=Object.assign({},t,{id:l.Zj,layout:Object.assign({},t.layout??{},{visibility:"visible"}),paint:Object.assign({},t.paint??{},{"fill-opacity":0})});this._map.addLayer(e,x)}}_setBuildingLineOpacity(){this._isMaskMode&&this._map.getLayer(x)&&this._map.setPaintProperty(x,"fill-opacity",["case",["in",["get","id"],["literal",[...this._upperBuildings]]],0,["in",["get","id"],["literal",[...this._hiddenBuildings]]],0,1])}_addBuildingHighlightLayer(){if(!this._map.getLayer(I)){const{lineWidth:t,lineOpacity:e,lineColor:n}=this._buildingHighlightStyle;this._map.addLayer({id:I,source:"indoor-planet","source-layer":"mapxus_level",type:"line",filter:["==","id",""],paint:{"line-offset":t,"line-width":t,"line-color":n,"line-opacity":e}});const r=this._originIndoorLayers.findIndex((({id:t})=>t===this._upperLayers[this._upperLayers.length-1].id)),i=this._originIndoorLayers[r+1];this._map.moveLayer(I,i.id)}}_filterBuildingHighlight(){this._map.getLayer(I)&&this._map.setFilter(I,["==","id",this._floorId??""])}_handleBuildings(t,e){if(e.clear(),t.size)for(const n of t){const r=this._allBuildingsMap.get(n);if(!r?.properties)continue;const{"ref:venue":i,ordinals:o,level_ids:s}=r.properties;let a=this._history.getHistoryOrdinal(this._isVenueMode?this._history.getHistoryBuilding(i):n);if(!a){if(this._isVenueMode){const t=this._features.find((t=>"mapxus-venue-fill"===t.layer.id&&t.properties.id===i));a=this._getVenueDefaultOrdinal(t)}else a=this._getBuildingDefaultOrdinal(r);if(!a)continue;this._history.setHistoryOrdinal(n,a),this._isVenueMode&&this._history.setHistoryBuilding(i,n)}const c=(0,y.A)(o.split(","),(t=>t===a));if(c>-1){const r=s.split(",")[c];if(this._isMaskMode){(this._isVenueMode?this._curVenueFeature?.properties?.building_ids?.split(",")||[]:this._curBuildingId?[this._curBuildingId]:[]).includes(n)?(e.add(r),this._hiddenBuildings.delete(n)):t.delete(n)}else e.add(r),this._hiddenBuildings.delete(n)}else this._hiddenBuildings.add(n),t.delete(n)}}_getVenueDefaultOrdinal(t){let e=null;if(t?.properties){const{default_displayed_ordinal:n,building_ids:r}=t.properties;if(n&&(e=n),!e&&r){const t=(0,p.A)(this._getBuildingsOfBbox(),(t=>r.includes(t.properties.id)));e=t?this._getBuildingDefaultOrdinal(t):null}}return e}_getBuildingDefaultOrdinal(t){let e=null;if(t?.properties){const{level_ids:n,ordinals:r,default_displayed_floor:i}=t.properties,o=r?.split(",")||[];if(o.length){if(i){e=o[(0,y.A)(n?.split(",")||[],(t=>t===i))]??null}e||(e=(0,g.A)(o,(t=>Math.abs(Number(t)-.1))))}}return e}_getBuildingsOfBbox(t){let e=this._map.queryRenderedFeatures({layers:[x]});return e=(0,_.A)(e,(t=>t.properties.id)),t&&(e=e.filter(t)),e}_copyOverlapLayers(){const t=this._originIndoorLayers.findIndex((({id:t})=>"mapxus-level-fill"===t)),e=this._originIndoorLayers.findIndex((({id:t,type:e})=>t.startsWith("mapxus-poi")&&"symbol"===e));this._commonLayers=this._originIndoorLayers.slice(0,t).concat(this._originIndoorLayers.slice(e)),this._upperLayers=this._originIndoorLayers.slice(t,e).filter((t=>"mapxus_building"!==t["source-layer"])),this._lowerLayers=this._upperLayers.map((t=>{const e=Object.assign({},t,{id:`${t.id}-overlap-copy`});return this._map.getLayer(e.id)||(this._map.addLayer(e),this._map.moveLayer(e.id,"mapxus-level-fill")),e}))}_updateFeatures(){this._features=this._getIndoorFeatures();const t=(0,_.A)(this._features,(t=>t.layer.id+":"+t.properties.id)).filter((t=>t.layer.id===x));this._allBuildingsMap=new Map(t.map((t=>[t.properties.id,t])))}_updateSelectedFeatures(){if(!this._featureIncomplete)return;const t=this._allBuildingsMap.get(this._curBuildingId);t&&(this._curBuildingFeature=t,this._featureIncomplete=!1)}_layerDisplayedBuildings(){if(this._allBuildingsMap.size)for(const t of this._allBuildingsMap.values()){if(!t.properties)continue;const{id:e,overlap:n}=t.properties;let r=!1;if(e===this._curBuildingId)this._hiddenBuildings.delete(e),this._lowerBuildings.delete(e),this._upperBuildings.add(e),n&&(r=!0);else{!this._upperBuildings.has(e)&&!this._lowerBuildings.has(e)&&!this._hiddenBuildings.has(e)&&(this._upperBuildings.add(e),n&&(r=!0))}r&&n.split(",").forEach((t=>{this._hiddenBuildings.has(t)||(this._upperBuildings.delete(t),this._lowerBuildings.add(t))}))}}_setDisplayedLevels(){this._handleBuildings(this._upperBuildings,this._upperLevels),this._handleBuildings(this._lowerBuildings,this._lowerLevels)}_filterTiles(){this._filterIndoorLayers([...this._upperLevels,...this._lowerLevels],this._commonLayers??[]),this._filterIndoorLayers([...this._upperLevels],this._upperLayers??[]),this._filterIndoorLayers([...this._lowerLevels],this._lowerLayers??[])}_filterIndoorLayers(t,e){if(!e.length)return;let n;for(const r of e){const e=r,i=e["source-layer"];if("mapxus_venue"===i||"mapxus_building"===i||!e.filter)continue;const{id:o,filter:s,type:a}=e;n=["all","mapxus_level"===i?["in","id",...t]:["in","ref:level",...t],s],"mapxus_place"===i&&"symbol"===a&&n.splice(2,0,["any",["all",["has","overlap"],["in","ref:building",...this._upperBuildings]],["!has","overlap"]]),this._map.setFilter(o,n)}}async _updateIndoorState(t,e){if(t){if(!t.properties)return void console.warn("Building feature properties is empty.",t);const{id:n,"ref:venue":r,level_ids:i,ordinals:o}=t.properties;if(this._curVenueId!==r){this._curVenueId=r;let t=this.getFeaturesById(r,{layerIds:["mapxus-venue-fill"]})[0]??null;if(!t)try{const e=(await L.searchByIds(r)).data.result.venues[0];t=(0,s.E)(e)}catch(t){throw new Error("Venue not found.",{cause:t})}this._curVenueFeature=t}this._curBuildingFeature=t,this._curBuildingId=n,this._history.addHistoryBuilding(n);const a=o.split(",");if(e){const n=a[(0,y.A)(i.split(","),(t=>t===e))];n||console.warn("Building has no corresponding ordinal.",t),this._ordinal=n??null}else{let e=this._history.getHistoryOrdinal(this._isVenueMode?this._history.getHistoryBuilding(r):n);(!e||e&&!a.includes(e))&&(e=this._getBuildingDefaultOrdinal(t)),this._ordinal=e}}else this._clear()}_updateFloorState(t){if(this._ordinal=t,this._floorName=null,this._floorId=null,t){const{code:t,id:e}=this._getBuildingFloorByOrdinal(this._curBuildingFeature,this._ordinal);if(this._floorName=t,this._floorId=e,!e)return;this._history.setHistoryOrdinal(this._curBuildingId,this._ordinal),this._isVenueMode&&this._history.setHistoryBuilding(this._curVenueId,this._curBuildingId)}}_resetSelectedBuildingLevel(){(this._isVenueMode?this._curVenueFeature?this._curVenueFeature.properties.building_ids.split(","):[]:[this._curBuildingId]).forEach((t=>{this._upperBuildings.delete(t),this._lowerBuildings.delete(t),this._hiddenBuildings.delete(t)})),this._upperBuildings.add(this._curBuildingId);const t=this._curBuildingFeature.properties.overlap;t&&t.split(",").forEach((t=>{this._upperBuildings.has(t)&&(this._upperBuildings.delete(t),this._lowerBuildings.add(t))}))}async _checkAndPanToBuilding(){this.getFeaturesById(this._curBuildingId,{layerIds:[x]})[0]||(this._fitBuildingBounds?this.fitBuildingBbox():await this.panToBuildingCenter())}_invisibleSelectedBuilding(){if(this._isVenueMode){if(!this._curVenueFeature)return;const{building_ids:t}=this._curVenueFeature.properties;t&&t.split(",").forEach((t=>{this._upperBuildings.delete(t),this._lowerBuildings.delete(t)}))}else this._curBuildingId&&(this._upperBuildings.delete(this._curBuildingId),this._lowerBuildings.delete(this._curBuildingId))}_clearTimers(){clearInterval(this._findBuildingIntervalId),this._findBuildingIntervalId=null,clearTimeout(this._findBuildingTimeoutId),this._findBuildingTimeoutId=null}_queryRenderedFeatures(t){const e=(t||[]).filter((t=>this._map.getLayer(t))),n=e.length?{layers:e}:void 0,r=this._map.getCanvas().getBoundingClientRect();return this._map.queryRenderedFeatures([[0,0],[r.width,r.height]],n)}}},5647:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=(0,n(367).A)(Object.getPrototypeOf,Object)},5664:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(8182),i=0;const o=function(t){var e=++i;return(0,r.A)(t)+e}},5668:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},5706:(t,e,n)=>{"use strict";n.d(e,{Q:()=>r});class r{static instance;_upperBuildings;_lowerBuildings;_hiddenBuildings;constructor(){this._upperBuildings=new Set,this._lowerBuildings=new Set,this._hiddenBuildings=new Set}static getInstance(){return r.instance||(r.instance=new r),r.instance}getUpperBuildings(){return this._upperBuildings}getLowerBuildings(){return this._lowerBuildings}getHiddenBuildings(){return this._hiddenBuildings}}},5707:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},5722:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(608),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;const s=(0,r.A)((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}))},5781:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(1275),i=n(5530),o=n(7809),s=n(4099),a=n(9109),c=n(9959);const u=function(t,e,n){var u=-1,l=i.A,d=t.length,h=!0,f=[],p=f;if(n)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 r.A}else p=e?[]:f;t:for(;++u<d;){var g=t[u],m=e?e(g):g;if(g=n||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,n)||(p!==f&&p.push(m),f.push(g))}return f}},5861:(t,e,n)=>{"use strict";n.d(e,{A:()=>w});var r=n(2732),i=n(8335),o=n(180),s=n(9857),a=n(3631),c=n(9672),u=n(1121),l="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",y=(0,u.A)(r.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;(r.A&&v(new r.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),n="[object Object]"==e?t.constructor:void 0,r=n?(0,u.A)(n):"";if(r)switch(r){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,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(5088),i=n(9846),o=n(1521),s=n(2509),a=n(549);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r.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,n)=>{"use strict";n.d(e,{A:()=>f});var r=n(7275),i=n(3967),o=n(7352),s=n(8683),a=n(4662),c=n(8262),u=n(3390),l=n(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 n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}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:n,paramsSerializer:i,headers:o}=e;void 0!==n&&u.A.assertOptions(n,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1),null!=i&&(r.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&&r.A.merge(o.common,o[e.method]);o&&r.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)}}r.A.forEach(["delete","get","head","options"],(function(t){h.prototype[t]=function(e,n){return this.request((0,a.A)(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.A.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request((0,a.A)(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}h.prototype[t]=e(),h.prototype[t+"Form"]=e(!0)}));const f=h},5997:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},6013:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var r=n(7275),i=n(4062),o=n(807),s=n(665),a=n(1076),c=n(3820),u=n(7887);const l={transitional:o.A,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,o=r.A.isObject(t);o&&r.A.isHTMLForm(t)&&(t=new FormData(t));if(r.A.isFormData(t))return i?JSON.stringify((0,u.A)(t)):t;if(r.A.isArrayBuffer(t)||r.A.isBuffer(t)||r.A.isStream(t)||r.A.isFile(t)||r.A.isBlob(t)||r.A.isReadableStream(t))return t;if(r.A.isArrayBufferView(t))return t.buffer;if(r.A.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return(0,a.A)(t,this.formSerializer).toString();if((c=r.A.isFileList(t))||n.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,n){if(r.A.isString(t))try{return(e||JSON.parse)(t),r.A.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||l.transitional,n=e&&e.forcedJSONParsing,o="json"===this.responseType;if(r.A.isResponse(t)||r.A.isReadableStream(t))return t;if(t&&r.A.isString(t)&&(n&&!this.responseType||o)){const n=!(e&&e.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(t){if(n){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}}};r.A.forEach(["delete","get","head","post","put","patch"],(t=>{l.headers[t]={}}));const d=l},6031:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},6034:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(2141),i=n(8672),o=n(1470);const s=function(t,e){return(0,o.A)(t,(0,i.A)((0,r.A)(e)))}},6224:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){return t<e}},6242:(t,e,n)=>{"use strict";n.d(e,{k:()=>a});var r=n(7007),i=n(5537),o=n(3574),s=n(3207);class a extends r.EventEmitter{_appId=null;_secret=null;isClosed=!1;_timeoutId;_isInitialized=!1;_initializationPromise;_tokenManager=s.t.getInstance();_from;constructor(t,e,n=o.en.Access){super(),this._from=n,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),n=1e3*(e.exp-e.iat-60);this._loopUpdateToken(n)}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,n)=>{"use strict";n.d(e,{A:()=>d});var r=n(7275),i=n(3119),o=n(7013),s=n(817),a=n(4062);const c={http:i.A,xhr:o.A,fetch:s.A};r.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=>r.A.isFunction(t)||null===t||!1===t,d={getAdapter:t=>{t=r.A.isArray(t)?t:[t];const{length:e}=t;let n,i;const o={};for(let r=0;r<e;r++){let e;if(n=t[r],i=n,!l(n)&&(i=c[(e=String(n)).toLowerCase()],void 0===i))throw new a.A(`Unknown adapter '${e}'`);if(i)break;o[e||"#"+r]=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 n=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 "+n,"ERR_NOT_SUPPORT")}return i},adapters:c}},6294:(t,e,n)=>{"use strict";n.d(e,{B:()=>r});class r{_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,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(3820);const i=r.A.hasStandardBrowserEnv?(o=new URL(r.A.origin),s=r.A.navigator&&/(msie|trident)/i.test(r.A.navigator.userAgent),t=>(t=new URL(t,r.A.origin),o.protocol===t.protocol&&o.host===t.host&&(s||o.port===t.port))):()=>!0;var o,s},6318:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(7465),i=n(901);const o=function(t,e){for(var n=0,o=(e=(0,r.A)(e,t)).length;null!=t&&n<o;)t=t[(0,i.A)(e[n++])];return n&&n==o?t:void 0}},6358:(t,e,n)=>{"use strict";var r,i;n.d(e,{L:()=>r,n:()=>i}),function(t){t.DEFAULT_NAME="DefaultName"}(r||(r={})),function(t){t.ABSOLUTE_DISTANCE="AbsoluteDistance",t.ACTUAL_DISTANCE="ActualDistance"}(i||(i={}))},6377:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.twistedEdwards=function(t){const e=function(t){const e=(0,r.validateBasic)(t);return(0,o.validateObject)(t,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...e})}(t),{Fp:n,n:d,prehash:h,hash:f,randomBytes:p,nByteLength:y,h:g}=e,m=c<<BigInt(8*y)-a,_=n.create,b=(0,i.Field)(e.n,e.nBitLength);if(!function(t,r){const i=n.sqr(t),o=n.sqr(r),s=n.add(n.mul(e.a,i),o),a=n.add(n.ONE,n.mul(e.d,n.mul(i,o)));return n.eql(s,a)}(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const v=e.uvRatio||((t,e)=>{try{return{isValid:!0,value:n.sqrt(t*n.inv(e))}}catch(t){return{isValid:!1,value:s}}}),w=e.adjustScalarBytes||(t=>t),A=e.domain||((t,e,n)=>{if((0,o.abool)("phflag",n),e.length||n)throw new Error("Contexts/pre-hash are not supported");return t});function E(t,e,n=!1){const r=n?a:s;(0,o.aInRange)("coordinate "+t,e,r,m)}function B(t){if(!(t instanceof I))throw new Error("ExtendedPoint expected")}const S=(0,o.memoized)(((t,e)=>{const{ex:r,ey:i,ez:o}=t,c=t.is0();null==e&&(e=c?u:n.inv(o));const l=_(r*e),d=_(i*e),h=_(o*e);if(c)return{x:s,y:a};if(h!==a)throw new Error("invZ was invalid");return{x:l,y:d}})),x=(0,o.memoized)((t=>{const{a:n,d:r}=e;if(t.is0())throw new Error("bad point: ZERO");const{ex:i,ey:o,ez:s,et:a}=t,c=_(i*i),u=_(o*o),l=_(s*s),d=_(l*l),h=_(c*n);if(_(l*_(h+u))!==_(d+_(r*_(c*u))))throw new Error("bad point: equation left != right (1)");if(_(i*o)!==_(s*a))throw new Error("bad point: equation left != right (2)");return!0}));class I{constructor(t,e,n,r){E("x",t),E("y",e),E("z",n,!0),E("t",r),this.ex=t,this.ey=e,this.ez=n,this.et=r,Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(t){if(t instanceof I)throw new Error("extended point not allowed");const{x:e,y:n}=t||{};return E("x",e),E("y",n),new I(e,n,a,_(e*n))}static normalizeZ(t){const e=(0,i.FpInvertBatch)(n,t.map((t=>t.ez)));return t.map(((t,n)=>t.toAffine(e[n]))).map(I.fromAffine)}static msm(t,e){return(0,r.pippenger)(I,b,t,e)}_setWindowSize(t){k.setWindowSize(this,t)}assertValidity(){x(this)}equals(t){B(t);const{ex:e,ey:n,ez:r}=this,{ex:i,ey:o,ez:s}=t,a=_(e*s),c=_(i*r),u=_(n*s),l=_(o*r);return a===c&&u===l}is0(){return this.equals(I.ZERO)}negate(){return new I(_(-this.ex),this.ey,this.ez,_(-this.et))}double(){const{a:t}=e,{ex:n,ey:r,ez:i}=this,o=_(n*n),s=_(r*r),a=_(c*_(i*i)),u=_(t*o),l=n+r,d=_(_(l*l)-o-s),h=u+s,f=h-a,p=u-s,y=_(d*f),g=_(h*p),m=_(d*p),b=_(f*h);return new I(y,g,b,m)}add(t){B(t);const{a:n,d:r}=e,{ex:i,ey:o,ez:s,et:a}=this,{ex:c,ey:u,ez:l,et:d}=t,h=_(i*c),f=_(o*u),p=_(a*r*d),y=_(s*l),g=_((i+o)*(c+u)-h-f),m=y-p,b=y+p,v=_(f-n*h),w=_(g*m),A=_(b*v),E=_(g*v),S=_(m*b);return new I(w,A,S,E)}subtract(t){return this.add(t.negate())}wNAF(t){return k.wNAFCached(this,t,I.normalizeZ)}multiply(t){const e=t;(0,o.aInRange)("scalar",e,a,d);const{p:n,f:r}=this.wNAF(e);return I.normalizeZ([n,r])[0]}multiplyUnsafe(t,e=I.ZERO){const n=t;return(0,o.aInRange)("scalar",n,s,d),n===s?O:this.is0()||n===a?this:k.wNAFCachedUnsafe(this,n,I.normalizeZ,e)}isSmallOrder(){return this.multiplyUnsafe(g).is0()}isTorsionFree(){return k.unsafeLadder(this,d).is0()}toAffine(t){return S(this,t)}clearCofactor(){const{h:t}=e;return t===a?this:this.multiplyUnsafe(t)}static fromHex(t,r=!1){const{d:i,a:c}=e,u=n.BYTES;t=(0,o.ensureBytes)("pointHex",t,u),(0,o.abool)("zip215",r);const l=t.slice(),d=t[u-1];l[u-1]=-129&d;const h=(0,o.bytesToNumberLE)(l),f=r?m:n.ORDER;(0,o.aInRange)("pointHex.y",h,s,f);const p=_(h*h),y=_(p-a),g=_(i*p-c);let{isValid:b,value:w}=v(y,g);if(!b)throw new Error("Point.fromHex: invalid y coordinate");const A=(w&a)===a,E=!!(128&d);if(!r&&w===s&&E)throw new Error("Point.fromHex: x=0 and x_0=1");return E!==A&&(w=_(-w)),I.fromAffine({x:w,y:h})}static fromPrivateKey(t){const{scalar:e}=R(t);return L.multiply(e)}toRawBytes(){const{x:t,y:e}=this.toAffine(),r=(0,o.numberToBytesLE)(e,n.BYTES);return r[r.length-1]|=t&a?128:0,r}toHex(){return(0,o.bytesToHex)(this.toRawBytes())}}I.BASE=new I(e.Gx,e.Gy,a,_(e.Gx*e.Gy)),I.ZERO=new I(s,a,a,s);const{BASE:L,ZERO:O}=I,k=(0,r.wNAF)(I,8*y);function C(t){return(0,i.mod)(t,d)}function T(t){return C((0,o.bytesToNumberLE)(t))}function R(t){const e=n.BYTES;t=(0,o.ensureBytes)("private key",t,e);const r=(0,o.ensureBytes)("hashed private key",f(t),2*e),i=w(r.slice(0,e));return{head:i,prefix:r.slice(e,2*e),scalar:T(i)}}function P(t){const{head:e,prefix:n,scalar:r}=R(t),i=L.multiply(r),o=i.toRawBytes();return{head:e,prefix:n,scalar:r,point:i,pointBytes:o}}function M(t=Uint8Array.of(),...e){const n=(0,o.concatBytes)(...e);return T(f(A(n,(0,o.ensureBytes)("context",t),!!h)))}const F=l;L._setWindowSize(8);return{CURVE:e,getPublicKey:function(t){return P(t).pointBytes},sign:function(t,e,r={}){t=(0,o.ensureBytes)("message",t),h&&(t=h(t));const{prefix:i,scalar:a,pointBytes:c}=P(e),u=M(r.context,i,t),l=L.multiply(u).toRawBytes(),f=C(u+M(r.context,l,c,t)*a);(0,o.aInRange)("signature.s",f,s,d);const p=(0,o.concatBytes)(l,(0,o.numberToBytesLE)(f,n.BYTES));return(0,o.ensureBytes)("result",p,2*n.BYTES)},verify:function(t,e,r,i=F){const{context:s,zip215:a}=i,c=n.BYTES;t=(0,o.ensureBytes)("signature",t,2*c),e=(0,o.ensureBytes)("message",e),r=(0,o.ensureBytes)("publicKey",r,c),void 0!==a&&(0,o.abool)("zip215",a),h&&(e=h(e));const u=(0,o.bytesToNumberLE)(t.slice(c,2*c));let l,d,f;try{l=I.fromHex(r,a),d=I.fromHex(t.slice(0,c),a),f=L.multiplyUnsafe(u)}catch(t){return!1}if(!a&&l.isSmallOrder())return!1;const p=M(s,d.toRawBytes(),l.toRawBytes(),e);return d.add(l.multiplyUnsafe(p)).subtract(f).clearCofactor().equals(I.ZERO)},ExtendedPoint:I,utils:{getExtendedPublicKey:P,randomPrivateKey:()=>p(n.BYTES),precompute:(t=8,e=I.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)}}};const r=n(2422),i=n(4967),o=n(1484),s=BigInt(0),a=BigInt(1),c=BigInt(2),u=BigInt(8),l={zip215:!0}},6474:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(1038),i=n(7500),o=n(7511),s=n(6586),a=n(9396),c=n(5997),u=n(901);const l=function(t,e){return(0,s.A)(t)&&(0,a.A)(e)?(0,c.A)((0,u.A)(t),e):function(n){var s=(0,i.A)(n,t);return void 0===s&&s===e?(0,o.A)(n,t):(0,r.A)(e,s,3)}}},6501:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r="undefined"!=typeof Blob?Blob:null},6527:(t,e)=>{"use strict";function n(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function r(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(!n(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=n,e.abool=r,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 n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)},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(!n(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 n=0;n<t.length;n++){const r=t[n];o(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const i=t[e];n.set(i,r),r+=i.length}return n},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 n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return 0===n},e.getOutput=function(t,e,n=!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(n&&!m(e))throw new Error("invalid output, must be aligned");return e},e.setBigUint64=g,e.u64Lengths=function(t,e,n){r(n);const i=new Uint8Array(16),o=s(i);return g(o,0,BigInt(e),n),g(o,8,BigInt(t),n),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 n=0;n<t.length;n++)e+=c[t[n]];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,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,i=0;e<n;e++,i+=2){const n=d(t.charCodeAt(i)),o=d(t.charCodeAt(i+1));if(void 0===n||void 0===o){const e=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+i)}r[e]=16*n+o}return r}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,n,r){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,a,r)}function m(t){return t.byteOffset%4==0}function _(t){return Uint8Array.from(t)}e.wrapCipher=(t,n)=>{function r(r,...i){if(o(r),!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=n(r,...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(r,t),r}},6568:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>It});var r=n(1635),i="4.6.2";function o(t,e){return new Promise((function(n){return setTimeout(n,t,e)}))}function s(t){return!!t&&"function"==typeof t.then}function a(t,e){try{var n=t();s(n)?n.then((function(t){return e(!0,t)}),(function(t){return e(!1,t)})):e(!0,n)}catch(t){e(!1,t)}}function c(t,e,n){return void 0===n&&(n=16),(0,r.sH)(this,void 0,void 0,(function(){var i,o,s,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:i=Array(t.length),o=Date.now(),s=0,r.label=1;case 1:return s<t.length?(i[s]=e(t[s],s),(a=Date.now())>=o+n?(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:r.sent(),r.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 n=1/e;return Math.round(t*n)/n}function y(t,e){var n=t[0]>>>16,r=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+=r+a)>>>16,l&=65535,u+=n+s,u&=65535,t[0]=u<<16|l,t[1]=d<<16|h}function g(t,e){var n=t[0]>>>16,r=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+=r*u)>>>16,d&=65535,l+=(d+=i*c)>>>16,d&=65535,l+=(d+=o*a)>>>16,d&=65535,l+=n*u+r*c+i*a+o*s,l&=65535,t[0]=l<<16|d,t[1]=h<<16|f}function m(t,e){var n=t[0];32===(e%=64)?(t[0]=t[1],t[1]=n):e<32?(t[0]=n<<e|t[1]>>>32-e,t[1]=t[1]<<e|n>>>32-e):(e-=32,t[0]=t[1]<<e|n>>>32-e,t[1]=n<<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],B=[1291169091,658871167],S=[0,5],x=[0,1390208809],I=[0,944331445];function L(t,e){var n=function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>127)return(new TextEncoder).encode(t);e[n]=r}return e}(t);e=e||0;var r,i=[0,n.length],o=i[1]%16,s=i[1]-o,a=[0,e],c=[0,e],u=[0,0],l=[0,0];for(r=0;r<s;r+=16)u[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,u[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,l[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,l[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,g(u,E),m(u,31),g(u,B),b(a,u),m(a,27),y(a,c),g(a,S),y(a,x),g(l,B),m(l,33),g(l,E),b(c,l),m(c,31),y(c,a),g(c,S),y(c,I);u[0]=0,u[1]=0,l[0]=0,l[1]=0;var d=[0,0];switch(o){case 15:d[1]=n[r+14],_(d,48),b(l,d);case 14:d[1]=n[r+13],_(d,40),b(l,d);case 13:d[1]=n[r+12],_(d,32),b(l,d);case 12:d[1]=n[r+11],_(d,24),b(l,d);case 11:d[1]=n[r+10],_(d,16),b(l,d);case 10:d[1]=n[r+9],_(d,8),b(l,d);case 9:d[1]=n[r+8],b(l,d),g(l,B),m(l,33),g(l,E),b(c,l);case 8:d[1]=n[r+7],_(d,56),b(u,d);case 7:d[1]=n[r+6],_(d,48),b(u,d);case 6:d[1]=n[r+5],_(d,40),b(u,d);case 5:d[1]=n[r+4],_(d,32),b(u,d);case 4:d[1]=n[r+3],_(d,24),b(u,d);case 3:d[1]=n[r+2],_(d,16),b(u,d);case 2:d[1]=n[r+1],_(d,8),b(u,d);case 1:d[1]=n[r],b(u,d),g(u,E),m(u,31),g(u,B),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 k(t,e,n,i){var o=Object.keys(t).filter((function(t){return!function(t,e){for(var n=0,r=t.length;n<r;++n)if(t[n]===e)return!0;return!1}(n,t)})),s=u(c(o,(function(n){return function(t,e){var n=u(new Promise((function(n){var r=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()-r;if(!t[0])return n((function(){return{error:t[1],duration:i}}));var o=t[1];if(O(o))return n((function(){return{value:o,duration:i}}));n((function(){return new Promise((function(t){var e=Date.now();a(o,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=i+Date.now()-e;if(!n[0])return t({error:n[1],duration:o});t({value:n[1],duration:o})}))}))}))}))})));return function(){return n.then((function(t){return t()}))}}(t[n],e)}),i));return function(){return(0,r.sH)(this,void 0,void 0,(function(){var t,e,n,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,s];case 1:return[4,c(r.sent(),(function(t){return u(t())}),i)];case 2:return t=r.sent(),[4,Promise.all(t)];case 3:for(e=r.sent(),n={},a=0;a<o.length;++a)n[o[a]]=e[a];return[2,n]}}))}))}}function C(){var t=window,e=navigator;return f(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function T(){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 R(){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,n=t.Document;return f(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),n&&"pointerLockElement"in n.prototype])>=4}function M(){var t,e=window;return t=e.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))&&"[object WebPageNamespace]"===String(e.browser)}function F(){var t,e,n=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 n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function H(){var t=window,e=navigator,n=t.CSS,r=t.HTMLButtonElement;return f([!("getStorageUpdates"in e),r&&"popover"in r.prototype,"CSSCounterStyleRule"in t,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function j(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function N(){var t=T(),e=F(),n=window,r=navigator,i="connection";return t?f([!("SharedWorker"in n),r[i]&&"ontypechange"in r[i],!("sinkId"in new Audio)])>=2:!!e&&f(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2}function U(t){var e=new Error(t);return e.name=t,e}function V(t,e,n){var i,s,a;return void 0===n&&(n=50),(0,r.sH)(this,void 0,void 0,(function(){var c,u;return(0,r.YH)(this,(function(r){switch(r.label){case 0:c=document,r.label=1;case 1:return c.body?[3,3]:[4,o(n)];case 2:return r.sent(),[3,1];case 3:u=c.createElement("iframe"),r.label=4;case 4:return r.trys.push([4,,10,11]),[4,new Promise((function(t,n){var r=!1,i=function(){r=!0,t()};u.onload=i,u.onerror=function(t){r=!0,n(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;r||("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:r.sent(),r.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(n)];case 7:return r.sent(),[3,6];case 8:return[4,t(u,u.contentWindow)];case 9:return[2,r.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,n,r="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(r);c(d[1],null!==(n=null!==(e=d[4])&&void 0!==e?e:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[o,s]}(t),n=e[0],r=e[1],i=document.createElement(null!=n?n:"div"),o=0,s=Object.keys(r);o<s.length;o++){var a=s[o],c=r[a].join(" ");"style"===a?$(i.style,c):i.setAttribute(a,c)}return i}function $(t,e){for(var n=0,r=e.split(";");n<r.length;n++){var i=r[n],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,r.sH)(t,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(e){switch(e.label){case 0:return X(t=Y())?q?[2,(0,r.fX)([],q,!0)]:(n=document).fullscreenElement||n.msFullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement?[4,j()]:[3,2]:[3,2];case 1:e.sent(),t=Y(),e.label=2;case 2:return X(t)||(q=t),[2,t]}var n}))}))}}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,r.sH)(this,void 0,void 0,(function(){var n,i,s,a,c,u,l;return(0,r.YH)(this,(function(r){switch(r.label){case 0:for(n=document,i=n.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=n.createElement("div")),u.appendChild(c),i.appendChild(u),s[l]=c;r.label=1;case 1:return n.body?[3,3]:[4,o(50)];case 2:return r.sent(),[3,1];case 3:n.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 nt(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function rt(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,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",(function(){return e=void 0}));for(var r=0,i=["webgl","experimental-webgl"];r<i.length;r++){var o=i[r];try{e=n.getContext(o)}catch(t){}if(e)break}return t.webgl={context:e},e}function gt(t,e,n){var r=t.getShaderPrecisionFormat(t[e],t[n]);return r?[r.rangeMin,r.rangeMax,r.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 F()}function vt(t){return"function"==typeof t.getParameter}var wt={fonts:function(){var t=this;return V((function(e,n){var i=n.document;return(0,r.sH)(t,void 0,void 0,(function(){var t,e,n,o,s,a,c,u,l,d,h;return(0,r.YH)(this,(function(r){for((t=i.body).style.fontSize="48px",(e=i.createElement("div")).style.setProperty("visibility","hidden","important"),n={},o={},s=function(t){var n=i.createElement("span"),r=n.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=t,n.textContent="mmMwWLliI0O&1",e.appendChild(n),n},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)}))},n=0,r=G;n<r.length;n++){e(r[n])}return t},u=function(t){return z.some((function(e,r){return t[r].offsetWidth!==n[e]||t[r].offsetHeight!==o[e]}))},l=function(){return z.map(s)}(),d=c(),t.appendChild(e),h=0;h<z.length;h++)n[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,r.sH)(this,void 0,void 0,(function(){var t,n,i,o,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return R()||N()?(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"]},n=Object.keys(t),[4,J((s=[]).concat.apply(s,n.map((function(e){return t[e]}))))]):[2,void 0];case 1:return i=r.sent(),e&&function(t,e){for(var n="DOM blockers debug:\n```",r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n+="\n".concat(o,":");for(var s=0,a=t[o];s<a.length;s++){var c=a[s];n+="\n ".concat(e[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(n,"\n```"))}(t,i),(o=n.filter((function(e){var n=t[e];return f(n.map((function(t){return i[t]})))>.6*n.length}))).sort(),[2,o]}var a}))}))},fontPreferences:function(){return function(t,e){void 0===e&&(e=4e3);return V((function(n,i){var o=i.document,s=o.body,a=s.style;a.width="".concat(e,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",T()?s.style.zoom="".concat(1/i.devicePixelRatio):R()&&(s.style.zoom="reset");var c=o.createElement("div");return c.textContent=(0,r.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 n={},r={},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)}n[s]=h,e.append(t.createElement("br"),h)}for(var m=0,_=Object.keys(ct);m<_.length;m++){r[s=_[m]]=n[s].getBoundingClientRect().width}return r}))},audio:function(){return R()&&H()&&M()||T()&&(t=navigator,e=window,n=Audio.prototype,r=e.visualViewport,f(["srLatency"in n,"srChannelCount"in n,"devicePosture"in t,r&&"segments"in r,"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(R()&&!P()&&!function(){var t=window;return f(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var n=4500,r=new e(1,5e3,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=r.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(r.destination),i.start(0);var a=function(t){var e=3,n=500,r=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(U("timeout"))}),Math.min(r,h+i-Date.now()))},p=function(){try{var r=t.startRendering();switch(s(r)&&u(r),t.state){case"running":h=Date.now(),l&&f();break;case"suspended":document.hidden||d++,l&&d>=e?c(U("suspended")):setTimeout(p,n)}}catch(t){c(t)}};p(),o=function(){l||(l=!0,h>0&&f())}}));return[a,o]}(r),c=a[0],l=a[1],d=u(c.then((function(t){return function(t){for(var e=0,n=0;n<t.length;++n)e+=Math.abs(t[n]);return e}(t.getChannelData(0).subarray(n))}),(function(t){if("timeout"===t.name||"suspended"===t.name)return-3;throw t})));return function(){return l(),d}}();var t,e,n,r},screenFrame:function(){var t=this;if(R()&&H()&&M())return function(){return Promise.resolve(void 0)};var e=K();return function(){return(0,r.sH)(t,void 0,void 0,(function(){var t,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,e()];case 1:return t=r.sent(),[2,[(n=function(t){return null===t?null:p(t,10)})(t[0]),n(t[1]),n(t[2]),n(t[3])]]}}))}))}},canvas:function(){return function(t){var e,n,r,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)?n=r="unsupported":(i=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(a),t?n=r="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 n="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(n,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(n,4,45)}(t,e);var n=W(t),r=W(t);if(n!==r)return["unstable","unstable"];!function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var i=r[n],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,n]}(s,a),n=e[0],r=e[1]));return{winding:i,geometry:n,text:r}}(R()&&H()&&M())},osCpu:function(){return navigator.oscpu},languages:function(){var t,e=navigator,n=[],r=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==r&&n.push([r]),Array.isArray(e.languages))T()&&f([!("MediaSettingsRange"in(t=window)),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3||n.push(e.languages);else if("string"==typeof e.languages){var i=e.languages;i&&n.push(i.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return h(d(navigator.deviceMemory),void 0)},screenResolution:function(){var t,e,n;if(!(R()&&H()&&M()))return t=screen,(n=[(e=function(t){return h(l(t),null)})(t.width),e(t.height)]).sort().reverse(),n},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 n=(new e).resolvedOptions().timeZone;if(n)return n}var r,i=(r=(new Date).getFullYear(),-Math.max(d(new Date(r,0,1).getTimezoneOffset()),d(new Date(r,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(!(C()||(t=window,e=navigator,f(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!C())))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&&R()&&!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=[],n=0;n<t.length;++n){var r=t[n];if(r){for(var i=[],o=0;o<r.length;++o){var s=r[o];i.push({type:s.type,suffixes:s.suffixes})}e.push({name:r.name,description:r.description,mimeTypes:i})}}return e}},touchSupport:function(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=l(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return{maxTouchPoints:n,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],e=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<n.length;e++){var r=n[e],i=window[r];i&&"object"==typeof i&&t.push(r)}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 n=e[t];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}},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 nt("no-preference")?0:nt("high")||nt("more")?1:nt("low")||nt("less")?-1:nt("forced")?10:void 0},reducedMotion:function(){return!!rt("reduce")||!rt("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,n=st.acosh||at,r=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:n(1e308),acoshPf:(t=1e154,st.log(t+st.sqrt(t*t-1))),asin:r(.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"),n=null!==(t=e.attributionSourceId)&&void 0!==t?t:e.attributionsourceid;return void 0===n?void 0:String(n)},audioBaseLatency:function(){if(!(N()||R()))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,n,r,i,o,s,a=yt(t.cache);if(!a)return-1;if(!vt(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===(n=a.getParameter(a.VENDOR))||void 0===n?void 0:n.toString())||"",vendorUnmasked:c?null===(r=a.getParameter(c.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.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(!vt(e))return-2;var n=e.getSupportedExtensions(),r=e.getContextAttributes(),i=[],o=[],s=[],a=[],c=[];if(r)for(var u=0,l=Object.keys(r);u<l.length;u++){var d=l[u];o.push("".concat(d,"=").concat(r[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(n)for(var y=0,g=n;y<g.length;y++){var m=g[y];if(!(m===pt&&bt()||"WEBGL_polygon_mode"===m&&(T()||R()))){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 B=E[A],S=0,x=ft;S<x.length;S++){var I=x[S],L=gt(e,B,I);c.push("".concat(B,".").concat(I,"=").concat(L.join(",")))}return a.sort(),s.sort(),{contextAttributes:o,parameters:s,shaderPrecisions:c,extensions:n,extensionParameters:a,unsupportedExtensions:i}}};function At(t){var e=function(t){if(N())return.4;if(R())return!P()||H()&&M()?.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),n=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(n))}}function Et(t){return JSON.stringify(t,(function(t,e){return e instanceof Error?(n=e,(0,r.Cl)({name:n.name,message:n.message,stack:null===(i=n.stack)||void 0===i?void 0:i.split("\n")},n)):e;var n,i}),2)}function Bt(t){return L(function(t){for(var e="",n=0,r=Object.keys(t).sort();n<r.length;n++){var i=r[n],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 St(t){return void 0===t&&(t=50),function(t,e){void 0===e&&(e=1/0);var n=window.requestIdleCallback;return n?new Promise((function(t){return n.call(window,(function(){return t()}),{timeout:e})})):o(Math.min(t,e))}(t,2*t)}function xt(t,e){var n=Date.now();return{get:function(o){return(0,r.sH)(this,void 0,void 0,(function(){var s,a,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return s=Date.now(),[4,t()];case 1:return a=r.sent(),c=function(t){var e,n=At(t);return{get visitorId(){return void 0===e&&(e=Bt(this.components)),e},set visitorId(t){e=t},confidence:n,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-n,"\nvisitorId: ").concat(c.visitorId,"\ncomponents: ").concat(Et(a),"\n```")),[2,c]}}))}))}}}var It={load:function(t){var e;return void 0===t&&(t={}),(0,r.sH)(this,void 0,void 0,(function(){var n,o,s;return(0,r.YH)(this,(function(r){switch(r.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)}}(),n=t.delayFallback,o=t.debug,[4,St(n)];case 1:return r.sent(),s=function(t){return k(wt,t,[])}({cache:{},debug:o}),[2,xt(s,o)]}}))}))},hashComponents:Bt,componentsToDebugString:Et}},6586:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(2049),i=n(1882),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;const a=function(t,e){if((0,r.A)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!(0,i.A)(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},6612:(t,e,n)=>{"use strict";var r;n.d(e,{y:()=>r}),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"}(r||(r={}))},6632:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(5917);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r.A),n}i.Cache=r.A;const o=i},6666:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},6733:(t,e,n)=>{"use strict";n.d(e,{B:()=>w});var r=n(853),i=n(8058),o=n(1472),s=n(2049),a=n(6666),c=n(1879);const u={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}},l="mmws-source-line-solid",d="mmws-layer-line-solid",h="mmws-layer-icon-line-symbol",f="mmws-source-line-dashed",p="mmws-layer-line-dashed",y="mmws-source-icon-connector",g="mmws-layer-icon-connector",m="mmws-source-icon-marker",_="mmws-layer-icon-marker",b=[d,h,p,g,_],v=[l,f,y,m];class w{_maplibreMap;_routeStyle=u;_styleDiffs={};_filterBy="venue";_curVenue=null;_curBuilding=null;_curOrdinal=null;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((0,s.A)(t)&&t.length){const e=t.slice(1,t.length-1);this._routeStyle.markers={from:t[0],to:(0,a.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){const{instructions:n,points:{coordinates:r}}=t,{lineFeatures:i,connectorFeatures:o,dashedLineFeatures:s,markerFeatures:a}=this._classifyFeatures(n,r,e);this._renderSolidLines(i),this._renderLineSymbols(l,h),!0!==this._routeStyle.disableDashedLine&&this._renderDashedLines(s),this._renderConnectors(o),this._renderMarkers(a)}remove(){b.forEach((t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.removeLayer(t)})),v.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,n){const r=[],o=[],s=[],c=[],u=[];(0,i.A)(t,((n,i)=>{const{venue_id:s,building_id:a,floor_id:c,ordinal:l,sign:d,type:h,interval:[f,p]}=n;if(function(t){return 5===t}(d))u.push(n);else if(function(t){return 100===t||-100===t}(d)){0!==i&&i!==t.length-1&&o.push(this._createIconFeature(`connector-${o.length}`,e[f],{...A({venue_id:s,building_id:a,floor_id:c,ordinal:l}),icon:h}));const n=t[i+1];if(n){const{venue_id:t,building_id:r,floor_id:i,ordinal:s}=n;o.push(this._createIconFeature(`connector-${o.length}`,e[p],{...A({venue_id:t,building_id:r,floor_id:i,ordinal:s}),icon:h}))}}else r.push(this._createLineFeature(`solid-line-${r.length}`,e.slice(f,p+1),A({venue_id:s,building_id:a,floor_id:c,ordinal:l,isShuttleBus:E(d)?1:0})))}));const l=t[0],{venue_id:d,building_id:h,floor_id:f,ordinal:p}=l,y=t[t.length-1],{venue_id:g,building_id:m,floor_id:_,ordinal:b}=y,v=e[0],w=e[e.length-1],B=n[0],S=n[n.length-1],x=n.slice(1,n.length-1);return B&&s.push(this._createLineFeature(`dashed-line-${s.length}`,[B,v],A({venue_id:d,building_id:h,floor_id:f,ordinal:p}))),S&&s.push(this._createLineFeature(`dashed-line-${s.length}`,[w,S],A({venue_id:g,building_id:m,floor_id:_,ordinal:b}))),u.length&&x.length&&u.forEach((({venue_id:t,building_id:n,floor_id:r,ordinal:i,interval:[o]},u)=>{s.push(this._createLineFeature(`dashed-line-${s.length}`,[e[o],x[u]],A({venue_id:t,building_id:n,floor_id:r,ordinal:i}))),c.push(this._createIconFeature(`marker-${c.length}`,x[u],{...A({venue_id:t,building_id:n,floor_id:r,ordinal:i,markerType:`stops_${u}`}),icon:this._routeStyle.markers.stops[u]??(0,a.A)(this._routeStyle.markers.stops),iconSize:this._routeStyle.markerIconSize}))})),c.push(this._createIconFeature(`marker-${c.length}`,B??v,{...A({venue_id:d,building_id:h,floor_id:f,ordinal:p,markerType:"from"}),icon:this._routeStyle.markers.from,iconSize:this._routeStyle.markerIconSize})),c.push(this._createIconFeature(`marker-${c.length}`,S??w,{...A({venue_id:g,building_id:m,floor_id:_,ordinal:b,markerType:"to"}),icon:this._routeStyle.markers.to,iconSize:this._routeStyle.markerIconSize})),{lineFeatures:r,connectorFeatures:o,dashedLineFeatures:s,markerFeatures:c}}_createLineFeature(t,e,n){return{id:t,type:"Feature",geometry:{type:"LineString",coordinates:e},properties:n}}_createIconFeature(t,e,n){return{id:t,type:"Feature",geometry:{type:"Point",coordinates:e},properties:n}}_renderSolidLines(t){this._addCollectionSource(l,t),this._addLineLayer(l,d,{"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(f,t),this._addLineLayer(f,p,{"line-color":this._routeStyle.dashedLineColor,"line-width":this._routeStyle.dashedLineWidth,"line-dasharray":[.1,1.8]})}_renderConnectors(t){this._addCollectionSource(y,t),this._addIconLayer(y,g)}_renderMarkers(t){this._addCollectionSource(m,t),this._addIconLayer(m,_,{"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,n){this._maplibreMap.addLayer({id:e,type:"line",source:t,layout:{"line-join":"round","line-cap":"round"},paint:{"line-width":4,...n||{}}})}_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]}})}_addIconLayer(t,e,n){this._maplibreMap.addLayer({id:e,type:"symbol",source:t,layout:{"icon-image":["get","icon"],"icon-size":["case",["has","iconSize"],["get","iconSize"],1],...n||{}}})}_updateStyleProperties(t){if(this._styleDiffs=B(this._routeStyle,t??u),t){if(Object.keys(this._styleDiffs).length){const t={...this._routeStyle.lineSymbol,...this._styleDiffs.lineSymbol??{}},e=this._styleDiffs.markers;let n=this._routeStyle.markers;const r={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&&(n={...n,...e}),this._routeStyle={...this._routeStyle,...this._styleDiffs,...r,...i,markers:n,lineSymbol:t}}}else this._routeStyle=u}async _loadMarkerIcons(){const{markers:t,lineSymbol:e}=this._styleDiffs;if(e?.image&&await(0,r.K)(this._maplibreMap,e.image),t&&Object.keys(t).length){const{from:e,to:n,stops:i}=t;if(e&&await(0,r.K)(this._maplibreMap,e),n&&await(0,r.K)(this._maplibreMap,n),i&&i.length){const t=i.filter((t=>!!t));t.length&&await Promise.all(t.map((t=>(0,r.K)(this._maplibreMap,t))))}}}async _updateLayers(){if(!this._maplibreMap.getLayer(d))return;const{indoorLineColor:t,outdoorLineColor:e,dashedLineColor:n,shuttleBusLineColor:r,lineWidth:i,dashedLineWidth:o,disableDashedLine:s,inactiveRouteOpacity:c,outdoorLineOpacity:u,markerIconSize:l,markers:f,lineSymbol:y}=this._styleDiffs;if((t||e||r)&&this._maplibreMap.setPaintProperty(d,"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(d,"line-width",i),"boolean"==typeof s?s?this._maplibreMap.setPaintProperty(p,"line-color","transparent"):(this._maplibreMap.setPaintProperty(p,"line-color",this._routeStyle.dashedLineColor),this._maplibreMap.setPaintProperty(p,"line-width",this._routeStyle.dashedLineWidth)):!0!==this._routeStyle.disableDashedLine&&(n&&this._maplibreMap.setPaintProperty(p,"line-color",n),void 0!==o&&o+""&&this._maplibreMap.setPaintProperty(p,"line-width",o)),void 0!==c&&c+""&&this._filterRouteOpacity(),void 0!==l&&l+""&&this._maplibreMap.setLayoutProperty(_,"icon-size",l),f&&Object.keys(f).length){const{from:t,to:e,stops:n}=f,r=this._maplibreMap.getSource(m),i=await r.getData();i.features=i.features.map((r=>{const{markerType:i}=r.properties;if(void 0!==t&&"from"===i&&(r.properties.icon=t),void 0!==e&&"to"===i&&(r.properties.icon=e),n&&i.includes("stops")){const t=parseInt(i.split("_")[1]);r.properties.icon=n[t]??(0,a.A)(n)}return r})),r.setData(i)}if(y){const{image:t,size:e,spacing:n}=y;void 0!==t&&this._maplibreMap.setLayoutProperty(h,"icon-image",t),void 0!==e&&e+""&&this._maplibreMap.setLayoutProperty(h,"icon-size",e),void 0!==n&&n+""&&this._maplibreMap.setLayoutProperty(h,"symbol-spacing",n)}void 0!==u&&u+""&&(this._maplibreMap.setPaintProperty(d,"line-opacity",["case",["==",["get","floor_id"],null],u,1]),this._maplibreMap.setPaintProperty(h,"icon-opacity",["case",["==",["get","floor_id"],null],u,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]}b.forEach((e=>{this._maplibreMap.getLayer(e)&&this._maplibreMap.setPaintProperty(e,e.includes("layer-line")?"line-opacity":"icon-opacity",t)}))}}function A(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>[t,(0,c.A)(e)?e+"":e])))}function E(t){return(0,o.A)(t,104,108)}function B(t,e){const n={};for(const r in e){const i=t[r],o=e[r];if("markers"===r||"lineSymbol"===r)if((0,s.A)(o)){const t=o.slice(1,o.length-1);n[r]={from:o[0],to:(0,a.A)(o),stops:t.length?t:[o[0]]}}else{const t=B(i,o);Object.keys(t).length&&(n[r]=t)}else o+""!=i+""&&(n[r]="stops"===r?o??[null]:o)}return n}},6748:(t,e,n)=>{"use strict";e.VV=void 0,e.w=function(t,e){return Buffer.from(function(t,e){var n=(0,i.ellipticCurve)(),a=new o.PrivateKey(void 0,n),c=t instanceof Uint8Array?new o.PublicKey(t,n):o.PublicKey.fromHex(t,n),u=a.encapsulate(c,(0,i.isHkdfKeyCompressed)()),l=a.publicKey.toBytes((0,i.isEphemeralKeyCompressed)()),d=(0,s.symEncrypt)(u,e);return(0,r.concatBytes)(l,d)}(t,e))};var r=n(6527),i=n(4928),o=n(9065),s=n(2158);var a=n(4928);Object.defineProperty(e,"VV",{enumerable:!0,get:function(){return a.ECIES_CONFIG}});var c=n(9065);s.aesEncrypt,s.aesDecrypt,s.symEncrypt,s.symDecrypt,s.decodeHex,s.getValidSecret,s.remove0x},6787:(t,e,n)=>{"use strict";function r(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}n.d(e,{A:()=>r})},6832:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(6984),i=n(8446),o=n(5353),s=n(3149);const a=function(t,e,n){if(!(0,s.A)(n))return!1;var a=typeof e;return!!("number"==a?(0,i.A)(n)&&(0,o.A)(e,n.length):"string"==a&&e in n)&&(0,r.A)(n[e],t)}},6838:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(){this.__data__=[],this.size=0}},6847:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(139),i=n(8556),o=n(6501);const s={isBrowser:!0,classes:{URLSearchParams:r.A,FormData:i.A,Blob:o.A},protocols:["http","https","file","blob","url","data"]}},6912:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},6983:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return t!=t}},6984:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=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,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.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(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}y(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&y(t,"error",e,n)}(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,n,r){var i,o,s,u;if(a(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(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,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):p(i,i.length)}function f(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function y(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);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){r.once&&t.removeEventListener(e,i),n(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=[],n=1;n<arguments.length;n++)e.push(arguments[n]);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)r(c,this,e);else{var u=c.length,l=p(c,u);for(n=0;n<u;++n)r(l[n],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 n,r,i,o,s;if(a(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);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,n)=>{"use strict";n.d(e,{A:()=>f});var r=n(7275),i=n(3853),o=n(807),s=n(4062),a=n(8458),c=n(5579),u=n(3820),l=n(7110),d=n(7837),h=n(8382);const f="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){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 B(){b&&b(),v&&v(),f.cancelToken&&f.cancelToken.unsubscribe(g),f.signal&&f.signal.removeEventListener("abort",g)}let S=new XMLHttpRequest;function x(){if(!S)return;const r=l.A.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),o={data:w&&"text"!==w&&"json"!==w?S.response:S.responseText,status:S.status,statusText:S.statusText,headers:r,config:t,request:S};(0,i.A)((function(t){e(t),B()}),(function(t){n(t),B()}),o),S=null}S.open(f.method.toUpperCase(),f.url,!0),S.timeout=f.timeout,"onloadend"in S?S.onloadend=x:S.onreadystatechange=function(){S&&4===S.readyState&&(0!==S.status||S.responseURL&&0===S.responseURL.indexOf("file:"))&&setTimeout(x)},S.onabort=function(){S&&(n(new s.A("Request aborted",s.A.ECONNABORTED,t,S)),S=null)},S.onerror=function(){n(new s.A("Network Error",s.A.ERR_NETWORK,t,S)),S=null},S.ontimeout=function(){let e=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const r=f.transitional||o.A;f.timeoutErrorMessage&&(e=f.timeoutErrorMessage),n(new s.A(e,r.clarifyTimeoutError?s.A.ETIMEDOUT:s.A.ECONNABORTED,t,S)),S=null},void 0===p&&y.setContentType(null),"setRequestHeader"in S&&r.A.forEach(y.toJSON(),(function(t,e){S.setRequestHeader(e,t)})),r.A.isUndefined(f.withCredentials)||(S.withCredentials=!!f.withCredentials),w&&"json"!==w&&(S.responseType=f.responseType),E&&([_,v]=(0,d.C1)(E,!0),S.addEventListener("progress",_)),A&&S.upload&&([m,b]=(0,d.C1)(A),S.upload.addEventListener("progress",m),S.upload.addEventListener("loadend",b)),(f.cancelToken||f.signal)&&(g=e=>{S&&(n(!e||e.type?new a.A(null,t,S):e),S.abort(),S=null)},f.cancelToken&&f.cancelToken.subscribe(g),f.signal&&(f.signal.aborted?g():f.signal.addEventListener("abort",g)));const I=(0,c.A)(f.url);I&&-1===u.A.protocols.indexOf(I)?n(new s.A("Unsupported protocol "+I+":",s.A.ERR_BAD_REQUEST,t)):S.send(p||null)}))}},7064:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(7271),i=n(3938),o=Object.prototype.hasOwnProperty;const s=function(t){if(!(0,r.A)(t))return(0,i.A)(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},7076:(t,e,n)=>{"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 r=n(7202),i=n(2318),o=n(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 r.HashMD{constructor(t=32){super(64,t,8,!1),this.A=0|r.SHA256_IV[0],this.B=0|r.SHA256_IV[1],this.C=0|r.SHA256_IV[2],this.D=0|r.SHA256_IV[3],this.E=0|r.SHA256_IV[4],this.F=0|r.SHA256_IV[5],this.G=0|r.SHA256_IV[6],this.H=0|r.SHA256_IV[7]}get(){const{A:t,B:e,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[t,e,n,r,i,o,s,a]}set(t,e,n,r,i,o,s,a){this.A=0|t,this.B=0|e,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(t,e){for(let n=0;n<16;n++,e+=4)a[n]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=a[t-15],n=a[t-2],r=(0,o.rotr)(e,7)^(0,o.rotr)(e,18)^e>>>3,i=(0,o.rotr)(n,17)^(0,o.rotr)(n,19)^n>>>10;a[t]=i+a[t-7]+r+a[t-16]|0}let{A:n,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,r.Chi)(l,d,h)+s[t]+a[t]|0,p=((0,o.rotr)(n,2)^(0,o.rotr)(n,13)^(0,o.rotr)(n,22))+(0,r.Maj)(n,i,c)|0;f=h,h=d,d=l,l=u+e|0,u=c,c=i,i=n,n=e+p|0}n=n+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(n,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|r.SHA224_IV[0],this.B=0|r.SHA224_IV[1],this.C=0|r.SHA224_IV[2],this.D=0|r.SHA224_IV[3],this.E=0|r.SHA224_IV[4],this.F=0|r.SHA224_IV[5],this.G=0|r.SHA224_IV[6],this.H=0|r.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 r.HashMD{constructor(t=64){super(128,t,16,!1),this.Ah=0|r.SHA512_IV[0],this.Al=0|r.SHA512_IV[1],this.Bh=0|r.SHA512_IV[2],this.Bl=0|r.SHA512_IV[3],this.Ch=0|r.SHA512_IV[4],this.Cl=0|r.SHA512_IV[5],this.Dh=0|r.SHA512_IV[6],this.Dl=0|r.SHA512_IV[7],this.Eh=0|r.SHA512_IV[8],this.El=0|r.SHA512_IV[9],this.Fh=0|r.SHA512_IV[10],this.Fl=0|r.SHA512_IV[11],this.Gh=0|r.SHA512_IV[12],this.Gl=0|r.SHA512_IV[13],this.Hh=0|r.SHA512_IV[14],this.Hl=0|r.SHA512_IV[15]}get(){const{Ah:t,Al:e,Bh:n,Bl:r,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,n,r,i,o,s,a,c,u,l,d,h,f,p,y]}set(t,e,n,r,i,o,s,a,c,u,l,d,h,f,p,y){this.Ah=0|t,this.Al=0|e,this.Bh=0|n,this.Bl=0|r,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 n=0;n<16;n++,e+=4)f[n]=t.getUint32(e),p[n]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|f[t-15],n=0|p[t-15],r=i.rotrSH(e,n,1)^i.rotrSH(e,n,8)^i.shrSH(e,n,7),o=i.rotrSL(e,n,1)^i.rotrSL(e,n,8)^i.shrSL(e,n,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,r,c,f[t-7],f[t-16]);f[t]=0|d,p[t]=0|l}let{Ah:n,Al:r,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),B=y&m^~y&b,S=g&_^~g&v,x=i.add5L(A,E,S,h[t],p[t]),I=i.add5H(x,w,e,B,d[t],f[t]),L=0|x,O=i.rotrSH(n,r,28)^i.rotrBH(n,r,34)^i.rotrBH(n,r,39),k=i.rotrSL(n,r,28)^i.rotrBL(n,r,34)^i.rotrBL(n,r,39),C=n&o^n&a^o&a,T=r&s^r&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|I,0|L)),u=0|a,l=0|c,a=0|o,c=0|s,o=0|n,s=0|r;const R=i.add3L(L,k,T);n=i.add3H(R,I,O,C),r=0|R}({h:n,l:r}=i.add(0|this.Ah,0|this.Al,0|n,0|r)),({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(n,r,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|r.SHA384_IV[0],this.Al=0|r.SHA384_IV[1],this.Bh=0|r.SHA384_IV[2],this.Bl=0|r.SHA384_IV[3],this.Ch=0|r.SHA384_IV[4],this.Cl=0|r.SHA384_IV[5],this.Dh=0|r.SHA384_IV[6],this.Dl=0|r.SHA384_IV[7],this.Eh=0|r.SHA384_IV[8],this.El=0|r.SHA384_IV[9],this.Fh=0|r.SHA384_IV[10],this.Fl=0|r.SHA384_IV[11],this.Gh=0|r.SHA384_IV[12],this.Gl=0|r.SHA384_IV[13],this.Hh=0|r.SHA384_IV[14],this.Hl=0|r.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,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(7275),i=n(3325);const o=Symbol("internals");function s(t){return t&&String(t).trim().toLowerCase()}function a(t){return!1===t||null==t?t:r.A.isArray(t)?t.map(a):String(t)}function c(t,e,n,i,o){return r.A.isFunction(i)?i.call(this,e,n):(o&&(e=n),r.A.isString(e)?r.A.isString(i)?-1!==e.indexOf(i):r.A.isRegExp(i)?i.test(e):void 0:void 0)}class u{constructor(t){t&&this.set(t)}set(t,e,n){const o=this;function c(t,e,n){const i=s(e);if(!i)throw new Error("header name must be a non-empty string");const c=r.A.findKey(o,i);(!c||void 0===o[c]||!0===n||void 0===n&&!1!==o[c])&&(o[c||e]=a(t))}const u=(t,e)=>r.A.forEach(t,((t,n)=>c(t,n,e)));if(r.A.isPlainObject(t)||t instanceof this.constructor)u(t,e);else if(r.A.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))u((0,i.A)(t),e);else if(r.A.isObject(t)&&r.A.isIterable(t)){let n,i,o={};for(const e of t){if(!r.A.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[i=e[0]]=(n=o[i])?r.A.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}u(o,e)}else null!=t&&c(e,t,n);return this}get(t,e){if(t=s(t)){const n=r.A.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(r.A.isFunction(e))return e.call(this,t,n);if(r.A.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=s(t)){const n=r.A.findKey(this,t);return!(!n||void 0===this[n]||e&&!c(0,this[n],n,e))}return!1}delete(t,e){const n=this;let i=!1;function o(t){if(t=s(t)){const o=r.A.findKey(n,t);!o||e&&!c(0,n[o],o,e)||(delete n[o],i=!0)}}return r.A.isArray(t)?t.forEach(o):o(t),i}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];t&&!c(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return r.A.forEach(this,((i,o)=>{const s=r.A.findKey(n,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,n)=>e.toUpperCase()+n))}(o):String(o).trim();c!==o&&delete e[o],e[c]=a(i),n[c]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return r.A.forEach(this,((n,i)=>{null!=n&&!1!==n&&(e[i]=t&&r.A.isArray(n)?n.join(", "):n)})),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 n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[o]=this[o]={accessors:{}}).accessors,n=this.prototype;function i(t){const i=s(t);e[i]||(!function(t,e){const n=r.A.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}(n,t),e[i]=!0)}return r.A.isArray(t)?t.forEach(i):i(t),this}}u.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r.A.reduceDescriptors(u.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),r.A.freezeMethods(u);const l=u},7202:(t,e,n)=>{"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,n){return t&e^~t&n},e.Maj=function(t,e,n){return t&e^t&n^e&n};const r=n(9175);function i(t,e,n,r){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,a,r)}class o extends r.Hash{constructor(t,e,n,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(t),this.view=(0,r.createView)(this.buffer)}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const{view:e,buffer:n,blockLen:i}=this,o=t.length;for(let s=0;s<o;){const a=Math.min(i-this.pos,o-s);if(a!==i)n.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(e,0),this.pos=0);else{const e=(0,r.createView)(t);for(;i<=o-s;s+=i)this.process(e,s)}}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:o,isLE:s}=this;let{pos:a}=this;e[a++]=128,(0,r.clean)(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let t=a;t<o;t++)e[t]=0;i(n,o-8,BigInt(8*this.length),s),this.process(n,0);const c=(0,r.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 n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return t.destroyed=o,t.finished=i,t.length=r,t.pos=s,r%e&&t.buffer.set(n),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,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(9042),i=Object.prototype.hasOwnProperty;const o=function(t,e,n,o,s,a){var c=1&n,u=(0,r.A)(t),l=u.length;if(l!=(0,r.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,_,n,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,n)=>{"use strict";n.d(e,{A:()=>i});var r=Object.prototype;const i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},7275:(t,e,n)=>{"use strict";n.d(e,{A:()=>W});var r=n(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"),B=l("URLSearchParams"),[S,x,I,L]=["ReadableStream","Request","Response","Headers"].map(l);function O(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),h(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}function k(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=t=>!f(t)&&t!==C;const R=(P="undefined"!=typeof Uint8Array&&o(Uint8Array),t=>P&&t instanceof P);var P;const M=l("HTMLFormElement"),F=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),H=l("RegExp"),j=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};O(n,((n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)})),Object.defineProperties(t,r)};const N=l("AsyncFunction"),U=(V="function"==typeof setImmediate,D=g(C.postMessage),V?setImmediate:D?($=`axios@${Math.random()}`,z=[],C.addEventListener("message",(({source:t,data:e})=>{t===C&&e===$&&z.length&&z.shift()()}),!1),t=>{z.push(t),C.postMessage($,"*")}):t=>setTimeout(t));var V,D,$,z;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(C):"undefined"!=typeof process&&process.nextTick||U,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:S,isRequest:x,isResponse:I,isHeaders:L,isUndefined:f,isDate:v,isFile:w,isBlob:A,isRegExp:H,isFunction:g,isStream:t=>_(t)&&g(t.pipe),isURLSearchParams:B,isTypedArray:R,isFileList:E,forEach:O,merge:function t(){const{caseless:e}=T(this)&&this||{},n={},r=(r,i)=>{const o=e&&k(n,i)||i;b(n[o])&&b(r)?n[o]=t(n[o],r):b(r)?n[o]=t({},r):h(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&O(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:i}={})=>(O(e,((e,i)=>{n&&g(e)?t[i]=(0,r.A)(e,n):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,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{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],r&&!r(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==n&&o(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:c,kindOfTest:l,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(h(t))return t;let e=t.length;if(!m(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[s]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:j,freezeMethods:t=>{j(t,((e,n)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];g(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return h(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:k,global:C,isContextDefined:T,isSpecCompliantForm:function(t){return!!(t&&g(t.append)&&"FormData"===t[a]&&t[s])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(_(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=h(t)?[]:{};return O(t,((t,e)=>{const o=n(t,r+1);!f(o)&&(i[e]=o)})),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:N,isThenable:t=>t&&(_(t)||g(t))&&g(t.then)&&g(t.catch),setImmediate:U,asap:G,isIterable:t=>null!=t&&g(t[s])}},7311:(t,e,n)=>{"use strict";n.d(e,{O:()=>a,o:()=>u});var r=n(6568),i=n(8330),o=n(8693),s=n(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:n,platform:r}=t;this._appId=e,this._secret=n,this._platform=r,this._version=r?.sdkVersion||i.rE,this._identifier=r?.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 n=0;for(;n<=t;)try{const t=await this._tokenGetter();if(t)return void this._updateContext(t)}catch(r){if(n++,n>t)throw this._globalDispatcher.call("unauthorized"),r;await this._retryDelay(n,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 r.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:n,identifier:r,sdkVersion:i}=t;this._accessToken=e,this._expiredTime=n,void 0!==r&&(this._identifier=r),void 0!==i&&(this._version=i)}_fetchToken(){return(0,o.i)(this._appId,this._secret,this._platform)}async _retryDelay(t,e){const n=e*Math.pow(2,t-1);return console.warn(`Retrying in ${n} ms... (Attempt ${t})`),new Promise((t=>setTimeout(t,n)))}}},7346:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(2851),i=n(7465),o=n(5353),s=n(3149),a=n(901);const c=function(t,e,n,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=n;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,r.A)(h,f,p),h=h[f]}return t}},7352:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(7275);const i=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){r.A.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}},7422:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(423),i=n(7064),o=n(8446);const s=function(t){return(0,o.A)(t)?(0,r.A)(t):(0,i.A)(t)}},7465:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(2049),i=n(6586),o=n(5722),s=n(8182);const a=function(t,e){return(0,r.A)(t)?t:(0,i.A)(t,e)?[t]:(0,o.A)((0,s.A)(t))}},7500:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(6318);const i=function(t,e,n){var i=null==t?void 0:(0,r.A)(t,e);return void 0===i?n:i}},7511:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(9789),i=n(5054);const o=function(t,e){return null!=t&&(0,i.A)(t,e,r.A)}},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,o=a(t),s=o[0],c=o[1],u=new i(function(t,e,n){return 3*(e+n)/4-n}(0,s,c)),l=0,d=c>0?s-4:s;for(n=0;n<d;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===c&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[l++]=255&e);1===c&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],s=16383,a=0,u=r-i;a<u;a+=s)o.push(c(t,a,a+s>u?u:a+s));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=o[s],r[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 n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,r){for(var i,o,s=[],a=e;a<r;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7536:(t,e,n)=>{"use strict";n.d(e,{A:()=>w});var r=n(7275),i=n(2125),o=n(5978),s=n(4662),a=n(6013),c=n(7887),u=n(8458),l=n(4874),d=n(9575),h=n(9888),f=n(665),p=n(4062),y=n(605),g=n(8562),m=n(7110),_=n(6263),b=n(7693);const v=function t(e){const n=new o.A(e),a=(0,i.A)(o.A.prototype.request,n);return r.A.extend(a,o.A.prototype,n,{allOwnKeys:!0}),r.A.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return t((0,s.A)(e,n))},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)(r.A.isHTMLForm(t)?new FormData(t):t),v.getAdapter=_.A.getAdapter,v.HttpStatusCode=b.A,v.default=v;const w=v},7678:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aes256cbc=e.aes256gcm=void 0;var r=n(469);e.aes256gcm=function(t,e,n){return(0,r.gcm)(t,e,n)};e.aes256cbc=function(t,e,n){return(0,r.cbc)(t,e)}},7681:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(7919),i=n(8335),o=n(5917);const s=function(t,e){var n=this.__data__;if(n instanceof r.A){var s=n.__data__;if(!i.A||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o.A(s)}return n.set(t,e),this.size=n.size,this}},7693:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const r={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(r).forEach((([t,e])=>{r[e]=t}));const i=r},7757:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.aesDecrypt=e.aesEncrypt=e.symDecrypt=e.symEncrypt=void 0;var r=n(6527),i=n(8489),o=n(7678),s=n(83),a=n(4928),c=n(1666);e.symEncrypt=function(t,e,n){return u(l,t,e,n)};function u(t,e,n,r){var i=(0,a.symmetricAlgorithm)();if("aes-256-gcm"===i)return t(o.aes256gcm,e,n,(0,a.symmetricNonceLength)(),c.AEAD_TAG_LENGTH,r);if("xchacha20"===i)return t(s.xchacha20,e,n,c.XCHACHA20_NONCE_LENGTH,c.AEAD_TAG_LENGTH,r);if("aes-256-cbc"===i)return t(o.aes256cbc,e,n,16,0);throw new Error("Not implemented")}function l(t,e,n,o,s,a){var c=(0,i.randomBytes)(o),u=t(e,c,a).encrypt(n);if(0===s)return(0,r.concatBytes)(c,u);var l=u.length-s,d=u.subarray(0,l),h=u.subarray(l);return(0,r.concatBytes)(c,h,d)}function d(t,e,n,i,o,s){var a=n.subarray(0,i),c=t(e,Uint8Array.from(a),s),u=n.subarray(i);if(0===o)return c.decrypt(u);var l=u.subarray(0,o),d=u.subarray(o);return c.decrypt((0,r.concatBytes)(d,l))}e.symDecrypt=function(t,e,n){return u(d,t,e,n)},e.aesEncrypt=e.symEncrypt,e.aesDecrypt=e.symDecrypt},7808:(t,e,n)=>{"use strict";n.d(e,{Cm:()=>i,EC:()=>s,Uk:()=>o});var r=n(7311);function i(){return r.o.getInstance().getIdentifier()}function o(t){r.o.getInstance().setTokenGetter(t)}function s(){return r.o.getInstance().setupTokenManager()}},7809:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},7837:(t,e,n)=>{"use strict";n.d(e,{C1:()=>s,Vj:()=>a,mM:()=>c});var r=n(3873),i=n(66),o=n(7275);const s=(t,e,n=3)=>{let o=0;const s=(0,r.A)(50,250);return(0,i.A)((n=>{const r=n.loaded,i=n.lengthComputable?n.total:void 0,a=r-o,c=s(a);o=r;t({loaded:r,total:i,progress:i?r/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&r<=i?(i-r)/c:void 0,event:n,lengthComputable:null!=i,[e?"download":"upload"]:!0})}),n)},a=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},c=t=>(...e)=>o.A.asap((()=>t(...e)))},7880:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=/\s/;const i=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e}},7887:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(7275);const i=function(t){function e(t,n,i,o){let s=t[o++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),c=o>=t.length;if(s=!s&&r.A.isArray(i)?i.length:s,c)return r.A.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a;i[s]&&r.A.isObject(i[s])||(i[s]=[]);return e(t,n,i[s],o)&&r.A.isArray(i[s])&&(i[s]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(i[s])),!a}if(r.A.isFormData(t)&&r.A.isFunction(t.entries)){const n={};return r.A.forEachEntry(t,((t,i)=>{e(function(t){return r.A.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),i,n,0)})),n}return null}},7919:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(6838),i=n(2384),o=n(4787),s=n(8207),a=n(1031);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const u=c},7926:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}},7960:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(9396),i=n(7422);const o=function(t){for(var e=(0,i.A)(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,(0,r.A)(s)]}return e}},7980:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(5154),i=n(9501),o=n(2141),s=n(7926),a=n(2049);const c=function(t,e,n){var c=(0,a.A)(t)?r.A:s.A,u=arguments.length<3;return c(t,(0,o.A)(e,4),n,u,i.A)}},8058:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(2641),i=n(9501),o=n(9922),s=n(2049);const a=function(t,e){return((0,s.A)(t)?r.A:i.A)(t,(0,o.A)(e))}},8104:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){return null==t?void 0:t[e]}},8167:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(8287),i=n(6748);void 0===globalThis.Buffer&&(globalThis.Buffer=r.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,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(52);const i=function(t){return null==t?"":(0,r.A)(t)}},8207:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(169);const i=function(t){return(0,r.A)(this.__data__,t)>-1}},8262:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(9034),i=n(6787);function o(t,e,n){let o=!(0,r.A)(e);return t&&(o||0==n)?(0,i.A)(t,e):e}},8287:(t,e,n)=>{"use strict";const r=n(7526),i=n(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,n){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,n)}function u(t,e,n){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 n=0|y(t,e);let r=a(n);const i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(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,n);if("undefined"!=typeof SharedArrayBuffer&&(K(t,SharedArrayBuffer)||t&&K(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}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,n);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),n=a(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function f(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,c.prototype),r}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 n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(i)return r?-1:W(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,n);case"utf8":case"utf-8":return x(this,e,n);case"ascii":return L(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function _(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){let o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let r=-1;for(o=n;o<a;o++)if(u(t,o)===u(e,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(u(t,o+r)!==u(e,r)){n=!1;break}if(n)return o}return-1}function v(t,e,n,r){n=Number(n)||0;const i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=e.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(Y(r))return s;t[n+s]=r}return s}function w(t,e,n,r){return Z(W(e,t.length-n),t,n,r)}function A(t,e,n,r){return Z(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function E(t,e,n,r){return Z(q(e),t,n,r)}function B(t,e,n,r){return Z(function(t,e){let n,r,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function x(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i<n;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(o=c));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=t[i+1],r=t[i+2],a=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(t){const e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=I));return n}(r)}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,n){return u(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},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 n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?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 n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=c.allocUnsafe(e);let i=0;for(n=0;n<t.length;++n){let e=t[n];if(K(e,Uint8Array))i+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},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?x(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 n=e.IS;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,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===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(o,s),u=this.slice(r,i),l=t.slice(e,n);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,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return _(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return _(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":case"latin1":case"binary":return A(this,t,e,n);case"base64":return E(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const I=4096;function L(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function k(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=e;r<n;++r)i+=X[t[r]];return i}function C(t,e,n){const r=t.slice(e,n);let i="";for(let t=0;t<r.length-1;t+=2)i+=String.fromCharCode(r[t]+256*r[t+1]);return i}function T(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,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(n+r>t.length)throw new RangeError("Index out of range")}function P(t,e,n,r,i){D(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function M(t,e,n,r,i){D(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function F(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(t,e,n,r,o){return e=+e,n>>>=0,o||F(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function j(t,e,n,r,o){return e=+e,n>>>=0,o||F(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(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||T(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],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=J((function(t){$(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(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||T(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],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<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],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(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,n){return t=+t,e>>>=0,n||R(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,n){return t=+t,e>>>=0,n||R(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,n){return t=+t,e>>>=0,n||R(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 M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,s=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-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+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(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,n){return t=+t,e>>>=0,n||R(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 M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return H(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return H(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const i=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{const o=c.isBuffer(t)?t:c.from(t,r),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=o[i%s]}return this};const N={};function U(t,e,n){N[t]=class extends n{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="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function D(t,e,n,r,i,o){if(t>n||t<e){const r="bigint"==typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new N.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){$(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||z(e,t.length-(n+1))}(r,i,o)}function $(t,e){if("number"!=typeof t)throw new N.ERR_INVALID_ARG_TYPE(e,"number",t)}function z(t,e,n){if(Math.floor(t)!==t)throw $(t,n),new N.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function W(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){return r.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,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=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 n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function J(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},8291:(t,e,n)=>{"use strict";function r(t){return t.layers.filter(s)}function i(t){return t.layers.filter(o)}function o(t){return t.source===a}function s(t){return t.source!==a}n.d(e,{Z3:()=>r,cq:()=>i});const a="indoor-planet"},8330:t=>{"use strict";t.exports={rE:"8.5.0"}},8335:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"Map")},8346:(t,e,n)=>{"use strict";function r(t){return"string"==typeof t&&Boolean(t.trim())}n.d(e,{t:()=>r})},8382:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var r=n(3820),i=n(7275),o=n(6305),s=n(9887),a=n(8262),c=n(4662),u=n(7110),l=n(3967);const d=t=>{const e=(0,c.A)({},t);let n,{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(r.A.hasStandardBrowserEnv||r.A.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if(!1!==(n=y.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];y.setContentType([t||"multipart/form-data",...e].join("; "))}if(r.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,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(2559),i=n(2141),o=n(6224);const s=function(t,e){return t&&t.length?(0,r.A)(t,(0,i.A)(e,2),o.A):void 0}},8412:(t,e,n)=>{"use strict";var r,i,o;n.d(e,{Kp:()=>r,_P:()=>i}),function(t){t.POINT="Point",t.POLYGON="Polygon"}(r||(r={})),function(t){t.POINT="Point",t.POLYGON="Polygon",t.GATE="Gate"}(i||(i={})),function(t){t.DEFAULT_NAME="DefaultName"}(o||(o={}))},8417:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(674),i=Object.prototype.hasOwnProperty;const o=function(t){var e=this.__data__;if(r.A){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},8446:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(9610),i=n(5254);const o=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,r.A)(t)}},8458:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(4062);function i(t,e,n){r.A.call(this,null==t?"canceled":t,r.A.ERR_CANCELED,e,n),this.name="CanceledError"}n(7275).A.inherits(i,r.A,{__CANCEL__:!0});const o=i},8489:(t,e,n)=>{"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),(n,...r)=>({encrypt(s,...a){const c=o(e),u=t(n,c,...r).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(n,s,...r).decrypt(a,...o)}})};const r=n(5297),i=n(6527);function o(t=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(t));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}function s(){if(r.crypto&&"object"==typeof r.crypto.subtle&&null!=r.crypto.subtle)return r.crypto.subtle;throw new Error("crypto.subtle must be defined")}e.utils={async encrypt(t,e,n,r){const i=s(),o=await i.importKey("raw",t,e,!0,["encrypt"]),a=await i.encrypt(n,o,r);return new Uint8Array(a)},async decrypt(t,e,n,r){const i=s(),o=await i.importKey("raw",t,e,!0,["decrypt"]),a=await i.decrypt(n,o,r);return new Uint8Array(a)}};const a="AES-CBC",c="AES-CTR",u="AES-GCM";function l(t){return(n,r,o)=>{(0,i.abytes)(n),(0,i.abytes)(r);const s={name:t,length:8*n.length},l=function(t,e,n){if(t===a)return{name:a,iv:e};if(t===c)return{name:c,counter:e,length:64};if(t===u)return n?{name:u,iv:e,additionalData:n}:{name:u,iv:e};throw new Error("unknown aes block mode")}(t,r,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(n,s,l,t)},decrypt:t=>((0,i.abytes)(t),e.utils.decrypt(n,s,l,t))}}}e.cbc=l(a),e.ctr=l(c),e.gcm=(()=>l(u))()},8510:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.secp256k1_hasher=e.schnorr=e.secp256k1=void 0;const r=n(7076),i=n(9175),o=n(3562),s=n(1761),a=n(4967),c=n(1484),u=n(1705),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h=BigInt(0),f=BigInt(1),p=BigInt(2),y=(t,e)=>(t+e/p)/e;function g(t){const e=l,n=BigInt(3),r=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,n,e)*h%e,y=(0,a.pow2)(f,n,e)*h%e,g=(0,a.pow2)(y,p,e)*d%e,_=(0,a.pow2)(g,i,e)*g%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,n,e)*h%e,B=(0,a.pow2)(E,s,e)*_%e,S=(0,a.pow2)(B,r,e)*d%e,x=(0,a.pow2)(S,p,e);if(!m.eql(m.sqr(x),t))throw new Error("Cannot find square root");return x}const m=(0,a.Field)(l,void 0,void 0,{sqrt:g});e.secp256k1=(0,o.createCurve)({a:h,b:BigInt(7),Fp:m,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=d,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-f*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=n,s=BigInt("0x100000000000000000000000000000000"),c=y(o*t,e),u=y(-r*t,e);let l=(0,a.mod)(t-c*n-u*i,e),h=(0,a.mod)(-c*r-u*o,e);const p=l>s,g=h>s;if(p&&(l=e-l),g&&(h=e-h),l>s||h>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:p,k1:l,k2neg:g,k2:h}}}},r.sha256);const _={};function b(t,...e){let n=_[t];if(void 0===n){const e=(0,r.sha256)(Uint8Array.from(t,(t=>t.charCodeAt(0))));n=(0,c.concatBytes)(e,e),_[t]=n}return(0,r.sha256)((0,c.concatBytes)(n,...e))}const v=t=>t.toRawBytes(!0).slice(1),w=t=>(0,c.numberToBytesBE)(t,32),A=t=>(0,a.mod)(t,l),E=t=>(0,a.mod)(t,d),B=(()=>e.secp256k1.ProjectivePoint)();function S(t){let n=e.secp256k1.utils.normPrivateKeyToScalar(t),r=B.fromPrivateKey(n);return{scalar:r.hasEvenY()?n:E(-n),bytes:v(r)}}function x(t){(0,c.aInRange)("x",t,f,l);const e=A(t*t);let n=g(A(e*t+BigInt(7)));n%p!==h&&(n=A(-n));const r=new B(t,n,f);return r.assertValidity(),r}const I=c.bytesToNumberBE;function L(...t){return E(I(b("BIP0340/challenge",...t)))}function O(t){return S(t).bytes}function k(t,e,n=(0,i.randomBytes)(32)){const r=(0,c.ensureBytes)("message",t),{bytes:o,scalar:s}=S(e),a=(0,c.ensureBytes)("auxRand",n,32),u=w(s^I(b("BIP0340/aux",a))),l=b("BIP0340/nonce",u,o,r),d=E(I(l));if(d===h)throw new Error("sign failed: k is zero");const{bytes:f,scalar:p}=S(d),y=L(f,o,r),g=new Uint8Array(64);if(g.set(f,0),g.set(w(E(p+y*s)),32),!C(g,r,o))throw new Error("sign: Invalid signature produced");return g}function C(t,e,n){const r=(0,c.ensureBytes)("signature",t,64),i=(0,c.ensureBytes)("message",e),o=(0,c.ensureBytes)("publicKey",n,32);try{const t=x(I(o)),e=I(r.subarray(0,32));if(!(0,c.inRange)(e,f,l))return!1;const n=I(r.subarray(32,64));if(!(0,c.inRange)(n,f,d))return!1;const h=L(w(e),v(t),i),p=(s=t,a=n,u=E(-h),B.BASE.multiplyAndAddUnsafe(s,a,u));return!(!p||!p.hasEvenY()||p.toAffine().x!==e)}catch(t){return!1}var s,a,u}e.schnorr={getPublicKey:O,sign:k,verify:C,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:x,pointToBytes:v,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:b,mod:a.mod}};const T=(()=>(0,s.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((t=>t.map((t=>BigInt(t)))))))(),R=(()=>(0,u.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))();e.secp256k1_hasher=(0,s.createHasher)(e.secp256k1.ProjectivePoint,(t=>{const{x:e,y:n}=R(m.create(t[0]));return T(e,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}),e.hashToCurve=e.secp256k1_hasher.hashToCurve,e.encodeToCurve=e.secp256k1_hasher.encodeToCurve},8556:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r="undefined"!=typeof FormData?FormData:null},8562:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(7275);function i(t){return r.A.isObject(t)&&!0===t.isAxiosError}},8593:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(8776);const i=function(t){var e=(0,r.A)(t),n=e%1;return e==e?n?e-n:e:0}},8672:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=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,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(9152),i=n(9575),o=n(6013),s=n(8458),a=n(7110),c=n(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=r.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=r.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=r.A.call(t,t.transformResponse,e.response),e.response.headers=a.A.from(e.response.headers))),Promise.reject(e)}))}},8693:(t,e,n)=>{"use strict";n.d(e,{i:()=>l});var r=n(2658),i=n(5461),o=n(7808),s=n(9588),a=n(8167),c=n(8330);const u=["CORE_SDK",...(0,r.d)()];async function l(t,e,n,r){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)}(n,r),{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:n}=t;if(401===_.status&&7001005===e)throw(0,i.U)(),new Error(n);throw new Error(n||`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"},8719:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9717),i=n(2789),o=n(4841),s=o.A&&o.A.isTypedArray;const a=s?(0,i.A)(s):r.A},8776:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(1694),i=1/0;const o=function(t){return t?(t=(0,r.A)(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},8813:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(674),i=Object.prototype.hasOwnProperty;const o=function(t){var e=this.__data__;return r.A?void 0!==e[t]:i.call(e,t)}},8823:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(3149),i=n(7271),o=n(1493),s=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,r.A)(t))return(0,o.A)(t);var e=(0,i.A)(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},8884:(t,e,n)=>{"use strict";var r;n.d(e,{e:()=>r}),function(t){t.Access="access_control",t.Map="map"}(r||(r={}))},8900:(t,e,n)=>{"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 r=n(2506),i=n(1210),o=n(6527);function s(t,e,n,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=n[0],w=n[1],A=n[2],E=a,B=c,S=u,x=l,I=d,L=h,O=f,k=p,C=y,T=g,R=m,P=_,M=b,F=v,H=w,j=A;for(let t=0;t<s;t+=2)E=E+I|0,M=(0,r.rotl)(M^E,16),C=C+M|0,I=(0,r.rotl)(I^C,12),E=E+I|0,M=(0,r.rotl)(M^E,8),C=C+M|0,I=(0,r.rotl)(I^C,7),B=B+L|0,F=(0,r.rotl)(F^B,16),T=T+F|0,L=(0,r.rotl)(L^T,12),B=B+L|0,F=(0,r.rotl)(F^B,8),T=T+F|0,L=(0,r.rotl)(L^T,7),S=S+O|0,H=(0,r.rotl)(H^S,16),R=R+H|0,O=(0,r.rotl)(O^R,12),S=S+O|0,H=(0,r.rotl)(H^S,8),R=R+H|0,O=(0,r.rotl)(O^R,7),x=x+k|0,j=(0,r.rotl)(j^x,16),P=P+j|0,k=(0,r.rotl)(k^P,12),x=x+k|0,j=(0,r.rotl)(j^x,8),P=P+j|0,k=(0,r.rotl)(k^P,7),E=E+L|0,j=(0,r.rotl)(j^E,16),R=R+j|0,L=(0,r.rotl)(L^R,12),E=E+L|0,j=(0,r.rotl)(j^E,8),R=R+j|0,L=(0,r.rotl)(L^R,7),B=B+O|0,M=(0,r.rotl)(M^B,16),P=P+M|0,O=(0,r.rotl)(O^P,12),B=B+O|0,M=(0,r.rotl)(M^B,8),P=P+M|0,O=(0,r.rotl)(O^P,7),S=S+k|0,F=(0,r.rotl)(F^S,16),C=C+F|0,k=(0,r.rotl)(k^C,12),S=S+k|0,F=(0,r.rotl)(F^S,8),C=C+F|0,k=(0,r.rotl)(k^C,7),x=x+I|0,H=(0,r.rotl)(H^x,16),T=T+H|0,I=(0,r.rotl)(I^T,12),x=x+I|0,H=(0,r.rotl)(H^x,8),T=T+H|0,I=(0,r.rotl)(I^T,7);let N=0;i[N++]=a+E|0,i[N++]=c+B|0,i[N++]=u+S|0,i[N++]=l+x|0,i[N++]=d+I|0,i[N++]=h+L|0,i[N++]=f+O|0,i[N++]=p+k|0,i[N++]=y+C|0,i[N++]=g+T|0,i[N++]=m+R|0,i[N++]=_+P|0,i[N++]=b+M|0,i[N++]=v+F|0,i[N++]=w+H|0,i[N++]=A+j|0}function a(t,e,n,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=n[0],_=n[1],b=n[2],v=n[3];for(let t=0;t<20;t+=2)o=o+u|0,m=(0,r.rotl)(m^o,16),f=f+m|0,u=(0,r.rotl)(u^f,12),o=o+u|0,m=(0,r.rotl)(m^o,8),f=f+m|0,u=(0,r.rotl)(u^f,7),s=s+l|0,_=(0,r.rotl)(_^s,16),p=p+_|0,l=(0,r.rotl)(l^p,12),s=s+l|0,_=(0,r.rotl)(_^s,8),p=p+_|0,l=(0,r.rotl)(l^p,7),a=a+d|0,b=(0,r.rotl)(b^a,16),y=y+b|0,d=(0,r.rotl)(d^y,12),a=a+d|0,b=(0,r.rotl)(b^a,8),y=y+b|0,d=(0,r.rotl)(d^y,7),c=c+h|0,v=(0,r.rotl)(v^c,16),g=g+v|0,h=(0,r.rotl)(h^g,12),c=c+h|0,v=(0,r.rotl)(v^c,8),g=g+v|0,h=(0,r.rotl)(h^g,7),o=o+l|0,v=(0,r.rotl)(v^o,16),y=y+v|0,l=(0,r.rotl)(l^y,12),o=o+l|0,v=(0,r.rotl)(v^o,8),y=y+v|0,l=(0,r.rotl)(l^y,7),s=s+d|0,m=(0,r.rotl)(m^s,16),g=g+m|0,d=(0,r.rotl)(d^g,12),s=s+d|0,m=(0,r.rotl)(m^s,8),g=g+m|0,d=(0,r.rotl)(d^g,7),a=a+h|0,_=(0,r.rotl)(_^a,16),f=f+_|0,h=(0,r.rotl)(h^f,12),a=a+h|0,_=(0,r.rotl)(_^a,8),f=f+_|0,h=(0,r.rotl)(h^f,7),c=c+u|0,b=(0,r.rotl)(b^c,16),p=p+b|0,u=(0,r.rotl)(u^p,12),c=c+u|0,b=(0,r.rotl)(b^c,8),p=p+b|0,u=(0,r.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,r.createCipher)(s,{counterRight:!1,counterLength:8,allowShortKeys:!0}),e.chacha20=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,allowShortKeys:!1}),e.xchacha20=(0,r.createCipher)(s,{counterRight:!1,counterLength:8,extendNonceFn:a,allowShortKeys:!1}),e.chacha8=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,rounds:8}),e.chacha12=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,rounds:12});const c=new Uint8Array(16),u=(t,e)=>{t.update(e);const n=e.length%16;n&&t.update(c.subarray(n))},l=new Uint8Array(32);function d(t,e,n,r,s){const a=t(e,n,l),c=i.poly1305.create(a);s&&u(c,s),u(c,r);const d=(0,o.u64Lengths)(r.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,n,r)=>{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,n,u,u,1);const l=d(t,e,n,u,r);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,n,c,r);if(!(0,o.equalBytes)(u,l))throw new Error("invalid tag");return a.set(s.subarray(0,-16)),t(e,n,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,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(1275),i=n(3736),o=n(4099);const s=function(t,e,n,s,a,c){var u=1&n,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&n?new r.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,n,s,c)))return g.push(e)}))){y=!1;break}}else if(m!==_&&!a(m,_,n,s,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},9008:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return t}},9034:(t,e,n)=>{"use strict";function r(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}n.d(e,{A:()=>r})},9042:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(3831),i=n(4792),o=n(7422);const s=function(t){return(0,r.A)(t,o.A,i.A)}},9065:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var r=n(5295);Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return r.PrivateKey}});var i=n(2557);Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}})},9084:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(6318),i=n(7346),o=n(7465);const s=function(t,e,n){for(var s=-1,a=e.length,c={};++s<a;){var u=e[s],l=(0,r.A)(t,u);n(l,u)&&(0,i.A)(c,(0,o.A)(u,t),l)}return c}},9109:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(9857),i=n(2302),o=n(9959);const s=r.A&&1/(0,o.A)(new r.A([,-0]))[1]==1/0?function(t){return new r.A(t)}:i.A},9152:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(7275),i=n(6013),o=n(7110);function s(t,e){const n=this||i.A,s=e||n,a=o.A.from(s.headers);let c=s.data;return r.A.forEach(t,(function(t){c=t.call(n,c,a.normalize(),e?e.status:void 0)})),a.normalize(),c}},9175:(t,e,n)=>{"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 n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)},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 n=0;n<t.length;n++)e+=l[t[n]];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,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,i=0;e<n;e++,i+=2){const n=h(t.charCodeAt(i)),o=h(t.charCodeAt(i+1));if(void 0===n||void 0===o){const e=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+i)}r[e]=16*n+o}return r},e.asyncLoop=async function(t,n,r){let i=Date.now();for(let o=0;o<t;o++){r(o);const t=Date.now()-i;t>=0&&t<n||(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 n=0;n<t.length;n++){const r=t[n];s(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const i=t[e];n.set(i,r),r+=i.length}return n},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(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(t));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")};const r=n(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(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function g(t){const e=(e,n)=>t(n).update(p(e)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}function m(t){const e=(e,n)=>t(n).update(p(e)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}e.Hash=class{},e.wrapConstructor=y,e.wrapConstructorWithOpts=g,e.wrapXOFConstructorWithOpts=m},9190:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},9205:(t,e,n)=>{"use strict";n.d(e,{N:()=>r});class r{_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,n)=>{"use strict";n.d(e,{ERRORS:()=>u.S,OFFSET:()=>i.e$,PAGE:()=>i.KL,VERSION:()=>l,__internal:()=>c.S,convertBrowserLangToPresetLang:()=>o.y,getAccessToken:()=>s.i,getIdentifier:()=>a.Cm,setGetTokenAsync:()=>a.Uk,setupTokenManager:()=>a.EC});var r=n(8330),i=n(9588),o=n(4969),s=n(8693),a=n(7808),c=n(2658),u=n(9489);const l=r.rE},9313:(t,e,n)=>{"use strict";n.d(e,{F2:()=>c,pT:()=>a,qT:()=>u,xW:()=>l});var r=n(4545);const i=new r.H$,o=new r.w1,s=new r.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 s.searchByIds([t])).data.result.pois[0]}catch(t){throw t}}},9378:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hexToPublicKey=e.convertPublicKeyFormat=e.getSharedPoint=e.getPublicKey=e.isValidPrivateKey=e.getValidSecret=void 0;var r=n(8489),i=n(459),o=n(8510),s=n(4928),a=n(1666),c=n(3503);e.getValidSecret=function(t){var n;do{n=(0,r.randomBytes)(a.SECRET_KEY_LENGTH)}while(!(0,e.isValidPrivateKey)(n,t));return n};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,n,r){return u(r||(0,s.ellipticCurve)(),(function(r){return r.getSharedSecret(t,e,n)}),(function(n){return n.getSharedSecret(t,e)}),(function(n){return d(n,t,e)}))};e.convertPublicKeyFormat=function(t,e,n){return u(n||(0,s.ellipticCurve)(),(function(n){return n.getSharedSecret(BigInt(1),t,e)}),(function(){return t}),(function(){return t}))};function u(t,e,n,r){if("secp256k1"===t)return e(o.secp256k1);if("x25519"===t)return n(i.x25519);if("ed25519"===t)return r(i.ed25519);throw new Error("Not implemented")}e.hexToPublicKey=function(t,e){var n=(0,c.decodeHex)(t);return u(e||(0,s.ellipticCurve)(),(function(){return l(n)}),(function(){return n}),(function(){return n}))};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,n){var r=t.utils.getExtendedPublicKey(e).scalar;return t.ExtendedPoint.fromHex(n).multiply(r).toRawBytes()}},9396:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(3149);const i=function(t){return t==t&&!(0,r.A)(t)}},9408:(t,e,n)=>{"use strict";var r;n.d(e,{S:()=>r}),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"}(r||(r={}))},9489:(t,e,n)=>{"use strict";n.d(e,{S:()=>o});var r=n(1089),i=n(7311);const o=["unauthorized","initError"],s=globalThis,a=(0,r.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)}}},9501:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(9841);const i=(0,n(3641).A)(r.A)},9520:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},9573:(t,e,n)=>{"use strict";n.d(e,{V:()=>i});var r=n(2049);function i(t){const e=(0,r.A)(t),n=e&&!t.length||!e&&!t.trim().length;if(n)throw new Error("Parameter cannot be empty.");return n?null:e?t.filter((t=>!!t.trim())).map((t=>t.trim())).join(","):t.trim()}},9575:(t,e,n)=>{"use strict";function r(t){return!(!t||!t.__CANCEL__)}n.d(e,{A:()=>r})},9588:(t,e,n)=>{"use strict";n.d(e,{KL:()=>a,R0:()=>r,e$:()=>s,hl:()=>i,kk:()=>o});const r="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,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(9672),i=n(3149);const o=function(t){if(!(0,i.A)(t))return!1;var e=(0,r.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9615:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const r=n(9175);class i extends r.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,r.ahash)(t);const n=(0,r.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(n.length>i?t.create().update(n).digest():n);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,r.clean)(o)}update(t){return(0,r.aexists)(this),this.iHash.update(t),this}digestInto(t){(0,r.aexists)(this),(0,r.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:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return t.finished=r,t.destroyed=i,t.blockLen=o,t.outputLen=s,t.oHash=e._cloneInto(t.oHash),t.iHash=n._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,n)=>new i(t,e).update(n).digest(),e.hmac.create=(t,e)=>new i(t,e)},9644:(t,e,n)=>{"use strict";n.d(e,{C:()=>r});class r{_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,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(241),i=n(451),o=n(5606),s=r.A?r.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)}},9703:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(9672),i=n(2049),o=n(3098);const s=function(t){return"string"==typeof t||!(0,i.A)(t)&&(0,o.A)(t)&&"[object String]"==(0,r.A)(t)}},9717:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(9672),i=n(5254),o=n(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,r.A)(t)]}},9789:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){return null!=t&&e in Object(t)}},9841:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(4057),i=n(7422);const o=function(t,e){return t&&(0,r.A)(t,e,i.A)}},9846:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(5547);const i=function(t){var e=(0,r.A)(this,t).delete(t);return this.size-=e?1:0,e}},9857:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"Set")},9875:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return this.__data__.has(t)}},9887:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(7275);const i=n(3820).A.hasStandardBrowserEnv?{write(t,e,n,i,o,s){const a=[t+"="+encodeURIComponent(e)];r.A.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.A.isString(i)&&a.push("path="+i),r.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,n)=>{"use strict";n.d(e,{x:()=>r});const r="1.9.0"},9914:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},9922:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(9008);const i=function(t){return"function"==typeof t?t:r.A}},9959:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},9983:(t,e,n)=>{"use strict";n.d(e,{G:()=>r.G,Z:()=>i.Z});var r=n(4762),i=n(3442)}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{AccessControl:()=>a.k,AccessControlOrigin:()=>d.en,BuildingFilterControl:()=>c.G,BuildingSelectorHandler:()=>u.EJ,BuildingsService:()=>l.H$,DistanceSearchType:()=>d.Kp,ERRORS:()=>h.ERRORS,FloorSelectorHandler:()=>u.CA,FloorSwitchMode:()=>d.MA,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=n(5462),e=n(5629),i=n(4116),o=n(5188),s=n(6733),a=n(6242),c=n(9983),u=n(1088),l=n(4545),d=n(3574),h=n(9266)})();var i=exports;for(var o in r)i[o]=r[o];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();