@local-logic/sdks-app 1.0.0 → 1.2.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.
Files changed (57) hide show
  1. package/dist/assets/{auto-track-legacy.a46e361b.js → auto-track-legacy.5a15cc10.js} +1 -1
  2. package/dist/assets/{auto-track.bcea5d95.js → auto-track.9c4c37f2.js} +1 -1
  3. package/dist/assets/{index-legacy.770cfe03.js → index-legacy.2dafcab0.js} +1 -1
  4. package/dist/assets/index-legacy.33e7763b.js +1 -0
  5. package/dist/assets/{index-legacy.ea25d2c0.js → index-legacy.3e15a23a.js} +1 -1
  6. package/dist/assets/{index-legacy.98ea5567.js → index-legacy.64d191bf.js} +12 -12
  7. package/dist/assets/{index-legacy.ded6c0c3.js → index-legacy.8c8f66b9.js} +1 -1
  8. package/dist/assets/{index-legacy.9eb391ce.js → index-legacy.b1b7c758.js} +1 -1
  9. package/dist/assets/{index-legacy.b7a4faaa.js → index-legacy.bfac1b45.js} +1 -1
  10. package/dist/assets/{index-legacy.fe28c497.js → index-legacy.f168d7a1.js} +1 -1
  11. package/dist/assets/{index-legacy.5bcad02a.js → index-legacy.f70a489f.js} +1 -1
  12. package/dist/assets/{index-legacy.0be73293.js → index-legacy.fe45c685.js} +1 -1
  13. package/dist/assets/{index.9c4a9ff4.js → index.2fa91f65.js} +1 -1
  14. package/dist/assets/{index.3f198d2d.js → index.7c5ff2a7.js} +39 -39
  15. package/dist/assets/{index.16564d34.js → index.913d55c2.js} +1 -1
  16. package/dist/assets/{index.520a122e.js → index.a59f31e1.js} +16 -19
  17. package/dist/assets/{index.939781f4.js → index.a62f0f16.js} +1 -1
  18. package/dist/assets/{index.499b0146.js → index.ab13cdc9.js} +1 -1
  19. package/dist/assets/{index.9c512de3.js → index.b571c2ea.js} +1 -1
  20. package/dist/assets/{index.0ad6c4c5.js → index.e16053c4.js} +1 -1
  21. package/dist/assets/index.e267d77a.js +1 -0
  22. package/dist/assets/{index.a930ac3c.js → index.eedc8298.js} +1 -1
  23. package/dist/assets/{index.umd-legacy.97cfaf3e.js → index.umd-legacy.313ecd9d.js} +1 -1
  24. package/dist/assets/{index.umd.fababc47.js → index.umd.4df6dfc8.js} +1 -1
  25. package/dist/index.html +2 -2
  26. package/dist/types/components/Search/index.d.ts.map +1 -1
  27. package/dist/types/components/Search/index.js +13 -5
  28. package/dist/types/components/Search/index.js.map +1 -1
  29. package/dist/types/components/Search/useSuggestions.d.ts +1 -1
  30. package/dist/types/components/Search/useSuggestions.d.ts.map +1 -1
  31. package/dist/types/components/Search/useSuggestions.js +2 -1
  32. package/dist/types/components/Search/useSuggestions.js.map +1 -1
  33. package/dist/types/constants/tracking.d.ts +2 -3
  34. package/dist/types/constants/tracking.d.ts.map +1 -1
  35. package/dist/types/constants/tracking.js +2 -3
  36. package/dist/types/constants/tracking.js.map +1 -1
  37. package/dist/types/features/suggestions/types.d.ts +4 -1
  38. package/dist/types/features/suggestions/types.d.ts.map +1 -1
  39. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/index.d.ts.map +1 -1
  40. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/index.js +16 -4
  41. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/index.js.map +1 -1
  42. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/styles.d.ts +1 -1
  43. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/styles.d.ts.map +1 -1
  44. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/styles.js +1 -4
  45. package/dist/types/sdks/LocalContent/Map/CommuteContainer/CommuteCalculator/styles.js.map +1 -1
  46. package/dist/types/sdks/LocalContent/Map/CommuteContainer/index.d.ts.map +1 -1
  47. package/dist/types/sdks/LocalContent/Map/CommuteContainer/index.js +8 -2
  48. package/dist/types/sdks/LocalContent/Map/CommuteContainer/index.js.map +1 -1
  49. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.d.ts.map +1 -1
  50. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.js +3 -0
  51. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/index.js.map +1 -1
  52. package/dist/types/sdks/LocalContent/Map/index.d.ts.map +1 -1
  53. package/dist/types/sdks/LocalContent/Map/index.js +5 -0
  54. package/dist/types/sdks/LocalContent/Map/index.js.map +1 -1
  55. package/package.json +1 -1
  56. package/dist/assets/index-legacy.d5ed91f3.js +0 -1
  57. package/dist/assets/index.6afa5429.js +0 -1
