@local-logic/sdks-app 1.0.0-beta.44 → 1.0.0-beta.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index.bffff470.js → index.58d7e039.js} +1 -1
- package/dist/assets/index.fde633ba.js +743 -0
- package/dist/index.html +1 -1
- package/dist/types/sdks/LocalContent/Map/index.d.ts.map +1 -1
- package/dist/types/sdks/LocalContent/Map/index.js +5 -4
- package/dist/types/sdks/LocalContent/Map/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/index.e4acce0a.js +0 -743
|
@@ -323,7 +323,7 @@ Url: ${Fu(e)}`),!0)}function p9(e,t){return!t||!t.length?!1:m9(e).some(n=>t.some
|
|
|
323
323
|
*
|
|
324
324
|
* This source code is licensed under the MIT license found in the
|
|
325
325
|
* LICENSE file in the root directory of this source tree.
|
|
326
|
-
*/var i7=m.exports,o7=Symbol.for("react.element"),s7=Symbol.for("react.fragment"),a7=Object.prototype.hasOwnProperty,l7=i7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u7={key:!0,ref:!0,__self:!0,__source:!0};function Vb(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)a7.call(t,r)&&!u7.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:o7,type:e,key:o,ref:s,props:i,_owner:l7.current}}gf.Fragment=s7;gf.jsx=Vb;gf.jsxs=Vb;mf.exports=gf;const R=mf.exports.jsx,je=mf.exports.jsxs,yf=mf.exports.Fragment,c7=new n8,f7=K.lazy(()=>r7(()=>import("./index.e4acce0a.js"),["assets/index.e4acce0a.js","assets/index.d3f78cf1.css"])),d7=({children:e})=>{const t=[{path:`*/${Ub.LOCAL_CONTENT}`,element:R(f7,{})}];return R(r8,{location:c7,routes:t,children:e})},p7="CONNECT",h7="DEFAULT";function v7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jb={exports:{}};(function(e){var t=(()=>{var n=Object.defineProperty,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(x,y,_)=>y in x?n(x,y,{enumerable:!0,configurable:!0,writable:!0,value:_}):x[y]=_,a=(x,y)=>{for(var _ in y||(y={}))i.call(y,_)&&s(x,_,y[_]);if(r)for(var _ of r(y))o.call(y,_)&&s(x,_,y[_]);return x},l=x=>n(x,"__esModule",{value:!0}),u=(x,y)=>{l(x);for(var _ in y)n(x,_,{get:y[_],enumerable:!0})},c={};u(c,{DEFAULT_UUID_LENGTH:()=>d,default:()=>v});var f="4.4.4",d=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:d},h=class extends Function{constructor(x={}){super(),this.dictIndex=0,this.dictRange=[],this.lowerBound=0,this.upperBound=0,this.dictLength=0,this._digit_first_ascii=48,this._digit_last_ascii=58,this._alpha_lower_first_ascii=97,this._alpha_lower_last_ascii=123,this._hex_last_ascii=103,this._alpha_upper_first_ascii=65,this._alpha_upper_last_ascii=91,this._number_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii]},this._alpha_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alpha_lower_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alpha_upper_dict_ranges={upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_lower_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alphanum_upper_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._hex_dict_ranges={decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]},this.log=(...E)=>{const b=[...E];if(b[0]=`[short-unique-id] ${E[0]}`,this.debug===!0&&typeof console!="undefined"&&console!==null)return console.log(...b)},this.setDictionary=(E,b)=>{let S;if(E&&Array.isArray(E)&&E.length>1)S=E;else{S=[];let C;this.dictIndex=C=0;const $=`_${E}_dict_ranges`,P=this[$];Object.keys(P).forEach(j=>{const U=j;for(this.dictRange=P[U],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=C=this.lowerBound;this.lowerBound<=this.upperBound?C<this.upperBound:C>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?C+=1:C-=1)S.push(String.fromCharCode(this.dictIndex))})}b&&(S=S.sort(()=>Math.random()-.5)),this.dict=S,this.dictLength=this.dict.length,this.counter=0},this.seq=()=>this.sequentialUUID(),this.sequentialUUID=()=>{let E,b,S="";E=this.counter;do b=E%this.dictLength,E=Math.trunc(E/this.dictLength),S+=this.dict[b];while(E!==0);return this.counter+=1,S},this.randomUUID=(E=this.uuidLength||d)=>{let b,S,C;if(E===null||typeof E=="undefined"||E<1)throw new Error("Invalid UUID Length Provided");for(b="",C=0;C<E;C+=1)S=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,b+=this.dict[S];return b},this.availableUUIDs=(E=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,E).toFixed(0)),this.approxMaxBeforeCollision=(E=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*E).toFixed(20)),this.collisionProbability=(E=this.availableUUIDs(this.uuidLength),b=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(E)/this.availableUUIDs(b)).toFixed(20)),this.uniqueness=(E=this.availableUUIDs(this.uuidLength))=>{const b=parseFloat((1-this.approxMaxBeforeCollision(E)/E).toFixed(20));return b>1?1:b<0?0:b},this.getVersion=()=>this.version,this.stamp=E=>{if(typeof E!="number"||E<10)throw new Error("Param finalLength must be number greater than 10");const b=Math.floor(+new Date/1e3).toString(16),S=E-9,C=Math.round(Math.random()*(S>15?15:S)),$=this.randomUUID(S);return`${$.substr(0,C)}${b}${$.substr(C)}${C.toString(16)}`},this.parseStamp=E=>{if(E.length<10)throw new Error("Stamp length invalid");const b=parseInt(E.substr(E.length-1,1),16);return new Date(parseInt(E.substr(b,8),16)*1e3)};const y=a(a({},p),x);this.counter=0,this.debug=!1,this.dict=[],this.version=f;const{dictionary:_,shuffle:g,length:w}=y;return this.uuidLength=w,this.setDictionary(_,g),this.debug=y.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength}`),new Proxy(this,{apply:(E,b,S)=>this.randomUUID(...S)})}},v=h;return v.default=h,c})();e.exports=t.default,typeof window!="undefined"&&(t=t.default)})(jb);var m7=v7(jb.exports);const Ly=new m7({length:10});class o0{constructor(t,n){this.onMessageHandlers=[],this.message=(r,i,o)=>this.crossOrigin?this.postMessage(r,i,o):this.customEventMessage(r,i,o),this.channelId=t!=null?t:h7,this.channelNodeId=`channel-node-${Ly()}`,this.crossOrigin=n,this.connection=new Promise(r=>{this.resolveConnection=r}),this.boundMessageHandler=this.handleMessage.bind(this)}disconnect(){this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise(t=>{this.resolveConnection=t})}onMessage(t){this.onMessageHandlers.push(t)}removeMessageHandler(t){const n=this.onMessageHandlers.findIndex(r=>r===t);this.onMessageHandlers.splice(n,1)}customEventMessage(t,n,r){const i=new CustomEvent(this.channelId,{detail:{eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n}});window.dispatchEvent(i)}postMessage(t,n,r){var i,o,s;(s=(i=this.crossOrigin)==null?void 0:i.window)==null||s.postMessage({eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n},(o=this.crossOrigin)==null?void 0:o.targetOrigin)}async eventRequest(t,n){const r=Ly();return new Promise(i=>{const o=s=>{const{eventId:a}=s;r===a&&(this.removeMessageHandler(o),i(s))};this.onMessage(o),this.message(t,n,r)})}async waitForEvent(t){return new Promise(n=>{const r=i=>{const{name:o}=i;t===o&&(this.removeMessageHandler(r),n(i))};this.onMessage(r)})}handleMessage(t){var n;let r;if(o0.isCustomEvent(t))r=t.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(t.origin)&&((n=this.crossOrigin)==null?void 0:n.targetOrigin)!=="*")return;r=t.data}const{channelId:i,channelNodeId:o}=r;this.channelId===i&&this.channelNodeId!==o&&this.onMessageHandlers.forEach(s=>{s(r)})}static isCustomEvent(t){return t.detail!==void 0}}class g7 extends o0{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(p7).then(t=>{this.resolveConnection(t)}),this.connection}}var y7="Expected a function",Fy=1/0,_7=17976931348623157e292,Iy=0/0,x7="[object Symbol]",w7=/^\s+|\s+$/g,E7=/^[-+]0x[0-9a-f]+$/i,b7=/^0b[01]+$/i,S7=/^0o[0-7]+$/i,C7=parseInt,A7=Object.prototype,$7=A7.toString;function T7(e,t){var n;if(typeof t!="function")throw new TypeError(y7);return e=N7(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function R7(e){return T7(2,e)}function By(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function P7(e){return!!e&&typeof e=="object"}function O7(e){return typeof e=="symbol"||P7(e)&&$7.call(e)==x7}function k7(e){if(!e)return e===0?e:0;if(e=D7(e),e===Fy||e===-Fy){var t=e<0?-1:1;return t*_7}return e===e?e:0}function N7(e){var t=k7(e),n=t%1;return t===t?n?t-n:t:0}function D7(e){if(typeof e=="number")return e;if(O7(e))return Iy;if(By(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=By(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(w7,"");var n=b7.test(e);return n||S7.test(e)?C7(e.slice(2),n?2:8):E7.test(e)?Iy:+e}var M7=R7;const Dd=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Dh(e,...t){if(!t.length)return e;const n=t.shift();return Dd(e)&&Dd(n)&&Object.keys(n).forEach(r=>{Dd(n[r])?(e[r]||Object.assign(e,{[r]:{}}),Dh(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),Dh(e,...t)}const L7=e=>{const t=m.exports.useRef(e),n=m.exports.useRef(),r=m.exports.useRef(!1),i=m.exports.useRef(!1),[,o]=m.exports.useState(0);r.current&&(i.current=!0),m.exports.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),o(s=>s+1),()=>{!i.current||n.current&&n.current()}),[])},F7=(e,t)=>{const[n,r]=m.exports.useState(e);return m.exports.useEffect(()=>{const i=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(i)}},[e,t]),n};var ls=(e=>(e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e))(ls||{});const I7={zoom:16,pitch:0,bearing:0,cooperativeGestures:!0},B7={"local-content":I7,"local-maps":{}},zb=M7(()=>K.createContext({})),U7=()=>{const e=K.useContext(zb());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e},Hb=K.memo(({children:e})=>{const t=zb(),n=l8(),r=K.useRef(n),o=Oa().current.pathname.split("/"),s=o[o.length-1],a={options:B7[s]},l=K.useRef(),[u,c]=m.exports.useState(!1),[f,d]=m.exports.useState(a),p=F7(f,500),h=Sb(),v=g=>{r.current=g,d(g)},x=g=>{var w;g.name===ls.GET_STATE&&((w=l.current)==null||w.message(ls.GET_STATE_RESPONSE,r.current,g.eventId)),g.name===ls.SET_STATE&&v(g.data)};L7(()=>{const g=new g7(n.channelId,{targetOrigin:document.referrer,window:window.parent});l.current=g,g==null||g.onMessage(x),g==null||g.connect().then(w=>{d(E=>{const b=Dh(E,w.data);return r.current=b,b}),c(!0)})});const y=g=>{var w;(w=l.current)==null||w.message(ls.ON_CHANGE,g)};m.exports.useEffect(()=>{h({search:()=>p})},[p]),m.exports.useEffect(()=>{f.options&&y({type:"options",data:f.options})},[f.options]);const _=m.exports.useMemo(()=>({sdkState:f,setSdkState:v,onChange:y}),[f,v,y]);return u?R(t.Provider,{value:_,children:e}):null});Hb.displayName="StateManagerProvider";var s0={exports:{}},Gb=function(t,n){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(n,i)}},V7=Gb,Vr=Object.prototype.toString;function a0(e){return Array.isArray(e)}function Mh(e){return typeof e=="undefined"}function j7(e){return e!==null&&!Mh(e)&&e.constructor!==null&&!Mh(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Yb(e){return Vr.call(e)==="[object ArrayBuffer]"}function z7(e){return Vr.call(e)==="[object FormData]"}function H7(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yb(e.buffer),t}function G7(e){return typeof e=="string"}function Y7(e){return typeof e=="number"}function Wb(e){return e!==null&&typeof e=="object"}function eu(e){if(Vr.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function W7(e){return Vr.call(e)==="[object Date]"}function q7(e){return Vr.call(e)==="[object File]"}function X7(e){return Vr.call(e)==="[object Blob]"}function qb(e){return Vr.call(e)==="[object Function]"}function Q7(e){return Wb(e)&&qb(e.pipe)}function K7(e){return Vr.call(e)==="[object URLSearchParams]"}function Z7(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function J7(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function l0(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),a0(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function Lh(){var e={};function t(i,o){eu(e[o])&&eu(i)?e[o]=Lh(e[o],i):eu(i)?e[o]=Lh({},i):a0(i)?e[o]=i.slice():e[o]=i}for(var n=0,r=arguments.length;n<r;n++)l0(arguments[n],t);return e}function ek(e,t,n){return l0(t,function(i,o){n&&typeof i=="function"?e[o]=V7(i,n):e[o]=i}),e}function tk(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Ct={isArray:a0,isArrayBuffer:Yb,isBuffer:j7,isFormData:z7,isArrayBufferView:H7,isString:G7,isNumber:Y7,isObject:Wb,isPlainObject:eu,isUndefined:Mh,isDate:W7,isFile:q7,isBlob:X7,isFunction:qb,isStream:Q7,isURLSearchParams:K7,isStandardBrowserEnv:J7,forEach:l0,merge:Lh,extend:ek,trim:Z7,stripBOM:tk},Ri=Ct;function Uy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Xb=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(Ri.isURLSearchParams(n))i=n.toString();else{var o=[];Ri.forEach(n,function(l,u){l===null||typeof l=="undefined"||(Ri.isArray(l)?u=u+"[]":l=[l],Ri.forEach(l,function(f){Ri.isDate(f)?f=f.toISOString():Ri.isObject(f)&&(f=JSON.stringify(f)),o.push(Uy(u)+"="+Uy(f))}))}),i=o.join("&")}if(i){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},nk=Ct;function _f(){this.handlers=[]}_f.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};_f.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};_f.prototype.forEach=function(t){nk.forEach(this.handlers,function(r){r!==null&&t(r)})};var rk=_f,ik=Ct,ok=function(t,n){ik.forEach(t,function(i,o){o!==n&&o.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[o])})},Qb=function(t,n,r,i,o){return t.config=n,r&&(t.code=r),t.request=i,t.response=o,t.isAxiosError=!0,t.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Kb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sk=Qb,Zb=function(t,n,r,i,o){var s=new Error(t);return sk(s,n,r,i,o)},ak=Zb,lk=function(t,n,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):n(ak("Request failed with status code "+r.status,r.config,null,r.request,r))},El=Ct,uk=El.isStandardBrowserEnv()?function(){return{write:function(n,r,i,o,s,a){var l=[];l.push(n+"="+encodeURIComponent(r)),El.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),El.isString(o)&&l.push("path="+o),El.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ck=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},fk=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},dk=ck,pk=fk,hk=function(t,n){return t&&!dk(n)?pk(t,n):n},Md=Ct,vk=["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"],mk=function(t){var n={},r,i,o;return t&&Md.forEach(t.split(`
|
|
326
|
+
*/var i7=m.exports,o7=Symbol.for("react.element"),s7=Symbol.for("react.fragment"),a7=Object.prototype.hasOwnProperty,l7=i7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u7={key:!0,ref:!0,__self:!0,__source:!0};function Vb(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)a7.call(t,r)&&!u7.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:o7,type:e,key:o,ref:s,props:i,_owner:l7.current}}gf.Fragment=s7;gf.jsx=Vb;gf.jsxs=Vb;mf.exports=gf;const R=mf.exports.jsx,je=mf.exports.jsxs,yf=mf.exports.Fragment,c7=new n8,f7=K.lazy(()=>r7(()=>import("./index.fde633ba.js"),["assets/index.fde633ba.js","assets/index.d3f78cf1.css"])),d7=({children:e})=>{const t=[{path:`*/${Ub.LOCAL_CONTENT}`,element:R(f7,{})}];return R(r8,{location:c7,routes:t,children:e})},p7="CONNECT",h7="DEFAULT";function v7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jb={exports:{}};(function(e){var t=(()=>{var n=Object.defineProperty,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(x,y,_)=>y in x?n(x,y,{enumerable:!0,configurable:!0,writable:!0,value:_}):x[y]=_,a=(x,y)=>{for(var _ in y||(y={}))i.call(y,_)&&s(x,_,y[_]);if(r)for(var _ of r(y))o.call(y,_)&&s(x,_,y[_]);return x},l=x=>n(x,"__esModule",{value:!0}),u=(x,y)=>{l(x);for(var _ in y)n(x,_,{get:y[_],enumerable:!0})},c={};u(c,{DEFAULT_UUID_LENGTH:()=>d,default:()=>v});var f="4.4.4",d=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:d},h=class extends Function{constructor(x={}){super(),this.dictIndex=0,this.dictRange=[],this.lowerBound=0,this.upperBound=0,this.dictLength=0,this._digit_first_ascii=48,this._digit_last_ascii=58,this._alpha_lower_first_ascii=97,this._alpha_lower_last_ascii=123,this._hex_last_ascii=103,this._alpha_upper_first_ascii=65,this._alpha_upper_last_ascii=91,this._number_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii]},this._alpha_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alpha_lower_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alpha_upper_dict_ranges={upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_lower_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alphanum_upper_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._hex_dict_ranges={decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]},this.log=(...E)=>{const b=[...E];if(b[0]=`[short-unique-id] ${E[0]}`,this.debug===!0&&typeof console!="undefined"&&console!==null)return console.log(...b)},this.setDictionary=(E,b)=>{let S;if(E&&Array.isArray(E)&&E.length>1)S=E;else{S=[];let C;this.dictIndex=C=0;const $=`_${E}_dict_ranges`,P=this[$];Object.keys(P).forEach(j=>{const U=j;for(this.dictRange=P[U],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=C=this.lowerBound;this.lowerBound<=this.upperBound?C<this.upperBound:C>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?C+=1:C-=1)S.push(String.fromCharCode(this.dictIndex))})}b&&(S=S.sort(()=>Math.random()-.5)),this.dict=S,this.dictLength=this.dict.length,this.counter=0},this.seq=()=>this.sequentialUUID(),this.sequentialUUID=()=>{let E,b,S="";E=this.counter;do b=E%this.dictLength,E=Math.trunc(E/this.dictLength),S+=this.dict[b];while(E!==0);return this.counter+=1,S},this.randomUUID=(E=this.uuidLength||d)=>{let b,S,C;if(E===null||typeof E=="undefined"||E<1)throw new Error("Invalid UUID Length Provided");for(b="",C=0;C<E;C+=1)S=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,b+=this.dict[S];return b},this.availableUUIDs=(E=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,E).toFixed(0)),this.approxMaxBeforeCollision=(E=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*E).toFixed(20)),this.collisionProbability=(E=this.availableUUIDs(this.uuidLength),b=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(E)/this.availableUUIDs(b)).toFixed(20)),this.uniqueness=(E=this.availableUUIDs(this.uuidLength))=>{const b=parseFloat((1-this.approxMaxBeforeCollision(E)/E).toFixed(20));return b>1?1:b<0?0:b},this.getVersion=()=>this.version,this.stamp=E=>{if(typeof E!="number"||E<10)throw new Error("Param finalLength must be number greater than 10");const b=Math.floor(+new Date/1e3).toString(16),S=E-9,C=Math.round(Math.random()*(S>15?15:S)),$=this.randomUUID(S);return`${$.substr(0,C)}${b}${$.substr(C)}${C.toString(16)}`},this.parseStamp=E=>{if(E.length<10)throw new Error("Stamp length invalid");const b=parseInt(E.substr(E.length-1,1),16);return new Date(parseInt(E.substr(b,8),16)*1e3)};const y=a(a({},p),x);this.counter=0,this.debug=!1,this.dict=[],this.version=f;const{dictionary:_,shuffle:g,length:w}=y;return this.uuidLength=w,this.setDictionary(_,g),this.debug=y.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength}`),new Proxy(this,{apply:(E,b,S)=>this.randomUUID(...S)})}},v=h;return v.default=h,c})();e.exports=t.default,typeof window!="undefined"&&(t=t.default)})(jb);var m7=v7(jb.exports);const Ly=new m7({length:10});class o0{constructor(t,n){this.onMessageHandlers=[],this.message=(r,i,o)=>this.crossOrigin?this.postMessage(r,i,o):this.customEventMessage(r,i,o),this.channelId=t!=null?t:h7,this.channelNodeId=`channel-node-${Ly()}`,this.crossOrigin=n,this.connection=new Promise(r=>{this.resolveConnection=r}),this.boundMessageHandler=this.handleMessage.bind(this)}disconnect(){this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise(t=>{this.resolveConnection=t})}onMessage(t){this.onMessageHandlers.push(t)}removeMessageHandler(t){const n=this.onMessageHandlers.findIndex(r=>r===t);this.onMessageHandlers.splice(n,1)}customEventMessage(t,n,r){const i=new CustomEvent(this.channelId,{detail:{eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n}});window.dispatchEvent(i)}postMessage(t,n,r){var i,o,s;(s=(i=this.crossOrigin)==null?void 0:i.window)==null||s.postMessage({eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n},(o=this.crossOrigin)==null?void 0:o.targetOrigin)}async eventRequest(t,n){const r=Ly();return new Promise(i=>{const o=s=>{const{eventId:a}=s;r===a&&(this.removeMessageHandler(o),i(s))};this.onMessage(o),this.message(t,n,r)})}async waitForEvent(t){return new Promise(n=>{const r=i=>{const{name:o}=i;t===o&&(this.removeMessageHandler(r),n(i))};this.onMessage(r)})}handleMessage(t){var n;let r;if(o0.isCustomEvent(t))r=t.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(t.origin)&&((n=this.crossOrigin)==null?void 0:n.targetOrigin)!=="*")return;r=t.data}const{channelId:i,channelNodeId:o}=r;this.channelId===i&&this.channelNodeId!==o&&this.onMessageHandlers.forEach(s=>{s(r)})}static isCustomEvent(t){return t.detail!==void 0}}class g7 extends o0{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(p7).then(t=>{this.resolveConnection(t)}),this.connection}}var y7="Expected a function",Fy=1/0,_7=17976931348623157e292,Iy=0/0,x7="[object Symbol]",w7=/^\s+|\s+$/g,E7=/^[-+]0x[0-9a-f]+$/i,b7=/^0b[01]+$/i,S7=/^0o[0-7]+$/i,C7=parseInt,A7=Object.prototype,$7=A7.toString;function T7(e,t){var n;if(typeof t!="function")throw new TypeError(y7);return e=N7(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function R7(e){return T7(2,e)}function By(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function P7(e){return!!e&&typeof e=="object"}function O7(e){return typeof e=="symbol"||P7(e)&&$7.call(e)==x7}function k7(e){if(!e)return e===0?e:0;if(e=D7(e),e===Fy||e===-Fy){var t=e<0?-1:1;return t*_7}return e===e?e:0}function N7(e){var t=k7(e),n=t%1;return t===t?n?t-n:t:0}function D7(e){if(typeof e=="number")return e;if(O7(e))return Iy;if(By(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=By(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(w7,"");var n=b7.test(e);return n||S7.test(e)?C7(e.slice(2),n?2:8):E7.test(e)?Iy:+e}var M7=R7;const Dd=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Dh(e,...t){if(!t.length)return e;const n=t.shift();return Dd(e)&&Dd(n)&&Object.keys(n).forEach(r=>{Dd(n[r])?(e[r]||Object.assign(e,{[r]:{}}),Dh(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),Dh(e,...t)}const L7=e=>{const t=m.exports.useRef(e),n=m.exports.useRef(),r=m.exports.useRef(!1),i=m.exports.useRef(!1),[,o]=m.exports.useState(0);r.current&&(i.current=!0),m.exports.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),o(s=>s+1),()=>{!i.current||n.current&&n.current()}),[])},F7=(e,t)=>{const[n,r]=m.exports.useState(e);return m.exports.useEffect(()=>{const i=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(i)}},[e,t]),n};var ls=(e=>(e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e))(ls||{});const I7={zoom:16,pitch:0,bearing:0,cooperativeGestures:!0},B7={"local-content":I7,"local-maps":{}},zb=M7(()=>K.createContext({})),U7=()=>{const e=K.useContext(zb());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e},Hb=K.memo(({children:e})=>{const t=zb(),n=l8(),r=K.useRef(n),o=Oa().current.pathname.split("/"),s=o[o.length-1],a={options:B7[s]},l=K.useRef(),[u,c]=m.exports.useState(!1),[f,d]=m.exports.useState(a),p=F7(f,500),h=Sb(),v=g=>{r.current=g,d(g)},x=g=>{var w;g.name===ls.GET_STATE&&((w=l.current)==null||w.message(ls.GET_STATE_RESPONSE,r.current,g.eventId)),g.name===ls.SET_STATE&&v(g.data)};L7(()=>{const g=new g7(n.channelId,{targetOrigin:document.referrer,window:window.parent});l.current=g,g==null||g.onMessage(x),g==null||g.connect().then(w=>{d(E=>{const b=Dh(E,w.data);return r.current=b,b}),c(!0)})});const y=g=>{var w;(w=l.current)==null||w.message(ls.ON_CHANGE,g)};m.exports.useEffect(()=>{h({search:()=>p})},[p]),m.exports.useEffect(()=>{f.options&&y({type:"options",data:f.options})},[f.options]);const _=m.exports.useMemo(()=>({sdkState:f,setSdkState:v,onChange:y}),[f,v,y]);return u?R(t.Provider,{value:_,children:e}):null});Hb.displayName="StateManagerProvider";var s0={exports:{}},Gb=function(t,n){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(n,i)}},V7=Gb,Vr=Object.prototype.toString;function a0(e){return Array.isArray(e)}function Mh(e){return typeof e=="undefined"}function j7(e){return e!==null&&!Mh(e)&&e.constructor!==null&&!Mh(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Yb(e){return Vr.call(e)==="[object ArrayBuffer]"}function z7(e){return Vr.call(e)==="[object FormData]"}function H7(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yb(e.buffer),t}function G7(e){return typeof e=="string"}function Y7(e){return typeof e=="number"}function Wb(e){return e!==null&&typeof e=="object"}function eu(e){if(Vr.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function W7(e){return Vr.call(e)==="[object Date]"}function q7(e){return Vr.call(e)==="[object File]"}function X7(e){return Vr.call(e)==="[object Blob]"}function qb(e){return Vr.call(e)==="[object Function]"}function Q7(e){return Wb(e)&&qb(e.pipe)}function K7(e){return Vr.call(e)==="[object URLSearchParams]"}function Z7(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function J7(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function l0(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),a0(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function Lh(){var e={};function t(i,o){eu(e[o])&&eu(i)?e[o]=Lh(e[o],i):eu(i)?e[o]=Lh({},i):a0(i)?e[o]=i.slice():e[o]=i}for(var n=0,r=arguments.length;n<r;n++)l0(arguments[n],t);return e}function ek(e,t,n){return l0(t,function(i,o){n&&typeof i=="function"?e[o]=V7(i,n):e[o]=i}),e}function tk(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Ct={isArray:a0,isArrayBuffer:Yb,isBuffer:j7,isFormData:z7,isArrayBufferView:H7,isString:G7,isNumber:Y7,isObject:Wb,isPlainObject:eu,isUndefined:Mh,isDate:W7,isFile:q7,isBlob:X7,isFunction:qb,isStream:Q7,isURLSearchParams:K7,isStandardBrowserEnv:J7,forEach:l0,merge:Lh,extend:ek,trim:Z7,stripBOM:tk},Ri=Ct;function Uy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Xb=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(Ri.isURLSearchParams(n))i=n.toString();else{var o=[];Ri.forEach(n,function(l,u){l===null||typeof l=="undefined"||(Ri.isArray(l)?u=u+"[]":l=[l],Ri.forEach(l,function(f){Ri.isDate(f)?f=f.toISOString():Ri.isObject(f)&&(f=JSON.stringify(f)),o.push(Uy(u)+"="+Uy(f))}))}),i=o.join("&")}if(i){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},nk=Ct;function _f(){this.handlers=[]}_f.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};_f.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};_f.prototype.forEach=function(t){nk.forEach(this.handlers,function(r){r!==null&&t(r)})};var rk=_f,ik=Ct,ok=function(t,n){ik.forEach(t,function(i,o){o!==n&&o.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[o])})},Qb=function(t,n,r,i,o){return t.config=n,r&&(t.code=r),t.request=i,t.response=o,t.isAxiosError=!0,t.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Kb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sk=Qb,Zb=function(t,n,r,i,o){var s=new Error(t);return sk(s,n,r,i,o)},ak=Zb,lk=function(t,n,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):n(ak("Request failed with status code "+r.status,r.config,null,r.request,r))},El=Ct,uk=El.isStandardBrowserEnv()?function(){return{write:function(n,r,i,o,s,a){var l=[];l.push(n+"="+encodeURIComponent(r)),El.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),El.isString(o)&&l.push("path="+o),El.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ck=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},fk=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},dk=ck,pk=fk,hk=function(t,n){return t&&!dk(n)?pk(t,n):n},Md=Ct,vk=["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"],mk=function(t){var n={},r,i,o;return t&&Md.forEach(t.split(`
|
|
327
327
|
`),function(a){if(o=a.indexOf(":"),r=Md.trim(a.substr(0,o)).toLowerCase(),i=Md.trim(a.substr(o+1)),r){if(n[r]&&vk.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([i]):n[r]=n[r]?n[r]+", "+i:i}}),n},Vy=Ct,gk=Vy.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(o){var s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){var a=Vy.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function u0(e){this.message=e}u0.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};u0.prototype.__CANCEL__=!0;var xf=u0,bl=Ct,yk=lk,_k=uk,xk=Xb,wk=hk,Ek=mk,bk=gk,Ld=Zb,Sk=Kb,Ck=xf,jy=function(t){return new Promise(function(r,i){var o=t.data,s=t.headers,a=t.responseType,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}bl.isFormData(o)&&delete s["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",d=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(f+":"+d)}var p=wk(t.baseURL,t.url);c.open(t.method.toUpperCase(),xk(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function h(){if(!!c){var x="getAllResponseHeaders"in c?Ek(c.getAllResponseHeaders()):null,y=!a||a==="text"||a==="json"?c.responseText:c.response,_={data:y,status:c.status,statusText:c.statusText,headers:x,config:t,request:c};yk(function(w){r(w),u()},function(w){i(w),u()},_),c=null}}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){!c||(i(Ld("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(Ld("Network Error",t,null,c)),c=null},c.ontimeout=function(){var y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",_=t.transitional||Sk;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),i(Ld(y,t,_.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},bl.isStandardBrowserEnv()){var v=(t.withCredentials||bk(p))&&t.xsrfCookieName?_k.read(t.xsrfCookieName):void 0;v&&(s[t.xsrfHeaderName]=v)}"setRequestHeader"in c&&bl.forEach(s,function(y,_){typeof o=="undefined"&&_.toLowerCase()==="content-type"?delete s[_]:c.setRequestHeader(_,y)}),bl.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),a&&a!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(l=function(x){!c||(i(!x||x&&x.type?new Ck("canceled"):x),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l))),o||(o=null),c.send(o)})},Ze=Ct,zy=ok,Ak=Qb,$k=Kb,Tk={"Content-Type":"application/x-www-form-urlencoded"};function Hy(e,t){!Ze.isUndefined(e)&&Ze.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Rk(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=jy),e}function Pk(e,t,n){if(Ze.isString(e))try{return(t||JSON.parse)(e),Ze.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var wf={transitional:$k,adapter:Rk(),transformRequest:[function(t,n){return zy(n,"Accept"),zy(n,"Content-Type"),Ze.isFormData(t)||Ze.isArrayBuffer(t)||Ze.isBuffer(t)||Ze.isStream(t)||Ze.isFile(t)||Ze.isBlob(t)?t:Ze.isArrayBufferView(t)?t.buffer:Ze.isURLSearchParams(t)?(Hy(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Ze.isObject(t)||n&&n["Content-Type"]==="application/json"?(Hy(n,"application/json"),Pk(t)):t}],transformResponse:[function(t){var n=this.transitional||wf.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,o=!r&&this.responseType==="json";if(o||i&&Ze.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Ak(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ze.forEach(["delete","get","head"],function(t){wf.headers[t]={}});Ze.forEach(["post","put","patch"],function(t){wf.headers[t]=Ze.merge(Tk)});var c0=wf,Ok=Ct,kk=c0,Nk=function(t,n,r){var i=this||kk;return Ok.forEach(r,function(s){t=s.call(i,t,n)}),t},Jb=function(t){return!!(t&&t.__CANCEL__)},Gy=Ct,Fd=Nk,Dk=Jb,Mk=c0,Lk=xf;function Id(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lk("canceled")}var Fk=function(t){Id(t),t.headers=t.headers||{},t.data=Fd.call(t,t.data,t.headers,t.transformRequest),t.headers=Gy.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Gy.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||Mk.adapter;return n(t).then(function(i){return Id(t),i.data=Fd.call(t,i.data,i.headers,t.transformResponse),i},function(i){return Dk(i)||(Id(t),i&&i.response&&(i.response.data=Fd.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},At=Ct,eS=function(t,n){n=n||{};var r={};function i(c,f){return At.isPlainObject(c)&&At.isPlainObject(f)?At.merge(c,f):At.isPlainObject(f)?At.merge({},f):At.isArray(f)?f.slice():f}function o(c){if(At.isUndefined(n[c])){if(!At.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],n[c])}function s(c){if(!At.isUndefined(n[c]))return i(void 0,n[c])}function a(c){if(At.isUndefined(n[c])){if(!At.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,n[c])}function l(c){if(c in n)return i(t[c],n[c]);if(c in t)return i(void 0,t[c])}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return At.forEach(Object.keys(t).concat(Object.keys(n)),function(f){var d=u[f]||o,p=d(f);At.isUndefined(p)&&d!==l||(r[f]=p)}),r},tS={version:"0.26.1"},Ik=tS.version,f0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){f0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Yy={};f0.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Ik+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return function(o,s,a){if(t===!1)throw new Error(i(s," has been removed"+(n?" in "+n:"")));return n&&!Yy[s]&&(Yy[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function Bk(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new TypeError("option "+o+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+o)}}var Uk={assertOptions:Bk,validators:f0},nS=Ct,Vk=Xb,Wy=rk,qy=Fk,Ef=eS,rS=Uk,Pi=rS.validators;function Na(e){this.defaults=e,this.interceptors={request:new Wy,response:new Wy}}Na.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ef(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&rS.assertOptions(r,{silentJSONParsing:Pi.transitional(Pi.boolean),forcedJSONParsing:Pi.transitional(Pi.boolean),clarifyTimeoutError:Pi.transitional(Pi.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(o=o&&p.synchronous,i.unshift(p.fulfilled,p.rejected))});var s=[];this.interceptors.response.forEach(function(p){s.push(p.fulfilled,p.rejected)});var a;if(!o){var l=[qy,void 0];for(Array.prototype.unshift.apply(l,i),l=l.concat(s),a=Promise.resolve(n);l.length;)a=a.then(l.shift(),l.shift());return a}for(var u=n;i.length;){var c=i.shift(),f=i.shift();try{u=c(u)}catch(d){f(d);break}}try{a=qy(u)}catch(d){return Promise.reject(d)}for(;s.length;)a=a.then(s.shift(),s.shift());return a};Na.prototype.getUri=function(t){return t=Ef(this.defaults,t),Vk(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};nS.forEach(["delete","get","head","options"],function(t){Na.prototype[t]=function(n,r){return this.request(Ef(r||{},{method:t,url:n,data:(r||{}).data}))}});nS.forEach(["post","put","patch"],function(t){Na.prototype[t]=function(n,r,i){return this.request(Ef(i||{},{method:t,url:n,data:r}))}});var jk=Na,zk=xf;function Ro(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var n=this;this.promise.then(function(r){if(!!n._listeners){var i,o=n._listeners.length;for(i=0;i<o;i++)n._listeners[i](r);n._listeners=null}}),this.promise.then=function(r){var i,o=new Promise(function(s){n.subscribe(s),i=s}).then(r);return o.cancel=function(){n.unsubscribe(i)},o},e(function(i){n.reason||(n.reason=new zk(i),t(n.reason))})}Ro.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Ro.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};Ro.prototype.unsubscribe=function(t){if(!!this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}};Ro.source=function(){var t,n=new Ro(function(i){t=i});return{token:n,cancel:t}};var Hk=Ro,Gk=function(t){return function(r){return t.apply(null,r)}},Yk=Ct,Wk=function(t){return Yk.isObject(t)&&t.isAxiosError===!0},Xy=Ct,qk=Gb,tu=jk,Xk=eS,Qk=c0;function iS(e){var t=new tu(e),n=qk(tu.prototype.request,t);return Xy.extend(n,tu.prototype,t),Xy.extend(n,t),n.create=function(i){return iS(Xk(e,i))},n}var Cn=iS(Qk);Cn.Axios=tu;Cn.Cancel=xf;Cn.CancelToken=Hk;Cn.isCancel=Jb;Cn.VERSION=tS.version;Cn.all=function(t){return Promise.all(t)};Cn.spread=Gk;Cn.isAxiosError=Wk;s0.exports=Cn;s0.exports.default=Cn;var oS=s0.exports;const Kk=(e,t)=>oS.create({baseURL:"https://api.locallogic.co/v3/",headers:{Accept:"application/json",Authorization:e},params:t});var Fh;(function(e){e[e.groceries=0]="groceries",e[e.groceries_specialized=1]="groceries_specialized",e[e.shopping=2]="shopping",e[e.nightlife=3]="nightlife",e[e.restaurants=4]="restaurants",e[e.cafes=5]="cafes",e[e.daycares=6]="daycares",e[e.bus_stops=7]="bus_stops",e[e.rapid_transit_stations=8]="rapid_transit_stations",e[e.train_stations=9]="train_stations",e[e.parks=10]="parks",e[e.healthy_restaurants=11]="healthy_restaurants",e[e.fitness=12]="fitness",e[e.sport_facilities=13]="sport_facilities",e[e.health_care=14]="health_care",e[e.pet_care=15]="pet_care",e[e.car_fueling_stations=16]="car_fueling_stations",e[e.art_culture_science=17]="art_culture_science",e[e.home_improvement=18]="home_improvement",e[e.personal_care=19]="personal_care"})(Fh||(Fh={}));const Zk="/pois";function xi(e){this._maxSize=e,this.clear()}xi.prototype.clear=function(){this._size=0,this._values=Object.create(null)};xi.prototype.get=function(e){return this._values[e]};xi.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Jk=/[^.^\]^[]+|(?=\[\]|\.\.)/g,sS=/^\d+$/,eN=/^\d/,tN=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,nN=/^\s*(['"]?)(.*?)(\1)\s*$/,d0=512,Qy=new xi(d0),Ky=new xi(d0),Zy=new xi(d0),ai={Cache:xi,split:Ih,normalizePath:Bd,setter:function(e){var t=Bd(e);return Ky.get(e)||Ky.set(e,function(r,i){for(var o=0,s=t.length,a=r;o<s-1;){var l=t[o];if(l==="__proto__"||l==="constructor"||l==="prototype")return r;a=a[t[o++]]}a[t[o]]=i})},getter:function(e,t){var n=Bd(e);return Zy.get(e)||Zy.set(e,function(i){for(var o=0,s=n.length;o<s;)if(i!=null||!t)i=i[n[o++]];else return;return i})},join:function(e){return e.reduce(function(t,n){return t+(p0(n)||sS.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){rN(Array.isArray(e)?e:Ih(e),t,n)}};function Bd(e){return Qy.get(e)||Qy.set(e,Ih(e).map(function(t){return t.replace(nN,"$2")}))}function Ih(e){return e.match(Jk)||[""]}function rN(e,t,n){var r=e.length,i,o,s,a;for(o=0;o<r;o++)i=e[o],i&&(sN(i)&&(i='"'+i+'"'),a=p0(i),s=!a&&/^\d+$/.test(i),t.call(n,i,a,s,o,e))}function p0(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function iN(e){return e.match(eN)&&!e.match(sS)}function oN(e){return tN.test(e)}function sN(e){return!p0(e)&&(iN(e)||oN(e))}const aN=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,bf=e=>e.match(aN)||[],Sf=e=>e[0].toUpperCase()+e.slice(1),h0=(e,t)=>bf(e).join(t).toLowerCase(),aS=e=>bf(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),lN=e=>Sf(aS(e)),uN=e=>h0(e,"_"),cN=e=>h0(e,"-"),fN=e=>Sf(h0(e," ")),dN=e=>bf(e).map(Sf).join(" ");var Ud={words:bf,upperFirst:Sf,camelCase:aS,pascalCase:lN,snakeCase:uN,kebabCase:cN,sentenceCase:fN,titleCase:dN},v0={exports:{}};v0.exports=function(e){return lS(pN(e),e)};v0.exports.array=lS;function lS(e,t){var n=e.length,r=new Array(n),i={},o=n,s=hN(t),a=vN(e);for(t.forEach(function(u){if(!a.has(u[0])||!a.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(e[o],o,new Set);return r;function l(u,c,f){if(f.has(u)){var d;try{d=", node was:"+JSON.stringify(u)}catch{d=""}throw new Error("Cyclic dependency"+d)}if(!a.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[c]){i[c]=!0;var p=s.get(u)||new Set;if(p=Array.from(p),c=p.length){f.add(u);do{var h=p[--c];l(h,a.get(h),f)}while(c);f.delete(u)}r[--n]=u}}}function pN(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function hN(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function vN(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var mN=v0.exports;const gN=Object.prototype.toString,yN=Error.prototype.toString,_N=RegExp.prototype.toString,xN=typeof Symbol!="undefined"?Symbol.prototype.toString:()=>"",wN=/^Symbol\((.*)\)(.*)$/;function EN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Jy(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return EN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return xN.call(e).replace(wN,"Symbol($1)");const r=gN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+yN.call(e)+"]":r==="RegExp"?_N.call(e):null}function li(e,t){let n=Jy(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=Jy(this[r],t);return o!==null?o:i},2)}function uS(e){return e==null?[]:[].concat(e)}let bN=/\$\{\s*(\w+)\s*\}/g;class yt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(bN,(i,o)=>li(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],uS(t).forEach(o=>{yt.isError(o)?(this.errors.push(...o.errors),this.inner=this.inner.concat(o.inner.length?o.inner:o)):this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,yt)}}let Rn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${li(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${li(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${li(n,!0)}\``+i}},Kt={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Jn={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Bh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Uh={isValue:"${path} field must be ${value}"},Vh={noUnknown:"${path} field has unspecified keys: ${unknown}"},nu={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:Rn,string:Kt,number:Jn,date:Bh,object:Vh,array:nu,boolean:Uh});const Cf=e=>e&&e.__isYupSchema__;class Ju{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,s=typeof r=="function"?r:(...a)=>a.every(l=>l===r);return new Ju(t,(a,l)=>{var u;let c=s(...a)?i:o;return(u=c==null?void 0:c(l))!=null?u:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!Cf(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}function SN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Sl={context:"$",value:"."};class Mn{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Sl.context,this.isValue=this.key[0]===Sl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Sl.context:this.isValue?Sl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&ai.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Mn.prototype.__isYupRef=!0;const jt=e=>e==null,CN=["value","path","label","options","originalValue","spec","sync"];function Oi(e){function t(n,r,i){let{value:o,path:s="",label:a,options:l,originalValue:u,spec:c,sync:f}=n,d=SN(n,CN);const{name:p,test:h,params:v,message:x,skipAbsent:y}=e;let{parent:_,context:g,abortEarly:w=d.schema.spec.abortEarly}=l;function E(V){return Mn.isRef(V)?V.getValue(o,_,g):V}function b(V={}){const J=Object.assign({value:o,originalValue:u,label:a,path:V.path||s,spec:c},v,V.params);for(const ie of Object.keys(J))J[ie]=E(J[ie]);const Ee=new yt(yt.formatError(V.message||x,J),o,J.path,V.type||p);return Ee.params=J,Ee}const S=w?r:i;let C=Object.assign({path:s,parent:_,type:p,createError:b,resolve:E,options:l,originalValue:u},d);const $=V=>{yt.isError(V)?S(V):V?i(null):S(b())},P=V=>{yt.isError(V)?S(V):r(V)},j=y&&jt(o);if(!f){try{Promise.resolve(j?!0:h.call(C,o,C)).then($,P)}catch(V){P(V)}return}let U;try{var H;if(U=j?!0:h.call(C,o,C),typeof((H=U)==null?void 0:H.then)=="function")throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(V){P(V);return}$(U)}return t.OPTIONS=e,t}let AN=e=>e.substr(0,e.length-1).substr(1);function $N(e,t,n,r=n){let i,o,s;return t?(ai.forEach(t,(a,l,u)=>{let c=l?AN(a):a;e=e.resolve({context:r,parent:i,value:n});let f=e.type==="tuple",d=u?parseInt(c,10):0;if(e.innerType||f){if(f&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&d>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[d],e=f?e.spec.types[d]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,s=l?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class ec{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const t=[];for(const n of this.list)t.push(n);for(const[,n]of this.refs)t.push(n.describe());return t}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(t){return this.toArray().reduce((n,r)=>n.concat(Mn.isRef(r)?t(r):r),[])}add(t){Mn.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}delete(t){Mn.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}clone(){const t=new ec;return t.list=new Set(this.list),t.refs=new Map(this.refs),t}merge(t,n){const r=this.clone();return t.list.forEach(i=>r.add(i)),t.refs.forEach(i=>r.add(i)),n.list.forEach(i=>r.delete(i)),n.refs.forEach(i=>r.delete(i)),r}}function Ki(e,t=new Map){if(Cf(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Ki(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,Ki(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Ki(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Ki(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Nt{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new ec,this._blacklist=new ec,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Rn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ki(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(s=>{o.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&jt(o))return o;let s=li(t),a=li(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
328
328
|
|
|
329
329
|
attempted value: ${s}
|