@local-logic/sdks-app 1.7.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/assets/index-legacy.0a642cb5.js +1 -0
  2. package/dist/assets/index-legacy.4e44eb64.js +1 -0
  3. package/dist/assets/index-legacy.7f6983e2.js +1 -0
  4. package/dist/assets/index-legacy.919f470f.js +1 -0
  5. package/dist/assets/index-legacy.95ccb44a.js +106 -0
  6. package/dist/assets/index-legacy.c9e59904.js +23 -0
  7. package/dist/assets/index-legacy.fc3fe26b.js +1 -0
  8. package/dist/assets/{index.10935833.js → index.1bb375cb.js} +13 -13
  9. package/dist/assets/index.621fb294.js +149 -0
  10. package/dist/assets/index.795111c8.js +1 -0
  11. package/dist/assets/index.7a7d9dc0.js +1 -0
  12. package/dist/assets/index.937af76a.js +247 -0
  13. package/dist/assets/index.9af49ac7.js +1318 -0
  14. package/dist/assets/index.f59985f7.js +35 -0
  15. package/dist/assets/polyfills-legacy.db2bc606.js +1 -0
  16. package/dist/assets/{useIsMobile-legacy.a1dad04e.js → useIsMobile-legacy.ed5dee46.js} +1 -1
  17. package/dist/assets/{useIsMobile.5dc7840d.js → useIsMobile.456ed35b.js} +1 -1
  18. package/dist/assets/useQuery-legacy.97f1ad62.js +1 -0
  19. package/dist/assets/useQuery.83f2b67b.js +9 -0
  20. package/dist/index.html +3 -3
  21. package/dist/types/context/languageProvider/data-explorer/locales/en/index.d.ts.map +1 -1
  22. package/dist/types/context/languageProvider/data-explorer/locales/en/index.js +3 -0
  23. package/dist/types/context/languageProvider/data-explorer/locales/en/index.js.map +1 -1
  24. package/dist/types/context/languageProvider/data-explorer/locales/fr/index.d.ts.map +1 -1
  25. package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js +3 -0
  26. package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js.map +1 -1
  27. package/dist/types/context/languageProvider/data-explorer/types.d.ts +3 -3
  28. package/dist/types/context/languageProvider/data-explorer/types.d.ts.map +1 -1
  29. package/dist/types/context/languageProvider/index.d.ts +2 -2
  30. package/dist/types/context/languageProvider/index.d.ts.map +1 -1
  31. package/dist/types/sdks/DataExplorer/components/DataTable/index.d.ts +4 -0
  32. package/dist/types/sdks/DataExplorer/components/DataTable/index.d.ts.map +1 -0
  33. package/dist/types/sdks/DataExplorer/components/DataTable/index.js +65 -0
  34. package/dist/types/sdks/DataExplorer/components/DataTable/index.js.map +1 -0
  35. package/dist/types/sdks/DataExplorer/components/DataTable/styles.d.ts +6 -0
  36. package/dist/types/sdks/DataExplorer/components/DataTable/styles.d.ts.map +1 -0
  37. package/dist/types/sdks/DataExplorer/components/DataTable/styles.js +27 -0
  38. package/dist/types/sdks/DataExplorer/components/DataTable/styles.js.map +1 -0
  39. package/dist/types/sdks/DataExplorer/components/Export/index.d.ts.map +1 -1
  40. package/dist/types/sdks/DataExplorer/components/Export/index.js +7 -11
  41. package/dist/types/sdks/DataExplorer/components/Export/index.js.map +1 -1
  42. package/dist/types/sdks/DataExplorer/components/Filters/index.d.ts +4 -0
  43. package/dist/types/sdks/DataExplorer/components/Filters/index.d.ts.map +1 -0
  44. package/dist/types/sdks/DataExplorer/components/Filters/index.js +51 -0
  45. package/dist/types/sdks/DataExplorer/components/Filters/index.js.map +1 -0
  46. package/dist/types/sdks/DataExplorer/components/Filters/styles.d.ts +6 -0
  47. package/dist/types/sdks/DataExplorer/components/Filters/styles.d.ts.map +1 -0
  48. package/dist/types/sdks/DataExplorer/components/Filters/styles.js +12 -0
  49. package/dist/types/sdks/DataExplorer/components/Filters/styles.js.map +1 -0
  50. package/dist/types/sdks/DataExplorer/components/Section/index.d.ts +2 -4
  51. package/dist/types/sdks/DataExplorer/components/Section/index.d.ts.map +1 -1
  52. package/dist/types/sdks/DataExplorer/components/Section/index.js +6 -18
  53. package/dist/types/sdks/DataExplorer/components/Section/index.js.map +1 -1
  54. package/dist/types/sdks/DataExplorer/context.d.ts +4 -5
  55. package/dist/types/sdks/DataExplorer/context.d.ts.map +1 -1
  56. package/dist/types/sdks/DataExplorer/context.js +4 -5
  57. package/dist/types/sdks/DataExplorer/context.js.map +1 -1
  58. package/dist/types/sdks/DataExplorer/index.d.ts.map +1 -1
  59. package/dist/types/sdks/DataExplorer/index.js +10 -59
  60. package/dist/types/sdks/DataExplorer/index.js.map +1 -1
  61. package/dist/types/sdks/DataExplorer/styles.d.ts +3 -2
  62. package/dist/types/sdks/DataExplorer/styles.d.ts.map +1 -1
  63. package/dist/types/sdks/DataExplorer/styles.js +17 -7
  64. package/dist/types/sdks/DataExplorer/styles.js.map +1 -1
  65. package/dist/types/sdks/Demographics/components/Content/Household/index.d.ts.map +1 -1
  66. package/dist/types/sdks/Demographics/components/Content/Household/index.js +2 -1
  67. package/dist/types/sdks/Demographics/components/Content/Household/index.js.map +1 -1
  68. package/dist/types/sdks/Demographics/components/Content/Household/styles.d.ts +3 -0
  69. package/dist/types/sdks/Demographics/components/Content/Household/styles.d.ts.map +1 -0
  70. package/dist/types/sdks/Demographics/components/Content/Household/styles.js +19 -0
  71. package/dist/types/sdks/Demographics/components/Content/Household/styles.js.map +1 -0
  72. package/dist/types/sdks/Demographics/components/Content/Housing/index.d.ts.map +1 -1
  73. package/dist/types/sdks/Demographics/components/Content/Housing/index.js +10 -7
  74. package/dist/types/sdks/Demographics/components/Content/Housing/index.js.map +1 -1
  75. package/dist/types/sdks/Demographics/components/Content/Housing/styles.d.ts +3 -0
  76. package/dist/types/sdks/Demographics/components/Content/Housing/styles.d.ts.map +1 -0
  77. package/dist/types/sdks/Demographics/components/Content/Housing/styles.js +12 -0
  78. package/dist/types/sdks/Demographics/components/Content/Housing/styles.js.map +1 -0
  79. package/dist/types/sdks/Demographics/components/Content/Languages/index.d.ts +3 -0
  80. package/dist/types/sdks/Demographics/components/Content/Languages/index.d.ts.map +1 -0
  81. package/dist/types/sdks/Demographics/components/Content/Languages/index.js +14 -0
  82. package/dist/types/sdks/Demographics/components/Content/Languages/index.js.map +1 -0
  83. package/dist/types/sdks/Demographics/components/Content/index.d.ts.map +1 -1
  84. package/dist/types/sdks/Demographics/components/Content/index.js +3 -0
  85. package/dist/types/sdks/Demographics/components/Content/index.js.map +1 -1
  86. package/dist/types/sdks/Demographics/components/Content/styles.js +1 -1
  87. package/dist/types/sdks/Demographics/components/Content/styles.js.map +1 -1
  88. package/dist/types/sdks/Demographics/context.d.ts +3 -0
  89. package/dist/types/sdks/Demographics/context.d.ts.map +1 -1
  90. package/dist/types/sdks/Demographics/context.js.map +1 -1
  91. package/dist/types/sdks/Demographics/styles.d.ts.map +1 -1
  92. package/dist/types/sdks/Demographics/styles.js +0 -1
  93. package/dist/types/sdks/Demographics/styles.js.map +1 -1
  94. package/package.json +4 -3
  95. package/dist/assets/index-legacy.128bbb90.js +0 -106
  96. package/dist/assets/index-legacy.3a8c6aa8.js +0 -1
  97. package/dist/assets/index-legacy.46f64d17.js +0 -1
  98. package/dist/assets/index-legacy.60df4146.js +0 -1
  99. package/dist/assets/index-legacy.7c9f6b15.js +0 -1
  100. package/dist/assets/index-legacy.935e7346.js +0 -1
  101. package/dist/assets/index-legacy.93d69255.js +0 -1
  102. package/dist/assets/index.1df47f40.js +0 -28
  103. package/dist/assets/index.71eb35ea.js +0 -247
  104. package/dist/assets/index.97d3a920.js +0 -1374
  105. package/dist/assets/index.d464e7cf.js +0 -1
  106. package/dist/assets/index.e63e2d64.js +0 -1
  107. package/dist/assets/index.ed99fd65.js +0 -120
  108. package/dist/assets/keyFactory-legacy.782b8549.js +0 -1
  109. package/dist/assets/keyFactory.e1cd5707.js +0 -1
  110. package/dist/assets/polyfills-legacy.147ba02d.js +0 -1
  111. package/dist/assets/useQuery-legacy.6ce02414.js +0 -1
  112. package/dist/assets/useQuery.7c643982.js +0 -9
@@ -1,1374 +0,0 @@
1
- function bwt(){import("data:text/javascript,")}function s7(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var wwt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function UM(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var m={exports:{}},dt={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Wd=Symbol.for("react.element"),a7=Symbol.for("react.portal"),l7=Symbol.for("react.fragment"),c7=Symbol.for("react.strict_mode"),u7=Symbol.for("react.profiler"),d7=Symbol.for("react.provider"),h7=Symbol.for("react.context"),f7=Symbol.for("react.forward_ref"),p7=Symbol.for("react.suspense"),g7=Symbol.for("react.memo"),m7=Symbol.for("react.lazy"),US=Symbol.iterator;function v7(t){return t===null||typeof t!="object"?null:(t=US&&t[US]||t["@@iterator"],typeof t=="function"?t:null)}var WM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},YM=Object.assign,GM={};function Kl(t,e,n){this.props=t,this.context=e,this.refs=GM,this.updater=n||WM}Kl.prototype.isReactComponent={};Kl.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Kl.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function qM(){}qM.prototype=Kl.prototype;function Qx(t,e,n){this.props=t,this.context=e,this.refs=GM,this.updater=n||WM}var Jx=Qx.prototype=new qM;Jx.constructor=Qx;YM(Jx,Kl.prototype);Jx.isPureReactComponent=!0;var WS=Array.isArray,ZM=Object.prototype.hasOwnProperty,tb={current:null},XM={key:!0,ref:!0,__self:!0,__source:!0};function KM(t,e,n){var r,i={},o=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)ZM.call(e,r)&&!XM.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Wd,type:t,key:o,ref:s,props:i,_owner:tb.current}}function y7(t,e){return{$$typeof:Wd,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function eb(t){return typeof t=="object"&&t!==null&&t.$$typeof===Wd}function _7(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var YS=/\/+/g;function vv(t,e){return typeof t=="object"&&t!==null&&t.key!=null?_7(""+t.key):e.toString(36)}function np(t,e,n,r,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case Wd:case a7:s=!0}}if(s)return s=t,i=i(s),t=r===""?"."+vv(s,0):r,WS(i)?(n="",t!=null&&(n=t.replace(YS,"$&/")+"/"),np(i,e,n,"",function(c){return c})):i!=null&&(eb(i)&&(i=y7(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(YS,"$&/")+"/")+t)),e.push(i)),1;if(s=0,r=r===""?".":r+":",WS(t))for(var a=0;a<t.length;a++){o=t[a];var l=r+vv(o,a);s+=np(o,e,n,l,i)}else if(l=v7(t),typeof l=="function")for(t=l.call(t),a=0;!(o=t.next()).done;)o=o.value,l=r+vv(o,a++),s+=np(o,e,n,l,i);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function Ch(t,e,n){if(t==null)return t;var r=[],i=0;return np(t,r,"","",function(o){return e.call(n,o,i++)}),r}function x7(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var vn={current:null},rp={transition:null},b7={ReactCurrentDispatcher:vn,ReactCurrentBatchConfig:rp,ReactCurrentOwner:tb};dt.Children={map:Ch,forEach:function(t,e,n){Ch(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Ch(t,function(){e++}),e},toArray:function(t){return Ch(t,function(e){return e})||[]},only:function(t){if(!eb(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};dt.Component=Kl;dt.Fragment=l7;dt.Profiler=u7;dt.PureComponent=Qx;dt.StrictMode=c7;dt.Suspense=p7;dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b7;dt.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=YM({},t.props),i=t.key,o=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,s=tb.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)ZM.call(e,l)&&!XM.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Wd,type:t.type,key:i,ref:o,props:r,_owner:s}};dt.createContext=function(t){return t={$$typeof:h7,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:d7,_context:t},t.Consumer=t};dt.createElement=KM;dt.createFactory=function(t){var e=KM.bind(null,t);return e.type=t,e};dt.createRef=function(){return{current:null}};dt.forwardRef=function(t){return{$$typeof:f7,render:t}};dt.isValidElement=eb;dt.lazy=function(t){return{$$typeof:m7,_payload:{_status:-1,_result:t},_init:x7}};dt.memo=function(t,e){return{$$typeof:g7,type:t,compare:e===void 0?null:e}};dt.startTransition=function(t){var e=rp.transition;rp.transition={};try{t()}finally{rp.transition=e}};dt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};dt.useCallback=function(t,e){return vn.current.useCallback(t,e)};dt.useContext=function(t){return vn.current.useContext(t)};dt.useDebugValue=function(){};dt.useDeferredValue=function(t){return vn.current.useDeferredValue(t)};dt.useEffect=function(t,e){return vn.current.useEffect(t,e)};dt.useId=function(){return vn.current.useId()};dt.useImperativeHandle=function(t,e,n){return vn.current.useImperativeHandle(t,e,n)};dt.useInsertionEffect=function(t,e){return vn.current.useInsertionEffect(t,e)};dt.useLayoutEffect=function(t,e){return vn.current.useLayoutEffect(t,e)};dt.useMemo=function(t,e){return vn.current.useMemo(t,e)};dt.useReducer=function(t,e,n){return vn.current.useReducer(t,e,n)};dt.useRef=function(t){return vn.current.useRef(t)};dt.useState=function(t){return vn.current.useState(t)};dt.useSyncExternalStore=function(t,e,n){return vn.current.useSyncExternalStore(t,e,n)};dt.useTransition=function(){return vn.current.useTransition()};dt.version="18.2.0";(function(t){t.exports=dt})(m);const Q=UM(m.exports),nb=s7({__proto__:null,default:Q},[m.exports]);var vy={},zn={exports:{}},Qn={},QM={exports:{}},JM={};/**
10
- * @license React
11
- * scheduler.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */(function(t){function e(z,W){var P=z.length;z.push(W);t:for(;0<P;){var G=P-1>>>1,U=z[G];if(0<i(U,W))z[G]=W,z[P]=U,P=G;else break t}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var W=z[0],P=z.pop();if(P!==W){z[0]=P;t:for(var G=0,U=z.length,B=U>>>1;G<B;){var R=2*(G+1)-1,j=z[R],K=R+1,it=z[K];if(0>i(j,P))K<U&&0>i(it,j)?(z[G]=it,z[K]=P,G=K):(z[G]=j,z[R]=P,G=R);else if(K<U&&0>i(it,P))z[G]=it,z[K]=P,G=K;else break t}}return W}function i(z,W){var P=z.sortIndex-W.sortIndex;return P!==0?P:z.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,h=3,f=!1,p=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(z){for(var W=n(c);W!==null;){if(W.callback===null)r(c);else if(W.startTime<=z)r(c),W.sortIndex=W.expirationTime,e(l,W);else break;W=n(c)}}function b(z){if(g=!1,x(z),!p)if(n(l)!==null)p=!0,Y(w);else{var W=n(c);W!==null&&X(b,W.startTime-z)}}function w(z,W){p=!1,g&&(g=!1,v(C),C=-1),f=!0;var P=h;try{for(x(W),d=n(l);d!==null&&(!(d.expirationTime>W)||z&&!$());){var G=d.callback;if(typeof G=="function"){d.callback=null,h=d.priorityLevel;var U=G(d.expirationTime<=W);W=t.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),x(W)}else r(l);d=n(l)}if(d!==null)var B=!0;else{var R=n(c);R!==null&&X(b,R.startTime-W),B=!1}return B}finally{d=null,h=P,f=!1}}var S=!1,E=null,C=-1,A=5,k=-1;function $(){return!(t.unstable_now()-k<A)}function M(){if(E!==null){var z=t.unstable_now();k=z;var W=!0;try{W=E(!0,z)}finally{W?I():(S=!1,E=null)}}else S=!1}var I;if(typeof _=="function")I=function(){_(M)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,L=F.port2;F.port1.onmessage=M,I=function(){L.postMessage(null)}}else I=function(){y(M,0)};function Y(z){E=z,S||(S=!0,I())}function X(z,W){C=y(function(){z(t.unstable_now())},W)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_continueExecution=function(){p||f||(p=!0,Y(w))},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(z){switch(h){case 1:case 2:case 3:var W=3;break;default:W=h}var P=h;h=W;try{return z()}finally{h=P}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(z,W){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var P=h;h=z;try{return W()}finally{h=P}},t.unstable_scheduleCallback=function(z,W,P){var G=t.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?G+P:G):P=G,z){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=P+U,z={id:u++,callback:W,priorityLevel:z,startTime:P,expirationTime:U,sortIndex:-1},P>G?(z.sortIndex=P,e(c,z),n(l)===null&&z===n(c)&&(g?(v(C),C=-1):g=!0,X(b,P-G))):(z.sortIndex=U,e(l,z),p||f||(p=!0,Y(w))),z},t.unstable_shouldYield=$,t.unstable_wrapCallback=function(z){var W=h;return function(){var P=h;h=W;try{return z.apply(this,arguments)}finally{h=P}}}})(JM);(function(t){t.exports=JM})(QM);/**
18
- * @license React
19
- * react-dom.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var tP=m.exports,Zn=QM.exports;function q(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var eP=new Set,Ku={};function ca(t,e){wl(t,e),wl(t+"Capture",e)}function wl(t,e){for(Ku[t]=e,t=0;t<e.length;t++)eP.add(e[t])}var Ri=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yy=Object.prototype.hasOwnProperty,w7=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,GS={},qS={};function S7(t){return yy.call(qS,t)?!0:yy.call(GS,t)?!1:w7.test(t)?qS[t]=!0:(GS[t]=!0,!1)}function E7(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function C7(t,e,n,r){if(e===null||typeof e>"u"||E7(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function yn(t,e,n,r,i,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ge[t]=new yn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ge[e]=new yn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ge[t]=new yn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ge[t]=new yn(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ge[t]=new yn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ge[t]=new yn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ge[t]=new yn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ge[t]=new yn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ge[t]=new yn(t,5,!1,t.toLowerCase(),null,!1,!1)});var rb=/[\-:]([a-z])/g;function ib(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(rb,ib);Ge[e]=new yn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(rb,ib);Ge[e]=new yn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(rb,ib);Ge[e]=new yn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ge[t]=new yn(t,1,!1,t.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new yn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ge[t]=new yn(t,1,!1,t.toLowerCase(),null,!0,!0)});function ob(t,e,n,r){var i=Ge.hasOwnProperty(e)?Ge[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(C7(e,n,i,r)&&(n=null),r||i===null?S7(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var Gi=tP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,kh=Symbol.for("react.element"),Da=Symbol.for("react.portal"),Ia=Symbol.for("react.fragment"),sb=Symbol.for("react.strict_mode"),_y=Symbol.for("react.profiler"),nP=Symbol.for("react.provider"),rP=Symbol.for("react.context"),ab=Symbol.for("react.forward_ref"),xy=Symbol.for("react.suspense"),by=Symbol.for("react.suspense_list"),lb=Symbol.for("react.memo"),lo=Symbol.for("react.lazy"),iP=Symbol.for("react.offscreen"),ZS=Symbol.iterator;function bc(t){return t===null||typeof t!="object"?null:(t=ZS&&t[ZS]||t["@@iterator"],typeof t=="function"?t:null)}var ie=Object.assign,yv;function Wc(t){if(yv===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);yv=e&&e[1]||""}return`
26
- `+yv+t}var _v=!1;function xv(t,e){if(!t||_v)return"";_v=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var r=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){r=c}t.call(e.prototype)}else{try{throw Error()}catch(c){r=c}t()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
27
- `),o=r.stack.split(`
28
- `),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
29
- `+i[s].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=s&&0<=a);break}}}finally{_v=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Wc(t):""}function k7(t){switch(t.tag){case 5:return Wc(t.type);case 16:return Wc("Lazy");case 13:return Wc("Suspense");case 19:return Wc("SuspenseList");case 0:case 2:case 15:return t=xv(t.type,!1),t;case 11:return t=xv(t.type.render,!1),t;case 1:return t=xv(t.type,!0),t;default:return""}}function wy(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ia:return"Fragment";case Da:return"Portal";case _y:return"Profiler";case sb:return"StrictMode";case xy:return"Suspense";case by:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case rP:return(t.displayName||"Context")+".Consumer";case nP:return(t._context.displayName||"Context")+".Provider";case ab:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case lb:return e=t.displayName||null,e!==null?e:wy(t.type)||"Memo";case lo:e=t._payload,t=t._init;try{return wy(t(e))}catch(n){}}return null}function A7(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wy(e);case 8:return e===sb?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Wo(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function oP(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function T7(t){var e=oP(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ah(t){t._valueTracker||(t._valueTracker=T7(t))}function sP(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=oP(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Kp(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Sy(t,e){var n=e.checked;return ie({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:t._wrapperState.initialChecked})}function XS(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Wo(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function aP(t,e){e=e.checked,e!=null&&ob(t,"checked",e,!1)}function Ey(t,e){aP(t,e);var n=Wo(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Cy(t,e.type,n):e.hasOwnProperty("defaultValue")&&Cy(t,e.type,Wo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function KS(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Cy(t,e,n){(e!=="number"||Kp(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Yc=Array.isArray;function ol(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Wo(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function ky(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(q(91));return ie({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function QS(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(q(92));if(Yc(n)){if(1<n.length)throw Error(q(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Wo(n)}}function lP(t,e){var n=Wo(e.value),r=Wo(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function JS(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function cP(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ay(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?cP(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Th,uP=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Th=Th||document.createElement("div"),Th.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Th.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Qu(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var iu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$7=["Webkit","ms","Moz","O"];Object.keys(iu).forEach(function(t){$7.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),iu[e]=iu[t]})});function dP(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||iu.hasOwnProperty(t)&&iu[t]?(""+e).trim():e+"px"}function hP(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=dP(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var M7=ie({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ty(t,e){if(e){if(M7[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(q(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(q(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(q(61))}if(e.style!=null&&typeof e.style!="object")throw Error(q(62))}}function $y(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var My=null;function cb(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Py=null,sl=null,al=null;function tE(t){if(t=qd(t)){if(typeof Py!="function")throw Error(q(280));var e=t.stateNode;e&&(e=Um(e),Py(t.stateNode,t.type,e))}}function fP(t){sl?al?al.push(t):al=[t]:sl=t}function pP(){if(sl){var t=sl,e=al;if(al=sl=null,tE(t),e)for(t=0;t<e.length;t++)tE(e[t])}}function gP(t,e){return t(e)}function mP(){}var bv=!1;function vP(t,e,n){if(bv)return t(e,n);bv=!0;try{return gP(t,e,n)}finally{bv=!1,(sl!==null||al!==null)&&(mP(),pP())}}function Ju(t,e){var n=t.stateNode;if(n===null)return null;var r=Um(n);if(r===null)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(q(231,e,typeof n));return n}var Oy=!1;if(Ri)try{var wc={};Object.defineProperty(wc,"passive",{get:function(){Oy=!0}}),window.addEventListener("test",wc,wc),window.removeEventListener("test",wc,wc)}catch(t){Oy=!1}function P7(t,e,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(u){this.onError(u)}}var ou=!1,Qp=null,Jp=!1,Ry=null,O7={onError:function(t){ou=!0,Qp=t}};function R7(t,e,n,r,i,o,s,a,l){ou=!1,Qp=null,P7.apply(O7,arguments)}function L7(t,e,n,r,i,o,s,a,l){if(R7.apply(this,arguments),ou){if(ou){var c=Qp;ou=!1,Qp=null}else throw Error(q(198));Jp||(Jp=!0,Ry=c)}}function ua(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function yP(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function eE(t){if(ua(t)!==t)throw Error(q(188))}function D7(t){var e=t.alternate;if(!e){if(e=ua(t),e===null)throw Error(q(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return eE(i),t;if(o===r)return eE(i),e;o=o.sibling}throw Error(q(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(q(189))}}if(n.alternate!==r)throw Error(q(190))}if(n.tag!==3)throw Error(q(188));return n.stateNode.current===n?t:e}function _P(t){return t=D7(t),t!==null?xP(t):null}function xP(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=xP(t);if(e!==null)return e;t=t.sibling}return null}var bP=Zn.unstable_scheduleCallback,nE=Zn.unstable_cancelCallback,I7=Zn.unstable_shouldYield,N7=Zn.unstable_requestPaint,me=Zn.unstable_now,F7=Zn.unstable_getCurrentPriorityLevel,ub=Zn.unstable_ImmediatePriority,wP=Zn.unstable_UserBlockingPriority,tg=Zn.unstable_NormalPriority,z7=Zn.unstable_LowPriority,SP=Zn.unstable_IdlePriority,Bm=null,ei=null;function B7(t){if(ei&&typeof ei.onCommitFiberRoot=="function")try{ei.onCommitFiberRoot(Bm,t,void 0,(t.current.flags&128)===128)}catch(e){}}var Pr=Math.clz32?Math.clz32:H7,j7=Math.log,V7=Math.LN2;function H7(t){return t>>>=0,t===0?32:31-(j7(t)/V7|0)|0}var $h=64,Mh=4194304;function Gc(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function eg(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Gc(a):(o&=s,o!==0&&(r=Gc(o)))}else s=n&~i,s!==0?r=Gc(s):o!==0&&(r=Gc(o));if(r===0)return 0;if(e!==0&&e!==r&&(e&i)===0&&(i=r&-r,o=e&-e,i>=o||i===16&&(o&4194240)!==0))return e;if((r&4)!==0&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Pr(e),i=1<<n,r|=t[n],e&=~i;return r}function U7(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function W7(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes;0<o;){var s=31-Pr(o),a=1<<s,l=i[s];l===-1?((a&n)===0||(a&r)!==0)&&(i[s]=U7(a,e)):l<=e&&(t.expiredLanes|=a),o&=~a}}function Ly(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function EP(){var t=$h;return $h<<=1,($h&4194240)===0&&($h=64),t}function wv(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Yd(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Pr(e),t[e]=n}function Y7(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-Pr(n),o=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~o}}function db(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Pr(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var At=0;function CP(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var kP,hb,AP,TP,$P,Dy=!1,Ph=[],$o=null,Mo=null,Po=null,td=new Map,ed=new Map,po=[],G7="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rE(t,e){switch(t){case"focusin":case"focusout":$o=null;break;case"dragenter":case"dragleave":Mo=null;break;case"mouseover":case"mouseout":Po=null;break;case"pointerover":case"pointerout":td.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ed.delete(e.pointerId)}}function Sc(t,e,n,r,i,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},e!==null&&(e=qd(e),e!==null&&hb(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function q7(t,e,n,r,i){switch(e){case"focusin":return $o=Sc($o,t,e,n,r,i),!0;case"dragenter":return Mo=Sc(Mo,t,e,n,r,i),!0;case"mouseover":return Po=Sc(Po,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return td.set(o,Sc(td.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ed.set(o,Sc(ed.get(o)||null,t,e,n,r,i)),!0}return!1}function MP(t){var e=$s(t.target);if(e!==null){var n=ua(e);if(n!==null){if(e=n.tag,e===13){if(e=yP(n),e!==null){t.blockedOn=e,$P(t.priority,function(){AP(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ip(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Iy(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);My=r,n.target.dispatchEvent(r),My=null}else return e=qd(n),e!==null&&hb(e),t.blockedOn=n,!1;e.shift()}return!0}function iE(t,e,n){ip(t)&&n.delete(e)}function Z7(){Dy=!1,$o!==null&&ip($o)&&($o=null),Mo!==null&&ip(Mo)&&(Mo=null),Po!==null&&ip(Po)&&(Po=null),td.forEach(iE),ed.forEach(iE)}function Ec(t,e){t.blockedOn===e&&(t.blockedOn=null,Dy||(Dy=!0,Zn.unstable_scheduleCallback(Zn.unstable_NormalPriority,Z7)))}function nd(t){function e(i){return Ec(i,t)}if(0<Ph.length){Ec(Ph[0],t);for(var n=1;n<Ph.length;n++){var r=Ph[n];r.blockedOn===t&&(r.blockedOn=null)}}for($o!==null&&Ec($o,t),Mo!==null&&Ec(Mo,t),Po!==null&&Ec(Po,t),td.forEach(e),ed.forEach(e),n=0;n<po.length;n++)r=po[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<po.length&&(n=po[0],n.blockedOn===null);)MP(n),n.blockedOn===null&&po.shift()}var ll=Gi.ReactCurrentBatchConfig,ng=!0;function X7(t,e,n,r){var i=At,o=ll.transition;ll.transition=null;try{At=1,fb(t,e,n,r)}finally{At=i,ll.transition=o}}function K7(t,e,n,r){var i=At,o=ll.transition;ll.transition=null;try{At=4,fb(t,e,n,r)}finally{At=i,ll.transition=o}}function fb(t,e,n,r){if(ng){var i=Iy(t,e,n,r);if(i===null)Ov(t,e,r,rg,n),rE(t,r);else if(q7(i,t,e,n,r))r.stopPropagation();else if(rE(t,r),e&4&&-1<G7.indexOf(t)){for(;i!==null;){var o=qd(i);if(o!==null&&kP(o),o=Iy(t,e,n,r),o===null&&Ov(t,e,r,rg,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Ov(t,e,r,null,n)}}var rg=null;function Iy(t,e,n,r){if(rg=null,t=cb(r),t=$s(t),t!==null)if(e=ua(t),e===null)t=null;else if(n=e.tag,n===13){if(t=yP(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return rg=t,null}function PP(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(F7()){case ub:return 1;case wP:return 4;case tg:case z7:return 16;case SP:return 536870912;default:return 16}default:return 16}}var vo=null,pb=null,op=null;function OP(){if(op)return op;var t,e=pb,n=e.length,r,i="value"in vo?vo.value:vo.textContent,o=i.length;for(t=0;t<n&&e[t]===i[t];t++);var s=n-t;for(r=1;r<=s&&e[n-r]===i[o-r];r++);return op=i.slice(t,1<r?1-r:void 0)}function sp(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Oh(){return!0}function oE(){return!1}function Jn(t){function e(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Oh:oE,this.isPropagationStopped=oE,this}return ie(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Oh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Oh)},persist:function(){},isPersistent:Oh}),e}var Ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gb=Jn(Ql),Gd=ie({},Ql,{view:0,detail:0}),Q7=Jn(Gd),Sv,Ev,Cc,jm=ie({},Gd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mb,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Cc&&(Cc&&t.type==="mousemove"?(Sv=t.screenX-Cc.screenX,Ev=t.screenY-Cc.screenY):Ev=Sv=0,Cc=t),Sv)},movementY:function(t){return"movementY"in t?t.movementY:Ev}}),sE=Jn(jm),J7=ie({},jm,{dataTransfer:0}),tz=Jn(J7),ez=ie({},Gd,{relatedTarget:0}),Cv=Jn(ez),nz=ie({},Ql,{animationName:0,elapsedTime:0,pseudoElement:0}),rz=Jn(nz),iz=ie({},Ql,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),oz=Jn(iz),sz=ie({},Ql,{data:0}),aE=Jn(sz),az={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lz={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uz(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=cz[t])?!!e[t]:!1}function mb(){return uz}var dz=ie({},Gd,{key:function(t){if(t.key){var e=az[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=sp(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?lz[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mb,charCode:function(t){return t.type==="keypress"?sp(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?sp(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),hz=Jn(dz),fz=ie({},jm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lE=Jn(fz),pz=ie({},Gd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mb}),gz=Jn(pz),mz=ie({},Ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),vz=Jn(mz),yz=ie({},jm,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),_z=Jn(yz),xz=[9,13,27,32],vb=Ri&&"CompositionEvent"in window,su=null;Ri&&"documentMode"in document&&(su=document.documentMode);var bz=Ri&&"TextEvent"in window&&!su,RP=Ri&&(!vb||su&&8<su&&11>=su),cE=String.fromCharCode(32),uE=!1;function LP(t,e){switch(t){case"keyup":return xz.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DP(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Na=!1;function wz(t,e){switch(t){case"compositionend":return DP(e);case"keypress":return e.which!==32?null:(uE=!0,cE);case"textInput":return t=e.data,t===cE&&uE?null:t;default:return null}}function Sz(t,e){if(Na)return t==="compositionend"||!vb&&LP(t,e)?(t=OP(),op=pb=vo=null,Na=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return RP&&e.locale!=="ko"?null:e.data;default:return null}}var Ez={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dE(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Ez[t.type]:e==="textarea"}function IP(t,e,n,r){fP(r),e=ig(e,"onChange"),0<e.length&&(n=new gb("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var au=null,rd=null;function Cz(t){GP(t,0)}function Vm(t){var e=Ba(t);if(sP(e))return t}function kz(t,e){if(t==="change")return e}var NP=!1;if(Ri){var kv;if(Ri){var Av="oninput"in document;if(!Av){var hE=document.createElement("div");hE.setAttribute("oninput","return;"),Av=typeof hE.oninput=="function"}kv=Av}else kv=!1;NP=kv&&(!document.documentMode||9<document.documentMode)}function fE(){au&&(au.detachEvent("onpropertychange",FP),rd=au=null)}function FP(t){if(t.propertyName==="value"&&Vm(rd)){var e=[];IP(e,rd,t,cb(t)),vP(Cz,e)}}function Az(t,e,n){t==="focusin"?(fE(),au=e,rd=n,au.attachEvent("onpropertychange",FP)):t==="focusout"&&fE()}function Tz(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Vm(rd)}function $z(t,e){if(t==="click")return Vm(e)}function Mz(t,e){if(t==="input"||t==="change")return Vm(e)}function Pz(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ir=typeof Object.is=="function"?Object.is:Pz;function id(t,e){if(Ir(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!yy.call(e,i)||!Ir(t[i],e[i]))return!1}return!0}function pE(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function gE(t,e){var n=pE(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=pE(n)}}function zP(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?zP(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function BP(){for(var t=window,e=Kp();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch(r){n=!1}if(n)t=e.contentWindow;else break;e=Kp(t.document)}return e}function yb(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Oz(t){var e=BP(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&zP(n.ownerDocument.documentElement,n)){if(r!==null&&yb(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=gE(n,o);var s=gE(n,r);i&&s&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Rz=Ri&&"documentMode"in document&&11>=document.documentMode,Fa=null,Ny=null,lu=null,Fy=!1;function mE(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fy||Fa==null||Fa!==Kp(r)||(r=Fa,"selectionStart"in r&&yb(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),lu&&id(lu,r)||(lu=r,r=ig(Ny,"onSelect"),0<r.length&&(e=new gb("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Fa)))}function Rh(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var za={animationend:Rh("Animation","AnimationEnd"),animationiteration:Rh("Animation","AnimationIteration"),animationstart:Rh("Animation","AnimationStart"),transitionend:Rh("Transition","TransitionEnd")},Tv={},jP={};Ri&&(jP=document.createElement("div").style,"AnimationEvent"in window||(delete za.animationend.animation,delete za.animationiteration.animation,delete za.animationstart.animation),"TransitionEvent"in window||delete za.transitionend.transition);function Hm(t){if(Tv[t])return Tv[t];if(!za[t])return t;var e=za[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in jP)return Tv[t]=e[n];return t}var VP=Hm("animationend"),HP=Hm("animationiteration"),UP=Hm("animationstart"),WP=Hm("transitionend"),YP=new Map,vE="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ns(t,e){YP.set(t,e),ca(e,[t])}for(var $v=0;$v<vE.length;$v++){var Mv=vE[$v],Lz=Mv.toLowerCase(),Dz=Mv[0].toUpperCase()+Mv.slice(1);ns(Lz,"on"+Dz)}ns(VP,"onAnimationEnd");ns(HP,"onAnimationIteration");ns(UP,"onAnimationStart");ns("dblclick","onDoubleClick");ns("focusin","onFocus");ns("focusout","onBlur");ns(WP,"onTransitionEnd");wl("onMouseEnter",["mouseout","mouseover"]);wl("onMouseLeave",["mouseout","mouseover"]);wl("onPointerEnter",["pointerout","pointerover"]);wl("onPointerLeave",["pointerout","pointerover"]);ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ca("onBeforeInput",["compositionend","keypress","textInput","paste"]);ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Iz=new Set("cancel close invalid load scroll toggle".split(" ").concat(qc));function yE(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,L7(r,e,void 0,t),t.currentTarget=null}function GP(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;t:{var o=void 0;if(e)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break t;yE(i,a,c),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break t;yE(i,a,c),o=l}}}if(Jp)throw t=Ry,Jp=!1,Ry=null,t}function qt(t,e){var n=e[Hy];n===void 0&&(n=e[Hy]=new Set);var r=t+"__bubble";n.has(r)||(qP(e,t,2,!1),n.add(r))}function Pv(t,e,n){var r=0;e&&(r|=4),qP(n,t,r,e)}var Lh="_reactListening"+Math.random().toString(36).slice(2);function od(t){if(!t[Lh]){t[Lh]=!0,eP.forEach(function(n){n!=="selectionchange"&&(Iz.has(n)||Pv(n,!1,t),Pv(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Lh]||(e[Lh]=!0,Pv("selectionchange",!1,e))}}function qP(t,e,n,r){switch(PP(e)){case 1:var i=X7;break;case 4:i=K7;break;default:i=fb}n=i.bind(null,e,n,t),i=void 0,!Oy||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Ov(t,e,n,r,i){var o=r;if((e&1)===0&&(e&2)===0&&r!==null)t:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=$s(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue t}a=a.parentNode}}r=r.return}vP(function(){var c=o,u=cb(n),d=[];t:{var h=YP.get(t);if(h!==void 0){var f=gb,p=t;switch(t){case"keypress":if(sp(n)===0)break t;case"keydown":case"keyup":f=hz;break;case"focusin":p="focus",f=Cv;break;case"focusout":p="blur",f=Cv;break;case"beforeblur":case"afterblur":f=Cv;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=sE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=tz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=gz;break;case VP:case HP:case UP:f=rz;break;case WP:f=vz;break;case"scroll":f=Q7;break;case"wheel":f=_z;break;case"copy":case"cut":case"paste":f=oz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=lE}var g=(e&4)!==0,y=!g&&t==="scroll",v=g?h!==null?h+"Capture":null:h;g=[];for(var _=c,x;_!==null;){x=_;var b=x.stateNode;if(x.tag===5&&b!==null&&(x=b,v!==null&&(b=Ju(_,v),b!=null&&g.push(sd(_,b,x)))),y)break;_=_.return}0<g.length&&(h=new f(h,p,null,n,u),d.push({event:h,listeners:g}))}}if((e&7)===0){t:{if(h=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",h&&n!==My&&(p=n.relatedTarget||n.fromElement)&&($s(p)||p[Li]))break t;if((f||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=c,p=p?$s(p):null,p!==null&&(y=ua(p),p!==y||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=c),f!==p)){if(g=sE,b="onMouseLeave",v="onMouseEnter",_="mouse",(t==="pointerout"||t==="pointerover")&&(g=lE,b="onPointerLeave",v="onPointerEnter",_="pointer"),y=f==null?h:Ba(f),x=p==null?h:Ba(p),h=new g(b,_+"leave",f,n,u),h.target=y,h.relatedTarget=x,b=null,$s(u)===c&&(g=new g(v,_+"enter",p,n,u),g.target=x,g.relatedTarget=y,b=g),y=b,f&&p)e:{for(g=f,v=p,_=0,x=g;x;x=_a(x))_++;for(x=0,b=v;b;b=_a(b))x++;for(;0<_-x;)g=_a(g),_--;for(;0<x-_;)v=_a(v),x--;for(;_--;){if(g===v||v!==null&&g===v.alternate)break e;g=_a(g),v=_a(v)}g=null}else g=null;f!==null&&_E(d,h,f,g,!1),p!==null&&y!==null&&_E(d,y,p,g,!0)}}t:{if(h=c?Ba(c):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var w=kz;else if(dE(h))if(NP)w=Mz;else{w=Tz;var S=Az}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(w=$z);if(w&&(w=w(t,c))){IP(d,w,n,u);break t}S&&S(t,h,c),t==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&Cy(h,"number",h.value)}switch(S=c?Ba(c):window,t){case"focusin":(dE(S)||S.contentEditable==="true")&&(Fa=S,Ny=c,lu=null);break;case"focusout":lu=Ny=Fa=null;break;case"mousedown":Fy=!0;break;case"contextmenu":case"mouseup":case"dragend":Fy=!1,mE(d,n,u);break;case"selectionchange":if(Rz)break;case"keydown":case"keyup":mE(d,n,u)}var E;if(vb)t:{switch(t){case"compositionstart":var C="onCompositionStart";break t;case"compositionend":C="onCompositionEnd";break t;case"compositionupdate":C="onCompositionUpdate";break t}C=void 0}else Na?LP(t,n)&&(C="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(RP&&n.locale!=="ko"&&(Na||C!=="onCompositionStart"?C==="onCompositionEnd"&&Na&&(E=OP()):(vo=u,pb="value"in vo?vo.value:vo.textContent,Na=!0)),S=ig(c,C),0<S.length&&(C=new aE(C,t,null,n,u),d.push({event:C,listeners:S}),E?C.data=E:(E=DP(n),E!==null&&(C.data=E)))),(E=bz?wz(t,n):Sz(t,n))&&(c=ig(c,"onBeforeInput"),0<c.length&&(u=new aE("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=E))}GP(d,e)})}function sd(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ig(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ju(t,n),o!=null&&r.unshift(sd(t,o,i)),o=Ju(t,e),o!=null&&r.push(sd(t,o,i))),t=t.return}return r}function _a(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function _E(t,e,n,r,i){for(var o=e._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=Ju(n,o),l!=null&&s.unshift(sd(n,l,a))):i||(l=Ju(n,o),l!=null&&s.push(sd(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}var Nz=/\r\n?/g,Fz=/\u0000|\uFFFD/g;function xE(t){return(typeof t=="string"?t:""+t).replace(Nz,`
30
- `).replace(Fz,"")}function Dh(t,e,n){if(e=xE(e),xE(t)!==e&&n)throw Error(q(425))}function og(){}var zy=null,By=null;function jy(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Vy=typeof setTimeout=="function"?setTimeout:void 0,zz=typeof clearTimeout=="function"?clearTimeout:void 0,bE=typeof Promise=="function"?Promise:void 0,Bz=typeof queueMicrotask=="function"?queueMicrotask:typeof bE<"u"?function(t){return bE.resolve(null).then(t).catch(jz)}:Vy;function jz(t){setTimeout(function(){throw t})}function Rv(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),nd(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);nd(e)}function Oo(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function wE(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Jl=Math.random().toString(36).slice(2),qr="__reactFiber$"+Jl,ad="__reactProps$"+Jl,Li="__reactContainer$"+Jl,Hy="__reactEvents$"+Jl,Vz="__reactListeners$"+Jl,Hz="__reactHandles$"+Jl;function $s(t){var e=t[qr];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Li]||n[qr]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=wE(t);t!==null;){if(n=t[qr])return n;t=wE(t)}return e}t=n,n=t.parentNode}return null}function qd(t){return t=t[qr]||t[Li],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ba(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(q(33))}function Um(t){return t[ad]||null}var Uy=[],ja=-1;function rs(t){return{current:t}}function Xt(t){0>ja||(t.current=Uy[ja],Uy[ja]=null,ja--)}function Ht(t,e){ja++,Uy[ja]=t.current,t.current=e}var Yo={},on=rs(Yo),Rn=rs(!1),Xs=Yo;function Sl(t,e){var n=t.type.contextTypes;if(!n)return Yo;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Ln(t){return t=t.childContextTypes,t!=null}function sg(){Xt(Rn),Xt(on)}function SE(t,e,n){if(on.current!==Yo)throw Error(q(168));Ht(on,e),Ht(Rn,n)}function ZP(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(q(108,A7(t)||"Unknown",i));return ie({},n,r)}function ag(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Yo,Xs=on.current,Ht(on,t),Ht(Rn,Rn.current),!0}function EE(t,e,n){var r=t.stateNode;if(!r)throw Error(q(169));n?(t=ZP(t,e,Xs),r.__reactInternalMemoizedMergedChildContext=t,Xt(Rn),Xt(on),Ht(on,t)):Xt(Rn),Ht(Rn,n)}var wi=null,Wm=!1,Lv=!1;function XP(t){wi===null?wi=[t]:wi.push(t)}function Uz(t){Wm=!0,XP(t)}function is(){if(!Lv&&wi!==null){Lv=!0;var t=0,e=At;try{var n=wi;for(At=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}wi=null,Wm=!1}catch(i){throw wi!==null&&(wi=wi.slice(t+1)),bP(ub,is),i}finally{At=e,Lv=!1}}return null}var Va=[],Ha=0,lg=null,cg=0,ir=[],or=0,Ks=null,ki=1,Ai="";function Ss(t,e){Va[Ha++]=cg,Va[Ha++]=lg,lg=t,cg=e}function KP(t,e,n){ir[or++]=ki,ir[or++]=Ai,ir[or++]=Ks,Ks=t;var r=ki;t=Ai;var i=32-Pr(r)-1;r&=~(1<<i),n+=1;var o=32-Pr(e)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ki=1<<32-Pr(e)+i|n<<i|r,Ai=o+t}else ki=1<<o|n<<i|r,Ai=t}function _b(t){t.return!==null&&(Ss(t,1),KP(t,1,0))}function xb(t){for(;t===lg;)lg=Va[--Ha],Va[Ha]=null,cg=Va[--Ha],Va[Ha]=null;for(;t===Ks;)Ks=ir[--or],ir[or]=null,Ai=ir[--or],ir[or]=null,ki=ir[--or],ir[or]=null}var Gn=null,Wn=null,Kt=!1,Mr=null;function QP(t,e){var n=lr(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function CE(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Gn=t,Wn=Oo(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Gn=t,Wn=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Ks!==null?{id:ki,overflow:Ai}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=lr(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,Gn=t,Wn=null,!0):!1;default:return!1}}function Wy(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Yy(t){if(Kt){var e=Wn;if(e){var n=e;if(!CE(t,e)){if(Wy(t))throw Error(q(418));e=Oo(n.nextSibling);var r=Gn;e&&CE(t,e)?QP(r,n):(t.flags=t.flags&-4097|2,Kt=!1,Gn=t)}}else{if(Wy(t))throw Error(q(418));t.flags=t.flags&-4097|2,Kt=!1,Gn=t}}}function kE(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Gn=t}function Ih(t){if(t!==Gn)return!1;if(!Kt)return kE(t),Kt=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!jy(t.type,t.memoizedProps)),e&&(e=Wn)){if(Wy(t))throw JP(),Error(q(418));for(;e;)QP(t,e),e=Oo(e.nextSibling)}if(kE(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(q(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Wn=Oo(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Wn=null}}else Wn=Gn?Oo(t.stateNode.nextSibling):null;return!0}function JP(){for(var t=Wn;t;)t=Oo(t.nextSibling)}function El(){Wn=Gn=null,Kt=!1}function bb(t){Mr===null?Mr=[t]:Mr.push(t)}var Wz=Gi.ReactCurrentBatchConfig;function kr(t,e){if(t&&t.defaultProps){e=ie({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var ug=rs(null),dg=null,Ua=null,wb=null;function Sb(){wb=Ua=dg=null}function Eb(t){var e=ug.current;Xt(ug),t._currentValue=e}function Gy(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function cl(t,e){dg=t,wb=Ua=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&e)!==0&&(kn=!0),t.firstContext=null)}function gr(t){var e=t._currentValue;if(wb!==t)if(t={context:t,memoizedValue:e,next:null},Ua===null){if(dg===null)throw Error(q(308));Ua=t,dg.dependencies={lanes:0,firstContext:t}}else Ua=Ua.next=t;return e}var Ms=null;function Cb(t){Ms===null?Ms=[t]:Ms.push(t)}function tO(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,Cb(e)):(n.next=i.next,i.next=n),e.interleaved=n,Di(t,r)}function Di(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var co=!1;function kb(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eO(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Ti(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Ro(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,(pt&2)!==0){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Di(t,n)}return i=r.interleaved,i===null?(e.next=e,Cb(r)):(e.next=i.next,i.next=e),r.interleaved=e,Di(t,n)}function ap(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,db(t,n)}}function AE(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=e:o=o.next=e}else i=o=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function hg(t,e,n,r){var i=t.updateQueue;co=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;s=0,u=c=l=null,a=o;do{var h=a.lane,f=a.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});t:{var p=t,g=a;switch(h=e,f=n,g.tag){case 1:if(p=g.payload,typeof p=="function"){d=p.call(f,d,h);break t}d=p;break t;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,h=typeof p=="function"?p.call(f,d,h):p,h==null)break t;d=ie({},d,h);break t;case 2:co=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=f,l=d):u=u.next=f,s|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,e=i.shared.interleaved,e!==null){i=e;do s|=i.lane,i=i.next;while(i!==e)}else o===null&&(i.shared.lanes=0);Js|=s,t.lanes=s,t.memoizedState=d}}function TE(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(q(191,i));i.call(r)}}}var nO=new tP.Component().refs;function qy(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:ie({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ym={isMounted:function(t){return(t=t._reactInternals)?ua(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=gn(),i=Do(t),o=Ti(r,i);o.payload=e,n!=null&&(o.callback=n),e=Ro(t,o,i),e!==null&&(Or(e,t,i,r),ap(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=gn(),i=Do(t),o=Ti(r,i);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Ro(t,o,i),e!==null&&(Or(e,t,i,r),ap(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=gn(),r=Do(t),i=Ti(n,r);i.tag=2,e!=null&&(i.callback=e),e=Ro(t,i,r),e!==null&&(Or(e,t,r,n),ap(e,t,r))}};function $E(t,e,n,r,i,o,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,s):e.prototype&&e.prototype.isPureReactComponent?!id(n,r)||!id(i,o):!0}function rO(t,e,n){var r=!1,i=Yo,o=e.contextType;return typeof o=="object"&&o!==null?o=gr(o):(i=Ln(e)?Xs:on.current,r=e.contextTypes,o=(r=r!=null)?Sl(t,i):Yo),e=new e(n,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Ym,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function ME(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Ym.enqueueReplaceState(e,e.state,null)}function Zy(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=nO,kb(t);var o=e.contextType;typeof o=="object"&&o!==null?i.context=gr(o):(o=Ln(e)?Xs:on.current,i.context=Sl(t,o)),i.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(qy(t,e,o,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&Ym.enqueueReplaceState(i,i.state,null),hg(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function kc(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(q(309));var r=n.stateNode}if(!r)throw Error(q(147,t));var i=r,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(s){var a=i.refs;a===nO&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},e._stringRef=o,e)}if(typeof t!="string")throw Error(q(284));if(!n._owner)throw Error(q(290,t))}return t}function Nh(t,e){throw t=Object.prototype.toString.call(e),Error(q(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function PE(t){var e=t._init;return e(t._payload)}function iO(t){function e(v,_){if(t){var x=v.deletions;x===null?(v.deletions=[_],v.flags|=16):x.push(_)}}function n(v,_){if(!t)return null;for(;_!==null;)e(v,_),_=_.sibling;return null}function r(v,_){for(v=new Map;_!==null;)_.key!==null?v.set(_.key,_):v.set(_.index,_),_=_.sibling;return v}function i(v,_){return v=Io(v,_),v.index=0,v.sibling=null,v}function o(v,_,x){return v.index=x,t?(x=v.alternate,x!==null?(x=x.index,x<_?(v.flags|=2,_):x):(v.flags|=2,_)):(v.flags|=1048576,_)}function s(v){return t&&v.alternate===null&&(v.flags|=2),v}function a(v,_,x,b){return _===null||_.tag!==6?(_=jv(x,v.mode,b),_.return=v,_):(_=i(_,x),_.return=v,_)}function l(v,_,x,b){var w=x.type;return w===Ia?u(v,_,x.props.children,b,x.key):_!==null&&(_.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===lo&&PE(w)===_.type)?(b=i(_,x.props),b.ref=kc(v,_,x),b.return=v,b):(b=fp(x.type,x.key,x.props,null,v.mode,b),b.ref=kc(v,_,x),b.return=v,b)}function c(v,_,x,b){return _===null||_.tag!==4||_.stateNode.containerInfo!==x.containerInfo||_.stateNode.implementation!==x.implementation?(_=Vv(x,v.mode,b),_.return=v,_):(_=i(_,x.children||[]),_.return=v,_)}function u(v,_,x,b,w){return _===null||_.tag!==7?(_=js(x,v.mode,b,w),_.return=v,_):(_=i(_,x),_.return=v,_)}function d(v,_,x){if(typeof _=="string"&&_!==""||typeof _=="number")return _=jv(""+_,v.mode,x),_.return=v,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case kh:return x=fp(_.type,_.key,_.props,null,v.mode,x),x.ref=kc(v,null,_),x.return=v,x;case Da:return _=Vv(_,v.mode,x),_.return=v,_;case lo:var b=_._init;return d(v,b(_._payload),x)}if(Yc(_)||bc(_))return _=js(_,v.mode,x,null),_.return=v,_;Nh(v,_)}return null}function h(v,_,x,b){var w=_!==null?_.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return w!==null?null:a(v,_,""+x,b);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case kh:return x.key===w?l(v,_,x,b):null;case Da:return x.key===w?c(v,_,x,b):null;case lo:return w=x._init,h(v,_,w(x._payload),b)}if(Yc(x)||bc(x))return w!==null?null:u(v,_,x,b,null);Nh(v,x)}return null}function f(v,_,x,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return v=v.get(x)||null,a(_,v,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case kh:return v=v.get(b.key===null?x:b.key)||null,l(_,v,b,w);case Da:return v=v.get(b.key===null?x:b.key)||null,c(_,v,b,w);case lo:var S=b._init;return f(v,_,x,S(b._payload),w)}if(Yc(b)||bc(b))return v=v.get(x)||null,u(_,v,b,w,null);Nh(_,b)}return null}function p(v,_,x,b){for(var w=null,S=null,E=_,C=_=0,A=null;E!==null&&C<x.length;C++){E.index>C?(A=E,E=null):A=E.sibling;var k=h(v,E,x[C],b);if(k===null){E===null&&(E=A);break}t&&E&&k.alternate===null&&e(v,E),_=o(k,_,C),S===null?w=k:S.sibling=k,S=k,E=A}if(C===x.length)return n(v,E),Kt&&Ss(v,C),w;if(E===null){for(;C<x.length;C++)E=d(v,x[C],b),E!==null&&(_=o(E,_,C),S===null?w=E:S.sibling=E,S=E);return Kt&&Ss(v,C),w}for(E=r(v,E);C<x.length;C++)A=f(E,v,C,x[C],b),A!==null&&(t&&A.alternate!==null&&E.delete(A.key===null?C:A.key),_=o(A,_,C),S===null?w=A:S.sibling=A,S=A);return t&&E.forEach(function($){return e(v,$)}),Kt&&Ss(v,C),w}function g(v,_,x,b){var w=bc(x);if(typeof w!="function")throw Error(q(150));if(x=w.call(x),x==null)throw Error(q(151));for(var S=w=null,E=_,C=_=0,A=null,k=x.next();E!==null&&!k.done;C++,k=x.next()){E.index>C?(A=E,E=null):A=E.sibling;var $=h(v,E,k.value,b);if($===null){E===null&&(E=A);break}t&&E&&$.alternate===null&&e(v,E),_=o($,_,C),S===null?w=$:S.sibling=$,S=$,E=A}if(k.done)return n(v,E),Kt&&Ss(v,C),w;if(E===null){for(;!k.done;C++,k=x.next())k=d(v,k.value,b),k!==null&&(_=o(k,_,C),S===null?w=k:S.sibling=k,S=k);return Kt&&Ss(v,C),w}for(E=r(v,E);!k.done;C++,k=x.next())k=f(E,v,C,k.value,b),k!==null&&(t&&k.alternate!==null&&E.delete(k.key===null?C:k.key),_=o(k,_,C),S===null?w=k:S.sibling=k,S=k);return t&&E.forEach(function(M){return e(v,M)}),Kt&&Ss(v,C),w}function y(v,_,x,b){if(typeof x=="object"&&x!==null&&x.type===Ia&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case kh:t:{for(var w=x.key,S=_;S!==null;){if(S.key===w){if(w=x.type,w===Ia){if(S.tag===7){n(v,S.sibling),_=i(S,x.props.children),_.return=v,v=_;break t}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===lo&&PE(w)===S.type){n(v,S.sibling),_=i(S,x.props),_.ref=kc(v,S,x),_.return=v,v=_;break t}n(v,S);break}else e(v,S);S=S.sibling}x.type===Ia?(_=js(x.props.children,v.mode,b,x.key),_.return=v,v=_):(b=fp(x.type,x.key,x.props,null,v.mode,b),b.ref=kc(v,_,x),b.return=v,v=b)}return s(v);case Da:t:{for(S=x.key;_!==null;){if(_.key===S)if(_.tag===4&&_.stateNode.containerInfo===x.containerInfo&&_.stateNode.implementation===x.implementation){n(v,_.sibling),_=i(_,x.children||[]),_.return=v,v=_;break t}else{n(v,_);break}else e(v,_);_=_.sibling}_=Vv(x,v.mode,b),_.return=v,v=_}return s(v);case lo:return S=x._init,y(v,_,S(x._payload),b)}if(Yc(x))return p(v,_,x,b);if(bc(x))return g(v,_,x,b);Nh(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,_!==null&&_.tag===6?(n(v,_.sibling),_=i(_,x),_.return=v,v=_):(n(v,_),_=jv(x,v.mode,b),_.return=v,v=_),s(v)):n(v,_)}return y}var Cl=iO(!0),oO=iO(!1),Zd={},ni=rs(Zd),ld=rs(Zd),cd=rs(Zd);function Ps(t){if(t===Zd)throw Error(q(174));return t}function Ab(t,e){switch(Ht(cd,e),Ht(ld,t),Ht(ni,Zd),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ay(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Ay(e,t)}Xt(ni),Ht(ni,e)}function kl(){Xt(ni),Xt(ld),Xt(cd)}function sO(t){Ps(cd.current);var e=Ps(ni.current),n=Ay(e,t.type);e!==n&&(Ht(ld,t),Ht(ni,n))}function Tb(t){ld.current===t&&(Xt(ni),Xt(ld))}var ne=rs(0);function fg(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Dv=[];function $b(){for(var t=0;t<Dv.length;t++)Dv[t]._workInProgressVersionPrimary=null;Dv.length=0}var lp=Gi.ReactCurrentDispatcher,Iv=Gi.ReactCurrentBatchConfig,Qs=0,re=null,ke=null,Re=null,pg=!1,cu=!1,ud=0,Yz=0;function Ze(){throw Error(q(321))}function Mb(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ir(t[n],e[n]))return!1;return!0}function Pb(t,e,n,r,i,o){if(Qs=o,re=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,lp.current=t===null||t.memoizedState===null?Xz:Kz,t=n(r,i),cu){o=0;do{if(cu=!1,ud=0,25<=o)throw Error(q(301));o+=1,Re=ke=null,e.updateQueue=null,lp.current=Qz,t=n(r,i)}while(cu)}if(lp.current=gg,e=ke!==null&&ke.next!==null,Qs=0,Re=ke=re=null,pg=!1,e)throw Error(q(300));return t}function Ob(){var t=ud!==0;return ud=0,t}function jr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?re.memoizedState=Re=t:Re=Re.next=t,Re}function mr(){if(ke===null){var t=re.alternate;t=t!==null?t.memoizedState:null}else t=ke.next;var e=Re===null?re.memoizedState:Re.next;if(e!==null)Re=e,ke=t;else{if(t===null)throw Error(q(310));ke=t,t={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},Re===null?re.memoizedState=Re=t:Re=Re.next=t}return Re}function dd(t,e){return typeof e=="function"?e(t):e}function Nv(t){var e=mr(),n=e.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=t;var r=ke,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,c=o;do{var u=c.lane;if((Qs&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:t(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,re.lanes|=u,Js|=u}c=c.next}while(c!==null&&c!==o);l===null?s=r:l.next=a,Ir(r,e.memoizedState)||(kn=!0),e.memoizedState=r,e.baseState=s,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do o=i.lane,re.lanes|=o,Js|=o,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Fv(t){var e=mr(),n=e.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=t(o,s.action),s=s.next;while(s!==i);Ir(o,e.memoizedState)||(kn=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function aO(){}function lO(t,e){var n=re,r=mr(),i=e(),o=!Ir(r.memoizedState,i);if(o&&(r.memoizedState=i,kn=!0),r=r.queue,Rb(dO.bind(null,n,r,t),[t]),r.getSnapshot!==e||o||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,hd(9,uO.bind(null,n,r,i,e),void 0,null),ze===null)throw Error(q(349));(Qs&30)!==0||cO(n,e,i)}return i}function cO(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=re.updateQueue,e===null?(e={lastEffect:null,stores:null},re.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function uO(t,e,n,r){e.value=n,e.getSnapshot=r,hO(e)&&fO(t)}function dO(t,e,n){return n(function(){hO(e)&&fO(t)})}function hO(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ir(t,n)}catch(r){return!0}}function fO(t){var e=Di(t,1);e!==null&&Or(e,t,1,-1)}function OE(t){var e=jr();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:dd,lastRenderedState:t},e.queue=t,t=t.dispatch=Zz.bind(null,re,t),[e.memoizedState,t]}function hd(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=re.updateQueue,e===null?(e={lastEffect:null,stores:null},re.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function pO(){return mr().memoizedState}function cp(t,e,n,r){var i=jr();re.flags|=t,i.memoizedState=hd(1|e,n,void 0,r===void 0?null:r)}function Gm(t,e,n,r){var i=mr();r=r===void 0?null:r;var o=void 0;if(ke!==null){var s=ke.memoizedState;if(o=s.destroy,r!==null&&Mb(r,s.deps)){i.memoizedState=hd(e,n,o,r);return}}re.flags|=t,i.memoizedState=hd(1|e,n,o,r)}function RE(t,e){return cp(8390656,8,t,e)}function Rb(t,e){return Gm(2048,8,t,e)}function gO(t,e){return Gm(4,2,t,e)}function mO(t,e){return Gm(4,4,t,e)}function vO(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function yO(t,e,n){return n=n!=null?n.concat([t]):null,Gm(4,4,vO.bind(null,e,t),n)}function Lb(){}function _O(t,e){var n=mr();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Mb(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function xO(t,e){var n=mr();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Mb(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function bO(t,e,n){return(Qs&21)===0?(t.baseState&&(t.baseState=!1,kn=!0),t.memoizedState=n):(Ir(n,e)||(n=EP(),re.lanes|=n,Js|=n,t.baseState=!0),e)}function Gz(t,e){var n=At;At=n!==0&&4>n?n:4,t(!0);var r=Iv.transition;Iv.transition={};try{t(!1),e()}finally{At=n,Iv.transition=r}}function wO(){return mr().memoizedState}function qz(t,e,n){var r=Do(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},SO(t))EO(e,n);else if(n=tO(t,e,n,r),n!==null){var i=gn();Or(n,t,r,i),CO(n,e,r)}}function Zz(t,e,n){var r=Do(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(SO(t))EO(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var s=e.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Ir(a,s)){var l=e.interleaved;l===null?(i.next=i,Cb(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch(c){}finally{}n=tO(t,e,i,r),n!==null&&(i=gn(),Or(n,t,r,i),CO(n,e,r))}}function SO(t){var e=t.alternate;return t===re||e!==null&&e===re}function EO(t,e){cu=pg=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function CO(t,e,n){if((n&4194240)!==0){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,db(t,n)}}var gg={readContext:gr,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},Xz={readContext:gr,useCallback:function(t,e){return jr().memoizedState=[t,e===void 0?null:e],t},useContext:gr,useEffect:RE,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,cp(4194308,4,vO.bind(null,e,t),n)},useLayoutEffect:function(t,e){return cp(4194308,4,t,e)},useInsertionEffect:function(t,e){return cp(4,2,t,e)},useMemo:function(t,e){var n=jr();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=jr();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=qz.bind(null,re,t),[r.memoizedState,t]},useRef:function(t){var e=jr();return t={current:t},e.memoizedState=t},useState:OE,useDebugValue:Lb,useDeferredValue:function(t){return jr().memoizedState=t},useTransition:function(){var t=OE(!1),e=t[0];return t=Gz.bind(null,t[1]),jr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=re,i=jr();if(Kt){if(n===void 0)throw Error(q(407));n=n()}else{if(n=e(),ze===null)throw Error(q(349));(Qs&30)!==0||cO(r,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,RE(dO.bind(null,r,o,t),[t]),r.flags|=2048,hd(9,uO.bind(null,r,o,n,e),void 0,null),n},useId:function(){var t=jr(),e=ze.identifierPrefix;if(Kt){var n=Ai,r=ki;n=(r&~(1<<32-Pr(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=ud++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=Yz++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},Kz={readContext:gr,useCallback:_O,useContext:gr,useEffect:Rb,useImperativeHandle:yO,useInsertionEffect:gO,useLayoutEffect:mO,useMemo:xO,useReducer:Nv,useRef:pO,useState:function(){return Nv(dd)},useDebugValue:Lb,useDeferredValue:function(t){var e=mr();return bO(e,ke.memoizedState,t)},useTransition:function(){var t=Nv(dd)[0],e=mr().memoizedState;return[t,e]},useMutableSource:aO,useSyncExternalStore:lO,useId:wO,unstable_isNewReconciler:!1},Qz={readContext:gr,useCallback:_O,useContext:gr,useEffect:Rb,useImperativeHandle:yO,useInsertionEffect:gO,useLayoutEffect:mO,useMemo:xO,useReducer:Fv,useRef:pO,useState:function(){return Fv(dd)},useDebugValue:Lb,useDeferredValue:function(t){var e=mr();return ke===null?e.memoizedState=t:bO(e,ke.memoizedState,t)},useTransition:function(){var t=Fv(dd)[0],e=mr().memoizedState;return[t,e]},useMutableSource:aO,useSyncExternalStore:lO,useId:wO,unstable_isNewReconciler:!1};function Al(t,e){try{var n="",r=e;do n+=k7(r),r=r.return;while(r);var i=n}catch(o){i=`
31
- Error generating stack: `+o.message+`
32
- `+o.stack}return{value:t,source:e,stack:i,digest:null}}function zv(t,e,n){return{value:t,source:null,stack:n!=null?n:null,digest:e!=null?e:null}}function Xy(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var Jz=typeof WeakMap=="function"?WeakMap:Map;function kO(t,e,n){n=Ti(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){vg||(vg=!0,s_=r),Xy(t,e)},n}function AO(t,e,n){n=Ti(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){Xy(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Xy(t,e),typeof r!="function"&&(Lo===null?Lo=new Set([this]):Lo.add(this));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}function LE(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new Jz;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=fB.bind(null,t,e,n),e.then(t,t))}function DE(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function IE(t,e,n,r,i){return(t.mode&1)===0?(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Ti(-1,1),e.tag=2,Ro(n,e,1))),n.lanes|=1),t):(t.flags|=65536,t.lanes=i,t)}var tB=Gi.ReactCurrentOwner,kn=!1;function dn(t,e,n,r){e.child=t===null?oO(e,null,n,r):Cl(e,t.child,n,r)}function NE(t,e,n,r,i){n=n.render;var o=e.ref;return cl(e,i),r=Pb(t,e,n,r,o,i),n=Ob(),t!==null&&!kn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Ii(t,e,i)):(Kt&&n&&_b(e),e.flags|=1,dn(t,e,r,i),e.child)}function FE(t,e,n,r,i){if(t===null){var o=n.type;return typeof o=="function"&&!Vb(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=o,TO(t,e,o,r,i)):(t=fp(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,(t.lanes&i)===0){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:id,n(s,r)&&t.ref===e.ref)return Ii(t,e,i)}return e.flags|=1,t=Io(o,r),t.ref=e.ref,t.return=e,e.child=t}function TO(t,e,n,r,i){if(t!==null){var o=t.memoizedProps;if(id(o,r)&&t.ref===e.ref)if(kn=!1,e.pendingProps=r=o,(t.lanes&i)!==0)(t.flags&131072)!==0&&(kn=!0);else return e.lanes=t.lanes,Ii(t,e,i)}return Ky(t,e,n,r,i)}function $O(t,e,n){var r=e.pendingProps,i=r.children,o=t!==null?t.memoizedState:null;if(r.mode==="hidden")if((e.mode&1)===0)e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ht(Ya,Un),Un|=n;else{if((n&1073741824)===0)return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Ht(Ya,Un),Un|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ht(Ya,Un),Un|=r}else o!==null?(r=o.baseLanes|n,e.memoizedState=null):r=n,Ht(Ya,Un),Un|=r;return dn(t,e,i,n),e.child}function MO(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Ky(t,e,n,r,i){var o=Ln(n)?Xs:on.current;return o=Sl(e,o),cl(e,i),n=Pb(t,e,n,r,o,i),r=Ob(),t!==null&&!kn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Ii(t,e,i)):(Kt&&r&&_b(e),e.flags|=1,dn(t,e,n,i),e.child)}function zE(t,e,n,r,i){if(Ln(n)){var o=!0;ag(e)}else o=!1;if(cl(e,i),e.stateNode===null)up(t,e),rO(e,n,r),Zy(e,n,r,i),r=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=gr(c):(c=Ln(n)?Xs:on.current,c=Sl(e,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&ME(e,s,r,c),co=!1;var h=e.memoizedState;s.state=h,hg(e,r,s,i),l=e.memoizedState,a!==r||h!==l||Rn.current||co?(typeof u=="function"&&(qy(e,n,u,r),l=e.memoizedState),(a=co||$E(e,n,a,r,h,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{s=e.stateNode,eO(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:kr(e.type,a),s.props=c,d=e.pendingProps,h=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=gr(l):(l=Ln(n)?Xs:on.current,l=Sl(e,l));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||h!==l)&&ME(e,s,r,l),co=!1,h=e.memoizedState,s.state=h,hg(e,r,s,i);var p=e.memoizedState;a!==d||h!==p||Rn.current||co?(typeof f=="function"&&(qy(e,n,f,r),p=e.memoizedState),(c=co||$E(e,n,c,r,h,p,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=p),s.props=r,s.state=p,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return Qy(t,e,n,r,o,i)}function Qy(t,e,n,r,i,o){MO(t,e);var s=(e.flags&128)!==0;if(!r&&!s)return i&&EE(e,n,!1),Ii(t,e,o);r=e.stateNode,tB.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&s?(e.child=Cl(e,t.child,null,o),e.child=Cl(e,null,a,o)):dn(t,e,a,o),e.memoizedState=r.state,i&&EE(e,n,!0),e.child}function PO(t){var e=t.stateNode;e.pendingContext?SE(t,e.pendingContext,e.pendingContext!==e.context):e.context&&SE(t,e.context,!1),Ab(t,e.containerInfo)}function BE(t,e,n,r,i){return El(),bb(i),e.flags|=256,dn(t,e,n,r),e.child}var Jy={dehydrated:null,treeContext:null,retryLane:0};function t_(t){return{baseLanes:t,cachePool:null,transitions:null}}function OO(t,e,n){var r=e.pendingProps,i=ne.current,o=!1,s=(e.flags&128)!==0,a;if((a=s)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Ht(ne,i&1),t===null)return Yy(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((e.mode&1)===0?e.lanes=1:t.data==="$!"?e.lanes=8:e.lanes=1073741824,null):(s=r.children,t=r.fallback,o?(r=e.mode,o=e.child,s={mode:"hidden",children:s},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Xm(s,r,0,null),t=js(t,r,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=t_(n),e.memoizedState=Jy,t):Db(e,s));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return eB(t,e,s,r,a,i,n);if(o){o=r.fallback,s=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:r.children};return(s&1)===0&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=Io(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Io(a,o):(o=js(o,s,n,null),o.flags|=2),o.return=e,r.return=e,r.sibling=o,e.child=r,r=o,o=e.child,s=t.child.memoizedState,s=s===null?t_(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=t.childLanes&~n,e.memoizedState=Jy,r}return o=t.child,t=o.sibling,r=Io(o,{mode:"visible",children:r.children}),(e.mode&1)===0&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Db(t,e){return e=Xm({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Fh(t,e,n,r){return r!==null&&bb(r),Cl(e,t.child,null,n),t=Db(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function eB(t,e,n,r,i,o,s){if(n)return e.flags&256?(e.flags&=-257,r=zv(Error(q(422))),Fh(t,e,s,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=r.fallback,i=e.mode,r=Xm({mode:"visible",children:r.children},i,0,null),o=js(o,i,s,null),o.flags|=2,r.return=e,o.return=e,r.sibling=o,e.child=r,(e.mode&1)!==0&&Cl(e,t.child,null,s),e.child.memoizedState=t_(s),e.memoizedState=Jy,o);if((e.mode&1)===0)return Fh(t,e,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(q(419)),r=zv(o,r,void 0),Fh(t,e,s,r)}if(a=(s&t.childLanes)!==0,kn||a){if(r=ze,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|s))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Di(t,i),Or(r,t,i,-1))}return jb(),r=zv(Error(q(421))),Fh(t,e,s,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=pB.bind(null,t),i._reactRetry=e,null):(t=o.treeContext,Wn=Oo(i.nextSibling),Gn=e,Kt=!0,Mr=null,t!==null&&(ir[or++]=ki,ir[or++]=Ai,ir[or++]=Ks,ki=t.id,Ai=t.overflow,Ks=e),e=Db(e,r.children),e.flags|=4096,e)}function jE(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Gy(t.return,e,n)}function Bv(t,e,n,r,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function RO(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(dn(t,e,r.children,n),r=ne.current,(r&2)!==0)r=r&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&jE(t,n,e);else if(t.tag===19)jE(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Ht(ne,r),(e.mode&1)===0)e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&fg(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Bv(e,!1,i,n,o);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&fg(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Bv(e,!0,n,null,o);break;case"together":Bv(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function up(t,e){(e.mode&1)===0&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Ii(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Js|=e.lanes,(n&e.childLanes)===0)return null;if(t!==null&&e.child!==t.child)throw Error(q(153));if(e.child!==null){for(t=e.child,n=Io(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Io(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function nB(t,e,n){switch(e.tag){case 3:PO(e),El();break;case 5:sO(e);break;case 1:Ln(e.type)&&ag(e);break;case 4:Ab(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;Ht(ug,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Ht(ne,ne.current&1),e.flags|=128,null):(n&e.child.childLanes)!==0?OO(t,e,n):(Ht(ne,ne.current&1),t=Ii(t,e,n),t!==null?t.sibling:null);Ht(ne,ne.current&1);break;case 19:if(r=(n&e.childLanes)!==0,(t.flags&128)!==0){if(r)return RO(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ht(ne,ne.current),r)break;return null;case 22:case 23:return e.lanes=0,$O(t,e,n)}return Ii(t,e,n)}var LO,e_,DO,IO;LO=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};e_=function(){};DO=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,Ps(ni.current);var o=null;switch(n){case"input":i=Sy(t,i),r=Sy(t,r),o=[];break;case"select":i=ie({},i,{value:void 0}),r=ie({},r,{value:void 0}),o=[];break;case"textarea":i=ky(t,i),r=ky(t,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=og)}Ty(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ku.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ku.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&qt("scroll",t),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(e.updateQueue=c)&&(e.flags|=4)}};IO=function(t,e,n,r){n!==r&&(e.flags|=4)};function Ac(t,e){if(!Kt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Xe(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function rB(t,e,n){var r=e.pendingProps;switch(xb(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(e),null;case 1:return Ln(e.type)&&sg(),Xe(e),null;case 3:return r=e.stateNode,kl(),Xt(Rn),Xt(on),$b(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Ih(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Mr!==null&&(c_(Mr),Mr=null))),e_(t,e),Xe(e),null;case 5:Tb(e);var i=Ps(cd.current);if(n=e.type,t!==null&&e.stateNode!=null)DO(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(q(166));return Xe(e),null}if(t=Ps(ni.current),Ih(e)){r=e.stateNode,n=e.type;var o=e.memoizedProps;switch(r[qr]=e,r[ad]=o,t=(e.mode&1)!==0,n){case"dialog":qt("cancel",r),qt("close",r);break;case"iframe":case"object":case"embed":qt("load",r);break;case"video":case"audio":for(i=0;i<qc.length;i++)qt(qc[i],r);break;case"source":qt("error",r);break;case"img":case"image":case"link":qt("error",r),qt("load",r);break;case"details":qt("toggle",r);break;case"input":XS(r,o),qt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},qt("invalid",r);break;case"textarea":QS(r,o),qt("invalid",r)}Ty(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Dh(r.textContent,a,t),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Dh(r.textContent,a,t),i=["children",""+a]):Ku.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&qt("scroll",r)}switch(n){case"input":Ah(r),KS(r,o,!0);break;case"textarea":Ah(r),JS(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=og)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=cP(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[qr]=e,t[ad]=r,LO(t,e,!1,!1),e.stateNode=t;t:{switch(s=$y(n,r),n){case"dialog":qt("cancel",t),qt("close",t),i=r;break;case"iframe":case"object":case"embed":qt("load",t),i=r;break;case"video":case"audio":for(i=0;i<qc.length;i++)qt(qc[i],t);i=r;break;case"source":qt("error",t),i=r;break;case"img":case"image":case"link":qt("error",t),qt("load",t),i=r;break;case"details":qt("toggle",t),i=r;break;case"input":XS(t,r),i=Sy(t,r),qt("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=ie({},r,{value:void 0}),qt("invalid",t);break;case"textarea":QS(t,r),i=ky(t,r),qt("invalid",t);break;default:i=r}Ty(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?hP(t,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&uP(t,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Qu(t,l):typeof l=="number"&&Qu(t,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ku.hasOwnProperty(o)?l!=null&&o==="onScroll"&&qt("scroll",t):l!=null&&ob(t,o,l,s))}switch(n){case"input":Ah(t),KS(t,r,!1);break;case"textarea":Ah(t),JS(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Wo(r.value));break;case"select":t.multiple=!!r.multiple,o=r.value,o!=null?ol(t,!!r.multiple,o,!1):r.defaultValue!=null&&ol(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=og)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break t;case"img":r=!0;break t;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Xe(e),null;case 6:if(t&&e.stateNode!=null)IO(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(q(166));if(n=Ps(cd.current),Ps(ni.current),Ih(e)){if(r=e.stateNode,n=e.memoizedProps,r[qr]=e,(o=r.nodeValue!==n)&&(t=Gn,t!==null))switch(t.tag){case 3:Dh(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Dh(r.nodeValue,n,(t.mode&1)!==0)}o&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[qr]=e,e.stateNode=r}return Xe(e),null;case 13:if(Xt(ne),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Kt&&Wn!==null&&(e.mode&1)!==0&&(e.flags&128)===0)JP(),El(),e.flags|=98560,o=!1;else if(o=Ih(e),r!==null&&r.dehydrated!==null){if(t===null){if(!o)throw Error(q(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(q(317));o[qr]=e}else El(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Xe(e),o=!1}else Mr!==null&&(c_(Mr),Mr=null),o=!0;if(!o)return e.flags&65536?e:null}return(e.flags&128)!==0?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,(e.mode&1)!==0&&(t===null||(ne.current&1)!==0?Ae===0&&(Ae=3):jb())),e.updateQueue!==null&&(e.flags|=4),Xe(e),null);case 4:return kl(),e_(t,e),t===null&&od(e.stateNode.containerInfo),Xe(e),null;case 10:return Eb(e.type._context),Xe(e),null;case 17:return Ln(e.type)&&sg(),Xe(e),null;case 19:if(Xt(ne),o=e.memoizedState,o===null)return Xe(e),null;if(r=(e.flags&128)!==0,s=o.rendering,s===null)if(r)Ac(o,!1);else{if(Ae!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=fg(t),s!==null){for(e.flags|=128,Ac(o,!1),r=s.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)o=n,t=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,t=s.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Ht(ne,ne.current&1|2),e.child}t=t.sibling}o.tail!==null&&me()>Tl&&(e.flags|=128,r=!0,Ac(o,!1),e.lanes=4194304)}else{if(!r)if(t=fg(s),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ac(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Kt)return Xe(e),null}else 2*me()-o.renderingStartTime>Tl&&n!==1073741824&&(e.flags|=128,r=!0,Ac(o,!1),e.lanes=4194304);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=me(),e.sibling=null,n=ne.current,Ht(ne,r?n&1|2:n&1),e):(Xe(e),null);case 22:case 23:return Bb(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&(e.mode&1)!==0?(Un&1073741824)!==0&&(Xe(e),e.subtreeFlags&6&&(e.flags|=8192)):Xe(e),null;case 24:return null;case 25:return null}throw Error(q(156,e.tag))}function iB(t,e){switch(xb(e),e.tag){case 1:return Ln(e.type)&&sg(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return kl(),Xt(Rn),Xt(on),$b(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 5:return Tb(e),null;case 13:if(Xt(ne),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(q(340));El()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Xt(ne),null;case 4:return kl(),null;case 10:return Eb(e.type._context),null;case 22:case 23:return Bb(),null;case 24:return null;default:return null}}var zh=!1,tn=!1,oB=typeof WeakSet=="function"?WeakSet:Set,J=null;function Wa(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){se(t,e,r)}else n.current=null}function n_(t,e,n){try{n()}catch(r){se(t,e,r)}}var VE=!1;function sB(t,e){if(zy=ng,t=BP(),yb(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(b){n=null;break t}var s=0,a=-1,l=-1,c=0,u=0,d=t,h=null;e:for(;;){for(var f;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===t)break e;if(h===n&&++c===i&&(a=s),h===o&&++u===r&&(l=s),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(By={focusedElem:t,selectionRange:n},ng=!1,J=e;J!==null;)if(e=J,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,J=t;else for(;J!==null;){e=J;try{var p=e.alternate;if((e.flags&1024)!==0)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,y=p.memoizedState,v=e.stateNode,_=v.getSnapshotBeforeUpdate(e.elementType===e.type?g:kr(e.type,g),y);v.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var x=e.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(b){se(e,e.return,b)}if(t=e.sibling,t!==null){t.return=e.return,J=t;break}J=e.return}return p=VE,VE=!1,p}function uu(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,o!==void 0&&n_(e,n,o)}i=i.next}while(i!==r)}}function qm(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function r_(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function NO(t){var e=t.alternate;e!==null&&(t.alternate=null,NO(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[qr],delete e[ad],delete e[Hy],delete e[Vz],delete e[Hz])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function FO(t){return t.tag===5||t.tag===3||t.tag===4}function HE(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||FO(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function i_(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=og));else if(r!==4&&(t=t.child,t!==null))for(i_(t,e,n),t=t.sibling;t!==null;)i_(t,e,n),t=t.sibling}function o_(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(o_(t,e,n),t=t.sibling;t!==null;)o_(t,e,n),t=t.sibling}var je=null,Tr=!1;function Xi(t,e,n){for(n=n.child;n!==null;)zO(t,e,n),n=n.sibling}function zO(t,e,n){if(ei&&typeof ei.onCommitFiberUnmount=="function")try{ei.onCommitFiberUnmount(Bm,n)}catch(a){}switch(n.tag){case 5:tn||Wa(n,e);case 6:var r=je,i=Tr;je=null,Xi(t,e,n),je=r,Tr=i,je!==null&&(Tr?(t=je,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Tr?(t=je,n=n.stateNode,t.nodeType===8?Rv(t.parentNode,n):t.nodeType===1&&Rv(t,n),nd(t)):Rv(je,n.stateNode));break;case 4:r=je,i=Tr,je=n.stateNode.containerInfo,Tr=!0,Xi(t,e,n),je=r,Tr=i;break;case 0:case 11:case 14:case 15:if(!tn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&n_(n,e,s),i=i.next}while(i!==r)}Xi(t,e,n);break;case 1:if(!tn&&(Wa(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){se(n,e,a)}Xi(t,e,n);break;case 21:Xi(t,e,n);break;case 22:n.mode&1?(tn=(r=tn)||n.memoizedState!==null,Xi(t,e,n),tn=r):Xi(t,e,n);break;default:Xi(t,e,n)}}function UE(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new oB),e.forEach(function(r){var i=gB.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function wr(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=t,s=e,a=s;t:for(;a!==null;){switch(a.tag){case 5:je=a.stateNode,Tr=!1;break t;case 3:je=a.stateNode.containerInfo,Tr=!0;break t;case 4:je=a.stateNode.containerInfo,Tr=!0;break t}a=a.return}if(je===null)throw Error(q(160));zO(o,s,i),je=null,Tr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){se(i,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)BO(e,t),e=e.sibling}function BO(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(wr(e,t),Fr(t),r&4){try{uu(3,t,t.return),qm(3,t)}catch(g){se(t,t.return,g)}try{uu(5,t,t.return)}catch(g){se(t,t.return,g)}}break;case 1:wr(e,t),Fr(t),r&512&&n!==null&&Wa(n,n.return);break;case 5:if(wr(e,t),Fr(t),r&512&&n!==null&&Wa(n,n.return),t.flags&32){var i=t.stateNode;try{Qu(i,"")}catch(g){se(t,t.return,g)}}if(r&4&&(i=t.stateNode,i!=null)){var o=t.memoizedProps,s=n!==null?n.memoizedProps:o,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&aP(i,o),$y(a,s);var c=$y(a,o);for(s=0;s<l.length;s+=2){var u=l[s],d=l[s+1];u==="style"?hP(i,d):u==="dangerouslySetInnerHTML"?uP(i,d):u==="children"?Qu(i,d):ob(i,u,d,c)}switch(a){case"input":Ey(i,o);break;case"textarea":lP(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?ol(i,!!o.multiple,f,!1):h!==!!o.multiple&&(o.defaultValue!=null?ol(i,!!o.multiple,o.defaultValue,!0):ol(i,!!o.multiple,o.multiple?[]:"",!1))}i[ad]=o}catch(g){se(t,t.return,g)}}break;case 6:if(wr(e,t),Fr(t),r&4){if(t.stateNode===null)throw Error(q(162));i=t.stateNode,o=t.memoizedProps;try{i.nodeValue=o}catch(g){se(t,t.return,g)}}break;case 3:if(wr(e,t),Fr(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{nd(e.containerInfo)}catch(g){se(t,t.return,g)}break;case 4:wr(e,t),Fr(t);break;case 13:wr(e,t),Fr(t),i=t.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Fb=me())),r&4&&UE(t);break;case 22:if(u=n!==null&&n.memoizedState!==null,t.mode&1?(tn=(c=tn)||u,wr(e,t),tn=c):wr(e,t),Fr(t),r&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!u&&(t.mode&1)!==0)for(J=t,u=t.child;u!==null;){for(d=J=u;J!==null;){switch(h=J,f=h.child,h.tag){case 0:case 11:case 14:case 15:uu(4,h,h.return);break;case 1:Wa(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){r=h,n=h.return;try{e=r,p.props=e.memoizedProps,p.state=e.memoizedState,p.componentWillUnmount()}catch(g){se(r,n,g)}}break;case 5:Wa(h,h.return);break;case 22:if(h.memoizedState!==null){YE(d);continue}}f!==null?(f.return=h,J=f):YE(d)}u=u.sibling}t:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=dP("display",s))}catch(g){se(t,t.return,g)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){se(t,t.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break t;for(;d.sibling===null;){if(d.return===null||d.return===t)break t;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:wr(e,t),Fr(t),r&4&&UE(t);break;case 21:break;default:wr(e,t),Fr(t)}}function Fr(t){var e=t.flags;if(e&2){try{t:{for(var n=t.return;n!==null;){if(FO(n)){var r=n;break t}n=n.return}throw Error(q(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Qu(i,""),r.flags&=-33);var o=HE(t);o_(t,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=HE(t);i_(t,a,s);break;default:throw Error(q(161))}}catch(l){se(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function aB(t,e,n){J=t,jO(t)}function jO(t,e,n){for(var r=(t.mode&1)!==0;J!==null;){var i=J,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||zh;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||tn;a=zh;var c=tn;if(zh=s,(tn=l)&&!c)for(J=i;J!==null;)s=J,l=s.child,s.tag===22&&s.memoizedState!==null?GE(i):l!==null?(l.return=s,J=l):GE(i);for(;o!==null;)J=o,jO(o),o=o.sibling;J=i,zh=a,tn=c}WE(t)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,J=o):WE(t)}}function WE(t){for(;J!==null;){var e=J;if((e.flags&8772)!==0){var n=e.alternate;try{if((e.flags&8772)!==0)switch(e.tag){case 0:case 11:case 15:tn||qm(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!tn)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:kr(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&TE(e,o,r);break;case 3:var s=e.updateQueue;if(s!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}TE(e,s,n)}break;case 5:var a=e.stateNode;if(n===null&&e.flags&4){n=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&nd(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(q(163))}tn||e.flags&512&&r_(e)}catch(h){se(e,e.return,h)}}if(e===t){J=null;break}if(n=e.sibling,n!==null){n.return=e.return,J=n;break}J=e.return}}function YE(t){for(;J!==null;){var e=J;if(e===t){J=null;break}var n=e.sibling;if(n!==null){n.return=e.return,J=n;break}J=e.return}}function GE(t){for(;J!==null;){var e=J;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{qm(4,e)}catch(l){se(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(l){se(e,i,l)}}var o=e.return;try{r_(e)}catch(l){se(e,o,l)}break;case 5:var s=e.return;try{r_(e)}catch(l){se(e,s,l)}}}catch(l){se(e,e.return,l)}if(e===t){J=null;break}var a=e.sibling;if(a!==null){a.return=e.return,J=a;break}J=e.return}}var lB=Math.ceil,mg=Gi.ReactCurrentDispatcher,Ib=Gi.ReactCurrentOwner,fr=Gi.ReactCurrentBatchConfig,pt=0,ze=null,Se=null,Ye=0,Un=0,Ya=rs(0),Ae=0,fd=null,Js=0,Zm=0,Nb=0,du=null,wn=null,Fb=0,Tl=1/0,yi=null,vg=!1,s_=null,Lo=null,Bh=!1,yo=null,yg=0,hu=0,a_=null,dp=-1,hp=0;function gn(){return(pt&6)!==0?me():dp!==-1?dp:dp=me()}function Do(t){return(t.mode&1)===0?1:(pt&2)!==0&&Ye!==0?Ye&-Ye:Wz.transition!==null?(hp===0&&(hp=EP()),hp):(t=At,t!==0||(t=window.event,t=t===void 0?16:PP(t.type)),t)}function Or(t,e,n,r){if(50<hu)throw hu=0,a_=null,Error(q(185));Yd(t,n,r),((pt&2)===0||t!==ze)&&(t===ze&&((pt&2)===0&&(Zm|=n),Ae===4&&go(t,Ye)),Dn(t,r),n===1&&pt===0&&(e.mode&1)===0&&(Tl=me()+500,Wm&&is()))}function Dn(t,e){var n=t.callbackNode;W7(t,e);var r=eg(t,t===ze?Ye:0);if(r===0)n!==null&&nE(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&nE(n),e===1)t.tag===0?Uz(qE.bind(null,t)):XP(qE.bind(null,t)),Bz(function(){(pt&6)===0&&is()}),n=null;else{switch(CP(r)){case 1:n=ub;break;case 4:n=wP;break;case 16:n=tg;break;case 536870912:n=SP;break;default:n=tg}n=ZO(n,VO.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function VO(t,e){if(dp=-1,hp=0,(pt&6)!==0)throw Error(q(327));var n=t.callbackNode;if(ul()&&t.callbackNode!==n)return null;var r=eg(t,t===ze?Ye:0);if(r===0)return null;if((r&30)!==0||(r&t.expiredLanes)!==0||e)e=_g(t,r);else{e=r;var i=pt;pt|=2;var o=UO();(ze!==t||Ye!==e)&&(yi=null,Tl=me()+500,Bs(t,e));do try{dB();break}catch(a){HO(t,a)}while(1);Sb(),mg.current=o,pt=i,Se!==null?e=0:(ze=null,Ye=0,e=Ae)}if(e!==0){if(e===2&&(i=Ly(t),i!==0&&(r=i,e=l_(t,i))),e===1)throw n=fd,Bs(t,0),go(t,r),Dn(t,me()),n;if(e===6)go(t,r);else{if(i=t.current.alternate,(r&30)===0&&!cB(i)&&(e=_g(t,r),e===2&&(o=Ly(t),o!==0&&(r=o,e=l_(t,o))),e===1))throw n=fd,Bs(t,0),go(t,r),Dn(t,me()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(q(345));case 2:Es(t,wn,yi);break;case 3:if(go(t,r),(r&130023424)===r&&(e=Fb+500-me(),10<e)){if(eg(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){gn(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Vy(Es.bind(null,t,wn,yi),e);break}Es(t,wn,yi);break;case 4:if(go(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var s=31-Pr(r);o=1<<s,s=e[s],s>i&&(i=s),r&=~o}if(r=i,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lB(r/1960))-r,10<r){t.timeoutHandle=Vy(Es.bind(null,t,wn,yi),r);break}Es(t,wn,yi);break;case 5:Es(t,wn,yi);break;default:throw Error(q(329))}}}return Dn(t,me()),t.callbackNode===n?VO.bind(null,t):null}function l_(t,e){var n=du;return t.current.memoizedState.isDehydrated&&(Bs(t,e).flags|=256),t=_g(t,e),t!==2&&(e=wn,wn=n,e!==null&&c_(e)),t}function c_(t){wn===null?wn=t:wn.push.apply(wn,t)}function cB(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Ir(o(),i))return!1}catch(s){return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function go(t,e){for(e&=~Nb,e&=~Zm,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Pr(e),r=1<<n;t[n]=-1,e&=~r}}function qE(t){if((pt&6)!==0)throw Error(q(327));ul();var e=eg(t,0);if((e&1)===0)return Dn(t,me()),null;var n=_g(t,e);if(t.tag!==0&&n===2){var r=Ly(t);r!==0&&(e=r,n=l_(t,r))}if(n===1)throw n=fd,Bs(t,0),go(t,e),Dn(t,me()),n;if(n===6)throw Error(q(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Es(t,wn,yi),Dn(t,me()),null}function zb(t,e){var n=pt;pt|=1;try{return t(e)}finally{pt=n,pt===0&&(Tl=me()+500,Wm&&is())}}function ta(t){yo!==null&&yo.tag===0&&(pt&6)===0&&ul();var e=pt;pt|=1;var n=fr.transition,r=At;try{if(fr.transition=null,At=1,t)return t()}finally{At=r,fr.transition=n,pt=e,(pt&6)===0&&is()}}function Bb(){Un=Ya.current,Xt(Ya)}function Bs(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,zz(n)),Se!==null)for(n=Se.return;n!==null;){var r=n;switch(xb(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&sg();break;case 3:kl(),Xt(Rn),Xt(on),$b();break;case 5:Tb(r);break;case 4:kl();break;case 13:Xt(ne);break;case 19:Xt(ne);break;case 10:Eb(r.type._context);break;case 22:case 23:Bb()}n=n.return}if(ze=t,Se=t=Io(t.current,null),Ye=Un=e,Ae=0,fd=null,Nb=Zm=Js=0,wn=du=null,Ms!==null){for(e=0;e<Ms.length;e++)if(n=Ms[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Ms=null}return t}function HO(t,e){do{var n=Se;try{if(Sb(),lp.current=gg,pg){for(var r=re.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}pg=!1}if(Qs=0,Re=ke=re=null,cu=!1,ud=0,Ib.current=null,n===null||n.return===null){Ae=1,fd=e,Se=null;break}t:{var o=t,s=n.return,a=n,l=e;if(e=Ye,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if((u.mode&1)===0&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=DE(s);if(f!==null){f.flags&=-257,IE(f,s,a,o,e),f.mode&1&&LE(o,c,e),e=f,l=c;var p=e.updateQueue;if(p===null){var g=new Set;g.add(l),e.updateQueue=g}else p.add(l);break t}else{if((e&1)===0){LE(o,c,e),jb();break t}l=Error(q(426))}}else if(Kt&&a.mode&1){var y=DE(s);if(y!==null){(y.flags&65536)===0&&(y.flags|=256),IE(y,s,a,o,e),bb(Al(l,a));break t}}o=l=Al(l,a),Ae!==4&&(Ae=2),du===null?du=[o]:du.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var v=kO(o,l,e);AE(o,v);break t;case 1:a=l;var _=o.type,x=o.stateNode;if((o.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Lo===null||!Lo.has(x)))){o.flags|=65536,e&=-e,o.lanes|=e;var b=AO(o,a,e);AE(o,b);break t}}o=o.return}while(o!==null)}YO(n)}catch(w){e=w,Se===n&&n!==null&&(Se=n=n.return);continue}break}while(1)}function UO(){var t=mg.current;return mg.current=gg,t===null?gg:t}function jb(){(Ae===0||Ae===3||Ae===2)&&(Ae=4),ze===null||(Js&268435455)===0&&(Zm&268435455)===0||go(ze,Ye)}function _g(t,e){var n=pt;pt|=2;var r=UO();(ze!==t||Ye!==e)&&(yi=null,Bs(t,e));do try{uB();break}catch(i){HO(t,i)}while(1);if(Sb(),pt=n,mg.current=r,Se!==null)throw Error(q(261));return ze=null,Ye=0,Ae}function uB(){for(;Se!==null;)WO(Se)}function dB(){for(;Se!==null&&!I7();)WO(Se)}function WO(t){var e=qO(t.alternate,t,Un);t.memoizedProps=t.pendingProps,e===null?YO(t):Se=e,Ib.current=null}function YO(t){var e=t;do{var n=e.alternate;if(t=e.return,(e.flags&32768)===0){if(n=rB(n,e,Un),n!==null){Se=n;return}}else{if(n=iB(n,e),n!==null){n.flags&=32767,Se=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ae=6,Se=null;return}}if(e=e.sibling,e!==null){Se=e;return}Se=e=t}while(e!==null);Ae===0&&(Ae=5)}function Es(t,e,n){var r=At,i=fr.transition;try{fr.transition=null,At=1,hB(t,e,n,r)}finally{fr.transition=i,At=r}return null}function hB(t,e,n,r){do ul();while(yo!==null);if((pt&6)!==0)throw Error(q(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(q(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if(Y7(t,o),t===ze&&(Se=ze=null,Ye=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Bh||(Bh=!0,ZO(tg,function(){return ul(),null})),o=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||o){o=fr.transition,fr.transition=null;var s=At;At=1;var a=pt;pt|=4,Ib.current=null,sB(t,n),BO(n,t),Oz(By),ng=!!zy,By=zy=null,t.current=n,aB(n),N7(),pt=a,At=s,fr.transition=o}else t.current=n;if(Bh&&(Bh=!1,yo=t,yg=i),o=t.pendingLanes,o===0&&(Lo=null),B7(n.stateNode),Dn(t,me()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(vg)throw vg=!1,t=s_,s_=null,t;return(yg&1)!==0&&t.tag!==0&&ul(),o=t.pendingLanes,(o&1)!==0?t===a_?hu++:(hu=0,a_=t):hu=0,is(),null}function ul(){if(yo!==null){var t=CP(yg),e=fr.transition,n=At;try{if(fr.transition=null,At=16>t?16:t,yo===null)var r=!1;else{if(t=yo,yo=null,yg=0,(pt&6)!==0)throw Error(q(331));var i=pt;for(pt|=4,J=t.current;J!==null;){var o=J,s=o.child;if((J.flags&16)!==0){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(J=c;J!==null;){var u=J;switch(u.tag){case 0:case 11:case 15:uu(8,u,o)}var d=u.child;if(d!==null)d.return=u,J=d;else for(;J!==null;){u=J;var h=u.sibling,f=u.return;if(NO(u),u===c){J=null;break}if(h!==null){h.return=f,J=h;break}J=f}}}var p=o.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(g!==null)}}J=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,J=s;else t:for(;J!==null;){if(o=J,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:uu(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,J=v;break t}J=o.return}}var _=t.current;for(J=_;J!==null;){s=J;var x=s.child;if((s.subtreeFlags&2064)!==0&&x!==null)x.return=s,J=x;else t:for(s=_;J!==null;){if(a=J,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:qm(9,a)}}catch(w){se(a,a.return,w)}if(a===s){J=null;break t}var b=a.sibling;if(b!==null){b.return=a.return,J=b;break t}J=a.return}}if(pt=i,is(),ei&&typeof ei.onPostCommitFiberRoot=="function")try{ei.onPostCommitFiberRoot(Bm,t)}catch(w){}r=!0}return r}finally{At=n,fr.transition=e}}return!1}function ZE(t,e,n){e=Al(n,e),e=kO(t,e,1),t=Ro(t,e,1),e=gn(),t!==null&&(Yd(t,1,e),Dn(t,e))}function se(t,e,n){if(t.tag===3)ZE(t,t,n);else for(;e!==null;){if(e.tag===3){ZE(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Lo===null||!Lo.has(r))){t=Al(n,t),t=AO(e,t,1),e=Ro(e,t,1),t=gn(),e!==null&&(Yd(e,1,t),Dn(e,t));break}}e=e.return}}function fB(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=gn(),t.pingedLanes|=t.suspendedLanes&n,ze===t&&(Ye&n)===n&&(Ae===4||Ae===3&&(Ye&130023424)===Ye&&500>me()-Fb?Bs(t,0):Nb|=n),Dn(t,e)}function GO(t,e){e===0&&((t.mode&1)===0?e=1:(e=Mh,Mh<<=1,(Mh&130023424)===0&&(Mh=4194304)));var n=gn();t=Di(t,e),t!==null&&(Yd(t,e,n),Dn(t,n))}function pB(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),GO(t,n)}function gB(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(q(314))}r!==null&&r.delete(e),GO(t,n)}var qO;qO=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Rn.current)kn=!0;else{if((t.lanes&n)===0&&(e.flags&128)===0)return kn=!1,nB(t,e,n);kn=(t.flags&131072)!==0}else kn=!1,Kt&&(e.flags&1048576)!==0&&KP(e,cg,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;up(t,e),t=e.pendingProps;var i=Sl(e,on.current);cl(e,n),i=Pb(null,e,r,t,i,n);var o=Ob();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ln(r)?(o=!0,ag(e)):o=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kb(e),i.updater=Ym,e.stateNode=i,i._reactInternals=e,Zy(e,r,t,n),e=Qy(null,e,r,!0,o,n)):(e.tag=0,Kt&&o&&_b(e),dn(null,e,i,n),e=e.child),e;case 16:r=e.elementType;t:{switch(up(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=vB(r),t=kr(r,t),i){case 0:e=Ky(null,e,r,t,n);break t;case 1:e=zE(null,e,r,t,n);break t;case 11:e=NE(null,e,r,t,n);break t;case 14:e=FE(null,e,r,kr(r.type,t),n);break t}throw Error(q(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:kr(r,i),Ky(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:kr(r,i),zE(t,e,r,i,n);case 3:t:{if(PO(e),t===null)throw Error(q(387));r=e.pendingProps,o=e.memoizedState,i=o.element,eO(t,e),hg(e,r,null,n);var s=e.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){i=Al(Error(q(423)),e),e=BE(t,e,r,n,i);break t}else if(r!==i){i=Al(Error(q(424)),e),e=BE(t,e,r,n,i);break t}else for(Wn=Oo(e.stateNode.containerInfo.firstChild),Gn=e,Kt=!0,Mr=null,n=oO(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(El(),r===i){e=Ii(t,e,n);break t}dn(t,e,r,n)}e=e.child}return e;case 5:return sO(e),t===null&&Yy(e),r=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,s=i.children,jy(r,i)?s=null:o!==null&&jy(r,o)&&(e.flags|=32),MO(t,e),dn(t,e,s,n),e.child;case 6:return t===null&&Yy(e),null;case 13:return OO(t,e,n);case 4:return Ab(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Cl(e,null,r,n):dn(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:kr(r,i),NE(t,e,r,i,n);case 7:return dn(t,e,e.pendingProps,n),e.child;case 8:return dn(t,e,e.pendingProps.children,n),e.child;case 12:return dn(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(r=e.type._context,i=e.pendingProps,o=e.memoizedProps,s=i.value,Ht(ug,r._currentValue),r._currentValue=s,o!==null)if(Ir(o.value,s)){if(o.children===i.children&&!Rn.current){e=Ii(t,e,n);break t}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Ti(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Gy(o.return,n,e),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===e.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Gy(s,n,e),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===e){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}dn(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,cl(e,n),i=gr(i),r=r(i),e.flags|=1,dn(t,e,r,n),e.child;case 14:return r=e.type,i=kr(r,e.pendingProps),i=kr(r.type,i),FE(t,e,r,i,n);case 15:return TO(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:kr(r,i),up(t,e),e.tag=1,Ln(r)?(t=!0,ag(e)):t=!1,cl(e,n),rO(e,r,i),Zy(e,r,i,n),Qy(null,e,r,!0,t,n);case 19:return RO(t,e,n);case 22:return $O(t,e,n)}throw Error(q(156,e.tag))};function ZO(t,e){return bP(t,e)}function mB(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lr(t,e,n,r){return new mB(t,e,n,r)}function Vb(t){return t=t.prototype,!(!t||!t.isReactComponent)}function vB(t){if(typeof t=="function")return Vb(t)?1:0;if(t!=null){if(t=t.$$typeof,t===ab)return 11;if(t===lb)return 14}return 2}function Io(t,e){var n=t.alternate;return n===null?(n=lr(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function fp(t,e,n,r,i,o){var s=2;if(r=t,typeof t=="function")Vb(t)&&(s=1);else if(typeof t=="string")s=5;else t:switch(t){case Ia:return js(n.children,i,o,e);case sb:s=8,i|=8;break;case _y:return t=lr(12,n,e,i|2),t.elementType=_y,t.lanes=o,t;case xy:return t=lr(13,n,e,i),t.elementType=xy,t.lanes=o,t;case by:return t=lr(19,n,e,i),t.elementType=by,t.lanes=o,t;case iP:return Xm(n,i,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case nP:s=10;break t;case rP:s=9;break t;case ab:s=11;break t;case lb:s=14;break t;case lo:s=16,r=null;break t}throw Error(q(130,t==null?t:typeof t,""))}return e=lr(s,n,e,i),e.elementType=t,e.type=r,e.lanes=o,e}function js(t,e,n,r){return t=lr(7,t,r,e),t.lanes=n,t}function Xm(t,e,n,r){return t=lr(22,t,r,e),t.elementType=iP,t.lanes=n,t.stateNode={isHidden:!1},t}function jv(t,e,n){return t=lr(6,t,null,e),t.lanes=n,t}function Vv(t,e,n){return e=lr(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function yB(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wv(0),this.expirationTimes=wv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wv(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Hb(t,e,n,r,i,o,s,a,l){return t=new yB(t,e,n,a,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=lr(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kb(o),t}function _B(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Da,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function XO(t){if(!t)return Yo;t=t._reactInternals;t:{if(ua(t)!==t||t.tag!==1)throw Error(q(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Ln(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(e!==null);throw Error(q(171))}if(t.tag===1){var n=t.type;if(Ln(n))return ZP(t,n,e)}return e}function KO(t,e,n,r,i,o,s,a,l){return t=Hb(n,r,!0,t,i,o,s,a,l),t.context=XO(null),n=t.current,r=gn(),i=Do(n),o=Ti(r,i),o.callback=e!=null?e:null,Ro(n,o,i),t.current.lanes=i,Yd(t,i,r),Dn(t,r),t}function Km(t,e,n,r){var i=e.current,o=gn(),s=Do(i);return n=XO(n),e.context===null?e.context=n:e.pendingContext=n,e=Ti(o,s),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Ro(i,e,s),t!==null&&(Or(t,i,s,o),ap(t,i,s)),s}function xg(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function XE(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ub(t,e){XE(t,e),(t=t.alternate)&&XE(t,e)}function xB(){return null}var QO=typeof reportError=="function"?reportError:function(t){console.error(t)};function Wb(t){this._internalRoot=t}Qm.prototype.render=Wb.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(q(409));Km(t,e,null,null)};Qm.prototype.unmount=Wb.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;ta(function(){Km(null,t,null,null)}),e[Li]=null}};function Qm(t){this._internalRoot=t}Qm.prototype.unstable_scheduleHydration=function(t){if(t){var e=TP();t={blockedOn:null,target:t,priority:e};for(var n=0;n<po.length&&e!==0&&e<po[n].priority;n++);po.splice(n,0,t),n===0&&MP(t)}};function Yb(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Jm(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function KE(){}function bB(t,e,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=xg(s);o.call(c)}}var s=KO(e,r,t,0,null,!1,!1,"",KE);return t._reactRootContainer=s,t[Li]=s.current,od(t.nodeType===8?t.parentNode:t),ta(),s}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=xg(l);a.call(c)}}var l=Hb(t,0,!1,null,null,!1,!1,"",KE);return t._reactRootContainer=l,t[Li]=l.current,od(t.nodeType===8?t.parentNode:t),ta(function(){Km(e,l,n,r)}),l}function t0(t,e,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=xg(s);a.call(l)}}Km(e,s,t,i)}else s=bB(n,e,t,i,r);return xg(s)}kP=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Gc(e.pendingLanes);n!==0&&(db(e,n|1),Dn(e,me()),(pt&6)===0&&(Tl=me()+500,is()))}break;case 13:ta(function(){var r=Di(t,1);if(r!==null){var i=gn();Or(r,t,1,i)}}),Ub(t,1)}};hb=function(t){if(t.tag===13){var e=Di(t,134217728);if(e!==null){var n=gn();Or(e,t,134217728,n)}Ub(t,134217728)}};AP=function(t){if(t.tag===13){var e=Do(t),n=Di(t,e);if(n!==null){var r=gn();Or(n,t,e,r)}Ub(t,e)}};TP=function(){return At};$P=function(t,e){var n=At;try{return At=t,e()}finally{At=n}};Py=function(t,e,n){switch(e){case"input":if(Ey(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Um(r);if(!i)throw Error(q(90));sP(r),Ey(r,i)}}}break;case"textarea":lP(t,n);break;case"select":e=n.value,e!=null&&ol(t,!!n.multiple,e,!1)}};gP=zb;mP=ta;var wB={usingClientEntryPoint:!1,Events:[qd,Ba,Um,fP,pP,zb]},Tc={findFiberByHostInstance:$s,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},SB={bundleType:Tc.bundleType,version:Tc.version,rendererPackageName:Tc.rendererPackageName,rendererConfig:Tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Gi.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=_P(t),t===null?null:t.stateNode},findFiberByHostInstance:Tc.findFiberByHostInstance||xB,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jh.isDisabled&&jh.supportsFiber)try{Bm=jh.inject(SB),ei=jh}catch(t){}}Qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wB;Qn.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yb(e))throw Error(q(200));return _B(t,e,null,n)};Qn.createRoot=function(t,e){if(!Yb(t))throw Error(q(299));var n=!1,r="",i=QO;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Hb(t,1,!1,null,null,n,!1,r,i),t[Li]=e.current,od(t.nodeType===8?t.parentNode:t),new Wb(e)};Qn.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(q(188)):(t=Object.keys(t).join(","),Error(q(268,t)));return t=_P(e),t=t===null?null:t.stateNode,t};Qn.flushSync=function(t){return ta(t)};Qn.hydrate=function(t,e,n){if(!Jm(e))throw Error(q(200));return t0(null,t,e,!0,n)};Qn.hydrateRoot=function(t,e,n){if(!Yb(t))throw Error(q(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=QO;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),e=KO(e,null,t,1,n!=null?n:null,i,!1,o,s),t[Li]=e.current,od(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new Qm(e)};Qn.render=function(t,e,n){if(!Jm(e))throw Error(q(200));return t0(null,t,e,!1,n)};Qn.unmountComponentAtNode=function(t){if(!Jm(t))throw Error(q(40));return t._reactRootContainer?(ta(function(){t0(null,null,t,!1,function(){t._reactRootContainer=null,t[Li]=null})}),!0):!1};Qn.unstable_batchedUpdates=zb;Qn.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Jm(n))throw Error(q(200));if(t==null||t._reactInternals===void 0)throw Error(q(38));return t0(t,e,n,!1,r)};Qn.version="18.2.0-next-9e3b772b8-20220608";(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}e(),t.exports=Qn})(zn);const JO=UM(zn.exports);var QE=zn.exports;vy.createRoot=QE.createRoot,vy.hydrateRoot=QE.hydrateRoot;const tR=Object.prototype.toString;function eR(t){switch(tR.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return si(t,Error)}}function tc(t,e){return tR.call(t)===`[object ${e}]`}function nR(t){return tc(t,"ErrorEvent")}function JE(t){return tc(t,"DOMError")}function EB(t){return tc(t,"DOMException")}function Go(t){return tc(t,"String")}function rR(t){return t===null||typeof t!="object"&&typeof t!="function"}function $l(t){return tc(t,"Object")}function Gb(t){return typeof Event<"u"&&si(t,Event)}function CB(t){return typeof Element<"u"&&si(t,Element)}function kB(t){return tc(t,"RegExp")}function qb(t){return Boolean(t&&t.then&&typeof t.then=="function")}function AB(t){return $l(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function iR(t){return typeof t=="number"&&t!==t}function si(t,e){try{return t instanceof e}catch(n){return!1}}function Vh(t){return t&&t.Math==Math?t:void 0}const qn=typeof globalThis=="object"&&Vh(globalThis)||typeof window=="object"&&Vh(window)||typeof self=="object"&&Vh(self)||typeof global=="object"&&Vh(global)||function(){return this}()||{};function e0(){return qn}function Zb(t,e,n){const r=n||qn,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}const pp=e0(),TB=80;function Ml(t,e={}){try{let n=t;const r=5,i=[];let o=0,s=0;const a=" > ",l=a.length;let c;const u=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||TB;for(;n&&o++<r&&(c=$B(n,u),!(c==="html"||o>1&&s+i.length*l+c.length>=d));)i.push(c),s+=c.length,n=n.parentNode;return i.reverse().join(a)}catch(n){return"<unknown>"}}function $B(t,e){const n=t,r=[];let i,o,s,a,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=e&&e.length?e.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(c&&c.length)c.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Go(i))for(o=i.split(/\s+/),l=0;l<o.length;l++)r.push(`.${o[l]}`);const u=["type","name","title","alt"];for(l=0;l<u.length;l++)s=u[l],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`);return r.join("")}function MB(){try{return pp.document.location.href}catch(t){return""}}function PB(t){return pp.document&&pp.document.querySelector?pp.document.querySelector(t):null}class en extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const OB=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function RB(t){return t==="http"||t==="https"}function Xb(t,e=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=t;return`${a}://${l}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function LB(t){const e=OB.exec(t);if(!e)throw new en(`Invalid Sentry Dsn: ${t}`);const[n,r,i="",o,s="",a]=e.slice(1);let l="",c=a;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const d=c.match(/^\d+/);d&&(c=d[0])}return oR({host:o,pass:i,path:l,projectId:c,port:s,protocol:n,publicKey:r})}function oR(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function DB(t){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:e,projectId:n,protocol:r}=t;if(["protocol","publicKey","host","projectId"].forEach(o=>{if(!t[o])throw new en(`Invalid Sentry Dsn: ${o} missing`)}),!n.match(/^\d+$/))throw new en(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!RB(r))throw new en(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(e&&isNaN(parseInt(e,10)))throw new en(`Invalid Sentry Dsn: Invalid port ${e}`);return!0}function IB(t){const e=typeof t=="string"?LB(t):oR(t);return DB(e),e}const NB="Sentry Logger ",bg=["debug","info","warn","error","log","assert","trace"];function sR(t){if(!("console"in qn))return t();const e=qn.console,n={};bg.forEach(r=>{const i=e[r]&&e[r].__sentry_original__;r in e&&i&&(n[r]=e[r],e[r]=i)});try{return t()}finally{Object.keys(n).forEach(r=>{e[r]=n[r]})}}function tC(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?bg.forEach(n=>{e[n]=(...r)=>{t&&sR(()=>{qn.console[n](`${NB}[${n}]:`,...r)})}}):bg.forEach(n=>{e[n]=()=>{}}),e}let V;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?V=Zb("logger",tC):V=tC();function fu(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function eC(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const i=t[r];try{n.push(String(i))}catch(o){n.push("[value cannot be serialized]")}}return n.join(e)}function FB(t,e,n=!1){return Go(t)?kB(e)?e.test(t):Go(e)?n?t===e:t.includes(e):!1:!1}function n0(t,e=[],n=!1){return e.some(r=>FB(t,r,n))}function nn(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if(typeof i=="function")try{aR(i,r)}catch(o){}t[e]=i}function Kb(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function aR(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,Kb(t,"__sentry_original__",e)}function Qb(t){return t.__sentry_original__}function zB(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function lR(t){if(eR(t))return{message:t.message,name:t.name,stack:t.stack,...rC(t)};if(Gb(t)){const e={type:t.type,target:nC(t.target),currentTarget:nC(t.currentTarget),...rC(t)};return typeof CustomEvent<"u"&&si(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function nC(t){try{return CB(t)?Ml(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function rC(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function BB(t,e=40){const n=Object.keys(lR(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return fu(n[0],e);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:fu(i,e)}return""}function No(t){return u_(t,new Map)}function u_(t,e){if($l(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const i of Object.keys(t))typeof t[i]<"u"&&(r[i]=u_(t[i],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(i=>{r.push(u_(i,e))}),r}return t}const jB=50;function cR(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[];for(const o of n.split(`
33
- `).slice(r)){if(o.length>1024)continue;const s=o.replace(/\(error: (.*)\)/,"$1");for(const a of e){const l=a(s);if(l){i.push(l);break}}}return HB(i)}}function VB(t){return Array.isArray(t)?cR(...t):t}function HB(t){if(!t.length)return[];let e=t;const n=e[0].function||"",r=e[e.length-1].function||"";return(n.indexOf("captureMessage")!==-1||n.indexOf("captureException")!==-1)&&(e=e.slice(1)),r.indexOf("sentryWrapped")!==-1&&(e=e.slice(0,-1)),e.slice(0,jB).map(i=>({...i,filename:i.filename||e[0].filename,function:i.function||"?"})).reverse()}const Hv="<anonymous>";function qo(t){try{return!t||typeof t!="function"?Hv:t.name||Hv}catch(e){return Hv}}const Os=e0();function uR(){if(!("fetch"in Os))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function d_(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function UB(){if(!uR())return!1;if(d_(Os.fetch))return!0;let t=!1;const e=Os.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=d_(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function WB(){const t=Os.chrome,e=t&&t.app&&t.app.runtime,n="history"in Os&&!!Os.history.pushState&&!!Os.history.replaceState;return!e&&n}const Qt=e0(),pu={},iC={};function YB(t){if(!iC[t])switch(iC[t]=!0,t){case"console":GB();break;case"dom":nj();break;case"xhr":KB();break;case"fetch":qB();break;case"history":QB();break;case"error":rj();break;case"unhandledrejection":ij();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("unknown instrumentation type:",t);return}}function We(t,e){pu[t]=pu[t]||[],pu[t].push(e),YB(t)}function Rr(t,e){if(!(!t||!pu[t]))for(const n of pu[t]||[])try{n(e)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`Error while triggering instrumentation handler.
34
- Type: ${t}
35
- Name: ${qo(n)}
36
- Error:`,r)}}function GB(){"console"in Qt&&bg.forEach(function(t){t in Qt.console&&nn(Qt.console,t,function(e){return function(...n){Rr("console",{args:n,level:t}),e&&e.apply(Qt.console,n)}})})}function qB(){!UB()||nn(Qt,"fetch",function(t){return function(...e){const n={args:e,fetchData:{method:ZB(e),url:XB(e)},startTimestamp:Date.now()};return Rr("fetch",{...n}),t.apply(Qt,e).then(r=>(Rr("fetch",{...n,endTimestamp:Date.now(),response:r}),r),r=>{throw Rr("fetch",{...n,endTimestamp:Date.now(),error:r}),r})}})}function ZB(t=[]){return"Request"in Qt&&si(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function XB(t=[]){return typeof t[0]=="string"?t[0]:"Request"in Qt&&si(t[0],Request)?t[0].url:String(t[0])}function KB(){if(!("XMLHttpRequest"in Qt))return;const t=XMLHttpRequest.prototype;nn(t,"open",function(e){return function(...n){const r=this,i=n[1],o=r.__sentry_xhr__={method:Go(n[0])?n[0].toUpperCase():n[0],url:n[1]};Go(i)&&o.method==="POST"&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const s=function(){if(r.readyState===4){try{o.status_code=r.status}catch(a){}Rr("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?nn(r,"onreadystatechange",function(a){return function(...l){return s(),a.apply(r,l)}}):r.addEventListener("readystatechange",s),e.apply(r,n)}}),nn(t,"send",function(e){return function(...n){return this.__sentry_xhr__&&n[0]!==void 0&&(this.__sentry_xhr__.body=n[0]),Rr("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),e.apply(this,n)}})}let Hh;function QB(){if(!WB())return;const t=Qt.onpopstate;Qt.onpopstate=function(...n){const r=Qt.location.href,i=Hh;if(Hh=r,Rr("history",{from:i,to:r}),t)try{return t.apply(this,n)}catch(o){}};function e(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=Hh,s=String(i);Hh=s,Rr("history",{from:o,to:s})}return n.apply(this,r)}}nn(Qt.history,"pushState",e),nn(Qt.history,"replaceState",e)}const JB=1e3;let Uh,Wh;function tj(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1}function ej(t){if(t.type!=="keypress")return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch(e){}return!0}function oC(t,e=!1){return n=>{if(!n||Wh===n||ej(n))return;const r=n.type==="keypress"?"input":n.type;Uh===void 0?(t({event:n,name:r,global:e}),Wh=n):tj(Wh,n)&&(t({event:n,name:r,global:e}),Wh=n),clearTimeout(Uh),Uh=Qt.setTimeout(()=>{Uh=void 0},JB)}}function nj(){if(!("document"in Qt))return;const t=Rr.bind(null,"dom"),e=oC(t,!0);Qt.document.addEventListener("click",e,!1),Qt.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const r=Qt[n]&&Qt[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(nn(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},u=c[o]=c[o]||{refCount:0};if(!u.handler){const d=oC(t);u.handler=d,i.call(this,o,d,a)}u.refCount++}catch(l){}return i.call(this,o,s,a)}}),nn(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__||{},u=c[o];u&&(u.refCount--,u.refCount<=0&&(i.call(this,o,u.handler,a),u.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch(l){}return i.call(this,o,s,a)}}))})}let Uv=null;function rj(){Uv=Qt.onerror,Qt.onerror=function(t,e,n,r,i){return Rr("error",{column:r,error:i,line:n,msg:t,url:e}),Uv?Uv.apply(this,arguments):!1}}let Wv=null;function ij(){Wv=Qt.onunhandledrejection,Qt.onunhandledrejection=function(t){return Rr("unhandledrejection",t),Wv?Wv.apply(this,arguments):!0}}function oj(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(i){if(t)return e.has(i)?!0:(e.add(i),!1);for(let o=0;o<e.length;o++)if(e[o]===i)return!0;return e.push(i),!1}function r(i){if(t)e.delete(i);else for(let o=0;o<e.length;o++)if(e[o]===i){e.splice(o,1);break}}return[n,r]}function $i(){const t=qn,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");const n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function dR(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Rs(t){const{message:e,event_id:n}=t;if(e)return e;const r=dR(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function h_(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function pd(t,e){const n=dR(t);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...e},e&&"data"in e){const o={...i&&i.data,...e.data};n.mechanism.data=o}}function sC(t){if(t&&t.__sentry_captured__)return!0;try{Kb(t,"__sentry_captured__",!0)}catch(e){}return!1}function hR(t){return Array.isArray(t)?t:[t]}function sj(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function r0(){return!sj()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function _o(t,e){return t.require(e)}function aj(t){let e;try{e=_o(module,t)}catch(n){}try{const{cwd:n}=_o(module,"process");e=_o(module,`${n()}/node_modules/${t}`)}catch(n){}return e}function uo(t,e=1/0,n=1/0){try{return f_("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function fR(t,e=3,n=100*1024){const r=uo(t,e);return uj(r)>n?fR(t,e-1,n):r}function f_(t,e,n=1/0,r=1/0,i=oj()){const[o,s]=i;if(e===null||["number","boolean","string"].includes(typeof e)&&!iR(e))return e;const a=lj(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;if(n===0)return a.replace("object ","");if(o(e))return"[Circular ~]";const l=e;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return f_("",h,n-1,r,i)}catch(h){}const c=Array.isArray(e)?[]:{};let u=0;const d=lR(e);for(const h in d){if(!Object.prototype.hasOwnProperty.call(d,h))continue;if(u>=r){c[h]="[MaxProperties ~]";break}const f=d[h];c[h]=f_(h,f,n-1,r,i),u++}return s(e),c}function lj(t,e){try{return t==="domain"&&e&&typeof e=="object"&&e._events?"[Domain]":t==="domainEmitter"?"[DomainEmitter]":typeof global<"u"&&e===global?"[Global]":typeof window<"u"&&e===window?"[Window]":typeof document<"u"&&e===document?"[Document]":AB(e)?"[SyntheticEvent]":typeof e=="number"&&e!==e?"[NaN]":e===void 0?"[undefined]":typeof e=="function"?`[Function: ${qo(e)}]`:typeof e=="symbol"?`[${String(e)}]`:typeof e=="bigint"?`[BigInt: ${String(e)}]`:`[object ${Object.getPrototypeOf(e).constructor.name}]`}catch(n){return`**non-serializable** (${n})`}}function cj(t){return~-encodeURI(t).split(/%..|./).length}function uj(t){return cj(JSON.stringify(t))}var _i;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(_i||(_i={}));function ea(t){return new hn(e=>{e(t)})}function wg(t){return new hn((e,n)=>{n(t)})}class hn{__init(){this._state=_i.PENDING}__init2(){this._handlers=[]}constructor(e){hn.prototype.__init.call(this),hn.prototype.__init2.call(this),hn.prototype.__init3.call(this),hn.prototype.__init4.call(this),hn.prototype.__init5.call(this),hn.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new hn((r,i)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new hn((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,e&&e()},s=>{o=!0,i=s,e&&e()}).then(()=>{if(o){r(i);return}n(i)})})}__init3(){this._resolve=e=>{this._setResult(_i.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(_i.REJECTED,e)}}__init5(){this._setResult=(e,n)=>{if(this._state===_i.PENDING){if(qb(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===_i.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===_i.RESOLVED&&n[1](this._value),this._state===_i.REJECTED&&n[2](this._value),n[0]=!0)})}}}function dj(t){const e=[];function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]}function i(s){if(!n())return wg(new en("Not adding Promise because buffer limit was reached."));const a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new hn((a,l)=>{let c=e.length;if(!c)return a(!0);const u=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(d=>{ea(d).then(()=>{--c||(clearTimeout(u),a(!0))},l)})})}return{$:e,add:i,drain:o}}function Yv(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}const hj=["fatal","error","warning","log","info","debug"];function fj(t){return t==="warn"?"warning":hj.includes(t)?t:"log"}const pR=e0(),p_={nowSeconds:()=>Date.now()/1e3};function pj(){const{performance:t}=pR;if(!t||!t.now)return;const e=Date.now()-t.now();return{now:()=>t.now(),timeOrigin:e}}function gj(){try{return _o(module,"perf_hooks").performance}catch(t){return}}const Gv=r0()?gj():pj(),aC=Gv===void 0?p_:{nowSeconds:()=>(Gv.timeOrigin+Gv.now())/1e3},i0=p_.nowSeconds.bind(p_),o0=aC.nowSeconds.bind(aC),gd=o0,Pl=(()=>{const{performance:t}=pR;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=i<e,s=t.timing&&t.timing.navigationStart,l=typeof s=="number"?Math.abs(s+n-r):e,c=l<e;return o||c?i<=l?t.timeOrigin:s:r})(),mj=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function vj(t){const e=t.match(mj);if(!t||!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function Xd(t,e=[]){return[t,e]}function yj(t,e){const[n,r]=t;return[n,[...r,e]]}function lC(t,e){t[1].forEach(r=>{const i=r[0].type;e(r,i)})}function g_(t,e){return(e||new TextEncoder).encode(t)}function gR(t,e){const[n,r]=t;let i=JSON.stringify(n);function o(s){typeof i=="string"?i=typeof s=="string"?i+s:[g_(i,e),s]:i.push(typeof s=="string"?g_(s,e):s)}for(const s of r){const[a,l]=s;if(o(`
37
- ${JSON.stringify(a)}
38
- `),typeof l=="string"||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch(u){c=JSON.stringify(uo(l))}o(c)}}return typeof i=="string"?i:_j(i)}function _j(t){const e=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}function xj(t,e){const n=typeof t.data=="string"?g_(t.data,e):t.data;return[No({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const bj={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function cC(t){return bj[t]}function Jb(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function mR(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&{dsn:Xb(r)},...t.type==="transaction"&&i&&{trace:No({...i})}}}function wj(t,e,n){const r=[{type:"client_report"},{timestamp:n||i0(),discarded_events:t}];return Xd(e?{dsn:e}:{},[r])}const Sj=60*1e3;function Ej(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?Sj:r-e}function vR(t,e){return t[e]||t.all||0}function yR(t,e,n=Date.now()){return vR(t,e)>n}function _R(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[l,c]=a.split(":",2),u=parseInt(l,10),d=(isNaN(u)?60:u)*1e3;if(!c)i.all=r+d;else for(const h of c.split(";"))i[h]=r+d}else s?i.all=r+Ej(s,r):e===429&&(i.all=r+60*1e3);return i}const m_="baggage",xR="sentry-",Cj=/^sentry-/,kj=8192;function Aj(t){if(!Go(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((r,i)=>{const o=uC(i);return{...r,...o}},{});else{if(!t)return;e=uC(t)}const n=Object.entries(e).reduce((r,[i,o])=>{if(i.match(Cj)){const s=i.slice(xR.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function bR(t){const e=Object.entries(t).reduce((n,[r,i])=>(i&&(n[`${xR}${r}`]=i),n),{});return Tj(e)}function uC(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(e[n]=r,e),{})}function Tj(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],i)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?o:`${e},${o}`;return s.length>kj?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s},"")}function $j(t){const e=o0(),n={sid:$i(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Pj(n)};return t&&Ol(n,t),n}function Ol(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||o0(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:$i()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Mj(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),Ol(t,n)}function Pj(t){return No({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const Oj=100;class Fo{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const n=new Fo;return e&&(n._breadcrumbs=[...e._breadcrumbs],n._tags={...e._tags},n._extra={...e._extra},n._contexts={...e._contexts},n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=[...e._eventProcessors],n._requestSession=e._requestSession,n._attachments=[...e._attachments],n._sdkProcessingMetadata={...e._sdkProcessingMetadata}),n}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Ol(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if(typeof e=="function"){const n=e(this);return n instanceof Fo?n:this}return e instanceof Fo?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):$l(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,n){const r=typeof n=="number"?n:Oj;if(r<=0)return this;const i={timestamp:i0(),...e};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,n={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const r=this._span.transaction&&this._span.transaction.name;r&&(e.tags={transaction:r,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...wR(),...this._eventProcessors],e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,n,r,i=0){return new hn((o,s)=>{const a=e[i];if(n===null||typeof a!="function")o(n);else{const l=a({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&l===null&&V.log(`Event processor "${a.id}" dropped event`),qb(l)?l.then(c=>this._notifyEventProcessors(e,c,r,i+1).then(o)).then(null,s):this._notifyEventProcessors(e,l,r,i+1).then(o).then(null,s)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?hR(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function wR(){return Zb("globalEventProcessors",()=>[])}function s0(t){wR().push(t)}const tw=4,Rj=100;class Kd{__init(){this._stack=[{}]}constructor(e,n=new Fo,r=tw){this._version=r,Kd.prototype.__init.call(this),this.getStackTop().scope=n,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){const n=this.getStackTop();n.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=Fo.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){const n=this.pushScope();try{e(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:$i(),i=new Error("Sentry syntheticException");return this._withClient((o,s)=>{o.captureException(e,{originalException:e,syntheticException:i,...n,event_id:r},s)}),r}captureMessage(e,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:$i(),o=new Error(e);return this._withClient((s,a)=>{s.captureMessage(e,n,{originalException:e,syntheticException:o,...r,event_id:i},a)}),i}captureEvent(e,n){const r=n&&n.event_id?n.event_id:$i();return e.type||(this._lastEventId=r),this._withClient((i,o)=>{i.captureEvent(e,{...n,event_id:r},o)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){const{scope:r,client:i}=this.getStackTop();if(!r||!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=Rj}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:i0(),...e},c=o?sR(()=>o(l,n)):l;c!==null&&r.addBreadcrumb(c,s)}setUser(e){const n=this.getScope();n&&n.setUser(e)}setTags(e){const n=this.getScope();n&&n.setTags(e)}setExtras(e){const n=this.getScope();n&&n.setExtras(e)}setTag(e,n){const r=this.getScope();r&&r.setTag(e,n)}setExtra(e,n){const r=this.getScope();r&&r.setExtra(e,n)}setContext(e,n){const r=this.getScope();r&&r.setContext(e,n)}configureScope(e){const{scope:n,client:r}=this.getStackTop();n&&r&&e(n)}run(e){const n=dC(this);try{e(this)}finally{dC(n)}}getIntegration(e){const n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch(r){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,n){return this._callExtensionMethod("startTransaction",e,n)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop(),n=e&&e.scope,r=n&&n.getSession();r&&Mj(r),this._sendSessionUpdate(),n&&n.setSession()}startSession(e){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o}=r&&r.getOptions()||{},{userAgent:s}=qn.navigator||{},a=$j({release:i,environment:o,...n&&{user:n.getUser()},...s&&{userAgent:s},...e});if(n){const l=n.getSession&&n.getSession();l&&l.status==="ok"&&Ol(l,{status:"exited"}),this.endSession(),n.setSession(a)}return a}shouldSendDefaultPii(){const e=this.getClient(),n=e&&e.getOptions();return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:n}=this.getStackTop();if(!e)return;const r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(e){const{scope:n,client:r}=this.getStackTop();r&&e(r,n)}_callExtensionMethod(e,...n){const i=ec().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[e]=="function")return i.extensions[e].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function ec(){return qn.__SENTRY__=qn.__SENTRY__||{extensions:{},hub:void 0},qn}function dC(t){const e=ec(),n=mo(e);return ew(e,t),n}function xt(){const t=ec();return(!SR(t)||mo(t).isOlderThan(tw))&&ew(t,new Kd),r0()?Lj(t):mo(t)}function Lj(t){try{const e=ec().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return mo(t);if(!SR(n)||mo(n).isOlderThan(tw)){const r=mo(t).getStackTop();ew(n,new Kd(r.client,Fo.clone(r.scope)))}return mo(n)}catch(e){return mo(t)}}function SR(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function mo(t){return Zb("hub",()=>new Kd,t)}function ew(t,e){if(!t)return!1;const n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}function a0(t,e){return xt().captureException(t,{captureContext:e})}function ER(t){xt().addBreadcrumb(t)}function Dj(t,e){xt().setContext(t,e)}function Ij(t){xt().withScope(t)}const Nj="7";function Fj(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function zj(t){return`${Fj(t)}${t.projectId}/envelope/`}function Bj(t,e){return zB({sentry_key:t.publicKey,sentry_version:Nj,...e&&{sentry_client:`${e.name}/${e.version}`}})}function CR(t,e={}){const n=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return n||`${zj(t)}?${Bj(t,r)}`}function jj(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function Vj(t,e,n,r){const i=Jb(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:Xb(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t];return Xd(o,[s])}function Hj(t,e,n,r){const i=Jb(n),o=t.type&&t.type!=="replay_event"?t.type:"event";jj(t,n&&n.sdk);const s=mR(t,i,r,e);return delete t.sdkProcessingMetadata,Xd(s,[[{type:o},t]])}const hC=[];function Uj(t){const e={};return t.forEach(n=>{const{name:r}=n,i=e[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function Wj(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=hR(n(e)):r=e;const i=Uj(r),o=i.findIndex(s=>s.name==="Debug");if(o!==-1){const[s]=i.splice(o,1);i.push(s)}return i}function Yj(t){const e={};return t.forEach(n=>{kR(n,e)}),e}function kR(t,e){e[t.name]=t,hC.indexOf(t.name)===-1&&(t.setupOnce(s0,xt),hC.push(t.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Integration installed: ${t.name}`))}function AR(t,e,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:o=1e3}=t,s={...e,event_id:e.event_id||n.event_id||$i(),timestamp:e.timestamp||i0()};Gj(s,t),qj(s,t.integrations.map(c=>c.name));let a=r;n.captureContext&&(a=Fo.clone(a).update(n.captureContext));let l=ea(s);if(a){if(a.getAttachments){const c=[...n.attachments||[],...a.getAttachments()];c.length&&(n.attachments=c)}l=a.applyToEvent(s,n)}return l.then(c=>typeof i=="number"&&i>0?Zj(c,i,o):c)}function Gj(t,e){const{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:"production"),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&i!==void 0&&(t.dist=i),t.message&&(t.message=fu(t.message,o));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=fu(s.value,o));const a=t.request;a&&a.url&&(a.url=fu(a.url,o))}function qj(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Zj(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>({...i,...i.data&&{data:uo(i.data,e,n)}}))},...t.user&&{user:uo(t.user,e,n)},...t.contexts&&{contexts:uo(t.contexts,e,n)},...t.extra&&{extra:uo(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=uo(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>(i.data&&(i.data=uo(i.data,e,n)),i))),r}const fC="Not capturing exception because it's already been captured.";class Ga{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(Ga.prototype.__init.call(this),Ga.prototype.__init2.call(this),Ga.prototype.__init3.call(this),Ga.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=IB(e.dsn);const n=CR(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("No DSN provided, client will not do anything.")}captureException(e,n,r){if(sC(e)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(fC);return}let i=n&&n.event_id;return this._process(this.eventFromException(e,n).then(o=>this._captureEvent(o,n,r)).then(o=>{i=o})),i}captureMessage(e,n,r,i){let o=r&&r.event_id;const s=rR(e)?this.eventFromMessage(String(e),n,r):this.eventFromException(e,r);return this._process(s.then(a=>this._captureEvent(a,r,i)).then(a=>{o=a})),o}captureEvent(e,n,r){if(n&&n.originalException&&sC(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(fC);return}let i=n&&n.event_id;return this._process(this._captureEvent(e,n,r).then(o=>{i=o})),i}captureSession(e){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("SDK not enabled, will not capture session.");return}typeof e.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Ol(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;return n?this._isClientDoneProcessing(e).then(r=>n.flush(e).then(i=>r&&i)):ea(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=Yj(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(n){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){kR(e,this._integrations)}sendEvent(e,n={}){if(this._dsn){let r=Hj(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=yj(r,xj(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){const n=Vj(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){const i=`${e}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}_updateSessionFromEvent(e,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const l of o){const c=l.mechanism;if(c&&c.handled===!1){r=!0;break}}}const s=e.status==="ok";(s&&e.errors===0||s&&r)&&(Ol(e,{...r&&{status:"crashed"},errors:e.errors||Number(i||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new hn(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,e&&r>=e&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(e,n,r){const i=this.getOptions();return AR(i,e,n,r)}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const o=i;o.logLevel==="log"?V.log(o.message):V.warn(o)}})}_processEvent(e,n,r){const i=this.getOptions(),{sampleRate:o}=i;if(!this._isEnabled())return wg(new en("SDK not enabled, will not capture event.","log"));const s=$R(e),a=TR(e),l=e.type||"error",c=`before send for type \`${l}\``;if(a&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),wg(new en(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u=l==="replay_event"?"replay":l;return this._prepareEvent(e,n,r).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",u,e),new en("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;const f=Kj(i,d,n);return Xj(f,c)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",u,e),new en(`${c} returned \`null\`, will not send event.`,"log");const h=r&&r.getSession();!s&&h&&this._updateSessionFromEvent(h,d);const f=d.transaction_info;if(s&&f&&d.transaction!==e.transaction){const p="custom";d.transaction_info={...f,source:p,changes:[...f.changes,{source:p,timestamp:d.timestamp,propagations:f.propagations}]}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof en?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new en(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
39
- Reason: ${d}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("Error while sending event:",n)}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:e[n]}})}}function Xj(t,e){const n=`${e} must return \`null\` or a valid event.`;if(qb(t))return t.then(r=>{if(!$l(r)&&r!==null)throw new en(n);return r},r=>{throw new en(`${e} rejected with ${r}`)});if(!$l(t)&&t!==null)throw new en(n);return t}function Kj(t,e,n){const{beforeSend:r,beforeSendTransaction:i}=t;return TR(e)&&r?r(e,n):$R(e)&&i?i(e,n):e}function TR(t){return t.type===void 0}function $R(t){return t.type==="transaction"}function Qj(t,e){e.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?V.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=xt(),r=n.getScope();r&&r.update(e.initialScope);const i=new t(e);n.bindClient(i)}const Jj=30;function MR(t,e,n=dj(t.bufferSize||Jj)){let r={};const i=s=>n.drain(s);function o(s){const a=[];if(lC(s,(d,h)=>{const f=cC(h);if(yR(r,f)){const p=pC(d,h);t.recordDroppedEvent("ratelimit_backoff",f,p)}else a.push(d)}),a.length===0)return ea();const l=Xd(s[0],a),c=d=>{lC(l,(h,f)=>{const p=pC(h,f);t.recordDroppedEvent(d,cC(f),p)})},u=()=>e({body:gR(l,t.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=_R(r,d),d),d=>{throw c("network_error"),d});return n.add(u).then(d=>d,d=>{if(d instanceof en)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("Skipped sending event because buffer is full."),c("queue_overflow"),ea();throw d})}return{send:o,flush:i}}function pC(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}const Sg="7.33.0";let gC;class md{constructor(){md.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=md.id}setupOnce(){gC=Function.prototype.toString,Function.prototype.toString=function(...e){const n=Qb(this)||this;return gC.apply(n,e)}}}md.__initStatic();const tV=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class dl{static __initStatic(){this.id="InboundFilters"}__init(){this.name=dl.id}constructor(e={}){this._options=e,dl.prototype.__init.call(this)}setupOnce(e,n){const r=i=>{const o=n();if(o){const s=o.getIntegration(dl);if(s){const a=o.getClient(),l=a?a.getOptions():{},c=eV(s._options,l);return nV(i,c)?null:i}}return i};r.id=this.name,e(r)}}dl.__initStatic();function eV(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...tV],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function nV(t,e){return e.ignoreInternal&&aV(t)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Event dropped due to being internal Sentry Error.
40
- Event: ${Rs(t)}`),!0):rV(t,e.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
41
- Event: ${Rs(t)}`),!0):iV(t,e.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Event dropped due to being matched by \`denyUrls\` option.
42
- Event: ${Rs(t)}.
43
- Url: ${Eg(t)}`),!0):oV(t,e.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`Event dropped due to not being matched by \`allowUrls\` option.
44
- Event: ${Rs(t)}.
45
- Url: ${Eg(t)}`),!0)}function rV(t,e){return!e||!e.length?!1:sV(t).some(n=>n0(n,e))}function iV(t,e){if(!e||!e.length)return!1;const n=Eg(t);return n?n0(n,e):!1}function oV(t,e){if(!e||!e.length)return!0;const n=Eg(t);return n?n0(n,e):!0}function sV(t){if(t.message)return[t.message];if(t.exception)try{const{type:e="",value:n=""}=t.exception.values&&t.exception.values[0]||{};return[`${n}`,`${e}: ${n}`]}catch(e){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`Cannot extract message for event ${Rs(t)}`),[]}return[]}function aV(t){try{return t.exception.values[0].type==="SentryError"}catch(e){}return!1}function lV(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Eg(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(n){}return e?lV(e):null}catch(e){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`Cannot extract url for event ${Rs(t)}`),null}}const bt=qn;let v_=0;function PR(){return v_>0}function cV(){v_++,setTimeout(()=>{v_--})}function Rl(t,e={},n){if(typeof t!="function")return t;try{const i=t.__sentry_wrapped__;if(i)return i;if(Qb(t))return t}catch(i){return t}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const o=i.map(s=>Rl(s,e));return t.apply(this,o)}catch(o){throw cV(),Ij(s=>{s.addEventProcessor(a=>(e.mechanism&&(h_(a,void 0,void 0),pd(a,e.mechanism)),a.extra={...a.extra,arguments:i},a)),a0(o)}),o}};try{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch(i){}aR(r,t),Kb(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch(i){}return r}function OR(t,e){const n=nw(t,e),r={type:e&&e.name,value:fV(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function uV(t,e,n,r){const o=xt().getClient(),s=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:Gb(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${BB(e)}`}]},extra:{__serialized__:fR(e,s)}};if(n){const l=nw(t,n);l.length&&(a.exception.values[0].stacktrace={frames:l})}return a}function qv(t,e){return{exception:{values:[OR(t,e)]}}}function nw(t,e){const n=e.stacktrace||e.stack||"",r=hV(e);try{return t(n,r)}catch(i){}return[]}const dV=/Minified React error #\d+;/i;function hV(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(dV.test(t.message))return 1}return 0}function fV(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function pV(t,e,n,r){const i=n&&n.syntheticException||void 0,o=rw(t,e,i,r);return pd(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),ea(o)}function gV(t,e,n="info",r,i){const o=r&&r.syntheticException||void 0,s=y_(t,e,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),ea(s)}function rw(t,e,n,r,i){let o;if(nR(e)&&e.error)return qv(t,e.error);if(JE(e)||EB(e)){const s=e;if("stack"in e)o=qv(t,e);else{const a=s.name||(JE(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;o=y_(t,l,n,r),h_(o,l)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return eR(e)?qv(t,e):$l(e)||Gb(e)?(o=uV(t,e,n,i),pd(o,{synthetic:!0}),o):(o=y_(t,e,n,r),h_(o,`${e}`,void 0),pd(o,{synthetic:!0}),o)}function y_(t,e,n,r){const i={message:e};if(r&&n){const o=nw(t,n);o.length&&(i.exception={values:[{value:e,stacktrace:{frames:o}}]})}return i}const Yh=1024,RR="Breadcrumbs";class vd{static __initStatic(){this.id=RR}__init(){this.name=vd.id}constructor(e){vd.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&We("console",vV),this.options.dom&&We("dom",mV(this.options.dom)),this.options.xhr&&We("xhr",yV),this.options.fetch&&We("fetch",_V),this.options.history&&We("history",xV)}addSentryBreadcrumb(e){this.options.sentry&&xt().addBreadcrumb({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:Rs(e)},{event:e})}}vd.__initStatic();function mV(t){function e(n){let r,i=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>Yh&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`\`dom.maxStringLength\` cannot exceed ${Yh}, but a value of ${o} was configured. Sentry will use ${Yh} instead.`),o=Yh),typeof i=="string"&&(i=[i]);try{r=n.event.target?Ml(n.event.target,{keyAttrs:i,maxStringLength:o}):Ml(n.event,{keyAttrs:i,maxStringLength:o})}catch(s){r="<unknown>"}r.length!==0&&xt().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return e}function vV(t){for(let n=0;n<t.args.length;n++)if(t.args[n]==="ref=Ref<"){t.args[n+1]="viewRef";break}const e={category:"console",data:{arguments:t.args,logger:"console"},level:fj(t.level),message:eC(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)e.message=`Assertion failed: ${eC(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1);else return;xt().addBreadcrumb(e,{input:t.args,level:t.level})}function yV(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;const{method:e,url:n,status_code:r,body:i}=t.xhr.__sentry_xhr__||{};xt().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:i});return}}function _V(t){!t.endTimestamp||t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"||(t.error?xt().addBreadcrumb({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args}):xt().addBreadcrumb({category:"fetch",data:{...t.fetchData,status_code:t.response.status},type:"http"},{input:t.args,response:t.response}))}function xV(t){let e=t.from,n=t.to;const r=Yv(bt.location.href);let i=Yv(e);const o=Yv(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),xt().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}class bV extends Ga{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Sg}],version:Sg},super(e),e.sendClientReports&&bt.document&&bt.document.addEventListener("visibilitychange",()=>{bt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return pV(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return gV(this._options.stackParser,e,n,r,this._options.attachStacktrace)}sendEvent(e,n){const r=this.getIntegrationById(RR);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(e),super.sendEvent(e,n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}_flushOutcomes(){const e=this._clearOutcomes();if(e.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("Sending outcomes:",e);const n=CR(this._dsn,this._options),r=wj(e,this._options.tunnel&&Xb(this._dsn));try{Object.prototype.toString.call(bt&&bt.navigator)==="[object Navigator]"&&typeof bt.navigator.sendBeacon=="function"&&!this._options.transportOptions?bt.navigator.sendBeacon.bind(bt.navigator)(n,gR(r)):this._sendEnvelope(r)}catch(i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(i)}}}let Zc;function wV(){if(Zc)return Zc;if(d_(bt.fetch))return Zc=bt.fetch.bind(bt);const t=bt.document;let e=bt.fetch;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Zc=e.bind(bt)}function SV(){Zc=void 0}function EV(t,e=wV()){function n(r){const i={body:r.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r.body.length<=65536,...t.fetchOptions};try{return e(t.url,i).then(o=>({statusCode:o.status,headers:{"x-sentry-rate-limits":o.headers.get("X-Sentry-Rate-Limits"),"retry-after":o.headers.get("Retry-After")}}))}catch(o){return SV(),wg(o)}}return MR(t,n)}const CV=4;function kV(t){function e(n){return new hn((r,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===CV&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",t.url);for(const s in t.headers)Object.prototype.hasOwnProperty.call(t.headers,s)&&o.setRequestHeader(s,t.headers[s]);o.send(n.body)})}return MR(t,e)}const l0="?",AV=30,TV=40,$V=50;function iw(t,e,n,r){const i={filename:t,function:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const MV=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,PV=/\((\S*)(?::(\d+))(?::(\d+))\)/,OV=t=>{const e=MV.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){const o=PV.exec(e[2]);o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3])}const[r,i]=LR(e[1]||l0,e[2]);return iw(i,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},RV=[AV,OV],LV=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,DV=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,IV=t=>{const e=LV.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const o=DV.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let r=e[3],i=e[1]||l0;return[i,r]=LR(i,r),iw(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},NV=[$V,IV],FV=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,zV=t=>{const e=FV.exec(t);return e?iw(e[2],e[1]||l0,+e[3],e[4]?+e[4]:void 0):void 0},BV=[TV,zV],jV=[RV,NV,BV],VV=cR(...jV),LR=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:l0,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};class zo{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=zo.id}__init2(){this._installFunc={onerror:HV,onunhandledrejection:UV}}constructor(e){zo.prototype.__init.call(this),zo.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const r=this._installFunc[n];r&&e[n]&&(GV(n),r(),this._installFunc[n]=void 0)}}}zo.__initStatic();function HV(){We("error",t=>{const[e,n,r]=NR();if(!e.getIntegration(zo))return;const{msg:i,url:o,line:s,column:a,error:l}=t;if(PR()||l&&l.__sentry_own_request__)return;const c=l===void 0&&Go(i)?YV(i,o,s,a):DR(rw(n,l||i,void 0,r,!1),o,s,a);c.level="error",IR(e,l,c,"onerror")})}function UV(){We("unhandledrejection",t=>{const[e,n,r]=NR();if(!e.getIntegration(zo))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(s){}if(PR()||i&&i.__sentry_own_request__)return!0;const o=rR(i)?WV(i):rw(n,i,void 0,r,!0);o.level="error",IR(e,i,o,"onunhandledrejection")})}function WV(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function YV(t,e,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=nR(t)?t.message:t,s="Error";const a=o.match(i);return a&&(s=a[1],o=a[2]),DR({exception:{values:[{type:s,value:o}]}},e,n,r)}function DR(t,e,n,r){const i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=Go(e)&&e.length>0?e:MB();return l.length===0&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),t}function GV(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Global Handler attached: ${t}`)}function IR(t,e,n,r){pd(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function NR(){const t=xt(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}const qV=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class yd{static __initStatic(){this.id="TryCatch"}__init(){this.name=yd.id}constructor(e){yd.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&nn(bt,"setTimeout",mC),this._options.setInterval&&nn(bt,"setInterval",mC),this._options.requestAnimationFrame&&nn(bt,"requestAnimationFrame",ZV),this._options.XMLHttpRequest&&"XMLHttpRequest"in bt&&nn(XMLHttpRequest.prototype,"send",XV);const e=this._options.eventTarget;e&&(Array.isArray(e)?e:qV).forEach(KV)}}yd.__initStatic();function mC(t){return function(...e){const n=e[0];return e[0]=Rl(n,{mechanism:{data:{function:qo(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function ZV(t){return function(e){return t.apply(this,[Rl(e,{mechanism:{data:{function:"requestAnimationFrame",handler:qo(t)},handled:!0,type:"instrument"}})])}}function XV(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&nn(n,i,function(o){const s={mechanism:{data:{function:i,handler:qo(o)},handled:!0,type:"instrument"}},a=Qb(o);return a&&(s.mechanism.data.handler=qo(a)),Rl(o,s)})}),t.apply(this,e)}}function KV(t){const e=bt,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(nn(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=Rl(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:qo(o),target:t},handled:!0,type:"instrument"}}))}catch(a){}return r.apply(this,[i,Rl(o,{mechanism:{data:{function:"addEventListener",handler:qo(o),target:t},handled:!0,type:"instrument"}}),s])}}),nn(n,"removeEventListener",function(r){return function(i,o,s){const a=o;try{const l=a&&a.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch(l){}return r.call(this,i,a,s)}}))}const QV="cause",JV=5;class hl{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=hl.id}constructor(e={}){hl.prototype.__init.call(this),this._key=e.key||QV,this._limit=e.limit||JV}setupOnce(){const e=xt().getClient();!e||s0((n,r)=>{const i=xt().getIntegration(hl);return i?tH(e.getOptions().stackParser,i._key,i._limit,n,r):n})}}hl.__initStatic();function tH(t,e,n,r,i){if(!r.exception||!r.exception.values||!i||!si(i.originalException,Error))return r;const o=FR(t,n,i.originalException,e);return r.exception.values=[...o,...r.exception.values],r}function FR(t,e,n,r,i=[]){if(!si(n[r],Error)||i.length+1>=e)return i;const o=OR(t,n[r]);return FR(t,e,n[r],r,[o,...i])}class fl{constructor(){fl.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=fl.id}setupOnce(){s0(e=>{if(xt().getIntegration(fl)){if(!bt.navigator&&!bt.location&&!bt.document)return e;const n=e.request&&e.request.url||bt.location&&bt.location.href,{referrer:r}=bt.document||{},{userAgent:i}=bt.navigator||{},o={...e.request&&e.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},s={...e.request,...n&&{url:n},headers:o};return{...e,request:s}}return e})}}fl.__initStatic();class pl{constructor(){pl.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=pl.id}setupOnce(e,n){const r=i=>{const o=n().getIntegration(pl);if(o){try{if(eH(i,o._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(s){return o._previousEvent=i}return o._previousEvent=i}return i};r.id=this.name,e(r)}}pl.__initStatic();function eH(t,e){return e?!!(nH(t,e)||rH(t,e)):!1}function nH(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!BR(t,e)||!zR(t,e))}function rH(t,e){const n=vC(e),r=vC(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!BR(t,e)||!zR(t,e))}function zR(t,e){let n=yC(t),r=yC(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function BR(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch(i){return!1}}function vC(t){return t.exception&&t.exception.values&&t.exception.values[0]}function yC(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}}const iH=[new dl,new md,new yd,new vd,new zo,new hl,new pl,new fl];function oH(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=iH),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),bt.SENTRY_RELEASE&&bt.SENTRY_RELEASE.id&&(t.release=bt.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);const e={...t,stackParser:VB(t.stackParser||VV),integrations:Wj(t),transport:t.transport||(uR()?EV:kV)};Qj(bV,e),t.autoSessionTracking&&sH()}function _C(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function sH(){if(typeof bt.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const t=xt();!t.captureSession||(_C(t),We("history",({from:e,to:n})=>{e===void 0||e===n||_C(xt())}))}const Oe=qn,jR="sentryReplaySession",VR="replay_event",ow="Unable to send Replay",gu=3e5,xC=gu,HR=36e5,aH="body *:not(style), body *:not(script)",lH=5e3,cH=5e3,uH=5e3,dH=3;/*! *****************************************************************************
46
- Copyright (c) Microsoft Corporation.
47
-
48
- Permission to use, copy, modify, and/or distribute this software for any
49
- purpose with or without fee is hereby granted.
50
-
51
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
52
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
53
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
54
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
55
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
56
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
57
- PERFORMANCE OF THIS SOFTWARE.
58
- ***************************************************************************** */var ge=function(){return ge=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ge.apply(this,arguments)};function hH(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function xo(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ht(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function ft(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var De;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(De||(De={}));function fH(t){return t.nodeType===t.ELEMENT_NODE}function mu(t){var e,n=(e=t)===null||e===void 0?void 0:e.host;return Boolean(n&&n.shadowRoot&&n.shadowRoot===t)}function sw(t){var e=t.maskInputOptions,n=t.tagName,r=t.type,i=t.value,o=t.maskInputFn,s=i||"";return(e[n.toLowerCase()]||e[r])&&(o?s=o(s):s="*".repeat(s.length)),s}var bC="__rrweb_original__";function pH(t){var e=t.getContext("2d");if(!e)return!0;for(var n=50,r=0;r<t.width;r+=n)for(var i=0;i<t.height;i+=n){var o=e.getImageData,s=bC in o?o[bC]:o,a=new Uint32Array(s.call(e,r,i,Math.min(n,t.width-r),Math.min(n,t.height-i)).data.buffer);if(a.some(function(l){return l!==0}))return!1}return!0}var gH=1,mH=new RegExp("[^a-z0-9-_:]"),_d=-2;function vH(){return gH++}function yH(t){if(t instanceof HTMLFormElement)return"form";var e=t.tagName.toLowerCase().trim();return mH.test(e)?"div":e}function __(t){try{var e=t.rules||t.cssRules;return e?Array.from(e).map(_H).join(""):null}catch(n){return null}}function _H(t){var e=t.cssText;if(xH(t))try{e=__(t.styleSheet)||e}catch(n){}return e}function xH(t){return"styleSheet"in t}function bH(t){return t.cssRules?Array.from(t.cssRules).map(function(e){return e.cssText||""}).join(""):""}function wH(t){var e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}var xa,wC,SH=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,EH=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,CH=/^(data:)([^,]*),(.*)/i;function gp(t,e){return(t||"").replace(SH,function(n,r,i,o,s,a){var l=i||s||a,c=r||o||"";if(!l)return n;if(!EH.test(l)||CH.test(l))return"url("+c+l+c+")";if(l[0]==="/")return"url("+c+(wH(e)+l)+c+")";var u=e.split("/"),d=l.split("/");u.pop();for(var h=0,f=d;h<f.length;h++){var p=f[h];p!=="."&&(p===".."?u.pop():u.push(p))}return"url("+c+u.join("/")+c+")"})}var kH=/^[^ \t\n\r\u000c]+/,AH=/^[, \t\n\r\u000c]+/;function TH(t,e){if(e.trim()==="")return e;var n=0;function r(c){var u,d=c.exec(e.substring(n));return d?(u=d[0],n+=u.length,u):""}for(var i=[];r(AH),!(n>=e.length);){var o=r(kH);if(o.slice(-1)===",")o=qa(t,o.substring(0,o.length-1)),i.push(o);else{var s="";o=qa(t,o);for(var a=!1;;){var l=e.charAt(n);if(l===""){i.push((o+s).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){n+=1,i.push((o+s).trim());break}else l==="("&&(a=!0);s+=l,n+=1}}}return i.join(", ")}function qa(t,e){if(!e||e.trim()==="")return e;var n=t.createElement("a");return n.href=e,n.href}function $H(t){return Boolean(t.tagName==="svg"||t.ownerSVGElement)}function x_(){var t=document.createElement("a");return t.href="",t.href}function UR(t,e,n,r){return n==="src"||n==="href"&&r||n==="xlink:href"&&r&&r[0]!=="#"||n==="background"&&r&&(e==="table"||e==="td"||e==="th")?qa(t,r):n==="srcset"&&r?TH(t,r):n==="style"&&r?gp(r,x_()):e==="object"&&n==="data"&&r?qa(t,r):r}function MH(t,e,n){if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(var r=0;r<t.classList.length;r++){var i=t.classList[r];if(e.test(i))return!0}return n?t.matches(n):!1}function vu(t,e,n){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(var r=0;r<t.classList.length;r++){var i=t.classList[r];if(e.test(i))return!0}return n&&t.matches(n)?!0:vu(t.parentNode,e,n)}return t.nodeType===t.TEXT_NODE,vu(t.parentNode,e,n)}function PH(t,e,n){var r=t.contentWindow;if(!!r){var i=!1,o;try{o=r.document.readyState}catch(l){return}if(o!=="complete"){var s=setTimeout(function(){i||(e(),i=!0)},n);t.addEventListener("load",function(){clearTimeout(s),i=!0,e()});return}var a="about:blank";if(r.location.href!==a||t.src===a||t.src===""){setTimeout(e,0);return}t.addEventListener("load",e)}}function OH(t,e){var n,r=e.doc,i=e.blockClass,o=e.blockSelector,s=e.maskTextClass,a=e.maskTextSelector,l=e.inlineStylesheet,c=e.maskInputOptions,u=c===void 0?{}:c,d=e.maskTextFn,h=e.maskInputFn,f=e.dataURLOptions,p=f===void 0?{}:f,g=e.inlineImages,y=e.recordCanvas,v=e.keepIframeSrcFn,_;if(r.__sn){var x=r.__sn.id;_=x===1?void 0:x}switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:De.Document,childNodes:[],compatMode:t.compatMode,rootId:_}:{type:De.Document,childNodes:[],rootId:_};case t.DOCUMENT_TYPE_NODE:return{type:De.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:_};case t.ELEMENT_NODE:for(var b=MH(t,i,o),w=yH(t),S={},E=0,C=Array.from(t.attributes);E<C.length;E++){var A=C[E],k=A.name,$=A.value;S[k]=UR(r,w,k,$)}if(w==="link"&&l){var M=Array.from(r.styleSheets).find(function(it){return it.href===t.href}),I=null;M&&(I=__(M)),I&&(delete S.rel,delete S.href,S._cssText=gp(I,M.href))}if(w==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){var I=__(t.sheet);I&&(S._cssText=gp(I,x_()))}if(w==="input"||w==="textarea"||w==="select"){var $=t.value;S.type!=="radio"&&S.type!=="checkbox"&&S.type!=="submit"&&S.type!=="button"&&$?S.value=sw({type:S.type,tagName:w,value:$,maskInputOptions:u,maskInputFn:h}):t.checked&&(S.checked=t.checked)}if(w==="option"&&(t.selected&&!u.select?S.selected=!0:delete S.selected),w==="canvas"&&y){if(t.__context==="2d")pH(t)||(S.rr_dataURL=t.toDataURL(p.type,p.quality));else if(!("__context"in t)){var F=t.toDataURL(p.type,p.quality),L=document.createElement("canvas");L.width=t.width,L.height=t.height;var Y=L.toDataURL(p.type,p.quality);F!==Y&&(S.rr_dataURL=F)}}if(w==="img"&&g){xa||(xa=r.createElement("canvas"),wC=xa.getContext("2d"));var X=t,z=X.crossOrigin;X.crossOrigin="anonymous";var W=function(){try{xa.width=X.naturalWidth,xa.height=X.naturalHeight,wC.drawImage(X,0,0),S.rr_dataURL=xa.toDataURL(p.type,p.quality)}catch(it){console.warn("Cannot inline img src="+X.currentSrc+"! Error: "+it)}z?S.crossOrigin=z:delete S.crossOrigin};X.complete&&X.naturalWidth!==0?W():X.onload=W}if((w==="audio"||w==="video")&&(S.rr_mediaState=t.paused?"paused":"played",S.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(S.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(S.rr_scrollTop=t.scrollTop),b){var P=t.getBoundingClientRect(),G=P.width,U=P.height;S={class:S.class,rr_width:G+"px",rr_height:U+"px"}}return w==="iframe"&&!v(S.src)&&(t.contentDocument||(S.rr_src=S.src),delete S.src),{type:De.Element,tagName:w,attributes:S,childNodes:[],isSVG:$H(t)||void 0,needBlock:b,rootId:_};case t.TEXT_NODE:var B=t.parentNode&&t.parentNode.tagName,R=t.textContent,j=B==="STYLE"?!0:void 0,K=B==="SCRIPT"?!0:void 0;if(j&&R){try{t.nextSibling||t.previousSibling||!((n=t.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(R=bH(t.parentNode.sheet))}catch(it){console.warn("Cannot get CSS styles from text's parentNode. Error: "+it,t)}R=gp(R,x_())}return K&&(R="SCRIPT_PLACEHOLDER"),!j&&!K&&vu(t,s,a)&&R&&(R=d?d(R):R.replace(/[\S]/g,"*")),{type:De.Text,textContent:R||"",isStyle:j,rootId:_};case t.CDATA_SECTION_NODE:return{type:De.CDATA,textContent:"",rootId:_};case t.COMMENT_NODE:return{type:De.Comment,textContent:t.textContent||"",rootId:_};default:return!1}}function Nt(t){return t===void 0?"":t.toLowerCase()}function RH(t,e){if(e.comment&&t.type===De.Comment)return!0;if(t.type===De.Element){if(e.script&&(t.tagName==="script"||t.tagName==="link"&&t.attributes.rel==="preload"&&t.attributes.as==="script"||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(Nt(t.attributes.name).match(/^msapplication-tile(image|color)$/)||Nt(t.attributes.name)==="application-name"||Nt(t.attributes.rel)==="icon"||Nt(t.attributes.rel)==="apple-touch-icon"||Nt(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&Nt(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Nt(t.attributes.property).match(/^(og|twitter|fb):/)||Nt(t.attributes.name).match(/^(og|twitter):/)||Nt(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(Nt(t.attributes.name)==="robots"||Nt(t.attributes.name)==="googlebot"||Nt(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(Nt(t.attributes.name)==="author"||Nt(t.attributes.name)==="generator"||Nt(t.attributes.name)==="framework"||Nt(t.attributes.name)==="publisher"||Nt(t.attributes.name)==="progid"||Nt(t.attributes.property).match(/^article:/)||Nt(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(Nt(t.attributes.name)==="google-site-verification"||Nt(t.attributes.name)==="yandex-verification"||Nt(t.attributes.name)==="csrf-token"||Nt(t.attributes.name)==="p:domain_verify"||Nt(t.attributes.name)==="verify-v1"||Nt(t.attributes.name)==="verification"||Nt(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function yu(t,e){var n=e.doc,r=e.map,i=e.blockClass,o=e.blockSelector,s=e.maskTextClass,a=e.maskTextSelector,l=e.skipChild,c=l===void 0?!1:l,u=e.inlineStylesheet,d=u===void 0?!0:u,h=e.maskInputOptions,f=h===void 0?{}:h,p=e.maskTextFn,g=e.maskInputFn,y=e.slimDOMOptions,v=e.dataURLOptions,_=v===void 0?{}:v,x=e.inlineImages,b=x===void 0?!1:x,w=e.recordCanvas,S=w===void 0?!1:w,E=e.onSerialize,C=e.onIframeLoad,A=e.iframeLoadTimeout,k=A===void 0?5e3:A,$=e.keepIframeSrcFn,M=$===void 0?function(){return!1}:$,I=e.preserveWhiteSpace,F=I===void 0?!0:I,L=OH(t,{doc:n,blockClass:i,blockSelector:o,maskTextClass:s,maskTextSelector:a,inlineStylesheet:d,maskInputOptions:f,maskTextFn:p,maskInputFn:g,dataURLOptions:_,inlineImages:b,recordCanvas:S,keepIframeSrcFn:M});if(!L)return console.warn(t,"not serialized"),null;var Y;"__sn"in t?Y=t.__sn.id:RH(L,y)||!F&&L.type===De.Text&&!L.isStyle&&!L.textContent.replace(/^\s+|\s+$/gm,"").length?Y=_d:Y=vH();var X=Object.assign(L,{id:Y});if(t.__sn=X,Y===_d)return null;r[Y]=t,E&&E(t);var z=!c;if(X.type===De.Element&&(z=z&&!X.needBlock,delete X.needBlock,t.shadowRoot&&(X.isShadowHost=!0)),(X.type===De.Document||X.type===De.Element)&&z){y.headWhitespace&&L.type===De.Element&&L.tagName==="head"&&(F=!1);for(var W={doc:n,map:r,blockClass:i,blockSelector:o,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:d,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:F,onSerialize:E,onIframeLoad:C,iframeLoadTimeout:k,keepIframeSrcFn:M},P=0,G=Array.from(t.childNodes);P<G.length;P++){var U=G[P],B=yu(U,W);B&&X.childNodes.push(B)}if(fH(t)&&t.shadowRoot)for(var R=0,j=Array.from(t.shadowRoot.childNodes);R<j.length;R++){var U=j[R],B=yu(U,W);B&&(B.isShadow=!0,X.childNodes.push(B))}}return t.parentNode&&mu(t.parentNode)&&(X.isShadow=!0),X.type===De.Element&&X.tagName==="iframe"&&PH(t,function(){var K=t.contentDocument;if(K&&C){var it=yu(K,{doc:K,map:r,blockClass:i,blockSelector:o,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:F,onSerialize:E,onIframeLoad:C,iframeLoadTimeout:k,keepIframeSrcFn:M});it&&C(t,it)}},k),X}function LH(t,e){var n=e||{},r=n.blockClass,i=r===void 0?"rr-block":r,o=n.blockSelector,s=o===void 0?null:o,a=n.maskTextClass,l=a===void 0?"rr-mask":a,c=n.maskTextSelector,u=c===void 0?null:c,d=n.inlineStylesheet,h=d===void 0?!0:d,f=n.inlineImages,p=f===void 0?!1:f,g=n.recordCanvas,y=g===void 0?!1:g,v=n.maskAllInputs,_=v===void 0?!1:v,x=n.maskTextFn,b=n.maskInputFn,w=n.slimDOM,S=w===void 0?!1:w,E=n.dataURLOptions,C=n.preserveWhiteSpace,A=n.onSerialize,k=n.onIframeLoad,$=n.iframeLoadTimeout,M=n.keepIframeSrcFn,I=M===void 0?function(){return!1}:M,F={},L=_===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:_===!1?{password:!0}:_,Y=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:S==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:S===!1?{}:S;return[yu(t,{doc:t,map:F,blockClass:i,blockSelector:s,maskTextClass:l,maskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:L,maskTextFn:x,maskInputFn:b,slimDOMOptions:Y,dataURLOptions:E,inlineImages:p,recordCanvas:y,preserveWhiteSpace:C,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:$,keepIframeSrcFn:I}),F]}var Ft;(function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin"})(Ft||(Ft={}));var Ve;(function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration"})(Ve||(Ve={}));var Cg;(function(t){t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel"})(Cg||(Cg={}));var Ll;(function(t){t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2"})(Ll||(Ll={}));var SC;(function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange"})(SC||(SC={}));var EC;(function(t){t.Start="start",t.Pause="pause",t.Resume="resume",t.Resize="resize",t.Finish="finish",t.FullsnapshotRebuilded="fullsnapshot-rebuilded",t.LoadStylesheetStart="load-stylesheet-start",t.LoadStylesheetEnd="load-stylesheet-end",t.SkipStart="skip-start",t.SkipEnd="skip-end",t.MouseInteraction="mouse-interaction",t.EventCast="event-cast",t.CustomEvent="custom-event",t.Flush="flush",t.StateChange="state-change",t.PlayBack="play-back"})(EC||(EC={}));function Yn(t,e,n){n===void 0&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(t,e,r),function(){return n.removeEventListener(t,e,r)}}function DH(){return{map:{},getId:function(t){return!t||!t.__sn?-1:t.__sn.id},getNode:function(t){return this.map[t]||null},removeNodeFromMap:function(t){var e=this,n=t.__sn&&t.__sn.id;delete this.map[n],t.childNodes&&t.childNodes.forEach(function(r){return e.removeNodeFromMap(r)})},has:function(t){return this.map.hasOwnProperty(t)},reset:function(){this.map={}}}}var La=`Please stop import mirror directly. Instead of that,\r
59
- now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
60
- or you can use record.mirror to access the mirror instance during recording.`,CC={map:{},getId:function(){return console.error(La),-1},getNode:function(){return console.error(La),null},removeNodeFromMap:function(){console.error(La)},has:function(){return console.error(La),!1},reset:function(){console.error(La)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(CC=new Proxy(CC,{get:function(t,e,n){return e==="map"&&console.error(La),Reflect.get(t,e,n)}}));function xd(t,e,n){n===void 0&&(n={});var r=null,i=0;return function(o){var s=Date.now();!i&&n.leading===!1&&(i=s);var a=e-(s-i),l=this,c=arguments;a<=0||a>e?(r&&(clearTimeout(r),r=null),i=s,t.apply(l,c)):!r&&n.trailing!==!1&&(r=setTimeout(function(){i=n.leading===!1?0:Date.now(),r=null,t.apply(l,c)},a))}}function c0(t,e,n,r,i){i===void 0&&(i=window);var o=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set:function(s){var a=this;setTimeout(function(){n.set.call(a,s)},0),o&&o.set&&o.set.call(this,s)}}),function(){return c0(t,e,o||{},!0)}}function Dl(t,e,n){try{if(!(e in t))return function(){};var r=t[e],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,function(){t[e]=r}}catch(o){return function(){}}}function WR(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function YR(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function pn(t,e){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){var n=!1;if(typeof e=="string"){if(t.closest!==void 0)return t.closest("."+e)!==null;n=t.classList.contains(e)}else t.classList.forEach(function(r){e.test(r)&&(n=!0)});return n||pn(t.parentNode,e)}return t.nodeType===t.TEXT_NODE,pn(t.parentNode,e)}function Zv(t){return"__sn"in t?t.__sn.id===_d:!1}function GR(t,e){if(mu(t))return!1;var n=e.getId(t);return e.has(n)?t.parentNode&&t.parentNode.nodeType===t.DOCUMENT_NODE?!1:t.parentNode?GR(t.parentNode,e):!0:!0}function qR(t){return Boolean(t.changedTouches)}function IH(t){t===void 0&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(n){if(!(0 in arguments))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function ZR(t){return"__sn"in t?t.__sn.type===De.Element&&t.__sn.tagName==="iframe":!1}function XR(t){return Boolean(t==null?void 0:t.shadowRoot)}function kC(t){return"__ln"in t}var NH=function(){function t(){this.length=0,this.head=null}return t.prototype.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var n=this.head,r=0;r<e;r++)n=(n==null?void 0:n.next)||null;return n},t.prototype.addNode=function(e){var n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&kC(e.previousSibling)){var r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&kC(e.nextSibling)&&e.nextSibling.__ln.previous){var r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;this.length++},t.prototype.removeNode=function(e){var n=e.__ln;!this.head||(n.previous?(n.previous.next=n.next,n.next&&(n.next.previous=n.previous)):(this.head=n.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)},t}(),AC=function(t,e){return"".concat(t,"@").concat(e)};function TC(t){return"__sn"in t}var FH=function(){function t(){var e=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(n){n.forEach(e.processMutation),e.emit()},this.emit=function(){var n,r,i,o;if(!(e.frozen||e.locked)){for(var s=[],a=new NH,l=function(S){for(var E=S,C=_d;C===_d;)E=E&&E.nextSibling,C=E&&e.mirror.getId(E);return C},c=function(S){for(var E,C,A,k,$,M=S.getRootNode?(E=S.getRootNode())===null||E===void 0?void 0:E.host:null,I=M;!((A=(C=I==null?void 0:I.getRootNode)===null||C===void 0?void 0:C.call(I))===null||A===void 0)&&A.host;)I=(($=(k=I==null?void 0:I.getRootNode)===null||k===void 0?void 0:k.call(I))===null||$===void 0?void 0:$.host)||null;var F=!e.doc.contains(S)&&(I===null||!e.doc.contains(I));if(!(!S.parentNode||F)){var L=mu(S.parentNode)?e.mirror.getId(M):e.mirror.getId(S.parentNode),Y=l(S);if(L===-1||Y===-1)return a.addNode(S);var X=yu(S,{doc:e.doc,map:e.mirror.map,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(z){ZR(z)&&e.iframeManager.addIframe(z),XR(S)&&e.shadowDomManager.addShadowRoot(S.shadowRoot,document)},onIframeLoad:function(z,W){e.iframeManager.attachIframe(z,W),e.shadowDomManager.observeAttachShadow(z)}});X&&s.push({parentId:L,nextId:Y,node:X})}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());try{for(var u=xo(e.movedSet),d=u.next();!d.done;d=u.next()){var h=d.value;w_(e.removes,h,e.mirror)&&!e.movedSet.has(h.parentNode)||c(h)}}catch(S){n={error:S}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}try{for(var f=xo(e.addedSet),p=f.next();!p.done;p=f.next()){var h=p.value;!S_(e.droppedSet,h)&&!w_(e.removes,h,e.mirror)||S_(e.movedSet,h)?c(h):e.droppedSet.add(h)}}catch(S){i={error:S}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}for(var g=null;a.length;){var y=null;if(g){var v=e.mirror.getId(g.value.parentNode),_=l(g.value);v!==-1&&_!==-1&&(y=g)}if(!y)for(var x=a.length-1;x>=0;x--){var b=a.get(x);if(b){var v=e.mirror.getId(b.value.parentNode),_=l(b.value);if(v!==-1&&_!==-1){y=b;break}}}if(!y){for(;a.head;)a.removeNode(a.head.value);break}g=y.previous,a.removeNode(y.value),c(y.value)}var w={texts:e.texts.map(function(S){return{id:e.mirror.getId(S.node),value:S.value}}).filter(function(S){return e.mirror.has(S.id)}),attributes:e.attributes.map(function(S){return{id:e.mirror.getId(S.node),attributes:S.attributes}}).filter(function(S){return e.mirror.has(S.id)}),removes:e.removes,adds:s};!w.texts.length&&!w.attributes.length&&!w.removes.length&&!w.adds.length||(e.texts=[],e.attributes=[],e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.movedMap={},e.mutationCb(w))}},this.processMutation=function(n){var r,i,o,s;if(!Zv(n.target))switch(n.type){case"characterData":{var a=n.target.textContent;!pn(n.target,e.blockClass)&&a!==n.oldValue&&e.texts.push({value:vu(n.target,e.maskTextClass,e.maskTextSelector)&&a?e.maskTextFn?e.maskTextFn(a):a.replace(/[\S]/g,"*"):a,node:n.target});break}case"attributes":{var l=n.target,a=n.target.getAttribute(n.attributeName);if(n.attributeName==="value"&&(a=sw({maskInputOptions:e.maskInputOptions,tagName:n.target.tagName,type:n.target.getAttribute("type"),value:a,maskInputFn:e.maskInputFn})),pn(n.target,e.blockClass)||a===n.oldValue)return;var c=e.attributes.find(function(b){return b.node===n.target});if(c||(c={node:n.target,attributes:{}},e.attributes.push(c)),n.attributeName==="style"){var u=e.doc.createElement("span");n.oldValue&&u.setAttribute("style",n.oldValue),(c.attributes.style===void 0||c.attributes.style===null)&&(c.attributes.style={});var d=c.attributes.style;try{for(var h=xo(Array.from(l.style)),f=h.next();!f.done;f=h.next()){var p=f.value,g=l.style.getPropertyValue(p),y=l.style.getPropertyPriority(p);(g!==u.style.getPropertyValue(p)||y!==u.style.getPropertyPriority(p))&&(y===""?d[p]=g:d[p]=[g,y])}}catch(b){r={error:b}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}try{for(var v=xo(Array.from(u.style)),_=v.next();!_.done;_=v.next()){var p=_.value;l.style.getPropertyValue(p)===""&&(d[p]=!1)}}catch(b){o={error:b}}finally{try{_&&!_.done&&(s=v.return)&&s.call(v)}finally{if(o)throw o.error}}}else c.attributes[n.attributeName]=UR(e.doc,n.target.tagName,n.attributeName,a);break}case"childList":{n.addedNodes.forEach(function(x){return e.genAdds(x,n.target)}),n.removedNodes.forEach(function(x){var b=e.mirror.getId(x),w=mu(n.target)?e.mirror.getId(n.target.host):e.mirror.getId(n.target);pn(n.target,e.blockClass)||Zv(x)||(e.addedSet.has(x)?(b_(e.addedSet,x),e.droppedSet.add(x)):e.addedSet.has(n.target)&&b===-1||GR(n.target,e.mirror)||(e.movedSet.has(x)&&e.movedMap[AC(b,w)]?b_(e.movedSet,x):e.removes.push({parentId:w,id:b,isShadow:mu(n.target)?!0:void 0})),e.mapRemoves.push(x))});break}}},this.genAdds=function(n,r){if(!(r&&pn(r,e.blockClass))){if(TC(n)){if(Zv(n))return;e.movedSet.add(n);var i=null;r&&TC(r)&&(i=r.__sn.id),i&&(e.movedMap[AC(n.__sn.id,i)]=!0)}else e.addedSet.add(n),e.droppedSet.delete(n);pn(n,e.blockClass)||n.childNodes.forEach(function(o){return e.genAdds(o)})}}}return t.prototype.init=function(e){var n=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(function(r){n[r]=e[r]})},t.prototype.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.prototype.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.prototype.isFrozen=function(){return this.frozen},t.prototype.lock=function(){this.locked=!0,this.canvasManager.lock()},t.prototype.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.prototype.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t}();function b_(t,e){t.delete(e),e.childNodes.forEach(function(n){return b_(t,n)})}function w_(t,e,n){var r=e.parentNode;if(!r)return!1;var i=n.getId(r);return t.some(function(o){return o.id===i})?!0:w_(t,r,n)}function S_(t,e){var n=e.parentNode;return n?t.has(n)?!0:S_(t,n):!1}const zH=FH;var Ls=[],KR=typeof CSSGroupingRule<"u",QR=typeof CSSMediaRule<"u",JR=typeof CSSSupportsRule<"u",t3=typeof CSSConditionRule<"u";function Qd(t){try{if("composedPath"in t){var e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0];return t.target}catch(n){return t.target}}function e3(t,e){var n,r,i=new zH;Ls.push(i),i.init(t);var o=window.MutationObserver||window.__rrMutationObserver,s=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");s&&window[s]&&(o=window[s]);var a=new o(i.processMutations.bind(i));return a.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function BH(t){var e=t.mousemoveCb,n=t.sampling,r=t.doc,i=t.mirror;if(n.mousemove===!1)return function(){};var o=typeof n.mousemove=="number"?n.mousemove:50,s=typeof n.mousemoveCallback=="number"?n.mousemoveCallback:500,a=[],l,c=xd(function(h){var f=Date.now()-l;e(a.map(function(p){return p.timeOffset-=f,p}),h),a=[],l=null},s),u=xd(function(h){var f=Qd(h),p=qR(h)?h.changedTouches[0]:h,g=p.clientX,y=p.clientY;l||(l=Date.now()),a.push({x:g,y,id:i.getId(f),timeOffset:Date.now()-l}),c(typeof DragEvent<"u"&&h instanceof DragEvent?Ve.Drag:h instanceof MouseEvent?Ve.MouseMove:Ve.TouchMove)},o,{trailing:!1}),d=[Yn("mousemove",u,r),Yn("touchmove",u,r),Yn("drag",u,r)];return function(){d.forEach(function(h){return h()})}}function jH(t){var e=t.mouseInteractionCb,n=t.doc,r=t.mirror,i=t.blockClass,o=t.sampling;if(o.mouseInteraction===!1)return function(){};var s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,a=[],l=function(c){return function(u){var d=Qd(u);if(!pn(d,i)){var h=qR(u)?u.changedTouches[0]:u;if(!!h){var f=r.getId(d),p=h.clientX,g=h.clientY;e({type:Cg[c],id:f,x:p,y:g})}}}};return Object.keys(Cg).filter(function(c){return Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&s[c]!==!1}).forEach(function(c){var u=c.toLowerCase(),d=l(c);a.push(Yn(u,d,n))}),function(){a.forEach(function(c){return c()})}}function n3(t){var e=t.scrollCb,n=t.doc,r=t.mirror,i=t.blockClass,o=t.sampling,s=xd(function(a){var l=Qd(a);if(!(!l||pn(l,i))){var c=r.getId(l);if(l===n){var u=n.scrollingElement||n.documentElement;e({id:c,x:u.scrollLeft,y:u.scrollTop})}else e({id:c,x:l.scrollLeft,y:l.scrollTop})}},o.scroll||100);return Yn("scroll",s,n)}function VH(t){var e=t.viewportResizeCb,n=-1,r=-1,i=xd(function(){var o=WR(),s=YR();(n!==o||r!==s)&&(e({width:Number(s),height:Number(o)}),n=o,r=s)},200);return Yn("resize",i,window)}function $C(t,e){var n=ge({},t);return e||delete n.userTriggered,n}var HH=["INPUT","TEXTAREA","SELECT"],MC=new WeakMap;function UH(t){var e=t.inputCb,n=t.doc,r=t.mirror,i=t.blockClass,o=t.ignoreClass,s=t.maskInputOptions,a=t.maskInputFn,l=t.sampling,c=t.userTriggeredOnInput;function u(y){var v=Qd(y),_=y.isTrusted;if(v&&v.tagName==="OPTION"&&(v=v.parentElement),!(!v||!v.tagName||HH.indexOf(v.tagName)<0||pn(v,i))){var x=v.type;if(!v.classList.contains(o)){var b=v.value,w=!1;x==="radio"||x==="checkbox"?w=v.checked:(s[v.tagName.toLowerCase()]||s[x])&&(b=sw({maskInputOptions:s,tagName:v.tagName,type:x,value:b,maskInputFn:a})),d(v,$C({text:b,isChecked:w,userTriggered:_},c));var S=v.name;x==="radio"&&S&&w&&n.querySelectorAll('input[type="radio"][name="'.concat(S,'"]')).forEach(function(E){E!==v&&d(E,$C({text:E.value,isChecked:!w,userTriggered:!1},c))})}}}function d(y,v){var _=MC.get(y);if(!_||_.text!==v.text||_.isChecked!==v.isChecked){MC.set(y,v);var x=r.getId(y);e(ge(ge({},v),{id:x}))}}var h=l.input==="last"?["change"]:["input","change"],f=h.map(function(y){return Yn(y,u,n)}),p=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),g=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return p&&p.set&&f.push.apply(f,ft([],ht(g.map(function(y){return c0(y[0],y[1],{set:function(){u({target:this})}})})),!1)),function(){f.forEach(function(y){return y()})}}function kg(t){var e=[];function n(r,i){if(KR&&r.parentRule instanceof CSSGroupingRule||QR&&r.parentRule instanceof CSSMediaRule||JR&&r.parentRule instanceof CSSSupportsRule||t3&&r.parentRule instanceof CSSConditionRule){var o=Array.from(r.parentRule.cssRules),s=o.indexOf(r);i.unshift(s)}else{var o=Array.from(r.parentStyleSheet.cssRules),s=o.indexOf(r);i.unshift(s)}return i}return n(t,e)}function WH(t,e){var n=t.styleSheetRuleCb,r=t.mirror,i=e.win,o=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(c,u){var d=r.getId(this.ownerNode);return d!==-1&&n({id:d,adds:[{rule:c,index:u}]}),o.apply(this,arguments)};var s=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(c){var u=r.getId(this.ownerNode);return u!==-1&&n({id:u,removes:[{index:c}]}),s.apply(this,arguments)};var a={};KR?a.CSSGroupingRule=i.CSSGroupingRule:(QR&&(a.CSSMediaRule=i.CSSMediaRule),t3&&(a.CSSConditionRule=i.CSSConditionRule),JR&&(a.CSSSupportsRule=i.CSSSupportsRule));var l={};return Object.entries(a).forEach(function(c){var u=ht(c,2),d=u[0],h=u[1];l[d]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=function(f,p){var g=r.getId(this.parentStyleSheet.ownerNode);return g!==-1&&n({id:g,adds:[{rule:f,index:ft(ft([],ht(kg(this)),!1),[p||0],!1)}]}),l[d].insertRule.apply(this,arguments)},h.prototype.deleteRule=function(f){var p=r.getId(this.parentStyleSheet.ownerNode);return p!==-1&&n({id:p,removes:[{index:ft(ft([],ht(kg(this)),!1),[f],!1)}]}),l[d].deleteRule.apply(this,arguments)}}),function(){i.CSSStyleSheet.prototype.insertRule=o,i.CSSStyleSheet.prototype.deleteRule=s,Object.entries(a).forEach(function(c){var u=ht(c,2),d=u[0],h=u[1];h.prototype.insertRule=l[d].insertRule,h.prototype.deleteRule=l[d].deleteRule})}}function YH(t,e){var n=t.styleDeclarationCb,r=t.mirror,i=e.win,o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=function(a,l,c){var u,d,h=r.getId((d=(u=this.parentRule)===null||u===void 0?void 0:u.parentStyleSheet)===null||d===void 0?void 0:d.ownerNode);return h!==-1&&n({id:h,set:{property:a,value:l,priority:c},index:kg(this.parentRule)}),o.apply(this,arguments)};var s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=function(a){var l,c,u=r.getId((c=(l=this.parentRule)===null||l===void 0?void 0:l.parentStyleSheet)===null||c===void 0?void 0:c.ownerNode);return u!==-1&&n({id:u,remove:{property:a},index:kg(this.parentRule)}),s.apply(this,arguments)},function(){i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s}}function GH(t){var e=t.mediaInteractionCb,n=t.blockClass,r=t.mirror,i=t.sampling,o=function(a){return xd(function(l){var c=Qd(l);if(!(!c||pn(c,n))){var u=c,d=u.currentTime,h=u.volume,f=u.muted;e({type:a,id:r.getId(c),currentTime:d,volume:h,muted:f})}},i.media||500)},s=[Yn("play",o(0)),Yn("pause",o(1)),Yn("seeked",o(2)),Yn("volumechange",o(3))];return function(){s.forEach(function(a){return a()})}}function qH(t){var e=t.fontCb,n=t.doc,r=n.defaultView;if(!r)return function(){};var i=[],o=new WeakMap,s=r.FontFace;r.FontFace=function(c,u,d){var h=new s(c,u,d);return o.set(h,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),h};var a=Dl(n.fonts,"add",function(l){return function(c){return setTimeout(function(){var u=o.get(c);u&&(e(u),o.delete(c))},0),l.apply(this,[c])}});return i.push(function(){r.FontFace=s}),i.push(a),function(){i.forEach(function(l){return l()})}}function ZH(t,e){var n=t.mutationCb,r=t.mousemoveCb,i=t.mouseInteractionCb,o=t.scrollCb,s=t.viewportResizeCb,a=t.inputCb,l=t.mediaInteractionCb,c=t.styleSheetRuleCb,u=t.styleDeclarationCb,d=t.canvasMutationCb,h=t.fontCb;t.mutationCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];e.mutation&&e.mutation.apply(e,ft([],ht(f),!1)),n.apply(void 0,ft([],ht(f),!1))},t.mousemoveCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];e.mousemove&&e.mousemove.apply(e,ft([],ht(f),!1)),r.apply(void 0,ft([],ht(f),!1))},t.mouseInteractionCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];e.mouseInteraction&&e.mouseInteraction.apply(e,ft([],ht(f),!1)),i.apply(void 0,ft([],ht(f),!1))},t.scrollCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];e.scroll&&e.scroll.apply(e,ft([],ht(f),!1)),o.apply(void 0,ft([],ht(f),!1))},t.viewportResizeCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];e.viewportResize&&e.viewportResize.apply(e,ft([],ht(f),!1)),s.apply(void 0,ft([],ht(f),!1))},t.inputCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];e.input&&e.input.apply(e,ft([],ht(f),!1)),a.apply(void 0,ft([],ht(f),!1))},t.mediaInteractionCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];e.mediaInteaction&&e.mediaInteaction.apply(e,ft([],ht(f),!1)),l.apply(void 0,ft([],ht(f),!1))},t.styleSheetRuleCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];e.styleSheetRule&&e.styleSheetRule.apply(e,ft([],ht(f),!1)),c.apply(void 0,ft([],ht(f),!1))},t.styleDeclarationCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];e.styleDeclaration&&e.styleDeclaration.apply(e,ft([],ht(f),!1)),u.apply(void 0,ft([],ht(f),!1))},t.canvasMutationCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];e.canvasMutation&&e.canvasMutation.apply(e,ft([],ht(f),!1)),d.apply(void 0,ft([],ht(f),!1))},t.fontCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];e.font&&e.font.apply(e,ft([],ht(f),!1)),h.apply(void 0,ft([],ht(f),!1))}}function XH(t,e){var n,r;e===void 0&&(e={});var i=t.doc.defaultView;if(!i)return function(){};ZH(t,e);var o=e3(t,t.doc),s=BH(t),a=jH(t),l=n3(t),c=VH(t),u=UH(t),d=GH(t),h=WH(t,{win:i}),f=YH(t,{win:i}),p=t.collectFonts?qH(t):function(){},g=[];try{for(var y=xo(t.plugins),v=y.next();!v.done;v=y.next()){var _=v.value;g.push(_.observer(_.callback,i,_.options))}}catch(x){n={error:x}}finally{try{v&&!v.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}return function(){Ls.forEach(function(x){return x.reset()}),o.disconnect(),s(),a(),l(),c(),u(),d(),h(),f(),p(),g.forEach(function(x){return x()})}}var KH=function(){function t(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}return t.prototype.addIframe=function(e){this.iframes.set(e,!0)},t.prototype.addLoadListener=function(e){this.loadListener=e},t.prototype.attachIframe=function(e,n){var r;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,e)},t}(),QH=function(){function t(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;var n=this;this.restorePatches.push(Dl(HTMLElement.prototype,"attachShadow",function(r){return function(){var i=r.apply(this,arguments);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),i}}))}return t.prototype.addShadowRoot=function(e,n){e3(ge(ge({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),n3(ge(ge({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))},t.prototype.observeAttachShadow=function(e){if(e.contentWindow){var n=this;this.restorePatches.push(Dl(e.contentWindow.HTMLElement.prototype,"attachShadow",function(r){return function(){var i=r.apply(this,arguments);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,e.contentDocument),i}}))}},t.prototype.reset=function(){this.restorePatches.forEach(function(e){return e()})},t}();function JH(t,e,n,r){var i,o,s=[],a=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype),l=function(h){try{if(typeof e.CanvasRenderingContext2D.prototype[h]!="function")return"continue";var f=Dl(e.CanvasRenderingContext2D.prototype,h,function(g){return function(){for(var y=this,v=[],_=0;_<arguments.length;_++)v[_]=arguments[_];return pn(this.canvas,n)||setTimeout(function(){var x=ft([],ht(v),!1);if(h==="drawImage"&&x[0]&&x[0]instanceof HTMLCanvasElement){var b=x[0],w=b.getContext("2d"),S=w==null?void 0:w.getImageData(0,0,b.width,b.height),E=S==null?void 0:S.data;x[0]=JSON.stringify(E)}t(y.canvas,{type:Ll["2D"],property:h,args:x})},0),g.apply(this,v)}});s.push(f)}catch(g){var p=c0(e.CanvasRenderingContext2D.prototype,h,{set:function(y){t(this.canvas,{type:Ll["2D"],property:h,args:[y],setter:!0})}});s.push(p)}};try{for(var c=xo(a),u=c.next();!u.done;u=c.next()){var d=u.value;l(d)}}catch(h){i={error:h}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return function(){s.forEach(function(h){return h()})}}function tU(t,e){var n=[];try{var r=Dl(t.HTMLCanvasElement.prototype,"getContext",function(i){return function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return pn(this,e)||"__context"in this||(this.__context=o),i.apply(this,ft([o],ht(s),!1))}});n.push(r)}catch(i){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){n.forEach(function(i){return i()})}}var Za="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eU=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Gh=0;Gh<Za.length;Gh++)eU[Za.charCodeAt(Gh)]=Gh;var nU=function(t){var e=new Uint8Array(t),n,r=e.length,i="";for(n=0;n<r;n+=3)i+=Za[e[n]>>2],i+=Za[(e[n]&3)<<4|e[n+1]>>4],i+=Za[(e[n+1]&15)<<2|e[n+2]>>6],i+=Za[e[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i},PC=new Map;function rU(t,e){var n=PC.get(t);return n||(n=new Map,PC.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}var r3=function(t,e,n){if(!(!t||!(i3(t,e)||typeof t=="object"))){var r=t.constructor.name,i=rU(n,r),o=i.indexOf(t);return o===-1&&(o=i.length,i.push(t)),o}};function mp(t,e,n){if(t instanceof Array)return t.map(function(h){return mp(h,e,n)});if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray){var r=t.constructor.name;return{rr_type:r,args:[Object.values(t)]}}else if(t instanceof ArrayBuffer){var i=t.constructor.name,o=nU(t);return{rr_type:i,base64:o}}else if(t instanceof DataView){var s=t.constructor.name;return{rr_type:s,args:[mp(t.buffer,e,n),t.byteOffset,t.byteLength]}}else if(t instanceof HTMLImageElement){var a=t.constructor.name,l=t.src;return{rr_type:a,src:l}}else if(t instanceof ImageData){var c=t.constructor.name;return{rr_type:c,args:[mp(t.data,e,n),t.width,t.height]}}else if(i3(t,e)||typeof t=="object"){var u=t.constructor.name,d=r3(t,e,n);return{rr_type:u,index:d}}return t}var iU=function(t,e,n){return ft([],ht(t),!1).map(function(r){return mp(r,e,n)})},i3=function(t,e){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],r=n.filter(function(i){return typeof e[i]=="function"});return Boolean(r.find(function(i){return t instanceof e[i]}))};function OC(t,e,n,r,i,o){var s,a,l=[],c=Object.getOwnPropertyNames(t),u=function(p){try{if(typeof t[p]!="function")return"continue";var g=Dl(t,p,function(v){return function(){for(var _=[],x=0;x<arguments.length;x++)_[x]=arguments[x];var b=v.apply(this,_);if(r3(b,o,t),!pn(this.canvas,r)){var w=i.getId(this.canvas),S=iU(ft([],ht(_),!1),o,t),E={type:e,property:p,args:S};n(this.canvas,E)}return b}});l.push(g)}catch(v){var y=c0(t,p,{set:function(_){n(this.canvas,{type:e,property:p,args:[_],setter:!0})}});l.push(y)}};try{for(var d=xo(c),h=d.next();!h.done;h=d.next()){var f=h.value;u(f)}}catch(p){s={error:p}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(s)throw s.error}}return l}function oU(t,e,n,r){var i=[];return i.push.apply(i,ft([],ht(OC(e.WebGLRenderingContext.prototype,Ll.WebGL,t,n,r,e)),!1)),typeof e.WebGL2RenderingContext<"u"&&i.push.apply(i,ft([],ht(OC(e.WebGL2RenderingContext.prototype,Ll.WebGL2,t,n,r,e)),!1)),function(){i.forEach(function(o){return o()})}}var sU=function(){function t(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(n,r){var i=this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId;(i||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(n)||this.pendingCanvasMutations.set(n,[]),this.pendingCanvasMutations.get(n).push(r)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,e.recordCanvas===!0&&this.initCanvasMutationObserver(e.win,e.blockClass)}return t.prototype.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.prototype.freeze=function(){this.frozen=!0},t.prototype.unfreeze=function(){this.frozen=!1},t.prototype.lock=function(){this.locked=!0},t.prototype.unlock=function(){this.locked=!1},t.prototype.initCanvasMutationObserver=function(e,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r=tU(e,n),i=JH(this.processMutation.bind(this),e,n,this.mirror),o=oU(this.processMutation.bind(this),e,n,this.mirror);this.resetObservers=function(){r(),i(),o()}},t.prototype.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.prototype.startRAFTimestamping=function(){var e=this,n=function(r){e.rafStamps.latestId=r,requestAnimationFrame(n)};requestAnimationFrame(n)},t.prototype.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(n,r){var i=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.prototype.flushPendingCanvasMutationFor=function(e,n){if(!(this.frozen||this.locked)){var r=this.pendingCanvasMutations.get(e);if(!(!r||n===-1)){var i=r.map(function(s){s.type;var a=hH(s,["type"]);return a}),o=r[0].type;this.mutationCb({id:n,type:o,commands:i}),this.pendingCanvasMutations.delete(e)}}},t}();function Be(t){return ge(ge({},t),{timestamp:Date.now()})}var Ce,_u,Xc=DH();function Zo(t){t===void 0&&(t={});var e=t.emit,n=t.checkoutEveryNms,r=t.checkoutEveryNth,i=t.blockClass,o=i===void 0?"rr-block":i,s=t.blockSelector,a=s===void 0?null:s,l=t.ignoreClass,c=l===void 0?"rr-ignore":l,u=t.maskTextClass,d=u===void 0?"rr-mask":u,h=t.maskTextSelector,f=h===void 0?null:h,p=t.inlineStylesheet,g=p===void 0?!0:p,y=t.maskAllInputs,v=t.maskInputOptions,_=t.slimDOMOptions,x=t.maskInputFn,b=t.maskTextFn,w=t.hooks,S=t.packFn,E=t.sampling,C=E===void 0?{}:E,A=t.mousemoveWait,k=t.recordCanvas,$=k===void 0?!1:k,M=t.userTriggeredOnInput,I=M===void 0?!1:M,F=t.collectFonts,L=F===void 0?!1:F,Y=t.inlineImages,X=Y===void 0?!1:Y,z=t.plugins,W=t.keepIframeSrcFn,P=W===void 0?function(){return!1}:W;if(!e)throw new Error("emit function is required");A!==void 0&&C.mousemove===void 0&&(C.mousemove=A);var G=y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:v!==void 0?v:{password:!0},U=_===!0||_==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_==="all",headMetaDescKeywords:_==="all"}:_||{};IH();var B,R=0,j=function(st){var ee,tt;try{for(var wt=xo(z||[]),Gt=wt.next();!Gt.done;Gt=wt.next()){var Ee=Gt.value;Ee.eventProcessor&&(st=Ee.eventProcessor(st))}}catch(_n){ee={error:_n}}finally{try{Gt&&!Gt.done&&(tt=wt.return)&&tt.call(wt)}finally{if(ee)throw ee.error}}return S&&(st=S(st)),st};Ce=function(st,ee){var tt;if(((tt=Ls[0])===null||tt===void 0?void 0:tt.isFrozen())&&st.type!==Ft.FullSnapshot&&!(st.type===Ft.IncrementalSnapshot&&st.data.source===Ve.Mutation)&&Ls.forEach(function(Ee){return Ee.unfreeze()}),e(j(st),ee),st.type===Ft.FullSnapshot)B=st,R=0;else if(st.type===Ft.IncrementalSnapshot){if(st.data.source===Ve.Mutation&&st.data.isAttachIframe)return;R++;var wt=r&&R>=r,Gt=n&&st.timestamp-B.timestamp>n;(wt||Gt)&&_u(!0)}};var K=function(st){Ce(Be({type:Ft.IncrementalSnapshot,data:ge({source:Ve.Mutation},st)}))},it=function(st){return Ce(Be({type:Ft.IncrementalSnapshot,data:ge({source:Ve.Scroll},st)}))},Yt=function(st){return Ce(Be({type:Ft.IncrementalSnapshot,data:ge({source:Ve.CanvasMutation},st)}))},fe=new KH({mutationCb:K}),tr=new sU({recordCanvas:$,mutationCb:Yt,win:window,blockClass:o,mirror:Xc}),xr=new QH({mutationCb:K,scrollCb:it,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:f,inlineStylesheet:g,maskInputOptions:G,maskTextFn:b,maskInputFn:x,recordCanvas:$,inlineImages:X,sampling:C,slimDOMOptions:U,iframeManager:fe,canvasManager:tr},mirror:Xc});_u=function(st){var ee,tt,wt,Gt;st===void 0&&(st=!1),Ce(Be({type:Ft.Meta,data:{href:window.location.href,width:YR(),height:WR()}}),st),Ls.forEach(function(Ot){return Ot.lock()});var Ee=ht(LH(document,{blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:f,inlineStylesheet:g,maskAllInputs:G,maskTextFn:b,slimDOM:U,recordCanvas:$,inlineImages:X,onSerialize:function(Ot){ZR(Ot)&&fe.addIframe(Ot),XR(Ot)&&xr.addShadowRoot(Ot.shadowRoot,document)},onIframeLoad:function(Ot,pe){fe.attachIframe(Ot,pe),xr.observeAttachShadow(Ot)},keepIframeSrcFn:P}),2),_n=Ee[0],xc=Ee[1];if(!_n)return console.warn("Failed to snapshot the document");Xc.map=xc,Ce(Be({type:Ft.FullSnapshot,data:{node:_n,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:(document==null?void 0:document.documentElement.scrollLeft)||((tt=(ee=document==null?void 0:document.body)===null||ee===void 0?void 0:ee.parentElement)===null||tt===void 0?void 0:tt.scrollLeft)||(document==null?void 0:document.body.scrollLeft)||0,top:window.pageYOffset!==void 0?window.pageYOffset:(document==null?void 0:document.documentElement.scrollTop)||((Gt=(wt=document==null?void 0:document.body)===null||wt===void 0?void 0:wt.parentElement)===null||Gt===void 0?void 0:Gt.scrollTop)||(document==null?void 0:document.body.scrollTop)||0}}})),Ls.forEach(function(Ot){return Ot.unlock()})};try{var ln=[];ln.push(Yn("DOMContentLoaded",function(){Ce(Be({type:Ft.DomContentLoaded,data:{}}))}));var Nr=function(st){var ee;return XH({mutationCb:K,mousemoveCb:function(tt,wt){return Ce(Be({type:Ft.IncrementalSnapshot,data:{source:wt,positions:tt}}))},mouseInteractionCb:function(tt){return Ce(Be({type:Ft.IncrementalSnapshot,data:ge({source:Ve.MouseInteraction},tt)}))},scrollCb:it,viewportResizeCb:function(tt){return Ce(Be({type:Ft.IncrementalSnapshot,data:ge({source:Ve.ViewportResize},tt)}))},inputCb:function(tt){return Ce(Be({type:Ft.IncrementalSnapshot,data:ge({source:Ve.Input},tt)}))},mediaInteractionCb:function(tt){return Ce(Be({type:Ft.IncrementalSnapshot,data:ge({source:Ve.MediaInteraction},tt)}))},styleSheetRuleCb:function(tt){return Ce(Be({type:Ft.IncrementalSnapshot,data:ge({source:Ve.StyleSheetRule},tt)}))},styleDeclarationCb:function(tt){return Ce(Be({type:Ft.IncrementalSnapshot,data:ge({source:Ve.StyleDeclaration},tt)}))},canvasMutationCb:Yt,fontCb:function(tt){return Ce(Be({type:Ft.IncrementalSnapshot,data:ge({source:Ve.Font},tt)}))},blockClass:o,ignoreClass:c,maskTextClass:d,maskTextSelector:f,maskInputOptions:G,inlineStylesheet:g,sampling:C,recordCanvas:$,inlineImages:X,userTriggeredOnInput:I,collectFonts:L,doc:st,maskInputFn:x,maskTextFn:b,blockSelector:a,slimDOMOptions:U,mirror:Xc,iframeManager:fe,shadowDomManager:xr,canvasManager:tr,plugins:((ee=z==null?void 0:z.filter(function(tt){return tt.observer}))===null||ee===void 0?void 0:ee.map(function(tt){return{observer:tt.observer,options:tt.options,callback:function(wt){return Ce(Be({type:Ft.Plugin,data:{plugin:tt.name,payload:wt}}))}}}))||[]},w)};fe.addLoadListener(function(st){try{ln.push(Nr(st.contentDocument))}catch(ee){console.warn("error in rrweb iframe observer",ee)}});var er=function(){_u(),ln.push(Nr(document))};return document.readyState==="interactive"||document.readyState==="complete"?er():ln.push(Yn("load",function(){Ce(Be({type:Ft.Load,data:{}})),er()},window)),function(){ln.forEach(function(st){return st()})}}catch(st){console.warn(st)}}Zo.addCustomEvent=function(t,e){if(!Ce)throw new Error("please add custom event after start recording");Ce(Be({type:Ft.Custom,data:{tag:t,payload:e}}))};Zo.freezePage=function(){Ls.forEach(function(t){return t.freeze()})};Zo.takeFullSnapshot=function(t){if(!_u)throw new Error("please take full snapshot after start recording");_u(t)};Zo.mirror=Xc;const aU=["name","type","startTime","transferSize","duration"];function RC(t){return function(e){return aU.every(n=>t[n]===e[n])}}function lU(t,e){const[n,r,i]=t.reduce((l,c)=>(c.entryType==="navigation"?l[0].push(c):c.entryType==="largest-contentful-paint"?l[1].push(c):l[2].push(c),l),[[],[],[]]),o=[],s=[];let a=r.length?r[r.length-1]:void 0;return e.forEach(l=>{if(l.entryType==="largest-contentful-paint"){(!a||a.startTime<l.startTime)&&(a=l);return}if(l.entryType==="navigation"){const c=l;l.duration>0&&!n.find(RC(c))&&!s.find(RC(c))&&s.push(c);return}o.push(l)}),[...a?[a]:[],...n,...i,...o,...s].sort((l,c)=>l.startTime-c.startTime)}function cU(t){const e=r=>{const i=lU(t.performanceEvents,r.getEntries());t.performanceEvents=i},n=new PerformanceObserver(e);return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(r=>{try{n.observe({type:r,buffered:!0})}catch(i){}}),n}const uU=`/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
61
- function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},S=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let U=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var O=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);S(t,t.dyn_ltree,e-1),S(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},T={_tr_init:t=>{U||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),U=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:O,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var N=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const F=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var L=(t,e,a,i)=>{const n=F,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=T,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:J,Z_OK:W,Z_STREAM_END:q,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=N(t.adler,e,n,a):2===t.state.wrap&&(t.adler=L(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),W},Zt=t=>{const e=Rt(t);var a;return e===W&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},St=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var Ut={deflateInit:(t,e)=>St(t,e,ot,15,8,st),deflateInit2:St,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,W),deflate:(t,e)=>{if(Et(t)||e>J||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,W}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=L(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=L(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,W;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=L(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,W;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,W;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,W;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),W;if(2===i&&(e===Y?K(a):e!==J&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,W}return e!==X?W:a.wrap<=0?q:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?W:q)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):W},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=N(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,W},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Ot=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Tt=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Nt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Nt=!1}const Ft=new Uint8Array(256);for(let t=0;t<256;t++)Ft[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ft[254]=Ft[254]=1;var Lt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Ft[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Nt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Ft[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Jt,Z_DEFLATED:Wt}=B;function qt(t){this.options=Ot({level:Xt,method:Wt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Jt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ut.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&Ut.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Lt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=Ut.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new qt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}qt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Lt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=Ut.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=Ut.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},qt.prototype.onData=function(t){this.chunks.push(t)},qt.prototype.onEnd=function(t){t===Yt&&(this.result=Tt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:qt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,S,U,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(S=0,U=r[m]):r[m]>=u?(S=D[r[m]-u],U=A[r[m]-u]):(S=96,U=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|S<<16|U|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Se={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=L(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?L(a.check,n,f,r-f):N(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?L(a.check,n,f,t.next_out-f):N(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=N(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Ue=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Oe,Z_FINISH:Te,Z_OK:Ne,Z_STREAM_END:Fe,Z_NEED_DICT:Le,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Ot({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Se.inflateInit2(this.strm,e.windowBits);if(a!==Ne)throw new Error(I[a]);if(this.header=new Ue,Se.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Lt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Se.inflateSetDictionary(this.strm,e.dictionary),a!==Ne)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Te:Oe,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Se.inflate(a,r),s===Le&&n&&(s=Se.inflateSetDictionary(a,n),s===Ne?s=Se.inflate(a,r):s===Be&&(s=Le));a.avail_in>0&&s===Fe&&a.state.wrap>0&&0!==t[a.next_in];)Se.inflateReset(a),s=Se.inflate(a,r);switch(s){case Ie:case Be:case Le:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Fe))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Ne||0!==o){if(s===Fe)return s=Se.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Ne&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Tt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=B;const Xe=new class{constructor(){this.added=0,this.init()}init(){this.added=0,this.deflate=new Ye,this.deflate.push("[",Ge.Z_NO_FLUSH)}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this.added>0?",":"";this.deflate.push(e+JSON.stringify(t),Ge.Z_SYNC_FLUSH),this.added++}finish(){if(this.deflate.push("]",Ge.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this.init(),t}},Je={init:()=>(Xe.init(),""),addEvent:t=>Xe.addEvent(t),finish:()=>Xe.finish()};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,[i]=t.data.args?JSON.parse(t.data.args):[];if(e in Je&&"function"==typeof Je[e])try{const t=Je[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function dU({useCompression:t}){if(t&&window.Worker){const e=new Blob([uU]),n=URL.createObjectURL(e);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Using compression worker");const r=new Worker(n);return new hU(r)}return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Using simple buffer"),new o3}class hU{constructor(e){this._fallback=new o3,this._compression=new xu(e),this._used=this._fallback,this._ensureWorkerIsLoaded()}get pendingLength(){return this._used.pendingLength}get pendingEvents(){return this._used.pendingEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}addEvent(e,n){return this._used.addEvent(e,n)}finish(){return this._used.finish()}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Failed to load the compression worker, falling back to simple buffer");return}const e=[];for(const n of this._fallback.pendingEvents)e.push(this._compression.addEvent(n));this._used=this._compression,await Promise.all(e)}}class o3{constructor(){this._events=[]}get pendingLength(){return this._events.length}get pendingEvents(){return this._events}destroy(){this._events=[]}async addEvent(e,n){if(n){this._events=[e];return}this._events.push(e)}finish(){return new Promise(e=>{const n=this._events;this._events=[],e(JSON.stringify(n))})}}class xu{__init(){this._pendingEvents=[]}__init2(){this._eventBufferItemLength=0}__init3(){this._id=0}constructor(e){xu.prototype.__init.call(this),xu.prototype.__init2.call(this),xu.prototype.__init3.call(this),this._worker=e}get pendingLength(){return this._eventBufferItemLength}get pendingEvents(){return this._pendingEvents}ensureReady(){return new Promise((e,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})})}destroy(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Destroying compression worker"),this._worker.terminate()}async addEvent(e,n){return n&&await this._postMessage({id:this._getAndIncrementId(),method:"init",args:[]}),n||this._pendingEvents.push(e),this._sendEventToWorker(e)}finish(){return this._finishRequest(this._getAndIncrementId())}_postMessage({id:e,method:n,args:r}){return new Promise((i,o)=>{const s=({data:l})=>{if(l.method===n&&l.id===e){if(this._worker.removeEventListener("message",s),!l.success){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay]",l.response),o(new Error("Error in compression worker"));return}i(l.response)}};let a;try{a=JSON.stringify(r)}catch(l){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay] Error when trying to stringify args",l),a="[]"}this._worker.addEventListener("message",s),this._worker.postMessage({id:e,method:n,args:a})})}async _sendEventToWorker(e){const n=this._postMessage({id:this._getAndIncrementId(),method:"addEvent",args:[e]});return this._eventBufferItemLength++,n}async _finishRequest(e){const n=this._postMessage({id:e,method:"finish",args:[]});return this._eventBufferItemLength=0,await n,this._pendingEvents=[],n}_getAndIncrementId(){return this._id++}}function E_(t,e,n=+new Date){return t===null||e===void 0||e<0?!0:e===0?!1:t+e<=n}function s3(t,e,n=+new Date){return E_(t.started,HR,n)||E_(t.lastActivity,e,n)}function a3(t){if("sessionStorage"in Oe)try{Oe.sessionStorage.setItem(jR,JSON.stringify(t))}catch(n){}}function LC(t){return t===void 0?!1:Math.random()<t}function l3(t){const e=new Date().getTime(),n=t.id||$i(),r=t.started||e,i=t.lastActivity||e,o=t.segmentId||0,s=t.sampled;return{id:n,started:r,lastActivity:i,segmentId:o,sampled:s}}function fU(t,e){return LC(t)?"session":LC(e)?"error":!1}function pU({sessionSampleRate:t,errorSampleRate:e,stickySession:n=!1}){const r=fU(t,e),i=l3({sampled:r});return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Replay] Creating new session: ${i.id}`),n&&a3(i),i}function gU(){if(!("sessionStorage"in Oe))return null;try{const e=Oe.sessionStorage.getItem(jR);if(!e)return null;const n=JSON.parse(e);return l3(n)}catch(e){return null}}function mU({expiry:t,currentSession:e,stickySession:n,sessionSampleRate:r,errorSampleRate:i}){const o=e||n&&gU();if(o)if(s3(o,t))(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Session has expired");else return{type:"saved",session:o};return{type:"new",session:pU({stickySession:n,sessionSampleRate:r,errorSampleRate:i})}}async function Ag(t,e,n){if(!t.eventBuffer||t.isPaused())return null;const i=e.timestamp>9999999999?e.timestamp:e.timestamp*1e3;if(i+gu<new Date().getTime())return null;const o=t.getContext().earliestEvent;return t.session&&t.session.segmentId===0&&(!o||i<o)&&(t.getContext().earliestEvent=i),t.eventBuffer.addEvent(e,n)}function Tg(t){return{timestamp:new Date().getTime()/1e3,type:"default",...t}}function c3(t,e){e.category!=="sentry.transaction"&&(e.category==="ui.click"?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(Ag(t,{type:Ft.Custom,timestamp:(e.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:e}}),e.category==="console")))}const vU=t=>e=>{if(!t.isEnabled())return;const n=yU(e);!n||c3(t,n)};function yU(t){let e,n;try{n=_U(t),e=Ml(n)}catch(r){e="<unknown>"}return e.length===0?null:Tg({category:`ui.${t.name}`,message:e,data:{...n?{nodeId:Zo.mirror.getId(n)}:{}}})}function _U(t){return xU(t.event)?t.event.target:t.event}function xU(t){return!!t.target}function Jd(t,e){return e.map(({type:n,start:r,end:i,name:o,data:s})=>Ag(t,{type:Ft.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:i,data:s}}}))}function u3(t,e){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&t.getOptions()._experiments.traceInternals?!1:!bU(e)}function bU(t){const e=xt().getClient(),n=e&&e.getDsn();return n?t.includes(n.host):!1}function wU(t){if(!t.endTimestamp)return null;const{startTimestamp:e,endTimestamp:n,fetchData:r,response:i}=t;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:r.url,data:{method:r.method,statusCode:i.status}}}function SU(t){return e=>{if(!t.isEnabled())return;const n=wU(e);n!==null&&(u3(t,n.name)||t.addUpdate(()=>(Jd(t,[n]),!0)))}}function EU(t){return t.type||!t.exception||!t.exception.values||!t.exception.values.length?!1:t.exception.values.some(e=>!e.stacktrace||!e.stacktrace.frames||!e.stacktrace.frames.length?!1:e.stacktrace.frames.some(n=>n.filename&&n.filename.includes("/rrweb/src/")))}function CU(t){return e=>{if(e.type===VR)return delete e.breadcrumbs,e;if(EU(e)&&!t.getOptions()._experiments.captureExceptions)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Ignoring error from rrweb internals",e),null;if((!e.type||t.recordingMode==="session")&&(e.tags={...e.tags,replayId:t.getSessionId()}),e.type==="transaction"&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id)return t.getContext().traceIds.add(e.contexts.trace.trace_id),e;if(e.type||t.getContext().errorIds.add(e.event_id),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&t.getOptions()._experiments.traceInternals){const n=AU(e);kU({message:`Tagging event (${e.event_id}) - ${e.message} - ${n.type}: ${n.value}`})}return t.recordingMode==="error"&&e.exception&&e.message!==ow&&setTimeout(async()=>{await t.flushImmediate(),t.stopRecording()&&(t.recordingMode="session",t.startRecording())}),e}}function kU(t){const{category:e,level:n,message:r,...i}=t;ER({category:e||"console",level:n||"debug",message:`[debug]: ${r}`,...i})}function AU(t){return{type:"Unknown",value:"n/a",...t.exception&&t.exception.values&&t.exception.values[0]}}function TU(t){const{from:e,to:n}=t,r=new Date().getTime()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function $U(t){return e=>{if(!t.isEnabled())return;const n=TU(e);n!==null&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(Jd(t,[n]),!1)))}}let DC=null;const MU=t=>e=>{if(!t.isEnabled())return;const n=PU(e);!n||c3(t,n)};function PU(t){const e=t.getLastBreadcrumb();return DC===e||!e||(DC=e,e.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")))?null:Tg(e)}function OU(t){if(t.xhr.__sentry_own_request__||(t.startTimestamp&&(t.xhr.__sentry_xhr__=t.xhr.__sentry_xhr__||{},t.xhr.__sentry_xhr__.startTimestamp=t.startTimestamp),!t.endTimestamp))return null;const{method:e,url:n,status_code:r}=t.xhr.__sentry_xhr__||{};if(n===void 0)return null;const i=t.xhr.__sentry_xhr__?t.xhr.__sentry_xhr__.startTimestamp||0:t.endTimestamp;return{type:"resource.xhr",name:n,start:i/1e3,end:t.endTimestamp/1e3,data:{method:e,statusCode:r}}}function RU(t){return e=>{if(!t.isEnabled())return;const n=OU(e);n!==null&&(u3(t,n.name)||t.addUpdate(()=>(Jd(t,[n]),!0)))}}function LU(t){const e=xt().getScope();e&&e.addScopeListener(MU(t)),We("dom",vU(t)),We("fetch",SU(t)),We("xhr",RU(t)),We("history",$U(t)),s0(CU(t))}async function DU(t){try{return Promise.all(Jd(t,[IU(Oe.performance.memory)]))}catch(e){return[]}}function IU(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,i=new Date().getTime()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}const IC={resource:jU,paint:zU,navigation:BU,["largest-contentful-paint"]:VU};function NU(t){return t.map(FU).filter(Boolean)}function FU(t){return IC[t.entryType]===void 0?null:IC[t.entryType](t)}function Il(t){return((Pl||Oe.performance.timeOrigin)+t)/1e3}function zU(t){const{duration:e,entryType:n,name:r,startTime:i}=t,o=Il(i);return{type:n,name:r,start:o,end:o+e}}function BU(t){const{entryType:e,name:n,duration:r,domComplete:i,startTime:o,transferSize:s,type:a}=t;return r===0?null:{type:`${e}.${a}`,start:Il(o),end:Il(i),name:n,data:{size:s,duration:r}}}function jU(t){const{entryType:e,initiatorType:n,name:r,responseEnd:i,startTime:o,encodedBodySize:s,transferSize:a}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:Il(o),end:Il(i),name:r,data:{size:a,encodedBodySize:s}}}function VU(t){const{duration:e,entryType:n,startTime:r,size:i}=t,o=Il(r);return{type:n,name:n,start:o,end:o+e,data:{duration:e,size:i,nodeId:Zo.mirror.getId(t.element)}}}function HU(t,e,n){let r,i,o;const s=n&&n.maxWait?Math.max(n.maxWait,e):0;function a(){return l(),r=t(),r}function l(){i!==void 0&&clearTimeout(i),o!==void 0&&clearTimeout(o),i=o=void 0}function c(){return i!==void 0||o!==void 0?a():r}function u(){return i&&clearTimeout(i),i=setTimeout(a,e),s&&o===void 0&&s!==e&&(o=setTimeout(a,s)),r}return u.cancel=l,u.flush=c,u}let C_;function UU(t){const e=xt().getClient();if(!e)return;const n=e.recordDroppedEvent.bind(e),r=(i,o,s)=>(s&&!s.type&&s.event_id&&t.delete(s.event_id),n(i,o,s));e.recordDroppedEvent=r,C_=n}function WU(){const t=xt().getClient();!t||!C_||(t.recordDroppedEvent=C_)}function YU(t,e,n,r){return Xd(mR(t,Jb(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function GU({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}
62
- `;if(typeof t=="string")n=`${r}${t}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+t.length),n.set(o),n.set(t,o.length)}return n}async function qU({client:t,scope:e,replayId:n,event:r}){const i=await AR(t.getOptions(),r,{event_id:n},e);if(!i)return null;i.platform=i.platform||"javascript";const o=t.getSdkMetadata&&t.getSdkMetadata(),{name:s,version:a}=o&&o.sdk||{};return i.sdk={...i.sdk,name:s||"sentry.javascript.unknown",version:a||"0.0.0"},i}async function ZU({recordingData:t,replayId:e,segmentId:n,includeReplayStartTimestamp:r,eventContext:i,timestamp:o,session:s,options:a}){const l=GU({recordingData:t,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:h}=i,f=xt(),p=f.getClient(),g=f.getScope(),y=p&&p.getTransport(),v=p&&p.getDsn();if(!p||!g||!y||!v||!s.sampled)return;const _={type:VR,...r?{replay_start_timestamp:h/1e3}:{},timestamp:o/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:e,segment_id:n,replay_type:s.sampled},x=await qU({scope:g,client:p,replayId:e,event:_});if(!x){p.recordDroppedEvent("event_processor","replay",_),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("An event processor returned `null`, will not send event.");return}x.tags={...x.tags,sessionSampleRate:a.sessionSampleRate,errorSampleRate:a.errorSampleRate};const b=YU(x,l,v,p.getOptions().tunnel);let w;try{w=await y.send(b)}catch(E){throw new Error(ow)}if(!w)return w;const S=_R({},w);if(yR(S,"replay"))throw new aw(S);if(typeof w.statusCode=="number"&&(w.statusCode<200||w.statusCode>=300))throw new d3(w.statusCode);return w}class aw extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class d3 extends Error{constructor(e){super(`Transport returned status code ${e}`)}}async function h3(t,e={count:0,interval:uH}){const{recordingData:n,options:r}=t;if(!!n.length)try{return await ZU(t),!0}catch(i){if(i instanceof aw||i instanceof d3)throw i;if(Dj("Replays",{_retryCount:e.count}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&r._experiments&&r._experiments.captureExceptions&&a0(i),e.count>=dH)throw new Error(`${ow} - max retries exceeded`);return e.interval*=++e.count,await new Promise((o,s)=>{setTimeout(async()=>{try{await h3(t,e),o(!0)}catch(a){s(a)}},e.interval)})}}class Pe{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this._performanceObserver=null}__init5(){this._flushLock=null}__init6(){this._lastActivity=new Date().getTime()}__init7(){this._isEnabled=!1}__init8(){this._isPaused=!1}__init9(){this._hasInitializedCoreListeners=!1}__init10(){this._stopRecording=null}__init11(){this._context={errorIds:new Set,traceIds:new Set,urls:[],earliestEvent:null,initialTimestamp:new Date().getTime(),initialUrl:""}}constructor({options:e,recordingOptions:n}){Pe.prototype.__init.call(this),Pe.prototype.__init2.call(this),Pe.prototype.__init3.call(this),Pe.prototype.__init4.call(this),Pe.prototype.__init5.call(this),Pe.prototype.__init6.call(this),Pe.prototype.__init7.call(this),Pe.prototype.__init8.call(this),Pe.prototype.__init9.call(this),Pe.prototype.__init10.call(this),Pe.prototype.__init11.call(this),Pe.prototype.__init12.call(this),Pe.prototype.__init13.call(this),Pe.prototype.__init14.call(this),Pe.prototype.__init15.call(this),Pe.prototype.__init16.call(this),this._recordingOptions=n,this._options=e,this._debouncedFlush=HU(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}start(){if(this._setInitialState(),this._loadSession({expiry:gu}),!this.session){this._handleException(new Error("No session found"));return}!this.session.sampled||(this.session.sampled==="error"&&(this.recordingMode="error"),this._updateSessionActivity(),this.eventBuffer=dU({useCompression:this._options.useCompression}),this._addListeners(),this._isEnabled=!0,this.startRecording())}startRecording(){try{this._stopRecording=Zo({...this._recordingOptions,...this.recordingMode==="error"&&{checkoutEveryNms:6e4},emit:this._handleRecordingEmit})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording?(this._stopRecording(),this._stopRecording=void 0,!0):!1}catch(e){return this._handleException(e),!1}}stop(){try{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Stopping Replays"),this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this._debouncedFlush.cancel()}catch(e){this._handleException(e)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._isPaused=!1,this.startRecording()}addUpdate(e){const n=e();this.recordingMode!=="error"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){this._loadSession({expiry:gu}),this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession({expiry:e=gu}={}){const n=this.getSessionId();if(this._lastActivity&&E_(this._lastActivity,HR)){this.pause();return}return this._loadSession({expiry:e}),n!==this.getSessionId()?(this._triggerFullSnapshot(),!1):!0}_handleException(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay]",e),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&a0(e)}_loadSession({expiry:e}){const{type:n,session:r}=mU({expiry:e,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,errorSampleRate:this._options.errorSampleRate});n==="new"&&this._setInitialState();const i=this.getSessionId();r.id!==i&&(r.previousSessionId=i),this.session=r}_setInitialState(){const e=`${Oe.location.pathname}${Oe.location.hash}${Oe.location.search}`,n=`${Oe.location.origin}${e}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=new Date().getTime(),this._context.urls.push(n)}_addListeners(){try{Oe.document.addEventListener("visibilitychange",this._handleVisibilityChange),Oe.addEventListener("blur",this._handleWindowBlur),Oe.addEventListener("focus",this._handleWindowFocus),UU(this._context.errorIds),this._hasInitializedCoreListeners||(LU(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}"_performanceObserver"in Oe&&(this._performanceObserver=cU(this))}_removeListeners(){try{Oe.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Oe.removeEventListener("blur",this._handleWindowBlur),Oe.removeEventListener("focus",this._handleWindowFocus),WU(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(e){this._handleException(e)}}__init12(){this._handleRecordingEmit=(e,n)=>{if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay] Received replay event after session expired.");return}this.addUpdate(()=>(this.recordingMode==="error"&&e.type===2&&this._setInitialState(),Ag(this,e,n),e.type!==2?!1:(this.session&&this.session.previousSessionId||(this.recordingMode==="error"&&this.session&&this._context.earliestEvent&&(this.session.started=this._context.earliestEvent,this._maybeSaveSession()),this.recordingMode==="session"&&this.flushImmediate()),!0)))}}__init13(){this._handleVisibilityChange=()=>{Oe.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const e=Tg({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init15(){this._handleWindowFocus=()=>{const e=Tg({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;const n=s3(this.session,xC);e&&!n&&this._createCustomBreadcrumb(e),this._conditionalFlush()}_doChangeToForegroundTasks(e){if(!this.session)return;if(!this.checkAndHandleExpiredSession({expiry:xC})){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_triggerFullSnapshot(){try{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Replay] Taking full rrweb snapshot"),Zo.takeFullSnapshot(!0)}catch(e){this._handleException(e)}}_updateUserActivity(e=new Date().getTime()){this._lastActivity=e}_updateSessionActivity(e=new Date().getTime()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{Ag(this,{type:Ft.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){const e=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(Jd(this,NU(e)))}_conditionalFlush(){this.recordingMode!=="error"&&this.flushImmediate()}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[],this._context.earliestEvent=null}_popEventContext(){this._context.earliestEvent&&this._context.earliestEvent<this._context.initialTimestamp&&(this._context.initialTimestamp=this._context.earliestEvent);const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds).filter(Boolean),traceIds:Array.from(this._context.traceIds).filter(Boolean),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){if(!this.session||!this.eventBuffer){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.pendingLength)&&(await DU(this),!!this.eventBuffer))try{const e=await this.eventBuffer.finish(),n=this.session.id,r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession(),await h3({replayId:n,recordingData:e,segmentId:i,includeReplayStartTimestamp:i===0,eventContext:r,session:this.session,options:this.getOptions(),timestamp:new Date().getTime()})}catch(e){if(this._handleException(e),e instanceof aw){this._handleRateLimit(e.rateLimits);return}this.stop()}}__init16(){this._flush=async()=>{if(!!this._isEnabled){if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error("[Replay] No session found to flush.");return}if(this._debouncedFlush.cancel(),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=null;return}try{await this._flushLock}catch(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(e)}finally{this._debouncedFlush()}}}}_maybeSaveSession(){this.session&&this._options.stickySession&&a3(this.session)}_handleRateLimit(e){if(this.isPaused())return;const r=vR(e,"replay")-Date.now();r>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("[Replay]",`Rate limit hit, pausing replay for ${r}ms`),this.pause(),this._debouncedFlush.cancel(),setTimeout(()=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.info("[Replay]","Resuming replay after rate limit"),this.resume()},r))}}function NC(){return typeof window<"u"&&(!r0()||XU())}function XU(){return typeof process<"u"&&process.type==="renderer"}const FC="img,image,svg,path,rect,area,video,object,picture,embed,map,audio";let zC=!1;class bd{static __initStatic(){this.id="Replay"}__init(){this.name=bd.id}constructor({flushMinDelay:e=lH,flushMaxDelay:n=cH,stickySession:r=!0,useCompression:i=!0,sessionSampleRate:o,errorSampleRate:s,maskAllText:a,maskTextSelector:l,maskAllInputs:c=!0,blockAllMedia:u=!0,_experiments:d={},blockClass:h="sentry-block",ignoreClass:f="sentry-ignore",maskTextClass:p="sentry-mask",blockSelector:g="[data-sentry-block]",...y}={}){if(bd.prototype.__init.call(this),this._recordingOptions={maskAllInputs:c,blockClass:h,ignoreClass:f,maskTextClass:p,maskTextSelector:l,blockSelector:g,...y},this._options={flushMinDelay:e,flushMaxDelay:n,stickySession:r,sessionSampleRate:0,errorSampleRate:0,useCompression:i,maskAllText:typeof a=="boolean"?a:!l,blockAllMedia:u,_experiments:d},typeof o=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
63
- This option is deprecated and will be removed soon.
64
- Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
65
- Sentry.init({ replaysSessionSampleRate: ${o} })`),this._options.sessionSampleRate=o),typeof s=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
66
- This option is deprecated and will be removed soon.
67
- Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
68
- Sentry.init({ replaysOnErrorSampleRate: ${s} })`),this._options.errorSampleRate=s),this._options.maskAllText&&(this._recordingOptions.maskTextSelector=aH),this._options.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${FC}`:FC),this._isInitialized&&NC())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return zC}set _isInitialized(e){zC=e}setupOnce(){!NC()||(this._setup(),setTimeout(()=>this.start()))}start(){!this._replay||this._replay.start()}stop(){!this._replay||this._replay.stop()}flush(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.flushImmediate()}_setup(){this._loadReplayOptionsFromClient(),this._replay=new Pe({options:this._options,recordingOptions:this._recordingOptions})}_loadReplayOptionsFromClient(){const e=xt().getClient(),n=e&&e.getOptions();n&&typeof n.replaysSessionSampleRate=="number"&&(this._options.sessionSampleRate=n.replaysSessionSampleRate),n&&typeof n.replaysOnErrorSampleRate=="number"&&(this._options.errorSampleRate=n.replaysOnErrorSampleRate)}}bd.__initStatic();function KU(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:Sg}],version:Sg},oH(t)}var u0={exports:{}},d0={};/**
69
- * @license React
70
- * react-jsx-runtime.production.min.js
71
- *
72
- * Copyright (c) Facebook, Inc. and its affiliates.
73
- *
74
- * This source code is licensed under the MIT license found in the
75
- * LICENSE file in the root directory of this source tree.
76
- */var QU=m.exports,JU=Symbol.for("react.element"),tW=Symbol.for("react.fragment"),eW=Object.prototype.hasOwnProperty,nW=QU.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rW={key:!0,ref:!0,__self:!0,__source:!0};function f3(t,e,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)eW.call(e,r)&&!rW.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:JU,type:t,key:o,ref:s,props:i,_owner:nW.current}}d0.Fragment=tW;d0.jsx=f3;d0.jsxs=f3;(function(t){t.exports=d0})(u0);const iW=u0.exports.Fragment,O=u0.exports.jsx,_e=u0.exports.jsxs;function lw(t){const e=xt().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function cw(t){const n=(t||xt()).getScope();return n&&n.getTransaction()}function Ue(t){return t/1e3}function oW(){We("error",BC),We("unhandledrejection",BC)}function BC(){const t=cw();if(t){const e="internal_error";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}class h0{__init(){this.spans=[]}constructor(e=1e3){h0.prototype.__init.call(this),this._maxlen=e}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class xi{__init2(){this.traceId=$i()}__init3(){this.spanId=$i().substring(16)}__init4(){this.startTimestamp=gd()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(e){if(xi.prototype.__init2.call(this),xi.prototype.__init3.call(this),xi.prototype.__init4.call(this),xi.prototype.__init5.call(this),xi.prototype.__init6.call(this),xi.prototype.__init7.call(this),!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp),e.instrumenter&&(this.instrumenter=e.instrumenter)}startChild(e){const n=new xi({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&n.transaction){const r=e&&e.op||"< unknown op >",i=n.transaction.name||"< unknown name >",o=n.transaction.spanId,s=`[Tracing] Starting '${r}' span on transaction '${i}' (${o}).`;n.transaction.metadata.spanMetadata[n.spanId]={logMessage:s},V.log(s)}return n}setTag(e,n){return this.tags={...this.tags,[e]:n},this}setData(e,n){return this.data={...this.data,[e]:n},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e));const n=sW(e);return n!=="unknown_error"&&this.setStatus(n),this}isSuccess(){return this.status==="ok"}finish(e){if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:n}=this.transaction.metadata.spanMetadata[this.spanId];n&&V.log(n.replace("Starting","Finishing"))}this.endTimestamp=typeof e=="number"?e:gd()}toTraceparent(){let e="";return this.sampled!==void 0&&(e=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${e}`}toContext(){return No({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return No({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return No({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function sW(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}class gl extends xi{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(e,n){super(e),gl.prototype.__init.call(this),gl.prototype.__init2.call(this),gl.prototype.__init3.call(this),this._hub=n||xt(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{},changes:[],propagations:0},this._trimEnd=e.trimEnd,this.transaction=this;const r=this.metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(e){this.setName(e)}setName(e,n="custom"){(e!==this.name||n!==this.metadata.source)&&this.metadata.changes.push({source:this.metadata.source,timestamp:o0(),propagations:this.metadata.propagations}),this._name=e,this.metadata.source=n}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new h0(e)),this.spanRecorder.add(this)}setContext(e,n){n===null?delete this._contexts[e]:this._contexts[e]=n}setMeasurement(e,n,r=""){this._measurements[e]={value:n,unit:r}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(this.endTimestamp!==void 0)return;if(this.name||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e),this.sampled!==!0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");const s=this._hub.getClient();s&&s.recordDroppedEvent("sample_rate","transaction");return}const n=this.spanRecorder?this.spanRecorder.spans.filter(s=>s!==this&&s.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((s,a)=>s.endTimestamp&&a.endTimestamp?s.endTimestamp>a.endTimestamp?s:a:s).endTimestamp);const r=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source,changes:r.changes,propagations:r.propagations}}};return Object.keys(this._measurements).length>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(i)}toContext(){const e=super.toContext();return No({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||xt(),n=e&&e.getClient();if(!n)return{};const{environment:r,release:i}=n.getOptions()||{},{publicKey:o}=n.getDsn()||{},s=this.metadata.sampleRate,a=s!==void 0?s.toString():void 0,l=e.getScope(),{segment:c}=l&&l.getUser()||{},u=this.metadata.source,d=u&&u!=="url"?this.name:void 0;return No({environment:r,release:i,transaction:d,user_segment:c,public_key:o,trace_id:this.traceId,sample_rate:a})}}const p3=1e3,g3=3e4,m3=5e3;class aW extends h0{constructor(e,n,r,i){super(i),this._pushActivity=e,this._popActivity=n,this.transactionSpanId=r}add(e){e.spanId!==this.transactionSpanId&&(e.finish=n=>{e.endTimestamp=typeof n=="number"?n:gd(),this._popActivity(e.spanId)},e.endTimestamp===void 0&&this._pushActivity(e.spanId)),super.add(e)}}class Xa extends gl{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(e,n,r=p3,i=g3,o=m3,s=!1){super(e,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=o,this._onScope=s,Xa.prototype.__init.call(this),Xa.prototype.__init2.call(this),Xa.prototype.__init3.call(this),Xa.prototype.__init4.call(this),s&&(jC(n),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),n.configureScope(a=>a.setSpan(this))),this._startIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())},this._finalTimeout)}finish(e=gd()){if(this._finished=!0,this.activities={},this.spanRecorder){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] finishing IdleTransaction",new Date(e*1e3).toISOString(),this.op);for(const n of this._beforeFinishCallbacks)n(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanId===this.spanId)return!0;n.endTimestamp||(n.endTimestamp=e,n.setStatus("cancelled"),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));const r=n.startTimestamp<e;return r||(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(n,void 0,2)),r}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] flushing IdleTransaction")}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] No active IdleTransaction");return this._onScope&&jC(this._idleHub),super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const n=i=>{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new aW(n,r,this.spanId,e),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(e){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&this.finish(e)},this._idleTimeout)}_pushActivity(e){this._cancelIdleTimeout(),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] popActivity ${e}`),delete this.activities[e],(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=gd()+this._idleTimeout/1e3;this._startIdleTimeout(n)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}_pingHeartbeat(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function jC(t){const e=t.getScope();e&&e.getTransaction()&&e.setSpan(void 0)}function lW(){const t=this.getScope();if(t){const e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function v3(t,e,n){if(!lw(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return typeof e.tracesSampler=="function"?(r=e.tracesSampler(n),t.setMetadata({sampleRate:Number(r)})):n.parentSampled!==void 0?r=n.parentSampled:(r=e.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})),cW(r)?r?(t.sampled=Math.random()<r,t.sampled?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),t.sampled=!1,t):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function cW(t){return iR(t)||!(typeof t=="number"||typeof t=="boolean")?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):t<0||t>1?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function uW(t,e){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=t.instrumenter||"sentry";i!==o&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter.
77
- The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),t.sampled=!1);let s=new gl(t,this);return s=v3(s,r,{parentSampled:t.parentSampled,transactionContext:t,...e}),s.sampled&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),s}function VC(t,e,n,r,i,o,s){const a=t.getClient(),l=a&&a.getOptions()||{};let c=new Xa(e,t,n,r,s,i);return c=v3(c,l,{parentSampled:e.parentSampled,transactionContext:e,...o}),c.sampled&&c.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c}function dW(){const t=ec();!t.__SENTRY__||(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=uW),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=lW))}function hW(){const t=ec();if(!t.__SENTRY__)return;const e={mongodb(){const r=_o(module,"./integrations/node/mongo");return new r.Mongo},mongoose(){const r=_o(module,"./integrations/node/mongo");return new r.Mongo({mongoose:!0})},mysql(){const r=_o(module,"./integrations/node/mysql");return new r.Mysql},pg(){const r=_o(module,"./integrations/node/postgres");return new r.Postgres}},n=Object.keys(e).filter(r=>!!aj(r)).map(r=>{try{return e[r]()}catch(i){return}}).filter(r=>r);n.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...n])}function fW(){dW(),r0()&&hW(),oW()}const It=qn;function pW(){It&&It.document?It.document.addEventListener("visibilitychange",()=>{const t=cw();if(It.document.hidden&&t){const e="cancelled";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const uw=(t,e,n)=>{let r,i;return o=>{e.value>=0&&(o||n)&&(i=e.value-(r||0),(i||r===void 0)&&(r=e.value,e.delta=i,t(e)))}},gW=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,mW=()=>{const t=It.performance.timing,e=It.performance.navigation.type,n={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(const r in t)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(t[r]-t.navigationStart,0));return n},y3=()=>It.__WEB_VITALS_POLYFILL__?It.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||mW()):It.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],_3=()=>{const t=y3();return t&&t.activationStart||0},dw=(t,e)=>{const n=y3();let r="navigate";return n&&(It.document.prerendering||_3()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:gW(),navigationType:r}},f0=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(i=>{e(i.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(r){}},p0=(t,e)=>{const n=r=>{(r.type==="pagehide"||It.document.visibilityState==="hidden")&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},vW=t=>{const e=dw("CLS",0);let n,r=0,i=[];const o=a=>{a.forEach(l=>{if(!l.hadRecentInput){const c=i[0],u=i[i.length-1];r&&i.length!==0&&l.startTime-u.startTime<1e3&&l.startTime-c.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>e.value&&(e.value=r,e.entries=i,n&&n())}})},s=f0("layout-shift",o);s&&(n=uw(t,e),p0(()=>{o(s.takeRecords()),n(!0)}))};let vp=-1;const yW=()=>It.document.visibilityState==="hidden"&&!It.document.prerendering?0:1/0,_W=()=>{p0(({timeStamp:t})=>{vp=t},!0)},hw=()=>(vp<0&&(vp=yW(),_W()),{get firstHiddenTime(){return vp}}),xW=t=>{const e=hw(),n=dw("FID");let r;const i=a=>{a.startTime<e.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entries.push(a),r(!0))},o=a=>{a.forEach(i)},s=f0("first-input",o);r=uw(t,n),s&&p0(()=>{o(s.takeRecords()),s.disconnect()},!0)},HC={},bW=t=>{const e=hw(),n=dw("LCP");let r;const i=s=>{const a=s[s.length-1];if(a){const l=Math.max(a.startTime-_3(),0);l<e.firstHiddenTime&&(n.value=l,n.entries=[a],r())}},o=f0("largest-contentful-paint",i);if(o){r=uw(t,n);const s=()=>{HC[n.id]||(i(o.takeRecords()),o.disconnect(),HC[n.id]=!0,r(!0))};["keydown","click"].forEach(a=>{addEventListener(a,s,{once:!0,capture:!0})}),p0(s,!0)}};function Xv(t){return typeof t=="number"&&isFinite(t)}function Nl(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function x3(){return It&&It.addEventListener&&It.performance}let UC=0,oe={},Vr,bu;function wW(){const t=x3();t&&Pl&&(t.mark&&It.performance.mark("sentry-tracing-init"),EW(),CW(),kW())}function SW(){f0("longtask",e=>{for(const n of e){const r=cw();if(!r)return;const i=Ue(Pl+n.startTime),o=Ue(n.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:i,endTimestamp:i+o})}})}function EW(){vW(t=>{const e=t.entries.pop();!e||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding CLS"),oe.cls={value:t.value,unit:""},bu=e)})}function CW(){bW(t=>{const e=t.entries.pop();!e||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding LCP"),oe.lcp={value:t.value,unit:"millisecond"},Vr=e)})}function kW(){xW(t=>{const e=t.entries.pop();if(!e)return;const n=Ue(Pl),r=Ue(e.startTime);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding FID"),oe.fid={value:t.value,unit:"millisecond"},oe["mark.fid"]={value:n+r,unit:"second"}})}function AW(t){const e=x3();if(!e||!It.performance.getEntries||!Pl)return;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Tracing] Adding & adjusting spans using Performance API");const n=Ue(Pl),r=e.getEntries();let i,o;if(r.slice(UC).forEach(s=>{const a=Ue(s.startTime),l=Ue(s.duration);if(!(t.op==="navigation"&&n+a<t.startTimestamp))switch(s.entryType){case"navigation":{$W(t,s,n),i=n+Ue(s.responseStart),o=n+Ue(s.requestStart);break}case"mark":case"paint":case"measure":{TW(t,s,a,l,n);const c=hw(),u=s.startTime<c.firstHiddenTime;s.name==="first-paint"&&u&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding FP"),oe.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&u&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding FCP"),oe.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{const c=s.name.replace(It.location.origin,"");PW(t,s,c,a,l,n);break}}}),UC=Math.max(r.length-1,0),OW(t),t.op==="pageload"){typeof i=="number"&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding TTFB"),oe.ttfb={value:(i-t.startTimestamp)*1e3,unit:"millisecond"},typeof o=="number"&&o<=i&&(oe["ttfb.requestTime"]={value:(i-o)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(a=>{if(!oe[a]||n>=t.startTimestamp)return;const l=oe[a].value,c=n+Ue(l),u=Math.abs((c-t.startTimestamp)*1e3),d=u-l;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Measurements] Normalized ${a} from ${l} to ${u} (${d})`),oe[a].value=u});const s=oe["mark.fid"];s&&oe.fid&&(Nl(t,{description:"first input delay",endTimestamp:s.value+Ue(oe.fid.value),op:"ui.action",startTimestamp:s.value}),delete oe["mark.fid"]),"fcp"in oe||delete oe.cls,Object.keys(oe).forEach(a=>{t.setMeasurement(a,oe[a].value,oe[a].unit)}),RW(t)}Vr=void 0,bu=void 0,oe={}}function TW(t,e,n,r,i){const o=i+n,s=o+r;return Nl(t,{description:e.name,endTimestamp:s,op:e.entryType,startTimestamp:o}),o}function $W(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{qh(t,e,r,n)}),qh(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),qh(t,e,"fetch",n,"cache","domainLookupStart"),qh(t,e,"domainLookup",n,"DNS"),MW(t,e,n)}function qh(t,e,n,r,i,o){const s=o?e[o]:e[`${n}End`],a=e[`${n}Start`];!a||!s||Nl(t,{op:"browser",description:i||n,startTimestamp:r+Ue(a),endTimestamp:r+Ue(s)})}function MW(t,e,n){Nl(t,{op:"browser",description:"request",startTimestamp:n+Ue(e.requestStart),endTimestamp:n+Ue(e.responseEnd)}),Nl(t,{op:"browser",description:"response",startTimestamp:n+Ue(e.responseStart),endTimestamp:n+Ue(e.responseEnd)})}function PW(t,e,n,r,i,o){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const s={};"transferSize"in e&&(s["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(s["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(s["Decoded Body Size"]=e.decodedBodySize);const a=o+r,l=a+i;Nl(t,{description:n,endTimestamp:l,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",startTimestamp:a,data:s})}function OW(t){const e=It.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),Xv(n.rtt)&&(oe["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Xv(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),Xv(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function RW(t){Vr&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding LCP Data"),Vr.element&&t.setTag("lcp.element",Ml(Vr.element)),Vr.id&&t.setTag("lcp.id",Vr.id),Vr.url&&t.setTag("lcp.url",Vr.url.trim().slice(0,200)),t.setTag("lcp.size",Vr.size)),bu&&bu.sources&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log("[Measurements] Adding CLS Data"),bu.sources.forEach((e,n)=>t.setTag(`cls.source.${n+1}`,Ml(e.node))))}const k_=["localhost",/^\//],A_={traceFetch:!0,traceXHR:!0,tracingOrigins:k_,tracePropagationTargets:k_};function LW(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o}={traceFetch:A_.traceFetch,traceXHR:A_.traceXHR,...t},s=typeof o=="function"?o:c=>!0,a=c=>DW(c,r||i),l={};e&&We("fetch",c=>{IW(c,s,a,l)}),n&&We("xhr",c=>{FW(c,s,a,l)})}function DW(t,e){return n0(t,e||k_)}function IW(t,e,n,r){if(!lw()||!(t.fetchData&&e(t.fetchData.url)))return;if(t.endTimestamp){const a=t.fetchData.__span;if(!a)return;const l=r[a];l&&(t.response?l.setHttpStatus(t.response.status):t.error&&l.setStatus("internal_error"),l.finish(),delete r[a]);return}const i=xt().getScope(),o=i&&i.getSpan(),s=o&&o.transaction;if(o&&s){const a=o.startChild({data:{...t.fetchData,type:"fetch"},description:`${t.fetchData.method} ${t.fetchData.url}`,op:"http.client"});t.fetchData.__span=a.spanId,r[a.spanId]=a;const l=t.args[0];t.args[1]=t.args[1]||{};const c=t.args[1];n(t.fetchData.url)&&(c.headers=NW(l,s.getDynamicSamplingContext(),a,c),s.metadata.propagations++)}}function NW(t,e,n,r){const i=bR(e),o=n.toTraceparent(),s=typeof Request<"u"&&si(t,Request)?t.headers:r.headers;if(s)if(typeof Headers<"u"&&si(s,Headers)){const a=new Headers(s);return a.append("sentry-trace",o),i&&a.append(m_,i),a}else if(Array.isArray(s)){const a=[...s,["sentry-trace",o]];return i&&a.push([m_,i]),a}else{const a="baggage"in s?s.baggage:void 0,l=[];return Array.isArray(a)?l.push(...a):a&&l.push(a),i&&l.push(i),{...s,"sentry-trace":o,baggage:l.length>0?l.join(","):void 0}}else return{"sentry-trace":o,baggage:i}}function FW(t,e,n,r){if(!lw()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)))return;const i=t.xhr.__sentry_xhr__;if(t.endTimestamp){const l=t.xhr.__sentry_xhr_span_id__;if(!l)return;const c=r[l];c&&(c.setHttpStatus(i.status_code),c.finish(),delete r[l]);return}const o=xt().getScope(),s=o&&o.getSpan(),a=s&&s.transaction;if(s&&a){const l=s.startChild({data:{...i.data,type:"xhr",method:i.method,url:i.url},description:`${i.method} ${i.url}`,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=l.spanId,r[t.xhr.__sentry_xhr_span_id__]=l,t.xhr.setRequestHeader&&n(t.xhr.__sentry_xhr__.url))try{t.xhr.setRequestHeader("sentry-trace",l.toTraceparent());const c=a.getDynamicSamplingContext(),u=bR(c);u&&t.xhr.setRequestHeader(m_,u),a.metadata.propagations++}catch(c){}}}function zW(t,e=!0,n=!0){if(!It||!It.location){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn("Could not initialize routing instrumentation due to invalid location");return}let r=It.location.href,i;e&&(i=t({name:It.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&We("history",({to:o,from:s})=>{if(s===void 0&&r&&r.indexOf(o)!==-1){r=void 0;return}s!==o&&(r=void 0,i&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=t({name:It.location.pathname,op:"navigation",metadata:{source:"url"}}))})}const BW="BrowserTracing",jW={idleTimeout:p3,finalTimeout:g3,heartbeatInterval:m3,markBackgroundTransactions:!0,routingInstrumentation:zW,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...A_};class fw{__init(){this.name=BW}constructor(e){fw.prototype.__init.call(this),this.options={...jW,...e},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),wW(),this.options.enableLongTask&&SW()}setupOnce(e,n){this._getCurrentHub=n;const{routingInstrumentation:r,startTransactionOnLocationChange:i,startTransactionOnPageLoad:o,markBackgroundTransactions:s,traceFetch:a,traceXHR:l,tracePropagationTargets:c,shouldCreateSpanForRequest:u,_experiments:d}=this.options;r(h=>this._createRouteTransaction(h),o,i),s&&pW(),d.enableInteractions&&this._registerInteractionListener(),LW({traceFetch:a,traceXHR:l,tracePropagationTargets:c,shouldCreateSpanForRequest:u})}_createRouteTransaction(e){if(!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}const{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=this.options,s=e.op==="pageload",a=s?WC("sentry-trace"):null,l=s?WC("baggage"):null,c=a?vj(a):void 0,u=l?Aj(l):void 0,d={...e,...c,metadata:{...e.metadata,dynamicSamplingContext:c&&!u?{}:u},trimEnd:!0},h=typeof n=="function"?n(d):d,f=h===void 0?{...d,sampled:!1}:h;f.metadata=f.name!==d.name?{...f.metadata,source:"custom"}:f.metadata,this._latestRouteName=f.name,this._latestRouteSource=f.metadata&&f.metadata.source,f.sampled===!1&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.log(`[Tracing] Starting ${f.op} transaction on scope`);const p=this._getCurrentHub(),{location:g}=It,y=VC(p,f,r,i,!0,{location:g},o);return y.registerBeforeFinishCallback(v=>{AW(v)}),y}_registerInteractionListener(){let e;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=this.options,s="ui.action.click";if(e&&(e.finish(),e=void 0),!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&V.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const a=this._getCurrentHub(),{location:l}=It,c={name:this._latestRouteName,op:s,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=VC(a,c,r,i,!0,{location:l},o)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function WC(t){const e=PB(`meta[name=${t}]`);return e?e.getAttribute("content"):null}(typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__)&&fW();const VW=["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage","Script error.","_avast_submit"],HW=[/pagead\/js/i,/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i],UW="[Local Logic] ";class WW{constructor(){KU({dsn:"https://19707ff4ff7f420b9369a3e15041c787@o227377.ingest.sentry.io/6677584",integrations:[new fw,new bd],tracesSampleRate:.05,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.5,environment:"production",enabled:!0,ignoreErrors:VW,denyUrls:HW})}captureException(e){this.log(e.message,"error"),a0(e)}addBreadCrumb(e,n,r,i="info"){this.log(n),ER({category:e,message:n,data:r,level:i})}log(e,n="info"){console[n](UW+e)}}const Swt=Object.freeze(new WW);var rn=function(){return rn=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},rn.apply(this,arguments)};function b3(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Fl(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var Zt="-ms-",wu="-moz-",St="-webkit-",w3="comm",g0="rule",pw="decl",YW="@import",S3="@keyframes",GW=Math.abs,gw=String.fromCharCode,qW=Object.assign;function ZW(t,e){return Le(t,0)^45?(((e<<2^Le(t,0))<<2^Le(t,1))<<2^Le(t,2))<<2^Le(t,3):0}function E3(t){return t.trim()}function no(t,e){return(t=e.exec(t))?t[0]:t}function ut(t,e,n){return t.replace(e,n)}function yp(t,e){return t.indexOf(e)}function Le(t,e){return t.charCodeAt(e)|0}function zl(t,e,n){return t.slice(e,n)}function Si(t){return t.length}function mw(t){return t.length}function Zh(t,e){return e.push(t),t}function XW(t,e){return t.map(e).join("")}var m0=1,Bl=1,C3=0,vr=0,we=0,nc="";function v0(t,e,n,r,i,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:m0,column:Bl,length:s,return:""}}function $c(t,e){return qW(v0("",null,null,"",null,null,0),t,{length:-t.length},e)}function KW(){return we}function QW(){return we=vr>0?Le(nc,--vr):0,Bl--,we===10&&(Bl=1,m0--),we}function Lr(){return we=vr<C3?Le(nc,vr++):0,Bl++,we===10&&(Bl=1,m0++),we}function Vs(){return Le(nc,vr)}function _p(){return vr}function y0(t,e){return zl(nc,t,e)}function T_(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function JW(t){return m0=Bl=1,C3=Si(nc=t),vr=0,[]}function tY(t){return nc="",t}function Kv(t){return E3(y0(vr-1,$_(t===91?t+2:t===40?t+1:t)))}function eY(t){for(;(we=Vs())&&we<33;)Lr();return T_(t)>2||T_(we)>3?"":" "}function nY(t,e){for(;--e&&Lr()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return y0(t,_p()+(e<6&&Vs()==32&&Lr()==32))}function $_(t){for(;Lr();)switch(we){case t:return vr;case 34:case 39:t!==34&&t!==39&&$_(we);break;case 40:t===41&&$_(t);break;case 92:Lr();break}return vr}function rY(t,e){for(;Lr()&&t+we!==47+10;)if(t+we===42+42&&Vs()===47)break;return"/*"+y0(e,vr-1)+"*"+gw(t===47?t:Lr())}function iY(t){for(;!T_(Vs());)Lr();return y0(t,vr)}function oY(t){return tY(xp("",null,null,null,[""],t=JW(t),0,[0],t))}function xp(t,e,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,h=0,f=0,p=0,g=1,y=1,v=1,_=0,x="",b=i,w=o,S=r,E=x;y;)switch(p=_,_=Lr()){case 40:if(p!=108&&Le(E,d-1)==58){yp(E+=ut(Kv(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Kv(_);break;case 9:case 10:case 13:case 32:E+=eY(p);break;case 92:E+=nY(_p()-1,7);continue;case 47:switch(Vs()){case 42:case 47:Zh(sY(rY(Lr(),_p()),e,n),l);break;default:E+="/"}break;case 123*g:a[c++]=Si(E)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+u:f>0&&Si(E)-d&&Zh(f>32?GC(E+";",r,n,d-1):GC(ut(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Zh(S=YC(E,e,n,c,u,i,a,x,b=[],w=[],d),o),_===123)if(u===0)xp(E,e,S,S,b,o,d,a,w);else switch(h===99&&Le(E,3)===110?100:h){case 100:case 109:case 115:xp(t,S,S,r&&Zh(YC(t,S,S,0,0,i,a,x,i,b=[],d),w),i,w,d,a,r?b:w);break;default:xp(E,S,S,S,[""],w,0,a,w)}}c=u=f=0,g=v=1,x=E="",d=s;break;case 58:d=1+Si(E),f=p;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&QW()==125)continue}switch(E+=gw(_),_*g){case 38:v=u>0?1:(E+="\f",-1);break;case 44:a[c++]=(Si(E)-1)*v,v=1;break;case 64:Vs()===45&&(E+=Kv(Lr())),h=Vs(),u=d=Si(x=E+=iY(_p())),_++;break;case 45:p===45&&Si(E)==2&&(g=0)}}return o}function YC(t,e,n,r,i,o,s,a,l,c,u){for(var d=i-1,h=i===0?o:[""],f=mw(h),p=0,g=0,y=0;p<r;++p)for(var v=0,_=zl(t,d+1,d=GW(g=s[p])),x=t;v<f;++v)(x=E3(g>0?h[v]+" "+_:ut(_,/&\f/g,h[v])))&&(l[y++]=x);return v0(t,e,n,i===0?g0:a,l,c,u)}function sY(t,e,n){return v0(t,e,n,w3,gw(KW()),zl(t,2,-2),0)}function GC(t,e,n,r){return v0(t,e,n,pw,zl(t,0,r),zl(t,r+1,-1),r)}function k3(t,e,n){switch(ZW(t,e)){case 5103:return St+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return St+t+t;case 4789:return wu+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return St+t+wu+t+Zt+t+t;case 5936:switch(Le(t,e+11)){case 114:return St+t+Zt+ut(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return St+t+Zt+ut(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return St+t+Zt+ut(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return St+t+Zt+t+t;case 6165:return St+t+Zt+"flex-"+t+t;case 5187:return St+t+ut(t,/(\w+).+(:[^]+)/,St+"box-$1$2"+Zt+"flex-$1$2")+t;case 5443:return St+t+Zt+"flex-item-"+ut(t,/flex-|-self/g,"")+(no(t,/flex-|baseline/)?"":Zt+"grid-row-"+ut(t,/flex-|-self/g,""))+t;case 4675:return St+t+Zt+"flex-line-pack"+ut(t,/align-content|flex-|-self/g,"")+t;case 5548:return St+t+Zt+ut(t,"shrink","negative")+t;case 5292:return St+t+Zt+ut(t,"basis","preferred-size")+t;case 6060:return St+"box-"+ut(t,"-grow","")+St+t+Zt+ut(t,"grow","positive")+t;case 4554:return St+ut(t,/([^-])(transform)/g,"$1"+St+"$2")+t;case 6187:return ut(ut(ut(t,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),t,"")+t;case 5495:case 3959:return ut(t,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return ut(ut(t,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+Zt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+St+t+t;case 4200:if(!no(t,/flex-|baseline/))return Zt+"grid-column-align"+zl(t,e)+t;break;case 2592:case 3360:return Zt+ut(t,"template-","")+t;case 4384:case 3616:return n&&n.some(function(r,i){return e=i,no(r.props,/grid-\w+-end/)})?~yp(t+(n=n[e].value),"span")?t:Zt+ut(t,"-start","")+t+Zt+"grid-row-span:"+(~yp(n,"span")?no(n,/\d+/):+no(n,/\d+/)-+no(t,/\d+/))+";":Zt+ut(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(r){return no(r.props,/grid-\w+-start/)})?t:Zt+ut(ut(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return ut(t,/(.+)-inline(.+)/,St+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Si(t)-1-e>6)switch(Le(t,e+1)){case 109:if(Le(t,e+4)!==45)break;case 102:return ut(t,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+wu+(Le(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~yp(t,"stretch")?k3(ut(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return ut(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,a,l,c){return Zt+i+":"+o+c+(s?Zt+i+"-span:"+(a?l:+l-+o)+c:"")+t});case 4949:if(Le(t,e+6)===121)return ut(t,":",":"+St)+t;break;case 6444:switch(Le(t,Le(t,14)===45?18:11)){case 120:return ut(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+St+(Le(t,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+Zt+"$2box$3")+t;case 100:return ut(t,":",":"+Zt)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ut(t,"scroll-","scroll-snap-")+t}return t}function Su(t,e){for(var n="",r=mw(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function aY(t,e,n,r){switch(t.type){case YW:case pw:return t.return=t.return||t.value;case w3:return"";case S3:return t.return=t.value+"{"+Su(t.children,r)+"}";case g0:t.value=t.props.join(",")}return Si(n=Su(t.children,r))?t.return=t.value+"{"+n+"}":""}function lY(t){var e=mw(t);return function(n,r,i,o){for(var s="",a=0;a<e;a++)s+=t[a](n,r,i,o)||"";return s}}function cY(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case pw:t.return=k3(t.value,t.length,n);return;case S3:return Su([$c(t,{value:ut(t.value,"@","@"+St)})],r);case g0:if(t.length)return XW(t.props,function(i){switch(no(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Su([$c(t,{props:[ut(i,/:(read-\w+)/,":"+wu+"$1")]})],r);case"::placeholder":return Su([$c(t,{props:[ut(i,/:(plac\w+)/,":"+St+"input-$1")]}),$c(t,{props:[ut(i,/:(plac\w+)/,":"+wu+"$1")]}),$c(t,{props:[ut(i,/:(plac\w+)/,Zt+"input-$1")]})],r)}return""})}}var uY={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},rc=typeof process<"u"&&typeof process.env<"u"&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",A3="active",T3="data-styled-version",_0="6.0.0-beta.11",vw=`/*!sc*/
78
- `,yw=typeof window<"u"&&"HTMLElement"in window,dY=Boolean(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&typeof process.env<"u"&&typeof process.env.REACT_APP_SC_DISABLE_SPEEDY<"u"&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY==="false"?!1:process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&typeof process.env<"u"&&typeof process.env.SC_DISABLE_SPEEDY<"u"&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY==="false"?!1:process.env.SC_DISABLE_SPEEDY:!1),hY={},$g=Object.freeze([]),na=Object.freeze({});function $3(t,e,n){return n===void 0&&(n=na),t.theme!==n.theme&&t.theme||e||n.theme}var M3=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],fY=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pY=/(^-|-$)/g;function P3(t){return t.replace(fY,"-").replace(pY,"")}var gY=/(a)(d)/gi,Xh=52,qC=function(t){return String.fromCharCode(t+(t>25?39:97))};function M_(t){var e="",n;for(n=Math.abs(t);n>Xh;n=n/Xh|0)e=qC(n%Xh)+e;return(qC(n%Xh)+e).replace(gY,"$1-$2")}var O3=5381,Ka=function(t,e){for(var n=e.length;n;)t=t*33^e.charCodeAt(--n);return t},R3=function(t){return Ka(O3,t)};function _w(t){return M_(R3(t)>>>0)}function mY(t){return t.displayName||t.name||"Component"}function xw(t){return typeof t=="string"&&!0}function vY(t){return xw(t)?"styled.".concat(t):"Styled(".concat(mY(t),")")}var Kh,L3=typeof Symbol=="function"&&Symbol.for,D3=L3?Symbol.for("react.memo"):60115,yY=L3?Symbol.for("react.forward_ref"):60112,_Y={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xY={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},bY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},I3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wY=(Kh={},Kh[yY]=bY,Kh[D3]=I3,Kh);function SY(t){var e="type"in t&&t.type.$$typeof;return e===D3}function ZC(t){return SY(t)?I3:"$$typeof"in t?wY[t.$$typeof]:_Y}var EY=Object.defineProperty,CY=Object.getOwnPropertyNames,XC=Object.getOwnPropertySymbols,kY=Object.getOwnPropertyDescriptor,AY=Object.getPrototypeOf,KC=Object.prototype;function N3(t,e,n){if(typeof e!="string"){if(KC){var r=AY(e);r&&r!==KC&&N3(t,r,n)}var i=CY(e);XC&&(i=i.concat(XC(e)));for(var o=ZC(t),s=ZC(e),a=0;a<i.length;++a){var l=i[a];if(!(l in xY)&&!(n&&n[l])&&!(s&&l in s)&&!(o&&l in o)){var c=kY(e,l);try{EY(t,l,c)}catch(u){}}}}return t}function bw(t){return typeof t=="object"&&"styledComponentId"in t}function TY(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter(Boolean).join(" ")}function wd(t){return t!==null&&typeof t=="object"&&(!t.constructor||t.constructor.name==="Object")&&(t.toString?t.toString():Object.prototype.toString.call(t))==="[object Object]"&&!("props"in t&&(t.$$typeof||t.constructor===void 0))}function P_(t,e,n){if(n===void 0&&(n=!1),!n&&!wd(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)t[r]=P_(t[r],e[r]);else if(wd(e))for(var r in e)t[r]=P_(t[r],e[r]);return t}function $Y(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];P_(t,o,!0)}return t}function th(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var MY=function(t){return new PY(t)},QC=1<<9,PY=function(){function t(e){this.groupSizes=new Uint32Array(QC),this.length=QC,this.tag=e}return t.prototype.indexOfGroup=function(e){for(var n=0,r=0;r<e;r++)n+=this.groupSizes[r];return n},t.prototype.insertRules=function(e,n){if(e>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;e>=o;)if(o<<=1,o<0)throw th(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s<o;s++)this.groupSizes[s]=0}var a=this.indexOfGroup(e+1);if(Array.isArray(n))for(var s=0,l=n.length;s<l;s++)this.tag.insertRule(a,n[s])&&(this.groupSizes[e]++,a++);else this.tag.insertRule(a,n)&&this.groupSizes[e]++},t.prototype.clearGroup=function(e){if(e<this.length){var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;this.groupSizes[e]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},t.prototype.getGroup=function(e){var n="";if(e>=this.length||this.groupSizes[e]===0)return n;for(var r=this.groupSizes[e],i=this.indexOfGroup(e),o=i+r,s=i;s<o;s++)n+="".concat(this.tag.getRule(s)).concat(vw);return n},t}(),bp=new Map,Mg=new Map,Qv=1,Qh=function(t){if(bp.has(t))return bp.get(t);for(;Mg.has(Qv);)Qv++;var e=Qv++;return bp.set(t,e),Mg.set(e,t),e},OY=function(t){return Mg.get(t)},RY=function(t,e){bp.set(t,e),Mg.set(e,t)},LY="style[".concat(rc,"][").concat(T3,'="').concat(_0,'"]'),DY=new RegExp("^".concat(rc,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),IY=function(t){for(var e=t.getTag(),n=e.length,r="",i=function(s){var a=OY(s);if(a===void 0)return"continue";var l=t.names.get(a),c=e.getGroup(s);if(l===void 0||c.length===0)return"continue";var u="".concat(rc,".g").concat(s,'[id="').concat(a,'"]'),d="";l!==void 0&&l.forEach(function(h){h.length>0&&(d+="".concat(h,","))}),r+="".concat(c).concat(u,'{content:"').concat(d,'"}').concat(vw)},o=0;o<n;o++)i(o);return r},NY=function(t,e,n){for(var r=n.split(","),i,o=0,s=r.length;o<s;o++)(i=r[o])&&t.registerName(e,i)},FY=function(t,e){for(var n,r=((n=e.textContent)!==null&&n!==void 0?n:"").split(vw),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(!!a){var l=a.match(DY);if(l){var c=parseInt(l[1],10)|0,u=l[2];c!==0&&(RY(u,c),NY(t,u,l[3]),t.getTag().insertRules(c,i)),i.length=0}else i.push(a)}}},zY=function(t){for(var e=document.querySelectorAll(LY),n=0,r=e.length;n<r;n++){var i=e[n];i&&i.getAttribute(rc)!==A3&&(FY(t,i),i.parentNode&&i.parentNode.removeChild(i))}};function BY(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var jY=1,VY=function(t){for(var e=t.childNodes,n=e.length;n>=0;n--){var r=e[n];if(r&&r.nodeType===jY&&r.hasAttribute(rc))return r}},F3=function(t){var e=document.head,n=t||e,r=document.createElement("style"),i=VY(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(rc,A3),r.setAttribute(T3,_0);var s=BY();return s&&r.setAttribute("nonce",s),n.insertBefore(r,o),r},HY=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,r=e.length;n<r;n++){var i=e[n];if(i.ownerNode===t)return i}throw th(17)},UY=function(t){var e=t.isServer,n=t.useCSSOMInjection,r=t.target;return e?new GY(r):n?new WY(r):new YY(r)},WY=function(){function t(e){var n=this.element=F3(e);n.appendChild(document.createTextNode("")),this.sheet=HY(n),this.length=0}return t.prototype.insertRule=function(e,n){try{return this.sheet.insertRule(n,e),this.length++,!0}catch(r){return!1}},t.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.prototype.getRule=function(e){var n=this.sheet.cssRules[e];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},t}(),YY=function(){function t(e){var n=this.element=F3(e);this.nodes=n.childNodes,this.length=0}return t.prototype.insertRule=function(e,n){if(e<=this.length&&e>=0){var r=document.createTextNode(n),i=this.nodes[e];return this.element.insertBefore(r,i||null),this.length++,!0}else return!1},t.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},t}(),GY=function(){function t(e){this.rules=[],this.length=0}return t.prototype.insertRule=function(e,n){return e<=this.length?(this.rules.splice(e,0,n),this.length++,!0):!1},t.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},t}(),JC=yw,qY={isServer:!yw,useCSSOMInjection:!dY},Pg=function(){function t(e,n,r){e===void 0&&(e=na),n===void 0&&(n={}),this.options=rn(rn({},qY),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer,!this.server&&yw&&JC&&(JC=!1,zY(this))}return t.registerId=function(e){return Qh(e)},t.prototype.reconstructWithOptions=function(e,n){return n===void 0&&(n=!0),new t(rn(rn({},this.options),e),this.gs,n&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=MY(UY(this.options)))},t.prototype.hasNameForId=function(e,n){return this.names.has(e)&&this.names.get(e).has(n)},t.prototype.registerName=function(e,n){if(Qh(e),this.names.has(e))this.names.get(e).add(n);else{var r=new Set;r.add(n),this.names.set(e,r)}},t.prototype.insertRules=function(e,n,r){this.registerName(e,n),this.getTag().insertRules(Qh(e),r)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(Qh(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t.prototype.toString=function(){return IY(this)},t}(),ZY=/^\s*\/\/.*$/gm,XY=[":","[",".","#"];function KY(t,e){return t.map(function(n,r){return e(n,r,t,e)}).filter(Boolean)}function z3(t,e){return t.map(function(n){return n.type==="rule"&&(n.value="".concat(e," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(e," ")),n.props=n.props.map(function(r){return"".concat(e," ").concat(r)})),Array.isArray(n.children)&&(n.children=z3(n.children,e)),n})}function QY(t){var e=t===void 0?na:t,n=e.options,r=n===void 0?na:n,i=e.plugins,o=i===void 0?$g:i,s,a,l,c,u=function(f,p,g){return(p===0?!XY.includes(g[a.length]):!0)&&!g.match(c)?".".concat(s):f},d=function(f){if(f.type===g0&&f.value.includes("&")){var p=f.props;p[0]=p[0].replace(l,u)}},h=function(f,p,g,y){p===void 0&&(p=""),g===void 0&&(g=""),y===void 0&&(y="&");var v=f.replace(ZY,"");s=y,a=p,l=new RegExp("\\".concat(a,"\\b"),"g"),c=new RegExp("(\\".concat(a,"\\b){2,}"));var _=o.slice();(r.prefix||r.prefix===void 0)&&_.unshift(cY),_.push(d,aY);var x=oY(g||p?"".concat(g," ").concat(p," { ").concat(v," }"):v);return r.namespace&&(x=z3(x,r.namespace)),KY(x,lY(_))};return h.hash=o.length?o.reduce(function(f,p){return p.name||th(15),Ka(f,p.name)},O3).toString():"",h}var ww=Q.createContext({shouldForwardProp:void 0,styleSheet:void 0});ww.Consumer;var B3=Q.createContext(void 0);B3.Consumer;var JY=new Pg,O_=QY();function tG(){return m.exports.useContext(ww).shouldForwardProp}function j3(){return m.exports.useContext(ww).styleSheet||JY}function V3(){return m.exports.useContext(B3)||O_}var H3=function(){function t(e,n){var r=this;this.inject=function(i,o){o===void 0&&(o=O_);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.toString=function(){throw th(12,String(r.name))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=O_),this.name+e.hash},t}();function eG(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!(t in uY)?"".concat(e,"px"):String(e).trim()}var nG=/[A-Z]/,rG=/[A-Z]/g,iG=/^ms-/,oG=function(t){return"-".concat(t.toLowerCase())};function tk(t){return nG.test(t)&&!t.startsWith("--")?t.replace(rG,oG).replace(iG,"-ms-"):t}function x0(t){return typeof t=="function"}function sG(t){return typeof t=="function"&&!(t.prototype&&t.prototype.isReactComponent)}var U3=function(t){return t==null||t===!1||t===""},W3=function(t,e){var n=[];for(var r in t)!t.hasOwnProperty(r)||U3(t[r])||(Array.isArray(t[r])&&t[r].isCss||x0(t[r])?n.push("".concat(tk(r),":"),t[r],";"):wd(t[r])?n.push.apply(n,W3(t[r],r)):n.push("".concat(tk(r),": ").concat(eG(r,t[r]),";")));return e?Fl(Fl(["".concat(e," {")],n,!0),["}"],!1):n};function Bo(t,e,n,r){if(Array.isArray(t)){for(var i=[],o=0,s=t.length,a=void 0;o<s;o+=1)a=Bo(t[o],e,n,r),a.length!==0&&i.push.apply(i,a);return i}if(U3(t))return[];if(bw(t))return[".".concat(t.styledComponentId)];if(x0(t))if(sG(t)&&e){var l=t,a=l(e);return Bo(a,e,n,r)}else return[t];return t instanceof H3?n?(t.inject(n,r),[t.getName(r)]):[t]:wd(t)?W3(t):[t.toString()]}function Y3(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(x0(n)&&!bw(n))return!1}return!0}var aG=R3(_0),lG=function(){function t(e,n,r){this.names=[],this.rules=e,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&Y3(e),this.componentId=n,this.baseHash=Ka(aG,n),this.baseStyle=r,Pg.registerId(n)}return t.prototype.generateAndInjectStyles=function(e,n,r){var i=this.componentId;if(this.names.length=0,this.baseStyle&&this.names.push(this.baseStyle.generateAndInjectStyles(e,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(i,this.staticRulesId))this.names.push(this.staticRulesId);else{var o=Bo(this.rules,e,n,r).join(""),s=M_(Ka(this.baseHash,o)>>>0);if(!n.hasNameForId(i,s)){var a=r(o,".".concat(s),void 0,i);n.insertRules(i,s,a)}this.names.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,c=Ka(this.baseHash,r.hash),u="",d=0;d<l;d++){var h=this.rules[d];if(typeof h=="string")u+=h;else if(h){var f=Bo(h,e,n,r),p=Array.isArray(f)?f.join(""):f;c=Ka(c,p),u+=p}}if(u){var g=M_(c>>>0);if(!n.hasNameForId(i,g)){var y=r(u,".".concat(g),void 0,i);n.insertRules(i,g,y)}this.names.push(g)}}return this.names.join(" ")},t}(),Sw=Q.createContext(void 0);Sw.Consumer;var Jv={};function cG(t,e){var n=typeof t!="string"?"sc":P3(t);Jv[n]=(Jv[n]||0)+1;var r="".concat(n,"-").concat(_w(_0+n+Jv[n]));return e?"".concat(e,"-").concat(r):r}function uG(t,e,n,r){var i=j3(),o=V3(),s=t.generateAndInjectStyles(e?na:n,i,o);return s}function dG(t,e,n,r){var i=t.attrs,o=t.componentStyle,s=t.defaultProps,a=t.foldedComponentIds,l=t.styledComponentId,c=t.target,u=tG(),d=t.shouldForwardProp||u,h=$3(e,m.exports.useContext(Sw),s)||na,f=i.reduce(function(b,w){var S=typeof w=="function"?w(b):w;for(var E in S)b[E]=E==="className"?TY(b[E],S[E]):E==="style"?rn(rn({},b[E]),S[E]):S[E];return b},rn(rn({},e),{theme:h})),p=uG(o,r,f),g=n,y=f.as||c,v=xw(y),_={};for(var x in f)f[x]===void 0||x[0]==="$"||x==="as"||x==="theme"||(x==="forwardedAs"?_.as=f.forwardedAs:(!d||d(x,y))&&(_[x]=f[x]));return _[v&&M3.indexOf(y)===-1?"class":"className"]=a.concat(l,p!==l?p:"",f.className||"").filter(Boolean).join(" "),_.ref=g,m.exports.createElement(y,_)}function hG(t,e,n){var r=bw(t),i=t,o=!xw(t),s=e.attrs,a=s===void 0?$g:s,l=e.componentId,c=l===void 0?cG(e.displayName,e.parentComponentId):l,u=e.displayName,d=u===void 0?vY(t):u,h=e.displayName&&e.componentId?"".concat(P3(e.displayName),"-").concat(e.componentId):e.componentId||c,f=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a,p=e.shouldForwardProp;if(r&&i.shouldForwardProp){var g=i.shouldForwardProp;if(e.shouldForwardProp){var y=e.shouldForwardProp;p=function(S,E){return g(S,E)&&y(S,E)}}else p=g}var v=new lG(n,h,r?i.componentStyle:void 0),_=v.isStatic&&a.length===0;function x(S,E){return dG(b,S,E,_)}x.displayName=d;var b=Q.forwardRef(x);if(b.attrs=f,b.componentStyle=v,b.displayName=d,b.shouldForwardProp=p,b.foldedComponentIds=r?i.foldedComponentIds.concat(i.styledComponentId):$g,b.styledComponentId=h,b.target=r?i.target:t,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=r?$Y({},i.defaultProps,S):S}}),b.toString=function(){return".".concat(b.styledComponentId)},o){var w=t;N3(b,w,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0})}return b}function ek(t,e){for(var n=[t[0]],r=0,i=e.length;r<i;r+=1)n.push(e[r],t[r+1]);return n}var nk=function(t){return Object.assign(t,{isCss:!0})};function vt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(x0(t)||wd(t)){var r=t;return nk(Bo(ek($g,Fl([r],e,!0))))}var i=t;return e.length===0&&i.length===1&&typeof i[0]=="string"?Bo(i):nk(Bo(ek(i,e)))}function R_(t,e,n){if(n===void 0&&(n=na),!e)throw th(1,e);var r=function(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return t(e,n,vt.apply(void 0,Fl([i],o,!1)))};return r.attrs=function(i){return R_(t,e,rn(rn({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return R_(t,e,rn(rn({},n),i))},r}var G3=function(t){return R_(hG,t)},N=G3;M3.forEach(function(t){N[t]=G3(t)});var fG=function(){function t(e,n){this.rules=e,this.componentId=n,this.isStatic=Y3(e),Pg.registerId(this.componentId+1)}return t.prototype.createStyles=function(e,n,r,i){var o=Bo(this.rules,n,r,i),s=i(o.join(""),""),a=this.componentId+e;r.insertRules(a,a,s)},t.prototype.removeStyles=function(e,n){n.clearRules(this.componentId+e)},t.prototype.renderStyles=function(e,n,r,i){e>2&&Pg.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,n,r,i)},t}();function q3(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=vt.apply(void 0,Fl([t],e,!1)),i="sc-global-".concat(_w(JSON.stringify(r))),o=new fG(r,i),s=function(l){var c=j3(),u=V3(),d=Q.useContext(Sw),h=Q.useRef(c.allocateGSInstance(i)),f=h.current;return c.server&&a(f,l,c,d,u),(Q.useInsertionEffect||Q.useLayoutEffect)(function(){if(!c.server)return a(f,l,c,d,u),function(){return o.removeStyles(f,c)}},[f,l,c,d,u]),null};function a(l,c,u,d,h){if(o.isStatic)o.renderStyles(l,hY,u,h);else{var f=rn(rn({},c),{theme:$3(c,d,s.defaultProps)});o.renderStyles(l,f,u,h)}}return Q.memo(s)}function b0(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=vt.apply(void 0,Fl([t],e,!1)).join(""),i=_w(r);return new H3(i,r)}var L_=function(t,e){return L_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},L_(t,e)};function Z3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");L_(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Z=function(){return Z=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Z.apply(this,arguments)};function ci(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Me(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function ri(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var pG="production",X3=typeof process>"u"||process.env===void 0?pG:"production",di=function(t){return{isEnabled:function(e){return t.some(function(n){return!!e[n]})}}},Sd={measureLayout:di(["layout","layoutId","drag"]),animation:di(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:di(["exit"]),drag:di(["drag","dragControls"]),focus:di(["whileFocus"]),hover:di(["whileHover","onHoverStart","onHoverEnd"]),tap:di(["whileTap","onTap","onTapStart","onTapCancel"]),pan:di(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:di(["whileInView","onViewportEnter","onViewportLeave"])};function gG(t){for(var e in t)t[e]!==null&&(e==="projectionNodeConstructor"?Sd.projectionNodeConstructor=t[e]:Sd[e].Component=t[e])}var mG=function(){},Og=function(){},K3=m.exports.createContext({strict:!1}),Q3=Object.keys(Sd),vG=Q3.length;function yG(t,e,n){var r=[],i=m.exports.useContext(K3);if(!e)return null;X3!=="production"&&n&&i.strict;for(var o=0;o<vG;o++){var s=Q3[o],a=Sd[s],l=a.isEnabled,c=a.Component;l(t)&&c&&r.push(O(c,{...Z({key:s},t,{visualElement:e})}))}return r}var Ew=m.exports.createContext({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),w0=m.exports.createContext({});function _G(){return m.exports.useContext(w0).visualElement}var S0=m.exports.createContext(null),ic=typeof document<"u",rk=ic?m.exports.useLayoutEffect:m.exports.useEffect,D_={current:null},J3=!1;function xG(){if(J3=!0,!!ic)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return D_.current=t.matches};t.addListener(e),e()}else D_.current=!1}function bG(){!J3&&xG();var t=Me(m.exports.useState(D_.current),1),e=t[0];return e}function wG(){var t=bG(),e=m.exports.useContext(Ew).reducedMotion;return e==="never"?!1:e==="always"?!0:t}function SG(t,e,n,r){var i=m.exports.useContext(K3),o=_G(),s=m.exports.useContext(S0),a=wG(),l=m.exports.useRef(void 0);r||(r=i.renderer),!l.current&&r&&(l.current=r(t,{visualState:e,parent:o,props:n,presenceId:s==null?void 0:s.id,blockInitialAnimation:(s==null?void 0:s.initial)===!1,shouldReduceMotion:a}));var c=l.current;return rk(function(){c==null||c.syncRender()}),m.exports.useEffect(function(){var u;(u=c==null?void 0:c.animationState)===null||u===void 0||u.animateChanges()}),rk(function(){return function(){return c==null?void 0:c.notifyUnmount()}},[]),c}function Qa(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function EG(t,e,n){return m.exports.useCallback(function(r){var i;r&&((i=t.mount)===null||i===void 0||i.call(t,r)),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Qa(n)&&(n.current=r))},[e])}function tL(t){return Array.isArray(t)}function $r(t){return typeof t=="string"||tL(t)}function CG(t){var e={};return t.forEachValue(function(n,r){return e[r]=n.get()}),e}function kG(t){var e={};return t.forEachValue(function(n,r){return e[r]=n.getVelocity()}),e}function eL(t,e,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof e=="function"&&(e=e(n!=null?n:t.custom,r,i)),typeof e=="string"&&(e=(o=t.variants)===null||o===void 0?void 0:o[e]),typeof e=="function"&&(e=e(n!=null?n:t.custom,r,i)),e}function E0(t,e,n){var r=t.getProps();return eL(r,e,n!=null?n:r.custom,CG(t),kG(t))}function C0(t){var e;return typeof((e=t.animate)===null||e===void 0?void 0:e.start)=="function"||$r(t.initial)||$r(t.animate)||$r(t.whileHover)||$r(t.whileDrag)||$r(t.whileTap)||$r(t.whileFocus)||$r(t.exit)}function nL(t){return Boolean(C0(t)||t.variants)}function AG(t,e){if(C0(t)){var n=t.initial,r=t.animate;return{initial:n===!1||$r(n)?n:void 0,animate:$r(r)?r:void 0}}return t.inherit!==!1?e:{}}function TG(t){var e=AG(t,m.exports.useContext(w0)),n=e.initial,r=e.animate;return m.exports.useMemo(function(){return{initial:n,animate:r}},[ik(n),ik(r)])}function ik(t){return Array.isArray(t)?t.join(" "):t}function k0(t){var e=m.exports.useRef(null);return e.current===null&&(e.current=t()),e.current}var Eu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$G=1;function MG(){return k0(function(){if(Eu.hasEverUpdated)return $G++})}var rL=m.exports.createContext({}),iL=m.exports.createContext({});function PG(t,e,n,r){var i,o=e.layoutId,s=e.layout,a=e.drag,l=e.dragConstraints,c=e.layoutScroll,u=m.exports.useContext(iL);!r||!n||(n==null?void 0:n.projection)||(n.projection=new r(t,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(a)||l&&Qa(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:u,layoutScroll:c}))}var OG=function(t){Z3(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},e.prototype.componentDidUpdate=function(){},e.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},e.prototype.render=function(){return this.props.children},e}(Q.Component);function RG(t){var e=t.preloadedFeatures,n=t.createVisualElement,r=t.projectionNodeConstructor,i=t.useRender,o=t.useVisualState,s=t.Component;e&&gG(e);function a(l,c){var u=LG(l);l=Z(Z({},l),{layoutId:u});var d=m.exports.useContext(Ew),h=null,f=TG(l),p=d.isStatic?void 0:MG(),g=o(l,d.isStatic);return!d.isStatic&&ic&&(f.visualElement=SG(s,g,Z(Z({},d),l),n),PG(p,l,f.visualElement,r||Sd.projectionNodeConstructor),h=yG(l,f.visualElement,e)),_e(OG,{visualElement:f.visualElement,props:Z(Z({},d),l),children:[h,O(w0.Provider,{value:f,children:i(s,l,p,EG(g,f.visualElement,c),g,d.isStatic,f.visualElement)})]})}return m.exports.forwardRef(a)}function LG(t){var e,n=t.layoutId,r=(e=m.exports.useContext(rL))===null||e===void 0?void 0:e.id;return r&&n!==void 0?r+"-"+n:n}function DG(t){function e(r,i){return i===void 0&&(i={}),RG(t(r,i))}if(typeof Proxy>"u")return e;var n=new Map;return new Proxy(e,{get:function(r,i){return n.has(i)||n.set(i,e(i)),n.get(i)}})}var IG=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Cw(t){return typeof t!="string"||t.includes("-")?!1:!!(IG.indexOf(t)>-1||/[A-Z]/.test(t))}var Rg={};function NG(t){Object.assign(Rg,t)}var I_=["","X","Y","Z"],FG=["translate","scale","rotate","skew"],Ed=["transformPerspective","x","y","z"];FG.forEach(function(t){return I_.forEach(function(e){return Ed.push(t+e)})});function zG(t,e){return Ed.indexOf(t)-Ed.indexOf(e)}var BG=new Set(Ed);function eh(t){return BG.has(t)}var jG=new Set(["originX","originY","originZ"]);function oL(t){return jG.has(t)}function sL(t,e){var n=e.layout,r=e.layoutId;return eh(t)||oL(t)||(n||r!==void 0)&&(!!Rg[t]||t==="opacity")}var Ni=function(t){return Boolean(t!==null&&typeof t=="object"&&t.getVelocity)},VG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function HG(t,e,n,r){var i=t.transform,o=t.transformKeys,s=e.enableHardwareAcceleration,a=s===void 0?!0:s,l=e.allowTransformNone,c=l===void 0?!0:l,u="";o.sort(zG);for(var d=!1,h=o.length,f=0;f<h;f++){var p=o[f];u+="".concat(VG[p]||p,"(").concat(i[p],") "),p==="z"&&(d=!0)}return!d&&a?u+="translateZ(0)":u=u.trim(),r?u=r(i,n?"":u):c&&n&&(u="none"),u}function UG(t){var e=t.originX,n=e===void 0?"50%":e,r=t.originY,i=r===void 0?"50%":r,o=t.originZ,s=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(s)}function aL(t){return t.startsWith("--")}var WG=function(t,e){return e&&typeof t=="number"?e.transform(t):t};const lL=(t,e)=>n=>Math.max(Math.min(n,e),t),Cu=t=>t%1?Number(t.toFixed(5)):t,Cd=/(-)?([\d]*\.?[\d])+/g,N_=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,YG=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function nh(t){return typeof t=="string"}const da={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ku=Object.assign(Object.assign({},da),{transform:lL(0,1)}),Jh=Object.assign(Object.assign({},da),{default:1}),rh=t=>({test:e=>nh(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ro=rh("deg"),ii=rh("%"),rt=rh("px"),GG=rh("vh"),qG=rh("vw"),ok=Object.assign(Object.assign({},ii),{parse:t=>ii.parse(t)/100,transform:t=>ii.transform(t*100)}),kw=(t,e)=>n=>Boolean(nh(n)&&YG.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),cL=(t,e,n)=>r=>{if(!nh(r))return r;const[i,o,s,a]=r.match(Cd);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Ds={test:kw("hsl","hue"),parse:cL("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ii.transform(Cu(e))+", "+ii.transform(Cu(n))+", "+Cu(ku.transform(r))+")"},ZG=lL(0,255),t1=Object.assign(Object.assign({},da),{transform:t=>Math.round(ZG(t))}),bo={test:kw("rgb","red"),parse:cL("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+t1.transform(t)+", "+t1.transform(e)+", "+t1.transform(n)+", "+Cu(ku.transform(r))+")"};function XG(t){let e="",n="",r="",i="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),i=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),i=t.substr(4,1),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const F_={test:kw("#"),parse:XG,transform:bo.transform},un={test:t=>bo.test(t)||F_.test(t)||Ds.test(t),parse:t=>bo.test(t)?bo.parse(t):Ds.test(t)?Ds.parse(t):F_.parse(t),transform:t=>nh(t)?t:t.hasOwnProperty("red")?bo.transform(t):Ds.transform(t)},uL="${c}",dL="${n}";function KG(t){var e,n,r,i;return isNaN(t)&&nh(t)&&((n=(e=t.match(Cd))===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0)+((i=(r=t.match(N_))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function hL(t){typeof t=="number"&&(t=`${t}`);const e=[];let n=0;const r=t.match(N_);r&&(n=r.length,t=t.replace(N_,uL),e.push(...r.map(un.parse)));const i=t.match(Cd);return i&&(t=t.replace(Cd,dL),e.push(...i.map(da.parse))),{values:e,numColors:n,tokenised:t}}function fL(t){return hL(t).values}function pL(t){const{values:e,numColors:n,tokenised:r}=hL(t),i=e.length;return o=>{let s=r;for(let a=0;a<i;a++)s=s.replace(a<n?uL:dL,a<n?un.transform(o[a]):Cu(o[a]));return s}}const QG=t=>typeof t=="number"?0:t;function JG(t){const e=fL(t);return pL(t)(e.map(QG))}const Fi={test:KG,parse:fL,createTransformer:pL,getAnimatableNone:JG},tq=new Set(["brightness","contrast","saturate","opacity"]);function eq(t){let[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Cd)||[];if(!r)return t;const i=n.replace(r,"");let o=tq.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const nq=/([a-z-]*)\(.*?\)/g,z_=Object.assign(Object.assign({},Fi),{getAnimatableNone:t=>{const e=t.match(nq);return e?e.map(eq).join(" "):t}});var sk=Z(Z({},da),{transform:Math.round}),gL={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,size:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,rotate:ro,rotateX:ro,rotateY:ro,rotateZ:ro,scale:Jh,scaleX:Jh,scaleY:Jh,scaleZ:Jh,skew:ro,skewX:ro,skewY:ro,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:ku,originX:ok,originY:ok,originZ:rt,zIndex:sk,fillOpacity:ku,strokeOpacity:ku,numOctaves:sk};function Aw(t,e,n,r){var i,o=t.style,s=t.vars,a=t.transform,l=t.transformKeys,c=t.transformOrigin;l.length=0;var u=!1,d=!1,h=!0;for(var f in e){var p=e[f];if(aL(f)){s[f]=p;continue}var g=gL[f],y=WG(p,g);if(eh(f)){if(u=!0,a[f]=y,l.push(f),!h)continue;p!==((i=g.default)!==null&&i!==void 0?i:0)&&(h=!1)}else oL(f)?(c[f]=y,d=!0):o[f]=y}u?o.transform=HG(t,n,h,r):r?o.transform=r({},""):!e.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=UG(c))}var Tw=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function mL(t,e,n){for(var r in e)!Ni(e[r])&&!sL(r,n)&&(t[r]=e[r])}function rq(t,e,n){var r=t.transformTemplate;return m.exports.useMemo(function(){var i=Tw();Aw(i,e,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return Z(Z({},o),s)},[e])}function iq(t,e,n){var r=t.style||{},i={};return mL(i,r,t),Object.assign(i,rq(t,e,n)),t.transformValues&&(i=t.transformValues(i)),i}function oq(t,e,n){var r={},i=iq(t,e,n);return Boolean(t.drag)&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":"pan-".concat(t.drag==="x"?"y":"x")),r.style=i,r}var sq=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Lg(t){return sq.has(t)}var vL=function(t){return!Lg(t)};function aq(t){!t||(vL=function(e){return e.startsWith("on")?!Lg(e):t(e)})}try{aq(require("@emotion/is-prop-valid").default)}catch(t){}function lq(t,e,n){var r={};for(var i in t)(vL(i)||n===!0&&Lg(i)||!e&&!Lg(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function ak(t,e,n){return typeof t=="string"?t:rt.transform(e+n*t)}function cq(t,e,n){var r=ak(e,t.x,t.width),i=ak(n,t.y,t.height);return"".concat(r," ").concat(i)}var uq={offset:"stroke-dashoffset",array:"stroke-dasharray"},dq={offset:"strokeDashoffset",array:"strokeDasharray"};function hq(t,e,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),i===void 0&&(i=!0),t.pathLength=1;var o=i?uq:dq;t[o.offset]=rt.transform(-r);var s=rt.transform(e),a=rt.transform(n);t[o.array]="".concat(s," ").concat(a)}function $w(t,e,n,r){var i=e.attrX,o=e.attrY,s=e.originX,a=e.originY,l=e.pathLength,c=e.pathSpacing,u=c===void 0?1:c,d=e.pathOffset,h=d===void 0?0:d,f=ci(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Aw(t,f,n,r),t.attrs=t.style,t.style={};var p=t.attrs,g=t.style,y=t.dimensions;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(s!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=cq(y,s!==void 0?s:.5,a!==void 0?a:.5)),i!==void 0&&(p.x=i),o!==void 0&&(p.y=o),l!==void 0&&hq(p,l,u,h,!1)}var yL=function(){return Z(Z({},Tw()),{attrs:{}})};function fq(t,e){var n=m.exports.useMemo(function(){var i=yL();return $w(i,e,{enableHardwareAcceleration:!1},t.transformTemplate),Z(Z({},i.attrs),{style:Z({},i.style)})},[e]);if(t.style){var r={};mL(r,t.style,t),n.style=Z(Z({},r),n.style)}return n}function pq(t){t===void 0&&(t=!1);var e=function(n,r,i,o,s,a){var l=s.latestValues,c=Cw(n)?fq:oq,u=c(r,l,a),d=lq(r,typeof n=="string",t),h=Z(Z(Z({},d),u),{ref:o});return i&&(h["data-projection-id"]=i),m.exports.createElement(n,h)};return e}var gq=/([a-z])([A-Z])/g,mq="$1-$2",_L=function(t){return t.replace(gq,mq).toLowerCase()};function xL(t,e,n,r){var i=e.style,o=e.vars;Object.assign(t.style,i,r&&r.getProjectionStyles(n));for(var s in o)t.style.setProperty(s,o[s])}var bL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function wL(t,e,n,r){xL(t,e,void 0,r);for(var i in e.attrs)t.setAttribute(bL.has(i)?i:_L(i),e.attrs[i])}function Mw(t){var e=t.style,n={};for(var r in e)(Ni(e[r])||sL(r,t))&&(n[r]=e[r]);return n}function SL(t){var e=Mw(t);for(var n in t)if(Ni(t[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;e[r]=t[n]}return e}function Pw(t){return typeof t=="object"&&typeof t.start=="function"}var kd=function(t){return Array.isArray(t)},vq=function(t){return Boolean(t&&typeof t=="object"&&t.mix&&t.toValue)},EL=function(t){return kd(t)?t[t.length-1]||0:t};function wp(t){var e=Ni(t)?t.get():t;return vq(e)?e.toValue():e}function lk(t,e,n,r){var i=t.scrapeMotionValuesFromProps,o=t.createRenderState,s=t.onMount,a={latestValues:yq(e,n,r,i),renderState:o()};return s&&(a.mount=function(l){return s(e,l,a)}),a}var CL=function(t){return function(e,n){var r=m.exports.useContext(w0),i=m.exports.useContext(S0);return n?lk(t,e,r,i):k0(function(){return lk(t,e,r,i)})}};function yq(t,e,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(t);for(var a in s)i[a]=wp(s[a]);var l=t.initial,c=t.animate,u=C0(t),d=nL(t);e&&d&&!u&&t.inherit!==!1&&(l!=null||(l=e.initial),c!=null||(c=e.animate));var h=o||l===!1,f=h?c:l;if(f&&typeof f!="boolean"&&!Pw(f)){var p=Array.isArray(f)?f:[f];p.forEach(function(g){var y=eL(t,g);if(!!y){var v=y.transitionEnd;y.transition;var _=ci(y,["transitionEnd","transition"]);for(var x in _){var b=_[x];if(Array.isArray(b)){var w=h?b.length-1:0;b=b[w]}b!==null&&(i[x]=b)}for(var x in v)i[x]=v[x]}})}return i}var _q={useVisualState:CL({scrapeMotionValuesFromProps:SL,createRenderState:yL,onMount:function(t,e,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}$w(r,i,{enableHardwareAcceleration:!1},t.transformTemplate),wL(e,r)}})},xq={useVisualState:CL({scrapeMotionValuesFromProps:Mw,createRenderState:Tw})};function bq(t,e,n,r,i){var o=e.forwardMotionProps,s=o===void 0?!1:o,a=Cw(t)?_q:xq;return Z(Z({},a),{preloadedFeatures:n,useRender:pq(s),createVisualElement:r,projectionNodeConstructor:i,Component:t})}var Vt;(function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"})(Vt||(Vt={}));function A0(t,e,n,r){return r===void 0&&(r={passive:!0}),t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n)}}function B_(t,e,n,r){m.exports.useEffect(function(){var i=t.current;if(n&&i)return A0(i,e,n,r)},[t,e,n,r])}function wq(t){var e=t.whileFocus,n=t.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(Vt.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(Vt.Focus,!1)};B_(n,"focus",e?r:void 0),B_(n,"blur",e?i:void 0)}function kL(t){return typeof PointerEvent<"u"&&t instanceof PointerEvent?t.pointerType==="mouse":t instanceof MouseEvent}function AL(t){var e=!!t.touches;return e}function Sq(t){return function(e){var n=e instanceof MouseEvent,r=!n||n&&e.button===0;r&&t(e)}}var Eq={pageX:0,pageY:0};function Cq(t,e){e===void 0&&(e="page");var n=t.touches[0]||t.changedTouches[0],r=n||Eq;return{x:r[e+"X"],y:r[e+"Y"]}}function kq(t,e){return e===void 0&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function Ow(t,e){return e===void 0&&(e="page"),{point:AL(t)?Cq(t,e):kq(t,e)}}var TL=function(t,e){e===void 0&&(e=!1);var n=function(r){return t(r,Ow(r))};return e?Sq(n):n},Aq=function(){return ic&&window.onpointerdown===null},Tq=function(){return ic&&window.ontouchstart===null},$q=function(){return ic&&window.onmousedown===null},Mq={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Pq={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function $L(t){return Aq()?t:Tq()?Pq[t]:$q()?Mq[t]:t}function ml(t,e,n,r){return A0(t,$L(e),TL(n,e==="pointerdown"),r)}function Dg(t,e,n,r){return B_(t,$L(e),n&&TL(n,e==="pointerdown"),r)}function ML(t){var e=null;return function(){var n=function(){e=null};return e===null?(e=t,n):!1}}var ck=ML("dragHorizontal"),uk=ML("dragVertical");function PL(t){var e=!1;if(t==="y")e=uk();else if(t==="x")e=ck();else{var n=ck(),r=uk();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}function OL(){var t=PL(!0);return t?(t(),!1):!0}function dk(t,e,n){return function(r,i){var o;!kL(r)||OL()||((o=t.animationState)===null||o===void 0||o.setActive(Vt.Hover,e),n==null||n(r,i))}}function Oq(t){var e=t.onHoverStart,n=t.onHoverEnd,r=t.whileHover,i=t.visualElement;Dg(i,"pointerenter",e||r?dk(i,!0,e):void 0,{passive:!e}),Dg(i,"pointerleave",n||r?dk(i,!1,n):void 0,{passive:!n})}var RL=function(t,e){return e?t===e?!0:RL(t,e.parentElement):!1};function LL(t){return m.exports.useEffect(function(){return function(){return t()}},[])}const Ig=(t,e,n)=>Math.min(Math.max(n,t),e),e1=.001,Rq=.01,hk=10,Lq=.05,Dq=1;function Iq({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;mG(t<=hk*1e3);let s=1-e;s=Ig(Lq,Dq,s),t=Ig(Rq,hk,t/1e3),s<1?(i=c=>{const u=c*s,d=u*t,h=u-n,f=j_(c,s),p=Math.exp(-d);return e1-h/f*p},o=c=>{const d=c*s*t,h=d*n+n,f=Math.pow(s,2)*Math.pow(c,2)*t,p=Math.exp(-d),g=j_(Math.pow(c,2),s);return(-i(c)+e1>0?-1:1)*((h-f)*p)/g}):(i=c=>{const u=Math.exp(-c*t),d=(c-n)*t+1;return-e1+u*d},o=c=>{const u=Math.exp(-c*t),d=(n-c)*(t*t);return u*d});const a=5/t,l=Fq(i,o,a);if(t=t*1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:t}}}const Nq=12;function Fq(t,e,n){let r=n;for(let i=1;i<Nq;i++)r=r-t(r)/e(r);return r}function j_(t,e){return t*Math.sqrt(1-e*e)}const zq=["duration","bounce"],Bq=["stiffness","damping","mass"];function fk(t,e){return e.some(n=>t[n]!==void 0)}function jq(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!fk(t,Bq)&&fk(t,zq)){const n=Iq(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function Rw(t){var{from:e=0,to:n=1,restSpeed:r=2,restDelta:i}=t,o=b3(t,["from","to","restSpeed","restDelta"]);const s={done:!1,value:e};let{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:h}=jq(o),f=pk,p=pk;function g(){const y=u?-(u/1e3):0,v=n-e,_=l/(2*Math.sqrt(a*c)),x=Math.sqrt(a/c)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-e)/100,.4)),_<1){const b=j_(x,_);f=w=>{const S=Math.exp(-_*x*w);return n-S*((y+_*x*v)/b*Math.sin(b*w)+v*Math.cos(b*w))},p=w=>{const S=Math.exp(-_*x*w);return _*x*S*(Math.sin(b*w)*(y+_*x*v)/b+v*Math.cos(b*w))-S*(Math.cos(b*w)*(y+_*x*v)-b*v*Math.sin(b*w))}}else if(_===1)f=b=>n-Math.exp(-x*b)*(v+(y+x*v)*b);else{const b=x*Math.sqrt(_*_-1);f=w=>{const S=Math.exp(-_*x*w),E=Math.min(b*w,300);return n-S*((y+_*x*v)*Math.sinh(E)+b*v*Math.cosh(E))/b}}}return g(),{next:y=>{const v=f(y);if(h)s.done=y>=d;else{const _=p(y)*1e3,x=Math.abs(_)<=r,b=Math.abs(n-v)<=i;s.done=x&&b}return s.value=s.done?n:v,s},flipTarget:()=>{u=-u,[e,n]=[n,e],g()}}}Rw.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const pk=t=>0,Ad=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},le=(t,e,n)=>-n*t+n*e+t;function n1(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function gk({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,s=0;if(!e)i=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=n1(l,a,t+1/3),o=n1(l,a,t),s=n1(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Vq=(t,e,n)=>{const r=t*t,i=e*e;return Math.sqrt(Math.max(0,n*(i-r)+r))},Hq=[F_,bo,Ds],mk=t=>Hq.find(e=>e.test(t)),DL=(t,e)=>{let n=mk(t),r=mk(e),i=n.parse(t),o=r.parse(e);n===Ds&&(i=gk(i),n=bo),r===Ds&&(o=gk(o),r=bo);const s=Object.assign({},i);return a=>{for(const l in s)l!=="alpha"&&(s[l]=Vq(i[l],o[l],a));return s.alpha=le(i.alpha,o.alpha,a),n.transform(s)}},V_=t=>typeof t=="number",Uq=(t,e)=>n=>e(t(n)),T0=(...t)=>t.reduce(Uq);function IL(t,e){return V_(t)?n=>le(t,e,n):un.test(t)?DL(t,e):FL(t,e)}const NL=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,s)=>IL(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},Wq=(t,e)=>{const n=Object.assign(Object.assign({},t),e),r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=IL(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function vk(t){const e=Fi.parse(t),n=e.length;let r=0,i=0,o=0;for(let s=0;s<n;s++)r||typeof e[s]=="number"?r++:e[s].hue!==void 0?o++:i++;return{parsed:e,numNumbers:r,numRGB:i,numHSL:o}}const FL=(t,e)=>{const n=Fi.createTransformer(e),r=vk(t),i=vk(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?T0(NL(r.parsed,i.parsed),n):s=>`${s>0?e:t}`},Yq=(t,e)=>n=>le(t,e,n);function Gq(t){if(typeof t=="number")return Yq;if(typeof t=="string")return un.test(t)?DL:FL;if(Array.isArray(t))return NL;if(typeof t=="object")return Wq}function qq(t,e,n){const r=[],i=n||Gq(t[0]),o=t.length-1;for(let s=0;s<o;s++){let a=i(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]:e;a=T0(l,a)}r.push(a)}return r}function Zq([t,e],[n]){return r=>n(Ad(t,e,r))}function Xq(t,e){const n=t.length,r=n-1;return i=>{let o=0,s=!1;if(i<=t[0]?s=!0:i>=t[r]&&(o=r-1,s=!0),!s){let l=1;for(;l<n&&!(t[l]>i||l===r);l++);o=l-1}const a=Ad(t[o],t[o+1],i);return e[o](a)}}function zL(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;Og(o===e.length),Og(!r||!Array.isArray(r)||r.length===o-1),t[0]>t[o-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const s=qq(e,r,i),a=o===2?Zq(t,s):Xq(t,s);return n?l=>a(Ig(t[0],t[o-1],l)):a}const $0=t=>e=>1-t(1-e),Lw=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Kq=t=>e=>Math.pow(e,t),BL=t=>e=>e*e*((t+1)*e-t),Qq=t=>{const e=BL(t);return n=>(n*=2)<1?.5*e(n):.5*(2-Math.pow(2,-10*(n-1)))},jL=1.525,Jq=4/11,tZ=8/11,eZ=9/10,Dw=t=>t,Iw=Kq(2),nZ=$0(Iw),VL=Lw(Iw),HL=t=>1-Math.sin(Math.acos(t)),Nw=$0(HL),rZ=Lw(Nw),Fw=BL(jL),iZ=$0(Fw),oZ=Lw(Fw),sZ=Qq(jL),aZ=4356/361,lZ=35442/1805,cZ=16061/1805,Ng=t=>{if(t===1||t===0)return t;const e=t*t;return t<Jq?7.5625*e:t<tZ?9.075*e-9.9*t+3.4:t<eZ?aZ*e-lZ*t+cZ:10.8*t*t-20.52*t+10.72},uZ=$0(Ng),dZ=t=>t<.5?.5*(1-Ng(1-t*2)):.5*Ng(t*2-1)+.5;function hZ(t,e){return t.map(()=>e||VL).splice(0,t.length-1)}function fZ(t){const e=t.length;return t.map((n,r)=>r!==0?r/(e-1):0)}function pZ(t,e){return t.map(n=>n*e)}function Sp({from:t=0,to:e=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:t},s=Array.isArray(e)?e:[t,e],a=pZ(r&&r.length===s.length?r:fZ(s),i);function l(){return zL(a,s,{ease:Array.isArray(n)?n:hZ(s,n)})}let c=l();return{next:u=>(o.value=c(u),o.done=u>=i,o),flipTarget:()=>{s.reverse(),c=l()}}}function gZ({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:e};let a=n*t;const l=e+a,c=o===void 0?l:o(l);return c!==l&&(a=c-e),{next:u=>{const d=-a*Math.exp(-u/r);return s.done=!(d>i||d<-i),s.value=s.done?c:c+d,s},flipTarget:()=>{}}}const yk={keyframes:Sp,spring:Rw,decay:gZ};function mZ(t){if(Array.isArray(t.to))return Sp;if(yk[t.type])return yk[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?Sp:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Rw:Sp}const UL=1/60*1e3,vZ=typeof performance<"u"?()=>performance.now():()=>Date.now(),WL=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(vZ()),UL);function yZ(t){let e=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const d=u&&i,h=d?e:n;return c&&s.add(l),h.indexOf(l)===-1&&(h.push(l),d&&i&&(r=e.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let c=0;c<r;c++){const u=e[c];u(l),s.has(u)&&(a.schedule(u),t())}i=!1,o&&(o=!1,a.process(l))}};return a}const _Z=40;let H_=!0,Td=!1,U_=!1;const vl={delta:0,timestamp:0},ih=["read","update","preRender","render","postRender"],M0=ih.reduce((t,e)=>(t[e]=yZ(()=>Td=!0),t),{}),oi=ih.reduce((t,e)=>{const n=M0[e];return t[e]=(r,i=!1,o=!1)=>(Td||bZ(),n.schedule(r,i,o)),t},{}),jl=ih.reduce((t,e)=>(t[e]=M0[e].cancel,t),{}),r1=ih.reduce((t,e)=>(t[e]=()=>M0[e].process(vl),t),{}),xZ=t=>M0[t].process(vl),YL=t=>{Td=!1,vl.delta=H_?UL:Math.max(Math.min(t-vl.timestamp,_Z),1),vl.timestamp=t,U_=!0,ih.forEach(xZ),U_=!1,Td&&(H_=!1,WL(YL))},bZ=()=>{Td=!0,H_=!0,U_||WL(YL)},Fg=()=>vl;function GL(t,e,n=0){return t-e-n}function wZ(t,e,n=0,r=!0){return r?GL(e+-t,e,n):e-(t-e)+n}function SZ(t,e,n,r){return r?t>=e+n:t<=-n}const EZ=t=>{const e=({delta:n})=>t(n);return{start:()=>oi.update(e,!0),stop:()=>jl.update(e)}};function qL(t){var e,n,{from:r,autoplay:i=!0,driver:o=EZ,elapsed:s=0,repeat:a=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:h,onRepeat:f,onUpdate:p}=t,g=b3(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,v,_=0,x=g.duration,b,w=!1,S=!0,E;const C=mZ(g);!((n=(e=C).needsInterpolation)===null||n===void 0)&&n.call(e,r,y)&&(E=zL([0,100],[r,y],{clamp:!1}),r=0,y=100);const A=C(Object.assign(Object.assign({},g),{from:r,to:y}));function k(){_++,l==="reverse"?(S=_%2===0,s=wZ(s,x,c,S)):(s=GL(s,x,c),l==="mirror"&&A.flipTarget()),w=!1,f&&f()}function $(){v.stop(),h&&h()}function M(F){if(S||(F=-F),s+=F,!w){const L=A.next(Math.max(0,s));b=L.value,E&&(b=E(b)),w=S?L.done:s<=0}p==null||p(b),w&&(_===0&&(x!=null||(x=s)),_<a?SZ(s,x,c,S)&&k():$())}function I(){u==null||u(),v=o(M),v.start()}return i&&I(),{stop:()=>{d==null||d(),v.stop()}}}function ZL(t,e){return e?t*(1e3/e):0}function CZ({from:t=0,velocity:e=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:h,onStop:f}){let p;function g(x){return n!==void 0&&x<n||r!==void 0&&x>r}function y(x){return n===void 0?r:r===void 0||Math.abs(n-x)<Math.abs(r-x)?n:r}function v(x){p==null||p.stop(),p=qL(Object.assign(Object.assign({},x),{driver:u,onUpdate:b=>{var w;d==null||d(b),(w=x.onUpdate)===null||w===void 0||w.call(x,b)},onComplete:h,onStop:f}))}function _(x){v(Object.assign({type:"spring",stiffness:s,damping:a,restDelta:l},x))}if(g(t))_({from:t,velocity:e,to:y(t)});else{let x=i*e+t;typeof c<"u"&&(x=c(x));const b=y(x),w=b===n?-1:1;let S,E;const C=A=>{S=E,E=A,e=ZL(A-S,Fg().delta),(w===1&&A>b||w===-1&&A<b)&&_({from:A,to:b,velocity:e})};v({type:"decay",from:t,velocity:e,timeConstant:o,power:i,restDelta:l,modifyTarget:c,onUpdate:g(x)?C:void 0})}return{stop:()=>p==null?void 0:p.stop()}}const W_=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),_k=t=>W_(t)&&t.hasOwnProperty("z"),tf=(t,e)=>Math.abs(t-e);function XL(t,e){if(V_(t)&&V_(e))return tf(t,e);if(W_(t)&&W_(e)){const n=tf(t.x,e.x),r=tf(t.y,e.y),i=_k(t)&&_k(e)?tf(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const KL=(t,e)=>1-3*e+3*t,QL=(t,e)=>3*e-6*t,JL=t=>3*t,zg=(t,e,n)=>((KL(e,n)*t+QL(e,n))*t+JL(e))*t,tD=(t,e,n)=>3*KL(e,n)*t*t+2*QL(e,n)*t+JL(e),kZ=1e-7,AZ=10;function TZ(t,e,n,r,i){let o,s,a=0;do s=e+(n-e)/2,o=zg(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>kZ&&++a<AZ);return s}const $Z=8,MZ=.001;function PZ(t,e,n,r){for(let i=0;i<$Z;++i){const o=tD(e,n,r);if(o===0)return e;const s=zg(e,n,r)-t;e-=s/o}return e}const Ep=11,ef=1/(Ep-1);function OZ(t,e,n,r){if(t===e&&n===r)return Dw;const i=new Float32Array(Ep);for(let s=0;s<Ep;++s)i[s]=zg(s*ef,t,n);function o(s){let a=0,l=1;const c=Ep-1;for(;l!==c&&i[l]<=s;++l)a+=ef;--l;const u=(s-i[l])/(i[l+1]-i[l]),d=a+u*ef,h=tD(d,t,n);return h>=MZ?PZ(s,d,t,n):h===0?d:TZ(s,a,a+ef,t,n)}return s=>s===0||s===1?s:zg(o(s),e,r)}function RZ(t){var e=t.onTap,n=t.onTapStart,r=t.onTapCancel,i=t.whileTap,o=t.visualElement,s=e||n||r||i,a=m.exports.useRef(!1),l=m.exports.useRef(null),c={passive:!(n||e||r||p)};function u(){var g;(g=l.current)===null||g===void 0||g.call(l),l.current=null}function d(){var g;return u(),a.current=!1,(g=o.animationState)===null||g===void 0||g.setActive(Vt.Tap,!1),!OL()}function h(g,y){!d()||(RL(o.getInstance(),g.target)?e==null||e(g,y):r==null||r(g,y))}function f(g,y){!d()||r==null||r(g,y)}function p(g,y){var v;u(),!a.current&&(a.current=!0,l.current=T0(ml(window,"pointerup",h,c),ml(window,"pointercancel",f,c)),(v=o.animationState)===null||v===void 0||v.setActive(Vt.Tap,!0),n==null||n(g,y))}Dg(o,"pointerdown",s?p:void 0,c),LL(u)}var xk=new Set;function LZ(t,e,n){t||xk.has(e)||(console.warn(e),n&&console.warn(n),xk.add(e))}var Y_=new WeakMap,i1=new WeakMap,DZ=function(t){var e;(e=Y_.get(t.target))===null||e===void 0||e(t)},IZ=function(t){t.forEach(DZ)};function NZ(t){var e=t.root,n=ci(t,["root"]),r=e||document;i1.has(r)||i1.set(r,{});var i=i1.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(IZ,Z({root:e},n))),i[o]}function FZ(t,e,n){var r=NZ(e);return Y_.set(t,n),r.observe(t),function(){Y_.delete(t),r.unobserve(t)}}function zZ(t){var e=t.visualElement,n=t.whileInView,r=t.onViewportEnter,i=t.onViewportLeave,o=t.viewport,s=o===void 0?{}:o,a=m.exports.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||i);s.once&&a.current.hasEnteredView&&(l=!1);var c=typeof IntersectionObserver>"u"?VZ:jZ;c(l,a.current,e,s)}var BZ={some:0,all:1};function jZ(t,e,n,r){var i=r.root,o=r.margin,s=r.amount,a=s===void 0?"some":s,l=r.once;m.exports.useEffect(function(){if(!!t){var c={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof a=="number"?a:BZ[a]},u=function(d){var h,f=d.isIntersecting;if(e.isInView!==f&&(e.isInView=f,!(l&&!f&&e.hasEnteredView))){f&&(e.hasEnteredView=!0),(h=n.animationState)===null||h===void 0||h.setActive(Vt.InView,f);var p=n.getProps(),g=f?p.onViewportEnter:p.onViewportLeave;g==null||g(d)}};return FZ(n.getInstance(),c,u)}},[t,i,o,a])}function VZ(t,e,n,r){var i=r.fallback,o=i===void 0?!0:i;m.exports.useEffect(function(){!t||!o||(X3!=="production"&&LZ(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;e.hasEnteredView=!0;var a=n.getProps().onViewportEnter;a==null||a(null),(s=n.animationState)===null||s===void 0||s.setActive(Vt.InView,!0)}))},[t])}var wo=function(t){return function(e){return t(e),null}},HZ={inView:wo(zZ),tap:wo(RZ),focus:wo(wq),hover:wo(Oq)},UZ=0,WZ=function(){return UZ++},YZ=function(){return k0(WZ)};function eD(){var t=m.exports.useContext(S0);if(t===null)return[!0,null];var e=t.isPresent,n=t.onExitComplete,r=t.register,i=YZ();m.exports.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!e&&n?[!1,o]:[!0]}function nD(t,e){if(!Array.isArray(e))return!1;var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}var Bg=function(t){return t*1e3},GZ={linear:Dw,easeIn:Iw,easeInOut:VL,easeOut:nZ,circIn:HL,circInOut:rZ,circOut:Nw,backIn:Fw,backInOut:oZ,backOut:iZ,anticipate:sZ,bounceIn:uZ,bounceInOut:dZ,bounceOut:Ng},bk=function(t){if(Array.isArray(t)){Og(t.length===4);var e=Me(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return OZ(n,r,i,o)}else if(typeof t=="string")return GZ[t];return t},qZ=function(t){return Array.isArray(t)&&typeof t[0]!="number"},wk=function(t,e){return t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&Fi.test(e)&&!e.startsWith("url("))},fs=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},nf=function(t){return{type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}},o1=function(){return{type:"keyframes",ease:"linear",duration:.3}},ZZ=function(t){return{type:"keyframes",duration:.8,values:t}},Sk={x:fs,y:fs,z:fs,rotate:fs,rotateX:fs,rotateY:fs,rotateZ:fs,scaleX:nf,scaleY:nf,scale:nf,opacity:o1,backgroundColor:o1,color:o1,default:nf},XZ=function(t,e){var n;return kd(e)?n=ZZ:n=Sk[t]||Sk.default,Z({to:e},n(e))},KZ=Z(Z({},gL),{color:un,backgroundColor:un,outlineColor:un,fill:un,stroke:un,borderColor:un,borderTopColor:un,borderRightColor:un,borderBottomColor:un,borderLeftColor:un,filter:z_,WebkitFilter:z_}),zw=function(t){return KZ[t]};function Bw(t,e){var n,r=zw(t);return r!==z_&&(r=Fi),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,e)}var QZ={current:!1};function JZ(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=ci(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}function tX(t){var e=t.ease,n=t.times,r=t.yoyo,i=t.flip,o=t.loop,s=ci(t,["ease","times","yoyo","flip","loop"]),a=Z({},s);return n&&(a.offset=n),s.duration&&(a.duration=Bg(s.duration)),s.repeatDelay&&(a.repeatDelay=Bg(s.repeatDelay)),e&&(a.ease=qZ(e)?e.map(bk):bk(e)),s.type==="tween"&&(a.type="keyframes"),(r||o||i)&&(r?a.repeatType="reverse":o?a.repeatType="loop":i&&(a.repeatType="mirror"),a.repeat=o||r||i||s.repeat),s.type!=="spring"&&(a.type="keyframes"),a}function eX(t,e){var n,r,i=jw(t,e)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:t.delay)!==null&&r!==void 0?r:0}function nX(t){return Array.isArray(t.to)&&t.to[0]===null&&(t.to=ri([],Me(t.to),!1),t.to[0]=t.from),t}function rX(t,e,n){var r;return Array.isArray(e.to)&&((r=t.duration)!==null&&r!==void 0||(t.duration=.8)),nX(e),JZ(t)||(t=Z(Z({},t),XZ(n,e.to))),Z(Z({},e),tX(t))}function iX(t,e,n,r,i){var o,s=jw(r,t),a=(o=s.from)!==null&&o!==void 0?o:e.get(),l=wk(t,n);a==="none"&&l&&typeof n=="string"?a=Bw(t,n):Ek(a)&&typeof n=="string"?a=Ck(n):!Array.isArray(n)&&Ek(n)&&typeof a=="string"&&(n=Ck(a));var c=wk(t,a);function u(){var h={from:a,to:n,velocity:e.getVelocity(),onComplete:i,onUpdate:function(f){return e.set(f)}};return s.type==="inertia"||s.type==="decay"?CZ(Z(Z({},h),s)):qL(Z(Z({},rX(s,h,t)),{onUpdate:function(f){var p;h.onUpdate(f),(p=s.onUpdate)===null||p===void 0||p.call(s,f)},onComplete:function(){var f;h.onComplete(),(f=s.onComplete)===null||f===void 0||f.call(s)}}))}function d(){var h,f,p=EL(n);return e.set(p),i(),(h=s==null?void 0:s.onUpdate)===null||h===void 0||h.call(s,p),(f=s==null?void 0:s.onComplete)===null||f===void 0||f.call(s),{stop:function(){}}}return!c||!l||s.type===!1?d:u}function Ek(t){return t===0||typeof t=="string"&&parseFloat(t)===0&&t.indexOf(" ")===-1}function Ck(t){return typeof t=="number"?0:Bw("",t)}function jw(t,e){return t[e]||t.default||t}function Vw(t,e,n,r){return r===void 0&&(r={}),QZ.current&&(r={type:!1}),e.start(function(i){var o,s,a=iX(t,e,n,r,i),l=eX(r,t),c=function(){return s=a()};return l?o=window.setTimeout(c,Bg(l)):c(),function(){clearTimeout(o),s==null||s.stop()}})}var oX=function(t){return/^\-?\d*\.?\d+$/.test(t)},sX=function(t){return/^0[^.\s]+$/.test(t)};function Hw(t,e){t.indexOf(e)===-1&&t.push(e)}function Uw(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Au=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(e){var n=this;return Hw(this.subscriptions,e),function(){return Uw(n.subscriptions,e)}},t.prototype.notify=function(e,n,r){var i=this.subscriptions.length;if(!!i)if(i===1)this.subscriptions[0](e,n,r);else for(var o=0;o<i;o++){var s=this.subscriptions[o];s&&s(e,n,r)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}(),aX=function(t){return!isNaN(parseFloat(t))},lX=function(){function t(e){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Au,this.velocityUpdateSubscribers=new Au,this.renderSubscribers=new Au,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=Fg(),s=o.delta,a=o.timestamp;n.lastUpdated!==a&&(n.timeDelta=s,n.lastUpdated=a,oi.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return oi.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=aX(this.current)}return t.prototype.onChange=function(e){return this.updateSubscribers.add(e)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},t.prototype.attach=function(e){this.passiveEffect=e},t.prototype.set=function(e,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?ZL(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(e){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=e(r)}).then(function(){return n.clearAnimation()})},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function Vl(t){return new lX(t)}var rD=function(t){return function(e){return e.test(t)}},cX={test:function(t){return t==="auto"},parse:function(t){return t}},iD=[da,rt,ii,ro,qG,GG,cX],Mc=function(t){return iD.find(rD(t))},uX=ri(ri([],Me(iD),!1),[un,Fi],!1),dX=function(t){return uX.find(rD(t))};function hX(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Vl(n))}function fX(t,e){var n=E0(t,e),r=n?t.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var s=ci(r,["transitionEnd","transition"]);s=Z(Z({},s),o);for(var a in s){var l=EL(s[a]);hX(t,a,l)}}function pX(t,e,n){var r,i,o,s,a=Object.keys(e).filter(function(f){return!t.hasValue(f)}),l=a.length;if(!!l)for(var c=0;c<l;c++){var u=a[c],d=e[u],h=null;Array.isArray(d)&&(h=d[0]),h===null&&(h=(i=(r=n[u])!==null&&r!==void 0?r:t.readValue(u))!==null&&i!==void 0?i:e[u]),h!=null&&(typeof h=="string"&&(oX(h)||sX(h))?h=parseFloat(h):!dX(h)&&Fi.test(d)&&(h=Bw(u,d)),t.addValue(u,Vl(h)),(o=(s=n)[u])!==null&&o!==void 0||(s[u]=h),t.setBaseTarget(u,h))}}function gX(t,e){if(!!e){var n=e[t]||e.default||e;return n.from}}function mX(t,e,n){var r,i,o={};for(var s in t)o[s]=(r=gX(s,e))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function vX(t,e,n){n===void 0&&(n={}),t.notifyAnimationStart(e);var r;if(Array.isArray(e)){var i=e.map(function(s){return G_(t,s,n)});r=Promise.all(i)}else if(typeof e=="string")r=G_(t,e,n);else{var o=typeof e=="function"?E0(t,e,n.custom):e;r=oD(t,o,n)}return r.then(function(){return t.notifyAnimationComplete(e)})}function G_(t,e,n){var r;n===void 0&&(n={});var i=E0(t,e,n.custom),o=(i||{}).transition,s=o===void 0?t.getDefaultTransition()||{}:o;n.transitionOverride&&(s=n.transitionOverride);var a=i?function(){return oD(t,i,n)}:function(){return Promise.resolve()},l=!((r=t.variantChildren)===null||r===void 0)&&r.size?function(f){f===void 0&&(f=0);var p=s.delayChildren,g=p===void 0?0:p,y=s.staggerChildren,v=s.staggerDirection;return yX(t,e,g+f,y,v,n)}:function(){return Promise.resolve()},c=s.when;if(c){var u=Me(c==="beforeChildren"?[a,l]:[l,a],2),d=u[0],h=u[1];return d().then(h)}else return Promise.all([a(),l(n.delay)])}function oD(t,e,n){var r,i=n===void 0?{}:n,o=i.delay,s=o===void 0?0:o,a=i.transitionOverride,l=i.type,c=t.makeTargetAnimatable(e),u=c.transition,d=u===void 0?t.getDefaultTransition():u,h=c.transitionEnd,f=ci(c,["transition","transitionEnd"]);a&&(d=a);var p=[],g=l&&((r=t.animationState)===null||r===void 0?void 0:r.getState()[l]);for(var y in f){var v=t.getValue(y),_=f[y];if(!(!v||_===void 0||g&&xX(g,y))){var x=Z({delay:s},d);t.shouldReduceMotion&&eh(y)&&(x=Z(Z({},x),{type:!1,delay:0}));var b=Vw(y,v,_,x);p.push(b)}}return Promise.all(p).then(function(){h&&fX(t,h)})}function yX(t,e,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var s=[],a=(t.variantChildren.size-1)*r,l=i===1?function(c){return c===void 0&&(c=0),c*r}:function(c){return c===void 0&&(c=0),a-c*r};return Array.from(t.variantChildren).sort(_X).forEach(function(c,u){s.push(G_(c,e,Z(Z({},o),{delay:n+l(u)})).then(function(){return c.notifyAnimationComplete(e)}))}),Promise.all(s)}function _X(t,e){return t.sortNodePosition(e)}function xX(t,e){var n=t.protectedKeys,r=t.needsAnimating,i=n.hasOwnProperty(e)&&r[e]!==!0;return r[e]=!1,i}var Ww=[Vt.Animate,Vt.InView,Vt.Focus,Vt.Hover,Vt.Tap,Vt.Drag,Vt.Exit],bX=ri([],Me(Ww),!1).reverse(),wX=Ww.length;function SX(t){return function(e){return Promise.all(e.map(function(n){var r=n.animation,i=n.options;return vX(t,r,i)}))}}function EX(t){var e=SX(t),n=kX(),r={},i=!0,o=function(u,d){var h=E0(t,d);if(h){h.transition;var f=h.transitionEnd,p=ci(h,["transition","transitionEnd"]);u=Z(Z(Z({},u),p),f)}return u};function s(u){return r[u]!==void 0}function a(u){e=u(t)}function l(u,d){for(var h,f=t.getProps(),p=t.getVariantContext(!0)||{},g=[],y=new Set,v={},_=1/0,x=function(E){var C=bX[E],A=n[C],k=(h=f[C])!==null&&h!==void 0?h:p[C],$=$r(k),M=C===d?A.isActive:null;M===!1&&(_=E);var I=k===p[C]&&k!==f[C]&&$;if(I&&i&&t.manuallyAnimateOnMount&&(I=!1),A.protectedKeys=Z({},v),!A.isActive&&M===null||!k&&!A.prevProp||Pw(k)||typeof k=="boolean")return"continue";var F=CX(A.prevProp,k),L=F||C===d&&A.isActive&&!I&&$||E>_&&$,Y=Array.isArray(k)?k:[k],X=Y.reduce(o,{});M===!1&&(X={});var z=A.prevResolvedValues,W=z===void 0?{}:z,P=Z(Z({},W),X),G=function(j){L=!0,y.delete(j),A.needsAnimating[j]=!0};for(var U in P){var B=X[U],R=W[U];v.hasOwnProperty(U)||(B!==R?kd(B)&&kd(R)?!nD(B,R)||F?G(U):A.protectedKeys[U]=!0:B!==void 0?G(U):y.add(U):B!==void 0&&y.has(U)?G(U):A.protectedKeys[U]=!0)}A.prevProp=k,A.prevResolvedValues=X,A.isActive&&(v=Z(Z({},v),X)),i&&t.blockInitialAnimation&&(L=!1),L&&!I&&g.push.apply(g,ri([],Me(Y.map(function(j){return{animation:j,options:Z({type:C},u)}})),!1))},b=0;b<wX;b++)x(b);if(r=Z({},v),y.size){var w={};y.forEach(function(E){var C=t.getBaseTarget(E);C!==void 0&&(w[E]=C)}),g.push({animation:w})}var S=Boolean(g.length);return i&&f.initial===!1&&!t.manuallyAnimateOnMount&&(S=!1),i=!1,S?e(g):Promise.resolve()}function c(u,d,h){var f;if(n[u].isActive===d)return Promise.resolve();(f=t.variantChildren)===null||f===void 0||f.forEach(function(y){var v;return(v=y.animationState)===null||v===void 0?void 0:v.setActive(u,d)}),n[u].isActive=d;var p=l(h,u);for(var g in n)n[g].protectedKeys={};return p}return{isAnimated:s,animateChanges:l,setActive:c,setAnimateFunction:a,getState:function(){return n}}}function CX(t,e){return typeof e=="string"?e!==t:tL(e)?!nD(e,t):!1}function ps(t){return t===void 0&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kX(){var t;return t={},t[Vt.Animate]=ps(!0),t[Vt.InView]=ps(),t[Vt.Hover]=ps(),t[Vt.Tap]=ps(),t[Vt.Drag]=ps(),t[Vt.Focus]=ps(),t[Vt.Exit]=ps(),t}var AX={animation:wo(function(t){var e=t.visualElement,n=t.animate;e.animationState||(e.animationState=EX(e)),Pw(n)&&m.exports.useEffect(function(){return n.subscribe(e)},[n])}),exit:wo(function(t){var e=t.custom,n=t.visualElement,r=Me(eD(),2),i=r[0],o=r[1],s=m.exports.useContext(S0);m.exports.useEffect(function(){var a,l;n.isPresent=i;var c=(a=n.animationState)===null||a===void 0?void 0:a.setActive(Vt.Exit,!i,{custom:(l=s==null?void 0:s.custom)!==null&&l!==void 0?l:e});!i&&(c==null||c.then(o))},[i])})},sD=function(){function t(e,n,r){var i=this,o=r===void 0?{}:r,s=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(!!(i.lastMoveEvent&&i.lastMoveEventInfo)){var h=a1(i.lastMoveEventInfo,i.history),f=i.startEvent!==null,p=XL(h.offset,{x:0,y:0})>=3;if(!(!f&&!p)){var g=h.point,y=Fg().timestamp;i.history.push(Z(Z({},g),{timestamp:y}));var v=i.handlers,_=v.onStart,x=v.onMove;f||(_&&_(i.lastMoveEvent,h),i.startEvent=i.lastMoveEvent),x&&x(i.lastMoveEvent,h)}}},this.handlePointerMove=function(h,f){if(i.lastMoveEvent=h,i.lastMoveEventInfo=s1(f,i.transformPagePoint),kL(h)&&h.buttons===0){i.handlePointerUp(h,f);return}oi.update(i.updatePoint,!0)},this.handlePointerUp=function(h,f){i.end();var p=i.handlers,g=p.onEnd,y=p.onSessionEnd,v=a1(s1(f,i.transformPagePoint),i.history);i.startEvent&&g&&g(h,v),y&&y(h,v)},!(AL(e)&&e.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var a=Ow(e),l=s1(a,this.transformPagePoint),c=l.point,u=Fg().timestamp;this.history=[Z(Z({},c),{timestamp:u})];var d=n.onSessionStart;d&&d(e,a1(l,this.history)),this.removeListeners=T0(ml(window,"pointermove",this.handlePointerMove),ml(window,"pointerup",this.handlePointerUp),ml(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(e){this.handlers=e},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),jl.update(this.updatePoint)},t}();function s1(t,e){return e?{point:e(t.point)}:t}function kk(t,e){return{x:t.x-e.x,y:t.y-e.y}}function a1(t,e){var n=t.point;return{point:n,delta:kk(n,aD(e)),offset:kk(n,TX(e)),velocity:$X(e,.1)}}function TX(t){return t[0]}function aD(t){return t[t.length-1]}function $X(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,i=aD(t);n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Bg(e)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function zi(t){return t.max-t.min}function Ak(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=.01),XL(t,e)<n}function Tk(t,e,n,r){r===void 0&&(r=.5),t.origin=r,t.originPoint=le(e.min,e.max,t.origin),t.scale=zi(n)/zi(e),(Ak(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=le(n.min,n.max,t.origin)-t.originPoint,(Ak(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Tu(t,e,n,r){Tk(t.x,e.x,n.x,r==null?void 0:r.originX),Tk(t.y,e.y,n.y,r==null?void 0:r.originY)}function $k(t,e,n){t.min=n.min+e.min,t.max=t.min+zi(e)}function MX(t,e,n){$k(t.x,e.x,n.x),$k(t.y,e.y,n.y)}function Mk(t,e,n){t.min=e.min-n.min,t.max=t.min+zi(e)}function $u(t,e,n){Mk(t.x,e.x,n.x),Mk(t.y,e.y,n.y)}function PX(t,e,n){var r=e.min,i=e.max;return r!==void 0&&t<r?t=n?le(r,t,n.min):Math.max(t,r):i!==void 0&&t>i&&(t=n?le(i,t,n.max):Math.min(t,i)),t}function Pk(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function OX(t,e){var n=e.top,r=e.left,i=e.bottom,o=e.right;return{x:Pk(t.x,r,o),y:Pk(t.y,n,i)}}function Ok(t,e){var n,r=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&(n=Me([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function RX(t,e){return{x:Ok(t.x,e.x),y:Ok(t.y,e.y)}}function LX(t,e){var n=.5,r=zi(t),i=zi(e);return i>r?n=Ad(e.min,e.max-r,t.min):r>i&&(n=Ad(t.min,t.max-i,e.min)),Ig(0,1,n)}function DX(t,e){var n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}var q_=.35;function IX(t){return t===void 0&&(t=q_),t===!1?t=0:t===!0&&(t=q_),{x:Rk(t,"left","right"),y:Rk(t,"top","bottom")}}function Rk(t,e,n){return{min:Lk(t,e),max:Lk(t,n)}}function Lk(t,e){var n;return typeof t=="number"?t:(n=t[e])!==null&&n!==void 0?n:0}var Dk=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Mu=function(){return{x:Dk(),y:Dk()}},Ik=function(){return{min:0,max:0}},Ke=function(){return{x:Ik(),y:Ik()}};function Hr(t){return[t("x"),t("y")]}function lD(t){var e=t.top,n=t.left,r=t.right,i=t.bottom;return{x:{min:n,max:r},y:{min:e,max:i}}}function NX(t){var e=t.x,n=t.y;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function FX(t,e){if(!e)return t;var n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function l1(t){return t===void 0||t===1}function cD(t){var e=t.scale,n=t.scaleX,r=t.scaleY;return!l1(e)||!l1(n)||!l1(r)}function io(t){return cD(t)||Nk(t.x)||Nk(t.y)||t.z||t.rotate||t.rotateX||t.rotateY}function Nk(t){return t&&t!=="0%"}function jg(t,e,n){var r=t-n,i=e*r;return n+i}function Fk(t,e,n,r,i){return i!==void 0&&(t=jg(t,i,r)),jg(t,n,r)+e}function Z_(t,e,n,r,i){e===void 0&&(e=0),n===void 0&&(n=1),t.min=Fk(t.min,e,n,r,i),t.max=Fk(t.max,e,n,r,i)}function uD(t,e){var n=e.x,r=e.y;Z_(t.x,n.translate,n.scale,n.originPoint),Z_(t.y,r.translate,r.scale,r.originPoint)}function zX(t,e,n,r){var i,o;r===void 0&&(r=!1);var s=n.length;if(!!s){e.x=e.y=1;for(var a,l,c=0;c<s;c++)a=n[c],l=a.projectionDelta,((o=(i=a.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Ja(t,{x:-a.scroll.x,y:-a.scroll.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,uD(t,l)),r&&io(a.latestValues)&&Ja(t,a.latestValues))}}function ho(t,e){t.min=t.min+e,t.max=t.max+e}function zk(t,e,n){var r=Me(n,3),i=r[0],o=r[1],s=r[2],a=e[s]!==void 0?e[s]:.5,l=le(t.min,t.max,a);Z_(t,e[i],e[o],l,e.scale)}var BX=["x","scaleX","originX"],jX=["y","scaleY","originY"];function Ja(t,e){zk(t.x,e,BX),zk(t.y,e,jX)}function dD(t,e){return lD(FX(t.getBoundingClientRect(),e))}function VX(t,e,n){var r=dD(t,n),i=e.scroll;return i&&(ho(r.x,i.x),ho(r.y,i.y)),r}var HX=new WeakMap,UX=function(){function t(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ke(),this.visualElement=e}return t.prototype.start=function(e,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,s=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var a=function(d){r.stopAnimation(),s&&r.snapToCursor(Ow(d,"page").point)},l=function(d,h){var f,p=r.getProps(),g=p.drag,y=p.dragPropagation,v=p.onDragStart;g&&!y&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=PL(g),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Hr(function(_){var x,b,w=r.getAxisMotionValue(_).get()||0;if(ii.test(w)){var S=(b=(x=r.visualElement.projection)===null||x===void 0?void 0:x.layout)===null||b===void 0?void 0:b.actual[_];if(S){var E=zi(S);w=E*(parseFloat(w)/100)}}r.originPoint[_]=w}),v==null||v(d,h),(f=r.visualElement.animationState)===null||f===void 0||f.setActive(Vt.Drag,!0))},c=function(d,h){var f=r.getProps(),p=f.dragPropagation,g=f.dragDirectionLock,y=f.onDirectionLock,v=f.onDrag;if(!(!p&&!r.openGlobalLock)){var _=h.offset;if(g&&r.currentDirection===null){r.currentDirection=WX(_),r.currentDirection!==null&&(y==null||y(r.currentDirection));return}r.updateAxis("x",h.point,_),r.updateAxis("y",h.point,_),r.visualElement.syncRender(),v==null||v(d,h)}},u=function(d,h){return r.stop(d,h)};this.panSession=new sD(e,{onSessionStart:a,onStart:l,onMove:c,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(e,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(e,n)}},t.prototype.cancel=function(){var e,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(e=this.panSession)===null||e===void 0||e.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Vt.Drag,!1)},t.prototype.updateAxis=function(e,n,r){var i=this.getProps().drag;if(!(!r||!rf(e,i,this.currentDirection))){var o=this.getAxisMotionValue(e),s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=PX(s,this.constraints[e],this.elastic[e])),o.set(s)}},t.prototype.resolveConstraints=function(){var e=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,s=this.constraints;r&&Qa(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=OX(o.actual,r):this.constraints=!1,this.elastic=IX(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Hr(function(a){e.getAxisMotionValue(a)&&(e.constraints[a]=DX(o.actual[a],e.constraints[a]))})},t.prototype.resolveRefConstraints=function(){var e=this.getProps(),n=e.dragConstraints,r=e.onMeasureDragConstraints;if(!n||!Qa(n))return!1;var i=n.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var s=VX(i,o.root,this.visualElement.getTransformPagePoint()),a=RX(o.layout.actual,s);if(r){var l=r(NX(a));this.hasMutatedConstraints=!!l,l&&(a=lD(l))}return a},t.prototype.startAnimation=function(e){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,s=r.dragElastic,a=r.dragTransition,l=r.dragSnapToOrigin,c=r.onDragTransitionEnd,u=this.constraints||{},d=Hr(function(h){var f;if(!!rf(h,i,n.currentDirection)){var p=(f=u==null?void 0:u[h])!==null&&f!==void 0?f:{};l&&(p={min:0,max:0});var g=s?200:1e6,y=s?40:1e7,v=Z(Z({type:"inertia",velocity:o?e[h]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10},a),p);return n.startAxisValueAnimation(h,v)}});return Promise.all(d).then(c)},t.prototype.startAxisValueAnimation=function(e,n){var r=this.getAxisMotionValue(e);return Vw(e,r,0,n)},t.prototype.stopAnimation=function(){var e=this;Hr(function(n){return e.getAxisMotionValue(n).stop()})},t.prototype.getAxisMotionValue=function(e){var n,r,i="_drag"+e.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(e,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[e])!==null&&r!==void 0?r:0)},t.prototype.snapToCursor=function(e){var n=this;Hr(function(r){var i=n.getProps().drag;if(!!rf(r,i,n.currentDirection)){var o=n.visualElement.projection,s=n.getAxisMotionValue(r);if(o&&o.layout){var a=o.layout.actual[r],l=a.min,c=a.max;s.set(e[r]-le(l,c,.5))}}})},t.prototype.scalePositionWithinConstraints=function(){var e=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,s=this.visualElement.projection;if(!(!Qa(o)||!s||!this.constraints)){this.stopAnimation();var a={x:0,y:0};Hr(function(c){var u=e.getAxisMotionValue(c);if(u){var d=u.get();a[c]=LX({min:d,max:d},e.constraints[c])}});var l=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=l?l({},""):"none",(n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout(),this.resolveConstraints(),Hr(function(c){if(!!rf(c,i,null)){var u=e.getAxisMotionValue(c),d=e.constraints[c],h=d.min,f=d.max;u.set(le(h,f,a[c]))}})}},t.prototype.addListeners=function(){var e=this,n;HX.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=ml(r,"pointerdown",function(c){var u=e.getProps(),d=u.drag,h=u.dragListener,f=h===void 0?!0:h;d&&f&&e.start(c)}),o=function(){var c=e.getProps().dragConstraints;Qa(c)&&(e.constraints=e.resolveRefConstraints())},s=this.visualElement.projection,a=s.addEventListener("measure",o);s&&!s.layout&&((n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout()),o();var l=A0(window,"resize",function(){return e.scalePositionWithinConstraints()});return s.addEventListener("didUpdate",function(c){var u=c.delta,d=c.hasLayoutChanged;e.isDragging&&d&&(Hr(function(h){var f=e.getAxisMotionValue(h);!f||(e.originPoint[h]+=u[h].translate,f.set(f.get()+u[h].translate))}),e.visualElement.syncRender())}),function(){l(),i(),a()}},t.prototype.getProps=function(){var e=this.visualElement.getProps(),n=e.drag,r=n===void 0?!1:n,i=e.dragDirectionLock,o=i===void 0?!1:i,s=e.dragPropagation,a=s===void 0?!1:s,l=e.dragConstraints,c=l===void 0?!1:l,u=e.dragElastic,d=u===void 0?q_:u,h=e.dragMomentum,f=h===void 0?!0:h;return Z(Z({},e),{drag:r,dragDirectionLock:o,dragPropagation:a,dragConstraints:c,dragElastic:d,dragMomentum:f})},t}();function rf(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function WX(t,e){e===void 0&&(e=10);var n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}function YX(t){var e=t.dragControls,n=t.visualElement,r=k0(function(){return new UX(n)});m.exports.useEffect(function(){return e&&e.subscribe(r)},[r,e]),m.exports.useEffect(function(){return r.addListeners()},[r])}function GX(t){var e=t.onPan,n=t.onPanStart,r=t.onPanEnd,i=t.onPanSessionStart,o=t.visualElement,s=e||n||r||i,a=m.exports.useRef(null),l=m.exports.useContext(Ew).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:e,onEnd:function(d,h){a.current=null,r&&r(d,h)}};m.exports.useEffect(function(){a.current!==null&&a.current.updateHandlers(c)});function u(d){a.current=new sD(d,c,{transformPagePoint:l})}Dg(o,"pointerdown",s&&u),LL(function(){return a.current&&a.current.end()})}var qX={pan:wo(GX),drag:wo(YX)},of=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function ZX(){var t=of.map(function(){return new Au}),e={},n={clearAllListeners:function(){return t.forEach(function(r){return r.clear()})},updatePropListeners:function(r){of.forEach(function(i){var o,s="on"+i,a=r[s];(o=e[i])===null||o===void 0||o.call(e),a&&(e[i]=n[s](a))})}};return t.forEach(function(r,i){n["on"+of[i]]=function(o){return r.add(o)},n["notify"+of[i]]=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.notify.apply(r,ri([],Me(o),!1))}}),n}function XX(t,e,n){var r;for(var i in e){var o=e[i],s=n[i];if(Ni(o))t.addValue(i,o);else if(Ni(s))t.addValue(i,Vl(o));else if(s!==o)if(t.hasValue(i)){var a=t.getValue(i);!a.hasAnimated&&a.set(o)}else t.addValue(i,Vl((r=t.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)e[i]===void 0&&t.removeValue(i);return e}var hD=function(t){var e=t.treeType,n=e===void 0?"":e,r=t.build,i=t.getBaseTarget,o=t.makeTargetAnimatable,s=t.measureViewportBox,a=t.render,l=t.readValueFromInstance,c=t.removeValueFromRenderState,u=t.sortNodePosition,d=t.scrapeMotionValuesFromProps;return function(h,f){var p=h.parent,g=h.props,y=h.presenceId,v=h.blockInitialAnimation,_=h.visualState,x=h.shouldReduceMotion;f===void 0&&(f={});var b=!1,w=_.latestValues,S=_.renderState,E,C=ZX(),A=new Map,k=new Map,$={},M=Z({},w),I;function F(){!E||!b||(L(),a(E,S,g.style,B.projection))}function L(){r(B,S,w,f,g)}function Y(){C.notifyUpdate(w)}function X(R,j){var K=j.onChange(function(Yt){w[R]=Yt,g.onUpdate&&oi.update(Y,!1,!0)}),it=j.onRenderRequest(B.scheduleRender);k.set(R,function(){K(),it()})}var z=d(g);for(var W in z){var P=z[W];w[W]!==void 0&&Ni(P)&&P.set(w[W],!1)}var G=C0(g),U=nL(g),B=Z(Z({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:y,shouldReduceMotion:x,variantChildren:U?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(p==null?void 0:p.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(E)},mount:function(R){b=!0,E=B.current=R,B.projection&&B.projection.mount(R),U&&p&&!G&&(I=p==null?void 0:p.addVariantChild(B)),A.forEach(function(j,K){return X(K,j)}),p==null||p.children.add(B),B.setProps(g)},unmount:function(){var R;(R=B.projection)===null||R===void 0||R.unmount(),jl.update(Y),jl.render(F),k.forEach(function(j){return j()}),I==null||I(),p==null||p.children.delete(B),C.clearAllListeners(),E=void 0,b=!1},addVariantChild:function(R){var j,K=B.getClosestVariantNode();if(K)return(j=K.variantChildren)===null||j===void 0||j.add(R),function(){return K.variantChildren.delete(R)}},sortNodePosition:function(R){return!u||n!==R.treeType?0:u(B.getInstance(),R.getInstance())},getClosestVariantNode:function(){return U?B:p==null?void 0:p.getClosestVariantNode()},getLayoutId:function(){return g.layoutId},getInstance:function(){return E},getStaticValue:function(R){return w[R]},setStaticValue:function(R,j){return w[R]=j},getLatestValues:function(){return w},setVisibility:function(R){B.isVisible!==R&&(B.isVisible=R,B.scheduleRender())},makeTargetAnimatable:function(R,j){return j===void 0&&(j=!0),o(B,R,g,j)},measureViewportBox:function(){return s(E,g)},addValue:function(R,j){B.hasValue(R)&&B.removeValue(R),A.set(R,j),w[R]=j.get(),X(R,j)},removeValue:function(R){var j;A.delete(R),(j=k.get(R))===null||j===void 0||j(),k.delete(R),delete w[R],c(R,S)},hasValue:function(R){return A.has(R)},getValue:function(R,j){var K=A.get(R);return K===void 0&&j!==void 0&&(K=Vl(j),B.addValue(R,K)),K},forEachValue:function(R){return A.forEach(R)},readValue:function(R){var j;return(j=w[R])!==null&&j!==void 0?j:l(E,R,f)},setBaseTarget:function(R,j){M[R]=j},getBaseTarget:function(R){if(i){var j=i(g,R);if(j!==void 0&&!Ni(j))return j}return M[R]}},C),{build:function(){return L(),S},scheduleRender:function(){oi.render(F,!1,!0)},syncRender:F,setProps:function(R){(R.transformTemplate||g.transformTemplate)&&B.scheduleRender(),g=R,C.updatePropListeners(R),$=XX(B,d(g),$)},getProps:function(){return g},getVariant:function(R){var j;return(j=g.variants)===null||j===void 0?void 0:j[R]},getDefaultTransition:function(){return g.transition},getTransformPagePoint:function(){return g.transformPagePoint},getVariantContext:function(R){if(R===void 0&&(R=!1),R)return p==null?void 0:p.getVariantContext();if(!G){var j=(p==null?void 0:p.getVariantContext())||{};return g.initial!==void 0&&(j.initial=g.initial),j}for(var K={},it=0;it<KX;it++){var Yt=fD[it],fe=g[Yt];($r(fe)||fe===!1)&&(K[Yt]=fe)}return K}});return B}},fD=ri(["initial"],Me(Ww),!1),KX=fD.length;function X_(t){return typeof t=="string"&&t.startsWith("var(--")}var pD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function QX(t){var e=pD.exec(t);if(!e)return[,];var n=Me(e,3),r=n[1],i=n[2];return[r,i]}function K_(t,e,n){var r=Me(QX(t),2),i=r[0],o=r[1];if(!!i){var s=window.getComputedStyle(e).getPropertyValue(i);return s?s.trim():X_(o)?K_(o,e):o}}function JX(t,e,n){var r,i=ci(e,[]),o=t.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=Z({},n)),t.forEachValue(function(c){var u=c.get();if(!!X_(u)){var d=K_(u,o);d&&c.set(d)}});for(var s in i){var a=i[s];if(!!X_(a)){var l=K_(a,o);!l||(i[s]=l,n&&((r=n[s])!==null&&r!==void 0||(n[s]=a)))}}return{target:i,transitionEnd:n}}var tK=new Set(["width","height","top","left","right","bottom","x","y"]),gD=function(t){return tK.has(t)},eK=function(t){return Object.keys(t).some(gD)},mD=function(t,e){t.set(e,!1),t.set(e)},Bk=function(t){return t===da||t===rt},jk;(function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"})(jk||(jk={}));var Vk=function(t,e){return parseFloat(t.split(", ")[e])},Hk=function(t,e){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Vk(o[1],e);var s=i.match(/^matrix\((.+)\)$/);return s?Vk(s[1],t):0}},nK=new Set(["x","y","z"]),rK=Ed.filter(function(t){return!nK.has(t)});function iK(t){var e=[];return rK.forEach(function(n){var r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.syncRender(),e}var Uk={width:function(t,e){var n=t.x,r=e.paddingLeft,i=r===void 0?"0":r,o=e.paddingRight,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:function(t,e){var n=t.y,r=e.paddingTop,i=r===void 0?"0":r,o=e.paddingBottom,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.y,r=e.top;return parseFloat(r)+(n.max-n.min)},right:function(t,e){var n=t.x,r=e.left;return parseFloat(r)+(n.max-n.min)},x:Hk(4,13),y:Hk(5,14)},oK=function(t,e,n){var r=e.measureViewportBox(),i=e.getInstance(),o=getComputedStyle(i),s=o.display,a={};s==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(function(c){a[c]=Uk[c](r,o)}),e.syncRender();var l=e.measureViewportBox();return n.forEach(function(c){var u=e.getValue(c);mD(u,a[c]),t[c]=Uk[c](l,o)}),t},sK=function(t,e,n,r){n===void 0&&(n={}),r===void 0&&(r={}),e=Z({},e),r=Z({},r);var i=Object.keys(e).filter(gD),o=[],s=!1,a=[];if(i.forEach(function(u){var d=t.getValue(u);if(!!t.hasValue(u)){var h=n[u],f=Mc(h),p=e[u],g;if(kd(p)){var y=p.length,v=p[0]===null?1:0;h=p[v],f=Mc(h);for(var _=v;_<y;_++)g?Og(Mc(p[_])===g):g=Mc(p[_])}else g=Mc(p);if(f!==g)if(Bk(f)&&Bk(g)){var x=d.get();typeof x=="string"&&d.set(parseFloat(x)),typeof p=="string"?e[u]=parseFloat(p):Array.isArray(p)&&g===rt&&(e[u]=p.map(parseFloat))}else(f==null?void 0:f.transform)&&(g==null?void 0:g.transform)&&(h===0||p===0)?h===0?d.set(g.transform(h)):e[u]=f.transform(p):(s||(o=iK(t),s=!0),a.push(u),r[u]=r[u]!==void 0?r[u]:e[u],mD(d,p))}}),a.length){var l=a.indexOf("height")>=0?window.pageYOffset:null,c=oK(e,t,a);return o.length&&o.forEach(function(u){var d=Me(u,2),h=d[0],f=d[1];t.getValue(h).set(f)}),t.syncRender(),l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:e,transitionEnd:r}};function aK(t,e,n,r){return eK(e)?sK(t,e,n,r):{target:e,transitionEnd:r}}var lK=function(t,e,n,r){var i=JX(t,e,r);return e=i.target,r=i.transitionEnd,aK(t,e,n,r)};function cK(t){return window.getComputedStyle(t)}var vD={treeType:"dom",readValueFromInstance:function(t,e){if(eh(e)){var n=zw(e);return n&&n.default||0}else{var r=cK(t);return(aL(e)?r.getPropertyValue(e):r[e])||0}},sortNodePosition:function(t,e){return t.compareDocumentPosition(e)&2?1:-1},getBaseTarget:function(t,e){var n;return(n=t.style)===null||n===void 0?void 0:n[e]},measureViewportBox:function(t,e){var n=e.transformPagePoint;return dD(t,n)},resetTransform:function(t,e,n){var r=n.transformTemplate;e.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var n=e.vars,r=e.style;delete n[t],delete r[t]},makeTargetAnimatable:function(t,e,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=e.transition,s=e.transitionEnd,a=ci(e,["transition","transitionEnd"]),l=mX(a,o||{},t);if(i&&(s&&(s=i(s)),a&&(a=i(a)),l&&(l=i(l))),r){pX(t,a,l);var c=lK(t,a,l,s);s=c.transitionEnd,a=c.target}return Z({transition:o,transitionEnd:s},a)},scrapeMotionValuesFromProps:Mw,build:function(t,e,n,r,i){t.isVisible!==void 0&&(e.style.visibility=t.isVisible?"visible":"hidden"),Aw(e,n,r,i.transformTemplate)},render:xL},uK=hD(vD),dK=hD(Z(Z({},vD),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return eh(e)?((n=zw(e))===null||n===void 0?void 0:n.default)||0:(e=bL.has(e)?e:_L(e),t.getAttribute(e))},scrapeMotionValuesFromProps:SL,build:function(t,e,n,r,i){$w(e,n,r,i.transformTemplate)},render:wL})),hK=function(t,e){return Cw(t)?dK(e,{enableHardwareAcceleration:!1}):uK(e,{enableHardwareAcceleration:!0})};function Wk(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Pc={correct:function(t,e){if(!e.target)return t;if(typeof t=="string")if(rt.test(t))t=parseFloat(t);else return t;var n=Wk(t,e.target.x),r=Wk(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}},Yk="_$css",fK={correct:function(t,e){var n=e.treeScale,r=e.projectionDelta,i=t,o=t.includes("var("),s=[];o&&(t=t.replace(pD,function(g){return s.push(g),Yk}));var a=Fi.parse(t);if(a.length>5)return i;var l=Fi.createTransformer(t),c=typeof a[0]!="number"?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;a[0+c]/=u,a[1+c]/=d;var h=le(u,d,.5);typeof a[2+c]=="number"&&(a[2+c]/=h),typeof a[3+c]=="number"&&(a[3+c]/=h);var f=l(a);if(o){var p=0;f=f.replace(Yk,function(){var g=s[p];return p++,g})}return f}},pK=function(t){Z3(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,s=r.switchLayoutGroup,a=r.layoutId,l=i.projection;NG(mK),l&&(o!=null&&o.group&&o.group.add(l),(s==null?void 0:s.register)&&a&&s.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",function(){n.safeToRemove()}),l.setOptions(Z(Z({},l.options),{onExitComplete:function(){return n.safeToRemove()}}))),Eu.hasEverUpdated=!0},e.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,s=i.visualElement,a=i.drag,l=i.isPresent,c=s.projection;return c&&(c.isPresent=l,a||n.layoutDependency!==o||o===void 0?c.willUpdate():this.safeToRemove(),n.isPresent!==l&&(l?c.promote():c.relegate()||oi.postRender(function(){var u;!((u=c.getStack())===null||u===void 0)&&u.members.length||r.safeToRemove()}))),null},e.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},e.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,s=r.projection;s&&(s.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(s),o!=null&&o.deregister&&o.deregister(s))},e.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},e.prototype.render=function(){return null},e}(Q.Component);function gK(t){var e=Me(eD(),2),n=e[0],r=e[1],i=m.exports.useContext(rL);return O(pK,{...Z({},t,{layoutGroup:i,switchLayoutGroup:m.exports.useContext(iL),isPresent:n,safeToRemove:r})})}var mK={borderRadius:Z(Z({},Pc),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Pc,borderTopRightRadius:Pc,borderBottomLeftRadius:Pc,borderBottomRightRadius:Pc,boxShadow:fK},vK={measureLayout:gK};function yK(t,e,n){n===void 0&&(n={});var r=Ni(t)?t:Vl(t);return Vw("",r,e,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var yD=["TopLeft","TopRight","BottomLeft","BottomRight"],_K=yD.length,Gk=function(t){return typeof t=="string"?parseFloat(t):t},qk=function(t){return typeof t=="number"||rt.test(t)};function xK(t,e,n,r,i,o){var s,a,l,c;i?(t.opacity=le(0,(s=n.opacity)!==null&&s!==void 0?s:1,bK(r)),t.opacityExit=le((a=e.opacity)!==null&&a!==void 0?a:1,0,wK(r))):o&&(t.opacity=le((l=e.opacity)!==null&&l!==void 0?l:1,(c=n.opacity)!==null&&c!==void 0?c:1,r));for(var u=0;u<_K;u++){var d="border".concat(yD[u],"Radius"),h=Zk(e,d),f=Zk(n,d);if(!(h===void 0&&f===void 0)){h||(h=0),f||(f=0);var p=h===0||f===0||qk(h)===qk(f);p?(t[d]=Math.max(le(Gk(h),Gk(f),r),0),(ii.test(f)||ii.test(h))&&(t[d]+="%")):t[d]=f}}(e.rotate||n.rotate)&&(t.rotate=le(e.rotate||0,n.rotate||0,r))}function Zk(t,e){var n;return(n=t[e])!==null&&n!==void 0?n:t.borderRadius}var bK=_D(0,.5,Nw),wK=_D(.5,.95,Dw);function _D(t,e,n){return function(r){return r<t?0:r>e?1:n(Ad(t,e,r))}}function Xk(t,e){t.min=e.min,t.max=e.max}function Sr(t,e){Xk(t.x,e.x),Xk(t.y,e.y)}function Kk(t,e,n,r,i){return t-=e,t=jg(t,1/n,r),i!==void 0&&(t=jg(t,1/i,r)),t}function SK(t,e,n,r,i,o,s){if(e===void 0&&(e=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=t),s===void 0&&(s=t),ii.test(e)){e=parseFloat(e);var a=le(s.min,s.max,e/100);e=a-s.min}if(typeof e=="number"){var l=le(o.min,o.max,r);t===o&&(l-=e),t.min=Kk(t.min,e,n,l,i),t.max=Kk(t.max,e,n,l,i)}}function Qk(t,e,n,r,i){var o=Me(n,3),s=o[0],a=o[1],l=o[2];SK(t,e[s],e[a],e[l],e.scale,r,i)}var EK=["x","scaleX","originX"],CK=["y","scaleY","originY"];function Jk(t,e,n,r){Qk(t.x,e,EK,n==null?void 0:n.x,r==null?void 0:r.x),Qk(t.y,e,CK,n==null?void 0:n.y,r==null?void 0:r.y)}function tA(t){return t.translate===0&&t.scale===1}function xD(t){return tA(t.x)&&tA(t.y)}function bD(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}var kK=function(){function t(){this.members=[]}return t.prototype.add=function(e){Hw(this.members,e),e.scheduleRender()},t.prototype.remove=function(e){if(Uw(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},t.prototype.relegate=function(e){var n=this.members.findIndex(function(s){return e===s});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},t.prototype.promote=function(e,n){var r,i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues,e.snapshot.isShared=!0),!((r=e.root)===null||r===void 0)&&r.isUpdating&&(e.isLayoutDirty=!0);var o=e.options.crossfade;o===!1&&i.hide()}},t.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var n,r,i,o,s;(r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n),(s=(i=e.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})},t.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}(),AK="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function eA(t,e,n){var r=t.x.translate/e.x,i=t.y.translate/e.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/e.x,", ").concat(1/e.y,") "),n){var s=n.rotate,a=n.rotateX,l=n.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),a&&(o+="rotateX(".concat(a,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}var c=t.x.scale*e.x,u=t.y.scale*e.y;return o+="scale(".concat(c,", ").concat(u,")"),o===AK?"none":o}var TK=function(t,e){return t.depth-e.depth},$K=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(e){Hw(this.children,e),this.isDirty=!0},t.prototype.remove=function(e){Uw(this.children,e),this.isDirty=!0},t.prototype.forEach=function(e){this.isDirty&&this.children.sort(TK),this.isDirty=!1,this.children.forEach(e)},t}(),nA=1e3;function wD(t){var e=t.attachResizeListener,n=t.defaultParent,r=t.measureScroll,i=t.checkIsScrollRoot,o=t.resetTransform;return function(){function s(a,l,c){var u=this;l===void 0&&(l={}),c===void 0&&(c=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){u.isUpdating&&(u.isUpdating=!1,u.clearAllSnapshots())},this.updateProjection=function(){u.nodes.forEach(DK),u.nodes.forEach(IK)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=a,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?ri(ri([],Me(c.path),!1),[c],!1):[],this.parent=c,this.depth=c?c.depth+1:0,a&&this.root.registerPotentialNode(a,this);for(var d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new $K)}return s.prototype.addEventListener=function(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Au),this.eventHandlers.get(a).add(l)},s.prototype.notifyListeners=function(a){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];var u=this.eventHandlers.get(a);u==null||u.notify.apply(u,ri([],Me(l),!1))},s.prototype.hasListeners=function(a){return this.eventHandlers.has(a)},s.prototype.registerPotentialNode=function(a,l){this.potentialNodes.set(a,l)},s.prototype.mount=function(a,l){var c=this,u;if(l===void 0&&(l=!1),!this.instance){this.isSVG=a instanceof SVGElement&&a.tagName!=="svg",this.instance=a;var d=this.options,h=d.layoutId,f=d.layout,p=d.visualElement;if(p&&!p.getInstance()&&p.mount(a),this.root.nodes.add(this),(u=this.parent)===null||u===void 0||u.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),l&&(f||h)&&(this.isLayoutDirty=!0),e){var g,y=function(){return c.root.updateBlockedByResize=!1};e(a,function(){c.root.updateBlockedByResize=!0,clearTimeout(g),g=window.setTimeout(y,250),Eu.hasAnimatedSinceResize&&(Eu.hasAnimatedSinceResize=!1,c.nodes.forEach(LK))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||f)&&this.addEventListener("didUpdate",function(v){var _,x,b,w,S,E=v.delta,C=v.hasLayoutChanged,A=v.hasRelativeTargetChanged,k=v.layout;if(c.isTreeAnimationBlocked()){c.target=void 0,c.relativeTarget=void 0;return}var $=(x=(_=c.options.transition)!==null&&_!==void 0?_:p.getDefaultTransition())!==null&&x!==void 0?x:jK,M=p.getProps(),I=M.onLayoutAnimationStart,F=M.onLayoutAnimationComplete,L=!c.targetLayout||!bD(c.targetLayout,k)||A,Y=!C&&A;if(((b=c.resumeFrom)===null||b===void 0?void 0:b.instance)||Y||C&&(L||!c.currentAnimation)){c.resumeFrom&&(c.resumingFrom=c.resumeFrom,c.resumingFrom.resumingFrom=void 0),c.setAnimationOrigin(E,Y);var X=Z(Z({},jw($,"layout")),{onPlay:I,onComplete:F});p.shouldReduceMotion&&(X.delay=0,X.type=!1),c.startAnimation(X)}else!C&&c.animationProgress===0&&c.finishAnimation(),c.isLead()&&((S=(w=c.options).onExitComplete)===null||S===void 0||S.call(w));c.targetLayout=k})}},s.prototype.unmount=function(){var a,l;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(a=this.getStack())===null||a===void 0||a.remove(this),(l=this.parent)===null||l===void 0||l.children.delete(this),this.instance=void 0,jl.preRender(this.updateProjection)},s.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},s.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},s.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},s.prototype.isTreeAnimationBlocked=function(){var a;return this.isAnimationBlocked||((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimationBlocked())||!1},s.prototype.startUpdate=function(){var a;this.isUpdateBlocked()||(this.isUpdating=!0,(a=this.nodes)===null||a===void 0||a.forEach(NK))},s.prototype.willUpdate=function(a){var l,c,u;if(a===void 0&&(a=!0),this.root.isUpdateBlocked()){(c=(l=this.options).onExitComplete)===null||c===void 0||c.call(l);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var d=0;d<this.path.length;d++){var h=this.path[d];h.shouldResetTransform=!0,h.updateScroll()}var f=this.options,p=f.layoutId,g=f.layout;if(!(p===void 0&&!g)){var y=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;this.prevTransformTemplateValue=y==null?void 0:y(this.latestValues,""),this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}}},s.prototype.didUpdate=function(){var a=this.isUpdateBlocked();if(a){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rA);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(VK),this.potentialNodes.clear()),this.nodes.forEach(RK),this.nodes.forEach(MK),this.nodes.forEach(PK),this.clearAllSnapshots(),r1.update(),r1.preRender(),r1.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(OK),this.sharedNodes.forEach(FK)},s.prototype.scheduleUpdateProjection=function(){oi.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var a=this;oi.postRender(function(){a.isLayoutDirty?a.root.didUpdate():a.root.checkUpdateFailed()})},s.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var a=this.measure(),l=this.removeTransform(this.removeElementScroll(a));aA(l),this.snapshot={measured:a,layout:l,latestValues:{}}}},s.prototype.updateLayout=function(){var a;if(!!this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var l=0;l<this.path.length;l++){var c=this.path[l];c.updateScroll()}var u=this.measure();aA(u);var d=this.layout;this.layout={measured:u,actual:this.removeElementScroll(u)},this.layoutCorrected=Ke(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(a=this.options.visualElement)===null||a===void 0||a.notifyLayoutMeasure(this.layout.actual,d==null?void 0:d.actual)}},s.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},s.prototype.resetTransform=function(){var a;if(!!o){var l=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!xD(this.projectionDelta),u=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate,d=u==null?void 0:u(this.latestValues,""),h=d!==this.prevTransformTemplateValue;l&&(c||io(this.latestValues)||h)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var a=this.options.visualElement;if(!a)return Ke();var l=a.measureViewportBox(),c=this.root.scroll;return c&&(ho(l.x,c.x),ho(l.y,c.y)),l},s.prototype.removeElementScroll=function(a){var l=Ke();Sr(l,a);for(var c=0;c<this.path.length;c++){var u=this.path[c],d=u.scroll,h=u.options,f=u.isScrollRoot;if(u!==this.root&&d&&h.layoutScroll){if(f){Sr(l,a);var p=this.root.scroll;p&&(ho(l.x,-p.x),ho(l.y,-p.y))}ho(l.x,d.x),ho(l.y,d.y)}}return l},s.prototype.applyTransform=function(a,l){l===void 0&&(l=!1);var c=Ke();Sr(c,a);for(var u=0;u<this.path.length;u++){var d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ja(c,{x:-d.scroll.x,y:-d.scroll.y}),io(d.latestValues)&&Ja(c,d.latestValues)}return io(this.latestValues)&&Ja(c,this.latestValues),c},s.prototype.removeTransform=function(a){var l,c=Ke();Sr(c,a);for(var u=0;u<this.path.length;u++){var d=this.path[u];if(!!d.instance&&!!io(d.latestValues)){cD(d.latestValues)&&d.updateSnapshot();var h=Ke(),f=d.measure();Sr(h,f),Jk(c,d.latestValues,(l=d.snapshot)===null||l===void 0?void 0:l.layout,h)}}return io(this.latestValues)&&Jk(c,this.latestValues),c},s.prototype.setTargetDelta=function(a){this.targetDelta=a,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(a){var l;this.options=Z(Z(Z({},this.options),a),{crossfade:(l=a.crossfade)!==null&&l!==void 0?l:!0})},s.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},s.prototype.resolveTargetDelta=function(){var a,l=this.options,c=l.layout,u=l.layoutId;!this.layout||!(c||u)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Ke(),this.relativeTargetOrigin=Ke(),$u(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Sr(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ke(),this.targetWithTransforms=Ke()),this.relativeTarget&&this.relativeTargetOrigin&&((a=this.relativeParent)===null||a===void 0?void 0:a.target)?MX(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Sr(this.target,this.layout.actual),uD(this.target,this.targetDelta)):Sr(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Ke(),this.relativeTargetOrigin=Ke(),$u(this.relativeTargetOrigin,this.target,this.relativeParent.target),Sr(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||io(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},s.prototype.calcProjection=function(){var a,l=this.options,c=l.layout,u=l.layoutId;if(this.isTreeAnimating=Boolean(((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(c||u))){var d=this.getLead();Sr(this.layoutCorrected,this.layout.actual),zX(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==d);var h=d.target;if(!!h){this.projectionDelta||(this.projectionDelta=Mu(),this.projectionDeltaWithTransform=Mu());var f=this.treeScale.x,p=this.treeScale.y,g=this.projectionTransform;Tu(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.projectionTransform=eA(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==f||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}}},s.prototype.hide=function(){this.isVisible=!1},s.prototype.show=function(){this.isVisible=!0},s.prototype.scheduleRender=function(a){var l,c,u;a===void 0&&(a=!0),(c=(l=this.options).scheduleRender)===null||c===void 0||c.call(l),a&&((u=this.getStack())===null||u===void 0||u.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},s.prototype.setAnimationOrigin=function(a,l){var c=this,u;l===void 0&&(l=!1);var d=this.snapshot,h=(d==null?void 0:d.latestValues)||{},f=Z({},this.latestValues),p=Mu();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!l;var g=Ke(),y=d==null?void 0:d.isShared,v=(((u=this.getStack())===null||u===void 0?void 0:u.members.length)||0)<=1,_=Boolean(y&&!v&&this.options.crossfade===!0&&!this.path.some(BK));this.animationProgress=0,this.mixTargetDelta=function(x){var b,w=x/1e3;iA(p.x,a.x,w),iA(p.y,a.y,w),c.setTargetDelta(p),c.relativeTarget&&c.relativeTargetOrigin&&c.layout&&((b=c.relativeParent)===null||b===void 0?void 0:b.layout)&&($u(g,c.layout.actual,c.relativeParent.layout.actual),zK(c.relativeTarget,c.relativeTargetOrigin,g,w)),y&&(c.animationValues=f,xK(f,h,c.latestValues,w,_,v)),c.root.scheduleUpdateProjection(),c.scheduleRender(),c.animationProgress=w},this.mixTargetDelta(0)},s.prototype.startAnimation=function(a){var l=this,c,u;this.notifyListeners("animationStart"),(c=this.currentAnimation)===null||c===void 0||c.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(jl.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=oi.update(function(){Eu.hasAnimatedSinceResize=!0,l.currentAnimation=yK(0,nA,Z(Z({},a),{onUpdate:function(d){var h;l.mixTargetDelta(d),(h=a.onUpdate)===null||h===void 0||h.call(a,d)},onComplete:function(){var d;(d=a.onComplete)===null||d===void 0||d.call(a),l.completeAnimation()}})),l.resumingFrom&&(l.resumingFrom.currentAnimation=l.currentAnimation),l.pendingAnimation=void 0})},s.prototype.completeAnimation=function(){var a;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(a=this.getStack())===null||a===void 0||a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},s.prototype.finishAnimation=function(){var a;this.currentAnimation&&((a=this.mixTargetDelta)===null||a===void 0||a.call(this,nA),this.currentAnimation.stop()),this.completeAnimation()},s.prototype.applyTransformsToTarget=function(){var a=this.getLead(),l=a.targetWithTransforms,c=a.target,u=a.layout,d=a.latestValues;!l||!c||!u||(Sr(l,c),Ja(l,d),Tu(this.projectionDeltaWithTransform,this.layoutCorrected,l,d))},s.prototype.registerSharedNode=function(a,l){var c,u,d;this.sharedNodes.has(a)||this.sharedNodes.set(a,new kK);var h=this.sharedNodes.get(a);h.add(l),l.promote({transition:(c=l.options.initialPromotionConfig)===null||c===void 0?void 0:c.transition,preserveFollowOpacity:(d=(u=l.options.initialPromotionConfig)===null||u===void 0?void 0:u.shouldPreserveFollowOpacity)===null||d===void 0?void 0:d.call(u,l)})},s.prototype.isLead=function(){var a=this.getStack();return a?a.lead===this:!0},s.prototype.getLead=function(){var a,l=this.options.layoutId;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this},s.prototype.getPrevLead=function(){var a,l=this.options.layoutId;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0},s.prototype.getStack=function(){var a=this.options.layoutId;if(a)return this.root.sharedNodes.get(a)},s.prototype.promote=function(a){var l=a===void 0?{}:a,c=l.needsReset,u=l.transition,d=l.preserveFollowOpacity,h=this.getStack();h&&h.promote(this,d),c&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})},s.prototype.relegate=function(){var a=this.getStack();return a?a.relegate(this):!1},s.prototype.resetRotation=function(){var a=this.options.visualElement;if(!!a){for(var l=!1,c={},u=0;u<I_.length;u++){var d=I_[u],h="rotate"+d;!a.getStaticValue(h)||(l=!0,c[h]=a.getStaticValue(h),a.setStaticValue(h,0))}if(!!l){a==null||a.syncRender();for(var h in c)a.setStaticValue(h,c[h]);a.scheduleRender()}}},s.prototype.getProjectionStyles=function(a){var l,c,u,d,h,f;a===void 0&&(a={});var p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};var g=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=wp(a.pointerEvents)||"",p.transform=g?g(this.latestValues,""):"none",p;var y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){var v={};return this.options.layoutId&&(v.opacity=(c=this.latestValues.opacity)!==null&&c!==void 0?c:1,v.pointerEvents=wp(a.pointerEvents)||""),this.hasProjected&&!io(this.latestValues)&&(v.transform=g?g({},""):"none",this.hasProjected=!1),v}var _=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=eA(this.projectionDeltaWithTransform,this.treeScale,_),g&&(p.transform=g(_,p.transform));var x=this.projectionDelta,b=x.x,w=x.y;p.transformOrigin="".concat(b.origin*100,"% ").concat(w.origin*100,"% 0"),y.animationValues?p.opacity=y===this?(d=(u=_.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:_.opacityExit:p.opacity=y===this?(h=_.opacity)!==null&&h!==void 0?h:"":(f=_.opacityExit)!==null&&f!==void 0?f:0;for(var S in Rg)if(_[S]!==void 0){var E=Rg[S],C=E.correct,A=E.applyTo,k=C(_[S],y);if(A)for(var $=A.length,M=0;M<$;M++)p[A[M]]=k;else p[S]=k}return this.options.layoutId&&(p.pointerEvents=y===this?wp(a.pointerEvents)||"":"none"),p},s.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},s.prototype.resetTree=function(){this.root.nodes.forEach(function(a){var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(rA),this.root.sharedNodes.clear()},s}()}function MK(t){t.updateLayout()}function PK(t){var e,n,r,i,o=(n=(e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)!==null&&n!==void 0?n:t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){var s=t.layout,a=s.actual,l=s.measured;t.options.animationType==="size"?Hr(function(_){var x=o.isShared?o.measured[_]:o.layout[_],b=zi(x);x.min=a[_].min,x.max=x.min+b}):t.options.animationType==="position"&&Hr(function(_){var x=o.isShared?o.measured[_]:o.layout[_],b=zi(a[_]);x.max=x.min+b});var c=Mu();Tu(c,a,o.layout);var u=Mu();o.isShared?Tu(u,t.applyTransform(l,!0),o.measured):Tu(u,a,o.layout);var d=!xD(c),h=!1;if(!t.resumeFrom&&(t.relativeParent=t.getClosestProjectingParent(),t.relativeParent&&!t.relativeParent.resumeFrom)){var f=t.relativeParent,p=f.snapshot,g=f.layout;if(p&&g){var y=Ke();$u(y,o.layout,p.layout);var v=Ke();$u(v,a,g.actual),bD(y,v)||(h=!0)}}t.notifyListeners("didUpdate",{layout:a,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:h})}else t.isLead()&&((i=(r=t.options).onExitComplete)===null||i===void 0||i.call(r));t.options.transition=void 0}function OK(t){t.clearSnapshot()}function rA(t){t.clearMeasurements()}function RK(t){var e=t.options.visualElement;e!=null&&e.getProps().onBeforeLayoutMeasure&&e.notifyBeforeLayoutMeasure(),t.resetTransform()}function LK(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function DK(t){t.resolveTargetDelta()}function IK(t){t.calcProjection()}function NK(t){t.resetRotation()}function FK(t){t.removeLeadSnapshot()}function iA(t,e,n){t.translate=le(e.translate,0,n),t.scale=le(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function oA(t,e,n,r){t.min=le(e.min,n.min,r),t.max=le(e.max,n.max,r)}function zK(t,e,n,r){oA(t.x,e.x,n.x,r),oA(t.y,e.y,n.y,r)}function BK(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}var jK={duration:.45,ease:[.4,0,.1,1]};function VK(t,e){for(var n=t.root,r=t.path.length-1;r>=0;r--)if(Boolean(t.path[r].instance)){n=t.path[r];break}var i=n&&n!==t.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(e,'"]'));o&&t.mount(o,!0)}function sA(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function aA(t){sA(t.x),sA(t.y)}var HK=wD({attachResizeListener:function(t,e){return A0(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),c1={current:void 0},UK=wD({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!c1.current){var t=new HK(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),c1.current=t}return c1.current},resetTransform:function(t,e){t.style.transform=e!=null?e:"none"},checkIsScrollRoot:function(t){return Boolean(window.getComputedStyle(t).position==="fixed")}}),WK=Z(Z(Z(Z({},AX),HZ),qX),vK),Yw=DG(function(t,e){return bq(t,e,WK,hK,UK)}),YK=Object.defineProperty,GK=(t,e,n)=>e in t?YK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,lt=(t,e,n)=>(GK(t,typeof e!="symbol"?e+"":e,n),n);const $d={colorPrimary100:"#FFFFFF",colorPrimary99:"#04162d",colorPrimary95:"#C8F9FF",colorPrimary90:"#87F2FF",colorPrimary80:"#4ED8E9",colorPrimary70:"#21BCCC",colorPrimary60:"#00A0AF",colorPrimary50:"#008491",colorPrimary40:"#006974",colorPrimary30:"#004F57",colorPrimary20:"#00363C",colorPrimary10:"#001F23",colorPrimary0:"#000000"},Rt={colorNeutral100:"#FFFFFF",colorNeutral99:"#FBFDFD",colorNeutral95:"#EFF1F1",colorNeutral90:"#E0E3E3",colorNeutral80:"#C4C7C7",colorNeutral70:"#A9ACAC",colorNeutral60:"#8E9191",colorNeutral50:"#747878",colorNeutral40:"#5C5F5F",colorNeutral30:"#444747",colorNeutral20:"#2D3131",colorNeutral10:"#191C1D",colorNeutral0:"#000000"},Gw={colorBlue70:"#0056D3"},qK=Object.freeze(Object.defineProperty({__proto__:null,primaryColors:$d,neutralColors:Rt,blueColors:Gw},Symbol.toStringTag,{value:"Module"})),pr=4,ZK={"--ll-color-primary":$d.colorPrimary50,"--ll-color-primary-variant1":$d.colorPrimary40,"--ll-color-background":Rt.colorNeutral100,"--ll-color-surface":Rt.colorNeutral95,"--ll-color-surface-variant1":Rt.colorNeutral90,"--ll-color-surface-variant2":Rt.colorNeutral80,"--ll-color-on-primary":Rt.colorNeutral100,"--ll-color-on-primary-variant1":Rt.colorNeutral90,"--ll-color-on-background":Rt.colorNeutral10,"--ll-color-on-background-variant1":Rt.colorNeutral30,"--ll-color-on-surface":Rt.colorNeutral10,"--ll-color-on-surface-variant1":Rt.colorNeutral30,"--ll-color-placeholder":Rt.colorNeutral60,"--ll-color-disabled":Rt.colorNeutral60,"--ll-color-border":Rt.colorNeutral90,"--ll-color-link":Gw.colorBlue70},XK={"--ll-border-radius-small":`${pr}px`,"--ll-border-radius-medium":`${2*pr}px`,"--ll-border-radius-large":`${4*pr}px`},KK={"--ll-shadow-small":"rgb(0 0 0 / 18%) 0px 2px 5px","--ll-shadow-medium":"0px 5px 11px -4px rgba(0,0,0,0.75)"},QK={"--ll-spacing-auto":"auto","--ll-spacing-base-unit":`${pr}px`,"--ll-spacing-xx-small":"var(--ll-spacing-base-unit)","--ll-spacing-x-small":"calc(var(--ll-spacing-base-unit) * 2)","--ll-spacing-small":"calc(var(--ll-spacing-base-unit) * 3)","--ll-spacing-medium":"calc(var(--ll-spacing-base-unit) * 4)","--ll-spacing-large":"calc(var(--ll-spacing-base-unit) * 6)","--ll-spacing-x-large":"calc(var(--ll-spacing-base-unit) * 8)","--ll-spacing-xx-large":"calc(var(--ll-spacing-base-unit) * 12)","--ll-spacing-xxx-large":"calc(var(--ll-spacing-base-unit) * 16)"},JK={"--ll-font-family":"Inter, sans-serif","--ll-font-family-mono":"Consolas, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Monaco, Courier New, Courier, monospace;"},tQ={"--ll-font-size-base":"12px","--ll-font-size-h1":"calc(var(--ll-font-size-base) * 4)","--ll-font-size-h2":"calc(var(--ll-font-size-base) * 3)","--ll-font-size-h3":"calc(var(--ll-font-size-base) * 2)","--ll-font-size-h4":"calc(var(--ll-font-size-base) * 1.667)","--ll-font-size-h5":"calc(var(--ll-font-size-base) * 1.5)","--ll-font-size-h6":"calc(var(--ll-font-size-base) * 1.333)","--ll-font-size-p":"calc(var(--ll-font-size-base) * 1.167)","--ll-font-size-caption-1":"var(--ll-font-size-base)","--ll-font-size-caption-2":"calc(var(--ll-font-size-base) * 0.833)"},eQ={"--ll-font-weight-light":"400","--ll-font-weight-normal":"500","--ll-font-weight-medium":"600","--ll-font-weight-bold":"700"},qw={...ZK,...XK,...KK,...QK,...JK,...tQ,...eQ},nQ={...qw,"--ll-color-primary":$d.colorPrimary60,"--ll-color-primary-variant1":$d.colorPrimary50,"--ll-color-background":Rt.colorNeutral10,"--ll-color-surface":Rt.colorNeutral20,"--ll-color-surface-variant1":Rt.colorNeutral30,"--ll-color-surface-variant2":Rt.colorNeutral40,"--ll-color-on-primary":Rt.colorNeutral100,"--ll-color-on-primary-variant1":Rt.colorNeutral90,"--ll-color-on-background":Rt.colorNeutral99,"--ll-color-on-background-variant1":Rt.colorNeutral80,"--ll-color-on-surface":Rt.colorNeutral80,"--ll-color-on-surface-variant1":Rt.colorNeutral90,"--ll-color-placeholder":Rt.colorNeutral70,"--ll-color-disabled":Rt.colorNeutral70,"--ll-color-border":Rt.colorNeutral30,"--ll-color-link":Gw.colorBlue70},rQ=Object.keys(qw),D=rQ.reduce((t,e)=>({...t,[e]:`var(${e})`}),{}),iQ={day:qw,night:nQ},oQ=q3`
79
- :root {
80
- ${({themeName:t,overrides:e})=>({...iQ[t||"day"],...e})};
81
- }
82
- `,sQ=t=>t,aQ=sQ({default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}}),lQ=Object.freeze(Object.defineProperty({__proto__:null,transitions:aQ},Symbol.toStringTag,{value:"Module"})),SD={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},cQ=Object.freeze(Object.defineProperty({__proto__:null,screenSizes:SD},Symbol.toStringTag,{value:"Module"})),Ewt={colors:qK,...lQ,...cQ},uQ=({$size:t})=>t==="small"?vt`
83
- padding: calc(${D["--ll-spacing-xx-small"]} / 2) ${D["--ll-spacing-xx-small"]};
84
- `:t==="large"?vt`
85
- padding: calc(${D["--ll-spacing-small"]} / 2) ${D["--ll-spacing-medium"]};
86
- font-size: ${D["--ll-font-size-p"]};
87
- line-height: ${D["--ll-font-size-h6"]};
88
- `:vt`
89
- padding: ${D["--ll-spacing-xx-small"]} ${D["--ll-spacing-x-small"]};
90
- `;N.span`
91
- white-space: nowrap;
92
- display: inline-flex;
93
- color: ${({$textColor:t})=>t};
94
- background-color: ${({$backgroundColor:t})=>t};
95
- border-radius: ${D["--ll-border-radius-small"]};
96
- line-height: 1;
97
- font-family: ${D["--ll-font-family"]};
98
- font-size: ${D["--ll-font-size-caption-1"]};
99
- justify-content: center;
100
-
101
- ${uQ};
102
- `;var P0={exports:{}},Oc={};/**
103
- * @license React
104
- * react-jsx-runtime.production.min.js
105
- *
106
- * Copyright (c) Facebook, Inc. and its affiliates.
107
- *
108
- * This source code is licensed under the MIT license found in the
109
- * LICENSE file in the root directory of this source tree.
110
- */var lA;function dQ(){if(lA)return Oc;lA=1;var t=Q,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},h=null,f=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:e,type:a,key:h,ref:f,props:d,_owner:i.current}}return Oc.Fragment=n,Oc.jsx=s,Oc.jsxs=s,Oc}(function(t){t.exports=dQ()})(P0);const O0=P0.exports.Fragment,ot=P0.exports.jsx,cr=P0.exports.jsxs,hQ=N.div`
111
- height: ${({height:t})=>t}px;
112
- width: ${({width:t})=>t}px;
113
- fill: ${({fill:t})=>t};
114
- display: flex;
115
-
116
- & > svg {
117
- fill: inherit;
118
- height: 100%;
119
- width: 100%;
120
- }
121
- `,Zw=({SVGElement:t,fill:e="--ll-color-on-background",height:n=24,width:r=24})=>ot(hQ,{fill:e,height:n,width:r,children:ot(t,{})}),cA=({$variant:t})=>t==="h1"?D["--ll-font-size-h1"]:t==="h2"?D["--ll-font-size-h2"]:t==="h3"?D["--ll-font-size-h3"]:t==="h4"?D["--ll-font-size-h4"]:t==="h5"?D["--ll-font-size-h5"]:t==="h6"?D["--ll-font-size-h6"]:t==="p"?D["--ll-font-size-p"]:t==="caption1"?D["--ll-font-size-caption-1"]:t==="caption2"?D["--ll-font-size-caption-2"]:D["--ll-font-size-h2"],uA=({$color:t})=>t in D?D[t]:t,ED=N.span`
122
- overflow: hidden;
123
- display: inline-block;
124
- width: 100%;
125
- line-height: ${({$lineHeight:t})=>t||1.45};
126
- margin: 0 0 ${({$noMargin:t})=>t?"0":"0.5em"} 0;
127
- font-size: inherit;
128
- font-weight: inherit;
129
- `,fQ=N.div`
130
- ${t=>vt`
131
- text-align: ${t.$align};
132
- font-size: ${cA(t)};
133
- font-family: ${t.$family==="sans-serif"?D["--ll-font-family"]:D["--ll-font-family-mono"]};
134
- font-variant: ${t.$fontVariant};
135
- letter-spacing: ${t.$letterSpacing};
136
- color: ${uA(t)};
137
- font-weight: ${D[t.$weight]};
138
- overflow: hidden;
139
- display: flex;
140
-
141
- svg {
142
- height: ${cA(t)};
143
- fill: ${uA(t)};
144
- }
145
-
146
- ${ED} {
147
- ${t.$lineClamp&&vt`
148
- display: -webkit-box;
149
- -webkit-line-clamp: ${t.$lineClamp};
150
- -webkit-box-orient: vertical;
151
- overflow: hidden;
152
- text-overflow: ellipsis;
153
- `}
154
- }
155
- `}
156
- `,Q_=({children:t,variant:e="p",align:n,color:r="--ll-color-on-background",lineClamp:i,noMargin:o,lineHeight:s,weight:a="--ll-font-weight-normal",family:l="sans-serif",className:c,fontVariant:u="initial",letterSpacing:d})=>{const h=["caption1","caption2","p"].includes(e)?"p":e;return ot(fQ,{$variant:e,$align:n,$color:r,$lineClamp:i,$weight:a,$family:l,$fontVariant:u,$letterSpacing:d,children:ot(ED,{as:h,className:c,$noMargin:o,$lineHeight:s,children:t})})};N.a`
157
- font-family: ${D["--ll-font-family"]};
158
- font-size: ${D["--ll-font-size-p"]};
159
- color: ${D["--ll-color-link"]};
160
- cursor: pointer;
161
-
162
- ${({lineClamp:t})=>t&&vt`
163
- overflow: hidden;
164
- text-overflow: ellipsis;
165
- display: -webkit-box;
166
- -webkit-box-orient: vertical;
167
- -webkit-line-clamp: ${t};
168
- `}
169
- `;function et(){return et=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},et.apply(this,arguments)}function pQ(t,e){const n=m.exports.createContext(e);function r(o){const{children:s,...a}=o,l=m.exports.useMemo(()=>a,Object.values(a));return m.exports.createElement(n.Provider,{value:l},s)}function i(o){const s=m.exports.useContext(n);if(s)return s;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return r.displayName=t+"Provider",[r,i]}function oc(t,e=[]){let n=[];function r(o,s){const a=m.exports.createContext(s),l=n.length;n=[...n,s];function c(d){const{scope:h,children:f,...p}=d,g=(h==null?void 0:h[t][l])||a,y=m.exports.useMemo(()=>p,Object.values(p));return m.exports.createElement(g.Provider,{value:y},f)}function u(d,h){const f=(h==null?void 0:h[t][l])||a,p=m.exports.useContext(f);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,u]}const i=()=>{const o=n.map(s=>m.exports.createContext(s));return function(s){const a=(s==null?void 0:s[t])||o;return m.exports.useMemo(()=>({[`__scope${t}`]:{...s,[t]:a}}),[s,a])}};return i.scopeName=t,[r,gQ(i,...e)]}function gQ(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const o=r.reduce((s,{useScope:a,scopeName:l})=>{const c=a(i)[`__scope${l}`];return{...s,...c}},{});return m.exports.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function mQ(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function CD(...t){return e=>t.forEach(n=>mQ(n,e))}function Ut(...t){return m.exports.useCallback(CD(...t),t)}const Hl=m.exports.forwardRef((t,e)=>{const{children:n,...r}=t,i=m.exports.Children.toArray(n),o=i.find(yQ);if(o){const s=o.props.children,a=i.map(l=>l===o?m.exports.Children.count(s)>1?m.exports.Children.only(null):m.exports.isValidElement(s)?s.props.children:null:l);return m.exports.createElement(J_,et({},r,{ref:e}),m.exports.isValidElement(s)?m.exports.cloneElement(s,void 0,a):null)}return m.exports.createElement(J_,et({},r,{ref:e}),n)});Hl.displayName="Slot";const J_=m.exports.forwardRef((t,e)=>{const{children:n,...r}=t;return m.exports.isValidElement(n)?m.exports.cloneElement(n,{..._Q(r,n.props),ref:CD(e,n.ref)}):m.exports.Children.count(n)>1?m.exports.Children.only(null):null});J_.displayName="SlotClone";const vQ=({children:t})=>m.exports.createElement(m.exports.Fragment,null,t);function yQ(t){return m.exports.isValidElement(t)&&t.type===vQ}function _Q(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?n[r]=(...s)=>{o==null||o(...s),i==null||i(...s)}:r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}const xQ=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Mt=xQ.reduce((t,e)=>{const n=m.exports.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?Hl:e;return m.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.exports.createElement(a,et({},s,{ref:i}))});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function bQ(t,e){t&&zn.exports.flushSync(()=>t.dispatchEvent(e))}const In=Boolean(globalThis==null?void 0:globalThis.document)?m.exports.useLayoutEffect:()=>{},wQ=nb["useId".toString()]||(()=>{});let SQ=0;function oh(t){const[e,n]=m.exports.useState(wQ());return In(()=>{t||n(r=>r!=null?r:String(SQ++))},[t]),t||(e?`radix-${e}`:"")}const EQ="Label",[CQ,kQ]=pQ(EQ,{id:void 0,controlRef:{current:null}}),AQ=m.exports.forwardRef((t,e)=>{const{htmlFor:n,id:r,...i}=t,o=m.exports.useRef(null),s=m.exports.useRef(null),a=Ut(e,s),l=oh(r);return m.exports.useEffect(()=>{if(n){const c=document.getElementById(n);if(s.current&&c){const u=()=>c.getAttribute("aria-labelledby"),d=[l,u()].filter(Boolean).join(" ");return c.setAttribute("aria-labelledby",d),o.current=c,()=>{var h;const f=(h=u())===null||h===void 0?void 0:h.replace(l,"");f===""?c.removeAttribute("aria-labelledby"):f&&c.setAttribute("aria-labelledby",f)}}}},[l,n]),m.exports.createElement(CQ,{id:l,controlRef:o},m.exports.createElement(Mt.span,et({role:"label",id:l},i,{ref:a,onMouseDown:c=>{var u;(u=t.onMouseDown)===null||u===void 0||u.call(t,c),!c.defaultPrevented&&c.detail>1&&c.preventDefault()},onClick:c=>{var u;if((u=t.onClick)===null||u===void 0||u.call(t,c),!o.current||c.defaultPrevented)return;const d=o.current.contains(c.target),h=c.isTrusted===!0;!d&&h&&(o.current.click(),o.current.focus())}})))}),kD=t=>{const e=kQ("LabelConsumer"),{controlRef:n}=e;return m.exports.useEffect(()=>{t&&(n.current=t)},[t,n]),e.id},TQ=AQ,$Q=N(TQ)`
170
- font-size: ${D["--ll-font-size-p"]};
171
- font-family: ${D["--ll-font-family"]};
172
- color: ${D["--ll-color-placeholder"]};
173
- `,AD=t=>ot($Q,{...t});let dA=0;const MQ=()=>(dA+=1,`id-${dA}`),PQ=b0`
174
- 0% {
175
- transform: rotate(0deg);
176
- }
177
- 100% {
178
- transform: rotate(360deg);
179
- }
180
- `,u1={small:pr*4,medium:pr*6,large:pr*8},OQ=N.div`
181
- height: ${({size:t})=>u1[t]}px;
182
- width: ${({size:t})=>u1[t]}px;
183
- border: ${({size:t})=>u1[t]/6}px solid ${D["--ll-color-on-surface-variant1"]};
184
- border-bottom-color: transparent;
185
- border-radius: 50%;
186
- display: inline-block;
187
- box-sizing: border-box;
188
- animation: ${PQ} 1s linear infinite;
189
- `,TD=({size:t="medium"})=>ot(OQ,{size:t}),Pu={primary:{background:D["--ll-color-primary"],onBackground:D["--ll-color-on-primary"],hover:D["--ll-color-primary-variant1"]}},RQ=({size:t})=>t==="small"?`font-size: ${D["--ll-font-size-caption-1"]}`:`font-size: ${D["--ll-font-size-p"]}`,Xw=({size:t})=>t==="small"?`${pr*8}px`:t==="large"?`${pr*12}px`:`${pr*10}px`,LQ=({size:t})=>t==="small"?`padding: 0 ${D["--ll-spacing-x-small"]}`:t==="large"?`padding: 0 ${D["--ll-spacing-medium"]}`:`padding: 0 ${D["--ll-spacing-small"]}`,DQ=({size:t})=>t==="large"?"svg { height: 24px; }":t==="small"?"svg { height: 12px }":"svg { height: 20px; }",IQ=vt`
190
- color: ${D["--ll-color-on-background"]};
191
-
192
- &:disabled {
193
- cursor: default;
194
- }
195
-
196
- height: ${Xw};
197
- `,NQ=vt`
198
- ${({color:t="primary"})=>vt`
199
- background-color: ${Pu[t].background};
200
- color: ${Pu[t].onBackground};
201
- border: 1px solid transparent;
202
-
203
- &:hover {
204
- background-color: ${Pu[t].hover};
205
- }
206
-
207
- &:disabled {
208
- background-color: ${D["--ll-color-disabled"]};
209
- cursor: default;
210
- }
211
- `};
212
- height: ${Xw};
213
- `,FQ=vt`
214
- ${({color:t="primary"})=>vt`
215
- border-color: ${Pu[t].background};
216
- border-width: 1px;
217
- border-style: solid;
218
- color: ${Pu[t].background};
219
- `};
220
-
221
- &:hover {
222
- background-color: rgba(0, 0, 0, 0.03);
223
- }
224
-
225
- height: ${Xw};
226
- `,zQ=t=>({contained:NQ,outlined:FQ,text:IQ})[t.variant],BQ=N.div`
227
- display: flex;
228
- align-items: center;
229
- margin-right: ${D["--ll-spacing-x-small"]};
230
- margin-left: calc(-1 * ${D["--ll-spacing-xx-small"]});
231
- `,jQ=N.button`
232
- font-weight: ${D["--ll-font-weight-normal"]};
233
- border-radius: ${D["--ll-border-radius-small"]};
234
- align-items: center;
235
- justify-content: center;
236
- cursor: pointer;
237
- display: inline-flex;
238
- background: none;
239
- border: none;
240
- box-sizing: border-box;
241
-
242
- svg {
243
- fill: currentColor;
244
- }
245
-
246
- ${zQ};
247
- ${DQ};
248
- ${RQ};
249
- ${LQ};
250
- `,$D=Q.forwardRef(({children:t,disabled:e=!1,onClick:n,variant:r="contained",startAdornment:i,size:o="medium",type:s="button",color:a,isLoading:l,className:c},u)=>ot(jQ,{variant:r,size:o,onClick:d=>{e||!n||l||n(d)},disabled:e||l,className:c,color:a,type:s,ref:u,children:l?ot(TD,{}):cr(O0,{children:[i&&ot(BQ,{children:i}),t]})}));$D.displayName="Button";const VQ=N.div`
251
- display: flex;
252
- flex-direction: column;
253
- `,HQ=N.div`
254
- position: relative;
255
- `,UQ=N($D)`
256
- position: absolute;
257
- right: 0px;
258
- top: 0px;
259
- `,WQ=N.input`
260
- all: unset;
261
- display: inline-flex;
262
- align-items: center;
263
- justify-content: center;
264
- border-radius: ${D["--ll-border-radius-small"]};
265
- padding: 0 ${D["--ll-spacing-x-small"]};
266
- height: 30px;
267
- line-height: 1;
268
- font-size: ${D["--ll-font-size-p"]};
269
- font-family: ${D["--ll-font-family"]};
270
- color: ${D["--ll-color-on-background"]};
271
- background-color: ${D["--ll-color-background"]};
272
- border: 1px solid ${D["--ll-color-border"]};
273
- width: calc(100% - ${D["--ll-spacing-medium"]});
274
-
275
- &:focus {
276
- box-shadow: ${D["--ll-shadow-small"]};
277
- }
278
-
279
- // Set to 16px to avoid mobile to zoom in to the input
280
- @media (max-width: ${SD.tablet}px) {
281
- font-size: ${D["--ll-font-size-h6"]};
282
- }
283
- `,YQ=t=>O("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 0C4.47 0 0 4.47 0 10C0 15.53 4.47 20 10 20C15.53 20 20 15.53 20 10C20 4.47 15.53 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10 8.59L13.59 5L15 6.41L11.41 10L15 13.59L13.59 15L10 11.41L6.41 15L5 13.59L8.59 10L5 6.41L6.41 5L10 8.59Z"})}),Cwt=({value:t,label:e,placeholder:n,className:r,autofocus:i=!1,onBlur:o,onFocus:s,onClear:a,onChange:l})=>{const[c]=m.exports.useState(()=>MQ()),u=m.exports.useMemo(()=>e?ot(AD,{htmlFor:c,style:{lineHeight:"26px"},children:e}):null,[e]);return cr(VQ,{children:[u,cr(HQ,{children:[ot(WQ,{autoFocus:i,className:r,id:c,value:t,onBlur:o,onFocus:s,onChange:l,placeholder:n}),a&&ot(UQ,{size:"small",variant:"text",onClick:a,children:ot(YQ,{})})]})]})},hA={small:20,medium:32,large:40};N(Yw.div)`
284
- background: linear-gradient(
285
- to top,
286
- ${({$backgroundColorHighlight:t})=>t},
287
- ${({$backgroundColor:t})=>t}
288
- );
289
- border-radius: 50%;
290
- border: 2px solid #fff;
291
- height: ${({$size:t})=>hA[t]}px;
292
- width: ${({$size:t})=>hA[t]}px;
293
- display: flex;
294
- justify-content: center;
295
- align-items: center;
296
- box-shadow: ${D["--ll-shadow-small"]};
297
- `;function Lt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(t==null||t(r),n===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}function Xo(t){const e=m.exports.useRef(t);return m.exports.useEffect(()=>{e.current=t}),m.exports.useMemo(()=>(...n)=>{var r;return(r=e.current)===null||r===void 0?void 0:r.call(e,...n)},[])}function Md({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=GQ({defaultProp:e,onChange:n}),o=t!==void 0,s=o?t:r,a=Xo(n),l=m.exports.useCallback(c=>{if(o){const u=typeof c=="function"?c(t):c;u!==t&&a(u)}else i(c)},[o,t,i,a]);return[s,l]}function GQ({defaultProp:t,onChange:e}){const n=m.exports.useState(t),[r]=n,i=m.exports.useRef(r),o=Xo(e);return m.exports.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}function Kw(t){const e=m.exports.useRef({value:t,previous:t});return m.exports.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function Qw(t){const[e,n]=m.exports.useState(void 0);return In(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=t.offsetWidth,a=t.offsetHeight;n({width:s,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}const MD="Switch",[qQ,kwt]=oc(MD),[ZQ,XQ]=qQ(MD),KQ=m.exports.forwardRef((t,e)=>{const{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:s,required:a,disabled:l,value:c="on",onCheckedChange:u,...d}=t,[h,f]=m.exports.useState(null),p=Ut(e,w=>f(w)),g=kD(h),y=r||g,v=m.exports.useRef(!1),_=h?Boolean(h.closest("form")):!0,[x=!1,b]=Md({prop:o,defaultProp:s,onChange:u});return m.exports.createElement(ZQ,{scope:n,checked:x,disabled:l},m.exports.createElement(Mt.button,et({type:"button",role:"switch","aria-checked":x,"aria-labelledby":y,"aria-required":a,"data-state":PD(x),"data-disabled":l?"":void 0,disabled:l,value:c},d,{ref:p,onClick:Lt(t.onClick,w=>{b(S=>!S),_&&(v.current=w.isPropagationStopped(),v.current||w.stopPropagation())})})),_&&m.exports.createElement(tJ,{control:h,bubbles:!v.current,name:i,value:c,checked:x,required:a,disabled:l,style:{transform:"translateX(-100%)"}}))}),QQ="SwitchThumb",JQ=m.exports.forwardRef((t,e)=>{const{__scopeSwitch:n,...r}=t,i=XQ(QQ,n);return m.exports.createElement(Mt.span,et({"data-state":PD(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:e}))}),tJ=t=>{const{control:e,checked:n,bubbles:r=!0,...i}=t,o=m.exports.useRef(null),s=Kw(n),a=Qw(e);return m.exports.useEffect(()=>{const l=o.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(s!==n&&u){const d=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent(d)}},[s,n,r]),m.exports.createElement("input",et({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function PD(t){return t?"checked":"unchecked"}const eJ=KQ,nJ=JQ,rJ=N(eJ)`
298
- all: unset;
299
- width: 42px;
300
- height: 24px;
301
- background-color: ${D["--ll-color-disabled"]};
302
- border-radius: 13px;
303
- position: relative;
304
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
305
-
306
- &[data-state="checked"] {
307
- background-color: ${D["--ll-color-on-background"]};
308
- }
309
- `,iJ=N(nJ)`
310
- display: block;
311
- width: 18px;
312
- height: 18px;
313
- background-color: ${D["--ll-color-background"]};
314
- border-radius: 9px;
315
- transition: transform 100ms;
316
- transform: translateX(3px);
317
- will-change: transform;
318
-
319
- &[data-state="checked"] {
320
- transform: translateX(21px);
321
- }
322
- `,Awt=t=>ot(rJ,{...t,children:ot(iJ,{})});function tx(t,[e,n]){return Math.min(n,Math.max(e,t))}const oJ=m.exports.createContext(void 0);function OD(t){const e=m.exports.useContext(oJ);return t||e||"ltr"}function RD(t){const e=t+"CollectionProvider",[n,r]=oc(e),[i,o]=n(e,{collectionRef:{current:null},itemMap:new Map}),s=f=>{const{scope:p,children:g}=f,y=Q.useRef(null),v=Q.useRef(new Map).current;return Q.createElement(i,{scope:p,itemMap:v,collectionRef:y},g)},a=t+"CollectionSlot",l=Q.forwardRef((f,p)=>{const{scope:g,children:y}=f,v=o(a,g),_=Ut(p,v.collectionRef);return Q.createElement(Hl,{ref:_},y)}),c=t+"CollectionItemSlot",u="data-radix-collection-item",d=Q.forwardRef((f,p)=>{const{scope:g,children:y,...v}=f,_=Q.useRef(null),x=Ut(p,_),b=o(c,g);return Q.useEffect(()=>(b.itemMap.set(_,{ref:_,...v}),()=>void b.itemMap.delete(_))),Q.createElement(Hl,{[u]:"",ref:x},y)});function h(f){const p=o(t+"CollectionConsumer",f);return Q.useCallback(()=>{const g=p.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${u}]`));return Array.from(p.itemMap.values()).sort((v,_)=>y.indexOf(v.ref.current)-y.indexOf(_.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,r]}const LD=["PageUp","PageDown"],DD=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ID={ltr:["ArrowDown","Home","ArrowLeft","PageDown"],rtl:["ArrowDown","Home","ArrowRight","PageDown"]},sh="Slider",[ex,sJ,aJ]=RD(sh),[ND,Twt]=oc(sh,[aJ]),[lJ,R0]=ND(sh),cJ=m.exports.forwardRef((t,e)=>{const{name:n,min:r=0,max:i=100,step:o=1,orientation:s="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:u,onValueChange:d=()=>{},...h}=t,[f,p]=m.exports.useState(null),g=Ut(e,k=>p(k)),y=m.exports.useRef(new Set),v=m.exports.useRef(0),_=s==="horizontal",x=f?Boolean(f.closest("form")):!0,b=_?uJ:dJ,[w=[],S]=Md({prop:u,defaultProp:c,onChange:k=>{var $;($=[...y.current][v.current])===null||$===void 0||$.focus(),d(k)}});function E(k){const $=xJ(w,k);A(k,$)}function C(k){A(k,v.current)}function A(k,$){const M=EJ(o),I=CJ(Math.round((k-r)/o)*o+r,M),F=tx(I,[r,i]);S((L=[])=>{const Y=yJ(L,F,$);return SJ(Y,l*o)?(v.current=Y.indexOf(F),String(Y)===String(L)?L:Y):L})}return m.exports.createElement(lJ,{scope:t.__scopeSlider,disabled:a,min:r,max:i,valueIndexToChangeRef:v,thumbs:y.current,values:w,orientation:s},m.exports.createElement(ex.Provider,{scope:t.__scopeSlider},m.exports.createElement(ex.Slot,{scope:t.__scopeSlider},m.exports.createElement(b,et({"aria-disabled":a,"data-disabled":a?"":void 0},h,{ref:g,min:r,max:i,onSlideStart:a?void 0:E,onSlideMove:a?void 0:C,onHomeKeyDown:()=>!a&&A(r,0),onEndKeyDown:()=>!a&&A(i,w.length-1),onStepKeyDown:({event:k,direction:$})=>{if(!a){const M=LD.includes(k.key)||k.shiftKey&&DD.includes(k.key)?10:1,I=v.current,F=w[I],L=o*M*$;A(F+L,I)}}})))),x&&w.map((k,$)=>m.exports.createElement(vJ,{key:$,name:n?n+(w.length>1?"[]":""):void 0,value:k})))}),[FD,zD]=ND(sh,{startEdge:"left",endEdge:"right",size:"width",direction:1}),uJ=m.exports.forwardRef((t,e)=>{const{min:n,max:r,dir:i,onSlideStart:o,onSlideMove:s,onStepKeyDown:a,...l}=t,[c,u]=m.exports.useState(null),d=Ut(e,y=>u(y)),h=m.exports.useRef(),f=OD(i),p=f==="ltr";function g(y){const v=h.current||c.getBoundingClientRect(),_=[0,v.width],x=Jw(_,p?[n,r]:[r,n]);return h.current=v,x(y-v.left)}return m.exports.createElement(FD,{scope:t.__scopeSlider,startEdge:p?"left":"right",endEdge:p?"right":"left",direction:p?1:-1,size:"width"},m.exports.createElement(BD,et({dir:f,"data-orientation":"horizontal"},l,{ref:d,style:{...l.style,["--radix-slider-thumb-transform"]:"translateX(-50%)"},onSlideStart:y=>{const v=g(y.clientX);o==null||o(v)},onSlideMove:y=>{const v=g(y.clientX);s==null||s(v)},onSlideEnd:()=>h.current=void 0,onStepKeyDown:y=>{const v=ID[f].includes(y.key);a==null||a({event:y,direction:v?-1:1})}})))}),dJ=m.exports.forwardRef((t,e)=>{const{min:n,max:r,onSlideStart:i,onSlideMove:o,onStepKeyDown:s,...a}=t,l=m.exports.useRef(null),c=Ut(e,l),u=m.exports.useRef();function d(h){const f=u.current||l.current.getBoundingClientRect(),p=[0,f.height],g=Jw(p,[r,n]);return u.current=f,g(h-f.top)}return m.exports.createElement(FD,{scope:t.__scopeSlider,startEdge:"bottom",endEdge:"top",size:"height",direction:1},m.exports.createElement(BD,et({"data-orientation":"vertical"},a,{ref:c,style:{...a.style,["--radix-slider-thumb-transform"]:"translateY(50%)"},onSlideStart:h=>{const f=d(h.clientY);i==null||i(f)},onSlideMove:h=>{const f=d(h.clientY);o==null||o(f)},onSlideEnd:()=>u.current=void 0,onStepKeyDown:h=>{const f=ID.ltr.includes(h.key);s==null||s({event:h,direction:f?-1:1})}})))}),BD=m.exports.forwardRef((t,e)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:o,onHomeKeyDown:s,onEndKeyDown:a,onStepKeyDown:l,...c}=t,u=R0(sh,n);return m.exports.createElement(Mt.span,et({},c,{ref:e,onKeyDown:Lt(t.onKeyDown,d=>{d.key==="Home"?(s(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):LD.concat(DD).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:Lt(t.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(h)?h.focus():r(d)}),onPointerMove:Lt(t.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&i(d)}),onPointerUp:Lt(t.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),o(d))})}))}),hJ="SliderTrack",fJ=m.exports.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,i=R0(hJ,n);return m.exports.createElement(Mt.span,et({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},r,{ref:e}))}),fA="SliderRange",pJ=m.exports.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,i=R0(fA,n),o=zD(fA,n),s=m.exports.useRef(null),a=Ut(e,s),l=i.values.length,c=i.values.map(h=>jD(h,i.min,i.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return m.exports.createElement(Mt.span,et({"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0},r,{ref:a,style:{...t.style,[o.startEdge]:u+"%",[o.endEdge]:d+"%"}}))}),pA="SliderThumb",gJ=m.exports.forwardRef((t,e)=>{const n=sJ(t.__scopeSlider),[r,i]=m.exports.useState(null),o=Ut(e,a=>i(a)),s=m.exports.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return m.exports.createElement(mJ,et({},t,{ref:o,index:s}))}),mJ=m.exports.forwardRef((t,e)=>{const{__scopeSlider:n,index:r,...i}=t,o=R0(pA,n),s=zD(pA,n),[a,l]=m.exports.useState(null),c=Ut(e,y=>l(y)),u=Qw(a),d=o.values[r],h=d===void 0?0:jD(d,o.min,o.max),f=_J(r,o.values.length),p=u==null?void 0:u[s.size],g=p?bJ(p,h,s.direction):0;return m.exports.useEffect(()=>{if(a)return o.thumbs.add(a),()=>{o.thumbs.delete(a)}},[a,o.thumbs]),m.exports.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${h}% + ${g}px)`}},m.exports.createElement(ex.ItemSlot,{scope:t.__scopeSlider},m.exports.createElement(Mt.span,et({role:"slider","aria-label":t["aria-label"]||f,"aria-valuemin":o.min,"aria-valuenow":d,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0},i,{ref:c,style:d===void 0?{display:"none"}:t.style,onFocus:Lt(t.onFocus,()=>{o.valueIndexToChangeRef.current=r})}))))}),vJ=t=>{const{value:e,...n}=t,r=m.exports.useRef(null),i=Kw(e);return m.exports.useEffect(()=>{const o=r.current,s=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(s,"value").set;if(i!==e&&a){const l=new Event("input",{bubbles:!0});a.call(o,e),o.dispatchEvent(l)}},[i,e]),m.exports.createElement("input",et({style:{display:"none"}},n,{ref:r,defaultValue:e}))};function yJ(t=[],e,n){const r=[...t];return r[n]=e,r.sort((i,o)=>i-o)}function jD(t,e,n){return 100/(n-e)*(t-e)}function _J(t,e){return e>2?`Value ${t+1} of ${e}`:e===2?["Minimum","Maximum"][t]:void 0}function xJ(t,e){if(t.length===1)return 0;const n=t.map(i=>Math.abs(i-e)),r=Math.min(...n);return n.indexOf(r)}function bJ(t,e,n){const r=t/2,i=Jw([0,50],[0,r]);return(r-i(e)*n)*n}function wJ(t){return t.slice(0,-1).map((e,n)=>t[n+1]-e)}function SJ(t,e){if(e>0){const n=wJ(t);return Math.min(...n)>=e}return!0}function Jw(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function EJ(t){return(String(t).split(".")[1]||"").length}function CJ(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}const kJ=cJ,AJ=fJ,TJ=pJ,$J=gJ,MJ=N.div``,PJ=N.div`
323
- display: flex;
324
- align-items: center;
325
- `,OJ=N(kJ)`
326
- position: relative;
327
- display: flex;
328
- align-items: center;
329
- user-select: none;
330
- touch-action: none;
331
- height: 20;
332
- flex: 1;
333
- `,RJ=N($J)`
334
- all: unset;
335
- height: 20px;
336
- width: 20px;
337
- border-radius: 50%;
338
- display: block;
339
- background-color: ${D["--ll-color-primary"]};
340
- box-shadow: ${D["--ll-shadow-medium"]};
341
- `,LJ=N(AJ)`
342
- height: 4px;
343
- border-radius: 2px;
344
- background-color: ${D["--ll-color-surface-variant1"]};
345
- position: relative;
346
- flex: 1;
347
- `,DJ=N(TJ)`
348
- height: 100%;
349
- position: absolute;
350
- background-color: ${D["--ll-color-primary"]};
351
- border-radius: 2px;
352
- `,IJ=({$vertical:t,$spacing:e})=>{const n=D[e];return t?`${n} 0 0 0`:`0 ${n} 0 0`},NJ=N.div`
353
- margin: ${t=>IJ(t)};
354
- flex-shrink: 0;
355
- `,FJ=({vertical:t=!1,spacing:e="--ll-spacing-auto"})=>ot(NJ,{$vertical:t,$spacing:e}),$wt=({label:t,showValue:e,...n})=>cr(MJ,{children:[t&&ot(AD,{style:{lineHeight:"50px"},children:t}),cr(PJ,{children:[cr(OJ,{...n,children:[ot(LJ,{children:ot(DJ,{})}),ot(RJ,{})]}),e&&cr(O0,{children:[ot(FJ,{spacing:"--ll-spacing-small"}),ot(Q_,{noMargin:!0,children:n.value})]})]})]}),Cp={primary:{background:D["--ll-color-primary"],onBackground:D["--ll-color-on-primary"],hover:D["--ll-color-primary-variant1"]},inverse:{background:"transparent",onBackground:D["--ll-color-primary"],hover:"rgba(0,0,0,0.05)"},neutral:{background:"transparent",onBackground:D["--ll-color-on-background-variant1"],hover:"rgba(0,0,0,0.05)"}},Vg={small:24,medium:32,large:48},zJ=N.button`
356
- ${({color:t="primary",size:e="medium"})=>vt`
357
- border: none;
358
- background-color: ${Cp[t].background};
359
- color: ${Cp[t].onBackground};
360
- border-radius: 50%;
361
- height: ${Vg[e]}px;
362
- width: ${Vg[e]}px;
363
- display: flex;
364
- justify-content: center;
365
- align-items: center;
366
- padding: 6px;
367
-
368
- &:hover {
369
- background-color: ${Cp[t].hover};
370
- }
371
-
372
- &:disabled {
373
- cursor: default;
374
- background-color: rgba(0, 0, 0, 0.1);
375
- color: ${D["--ll-color-on-background-variant1"]};
376
- }
377
- `};
378
- `,Mwt=({SVGElement:t,disabled:e=!1,onClick:n,size:r="medium",type:i="button",color:o="primary",isLoading:s,className:a})=>{const l=u=>{e||!n||s||n(u)},c=m.exports.useMemo(()=>e?D["--ll-color-placeholder"]:Cp[o].onBackground,[o,e]);return ot(zJ,{size:r,onClick:l,disabled:e||s,className:a,color:o,type:i,children:s?ot(TD,{}):ot(Zw,{SVGElement:t,width:Vg[r]/1.33333,height:Vg[r]/1.33333,fill:c})})};function BJ({height:t,width:e}){return vt`
379
- height: ${t};
380
- width: ${e};
381
- `}const jJ=b0`
382
- from {
383
- background-position: -800px 0;
384
- }
385
-
386
- to {
387
- background-position: 800px 0;
388
- }
389
- `,VJ=N.div`
390
- border-radius: ${D["--ll-border-radius-medium"]};
391
- animation: ${jJ} 2s linear infinite;
392
- background: linear-gradient(
393
- to right,
394
- /* NOTE: 99.9% of the time we should use colours from theme, since these are
395
- CSS vars that can be overriden. */
396
- ${D["--ll-color-surface-variant1"]} 4%,
397
- ${D["--ll-color-surface-variant2"]} 25%,
398
- ${D["--ll-color-surface-variant1"]} 36%
399
- );
400
- background-size: 800px 100%;
401
- ${BJ}
402
- `,Pwt=({height:t,width:e,className:n})=>ot(VJ,{height:t,width:e,className:n});N.div`
403
- flex: 1;
404
- height: 100%;
405
- width: 100%;
406
- display: flex;
407
- align-items: center;
408
- justify-content: center;
409
- `;N.div`
410
- display: flex;
411
- flex-direction: column;
412
- align-items: center;
413
- `;var HJ=Object.defineProperty,UJ=(t,e,n)=>e in t?HJ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ou=(t,e,n)=>(UJ(t,typeof e!="symbol"?e+"":e,n),n),An={},t2={},ah={},e2={};/*!
414
- * cookie
415
- * Copyright(c) 2012-2014 Roman Shtylman
416
- * Copyright(c) 2015 Douglas Christopher Wilson
417
- * MIT Licensed
418
- */e2.parse=qJ;e2.serialize=ZJ;var WJ=decodeURIComponent,YJ=encodeURIComponent,GJ=/; */,sf=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function qJ(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var n={},r=e||{},i=t.split(GJ),o=r.decode||WJ,s=0;s<i.length;s++){var a=i[s],l=a.indexOf("=");if(!(l<0)){var c=a.substr(0,l).trim(),u=a.substr(++l,a.length).trim();u[0]=='"'&&(u=u.slice(1,-1)),n[c]==null&&(n[c]=XJ(u,o))}}return n}function ZJ(t,e,n){var r=n||{},i=r.encode||YJ;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!sf.test(t))throw new TypeError("argument name is invalid");var o=i(e);if(o&&!sf.test(o))throw new TypeError("argument val is invalid");var s=t+"="+o;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!sf.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!sf.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return s}function XJ(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(ah,"__esModule",{value:!0});var KJ=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();ah.hasCookies=ett;var QJ=e2,af=JJ(QJ);function JJ(t){return t&&t.__esModule?t:{default:t}}function ttt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ki="lS_",VD=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ttt(this,t),this.cookieOptions=Object.assign({path:"/"},e),Ki=e.prefix===void 0?Ki:e.prefix}return KJ(t,[{key:"getItem",value:function(e){var n=af.default.parse(document.cookie);return!n||!n.hasOwnProperty(Ki+e)?null:n[Ki+e]}},{key:"setItem",value:function(e,n){return document.cookie=af.default.serialize(Ki+e,n,this.cookieOptions),n}},{key:"removeItem",value:function(e){var n=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=af.default.serialize(Ki+e,"",n),null}},{key:"clear",value:function(){var e=af.default.parse(document.cookie);for(var n in e)n.indexOf(Ki)===0&&this.removeItem(n.substr(Ki.length));return null}}]),t}();ah.default=VD;function ett(){var t=new VD;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),n==="1"}catch(r){return!1}}Object.defineProperty(t2,"__esModule",{value:!0});t2.default=rtt;var ntt=ah,gA="__test";function mA(t){try{var e=window[t];return e.setItem(gA,"1"),e.removeItem(gA),!0}catch(n){return!1}}function rtt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"localStorage",e=String(t).replace(/storage$/i,"").toLowerCase();if(e==="local")return mA("localStorage");if(e==="session")return mA("sessionStorage");if(e==="cookie")return(0,ntt.hasCookies)();if(e==="memory")return!0;throw new Error("Storage method `"+t+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")}var n2={};Object.defineProperty(n2,"__esModule",{value:!0});var itt=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function ott(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var stt=function(){function t(){ott(this,t),this._data={}}return itt(t,[{key:"getItem",value:function(e){return this._data.hasOwnProperty(e)?this._data[e]:null}},{key:"setItem",value:function(e,n){return this._data[e]=String(n)}},{key:"removeItem",value:function(e){return delete this._data[e]}},{key:"clear",value:function(){return this._data={}}}]),t}();n2.default=stt;Object.defineProperty(An,"__esModule",{value:!0});An.MemoryStorage=An.CookieStorage=An.isSupported=An.storage=void 0;var att=t2,kp=r2(att),ltt=ah,HD=r2(ltt),ctt=n2,UD=r2(ctt);function r2(t){return t&&t.__esModule?t:{default:t}}var tl=null;(0,kp.default)("localStorage")?An.storage=tl=window.localStorage:(0,kp.default)("sessionStorage")?An.storage=tl=window.sessionStorage:(0,kp.default)("cookieStorage")?An.storage=tl=new HD.default:An.storage=tl=new UD.default;var utt=An.default=tl;An.storage=tl;An.isSupported=kp.default;An.CookieStorage=HD.default;An.MemoryStorage=UD.default;class WD{constructor(e="global"){Ou(this,"group"),Ou(this,"localStorage"),this.group=e,this.localStorage=utt}setGroup(e){this.group=e}getGroup(){return this.group}getItem(e){return this.localStorage.getItem(`${this.group}.${e}`)}setItem(e,n){this.localStorage.setItem(`${this.group}.${e}`,n)}removeItem(e){this.localStorage.removeItem(`${this.group}.${e}`)}}new WD;class dtt{constructor(){Ou(this,"storageLocation","suggestion_history"),Ou(this,"storage"),Ou(this,"history",[]),this.storage=new WD("commute");const e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}push(e){this.history=this.removeDuplicateEntries(e),this.history.unshift(e),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(e){return this.history.filter(n=>n.locationId!==e.locationId)}}new dtt;/*!
419
- * @kurkle/color v0.3.2
420
- * https://github.com/kurkle/color#readme
421
- * (c) 2023 Jukka Kurkela
422
- * Released under the MIT License
423
- */function lh(t){return t+.5|0}const So=(t,e,n)=>Math.max(Math.min(t,n),e);function Kc(t){return So(lh(t*2.55),0,255)}function jo(t){return So(lh(t*255),0,255)}function Ei(t){return So(lh(t/2.55)/100,0,1)}function vA(t){return So(lh(t*100),0,100)}const nr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},nx=[..."0123456789ABCDEF"],htt=t=>nx[t&15],ftt=t=>nx[(t&240)>>4]+nx[t&15],lf=t=>(t&240)>>4===(t&15),ptt=t=>lf(t.r)&&lf(t.g)&&lf(t.b)&&lf(t.a);function gtt(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&nr[t[1]]*17,g:255&nr[t[2]]*17,b:255&nr[t[3]]*17,a:e===5?nr[t[4]]*17:255}:(e===7||e===9)&&(n={r:nr[t[1]]<<4|nr[t[2]],g:nr[t[3]]<<4|nr[t[4]],b:nr[t[5]]<<4|nr[t[6]],a:e===9?nr[t[7]]<<4|nr[t[8]]:255})),n}const mtt=(t,e)=>t<255?e(t):"";function vtt(t){var e=ptt(t)?htt:ftt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+mtt(t.a,e):void 0}const ytt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function YD(t,e,n){const r=e*Math.min(n,1-n),i=(o,s=(o+t/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function _tt(t,e,n){const r=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function xtt(t,e,n){const r=YD(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function btt(t,e,n,r,i){return t===i?(e-n)/r+(e<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}function i2(t){const e=t.r/255,n=t.g/255,r=t.b/255,i=Math.max(e,n,r),o=Math.min(e,n,r),s=(i+o)/2;let a,l,c;return i!==o&&(c=i-o,l=s>.5?c/(2-i-o):c/(i+o),a=btt(e,n,r,c,i),a=a*60+.5),[a|0,l||0,s]}function o2(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(jo)}function s2(t,e,n){return o2(YD,t,e,n)}function wtt(t,e,n){return o2(xtt,t,e,n)}function Stt(t,e,n){return o2(_tt,t,e,n)}function GD(t){return(t%360+360)%360}function Ett(t){const e=ytt.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?Kc(+e[5]):jo(+e[5]));const i=GD(+e[2]),o=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?r=wtt(i,o,s):e[1]==="hsv"?r=Stt(i,o,s):r=s2(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function Ctt(t,e){var n=i2(t);n[0]=GD(n[0]+e),n=s2(n),t.r=n[0],t.g=n[1],t.b=n[2]}function ktt(t){if(!t)return;const e=i2(t),n=e[0],r=vA(e[1]),i=vA(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${Ei(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const yA={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},_A={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Att(){const t={},e=Object.keys(_A),n=Object.keys(yA);let r,i,o,s,a;for(r=0;r<e.length;r++){for(s=a=e[r],i=0;i<n.length;i++)o=n[i],a=a.replace(o,yA[o]);o=parseInt(_A[s],16),t[a]=[o>>16&255,o>>8&255,o&255]}return t}let cf;function Ttt(t){cf||(cf=Att(),cf.transparent=[0,0,0,0]);const e=cf[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const $tt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Mtt(t){const e=$tt.exec(t);let n=255,r,i,o;if(e){if(e[7]!==r){const s=+e[7];n=e[8]?Kc(s):So(s*255,0,255)}return r=+e[1],i=+e[3],o=+e[5],r=255&(e[2]?Kc(r):So(r,0,255)),i=255&(e[4]?Kc(i):So(i,0,255)),o=255&(e[6]?Kc(o):So(o,0,255)),{r,g:i,b:o,a:n}}}function Ptt(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ei(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const d1=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,ba=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Ott(t,e,n){const r=ba(Ei(t.r)),i=ba(Ei(t.g)),o=ba(Ei(t.b));return{r:jo(d1(r+n*(ba(Ei(e.r))-r))),g:jo(d1(i+n*(ba(Ei(e.g))-i))),b:jo(d1(o+n*(ba(Ei(e.b))-o))),a:t.a+n*(e.a-t.a)}}function uf(t,e,n){if(t){let r=i2(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=s2(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function qD(t,e){return t&&Object.assign(e||{},t)}function xA(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=jo(t[3]))):(e=qD(t,{r:0,g:0,b:0,a:1}),e.a=jo(e.a)),e}function Rtt(t){return t.charAt(0)==="r"?Mtt(t):Ett(t)}class Pd{constructor(e){if(e instanceof Pd)return e;const n=typeof e;let r;n==="object"?r=xA(e):n==="string"&&(r=gtt(e)||Ttt(e)||Rtt(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=qD(this._rgb);return e&&(e.a=Ei(e.a)),e}set rgb(e){this._rgb=xA(e)}rgbString(){return this._valid?Ptt(this._rgb):void 0}hexString(){return this._valid?vtt(this._rgb):void 0}hslString(){return this._valid?ktt(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=Ott(this._rgb,e._rgb,n)),this}clone(){return new Pd(this.rgb)}alpha(e){return this._rgb.a=jo(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=lh(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return uf(this._rgb,2,e),this}darken(e){return uf(this._rgb,2,-e),this}saturate(e){return uf(this._rgb,1,e),this}desaturate(e){return uf(this._rgb,1,-e),this}rotate(e){return Ctt(this._rgb,e),this}}/*!
424
- * Chart.js v4.2.0
425
- * https://www.chartjs.org
426
- * (c) 2023 Chart.js Contributors
427
- * Released under the MIT License
428
- */function hi(){}const Ltt=(()=>{let t=0;return()=>t++})();function Tt(t){return t===null||typeof t>"u"}function Jt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function gt(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Ie(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Vn(t,e){return Ie(t)?t:e}function yt(t,e){return typeof t>"u"?e:t}const Dtt=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,ZD=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function zt(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Ct(t,e,n,r){let i,o,s;if(Jt(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<o;i++)e.call(n,t[i],i);else if(gt(t))for(s=Object.keys(t),o=s.length,i=0;i<o;i++)e.call(n,t[s[i]],s[i])}function Hg(t,e){let n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function Ug(t){if(Jt(t))return t.map(Ug);if(gt(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let i=0;for(;i<r;++i)e[n[i]]=Ug(t[n[i]]);return e}return t}function XD(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Itt(t,e,n,r){if(!XD(t))return;const i=e[t],o=n[t];gt(i)&&gt(o)?Od(i,o,r):e[t]=Ug(o)}function Od(t,e,n){const r=Jt(e)?e:[e],i=r.length;if(!gt(t))return t;n=n||{};const o=n.merger||Itt;let s;for(let a=0;a<i;++a){if(s=r[a],!gt(s))continue;const l=Object.keys(s);for(let c=0,u=l.length;c<u;++c)o(l[c],t,s,n)}return t}function Ru(t,e){return Od(t,e,{merger:Ntt})}function Ntt(t,e,n){if(!XD(t))return;const r=e[t],i=n[t];gt(r)&&gt(i)?Ru(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Ug(i))}const bA={"":t=>t,x:t=>t.x,y:t=>t.y};function Ftt(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function ztt(t){const e=Ftt(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function ra(t,e){return(bA[e]||(bA[e]=ztt(e)))(t)}function a2(t){return t.charAt(0).toUpperCase()+t.slice(1)}const yr=t=>typeof t<"u",Ko=t=>typeof t=="function",wA=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function Btt(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const xe=Math.PI,ce=2*xe,Wg=Number.POSITIVE_INFINITY,jtt=xe/180,ue=xe/2,gs=xe/4,SA=xe*2/3,Eo=Math.log10,Vo=Math.sign;function Ap(t,e,n){return Math.abs(t-e)<n}function EA(t){const e=Math.round(t);t=Ap(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Eo(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Vtt(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((i,o)=>i-o).pop(),e}function Yg(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Htt(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function KD(t,e,n){let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function Kr(t){return t*(xe/180)}function l2(t){return t*(180/xe)}function CA(t){if(!Ie(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function QD(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*xe&&(o+=ce),{angle:o,distance:i}}function Utt(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ur(t){return(t%ce+ce)%ce}function Gg(t,e,n,r){const i=Ur(t),o=Ur(e),s=Ur(n),a=Ur(o-i),l=Ur(s-i),c=Ur(i-o),u=Ur(i-s);return i===o||i===s||r&&o===s||a>l&&c<u}function Tn(t,e,n){return Math.max(e,Math.min(n,t))}function Wtt(t){return Tn(t,-32768,32767)}function Is(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function c2(t,e,n){n=n||(s=>t[s]<e);let r=t.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const rx=(t,e,n,r)=>c2(t,n,r?i=>{const o=t[i][e];return o<n||o===n&&t[i+1][e]===n}:i=>t[i][e]<n),Ytt=(t,e,n)=>c2(t,n,r=>t[r][e]>=n);function Gtt(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}const JD=["push","pop","shift","splice","unshift"];function qtt(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),JD.forEach(n=>{const r="_onData"+a2(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return t._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function kA(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&(JD.forEach(o=>{delete t[o]}),delete t._chartjs)}function t6(t){const e=new Set;let n,r;for(n=0,r=t.length;n<r;++n)e.add(t[n]);return e.size===r?t:Array.from(e)}const e6=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function n6(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,e6.call(window,()=>{r=!1,t.apply(e,n)}))}}function Ztt(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const u2=t=>t==="start"?"left":t==="end"?"right":"center",Qe=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,Xtt=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,df=t=>t===0||t===1,AA=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*ce/n)),TA=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ce/n)+1,Lu={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*ue)+1,easeOutSine:t=>Math.sin(t*ue),easeInOutSine:t=>-.5*(Math.cos(xe*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>df(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>df(t)?t:AA(t,.075,.3),easeOutElastic:t=>df(t)?t:TA(t,.075,.3),easeInOutElastic(t){return df(t)?t:t<.5?.5*AA(t*2,.1125,.45):.5+.5*TA(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Lu.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Lu.easeInBounce(t*2)*.5:Lu.easeOutBounce(t*2-1)*.5+.5};function r6(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function $A(t){return r6(t)?t:new Pd(t)}function h1(t){return r6(t)?t:new Pd(t).saturate(.5).darken(.1).hexString()}const Ktt=["x","y","borderWidth","radius","tension"],Qtt=["color","borderColor","backgroundColor"];function Jtt(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:Qtt},numbers:{type:"number",properties:Ktt}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function tet(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const MA=new Map;function eet(t,e){e=e||{};const n=t+JSON.stringify(e);let r=MA.get(n);return r||(r=new Intl.NumberFormat(t,e),MA.set(n,r)),r}function L0(t,e,n){return eet(e,n).format(t)}const i6={values(t){return Jt(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let i,o=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=net(t,n)}const s=Eo(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),L0(t,r,l)},logarithmic(t,e,n){if(t===0)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(Eo(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?i6.numeric.call(this,t,e,n):""}};function net(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var D0={formatters:i6};function ret(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:D0.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const ia=Object.create(null),ix=Object.create(null);function Du(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];t=t[o]||(t[o]=Object.create(null))}return t}function f1(t,e,n){return typeof e=="string"?Od(Du(t,e),n):Od(Du(t,""),e)}class iet{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>h1(i.backgroundColor),this.hoverBorderColor=(r,i)=>h1(i.borderColor),this.hoverColor=(r,i)=>h1(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return f1(this,e,n)}get(e){return Du(this,e)}describe(e,n){return f1(ix,e,n)}override(e,n){return f1(ia,e,n)}route(e,n,r,i){const o=Du(this,e),s=Du(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[i];return gt(l)?Object.assign({},c,l):yt(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var ve=new iet({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Jtt,tet,ret]);function oet(t){return!t||Tt(t.size)||Tt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function qg(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function set(t,e,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const a=n.length;let l,c,u,d,h;for(l=0;l<a;l++)if(d=n[l],d!=null&&Jt(d)!==!0)s=qg(t,i,o,s,d);else if(Jt(d))for(c=0,u=d.length;c<u;c++)h=d[c],h!=null&&!Jt(h)&&(s=qg(t,i,o,s,h));t.restore();const f=o.length/2;if(f>n.length){for(l=0;l<f;l++)delete i[o[l]];o.splice(0,f)}return s}function ms(t,e,n){const r=t.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function PA(t,e){e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function OA(t,e,n,r){o6(t,e,n,r,null)}function o6(t,e,n,r,i){let o,s,a,l,c,u,d,h;const f=e.pointStyle,p=e.rotation,g=e.radius;let y=(p||0)*jtt;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(y),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),t.restore();return}if(!(isNaN(g)||g<=0)){switch(t.beginPath(),f){default:i?t.ellipse(n,r,i/2,g,0,0,ce):t.arc(n,r,g,0,ce),t.closePath();break;case"triangle":u=i?i/2:g,t.moveTo(n+Math.sin(y)*u,r-Math.cos(y)*g),y+=SA,t.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*g),y+=SA,t.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*g),t.closePath();break;case"rectRounded":c=g*.516,l=g-c,s=Math.cos(y+gs)*l,d=Math.cos(y+gs)*(i?i/2-c:l),a=Math.sin(y+gs)*l,h=Math.sin(y+gs)*(i?i/2-c:l),t.arc(n-d,r-a,c,y-xe,y-ue),t.arc(n+h,r-s,c,y-ue,y),t.arc(n+d,r+a,c,y,y+ue),t.arc(n-h,r+s,c,y+ue,y+xe),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=i?i/2:l,t.rect(n-u,r-l,2*u,2*l);break}y+=gs;case"rectRot":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,r-a),t.lineTo(n+h,r-s),t.lineTo(n+d,r+a),t.lineTo(n-h,r+s),t.closePath();break;case"crossRot":y+=gs;case"cross":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+h,r-s),t.lineTo(n-h,r+s);break;case"star":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+h,r-s),t.lineTo(n-h,r+s),y+=gs,d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+h,r-s),t.lineTo(n-h,r+s);break;case"line":s=i?i/2:Math.cos(y)*g,a=Math.sin(y)*g,t.moveTo(n-s,r-a),t.lineTo(n+s,r+a);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(y)*(i?i/2:g),r+Math.sin(y)*g);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function s6(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function d2(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function h2(t){t.restore()}function oa(t,e,n,r,i,o={}){const s=Jt(e)?e:[e],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(t.save(),t.font=i.string,aet(t,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&uet(t,o.backdrop),a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),Tt(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,n,r,o.maxWidth)),t.fillText(c,n,r,o.maxWidth),cet(t,n,r,c,o),r+=i.lineHeight;t.restore()}function aet(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Tt(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function cet(t,e,n,r,i){if(i.strikethrough||i.underline){const o=t.measureText(r),s=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(s,u),t.lineTo(a,u),t.stroke()}}function uet(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Rd(t,e){const{x:n,y:r,w:i,h:o,radius:s}=e;t.arc(n+s.topLeft,r+s.topLeft,s.topLeft,-ue,xe,!0),t.lineTo(n,r+o-s.bottomLeft),t.arc(n+s.bottomLeft,r+o-s.bottomLeft,s.bottomLeft,xe,ue,!0),t.lineTo(n+i-s.bottomRight,r+o),t.arc(n+i-s.bottomRight,r+o-s.bottomRight,s.bottomRight,ue,0,!0),t.lineTo(n+i,r+s.topRight),t.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-ue,!0),t.lineTo(n+s.topLeft,r)}const det=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,het=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function fet(t,e){const n=(""+t).match(det);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const pet=t=>+t||0;function f2(t,e){const n={},r=gt(e),i=r?Object.keys(e):e,o=gt(t)?r?s=>yt(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of i)n[s]=pet(o(s));return n}function a6(t){return f2(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Hs(t){return f2(t,["topLeft","topRight","bottomLeft","bottomRight"])}function sn(t){const e=a6(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Te(t,e){t=t||{},e=e||ve.font;let n=yt(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=yt(t.style,e.style);r&&!(""+r).match(het)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:yt(t.family,e.family),lineHeight:fet(yt(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:yt(t.weight,e.weight),string:""};return i.string=oet(i),i}function hf(t,e,n,r){let i=!0,o,s,a;for(o=0,s=t.length;o<s;++o)if(a=t[o],a!==void 0&&(e!==void 0&&typeof a=="function"&&(a=a(e),i=!1),n!==void 0&&Jt(a)&&(a=a[n%a.length],i=!1),a!==void 0))return r&&!i&&(r.cacheable=!1),a}function get(t,e,n){const{min:r,max:i}=t,o=ZD(e,(i-r)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function ha(t,e){return Object.assign(Object.create(t),e)}function p2(t,e=[""],n=t,r,i=()=>t[0]){yr(r)||(r=d6("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>p2([s,...t],e,n,r)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete s._keys,delete t[0][a],!0},get(s,a){return c6(s,a,()=>Eet(a,e,t,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,a){return LA(s).includes(a)},ownKeys(s){return LA(s)},set(s,a,l){const c=s._storage||(s._storage=i());return s[a]=c[a]=l,delete s._keys,!0}})}function Ul(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:l6(t,r),setContext:o=>Ul(t,o,n,r),override:o=>Ul(t.override(o),e,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete t[s],!0},get(o,s,a){return c6(o,s,()=>vet(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(o,s,a){return t[s]=a,delete o[s],!0}})}function l6(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Ko(n)?n:()=>n,isIndexable:Ko(r)?r:()=>r}}const met=(t,e)=>t?t+a2(e):e,g2=(t,e)=>gt(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function c6(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function vet(t,e,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=t;let a=r[e];return Ko(a)&&s.isScriptable(e)&&(a=yet(e,a,t,n)),Jt(a)&&a.length&&(a=_et(e,a,t,s.isIndexable)),g2(e,a)&&(a=Ul(a,i,o&&o[e],s)),a}function yet(t,e,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),e=e(o,s||r),a.delete(t),g2(t,e)&&(e=m2(i._scopes,i,t,e)),e}function _et(t,e,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(yr(o.index)&&r(t))e=e[o.index%e.length];else if(gt(e[0])){const l=e,c=i._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=m2(c,i,t,u);e.push(Ul(d,o,s&&s[t],a))}}return e}function u6(t,e,n){return Ko(t)?t(e,n):t}const xet=(t,e)=>t===!0?e:typeof t=="string"?ra(e,t):void 0;function bet(t,e,n,r,i){for(const o of e){const s=xet(n,o);if(s){t.add(s);const a=u6(s._fallback,n,i);if(yr(a)&&a!==n&&a!==r)return a}else if(s===!1&&yr(r)&&n!==r)return null}return!1}function m2(t,e,n,r){const i=e._rootScopes,o=u6(e._fallback,n,r),s=[...t,...i],a=new Set;a.add(r);let l=RA(a,s,n,o||n,r);return l===null||yr(o)&&o!==n&&(l=RA(a,s,o,l,r),l===null)?!1:p2(Array.from(a),[""],i,o,()=>wet(e,n,r))}function RA(t,e,n,r,i){for(;n;)n=bet(t,e,n,r,i);return n}function wet(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return Jt(i)&&gt(n)?n:i||{}}function Eet(t,e,n,r){let i;for(const o of e)if(i=d6(met(o,t),n),yr(i))return g2(t,i)?m2(n,r,t,i):i}function d6(t,e){for(const n of e){if(!n)continue;const r=n[t];if(yr(r))return r}}function LA(t){let e=t._keys;return e||(e=t._keys=Cet(t._scopes)),e}function Cet(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}function h6(){return typeof window<"u"&&typeof document<"u"}function v2(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Zg(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const I0=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function ket(t,e){return I0(t).getPropertyValue(e)}const Aet=["top","right","bottom","left"];function Us(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=Aet[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Tet=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function $et(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(Tet(i,o,t.target))a=i,l=o;else{const c=e.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function Cs(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=I0(n),o=i.boxSizing==="border-box",s=Us(i,"padding"),a=Us(i,"border","width"),{x:l,y:c,box:u}=$et(t,n),d=s.left+(u&&a.left),h=s.top+(u&&a.top);let{width:f,height:p}=e;return o&&(f-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((c-h)/p*n.height/r)}}function Met(t,e,n){let r,i;if(e===void 0||n===void 0){const o=v2(t);if(!o)e=t.clientWidth,n=t.clientHeight;else{const s=o.getBoundingClientRect(),a=I0(o),l=Us(a,"border","width"),c=Us(a,"padding");e=s.width-c.width-l.width,n=s.height-c.height-l.height,r=Zg(a.maxWidth,o,"clientWidth"),i=Zg(a.maxHeight,o,"clientHeight")}}return{width:e,height:n,maxWidth:r||Wg,maxHeight:i||Wg}}const ff=t=>Math.round(t*10)/10;function Pet(t,e,n,r){const i=I0(t),o=Us(i,"margin"),s=Zg(i.maxWidth,t,"clientWidth")||Wg,a=Zg(i.maxHeight,t,"clientHeight")||Wg,l=Met(t,e,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const d=Us(i,"border","width"),h=Us(i,"padding");c-=h.width+d.width,u-=h.height+d.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=ff(Math.min(c,s,l.maxWidth)),u=ff(Math.min(u,a,l.maxHeight)),c&&!u&&(u=ff(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=ff(Math.floor(u*r))),{width:c,height:u}}function DA(t,e,n){const r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(t.currentDevicePixelRatio=r,s.height=i,s.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Oet=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function IA(t,e){const n=ket(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const Ret=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},Let=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function yl(t,e,n){return t?Ret(e,n):Let()}function f6(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function p6(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*!
429
- * Chart.js v4.2.0
430
- * https://www.chartjs.org
431
- * (c) 2023 Chart.js Contributors
432
- * Released under the MIT License
433
- */class Det{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,i){const o=n.listeners[i],s=n.duration;o.forEach(a=>a({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=e6.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,e,"progress")),o.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),n+=o.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var pi=new Det;const NA="transparent",Iet={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=$A(t||NA),i=r.valid&&$A(e||NA);return i&&i.valid?i.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class Net{constructor(e,n,r,i){const o=n[r];i=hf([e.to,i,o,e.from]);const s=hf([e.from,o,i]);this._active=!0,this._fn=e.fn||Iet[e.type||typeof s],this._easing=Lu[e.easing]||Lu.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=hf([e.to,n,i,e.from]),this._from=hf([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class g6{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!gt(e))return;const n=Object.keys(ve.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const o=e[i];if(!gt(o))return;const s={};for(const a of n)s[a]=o[a];(Jt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(e,n){const r=n.options,i=zet(e,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&Fet(e.options.$animations,r).then(()=>{e.options=r},()=>{}),o}_createAnimations(e,n){const r=this._properties,i=[],o=e.$animations||(e.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(e,n));continue}const u=n[c];let d=o[c];const h=r.get(c);if(d)if(h&&d.active()){d.update(h,u,a);continue}else d.cancel();if(!h||!h.duration){e[c]=u;continue}o[c]=d=new Net(h,e,c,u),i.push(d)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return pi.add(this._chart,r),!0}}function Fet(t,e){const n=[],r=Object.keys(e);for(let i=0;i<r.length;i++){const o=t[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function zet(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function FA(t,e){const n=t&&t.options||{},r=n.reverse,i=n.min===void 0?e:0,o=n.max===void 0?e:0;return{start:r?o:i,end:r?i:o}}function Bet(t,e,n){if(n===!1)return!1;const r=FA(t,n),i=FA(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function jet(t){let e,n,r,i;return gt(t)?(e=t.top,n=t.right,r=t.bottom,i=t.left):e=n=r=i=t,{top:e,right:n,bottom:r,left:i,disabled:t===!1}}function m6(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function zA(t,e,n,r={}){const i=t.keys,o=r.mode==="single";let s,a,l,c;if(e!==null){for(s=0,a=i.length;s<a;++s){if(l=+i[s],l===n){if(r.all)continue;break}c=t.values[l],Ie(c)&&(o||e===0||Vo(e)===Vo(c))&&(e+=c)}return e}}function Vet(t){const e=Object.keys(t),n=new Array(e.length);let r,i,o;for(r=0,i=e.length;r<i;++r)o=e[r],n[r]={x:o,y:t[o]};return n}function BA(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function Het(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function Uet(t){const{min:e,max:n,minDefined:r,maxDefined:i}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function Wet(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function jA(t,e,n,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const o=t[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function VA(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,c=s.axis,u=Het(o,s,r),d=e.length;let h;for(let f=0;f<d;++f){const p=e[f],{[l]:g,[c]:y}=p,v=p._stacks||(p._stacks={});h=v[c]=Wet(i,u,g),h[a]=y,h._top=jA(h,s,!0,r.type),h._bottom=jA(h,s,!1,r.type);const _=h._visualValues||(h._visualValues={});_[a]=y}}function p1(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function Yet(t,e){return ha(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Get(t,e,n){return ha(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function Rc(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const i of e){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const g1=t=>t==="reset"||t==="none",HA=(t,e)=>e?t:Object.assign({},t),qet=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:m6(n,!0),values:null};class _l{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=BA(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Rc(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,p)=>d==="x"?h:d==="r"?p:f,o=n.xAxisID=yt(r.xAxisID,p1(e,"x")),s=n.yAxisID=yt(r.yAxisID,p1(e,"y")),a=n.rAxisID=yt(r.rAxisID,p1(e,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,s,a),u=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&kA(this._data,this),e._stacked&&Rc(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(gt(n))this._data=Vet(n);else if(r!==n){if(r){kA(r,this);const i=this._cachedMeta;Rc(i),i._parsed=[]}n&&Object.isExtensible(n)&&qtt(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=BA(n.vScale,n),n.stack!==r.stack&&(i=!0,Rc(n),n.stack=r.stack),this._resyncElements(e),(i||o!==n._stacked)&&VA(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis;let l=e===0&&n===i.length?!0:r._sorted,c=e>0&&r._parsed[e-1],u,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{Jt(i[e])?h=this.parseArrayData(r,i,e,n):gt(i[e])?h=this.parseObjectData(r,i,e,n):h=this.parsePrimitiveData(r,i,e,n);const f=()=>d[a]===null||c&&d[a]<c[a];for(u=0;u<n;++u)r._parsed[u+e]=d=h[u],l&&(f()&&(l=!1),c=d);r._sorted=l}s&&VA(this,h)}parsePrimitiveData(e,n,r,i){const{iScale:o,vScale:s}=e,a=o.axis,l=s.axis,c=o.getLabels(),u=o===s,d=new Array(i);let h,f,p;for(h=0,f=i;h<f;++h)p=h+r,d[h]={[a]:u||o.parse(c[p],p),[l]:s.parse(n[p],p)};return d}parseArrayData(e,n,r,i){const{xScale:o,yScale:s}=e,a=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+r,d=n[u],a[l]={x:o.parse(d[0],u),y:s.parse(d[1],u)};return a}parseObjectData(e,n,r,i){const{xScale:o,yScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,h,f;for(u=0,d=i;u<d;++u)h=u+r,f=n[h],c[u]={x:o.parse(ra(f,a),h),y:s.parse(ra(f,l),h)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const i=this.chart,o=this._cachedMeta,s=n[e.axis],a={keys:m6(i,!0),values:n._stacks[e.axis]._visualValues};return zA(a,s,o.index,{mode:r})}updateRangeFromParsed(e,n,r,i){const o=r[n.axis];let s=o===null?NaN:o;const a=i&&r._stacks[n.axis];i&&a&&(i.values=a,s=zA(i,o,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&e===r.iScale,s=i.length,a=this._getOtherScale(e),l=qet(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=Uet(a);let h,f;function p(){f=i[h];const g=f[a.axis];return!Ie(f[e.axis])||u>g||d<g}for(h=0;h<s&&!(!p()&&(this.updateRangeFromParsed(c,e,f,l),o));++h);if(o){for(h=s-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(c,e,f,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i<o;++i)s=n[i][e.axis],Ie(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(e);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=jet(yt(this.options.clip,Bet(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(e,o,a,l),u=a;u<a+l;++u){const d=i[u];d.hidden||(d.active&&c?s.push(d):d.draw(e,o))}for(u=0;u<s.length;++u)s[u].draw(e,o)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const i=this.getDataset();let o;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];o=s.$context||(s.$context=Get(this.getContext(),e,s)),o.parsed=this.getParsed(e),o.raw=i.data[e],o.index=o.dataIndex=e}else o=this.$context||(this.$context=Yet(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const i=n==="active",o=this._cachedDataOpts,s=e+"-"+n,a=o[s],l=this.enableOptionSharing&&yr(r);if(a)return HA(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,e),d=i?[`${e}Hover`,"hover",e,""]:[e,""],h=c.getOptionScopes(this.getDataset(),u),f=Object.keys(ve.elements[e]),p=()=>this.getContext(r,i,n),g=c.resolveNamedOptions(h,f,p,d);return g.$shared&&(g.$shared=l,o[s]=Object.freeze(HA(g,l))),g}_resolveAnimations(e,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(e,r,n))}const c=new g6(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||g1(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(e,n,r,i){g1(i)?Object.assign(e,r):this._resolveAnimations(n,i).update(e,r)}updateSharedOptions(e,n,r){e&&!g1(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,i){e.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(e,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,e):o<i&&this._removeElements(o,i-o)}_insertElements(e,n,r=!0){const i=this._cachedMeta,o=i.data,s=e+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(o),a=e;a<s;++a)o[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(e,n),r&&this.updateElements(o,e,n,"reset")}updateElements(e,n,r,i){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(e,n);r._stacked&&Rc(r,i)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,i]=e;this[n](r,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}lt(_l,"defaults",{}),lt(_l,"datasetElementType",null),lt(_l,"dataElementType",null);function Zet(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(t));t._cache.$bar=t6(r.sort((i,o)=>i-o))}return t._cache.$bar}function Xet(t){const e=t.iScale,n=Zet(e,t.type);let r=e._length,i,o,s,a;const l=()=>{s===32767||s===-32768||(yr(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i<o;++i)s=e.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=e.ticks.length;i<o;++i)s=e.getPixelForTick(i),l();return r}function Ket(t,e,n,r){const i=n.barThickness;let o,s;return Tt(i)?(o=e.min*n.categoryPercentage,s=n.barPercentage):(o=i*r,s=1),{chunk:o/r,ratio:s,start:e.pixels[t]-o/2}}function Qet(t,e,n,r){const i=e.pixels,o=i[t];let s=t>0?i[t-1]:null,a=t<i.length-1?i[t+1]:null;const l=n.categoryPercentage;s===null&&(s=o-(a===null?e.end-e.start:a-o)),a===null&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:c}}function Jet(t,e,n,r){const i=n.parse(t[0],r),o=n.parse(t[1],r),s=Math.min(i,o),a=Math.max(i,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:i,end:o,min:s,max:a}}function v6(t,e,n,r){return Jt(t)?Jet(t,e,n,r):e[n.axis]=n.parse(t,r),e}function UA(t,e,n,r){const i=t.iScale,o=t.vScale,s=i.getLabels(),a=i===o,l=[];let c,u,d,h;for(c=n,u=n+r;c<u;++c)h=e[c],d={},d[i.axis]=a||i.parse(s[c],c),l.push(v6(h,d,o,c));return l}function m1(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function tnt(t,e,n){return t!==0?Vo(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function ent(t){let e,n,r,i,o;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:e,top:i,bottom:o}}function nnt(t,e,n,r){let i=e.borderSkipped;const o={};if(!i){t.borderSkipped=o;return}if(i===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:a,reverse:l,top:c,bottom:u}=ent(t);i==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=u:(o[WA(u,s,a,l)]=!0,i=c)),o[WA(i,s,a,l)]=!0,t.borderSkipped=o}function WA(t,e,n,r){return r?(t=rnt(t,e,n),t=YA(t,n,e)):t=YA(t,e,n),t}function rnt(t,e,n){return t===e?n:t===n?e:t}function YA(t,e,n){return t==="start"?e:t==="end"?n:t}function int(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class Tp extends _l{parsePrimitiveData(e,n,r,i){return UA(e,n,r,i)}parseArrayData(e,n,r,i){return UA(e,n,r,i)}parseObjectData(e,n,r,i){const{iScale:o,vScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,u=s.axis==="x"?a:l,d=[];let h,f,p,g;for(h=r,f=r+i;h<f;++h)g=n[h],p={},p[o.axis]=o.parse(ra(g,c),h),d.push(v6(ra(g,u),p,s,h));return d}updateRangeFromParsed(e,n,r,i){super.updateRangeFromParsed(e,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(e),s=o._custom,a=m1(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,r,i){const o=i==="reset",{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i);for(let f=n;f<n+r;f++){const p=this.getParsed(f),g=o||Tt(p[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),y=this._calculateBarIndexPixels(f,u),v=(p._stacks||{})[a.axis],_={horizontal:c,base:g.base,enableBorderRadius:!v||m1(p._custom)||s===v._top||s===v._bottom,x:c?g.head:y.center,y:c?y.center:g.head,height:c?y.size:Math.abs(g.size),width:c?Math.abs(g.size):y.size};h&&(_.options=d||this.resolveDataElementOptions(f,e[f].active?"active":i));const x=_.options||e[f].options;nnt(_,x,v,s),int(_,x,u.ratio),this.updateElement(e[f],f,_,i)}}_getStacks(e,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,s=[],a=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(Tt(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||s.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,r){const i=this._getStacks(e,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const e=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o<s;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const a=e.barThickness;return{min:a||Xet(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(e),c=l._custom,u=m1(c);let d=l[n.axis],h=0,f=r?this.applyStack(n,l,r):d,p,g;f!==d&&(h=f-d,f=d),u&&(d=c.barStart,f=c.barEnd-c.barStart,d!==0&&Vo(d)!==Vo(c.barEnd)&&(h=0),h+=d);const y=!Tt(o)&&!u?o:h;let v=n.getPixelForValue(y);if(this.chart.getDataVisibility(e)?p=n.getPixelForValue(h+f):p=v,g=p-v,Math.abs(g)<s){g=tnt(g,n,a)*s,d===a&&(v-=g/2);const _=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),b=Math.min(_,x),w=Math.max(_,x);v=Math.max(Math.min(v,w),b),p=v+g,r&&!u&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(p)-n.getValueForPixel(v))}if(v===n.getPixelForValue(a)){const _=Vo(g)*n.getLineWidthForValue(a)/2;v+=_,g-=_}return{size:g,base:v,head:p,center:p+g/2}}_calculateBarIndexPixels(e,n){const r=n.scale,i=this.options,o=i.skipNull,s=yt(i.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(e):n.stackCount,u=i.barThickness==="flex"?Qet(e,n,i,c):Ket(e,n,i,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);a=u.start+u.chunk*d+u.chunk/2,l=Math.min(s,u.chunk*u.ratio)}else a=r.getPixelForValue(this.getParsed(e)[r.axis],e),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const e=this._cachedMeta,n=e.vScale,r=e.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&r[o].draw(this._ctx)}}lt(Tp,"id","bar"),lt(Tp,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),lt(Tp,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function ont(t,e,n){let r=1,i=1,o=0,s=0;if(e<ce){const a=t,l=a+e,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),h=Math.sin(l),f=(x,b,w)=>Gg(x,a,l,!0)?1:Math.max(b,b*n,w,w*n),p=(x,b,w)=>Gg(x,a,l,!0)?-1:Math.min(b,b*n,w,w*n),g=f(0,c,d),y=f(ue,u,h),v=p(xe,c,d),_=p(xe+ue,u,h);r=(g-v)/2,i=(y-_)/2,o=-(g+v)/2,s=-(y+_)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class Qc extends _l{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(gt(r[e])){const{key:l="value"}=this._parsing;o=c=>+ra(r[c],l)}let s,a;for(s=e,a=e+n;s<a;++s)i._parsed[s]=o(s)}}_getRotation(){return Kr(this.options.rotation-90)}_getCircumference(){return Kr(this.options.circumference)}_getRotationExtents(){let e=ce,n=-ce;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),s=i._getCircumference();e=Math.min(e,o),n=Math.max(n,o+s)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(Dtt(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:p,offsetY:g}=ont(d,u,l),y=(r.width-s)/h,v=(r.height-s)/f,_=Math.max(Math.min(y,v)/2,0),x=ZD(this.options.radius,_),b=Math.max(x*l,0),w=(x-b)/this._getVisibleDatasetWeightTotal();this.offsetX=p*x,this.offsetY=g*x,i.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(o,0,o.length,e)}_circumference(e,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||i._parsed[e]===null||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*o/ce)}updateElements(e,n,r,i){const o=i==="reset",s=this.chart,a=s.chartArea,l=s.options.animation,c=(a.left+a.right)/2,u=(a.top+a.bottom)/2,d=o&&l.animateScale,h=d?0:this.innerRadius,f=d?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(n,i);let y=this._getRotation(),v;for(v=0;v<n;++v)y+=this._circumference(v,o);for(v=n;v<n+r;++v){const _=this._circumference(v,o),x=e[v],b={x:c+this.offsetX,y:u+this.offsetY,startAngle:y,endAngle:y+_,circumference:_,outerRadius:f,innerRadius:h};g&&(b.options=p||this.resolveDataElementOptions(v,x.active?"active":i)),y+=_,this.updateElement(x,v,b,i)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,i;for(i=0;i<n.length;i++){const o=e._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?ce*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=L0(n._parsed[e],r.options.locale);return{label:i[e]||"",value:o}}getMaxBorderWidth(e){let n=0;const r=this.chart;let i,o,s,a,l;if(!e){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),e=s.data,a=s.controller;break}}if(!e)return 0;for(i=0,o=e.length;i<o;++i)l=a.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,i=e.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(yt(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}lt(Qc,"id","doughnut"),lt(Qc,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),lt(Qc,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"}),lt(Qc,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:r}}=t.legend.options;return e.labels.map((i,o)=>{const s=t.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:r,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}});function vs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class y2{static override(e){Object.assign(y2.prototype,e)}constructor(e){this.options=e||{}}init(){}formats(){return vs()}parse(){return vs()}format(){return vs()}add(){return vs()}diff(){return vs()}startOf(){return vs()}endOf(){return vs()}}var snt={_date:y2};function ant(t,e,n,r){const{controller:i,data:o,_sorted:s}=t,a=i._cachedMeta.iScale;if(a&&e===a.axis&&e!=="r"&&s&&o.length){const l=a._reversePixels?Ytt:rx;if(r){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(e);if(u){const d=l(o,e,n-u),h=l(o,e,n+u);return{lo:d.lo,hi:h.hi}}}}else return l(o,e,n)}return{lo:0,hi:o.length-1}}function ch(t,e,n,r,i){const o=t.getSortedVisibleDatasetMetas(),s=n[e];for(let a=0,l=o.length;a<l;++a){const{index:c,data:u}=o[a],{lo:d,hi:h}=ant(o[a],e,s,i);for(let f=d;f<=h;++f){const p=u[f];p.skip||r(p,c,f)}}}function lnt(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,i){const o=e?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(s,2))}}function v1(t,e,n,r,i){const o=[];return!i&&!t.isPointInArea(e)||ch(t,n,e,function(s,a,l){!i&&!s6(s,t.chartArea,0)||s.inRange(e.x,e.y,r)&&o.push({element:s,datasetIndex:a,index:l})},!0),o}function cnt(t,e,n,r){let i=[];function o(s,a,l){const{startAngle:c,endAngle:u}=s.getProps(["startAngle","endAngle"],r),{angle:d}=QD(s,{x:e.x,y:e.y});Gg(d,c,u)&&i.push({element:s,datasetIndex:a,index:l})}return ch(t,n,e,o),i}function unt(t,e,n,r,i,o){let s=[];const a=lnt(n);let l=Number.POSITIVE_INFINITY;function c(u,d,h){const f=u.inRange(e.x,e.y,i);if(r&&!f)return;const p=u.getCenterPoint(i);if(!(!!o||t.isPointInArea(p))&&!f)return;const g=a(e,p);g<l?(s=[{element:u,datasetIndex:d,index:h}],l=g):g===l&&s.push({element:u,datasetIndex:d,index:h})}return ch(t,n,e,c),s}function y1(t,e,n,r,i,o){return!o&&!t.isPointInArea(e)?[]:n==="r"&&!r?cnt(t,e,n,i):unt(t,e,n,r,i,o)}function GA(t,e,n,r,i){const o=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return ch(t,n,e,(l,c,u)=>{l[s](e[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,i))}),r&&!a?[]:o}var dnt={evaluateInteractionItems:ch,modes:{index(t,e,n,r){const i=Cs(e,t),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?v1(t,i,o,r,s):y1(t,i,o,!1,r,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,r){const i=Cs(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?v1(t,i,o,r,s):y1(t,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(t,e,n,r){const i=Cs(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;return v1(t,i,o,r,s)},nearest(t,e,n,r){const i=Cs(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;return y1(t,i,o,n.intersect,r,s)},x(t,e,n,r){const i=Cs(e,t);return GA(t,i,"x",n.intersect,r)},y(t,e,n,r){const i=Cs(e,t);return GA(t,i,"y",n.intersect,r)}}};const y6=["left","top","right","bottom"];function Lc(t,e){return t.filter(n=>n.pos===e)}function qA(t,e){return t.filter(n=>y6.indexOf(n.pos)===-1&&n.box.axis===e)}function Dc(t,e){return t.sort((n,r)=>{const i=e?r:n,o=e?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function hnt(t){const e=[];let n,r,i,o,s,a;for(n=0,r=(t||[]).length;n<r;++n)i=t[n],{position:o,options:{stack:s,stackWeight:a=1}}=i,e.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&o+s,stackWeight:a});return e}function fnt(t){const e={};for(const n of t){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!y6.includes(i))continue;const s=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return e}function pnt(t,e){const n=fnt(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let o,s,a;for(o=0,s=t.length;o<s;++o){a=t[o];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*r:l&&e.availableWidth,a.height=i):(a.width=r,a.height=u?u*i:l&&e.availableHeight)}return n}function gnt(t){const e=hnt(t),n=Dc(e.filter(c=>c.box.fullSize),!0),r=Dc(Lc(e,"left"),!0),i=Dc(Lc(e,"right")),o=Dc(Lc(e,"top"),!0),s=Dc(Lc(e,"bottom")),a=qA(e,"x"),l=qA(e,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:Lc(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function ZA(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function _6(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function mnt(t,e,n,r){const{pos:i,box:o}=n,s=t.maxPadding;if(!gt(i)){n.size&&(t[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,t[i]+=n.size}o.getPadding&&_6(s,o.getPadding());const a=Math.max(0,e.outerWidth-ZA(s,t,"left","right")),l=Math.max(0,e.outerHeight-ZA(s,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function vnt(t){const e=t.maxPadding;function n(r){const i=Math.max(e[r]-t[r],0);return t[r]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function ynt(t,e){const n=e.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(e[s],n[s])}),o}return r(t?["left","right"]:["top","bottom"])}function Jc(t,e,n,r){const i=[];let o,s,a,l,c,u;for(o=0,s=t.length,c=0;o<s;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,ynt(a.horizontal,e));const{same:d,other:h}=mnt(e,n,a,r);c|=d&&i.length,u=u||h,l.fullSize||i.push(a)}return c&&Jc(i,e,n,r)||u}function pf(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function XA(t,e,n,r){const i=n.padding;let{x:o,y:s}=e;for(const a of t){const l=a.box,c=r[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=e.w*u,h=c.size||l.height;yr(c.start)&&(s=c.start),l.fullSize?pf(l,i.left,s,n.outerWidth-i.right-i.left,h):pf(l,e.left+c.placed,s,d,h),c.start=s,c.placed+=d,s=l.bottom}else{const d=e.h*u,h=c.size||l.width;yr(c.start)&&(o=c.start),l.fullSize?pf(l,o,i.top,h,n.outerHeight-i.bottom-i.top):pf(l,o,e.top+c.placed,h,d),c.start=o,c.placed+=d,o=l.right}}e.x=o,e.y=s}var ur={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const i=sn(t.options.layout.padding),o=Math.max(e-i.width,0),s=Math.max(n-i.height,0),a=gnt(t.boxes),l=a.vertical,c=a.horizontal;Ct(t.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,y)=>y.box.options&&y.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},i);_6(h,sn(r));const f=Object.assign({maxPadding:h,w:o,h:s,x:i.left,y:i.top},i),p=pnt(l.concat(c),d);Jc(a.fullSize,f,d,p),Jc(l,f,d,p),Jc(c,f,d,p)&&Jc(l,f,d,p),vnt(f),XA(a.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,XA(a.rightAndBottom,f,d,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Ct(a.chartArea,g=>{const y=g.box;Object.assign(y,t.chartArea),y.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class x6{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,i){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(e){return!0}updateConfig(e){}}class _nt extends x6{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const $p="$chartjs",xnt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},KA=t=>t===null||t==="";function bnt(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[$p]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",KA(i)){const o=IA(t,"width");o!==void 0&&(t.width=o)}if(KA(r))if(t.style.height==="")t.height=t.width/(e||2);else{const o=IA(t,"height");o!==void 0&&(t.height=o)}return t}const b6=Oet?{passive:!0}:!1;function wnt(t,e,n){t.addEventListener(e,n,b6)}function Snt(t,e,n){t.canvas.removeEventListener(e,n,b6)}function Ent(t,e){const n=xnt[t.type]||t.type,{x:r,y:i}=Cs(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Xg(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Cnt(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Xg(a.addedNodes,r),s=s&&!Xg(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function knt(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Xg(a.removedNodes,r),s=s&&!Xg(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ld=new Map;let QA=0;function w6(){const t=window.devicePixelRatio;t!==QA&&(QA=t,Ld.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Ant(t,e){Ld.size||window.addEventListener("resize",w6),Ld.set(t,e)}function Tnt(t){Ld.delete(t),Ld.size||window.removeEventListener("resize",w6)}function $nt(t,e,n){const r=t.canvas,i=r&&v2(r);if(!i)return;const o=n6((a,l)=>{const c=i.clientWidth;n(a,l),c<i.clientWidth&&n()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return s.observe(i),Ant(t,o),s}function _1(t,e,n){n&&n.disconnect(),e==="resize"&&Tnt(t)}function Mnt(t,e,n){const r=t.canvas,i=n6(o=>{t.ctx!==null&&n(Ent(o,t))},t);return wnt(r,e,i),i}class Pnt extends x6{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(bnt(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[$p])return!1;const r=n[$p].initial;["height","width"].forEach(o=>{const s=r[o];Tt(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[$p],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),o={attach:Cnt,detach:knt,resize:$nt}[n]||Mnt;i[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),i=r[n];!i||(({attach:_1,detach:_1,resize:_1}[n]||Snt)(e,n,i),r[n]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,i){return Pet(e,n,r,i)}isAttached(e){const n=v2(e);return!!(n&&n.isConnected)}}function Ont(t){return!h6()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?_nt:Pnt}class Bi{constructor(){lt(this,"active",!1)}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Yg(this.x)&&Yg(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const i={};return e.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}}lt(Bi,"defaults",{}),lt(Bi,"defaultRoutes");function Rnt(t,e){const n=t.options.ticks,r=Lnt(t),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?Int(e):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>i)return Nnt(e,c,o,s/i),c;const u=Dnt(o,e,i);if(s>0){let d,h;const f=s>1?Math.round((l-a)/(s-1)):null;for(gf(e,c,u,Tt(f)?0:a-f,a),d=0,h=s-1;d<h;d++)gf(e,c,u,o[d],o[d+1]);return gf(e,c,u,l,Tt(f)?e.length:l+f),c}return gf(e,c,u),c}function Lnt(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(r,i))}function Dnt(t,e,n){const r=Fnt(t),i=e.length/n;if(!r)return Math.max(i,1);const o=Vtt(r);for(let s=0,a=o.length-1;s<a;s++){const l=o[s];if(l>i)return l}return Math.max(i,1)}function Int(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function Nnt(t,e,n,r){let i=0,o=n[0],s;for(r=Math.ceil(r),s=0;s<t.length;s++)s===o&&(e.push(t[s]),i++,o=n[i*r])}function gf(t,e,n,r,i){const o=yt(r,0),s=Math.min(yt(i,t.length),t.length);let a=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),u=o;u<0;)a++,u=Math.round(o+a*n);for(c=Math.max(o,0);c<s;c++)c===u&&(e.push(t[c]),a++,u=Math.round(o+a*n))}function Fnt(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const znt=t=>t==="left"?"right":t==="right"?"left":t,JA=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n;function t5(t,e){const n=[],r=t.length/e,i=t.length;let o=0;for(;o<i;o+=r)n.push(t[Math.floor(o)]);return n}function Bnt(t,e,n){const r=t.ticks.length,i=Math.min(e,r-1),o=t._startPixel,s=t._endPixel,a=1e-6;let l=t.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,s-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(i-1))/2,l+=i<e?c:-c,l<o-a||l>s+a)))return l}function jnt(t,e){Ct(t,n=>{const r=n.gc,i=r.length/2;let o;if(i>e){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function Ic(t){return t.drawTicks?t.tickLength:0}function e5(t,e){if(!t.display)return 0;const n=Te(t.font,e),r=sn(t.padding);return(Jt(t.text)?t.text.length:1)*n.lineHeight+r.height}function Vnt(t,e){return ha(t,{scale:e,type:"scale"})}function Hnt(t,e,n){return ha(t,{tick:n,index:e,type:"tick"})}function Unt(t,e,n){let r=u2(t);return(n&&e!=="right"||!n&&e==="right")&&(r=znt(r)),r}function Wnt(t,e,n,r){const{top:i,left:o,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let d=0,h,f,p;const g=s-i,y=a-o;if(t.isHorizontal()){if(f=Qe(r,o,a),gt(n)){const v=Object.keys(n)[0],_=n[v];p=u[v].getPixelForValue(_)+g-e}else n==="center"?p=(c.bottom+c.top)/2+g-e:p=JA(t,n,e);h=a-o}else{if(gt(n)){const v=Object.keys(n)[0],_=n[v];f=u[v].getPixelForValue(_)-y+e}else n==="center"?f=(c.left+c.right)/2-y+e:f=JA(t,n,e);p=Qe(r,s,i),d=n==="left"?-ue:ue}return{titleX:f,titleY:p,maxWidth:h,rotation:d}}class fa extends Bi{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return e=Vn(e,Number.POSITIVE_INFINITY),n=Vn(n,Number.NEGATIVE_INFINITY),r=Vn(r,Number.POSITIVE_INFINITY),i=Vn(i,Number.NEGATIVE_INFINITY),{min:Vn(e,r),max:Vn(n,i),minDefined:Ie(e),maxDefined:Ie(n)}}getMinMax(e){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),s;if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,e),i||(n=Math.min(n,s.min)),o||(r=Math.max(r,s.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Vn(n,Vn(r,n)),max:Vn(r,Vn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){zt(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=get(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?t5(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=Rnt(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){zt(this.options.afterUpdate,[this])}beforeSetDimensions(){zt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){zt(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),zt(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){zt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r],o.label=zt(n.callback,[o.value,r,e],this)}afterTickToLabelConversion(){zt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){zt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=this.ticks.length,i=n.minRotation||0,o=n.maxRotation;let s=i,a,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,f=Tn(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/r:f/(r-1),d+6>a&&(a=f/(r-(e.offset?.5:1)),l=this.maxHeight-Ic(e.grid)-n.padding-e5(e.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),s=l2(Math.min(Math.asin(Tn((u.highest.height+6)/a,-1,1)),Math.asin(Tn(l/c,-1,1))-Math.asin(Tn(h/c,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){zt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){zt(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=e5(i,n.options.font);if(a?(e.width=this.maxWidth,e.height=Ic(o)+l):(e.height=this.maxHeight,e.width=Ic(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,p=Kr(this.labelRotation),g=Math.cos(p),y=Math.sin(p);if(a){const v=r.mirror?0:y*d.width+g*h.height;e.height=Math.min(this.maxHeight,e.height+v+f)}else{const v=r.mirror?0:g*d.width+y*h.height;e.width=Math.min(this.maxWidth,e.width+v+f)}this._calculatePadding(c,u,y,g)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?c?(h=i*e.width,f=r*n.height):(h=r*e.height,f=i*n.width):o==="start"?f=n.width:o==="end"?h=e.width:o!=="inner"&&(h=e.width/2,f=n.width/2),this.paddingLeft=Math.max((h-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-d+s)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;o==="start"?(u=0,d=e.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){zt(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)Tt(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=t5(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length)}return e}_computeLabelSizes(e,n){const{ctx:r,_longestTextCache:i}=this,o=[],s=[];let a=0,l=0,c,u,d,h,f,p,g,y,v,_,x;for(c=0;c<n;++c){if(h=e[c].label,f=this._resolveTickFontOptions(c),r.font=p=f.string,g=i[p]=i[p]||{data:{},gc:[]},y=f.lineHeight,v=_=0,!Tt(h)&&!Jt(h))v=qg(r,g.data,g.gc,v,h),_=y;else if(Jt(h))for(u=0,d=h.length;u<d;++u)x=h[u],!Tt(x)&&!Jt(x)&&(v=qg(r,g.data,g.gc,v,x),_+=y);o.push(v),s.push(_),a=Math.max(v,a),l=Math.max(_,l)}jnt(i,n);const b=o.indexOf(a),w=s.indexOf(l),S=E=>({width:o[E]||0,height:s[E]||0});return{first:S(0),last:S(n-1),widest:S(b),highest:S(w),widths:o,heights:s}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return Wtt(this._alignToPixels?ms(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=Hnt(this.getContext(),e,r))}return this.$context||(this.$context=Vnt(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Kr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),s=e.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:a}=i,l=o.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),d=Ic(o),h=[],f=a.setContext(this.getContext()),p=f.display?f.width:0,g=p/2,y=function(L){return ms(r,L,p)};let v,_,x,b,w,S,E,C,A,k,$,M;if(s==="top")v=y(this.bottom),S=this.bottom-d,C=v-g,k=y(e.top)+g,M=e.bottom;else if(s==="bottom")v=y(this.top),k=e.top,M=y(e.bottom)-g,S=v+g,C=this.top+d;else if(s==="left")v=y(this.right),w=this.right-d,E=v-g,A=y(e.left)+g,$=e.right;else if(s==="right")v=y(this.left),A=e.left,$=y(e.right)-g,w=v+g,E=this.left+d;else if(n==="x"){if(s==="center")v=y((e.top+e.bottom)/2+.5);else if(gt(s)){const L=Object.keys(s)[0],Y=s[L];v=y(this.chart.scales[L].getPixelForValue(Y))}k=e.top,M=e.bottom,S=v+g,C=S+d}else if(n==="y"){if(s==="center")v=y((e.left+e.right)/2);else if(gt(s)){const L=Object.keys(s)[0],Y=s[L];v=y(this.chart.scales[L].getPixelForValue(Y))}w=v-g,E=w-d,A=e.left,$=e.right}const I=yt(i.ticks.maxTicksLimit,u),F=Math.max(1,Math.ceil(u/I));for(_=0;_<u;_+=F){const L=this.getContext(_),Y=o.setContext(L),X=a.setContext(L),z=Y.lineWidth,W=Y.color,P=X.dash||[],G=X.dashOffset,U=Y.tickWidth,B=Y.tickColor,R=Y.tickBorderDash||[],j=Y.tickBorderDashOffset;x=Bnt(this,_,l),x!==void 0&&(b=ms(r,x,z),c?w=E=A=$=b:S=C=k=M=b,h.push({tx1:w,ty1:S,tx2:E,ty2:C,x1:A,y1:k,x2:$,y2:M,width:z,color:W,borderDash:P,borderDashOffset:G,tickWidth:U,tickColor:B,tickBorderDash:R,tickBorderDashOffset:j}))}return this._ticksLength=u,this._borderValue=v,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:i,ticks:o}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=o,h=Ic(r.grid),f=h+u,p=d?-u:f,g=-Kr(this.labelRotation),y=[];let v,_,x,b,w,S,E,C,A,k,$,M,I="middle";if(i==="top")S=this.bottom-p,E=this._getXAxisLabelAlignment();else if(i==="bottom")S=this.top+p,E=this._getXAxisLabelAlignment();else if(i==="left"){const L=this._getYAxisLabelAlignment(h);E=L.textAlign,w=L.x}else if(i==="right"){const L=this._getYAxisLabelAlignment(h);E=L.textAlign,w=L.x}else if(n==="x"){if(i==="center")S=(e.top+e.bottom)/2+f;else if(gt(i)){const L=Object.keys(i)[0],Y=i[L];S=this.chart.scales[L].getPixelForValue(Y)+f}E=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(e.left+e.right)/2-f;else if(gt(i)){const L=Object.keys(i)[0],Y=i[L];w=this.chart.scales[L].getPixelForValue(Y)}E=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?I="top":l==="end"&&(I="bottom"));const F=this._getLabelSizes();for(v=0,_=a.length;v<_;++v){x=a[v],b=x.label;const L=o.setContext(this.getContext(v));C=this.getPixelForTick(v)+o.labelOffset,A=this._resolveTickFontOptions(v),k=A.lineHeight,$=Jt(b)?b.length:1;const Y=$/2,X=L.color,z=L.textStrokeColor,W=L.textStrokeWidth;let P=E;s?(w=C,E==="inner"&&(v===_-1?P=this.options.reverse?"left":"right":v===0?P=this.options.reverse?"right":"left":P="center"),i==="top"?c==="near"||g!==0?M=-$*k+k/2:c==="center"?M=-F.highest.height/2-Y*k+k:M=-F.highest.height+k/2:c==="near"||g!==0?M=k/2:c==="center"?M=F.highest.height/2-Y*k:M=F.highest.height-$*k,d&&(M*=-1),g!==0&&!L.showLabelBackdrop&&(w+=k/2*Math.sin(g))):(S=C,M=(1-$)*k/2);let G;if(L.showLabelBackdrop){const U=sn(L.backdropPadding),B=F.heights[v],R=F.widths[v];let j=M-U.top,K=0-U.left;switch(I){case"middle":j-=B/2;break;case"bottom":j-=B;break}switch(E){case"center":K-=R/2;break;case"right":K-=R;break}G={left:K,top:j,width:R+U.width,height:B+U.height,color:L.backdropColor}}y.push({label:b,font:A,textOffset:M,options:{rotation:g,color:X,strokeColor:z,strokeWidth:W,textAlign:P,textBaseline:I,translation:[w,S],backdrop:G}})}return y}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Kr(this.labelRotation))return e==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,s=this._getLabelSizes(),a=e+o,l=s.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:i,width:o,height:s}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,i,o,s),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===e);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,s;const a=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o<s;++o){const l=i[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),s=r.display?o.width:0;if(!s)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,h;this.isHorizontal()?(c=ms(e,this.left,s)-s/2,u=ms(e,this.right,a)+a/2,d=h=l):(d=ms(e,this.top,s)-s/2,h=ms(e,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,h),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const n=this.ctx,r=this._computeLabelArea();r&&d2(n,r);const i=this.getLabelItems(e);for(const o of i){const s=o.options,a=o.font,l=o.label,c=o.textOffset;oa(n,l,0,c,a,s)}r&&h2(n)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=Te(r.font),s=sn(r.padding),a=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||gt(n)?(l+=s.bottom,Jt(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:c,titleY:u,maxWidth:d,rotation:h}=Wnt(this,l,n,a);oa(e,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:h,textAlign:Unt(a,n,i),textBaseline:"middle",translation:[c,u]})}draw(e){!this._isVisible()||(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=yt(e.grid&&e.grid.z,-1),i=yt(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==fa.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o<s;++o){const a=n[o];a[r]===this.id&&(!e||a.type===e)&&i.push(a)}return i}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Te(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class mf{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;qnt(n)&&(r=this.register(n));const i=this.items,o=e.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+e);return o in i||(i[o]=e,Ynt(e,s,r),this.override&&ve.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,i=this.scope;r in n&&delete n[r],i&&r in ve[i]&&(delete ve[i][r],this.override&&delete ia[r])}}function Ynt(t,e,n){const r=Od(Object.create(null),[n?ve.get(n):{},ve.get(e),t.defaults]);ve.set(e,r),t.defaultRoutes&&Gnt(e,t.defaultRoutes),t.descriptors&&ve.describe(e,t.descriptors)}function Gnt(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),i=r.pop(),o=[t].concat(r).join("."),s=e[n].split("."),a=s.pop(),l=s.join(".");ve.route(o,i,l,a)})}function qnt(t){return"id"in t&&"defaults"in t}class Znt{constructor(){this.controllers=new mf(_l,"datasets",!0),this.elements=new mf(Bi,"elements"),this.plugins=new mf(Object,"plugins"),this.scales=new mf(fa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(e,o,i):Ct(i,s=>{const a=r||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,n,r){const i=a2(e);zt(r["before"+i],[],r),n[e](r),zt(r["after"+i],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const i=n.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return i}}var Wr=new Znt;class Xnt{constructor(){this._init=[]}notify(e,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const o=i?this._descriptors(e).filter(i):this._descriptors(e),s=this._notify(o,e,n,r);return n==="afterDestroy"&&(this._notify(o,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,n,r,i){i=i||{};for(const o of e){const s=o.plugin,a=s[r],l=[n,i,o.options];if(zt(a,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){Tt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,i=yt(r.options&&r.options.plugins,{}),o=Knt(r);return i===!1&&!n?[]:Jnt(e,o,i,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,i=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),e,"stop"),this._notify(i(r,n),e,"start")}}function Knt(t){const e={},n=[],r=Object.keys(Wr.plugins.items);for(let o=0;o<r.length;o++)n.push(Wr.getPlugin(r[o]));const i=t.plugins||[];for(let o=0;o<i.length;o++){const s=i[o];n.indexOf(s)===-1&&(n.push(s),e[s.id]=!0)}return{plugins:n,localIds:e}}function Qnt(t,e){return!e&&t===!1?null:t===!0?{}:t}function Jnt(t,{plugins:e,localIds:n},r,i){const o=[],s=t.getContext();for(const a of e){const l=a.id,c=Qnt(r[l],i);c!==null&&o.push({plugin:a,options:trt(t.config,{plugin:a,local:n[l]},c,s)})}return o}function trt(t,{plugin:e,local:n},r,i){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(r,o);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ox(t,e){const n=ve.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function ert(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function nrt(t,e){return t===e?"_index_":"_value_"}function rrt(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Kg(t,e){if(t==="x"||t==="y"||t==="r"||(t=e.axis||rrt(e.position)||t.length>1&&Kg(t[0].toLowerCase(),e),t))return t;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function irt(t,e){const n=ia[t.type]||{scales:{}},r=e.scales||{},i=ox(t.type,e),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!gt(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=Kg(s,a),c=nrt(l,i),u=n.scales||{};o[s]=Ru(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||ox(a,e),c=(ia[a]||{}).scales||{};Object.keys(c).forEach(u=>{const d=ert(u,l),h=s[d+"AxisID"]||d;o[h]=o[h]||Object.create(null),Ru(o[h],[{axis:d},r[h],c[u]])})}),Object.keys(o).forEach(s=>{const a=o[s];Ru(a,[ve.scales[a.type],ve.scale])}),o}function S6(t){const e=t.options||(t.options={});e.plugins=yt(e.plugins,{}),e.scales=irt(t,e)}function E6(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function ort(t){return t=t||{},t.data=E6(t.data),S6(t),t}const n5=new Map,C6=new Set;function vf(t,e){let n=n5.get(t);return n||(n=e(),n5.set(t,n),C6.add(n)),n}const Nc=(t,e,n)=>{const r=ra(e,n);r!==void 0&&t.add(r)};class srt{constructor(e){this._config=ort(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=E6(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),S6(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return vf(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return vf(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return vf(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return vf(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let i=r.get(e);return(!i||n)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,n,r){const{options:i,type:o}=this,s=this._cachedScopes(e,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>Nc(l,e,d))),u.forEach(d=>Nc(l,i,d)),u.forEach(d=>Nc(l,ia[o]||{},d)),u.forEach(d=>Nc(l,ve,d)),u.forEach(d=>Nc(l,ix,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),C6.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,ia[n]||{},ve.datasets[n]||{},{type:n},ve,ix]}resolveNamedOptions(e,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=r5(this._resolverCache,e,i);let l=s;if(lrt(s,n)){o.$shared=!1,r=Ko(r)?r():r;const c=this.createResolver(e,r,a);l=Ul(s,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(e,n,r=[""],i){const{resolver:o}=r5(this._resolverCache,e,r);return gt(n)?Ul(o,n,void 0,i):o}}function r5(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let o=r.get(i);return o||(o={resolver:p2(e,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const art=t=>gt(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||Ko(t[n]),!1);function lrt(t,e){const{isScriptable:n,isIndexable:r}=l6(t);for(const i of e){const o=n(i),s=r(i),a=(s||o)&&t[i];if(o&&(Ko(a)||art(a))||s&&Jt(a))return!0}return!1}var crt="4.2.0";const urt=["top","bottom","left","right","chartArea"];function i5(t,e){return t==="top"||t==="bottom"||urt.indexOf(t)===-1&&e==="x"}function o5(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function s5(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),zt(n&&n.onComplete,[t],e)}function drt(t){const e=t.chart,n=e.options.animation;zt(n&&n.onProgress,[t],e)}function k6(t){return h6()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Qg={},A6=t=>{const e=k6(t);return Object.values(Qg).filter(n=>n.canvas===e).pop()};function hrt(t,e,n){const r=Object.keys(t);for(const i of r){const o=+i;if(o>=e){const s=t[i];delete t[i],(n>0||o>e)&&(t[o+n]=s)}}}function frt(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}function prt(t){const{xScale:e,yScale:n}=t;if(e&&n)return{left:e.left,right:e.right,top:n.top,bottom:n.bottom}}class sr{static register(...e){Wr.add(...e),a5()}static unregister(...e){Wr.remove(...e),a5()}constructor(e,n){const r=this.config=new srt(n),i=k6(e),o=A6(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Ont(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=Ltt(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Xnt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Ztt(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],Qg[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}pi.listen(this,"complete",s5),pi.listen(this,"progress",drt),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return Tt(e)?n&&o?o:i?r/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Wr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():DA(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return PA(this.canvas,this.ctx),this}stop(){return pi.stop(this),this}resize(e,n){pi.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,e,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,DA(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),zt(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};Ct(e,(n,r)=>{n.id=r})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=Kg(s,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ct(o,s=>{const a=s.options,l=a.id,c=Kg(l,a),u=yt(a.type,s.dtype);(a.position===void 0||i5(a.position,c)!==i5(s.dposition))&&(a.position=s.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const h=Wr.getScale(u);d=new h({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(a,e)}),Ct(i,(s,a)=>{s||delete r[a]}),Ct(r,s=>{ur.configure(this,s,s.options),ur.addBox(this,s)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(o5("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let s=this.getDatasetMeta(r);const a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=o.indexAxis||ox(a,this.options),s.order=o.order||0,s.index=r,s.label=""+o.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=Wr.getController(a),{datasetElementType:c,dataElementType:u}=ve.datasets[a];Object.assign(l,{dataElementType:Wr.getElement(u),datasetElementType:c&&Wr.getElement(c)}),s.controller=new l(this,r),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){Ct(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),h=!i&&o.indexOf(d)===-1;d.buildOrUpdateElements(h),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||Ct(o,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(o5("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Ct(this.scales,e=>{ur.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!wA(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const s=r==="_removeElements"?-o:o;hrt(e,i,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(e.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!wA(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ur.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ct(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Ko(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),i={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(pi.has(this)?this.attached&&!pi.running(this)&&pi.start(this):(this.draw(),s5({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const s=n[i];(!e||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r=e._clip,i=!r.disabled,o=prt(e)||this.chartArea,s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&d2(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),e.controller.draw(),i&&h2(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return s6(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,i){const o=dnt.modes[n];return typeof o=="function"?o(this,e,r,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ha(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(e),s=o.controller._resolveAnimations(void 0,i);yr(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),pi.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),PA(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Qg[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(o,s)=>{n.addEventListener(this,o,s),e[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};Ct(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},i=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){Ct(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Ct(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const i=r?"set":"remove";let o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){s=e[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:i,index:o})=>{const s=this.getDatasetMeta(i);if(!s)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:s.data[o],index:o}});!Hg(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),s=o(n,e),a=r?e:o(e,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:i=[],options:o}=this,s=n,a=this._getActiveElements(e,i,r,s),l=Btt(e),c=frt(e,this._lastEvent,r,l);r&&(this._lastEvent=null,zt(o.onHover,[e,a,this],this),l&&zt(o.onClick,[e,a,this],this));const u=!Hg(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(e,n,r,i){if(e.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,i)}}lt(sr,"defaults",ve),lt(sr,"instances",Qg),lt(sr,"overrides",ia),lt(sr,"registry",Wr),lt(sr,"version",crt),lt(sr,"getChart",A6);function a5(){return Ct(sr.instances,t=>t._plugins.invalidate())}function grt(t,e,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=e;let c=i/a;t.beginPath(),t.arc(o,s,a,r-c,n+c),l>i?(c=i/l,t.arc(o,s,l,n+c,r-c,!0)):t.arc(o,s,i,n+ue,r-ue),t.closePath(),t.clip()}function mrt(t){return f2(t,["outerStart","outerEnd","innerStart","innerEnd"])}function vrt(t,e,n,r){const i=mrt(t.options.borderRadius),o=(n-e)/2,s=Math.min(o,r*e/2),a=l=>{const c=(n-Math.min(o,l))*r/2;return Tn(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:Tn(i.innerStart,0,s),innerEnd:Tn(i.innerEnd,0,s)}}function wa(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Jg(t,e,n,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+r+n-c,0),h=u>0?u+r+n+c:0;let f=0;const p=i-l;if(r){const L=u>0?u-r:0,Y=d>0?d-r:0,X=(L+Y)/2,z=X!==0?p*X/(X+r):p;f=(p-z)/2}const g=Math.max(.001,p*d-n/xe)/d,y=(p-g)/2,v=l+y+f,_=i-y-f,{outerStart:x,outerEnd:b,innerStart:w,innerEnd:S}=vrt(e,h,d,_-v),E=d-x,C=d-b,A=v+x/E,k=_-b/C,$=h+w,M=h+S,I=v+w/$,F=_-S/M;if(t.beginPath(),o){const L=(A+k)/2;if(t.arc(s,a,d,A,L),t.arc(s,a,d,L,k),b>0){const W=wa(C,k,s,a);t.arc(W.x,W.y,b,k,_+ue)}const Y=wa(M,_,s,a);if(t.lineTo(Y.x,Y.y),S>0){const W=wa(M,F,s,a);t.arc(W.x,W.y,S,_+ue,F+Math.PI)}const X=(_-S/h+(v+w/h))/2;if(t.arc(s,a,h,_-S/h,X,!0),t.arc(s,a,h,X,v+w/h,!0),w>0){const W=wa($,I,s,a);t.arc(W.x,W.y,w,I+Math.PI,v-ue)}const z=wa(E,v,s,a);if(t.lineTo(z.x,z.y),x>0){const W=wa(E,A,s,a);t.arc(W.x,W.y,x,v-ue,A)}}else{t.moveTo(s,a);const L=Math.cos(A)*d+s,Y=Math.sin(A)*d+a;t.lineTo(L,Y);const X=Math.cos(k)*d+s,z=Math.sin(k)*d+a;t.lineTo(X,z)}t.closePath()}function yrt(t,e,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=e;let l=e.endAngle;if(o){Jg(t,e,n,r,l,i);for(let c=0;c<o;++c)t.fill();isNaN(a)||(l=s+(a%ce||ce))}return Jg(t,e,n,r,l,i),t.fill(),l}function _rt(t,e,n,r,i){const{fullCircles:o,startAngle:s,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:u}=l,d=l.borderAlign==="inner";if(!c)return;d?(t.lineWidth=c*2,t.lineJoin=u||"round"):(t.lineWidth=c,t.lineJoin=u||"bevel");let h=e.endAngle;if(o){Jg(t,e,n,r,h,i);for(let f=0;f<o;++f)t.stroke();isNaN(a)||(h=s+(a%ce||ce))}d&&grt(t,e,h),o||(Jg(t,e,n,r,h,i),t.stroke())}class Mp extends Bi{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:s}=QD(i,{x:e,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),h=this.options.spacing/2,f=yt(d,l-a)>=ce||Gg(o,a,l),p=Is(s,c+h,u+h);return f&&p}getCenterPoint(e){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:l,spacing:c}=this.options,u=(i+o)/2,d=(s+a+c+l)/2;return{x:n+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>ce?Math.floor(r/ce):0,r===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(xe,r||0)),c=i*l;e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,yrt(e,this,c,o,s),_rt(e,this,c,o,s),e.restore()}}lt(Mp,"id","arc"),lt(Mp,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),lt(Mp,"defaultRoutes",{backgroundColor:"backgroundColor"});function T6(t,e){const{x:n,y:r,base:i,width:o,height:s}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return t.horizontal?(d=s/2,a=Math.min(n,i),l=Math.max(n,i),c=r-d,u=r+d):(d=o/2,a=n-d,l=n+d,c=Math.min(r,i),u=Math.max(r,i)),{left:a,top:c,right:l,bottom:u}}function Co(t,e,n,r){return t?0:Tn(e,n,r)}function xrt(t,e,n){const r=t.options.borderWidth,i=t.borderSkipped,o=a6(r);return{t:Co(i.top,o.top,0,n),r:Co(i.right,o.right,0,e),b:Co(i.bottom,o.bottom,0,n),l:Co(i.left,o.left,0,e)}}function brt(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),i=t.options.borderRadius,o=Hs(i),s=Math.min(e,n),a=t.borderSkipped,l=r||gt(i);return{topLeft:Co(!l||a.top||a.left,o.topLeft,0,s),topRight:Co(!l||a.top||a.right,o.topRight,0,s),bottomLeft:Co(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:Co(!l||a.bottom||a.right,o.bottomRight,0,s)}}function wrt(t){const e=T6(t),n=e.right-e.left,r=e.bottom-e.top,i=xrt(t,n/2,r/2),o=brt(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:o},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function x1(t,e,n,r){const i=e===null,o=n===null,s=t&&!(i&&o)&&T6(t,r);return s&&(i||Is(e,s.left,s.right))&&(o||Is(n,s.top,s.bottom))}function Srt(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function Ert(t,e){t.rect(e.x,e.y,e.w,e.h)}function b1(t,e,n={}){const r=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-r,s=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+r,y:t.y+i,w:t.w+o,h:t.h+s,radius:t.radius}}class Iu extends Bi{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:s}=wrt(this),a=Srt(s.radius)?Rd:Ert;e.save(),(s.w!==o.w||s.h!==o.h)&&(e.beginPath(),a(e,b1(s,n,o)),e.clip(),a(e,b1(o,-n,s)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),a(e,b1(o,n)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,n,r){return x1(this,e,n,r)}inXRange(e,n){return x1(this,e,null,n)}inYRange(e,n){return x1(this,null,e,n)}getCenterPoint(e){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],e);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}lt(Iu,"id","bar"),lt(Iu,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),lt(Iu,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const l5=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},Crt=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class c5 extends Bi{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=zt(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,i=Te(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=l5(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,i,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=e;o.textAlign="left",o.textBaseline="middle";let h=-1,f=-u;return this.legendItems.forEach((p,g)=>{const y=r+n/2+o.measureText(p.text).width;(g===0||c[c.length-1]+y+2*a>s)&&(d+=u,c[c.length-(g>0?0:1)]=0,f+=u,h++),l[g]={left:0,top:f,row:h,width:y,height:i},c[c.length-1]+=y+a}),d}_fitCols(e,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=s-e;let d=a,h=0,f=0,p=0,g=0;return this.legendItems.forEach((y,v)=>{const{itemWidth:_,itemHeight:x}=krt(r,n,o,y,i);v>0&&f+x+2*a>u&&(d+=h+a,c.push({width:h,height:f}),p+=h+a,g++,h=f=0),l[v]={left:p,top:f,col:g,width:_,height:x},h=Math.max(h,_),f+=x+a}),d+=h,c.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=yl(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=Qe(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Qe(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+e+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let a=0,l=Qe(r,this.top+e+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Qe(r,this.top+e+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;d2(e,this),this._draw(),h2(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=e,a=ve.color,l=yl(e.rtl,this.left,this.width),c=Te(s.font),{padding:u}=s,d=c.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:y}=l5(s,d),v=function(S,E,C){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const A=yt(C.lineWidth,1);if(i.fillStyle=yt(C.fillStyle,a),i.lineCap=yt(C.lineCap,"butt"),i.lineDashOffset=yt(C.lineDashOffset,0),i.lineJoin=yt(C.lineJoin,"miter"),i.lineWidth=A,i.strokeStyle=yt(C.strokeStyle,a),i.setLineDash(yt(C.lineDash,[])),s.usePointStyle){const k={radius:g*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:A},$=l.xPlus(S,p/2),M=E+h;o6(i,k,$,M,s.pointStyleWidth&&p)}else{const k=E+Math.max((d-g)/2,0),$=l.leftForLtr(S,p),M=Hs(C.borderRadius);i.beginPath(),Object.values(M).some(I=>I!==0)?Rd(i,{x:$,y:k,w:p,h:g,radius:M}):i.rect($,k,p,g),i.fill(),A!==0&&i.stroke()}i.restore()},_=function(S,E,C){oa(i,C.text,S,E+y/2,c,{strikethrough:C.hidden,textAlign:l.textAlign(C.textAlign)})},x=this.isHorizontal(),b=this._computeTitleHeight();x?f={x:Qe(o,this.left+u,this.right-r[0]),y:this.top+u+b,line:0}:f={x:this.left+u,y:Qe(o,this.top+b+u,this.bottom-n[0].height),line:0},f6(this.ctx,e.textDirection);const w=y+u;this.legendItems.forEach((S,E)=>{i.strokeStyle=S.fontColor,i.fillStyle=S.fontColor;const C=i.measureText(S.text).width,A=l.textAlign(S.textAlign||(S.textAlign=s.textAlign)),k=p+h+C;let $=f.x,M=f.y;l.setWidth(this.width),x?E>0&&$+k+u>this.right&&(M=f.y+=w,f.line++,$=f.x=Qe(o,this.left+u,this.right-r[f.line])):E>0&&M+w>this.bottom&&($=f.x=$+n[f.line].width+u,f.line++,M=f.y=Qe(o,this.top+b+u,this.bottom-n[f.line].height));const I=l.x($);if(v(I,M,S),$=Xtt(A,$+p+h,x?$+k:this.right,e.rtl),_(l.x($),M,S),x)f.x+=k+u;else if(typeof S.text!="string"){const F=c.lineHeight;f.y+=$6(S,F)}else f.y+=w}),p6(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Te(n.font),i=sn(n.padding);if(!n.display)return;const o=yl(e.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=Qe(e.align,d,this.right-h);else{const p=this.columnSizes.reduce((g,y)=>Math.max(g,y.height),0);u=c+Qe(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const f=Qe(a,d,d+h);s.textAlign=o.textAlign(u2(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,oa(s,n.text,f,u,r)}_computeTitleHeight(){const e=this.options.title,n=Te(e.font),r=sn(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,i,o;if(Is(e,this.left,this.right)&&Is(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],Is(e,i.left,i.left+i.width)&&Is(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!$rt(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,o=Crt(i,r);i&&!o&&zt(n.onLeave,[e,i,this],this),this._hoveredItem=r,r&&!o&&zt(n.onHover,[e,r,this],this)}else r&&zt(n.onClick,[e,r,this],this)}}function krt(t,e,n,r,i){const o=Art(r,t,e,n),s=Trt(i,r,e.lineHeight);return{itemWidth:o,itemHeight:s}}function Art(t,e,n,r){let i=t.text;return i&&typeof i!="string"&&(i=i.reduce((o,s)=>o.length>s.length?o:s)),e+n.size/2+r.measureText(i).width}function Trt(t,e,n){let r=t;return typeof e.text!="string"&&(r=$6(e,n)),r}function $6(t,e){const n=t.text?t.text.length+.5:0;return e*n}function $rt(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var M6={id:"legend",_element:c5,start(t,e,n){const r=t.legend=new c5({ctx:t.ctx,options:n,chart:t});ur.configure(t,r,n),ur.addBox(t,r)},stop(t){ur.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;ur.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=sn(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class P6 extends Bi{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const i=Jt(r.text)?r.text.length:1;this._padding=sn(r.padding);const o=i*Te(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align;let l=0,c,u,d;return this.isHorizontal()?(u=Qe(a,r,o),d=n+e,c=o-r):(s.position==="left"?(u=r+e,d=Qe(a,i,n),l=xe*-.5):(u=o-e,d=Qe(a,n,i),l=xe*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=Te(n.font),i=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:a,rotation:l}=this._drawArgs(i);oa(e,n.text,0,0,r,{color:n.color,maxWidth:a,rotation:l,textAlign:u2(n.align),textBaseline:"middle",translation:[o,s]})}}function Mrt(t,e){const n=new P6({ctx:t.ctx,options:e,chart:t});ur.configure(t,n,e),ur.addBox(t,n),t.titleBlock=n}var Prt={id:"title",_element:P6,start(t,e,n){Mrt(t,n)},stop(t){const e=t.titleBlock;ur.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;ur.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Nu={average(t){if(!t.length)return!1;let e,n,r=0,i=0,o=0;for(e=0,n=t.length;e<n;++e){const s=t[e].element;if(s&&s.hasValue()){const a=s.tooltipPosition();r+=a.x,i+=a.y,++o}}return{x:r/o,y:i/o}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,i=Number.POSITIVE_INFINITY,o,s,a;for(o=0,s=t.length;o<s;++o){const l=t[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=Utt(e,c);u<i&&(i=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function zr(t,e){return e&&(Jt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function gi(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
434
- `)>-1?t.split(`
435
- `):t}function Ort(t,e){const{element:n,datasetIndex:r,index:i}=e,o=t.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:t,label:s,parsed:o.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function u5(t,e){const n=t.chart.ctx,{body:r,footer:i,title:o}=t,{boxWidth:s,boxHeight:a}=e,l=Te(e.bodyFont),c=Te(e.titleFont),u=Te(e.footerFont),d=o.length,h=i.length,f=r.length,p=sn(e.padding);let g=p.height,y=0,v=r.reduce((b,w)=>b+w.before.length+w.lines.length+w.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),v){const b=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=f*b+(v-f)*l.lineHeight+(v-1)*e.bodySpacing}h&&(g+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let _=0;const x=function(b){y=Math.max(y,n.measureText(b).width+_)};return n.save(),n.font=c.string,Ct(t.title,x),n.font=l.string,Ct(t.beforeBody.concat(t.afterBody),x),_=e.displayColors?s+2+e.boxPadding:0,Ct(r,b=>{Ct(b.before,x),Ct(b.lines,x),Ct(b.after,x)}),_=0,n.font=u.string,Ct(t.footer,x),n.restore(),y+=p.width,{width:y,height:g}}function Rrt(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function Lrt(t,e,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(t==="left"&&i+o+s>e.width||t==="right"&&i-o-s<0)return!0}function Drt(t,e,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return r==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=s-o/2&&(c="right"),Lrt(c,t,e,n)&&(c="center"),c}function d5(t,e,n){const r=n.yAlign||e.yAlign||Rrt(t,n);return{xAlign:n.xAlign||e.xAlign||Drt(t,e,n,r),yAlign:r}}function Irt(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function Nrt(t,e,n){let{y:r,height:i}=t;return e==="top"?r+=n:e==="bottom"?r-=i+n:r-=i/2,r}function h5(t,e,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=t,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Hs(s);let p=Irt(e,a);const g=Nrt(e,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(u,h)+i:a==="right"&&(p+=Math.max(d,f)+i),{x:Tn(p,0,r.width-e.width),y:Tn(g,0,r.height-e.height)}}function yf(t,e,n){const r=sn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function f5(t){return zr([],gi(t))}function Frt(t,e,n){return ha(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function p5(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const O6={beforeTitle:hi,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:hi,beforeBody:hi,beforeLabel:hi,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Tt(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:hi,afterBody:hi,beforeFooter:hi,footer:hi,afterFooter:hi};function xn(t,e,n,r){const i=t[e].call(n,r);return typeof i>"u"?O6[e].call(n,r):i}class sx extends Bi{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new g6(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Frt(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,i=xn(r,"beforeTitle",this,e),o=xn(r,"title",this,e),s=xn(r,"afterTitle",this,e);let a=[];return a=zr(a,gi(i)),a=zr(a,gi(o)),a=zr(a,gi(s)),a}getBeforeBody(e,n){return f5(xn(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,i=[];return Ct(e,o=>{const s={before:[],lines:[],after:[]},a=p5(r,o);zr(s.before,gi(xn(a,"beforeLabel",this,o))),zr(s.lines,xn(a,"label",this,o)),zr(s.after,gi(xn(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(e,n){return f5(xn(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,i=xn(r,"beforeFooter",this,e),o=xn(r,"footer",this,e),s=xn(r,"afterFooter",this,e);let a=[];return a=zr(a,gi(i)),a=zr(a,gi(o)),a=zr(a,gi(s)),a}_createItems(e){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(Ort(this.chart,n[l]));return e.filter&&(a=a.filter((u,d,h)=>e.filter(u,d,h,r))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,r))),Ct(a,u=>{const d=p5(e.callbacks,u);i.push(xn(d,"labelColor",this,u)),o.push(xn(d,"labelPointStyle",this,u)),s.push(xn(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(e,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=Nu[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=u5(this,r),c=Object.assign({},a,l),u=d5(this.chart,r,c),d=h5(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,i){const o=this.getCaretPosition(e,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(e,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Hs(a),{x:h,y:f}=e,{width:p,height:g}=n;let y,v,_,x,b,w;return o==="center"?(b=f+g/2,i==="left"?(y=h,v=y-s,x=b+s,w=b-s):(y=h+p,v=y+s,x=b-s,w=b+s),_=y):(i==="left"?v=h+Math.max(l,u)+s:i==="right"?v=h+p-Math.max(c,d)-s:v=this.caretX,o==="top"?(x=f,b=x-s,y=v-s,_=v+s):(x=f+g,b=x+s,y=v+s,_=v-s),w=x),{x1:y,x2:v,x3:_,y1:x,y2:b,y3:w}}drawTitle(e,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const c=yl(r.rtl,this.x,this.width);for(e.x=yf(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=Te(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<o;++l)n.fillText(i[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+a,l+1===o&&(e.y+=r.titleMarginBottom-a)}}_drawColorBox(e,n,r,i,o){const s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:c,boxPadding:u}=o,d=Te(o.bodyFont),h=yf(this,"left",o),f=i.x(h),p=l<d.lineHeight?(d.lineHeight-l)/2:0,g=n.y+p;if(o.usePointStyle){const y={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},v=i.leftForLtr(f,c)+c/2,_=g+l/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,OA(e,y,v,_),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,OA(e,y,v,_)}else{e.lineWidth=gt(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const y=i.leftForLtr(f,c-u),v=i.leftForLtr(i.xPlus(f,1),c-u-2),_=Hs(s.borderRadius);Object.values(_).some(x=>x!==0)?(e.beginPath(),e.fillStyle=o.multiKeyBackground,Rd(e,{x:y,y:g,w:c,h:l,radius:_}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Rd(e,{x:v,y:g+1,w:c-2,h:l-2,radius:_}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(y,g,c,l),e.strokeRect(y,g,c,l),e.fillStyle=s.backgroundColor,e.fillRect(v,g+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=Te(r.bodyFont);let h=d.lineHeight,f=0;const p=yl(r.rtl,this.x,this.width),g=function(C){n.fillText(C,p.x(e.x+f),e.y+h/2),e.y+=h+o},y=p.textAlign(s);let v,_,x,b,w,S,E;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,e.x=yf(this,y,r),n.fillStyle=r.bodyColor,Ct(this.beforeBody,g),f=a&&y!=="right"?s==="center"?c/2+u:c+2+u:0,b=0,S=i.length;b<S;++b){for(v=i[b],_=this.labelTextColors[b],n.fillStyle=_,Ct(v.before,g),x=v.lines,a&&x.length&&(this._drawColorBox(n,e,b,p,r),h=Math.max(d.lineHeight,l)),w=0,E=x.length;w<E;++w)g(x[w]),h=d.lineHeight;Ct(v.after,g)}f=0,h=d.lineHeight,Ct(this.afterBody,g),e.y-=o}drawFooter(e,n,r){const i=this.footer,o=i.length;let s,a;if(o){const l=yl(r.rtl,this.x,this.width);for(e.x=yf(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=Te(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<o;++a)n.fillText(i[a],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+r.footerSpacing}}drawBackground(e,n,r,i){const{xAlign:o,yAlign:s}=this,{x:a,y:l}=e,{width:c,height:u}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:p}=Hs(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+d,l),s==="top"&&this.drawCaret(e,n,r,i),n.lineTo(a+c-h,l),n.quadraticCurveTo(a+c,l,a+c,l+h),s==="center"&&o==="right"&&this.drawCaret(e,n,r,i),n.lineTo(a+c,l+u-p),n.quadraticCurveTo(a+c,l+u,a+c-p,l+u),s==="bottom"&&this.drawCaret(e,n,r,i),n.lineTo(a+f,l+u),n.quadraticCurveTo(a,l+u,a,l+u-f),s==="center"&&o==="left"&&this.drawCaret(e,n,r,i),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=Nu[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=u5(this,e),l=Object.assign({},s,this._size),c=d5(n,e,l),u=h5(e,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=sn(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=r,this.drawBackground(o,e,i,n),f6(e,n.textDirection),o.y+=s.top,this.drawTitle(o,e,n),this.drawBody(o,e,n),this.drawFooter(o,e,n),p6(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,i=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Hg(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(e,o,n,r),a=this._positionChanged(s,e),l=n||!Hg(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,i){const o=this.options;if(e.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(e,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:r,caretY:i,options:o}=this,s=Nu[o.position].call(this,e,n);return s!==!1&&(r!==s.x||i!==s.y)}}lt(sx,"positioners",Nu);var zrt={id:"tooltip",_element:sx,positioners:Nu,afterInit(t,e,n){n&&(t.tooltip=new sx({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:O6},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Brt=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function jrt(t,e,n,r){const i=t.indexOf(e);if(i===-1)return Brt(t,e,n,r);const o=t.lastIndexOf(e);return i!==o?n:i}const Vrt=(t,e)=>t===null?null:Tn(Math.round(t),0,e);function R6(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class tm extends fa{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Tt(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:jrt(r,e,yt(n,e),this._addedLabels),Vrt(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=e===0&&n===o.length-1?o:o.slice(e,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=n;s++)i.push({value:s});return i}getLabelForValue(e){return R6.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}lt(tm,"id","category"),lt(tm,"defaults",{ticks:{callback:R6}});function Hrt(t,e){const n=[],{bounds:r,step:i,min:o,max:s,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,h=i||1,f=c-1,{min:p,max:g}=e,y=!Tt(o),v=!Tt(s),_=!Tt(l),x=(g-p)/(u+1);let b=EA((g-p)/f/h)*h,w,S,E,C;if(b<1e-14&&!y&&!v)return[{value:p},{value:g}];C=Math.ceil(g/b)-Math.floor(p/b),C>f&&(b=EA(C*b/f/h)*h),Tt(a)||(w=Math.pow(10,a),b=Math.ceil(b*w)/w),r==="ticks"?(S=Math.floor(p/b)*b,E=Math.ceil(g/b)*b):(S=p,E=g),y&&v&&i&&Htt((s-o)/i,b/1e3)?(C=Math.round(Math.min((s-o)/b,c)),b=(s-o)/C,S=o,E=s):_?(S=y?o:S,E=v?s:E,C=l-1,b=(E-S)/C):(C=(E-S)/b,Ap(C,Math.round(C),b/1e3)?C=Math.round(C):C=Math.ceil(C));const A=Math.max(CA(b),CA(S));w=Math.pow(10,Tt(a)?A:a),S=Math.round(S*w)/w,E=Math.round(E*w)/w;let k=0;for(y&&(d&&S!==o?(n.push({value:o}),S<o&&k++,Ap(Math.round((S+k*b)*w)/w,o,g5(o,x,t))&&k++):S<o&&k++);k<C;++k)n.push({value:Math.round((S+k*b)*w)/w});return v&&d&&E!==s?n.length&&Ap(n[n.length-1].value,s,g5(s,x,t))?n[n.length-1].value=s:n.push({value:s}):(!v||E===s)&&n.push({value:E}),n}function g5(t,e,{horizontal:n,minRotation:r}){const i=Kr(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/o,s)}class em extends fa{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Tt(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const s=l=>i=n?i:l,a=l=>o=r?o:l;if(e){const l=Vo(i),c=Vo(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),e||s(i-l)}this.min=i,this.max=o}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=Hrt(i,o);return e.bounds==="ticks"&&KD(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-n)/Math.max(e.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return L0(e,this.chart.options.locale,this.options.ticks.format)}}class nm extends em{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ie(e)?e:0,this.max=Ie(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=Kr(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}lt(nm,"id","linear"),lt(nm,"defaults",{ticks:{callback:D0.formatters.numeric}});const Dd=t=>Math.floor(Eo(t)),ys=(t,e)=>Math.pow(10,Dd(t)+e);function m5(t){return t/Math.pow(10,Dd(t))===1}function v5(t,e,n){const r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function Urt(t,e){const n=e-t;let r=Dd(n);for(;v5(t,e,r)>10;)r++;for(;v5(t,e,r)<10;)r--;return Math.min(r,Dd(t))}function Wrt(t,{min:e,max:n}){e=Vn(t.min,e);const r=[],i=Dd(e);let o=Urt(e,n),s=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((e-l)*s)/s,u=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,o)),h=Vn(t.min,Math.round((l+u+d*Math.pow(10,o))*s)/s);for(;h<n;)r.push({value:h,major:m5(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,s=o>=0?1:s),h=Math.round((l+u+d*Math.pow(10,o))*s)/s;const f=Vn(t.max,h);return r.push({value:f,major:m5(f),significand:d}),r}class y5 extends fa{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const r=em.prototype.parse.apply(this,[e,n]);if(r===0){this._zero=!0;return}return Ie(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Ie(e)?Math.max(0,e):null,this.max=Ie(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ie(this._userMin)&&(this.min=e===ys(this.min,0)?ys(this.min,-1):ys(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=a=>r=e?r:a,s=a=>i=n?i:a;r===i&&(r<=0?(o(1),s(10)):(o(ys(r,-1)),s(ys(i,1)))),r<=0&&o(ys(i,-1)),i<=0&&s(ys(r,1)),this.min=r,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},r=Wrt(n,this);return e.bounds==="ticks"&&KD(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":L0(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Eo(e),this._valueRange=Eo(this.max)-Eo(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Eo(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}lt(y5,"id","logarithmic"),lt(y5,"defaults",{ticks:{callback:D0.formatters.logarithmic,major:{enabled:!0}}});function ax(t){const e=t.ticks;if(e.display&&t.display){const n=sn(e.backdropPadding);return yt(e.font&&e.font.size,ve.font.size)+n.height}return 0}function Yrt(t,e,n){return n=Jt(n)?n:[n],{w:set(t,e.string,n),h:n.length*e.lineHeight}}function _5(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function Grt(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],i=[],o=t._pointLabels.length,s=t.options.pointLabels,a=s.centerPointLabels?xe/o:0;for(let l=0;l<o;l++){const c=s.setContext(t.getPointLabelContext(l));i[l]=c.padding;const u=t.getPointPosition(l,t.drawingArea+i[l],a),d=Te(c.font),h=Yrt(t.ctx,d,t._pointLabels[l]);r[l]=h;const f=Ur(t.getIndexAngle(l)+a),p=Math.round(l2(f)),g=_5(p,u.x,h.w,0,180),y=_5(p,u.y,h.h,90,270);qrt(n,e,f,g,y)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=Zrt(t,r,i)}function qrt(t,e,n,r,i){const o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;r.start<e.l?(a=(e.l-r.start)/o,t.l=Math.min(t.l,e.l-a)):r.end>e.r&&(a=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),i.start<e.t?(l=(e.t-i.start)/s,t.t=Math.min(t.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function Zrt(t,e,n){const r=[],i=t._pointLabels.length,o=t.options,s=ax(o)/2,a=t.drawingArea,l=o.pointLabels.centerPointLabels?xe/i:0;for(let c=0;c<i;c++){const u=t.getPointPosition(c,a+s+n[c],l),d=Math.round(l2(Ur(u.angle+ue))),h=e[c],f=Qrt(u.y,h.h,d),p=Xrt(d),g=Krt(u.x,h.w,p);r.push({x:u.x,y:f,textAlign:p,left:g,top:f,right:g+h.w,bottom:f+h.h})}return r}function Xrt(t){return t===0||t===180?"center":t<180?"left":"right"}function Krt(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function Qrt(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function Jrt(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const o=r.setContext(t.getPointLabelContext(i)),s=Te(o.font),{x:a,y:l,textAlign:c,left:u,top:d,right:h,bottom:f}=t._pointLabelItems[i],{backdropColor:p}=o;if(!Tt(p)){const g=Hs(o.borderRadius),y=sn(o.backdropPadding);n.fillStyle=p;const v=u-y.left,_=d-y.top,x=h-u+y.width,b=f-d+y.height;Object.values(g).some(w=>w!==0)?(n.beginPath(),Rd(n,{x:v,y:_,w:x,h:b,radius:g}),n.fill()):n.fillRect(v,_,x,b)}oa(n,t._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function L6(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,ce);else{let o=t.getPointPosition(0,e);i.moveTo(o.x,o.y);for(let s=1;s<r;s++)o=t.getPointPosition(s,e),i.lineTo(o.x,o.y)}}function tit(t,e,n,r,i){const o=t.ctx,s=e.circular,{color:a,lineWidth:l}=e;!s&&!r||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),L6(t,n,s,r),o.closePath(),o.stroke(),o.restore())}function eit(t,e,n){return ha(t,{label:n,index:e,type:"pointLabel"})}class _f extends em{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=sn(ax(this.options)/2),n=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=Ie(e)&&!isNaN(e)?e:0,this.max=Ie(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ax(this.options))}generateTickLabels(e){em.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,r)=>{const i=zt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?Grt(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,i))}getIndexAngle(e){const n=ce/(this._pointLabels.length||1),r=this.options.startAngle||0;return Ur(e*n+Kr(r))}getDistanceFromCenterForValue(e){if(Tt(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(Tt(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const r=n[e];return eit(this.getContext(),e,r)}}getPointPosition(e,n,r=0){const i=this.getIndexAngle(e)-ue+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:r,right:i,bottom:o}=this._pointLabelItems[e];return{left:n,top:r,right:i,bottom:o}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),L6(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:r,grid:i,border:o}=n,s=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&Jrt(this,s),i.display&&this.ticks.forEach((u,d)=>{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),f=i.setContext(h),p=o.setContext(h);tit(this,f,l,s,p)}}),r.display){for(e.save(),a=s-1;a>=0;a--){const u=r.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:h}=u;!h||!d||(e.lineWidth=h,e.strokeStyle=d,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=Te(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=u.string,s=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const d=sn(c.backdropPadding);e.fillRect(-s/2-d.left,-o-u.size/2-d.top,s+d.width,u.size+d.height)}oa(e,a.label,0,-o,u,{color:c.color})}),e.restore()}drawTitle(){}}lt(_f,"id","radialLinear"),lt(_f,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:D0.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),lt(_f,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),lt(_f,"descriptors",{angleLines:{_fallback:"grid"}});const N0={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},En=Object.keys(N0);function nit(t,e){return t-e}function x5(t,e){if(Tt(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:o}=t._parseOpts;let s=e;return typeof r=="function"&&(s=r(s)),Ie(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(Yg(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function b5(t,e,n,r){const i=En.length;for(let o=En.indexOf(t);o<i-1;++o){const s=N0[En[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(a*s.size))<=r)return En[o]}return En[i-1]}function rit(t,e,n,r,i){for(let o=En.length-1;o>=En.indexOf(n);o--){const s=En[o];if(N0[s].common&&t._adapter.diff(i,r,s)>=e-1)return s}return En[n?En.indexOf(n):0]}function iit(t){for(let e=En.indexOf(t)+1,n=En.length;e<n;++e)if(N0[En[e]].common)return En[e]}function w5(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:i}=c2(n,e),o=n[r]>=e?n[r]:n[i];t[o]=!0}}function oit(t,e,n,r){const i=t._adapter,o=+i.startOf(e[0].value,r),s=e[e.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(e[l].major=!0);return e}function S5(t,e,n){const r=[],i={},o=e.length;let s,a;for(s=0;s<o;++s)a=e[s],i[a]=s,r.push({value:a,major:!1});return o===0||!n?r:oit(t,r,i,n)}class rm extends fa{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),i=this._adapter=new snt._date(e.adapters.date);i.init(n),Ru(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:x5(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:i,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Ie(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=Ie(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,s=this.max,a=Gtt(i,o,s);return this._unit=n.unit||(r.autoSkip?b5(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):rit(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:iit(this._unit),this.initOffsets(i),e.reverse&&a.reverse(),S5(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,i,o;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,o=this.getDecimalForValue(e[e.length-1]),e.length===1?r=o:r=(o-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=Tn(n,0,s),r=Tn(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||b5(o.minUnit,n,r,this._getLabelCapacity(n)),a=yt(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=Yg(l)||l===!0,u={};let d=n,h,f;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":s),e.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+e.add(h,a,s),f++)w5(u,h,p);return(h===r||i.bounds==="ticks"||f===1)&&w5(u,h,p),Object.keys(u).sort((g,y)=>g-y).map(g=>+g)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const r=this.options.time.displayFormats,i=this._unit,o=n||r[i];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return zt(s,[e,n,r],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],h=r[n],f=c&&d&&h&&h.major;return this._adapter.format(e,i||(f?d:u))}generateTickLabels(e){let n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],i.label=this._tickFormatFunction(i.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,i=Kr(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*o+a*s,h:r*s+a*o}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(e,0,S5(this,[e],this._majorUnit),i),s=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)e=e.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)e.push(x5(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return t6(e.sort(nit))}}lt(rm,"id","time"),lt(rm,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function xf(t,e,n){let r=0,i=t.length-1,o,s,a,l;n?(e>=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=rx(t,"pos",e)),{pos:o,time:a}=t[r],{pos:s,time:l}=t[i]):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=rx(t,"time",e)),{time:o,pos:a}=t[r],{time:s,pos:l}=t[i]);const c=s-o;return c?a+(l-a)*(e-o)/c:a}class E5 extends rm{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=xf(n,this.min),this._tableRange=xf(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,i=[],o=[];let s,a,l,c,u;for(s=0,a=e.length;s<a;++s)c=e[s],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s<a;++s)u=i[s+1],l=i[s-1],c=i[s],Math.round((u+l)/2)!==c&&o.push({time:c,pos:s/(a-1)});return o}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(xf(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return xf(this._table,r*this._tableRange+this._minPos,!0)}}lt(E5,"id","timeseries"),lt(E5,"defaults",rm.defaults);const D6="label";function C5(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function sit(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function I6(t,e){t.labels=e}function N6(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:D6;const r=[];t.datasets=e.map(i=>{const o=t.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function ait(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D6;const n={labels:[],datasets:[]};return I6(n,t.labels),N6(n,t.datasets,e),n}function lit(t,e){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...h}=t,f=m.exports.useRef(null),p=m.exports.useRef(),g=()=>{!f.current||(p.current=new sr(f.current,{type:s,data:ait(a,o),options:l&&{...l},plugins:c}),C5(e,p.current))},y=()=>{C5(e,null),p.current&&(p.current.destroy(),p.current=null)};return m.exports.useEffect(()=>{!i&&p.current&&l&&sit(p.current,l)},[i,l]),m.exports.useEffect(()=>{!i&&p.current&&I6(p.current.config.data,a.labels)},[i,a.labels]),m.exports.useEffect(()=>{!i&&p.current&&a.datasets&&N6(p.current.config.data,a.datasets,o)},[i,a.datasets]),m.exports.useEffect(()=>{!p.current||(i?(y(),setTimeout(g)):p.current.update(d))},[i,l,a.labels,a.datasets,d]),m.exports.useEffect(()=>{!p.current||(y(),setTimeout(g))},[s]),m.exports.useEffect(()=>(g(),()=>y()),[]),ot("canvas",{...Object.assign({ref:f,role:"img",height:n,width:r},h),children:u})}const cit=m.exports.forwardRef(lit);function F6(t,e){return sr.register(e),m.exports.forwardRef((n,r)=>ot(cit,{...Object.assign({},n,{ref:r,type:t})}))}const uit=F6("bar",Tp),dit=F6("doughnut",Qc),hit=!!(typeof window<"u"&&window.document&&window.document.createElement);hit&&getComputedStyle(document.documentElement);N.div`
436
- position: relative;
437
- height: calc((100vw / 2) - ${D["--ll-spacing-medium"]});
438
- width: 100%;
439
- `;N(uit)`
440
- background-color: ${D["--ll-color-surface"]};
441
- padding: ${D["--ll-spacing-medium"]} ${D["--ll-spacing-x-large"]};
442
- border-radius: ${D["--ll-border-radius-medium"]};
443
- font-family: ${D["--ll-font-family"]};
444
- `;N(dit)`
445
- background-color: ${D["--ll-color-surface"]};
446
- padding: ${D["--ll-spacing-medium"]} ${D["--ll-spacing-x-large"]};
447
- border-radius: ${D["--ll-border-radius-medium"]};
448
- font-family: ${D["--ll-font-family"]};
449
- `;sr.register(tm,nm,Iu);sr.register(tm,nm,Iu,Prt,M6);sr.register(Mp,zrt,M6);N.div`
450
- box-sizing: border-box;
451
- display: block;
452
- color: ${D["--ll-color-background"]};
453
- background: linear-gradient(
454
- to top,
455
- ${D["--ll-color-primary-variant1"]},
456
- ${D["--ll-color-primary"]}
457
- );
458
- padding: ${D["--ll-spacing-medium"]} ${D["--ll-spacing-x-large"]};
459
- border-radius: ${D["--ll-border-radius-medium"]};
460
- line-height: 1;
461
- font-family: ${D["--ll-font-family"]};
462
- font-size: ${D["--ll-font-size-caption-1"]};
463
- font-weight: ${D["--ll-font-weight-normal"]};
464
- height: 275px;
465
- * {
466
- box-sizing: inherit;
467
- margin: 0;
468
- padding: 0;
469
- border: 0;
470
- font-size: 100%;
471
- font: inherit;
472
- vertical-align: baseline;
473
- }
474
- `;N.h1`
475
- font-size: ${D["--ll-font-size-p"]};
476
- margin: 0 0 ${D["--ll-spacing-xxx-large"]};
477
- `;N.ul`
478
- font-size: ${D["--ll-font-size-h3"]};
479
- list-style: none;
480
- padding: 0;
481
- margin: 0;
482
- display: flex;
483
- flex-flow: column;
484
- row-gap: ${D["--ll-spacing-large"]};
485
- `;N.li`
486
- display: flex;
487
- flex-flow: row wrap;
488
- justify-content: space-between;
489
- align-items: center;
490
- `;N.h2`
491
- font-size: inherit;
492
- line-height: inherit;
493
- font-weight: inherit;
494
- margin: 0;
495
- display: flex;
496
- flex-flow: row wrap;
497
- justify-content: flex-start;
498
- align-items: center;
499
- column-gap: 8px;
500
- `;N.p`
501
- font-size: inherit;
502
- line-height: inherit;
503
- font-weight: inherit;
504
- margin: 0;
505
- `;N.span`
506
- width: 32px;
507
- height: 32px;
508
- display: flex;
509
- flex-flow: row;
510
- align-items: center;
511
- justify-content: center;
512
- `;function fit(t){const e=Xo(t);m.exports.useEffect(()=>{const n=r=>{r.key==="Escape"&&e(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e])}const lx="dismissableLayer.update",pit="dismissableLayer.pointerDownOutside",git="dismissableLayer.focusOutside";let k5;const mit=m.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z6=m.exports.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=t,c=m.exports.useContext(mit),[u,d]=m.exports.useState(null),[,h]=m.exports.useState({}),f=Ut(e,S=>d(S)),p=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(g),v=u?p.indexOf(u):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,x=v>=y,b=vit(S=>{const E=S.target,C=[...c.branches].some(A=>A.contains(E));!x||C||(i==null||i(S),s==null||s(S),S.defaultPrevented||a==null||a())}),w=yit(S=>{const E=S.target;[...c.branches].some(C=>C.contains(E))||(o==null||o(S),s==null||s(S),S.defaultPrevented||a==null||a())});return fit(S=>{v===c.layers.size-1&&(r==null||r(S),!S.defaultPrevented&&a&&(S.preventDefault(),a()))}),m.exports.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(k5=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),A5(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=k5)}},[u,n,c]),m.exports.useEffect(()=>()=>{!u||(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),A5())},[u,c]),m.exports.useEffect(()=>{const S=()=>h({});return document.addEventListener(lx,S),()=>document.removeEventListener(lx,S)},[]),m.exports.createElement(Mt.div,et({},l,{ref:f,style:{pointerEvents:_?x?"auto":"none":void 0,...t.style},onFocusCapture:Lt(t.onFocusCapture,w.onFocusCapture),onBlurCapture:Lt(t.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Lt(t.onPointerDownCapture,b.onPointerDownCapture)}))});function vit(t){const e=Xo(t),n=m.exports.useRef(!1),r=m.exports.useRef(()=>{});return m.exports.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let a=function(){B6(pit,e,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(document.removeEventListener("click",r.current),r.current=a,document.addEventListener("click",r.current,{once:!0})):a()}n.current=!1},o=window.setTimeout(()=>{document.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),document.removeEventListener("pointerdown",i),document.removeEventListener("click",r.current)}},[e]),{onPointerDownCapture:()=>n.current=!0}}function yit(t){const e=Xo(t),n=m.exports.useRef(!1);return m.exports.useEffect(()=>{const r=i=>{i.target&&!n.current&&B6(git,e,{originalEvent:i},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[e]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function A5(){const t=new CustomEvent(lx);document.dispatchEvent(t)}function B6(t,e,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?bQ(i,o):i.dispatchEvent(o)}let w1=0;function j6(){m.exports.useEffect(()=>{var t,e;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=n[0])!==null&&t!==void 0?t:T5()),document.body.insertAdjacentElement("beforeend",(e=n[1])!==null&&e!==void 0?e:T5()),w1++,()=>{w1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),w1--}},[])}function T5(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}const S1="focusScope.autoFocusOnMount",E1="focusScope.autoFocusOnUnmount",$5={bubbles:!1,cancelable:!0},V6=m.exports.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=t,[a,l]=m.exports.useState(null),c=Xo(i),u=Xo(o),d=m.exports.useRef(null),h=Ut(e,g=>l(g)),f=m.exports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.exports.useEffect(()=>{if(r){let g=function(v){if(f.paused||!a)return;const _=v.target;a.contains(_)?d.current=_:ks(d.current,{select:!0})},y=function(v){f.paused||!a||a.contains(v.relatedTarget)||ks(d.current,{select:!0})};return document.addEventListener("focusin",g),document.addEventListener("focusout",y),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y)}}},[r,a,f.paused]),m.exports.useEffect(()=>{if(a){P5.add(f);const g=document.activeElement;if(!a.contains(g)){const y=new CustomEvent(S1,$5);a.addEventListener(S1,c),a.dispatchEvent(y),y.defaultPrevented||(_it(Eit(H6(a)),{select:!0}),document.activeElement===g&&ks(a))}return()=>{a.removeEventListener(S1,c),setTimeout(()=>{const y=new CustomEvent(E1,$5);a.addEventListener(E1,u),a.dispatchEvent(y),y.defaultPrevented||ks(g!=null?g:document.body,{select:!0}),a.removeEventListener(E1,u),P5.remove(f)},0)}}},[a,c,u,f]);const p=m.exports.useCallback(g=>{if(!n&&!r||f.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(y&&v){const _=g.currentTarget,[x,b]=xit(_);x&&b?!g.shiftKey&&v===b?(g.preventDefault(),n&&ks(x,{select:!0})):g.shiftKey&&v===x&&(g.preventDefault(),n&&ks(b,{select:!0})):v===_&&g.preventDefault()}},[n,r,f.paused]);return m.exports.createElement(Mt.div,et({tabIndex:-1},s,{ref:h,onKeyDown:p}))});function _it(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(ks(r,{select:e}),document.activeElement!==n)return}function xit(t){const e=H6(t),n=M5(e,t),r=M5(e.reverse(),t);return[n,r]}function H6(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function M5(t,e){for(const n of t)if(!bit(n,{upTo:e}))return n}function bit(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function wit(t){return t instanceof HTMLInputElement&&"select"in t}function ks(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&wit(t)&&e&&t.select()}}const P5=Sit();function Sit(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=O5(t,e),t.unshift(e)},remove(e){var n;t=O5(t,e),(n=t[0])===null||n===void 0||n.resume()}}}function O5(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function Eit(t){return t.filter(e=>e.tagName!=="A")}const U6=m.exports.forwardRef((t,e)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=t;return r?JO.createPortal(m.exports.createElement(Mt.div,et({},i,{ref:e})),r):null}),Cit=m.exports.forwardRef((t,e)=>m.exports.createElement(Mt.span,et({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})));var kit=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Sa=new WeakMap,bf=new WeakMap,wf={},C1=0,Ait=function(t,e,n,r){var i=Array.isArray(t)?t:[t];wf[n]||(wf[n]=new WeakMap);var o=wf[n],s=[],a=new Set,l=new Set(i),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else{var f=h.getAttribute(r),p=f!==null&&f!=="false",g=(Sa.get(h)||0)+1,y=(o.get(h)||0)+1;Sa.set(h,g),o.set(h,y),s.push(h),g===1&&p&&bf.set(h,!0),y===1&&h.setAttribute(n,"true"),p||h.setAttribute(r,"true")}})};return u(e),a.clear(),C1++,function(){s.forEach(function(d){var h=Sa.get(d)-1,f=o.get(d)-1;Sa.set(d,h),o.set(d,f),h||(bf.has(d)||d.removeAttribute(r),bf.delete(d)),f||d.removeAttribute(n)}),C1--,C1||(Sa=new WeakMap,Sa=new WeakMap,bf=new WeakMap,wf={})}},W6=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=e||kit(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Ait(r,i,n,"aria-hidden")):function(){return null}},Zr=function(){return Zr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Zr.apply(this,arguments)};function Y6(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Tit(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var Pp="right-scroll-bar-position",Op="width-before-scroll-bar",$it="with-scroll-bars-hidden",Mit="--removed-body-scroll-bar-size";function Pit(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Oit(t,e){var n=m.exports.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}function Rit(t,e){return Oit(e||null,function(n){return t.forEach(function(r){return Pit(r,n)})})}function Lit(t){return t}function Dit(t,e){e===void 0&&(e=Lit);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(o){var s=e(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var u=s;s=[],u.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return i}function Iit(t){t===void 0&&(t={});var e=Dit(null);return e.options=Zr({async:!0,ssr:!1},t),e}var G6=function(t){var e=t.sideCar,n=Y6(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return ot(r,{...Zr({},n)})};G6.isSideCarExport=!0;function Nit(t,e){return t.useMedium(e),G6}var q6=Iit(),k1=function(){},F0=m.exports.forwardRef(function(t,e){var n=m.exports.useRef(null),r=m.exports.useState({onScrollCapture:k1,onWheelCapture:k1,onTouchMoveCapture:k1}),i=r[0],o=r[1],s=t.forwardProps,a=t.children,l=t.className,c=t.removeScrollBar,u=t.enabled,d=t.shards,h=t.sideCar,f=t.noIsolation,p=t.inert,g=t.allowPinchZoom,y=t.as,v=y===void 0?"div":y,_=Y6(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=h,b=Rit([n,e]),w=Zr(Zr({},_),i);return cr(O0,{children:[u&&ot(x,{sideCar:q6,removeScrollBar:c,shards:d,noIsolation:f,inert:p,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),s?m.exports.cloneElement(m.exports.Children.only(a),Zr(Zr({},w),{ref:b})):ot(v,{...Zr({},w,{className:l,ref:b}),children:a})]})});F0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};F0.classNames={fullWidth:Op,zeroRight:Pp};var Fit=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zit(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Fit();return e&&t.setAttribute("nonce",e),t}function Bit(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function jit(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Vit=function(){var t=0,e=null;return{add:function(n){t==0&&(e=zit())&&(Bit(e,n),jit(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Hit=function(){var t=Vit();return function(e,n){m.exports.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},Z6=function(){var t=Hit(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},Uit={left:0,top:0,right:0,gap:0},A1=function(t){return parseInt(t||"",10)||0},Wit=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[A1(n),A1(r),A1(i)]},Yit=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Uit;var e=Wit(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},Git=Z6(),qit=function(t,e,n,r){var i=t.left,o=t.top,s=t.right,a=t.gap;return n===void 0&&(n="margin"),`
513
- .`.concat($it,` {
514
- overflow: hidden `).concat(r,`;
515
- padding-right: `).concat(a,"px ").concat(r,`;
516
- }
517
- body {
518
- overflow: hidden `).concat(r,`;
519
- overscroll-behavior: contain;
520
- `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
521
- padding-left: `.concat(i,`px;
522
- padding-top: `).concat(o,`px;
523
- padding-right: `).concat(s,`px;
524
- margin-left:0;
525
- margin-top:0;
526
- margin-right: `).concat(a,"px ").concat(r,`;
527
- `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
528
- }
529
-
530
- .`).concat(Pp,` {
531
- right: `).concat(a,"px ").concat(r,`;
532
- }
533
-
534
- .`).concat(Op,` {
535
- margin-right: `).concat(a,"px ").concat(r,`;
536
- }
537
-
538
- .`).concat(Pp," .").concat(Pp,` {
539
- right: 0 `).concat(r,`;
540
- }
541
-
542
- .`).concat(Op," .").concat(Op,` {
543
- margin-right: 0 `).concat(r,`;
544
- }
545
-
546
- body {
547
- `).concat(Mit,": ").concat(a,`px;
548
- }
549
- `)},Zit=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r,o=m.exports.useMemo(function(){return Yit(i)},[i]);return ot(Git,{styles:qit(o,!e,i,n?"":"!important")})},cx=!1;if(typeof window<"u")try{var Sf=Object.defineProperty({},"passive",{get:function(){return cx=!0,!0}});window.addEventListener("test",Sf,Sf),window.removeEventListener("test",Sf,Sf)}catch(t){cx=!1}var Ea=cx?{passive:!1}:!1,Xit=function(t){var e=window.getComputedStyle(t);return e.overflowY!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowY==="visible")},Kit=function(t){var e=window.getComputedStyle(t);return e.overflowX!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowX==="visible")},R5=function(t,e){var n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=X6(t,n);if(r){var i=K6(t,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Qit=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},Jit=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},X6=function(t,e){return t==="v"?Xit(e):Kit(e)},K6=function(t,e){return t==="v"?Qit(e):Jit(e)},tot=function(t,e){return t==="h"&&e==="rtl"?-1:1},eot=function(t,e,n,r,i){var o=tot(t,window.getComputedStyle(e).direction),s=o*r,a=n.target,l=e.contains(a),c=!1,u=s>0,d=0,h=0;do{var f=K6(t,a),p=f[0],g=f[1],y=f[2],v=g-y-o*p;(p||v)&&X6(t,a)&&(d+=v,h+=p),a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(u&&(i&&d===0||!i&&s>d)||!u&&(i&&h===0||!i&&-s>h))&&(c=!0),c},Ef=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},L5=function(t){return[t.deltaX,t.deltaY]},D5=function(t){return t&&"current"in t?t.current:t},not=function(t,e){return t[0]===e[0]&&t[1]===e[1]},rot=function(t){return`
550
- .block-interactivity-`.concat(t,` {pointer-events: none;}
551
- .allow-interactivity-`).concat(t,` {pointer-events: all;}
552
- `)},iot=0,Ca=[];function oot(t){var e=m.exports.useRef([]),n=m.exports.useRef([0,0]),r=m.exports.useRef(),i=m.exports.useState(iot++)[0],o=m.exports.useState(function(){return Z6()})[0],s=m.exports.useRef(t);m.exports.useEffect(function(){s.current=t},[t]),m.exports.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var g=Tit([t.lockRef.current],(t.shards||[]).map(D5),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=m.exports.useCallback(function(g,y){if("touches"in g&&g.touches.length===2)return!s.current.allowPinchZoom;var v=Ef(g),_=n.current,x="deltaX"in g?g.deltaX:_[0]-v[0],b="deltaY"in g?g.deltaY:_[1]-v[1],w,S=g.target,E=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in g&&E==="h"&&S.type==="range")return!1;var C=R5(E,S);if(!C)return!0;if(C?w=E:(w=E==="v"?"h":"v",C=R5(E,S)),!C)return!1;if(!r.current&&"changedTouches"in g&&(x||b)&&(r.current=w),!w)return!0;var A=r.current||w;return eot(A,y,g,A==="h"?x:b,!0)},[]),l=m.exports.useCallback(function(g){var y=g;if(!(!Ca.length||Ca[Ca.length-1]!==o)){var v="deltaY"in y?L5(y):Ef(y),_=e.current.filter(function(w){return w.name===y.type&&w.target===y.target&&not(w.delta,v)})[0];if(_&&_.should){y.preventDefault();return}if(!_){var x=(s.current.shards||[]).map(D5).filter(Boolean).filter(function(w){return w.contains(y.target)}),b=x.length>0?a(y,x[0]):!s.current.noIsolation;b&&y.preventDefault()}}},[]),c=m.exports.useCallback(function(g,y,v,_){var x={name:g,delta:y,target:v,should:_};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(b){return b!==x})},1)},[]),u=m.exports.useCallback(function(g){n.current=Ef(g),r.current=void 0},[]),d=m.exports.useCallback(function(g){c(g.type,L5(g),g.target,a(g,t.lockRef.current))},[]),h=m.exports.useCallback(function(g){c(g.type,Ef(g),g.target,a(g,t.lockRef.current))},[]);m.exports.useEffect(function(){return Ca.push(o),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ea),document.addEventListener("touchmove",l,Ea),document.addEventListener("touchstart",u,Ea),function(){Ca=Ca.filter(function(g){return g!==o}),document.removeEventListener("wheel",l,Ea),document.removeEventListener("touchmove",l,Ea),document.removeEventListener("touchstart",u,Ea)}},[]);var f=t.removeScrollBar,p=t.inert;return cr(O0,{children:[p?ot(o,{styles:rot(i)}):null,f?ot(Zit,{gapMode:"margin"}):null]})}const sot=Nit(q6,oot);var Q6=m.exports.forwardRef(function(t,e){return ot(F0,{...Zr({},t,{ref:e,sideCar:sot})})});Q6.classNames=F0.classNames;const J6=Q6,aot=[" ","Enter","ArrowUp","ArrowDown"],lot=[" ","Enter"],z0="Select",[B0,_2,cot]=RD(z0),[uh,uot]=oc(z0,[cot]),[dot,sc]=uh(z0),[hot,fot]=uh(z0),t4=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:i,onOpenChange:o,value:s,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:d}=t,[h,f]=m.exports.useState(null),[p,g]=m.exports.useState(null),[y,v]=m.exports.useState(!1),_=OD(c),[x=!1,b]=Md({prop:r,defaultProp:i,onChange:o}),[w,S]=Md({prop:s,defaultProp:a,onChange:l}),E=m.exports.useRef(null),C=h?Boolean(h.closest("form")):!0,[A,k]=m.exports.useState(new Set),$=Array.from(A).map(M=>M.props.value).join(";");return m.exports.createElement(dot,{scope:e,trigger:h,onTriggerChange:f,valueNode:p,onValueNodeChange:g,valueNodeHasChildren:y,onValueNodeHasChildrenChange:v,contentId:oh(),value:w,onValueChange:S,open:x,onOpenChange:b,dir:_,triggerPointerDownPosRef:E},m.exports.createElement(B0.Provider,{scope:e},m.exports.createElement(hot,{scope:t.__scopeSelect,onNativeOptionAdd:m.exports.useCallback(M=>{k(I=>new Set(I).add(M))},[]),onNativeOptionRemove:m.exports.useCallback(M=>{k(I=>{const F=new Set(I);return F.delete(M),F})},[])},n)),C?m.exports.createElement(v4,{key:$,"aria-hidden":!0,tabIndex:-1,name:u,autoComplete:d,value:w,onChange:M=>S(M.target.value)},Array.from(A)):null)},pot="SelectTrigger",e4=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,"aria-labelledby":i,...o}=t,s=sc(pot,n),a=Ut(e,s.onTriggerChange),l=_2(n),c=kD(s.trigger),u=i||c,[d,h,f]=y4(g=>{const y=l().filter(x=>!x.disabled),v=y.find(x=>x.value===s.value),_=_4(y,g,v);_!==void 0&&s.onValueChange(_.value)}),p=()=>{r||(s.onOpenChange(!0),f())};return m.exports.createElement(Mt.button,et({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-autocomplete":"none","aria-labelledby":u,dir:s.dir,"data-state":s.open?"open":"closed",disabled:r,"data-disabled":r?"":void 0,"data-placeholder":s.value===void 0?"":void 0},o,{ref:a,onPointerDown:Lt(o.onPointerDown,g=>{g.target.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(p(),s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:Lt(o.onKeyDown,g=>{const y=d.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(y&&g.key===" ")&&aot.includes(g.key)&&(p(),g.preventDefault())})}))}),got="SelectValue",n4=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s,...a}=t,l=sc(got,n),{onValueNodeHasChildrenChange:c}=l,u=o!==void 0,d=Ut(e,l.onValueNodeChange);return In(()=>{c(u)},[c,u]),m.exports.createElement(Mt.span,et({},a,{ref:d,style:{pointerEvents:"none"}}),l.value===void 0&&s!==void 0?s:o)}),j0=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...i}=t;return m.exports.createElement(Mt.span,et({"aria-hidden":!0},i,{ref:e}),r||"\u25BC")}),r4=t=>m.exports.createElement(U6,et({asChild:!0},t)),x2="SelectContent",i4=m.exports.forwardRef((t,e)=>{const n=sc(x2,t.__scopeSelect),[r,i]=m.exports.useState();return In(()=>{i(new DocumentFragment)},[]),m.exports.createElement(m.exports.Fragment,null,n.open?m.exports.createElement(mot,et({},t,{ref:e})):r?zn.exports.createPortal(m.exports.createElement(o4,{scope:t.__scopeSelect},m.exports.createElement(B0.Slot,{scope:t.__scopeSelect},m.exports.createElement("div",null,t.children))),r):null)}),oo=10,[o4,ac]=uh(x2),mot=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,onCloseAutoFocus:r,...i}=t,o=sc(x2,n),[s,a]=m.exports.useState(null),[l,c]=m.exports.useState(null),[u,d]=m.exports.useState(null),h=Ut(e,P=>c(P)),[f,p]=m.exports.useState(null),[g,y]=m.exports.useState(null),v=_2(n),[_,x]=m.exports.useState(!1),b=m.exports.useRef(!0),w=m.exports.useRef(!1),S=m.exports.useRef(!1);m.exports.useEffect(()=>{if(l)return W6(l)},[l]),j6();const[E,C]=m.exports.useState();In(()=>{l&&C(window.getComputedStyle(l).zIndex)},[l]);const A=m.exports.useCallback(P=>{const[G,...U]=v().map(j=>j.ref.current),[B]=U.slice(-1),R=document.activeElement;for(const j of P)if(j===R||(j==null||j.scrollIntoView({block:"nearest"}),j===G&&u&&(u.scrollTop=0),j===B&&u&&(u.scrollTop=u.scrollHeight),j==null||j.focus(),document.activeElement!==R))return},[v,u]),k=m.exports.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&l&&u&&f&&g){const P=o.trigger.getBoundingClientRect(),G=l.getBoundingClientRect(),U=o.valueNode.getBoundingClientRect(),B=g.getBoundingClientRect();if(o.dir!=="rtl"){const Ot=B.left-G.left,pe=U.left-Ot,br=P.left-pe,cn=P.width+br,us=Math.max(cn,G.width),ds=window.innerWidth-oo,hs=tx(pe,[oo,ds-us]);s.style.minWidth=cn+"px",s.style.left=hs+"px"}else{const Ot=G.right-B.right,pe=window.innerWidth-U.right-Ot,br=window.innerWidth-P.right-pe,cn=P.width+br,us=Math.max(cn,G.width),ds=window.innerWidth-oo,hs=tx(pe,[oo,ds-us]);s.style.minWidth=cn+"px",s.style.right=hs+"px"}const R=v(),j=window.innerHeight-oo*2,K=u.scrollHeight,it=window.getComputedStyle(l),Yt=parseInt(it.borderTopWidth,10),fe=parseInt(it.paddingTop,10),tr=parseInt(it.borderBottomWidth,10),xr=parseInt(it.paddingBottom,10),ln=Yt+fe+K+xr+tr,Nr=Math.min(f.offsetHeight*5,ln),er=window.getComputedStyle(u),st=parseInt(er.paddingTop,10),ee=parseInt(er.paddingBottom,10),tt=P.top+P.height/2-oo,wt=j-tt,Gt=f.offsetHeight/2,Ee=f.offsetTop+Gt,_n=Yt+fe+Ee,xc=ln-_n;if(_n<=tt){const Ot=f===R[R.length-1].ref.current;s.style.bottom="0px";const pe=l.clientHeight-u.offsetTop-u.offsetHeight,br=Math.max(wt,Gt+(Ot?ee:0)+pe+tr),cn=_n+br;s.style.height=cn+"px"}else{const Ot=f===R[0].ref.current;s.style.top="0px";const pe=Math.max(tt,Yt+u.offsetTop+(Ot?st:0)+Gt)+xc;s.style.height=pe+"px",u.scrollTop=_n-tt+u.offsetTop}s.style.margin=`${oo}px 0`,s.style.minHeight=Nr+"px",s.style.maxHeight=j+"px",x(!0),requestAnimationFrame(()=>w.current=!0)}},[v,o.trigger,o.valueNode,s,l,u,f,g,o.dir]);In(()=>k(),[k]);const $=m.exports.useCallback(()=>A([f,l]),[A,f,l]);m.exports.useEffect(()=>{_&&$()},[_,$]);const M=m.exports.useCallback(P=>{P&&b.current===!0&&(k(),$(),b.current=!1)},[k,$]),{onOpenChange:I,triggerPointerDownPosRef:F}=o;m.exports.useEffect(()=>{if(l){let P={x:0,y:0};const G=B=>{var R,j,K,it;P={x:Math.abs(Math.round(B.pageX)-((R=(j=F.current)===null||j===void 0?void 0:j.x)!==null&&R!==void 0?R:0)),y:Math.abs(Math.round(B.pageY)-((K=(it=F.current)===null||it===void 0?void 0:it.y)!==null&&K!==void 0?K:0))}},U=B=>{P.x<=10&&P.y<=10?B.preventDefault():l.contains(B.target)||I(!1),document.removeEventListener("pointermove",G),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",U,{capture:!0})}}},[l,I,F]),m.exports.useEffect(()=>{const P=()=>I(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[I]);const[L,Y]=y4(P=>{const G=v().filter(R=>!R.disabled),U=G.find(R=>R.ref.current===document.activeElement),B=_4(G,P,U);B&&setTimeout(()=>B.ref.current.focus())}),X=m.exports.useCallback((P,G,U)=>{const B=!S.current&&!U;(o.value!==void 0&&o.value===G||B)&&(p(P),B&&(S.current=!0))},[o.value]),z=m.exports.useCallback(()=>l==null?void 0:l.focus(),[l]),W=m.exports.useCallback((P,G,U)=>{const B=!S.current&&!U;(o.value!==void 0&&o.value===G||B)&&y(P)},[o.value]);return m.exports.createElement(o4,{scope:n,contentWrapper:s,content:l,viewport:u,onViewportChange:d,itemRefCallback:X,selectedItem:f,onItemLeave:z,itemTextRefCallback:W,selectedItemText:g,onScrollButtonChange:M,isPositioned:_,shouldExpandOnScrollRef:w,searchRef:L},m.exports.createElement(J6,{as:Hl,allowPinchZoom:!0},m.exports.createElement("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E}},m.exports.createElement(V6,{asChild:!0,trapped:o.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:Lt(r,P=>{var G;(G=o.trigger)===null||G===void 0||G.focus({preventScroll:!0}),P.preventDefault()})},m.exports.createElement(z6,et({role:"listbox",id:o.contentId,"data-state":o.open?"open":"closed",dir:o.dir,onContextMenu:P=>P.preventDefault()},i,{ref:h,style:{display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none",...i.style},disableOutsidePointerEvents:!0,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>o.onOpenChange(!1),onKeyDown:Lt(i.onKeyDown,P=>{const G=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!G&&P.key.length===1&&Y(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let U=v().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(P.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const B=P.target,R=U.indexOf(B);U=U.slice(R+1)}setTimeout(()=>A(U)),P.preventDefault()}})}))))))}),vot="SelectViewport",s4=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=ac(vot,n),o=Ut(e,i.onViewportChange),s=m.exports.useRef(0);return m.exports.createElement(m.exports.Fragment,null,m.exports.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),m.exports.createElement(B0.Slot,{scope:n},m.exports.createElement(Mt.div,et({"data-radix-select-viewport":"",role:"presentation"},r,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Lt(r.onScroll,a=>{const l=a.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:u}=i;if(u!=null&&u.current&&c){const d=Math.abs(s.current-l.scrollTop);if(d>0){const h=window.innerHeight-oo*2,f=parseFloat(c.style.minHeight),p=parseFloat(c.style.height),g=Math.max(f,p);if(g<h){const y=g+d,v=Math.min(h,y),_=y-v;c.style.height=v+"px",c.style.bottom==="0px"&&(l.scrollTop=_>0?_:0,c.style.justifyContent="flex-end")}}}s.current=l.scrollTop})}))))}),yot="SelectGroup",[_ot,xot]=uh(yot),a4=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=oh();return m.exports.createElement(_ot,{scope:n,id:i},m.exports.createElement(Mt.div,et({role:"group","aria-labelledby":i},r,{ref:e})))}),bot="SelectLabel",l4=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=xot(bot,n);return m.exports.createElement(Mt.div,et({id:i.id},r,{ref:e}))}),ux="SelectItem",[wot,c4]=uh(ux),u4=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=t,a=sc(ux,n),l=ac(ux,n),c=a.value===r,[u,d]=m.exports.useState(o!=null?o:""),[h,f]=m.exports.useState(!1),p=Ut(e,v=>{var _;return(_=l.itemRefCallback)===null||_===void 0?void 0:_.call(l,v,r,i)}),g=oh(),y=()=>{i||(a.onValueChange(r),a.onOpenChange(!1))};return m.exports.createElement(wot,{scope:n,value:r,disabled:i,textId:g,isSelected:c,onItemTextChange:m.exports.useCallback(v=>{d(_=>{var x;return _||((x=v==null?void 0:v.textContent)!==null&&x!==void 0?x:"").trim()})},[])},m.exports.createElement(B0.ItemSlot,{scope:n,value:r,disabled:i,textValue:u},m.exports.createElement(Mt.div,et({role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},s,{ref:p,onFocus:Lt(s.onFocus,()=>f(!0)),onBlur:Lt(s.onBlur,()=>f(!1)),onPointerUp:Lt(s.onPointerUp,y),onPointerMove:Lt(s.onPointerMove,v=>{if(i){var _;(_=l.onItemLeave)===null||_===void 0||_.call(l)}else v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Lt(s.onPointerLeave,v=>{if(v.currentTarget===document.activeElement){var _;(_=l.onItemLeave)===null||_===void 0||_.call(l)}}),onKeyDown:Lt(s.onKeyDown,v=>{var _;((_=l.searchRef)===null||_===void 0?void 0:_.current)!==""&&v.key===" "||(lot.includes(v.key)&&y(),v.key===" "&&v.preventDefault())})}))))}),Cf="SelectItemText",d4=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,...o}=t,s=sc(Cf,n),a=ac(Cf,n),l=c4(Cf,n),c=fot(Cf,n),[u,d]=m.exports.useState(null),h=Ut(e,v=>d(v),l.onItemTextChange,v=>{var _;return(_=a.itemTextRefCallback)===null||_===void 0?void 0:_.call(a,v,l.value,l.disabled)}),f=u==null?void 0:u.textContent,p=m.exports.useMemo(()=>m.exports.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},f),[l.disabled,l.value,f]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=c;return In(()=>(g(p),()=>y(p)),[g,y,p]),m.exports.createElement(m.exports.Fragment,null,m.exports.createElement(Mt.span,et({id:l.textId},o,{ref:h})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?zn.exports.createPortal(o.children,s.valueNode):null)}),Sot="SelectItemIndicator",h4=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return c4(Sot,n).isSelected?m.exports.createElement(Mt.span,et({"aria-hidden":!0},r,{ref:e})):null}),Eot="SelectScrollUpButton",f4=m.exports.forwardRef((t,e)=>{const n=ac(Eot,t.__scopeSelect),[r,i]=m.exports.useState(!1),o=Ut(e,n.onScrollButtonChange);return In(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=a.scrollTop>0;i(l)};const a=n.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?m.exports.createElement(g4,et({},t,{ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop-a.offsetHeight)}})):null}),Cot="SelectScrollDownButton",p4=m.exports.forwardRef((t,e)=>{const n=ac(Cot,t.__scopeSelect),[r,i]=m.exports.useState(!1),o=Ut(e,n.onScrollButtonChange);return In(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=a.scrollHeight-a.clientHeight,c=Math.ceil(a.scrollTop)<l;i(c)};const a=n.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?m.exports.createElement(g4,et({},t,{ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop+a.offsetHeight)}})):null}),g4=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=t,o=ac("SelectScrollButton",n),s=m.exports.useRef(null),a=_2(n),l=m.exports.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return m.exports.useEffect(()=>()=>l(),[l]),In(()=>{var c;const u=a().find(d=>d.ref.current===document.activeElement);u==null||(c=u.ref.current)===null||c===void 0||c.scrollIntoView({block:"nearest"})},[a]),m.exports.createElement(Mt.div,et({"aria-hidden":!0},i,{ref:e,style:{flexShrink:0,...i.style},onPointerMove:Lt(i.onPointerMove,()=>{var c;(c=o.onItemLeave)===null||c===void 0||c.call(o),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Lt(i.onPointerLeave,()=>{l()})}))}),m4=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return m.exports.createElement(Mt.div,et({"aria-hidden":!0},r,{ref:e}))}),v4=m.exports.forwardRef((t,e)=>{const{value:n,...r}=t,i=m.exports.useRef(null),o=Ut(e,i),s=Kw(n);return m.exports.useEffect(()=>{const a=i.current,l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&c){const u=new Event("change",{bubbles:!0});c.call(a,n),a.dispatchEvent(u)}},[s,n]),m.exports.createElement(Cit,{asChild:!0},m.exports.createElement("select",et({},r,{ref:o,defaultValue:n})))});v4.displayName="BubbleSelect";function y4(t){const e=Xo(t),n=m.exports.useRef(""),r=m.exports.useRef(0),i=m.exports.useCallback(s=>{const a=n.current+s;e(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[e]),o=m.exports.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return m.exports.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function _4(t,e,n){const r=e.length>1&&Array.from(e).every(a=>a===e[0])?e[0]:e,i=n?t.indexOf(n):-1;let o=kot(t,Math.max(i,0));r.length===1&&(o=o.filter(a=>a!==n));const s=o.find(a=>a.textValue.toLowerCase().startsWith(r.toLowerCase()));return s!==n?s:void 0}function kot(t,e){return t.map((n,r)=>t[(e+r)%t.length])}const Aot=t4,x4=e4,Tot=n4,$ot=j0,b4=r4,w4=i4,S4=s4,Mot=a4,Pot=l4,E4=u4,C4=d4,k4=h4,Oot=f4,Rot=p4,Lot=m4,Dot=Object.freeze(Object.defineProperty({__proto__:null,createSelectScope:uot,Select:t4,SelectTrigger:e4,SelectValue:n4,SelectIcon:j0,SelectPortal:r4,SelectContent:i4,SelectViewport:s4,SelectGroup:a4,SelectLabel:l4,SelectItem:u4,SelectItemText:d4,SelectItemIndicator:h4,SelectScrollUpButton:f4,SelectScrollDownButton:p4,SelectSeparator:m4,Root:Aot,Trigger:x4,Value:Tot,Icon:$ot,Portal:b4,Content:w4,Viewport:S4,Group:Mot,Label:Pot,Item:E4,ItemText:C4,ItemIndicator:k4,ScrollUpButton:Oot,ScrollDownButton:Rot,Separator:Lot},Symbol.toStringTag,{value:"Module"})),Iot=t=>O("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:O("g",{clipPath:"url(#clip0_17_2062)",children:O("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"})})}),Not=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("g",{clipPath:"url(#clip0_17_4631)",children:O("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"})})}),A4=N(x4)`
553
- display: inline-flex;
554
- align-items: center;
555
- justify-content: space-between;
556
- background-color: ${D["--ll-color-background"]};
557
- border-radius: ${D["--ll-border-radius-small"]};
558
- border: 1px solid ${D["--ll-color-border"]};
559
- color: ${D["--ll-color-on-background-variant1"]};
560
- padding: ${D["--ll-spacing-xx-small"]} ${D["--ll-spacing-x-small"]}
561
- ${D["--ll-spacing-xx-small"]} ${D["--ll-spacing-small"]};
562
- flex: 1;
563
- height: ${({size:t})=>t==="medium"?"32px":"40px"};
564
- font-size: ${({size:t})=>t==="medium"?D["--ll-font-size-p"]:D["--ll-font-size-h6"]};
565
- `,Fot=N(j0)`
566
- margin-left: ${D["--ll-spacing-x-small"]};
567
- `,T4=N(w4)`
568
- overflow: hidden;
569
- background-color: ${D["--ll-color-background"]};
570
- border-radius: ${D["--ll-border-radius-small"]};
571
- box-shadow: ${D["--ll-shadow-medium"]};
572
- min-width: 120px;
573
- z-index: 2;
574
- font-size: ${({size:t})=>t==="medium"?D["--ll-font-size-p"]:D["--ll-font-size-h6"]};
575
- `,$4=N(E4)`
576
- font-family: ${D["--ll-font-family"]};
577
- font-size: inherit;
578
- padding: ${D["--ll-spacing-xx-small"]} ${D["--ll-spacing-x-large"]}
579
- ${D["--ll-spacing-xx-small"]} ${D["--ll-spacing-large"]};
580
- outline: none;
581
- border-radius: ${D["--ll-border-radius-small"]};
582
- position: relative;
583
- color: ${D["--ll-color-on-surface-variant1"]};
584
- cursor: default;
585
-
586
- &[data-highlighted] {
587
- background-color: ${D["--ll-color-primary"]};
588
- color: ${D["--ll-color-on-primary"]};
589
- }
590
- `,M4=N(k4)`
591
- position: absolute;
592
- left: 0;
593
- height: 100%;
594
- left: 0;
595
- bottom: 0;
596
- width: ${D["--ll-spacing-large"]};
597
- display: inline-flex;
598
- align-items: center;
599
- justify-content: center;
600
- `,P4=N(S4)`
601
- font-size: inherit;
602
- padding: ${D["--ll-spacing-base-unit"]};
603
- `,zot=N(b4)`
604
- z-index: 1;
605
- `,Bot=Object.freeze(Object.defineProperty({__proto__:null,Trigger:A4,SelectIcon:Fot,Content:T4,Item:$4,ItemIndicator:M4,Viewport:P4,Portal:zot},Symbol.toStringTag,{value:"Module"})),jot=({size:t="medium",children:e,...n})=>cr(A4,{size:t,...n,children:[e,ot(j0,{children:ot(Zw,{SVGElement:Iot,fill:D["--ll-color-on-background-variant1"],height:20})})]}),Vot=({size:t="medium",children:e,...n})=>ot(T4,{size:t,...n,children:ot(P4,{children:e})}),Hot=({children:t,...e})=>cr($4,{...e,children:[ot(C4,{children:t}),ot(M4,{children:ot(Zw,{SVGElement:Not,fill:"currentColor",height:12})})]}),{Root:Uot}=Dot,{Portal:Wot}=Bot,Owt=Object.freeze(Object.defineProperty({__proto__:null,Root:Uot,Trigger:jot,Content:Vot,Item:Hot,Portal:Wot},Symbol.toStringTag,{value:"Module"}));function lc(t){return t.split("-")[0]}function V0(t){return t.split("-")[1]}function cc(t){return["top","bottom"].includes(lc(t))?"x":"y"}function b2(t){return t==="y"?"height":"width"}function I5(t,e,n){let{reference:r,floating:i}=t;const o=r.x+r.width/2-i.width/2,s=r.y+r.height/2-i.height/2,a=cc(e),l=b2(a),c=r[l]/2-i[l]/2,u=lc(e),d=a==="x";let h;switch(u){case"top":h={x:o,y:r.y-i.height};break;case"bottom":h={x:o,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:s};break;case"left":h={x:r.x-i.width,y:s};break;default:h={x:r.x,y:r.y}}switch(V0(e)){case"start":h[a]-=c*(n&&d?-1:1);break;case"end":h[a]+=c*(n&&d?-1:1);break}return h}const Yot=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=await(s.isRTL==null?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:u}=I5(l,r,a),d=r,h={},f=0;for(let p=0;p<o.length;p++){const{name:g,fn:y}=o[p],{x:v,y:_,data:x,reset:b}=await y({x:c,y:u,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:l,platform:s,elements:{reference:t,floating:e}});if(c=v!=null?v:c,u=_!=null?_:u,h={...h,[g]:{...h[g],...x}},b&&f<=50){f++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(l=b.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):b.rects),{x:c,y:u}=I5(l,d,a)),p=-1;continue}}return{x:c,y:u,placement:d,strategy:i,middlewareData:h}};function Got(t){return{top:0,right:0,bottom:0,left:0,...t}}function O4(t){return typeof t!="number"?Got(t):{top:t,right:t,bottom:t,left:t}}function im(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function om(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=e,p=O4(f),g=a[h?d==="floating"?"reference":"floating":d],y=im(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v=im(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),strategy:l}):s[d]);return{top:y.top-v.top+p.top,bottom:v.bottom-y.bottom+p.bottom,left:y.left-v.left+p.left,right:v.right-y.right+p.right}}const qot=Math.min,Zot=Math.max;function dx(t,e,n){return Zot(t,qot(e,n))}const N5=t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:r=0}=t!=null?t:{},{x:i,y:o,placement:s,rects:a,platform:l}=e;if(n==null)return{};const c=O4(r),u={x:i,y:o},d=cc(s),h=V0(s),f=b2(d),p=await l.getDimensions(n),g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=a.reference[f]+a.reference[d]-u[d]-a.floating[f],_=u[d]-a.reference[d],x=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let b=x?d==="y"?x.clientHeight||0:x.clientWidth||0:0;b===0&&(b=a.floating[f]);const w=v/2-_/2,S=c[g],E=b-p[f]-c[y],C=b/2-p[f]/2+w,A=dx(S,C,E),k=(h==="start"?c[g]:c[y])>0&&C!==A&&a.reference[f]<=a.floating[f]?C<S?S-C:E-C:0;return{[d]:u[d]-k,data:{[d]:A,centerOffset:C-A}}}}),Xot={left:"right",right:"left",bottom:"top",top:"bottom"};function sm(t){return t.replace(/left|right|bottom|top/g,e=>Xot[e])}function Kot(t,e,n){n===void 0&&(n=!1);const r=V0(t),i=cc(t),o=b2(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=sm(s)),{main:s,cross:sm(s)}}const Qot={start:"end",end:"start"};function F5(t){return t.replace(/start|end/g,e=>Qot[e])}const Jot=["top","right","bottom","left"];function tst(t){const e=sm(t);return[F5(t),e,F5(e)]}const est=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:s,platform:a,elements:l}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",flipAlignment:f=!0,...p}=t,g=lc(r),y=d||(g===s||!f?[sm(s)]:tst(s)),v=[s,...y],_=await om(e,p),x=[];let b=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&x.push(_[g]),u){const{main:C,cross:A}=Kot(r,o,await(a.isRTL==null?void 0:a.isRTL(l.floating)));x.push(_[C],_[A])}if(b=[...b,{placement:r,overflows:x}],!x.every(C=>C<=0)){var w,S;const C=((w=(S=i.flip)==null?void 0:S.index)!=null?w:0)+1,A=v[C];if(A)return{data:{index:C,overflows:b},reset:{placement:A}};let k="bottom";switch(h){case"bestFit":{var E;const $=(E=b.map(M=>[M,M.overflows.filter(I=>I>0).reduce((I,F)=>I+F,0)]).sort((M,I)=>M[1]-I[1])[0])==null?void 0:E[0].placement;$&&(k=$);break}case"initialPlacement":k=s;break}if(r!==k)return{reset:{placement:k}}}return{}}}};function z5(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function B5(t){return Jot.some(e=>t[e]>=0)}const nst=function(t){let{strategy:e="referenceHidden",...n}=t===void 0?{}:t;return{name:"hide",async fn(r){const{rects:i}=r;switch(e){case"referenceHidden":{const o=await om(r,{...n,elementContext:"reference"}),s=z5(o,i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:B5(s)}}}case"escaped":{const o=await om(r,{...n,altBoundary:!0}),s=z5(o,i.floating);return{data:{escapedOffsets:s,escaped:B5(s)}}}default:return{}}}}};async function rst(t,e){const{placement:n,platform:r,elements:i}=t,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=lc(n),a=V0(n),l=cc(n)==="x",c=["left","top"].includes(s)?-1:1,u=o&&l?-1:1,d=typeof e=="function"?e(t):e;let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(f=a==="end"?p*-1:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}const ist=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:r}=e,i=await rst(e,t);return{x:n+i.x,y:r+i.y,data:i}}}};function R4(t){return t==="x"?"y":"x"}const ost=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:v,y:_}=y;return{x:v,y:_}}},...l}=t,c={x:n,y:r},u=await om(e,l),d=cc(lc(i)),h=R4(d);let f=c[d],p=c[h];if(o){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",_=f+u[y],x=f-u[v];f=dx(_,f,x)}if(s){const y=h==="y"?"top":"left",v=h==="y"?"bottom":"right",_=p+u[y],x=p-u[v];p=dx(_,p,x)}const g=a.fn({...e,[d]:f,[h]:p});return{...g,data:{x:g.x-n,y:g.y-r}}}}},sst=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=t,u={x:n,y:r},d=cc(i),h=R4(d);let f=u[d],p=u[h];const g=typeof a=="function"?a({...o,placement:i}):a,y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=d==="y"?"height":"width",S=o.reference[d]-o.floating[w]+y.mainAxis,E=o.reference[d]+o.reference[w]-y.mainAxis;f<S?f=S:f>E&&(f=E)}if(c){var v,_,x,b;const w=d==="y"?"width":"height",S=["top","left"].includes(lc(i)),E=o.reference[h]-o.floating[w]+(S&&(v=(_=s.offset)==null?void 0:_[h])!=null?v:0)+(S?0:y.crossAxis),C=o.reference[h]+o.reference[w]+(S?0:(x=(b=s.offset)==null?void 0:b[h])!=null?x:0)-(S?y.crossAxis:0);p<E?p=E:p>C&&(p=C)}return{[d]:f,[h]:p}}}};function L4(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function qi(t){if(t==null)return window;if(!L4(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function dh(t){return qi(t).getComputedStyle(t)}function ji(t){return L4(t)?"":t?(t.nodeName||"").toLowerCase():""}function D4(){const t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function ai(t){return t instanceof qi(t).HTMLElement}function Qo(t){return t instanceof qi(t).Element}function ast(t){return t instanceof qi(t).Node}function w2(t){if(typeof ShadowRoot>"u")return!1;const e=qi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function H0(t){const{overflow:e,overflowX:n,overflowY:r}=dh(t);return/auto|scroll|overlay|hidden/.test(e+r+n)}function lst(t){return["table","td","th"].includes(ji(t))}function I4(t){const e=/firefox/i.test(D4()),n=dh(t);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||e&&n.willChange==="filter"||e&&(n.filter?n.filter!=="none":!1)}function N4(){return!/^((?!chrome|android).)*safari/i.test(D4())}const j5=Math.min,Fu=Math.max,am=Math.round;function Vi(t,e,n){var r,i,o,s;e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect();let l=1,c=1;e&&ai(t)&&(l=t.offsetWidth>0&&am(a.width)/t.offsetWidth||1,c=t.offsetHeight>0&&am(a.height)/t.offsetHeight||1);const u=Qo(t)?qi(t):window,d=!N4()&&n,h=(a.left+(d&&(r=(i=u.visualViewport)==null?void 0:i.offsetLeft)!=null?r:0))/l,f=(a.top+(d&&(o=(s=u.visualViewport)==null?void 0:s.offsetTop)!=null?o:0))/c,p=a.width/l,g=a.height/c;return{width:p,height:g,top:f,right:h+p,bottom:f+g,left:h,x:h,y:f}}function os(t){return((ast(t)?t.ownerDocument:t.document)||window.document).documentElement}function U0(t){return Qo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function F4(t){return Vi(os(t)).left+U0(t).scrollLeft}function cst(t){const e=Vi(t);return am(e.width)!==t.offsetWidth||am(e.height)!==t.offsetHeight}function ust(t,e,n){const r=ai(e),i=os(e),o=Vi(t,r&&cst(e),n==="fixed");let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((ji(e)!=="body"||H0(i))&&(s=U0(e)),ai(e)){const l=Vi(e,!0);a.x=l.x+e.clientLeft,a.y=l.y+e.clientTop}else i&&(a.x=F4(i));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}function z4(t){return ji(t)==="html"?t:t.assignedSlot||t.parentNode||(w2(t)?t.host:null)||os(t)}function V5(t){return!ai(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function dst(t){let e=z4(t);for(w2(e)&&(e=e.host);ai(e)&&!["html","body"].includes(ji(e));){if(I4(e))return e;e=e.parentNode}return null}function hx(t){const e=qi(t);let n=V5(t);for(;n&&lst(n)&&getComputedStyle(n).position==="static";)n=V5(n);return n&&(ji(n)==="html"||ji(n)==="body"&&getComputedStyle(n).position==="static"&&!I4(n))?e:n||dst(t)||e}function H5(t){if(ai(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=Vi(t);return{width:e.width,height:e.height}}function hst(t){let{rect:e,offsetParent:n,strategy:r}=t;const i=ai(n),o=os(n);if(n===o)return e;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((i||!i&&r!=="fixed")&&((ji(n)!=="body"||H0(o))&&(s=U0(n)),ai(n))){const l=Vi(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}return{...e,x:e.x-s.scrollLeft+a.x,y:e.y-s.scrollTop+a.y}}function fst(t,e){const n=qi(t),r=os(t),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=N4();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function pst(t){var e;const n=os(t),r=U0(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=Fu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Fu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-r.scrollLeft+F4(t);const l=-r.scrollTop;return dh(i||n).direction==="rtl"&&(a+=Fu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function B4(t){const e=z4(t);return["html","body","#document"].includes(ji(e))?t.ownerDocument.body:ai(e)&&H0(e)?e:B4(e)}function lm(t,e){var n;e===void 0&&(e=[]);const r=B4(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=qi(r),s=i?[o].concat(o.visualViewport||[],H0(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(lm(s))}function gst(t,e){const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&w2(n)){let r=e;do{if(r&&t===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function mst(t,e){const n=Vi(t,!1,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:r,left:i,x:i,y:r,right:i+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function U5(t,e,n){return e==="viewport"?im(fst(t,n)):Qo(e)?mst(e,n):im(pst(os(t)))}function vst(t){const e=lm(t),n=["absolute","fixed"].includes(dh(t).position)&&ai(t)?hx(t):t;return Qo(n)?e.filter(r=>Qo(r)&&gst(r,n)&&ji(r)!=="body"):[]}function yst(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?vst(e):[].concat(n),r],s=o[0],a=o.reduce((l,c)=>{const u=U5(e,c,i);return l.top=Fu(u.top,l.top),l.right=j5(u.right,l.right),l.bottom=j5(u.bottom,l.bottom),l.left=Fu(u.left,l.left),l},U5(e,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}const _st={getClippingRect:yst,convertOffsetParentRelativeRectToViewportRelativeRect:hst,isElement:Qo,getDimensions:H5,getOffsetParent:hx,getDocumentElement:os,getElementRects:t=>{let{reference:e,floating:n,strategy:r}=t;return{reference:ust(e,hx(n),r),floating:{...H5(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>dh(t).direction==="rtl"};function xst(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=!0,animationFrame:a=!1}=r,l=i&&!a,c=o&&!a,u=l||c?[...Qo(t)?lm(t):[],...lm(e)]:[];u.forEach(g=>{l&&g.addEventListener("scroll",n,{passive:!0}),c&&g.addEventListener("resize",n)});let d=null;if(s){let g=!0;d=new ResizeObserver(()=>{g||n(),g=!1}),Qo(t)&&!a&&d.observe(t),d.observe(e)}let h,f=a?Vi(t):null;a&&p();function p(){const g=Vi(t);f&&(g.x!==f.x||g.y!==f.y||g.width!==f.width||g.height!==f.height)&&n(),f=g,h=requestAnimationFrame(p)}return n(),()=>{var g;u.forEach(y=>{l&&y.removeEventListener("scroll",n),c&&y.removeEventListener("resize",n)}),(g=d)==null||g.disconnect(),d=null,a&&cancelAnimationFrame(h)}}const bst=(t,e,n)=>Yot(t,e,{platform:_st,...n});var fx=typeof document<"u"?m.exports.useLayoutEffect:m.exports.useEffect;function px(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!px(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&t.$$typeof)&&!px(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function wst(t){const e=m.exports.useRef(t);return fx(()=>{e.current=t}),e}function Sst(t){let{middleware:e,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=t===void 0?{}:t;const o=m.exports.useRef(null),s=m.exports.useRef(null),a=wst(i),l=m.exports.useRef(null),[c,u]=m.exports.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,h]=m.exports.useState(e);px(d==null?void 0:d.map(x=>{let{options:b}=x;return b}),e==null?void 0:e.map(x=>{let{options:b}=x;return b}))||h(e);const f=m.exports.useCallback(()=>{!o.current||!s.current||bst(o.current,s.current,{middleware:d,placement:n,strategy:r}).then(x=>{p.current&&zn.exports.flushSync(()=>{u(x)})})},[d,n,r]);fx(()=>{p.current&&f()},[f]);const p=m.exports.useRef(!1);fx(()=>(p.current=!0,()=>{p.current=!1}),[]);const g=m.exports.useCallback(()=>{if(typeof l.current=="function"&&(l.current(),l.current=null),o.current&&s.current)if(a.current){const x=a.current(o.current,s.current,f);l.current=x}else f()},[f,a]),y=m.exports.useCallback(x=>{o.current=x,g()},[g]),v=m.exports.useCallback(x=>{s.current=x,g()},[g]),_=m.exports.useMemo(()=>({reference:o,floating:s}),[]);return m.exports.useMemo(()=>({...c,update:f,refs:_,reference:y,floating:v}),[c,f,_,y,v])}const Est=t=>{const{element:e,padding:n}=t;function r(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:t,fn(i){return r(e)?e.current!=null?N5({element:e.current,padding:n}).fn(i):{}:e?N5({element:e,padding:n}).fn(i):{}}}},Cst=m.exports.forwardRef((t,e)=>{const{children:n,width:r=10,height:i=5,...o}=t;return m.exports.createElement(Mt.svg,et({},o,{ref:e,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?n:m.exports.createElement("polygon",{points:"0,0 30,0 15,10"}))}),kst=Cst,j4="Popper",[S2,V4]=oc(j4),[Ast,H4]=S2(j4),Tst=t=>{const{__scopePopper:e,children:n}=t,[r,i]=m.exports.useState(null);return m.exports.createElement(Ast,{scope:e,anchor:r,onAnchorChange:i},n)},$st="PopperAnchor",Mst=m.exports.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...i}=t,o=H4($st,n),s=m.exports.useRef(null),a=Ut(e,s);return m.exports.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:m.exports.createElement(Mt.div,et({},i,{ref:a}))}),cm="PopperContent",[Pst,Ost]=S2(cm),[Rst,Lst]=S2(cm,{hasParent:!1,positionUpdateFns:new Set}),Dst=m.exports.forwardRef((t,e)=>{var n,r,i,o,s,a,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:h=0,align:f="center",alignOffset:p=0,arrowPadding:g=0,collisionBoundary:y=[],collisionPadding:v=0,sticky:_="partial",hideWhenDetached:x=!1,avoidCollisions:b=!0,...w}=t,S=H4(cm,u),[E,C]=m.exports.useState(null),A=Ut(e,Ee=>C(Ee)),[k,$]=m.exports.useState(null),M=Qw(k),I=(n=M==null?void 0:M.width)!==null&&n!==void 0?n:0,F=(r=M==null?void 0:M.height)!==null&&r!==void 0?r:0,L=d+(f!=="center"?"-"+f:""),Y=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},X=Array.isArray(y)?y:[y],z=X.length>0,W={padding:Y,boundary:X.filter(Bst),altBoundary:z},{reference:P,floating:G,strategy:U,x:B,y:R,placement:j,middlewareData:K,update:it}=Sst({strategy:"fixed",placement:L,whileElementsMounted:xst,middleware:[ist({mainAxis:h+F,alignmentAxis:p}),b?ost({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?sst():void 0,...W}):void 0,k?Est({element:k,padding:g}):void 0,b?est({...W}):void 0,jst({arrowWidth:I,arrowHeight:F}),x?nst({strategy:"referenceHidden"}):void 0].filter(zst)});In(()=>{P(S.anchor)},[P,S.anchor]);const Yt=B!==null&&R!==null,[fe,tr]=U4(j),xr=(i=K.arrow)===null||i===void 0?void 0:i.x,ln=(o=K.arrow)===null||o===void 0?void 0:o.y,Nr=((s=K.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[er,st]=m.exports.useState();In(()=>{E&&st(window.getComputedStyle(E).zIndex)},[E]);const{hasParent:ee,positionUpdateFns:tt}=Lst(cm,u),wt=!ee;m.exports.useLayoutEffect(()=>{if(!wt)return tt.add(it),()=>{tt.delete(it)}},[wt,tt,it]),m.exports.useLayoutEffect(()=>{wt&&Yt&&Array.from(tt).reverse().forEach(Ee=>requestAnimationFrame(Ee))},[wt,Yt,tt]);const Gt={"data-side":fe,"data-align":tr,...w,ref:A,style:{...w.style,animation:Yt?void 0:"none",opacity:(a=K.hide)!==null&&a!==void 0&&a.referenceHidden?0:void 0}};return m.exports.createElement("div",{ref:G,"data-radix-popper-content-wrapper":"",style:{position:U,left:0,top:0,transform:Yt?`translate3d(${Math.round(B)}px, ${Math.round(R)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:er,["--radix-popper-transform-origin"]:[(l=K.transformOrigin)===null||l===void 0?void 0:l.x,(c=K.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")}},m.exports.createElement(Pst,{scope:u,placedSide:fe,onArrowChange:$,arrowX:xr,arrowY:ln,shouldHideArrow:Nr},wt?m.exports.createElement(Rst,{scope:u,hasParent:!0,positionUpdateFns:tt},m.exports.createElement(Mt.div,Gt)):m.exports.createElement(Mt.div,Gt)))}),Ist="PopperArrow",Nst={top:"bottom",right:"left",bottom:"top",left:"right"},Fst=m.exports.forwardRef(function(t,e){const{__scopePopper:n,...r}=t,i=Ost(Ist,n),o=Nst[i.placedSide];return m.exports.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},m.exports.createElement(kst,et({},r,{ref:e,style:{...r.style,display:"block"}})))});function zst(t){return t!==void 0}function Bst(t){return t!==null}const jst=t=>({name:"transformOrigin",options:t,fn(e){var n,r,i,o,s;const{placement:a,rects:l,middlewareData:c}=e,u=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=u?0:t.arrowWidth,h=u?0:t.arrowHeight,[f,p]=U4(a),g={start:"0%",center:"50%",end:"100%"}[p],y=((r=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+d/2,v=((o=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&o!==void 0?o:0)+h/2;let _="",x="";return f==="bottom"?(_=u?g:`${y}px`,x=`${-h}px`):f==="top"?(_=u?g:`${y}px`,x=`${l.floating.height+h}px`):f==="right"?(_=`${-h}px`,x=u?g:`${v}px`):f==="left"&&(_=`${l.floating.width+h}px`,x=u?g:`${v}px`),{data:{x:_,y:x}}}});function U4(t){const[e,n="center"]=t.split("-");return[e,n]}const Vst=Tst,W4=Mst,Hst=Dst,Ust=Fst;function Wst(t,e){return m.exports.useReducer((n,r)=>{const i=e[n][r];return i!=null?i:n},t)}const E2=t=>{const{present:e,children:n}=t,r=Yst(e),i=typeof n=="function"?n({present:r.isPresent}):m.exports.Children.only(n),o=Ut(r.ref,i.ref);return typeof n=="function"||r.isPresent?m.exports.cloneElement(i,{ref:o}):null};E2.displayName="Presence";function Yst(t){const[e,n]=m.exports.useState(),r=m.exports.useRef({}),i=m.exports.useRef(t),o=m.exports.useRef("none"),s=t?"mounted":"unmounted",[a,l]=Wst(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.exports.useEffect(()=>{const c=kf(r.current);o.current=a==="mounted"?c:"none"},[a]),In(()=>{const c=r.current,u=i.current;if(u!==t){const d=o.current,h=kf(c);t?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),In(()=>{if(e){const c=d=>{const h=kf(r.current).includes(d.animationName);d.target===e&&h&&zn.exports.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===e&&(o.current=kf(r.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.exports.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function kf(t){return(t==null?void 0:t.animationName)||"none"}const Y4="Popover",[G4,Gst]=oc(Y4,[V4]),hh=V4(),[qst,ss]=G4(Y4),q4=t=>{const{__scopePopover:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=t,a=hh(e),l=m.exports.useRef(null),[c,u]=m.exports.useState(!1),[d=!1,h]=Md({prop:r,defaultProp:i,onChange:o});return m.exports.createElement(Vst,a,m.exports.createElement(qst,{scope:e,contentId:oh(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:m.exports.useCallback(()=>h(f=>!f),[h]),hasCustomAnchor:c,onCustomAnchorAdd:m.exports.useCallback(()=>u(!0),[]),onCustomAnchorRemove:m.exports.useCallback(()=>u(!1),[]),modal:s},n))},Zst="PopoverAnchor",Z4=m.exports.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=ss(Zst,n),o=hh(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=i;return m.exports.useEffect(()=>(s(),()=>a()),[s,a]),m.exports.createElement(W4,et({},o,r,{ref:e}))}),Xst="PopoverTrigger",X4=m.exports.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=ss(Xst,n),o=hh(n),s=Ut(e,i.triggerRef),a=m.exports.createElement(Mt.button,et({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":rI(i.open)},r,{ref:s,onClick:Lt(t.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?a:m.exports.createElement(W4,et({asChild:!0},o),a)}),K4="PopoverPortal",[Kst,Qst]=G4(K4,{forceMount:void 0}),Q4=t=>{const{__scopePopover:e,forceMount:n,children:r,container:i}=t,o=ss(K4,e);return m.exports.createElement(Kst,{scope:e,forceMount:n},m.exports.createElement(E2,{present:n||o.open},m.exports.createElement(U6,{asChild:!0,container:i},r)))},Id="PopoverContent",J4=m.exports.forwardRef((t,e)=>{const n=Qst(Id,t.__scopePopover),{forceMount:r=n.forceMount,...i}=t,o=ss(Id,t.__scopePopover);return m.exports.createElement(E2,{present:r||o.open},o.modal?m.exports.createElement(Jst,et({},i,{ref:e})):m.exports.createElement(tat,et({},i,{ref:e})))}),Jst=m.exports.forwardRef((t,e)=>{const n=ss(Id,t.__scopePopover),r=m.exports.useRef(null),i=Ut(e,r),o=m.exports.useRef(!1);return m.exports.useEffect(()=>{const s=r.current;if(s)return W6(s)},[]),m.exports.createElement(J6,{as:Hl,allowPinchZoom:!0},m.exports.createElement(tI,et({},t,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Lt(t.onCloseAutoFocus,s=>{var a;s.preventDefault(),o.current||(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:Lt(t.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;o.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Lt(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),tat=m.exports.forwardRef((t,e)=>{const n=ss(Id,t.__scopePopover),r=m.exports.useRef(!1);return m.exports.createElement(tI,et({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o;if((o=t.onCloseAutoFocus)===null||o===void 0||o.call(t,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1},onInteractOutside:i=>{var o,s;(o=t.onInteractOutside)===null||o===void 0||o.call(t,i),i.defaultPrevented||(r.current=!0);const a=i.target;!((s=n.triggerRef.current)===null||s===void 0)&&s.contains(a)&&i.preventDefault()}}))}),tI=m.exports.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=t,h=ss(Id,n),f=hh(n);return j6(),m.exports.createElement(V6,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},m.exports.createElement(z6,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1)},m.exports.createElement(Hst,et({"data-state":rI(h.open),role:"dialog",id:h.contentId},f,d,{ref:e,style:{...d.style,["--radix-popover-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))))}),eat="PopoverClose",eI=m.exports.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=ss(eat,n);return m.exports.createElement(Mt.button,et({type:"button"},r,{ref:e,onClick:Lt(t.onClick,()=>i.onOpenChange(!1))}))}),nI=m.exports.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=hh(n);return m.exports.createElement(Ust,et({},i,r,{ref:e}))});function rI(t){return t?"open":"closed"}const nat=q4,rat=Z4,iI=X4,iat=Q4,oI=J4,oat=eI,sI=nI,sat=Object.freeze(Object.defineProperty({__proto__:null,createPopoverScope:Gst,Popover:q4,PopoverAnchor:Z4,PopoverTrigger:X4,PopoverPortal:Q4,PopoverContent:J4,PopoverClose:eI,PopoverArrow:nI,Root:nat,Anchor:rat,Trigger:iI,Portal:iat,Content:oI,Close:oat,Arrow:sI},Symbol.toStringTag,{value:"Module"})),aat=N(iI)`
606
- background: none;
607
- border: none;
608
- padding: 0;
609
- `,aI=N(oI)`
610
- padding: ${D["--ll-spacing-small"]};
611
- background-color: ${D["--ll-color-background"]};
612
- box-shadow: ${D["--ll-shadow-small"]};
613
- border-radius: ${D["--ll-border-radius-small"]};
614
- width: 240px;
615
- `,lI=N(sI)`
616
- fill: ${D["--ll-color-background"]};
617
- `,lat=Object.freeze(Object.defineProperty({__proto__:null,Trigger:aat,Content:aI,Arrow:lI},Symbol.toStringTag,{value:"Module"})),{Root:cat,Portal:uat}=sat,{Trigger:dat}=lat,hat=({side:t,children:e,className:n,sideOffset:r=pr*2,collisionPadding:i=pr*2})=>ot(uat,{children:cr(aI,{side:t,className:n,sideOffset:r,collisionPadding:i,children:[ot(lI,{}),e]})}),Rwt=Object.freeze(Object.defineProperty({__proto__:null,Root:cat,Trigger:dat,Content:hat},Symbol.toStringTag,{value:"Module"}));function Wl(){return Wl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Wl.apply(this,arguments)}var Qr;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Qr||(Qr={}));var um=function(t){return t},W5="beforeunload",fat="popstate";function pat(t){t===void 0&&(t={});var e=t,n=e.window,r=n===void 0?document.defaultView:n,i=r.history;function o(){var E=r.location,C=E.pathname,A=E.search,k=E.hash,$=i.state||{};return[$.idx,um({pathname:C,search:A,hash:k,state:$.usr||null,key:$.key||"default"})]}var s=null;function a(){if(s)f.call(s),s=null;else{var E=Qr.Pop,C=o(),A=C[0],k=C[1];if(f.length){if(A!=null){var $=u-A;$&&(s={action:E,location:k,retry:function(){w($*-1)}},w($))}}else _(E)}}r.addEventListener(fat,a);var l=Qr.Pop,c=o(),u=c[0],d=c[1],h=dm(),f=dm();u==null&&(u=0,i.replaceState(Wl({},i.state,{idx:u}),""));function p(E){return typeof E=="string"?E:cI(E)}function g(E,C){return C===void 0&&(C=null),um(Wl({pathname:d.pathname,hash:"",search:""},typeof E=="string"?mx(E):E,{state:C,key:gx()}))}function y(E,C){return[{usr:E.state,key:E.key,idx:C},p(E)]}function v(E,C,A){return!f.length||(f.call({action:E,location:C,retry:A}),!1)}function _(E){l=E;var C=o();u=C[0],d=C[1],h.call({action:l,location:d})}function x(E,C){var A=Qr.Push,k=g(E,C);function $(){x(E,C)}if(v(A,k,$)){var M=y(k,u+1),I=M[0],F=M[1];try{i.pushState(I,"",F)}catch(L){r.location.assign(F)}_(A)}}function b(E,C){var A=Qr.Replace,k=g(E,C);function $(){b(E,C)}if(v(A,k,$)){var M=y(k,u),I=M[0],F=M[1];i.replaceState(I,"",F),_(A)}}function w(E){i.go(E)}var S={get action(){return l},get location(){return d},createHref:p,push:x,replace:b,go:w,back:function(){w(-1)},forward:function(){w(1)},listen:function(C){return h.push(C)},block:function(C){var A=f.push(C);return f.length===1&&r.addEventListener(W5,G5),function(){A(),f.length||r.removeEventListener(W5,G5)}}};return S}function gat(t){t===void 0&&(t={});var e=t,n=e.initialEntries,r=n===void 0?["/"]:n,i=e.initialIndex,o=r.map(function(x){var b=um(Wl({pathname:"/",search:"",hash:"",state:null,key:gx()},typeof x=="string"?mx(x):x));return b}),s=Y5(i==null?o.length-1:i,0,o.length-1),a=Qr.Pop,l=o[s],c=dm(),u=dm();function d(x){return typeof x=="string"?x:cI(x)}function h(x,b){return b===void 0&&(b=null),um(Wl({pathname:l.pathname,search:"",hash:""},typeof x=="string"?mx(x):x,{state:b,key:gx()}))}function f(x,b,w){return!u.length||(u.call({action:x,location:b,retry:w}),!1)}function p(x,b){a=x,l=b,c.call({action:a,location:l})}function g(x,b){var w=Qr.Push,S=h(x,b);function E(){g(x,b)}f(w,S,E)&&(s+=1,o.splice(s,o.length,S),p(w,S))}function y(x,b){var w=Qr.Replace,S=h(x,b);function E(){y(x,b)}f(w,S,E)&&(o[s]=S,p(w,S))}function v(x){var b=Y5(s+x,0,o.length-1),w=Qr.Pop,S=o[b];function E(){v(x)}f(w,S,E)&&(s=b,p(w,S))}var _={get index(){return s},get action(){return a},get location(){return l},createHref:d,push:g,replace:y,go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(b){return c.push(b)},block:function(b){return u.push(b)}};return _}function Y5(t,e,n){return Math.min(Math.max(t,e),n)}function G5(t){t.preventDefault(),t.returnValue=""}function dm(){var t=[];return{get length(){return t.length},push:function(n){return t.push(n),function(){t=t.filter(function(r){return r!==n})}},call:function(n){t.forEach(function(r){return r&&r(n)})}}}function gx(){return Math.random().toString(36).substr(2,8)}function cI(t){var e=t.pathname,n=e===void 0?"/":e,r=t.search,i=r===void 0?"":r,o=t.hash,s=o===void 0?"":o;return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function mx(t){var e={};if(t){var n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));var r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}/**
618
- * react-location
619
- *
620
- * Copyright (c) TanStack
621
- *
622
- * This source code is licensed under the MIT license found in the
623
- * LICENSE.md file in the root directory of this source tree.
624
- *
625
- * @license MIT
626
- */function Dr(){return Dr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Dr.apply(this,arguments)}function vx(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function mat(t,e){var n,r,i,o="";for(n in t)if((i=t[n])!==void 0)if(Array.isArray(i))for(r=0;r<i.length;r++)o&&(o+="&"),o+=encodeURIComponent(n)+"="+encodeURIComponent(i[r]);else o&&(o+="&"),o+=encodeURIComponent(n)+"="+encodeURIComponent(i);return(e||"")+o}function q5(t){if(!t)return"";var e=decodeURIComponent(t);return e==="false"?!1:e==="true"?!0:+e*0===0?+e:e}function vat(t){for(var e,n,r={},i=t.split("&");e=i.shift();)e=e.split("="),n=e.shift(),r[n]!==void 0?r[n]=[].concat(r[n],q5(e.shift())):r[n]=q5(e.shift());return r}const yat=["children","location","__experimental__snapshot"],_at=["location","__experimental__snapshot"],xat=["basepath","routes"],uI=m.exports.createContext(null),dI=m.exports.createContext(null),hI=m.exports.createContext(null),fI=Boolean(typeof window<"u"&&window.document&&window.document.createElement),yx=fI?m.exports.useLayoutEffect:m.exports.useEffect,bat=()=>fI?pat():gat();class C2{constructor(){this.listeners=[]}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter(n=>n!==e)}}notify(){this.listeners.forEach(e=>e())}}class wat extends C2{constructor(e){var n,r;super(),this.isTransitioning=!1,this.history=(e==null?void 0:e.history)||bat(),this.stringifySearch=(n=e==null?void 0:e.stringifySearch)!=null?n:Dat,this.parseSearch=(r=e==null?void 0:e.parseSearch)!=null?r:Lat,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(i=>{this.current=this.parseLocation(i.location,this.current),this.notify()})}buildNext(e,n){var r,i,o,s;e===void 0&&(e="/"),n===void 0&&(n={});const a=Dr({},this.current,n.from),l=Rat(e,a.pathname,""+((r=n.to)!=null?r:".")),c=(i=n.__searchFilters)!=null&&i.length?n.__searchFilters.reduce((p,g)=>g(p),a.search):a.search,u=n.search===!0?c:n.search?(o=K5(n.search,c))!=null?o:{}:(s=n.__searchFilters)!=null&&s.length?c:{},d=_x(a.search,u),h=this.stringifySearch(d);let f=n.hash===!0?a.hash:K5(n.hash,a.hash);return f=f?"#"+f:"",{pathname:l,search:d,searchStr:h,hash:f,href:""+l+h+f,key:n.key}}navigate(e,n){this.current=e,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(e,n){var r;const i=this.parseSearch(e.search);return{pathname:e.pathname,searchStr:e.search,search:_x(n==null?void 0:n.search,i),hash:(r=e.hash.split("#").reverse()[0])!=null?r:"",href:""+e.pathname+e.search+e.hash,key:e.key}}}function pI(t){return O(dI.Provider,{...t})}function Sat(t){let{children:e,location:n,__experimental__snapshot:r}=t,i=vx(t,yat);const o=m.exports.useRef(null);o.current||(o.current=new Cat({location:n,__experimental__snapshot:r,routes:i.routes}));const s=o.current,[a,l]=m.exports.useReducer(()=>({}),{});return s.update(i),yx(()=>s.subscribe(()=>{l()}),[]),yx(()=>s.updateLocation(n.current).unsubscribe,[n.current.key]),m.exports.createElement(uI.Provider,{value:{location:n}},m.exports.createElement(hI.Provider,{value:{router:s}},O(Eat,{}),O(pI,{value:[s.rootMatch,...s.state.matches],children:e!=null?e:O(k2,{})})))}function Eat(){const t=uc(),e=xI(),n=_I();return yx(()=>{e({to:".",search:!0,hash:!0}).href!==t.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class Cat extends C2{constructor(e){var n;let{location:r,__experimental__snapshot:i}=e,o=vx(e,_at);super(),this.routesById={},this.update=a=>{let{basepath:l,routes:c}=a,u=vx(a,xat);Object.assign(this,u),this.basepath=W0("/"+(l!=null?l:"")),this.routesById={};const d=(h,f)=>h.map(p=>{var g,y,v,_;const x=(g=p.path)!=null?g:"*",b=Yl([(f==null?void 0:f.id)==="root"?"":f==null?void 0:f.id,""+(x==null?void 0:x.replace(/(.)\/$/,"$1"))+(p.id?"-"+p.id:"")]);if(p=Dr({},p,{pendingMs:(y=p.pendingMs)!=null?y:u==null?void 0:u.defaultPendingMs,pendingMinMs:(v=p.pendingMinMs)!=null?v:u==null?void 0:u.defaultPendingMinMs,id:b}),this.routesById[b])throw new Error;return this.routesById[b]=p,p.children=(_=p.children)!=null&&_.length?d(p.children,p):void 0,p});this.routes=d(c),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=a=>{const l=a({state:this.state,pending:this.pending});this.state=l.state,this.pending=l.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var a,l,c;const u=[...(a=this==null?void 0:this.state.matches)!=null?a:[],...(l=this==null||(c=this.pending)==null?void 0:c.matches)!=null?l:[]].map(d=>d.id);Object.values(this.matchCache).forEach(d=>{var h;if(!d.updatedAt||u.includes(d.id))return;const f=Date.now()-((h=d.updatedAt)!=null?h:0);(!d.maxAge||f>d.maxAge)&&(d.route.unloader&&d.route.unloader(d),delete this.matchCache[d.id])})},this.updateLocation=a=>{let l;return{promise:new Promise(u=>{const d=new Z5(this,a);this.setState(h=>Dr({},h,{pending:{location:d.location,matches:d.matches}})),l=d.subscribe(()=>{const h=this.state.matches;h.filter(f=>!d.matches.find(p=>p.id===f.id)).forEach(f=>{f.onExit==null||f.onExit(f)}),h.filter(f=>d.matches.find(p=>p.id===f.id)).forEach(f=>{f.route.onTransition==null||f.route.onTransition(f)}),d.matches.filter(f=>!h.find(p=>p.id===f.id)).forEach(f=>{f.onExit=f.route.onMatch==null?void 0:f.route.onMatch(f)}),this.setState(f=>Dr({},f,{state:{location:d.location,matches:d.matches},pending:void 0})),u()}),d.loadData(),d.startPending()}),unsubscribe:l}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(a=>{let{ownData:l,id:c}=a;return{id:c,ownData:l}})}),this.update(o);let s=[];if(i){const a=new Z5(this,r.current);a.matches.forEach((l,c)=>{var u,d,h;if(l.id!==((u=i.matches[c])==null?void 0:u.id)){var f;throw new Error("Router hydration mismatch: "+l.id+" !== "+((f=i.matches[c])==null?void 0:f.id))}l.ownData=(d=(h=i.matches[c])==null?void 0:h.ownData)!=null?d:{}}),gI(a.matches),s=a.matches}this.state={location:(n=i==null?void 0:i.location)!=null?n:r.current,matches:s},r.subscribe(()=>this.notify())}}function uc(){const t=m.exports.useContext(uI);return bI(!!t,"useLocation must be used within a <ReactLocation />"),t.location}class kat{constructor(e){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,i;if(this.maxAge=(r=(i=n.maxAge)!=null?i:this.route.loaderMaxAge)!=null?r:n.router.defaultLoaderMaxAge,this.loaderPromise)return;const o=this.route.import;this.loaderPromise=(o?(()=>(this.isLoading=!0,o({params:this.params,search:this.search}).then(s=>{this.route=Dr({},this.route,s)})))():Promise.resolve()).then(()=>{const s=[];["element","errorElement","pendingElement"].forEach(u=>{const d=this.route[u];this[u]||(typeof d=="function"?(this.isLoading=!0,s.push(d(this).then(h=>{this[u]=h}))):this[u]=this.route[u])});const l=this.route.loader,c=l?new Promise(async u=>{this.isLoading=!0;const d=p=>{this.updatedAt=Date.now(),u(this.ownData),this.status=p},h=p=>{this.ownData=p,this.error=void 0,d("resolved")},f=p=>{console.error(p),this.error=p,d("rejected")};try{h(await l(this,{parentMatch:n.parentMatch,dispatch:async p=>{var g;p.type==="resolve"?h(p.data):p.type==="reject"?f(p.error):p.type==="loading"?this.isLoading=!0:p.type==="maxAge"&&(this.maxAge=p.maxAge),this.updatedAt=Date.now(),(g=this.notify)==null||g.call(this,!0)}}))}catch(p){f(p)}}):Promise.resolve();return Promise.all([...s,c]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var u;this.pendingTimeout&&clearTimeout(this.pendingTimeout),(u=this.notify)==null||u.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,e)}}class Z5 extends C2{constructor(e,n){var r;super(),r=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=o=>{o&&(this.preNotifiedMatches.includes(o)||this.preNotifiedMatches.push(o)),(!o||this.preNotifiedMatches.length===this.matches.length)&&(this.status="resolved",gI(this.matches),this.notify())},this.loadData=async function(o){var s;let{maxAge:a}=o===void 0?{}:o;if(r.router.cleanMatchCache(),!((s=r.matches)!=null&&s.length)){r.preNotify();return}return r.firstRenderPromises=[],r.matches.forEach((l,c)=>{var u,d;const h=(u=r.matches)==null?void 0:u[c-1];l.assignMatchLoader==null||l.assignMatchLoader(r),l.load==null||l.load({maxAge:a,parentMatch:h,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(o){let{maxAge:s}=o===void 0?{}:o;return await r.loadData({maxAge:s})},this.startPending=async()=>{this.matches.forEach(o=>o.startPending==null?void 0:o.startPending())},this.router=e,this.location=n,this.matches=[];const i=vI(this.router,this.location);this.matches=i==null?void 0:i.map(o=>(this.router.matchCache[o.id]||(this.router.matchCache[o.id]=new kat(o)),this.router.matchCache[o.id]))}}function gI(t){t==null||t.forEach((e,n)=>{var r;const i=t==null?void 0:t[n-1];e.data=Dr({},(r=i==null?void 0:i.data)!=null?r:{},e.ownData)})}function mI(){const t=m.exports.useContext(hI);if(!t)throw bI(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return t.router}function vI(t,e){if(!t.routes.length)return[];const n=[],r=async(i,o)=>{var s;let{pathname:a,params:l}=o;const u=(t!=null&&t.filterRoutes?t==null?void 0:t.filterRoutes(i):i).find(p=>{var g,y;const v=Yl([a,p.path]),_=!!(p.path!=="/"||(g=p.children)!=null&&g.length),x=$at(e,{to:v,search:p.search,fuzzy:_,caseSensitive:(y=p.caseSensitive)!=null?y:t.caseSensitive});return x&&(l=Dr({},l,x)),!!x});if(!u)return;const d=X5(u.path,l);a=Yl([a,d]);const f={id:X5(u.id,l,!0),route:u,params:l,pathname:a,search:e.search};n.push(f),(s=u.children)!=null&&s.length&&r(u.children,f)};return r(t.routes,t.rootMatch),n}function X5(t,e,n){const r=Nd(t);return Yl(r.map(i=>{if(i.value==="*"&&!n)return"";if(i.type==="param"){var o;return(o=e[i.value.substring(1)])!=null?o:""}return i.value}))}function yI(){return m.exports.useContext(dI)}function Aat(){var t;return(t=yI())==null?void 0:t[0]}function _I(){const t=uc(),e=Aat(),n=xI();function r(i){var o;let{search:s,hash:a,replace:l,from:c,to:u,fromCurrent:d}=i;d=(o=d)!=null?o:typeof u>"u";const h=n({to:u,search:s,hash:a,from:d?t.current:c!=null?c:{pathname:e.pathname}});t.navigate(h,l)}return wI(r)}function xI(){const t=uc(),e=mI();return wI(r=>{const i=t.buildNext(e.basepath,r),s=vI(e,i).map(a=>{var l;return(l=a.route.searchFilters)!=null?l:[]}).flat().filter(Boolean);return t.buildNext(e.basepath,Dr({},r,{__searchFilters:s}))})}function k2(){var t;const e=mI(),[n,...r]=yI(),i=r[0];if(!i)return null;const o=(t=i.errorElement)!=null?t:e.defaultErrorElement,s=(()=>{var a,l;if(i.status==="rejected"){if(o)return o;if(!e.useErrorBoundary)return"An unknown error occured!";throw i.error}const c=(a=i.pendingElement)!=null?a:e.defaultPendingElement;if(i.status==="loading")return null;if(i.status==="pending"&&(i.route.pendingMs||c))return c!=null?c:null;const u=(l=i.element)!=null?l:e.defaultElement;return u!=null?u:O(k2,{})})();return O(pI,{value:r,children:s})}function Tat(){return uc().current.search}function $at(t,e){const n=Pat(t,e),r=Oat(t,e);if(!(e.to&&!n)&&!(e.search&&!r))return n!=null?n:{}}function bI(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch(n){}}}function Mat(t){return typeof t=="function"}function K5(t,e){return Mat(t)?t(e):t}function Yl(t){return W0(t.filter(Boolean).join("/"))}function W0(t){return(""+t).replace(/\/{2,}/g,"/")}function Pat(t,e){var n;const r=Nd(t.pathname),i=Nd(""+((n=e.to)!=null?n:"*")),o={};return(()=>{for(let a=0;a<Math.max(r.length,i.length);a++){const l=r[a],c=i[a],u=a===i.length-1,d=a===r.length-1;if(c){if(c.type==="wildcard")return l!=null&&l.value?(o["*"]=Yl(r.slice(a).map(h=>h.value)),!0):!1;if(c.type==="pathname"){if(c.value==="/"&&!(l!=null&&l.value))return!0;if(l){if(e.caseSensitive){if(c.value!==l.value)return!1}else if(c.value.toLowerCase()!==l.value.toLowerCase())return!1}}if(!l)return!1;c.type==="param"&&(o[c.value.substring(1)]=l.value)}if(u&&!d)return!!e.fuzzy}return!0})()?o:void 0}function Oat(t,e){return!!(e.search&&e.search(t.search))}function Nd(t){if(!t)return[];t=W0(t);const e=[];if(t.slice(0,1)==="/"&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),!t)return e;const n=t.split("/").filter(Boolean);return e.push(...n.map(r=>r.startsWith("*")?{type:"wildcard",value:r}:r.charAt(0)===":"?{type:"param",value:r}:{type:"pathname",value:r})),t.slice(-1)==="/"&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),e}function Rat(t,e,n){e=e.replace(new RegExp("^"+t),"/"),n=n.replace(new RegExp("^"+t),"/");let r=Nd(e);const i=Nd(n);i.forEach((s,a)=>{if(s.value==="/")a?a===i.length-1&&r.push(s):r=[s];else if(s.value==="..")r.pop();else{if(s.value===".")return;r.push(s)}});const o=Yl([t,...r.map(s=>s.value)]);return W0(o)}function wI(t){const e=m.exports.useRef(),n=m.exports.useRef(t);return n.current=t,e.current||(e.current=function(){return n.current(...arguments)}),e.current}function _x(t,e){if(t===e)return t;const n=Array.isArray(t)&&Array.isArray(e);if(n||Q5(t)&&Q5(e)){const r=n?t.length:Object.keys(t).length,i=n?e:Object.keys(e),o=i.length,s=n?[]:{};let a=0;for(let l=0;l<o;l++){const c=n?l:i[l];s[c]=_x(t[c],e[c]),s[c]===t[c]&&a++}return r===o&&a===r?t:s}return e}function Q5(t){if(!J5(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const n=e.prototype;return!(!J5(n)||!n.hasOwnProperty("isPrototypeOf"))}function J5(t){return Object.prototype.toString.call(t)==="[object Object]"}const Lat=Iat(JSON.parse),Dat=Nat(JSON.stringify);function Iat(t){return e=>{e.substring(0,1)==="?"&&(e=e.substring(1));let n=vat(e);for(let r in n){const i=n[r];if(typeof i=="string")try{n[r]=t(i)}catch(o){}}return n}}function Nat(t){return e=>{e=Dr({},e),e&&Object.keys(e).forEach(r=>{const i=e[r];if(typeof i>"u"||i===void 0)delete e[r];else if(i&&typeof i=="object"&&i!==null)try{e[r]=t(i)}catch(o){}});const n=mat(e).toString();return n?"?"+n:""}}function xx(t,e){return xx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xx(t,e)}function Fat(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,xx(t,e)}var zat=function(e,n){return e===void 0&&(e=[]),n===void 0&&(n=[]),e.length!==n.length||e.some(function(r,i){return!Object.is(r,n[i])})},tT={error:null},Bat=function(t){Fat(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.state=tT,r.resetErrorBoundary=function(){for(var a,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];r.props.onReset==null||(a=r.props).onReset.apply(a,c),r.reset()},r}e.getDerivedStateFromError=function(i){return{error:i}};var n=e.prototype;return n.reset=function(){this.setState(tT)},n.componentDidCatch=function(i,o){var s,a;(s=(a=this.props).onError)==null||s.call(a,i,o)},n.componentDidUpdate=function(i,o){var s=this.state.error,a=this.props.resetKeys;if(s!==null&&o.error!==null&&zat(i.resetKeys,a)){var l,c;(l=(c=this.props).onResetKeysChange)==null||l.call(c,i.resetKeys,a),this.reset()}},n.render=function(){var i=this.state.error,o=this.props,s=o.fallbackRender,a=o.FallbackComponent,l=o.fallback;if(i!==null){var c={error:i,resetErrorBoundary:this.resetErrorBoundary};if(m.exports.isValidElement(l))return l;if(typeof s=="function")return s(c);if(a)return O(a,{...c});throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},e}(m.exports.Component);class Y0{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.push(e),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==e),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const A2=typeof window>"u";function Ar(){}function jat(t,e){return typeof t=="function"?t(e):t}function Vat(t){return typeof t=="number"&&t>=0&&t!==1/0}function Hat(t,e){return Math.max(t+(e||0)-Date.now(),0)}function T1(t,e,n){return G0(t)?typeof e=="function"?{...n,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function fo(t,e,n){return G0(t)?[{...e,queryKey:t},n]:[t||{},e]}function eT(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=t;if(G0(s)){if(r){if(e.queryHash!==T2(s,e.options))return!1}else if(!hm(e.queryKey,s))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||typeof i<"u"&&i!==e.state.fetchStatus||o&&!o(e))}function nT(t,e){const{exact:n,fetching:r,predicate:i,mutationKey:o}=t;if(G0(o)){if(!e.options.mutationKey)return!1;if(n){if(Ns(e.options.mutationKey)!==Ns(o))return!1}else if(!hm(e.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&e.state.status==="loading"!==r||i&&!i(e))}function T2(t,e){return((e==null?void 0:e.queryKeyHashFn)||Ns)(t)}function Ns(t){return JSON.stringify(t,(e,n)=>bx(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function hm(t,e){return SI(t,e)}function SI(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!SI(t[n],e[n])):!1}function EI(t,e){if(t===e)return t;const n=rT(t)&&rT(e);if(n||bx(t)&&bx(e)){const r=n?t.length:Object.keys(t).length,i=n?e:Object.keys(e),o=i.length,s=n?[]:{};let a=0;for(let l=0;l<o;l++){const c=n?l:i[l];s[c]=EI(t[c],e[c]),s[c]===t[c]&&a++}return r===o&&a===r?t:s}return e}function Lwt(t,e){if(t&&!e||e&&!t)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function rT(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function bx(t){if(!iT(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const n=e.prototype;return!(!iT(n)||!n.hasOwnProperty("isPrototypeOf"))}function iT(t){return Object.prototype.toString.call(t)==="[object Object]"}function G0(t){return Array.isArray(t)}function CI(t){return new Promise(e=>{setTimeout(e,t)})}function oT(t){CI(0).then(t)}function Uat(){if(typeof AbortController=="function")return new AbortController}function Wat(t,e,n){return n.isDataEqual!=null&&n.isDataEqual(t,e)?t:typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?EI(t,e):e}class Yat extends Y0{constructor(){super(),this.setup=e=>{if(!A2&&window.addEventListener){const n=()=>e();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 e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var n;this.setup=e,(n=this.cleanup)==null||n.call(this),this.cleanup=e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(e){this.focused=e,e&&this.onFocus()}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const wx=new Yat;class Gat extends Y0{constructor(){super(),this.setup=e=>{if(!A2&&window.addEventListener){const n=()=>e();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 e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var n;this.setup=e,(n=this.cleanup)==null||n.call(this),this.cleanup=e(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(e){this.online=e,e&&this.onOnline()}onOnline(){this.listeners.forEach(e=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const fm=new Gat;function qat(t){return Math.min(1e3*2**t,3e4)}function $2(t){return(t!=null?t:"online")==="online"?fm.isOnline():!0}class kI{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function $1(t){return t instanceof kI}function AI(t){let e=!1,n=0,r=!1,i,o,s;const a=new Promise((y,v)=>{o=y,s=v}),l=y=>{r||(f(new kI(y)),t.abort==null||t.abort())},c=()=>{e=!0},u=()=>{e=!1},d=()=>!wx.isFocused()||t.networkMode!=="always"&&!fm.isOnline(),h=y=>{r||(r=!0,t.onSuccess==null||t.onSuccess(y),i==null||i(),o(y))},f=y=>{r||(r=!0,t.onError==null||t.onError(y),i==null||i(),s(y))},p=()=>new Promise(y=>{i=v=>{if(r||!d())return y(v)},t.onPause==null||t.onPause()}).then(()=>{i=void 0,r||t.onContinue==null||t.onContinue()}),g=()=>{if(r)return;let y;try{y=t.fn()}catch(v){y=Promise.reject(v)}Promise.resolve(y).then(h).catch(v=>{var _,x;if(r)return;const b=(_=t.retry)!=null?_:3,w=(x=t.retryDelay)!=null?x:qat,S=typeof w=="function"?w(n,v):w,E=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,v);if(e||!E){f(v);return}n++,t.onFail==null||t.onFail(n,v),CI(S).then(()=>{if(d())return p()}).then(()=>{e?f(v):g()})})};return $2(t.networkMode)?g():p().then(g),{promise:a,cancel:l,continue:()=>{i==null||i()},cancelRetry:c,continueRetry:u}}const M2=console;function Zat(){let t=[],e=0,n=u=>{u()},r=u=>{u()};const i=u=>{let d;e++;try{d=u()}finally{e--,e||a()}return d},o=u=>{e?t.push(u):oT(()=>{n(u)})},s=u=>(...d)=>{o(()=>{u(...d)})},a=()=>{const u=t;t=[],u.length&&oT(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:s,schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u}}}const fn=Zat();class TI{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vat(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e!=null?e:A2?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Xat extends TI{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||M2,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||Kat(this.options),this.state=this.initialState,this.meta=e.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.meta=e==null?void 0:e.meta,this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,n){const r=Wat(this.state.data,e,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(e,n){this.dispatch({type:"setState",state:e,setStateOptions:n})}cancel(e){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(e),r?r.then(Ar).catch(Ar):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Hat(this.state.dataUpdatedAt,e)}onFocus(){var e;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.indexOf(e)===-1&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.indexOf(e)!==-1&&(this.observers=this.observers.filter(n=>n!==e),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:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}Array.isArray(this.options.queryKey);const s=Uat(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};l(a);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn"),u={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c,meta:this.meta};if(l(u),(r=this.options.behavior)==null||r.onFetch(u),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=u.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=u.fetchOptions)==null?void 0:d.meta})}const h=f=>{if($1(f)&&f.silent||this.dispatch({type:"error",error:f}),!$1(f)){var p,g;(p=(g=this.cache.config).onError)==null||p.call(g,f,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=AI({fn:u.fetchFn,abort:s==null?void 0:s.abort.bind(s),onSuccess:f=>{var p,g;if(typeof f>"u"){h(new Error("Query data cannot be undefined"));return}this.setData(f),(p=(g=this.cache.config).onSuccess)==null||p.call(g,f,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const n=r=>{var i,o;switch(e.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:(i=e.meta)!=null?i:null,fetchStatus:$2(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=e.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0}};case"error":const s=e.error;return $1(s)&&s.revert&&this.revertState?{...this.revertState}:{...r,error:s,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,...e.state}}};this.state=n(this.state),fn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function Kat(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=typeof t.initialData<"u"?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0,i=typeof e<"u";return{data:e,dataUpdateCount:0,dataUpdatedAt:i?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isInvalidated:!1,status:i?"success":"loading",fetchStatus:"idle"}}class Qat extends Y0{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,n,r){var i;const o=n.queryKey,s=(i=n.queryHash)!=null?i:T2(o,n);let a=this.get(s);return a||(a=new Xat({cache:this,logger:e.getLogger(),queryKey:o,queryHash:s,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(o),meta:n.meta}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const n=this.queriesMap[e.queryHash];n&&(e.destroy(),this.queries=this.queries.filter(r=>r!==e),n===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){fn.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,n){const[r]=fo(e,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>eT(r,i))}findAll(e,n){const[r]=fo(e,n);return Object.keys(r).length>0?this.queries.filter(i=>eT(r,i)):this.queries}notify(e){fn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){fn.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){fn.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class Jat extends TI{constructor(e){super(),this.options={...e.defaultOptions,...e.options},this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||M2,this.observers=[],this.state=e.state||tlt(),this.meta=e.meta,this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.indexOf(e)===-1&&(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(n=>n!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}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 e=()=>{var x;return this.retryer=AI({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,i,o,s,a,l;if(!n){var c,u,d,h;this.dispatch({type:"loading",variables:this.options.variables}),(c=(u=this.mutationCache.config).onMutate)==null||c.call(u,this.state.variables,this);const b=await((d=(h=this.options).onMutate)==null?void 0:d.call(h,this.state.variables));b!==this.state.context&&this.dispatch({type:"loading",context:b,variables:this.state.variables})}const x=await e();return(r=(i=this.mutationCache.config).onSuccess)==null||r.call(i,x,this.state.variables,this.state.context,this),await((o=(s=this.options).onSuccess)==null?void 0:o.call(s,x,this.state.variables,this.state.context)),await((a=(l=this.options).onSettled)==null?void 0:a.call(l,x,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:x}),x}catch(x){try{var f,p,g,y,v,_;throw(f=(p=this.mutationCache.config).onError)==null||f.call(p,x,this.state.variables,this.state.context,this),await((g=(y=this.options).onError)==null?void 0:g.call(y,x,this.state.variables,this.state.context)),await((v=(_=this.options).onSettled)==null?void 0:v.call(_,void 0,x,this.state.variables,this.state.context)),x}finally{this.dispatch({type:"error",error:x})}}}dispatch(e){const n=r=>{switch(e.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:e.context,data:void 0,error:null,isPaused:!$2(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...r,data:e.data,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,isPaused:!1,status:"error"};case"setState":return{...r,...e.state}}};this.state=n(this.state),fn.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function tlt(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}class elt extends Y0{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,n,r){const i=new Jat({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?e.getMutationDefaults(n.mutationKey):void 0,meta:n.meta});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(n=>n!==e),this.notify({type:"removed",mutation:e})}clear(){fn.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(n=>nT(e,n))}findAll(e){return this.mutations.filter(n=>nT(e,n))}notify(e){fn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.mutations.filter(n=>n.state.isPaused);return fn.batch(()=>e.reduce((n,r)=>n.then(()=>r.continue().catch(Ar)),Promise.resolve()))}}function nlt(){return{onFetch:t=>{t.fetchFn=()=>{var e,n,r,i,o,s;const a=(e=t.fetchOptions)==null||(n=e.meta)==null?void 0:n.refetchPage,l=(r=t.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,c=l==null?void 0:l.pageParam,u=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",h=((o=t.state.data)==null?void 0:o.pages)||[],f=((s=t.state.data)==null?void 0:s.pageParams)||[];let p=f,g=!1;const y=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var E;if((E=t.signal)!=null&&E.aborted)g=!0;else{var C;(C=t.signal)==null||C.addEventListener("abort",()=>{g=!0})}return t.signal}})},v=t.options.queryFn||(()=>Promise.reject("Missing queryFn")),_=(S,E,C,A)=>(p=A?[E,...p]:[...p,E],A?[C,...S]:[...S,C]),x=(S,E,C,A)=>{if(g)return Promise.reject("Cancelled");if(typeof C>"u"&&!E&&S.length)return Promise.resolve(S);const k={queryKey:t.queryKey,pageParam:C,meta:t.meta};y(k);const $=v(k);return Promise.resolve($).then(I=>_(S,C,I,A))};let b;if(!h.length)b=x([]);else if(u){const S=typeof c<"u",E=S?c:sT(t.options,h);b=x(h,S,E)}else if(d){const S=typeof c<"u",E=S?c:rlt(t.options,h);b=x(h,S,E,!0)}else{p=[];const S=typeof t.options.getNextPageParam>"u";b=(a&&h[0]?a(h[0],0,h):!0)?x([],S,f[0]):Promise.resolve(_([],f[0],h[0]));for(let C=1;C<h.length;C++)b=b.then(A=>{if(a&&h[C]?a(h[C],C,h):!0){const $=S?f[C]:sT(t.options,A);return x(A,S,$)}return Promise.resolve(_(A,f[C],h[C]))})}return b.then(S=>({pages:S,pageParams:p}))}}}}function sT(t,e){return t.getNextPageParam==null?void 0:t.getNextPageParam(e[e.length-1],e)}function rlt(t,e){return t.getPreviousPageParam==null?void 0:t.getPreviousPageParam(e[0],e)}class ilt{constructor(e={}){this.queryCache=e.queryCache||new Qat,this.mutationCache=e.mutationCache||new elt,this.logger=e.logger||M2,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=wx.subscribe(()=>{wx.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=fm.subscribe(()=>{fm.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})}unmount(){var e,n;(e=this.unsubscribeFocus)==null||e.call(this),(n=this.unsubscribeOnline)==null||n.call(this)}isFetching(e,n){const[r]=fo(e,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,n){var r;return(r=this.queryCache.find(e,n))==null?void 0:r.state.data}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(e,n,r){const i=this.queryCache.find(e),o=i==null?void 0:i.state.data,s=jat(n,o);if(typeof s>"u")return;const a=T1(e),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(s,{...r,manual:!0})}setQueriesData(e,n,r){return fn.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(e,n){var r;return(r=this.queryCache.find(e,n))==null?void 0:r.state}removeQueries(e,n){const[r]=fo(e,n),i=this.queryCache;fn.batch(()=>{i.findAll(r).forEach(o=>{i.remove(o)})})}resetQueries(e,n,r){const[i,o]=fo(e,n,r),s=this.queryCache,a={type:"active",...i};return fn.batch(()=>(s.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(a,o)))}cancelQueries(e,n,r){const[i,o={}]=fo(e,n,r);typeof o.revert>"u"&&(o.revert=!0);const s=fn.batch(()=>this.queryCache.findAll(i).map(a=>a.cancel(o)));return Promise.all(s).then(Ar).catch(Ar)}invalidateQueries(e,n,r){const[i,o]=fo(e,n,r);return fn.batch(()=>{var s,a;if(this.queryCache.findAll(i).forEach(c=>{c.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(s=(a=i.refetchType)!=null?a:i.type)!=null?s:"active"};return this.refetchQueries(l,o)})}refetchQueries(e,n,r){const[i,o]=fo(e,n,r),s=fn.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var c;return l.fetch(void 0,{...o,cancelRefetch:(c=o==null?void 0:o.cancelRefetch)!=null?c:!0,meta:{refetchPage:i.refetchPage}})}));let a=Promise.all(s).then(Ar);return o!=null&&o.throwOnError||(a=a.catch(Ar)),a}fetchQuery(e,n,r){const i=T1(e,n,r),o=this.defaultQueryOptions(i);typeof o.retry>"u"&&(o.retry=!1);const s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)}prefetchQuery(e,n,r){return this.fetchQuery(e,n,r).then(Ar).catch(Ar)}fetchInfiniteQuery(e,n,r){const i=T1(e,n,r);return i.behavior=nlt(),this.fetchQuery(i)}prefetchInfiniteQuery(e,n,r){return this.fetchInfiniteQuery(e,n,r).then(Ar).catch(Ar)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,n){const r=this.queryDefaults.find(i=>Ns(e)===Ns(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:e,defaultOptions:n})}getQueryDefaults(e){if(!e)return;const n=this.queryDefaults.find(r=>hm(e,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(e,n){const r=this.mutationDefaults.find(i=>Ns(e)===Ns(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:e,defaultOptions:n})}getMutationDefaults(e){if(!e)return;const n=this.mutationDefaults.find(r=>hm(e,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const n={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=T2(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}const aT=m.exports.createContext(void 0),$I=m.exports.createContext(!1);function MI(t,e){return t||(e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=aT),window.ReactQueryClientContext):aT)}const Dwt=({context:t}={})=>{const e=m.exports.useContext(MI(t,m.exports.useContext($I)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},olt=({client:t,children:e,context:n,contextSharing:r=!1})=>{m.exports.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);const i=MI(n,r);return O($I.Provider,{value:!n&&r,children:O(i.Provider,{value:t,children:e})})},slt="modulepreload",alt=function(t){return"/sdks-app/v1/"+t},lT={},Hi=function(e,n,r){return!n||n.length===0?e():Promise.all(n.map(i=>{if(i=alt(i),i in lT)return;lT[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${s}`))return;const a=document.createElement("link");if(a.rel=o?"stylesheet":slt,o||(a.as="script",a.crossOrigin=""),a.href=i,document.head.appendChild(a),o)return new Promise((l,c)=>{a.addEventListener("load",l),a.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())};var Rp=(t=>(t.LOCAL_CONTENT="local-content",t.DATA_EXPLORER="data-explorer",t.DEMOGRAPHICS="demographics",t))(Rp||{});const llt=new wat,clt=Q.lazy(()=>Hi(()=>import("./index.71eb35ea.js"),["assets/index.71eb35ea.js","assets/index.10935833.js","assets/index.08649806.css","assets/useQuery.7c643982.js","assets/useIsMobile.5dc7840d.js"])),ult=Q.lazy(()=>Hi(()=>import("./index.ed99fd65.js"),["assets/index.ed99fd65.js","assets/index.10935833.js","assets/index.08649806.css","assets/useQuery.7c643982.js","assets/keyFactory.e1cd5707.js"])),dlt=Q.lazy(()=>Hi(()=>import("./index.1df47f40.js"),["assets/index.1df47f40.js","assets/useIsMobile.5dc7840d.js","assets/keyFactory.e1cd5707.js","assets/useQuery.7c643982.js"])),hlt=({children:t})=>{const e=[{path:`/sdks-app/v1/${Rp.LOCAL_CONTENT}`,element:O(clt,{})},{path:`/sdks-app/v1/${Rp.DATA_EXPLORER}`,element:O(ult,{})},{path:`/sdks-app/v1/${Rp.DEMOGRAPHICS}`,element:O(dlt,{})}];return O(Sat,{location:llt,routes:e,children:t})};var flt=Object.defineProperty,plt=(t,e,n)=>e in t?flt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qi=(t,e,n)=>(plt(t,typeof e!="symbol"?e+"":e,n),n);const glt="CONNECT",mlt="DEFAULT";function vlt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var PI={exports:{}};(function(t){var e=(()=>{var n=Object.defineProperty,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(y,v,_)=>v in y?n(y,v,{enumerable:!0,configurable:!0,writable:!0,value:_}):y[v]=_,a=(y,v)=>{for(var _ in v||(v={}))i.call(v,_)&&s(y,_,v[_]);if(r)for(var _ of r(v))o.call(v,_)&&s(y,_,v[_]);return y},l=y=>n(y,"__esModule",{value:!0}),c=(y,v)=>{l(y);for(var _ in v)n(y,_,{get:v[_],enumerable:!0})},u={};c(u,{DEFAULT_UUID_LENGTH:()=>h,default:()=>g});var d="4.4.4",h=6,f={dictionary:"alphanum",shuffle:!0,debug:!1,length:h},p=class extends Function{constructor(y={}){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=(...w)=>{const S=[...w];if(S[0]=`[short-unique-id] ${w[0]}`,this.debug===!0&&typeof console<"u"&&console!==null)return console.log(...S)},this.setDictionary=(w,S)=>{let E;if(w&&Array.isArray(w)&&w.length>1)E=w;else{E=[];let C;this.dictIndex=C=0;const A=`_${w}_dict_ranges`,k=this[A];Object.keys(k).forEach($=>{const M=$;for(this.dictRange=k[M],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)E.push(String.fromCharCode(this.dictIndex))})}S&&(E=E.sort(()=>Math.random()-.5)),this.dict=E,this.dictLength=this.dict.length,this.counter=0},this.seq=()=>this.sequentialUUID(),this.sequentialUUID=()=>{let w,S,E="";w=this.counter;do S=w%this.dictLength,w=Math.trunc(w/this.dictLength),E+=this.dict[S];while(w!==0);return this.counter+=1,E},this.randomUUID=(w=this.uuidLength||h)=>{let S,E,C;if(w===null||typeof w>"u"||w<1)throw new Error("Invalid UUID Length Provided");for(S="",C=0;C<w;C+=1)E=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,S+=this.dict[E];return S},this.availableUUIDs=(w=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,w).toFixed(0)),this.approxMaxBeforeCollision=(w=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*w).toFixed(20)),this.collisionProbability=(w=this.availableUUIDs(this.uuidLength),S=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(w)/this.availableUUIDs(S)).toFixed(20)),this.uniqueness=(w=this.availableUUIDs(this.uuidLength))=>{const S=parseFloat((1-this.approxMaxBeforeCollision(w)/w).toFixed(20));return S>1?1:S<0?0:S},this.getVersion=()=>this.version,this.stamp=w=>{if(typeof w!="number"||w<10)throw new Error("Param finalLength must be number greater than 10");const S=Math.floor(+new Date/1e3).toString(16),E=w-9,C=Math.round(Math.random()*(E>15?15:E)),A=this.randomUUID(E);return`${A.substr(0,C)}${S}${A.substr(C)}${C.toString(16)}`},this.parseStamp=w=>{if(w.length<10)throw new Error("Stamp length invalid");const S=parseInt(w.substr(w.length-1,1),16);return new Date(parseInt(w.substr(S,8),16)*1e3)};const v=a(a({},f),y);this.counter=0,this.debug=!1,this.dict=[],this.version=d;const{dictionary:_,shuffle:x,length:b}=v;return this.uuidLength=b,this.setDictionary(_,x),this.debug=v.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength}`),new Proxy(this,{apply:(w,S,E)=>this.randomUUID(...E)})}},g=p;return g.default=p,u})();t.exports=e.default,typeof window<"u"&&(e=e.default)})(PI);const ylt=vlt(PI.exports),cT=new ylt({length:10});class P2{constructor(e,n){Qi(this,"connection"),Qi(this,"channelId"),Qi(this,"boundMessageHandler"),Qi(this,"onMessageHandlers",[]),Qi(this,"resolveConnection"),Qi(this,"channelNodeId"),Qi(this,"crossOrigin"),Qi(this,"message",(r,i,o)=>this.crossOrigin?this.postMessage(r,i,o):this.customEventMessage(r,i,o)),this.channelId=e!=null?e:mlt,this.channelNodeId=`channel-node-${cT()}`,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(e=>{this.resolveConnection=e})}onMessage(e){this.onMessageHandlers.push(e)}removeMessageHandler(e){const n=this.onMessageHandlers.findIndex(r=>r===e);this.onMessageHandlers.splice(n,1)}customEventMessage(e,n,r){const i=new CustomEvent(this.channelId,{detail:{eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:e,data:n}});window.dispatchEvent(i)}postMessage(e,n,r){var i,o,s,a;if(!((i=this.crossOrigin)!=null&&i.targetOrigin))throw new Error("A target origin was not specified.");(a=(o=this.crossOrigin)==null?void 0:o.window)==null||a.postMessage({eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:e,data:n},(s=this.crossOrigin)==null?void 0:s.targetOrigin)}async eventRequest(e,n){const r=cT();return new Promise(i=>{const o=s=>{const{eventId:a}=s;r===a&&(this.removeMessageHandler(o),i(s))};this.onMessage(o),this.message(e,n,r)})}async waitForEvent(e){return new Promise(n=>{const r=i=>{const{name:o}=i;e===o&&(this.removeMessageHandler(r),n(i))};this.onMessage(r)})}handleMessage(e){var n;let r;if(P2.isCustomEvent(e))r=e.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(e.origin)&&((n=this.crossOrigin)==null?void 0:n.targetOrigin)!=="*")return;r=e.data}const{channelId:i,channelNodeId:o}=r;this.channelId===i&&this.channelNodeId!==o&&this.onMessageHandlers.forEach(s=>{s(r)})}static isCustomEvent(e){return e.detail!==void 0}}class _lt extends P2{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(glt).then(e=>{this.resolveConnection(e)}),this.connection}}var xlt="Expected a function",uT=1/0,blt=17976931348623157e292,dT=0/0,wlt="[object Symbol]",Slt=/^\s+|\s+$/g,Elt=/^[-+]0x[0-9a-f]+$/i,Clt=/^0b[01]+$/i,klt=/^0o[0-7]+$/i,Alt=parseInt,Tlt=Object.prototype,$lt=Tlt.toString;function Mlt(t,e){var n;if(typeof e!="function")throw new TypeError(xlt);return t=Dlt(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}function Plt(t){return Mlt(2,t)}function hT(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Olt(t){return!!t&&typeof t=="object"}function Rlt(t){return typeof t=="symbol"||Olt(t)&&$lt.call(t)==wlt}function Llt(t){if(!t)return t===0?t:0;if(t=Ilt(t),t===uT||t===-uT){var e=t<0?-1:1;return e*blt}return t===t?t:0}function Dlt(t){var e=Llt(t),n=e%1;return e===e?n?e-n:e:0}function Ilt(t){if(typeof t=="number")return t;if(Rlt(t))return dT;if(hT(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=hT(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Slt,"");var n=Clt.test(t);return n||klt.test(t)?Alt(t.slice(2),n?2:8):Elt.test(t)?dT:+t}var OI=Plt,Nlt=Object.defineProperty,Flt=(t,e,n)=>e in t?Nlt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zu=(t,e,n)=>(Flt(t,typeof e!="symbol"?e+"":e,n),n);const zlt=[62,-1,-1,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,63,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],Blt=1,Cr=typeof BigInt<"u"?BigInt:Number;function jlt(t){const e=t.charCodeAt(0);return zlt[e-45]}function Vlt(t){let e=Cr(0),n=Cr(0);const r=[];if(t.split("").forEach(i=>{const o=Cr(jlt(i));e|=(o&Cr(31))<<n,(o&Cr(32))===Cr(0)?(r.push(e),e=Cr(0),n=Cr(0)):n+=Cr(5)}),n>0)throw new Error("Invalid encoding");return r}function Hlt(t,e){if(+t.toString()!==Blt)throw new Error("Invalid format version");const n=+e.toString(),r=n&15,i=n>>4&7,o=n>>7&15;return{precision:r,thirdDim:i,thirdDimPrecision:o}}function M1(t){let e=t;return e&Cr(1)&&(e=~e),e>>=Cr(1),+e.toString()}function Ult(t){const e=Vlt(t),n=Hlt(e[0],e[1]),r=10**n.precision,i=10**n.thirdDimPrecision,{thirdDim:o}=n;let s=0,a=0,l=0;const c=[];let u=2;for(;u<e.length;){const d=M1(e[u])/r,h=M1(e[u+1])/r;if(s+=d,a+=h,o){const f=M1(e[u+2])/i;l+=f,c.push([a,s,l]),u+=3}else c.push([a,s]),u+=2}if(u!==e.length)throw new Error("Invalid encoding. Premature ending reached");return{type:"FeatureCollection",features:[{id:"route",type:"Feature",geometry:{type:"LineString",coordinates:c}}]}}const Wlt=Object.freeze(Object.defineProperty({__proto__:null,decode:Ult},Symbol.toStringTag,{value:"Module"}));function Ylt(t=[]){const e=n=>Object.values(n).map(r=>Array.isArray(r[0])?e(r):[r[1],r[0]]);return{type:"FeatureCollection",features:[{id:"schoolCatchment",type:"Feature",geometry:{type:"MultiPolygon",coordinates:e(t)}}]}}const Glt=Object.freeze(Object.defineProperty({__proto__:null,formatGeometry:Ylt},Symbol.toStringTag,{value:"Module"})),Iwt=Object.freeze(Object.defineProperty({__proto__:null,polyline:Wlt,formatGeometry:Glt},Symbol.toStringTag,{value:"Module"})),Lp=t=>typeof t=="object"&&t!==null&&!Array.isArray(t);function Sx(t,...e){if(!e.length)return t;const n=e.shift();return Lp(t)&&Lp(n)&&Object.keys(n).forEach(r=>{Lp(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Sx(t[r],n[r])):Object.assign(t,{[r]:n[r]})}),Sx(t,...e)}const qlt=Object.freeze(Object.defineProperty({__proto__:null,isObject:Lp,mergeDeep:Sx},Symbol.toStringTag,{value:"Module"})),Zlt=(t,e,n)=>e===1?t:n!=null?n:`${t}s`,Xlt=t=>t.charAt(0).toUpperCase()+t.slice(1),Klt=({houseNumber:t,street:e,city:n,state:r,country:i,postalCode:o})=>[`${t?`${t&&e?`${t} `:`${t}`}`:""}${e||""}`,n,r,i,o].reduceRight((s,a)=>s&&a?`${a}, ${s}`:a||s||"")||"",Nwt=Object.freeze(Object.defineProperty({__proto__:null,pluralize:Zlt,capitalize:Xlt,formatAddress:Klt},Symbol.toStringTag,{value:"Module"})),Qlt=({data:t,fileName:e,fileType:n})=>{const r=`text/${n}`,i=new Blob([t],{type:r}),o=document.createElement("a");o.download=`${e}.${n}`,o.href=window.URL.createObjectURL(i);const s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});o.dispatchEvent(s),o.remove()},Fwt=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:Qlt},Symbol.toStringTag,{value:"Module"})),Jlt=(t,e)=>e==="school",tct=Object.freeze(Object.defineProperty({__proto__:null,isSchool:Jlt},Symbol.toStringTag,{value:"Module"})),zwt=Object.freeze(Object.defineProperty({__proto__:null,poi:tct},Symbol.toStringTag,{value:"Module"}));var $n={},O2={},fh={},R2={};/*!
627
- * cookie
628
- * Copyright(c) 2012-2014 Roman Shtylman
629
- * Copyright(c) 2015 Douglas Christopher Wilson
630
- * MIT Licensed
631
- */R2.parse=ict;R2.serialize=oct;var ect=decodeURIComponent,nct=encodeURIComponent,rct=/; */,Af=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function ict(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var n={},r=e||{},i=t.split(rct),o=r.decode||ect,s=0;s<i.length;s++){var a=i[s],l=a.indexOf("=");if(!(l<0)){var c=a.substr(0,l).trim(),u=a.substr(++l,a.length).trim();u[0]=='"'&&(u=u.slice(1,-1)),n[c]==null&&(n[c]=sct(u,o))}}return n}function oct(t,e,n){var r=n||{},i=r.encode||nct;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!Af.test(t))throw new TypeError("argument name is invalid");var o=i(e);if(o&&!Af.test(o))throw new TypeError("argument val is invalid");var s=t+"="+o;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Af.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!Af.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return s}function sct(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(fh,"__esModule",{value:!0});var act=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();fh.hasCookies=dct;var lct=R2,Tf=cct(lct);function cct(t){return t&&t.__esModule?t:{default:t}}function uct(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ji="lS_",RI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};uct(this,t),this.cookieOptions=Object.assign({path:"/"},e),Ji=e.prefix===void 0?Ji:e.prefix}return act(t,[{key:"getItem",value:function(e){var n=Tf.default.parse(document.cookie);return!n||!n.hasOwnProperty(Ji+e)?null:n[Ji+e]}},{key:"setItem",value:function(e,n){return document.cookie=Tf.default.serialize(Ji+e,n,this.cookieOptions),n}},{key:"removeItem",value:function(e){var n=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=Tf.default.serialize(Ji+e,"",n),null}},{key:"clear",value:function(){var e=Tf.default.parse(document.cookie);for(var n in e)n.indexOf(Ji)===0&&this.removeItem(n.substr(Ji.length));return null}}]),t}();fh.default=RI;function dct(){var t=new RI;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),n==="1"}catch(r){return!1}}Object.defineProperty(O2,"__esModule",{value:!0});O2.default=fct;var hct=fh,fT="__test";function pT(t){try{var e=window[t];return e.setItem(fT,"1"),e.removeItem(fT),!0}catch(n){return!1}}function fct(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"localStorage",e=String(t).replace(/storage$/i,"").toLowerCase();if(e==="local")return pT("localStorage");if(e==="session")return pT("sessionStorage");if(e==="cookie")return(0,hct.hasCookies)();if(e==="memory")return!0;throw new Error("Storage method `"+t+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")}var L2={};Object.defineProperty(L2,"__esModule",{value:!0});var pct=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function gct(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var mct=function(){function t(){gct(this,t),this._data={}}return pct(t,[{key:"getItem",value:function(e){return this._data.hasOwnProperty(e)?this._data[e]:null}},{key:"setItem",value:function(e,n){return this._data[e]=String(n)}},{key:"removeItem",value:function(e){return delete this._data[e]}},{key:"clear",value:function(){return this._data={}}}]),t}();L2.default=mct;Object.defineProperty($n,"__esModule",{value:!0});$n.MemoryStorage=$n.CookieStorage=$n.isSupported=$n.storage=void 0;var vct=O2,Dp=D2(vct),yct=fh,LI=D2(yct),_ct=L2,DI=D2(_ct);function D2(t){return t&&t.__esModule?t:{default:t}}var el=null;(0,Dp.default)("localStorage")?$n.storage=el=window.localStorage:(0,Dp.default)("sessionStorage")?$n.storage=el=window.sessionStorage:(0,Dp.default)("cookieStorage")?$n.storage=el=new LI.default:$n.storage=el=new DI.default;var xct=$n.default=el;$n.storage=el;$n.isSupported=Dp.default;$n.CookieStorage=LI.default;$n.MemoryStorage=DI.default;class II{constructor(e="global"){zu(this,"group"),zu(this,"localStorage"),this.group=e,this.localStorage=xct}setGroup(e){this.group=e}getGroup(){return this.group}getItem(e){return this.localStorage.getItem(`${this.group}.${e}`)}setItem(e,n){this.localStorage.setItem(`${this.group}.${e}`,n)}removeItem(e){this.localStorage.removeItem(`${this.group}.${e}`)}}new II;class bct{constructor(){zu(this,"storageLocation","suggestion_history"),zu(this,"storage"),zu(this,"history",[]),this.storage=new II("commute");const e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}push(e){this.history=this.removeDuplicateEntries(e),this.history.unshift(e),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(e){return this.history.filter(n=>n.locationId!==e.locationId)}}const Bwt=new bct,wct=t=>{const e=m.exports.useRef(t),n=m.exports.useRef(),r=m.exports.useRef(!1),i=m.exports.useRef(!1),[,o]=m.exports.useState(0);r.current&&(i.current=!0),m.exports.useEffect(()=>(r.current||(n.current=e.current(),r.current=!0),o(s=>s+1),()=>{!i.current||n.current&&n.current()}),[])},Sct=(t,e)=>{const[n,r]=m.exports.useState(t);return m.exports.useEffect(()=>{const i=setTimeout(()=>{r(t)},e);return()=>{clearTimeout(i)}},[t,e]),n};var tu=(t=>(t.GET_STATE="get-state",t.GET_STATE_RESPONSE="get-state-response",t.SET_STATE="set-state",t.ON_CHANGE="on-change",t))(tu||{});const Ect={zoom:16,pitch:0,bearing:0,cooperativeGestures:!0},gT={},P1={locale:"en"},Cct={"local-content":{globalOptions:P1,options:Ect},"data-explorer":{globalOptions:P1,options:gT},demographics:{globalOptions:P1,options:gT}},NI=OI(()=>Q.createContext({})),FI=()=>{const t=Q.useContext(NI());if(!t)throw new Error("useStateManagerContext must be used under StateManagerProvider");return t},zI=Q.memo(({children:t})=>{const e=NI(),n=Tat(),r=Q.useRef(n),o=uc().current.pathname.split("/"),s=o[o.length-1],a=Cct[s],l=Q.useRef(),[c,u]=m.exports.useState(!1),[d,h]=m.exports.useState(a),f=Sct(d,500),p=_I(),g=x=>{r.current=x,h(x)},y=x=>{var b;x.name===tu.GET_STATE&&((b=l.current)==null||b.message(tu.GET_STATE_RESPONSE,r.current,x.eventId)),x.name===tu.SET_STATE&&g(x.data)};wct(()=>{const x=new _lt(n.channelId,{targetOrigin:document.referrer,window:window.parent});l.current=x,x==null||x.onMessage(y),x==null||x.connect().then(b=>{const w=qlt.mergeDeep(d,b.data);g(w),u(!0)})});const v=x=>{var b;(b=l.current)==null||b.message(tu.ON_CHANGE,x)};m.exports.useEffect(()=>{p({search:()=>f})},[f]),m.exports.useEffect(()=>{d.options&&v({type:"options",data:d.options})},[d.options]);const _=m.exports.useMemo(()=>({sdkState:d,setSdkState:g,onChange:v}),[d,g,v]);return c?O(e.Provider,{value:_,children:t}):null});zI.displayName="StateManagerProvider";const kct={en:()=>Hi(()=>import("./index.d464e7cf.js"),[]),fr:()=>Hi(()=>import("./index.e63e2d64.js"),[])},Act={en:()=>Hi(()=>import("./index.f4fcee01.js"),[]),fr:()=>Hi(()=>import("./index.130c24fb.js"),[])},Tct={en:()=>Hi(()=>import("./index.6fa755af.js"),[]),fr:()=>Hi(()=>import("./index.80a3d0e2.js"),[])},$ct={"local-content":t=>Act[t](),"data-explorer":t=>kct[t](),demographics:t=>Tct[t]()},BI=OI(()=>Q.createContext({})),jwt=()=>{const t=m.exports.useContext(BI());if(!t)throw new Error("useLangauges must be used under LanguagesProvider");return t},Mct=({children:t})=>{var h;const[e,n]=m.exports.useState(!0),[r,i]=m.exports.useState(),{sdkState:o}=FI(),s=((h=o.globalOptions)==null?void 0:h.locale)||"en",a=BI(),c=uc().current.pathname.split("/"),u=c[c.length-1],d=$ct[u];if(m.exports.useEffect(()=>{n(!0),d(s).then(f=>{i(f.translations)}).finally(()=>{n(!1)})},[s,d]),e)return null;if(!r)throw new Error("No translations were found.");return O(a.Provider,{value:{translations:r},children:t})};var Pct=Object.defineProperty,Oct=(t,e,n)=>e in t?Pct(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Bu=(t,e,n)=>(Oct(t,typeof e!="symbol"?e+"":e,n),n);function Rct(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jI={exports:{}},I2={exports:{}},VI=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},Lct=VI,as=Object.prototype.toString;function N2(t){return Array.isArray(t)}function Ex(t){return typeof t>"u"}function Dct(t){return t!==null&&!Ex(t)&&t.constructor!==null&&!Ex(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function HI(t){return as.call(t)==="[object ArrayBuffer]"}function Ict(t){return as.call(t)==="[object FormData]"}function Nct(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&HI(t.buffer),e}function Fct(t){return typeof t=="string"}function zct(t){return typeof t=="number"}function UI(t){return t!==null&&typeof t=="object"}function Ip(t){if(as.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Bct(t){return as.call(t)==="[object Date]"}function jct(t){return as.call(t)==="[object File]"}function Vct(t){return as.call(t)==="[object Blob]"}function WI(t){return as.call(t)==="[object Function]"}function Hct(t){return UI(t)&&WI(t.pipe)}function Uct(t){return as.call(t)==="[object URLSearchParams]"}function Wct(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Yct(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function F2(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),N2(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function Cx(){var t={};function e(i,o){Ip(t[o])&&Ip(i)?t[o]=Cx(t[o],i):Ip(i)?t[o]=Cx({},i):N2(i)?t[o]=i.slice():t[o]=i}for(var n=0,r=arguments.length;n<r;n++)F2(arguments[n],e);return t}function Gct(t,e,n){return F2(e,function(r,i){n&&typeof r=="function"?t[i]=Lct(r,n):t[i]=r}),t}function qct(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var Bn={isArray:N2,isArrayBuffer:HI,isBuffer:Dct,isFormData:Ict,isArrayBufferView:Nct,isString:Fct,isNumber:zct,isObject:UI,isPlainObject:Ip,isUndefined:Ex,isDate:Bct,isFile:jct,isBlob:Vct,isFunction:WI,isStream:Hct,isURLSearchParams:Uct,isStandardBrowserEnv:Yct,forEach:F2,merge:Cx,extend:Gct,trim:Wct,stripBOM:qct},ka=Bn;function mT(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var YI=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(ka.isURLSearchParams(e))r=e.toString();else{var i=[];ka.forEach(e,function(s,a){s===null||typeof s>"u"||(ka.isArray(s)?a=a+"[]":s=[s],ka.forEach(s,function(l){ka.isDate(l)?l=l.toISOString():ka.isObject(l)&&(l=JSON.stringify(l)),i.push(mT(a)+"="+mT(l))}))}),r=i.join("&")}if(r){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},Zct=Bn;function q0(){this.handlers=[]}q0.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};q0.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};q0.prototype.forEach=function(t){Zct.forEach(this.handlers,function(e){e!==null&&t(e)})};var Xct=q0,Kct=Bn,Qct=function(t,e){Kct.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})},GI=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,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},qI={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},O1,vT;function ZI(){if(vT)return O1;vT=1;var t=GI;return O1=function(e,n,r,i,o){var s=new Error(e);return t(s,n,r,i,o)},O1}var R1,yT;function Jct(){if(yT)return R1;yT=1;var t=ZI();return R1=function(e,n,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):n(t("Request failed with status code "+r.status,r.config,null,r.request,r))},R1}var L1,_T;function tut(){if(_T)return L1;_T=1;var t=Bn;return L1=t.isStandardBrowserEnv()?function(){return{write:function(e,n,r,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(n)),t.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),t.isString(i)&&a.push("path="+i),t.isString(o)&&a.push("domain="+o),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),L1}var xT,bT;function eut(){return bT||(bT=1,xT=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),xT}var wT,ST;function nut(){return ST||(ST=1,wT=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}),wT}var D1,ET;function rut(){if(ET)return D1;ET=1;var t=eut(),e=nut();return D1=function(n,r){return n&&!t(r)?e(n,r):r},D1}var I1,CT;function iut(){if(CT)return I1;CT=1;var t=Bn,e=["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 I1=function(n){var r={},i,o,s;return n&&t.forEach(n.split(`
632
- `),function(a){if(s=a.indexOf(":"),i=t.trim(a.substr(0,s)).toLowerCase(),o=t.trim(a.substr(s+1)),i){if(r[i]&&e.indexOf(i)>=0)return;i==="set-cookie"?r[i]=(r[i]?r[i]:[]).concat([o]):r[i]=r[i]?r[i]+", "+o:o}}),r},I1}var N1,kT;function out(){if(kT)return N1;kT=1;var t=Bn;return N1=t.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(o){var s=o;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){var s=t.isString(o)?i(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),N1}var F1,AT;function Z0(){if(AT)return F1;AT=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,F1=t,F1}var z1,TT;function sut(){if(TT)return z1;TT=1;var t=Bn,e=Jct(),n=tut(),r=YI,i=rut(),o=iut(),s=out(),a=ZI(),l=qI,c=Z0();return z1=function(u){return new Promise(function(d,h){var f=u.data,p=u.headers,g=u.responseType,y;function v(){u.cancelToken&&u.cancelToken.unsubscribe(y),u.signal&&u.signal.removeEventListener("abort",y)}t.isFormData(f)&&delete p["Content-Type"];var _=new XMLHttpRequest;if(u.auth){var x=u.auth.username||"",b=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";p.Authorization="Basic "+btoa(x+":"+b)}var w=i(u.baseURL,u.url);_.open(u.method.toUpperCase(),r(w,u.params,u.paramsSerializer),!0),_.timeout=u.timeout;function S(){if(_){var C="getAllResponseHeaders"in _?o(_.getAllResponseHeaders()):null,A=!g||g==="text"||g==="json"?_.responseText:_.response,k={data:A,status:_.status,statusText:_.statusText,headers:C,config:u,request:_};e(function($){d($),v()},function($){h($),v()},k),_=null}}if("onloadend"in _?_.onloadend=S:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(S)},_.onabort=function(){!_||(h(a("Request aborted",u,"ECONNABORTED",_)),_=null)},_.onerror=function(){h(a("Network Error",u,null,_)),_=null},_.ontimeout=function(){var C=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",A=u.transitional||l;u.timeoutErrorMessage&&(C=u.timeoutErrorMessage),h(a(C,u,A.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},t.isStandardBrowserEnv()){var E=(u.withCredentials||s(w))&&u.xsrfCookieName?n.read(u.xsrfCookieName):void 0;E&&(p[u.xsrfHeaderName]=E)}"setRequestHeader"in _&&t.forEach(p,function(C,A){typeof f>"u"&&A.toLowerCase()==="content-type"?delete p[A]:_.setRequestHeader(A,C)}),t.isUndefined(u.withCredentials)||(_.withCredentials=!!u.withCredentials),g&&g!=="json"&&(_.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&_.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",u.onUploadProgress),(u.cancelToken||u.signal)&&(y=function(C){!_||(h(!C||C&&C.type?new c("canceled"):C),_.abort(),_=null)},u.cancelToken&&u.cancelToken.subscribe(y),u.signal&&(u.signal.aborted?y():u.signal.addEventListener("abort",y))),f||(f=null),_.send(f)})},z1}var He=Bn,$T=Qct,aut=GI,lut=qI,cut={"Content-Type":"application/x-www-form-urlencoded"};function MT(t,e){!He.isUndefined(t)&&He.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function uut(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=sut()),t}function dut(t,e,n){if(He.isString(t))try{return(e||JSON.parse)(t),He.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}var X0={transitional:lut,adapter:uut(),transformRequest:[function(t,e){return $T(e,"Accept"),$T(e,"Content-Type"),He.isFormData(t)||He.isArrayBuffer(t)||He.isBuffer(t)||He.isStream(t)||He.isFile(t)||He.isBlob(t)?t:He.isArrayBufferView(t)?t.buffer:He.isURLSearchParams(t)?(MT(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):He.isObject(t)||e&&e["Content-Type"]==="application/json"?(MT(e,"application/json"),dut(t)):t}],transformResponse:[function(t){var e=this.transitional||X0.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||r&&He.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(i)throw o.name==="SyntaxError"?aut(o,this,"E_JSON_PARSE"):o}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, */*"}}};He.forEach(["delete","get","head"],function(t){X0.headers[t]={}});He.forEach(["post","put","patch"],function(t){X0.headers[t]=He.merge(cut)});var z2=X0,hut=Bn,fut=z2,put=function(t,e,n){var r=this||fut;return hut.forEach(n,function(i){t=i.call(r,t,e)}),t},PT,OT;function XI(){return OT||(OT=1,PT=function(t){return!!(t&&t.__CANCEL__)}),PT}var RT=Bn,B1=put,gut=XI(),mut=z2,vut=Z0();function j1(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new vut("canceled")}var yut=function(t){j1(t),t.headers=t.headers||{},t.data=B1.call(t,t.data,t.headers,t.transformRequest),t.headers=RT.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),RT.forEach(["delete","get","head","post","put","patch","common"],function(n){delete t.headers[n]});var e=t.adapter||mut.adapter;return e(t).then(function(n){return j1(t),n.data=B1.call(t,n.data,n.headers,t.transformResponse),n},function(n){return gut(n)||(j1(t),n&&n.response&&(n.response.data=B1.call(t,n.response.data,n.response.headers,t.transformResponse))),Promise.reject(n)})},jn=Bn,KI=function(t,e){e=e||{};var n={};function r(c,u){return jn.isPlainObject(c)&&jn.isPlainObject(u)?jn.merge(c,u):jn.isPlainObject(u)?jn.merge({},u):jn.isArray(u)?u.slice():u}function i(c){if(jn.isUndefined(e[c])){if(!jn.isUndefined(t[c]))return r(void 0,t[c])}else return r(t[c],e[c])}function o(c){if(!jn.isUndefined(e[c]))return r(void 0,e[c])}function s(c){if(jn.isUndefined(e[c])){if(!jn.isUndefined(t[c]))return r(void 0,t[c])}else return r(void 0,e[c])}function a(c){if(c in e)return r(t[c],e[c]);if(c in t)return r(void 0,t[c])}var l={url:o,method:o,data:o,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:a};return jn.forEach(Object.keys(t).concat(Object.keys(e)),function(c){var u=l[c]||i,d=u(c);jn.isUndefined(d)&&u!==a||(n[c]=d)}),n},LT,DT;function QI(){return DT||(DT=1,LT={version:"0.26.1"}),LT}var _ut=QI().version,B2={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){B2[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var IT={};B2.transitional=function(t,e,n){function r(i,o){return"[Axios v"+_ut+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return function(i,o,s){if(t===!1)throw new Error(r(o," has been removed"+(e?" in "+e:"")));return e&&!IT[o]&&(IT[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(i,o,s):!0}};function xut(t,e,n){if(typeof t!="object")throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],s=e[o];if(s){var a=t[o],l=a===void 0||s(a,o,t);if(l!==!0)throw new TypeError("option "+o+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+o)}}var but={assertOptions:xut,validators:B2},JI=Bn,wut=YI,NT=Xct,FT=yut,K0=KI,t9=but,Aa=t9.validators;function ph(t){this.defaults=t,this.interceptors={request:new NT,response:new NT}}ph.prototype.request=function(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=K0(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;n!==void 0&&t9.assertOptions(n,{silentJSONParsing:Aa.transitional(Aa.boolean),forcedJSONParsing:Aa.transitional(Aa.boolean),clarifyTimeoutError:Aa.transitional(Aa.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(e)===!1||(i=i&&d.synchronous,r.unshift(d.fulfilled,d.rejected))});var o=[];this.interceptors.response.forEach(function(d){o.push(d.fulfilled,d.rejected)});var s;if(!i){var a=[FT,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(o),s=Promise.resolve(e);a.length;)s=s.then(a.shift(),a.shift());return s}for(var l=e;r.length;){var c=r.shift(),u=r.shift();try{l=c(l)}catch(d){u(d);break}}try{s=FT(l)}catch(d){return Promise.reject(d)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};ph.prototype.getUri=function(t){return t=K0(this.defaults,t),wut(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};JI.forEach(["delete","get","head","options"],function(t){ph.prototype[t]=function(e,n){return this.request(K0(n||{},{method:t,url:e,data:(n||{}).data}))}});JI.forEach(["post","put","patch"],function(t){ph.prototype[t]=function(e,n,r){return this.request(K0(r||{},{method:t,url:e,data:n}))}});var Sut=ph,V1,zT;function Eut(){if(zT)return V1;zT=1;var t=Z0();function e(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var i=this;this.promise.then(function(o){if(i._listeners){var s,a=i._listeners.length;for(s=0;s<a;s++)i._listeners[s](o);i._listeners=null}}),this.promise.then=function(o){var s,a=new Promise(function(l){i.subscribe(l),s=l}).then(o);return a.cancel=function(){i.unsubscribe(s)},a},n(function(o){i.reason||(i.reason=new t(o),r(i.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},e.prototype.unsubscribe=function(n){if(this._listeners){var r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}},e.source=function(){var n,r=new e(function(i){n=i});return{token:r,cancel:n}},V1=e,V1}var BT,jT;function Cut(){return jT||(jT=1,BT=function(t){return function(e){return t.apply(null,e)}}),BT}var H1,VT;function kut(){if(VT)return H1;VT=1;var t=Bn;return H1=function(e){return t.isObject(e)&&e.isAxiosError===!0},H1}var HT=Bn,Aut=VI,Np=Sut,Tut=KI,$ut=z2;function e9(t){var e=new Np(t),n=Aut(Np.prototype.request,e);return HT.extend(n,Np.prototype,e),HT.extend(n,e),n.create=function(r){return e9(Tut(t,r))},n}var ui=e9($ut);ui.Axios=Np;ui.Cancel=Z0();ui.CancelToken=Eut();ui.isCancel=XI();ui.VERSION=QI().version;ui.all=function(t){return Promise.all(t)};ui.spread=Cut();ui.isAxiosError=kut();I2.exports=ui;I2.exports.default=ui;(function(t){t.exports=I2.exports})(jI);const n9=Rct(jI.exports),Mut=(t,e)=>n9.create({baseURL:{VITE_HERE_API_KEY:"KDL0aAzsbOcv7p53P2ovno2izfDOe93hyzZRrayktbE",VITE_API_KEY:"V3 dDMCy1EKO25e8GS5ZBB9Xe7YS52bfUrf.04252efe-5994-47bd-ad37-23e86f102d69",VITE_REACT_APP_MAPTILER_KEY:"9jNGatuzs05Q1oNlctEs",VITE_SEGMENT_KEY:"c0SISxJpICLXxstkrSppa4uxwYzBQbqf",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_API_URL||"https://api.locallogic.co/v3/",headers:{Accept:"application/json",Authorization:t},params:e});var r9=(t=>(t[t.groceries=0]="groceries",t[t.groceries_specialized=1]="groceries_specialized",t[t.shopping=2]="shopping",t[t.nightlife=3]="nightlife",t[t.restaurants=4]="restaurants",t[t.cafes=5]="cafes",t[t.daycares=6]="daycares",t[t.bus_stops=7]="bus_stops",t[t.rapid_transit_stations=8]="rapid_transit_stations",t[t.train_stations=9]="train_stations",t[t.parks=10]="parks",t[t.healthy_restaurants=11]="healthy_restaurants",t[t.fitness=12]="fitness",t[t.sport_facilities=13]="sport_facilities",t[t.health_care=14]="health_care",t[t.pet_care=15]="pet_care",t[t.car_fueling_stations=16]="car_fueling_stations",t[t.art_culture_science=17]="art_culture_science",t[t.home_improvement=18]="home_improvement",t[t.personal_care=19]="personal_care",t))(r9||{});const Put="/pois";function pa(t){this._maxSize=t,this.clear()}pa.prototype.clear=function(){this._size=0,this._values=Object.create(null)};pa.prototype.get=function(t){return this._values[t]};pa.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var Out=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i9=/^\d+$/,Rut=/^\d/,Lut=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Dut=/^\s*(['"]?)(.*?)(\1)\s*$/,j2=512,UT=new pa(j2),WT=new pa(j2),YT=new pa(j2),Ws={Cache:pa,split:kx,normalizePath:U1,setter:function(t){var e=U1(t);return WT.get(t)||WT.set(t,function(n,r){for(var i=0,o=e.length,s=n;i<o-1;){var a=e[i];if(a==="__proto__"||a==="constructor"||a==="prototype")return n;s=s[e[i++]]}s[e[i]]=r})},getter:function(t,e){var n=U1(t);return YT.get(t)||YT.set(t,function(r){for(var i=0,o=n.length;i<o;)if(r!=null||!e)r=r[n[i++]];else return;return r})},join:function(t){return t.reduce(function(e,n){return e+(V2(n)||i9.test(n)?"["+n+"]":(e?".":"")+n)},"")},forEach:function(t,e,n){Iut(Array.isArray(t)?t:kx(t),e,n)}};function U1(t){return UT.get(t)||UT.set(t,kx(t).map(function(e){return e.replace(Dut,"$2")}))}function kx(t){return t.match(Out)||[""]}function Iut(t,e,n){var r=t.length,i,o,s,a;for(o=0;o<r;o++)i=t[o],i&&(zut(i)&&(i='"'+i+'"'),a=V2(i),s=!a&&/^\d+$/.test(i),e.call(n,i,a,s,o,t))}function V2(t){return typeof t=="string"&&t&&["'",'"'].indexOf(t.charAt(0))!==-1}function Nut(t){return t.match(Rut)&&!t.match(i9)}function Fut(t){return Lut.test(t)}function zut(t){return!V2(t)&&(Nut(t)||Fut(t))}const But=/[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,Q0=t=>t.match(But)||[],J0=t=>t[0].toUpperCase()+t.slice(1),H2=(t,e)=>Q0(t).join(e).toLowerCase(),o9=t=>Q0(t).reduce((e,n)=>`${e}${e?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),jut=t=>J0(o9(t)),Vut=t=>H2(t,"_"),Hut=t=>H2(t,"-"),Uut=t=>J0(H2(t," ")),Wut=t=>Q0(t).map(J0).join(" ");var W1={words:Q0,upperFirst:J0,camelCase:o9,pascalCase:jut,snakeCase:Vut,kebabCase:Hut,sentenceCase:Uut,titleCase:Wut},U2={exports:{}};U2.exports=function(t){return s9(Yut(t),t)};U2.exports.array=s9;function s9(t,e){var n=t.length,r=new Array(n),i={},o=n,s=Gut(e),a=qut(t);for(e.forEach(function(c){if(!a.has(c[0])||!a.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(t[o],o,new Set);return r;function l(c,u,d){if(d.has(c)){var h;try{h=", node was:"+JSON.stringify(c)}catch(g){h=""}throw new Error("Cyclic dependency"+h)}if(!a.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[u]){i[u]=!0;var f=s.get(c)||new Set;if(f=Array.from(f),u=f.length){d.add(c);do{var p=f[--u];l(p,a.get(p),d)}while(u);d.delete(c)}r[--n]=c}}}function Yut(t){for(var e=new Set,n=0,r=t.length;n<r;n++){var i=t[n];e.add(i[0]),e.add(i[1])}return Array.from(e)}function Gut(t){for(var e=new Map,n=0,r=t.length;n<r;n++){var i=t[n];e.has(i[0])||e.set(i[0],new Set),e.has(i[1])||e.set(i[1],new Set),e.get(i[0]).add(i[1])}return e}function qut(t){for(var e=new Map,n=0,r=t.length;n<r;n++)e.set(t[n],n);return e}const Zut=Object.prototype.toString,Xut=Error.prototype.toString,Kut=RegExp.prototype.toString,Qut=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Jut=/^Symbol\((.*)\)(.*)$/;function tdt(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function GT(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const n=typeof t;if(n==="number")return tdt(t);if(n==="string")return e?`"${t}"`:t;if(n==="function")return"[Function "+(t.name||"anonymous")+"]";if(n==="symbol")return Qut.call(t).replace(Jut,"Symbol($1)");const r=Zut.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+Xut.call(t)+"]":r==="RegExp"?Kut.call(t):null}function Ys(t,e){let n=GT(t,e);return n!==null?n:JSON.stringify(t,function(r,i){let o=GT(this[r],e);return o!==null?o:i},2)}function a9(t){return t==null?[]:[].concat(t)}let edt=/\$\{\s*(\w+)\s*\}/g;class Sn extends Error{static formatError(e,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof e=="string"?e.replace(edt,(i,o)=>Ys(n[o])):typeof e=="function"?e(n):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],a9(e).forEach(o=>{Sn.isError(o)?(this.errors.push(...o.errors),this.inner=this.inner.concat(o.inner.length?o.inner:o)):this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Sn)}}let bi={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:t,type:e,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${Ys(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Ys(n,!0)}\``+i:`${t} must match the configured type. The validated value was: \`${Ys(n,!0)}\``+i}},Er={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"},so={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"},Ax={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Tx={isValue:"${path} field must be ${value}"},$x={noUnknown:"${path} field has unspecified keys: ${unknown}"},Fp={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:bi,string:Er,number:so,date:Ax,object:$x,array:Fp,boolean:Tx});const tv=t=>t&&t.__isYupSchema__;class pm{static fromOptions(e,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,s=typeof r=="function"?r:(...a)=>a.every(l=>l===r);return new pm(e,(a,l)=>{var c;let u=s(...a)?i:o;return(c=u==null?void 0:u(l))!=null?c:l})}constructor(e,n){this.fn=void 0,this.refs=e,this.refs=e,this.fn=n}resolve(e,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,e,n);if(i===void 0||i===e)return e;if(!tv(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}function ndt(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}const $f={context:"$",value:"."};class Mi{constructor(e,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 e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===$f.context,this.isValue=this.key[0]===$f.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?$f.context:this.isValue?$f.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ws.getter(this.path,!0),this.map=n.map}getValue(e,n,r){let i=this.isContext?r:this.isValue?e:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(e,n){return this.getValue(e,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(e){return e&&e.__isYupRef}}Mi.prototype.__isYupRef=!0;const dr=t=>t==null,rdt=["value","path","label","options","originalValue","spec","sync"];function Ta(t){function e(n,r,i){let{value:o,path:s="",label:a,options:l,originalValue:c,spec:u,sync:d}=n,h=ndt(n,rdt);const{name:f,test:p,params:g,message:y,skipAbsent:v}=t;let{parent:_,context:x,abortEarly:b=h.schema.spec.abortEarly}=l;function w(F){return Mi.isRef(F)?F.getValue(o,_,x):F}function S(F={}){const L=Object.assign({value:o,originalValue:c,label:a,path:F.path||s,spec:u},g,F.params);for(const X of Object.keys(L))L[X]=w(L[X]);const Y=new Sn(Sn.formatError(F.message||y,L),o,L.path,F.type||f);return Y.params=L,Y}const E=b?r:i;let C=Object.assign({path:s,parent:_,type:f,createError:S,resolve:w,options:l,originalValue:c},h);const A=F=>{Sn.isError(F)?E(F):F?i(null):E(S())},k=F=>{Sn.isError(F)?E(F):r(F)},$=v&&dr(o);if(!d){try{Promise.resolve($?!0:p.call(C,o,C)).then(A,k)}catch(F){k(F)}return}let M;try{var I;if(M=$?!0:p.call(C,o,C),typeof((I=M)==null?void 0:I.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(F){k(F);return}A(M)}return e.OPTIONS=t,e}let idt=t=>t.substr(0,t.length-1).substr(1);function odt(t,e,n,r=n){let i,o,s;return e?(Ws.forEach(e,(a,l,c)=>{let u=l?idt(a):a;t=t.resolve({context:r,parent:i,value:n});let d=t.type==="tuple",h=c?parseInt(u,10):0;if(t.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${e}. because there is no value at that index. `);i=n,n=n&&n[h],t=d?t.spec.types[h]:t.innerType}if(!c){if(!t.fields||!t.fields[u])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${s} which is a type: "${t.type}")`);i=n,n=n&&n[u],t=t.fields[u]}o=u,s=l?"["+a+"]":"."+a}),{schema:t,parent:i,parentPath:o}):{parent:i,parentPath:e,schema:t}}class gm{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 e=[];for(const n of this.list)e.push(n);for(const[,n]of this.refs)e.push(n.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((n,r)=>n.concat(Mi.isRef(r)?e(r):r),[])}add(e){Mi.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){Mi.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new gm;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,n){const r=this.clone();return e.list.forEach(i=>r.add(i)),e.refs.forEach(i=>r.add(i)),n.list.forEach(i=>r.delete(i)),n.refs.forEach(i=>r.delete(i)),r}}function nl(t,e=new Map){if(tv(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let n;if(t instanceof Date)n=new Date(t.getTime()),e.set(t,n);else if(t instanceof RegExp)n=new RegExp(t),e.set(t,n);else if(Array.isArray(t)){n=new Array(t.length),e.set(t,n);for(let r=0;r<t.length;r++)n[r]=nl(t[r],e)}else if(t instanceof Map){n=new Map,e.set(t,n);for(const[r,i]of t.entries())n.set(r,nl(i,e))}else if(t instanceof Set){n=new Set,e.set(t,n);for(const r of t)n.add(nl(r,e))}else if(t instanceof Object){n={},e.set(t,n);for(const[r,i]of Object.entries(t))n[r]=nl(i,e)}else throw Error(`Unable to clone ${t}`);return n}class Xn{constructor(e){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 gm,this._blacklist=new gm,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(bi.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),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=nl(Object.assign({},this.spec,e)),n}label(e){let n=this.clone();return n.spec.label=e,n}meta(...e){if(e.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},e[0]),n}withMutation(e){let n=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=n,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let n=this,r=e.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=n._blacklist.merge(e._blacklist,e._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{e.tests.forEach(s=>{o.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,e),n),n=n.resolve(e)}return n}resolveOptions(e){var n,r,i;return Object.assign({},e,{from:e.from||[],strict:(n=e.strict)!=null?n:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=e.recursive)!=null?i:this.spec.recursive})}cast(e,n={}){let r=this.resolve(Object.assign({value:e},n)),i=n.assert==="ignore-optionality",o=r._cast(e,n);if(n.assert!==!1&&!r.isType(o)){if(i&&dr(o))return o;let s=Ys(e),a=Ys(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
633
-
634
- attempted value: ${s}
635
- `+(a!==s?`result of cast: ${a}`:""))}return o}_cast(e,n){let r=e===void 0?e:this.transforms.reduce((i,o)=>o.call(this,i,e,this),e);return r===void 0&&(r=this.getDefault()),r}_validate(e,n={},r,i){let{sync:o,path:s,from:a=[],originalValue:l=e,strict:c=this.spec.strict}=n,u=e;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d={value:u,path:s,options:n,originalValue:l,schema:this,label:this.spec.label,spec:this.spec,sync:o,from:a},h=[];for(let f of Object.values(this.internalTests))f&&h.push(f);this.runTests({args:d,value:u,tests:h},r,f=>{if(f.length)return i(f,u);this.runTests({args:d,value:u,tests:this.tests},r,i)})}runTests(e,n,r){let i=!1,{tests:o,args:s,value:a}=e,l=h=>{i||(i=!0,n(h,a))},c=h=>{i||(i=!0,r(h,a))},u=o.length,d=[];if(!u)return c([]);for(let h=0;h<o.length;h++){const f=o[h];f(s,l,function(p){p&&(d=d.concat(p)),--u<=0&&c(d)})}}asNestedTest({key:e,index:n,parent:r,parentPath:i,originalParent:o,options:s}){const a=e!=null?e:n;if(a==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof a=="number";let c=r[a];const u=Object.assign({},s,{strict:!0,parent:r,value:c,originalValue:o[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?`${i||""}[${c?a:`"${a}"`}]`:(i?`${i}.`:"")+e});return(d,h,f)=>this.resolve(u)._validate(c,u,h,f)}validate(e,n){let r=this.resolve(Object.assign({},n,{value:e}));return new Promise((i,o)=>r._validate(e,n,(s,a)=>{Sn.isError(s)&&(s.value=a),o(s)},(s,a)=>{s.length?o(new Sn(s,a)):i(a)}))}validateSync(e,n){let r=this.resolve(Object.assign({},n,{value:e})),i;return r._validate(e,Object.assign({},n,{sync:!0}),(o,s)=>{throw Sn.isError(o)&&(o.value=s),o},(o,s)=>{if(o.length)throw new Sn(o,e);i=s}),i}isValid(e,n){return this.validate(e,n).then(()=>!0,r=>{if(Sn.isError(r))return!1;throw r})}isValidSync(e,n){try{return this.validateSync(e,n),!0}catch(r){if(Sn.isError(r))return!1;throw r}}_getDefault(){let e=this.spec.default;return e==null?e:typeof e=="function"?e.call(this):nl(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,n){const r=this.clone({nullable:e});return r.internalTests.nullable=Ta({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(e,n){const r=this.clone({optional:e});return r.internalTests.optionality=Ta({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=bi.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=bi.notNull){return this.nullability(!1,e)}required(e=bi.required){return this.clone().withMutation(n=>n.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let n=this.clone();return n.transforms.push(e),n}test(...e){let n;if(e.length===1?typeof e[0]=="function"?n={test:e[0]}:n=e[0]:e.length===2?n={name:e[0],test:e[1]}:n={name:e[0],message:e[1],test:e[2]},n.message===void 0&&(n.message=bi.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ta(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(o||s.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(e,n){!Array.isArray(e)&&typeof e!="string"&&(n=e,e=".");let r=this.clone(),i=a9(e).map(o=>new Mi(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new pm(i,n):pm.fromOptions(i,n)),r}typeError(e){let n=this.clone();return n.internalTests.typeError=Ta({message:e,name:"typeError",test(r){return!dr(r)&&!this.schema._typeCheck(r)?this.createError({params:{type:this.schema.type}}):!0}}),n}oneOf(e,n=bi.oneOf){let r=this.clone();return e.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ta({message:n,name:"oneOf",test(i){if(i===void 0)return!0;let o=this.schema._whitelist,s=o.resolveAll(this.resolve);return s.includes(i)?!0:this.createError({params:{values:o.toArray().join(", "),resolved:s}})}}),r}notOneOf(e,n=bi.notOneOf){let r=this.clone();return e.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ta({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,s=o.resolveAll(this.resolve);return s.includes(i)?this.createError({params:{values:o.toArray().join(", "),resolved:s}}):!0}}),r}strip(e=!0){let n=this.clone();return n.spec.strip=e,n}describe(e){const n=(e?this.resolve(e):this).clone(),{label:r,meta:i,optional:o,nullable:s}=n.spec;return{meta:i,label:r,optional:o,nullable:s,type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(a=>({name:a.OPTIONS.name,params:a.OPTIONS.params})).filter((a,l,c)=>c.findIndex(u=>u.name===a.name)===l)}}}Xn.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])Xn.prototype[`${t}At`]=function(e,n,r={}){const{parent:i,parentPath:o,schema:s}=odt(this,e,n,r.context);return s[t](i&&i[o],Object.assign({},r,{parent:i,path:e}))};for(const t of["equals","is"])Xn.prototype[t]=Xn.prototype.oneOf;for(const t of["not","nope"])Xn.prototype[t]=Xn.prototype.notOneOf;function W2(){return new l9}class l9 extends Xn{constructor(){super({type:"boolean",check(e){return e instanceof Boolean&&(e=e.valueOf()),typeof e=="boolean"}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(r.spec.coerce&&!r.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=Tx.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return dr(n)||n===!0}})}isFalse(e=Tx.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return dr(n)||n===!1}})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}W2.prototype=l9.prototype;let sdt=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,adt=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,ldt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,cdt=t=>dr(t)||t===t.trim(),udt={}.toString();function Gs(){return new c9}class c9 extends Xn{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;const i=e!=null&&e.toString?e.toString():e;return i===udt?e:i})})}required(e){return super.required(e).withMutation(n=>n.test({message:e||bi.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests.filter(n=>n.OPTIONS.name!=="required"),e))}length(e,n=Er.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n=Er.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n=Er.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||Er.matches,params:{regex:e},skipAbsent:!0,test:s=>s===""&&r||s.search(e)!==-1})}email(e=Er.email){return this.matches(sdt,{name:"email",message:e,excludeEmptyString:!0})}url(e=Er.url){return this.matches(adt,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Er.uuid){return this.matches(ldt,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=Er.trim){return this.transform(n=>n!=null?n.trim():n).test({message:e,name:"trim",test:cdt})}lowercase(e=Er.lowercase){return this.transform(n=>dr(n)?n:n.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>dr(n)||n===n.toLowerCase()})}uppercase(e=Er.uppercase){return this.transform(n=>dr(n)?n:n.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>dr(n)||n===n.toUpperCase()})}}Gs.prototype=c9.prototype;let ddt=t=>t!=+t;function Ne(){return new u9}class u9 extends Xn{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!ddt(e)}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(!r.spec.coerce)return e;let i=e;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return r.isType(i)?i:parseFloat(i)})})}min(e,n=so.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r>=this.resolve(e)}})}max(e,n=so.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r<=this.resolve(e)}})}lessThan(e,n=so.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(r){return r<this.resolve(e)}})}moreThan(e,n=so.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(r){return r>this.resolve(e)}})}positive(e=so.positive){return this.moreThan(0,e)}negative(e=so.negative){return this.lessThan(0,e)}integer(e=so.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(e=>dr(e)?e:e|0)}round(e){var n;let r=["ceil","floor","round","trunc"];if(e=((n=e)==null?void 0:n.toLowerCase())||"round",e==="trunc")return this.truncate();if(r.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(i=>dr(i)?i:Math[e](i))}}Ne.prototype=u9.prototype;var hdt=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function fdt(t){var e=[1,4,5,6,7,10,11],n=0,r,i;if(i=hdt.exec(t)){for(var o=0,s;s=e[o];++o)i[s]=+i[s]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(n=i[10]*60+i[11],i[9]==="+"&&(n=0-n)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else r=Date.parse?Date.parse(t):NaN;return r}let pdt=new Date(""),gdt=t=>Object.prototype.toString.call(t)==="[object Date]";class ev extends Xn{constructor(){super({type:"date",check(e){return gdt(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,n,r)=>!r.spec.coerce||r.isType(e)?e:(e=fdt(e),isNaN(e)?ev.INVALID_DATE:new Date(e)))})}prepareParam(e,n){let r;if(Mi.isRef(e))r=e;else{let i=this.cast(e);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(e,n=Ax.min){let r=this.prepareParam(e,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(e,n=Ax.max){let r=this.prepareParam(e,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}ev.INVALID_DATE=pdt;ev.prototype;function mdt(t,e=[]){let n=[],r=new Set,i=new Set(e.map(([s,a])=>`${s}-${a}`));function o(s,a){let l=Ws.split(s)[0];r.add(l),i.has(`${a}-${l}`)||n.push([a,l])}for(const s of Object.keys(t)){let a=t[s];r.add(s),Mi.isRef(a)&&a.isSibling?o(a.path,s):tv(a)&&"deps"in a&&a.deps.forEach(l=>o(l,s))}return U2.exports.array(Array.from(r),n).reverse()}function qT(t,e){let n=1/0;return t.some((r,i)=>{var o;if((o=e.path)!=null&&o.includes(r))return n=i,!0}),n}function d9(t){return(e,n)=>qT(t,e)-qT(t,n)}const h9=(t,e,n)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch(i){}return n.isType(r)?r:t};function zp(t){if("fields"in t){const e={};for(const[n,r]of Object.entries(t.fields))e[n]=zp(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=zp(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(zp)}):"optional"in t?t.optional():t}const vdt=(t,e)=>{const n=[...Ws.normalizePath(e)];if(n.length===1)return n[0]in t;let r=n.pop(),i=Ws.getter(Ws.join(n),!0)(t);return!!(i&&r in i)};let ZT=t=>Object.prototype.toString.call(t)==="[object Object]";function ydt(t,e){let n=Object.keys(t.fields);return Object.keys(e).filter(r=>n.indexOf(r)===-1)}const _dt=d9([]);function ga(t){return new f9(t)}class f9 extends Xn{constructor(e){super({type:"object",check(n){return ZT(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=_dt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,n={}){var r;let i=super._cast(e,n);if(i===void 0)return this.getDefault();if(!this._typeCheck(i))return i;let o=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(i).filter(d=>!this._nodes.includes(d))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),u=!1;for(const d of a){let h=o[d],f=d in i;if(h){let p,g=i[d];c.path=(n.path?`${n.path}.`:"")+d,h=h.resolve({value:g,context:n.context,parent:l});let y=h instanceof Xn?h.spec:void 0,v=y==null?void 0:y.strict;if(y!=null&&y.strip){u=u||d in i;continue}p=!n.__validating||!v?h.cast(i[d],c):i[d],p!==void 0&&(l[d]=p)}else f&&!s&&(l[d]=i[d]);(f!==d in l||l[d]!==i[d])&&(u=!0)}return u?l:i}_validate(e,n={},r,i){let{from:o=[],originalValue:s=e,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:s},...o],n.__validating=!0,n.originalValue=s,super._validate(e,n,r,(l,c)=>{if(!a||!ZT(c)){i(l,c);return}s=s||c;let u=[];for(let d of this._nodes){let h=this.fields[d];!h||Mi.isRef(h)||u.push(h.asNestedTest({options:n,key:d,parent:c,parentPath:n.path,originalParent:s}))}this.runTests({tests:u,value:c},r,d=>{i(d.sort(this._sortErrors).concat(l),c)})})}clone(e){const n=super.clone(e);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(e){let n=super.concat(e),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const s=r[i];r[i]=s===void 0?o:s}return n.withMutation(i=>i.setFields(r,this._excludedEdges))}_getDefault(){if("default"in this.spec)return super._getDefault();if(!this._nodes.length)return;let e={};return this._nodes.forEach(n=>{const r=this.fields[n];e[n]="getDefault"in r?r.getDefault():void 0}),e}setFields(e,n){let r=this.clone();return r.fields=e,r._nodes=mdt(e,n),r._sortErrors=d9(Object.keys(e)),n&&(r._excludedEdges=n),r}shape(e,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,e),i)})}partial(){const e={};for(const[n,r]of Object.entries(this.fields))e[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return zp(this)}pick(e){const n={};for(const r of e)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n)}omit(e){const n=Object.assign({},this.fields);for(const r of e)delete n[r];return this.setFields(n)}from(e,n,r){let i=Ws.getter(e,!0);return this.transform(o=>{if(!o)return o;let s=o;return vdt(o,e)&&(s=Object.assign({},o),r||delete s[e],s[n]=i(o)),s})}json(){return this.transform(h9)}noUnknown(e=!0,n=$x.noUnknown){typeof e!="boolean"&&(n=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=ydt(this.schema,i);return!e||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,n=$x.noUnknown){return this.noUnknown(!e,n)}transformKeys(e){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[e(i)]=n[i];return r})}camelCase(){return this.transformKeys(W1.camelCase)}snakeCase(){return this.transformKeys(W1.snakeCase)}constantCase(){return this.transformKeys(e=>W1.snakeCase(e).toUpperCase())}describe(e){let n=super.describe(e);n.fields={};for(const[i,o]of Object.entries(this.fields)){var r;let s=e;(r=s)!=null&&r.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),n.fields[i]=o.describe(s)}return n}}ga.prototype=f9.prototype;function ju(t){return new p9(t)}class p9 extends Xn{constructor(e){super({type:"array",check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=e}_cast(e,n){const r=super._cast(e,n);if(!this._typeCheck(r)||!this.innerType)return r;let i=!1;const o=r.map((s,a)=>{const l=this.innerType.cast(s,Object.assign({},n,{path:`${n.path||""}[${a}]`}));return l!==s&&(i=!0),l});return i?o:r}_validate(e,n={},r,i){var o;let s=this.innerType,a=(o=n.recursive)!=null?o:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(e,n,r,(l,c)=>{if(!a||!s||!this._typeCheck(c)){i(l,c);return}let u=new Array(c.length);for(let h=0;h<c.length;h++){var d;u[h]=s.asNestedTest({options:n,index:h,parent:c,parentPath:n.path,originalParent:(d=n.originalValue)!=null?d:e})}this.runTests({value:c,tests:u},r,h=>i(h.concat(l),c))})}clone(e){const n=super.clone(e);return n.innerType=this.innerType,n}json(){return this.transform(h9)}concat(e){let n=super.concat(e);return n.innerType=this.innerType,e.innerType&&(n.innerType=n.innerType?n.innerType.concat(e.innerType):e.innerType),n}of(e){let n=this.clone();if(!tv(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Ys(e));return n.innerType=e,n}length(e,n=Fp.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n){return n=n||Fp.min,this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n){return n=n||Fp.max,this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,n)=>this._typeCheck(e)?e:n==null?[]:[].concat(n))}compact(e){let n=e?(r,i,o)=>!e(r,i,o):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(e){let n=super.describe();if(this.innerType){var r;let i=e;(r=i)!=null&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),n.innerType=this.innerType.describe(e)}return n}}ju.prototype=p9.prototype;const xdt=new RegExp(`(${Object.keys(r9).filter(t=>Number.isNaN(Number(t))).join("|")})`),bdt=ga({lat:Ne().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:Ne().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:Ne().max(30),radius:Ne().max(25e3),include:ju().of(Gs().matches(xdt,"Must be a valid Score category.").required()).required()}),wdt=t=>async e=>{const n=await bdt.validate(e),{lat:r,lng:i,limit:o,radius:s,include:a}=n,l=await t.get(Put,{params:{lat:r,lng:i,limit:o,radius:s,include:a==null?void 0:a.join(",")}}),c=a.reduce((u,d)=>({...u,[d]:[]}),{});return l.data.data||c};var g9=(t=>(t[t.pedestrian_friendly=0]="pedestrian_friendly",t[t.cycling_friendly=1]="cycling_friendly",t[t.transit_friendly=2]="transit_friendly",t[t.car_friendly=3]="car_friendly",t[t.parks=4]="parks",t[t.groceries=5]="groceries",t[t.shopping=6]="shopping",t[t.nightlife=7]="nightlife",t[t.restaurants=8]="restaurants",t[t.cafes=9]="cafes",t[t.daycares=10]="daycares",t[t.primary_schools=11]="primary_schools",t[t.high_schools=12]="high_schools",t[t.quiet=13]="quiet",t[t.greenery=14]="greenery",t[t.historic=15]="historic",t[t.vibrant=16]="vibrant",t[t.wellness=17]="wellness",t))(g9||{});const Sdt="/scores",Edt=new RegExp(`(${Object.keys(g9).filter(t=>Number.isNaN(Number(t))).join("|")})`),Cdt=ga({lat:Ne().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:Ne().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geographyIds:ju().of(Gs().required()),geographyLevels:ju().of(Gs().matches(/10|20|30/,"Must be a valid Geography level.").required()),locationScoresRounding:W2(),include:ju().of(Gs().matches(Edt,"Must be a valid Score category.").required())}),kdt=t=>async e=>{const n=await Cdt.validate(e),{lat:r,lng:i,include:o,geographyIds:s,geographyLevels:a,locationScoresRounding:l=!0}=n;return(await t.get(Sdt,{params:{lat:r,lng:i,include:o==null?void 0:o.join(","),geography_levels:a==null?void 0:a.join(","),geography_ids:s==null?void 0:s.join(","),location_scores_rounding:l?".5":"none"}})).data.data},Adt="/schools",Tdt=ga({lat:Ne().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:Ne().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:Ne().max(30,"Must use a limit between 1 and 30."),radius:Ne().max(25e3,"Must use a radius between 1 and 25000."),include_catchments:W2()}),$dt=t=>async e=>{const n=await Tdt.validate(e),{lat:r,lng:i,limit:o,radius:s,include_catchments:a}=n;return(await t.get(Adt,{params:{lat:r,lng:i,limit:o,radius:s,include_catchments:a}})).data.data},Mdt="/profiles",Pdt=ga({lat:Ne().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:Ne().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geogId:Gs()}),Odt=t=>async e=>{const n=await Pdt.validate(e),{lat:r,lng:i,geogId:o}=n;return(await t.get(Mdt,{params:{lat:r,lng:i,geog_id:o}})).data.data},Rdt="/geographies",Ldt=ga({lat:Ne().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:Ne().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),include:Gs().oneOf(["geometry"])}),Ddt=t=>async e=>{const n=await Ldt.validate(e),{lat:r,lng:i,include:o}=n;return(await t.get(Rdt,{params:{lat:r,lng:i,include:o}})).data.data},Idt="/demographics",Ndt=ga({lat:Ne().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:Ne().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),radius:Ne().max(5e3)}),Fdt=t=>async e=>{const n=await Ndt.validate(e),{lat:r,lng:i,radius:o}=n;return(await t.get(Idt,{params:{lat:r,lng:i,radius:o}})).data.data.attributes},Y2="LocalLogicClient/";class zdt extends Error{constructor({message:e}){super(e),this.name=Y2+this.constructor.name}}class Bdt extends Error{constructor({message:e,response:n}){super(e),Bu(this,"statusCode"),Bu(this,"statusText"),Bu(this,"data"),this.name=Y2+this.constructor.name,this.statusCode=n==null?void 0:n.status,this.statusText=n==null?void 0:n.statusText,this.data=n==null?void 0:n.data}}class jdt extends Error{constructor({message:e}){super(e),this.name=Y2+this.constructor.name}}const XT=t=>{throw t instanceof Sn?new zdt(t):n9.isAxiosError(t)?new Bdt(t):new jdt(t)},dc=(t,e,n)=>{const r=n.value;return n.value=function(...i){try{const o=r.apply(this,i);return o&&o instanceof Promise?o.catch(s=>{XT(s)}):o}catch(o){XT(o)}},n};var Vdt=Object.defineProperty,Hdt=Object.getOwnPropertyDescriptor,hc=(t,e,n,r)=>{for(var i=r>1?void 0:r?Hdt(e,n):e,o=t.length-1,s;o>=0;o--)(s=t[o])&&(i=(r?s(e,n,i):s(i))||i);return r&&i&&Vdt(e,n,i),i};class ma{constructor(e,n={locale:"en"}){Bu(this,"requests"),Bu(this,"options"),this.requests=Mut(e,n),this.options=n}getPois(e){return wdt(this.requests)(e)}getScores(e){return kdt(this.requests)(e)}getSchools(e){return $dt(this.requests)(e)}getProfiles(e){return Odt(this.requests)(e)}getGeographies(e){return Ddt(this.requests)(e)}getDemographics(e){return Fdt(this.requests)(e)}}hc([dc],ma.prototype,"getPois",1);hc([dc],ma.prototype,"getScores",1);hc([dc],ma.prototype,"getSchools",1);hc([dc],ma.prototype,"getProfiles",1);hc([dc],ma.prototype,"getGeographies",1);hc([dc],ma.prototype,"getDemographics",1);const Udt=(t,e)=>new ma(t,e);var nv={exports:{}},Fc={};/**
636
- * @license React
637
- * react-jsx-runtime.production.min.js
638
- *
639
- * Copyright (c) Facebook, Inc. and its affiliates.
640
- *
641
- * This source code is licensed under the MIT license found in the
642
- * LICENSE file in the root directory of this source tree.
643
- */var KT;function Wdt(){if(KT)return Fc;KT=1;var t=Q,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},h=null,f=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:e,type:a,key:h,ref:f,props:d,_owner:i.current}}return Fc.Fragment=n,Fc.jsx=s,Fc.jsxs=s,Fc}(function(t){t.exports=Wdt()})(nv);const Jr=nv.exports.Fragment,H=nv.exports.jsx,jt=nv.exports.jsxs;var Ydt=Object.defineProperty,Gdt=(t,e,n)=>e in t?Ydt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ct=(t,e,n)=>(Gdt(t,typeof e!="symbol"?e+"":e,n),n);const Gl={colorPrimary100:"#FFFFFF",colorPrimary99:"#04162d",colorPrimary95:"#C8F9FF",colorPrimary90:"#87F2FF",colorPrimary80:"#4ED8E9",colorPrimary70:"#21BCCC",colorPrimary60:"#00A0AF",colorPrimary50:"#008491",colorPrimary40:"#006974",colorPrimary30:"#004F57",colorPrimary20:"#00363C",colorPrimary10:"#001F23",colorPrimary0:"#000000"},Et={colorNeutral100:"#FFFFFF",colorNeutral99:"#FBFDFD",colorNeutral95:"#EFF1F1",colorNeutral90:"#E0E3E3",colorNeutral80:"#C4C7C7",colorNeutral70:"#A9ACAC",colorNeutral60:"#8E9191",colorNeutral50:"#747878",colorNeutral40:"#5C5F5F",colorNeutral30:"#444747",colorNeutral20:"#2D3131",colorNeutral10:"#191C1D",colorNeutral0:"#000000"},G2={colorBlue70:"#0056D3"},qdt=Object.freeze(Object.defineProperty({__proto__:null,primaryColors:Gl,neutralColors:Et,blueColors:G2},Symbol.toStringTag,{value:"Module"})),mn=4,Zdt={"--ll-color-primary":Gl.colorPrimary50,"--ll-color-primary-variant1":Gl.colorPrimary40,"--ll-color-background":Et.colorNeutral100,"--ll-color-surface":Et.colorNeutral95,"--ll-color-surface-variant1":Et.colorNeutral90,"--ll-color-surface-variant2":Et.colorNeutral80,"--ll-color-on-primary":Et.colorNeutral100,"--ll-color-on-primary-variant1":Et.colorNeutral90,"--ll-color-on-background":Et.colorNeutral10,"--ll-color-on-background-variant1":Et.colorNeutral30,"--ll-color-on-surface":Et.colorNeutral10,"--ll-color-on-surface-variant1":Et.colorNeutral30,"--ll-color-placeholder":Et.colorNeutral60,"--ll-color-disabled":Et.colorNeutral60,"--ll-color-border":Et.colorNeutral90,"--ll-color-link":G2.colorBlue70},Xdt={"--ll-border-radius-small":`${mn}px`,"--ll-border-radius-medium":`${2*mn}px`,"--ll-border-radius-large":`${4*mn}px`},Kdt={"--ll-shadow-small":"rgb(0 0 0 / 18%) 0px 2px 5px","--ll-shadow-medium":"0px 5px 11px -4px rgba(0,0,0,0.75)"},Qdt={"--ll-spacing-auto":"auto","--ll-spacing-base-unit":`${mn}px`,"--ll-spacing-xx-small":"var(--ll-spacing-base-unit)","--ll-spacing-x-small":"calc(var(--ll-spacing-base-unit) * 2)","--ll-spacing-small":"calc(var(--ll-spacing-base-unit) * 3)","--ll-spacing-medium":"calc(var(--ll-spacing-base-unit) * 4)","--ll-spacing-large":"calc(var(--ll-spacing-base-unit) * 6)","--ll-spacing-x-large":"calc(var(--ll-spacing-base-unit) * 8)","--ll-spacing-xx-large":"calc(var(--ll-spacing-base-unit) * 12)","--ll-spacing-xxx-large":"calc(var(--ll-spacing-base-unit) * 16)"},Jdt={"--ll-font-family":"Inter, sans-serif","--ll-font-family-mono":"Consolas, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Monaco, Courier New, Courier, monospace;"},tht={"--ll-font-size-base":"12px","--ll-font-size-h1":"calc(var(--ll-font-size-base) * 4)","--ll-font-size-h2":"calc(var(--ll-font-size-base) * 3)","--ll-font-size-h3":"calc(var(--ll-font-size-base) * 2)","--ll-font-size-h4":"calc(var(--ll-font-size-base) * 1.667)","--ll-font-size-h5":"calc(var(--ll-font-size-base) * 1.5)","--ll-font-size-h6":"calc(var(--ll-font-size-base) * 1.333)","--ll-font-size-p":"calc(var(--ll-font-size-base) * 1.167)","--ll-font-size-caption-1":"var(--ll-font-size-base)","--ll-font-size-caption-2":"calc(var(--ll-font-size-base) * 0.833)"},eht={"--ll-font-weight-light":"400","--ll-font-weight-normal":"500","--ll-font-weight-medium":"600","--ll-font-weight-bold":"700"},q2={...Zdt,...Xdt,...Kdt,...Qdt,...Jdt,...tht,...eht},nht={...q2,"--ll-color-primary":Gl.colorPrimary60,"--ll-color-primary-variant1":Gl.colorPrimary50,"--ll-color-background":Et.colorNeutral10,"--ll-color-surface":Et.colorNeutral20,"--ll-color-surface-variant1":Et.colorNeutral30,"--ll-color-surface-variant2":Et.colorNeutral40,"--ll-color-on-primary":Et.colorNeutral100,"--ll-color-on-primary-variant1":Et.colorNeutral90,"--ll-color-on-background":Et.colorNeutral99,"--ll-color-on-background-variant1":Et.colorNeutral80,"--ll-color-on-surface":Et.colorNeutral80,"--ll-color-on-surface-variant1":Et.colorNeutral90,"--ll-color-placeholder":Et.colorNeutral70,"--ll-color-disabled":Et.colorNeutral70,"--ll-color-border":Et.colorNeutral30,"--ll-color-link":G2.colorBlue70},rht=Object.keys(q2),T=rht.reduce((t,e)=>({...t,[e]:`var(${e})`}),{}),iht={day:q2,night:nht},oht=q3`
644
- :root {
645
- ${({themeName:t,overrides:e})=>({...iht[t||"day"],...e})};
646
- }
647
- `,sht=t=>t,aht=sht({default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}}),lht=Object.freeze(Object.defineProperty({__proto__:null,transitions:aht},Symbol.toStringTag,{value:"Module"})),m9={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},cht=Object.freeze(Object.defineProperty({__proto__:null,screenSizes:m9},Symbol.toStringTag,{value:"Module"})),Bp={colors:qdt,...lht,...cht},uht=({$size:t})=>t==="small"?vt`
648
- padding: calc(${T["--ll-spacing-xx-small"]} / 2) ${T["--ll-spacing-xx-small"]};
649
- `:t==="large"?vt`
650
- padding: calc(${T["--ll-spacing-small"]} / 2) ${T["--ll-spacing-medium"]};
651
- font-size: ${T["--ll-font-size-p"]};
652
- line-height: ${T["--ll-font-size-h6"]};
653
- `:vt`
654
- padding: ${T["--ll-spacing-xx-small"]} ${T["--ll-spacing-x-small"]};
655
- `,dht=N.span`
656
- white-space: nowrap;
657
- display: inline-flex;
658
- color: ${({$textColor:t})=>t};
659
- background-color: ${({$backgroundColor:t})=>t};
660
- border-radius: ${T["--ll-border-radius-small"]};
661
- line-height: 1;
662
- font-family: ${T["--ll-font-family"]};
663
- font-size: ${T["--ll-font-size-caption-1"]};
664
- justify-content: center;
665
-
666
- ${uht};
667
- `;var rv={exports:{}},zc={};/**
668
- * @license React
669
- * react-jsx-runtime.production.min.js
670
- *
671
- * Copyright (c) Facebook, Inc. and its affiliates.
672
- *
673
- * This source code is licensed under the MIT license found in the
674
- * LICENSE file in the root directory of this source tree.
675
- */var QT;function hht(){if(QT)return zc;QT=1;var t=Q,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},h=null,f=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:e,type:a,key:h,ref:f,props:d,_owner:i.current}}return zc.Fragment=n,zc.jsx=s,zc.jsxs=s,zc}(function(t){t.exports=hht()})(rv);const Z2=rv.exports.Fragment,at=rv.exports.jsx,Pi=rv.exports.jsxs,X2=({text:t,size:e="small",className:n,textColor:r=Et.colorNeutral10,backgroundColor:i=Et.colorNeutral90,onClick:o})=>at(dht,{$size:e,onClick:o,className:n,$textColor:r,$backgroundColor:i,children:t}),fht=N.div`
676
- height: ${({height:t})=>t}px;
677
- width: ${({width:t})=>t}px;
678
- fill: ${({fill:t})=>t};
679
- display: flex;
680
-
681
- & > svg {
682
- fill: inherit;
683
- height: 100%;
684
- width: 100%;
685
- }
686
- `,Kn=({SVGElement:t,fill:e="--ll-color-on-background",height:n=24,width:r=24})=>at(fht,{fill:e,height:n,width:r,children:at(t,{})}),JT=({$variant:t})=>t==="h1"?T["--ll-font-size-h1"]:t==="h2"?T["--ll-font-size-h2"]:t==="h3"?T["--ll-font-size-h3"]:t==="h4"?T["--ll-font-size-h4"]:t==="h5"?T["--ll-font-size-h5"]:t==="h6"?T["--ll-font-size-h6"]:t==="p"?T["--ll-font-size-p"]:t==="caption1"?T["--ll-font-size-caption-1"]:t==="caption2"?T["--ll-font-size-caption-2"]:T["--ll-font-size-h2"],t$=({$color:t})=>t in T?T[t]:t,v9=N.span`
687
- overflow: hidden;
688
- display: inline-block;
689
- width: 100%;
690
- line-height: ${({$lineHeight:t})=>t||1.45};
691
- margin: 0 0 ${({$noMargin:t})=>t?"0":"0.5em"} 0;
692
- font-size: inherit;
693
- font-weight: inherit;
694
- `,pht=N.div`
695
- ${t=>vt`
696
- text-align: ${t.$align};
697
- font-size: ${JT(t)};
698
- font-family: ${t.$family==="sans-serif"?T["--ll-font-family"]:T["--ll-font-family-mono"]};
699
- font-variant: ${t.$fontVariant};
700
- letter-spacing: ${t.$letterSpacing};
701
- color: ${t$(t)};
702
- font-weight: ${T[t.$weight]};
703
- overflow: hidden;
704
- display: flex;
705
-
706
- svg {
707
- height: ${JT(t)};
708
- fill: ${t$(t)};
709
- }
710
-
711
- ${v9} {
712
- ${t.$lineClamp&&vt`
713
- display: -webkit-box;
714
- -webkit-line-clamp: ${t.$lineClamp};
715
- -webkit-box-orient: vertical;
716
- overflow: hidden;
717
- text-overflow: ellipsis;
718
- `}
719
- }
720
- `}
721
- `,ae=({children:t,variant:e="p",align:n,color:r="--ll-color-on-background",lineClamp:i,noMargin:o,lineHeight:s,weight:a="--ll-font-weight-normal",family:l="sans-serif",className:c,fontVariant:u="initial",letterSpacing:d})=>{const h=["caption1","caption2","p"].includes(e)?"p":e;return at(pht,{$variant:e,$align:n,$color:r,$lineClamp:i,$weight:a,$family:l,$fontVariant:u,$letterSpacing:d,children:at(v9,{as:h,className:c,$noMargin:o,$lineHeight:s,children:t})})},ght=N.a`
722
- font-family: ${T["--ll-font-family"]};
723
- font-size: ${T["--ll-font-size-p"]};
724
- color: ${T["--ll-color-link"]};
725
- cursor: pointer;
726
-
727
- ${({lineClamp:t})=>t&&vt`
728
- overflow: hidden;
729
- text-overflow: ellipsis;
730
- display: -webkit-box;
731
- -webkit-box-orient: vertical;
732
- -webkit-line-clamp: ${t};
733
- `}
734
- `,e$=({children:t,href:e,className:n,lineClamp:r,download:i})=>at(ght,{href:e,target:"_blank",rel:"noreferrer",lineClamp:r,className:n,download:i,children:t});function nt(){return nt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nt.apply(this,arguments)}function mht(t,e){const n=m.exports.createContext(e);function r(o){const{children:s,...a}=o,l=m.exports.useMemo(()=>a,Object.values(a));return m.exports.createElement(n.Provider,{value:l},s)}function i(o){const s=m.exports.useContext(n);if(s)return s;if(e!==void 0)return e;throw new Error(`\`${o}\` must be used within \`${t}\``)}return r.displayName=t+"Provider",[r,i]}function fc(t,e=[]){let n=[];function r(o,s){const a=m.exports.createContext(s),l=n.length;n=[...n,s];function c(d){const{scope:h,children:f,...p}=d,g=(h==null?void 0:h[t][l])||a,y=m.exports.useMemo(()=>p,Object.values(p));return m.exports.createElement(g.Provider,{value:y},f)}function u(d,h){const f=(h==null?void 0:h[t][l])||a,p=m.exports.useContext(f);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,u]}const i=()=>{const o=n.map(s=>m.exports.createContext(s));return function(s){const a=(s==null?void 0:s[t])||o;return m.exports.useMemo(()=>({[`__scope${t}`]:{...s,[t]:a}}),[s,a])}};return i.scopeName=t,[r,vht(i,...e)]}function vht(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const o=r.reduce((s,{useScope:a,scopeName:l})=>{const c=a(i)[`__scope${l}`];return{...s,...c}},{});return m.exports.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function yht(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function y9(...t){return e=>t.forEach(n=>yht(n,e))}function Wt(...t){return m.exports.useCallback(y9(...t),t)}const ql=m.exports.forwardRef((t,e)=>{const{children:n,...r}=t,i=m.exports.Children.toArray(n),o=i.find(xht);if(o){const s=o.props.children,a=i.map(l=>l===o?m.exports.Children.count(s)>1?m.exports.Children.only(null):m.exports.isValidElement(s)?s.props.children:null:l);return m.exports.createElement(Mx,nt({},r,{ref:e}),m.exports.isValidElement(s)?m.exports.cloneElement(s,void 0,a):null)}return m.exports.createElement(Mx,nt({},r,{ref:e}),n)});ql.displayName="Slot";const Mx=m.exports.forwardRef((t,e)=>{const{children:n,...r}=t;return m.exports.isValidElement(n)?m.exports.cloneElement(n,{...bht(r,n.props),ref:y9(e,n.ref)}):m.exports.Children.count(n)>1?m.exports.Children.only(null):null});Mx.displayName="SlotClone";const _ht=({children:t})=>m.exports.createElement(m.exports.Fragment,null,t);function xht(t){return m.exports.isValidElement(t)&&t.type===_ht}function bht(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?n[r]=(...s)=>{o==null||o(...s),i==null||i(...s)}:r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}const wht=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Pt=wht.reduce((t,e)=>{const n=m.exports.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?ql:e;return m.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.exports.createElement(a,nt({},s,{ref:i}))});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function Sht(t,e){t&&zn.exports.flushSync(()=>t.dispatchEvent(e))}const Nn=Boolean(globalThis==null?void 0:globalThis.document)?m.exports.useLayoutEffect:()=>{},Eht=nb["useId".toString()]||(()=>{});let Cht=0;function gh(t){const[e,n]=m.exports.useState(Eht());return Nn(()=>{t||n(r=>r!=null?r:String(Cht++))},[t]),t||(e?`radix-${e}`:"")}const kht="Label",[Aht,Tht]=mht(kht,{id:void 0,controlRef:{current:null}}),$ht=m.exports.forwardRef((t,e)=>{const{htmlFor:n,id:r,...i}=t,o=m.exports.useRef(null),s=m.exports.useRef(null),a=Wt(e,s),l=gh(r);return m.exports.useEffect(()=>{if(n){const c=document.getElementById(n);if(s.current&&c){const u=()=>c.getAttribute("aria-labelledby"),d=[l,u()].filter(Boolean).join(" ");return c.setAttribute("aria-labelledby",d),o.current=c,()=>{var h;const f=(h=u())===null||h===void 0?void 0:h.replace(l,"");f===""?c.removeAttribute("aria-labelledby"):f&&c.setAttribute("aria-labelledby",f)}}}},[l,n]),m.exports.createElement(Aht,{id:l,controlRef:o},m.exports.createElement(Pt.span,nt({role:"label",id:l},i,{ref:a,onMouseDown:c=>{var u;(u=t.onMouseDown)===null||u===void 0||u.call(t,c),!c.defaultPrevented&&c.detail>1&&c.preventDefault()},onClick:c=>{var u;if((u=t.onClick)===null||u===void 0||u.call(t,c),!o.current||c.defaultPrevented)return;const d=o.current.contains(c.target),h=c.isTrusted===!0;!d&&h&&(o.current.click(),o.current.focus())}})))}),_9=t=>{const e=Tht("LabelConsumer"),{controlRef:n}=e;return m.exports.useEffect(()=>{t&&(n.current=t)},[t,n]),e.id},Mht=$ht;N(Mht)`
735
- font-size: ${T["--ll-font-size-p"]};
736
- font-family: ${T["--ll-font-family"]};
737
- color: ${T["--ll-color-placeholder"]};
738
- `;const Pht=b0`
739
- 0% {
740
- transform: rotate(0deg);
741
- }
742
- 100% {
743
- transform: rotate(360deg);
744
- }
745
- `,Y1={small:mn*4,medium:mn*6,large:mn*8},Oht=N.div`
746
- height: ${({size:t})=>Y1[t]}px;
747
- width: ${({size:t})=>Y1[t]}px;
748
- border: ${({size:t})=>Y1[t]/6}px solid ${T["--ll-color-on-surface-variant1"]};
749
- border-bottom-color: transparent;
750
- border-radius: 50%;
751
- display: inline-block;
752
- box-sizing: border-box;
753
- animation: ${Pht} 1s linear infinite;
754
- `,Rht=({size:t="medium"})=>at(Oht,{size:t}),Vu={primary:{background:T["--ll-color-primary"],onBackground:T["--ll-color-on-primary"],hover:T["--ll-color-primary-variant1"]}},Lht=({size:t})=>t==="small"?`font-size: ${T["--ll-font-size-caption-1"]}`:`font-size: ${T["--ll-font-size-p"]}`,K2=({size:t})=>t==="small"?`${mn*8}px`:t==="large"?`${mn*12}px`:`${mn*10}px`,Dht=({size:t})=>t==="small"?`padding: 0 ${T["--ll-spacing-x-small"]}`:t==="large"?`padding: 0 ${T["--ll-spacing-medium"]}`:`padding: 0 ${T["--ll-spacing-small"]}`,Iht=({size:t})=>t==="large"?"svg { height: 24px; }":t==="small"?"svg { height: 12px }":"svg { height: 20px; }",Nht=vt`
755
- color: ${T["--ll-color-on-background"]};
756
-
757
- &:disabled {
758
- cursor: default;
759
- }
760
-
761
- height: ${K2};
762
- `,Fht=vt`
763
- ${({color:t="primary"})=>vt`
764
- background-color: ${Vu[t].background};
765
- color: ${Vu[t].onBackground};
766
- border: 1px solid transparent;
767
-
768
- &:hover {
769
- background-color: ${Vu[t].hover};
770
- }
771
-
772
- &:disabled {
773
- background-color: ${T["--ll-color-disabled"]};
774
- cursor: default;
775
- }
776
- `};
777
- height: ${K2};
778
- `,zht=vt`
779
- ${({color:t="primary"})=>vt`
780
- border-color: ${Vu[t].background};
781
- border-width: 1px;
782
- border-style: solid;
783
- color: ${Vu[t].background};
784
- `};
785
-
786
- &:hover {
787
- background-color: rgba(0, 0, 0, 0.03);
788
- }
789
-
790
- height: ${K2};
791
- `,Bht=t=>({contained:Fht,outlined:zht,text:Nht})[t.variant],jht=N.div`
792
- display: flex;
793
- align-items: center;
794
- margin-right: ${T["--ll-spacing-x-small"]};
795
- margin-left: calc(-1 * ${T["--ll-spacing-xx-small"]});
796
- `,Vht=N.button`
797
- font-weight: ${T["--ll-font-weight-normal"]};
798
- border-radius: ${T["--ll-border-radius-small"]};
799
- align-items: center;
800
- justify-content: center;
801
- cursor: pointer;
802
- display: inline-flex;
803
- background: none;
804
- border: none;
805
- box-sizing: border-box;
806
-
807
- svg {
808
- fill: currentColor;
809
- }
810
-
811
- ${Bht};
812
- ${Iht};
813
- ${Lht};
814
- ${Dht};
815
- `,iv=Q.forwardRef(({children:t,disabled:e=!1,onClick:n,variant:r="contained",startAdornment:i,size:o="medium",type:s="button",color:a,isLoading:l,className:c},u)=>at(Vht,{variant:r,size:o,onClick:d=>{e||!n||l||n(d)},disabled:e||l,className:c,color:a,type:s,ref:u,children:l?at(Rht,{}):Pi(Z2,{children:[i&&at(jht,{children:i}),t]})}));iv.displayName="Button";N.div`
816
- display: flex;
817
- flex-direction: column;
818
- `;N.div`
819
- position: relative;
820
- `;N(iv)`
821
- position: absolute;
822
- right: 0px;
823
- top: 0px;
824
- `;N.input`
825
- all: unset;
826
- display: inline-flex;
827
- align-items: center;
828
- justify-content: center;
829
- border-radius: ${T["--ll-border-radius-small"]};
830
- padding: 0 ${T["--ll-spacing-x-small"]};
831
- height: 30px;
832
- line-height: 1;
833
- font-size: ${T["--ll-font-size-p"]};
834
- font-family: ${T["--ll-font-family"]};
835
- color: ${T["--ll-color-on-background"]};
836
- background-color: ${T["--ll-color-background"]};
837
- border: 1px solid ${T["--ll-color-border"]};
838
- width: calc(100% - ${T["--ll-spacing-medium"]});
839
-
840
- &:focus {
841
- box-shadow: ${T["--ll-shadow-small"]};
842
- }
843
-
844
- // Set to 16px to avoid mobile to zoom in to the input
845
- @media (max-width: ${m9.tablet}px) {
846
- font-size: ${T["--ll-font-size-h6"]};
847
- }
848
- `;const mm={small:20,medium:32,large:40},Hht=N(Yw.div)`
849
- background: linear-gradient(
850
- to top,
851
- ${({$backgroundColorHighlight:t})=>t},
852
- ${({$backgroundColor:t})=>t}
853
- );
854
- border-radius: 50%;
855
- border: 2px solid #fff;
856
- height: ${({$size:t})=>mm[t]}px;
857
- width: ${({$size:t})=>mm[t]}px;
858
- display: flex;
859
- justify-content: center;
860
- align-items: center;
861
- box-shadow: ${T["--ll-shadow-small"]};
862
- `,x9=({fill:t="#fff",backgroundColor:e=T["--ll-color-primary"],backgroundColorHighlight:n=e,SVGElement:r,size:i="small",expandMarker:o})=>at(Hht,{"data-testid":"svgInfo",$backgroundColor:e,$backgroundColorHighlight:n,$size:i,variants:{default:{scale:1},hovered:{scale:1.2}},animate:o?"hovered":"default",whileHover:{scale:1.2},transition:Bp.transitions.default,children:at(Kn,{SVGElement:r,fill:t,height:mm[i]/1.5,width:mm[i]/1.5})});function Dt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(t==null||t(r),n===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}function Jo(t){const e=m.exports.useRef(t);return m.exports.useEffect(()=>{e.current=t}),m.exports.useMemo(()=>(...n)=>{var r;return(r=e.current)===null||r===void 0?void 0:r.call(e,...n)},[])}function Fd({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=Uht({defaultProp:e,onChange:n}),o=t!==void 0,s=o?t:r,a=Jo(n),l=m.exports.useCallback(c=>{if(o){const u=typeof c=="function"?c(t):c;u!==t&&a(u)}else i(c)},[o,t,i,a]);return[s,l]}function Uht({defaultProp:t,onChange:e}){const n=m.exports.useState(t),[r]=n,i=m.exports.useRef(r),o=Jo(e);return m.exports.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}function Q2(t){const e=m.exports.useRef({value:t,previous:t});return m.exports.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function J2(t){const[e,n]=m.exports.useState(void 0);return Nn(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=t.offsetWidth,a=t.offsetHeight;n({width:s,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}const b9="Switch",[Wht,Vwt]=fc(b9),[Yht,Ght]=Wht(b9),qht=m.exports.forwardRef((t,e)=>{const{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:s,required:a,disabled:l,value:c="on",onCheckedChange:u,...d}=t,[h,f]=m.exports.useState(null),p=Wt(e,w=>f(w)),g=_9(h),y=r||g,v=m.exports.useRef(!1),_=h?Boolean(h.closest("form")):!0,[x=!1,b]=Fd({prop:o,defaultProp:s,onChange:u});return m.exports.createElement(Yht,{scope:n,checked:x,disabled:l},m.exports.createElement(Pt.button,nt({type:"button",role:"switch","aria-checked":x,"aria-labelledby":y,"aria-required":a,"data-state":w9(x),"data-disabled":l?"":void 0,disabled:l,value:c},d,{ref:p,onClick:Dt(t.onClick,w=>{b(S=>!S),_&&(v.current=w.isPropagationStopped(),v.current||w.stopPropagation())})})),_&&m.exports.createElement(Kht,{control:h,bubbles:!v.current,name:i,value:c,checked:x,required:a,disabled:l,style:{transform:"translateX(-100%)"}}))}),Zht="SwitchThumb",Xht=m.exports.forwardRef((t,e)=>{const{__scopeSwitch:n,...r}=t,i=Ght(Zht,n);return m.exports.createElement(Pt.span,nt({"data-state":w9(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:e}))}),Kht=t=>{const{control:e,checked:n,bubbles:r=!0,...i}=t,o=m.exports.useRef(null),s=Q2(n),a=J2(e);return m.exports.useEffect(()=>{const l=o.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(s!==n&&u){const d=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent(d)}},[s,n,r]),m.exports.createElement("input",nt({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function w9(t){return t?"checked":"unchecked"}const Qht=qht,Jht=Xht;N(Qht)`
863
- all: unset;
864
- width: 42px;
865
- height: 24px;
866
- background-color: ${T["--ll-color-disabled"]};
867
- border-radius: 13px;
868
- position: relative;
869
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
870
-
871
- &[data-state="checked"] {
872
- background-color: ${T["--ll-color-on-background"]};
873
- }
874
- `;N(Jht)`
875
- display: block;
876
- width: 18px;
877
- height: 18px;
878
- background-color: ${T["--ll-color-background"]};
879
- border-radius: 9px;
880
- transition: transform 100ms;
881
- transform: translateX(3px);
882
- will-change: transform;
883
-
884
- &[data-state="checked"] {
885
- transform: translateX(21px);
886
- }
887
- `;function Px(t,[e,n]){return Math.min(n,Math.max(e,t))}const tft=m.exports.createContext(void 0);function S9(t){const e=m.exports.useContext(tft);return t||e||"ltr"}function E9(t){const e=t+"CollectionProvider",[n,r]=fc(e),[i,o]=n(e,{collectionRef:{current:null},itemMap:new Map}),s=f=>{const{scope:p,children:g}=f,y=Q.useRef(null),v=Q.useRef(new Map).current;return Q.createElement(i,{scope:p,itemMap:v,collectionRef:y},g)},a=t+"CollectionSlot",l=Q.forwardRef((f,p)=>{const{scope:g,children:y}=f,v=o(a,g),_=Wt(p,v.collectionRef);return Q.createElement(ql,{ref:_},y)}),c=t+"CollectionItemSlot",u="data-radix-collection-item",d=Q.forwardRef((f,p)=>{const{scope:g,children:y,...v}=f,_=Q.useRef(null),x=Wt(p,_),b=o(c,g);return Q.useEffect(()=>(b.itemMap.set(_,{ref:_,...v}),()=>void b.itemMap.delete(_))),Q.createElement(ql,{[u]:"",ref:x},y)});function h(f){const p=o(t+"CollectionConsumer",f);return Q.useCallback(()=>{const g=p.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${u}]`));return Array.from(p.itemMap.values()).sort((v,_)=>y.indexOf(v.ref.current)-y.indexOf(_.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,r]}const C9=["PageUp","PageDown"],k9=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],A9={ltr:["ArrowDown","Home","ArrowLeft","PageDown"],rtl:["ArrowDown","Home","ArrowRight","PageDown"]},mh="Slider",[Ox,eft,nft]=E9(mh),[T9,Hwt]=fc(mh,[nft]),[rft,ov]=T9(mh),ift=m.exports.forwardRef((t,e)=>{const{name:n,min:r=0,max:i=100,step:o=1,orientation:s="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:u,onValueChange:d=()=>{},...h}=t,[f,p]=m.exports.useState(null),g=Wt(e,k=>p(k)),y=m.exports.useRef(new Set),v=m.exports.useRef(0),_=s==="horizontal",x=f?Boolean(f.closest("form")):!0,b=_?oft:sft,[w=[],S]=Fd({prop:u,defaultProp:c,onChange:k=>{var $;($=[...y.current][v.current])===null||$===void 0||$.focus(),d(k)}});function E(k){const $=gft(w,k);A(k,$)}function C(k){A(k,v.current)}function A(k,$){const M=_ft(o),I=xft(Math.round((k-r)/o)*o+r,M),F=Px(I,[r,i]);S((L=[])=>{const Y=fft(L,F,$);return yft(Y,l*o)?(v.current=Y.indexOf(F),String(Y)===String(L)?L:Y):L})}return m.exports.createElement(rft,{scope:t.__scopeSlider,disabled:a,min:r,max:i,valueIndexToChangeRef:v,thumbs:y.current,values:w,orientation:s},m.exports.createElement(Ox.Provider,{scope:t.__scopeSlider},m.exports.createElement(Ox.Slot,{scope:t.__scopeSlider},m.exports.createElement(b,nt({"aria-disabled":a,"data-disabled":a?"":void 0},h,{ref:g,min:r,max:i,onSlideStart:a?void 0:E,onSlideMove:a?void 0:C,onHomeKeyDown:()=>!a&&A(r,0),onEndKeyDown:()=>!a&&A(i,w.length-1),onStepKeyDown:({event:k,direction:$})=>{if(!a){const M=C9.includes(k.key)||k.shiftKey&&k9.includes(k.key)?10:1,I=v.current,F=w[I],L=o*M*$;A(F+L,I)}}})))),x&&w.map((k,$)=>m.exports.createElement(hft,{key:$,name:n?n+(w.length>1?"[]":""):void 0,value:k})))}),[$9,M9]=T9(mh,{startEdge:"left",endEdge:"right",size:"width",direction:1}),oft=m.exports.forwardRef((t,e)=>{const{min:n,max:r,dir:i,onSlideStart:o,onSlideMove:s,onStepKeyDown:a,...l}=t,[c,u]=m.exports.useState(null),d=Wt(e,y=>u(y)),h=m.exports.useRef(),f=S9(i),p=f==="ltr";function g(y){const v=h.current||c.getBoundingClientRect(),_=[0,v.width],x=tS(_,p?[n,r]:[r,n]);return h.current=v,x(y-v.left)}return m.exports.createElement($9,{scope:t.__scopeSlider,startEdge:p?"left":"right",endEdge:p?"right":"left",direction:p?1:-1,size:"width"},m.exports.createElement(P9,nt({dir:f,"data-orientation":"horizontal"},l,{ref:d,style:{...l.style,["--radix-slider-thumb-transform"]:"translateX(-50%)"},onSlideStart:y=>{const v=g(y.clientX);o==null||o(v)},onSlideMove:y=>{const v=g(y.clientX);s==null||s(v)},onSlideEnd:()=>h.current=void 0,onStepKeyDown:y=>{const v=A9[f].includes(y.key);a==null||a({event:y,direction:v?-1:1})}})))}),sft=m.exports.forwardRef((t,e)=>{const{min:n,max:r,onSlideStart:i,onSlideMove:o,onStepKeyDown:s,...a}=t,l=m.exports.useRef(null),c=Wt(e,l),u=m.exports.useRef();function d(h){const f=u.current||l.current.getBoundingClientRect(),p=[0,f.height],g=tS(p,[r,n]);return u.current=f,g(h-f.top)}return m.exports.createElement($9,{scope:t.__scopeSlider,startEdge:"bottom",endEdge:"top",size:"height",direction:1},m.exports.createElement(P9,nt({"data-orientation":"vertical"},a,{ref:c,style:{...a.style,["--radix-slider-thumb-transform"]:"translateY(50%)"},onSlideStart:h=>{const f=d(h.clientY);i==null||i(f)},onSlideMove:h=>{const f=d(h.clientY);o==null||o(f)},onSlideEnd:()=>u.current=void 0,onStepKeyDown:h=>{const f=A9.ltr.includes(h.key);s==null||s({event:h,direction:f?-1:1})}})))}),P9=m.exports.forwardRef((t,e)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:o,onHomeKeyDown:s,onEndKeyDown:a,onStepKeyDown:l,...c}=t,u=ov(mh,n);return m.exports.createElement(Pt.span,nt({},c,{ref:e,onKeyDown:Dt(t.onKeyDown,d=>{d.key==="Home"?(s(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):C9.concat(k9).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:Dt(t.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(h)?h.focus():r(d)}),onPointerMove:Dt(t.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&i(d)}),onPointerUp:Dt(t.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),o(d))})}))}),aft="SliderTrack",lft=m.exports.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,i=ov(aft,n);return m.exports.createElement(Pt.span,nt({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},r,{ref:e}))}),n$="SliderRange",cft=m.exports.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,i=ov(n$,n),o=M9(n$,n),s=m.exports.useRef(null),a=Wt(e,s),l=i.values.length,c=i.values.map(h=>O9(h,i.min,i.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return m.exports.createElement(Pt.span,nt({"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0},r,{ref:a,style:{...t.style,[o.startEdge]:u+"%",[o.endEdge]:d+"%"}}))}),r$="SliderThumb",uft=m.exports.forwardRef((t,e)=>{const n=eft(t.__scopeSlider),[r,i]=m.exports.useState(null),o=Wt(e,a=>i(a)),s=m.exports.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return m.exports.createElement(dft,nt({},t,{ref:o,index:s}))}),dft=m.exports.forwardRef((t,e)=>{const{__scopeSlider:n,index:r,...i}=t,o=ov(r$,n),s=M9(r$,n),[a,l]=m.exports.useState(null),c=Wt(e,y=>l(y)),u=J2(a),d=o.values[r],h=d===void 0?0:O9(d,o.min,o.max),f=pft(r,o.values.length),p=u==null?void 0:u[s.size],g=p?mft(p,h,s.direction):0;return m.exports.useEffect(()=>{if(a)return o.thumbs.add(a),()=>{o.thumbs.delete(a)}},[a,o.thumbs]),m.exports.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${h}% + ${g}px)`}},m.exports.createElement(Ox.ItemSlot,{scope:t.__scopeSlider},m.exports.createElement(Pt.span,nt({role:"slider","aria-label":t["aria-label"]||f,"aria-valuemin":o.min,"aria-valuenow":d,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0},i,{ref:c,style:d===void 0?{display:"none"}:t.style,onFocus:Dt(t.onFocus,()=>{o.valueIndexToChangeRef.current=r})}))))}),hft=t=>{const{value:e,...n}=t,r=m.exports.useRef(null),i=Q2(e);return m.exports.useEffect(()=>{const o=r.current,s=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(s,"value").set;if(i!==e&&a){const l=new Event("input",{bubbles:!0});a.call(o,e),o.dispatchEvent(l)}},[i,e]),m.exports.createElement("input",nt({style:{display:"none"}},n,{ref:r,defaultValue:e}))};function fft(t=[],e,n){const r=[...t];return r[n]=e,r.sort((i,o)=>i-o)}function O9(t,e,n){return 100/(n-e)*(t-e)}function pft(t,e){return e>2?`Value ${t+1} of ${e}`:e===2?["Minimum","Maximum"][t]:void 0}function gft(t,e){if(t.length===1)return 0;const n=t.map(i=>Math.abs(i-e)),r=Math.min(...n);return n.indexOf(r)}function mft(t,e,n){const r=t/2,i=tS([0,50],[0,r]);return(r-i(e)*n)*n}function vft(t){return t.slice(0,-1).map((e,n)=>t[n+1]-e)}function yft(t,e){if(e>0){const n=vft(t);return Math.min(...n)>=e}return!0}function tS(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function _ft(t){return(String(t).split(".")[1]||"").length}function xft(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}const bft=ift,wft=lft,Sft=cft,Eft=uft;N.div``;N.div`
888
- display: flex;
889
- align-items: center;
890
- `;N(bft)`
891
- position: relative;
892
- display: flex;
893
- align-items: center;
894
- user-select: none;
895
- touch-action: none;
896
- height: 20;
897
- flex: 1;
898
- `;N(Eft)`
899
- all: unset;
900
- height: 20px;
901
- width: 20px;
902
- border-radius: 50%;
903
- display: block;
904
- background-color: ${T["--ll-color-primary"]};
905
- box-shadow: ${T["--ll-shadow-medium"]};
906
- `;N(wft)`
907
- height: 4px;
908
- border-radius: 2px;
909
- background-color: ${T["--ll-color-surface-variant1"]};
910
- position: relative;
911
- flex: 1;
912
- `;N(Sft)`
913
- height: 100%;
914
- position: absolute;
915
- background-color: ${T["--ll-color-primary"]};
916
- border-radius: 2px;
917
- `;const Cft=({$vertical:t,$spacing:e})=>{const n=T[e];return t?`${n} 0 0 0`:`0 ${n} 0 0`},kft=N.div`
918
- margin: ${t=>Cft(t)};
919
- flex-shrink: 0;
920
- `,Mf=({vertical:t=!1,spacing:e="--ll-spacing-auto"})=>at(kft,{$vertical:t,$spacing:e}),G1={primary:{background:T["--ll-color-primary"],onBackground:T["--ll-color-on-primary"],hover:T["--ll-color-primary-variant1"]},inverse:{background:"transparent",onBackground:T["--ll-color-primary"],hover:"rgba(0,0,0,0.05)"},neutral:{background:"transparent",onBackground:T["--ll-color-on-background-variant1"],hover:"rgba(0,0,0,0.05)"}},i$={small:24,medium:32,large:48};N.button`
921
- ${({color:t="primary",size:e="medium"})=>vt`
922
- border: none;
923
- background-color: ${G1[t].background};
924
- color: ${G1[t].onBackground};
925
- border-radius: 50%;
926
- height: ${i$[e]}px;
927
- width: ${i$[e]}px;
928
- display: flex;
929
- justify-content: center;
930
- align-items: center;
931
- padding: 6px;
932
-
933
- &:hover {
934
- background-color: ${G1[t].hover};
935
- }
936
-
937
- &:disabled {
938
- cursor: default;
939
- background-color: rgba(0, 0, 0, 0.1);
940
- color: ${T["--ll-color-on-background-variant1"]};
941
- }
942
- `};
943
- `;function Aft({height:t,width:e}){return vt`
944
- height: ${t};
945
- width: ${e};
946
- `}const Tft=b0`
947
- from {
948
- background-position: -800px 0;
949
- }
950
-
951
- to {
952
- background-position: 800px 0;
953
- }
954
- `;N.div`
955
- border-radius: ${T["--ll-border-radius-medium"]};
956
- animation: ${Tft} 2s linear infinite;
957
- background: linear-gradient(
958
- to right,
959
- /* NOTE: 99.9% of the time we should use colours from theme, since these are
960
- CSS vars that can be overriden. */
961
- ${T["--ll-color-surface-variant1"]} 4%,
962
- ${T["--ll-color-surface-variant2"]} 25%,
963
- ${T["--ll-color-surface-variant1"]} 36%
964
- );
965
- background-size: 800px 100%;
966
- ${Aft}
967
- `;N.div`
968
- flex: 1;
969
- height: 100%;
970
- width: 100%;
971
- display: flex;
972
- align-items: center;
973
- justify-content: center;
974
- `;N.div`
975
- display: flex;
976
- flex-direction: column;
977
- align-items: center;
978
- `;var $ft=Object.defineProperty,Mft=(t,e,n)=>e in t?$ft(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Hu=(t,e,n)=>(Mft(t,typeof e!="symbol"?e+"":e,n),n);const jp=t=>typeof t=="object"&&t!==null&&!Array.isArray(t);function Rx(t,...e){if(!e.length)return t;const n=e.shift();return jp(t)&&jp(n)&&Object.keys(n).forEach(r=>{jp(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Rx(t[r],n[r])):Object.assign(t,{[r]:n[r]})}),Rx(t,...e)}const eS=Object.freeze(Object.defineProperty({__proto__:null,isObject:jp,mergeDeep:Rx},Symbol.toStringTag,{value:"Module"}));var Mn={},nS={},vh={},rS={};/*!
979
- * cookie
980
- * Copyright(c) 2012-2014 Roman Shtylman
981
- * Copyright(c) 2015 Douglas Christopher Wilson
982
- * MIT Licensed
983
- */rS.parse=Lft;rS.serialize=Dft;var Pft=decodeURIComponent,Oft=encodeURIComponent,Rft=/; */,Pf=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Lft(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var n={},r=e||{},i=t.split(Rft),o=r.decode||Pft,s=0;s<i.length;s++){var a=i[s],l=a.indexOf("=");if(!(l<0)){var c=a.substr(0,l).trim(),u=a.substr(++l,a.length).trim();u[0]=='"'&&(u=u.slice(1,-1)),n[c]==null&&(n[c]=Ift(u,o))}}return n}function Dft(t,e,n){var r=n||{},i=r.encode||Oft;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!Pf.test(t))throw new TypeError("argument name is invalid");var o=i(e);if(o&&!Pf.test(o))throw new TypeError("argument val is invalid");var s=t+"="+o;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Pf.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!Pf.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return s}function Ift(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(vh,"__esModule",{value:!0});var Nft=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();vh.hasCookies=jft;var Fft=rS,Of=zft(Fft);function zft(t){return t&&t.__esModule?t:{default:t}}function Bft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var to="lS_",R9=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bft(this,t),this.cookieOptions=Object.assign({path:"/"},e),to=e.prefix===void 0?to:e.prefix}return Nft(t,[{key:"getItem",value:function(e){var n=Of.default.parse(document.cookie);return!n||!n.hasOwnProperty(to+e)?null:n[to+e]}},{key:"setItem",value:function(e,n){return document.cookie=Of.default.serialize(to+e,n,this.cookieOptions),n}},{key:"removeItem",value:function(e){var n=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=Of.default.serialize(to+e,"",n),null}},{key:"clear",value:function(){var e=Of.default.parse(document.cookie);for(var n in e)n.indexOf(to)===0&&this.removeItem(n.substr(to.length));return null}}]),t}();vh.default=R9;function jft(){var t=new R9;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),n==="1"}catch(r){return!1}}Object.defineProperty(nS,"__esModule",{value:!0});nS.default=Hft;var Vft=vh,o$="__test";function s$(t){try{var e=window[t];return e.setItem(o$,"1"),e.removeItem(o$),!0}catch(n){return!1}}function Hft(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"localStorage",e=String(t).replace(/storage$/i,"").toLowerCase();if(e==="local")return s$("localStorage");if(e==="session")return s$("sessionStorage");if(e==="cookie")return(0,Vft.hasCookies)();if(e==="memory")return!0;throw new Error("Storage method `"+t+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")}var iS={};Object.defineProperty(iS,"__esModule",{value:!0});var Uft=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function Wft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Yft=function(){function t(){Wft(this,t),this._data={}}return Uft(t,[{key:"getItem",value:function(e){return this._data.hasOwnProperty(e)?this._data[e]:null}},{key:"setItem",value:function(e,n){return this._data[e]=String(n)}},{key:"removeItem",value:function(e){return delete this._data[e]}},{key:"clear",value:function(){return this._data={}}}]),t}();iS.default=Yft;Object.defineProperty(Mn,"__esModule",{value:!0});Mn.MemoryStorage=Mn.CookieStorage=Mn.isSupported=Mn.storage=void 0;var Gft=nS,Vp=oS(Gft),qft=vh,L9=oS(qft),Zft=iS,D9=oS(Zft);function oS(t){return t&&t.__esModule?t:{default:t}}var rl=null;(0,Vp.default)("localStorage")?Mn.storage=rl=window.localStorage:(0,Vp.default)("sessionStorage")?Mn.storage=rl=window.sessionStorage:(0,Vp.default)("cookieStorage")?Mn.storage=rl=new L9.default:Mn.storage=rl=new D9.default;var Xft=Mn.default=rl;Mn.storage=rl;Mn.isSupported=Vp.default;Mn.CookieStorage=L9.default;Mn.MemoryStorage=D9.default;class I9{constructor(e="global"){Hu(this,"group"),Hu(this,"localStorage"),this.group=e,this.localStorage=Xft}setGroup(e){this.group=e}getGroup(){return this.group}getItem(e){return this.localStorage.getItem(`${this.group}.${e}`)}setItem(e,n){this.localStorage.setItem(`${this.group}.${e}`,n)}removeItem(e){this.localStorage.removeItem(`${this.group}.${e}`)}}new I9;class Kft{constructor(){Hu(this,"storageLocation","suggestion_history"),Hu(this,"storage"),Hu(this,"history",[]),this.storage=new I9("commute");const e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}push(e){this.history=this.removeDuplicateEntries(e),this.history.unshift(e),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(e){return this.history.filter(n=>n.locationId!==e.locationId)}}new Kft;/*!
984
- * @kurkle/color v0.3.2
985
- * https://github.com/kurkle/color#readme
986
- * (c) 2023 Jukka Kurkela
987
- * Released under the MIT License
988
- */function yh(t){return t+.5|0}const ko=(t,e,n)=>Math.max(Math.min(t,n),e);function eu(t){return ko(yh(t*2.55),0,255)}function Ho(t){return ko(yh(t*255),0,255)}function Ci(t){return ko(yh(t/2.55)/100,0,1)}function a$(t){return ko(yh(t*100),0,100)}const rr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Lx=[..."0123456789ABCDEF"],Qft=t=>Lx[t&15],Jft=t=>Lx[(t&240)>>4]+Lx[t&15],Rf=t=>(t&240)>>4===(t&15),tpt=t=>Rf(t.r)&&Rf(t.g)&&Rf(t.b)&&Rf(t.a);function ept(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&rr[t[1]]*17,g:255&rr[t[2]]*17,b:255&rr[t[3]]*17,a:e===5?rr[t[4]]*17:255}:(e===7||e===9)&&(n={r:rr[t[1]]<<4|rr[t[2]],g:rr[t[3]]<<4|rr[t[4]],b:rr[t[5]]<<4|rr[t[6]],a:e===9?rr[t[7]]<<4|rr[t[8]]:255})),n}const npt=(t,e)=>t<255?e(t):"";function rpt(t){var e=tpt(t)?Qft:Jft;return t?"#"+e(t.r)+e(t.g)+e(t.b)+npt(t.a,e):void 0}const ipt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function N9(t,e,n){const r=e*Math.min(n,1-n),i=(o,s=(o+t/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function opt(t,e,n){const r=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function spt(t,e,n){const r=N9(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function apt(t,e,n,r,i){return t===i?(e-n)/r+(e<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}function sS(t){const e=t.r/255,n=t.g/255,r=t.b/255,i=Math.max(e,n,r),o=Math.min(e,n,r),s=(i+o)/2;let a,l,c;return i!==o&&(c=i-o,l=s>.5?c/(2-i-o):c/(i+o),a=apt(e,n,r,c,i),a=a*60+.5),[a|0,l||0,s]}function aS(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Ho)}function lS(t,e,n){return aS(N9,t,e,n)}function lpt(t,e,n){return aS(spt,t,e,n)}function cpt(t,e,n){return aS(opt,t,e,n)}function F9(t){return(t%360+360)%360}function upt(t){const e=ipt.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?eu(+e[5]):Ho(+e[5]));const i=F9(+e[2]),o=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?r=lpt(i,o,s):e[1]==="hsv"?r=cpt(i,o,s):r=lS(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function dpt(t,e){var n=sS(t);n[0]=F9(n[0]+e),n=lS(n),t.r=n[0],t.g=n[1],t.b=n[2]}function hpt(t){if(!t)return;const e=sS(t),n=e[0],r=a$(e[1]),i=a$(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${Ci(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const l$={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},c$={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function fpt(){const t={},e=Object.keys(c$),n=Object.keys(l$);let r,i,o,s,a;for(r=0;r<e.length;r++){for(s=a=e[r],i=0;i<n.length;i++)o=n[i],a=a.replace(o,l$[o]);o=parseInt(c$[s],16),t[a]=[o>>16&255,o>>8&255,o&255]}return t}let Lf;function ppt(t){Lf||(Lf=fpt(),Lf.transparent=[0,0,0,0]);const e=Lf[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const gpt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function mpt(t){const e=gpt.exec(t);let n=255,r,i,o;if(e){if(e[7]!==r){const s=+e[7];n=e[8]?eu(s):ko(s*255,0,255)}return r=+e[1],i=+e[3],o=+e[5],r=255&(e[2]?eu(r):ko(r,0,255)),i=255&(e[4]?eu(i):ko(i,0,255)),o=255&(e[6]?eu(o):ko(o,0,255)),{r,g:i,b:o,a:n}}}function vpt(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ci(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const q1=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,$a=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function ypt(t,e,n){const r=$a(Ci(t.r)),i=$a(Ci(t.g)),o=$a(Ci(t.b));return{r:Ho(q1(r+n*($a(Ci(e.r))-r))),g:Ho(q1(i+n*($a(Ci(e.g))-i))),b:Ho(q1(o+n*($a(Ci(e.b))-o))),a:t.a+n*(e.a-t.a)}}function Df(t,e,n){if(t){let r=sS(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=lS(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function z9(t,e){return t&&Object.assign(e||{},t)}function u$(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Ho(t[3]))):(e=z9(t,{r:0,g:0,b:0,a:1}),e.a=Ho(e.a)),e}function _pt(t){return t.charAt(0)==="r"?mpt(t):upt(t)}class zd{constructor(e){if(e instanceof zd)return e;const n=typeof e;let r;n==="object"?r=u$(e):n==="string"&&(r=ept(e)||ppt(e)||_pt(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=z9(this._rgb);return e&&(e.a=Ci(e.a)),e}set rgb(e){this._rgb=u$(e)}rgbString(){return this._valid?vpt(this._rgb):void 0}hexString(){return this._valid?rpt(this._rgb):void 0}hslString(){return this._valid?hpt(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=ypt(this._rgb,e._rgb,n)),this}clone(){return new zd(this.rgb)}alpha(e){return this._rgb.a=Ho(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=yh(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Df(this._rgb,2,e),this}darken(e){return Df(this._rgb,2,-e),this}saturate(e){return Df(this._rgb,1,e),this}desaturate(e){return Df(this._rgb,1,-e),this}rotate(e){return dpt(this._rgb,e),this}}/*!
989
- * Chart.js v4.2.0
990
- * https://www.chartjs.org
991
- * (c) 2023 Chart.js Contributors
992
- * Released under the MIT License
993
- */function fi(){}const xpt=(()=>{let t=0;return()=>t++})();function $t(t){return t===null||typeof t>"u"}function te(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function mt(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Fe(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Hn(t,e){return Fe(t)?t:e}function _t(t,e){return typeof t>"u"?e:t}const bpt=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,B9=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Bt(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function kt(t,e,n,r){let i,o,s;if(te(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<o;i++)e.call(n,t[i],i);else if(mt(t))for(s=Object.keys(t),o=s.length,i=0;i<o;i++)e.call(n,t[s[i]],s[i])}function vm(t,e){let n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function ym(t){if(te(t))return t.map(ym);if(mt(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let i=0;for(;i<r;++i)e[n[i]]=ym(t[n[i]]);return e}return t}function j9(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function wpt(t,e,n,r){if(!j9(t))return;const i=e[t],o=n[t];mt(i)&&mt(o)?Bd(i,o,r):e[t]=ym(o)}function Bd(t,e,n){const r=te(e)?e:[e],i=r.length;if(!mt(t))return t;n=n||{};const o=n.merger||wpt;let s;for(let a=0;a<i;++a){if(s=r[a],!mt(s))continue;const l=Object.keys(s);for(let c=0,u=l.length;c<u;++c)o(l[c],t,s,n)}return t}function Uu(t,e){return Bd(t,e,{merger:Spt})}function Spt(t,e,n){if(!j9(t))return;const r=e[t],i=n[t];mt(r)&&mt(i)?Uu(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ym(i))}const d$={"":t=>t,x:t=>t.x,y:t=>t.y};function Ept(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function Cpt(t){const e=Ept(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function sa(t,e){return(d$[e]||(d$[e]=Cpt(e)))(t)}function cS(t){return t.charAt(0).toUpperCase()+t.slice(1)}const _r=t=>typeof t<"u",ts=t=>typeof t=="function",h$=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function kpt(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const be=Math.PI,de=2*be,_m=Number.POSITIVE_INFINITY,Apt=be/180,he=be/2,_s=be/4,f$=be*2/3,Ao=Math.log10,Uo=Math.sign;function Hp(t,e,n){return Math.abs(t-e)<n}function p$(t){const e=Math.round(t);t=Hp(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Ao(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Tpt(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((i,o)=>i-o).pop(),e}function xm(t){return!isNaN(parseFloat(t))&&isFinite(t)}function $pt(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function V9(t,e,n){let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function ti(t){return t*(be/180)}function uS(t){return t*(180/be)}function g$(t){if(!Fe(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function H9(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*be&&(o+=de),{angle:o,distance:i}}function Mpt(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Yr(t){return(t%de+de)%de}function bm(t,e,n,r){const i=Yr(t),o=Yr(e),s=Yr(n),a=Yr(o-i),l=Yr(s-i),c=Yr(i-o),u=Yr(i-s);return i===o||i===s||r&&o===s||a>l&&c<u}function Pn(t,e,n){return Math.max(e,Math.min(n,t))}function Ppt(t){return Pn(t,-32768,32767)}function Fs(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function dS(t,e,n){n=n||(s=>t[s]<e);let r=t.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Dx=(t,e,n,r)=>dS(t,n,r?i=>{const o=t[i][e];return o<n||o===n&&t[i+1][e]===n}:i=>t[i][e]<n),Opt=(t,e,n)=>dS(t,n,r=>t[r][e]>=n);function Rpt(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}const U9=["push","pop","shift","splice","unshift"];function Lpt(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),U9.forEach(n=>{const r="_onData"+cS(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return t._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function m$(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&(U9.forEach(o=>{delete t[o]}),delete t._chartjs)}function W9(t){const e=new Set;let n,r;for(n=0,r=t.length;n<r;++n)e.add(t[n]);return e.size===r?t:Array.from(e)}const Y9=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function G9(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,Y9.call(window,()=>{r=!1,t.apply(e,n)}))}}function Dpt(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const hS=t=>t==="start"?"left":t==="end"?"right":"center",Je=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,Ipt=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,If=t=>t===0||t===1,v$=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*de/n)),y$=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*de/n)+1,Wu={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*he)+1,easeOutSine:t=>Math.sin(t*he),easeInOutSine:t=>-.5*(Math.cos(be*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>If(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>If(t)?t:v$(t,.075,.3),easeOutElastic:t=>If(t)?t:y$(t,.075,.3),easeInOutElastic(t){return If(t)?t:t<.5?.5*v$(t*2,.1125,.45):.5+.5*y$(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Wu.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Wu.easeInBounce(t*2)*.5:Wu.easeOutBounce(t*2-1)*.5+.5};function q9(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function _$(t){return q9(t)?t:new zd(t)}function Z1(t){return q9(t)?t:new zd(t).saturate(.5).darken(.1).hexString()}const Npt=["x","y","borderWidth","radius","tension"],Fpt=["color","borderColor","backgroundColor"];function zpt(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:Fpt},numbers:{type:"number",properties:Npt}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function Bpt(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const x$=new Map;function jpt(t,e){e=e||{};const n=t+JSON.stringify(e);let r=x$.get(n);return r||(r=new Intl.NumberFormat(t,e),x$.set(n,r)),r}function sv(t,e,n){return jpt(e,n).format(t)}const Z9={values(t){return te(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let i,o=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=Vpt(t,n)}const s=Ao(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),sv(t,r,l)},logarithmic(t,e,n){if(t===0)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(Ao(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?Z9.numeric.call(this,t,e,n):""}};function Vpt(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var av={formatters:Z9};function Hpt(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:av.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const aa=Object.create(null),Ix=Object.create(null);function Yu(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];t=t[o]||(t[o]=Object.create(null))}return t}function X1(t,e,n){return typeof e=="string"?Bd(Yu(t,e),n):Bd(Yu(t,""),e)}class Upt{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>Z1(i.backgroundColor),this.hoverBorderColor=(r,i)=>Z1(i.borderColor),this.hoverColor=(r,i)=>Z1(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return X1(this,e,n)}get(e){return Yu(this,e)}describe(e,n){return X1(Ix,e,n)}override(e,n){return X1(aa,e,n)}route(e,n,r,i){const o=Yu(this,e),s=Yu(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[i];return mt(l)?Object.assign({},c,l):_t(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var ye=new Upt({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[zpt,Bpt,Hpt]);function Wpt(t){return!t||$t(t.size)||$t(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function wm(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Ypt(t,e,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let s=0;const a=n.length;let l,c,u,d,h;for(l=0;l<a;l++)if(d=n[l],d!=null&&te(d)!==!0)s=wm(t,i,o,s,d);else if(te(d))for(c=0,u=d.length;c<u;c++)h=d[c],h!=null&&!te(h)&&(s=wm(t,i,o,s,h));t.restore();const f=o.length/2;if(f>n.length){for(l=0;l<f;l++)delete i[o[l]];o.splice(0,f)}return s}function xs(t,e,n){const r=t.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function b$(t,e){e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function w$(t,e,n,r){X9(t,e,n,r,null)}function X9(t,e,n,r,i){let o,s,a,l,c,u,d,h;const f=e.pointStyle,p=e.rotation,g=e.radius;let y=(p||0)*Apt;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(y),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),t.restore();return}if(!(isNaN(g)||g<=0)){switch(t.beginPath(),f){default:i?t.ellipse(n,r,i/2,g,0,0,de):t.arc(n,r,g,0,de),t.closePath();break;case"triangle":u=i?i/2:g,t.moveTo(n+Math.sin(y)*u,r-Math.cos(y)*g),y+=f$,t.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*g),y+=f$,t.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*g),t.closePath();break;case"rectRounded":c=g*.516,l=g-c,s=Math.cos(y+_s)*l,d=Math.cos(y+_s)*(i?i/2-c:l),a=Math.sin(y+_s)*l,h=Math.sin(y+_s)*(i?i/2-c:l),t.arc(n-d,r-a,c,y-be,y-he),t.arc(n+h,r-s,c,y-he,y),t.arc(n+d,r+a,c,y,y+he),t.arc(n-h,r+s,c,y+he,y+be),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=i?i/2:l,t.rect(n-u,r-l,2*u,2*l);break}y+=_s;case"rectRot":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,r-a),t.lineTo(n+h,r-s),t.lineTo(n+d,r+a),t.lineTo(n-h,r+s),t.closePath();break;case"crossRot":y+=_s;case"cross":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+h,r-s),t.lineTo(n-h,r+s);break;case"star":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+h,r-s),t.lineTo(n-h,r+s),y+=_s,d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,r-a),t.lineTo(n+d,r+a),t.moveTo(n+h,r-s),t.lineTo(n-h,r+s);break;case"line":s=i?i/2:Math.cos(y)*g,a=Math.sin(y)*g,t.moveTo(n-s,r-a),t.lineTo(n+s,r+a);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(y)*(i?i/2:g),r+Math.sin(y)*g);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function K9(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function fS(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function pS(t){t.restore()}function la(t,e,n,r,i,o={}){const s=te(e)?e:[e],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(t.save(),t.font=i.string,Gpt(t,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&Zpt(t,o.backdrop),a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),$t(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,n,r,o.maxWidth)),t.fillText(c,n,r,o.maxWidth),qpt(t,n,r,c,o),r+=i.lineHeight;t.restore()}function Gpt(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),$t(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function qpt(t,e,n,r,i){if(i.strikethrough||i.underline){const o=t.measureText(r),s=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(s,u),t.lineTo(a,u),t.stroke()}}function Zpt(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function jd(t,e){const{x:n,y:r,w:i,h:o,radius:s}=e;t.arc(n+s.topLeft,r+s.topLeft,s.topLeft,-he,be,!0),t.lineTo(n,r+o-s.bottomLeft),t.arc(n+s.bottomLeft,r+o-s.bottomLeft,s.bottomLeft,be,he,!0),t.lineTo(n+i-s.bottomRight,r+o),t.arc(n+i-s.bottomRight,r+o-s.bottomRight,s.bottomRight,he,0,!0),t.lineTo(n+i,r+s.topRight),t.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-he,!0),t.lineTo(n+s.topLeft,r)}const Xpt=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Kpt=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Qpt(t,e){const n=(""+t).match(Xpt);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const Jpt=t=>+t||0;function gS(t,e){const n={},r=mt(e),i=r?Object.keys(e):e,o=mt(t)?r?s=>_t(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of i)n[s]=Jpt(o(s));return n}function Q9(t){return gS(t,{top:"y",right:"x",bottom:"y",left:"x"})}function qs(t){return gS(t,["topLeft","topRight","bottomLeft","bottomRight"])}function an(t){const e=Q9(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function $e(t,e){t=t||{},e=e||ye.font;let n=_t(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=_t(t.style,e.style);r&&!(""+r).match(Kpt)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:_t(t.family,e.family),lineHeight:Qpt(_t(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:_t(t.weight,e.weight),string:""};return i.string=Wpt(i),i}function Nf(t,e,n,r){let i=!0,o,s,a;for(o=0,s=t.length;o<s;++o)if(a=t[o],a!==void 0&&(e!==void 0&&typeof a=="function"&&(a=a(e),i=!1),n!==void 0&&te(a)&&(a=a[n%a.length],i=!1),a!==void 0))return r&&!i&&(r.cacheable=!1),a}function tgt(t,e,n){const{min:r,max:i}=t,o=B9(e,(i-r)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function va(t,e){return Object.assign(Object.create(t),e)}function mS(t,e=[""],n=t,r,i=()=>t[0]){_r(r)||(r=n8("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>mS([s,...t],e,n,r)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete s._keys,delete t[0][a],!0},get(s,a){return t8(s,a,()=>lgt(a,e,t,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,a){return E$(s).includes(a)},ownKeys(s){return E$(s)},set(s,a,l){const c=s._storage||(s._storage=i());return s[a]=c[a]=l,delete s._keys,!0}})}function Zl(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:J9(t,r),setContext:o=>Zl(t,o,n,r),override:o=>Zl(t.override(o),e,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete t[s],!0},get(o,s,a){return t8(o,s,()=>ngt(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(o,s,a){return t[s]=a,delete o[s],!0}})}function J9(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ts(n)?n:()=>n,isIndexable:ts(r)?r:()=>r}}const egt=(t,e)=>t?t+cS(e):e,vS=(t,e)=>mt(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function t8(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function ngt(t,e,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=t;let a=r[e];return ts(a)&&s.isScriptable(e)&&(a=rgt(e,a,t,n)),te(a)&&a.length&&(a=igt(e,a,t,s.isIndexable)),vS(e,a)&&(a=Zl(a,i,o&&o[e],s)),a}function rgt(t,e,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),e=e(o,s||r),a.delete(t),vS(t,e)&&(e=yS(i._scopes,i,t,e)),e}function igt(t,e,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(_r(o.index)&&r(t))e=e[o.index%e.length];else if(mt(e[0])){const l=e,c=i._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=yS(c,i,t,u);e.push(Zl(d,o,s&&s[t],a))}}return e}function e8(t,e,n){return ts(t)?t(e,n):t}const ogt=(t,e)=>t===!0?e:typeof t=="string"?sa(e,t):void 0;function sgt(t,e,n,r,i){for(const o of e){const s=ogt(n,o);if(s){t.add(s);const a=e8(s._fallback,n,i);if(_r(a)&&a!==n&&a!==r)return a}else if(s===!1&&_r(r)&&n!==r)return null}return!1}function yS(t,e,n,r){const i=e._rootScopes,o=e8(e._fallback,n,r),s=[...t,...i],a=new Set;a.add(r);let l=S$(a,s,n,o||n,r);return l===null||_r(o)&&o!==n&&(l=S$(a,s,o,l,r),l===null)?!1:mS(Array.from(a),[""],i,o,()=>agt(e,n,r))}function S$(t,e,n,r,i){for(;n;)n=sgt(t,e,n,r,i);return n}function agt(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return te(i)&&mt(n)?n:i||{}}function lgt(t,e,n,r){let i;for(const o of e)if(i=n8(egt(o,t),n),_r(i))return vS(t,i)?yS(n,r,t,i):i}function n8(t,e){for(const n of e){if(!n)continue;const r=n[t];if(_r(r))return r}}function E$(t){let e=t._keys;return e||(e=t._keys=cgt(t._scopes)),e}function cgt(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}function r8(){return typeof window<"u"&&typeof document<"u"}function _S(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Sm(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const lv=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function ugt(t,e){return lv(t).getPropertyValue(e)}const dgt=["top","right","bottom","left"];function Zs(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=dgt[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const hgt=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function fgt(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(hgt(i,o,t.target))a=i,l=o;else{const c=e.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function As(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=lv(n),o=i.boxSizing==="border-box",s=Zs(i,"padding"),a=Zs(i,"border","width"),{x:l,y:c,box:u}=fgt(t,n),d=s.left+(u&&a.left),h=s.top+(u&&a.top);let{width:f,height:p}=e;return o&&(f-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((c-h)/p*n.height/r)}}function pgt(t,e,n){let r,i;if(e===void 0||n===void 0){const o=_S(t);if(!o)e=t.clientWidth,n=t.clientHeight;else{const s=o.getBoundingClientRect(),a=lv(o),l=Zs(a,"border","width"),c=Zs(a,"padding");e=s.width-c.width-l.width,n=s.height-c.height-l.height,r=Sm(a.maxWidth,o,"clientWidth"),i=Sm(a.maxHeight,o,"clientHeight")}}return{width:e,height:n,maxWidth:r||_m,maxHeight:i||_m}}const Ff=t=>Math.round(t*10)/10;function ggt(t,e,n,r){const i=lv(t),o=Zs(i,"margin"),s=Sm(i.maxWidth,t,"clientWidth")||_m,a=Sm(i.maxHeight,t,"clientHeight")||_m,l=pgt(t,e,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const d=Zs(i,"border","width"),h=Zs(i,"padding");c-=h.width+d.width,u-=h.height+d.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=Ff(Math.min(c,s,l.maxWidth)),u=Ff(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Ff(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Ff(Math.floor(u*r))),{width:c,height:u}}function C$(t,e,n){const r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(t.currentDevicePixelRatio=r,s.height=i,s.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const mgt=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function k$(t,e){const n=ugt(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const vgt=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},ygt=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function xl(t,e,n){return t?vgt(e,n):ygt()}function i8(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function o8(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*!
994
- * Chart.js v4.2.0
995
- * https://www.chartjs.org
996
- * (c) 2023 Chart.js Contributors
997
- * Released under the MIT License
998
- */class _gt{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,i){const o=n.listeners[i],s=n.duration;o.forEach(a=>a({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Y9.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,e,"progress")),o.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),n+=o.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var mi=new _gt;const A$="transparent",xgt={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=_$(t||A$),i=r.valid&&_$(e||A$);return i&&i.valid?i.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class bgt{constructor(e,n,r,i){const o=n[r];i=Nf([e.to,i,o,e.from]);const s=Nf([e.from,o,i]);this._active=!0,this._fn=e.fn||xgt[e.type||typeof s],this._easing=Wu[e.easing]||Wu.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=Nf([e.to,n,i,e.from]),this._from=Nf([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class s8{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!mt(e))return;const n=Object.keys(ye.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const o=e[i];if(!mt(o))return;const s={};for(const a of n)s[a]=o[a];(te(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(e,n){const r=n.options,i=Sgt(e,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&wgt(e.options.$animations,r).then(()=>{e.options=r},()=>{}),o}_createAnimations(e,n){const r=this._properties,i=[],o=e.$animations||(e.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(e,n));continue}const u=n[c];let d=o[c];const h=r.get(c);if(d)if(h&&d.active()){d.update(h,u,a);continue}else d.cancel();if(!h||!h.duration){e[c]=u;continue}o[c]=d=new bgt(h,e,c,u),i.push(d)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return mi.add(this._chart,r),!0}}function wgt(t,e){const n=[],r=Object.keys(e);for(let i=0;i<r.length;i++){const o=t[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Sgt(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function T$(t,e){const n=t&&t.options||{},r=n.reverse,i=n.min===void 0?e:0,o=n.max===void 0?e:0;return{start:r?o:i,end:r?i:o}}function Egt(t,e,n){if(n===!1)return!1;const r=T$(t,n),i=T$(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function Cgt(t){let e,n,r,i;return mt(t)?(e=t.top,n=t.right,r=t.bottom,i=t.left):e=n=r=i=t,{top:e,right:n,bottom:r,left:i,disabled:t===!1}}function a8(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function $$(t,e,n,r={}){const i=t.keys,o=r.mode==="single";let s,a,l,c;if(e!==null){for(s=0,a=i.length;s<a;++s){if(l=+i[s],l===n){if(r.all)continue;break}c=t.values[l],Fe(c)&&(o||e===0||Uo(e)===Uo(c))&&(e+=c)}return e}}function kgt(t){const e=Object.keys(t),n=new Array(e.length);let r,i,o;for(r=0,i=e.length;r<i;++r)o=e[r],n[r]={x:o,y:t[o]};return n}function M$(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function Agt(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function Tgt(t){const{min:e,max:n,minDefined:r,maxDefined:i}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function $gt(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function P$(t,e,n,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const o=t[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function O$(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,c=s.axis,u=Agt(o,s,r),d=e.length;let h;for(let f=0;f<d;++f){const p=e[f],{[l]:g,[c]:y}=p,v=p._stacks||(p._stacks={});h=v[c]=$gt(i,u,g),h[a]=y,h._top=P$(h,s,!0,r.type),h._bottom=P$(h,s,!1,r.type);const _=h._visualValues||(h._visualValues={});_[a]=y}}function K1(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function Mgt(t,e){return va(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Pgt(t,e,n){return va(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function Bc(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const i of e){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const Q1=t=>t==="reset"||t==="none",R$=(t,e)=>e?t:Object.assign({},t),Ogt=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:a8(n,!0),values:null};class bl{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=M$(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Bc(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,p)=>d==="x"?h:d==="r"?p:f,o=n.xAxisID=_t(r.xAxisID,K1(e,"x")),s=n.yAxisID=_t(r.yAxisID,K1(e,"y")),a=n.rAxisID=_t(r.rAxisID,K1(e,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,s,a),u=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&m$(this._data,this),e._stacked&&Bc(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(mt(n))this._data=kgt(n);else if(r!==n){if(r){m$(r,this);const i=this._cachedMeta;Bc(i),i._parsed=[]}n&&Object.isExtensible(n)&&Lpt(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=M$(n.vScale,n),n.stack!==r.stack&&(i=!0,Bc(n),n.stack=r.stack),this._resyncElements(e),(i||o!==n._stacked)&&O$(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis;let l=e===0&&n===i.length?!0:r._sorted,c=e>0&&r._parsed[e-1],u,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{te(i[e])?h=this.parseArrayData(r,i,e,n):mt(i[e])?h=this.parseObjectData(r,i,e,n):h=this.parsePrimitiveData(r,i,e,n);const f=()=>d[a]===null||c&&d[a]<c[a];for(u=0;u<n;++u)r._parsed[u+e]=d=h[u],l&&(f()&&(l=!1),c=d);r._sorted=l}s&&O$(this,h)}parsePrimitiveData(e,n,r,i){const{iScale:o,vScale:s}=e,a=o.axis,l=s.axis,c=o.getLabels(),u=o===s,d=new Array(i);let h,f,p;for(h=0,f=i;h<f;++h)p=h+r,d[h]={[a]:u||o.parse(c[p],p),[l]:s.parse(n[p],p)};return d}parseArrayData(e,n,r,i){const{xScale:o,yScale:s}=e,a=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+r,d=n[u],a[l]={x:o.parse(d[0],u),y:s.parse(d[1],u)};return a}parseObjectData(e,n,r,i){const{xScale:o,yScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,h,f;for(u=0,d=i;u<d;++u)h=u+r,f=n[h],c[u]={x:o.parse(sa(f,a),h),y:s.parse(sa(f,l),h)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const i=this.chart,o=this._cachedMeta,s=n[e.axis],a={keys:a8(i,!0),values:n._stacks[e.axis]._visualValues};return $$(a,s,o.index,{mode:r})}updateRangeFromParsed(e,n,r,i){const o=r[n.axis];let s=o===null?NaN:o;const a=i&&r._stacks[n.axis];i&&a&&(i.values=a,s=$$(i,o,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&e===r.iScale,s=i.length,a=this._getOtherScale(e),l=Ogt(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=Tgt(a);let h,f;function p(){f=i[h];const g=f[a.axis];return!Fe(f[e.axis])||u>g||d<g}for(h=0;h<s&&!(!p()&&(this.updateRangeFromParsed(c,e,f,l),o));++h);if(o){for(h=s-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(c,e,f,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i<o;++i)s=n[i][e.axis],Fe(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(e);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=Cgt(_t(this.options.clip,Egt(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(e,o,a,l),u=a;u<a+l;++u){const d=i[u];d.hidden||(d.active&&c?s.push(d):d.draw(e,o))}for(u=0;u<s.length;++u)s[u].draw(e,o)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const i=this.getDataset();let o;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];o=s.$context||(s.$context=Pgt(this.getContext(),e,s)),o.parsed=this.getParsed(e),o.raw=i.data[e],o.index=o.dataIndex=e}else o=this.$context||(this.$context=Mgt(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const i=n==="active",o=this._cachedDataOpts,s=e+"-"+n,a=o[s],l=this.enableOptionSharing&&_r(r);if(a)return R$(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,e),d=i?[`${e}Hover`,"hover",e,""]:[e,""],h=c.getOptionScopes(this.getDataset(),u),f=Object.keys(ye.elements[e]),p=()=>this.getContext(r,i,n),g=c.resolveNamedOptions(h,f,p,d);return g.$shared&&(g.$shared=l,o[s]=Object.freeze(R$(g,l))),g}_resolveAnimations(e,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(e,r,n))}const c=new s8(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Q1(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(e,n,r,i){Q1(i)?Object.assign(e,r):this._resolveAnimations(n,i).update(e,r)}updateSharedOptions(e,n,r){e&&!Q1(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,i){e.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(e,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,e):o<i&&this._removeElements(o,i-o)}_insertElements(e,n,r=!0){const i=this._cachedMeta,o=i.data,s=e+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(o),a=e;a<s;++a)o[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(e,n),r&&this.updateElements(o,e,n,"reset")}updateElements(e,n,r,i){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(e,n);r._stacked&&Bc(r,i)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,i]=e;this[n](r,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ct(bl,"defaults",{}),ct(bl,"datasetElementType",null),ct(bl,"dataElementType",null);function Rgt(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(t));t._cache.$bar=W9(r.sort((i,o)=>i-o))}return t._cache.$bar}function Lgt(t){const e=t.iScale,n=Rgt(e,t.type);let r=e._length,i,o,s,a;const l=()=>{s===32767||s===-32768||(_r(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i<o;++i)s=e.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=e.ticks.length;i<o;++i)s=e.getPixelForTick(i),l();return r}function Dgt(t,e,n,r){const i=n.barThickness;let o,s;return $t(i)?(o=e.min*n.categoryPercentage,s=n.barPercentage):(o=i*r,s=1),{chunk:o/r,ratio:s,start:e.pixels[t]-o/2}}function Igt(t,e,n,r){const i=e.pixels,o=i[t];let s=t>0?i[t-1]:null,a=t<i.length-1?i[t+1]:null;const l=n.categoryPercentage;s===null&&(s=o-(a===null?e.end-e.start:a-o)),a===null&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:c}}function Ngt(t,e,n,r){const i=n.parse(t[0],r),o=n.parse(t[1],r),s=Math.min(i,o),a=Math.max(i,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:i,end:o,min:s,max:a}}function l8(t,e,n,r){return te(t)?Ngt(t,e,n,r):e[n.axis]=n.parse(t,r),e}function L$(t,e,n,r){const i=t.iScale,o=t.vScale,s=i.getLabels(),a=i===o,l=[];let c,u,d,h;for(c=n,u=n+r;c<u;++c)h=e[c],d={},d[i.axis]=a||i.parse(s[c],c),l.push(l8(h,d,o,c));return l}function J1(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function Fgt(t,e,n){return t!==0?Uo(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function zgt(t){let e,n,r,i,o;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:e,top:i,bottom:o}}function Bgt(t,e,n,r){let i=e.borderSkipped;const o={};if(!i){t.borderSkipped=o;return}if(i===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:a,reverse:l,top:c,bottom:u}=zgt(t);i==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=u:(o[D$(u,s,a,l)]=!0,i=c)),o[D$(i,s,a,l)]=!0,t.borderSkipped=o}function D$(t,e,n,r){return r?(t=jgt(t,e,n),t=I$(t,n,e)):t=I$(t,e,n),t}function jgt(t,e,n){return t===e?n:t===n?e:t}function I$(t,e,n){return t==="start"?e:t==="end"?n:t}function Vgt(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class Up extends bl{parsePrimitiveData(e,n,r,i){return L$(e,n,r,i)}parseArrayData(e,n,r,i){return L$(e,n,r,i)}parseObjectData(e,n,r,i){const{iScale:o,vScale:s}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,u=s.axis==="x"?a:l,d=[];let h,f,p,g;for(h=r,f=r+i;h<f;++h)g=n[h],p={},p[o.axis]=o.parse(sa(g,c),h),d.push(l8(sa(g,u),p,s,h));return d}updateRangeFromParsed(e,n,r,i){super.updateRangeFromParsed(e,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(e),s=o._custom,a=J1(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,r,i){const o=i==="reset",{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i);for(let f=n;f<n+r;f++){const p=this.getParsed(f),g=o||$t(p[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),y=this._calculateBarIndexPixels(f,u),v=(p._stacks||{})[a.axis],_={horizontal:c,base:g.base,enableBorderRadius:!v||J1(p._custom)||s===v._top||s===v._bottom,x:c?g.head:y.center,y:c?y.center:g.head,height:c?y.size:Math.abs(g.size),width:c?Math.abs(g.size):y.size};h&&(_.options=d||this.resolveDataElementOptions(f,e[f].active?"active":i));const x=_.options||e[f].options;Bgt(_,x,v,s),Vgt(_,x,u.ratio),this.updateElement(e[f],f,_,i)}}_getStacks(e,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,s=[],a=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if($t(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||s.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,r){const i=this._getStacks(e,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const e=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o<s;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const a=e.barThickness;return{min:a||Lgt(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(e),c=l._custom,u=J1(c);let d=l[n.axis],h=0,f=r?this.applyStack(n,l,r):d,p,g;f!==d&&(h=f-d,f=d),u&&(d=c.barStart,f=c.barEnd-c.barStart,d!==0&&Uo(d)!==Uo(c.barEnd)&&(h=0),h+=d);const y=!$t(o)&&!u?o:h;let v=n.getPixelForValue(y);if(this.chart.getDataVisibility(e)?p=n.getPixelForValue(h+f):p=v,g=p-v,Math.abs(g)<s){g=Fgt(g,n,a)*s,d===a&&(v-=g/2);const _=n.getPixelForDecimal(0),x=n.getPixelForDecimal(1),b=Math.min(_,x),w=Math.max(_,x);v=Math.max(Math.min(v,w),b),p=v+g,r&&!u&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(p)-n.getValueForPixel(v))}if(v===n.getPixelForValue(a)){const _=Uo(g)*n.getLineWidthForValue(a)/2;v+=_,g-=_}return{size:g,base:v,head:p,center:p+g/2}}_calculateBarIndexPixels(e,n){const r=n.scale,i=this.options,o=i.skipNull,s=_t(i.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(e):n.stackCount,u=i.barThickness==="flex"?Igt(e,n,i,c):Dgt(e,n,i,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);a=u.start+u.chunk*d+u.chunk/2,l=Math.min(s,u.chunk*u.ratio)}else a=r.getPixelForValue(this.getParsed(e)[r.axis],e),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const e=this._cachedMeta,n=e.vScale,r=e.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&r[o].draw(this._ctx)}}ct(Up,"id","bar"),ct(Up,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ct(Up,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function Hgt(t,e,n){let r=1,i=1,o=0,s=0;if(e<de){const a=t,l=a+e,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),h=Math.sin(l),f=(x,b,w)=>bm(x,a,l,!0)?1:Math.max(b,b*n,w,w*n),p=(x,b,w)=>bm(x,a,l,!0)?-1:Math.min(b,b*n,w,w*n),g=f(0,c,d),y=f(he,u,h),v=p(be,c,d),_=p(be+he,u,h);r=(g-v)/2,i=(y-_)/2,o=-(g+v)/2,s=-(y+_)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class nu extends bl{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(mt(r[e])){const{key:l="value"}=this._parsing;o=c=>+sa(r[c],l)}let s,a;for(s=e,a=e+n;s<a;++s)i._parsed[s]=o(s)}}_getRotation(){return ti(this.options.rotation-90)}_getCircumference(){return ti(this.options.circumference)}_getRotationExtents(){let e=de,n=-de;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),s=i._getCircumference();e=Math.min(e,o),n=Math.max(n,o+s)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(bpt(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:p,offsetY:g}=Hgt(d,u,l),y=(r.width-s)/h,v=(r.height-s)/f,_=Math.max(Math.min(y,v)/2,0),x=B9(this.options.radius,_),b=Math.max(x*l,0),w=(x-b)/this._getVisibleDatasetWeightTotal();this.offsetX=p*x,this.offsetY=g*x,i.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(o,0,o.length,e)}_circumference(e,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||i._parsed[e]===null||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*o/de)}updateElements(e,n,r,i){const o=i==="reset",s=this.chart,a=s.chartArea,l=s.options.animation,c=(a.left+a.right)/2,u=(a.top+a.bottom)/2,d=o&&l.animateScale,h=d?0:this.innerRadius,f=d?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(n,i);let y=this._getRotation(),v;for(v=0;v<n;++v)y+=this._circumference(v,o);for(v=n;v<n+r;++v){const _=this._circumference(v,o),x=e[v],b={x:c+this.offsetX,y:u+this.offsetY,startAngle:y,endAngle:y+_,circumference:_,outerRadius:f,innerRadius:h};g&&(b.options=p||this.resolveDataElementOptions(v,x.active?"active":i)),y+=_,this.updateElement(x,v,b,i)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,i;for(i=0;i<n.length;i++){const o=e._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?de*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=sv(n._parsed[e],r.options.locale);return{label:i[e]||"",value:o}}getMaxBorderWidth(e){let n=0;const r=this.chart;let i,o,s,a,l;if(!e){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),e=s.data,a=s.controller;break}}if(!e)return 0;for(i=0,o=e.length;i<o;++i)l=a.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,i=e.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(_t(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ct(nu,"id","doughnut"),ct(nu,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ct(nu,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"}),ct(nu,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:r}}=t.legend.options;return e.labels.map((i,o)=>{const s=t.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:r,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}});function bs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class xS{static override(e){Object.assign(xS.prototype,e)}constructor(e){this.options=e||{}}init(){}formats(){return bs()}parse(){return bs()}format(){return bs()}add(){return bs()}diff(){return bs()}startOf(){return bs()}endOf(){return bs()}}var Ugt={_date:xS};function Wgt(t,e,n,r){const{controller:i,data:o,_sorted:s}=t,a=i._cachedMeta.iScale;if(a&&e===a.axis&&e!=="r"&&s&&o.length){const l=a._reversePixels?Opt:Dx;if(r){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(e);if(u){const d=l(o,e,n-u),h=l(o,e,n+u);return{lo:d.lo,hi:h.hi}}}}else return l(o,e,n)}return{lo:0,hi:o.length-1}}function _h(t,e,n,r,i){const o=t.getSortedVisibleDatasetMetas(),s=n[e];for(let a=0,l=o.length;a<l;++a){const{index:c,data:u}=o[a],{lo:d,hi:h}=Wgt(o[a],e,s,i);for(let f=d;f<=h;++f){const p=u[f];p.skip||r(p,c,f)}}}function Ygt(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,i){const o=e?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(s,2))}}function ty(t,e,n,r,i){const o=[];return!i&&!t.isPointInArea(e)||_h(t,n,e,function(s,a,l){!i&&!K9(s,t.chartArea,0)||s.inRange(e.x,e.y,r)&&o.push({element:s,datasetIndex:a,index:l})},!0),o}function Ggt(t,e,n,r){let i=[];function o(s,a,l){const{startAngle:c,endAngle:u}=s.getProps(["startAngle","endAngle"],r),{angle:d}=H9(s,{x:e.x,y:e.y});bm(d,c,u)&&i.push({element:s,datasetIndex:a,index:l})}return _h(t,n,e,o),i}function qgt(t,e,n,r,i,o){let s=[];const a=Ygt(n);let l=Number.POSITIVE_INFINITY;function c(u,d,h){const f=u.inRange(e.x,e.y,i);if(r&&!f)return;const p=u.getCenterPoint(i);if(!(!!o||t.isPointInArea(p))&&!f)return;const g=a(e,p);g<l?(s=[{element:u,datasetIndex:d,index:h}],l=g):g===l&&s.push({element:u,datasetIndex:d,index:h})}return _h(t,n,e,c),s}function ey(t,e,n,r,i,o){return!o&&!t.isPointInArea(e)?[]:n==="r"&&!r?Ggt(t,e,n,i):qgt(t,e,n,r,i,o)}function N$(t,e,n,r,i){const o=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return _h(t,n,e,(l,c,u)=>{l[s](e[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,i))}),r&&!a?[]:o}var Zgt={evaluateInteractionItems:_h,modes:{index(t,e,n,r){const i=As(e,t),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?ty(t,i,o,r,s):ey(t,i,o,!1,r,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,r){const i=As(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?ty(t,i,o,r,s):ey(t,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(t,e,n,r){const i=As(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;return ty(t,i,o,r,s)},nearest(t,e,n,r){const i=As(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;return ey(t,i,o,n.intersect,r,s)},x(t,e,n,r){const i=As(e,t);return N$(t,i,"x",n.intersect,r)},y(t,e,n,r){const i=As(e,t);return N$(t,i,"y",n.intersect,r)}}};const c8=["left","top","right","bottom"];function jc(t,e){return t.filter(n=>n.pos===e)}function F$(t,e){return t.filter(n=>c8.indexOf(n.pos)===-1&&n.box.axis===e)}function Vc(t,e){return t.sort((n,r)=>{const i=e?r:n,o=e?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function Xgt(t){const e=[];let n,r,i,o,s,a;for(n=0,r=(t||[]).length;n<r;++n)i=t[n],{position:o,options:{stack:s,stackWeight:a=1}}=i,e.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&o+s,stackWeight:a});return e}function Kgt(t){const e={};for(const n of t){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!c8.includes(i))continue;const s=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return e}function Qgt(t,e){const n=Kgt(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let o,s,a;for(o=0,s=t.length;o<s;++o){a=t[o];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*r:l&&e.availableWidth,a.height=i):(a.width=r,a.height=u?u*i:l&&e.availableHeight)}return n}function Jgt(t){const e=Xgt(t),n=Vc(e.filter(c=>c.box.fullSize),!0),r=Vc(jc(e,"left"),!0),i=Vc(jc(e,"right")),o=Vc(jc(e,"top"),!0),s=Vc(jc(e,"bottom")),a=F$(e,"x"),l=F$(e,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:jc(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function z$(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function u8(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function tmt(t,e,n,r){const{pos:i,box:o}=n,s=t.maxPadding;if(!mt(i)){n.size&&(t[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,t[i]+=n.size}o.getPadding&&u8(s,o.getPadding());const a=Math.max(0,e.outerWidth-z$(s,t,"left","right")),l=Math.max(0,e.outerHeight-z$(s,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function emt(t){const e=t.maxPadding;function n(r){const i=Math.max(e[r]-t[r],0);return t[r]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function nmt(t,e){const n=e.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(e[s],n[s])}),o}return r(t?["left","right"]:["top","bottom"])}function ru(t,e,n,r){const i=[];let o,s,a,l,c,u;for(o=0,s=t.length,c=0;o<s;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,nmt(a.horizontal,e));const{same:d,other:h}=tmt(e,n,a,r);c|=d&&i.length,u=u||h,l.fullSize||i.push(a)}return c&&ru(i,e,n,r)||u}function zf(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function B$(t,e,n,r){const i=n.padding;let{x:o,y:s}=e;for(const a of t){const l=a.box,c=r[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=e.w*u,h=c.size||l.height;_r(c.start)&&(s=c.start),l.fullSize?zf(l,i.left,s,n.outerWidth-i.right-i.left,h):zf(l,e.left+c.placed,s,d,h),c.start=s,c.placed+=d,s=l.bottom}else{const d=e.h*u,h=c.size||l.width;_r(c.start)&&(o=c.start),l.fullSize?zf(l,o,i.top,h,n.outerHeight-i.bottom-i.top):zf(l,o,e.top+c.placed,h,d),c.start=o,c.placed+=d,o=l.right}}e.x=o,e.y=s}var hr={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const i=an(t.options.layout.padding),o=Math.max(e-i.width,0),s=Math.max(n-i.height,0),a=Jgt(t.boxes),l=a.vertical,c=a.horizontal;kt(t.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,y)=>y.box.options&&y.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},i);u8(h,an(r));const f=Object.assign({maxPadding:h,w:o,h:s,x:i.left,y:i.top},i),p=Qgt(l.concat(c),d);ru(a.fullSize,f,d,p),ru(l,f,d,p),ru(c,f,d,p)&&ru(l,f,d,p),emt(f),B$(a.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,B$(a.rightAndBottom,f,d,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},kt(a.chartArea,g=>{const y=g.box;Object.assign(y,t.chartArea),y.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class d8{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,i){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(e){return!0}updateConfig(e){}}class rmt extends d8{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Wp="$chartjs",imt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},j$=t=>t===null||t==="";function omt(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[Wp]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",j$(i)){const o=k$(t,"width");o!==void 0&&(t.width=o)}if(j$(r))if(t.style.height==="")t.height=t.width/(e||2);else{const o=k$(t,"height");o!==void 0&&(t.height=o)}return t}const h8=mgt?{passive:!0}:!1;function smt(t,e,n){t.addEventListener(e,n,h8)}function amt(t,e,n){t.canvas.removeEventListener(e,n,h8)}function lmt(t,e){const n=imt[t.type]||t.type,{x:r,y:i}=As(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Em(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function cmt(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Em(a.addedNodes,r),s=s&&!Em(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function umt(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Em(a.removedNodes,r),s=s&&!Em(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Vd=new Map;let V$=0;function f8(){const t=window.devicePixelRatio;t!==V$&&(V$=t,Vd.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function dmt(t,e){Vd.size||window.addEventListener("resize",f8),Vd.set(t,e)}function hmt(t){Vd.delete(t),Vd.size||window.removeEventListener("resize",f8)}function fmt(t,e,n){const r=t.canvas,i=r&&_S(r);if(!i)return;const o=G9((a,l)=>{const c=i.clientWidth;n(a,l),c<i.clientWidth&&n()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return s.observe(i),dmt(t,o),s}function ny(t,e,n){n&&n.disconnect(),e==="resize"&&hmt(t)}function pmt(t,e,n){const r=t.canvas,i=G9(o=>{t.ctx!==null&&n(lmt(o,t))},t);return smt(r,e,i),i}class gmt extends d8{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(omt(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[Wp])return!1;const r=n[Wp].initial;["height","width"].forEach(o=>{const s=r[o];$t(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Wp],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),o={attach:cmt,detach:umt,resize:fmt}[n]||pmt;i[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),i=r[n];!i||(({attach:ny,detach:ny,resize:ny}[n]||amt)(e,n,i),r[n]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,i){return ggt(e,n,r,i)}isAttached(e){const n=_S(e);return!!(n&&n.isConnected)}}function mmt(t){return!r8()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?rmt:gmt}class Ui{constructor(){ct(this,"active",!1)}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return xm(this.x)&&xm(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const i={};return e.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}}ct(Ui,"defaults",{}),ct(Ui,"defaultRoutes");function vmt(t,e){const n=t.options.ticks,r=ymt(t),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?xmt(e):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>i)return bmt(e,c,o,s/i),c;const u=_mt(o,e,i);if(s>0){let d,h;const f=s>1?Math.round((l-a)/(s-1)):null;for(Bf(e,c,u,$t(f)?0:a-f,a),d=0,h=s-1;d<h;d++)Bf(e,c,u,o[d],o[d+1]);return Bf(e,c,u,l,$t(f)?e.length:l+f),c}return Bf(e,c,u),c}function ymt(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(r,i))}function _mt(t,e,n){const r=wmt(t),i=e.length/n;if(!r)return Math.max(i,1);const o=Tpt(r);for(let s=0,a=o.length-1;s<a;s++){const l=o[s];if(l>i)return l}return Math.max(i,1)}function xmt(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function bmt(t,e,n,r){let i=0,o=n[0],s;for(r=Math.ceil(r),s=0;s<t.length;s++)s===o&&(e.push(t[s]),i++,o=n[i*r])}function Bf(t,e,n,r,i){const o=_t(r,0),s=Math.min(_t(i,t.length),t.length);let a=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),u=o;u<0;)a++,u=Math.round(o+a*n);for(c=Math.max(o,0);c<s;c++)c===u&&(e.push(t[c]),a++,u=Math.round(o+a*n))}function wmt(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const Smt=t=>t==="left"?"right":t==="right"?"left":t,H$=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n;function U$(t,e){const n=[],r=t.length/e,i=t.length;let o=0;for(;o<i;o+=r)n.push(t[Math.floor(o)]);return n}function Emt(t,e,n){const r=t.ticks.length,i=Math.min(e,r-1),o=t._startPixel,s=t._endPixel,a=1e-6;let l=t.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,s-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(i-1))/2,l+=i<e?c:-c,l<o-a||l>s+a)))return l}function Cmt(t,e){kt(t,n=>{const r=n.gc,i=r.length/2;let o;if(i>e){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function Hc(t){return t.drawTicks?t.tickLength:0}function W$(t,e){if(!t.display)return 0;const n=$e(t.font,e),r=an(t.padding);return(te(t.text)?t.text.length:1)*n.lineHeight+r.height}function kmt(t,e){return va(t,{scale:e,type:"scale"})}function Amt(t,e,n){return va(t,{tick:n,index:e,type:"tick"})}function Tmt(t,e,n){let r=hS(t);return(n&&e!=="right"||!n&&e==="right")&&(r=Smt(r)),r}function $mt(t,e,n,r){const{top:i,left:o,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let d=0,h,f,p;const g=s-i,y=a-o;if(t.isHorizontal()){if(f=Je(r,o,a),mt(n)){const v=Object.keys(n)[0],_=n[v];p=u[v].getPixelForValue(_)+g-e}else n==="center"?p=(c.bottom+c.top)/2+g-e:p=H$(t,n,e);h=a-o}else{if(mt(n)){const v=Object.keys(n)[0],_=n[v];f=u[v].getPixelForValue(_)-y+e}else n==="center"?f=(c.left+c.right)/2-y+e:f=H$(t,n,e);p=Je(r,s,i),d=n==="left"?-he:he}return{titleX:f,titleY:p,maxWidth:h,rotation:d}}class ya extends Ui{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return e=Hn(e,Number.POSITIVE_INFINITY),n=Hn(n,Number.NEGATIVE_INFINITY),r=Hn(r,Number.POSITIVE_INFINITY),i=Hn(i,Number.NEGATIVE_INFINITY),{min:Hn(e,r),max:Hn(n,i),minDefined:Fe(e),maxDefined:Fe(n)}}getMinMax(e){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),s;if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,e),i||(n=Math.min(n,s.min)),o||(r=Math.max(r,s.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Hn(n,Hn(r,n)),max:Hn(r,Hn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Bt(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=tgt(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?U$(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=vmt(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Bt(this.options.afterUpdate,[this])}beforeSetDimensions(){Bt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Bt(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Bt(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Bt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r],o.label=Bt(n.callback,[o.value,r,e],this)}afterTickToLabelConversion(){Bt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Bt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=this.ticks.length,i=n.minRotation||0,o=n.maxRotation;let s=i,a,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,f=Pn(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/r:f/(r-1),d+6>a&&(a=f/(r-(e.offset?.5:1)),l=this.maxHeight-Hc(e.grid)-n.padding-W$(e.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),s=uS(Math.min(Math.asin(Pn((u.highest.height+6)/a,-1,1)),Math.asin(Pn(l/c,-1,1))-Math.asin(Pn(h/c,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){Bt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Bt(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=W$(i,n.options.font);if(a?(e.width=this.maxWidth,e.height=Hc(o)+l):(e.height=this.maxHeight,e.width=Hc(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,p=ti(this.labelRotation),g=Math.cos(p),y=Math.sin(p);if(a){const v=r.mirror?0:y*d.width+g*h.height;e.height=Math.min(this.maxHeight,e.height+v+f)}else{const v=r.mirror?0:g*d.width+y*h.height;e.width=Math.min(this.maxWidth,e.width+v+f)}this._calculatePadding(c,u,y,g)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?c?(h=i*e.width,f=r*n.height):(h=r*e.height,f=i*n.width):o==="start"?f=n.width:o==="end"?h=e.width:o!=="inner"&&(h=e.width/2,f=n.width/2),this.paddingLeft=Math.max((h-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-d+s)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;o==="start"?(u=0,d=e.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Bt(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)$t(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=U$(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length)}return e}_computeLabelSizes(e,n){const{ctx:r,_longestTextCache:i}=this,o=[],s=[];let a=0,l=0,c,u,d,h,f,p,g,y,v,_,x;for(c=0;c<n;++c){if(h=e[c].label,f=this._resolveTickFontOptions(c),r.font=p=f.string,g=i[p]=i[p]||{data:{},gc:[]},y=f.lineHeight,v=_=0,!$t(h)&&!te(h))v=wm(r,g.data,g.gc,v,h),_=y;else if(te(h))for(u=0,d=h.length;u<d;++u)x=h[u],!$t(x)&&!te(x)&&(v=wm(r,g.data,g.gc,v,x),_+=y);o.push(v),s.push(_),a=Math.max(v,a),l=Math.max(_,l)}Cmt(i,n);const b=o.indexOf(a),w=s.indexOf(l),S=E=>({width:o[E]||0,height:s[E]||0});return{first:S(0),last:S(n-1),widest:S(b),highest:S(w),widths:o,heights:s}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return Ppt(this._alignToPixels?xs(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=Amt(this.getContext(),e,r))}return this.$context||(this.$context=kmt(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=ti(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),s=e.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:a}=i,l=o.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),d=Hc(o),h=[],f=a.setContext(this.getContext()),p=f.display?f.width:0,g=p/2,y=function(L){return xs(r,L,p)};let v,_,x,b,w,S,E,C,A,k,$,M;if(s==="top")v=y(this.bottom),S=this.bottom-d,C=v-g,k=y(e.top)+g,M=e.bottom;else if(s==="bottom")v=y(this.top),k=e.top,M=y(e.bottom)-g,S=v+g,C=this.top+d;else if(s==="left")v=y(this.right),w=this.right-d,E=v-g,A=y(e.left)+g,$=e.right;else if(s==="right")v=y(this.left),A=e.left,$=y(e.right)-g,w=v+g,E=this.left+d;else if(n==="x"){if(s==="center")v=y((e.top+e.bottom)/2+.5);else if(mt(s)){const L=Object.keys(s)[0],Y=s[L];v=y(this.chart.scales[L].getPixelForValue(Y))}k=e.top,M=e.bottom,S=v+g,C=S+d}else if(n==="y"){if(s==="center")v=y((e.left+e.right)/2);else if(mt(s)){const L=Object.keys(s)[0],Y=s[L];v=y(this.chart.scales[L].getPixelForValue(Y))}w=v-g,E=w-d,A=e.left,$=e.right}const I=_t(i.ticks.maxTicksLimit,u),F=Math.max(1,Math.ceil(u/I));for(_=0;_<u;_+=F){const L=this.getContext(_),Y=o.setContext(L),X=a.setContext(L),z=Y.lineWidth,W=Y.color,P=X.dash||[],G=X.dashOffset,U=Y.tickWidth,B=Y.tickColor,R=Y.tickBorderDash||[],j=Y.tickBorderDashOffset;x=Emt(this,_,l),x!==void 0&&(b=xs(r,x,z),c?w=E=A=$=b:S=C=k=M=b,h.push({tx1:w,ty1:S,tx2:E,ty2:C,x1:A,y1:k,x2:$,y2:M,width:z,color:W,borderDash:P,borderDashOffset:G,tickWidth:U,tickColor:B,tickBorderDash:R,tickBorderDashOffset:j}))}return this._ticksLength=u,this._borderValue=v,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:i,ticks:o}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=o,h=Hc(r.grid),f=h+u,p=d?-u:f,g=-ti(this.labelRotation),y=[];let v,_,x,b,w,S,E,C,A,k,$,M,I="middle";if(i==="top")S=this.bottom-p,E=this._getXAxisLabelAlignment();else if(i==="bottom")S=this.top+p,E=this._getXAxisLabelAlignment();else if(i==="left"){const L=this._getYAxisLabelAlignment(h);E=L.textAlign,w=L.x}else if(i==="right"){const L=this._getYAxisLabelAlignment(h);E=L.textAlign,w=L.x}else if(n==="x"){if(i==="center")S=(e.top+e.bottom)/2+f;else if(mt(i)){const L=Object.keys(i)[0],Y=i[L];S=this.chart.scales[L].getPixelForValue(Y)+f}E=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(e.left+e.right)/2-f;else if(mt(i)){const L=Object.keys(i)[0],Y=i[L];w=this.chart.scales[L].getPixelForValue(Y)}E=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?I="top":l==="end"&&(I="bottom"));const F=this._getLabelSizes();for(v=0,_=a.length;v<_;++v){x=a[v],b=x.label;const L=o.setContext(this.getContext(v));C=this.getPixelForTick(v)+o.labelOffset,A=this._resolveTickFontOptions(v),k=A.lineHeight,$=te(b)?b.length:1;const Y=$/2,X=L.color,z=L.textStrokeColor,W=L.textStrokeWidth;let P=E;s?(w=C,E==="inner"&&(v===_-1?P=this.options.reverse?"left":"right":v===0?P=this.options.reverse?"right":"left":P="center"),i==="top"?c==="near"||g!==0?M=-$*k+k/2:c==="center"?M=-F.highest.height/2-Y*k+k:M=-F.highest.height+k/2:c==="near"||g!==0?M=k/2:c==="center"?M=F.highest.height/2-Y*k:M=F.highest.height-$*k,d&&(M*=-1),g!==0&&!L.showLabelBackdrop&&(w+=k/2*Math.sin(g))):(S=C,M=(1-$)*k/2);let G;if(L.showLabelBackdrop){const U=an(L.backdropPadding),B=F.heights[v],R=F.widths[v];let j=M-U.top,K=0-U.left;switch(I){case"middle":j-=B/2;break;case"bottom":j-=B;break}switch(E){case"center":K-=R/2;break;case"right":K-=R;break}G={left:K,top:j,width:R+U.width,height:B+U.height,color:L.backdropColor}}y.push({label:b,font:A,textOffset:M,options:{rotation:g,color:X,strokeColor:z,strokeWidth:W,textAlign:P,textBaseline:I,translation:[w,S],backdrop:G}})}return y}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-ti(this.labelRotation))return e==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,s=this._getLabelSizes(),a=e+o,l=s.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:i,width:o,height:s}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,i,o,s),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===e);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,s;const a=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o<s;++o){const l=i[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),s=r.display?o.width:0;if(!s)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,h;this.isHorizontal()?(c=xs(e,this.left,s)-s/2,u=xs(e,this.right,a)+a/2,d=h=l):(d=xs(e,this.top,s)-s/2,h=xs(e,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,h),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const n=this.ctx,r=this._computeLabelArea();r&&fS(n,r);const i=this.getLabelItems(e);for(const o of i){const s=o.options,a=o.font,l=o.label,c=o.textOffset;la(n,l,0,c,a,s)}r&&pS(n)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=$e(r.font),s=an(r.padding),a=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||mt(n)?(l+=s.bottom,te(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:c,titleY:u,maxWidth:d,rotation:h}=$mt(this,l,n,a);la(e,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:h,textAlign:Tmt(a,n,i),textBaseline:"middle",translation:[c,u]})}draw(e){!this._isVisible()||(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=_t(e.grid&&e.grid.z,-1),i=_t(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==ya.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o<s;++o){const a=n[o];a[r]===this.id&&(!e||a.type===e)&&i.push(a)}return i}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return $e(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class jf{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;Omt(n)&&(r=this.register(n));const i=this.items,o=e.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+e);return o in i||(i[o]=e,Mmt(e,s,r),this.override&&ye.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,i=this.scope;r in n&&delete n[r],i&&r in ye[i]&&(delete ye[i][r],this.override&&delete aa[r])}}function Mmt(t,e,n){const r=Bd(Object.create(null),[n?ye.get(n):{},ye.get(e),t.defaults]);ye.set(e,r),t.defaultRoutes&&Pmt(e,t.defaultRoutes),t.descriptors&&ye.describe(e,t.descriptors)}function Pmt(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),i=r.pop(),o=[t].concat(r).join("."),s=e[n].split("."),a=s.pop(),l=s.join(".");ye.route(o,i,l,a)})}function Omt(t){return"id"in t&&"defaults"in t}class Rmt{constructor(){this.controllers=new jf(bl,"datasets",!0),this.elements=new jf(Ui,"elements"),this.plugins=new jf(Object,"plugins"),this.scales=new jf(ya,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(e,o,i):kt(i,s=>{const a=r||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,n,r){const i=cS(e);Bt(r["before"+i],[],r),n[e](r),Bt(r["after"+i],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const i=n.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return i}}var Gr=new Rmt;class Lmt{constructor(){this._init=[]}notify(e,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const o=i?this._descriptors(e).filter(i):this._descriptors(e),s=this._notify(o,e,n,r);return n==="afterDestroy"&&(this._notify(o,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,n,r,i){i=i||{};for(const o of e){const s=o.plugin,a=s[r],l=[n,i,o.options];if(Bt(a,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){$t(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,i=_t(r.options&&r.options.plugins,{}),o=Dmt(r);return i===!1&&!n?[]:Nmt(e,o,i,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,i=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),e,"stop"),this._notify(i(r,n),e,"start")}}function Dmt(t){const e={},n=[],r=Object.keys(Gr.plugins.items);for(let o=0;o<r.length;o++)n.push(Gr.getPlugin(r[o]));const i=t.plugins||[];for(let o=0;o<i.length;o++){const s=i[o];n.indexOf(s)===-1&&(n.push(s),e[s.id]=!0)}return{plugins:n,localIds:e}}function Imt(t,e){return!e&&t===!1?null:t===!0?{}:t}function Nmt(t,{plugins:e,localIds:n},r,i){const o=[],s=t.getContext();for(const a of e){const l=a.id,c=Imt(r[l],i);c!==null&&o.push({plugin:a,options:Fmt(t.config,{plugin:a,local:n[l]},c,s)})}return o}function Fmt(t,{plugin:e,local:n},r,i){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(r,o);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Nx(t,e){const n=ye.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function zmt(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function Bmt(t,e){return t===e?"_index_":"_value_"}function jmt(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Cm(t,e){if(t==="x"||t==="y"||t==="r"||(t=e.axis||jmt(e.position)||t.length>1&&Cm(t[0].toLowerCase(),e),t))return t;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function Vmt(t,e){const n=aa[t.type]||{scales:{}},r=e.scales||{},i=Nx(t.type,e),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!mt(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=Cm(s,a),c=Bmt(l,i),u=n.scales||{};o[s]=Uu(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||Nx(a,e),c=(aa[a]||{}).scales||{};Object.keys(c).forEach(u=>{const d=zmt(u,l),h=s[d+"AxisID"]||d;o[h]=o[h]||Object.create(null),Uu(o[h],[{axis:d},r[h],c[u]])})}),Object.keys(o).forEach(s=>{const a=o[s];Uu(a,[ye.scales[a.type],ye.scale])}),o}function p8(t){const e=t.options||(t.options={});e.plugins=_t(e.plugins,{}),e.scales=Vmt(t,e)}function g8(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Hmt(t){return t=t||{},t.data=g8(t.data),p8(t),t}const Y$=new Map,m8=new Set;function Vf(t,e){let n=Y$.get(t);return n||(n=e(),Y$.set(t,n),m8.add(n)),n}const Uc=(t,e,n)=>{const r=sa(e,n);r!==void 0&&t.add(r)};class Umt{constructor(e){this._config=Hmt(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=g8(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),p8(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Vf(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Vf(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Vf(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Vf(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let i=r.get(e);return(!i||n)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,n,r){const{options:i,type:o}=this,s=this._cachedScopes(e,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>Uc(l,e,d))),u.forEach(d=>Uc(l,i,d)),u.forEach(d=>Uc(l,aa[o]||{},d)),u.forEach(d=>Uc(l,ye,d)),u.forEach(d=>Uc(l,Ix,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),m8.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,aa[n]||{},ye.datasets[n]||{},{type:n},ye,Ix]}resolveNamedOptions(e,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=G$(this._resolverCache,e,i);let l=s;if(Ymt(s,n)){o.$shared=!1,r=ts(r)?r():r;const c=this.createResolver(e,r,a);l=Zl(s,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(e,n,r=[""],i){const{resolver:o}=G$(this._resolverCache,e,r);return mt(n)?Zl(o,n,void 0,i):o}}function G$(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let o=r.get(i);return o||(o={resolver:mS(e,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const Wmt=t=>mt(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||ts(t[n]),!1);function Ymt(t,e){const{isScriptable:n,isIndexable:r}=J9(t);for(const i of e){const o=n(i),s=r(i),a=(s||o)&&t[i];if(o&&(ts(a)||Wmt(a))||s&&te(a))return!0}return!1}var Gmt="4.2.0";const qmt=["top","bottom","left","right","chartArea"];function q$(t,e){return t==="top"||t==="bottom"||qmt.indexOf(t)===-1&&e==="x"}function Z$(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function X$(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Bt(n&&n.onComplete,[t],e)}function Zmt(t){const e=t.chart,n=e.options.animation;Bt(n&&n.onProgress,[t],e)}function v8(t){return r8()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const km={},y8=t=>{const e=v8(t);return Object.values(km).filter(n=>n.canvas===e).pop()};function Xmt(t,e,n){const r=Object.keys(t);for(const i of r){const o=+i;if(o>=e){const s=t[i];delete t[i],(n>0||o>e)&&(t[o+n]=s)}}}function Kmt(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}function Qmt(t){const{xScale:e,yScale:n}=t;if(e&&n)return{left:e.left,right:e.right,top:n.top,bottom:n.bottom}}class ar{static register(...e){Gr.add(...e),K$()}static unregister(...e){Gr.remove(...e),K$()}constructor(e,n){const r=this.config=new Umt(n),i=v8(e),o=y8(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||mmt(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=xpt(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Lmt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Dpt(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],km[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}mi.listen(this,"complete",X$),mi.listen(this,"progress",Zmt),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return $t(e)?n&&o?o:i?r/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Gr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():C$(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return b$(this.canvas,this.ctx),this}stop(){return mi.stop(this),this}resize(e,n){mi.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,e,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,C$(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Bt(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};kt(e,(n,r)=>{n.id=r})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=Cm(s,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),kt(o,s=>{const a=s.options,l=a.id,c=Cm(l,a),u=_t(a.type,s.dtype);(a.position===void 0||q$(a.position,c)!==q$(s.dposition))&&(a.position=s.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const h=Gr.getScale(u);d=new h({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(a,e)}),kt(i,(s,a)=>{s||delete r[a]}),kt(r,s=>{hr.configure(this,s,s.options),hr.addBox(this,s)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(Z$("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let s=this.getDatasetMeta(r);const a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=o.indexAxis||Nx(a,this.options),s.order=o.order||0,s.index=r,s.label=""+o.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=Gr.getController(a),{datasetElementType:c,dataElementType:u}=ye.datasets[a];Object.assign(l,{dataElementType:Gr.getElement(u),datasetElementType:c&&Gr.getElement(c)}),s.controller=new l(this,r),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){kt(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),h=!i&&o.indexOf(d)===-1;d.buildOrUpdateElements(h),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||kt(o,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Z$("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){kt(this.scales,e=>{hr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!h$(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const s=r==="_removeElements"?-o:o;Xmt(e,i,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(e.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!h$(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;hr.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],kt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,ts(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),i={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(mi.has(this)?this.attached&&!mi.running(this)&&mi.start(this):(this.draw(),X$({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const s=n[i];(!e||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r=e._clip,i=!r.disabled,o=Qmt(e)||this.chartArea,s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&fS(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),e.controller.draw(),i&&pS(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return K9(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,i){const o=Zgt.modes[n];return typeof o=="function"?o(this,e,r,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=va(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(e),s=o.controller._resolveAnimations(void 0,i);_r(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),mi.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),b$(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete km[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(o,s)=>{n.addEventListener(this,o,s),e[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};kt(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},i=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){kt(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},kt(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const i=r?"set":"remove";let o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){s=e[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:i,index:o})=>{const s=this.getDatasetMeta(i);if(!s)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:s.data[o],index:o}});!vm(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),s=o(n,e),a=r?e:o(e,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:i=[],options:o}=this,s=n,a=this._getActiveElements(e,i,r,s),l=kpt(e),c=Kmt(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Bt(o.onHover,[e,a,this],this),l&&Bt(o.onClick,[e,a,this],this));const u=!vm(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(e,n,r,i){if(e.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,i)}}ct(ar,"defaults",ye),ct(ar,"instances",km),ct(ar,"overrides",aa),ct(ar,"registry",Gr),ct(ar,"version",Gmt),ct(ar,"getChart",y8);function K$(){return kt(ar.instances,t=>t._plugins.invalidate())}function Jmt(t,e,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=e;let c=i/a;t.beginPath(),t.arc(o,s,a,r-c,n+c),l>i?(c=i/l,t.arc(o,s,l,n+c,r-c,!0)):t.arc(o,s,i,n+he,r-he),t.closePath(),t.clip()}function t0t(t){return gS(t,["outerStart","outerEnd","innerStart","innerEnd"])}function e0t(t,e,n,r){const i=t0t(t.options.borderRadius),o=(n-e)/2,s=Math.min(o,r*e/2),a=l=>{const c=(n-Math.min(o,l))*r/2;return Pn(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:Pn(i.innerStart,0,s),innerEnd:Pn(i.innerEnd,0,s)}}function Ma(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Am(t,e,n,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+r+n-c,0),h=u>0?u+r+n+c:0;let f=0;const p=i-l;if(r){const L=u>0?u-r:0,Y=d>0?d-r:0,X=(L+Y)/2,z=X!==0?p*X/(X+r):p;f=(p-z)/2}const g=Math.max(.001,p*d-n/be)/d,y=(p-g)/2,v=l+y+f,_=i-y-f,{outerStart:x,outerEnd:b,innerStart:w,innerEnd:S}=e0t(e,h,d,_-v),E=d-x,C=d-b,A=v+x/E,k=_-b/C,$=h+w,M=h+S,I=v+w/$,F=_-S/M;if(t.beginPath(),o){const L=(A+k)/2;if(t.arc(s,a,d,A,L),t.arc(s,a,d,L,k),b>0){const W=Ma(C,k,s,a);t.arc(W.x,W.y,b,k,_+he)}const Y=Ma(M,_,s,a);if(t.lineTo(Y.x,Y.y),S>0){const W=Ma(M,F,s,a);t.arc(W.x,W.y,S,_+he,F+Math.PI)}const X=(_-S/h+(v+w/h))/2;if(t.arc(s,a,h,_-S/h,X,!0),t.arc(s,a,h,X,v+w/h,!0),w>0){const W=Ma($,I,s,a);t.arc(W.x,W.y,w,I+Math.PI,v-he)}const z=Ma(E,v,s,a);if(t.lineTo(z.x,z.y),x>0){const W=Ma(E,A,s,a);t.arc(W.x,W.y,x,v-he,A)}}else{t.moveTo(s,a);const L=Math.cos(A)*d+s,Y=Math.sin(A)*d+a;t.lineTo(L,Y);const X=Math.cos(k)*d+s,z=Math.sin(k)*d+a;t.lineTo(X,z)}t.closePath()}function n0t(t,e,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=e;let l=e.endAngle;if(o){Am(t,e,n,r,l,i);for(let c=0;c<o;++c)t.fill();isNaN(a)||(l=s+(a%de||de))}return Am(t,e,n,r,l,i),t.fill(),l}function r0t(t,e,n,r,i){const{fullCircles:o,startAngle:s,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:u}=l,d=l.borderAlign==="inner";if(!c)return;d?(t.lineWidth=c*2,t.lineJoin=u||"round"):(t.lineWidth=c,t.lineJoin=u||"bevel");let h=e.endAngle;if(o){Am(t,e,n,r,h,i);for(let f=0;f<o;++f)t.stroke();isNaN(a)||(h=s+(a%de||de))}d&&Jmt(t,e,h),o||(Am(t,e,n,r,h,i),t.stroke())}class Yp extends Ui{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:s}=H9(i,{x:e,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),h=this.options.spacing/2,f=_t(d,l-a)>=de||bm(o,a,l),p=Fs(s,c+h,u+h);return f&&p}getCenterPoint(e){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:l,spacing:c}=this.options,u=(i+o)/2,d=(s+a+c+l)/2;return{x:n+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>de?Math.floor(r/de):0,r===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(be,r||0)),c=i*l;e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,n0t(e,this,c,o,s),r0t(e,this,c,o,s),e.restore()}}ct(Yp,"id","arc"),ct(Yp,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ct(Yp,"defaultRoutes",{backgroundColor:"backgroundColor"});function _8(t,e){const{x:n,y:r,base:i,width:o,height:s}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return t.horizontal?(d=s/2,a=Math.min(n,i),l=Math.max(n,i),c=r-d,u=r+d):(d=o/2,a=n-d,l=n+d,c=Math.min(r,i),u=Math.max(r,i)),{left:a,top:c,right:l,bottom:u}}function To(t,e,n,r){return t?0:Pn(e,n,r)}function i0t(t,e,n){const r=t.options.borderWidth,i=t.borderSkipped,o=Q9(r);return{t:To(i.top,o.top,0,n),r:To(i.right,o.right,0,e),b:To(i.bottom,o.bottom,0,n),l:To(i.left,o.left,0,e)}}function o0t(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),i=t.options.borderRadius,o=qs(i),s=Math.min(e,n),a=t.borderSkipped,l=r||mt(i);return{topLeft:To(!l||a.top||a.left,o.topLeft,0,s),topRight:To(!l||a.top||a.right,o.topRight,0,s),bottomLeft:To(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:To(!l||a.bottom||a.right,o.bottomRight,0,s)}}function s0t(t){const e=_8(t),n=e.right-e.left,r=e.bottom-e.top,i=i0t(t,n/2,r/2),o=o0t(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:o},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function ry(t,e,n,r){const i=e===null,o=n===null,s=t&&!(i&&o)&&_8(t,r);return s&&(i||Fs(e,s.left,s.right))&&(o||Fs(n,s.top,s.bottom))}function a0t(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function l0t(t,e){t.rect(e.x,e.y,e.w,e.h)}function iy(t,e,n={}){const r=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-r,s=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+r,y:t.y+i,w:t.w+o,h:t.h+s,radius:t.radius}}class Gu extends Ui{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:s}=s0t(this),a=a0t(s.radius)?jd:l0t;e.save(),(s.w!==o.w||s.h!==o.h)&&(e.beginPath(),a(e,iy(s,n,o)),e.clip(),a(e,iy(o,-n,s)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),a(e,iy(o,n)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,n,r){return ry(this,e,n,r)}inXRange(e,n){return ry(this,e,null,n)}inYRange(e,n){return ry(this,null,e,n)}getCenterPoint(e){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],e);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}ct(Gu,"id","bar"),ct(Gu,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ct(Gu,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Q$=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},c0t=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class J$ extends Ui{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Bt(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,i=$e(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Q$(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,i,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=e;o.textAlign="left",o.textBaseline="middle";let h=-1,f=-u;return this.legendItems.forEach((p,g)=>{const y=r+n/2+o.measureText(p.text).width;(g===0||c[c.length-1]+y+2*a>s)&&(d+=u,c[c.length-(g>0?0:1)]=0,f+=u,h++),l[g]={left:0,top:f,row:h,width:y,height:i},c[c.length-1]+=y+a}),d}_fitCols(e,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=s-e;let d=a,h=0,f=0,p=0,g=0;return this.legendItems.forEach((y,v)=>{const{itemWidth:_,itemHeight:x}=u0t(r,n,o,y,i);v>0&&f+x+2*a>u&&(d+=h+a,c.push({width:h,height:f}),p+=h+a,g++,h=f=0),l[v]={left:p,top:f,col:g,width:_,height:x},h=Math.max(h,_),f+=x+a}),d+=h,c.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=xl(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=Je(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Je(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+e+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let a=0,l=Je(r,this.top+e+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Je(r,this.top+e+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;fS(e,this),this._draw(),pS(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=e,a=ye.color,l=xl(e.rtl,this.left,this.width),c=$e(s.font),{padding:u}=s,d=c.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:y}=Q$(s,d),v=function(S,E,C){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const A=_t(C.lineWidth,1);if(i.fillStyle=_t(C.fillStyle,a),i.lineCap=_t(C.lineCap,"butt"),i.lineDashOffset=_t(C.lineDashOffset,0),i.lineJoin=_t(C.lineJoin,"miter"),i.lineWidth=A,i.strokeStyle=_t(C.strokeStyle,a),i.setLineDash(_t(C.lineDash,[])),s.usePointStyle){const k={radius:g*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:A},$=l.xPlus(S,p/2),M=E+h;X9(i,k,$,M,s.pointStyleWidth&&p)}else{const k=E+Math.max((d-g)/2,0),$=l.leftForLtr(S,p),M=qs(C.borderRadius);i.beginPath(),Object.values(M).some(I=>I!==0)?jd(i,{x:$,y:k,w:p,h:g,radius:M}):i.rect($,k,p,g),i.fill(),A!==0&&i.stroke()}i.restore()},_=function(S,E,C){la(i,C.text,S,E+y/2,c,{strikethrough:C.hidden,textAlign:l.textAlign(C.textAlign)})},x=this.isHorizontal(),b=this._computeTitleHeight();x?f={x:Je(o,this.left+u,this.right-r[0]),y:this.top+u+b,line:0}:f={x:this.left+u,y:Je(o,this.top+b+u,this.bottom-n[0].height),line:0},i8(this.ctx,e.textDirection);const w=y+u;this.legendItems.forEach((S,E)=>{i.strokeStyle=S.fontColor,i.fillStyle=S.fontColor;const C=i.measureText(S.text).width,A=l.textAlign(S.textAlign||(S.textAlign=s.textAlign)),k=p+h+C;let $=f.x,M=f.y;l.setWidth(this.width),x?E>0&&$+k+u>this.right&&(M=f.y+=w,f.line++,$=f.x=Je(o,this.left+u,this.right-r[f.line])):E>0&&M+w>this.bottom&&($=f.x=$+n[f.line].width+u,f.line++,M=f.y=Je(o,this.top+b+u,this.bottom-n[f.line].height));const I=l.x($);if(v(I,M,S),$=Ipt(A,$+p+h,x?$+k:this.right,e.rtl),_(l.x($),M,S),x)f.x+=k+u;else if(typeof S.text!="string"){const F=c.lineHeight;f.y+=x8(S,F)}else f.y+=w}),o8(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=$e(n.font),i=an(n.padding);if(!n.display)return;const o=xl(e.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=Je(e.align,d,this.right-h);else{const p=this.columnSizes.reduce((g,y)=>Math.max(g,y.height),0);u=c+Je(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const f=Je(a,d,d+h);s.textAlign=o.textAlign(hS(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,la(s,n.text,f,u,r)}_computeTitleHeight(){const e=this.options.title,n=$e(e.font),r=an(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,i,o;if(Fs(e,this.left,this.right)&&Fs(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],Fs(e,i.left,i.left+i.width)&&Fs(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!f0t(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,o=c0t(i,r);i&&!o&&Bt(n.onLeave,[e,i,this],this),this._hoveredItem=r,r&&!o&&Bt(n.onHover,[e,r,this],this)}else r&&Bt(n.onClick,[e,r,this],this)}}function u0t(t,e,n,r,i){const o=d0t(r,t,e,n),s=h0t(i,r,e.lineHeight);return{itemWidth:o,itemHeight:s}}function d0t(t,e,n,r){let i=t.text;return i&&typeof i!="string"&&(i=i.reduce((o,s)=>o.length>s.length?o:s)),e+n.size/2+r.measureText(i).width}function h0t(t,e,n){let r=t;return typeof e.text!="string"&&(r=x8(e,n)),r}function x8(t,e){const n=t.text?t.text.length+.5:0;return e*n}function f0t(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var b8={id:"legend",_element:J$,start(t,e,n){const r=t.legend=new J$({ctx:t.ctx,options:n,chart:t});hr.configure(t,r,n),hr.addBox(t,r)},stop(t){hr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;hr.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=an(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class w8 extends Ui{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const i=te(r.text)?r.text.length:1;this._padding=an(r.padding);const o=i*$e(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align;let l=0,c,u,d;return this.isHorizontal()?(u=Je(a,r,o),d=n+e,c=o-r):(s.position==="left"?(u=r+e,d=Je(a,i,n),l=be*-.5):(u=o-e,d=Je(a,n,i),l=be*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=$e(n.font),i=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:a,rotation:l}=this._drawArgs(i);la(e,n.text,0,0,r,{color:n.color,maxWidth:a,rotation:l,textAlign:hS(n.align),textBaseline:"middle",translation:[o,s]})}}function p0t(t,e){const n=new w8({ctx:t.ctx,options:e,chart:t});hr.configure(t,n,e),hr.addBox(t,n),t.titleBlock=n}var g0t={id:"title",_element:w8,start(t,e,n){p0t(t,n)},stop(t){const e=t.titleBlock;hr.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;hr.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const qu={average(t){if(!t.length)return!1;let e,n,r=0,i=0,o=0;for(e=0,n=t.length;e<n;++e){const s=t[e].element;if(s&&s.hasValue()){const a=s.tooltipPosition();r+=a.x,i+=a.y,++o}}return{x:r/o,y:i/o}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,i=Number.POSITIVE_INFINITY,o,s,a;for(o=0,s=t.length;o<s;++o){const l=t[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=Mpt(e,c);u<i&&(i=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Br(t,e){return e&&(te(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function vi(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
999
- `)>-1?t.split(`
1000
- `):t}function m0t(t,e){const{element:n,datasetIndex:r,index:i}=e,o=t.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:t,label:s,parsed:o.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function tM(t,e){const n=t.chart.ctx,{body:r,footer:i,title:o}=t,{boxWidth:s,boxHeight:a}=e,l=$e(e.bodyFont),c=$e(e.titleFont),u=$e(e.footerFont),d=o.length,h=i.length,f=r.length,p=an(e.padding);let g=p.height,y=0,v=r.reduce((b,w)=>b+w.before.length+w.lines.length+w.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),v){const b=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=f*b+(v-f)*l.lineHeight+(v-1)*e.bodySpacing}h&&(g+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let _=0;const x=function(b){y=Math.max(y,n.measureText(b).width+_)};return n.save(),n.font=c.string,kt(t.title,x),n.font=l.string,kt(t.beforeBody.concat(t.afterBody),x),_=e.displayColors?s+2+e.boxPadding:0,kt(r,b=>{kt(b.before,x),kt(b.lines,x),kt(b.after,x)}),_=0,n.font=u.string,kt(t.footer,x),n.restore(),y+=p.width,{width:y,height:g}}function v0t(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function y0t(t,e,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(t==="left"&&i+o+s>e.width||t==="right"&&i-o-s<0)return!0}function _0t(t,e,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return r==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=s-o/2&&(c="right"),y0t(c,t,e,n)&&(c="center"),c}function eM(t,e,n){const r=n.yAlign||e.yAlign||v0t(t,n);return{xAlign:n.xAlign||e.xAlign||_0t(t,e,n,r),yAlign:r}}function x0t(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function b0t(t,e,n){let{y:r,height:i}=t;return e==="top"?r+=n:e==="bottom"?r-=i+n:r-=i/2,r}function nM(t,e,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=t,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=qs(s);let p=x0t(e,a);const g=b0t(e,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(u,h)+i:a==="right"&&(p+=Math.max(d,f)+i),{x:Pn(p,0,r.width-e.width),y:Pn(g,0,r.height-e.height)}}function Hf(t,e,n){const r=an(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function rM(t){return Br([],vi(t))}function w0t(t,e,n){return va(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function iM(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const S8={beforeTitle:fi,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:fi,beforeBody:fi,beforeLabel:fi,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return $t(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:fi,afterBody:fi,beforeFooter:fi,footer:fi,afterFooter:fi};function bn(t,e,n,r){const i=t[e].call(n,r);return typeof i>"u"?S8[e].call(n,r):i}class Fx extends Ui{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new s8(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=w0t(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,i=bn(r,"beforeTitle",this,e),o=bn(r,"title",this,e),s=bn(r,"afterTitle",this,e);let a=[];return a=Br(a,vi(i)),a=Br(a,vi(o)),a=Br(a,vi(s)),a}getBeforeBody(e,n){return rM(bn(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,i=[];return kt(e,o=>{const s={before:[],lines:[],after:[]},a=iM(r,o);Br(s.before,vi(bn(a,"beforeLabel",this,o))),Br(s.lines,bn(a,"label",this,o)),Br(s.after,vi(bn(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(e,n){return rM(bn(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,i=bn(r,"beforeFooter",this,e),o=bn(r,"footer",this,e),s=bn(r,"afterFooter",this,e);let a=[];return a=Br(a,vi(i)),a=Br(a,vi(o)),a=Br(a,vi(s)),a}_createItems(e){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(m0t(this.chart,n[l]));return e.filter&&(a=a.filter((u,d,h)=>e.filter(u,d,h,r))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,r))),kt(a,u=>{const d=iM(e.callbacks,u);i.push(bn(d,"labelColor",this,u)),o.push(bn(d,"labelPointStyle",this,u)),s.push(bn(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(e,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=qu[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=tM(this,r),c=Object.assign({},a,l),u=eM(this.chart,r,c),d=nM(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,i){const o=this.getCaretPosition(e,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(e,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=qs(a),{x:h,y:f}=e,{width:p,height:g}=n;let y,v,_,x,b,w;return o==="center"?(b=f+g/2,i==="left"?(y=h,v=y-s,x=b+s,w=b-s):(y=h+p,v=y+s,x=b-s,w=b+s),_=y):(i==="left"?v=h+Math.max(l,u)+s:i==="right"?v=h+p-Math.max(c,d)-s:v=this.caretX,o==="top"?(x=f,b=x-s,y=v-s,_=v+s):(x=f+g,b=x+s,y=v+s,_=v-s),w=x),{x1:y,x2:v,x3:_,y1:x,y2:b,y3:w}}drawTitle(e,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const c=xl(r.rtl,this.x,this.width);for(e.x=Hf(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=$e(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<o;++l)n.fillText(i[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+a,l+1===o&&(e.y+=r.titleMarginBottom-a)}}_drawColorBox(e,n,r,i,o){const s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:c,boxPadding:u}=o,d=$e(o.bodyFont),h=Hf(this,"left",o),f=i.x(h),p=l<d.lineHeight?(d.lineHeight-l)/2:0,g=n.y+p;if(o.usePointStyle){const y={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},v=i.leftForLtr(f,c)+c/2,_=g+l/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,w$(e,y,v,_),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,w$(e,y,v,_)}else{e.lineWidth=mt(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const y=i.leftForLtr(f,c-u),v=i.leftForLtr(i.xPlus(f,1),c-u-2),_=qs(s.borderRadius);Object.values(_).some(x=>x!==0)?(e.beginPath(),e.fillStyle=o.multiKeyBackground,jd(e,{x:y,y:g,w:c,h:l,radius:_}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),jd(e,{x:v,y:g+1,w:c-2,h:l-2,radius:_}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(y,g,c,l),e.strokeRect(y,g,c,l),e.fillStyle=s.backgroundColor,e.fillRect(v,g+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=$e(r.bodyFont);let h=d.lineHeight,f=0;const p=xl(r.rtl,this.x,this.width),g=function(C){n.fillText(C,p.x(e.x+f),e.y+h/2),e.y+=h+o},y=p.textAlign(s);let v,_,x,b,w,S,E;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,e.x=Hf(this,y,r),n.fillStyle=r.bodyColor,kt(this.beforeBody,g),f=a&&y!=="right"?s==="center"?c/2+u:c+2+u:0,b=0,S=i.length;b<S;++b){for(v=i[b],_=this.labelTextColors[b],n.fillStyle=_,kt(v.before,g),x=v.lines,a&&x.length&&(this._drawColorBox(n,e,b,p,r),h=Math.max(d.lineHeight,l)),w=0,E=x.length;w<E;++w)g(x[w]),h=d.lineHeight;kt(v.after,g)}f=0,h=d.lineHeight,kt(this.afterBody,g),e.y-=o}drawFooter(e,n,r){const i=this.footer,o=i.length;let s,a;if(o){const l=xl(r.rtl,this.x,this.width);for(e.x=Hf(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=$e(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<o;++a)n.fillText(i[a],l.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+r.footerSpacing}}drawBackground(e,n,r,i){const{xAlign:o,yAlign:s}=this,{x:a,y:l}=e,{width:c,height:u}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:p}=qs(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+d,l),s==="top"&&this.drawCaret(e,n,r,i),n.lineTo(a+c-h,l),n.quadraticCurveTo(a+c,l,a+c,l+h),s==="center"&&o==="right"&&this.drawCaret(e,n,r,i),n.lineTo(a+c,l+u-p),n.quadraticCurveTo(a+c,l+u,a+c-p,l+u),s==="bottom"&&this.drawCaret(e,n,r,i),n.lineTo(a+f,l+u),n.quadraticCurveTo(a,l+u,a,l+u-f),s==="center"&&o==="left"&&this.drawCaret(e,n,r,i),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=qu[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=tM(this,e),l=Object.assign({},s,this._size),c=eM(n,e,l),u=nM(e,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=an(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=r,this.drawBackground(o,e,i,n),i8(e,n.textDirection),o.y+=s.top,this.drawTitle(o,e,n),this.drawBody(o,e,n),this.drawFooter(o,e,n),o8(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,i=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!vm(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(e,o,n,r),a=this._positionChanged(s,e),l=n||!vm(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,i){const o=this.options;if(e.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(e,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:r,caretY:i,options:o}=this,s=qu[o.position].call(this,e,n);return s!==!1&&(r!==s.x||i!==s.y)}}ct(Fx,"positioners",qu);var S0t={id:"tooltip",_element:Fx,positioners:qu,afterInit(t,e,n){n&&(t.tooltip=new Fx({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:S8},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const E0t=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function C0t(t,e,n,r){const i=t.indexOf(e);if(i===-1)return E0t(t,e,n,r);const o=t.lastIndexOf(e);return i!==o?n:i}const k0t=(t,e)=>t===null?null:Pn(Math.round(t),0,e);function E8(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Tm extends ya{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,n){if($t(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:C0t(r,e,_t(n,e),this._addedLabels),k0t(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=e===0&&n===o.length-1?o:o.slice(e,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=n;s++)i.push({value:s});return i}getLabelForValue(e){return E8.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ct(Tm,"id","category"),ct(Tm,"defaults",{ticks:{callback:E8}});function A0t(t,e){const n=[],{bounds:r,step:i,min:o,max:s,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,h=i||1,f=c-1,{min:p,max:g}=e,y=!$t(o),v=!$t(s),_=!$t(l),x=(g-p)/(u+1);let b=p$((g-p)/f/h)*h,w,S,E,C;if(b<1e-14&&!y&&!v)return[{value:p},{value:g}];C=Math.ceil(g/b)-Math.floor(p/b),C>f&&(b=p$(C*b/f/h)*h),$t(a)||(w=Math.pow(10,a),b=Math.ceil(b*w)/w),r==="ticks"?(S=Math.floor(p/b)*b,E=Math.ceil(g/b)*b):(S=p,E=g),y&&v&&i&&$pt((s-o)/i,b/1e3)?(C=Math.round(Math.min((s-o)/b,c)),b=(s-o)/C,S=o,E=s):_?(S=y?o:S,E=v?s:E,C=l-1,b=(E-S)/C):(C=(E-S)/b,Hp(C,Math.round(C),b/1e3)?C=Math.round(C):C=Math.ceil(C));const A=Math.max(g$(b),g$(S));w=Math.pow(10,$t(a)?A:a),S=Math.round(S*w)/w,E=Math.round(E*w)/w;let k=0;for(y&&(d&&S!==o?(n.push({value:o}),S<o&&k++,Hp(Math.round((S+k*b)*w)/w,o,oM(o,x,t))&&k++):S<o&&k++);k<C;++k)n.push({value:Math.round((S+k*b)*w)/w});return v&&d&&E!==s?n.length&&Hp(n[n.length-1].value,s,oM(s,x,t))?n[n.length-1].value=s:n.push({value:s}):(!v||E===s)&&n.push({value:E}),n}function oM(t,e,{horizontal:n,minRotation:r}){const i=ti(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/o,s)}class $m extends ya{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return $t(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const s=l=>i=n?i:l,a=l=>o=r?o:l;if(e){const l=Uo(i),c=Uo(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),e||s(i-l)}this.min=i,this.max=o}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=A0t(i,o);return e.bounds==="ticks"&&V9(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-n)/Math.max(e.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return sv(e,this.chart.options.locale,this.options.ticks.format)}}class Mm extends $m{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Fe(e)?e:0,this.max=Fe(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=ti(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}ct(Mm,"id","linear"),ct(Mm,"defaults",{ticks:{callback:av.formatters.numeric}});const Hd=t=>Math.floor(Ao(t)),ws=(t,e)=>Math.pow(10,Hd(t)+e);function sM(t){return t/Math.pow(10,Hd(t))===1}function aM(t,e,n){const r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function T0t(t,e){const n=e-t;let r=Hd(n);for(;aM(t,e,r)>10;)r++;for(;aM(t,e,r)<10;)r--;return Math.min(r,Hd(t))}function $0t(t,{min:e,max:n}){e=Hn(t.min,e);const r=[],i=Hd(e);let o=T0t(e,n),s=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((e-l)*s)/s,u=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,o)),h=Hn(t.min,Math.round((l+u+d*Math.pow(10,o))*s)/s);for(;h<n;)r.push({value:h,major:sM(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,s=o>=0?1:s),h=Math.round((l+u+d*Math.pow(10,o))*s)/s;const f=Hn(t.max,h);return r.push({value:f,major:sM(f),significand:d}),r}class lM extends ya{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const r=$m.prototype.parse.apply(this,[e,n]);if(r===0){this._zero=!0;return}return Fe(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Fe(e)?Math.max(0,e):null,this.max=Fe(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Fe(this._userMin)&&(this.min=e===ws(this.min,0)?ws(this.min,-1):ws(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=a=>r=e?r:a,s=a=>i=n?i:a;r===i&&(r<=0?(o(1),s(10)):(o(ws(r,-1)),s(ws(i,1)))),r<=0&&o(ws(i,-1)),i<=0&&s(ws(r,1)),this.min=r,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},r=$0t(n,this);return e.bounds==="ticks"&&V9(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":sv(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Ao(e),this._valueRange=Ao(this.max)-Ao(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Ao(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}ct(lM,"id","logarithmic"),ct(lM,"defaults",{ticks:{callback:av.formatters.logarithmic,major:{enabled:!0}}});function zx(t){const e=t.ticks;if(e.display&&t.display){const n=an(e.backdropPadding);return _t(e.font&&e.font.size,ye.font.size)+n.height}return 0}function M0t(t,e,n){return n=te(n)?n:[n],{w:Ypt(t,e.string,n),h:n.length*e.lineHeight}}function cM(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function P0t(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],i=[],o=t._pointLabels.length,s=t.options.pointLabels,a=s.centerPointLabels?be/o:0;for(let l=0;l<o;l++){const c=s.setContext(t.getPointLabelContext(l));i[l]=c.padding;const u=t.getPointPosition(l,t.drawingArea+i[l],a),d=$e(c.font),h=M0t(t.ctx,d,t._pointLabels[l]);r[l]=h;const f=Yr(t.getIndexAngle(l)+a),p=Math.round(uS(f)),g=cM(p,u.x,h.w,0,180),y=cM(p,u.y,h.h,90,270);O0t(n,e,f,g,y)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=R0t(t,r,i)}function O0t(t,e,n,r,i){const o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;r.start<e.l?(a=(e.l-r.start)/o,t.l=Math.min(t.l,e.l-a)):r.end>e.r&&(a=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),i.start<e.t?(l=(e.t-i.start)/s,t.t=Math.min(t.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function R0t(t,e,n){const r=[],i=t._pointLabels.length,o=t.options,s=zx(o)/2,a=t.drawingArea,l=o.pointLabels.centerPointLabels?be/i:0;for(let c=0;c<i;c++){const u=t.getPointPosition(c,a+s+n[c],l),d=Math.round(uS(Yr(u.angle+he))),h=e[c],f=I0t(u.y,h.h,d),p=L0t(d),g=D0t(u.x,h.w,p);r.push({x:u.x,y:f,textAlign:p,left:g,top:f,right:g+h.w,bottom:f+h.h})}return r}function L0t(t){return t===0||t===180?"center":t<180?"left":"right"}function D0t(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function I0t(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function N0t(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const o=r.setContext(t.getPointLabelContext(i)),s=$e(o.font),{x:a,y:l,textAlign:c,left:u,top:d,right:h,bottom:f}=t._pointLabelItems[i],{backdropColor:p}=o;if(!$t(p)){const g=qs(o.borderRadius),y=an(o.backdropPadding);n.fillStyle=p;const v=u-y.left,_=d-y.top,x=h-u+y.width,b=f-d+y.height;Object.values(g).some(w=>w!==0)?(n.beginPath(),jd(n,{x:v,y:_,w:x,h:b,radius:g}),n.fill()):n.fillRect(v,_,x,b)}la(n,t._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function C8(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,de);else{let o=t.getPointPosition(0,e);i.moveTo(o.x,o.y);for(let s=1;s<r;s++)o=t.getPointPosition(s,e),i.lineTo(o.x,o.y)}}function F0t(t,e,n,r,i){const o=t.ctx,s=e.circular,{color:a,lineWidth:l}=e;!s&&!r||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),C8(t,n,s,r),o.closePath(),o.stroke(),o.restore())}function z0t(t,e,n){return va(t,{label:n,index:e,type:"pointLabel"})}class Uf extends $m{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=an(zx(this.options)/2),n=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=Fe(e)&&!isNaN(e)?e:0,this.max=Fe(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/zx(this.options))}generateTickLabels(e){$m.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,r)=>{const i=Bt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?P0t(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,i))}getIndexAngle(e){const n=de/(this._pointLabels.length||1),r=this.options.startAngle||0;return Yr(e*n+ti(r))}getDistanceFromCenterForValue(e){if($t(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if($t(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const r=n[e];return z0t(this.getContext(),e,r)}}getPointPosition(e,n,r=0){const i=this.getIndexAngle(e)-he+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:r,right:i,bottom:o}=this._pointLabelItems[e];return{left:n,top:r,right:i,bottom:o}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),C8(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:r,grid:i,border:o}=n,s=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&N0t(this,s),i.display&&this.ticks.forEach((u,d)=>{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),f=i.setContext(h),p=o.setContext(h);F0t(this,f,l,s,p)}}),r.display){for(e.save(),a=s-1;a>=0;a--){const u=r.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:h}=u;!h||!d||(e.lineWidth=h,e.strokeStyle=d,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=$e(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=u.string,s=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const d=an(c.backdropPadding);e.fillRect(-s/2-d.left,-o-u.size/2-d.top,s+d.width,u.size+d.height)}la(e,a.label,0,-o,u,{color:c.color})}),e.restore()}drawTitle(){}}ct(Uf,"id","radialLinear"),ct(Uf,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:av.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),ct(Uf,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ct(Uf,"descriptors",{angleLines:{_fallback:"grid"}});const cv={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Cn=Object.keys(cv);function B0t(t,e){return t-e}function uM(t,e){if($t(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:o}=t._parseOpts;let s=e;return typeof r=="function"&&(s=r(s)),Fe(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(xm(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function dM(t,e,n,r){const i=Cn.length;for(let o=Cn.indexOf(t);o<i-1;++o){const s=cv[Cn[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(a*s.size))<=r)return Cn[o]}return Cn[i-1]}function j0t(t,e,n,r,i){for(let o=Cn.length-1;o>=Cn.indexOf(n);o--){const s=Cn[o];if(cv[s].common&&t._adapter.diff(i,r,s)>=e-1)return s}return Cn[n?Cn.indexOf(n):0]}function V0t(t){for(let e=Cn.indexOf(t)+1,n=Cn.length;e<n;++e)if(cv[Cn[e]].common)return Cn[e]}function hM(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:i}=dS(n,e),o=n[r]>=e?n[r]:n[i];t[o]=!0}}function H0t(t,e,n,r){const i=t._adapter,o=+i.startOf(e[0].value,r),s=e[e.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(e[l].major=!0);return e}function fM(t,e,n){const r=[],i={},o=e.length;let s,a;for(s=0;s<o;++s)a=e[s],i[a]=s,r.push({value:a,major:!1});return o===0||!n?r:H0t(t,r,i,n)}class Pm extends ya{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),i=this._adapter=new Ugt._date(e.adapters.date);i.init(n),Uu(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:uM(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:i,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Fe(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=Fe(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,s=this.max,a=Rpt(i,o,s);return this._unit=n.unit||(r.autoSkip?dM(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):j0t(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:V0t(this._unit),this.initOffsets(i),e.reverse&&a.reverse(),fM(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,i,o;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,o=this.getDecimalForValue(e[e.length-1]),e.length===1?r=o:r=(o-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=Pn(n,0,s),r=Pn(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||dM(o.minUnit,n,r,this._getLabelCapacity(n)),a=_t(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=xm(l)||l===!0,u={};let d=n,h,f;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":s),e.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+e.add(h,a,s),f++)hM(u,h,p);return(h===r||i.bounds==="ticks"||f===1)&&hM(u,h,p),Object.keys(u).sort((g,y)=>g-y).map(g=>+g)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const r=this.options.time.displayFormats,i=this._unit,o=n||r[i];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return Bt(s,[e,n,r],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],h=r[n],f=c&&d&&h&&h.major;return this._adapter.format(e,i||(f?d:u))}generateTickLabels(e){let n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],i.label=this._tickFormatFunction(i.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,i=ti(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*o+a*s,h:r*s+a*o}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(e,0,fM(this,[e],this._majorUnit),i),s=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)e=e.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)e.push(uM(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return W9(e.sort(B0t))}}ct(Pm,"id","time"),ct(Pm,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Wf(t,e,n){let r=0,i=t.length-1,o,s,a,l;n?(e>=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=Dx(t,"pos",e)),{pos:o,time:a}=t[r],{pos:s,time:l}=t[i]):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=Dx(t,"time",e)),{time:o,pos:a}=t[r],{time:s,pos:l}=t[i]);const c=s-o;return c?a+(l-a)*(e-o)/c:a}class pM extends Pm{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Wf(n,this.min),this._tableRange=Wf(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,i=[],o=[];let s,a,l,c,u;for(s=0,a=e.length;s<a;++s)c=e[s],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s<a;++s)u=i[s+1],l=i[s-1],c=i[s],Math.round((u+l)/2)!==c&&o.push({time:c,pos:s/(a-1)});return o}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Wf(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Wf(this._table,r*this._tableRange+this._minPos,!0)}}ct(pM,"id","timeseries"),ct(pM,"defaults",Pm.defaults);const k8="label";function gM(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function U0t(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function A8(t,e){t.labels=e}function T8(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k8;const r=[];t.datasets=e.map(i=>{const o=t.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function W0t(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k8;const n={labels:[],datasets:[]};return A8(n,t.labels),T8(n,t.datasets,e),n}function Y0t(t,e){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...h}=t,f=m.exports.useRef(null),p=m.exports.useRef(),g=()=>{!f.current||(p.current=new ar(f.current,{type:s,data:W0t(a,o),options:l&&{...l},plugins:c}),gM(e,p.current))},y=()=>{gM(e,null),p.current&&(p.current.destroy(),p.current=null)};return m.exports.useEffect(()=>{!i&&p.current&&l&&U0t(p.current,l)},[i,l]),m.exports.useEffect(()=>{!i&&p.current&&A8(p.current.config.data,a.labels)},[i,a.labels]),m.exports.useEffect(()=>{!i&&p.current&&a.datasets&&T8(p.current.config.data,a.datasets,o)},[i,a.datasets]),m.exports.useEffect(()=>{!p.current||(i?(y(),setTimeout(g)):p.current.update(d))},[i,l,a.labels,a.datasets,d]),m.exports.useEffect(()=>{!p.current||(y(),setTimeout(g))},[s]),m.exports.useEffect(()=>(g(),()=>y()),[]),at("canvas",{...Object.assign({ref:f,role:"img",height:n,width:r},h),children:u})}const G0t=m.exports.forwardRef(Y0t);function $8(t,e){return ar.register(e),m.exports.forwardRef((n,r)=>at(G0t,{...Object.assign({},n,{ref:r,type:t})}))}const q0t=$8("bar",Up),Z0t=$8("doughnut",nu),X0t=!!(typeof window<"u"&&window.document&&window.document.createElement),mM=X0t&&getComputedStyle(document.documentElement),zs=t=>()=>mM?mM.getPropertyValue(t):"",bS=N.div`
1001
- position: relative;
1002
- height: calc((100vw / 2) - ${T["--ll-spacing-medium"]});
1003
- width: 100%;
1004
- `,M8=N(q0t)`
1005
- background-color: ${T["--ll-color-surface"]};
1006
- padding: ${T["--ll-spacing-medium"]} ${T["--ll-spacing-x-large"]};
1007
- border-radius: ${T["--ll-border-radius-medium"]};
1008
- font-family: ${T["--ll-font-family"]};
1009
- `,K0t=N(Z0t)`
1010
- background-color: ${T["--ll-color-surface"]};
1011
- padding: ${T["--ll-spacing-medium"]} ${T["--ll-spacing-x-large"]};
1012
- border-radius: ${T["--ll-border-radius-medium"]};
1013
- font-family: ${T["--ll-font-family"]};
1014
- `,P8={options:{indexAxis:"y",elements:{bar:{borderWidth:0,borderRadius:4,backgroundColor:zs("--ll-color-primary")}},responsive:!0,maintainAspectRatio:!0,plugins:{legend:{display:!0,position:"bottom",align:"start",labels:{boxWidth:10}},tooltip:{enabled:!1},title:{display:!0,position:"top",align:"start",text:"Chart.js Horizontal Bar Chart",padding:{bottom:16},color:zs("--ll-color-on-background"),font:{family:zs("--ll-font-family"),weight:zs("--ll-font-weight-medium"),size:14,lineHeight:1.4}}}}};ar.register(Tm,Mm,Gu);const O8=t=>at(bS,{children:at(M8,{...eS.mergeDeep(P8,t)})}),Q0t={beforeDatasetsDraw(t){const{ctx:e,data:n,scales:{x:r,y:i}}=t;e.save(),n.datasets.map(o=>o.data[0]).forEach((o,s)=>{const a=s===0?0:t.width-30,l=t.height/2-2;e.fillText(`${o}%`,a,l)})}},J0t={...P8.options},tvt={barPercentage:.1,categoryPercentage:1,scales:{x:{max:104,stacked:!0,grid:{display:!1},border:{display:!1},ticks:{display:!1}},y:{stacked:!0,beginAtZero:!0,grid:{display:!1},border:{display:!1},ticks:{color:"transparent",padding:12}}}},evt={options:{...J0t,...tvt},plugins:[Q0t]};ar.register(Tm,Mm,Gu,g0t,b8);const nvt=t=>at(bS,{children:at(M8,{...eS.mergeDeep(evt,{data:{labels:[""]}},t)})}),rvt={id:"centerIcon",beforeDatasetsDraw(t){const{ctx:e,data:n,chartArea:{top:r,bottom:i,left:o,right:s,width:a,height:l},scales:{x:c,y:u}}=t;e.save()}},ivt={options:{cutout:180,borderWidth:0,indexAxis:"y",aspectRatio:2,elements:{},responsive:!0,maintainAspectRatio:!0,plugins:{legend:{display:!0,position:"right",align:"middle",labels:{boxWidth:10}},tooltip:{enabled:!1},title:{display:!0,position:"top",align:"start",text:"Chart.js Doughnut Chart",padding:{bottom:16},color:zs("--ll-color-on-background"),font:{family:zs("--ll-font-family"),weight:zs("--ll-font-weight-medium"),size:14,lineHeight:1.4}}}},plugins:[rvt]};ar.register(Yp,S0t,b8);const R8=t=>{const e=t.data.datasets.map(n=>({...n,backgroundColor:["rgba(0, 132, 145, 1)","rgba(62, 49, 91, 1)","rgba(151, 184, 126, 1)","rgba(249, 249, 153, 1)"]}));return at(bS,{children:at(K0t,{...eS.mergeDeep(ivt,t,{data:{datasets:e}})})})},ovt=N.div`
1015
- box-sizing: border-box;
1016
- display: block;
1017
- color: ${T["--ll-color-background"]};
1018
- background: linear-gradient(
1019
- to top,
1020
- ${T["--ll-color-primary-variant1"]},
1021
- ${T["--ll-color-primary"]}
1022
- );
1023
- padding: ${T["--ll-spacing-medium"]} ${T["--ll-spacing-x-large"]};
1024
- border-radius: ${T["--ll-border-radius-medium"]};
1025
- line-height: 1;
1026
- font-family: ${T["--ll-font-family"]};
1027
- font-size: ${T["--ll-font-size-caption-1"]};
1028
- font-weight: ${T["--ll-font-weight-normal"]};
1029
- height: 275px;
1030
- * {
1031
- box-sizing: inherit;
1032
- margin: 0;
1033
- padding: 0;
1034
- border: 0;
1035
- font-size: 100%;
1036
- font: inherit;
1037
- vertical-align: baseline;
1038
- }
1039
- `,svt=N.h1`
1040
- font-size: ${T["--ll-font-size-p"]};
1041
- margin: 0 0 ${T["--ll-spacing-xxx-large"]};
1042
- `,avt=N.ul`
1043
- font-size: ${T["--ll-font-size-h3"]};
1044
- list-style: none;
1045
- padding: 0;
1046
- margin: 0;
1047
- display: flex;
1048
- flex-flow: column;
1049
- row-gap: ${T["--ll-spacing-large"]};
1050
- `,lvt=N.li`
1051
- display: flex;
1052
- flex-flow: row wrap;
1053
- justify-content: space-between;
1054
- align-items: center;
1055
- `,cvt=N.h2`
1056
- font-size: inherit;
1057
- line-height: inherit;
1058
- font-weight: inherit;
1059
- margin: 0;
1060
- display: flex;
1061
- flex-flow: row wrap;
1062
- justify-content: flex-start;
1063
- align-items: center;
1064
- column-gap: 8px;
1065
- `,uvt=N.p`
1066
- font-size: inherit;
1067
- line-height: inherit;
1068
- font-weight: inherit;
1069
- margin: 0;
1070
- `,dvt=N.span`
1071
- width: 32px;
1072
- height: 32px;
1073
- display: flex;
1074
- flex-flow: row;
1075
- align-items: center;
1076
- justify-content: center;
1077
- `,hvt=({options:{title:t,incomeTypes:e}})=>Pi(ovt,{children:[at(svt,{children:t}),at(avt,{children:e==null?void 0:e.map(n=>Pi(lvt,{children:[Pi(cvt,{children:[at(dvt,{children:at(Kn,{SVGElement:n.SVGElement,width:32,height:32,fill:Gl.colorPrimary100})}),n.label]}),at(uvt,{children:new Intl.NumberFormat("en-EN",{style:"currency",currency:"USD"}).format(n.value)})]},n.variable))})]});function fvt(t){const e=Jo(t);m.exports.useEffect(()=>{const n=r=>{r.key==="Escape"&&e(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e])}const Bx="dismissableLayer.update",pvt="dismissableLayer.pointerDownOutside",gvt="dismissableLayer.focusOutside";let vM;const mvt=m.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),L8=m.exports.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=t,c=m.exports.useContext(mvt),[u,d]=m.exports.useState(null),[,h]=m.exports.useState({}),f=Wt(e,S=>d(S)),p=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(g),v=u?p.indexOf(u):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,x=v>=y,b=vvt(S=>{const E=S.target,C=[...c.branches].some(A=>A.contains(E));!x||C||(i==null||i(S),s==null||s(S),S.defaultPrevented||a==null||a())}),w=yvt(S=>{const E=S.target;[...c.branches].some(C=>C.contains(E))||(o==null||o(S),s==null||s(S),S.defaultPrevented||a==null||a())});return fvt(S=>{v===c.layers.size-1&&(r==null||r(S),!S.defaultPrevented&&a&&(S.preventDefault(),a()))}),m.exports.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(vM=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),yM(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=vM)}},[u,n,c]),m.exports.useEffect(()=>()=>{!u||(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),yM())},[u,c]),m.exports.useEffect(()=>{const S=()=>h({});return document.addEventListener(Bx,S),()=>document.removeEventListener(Bx,S)},[]),m.exports.createElement(Pt.div,nt({},l,{ref:f,style:{pointerEvents:_?x?"auto":"none":void 0,...t.style},onFocusCapture:Dt(t.onFocusCapture,w.onFocusCapture),onBlurCapture:Dt(t.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Dt(t.onPointerDownCapture,b.onPointerDownCapture)}))});function vvt(t){const e=Jo(t),n=m.exports.useRef(!1),r=m.exports.useRef(()=>{});return m.exports.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let a=function(){D8(pvt,e,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(document.removeEventListener("click",r.current),r.current=a,document.addEventListener("click",r.current,{once:!0})):a()}n.current=!1},o=window.setTimeout(()=>{document.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),document.removeEventListener("pointerdown",i),document.removeEventListener("click",r.current)}},[e]),{onPointerDownCapture:()=>n.current=!0}}function yvt(t){const e=Jo(t),n=m.exports.useRef(!1);return m.exports.useEffect(()=>{const r=i=>{i.target&&!n.current&&D8(gvt,e,{originalEvent:i},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[e]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function yM(){const t=new CustomEvent(Bx);document.dispatchEvent(t)}function D8(t,e,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?Sht(i,o):i.dispatchEvent(o)}let oy=0;function I8(){m.exports.useEffect(()=>{var t,e;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=n[0])!==null&&t!==void 0?t:_M()),document.body.insertAdjacentElement("beforeend",(e=n[1])!==null&&e!==void 0?e:_M()),oy++,()=>{oy===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),oy--}},[])}function _M(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}const sy="focusScope.autoFocusOnMount",ay="focusScope.autoFocusOnUnmount",xM={bubbles:!1,cancelable:!0},N8=m.exports.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=t,[a,l]=m.exports.useState(null),c=Jo(i),u=Jo(o),d=m.exports.useRef(null),h=Wt(e,g=>l(g)),f=m.exports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.exports.useEffect(()=>{if(r){let g=function(v){if(f.paused||!a)return;const _=v.target;a.contains(_)?d.current=_:Ts(d.current,{select:!0})},y=function(v){f.paused||!a||a.contains(v.relatedTarget)||Ts(d.current,{select:!0})};return document.addEventListener("focusin",g),document.addEventListener("focusout",y),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y)}}},[r,a,f.paused]),m.exports.useEffect(()=>{if(a){wM.add(f);const g=document.activeElement;if(!a.contains(g)){const y=new CustomEvent(sy,xM);a.addEventListener(sy,c),a.dispatchEvent(y),y.defaultPrevented||(_vt(Evt(F8(a)),{select:!0}),document.activeElement===g&&Ts(a))}return()=>{a.removeEventListener(sy,c),setTimeout(()=>{const y=new CustomEvent(ay,xM);a.addEventListener(ay,u),a.dispatchEvent(y),y.defaultPrevented||Ts(g!=null?g:document.body,{select:!0}),a.removeEventListener(ay,u),wM.remove(f)},0)}}},[a,c,u,f]);const p=m.exports.useCallback(g=>{if(!n&&!r||f.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(y&&v){const _=g.currentTarget,[x,b]=xvt(_);x&&b?!g.shiftKey&&v===b?(g.preventDefault(),n&&Ts(x,{select:!0})):g.shiftKey&&v===x&&(g.preventDefault(),n&&Ts(b,{select:!0})):v===_&&g.preventDefault()}},[n,r,f.paused]);return m.exports.createElement(Pt.div,nt({tabIndex:-1},s,{ref:h,onKeyDown:p}))});function _vt(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Ts(r,{select:e}),document.activeElement!==n)return}function xvt(t){const e=F8(t),n=bM(e,t),r=bM(e.reverse(),t);return[n,r]}function F8(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function bM(t,e){for(const n of t)if(!bvt(n,{upTo:e}))return n}function bvt(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function wvt(t){return t instanceof HTMLInputElement&&"select"in t}function Ts(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&wvt(t)&&e&&t.select()}}const wM=Svt();function Svt(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=SM(t,e),t.unshift(e)},remove(e){var n;t=SM(t,e),(n=t[0])===null||n===void 0||n.resume()}}}function SM(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function Evt(t){return t.filter(e=>e.tagName!=="A")}const z8=m.exports.forwardRef((t,e)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=t;return r?JO.createPortal(m.exports.createElement(Pt.div,nt({},i,{ref:e})),r):null}),Cvt=m.exports.forwardRef((t,e)=>m.exports.createElement(Pt.span,nt({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})));var kvt=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Pa=new WeakMap,Yf=new WeakMap,Gf={},ly=0,Avt=function(t,e,n,r){var i=Array.isArray(t)?t:[t];Gf[n]||(Gf[n]=new WeakMap);var o=Gf[n],s=[],a=new Set,l=new Set(i),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else{var f=h.getAttribute(r),p=f!==null&&f!=="false",g=(Pa.get(h)||0)+1,y=(o.get(h)||0)+1;Pa.set(h,g),o.set(h,y),s.push(h),g===1&&p&&Yf.set(h,!0),y===1&&h.setAttribute(n,"true"),p||h.setAttribute(r,"true")}})};return u(e),a.clear(),ly++,function(){s.forEach(function(d){var h=Pa.get(d)-1,f=o.get(d)-1;Pa.set(d,h),o.set(d,f),h||(Yf.has(d)||d.removeAttribute(r),Yf.delete(d)),f||d.removeAttribute(n)}),ly--,ly||(Pa=new WeakMap,Pa=new WeakMap,Yf=new WeakMap,Gf={})}},B8=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=e||kvt(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Avt(r,i,n,"aria-hidden")):function(){return null}},Xr=function(){return Xr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Xr.apply(this,arguments)};function j8(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Tvt(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var Gp="right-scroll-bar-position",qp="width-before-scroll-bar",$vt="with-scroll-bars-hidden",Mvt="--removed-body-scroll-bar-size";function Pvt(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Ovt(t,e){var n=m.exports.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}function Rvt(t,e){return Ovt(e||null,function(n){return t.forEach(function(r){return Pvt(r,n)})})}function Lvt(t){return t}function Dvt(t,e){e===void 0&&(e=Lvt);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(o){var s=e(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var u=s;s=[],u.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return i}function Ivt(t){t===void 0&&(t={});var e=Dvt(null);return e.options=Xr({async:!0,ssr:!1},t),e}var V8=function(t){var e=t.sideCar,n=j8(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return at(r,{...Xr({},n)})};V8.isSideCarExport=!0;function Nvt(t,e){return t.useMedium(e),V8}var H8=Ivt(),cy=function(){},uv=m.exports.forwardRef(function(t,e){var n=m.exports.useRef(null),r=m.exports.useState({onScrollCapture:cy,onWheelCapture:cy,onTouchMoveCapture:cy}),i=r[0],o=r[1],s=t.forwardProps,a=t.children,l=t.className,c=t.removeScrollBar,u=t.enabled,d=t.shards,h=t.sideCar,f=t.noIsolation,p=t.inert,g=t.allowPinchZoom,y=t.as,v=y===void 0?"div":y,_=j8(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=h,b=Rvt([n,e]),w=Xr(Xr({},_),i);return Pi(Z2,{children:[u&&at(x,{sideCar:H8,removeScrollBar:c,shards:d,noIsolation:f,inert:p,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),s?m.exports.cloneElement(m.exports.Children.only(a),Xr(Xr({},w),{ref:b})):at(v,{...Xr({},w,{className:l,ref:b}),children:a})]})});uv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};uv.classNames={fullWidth:qp,zeroRight:Gp};var Fvt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zvt(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Fvt();return e&&t.setAttribute("nonce",e),t}function Bvt(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function jvt(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Vvt=function(){var t=0,e=null;return{add:function(n){t==0&&(e=zvt())&&(Bvt(e,n),jvt(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Hvt=function(){var t=Vvt();return function(e,n){m.exports.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},U8=function(){var t=Hvt(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},Uvt={left:0,top:0,right:0,gap:0},uy=function(t){return parseInt(t||"",10)||0},Wvt=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[uy(n),uy(r),uy(i)]},Yvt=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Uvt;var e=Wvt(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},Gvt=U8(),qvt=function(t,e,n,r){var i=t.left,o=t.top,s=t.right,a=t.gap;return n===void 0&&(n="margin"),`
1078
- .`.concat($vt,` {
1079
- overflow: hidden `).concat(r,`;
1080
- padding-right: `).concat(a,"px ").concat(r,`;
1081
- }
1082
- body {
1083
- overflow: hidden `).concat(r,`;
1084
- overscroll-behavior: contain;
1085
- `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
1086
- padding-left: `.concat(i,`px;
1087
- padding-top: `).concat(o,`px;
1088
- padding-right: `).concat(s,`px;
1089
- margin-left:0;
1090
- margin-top:0;
1091
- margin-right: `).concat(a,"px ").concat(r,`;
1092
- `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
1093
- }
1094
-
1095
- .`).concat(Gp,` {
1096
- right: `).concat(a,"px ").concat(r,`;
1097
- }
1098
-
1099
- .`).concat(qp,` {
1100
- margin-right: `).concat(a,"px ").concat(r,`;
1101
- }
1102
-
1103
- .`).concat(Gp," .").concat(Gp,` {
1104
- right: 0 `).concat(r,`;
1105
- }
1106
-
1107
- .`).concat(qp," .").concat(qp,` {
1108
- margin-right: 0 `).concat(r,`;
1109
- }
1110
-
1111
- body {
1112
- `).concat(Mvt,": ").concat(a,`px;
1113
- }
1114
- `)},Zvt=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r,o=m.exports.useMemo(function(){return Yvt(i)},[i]);return at(Gvt,{styles:qvt(o,!e,i,n?"":"!important")})},jx=!1;if(typeof window<"u")try{var qf=Object.defineProperty({},"passive",{get:function(){return jx=!0,!0}});window.addEventListener("test",qf,qf),window.removeEventListener("test",qf,qf)}catch(t){jx=!1}var Oa=jx?{passive:!1}:!1,Xvt=function(t){var e=window.getComputedStyle(t);return e.overflowY!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowY==="visible")},Kvt=function(t){var e=window.getComputedStyle(t);return e.overflowX!=="hidden"&&!(e.overflowY===e.overflowX&&e.overflowX==="visible")},EM=function(t,e){var n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=W8(t,n);if(r){var i=Y8(t,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Qvt=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},Jvt=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},W8=function(t,e){return t==="v"?Xvt(e):Kvt(e)},Y8=function(t,e){return t==="v"?Qvt(e):Jvt(e)},t1t=function(t,e){return t==="h"&&e==="rtl"?-1:1},e1t=function(t,e,n,r,i){var o=t1t(t,window.getComputedStyle(e).direction),s=o*r,a=n.target,l=e.contains(a),c=!1,u=s>0,d=0,h=0;do{var f=Y8(t,a),p=f[0],g=f[1],y=f[2],v=g-y-o*p;(p||v)&&W8(t,a)&&(d+=v,h+=p),a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(u&&(i&&d===0||!i&&s>d)||!u&&(i&&h===0||!i&&-s>h))&&(c=!0),c},Zf=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},CM=function(t){return[t.deltaX,t.deltaY]},kM=function(t){return t&&"current"in t?t.current:t},n1t=function(t,e){return t[0]===e[0]&&t[1]===e[1]},r1t=function(t){return`
1115
- .block-interactivity-`.concat(t,` {pointer-events: none;}
1116
- .allow-interactivity-`).concat(t,` {pointer-events: all;}
1117
- `)},i1t=0,Ra=[];function o1t(t){var e=m.exports.useRef([]),n=m.exports.useRef([0,0]),r=m.exports.useRef(),i=m.exports.useState(i1t++)[0],o=m.exports.useState(function(){return U8()})[0],s=m.exports.useRef(t);m.exports.useEffect(function(){s.current=t},[t]),m.exports.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var g=Tvt([t.lockRef.current],(t.shards||[]).map(kM),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=m.exports.useCallback(function(g,y){if("touches"in g&&g.touches.length===2)return!s.current.allowPinchZoom;var v=Zf(g),_=n.current,x="deltaX"in g?g.deltaX:_[0]-v[0],b="deltaY"in g?g.deltaY:_[1]-v[1],w,S=g.target,E=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in g&&E==="h"&&S.type==="range")return!1;var C=EM(E,S);if(!C)return!0;if(C?w=E:(w=E==="v"?"h":"v",C=EM(E,S)),!C)return!1;if(!r.current&&"changedTouches"in g&&(x||b)&&(r.current=w),!w)return!0;var A=r.current||w;return e1t(A,y,g,A==="h"?x:b,!0)},[]),l=m.exports.useCallback(function(g){var y=g;if(!(!Ra.length||Ra[Ra.length-1]!==o)){var v="deltaY"in y?CM(y):Zf(y),_=e.current.filter(function(w){return w.name===y.type&&w.target===y.target&&n1t(w.delta,v)})[0];if(_&&_.should){y.preventDefault();return}if(!_){var x=(s.current.shards||[]).map(kM).filter(Boolean).filter(function(w){return w.contains(y.target)}),b=x.length>0?a(y,x[0]):!s.current.noIsolation;b&&y.preventDefault()}}},[]),c=m.exports.useCallback(function(g,y,v,_){var x={name:g,delta:y,target:v,should:_};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(b){return b!==x})},1)},[]),u=m.exports.useCallback(function(g){n.current=Zf(g),r.current=void 0},[]),d=m.exports.useCallback(function(g){c(g.type,CM(g),g.target,a(g,t.lockRef.current))},[]),h=m.exports.useCallback(function(g){c(g.type,Zf(g),g.target,a(g,t.lockRef.current))},[]);m.exports.useEffect(function(){return Ra.push(o),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Oa),document.addEventListener("touchmove",l,Oa),document.addEventListener("touchstart",u,Oa),function(){Ra=Ra.filter(function(g){return g!==o}),document.removeEventListener("wheel",l,Oa),document.removeEventListener("touchmove",l,Oa),document.removeEventListener("touchstart",u,Oa)}},[]);var f=t.removeScrollBar,p=t.inert;return Pi(Z2,{children:[p?at(o,{styles:r1t(i)}):null,f?at(Zvt,{gapMode:"margin"}):null]})}const s1t=Nvt(H8,o1t);var G8=m.exports.forwardRef(function(t,e){return at(uv,{...Xr({},t,{ref:e,sideCar:s1t})})});G8.classNames=uv.classNames;const q8=G8,a1t=[" ","Enter","ArrowUp","ArrowDown"],l1t=[" ","Enter"],dv="Select",[hv,wS,c1t]=E9(dv),[xh,u1t]=fc(dv,[c1t]),[d1t,pc]=xh(dv),[h1t,f1t]=xh(dv),Z8=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:i,onOpenChange:o,value:s,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:d}=t,[h,f]=m.exports.useState(null),[p,g]=m.exports.useState(null),[y,v]=m.exports.useState(!1),_=S9(c),[x=!1,b]=Fd({prop:r,defaultProp:i,onChange:o}),[w,S]=Fd({prop:s,defaultProp:a,onChange:l}),E=m.exports.useRef(null),C=h?Boolean(h.closest("form")):!0,[A,k]=m.exports.useState(new Set),$=Array.from(A).map(M=>M.props.value).join(";");return m.exports.createElement(d1t,{scope:e,trigger:h,onTriggerChange:f,valueNode:p,onValueNodeChange:g,valueNodeHasChildren:y,onValueNodeHasChildrenChange:v,contentId:gh(),value:w,onValueChange:S,open:x,onOpenChange:b,dir:_,triggerPointerDownPosRef:E},m.exports.createElement(hv.Provider,{scope:e},m.exports.createElement(h1t,{scope:t.__scopeSelect,onNativeOptionAdd:m.exports.useCallback(M=>{k(I=>new Set(I).add(M))},[]),onNativeOptionRemove:m.exports.useCallback(M=>{k(I=>{const F=new Set(I);return F.delete(M),F})},[])},n)),C?m.exports.createElement(hN,{key:$,"aria-hidden":!0,tabIndex:-1,name:u,autoComplete:d,value:w,onChange:M=>S(M.target.value)},Array.from(A)):null)},p1t="SelectTrigger",X8=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,"aria-labelledby":i,...o}=t,s=pc(p1t,n),a=Wt(e,s.onTriggerChange),l=wS(n),c=_9(s.trigger),u=i||c,[d,h,f]=fN(g=>{const y=l().filter(x=>!x.disabled),v=y.find(x=>x.value===s.value),_=pN(y,g,v);_!==void 0&&s.onValueChange(_.value)}),p=()=>{r||(s.onOpenChange(!0),f())};return m.exports.createElement(Pt.button,nt({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-autocomplete":"none","aria-labelledby":u,dir:s.dir,"data-state":s.open?"open":"closed",disabled:r,"data-disabled":r?"":void 0,"data-placeholder":s.value===void 0?"":void 0},o,{ref:a,onPointerDown:Dt(o.onPointerDown,g=>{g.target.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(p(),s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:Dt(o.onKeyDown,g=>{const y=d.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(y&&g.key===" ")&&a1t.includes(g.key)&&(p(),g.preventDefault())})}))}),g1t="SelectValue",K8=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s,...a}=t,l=pc(g1t,n),{onValueNodeHasChildrenChange:c}=l,u=o!==void 0,d=Wt(e,l.onValueNodeChange);return Nn(()=>{c(u)},[c,u]),m.exports.createElement(Pt.span,nt({},a,{ref:d,style:{pointerEvents:"none"}}),l.value===void 0&&s!==void 0?s:o)}),fv=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...i}=t;return m.exports.createElement(Pt.span,nt({"aria-hidden":!0},i,{ref:e}),r||"\u25BC")}),Q8=t=>m.exports.createElement(z8,nt({asChild:!0},t)),SS="SelectContent",J8=m.exports.forwardRef((t,e)=>{const n=pc(SS,t.__scopeSelect),[r,i]=m.exports.useState();return Nn(()=>{i(new DocumentFragment)},[]),m.exports.createElement(m.exports.Fragment,null,n.open?m.exports.createElement(m1t,nt({},t,{ref:e})):r?zn.exports.createPortal(m.exports.createElement(tN,{scope:t.__scopeSelect},m.exports.createElement(hv.Slot,{scope:t.__scopeSelect},m.exports.createElement("div",null,t.children))),r):null)}),ao=10,[tN,gc]=xh(SS),m1t=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,onCloseAutoFocus:r,...i}=t,o=pc(SS,n),[s,a]=m.exports.useState(null),[l,c]=m.exports.useState(null),[u,d]=m.exports.useState(null),h=Wt(e,P=>c(P)),[f,p]=m.exports.useState(null),[g,y]=m.exports.useState(null),v=wS(n),[_,x]=m.exports.useState(!1),b=m.exports.useRef(!0),w=m.exports.useRef(!1),S=m.exports.useRef(!1);m.exports.useEffect(()=>{if(l)return B8(l)},[l]),I8();const[E,C]=m.exports.useState();Nn(()=>{l&&C(window.getComputedStyle(l).zIndex)},[l]);const A=m.exports.useCallback(P=>{const[G,...U]=v().map(j=>j.ref.current),[B]=U.slice(-1),R=document.activeElement;for(const j of P)if(j===R||(j==null||j.scrollIntoView({block:"nearest"}),j===G&&u&&(u.scrollTop=0),j===B&&u&&(u.scrollTop=u.scrollHeight),j==null||j.focus(),document.activeElement!==R))return},[v,u]),k=m.exports.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&l&&u&&f&&g){const P=o.trigger.getBoundingClientRect(),G=l.getBoundingClientRect(),U=o.valueNode.getBoundingClientRect(),B=g.getBoundingClientRect();if(o.dir!=="rtl"){const Ot=B.left-G.left,pe=U.left-Ot,br=P.left-pe,cn=P.width+br,us=Math.max(cn,G.width),ds=window.innerWidth-ao,hs=Px(pe,[ao,ds-us]);s.style.minWidth=cn+"px",s.style.left=hs+"px"}else{const Ot=G.right-B.right,pe=window.innerWidth-U.right-Ot,br=window.innerWidth-P.right-pe,cn=P.width+br,us=Math.max(cn,G.width),ds=window.innerWidth-ao,hs=Px(pe,[ao,ds-us]);s.style.minWidth=cn+"px",s.style.right=hs+"px"}const R=v(),j=window.innerHeight-ao*2,K=u.scrollHeight,it=window.getComputedStyle(l),Yt=parseInt(it.borderTopWidth,10),fe=parseInt(it.paddingTop,10),tr=parseInt(it.borderBottomWidth,10),xr=parseInt(it.paddingBottom,10),ln=Yt+fe+K+xr+tr,Nr=Math.min(f.offsetHeight*5,ln),er=window.getComputedStyle(u),st=parseInt(er.paddingTop,10),ee=parseInt(er.paddingBottom,10),tt=P.top+P.height/2-ao,wt=j-tt,Gt=f.offsetHeight/2,Ee=f.offsetTop+Gt,_n=Yt+fe+Ee,xc=ln-_n;if(_n<=tt){const Ot=f===R[R.length-1].ref.current;s.style.bottom="0px";const pe=l.clientHeight-u.offsetTop-u.offsetHeight,br=Math.max(wt,Gt+(Ot?ee:0)+pe+tr),cn=_n+br;s.style.height=cn+"px"}else{const Ot=f===R[0].ref.current;s.style.top="0px";const pe=Math.max(tt,Yt+u.offsetTop+(Ot?st:0)+Gt)+xc;s.style.height=pe+"px",u.scrollTop=_n-tt+u.offsetTop}s.style.margin=`${ao}px 0`,s.style.minHeight=Nr+"px",s.style.maxHeight=j+"px",x(!0),requestAnimationFrame(()=>w.current=!0)}},[v,o.trigger,o.valueNode,s,l,u,f,g,o.dir]);Nn(()=>k(),[k]);const $=m.exports.useCallback(()=>A([f,l]),[A,f,l]);m.exports.useEffect(()=>{_&&$()},[_,$]);const M=m.exports.useCallback(P=>{P&&b.current===!0&&(k(),$(),b.current=!1)},[k,$]),{onOpenChange:I,triggerPointerDownPosRef:F}=o;m.exports.useEffect(()=>{if(l){let P={x:0,y:0};const G=B=>{var R,j,K,it;P={x:Math.abs(Math.round(B.pageX)-((R=(j=F.current)===null||j===void 0?void 0:j.x)!==null&&R!==void 0?R:0)),y:Math.abs(Math.round(B.pageY)-((K=(it=F.current)===null||it===void 0?void 0:it.y)!==null&&K!==void 0?K:0))}},U=B=>{P.x<=10&&P.y<=10?B.preventDefault():l.contains(B.target)||I(!1),document.removeEventListener("pointermove",G),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",U,{capture:!0})}}},[l,I,F]),m.exports.useEffect(()=>{const P=()=>I(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[I]);const[L,Y]=fN(P=>{const G=v().filter(R=>!R.disabled),U=G.find(R=>R.ref.current===document.activeElement),B=pN(G,P,U);B&&setTimeout(()=>B.ref.current.focus())}),X=m.exports.useCallback((P,G,U)=>{const B=!S.current&&!U;(o.value!==void 0&&o.value===G||B)&&(p(P),B&&(S.current=!0))},[o.value]),z=m.exports.useCallback(()=>l==null?void 0:l.focus(),[l]),W=m.exports.useCallback((P,G,U)=>{const B=!S.current&&!U;(o.value!==void 0&&o.value===G||B)&&y(P)},[o.value]);return m.exports.createElement(tN,{scope:n,contentWrapper:s,content:l,viewport:u,onViewportChange:d,itemRefCallback:X,selectedItem:f,onItemLeave:z,itemTextRefCallback:W,selectedItemText:g,onScrollButtonChange:M,isPositioned:_,shouldExpandOnScrollRef:w,searchRef:L},m.exports.createElement(q8,{as:ql,allowPinchZoom:!0},m.exports.createElement("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E}},m.exports.createElement(N8,{asChild:!0,trapped:o.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:Dt(r,P=>{var G;(G=o.trigger)===null||G===void 0||G.focus({preventScroll:!0}),P.preventDefault()})},m.exports.createElement(L8,nt({role:"listbox",id:o.contentId,"data-state":o.open?"open":"closed",dir:o.dir,onContextMenu:P=>P.preventDefault()},i,{ref:h,style:{display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none",...i.style},disableOutsidePointerEvents:!0,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>o.onOpenChange(!1),onKeyDown:Dt(i.onKeyDown,P=>{const G=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!G&&P.key.length===1&&Y(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let U=v().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(P.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const B=P.target,R=U.indexOf(B);U=U.slice(R+1)}setTimeout(()=>A(U)),P.preventDefault()}})}))))))}),v1t="SelectViewport",eN=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=gc(v1t,n),o=Wt(e,i.onViewportChange),s=m.exports.useRef(0);return m.exports.createElement(m.exports.Fragment,null,m.exports.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),m.exports.createElement(hv.Slot,{scope:n},m.exports.createElement(Pt.div,nt({"data-radix-select-viewport":"",role:"presentation"},r,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Dt(r.onScroll,a=>{const l=a.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:u}=i;if(u!=null&&u.current&&c){const d=Math.abs(s.current-l.scrollTop);if(d>0){const h=window.innerHeight-ao*2,f=parseFloat(c.style.minHeight),p=parseFloat(c.style.height),g=Math.max(f,p);if(g<h){const y=g+d,v=Math.min(h,y),_=y-v;c.style.height=v+"px",c.style.bottom==="0px"&&(l.scrollTop=_>0?_:0,c.style.justifyContent="flex-end")}}}s.current=l.scrollTop})}))))}),y1t="SelectGroup",[_1t,x1t]=xh(y1t),nN=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=gh();return m.exports.createElement(_1t,{scope:n,id:i},m.exports.createElement(Pt.div,nt({role:"group","aria-labelledby":i},r,{ref:e})))}),b1t="SelectLabel",rN=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=x1t(b1t,n);return m.exports.createElement(Pt.div,nt({id:i.id},r,{ref:e}))}),Vx="SelectItem",[w1t,iN]=xh(Vx),oN=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=t,a=pc(Vx,n),l=gc(Vx,n),c=a.value===r,[u,d]=m.exports.useState(o!=null?o:""),[h,f]=m.exports.useState(!1),p=Wt(e,v=>{var _;return(_=l.itemRefCallback)===null||_===void 0?void 0:_.call(l,v,r,i)}),g=gh(),y=()=>{i||(a.onValueChange(r),a.onOpenChange(!1))};return m.exports.createElement(w1t,{scope:n,value:r,disabled:i,textId:g,isSelected:c,onItemTextChange:m.exports.useCallback(v=>{d(_=>{var x;return _||((x=v==null?void 0:v.textContent)!==null&&x!==void 0?x:"").trim()})},[])},m.exports.createElement(hv.ItemSlot,{scope:n,value:r,disabled:i,textValue:u},m.exports.createElement(Pt.div,nt({role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},s,{ref:p,onFocus:Dt(s.onFocus,()=>f(!0)),onBlur:Dt(s.onBlur,()=>f(!1)),onPointerUp:Dt(s.onPointerUp,y),onPointerMove:Dt(s.onPointerMove,v=>{if(i){var _;(_=l.onItemLeave)===null||_===void 0||_.call(l)}else v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Dt(s.onPointerLeave,v=>{if(v.currentTarget===document.activeElement){var _;(_=l.onItemLeave)===null||_===void 0||_.call(l)}}),onKeyDown:Dt(s.onKeyDown,v=>{var _;((_=l.searchRef)===null||_===void 0?void 0:_.current)!==""&&v.key===" "||(l1t.includes(v.key)&&y(),v.key===" "&&v.preventDefault())})}))))}),Xf="SelectItemText",sN=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,...o}=t,s=pc(Xf,n),a=gc(Xf,n),l=iN(Xf,n),c=f1t(Xf,n),[u,d]=m.exports.useState(null),h=Wt(e,v=>d(v),l.onItemTextChange,v=>{var _;return(_=a.itemTextRefCallback)===null||_===void 0?void 0:_.call(a,v,l.value,l.disabled)}),f=u==null?void 0:u.textContent,p=m.exports.useMemo(()=>m.exports.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},f),[l.disabled,l.value,f]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=c;return Nn(()=>(g(p),()=>y(p)),[g,y,p]),m.exports.createElement(m.exports.Fragment,null,m.exports.createElement(Pt.span,nt({id:l.textId},o,{ref:h})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?zn.exports.createPortal(o.children,s.valueNode):null)}),S1t="SelectItemIndicator",aN=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return iN(S1t,n).isSelected?m.exports.createElement(Pt.span,nt({"aria-hidden":!0},r,{ref:e})):null}),E1t="SelectScrollUpButton",lN=m.exports.forwardRef((t,e)=>{const n=gc(E1t,t.__scopeSelect),[r,i]=m.exports.useState(!1),o=Wt(e,n.onScrollButtonChange);return Nn(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=a.scrollTop>0;i(l)};const a=n.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?m.exports.createElement(uN,nt({},t,{ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop-a.offsetHeight)}})):null}),C1t="SelectScrollDownButton",cN=m.exports.forwardRef((t,e)=>{const n=gc(C1t,t.__scopeSelect),[r,i]=m.exports.useState(!1),o=Wt(e,n.onScrollButtonChange);return Nn(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=a.scrollHeight-a.clientHeight,c=Math.ceil(a.scrollTop)<l;i(c)};const a=n.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?m.exports.createElement(uN,nt({},t,{ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop+a.offsetHeight)}})):null}),uN=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=t,o=gc("SelectScrollButton",n),s=m.exports.useRef(null),a=wS(n),l=m.exports.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return m.exports.useEffect(()=>()=>l(),[l]),Nn(()=>{var c;const u=a().find(d=>d.ref.current===document.activeElement);u==null||(c=u.ref.current)===null||c===void 0||c.scrollIntoView({block:"nearest"})},[a]),m.exports.createElement(Pt.div,nt({"aria-hidden":!0},i,{ref:e,style:{flexShrink:0,...i.style},onPointerMove:Dt(i.onPointerMove,()=>{var c;(c=o.onItemLeave)===null||c===void 0||c.call(o),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Dt(i.onPointerLeave,()=>{l()})}))}),dN=m.exports.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return m.exports.createElement(Pt.div,nt({"aria-hidden":!0},r,{ref:e}))}),hN=m.exports.forwardRef((t,e)=>{const{value:n,...r}=t,i=m.exports.useRef(null),o=Wt(e,i),s=Q2(n);return m.exports.useEffect(()=>{const a=i.current,l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&c){const u=new Event("change",{bubbles:!0});c.call(a,n),a.dispatchEvent(u)}},[s,n]),m.exports.createElement(Cvt,{asChild:!0},m.exports.createElement("select",nt({},r,{ref:o,defaultValue:n})))});hN.displayName="BubbleSelect";function fN(t){const e=Jo(t),n=m.exports.useRef(""),r=m.exports.useRef(0),i=m.exports.useCallback(s=>{const a=n.current+s;e(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[e]),o=m.exports.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return m.exports.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function pN(t,e,n){const r=e.length>1&&Array.from(e).every(a=>a===e[0])?e[0]:e,i=n?t.indexOf(n):-1;let o=k1t(t,Math.max(i,0));r.length===1&&(o=o.filter(a=>a!==n));const s=o.find(a=>a.textValue.toLowerCase().startsWith(r.toLowerCase()));return s!==n?s:void 0}function k1t(t,e){return t.map((n,r)=>t[(e+r)%t.length])}const A1t=Z8,gN=X8,T1t=K8,$1t=fv,mN=Q8,vN=J8,yN=eN,M1t=nN,P1t=rN,_N=oN,xN=sN,bN=aN,O1t=lN,R1t=cN,L1t=dN,D1t=Object.freeze(Object.defineProperty({__proto__:null,createSelectScope:u1t,Select:Z8,SelectTrigger:X8,SelectValue:K8,SelectIcon:fv,SelectPortal:Q8,SelectContent:J8,SelectViewport:eN,SelectGroup:nN,SelectLabel:rN,SelectItem:oN,SelectItemText:sN,SelectItemIndicator:aN,SelectScrollUpButton:lN,SelectScrollDownButton:cN,SelectSeparator:dN,Root:A1t,Trigger:gN,Value:T1t,Icon:$1t,Portal:mN,Content:vN,Viewport:yN,Group:M1t,Label:P1t,Item:_N,ItemText:xN,ItemIndicator:bN,ScrollUpButton:O1t,ScrollDownButton:R1t,Separator:L1t},Symbol.toStringTag,{value:"Module"})),I1t=t=>H("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:H("g",{clipPath:"url(#clip0_17_2062)",children:H("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"})})}),N1t=t=>H("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:H("g",{clipPath:"url(#clip0_17_4631)",children:H("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"})})}),wN=N(gN)`
1118
- display: inline-flex;
1119
- align-items: center;
1120
- justify-content: space-between;
1121
- background-color: ${T["--ll-color-background"]};
1122
- border-radius: ${T["--ll-border-radius-small"]};
1123
- border: 1px solid ${T["--ll-color-border"]};
1124
- color: ${T["--ll-color-on-background-variant1"]};
1125
- padding: ${T["--ll-spacing-xx-small"]} ${T["--ll-spacing-x-small"]}
1126
- ${T["--ll-spacing-xx-small"]} ${T["--ll-spacing-small"]};
1127
- flex: 1;
1128
- height: ${({size:t})=>t==="medium"?"32px":"40px"};
1129
- font-size: ${({size:t})=>t==="medium"?T["--ll-font-size-p"]:T["--ll-font-size-h6"]};
1130
- `,F1t=N(fv)`
1131
- margin-left: ${T["--ll-spacing-x-small"]};
1132
- `,SN=N(vN)`
1133
- overflow: hidden;
1134
- background-color: ${T["--ll-color-background"]};
1135
- border-radius: ${T["--ll-border-radius-small"]};
1136
- box-shadow: ${T["--ll-shadow-medium"]};
1137
- min-width: 120px;
1138
- z-index: 2;
1139
- font-size: ${({size:t})=>t==="medium"?T["--ll-font-size-p"]:T["--ll-font-size-h6"]};
1140
- `,EN=N(_N)`
1141
- font-family: ${T["--ll-font-family"]};
1142
- font-size: inherit;
1143
- padding: ${T["--ll-spacing-xx-small"]} ${T["--ll-spacing-x-large"]}
1144
- ${T["--ll-spacing-xx-small"]} ${T["--ll-spacing-large"]};
1145
- outline: none;
1146
- border-radius: ${T["--ll-border-radius-small"]};
1147
- position: relative;
1148
- color: ${T["--ll-color-on-surface-variant1"]};
1149
- cursor: default;
1150
-
1151
- &[data-highlighted] {
1152
- background-color: ${T["--ll-color-primary"]};
1153
- color: ${T["--ll-color-on-primary"]};
1154
- }
1155
- `,CN=N(bN)`
1156
- position: absolute;
1157
- left: 0;
1158
- height: 100%;
1159
- left: 0;
1160
- bottom: 0;
1161
- width: ${T["--ll-spacing-large"]};
1162
- display: inline-flex;
1163
- align-items: center;
1164
- justify-content: center;
1165
- `,kN=N(yN)`
1166
- font-size: inherit;
1167
- padding: ${T["--ll-spacing-base-unit"]};
1168
- `,z1t=N(mN)`
1169
- z-index: 1;
1170
- `,B1t=Object.freeze(Object.defineProperty({__proto__:null,Trigger:wN,SelectIcon:F1t,Content:SN,Item:EN,ItemIndicator:CN,Viewport:kN,Portal:z1t},Symbol.toStringTag,{value:"Module"})),j1t=({size:t="medium",children:e,...n})=>Pi(wN,{size:t,...n,children:[e,at(fv,{children:at(Kn,{SVGElement:I1t,fill:T["--ll-color-on-background-variant1"],height:20})})]}),V1t=({size:t="medium",children:e,...n})=>at(SN,{size:t,...n,children:at(kN,{children:e})}),H1t=({children:t,...e})=>Pi(EN,{...e,children:[at(xN,{children:t}),at(CN,{children:at(Kn,{SVGElement:N1t,fill:"currentColor",height:12})})]}),{Root:U1t}=D1t,{Portal:W1t}=B1t,Kf=Object.freeze(Object.defineProperty({__proto__:null,Root:U1t,Trigger:j1t,Content:V1t,Item:H1t,Portal:W1t},Symbol.toStringTag,{value:"Module"}));function mc(t){return t.split("-")[0]}function pv(t){return t.split("-")[1]}function vc(t){return["top","bottom"].includes(mc(t))?"x":"y"}function ES(t){return t==="y"?"height":"width"}function AM(t,e,n){let{reference:r,floating:i}=t;const o=r.x+r.width/2-i.width/2,s=r.y+r.height/2-i.height/2,a=vc(e),l=ES(a),c=r[l]/2-i[l]/2,u=mc(e),d=a==="x";let h;switch(u){case"top":h={x:o,y:r.y-i.height};break;case"bottom":h={x:o,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:s};break;case"left":h={x:r.x-i.width,y:s};break;default:h={x:r.x,y:r.y}}switch(pv(e)){case"start":h[a]-=c*(n&&d?-1:1);break;case"end":h[a]+=c*(n&&d?-1:1);break}return h}const Y1t=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=await(s.isRTL==null?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:u}=AM(l,r,a),d=r,h={},f=0;for(let p=0;p<o.length;p++){const{name:g,fn:y}=o[p],{x:v,y:_,data:x,reset:b}=await y({x:c,y:u,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:l,platform:s,elements:{reference:t,floating:e}});if(c=v!=null?v:c,u=_!=null?_:u,h={...h,[g]:{...h[g],...x}},b&&f<=50){f++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(l=b.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):b.rects),{x:c,y:u}=AM(l,d,a)),p=-1;continue}}return{x:c,y:u,placement:d,strategy:i,middlewareData:h}};function G1t(t){return{top:0,right:0,bottom:0,left:0,...t}}function AN(t){return typeof t!="number"?G1t(t):{top:t,right:t,bottom:t,left:t}}function Om(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Rm(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=e,p=AN(f),g=a[h?d==="floating"?"reference":"floating":d],y=Om(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v=Om(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),strategy:l}):s[d]);return{top:y.top-v.top+p.top,bottom:v.bottom-y.bottom+p.bottom,left:y.left-v.left+p.left,right:v.right-y.right+p.right}}const q1t=Math.min,Z1t=Math.max;function Hx(t,e,n){return Z1t(t,q1t(e,n))}const TM=t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:r=0}=t!=null?t:{},{x:i,y:o,placement:s,rects:a,platform:l}=e;if(n==null)return{};const c=AN(r),u={x:i,y:o},d=vc(s),h=pv(s),f=ES(d),p=await l.getDimensions(n),g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=a.reference[f]+a.reference[d]-u[d]-a.floating[f],_=u[d]-a.reference[d],x=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let b=x?d==="y"?x.clientHeight||0:x.clientWidth||0:0;b===0&&(b=a.floating[f]);const w=v/2-_/2,S=c[g],E=b-p[f]-c[y],C=b/2-p[f]/2+w,A=Hx(S,C,E),k=(h==="start"?c[g]:c[y])>0&&C!==A&&a.reference[f]<=a.floating[f]?C<S?S-C:E-C:0;return{[d]:u[d]-k,data:{[d]:A,centerOffset:C-A}}}}),X1t={left:"right",right:"left",bottom:"top",top:"bottom"};function Lm(t){return t.replace(/left|right|bottom|top/g,e=>X1t[e])}function K1t(t,e,n){n===void 0&&(n=!1);const r=pv(t),i=vc(t),o=ES(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Lm(s)),{main:s,cross:Lm(s)}}const Q1t={start:"end",end:"start"};function $M(t){return t.replace(/start|end/g,e=>Q1t[e])}const J1t=["top","right","bottom","left"];function tyt(t){const e=Lm(t);return[$M(t),e,$M(e)]}const eyt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:s,platform:a,elements:l}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",flipAlignment:f=!0,...p}=t,g=mc(r),y=d||(g===s||!f?[Lm(s)]:tyt(s)),v=[s,...y],_=await Rm(e,p),x=[];let b=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&x.push(_[g]),u){const{main:C,cross:A}=K1t(r,o,await(a.isRTL==null?void 0:a.isRTL(l.floating)));x.push(_[C],_[A])}if(b=[...b,{placement:r,overflows:x}],!x.every(C=>C<=0)){var w,S;const C=((w=(S=i.flip)==null?void 0:S.index)!=null?w:0)+1,A=v[C];if(A)return{data:{index:C,overflows:b},reset:{placement:A}};let k="bottom";switch(h){case"bestFit":{var E;const $=(E=b.map(M=>[M,M.overflows.filter(I=>I>0).reduce((I,F)=>I+F,0)]).sort((M,I)=>M[1]-I[1])[0])==null?void 0:E[0].placement;$&&(k=$);break}case"initialPlacement":k=s;break}if(r!==k)return{reset:{placement:k}}}return{}}}};function MM(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function PM(t){return J1t.some(e=>t[e]>=0)}const nyt=function(t){let{strategy:e="referenceHidden",...n}=t===void 0?{}:t;return{name:"hide",async fn(r){const{rects:i}=r;switch(e){case"referenceHidden":{const o=await Rm(r,{...n,elementContext:"reference"}),s=MM(o,i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:PM(s)}}}case"escaped":{const o=await Rm(r,{...n,altBoundary:!0}),s=MM(o,i.floating);return{data:{escapedOffsets:s,escaped:PM(s)}}}default:return{}}}}};async function ryt(t,e){const{placement:n,platform:r,elements:i}=t,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=mc(n),a=pv(n),l=vc(n)==="x",c=["left","top"].includes(s)?-1:1,u=o&&l?-1:1,d=typeof e=="function"?e(t):e;let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(f=a==="end"?p*-1:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}const iyt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:r}=e,i=await ryt(e,t);return{x:n+i.x,y:r+i.y,data:i}}}};function TN(t){return t==="x"?"y":"x"}const oyt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:v,y:_}=y;return{x:v,y:_}}},...l}=t,c={x:n,y:r},u=await Rm(e,l),d=vc(mc(i)),h=TN(d);let f=c[d],p=c[h];if(o){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",_=f+u[y],x=f-u[v];f=Hx(_,f,x)}if(s){const y=h==="y"?"top":"left",v=h==="y"?"bottom":"right",_=p+u[y],x=p-u[v];p=Hx(_,p,x)}const g=a.fn({...e,[d]:f,[h]:p});return{...g,data:{x:g.x-n,y:g.y-r}}}}},syt=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=t,u={x:n,y:r},d=vc(i),h=TN(d);let f=u[d],p=u[h];const g=typeof a=="function"?a({...o,placement:i}):a,y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=d==="y"?"height":"width",S=o.reference[d]-o.floating[w]+y.mainAxis,E=o.reference[d]+o.reference[w]-y.mainAxis;f<S?f=S:f>E&&(f=E)}if(c){var v,_,x,b;const w=d==="y"?"width":"height",S=["top","left"].includes(mc(i)),E=o.reference[h]-o.floating[w]+(S&&(v=(_=s.offset)==null?void 0:_[h])!=null?v:0)+(S?0:y.crossAxis),C=o.reference[h]+o.reference[w]+(S?0:(x=(b=s.offset)==null?void 0:b[h])!=null?x:0)-(S?y.crossAxis:0);p<E?p=E:p>C&&(p=C)}return{[d]:f,[h]:p}}}};function $N(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function Zi(t){if(t==null)return window;if(!$N(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function bh(t){return Zi(t).getComputedStyle(t)}function Wi(t){return $N(t)?"":t?(t.nodeName||"").toLowerCase():""}function MN(){const t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function li(t){return t instanceof Zi(t).HTMLElement}function es(t){return t instanceof Zi(t).Element}function ayt(t){return t instanceof Zi(t).Node}function CS(t){if(typeof ShadowRoot>"u")return!1;const e=Zi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function gv(t){const{overflow:e,overflowX:n,overflowY:r}=bh(t);return/auto|scroll|overlay|hidden/.test(e+r+n)}function lyt(t){return["table","td","th"].includes(Wi(t))}function PN(t){const e=/firefox/i.test(MN()),n=bh(t);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||e&&n.willChange==="filter"||e&&(n.filter?n.filter!=="none":!1)}function ON(){return!/^((?!chrome|android).)*safari/i.test(MN())}const OM=Math.min,Zu=Math.max,Dm=Math.round;function Yi(t,e,n){var r,i,o,s;e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect();let l=1,c=1;e&&li(t)&&(l=t.offsetWidth>0&&Dm(a.width)/t.offsetWidth||1,c=t.offsetHeight>0&&Dm(a.height)/t.offsetHeight||1);const u=es(t)?Zi(t):window,d=!ON()&&n,h=(a.left+(d&&(r=(i=u.visualViewport)==null?void 0:i.offsetLeft)!=null?r:0))/l,f=(a.top+(d&&(o=(s=u.visualViewport)==null?void 0:s.offsetTop)!=null?o:0))/c,p=a.width/l,g=a.height/c;return{width:p,height:g,top:f,right:h+p,bottom:f+g,left:h,x:h,y:f}}function ls(t){return((ayt(t)?t.ownerDocument:t.document)||window.document).documentElement}function mv(t){return es(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function RN(t){return Yi(ls(t)).left+mv(t).scrollLeft}function cyt(t){const e=Yi(t);return Dm(e.width)!==t.offsetWidth||Dm(e.height)!==t.offsetHeight}function uyt(t,e,n){const r=li(e),i=ls(e),o=Yi(t,r&&cyt(e),n==="fixed");let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((Wi(e)!=="body"||gv(i))&&(s=mv(e)),li(e)){const l=Yi(e,!0);a.x=l.x+e.clientLeft,a.y=l.y+e.clientTop}else i&&(a.x=RN(i));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}function LN(t){return Wi(t)==="html"?t:t.assignedSlot||t.parentNode||(CS(t)?t.host:null)||ls(t)}function RM(t){return!li(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function dyt(t){let e=LN(t);for(CS(e)&&(e=e.host);li(e)&&!["html","body"].includes(Wi(e));){if(PN(e))return e;e=e.parentNode}return null}function Ux(t){const e=Zi(t);let n=RM(t);for(;n&&lyt(n)&&getComputedStyle(n).position==="static";)n=RM(n);return n&&(Wi(n)==="html"||Wi(n)==="body"&&getComputedStyle(n).position==="static"&&!PN(n))?e:n||dyt(t)||e}function LM(t){if(li(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=Yi(t);return{width:e.width,height:e.height}}function hyt(t){let{rect:e,offsetParent:n,strategy:r}=t;const i=li(n),o=ls(n);if(n===o)return e;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((i||!i&&r!=="fixed")&&((Wi(n)!=="body"||gv(o))&&(s=mv(n)),li(n))){const l=Yi(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}return{...e,x:e.x-s.scrollLeft+a.x,y:e.y-s.scrollTop+a.y}}function fyt(t,e){const n=Zi(t),r=ls(t),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=ON();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function pyt(t){var e;const n=ls(t),r=mv(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=Zu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Zu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-r.scrollLeft+RN(t);const l=-r.scrollTop;return bh(i||n).direction==="rtl"&&(a+=Zu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function DN(t){const e=LN(t);return["html","body","#document"].includes(Wi(e))?t.ownerDocument.body:li(e)&&gv(e)?e:DN(e)}function Im(t,e){var n;e===void 0&&(e=[]);const r=DN(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=Zi(r),s=i?[o].concat(o.visualViewport||[],gv(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(Im(s))}function gyt(t,e){const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&CS(n)){let r=e;do{if(r&&t===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function myt(t,e){const n=Yi(t,!1,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:r,left:i,x:i,y:r,right:i+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function DM(t,e,n){return e==="viewport"?Om(fyt(t,n)):es(e)?myt(e,n):Om(pyt(ls(t)))}function vyt(t){const e=Im(t),n=["absolute","fixed"].includes(bh(t).position)&&li(t)?Ux(t):t;return es(n)?e.filter(r=>es(r)&&gyt(r,n)&&Wi(r)!=="body"):[]}function yyt(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?vyt(e):[].concat(n),r],s=o[0],a=o.reduce((l,c)=>{const u=DM(e,c,i);return l.top=Zu(u.top,l.top),l.right=OM(u.right,l.right),l.bottom=OM(u.bottom,l.bottom),l.left=Zu(u.left,l.left),l},DM(e,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}const _yt={getClippingRect:yyt,convertOffsetParentRelativeRectToViewportRelativeRect:hyt,isElement:es,getDimensions:LM,getOffsetParent:Ux,getDocumentElement:ls,getElementRects:t=>{let{reference:e,floating:n,strategy:r}=t;return{reference:uyt(e,Ux(n),r),floating:{...LM(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>bh(t).direction==="rtl"};function xyt(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=!0,animationFrame:a=!1}=r,l=i&&!a,c=o&&!a,u=l||c?[...es(t)?Im(t):[],...Im(e)]:[];u.forEach(g=>{l&&g.addEventListener("scroll",n,{passive:!0}),c&&g.addEventListener("resize",n)});let d=null;if(s){let g=!0;d=new ResizeObserver(()=>{g||n(),g=!1}),es(t)&&!a&&d.observe(t),d.observe(e)}let h,f=a?Yi(t):null;a&&p();function p(){const g=Yi(t);f&&(g.x!==f.x||g.y!==f.y||g.width!==f.width||g.height!==f.height)&&n(),f=g,h=requestAnimationFrame(p)}return n(),()=>{var g;u.forEach(y=>{l&&y.removeEventListener("scroll",n),c&&y.removeEventListener("resize",n)}),(g=d)==null||g.disconnect(),d=null,a&&cancelAnimationFrame(h)}}const byt=(t,e,n)=>Y1t(t,e,{platform:_yt,...n});var Wx=typeof document<"u"?m.exports.useLayoutEffect:m.exports.useEffect;function Yx(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!Yx(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&t.$$typeof)&&!Yx(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function wyt(t){const e=m.exports.useRef(t);return Wx(()=>{e.current=t}),e}function Syt(t){let{middleware:e,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=t===void 0?{}:t;const o=m.exports.useRef(null),s=m.exports.useRef(null),a=wyt(i),l=m.exports.useRef(null),[c,u]=m.exports.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,h]=m.exports.useState(e);Yx(d==null?void 0:d.map(x=>{let{options:b}=x;return b}),e==null?void 0:e.map(x=>{let{options:b}=x;return b}))||h(e);const f=m.exports.useCallback(()=>{!o.current||!s.current||byt(o.current,s.current,{middleware:d,placement:n,strategy:r}).then(x=>{p.current&&zn.exports.flushSync(()=>{u(x)})})},[d,n,r]);Wx(()=>{p.current&&f()},[f]);const p=m.exports.useRef(!1);Wx(()=>(p.current=!0,()=>{p.current=!1}),[]);const g=m.exports.useCallback(()=>{if(typeof l.current=="function"&&(l.current(),l.current=null),o.current&&s.current)if(a.current){const x=a.current(o.current,s.current,f);l.current=x}else f()},[f,a]),y=m.exports.useCallback(x=>{o.current=x,g()},[g]),v=m.exports.useCallback(x=>{s.current=x,g()},[g]),_=m.exports.useMemo(()=>({reference:o,floating:s}),[]);return m.exports.useMemo(()=>({...c,update:f,refs:_,reference:y,floating:v}),[c,f,_,y,v])}const Eyt=t=>{const{element:e,padding:n}=t;function r(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:t,fn(i){return r(e)?e.current!=null?TM({element:e.current,padding:n}).fn(i):{}:e?TM({element:e,padding:n}).fn(i):{}}}},Cyt=m.exports.forwardRef((t,e)=>{const{children:n,width:r=10,height:i=5,...o}=t;return m.exports.createElement(Pt.svg,nt({},o,{ref:e,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?n:m.exports.createElement("polygon",{points:"0,0 30,0 15,10"}))}),kyt=Cyt,IN="Popper",[kS,NN]=fc(IN),[Ayt,FN]=kS(IN),Tyt=t=>{const{__scopePopper:e,children:n}=t,[r,i]=m.exports.useState(null);return m.exports.createElement(Ayt,{scope:e,anchor:r,onAnchorChange:i},n)},$yt="PopperAnchor",Myt=m.exports.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...i}=t,o=FN($yt,n),s=m.exports.useRef(null),a=Wt(e,s);return m.exports.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:m.exports.createElement(Pt.div,nt({},i,{ref:a}))}),Nm="PopperContent",[Pyt,Oyt]=kS(Nm),[Ryt,Lyt]=kS(Nm,{hasParent:!1,positionUpdateFns:new Set}),Dyt=m.exports.forwardRef((t,e)=>{var n,r,i,o,s,a,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:h=0,align:f="center",alignOffset:p=0,arrowPadding:g=0,collisionBoundary:y=[],collisionPadding:v=0,sticky:_="partial",hideWhenDetached:x=!1,avoidCollisions:b=!0,...w}=t,S=FN(Nm,u),[E,C]=m.exports.useState(null),A=Wt(e,Ee=>C(Ee)),[k,$]=m.exports.useState(null),M=J2(k),I=(n=M==null?void 0:M.width)!==null&&n!==void 0?n:0,F=(r=M==null?void 0:M.height)!==null&&r!==void 0?r:0,L=d+(f!=="center"?"-"+f:""),Y=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},X=Array.isArray(y)?y:[y],z=X.length>0,W={padding:Y,boundary:X.filter(Byt),altBoundary:z},{reference:P,floating:G,strategy:U,x:B,y:R,placement:j,middlewareData:K,update:it}=Syt({strategy:"fixed",placement:L,whileElementsMounted:xyt,middleware:[iyt({mainAxis:h+F,alignmentAxis:p}),b?oyt({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?syt():void 0,...W}):void 0,k?Eyt({element:k,padding:g}):void 0,b?eyt({...W}):void 0,jyt({arrowWidth:I,arrowHeight:F}),x?nyt({strategy:"referenceHidden"}):void 0].filter(zyt)});Nn(()=>{P(S.anchor)},[P,S.anchor]);const Yt=B!==null&&R!==null,[fe,tr]=zN(j),xr=(i=K.arrow)===null||i===void 0?void 0:i.x,ln=(o=K.arrow)===null||o===void 0?void 0:o.y,Nr=((s=K.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[er,st]=m.exports.useState();Nn(()=>{E&&st(window.getComputedStyle(E).zIndex)},[E]);const{hasParent:ee,positionUpdateFns:tt}=Lyt(Nm,u),wt=!ee;m.exports.useLayoutEffect(()=>{if(!wt)return tt.add(it),()=>{tt.delete(it)}},[wt,tt,it]),m.exports.useLayoutEffect(()=>{wt&&Yt&&Array.from(tt).reverse().forEach(Ee=>requestAnimationFrame(Ee))},[wt,Yt,tt]);const Gt={"data-side":fe,"data-align":tr,...w,ref:A,style:{...w.style,animation:Yt?void 0:"none",opacity:(a=K.hide)!==null&&a!==void 0&&a.referenceHidden?0:void 0}};return m.exports.createElement("div",{ref:G,"data-radix-popper-content-wrapper":"",style:{position:U,left:0,top:0,transform:Yt?`translate3d(${Math.round(B)}px, ${Math.round(R)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:er,["--radix-popper-transform-origin"]:[(l=K.transformOrigin)===null||l===void 0?void 0:l.x,(c=K.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")}},m.exports.createElement(Pyt,{scope:u,placedSide:fe,onArrowChange:$,arrowX:xr,arrowY:ln,shouldHideArrow:Nr},wt?m.exports.createElement(Ryt,{scope:u,hasParent:!0,positionUpdateFns:tt},m.exports.createElement(Pt.div,Gt)):m.exports.createElement(Pt.div,Gt)))}),Iyt="PopperArrow",Nyt={top:"bottom",right:"left",bottom:"top",left:"right"},Fyt=m.exports.forwardRef(function(t,e){const{__scopePopper:n,...r}=t,i=Oyt(Iyt,n),o=Nyt[i.placedSide];return m.exports.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},m.exports.createElement(kyt,nt({},r,{ref:e,style:{...r.style,display:"block"}})))});function zyt(t){return t!==void 0}function Byt(t){return t!==null}const jyt=t=>({name:"transformOrigin",options:t,fn(e){var n,r,i,o,s;const{placement:a,rects:l,middlewareData:c}=e,u=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=u?0:t.arrowWidth,h=u?0:t.arrowHeight,[f,p]=zN(a),g={start:"0%",center:"50%",end:"100%"}[p],y=((r=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+d/2,v=((o=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&o!==void 0?o:0)+h/2;let _="",x="";return f==="bottom"?(_=u?g:`${y}px`,x=`${-h}px`):f==="top"?(_=u?g:`${y}px`,x=`${l.floating.height+h}px`):f==="right"?(_=`${-h}px`,x=u?g:`${v}px`):f==="left"&&(_=`${l.floating.width+h}px`,x=u?g:`${v}px`),{data:{x:_,y:x}}}});function zN(t){const[e,n="center"]=t.split("-");return[e,n]}const Vyt=Tyt,BN=Myt,Hyt=Dyt,Uyt=Fyt;function Wyt(t,e){return m.exports.useReducer((n,r)=>{const i=e[n][r];return i!=null?i:n},t)}const AS=t=>{const{present:e,children:n}=t,r=Yyt(e),i=typeof n=="function"?n({present:r.isPresent}):m.exports.Children.only(n),o=Wt(r.ref,i.ref);return typeof n=="function"||r.isPresent?m.exports.cloneElement(i,{ref:o}):null};AS.displayName="Presence";function Yyt(t){const[e,n]=m.exports.useState(),r=m.exports.useRef({}),i=m.exports.useRef(t),o=m.exports.useRef("none"),s=t?"mounted":"unmounted",[a,l]=Wyt(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.exports.useEffect(()=>{const c=Qf(r.current);o.current=a==="mounted"?c:"none"},[a]),Nn(()=>{const c=r.current,u=i.current;if(u!==t){const d=o.current,h=Qf(c);t?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),Nn(()=>{if(e){const c=d=>{const h=Qf(r.current).includes(d.animationName);d.target===e&&h&&zn.exports.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===e&&(o.current=Qf(r.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.exports.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Qf(t){return(t==null?void 0:t.animationName)||"none"}const jN="Popover",[VN,Gyt]=fc(jN,[NN]),wh=NN(),[qyt,cs]=VN(jN),HN=t=>{const{__scopePopover:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=t,a=wh(e),l=m.exports.useRef(null),[c,u]=m.exports.useState(!1),[d=!1,h]=Fd({prop:r,defaultProp:i,onChange:o});return m.exports.createElement(Vyt,a,m.exports.createElement(qyt,{scope:e,contentId:gh(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:m.exports.useCallback(()=>h(f=>!f),[h]),hasCustomAnchor:c,onCustomAnchorAdd:m.exports.useCallback(()=>u(!0),[]),onCustomAnchorRemove:m.exports.useCallback(()=>u(!1),[]),modal:s},n))},Zyt="PopoverAnchor",UN=m.exports.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=cs(Zyt,n),o=wh(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=i;return m.exports.useEffect(()=>(s(),()=>a()),[s,a]),m.exports.createElement(BN,nt({},o,r,{ref:e}))}),Xyt="PopoverTrigger",WN=m.exports.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=cs(Xyt,n),o=wh(n),s=Wt(e,i.triggerRef),a=m.exports.createElement(Pt.button,nt({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":QN(i.open)},r,{ref:s,onClick:Dt(t.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?a:m.exports.createElement(BN,nt({asChild:!0},o),a)}),YN="PopoverPortal",[Kyt,Qyt]=VN(YN,{forceMount:void 0}),GN=t=>{const{__scopePopover:e,forceMount:n,children:r,container:i}=t,o=cs(YN,e);return m.exports.createElement(Kyt,{scope:e,forceMount:n},m.exports.createElement(AS,{present:n||o.open},m.exports.createElement(z8,{asChild:!0,container:i},r)))},Ud="PopoverContent",qN=m.exports.forwardRef((t,e)=>{const n=Qyt(Ud,t.__scopePopover),{forceMount:r=n.forceMount,...i}=t,o=cs(Ud,t.__scopePopover);return m.exports.createElement(AS,{present:r||o.open},o.modal?m.exports.createElement(Jyt,nt({},i,{ref:e})):m.exports.createElement(t_t,nt({},i,{ref:e})))}),Jyt=m.exports.forwardRef((t,e)=>{const n=cs(Ud,t.__scopePopover),r=m.exports.useRef(null),i=Wt(e,r),o=m.exports.useRef(!1);return m.exports.useEffect(()=>{const s=r.current;if(s)return B8(s)},[]),m.exports.createElement(q8,{as:ql,allowPinchZoom:!0},m.exports.createElement(ZN,nt({},t,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Dt(t.onCloseAutoFocus,s=>{var a;s.preventDefault(),o.current||(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:Dt(t.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;o.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Dt(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),t_t=m.exports.forwardRef((t,e)=>{const n=cs(Ud,t.__scopePopover),r=m.exports.useRef(!1);return m.exports.createElement(ZN,nt({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o;if((o=t.onCloseAutoFocus)===null||o===void 0||o.call(t,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1},onInteractOutside:i=>{var o,s;(o=t.onInteractOutside)===null||o===void 0||o.call(t,i),i.defaultPrevented||(r.current=!0);const a=i.target;!((s=n.triggerRef.current)===null||s===void 0)&&s.contains(a)&&i.preventDefault()}}))}),ZN=m.exports.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=t,h=cs(Ud,n),f=wh(n);return I8(),m.exports.createElement(N8,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},m.exports.createElement(L8,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1)},m.exports.createElement(Hyt,nt({"data-state":QN(h.open),role:"dialog",id:h.contentId},f,d,{ref:e,style:{...d.style,["--radix-popover-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))))}),e_t="PopoverClose",XN=m.exports.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=cs(e_t,n);return m.exports.createElement(Pt.button,nt({type:"button"},r,{ref:e,onClick:Dt(t.onClick,()=>i.onOpenChange(!1))}))}),KN=m.exports.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=wh(n);return m.exports.createElement(Uyt,nt({},i,r,{ref:e}))});function QN(t){return t?"open":"closed"}const n_t=HN,r_t=UN,JN=WN,i_t=GN,tF=qN,o_t=XN,eF=KN,s_t=Object.freeze(Object.defineProperty({__proto__:null,createPopoverScope:Gyt,Popover:HN,PopoverAnchor:UN,PopoverTrigger:WN,PopoverPortal:GN,PopoverContent:qN,PopoverClose:XN,PopoverArrow:KN,Root:n_t,Anchor:r_t,Trigger:JN,Portal:i_t,Content:tF,Close:o_t,Arrow:eF},Symbol.toStringTag,{value:"Module"})),a_t=N(JN)`
1171
- background: none;
1172
- border: none;
1173
- padding: 0;
1174
- `,nF=N(tF)`
1175
- padding: ${T["--ll-spacing-small"]};
1176
- background-color: ${T["--ll-color-background"]};
1177
- box-shadow: ${T["--ll-shadow-small"]};
1178
- border-radius: ${T["--ll-border-radius-small"]};
1179
- width: 240px;
1180
- `,rF=N(eF)`
1181
- fill: ${T["--ll-color-background"]};
1182
- `,l_t=Object.freeze(Object.defineProperty({__proto__:null,Trigger:a_t,Content:nF,Arrow:rF},Symbol.toStringTag,{value:"Module"})),{Root:c_t,Portal:u_t}=s_t,{Trigger:d_t}=l_t,h_t=({side:t,children:e,className:n,sideOffset:r=mn*2,collisionPadding:i=mn*2})=>at(u_t,{children:Pi(nF,{side:t,className:n,sideOffset:r,collisionPadding:i,children:[at(rF,{}),e]})}),Xl=Object.freeze(Object.defineProperty({__proto__:null,Root:c_t,Trigger:d_t,Content:h_t},Symbol.toStringTag,{value:"Module"})),iF=Q.createContext({}),oF=()=>m.exports.useContext(iF),f_t=({client:t,options:e,children:n})=>{var r,i;return jt(iF.Provider,{value:{client:t,options:e},children:[H(oht,{themeName:(r=e==null?void 0:e.appearance)==null?void 0:r.theme,overrides:(i=e==null?void 0:e.appearance)==null?void 0:i.variables}),n]})},sF=Q.createContext({}),Sh=()=>m.exports.useContext(sF),dy=(t,e=!1)=>{if(!t)return null;const n=parseFloat(t)*2;return e?Math.round(n):Math.round(n*10)/10},TS=({scoresData:t,score:e,round:n=!1})=>{const r=m.exports.useMemo(()=>{var d,h;const f=(h=(d=t==null?void 0:t.location)==null?void 0:d[e])==null?void 0:h.value;return dy(f,n)},[t,e,n]),i=m.exports.useMemo(()=>{var d,h;return(h=(d=t==null?void 0:t.location)==null?void 0:d[e])==null?void 0:h.text},[t,e]),o=m.exports.useMemo(()=>{var d;return(d=t==null?void 0:t.geographies)==null?void 0:d.find(h=>h.geog_level_type==="municipality")},[t]),s=m.exports.useMemo(()=>{var d;return(d=t==null?void 0:t.geographies)==null?void 0:d.find(h=>h.geog_level_type==="macro neighbourhood")},[t]),a=m.exports.useMemo(()=>{var d;const h=(d=o==null?void 0:o.scores[e])==null?void 0:d.value;return dy(h,n)},[o,e,n]),l=m.exports.useMemo(()=>{var d;const h=(d=s==null?void 0:s.scores[e])==null?void 0:d.value;return dy(h,n)},[s,e,n]),c=m.exports.useMemo(()=>o==null?void 0:o.name,[o]),u=m.exports.useMemo(()=>s==null?void 0:s.name,[s]);return{textVal:i,scoreVal:r,cityName:c,cityScoreVal:a,neighbourhoodName:u,neighbourhoodScoreVal:l}},p_t=t=>t==="small"?vt`
1183
- height: 16px;
1184
- padding: 0 ${T["--ll-spacing-xx-small"]};
1185
- font-size: ${T["--ll-font-size-caption-2"]};
1186
- `:vt`
1187
- height: 32px;
1188
- width: 32px;
1189
- font-size: ${T["--ll-font-size-p"]};
1190
- `,g_t=N.div`
1191
- position: relative;
1192
- background: ${({$isPrimary:t})=>t?T["--ll-color-primary"]:T["--ll-color-disabled"]};
1193
- color: ${T["--ll-color-on-primary"]};
1194
- border-radius: ${T["--ll-border-radius-small"]};
1195
- display: flex;
1196
- justify-content: center;
1197
- align-items: center;
1198
- line-height: 1;
1199
- font-family: ${T["--ll-font-family"]};
1200
- overflow: hidden;
1201
- transition: background 160ms ease;
1202
- flex-shrink: 0;
1203
- ${({$variant:t})=>p_t(t)};
1204
-
1205
- &:after {
1206
- content: "";
1207
- position: absolute;
1208
- top: 0;
1209
- bottom: 0;
1210
- right: 0;
1211
- left: 0;
1212
- background: linear-gradient(
1213
- 180deg,
1214
- rgba(255, 255, 255, 0.2) 0%,
1215
- rgba(0, 0, 0, 0.1) 100%
1216
- );
1217
- }
1218
- `,m_t=N.div`
1219
- z-index: 1;
1220
- `,v_t=({options:{variant:t="large",isPrimary:e=!0}={}})=>{const{options:{scoresData:n,score:r}}=Sh(),{scoreVal:i}=TS({scoresData:n,score:r});return i==null?null:H(g_t,{"data-testid":"score-badge",$variant:t,$isPrimary:e,children:H(m_t,{children:i})})};var y_t=Object.defineProperty,__t=(t,e,n)=>e in t?y_t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xu=(t,e,n)=>(__t(t,typeof e!="symbol"?e+"":e,n),n);const Zp=t=>typeof t=="object"&&t!==null&&!Array.isArray(t);function Gx(t,...e){if(!e.length)return t;const n=e.shift();return Zp(t)&&Zp(n)&&Object.keys(n).forEach(r=>{Zp(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Gx(t[r],n[r])):Object.assign(t,{[r]:n[r]})}),Gx(t,...e)}const x_t=Object.freeze(Object.defineProperty({__proto__:null,isObject:Zp,mergeDeep:Gx},Symbol.toStringTag,{value:"Module"})),b_t=(t,e,n)=>e===1?t:n!=null?n:`${t}s`,w_t=t=>t.charAt(0).toUpperCase()+t.slice(1),S_t=({houseNumber:t,street:e,city:n,state:r,country:i,postalCode:o})=>[`${t?`${t&&e?`${t} `:`${t}`}`:""}${e||""}`,n,r,i,o].reduceRight((s,a)=>s&&a?`${a}, ${s}`:a||s||"")||"",IM=Object.freeze(Object.defineProperty({__proto__:null,pluralize:b_t,capitalize:w_t,formatAddress:S_t},Symbol.toStringTag,{value:"Module"})),E_t=(t,e)=>e==="school",C_t=Object.freeze(Object.defineProperty({__proto__:null,isSchool:E_t},Symbol.toStringTag,{value:"Module"})),aF=Object.freeze(Object.defineProperty({__proto__:null,poi:C_t},Symbol.toStringTag,{value:"Module"}));var On={},$S={},Eh={},MS={};/*!
1221
- * cookie
1222
- * Copyright(c) 2012-2014 Roman Shtylman
1223
- * Copyright(c) 2015 Douglas Christopher Wilson
1224
- * MIT Licensed
1225
- */MS.parse=$_t;MS.serialize=M_t;var k_t=decodeURIComponent,A_t=encodeURIComponent,T_t=/; */,Jf=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function $_t(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var n={},r=e||{},i=t.split(T_t),o=r.decode||k_t,s=0;s<i.length;s++){var a=i[s],l=a.indexOf("=");if(!(l<0)){var c=a.substr(0,l).trim(),u=a.substr(++l,a.length).trim();u[0]=='"'&&(u=u.slice(1,-1)),n[c]==null&&(n[c]=P_t(u,o))}}return n}function M_t(t,e,n){var r=n||{},i=r.encode||A_t;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!Jf.test(t))throw new TypeError("argument name is invalid");var o=i(e);if(o&&!Jf.test(o))throw new TypeError("argument val is invalid");var s=t+"="+o;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Jf.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!Jf.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return s}function P_t(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(Eh,"__esModule",{value:!0});var O_t=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();Eh.hasCookies=I_t;var R_t=MS,tp=L_t(R_t);function L_t(t){return t&&t.__esModule?t:{default:t}}function D_t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var eo="lS_",lF=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};D_t(this,t),this.cookieOptions=Object.assign({path:"/"},e),eo=e.prefix===void 0?eo:e.prefix}return O_t(t,[{key:"getItem",value:function(e){var n=tp.default.parse(document.cookie);return!n||!n.hasOwnProperty(eo+e)?null:n[eo+e]}},{key:"setItem",value:function(e,n){return document.cookie=tp.default.serialize(eo+e,n,this.cookieOptions),n}},{key:"removeItem",value:function(e){var n=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=tp.default.serialize(eo+e,"",n),null}},{key:"clear",value:function(){var e=tp.default.parse(document.cookie);for(var n in e)n.indexOf(eo)===0&&this.removeItem(n.substr(eo.length));return null}}]),t}();Eh.default=lF;function I_t(){var t=new lF;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),n==="1"}catch(r){return!1}}Object.defineProperty($S,"__esModule",{value:!0});$S.default=F_t;var N_t=Eh,NM="__test";function FM(t){try{var e=window[t];return e.setItem(NM,"1"),e.removeItem(NM),!0}catch(n){return!1}}function F_t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"localStorage",e=String(t).replace(/storage$/i,"").toLowerCase();if(e==="local")return FM("localStorage");if(e==="session")return FM("sessionStorage");if(e==="cookie")return(0,N_t.hasCookies)();if(e==="memory")return!0;throw new Error("Storage method `"+t+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")}var PS={};Object.defineProperty(PS,"__esModule",{value:!0});var z_t=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function B_t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var j_t=function(){function t(){B_t(this,t),this._data={}}return z_t(t,[{key:"getItem",value:function(e){return this._data.hasOwnProperty(e)?this._data[e]:null}},{key:"setItem",value:function(e,n){return this._data[e]=String(n)}},{key:"removeItem",value:function(e){return delete this._data[e]}},{key:"clear",value:function(){return this._data={}}}]),t}();PS.default=j_t;Object.defineProperty(On,"__esModule",{value:!0});On.MemoryStorage=On.CookieStorage=On.isSupported=On.storage=void 0;var V_t=$S,Xp=OS(V_t),H_t=Eh,cF=OS(H_t),U_t=PS,uF=OS(U_t);function OS(t){return t&&t.__esModule?t:{default:t}}var il=null;(0,Xp.default)("localStorage")?On.storage=il=window.localStorage:(0,Xp.default)("sessionStorage")?On.storage=il=window.sessionStorage:(0,Xp.default)("cookieStorage")?On.storage=il=new cF.default:On.storage=il=new uF.default;var W_t=On.default=il;On.storage=il;On.isSupported=Xp.default;On.CookieStorage=cF.default;On.MemoryStorage=uF.default;class dF{constructor(e="global"){Xu(this,"group"),Xu(this,"localStorage"),this.group=e,this.localStorage=W_t}setGroup(e){this.group=e}getGroup(){return this.group}getItem(e){return this.localStorage.getItem(`${this.group}.${e}`)}setItem(e,n){this.localStorage.setItem(`${this.group}.${e}`,n)}removeItem(e){this.localStorage.removeItem(`${this.group}.${e}`)}}new dF;class Y_t{constructor(){Xu(this,"storageLocation","suggestion_history"),Xu(this,"storage"),Xu(this,"history",[]),this.storage=new dF("commute");const e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}push(e){this.history=this.removeDuplicateEntries(e),this.history.unshift(e),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(e){return this.history.filter(n=>n.locationId!==e.locationId)}}new Y_t;const qe=t=>{const{client:e}=oF(),{locale:n="en"}=e.options,r=m.exports.useMemo(()=>x_t.mergeDeep({},...t)[n],[n,t]);return{locale:n,translations:r}},hF={en:{cafes:"Cafes",car_friendly:"Driving",cycling_friendly:"Cycling",daycares:"Day care",greenery:"Greenery",groceries:"Grocery",high_schools:"High schools",historic:"Historic",nightlife:"Night life",parks:"Parks",pedestrian_friendly:"Walking",primary_schools:"Primary schools",quiet:"Quiet",restaurants:"Restaurants",shopping:"Shopping",transit_friendly:"Transit",vibrant:"Vibrancy",wellness:"Wellness"},fr:{cafes:"Caf\xE9s",car_friendly:"Voiture",cycling_friendly:"V\xE9lo",daycares:"Garderies",greenery:"Verdure",groceries:"\xC9piceries",high_schools:"\xC9coles secondaires",historic:"Historique",nightlife:"Vie nocturne",parks:"Parcs",pedestrian_friendly:"Marche",primary_schools:"\xC9coles primaires",quiet:"Silencieux",restaurants:"Restaurants",shopping:"Magasins",transit_friendly:"Transport public",vibrant:"Dynamisme",wellness:"Bien-\xEAtre"}},fF={en:{"cafes-description":"A measure of the quantity of nearby coffee shops.","car_friendly-description":"Represents how well traffic flows, and how easy it is to park.","cycling_friendly-description":"Represents how suitable the area is for cycling in terms of nearby bicycle infrastructure and calm streets, as well as the number of destinations that can be reached by bicycle.","daycares-description":"Represents the distance to the nearest daycare.","greenery-description":"Quantity of nearby green spaces and tree canopy coverage.","groceries-description":"A measure of the quantity of nearby grocery stores.","high_schools-description":"Represents the distance to nearest high school.","historic-description":"A measure of the quantity and size of heritage buildings, and the average building age in the area.","nightlife-description":"Represents the quantity of bars nearby.","parks-description":"A measure of the quantity and size of nearby parks.","pedestrian_friendly-description":"A measure of how many basic services can be reached on foot and how pleasant it is to walk to them.","primary_schools-description":"A measure of the distance to the nearest elementary school.","quiet-description":"A measure of the average levels of noise nearby.","restaurants-description":"Represents the quantity of restaurants nearby.","shopping-description":"A measure of the quantity of fashion and department stores nearby.","transit_friendly-description":"A measure of the frequency and level of public transit service.","vibrant-description":"Represents the level of street activity nearby.","wellness-description":"Represents how conducive a location is to individuals' well-being."},fr:{"cafes-description":"Une mesure de la quantit\xE9 et de la diversit\xE9 des caf\xE9s \xE0 proximit\xE9.","car_friendly-description":"Repr\xE9sente la fluidit\xE9 de la circulation et la facilit\xE9 de stationnement.","cycling_friendly-description":"Repr\xE9sente \xE0 quel point la zone est adapt\xE9e au cyclisme en termes d'infrastructure cyclable \xE0 proximit\xE9 et de rues calmes, ainsi que le nombre de destinations pouvant \xEAtre atteintes \xE0 v\xE9lo.","daycares-description":"Repr\xE9sente la distance \xE0 la garderie la plus proche.","greenery-description":"Quantit\xE9 d'espaces verts \xE0 proximit\xE9 et couverture de la canop\xE9e des arbres.","groceries-description":"Une mesure de la quantit\xE9 d'\xE9piceries \xE0 proximit\xE9.","high_schools-description":"Repr\xE9sente la distance \xE0 l'\xE9cole secondaire la plus proche.","historic-description":"Une mesure de la quantit\xE9 et de la taille des b\xE2timents patrimoniaux, et de l'\xE2ge moyen des b\xE2timents dans la r\xE9gion.","nightlife-description":"Repr\xE9sente la quantit\xE9 et la diversit\xE9 des bars \xE0 proximit\xE9.","parks-description":"Une mesure de la quantit\xE9 et de la taille des parcs \xE0 proximit\xE9.","pedestrian_friendly-description":"Une mesure de la proximit\xE9 des services de base et de l'agr\xE9ment d'y aller \xE0 pied.","primary_schools-description":"Une mesure de la distance \xE0 l'\xE9cole primaire la plus proche.","quiet-description":"Une mesure des niveaux moyens de bruit \xE0 proximit\xE9.","restaurants-description":"Repr\xE9sente la quantit\xE9 et la diversit\xE9 des restaurants \xE0 proximit\xE9.","shopping-description":"Une mesure de la quantit\xE9 et de la diversit\xE9 de magasins de mode et de grands magasins \xE0 proximit\xE9.","transit_friendly-description":"Une mesure de la fr\xE9quence et du niveau de service de transport en commun.","vibrant-description":"Repr\xE9sente le niveau d'activit\xE9 de la rue \xE0 proximit\xE9.","wellness-description":"Repr\xE9sente \xE0 quel point un emplacement est propice au bien-\xEAtre des individus."}},pF=t=>{var e;const{options:{score:n}}=Sh(),{translations:r}=qe([fF,hF]);return(e=t.options)!=null&&e.isRawText?H(Jr,{children:r[n]}):H(ae,{...t.options,children:r[n]})};pF.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1",isRawText:!1}};const gF=t=>_e("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:[O("path",{d:"M12 2C7.58 2 4 2.5 4 6V16C4 16.88 4.39 17.67 5 18.22V20C5 20.55 5.45 21 6 21H7C7.55 21 8 20.55 8 20V19H16V20C16 20.55 16.45 21 17 21H18C18.55 21 19 20.55 19 20V18.22C19.61 17.67 20 16.88 20 16V6C20 2.5 16.42 2 12 2ZM17.66 4.99H6.34C6.89 4.46 8.31 4 12 4C15.69 4 17.11 4.46 17.66 4.99ZM18 6.99V10H6V6.99H18ZM17.66 16.73L17.37 17H6.63L6.34 16.73C6.21 16.62 6 16.37 6 16V12H18V16C18 16.37 17.79 16.62 17.66 16.73Z"}),O("path",{d:"M8.5 16C9.32843 16 10 15.3284 10 14.5C10 13.6716 9.32843 13 8.5 13C7.67157 13 7 13.6716 7 14.5C7 15.3284 7.67157 16 8.5 16Z"}),O("path",{d:"M15.5 16C16.3284 16 17 15.3284 17 14.5C17 13.6716 16.3284 13 15.5 13C14.6716 13 14 13.6716 14 14.5C14 15.3284 14.6716 16 15.5 16Z"})]}),G_t=t=>_e("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:[O("path",{d:"M18.92 6.01C18.72 5.42 18.16 5 17.5 5H6.5C5.84 5 5.29 5.42 5.08 6.01L3 12V20C3 20.55 3.45 21 4 21H5C5.55 21 6 20.55 6 20V19H18V20C18 20.55 18.45 21 19 21H20C20.55 21 21 20.55 21 20V12L18.92 6.01ZM6.85 7H17.14L18.22 10.11H5.77L6.85 7ZM19 17H5V12H19V17Z"}),O("path",{d:"M7.5 16C8.32843 16 9 15.3284 9 14.5C9 13.6716 8.32843 13 7.5 13C6.67157 13 6 13.6716 6 14.5C6 15.3284 6.67157 16 7.5 16Z"}),O("path",{d:"M16.5 16C17.3284 16 18 15.3284 18 14.5C18 13.6716 17.3284 13 16.5 13C15.6716 13 15 13.6716 15 14.5C15 15.3284 15.6716 16 16.5 16Z"})]}),q_t=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M13.5 5.5C14.6 5.5 15.5 4.6 15.5 3.5C15.5 2.4 14.6 1.5 13.5 1.5C12.4 1.5 11.5 2.4 11.5 3.5C11.5 4.6 12.4 5.5 13.5 5.5ZM9.8 8.9L7 23H9.1L10.9 15L13 17V23H15V15.5L12.9 13.5L13.5 10.5C14.8 12 16.8 13 19 13V11C17.1 11 15.5 10 14.7 8.6L13.7 7C13.14 6.11 12.02 5.75 11.05 6.16L6 8.3V13H8V9.6L9.8 8.9Z"})}),Z_t=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M15.5 5.5C16.6 5.5 17.5 4.6 17.5 3.5C17.5 2.4 16.6 1.5 15.5 1.5C14.4 1.5 13.5 2.4 13.5 3.5C13.5 4.6 14.4 5.5 15.5 5.5ZM5 12C2.2 12 0 14.2 0 17C0 19.8 2.2 22 5 22C7.8 22 10 19.8 10 17C10 14.2 7.8 12 5 12ZM5 20.5C3.1 20.5 1.5 18.9 1.5 17C1.5 15.1 3.1 13.5 5 13.5C6.9 13.5 8.5 15.1 8.5 17C8.5 18.9 6.9 20.5 5 20.5ZM10.8 10.5L13.2 8.1L14 8.9C15.3 10.2 17 11 19.1 11V9C17.6 9 16.4 8.4 15.5 7.5L13.6 5.6C13.1 5.2 12.6 5 12 5C11.4 5 10.9 5.2 10.6 5.6L7.8 8.4C7.4 8.8 7.2 9.3 7.2 9.8C7.2 10.4 7.4 10.9 7.8 11.2L11 14V19H13V12.8L10.8 10.5ZM19 12C16.2 12 14 14.2 14 17C14 19.8 16.2 22 19 22C21.8 22 24 19.8 24 17C24 14.2 21.8 12 19 12ZM19 20.5C17.1 20.5 15.5 18.9 15.5 17C15.5 15.1 17.1 13.5 19 13.5C20.9 13.5 22.5 15.1 22.5 17C22.5 18.9 20.9 20.5 19 20.5Z"})}),X_t=t=>_e("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:[O("path",{d:"M1.23 22.27L15.23 17.27L6.23 8.26998L1.23 22.27ZM11.58 16.45L4.53 18.97L7.05 11.92L11.58 16.45Z"}),O("path",{d:"M13.76 12.8L19.35 7.20998C19.84 6.71998 20.63 6.71998 21.12 7.20998L21.71 7.79998L22.77 6.73998L22.18 6.14998C21.11 5.07998 19.36 5.07998 18.29 6.14998L12.7 11.74L13.76 12.8Z"}),O("path",{d:"M9.29 7.14998L8.7 7.73998L9.76 8.79998L10.35 8.20998C11.42 7.13998 11.42 5.38998 10.35 4.31998L9.76 3.72998L8.7 4.79998L9.29 5.38998C9.77 5.86998 9.77 6.66998 9.29 7.14998Z"}),O("path",{d:"M16.29 12.15L14.7 13.74L15.76 14.8L17.35 13.21C17.84 12.72 18.63 12.72 19.12 13.21L20.73 14.82L21.79 13.76L20.18 12.15C19.1 11.08 17.36 11.08 16.29 12.15Z"}),O("path",{d:"M14.29 6.14998L10.7 9.73998L11.76 10.8L15.35 7.20998C16.42 6.13998 16.42 4.38998 15.35 3.31998L13.76 1.72998L12.7 2.78998L14.29 4.37998C14.77 4.86998 14.77 5.66998 14.29 6.14998Z"})]}),K_t=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M17 20.3899C16.71 20.3899 16.44 20.3299 16.24 20.2399C15.53 19.8699 15.03 19.3599 14.53 17.8599C14.02 16.2999 13.06 15.5699 12.14 14.8599C11.35 14.2499 10.53 13.6199 9.82 12.3299C9.29 11.3699 9 10.3199 9 9.38986C9 6.58986 11.2 4.38986 14 4.38986C16.8 4.38986 19 6.58986 19 9.38986H21C21 5.45986 17.93 2.38986 14 2.38986C10.07 2.38986 7 5.45986 7 9.38986C7 10.6499 7.38 12.0399 8.07 13.2899C8.98 14.9399 10.05 15.7699 10.92 16.4399C11.73 17.0599 12.31 17.5099 12.63 18.4899C13.23 20.3099 14 21.3299 15.36 22.0399C15.87 22.2699 16.43 22.3899 17 22.3899C19.21 22.3899 21 20.5999 21 18.3899H19C19 19.4899 18.1 20.3899 17 20.3899ZM7.64 3.02986L6.22 1.60986C4.23 3.59986 3 6.34986 3 9.38986C3 12.4299 4.23 15.1799 6.22 17.1699L7.63 15.7599C6.01 14.1299 5 11.8799 5 9.38986C5 6.89986 6.01 4.64986 7.64 3.02986ZM11.5 9.38986C11.5 10.7699 12.62 11.8899 14 11.8899C15.38 11.8899 16.5 10.7699 16.5 9.38986C16.5 8.00986 15.38 6.88986 14 6.88986C12.62 6.88986 11.5 8.00986 11.5 9.38986Z"})}),mF=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M16 5V13C16 14.1 15.1 15 14 15H8C6.9 15 6 14.1 6 13V5H16ZM20 3H4V13C4 15.21 5.79 17 8 17H14C16.21 17 18 15.21 18 13V10H20C21.11 10 22 9.11 22 8V5C22 3.89 21.11 3 20 3ZM18 8V5H20V8H18ZM20 19H2V21H20V19Z"})}),vF=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M19 6.5H17C17 3.74 14.76 1.5 12 1.5C9.24 1.5 7 3.74 7 6.5H5C3.9 6.5 3 7.4 3 8.5V20.5C3 21.6 3.9 22.5 5 22.5H19C20.1 22.5 21 21.6 21 20.5V8.5C21 7.4 20.1 6.5 19 6.5ZM12 3.5C13.66 3.5 15 4.84 15 6.5H9C9 4.84 10.34 3.5 12 3.5ZM19 20.5H5V8.5H19V20.5ZM12 12.5C10.34 12.5 9 11.16 9 9.5H7C7 12.26 9.24 14.5 12 14.5C14.76 14.5 17 12.26 17 9.5H15C15 11.16 13.66 12.5 12 12.5Z"})}),yF=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M1.5 4.5H15.5L9.5 13.5V17.5H11.5V19.5H5.5V17.5H7.5V13.5L1.5 4.5ZM10.6 8.5L12 6.5H4.99L6.39 8.5H10.6ZM17.5 4.5H22.5V7.5H19.5V16.5C19.5 18.16 18.16 19.5 16.5 19.5C14.84 19.5 13.5 18.16 13.5 16.5C13.5 14.84 14.84 13.5 16.5 13.5C16.85 13.5 17.19 13.56 17.5 13.67V4.5Z"})}),_F=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M16 6V14H19V22H21V2C18.24 2 16 4.24 16 6ZM11 9H9V2H7V9H5V2H3V9C3 11.21 4.79 13 7 13V22H9V13C11.21 13 13 11.21 13 9V2H11V9Z"})}),xF=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M22 9.49001H17.21L12.83 2.93001C12.64 2.65001 12.32 2.51001 12 2.51001C11.68 2.51001 11.36 2.65001 11.17 2.94001L6.79 9.49001H2C1.45 9.49001 1 9.94001 1 10.49C1 10.58 1.01 10.67 1.04 10.76L3.58 20.03C3.81 20.87 4.58 21.49 5.5 21.49H18.5C19.42 21.49 20.19 20.87 20.43 20.03L22.97 10.76L23 10.49C23 9.94001 22.55 9.49001 22 9.49001ZM12 5.29001L14.8 9.49001H9.2L12 5.29001ZM18.5 19.49L5.51 19.5L3.31 11.49H20.7L18.5 19.49ZM12 13.49C10.9 13.49 10 14.39 10 15.49C10 16.59 10.9 17.49 12 17.49C13.1 17.49 14 16.59 14 15.49C14 14.39 13.1 13.49 12 13.49Z"})}),bF=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M12.915 16.035H12.885C16.375 15.635 19.085 12.675 19.085 9.08502C19.085 5.21502 15.955 2.08502 12.085 2.08502C8.21504 2.08502 5.08504 5.21502 5.08504 9.08502C5.08504 12.555 7.60504 15.425 10.915 15.975V19.915H4.91504V21.915H18.915V19.915H12.915V16.035ZM7.08504 9.08502C7.08504 6.32502 9.32504 4.08502 12.085 4.08502C14.845 4.08502 17.085 6.32502 17.085 9.08502C17.085 11.845 14.845 14.085 12.085 14.085C9.32504 14.085 7.08504 11.845 7.08504 9.08502Z"})}),Q_t=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M24 18L20.14 12H22L15 2L12 6.29L9 2L2 12H3.86L0 18H7V22H11V18H13V22H17V18H24ZM15 5.49L18.16 10H16.48L20.34 16H16.72L14.15 12H16L13.22 8.03L15 5.49ZM3.66 16L7.52 10H5.84L9 5.49L12.16 10H10.48L14.34 16H3.66Z"})}),wF=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M18 20C18 21.1 17.1 22 16 22C14.9 22 14 21.1 14 20C14 18.9 14.9 18 16 18C17.1 18 18 18.9 18 20ZM6 18C4.9 18 4 18.9 4 20C4 21.1 4.9 22 6 22C7.1 22 8 21.1 8 20C8 18.9 7.1 18 6 18ZM15 8.66L9.6 15H15V8.66ZM18.65 3C20.52 3 22 4.56 22 6.48V7H20V6.48C20 5.66 19.42 5 18.65 5C17.97 5 17.58 5.59 17 6.27V15C17 16.1 16.1 17 15 17H7.43C6.58 17 6.12 16 6.67 15.35L15.47 5.03C16.11 4.27 16.99 3 18.65 3ZM10 5C9.35 5 8.71 5.09 8.09 5.27L9.49 6.67L10.86 5.06C10.58 5.02 10.29 5 10 5ZM10 3C11.56 3 13.03 3.4 14.3 4.1L9.6 9.61L4.72 4.72C6.21 3.64 8.03 3 10 3Z"})}),qx=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M15.49 9.63C15.31 6.84 14.18 4.12 12.06 2C9.92 4.14 8.74 6.86 8.51 9.63C9.79 10.31 10.97 11.19 12 12.26C13.03 11.2 14.21 10.32 15.49 9.63ZM12.05 5.19C12.68 6.22 13.12 7.37 13.35 8.57C12.88 8.87 12.44 9.2 12.01 9.55C11.59 9.21 11.14 8.88 10.68 8.58C10.93 7.38 11.39 6.23 12.05 5.19ZM12 15.45C11.18 14.2 10.14 13.11 8.94 12.25C8.81 12.16 8.67 12.09 8.54 11.99C8.67 12.08 8.81 12.16 8.93 12.24C6.98 10.83 4.59 10 2 10C2 15.32 5.36 19.82 10.03 21.49C10.66 21.72 11.32 21.89 12 22C12.68 21.88 13.33 21.71 13.97 21.49C18.64 19.82 22 15.32 22 10C17.82 10 14.15 12.17 12 15.45ZM13.32 19.6C12.88 19.75 12.44 19.87 11.99 19.97C11.55 19.88 11.12 19.76 10.71 19.61C7.42 18.43 5.01 15.62 4.26 12.26C5.36 12.52 6.41 12.97 7.38 13.59L7.36 13.6C7.49 13.69 7.62 13.78 7.75 13.85L7.82 13.89C8.81 14.61 9.66 15.5 10.33 16.54L12 19.1L13.67 16.55C14.36 15.5 15.22 14.6 16.2 13.89L16.27 13.84C16.36 13.79 16.45 13.73 16.54 13.67L16.53 13.65C17.51 13 18.6 12.52 19.74 12.25C18.99 15.62 16.59 18.43 13.32 19.6ZM8.99 12.28C8.97 12.27 8.95 12.25 8.94 12.24C8.94 12.24 8.95 12.24 8.95 12.25C8.96 12.26 8.97 12.27 8.99 12.28Z"})}),RS=t=>O("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M12 3L1 9L5 11.18V17.18L12 21L19 17.18V11.18L21 10.09V17H23V9L12 3ZM18.82 9L12 12.72L5.18 9L12 5.28L18.82 9ZM17 15.99L12 18.72L7 15.99V12.27L12 15L17 12.27V15.99Z"})}),SF=t=>_e("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:[O("path",{d:"M14.5 11.75C15.1904 11.75 15.75 11.1904 15.75 10.5C15.75 9.80964 15.1904 9.25 14.5 9.25C13.8096 9.25 13.25 9.80964 13.25 10.5C13.25 11.1904 13.8096 11.75 14.5 11.75Z"}),O("path",{d:"M9.5 11.75C10.1904 11.75 10.75 11.1904 10.75 10.5C10.75 9.80964 10.1904 9.25 9.5 9.25C8.80964 9.25 8.25 9.80964 8.25 10.5C8.25 11.1904 8.80964 11.75 9.5 11.75Z"}),O("path",{d:"M22.94 11.34C22.69 9.83 21.58 8.6 20.13 8.17C19.6 7.05 18.85 6.07 17.94 5.26C16.36 3.85 14.28 3 12 3C9.72 3 7.64 3.85 6.06 5.26C5.14 6.07 4.39 7.06 3.87 8.17C2.42 8.6 1.31 9.82 1.06 11.34C1.02 11.55 1 11.77 1 12C1 12.23 1.02 12.45 1.06 12.66C1.31 14.17 2.42 15.4 3.87 15.83C4.39 16.94 5.14 17.92 6.04 18.72C7.62 20.14 9.71 21 12 21C14.29 21 16.38 20.14 17.97 18.72C18.87 17.92 19.62 16.93 20.14 15.83C21.58 15.4 22.69 14.18 22.94 12.66C22.98 12.45 23 12.23 23 12C23 11.77 22.98 11.55 22.94 11.34ZM19 14C18.9 14 18.81 13.98 18.71 13.97C18.51 14.64 18.22 15.26 17.85 15.83C16.6 17.74 14.45 19 12 19C9.55 19 7.4 17.74 6.15 15.83C5.78 15.26 5.49 14.64 5.29 13.97C5.19 13.98 5.1 14 5 14C3.9 14 3 13.1 3 12C3 10.9 3.9 10 5 10C5.1 10 5.19 10.02 5.29 10.03C5.49 9.36 5.78 8.74 6.15 8.17C7.4 6.26 9.55 5 12 5C14.45 5 16.6 6.26 17.85 8.17C18.22 8.74 18.51 9.36 18.71 10.03C18.81 10.02 18.9 10 19 10C20.1 10 21 10.9 21 12C21 13.1 20.1 14 19 14ZM12 17C14.01 17 15.74 15.77 16.5 14H7.5C8.26 15.77 9.99 17 12 17Z"})]}),J_t=t=>_e("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...t,children:[O("path",{d:"M17.5 7.5V9.16667H15.8334V2.5H14.1667V4.16667H12.5V2.5H10.8334V4.16667H9.16671V2.5H7.50004V4.16667H5.83337V2.5H4.16671V9.16667H2.50004V7.5H0.833374V17.5H8.33337V15C8.33337 14.0833 9.08337 13.3333 10 13.3333C10.9167 13.3333 11.6667 14.0833 11.6667 15V17.5H19.1667V7.5H17.5ZM17.5 15.8333H13.3334V15C13.3334 13.1583 11.8417 11.6667 10 11.6667C8.15837 11.6667 6.66671 13.1583 6.66671 15V15.8333H2.50004V10.8333H5.83337V5.83333H14.1667V10.8333H17.5V15.8333Z"}),O("path",{d:"M9.16671 7.5H7.50004V10H9.16671V7.5Z"}),O("path",{d:"M12.5 7.5H10.8334V10H12.5V7.5Z"})]}),txt={pedestrian_friendly:q_t,transit_friendly:gF,cycling_friendly:Z_t,car_friendly:G_t,groceries:xF,restaurants:_F,cafes:mF,shopping:vF,wellness:qx,parks:bF,greenery:Q_t,vibrant:X_t,nightlife:yF,quiet:K_t,historic:J_t,high_schools:RS,primary_schools:SF,daycares:wF},Uwt={pedestrian_friendly:[],transit_friendly:["rapid_transit_stations","train_stations","bus_stops"],cycling_friendly:[],car_friendly:["car_fueling_stations"],groceries:["groceries","groceries_specialized"],restaurants:["restaurants","healthy_restaurants"],cafes:["cafes"],shopping:["shopping"],parks:["parks"],greenery:[],vibrant:["art_culture_science"],nightlife:["nightlife"],quiet:[],historic:[],high_schools:[],primary_schools:[],daycares:["daycares"]},EF=({options:t})=>{const{options:{score:e}}=Sh();return H(Kn,{SVGElement:txt[e],fill:`var(${t==null?void 0:t.color})`,height:t==null?void 0:t.height,width:t==null?void 0:t.width})};EF.defaultProps={options:{color:"--ll-color-on-background-variant1"}};const ext=()=>{const[t,e]=m.exports.useState(!0);return m.exports.useEffect(()=>{e(!1)},[]),t},nxt={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0},rxt=()=>{const t=ext(),[e,n]=m.exports.useState(null),[r,i]=m.exports.useState(nxt),o=m.exports.useMemo(()=>t?void 0:new window.ResizeObserver(s=>{if(s[0]){const{x:a,y:l,width:c,height:u,top:d,left:h,bottom:f,right:p}=s[0].contentRect;i({x:a,y:l,width:c,height:u,top:d,left:h,bottom:f,right:p})}}),[t]);return m.exports.useLayoutEffect(()=>{if(!(!e||t))return o==null||o.observe(e),()=>{o==null||o.disconnect()}},[e,t]),[n,r,e]},ixt={en:{LOCATION:"This Location",CITY:"City",NEIGHBOURHOOD:"Neighbourhood",AVG:"Avg."},fr:{LOCATION:"Ce Lieu",CITY:"Ville",NEIGHBOURHOOD:"Quartier",AVG:"Moy."}},oxt=N.div`
1226
- position: relative;
1227
- display: grid;
1228
- grid-template-columns: ${({$isUsingIcons:t})=>t?"auto auto 1fr auto":"auto 1fr auto"};
1229
- align-items: center;
1230
- grid-column-gap: ${T["--ll-spacing-x-small"]};
1231
- width: 100%;
1232
- `,hy=N.div`
1233
- height: ${mn*2}px;
1234
- width: 100%;
1235
- border-radius: ${mn}px;
1236
- background-color: ${T["--ll-color-surface-variant1"]};
1237
- position: relative;
1238
- overflow: hidden;
1239
- `,fy=N(Yw.div)`
1240
- position: absolute;
1241
- height: 100%;
1242
- border-radius: ${mn}px;
1243
- background: ${({$renderForPrint:t})=>t===!0?vt`
1244
- ${T["--ll-color-primary"]}
1245
- `:vt`linear-gradient(
1246
- to right,
1247
- ${T["--ll-color-primary-variant1"]},
1248
- ${T["--ll-color-primary"]}
1249
- )`};
1250
- `;N.div`
1251
- position: absolute;
1252
- height: 100%;
1253
- top: 0;
1254
- left: ${({val:t})=>t*10}%;
1255
- transform: translateX(-1px);
1256
- border-right: ${({markerType:t})=>`4px ${t==="city"?"solid":"dotted"} ${T["--ll-color-on-background"]}`};
1257
- `;N.div`
1258
- position: absolute;
1259
- top: ${({position:t})=>t==="top"&&"-18px"};
1260
- bottom: ${({position:t})=>t==="bottom"&&"-18px"};
1261
- transform: translateX(calc(-50% + 2px));
1262
- left: 0;
1263
- `;const zM=N.div`
1264
- display: flex;
1265
- max-width: ${({maxWidth:t})=>t}px;
1266
- `,BM=N(ae)`
1267
- margin-right: 4px;
1268
- `,jM=N.span`
1269
- flex-shrink: 0;
1270
- `,sxt=({options:{locationIcon:t,cityIcon:e,neighbourhoodIcon:n,renderCityAvg:r,renderNeighbourhoodAvg:i}={}})=>{const{options:{scoresData:o,score:s}}=Sh(),{options:a}=oF(),{scoreVal:l,cityName:c,cityScoreVal:u,neighbourhoodName:d,neighbourhoodScoreVal:h}=TS({score:s,scoresData:o}),{translations:f}=qe([ixt]),p=!!t||!!e||!!n,[g,y]=rxt(),v=H("div",{}),_=x=>x?H(Kn,{width:20,height:20,SVGElement:x,fill:T["--ll-color-on-background-variant1"]}):p?v:void 0;return l?H(Jr,{children:jt(oxt,{$isUsingIcons:p,ref:g,children:[jt(Jr,{children:[_(t),H(ae,{variant:"p",weight:"--ll-font-weight-bold",noMargin:!0,color:"--ll-color-on-background-variant1",children:f.LOCATION}),H(hy,{children:H(fy,{$renderForPrint:a==null?void 0:a.renderForPrint,animate:{width:`${l/10*100}%`},transition:(a==null?void 0:a.renderForPrint)===!0?{delay:0,duration:0}:{delay:.3,...Bp.transitions.spring}})}),H(ae,{variant:"p",weight:"--ll-font-weight-bold",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:l})]}),h&&i!==!1&&jt(Jr,{children:[_(n),jt(zM,{maxWidth:y.width/2,children:[H(BM,{variant:"p",lineClamp:1,noMargin:!0,color:"--ll-color-on-background-variant1",children:d||f.NEIGHBOURHOOD}),H(jM,{children:H(ae,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:f.AVG})})]}),H(hy,{children:H(fy,{animate:{width:`${h/10*100}%`},transition:{delay:.5,...Bp.transitions.spring}})}),H(ae,{variant:"p",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:h})]}),u&&r!==!1&&jt(Jr,{children:[_(e),jt(zM,{maxWidth:y.width/2,children:[H(BM,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:c||f.CITY}),H(jM,{children:H(ae,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:f.AVG})})]}),H(hy,{children:H(fy,{animate:{width:`${u/10*100}%`},transition:{delay:.4,...Bp.transitions.spring}})}),H(ae,{variant:"p",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:u})]})]})}):null},axt=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 19H11V17H13V19ZM15.07 11.25L14.17 12.17C13.45 12.9 13 13.5 13 15H11V14.5C11 13.4 11.45 12.4 12.17 11.67L13.41 10.41C13.78 10.05 14 9.55 14 9C14 7.9 13.1 7 12 7C10.9 7 10 7.9 10 9H8C8 6.79 9.79 5 12 5C14.21 5 16 6.79 16 9C16 9.88 15.64 10.68 15.07 11.25Z"})}),lxt=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z"})}),cxt=N.div`
1271
- display: flex;
1272
- align-items: flex-start;
1273
- justify-content: space-between;
1274
- `,uxt=N(Xl.Content)`
1275
- z-index: 3;
1276
- `,dxt=()=>{const{options:{scoresData:t,score:e},onChange:n}=Sh(),{textVal:r}=TS({scoresData:t,score:e}),[i,o]=m.exports.useState(!1),{translations:s}=qe([fF,hF]),a=l=>{o(l),n&&n({type:"tooltip-toggle",data:l})};return r?jt(cxt,{children:[jt(ae,{noMargin:!0,color:"--ll-color-on-surface-variant1",children:[r,"."]}),jt(Xl.Root,{open:i,onOpenChange:a,children:[H(Xl.Trigger,{children:H(Kn,{SVGElement:i?axt:lxt,fill:T["--ll-color-primary"],height:20,width:20})}),H(uxt,{children:H(ae,{noMargin:!0,color:"--ll-color-on-surface-variant1",children:s[`${e}-description`]})})]})]}):null},hxt=t=>H(sF.Provider,{value:{...t},children:t.children}),Wwt=Object.freeze(Object.defineProperty({__proto__:null,Badge:v_t,Title:pF,Icon:EF,BarChart:sxt,Description:dxt,Root:hxt},Symbol.toStringTag,{value:"Module"})),fxt={en:{LOCAL_LOGIC:"Local Logic",POWERED_BY:"Powered by"},fr:{LOCAL_LOGIC:"Local Logic",POWERED_BY:"Propuls\xE9 par"}},pxt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABNwAAADqCAYAAAB5oFizAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAJstJREFUeNrs3c9uHEmeGOCsGQG6zGL4BlNj+DA+NfUEKp0ae1iI5Auo9AKWdFrYMEDy0oBPEucFVDrMwoddisJe9qYS4INvYt/sw6JrfPLB8HLgg01DaDqDjGomKZJikRH59/sa1UXxT1ZmRmTGL34ZGVkUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAx4xyLvwPP/xxvTgp1pYf9PPJyVcfelJ+L/w3OrnwzeLk8sLi355UfjCq/OPnk+UGnVR+Xn7/7K+K4uTiBv9c+dt//uFv56oCAAAAACk8yLz81+Vr0vqd8PDhvHzb/HJ8fKRKAAAAAHAfv7ILTk3K108PHj7csCsAAAAAuA8Jt3Ph1tf3Dx4+fFu+1uwOAAAAAO5Cwu1r0/L1+cHDh+t2BQAAAACrknC72rg4S7rt2BUAAAAArOKBXXCj7d+M/9Xjf/Mffvg0Gp0/W7XyZcxYxm+MKk9gLX+p+jTWX8V/nCz/ZjSqfL38/ujC7y+fozqqfOgovk5Gy6+vXq8LXxcX/lEue1T9Z7ms0S/bcjKqbtfZOvz6dF3O1vfX8Xeu3I7KMs8/YnRpvW6xvpd+MLq07Oq+KC6sy+nXiz99//1M1QUAAACaIuH2rR30m7+aFB140iq/mJevmd0AAAAANMUtpQAAAACQkIQbAAAAACQk4QYAAAAACUm4AQAAAEBCEm4AAAAAkJCEGwAAAAAkJOEGAAAAAAlJuAEAAABAQhJuAAAAAJCQhBsAAAAAJCThBgAAAAAJSbgBAAAAQEISbgAAAACQkIQbAAAAACQk4QYAAAAACUm4AQAAAEBCEm4AAAAAkJCEGwAAAAAkJOEGAAAAAAlJuAEAAABAQg/sAgAAAABS29zamtzm997v788rfzMu38bV733jM9bKt/XydVj+zVFbtl3CDQAAAIActi/9exzfF5e+P698PQ1/t7m19eSWSbfX8W+eXFpOoyTcAAAAAEju/f7+k+q/N7e2duL3d77xp4vy9aL4RgItjm7bKL5O4DXOHG4AAAAAtMlB+ZrE20tvMo2/u2jbBki4AQAAANAmfynOEmkvvvF74efv2rgBEm4AAAAAtM1ucTaC7UqbW1vhVtKj2z5coW4SbgAAAAC0yvv9/UX5dri5tTW95lfC6La9tq6/hBsAAAAAbRQSal/dVhrndlt/v78/a+uKS7idObILAAAAANrj/f5+mMdtbXNra3LpR9tFi0e3BRJuZ8Jjahd2AwAAAECrhMTas+U/Nre21sq3MH/brM0rLeFW+nJ8fFi+PSrOnoABAAAAQDvMytdGvI00mJavgzjHW2tJuEVfjo+PytdmcfYUDAAAAAAa9n5/P0wDFgZITeO3wpxu79q+3hJul3w5Pt4pzm4xNa8bAAAAQPPC4KgXm1tb4VbSo/f7+/O2r7CE2xW+HB+Hggu3mB7aGwAAAADNibePhhzN26LlD0tYeqDYrvbl+DgU5qMHv/mr1+X7uj1yamIXAAAAAA0It5GO3+/vz7qwshJu3/A//8t/flW+7IjS3/zDP57YCwAAAMAdze76OyHRtrm1dd2diK/K16JNGyrhBgAAAEB2t3my6E2/U/7scJXvN8kcbgAAAACQkIQbAAAAACQk4QYAAAAACUm4AQAAAEBCEm4AAAAAkJCEGwAAAAAkJOEGAAAAAAlJuAEAAABAQhJuAAAAAJCQhBsAAAAAJCThBgAAAAAJPbALANprY2trvXxbi/+sfl21iK/g6GB//9Ce62Q5zpdflGU4t9cAetkejMu3cfxn9euqo/J1qE1QjnCHePIw1r3Tr8t6d2TPNUfCDaA9DWh4fRffr2tEb7Os8LaIr9Do/li+5mWDu7CnW12O25fKcBmoK0OA7rUH40o78Li4Pilz23Y9mMe2fdkmuMDW/XI8lIijhnrn3NGQUc6F/+GHP34sTorJ8oN+Pjn56kNPyu+F/0YnF75ZnFxeWPzbk8oPRpV//Hyy3KCTys/L75/9VVGcXNzgnyt/+88//O1IVfi2v/mHfzz5ddibo7PdeXo/8mh0/nWlUo1G5/8aVfbuqPKPi9+/+nfCD0aXK2z8+Sj+73xdTr+e/+n7758orRtPumvx5J3KQhLgzuWwUb6elq9wnlyr4WMXscH9VL4OXPFKWo6P4/taTWX4IQZMRwPe95OEi+v9FeBLV8XvTQex18eDkdJ3L4dquz6u6WMPKu26eCxdOS7b9brKsdq2H3Z8/02SVvCBtDc1nz+OKnVOnyAjI9xgeEKn62PC5e2Wrx279VYNaTXJttHAKoTGexpfb8v1CUH6h7KRnSmdOwVFzxoox2oZFrEM35VleDDA/f/eeWwlr2MQn4qLle2Ssl0PnTAXL1fvJNdx0eXKVYiv1+W6hETNu/I104FeuRxDfPyiwXKcLM/R5bosirNE6l5Hk6gfEy9v1ON6N6nEk3XWu7XKueOXPkEh+ZachBtA/sZ0HIO4aUNB3I1Berl+oSO+FwP0hRK7thxD2b2MZbnWsjJcxE7Wm4EESi8SLy8EuztqObBCezCN56Jxi1ZteQtaSL7NirOEjdGKN5flshzXW7Ra4xhvvCzXb16cXVibKa1enT9C/LbdovNHNXEfkm+7+gRpSLgB5GtQx7ExnbZ8Vdfiem7HAF0j+3Vg9Lpo7qr3bYPzUIYvyvUNydPeJt7icTVJvf/CKJWhjRQE7tQetO3Cy3VC7DGNCZtdt4F/VZbTol0Jj+uE9m5Sru92LMeZ0nP+yNwnWJ479AkS+JVdAJC+QS1fb8svfyran2y7KkD/qVz/nRgYDL0cdyrl2IX9sUyehjJ82dOiedGx5QL9aBNexvZguyPtwdKkfH0s1/9jvGAx9HIMo8JDOYY4rUv7I6xruPXvp5gspFv1btrB84c+QQISbgB5AvKuB0PLpM3GQMsxdFA+d7BjtXQ6Kq/cjs9xXpq+lMtaxmNrojMKXNUehHNpcTbSucudzsmy8zzQcgwjmcPcYmH+zy6f68O6v5VA7Uy9W4/17m2Hzx8hFv6c+mEYQyHhBpAoERAb1K4H5FVhO96X2/V+KFe2YjmGMvzY8YB86fQhKT26Gp77tl6j3IBqm7BsD9Z7tFnbfbsYc4tyDBdDQ9K0TwmDsC2fezyavQ/1bqdH9W4c48nXSnY1Em4A929QQ0P6U88CuQubWJxdFV/veTkun+Dbt+A1JKjextucO99RzLz8qdsmgDga6nMP24Ol0N71PlkTL6KFEW19uhh6uX1/PaQLox2qdx9riFma8DKOrlTfbknCDeB+jWoIVj/2NJC7HNR97uu8IfHW2b6NYrhs2uWkW0xsj2uo54O8jRr45VxzmozqeXuw9LonF2OuK8ePAzmnn8YwkiCtqXd9vghfFOfzQqpvtyDhBnD3RjUEqUMbWv22b8PJYxIxXAEfQuDQ5aTbs5o+x22lMNx2PbQHnwfSHlTbhc996jxXkm3rAyrHsK3bjuJG693y4u3aQOqbpNstSLgB3K1RDUmL6UA3/2VfrojHztXbgZXftGsjFePE0HWt87qJgWGQ7foQ24PedZ4rybahJQIOy9euI7nR88f7gdW7cKyZ0+0bJNwAVm9Uh5xsW5p2Pek24M7V7GB/f9a1+lbz5z0rgKF1lt8OfDd0Puk24GTbonw9Kdv2I0ez80eNQpL3lRpwMwk3gNUaVcm2c9P4BCbBUXeEZNvzDq73swbqttskQGd5aJYJqy6W41CTbSHJtinZ1mi9G2qyTZL3FiTcAFYLyqf2xAXbHbw9cVJItnXtuBs38NEvHd4wiM6yW6IuWu/aCPZ4gWSIybYgJD0OVdvGzh8fB7jpkm0rkHADuF2jOilcAb/O6xh0dKEcx8XZHBtD09WRbcGzgX0uUE97sFYMb86l25rGp7B3xVCTbc8l2xo9f7wthjlXoGTbCiTcAG4flHO10/3TkVvwhti56myyLSZyJw19/Dg+cQzop9BZHtsN1+rExbT45PT1AZbPqw7Ox9qr42OA9U6y7Q4e2AUAtwrKm0zSHMbXn+O/5/F9rdLYfxe/bqrzED43PI6+tZOnxvnmmg6OQjmGQOXTFT/7bVy/9YT1rcsj24IXLfj8A6dA6Jc4eqvJhPoivj5dahuKShvwu0qb0GT886jF5Tgpmrv9/yjGY5+W5XfVaLPKU68nMVabJGjjQ9v+xpHcWL0L545pw6uxPIeEOveXK37+OMbmqfoFkm13JOEG8O1GtYmgPHTyP4T3bzRuB5fWdxyDuacNrPfL8vM/lOs7b2E5hg7LdkMB+bIs57cNVGI5bsSA6a7l2OlkWxwx2fQIs0koi3I/LpwNoTft+lpD7UHosL6L7fpN55T5FetbbdfrvAAY5nPbKdd3p6XlWPdUH8s2fe+2t3JWYqL5pdjyruV50PELaX04fzQ1xcxt+wap+wWSbfcg4QZwszonUw4N2V5xlii5Uwc//t0svGIjGzoV05r316OBl2MQymH3rrd7xHIMV6/fxHIMZfhihcB81oOAfFq04/bfsN899h761a7XeW4J7cDeXefaip3c0NE+KNuDcC56uWJ7cF/h4UizFl54CPthXHN89iZF0qFcxl3LM9QhybZhnT/uVfcu9QvWKvHkbY8dybZ7knADuEa8BbGuYC40hq9SNmixkX1ebsduDBDqGC0UroZP2zSvSHzK5aTGwGg35a0esRx3yu0Iy9wuvn37zKwnV79ftGQ9Qv2RcIN+tOvrRX0XoeaxPZgnbA+OKu3By6K+kXrhc563qBzHNbYRBzE+WyRf8MXy/Fb7LvExrPNHEOL3N6nKPC5neTF3p/h2oledS8BDEwCublTXagrmjmJj9jxXgxaCxPK1WX65WZzPEZM7MG+TutYnBOW/zzWvSqgf5Sskfp7cUI69SLbFOW/GLVmdtZi0BbqvrtHOIUHzJNcUC7E9CB3mR7FTnNu0MhdZW9r13KOMQjsbYrPN3KP7LrXvixvWReJjGOePcEw/Csd4xr7BTqxvhzesg2RbAhJuAFd7WUMwFxqz39c151m8haGO4HzclgRFXI9xTZ2rzToCk1hfrirHWY/mdXlhfYDE7cGkyD/a+Sh2lGuZ0D7epho6zbOhnAcr0yzkLscndY/Wv6Z9X67LoaO49+ePZSz3qI7yrpw/Dq/on0i2JSLhBtBMYDlrojGLV2lvuqKVSltGudWxHs/rflpYpRyPKgFaL5JtlQdGtMl6vJUE6K5nmZffSGIkjo56XuRPum3E83Pf2/XlxdBGElwxLqzGaa8k2wZx/gh2647lrqhvkm2JSbgBfN3hnxZ5R7fNc95CeofGNYdxfApXk+UYPj935+B5U/PVVcrxTc+eWJYq2b2cq6Rt6wXU3x6EtmCa8SMaH4VUU9Jtu+FyzP306qM2JBsq7ftmm+bEdf7IareppwFX6ttBIdmWnIQbwNdyXsUKwfhm0xsYG9Pcc7o963E5Bq+aDoRD5y7O+9InqYLaEDjupVyv2NkDhnteuUprbvmLSbd5xo9oevRx+Py1zOXYimRDHLl44NDt/fkjmDWVbLtU3zYl29KTcAOoRnJnV7EmGYO55y0K5hZF3uTfRlMJihqugh/UfRvpQI6/acLO1LtYx1N2gqdKCTop5wWY3Zbd8pfzYlrTD5HJOdLYrZs0cf447NldClwi4QZwqc8/oKB8OUHvm47uz6Y+9zRx6lBpdWdqUXkYyV4L1w+oqzE4m39xnGnx87ZdfIkX9XK2UU8bKsdQhusZy3HmaKHm80chnuw/CTeAi3JdxVq0eETUbpHvavjThrYp5+e+MuQ+W1CbqjN1cM3X99X43ITA6qeXoXWW462I80yLnyhH9AvSxN9GVfafhBvAeYd/rch39XS3rdsdk0d7uXZrzwJzV8HzSTl6bO9S/U6ZdHumqKBTHmda7izett5Wueb3DLeVThrYnlwX0t60vBxpVq66nvrBTrSUhBtA/kZ10YEkzZsi0yi3ugPzzJ+35zDJUmYh2T1NtLjDKzpP71Kubry1CRh2277b5o2OI2fmHdunTXymdp3rYpPQ1ue6EL/nbolhkHADOJetUW37hsdGf9aTwDzX5y08MSyblzmPt1huKQNbc7lBNzrMudqDg46MisoVfzzuSTnOjG6jgX5BYHTbQEi4AeQPIGcd2f53mZb7XU/K0VXwfFLepnmw4vfvYqrIoBMmmZb7oQsbHy82LDIser3mTcn1ee8cIjRQ72ZGtw2HhBtA3oZ13pVGNd5+kiMwH/ckQDK6LYP4EIJUdeSmIDZlxyrMYTRVetB6v9MeZFnXtZpvrc9x4e6o8jRruEquC7gf7NrheGAXAJwHkBrV08D8ZeJlrvegHA/ddpLNizqOt9CxKjuIoQzHCdd7pvig1cYZljnv2OiUTxna9eW+XXS4HJMmIjM/eGvVeMXoqfbWu8L0JMMi4QZQZJ0fpGuP+84SmIcr4XUkrDKW49xRkqW8QjCbqsyObhHEpkwor5frvx5HhgLtlCMB8qlLOyCcF8tzVa59W1fbOOlAOYb98bEFRf5EzJLMWDzJfbmlFCBvoNu1hjXX+o47XpQ/qs1ZpBzdNrvF7+y1eP2B9HKMeO5ih/mwI/u26/uEnsh4y/Qne3dYJNwAzuS4Ct65YC7ehtDlWxEmAvPOBLOhszZNuMh3t6jfi8RluRG3A2jnOSaHRQd3x6LD5ZjlNk2jk/mGsWORFCTcAM7kCMy7mrjKEYSud7lyCMzz9KMSHneHK5RR0ocnFJ5YCm2VK1HTxQ5zjlHaj2ta9yzzsjo8aMjCLhgWCTcAjWpXA2a6bTvhslZJos0Sb4fbSgG6xUMF0DegFhJuAPn8WSAqOOJr8eEW44SLnN32F+Nt0ymfEDbO+LAOoF3mHV1vI7pgNVnadU+8Hx4JNwAu84CAiwRH6T1LGb/GJNoqPiTeHqPcgDZzIQ2gARJuAEBt4pO/pgkXuXLy7GB/f5a4A7qR8YlmAAB0kIQbAJc9tgsuGNsFSU0TLusoJs/u4qDF2wW0U1fnI11XdAD1k3ADyEfiqh/GdkFSSW8nvcffvku8XW4rhf7rauLKg4tgNfMcC93Y2nIsDoyEGwB1MGEzIdCcFmkTmHt3/cOD/f0QTC9Sdmjj9gEMwcIugJUZbTowEm4AZ3IkhMYd3ReTDMvs9ITNG1tbAqQ0Uo5uWxzs79/3uD1o8fYB9zm4z5Lq2oMzOUbc1/Uk9hzxw8QRQkOMcBsYCTeAfAHduGtDx3sw8fs803LHDpEkndSUnZy9lizjQidOchZ6b2yd65Pgwsp1bZLEBzdZZFquGGFgJNwANKxVk0wB87zj9UOAdH+p5zg7SFAvw3F/2PLtBO4uR7KmU/OzxsTSuCP7VrtOK8T4IAfzOw+MhBtA3ob1acd2RY5A4KjGcpwLkFrb4dtIuMh5wmM29cMTNoycgNZwO2K+9a1zqoi5cqQBOfoGEr0DI+EGcC7H1VqBef1XwXMESBNJlHuZFmnnLUmZJEs9j1vq5CJwd59ydJg7Nv1Clgt/NY9cz9Gup76QFhKQ83u8jhyurZOj3oUHLE3s2uF4YBcA/CIkhlJfeToNzDOOoEsmzj01zrRf6w6QcmxHSKLMHCZ3kvo2y7dlfX3b4u3dVlegtx3mZXvwpiP7IMcFgLrb9R8zLPP0QloZnyVJdMW55p7cIwb7WBh11zafMpVJSILP7d5hMMINIG9AF3RlTqcXHduvNwVIOXgC5d06EaGzNx7YZo9dwYZWyNWp7UR7UJ6HpkWepyLWnXDL9XlGI9NEvZvatcMh4QaQPzCftv12xAxzbNWxX+v+PE+g7HHH1HZD/8TR5Tlu1VvvSFI913noU83lOO/Y/kG/4CZrMRnOAEi4AZwHdIeZAvOQzHrZ8s1/WeS5Cr6o+3bazPPKeALlCuI8R0MdQTDt2DxP0NvmPdNyt1t+/p0U+W5RnDewSTk+04U0boonQ58g1yi3bXt4GCTcAOoJzF+0dZRbTAq86Nj+bOpzp24VXK3eD3z7p6oANC7XaKxJy9uDXB36RUPz0n7o2H6iH+aZljs2ym0YJNwA6gno1loc1L0u8oxuy9nRaaocBeerGXow6XYlaF7OCz+v27jBZUc+jFqfdHB/NvG5Gy6kcYN3GZf9uu1TznB/Em4A1Whufz8EdLkezf6ybUFdnNA+1y1/i7g/+9bBmsTODDfXrWmRL5HbFa5gQ/Pt+lHGNiHM5bbTsnPvuMh7YehdQ+W4KPLd3vfakcI19S7UuUWmxYcY6a293G8SbgBXtK8Zl/2+LVez4rwlbzu6H5vsYJ0G522Z9yUkTVt6hdR8d2eMcoPmZR313JaLabEteF/ku9hxGBMQTdnLtNyQOJV04zo5k8wbbbkwF+NJcxomJuEGUF9AV8Qg+GPTCZL4+W+LvCOQ9npcjkUsx/WGy3EaO1cf25R0i51PQduZiYcnQLMO9vdnRb5RKsH7lnRUX2c+9zbdrue+C2HqaOEKs8zLf9t00r5yEf6jpFtaEm4AXwfm4ertPONHrBcNJkji537MHJQfNDSpcrUc55k7WGtNBibxc19X6tTnFgVJRnVdZN4/aF7OUSqNtgexTQid5WnGj8g9cvw27XrudXgr6cYV9S7EkrPMH/O+4XjyYzyPNX4u6xsJN4Cr7WZefiNJt9iAfi7yjz7aG0g5NhKYxLn3lsHR0rhox6i7tcLDEr7aLSZGhsa9KfKNjmqyPVgrX+9rOO/uxYRX39t1STeaiGvD+eNz3XXvUrLt8rnMcZCAhBvAFeLoqHnmjwmN3E91DSOPDWdoVMeZP2oe918bynFW5B3lVg2SXtZUjjvF9XP0tOHKpAdKXF0uG3YDNNoeHNXYaa6rPVh2lnOfX8K+e9OScgxt+izzx7w1pxuX6l3uu18u1L06LtJV+gXXxZOSzwlIuAFcb7eGz1gmSLI1rmH+qHj1O/ecbXXutzauTyjDj7kSqKFjVb7C6MTtW9apppJubie9mttKoXm5R7ldbg+ynIfjqLadop4R60FbRrdV2/Xc6xPmdPvs1joqntf0OSFh/zljPLlKv0DS7Z4k3ACuUdMot2rjGka77aRKvMUGNTSmPxX1ja6ZtWV0W6UcZzWWYwiOQicr2QS4lXJcpWPVyO0A8VbXsbPHlcZteZIhDLhdD0maui7CTGKn+W2qB6dUEm2hXa8rib8oWjK6rVKOYZ3qmLpiPXUZ0unzR6h3s7pihhjHfYyxVcrzx+cV+wWSbvfwwC4A7ulZeRJ+3NBnh8fTv8r8Gc9jw1THyLC1GEBvl/s0NOgfyu1baXLgmKwLjejTov5b2EJH5lVL6+mrWI51CYHJtCyPcAtCmKh7Hm9HuG05jmNn7Vl8v2t9CkHSMulYhxdOiTefL4v6kr9ZhU5Ak8fzKscTqycZmizfsmyfZF7+m3L7wrFY18ilZXswr7QHixWPt2q7vtbA8XbUwnr6Jp5TxzWWYYjJ3q0am32jbNdj22kkXTe8qvk4DDFgeNp5OGccxL7BfIX6lapfEOLJ72rod/WOhBtwX+OixyNaQlBcNjDhKmrdt4Mtg7sidtBD5/Iv8f3oiv3/uxisNRmw7bY0KD+de6Pcl7sNlOMvZVJ+/lEsv2VZXuVxhmOqlqRbJUmY0qLIPwdfnee2cEy3tfN6l05AUzyAIv/+nfR8G5cX0+o+ZibxfLlsC/58xXluLbYbv43vTZbFQcrkUuJ2/ajcj6Ec60wOh4TFRmzPQ2z2qTi7+DtfIfmxjAu+K5pJoJKm3r1vICYJd8O8rPQNFvEccpXv4t+k7BeEz14r98FzNeH2JNwAvt247sRRfE0FvZMOdH5CUP6mA+X4tGguKbnWYFnWkXTLkcx81VRnr/JE39RCwLzjzAqNtgdNXYRZavoC2W2EpNLzlpfjvCzHN0X9D+tZjhraiO3Fcn8d3vD7RrD15/xxEEc7NvkwpKb6BdMYT0q63ZI53ABu53lRz0TLXbRoe1CuHE9le+pa5ZaFpPWqyZEV8ZbFHLcteqgEtKPTvFP05BbvTDa7MBo33uLWhlvMqxfVLr8k2/rZL1gMdNuncW5hbkHCDeB2AV1oVDftia8cdSUoj+UYgvIhzz/xMlOQlOO2mDbcxpRjUu5xqgmQgXvbHHCn+Sav2vYApG94UrgoSr3x5FE8fwy13k3jAx3cEv0NEm4At29cQ/BpCPXXQflhx8pxVtT3lLq2Bkmpk245bsvaa0N1yRRMe7gE6DS31aztU0RcU46SbtRd74Z+EXdSnD1JVdLtBhJuAKs1rrNi2Mmaquc1Pv0ydTnuFPU92r2NpnGOsnsrlxMCrnHi9Ttc9Sl+GTtxOUbaTeJDJoB2dJola87Mujo3k3KkwX7BkC/GN/1gl9aTcANYvXHdKYadrAk6m2yrlOPzAZfj84QjE3PMSbbXon2Va12McoP2tAeHhblaZ12fCF3SjYbq3awYbtJt1tYnGbeFhBvA3RrX0LAOdRh555Ntl8pxpvzuJo7SmuYompZ14BYZFj11Gwa0qj0I552hJmtmfXnqoKQbDdW7EFcNLek287TSb5NwA7h74/pmYI1rCF57k2yrlOOQkqepy2+aKYBrW0cpxyi3HE92Be7XHgwxWfOmb53mSjku1GpqrHezYjgjZXcl225Hwg3g/o3rowE0riFofdK3ZFulHEPytM8TZ4ftepSh/HLcFvmhhfsvV713Wym0rz0IyZrfl6/Dnm/q8iLaqx6XY4jP5mo1NfcL+p7sfR6n1+EWJNwA0gXnfQ3qwm02j7r2NNI7lOPydqK+bedhjvLb2NqaFmejtFJatHEukDjibpZh0evxoRNAy4758hWSNX19SNLpCLC+XkS7VI6hXX+lVlNzv+BR0aLpMVLFaEWei7e9JuEGkD6o68soqbAdm+V2bbbwFr9sQVLPOllhyP+jTE/8zPGwhDYHp+8yLfdZAbS1Tdgp+jdaZdkuHA6oHMMo9qGMdjN3XXv6BZs96hcM4uJ7DhJunHrw8KGJmyFdUBdGu806vilh/X8/1CcPxU5Wl4Pz5ai2nRwL39jayvUY+L0W14l54eEJMMT2YF6+Qru+2/GO8zxnu9CBcjyMF0b7OMdW2J43MW6TENEvSCnEPYO6+J7aA7ugKP71v/uPJ+E9/O/k5PTLYhR/Nir/+XNxcv7LJ8vvn5TfL3753fBno/jDn+PfVX//5PyLi07OfjK68LOT4uTkihWNn7lc9qiy3Au/X/nHyUlxeUXO3y5t67/MP8yPF//t+Zfj44VaAfdqXE/nRSk70WFEzHamxES21S9frzKNiOpccF6+PSnLMUxs/7p8jTsSdO/GAC+nHHOPHXag3u3FupDay/K1UwBtbhN2yvZgFtv1acc6zK+GegHtinKcleV4EM+7oS3r8gWPRWyXZpIh+gUZ4slQt96oW/cj4cYvTv7v/wkH/08PHj7c/XJ8LPCH+zew8/JtHudoCkFdm59IGDoRuxJtV5ZjCMwP4pxloRzXhxwYxdFYOeryXgeqQzhOciTcwm2l2l1of3uwiB3n3dhxDufCtiZsQgyyJ9F2ZTmGdjIkUMPFqWXbPu7I6od1P4hlazRbd/sFbU28LeuXPkEiEm5cZfvBw4dPQ0Dx5fjYiRzSNbDj4jzx1obALjSkIclxoFG9VTnOyrdZDJSetaSjFcptN5ZhXVcgp5m2+6ADdeAojnCZJl70OIyk1DGGzrQH4dwbEm+vYlvQlosxkjErntOLs1sx38TR7E+Ldo5eXMRy/aSd6GW/IFdctWodCyPwjGhLTMKN64Sg4bPRbr207KD3ZVu6FqCH4PxVDOweF/Un30IAHhr6d4LxewdKy45WCNAnNQZLy8C7qTI8ynAOWXQowAtJ6j93sOqGQPqTc39v7doFjbQHyycYz2LnObQJz4p6k2/LJNsHyZh7leVyNPuybV/GaE0kQo5irBbO2V28KOp8dLd+wdOa65xzRw1GORf+hx/++LE4ORsqGT7o50tzhgUnp3OYnZzPeXb2za+mOlvON1adq2xU+cfPv8xrdlL5eRHnWTs5n3vtl9+/+HvxtwY9h9v/+qf/VPy///Hfrwtsn//13/39x1+HPxud/f3pEzdGo/OvK/tjNDr/16hS4KPKPy5+/+rfCT8YXa6w8eej+L/zdTn9ev6n779/4tCmS2KQPonB3XriQD0EbCEp82P42ki2rOU4ieX4XSzDccLkwmEMvOcSpQCtbw/WLrXrk4SLP7zUrmsT8pbl+qW2PXUy9TC28z8uy1asps5dOn+kjidDXTtw7qiHhFsh4XaLhNupv/67vy8k3KDWxnbtUpD++JpfP4qN5/Lr0+BNwNaKDteyHJcB+u9uCJxCuf2l8vVRHE0HQPfbhHE8/y/bhSImca4bzVIdkTqPbYIOcrvKstq+3zbhsYzNDt26xwp1bnKpvv32hroX6tifq/Gk+tYcCbdCwk3CDQAAACCdX9kFAAAAAJCOhBsAAAAAJCThBgAAAAAJSbgBAAAAQEISbgAAAACQkIQbAAAAACQk4QYAAAAACUm4AQAAAEBCEm4AAAAAkJCEGwAAAAAkJOEGAAAAAAlJuAEAAABAQhJuAAAAAJCQhBsAAAAAJCThBgAAAAAJSbgBAAAAQEISbgAAAACQkIQbAAAAACQk4QYAAAAACUm4AQAAAEBCEm4AAAAAkJCEGwAAAAAkJOEGAAAAAAlJuAEAAABAQhJuAAAAAJCQhBsAAAAAJCThBgAAAAAJSbgBAAAAQEISbgAAAACQ0IPMy39Vvtbs5m748r//5Wn59tKeAAAAALi7rAm3//rv/+2hXdwp8wcPH34q398WEqUAAAAAd+KWUi74cnx8UL79vnwd2BsAAAAAq5Nw4ytfjo+PytdmcXZL8JE9AgAAAHB7Em5c68vx8Zvy7Un5cmswAAAAwC09sAu4yZfj45Bse/Tg4cOd8v1xB1ZZchAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgKv9fgAEAulggap4jxLwAAAAASUVORK5CYII=",gxt=N.a`
1277
- display: flex;
1278
- align-items: center;
1279
- justify-content: center;
1280
- text-decoration: none;
1281
- margin-top: 1px;
1282
- width: 100%;
1283
- `,mxt=N.img`
1284
- height: 20px;
1285
- margin-left: ${T["--ll-spacing-base-unit"]};
1286
- `,vxt=N(ae)`
1287
- line-height: initial;
1288
- `,yxt=()=>{const{translations:t}=qe([fxt]);return jt(gxt,{href:"https://locallogic.co/",target:"_blank",rel:"noreferrer",children:[H(vxt,{variant:"caption1",weight:"--ll-font-weight-medium",noMargin:!0,lineClamp:1,color:"--ll-color-on-background-variant1",children:t.POWERED_BY}),H(mxt,{src:pxt})]})},_xt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ywt=Object.freeze(Object.defineProperty({__proto__:null,Root:yxt,Types:_xt},Symbol.toStringTag,{value:"Module"})),xxt=t=>O("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M10 20V14H14V20H19V12H22L12 3L2 12H5V20H10Z"})}),bxt=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z"})}),wxt=({options:t})=>H(x9,{SVGElement:t.style==="house"?xxt:bxt,size:t.size||"large",backgroundColor:T["--ll-color-primary"],backgroundColorHighlight:T["--ll-color-primary-variant1"]}),Sxt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Gwt=Object.freeze(Object.defineProperty({__proto__:null,Root:wxt,Types:Sxt},Symbol.toStringTag,{value:"Module"})),CF=Q.createContext({}),kF=()=>m.exports.useContext(CF),Ext=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M12 2C7.58 2 4 2.5 4 6V15.5C4 17.43 5.57 19 7.5 19L6 20.5V21H18V20.5L16.5 19C18.43 19 20 17.43 20 15.5V6C20 2.5 16.42 2 12 2ZM7.5 17C6.67 17 6 16.33 6 15.5C6 14.67 6.67 14 7.5 14C8.33 14 9 14.67 9 15.5C9 16.33 8.33 17 7.5 17ZM11 11H6V6H11V11ZM16.5 17C15.67 17 15 16.33 15 15.5C15 14.67 15.67 14 16.5 14C17.33 14 18 14.67 18 15.5C18 16.33 17.33 17 16.5 17ZM18 11H13V6H18V11Z"})}),Cxt=t=>O("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5V21H18V20.5L16.5 19C18.43 19 20 17.43 20 15.5V5C20 1.5 16.42 1 12 1C7.58 1 4 1.5 4 5V15.5ZM12 17C10.9 17 10 16.1 10 15C10 13.9 10.9 13 12 13C13.1 13 14 13.9 14 15C14 16.1 13.1 17 12 17ZM18 10H6V5H18V10Z"})}),kxt=t=>O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:O("path",{d:"M17,18A2,2 0 0,1 19,20A2,2 0 0,1 17,22C15.89,22 15,21.1 15,20C15,18.89 15.89,18 17,18M1,2H4.27L5.21,4H20A1,1 0 0,1 21,5C21,5.17 20.95,5.34 20.88,5.5L17.3,11.97C16.96,12.58 16.3,13 15.55,13H8.1L7.2,14.63L7.17,14.75A0.25,0.25 0 0,0 7.42,15H19V17H7C5.89,17 5,16.1 5,15C5,14.65 5.09,14.32 5.24,14.04L6.6,11.59L3,4H1V2M7,18A2,2 0 0,1 9,20A2,2 0 0,1 7,22C5.89,22 5,21.1 5,20C5,18.89 5.89,18 7,18M16,11L18.78,6H6.14L8.5,11H16Z"})}),Axt=t=>_e("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:[O("path",{d:"M19.5198 2.49002C17.1798 0.150019 12.8998 0.620018 9.96984 3.55002C8.36984 5.15002 7.44984 7.42002 7.42984 9.01002C7.40984 10.59 7.68984 12.9 6.07984 14.51L1.83984 18.75L3.25984 20.17L7.49984 15.93C9.10984 14.32 11.4198 14.6 12.9998 14.58C14.5798 14.56 16.8598 13.64 18.4598 12.04C21.3798 9.11002 21.8598 4.83002 19.5198 2.49002ZM10.3198 11.68C8.78984 10.15 9.26984 7.07002 11.3798 4.96002C13.4898 2.85002 16.5598 2.37002 18.0998 3.90002C19.6298 5.43002 19.1498 8.51002 17.0398 10.62C14.9298 12.73 11.8598 13.21 10.3198 11.68Z"}),O("path",{d:"M18 17C18.53 17 19.04 17.21 19.41 17.59C20.19 18.37 20.19 19.64 19.41 20.42C19.04 20.79 18.53 21 18 21C17.47 21 16.96 20.79 16.59 20.41C15.81 19.63 15.81 18.36 16.59 17.58C16.96 17.21 17.47 17 18 17ZM18 15C16.98 15 15.95 15.39 15.17 16.17C13.61 17.73 13.61 20.26 15.17 21.83C15.95 22.61 16.98 23 18 23C19.02 23 20.05 22.61 20.83 21.83C22.39 20.27 22.39 17.74 20.83 16.17C20.05 15.39 19.02 15 18 15Z"})]}),Txt=t=>_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:[O("path",{d:"M0 0h24v24H0z",fill:"none"}),O("circle",{cx:4.5,cy:9.5,r:2.5}),O("circle",{cx:9,cy:5.5,r:2.5}),O("circle",{cx:15,cy:5.5,r:2.5}),O("circle",{cx:19.5,cy:9.5,r:2.5}),O("path",{d:"M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-.04-.22-.07-.33-.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-.7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8z"})]}),$xt=t=>_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:[O("path",{d:"M0 0h24v24H0z",fill:"none"}),O("path",{d:"M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-1-1V14c0-1.1-.9-2-2-2h-1V5c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v16h10v-7.5h1.5v5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V9c0-.69-.28-1.32-.73-1.77zM12 10H6V5h6v5zm6 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"})]}),Mxt=t=>_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:[O("path",{d:"M0 0h24v24H0z",fill:"none"}),O("path",{d:"M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 3.43 12 7 8.43 15.57 17 12 20.57 13.43 22l1.43-1.43L16.29 22l2.14-2.14 1.43 1.43 1.43-1.43-1.43-1.43L22 16.29z"})]}),Pxt=t=>_e("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",viewBox:"0 0 24 24",...t,children:[O("g",{children:O("rect",{fill:"none",height:24,width:24})}),O("g",{children:_e("g",{children:[O("g",{children:O("path",{d:"M21.67,18.17l-5.3-5.3h-0.99l-2.54,2.54v0.99l5.3,5.3c0.39,0.39,1.02,0.39,1.41,0l2.12-2.12 C22.06,19.2,22.06,18.56,21.67,18.17z"})}),O("g",{children:O("path",{d:"M17.34,10.19l1.41-1.41l2.12,2.12c1.17-1.17,1.17-3.07,0-4.24l-3.54-3.54l-1.41,1.41V1.71L15.22,1l-3.54,3.54l0.71,0.71 h2.83l-1.41,1.41l1.06,1.06l-2.89,2.89L7.85,6.48V5.06L4.83,2.04L2,4.87l3.03,3.03h1.41l4.13,4.13l-0.85,0.85H7.6l-5.3,5.3 c-0.39,0.39-0.39,1.02,0,1.41l2.12,2.12c0.39,0.39,1.02,0.39,1.41,0l5.3-5.3v-2.12l5.15-5.15L17.34,10.19z"})})]})})]}),Oxt=t=>_e("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",viewBox:"0 0 24 24",...t,children:[O("g",{children:O("rect",{fill:"none",height:24,width:24})}),O("g",{children:O("path",{d:"M12,2C6.49,2,2,6.49,2,12s4.49,10,10,10c1.38,0,2.5-1.12,2.5-2.5c0-0.61-0.23-1.2-0.64-1.67c-0.08-0.1-0.13-0.21-0.13-0.33 c0-0.28,0.22-0.5,0.5-0.5H16c3.31,0,6-2.69,6-6C22,6.04,17.51,2,12,2z M17.5,13c-0.83,0-1.5-0.67-1.5-1.5c0-0.83,0.67-1.5,1.5-1.5 s1.5,0.67,1.5,1.5C19,12.33,18.33,13,17.5,13z M14.5,9C13.67,9,13,8.33,13,7.5C13,6.67,13.67,6,14.5,6S16,6.67,16,7.5 C16,8.33,15.33,9,14.5,9z M5,11.5C5,10.67,5.67,10,6.5,10S8,10.67,8,11.5C8,12.33,7.33,13,6.5,13S5,12.33,5,11.5z M11,7.5 C11,8.33,10.33,9,9.5,9S8,8.33,8,7.5C8,6.67,8.67,6,9.5,6S11,6.67,11,7.5z"})})]}),Rxt=t=>_e("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000",...t,children:[O("rect",{fill:"none",height:24,width:24}),O("path",{d:"M10.5,13H8v-3h2.5V7.5h3V10H16v3h-2.5v2.5h-3V13z M12,2L4,5v6.09c0,5.05,3.41,9.76,8,10.91c4.59-1.15,8-5.86,8-10.91V5L12,2 z"})]}),LS={groceries:kxt,groceries_specialized:xF,shopping:vF,nightlife:yF,restaurants:_F,healthy_restaurants:qx,cafes:mF,daycares:wF,bus_stops:gF,rapid_transit_stations:Ext,train_stations:Cxt,parks:bF,fitness:Mxt,personal_care:qx,pet_care:Txt,car_fueling_stations:$xt,health_care:Rxt,sport_facilities:Axt,art_culture_science:Oxt,home_improvement:Pxt,primary_schools:SF,high_schools:RS},Lxt=()=>{const{options:{type:t,isOpen:e,isHovered:n,size:r}}=kF();return H(Xl.Trigger,{children:H(x9,{size:r,SVGElement:LS[t],expandMarker:e||n,backgroundColor:T["--ll-color-primary"],backgroundColorHighlight:T["--ll-color-primary-variant1"]})})},Dxt=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M13.5 5.5C14.6 5.5 15.5 4.6 15.5 3.5C15.5 2.4 14.6 1.5 13.5 1.5C12.4 1.5 11.5 2.4 11.5 3.5C11.5 4.6 12.4 5.5 13.5 5.5ZM9.8 8.9L7 23H9.1L10.9 15L13 17V23H15V15.5L12.9 13.5L13.5 10.5C14.8 12 16.8 13 19 13V11C17.1 11 15.5 10 14.7 8.6L13.7 7C13.14 6.11 12.02 5.75 11.05 6.16L6 8.3V13H8V9.6L9.8 8.9Z"})}),DS={en:{groceries:"Grocery",groceries_specialized:"Speciality",shopping:"Shopping",nightlife:"Nightlife",restaurants:"Restaurants",cafes:"Coffee shops",daycares:"Daycares",bus_stops:"Bus",rapid_transit_stations:"Rapid transit",train_stations:"Train",parks:"Parks",healthy_restaurants:"Healthy restaurants",fitness:"Fitness",sport_facilities:"Sport facilities",health_care:"Health care",pet_care:"Pet care",car_fueling_stations:"Gas stations",art_culture_science:"Art, Culture, Science",home_improvement:"Home improvement",personal_care:"Personal care"},fr:{groceries:"G\xE9n\xE9rales",groceries_specialized:"Sp\xE9cialis\xE9es",shopping:"Magasinage",nightlife:"Nightlife",restaurants:"Restaurants",cafes:"Caf\xE9s",daycares:"Garderies",bus_stops:"Autobus",rapid_transit_stations:"M\xE9tro",train_stations:"Train",parks:"Parcs",healthy_restaurants:"Restaurants sains",fitness:"Fitness",sport_facilities:"Installations sportives",health_care:"Soins de sant\xE9",pet_care:"Soins pour animaux",car_fueling_stations:"Stations-service",art_culture_science:"Art, Culture, Science",home_improvement:"Am\xE9lioration de l'habitat",personal_care:"Soins personnels"}},AF={en:{SCHOOL_BOARD:"Board",SCHOOL_LANGUAGES:"Languages",SCHOOL_LEVELS:"Levels",SCHOOL_TYPE:"Type",ENGLISH:"English",FRENCH:"French",SPANISH:"Spanish",high_schools:"High schools",primary_schools:"Primary schools",CALCULATE:"Calculate"},fr:{SCHOOL_BOARD:"Commission",SCHOOL_LANGUAGES:"Langues",SCHOOL_LEVELS:"Niveaux",SCHOOL_TYPE:"Type",ENGLISH:"Anglais",FRENCH:"Fran\xE7ais",SPANISH:"Espagnol",high_schools:"\xC9coles secondaires",primary_schools:"\xC9coles primaires",CALCULATE:"Calculer"}},py=N.div`
1289
- display: flex;
1290
- margin-bottom: ${T["--ll-spacing-xx-small"]};
1291
- align-items: center;
1292
- justify-content: ${({justify:t})=>t||"start"};
1293
- `,Ixt=N(X2)`
1294
- margin-right: 2px;
1295
- margin-bottom: 2px;
1296
- `,Nxt=N.div`
1297
- display: grid;
1298
- grid-template-columns: auto 1fr;
1299
- grid-column-gap: 10px;
1300
- margin-bottom: ${T["--ll-spacing-xx-small"]};
1301
- `,Fxt=N(Xl.Content)`
1302
- z-index: 3;
1303
- `,gy=N(ae)``,zxt=()=>{var t,e,n,r,i,o;const{options:{poi:s,side:a,collisionPadding:l,type:c,walkingTime:u,calculateRoute:d}}=kF(),{translations:h}=qe([DS,AF]),f=c==="high_schools"||c==="primary_schools"?"school":"poi",p=y=>y.map(v=>{switch(v){case"en":return h.ENGLISH;case"fr":return h.FRENCH;case"es":return h.SPANISH;default:return v}}),g=(y,v)=>jt(Jr,{children:[jt(gy,{children:[y,": "]}),H(gy,{color:T["--ll-color-on-background-variant1"],children:IM.capitalize(v)})]});return jt(Fxt,{side:a,collisionPadding:l,children:[H(ae,{variant:"h4",noMargin:!0,weight:"--ll-font-weight-bold",children:s.name}),H(Mf,{vertical:!0,spacing:"--ll-spacing-xx-small"}),s.address&&H(ae,{variant:"p",noMargin:!0,children:s.address}),H(Mf,{vertical:!0,spacing:"--ll-spacing-xx-small"}),s.url&&jt(Jr,{children:[H(e$,{lineClamp:2,href:s.url,children:s.url}),H(Mf,{vertical:!0,spacing:"--ll-spacing-xx-small"})]}),aF.poi.isSchool(s,f)?jt(Nxt,{children:[((t=s.school_attributes)==null?void 0:t.grades)&&g(h.SCHOOL_LEVELS,s.school_attributes.grades),((e=s.school_attributes)==null?void 0:e.languages)&&g(h.SCHOOL_LANGUAGES,p(s.school_attributes.languages).join(", ")),((n=s.school_attributes)==null?void 0:n.types)&&g(h.SCHOOL_TYPE,s.school_attributes.types.join(", ")),((r=s.school_board_attributes)==null?void 0:r.name)&&((i=s.school_board_attributes)==null?void 0:i.url)&&jt(Jr,{children:[jt(gy,{children:[h.SCHOOL_BOARD,": "]}),H(e$,{href:s.school_board_attributes.url,children:IM.capitalize(s.school_board_attributes.name)})]})]}):s.routes&&jt(py,{children:[H(Kn,{SVGElement:LS[c],height:20,width:20,fill:T["--ll-color-on-background"]}),(o=s.routes)==null?void 0:o.map((y,v)=>H(Ixt,{text:y.short_name,backgroundColor:y.route_color,textColor:y.text_color},y.short_name+v))]}),H(X2,{text:h[c],size:"medium",backgroundColor:T["--ll-color-primary"]}),d&&jt(Jr,{children:[H(Mf,{vertical:!0,spacing:"--ll-spacing-small"}),jt(py,{justify:u?"space-between":"end",children:[u&&jt(py,{children:[H(Kn,{SVGElement:Dxt,height:20,width:20,fill:T["--ll-color-on-background"]}),H(ae,{variant:"p",noMargin:!0,children:u})]}),H(iv,{size:"small",variant:"contained",onClick:d,children:h.CALCULATE})]})]})]})},Bxt=t=>H(Xl.Root,{open:t.options.isOpen,onOpenChange:e=>t.onChange&&t.onChange({type:"open-change",data:e}),children:H(CF.Provider,{value:{...t},children:t.children})}),jxt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),qwt=Object.freeze(Object.defineProperty({__proto__:null,Types:jxt,Marker:Lxt,Content:zxt,Root:Bxt},Symbol.toStringTag,{value:"Module"})),Vxt=N.ul`
1304
- list-style: none;
1305
- padding: 0;
1306
- margin-bottom: 0;
1307
- `,Hxt=N.li`
1308
- cursor: default;
1309
- padding: ${T["--ll-spacing-x-small"]};
1310
- margin-bottom: ${T["--ll-spacing-xx-small"]};
1311
- border-radius: ${T["--ll-border-radius-small"]};
1312
- background-color: ${({isActive:t,isHovered:e})=>t||e?T["--ll-color-surface-variant1"]:T["--ll-color-background"]};
1313
- `,VM=N.div`
1314
- display: flex;
1315
- flex-wrap: wrap;
1316
- `,HM=N(X2)`
1317
- margin-right: 2px;
1318
- margin-bottom: 2px;
1319
- `,Uxt=({options:{data:t,type:e,activePOI:n,hoveredPOI:r},onChange:i})=>H(Vxt,{children:t.map((o,s)=>{var a,l,c;return jt(Hxt,{isActive:n===o,isHovered:r===o,onClick:()=>i&&i({type:"poi-click",data:o}),onMouseOver:()=>i&&i({type:"poi-hover",data:o}),onMouseLeave:()=>i&&i({type:"poi-hover",data:void 0}),children:[H(ae,{variant:"p",color:"--ll-color-on-surface-variant1",noMargin:!0,children:o.name}),aF.poi.isSchool(o,e)?H(VM,{children:(l=(a=o.school_attributes)==null?void 0:a.types)==null?void 0:l.map((u,d)=>H(HM,{text:u},u))}):H(VM,{children:(c=o.routes)==null?void 0:c.map((u,d)=>H(HM,{text:u.short_name,backgroundColor:u.route_color,textColor:u.text_color},u.short_name+d))})]},`${o.name}-${o.lat}-${o.lng}-${s}`)})}),Wxt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Zwt=Object.freeze(Object.defineProperty({__proto__:null,Root:Uxt,Types:Wxt},Symbol.toStringTag,{value:"Module"})),TF=Q.createContext({}),$F=()=>m.exports.useContext(TF),MF={en:{commute:"Transport",amenities:"Amenities",character:"Character",nature:"Nature",education:"Education",about:"About"},fr:{commute:"Transport",amenities:"Services",character:"Caract\xE8re",nature:"Nature",education:"Familles",about:"Info"}},PF=t=>{const{scoreCategory:e}=$F(),{translations:n}=qe([MF]);return H(ae,{...t.options,children:n[e]})};PF.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1"}};const OF=t=>O("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M12 4H5C3.34 4 2 5.34 2 7V15C2 16.66 3.34 18 5 18L4 19V20H5L7 18H9V13H4V6H13V8H15V7C15 5.34 13.66 4 12 4ZM5 14C5.55 14 6 14.45 6 15C6 15.55 5.55 16 5 16C4.45 16 4 15.55 4 15C4 14.45 4.45 14 5 14ZM20.57 9.66C20.43 9.26 20.05 9 19.6 9H12.41C11.95 9 11.58 9.26 11.43 9.66L10.01 13.77V19.28C10.01 19.66 10.32 20 10.7 20H11.32C11.7 20 12 19.62 12 19.24V18H20V19.24C20 19.62 20.31 20 20.69 20H21.3C21.68 20 21.99 19.66 21.99 19.28L22 17.91V13.77L20.57 9.66ZM12.41 10H19.6L20.63 13H11.38L12.41 10ZM12 16C11.45 16 11 15.55 11 15C11 14.45 11.45 14 12 14C12.55 14 13 14.45 13 15C13 15.55 12.55 16 12 16ZM20 16C19.45 16 19 15.55 19 15C19 14.45 19.45 14 20 14C20.55 14 21 14.45 21 15C21 15.55 20.55 16 20 16Z"})}),Yxt=t=>_e("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:[O("path",{d:"M12 22C6.49 22 2 17.51 2 12C2 6.49 6.49 2 12 2C17.51 2 22 6.04 22 11C22 14.31 19.31 17 16 17H14.23C13.95 17 13.73 17.22 13.73 17.5C13.73 17.62 13.78 17.73 13.86 17.83C14.27 18.3 14.5 18.89 14.5 19.5C14.5 20.88 13.38 22 12 22ZM12 4C7.59 4 4 7.59 4 12C4 16.41 7.59 20 12 20C12.28 20 12.5 19.78 12.5 19.5C12.5 19.34 12.42 19.22 12.36 19.15C11.95 18.69 11.73 18.1 11.73 17.5C11.73 16.12 12.85 15 14.23 15H16C18.21 15 20 13.21 20 11C20 7.14 16.41 4 12 4Z"}),O("path",{d:"M6.5 13C7.32843 13 8 12.3284 8 11.5C8 10.6716 7.32843 10 6.5 10C5.67157 10 5 10.6716 5 11.5C5 12.3284 5.67157 13 6.5 13Z"}),O("path",{d:"M9.5 9C10.3284 9 11 8.32843 11 7.5C11 6.67157 10.3284 6 9.5 6C8.67157 6 8 6.67157 8 7.5C8 8.32843 8.67157 9 9.5 9Z"}),O("path",{d:"M14.5 9C15.3284 9 16 8.32843 16 7.5C16 6.67157 15.3284 6 14.5 6C13.6716 6 13 6.67157 13 7.5C13 8.32843 13.6716 9 14.5 9Z"}),O("path",{d:"M17.5 13C18.3284 13 19 12.3284 19 11.5C19 10.6716 18.3284 10 17.5 10C16.6716 10 16 10.6716 16 11.5C16 12.3284 16.6716 13 17.5 13Z"})]}),Gxt=t=>_e("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[O("path",{d:"M4.41504 10.915C5.24347 10.915 5.91504 10.2434 5.91504 9.41496C5.91504 8.58653 5.24347 7.91496 4.41504 7.91496C3.58661 7.91496 2.91504 8.58653 2.91504 9.41496C2.91504 10.2434 3.58661 10.915 4.41504 10.915Z"}),O("path",{d:"M22.085 9.08496C22.085 5.21496 18.955 2.08496 15.085 2.08496C11.215 2.08496 8.08504 5.21496 8.08504 9.08496C8.08504 12.555 10.605 15.425 13.915 15.975V19.915H5.91504V16.915H6.91504V12.915C6.91504 12.365 6.46504 11.915 5.91504 11.915H2.91504C2.36504 11.915 1.91504 12.365 1.91504 12.915V16.915H2.91504V21.915H18.915V19.915H15.915V16.035C19.385 15.625 22.085 12.675 22.085 9.08496ZM15.085 14.085C12.325 14.085 10.085 11.845 10.085 9.08496C10.085 6.32496 12.325 4.08496 15.085 4.08496C17.845 4.08496 20.085 6.32496 20.085 9.08496C20.085 11.845 17.845 14.085 15.085 14.085Z"})]}),qxt=t=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M18 6H16C16 3.79 14.21 2 12 2C9.79 2 8 3.79 8 6H6C4.9 6 4 6.9 4 8V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8C20 6.9 19.1 6 18 6ZM12 4C13.1 4 14 4.9 14 6H10C10 4.9 10.9 4 12 4ZM18 20H6V8H8V10C8 10.55 8.45 11 9 11C9.55 11 10 10.55 10 10V8H14V10C14 10.55 14.45 11 15 11C15.55 11 16 10.55 16 10V8H18V20Z"})}),RF=[{value:"commute",icon:OF,scores:["transit_friendly","car_friendly","pedestrian_friendly","cycling_friendly"]},{value:"education",icon:RS,scores:["primary_schools","high_schools","daycares"]},{value:"amenities",icon:qxt,scores:["groceries","restaurants","shopping","cafes"]},{value:"character",icon:Yxt,scores:["quiet","nightlife","vibrant","historic"]},{value:"nature",icon:Gxt,scores:["parks","greenery"]}],LF=({options:t})=>{const{scoreCategory:e}=$F(),n=RF.find(r=>r.value===e);return H(Kn,{SVGElement:n.icon,fill:`var(${t==null?void 0:t.color})`,height:t==null?void 0:t.height,width:t==null?void 0:t.width})};LF.defaultProps={options:{color:"--ll-color-on-background-variant1"}};const DF=({options:t,children:e})=>H(TF.Provider,{value:{...t},children:e}),IF=Object.freeze(Object.defineProperty({__proto__:null,Root:DF,Title:PF,Icon:LF},Symbol.toStringTag,{value:"Module"}));function Fn(){return Fn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Fn.apply(this,arguments)}function Oi(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(t==null||t(r),n===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}function IS(t,e=[]){let n=[];function r(o,s){const a=m.exports.createContext(s),l=n.length;n=[...n,s];function c(d){const{scope:h,children:f,...p}=d,g=(h==null?void 0:h[t][l])||a,y=m.exports.useMemo(()=>p,Object.values(p));return m.exports.createElement(g.Provider,{value:y},f)}function u(d,h){const f=(h==null?void 0:h[t][l])||a,p=m.exports.useContext(f);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,u]}const i=()=>{const o=n.map(s=>m.exports.createContext(s));return function(s){const a=(s==null?void 0:s[t])||o;return m.exports.useMemo(()=>({[`__scope${t}`]:{...s,[t]:a}}),[s,a])}};return i.scopeName=t,[r,Zxt(i,...e)]}function Zxt(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const o=r.reduce((s,{useScope:a,scopeName:l})=>{const c=a(i)[`__scope${l}`];return{...s,...c}},{});return m.exports.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function Xxt(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function NF(...t){return e=>t.forEach(n=>Xxt(n,e))}function Fm(...t){return m.exports.useCallback(NF(...t),t)}const zm=m.exports.forwardRef((t,e)=>{const{children:n,...r}=t,i=m.exports.Children.toArray(n),o=i.find(Qxt);if(o){const s=o.props.children,a=i.map(l=>l===o?m.exports.Children.count(s)>1?m.exports.Children.only(null):m.exports.isValidElement(s)?s.props.children:null:l);return m.exports.createElement(Zx,Fn({},r,{ref:e}),m.exports.isValidElement(s)?m.exports.cloneElement(s,void 0,a):null)}return m.exports.createElement(Zx,Fn({},r,{ref:e}),n)});zm.displayName="Slot";const Zx=m.exports.forwardRef((t,e)=>{const{children:n,...r}=t;return m.exports.isValidElement(n)?m.exports.cloneElement(n,{...Jxt(r,n.props),ref:NF(e,n.ref)}):m.exports.Children.count(n)>1?m.exports.Children.only(null):null});Zx.displayName="SlotClone";const Kxt=({children:t})=>m.exports.createElement(m.exports.Fragment,null,t);function Qxt(t){return m.exports.isValidElement(t)&&t.type===Kxt}function Jxt(t,e){const n={...e};for(const r in e){const i=t[r],o=e[r];/^on[A-Z]/.test(r)?n[r]=(...s)=>{o==null||o(...s),i==null||i(...s)}:r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}function tbt(t){const e=t+"CollectionProvider",[n,r]=IS(e),[i,o]=n(e,{collectionRef:{current:null},itemMap:new Map}),s=f=>{const{scope:p,children:g}=f,y=Q.useRef(null),v=Q.useRef(new Map).current;return Q.createElement(i,{scope:p,itemMap:v,collectionRef:y},g)},a=t+"CollectionSlot",l=Q.forwardRef((f,p)=>{const{scope:g,children:y}=f,v=o(a,g),_=Fm(p,v.collectionRef);return Q.createElement(zm,{ref:_},y)}),c=t+"CollectionItemSlot",u="data-radix-collection-item",d=Q.forwardRef((f,p)=>{const{scope:g,children:y,...v}=f,_=Q.useRef(null),x=Fm(p,_),b=o(c,g);return Q.useEffect(()=>(b.itemMap.set(_,{ref:_,...v}),()=>void b.itemMap.delete(_))),Q.createElement(zm,{[u]:"",ref:x},y)});function h(f){const p=o(t+"CollectionConsumer",f);return Q.useCallback(()=>{const g=p.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${u}]`));return Array.from(p.itemMap.values()).sort((v,_)=>y.indexOf(v.ref.current)-y.indexOf(_.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,r]}const Xx=Boolean(globalThis==null?void 0:globalThis.document)?m.exports.useLayoutEffect:()=>{},ebt=nb["useId".toString()]||(()=>{});let nbt=0;function FF(t){const[e,n]=m.exports.useState(ebt());return Xx(()=>{t||n(r=>r!=null?r:String(nbt++))},[t]),t||(e?`radix-${e}`:"")}const rbt=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],yc=rbt.reduce((t,e)=>{const n=m.exports.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?zm:e;return m.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.exports.createElement(a,Fn({},s,{ref:i}))});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function NS(t){const e=m.exports.useRef(t);return m.exports.useEffect(()=>{e.current=t}),m.exports.useMemo(()=>(...n)=>{var r;return(r=e.current)===null||r===void 0?void 0:r.call(e,...n)},[])}function zF({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=ibt({defaultProp:e,onChange:n}),o=t!==void 0,s=o?t:r,a=NS(n),l=m.exports.useCallback(c=>{if(o){const u=typeof c=="function"?c(t):c;u!==t&&a(u)}else i(c)},[o,t,i,a]);return[s,l]}function ibt({defaultProp:t,onChange:e}){const n=m.exports.useState(t),[r]=n,i=m.exports.useRef(r),o=NS(e);return m.exports.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}const obt=m.exports.createContext(void 0);function BF(t){const e=m.exports.useContext(obt);return t||e||"ltr"}const my="rovingFocusGroup.onEntryFocus",sbt={bubbles:!1,cancelable:!0},FS="RovingFocusGroup",[Kx,jF,abt]=tbt(FS),[lbt,VF]=IS(FS,[abt]),[cbt,ubt]=lbt(FS),dbt=m.exports.forwardRef((t,e)=>m.exports.createElement(Kx.Provider,{scope:t.__scopeRovingFocusGroup},m.exports.createElement(Kx.Slot,{scope:t.__scopeRovingFocusGroup},m.exports.createElement(hbt,Fn({},t,{ref:e}))))),hbt=m.exports.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=t,d=m.exports.useRef(null),h=Fm(e,d),f=BF(o),[p=null,g]=zF({prop:s,defaultProp:a,onChange:l}),[y,v]=m.exports.useState(!1),_=NS(c),x=jF(n),b=m.exports.useRef(!1);return m.exports.useEffect(()=>{const w=d.current;if(w)return w.addEventListener(my,_),()=>w.removeEventListener(my,_)},[_]),m.exports.createElement(cbt,{scope:n,orientation:r,dir:f,loop:i,currentTabStopId:p,onItemFocus:m.exports.useCallback(w=>g(w),[g]),onItemShiftTab:m.exports.useCallback(()=>v(!0),[])},m.exports.createElement(yc.div,Fn({tabIndex:y?-1:0,"data-orientation":r},u,{ref:h,style:{outline:"none",...t.style},onMouseDown:Oi(t.onMouseDown,()=>{b.current=!0}),onFocus:Oi(t.onFocus,w=>{const S=!b.current;if(w.target===w.currentTarget&&S&&!y){const E=new CustomEvent(my,sbt);if(w.currentTarget.dispatchEvent(E),!E.defaultPrevented){const C=x().filter(M=>M.focusable),A=C.find(M=>M.active),k=C.find(M=>M.id===p),$=[A,k,...C].filter(Boolean).map(M=>M.ref.current);HF($)}}b.current=!1}),onBlur:Oi(t.onBlur,()=>v(!1))})))}),fbt="RovingFocusGroupItem",pbt=m.exports.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=t,s=FF(),a=ubt(fbt,n),l=a.currentTabStopId===s,c=jF(n);return m.exports.createElement(Kx.ItemSlot,{scope:n,id:s,focusable:r,active:i},m.exports.createElement(yc.span,Fn({tabIndex:l?0:-1,"data-orientation":a.orientation},o,{ref:e,onMouseDown:Oi(t.onMouseDown,u=>{r?a.onItemFocus(s):u.preventDefault()}),onFocus:Oi(t.onFocus,()=>a.onItemFocus(s)),onKeyDown:Oi(t.onKeyDown,u=>{if(u.key==="Tab"&&u.shiftKey){a.onItemShiftTab();return}if(u.target!==u.currentTarget)return;const d=vbt(u,a.orientation,a.dir);if(d!==void 0){u.preventDefault();let h=c().filter(f=>f.focusable).map(f=>f.ref.current);if(d==="last")h.reverse();else if(d==="prev"||d==="next"){d==="prev"&&h.reverse();const f=h.indexOf(u.currentTarget);h=a.loop?ybt(h,f+1):h.slice(f+1)}setTimeout(()=>HF(h))}})})))}),gbt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mbt(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function vbt(t,e,n){const r=mbt(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return gbt[r]}function HF(t){const e=document.activeElement;for(const n of t)if(n===e||(n.focus(),document.activeElement!==e))return}function ybt(t,e){return t.map((n,r)=>t[(e+r)%t.length])}const _bt=dbt,xbt=pbt;function bbt(t,e){return m.exports.useReducer((n,r)=>{const i=e[n][r];return i!=null?i:n},t)}const UF=t=>{const{present:e,children:n}=t,r=wbt(e),i=typeof n=="function"?n({present:r.isPresent}):m.exports.Children.only(n),o=Fm(r.ref,i.ref);return typeof n=="function"||r.isPresent?m.exports.cloneElement(i,{ref:o}):null};UF.displayName="Presence";function wbt(t){const[e,n]=m.exports.useState(),r=m.exports.useRef({}),i=m.exports.useRef(t),o=m.exports.useRef("none"),s=t?"mounted":"unmounted",[a,l]=bbt(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.exports.useEffect(()=>{const c=ep(r.current);o.current=a==="mounted"?c:"none"},[a]),Xx(()=>{const c=r.current,u=i.current;if(u!==t){const d=o.current,h=ep(c);t?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),Xx(()=>{if(e){const c=d=>{const h=ep(r.current).includes(d.animationName);d.target===e&&h&&zn.exports.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===e&&(o.current=ep(r.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.exports.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function ep(t){return(t==null?void 0:t.animationName)||"none"}const WF="Tabs",[Sbt,Xwt]=IS(WF,[VF]),YF=VF(),[Ebt,zS]=Sbt(WF),Cbt=m.exports.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:s="horizontal",dir:a,activationMode:l="automatic",...c}=t,u=BF(a),[d,h]=zF({prop:r,onChange:i,defaultProp:o});return m.exports.createElement(Ebt,{scope:n,baseId:FF(),value:d,onValueChange:h,orientation:s,dir:u,activationMode:l},m.exports.createElement(yc.div,Fn({dir:u,"data-orientation":s},c,{ref:e})))}),kbt="TabsList",Abt=m.exports.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...i}=t,o=zS(kbt,n),s=YF(n);return m.exports.createElement(_bt,Fn({asChild:!0},s,{orientation:o.orientation,dir:o.dir,loop:r}),m.exports.createElement(yc.div,Fn({role:"tablist","aria-orientation":o.orientation},i,{ref:e})))}),Tbt="TabsTrigger",$bt=m.exports.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...o}=t,s=zS(Tbt,n),a=YF(n),l=GF(s.baseId,r),c=qF(s.baseId,r),u=r===s.value;return m.exports.createElement(xbt,Fn({asChild:!0},a,{focusable:!i,active:u}),m.exports.createElement(yc.button,Fn({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l},o,{ref:e,onMouseDown:Oi(t.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?s.onValueChange(r):d.preventDefault()}),onKeyDown:Oi(t.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(r)}),onFocus:Oi(t.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!i&&d&&s.onValueChange(r)})})))}),Mbt="TabsContent",Pbt=m.exports.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:i,children:o,...s}=t,a=zS(Mbt,n),l=GF(a.baseId,r),c=qF(a.baseId,r),u=r===a.value,d=m.exports.useRef(u);return m.exports.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),m.exports.createElement(UF,{present:i||u},({present:h})=>m.exports.createElement(yc.div,Fn({"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0},s,{ref:e,style:{...t.style,animationDuration:d.current?"0s":void 0}}),h&&o))});function GF(t,e){return`${t}-trigger-${e}`}function qF(t,e){return`${t}-content-${e}`}const BS=Cbt,jS=Abt,VS=$bt,HS=Pbt,ZF=t=>{const e=m.exports.useRef(t);return m.exports.useEffect(()=>{e.current=t}),m.exports.useMemo(()=>(...n)=>{var r;return(r=e.current)==null?void 0:r.call(e,...n)},[])},Obt=({defaultValue:t,onChange:e})=>{const n=m.exports.useState(t),[r]=n,i=m.exports.useRef(r),o=ZF(e==null?void 0:e.func);return m.exports.useEffect(()=>{i.current!==r&&e&&(o({type:e.key,data:r}),i.current=r)},[r,i,o]),n},Rbt=({controlledValue:t,onChange:e,defaultValue:n})=>{const[r,i]=Obt({defaultValue:n,onChange:e}),o=t!==void 0,s=o?t:r,a=ZF(e==null?void 0:e.func),l=m.exports.useCallback(c=>{if(o){const u=typeof c=="function"?c(t):c;u!==t&&e&&a({type:e.key,data:u})}else i(c)},[o,s,i,a]);return[s,l]},XF=Q.createContext({}),Lbt=()=>m.exports.useContext(XF),Dbt=({children:t,options:{value:e}})=>H(HS,{value:e,children:H(DF,{options:{scoreCategory:e},children:t})},e),{Title:Ibt}=IF,{Icon:Nbt}=IF,Fbt=N(jS)`
1320
- display: grid;
1321
- grid-auto-columns: minmax(0, 1fr);
1322
- grid-auto-flow: column;
1323
- background-color: ${T["--ll-color-background"]};
1324
- `,zbt=N(VS)`
1325
- background: none;
1326
- border: none;
1327
- padding: ${T["--ll-spacing-xx-small"]};
1328
- display: flex;
1329
- flex-direction: column;
1330
- align-items: center;
1331
-
1332
- &:hover {
1333
- background-color: ${T["--ll-color-surface"]};
1334
- border-radius: ${T["--ll-border-radius-small"]};
1335
- box-shadow: ${T["--ll-shadow-small"]};
1336
- }
1337
- `,Bbt=()=>{const{currentTab:t}=Lbt(),{translations:e}=qe([MF]);return H(Fbt,{"aria-label":"Score tabs",children:RF.map(n=>{const r=n.value===t?"--ll-color-primary":"--ll-color-disabled";return H(Q.Fragment,{children:jt(zbt,{value:n.value,children:[H(Kn,{SVGElement:n.icon,fill:T[r]}),H(ae,{noMargin:!0,variant:"caption1",color:r,weight:"--ll-font-weight-medium",children:e[n.value]})]})},n.value)})})},jbt=({options:t,onChange:e,children:n})=>{const[r,i]=Rbt({controlledValue:t.currentTab,onChange:{func:e,key:"tabs"},defaultValue:t.defaultTab||"commute"});return H(XF.Provider,{value:{...t,currentTab:r},children:H(BS,{value:r,orientation:"vertical",defaultValue:r,onValueChange:o=>i(o),children:n})})},Kwt=Object.freeze(Object.defineProperty({__proto__:null,Root:jbt,Tabs:Bbt,Content:Dbt,Title:Ibt,Icon:Nbt},Symbol.toStringTag,{value:"Module"})),KF=Q.createContext({}),Vbt=()=>m.exports.useContext(KF),Hbt=N(VS)`
1338
- margin-right: ${T["--ll-spacing-xx-small"]};
1339
- margin-bottom: ${T["--ll-spacing-xx-small"]};
1340
- `,Ubt=()=>{const{include:t,activeTab:e,setActiveTab:n}=Vbt(),{translations:r}=qe([DS]);return t.length<=1?null:H(jS,{"aria-label":"tabs example",children:t.map(i=>H(Hbt,{value:i,asChild:!0,children:H(iv,{size:"small",variant:i===e?"contained":"outlined",onClick:()=>n(i),children:r[i]})},i))})},Wbt=({children:t,options:{value:e}})=>H(HS,{value:e,children:t},e),Ybt=({options:t,children:e})=>{const[n,r]=m.exports.useState(t.include[0]);return H(KF.Provider,{value:{...t,activeTab:n,setActiveTab:r},children:H(BS,{value:n,children:e})})},Qwt=Object.freeze(Object.defineProperty({__proto__:null,Root:Ybt,Tabs:Ubt,Content:Wbt},Symbol.toStringTag,{value:"Module"})),QF=Q.createContext({}),JF=()=>m.exports.useContext(QF),t7=t=>{var e;const{options:{poi:n}}=JF(),{translations:r}=qe([DS,AF]);return(e=t.options)!=null&&e.isRawText?H(Jr,{children:r[n]}):H(ae,{...t.options,children:r[n]})};t7.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1",isRawText:!1}};const e7=({options:t})=>{const{options:{poi:e}}=JF();return H(Kn,{SVGElement:LS[e],fill:`var(${t==null?void 0:t.color})`,height:t==null?void 0:t.height,width:t==null?void 0:t.width})};e7.defaultProps={options:{color:"--ll-color-on-background-variant1"}};const Gbt=t=>H(QF.Provider,{value:{...t},children:t.children}),Jwt=Object.freeze(Object.defineProperty({__proto__:null,Title:t7,Icon:e7,Root:Gbt},Symbol.toStringTag,{value:"Module"})),qbt=Q.createContext({}),_c={en:{populationByAgeTitle:"Population by age group",populationInPercentage:"% of total population",ownersRentersTitle:"Owners vs Renters",householdCompositionTitle:"Household Composition",averageIncomeTitle:"Average Income",commuteModeTitle:"Commute Mode",educationLevelTitle:"Highest level of education achieved",avg_household_income:"Family",avg_individual_income:"Individual"},fr:{populationByAgeTitle:"Population par tranche d'\xE2ge",populationInPercentage:"% de la population totale",ownersRentersTitle:"Propri\xE9taires vs locataires",householdCompositionTitle:"Composition du m\xE9nage",averageIncomeTitle:"Revenu Moyen",commuteModeTitle:"Mode Trajet",educationLevelTitle:"Plus haut niveau d'\xE9tudes atteint",avg_household_income:"Famille",avg_individual_income:"Individuel"}},Zbt=t=>_e("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[O("path",{d:"M22.2266 17.5067C24.0533 18.7467 25.3333 20.4267 25.3333 22.6667V26.6667H30.6666V22.6667C30.6666 19.76 25.9066 18.04 22.2266 17.5067Z",fill:"white"}),O("path",{d:"M20 16C22.9466 16 25.3333 13.6134 25.3333 10.6667C25.3333 7.72004 22.9466 5.33337 20 5.33337C19.3733 5.33337 18.7866 5.46671 18.2266 5.65337C19.3333 7.02671 20 8.77337 20 10.6667C20 12.56 19.3333 14.3067 18.2266 15.68C18.7866 15.8667 19.3733 16 20 16Z",fill:"white"}),O("path",{d:"M12 16C14.9466 16 17.3333 13.6134 17.3333 10.6667C17.3333 7.72004 14.9466 5.33337 12 5.33337C9.05331 5.33337 6.66665 7.72004 6.66665 10.6667C6.66665 13.6134 9.05331 16 12 16ZM12 8.00004C13.4666 8.00004 14.6666 9.20004 14.6666 10.6667C14.6666 12.1334 13.4666 13.3334 12 13.3334C10.5333 13.3334 9.33331 12.1334 9.33331 10.6667C9.33331 9.20004 10.5333 8.00004 12 8.00004Z",fill:"white"}),O("path",{d:"M12 17.3334C8.43998 17.3334 1.33331 19.12 1.33331 22.6667V26.6667H22.6666V22.6667C22.6666 19.12 15.56 17.3334 12 17.3334ZM20 24H3.99998V22.68C4.26665 21.72 8.39998 20 12 20C15.6 20 19.7333 21.72 20 22.6667V24Z",fill:"white"})]}),Xbt=t=>O("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M16 8.00004C17.4666 8.00004 18.6666 9.20004 18.6666 10.6667C18.6666 12.1334 17.4666 13.3334 16 13.3334C14.5333 13.3334 13.3333 12.1334 13.3333 10.6667C13.3333 9.20004 14.5333 8.00004 16 8.00004ZM16 21.3334C19.6 21.3334 23.7333 23.0534 24 24H7.99998C8.30665 23.04 12.4133 21.3334 16 21.3334ZM16 5.33337C13.0533 5.33337 10.6666 7.72004 10.6666 10.6667C10.6666 13.6134 13.0533 16 16 16C18.9466 16 21.3333 13.6134 21.3333 10.6667C21.3333 7.72004 18.9466 5.33337 16 5.33337ZM16 18.6667C12.44 18.6667 5.33331 20.4534 5.33331 24V26.6667H26.6666V24C26.6666 20.4534 19.56 18.6667 16 18.6667Z",fill:"white"})}),Kbt=({options:{incomeTypes:t}})=>{const{translations:e}=qe([_c]),n={avg_household_income:Zbt,avg_individual_income:Xbt},r=m.exports.useMemo(()=>({options:{title:e.averageIncomeTitle,incomeTypes:t.map(i=>({variable:i.variable,value:i.value,label:e[i.variable],SVGElement:n[i.variable]}))}}),[t]);return H(hvt,{...r})},Qbt=({options:{labels:t,data:e}})=>{const{translations:n}=qe([_c]),r=m.exports.useMemo(()=>({data:{labels:t,datasets:[{label:n.populationInPercentage,data:e}]},options:{plugins:{title:{text:n.populationByAgeTitle}}}}),[t,e]);return H(O8,{...r})},Jbt=({options:{datasets:t}})=>{const{translations:e}=qe([_c]),n=["rgb(0, 132, 145)","rgb(62, 49, 91)"],r=m.exports.useMemo(()=>({data:{datasets:t.map((i,o)=>({...i,data:[i.data],backgroundColor:n[o<2?o:0]}))},options:{plugins:{title:{text:e.ownersRentersTitle}}}}),[t]);return H(nvt,{...r})},twt=({options:{labels:t,data:e}})=>{const{translations:n}=qe([_c]),r=m.exports.useMemo(()=>({data:{labels:t,datasets:[{data:e}]},options:{plugins:{title:{text:n.householdCompositionTitle}}}}),[t,e]);return H(R8,{...r})},ewt=({options:{labels:t,data:e}})=>{const{translations:n}=qe([_c]),r=m.exports.useMemo(()=>({data:{labels:t,datasets:[{data:e}]},options:{plugins:{title:{text:n.commuteModeTitle}}}}),[t,e]);return H(R8,{...r})},nwt=({options:{labels:t,data:e}})=>{const{translations:n}=qe([_c]),r=m.exports.useMemo(()=>({data:{labels:t,datasets:[{label:n.populationInPercentage,data:e}]},options:{plugins:{title:{text:n.educationLevelTitle}}}}),[t,e]);return H(O8,{...r})},rwt=t=>H(qbt.Provider,{value:{...t},children:t.children}),t2t=Object.freeze(Object.defineProperty({__proto__:null,Root:rwt,AvgIncomeCard:Kbt,PopulationByAgeChart:Qbt,OwnersRentersCard:Jbt,HouseholdCompositionCard:twt,CommuteModeCard:ewt,EducationLevelChart:nwt},Symbol.toStringTag,{value:"Module"})),n7=Q.createContext({}),r7=()=>m.exports.useContext(n7),iwt=({children:t,options:{value:e}})=>H(HS,{value:e,children:t},e),i7={en:{income:"Income",population:"Population",housing:"Housing",household:"Household",education:"Education",commute:"Commute"},fr:{income:"Revenu",population:"Services",housing:"Logement",household:"M\xE9nage",education:"\xC9ducation",commute:"Navette"}},owt=t=>O("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10.31 9.14C8.54 8.69 7.97 8.2 7.97 7.47C7.97 6.63 8.76 6.04 10.07 6.04C11.45 6.04 11.97 6.7 12.01 7.68H13.72C13.67 6.34 12.85 5.11 11.23 4.71V3H8.9V4.69C7.39 5.01 6.18 5.99 6.18 7.5C6.18 9.29 7.67 10.19 9.84 10.71C11.79 11.17 12.18 11.86 12.18 12.58C12.18 13.11 11.79 13.97 10.08 13.97C8.48 13.97 7.85 13.25 7.76 12.33H6.04C6.14 14.03 7.4 14.99 8.9 15.3V17H11.24V15.33C12.76 15.04 13.96 14.17 13.97 12.56C13.96 10.36 12.07 9.6 10.31 9.14Z"})}),swt=t=>_e("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[O("path",{d:"M8 8C10.21 8 12 6.21 12 4C12 1.79 10.21 0 8 0C5.79 0 4 1.79 4 4C4 6.21 5.79 8 8 8ZM8 2C9.1 2 10 2.9 10 4C10 5.1 9.1 6 8 6C6.9 6 6 5.1 6 4C6 2.9 6.9 2 8 2Z"}),O("path",{d:"M2 14C2.22 13.28 5.31 12 8 12C8 11.3 8.13 10.63 8.35 10.01C5.62 9.91 0 11.27 0 14V16H9.54C9.02 15.42 8.61 14.75 8.35 14H2Z"}),O("path",{d:"M17.43 14.02C17.79 13.43 18 12.74 18 12C18 9.79 16.21 8 14 8C11.79 8 10 9.79 10 12C10 14.21 11.79 16 14 16C14.74 16 15.43 15.78 16.02 15.43C16.95 16.36 17.64 17.05 18.59 18L20 16.59C18.5 15.09 19.21 15.79 17.43 14.02ZM14 14C12.9 14 12 13.1 12 12C12 10.9 12.9 10 14 10C15.1 10 16 10.9 16 12C16 13.1 15.1 14 14 14Z"})]}),awt=t=>_e("svg",{width:22,height:18,viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[O("path",{d:"M18 4H16V6H18V4Z"}),O("path",{d:"M18 8H16V10H18V8Z"}),O("path",{d:"M18 12H16V14H18V12Z"}),O("path",{d:"M0 8V18H6V13H8V18H14V8L7 3L0 8ZM12 16H10V11H4V16H2V9L7 5.5L12 9V16Z"}),O("path",{d:"M9 0V1.97L11 3.4V2H20V16H16V18H22V0H9Z"})]}),lwt=t=>O("svg",{width:22,height:20,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M14.75 2C14.75 0.89 15.64 0 16.75 0C17.86 0 18.75 0.89 18.75 2C18.75 3.11 17.86 4 16.75 4C15.64 4 14.75 3.11 14.75 2ZM18.75 20V14H21.25L18.71 6.37C18.43 5.55 17.67 5 16.81 5H16.69C15.83 5 15.06 5.55 14.79 6.37L13.93 8.95C15.01 9.55 15.75 10.68 15.75 12V20H18.75ZM11.25 9.5C12.08 9.5 12.75 8.83 12.75 8C12.75 7.17 12.08 6.5 11.25 6.5C10.42 6.5 9.75 7.17 9.75 8C9.75 8.83 10.42 9.5 11.25 9.5ZM4.25 4C5.36 4 6.25 3.11 6.25 2C6.25 0.89 5.36 0 4.25 0C3.14 0 2.25 0.89 2.25 2C2.25 3.11 3.14 4 4.25 4ZM6.25 20V13H7.75V7C7.75 5.9 6.85 5 5.75 5H2.75C1.65 5 0.75 5.9 0.75 7V13H2.25V20H6.25ZM12.75 20V16H13.75V12C13.75 11.18 13.07 10.5 12.25 10.5H10.25C9.43 10.5 8.75 11.18 8.75 12V16H9.75V20H12.75Z"})}),cwt=t=>O("svg",{width:22,height:18,viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:O("path",{d:"M11 0L0 6L4 8.18V14.18L11 18L18 14.18V8.18L20 7.09V14H22V6L11 0ZM17.82 6L11 9.72L4.18 6L11 2.28L17.82 6ZM16 12.99L11 15.72L6 12.99V9.27L11 12L16 9.27V12.99Z"})}),o7=[{value:"income",icon:owt},{value:"population",icon:swt},{value:"housing",icon:awt},{value:"household",icon:lwt},{value:"education",icon:cwt},{value:"commute",icon:OF}],uwt=N(jS)`
1341
- display: grid;
1342
- grid-auto-columns: minmax(0, 80px);
1343
- grid-auto-flow: column;
1344
- `,dwt=N(VS)`
1345
- background: none;
1346
- border: none;
1347
- padding: ${T["--ll-spacing-xx-small"]};
1348
- display: flex;
1349
- flex-direction: column;
1350
- align-items: center;
1351
-
1352
- &:hover {
1353
- cursor: pointer;
1354
-
1355
- svg {
1356
- fill: ${T["--ll-color-primary"]};
1357
- }
1358
-
1359
- p {
1360
- color: ${T["--ll-color-primary"]};
1361
- }
1362
- }
1363
- `,hwt=()=>{const{options:t}=r7(),{translations:e}=qe([i7]);return H(uwt,{"aria-label":"Demographics tabs",children:o7.map(n=>{const r=n.value===t.activeTab?"--ll-color-primary":"--ll-color-disabled";return H(Q.Fragment,{children:jt(dwt,{value:n.value,children:[H(Kn,{SVGElement:n.icon,fill:T[r]}),H(ae,{noMargin:!0,variant:"caption1",color:r,weight:"--ll-font-weight-medium",children:e[n.value]})]})},n.value)})})},fwt=N.div`
1364
- display: flex;
1365
- padding: ${T["--ll-spacing-x-small"]} ${T["--ll-spacing-medium"]}
1366
- ${T["--ll-spacing-xx-small"]} ${T["--ll-spacing-medium"]};
1367
- `,pwt=()=>{const{options:t,onChange:e}=r7(),{translations:n}=qe([i7]);return H(fwt,{children:jt(Kf.Root,{value:t.activeTab,onValueChange:r=>{e({type:"tabs",data:r})},children:[H(Kf.Trigger,{size:"large",children:H(ae,{noMargin:!0,variant:"h6",children:n[t.activeTab]})}),H(Kf.Content,{children:o7.map(r=>H(Kf.Item,{value:r.value,children:H(ae,{noMargin:!0,variant:"h6",children:n[r.value]})},r.value))})]})})},gwt=({options:t,onChange:e,children:n})=>{const r=i=>{e({type:"tabs",data:i})};return H(n7.Provider,{value:{options:t,onChange:e},children:H(BS,{value:t.activeTab,onValueChange:r,children:n})})},e2t=Object.freeze(Object.defineProperty({__proto__:null,Root:gwt,Tabs:hwt,Select:pwt,Content:iwt},Symbol.toStringTag,{value:"Module"})),mwt=({children:t})=>{var r,i;const{sdkState:e}=FI();if(!(e!=null&&e.apiKey))throw Error("A valid apiKey must be provided.");const n=Udt(e.apiKey,{locale:(r=e==null?void 0:e.globalOptions)==null?void 0:r.locale});return O(f_t,{client:n,options:{appearance:(i=e==null?void 0:e.globalOptions)==null?void 0:i.appearance},children:t})},vwt=N.div`
1368
- height: 100%;
1369
- width: 100%;
1370
- display: flex;
1371
- align-items: center;
1372
- justify-content: center;
1373
- flex-direction: column;
1374
- `,ywt=({error:t})=>_e(vwt,{children:[O(Q_,{variant:"h4",children:"An error occurred"}),O(Q_,{variant:"p",color:"--ll-color-on-background-variant1",children:t.message})]}),_wt=new ilt({defaultOptions:{queries:{retry:2,staleTime:1/0,keepPreviousData:!0}}}),xwt=()=>_e(iW,{children:[O(oQ,{}),O(Bat,{FallbackComponent:ywt,children:O(hlt,{children:O(olt,{client:_wt,children:O(zI,{children:O(mwt,{children:O(Mct,{children:O(k2,{})})})})})})})]});vy.createRoot(document.getElementById("root")).render(O(Q.StrictMode,{children:O(xwt,{})}));export{nb as $,vt as A,Gwt as B,zwt as C,Bwt as D,Cwt as E,iW as F,Zw as G,Lwt as H,Nwt as I,Ar as J,pr as K,A2 as L,Vat as M,Uwt as N,RF as O,Hat as P,wx as Q,Q as R,Y0 as S,$2 as T,$D as U,FJ as V,qwt as W,Qwt as X,Kwt as Y,Zwt as Z,D as _,bwt as __vite_legacy_guard,Sct as a,Wat as a0,$1 as a1,fn as a2,Dwt as a3,T1 as a4,Awt as a5,Fwt as a6,g9 as a7,r9 as a8,Jwt as a9,$wt as aa,o7 as ab,e2t as ac,t2t as ad,Swt as b,Ewt as c,jwt as d,_e as e,Wwt as f,Owt as g,IF as h,Rwt as i,O as j,b0 as k,TD as l,Yw as m,oF as n,Q_ as o,Ywt as p,Pwt as q,m as r,N as s,Mwt as t,FI as u,Hi as v,Iwt as w,zn as x,wwt as y,Wl as z};