@@ -1 +1 @@
1
- System.register(["./index-legacy.ea25d2c0.js","./index-legacy.ded6c0c3.js","./is-plan-event-enabled-legacy.0a339854.js","./index-legacy.770cfe03.js"],(function(t,n){"use strict";var i,e,r,o,s,a,u,c,l,d,h,f,v,g,p,y,m,w,b,_,z;return{setters:[function(t){i=t.b,e=t.c,r=t.f,o=t.a},function(t){s=t.l,a=t.g,u=t.u,c=t.i,l=t.a,d=t.C,h=t.b,f=t.c,v=t.e,g=t.m,p=t.p,y=t.P,m=t.f,w=t.h,b=t.j,_=t.k},function(t){z=t.i},function(){}],execute:function(){function n(t){return t.toLowerCase().replace(".","").replace(/\s+/g,"-")}function j(t,n){return void 0===n&&(n=!1),n?btoa(t).replace(/=/g,""):void 0}function k(t,o,u,c,l,d){return i(this,void 0,void 0,(function(){var i,h,f,v,g,p,y,m;return e(this,(function(e){switch(e.label){case 0:i=n(u),h=j(i,d),f=a(),v="".concat(f,"/integrations/").concat(null!=h?h:i,"/").concat(c,"/").concat(null!=h?h:i,".dynamic.js.gz"),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,s(v)];case 2:return e.sent(),function(t,n,i){var e,o;try{var s=(null!==(o=null===(e=null===window||void 0===window?void 0:window.performance)||void 0===e?void 0:e.getEntriesByName(t,"resource"))&&void 0!==o?o:[])[0];s&&n.stats.gauge("legacy_destination_time",Math.round(s.duration),r([i],s.duration<100?["cached"]:[],!0))}catch(a){}}(v,t,u),[3,4];case 3:throw g=e.sent(),t.stats.gauge("legacy_destination_time",-1,["plugin:".concat(u),"failed"]),g;case 4:return p=window["".concat(i,"Deps")],[4,Promise.all(p.map((function(t){return s(f+t+".gz")})))];case 5:return e.sent(),window["".concat(i,"Loader")](),(y=window["".concat(i,"Integration")]).Integration&&(y({user:function(){return o.user()},addIntegration:function(){}}),y=y.Integration),(m=new y(l)).analytics=o,[2,m]}}))}))}function S(t,n){return i(this,void 0,void 0,(function(){var r,o=this;return e(this,(function(s){switch(s.label){case 0:return r=[],c()?[2,n]:[4,p((function(){return n.length>0&&b()}),(function(){return i(o,void 0,void 0,(function(){var i;return e(this,(function(e){switch(e.label){case 0:return(i=n.pop())?[4,w(i,t)]:[2];case 1:return e.sent()instanceof _||r.push(i),[2]}}))}))}))];case 1:return s.sent(),r.map((function(t){return n.pushWithBackoff(t)})),[2,n]}}))}))}t("ajsDestinations",(function(t,n,i,e){var r,o;if(void 0===n&&(n={}),void 0===i&&(i={}),v())return[];t.plan&&((i=null!=i?i:{}).plan=t.plan);var s=null!==(o=null===(r=t.middlewareSettings)||void 0===r?void 0:r.routingRules)&&void 0!==o?o:[],a=g(t,null!=i?i:{});return Object.entries(t.integrations).map((function(t){var r,o=t[0],u=t[1];if(!o.startsWith("Segment")){var c=!1===n.All&&void 0===n[o];if(!1!==n[o]&&!c){var l=u.type,d=u.bundlingStatus,h=u.versionSettings;if(("unbundled"!==d&&("browser"===l||(null===(r=null==h?void 0:h.componentTypes)||void 0===r?void 0:r.includes("browser")))||"Segment.io"===o)&&"Iterable"!==o){var f=function(t){var n,i,e,r;return null!==(r=null!==(i=null===(n=t.versionSettings)||void 0===n?void 0:n.override)&&void 0!==i?i:null===(e=t.versionSettings)||void 0===e?void 0:e.version)&&void 0!==r?r:"latest"}(u),v=new I(o,f,a[o],i);return s.filter((function(t){return t.destinationName===o})).length>0&&e&&v.addMiddleware(e),v}}}})).filter((function(t){return void 0!==t}))}));var I=t("LegacyDestination",function(){function t(t,n,i,e){void 0===i&&(i={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=n,this.settings=o({},i),this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.options=e,this.buffer=e.disableClientPersistence?new y(4,[]):new m(4,"dest-".concat(t)),this.scheduleFlush()}return t.prototype.isLoaded=function(){return this._ready},t.prototype.ready=function(){var t;return null!==(t=this.onReady)&&void 0!==t?t:Promise.resolve()},t.prototype.load=function(t,n){return i(this,void 0,void 0,(function(){var i,r=this;return e(this,(function(e){switch(e.label){case 0:return this._ready||void 0!==this.onReady?[2]:(i=this,[4,k(t,n,this.name,this.version,this.settings,this.options.obfuscate)]);case 1:i.integration=e.sent(),this.onReady=new Promise((function(t){r.integration.once("ready",(function(){r._ready=!0,t(!0)}))})),this.onInitialize=new Promise((function(t){r.integration.on("initialize",(function(){r._initialized=!0,t(!0)}))}));try{t.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(o){throw t.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),o}return[2]}}))}))},t.prototype.unload=function(t,r){return function(t,r,o){return i(this,void 0,void 0,(function(){var i,s,c,l;return e(this,(function(e){return i=a(),s=n(t),c=j(t,o),l="".concat(i,"/integrations/").concat(null!=c?c:s,"/").concat(r,"/").concat(null!=c?c:s,".dynamic.js.gz"),[2,u(l)]}))}))}(this.name,this.version,this.options.obfuscate)},t.prototype.addMiddleware=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this.middleware=(t=this.middleware).concat.apply(t,n)},t.prototype.shouldBuffer=function(t){return"page"!==t.event.type&&(c()||!1===this._ready||!1===this._initialized)},t.prototype.send=function(t,n,r){var s,a;return i(this,void 0,void 0,(function(){var i,u,c,f,v,g;return e(this,(function(e){switch(e.label){case 0:if(this.shouldBuffer(t))return this.buffer.push(t),this.scheduleFlush(),[2,t];if(i=null===(a=null===(s=this.options)||void 0===s?void 0:s.plan)||void 0===a?void 0:a.track,u=t.event.event,i&&u&&"Segment.io"!==this.name){if(c=i[u],!z(i,c))return t.updateEvent("integrations",o(o({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new d({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t];if(t.updateEvent("integrations",o(o({},t.event.integrations),null==c?void 0:c.integrations)),(null==c?void 0:c.enabled)&&!1===(null==c?void 0:c.integrations[this.name]))return t.cancel(new d({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t]}return[4,h(this.name,t.event,this.middleware)];case 1:if(null===(f=e.sent()))return[2,t];v=new n(f,{}),t.stats.increment("analytics_js.integration.invoke",1,["method:".concat(r),"integration_name:".concat(this.name)]),e.label=2;case 2:return e.trys.push([2,5,,6]),this.integration?[4,l(this.integration.invoke.call(this.integration,r,v))]:[3,4];case 3:e.sent(),e.label=4;case 4:return[3,6];case 5:throw g=e.sent(),t.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(r),"integration_name:".concat(this.name)]),g;case 6:return[2,t]}}))}))},t.prototype.track=function(t){return i(this,void 0,void 0,(function(){return e(this,(function(n){return[2,this.send(t,f.Track,"track")]}))}))},t.prototype.page=function(t){var n;return i(this,void 0,void 0,(function(){var i=this;return e(this,(function(e){return(null===(n=this.integration)||void 0===n?void 0:n._assumesPageview)&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then((function(){return i.send(t,f.Page,"page")}))]}))}))},t.prototype.identify=function(t){return i(this,void 0,void 0,(function(){return e(this,(function(n){return[2,this.send(t,f.Identify,"identify")]}))}))},t.prototype.alias=function(t){return i(this,void 0,void 0,(function(){return e(this,(function(n){return[2,this.send(t,f.Alias,"alias")]}))}))},t.prototype.group=function(t){return i(this,void 0,void 0,(function(){return e(this,(function(n){return[2,this.send(t,f.Group,"group")]}))}))},t.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout((function(){return i(t,void 0,void 0,(function(){var t;return e(this,(function(n){switch(n.label){case 0:return this.flushing=!0,t=this,[4,S(this,this.buffer)];case 1:return t.buffer=n.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},t}())}}}));
1
+ System.register(["./index-legacy.3e15a23a.js","./index-legacy.8c8f66b9.js","./is-plan-event-enabled-legacy.0a339854.js","./index-legacy.2dafcab0.js"],(function(t,n){"use strict";var i,e,r,o,s,a,u,c,l,d,h,f,v,g,p,y,m,w,b,_,z;return{setters:[function(t){i=t.b,e=t.c,r=t.f,o=t.a},function(t){s=t.l,a=t.g,u=t.u,c=t.i,l=t.a,d=t.C,h=t.b,f=t.c,v=t.e,g=t.m,p=t.p,y=t.P,m=t.f,w=t.h,b=t.j,_=t.k},function(t){z=t.i},function(){}],execute:function(){function n(t){return t.toLowerCase().replace(".","").replace(/\s+/g,"-")}function j(t,n){return void 0===n&&(n=!1),n?btoa(t).replace(/=/g,""):void 0}function k(t,o,u,c,l,d){return i(this,void 0,void 0,(function(){var i,h,f,v,g,p,y,m;return e(this,(function(e){switch(e.label){case 0:i=n(u),h=j(i,d),f=a(),v="".concat(f,"/integrations/").concat(null!=h?h:i,"/").concat(c,"/").concat(null!=h?h:i,".dynamic.js.gz"),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,s(v)];case 2:return e.sent(),function(t,n,i){var e,o;try{var s=(null!==(o=null===(e=null===window||void 0===window?void 0:window.performance)||void 0===e?void 0:e.getEntriesByName(t,"resource"))&&void 0!==o?o:[])[0];s&&n.stats.gauge("legacy_destination_time",Math.round(s.duration),r([i],s.duration<100?["cached"]:[],!0))}catch(a){}}(v,t,u),[3,4];case 3:throw g=e.sent(),t.stats.gauge("legacy_destination_time",-1,["plugin:".concat(u),"failed"]),g;case 4:return p=window["".concat(i,"Deps")],[4,Promise.all(p.map((function(t){return s(f+t+".gz")})))];case 5:return e.sent(),window["".concat(i,"Loader")](),(y=window["".concat(i,"Integration")]).Integration&&(y({user:function(){return o.user()},addIntegration:function(){}}),y=y.Integration),(m=new y(l)).analytics=o,[2,m]}}))}))}function S(t,n){return i(this,void 0,void 0,(function(){var r,o=this;return e(this,(function(s){switch(s.label){case 0:return r=[],c()?[2,n]:[4,p((function(){return n.length>0&&b()}),(function(){return i(o,void 0,void 0,(function(){var i;return e(this,(function(e){switch(e.label){case 0:return(i=n.pop())?[4,w(i,t)]:[2];case 1:return e.sent()instanceof _||r.push(i),[2]}}))}))}))];case 1:return s.sent(),r.map((function(t){return n.pushWithBackoff(t)})),[2,n]}}))}))}t("ajsDestinations",(function(t,n,i,e){var r,o;if(void 0===n&&(n={}),void 0===i&&(i={}),v())return[];t.plan&&((i=null!=i?i:{}).plan=t.plan);var s=null!==(o=null===(r=t.middlewareSettings)||void 0===r?void 0:r.routingRules)&&void 0!==o?o:[],a=g(t,null!=i?i:{});return Object.entries(t.integrations).map((function(t){var r,o=t[0],u=t[1];if(!o.startsWith("Segment")){var c=!1===n.All&&void 0===n[o];if(!1!==n[o]&&!c){var l=u.type,d=u.bundlingStatus,h=u.versionSettings;if(("unbundled"!==d&&("browser"===l||(null===(r=null==h?void 0:h.componentTypes)||void 0===r?void 0:r.includes("browser")))||"Segment.io"===o)&&"Iterable"!==o){var f=function(t){var n,i,e,r;return null!==(r=null!==(i=null===(n=t.versionSettings)||void 0===n?void 0:n.override)&&void 0!==i?i:null===(e=t.versionSettings)||void 0===e?void 0:e.version)&&void 0!==r?r:"latest"}(u),v=new I(o,f,a[o],i);return s.filter((function(t){return t.destinationName===o})).length>0&&e&&v.addMiddleware(e),v}}}})).filter((function(t){return void 0!==t}))}));var I=t("LegacyDestination",function(){function t(t,n,i,e){void 0===i&&(i={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=n,this.settings=o({},i),this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.options=e,this.buffer=e.disableClientPersistence?new y(4,[]):new m(4,"dest-".concat(t)),this.scheduleFlush()}return t.prototype.isLoaded=function(){return this._ready},t.prototype.ready=function(){var t;return null!==(t=this.onReady)&&void 0!==t?t:Promise.resolve()},t.prototype.load=function(t,n){return i(this,void 0,void 0,(function(){var i,r=this;return e(this,(function(e){switch(e.label){case 0:return this._ready||void 0!==this.onReady?[2]:(i=this,[4,k(t,n,this.name,this.version,this.settings,this.options.obfuscate)]);case 1:i.integration=e.sent(),this.onReady=new Promise((function(t){r.integration.once("ready",(function(){r._ready=!0,t(!0)}))})),this.onInitialize=new Promise((function(t){r.integration.on("initialize",(function(){r._initialized=!0,t(!0)}))}));try{t.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(o){throw t.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),o}return[2]}}))}))},t.prototype.unload=function(t,r){return function(t,r,o){return i(this,void 0,void 0,(function(){var i,s,c,l;return e(this,(function(e){return i=a(),s=n(t),c=j(t,o),l="".concat(i,"/integrations/").concat(null!=c?c:s,"/").concat(r,"/").concat(null!=c?c:s,".dynamic.js.gz"),[2,u(l)]}))}))}(this.name,this.version,this.options.obfuscate)},t.prototype.addMiddleware=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this.middleware=(t=this.middleware).concat.apply(t,n)},t.prototype.shouldBuffer=function(t){return"page"!==t.event.type&&(c()||!1===this._ready||!1===this._initialized)},t.prototype.send=function(t,n,r){var s,a;return i(this,void 0,void 0,(function(){var i,u,c,f,v,g;return e(this,(function(e){switch(e.label){case 0:if(this.shouldBuffer(t))return this.buffer.push(t),this.scheduleFlush(),[2,t];if(i=null===(a=null===(s=this.options)||void 0===s?void 0:s.plan)||void 0===a?void 0:a.track,u=t.event.event,i&&u&&"Segment.io"!==this.name){if(c=i[u],!z(i,c))return t.updateEvent("integrations",o(o({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new d({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t];if(t.updateEvent("integrations",o(o({},t.event.integrations),null==c?void 0:c.integrations)),(null==c?void 0:c.enabled)&&!1===(null==c?void 0:c.integrations[this.name]))return t.cancel(new d({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t]}return[4,h(this.name,t.event,this.middleware)];case 1:if(null===(f=e.sent()))return[2,t];v=new n(f,{}),t.stats.increment("analytics_js.integration.invoke",1,["method:".concat(r),"integration_name:".concat(this.name)]),e.label=2;case 2:return e.trys.push([2,5,,6]),this.integration?[4,l(this.integration.invoke.call(this.integration,r,v))]:[3,4];case 3:e.sent(),e.label=4;case 4:return[3,6];case 5:throw g=e.sent(),t.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(r),"integration_name:".concat(this.name)]),g;case 6:return[2,t]}}))}))},t.prototype.track=function(t){return i(this,void 0,void 0,(function(){return e(this,(function(n){return[2,this.send(t,f.Track,"track")]}))}))},t.prototype.page=function(t){var n;return i(this,void 0,void 0,(function(){var i=this;return e(this,(function(e){return(null===(n=this.integration)||void 0===n?void 0:n._assumesPageview)&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then((function(){return i.send(t,f.Page,"page")}))]}))}))},t.prototype.identify=function(t){return i(this,void 0,void 0,(function(){return e(this,(function(n){return[2,this.send(t,f.Identify,"identify")]}))}))},t.prototype.alias=function(t){return i(this,void 0,void 0,(function(){return e(this,(function(n){return[2,this.send(t,f.Alias,"alias")]}))}))},t.prototype.group=function(t){return i(this,void 0,void 0,(function(){return e(this,(function(n){return[2,this.send(t,f.Group,"group")]}))}))},t.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout((function(){return i(t,void 0,void 0,(function(){var t;return e(this,(function(n){switch(n.label){case 0:return this.flushing=!0,t=this,[4,S(this,this.buffer)];case 1:return t.buffer=n.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},t}())}}}));
@@ -492,7 +492,7 @@ Url: ${Rc(e)}`),!0)}function l9(e,t){return!t||!t.length?!1:d9(e).some(n=>t.some
492
492
  * LICENSE.md file in the root directory of this source tree.
493
493
  *
494
494
  * @license MIT
495
- */function bn(){return bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(this,arguments)}function sv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function HF(e,t){var n,r,o,i="";for(n in e)if((o=e[n])!==void 0)if(Array.isArray(o))for(r=0;r<o.length;r++)i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o[r]);else i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o);return(t||"")+i}function Pw(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function UF(e){for(var t,n,r={},o=e.split("&");t=o.shift();)t=t.split("="),n=t.shift(),r[n]!==void 0?r[n]=[].concat(r[n],Pw(t.shift())):r[n]=Pw(t.shift());return r}const GF=["children","location","__experimental__snapshot"],YF=["location","__experimental__snapshot"],WF=["basepath","routes"],dT=f.exports.createContext(null),fT=f.exports.createContext(null),pT=f.exports.createContext(null),hT=Boolean(typeof window<"u"&&window.document&&window.document.createElement),lv=hT?f.exports.useLayoutEffect:f.exports.useEffect,qF=()=>hT?BF():VF();class Zg{constructor(){this.listeners=[]}subscribe(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}notify(){this.listeners.forEach(t=>t())}}class KF extends Zg{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||qF(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:l7,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:s7,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(o=>{this.current=this.parseLocation(o.location,this.current),this.notify()})}buildNext(t,n){var r,o,i,a;t===void 0&&(t="/"),n===void 0&&(n={});const s=bn({},this.current,n.from),l=a7(t,s.pathname,""+((r=n.to)!=null?r:".")),u=(o=n.__searchFilters)!=null&&o.length?n.__searchFilters.reduce((v,m)=>m(v),s.search):s.search,c=n.search===!0?u:n.search?(i=Mw(n.search,u))!=null?i:{}:(a=n.__searchFilters)!=null&&a.length?u:{},d=uv(s.search,c),p=this.stringifySearch(d);let h=n.hash===!0?s.hash:Mw(n.hash,s.hash);return h=h?"#"+h:"",{pathname:l,search:d,searchStr:p,hash:h,href:""+l+p+h,key:n.key}}navigate(t,n){this.current=t,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";return n||(r="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(r="replace"),r==="replace"?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(t,n){var r;const o=this.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:uv(n==null?void 0:n.search,o),hash:(r=t.hash.split("#").reverse()[0])!=null?r:"",href:""+t.pathname+t.search+t.hash,key:t.key}}}function mT(e){return D(fT.Provider,{...e})}function XF(e){let{children:t,location:n,__experimental__snapshot:r}=e,o=sv(e,GF);const i=f.exports.useRef(null);i.current||(i.current=new QF({location:n,__experimental__snapshot:r,routes:o.routes}));const a=i.current,[s,l]=f.exports.useReducer(()=>({}),{});return a.update(o),lv(()=>a.subscribe(()=>{l()}),[]),lv(()=>a.updateLocation(n.current).unsubscribe,[n.current.key]),f.exports.createElement(dT.Provider,{value:{location:n}},f.exports.createElement(pT.Provider,{value:{router:a}},D(ZF,{}),D(mT,{value:[a.rootMatch,...a.state.matches],children:t!=null?t:D(Qg,{})})))}function ZF(){const e=Sa(),t=_T(),n=wT();return lv(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class QF extends Zg{constructor(t){var n;let{location:r,__experimental__snapshot:o}=t,i=sv(t,YF);super(),this.routesById={},this.update=s=>{let{basepath:l,routes:u}=s,c=sv(s,WF);Object.assign(this,c),this.basepath=Ef("/"+(l!=null?l:"")),this.routesById={};const d=(p,h)=>p.map(v=>{var m,w,g,y;const x=(m=v.path)!=null?m:"*",_=la([(h==null?void 0:h.id)==="root"?"":h==null?void 0:h.id,""+(x==null?void 0:x.replace(/(.)\/$/,"$1"))+(v.id?"-"+v.id:"")]);if(v=bn({},v,{pendingMs:(w=v.pendingMs)!=null?w:c==null?void 0:c.defaultPendingMs,pendingMinMs:(g=v.pendingMinMs)!=null?g:c==null?void 0:c.defaultPendingMinMs,id:_}),this.routesById[_])throw new Error;return this.routesById[_]=v,v.children=(y=v.children)!=null&&y.length?d(v.children,v):void 0,v});this.routes=d(u),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=s=>{const l=s({state:this.state,pending:this.pending});this.state=l.state,this.pending=l.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var s,l,u;const c=[...(s=this==null?void 0:this.state.matches)!=null?s:[],...(l=this==null||(u=this.pending)==null?void 0:u.matches)!=null?l:[]].map(d=>d.id);Object.values(this.matchCache).forEach(d=>{var p;if(!d.updatedAt||c.includes(d.id))return;const h=Date.now()-((p=d.updatedAt)!=null?p:0);(!d.maxAge||h>d.maxAge)&&(d.route.unloader&&d.route.unloader(d),delete this.matchCache[d.id])})},this.updateLocation=s=>{let l;return{promise:new Promise(c=>{const d=new Ow(this,s);this.setState(p=>bn({},p,{pending:{location:d.location,matches:d.matches}})),l=d.subscribe(()=>{const p=this.state.matches;p.filter(h=>!d.matches.find(v=>v.id===h.id)).forEach(h=>{h.onExit==null||h.onExit(h)}),p.filter(h=>d.matches.find(v=>v.id===h.id)).forEach(h=>{h.route.onTransition==null||h.route.onTransition(h)}),d.matches.filter(h=>!p.find(v=>v.id===h.id)).forEach(h=>{h.onExit=h.route.onMatch==null?void 0:h.route.onMatch(h)}),this.setState(h=>bn({},h,{state:{location:d.location,matches:d.matches},pending:void 0})),c()}),d.loadData(),d.startPending()}),unsubscribe:l}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(s=>{let{ownData:l,id:u}=s;return{id:u,ownData:l}})}),this.update(i);let a=[];if(o){const s=new Ow(this,r.current);s.matches.forEach((l,u)=>{var c,d,p;if(l.id!==((c=o.matches[u])==null?void 0:c.id)){var h;throw new Error("Router hydration mismatch: "+l.id+" !== "+((h=o.matches[u])==null?void 0:h.id))}l.ownData=(d=(p=o.matches[u])==null?void 0:p.ownData)!=null?d:{}}),vT(s.matches),a=s.matches}this.state={location:(n=o==null?void 0:o.location)!=null?n:r.current,matches:a},r.subscribe(()=>this.notify())}}function Sa(){const e=f.exports.useContext(dT);return ET(!!e,"useLocation must be used within a <ReactLocation />"),e.location}class JF{constructor(t){this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=n=>{var r;(r=this.matchLoader)==null||r.preNotify(n?this:void 0)},this.assignMatchLoader=n=>{this.matchLoader=n},this.startPending=()=>{this.pendingTimeout&&clearTimeout(this.pendingTimeout),this.route.pendingMs!==void 0&&(this.pendingTimeout=setTimeout(()=>{var n;this.status==="loading"&&(this.status="pending"),(n=this.notify)==null||n.call(this),typeof this.route.pendingMinMs<"u"&&(this.pendingMinPromise=new Promise(r=>setTimeout(r,this.route.pendingMinMs)))},this.route.pendingMs))},this.load=n=>{var r,o;if(this.maxAge=(r=(o=n.maxAge)!=null?o:this.route.loaderMaxAge)!=null?r:n.router.defaultLoaderMaxAge,this.loaderPromise)return;const i=this.route.import;this.loaderPromise=(i?(()=>(this.isLoading=!0,i({params:this.params,search:this.search}).then(a=>{this.route=bn({},this.route,a)})))():Promise.resolve()).then(()=>{const a=[];["element","errorElement","pendingElement"].forEach(c=>{const d=this.route[c];this[c]||(typeof d=="function"?(this.isLoading=!0,a.push(d(this).then(p=>{this[c]=p}))):this[c]=this.route[c])});const l=this.route.loader,u=l?new Promise(async c=>{this.isLoading=!0;const d=v=>{this.updatedAt=Date.now(),c(this.ownData),this.status=v},p=v=>{this.ownData=v,this.error=void 0,d("resolved")},h=v=>{console.error(v),this.error=v,d("rejected")};try{p(await l(this,{parentMatch:n.parentMatch,dispatch:async v=>{var m;v.type==="resolve"?p(v.data):v.type==="reject"?h(v.error):v.type==="loading"?this.isLoading=!0:v.type==="maxAge"&&(this.maxAge=v.maxAge),this.updatedAt=Date.now(),(m=this.notify)==null||m.call(this,!0)}}))}catch(v){h(v)}}):Promise.resolve();return Promise.all([...a,u]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var c;this.pendingTimeout&&clearTimeout(this.pendingTimeout),(c=this.notify)==null||c.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,t)}}class Ow extends Zg{constructor(t,n){var r;super(),r=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=i=>{i&&(this.preNotifiedMatches.includes(i)||this.preNotifiedMatches.push(i)),(!i||this.preNotifiedMatches.length===this.matches.length)&&(this.status="resolved",vT(this.matches),this.notify())},this.loadData=async function(i){var a;let{maxAge:s}=i===void 0?{}:i;if(r.router.cleanMatchCache(),!((a=r.matches)!=null&&a.length)){r.preNotify();return}return r.firstRenderPromises=[],r.matches.forEach((l,u)=>{var c,d;const p=(c=r.matches)==null?void 0:c[u-1];l.assignMatchLoader==null||l.assignMatchLoader(r),l.load==null||l.load({maxAge:s,parentMatch:p,router:r.router}),(d=r.firstRenderPromises)==null||d.push(l.loaderPromise)}),await Promise.all(r.firstRenderPromises).then(()=>(r.preNotify(),r.matches))},this.load=async function(i){let{maxAge:a}=i===void 0?{}:i;return await r.loadData({maxAge:a})},this.startPending=async()=>{this.matches.forEach(i=>i.startPending==null?void 0:i.startPending())},this.router=t,this.location=n,this.matches=[];const o=yT(this.router,this.location);this.matches=o==null?void 0:o.map(i=>(this.router.matchCache[i.id]||(this.router.matchCache[i.id]=new JF(i)),this.router.matchCache[i.id]))}}function vT(e){e==null||e.forEach((t,n)=>{var r;const o=e==null?void 0:e[n-1];t.data=bn({},(r=o==null?void 0:o.data)!=null?r:{},t.ownData)})}function gT(){const e=f.exports.useContext(pT);if(!e)throw ET(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return e.router}function yT(e,t){if(!e.routes.length)return[];const n=[],r=async(o,i)=>{var a;let{pathname:s,params:l}=i;const c=(e!=null&&e.filterRoutes?e==null?void 0:e.filterRoutes(o):o).find(v=>{var m,w;const g=la([s,v.path]),y=!!(v.path!=="/"||(m=v.children)!=null&&m.length),x=n7(t,{to:g,search:v.search,fuzzy:y,caseSensitive:(w=v.caseSensitive)!=null?w:e.caseSensitive});return x&&(l=bn({},l,x)),!!x});if(!c)return;const d=Lw(c.path,l);s=la([s,d]);const h={id:Lw(c.id,l,!0),route:c,params:l,pathname:s,search:t.search};n.push(h),(a=c.children)!=null&&a.length&&r(c.children,h)};return r(e.routes,e.rootMatch),n}function Lw(e,t,n){const r=Qs(e);return la(r.map(o=>{if(o.value==="*"&&!n)return"";if(o.type==="param"){var i;return(i=t[o.value.substring(1)])!=null?i:""}return o.value}))}function xT(){return f.exports.useContext(fT)}function e7(){var e;return(e=xT())==null?void 0:e[0]}function wT(){const e=Sa(),t=e7(),n=_T();function r(o){var i;let{search:a,hash:s,replace:l,from:u,to:c,fromCurrent:d}=o;d=(i=d)!=null?i:typeof c>"u";const p=n({to:c,search:a,hash:s,from:d?e.current:u!=null?u:{pathname:t.pathname}});e.navigate(p,l)}return bT(r)}function _T(){const e=Sa(),t=gT();return bT(r=>{const o=e.buildNext(t.basepath,r),a=yT(t,o).map(s=>{var l;return(l=s.route.searchFilters)!=null?l:[]}).flat().filter(Boolean);return e.buildNext(t.basepath,bn({},r,{__searchFilters:a}))})}function Qg(){var e;const t=gT(),[n,...r]=xT(),o=r[0];if(!o)return null;const i=(e=o.errorElement)!=null?e:t.defaultErrorElement,a=(()=>{var s,l;if(o.status==="rejected"){if(i)return i;if(!t.useErrorBoundary)return"An unknown error occured!";throw o.error}const u=(s=o.pendingElement)!=null?s:t.defaultPendingElement;if(o.status==="loading")return null;if(o.status==="pending"&&(o.route.pendingMs||u))return u!=null?u:null;const c=(l=o.element)!=null?l:t.defaultElement;return c!=null?c:D(Qg,{})})();return D(mT,{value:r,children:a})}function t7(){return Sa().current.search}function n7(e,t){const n=o7(e,t),r=i7(e,t);if(!(t.to&&!n)&&!(t.search&&!r))return n!=null?n:{}}function ET(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function r7(e){return typeof e=="function"}function Mw(e,t){return r7(e)?e(t):e}function la(e){return Ef(e.filter(Boolean).join("/"))}function Ef(e){return(""+e).replace(/\/{2,}/g,"/")}function o7(e,t){var n;const r=Qs(e.pathname),o=Qs(""+((n=t.to)!=null?n:"*")),i={};return(()=>{for(let s=0;s<Math.max(r.length,o.length);s++){const l=r[s],u=o[s],c=s===o.length-1,d=s===r.length-1;if(u){if(u.type==="wildcard")return l!=null&&l.value?(i["*"]=la(r.slice(s).map(p=>p.value)),!0):!1;if(u.type==="pathname"){if(u.value==="/"&&!(l!=null&&l.value))return!0;if(l){if(t.caseSensitive){if(u.value!==l.value)return!1}else if(u.value.toLowerCase()!==l.value.toLowerCase())return!1}}if(!l)return!1;u.type==="param"&&(i[u.value.substring(1)]=l.value)}if(c&&!d)return!!t.fuzzy}return!0})()?i:void 0}function i7(e,t){return!!(t.search&&t.search(e.search))}function Qs(e){if(!e)return[];e=Ef(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(r=>r.startsWith("*")?{type:"wildcard",value:r}:r.charAt(0)===":"?{type:"param",value:r}:{type:"pathname",value:r})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function a7(e,t,n){t=t.replace(new RegExp("^"+e),"/"),n=n.replace(new RegExp("^"+e),"/");let r=Qs(t);const o=Qs(n);o.forEach((a,s)=>{if(a.value==="/")s?s===o.length-1&&r.push(a):r=[a];else if(a.value==="..")r.pop();else{if(a.value===".")return;r.push(a)}});const i=la([e,...r.map(a=>a.value)]);return Ef(i)}function bT(e){const t=f.exports.useRef(),n=f.exports.useRef(e);return n.current=e,t.current||(t.current=function(){return n.current(...arguments)}),t.current}function uv(e,t){if(e===t)return e;const n=Array.isArray(e)&&Array.isArray(t);if(n||Dw(e)&&Dw(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=uv(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function Dw(e){if(!Nw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Nw(n)||!n.hasOwnProperty("isPrototypeOf"))}function Nw(e){return Object.prototype.toString.call(e)==="[object Object]"}const s7=u7(JSON.parse),l7=c7(JSON.stringify);function u7(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));let n=UF(t);for(let r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch(i){}}return n}}function c7(e){return t=>{t=bn({},t),t&&Object.keys(t).forEach(r=>{const o=t[r];if(typeof o>"u"||o===void 0)delete t[r];else if(o&&typeof o=="object"&&o!==null)try{t[r]=e(o)}catch(i){}});const n=HF(t).toString();return n?"?"+n:""}}function cv(e,t){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},cv(e,t)}function d7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cv(e,t)}var f7=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},Fw={error:null},p7=function(e){d7(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=Fw,r.resetErrorBoundary=function(){for(var s,l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];r.props.onReset==null||(s=r.props).onReset.apply(s,u),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(Fw)},n.componentDidCatch=function(o,i){var a,s;(a=(s=this.props).onError)==null||a.call(s,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,s=this.props.resetKeys;if(a!==null&&i.error!==null&&f7(o.resetKeys,s)){var l,u;(l=(u=this.props).onResetKeysChange)==null||l.call(u,o.resetKeys,s),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,s=i.FallbackComponent,l=i.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(f.exports.isValidElement(l))return l;if(typeof a=="function")return a(u);if(s)return D(s,{...u});throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(f.exports.Component);class bf{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Jg=typeof window>"u";function hn(){}function h7(e,t){return typeof e=="function"?e(t):e}function m7(e){return typeof e=="number"&&e>=0&&e!==1/0}function v7(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Up(e,t,n){return Sf(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Lr(e,t,n){return Sf(e)?[{...t,queryKey:e},n]:[e||{},t]}function Iw(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(Sf(a)){if(r){if(t.queryHash!==e1(a,t.options))return!1}else if(!Gc(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function jw(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(Sf(i)){if(!t.options.mutationKey)return!1;if(n){if(No(t.options.mutationKey)!==No(i))return!1}else if(!Gc(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function e1(e,t){return((t==null?void 0:t.queryKeyHashFn)||No)(e)}function No(e){return JSON.stringify(e,(t,n)=>dv(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Gc(e,t){return ST(e,t)}function ST(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ST(e[n],t[n])):!1}function CT(e,t){if(e===t)return e;const n=zw(e)&&zw(t);if(n||dv(e)&&dv(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=CT(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function vee(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dv(e){if(!Bw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Bw(n)||!n.hasOwnProperty("isPrototypeOf"))}function Bw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Sf(e){return Array.isArray(e)}function AT(e){return new Promise(t=>{setTimeout(t,e)})}function Vw(e){AT(0).then(e)}function g7(){if(typeof AbortController=="function")return new AbortController}function y7(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?CT(e,t):t}class x7 extends bf{constructor(){super(),this.setup=t=>{if(!Jg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const fv=new x7;class w7 extends bf{constructor(){super(),this.setup=t=>{if(!Jg&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Yc=new w7;function _7(e){return Math.min(1e3*2**e,3e4)}function t1(e){return(e!=null?e:"online")==="online"?Yc.isOnline():!0}class TT{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Gp(e){return e instanceof TT}function $T(e){let t=!1,n=0,r=!1,o,i,a;const s=new Promise((w,g)=>{i=w,a=g}),l=w=>{r||(h(new TT(w)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!fv.isFocused()||e.networkMode!=="always"&&!Yc.isOnline(),p=w=>{r||(r=!0,e.onSuccess==null||e.onSuccess(w),o==null||o(),i(w))},h=w=>{r||(r=!0,e.onError==null||e.onError(w),o==null||o(),a(w))},v=()=>new Promise(w=>{o=g=>{if(r||!d())return w(g)},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let w;try{w=e.fn()}catch(g){w=Promise.reject(g)}Promise.resolve(w).then(p).catch(g=>{var y,x;if(r)return;const _=(y=e.retry)!=null?y:3,E=(x=e.retryDelay)!=null?x:_7,b=typeof E=="function"?E(n,g):E,S=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,g);if(t||!S){h(g);return}n++,e.onFail==null||e.onFail(n,g),AT(b).then(()=>{if(d())return v()}).then(()=>{t?h(g):m()})})};return t1(e.networkMode)?m():v().then(m),{promise:s,cancel:l,continue:()=>{o==null||o()},cancelRetry:u,continueRetry:c}}const n1=console;function E7(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||s()}return d},i=c=>{t?e.push(c):Vw(()=>{n(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},s=()=>{const c=e;e=[],c.length&&Vw(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Tt=E7();class kT{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),m7(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:Jg?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class b7 extends kT{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||n1,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||S7(this.options),this.state=this.initialState,this.meta=t.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.meta=t==null?void 0:t.meta,this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=y7(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(hn).catch(hn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!v7(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(v=>v.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey);const a=g7(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u,meta:this.meta};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const p=h=>{if(Gp(h)&&h.silent||this.dispatch({type:"error",error:h}),!Gp(h)){var v,m;(v=(m=this.cache.config).onError)==null||v.call(m,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=$T({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:h=>{var v,m;if(typeof h>"u"){p(new Error("Query data cannot be undefined"));return}this.setData(h),(v=(m=this.cache.config).onSuccess)==null||v.call(m,h,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:r.fetchFailureCount+1};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:t1(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0}};case"error":const a=t.error;return Gp(a)&&a.revert&&this.revertState?{...this.revertState}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function S7(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof e.initialData<"u"?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,o=typeof t<"u";return{data:t,dataUpdateCount:0,dataUpdatedAt:o?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isInvalidated:!1,status:o?"success":"loading",fetchStatus:"idle"}}class C7 extends bf{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,a=(o=n.queryHash)!=null?o:e1(i,n);let s=this.get(a);return s||(s=new b7({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i),meta:n.meta}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Lr(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>Iw(r,o))}findAll(t,n){const[r]=Lr(t,n);return Object.keys(r).length>0?this.queries.filter(o=>Iw(r,o)):this.queries}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class A7 extends kT{constructor(t){super(),this.options={...t.defaultOptions,...t.options},this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||n1,this.observers=[],this.state=t.state||T7(),this.meta=t.meta,this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const t=()=>{var x;return this.retryer=$T({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(x=this.options.retry)!=null?x:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,a,s,l;if(!n){var u,c,d,p;this.dispatch({type:"loading",variables:this.options.variables}),(u=(c=this.mutationCache.config).onMutate)==null||u.call(c,this.state.variables,this);const _=await((d=(p=this.options).onMutate)==null?void 0:d.call(p,this.state.variables));_!==this.state.context&&this.dispatch({type:"loading",context:_,variables:this.state.variables})}const x=await t();return(r=(o=this.mutationCache.config).onSuccess)==null||r.call(o,x,this.state.variables,this.state.context,this),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,x,this.state.variables,this.state.context)),await((s=(l=this.options).onSettled)==null?void 0:s.call(l,x,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:x}),x}catch(x){try{var h,v,m,w,g,y;throw(h=(v=this.mutationCache.config).onError)==null||h.call(v,x,this.state.variables,this.state.context,this),await((m=(w=this.options).onError)==null?void 0:m.call(w,x,this.state.variables,this.state.context)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,void 0,x,this.state.variables,this.state.context)),x}finally{this.dispatch({type:"error",error:x})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:r.failureCount+1};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,error:null,isPaused:!t1(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function T7(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}class $7 extends bf{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new A7({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0,meta:n.meta});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Tt.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>jw(t,n))}findAll(t){return this.mutations.filter(n=>jw(t,n))}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.mutations.filter(n=>n.state.isPaused);return Tt.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(hn)),Promise.resolve()))}}function k7(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",p=((i=e.state.data)==null?void 0:i.pages)||[],h=((a=e.state.data)==null?void 0:a.pageParams)||[];let v=h,m=!1;const w=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>{var S;if((S=e.signal)!=null&&S.aborted)m=!0;else{var C;(C=e.signal)==null||C.addEventListener("abort",()=>{m=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),y=(b,S,C,$)=>(v=$?[S,...v]:[...v,S],$?[C,...b]:[...b,C]),x=(b,S,C,$)=>{if(m)return Promise.reject("Cancelled");if(typeof C>"u"&&!S&&b.length)return Promise.resolve(b);const T={queryKey:e.queryKey,pageParam:C,meta:e.meta};w(T);const F=g(T);return Promise.resolve(F).then(U=>y(b,C,U,$))};let _;if(!p.length)_=x([]);else if(c){const b=typeof u<"u",S=b?u:Hw(e.options,p);_=x(p,b,S)}else if(d){const b=typeof u<"u",S=b?u:R7(e.options,p);_=x(p,b,S,!0)}else{v=[];const b=typeof e.options.getNextPageParam>"u";_=(s&&p[0]?s(p[0],0,p):!0)?x([],b,h[0]):Promise.resolve(y([],h[0],p[0]));for(let C=1;C<p.length;C++)_=_.then($=>{if(s&&p[C]?s(p[C],C,p):!0){const F=b?h[C]:Hw(e.options,$);return x($,b,F)}return Promise.resolve(y($,h[C],p[C]))})}return _.then(b=>({pages:b,pageParams:v}))}}}}function Hw(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function R7(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class P7{constructor(t={}){this.queryCache=t.queryCache||new C7,this.mutationCache=t.mutationCache||new $7,this.logger=t.logger||n1,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=fv.subscribe(()=>{fv.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Yc.subscribe(()=>{Yc.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})}unmount(){var t,n;(t=this.unsubscribeFocus)==null||t.call(this),(n=this.unsubscribeOnline)==null||n.call(this)}isFetching(t,n){const[r]=Lr(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=h7(n,i);if(typeof a>"u")return;const s=Up(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Tt.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Lr(t,n),o=this.queryCache;Tt.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=Lr(t,n,r),a=this.queryCache,s={type:"active",...o};return Tt.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=Lr(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const a=Tt.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(hn).catch(hn)}invalidateQueries(t,n,r){const[o,i]=Lr(t,n,r);return Tt.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const l={...o,type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[o,i]=Lr(t,n,r),a=Tt.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(a).then(hn);return i!=null&&i.throwOnError||(s=s.catch(hn)),s}fetchQuery(t,n,r){const o=Up(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(hn).catch(hn)}fetchInfiniteQuery(t,n,r){const o=Up(t,n,r);return o.behavior=k7(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(hn).catch(hn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>No(t)===No(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Gc(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>No(t)===No(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Gc(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=e1(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}const Uw=f.exports.createContext(void 0),RT=f.exports.createContext(!1);function PT(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Uw),window.ReactQueryClientContext):Uw)}const gee=({context:e}={})=>{const t=f.exports.useContext(PT(e,f.exports.useContext(RT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},O7=({client:e,children:t,context:n,contextSharing:r=!1})=>{f.exports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=PT(n,r);return D(RT.Provider,{value:!n&&r,children:D(o.Provider,{value:e,children:t})})},L7="modulepreload",M7=function(e){return"/sdks-app/v1/"+e},Gw={},ua=function(t,n,r){return!n||n.length===0?t():Promise.all(n.map(o=>{if(o=M7(o),o in Gw)return;Gw[o]=!0;const i=o.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${a}`))return;const s=document.createElement("link");if(s.rel=i?"stylesheet":L7,i||(s.as="script",s.crossOrigin=""),s.href=o,document.head.appendChild(s),i)return new Promise((l,u)=>{s.addEventListener("load",l),s.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};var pv=(e=>(e.LOCAL_CONTENT="local-content",e.DATA_EXPLORER="data-explorer",e))(pv||{});const D7=new KF,N7=J.lazy(()=>ua(()=>import("./index.520a122e.js").then(e=>e.q),["assets/index.520a122e.js","assets/index.3f198d2d.js","assets/index.08649806.css"])),F7=J.lazy(()=>ua(()=>import("./index.939781f4.js"),["assets/index.939781f4.js","assets/index.3f198d2d.js","assets/index.08649806.css"])),I7=({children:e})=>{const t=[{path:`/sdks-app/v1/${pv.LOCAL_CONTENT}`,element:D(N7,{})},{path:`/sdks-app/v1/${pv.DATA_EXPLORER}`,element:D(F7,{})}];return D(XF,{location:D7,routes:t,children:e})};var j7=Object.defineProperty,z7=(e,t,n)=>t in e?j7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sr=(e,t,n)=>(z7(e,typeof t!="symbol"?t+"":t,n),n);const B7="CONNECT",V7="DEFAULT";function H7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var OT={exports:{}};(function(e){var t=(()=>{var n=Object.defineProperty,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(w,g,y)=>g in w?n(w,g,{enumerable:!0,configurable:!0,writable:!0,value:y}):w[g]=y,s=(w,g)=>{for(var y in g||(g={}))o.call(g,y)&&a(w,y,g[y]);if(r)for(var y of r(g))i.call(g,y)&&a(w,y,g[y]);return w},l=w=>n(w,"__esModule",{value:!0}),u=(w,g)=>{l(w);for(var y in g)n(w,y,{get:g[y],enumerable:!0})},c={};u(c,{DEFAULT_UUID_LENGTH:()=>p,default:()=>m});var d="4.4.4",p=6,h={dictionary:"alphanum",shuffle:!0,debug:!1,length:p},v=class extends Function{constructor(w={}){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<"u"&&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`,T=this[$];Object.keys(T).forEach(F=>{const N=F;for(this.dictRange=T[N],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||p)=>{let b,S,C;if(E===null||typeof E>"u"||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 g=s(s({},h),w);this.counter=0,this.debug=!1,this.dict=[],this.version=d;const{dictionary:y,shuffle:x,length:_}=g;return this.uuidLength=_,this.setDictionary(y,x),this.debug=g.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength}`),new Proxy(this,{apply:(E,b,S)=>this.randomUUID(...S)})}},m=v;return m.default=v,c})();e.exports=t.default,typeof window<"u"&&(t=t.default)})(OT);const U7=H7(OT.exports),Yw=new U7({length:10});class r1{constructor(t,n){Sr(this,"connection"),Sr(this,"channelId"),Sr(this,"boundMessageHandler"),Sr(this,"onMessageHandlers",[]),Sr(this,"resolveConnection"),Sr(this,"channelNodeId"),Sr(this,"crossOrigin"),Sr(this,"message",(r,o,i)=>this.crossOrigin?this.postMessage(r,o,i):this.customEventMessage(r,o,i)),this.channelId=t!=null?t:V7,this.channelNodeId=`channel-node-${Yw()}`,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 o=new CustomEvent(this.channelId,{detail:{eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n}});window.dispatchEvent(o)}postMessage(t,n,r){var o,i,a;(a=(o=this.crossOrigin)==null?void 0:o.window)==null||a.postMessage({eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n},(i=this.crossOrigin)==null?void 0:i.targetOrigin)}async eventRequest(t,n){const r=Yw();return new Promise(o=>{const i=a=>{const{eventId:s}=a;r===s&&(this.removeMessageHandler(i),o(a))};this.onMessage(i),this.message(t,n,r)})}async waitForEvent(t){return new Promise(n=>{const r=o=>{const{name:i}=o;t===i&&(this.removeMessageHandler(r),n(o))};this.onMessage(r)})}handleMessage(t){var n;let r;if(r1.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:o,channelNodeId:i}=r;this.channelId===o&&this.channelNodeId!==i&&this.onMessageHandlers.forEach(a=>{a(r)})}static isCustomEvent(t){return t.detail!==void 0}}class G7 extends r1{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(B7).then(t=>{this.resolveConnection(t)}),this.connection}}var Y7="Expected a function",Ww=1/0,W7=17976931348623157e292,qw=0/0,q7="[object Symbol]",K7=/^\s+|\s+$/g,X7=/^[-+]0x[0-9a-f]+$/i,Z7=/^0b[01]+$/i,Q7=/^0o[0-7]+$/i,J7=parseInt,eI=Object.prototype,tI=eI.toString;function nI(e,t){var n;if(typeof t!="function")throw new TypeError(Y7);return e=sI(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function rI(e){return nI(2,e)}function Kw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oI(e){return!!e&&typeof e=="object"}function iI(e){return typeof e=="symbol"||oI(e)&&tI.call(e)==q7}function aI(e){if(!e)return e===0?e:0;if(e=lI(e),e===Ww||e===-Ww){var t=e<0?-1:1;return t*W7}return e===e?e:0}function sI(e){var t=aI(e),n=t%1;return t===t?n?t-n:t:0}function lI(e){if(typeof e=="number")return e;if(iI(e))return qw;if(Kw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(K7,"");var n=Z7.test(e);return n||Q7.test(e)?J7(e.slice(2),n?2:8):X7.test(e)?qw:+e}var LT=rI;const Yp=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function hv(e,...t){if(!t.length)return e;const n=t.shift();return Yp(e)&&Yp(n)&&Object.keys(n).forEach(r=>{Yp(n[r])?(e[r]||Object.assign(e,{[r]:{}}),hv(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),hv(e,...t)}const uI=e=>{const t=f.exports.useRef(e),n=f.exports.useRef(),r=f.exports.useRef(!1),o=f.exports.useRef(!1),[,i]=f.exports.useState(0);r.current&&(o.current=!0),f.exports.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),i(a=>a+1),()=>{!o.current||n.current&&n.current()}),[])},cI=(e,t)=>{const[n,r]=f.exports.useState(e);return f.exports.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n};var Qa=(e=>(e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e))(Qa||{});const dI={zoom:16,pitch:0,bearing:0,cooperativeGestures:!0},fI={},Xw={locale:"en"},pI={"local-content":{globalOptions:Xw,options:dI},"data-explorer":{globalOptions:Xw,options:fI}},MT=LT(()=>J.createContext({})),DT=()=>{const e=J.useContext(MT());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e},NT=J.memo(({children:e})=>{const t=MT(),n=t7(),r=J.useRef(n),i=Sa().current.pathname.split("/"),a=i[i.length-1],s=pI[a],l=J.useRef(),[u,c]=f.exports.useState(!1),[d,p]=f.exports.useState(s),h=cI(d,500),v=wT(),m=x=>{r.current=x,p(x)},w=x=>{var _;x.name===Qa.GET_STATE&&((_=l.current)==null||_.message(Qa.GET_STATE_RESPONSE,r.current,x.eventId)),x.name===Qa.SET_STATE&&m(x.data)};uI(()=>{const x=new G7(n.channelId,{targetOrigin:document.referrer,window:window.parent});l.current=x,x==null||x.onMessage(w),x==null||x.connect().then(_=>{const E=hv(d,_.data);m(E),c(!0)})});const g=x=>{var _;(_=l.current)==null||_.message(Qa.ON_CHANGE,x)};f.exports.useEffect(()=>{v({search:()=>h})},[h]),f.exports.useEffect(()=>{d.options&&g({type:"options",data:d.options})},[d.options]);const y=f.exports.useMemo(()=>({sdkState:d,setSdkState:m,onChange:g}),[d,m,g]);return u?D(t.Provider,{value:y,children:e}):null});NT.displayName="StateManagerProvider";const hI={en:()=>ua(()=>import("./index.d464e7cf.js"),[]),fr:()=>ua(()=>import("./index.e63e2d64.js"),[])},mI={en:()=>ua(()=>import("./index.f4fcee01.js"),[]),fr:()=>ua(()=>import("./index.130c24fb.js"),[])},vI={"local-content":e=>mI[e](),"data-explorer":e=>hI[e]()},FT=LT(()=>J.createContext({})),yee=()=>{const e=f.exports.useContext(FT());if(!e)throw new Error("useLangauges must be used under LanguagesProvider");return e},gI=({children:e})=>{var p;const[t,n]=f.exports.useState(!0),[r,o]=f.exports.useState(),{sdkState:i}=DT(),a=((p=i.globalOptions)==null?void 0:p.locale)||"en",s=FT(),u=Sa().current.pathname.split("/"),c=u[u.length-1],d=vI[c];if(f.exports.useEffect(()=>{n(!0),d(a).then(h=>{o(h.translations)}).finally(()=>{n(!1)})},[a,d]),t)return null;if(!r)throw new Error("No translations were found.");return D(s.Provider,{value:{translations:r},children:e})};var IT={exports:{}},o1={exports:{}},jT=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(n,o)}},yI=jT,yo=Object.prototype.toString;function i1(e){return Array.isArray(e)}function mv(e){return typeof e>"u"}function xI(e){return e!==null&&!mv(e)&&e.constructor!==null&&!mv(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function zT(e){return yo.call(e)==="[object ArrayBuffer]"}function wI(e){return yo.call(e)==="[object FormData]"}function _I(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zT(e.buffer),t}function EI(e){return typeof e=="string"}function bI(e){return typeof e=="number"}function BT(e){return e!==null&&typeof e=="object"}function Yu(e){if(yo.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function SI(e){return yo.call(e)==="[object Date]"}function CI(e){return yo.call(e)==="[object File]"}function AI(e){return yo.call(e)==="[object Blob]"}function VT(e){return yo.call(e)==="[object Function]"}function TI(e){return BT(e)&&VT(e.pipe)}function $I(e){return yo.call(e)==="[object URLSearchParams]"}function kI(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function RI(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function a1(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),i1(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function vv(){var e={};function t(o,i){Yu(e[i])&&Yu(o)?e[i]=vv(e[i],o):Yu(o)?e[i]=vv({},o):i1(o)?e[i]=o.slice():e[i]=o}for(var n=0,r=arguments.length;n<r;n++)a1(arguments[n],t);return e}function PI(e,t,n){return a1(t,function(o,i){n&&typeof o=="function"?e[i]=yI(o,n):e[i]=o}),e}function OI(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Bt={isArray:i1,isArrayBuffer:zT,isBuffer:xI,isFormData:wI,isArrayBufferView:_I,isString:EI,isNumber:bI,isObject:BT,isPlainObject:Yu,isUndefined:mv,isDate:SI,isFile:CI,isBlob:AI,isFunction:VT,isStream:TI,isURLSearchParams:$I,isStandardBrowserEnv:RI,forEach:a1,merge:vv,extend:PI,trim:kI,stripBOM:OI},ai=Bt;function Zw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var HT=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(ai.isURLSearchParams(n))o=n.toString();else{var i=[];ai.forEach(n,function(l,u){l===null||typeof l>"u"||(ai.isArray(l)?u=u+"[]":l=[l],ai.forEach(l,function(d){ai.isDate(d)?d=d.toISOString():ai.isObject(d)&&(d=JSON.stringify(d)),i.push(Zw(u)+"="+Zw(d))}))}),o=i.join("&")}if(o){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},LI=Bt;function Cf(){this.handlers=[]}Cf.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};Cf.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Cf.prototype.forEach=function(t){LI.forEach(this.handlers,function(r){r!==null&&t(r)})};var MI=Cf,DI=Bt,NI=function(t,n){DI.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i])})},UT=function(t,n,r,o,i){return t.config=n,r&&(t.code=r),t.request=o,t.response=i,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},GT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wp,Qw;function YT(){if(Qw)return Wp;Qw=1;var e=UT;return Wp=function(n,r,o,i,a){var s=new Error(n);return e(s,r,o,i,a)},Wp}var qp,Jw;function FI(){if(Jw)return qp;Jw=1;var e=YT();return qp=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(e("Request failed with status code "+o.status,o.config,null,o.request,o))},qp}var Kp,e_;function II(){if(e_)return Kp;e_=1;var e=Bt;return Kp=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,a,s,l){var u=[];u.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(a)&&u.push("path="+a),e.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Kp}var Xp,t_;function jI(){return t_||(t_=1,Xp=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Xp}var Zp,n_;function zI(){return n_||(n_=1,Zp=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),Zp}var Qp,r_;function BI(){if(r_)return Qp;r_=1;var e=jI(),t=zI();return Qp=function(r,o){return r&&!e(o)?t(r,o):o},Qp}var Jp,o_;function VI(){if(o_)return Jp;o_=1;var e=Bt,t=["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"];return Jp=function(r){var o={},i,a,s;return r&&e.forEach(r.split(`
495
+ */function bn(){return bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(this,arguments)}function sv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function HF(e,t){var n,r,o,i="";for(n in e)if((o=e[n])!==void 0)if(Array.isArray(o))for(r=0;r<o.length;r++)i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o[r]);else i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(o);return(t||"")+i}function Pw(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function UF(e){for(var t,n,r={},o=e.split("&");t=o.shift();)t=t.split("="),n=t.shift(),r[n]!==void 0?r[n]=[].concat(r[n],Pw(t.shift())):r[n]=Pw(t.shift());return r}const GF=["children","location","__experimental__snapshot"],YF=["location","__experimental__snapshot"],WF=["basepath","routes"],dT=f.exports.createContext(null),fT=f.exports.createContext(null),pT=f.exports.createContext(null),hT=Boolean(typeof window<"u"&&window.document&&window.document.createElement),lv=hT?f.exports.useLayoutEffect:f.exports.useEffect,qF=()=>hT?BF():VF();class Zg{constructor(){this.listeners=[]}subscribe(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}notify(){this.listeners.forEach(t=>t())}}class KF extends Zg{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||qF(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:l7,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:s7,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(o=>{this.current=this.parseLocation(o.location,this.current),this.notify()})}buildNext(t,n){var r,o,i,a;t===void 0&&(t="/"),n===void 0&&(n={});const s=bn({},this.current,n.from),l=a7(t,s.pathname,""+((r=n.to)!=null?r:".")),u=(o=n.__searchFilters)!=null&&o.length?n.__searchFilters.reduce((v,m)=>m(v),s.search):s.search,c=n.search===!0?u:n.search?(i=Mw(n.search,u))!=null?i:{}:(a=n.__searchFilters)!=null&&a.length?u:{},d=uv(s.search,c),p=this.stringifySearch(d);let h=n.hash===!0?s.hash:Mw(n.hash,s.hash);return h=h?"#"+h:"",{pathname:l,search:d,searchStr:p,hash:h,href:""+l+p+h,key:n.key}}navigate(t,n){this.current=t,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";return n||(r="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(r="replace"),r==="replace"?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(t,n){var r;const o=this.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:uv(n==null?void 0:n.search,o),hash:(r=t.hash.split("#").reverse()[0])!=null?r:"",href:""+t.pathname+t.search+t.hash,key:t.key}}}function mT(e){return D(fT.Provider,{...e})}function XF(e){let{children:t,location:n,__experimental__snapshot:r}=e,o=sv(e,GF);const i=f.exports.useRef(null);i.current||(i.current=new QF({location:n,__experimental__snapshot:r,routes:o.routes}));const a=i.current,[s,l]=f.exports.useReducer(()=>({}),{});return a.update(o),lv(()=>a.subscribe(()=>{l()}),[]),lv(()=>a.updateLocation(n.current).unsubscribe,[n.current.key]),f.exports.createElement(dT.Provider,{value:{location:n}},f.exports.createElement(pT.Provider,{value:{router:a}},D(ZF,{}),D(mT,{value:[a.rootMatch,...a.state.matches],children:t!=null?t:D(Qg,{})})))}function ZF(){const e=Sa(),t=_T(),n=wT();return lv(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class QF extends Zg{constructor(t){var n;let{location:r,__experimental__snapshot:o}=t,i=sv(t,YF);super(),this.routesById={},this.update=s=>{let{basepath:l,routes:u}=s,c=sv(s,WF);Object.assign(this,c),this.basepath=Ef("/"+(l!=null?l:"")),this.routesById={};const d=(p,h)=>p.map(v=>{var m,w,g,y;const x=(m=v.path)!=null?m:"*",_=la([(h==null?void 0:h.id)==="root"?"":h==null?void 0:h.id,""+(x==null?void 0:x.replace(/(.)\/$/,"$1"))+(v.id?"-"+v.id:"")]);if(v=bn({},v,{pendingMs:(w=v.pendingMs)!=null?w:c==null?void 0:c.defaultPendingMs,pendingMinMs:(g=v.pendingMinMs)!=null?g:c==null?void 0:c.defaultPendingMinMs,id:_}),this.routesById[_])throw new Error;return this.routesById[_]=v,v.children=(y=v.children)!=null&&y.length?d(v.children,v):void 0,v});this.routes=d(u),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=s=>{const l=s({state:this.state,pending:this.pending});this.state=l.state,this.pending=l.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var s,l,u;const c=[...(s=this==null?void 0:this.state.matches)!=null?s:[],...(l=this==null||(u=this.pending)==null?void 0:u.matches)!=null?l:[]].map(d=>d.id);Object.values(this.matchCache).forEach(d=>{var p;if(!d.updatedAt||c.includes(d.id))return;const h=Date.now()-((p=d.updatedAt)!=null?p:0);(!d.maxAge||h>d.maxAge)&&(d.route.unloader&&d.route.unloader(d),delete this.matchCache[d.id])})},this.updateLocation=s=>{let l;return{promise:new Promise(c=>{const d=new Ow(this,s);this.setState(p=>bn({},p,{pending:{location:d.location,matches:d.matches}})),l=d.subscribe(()=>{const p=this.state.matches;p.filter(h=>!d.matches.find(v=>v.id===h.id)).forEach(h=>{h.onExit==null||h.onExit(h)}),p.filter(h=>d.matches.find(v=>v.id===h.id)).forEach(h=>{h.route.onTransition==null||h.route.onTransition(h)}),d.matches.filter(h=>!p.find(v=>v.id===h.id)).forEach(h=>{h.onExit=h.route.onMatch==null?void 0:h.route.onMatch(h)}),this.setState(h=>bn({},h,{state:{location:d.location,matches:d.matches},pending:void 0})),c()}),d.loadData(),d.startPending()}),unsubscribe:l}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(s=>{let{ownData:l,id:u}=s;return{id:u,ownData:l}})}),this.update(i);let a=[];if(o){const s=new Ow(this,r.current);s.matches.forEach((l,u)=>{var c,d,p;if(l.id!==((c=o.matches[u])==null?void 0:c.id)){var h;throw new Error("Router hydration mismatch: "+l.id+" !== "+((h=o.matches[u])==null?void 0:h.id))}l.ownData=(d=(p=o.matches[u])==null?void 0:p.ownData)!=null?d:{}}),vT(s.matches),a=s.matches}this.state={location:(n=o==null?void 0:o.location)!=null?n:r.current,matches:a},r.subscribe(()=>this.notify())}}function Sa(){const e=f.exports.useContext(dT);return ET(!!e,"useLocation must be used within a <ReactLocation />"),e.location}class JF{constructor(t){this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=n=>{var r;(r=this.matchLoader)==null||r.preNotify(n?this:void 0)},this.assignMatchLoader=n=>{this.matchLoader=n},this.startPending=()=>{this.pendingTimeout&&clearTimeout(this.pendingTimeout),this.route.pendingMs!==void 0&&(this.pendingTimeout=setTimeout(()=>{var n;this.status==="loading"&&(this.status="pending"),(n=this.notify)==null||n.call(this),typeof this.route.pendingMinMs<"u"&&(this.pendingMinPromise=new Promise(r=>setTimeout(r,this.route.pendingMinMs)))},this.route.pendingMs))},this.load=n=>{var r,o;if(this.maxAge=(r=(o=n.maxAge)!=null?o:this.route.loaderMaxAge)!=null?r:n.router.defaultLoaderMaxAge,this.loaderPromise)return;const i=this.route.import;this.loaderPromise=(i?(()=>(this.isLoading=!0,i({params:this.params,search:this.search}).then(a=>{this.route=bn({},this.route,a)})))():Promise.resolve()).then(()=>{const a=[];["element","errorElement","pendingElement"].forEach(c=>{const d=this.route[c];this[c]||(typeof d=="function"?(this.isLoading=!0,a.push(d(this).then(p=>{this[c]=p}))):this[c]=this.route[c])});const l=this.route.loader,u=l?new Promise(async c=>{this.isLoading=!0;const d=v=>{this.updatedAt=Date.now(),c(this.ownData),this.status=v},p=v=>{this.ownData=v,this.error=void 0,d("resolved")},h=v=>{console.error(v),this.error=v,d("rejected")};try{p(await l(this,{parentMatch:n.parentMatch,dispatch:async v=>{var m;v.type==="resolve"?p(v.data):v.type==="reject"?h(v.error):v.type==="loading"?this.isLoading=!0:v.type==="maxAge"&&(this.maxAge=v.maxAge),this.updatedAt=Date.now(),(m=this.notify)==null||m.call(this,!0)}}))}catch(v){h(v)}}):Promise.resolve();return Promise.all([...a,u]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var c;this.pendingTimeout&&clearTimeout(this.pendingTimeout),(c=this.notify)==null||c.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,t)}}class Ow extends Zg{constructor(t,n){var r;super(),r=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=i=>{i&&(this.preNotifiedMatches.includes(i)||this.preNotifiedMatches.push(i)),(!i||this.preNotifiedMatches.length===this.matches.length)&&(this.status="resolved",vT(this.matches),this.notify())},this.loadData=async function(i){var a;let{maxAge:s}=i===void 0?{}:i;if(r.router.cleanMatchCache(),!((a=r.matches)!=null&&a.length)){r.preNotify();return}return r.firstRenderPromises=[],r.matches.forEach((l,u)=>{var c,d;const p=(c=r.matches)==null?void 0:c[u-1];l.assignMatchLoader==null||l.assignMatchLoader(r),l.load==null||l.load({maxAge:s,parentMatch:p,router:r.router}),(d=r.firstRenderPromises)==null||d.push(l.loaderPromise)}),await Promise.all(r.firstRenderPromises).then(()=>(r.preNotify(),r.matches))},this.load=async function(i){let{maxAge:a}=i===void 0?{}:i;return await r.loadData({maxAge:a})},this.startPending=async()=>{this.matches.forEach(i=>i.startPending==null?void 0:i.startPending())},this.router=t,this.location=n,this.matches=[];const o=yT(this.router,this.location);this.matches=o==null?void 0:o.map(i=>(this.router.matchCache[i.id]||(this.router.matchCache[i.id]=new JF(i)),this.router.matchCache[i.id]))}}function vT(e){e==null||e.forEach((t,n)=>{var r;const o=e==null?void 0:e[n-1];t.data=bn({},(r=o==null?void 0:o.data)!=null?r:{},t.ownData)})}function gT(){const e=f.exports.useContext(pT);if(!e)throw ET(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return e.router}function yT(e,t){if(!e.routes.length)return[];const n=[],r=async(o,i)=>{var a;let{pathname:s,params:l}=i;const c=(e!=null&&e.filterRoutes?e==null?void 0:e.filterRoutes(o):o).find(v=>{var m,w;const g=la([s,v.path]),y=!!(v.path!=="/"||(m=v.children)!=null&&m.length),x=n7(t,{to:g,search:v.search,fuzzy:y,caseSensitive:(w=v.caseSensitive)!=null?w:e.caseSensitive});return x&&(l=bn({},l,x)),!!x});if(!c)return;const d=Lw(c.path,l);s=la([s,d]);const h={id:Lw(c.id,l,!0),route:c,params:l,pathname:s,search:t.search};n.push(h),(a=c.children)!=null&&a.length&&r(c.children,h)};return r(e.routes,e.rootMatch),n}function Lw(e,t,n){const r=Qs(e);return la(r.map(o=>{if(o.value==="*"&&!n)return"";if(o.type==="param"){var i;return(i=t[o.value.substring(1)])!=null?i:""}return o.value}))}function xT(){return f.exports.useContext(fT)}function e7(){var e;return(e=xT())==null?void 0:e[0]}function wT(){const e=Sa(),t=e7(),n=_T();function r(o){var i;let{search:a,hash:s,replace:l,from:u,to:c,fromCurrent:d}=o;d=(i=d)!=null?i:typeof c>"u";const p=n({to:c,search:a,hash:s,from:d?e.current:u!=null?u:{pathname:t.pathname}});e.navigate(p,l)}return bT(r)}function _T(){const e=Sa(),t=gT();return bT(r=>{const o=e.buildNext(t.basepath,r),a=yT(t,o).map(s=>{var l;return(l=s.route.searchFilters)!=null?l:[]}).flat().filter(Boolean);return e.buildNext(t.basepath,bn({},r,{__searchFilters:a}))})}function Qg(){var e;const t=gT(),[n,...r]=xT(),o=r[0];if(!o)return null;const i=(e=o.errorElement)!=null?e:t.defaultErrorElement,a=(()=>{var s,l;if(o.status==="rejected"){if(i)return i;if(!t.useErrorBoundary)return"An unknown error occured!";throw o.error}const u=(s=o.pendingElement)!=null?s:t.defaultPendingElement;if(o.status==="loading")return null;if(o.status==="pending"&&(o.route.pendingMs||u))return u!=null?u:null;const c=(l=o.element)!=null?l:t.defaultElement;return c!=null?c:D(Qg,{})})();return D(mT,{value:r,children:a})}function t7(){return Sa().current.search}function n7(e,t){const n=o7(e,t),r=i7(e,t);if(!(t.to&&!n)&&!(t.search&&!r))return n!=null?n:{}}function ET(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function r7(e){return typeof e=="function"}function Mw(e,t){return r7(e)?e(t):e}function la(e){return Ef(e.filter(Boolean).join("/"))}function Ef(e){return(""+e).replace(/\/{2,}/g,"/")}function o7(e,t){var n;const r=Qs(e.pathname),o=Qs(""+((n=t.to)!=null?n:"*")),i={};return(()=>{for(let s=0;s<Math.max(r.length,o.length);s++){const l=r[s],u=o[s],c=s===o.length-1,d=s===r.length-1;if(u){if(u.type==="wildcard")return l!=null&&l.value?(i["*"]=la(r.slice(s).map(p=>p.value)),!0):!1;if(u.type==="pathname"){if(u.value==="/"&&!(l!=null&&l.value))return!0;if(l){if(t.caseSensitive){if(u.value!==l.value)return!1}else if(u.value.toLowerCase()!==l.value.toLowerCase())return!1}}if(!l)return!1;u.type==="param"&&(i[u.value.substring(1)]=l.value)}if(c&&!d)return!!t.fuzzy}return!0})()?i:void 0}function i7(e,t){return!!(t.search&&t.search(e.search))}function Qs(e){if(!e)return[];e=Ef(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(r=>r.startsWith("*")?{type:"wildcard",value:r}:r.charAt(0)===":"?{type:"param",value:r}:{type:"pathname",value:r})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function a7(e,t,n){t=t.replace(new RegExp("^"+e),"/"),n=n.replace(new RegExp("^"+e),"/");let r=Qs(t);const o=Qs(n);o.forEach((a,s)=>{if(a.value==="/")s?s===o.length-1&&r.push(a):r=[a];else if(a.value==="..")r.pop();else{if(a.value===".")return;r.push(a)}});const i=la([e,...r.map(a=>a.value)]);return Ef(i)}function bT(e){const t=f.exports.useRef(),n=f.exports.useRef(e);return n.current=e,t.current||(t.current=function(){return n.current(...arguments)}),t.current}function uv(e,t){if(e===t)return e;const n=Array.isArray(e)&&Array.isArray(t);if(n||Dw(e)&&Dw(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=uv(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function Dw(e){if(!Nw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Nw(n)||!n.hasOwnProperty("isPrototypeOf"))}function Nw(e){return Object.prototype.toString.call(e)==="[object Object]"}const s7=u7(JSON.parse),l7=c7(JSON.stringify);function u7(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));let n=UF(t);for(let r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch(i){}}return n}}function c7(e){return t=>{t=bn({},t),t&&Object.keys(t).forEach(r=>{const o=t[r];if(typeof o>"u"||o===void 0)delete t[r];else if(o&&typeof o=="object"&&o!==null)try{t[r]=e(o)}catch(i){}});const n=HF(t).toString();return n?"?"+n:""}}function cv(e,t){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},cv(e,t)}function d7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cv(e,t)}var f7=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},Fw={error:null},p7=function(e){d7(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=Fw,r.resetErrorBoundary=function(){for(var s,l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];r.props.onReset==null||(s=r.props).onReset.apply(s,u),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(Fw)},n.componentDidCatch=function(o,i){var a,s;(a=(s=this.props).onError)==null||a.call(s,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,s=this.props.resetKeys;if(a!==null&&i.error!==null&&f7(o.resetKeys,s)){var l,u;(l=(u=this.props).onResetKeysChange)==null||l.call(u,o.resetKeys,s),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,s=i.FallbackComponent,l=i.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(f.exports.isValidElement(l))return l;if(typeof a=="function")return a(u);if(s)return D(s,{...u});throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(f.exports.Component);class bf{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Jg=typeof window>"u";function hn(){}function h7(e,t){return typeof e=="function"?e(t):e}function m7(e){return typeof e=="number"&&e>=0&&e!==1/0}function v7(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Up(e,t,n){return Sf(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Lr(e,t,n){return Sf(e)?[{...t,queryKey:e},n]:[e||{},t]}function Iw(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(Sf(a)){if(r){if(t.queryHash!==e1(a,t.options))return!1}else if(!Gc(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function jw(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(Sf(i)){if(!t.options.mutationKey)return!1;if(n){if(No(t.options.mutationKey)!==No(i))return!1}else if(!Gc(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function e1(e,t){return((t==null?void 0:t.queryKeyHashFn)||No)(e)}function No(e){return JSON.stringify(e,(t,n)=>dv(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Gc(e,t){return ST(e,t)}function ST(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ST(e[n],t[n])):!1}function CT(e,t){if(e===t)return e;const n=zw(e)&&zw(t);if(n||dv(e)&&dv(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l<i;l++){const u=n?l:o[l];a[u]=CT(e[u],t[u]),a[u]===e[u]&&s++}return r===i&&s===r?e:a}return t}function vee(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dv(e){if(!Bw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Bw(n)||!n.hasOwnProperty("isPrototypeOf"))}function Bw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Sf(e){return Array.isArray(e)}function AT(e){return new Promise(t=>{setTimeout(t,e)})}function Vw(e){AT(0).then(e)}function g7(){if(typeof AbortController=="function")return new AbortController}function y7(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?CT(e,t):t}class x7 extends bf{constructor(){super(),this.setup=t=>{if(!Jg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const fv=new x7;class w7 extends bf{constructor(){super(),this.setup=t=>{if(!Jg&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Yc=new w7;function _7(e){return Math.min(1e3*2**e,3e4)}function t1(e){return(e!=null?e:"online")==="online"?Yc.isOnline():!0}class TT{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Gp(e){return e instanceof TT}function $T(e){let t=!1,n=0,r=!1,o,i,a;const s=new Promise((w,g)=>{i=w,a=g}),l=w=>{r||(h(new TT(w)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!fv.isFocused()||e.networkMode!=="always"&&!Yc.isOnline(),p=w=>{r||(r=!0,e.onSuccess==null||e.onSuccess(w),o==null||o(),i(w))},h=w=>{r||(r=!0,e.onError==null||e.onError(w),o==null||o(),a(w))},v=()=>new Promise(w=>{o=g=>{if(r||!d())return w(g)},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let w;try{w=e.fn()}catch(g){w=Promise.reject(g)}Promise.resolve(w).then(p).catch(g=>{var y,x;if(r)return;const _=(y=e.retry)!=null?y:3,E=(x=e.retryDelay)!=null?x:_7,b=typeof E=="function"?E(n,g):E,S=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,g);if(t||!S){h(g);return}n++,e.onFail==null||e.onFail(n,g),AT(b).then(()=>{if(d())return v()}).then(()=>{t?h(g):m()})})};return t1(e.networkMode)?m():v().then(m),{promise:s,cancel:l,continue:()=>{o==null||o()},cancelRetry:u,continueRetry:c}}const n1=console;function E7(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||s()}return d},i=c=>{t?e.push(c):Vw(()=>{n(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},s=()=>{const c=e;e=[],c.length&&Vw(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Tt=E7();class kT{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),m7(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:Jg?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class b7 extends kT{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||n1,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||S7(this.options),this.state=this.initialState,this.meta=t.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.meta=t==null?void 0:t.meta,this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=y7(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(hn).catch(hn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!v7(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(v=>v.options.queryFn);h&&this.setOptions(h.options)}Array.isArray(this.options.queryKey);const a=g7(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u,meta:this.meta};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const p=h=>{if(Gp(h)&&h.silent||this.dispatch({type:"error",error:h}),!Gp(h)){var v,m;(v=(m=this.cache.config).onError)==null||v.call(m,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=$T({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:h=>{var v,m;if(typeof h>"u"){p(new Error("Query data cannot be undefined"));return}this.setData(h),(v=(m=this.cache.config).onSuccess)==null||v.call(m,h,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:r.fetchFailureCount+1};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:t1(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0}};case"error":const a=t.error;return Gp(a)&&a.revert&&this.revertState?{...this.revertState}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function S7(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof e.initialData<"u"?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,o=typeof t<"u";return{data:t,dataUpdateCount:0,dataUpdatedAt:o?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isInvalidated:!1,status:o?"success":"loading",fetchStatus:"idle"}}class C7 extends bf{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,a=(o=n.queryHash)!=null?o:e1(i,n);let s=this.get(a);return s||(s=new b7({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i),meta:n.meta}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Tt.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Lr(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>Iw(r,o))}findAll(t,n){const[r]=Lr(t,n);return Object.keys(r).length>0?this.queries.filter(o=>Iw(r,o)):this.queries}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Tt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Tt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class A7 extends kT{constructor(t){super(),this.options={...t.defaultOptions,...t.options},this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||n1,this.observers=[],this.state=t.state||T7(),this.meta=t.meta,this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const t=()=>{var x;return this.retryer=$T({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(x=this.options.retry)!=null?x:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,a,s,l;if(!n){var u,c,d,p;this.dispatch({type:"loading",variables:this.options.variables}),(u=(c=this.mutationCache.config).onMutate)==null||u.call(c,this.state.variables,this);const _=await((d=(p=this.options).onMutate)==null?void 0:d.call(p,this.state.variables));_!==this.state.context&&this.dispatch({type:"loading",context:_,variables:this.state.variables})}const x=await t();return(r=(o=this.mutationCache.config).onSuccess)==null||r.call(o,x,this.state.variables,this.state.context,this),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,x,this.state.variables,this.state.context)),await((s=(l=this.options).onSettled)==null?void 0:s.call(l,x,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:x}),x}catch(x){try{var h,v,m,w,g,y;throw(h=(v=this.mutationCache.config).onError)==null||h.call(v,x,this.state.variables,this.state.context,this),await((m=(w=this.options).onError)==null?void 0:m.call(w,x,this.state.variables,this.state.context)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,void 0,x,this.state.variables,this.state.context)),x}finally{this.dispatch({type:"error",error:x})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:r.failureCount+1};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,error:null,isPaused:!t1(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function T7(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}class $7 extends bf{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new A7({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0,meta:n.meta});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Tt.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>jw(t,n))}findAll(t){return this.mutations.filter(n=>jw(t,n))}notify(t){Tt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.mutations.filter(n=>n.state.isPaused);return Tt.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(hn)),Promise.resolve()))}}function k7(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",p=((i=e.state.data)==null?void 0:i.pages)||[],h=((a=e.state.data)==null?void 0:a.pageParams)||[];let v=h,m=!1;const w=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>{var S;if((S=e.signal)!=null&&S.aborted)m=!0;else{var C;(C=e.signal)==null||C.addEventListener("abort",()=>{m=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),y=(b,S,C,$)=>(v=$?[S,...v]:[...v,S],$?[C,...b]:[...b,C]),x=(b,S,C,$)=>{if(m)return Promise.reject("Cancelled");if(typeof C>"u"&&!S&&b.length)return Promise.resolve(b);const T={queryKey:e.queryKey,pageParam:C,meta:e.meta};w(T);const F=g(T);return Promise.resolve(F).then(U=>y(b,C,U,$))};let _;if(!p.length)_=x([]);else if(c){const b=typeof u<"u",S=b?u:Hw(e.options,p);_=x(p,b,S)}else if(d){const b=typeof u<"u",S=b?u:R7(e.options,p);_=x(p,b,S,!0)}else{v=[];const b=typeof e.options.getNextPageParam>"u";_=(s&&p[0]?s(p[0],0,p):!0)?x([],b,h[0]):Promise.resolve(y([],h[0],p[0]));for(let C=1;C<p.length;C++)_=_.then($=>{if(s&&p[C]?s(p[C],C,p):!0){const F=b?h[C]:Hw(e.options,$);return x($,b,F)}return Promise.resolve(y($,h[C],p[C]))})}return _.then(b=>({pages:b,pageParams:v}))}}}}function Hw(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function R7(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class P7{constructor(t={}){this.queryCache=t.queryCache||new C7,this.mutationCache=t.mutationCache||new $7,this.logger=t.logger||n1,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=fv.subscribe(()=>{fv.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Yc.subscribe(()=>{Yc.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})}unmount(){var t,n;(t=this.unsubscribeFocus)==null||t.call(this),(n=this.unsubscribeOnline)==null||n.call(this)}isFetching(t,n){const[r]=Lr(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=h7(n,i);if(typeof a>"u")return;const s=Up(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Tt.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Lr(t,n),o=this.queryCache;Tt.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=Lr(t,n,r),a=this.queryCache,s={type:"active",...o};return Tt.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=Lr(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const a=Tt.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(hn).catch(hn)}invalidateQueries(t,n,r){const[o,i]=Lr(t,n,r);return Tt.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const l={...o,type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[o,i]=Lr(t,n,r),a=Tt.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(a).then(hn);return i!=null&&i.throwOnError||(s=s.catch(hn)),s}fetchQuery(t,n,r){const o=Up(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(hn).catch(hn)}fetchInfiniteQuery(t,n,r){const o=Up(t,n,r);return o.behavior=k7(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(hn).catch(hn)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>No(t)===No(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Gc(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>No(t)===No(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Gc(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=e1(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}const Uw=f.exports.createContext(void 0),RT=f.exports.createContext(!1);function PT(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Uw),window.ReactQueryClientContext):Uw)}const gee=({context:e}={})=>{const t=f.exports.useContext(PT(e,f.exports.useContext(RT)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},O7=({client:e,children:t,context:n,contextSharing:r=!1})=>{f.exports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=PT(n,r);return D(RT.Provider,{value:!n&&r,children:D(o.Provider,{value:e,children:t})})},L7="modulepreload",M7=function(e){return"/sdks-app/v1/"+e},Gw={},ua=function(t,n,r){return!n||n.length===0?t():Promise.all(n.map(o=>{if(o=M7(o),o in Gw)return;Gw[o]=!0;const i=o.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${a}`))return;const s=document.createElement("link");if(s.rel=i?"stylesheet":L7,i||(s.as="script",s.crossOrigin=""),s.href=o,document.head.appendChild(s),i)return new Promise((l,u)=>{s.addEventListener("load",l),s.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};var pv=(e=>(e.LOCAL_CONTENT="local-content",e.DATA_EXPLORER="data-explorer",e))(pv||{});const D7=new KF,N7=J.lazy(()=>ua(()=>import("./index.a59f31e1.js").then(e=>e.q),["assets/index.a59f31e1.js","assets/index.7c5ff2a7.js","assets/index.08649806.css"])),F7=J.lazy(()=>ua(()=>import("./index.a62f0f16.js"),["assets/index.a62f0f16.js","assets/index.7c5ff2a7.js","assets/index.08649806.css"])),I7=({children:e})=>{const t=[{path:`/sdks-app/v1/${pv.LOCAL_CONTENT}`,element:D(N7,{})},{path:`/sdks-app/v1/${pv.DATA_EXPLORER}`,element:D(F7,{})}];return D(XF,{location:D7,routes:t,children:e})};var j7=Object.defineProperty,z7=(e,t,n)=>t in e?j7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sr=(e,t,n)=>(z7(e,typeof t!="symbol"?t+"":t,n),n);const B7="CONNECT",V7="DEFAULT";function H7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var OT={exports:{}};(function(e){var t=(()=>{var n=Object.defineProperty,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(w,g,y)=>g in w?n(w,g,{enumerable:!0,configurable:!0,writable:!0,value:y}):w[g]=y,s=(w,g)=>{for(var y in g||(g={}))o.call(g,y)&&a(w,y,g[y]);if(r)for(var y of r(g))i.call(g,y)&&a(w,y,g[y]);return w},l=w=>n(w,"__esModule",{value:!0}),u=(w,g)=>{l(w);for(var y in g)n(w,y,{get:g[y],enumerable:!0})},c={};u(c,{DEFAULT_UUID_LENGTH:()=>p,default:()=>m});var d="4.4.4",p=6,h={dictionary:"alphanum",shuffle:!0,debug:!1,length:p},v=class extends Function{constructor(w={}){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<"u"&&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`,T=this[$];Object.keys(T).forEach(F=>{const N=F;for(this.dictRange=T[N],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||p)=>{let b,S,C;if(E===null||typeof E>"u"||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 g=s(s({},h),w);this.counter=0,this.debug=!1,this.dict=[],this.version=d;const{dictionary:y,shuffle:x,length:_}=g;return this.uuidLength=_,this.setDictionary(y,x),this.debug=g.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength}`),new Proxy(this,{apply:(E,b,S)=>this.randomUUID(...S)})}},m=v;return m.default=v,c})();e.exports=t.default,typeof window<"u"&&(t=t.default)})(OT);const U7=H7(OT.exports),Yw=new U7({length:10});class r1{constructor(t,n){Sr(this,"connection"),Sr(this,"channelId"),Sr(this,"boundMessageHandler"),Sr(this,"onMessageHandlers",[]),Sr(this,"resolveConnection"),Sr(this,"channelNodeId"),Sr(this,"crossOrigin"),Sr(this,"message",(r,o,i)=>this.crossOrigin?this.postMessage(r,o,i):this.customEventMessage(r,o,i)),this.channelId=t!=null?t:V7,this.channelNodeId=`channel-node-${Yw()}`,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 o=new CustomEvent(this.channelId,{detail:{eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n}});window.dispatchEvent(o)}postMessage(t,n,r){var o,i,a;(a=(o=this.crossOrigin)==null?void 0:o.window)==null||a.postMessage({eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n},(i=this.crossOrigin)==null?void 0:i.targetOrigin)}async eventRequest(t,n){const r=Yw();return new Promise(o=>{const i=a=>{const{eventId:s}=a;r===s&&(this.removeMessageHandler(i),o(a))};this.onMessage(i),this.message(t,n,r)})}async waitForEvent(t){return new Promise(n=>{const r=o=>{const{name:i}=o;t===i&&(this.removeMessageHandler(r),n(o))};this.onMessage(r)})}handleMessage(t){var n;let r;if(r1.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:o,channelNodeId:i}=r;this.channelId===o&&this.channelNodeId!==i&&this.onMessageHandlers.forEach(a=>{a(r)})}static isCustomEvent(t){return t.detail!==void 0}}class G7 extends r1{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(B7).then(t=>{this.resolveConnection(t)}),this.connection}}var Y7="Expected a function",Ww=1/0,W7=17976931348623157e292,qw=0/0,q7="[object Symbol]",K7=/^\s+|\s+$/g,X7=/^[-+]0x[0-9a-f]+$/i,Z7=/^0b[01]+$/i,Q7=/^0o[0-7]+$/i,J7=parseInt,eI=Object.prototype,tI=eI.toString;function nI(e,t){var n;if(typeof t!="function")throw new TypeError(Y7);return e=sI(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function rI(e){return nI(2,e)}function Kw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oI(e){return!!e&&typeof e=="object"}function iI(e){return typeof e=="symbol"||oI(e)&&tI.call(e)==q7}function aI(e){if(!e)return e===0?e:0;if(e=lI(e),e===Ww||e===-Ww){var t=e<0?-1:1;return t*W7}return e===e?e:0}function sI(e){var t=aI(e),n=t%1;return t===t?n?t-n:t:0}function lI(e){if(typeof e=="number")return e;if(iI(e))return qw;if(Kw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(K7,"");var n=Z7.test(e);return n||Q7.test(e)?J7(e.slice(2),n?2:8):X7.test(e)?qw:+e}var LT=rI;const Yp=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function hv(e,...t){if(!t.length)return e;const n=t.shift();return Yp(e)&&Yp(n)&&Object.keys(n).forEach(r=>{Yp(n[r])?(e[r]||Object.assign(e,{[r]:{}}),hv(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),hv(e,...t)}const uI=e=>{const t=f.exports.useRef(e),n=f.exports.useRef(),r=f.exports.useRef(!1),o=f.exports.useRef(!1),[,i]=f.exports.useState(0);r.current&&(o.current=!0),f.exports.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),i(a=>a+1),()=>{!o.current||n.current&&n.current()}),[])},cI=(e,t)=>{const[n,r]=f.exports.useState(e);return f.exports.useEffect(()=>{const o=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(o)}},[e,t]),n};var Qa=(e=>(e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e))(Qa||{});const dI={zoom:16,pitch:0,bearing:0,cooperativeGestures:!0},fI={},Xw={locale:"en"},pI={"local-content":{globalOptions:Xw,options:dI},"data-explorer":{globalOptions:Xw,options:fI}},MT=LT(()=>J.createContext({})),DT=()=>{const e=J.useContext(MT());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e},NT=J.memo(({children:e})=>{const t=MT(),n=t7(),r=J.useRef(n),i=Sa().current.pathname.split("/"),a=i[i.length-1],s=pI[a],l=J.useRef(),[u,c]=f.exports.useState(!1),[d,p]=f.exports.useState(s),h=cI(d,500),v=wT(),m=x=>{r.current=x,p(x)},w=x=>{var _;x.name===Qa.GET_STATE&&((_=l.current)==null||_.message(Qa.GET_STATE_RESPONSE,r.current,x.eventId)),x.name===Qa.SET_STATE&&m(x.data)};uI(()=>{const x=new G7(n.channelId,{targetOrigin:document.referrer,window:window.parent});l.current=x,x==null||x.onMessage(w),x==null||x.connect().then(_=>{const E=hv(d,_.data);m(E),c(!0)})});const g=x=>{var _;(_=l.current)==null||_.message(Qa.ON_CHANGE,x)};f.exports.useEffect(()=>{v({search:()=>h})},[h]),f.exports.useEffect(()=>{d.options&&g({type:"options",data:d.options})},[d.options]);const y=f.exports.useMemo(()=>({sdkState:d,setSdkState:m,onChange:g}),[d,m,g]);return u?D(t.Provider,{value:y,children:e}):null});NT.displayName="StateManagerProvider";const hI={en:()=>ua(()=>import("./index.d464e7cf.js"),[]),fr:()=>ua(()=>import("./index.e63e2d64.js"),[])},mI={en:()=>ua(()=>import("./index.f4fcee01.js"),[]),fr:()=>ua(()=>import("./index.130c24fb.js"),[])},vI={"local-content":e=>mI[e](),"data-explorer":e=>hI[e]()},FT=LT(()=>J.createContext({})),yee=()=>{const e=f.exports.useContext(FT());if(!e)throw new Error("useLangauges must be used under LanguagesProvider");return e},gI=({children:e})=>{var p;const[t,n]=f.exports.useState(!0),[r,o]=f.exports.useState(),{sdkState:i}=DT(),a=((p=i.globalOptions)==null?void 0:p.locale)||"en",s=FT(),u=Sa().current.pathname.split("/"),c=u[u.length-1],d=vI[c];if(f.exports.useEffect(()=>{n(!0),d(a).then(h=>{o(h.translations)}).finally(()=>{n(!1)})},[a,d]),t)return null;if(!r)throw new Error("No translations were found.");return D(s.Provider,{value:{translations:r},children:e})};var IT={exports:{}},o1={exports:{}},jT=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(n,o)}},yI=jT,yo=Object.prototype.toString;function i1(e){return Array.isArray(e)}function mv(e){return typeof e>"u"}function xI(e){return e!==null&&!mv(e)&&e.constructor!==null&&!mv(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function zT(e){return yo.call(e)==="[object ArrayBuffer]"}function wI(e){return yo.call(e)==="[object FormData]"}function _I(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zT(e.buffer),t}function EI(e){return typeof e=="string"}function bI(e){return typeof e=="number"}function BT(e){return e!==null&&typeof e=="object"}function Yu(e){if(yo.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function SI(e){return yo.call(e)==="[object Date]"}function CI(e){return yo.call(e)==="[object File]"}function AI(e){return yo.call(e)==="[object Blob]"}function VT(e){return yo.call(e)==="[object Function]"}function TI(e){return BT(e)&&VT(e.pipe)}function $I(e){return yo.call(e)==="[object URLSearchParams]"}function kI(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function RI(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function a1(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),i1(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function vv(){var e={};function t(o,i){Yu(e[i])&&Yu(o)?e[i]=vv(e[i],o):Yu(o)?e[i]=vv({},o):i1(o)?e[i]=o.slice():e[i]=o}for(var n=0,r=arguments.length;n<r;n++)a1(arguments[n],t);return e}function PI(e,t,n){return a1(t,function(o,i){n&&typeof o=="function"?e[i]=yI(o,n):e[i]=o}),e}function OI(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Bt={isArray:i1,isArrayBuffer:zT,isBuffer:xI,isFormData:wI,isArrayBufferView:_I,isString:EI,isNumber:bI,isObject:BT,isPlainObject:Yu,isUndefined:mv,isDate:SI,isFile:CI,isBlob:AI,isFunction:VT,isStream:TI,isURLSearchParams:$I,isStandardBrowserEnv:RI,forEach:a1,merge:vv,extend:PI,trim:kI,stripBOM:OI},ai=Bt;function Zw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var HT=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(ai.isURLSearchParams(n))o=n.toString();else{var i=[];ai.forEach(n,function(l,u){l===null||typeof l>"u"||(ai.isArray(l)?u=u+"[]":l=[l],ai.forEach(l,function(d){ai.isDate(d)?d=d.toISOString():ai.isObject(d)&&(d=JSON.stringify(d)),i.push(Zw(u)+"="+Zw(d))}))}),o=i.join("&")}if(o){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},LI=Bt;function Cf(){this.handlers=[]}Cf.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};Cf.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Cf.prototype.forEach=function(t){LI.forEach(this.handlers,function(r){r!==null&&t(r)})};var MI=Cf,DI=Bt,NI=function(t,n){DI.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i])})},UT=function(t,n,r,o,i){return t.config=n,r&&(t.code=r),t.request=o,t.response=i,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},GT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wp,Qw;function YT(){if(Qw)return Wp;Qw=1;var e=UT;return Wp=function(n,r,o,i,a){var s=new Error(n);return e(s,r,o,i,a)},Wp}var qp,Jw;function FI(){if(Jw)return qp;Jw=1;var e=YT();return qp=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(e("Request failed with status code "+o.status,o.config,null,o.request,o))},qp}var Kp,e_;function II(){if(e_)return Kp;e_=1;var e=Bt;return Kp=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,a,s,l){var u=[];u.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(a)&&u.push("path="+a),e.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Kp}var Xp,t_;function jI(){return t_||(t_=1,Xp=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Xp}var Zp,n_;function zI(){return n_||(n_=1,Zp=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),Zp}var Qp,r_;function BI(){if(r_)return Qp;r_=1;var e=jI(),t=zI();return Qp=function(r,o){return r&&!e(o)?t(r,o):o},Qp}var Jp,o_;function VI(){if(o_)return Jp;o_=1;var e=Bt,t=["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"];return Jp=function(r){var o={},i,a,s;return r&&e.forEach(r.split(`
496
496
  `),function(u){if(s=u.indexOf(":"),i=e.trim(u.substr(0,s)).toLowerCase(),a=e.trim(u.substr(s+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([a]):o[i]=o[i]?o[i]+", "+a:a}}),o},Jp}var eh,i_;function HI(){if(i_)return eh;i_=1;var e=Bt;return eh=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(a){var s=a;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(s){var l=e.isString(s)?i(s):s;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),eh}var th,a_;function Af(){if(a_)return th;a_=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,th=e,th}var nh,s_;function l_(){if(s_)return nh;s_=1;var e=Bt,t=FI(),n=II(),r=HT,o=BI(),i=VI(),a=HI(),s=YT(),l=GT,u=Af();return nh=function(d){return new Promise(function(h,v){var m=d.data,w=d.headers,g=d.responseType,y;function x(){d.cancelToken&&d.cancelToken.unsubscribe(y),d.signal&&d.signal.removeEventListener("abort",y)}e.isFormData(m)&&delete w["Content-Type"];var _=new XMLHttpRequest;if(d.auth){var E=d.auth.username||"",b=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";w.Authorization="Basic "+btoa(E+":"+b)}var S=o(d.baseURL,d.url);_.open(d.method.toUpperCase(),r(S,d.params,d.paramsSerializer),!0),_.timeout=d.timeout;function C(){if(!!_){var T="getAllResponseHeaders"in _?i(_.getAllResponseHeaders()):null,F=!g||g==="text"||g==="json"?_.responseText:_.response,N={data:F,status:_.status,statusText:_.statusText,headers:T,config:d,request:_};t(function(B){h(B),x()},function(B){v(B),x()},N),_=null}}if("onloadend"in _?_.onloadend=C:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(C)},_.onabort=function(){!_||(v(s("Request aborted",d,"ECONNABORTED",_)),_=null)},_.onerror=function(){v(s("Network Error",d,null,_)),_=null},_.ontimeout=function(){var F=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",N=d.transitional||l;d.timeoutErrorMessage&&(F=d.timeoutErrorMessage),v(s(F,d,N.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},e.isStandardBrowserEnv()){var $=(d.withCredentials||a(S))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;$&&(w[d.xsrfHeaderName]=$)}"setRequestHeader"in _&&e.forEach(w,function(F,N){typeof m>"u"&&N.toLowerCase()==="content-type"?delete w[N]:_.setRequestHeader(N,F)}),e.isUndefined(d.withCredentials)||(_.withCredentials=!!d.withCredentials),g&&g!=="json"&&(_.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&_.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(y=function(T){!_||(v(!T||T&&T.type?new u("canceled"):T),_.abort(),_=null)},d.cancelToken&&d.cancelToken.subscribe(y),d.signal&&(d.signal.aborted?y():d.signal.addEventListener("abort",y))),m||(m=null),_.send(m)})},nh}var dt=Bt,u_=NI,UI=UT,GI=GT,YI={"Content-Type":"application/x-www-form-urlencoded"};function c_(e,t){!dt.isUndefined(e)&&dt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function WI(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=l_()),e}function qI(e,t,n){if(dt.isString(e))try{return(t||JSON.parse)(e),dt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var Tf={transitional:GI,adapter:WI(),transformRequest:[function(t,n){return u_(n,"Accept"),u_(n,"Content-Type"),dt.isFormData(t)||dt.isArrayBuffer(t)||dt.isBuffer(t)||dt.isStream(t)||dt.isFile(t)||dt.isBlob(t)?t:dt.isArrayBufferView(t)?t.buffer:dt.isURLSearchParams(t)?(c_(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):dt.isObject(t)||n&&n["Content-Type"]==="application/json"?(c_(n,"application/json"),qI(t)):t}],transformResponse:[function(t){var n=this.transitional||Tf.transitional,r=n&&n.silentJSONParsing,o=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||o&&dt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?UI(a,this,"E_JSON_PARSE"):a}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, */*"}}};dt.forEach(["delete","get","head"],function(t){Tf.headers[t]={}});dt.forEach(["post","put","patch"],function(t){Tf.headers[t]=dt.merge(YI)});var s1=Tf,KI=Bt,XI=s1,ZI=function(t,n,r){var o=this||XI;return KI.forEach(r,function(a){t=a.call(o,t,n)}),t},rh,d_;function WT(){return d_||(d_=1,rh=function(t){return!!(t&&t.__CANCEL__)}),rh}var f_=Bt,oh=ZI,QI=WT(),JI=s1,ej=Af();function ih(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ej("canceled")}var tj=function(t){ih(t),t.headers=t.headers||{},t.data=oh.call(t,t.data,t.headers,t.transformRequest),t.headers=f_.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),f_.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var n=t.adapter||JI.adapter;return n(t).then(function(o){return ih(t),o.data=oh.call(t,o.data,o.headers,t.transformResponse),o},function(o){return QI(o)||(ih(t),o&&o.response&&(o.response.data=oh.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},Vt=Bt,qT=function(t,n){n=n||{};var r={};function o(c,d){return Vt.isPlainObject(c)&&Vt.isPlainObject(d)?Vt.merge(c,d):Vt.isPlainObject(d)?Vt.merge({},d):Vt.isArray(d)?d.slice():d}function i(c){if(Vt.isUndefined(n[c])){if(!Vt.isUndefined(t[c]))return o(void 0,t[c])}else return o(t[c],n[c])}function a(c){if(!Vt.isUndefined(n[c]))return o(void 0,n[c])}function s(c){if(Vt.isUndefined(n[c])){if(!Vt.isUndefined(t[c]))return o(void 0,t[c])}else return o(void 0,n[c])}function l(c){if(c in n)return o(t[c],n[c]);if(c in t)return o(void 0,t[c])}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return Vt.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var p=u[d]||i,h=p(d);Vt.isUndefined(h)&&p!==l||(r[d]=h)}),r},ah,p_;function KT(){return p_||(p_=1,ah={version:"0.26.1"}),ah}var nj=KT().version,l1={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){l1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var h_={};l1.transitional=function(t,n,r){function o(i,a){return"[Axios v"+nj+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return function(i,a,s){if(t===!1)throw new Error(o(a," has been removed"+(n?" in "+n:"")));return n&&!h_[a]&&(h_[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function rj(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+i)}}var oj={assertOptions:rj,validators:l1},XT=Bt,ij=HT,m_=MI,v_=tj,$f=qT,ZT=oj,si=ZT.validators;function _l(e){this.defaults=e,this.interceptors={request:new m_,response:new m_}}_l.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$f(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&&ZT.assertOptions(r,{silentJSONParsing:si.transitional(si.boolean),forcedJSONParsing:si.transitional(si.boolean),clarifyTimeoutError:si.transitional(si.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(i=i&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});var a=[];this.interceptors.response.forEach(function(h){a.push(h.fulfilled,h.rejected)});var s;if(!i){var l=[v_,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(a),s=Promise.resolve(n);l.length;)s=s.then(l.shift(),l.shift());return s}for(var u=n;o.length;){var c=o.shift(),d=o.shift();try{u=c(u)}catch(p){d(p);break}}try{s=v_(u)}catch(p){return Promise.reject(p)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};_l.prototype.getUri=function(t){return t=$f(this.defaults,t),ij(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};XT.forEach(["delete","get","head","options"],function(t){_l.prototype[t]=function(n,r){return this.request($f(r||{},{method:t,url:n,data:(r||{}).data}))}});XT.forEach(["post","put","patch"],function(t){_l.prototype[t]=function(n,r,o){return this.request($f(o||{},{method:t,url:n,data:r}))}});var aj=_l,sh,g_;function sj(){if(g_)return sh;g_=1;var e=Af();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(a){r=a});var o=this;this.promise.then(function(i){if(!!o._listeners){var a,s=o._listeners.length;for(a=0;a<s;a++)o._listeners[a](i);o._listeners=null}}),this.promise.then=function(i){var a,s=new Promise(function(l){o.subscribe(l),a=l}).then(i);return s.cancel=function(){o.unsubscribe(a)},s},n(function(a){o.reason||(o.reason=new e(a),r(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(!!this._listeners){var o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}},t.source=function(){var r,o=new t(function(a){r=a});return{token:o,cancel:r}},sh=t,sh}var lh,y_;function lj(){return y_||(y_=1,lh=function(t){return function(r){return t.apply(null,r)}}),lh}var uh,x_;function uj(){if(x_)return uh;x_=1;var e=Bt;return uh=function(n){return e.isObject(n)&&n.isAxiosError===!0},uh}var w_=Bt,cj=jT,Wu=aj,dj=qT,fj=s1;function QT(e){var t=new Wu(e),n=cj(Wu.prototype.request,t);return w_.extend(n,Wu.prototype,t),w_.extend(n,t),n.create=function(o){return QT(dj(e,o))},n}var Gn=QT(fj);Gn.Axios=Wu;Gn.Cancel=Af();Gn.CancelToken=sj();Gn.isCancel=WT();Gn.VERSION=KT().version;Gn.all=function(t){return Promise.all(t)};Gn.spread=lj();Gn.isAxiosError=uj();o1.exports=Gn;o1.exports.default=Gn;(function(e){e.exports=o1.exports})(IT);const JT=l0(IT.exports),pj=(e,t)=>JT.create({baseURL:"https://api.locallogic.co/v3/",headers:{Accept:"application/json",Authorization:e},params:t});var gv;(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"})(gv||(gv={}));const hj="/pois";function Qo(e){this._maxSize=e,this.clear()}Qo.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Qo.prototype.get=function(e){return this._values[e]};Qo.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var mj=/[^.^\]^[]+|(?=\[\]|\.\.)/g,e5=/^\d+$/,vj=/^\d/,gj=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,yj=/^\s*(['"]?)(.*?)(\1)\s*$/,u1=512,__=new Qo(u1),E_=new Qo(u1),b_=new Qo(u1),Bo={Cache:Qo,split:yv,normalizePath:ch,setter:function(e){var t=ch(e);return E_.get(e)||E_.set(e,function(r,o){for(var i=0,a=t.length,s=r;i<a-1;){var l=t[i];if(l==="__proto__"||l==="constructor"||l==="prototype")return r;s=s[t[i++]]}s[t[i]]=o})},getter:function(e,t){var n=ch(e);return b_.get(e)||b_.set(e,function(o){for(var i=0,a=n.length;i<a;)if(o!=null||!t)o=o[n[i++]];else return;return o})},join:function(e){return e.reduce(function(t,n){return t+(c1(n)||e5.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){xj(Array.isArray(e)?e:yv(e),t,n)}};function ch(e){return __.get(e)||__.set(e,yv(e).map(function(t){return t.replace(yj,"$2")}))}function yv(e){return e.match(mj)||[""]}function xj(e,t,n){var r=e.length,o,i,a,s;for(i=0;i<r;i++)o=e[i],o&&(Ej(o)&&(o='"'+o+'"'),s=c1(o),a=!s&&/^\d+$/.test(o),t.call(n,o,s,a,i,e))}function c1(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function wj(e){return e.match(vj)&&!e.match(e5)}function _j(e){return gj.test(e)}function Ej(e){return!c1(e)&&(wj(e)||_j(e))}const bj=/[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,kf=e=>e.match(bj)||[],Rf=e=>e[0].toUpperCase()+e.slice(1),d1=(e,t)=>kf(e).join(t).toLowerCase(),t5=e=>kf(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),Sj=e=>Rf(t5(e)),Cj=e=>d1(e,"_"),Aj=e=>d1(e,"-"),Tj=e=>Rf(d1(e," ")),$j=e=>kf(e).map(Rf).join(" ");var dh={words:kf,upperFirst:Rf,camelCase:t5,pascalCase:Sj,snakeCase:Cj,kebabCase:Aj,sentenceCase:Tj,titleCase:$j},f1={exports:{}};f1.exports=function(e){return n5(kj(e),e)};f1.exports.array=n5;function n5(e,t){var n=e.length,r=new Array(n),o={},i=n,a=Rj(t),s=Pj(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(u,c,d){if(d.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch(m){p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!o[c]){o[c]=!0;var h=a.get(u)||new Set;if(h=Array.from(h),c=h.length){d.add(u);do{var v=h[--c];l(v,s.get(v),d)}while(c);d.delete(u)}r[--n]=u}}}function kj(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}function Rj(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}function Pj(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}const Oj=Object.prototype.toString,Lj=Error.prototype.toString,Mj=RegExp.prototype.toString,Dj=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Nj=/^Symbol\((.*)\)(.*)$/;function Fj(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function S_(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Fj(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Dj.call(e).replace(Nj,"Symbol($1)");const r=Oj.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+Lj.call(e)+"]":r==="RegExp"?Mj.call(e):null}function Vo(e,t){let n=S_(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=S_(this[r],t);return i!==null?i:o},2)}function r5(e){return e==null?[]:[].concat(e)}let Ij=/\$\{\s*(\w+)\s*\}/g;class Mt 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(Ij,(o,i)=>Vo(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o){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=o,this.errors=[],this.inner=[],r5(t).forEach(i=>{Mt.isError(i)?(this.errors.push(...i.errors),this.inner=this.inner.concat(i.inner.length?i.inner:i)):this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Mt)}}let Xn={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 o=r!=null&&r!==n?` (cast from the value \`${Vo(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Vo(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Vo(n,!0)}\``+o}},fn={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"},Ar={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"},xv={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},wv={isValue:"${path} field must be ${value}"},_v={noUnknown:"${path} field has unspecified keys: ${unknown}"},qu={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:Xn,string:fn,number:Ar,date:xv,object:_v,array:qu,boolean:wv});const Pf=e=>e&&e.__isYupSchema__;class Wc{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:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new Wc(t,(s,l)=>{var u;let c=a(...s)?o:i;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(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!Pf(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}function jj(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const fu={context:"$",value:"."};class nr{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]===fu.context,this.isValue=this.key[0]===fu.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?fu.context:this.isValue?fu.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Bo.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}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}}nr.prototype.__isYupRef=!0;const nn=e=>e==null,zj=["value","path","label","options","originalValue","spec","sync"];function li(e){function t(n,r,o){let{value:i,path:a="",label:s,options:l,originalValue:u,spec:c,sync:d}=n,p=jj(n,zj);const{name:h,test:v,params:m,message:w,skipAbsent:g}=e;let{parent:y,context:x,abortEarly:_=p.schema.spec.abortEarly}=l;function E(B){return nr.isRef(B)?B.getValue(i,y,x):B}function b(B={}){const te=Object.assign({value:i,originalValue:u,label:s,path:B.path||a,spec:c},m,B.params);for(const ie of Object.keys(te))te[ie]=E(te[ie]);const ue=new Mt(Mt.formatError(B.message||w,te),i,te.path,B.type||h);return ue.params=te,ue}const S=_?r:o;let C=Object.assign({path:a,parent:y,type:h,createError:b,resolve:E,options:l,originalValue:u},p);const $=B=>{Mt.isError(B)?S(B):B?o(null):S(b())},T=B=>{Mt.isError(B)?S(B):r(B)},F=g&&nn(i);if(!d){try{Promise.resolve(F?!0:v.call(C,i,C)).then($,T)}catch(B){T(B)}return}let N;try{var U;if(N=F?!0:v.call(C,i,C),typeof((U=N)==null?void 0:U.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(B){T(B);return}$(N)}return t.OPTIONS=e,t}let Bj=e=>e.substr(0,e.length-1).substr(1);function Vj(e,t,n,r=n){let o,i,a;return t?(Bo.forEach(t,(s,l,u)=>{let c=l?Bj(s):s;e=e.resolve({context:r,parent:o,value:n});let d=e.type==="tuple",p=u?parseInt(c,10):0;if(e.innerType||d){if(d&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[c],e=e.fields[c]}i=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class qc{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(nr.isRef(r)?t(r):r),[])}add(t){nr.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}delete(t){nr.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}clone(){const t=new qc;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(o=>r.add(o)),t.refs.forEach(o=>r.add(o)),n.list.forEach(o=>r.delete(o)),n.refs.forEach(o=>r.delete(o)),r}}function Pi(e,t=new Map){if(Pf(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]=Pi(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Pi(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Pi(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Pi(o,t)}else throw Error(`Unable to clone ${e}`);return n}class qt{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 qc,this._blacklist=new qc,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Xn.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=Pi(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 o=Object.assign({},n.spec,r.spec);return r.spec=o,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(i=>{t.tests.forEach(a=>{i.test(a.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((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o;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:(o=t.recursive)!=null?o:this.spec.recursive})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&nn(i))return i;let a=Vo(t),s=Vo(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
497
497
 
498
498
  attempted value: ${a}