@local-logic/sdks-app 1.7.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-legacy.9e6e31fb.js → index-legacy.5b5c89be.js} +1 -1
- package/dist/assets/{index-legacy.8a8cb342.js → index-legacy.6f7be327.js} +1 -1
- package/dist/assets/index-legacy.873d2f5f.js +1 -0
- package/dist/assets/{index-legacy.93d69255.js → index-legacy.8b48df8f.js} +1 -1
- package/dist/assets/index-legacy.a2e5122a.js +23 -0
- package/dist/assets/{index-legacy.46f64d17.js → index-legacy.b4a1ea09.js} +1 -1
- package/dist/assets/index-legacy.e333988e.js +106 -0
- package/dist/assets/index.1b34a15d.js +35 -0
- package/dist/assets/index.24661964.js +247 -0
- package/dist/assets/index.3039bacf.js +161 -0
- package/dist/assets/index.3eec99ca.js +1318 -0
- package/dist/assets/index.77b51154.js +1 -0
- package/dist/assets/index.aae000f4.js +1 -0
- package/dist/assets/{index.fb08bd56.js → index.d89a7cee.js} +1 -1
- package/dist/assets/polyfills-legacy.db2bc606.js +1 -0
- package/dist/assets/{useIsMobile-legacy.cb5792f6.js → useIsMobile-legacy.7fb572d8.js} +1 -1
- package/dist/assets/{useIsMobile.8a6bbdf7.js → useIsMobile.b5e8d9ad.js} +1 -1
- package/dist/assets/{useQuery-legacy.9e74d2d1.js → useQuery-legacy.7e93cb2c.js} +1 -1
- package/dist/assets/useQuery.19a6ca1c.js +9 -0
- package/dist/index.html +3 -3
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.d.ts.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.js +2 -0
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.js.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.d.ts.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js +2 -0
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/types.d.ts +2 -2
- package/dist/types/context/languageProvider/data-explorer/types.d.ts.map +1 -1
- package/dist/types/context/languageProvider/index.d.ts +2 -2
- package/dist/types/context/languageProvider/index.d.ts.map +1 -1
- package/dist/types/features/calculateRoute/useCommute.js +2 -2
- package/dist/types/features/calculateRoute/useCommute.js.map +1 -1
- package/dist/types/features/reverse-geocodes/useReverseGeocodes.js +2 -2
- package/dist/types/features/reverse-geocodes/useReverseGeocodes.js.map +1 -1
- package/dist/types/main.d.ts +1 -1
- package/dist/types/main.d.ts.map +1 -1
- package/dist/types/main.js +2 -13
- package/dist/types/main.js.map +1 -1
- package/dist/types/sdks/DataExplorer/components/Table/index.d.ts +4 -0
- package/dist/types/sdks/DataExplorer/components/Table/index.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Table/index.js +65 -0
- package/dist/types/sdks/DataExplorer/components/Table/index.js.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Table/styles.d.ts +6 -0
- package/dist/types/sdks/DataExplorer/components/Table/styles.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Table/styles.js +27 -0
- package/dist/types/sdks/DataExplorer/components/Table/styles.js.map +1 -0
- package/dist/types/sdks/DataExplorer/context.d.ts +3 -0
- package/dist/types/sdks/DataExplorer/context.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/context.js +3 -0
- package/dist/types/sdks/DataExplorer/context.js.map +1 -1
- package/dist/types/sdks/DataExplorer/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/index.js +8 -0
- package/dist/types/sdks/DataExplorer/index.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Household/index.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Household/index.js +2 -1
- package/dist/types/sdks/Demographics/components/Content/Household/index.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Household/styles.d.ts +3 -0
- package/dist/types/sdks/Demographics/components/Content/Household/styles.d.ts.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Household/styles.js +19 -0
- package/dist/types/sdks/Demographics/components/Content/Household/styles.js.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/index.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Housing/index.js +10 -7
- package/dist/types/sdks/Demographics/components/Content/Housing/index.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.d.ts +3 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.d.ts.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.js +12 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.js.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.d.ts +3 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.d.ts.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.js +14 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.js.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/index.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/index.js +3 -0
- package/dist/types/sdks/Demographics/components/Content/index.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/styles.js +1 -1
- package/dist/types/sdks/Demographics/components/Content/styles.js.map +1 -1
- package/dist/types/sdks/Demographics/context.d.ts +3 -0
- package/dist/types/sdks/Demographics/context.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/context.js.map +1 -1
- package/dist/types/sdks/Demographics/styles.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/styles.js +0 -1
- package/dist/types/sdks/Demographics/styles.js.map +1 -1
- package/dist/types/utils/errorTracker/index.d.ts +23 -0
- package/dist/types/utils/errorTracker/index.d.ts.map +1 -0
- package/dist/types/utils/errorTracker/index.js +100 -0
- package/dist/types/utils/errorTracker/index.js.map +1 -0
- package/package.json +5 -4
- package/dist/assets/index-legacy.02b7ed30.js +0 -1
- package/dist/assets/index-legacy.0500abfa.js +0 -106
- package/dist/assets/index-legacy.4d0178fa.js +0 -1
- package/dist/assets/index.3e70a7fa.js +0 -28
- package/dist/assets/index.414e070d.js +0 -1374
- package/dist/assets/index.630bec89.js +0 -120
- package/dist/assets/index.693f2772.js +0 -247
- package/dist/assets/index.d464e7cf.js +0 -1
- package/dist/assets/index.e63e2d64.js +0 -1
- package/dist/assets/polyfills-legacy.147ba02d.js +0 -1
- package/dist/assets/useQuery.fe83c221.js +0 -9
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
!function(){var t,e,n,r,i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k,S,E,C,A,T,M,O,P,R,D,L,I,N,F,z,j,B,V,H,U,W,Y,G,q,Z,X,K,$,Q,J,tt,et,nt,rt,it,at,ot,st,ut,lt,ct,ft,dt,ht,pt,vt,gt,mt,yt,bt,_t,xt,wt,kt,St,Et,Ct,At,Tt,Mt,Ot,Pt,Rt,Dt,Lt,It,Nt,Ft,zt,jt,Bt,Vt,Ht,Ut,Wt,Yt,Gt,qt,Zt,Xt,Kt,$t,Qt,Jt,te,ee,ne,re,ie,ae,oe,se,ue,le,ce,fe,de,he,pe,ve,ge,me,ye,be,_e,xe,we,ke,Se,Ee,Ce,Ae,Te,Me,Oe,Pe,Re,De,Le,Ie,Ne,Fe,ze,je,Be,Ve,He,Ue,We,Ye,Ge,qe,Ze,Xe,Ke,$e,Qe,Je=["category","level","message"],tn=["flushMinDelay","flushMaxDelay","stickySession","useCompression","sessionSampleRate","errorSampleRate","maskAllText","maskTextSelector","maskAllInputs","blockAllMedia","_experiments","blockClass","ignoreClass","maskTextClass","blockSelector"],en=["startTimestamp"],nn=["children"],rn=["scope","children"],an=["children"],on=["children"],sn=["asChild"],un=["htmlFor","id"],ln=["__scopeSwitch","aria-labelledby","name","checked","defaultChecked","required","disabled","value","onCheckedChange"],cn=["__scopeSwitch"],fn=["control","checked","bubbles"],dn=["scope","children"],hn=["name","min","max","step","orientation","disabled","minStepsBetweenThumbs","defaultValue","value","onValueChange"],pn=["min","max","dir","onSlideStart","onSlideMove","onStepKeyDown"],vn=["min","max","onSlideStart","onSlideMove","onStepKeyDown"],gn=["__scopeSlider","onSlideStart","onSlideMove","onSlideEnd","onHomeKeyDown","onEndKeyDown","onStepKeyDown"],mn=["__scopeSlider"],yn=["__scopeSlider"],bn=["__scopeSlider","index"],_n=["value"],xn=["label","showValue"],wn=["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent","updateMode"],kn=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"],Sn=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"],En=["container"],Cn=["__scopeSelect","disabled","aria-labelledby"],An=["__scopeSelect","className","style","children","placeholder"],Tn=["__scopeSelect","children"],Mn=["__scopeSelect","onCloseAutoFocus"],On=["__scopeSelect"],Pn=["__scopeSelect"],Rn=["__scopeSelect"],Dn=["__scopeSelect","value","disabled","textValue"],Ln=["__scopeSelect","className","style"],In=["__scopeSelect"],Nn=["__scopeSelect","onAutoScroll"],Fn=["__scopeSelect"],zn=["value"],jn=["size","children"],Bn=["size","children"],Vn=["children"],Hn=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"],Un=["strategy"],Wn=["mainAxis","crossAxis","limiter"],Yn=["children","width","height"],Gn=["__scopePopper","virtualRef"],qn=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions"],Zn=["__scopePopper"],Xn=["__scopePopover"],Kn=["__scopePopover"],$n=["forceMount"],Qn=["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],Jn=["__scopePopover"],tr=["__scopePopover"],er=["children"],nr=["scope","children"],rr=["children"],ir=["children"],ar=["asChild"],or=["htmlFor","id"],sr=["__scopeSwitch","aria-labelledby","name","checked","defaultChecked","required","disabled","value","onCheckedChange"],ur=["__scopeSwitch"],lr=["control","checked","bubbles"],cr=["scope","children"],fr=["name","min","max","step","orientation","disabled","minStepsBetweenThumbs","defaultValue","value","onValueChange"],dr=["min","max","dir","onSlideStart","onSlideMove","onStepKeyDown"],hr=["min","max","onSlideStart","onSlideMove","onStepKeyDown"],pr=["__scopeSlider","onSlideStart","onSlideMove","onSlideEnd","onHomeKeyDown","onEndKeyDown","onStepKeyDown"],vr=["__scopeSlider"],gr=["__scopeSlider"],mr=["__scopeSlider","index"],yr=["value"],br=["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent","updateMode"],_r=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"],xr=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"],wr=["container"],kr=["__scopeSelect","disabled","aria-labelledby"],Sr=["__scopeSelect","className","style","children","placeholder"],Er=["__scopeSelect","children"],Cr=["__scopeSelect","onCloseAutoFocus"],Ar=["__scopeSelect"],Tr=["__scopeSelect"],Mr=["__scopeSelect"],Or=["__scopeSelect","value","disabled","textValue"],Pr=["__scopeSelect","className","style"],Rr=["__scopeSelect"],Dr=["__scopeSelect","onAutoScroll"],Lr=["__scopeSelect"],Ir=["value"],Nr=["size","children"],Fr=["size","children"],zr=["children"],jr=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"],Br=["strategy"],Vr=["mainAxis","crossAxis","limiter"],Hr=["children","width","height"],Ur=["__scopePopper","virtualRef"],Wr=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions"],Yr=["__scopePopper"],Gr=["__scopePopover"],qr=["__scopePopover"],Zr=["forceMount"],Xr=["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],Kr=["__scopePopover"],$r=["__scopePopover"],Qr=["scope","children"],Jr=["children"],ti=["children"],ei=["scope","children"],ni=["asChild"],ri=["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus"],ii=["__scopeRovingFocusGroup","focusable","active"],ai=["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode"],oi=["__scopeTabs","loop"],si=["__scopeTabs","value","disabled"],ui=["__scopeTabs","value","forceMount","children"];function li(t){return Si(t)||yi(t)||ji(t)||ki()}function ci(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function fi(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function di(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */di=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(C){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof f?e:f,a=Object.create(i.prototype),o=new k(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return E()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=_(o,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,o),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(C){return{type:"throw",arg:C}}}t.wrap=u;var c={};function f(){}function d(){}function h(){}var p={};s(p,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(S([])));g&&g!==e&&n.call(g,i)&&(p=g);var m=h.prototype=f.prototype=Object.create(p);function y(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(i,a,o,s){var u=l(t[i],t,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Fi(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,o,s)}),(function(t){r("throw",t,o,s)})):e.resolve(f).then((function(t){c.value=t,o(c)}),(function(t){return r("throw",t,o,s)}))}s(u.arg)}var i;this._invoke=function(t,n){function a(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(a,a):a()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:E}}function E(){return{value:void 0,done:!0}}return d.prototype=h,s(m,"constructor",h),s(h,"constructor",d),d.displayName=s(h,o,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,o,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},y(b.prototype),s(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new b(u(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},y(m),s(m,o,"Generator"),s(m,i,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=S,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return o.type="throw",o.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}function hi(t,e,n,r,i,a,o){try{var s=t[a](o),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function pi(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function o(t){hi(a,r,i,o,s,"next",t)}function s(t){hi(a,r,i,o,s,"throw",t)}o(void 0)}))}}function vi(){return vi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=gi(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},vi.apply(this,arguments)}function gi(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ni(t)););return t}function mi(t){return function(t){if(Array.isArray(t))return Bi(t)}(t)||yi(t)||ji(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yi(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function bi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bi(Object(n),!0).forEach((function(e){xi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wi(t,e){return Si(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,a=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}(t,e)||ji(t,e)||ki()}function ki(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Si(t){if(Array.isArray(t))return t}function Ei(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ci(t,e,n){return e&&Ei(t.prototype,e),n&&Ei(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ai(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ti(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ii(t,e)}function Mi(t){var e=Li();return function(){var n,r=Ni(t);if(e){var i=Ni(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Oi(this,n)}}function Oi(t,e){if(e&&("object"===Fi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Pi(t)}function Pi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ri(t){var e="function"==typeof Map?new Map:void 0;return Ri=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Di(t,arguments,Ni(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ii(r,t)},Ri(t)}function Di(t,e,n){return Di=Li()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&Ii(i,n.prototype),i},Di.apply(null,arguments)}function Li(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Ii(t,e){return Ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ii(t,e)}function Ni(t){return Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ni(t)}function Fi(t){return Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(t)}function zi(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ji(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function ji(t,e){if(t){if("string"==typeof t)return Bi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bi(t,e):void 0}}function Bi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}System.register([],(function(hi,gi){"use strict";return{execute:function(){function yi(t,e){for(var n=function(){var n=e[r];if("string"!=typeof n&&!Array.isArray(n)){var i=function(e){if("default"!==e&&!(e in t)){var r=Object.getOwnPropertyDescriptor(n,e);r&&Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:function(){return n[e]}})}};for(var a in n)i(a)}},r=0;r<e.length;r++)n();return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}hi({A:WC,H:function(t,e){if(t&&!e||e&&!t)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0},J:lK,M:cK,P:fK,T:PK,a0:AK,a1:DK,a4:dK,b:qy,k:KC,z:uX});hi("y","undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function bi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ki=hi("r",{exports:{}}),Si={},Ei=Symbol.for("react.element"),Di=Symbol.for("react.portal"),Li=Symbol.for("react.fragment"),Ii=Symbol.for("react.strict_mode"),ji=Symbol.for("react.profiler"),Bi=Symbol.for("react.provider"),Vi=Symbol.for("react.context"),Hi=Symbol.for("react.forward_ref"),Ui=Symbol.for("react.suspense"),Wi=Symbol.for("react.memo"),Yi=Symbol.for("react.lazy"),Gi=Symbol.iterator;var qi={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zi=Object.assign,Xi={};function Ki(t,e,n){this.props=t,this.context=e,this.refs=Xi,this.updater=n||qi}function $i(){}function Qi(t,e,n){this.props=t,this.context=e,this.refs=Xi,this.updater=n||qi}Ki.prototype.isReactComponent={},Ki.prototype.setState=function(t,e){if("object"!==Fi(t)&&"function"!=typeof t&&null!=t)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")},Ki.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},$i.prototype=Ki.prototype;var Ji=Qi.prototype=new $i;Ji.constructor=Qi,Zi(Ji,Ki.prototype),Ji.isPureReactComponent=!0;var ta=Array.isArray,ea=Object.prototype.hasOwnProperty,na={current:null},ra={key:!0,ref:!0,__self:!0,__source:!0};function ia(t,e,n){var r,i={},a=null,o=null;if(null!=e)for(r in void 0!==e.ref&&(o=e.ref),void 0!==e.key&&(a=""+e.key),e)ea.call(e,r)&&!ra.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];i.children=u}if(t&&t.defaultProps)for(r in s=t.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:Ei,type:t,key:a,ref:o,props:i,_owner:na.current}}function aa(t){return"object"===Fi(t)&&null!==t&&t.$$typeof===Ei}var oa=/\/+/g;function sa(t,e){return"object"===Fi(t)&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function ua(t,e,n,r,i){var a=Fi(t);"undefined"!==a&&"boolean"!==a||(t=null);var o=!1;if(null===t)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Ei:case Di:o=!0}}if(o)return i=i(o=t),t=""===r?"."+sa(o,0):r,ta(i)?(n="",null!=t&&(n=t.replace(oa,"$&/")+"/"),ua(i,e,n,"",(function(t){return t}))):null!=i&&(aa(i)&&(i=function(t,e){return{$$typeof:Ei,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(oa,"$&/")+"/")+t)),e.push(i)),1;if(o=0,r=""===r?".":r+":",ta(t))for(var s=0;s<t.length;s++){var u=r+sa(a=t[s],s);o+=ua(a,e,n,u,i)}else if(u=function(t){return null===t||"object"!==Fi(t)?null:"function"==typeof(t=Gi&&t[Gi]||t["@@iterator"])?t:null}(t),"function"==typeof u)for(t=u.call(t),s=0;!(a=t.next()).done;)o+=ua(a=a.value,e,n,u=r+sa(a,s++),i);else if("object"===a)throw e=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function la(t,e,n){if(null==t)return t;var r=[],i=0;return ua(t,r,"","",(function(t){return e.call(n,t,i++)})),r}function ca(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)}),(function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var fa={current:null},da={transition:null},ha={ReactCurrentDispatcher:fa,ReactCurrentBatchConfig:da,ReactCurrentOwner:na};Si.Children={map:la,forEach:function(t,e,n){la(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return la(t,(function(){e++})),e},toArray:function(t){return la(t,(function(t){return t}))||[]},only:function(t){if(!aa(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Si.Component=Ki,Si.Fragment=Li,Si.Profiler=ji,Si.PureComponent=Qi,Si.StrictMode=Ii,Si.Suspense=Ui,Si.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ha,Si.cloneElement=function(t,e,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Zi({},t.props),i=t.key,a=t.ref,o=t._owner;if(null!=e){if(void 0!==e.ref&&(a=e.ref,o=na.current),void 0!==e.key&&(i=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(u in e)ea.call(e,u)&&!ra.hasOwnProperty(u)&&(r[u]=void 0===e[u]&&void 0!==s?s[u]:e[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){s=Array(u);for(var l=0;l<u;l++)s[l]=arguments[l+2];r.children=s}return{$$typeof:Ei,type:t.type,key:i,ref:a,props:r,_owner:o}},Si.createContext=function(t){return(t={$$typeof:Vi,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:Bi,_context:t},t.Consumer=t},Si.createElement=ia,Si.createFactory=function(t){var e=ia.bind(null,t);return e.type=t,e},Si.createRef=function(){return{current:null}},Si.forwardRef=function(t){return{$$typeof:Hi,render:t}},Si.isValidElement=aa,Si.lazy=function(t){return{$$typeof:Yi,_payload:{_status:-1,_result:t},_init:ca}},Si.memo=function(t,e){return{$$typeof:Wi,type:t,compare:void 0===e?null:e}},Si.startTransition=function(t){var e=da.transition;da.transition={};try{t()}finally{da.transition=e}},Si.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Si.useCallback=function(t,e){return fa.current.useCallback(t,e)},Si.useContext=function(t){return fa.current.useContext(t)},Si.useDebugValue=function(){},Si.useDeferredValue=function(t){return fa.current.useDeferredValue(t)},Si.useEffect=function(t,e){return fa.current.useEffect(t,e)},Si.useId=function(){return fa.current.useId()},Si.useImperativeHandle=function(t,e,n){return fa.current.useImperativeHandle(t,e,n)},Si.useInsertionEffect=function(t,e){return fa.current.useInsertionEffect(t,e)},Si.useLayoutEffect=function(t,e){return fa.current.useLayoutEffect(t,e)},Si.useMemo=function(t,e){return fa.current.useMemo(t,e)},Si.useReducer=function(t,e,n){return fa.current.useReducer(t,e,n)},Si.useRef=function(t){return fa.current.useRef(t)},Si.useState=function(t){return fa.current.useState(t)},Si.useSyncExternalStore=function(t,e,n){return fa.current.useSyncExternalStore(t,e,n)},Si.useTransition=function(){return fa.current.useTransition()},Si.version="18.2.0",function(t){t.exports=Si}(ki);var pa=hi("R",bi(ki.exports)),va=yi({__proto__:null,default:pa},[ki.exports]);hi("$",va);var ga={},ma=hi("x",{exports:{}}),ya={},ba={exports:{}},_a={};
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* scheduler.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
!function(t){function e(t,e){var n=t.length;t.push(e);t:for(;0<n;){var r=n-1>>>1,a=t[r];if(!(0<i(a,e)))break t;t[r]=e,t[n]=a,n=r}}function n(t){return 0===t.length?null:t[0]}function r(t){if(0===t.length)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,a=t.length,o=a>>>1;r<o;){var s=2*(r+1)-1,u=t[s],l=s+1,c=t[l];if(0>i(u,n))l<a&&0>i(c,u)?(t[r]=c,t[l]=n,r=l):(t[r]=u,t[s]=n,r=s);else{if(!(l<a&&0>i(c,n)))break t;t[r]=c,t[l]=n,r=l}}}return e}function i(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"===("undefined"==typeof performance?"undefined":Fi(performance))&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var u=[],l=[],c=1,f=null,d=3,h=!1,p=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(t){for(var i=n(l);null!==i;){if(null===i.callback)r(l);else{if(!(i.startTime<=t))break;r(l),i.sortIndex=i.expirationTime,e(u,i)}i=n(l)}}function _(t){if(v=!1,b(t),!p)if(null!==n(u))p=!0,R(x);else{var e=n(l);null!==e&&D(_,e.startTime-t)}}function x(e,i){p=!1,v&&(v=!1,m(E),E=-1),h=!0;var a=d;try{for(b(i),f=n(u);null!==f&&(!(f.expirationTime>i)||e&&!T());){var o=f.callback;if("function"==typeof o){f.callback=null,d=f.priorityLevel;var s=o(f.expirationTime<=i);i=t.unstable_now(),"function"==typeof s?f.callback=s:f===n(u)&&r(u),b(i)}else r(u);f=n(u)}if(null!==f)var c=!0;else{var g=n(l);null!==g&&D(_,g.startTime-i),c=!1}return c}finally{f=null,d=a,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,S=null,E=-1,C=5,A=-1;function T(){return!(t.unstable_now()-A<C)}function M(){if(null!==S){var e=t.unstable_now();A=e;var n=!0;try{n=S(!0,e)}finally{n?w():(k=!1,S=null)}}else k=!1}if("function"==typeof y)w=function(){y(M)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,P=O.port2;O.port1.onmessage=M,w=function(){P.postMessage(null)}}else w=function(){g(M,0)};function R(t){S=t,k||(k=!0,w())}function D(e,n){E=g((function(){e(t.unstable_now())}),n)}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(t){t.callback=null},t.unstable_continueExecution=function(){p||h||(p=!0,R(x))},t.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<t?Math.floor(1e3/t):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(t){switch(d){case 1:case 2:case 3:var e=3;break;default:e=d}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_scheduleCallback=function(r,i,a){var o=t.unstable_now();switch("object"===Fi(a)&&null!==a?a="number"==typeof(a=a.delay)&&0<a?o+a:o:a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:i,priorityLevel:r,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(r.sortIndex=a,e(l,r),null===n(u)&&r===n(l)&&(v?(m(E),E=-1):v=!0,D(_,a-o))):(r.sortIndex=s,e(u,r),p||h||(p=!0,R(x))),r},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(t){var e=d;return function(){var n=d;d=e;try{return t.apply(this,arguments)}finally{d=n}}}}(_a),function(t){t.exports=_a}(ba);
|
|
12
|
-
/**
|
|
13
|
-
* @license React
|
|
14
|
-
* react-dom.production.min.js
|
|
15
|
-
*
|
|
16
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the MIT license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/
|
|
21
|
-
var xa=ki.exports,wa=ba.exports;function ka(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 Sa=new Set,Ea={};function Ca(t,e){Aa(t,e),Aa(t+"Capture",e)}function Aa(t,e){for(Ea[t]=e,t=0;t<e.length;t++)Sa.add(e[t])}var Ta=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ma=Object.prototype.hasOwnProperty,Oa=/^[: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]*$/,Pa={},Ra={};function Da(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(Fi(e)){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function La(t,e,n,r,i,a,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=o}var Ia={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){Ia[t]=new La(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];Ia[e]=new La(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){Ia[t]=new La(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){Ia[t]=new La(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){Ia[t]=new La(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){Ia[t]=new La(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){Ia[t]=new La(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){Ia[t]=new La(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){Ia[t]=new La(t,5,!1,t.toLowerCase(),null,!1,!1)}));var Na=/[\-:]([a-z])/g;function Fa(t){return t[1].toUpperCase()}function za(t,e,n,r){var i=Ia.hasOwnProperty(e)?Ia[e]:null;(null!==i?0!==i.type:r||!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1])&&(Da(e,n,i,r)&&(n=null),r||null===i?function(t){return!!Ma.call(Ra,t)||!Ma.call(Pa,t)&&(Oa.test(t)?Ra[t]=!0:(Pa[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}"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(Na,Fa);Ia[e]=new La(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(Na,Fa);Ia[e]=new La(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(Na,Fa);Ia[e]=new La(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){Ia[t]=new La(t,1,!1,t.toLowerCase(),null,!1,!1)})),Ia.xlinkHref=new La("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){Ia[t]=new La(t,1,!1,t.toLowerCase(),null,!0,!0)}));var ja=xa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ba=Symbol.for("react.element"),Va=Symbol.for("react.portal"),Ha=Symbol.for("react.fragment"),Ua=Symbol.for("react.strict_mode"),Wa=Symbol.for("react.profiler"),Ya=Symbol.for("react.provider"),Ga=Symbol.for("react.context"),qa=Symbol.for("react.forward_ref"),Za=Symbol.for("react.suspense"),Xa=Symbol.for("react.suspense_list"),Ka=Symbol.for("react.memo"),$a=Symbol.for("react.lazy"),Qa=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function to(t){return null===t||"object"!==Fi(t)?null:"function"==typeof(t=Ja&&t[Ja]||t["@@iterator"])?t:null}var eo,no=Object.assign;function ro(t){if(void 0===eo)try{throw Error()}catch(rP){var e=rP.stack.trim().match(/\n( *(at )?)/);eo=e&&e[1]||""}return"\n"+eo+t}var io=!1;function ao(t,e){if(!t||io)return"";io=!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()}}),"object"===("undefined"==typeof Reflect?"undefined":Fi(Reflect))&&Reflect.construct){try{Reflect.construct(e,[])}catch(H$){var r=H$}Reflect.construct(t,[],e)}else{try{e.call()}catch(H$){r=H$}t.call(e.prototype)}else{try{throw Error()}catch(H$){r=H$}t()}}catch(H$){if(H$&&r&&"string"==typeof H$.stack){for(var i=H$.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var u="\n"+i[o].replace(" at new "," at ");return t.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",t.displayName)),u}}while(1<=o&&0<=s);break}}}finally{io=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?ro(t):""}function oo(t){switch(t.tag){case 5:return ro(t.type);case 16:return ro("Lazy");case 13:return ro("Suspense");case 19:return ro("SuspenseList");case 0:case 2:case 15:return t=ao(t.type,!1);case 11:return t=ao(t.type.render,!1);case 1:return t=ao(t.type,!0);default:return""}}function so(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case Ha:return"Fragment";case Va:return"Portal";case Wa:return"Profiler";case Ua:return"StrictMode";case Za:return"Suspense";case Xa:return"SuspenseList"}if("object"===Fi(t))switch(t.$$typeof){case Ga:return(t.displayName||"Context")+".Consumer";case Ya:return(t._context.displayName||"Context")+".Provider";case qa:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case Ka:return null!==(e=t.displayName||null)?e:so(t.type)||"Memo";case $a:e=t._payload,t=t._init;try{return so(t(e))}catch(rP){}}return null}function uo(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=(t=e.render).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 so(e);case 8:return e===Ua?"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("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e}return null}function lo(t){switch(Fi(t)){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function co(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function fo(t){t._valueTracker||(t._valueTracker=function(t){var e=co(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,a.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function ho(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=co(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function po(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(EJ){return t.body}}function vo(t,e){var n=e.checked;return no({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function go(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=lo(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function mo(t,e){null!=(e=e.checked)&&za(t,"checked",e,!1)}function yo(t,e){mo(t,e);var n=lo(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?_o(t,e.type,n):e.hasOwnProperty("defaultValue")&&_o(t,e.type,lo(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function bo(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function _o(t,e,n){"number"===e&&po(t.ownerDocument)===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var xo=Array.isArray;function wo(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=""+lo(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function ko(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(ka(91));return no({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function So(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(ka(92));if(xo(n)){if(1<n.length)throw Error(ka(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:lo(n)}}function Eo(t,e){var n=lo(e.value),r=lo(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Co(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}function Ao(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 To(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Ao(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Mo,Oo=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction((function(){return t(e,n)}))}:t}((function(t,e){if("http://www.w3.org/2000/svg"!==t.namespaceURI||"innerHTML"in t)t.innerHTML=e;else{for((Mo=Mo||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Mo.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function Po(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var Ro={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},Do=["Webkit","ms","Moz","O"];function Lo(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||Ro.hasOwnProperty(t)&&Ro[t]?(""+e).trim():e+"px"}function Io(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Lo(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(Ro).forEach((function(t){Do.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ro[e]=Ro[t]}))}));var No=no({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 Fo(t,e){if(e){if(No[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(ka(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(ka(60));if("object"!==Fi(e.dangerouslySetInnerHTML)||!("__html"in e.dangerouslySetInnerHTML))throw Error(ka(61))}if(null!=e.style&&"object"!==Fi(e.style))throw Error(ka(62))}}function zo(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;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 jo=null;function Bo(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var Vo=null,Ho=null,Uo=null;function Wo(t){if(t=Fc(t)){if("function"!=typeof Vo)throw Error(ka(280));var e=t.stateNode;e&&(e=jc(e),Vo(t.stateNode,t.type,e))}}function Yo(t){Ho?Uo?Uo.push(t):Uo=[t]:Ho=t}function Go(){if(Ho){var t=Ho,e=Uo;if(Uo=Ho=null,Wo(t),e)for(t=0;t<e.length;t++)Wo(e[t])}}function qo(t,e){return t(e)}function Zo(){}var Xo=!1;function Ko(t,e,n){if(Xo)return t(e,n);Xo=!0;try{return qo(t,e,n)}finally{Xo=!1,(null!==Ho||null!==Uo)&&(Zo(),Go())}}function $o(t,e){var n=t.stateNode;if(null===n)return null;var r=jc(n);if(null===r)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)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(ka(231,e,Fi(n)));return n}var Qo=!1;if(Ta)try{var Jo={};Object.defineProperty(Jo,"passive",{get:function(){Qo=!0}}),window.addEventListener("test",Jo,Jo),window.removeEventListener("test",Jo,Jo)}catch(eP){Qo=!1}function ts(t,e,n,r,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{e.apply(n,l)}catch(M$){this.onError(M$)}}var es=!1,ns=null,rs=!1,is=null,as={onError:function(t){es=!0,ns=t}};function os(t,e,n,r,i,a,o,s,u){es=!1,ns=null,ts.apply(as,arguments)}function ss(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!=(4098&(e=t).flags)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function us(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ls(t){if(ss(t)!==t)throw Error(ka(188))}function cs(t){return t=function(t){var e=t.alternate;if(!e){if(null===(e=ss(t)))throw Error(ka(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return ls(i),t;if(a===r)return ls(i),e;a=a.sibling}throw Error(ka(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(ka(189))}}if(n.alternate!==r)throw Error(ka(190))}if(3!==n.tag)throw Error(ka(188));return n.stateNode.current===n?t:e}(t),null!==t?fs(t):null}function fs(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var e=fs(t);if(null!==e)return e;t=t.sibling}return null}var ds=wa.unstable_scheduleCallback,hs=wa.unstable_cancelCallback,ps=wa.unstable_shouldYield,vs=wa.unstable_requestPaint,gs=wa.unstable_now,ms=wa.unstable_getCurrentPriorityLevel,ys=wa.unstable_ImmediatePriority,bs=wa.unstable_UserBlockingPriority,_s=wa.unstable_NormalPriority,xs=wa.unstable_LowPriority,ws=wa.unstable_IdlePriority,ks=null,Ss=null;var Es=Math.clz32?Math.clz32:function(t){return 0===(t>>>=0)?32:31-(Cs(t)/As|0)|0},Cs=Math.log,As=Math.LN2;var Ts=64,Ms=4194304;function Os(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 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ps(t,e){var n=t.pendingLanes;if(0===n)return 0;var r=0,i=t.suspendedLanes,a=t.pingedLanes,o=268435455&n;if(0!==o){var s=o&~i;0!==s?r=Os(s):0!==(a&=o)&&(r=Os(a))}else 0!==(o=n&~i)?r=Os(o):0!==a&&(r=Os(a));if(0===r)return 0;if(0!==e&&e!==r&&0==(e&i)&&((i=r&-r)>=(a=e&-e)||16===i&&0!=(4194240&a)))return e;if(0!=(4&r)&&(r|=16&n),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=r;0<e;)i=1<<(n=31-Es(e)),r|=t[n],e&=~i;return r}function Rs(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;default:return-1}}function Ds(t){return 0!==(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function Ls(){var t=Ts;return 0==(4194240&(Ts<<=1))&&(Ts=64),t}function Is(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ns(t,e,n){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-Es(e)]=n}function Fs(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Es(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var zs=0;function js(t){return 1<(t&=-t)?4<t?0!=(268435455&t)?16:536870912:4:1}var Bs,Vs,Hs,Us,Ws,Ys=!1,Gs=[],qs=null,Zs=null,Xs=null,Ks=new Map,$s=new Map,Qs=[],Js="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 tu(t,e){switch(t){case"focusin":case"focusout":qs=null;break;case"dragenter":case"dragleave":Zs=null;break;case"mouseover":case"mouseout":Xs=null;break;case"pointerover":case"pointerout":Ks.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":$s.delete(e.pointerId)}}function eu(t,e,n,r,i,a){return null===t||t.nativeEvent!==a?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==e&&(null!==(e=Fc(e))&&Vs(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,null!==i&&-1===e.indexOf(i)&&e.push(i),t)}function nu(t){var e=Nc(t.target);if(null!==e){var n=ss(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=us(n)))return t.blockedOn=e,void Ws(t.priority,(function(){Hs(n)}))}else if(3===e&&n.stateNode.current.memoizedState.isDehydrated)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function ru(t){if(null!==t.blockedOn)return!1;for(var e=t.targetContainers;0<e.length;){var n=pu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==n)return null!==(e=Fc(n))&&Vs(e),t.blockedOn=n,!1;var r=new(n=t.nativeEvent).constructor(n.type,n);jo=r,n.target.dispatchEvent(r),jo=null,e.shift()}return!0}function iu(t,e,n){ru(t)&&n.delete(e)}function au(){Ys=!1,null!==qs&&ru(qs)&&(qs=null),null!==Zs&&ru(Zs)&&(Zs=null),null!==Xs&&ru(Xs)&&(Xs=null),Ks.forEach(iu),$s.forEach(iu)}function ou(t,e){t.blockedOn===e&&(t.blockedOn=null,Ys||(Ys=!0,wa.unstable_scheduleCallback(wa.unstable_NormalPriority,au)))}function su(t){function e(e){return ou(e,t)}if(0<Gs.length){ou(Gs[0],t);for(var n=1;n<Gs.length;n++){var r=Gs[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==qs&&ou(qs,t),null!==Zs&&ou(Zs,t),null!==Xs&&ou(Xs,t),Ks.forEach(e),$s.forEach(e),n=0;n<Qs.length;n++)(r=Qs[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Qs.length&&null===(n=Qs[0]).blockedOn;)nu(n),null===n.blockedOn&&Qs.shift()}var uu=ja.ReactCurrentBatchConfig,lu=!0;function cu(t,e,n,r){var i=zs,a=uu.transition;uu.transition=null;try{zs=1,du(t,e,n,r)}finally{zs=i,uu.transition=a}}function fu(t,e,n,r){var i=zs,a=uu.transition;uu.transition=null;try{zs=4,du(t,e,n,r)}finally{zs=i,uu.transition=a}}function du(t,e,n,r){if(lu){var i=pu(t,e,n,r);if(null===i)uc(t,e,r,hu,n),tu(t,r);else if(function(t,e,n,r,i){switch(e){case"focusin":return qs=eu(qs,t,e,n,r,i),!0;case"dragenter":return Zs=eu(Zs,t,e,n,r,i),!0;case"mouseover":return Xs=eu(Xs,t,e,n,r,i),!0;case"pointerover":var a=i.pointerId;return Ks.set(a,eu(Ks.get(a)||null,t,e,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,$s.set(a,eu($s.get(a)||null,t,e,n,r,i)),!0}return!1}(i,t,e,n,r))r.stopPropagation();else if(tu(t,r),4&e&&-1<Js.indexOf(t)){for(;null!==i;){var a=Fc(i);if(null!==a&&Bs(a),null===(a=pu(t,e,n,r))&&uc(t,e,r,hu,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else uc(t,e,r,null,n)}}var hu=null;function pu(t,e,n,r){if(hu=null,null!==(t=Nc(t=Bo(r))))if(null===(e=ss(t)))t=null;else if(13===(n=e.tag)){if(null!==(t=us(e)))return t;t=null}else if(3===n){if(e.stateNode.current.memoizedState.isDehydrated)return 3===e.tag?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return hu=t,null}function vu(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(ms()){case ys:return 1;case bs:return 4;case _s:case xs:return 16;case ws:return 536870912;default:return 16}default:return 16}}var gu=null,mu=null,yu=null;function bu(){if(yu)return yu;var t,e,n=mu,r=n.length,i="value"in gu?gu.value:gu.textContent,a=i.length;for(t=0;t<r&&n[t]===i[t];t++);var o=r-t;for(e=1;e<=o&&n[r-e]===i[a-e];e++);return yu=i.slice(t,1<e?1-e:void 0)}function _u(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function xu(){return!0}function wu(){return!1}function ku(t){function e(e,n,r,i,a){for(var o in this._reactName=e,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,t)t.hasOwnProperty(o)&&(e=t[o],this[o]=e?e(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?xu:wu,this.isPropagationStopped=wu,this}return no(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=xu)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=xu)},persist:function(){},isPersistent:xu}),e}var Su,Eu,Cu,Au={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tu=ku(Au),Mu=no({},Au,{view:0,detail:0}),Ou=ku(Mu),Pu=no({},Mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uu,button:0,buttons:0,relatedTarget:function(t){return void 0===t.relatedTarget?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Cu&&(Cu&&"mousemove"===t.type?(Su=t.screenX-Cu.screenX,Eu=t.screenY-Cu.screenY):Eu=Su=0,Cu=t),Su)},movementY:function(t){return"movementY"in t?t.movementY:Eu}}),Ru=ku(Pu),Du=ku(no({},Pu,{dataTransfer:0})),Lu=ku(no({},Mu,{relatedTarget:0})),Iu=ku(no({},Au,{animationName:0,elapsedTime:0,pseudoElement:0})),Nu=no({},Au,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Fu=ku(Nu),zu=ku(no({},Au,{data:0})),ju={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bu={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"},Vu={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hu(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Vu[t])&&!!e[t]}function Uu(){return Hu}var Wu=no({},Mu,{key:function(t){if(t.key){var e=ju[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=_u(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?Bu[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uu,charCode:function(t){return"keypress"===t.type?_u(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?_u(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),Yu=ku(Wu),Gu=ku(no({},Pu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),qu=ku(no({},Mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uu})),Zu=ku(no({},Au,{propertyName:0,elapsedTime:0,pseudoElement:0})),Xu=no({},Pu,{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}),Ku=ku(Xu),$u=[9,13,27,32],Qu=Ta&&"CompositionEvent"in window,Ju=null;Ta&&"documentMode"in document&&(Ju=document.documentMode);var tl=Ta&&"TextEvent"in window&&!Ju,el=Ta&&(!Qu||Ju&&8<Ju&&11>=Ju),nl=String.fromCharCode(32),rl=!1;function il(t,e){switch(t){case"keyup":return-1!==$u.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function al(t){return"object"===Fi(t=t.detail)&&"data"in t?t.data:null}var ol=!1;var sl={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 ul(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!sl[t.type]:"textarea"===e}function ll(t,e,n,r){Yo(r),0<(e=cc(e,"onChange")).length&&(n=new Tu("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var cl=null,fl=null;function dl(t){nc(t,0)}function hl(t){if(ho(zc(t)))return t}function pl(t,e){if("change"===t)return e}var vl=!1;if(Ta){var gl;if(Ta){var ml="oninput"in document;if(!ml){var yl=document.createElement("div");yl.setAttribute("oninput","return;"),ml="function"==typeof yl.oninput}gl=ml}else gl=!1;vl=gl&&(!document.documentMode||9<document.documentMode)}function bl(){cl&&(cl.detachEvent("onpropertychange",_l),fl=cl=null)}function _l(t){if("value"===t.propertyName&&hl(fl)){var e=[];ll(e,fl,t,Bo(t)),Ko(dl,e)}}function xl(t,e,n){"focusin"===t?(bl(),fl=n,(cl=e).attachEvent("onpropertychange",_l)):"focusout"===t&&bl()}function wl(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return hl(fl)}function kl(t,e){if("click"===t)return hl(e)}function Sl(t,e){if("input"===t||"change"===t)return hl(e)}var El="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e};function Cl(t,e){if(El(t,e))return!0;if("object"!==Fi(t)||null===t||"object"!==Fi(e)||null===e)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(!Ma.call(e,i)||!El(t[i],e[i]))return!1}return!0}function Al(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Tl(t,e){var n,r=Al(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=Al(r)}}function Ml(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?Ml(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function Ol(){for(var t=window,e=po();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(tQ){n=!1}if(!n)break;e=po((t=e.contentWindow).document)}return e}function Pl(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function Rl(t){var e=Ol(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&Ml(n.ownerDocument.documentElement,n)){if(null!==r&&Pl(n))if(e=r.start,void 0===(t=r.end)&&(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).getSelection){t=t.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!t.extend&&a>r&&(i=r,r=a,a=i),i=Tl(n,a);var o=Tl(n,r);i&&o&&(1!==t.rangeCount||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&((e=e.createRange()).setStart(i.node,i.offset),t.removeAllRanges(),a>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<e.length;n++)(t=e[n]).element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Dl=Ta&&"documentMode"in document&&11>=document.documentMode,Ll=null,Il=null,Nl=null,Fl=!1;function zl(t,e,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Fl||null==Ll||Ll!==po(r)||("selectionStart"in(r=Ll)&&Pl(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Nl&&Cl(Nl,r)||(Nl=r,0<(r=cc(Il,"onSelect")).length&&(e=new Tu("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Ll)))}function jl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Bl={animationend:jl("Animation","AnimationEnd"),animationiteration:jl("Animation","AnimationIteration"),animationstart:jl("Animation","AnimationStart"),transitionend:jl("Transition","TransitionEnd")},Vl={},Hl={};function Ul(t){if(Vl[t])return Vl[t];if(!Bl[t])return t;var e,n=Bl[t];for(e in n)if(n.hasOwnProperty(e)&&e in Hl)return Vl[t]=n[e];return t}Ta&&(Hl=document.createElement("div").style,"AnimationEvent"in window||(delete Bl.animationend.animation,delete Bl.animationiteration.animation,delete Bl.animationstart.animation),"TransitionEvent"in window||delete Bl.transitionend.transition);var Wl=Ul("animationend"),Yl=Ul("animationiteration"),Gl=Ul("animationstart"),ql=Ul("transitionend"),Zl=new Map,Xl="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 Kl(t,e){Zl.set(t,e),Ca(e,[t])}for(var $l=0;$l<Xl.length;$l++){var Ql=Xl[$l];Kl(Ql.toLowerCase(),"on"+(Ql[0].toUpperCase()+Ql.slice(1)))}Kl(Wl,"onAnimationEnd"),Kl(Yl,"onAnimationIteration"),Kl(Gl,"onAnimationStart"),Kl("dblclick","onDoubleClick"),Kl("focusin","onFocus"),Kl("focusout","onBlur"),Kl(ql,"onTransitionEnd"),Aa("onMouseEnter",["mouseout","mouseover"]),Aa("onMouseLeave",["mouseout","mouseover"]),Aa("onPointerEnter",["pointerout","pointerover"]),Aa("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 Jl="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(" "),tc=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jl));function ec(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,function(t,e,n,r,i,a,o,s,u){if(os.apply(this,arguments),es){if(!es)throw Error(ka(198));var l=ns;es=!1,ns=null,rs||(rs=!0,is=l)}}(r,e,void 0,t),t.currentTarget=null}function nc(t,e){e=0!=(4&e);for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;t:{var a=void 0;if(e)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break t;ec(i,s,l),a=u}else for(o=0;o<r.length;o++){if(u=(s=r[o]).instance,l=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break t;ec(i,s,l),a=u}}}if(rs)throw t=is,rs=!1,is=null,t}function rc(t,e){var n=e[Dc];void 0===n&&(n=e[Dc]=new Set);var r=t+"__bubble";n.has(r)||(sc(e,t,2,!1),n.add(r))}function ic(t,e,n){var r=0;e&&(r|=4),sc(n,t,r,e)}var ac="_reactListening"+Math.random().toString(36).slice(2);function oc(t){if(!t[ac]){t[ac]=!0,Sa.forEach((function(e){"selectionchange"!==e&&(tc.has(e)||ic(e,!1,t),ic(e,!0,t))}));var e=9===t.nodeType?t:t.ownerDocument;null===e||e[ac]||(e[ac]=!0,ic("selectionchange",!1,e))}}function sc(t,e,n,r){switch(vu(e)){case 1:var i=cu;break;case 4:i=fu;break;default:i=du}n=i.bind(null,e,n,t),i=void 0,!Qo||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(i=!0),r?void 0!==i?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):void 0!==i?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function uc(t,e,n,r,i){var a=r;if(0==(1&e)&&0==(2&e)&&null!==r)t:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=Nc(s)))return;if(5===(u=o.tag)||6===u){r=a=o;continue t}s=s.parentNode}}r=r.return}Ko((function(){var r=a,i=Bo(n),o=[];t:{var s=Zl.get(t);if(void 0!==s){var u=Tu,l=t;switch(t){case"keypress":if(0===_u(n))break t;case"keydown":case"keyup":u=Yu;break;case"focusin":l="focus",u=Lu;break;case"focusout":l="blur",u=Lu;break;case"beforeblur":case"afterblur":u=Lu;break;case"click":if(2===n.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=Ru;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=Du;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=qu;break;case Wl:case Yl:case Gl:u=Iu;break;case ql:u=Zu;break;case"scroll":u=Ou;break;case"wheel":u=Ku;break;case"copy":case"cut":case"paste":u=Fu;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Gu}var c=0!=(4&e),f=!c&&"scroll"===t,d=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==d&&(null!=(v=$o(p,d))&&c.push(lc(p,v,h)))),f)break;p=p.return}0<c.length&&(s=new u(s,l,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&e)){if(u="mouseout"===t||"pointerout"===t,(!(s="mouseover"===t||"pointerover"===t)||n===jo||!(l=n.relatedTarget||n.fromElement)||!Nc(l)&&!l[Rc])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?Nc(l):null)&&(l!==(f=ss(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=Ru,v="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==t&&"pointerover"!==t||(c=Gu,v="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==u?s:zc(u),h=null==l?s:zc(l),(s=new c(v,p+"leave",u,n,i)).target=f,s.relatedTarget=h,v=null,Nc(i)===r&&((c=new c(d,p+"enter",l,n,i)).target=h,c.relatedTarget=f,v=c),f=v,u&&l)t:{for(d=l,p=0,h=c=u;h;h=fc(h))p++;for(h=0,v=d;v;v=fc(v))h++;for(;0<p-h;)c=fc(c),p--;for(;0<h-p;)d=fc(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break t;c=fc(c),d=fc(d)}c=null}else c=null;null!==u&&dc(o,s,u,c,!1),null!==l&&null!==f&&dc(o,f,l,c,!0)}if("select"===(u=(s=r?zc(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var g=pl;else if(ul(s))if(vl)g=Sl;else{g=wl;var m=xl}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=kl);switch(g&&(g=g(t,r))?ll(o,g,n,i):(m&&m(t,s,r),"focusout"===t&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&_o(s,"number",s.value)),m=r?zc(r):window,t){case"focusin":(ul(m)||"true"===m.contentEditable)&&(Ll=m,Il=r,Nl=null);break;case"focusout":Nl=Il=Ll=null;break;case"mousedown":Fl=!0;break;case"contextmenu":case"mouseup":case"dragend":Fl=!1,zl(o,n,i);break;case"selectionchange":if(Dl)break;case"keydown":case"keyup":zl(o,n,i)}var y;if(Qu)t:{switch(t){case"compositionstart":var b="onCompositionStart";break t;case"compositionend":b="onCompositionEnd";break t;case"compositionupdate":b="onCompositionUpdate";break t}b=void 0}else ol?il(t,n)&&(b="onCompositionEnd"):"keydown"===t&&229===n.keyCode&&(b="onCompositionStart");b&&(el&&"ko"!==n.locale&&(ol||"onCompositionStart"!==b?"onCompositionEnd"===b&&ol&&(y=bu()):(mu="value"in(gu=i)?gu.value:gu.textContent,ol=!0)),0<(m=cc(r,b)).length&&(b=new zu(b,t,null,n,i),o.push({event:b,listeners:m}),y?b.data=y:null!==(y=al(n))&&(b.data=y))),(y=tl?function(t,e){switch(t){case"compositionend":return al(e);case"keypress":return 32!==e.which?null:(rl=!0,nl);case"textInput":return(t=e.data)===nl&&rl?null:t;default:return null}}(t,n):function(t,e){if(ol)return"compositionend"===t||!Qu&&il(t,e)?(t=bu(),yu=mu=gu=null,ol=!1,t):null;switch(t){case"paste":default: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 el&&"ko"!==e.locale?null:e.data}}(t,n))&&(0<(r=cc(r,"onBeforeInput")).length&&(i=new zu("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=y))}nc(o,e)}))}function lc(t,e,n){return{instance:t,listener:e,currentTarget:n}}function cc(t,e){for(var n=e+"Capture",r=[];null!==t;){var i=t,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=$o(t,n))&&r.unshift(lc(t,a,i)),null!=(a=$o(t,e))&&r.push(lc(t,a,i))),t=t.return}return r}function fc(t){if(null===t)return null;do{t=t.return}while(t&&5!==t.tag);return t||null}function dc(t,e,n,r,i){for(var a=e._reactName,o=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=$o(n,a))&&o.unshift(lc(n,u,s)):i||null!=(u=$o(n,a))&&o.push(lc(n,u,s))),n=n.return}0!==o.length&&t.push({event:e,listeners:o})}var hc=/\r\n?/g,pc=/\u0000|\uFFFD/g;function vc(t){return("string"==typeof t?t:""+t).replace(hc,"\n").replace(pc,"")}function gc(t,e,n){if(e=vc(e),vc(t)!==e&&n)throw Error(ka(425))}function mc(){}var yc=null,bc=null;function _c(t,e){return"textarea"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"===Fi(e.dangerouslySetInnerHTML)&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var xc="function"==typeof setTimeout?setTimeout:void 0,wc="function"==typeof clearTimeout?clearTimeout:void 0,kc="function"==typeof Promise?Promise:void 0,Sc="function"==typeof queueMicrotask?queueMicrotask:void 0!==kc?function(t){return kc.resolve(null).then(t).catch(Ec)}:xc;function Ec(t){setTimeout((function(){throw t}))}function Cc(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return t.removeChild(i),void su(e);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);su(e)}function Ac(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break;if(8===e){if("$"===(e=t.data)||"$!"===e||"$?"===e)break;if("/$"===e)return null}}return t}function Tc(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var Mc=Math.random().toString(36).slice(2),Oc="__reactFiber$"+Mc,Pc="__reactProps$"+Mc,Rc="__reactContainer$"+Mc,Dc="__reactEvents$"+Mc,Lc="__reactListeners$"+Mc,Ic="__reactHandles$"+Mc;function Nc(t){var e=t[Oc];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Rc]||n[Oc]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=Tc(t);null!==t;){if(n=t[Oc])return n;t=Tc(t)}return e}n=(t=n).parentNode}return null}function Fc(t){return!(t=t[Oc]||t[Rc])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function zc(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(ka(33))}function jc(t){return t[Pc]||null}var Bc=[],Vc=-1;function Hc(t){return{current:t}}function Uc(t){0>Vc||(t.current=Bc[Vc],Bc[Vc]=null,Vc--)}function Wc(t,e){Vc++,Bc[Vc]=t.current,t.current=e}var Yc={},Gc=Hc(Yc),qc=Hc(!1),Zc=Yc;function Xc(t,e){var n=t.type.contextTypes;if(!n)return Yc;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function Kc(t){return null!=(t=t.childContextTypes)}function $c(){Uc(qc),Uc(Gc)}function Qc(t,e,n){if(Gc.current!==Yc)throw Error(ka(168));Wc(Gc,e),Wc(qc,n)}function Jc(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(ka(108,uo(t)||"Unknown",i));return no({},n,r)}function tf(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Yc,Zc=Gc.current,Wc(Gc,t),Wc(qc,qc.current),!0}function ef(t,e,n){var r=t.stateNode;if(!r)throw Error(ka(169));n?(t=Jc(t,e,Zc),r.__reactInternalMemoizedMergedChildContext=t,Uc(qc),Uc(Gc),Wc(Gc,t)):Uc(qc),Wc(qc,n)}var nf=null,rf=!1,af=!1;function of(t){null===nf?nf=[t]:nf.push(t)}function sf(){if(!af&&null!==nf){af=!0;var t=0,e=zs;try{var n=nf;for(zs=1;t<n.length;t++){var r=n[t];do{r=r(!0)}while(null!==r)}nf=null,rf=!1}catch(i){throw null!==nf&&(nf=nf.slice(t+1)),ds(ys,sf),i}finally{zs=e,af=!1}}return null}var uf=[],lf=0,cf=null,ff=0,df=[],hf=0,pf=null,vf=1,gf="";function mf(t,e){uf[lf++]=ff,uf[lf++]=cf,cf=t,ff=e}function yf(t,e,n){df[hf++]=vf,df[hf++]=gf,df[hf++]=pf,pf=t;var r=vf;t=gf;var i=32-Es(r)-1;r&=~(1<<i),n+=1;var a=32-Es(e)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,vf=1<<32-Es(e)+i|n<<i|r,gf=a+t}else vf=1<<a|n<<i|r,gf=t}function bf(t){null!==t.return&&(mf(t,1),yf(t,1,0))}function _f(t){for(;t===cf;)cf=uf[--lf],uf[lf]=null,ff=uf[--lf],uf[lf]=null;for(;t===pf;)pf=df[--hf],df[hf]=null,gf=df[--hf],df[hf]=null,vf=df[--hf],df[hf]=null}var xf=null,wf=null,kf=!1,Sf=null;function Ef(t,e){var n=Xv(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,null===(e=t.deletions)?(t.deletions=[n],t.flags|=16):e.push(n)}function Cf(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,xf=t,wf=Ac(e.firstChild),!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,xf=t,wf=null,!0);case 13:return null!==(e=8!==e.nodeType?null:e)&&(n=null!==pf?{id:vf,overflow:gf}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},(n=Xv(18,null,null,0)).stateNode=e,n.return=t,t.child=n,xf=t,wf=null,!0);default:return!1}}function Af(t){return 0!=(1&t.mode)&&0==(128&t.flags)}function Tf(t){if(kf){var e=wf;if(e){var n=e;if(!Cf(t,e)){if(Af(t))throw Error(ka(418));e=Ac(n.nextSibling);var r=xf;e&&Cf(t,e)?Ef(r,n):(t.flags=-4097&t.flags|2,kf=!1,xf=t)}}else{if(Af(t))throw Error(ka(418));t.flags=-4097&t.flags|2,kf=!1,xf=t}}}function Mf(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;xf=t}function Of(t){if(t!==xf)return!1;if(!kf)return Mf(t),kf=!0,!1;var e;if((e=3!==t.tag)&&!(e=5!==t.tag)&&(e="head"!==(e=t.type)&&"body"!==e&&!_c(t.type,t.memoizedProps)),e&&(e=wf)){if(Af(t))throw Pf(),Error(ka(418));for(;e;)Ef(t,e),e=Ac(e.nextSibling)}if(Mf(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(ka(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){wf=Ac(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}wf=null}}else wf=xf?Ac(t.stateNode.nextSibling):null;return!0}function Pf(){for(var t=wf;t;)t=Ac(t.nextSibling)}function Rf(){wf=xf=null,kf=!1}function Df(t){null===Sf?Sf=[t]:Sf.push(t)}var Lf=ja.ReactCurrentBatchConfig;function If(t,e){if(t&&t.defaultProps){for(var n in e=no({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}var Nf=Hc(null),Ff=null,zf=null,jf=null;function Bf(){jf=zf=Ff=null}function Vf(t){var e=Nf.current;Uc(Nf),t._currentValue=e}function Hf(t,e,n){for(;null!==t;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,null!==r&&(r.childLanes|=e)):null!==r&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Uf(t,e){Ff=t,jf=zf=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(0!=(t.lanes&e)&&(zh=!0),t.firstContext=null)}function Wf(t){var e=t._currentValue;if(jf!==t)if(t={context:t,memoizedValue:e,next:null},null===zf){if(null===Ff)throw Error(ka(308));zf=t,Ff.dependencies={lanes:0,firstContext:t}}else zf=zf.next=t;return e}var Yf=null;function Gf(t){null===Yf?Yf=[t]:Yf.push(t)}function qf(t,e,n,r){var i=e.interleaved;return null===i?(n.next=n,Gf(e)):(n.next=i.next,i.next=n),e.interleaved=n,Zf(t,r)}function Zf(t,e){t.lanes|=e;var n=t.alternate;for(null!==n&&(n.lanes|=e),n=t,t=t.return;null!==t;)t.childLanes|=e,null!==(n=t.alternate)&&(n.childLanes|=e),n=t,t=t.return;return 3===n.tag?n.stateNode:null}var Xf=!1;function Kf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $f(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 Qf(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Jf(t,e,n){var r=t.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Gp)){var i=r.pending;return null===i?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Zf(t,n)}return null===(i=r.interleaved)?(e.next=e,Gf(r)):(e.next=i.next,i.next=e),r.interleaved=e,Zf(t,n)}function td(t,e,n){if(null!==(e=e.updateQueue)&&(e=e.shared,0!=(4194240&n))){var r=e.lanes;n|=r&=t.pendingLanes,e.lanes=n,Fs(t,n)}}function ed(t,e){var n=t.updateQueue,r=t.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=e:a=a.next=e}else i=a=e;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(t.updateQueue=n)}null===(t=n.lastBaseUpdate)?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function nd(t,e,n,r){var i=t.updateQueue;Xf=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,l=u.next;u.next=null,null===o?a=l:o.next=l,o=u;var c=t.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(null!==a){var f=i.baseState;for(o=0,c=l=u=null,s=a;;){var d=s.lane,h=s.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});t:{var p=t,v=s;switch(d=e,h=n,v.tag){case 1:if("function"==typeof(p=v.payload)){f=p.call(h,f,d);break t}f=p;break t;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(d="function"==typeof(p=v.payload)?p.call(h,f,d):p))break t;f=no({},f,d);break t;case 2:Xf=!0}}null!==s.callback&&0!==s.lane&&(t.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=h,u=f):c=c.next=h,o|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(u=f),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,null!==(e=i.shared.interleaved)){i=e;do{o|=i.lane,i=i.next}while(i!==e)}else null===a&&(i.shared.lanes=0);tv|=o,t.lanes=o,t.memoizedState=f}}function rd(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(ka(191,i));i.call(r)}}}var id=(new xa.Component).refs;function ad(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:no({},e,n),t.memoizedState=n,0===t.lanes&&(t.updateQueue.baseState=n)}var od={isMounted:function(t){return!!(t=t._reactInternals)&&ss(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=yv(),i=bv(t),a=Qf(r,i);a.payload=e,null!=n&&(a.callback=n),null!==(e=Jf(t,a,i))&&(_v(e,t,i,r),td(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=yv(),i=bv(t),a=Qf(r,i);a.tag=1,a.payload=e,null!=n&&(a.callback=n),null!==(e=Jf(t,a,i))&&(_v(e,t,i,r),td(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=yv(),r=bv(t),i=Qf(n,r);i.tag=2,null!=e&&(i.callback=e),null!==(e=Jf(t,i,r))&&(_v(e,t,r,n),td(e,t,r))}};function sd(t,e,n,r,i,a,o){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,a,o):!e.prototype||!e.prototype.isPureReactComponent||(!Cl(n,r)||!Cl(i,a))}function ud(t,e,n){var r=!1,i=Yc,a=e.contextType;return"object"===Fi(a)&&null!==a?a=Wf(a):(i=Kc(e)?Zc:Gc.current,a=(r=null!=(r=e.contextTypes))?Xc(t,i):Yc),e=new e(n,a),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=od,t.stateNode=e,e._reactInternals=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=a),e}function ld(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&od.enqueueReplaceState(e,e.state,null)}function cd(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=id,Kf(t);var a=e.contextType;"object"===Fi(a)&&null!==a?i.context=Wf(a):(a=Kc(e)?Zc:Gc.current,i.context=Xc(t,a)),i.state=t.memoizedState,"function"==typeof(a=e.getDerivedStateFromProps)&&(ad(t,e,a,n),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&od.enqueueReplaceState(i,i.state,null),nd(t,n,i,r),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308)}function fd(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!==Fi(t)){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(ka(309));var r=n.stateNode}if(!r)throw Error(ka(147,t));var i=r,a=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===a?e.ref:(e=function(t){var e=i.refs;e===id&&(e=i.refs={}),null===t?delete e[a]:e[a]=t},e._stringRef=a,e)}if("string"!=typeof t)throw Error(ka(284));if(!n._owner)throw Error(ka(290,t))}return t}function dd(t,e){throw t=Object.prototype.toString.call(e),Error(ka(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function hd(t){return(0,t._init)(t._payload)}function pd(t){function e(e,n){if(t){var r=e.deletions;null===r?(e.deletions=[n],e.flags|=16):r.push(n)}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=$v(t,e)).index=0,t.sibling=null,t}function a(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.flags|=2,n):r:(e.flags|=2,n):(e.flags|=1048576,n)}function o(e){return t&&null===e.alternate&&(e.flags|=2),e}function s(t,e,n,r){return null===e||6!==e.tag?((e=eg(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function u(t,e,n,r){var a=n.type;return a===Ha?c(t,e,n.props.children,r,n.key):null!==e&&(e.elementType===a||"object"===Fi(a)&&null!==a&&a.$$typeof===$a&&hd(a)===e.type)?((r=i(e,n.props)).ref=fd(t,e,n),r.return=t,r):((r=Qv(n.type,n.key,n.props,null,t.mode,r)).ref=fd(t,e,n),r.return=t,r)}function l(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=ng(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function c(t,e,n,r,a){return null===e||7!==e.tag?((e=Jv(n,t.mode,r,a)).return=t,e):((e=i(e,n)).return=t,e)}function f(t,e,n){if("string"==typeof e&&""!==e||"number"==typeof e)return(e=eg(""+e,t.mode,n)).return=t,e;if("object"===Fi(e)&&null!==e){switch(e.$$typeof){case Ba:return(n=Qv(e.type,e.key,e.props,null,t.mode,n)).ref=fd(t,null,e),n.return=t,n;case Va:return(e=ng(e,t.mode,n)).return=t,e;case $a:return f(t,(0,e._init)(e._payload),n)}if(xo(e)||to(e))return(e=Jv(e,t.mode,n,null)).return=t,e;dd(t,e)}return null}function d(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(t,e,""+n,r);if("object"===Fi(n)&&null!==n){switch(n.$$typeof){case Ba:return n.key===i?u(t,e,n,r):null;case Va:return n.key===i?l(t,e,n,r):null;case $a:return d(t,e,(i=n._init)(n._payload),r)}if(xo(n)||to(n))return null!==i?null:c(t,e,n,r,null);dd(t,n)}return null}function h(t,e,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(e,t=t.get(n)||null,""+r,i);if("object"===Fi(r)&&null!==r){switch(r.$$typeof){case Ba:return u(e,t=t.get(null===r.key?n:r.key)||null,r,i);case Va:return l(e,t=t.get(null===r.key?n:r.key)||null,r,i);case $a:return h(t,e,n,(0,r._init)(r._payload),i)}if(xo(r)||to(r))return c(e,t=t.get(n)||null,r,i,null);dd(e,r)}return null}function p(i,o,s,u){for(var l=null,c=null,p=o,v=o=0,g=null;null!==p&&v<s.length;v++){p.index>v?(g=p,p=null):g=p.sibling;var m=d(i,p,s[v],u);if(null===m){null===p&&(p=g);break}t&&p&&null===m.alternate&&e(i,p),o=a(m,o,v),null===c?l=m:c.sibling=m,c=m,p=g}if(v===s.length)return n(i,p),kf&&mf(i,v),l;if(null===p){for(;v<s.length;v++)null!==(p=f(i,s[v],u))&&(o=a(p,o,v),null===c?l=p:c.sibling=p,c=p);return kf&&mf(i,v),l}for(p=r(i,p);v<s.length;v++)null!==(g=h(p,i,v,s[v],u))&&(t&&null!==g.alternate&&p.delete(null===g.key?v:g.key),o=a(g,o,v),null===c?l=g:c.sibling=g,c=g);return t&&p.forEach((function(t){return e(i,t)})),kf&&mf(i,v),l}function v(i,o,s,u){var l=to(s);if("function"!=typeof l)throw Error(ka(150));if(null==(s=l.call(s)))throw Error(ka(151));for(var c=l=null,p=o,v=o=0,g=null,m=s.next();null!==p&&!m.done;v++,m=s.next()){p.index>v?(g=p,p=null):g=p.sibling;var y=d(i,p,m.value,u);if(null===y){null===p&&(p=g);break}t&&p&&null===y.alternate&&e(i,p),o=a(y,o,v),null===c?l=y:c.sibling=y,c=y,p=g}if(m.done)return n(i,p),kf&&mf(i,v),l;if(null===p){for(;!m.done;v++,m=s.next())null!==(m=f(i,m.value,u))&&(o=a(m,o,v),null===c?l=m:c.sibling=m,c=m);return kf&&mf(i,v),l}for(p=r(i,p);!m.done;v++,m=s.next())null!==(m=h(p,i,v,m.value,u))&&(t&&null!==m.alternate&&p.delete(null===m.key?v:m.key),o=a(m,o,v),null===c?l=m:c.sibling=m,c=m);return t&&p.forEach((function(t){return e(i,t)})),kf&&mf(i,v),l}return function t(r,a,s,u){if("object"===Fi(s)&&null!==s&&s.type===Ha&&null===s.key&&(s=s.props.children),"object"===Fi(s)&&null!==s){switch(s.$$typeof){case Ba:t:{for(var l=s.key,c=a;null!==c;){if(c.key===l){if((l=s.type)===Ha){if(7===c.tag){n(r,c.sibling),(a=i(c,s.props.children)).return=r,r=a;break t}}else if(c.elementType===l||"object"===Fi(l)&&null!==l&&l.$$typeof===$a&&hd(l)===c.type){n(r,c.sibling),(a=i(c,s.props)).ref=fd(r,c,s),a.return=r,r=a;break t}n(r,c);break}e(r,c),c=c.sibling}s.type===Ha?((a=Jv(s.props.children,r.mode,u,s.key)).return=r,r=a):((u=Qv(s.type,s.key,s.props,null,r.mode,u)).ref=fd(r,a,s),u.return=r,r=u)}return o(r);case Va:t:{for(c=s.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){n(r,a.sibling),(a=i(a,s.children||[])).return=r,r=a;break t}n(r,a);break}e(r,a),a=a.sibling}(a=ng(s,r.mode,u)).return=r,r=a}return o(r);case $a:return t(r,a,(c=s._init)(s._payload),u)}if(xo(s))return p(r,a,s,u);if(to(s))return v(r,a,s,u);dd(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,s)).return=r,r=a):(n(r,a),(a=eg(s,r.mode,u)).return=r,r=a),o(r)):n(r,a)}}var vd=pd(!0),gd=pd(!1),md={},yd=Hc(md),bd=Hc(md),_d=Hc(md);function xd(t){if(t===md)throw Error(ka(174));return t}function wd(t,e){switch(Wc(_d,e),Wc(bd,t),Wc(yd,md),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:To(null,"");break;default:e=To(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}Uc(yd),Wc(yd,e)}function kd(){Uc(yd),Uc(bd),Uc(_d)}function Sd(t){xd(_d.current);var e=xd(yd.current),n=To(e,t.type);e!==n&&(Wc(bd,t),Wc(yd,n))}function Ed(t){bd.current===t&&(Uc(yd),Uc(bd))}var Cd=Hc(0);function Ad(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(128&e.flags))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Td=[];function Md(){for(var t=0;t<Td.length;t++)Td[t]._workInProgressVersionPrimary=null;Td.length=0}var Od=ja.ReactCurrentDispatcher,Pd=ja.ReactCurrentBatchConfig,Rd=0,Dd=null,Ld=null,Id=null,Nd=!1,Fd=!1,zd=0,jd=0;function Bd(){throw Error(ka(321))}function Vd(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!El(t[n],e[n]))return!1;return!0}function Hd(t,e,n,r,i,a){if(Rd=a,Dd=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Od.current=null===t||null===t.memoizedState?Eh:Ch,t=n(r,i),Fd){a=0;do{if(Fd=!1,zd=0,25<=a)throw Error(ka(301));a+=1,Id=Ld=null,e.updateQueue=null,Od.current=Ah,t=n(r,i)}while(Fd)}if(Od.current=Sh,e=null!==Ld&&null!==Ld.next,Rd=0,Id=Ld=Dd=null,Nd=!1,e)throw Error(ka(300));return t}function Ud(){var t=0!==zd;return zd=0,t}function Wd(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Id?Dd.memoizedState=Id=t:Id=Id.next=t,Id}function Yd(){if(null===Ld){var t=Dd.alternate;t=null!==t?t.memoizedState:null}else t=Ld.next;var e=null===Id?Dd.memoizedState:Id.next;if(null!==e)Id=e,Ld=t;else{if(null===t)throw Error(ka(310));t={memoizedState:(Ld=t).memoizedState,baseState:Ld.baseState,baseQueue:Ld.baseQueue,queue:Ld.queue,next:null},null===Id?Dd.memoizedState=Id=t:Id=Id.next=t}return Id}function Gd(t,e){return"function"==typeof e?e(t):e}function qd(t){var e=Yd(),n=e.queue;if(null===n)throw Error(ka(311));n.lastRenderedReducer=t;var r=Ld,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var s=o=null,u=null,l=a;do{var c=l.lane;if((Rd&c)===c)null!==u&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:t(r,l.action);else{var f={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,Dd.lanes|=c,tv|=c}l=l.next}while(null!==l&&l!==a);null===u?o=r:u.next=s,El(r,e.memoizedState)||(zh=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=u,n.lastRenderedState=r}if(null!==(t=n.interleaved)){i=t;do{a=i.lane,Dd.lanes|=a,tv|=a,i=i.next}while(i!==t)}else null===i&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Zd(t){var e=Yd(),n=e.queue;if(null===n)throw Error(ka(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,a=e.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=t(a,o.action),o=o.next}while(o!==i);El(a,e.memoizedState)||(zh=!0),e.memoizedState=a,null===e.baseQueue&&(e.baseState=a),n.lastRenderedState=a}return[a,r]}function Xd(){}function Kd(t,e){var n=Dd,r=Yd(),i=e(),a=!El(r.memoizedState,i);if(a&&(r.memoizedState=i,zh=!0),r=r.queue,uh(Jd.bind(null,n,r,t),[t]),r.getSnapshot!==e||a||null!==Id&&1&Id.memoizedState.tag){if(n.flags|=2048,rh(9,Qd.bind(null,n,r,i,e),void 0,null),null===qp)throw Error(ka(349));0!=(30&Rd)||$d(n,e,i)}return i}function $d(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},null===(e=Dd.updateQueue)?(e={lastEffect:null,stores:null},Dd.updateQueue=e,e.stores=[t]):null===(n=e.stores)?e.stores=[t]:n.push(t)}function Qd(t,e,n,r){e.value=n,e.getSnapshot=r,th(e)&&eh(t)}function Jd(t,e,n){return n((function(){th(e)&&eh(t)}))}function th(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!El(t,n)}catch(tQ){return!0}}function eh(t){var e=Zf(t,1);null!==e&&_v(e,t,1,-1)}function nh(t){var e=Wd();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gd,lastRenderedState:t},e.queue=t,t=t.dispatch=_h.bind(null,Dd,t),[e.memoizedState,t]}function rh(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Dd.updateQueue)?(e={lastEffect:null,stores:null},Dd.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function ih(){return Yd().memoizedState}function ah(t,e,n,r){var i=Wd();Dd.flags|=t,i.memoizedState=rh(1|e,n,void 0,void 0===r?null:r)}function oh(t,e,n,r){var i=Yd();r=void 0===r?null:r;var a=void 0;if(null!==Ld){var o=Ld.memoizedState;if(a=o.destroy,null!==r&&Vd(r,o.deps))return void(i.memoizedState=rh(e,n,a,r))}Dd.flags|=t,i.memoizedState=rh(1|e,n,a,r)}function sh(t,e){return ah(8390656,8,t,e)}function uh(t,e){return oh(2048,8,t,e)}function lh(t,e){return oh(4,2,t,e)}function ch(t,e){return oh(4,4,t,e)}function fh(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function dh(t,e,n){return n=null!=n?n.concat([t]):null,oh(4,4,fh.bind(null,e,t),n)}function hh(){}function ph(t,e){var n=Yd();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Vd(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function vh(t,e){var n=Yd();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Vd(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function gh(t,e,n){return 0==(21&Rd)?(t.baseState&&(t.baseState=!1,zh=!0),t.memoizedState=n):(El(n,e)||(n=Ls(),Dd.lanes|=n,tv|=n,t.baseState=!0),e)}function mh(t,e){var n=zs;zs=0!==n&&4>n?n:4,t(!0);var r=Pd.transition;Pd.transition={};try{t(!1),e()}finally{zs=n,Pd.transition=r}}function yh(){return Yd().memoizedState}function bh(t,e,n){var r=bv(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xh(t))wh(e,n);else if(null!==(n=qf(t,e,n,r))){_v(n,t,r,yv()),kh(n,e,r)}}function _h(t,e,n){var r=bv(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xh(t))wh(e,i);else{var a=t.alternate;if(0===t.lanes&&(null===a||0===a.lanes)&&null!==(a=e.lastRenderedReducer))try{var o=e.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,El(s,o)){var u=e.interleaved;return null===u?(i.next=i,Gf(e)):(i.next=u.next,u.next=i),void(e.interleaved=i)}}catch(H$){}null!==(n=qf(t,e,i,r))&&(_v(n,t,r,i=yv()),kh(n,e,r))}}function xh(t){var e=t.alternate;return t===Dd||null!==e&&e===Dd}function wh(t,e){Fd=Nd=!0;var n=t.pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function kh(t,e,n){if(0!=(4194240&n)){var r=e.lanes;n|=r&=t.pendingLanes,e.lanes=n,Fs(t,n)}}var Sh={readContext:Wf,useCallback:Bd,useContext:Bd,useEffect:Bd,useImperativeHandle:Bd,useInsertionEffect:Bd,useLayoutEffect:Bd,useMemo:Bd,useReducer:Bd,useRef:Bd,useState:Bd,useDebugValue:Bd,useDeferredValue:Bd,useTransition:Bd,useMutableSource:Bd,useSyncExternalStore:Bd,useId:Bd,unstable_isNewReconciler:!1},Eh={readContext:Wf,useCallback:function(t,e){return Wd().memoizedState=[t,void 0===e?null:e],t},useContext:Wf,useEffect:sh,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,ah(4194308,4,fh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ah(4194308,4,t,e)},useInsertionEffect:function(t,e){return ah(4,2,t,e)},useMemo:function(t,e){var n=Wd();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Wd();return e=void 0!==n?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=bh.bind(null,Dd,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},Wd().memoizedState=t},useState:nh,useDebugValue:hh,useDeferredValue:function(t){return Wd().memoizedState=t},useTransition:function(){var t=nh(!1),e=t[0];return t=mh.bind(null,t[1]),Wd().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Dd,i=Wd();if(kf){if(void 0===n)throw Error(ka(407));n=n()}else{if(n=e(),null===qp)throw Error(ka(349));0!=(30&Rd)||$d(r,e,n)}i.memoizedState=n;var a={value:n,getSnapshot:e};return i.queue=a,sh(Jd.bind(null,r,a,t),[t]),r.flags|=2048,rh(9,Qd.bind(null,r,a,n,e),void 0,null),n},useId:function(){var t=Wd(),e=qp.identifierPrefix;if(kf){var n=gf;e=":"+e+"R"+(n=(vf&~(1<<32-Es(vf)-1)).toString(32)+n),0<(n=zd++)&&(e+="H"+n.toString(32)),e+=":"}else e=":"+e+"r"+(n=jd++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},Ch={readContext:Wf,useCallback:ph,useContext:Wf,useEffect:uh,useImperativeHandle:dh,useInsertionEffect:lh,useLayoutEffect:ch,useMemo:vh,useReducer:qd,useRef:ih,useState:function(){return qd(Gd)},useDebugValue:hh,useDeferredValue:function(t){return gh(Yd(),Ld.memoizedState,t)},useTransition:function(){return[qd(Gd)[0],Yd().memoizedState]},useMutableSource:Xd,useSyncExternalStore:Kd,useId:yh,unstable_isNewReconciler:!1},Ah={readContext:Wf,useCallback:ph,useContext:Wf,useEffect:uh,useImperativeHandle:dh,useInsertionEffect:lh,useLayoutEffect:ch,useMemo:vh,useReducer:Zd,useRef:ih,useState:function(){return Zd(Gd)},useDebugValue:hh,useDeferredValue:function(t){var e=Yd();return null===Ld?e.memoizedState=t:gh(e,Ld.memoizedState,t)},useTransition:function(){return[Zd(Gd)[0],Yd().memoizedState]},useMutableSource:Xd,useSyncExternalStore:Kd,useId:yh,unstable_isNewReconciler:!1};function Th(t,e){try{var n="",r=e;do{n+=oo(r),r=r.return}while(r);var i=n}catch(P$){i="\nError generating stack: "+P$.message+"\n"+P$.stack}return{value:t,source:e,stack:i,digest:null}}function Mh(t,e,n){return{value:t,source:null,stack:null!=n?n:null,digest:null!=e?e:null}}function Oh(t,e){try{console.error(e.value)}catch(rP){setTimeout((function(){throw rP}))}}var Ph="function"==typeof WeakMap?WeakMap:Map;function Rh(t,e,n){(n=Qf(-1,n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){uv||(uv=!0,lv=r),Oh(0,e)},n}function Dh(t,e,n){(n=Qf(-1,n)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){Oh(0,e)}}var a=t.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Oh(0,e),"function"!=typeof r&&(null===cv?cv=new Set([this]):cv.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),n}function Lh(t,e,n){var r=t.pingCache;if(null===r){r=t.pingCache=new Ph;var i=new Set;r.set(e,i)}else void 0===(i=r.get(e))&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=Uv.bind(null,t,e,n),e.then(t,t))}function Ih(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function Nh(t,e,n,r,i){return 0==(1&t.mode)?(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((e=Qf(-1,1)).tag=2,Jf(n,e,1))),n.lanes|=1),t):(t.flags|=65536,t.lanes=i,t)}var Fh=ja.ReactCurrentOwner,zh=!1;function jh(t,e,n,r){e.child=null===t?gd(e,null,n,r):vd(e,t.child,n,r)}function Bh(t,e,n,r,i){n=n.render;var a=e.ref;return Uf(e,i),r=Hd(t,e,n,r,a,i),n=Ud(),null===t||zh?(kf&&n&&bf(e),e.flags|=1,jh(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,up(t,e,i))}function Vh(t,e,n,r,i){if(null===t){var a=n.type;return"function"!=typeof a||Kv(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Qv(n.type,null,r,e,e.mode,i)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Hh(t,e,a,r,i))}if(a=t.child,0==(t.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:Cl)(o,r)&&t.ref===e.ref)return up(t,e,i)}return e.flags|=1,(t=$v(a,r)).ref=e.ref,t.return=e,e.child=t}function Hh(t,e,n,r,i){if(null!==t){var a=t.memoizedProps;if(Cl(a,r)&&t.ref===e.ref){if(zh=!1,e.pendingProps=r=a,0==(t.lanes&i))return e.lanes=t.lanes,up(t,e,i);0!=(131072&t.flags)&&(zh=!0)}}return Yh(t,e,n,r,i)}function Uh(t,e,n){var r=e.pendingProps,i=r.children,a=null!==t?t.memoizedState:null;if("hidden"===r.mode)if(0==(1&e.mode))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wc($p,Kp),Kp|=n;else{if(0==(1073741824&n))return t=null!==a?a.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Wc($p,Kp),Kp|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Wc($p,Kp),Kp|=r}else null!==a?(r=a.baseLanes|n,e.memoizedState=null):r=n,Wc($p,Kp),Kp|=r;return jh(t,e,i,n),e.child}function Wh(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Yh(t,e,n,r,i){var a=Kc(n)?Zc:Gc.current;return a=Xc(e,a),Uf(e,i),n=Hd(t,e,n,r,a,i),r=Ud(),null===t||zh?(kf&&r&&bf(e),e.flags|=1,jh(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,up(t,e,i))}function Gh(t,e,n,r,i){if(Kc(n)){var a=!0;tf(e)}else a=!1;if(Uf(e,i),null===e.stateNode)sp(t,e),ud(e,n,r),cd(e,n,r,i),r=!0;else if(null===t){var o=e.stateNode,s=e.memoizedProps;o.props=s;var u=o.context,l=n.contextType;"object"===Fi(l)&&null!==l?l=Wf(l):l=Xc(e,l=Kc(n)?Zc:Gc.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||u!==l)&&ld(e,o,r,l),Xf=!1;var d=e.memoizedState;o.state=d,nd(e,r,o,i),u=e.memoizedState,s!==r||d!==u||qc.current||Xf?("function"==typeof c&&(ad(e,n,c,r),u=e.memoizedState),(s=Xf||sd(e,n,s,r,d,u,l))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(e.flags|=4194308)):("function"==typeof o.componentDidMount&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):("function"==typeof o.componentDidMount&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,$f(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:If(e.type,s),o.props=l,f=e.pendingProps,d=o.context,"object"===Fi(u=n.contextType)&&null!==u?u=Wf(u):u=Xc(e,u=Kc(n)?Zc:Gc.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==f||d!==u)&&ld(e,o,r,u),Xf=!1,d=e.memoizedState,o.state=d,nd(e,r,o,i);var p=e.memoizedState;s!==f||d!==p||qc.current||Xf?("function"==typeof h&&(ad(e,n,h,r),p=e.memoizedState),(l=Xf||sd(e,n,l,r,d,p,u)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof o.componentDidUpdate&&(e.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=p),o.props=r,o.state=p,o.context=u,r=l):("function"!=typeof o.componentDidUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),r=!1)}return qh(t,e,n,r,a,i)}function qh(t,e,n,r,i,a){Wh(t,e);var o=0!=(128&e.flags);if(!r&&!o)return i&&ef(e,n,!1),up(t,e,a);r=e.stateNode,Fh.current=e;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.flags|=1,null!==t&&o?(e.child=vd(e,t.child,null,a),e.child=vd(e,null,s,a)):jh(t,e,s,a),e.memoizedState=r.state,i&&ef(e,n,!0),e.child}function Zh(t){var e=t.stateNode;e.pendingContext?Qc(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Qc(0,e.context,!1),wd(t,e.containerInfo)}function Xh(t,e,n,r,i){return Rf(),Df(i),e.flags|=256,jh(t,e,n,r),e.child}var Kh,$h,Qh,Jh={dehydrated:null,treeContext:null,retryLane:0};function tp(t){return{baseLanes:t,cachePool:null,transitions:null}}function ep(t,e,n){var r,i=e.pendingProps,a=Cd.current,o=!1,s=0!=(128&e.flags);if((r=s)||(r=(null===t||null!==t.memoizedState)&&0!=(2&a)),r?(o=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(a|=1),Wc(Cd,1&a),null===t)return Tf(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(0==(1&e.mode)?e.lanes=1:"$!"===t.data?e.lanes=8:e.lanes=1073741824,null):(s=i.children,t=i.fallback,o?(i=e.mode,o=e.child,s={mode:"hidden",children:s},0==(1&i)&&null!==o?(o.childLanes=0,o.pendingProps=s):o=tg(s,i,0,null),t=Jv(t,i,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=tp(n),e.memoizedState=Jh,t):np(e,s));if(null!==(a=t.memoizedState)&&null!==(r=a.dehydrated))return function(t,e,n,r,i,a,o){if(n)return 256&e.flags?(e.flags&=-257,rp(t,e,o,r=Mh(Error(ka(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(a=r.fallback,i=e.mode,r=tg({mode:"visible",children:r.children},i,0,null),(a=Jv(a,i,o,null)).flags|=2,r.return=e,a.return=e,r.sibling=a,e.child=r,0!=(1&e.mode)&&vd(e,t.child,null,o),e.child.memoizedState=tp(o),e.memoizedState=Jh,a);if(0==(1&e.mode))return rp(t,e,o,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,rp(t,e,o,r=Mh(a=Error(ka(419)),r,void 0))}if(s=0!=(o&t.childLanes),zh||s){if(null!==(r=qp)){switch(o&-o){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}0!==(i=0!=(i&(r.suspendedLanes|o))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Zf(t,i),_v(r,t,i,-1))}return Dv(),rp(t,e,o,r=Mh(Error(ka(421))))}return"$?"===i.data?(e.flags|=128,e.child=t.child,e=Yv.bind(null,t),i._reactRetry=e,null):(t=a.treeContext,wf=Ac(i.nextSibling),xf=e,kf=!0,Sf=null,null!==t&&(df[hf++]=vf,df[hf++]=gf,df[hf++]=pf,vf=t.id,gf=t.overflow,pf=e),(e=np(e,r.children)).flags|=4096,e)}(t,e,s,i,r,a,n);if(o){o=i.fallback,s=e.mode,r=(a=t.child).sibling;var u={mode:"hidden",children:i.children};return 0==(1&s)&&e.child!==a?((i=e.child).childLanes=0,i.pendingProps=u,e.deletions=null):(i=$v(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?o=$v(r,o):(o=Jv(o,s,n,null)).flags|=2,o.return=e,i.return=e,i.sibling=o,e.child=i,i=o,o=e.child,s=null===(s=t.child.memoizedState)?tp(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=t.childLanes&~n,e.memoizedState=Jh,i}return t=(o=t.child).sibling,i=$v(o,{mode:"visible",children:i.children}),0==(1&e.mode)&&(i.lanes=n),i.return=e,i.sibling=null,null!==t&&(null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=i,e.memoizedState=null,i}function np(t,e){return(e=tg({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function rp(t,e,n,r){return null!==r&&Df(r),vd(e,t.child,null,n),(t=np(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function ip(t,e,n){t.lanes|=e;var r=t.alternate;null!==r&&(r.lanes|=e),Hf(t.return,e,n)}function ap(t,e,n,r,i){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function op(t,e,n){var r=e.pendingProps,i=r.revealOrder,a=r.tail;if(jh(t,e,r.children,n),0!=(2&(r=Cd.current)))r=1&r|2,e.flags|=128;else{if(null!==t&&0!=(128&t.flags))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&ip(t,n,e);else if(19===t.tag)ip(t,n,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Wc(Cd,r),0==(1&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===Ad(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),ap(e,!1,i,n,a);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Ad(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}ap(e,!0,n,null,a);break;case"together":ap(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function sp(t,e){0==(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function up(t,e,n){if(null!==t&&(e.dependencies=t.dependencies),tv|=e.lanes,0==(n&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(ka(153));if(null!==e.child){for(n=$v(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=$v(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function lp(t,e){if(!kf)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function cp(t){var e=null!==t.alternate&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=t,i=i.sibling;else for(i=t.child;null!==i;)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 fp(t,e,n){var r=e.pendingProps;switch(_f(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return cp(e),null;case 1:case 17:return Kc(e.type)&&$c(),cp(e),null;case 3:return r=e.stateNode,kd(),Uc(qc),Uc(Gc),Md(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==t&&null!==t.child||(Of(e)?e.flags|=4:null===t||t.memoizedState.isDehydrated&&0==(256&e.flags)||(e.flags|=1024,null!==Sf&&(Sv(Sf),Sf=null))),cp(e),null;case 5:Ed(e);var i=xd(_d.current);if(n=e.type,null!==t&&null!=e.stateNode)$h(t,e,n,r),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(null===e.stateNode)throw Error(ka(166));return cp(e),null}if(t=xd(yd.current),Of(e)){r=e.stateNode,n=e.type;var a=e.memoizedProps;switch(r[Oc]=e,r[Pc]=a,t=0!=(1&e.mode),n){case"dialog":rc("cancel",r),rc("close",r);break;case"iframe":case"object":case"embed":rc("load",r);break;case"video":case"audio":for(i=0;i<Jl.length;i++)rc(Jl[i],r);break;case"source":rc("error",r);break;case"img":case"image":case"link":rc("error",r),rc("load",r);break;case"details":rc("toggle",r);break;case"input":go(r,a),rc("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},rc("invalid",r);break;case"textarea":So(r,a),rc("invalid",r)}for(var o in Fo(n,a),i=null,a)if(a.hasOwnProperty(o)){var s=a[o];"children"===o?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&gc(r.textContent,s,t),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&gc(r.textContent,s,t),i=["children",""+s]):Ea.hasOwnProperty(o)&&null!=s&&"onScroll"===o&&rc("scroll",r)}switch(n){case"input":fo(r),bo(r,a,!0);break;case"textarea":fo(r),Co(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=mc)}r=i,e.updateQueue=r,null!==r&&(e.flags|=4)}else{o=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===t&&(t=Ao(n)),"http://www.w3.org/1999/xhtml"===t?"script"===n?((t=o.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),"select"===n&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Oc]=e,t[Pc]=r,Kh(t,e),e.stateNode=t;t:{switch(o=zo(n,r),n){case"dialog":rc("cancel",t),rc("close",t),i=r;break;case"iframe":case"object":case"embed":rc("load",t),i=r;break;case"video":case"audio":for(i=0;i<Jl.length;i++)rc(Jl[i],t);i=r;break;case"source":rc("error",t),i=r;break;case"img":case"image":case"link":rc("error",t),rc("load",t),i=r;break;case"details":rc("toggle",t),i=r;break;case"input":go(t,r),i=vo(t,r),rc("invalid",t);break;case"option":default:i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=no({},r,{value:void 0}),rc("invalid",t);break;case"textarea":So(t,r),i=ko(t,r),rc("invalid",t)}for(a in Fo(n,i),s=i)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?Io(t,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&Oo(t,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&Po(t,u):"number"==typeof u&&Po(t,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Ea.hasOwnProperty(a)?null!=u&&"onScroll"===a&&rc("scroll",t):null!=u&&za(t,a,u,o))}switch(n){case"input":fo(t),bo(t,r,!1);break;case"textarea":fo(t),Co(t);break;case"option":null!=r.value&&t.setAttribute("value",""+lo(r.value));break;case"select":t.multiple=!!r.multiple,null!=(a=r.value)?wo(t,!!r.multiple,a,!1):null!=r.defaultValue&&wo(t,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(t.onclick=mc)}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)}null!==e.ref&&(e.flags|=512,e.flags|=2097152)}return cp(e),null;case 6:if(t&&null!=e.stateNode)Qh(0,e,t.memoizedProps,r);else{if("string"!=typeof r&&null===e.stateNode)throw Error(ka(166));if(n=xd(_d.current),xd(yd.current),Of(e)){if(r=e.stateNode,n=e.memoizedProps,r[Oc]=e,(a=r.nodeValue!==n)&&null!==(t=xf))switch(t.tag){case 3:gc(r.nodeValue,n,0!=(1&t.mode));break;case 5:!0!==t.memoizedProps.suppressHydrationWarning&&gc(r.nodeValue,n,0!=(1&t.mode))}a&&(e.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Oc]=e,e.stateNode=r}return cp(e),null;case 13:if(Uc(Cd),r=e.memoizedState,null===t||null!==t.memoizedState&&null!==t.memoizedState.dehydrated){if(kf&&null!==wf&&0!=(1&e.mode)&&0==(128&e.flags))Pf(),Rf(),e.flags|=98560,a=!1;else if(a=Of(e),null!==r&&null!==r.dehydrated){if(null===t){if(!a)throw Error(ka(318));if(!(a=null!==(a=e.memoizedState)?a.dehydrated:null))throw Error(ka(317));a[Oc]=e}else Rf(),0==(128&e.flags)&&(e.memoizedState=null),e.flags|=4;cp(e),a=!1}else null!==Sf&&(Sv(Sf),Sf=null),a=!0;if(!a)return 65536&e.flags?e:null}return 0!=(128&e.flags)?(e.lanes=n,e):((r=null!==r)!==(null!==t&&null!==t.memoizedState)&&r&&(e.child.flags|=8192,0!=(1&e.mode)&&(null===t||0!=(1&Cd.current)?0===Qp&&(Qp=3):Dv())),null!==e.updateQueue&&(e.flags|=4),cp(e),null);case 4:return kd(),null===t&&oc(e.stateNode.containerInfo),cp(e),null;case 10:return Vf(e.type._context),cp(e),null;case 19:if(Uc(Cd),null===(a=e.memoizedState))return cp(e),null;if(r=0!=(128&e.flags),null===(o=a.rendering))if(r)lp(a,!1);else{if(0!==Qp||null!==t&&0!=(128&t.flags))for(t=e.child;null!==t;){if(null!==(o=Ad(t))){for(e.flags|=128,lp(a,!1),null!==(r=o.updateQueue)&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;null!==n;)t=r,(a=n).flags&=14680066,null===(o=a.alternate)?(a.childLanes=0,a.lanes=t,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,t=o.dependencies,a.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Wc(Cd,1&Cd.current|2),e.child}t=t.sibling}null!==a.tail&&gs()>ov&&(e.flags|=128,r=!0,lp(a,!1),e.lanes=4194304)}else{if(!r)if(null!==(t=Ad(o))){if(e.flags|=128,r=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.flags|=4),lp(a,!0),null===a.tail&&"hidden"===a.tailMode&&!o.alternate&&!kf)return cp(e),null}else 2*gs()-a.renderingStartTime>ov&&1073741824!==n&&(e.flags|=128,r=!0,lp(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(null!==(n=a.last)?n.sibling=o:e.child=o,a.last=o)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=gs(),e.sibling=null,n=Cd.current,Wc(Cd,r?1&n|2:1&n),e):(cp(e),null);case 22:case 23:return Mv(),r=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==r&&(e.flags|=8192),r&&0!=(1&e.mode)?0!=(1073741824&Kp)&&(cp(e),6&e.subtreeFlags&&(e.flags|=8192)):cp(e),null;case 24:case 25:return null}throw Error(ka(156,e.tag))}function dp(t,e){switch(_f(e),e.tag){case 1:return Kc(e.type)&&$c(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return kd(),Uc(qc),Uc(Gc),Md(),0!=(65536&(t=e.flags))&&0==(128&t)?(e.flags=-65537&t|128,e):null;case 5:return Ed(e),null;case 13:if(Uc(Cd),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(ka(340));Rf()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return Uc(Cd),null;case 4:return kd(),null;case 10:return Vf(e.type._context),null;case 22:case 23:return Mv(),null;default:return null}}Kh=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$h=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,xd(yd.current);var a,o=null;switch(n){case"input":i=vo(t,i),r=vo(t,r),o=[];break;case"select":i=no({},i,{value:void 0}),r=no({},r,{value:void 0}),o=[];break;case"textarea":i=ko(t,i),r=ko(t,r),o=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(t.onclick=mc)}for(l in Fo(n,r),n=null,i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if("style"===l){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(Ea.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in r){var u=r[l];if(s=null!=i?i[l]:void 0,r.hasOwnProperty(l)&&u!==s&&(null!=u||null!=s))if("style"===l)if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(l,n)),n=u;else"dangerouslySetInnerHTML"===l?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(o=o||[]).push(l,u)):"children"===l?"string"!=typeof u&&"number"!=typeof u||(o=o||[]).push(l,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(Ea.hasOwnProperty(l)?(null!=u&&"onScroll"===l&&rc("scroll",t),o||s===u||(o=[])):(o=o||[]).push(l,u))}n&&(o=o||[]).push("style",n);var l=o;(e.updateQueue=l)&&(e.flags|=4)}},Qh=function(t,e,n,r){n!==r&&(e.flags|=4)};var hp=!1,pp=!1,vp="function"==typeof WeakSet?WeakSet:Set,gp=null;function mp(t,e){var n=t.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(tQ){Hv(t,e,tQ)}else n.current=null}function yp(t,e,n){try{n()}catch(tQ){Hv(t,e,tQ)}}var bp=!1;function _p(t,e,n){var r=e.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&t)===t){var a=i.destroy;i.destroy=void 0,void 0!==a&&yp(e,n,a)}i=i.next}while(i!==r)}}function xp(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect: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 wp(t){var e=t.ref;if(null!==e){var n=t.stateNode;t.tag,t=n,"function"==typeof e?e(t):e.current=t}}function kp(t){var e=t.alternate;null!==e&&(t.alternate=null,kp(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&(null!==(e=t.stateNode)&&(delete e[Oc],delete e[Pc],delete e[Dc],delete e[Lc],delete e[Ic])),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 Sp(t){return 5===t.tag||3===t.tag||4===t.tag}function Ep(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||Sp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function Cp(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==e.onclick||(e.onclick=mc));else if(4!==r&&null!==(t=t.child))for(Cp(t,e,n),t=t.sibling;null!==t;)Cp(t,e,n),t=t.sibling}function Ap(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==r&&null!==(t=t.child))for(Ap(t,e,n),t=t.sibling;null!==t;)Ap(t,e,n),t=t.sibling}var Tp=null,Mp=!1;function Op(t,e,n){for(n=n.child;null!==n;)Pp(t,e,n),n=n.sibling}function Pp(t,e,n){if(Ss&&"function"==typeof Ss.onCommitFiberUnmount)try{Ss.onCommitFiberUnmount(ks,n)}catch(dQ){}switch(n.tag){case 5:pp||mp(n,e);case 6:var r=Tp,i=Mp;Tp=null,Op(t,e,n),Mp=i,null!==(Tp=r)&&(Mp?(t=Tp,n=n.stateNode,8===t.nodeType?t.parentNode.removeChild(n):t.removeChild(n)):Tp.removeChild(n.stateNode));break;case 18:null!==Tp&&(Mp?(t=Tp,n=n.stateNode,8===t.nodeType?Cc(t.parentNode,n):1===t.nodeType&&Cc(t,n),su(t)):Cc(Tp,n.stateNode));break;case 4:r=Tp,i=Mp,Tp=n.stateNode.containerInfo,Mp=!0,Op(t,e,n),Tp=r,Mp=i;break;case 0:case 11:case 14:case 15:if(!pp&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(0!=(2&a)||0!=(4&a))&&yp(n,e,o),i=i.next}while(i!==r)}Op(t,e,n);break;case 1:if(!pp&&(mp(n,e),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(dQ){Hv(n,e,dQ)}Op(t,e,n);break;case 21:Op(t,e,n);break;case 22:1&n.mode?(pp=(r=pp)||null!==n.memoizedState,Op(t,e,n),pp=r):Op(t,e,n);break;default:Op(t,e,n)}}function Rp(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new vp),e.forEach((function(e){var r=Gv.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}function Dp(t,e){var n=e.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=t,o=e,s=o;t:for(;null!==s;){switch(s.tag){case 5:Tp=s.stateNode,Mp=!1;break t;case 3:case 4:Tp=s.stateNode.containerInfo,Mp=!0;break t}s=s.return}if(null===Tp)throw Error(ka(160));Pp(a,o,i),Tp=null,Mp=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(H$){Hv(i,e,H$)}}if(12854&e.subtreeFlags)for(e=e.child;null!==e;)Lp(e,t),e=e.sibling}function Lp(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Dp(e,t),Ip(t),4&r){try{_p(3,t,t.return),xp(3,t)}catch(Bi){Hv(t,t.return,Bi)}try{_p(5,t,t.return)}catch(Bi){Hv(t,t.return,Bi)}}break;case 1:Dp(e,t),Ip(t),512&r&&null!==n&&mp(n,n.return);break;case 5:if(Dp(e,t),Ip(t),512&r&&null!==n&&mp(n,n.return),32&t.flags){var i=t.stateNode;try{Po(i,"")}catch(Bi){Hv(t,t.return,Bi)}}if(4&r&&null!=(i=t.stateNode)){var a=t.memoizedProps,o=null!==n?n.memoizedProps:a,s=t.type,u=t.updateQueue;if(t.updateQueue=null,null!==u)try{"input"===s&&"radio"===a.type&&null!=a.name&&mo(i,a),zo(s,o);var l=zo(s,a);for(o=0;o<u.length;o+=2){var c=u[o],f=u[o+1];"style"===c?Io(i,f):"dangerouslySetInnerHTML"===c?Oo(i,f):"children"===c?Po(i,f):za(i,c,f,l)}switch(s){case"input":yo(i,a);break;case"textarea":Eo(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?wo(i,!!a.multiple,h,!1):d!==!!a.multiple&&(null!=a.defaultValue?wo(i,!!a.multiple,a.defaultValue,!0):wo(i,!!a.multiple,a.multiple?[]:"",!1))}i[Pc]=a}catch(Bi){Hv(t,t.return,Bi)}}break;case 6:if(Dp(e,t),Ip(t),4&r){if(null===t.stateNode)throw Error(ka(162));i=t.stateNode,a=t.memoizedProps;try{i.nodeValue=a}catch(Bi){Hv(t,t.return,Bi)}}break;case 3:if(Dp(e,t),Ip(t),4&r&&null!==n&&n.memoizedState.isDehydrated)try{su(e.containerInfo)}catch(Bi){Hv(t,t.return,Bi)}break;case 4:default:Dp(e,t),Ip(t);break;case 13:Dp(e,t),Ip(t),8192&(i=t.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(av=gs())),4&r&&Rp(t);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&t.mode?(pp=(l=pp)||c,Dp(e,t),pp=l):Dp(e,t),Ip(t),8192&r){if(l=null!==t.memoizedState,(t.stateNode.isHidden=l)&&!c&&0!=(1&t.mode))for(gp=t,c=t.child;null!==c;){for(f=gp=c;null!==gp;){switch(h=(d=gp).child,d.tag){case 0:case 11:case 14:case 15:_p(4,d,d.return);break;case 1:mp(d,d.return);var p=d.stateNode;if("function"==typeof p.componentWillUnmount){r=d,n=d.return;try{e=r,p.props=e.memoizedProps,p.state=e.memoizedState,p.componentWillUnmount()}catch(Bi){Hv(r,n,Bi)}}break;case 5:mp(d,d.return);break;case 22:if(null!==d.memoizedState){jp(f);continue}}null!==h?(h.return=d,gp=h):jp(f)}c=c.sibling}t:for(c=null,f=t;;){if(5===f.tag){if(null===c){c=f;try{i=f.stateNode,l?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,o=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=Lo("display",o))}catch(Bi){Hv(t,t.return,Bi)}}}else if(6===f.tag){if(null===c)try{f.stateNode.nodeValue=l?"":f.memoizedProps}catch(Bi){Hv(t,t.return,Bi)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===t)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===t)break t;for(;null===f.sibling;){if(null===f.return||f.return===t)break t;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Dp(e,t),Ip(t),4&r&&Rp(t);case 21:}}function Ip(t){var e=t.flags;if(2&e){try{t:{for(var n=t.return;null!==n;){if(Sp(n)){var r=n;break t}n=n.return}throw Error(ka(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(Po(i,""),r.flags&=-33),Ap(t,Ep(t),i);break;case 3:case 4:var a=r.stateNode.containerInfo;Cp(t,Ep(t),a);break;default:throw Error(ka(161))}}catch(aQ){Hv(t,t.return,aQ)}t.flags&=-3}4096&e&&(t.flags&=-4097)}function Np(t,e,n){gp=t,Fp(t)}function Fp(t,e,n){for(var r=0!=(1&t.mode);null!==gp;){var i=gp,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||hp;if(!o){var s=i.alternate,u=null!==s&&null!==s.memoizedState||pp;s=hp;var l=pp;if(hp=o,(pp=u)&&!l)for(gp=i;null!==gp;)u=(o=gp).child,22===o.tag&&null!==o.memoizedState?Bp(i):null!==u?(u.return=o,gp=u):Bp(i);for(;null!==a;)gp=a,Fp(a),a=a.sibling;gp=i,hp=s,pp=l}zp(t)}else 0!=(8772&i.subtreeFlags)&&null!==a?(a.return=i,gp=a):zp(t)}}function zp(t){for(;null!==gp;){var e=gp;if(0!=(8772&e.flags)){var n=e.alternate;try{if(0!=(8772&e.flags))switch(e.tag){case 0:case 11:case 15:pp||xp(5,e);break;case 1:var r=e.stateNode;if(4&e.flags&&!pp)if(null===n)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:If(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=e.updateQueue;null!==a&&rd(e,a,r);break;case 3:var o=e.updateQueue;if(null!==o){if(n=null,null!==e.child)switch(e.child.tag){case 5:case 1:n=e.child.stateNode}rd(e,o,n)}break;case 5:var s=e.stateNode;if(null===n&&4&e.flags){n=s;var u=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===e.memoizedState){var l=e.alternate;if(null!==l){var c=l.memoizedState;if(null!==c){var f=c.dehydrated;null!==f&&su(f)}}}break;default:throw Error(ka(163))}pp||512&e.flags&&wp(e)}catch(ji){Hv(e,e.return,ji)}}if(e===t){gp=null;break}if(null!==(n=e.sibling)){n.return=e.return,gp=n;break}gp=e.return}}function jp(t){for(;null!==gp;){var e=gp;if(e===t){gp=null;break}var n=e.sibling;if(null!==n){n.return=e.return,gp=n;break}gp=e.return}}function Bp(t){for(;null!==gp;){var e=gp;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{xp(4,e)}catch(aQ){Hv(e,n,aQ)}break;case 1:var r=e.stateNode;if("function"==typeof r.componentDidMount){var i=e.return;try{r.componentDidMount()}catch(aQ){Hv(e,i,aQ)}}var a=e.return;try{wp(e)}catch(aQ){Hv(e,a,aQ)}break;case 5:var o=e.return;try{wp(e)}catch(aQ){Hv(e,o,aQ)}}}catch(aQ){Hv(e,e.return,aQ)}if(e===t){gp=null;break}var s=e.sibling;if(null!==s){s.return=e.return,gp=s;break}gp=e.return}}var Vp,Hp=Math.ceil,Up=ja.ReactCurrentDispatcher,Wp=ja.ReactCurrentOwner,Yp=ja.ReactCurrentBatchConfig,Gp=0,qp=null,Zp=null,Xp=0,Kp=0,$p=Hc(0),Qp=0,Jp=null,tv=0,ev=0,nv=0,rv=null,iv=null,av=0,ov=1/0,sv=null,uv=!1,lv=null,cv=null,fv=!1,dv=null,hv=0,pv=0,vv=null,gv=-1,mv=0;function yv(){return 0!=(6&Gp)?gs():-1!==gv?gv:gv=gs()}function bv(t){return 0==(1&t.mode)?1:0!=(2&Gp)&&0!==Xp?Xp&-Xp:null!==Lf.transition?(0===mv&&(mv=Ls()),mv):0!==(t=zs)?t:t=void 0===(t=window.event)?16:vu(t.type)}function _v(t,e,n,r){if(50<pv)throw pv=0,vv=null,Error(ka(185));Ns(t,n,r),0!=(2&Gp)&&t===qp||(t===qp&&(0==(2&Gp)&&(ev|=n),4===Qp&&Ev(t,Xp)),xv(t,r),1===n&&0===Gp&&0==(1&e.mode)&&(ov=gs()+500,rf&&sf()))}function xv(t,e){var n=t.callbackNode;!function(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,a=t.pendingLanes;0<a;){var o=31-Es(a),s=1<<o,u=i[o];-1===u?0!=(s&n)&&0==(s&r)||(i[o]=Rs(s,e)):u<=e&&(t.expiredLanes|=s),a&=~s}}(t,e);var r=Ps(t,t===qp?Xp:0);if(0===r)null!==n&&hs(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(null!=n&&hs(n),1===e)0===t.tag?function(t){rf=!0,of(t)}(Cv.bind(null,t)):of(Cv.bind(null,t)),Sc((function(){0==(6&Gp)&&sf()})),n=null;else{switch(js(r)){case 1:n=ys;break;case 4:n=bs;break;case 16:default:n=_s;break;case 536870912:n=ws}n=qv(n,wv.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function wv(t,e){if(gv=-1,mv=0,0!=(6&Gp))throw Error(ka(327));var n=t.callbackNode;if(Bv()&&t.callbackNode!==n)return null;var r=Ps(t,t===qp?Xp:0);if(0===r)return null;if(0!=(30&r)||0!=(r&t.expiredLanes)||e)e=Lv(t,r);else{e=r;var i=Gp;Gp|=2;var a=Rv();for(qp===t&&Xp===e||(sv=null,ov=gs()+500,Ov(t,e));;)try{Nv();break}catch(dQ){Pv(t,dQ)}Bf(),Up.current=a,Gp=i,null!==Zp?e=0:(qp=null,Xp=0,e=Qp)}if(0!==e){if(2===e&&(0!==(i=Ds(t))&&(r=i,e=kv(t,i))),1===e)throw n=Jp,Ov(t,0),Ev(t,r),xv(t,gs()),n;if(6===e)Ev(t,r);else{if(i=t.current.alternate,0==(30&r)&&!function(t){for(var e=t;;){if(16384&e.flags){var n=e.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!El(a(),i))return!1}catch(o){return!1}}}if(n=e.child,16384&e.subtreeFlags&&null!==n)n.return=e,e=n;else{if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}(i)&&(2===(e=Lv(t,r))&&(0!==(a=Ds(t))&&(r=a,e=kv(t,a))),1===e))throw n=Jp,Ov(t,0),Ev(t,r),xv(t,gs()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(ka(345));case 2:case 5:jv(t,iv,sv);break;case 3:if(Ev(t,r),(130023424&r)===r&&10<(e=av+500-gs())){if(0!==Ps(t,0))break;if(((i=t.suspendedLanes)&r)!==r){yv(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=xc(jv.bind(null,t,iv,sv),e);break}jv(t,iv,sv);break;case 4:if(Ev(t,r),(4194240&r)===r)break;for(e=t.eventTimes,i=-1;0<r;){var o=31-Es(r);a=1<<o,(o=e[o])>i&&(i=o),r&=~a}if(r=i,10<(r=(120>(r=gs()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hp(r/1960))-r)){t.timeoutHandle=xc(jv.bind(null,t,iv,sv),r);break}jv(t,iv,sv);break;default:throw Error(ka(329))}}}return xv(t,gs()),t.callbackNode===n?wv.bind(null,t):null}function kv(t,e){var n=rv;return t.current.memoizedState.isDehydrated&&(Ov(t,e).flags|=256),2!==(t=Lv(t,e))&&(e=iv,iv=n,null!==e&&Sv(e)),t}function Sv(t){null===iv?iv=t:iv.push.apply(iv,t)}function Ev(t,e){for(e&=~nv,e&=~ev,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Es(e),r=1<<n;t[n]=-1,e&=~r}}function Cv(t){if(0!=(6&Gp))throw Error(ka(327));Bv();var e=Ps(t,0);if(0==(1&e))return xv(t,gs()),null;var n=Lv(t,e);if(0!==t.tag&&2===n){var r=Ds(t);0!==r&&(e=r,n=kv(t,r))}if(1===n)throw n=Jp,Ov(t,0),Ev(t,e),xv(t,gs()),n;if(6===n)throw Error(ka(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,jv(t,iv,sv),xv(t,gs()),null}function Av(t,e){var n=Gp;Gp|=1;try{return t(e)}finally{0===(Gp=n)&&(ov=gs()+500,rf&&sf())}}function Tv(t){null!==dv&&0===dv.tag&&0==(6&Gp)&&Bv();var e=Gp;Gp|=1;var n=Yp.transition,r=zs;try{if(Yp.transition=null,zs=1,t)return t()}finally{zs=r,Yp.transition=n,0==(6&(Gp=e))&&sf()}}function Mv(){Kp=$p.current,Uc($p)}function Ov(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,wc(n)),null!==Zp)for(n=Zp.return;null!==n;){var r=n;switch(_f(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&$c();break;case 3:kd(),Uc(qc),Uc(Gc),Md();break;case 5:Ed(r);break;case 4:kd();break;case 13:case 19:Uc(Cd);break;case 10:Vf(r.type._context);break;case 22:case 23:Mv()}n=n.return}if(qp=t,Zp=t=$v(t.current,null),Xp=Kp=e,Qp=0,Jp=null,nv=ev=tv=0,iv=rv=null,null!==Yf){for(e=0;e<Yf.length;e++)if(null!==(r=(n=Yf[e]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Yf=null}return t}function Pv(t,e){for(;;){var n=Zp;try{if(Bf(),Od.current=Sh,Nd){for(var r=Dd.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Nd=!1}if(Rd=0,Id=Ld=Dd=null,Fd=!1,zd=0,Wp.current=null,null===n||null===n.return){Qp=1,Jp=e,Zp=null;break}t:{var a=t,o=n.return,s=n,u=e;if(e=Xp,s.flags|=32768,null!==u&&"object"===Fi(u)&&"function"==typeof u.then){var l=u,c=s,f=c.tag;if(0==(1&c.mode)&&(0===f||11===f||15===f)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Ih(o);if(null!==h){h.flags&=-257,Nh(h,o,s,0,e),1&h.mode&&Lh(a,l,e),u=l;var p=(e=h).updateQueue;if(null===p){var v=new Set;v.add(u),e.updateQueue=v}else p.add(u);break t}if(0==(1&e)){Lh(a,l,e),Dv();break t}u=Error(ka(426))}else if(kf&&1&s.mode){var g=Ih(o);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Nh(g,o,s,0,e),Df(Th(u,s));break t}}a=u=Th(u,s),4!==Qp&&(Qp=2),null===rv?rv=[a]:rv.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,e&=-e,a.lanes|=e,ed(a,Rh(0,u,e));break t;case 1:s=u;var m=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof m.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===cv||!cv.has(y)))){a.flags|=65536,e&=-e,a.lanes|=e,ed(a,Dh(a,s,e));break t}}a=a.return}while(null!==a)}zv(n)}catch(lut){e=lut,Zp===n&&null!==n&&(Zp=n=n.return);continue}break}}function Rv(){var t=Up.current;return Up.current=Sh,null===t?Sh:t}function Dv(){0!==Qp&&3!==Qp&&2!==Qp||(Qp=4),null===qp||0==(268435455&tv)&&0==(268435455&ev)||Ev(qp,Xp)}function Lv(t,e){var n=Gp;Gp|=2;var r=Rv();for(qp===t&&Xp===e||(sv=null,Ov(t,e));;)try{Iv();break}catch(i){Pv(t,i)}if(Bf(),Gp=n,Up.current=r,null!==Zp)throw Error(ka(261));return qp=null,Xp=0,Qp}function Iv(){for(;null!==Zp;)Fv(Zp)}function Nv(){for(;null!==Zp&&!ps();)Fv(Zp)}function Fv(t){var e=Vp(t.alternate,t,Kp);t.memoizedProps=t.pendingProps,null===e?zv(t):Zp=e,Wp.current=null}function zv(t){var e=t;do{var n=e.alternate;if(t=e.return,0==(32768&e.flags)){if(null!==(n=fp(n,e,Kp)))return void(Zp=n)}else{if(null!==(n=dp(n,e)))return n.flags&=32767,void(Zp=n);if(null===t)return Qp=6,void(Zp=null);t.flags|=32768,t.subtreeFlags=0,t.deletions=null}if(null!==(e=e.sibling))return void(Zp=e);Zp=e=t}while(null!==e);0===Qp&&(Qp=5)}function jv(t,e,n){var r=zs,i=Yp.transition;try{Yp.transition=null,zs=1,function(t,e,n,r){do{Bv()}while(null!==dv);if(0!=(6&Gp))throw Error(ka(327));n=t.finishedWork;var i=t.finishedLanes;if(null===n)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(ka(177));t.callbackNode=null,t.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(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-Es(n),a=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~a}}(t,a),t===qp&&(Zp=qp=null,Xp=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||fv||(fv=!0,qv(_s,(function(){return Bv(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Yp.transition,Yp.transition=null;var o=zs;zs=1;var s=Gp;Gp|=4,Wp.current=null,function(t,e){if(yc=lu,Pl(t=Ol())){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{var r=(n=(n=t.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(YQ){n=null;break t}var o=0,s=-1,u=-1,l=0,c=0,f=t,d=null;e:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(s=o+i),f!==a||0!==r&&3!==f.nodeType||(u=o+r),3===f.nodeType&&(o+=f.nodeValue.length),null!==(h=f.firstChild);)d=f,f=h;for(;;){if(f===t)break e;if(d===n&&++l===i&&(s=o),d===a&&++c===r&&(u=o),null!==(h=f.nextSibling))break;d=(f=d).parentNode}f=h}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(bc={focusedElem:t,selectionRange:n},lu=!1,gp=e;null!==gp;)if(t=(e=gp).child,0!=(1028&e.subtreeFlags)&&null!==t)t.return=e,gp=t;else for(;null!==gp;){e=gp;try{var p=e.alternate;if(0!=(1024&e.flags))switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var v=p.memoizedProps,g=p.memoizedState,m=e.stateNode,y=m.getSnapshotBeforeUpdate(e.elementType===e.type?v:If(e.type,v),g);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=e.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(ka(163))}}catch(YQ){Hv(e,e.return,YQ)}if(null!==(t=e.sibling)){t.return=e.return,gp=t;break}gp=e.return}p=bp,bp=!1}(t,n),Lp(n,t),Rl(bc),lu=!!yc,bc=yc=null,t.current=n,Np(n),vs(),Gp=s,zs=o,Yp.transition=a}else t.current=n;if(fv&&(fv=!1,dv=t,hv=i),0===(a=t.pendingLanes)&&(cv=null),function(t){if(Ss&&"function"==typeof Ss.onCommitFiberRoot)try{Ss.onCommitFiberRoot(ks,t,void 0,128==(128&t.current.flags))}catch(e){}}(n.stateNode),xv(t,gs()),null!==e)for(r=t.onRecoverableError,n=0;n<e.length;n++)r((i=e[n]).value,{componentStack:i.stack,digest:i.digest});if(uv)throw uv=!1,t=lv,lv=null,t;0!=(1&hv)&&0!==t.tag&&Bv(),0!=(1&(a=t.pendingLanes))?t===vv?pv++:(pv=0,vv=t):pv=0,sf()}(t,e,n,r)}finally{Yp.transition=i,zs=r}return null}function Bv(){if(null!==dv){var t=js(hv),e=Yp.transition,n=zs;try{if(Yp.transition=null,zs=16>t?16:t,null===dv)var r=!1;else{if(t=dv,dv=null,hv=0,0!=(6&Gp))throw Error(ka(331));var i=Gp;for(Gp|=4,gp=t.current;null!==gp;){var a=gp,o=a.child;if(0!=(16&gp.flags)){var s=a.deletions;if(null!==s){for(var u=0;u<s.length;u++){var l=s[u];for(gp=l;null!==gp;){var c=gp;switch(c.tag){case 0:case 11:case 15:_p(8,c,a)}var f=c.child;if(null!==f)f.return=c,gp=f;else for(;null!==gp;){var d=(c=gp).sibling,h=c.return;if(kp(c),c===l){gp=null;break}if(null!==d){d.return=h,gp=d;break}gp=h}}}var p=a.alternate;if(null!==p){var v=p.child;if(null!==v){p.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}gp=a}}if(0!=(2064&a.subtreeFlags)&&null!==o)o.return=a,gp=o;else t:for(;null!==gp;){if(0!=(2048&(a=gp).flags))switch(a.tag){case 0:case 11:case 15:_p(9,a,a.return)}var m=a.sibling;if(null!==m){m.return=a.return,gp=m;break t}gp=a.return}}var y=t.current;for(gp=y;null!==gp;){var b=(o=gp).child;if(0!=(2064&o.subtreeFlags)&&null!==b)b.return=o,gp=b;else t:for(o=y;null!==gp;){if(0!=(2048&(s=gp).flags))try{switch(s.tag){case 0:case 11:case 15:xp(9,s)}}catch(lut){Hv(s,s.return,lut)}if(s===o){gp=null;break t}var _=s.sibling;if(null!==_){_.return=s.return,gp=_;break t}gp=s.return}}if(Gp=i,sf(),Ss&&"function"==typeof Ss.onPostCommitFiberRoot)try{Ss.onPostCommitFiberRoot(ks,t)}catch(lut){}r=!0}return r}finally{zs=n,Yp.transition=e}}return!1}function Vv(t,e,n){t=Jf(t,e=Rh(0,e=Th(n,e),1),1),e=yv(),null!==t&&(Ns(t,1,e),xv(t,e))}function Hv(t,e,n){if(3===t.tag)Vv(t,t,n);else for(;null!==e;){if(3===e.tag){Vv(e,t,n);break}if(1===e.tag){var r=e.stateNode;if("function"==typeof e.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===cv||!cv.has(r))){e=Jf(e,t=Dh(e,t=Th(n,t),1),1),t=yv(),null!==e&&(Ns(e,1,t),xv(e,t));break}}e=e.return}}function Uv(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),e=yv(),t.pingedLanes|=t.suspendedLanes&n,qp===t&&(Xp&n)===n&&(4===Qp||3===Qp&&(130023424&Xp)===Xp&&500>gs()-av?Ov(t,0):nv|=n),xv(t,e)}function Wv(t,e){0===e&&(0==(1&t.mode)?e=1:(e=Ms,0==(130023424&(Ms<<=1))&&(Ms=4194304)));var n=yv();null!==(t=Zf(t,e))&&(Ns(t,e,n),xv(t,n))}function Yv(t){var e=t.memoizedState,n=0;null!==e&&(n=e.retryLane),Wv(t,n)}function Gv(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(ka(314))}null!==r&&r.delete(e),Wv(t,n)}function qv(t,e){return ds(t,e)}function Zv(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 Xv(t,e,n,r){return new Zv(t,e,n,r)}function Kv(t){return!(!(t=t.prototype)||!t.isReactComponent)}function $v(t,e){var n=t.alternate;return null===n?((n=Xv(t.tag,e,t.key,t.mode)).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=14680064&t.flags,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=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Qv(t,e,n,r,i,a){var o=2;if(r=t,"function"==typeof t)Kv(t)&&(o=1);else if("string"==typeof t)o=5;else t:switch(t){case Ha:return Jv(n.children,i,a,e);case Ua:o=8,i|=8;break;case Wa:return(t=Xv(12,n,e,2|i)).elementType=Wa,t.lanes=a,t;case Za:return(t=Xv(13,n,e,i)).elementType=Za,t.lanes=a,t;case Xa:return(t=Xv(19,n,e,i)).elementType=Xa,t.lanes=a,t;case Qa:return tg(n,i,a,e);default:if("object"===Fi(t)&&null!==t)switch(t.$$typeof){case Ya:o=10;break t;case Ga:o=9;break t;case qa:o=11;break t;case Ka:o=14;break t;case $a:o=16,r=null;break t}throw Error(ka(130,null==t?t:Fi(t),""))}return(e=Xv(o,n,e,i)).elementType=t,e.type=r,e.lanes=a,e}function Jv(t,e,n,r){return(t=Xv(7,t,r,e)).lanes=n,t}function tg(t,e,n,r){return(t=Xv(22,t,r,e)).elementType=Qa,t.lanes=n,t.stateNode={isHidden:!1},t}function eg(t,e,n){return(t=Xv(6,t,null,e)).lanes=n,t}function ng(t,e,n){return(e=Xv(4,null!==t.children?t.children:[],t.key,e)).lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function rg(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=Is(0),this.expirationTimes=Is(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Is(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ig(t,e,n,r,i,a,o,s,u){return t=new rg(t,e,n,s,u),1===e?(e=1,!0===a&&(e|=8)):e=0,a=Xv(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kf(a),t}function ag(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Va,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function og(t){if(!t)return Yc;t:{if(ss(t=t._reactInternals)!==t||1!==t.tag)throw Error(ka(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Kc(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(ka(171))}if(1===t.tag){var n=t.type;if(Kc(n))return Jc(t,n,e)}return e}function sg(t,e,n,r,i,a,o,s,u){return(t=ig(n,r,!0,t,0,a,0,s,u)).context=og(null),n=t.current,(a=Qf(r=yv(),i=bv(n))).callback=null!=e?e:null,Jf(n,a,i),t.current.lanes=i,Ns(t,i,r),xv(t,r),t}function ug(t,e,n,r){var i=e.current,a=yv(),o=bv(i);return n=og(n),null===e.context?e.context=n:e.pendingContext=n,(e=Qf(a,o)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),null!==(t=Jf(i,e,o))&&(_v(t,i,o,a),td(t,i,o)),o}function lg(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function cg(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var n=t.retryLane;t.retryLane=0!==n&&n<e?n:e}}function fg(t,e){cg(t,e),(t=t.alternate)&&cg(t,e)}Vp=function(t,e,n){if(null!==t)if(t.memoizedProps!==e.pendingProps||qc.current)zh=!0;else{if(0==(t.lanes&n)&&0==(128&e.flags))return zh=!1,function(t,e,n){switch(e.tag){case 3:Zh(e),Rf();break;case 5:Sd(e);break;case 1:Kc(e.type)&&tf(e);break;case 4:wd(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;Wc(Nf,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=e.memoizedState))return null!==r.dehydrated?(Wc(Cd,1&Cd.current),e.flags|=128,null):0!=(n&e.child.childLanes)?ep(t,e,n):(Wc(Cd,1&Cd.current),null!==(t=up(t,e,n))?t.sibling:null);Wc(Cd,1&Cd.current);break;case 19:if(r=0!=(n&e.childLanes),0!=(128&t.flags)){if(r)return op(t,e,n);e.flags|=128}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Wc(Cd,Cd.current),r)break;return null;case 22:case 23:return e.lanes=0,Uh(t,e,n)}return up(t,e,n)}(t,e,n);zh=0!=(131072&t.flags)}else zh=!1,kf&&0!=(1048576&e.flags)&&yf(e,ff,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;sp(t,e),t=e.pendingProps;var i=Xc(e,Gc.current);Uf(e,n),i=Hd(null,e,r,t,i,n);var a=Ud();return e.flags|=1,"object"===Fi(i)&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Kc(r)?(a=!0,tf(e)):a=!1,e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Kf(e),i.updater=od,e.stateNode=i,i._reactInternals=e,cd(e,r,t,n),e=qh(null,e,r,!0,a,n)):(e.tag=0,kf&&a&&bf(e),jh(null,e,i,n),e=e.child),e;case 16:r=e.elementType;t:{switch(sp(t,e),t=e.pendingProps,r=(i=r._init)(r._payload),e.type=r,i=e.tag=function(t){if("function"==typeof t)return Kv(t)?1:0;if(null!=t){if((t=t.$$typeof)===qa)return 11;if(t===Ka)return 14}return 2}(r),t=If(r,t),i){case 0:e=Yh(null,e,r,t,n);break t;case 1:e=Gh(null,e,r,t,n);break t;case 11:e=Bh(null,e,r,t,n);break t;case 14:e=Vh(null,e,r,If(r.type,t),n);break t}throw Error(ka(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,Yh(t,e,r,i=e.elementType===r?i:If(r,i),n);case 1:return r=e.type,i=e.pendingProps,Gh(t,e,r,i=e.elementType===r?i:If(r,i),n);case 3:t:{if(Zh(e),null===t)throw Error(ka(387));r=e.pendingProps,i=(a=e.memoizedState).element,$f(t,e),nd(e,r,null,n);var o=e.memoizedState;if(r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=a,e.memoizedState=a,256&e.flags){e=Xh(t,e,r,n,i=Th(Error(ka(423)),e));break t}if(r!==i){e=Xh(t,e,r,n,i=Th(Error(ka(424)),e));break t}for(wf=Ac(e.stateNode.containerInfo.firstChild),xf=e,kf=!0,Sf=null,n=gd(e,null,r,n),e.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Rf(),r===i){e=up(t,e,n);break t}jh(t,e,r,n)}e=e.child}return e;case 5:return Sd(e),null===t&&Tf(e),r=e.type,i=e.pendingProps,a=null!==t?t.memoizedProps:null,o=i.children,_c(r,i)?o=null:null!==a&&_c(r,a)&&(e.flags|=32),Wh(t,e),jh(t,e,o,n),e.child;case 6:return null===t&&Tf(e),null;case 13:return ep(t,e,n);case 4:return wd(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=vd(e,null,r,n):jh(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,Bh(t,e,r,i=e.elementType===r?i:If(r,i),n);case 7:return jh(t,e,e.pendingProps,n),e.child;case 8:case 12:return jh(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(r=e.type._context,i=e.pendingProps,a=e.memoizedProps,o=i.value,Wc(Nf,r._currentValue),r._currentValue=o,null!==a)if(El(a.value,o)){if(a.children===i.children&&!qc.current){e=up(t,e,n);break t}}else for(null!==(a=e.child)&&(a.return=e);null!==a;){var s=a.dependencies;if(null!==s){o=a.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Qf(-1,n&-n)).tag=2;var l=a.updateQueue;if(null!==l){var c=(l=l.shared).pending;null===c?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Hf(a.return,n,e),s.lanes|=n;break}u=u.next}}else if(10===a.tag)o=a.type===e.type?null:a.child;else if(18===a.tag){if(null===(o=a.return))throw Error(ka(341));o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),Hf(o,n,e),o=a.sibling}else o=a.child;if(null!==o)o.return=a;else for(o=a;null!==o;){if(o===e){o=null;break}if(null!==(a=o.sibling)){a.return=o.return,o=a;break}o=o.return}a=o}jh(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Uf(e,n),r=r(i=Wf(i)),e.flags|=1,jh(t,e,r,n),e.child;case 14:return i=If(r=e.type,e.pendingProps),Vh(t,e,r,i=If(r.type,i),n);case 15:return Hh(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:If(r,i),sp(t,e),e.tag=1,Kc(r)?(t=!0,tf(e)):t=!1,Uf(e,n),ud(e,r,i),cd(e,r,i,n),qh(null,e,r,!0,t,n);case 19:return op(t,e,n);case 22:return Uh(t,e,n)}throw Error(ka(156,e.tag))};var dg="function"==typeof reportError?reportError:function(t){console.error(t)};function hg(t){this._internalRoot=t}function pg(t){this._internalRoot=t}function vg(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)}function gg(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function mg(){}function yg(t,e,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"==typeof i){var s=i;i=function(){var t=lg(o);s.call(t)}}ug(e,o,t,i)}else o=function(t,e,n,r,i){if(i){if("function"==typeof r){var a=r;r=function(){var t=lg(o);a.call(t)}}var o=sg(e,r,t,0,null,!1,0,"",mg);return t._reactRootContainer=o,t[Rc]=o.current,oc(8===t.nodeType?t.parentNode:t),Tv(),o}for(;i=t.lastChild;)t.removeChild(i);if("function"==typeof r){var s=r;r=function(){var t=lg(u);s.call(t)}}var u=ig(t,0,!1,null,0,!1,0,"",mg);return t._reactRootContainer=u,t[Rc]=u.current,oc(8===t.nodeType?t.parentNode:t),Tv((function(){ug(e,u,n,r)})),u}(n,e,t,i,r);return lg(o)}pg.prototype.render=hg.prototype.render=function(t){var e=this._internalRoot;if(null===e)throw Error(ka(409));ug(t,e,null,null)},pg.prototype.unmount=hg.prototype.unmount=function(){var t=this._internalRoot;if(null!==t){this._internalRoot=null;var e=t.containerInfo;Tv((function(){ug(null,t,null,null)})),e[Rc]=null}},pg.prototype.unstable_scheduleHydration=function(t){if(t){var e=Us();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Qs.length&&0!==e&&e<Qs[n].priority;n++);Qs.splice(n,0,t),0===n&&nu(t)}},Bs=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Os(e.pendingLanes);0!==n&&(Fs(e,1|n),xv(e,gs()),0==(6&Gp)&&(ov=gs()+500,sf()))}break;case 13:Tv((function(){var e=Zf(t,1);if(null!==e){var n=yv();_v(e,t,1,n)}})),fg(t,1)}},Vs=function(t){if(13===t.tag){var e=Zf(t,134217728);if(null!==e)_v(e,t,134217728,yv());fg(t,134217728)}},Hs=function(t){if(13===t.tag){var e=bv(t),n=Zf(t,e);if(null!==n)_v(n,t,e,yv());fg(t,e)}},Us=function(){return zs},Ws=function(t,e){var n=zs;try{return zs=t,e()}finally{zs=n}},Vo=function(t,e,n){switch(e){case"input":if(yo(t,n),e=n.name,"radio"===n.type&&null!=e){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=jc(r);if(!i)throw Error(ka(90));ho(r),yo(r,i)}}}break;case"textarea":Eo(t,n);break;case"select":null!=(e=n.value)&&wo(t,!!n.multiple,e,!1)}},qo=Av,Zo=Tv;var bg={usingClientEntryPoint:!1,Events:[Fc,zc,jc,Yo,Go,Av]},_g={findFiberByHostInstance:Nc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},xg={bundleType:_g.bundleType,version:_g.version,rendererPackageName:_g.rendererPackageName,rendererConfig:_g.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ja.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=cs(t))?null:t.stateNode},findFiberByHostInstance:_g.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var wg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wg.isDisabled&&wg.supportsFiber)try{ks=wg.inject(xg),Ss=wg}catch(eP){}}ya.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bg,ya.createPortal=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!vg(e))throw Error(ka(200));return ag(t,e,null,n)},ya.createRoot=function(t,e){if(!vg(t))throw Error(ka(299));var n=!1,r="",i=dg;return null!=e&&(!0===e.unstable_strictMode&&(n=!0),void 0!==e.identifierPrefix&&(r=e.identifierPrefix),void 0!==e.onRecoverableError&&(i=e.onRecoverableError)),e=ig(t,1,!1,null,0,n,0,r,i),t[Rc]=e.current,oc(8===t.nodeType?t.parentNode:t),new hg(e)},ya.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternals;if(void 0===e){if("function"==typeof t.render)throw Error(ka(188));throw t=Object.keys(t).join(","),Error(ka(268,t))}return t=null===(t=cs(e))?null:t.stateNode},ya.flushSync=function(t){return Tv(t)},ya.hydrate=function(t,e,n){if(!gg(e))throw Error(ka(200));return yg(null,t,e,!0,n)},ya.hydrateRoot=function(t,e,n){if(!vg(t))throw Error(ka(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",o=dg;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(o=n.onRecoverableError)),e=sg(e,null,t,1,null!=n?n:null,i,0,a,o),t[Rc]=e.current,oc(t),r)for(t=0;t<r.length;t++)i=(i=(n=r[t])._getVersion)(n._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new pg(e)},ya.render=function(t,e,n){if(!gg(e))throw Error(ka(200));return yg(null,t,e,!1,n)},ya.unmountComponentAtNode=function(t){if(!gg(t))throw Error(ka(40));return!!t._reactRootContainer&&(Tv((function(){yg(null,null,t,!1,(function(){t._reactRootContainer=null,t[Rc]=null}))})),!0)},ya.unstable_batchedUpdates=Av,ya.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!gg(n))throw Error(ka(200));if(null==t||void 0===t._reactInternals)throw Error(ka(38));return yg(t,e,n,!1,r)},ya.version="18.2.0-next-9e3b772b8-20220608",function(t){!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}(),t.exports=ya}(ma);var kg=bi(ma.exports),Sg=ma.exports;ga.createRoot=Sg.createRoot,ga.hydrateRoot=Sg.hydrateRoot;var Eg=Object.prototype.toString;function Cg(t){switch(Eg.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Fg(t,Error)}}function Ag(t,e){return Eg.call(t)==="[object ".concat(e,"]")}function Tg(t){return Ag(t,"ErrorEvent")}function Mg(t){return Ag(t,"DOMError")}function Og(t){return Ag(t,"String")}function Pg(t){return null===t||"object"!==Fi(t)&&"function"!=typeof t}function Rg(t){return Ag(t,"Object")}function Dg(t){return"undefined"!=typeof Event&&Fg(t,Event)}function Lg(t){return Ag(t,"RegExp")}function Ig(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function Ng(t){return"number"==typeof t&&t!=t}function Fg(t,e){try{return t instanceof e}catch(w2){return!1}}function zg(t){return t&&t.Math==Math?t:void 0}var jg="object"==("undefined"==typeof globalThis?"undefined":Fi(globalThis))&&zg(globalThis)||"object"==("undefined"==typeof window?"undefined":Fi(window))&&zg(window)||"object"==("undefined"==typeof self?"undefined":Fi(self))&&zg(self)||"object"==("undefined"==typeof global?"undefined":Fi(global))&&zg(global)||function(){return this}()||{};function Bg(){return jg}function Vg(t,e,n){var r=n||jg,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}var Hg=Bg();function Ug(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{for(var n,r=t,i=5,a=[],o=0,s=0,u=" > ",l=u.length,c=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||80;r&&o++<i&&!("html"===(n=Wg(r,c))||o>1&&s+a.length*l+n.length>=f);)a.push(n),s+=n.length,r=r.parentNode;return a.reverse().join(u)}catch(d){return"<unknown>"}}function Wg(t,e){var n,r,i,a,o,s=t,u=[];if(!s||!s.tagName)return"";u.push(s.tagName.toLowerCase());var l=e&&e.length?e.filter((function(t){return s.getAttribute(t)})).map((function(t){return[t,s.getAttribute(t)]})):null;if(l&&l.length)l.forEach((function(t){u.push("[".concat(t[0],'="').concat(t[1],'"]'))}));else if(s.id&&u.push("#".concat(s.id)),(n=s.className)&&Og(n))for(r=n.split(/\s+/),o=0;o<r.length;o++)u.push(".".concat(r[o]));var c=["type","name","title","alt"];for(o=0;o<c.length;o++)i=c[o],(a=s.getAttribute(i))&&u.push("[".concat(i,'="').concat(a,'"]'));return u.join("")}var Yg=function(t){Ti(n,t);var e=Mi(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";return Ai(this,n),(r=e.call(this,t)).message=t,r.name=(this instanceof n?this.constructor:void 0).prototype.constructor.name,Object.setPrototypeOf(Pi(r),(this instanceof n?this.constructor:void 0).prototype),r.logLevel=i,r}return Ci(n)}(Ri(Error)),Gg=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function qg(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.host,r=t.path,i=t.pass,a=t.port,o=t.projectId,s=t.protocol,u=t.publicKey;return"".concat(s,"://").concat(u).concat(e&&i?":".concat(i):"")+"@".concat(n).concat(a?":".concat(a):"","/").concat(r?"".concat(r,"/"):r).concat(o)}function Zg(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Xg(t){var e="string"==typeof t?function(t){var e=Gg.exec(t);if(!e)throw new Yg("Invalid Sentry Dsn: ".concat(t));var n=wi(e.slice(1),6),r=n[0],i=n[1],a=n[2],o=void 0===a?"":a,s=n[3],u=n[4],l=void 0===u?"":u,c="",f=n[5],d=f.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),f=d.pop()),f){var h=f.match(/^\d+/);h&&(f=h[0])}return Zg({host:s,pass:o,path:c,projectId:f,port:l,protocol:r,publicKey:i})}(t):Zg(t);return function(t){if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var e=t.port,n=t.projectId,r=t.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new Yg("Invalid Sentry Dsn: ".concat(e," missing"))})),!n.match(/^\d+$/))throw new Yg("Invalid Sentry Dsn: Invalid projectId ".concat(n));if(!function(t){return"http"===t||"https"===t}(r))throw new Yg("Invalid Sentry Dsn: Invalid protocol ".concat(r));if(e&&isNaN(parseInt(e,10)))throw new Yg("Invalid Sentry Dsn: Invalid port ".concat(e))}}(e),e}var Kg,$g="Sentry Logger ",Qg=["debug","info","warn","error","log","assert","trace"];function Jg(t){if(!("console"in jg))return t();var e=jg.console,n={};Qg.forEach((function(t){var r=e[t]&&e[t].__sentry_original__;t in e&&r&&(n[t]=e[t],e[t]=r)}));try{return t()}finally{Object.keys(n).forEach((function(t){e[t]=n[t]}))}}function tm(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Qg.forEach((function(n){e[n]=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];t&&Jg((function(){var t;(t=jg.console)[n].apply(t,["".concat($g,"[").concat(n,"]:")].concat(r))}))}})):Qg.forEach((function(t){e[t]=function(){}})),e}function em(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof t||0===e||t.length<=e?t:"".concat(t.slice(0,e),"...")}function nm(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var i=t[r];try{n.push(String(i))}catch(a){n.push("[value cannot be serialized]")}}return n.join(e)}function rm(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!Og(t)&&(Lg(e)?e.test(t):!!Og(e)&&(n?t===e:t.includes(e)))}function im(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.some((function(e){return rm(t,e,n)}))}function am(t,e,n){if(e in t){var r=t[e],i=n(r);if("function"==typeof i)try{sm(i,r)}catch(a){}t[e]=i}}function om(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function sm(t,e){var n=e.prototype||{};t.prototype=e.prototype=n,om(t,"__sentry_original__",e)}function um(t){return t.__sentry_original__}function lm(t){if(Cg(t))return _i({message:t.message,name:t.name,stack:t.stack},fm(t));if(Dg(t)){var e=_i({type:t.type,target:cm(t.target),currentTarget:cm(t.currentTarget)},fm(t));return"undefined"!=typeof CustomEvent&&Fg(t,CustomEvent)&&(e.detail=t.detail),e}return t}function cm(t){try{return e=t,"undefined"!=typeof Element&&Fg(e,Element)?Ug(t):Object.prototype.toString.call(t)}catch(n){return"<unknown>"}var e}function fm(t){if("object"===Fi(t)&&null!==t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function dm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=Object.keys(lm(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return em(n[0],e);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:em(i,e)}return""}function hm(t){return pm(t,new Map)}function pm(t,e){if(Rg(t)){var n=e.get(t);if(void 0!==n)return n;var r={};e.set(t,r);for(var i=0,a=Object.keys(t);i<a.length;i++){var o=a[i];void 0!==t[o]&&(r[o]=pm(t[o],e))}return r}if(Array.isArray(t)){var s=e.get(t);if(void 0!==s)return s;var u=[];return e.set(t,u),t.forEach((function(t){u.push(pm(t,e))})),u}return t}Kg="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Vg("logger",tm):tm();function vm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.sort((function(t,e){return t[0]-e[0]})).map((function(t){return t[1]}));return function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],a=zi(t.split("\n").slice(n));try{for(a.s();!(e=a.n()).done;){var o=e.value;if(!(o.length>1024)){var s,u=o.replace(/\(error: (.*)\)/,"$1"),l=zi(r);try{for(l.s();!(s=l.n()).done;){var c=s.value,f=c(u);if(f){i.push(f);break}}}catch(d){l.e(d)}finally{l.f()}}}}catch(d){a.e(d)}finally{a.f()}return mm(i)}}function gm(t){return Array.isArray(t)?vm.apply(void 0,mi(t)):t}function mm(t){if(!t.length)return[];var e=t,n=e[0].function||"",r=e[e.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return _i(_i({},t),{},{filename:t.filename||e[0].filename,function:t.function||"?"})})).reverse()}var ym="<anonymous>";function bm(t){try{return t&&"function"==typeof t&&t.name||ym}catch(e){return ym}}var _m=Bg();function xm(){if(!("fetch"in _m))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function wm(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}var km,Sm=Bg(),Em={},Cm={};function Am(t){if(!Cm[t])switch(Cm[t]=!0,t){case"console":!function(){if(!("console"in Sm))return;Qg.forEach((function(t){t in Sm.console&&am(Sm.console,t,(function(e){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];Mm("console",{args:r,level:t}),e&&e.apply(Sm.console,r)}}))}))}();break;case"dom":!function(){if(!("document"in Sm))return;var t=Mm.bind(null,"dom"),e=Nm(t,!0);Sm.document.addEventListener("click",e,!1),Sm.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((function(e){var n=Sm[e]&&Sm[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(am(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{var a=this,o=a.__sentry_instrumentation_handlers__=a.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){var u=Nm(t);s.handler=u,e.call(this,n,u,i)}s.refCount++}catch(l){}return e.call(this,n,r,i)}})),am(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{var i=this,a=i.__sentry_instrumentation_handlers__||{},o=a[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete a[e]),0===Object.keys(a).length&&delete i.__sentry_instrumentation_handlers__)}catch(s){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Sm))return;var t=XMLHttpRequest.prototype;am(t,"open",(function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=this,a=n[1],o=i.__sentry_xhr__={method:Og(n[0])?n[0].toUpperCase():n[0],url:n[1]};Og(a)&&"POST"===o.method&&a.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var s=function(){if(4===i.readyState){try{o.status_code=i.status}catch(t){}Mm("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?am(i,"onreadystatechange",(function(t){return function(){s();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(i,n)}})):i.addEventListener("readystatechange",s),t.apply(i,n)}})),am(t,"send",(function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.__sentry_xhr__&&void 0!==n[0]&&(this.__sentry_xhr__.body=n[0]),Mm("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}}))}();break;case"fetch":!function(){if(!function(){if(!xm())return!1;if(wm(_m.fetch))return!0;var t=!1,e=_m.document;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=wm(n.contentWindow.fetch)),e.head.removeChild(n)}catch(r){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}())return;am(Sm,"fetch",(function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i={args:n,fetchData:{method:Om(n),url:Pm(n)},startTimestamp:Date.now()};return Mm("fetch",_i({},i)),t.apply(Sm,n).then((function(t){return Mm("fetch",_i(_i({},i),{},{endTimestamp:Date.now(),response:t})),t}),(function(t){throw Mm("fetch",_i(_i({},i),{},{endTimestamp:Date.now(),error:t})),t}))}}))}();break;case"history":!function(){if(!function(){var t=_m.chrome,e=t&&t.app&&t.app.runtime,n="history"in _m&&!!_m.history.pushState&&!!_m.history.replaceState;return!e&&n}())return;var t=Sm.onpopstate;function e(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.length>2?n[2]:void 0;if(i){var a=km,o=String(i);km=o,Mm("history",{from:a,to:o})}return t.apply(this,n)}}Sm.onpopstate=function(){var e=Sm.location.href,n=km;if(km=e,Mm("history",{from:n,to:e}),t)try{for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t.apply(this,i)}catch(o){}},am(Sm.history,"pushState",e),am(Sm.history,"replaceState",e)}();break;case"error":Fm=Sm.onerror,Sm.onerror=function(t,e,n,r,i){return Mm("error",{column:r,error:i,line:n,msg:t,url:e}),!!Fm&&Fm.apply(this,arguments)};break;case"unhandledrejection":jm=Sm.onunhandledrejection,Sm.onunhandledrejection=function(t){return Mm("unhandledrejection",t),!jm||jm.apply(this,arguments)};break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("unknown instrumentation type:",t))}}function Tm(t,e){Em[t]=Em[t]||[],Em[t].push(e),Am(t)}function Mm(t,e){if(t&&Em[t]){var n,r=zi(Em[t]||[]);try{for(r.s();!(n=r.n()).done;){var i=n.value;try{i(e)}catch(a){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("Error while triggering instrumentation handler.\nType: ".concat(t,"\nName: ").concat(bm(i),"\nError:"),a)}}}catch(o){r.e(o)}finally{r.f()}}}function Om(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"Request"in Sm&&Fg(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function Pm(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"string"==typeof t[0]?t[0]:"Request"in Sm&&Fg(t[0],Request)?t[0].url:String(t[0])}var Rm,Dm;function Lm(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1}function Im(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(n){}return!0}function Nm(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){if(n&&Dm!==n&&!Im(n)){var r="keypress"===n.type?"input":n.type;(void 0===Rm||Lm(Dm,n))&&(t({event:n,name:r,global:e}),Dm=n),clearTimeout(Rm),Rm=Sm.setTimeout((function(){Rm=void 0}),1e3)}}}var Fm=null;var zm,jm=null;function Bm(){var t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(var r=0;r<e.length;r++){if(e[r]===n)return!0}return e.push(n),!1},function(n){if(t)e.delete(n);else for(var r=0;r<e.length;r++)if(e[r]===n){e.splice(r,1);break}}]}function Vm(){var t=jg,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");var n=e&&e.getRandomValues?function(){return e.getRandomValues(new Uint8Array(1))[0]}:function(){return 16*Math.random()};return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(function(t){return(t^(15&n())>>t/4).toString(16)}))}function Hm(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Um(t){var e=t.message,n=t.event_id;if(e)return e;var r=Hm(t);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function Wm(t,e,n){var r=t.exception=t.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=e||""),a.type||(a.type=n||"Error")}function Ym(t,e){var n=Hm(t);if(n){var r=n.mechanism;if(n.mechanism=_i(_i(_i({},{type:"generic",handled:!0}),r),e),e&&"data"in e){var i=_i(_i({},r&&r.data),e.data);n.mechanism.data=i}}}function Gm(t){if(t&&t.__sentry_captured__)return!0;try{om(t,"__sentry_captured__",!0)}catch(e){}return!1}function qm(t){return Array.isArray(t)?t:[t]}function Zm(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Xm(t,e){return t.require(e)}function Km(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return Qm("",t,e,n)}catch(r){return{ERROR:"**non-serializable** (".concat(r,")")}}}function $m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,r=Km(t,e);return ty(r)>n?$m(t,e-1,n):r}function Qm(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Bm(),a=wi(i,2),o=a[0],s=a[1];if(null===e||["number","boolean","string"].includes(Fi(e))&&!Ng(e))return e;var u=Jm(t,e);if(!u.startsWith("[object "))return u;if(e.__sentry_skip_normalization__)return e;if(0===n)return u.replace("object ","");if(o(e))return"[Circular ~]";var l=e;if(l&&"function"==typeof l.toJSON)try{var c=l.toJSON();return Qm("",c,n-1,r,i)}catch(g){}var f=Array.isArray(e)?[]:{},d=0,h=lm(e);for(var p in h)if(Object.prototype.hasOwnProperty.call(h,p)){if(d>=r){f[p]="[MaxProperties ~]";break}var v=h[p];f[p]=Qm(p,v,n-1,r,i),d++}return s(e),f}function Jm(t,e){try{return"domain"===t&&e&&"object"===Fi(e)&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Rg(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: ".concat(bm(e),"]"):"symbol"===Fi(e)?"[".concat(String(e),"]"):"bigint"==typeof e?"[BigInt: ".concat(String(e),"]"):"[object ".concat(Object.getPrototypeOf(e).constructor.name,"]")}catch(r){return"**non-serializable** (".concat(r,")")}var n}function ty(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function ey(t){return new ry((function(e){e(t)}))}function ny(t){return new ry((function(e,n){n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(zm||(zm={}));var ry=function(){function t(e){Ai(this,t),t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),t.prototype.__init5.call(this),t.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return Ci(t,[{key:"__init",value:function(){this._state=zm.PENDING}},{key:"__init2",value:function(){this._handlers=[]}},{key:"then",value:function(e,n){var r=this;return new t((function(t,i){r._handlers.push([!1,function(n){if(e)try{t(e(n))}catch(r){i(r)}else t(n)},function(e){if(n)try{t(n(e))}catch(r){i(r)}else i(e)}]),r._executeHandlers()}))}},{key:"catch",value:function(t){return this.then((function(t){return t}),t)}},{key:"finally",value:function(e){var n=this;return new t((function(t,r){var i,a;return n.then((function(t){a=!1,i=t,e&&e()}),(function(t){a=!0,i=t,e&&e()})).then((function(){a?r(i):t(i)}))}))}},{key:"__init3",value:function(){var t=this;this._resolve=function(e){t._setResult(zm.RESOLVED,e)}}},{key:"__init4",value:function(){var t=this;this._reject=function(e){t._setResult(zm.REJECTED,e)}}},{key:"__init5",value:function(){var t=this;this._setResult=function(e,n){t._state===zm.PENDING&&(Ig(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))}}},{key:"__init6",value:function(){var t=this;this._executeHandlers=function(){if(t._state!==zm.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(t._state===zm.RESOLVED&&e[1](t._value),t._state===zm.REJECTED&&e[2](t._value),e[0]=!0)}))}}}}]),t}();function iy(t){var e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return ny(new Yg("Not adding Promise because buffer limit was reached."));var i=r();return-1===e.indexOf(i)&&e.push(i),i.then((function(){return n(i)})).then(null,(function(){return n(i).then(null,(function(){}))})),i},drain:function(t){return new ry((function(n,r){var i=e.length;if(!i)return n(!0);var a=setTimeout((function(){t&&t>0&&n(!1)}),t);e.forEach((function(t){ey(t).then((function(){--i||(clearTimeout(a),n(!0))}),r)}))}))}}}function ay(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}var oy=["fatal","error","warning","log","info","debug"];var sy=Bg(),uy={nowSeconds:function(){return Date.now()/1e3}};var ly=Zm()?function(){try{return Xm(gi,"perf_hooks").performance}catch(y1){return}}():function(){var t=sy.performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),cy=void 0===ly?uy:{nowSeconds:function(){return(ly.timeOrigin+ly.now())/1e3}},fy=uy.nowSeconds.bind(uy),dy=cy.nowSeconds.bind(cy),hy=dy,py=function(){var t=sy.performance;if(t&&t.now){var e=36e5,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,a=i<e,o=t.timing&&t.timing.navigationStart,s="number"==typeof o?Math.abs(o+n-r):e;return a||s<e?i<=s?t.timeOrigin:o:r}}(),vy=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function gy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[t,e]}function my(t,e){var n=wi(t,2),r=n[0],i=n[1];return[r,[].concat(mi(i),[e])]}function yy(t,e){t[1].forEach((function(t){var n=t[0].type;e(t,n)}))}function by(t,e){return(e||new TextEncoder).encode(t)}function _y(t,e){var n=wi(t,2),r=n[0],i=n[1],a=JSON.stringify(r);function o(t){"string"==typeof a?a="string"==typeof t?a+t:[by(a,e),t]:a.push("string"==typeof t?by(t,e):t)}var s,u=zi(i);try{for(u.s();!(s=u.n()).done;){var l=wi(s.value,2),c=l[0],f=l[1];if(o("\n".concat(JSON.stringify(c),"\n")),"string"==typeof f||f instanceof Uint8Array)o(f);else{var d=void 0;try{d=JSON.stringify(f)}catch(h){d=JSON.stringify(Km(f))}o(d)}}}catch(p){u.e(p)}finally{u.f()}return"string"==typeof a?a:function(t){var e,n=t.reduce((function(t,e){return t+e.length}),0),r=new Uint8Array(n),i=0,a=zi(t);try{for(a.s();!(e=a.n()).done;){var o=e.value;r.set(o,i),i+=o.length}}catch(p){a.e(p)}finally{a.f()}return r}(a)}function xy(t,e){var n="string"==typeof t.data?by(t.data,e):t.data;return[hm({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}var wy={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 ky(t){return wy[t]}function Sy(t){if(t&&t.sdk){var e=t.sdk;return{name:e.name,version:e.version}}}function Ey(t,e,n,r){var i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return _i(_i(_i({event_id:t.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!n&&{dsn:qg(r)}),"transaction"===t.type&&i&&{trace:hm(_i({},i))})}function Cy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=parseInt("".concat(t),10);if(!isNaN(n))return 1e3*n;var r=Date.parse("".concat(t));return isNaN(r)?6e4:r-e}function Ay(t,e){return t[e]||t.all||0}function Ty(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return Ay(t,e)>n}function My(t,e){var n=e.statusCode,r=e.headers,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),a=_i({},t),o=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(o){var u,l=zi(o.trim().split(","));try{for(l.s();!(u=l.n()).done;){var c=u.value,f=c.split(":",2),d=wi(f,2),h=d[0],p=d[1],v=parseInt(h,10),g=1e3*(isNaN(v)?60:v);if(p){var m,y=zi(p.split(";"));try{for(y.s();!(m=y.n()).done;){var b=m.value;a[b]=i+g}}catch(_){y.e(_)}finally{y.f()}}else a.all=i+g}}catch(_){l.e(_)}finally{l.f()}}else s?a.all=i+Cy(s,i):429===n&&(a.all=i+6e4);return a}var Oy="baggage",Py="sentry-",Ry=/^sentry-/;function Dy(t){return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce((function(t,e,n){var r=wi(e,2),i=r[0],a=r[1],o="".concat(encodeURIComponent(i),"=").concat(encodeURIComponent(a)),s=0===n?o:"".concat(t,",").concat(o);return s.length>8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Not adding key: ".concat(i," with val: ").concat(a," to baggage header due to exceeding baggage size limits.")),t):s}),"")}(Object.entries(t).reduce((function(t,e){var n=wi(e,2),r=n[0],i=n[1];return i&&(t["".concat(Py).concat(r)]=i),t}),{}))}function Ly(t){return t.split(",").map((function(t){return t.split("=").map((function(t){return decodeURIComponent(t.trim())}))})).reduce((function(t,e){var n=wi(e,2),r=n[0],i=n[1];return t[r]=i,t}),{})}function Iy(t){var e=dy(),n={sid:Vm(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return function(t){return hm({sid:"".concat(t.sid),init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?"".concat(t.did):void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)}};return t&&Ny(n,t),n}function Ny(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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||dy(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Vm()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did="".concat(e.did)),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{var 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),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}var Fy=function(){function t(){Ai(this,t),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return Ci(t,[{key:"addScopeListener",value:function(t){this._scopeListeners.push(t)}},{key:"addEventProcessor",value:function(t){return this._eventProcessors.push(t),this}},{key:"setUser",value:function(t){return this._user=t||{},this._session&&Ny(this._session,{user:t}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"getRequestSession",value:function(){return this._requestSession}},{key:"setRequestSession",value:function(t){return this._requestSession=t,this}},{key:"setTags",value:function(t){return this._tags=_i(_i({},this._tags),t),this._notifyScopeListeners(),this}},{key:"setTag",value:function(t,e){return this._tags=_i(_i({},this._tags),{},xi({},t,e)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(t){return this._extra=_i(_i({},this._extra),t),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(t,e){return this._extra=_i(_i({},this._extra),{},xi({},t,e)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(t){return this._fingerprint=t,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(t){return this._level=t,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(t){return this._transactionName=t,this._notifyScopeListeners(),this}},{key:"setContext",value:function(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}},{key:"setSpan",value:function(t){return this._span=t,this._notifyScopeListeners(),this}},{key:"getSpan",value:function(){return this._span}},{key:"getTransaction",value:function(){var t=this.getSpan();return t&&t.transaction}},{key:"setSession",value:function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=_i(_i({},this._tags),e._tags),this._extra=_i(_i({},this._extra),e._extra),this._contexts=_i(_i({},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)):Rg(e)&&(this._tags=_i(_i({},this._tags),e.tags),this._extra=_i(_i({},this._extra),e.extra),this._contexts=_i(_i({},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}},{key:"clear",value:function(){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}},{key:"addBreadcrumb",value:function(t,e){var n="number"==typeof e?e:100;if(n<=0)return this;var r=_i({timestamp:fy()},t);return this._breadcrumbs=[].concat(mi(this._breadcrumbs),[r]).slice(-n),this._notifyScopeListeners(),this}},{key:"getLastBreadcrumb",value:function(){return this._breadcrumbs[this._breadcrumbs.length-1]}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(t){return this._attachments.push(t),this}},{key:"getAttachments",value:function(){return this._attachments}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"applyToEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._extra&&Object.keys(this._extra).length&&(t.extra=_i(_i({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=_i(_i({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=_i(_i({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=_i(_i({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=_i({trace:this._span.getTraceContext()},t.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags=_i({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=[].concat(mi(t.breadcrumbs||[]),mi(this._breadcrumbs)),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=_i(_i({},t.sdkProcessingMetadata),this._sdkProcessingMetadata),this._notifyEventProcessors([].concat(mi(zy()),mi(this._eventProcessors)),t,e)}},{key:"setSDKProcessingMetadata",value:function(t){return this._sdkProcessingMetadata=_i(_i({},this._sdkProcessingMetadata),t),this}},{key:"_notifyEventProcessors",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new ry((function(a,o){var s=t[i];if(null===e||"function"!=typeof s)a(e);else{var u=s(_i({},e),n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.id&&null===u&&Kg.log('Event processor "'.concat(s.id,'" dropped event')),Ig(u)?u.then((function(e){return r._notifyEventProcessors(t,e,n,i+1).then(a)})).then(null,o):r._notifyEventProcessors(t,u,n,i+1).then(a).then(null,o)}}))}},{key:"_notifyScopeListeners",value:function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)}},{key:"_applyFingerprint",value:function(t){t.fingerprint=t.fingerprint?qm(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}],[{key:"clone",value:function(e){var n=new t;return e&&(n._breadcrumbs=mi(e._breadcrumbs),n._tags=_i({},e._tags),n._extra=_i({},e._extra),n._contexts=_i({},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=mi(e._eventProcessors),n._requestSession=e._requestSession,n._attachments=mi(e._attachments),n._sdkProcessingMetadata=_i({},e._sdkProcessingMetadata)),n}}]),t}();function zy(){return Vg("globalEventProcessors",(function(){return[]}))}function jy(t){zy().push(t)}var By=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Fy,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;Ai(this,t),this._version=r,t.prototype.__init.call(this),this.getStackTop().scope=n,e&&this.bindClient(e)}return Ci(t,[{key:"__init",value:function(){this._stack=[{}]}},{key:"isOlderThan",value:function(t){return this._version<t}},{key:"bindClient",value:function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}},{key:"pushScope",value:function(){var t=Fy.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}},{key:"popScope",value:function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}},{key:"withScope",value:function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getStack",value:function(){return this._stack}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"captureException",value:function(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:Vm(),r=new Error("Sentry syntheticException");return this._withClient((function(i,a){i.captureException(t,_i(_i({originalException:t,syntheticException:r},e),{},{event_id:n}),a)})),n}},{key:"captureMessage",value:function(t,e,n){var r=this._lastEventId=n&&n.event_id?n.event_id:Vm(),i=new Error(t);return this._withClient((function(a,o){a.captureMessage(t,e,_i(_i({originalException:t,syntheticException:i},n),{},{event_id:r}),o)})),r}},{key:"captureEvent",value:function(t,e){var n=e&&e.event_id?e.event_id:Vm();return t.type||(this._lastEventId=n),this._withClient((function(r,i){r.captureEvent(t,_i(_i({},e),{},{event_id:n}),i)})),n}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addBreadcrumb",value:function(t,e){var n=this.getStackTop(),r=n.scope,i=n.client;if(r&&i){var a=i.getOptions&&i.getOptions()||{},o=a.beforeBreadcrumb,s=void 0===o?null:o,u=a.maxBreadcrumbs,l=void 0===u?100:u;if(!(l<=0)){var c=_i({timestamp:fy()},t),f=s?Jg((function(){return s(c,e)})):c;null!==f&&r.addBreadcrumb(f,l)}}}},{key:"setUser",value:function(t){var e=this.getScope();e&&e.setUser(t)}},{key:"setTags",value:function(t){var e=this.getScope();e&&e.setTags(t)}},{key:"setExtras",value:function(t){var e=this.getScope();e&&e.setExtras(t)}},{key:"setTag",value:function(t,e){var n=this.getScope();n&&n.setTag(t,e)}},{key:"setExtra",value:function(t,e){var n=this.getScope();n&&n.setExtra(t,e)}},{key:"setContext",value:function(t,e){var n=this.getScope();n&&n.setContext(t,e)}},{key:"configureScope",value:function(t){var e=this.getStackTop(),n=e.scope,r=e.client;n&&r&&t(n)}},{key:"run",value:function(t){var e=Hy(this);try{t(this)}finally{Hy(e)}}},{key:"getIntegration",value:function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Cannot retrieve integration ".concat(t.id," from the current Hub")),null}}},{key:"startTransaction",value:function(t,e){return this._callExtensionMethod("startTransaction",t,e)}},{key:"traceHeaders",value:function(){return this._callExtensionMethod("traceHeaders")}},{key:"captureSession",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t)return this.endSession();this._sendSessionUpdate()}},{key:"endSession",value:function(){var t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&function(t,e){var n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),Ny(t,n)}(n),this._sendSessionUpdate(),e&&e.setSession()}},{key:"startSession",value:function(t){var e=this.getStackTop(),n=e.scope,r=e.client,i=r&&r.getOptions()||{},a=i.release,o=i.environment,s=(jg.navigator||{}).userAgent,u=Iy(_i(_i(_i({release:a,environment:o},n&&{user:n.getUser()}),s&&{userAgent:s}),t));if(n){var l=n.getSession&&n.getSession();l&&"ok"===l.status&&Ny(l,{status:"exited"}),this.endSession(),n.setSession(u)}return u}},{key:"shouldSendDefaultPii",value:function(){var t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}},{key:"_sendSessionUpdate",value:function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}}},{key:"_withClient",value:function(t){var e=this.getStackTop(),n=e.scope,r=e.client;r&&t(r,n)}},{key:"_callExtensionMethod",value:function(t){var e=Vy(),n=e.__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t]){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.extensions[t].apply(this,i)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Extension method ".concat(t," couldn't be found, doing nothing."))}}]),t}();function Vy(){return jg.__SENTRY__=jg.__SENTRY__||{extensions:{},hub:void 0},jg}function Hy(t){var e=Vy(),n=Yy(e);return Gy(e,t),n}function Uy(){var t=Vy();return Wy(t)&&!Yy(t).isOlderThan(4)||Gy(t,new By),Zm()?function(t){try{var e=Vy().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return Yy(t);if(!Wy(n)||Yy(n).isOlderThan(4)){var r=Yy(t).getStackTop();Gy(n,new By(r.client,Fy.clone(r.scope)))}return Yy(n)}catch(i){return Yy(t)}}(t):Yy(t)}function Wy(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Yy(t){return Vg("hub",(function(){return new By}),t)}function Gy(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}function qy(t,e){return Uy().captureException(t,{captureContext:e})}function Zy(t,e){Uy().setContext(t,e)}function Xy(t){Uy().withScope(t)}function Ky(t){return"".concat(function(t){var e=t.protocol?"".concat(t.protocol,":"):"",n=t.port?":".concat(t.port):"";return"".concat(e,"//").concat(t.host).concat(n).concat(t.path?"/".concat(t.path):"","/api/")}(t)).concat(t.projectId,"/envelope/")}function $y(t,e){return n=_i({sentry_key:t.publicKey,sentry_version:"7"},e&&{sentry_client:"".concat(e.name,"/").concat(e.version)}),Object.keys(n).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n[t]))})).join("&");var n}function Qy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||"".concat(Ky(t),"?").concat($y(t,r))}function Jy(t,e,n,r){var i=Sy(n),a=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[].concat(mi(t.sdk.integrations||[]),mi(e.integrations||[])),t.sdk.packages=[].concat(mi(t.sdk.packages||[]),mi(e.packages||[])))}(t,n&&n.sdk);var o=Ey(t,i,r,e);return delete t.sdkProcessingMetadata,gy(o,[[{type:a},t]])}var tb=[];function eb(t){var e=t.defaultIntegrations||[],n=t.integrations;e.forEach((function(t){t.isDefaultInstance=!0}));var r=function(t){var e={};return t.forEach((function(t){var n=t.name,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(Array.isArray(n)?[].concat(mi(e),mi(n)):"function"==typeof n?qm(n(e)):e),i=r.findIndex((function(t){return"Debug"===t.name}));if(-1!==i){var a=wi(r.splice(i,1),1)[0];r.push(a)}return r}function nb(t,e){e[t.name]=t,-1===tb.indexOf(t.name)&&(t.setupOnce(jy,Uy),tb.push(t.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("Integration installed: ".concat(t.name)))}function rb(t,e,n,r){var i=t.normalizeDepth,a=void 0===i?3:i,o=t.normalizeMaxBreadth,s=void 0===o?1e3:o,u=_i(_i({},e),{},{event_id:e.event_id||n.event_id||Vm(),timestamp:e.timestamp||fy()});!function(t,e){var n=e.environment,r=e.release,i=e.dist,a=e.maxValueLength,o=void 0===a?250:a;"environment"in t||(t.environment="environment"in e?n:"production");void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=em(t.message,o));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=em(s.value,o));var u=t.request;u&&u.url&&(u.url=em(u.url,o))}(u,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[].concat(mi(t.sdk.integrations||[]),mi(e)))}(u,t.integrations.map((function(t){return t.name})));var l=r;n.captureContext&&(l=Fy.clone(l).update(n.captureContext));var c=ey(u);if(l){if(l.getAttachments){var f=[].concat(mi(n.attachments||[]),mi(l.getAttachments()));f.length&&(n.attachments=f)}c=l.applyToEvent(u,n)}return c.then((function(t){return"number"==typeof a&&a>0?function(t,e,n){if(!t)return null;var r=_i(_i(_i(_i(_i({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return _i(_i({},t),t.data&&{data:Km(t.data,e,n)})}))}),t.user&&{user:Km(t.user,e,n)}),t.contexts&&{contexts:Km(t.contexts,e,n)}),t.extra&&{extra:Km(t.extra,e,n)});t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Km(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map((function(t){return t.data&&(t.data=Km(t.data,e,n)),t})));return r}(t,a,s):t}))}var ib="Not capturing exception because it's already been captured.",ab=function(){function t(e){if(Ai(this,t),t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=Xg(e.dsn);var n=Qy(this._dsn,e);this._transport=e.transport(_i(_i({recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{},{url:n}))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("No DSN provided, client will not do anything.")}return Ci(t,[{key:"__init",value:function(){this._integrations={}}},{key:"__init2",value:function(){this._integrationsInitialized=!1}},{key:"__init3",value:function(){this._numProcessing=0}},{key:"__init4",value:function(){this._outcomes={}}},{key:"captureException",value:function(t,e,n){var r=this;if(!Gm(t)){var i=e&&e.event_id;return this._process(this.eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){i=t}))),i}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log(ib)}},{key:"captureMessage",value:function(t,e,n,r){var i=this,a=n&&n.event_id,o=Pg(t)?this.eventFromMessage(String(t),e,n):this.eventFromException(t,n);return this._process(o.then((function(t){return i._captureEvent(t,n,r)})).then((function(t){a=t}))),a}},{key:"captureEvent",value:function(t,e,n){if(!(e&&e.originalException&&Gm(e.originalException))){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){r=t}))),r}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log(ib)}},{key:"captureSession",value:function(t){this._isEnabled()?"string"!=typeof t.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Ny(t,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("SDK not enabled, will not capture session.")}},{key:"getDsn",value:function(){return this._dsn}},{key:"getOptions",value:function(){return this._options}},{key:"getSdkMetadata",value:function(){return this._options._metadata}},{key:"getTransport",value:function(){return this._transport}},{key:"flush",value:function(t){var e=this._transport;return e?this._isClientDoneProcessing(t).then((function(n){return e.flush(t).then((function(t){return n&&t}))})):ey(!0)}},{key:"close",value:function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))}},{key:"setupIntegrations",value:function(){var t,e;this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=(t=this._options.integrations,e={},t.forEach((function(t){nb(t,e)})),e),this._integrationsInitialized=!0)}},{key:"getIntegrationById",value:function(t){return this._integrations[t]}},{key:"getIntegration",value:function(t){try{return this._integrations[t.id]||null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Cannot retrieve integration ".concat(t.id," from the current Client")),null}}},{key:"addIntegration",value:function(t){nb(t,this._integrations)}},{key:"sendEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._dsn){var n,r=Jy(t,this._dsn,this._options._metadata,this._options.tunnel),i=zi(e.attachments||[]);try{for(i.s();!(n=i.n()).done;){var a=n.value;r=my(r,xy(a,this._options.transportOptions&&this._options.transportOptions.textEncoder))}}catch(o){i.e(o)}finally{i.f()}this._sendEnvelope(r)}}},{key:"sendSession",value:function(t){if(this._dsn){var e=function(t,e,n,r){var i=Sy(n);return gy(_i(_i({sent_at:(new Date).toISOString()},i&&{sdk:i}),!!r&&{dsn:qg(e)}),["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}}},{key:"recordDroppedEvent",value:function(t,e,n){if(this._options.sendClientReports){var r="".concat(t,":").concat(e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log('Adding outcome: "'.concat(r,'"')),this._outcomes[r]=this._outcomes[r]+1||1}}},{key:"_updateSessionFromEvent",value:function(t,e){var n=!1,r=!1,i=e.exception&&e.exception.values;if(i){r=!0;var a,o=zi(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.mechanism;if(s&&!1===s.handled){n=!0;break}}}catch(l){o.e(l)}finally{o.f()}}var u="ok"===t.status;(u&&0===t.errors||u&&n)&&(Ny(t,_i(_i({},n&&{status:"crashed"}),{},{errors:t.errors||Number(r||n)})),this.captureSession(t))}},{key:"_isClientDoneProcessing",value:function(t){var e=this;return new ry((function(n){var r=0,i=setInterval((function(){0==e._numProcessing?(clearInterval(i),n(!0)):(r+=1,t&&r>=t&&(clearInterval(i),n(!1)))}),1)}))}},{key:"_isEnabled",value:function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}},{key:"_prepareEvent",value:function(t,e,n){return rb(this.getOptions(),t,e,n)}},{key:"_captureEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var e=t;"log"===e.logLevel?Kg.log(e.message):Kg.warn(e)}}))}},{key:"_processEvent",value:function(t,e,n){var r=this,i=this.getOptions(),a=i.sampleRate;if(!this._isEnabled())return ny(new Yg("SDK not enabled, will not capture event.","log"));var o=sb(t),s=ob(t),u=t.type||"error",l="before send for type `".concat(u,"`");if(s&&"number"==typeof a&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),ny(new Yg("Discarding event because it's not included in the random sample (sampling rate = ".concat(a,")"),"log"));var c="replay_event"===u?"replay":u;return this._prepareEvent(t,e,n).then((function(n){if(null===n)throw r.recordDroppedEvent("event_processor",c,t),new Yg("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;var a=function(t,e,n){var r=t.beforeSend,i=t.beforeSendTransaction;if(ob(e)&&r)return r(e,n);if(sb(e)&&i)return i(e,n);return e}(i,n,e);return function(t,e){var n="".concat(e," must return `null` or a valid event.");if(Ig(t))return t.then((function(t){if(!Rg(t)&&null!==t)throw new Yg(n);return t}),(function(t){throw new Yg("".concat(e," rejected with ").concat(t))}));if(!Rg(t)&&null!==t)throw new Yg(n);return t}(a,l)})).then((function(i){if(null===i)throw r.recordDroppedEvent("before_send",c,t),new Yg("".concat(l," returned `null`, will not send event."),"log");var a=n&&n.getSession();!o&&a&&r._updateSessionFromEvent(a,i);var s=i.transaction_info;if(o&&s&&i.transaction!==t.transaction){var u="custom";i.transaction_info=_i(_i({},s),{},{source:u,changes:[].concat(mi(s.changes),[{source:u,timestamp:i.timestamp,propagations:s.propagations}])})}return r.sendEvent(i,e),i})).then(null,(function(t){if(t instanceof Yg)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new Yg("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(t))}))}},{key:"_process",value:function(t){var e=this;this._numProcessing++,t.then((function(t){return e._numProcessing--,t}),(function(t){return e._numProcessing--,t}))}},{key:"_sendEnvelope",value:function(t){this._transport&&this._dsn?this._transport.send(t).then(null,(function(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("Error while sending event:",t)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("Transport disabled")}},{key:"_clearOutcomes",value:function(){var t=this._outcomes;return this._outcomes={},Object.keys(t).map((function(e){var n=wi(e.split(":"),2);return{reason:n[0],category:n[1],quantity:t[e]}}))}}]),t}();function ob(t){return void 0===t.type}function sb(t){return"transaction"===t.type}function ub(t,e){!0===e.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=Uy(),r=n.getScope();r&&r.update(e.initialScope);var i=new t(e);n.bindClient(i)}function lb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:iy(t.bufferSize||30),r={},i=function(t){return n.drain(t)};function a(i){var a=[];if(yy(i,(function(e,n){var i=ky(n);if(Ty(r,i)){var o=cb(e,n);t.recordDroppedEvent("ratelimit_backoff",i,o)}else a.push(e)})),0===a.length)return ey();var o=gy(i[0],a),s=function(e){yy(o,(function(n,r){var i=cb(n,r);t.recordDroppedEvent(e,ky(r),i)}))};return n.add((function(){return e({body:_y(o,t.textEncoder)}).then((function(t){return void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Sentry responded with status code ".concat(t.statusCode," to sent event.")),r=My(r,t),t}),(function(t){throw s("network_error"),t}))})).then((function(t){return t}),(function(t){if(t instanceof Yg)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("Skipped sending event because buffer is full."),s("queue_overflow"),ey();throw t}))}return{send:a,flush:i}}function cb(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}var fb,db="7.33.0",hb=function(){function t(){Ai(this,t),t.prototype.__init.call(this)}return Ci(t,[{key:"__init",value:function(){this.name=t.id}},{key:"setupOnce",value:function(){fb=Function.prototype.toString,Function.prototype.toString=function(){for(var t=um(this)||this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return fb.apply(t,n)}}}],[{key:"__initStatic",value:function(){this.id="FunctionToString"}}]),t}();hb.__initStatic();var pb=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],vb=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ai(this,t),this._options=e,t.prototype.__init.call(this)}return Ci(t,[{key:"__init",value:function(){this.name=t.id}},{key:"setupOnce",value:function(e,n){var r=function(e){var r=n();if(r){var i=r.getIntegration(t);if(i){var a=r.getClient(),o=a?a.getOptions():{},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[].concat(mi(t.allowUrls||[]),mi(e.allowUrls||[])),denyUrls:[].concat(mi(t.denyUrls||[]),mi(e.denyUrls||[])),ignoreErrors:[].concat(mi(t.ignoreErrors||[]),mi(e.ignoreErrors||[]),pb),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(i._options,o);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(e){}return!1}(t))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(Um(t))),!0;if(function(t,e){if(!e||!e.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,i=e.value,a=void 0===i?"":i;return["".concat(a),"".concat(r,": ").concat(a)]}catch(o){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("Cannot extract message for event ".concat(Um(t))),[]}return[]}(t).some((function(t){return im(t,e)}))}(t,e.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(Um(t))),!0;if(function(t,e){if(!e||!e.length)return!1;var n=gb(t);return!!n&&im(n,e)}(t,e.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(Um(t),".\nUrl: ").concat(gb(t))),!0;if(!function(t,e){if(!e||!e.length)return!0;var n=gb(t);return!n||im(n,e)}(t,e.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(Um(t),".\nUrl: ").concat(gb(t))),!0;return!1}(e,s)?null:e}}return e};r.id=this.name,e(r)}}],[{key:"__initStatic",value:function(){this.id="InboundFilters"}}]),t}();function gb(t){try{var e;try{e=t.exception.values[0].stacktrace.frames}catch(n){}return e?function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.length-1;e>=0;e--){var n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(r){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("Cannot extract url for event ".concat(Um(t))),null}}vb.__initStatic();var mb=jg,yb=0;function bb(){return yb>0}function _b(){yb++,setTimeout((function(){yb--}))}function xb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!=typeof t)return t;try{var r=t.__sentry_wrapped__;if(r)return r;if(um(t))return t}catch(s){return t}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(t){return xb(t,e)}));return t.apply(this,i)}catch(a){throw _b(),Xy((function(t){t.addEventProcessor((function(t){return e.mechanism&&(Wm(t,void 0,void 0),Ym(t,e.mechanism)),t.extra=_i(_i({},t.extra),{},{arguments:r}),t})),qy(a)})),a}};try{for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i[a]=t[a])}catch(u){}sm(i,t),om(t,"__sentry_wrapped__",i);try{var o=Object.getOwnPropertyDescriptor(i,"name");o.configurable&&Object.defineProperty(i,"name",{get:function(){return t.name}})}catch(u){}return i}function wb(t,e){var n=Sb(t,e),r={type:e&&e.name,value:Cb(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function kb(t,e){return{exception:{values:[wb(t,e)]}}}function Sb(t,e){var n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Eb.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(i){}return[]}var Eb=/Minified React error #\d+;/i;function Cb(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Ab(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=r&&r.syntheticException||void 0,o=Mb(t,e,a,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),ey(o)}function Tb(t,e,n,r,i){var a;if(Tg(e)&&e.error)return kb(t,e.error);if(Mg(e)||Ag(e,"DOMException")){var o=e;if("stack"in e)a=kb(t,e);else{var s=o.name||(Mg(o)?"DOMError":"DOMException"),u=o.message?"".concat(s,": ").concat(o.message):s;Wm(a=Mb(t,u,n,r),u)}return"code"in o&&(a.tags=_i(_i({},a.tags),{},{"DOMException.code":"".concat(o.code)})),a}return Cg(e)?kb(t,e):Rg(e)||Dg(e)?(a=function(t,e,n,r){var i=Uy().getClient(),a=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:Dg(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error ".concat(r?"promise rejection":"exception"," captured with keys: ").concat(dm(e))}]},extra:{__serialized__:$m(e,a)}};if(n){var s=Sb(t,n);s.length&&(o.exception.values[0].stacktrace={frames:s})}return o}(t,e,n,i),Ym(a,{synthetic:!0}),a):(Wm(a=Mb(t,e,n,r),"".concat(e),void 0),Ym(a,{synthetic:!0}),a)}function Mb(t,e,n,r){var i={message:e};if(r&&n){var a=Sb(t,n);a.length&&(i.exception={values:[{value:e,stacktrace:{frames:a}}]})}return i}var Ob=1024,Pb="Breadcrumbs",Rb=function(){function t(e){Ai(this,t),t.prototype.__init.call(this),this.options=_i({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return Ci(t,[{key:"__init",value:function(){this.name=t.id}},{key:"setupOnce",value:function(){this.options.console&&Tm("console",Db),this.options.dom&&Tm("dom",function(t){function e(e){var n,r="object"===Fi(t)?t.serializeAttribute:void 0,i="object"===Fi(t)&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>Ob&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("`dom.maxStringLength` cannot exceed ".concat(Ob,", but a value of ").concat(i," was configured. Sentry will use ").concat(Ob," instead.")),i=Ob),"string"==typeof r&&(r=[r]);try{n=e.event.target?Ug(e.event.target,{keyAttrs:r,maxStringLength:i}):Ug(e.event,{keyAttrs:r,maxStringLength:i})}catch(a){n="<unknown>"}0!==n.length&&Uy().addBreadcrumb({category:"ui.".concat(e.name),message:n},{event:e.event,name:e.name,global:e.global})}return e}(this.options.dom)),this.options.xhr&&Tm("xhr",Lb),this.options.fetch&&Tm("fetch",Ib),this.options.history&&Tm("history",Nb)}},{key:"addSentryBreadcrumb",value:function(t){this.options.sentry&&Uy().addBreadcrumb({category:"sentry.".concat("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Um(t)},{event:t})}}],[{key:"__initStatic",value:function(){this.id=Pb}}]),t}();function Db(t){for(var e=0;e<t.args.length;e++)if("ref=Ref<"===t.args[e]){t.args[e+1]="viewRef";break}var n,r={category:"console",data:{arguments:t.args,logger:"console"},level:(n=t.level,"warn"===n?"warning":oy.includes(n)?n:"log"),message:nm(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message="Assertion failed: ".concat(nm(t.args.slice(1)," ")||"console.assert"),r.data.arguments=t.args.slice(1)}Uy().addBreadcrumb(r,{input:t.args,level:t.level})}function Lb(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,i=e.status_code,a=e.body;Uy().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:t.xhr,input:a})}else;}function Ib(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?Uy().addBreadcrumb({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args}):Uy().addBreadcrumb({category:"fetch",data:_i(_i({},t.fetchData),{},{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function Nb(t){var e=t.from,n=t.to,r=ay(mb.location.href),i=ay(e),a=ay(n);i.path||(i=r),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),Uy().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}Rb.__initStatic();var Fb=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:db}],version:db},r=e.call(this,t),t.sendClientReports&&mb.document&&mb.document.addEventListener("visibilitychange",(function(){"hidden"===mb.document.visibilityState&&r._flushOutcomes()})),r}return Ci(n,[{key:"eventFromException",value:function(t,e){return function(t,e,n,r){var i=Tb(t,e,n&&n.syntheticException||void 0,r);return Ym(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),ey(i)}(this._options.stackParser,t,e,this._options.attachStacktrace)}},{key:"eventFromMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return Ab(this._options.stackParser,t,e,n,this._options.attachStacktrace)}},{key:"sendEvent",value:function(t,e){var r=this.getIntegrationById(Pb);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(t),vi(Ni(n.prototype),"sendEvent",this).call(this,t,e)}},{key:"_prepareEvent",value:function(t,e,r){return t.platform=t.platform||"javascript",vi(Ni(n.prototype),"_prepareEvent",this).call(this,t,e,r)}},{key:"_flushOutcomes",value:function(){var t=this._clearOutcomes();if(0!==t.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("Sending outcomes:",t);var e,n,r,i=Qy(this._dsn,this._options),a=(e=t,gy((n=this._options.tunnel&&qg(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:r||fy(),discarded_events:e}]]));try{if("[object Navigator]"===Object.prototype.toString.call(mb&&mb.navigator)&&"function"==typeof mb.navigator.sendBeacon&&!this._options.transportOptions)mb.navigator.sendBeacon.bind(mb.navigator)(i,_y(a));else this._sendEnvelope(a)}catch(o){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error(o)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("No outcomes to send")}}]),n}(ab),zb=void 0;function jb(){if(zb)return zb;if(wm(mb.fetch))return zb=mb.fetch.bind(mb);var t=mb.document,e=mb.fetch;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(i){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return zb=e.bind(mb)}function Bb(){zb=void 0}function Vb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jb();function n(n){var r=_i({body:n.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n.body.length<=65536},t.fetchOptions);try{return e(t.url,r).then((function(t){return{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}}))}catch(i){return Bb(),ny(i)}}return lb(t,n)}function Hb(t){return lb(t,(function(e){return new ry((function(n,r){var i=new XMLHttpRequest;for(var a in i.onerror=r,i.onreadystatechange=function(){4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,a)&&i.setRequestHeader(a,t.headers[a]);i.send(e.body)}))}))}var Ub="?";function Wb(t,e,n,r){var i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var Yb=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gb=/\((\S*)(?::(\d+))(?::(\d+))\)/,qb=[30,function(t){var e=Yb.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=Gb.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var r=wi(e_(e[1]||Ub,e[2]),2),i=r[0];return Wb(r[1],i,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],Zb=/^\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,Xb=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Kb=[50,function(t){var e=Zb.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){var n=Xb.exec(e[3]);n&&(e[1]=e[1]||"eval",e[3]=n[1],e[4]=n[2],e[5]="")}var r=e[3],i=e[1]||Ub,a=wi(e_(i,r),2);return i=a[0],Wb(r=a[1],i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],$b=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Qb=[40,function(t){var e=$b.exec(t);return e?Wb(e[2],e[1]||Ub,+e[3],e[4]?+e[4]:void 0):void 0}],Jb=[qb,Kb,Qb],t_=vm.apply(void 0,Jb),e_=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Ub,n?"safari-extension:".concat(e):"safari-web-extension:".concat(e)]:[t,e]},n_=function(){function t(e){Ai(this,t),t.prototype.__init.call(this),t.prototype.__init2.call(this),this._options=_i({onerror:!0,onunhandledrejection:!0},e)}return Ci(t,[{key:"__init",value:function(){this.name=t.id}},{key:"__init2",value:function(){this._installFunc={onerror:r_,onunhandledrejection:i_}}},{key:"setupOnce",value:function(){Error.stackTraceLimit=50;var t,e=this._options;for(var n in e){var r=this._installFunc[n];r&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("Global Handler attached: ".concat(t)),r(),this._installFunc[n]=void 0)}}}],[{key:"__initStatic",value:function(){this.id="GlobalHandlers"}}]),t}();function r_(){Tm("error",(function(t){var e=wi(s_(),3),n=e[0],r=e[1],i=e[2];if(n.getIntegration(n_)){var a=t.msg,o=t.url,s=t.line,u=t.column,l=t.error;if(!(bb()||l&&l.__sentry_own_request__)){var c=void 0===l&&Og(a)?function(t,e,n,r){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=Tg(t)?t.message:t,o="Error",s=a.match(i);s&&(o=s[1],a=s[2]);return a_({exception:{values:[{type:o,value:a}]}},e,n,r)}(a,o,s,u):a_(Tb(r,l||a,void 0,i,!1),o,s,u);c.level="error",o_(n,l,c,"onerror")}}}))}function i_(){Tm("unhandledrejection",(function(t){var e=wi(s_(),3),n=e[0],r=e[1],i=e[2];if(n.getIntegration(n_)){var a=t;try{"reason"in t?a=t.reason:"detail"in t&&"reason"in t.detail&&(a=t.detail.reason)}catch(s){}if(bb()||a&&a.__sentry_own_request__)return!0;var o=Pg(a)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(a))}]}}:Tb(r,a,void 0,i,!0);o.level="error",o_(n,a,o,"onunhandledrejection")}}))}function a_(t,e,n,r){var i=t.exception=t.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},u=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,f=Og(e)&&e.length>0?e:function(){try{return Hg.document.location.href}catch(t){return""}}();return 0===u.length&&u.push({colno:l,filename:f,function:"?",in_app:!0,lineno:c}),t}function o_(t,e,n,r){Ym(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function s_(){var t=Uy(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}n_.__initStatic();var u_=["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"],l_=function(){function t(e){Ai(this,t),t.prototype.__init.call(this),this._options=_i({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return Ci(t,[{key:"__init",value:function(){this.name=t.id}},{key:"setupOnce",value:function(){this._options.setTimeout&&am(mb,"setTimeout",c_),this._options.setInterval&&am(mb,"setInterval",c_),this._options.requestAnimationFrame&&am(mb,"requestAnimationFrame",f_),this._options.XMLHttpRequest&&"XMLHttpRequest"in mb&&am(XMLHttpRequest.prototype,"send",d_);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:u_).forEach(h_)}}],[{key:"__initStatic",value:function(){this.id="TryCatch"}}]),t}();function c_(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0];return n[0]=xb(i,{mechanism:{data:{function:bm(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}function f_(t){return function(e){return t.apply(this,[xb(e,{mechanism:{data:{function:"requestAnimationFrame",handler:bm(t)},handled:!0,type:"instrument"}})])}}function d_(t){return function(){var e=this,n=["onload","onerror","onprogress","onreadystatechange"];n.forEach((function(t){t in e&&"function"==typeof e[t]&&am(e,t,(function(e){var n={mechanism:{data:{function:t,handler:bm(e)},handled:!0,type:"instrument"}},r=um(e);return r&&(n.mechanism.data.handler=bm(r)),xb(e,n)}))}));for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t.apply(this,i)}}function h_(t){var e=mb,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(am(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=xb(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:bm(r),target:t},handled:!0,type:"instrument"}}))}catch(a){}return e.apply(this,[n,xb(r,{mechanism:{data:{function:"addEventListener",handler:bm(r),target:t},handled:!0,type:"instrument"}}),i])}})),am(n,"removeEventListener",(function(t){return function(e,n,r){var i=n;try{var a=i&&i.__sentry_wrapped__;a&&t.call(this,e,a,r)}catch(o){}return t.call(this,e,i,r)}})))}l_.__initStatic();var p_="cause",v_=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ai(this,t),t.prototype.__init.call(this),this._key=e.key||p_,this._limit=e.limit||5}return Ci(t,[{key:"__init",value:function(){this.name=t.id}},{key:"setupOnce",value:function(){var e=Uy().getClient();e&&jy((function(n,r){var i=Uy().getIntegration(t);return i?function(t,e,n,r,i){if(!(r.exception&&r.exception.values&&i&&Fg(i.originalException,Error)))return r;var a=g_(t,n,i.originalException,e);return r.exception.values=[].concat(mi(a),mi(r.exception.values)),r}(e.getOptions().stackParser,i._key,i._limit,n,r):n}))}}],[{key:"__initStatic",value:function(){this.id="LinkedErrors"}}]),t}();function g_(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(!Fg(n[r],Error)||i.length+1>=e)return i;var a=wb(t,n[r]);return g_(t,e,n[r],r,[a].concat(mi(i)))}v_.__initStatic();var m_=function(){function t(){Ai(this,t),t.prototype.__init.call(this)}return Ci(t,[{key:"__init",value:function(){this.name=t.id}},{key:"setupOnce",value:function(){jy((function(e){if(Uy().getIntegration(t)){if(!mb.navigator&&!mb.location&&!mb.document)return e;var n=e.request&&e.request.url||mb.location&&mb.location.href,r=(mb.document||{}).referrer,i=(mb.navigator||{}).userAgent,a=_i(_i(_i({},e.request&&e.request.headers),r&&{Referer:r}),i&&{"User-Agent":i}),o=_i(_i(_i({},e.request),n&&{url:n}),{},{headers:a});return _i(_i({},e),{},{request:o})}return e}))}}],[{key:"__initStatic",value:function(){this.id="HttpContext"}}]),t}();m_.__initStatic();var y_=function(){function t(){Ai(this,t),t.prototype.__init.call(this)}return Ci(t,[{key:"__init",value:function(){this.name=t.id}},{key:"setupOnce",value:function(e,n){var r=function(e){var r=n().getIntegration(t);if(r){try{if(function(t,e){if(!e)return!1;if(function(t,e){var n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!__(t,e))return!1;if(!b_(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){var n=x_(e),r=x_(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!__(t,e))return!1;if(!b_(t,e))return!1;return!0}(t,e))return!0;return!1}(e,r._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(i){return r._previousEvent=e}return r._previousEvent=e}return e};r.id=this.name,e(r)}}],[{key:"__initStatic",value:function(){this.id="Dedupe"}}]),t}();function b_(t,e){var n=w_(t),r=w_(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++){var a=r[i],o=n[i];if(a.filename!==o.filename||a.lineno!==o.lineno||a.colno!==o.colno||a.function!==o.function)return!1}return!0}function __(t,e){var n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function x_(t){return t.exception&&t.exception.values&&t.exception.values[0]}function w_(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}}y_.__initStatic();var k_=[new vb,new hb,new l_,new Rb,new n_,new v_,new y_,new m_];function S_(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function E_(){if(void 0!==mb.document){var t=Uy();t.captureSession&&(S_(t),Tm("history",(function(t){var e=t.from,n=t.to;void 0!==e&&e!==n&&S_(Uy())})))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}var C_,A_=jg,T_="sentryReplaySession",M_="replay_event",O_="Unable to send Replay",P_=3e5,R_=P_,D_=36e5,L_="body *:not(style), body *:not(script)",I_=5e3,N_=function(){return N_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},N_.apply(this,arguments)};function F_(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)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 z_(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function j_(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function B_(t){var e,n=null===(e=t)||void 0===e?void 0:e.host;return Boolean(n&&n.shadowRoot&&n.shadowRoot===t)}function V_(t){var e=t.maskInputOptions,n=t.tagName,r=t.type,i=t.value,a=t.maskInputFn,o=i||"";return(e[n.toLowerCase()]||e[r])&&(o=a?a(o):"*".repeat(o.length)),o}!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"}(C_||(C_={}));var H_="__rrweb_original__";var U_,W_,Y_=1,G_=new RegExp("[^a-z0-9-_:]");function q_(t){try{var e=t.rules||t.cssRules;return e?Array.from(e).map(Z_).join(""):null}catch(n){return null}}function Z_(t){var e=t.cssText;if(function(t){return"styleSheet"in t}(t))try{e=q_(t.styleSheet)||e}catch(P3){}return e}var X_=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,K_=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,$_=/^(data:)([^,]*),(.*)/i;function Q_(t,e){return(t||"").replace(X_,(function(t,n,r,i,a,o){var s,u=r||a||o,l=n||i||"";if(!u)return t;if(!K_.test(u))return"url("+l+u+l+")";if($_.test(u))return"url("+l+u+l+")";if("/"===u[0])return"url("+l+(((s=e).indexOf("//")>-1?s.split("/").slice(0,3).join("/"):s.split("/")[0]).split("?")[0]+u)+l+")";var c=e.split("/"),f=u.split("/");c.pop();for(var d=0,h=f;d<h.length;d++){var p=h[d];"."!==p&&(".."===p?c.pop():c.push(p))}return"url("+l+c.join("/")+l+")"}))}var J_,tx,ex,nx,rx,ix,ax=/^[^ \t\n\r\u000c]+/,ox=/^[, \t\n\r\u000c]+/;function sx(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}function ux(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)}function lx(){var t=document.createElement("a");return t.href="",t.href}function cx(t,e,n,r){return"src"===n||"href"===n&&r||"xlink:href"===n&&r&&"#"!==r[0]?sx(t,r):"background"!==n||!r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n&&r?function(t,e){if(""===e.trim())return e;var n=0;function r(t){var r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r(ox),!(n>=e.length);){var a=r(ax);if(","===a.slice(-1))a=sx(t,a.substring(0,a.length-1)),i.push(a);else{var o="";a=sx(t,a);for(var s=!1;;){var u=e.charAt(n);if(""===u){i.push((a+o).trim());break}if(s)")"===u&&(s=!1);else{if(","===u){n+=1,i.push((a+o).trim());break}"("===u&&(s=!0)}o+=u,n+=1}}}return i.join(", ")}(t,r):"style"===n&&r?Q_(r,lx()):"object"===e&&"data"===n&&r?sx(t,r):r:sx(t,r)}function fx(t,e,n){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){if("string"==typeof e){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))||fx(t.parentNode,e,n)}return t.nodeType,t.TEXT_NODE,fx(t.parentNode,e,n)}function dx(t,e){var n,r,i,a=e.doc,o=e.blockClass,s=e.blockSelector,u=e.maskTextClass,l=e.maskTextSelector,c=e.inlineStylesheet,f=e.maskInputOptions,d=void 0===f?{}:f,h=e.maskTextFn,p=e.maskInputFn,v=e.dataURLOptions,g=void 0===v?{}:v,m=e.inlineImages,y=e.recordCanvas,b=e.keepIframeSrcFn;if(a.__sn){var _=a.__sn.id;r=1===_?void 0:_}switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:C_.Document,childNodes:[],compatMode:t.compatMode,rootId:r}:{type:C_.Document,childNodes:[],rootId:r};case t.DOCUMENT_TYPE_NODE:return{type:C_.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:r};case t.ELEMENT_NODE:for(var x=function(t,e,n){if("string"==typeof e){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)}(t,o,s),w=function(t){if(t instanceof HTMLFormElement)return"form";var e=t.tagName.toLowerCase().trim();return G_.test(e)?"div":e}(t),k={},S=0,E=Array.from(t.attributes);S<E.length;S++){var C=E[S],A=C.name,T=C.value;k[A]=cx(a,w,A,T)}if("link"===w&&c){var M=Array.from(a.styleSheets).find((function(e){return e.href===t.href})),O=null;M&&(O=q_(M)),O&&(delete k.rel,delete k.href,k._cssText=Q_(O,M.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length)(O=q_(t.sheet))&&(k._cssText=Q_(O,lx()));if("input"===w||"textarea"===w||"select"===w){T=t.value;"radio"!==k.type&&"checkbox"!==k.type&&"submit"!==k.type&&"button"!==k.type&&T?k.value=V_({type:k.type,tagName:w,value:T,maskInputOptions:d,maskInputFn:p}):t.checked&&(k.checked=t.checked)}if("option"===w&&(t.selected&&!d.select?k.selected=!0:delete k.selected),"canvas"===w&&y)if("2d"===t.__context)(function(t){var e=t.getContext("2d");if(!e)return!0;for(var n=0;n<t.width;n+=50)for(var r=0;r<t.height;r+=50){var i=e.getImageData,a=H_ in i?i.__rrweb_original__:i;if(new Uint32Array(a.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some((function(t){return 0!==t})))return!1}return!0})(t)||(k.rr_dataURL=t.toDataURL(g.type,g.quality));else if(!("__context"in t)){var P=t.toDataURL(g.type,g.quality),R=document.createElement("canvas");R.width=t.width,R.height=t.height,P!==R.toDataURL(g.type,g.quality)&&(k.rr_dataURL=P)}if("img"===w&&m){U_||(U_=a.createElement("canvas"),W_=U_.getContext("2d"));var D=t,L=D.crossOrigin;D.crossOrigin="anonymous";var I=function(){try{U_.width=D.naturalWidth,U_.height=D.naturalHeight,W_.drawImage(D,0,0),k.rr_dataURL=U_.toDataURL(g.type,g.quality)}catch(t){console.warn("Cannot inline img src="+D.currentSrc+"! Error: "+t)}L?k.crossOrigin=L:delete k.crossOrigin};D.complete&&0!==D.naturalWidth?I():D.onload=I}if("audio"!==w&&"video"!==w||(k.rr_mediaState=t.paused?"paused":"played",k.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(k.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(k.rr_scrollTop=t.scrollTop),x){var N=t.getBoundingClientRect(),F=N.width,z=N.height;k={class:k.class,rr_width:F+"px",rr_height:z+"px"}}return"iframe"!==w||b(k.src)||(t.contentDocument||(k.rr_src=k.src),delete k.src),{type:C_.Element,tagName:w,attributes:k,childNodes:[],isSVG:ux(t)||void 0,needBlock:x,rootId:r};case t.TEXT_NODE:var j=t.parentNode&&t.parentNode.tagName,B=t.textContent,V="STYLE"===j||void 0,H="SCRIPT"===j||void 0;if(V&&B){try{t.nextSibling||t.previousSibling||(null===(n=t.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(B=(i=t.parentNode.sheet).cssRules?Array.from(i.cssRules).map((function(t){return t.cssText||""})).join(""):"")}catch(U){console.warn("Cannot get CSS styles from text's parentNode. Error: "+U,t)}B=Q_(B,lx())}return H&&(B="SCRIPT_PLACEHOLDER"),!V&&!H&&fx(t,u,l)&&B&&(B=h?h(B):B.replace(/[\S]/g,"*")),{type:C_.Text,textContent:B||"",isStyle:V,rootId:r};case t.CDATA_SECTION_NODE:return{type:C_.CDATA,textContent:"",rootId:r};case t.COMMENT_NODE:return{type:C_.Comment,textContent:t.textContent||"",rootId:r};default:return!1}}function hx(t){return void 0===t?"":t.toLowerCase()}function px(t,e){var n,r=e.doc,i=e.map,a=e.blockClass,o=e.blockSelector,s=e.maskTextClass,u=e.maskTextSelector,l=e.skipChild,c=void 0!==l&&l,f=e.inlineStylesheet,d=void 0===f||f,h=e.maskInputOptions,p=void 0===h?{}:h,v=e.maskTextFn,g=e.maskInputFn,m=e.slimDOMOptions,y=e.dataURLOptions,b=void 0===y?{}:y,_=e.inlineImages,x=void 0!==_&&_,w=e.recordCanvas,k=void 0!==w&&w,S=e.onSerialize,E=e.onIframeLoad,C=e.iframeLoadTimeout,A=void 0===C?5e3:C,T=e.keepIframeSrcFn,M=void 0===T?function(){return!1}:T,O=e.preserveWhiteSpace,P=void 0===O||O,R=dx(t,{doc:r,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:u,inlineStylesheet:d,maskInputOptions:p,maskTextFn:v,maskInputFn:g,dataURLOptions:b,inlineImages:x,recordCanvas:k,keepIframeSrcFn:M});if(!R)return console.warn(t,"not serialized"),null;n="__sn"in t?t.__sn.id:!function(t,e){if(e.comment&&t.type===C_.Comment)return!0;if(t.type===C_.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&"preload"===t.attributes.rel&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(hx(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===hx(t.attributes.name)||"icon"===hx(t.attributes.rel)||"apple-touch-icon"===hx(t.attributes.rel)||"shortcut icon"===hx(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&hx(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(hx(t.attributes.property).match(/^(og|twitter|fb):/)||hx(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===hx(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===hx(t.attributes.name)||"googlebot"===hx(t.attributes.name)||"bingbot"===hx(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===hx(t.attributes.name)||"generator"===hx(t.attributes.name)||"framework"===hx(t.attributes.name)||"publisher"===hx(t.attributes.name)||"progid"===hx(t.attributes.name)||hx(t.attributes.property).match(/^article:/)||hx(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===hx(t.attributes.name)||"yandex-verification"===hx(t.attributes.name)||"csrf-token"===hx(t.attributes.name)||"p:domain_verify"===hx(t.attributes.name)||"verify-v1"===hx(t.attributes.name)||"verification"===hx(t.attributes.name)||"shopify-checkout-api-token"===hx(t.attributes.name)))return!0}}return!1}(R,m)&&(P||R.type!==C_.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?Y_++:-2;var D=Object.assign(R,{id:n});if(t.__sn=D,-2===n)return null;i[n]=t,S&&S(t);var L=!c;if(D.type===C_.Element&&(L=L&&!D.needBlock,delete D.needBlock,t.shadowRoot&&(D.isShadowHost=!0)),(D.type===C_.Document||D.type===C_.Element)&&L){m.headWhitespace&&R.type===C_.Element&&"head"===R.tagName&&(P=!1);for(var I={doc:r,map:i,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:u,skipChild:c,inlineStylesheet:d,maskInputOptions:p,maskTextFn:v,maskInputFn:g,slimDOMOptions:m,dataURLOptions:b,inlineImages:x,recordCanvas:k,preserveWhiteSpace:P,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:A,keepIframeSrcFn:M},N=0,F=Array.from(t.childNodes);N<F.length;N++){(B=px(F[N],I))&&D.childNodes.push(B)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(var z=0,j=Array.from(t.shadowRoot.childNodes);z<j.length;z++){var B;(B=px(j[z],I))&&(B.isShadow=!0,D.childNodes.push(B))}}return t.parentNode&&B_(t.parentNode)&&(D.isShadow=!0),D.type===C_.Element&&"iframe"===D.tagName&&function(t,e,n){var r=t.contentWindow;if(r){var i,a=!1;try{i=r.document.readyState}catch(u){return}if("complete"===i){var o="about:blank";r.location.href===o&&t.src!==o&&""!==t.src?t.addEventListener("load",e):setTimeout(e,0)}else{var s=setTimeout((function(){a||(e(),a=!0)}),n);t.addEventListener("load",(function(){clearTimeout(s),a=!0,e()}))}}}(t,(function(){var e=t.contentDocument;if(e&&E){var n=px(e,{doc:e,map:i,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:v,maskInputFn:g,slimDOMOptions:m,dataURLOptions:b,inlineImages:x,recordCanvas:k,preserveWhiteSpace:P,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:A,keepIframeSrcFn:M});n&&E(t,n)}}),A),D}function vx(t,e,n){void 0===n&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(t,e,r),function(){return n.removeEventListener(t,e,r)}}!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"}(J_||(J_={})),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"}(tx||(tx={})),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"}(ex||(ex={})),function(t){t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2"}(nx||(nx={})),function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange"}(rx||(rx={})),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"}(ix||(ix={}));var gx="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",mx={map:{},getId:function(){return console.error(gx),-1},getNode:function(){return console.error(gx),null},removeNodeFromMap:function(){console.error(gx)},has:function(){return console.error(gx),!1},reset:function(){console.error(gx)}};function yx(t,e,n){void 0===n&&(n={});var r=null,i=0;return function(a){var o=Date.now();i||!1!==n.leading||(i=o);var s=e-(o-i),u=this,l=arguments;s<=0||s>e?(r&&(clearTimeout(r),r=null),i=o,t.apply(u,l)):r||!1===n.trailing||(r=setTimeout((function(){i=!1===n.leading?0:Date.now(),r=null,t.apply(u,l)}),s))}}function bx(t,e,n,r,i){void 0===i&&(i=window);var a=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set:function(t){var e=this;setTimeout((function(){n.set.call(e,t)}),0),a&&a.set&&a.set.call(this,t)}}),function(){return bx(t,e,a||{},!0)}}function _x(t,e,n){try{if(!(e in t))return function(){};var r=t[e],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,function(){t[e]=r}}catch(P3){return function(){}}}function xx(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function wx(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function kx(t,e){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){var n=!1;if("string"==typeof e){if(void 0!==t.closest)return null!==t.closest("."+e);n=t.classList.contains(e)}else t.classList.forEach((function(t){e.test(t)&&(n=!0)}));return n||kx(t.parentNode,e)}return t.nodeType,t.TEXT_NODE,kx(t.parentNode,e)}function Sx(t){return"__sn"in t&&-2===t.__sn.id}function Ex(t,e){if(B_(t))return!1;var n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||Ex(t.parentNode,e))}function Cx(t){return Boolean(t.changedTouches)}function Ax(t){return"__sn"in t&&(t.__sn.type===C_.Element&&"iframe"===t.__sn.tagName)}function Tx(t){return Boolean(null==t?void 0:t.shadowRoot)}function Mx(t){return"__ln"in t}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(mx=new Proxy(mx,{get:function(t,e,n){return"map"===e&&console.error(gx),Reflect.get(t,e,n)}}));var Ox=function(){function t(){this.length=0,this.head=null}return t.prototype.get=function(t){if(t>=this.length)throw new Error("Position outside of list range");for(var e=this.head,n=0;n<t;n++)e=(null==e?void 0:e.next)||null;return e},t.prototype.addNode=function(t){var e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&Mx(t.previousSibling)){var n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&Mx(t.nextSibling)&&t.nextSibling.__ln.previous){n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;this.length++},t.prototype.removeNode=function(t){var e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next&&(e.next.previous=e.previous)):(this.head=e.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)},t}(),Px=function(t,e){return"".concat(t,"@").concat(e)};function Rx(t){return"__sn"in t}var Dx=function(){function t(){var t=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(e){e.forEach(t.processMutation),t.emit()},this.emit=function(){var e,n,r,i;if(!t.frozen&&!t.locked){for(var a=[],o=new Ox,s=function(e){for(var n=e,r=-2;-2===r;)r=(n=n&&n.nextSibling)&&t.mirror.getId(n);return r},u=function(e){for(var n,r,i,u,l,c=e.getRootNode?null===(n=e.getRootNode())||void 0===n?void 0:n.host:null,f=c;null===(i=null===(r=null==f?void 0:f.getRootNode)||void 0===r?void 0:r.call(f))||void 0===i?void 0:i.host;)f=(null===(l=null===(u=null==f?void 0:f.getRootNode)||void 0===u?void 0:u.call(f))||void 0===l?void 0:l.host)||null;var d=!(t.doc.contains(e)||null!==f&&t.doc.contains(f));if(e.parentNode&&!d){var h=B_(e.parentNode)?t.mirror.getId(c):t.mirror.getId(e.parentNode),p=s(e);if(-1===h||-1===p)return o.addNode(e);var v=px(e,{doc:t.doc,map:t.mirror.map,blockClass:t.blockClass,blockSelector:t.blockSelector,maskTextClass:t.maskTextClass,maskTextSelector:t.maskTextSelector,skipChild:!0,inlineStylesheet:t.inlineStylesheet,maskInputOptions:t.maskInputOptions,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:t.slimDOMOptions,recordCanvas:t.recordCanvas,inlineImages:t.inlineImages,onSerialize:function(n){Ax(n)&&t.iframeManager.addIframe(n),Tx(e)&&t.shadowDomManager.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,n){t.iframeManager.attachIframe(e,n),t.shadowDomManager.observeAttachShadow(e)}});v&&a.push({parentId:h,nextId:p,node:v})}};t.mapRemoves.length;)t.mirror.removeNodeFromMap(t.mapRemoves.shift());try{for(var l=F_(t.movedSet),c=l.next();!c.done;c=l.next()){var f=c.value;Ix(t.removes,f,t.mirror)&&!t.movedSet.has(f.parentNode)||u(f)}}catch(x){e={error:x}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}try{for(var d=F_(t.addedSet),h=d.next();!h.done;h=d.next()){f=h.value;Nx(t.droppedSet,f)||Ix(t.removes,f,t.mirror)?Nx(t.movedSet,f)?u(f):t.droppedSet.add(f):u(f)}}catch(w){r={error:w}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}for(var p=null;o.length;){var v=null;if(p){var g=t.mirror.getId(p.value.parentNode),m=s(p.value);-1!==g&&-1!==m&&(v=p)}if(!v)for(var y=o.length-1;y>=0;y--){var b=o.get(y);if(b){g=t.mirror.getId(b.value.parentNode),m=s(b.value);if(-1!==g&&-1!==m){v=b;break}}}if(!v){for(;o.head;)o.removeNode(o.head.value);break}p=v.previous,o.removeNode(v.value),u(v.value)}var _={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:a};(_.texts.length||_.attributes.length||_.removes.length||_.adds.length)&&(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(_))}},this.processMutation=function(e){var n,r,i,a;if(!Sx(e.target))switch(e.type){case"characterData":var o=e.target.textContent;kx(e.target,t.blockClass)||o===e.oldValue||t.texts.push({value:fx(e.target,t.maskTextClass,t.maskTextSelector)&&o?t.maskTextFn?t.maskTextFn(o):o.replace(/[\S]/g,"*"):o,node:e.target});break;case"attributes":var s=e.target;o=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(o=V_({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:o,maskInputFn:t.maskInputFn})),kx(e.target,t.blockClass)||o===e.oldValue)return;var u=t.attributes.find((function(t){return t.node===e.target}));if(u||(u={node:e.target,attributes:{}},t.attributes.push(u)),"style"===e.attributeName){var l=t.doc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue),void 0!==u.attributes.style&&null!==u.attributes.style||(u.attributes.style={});var c=u.attributes.style;try{for(var f=F_(Array.from(s.style)),d=f.next();!d.done;d=f.next()){var h=d.value,p=s.style.getPropertyValue(h),v=s.style.getPropertyPriority(h);p===l.style.getPropertyValue(h)&&v===l.style.getPropertyPriority(h)||(c[h]=""===v?p:[p,v])}}catch(y){n={error:y}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}try{for(var g=F_(Array.from(l.style)),m=g.next();!m.done;m=g.next()){h=m.value;""===s.style.getPropertyValue(h)&&(c[h]=!1)}}catch(b){i={error:b}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}}else u.attributes[e.attributeName]=cx(t.doc,e.target.tagName,e.attributeName,o);break;case"childList":e.addedNodes.forEach((function(n){return t.genAdds(n,e.target)})),e.removedNodes.forEach((function(n){var r=t.mirror.getId(n),i=B_(e.target)?t.mirror.getId(e.target.host):t.mirror.getId(e.target);kx(e.target,t.blockClass)||Sx(n)||(t.addedSet.has(n)?(Lx(t.addedSet,n),t.droppedSet.add(n)):t.addedSet.has(e.target)&&-1===r||Ex(e.target,t.mirror)||(t.movedSet.has(n)&&t.movedMap[Px(r,i)]?Lx(t.movedSet,n):t.removes.push({parentId:i,id:r,isShadow:!!B_(e.target)||void 0})),t.mapRemoves.push(n))}))}},this.genAdds=function(e,n){if(!n||!kx(n,t.blockClass)){if(Rx(e)){if(Sx(e))return;t.movedSet.add(e);var r=null;n&&Rx(n)&&(r=n.__sn.id),r&&(t.movedMap[Px(e.__sn.id,r)]=!0)}else t.addedSet.add(e),t.droppedSet.delete(e);kx(e,t.blockClass)||e.childNodes.forEach((function(e){return t.genAdds(e)}))}}}return t.prototype.init=function(t){var e=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach((function(n){e[n]=t[n]}))},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 Lx(t,e){t.delete(e),e.childNodes.forEach((function(e){return Lx(t,e)}))}function Ix(t,e,n){var r=e.parentNode;if(!r)return!1;var i=n.getId(r);return!!t.some((function(t){return t.id===i}))||Ix(t,r,n)}function Nx(t,e){var n=e.parentNode;return!!n&&(!!t.has(n)||Nx(t,n))}var Fx=Dx,zx=[],jx="undefined"!=typeof CSSGroupingRule,Bx="undefined"!=typeof CSSMediaRule,Vx="undefined"!=typeof CSSSupportsRule,Hx="undefined"!=typeof CSSConditionRule;function Ux(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(P3){return t.target}}function Wx(t,e){var n,r,i=new Fx;zx.push(i),i.init(t);var a=window.MutationObserver||window.__rrMutationObserver,o=null===(r=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===r?void 0:r.call(n,"MutationObserver");o&&window[o]&&(a=window[o]);var s=new a(i.processMutations.bind(i));return s.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function Yx(t){var e=t.mouseInteractionCb,n=t.doc,r=t.mirror,i=t.blockClass,a=t.sampling;if(!1===a.mouseInteraction)return function(){};var o=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,s=[];return Object.keys(ex).filter((function(t){return Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==o[t]})).forEach((function(t){var a=t.toLowerCase(),o=function(t){return function(n){var a=Ux(n);if(!kx(a,i)){var o=Cx(n)?n.changedTouches[0]:n;if(o){var s=r.getId(a),u=o.clientX,l=o.clientY;e({type:ex[t],id:s,x:u,y:l})}}}}(t);s.push(vx(a,o,n))})),function(){s.forEach((function(t){return t()}))}}function Gx(t){var e=t.scrollCb,n=t.doc,r=t.mirror,i=t.blockClass,a=yx((function(t){var a=Ux(t);if(a&&!kx(a,i)){var o=r.getId(a);if(a===n){var s=n.scrollingElement||n.documentElement;e({id:o,x:s.scrollLeft,y:s.scrollTop})}else e({id:o,x:a.scrollLeft,y:a.scrollTop})}}),t.sampling.scroll||100);return vx("scroll",a,n)}function qx(t,e){var n=N_({},t);return e||delete n.userTriggered,n}var Zx=["INPUT","TEXTAREA","SELECT"],Xx=new WeakMap;function Kx(t){return function(t,e){if(jx&&t.parentRule instanceof CSSGroupingRule||Bx&&t.parentRule instanceof CSSMediaRule||Vx&&t.parentRule instanceof CSSSupportsRule||Hx&&t.parentRule instanceof CSSConditionRule){var n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else{n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function $x(t,e){var n,r;void 0===e&&(e={});var i=t.doc.defaultView;if(!i)return function(){};!function(t,e){var n=t.mutationCb,r=t.mousemoveCb,i=t.mouseInteractionCb,a=t.scrollCb,o=t.viewportResizeCb,s=t.inputCb,u=t.mediaInteractionCb,l=t.styleSheetRuleCb,c=t.styleDeclarationCb,f=t.canvasMutationCb,d=t.fontCb;t.mutationCb=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e.mutation&&e.mutation.apply(e,j_([],z_(t),!1)),n.apply(void 0,j_([],z_(t),!1))},t.mousemoveCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.mousemove&&e.mousemove.apply(e,j_([],z_(t),!1)),r.apply(void 0,j_([],z_(t),!1))},t.mouseInteractionCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.mouseInteraction&&e.mouseInteraction.apply(e,j_([],z_(t),!1)),i.apply(void 0,j_([],z_(t),!1))},t.scrollCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.scroll&&e.scroll.apply(e,j_([],z_(t),!1)),a.apply(void 0,j_([],z_(t),!1))},t.viewportResizeCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.viewportResize&&e.viewportResize.apply(e,j_([],z_(t),!1)),o.apply(void 0,j_([],z_(t),!1))},t.inputCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.input&&e.input.apply(e,j_([],z_(t),!1)),s.apply(void 0,j_([],z_(t),!1))},t.mediaInteractionCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.mediaInteaction&&e.mediaInteaction.apply(e,j_([],z_(t),!1)),u.apply(void 0,j_([],z_(t),!1))},t.styleSheetRuleCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.styleSheetRule&&e.styleSheetRule.apply(e,j_([],z_(t),!1)),l.apply(void 0,j_([],z_(t),!1))},t.styleDeclarationCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.styleDeclaration&&e.styleDeclaration.apply(e,j_([],z_(t),!1)),c.apply(void 0,j_([],z_(t),!1))},t.canvasMutationCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.canvasMutation&&e.canvasMutation.apply(e,j_([],z_(t),!1)),f.apply(void 0,j_([],z_(t),!1))},t.fontCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.font&&e.font.apply(e,j_([],z_(t),!1)),d.apply(void 0,j_([],z_(t),!1))}}(t,e);var a=Wx(t,t.doc),o=function(t){var e=t.mousemoveCb,n=t.sampling,r=t.doc,i=t.mirror;if(!1===n.mousemove)return function(){};var a,o="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,u=[],l=yx((function(t){var n=Date.now()-a;e(u.map((function(t){return t.timeOffset-=n,t})),t),u=[],a=null}),s),c=yx((function(t){var e=Ux(t),n=Cx(t)?t.changedTouches[0]:t,r=n.clientX,o=n.clientY;a||(a=Date.now()),u.push({x:r,y:o,id:i.getId(e),timeOffset:Date.now()-a}),l("undefined"!=typeof DragEvent&&t instanceof DragEvent?tx.Drag:t instanceof MouseEvent?tx.MouseMove:tx.TouchMove)}),o,{trailing:!1}),f=[vx("mousemove",c,r),vx("touchmove",c,r),vx("drag",c,r)];return function(){f.forEach((function(t){return t()}))}}(t),s=Yx(t),u=Gx(t),l=function(t){var e=t.viewportResizeCb,n=-1,r=-1;return vx("resize",yx((function(){var t=xx(),i=wx();n===t&&r===i||(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200),window)}(t),c=function(t){var e=t.inputCb,n=t.doc,r=t.mirror,i=t.blockClass,a=t.ignoreClass,o=t.maskInputOptions,s=t.maskInputFn,u=t.sampling,l=t.userTriggeredOnInput;function c(t){var e=Ux(t),r=t.isTrusted;if(e&&"OPTION"===e.tagName&&(e=e.parentElement),e&&e.tagName&&!(Zx.indexOf(e.tagName)<0)&&!kx(e,i)){var u=e.type;if(!e.classList.contains(a)){var c=e.value,d=!1;"radio"===u||"checkbox"===u?d=e.checked:(o[e.tagName.toLowerCase()]||o[u])&&(c=V_({maskInputOptions:o,tagName:e.tagName,type:u,value:c,maskInputFn:s})),f(e,qx({text:c,isChecked:d,userTriggered:r},l));var h=e.name;"radio"===u&&h&&d&&n.querySelectorAll('input[type="radio"][name="'.concat(h,'"]')).forEach((function(t){t!==e&&f(t,qx({text:t.value,isChecked:!d,userTriggered:!1},l))}))}}}function f(t,n){var i=Xx.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){Xx.set(t,n);var a=r.getId(t);e(N_(N_({},n),{id:a}))}}var d=("last"===u.input?["change"]:["input","change"]).map((function(t){return vx(t,c,n)})),h=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),p=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return h&&h.set&&d.push.apply(d,j_([],z_(p.map((function(t){return bx(t[0],t[1],{set:function(){c({target:this})}})}))),!1)),function(){d.forEach((function(t){return t()}))}}(t),f=function(t){var e=t.mediaInteractionCb,n=t.blockClass,r=t.mirror,i=t.sampling,a=function(t){return yx((function(i){var a=Ux(i);if(a&&!kx(a,n)){var o=a,s=o.currentTime,u=o.volume,l=o.muted;e({type:t,id:r.getId(a),currentTime:s,volume:u,muted:l})}}),i.media||500)},o=[vx("play",a(0)),vx("pause",a(1)),vx("seeked",a(2)),vx("volumechange",a(3))];return function(){o.forEach((function(t){return t()}))}}(t),d=function(t,e){var n=t.styleSheetRuleCb,r=t.mirror,i=e.win,a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(t,e){var i=r.getId(this.ownerNode);return-1!==i&&n({id:i,adds:[{rule:t,index:e}]}),a.apply(this,arguments)};var o=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(t){var e=r.getId(this.ownerNode);return-1!==e&&n({id:e,removes:[{index:t}]}),o.apply(this,arguments)};var s={};jx?s.CSSGroupingRule=i.CSSGroupingRule:(Bx&&(s.CSSMediaRule=i.CSSMediaRule),Hx&&(s.CSSConditionRule=i.CSSConditionRule),Vx&&(s.CSSSupportsRule=i.CSSSupportsRule));var u={};return Object.entries(s).forEach((function(t){var e=z_(t,2),i=e[0],a=e[1];u[i]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=function(t,e){var a=r.getId(this.parentStyleSheet.ownerNode);return-1!==a&&n({id:a,adds:[{rule:t,index:j_(j_([],z_(Kx(this)),!1),[e||0],!1)}]}),u[i].insertRule.apply(this,arguments)},a.prototype.deleteRule=function(t){var e=r.getId(this.parentStyleSheet.ownerNode);return-1!==e&&n({id:e,removes:[{index:j_(j_([],z_(Kx(this)),!1),[t],!1)}]}),u[i].deleteRule.apply(this,arguments)}})),function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=o,Object.entries(s).forEach((function(t){var e=z_(t,2),n=e[0],r=e[1];r.prototype.insertRule=u[n].insertRule,r.prototype.deleteRule=u[n].deleteRule}))}}(t,{win:i}),h=function(t,e){var n=t.styleDeclarationCb,r=t.mirror,i=e.win,a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=function(t,e,i){var o,s,u=r.getId(null===(s=null===(o=this.parentRule)||void 0===o?void 0:o.parentStyleSheet)||void 0===s?void 0:s.ownerNode);return-1!==u&&n({id:u,set:{property:t,value:e,priority:i},index:Kx(this.parentRule)}),a.apply(this,arguments)};var o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=function(t){var e,i,a=r.getId(null===(i=null===(e=this.parentRule)||void 0===e?void 0:e.parentStyleSheet)||void 0===i?void 0:i.ownerNode);return-1!==a&&n({id:a,remove:{property:t},index:Kx(this.parentRule)}),o.apply(this,arguments)},function(){i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o}}(t,{win:i}),p=t.collectFonts?function(t){var e=t.fontCb,n=t.doc,r=n.defaultView;if(!r)return function(){};var i=[],a=new WeakMap,o=r.FontFace;r.FontFace=function(t,e,n){var r=new o(t,e,n);return a.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};var s=_x(n.fonts,"add",(function(t){return function(n){return setTimeout((function(){var t=a.get(n);t&&(e(t),a.delete(n))}),0),t.apply(this,[n])}}));return i.push((function(){r.FontFace=o})),i.push(s),function(){i.forEach((function(t){return t()}))}}(t):function(){},v=[];try{for(var g=F_(t.plugins),m=g.next();!m.done;m=g.next()){var y=m.value;v.push(y.observer(y.callback,i,y.options))}}catch(b){n={error:b}}finally{try{m&&!m.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}return function(){zx.forEach((function(t){return t.reset()})),a.disconnect(),o(),s(),u(),l(),c(),f(),d(),h(),p(),v.forEach((function(t){return t()}))}}var Qx=function(){function t(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}return t.prototype.addIframe=function(t){this.iframes.set(t,!0)},t.prototype.addLoadListener=function(t){this.loadListener=t},t.prototype.attachIframe=function(t,e){var n;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,t)},t}(),Jx=function(){function t(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var e=this;this.restorePatches.push(_x(HTMLElement.prototype,"attachShadow",(function(t){return function(){var n=t.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}return t.prototype.addShadowRoot=function(t,e){Wx(N_(N_({},this.bypassOptions),{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),Gx(N_(N_({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))},t.prototype.observeAttachShadow=function(t){if(t.contentWindow){var e=this;this.restorePatches.push(_x(t.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){var r=n.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,t.contentDocument),r}})))}},t.prototype.reset=function(){this.restorePatches.forEach((function(t){return t()}))},t}();for(var tw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ew="undefined"==typeof Uint8Array?[]:new Uint8Array(256),nw=0;nw<tw.length;nw++)ew[tw.charCodeAt(nw)]=nw;var rw=new Map;var iw=function(t,e,n){if(t&&(sw(t,e)||"object"===Fi(t))){var r=function(t,e){var n=rw.get(t);return n||(n=new Map,rw.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(n,t.constructor.name),i=r.indexOf(t);return-1===i&&(i=r.length,r.push(t)),i}};function aw(t,e,n){if(t instanceof Array)return t.map((function(t){return aw(t,e,n)}));if(null===t)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)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){var r=t.constructor.name,i=function(t){var e,n=new Uint8Array(t),r=n.length,i="";for(e=0;e<r;e+=3)i+=tw[n[e]>>2],i+=tw[(3&n[e])<<4|n[e+1]>>4],i+=tw[(15&n[e+1])<<2|n[e+2]>>6],i+=tw[63&n[e+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(t);return{rr_type:r,base64:i}}return t instanceof DataView?{rr_type:t.constructor.name,args:[aw(t.buffer,e,n),t.byteOffset,t.byteLength]}:t instanceof HTMLImageElement?{rr_type:t.constructor.name,src:t.src}:t instanceof ImageData?{rr_type:t.constructor.name,args:[aw(t.data,e,n),t.width,t.height]}:sw(t,e)||"object"===Fi(t)?{rr_type:t.constructor.name,index:iw(t,e,n)}:t}var ow=function(t,e,n){return j_([],z_(t),!1).map((function(t){return aw(t,e,n)}))},sw=function(t,e){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(t){return"function"==typeof e[t]}));return Boolean(n.find((function(n){return t instanceof e[n]})))};function uw(t,e,n,r,i,a){var o,s,u=[],l=Object.getOwnPropertyNames(t),c=function(o){try{if("function"!=typeof t[o])return"continue";var s=_x(t,o,(function(s){return function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];var c=s.apply(this,u);if(iw(c,a,t),!kx(this.canvas,r)){i.getId(this.canvas);var f=ow(j_([],z_(u),!1),a,t),d={type:e,property:o,args:f};n(this.canvas,d)}return c}}));u.push(s)}catch(lnt){var l=bx(t,o,{set:function(t){n(this.canvas,{type:e,property:o,args:[t],setter:!0})}});u.push(l)}};try{for(var f=F_(l),d=f.next();!d.done;d=f.next()){c(d.value)}}catch(h){o={error:h}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}return u}var lw,cw,fw=function(){function t(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(t,e){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,!0===t.recordCanvas&&this.initCanvasMutationObserver(t.win,t.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(t,e){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=function(t,e){var n=[];try{var r=_x(t.HTMLCanvasElement.prototype,"getContext",(function(t){return function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return kx(this,e)||"__context"in this||(this.__context=n),t.apply(this,j_([n],z_(r),!1))}}));n.push(r)}catch(P3){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){n.forEach((function(t){return t()}))}}(t,e),r=function(t,e,n,r){var i,a,o=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype),u=function(r){try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[r])return"continue";var i=_x(e.CanvasRenderingContext2D.prototype,r,(function(e){return function(){for(var i=this,a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return kx(this.canvas,n)||setTimeout((function(){var e=j_([],z_(a),!1);if("drawImage"===r&&e[0]&&e[0]instanceof HTMLCanvasElement){var n=e[0],o=n.getContext("2d"),s=null==o?void 0:o.getImageData(0,0,n.width,n.height),u=null==s?void 0:s.data;e[0]=JSON.stringify(u)}t(i.canvas,{type:nx["2D"],property:r,args:e})}),0),e.apply(this,a)}}));o.push(i)}catch(lnt){var a=bx(e.CanvasRenderingContext2D.prototype,r,{set:function(e){t(this.canvas,{type:nx["2D"],property:r,args:[e],setter:!0})}});o.push(a)}};try{for(var l=F_(s),c=l.next();!c.done;c=l.next())u(c.value)}catch(f){i={error:f}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return function(){o.forEach((function(t){return t()}))}}(this.processMutation.bind(this),t,e,this.mirror),i=function(t,e,n,r){var i=[];return i.push.apply(i,j_([],z_(uw(e.WebGLRenderingContext.prototype,nx.WebGL,t,n,r,e)),!1)),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,j_([],z_(uw(e.WebGL2RenderingContext.prototype,nx.WebGL2,t,n,r,e)),!1)),function(){i.forEach((function(t){return t()}))}}(this.processMutation.bind(this),t,e,this.mirror);this.resetObservers=function(){n(),r(),i()}},t.prototype.startPendingCanvasMutationFlusher=function(){var t=this;requestAnimationFrame((function(){return t.flushPendingCanvasMutations()}))},t.prototype.startRAFTimestamping=function(){var t=this;requestAnimationFrame((function e(n){t.rafStamps.latestId=n,requestAnimationFrame(e)}))},t.prototype.flushPendingCanvasMutations=function(){var t=this;this.pendingCanvasMutations.forEach((function(e,n){var r=t.mirror.getId(n);t.flushPendingCanvasMutationFor(n,r)})),requestAnimationFrame((function(){return t.flushPendingCanvasMutations()}))},t.prototype.flushPendingCanvasMutationFor=function(t,e){if(!this.frozen&&!this.locked){var n=this.pendingCanvasMutations.get(t);if(n&&-1!==e){var r=n.map((function(t){t.type;var e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(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}(t,["type"]);return e})),i=n[0].type;this.mutationCb({id:e,type:i,commands:r}),this.pendingCanvasMutations.delete(t)}}},t}();function dw(t){return N_(N_({},t),{timestamp:Date.now()})}var hw={map:{},getId:function(t){return t&&t.__sn?t.__sn.id:-1},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(t){return e.removeNodeFromMap(t)}))},has:function(t){return this.map.hasOwnProperty(t)},reset:function(){this.map={}}};function pw(t){void 0===t&&(t={});var e=t.emit,n=t.checkoutEveryNms,r=t.checkoutEveryNth,i=t.blockClass,a=void 0===i?"rr-block":i,o=t.blockSelector,s=void 0===o?null:o,u=t.ignoreClass,l=void 0===u?"rr-ignore":u,c=t.maskTextClass,f=void 0===c?"rr-mask":c,d=t.maskTextSelector,h=void 0===d?null:d,p=t.inlineStylesheet,v=void 0===p||p,g=t.maskAllInputs,m=t.maskInputOptions,y=t.slimDOMOptions,b=t.maskInputFn,_=t.maskTextFn,x=t.hooks,w=t.packFn,k=t.sampling,S=void 0===k?{}:k,E=t.mousemoveWait,C=t.recordCanvas,A=void 0!==C&&C,T=t.userTriggeredOnInput,M=void 0!==T&&T,O=t.collectFonts,P=void 0!==O&&O,R=t.inlineImages,D=void 0!==R&&R,L=t.plugins,I=t.keepIframeSrcFn,N=void 0===I?function(){return!1}:I;if(!e)throw new Error("emit function is required");void 0!==E&&void 0===S.mousemove&&(S.mousemove=E);var F,z,j=!0===g?{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}:void 0!==m?m:{password:!0},B=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};void 0===F&&(F=window),"NodeList"in F&&!F.NodeList.prototype.forEach&&(F.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in F&&!F.DOMTokenList.prototype.forEach&&(F.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1});var V=0;lw=function(t,i){var a;if(!(null===(a=zx[0])||void 0===a?void 0:a.isFrozen())||t.type===J_.FullSnapshot||t.type===J_.IncrementalSnapshot&&t.data.source===tx.Mutation||zx.forEach((function(t){return t.unfreeze()})),e(function(t){var e,n;try{for(var r=F_(L||[]),i=r.next();!i.done;i=r.next()){var a=i.value;a.eventProcessor&&(t=a.eventProcessor(t))}}catch(o){e={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return w&&(t=w(t)),t}(t),i),t.type===J_.FullSnapshot)z=t,V=0;else if(t.type===J_.IncrementalSnapshot){if(t.data.source===tx.Mutation&&t.data.isAttachIframe)return;V++;var o=r&&V>=r,s=n&&t.timestamp-z.timestamp>n;(o||s)&&cw(!0)}};var H=function(t){lw(dw({type:J_.IncrementalSnapshot,data:N_({source:tx.Mutation},t)}))},U=function(t){return lw(dw({type:J_.IncrementalSnapshot,data:N_({source:tx.Scroll},t)}))},W=function(t){return lw(dw({type:J_.IncrementalSnapshot,data:N_({source:tx.CanvasMutation},t)}))},Y=new Qx({mutationCb:H}),G=new fw({recordCanvas:A,mutationCb:W,win:window,blockClass:a,mirror:hw}),q=new Jx({mutationCb:H,scrollCb:U,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:f,maskTextSelector:h,inlineStylesheet:v,maskInputOptions:j,maskTextFn:_,maskInputFn:b,recordCanvas:A,inlineImages:D,sampling:S,slimDOMOptions:B,iframeManager:Y,canvasManager:G},mirror:hw});cw=function(t){var e,n,r,i;void 0===t&&(t=!1),lw(dw({type:J_.Meta,data:{href:window.location.href,width:wx(),height:xx()}}),t),zx.forEach((function(t){return t.lock()}));var o=z_(function(t,e){var n=e||{},r=n.blockClass,i=void 0===r?"rr-block":r,a=n.blockSelector,o=void 0===a?null:a,s=n.maskTextClass,u=void 0===s?"rr-mask":s,l=n.maskTextSelector,c=void 0===l?null:l,f=n.inlineStylesheet,d=void 0===f||f,h=n.inlineImages,p=void 0!==h&&h,v=n.recordCanvas,g=void 0!==v&&v,m=n.maskAllInputs,y=void 0!==m&&m,b=n.maskTextFn,_=n.maskInputFn,x=n.slimDOM,w=void 0!==x&&x,k=n.dataURLOptions,S=n.preserveWhiteSpace,E=n.onSerialize,C=n.onIframeLoad,A=n.iframeLoadTimeout,T=n.keepIframeSrcFn,M={};return[px(t,{doc:t,map:M,blockClass:i,blockSelector:o,maskTextClass:u,maskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===y?{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===y?{password:!0}:y,maskTextFn:b,maskInputFn:_,slimDOMOptions:!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===w,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===w?{}:w,dataURLOptions:k,inlineImages:p,recordCanvas:g,preserveWhiteSpace:S,onSerialize:E,onIframeLoad:C,iframeLoadTimeout:A,keepIframeSrcFn:void 0===T?function(){return!1}:T}),M]}(document,{blockClass:a,blockSelector:s,maskTextClass:f,maskTextSelector:h,inlineStylesheet:v,maskAllInputs:j,maskTextFn:_,slimDOM:B,recordCanvas:A,inlineImages:D,onSerialize:function(t){Ax(t)&&Y.addIframe(t),Tx(t)&&q.addShadowRoot(t.shadowRoot,document)},onIframeLoad:function(t,e){Y.attachIframe(t,e),q.observeAttachShadow(t)},keepIframeSrcFn:N}),2),u=o[0],l=o[1];if(!u)return console.warn("Failed to snapshot the document");hw.map=l,lw(dw({type:J_.FullSnapshot,data:{node:u,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(i=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.parentElement)||void 0===i?void 0:i.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),zx.forEach((function(t){return t.unlock()}))};try{var Z=[];Z.push(vx("DOMContentLoaded",(function(){lw(dw({type:J_.DomContentLoaded,data:{}}))})));var X=function(t){var e;return $x({mutationCb:H,mousemoveCb:function(t,e){return lw(dw({type:J_.IncrementalSnapshot,data:{source:e,positions:t}}))},mouseInteractionCb:function(t){return lw(dw({type:J_.IncrementalSnapshot,data:N_({source:tx.MouseInteraction},t)}))},scrollCb:U,viewportResizeCb:function(t){return lw(dw({type:J_.IncrementalSnapshot,data:N_({source:tx.ViewportResize},t)}))},inputCb:function(t){return lw(dw({type:J_.IncrementalSnapshot,data:N_({source:tx.Input},t)}))},mediaInteractionCb:function(t){return lw(dw({type:J_.IncrementalSnapshot,data:N_({source:tx.MediaInteraction},t)}))},styleSheetRuleCb:function(t){return lw(dw({type:J_.IncrementalSnapshot,data:N_({source:tx.StyleSheetRule},t)}))},styleDeclarationCb:function(t){return lw(dw({type:J_.IncrementalSnapshot,data:N_({source:tx.StyleDeclaration},t)}))},canvasMutationCb:W,fontCb:function(t){return lw(dw({type:J_.IncrementalSnapshot,data:N_({source:tx.Font},t)}))},blockClass:a,ignoreClass:l,maskTextClass:f,maskTextSelector:h,maskInputOptions:j,inlineStylesheet:v,sampling:S,recordCanvas:A,inlineImages:D,userTriggeredOnInput:M,collectFonts:P,doc:t,maskInputFn:b,maskTextFn:_,blockSelector:s,slimDOMOptions:B,mirror:hw,iframeManager:Y,shadowDomManager:q,canvasManager:G,plugins:(null===(e=null==L?void 0:L.filter((function(t){return t.observer})))||void 0===e?void 0:e.map((function(t){return{observer:t.observer,options:t.options,callback:function(e){return lw(dw({type:J_.Plugin,data:{plugin:t.name,payload:e}}))}}})))||[]},x)};Y.addLoadListener((function(t){try{Z.push(X(t.contentDocument))}catch(e){console.warn("error in rrweb iframe observer",e)}}));var K=function(){cw(),Z.push(X(document))};return"interactive"===document.readyState||"complete"===document.readyState?K():Z.push(vx("load",(function(){lw(dw({type:J_.Load,data:{}})),K()}),window)),function(){Z.forEach((function(t){return t()}))}}catch($){console.warn($)}}pw.addCustomEvent=function(t,e){if(!lw)throw new Error("please add custom event after start recording");lw(dw({type:J_.Custom,data:{tag:t,payload:e}}))},pw.freezePage=function(){zx.forEach((function(t){return t.freeze()}))},pw.takeFullSnapshot=function(t){if(!cw)throw new Error("please take full snapshot after start recording");cw(t)},pw.mirror=hw;var vw=["name","type","startTime","transferSize","duration"];function gw(t){return function(e){return vw.every((function(n){return t[n]===e[n]}))}}function mw(t){var e=new PerformanceObserver((function(e){var n,r,i,a,o,s,u,l,c,f=(n=t.performanceEvents,r=e.getEntries(),i=wi(n.reduce((function(t,e){return"navigation"===e.entryType?t[0].push(e):"largest-contentful-paint"===e.entryType?t[1].push(e):t[2].push(e),t}),[[],[],[]]),3),a=i[0],o=i[1],s=i[2],u=[],l=[],c=o.length?o[o.length-1]:void 0,r.forEach((function(t){if("largest-contentful-paint"!==t.entryType)if("navigation"!==t.entryType)u.push(t);else{var e=t;t.duration>0&&!a.find(gw(e))&&!l.find(gw(e))&&l.push(e)}else(!c||c.startTime<t.startTime)&&(c=t)})),[].concat(mi(c?[c]:[]),mi(a),mi(s),u,l).sort((function(t,e){return t.startTime-e.startTime})));t.performanceEvents=f}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((function(t){try{e.observe({type:t,buffered:!0})}catch(n){}})),e}var yw=function(){function t(e){Ai(this,t),this._fallback=new bw,this._compression=new _w(e),this._used=this._fallback,this._ensureWorkerIsLoaded()}var e;return Ci(t,[{key:"pendingLength",get:function(){return this._used.pendingLength}},{key:"pendingEvents",get:function(){return this._used.pendingEvents}},{key:"destroy",value:function(){this._fallback.destroy(),this._compression.destroy()}},{key:"addEvent",value:function(t,e){return this._used.addEvent(t,e)}},{key:"finish",value:function(){return this._used.finish()}},{key:"_ensureWorkerIsLoaded",value:(e=pi(di().mark((function t(){var e,n,r,i;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this._compression.ensureReady();case 3:t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(0),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Failed to load the compression worker, falling back to simple buffer"),t.abrupt("return");case 9:e=[],n=zi(this._fallback.pendingEvents);try{for(n.s();!(r=n.n()).done;)i=r.value,e.push(this._compression.addEvent(i))}catch(a){n.e(a)}finally{n.f()}return this._used=this._compression,t.next=15,Promise.all(e);case 15:case"end":return t.stop()}}),t,this,[[0,5]])}))),function(){return e.apply(this,arguments)})}]),t}(),bw=function(){function t(){Ai(this,t),this._events=[]}var e;return Ci(t,[{key:"pendingLength",get:function(){return this._events.length}},{key:"pendingEvents",get:function(){return this._events}},{key:"destroy",value:function(){this._events=[]}},{key:"addEvent",value:(e=pi(di().mark((function t(e,n){return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=3;break}return this._events=[e],t.abrupt("return");case 3:return this._events.push(e),t.abrupt("return");case 5:case"end":return t.stop()}}),t,this)}))),function(t,n){return e.apply(this,arguments)})},{key:"finish",value:function(){var t=this;return new Promise((function(e){var n=t._events;t._events=[],e(JSON.stringify(n))}))}}]),t}(),_w=function(){function t(e){Ai(this,t),t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),this._worker=e}var e,n,r;return Ci(t,[{key:"__init",value:function(){this._pendingEvents=[]}},{key:"__init2",value:function(){this._eventBufferItemLength=0}},{key:"__init3",value:function(){this._id=0}},{key:"pendingLength",get:function(){return this._eventBufferItemLength}},{key:"pendingEvents",get:function(){return this._pendingEvents}},{key:"ensureReady",value:function(){var t=this;return new Promise((function(e,n){t._worker.addEventListener("message",(function(t){t.data.success?e():n()}),{once:!0}),t._worker.addEventListener("error",(function(t){n(t)}),{once:!0})}))}},{key:"destroy",value:function(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Destroying compression worker"),this._worker.terminate()}},{key:"addEvent",value:(r=pi(di().mark((function t(e,n){return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=3;break}return t.next=3,this._postMessage({id:this._getAndIncrementId(),method:"init",args:[]});case 3:return n||this._pendingEvents.push(e),t.abrupt("return",this._sendEventToWorker(e));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"finish",value:function(){return this._finishRequest(this._getAndIncrementId())}},{key:"_postMessage",value:function(t){var e=this,n=t.id,r=t.method,i=t.args;return new Promise((function(t,a){var o;try{o=JSON.stringify(i)}catch(s){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("[Replay] Error when trying to stringify args",s),o="[]"}e._worker.addEventListener("message",(function i(o){var s=o.data;if(s.method===r&&s.id===n){if(e._worker.removeEventListener("message",i),!s.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("[Replay]",s.response),void a(new Error("Error in compression worker"));t(s.response)}})),e._worker.postMessage({id:n,method:r,args:o})}))}},{key:"_sendEventToWorker",value:(n=pi(di().mark((function t(e){var n;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._postMessage({id:this._getAndIncrementId(),method:"addEvent",args:[e]}),this._eventBufferItemLength++,t.abrupt("return",n);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"_finishRequest",value:(e=pi(di().mark((function t(e){var n;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this._postMessage({id:e,method:"finish",args:[]}),this._eventBufferItemLength=0,t.next=4,n;case 4:return this._pendingEvents=[],t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"_getAndIncrementId",value:function(){return this._id++}}]),t}();function xw(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===t||void 0===e||e<0||0!==e&&t+e<=n}function ww(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return xw(t.started,D_,n)||xw(t.lastActivity,e,n)}function kw(t){if("sessionStorage"in A_)try{A_.sessionStorage.setItem(T_,JSON.stringify(t))}catch(e){}}function Sw(t){return void 0!==t&&Math.random()<t}function Ew(t){var e=(new Date).getTime();return{id:t.id||Vm(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled}}function Cw(t){var e=t.sessionSampleRate,n=t.errorSampleRate,r=t.stickySession,i=void 0!==r&&r,a=function(t,e){return Sw(t)?"session":!!Sw(e)&&"error"}(e,n),o=Ew({sampled:a});return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Creating new session: ".concat(o.id)),i&&kw(o),o}function Aw(t){var e=t.expiry,n=t.currentSession,r=t.stickySession,i=t.sessionSampleRate,a=t.errorSampleRate,o=n||r&&function(){if(!("sessionStorage"in A_))return null;try{var t=A_.sessionStorage.getItem(T_);return t?Ew(JSON.parse(t)):null}catch(e){return null}}();if(o){if(!ww(o,e))return{type:"saved",session:o};("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Session has expired")}return{type:"new",session:Cw({stickySession:r,sessionSampleRate:i,errorSampleRate:a})}}function Tw(t,e,n){return Mw.apply(this,arguments)}function Mw(){return(Mw=pi(di().mark((function t(e,n,r){var i,a,o;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.eventBuffer){t.next=2;break}return t.abrupt("return",null);case 2:if(!e.isPaused()){t.next=4;break}return t.abrupt("return",null);case 4:if(i=n.timestamp>9999999999,!((a=i?n.timestamp:1e3*n.timestamp)+P_<(new Date).getTime())){t.next=8;break}return t.abrupt("return",null);case 8:return o=e.getContext().earliestEvent,e.session&&0===e.session.segmentId&&(!o||a<o)&&(e.getContext().earliestEvent=a),t.abrupt("return",e.eventBuffer.addEvent(n,r));case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ow(t){return _i({timestamp:(new Date).getTime()/1e3,type:"default"},t)}function Pw(t,e){"sentry.transaction"!==e.category&&("ui.click"===e.category?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((function(){return Tw(t,{type:J_.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:e}}),"console"===e.category})))}var Rw=function(t){return function(e){if(t.isEnabled()){var n=function(t){var e,n;try{n=function(t){if(e=t.event,e.target)return t.event.target;var e;return t.event}(t),e=Ug(n)}catch(r){e="<unknown>"}if(0===e.length)return null;return Ow({category:"ui.".concat(t.name),message:e,data:_i({},n?{nodeId:pw.mirror.getId(n)}:{})})}(e);n&&Pw(t,n)}}};function Dw(t,e){return e.map((function(e){var n=e.type,r=e.start,i=e.end,a=e.name,o=e.data;return Tw(t,{type:J_.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:i,data:o}}})}))}function Lw(t,e){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!t.getOptions()._experiments.traceInternals)&&!function(t){var e=Uy().getClient(),n=e&&e.getDsn();return!!n&&t.includes(n.host)}(e)}function Iw(t){return function(e){if(e.type===M_)return delete e.breadcrumbs,e;if(function(t){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&t.exception.values.some((function(t){return!!(t.stacktrace&&t.stacktrace.frames&&t.stacktrace.frames.length)&&t.stacktrace.frames.some((function(t){return t.filename&&t.filename.includes("/rrweb/src/")}))}))}(e)&&!t.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Ignoring error from rrweb internals",e),null;if(e.type&&"session"!==t.recordingMode||(e.tags=_i(_i({},e.tags),{},{replayId:t.getSessionId()})),"transaction"===e.type&&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),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.getOptions()._experiments.traceInternals){var n=function(t){return _i({type:"Unknown",value:"n/a"},t.exception&&t.exception.values&&t.exception.values[0])}(e);r={message:"Tagging event (".concat(e.event_id,") - ").concat(e.message," - ").concat(n.type,": ").concat(n.value)},i=r.category,a=r.level,o=r.message,s=fi(r,Je),u=_i({category:i||"console",level:a||"debug",message:"[debug]: ".concat(o)},s),Uy().addBreadcrumb(u)}var r,i,a,o,s,u;return"error"===t.recordingMode&&e.exception&&e.message!==O_&&setTimeout(pi(di().mark((function e(){return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.flushImmediate();case 2:t.stopRecording()&&(t.recordingMode="session",t.startRecording());case 3:case"end":return e.stop()}}),e)})))),e}}function Nw(t){return function(e){if(t.isEnabled()){var n=function(t){var e=t.from,n=t.to,r=(new Date).getTime()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((function(){return Dw(t,[n]),!1})))}}}var Fw=null,zw=function(t){return function(e){if(t.isEnabled()){var n=function(t){var e=t.getLastBreadcrumb();if(Fw===e||!e)return null;if(Fw=e,e.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")))return null;return Ow(e)}(e);n&&Pw(t,n)}}};function jw(t){var e=Uy().getScope();e&&e.addScopeListener(zw(t)),Tm("dom",Rw(t)),Tm("fetch",function(t){return function(e){if(t.isEnabled()){var n=function(t){if(!t.endTimestamp)return null;var e=t.startTimestamp,n=t.endTimestamp,r=t.fetchData,i=t.response;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:r.url,data:{method:r.method,statusCode:i.status}}}(e);null!==n&&(Lw(t,n.name)||t.addUpdate((function(){return Dw(t,[n]),!0})))}}}(t)),Tm("xhr",function(t){return function(e){if(t.isEnabled()){var n=function(t){if(t.xhr.__sentry_own_request__)return null;if(t.startTimestamp&&(t.xhr.__sentry_xhr__=t.xhr.__sentry_xhr__||{},t.xhr.__sentry_xhr__.startTimestamp=t.startTimestamp),!t.endTimestamp)return null;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,i=e.status_code;return void 0===r?null:{type:"resource.xhr",name:r,start:(t.xhr.__sentry_xhr__?t.xhr.__sentry_xhr__.startTimestamp||0:t.endTimestamp)/1e3,end:t.endTimestamp/1e3,data:{method:n,statusCode:i}}}(e);null!==n&&(Lw(t,n.name)||t.addUpdate((function(){return Dw(t,[n]),!0})))}}}(t)),Tm("history",Nw(t)),jy(Iw(t))}function Bw(t){return Vw.apply(this,arguments)}function Vw(){return(Vw=pi(di().mark((function t(e){return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.abrupt("return",Promise.all(Dw(e,[Hw(A_.performance.memory)])));case 4:return t.prev=4,t.t0=t.catch(0),t.abrupt("return",[]);case 7:case"end":return t.stop()}}),t,null,[[0,4]])})))).apply(this,arguments)}function Hw(t){var e=t.jsHeapSizeLimit,n=t.totalJSHeapSize,r=t.usedJSHeapSize,i=(new Date).getTime()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}var Uw,Ww=xi({resource:function(t){var e=t.entryType,n=t.initiatorType,r=t.name,i=t.responseEnd,a=t.startTime,o=t.encodedBodySize,s=t.transferSize;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:"".concat(e,".").concat(n),start:Gw(a),end:Gw(i),name:r,data:{size:s,encodedBodySize:o}}},paint:function(t){var e=t.duration,n=t.entryType,r=t.name,i=Gw(t.startTime);return{type:n,name:r,start:i,end:i+e}},navigation:function(t){var e=t.entryType,n=t.name,r=t.duration,i=t.domComplete,a=t.startTime,o=t.transferSize,s=t.type;if(0===r)return null;return{type:"".concat(e,".").concat(s),start:Gw(a),end:Gw(i),name:n,data:{size:o,duration:r}}}},"largest-contentful-paint",(function(t){var e=t.duration,n=t.entryType,r=t.startTime,i=t.size,a=Gw(r);return{type:n,name:n,start:a,end:a+e,data:{duration:e,size:i,nodeId:pw.mirror.getId(t.element)}}}));function Yw(t){return void 0===Ww[t.entryType]?null:Ww[t.entryType](t)}function Gw(t){return((py||A_.performance.timeOrigin)+t)/1e3}function qw(t,e,n,r){return gy(Ey(t,Sy(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}function Zw(t){var e,n=t.recordingData,r=t.headers,i="".concat(JSON.stringify(r),"\n");if("string"==typeof n)e="".concat(i).concat(n);else{var a=(new TextEncoder).encode(i);(e=new Uint8Array(a.length+n.length)).set(a),e.set(n,a.length)}return e}function Xw(t){return Kw.apply(this,arguments)}function Kw(){return Kw=pi(di().mark((function t(e){var n,r,i,a,o,s,u,l,c;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.client,r=e.scope,i=e.replayId,a=e.event,t.next=3,rb(n.getOptions(),a,{event_id:i},r);case 3:if(o=t.sent){t.next=6;break}return t.abrupt("return",null);case 6:return o.platform=o.platform||"javascript",s=n.getSdkMetadata&&n.getSdkMetadata(),u=s&&s.sdk||{},l=u.name,c=u.version,o.sdk=_i(_i({},o.sdk),{},{name:l||"sentry.javascript.unknown",version:c||"0.0.0"}),t.abrupt("return",o);case 11:case"end":return t.stop()}}),t)}))),Kw.apply(this,arguments)}function $w(t){return Qw.apply(this,arguments)}function Qw(){return Qw=pi(di().mark((function t(e){var n,r,i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k,S;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.recordingData,r=e.replayId,i=e.segmentId,a=e.includeReplayStartTimestamp,o=e.eventContext,s=e.timestamp,u=e.session,l=e.options,c=Zw({recordingData:n,headers:{segment_id:i}}),f=o.urls,d=o.errorIds,h=o.traceIds,p=o.initialTimestamp,v=Uy(),g=v.getClient(),m=v.getScope(),y=g&&g.getTransport(),b=g&&g.getDsn(),g&&m&&y&&b&&u.sampled){t.next=10;break}return t.abrupt("return");case 10:return _=_i(_i({type:M_},a?{replay_start_timestamp:p/1e3}:{}),{},{timestamp:s/1e3,error_ids:d,trace_ids:h,urls:f,replay_id:r,segment_id:i,replay_type:u.sampled}),t.next=13,Xw({scope:m,client:g,replayId:r,event:_});case 13:if(x=t.sent){t.next=18;break}return g.recordDroppedEvent("event_processor","replay",_),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("An event processor returned `null`, will not send event."),t.abrupt("return");case 18:return x.tags=_i(_i({},x.tags),{},{sessionSampleRate:l.sessionSampleRate,errorSampleRate:l.errorSampleRate}),w=qw(x,c,b,g.getOptions().tunnel),t.prev=20,t.next=23,y.send(w);case 23:k=t.sent,t.next=29;break;case 26:throw t.prev=26,t.t0=t.catch(20),new Error(O_);case 29:if(k){t.next=31;break}return t.abrupt("return",k);case 31:if(!Ty(S=My({},k),"replay")){t.next=34;break}throw new Jw(S);case 34:if("number"!=typeof k.statusCode||!(k.statusCode<200||k.statusCode>=300)){t.next=36;break}throw new tk(k.statusCode);case 36:return t.abrupt("return",k);case 37:case"end":return t.stop()}}),t,null,[[20,26]])}))),Qw.apply(this,arguments)}var Jw=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,"Rate limit hit")).rateLimits=t,r}return Ci(n)}(Ri(Error)),tk=function(t){Ti(n,t);var e=Mi(n);function n(t){return Ai(this,n),e.call(this,"Transport returned status code ".concat(t))}return Ci(n)}(Ri(Error));function ek(t){return nk.apply(this,arguments)}function nk(){return nk=pi(di().mark((function t(e){var n,r,i,a=arguments;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:{count:0,interval:I_},r=e.recordingData,i=e.options,r.length){t.next=4;break}return t.abrupt("return");case 4:return t.prev=4,t.next=7,$w(e);case 7:return t.abrupt("return",!0);case 10:if(t.prev=10,t.t0=t.catch(4),!(t.t0 instanceof Jw||t.t0 instanceof tk)){t.next=14;break}throw t.t0;case 14:if(Zy("Replays",{_retryCount:n.count}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i._experiments&&i._experiments.captureExceptions&&qy(t.t0),!(n.count>=3)){t.next=18;break}throw new Error("".concat(O_," - max retries exceeded"));case 18:return n.interval*=++n.count,t.next=21,new Promise((function(t,r){setTimeout(pi(di().mark((function i(){return di().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,ek(e,n);case 3:t(!0),i.next=9;break;case 6:i.prev=6,i.t0=i.catch(0),r(i.t0);case 9:case"end":return i.stop()}}),i,null,[[0,6]])}))),n.interval)}));case 21:return t.abrupt("return",t.sent);case 22:case"end":return t.stop()}}),t,null,[[4,10]])}))),nk.apply(this,arguments)}var rk=function(){function t(e){var n=this,r=e.options,i=e.recordingOptions;Ai(this,t),t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),t.prototype.__init5.call(this),t.prototype.__init6.call(this),t.prototype.__init7.call(this),t.prototype.__init8.call(this),t.prototype.__init9.call(this),t.prototype.__init10.call(this),t.prototype.__init11.call(this),t.prototype.__init12.call(this),t.prototype.__init13.call(this),t.prototype.__init14.call(this),t.prototype.__init15.call(this),t.prototype.__init16.call(this),this._recordingOptions=i,this._options=r,this._debouncedFlush=function(t,e,n){var r,i,a,o=n&&n.maxWait?Math.max(n.maxWait,e):0;function s(){return u(),r=t()}function u(){void 0!==i&&clearTimeout(i),void 0!==a&&clearTimeout(a),i=a=void 0}function l(){return i&&clearTimeout(i),i=setTimeout(s,e),o&&void 0===a&&o!==e&&(a=setTimeout(s,o)),r}return l.cancel=u,l.flush=function(){return void 0!==i||void 0!==a?s():r},l}((function(){return n._flush()}),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}var e;return Ci(t,[{key:"__init",value:function(){this.eventBuffer=null}},{key:"__init2",value:function(){this.performanceEvents=[]}},{key:"__init3",value:function(){this.recordingMode="session"}},{key:"__init4",value:function(){this._performanceObserver=null}},{key:"__init5",value:function(){this._flushLock=null}},{key:"__init6",value:function(){this._lastActivity=(new Date).getTime()}},{key:"__init7",value:function(){this._isEnabled=!1}},{key:"__init8",value:function(){this._isPaused=!1}},{key:"__init9",value:function(){this._hasInitializedCoreListeners=!1}},{key:"__init10",value:function(){this._stopRecording=null}},{key:"__init11",value:function(){this._context={errorIds:new Set,traceIds:new Set,urls:[],earliestEvent:null,initialTimestamp:(new Date).getTime(),initialUrl:""}}},{key:"getContext",value:function(){return this._context}},{key:"isEnabled",value:function(){return this._isEnabled}},{key:"isPaused",value:function(){return this._isPaused}},{key:"getOptions",value:function(){return this._options}},{key:"start",value:function(){this._setInitialState(),this._loadSession({expiry:P_}),this.session?this.session.sampled&&("error"===this.session.sampled&&(this.recordingMode="error"),this._updateSessionActivity(),this.eventBuffer=function(t){if(t.useCompression&&window.Worker){var e=new Blob(['/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction 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});']),n=URL.createObjectURL(e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Using compression worker");var r=new Worker(n);return new yw(r)}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Using simple buffer"),new bw}({useCompression:this._options.useCompression}),this._addListeners(),this._isEnabled=!0,this.startRecording()):this._handleException(new Error("No session found"))}},{key:"startRecording",value:function(){try{this._stopRecording=pw(_i(_i(_i({},this._recordingOptions),"error"===this.recordingMode&&{checkoutEveryNms:6e4}),{},{emit:this._handleRecordingEmit}))}catch(t){this._handleException(t)}}},{key:"stopRecording",value:function(){try{return!!this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0,!0)}catch(t){return this._handleException(t),!1}}},{key:"stop",value:function(){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Stopping Replays"),this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this._debouncedFlush.cancel()}catch(t){this._handleException(t)}}},{key:"pause",value:function(){this._isPaused=!0,this.stopRecording()}},{key:"resume",value:function(){this._isPaused=!1,this.startRecording()}},{key:"addUpdate",value:function(t){var e=t();"error"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}},{key:"triggerUserActivity",value:function(){if(this._updateUserActivity(),!this._stopRecording)return this._loadSession({expiry:P_}),void this.resume();this.checkAndHandleExpiredSession(),this._updateSessionActivity()}},{key:"flushImmediate",value:function(){return this._debouncedFlush(),this._debouncedFlush.flush()}},{key:"getSessionId",value:function(){return this.session&&this.session.id}},{key:"checkAndHandleExpiredSession",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.expiry,n=void 0===e?P_:e,r=this.getSessionId();if(!this._lastActivity||!xw(this._lastActivity,D_)){this._loadSession({expiry:n});var i=r!==this.getSessionId();return!i||(this._triggerFullSnapshot(),!1)}this.pause()}},{key:"_handleException",value:function(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("[Replay]",t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&qy(t)}},{key:"_loadSession",value:function(t){var e=Aw({expiry:t.expiry,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,errorSampleRate:this._options.errorSampleRate}),n=e.type,r=e.session;"new"===n&&this._setInitialState();var i=this.getSessionId();r.id!==i&&(r.previousSessionId=i),this.session=r}},{key:"_setInitialState",value:function(){var t="".concat(A_.location.pathname).concat(A_.location.hash).concat(A_.location.search),e="".concat(A_.location.origin).concat(t);this.performanceEvents=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=(new Date).getTime(),this._context.urls.push(e)}},{key:"_addListeners",value:function(){try{A_.document.addEventListener("visibilitychange",this._handleVisibilityChange),A_.addEventListener("blur",this._handleWindowBlur),A_.addEventListener("focus",this._handleWindowFocus),function(t){var e=Uy().getClient();if(e){var n=e.recordDroppedEvent.bind(e);e.recordDroppedEvent=function(e,r,i){return i&&!i.type&&i.event_id&&t.delete(i.event_id),n(e,r,i)},Uw=n}}(this._context.errorIds),this._hasInitializedCoreListeners||(jw(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"_performanceObserver"in A_&&(this._performanceObserver=mw(this))}},{key:"_removeListeners",value:function(){try{A_.document.removeEventListener("visibilitychange",this._handleVisibilityChange),A_.removeEventListener("blur",this._handleWindowBlur),A_.removeEventListener("focus",this._handleWindowFocus),function(){var t=Uy().getClient();t&&Uw&&(t.recordDroppedEvent=Uw)}(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}},{key:"__init12",value:function(){var t=this;this._handleRecordingEmit=function(e,n){t.checkAndHandleExpiredSession()?t.addUpdate((function(){return"error"===t.recordingMode&&2===e.type&&t._setInitialState(),Tw(t,e,n),2===e.type&&(t.session&&t.session.previousSessionId||("error"===t.recordingMode&&t.session&&t._context.earliestEvent&&(t.session.started=t._context.earliestEvent,t._maybeSaveSession()),"session"===t.recordingMode&&t.flushImmediate()),!0)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("[Replay] Received replay event after session expired.")}}},{key:"__init13",value:function(){var t=this;this._handleVisibilityChange=function(){"visible"===A_.document.visibilityState?t._doChangeToForegroundTasks():t._doChangeToBackgroundTasks()}}},{key:"__init14",value:function(){var t=this;this._handleWindowBlur=function(){var e=Ow({category:"ui.blur"});t._doChangeToBackgroundTasks(e)}}},{key:"__init15",value:function(){var t=this;this._handleWindowFocus=function(){var e=Ow({category:"ui.focus"});t._doChangeToForegroundTasks(e)}}},{key:"_doChangeToBackgroundTasks",value:function(t){if(this.session){var e=ww(this.session,R_);t&&!e&&this._createCustomBreadcrumb(t),this._conditionalFlush()}}},{key:"_doChangeToForegroundTasks",value:function(t){this.session&&(this.checkAndHandleExpiredSession({expiry:R_})?t&&this._createCustomBreadcrumb(t):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Document has become active, but session has expired"))}},{key:"_triggerFullSnapshot",value:function(){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Taking full rrweb snapshot"),pw.takeFullSnapshot(!0)}catch(t){this._handleException(t)}}},{key:"_updateUserActivity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime();this._lastActivity=t}},{key:"_updateSessionActivity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime();this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}},{key:"_createCustomBreadcrumb",value:function(t){var e=this;this.addUpdate((function(){Tw(e,{type:J_.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}},{key:"_addPerformanceEntries",value:function(){var t=mi(this.performanceEvents);return this.performanceEvents=[],Promise.all(Dw(this,function(t){return t.map(Yw).filter(Boolean)}(t)))}},{key:"_conditionalFlush",value:function(){"error"!==this.recordingMode&&this.flushImmediate()}},{key:"_clearContext",value:function(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[],this._context.earliestEvent=null}},{key:"_popEventContext",value:function(){this._context.earliestEvent&&this._context.earliestEvent<this._context.initialTimestamp&&(this._context.initialTimestamp=this._context.earliestEvent);var t={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(),t}},{key:"_runFlush",value:(e=pi(di().mark((function t(){var e,n,r,i;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.session&&this.eventBuffer){t.next=3;break}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("[Replay] No session or eventBuffer found to flush."),t.abrupt("return");case 3:return t.next=5,this._addPerformanceEntries();case 5:if(this.eventBuffer&&this.eventBuffer.pendingLength){t.next=7;break}return t.abrupt("return");case 7:return t.next=9,Bw(this);case 9:if(this.eventBuffer){t.next=11;break}return t.abrupt("return");case 11:return t.prev=11,t.next=14,this.eventBuffer.finish();case 14:return e=t.sent,n=this.session.id,r=this._popEventContext(),i=this.session.segmentId++,this._maybeSaveSession(),t.next=21,ek({replayId:n,recordingData:e,segmentId:i,includeReplayStartTimestamp:0===i,eventContext:r,session:this.session,options:this.getOptions(),timestamp:(new Date).getTime()});case 21:t.next=30;break;case 23:if(t.prev=23,t.t0=t.catch(11),this._handleException(t.t0),!(t.t0 instanceof Jw)){t.next=29;break}return this._handleRateLimit(t.t0.rateLimits),t.abrupt("return");case 29:this.stop();case 30:case"end":return t.stop()}}),t,this,[[11,23]])}))),function(){return e.apply(this,arguments)})},{key:"__init16",value:function(){var t=this;this._flush=pi(di().mark((function e(){return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t._isEnabled){e.next=2;break}return e.abrupt("return");case 2:if(t.checkAndHandleExpiredSession()){e.next=5;break}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("[Replay] Attempting to finish replay event after session expired."),e.abrupt("return");case 5:if(t.session){e.next=8;break}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("[Replay] No session found to flush."),e.abrupt("return");case 8:if(t._debouncedFlush.cancel(),t._flushLock){e.next=15;break}return t._flushLock=t._runFlush(),e.next=13,t._flushLock;case 13:return t._flushLock=null,e.abrupt("return");case 15:return e.prev=15,e.next=18,t._flushLock;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(15),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error(e.t0);case 23:return e.prev=23,t._debouncedFlush(),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[15,20,23,26]])})))}},{key:"_maybeSaveSession",value:function(){this.session&&this._options.stickySession&&kw(this.session)}},{key:"_handleRateLimit",value:function(t){var e=this;if(!this.isPaused()){var n=Ay(t,"replay")-Date.now();n>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("[Replay]","Rate limit hit, pausing replay for ".concat(n,"ms")),this.pause(),this._debouncedFlush.cancel(),setTimeout((function(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.info("[Replay]","Resuming replay after rate limit"),e.resume()}),n))}}}]),t}();function ik(){return"undefined"!=typeof window&&(!Zm()||"undefined"!=typeof process&&"renderer"===process.type)}var ak="img,image,svg,path,rect,area,video,object,picture,embed,map,audio",ok=!1,sk=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.flushMinDelay,r=void 0===n?5e3:n,i=e.flushMaxDelay,a=void 0===i?5e3:i,o=e.stickySession,s=void 0===o||o,u=e.useCompression,l=void 0===u||u,c=e.sessionSampleRate,f=e.errorSampleRate,d=e.maskAllText,h=e.maskTextSelector,p=e.maskAllInputs,v=void 0===p||p,g=e.blockAllMedia,m=void 0===g||g,y=e._experiments,b=void 0===y?{}:y,_=e.blockClass,x=void 0===_?"sentry-block":_,w=e.ignoreClass,k=void 0===w?"sentry-ignore":w,S=e.maskTextClass,E=void 0===S?"sentry-mask":S,C=e.blockSelector,A=void 0===C?"[data-sentry-block]":C,T=fi(e,tn);if(Ai(this,t),t.prototype.__init.call(this),this._recordingOptions=_i({maskAllInputs:v,blockClass:x,ignoreClass:k,maskTextClass:E,maskTextSelector:h,blockSelector:A},T),this._options={flushMinDelay:r,flushMaxDelay:a,stickySession:s,sessionSampleRate:0,errorSampleRate:0,useCompression:l,maskAllText:"boolean"==typeof d?d:!h,blockAllMedia:m,_experiments:b},"number"==typeof c&&(console.warn("[Replay] You are passing `sessionSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysSessionSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ".concat(c," })")),this._options.sessionSampleRate=c),"number"==typeof f&&(console.warn("[Replay] You are passing `errorSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysOnErrorSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ".concat(f," })")),this._options.errorSampleRate=f),this._options.maskAllText&&(this._recordingOptions.maskTextSelector=L_),this._options.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(ak):ak),this._isInitialized&&ik())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}return Ci(t,[{key:"__init",value:function(){this.name=t.id}},{key:"_isInitialized",get:function(){return ok},set:function(t){ok=t}},{key:"setupOnce",value:function(){var t=this;ik()&&(this._setup(),setTimeout((function(){return t.start()})))}},{key:"start",value:function(){this._replay&&this._replay.start()}},{key:"stop",value:function(){this._replay&&this._replay.stop()}},{key:"flush",value:function(){if(this._replay&&this._replay.isEnabled())return this._replay.flushImmediate()}},{key:"_setup",value:function(){this._loadReplayOptionsFromClient(),this._replay=new rk({options:this._options,recordingOptions:this._recordingOptions})}},{key:"_loadReplayOptionsFromClient",value:function(){var t=Uy().getClient(),e=t&&t.getOptions();e&&"number"==typeof e.replaysSessionSampleRate&&(this._options.sessionSampleRate=e.replaysSessionSampleRate),e&&"number"==typeof e.replaysOnErrorSampleRate&&(this._options.errorSampleRate=e.replaysOnErrorSampleRate)}}],[{key:"__initStatic",value:function(){this.id="Replay"}}]),t}();sk.__initStatic();var uk={exports:{}},lk={},ck=ki.exports,fk=Symbol.for("react.element"),dk=Symbol.for("react.fragment"),hk=Object.prototype.hasOwnProperty,pk=ck.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vk={key:!0,ref:!0,__self:!0,__source:!0};function gk(t,e,n){var r,i={},a=null,o=null;for(r in void 0!==n&&(a=""+n),void 0!==e.key&&(a=""+e.key),void 0!==e.ref&&(o=e.ref),e)hk.call(e,r)&&!vk.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:fk,type:t,key:a,ref:o,props:i,_owner:pk.current}}lk.Fragment=dk,lk.jsx=gk,lk.jsxs=gk,function(t){t.exports=lk}(uk);var mk=hi("F",uk.exports.Fragment),yk=hi("j",uk.exports.jsx),bk=hi("e",uk.exports.jsxs);function _k(t){var e=Uy().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function xk(t){var e=(t||Uy()).getScope();return e&&e.getTransaction()}function wk(t){return t/1e3}function kk(){var t=xk();if(t){var e="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Transaction: ".concat(e," -> Global error occured")),t.setStatus(e)}}var Sk=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;Ai(this,t),t.prototype.__init.call(this),this._maxlen=e}return Ci(t,[{key:"__init",value:function(){this.spans=[]}},{key:"add",value:function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}]),t}();var Ek=function(t){Ti(n,t);var e=Mi(n);function n(t,r){var i;Ai(this,n),i=e.call(this,t),n.prototype.__init.call(Pi(i)),n.prototype.__init2.call(Pi(i)),n.prototype.__init3.call(Pi(i)),i._hub=r||Uy(),i._name=t.name||"",i.metadata=_i(_i({source:"custom"},t.metadata),{},{spanMetadata:{},changes:[],propagations:0}),i._trimEnd=t.trimEnd,i.transaction=Pi(i);var a=i.metadata.dynamicSamplingContext;return a&&(i._frozenDynamicSamplingContext=_i({},a)),i}return Ci(n,[{key:"__init",value:function(){this._measurements={}}},{key:"__init2",value:function(){this._contexts={}}},{key:"__init3",value:function(){this._frozenDynamicSamplingContext=void 0}},{key:"name",get:function(){return this._name},set:function(t){this.setName(t)}},{key:"setName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom";t===this.name&&e===this.metadata.source||this.metadata.changes.push({source:this.metadata.source,timestamp:dy(),propagations:this.metadata.propagations}),this._name=t,this.metadata.source=e}},{key:"initSpanRecorder",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new Sk(t)),this.spanRecorder.add(this)}},{key:"setContext",value:function(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}},{key:"setMeasurement",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[t]={value:e,unit:n}}},{key:"setMetadata",value:function(t){this.metadata=_i(_i({},this.metadata),t)}},{key:"finish",value:function(t){var e=this;if(void 0===this.endTimestamp){if(this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),vi(Ni(n.prototype),"finish",this).call(this,t),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==e&&t.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(t,e){return t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t})).endTimestamp);var i=this.metadata,a=_i({contexts:_i(_i({},this._contexts),{},{trace:this.getTraceContext()}),spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:_i(_i({},i),{},{dynamicSamplingContext:this.getDynamicSamplingContext()})},i.source&&{transaction_info:{source:i.source,changes:i.changes,propagations:i.propagations}});return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this.name,".")),this._hub.captureEvent(a)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var o=this._hub.getClient();o&&o.recordDroppedEvent("sample_rate","transaction")}}},{key:"toContext",value:function(){return hm(_i(_i({},vi(Ni(n.prototype),"toContext",this).call(this)),{},{name:this.name,trimEnd:this._trimEnd}))}},{key:"updateWithContext",value:function(t){return vi(Ni(n.prototype),"updateWithContext",this).call(this,t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}},{key:"getDynamicSamplingContext",value:function(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;var t=this._hub||Uy(),e=t&&t.getClient();if(!e)return{};var n=e.getOptions()||{},r=n.environment,i=n.release,a=(e.getDsn()||{}).publicKey,o=this.metadata.sampleRate,s=void 0!==o?o.toString():void 0,u=t.getScope(),l=(u&&u.getUser()||{}).segment,c=this.metadata.source;return hm({environment:r,release:i,transaction:c&&"url"!==c?this.name:void 0,user_segment:l,public_key:a,trace_id:this.traceId,sample_rate:s})}}]),n}(function(){function t(e){if(Ai(this,t),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),t.prototype.__init5.call(this),t.prototype.__init6.call(this),t.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)}return Ci(t,[{key:"__init2",value:function(){this.traceId=Vm()}},{key:"__init3",value:function(){this.spanId=Vm().substring(16)}},{key:"__init4",value:function(){this.startTimestamp=hy()}},{key:"__init5",value:function(){this.tags={}}},{key:"__init6",value:function(){this.data={}}},{key:"__init7",value:function(){this.instrumenter="sentry"}},{key:"startChild",value:function(e){var n=new t(_i(_i({},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,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.transaction){var r=e&&e.op||"< unknown op >",i=n.transaction.name||"< unknown name >",a=n.transaction.spanId,o="[Tracing] Starting '".concat(r,"' span on transaction '").concat(i,"' (").concat(a,").");n.transaction.metadata.spanMetadata[n.spanId]={logMessage:o},Kg.log(o)}return n}},{key:"setTag",value:function(t,e){return this.tags=_i(_i({},this.tags),{},xi({},t,e)),this}},{key:"setData",value:function(t,e){return this.data=_i(_i({},this.data),{},xi({},t,e)),this}},{key:"setStatus",value:function(t){return this.status=t,this}},{key:"setHttpStatus",value:function(t){this.setTag("http.status_code",String(t));var e=function(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"}(t);return"unknown_error"!==e&&this.setStatus(e),this}},{key:"isSuccess",value:function(){return"ok"===this.status}},{key:"finish",value:function(t){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){var e=this.transaction.metadata.spanMetadata[this.spanId].logMessage;e&&Kg.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof t?t:hy()}},{key:"toTraceparent",value:function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),"".concat(this.traceId,"-").concat(this.spanId).concat(t)}},{key:"toContext",value:function(){return hm({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})}},{key:"updateWithContext",value:function(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}},{key:"getTraceContext",value:function(){return hm({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})}},{key:"toJSON",value:function(){return hm({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})}}]),t}()),Ck=1e3,Ak=3e4,Tk=5e3,Mk=function(t){Ti(n,t);var e=Mi(n);function n(t,r,i,a){var o;return Ai(this,n),(o=e.call(this,a))._pushActivity=t,o._popActivity=r,o.transactionSpanId=i,o}return Ci(n,[{key:"add",value:function(t){var e=this;t.spanId!==this.transactionSpanId&&(t.finish=function(n){t.endTimestamp="number"==typeof n?n:hy(),e._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),vi(Ni(n.prototype),"add",this).call(this,t)}}]),n}(Sk),Ok=function(t){Ti(n,t);var e=Mi(n);function n(t,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ck,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ak,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Tk,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return Ai(this,n),(i=e.call(this,t,r))._idleHub=r,i._idleTimeout=a,i._finalTimeout=o,i._heartbeatInterval=s,i._onScope=u,n.prototype.__init.call(Pi(i)),n.prototype.__init2.call(Pi(i)),n.prototype.__init3.call(Pi(i)),n.prototype.__init4.call(Pi(i)),u&&(Pk(r),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("Setting idle transaction on scope. Span ID: ".concat(i.spanId)),r.configureScope((function(t){return t.setSpan(Pi(i))}))),i._startIdleTimeout(),setTimeout((function(){i._finished||(i.setStatus("deadline_exceeded"),i.finish())}),i._finalTimeout),i}return Ci(n,[{key:"__init",value:function(){this.activities={}}},{key:"__init2",value:function(){this._heartbeatCounter=0}},{key:"__init3",value:function(){this._finished=!1}},{key:"__init4",value:function(){this._beforeFinishCallbacks=[]}},{key:"finish",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hy();if(this._finished=!0,this.activities={},this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);var r,i=zi(this._beforeFinishCallbacks);try{for(i.s();!(r=i.n()).done;){var a=r.value;a(this,e)}}catch(o){i.e(o)}finally{i.f()}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(n){if(n.spanId===t.spanId)return!0;n.endTimestamp||(n.endTimestamp=e,n.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));var r=n.startTimestamp<e;return r||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(n,void 0,2)),r})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] No active IdleTransaction");return this._onScope&&Pk(this._idleHub),vi(Ni(n.prototype),"finish",this).call(this,e)}},{key:"registerBeforeFinishCallback",value:function(t){this._beforeFinishCallbacks.push(t)}},{key:"initSpanRecorder",value:function(t){var e=this;if(!this.spanRecorder){this.spanRecorder=new Mk((function(t){e._finished||e._pushActivity(t)}),(function(t){e._finished||e._popActivity(t)}),this.spanId,t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}},{key:"_cancelIdleTimeout",value:function(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}},{key:"_startIdleTimeout",value:function(t){var e=this;this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout((function(){e._finished||0!==Object.keys(e.activities).length||e.finish(t)}),this._idleTimeout)}},{key:"_pushActivity",value:function(t){this._cancelIdleTimeout(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] pushActivity: ".concat(t)),this.activities[t]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}},{key:"_popActivity",value:function(t){if(this.activities[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] popActivity ".concat(t)),delete this.activities[t],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var e=hy()+this._idleTimeout/1e3;this._startIdleTimeout(e)}}},{key:"_beat",value:function(){if(!this._finished){var t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}}},{key:"_pingHeartbeat",value:function(){var t=this;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout((function(){t._beat()}),this._heartbeatInterval)}}]),n}(Ek);function Pk(t){var e=t.getScope();e&&(e.getTransaction()&&e.setSpan(void 0))}function Rk(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function Dk(t,e,n){return _k(e)?void 0!==t.sampled?(t.setMetadata({sampleRate:Number(t.sampled)}),t):("function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:(r=e.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})),function(t){if(Ng(t)||"number"!=typeof t&&"boolean"!=typeof t)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(t)," of type ").concat(JSON.stringify(Fi(t)),".")),!1;if(t<0||t>1)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(t,".")),!1;return!0}(r)?r?(t.sampled=Math.random()<r,t.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] starting ".concat(t.op," transaction - ").concat(t.name)),t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),t)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Discarding transaction because ".concat("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var r}function Lk(t,e){var n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=t.instrumenter||"sentry";i!==a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.error("A transaction was started with instrumenter=`".concat(a,"`, but the SDK is configured with the `").concat(i,"` instrumenter.\nThe transaction will not be sampled. Please use the ").concat(i," instrumentation to start transactions.")),t.sampled=!1);var o=new Ek(t,this);return(o=Dk(o,r,_i({parentSampled:t.parentSampled,transactionContext:t},e))).sampled&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),o}function Ik(t,e,n,r,i,a,o){var s=t.getClient(),u=s&&s.getOptions()||{},l=new Ok(e,t,n,r,o,i);return(l=Dk(l,u,_i({parentSampled:e.parentSampled,transactionContext:e},a))).sampled&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l}function Nk(){var t=Vy();if(t.__SENTRY__){var e={mongodb:function(){return new(Xm(gi,"./integrations/node/mongo").Mongo)},mongoose:function(){return new(Xm(gi,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql:function(){return new(Xm(gi,"./integrations/node/mysql").Mysql)},pg:function(){return new(Xm(gi,"./integrations/node/postgres").Postgres)}},n=Object.keys(e).filter((function(t){return!!function(t){var e;try{e=Xm(gi,t)}catch(r){}try{var n=Xm(gi,"process").cwd;e=Xm(gi,"".concat(n(),"/node_modules/").concat(t))}catch(r){}return e}(t)})).map((function(t){try{return e[t]()}catch(n){return}})).filter((function(t){return t}));n.length>0&&(t.__SENTRY__.integrations=[].concat(mi(t.__SENTRY__.integrations||[]),mi(n)))}}var Fk=jg;var zk=function(t,e,n){var r,i;return function(a){e.value>=0&&(a||n)&&((i=e.value-(r||0))||void 0===r)&&(r=e.value,e.delta=i,t(e))}},jk=function(){return Fk.__WEB_VITALS_POLYFILL__?Fk.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||function(){var t=Fk.performance.timing,e=Fk.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(var r in t)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(t[r]-t.navigationStart,0));return n}()):Fk.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Bk=function(){var t=jk();return t&&t.activationStart||0},Vk=function(t,e){var n=jk(),r="navigate";return n&&(r=Fk.document.prerendering||Bk()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},Hk=function(t,e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var r=new PerformanceObserver((function(t){e(t.getEntries())}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(i){}},Uk=function(t,e){var n=function n(r){"pagehide"!==r.type&&"hidden"!==Fk.document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Wk=-1,Yk=function(){return Wk<0&&(Wk="hidden"!==Fk.document.visibilityState||Fk.document.prerendering?1/0:0,Uk((function(t){var e=t.timeStamp;Wk=e}),!0)),{get firstHiddenTime(){return Wk}}},Gk={};function qk(t){return"number"==typeof t&&isFinite(t)}function Zk(t,e){var n=e.startTimestamp,r=fi(e,en);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild(_i({startTimestamp:n},r))}function Xk(){return Fk&&Fk.addEventListener&&Fk.performance}var Kk,$k,Qk=0,Jk={};function tS(){var t=Xk();t&&py&&(t.mark&&Fk.performance.mark("sentry-tracing-init"),function(t){var e,n=Vk("CLS",0),r=0,i=[],a=function(t){t.forEach((function(t){if(!t.hadRecentInput){var a=i[0],o=i[i.length-1];r&&0!==i.length&&t.startTime-o.startTime<1e3&&t.startTime-a.startTime<5e3?(r+=t.value,i.push(t)):(r=t.value,i=[t]),r>n.value&&(n.value=r,n.entries=i,e&&e())}}))},o=Hk("layout-shift",a);o&&(e=zk(t,n),Uk((function(){a(o.takeRecords()),e(!0)})))}((function(t){var e=t.entries.pop();e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding CLS"),Jk.cls={value:t.value,unit:""},$k=e)})),function(t){var e,n=Yk(),r=Vk("LCP"),i=function(t){var i=t[t.length-1];if(i){var a=Math.max(i.startTime-Bk(),0);a<n.firstHiddenTime&&(r.value=a,r.entries=[i],e())}},a=Hk("largest-contentful-paint",i);if(a){e=zk(t,r);var o=function(){Gk[r.id]||(i(a.takeRecords()),a.disconnect(),Gk[r.id]=!0,e(!0))};["keydown","click"].forEach((function(t){addEventListener(t,o,{once:!0,capture:!0})})),Uk(o,!0)}}((function(t){var e=t.entries.pop();e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding LCP"),Jk.lcp={value:t.value,unit:"millisecond"},Kk=e)})),function(t){var e,n=Yk(),r=Vk("FID"),i=function(t){t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),e(!0))},a=function(t){t.forEach(i)},o=Hk("first-input",a);e=zk(t,r),o&&Uk((function(){a(o.takeRecords()),o.disconnect()}),!0)}((function(t){var e=t.entries.pop();if(e){var n=wk(py),r=wk(e.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding FID"),Jk.fid={value:t.value,unit:"millisecond"},Jk["mark.fid"]={value:n+r,unit:"second"}}})))}function eS(t){var e=Xk();if(e&&Fk.performance.getEntries&&py){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,i=wk(py),a=e.getEntries();if(a.slice(Qk).forEach((function(e){var a=wk(e.startTime),o=wk(e.duration);if(!("navigation"===t.op&&i+a<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(r){nS(t,e,r,n)})),nS(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),nS(t,e,"fetch",n,"cache","domainLookupStart"),nS(t,e,"domainLookup",n,"DNS"),function(t,e,n){Zk(t,{op:"browser",description:"request",startTimestamp:n+wk(e.requestStart),endTimestamp:n+wk(e.responseEnd)}),Zk(t,{op:"browser",description:"response",startTimestamp:n+wk(e.responseStart),endTimestamp:n+wk(e.responseEnd)})}(t,e,n)}(t,e,i),n=i+wk(e.responseStart),r=i+wk(e.requestStart);break;case"mark":case"paint":case"measure":!function(t,e,n,r,i){var a=i+n,o=a+r;Zk(t,{description:e.name,endTimestamp:o,op:e.entryType,startTimestamp:a})}(t,e,a,o,i);var s=Yk(),u=e.startTime<s.firstHiddenTime;"first-paint"===e.name&&u&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding FP"),Jk.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&u&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding FCP"),Jk.fcp={value:e.startTime,unit:"millisecond"});break;case"resource":var l=e.name.replace(Fk.location.origin,"");!function(t,e,n,r,i,a){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;var o={};"transferSize"in e&&(o["Transfer Size"]=e.transferSize);"encodedBodySize"in e&&(o["Encoded Body Size"]=e.encodedBodySize);"decodedBodySize"in e&&(o["Decoded Body Size"]=e.decodedBodySize);var s=a+r;Zk(t,{description:n,endTimestamp:s+i,op:e.initiatorType?"resource.".concat(e.initiatorType):"resource.other",startTimestamp:s,data:o})}(t,e,l,a,o,i)}})),Qk=Math.max(a.length-1,0),function(t){var e=Fk.navigator;if(!e)return;var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),qk(n.rtt)&&(Jk["connection.rtt"]={value:n.rtt,unit:"millisecond"}));qk(e.deviceMemory)&&t.setTag("deviceMemory","".concat(e.deviceMemory," GB"));qk(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===t.op){"number"==typeof n&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding TTFB"),Jk.ttfb={value:1e3*(n-t.startTimestamp),unit:"millisecond"},"number"==typeof r&&r<=n&&(Jk["ttfb.requestTime"]={value:1e3*(n-r),unit:"millisecond"})),["fcp","fp","lcp"].forEach((function(e){if(Jk[e]&&!(i>=t.startTimestamp)){var n=Jk[e].value,r=i+wk(n),a=Math.abs(1e3*(r-t.startTimestamp)),o=a-n;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Normalized ".concat(e," from ").concat(n," to ").concat(a," (").concat(o,")")),Jk[e].value=a}}));var o=Jk["mark.fid"];o&&Jk.fid&&(Zk(t,{description:"first input delay",endTimestamp:o.value+wk(Jk.fid.value),op:"ui.action",startTimestamp:o.value}),delete Jk["mark.fid"]),"fcp"in Jk||delete Jk.cls,Object.keys(Jk).forEach((function(e){t.setMeasurement(e,Jk[e].value,Jk[e].unit)})),function(t){Kk&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding LCP Data"),Kk.element&&t.setTag("lcp.element",Ug(Kk.element)),Kk.id&&t.setTag("lcp.id",Kk.id),Kk.url&&t.setTag("lcp.url",Kk.url.trim().slice(0,200)),t.setTag("lcp.size",Kk.size));$k&&$k.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding CLS Data"),$k.sources.forEach((function(e,n){return t.setTag("cls.source.".concat(n+1),Ug(e.node))})))}(t)}Kk=void 0,$k=void 0,Jk={}}}function nS(t,e,n,r,i,a){var o=a?e[a]:e["".concat(n,"End")],s=e["".concat(n,"Start")];s&&o&&Zk(t,{op:"browser",description:i||n,startTimestamp:r+wk(s),endTimestamp:r+wk(o)})}var rS=["localhost",/^\//],iS={traceFetch:!0,traceXHR:!0,tracingOrigins:rS,tracePropagationTargets:rS};function aS(t){var e=_i({traceFetch:iS.traceFetch,traceXHR:iS.traceXHR},t),n=e.traceFetch,r=e.traceXHR,i=e.tracePropagationTargets,a=e.tracingOrigins,o=e.shouldCreateSpanForRequest,s="function"==typeof o?o:function(t){return!0},u=function(t){return function(t,e){return im(t,e||rS)}(t,i||a)},l={};n&&Tm("fetch",(function(t){!function(t,e,n,r){if(!_k()||!t.fetchData||!e(t.fetchData.url))return;if(t.endTimestamp){var i=t.fetchData.__span;if(!i)return;var a=r[i];return void(a&&(t.response?a.setHttpStatus(t.response.status):t.error&&a.setStatus("internal_error"),a.finish(),delete r[i]))}var o=Uy().getScope(),s=o&&o.getSpan(),u=s&&s.transaction;if(s&&u){var l=s.startChild({data:_i(_i({},t.fetchData),{},{type:"fetch"}),description:"".concat(t.fetchData.method," ").concat(t.fetchData.url),op:"http.client"});t.fetchData.__span=l.spanId,r[l.spanId]=l;var c=t.args[0];t.args[1]=t.args[1]||{};var f=t.args[1];n(t.fetchData.url)&&(f.headers=function(t,e,n,r){var i=Dy(e),a=n.toTraceparent(),o="undefined"!=typeof Request&&Fg(t,Request)?t.headers:r.headers;if(o){if("undefined"!=typeof Headers&&Fg(o,Headers)){var s=new Headers(o);return s.append("sentry-trace",a),i&&s.append(Oy,i),s}if(Array.isArray(o)){var u=[].concat(mi(o),[["sentry-trace",a]]);return i&&u.push([Oy,i]),u}var l="baggage"in o?o.baggage:void 0,c=[];return Array.isArray(l)?c.push.apply(c,mi(l)):l&&c.push(l),i&&c.push(i),_i(_i({},o),{},{"sentry-trace":a,baggage:c.length>0?c.join(","):void 0})}return{"sentry-trace":a,baggage:i}}(c,u.getDynamicSamplingContext(),l,f),u.metadata.propagations++)}}(t,s,u,l)})),r&&Tm("xhr",(function(t){!function(t,e,n,r){if(!_k()||t.xhr&&t.xhr.__sentry_own_request__||!(t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)))return;var i=t.xhr.__sentry_xhr__;if(t.endTimestamp){var a=t.xhr.__sentry_xhr_span_id__;if(!a)return;var o=r[a];return void(o&&(o.setHttpStatus(i.status_code),o.finish(),delete r[a]))}var s=Uy().getScope(),u=s&&s.getSpan(),l=u&&u.transaction;if(u&&l){var c=u.startChild({data:_i(_i({},i.data),{},{type:"xhr",method:i.method,url:i.url}),description:"".concat(i.method," ").concat(i.url),op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=c.spanId,r[t.xhr.__sentry_xhr_span_id__]=c,t.xhr.setRequestHeader&&n(t.xhr.__sentry_xhr__.url))try{t.xhr.setRequestHeader("sentry-trace",c.toTraceparent());var f=Dy(l.getDynamicSamplingContext());f&&t.xhr.setRequestHeader(Oy,f),l.metadata.propagations++}catch(y1){}}}(t,s,u,l)}))}var oS,sS=_i({idleTimeout:Ck,finalTimeout:Ak,heartbeatInterval:Tk,markBackgroundTransactions:!0,routingInstrumentation:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(Fk&&Fk.location){var r,i=Fk.location.href;e&&(r=t({name:Fk.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&Tm("history",(function(e){var n=e.to,a=e.from;void 0===a&&i&&-1!==i.indexOf(n)?i=void 0:a!==n&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Finishing current transaction with op: ".concat(r.op)),r.finish()),r=t({name:Fk.location.pathname,op:"navigation",metadata:{source:"url"}}))}))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}},iS),uS=function(){function t(e){Ai(this,t),t.prototype.__init.call(this),this.options=_i(_i({},sS),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),tS(),this.options.enableLongTask&&Hk("longtask",(function(t){var e,n=zi(t);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=xk();if(!i)return;var a=wk(py+r.startTime),o=wk(r.duration);i.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:a,endTimestamp:a+o})}}catch(s){n.e(s)}finally{n.f()}}))}return Ci(t,[{key:"__init",value:function(){this.name="BrowserTracing"}},{key:"setupOnce",value:function(t,e){var n=this;this._getCurrentHub=e;var r=this.options,i=r.routingInstrumentation,a=r.startTransactionOnLocationChange,o=r.startTransactionOnPageLoad,s=r.markBackgroundTransactions,u=r.traceFetch,l=r.traceXHR,c=r.tracePropagationTargets,f=r.shouldCreateSpanForRequest,d=r._experiments;i((function(t){return n._createRouteTransaction(t)}),o,a),s&&(Fk&&Fk.document?Fk.document.addEventListener("visibilitychange",(function(){var t=xk();if(Fk.document.hidden&&t){var e="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Transaction: ".concat(e," -> since tab moved to the background, op: ").concat(t.op)),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),d.enableInteractions&&this._registerInteractionListener(),aS({traceFetch:u,traceXHR:l,tracePropagationTargets:c,shouldCreateSpanForRequest:f})}},{key:"_createRouteTransaction",value:function(t){if(this._getCurrentHub){var e=this.options,n=e.beforeNavigate,r=e.idleTimeout,i=e.finalTimeout,a=e.heartbeatInterval,o="pageload"===t.op,s=o?lS("sentry-trace"):null,u=o?lS("baggage"):null,l=s?function(t){var e,n=t.match(vy);if(t&&n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(s):void 0,c=u?function(t){if(Og(t)||Array.isArray(t)){var e={};if(Array.isArray(t))e=t.reduce((function(t,e){var n=Ly(e);return _i(_i({},t),n)}),{});else{if(!t)return;e=Ly(t)}var n=Object.entries(e).reduce((function(t,e){var n=wi(e,2),r=n[0],i=n[1];return r.match(Ry)&&(t[r.slice(Py.length)]=i),t}),{});return Object.keys(n).length>0?n:void 0}}(u):void 0,f=_i(_i(_i({},t),l),{},{metadata:_i(_i({},t.metadata),{},{dynamicSamplingContext:l&&!c?{}:c}),trimEnd:!0}),d="function"==typeof n?n(f):f,h=void 0===d?_i(_i({},f),{},{sampled:!1}):d;h.metadata=h.name!==f.name?_i(_i({},h.metadata),{},{source:"custom"}):h.metadata,this._latestRouteName=h.name,this._latestRouteSource=h.metadata&&h.metadata.source,!1===h.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Will not send ".concat(h.op," transaction because of beforeNavigate.")),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Starting ".concat(h.op," transaction on scope"));var p=Ik(this._getCurrentHub(),h,r,i,!0,{location:Fk.location},a);return p.registerBeforeFinishCallback((function(t){eS(t)})),p}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("[Tracing] Did not create ".concat(t.op," transaction because _getCurrentHub is invalid."))}},{key:"_registerInteractionListener",value:function(){var t,e=this,n=function(){var n=e.options,r=n.idleTimeout,i=n.finalTimeout,a=n.heartbeatInterval,o="ui.action.click";if(t&&(t.finish(),t=void 0),e._getCurrentHub)if(e._latestRouteName){var s=e._getCurrentHub(),u=Fk.location,l={name:e._latestRouteName,op:o,trimEnd:!0,metadata:{source:e._latestRouteSource||"url"}};t=Ik(s,l,r,i,!0,{location:u},a)}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("[Tracing] Did not create ".concat(o," transaction because _latestRouteName is missing."));else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("[Tracing] Did not create ".concat(o," transaction because _getCurrentHub is invalid."))};["click"].forEach((function(t){addEventListener(t,n,{once:!1,capture:!0})}))}}]),t}();function lS(t){var e,n=(e="meta[name=".concat(t,"]"),Hg.document&&Hg.document.querySelector?Hg.document.querySelector(e):null);return n?n.getAttribute("content"):null}("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&((oS=Vy()).__SENTRY__&&(oS.__SENTRY__.extensions=oS.__SENTRY__.extensions||{},oS.__SENTRY__.extensions.startTransaction||(oS.__SENTRY__.extensions.startTransaction=Lk),oS.__SENTRY__.extensions.traceHeaders||(oS.__SENTRY__.extensions.traceHeaders=Rk)),Zm()&&Nk(),Tm("error",kk),Tm("unhandledrejection",kk));var cS=function(){return cS=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},cS.apply(this,arguments)};function fS(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(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 dS(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var hS="-ms-",pS="-moz-",vS="-webkit-",gS="comm",mS="rule",yS="decl",bS="@keyframes",_S=Math.abs,xS=String.fromCharCode,wS=Object.assign;function kS(t){return t.trim()}function SS(t,e){return(t=e.exec(t))?t[0]:t}function ES(t,e,n){return t.replace(e,n)}function CS(t,e){return t.indexOf(e)}function AS(t,e){return 0|t.charCodeAt(e)}function TS(t,e,n){return t.slice(e,n)}function MS(t){return t.length}function OS(t){return t.length}function PS(t,e){return e.push(t),t}var RS=1,DS=1,LS=0,IS=0,NS=0,FS="";function zS(t,e,n,r,i,a,o){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:RS,column:DS,length:o,return:""}}function jS(t,e){return wS(zS("",null,null,"",null,null,0),t,{length:-t.length},e)}function BS(){return NS=IS>0?AS(FS,--IS):0,DS--,10===NS&&(DS=1,RS--),NS}function VS(){return NS=IS<LS?AS(FS,IS++):0,DS++,10===NS&&(DS=1,RS++),NS}function HS(){return AS(FS,IS)}function US(){return IS}function WS(t,e){return TS(FS,t,e)}function YS(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 GS(t){return kS(WS(IS-1,XS(91===t?t+2:40===t?t+1:t)))}function qS(t){for(;(NS=HS())&&NS<33;)VS();return YS(t)>2||YS(NS)>3?"":" "}function ZS(t,e){for(;--e&&VS()&&!(NS<48||NS>102||NS>57&&NS<65||NS>70&&NS<97););return WS(t,US()+(e<6&&32==HS()&&32==VS()))}function XS(t){for(;VS();)switch(NS){case t:return IS;case 34:case 39:34!==t&&39!==t&&XS(NS);break;case 40:41===t&&XS(t);break;case 92:VS()}return IS}function KS(t,e){for(;VS()&&t+NS!==57&&(t+NS!==84||47!==HS()););return"/*"+WS(e,IS-1)+"*"+xS(47===t?t:VS())}function $S(t){for(;!YS(HS());)VS();return WS(t,IS)}function QS(t){return function(t){return FS="",t}(JS("",null,null,null,[""],t=function(t){return RS=DS=1,LS=MS(FS=t),IS=0,[]}(t),0,[0],t))}function JS(t,e,n,r,i,a,o,s,u){for(var l=0,c=0,f=o,d=0,h=0,p=0,v=1,g=1,m=1,y=0,b="",_=i,x=a,w=r,k=b;g;)switch(p=y,y=VS()){case 40:if(108!=p&&58==AS(k,f-1)){-1!=CS(k+=ES(GS(y),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:k+=GS(y);break;case 9:case 10:case 13:case 32:k+=qS(p);break;case 92:k+=ZS(US()-1,7);continue;case 47:switch(HS()){case 42:case 47:PS(eE(KS(VS(),US()),e,n),u);break;default:k+="/"}break;case 123*v:s[l++]=MS(k)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:h>0&&MS(k)-f&&PS(h>32?nE(k+";",r,n,f-1):nE(ES(k," ","")+";",r,n,f-2),u);break;case 59:k+=";";default:if(PS(w=tE(k,e,n,l,c,i,s,b,_=[],x=[],f),a),123===y)if(0===c)JS(k,e,w,w,_,a,f,s,x);else switch(99===d&&110===AS(k,3)?100:d){case 100:case 109:case 115:JS(t,w,w,r&&PS(tE(t,w,w,0,0,i,s,b,i,_=[],f),x),i,x,f,s,r?_:x);break;default:JS(k,w,w,w,[""],x,0,s,x)}}l=c=h=0,v=m=1,b=k="",f=o;break;case 58:f=1+MS(k),h=p;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==BS())continue;switch(k+=xS(y),y*v){case 38:m=c>0?1:(k+="\f",-1);break;case 44:s[l++]=(MS(k)-1)*m,m=1;break;case 64:45===HS()&&(k+=GS(VS())),d=HS(),c=f=MS(b=k+=$S(US())),y++;break;case 45:45===p&&2==MS(k)&&(v=0)}}return a}function tE(t,e,n,r,i,a,o,s,u,l,c){for(var f=i-1,d=0===i?a:[""],h=OS(d),p=0,v=0,g=0;p<r;++p)for(var m=0,y=TS(t,f+1,f=_S(v=o[p])),b=t;m<h;++m)(b=kS(v>0?d[m]+" "+y:ES(y,/&\f/g,d[m])))&&(u[g++]=b);return zS(t,e,n,0===i?mS:s,u,l,c)}function eE(t,e,n){return zS(t,e,n,gS,xS(NS),TS(t,2,-2),0)}function nE(t,e,n,r){return zS(t,e,n,yS,TS(t,0,r),TS(t,r+1,-1),r)}function rE(t,e,n){switch(function(t,e){return 45^AS(t,0)?(((e<<2^AS(t,0))<<2^AS(t,1))<<2^AS(t,2))<<2^AS(t,3):0}(t,e)){case 5103:return vS+"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 vS+t+t;case 4789:return pS+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return vS+t+pS+t+hS+t+t;case 5936:switch(AS(t,e+11)){case 114:return vS+t+hS+ES(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return vS+t+hS+ES(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return vS+t+hS+ES(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return vS+t+hS+t+t;case 6165:return vS+t+hS+"flex-"+t+t;case 5187:return vS+t+ES(t,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+t;case 5443:return vS+t+hS+"flex-item-"+ES(t,/flex-|-self/g,"")+(SS(t,/flex-|baseline/)?"":hS+"grid-row-"+ES(t,/flex-|-self/g,""))+t;case 4675:return vS+t+hS+"flex-line-pack"+ES(t,/align-content|flex-|-self/g,"")+t;case 5548:return vS+t+hS+ES(t,"shrink","negative")+t;case 5292:return vS+t+hS+ES(t,"basis","preferred-size")+t;case 6060:return vS+"box-"+ES(t,"-grow","")+vS+t+hS+ES(t,"grow","positive")+t;case 4554:return vS+ES(t,/([^-])(transform)/g,"$1-webkit-$2")+t;case 6187:return ES(ES(ES(t,/(zoom-|grab)/,vS+"$1"),/(image-set)/,vS+"$1"),t,"")+t;case 5495:case 3959:return ES(t,/(image-set\([^]*)/,vS+"$1$`$1");case 4968:return ES(ES(t,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+vS+t+t;case 4200:if(!SS(t,/flex-|baseline/))return hS+"grid-column-align"+TS(t,e)+t;break;case 2592:case 3360:return hS+ES(t,"template-","")+t;case 4384:case 3616:return n&&n.some((function(t,n){return e=n,SS(t.props,/grid-\w+-end/)}))?~CS(t+(n=n[e].value),"span")?t:hS+ES(t,"-start","")+t+hS+"grid-row-span:"+(~CS(n,"span")?SS(n,/\d+/):+SS(n,/\d+/)-+SS(t,/\d+/))+";":hS+ES(t,"-start","")+t;case 4896:case 4128:return n&&n.some((function(t){return SS(t.props,/grid-\w+-start/)}))?t:hS+ES(ES(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return ES(t,/(.+)-inline(.+)/,vS+"$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(MS(t)-1-e>6)switch(AS(t,e+1)){case 109:if(45!==AS(t,e+4))break;case 102:return ES(t,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+pS+(108==AS(t,e+3)?"$3":"$2-$3"))+t;case 115:return~CS(t,"stretch")?rE(ES(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return ES(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,r,i,a,o,s){return hS+n+":"+r+s+(i?hS+n+"-span:"+(a?o:+o-+r)+s:"")+t}));case 4949:if(121===AS(t,e+6))return ES(t,":",":"+vS)+t;break;case 6444:switch(AS(t,45===AS(t,14)?18:11)){case 120:return ES(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+vS+(45===AS(t,14)?"inline-":"")+"box$3$1"+vS+"$2$3$1"+hS+"$2box$3")+t;case 100:return ES(t,":",":"+hS)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ES(t,"scroll-","scroll-snap-")+t}return t}function iE(t,e){for(var n="",r=OS(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function aE(t,e,n,r){switch(t.type){case"@import":case yS:return t.return=t.return||t.value;case gS:return"";case bS:return t.return=t.value+"{"+iE(t.children,r)+"}";case mS:t.value=t.props.join(",")}return MS(n=iE(t.children,r))?t.return=t.value+"{"+n+"}":""}function oE(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case yS:return void(t.return=rE(t.value,t.length,n));case bS:return iE([jS(t,{value:ES(t.value,"@","@"+vS)})],r);case mS:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,(function(e){switch(SS(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return iE([jS(t,{props:[ES(e,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return iE([jS(t,{props:[ES(e,/:(plac\w+)/,":-webkit-input-$1")]}),jS(t,{props:[ES(e,/:(plac\w+)/,":-moz-$1")]}),jS(t,{props:[ES(e,/:(plac\w+)/,hS+"input-$1")]})],r)}return""}))}}var sE={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},uE="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",lE="active",cE="data-styled-version",fE="6.0.0-beta.11",dE="/*!sc*/\n",hE="undefined"!=typeof window&&"HTMLElement"in window,pE=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),vE={},gE=Object.freeze([]),mE=Object.freeze({});function yE(t,e,n){return void 0===n&&(n=mE),t.theme!==n.theme&&t.theme||e||n.theme}var bE=["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"],_E=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xE=/(^-|-$)/g;function wE(t){return t.replace(_E,"-").replace(xE,"")}var kE=/(a)(d)/gi,SE=function(t){return String.fromCharCode(t+(t>25?39:97))};function EE(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=SE(e%52)+n;return(SE(e%52)+n).replace(kE,"$1-$2")}var CE,AE=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},TE=function(t){return AE(5381,t)};function ME(t){return EE(TE(t)>>>0)}function OE(t){return"string"==typeof t&&!0}var PE="function"==typeof Symbol&&Symbol.for,RE=PE?Symbol.for("react.memo"):60115,DE=PE?Symbol.for("react.forward_ref"):60112,LE={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},IE={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},NE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},FE=((CE={})[DE]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},CE[RE]=NE,CE);function zE(t){return("type"in(e=t)&&e.type.$$typeof)===RE?NE:"$$typeof"in t?FE[t.$$typeof]:LE;var e}var jE=Object.defineProperty,BE=Object.getOwnPropertyNames,VE=Object.getOwnPropertySymbols,HE=Object.getOwnPropertyDescriptor,UE=Object.getPrototypeOf,WE=Object.prototype;function YE(t,e,n){if("string"!=typeof e){if(WE){var r=UE(e);r&&r!==WE&&YE(t,r,n)}var i=BE(e);VE&&(i=i.concat(VE(e)));for(var a=zE(t),o=zE(e),s=0;s<i.length;++s){var u=i[s];if(!(u in IE||n&&n[u]||o&&u in o||a&&u in a)){var l=HE(e,u);try{jE(t,u,l)}catch(c){}}}}return t}function GE(t){return"object"===Fi(t)&&"styledComponentId"in t}function qE(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter(Boolean).join(" ")}function ZE(t){return!(null===t||"object"!==Fi(t)||t.constructor&&"Object"!==t.constructor.name||"[object Object]"!==(t.toString?t.toString():Object.prototype.toString.call(t))||"props"in t&&(t.$$typeof||void 0===t.constructor))}function XE(t,e,n){if(void 0===n&&(n=!1),!n&&!ZE(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)t[r]=XE(t[r],e[r]);else if(ZE(e))for(var r in e)t[r]=XE(t[r],e[r]);return t}function KE(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 $E=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,n=0;n<t;n++)e+=this.groupSizes[n];return e},t.prototype.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;t>=i;)if((i<<=1)<0)throw KE(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}var o=this.indexOfGroup(t+1);if(Array.isArray(e)){a=0;for(var s=e.length;a<s;a++)this.tag.insertRule(o,e[a])&&(this.groupSizes[t]++,o++)}else this.tag.insertRule(o,e)&&this.groupSizes[t]++},t.prototype.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],n=this.indexOfGroup(t),r=n+e;this.groupSizes[t]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n,a=r;a<i;a++)e+="".concat(this.tag.getRule(a)).concat(dE);return e},t}(),QE=new Map,JE=new Map,tC=1,eC=function(t){if(QE.has(t))return QE.get(t);for(;JE.has(tC);)tC++;var e=tC++;return QE.set(t,e),JE.set(e,t),e},nC=function(t,e){QE.set(t,e),JE.set(e,t)},rC="style[".concat(uE,"][").concat(cE,'="').concat(fE,'"]'),iC=new RegExp("^".concat(uE,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),aC=function(t){for(var e=t.getTag(),n=e.length,r="",i=function(n){var i=function(t){return JE.get(t)}(n);if(void 0===i)return"continue";var a=t.names.get(i),o=e.getGroup(n);if(void 0===a||0===o.length)return"continue";var s="".concat(uE,".g").concat(n,'[id="').concat(i,'"]'),u="";void 0!==a&&a.forEach((function(t){t.length>0&&(u+="".concat(t,","))})),r+="".concat(o).concat(s,'{content:"').concat(u,'"}').concat(dE)},a=0;a<n;a++)i(a);return r},oC=function(t,e,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&t.registerName(e,r)},sC=function(t,e){for(var n,r=(null!==(n=e.textContent)&&void 0!==n?n:"").split(dE),i=[],a=0,o=r.length;a<o;a++){var s=r[a].trim();if(s){var u=s.match(iC);if(u){var l=0|parseInt(u[1],10),c=u[2];0!==l&&(nC(c,l),oC(t,c,u[3]),t.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}};var uC=function(t){var e=document.head,n=t||e,r=document.createElement("style"),i=function(t){for(var e=t.childNodes,n=e.length;n>=0;n--){var r=e[n];if(r&&1===r.nodeType&&r.hasAttribute(uE))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(uE,lE),r.setAttribute(cE,fE);var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},lC=function(){function t(t){var e=this.element=uC(t);e.appendChild(document.createTextNode("")),this.sheet=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 KE(17)}(e),this.length=0}return t.prototype.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(n){return!1}},t.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},t.prototype.getRule=function(t){var e=this.sheet.cssRules[t];return void 0!==e&&"string"==typeof e.cssText?e.cssText:""},t}(),cC=function(){function t(t){var e=this.element=uC(t);this.nodes=e.childNodes,this.length=0}return t.prototype.insertRule=function(t,e){if(t<=this.length&&t>=0){var n=document.createTextNode(e),r=this.nodes[t];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),fC=function(){function t(t){this.rules=[],this.length=0}return t.prototype.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},t.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},t.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),dC=hE,hC={isServer:!hE,useCSSOMInjection:!pE},pC=function(){function t(t,e,n){void 0===t&&(t=mE),void 0===e&&(e={}),this.options=cS(cS({},hC),t),this.gs=e,this.names=new Map(n),this.server=!!t.isServer,!this.server&&hE&&dC&&(dC=!1,function(t){for(var e=document.querySelectorAll(rC),n=0,r=e.length;n<r;n++){var i=e[n];i&&i.getAttribute(uE)!==lE&&(sC(t,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}return t.registerId=function(t){return eC(t)},t.prototype.reconstructWithOptions=function(e,n){return void 0===n&&(n=!0),new t(cS(cS({},this.options),e),this.gs,n&&this.names||void 0)},t.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(t=function(t){var e=t.isServer,n=t.useCSSOMInjection,r=t.target;return e?new fC(r):n?new lC(r):new cC(r)}(this.options),new $E(t)));var t},t.prototype.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},t.prototype.registerName=function(t,e){if(eC(t),this.names.has(t))this.names.get(t).add(e);else{var n=new Set;n.add(e),this.names.set(t,n)}},t.prototype.insertRules=function(t,e,n){this.registerName(t,e),this.getTag().insertRules(eC(t),n)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(eC(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t.prototype.toString=function(){return aC(this)},t}(),vC=/^\s*\/\/.*$/gm,gC=[":","[",".","#"];function mC(t,e){return t.map((function(t){return"rule"===t.type&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map((function(t){return"".concat(e," ").concat(t)}))),Array.isArray(t.children)&&(t.children=mC(t.children,e)),t}))}var yC=pa.createContext({shouldForwardProp:void 0,styleSheet:void 0});yC.Consumer;var bC=pa.createContext(void 0);bC.Consumer;var _C=new pC,xC=function(t){var e,n,r,i,a=void 0===t?mE:t,o=a.options,s=void 0===o?mE:o,u=a.plugins,l=void 0===u?gE:u,c=function(t,r,a){return 0===r&&gC.includes(a[n.length])||a.match(i)?t:".".concat(e)},f=function(t){if(t.type===mS&&t.value.includes("&")){var e=t.props;e[0]=e[0].replace(r,c)}},d=function(t,a,o,u){void 0===a&&(a=""),void 0===o&&(o=""),void 0===u&&(u="&");var c=t.replace(vC,"");e=u,n=a,r=new RegExp("\\".concat(n,"\\b"),"g"),i=new RegExp("(\\".concat(n,"\\b){2,}"));var d=l.slice();(s.prefix||void 0===s.prefix)&&d.unshift(oE),d.push(f,aE);var h,p,v=QS(o||a?"".concat(o," ").concat(a," { ").concat(c," }"):c);return s.namespace&&(v=mC(v,s.namespace)),h=v,p=function(t){var e=OS(t);return function(n,r,i,a){for(var o="",s=0;s<e;s++)o+=t[s](n,r,i,a)||"";return o}}(d),h.map((function(t,e){return p(t,e,h,p)})).filter(Boolean)};return d.hash=l.length?l.reduce((function(t,e){return e.name||KE(15),AE(t,e.name)}),5381).toString():"",d}();function wC(){return ki.exports.useContext(yC).styleSheet||_C}function kC(){return ki.exports.useContext(bC)||xC}var SC=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=xC);var r=n.name+e.hash;t.hasNameForId(n.id,r)||t.insertRules(n.id,r,e(n.rules,r,"@keyframes"))},this.toString=function(){throw KE(12,String(n.name))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=e}return t.prototype.getName=function(t){return void 0===t&&(t=xC),this.name+t.hash},t}();function EC(t,e){return null==e||"boolean"==typeof e||""===e?"":"number"!=typeof e||0===e||t in sE?String(e).trim():"".concat(e,"px")}var CC=/[A-Z]/,AC=/[A-Z]/g,TC=/^ms-/,MC=function(t){return"-".concat(t.toLowerCase())};function OC(t){return CC.test(t)&&!t.startsWith("--")?t.replace(AC,MC).replace(TC,"-ms-"):t}function PC(t){return"function"==typeof t}var RC=function(t){return null==t||!1===t||""===t},DC=function t(e,n){var r=[];for(var i in e)e.hasOwnProperty(i)&&!RC(e[i])&&(Array.isArray(e[i])&&e[i].isCss||PC(e[i])?r.push("".concat(OC(i),":"),e[i],";"):ZE(e[i])?r.push.apply(r,t(e[i],i)):r.push("".concat(OC(i),": ").concat(EC(i,e[i]),";")));return n?dS(dS(["".concat(n," {")],r,!0),["}"],!1):r};function LC(t,e,n,r){if(Array.isArray(t)){for(var i=[],a=0,o=t.length,s=void 0;a<o;a+=1)0!==(s=LC(t[a],e,n,r)).length&&i.push.apply(i,s);return i}return RC(t)?[]:GE(t)?[".".concat(t.styledComponentId)]:PC(t)?function(t){return"function"==typeof t&&!(t.prototype&&t.prototype.isReactComponent)}(t)&&e?LC(s=t(e),e,n,r):[t]:t instanceof SC?n?(t.inject(n,r),[t.getName(r)]):[t]:ZE(t)?DC(t):[t.toString()]}function IC(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(PC(n)&&!GE(n))return!1}return!0}var NC=TE(fE),FC=function(){function t(t,e,n){this.names=[],this.rules=t,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&IC(t),this.componentId=e,this.baseHash=AE(NC,e),this.baseStyle=n,pC.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,n){var r=this.componentId;if(this.names.length=0,this.baseStyle&&this.names.push(this.baseStyle.generateAndInjectStyles(t,e,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&e.hasNameForId(r,this.staticRulesId))this.names.push(this.staticRulesId);else{var i=LC(this.rules,t,e,n).join(""),a=EE(AE(this.baseHash,i)>>>0);if(!e.hasNameForId(r,a)){var o=n(i,".".concat(a),void 0,r);e.insertRules(r,a,o)}this.names.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,u=AE(this.baseHash,n.hash),l="",c=0;c<s;c++){var f=this.rules[c];if("string"==typeof f)l+=f;else if(f){var d=LC(f,t,e,n),h=Array.isArray(d)?d.join(""):d;u=AE(u,h),l+=h}}if(l){var p=EE(u>>>0);if(!e.hasNameForId(r,p)){var v=n(l,".".concat(p),void 0,r);e.insertRules(r,p,v)}this.names.push(p)}}return this.names.join(" ")},t}(),zC=pa.createContext(void 0);zC.Consumer;var jC={};function BC(t,e,n,r){var i=t.attrs,a=t.componentStyle,o=t.defaultProps,s=t.foldedComponentIds,u=t.styledComponentId,l=t.target,c=ki.exports.useContext(yC).shouldForwardProp,f=t.shouldForwardProp||c,d=yE(e,ki.exports.useContext(zC),o)||mE,h=i.reduce((function(t,e){var n="function"==typeof e?e(t):e;for(var r in n)t[r]="className"===r?qE(t[r],n[r]):"style"===r?cS(cS({},t[r]),n[r]):n[r];return t}),cS(cS({},e),{theme:d})),p=function(t,e,n,r){var i=wC(),a=kC();return t.generateAndInjectStyles(e?mE:n,i,a)}(a,r,h),v=n,g=h.as||l,m=OE(g),y={};for(var b in h)void 0===h[b]||"$"===b[0]||"as"===b||"theme"===b||("forwardedAs"===b?y.as=h.forwardedAs:f&&!f(b,g)||(y[b]=h[b]));return y[m&&-1===bE.indexOf(g)?"class":"className"]=s.concat(u,p!==u?p:"",h.className||"").filter(Boolean).join(" "),y.ref=v,ki.exports.createElement(g,y)}function VC(t,e,n){var r=GE(t),i=t,a=!OE(t),o=e.attrs,s=void 0===o?gE:o,u=e.componentId,l=void 0===u?function(t,e){var n="string"!=typeof t?"sc":wE(t);jC[n]=(jC[n]||0)+1;var r="".concat(n,"-").concat(ME(fE+n+jC[n]));return e?"".concat(e,"-").concat(r):r}(e.displayName,e.parentComponentId):u,c=e.displayName,f=void 0===c?function(t){return OE(t)?"styled.".concat(t):"Styled(".concat(function(t){return t.displayName||t.name||"Component"}(t),")")}(t):c,d=e.displayName&&e.componentId?"".concat(wE(e.displayName),"-").concat(e.componentId):e.componentId||l,h=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,p=e.shouldForwardProp;if(r&&i.shouldForwardProp){var v=i.shouldForwardProp;if(e.shouldForwardProp){var g=e.shouldForwardProp;p=function(t,e){return v(t,e)&&g(t,e)}}else p=v}var m=new FC(n,d,r?i.componentStyle:void 0),y=m.isStatic&&0===s.length;function b(t,e){return BC(_,t,e,y)}b.displayName=f;var _=pa.forwardRef(b);(_.attrs=h,_.componentStyle=m,_.displayName=f,_.shouldForwardProp=p,_.foldedComponentIds=r?i.foldedComponentIds.concat(i.styledComponentId):gE,_.styledComponentId=d,_.target=r?i.target:t,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?function(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++){XE(t,i[r],!0)}return t}({},i.defaultProps,t):t}}),_.toString=function(){return".".concat(_.styledComponentId)},a)&&YE(_,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0});return _}function HC(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 UC=function(t){return Object.assign(t,{isCss:!0})};function WC(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(PC(t)||ZE(t)){var r=t;return UC(LC(HC(gE,dS([r],e,!0))))}var i=t;return 0===e.length&&1===i.length&&"string"==typeof i[0]?LC(i):UC(LC(HC(i,e)))}function YC(t,e,n){if(void 0===n&&(n=mE),!e)throw KE(1,e);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return t(e,n,WC.apply(void 0,dS([r],i,!1)))};return r.attrs=function(r){return YC(t,e,cS(cS({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return YC(t,e,cS(cS({},n),r))},r}var GC=function(t){return YC(VC,t)},qC=hi("s",GC);bE.forEach((function(t){qC[t]=GC(t)}));var ZC=function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=IC(t),pC.registerId(this.componentId+1)}return t.prototype.createStyles=function(t,e,n,r){var i=r(LC(this.rules,e,n,r).join(""),""),a=this.componentId+t;n.insertRules(a,a,i)},t.prototype.removeStyles=function(t,e){e.clearRules(this.componentId+t)},t.prototype.renderStyles=function(t,e,n,r){t>2&&pC.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,r)},t}();function XC(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=WC.apply(void 0,dS([t],e,!1)),i="sc-global-".concat(ME(JSON.stringify(r))),a=new ZC(r,i),o=function(t){var e=wC(),n=kC(),r=pa.useContext(zC),o=pa.useRef(e.allocateGSInstance(i)).current;return e.server&&s(o,t,e,r,n),(pa.useInsertionEffect||pa.useLayoutEffect)((function(){if(!e.server)return s(o,t,e,r,n),function(){return a.removeStyles(o,e)}}),[o,t,e,r,n]),null};function s(t,e,n,r,i){if(a.isStatic)a.renderStyles(t,vE,n,i);else{var s=cS(cS({},e),{theme:yE(e,r,o.defaultProps)});a.renderStyles(t,s,n,i)}}return pa.memo(o)}function KC(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=WC.apply(void 0,dS([t],e,!1)).join(""),i=ME(r);return new SC(i,r)}var $C=function(t,e){return $C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},$C(t,e)};function QC(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}$C(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var JC=function(){return JC=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},JC.apply(this,arguments)};function tA(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(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 eA(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function nA(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var rA=("undefined"==typeof process||process.env,"production"),iA=function(t){return{isEnabled:function(e){return t.some((function(t){return!!e[t]}))}}},aA={measureLayout:iA(["layout","layoutId","drag"]),animation:iA(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:iA(["exit"]),drag:iA(["drag","dragControls"]),focus:iA(["whileFocus"]),hover:iA(["whileHover","onHoverStart","onHoverEnd"]),tap:iA(["whileTap","onTap","onTapStart","onTapCancel"]),pan:iA(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:iA(["whileInView","onViewportEnter","onViewportLeave"])};var oA=ki.exports.createContext({strict:!1}),sA=Object.keys(aA),uA=sA.length;var lA=ki.exports.createContext({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),cA=ki.exports.createContext({});var fA=ki.exports.createContext(null),dA="undefined"!=typeof document,hA=dA?ki.exports.useLayoutEffect:ki.exports.useEffect,pA={current:null},vA=!1;function gA(){return!vA&&function(){if(vA=!0,dA)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return pA.current=t.matches};t.addListener(e),e()}else pA.current=!1}(),eA(ki.exports.useState(pA.current),1)[0]}function mA(t,e,n,r){var i,a,o=ki.exports.useContext(oA),s=ki.exports.useContext(cA).visualElement,u=ki.exports.useContext(fA),l=(i=gA(),"never"!==(a=ki.exports.useContext(lA).reducedMotion)&&("always"===a||i)),c=ki.exports.useRef(void 0);r||(r=o.renderer),!c.current&&r&&(c.current=r(t,{visualState:e,parent:s,props:n,presenceId:null==u?void 0:u.id,blockInitialAnimation:!1===(null==u?void 0:u.initial),shouldReduceMotion:l}));var f=c.current;return hA((function(){null==f||f.syncRender()})),ki.exports.useEffect((function(){var t;null===(t=null==f?void 0:f.animationState)||void 0===t||t.animateChanges()})),hA((function(){return function(){return null==f?void 0:f.notifyUnmount()}}),[]),f}function yA(t){return"object"===Fi(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function bA(t,e,n){return ki.exports.useCallback((function(r){var i;r&&(null===(i=t.mount)||void 0===i||i.call(t,r)),e&&(r?e.mount(r):e.unmount()),n&&("function"==typeof n?n(r):yA(n)&&(n.current=r))}),[e])}function _A(t){return Array.isArray(t)}function xA(t){return"string"==typeof t||_A(t)}function wA(t,e,n,r,i){var a;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,i)),"string"==typeof e&&(e=null===(a=t.variants)||void 0===a?void 0:a[e]),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,i)),e}function kA(t,e,n){var r=t.getProps();return wA(r,e,null!=n?n:r.custom,function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.get()})),e}(t),function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.getVelocity()})),e}(t))}function SA(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||xA(t.initial)||xA(t.animate)||xA(t.whileHover)||xA(t.whileDrag)||xA(t.whileTap)||xA(t.whileFocus)||xA(t.exit)}function EA(t){return Boolean(SA(t)||t.variants)}function CA(t){var e=function(t,e){if(SA(t)){var n=t.initial,r=t.animate;return{initial:!1===n||xA(n)?n:void 0,animate:xA(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,ki.exports.useContext(cA)),n=e.initial,r=e.animate;return ki.exports.useMemo((function(){return{initial:n,animate:r}}),[AA(n),AA(r)])}function AA(t){return Array.isArray(t)?t.join(" "):t}function TA(t){var e=ki.exports.useRef(null);return null===e.current&&(e.current=t()),e.current}var MA={hasAnimatedSinceResize:!0,hasEverUpdated:!1},OA=1;var PA=ki.exports.createContext({}),RA=ki.exports.createContext({});var DA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return QC(e,t),e.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},e.prototype.componentDidUpdate=function(){},e.prototype.updateProps=function(){var t=this.props,e=t.visualElement,n=t.props;e&&e.setProps(n)},e.prototype.render=function(){return this.props.children},e}(pa.Component);function LA(t){var e=t.preloadedFeatures,n=t.createVisualElement,r=t.projectionNodeConstructor,i=t.useRender,a=t.useVisualState,o=t.Component;return e&&function(t){for(var e in t)null!==t[e]&&("projectionNodeConstructor"===e?aA.projectionNodeConstructor=t[e]:aA[e].Component=t[e])}(e),ki.exports.forwardRef((function(t,s){var u=function(t){var e,n=t.layoutId,r=null===(e=ki.exports.useContext(PA))||void 0===e?void 0:e.id;return r&&void 0!==n?r+"-"+n:n}(t);t=JC(JC({},t),{layoutId:u});var l=ki.exports.useContext(lA),c=null,f=CA(t),d=l.isStatic?void 0:TA((function(){if(MA.hasEverUpdated)return OA++})),h=a(t,l.isStatic);return!l.isStatic&&dA&&(f.visualElement=mA(o,h,JC(JC({},l),t),n),function(t,e,n,r){var i,a=e.layoutId,o=e.layout,s=e.drag,u=e.dragConstraints,l=e.layoutScroll,c=ki.exports.useContext(RA);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(t,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:Boolean(s)||u&&yA(u),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof o?o:"both",initialPromotionConfig:c,layoutScroll:l}))}(d,t,f.visualElement,r||aA.projectionNodeConstructor),c=function(t,e,n){var r=[],i=ki.exports.useContext(oA);if(!e)return null;"production"!==rA&&n&&i.strict;for(var a=0;a<uA;a++){var o=sA[a],s=aA[o],u=s.isEnabled,l=s.Component;u(t)&&l&&r.push(yk(l,_i({},JC({key:o},t,{visualElement:e}))))}return r}(t,f.visualElement,e)),bk(DA,{visualElement:f.visualElement,props:JC(JC({},l),t),children:[c,yk(cA.Provider,{value:f,children:i(o,t,d,bA(h,f.visualElement,s),h,l.isStatic,f.visualElement)})]})}))}function IA(t){function e(e,n){return void 0===n&&(n={}),LA(t(e,n))}if("undefined"==typeof Proxy)return e;var n=new Map;return new Proxy(e,{get:function(t,r){return n.has(r)||n.set(r,e(r)),n.get(r)}})}var NA=["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 FA(t){return"string"==typeof t&&!t.includes("-")&&!!(NA.indexOf(t)>-1||/[A-Z]/.test(t))}var zA={};var jA=["","X","Y","Z"],BA=["transformPerspective","x","y","z"];function VA(t,e){return BA.indexOf(t)-BA.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return jA.forEach((function(e){return BA.push(t+e)}))}));var HA=new Set(BA);function UA(t){return HA.has(t)}var WA=new Set(["originX","originY","originZ"]);function YA(t){return WA.has(t)}function GA(t,e){var n=e.layout,r=e.layoutId;return UA(t)||YA(t)||(n||void 0!==r)&&(!!zA[t]||"opacity"===t)}var qA=function(t){return Boolean(null!==t&&"object"===Fi(t)&&t.getVelocity)},ZA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function XA(t){return t.startsWith("--")}var KA=function(t,e){return e&&"number"==typeof t?e.transform(t):t},$A=function(t,e){return function(n){return Math.max(Math.min(n,e),t)}},QA=function(t){return t%1?Number(t.toFixed(5)):t},JA=/(-)?([\d]*\.?[\d])+/g,tT=/(#[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,eT=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function nT(t){return"string"==typeof t}var rT={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},iT=Object.assign(Object.assign({},rT),{transform:$A(0,1)}),aT=Object.assign(Object.assign({},rT),{default:1}),oT=function(t){return{test:function(e){return nT(e)&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return"".concat(e).concat(t)}}},sT=oT("deg"),uT=oT("%"),lT=oT("px"),cT=oT("vh"),fT=oT("vw"),dT=Object.assign(Object.assign({},uT),{parse:function(t){return uT.parse(t)/100},transform:function(t){return uT.transform(100*t)}}),hT=function(t,e){return function(n){return Boolean(nT(n)&&eT.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e))}},pT=function(t,e,n){return function(r){var i;if(!nT(r))return r;var a=wi(r.match(JA),4),o=a[0],s=a[1],u=a[2],l=a[3];return xi(i={},t,parseFloat(o)),xi(i,e,parseFloat(s)),xi(i,n,parseFloat(u)),xi(i,"alpha",void 0!==l?parseFloat(l):1),i}},vT={test:hT("hsl","hue"),parse:pT("hue","saturation","lightness"),transform:function(t){var e=t.hue,n=t.saturation,r=t.lightness,i=t.alpha,a=void 0===i?1:i;return"hsla("+Math.round(e)+", "+uT.transform(QA(n))+", "+uT.transform(QA(r))+", "+QA(iT.transform(a))+")"}},gT=$A(0,255),mT=Object.assign(Object.assign({},rT),{transform:function(t){return Math.round(gT(t))}}),yT={test:hT("rgb","red"),parse:pT("red","green","blue"),transform:function(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,a=void 0===i?1:i;return"rgba("+mT.transform(e)+", "+mT.transform(n)+", "+mT.transform(r)+", "+QA(iT.transform(a))+")"}};var bT={test:hT("#"),parse:function(t){var 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}},transform:yT.transform},_T={test:function(t){return yT.test(t)||bT.test(t)||vT.test(t)},parse:function(t){return yT.test(t)?yT.parse(t):vT.test(t)?vT.parse(t):bT.parse(t)},transform:function(t){return nT(t)?t:t.hasOwnProperty("red")?yT.transform(t):vT.transform(t)}},xT="${c}",wT="${n}";function kT(t){"number"==typeof t&&(t="".concat(t));var e=[],n=0,r=t.match(tT);r&&(n=r.length,t=t.replace(tT,xT),e.push.apply(e,mi(r.map(_T.parse))));var i=t.match(JA);return i&&(t=t.replace(JA,wT),e.push.apply(e,mi(i.map(rT.parse)))),{values:e,numColors:n,tokenised:t}}function ST(t){return kT(t).values}function ET(t){var e=kT(t),n=e.values,r=e.numColors,i=e.tokenised,a=n.length;return function(t){for(var e=i,n=0;n<a;n++)e=e.replace(n<r?xT:wT,n<r?_T.transform(t[n]):QA(t[n]));return e}}var CT=function(t){return"number"==typeof t?0:t};var AT={test:function(t){var e,n,r,i;return isNaN(t)&&nT(t)&&(null!==(n=null===(e=t.match(JA))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(i=null===(r=t.match(tT))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:ST,createTransformer:ET,getAnimatableNone:function(t){var e=ST(t);return ET(t)(e.map(CT))}},TT=new Set(["brightness","contrast","saturate","opacity"]);function MT(t){var e=wi(t.slice(0,-1).split("("),2),n=e[0],r=e[1];if("drop-shadow"===n)return t;var i=wi(r.match(JA)||[],1)[0];if(!i)return t;var a=r.replace(i,""),o=TT.has(n)?1:0;return i!==r&&(o*=100),n+"("+o+a+")"}var OT=/([a-z-]*)\(.*?\)/g,PT=Object.assign(Object.assign({},AT),{getAnimatableNone:function(t){var e=t.match(OT);return e?e.map(MT).join(" "):t}}),RT=JC(JC({},rT),{transform:Math.round}),DT={borderWidth:lT,borderTopWidth:lT,borderRightWidth:lT,borderBottomWidth:lT,borderLeftWidth:lT,borderRadius:lT,radius:lT,borderTopLeftRadius:lT,borderTopRightRadius:lT,borderBottomRightRadius:lT,borderBottomLeftRadius:lT,width:lT,maxWidth:lT,height:lT,maxHeight:lT,size:lT,top:lT,right:lT,bottom:lT,left:lT,padding:lT,paddingTop:lT,paddingRight:lT,paddingBottom:lT,paddingLeft:lT,margin:lT,marginTop:lT,marginRight:lT,marginBottom:lT,marginLeft:lT,rotate:sT,rotateX:sT,rotateY:sT,rotateZ:sT,scale:aT,scaleX:aT,scaleY:aT,scaleZ:aT,skew:sT,skewX:sT,skewY:sT,distance:lT,translateX:lT,translateY:lT,translateZ:lT,x:lT,y:lT,z:lT,perspective:lT,transformPerspective:lT,opacity:iT,originX:dT,originY:dT,originZ:lT,zIndex:RT,fillOpacity:iT,strokeOpacity:iT,numOctaves:RT};function LT(t,e,n,r){var i,a=t.style,o=t.vars,s=t.transform,u=t.transformKeys,l=t.transformOrigin;u.length=0;var c=!1,f=!1,d=!0;for(var h in e){var p=e[h];if(XA(h))o[h]=p;else{var v=DT[h],g=KA(p,v);if(UA(h)){if(c=!0,s[h]=g,u.push(h),!d)continue;p!==(null!==(i=v.default)&&void 0!==i?i:0)&&(d=!1)}else YA(h)?(l[h]=g,f=!0):a[h]=g}}c?a.transform=function(t,e,n,r){var i=t.transform,a=t.transformKeys,o=e.enableHardwareAcceleration,s=void 0===o||o,u=e.allowTransformNone,l=void 0===u||u,c="";a.sort(VA);for(var f=!1,d=a.length,h=0;h<d;h++){var p=a[h];c+="".concat(ZA[p]||p,"(").concat(i[p],") "),"z"===p&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):l&&n&&(c="none"),c}(t,n,d,r):r?a.transform=r({},""):!e.transform&&a.transform&&(a.transform="none"),f&&(a.transformOrigin=function(t){var e=t.originX,n=void 0===e?"50%":e,r=t.originY,i=void 0===r?"50%":r,a=t.originZ,o=void 0===a?0:a;return"".concat(n," ").concat(i," ").concat(o)}(l))}var IT=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function NT(t,e,n){for(var r in e)qA(e[r])||GA(r,n)||(t[r]=e[r])}function FT(t,e,n){var r={};return NT(r,t.style||{},t),Object.assign(r,function(t,e,n){var r=t.transformTemplate;return ki.exports.useMemo((function(){var t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};LT(t,e,{enableHardwareAcceleration:!n},r);var i=t.style;return JC(JC({},t.vars),i)}),[e])}(t,e,n)),t.transformValues&&(r=t.transformValues(r)),r}function zT(t,e,n){var r={},i=FT(t,e,n);return Boolean(t.drag)&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),r.style=i,r}var jT=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 BT(t){return jT.has(t)}var VT,HT=function(t){return!BT(t)};try{(VT=require("@emotion/is-prop-valid").default)&&(HT=function(t){return t.startsWith("on")?!BT(t):VT(t)})}catch(P3){}function UT(t,e,n){return"string"==typeof t?t:lT.transform(e+n*t)}var WT={offset:"stroke-dashoffset",array:"stroke-dasharray"},YT={offset:"strokeDashoffset",array:"strokeDasharray"};function GT(t,e,n,r){var i=e.attrX,a=e.attrY,o=e.originX,s=e.originY,u=e.pathLength,l=e.pathSpacing,c=void 0===l?1:l,f=e.pathOffset,d=void 0===f?0:f;LT(t,tA(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),t.attrs=t.style,t.style={};var h=t.attrs,p=t.style,v=t.dimensions;h.transform&&(v&&(p.transform=h.transform),delete h.transform),v&&(void 0!==o||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,n){var r=UT(e,t.x,t.width),i=UT(n,t.y,t.height);return"".concat(r," ").concat(i)}(v,void 0!==o?o:.5,void 0!==s?s:.5)),void 0!==i&&(h.x=i),void 0!==a&&(h.y=a),void 0!==u&&function(t,e,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),t.pathLength=1;var a=i?WT:YT;t[a.offset]=lT.transform(-r);var o=lT.transform(e),s=lT.transform(n);t[a.array]="".concat(o," ").concat(s)}(h,u,c,d,!1)}var qT=function(){return JC(JC({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function ZT(t,e){var n=ki.exports.useMemo((function(){var n=qT();return GT(n,e,{enableHardwareAcceleration:!1},t.transformTemplate),JC(JC({},n.attrs),{style:JC({},n.style)})}),[e]);if(t.style){var r={};NT(r,t.style,t),n.style=JC(JC({},r),n.style)}return n}function XT(t){void 0===t&&(t=!1);return function(e,n,r,i,a,o){var s=a.latestValues,u=(FA(e)?ZT:zT)(n,s,o),l=function(t,e,n){var r={};for(var i in t)(HT(i)||!0===n&&BT(i)||!e&&!BT(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),c=JC(JC(JC({},l),u),{ref:i});return r&&(c["data-projection-id"]=r),ki.exports.createElement(e,c)}}var KT=/([a-z])([A-Z])/g,$T=function(t){return t.replace(KT,"$1-$2").toLowerCase()};function QT(t,e,n,r){var i=e.style,a=e.vars;for(var o in Object.assign(t.style,i,r&&r.getProjectionStyles(n)),a)t.style.setProperty(o,a[o])}var JT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function tM(t,e,n,r){for(var i in QT(t,e,void 0,r),e.attrs)t.setAttribute(JT.has(i)?i:$T(i),e.attrs[i])}function eM(t){var e=t.style,n={};for(var r in e)(qA(e[r])||GA(r,t))&&(n[r]=e[r]);return n}function nM(t){var e=eM(t);for(var n in t){if(qA(t[n]))e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function rM(t){return"object"===Fi(t)&&"function"==typeof t.start}var iM=function(t){return Array.isArray(t)},aM=function(t){return iM(t)?t[t.length-1]||0:t};function oM(t){var e=qA(t)?t.get():t;return function(t){return Boolean(t&&"object"===Fi(t)&&t.mix&&t.toValue)}(e)?e.toValue():e}function sM(t,e,n,r){var i=t.scrapeMotionValuesFromProps,a=t.createRenderState,o=t.onMount,s={latestValues:lM(e,n,r,i),renderState:a()};return o&&(s.mount=function(t){return o(e,t,s)}),s}var uM=function(t){return function(e,n){var r=ki.exports.useContext(cA),i=ki.exports.useContext(fA);return n?sM(t,e,r,i):TA((function(){return sM(t,e,r,i)}))}};function lM(t,e,n,r){var i={},a=!1===(null==n?void 0:n.initial),o=r(t);for(var s in o)i[s]=oM(o[s]);var u=t.initial,l=t.animate,c=SA(t),f=EA(t);e&&f&&!c&&!1!==t.inherit&&(null!=u||(u=e.initial),null!=l||(l=e.animate));var d=a||!1===u,h=d?l:u;h&&"boolean"!=typeof h&&!rM(h)&&(Array.isArray(h)?h:[h]).forEach((function(e){var n=wA(t,e);if(n){var r=n.transitionEnd;n.transition;var a=tA(n,["transitionEnd","transition"]);for(var o in a){var s=a[o];if(Array.isArray(s))s=s[d?s.length-1:0];null!==s&&(i[o]=s)}for(var o in r)i[o]=r[o]}}));return i}var cM,fM={useVisualState:uM({scrapeMotionValuesFromProps:nM,createRenderState:qT,onMount:function(t,e,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(a){r.dimensions={x:0,y:0,width:0,height:0}}GT(r,i,{enableHardwareAcceleration:!1},t.transformTemplate),tM(e,r)}})},dM={useVisualState:uM({scrapeMotionValuesFromProps:eM,createRenderState:IT})};function hM(t,e,n,r){return void 0===r&&(r={passive:!0}),t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n)}}function pM(t,e,n,r){ki.exports.useEffect((function(){var i=t.current;if(n&&i)return hM(i,e,n,r)}),[t,e,n,r])}function vM(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function gM(t){return!!t.touches}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(cM||(cM={}));var mM={pageX:0,pageY:0};function yM(t,e){void 0===e&&(e="page");var n=t.touches[0]||t.changedTouches[0]||mM;return{x:n[e+"X"],y:n[e+"Y"]}}function bM(t,e){return void 0===e&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function _M(t,e){return void 0===e&&(e="page"),{point:gM(t)?yM(t,e):bM(t,e)}}var xM=function(t,e){void 0===e&&(e=!1);var n,r=function(e){return t(e,_M(e))};return e?(n=r,function(t){var e=t instanceof MouseEvent;(!e||e&&0===t.button)&&n(t)}):r},wM={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},kM={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function SM(t){return dA&&null===window.onpointerdown?t:dA&&null===window.ontouchstart?kM[t]:dA&&null===window.onmousedown?wM[t]:t}function EM(t,e,n,r){return hM(t,SM(e),xM(n,"pointerdown"===e),r)}function CM(t,e,n,r){return pM(t,SM(e),n&&xM(n,"pointerdown"===e),r)}function AM(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var TM=AM("dragHorizontal"),MM=AM("dragVertical");function OM(t){var e=!1;if("y"===t)e=MM();else if("x"===t)e=TM();else{var n=TM(),r=MM();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}function PM(){var t=OM(!0);return!t||(t(),!1)}function RM(t,e,n){return function(r,i){var a;vM(r)&&!PM()&&(null===(a=t.animationState)||void 0===a||a.setActive(cM.Hover,e),null==n||n(r,i))}}var DM=function t(e,n){return!!n&&(e===n||t(e,n.parentElement))};function LM(t){return ki.exports.useEffect((function(){return function(){return t()}}),[])}var IM=function(t,e,n){return Math.min(Math.max(n,t),e)},NM=.001;function FM(t){var e,n,r=t.duration,i=void 0===r?800:r,a=t.bounce,o=void 0===a?.25:a,s=t.velocity,u=void 0===s?0:s,l=t.mass,c=void 0===l?1:l,f=1-o;f=IM(.05,1,f),i=IM(.01,10,i/1e3),f<1?(e=function(t){var e=t*f,n=e*i,r=e-u,a=zM(t,f),o=Math.exp(-n);return NM-r/a*o},n=function(t){var n=t*f*i,r=n*u+u,a=Math.pow(f,2)*Math.pow(t,2)*i,o=Math.exp(-n),s=zM(Math.pow(t,2),f);return(-e(t)+NM>0?-1:1)*((r-a)*o)/s}):(e=function(t){return Math.exp(-t*i)*((t-u)*i+1)-.001},n=function(t){return Math.exp(-t*i)*(i*i*(u-t))});var d=function(t,e,n){for(var r=n,i=1;i<12;i++)r-=t(r)/e(r);return r}(e,n,5/i);if(i*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:i};var h=Math.pow(d,2)*c;return{stiffness:h,damping:2*f*Math.sqrt(c*h),duration:i}}function zM(t,e){return t*Math.sqrt(1-e*e)}var jM=["duration","bounce"],BM=["stiffness","damping","mass"];function VM(t,e){return e.some((function(e){return void 0!==t[e]}))}function HM(t){var e=t.from,n=void 0===e?0:e,r=t.to,i=void 0===r?1:r,a=t.restSpeed,o=void 0===a?2:a,s=t.restDelta,u=fS(t,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},c=function(t){var e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!VM(t,BM)&&VM(t,jM)){var n=FM(t);(e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return e}(u),f=c.stiffness,d=c.damping,h=c.mass,p=c.velocity,v=c.duration,g=c.isResolvedFromDuration,m=UM,y=UM;function b(){var t=p?-p/1e3:0,e=i-n,r=d/(2*Math.sqrt(f*h)),a=Math.sqrt(f/h)/1e3;if(void 0===s&&(s=Math.min(Math.abs(i-n)/100,.4)),r<1){var o=zM(a,r);m=function(n){var s=Math.exp(-r*a*n);return i-s*((t+r*a*e)/o*Math.sin(o*n)+e*Math.cos(o*n))},y=function(n){var i=Math.exp(-r*a*n);return r*a*i*(Math.sin(o*n)*(t+r*a*e)/o+e*Math.cos(o*n))-i*(Math.cos(o*n)*(t+r*a*e)-o*e*Math.sin(o*n))}}else if(1===r)m=function(n){return i-Math.exp(-a*n)*(e+(t+a*e)*n)};else{var u=a*Math.sqrt(r*r-1);m=function(n){var o=Math.exp(-r*a*n),s=Math.min(u*n,300);return i-o*((t+r*a*e)*Math.sinh(s)+u*e*Math.cosh(s))/u}}}return b(),{next:function(t){var e=m(t);if(g)l.done=t>=v;else{var n=1e3*y(t),r=Math.abs(n)<=o,a=Math.abs(i-e)<=s;l.done=r&&a}return l.value=l.done?i:e,l},flipTarget:function(){p=-p;var t=[i,n];n=t[0],i=t[1],b()}}}HM.needsInterpolation=function(t,e){return"string"==typeof t||"string"==typeof e};var UM=function(t){return 0},WM=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},YM=function(t,e,n){return-n*t+n*e+t};function GM(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function qM(t){var e=t.hue,n=t.saturation,r=t.lightness,i=t.alpha;e/=360,r/=100;var a=0,o=0,s=0;if(n/=100){var u=r<.5?r*(1+n):r+n-r*n,l=2*r-u;a=GM(l,u,e+1/3),o=GM(l,u,e),s=GM(l,u,e-1/3)}else a=o=s=r;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}var ZM=function(t,e,n){var r=t*t,i=e*e;return Math.sqrt(Math.max(0,n*(i-r)+r))},XM=[bT,yT,vT],KM=function(t){return XM.find((function(e){return e.test(t)}))},$M=function(t,e){var n=KM(t),r=KM(e),i=n.parse(t),a=r.parse(e);n===vT&&(i=qM(i),n=yT),r===vT&&(a=qM(a),r=yT);var o=Object.assign({},i);return function(t){for(var e in o)"alpha"!==e&&(o[e]=ZM(i[e],a[e],t));return o.alpha=YM(i.alpha,a.alpha,t),n.transform(o)}},QM=function(t){return"number"==typeof t},JM=function(t,e){return function(n){return e(t(n))}},tO=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(JM)};function eO(t,e){return QM(t)?function(n){return YM(t,e,n)}:_T.test(t)?$M(t,e):aO(t,e)}var nO=function(t,e){var n=mi(t),r=n.length,i=t.map((function(t,n){return eO(t,e[n])}));return function(t){for(var e=0;e<r;e++)n[e]=i[e](t);return n}},rO=function(t,e){var n=Object.assign(Object.assign({},t),e),r={};for(var i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=eO(t[i],e[i]));return function(t){for(var e in r)n[e]=r[e](t);return n}};function iO(t){for(var e=AT.parse(t),n=e.length,r=0,i=0,a=0,o=0;o<n;o++)r||"number"==typeof e[o]?r++:void 0!==e[o].hue?a++:i++;return{parsed:e,numNumbers:r,numRGB:i,numHSL:a}}var aO=function(t,e){var n=AT.createTransformer(e),r=iO(t),i=iO(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?tO(nO(r.parsed,i.parsed),n):function(n){return"".concat(n>0?e:t)}},oO=function(t,e){return function(n){return YM(t,e,n)}};function sO(t,e,n){for(var r=[],i=n||function(t){return"number"==typeof t?oO:"string"==typeof t?_T.test(t)?$M:aO:Array.isArray(t)?nO:"object"===Fi(t)?rO:void 0}(t[0]),a=t.length-1,o=0;o<a;o++){var s=i(t[o],t[o+1]);if(e){var u=Array.isArray(e)?e[o]:e;s=tO(u,s)}r.push(s)}return r}function uO(t,e){var n=wi(t,2),r=n[0],i=n[1],a=wi(e,1)[0];return function(t){return a(WM(r,i,t))}}function lO(t,e){var n=t.length,r=n-1;return function(i){var a=0,o=!1;if(i<=t[0]?o=!0:i>=t[r]&&(a=r-1,o=!0),!o){for(var s=1;s<n&&!(t[s]>i||s===r);s++);a=s-1}var u=WM(t[a],t[a+1],i);return e[a](u)}}function cO(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,i=void 0===r||r,a=n.ease,o=n.mixer,s=t.length;e.length,!a||!Array.isArray(a)||a.length,t[0]>t[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());var u=sO(e,a,o),l=2===s?uO(t,u):lO(t,u);return i?function(e){return l(IM(t[0],t[s-1],e))}:l}var fO,dO=function(t){return function(e){return 1-t(1-e)}},hO=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},pO=function(t){return function(e){return e*e*((t+1)*e-t)}},vO=function(t){return t},gO=(fO=2,function(t){return Math.pow(t,fO)}),mO=dO(gO),yO=hO(gO),bO=function(t){return 1-Math.sin(Math.acos(t))},_O=dO(bO),xO=hO(_O),wO=pO(1.525),kO=dO(wO),SO=hO(wO),EO=function(t){var e=pO(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}}(1.525),CO=function(t){if(1===t||0===t)return t;var e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},AO=dO(CO);function TO(t,e){return t.map((function(){return e||yO})).splice(0,t.length-1)}function MO(t){var e=t.from,n=void 0===e?0:e,r=t.to,i=void 0===r?1:r,a=t.ease,o=t.offset,s=t.duration,u=void 0===s?300:s,l={done:!1,value:n},c=Array.isArray(i)?i:[n,i],f=function(t,e){return t.map((function(t){return t*e}))}(o&&o.length===c.length?o:function(t){var e=t.length;return t.map((function(t,n){return 0!==n?n/(e-1):0}))}(c),u);function d(){return cO(f,c,{ease:Array.isArray(a)?a:TO(c,a)})}var h=d();return{next:function(t){return l.value=h(t),l.done=t>=u,l},flipTarget:function(){c.reverse(),h=d()}}}var OO={keyframes:MO,spring:HM,decay:function(t){var e=t.velocity,n=void 0===e?0:e,r=t.from,i=void 0===r?0:r,a=t.power,o=void 0===a?.8:a,s=t.timeConstant,u=void 0===s?350:s,l=t.restDelta,c=void 0===l?.5:l,f=t.modifyTarget,d={done:!1,value:i},h=o*n,p=i+h,v=void 0===f?p:f(p);return v!==p&&(h=v-i),{next:function(t){var e=-h*Math.exp(-t/u);return d.done=!(e>c||e<-c),d.value=d.done?v:v+e,d},flipTarget:function(){}}}};var PO=1/60*1e3,RO="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},DO="undefined"!=typeof window?function(t){return window.requestAnimationFrame(t)}:function(t){return setTimeout((function(){return t(RO())}),PO)};var LO=!0,IO=!1,NO=!1,FO={delta:0,timestamp:0},zO=["read","update","preRender","render","postRender"],jO=zO.reduce((function(t,e){return t[e]=function(t){var e=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:function(t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=a?e:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(t),-1===s.indexOf(t)&&(s.push(t),a&&i&&(r=e.length)),t},cancel:function(t){var e=n.indexOf(t);-1!==e&&n.splice(e,1),o.delete(t)},process:function(u){if(i)a=!0;else{i=!0;var l=[n,e];if(e=l[0],(n=l[1]).length=0,r=e.length)for(var c=0;c<r;c++){var f=e[c];f(u),o.has(f)&&(s.schedule(f),t())}i=!1,a&&(a=!1,s.process(u))}}};return s}((function(){return IO=!0})),t}),{}),BO=zO.reduce((function(t,e){var n=jO[e];return t[e]=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return IO||YO(),n.schedule(t,e,r)},t}),{}),VO=zO.reduce((function(t,e){return t[e]=jO[e].cancel,t}),{}),HO=zO.reduce((function(t,e){return t[e]=function(){return jO[e].process(FO)},t}),{}),UO=function(t){return jO[t].process(FO)},WO=function t(e){IO=!1,FO.delta=LO?PO:Math.max(Math.min(e-FO.timestamp,40),1),FO.timestamp=e,NO=!0,zO.forEach(UO),NO=!1,IO&&(LO=!1,DO(t))},YO=function(){IO=!0,LO=!0,NO||DO(WO)},GO=function(){return FO};function qO(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t-e-n}var ZO=function(t){var e=function(e){var n=e.delta;return t(n)};return{start:function(){return BO.update(e,!0)},stop:function(){return VO.update(e)}}};function XO(t){var e,n,r,i,a,o=t.from,s=t.autoplay,u=void 0===s||s,l=t.driver,c=void 0===l?ZO:l,f=t.elapsed,d=void 0===f?0:f,h=t.repeat,p=void 0===h?0:h,v=t.repeatType,g=void 0===v?"loop":v,m=t.repeatDelay,y=void 0===m?0:m,b=t.onPlay,_=t.onStop,x=t.onComplete,w=t.onRepeat,k=t.onUpdate,S=fS(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),E=S.to,C=0,A=S.duration,T=!1,M=!0,O=function(t){if(Array.isArray(t.to))return MO;if(OO[t.type])return OO[t.type];var e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?MO:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?HM:MO}(S);(null===(n=(e=O).needsInterpolation)||void 0===n?void 0:n.call(e,o,E))&&(a=cO([0,100],[o,E],{clamp:!1}),o=0,E=100);var P=O(Object.assign(Object.assign({},S),{from:o,to:E}));function R(){C++,"reverse"===g?d=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?e-(t-e)+n:qO(e+-t,e,n)}(d,A,y,M=C%2==0):(d=qO(d,A,y),"mirror"===g&&P.flipTarget()),T=!1,w&&w()}function D(t){if(M||(t=-t),d+=t,!T){var e=P.next(Math.max(0,d));i=e.value,a&&(i=a(i)),T=M?e.done:d<=0}null==k||k(i),T&&(0===C&&(null!=A||(A=d)),C<p?function(t,e,n,r){return r?t>=e+n:t<=-n}(d,A,y,M)&&R():(r.stop(),x&&x()))}return u&&(null==b||b(),(r=c(D)).start()),{stop:function(){null==_||_(),r.stop()}}}function KO(t,e){return e?t*(1e3/e):0}var $O=function(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")},QO=function(t){return $O(t)&&t.hasOwnProperty("z")},JO=function(t,e){return Math.abs(t-e)};function tP(t,e){if(QM(t)&&QM(e))return JO(t,e);if($O(t)&&$O(e)){var n=JO(t.x,e.x),r=JO(t.y,e.y),i=QO(t)&&QO(e)?JO(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var eP=function(t,e){return 1-3*e+3*t},nP=function(t,e){return 3*e-6*t},rP=function(t){return 3*t},iP=function(t,e,n){return((eP(e,n)*t+nP(e,n))*t+rP(e))*t},aP=function(t,e,n){return 3*eP(e,n)*t*t+2*nP(e,n)*t+rP(e)};var oP=.1;function sP(t,e,n,r){if(t===e&&n===r)return vO;for(var i=new Float32Array(11),a=0;a<11;++a)i[a]=iP(a*oP,t,n);function o(e){for(var r=0,a=1;10!==a&&i[a]<=e;++a)r+=oP;--a;var o=r+(e-i[a])/(i[a+1]-i[a])*oP,s=aP(o,t,n);return s>=.001?function(t,e,n,r){for(var i=0;i<8;++i){var a=aP(e,n,r);if(0===a)return e;e-=(iP(e,n,r)-t)/a}return e}(e,o,t,n):0===s?o:function(t,e,n,r,i){var a,o,s=0;do{(a=iP(o=e+(n-e)/2,r,i)-t)>0?n=o:e=o}while(Math.abs(a)>1e-7&&++s<10);return o}(e,r,r+oP,t,n)}return function(t){return 0===t||1===t?t:iP(o(t),e,r)}}var uP=new Set;var lP=new WeakMap,cP=new WeakMap,fP=function(t){var e;null===(e=lP.get(t.target))||void 0===e||e(t)},dP=function(t){t.forEach(fP)};function hP(t,e,n){var r=function(t){var e=t.root,n=tA(t,["root"]),r=e||document;cP.has(r)||cP.set(r,{});var i=cP.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(dP,JC({root:e},n))),i[a]}(e);return lP.set(t,n),r.observe(t),function(){lP.delete(t),r.unobserve(t)}}var pP={some:0,all:1};function vP(t,e,n,r){var i=r.root,a=r.margin,o=r.amount,s=void 0===o?"some":o,u=r.once;ki.exports.useEffect((function(){if(t){var r={root:null==i?void 0:i.current,rootMargin:a,threshold:"number"==typeof s?s:pP[s]};return hP(n.getInstance(),r,(function(t){var r,i=t.isIntersecting;if(e.isInView!==i&&(e.isInView=i,!u||i||!e.hasEnteredView)){i&&(e.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(cM.InView,i);var a=n.getProps(),o=i?a.onViewportEnter:a.onViewportLeave;null==o||o(t)}}))}}),[t,i,a,s])}function gP(t,e,n,r){var i=r.fallback,a=void 0===i||i;ki.exports.useEffect((function(){var r,i;t&&a&&("production"!==rA&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||uP.has(r)||(console.warn(r),i&&console.warn(i),uP.add(r))),requestAnimationFrame((function(){var t;e.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(t=n.animationState)||void 0===t||t.setActive(cM.InView,!0)})))}),[t])}var mP=function(t){return function(e){return t(e),null}},yP={inView:mP((function(t){var e=t.visualElement,n=t.whileInView,r=t.onViewportEnter,i=t.onViewportLeave,a=t.viewport,o=void 0===a?{}:a,s=ki.exports.useRef({hasEnteredView:!1,isInView:!1}),u=Boolean(n||r||i);o.once&&s.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?gP:vP)(u,s.current,e,o)})),tap:mP((function(t){var e=t.onTap,n=t.onTapStart,r=t.onTapCancel,i=t.whileTap,a=t.visualElement,o=e||n||r||i,s=ki.exports.useRef(!1),u=ki.exports.useRef(null),l={passive:!(n||e||r||p)};function c(){var t;null===(t=u.current)||void 0===t||t.call(u),u.current=null}function f(){var t;return c(),s.current=!1,null===(t=a.animationState)||void 0===t||t.setActive(cM.Tap,!1),!PM()}function d(t,n){f()&&(DM(a.getInstance(),t.target)?null==e||e(t,n):null==r||r(t,n))}function h(t,e){f()&&(null==r||r(t,e))}function p(t,e){var r;c(),s.current||(s.current=!0,u.current=tO(EM(window,"pointerup",d,l),EM(window,"pointercancel",h,l)),null===(r=a.animationState)||void 0===r||r.setActive(cM.Tap,!0),null==n||n(t,e))}CM(a,"pointerdown",o?p:void 0,l),LM(c)})),focus:mP((function(t){var e=t.whileFocus,n=t.visualElement;pM(n,"focus",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(cM.Focus,!0)}:void 0),pM(n,"blur",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(cM.Focus,!1)}:void 0)})),hover:mP((function(t){var e=t.onHoverStart,n=t.onHoverEnd,r=t.whileHover,i=t.visualElement;CM(i,"pointerenter",e||r?RM(i,!0,e):void 0,{passive:!e}),CM(i,"pointerleave",n||r?RM(i,!1,n):void 0,{passive:!n})}))},bP=0,_P=function(){return bP++};function xP(){var t=ki.exports.useContext(fA);if(null===t)return[!0,null];var e=t.isPresent,n=t.onExitComplete,r=t.register,i=TA(_P);ki.exports.useEffect((function(){return r(i)}),[]);return!e&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}function wP(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 kP=function(t){return 1e3*t},SP={linear:vO,easeIn:gO,easeInOut:yO,easeOut:mO,circIn:bO,circInOut:xO,circOut:_O,backIn:wO,backInOut:SO,backOut:kO,anticipate:EO,bounceIn:AO,bounceInOut:function(t){return t<.5?.5*(1-CO(1-2*t)):.5*CO(2*t-1)+.5},bounceOut:CO},EP=function(t){if(Array.isArray(t)){t.length;var e=eA(t,4);return sP(e[0],e[1],e[2],e[3])}return"string"==typeof t?SP[t]:t},CP=function(t,e){return"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!AT.test(e)||e.startsWith("url(")))},AP=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},TP=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}},MP=function(){return{type:"keyframes",ease:"linear",duration:.3}},OP=function(t){return{type:"keyframes",duration:.8,values:t}},PP={x:AP,y:AP,z:AP,rotate:AP,rotateX:AP,rotateY:AP,rotateZ:AP,scaleX:TP,scaleY:TP,scale:TP,opacity:MP,backgroundColor:MP,color:MP,default:TP},RP=JC(JC({},DT),{color:_T,backgroundColor:_T,outlineColor:_T,fill:_T,stroke:_T,borderColor:_T,borderTopColor:_T,borderRightColor:_T,borderBottomColor:_T,borderLeftColor:_T,filter:PT,WebkitFilter:PT}),DP=function(t){return RP[t]};function LP(t,e){var n,r=DP(t);return r!==PT&&(r=AT),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}var IP=!1;function NP(t){var e=t.ease,n=t.times,r=t.yoyo,i=t.flip,a=t.loop,o=tA(t,["ease","times","yoyo","flip","loop"]),s=JC({},o);return n&&(s.offset=n),o.duration&&(s.duration=kP(o.duration)),o.repeatDelay&&(s.repeatDelay=kP(o.repeatDelay)),e&&(s.ease=function(t){return Array.isArray(t)&&"number"!=typeof t[0]}(e)?e.map(EP):EP(e)),"tween"===o.type&&(s.type="keyframes"),(r||a||i)&&(r?s.repeatType="reverse":a?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=a||r||i||o.repeat),"spring"!==o.type&&(s.type="keyframes"),s}function FP(t,e,n){var r;return Array.isArray(e.to)&&(null!==(r=t.duration)&&void 0!==r||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=nA([],eA(t.to),!1),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=tA(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=JC(JC({},t),function(t,e){var n;return n=iM(e)?OP:PP[t]||PP.default,JC({to:e},n(e))}(n,e.to))),JC(JC({},e),NP(t))}function zP(t,e,n,r,i){var a,o=VP(r,t),s=null!==(a=o.from)&&void 0!==a?a:e.get(),u=CP(t,n);return"none"===s&&u&&"string"==typeof n?s=LP(t,n):jP(s)&&"string"==typeof n?s=BP(n):!Array.isArray(n)&&jP(n)&&"string"==typeof s&&(n=BP(s)),CP(t,s)&&u&&!1!==o.type?function(){var r={from:s,to:n,velocity:e.getVelocity(),onComplete:i,onUpdate:function(t){return e.set(t)}};return"inertia"===o.type||"decay"===o.type?function(t){var e,n=t.from,r=void 0===n?0:n,i=t.velocity,a=void 0===i?0:i,o=t.min,s=t.max,u=t.power,l=void 0===u?.8:u,c=t.timeConstant,f=void 0===c?750:c,d=t.bounceStiffness,h=void 0===d?500:d,p=t.bounceDamping,v=void 0===p?10:p,g=t.restDelta,m=void 0===g?1:g,y=t.modifyTarget,b=t.driver,_=t.onUpdate,x=t.onComplete,w=t.onStop;function k(t){return void 0!==o&&t<o||void 0!==s&&t>s}function S(t){return void 0===o?s:void 0===s||Math.abs(o-t)<Math.abs(s-t)?o:s}function E(t){null==e||e.stop(),e=XO(Object.assign(Object.assign({},t),{driver:b,onUpdate:function(e){var n;null==_||_(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:x,onStop:w}))}function C(t){E(Object.assign({type:"spring",stiffness:h,damping:v,restDelta:m},t))}if(k(r))C({from:r,velocity:a,to:S(r)});else{var A=l*a+r;void 0!==y&&(A=y(A));var T,M,O=S(A),P=O===o?-1:1;E({type:"decay",from:r,velocity:a,timeConstant:f,power:l,restDelta:m,modifyTarget:y,onUpdate:k(A)?function(t){T=M,M=t,a=KO(t-T,GO().delta),(1===P&&t>O||-1===P&&t<O)&&C({from:t,to:O,velocity:a})}:void 0})}return{stop:function(){return null==e?void 0:e.stop()}}}(JC(JC({},r),o)):XO(JC(JC({},FP(o,r,t)),{onUpdate:function(t){var e;r.onUpdate(t),null===(e=o.onUpdate)||void 0===e||e.call(o,t)},onComplete:function(){var t;r.onComplete(),null===(t=o.onComplete)||void 0===t||t.call(o)}}))}:function(){var t,r,a=aM(n);return e.set(a),i(),null===(t=null==o?void 0:o.onUpdate)||void 0===t||t.call(o,a),null===(r=null==o?void 0:o.onComplete)||void 0===r||r.call(o),{stop:function(){}}}}function jP(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function BP(t){return"number"==typeof t?0:LP("",t)}function VP(t,e){return t[e]||t.default||t}function HP(t,e,n,r){return void 0===r&&(r={}),IP&&(r={type:!1}),e.start((function(i){var a,o,s=zP(t,e,n,r,i),u=function(t,e){var n,r;return null!==(r=null!==(n=(VP(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==r?r:0}(r,t),l=function(){return o=s()};return u?a=window.setTimeout(l,kP(u)):l(),function(){clearTimeout(a),null==o||o.stop()}}))}var UP=function(t){return/^\-?\d*\.?\d+$/.test(t)},WP=function(t){return/^0[^.\s]+$/.test(t)};function YP(t,e){-1===t.indexOf(e)&&t.push(e)}function GP(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var qP=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return YP(this.subscriptions,t),function(){return GP(e.subscriptions,t)}},t.prototype.notify=function(t,e,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(var i=0;i<r;i++){var a=this.subscriptions[i];a&&a(t,e,n)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}(),ZP=function(){function t(t){var e,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new qP,this.velocityUpdateSubscribers=new qP,this.renderSubscribers=new qP,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t;var r=GO(),i=r.delta,a=r.timestamp;n.lastUpdated!==a&&(n.timeDelta=i,n.lastUpdated=a,BO.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),e&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return BO.postRender(n.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?KO(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(n){e.hasAnimated=!0,e.stopAnimation=t(n)})).then((function(){return e.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 XP(t){return new ZP(t)}var KP=function(t){return function(e){return e.test(t)}},$P=[rT,lT,uT,sT,fT,cT,{test:function(t){return"auto"===t},parse:function(t){return t}}],QP=function(t){return $P.find(KP(t))},JP=nA(nA([],eA($P),!1),[_T,AT],!1),tR=function(t){return JP.find(KP(t))};function eR(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,XP(n))}function nR(t,e){if(e)return(e[t]||e.default||e).from}function rR(t,e,n){var r;void 0===n&&(n={});var i=kA(t,e,n.custom),a=(i||{}).transition,o=void 0===a?t.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=i?function(){return iR(t,i,n)}:function(){return Promise.resolve()},u=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var i=o.delayChildren,a=void 0===i?0:i,s=o.staggerChildren,u=o.staggerDirection;return function(t,e,n,r,i,a){void 0===n&&(n=0);void 0===r&&(r=0);void 0===i&&(i=1);var o=[],s=(t.variantChildren.size-1)*r,u=1===i?function(t){return void 0===t&&(t=0),t*r}:function(t){return void 0===t&&(t=0),s-t*r};return Array.from(t.variantChildren).sort(aR).forEach((function(t,r){o.push(rR(t,e,JC(JC({},a),{delay:n+u(r)})).then((function(){return t.notifyAnimationComplete(e)})))})),Promise.all(o)}(t,e,a+r,s,u,n)}:function(){return Promise.resolve()},l=o.when;if(l){var c=eA("beforeChildren"===l?[s,u]:[u,s],2),f=c[0],d=c[1];return f().then(d)}return Promise.all([s(),u(n.delay)])}function iR(t,e,n){var r,i=void 0===n?{}:n,a=i.delay,o=void 0===a?0:a,s=i.transitionOverride,u=i.type,l=t.makeTargetAnimatable(e),c=l.transition,f=void 0===c?t.getDefaultTransition():c,d=l.transitionEnd,h=tA(l,["transition","transitionEnd"]);s&&(f=s);var p=[],v=u&&(null===(r=t.animationState)||void 0===r?void 0:r.getState()[u]);for(var g in h){var m=t.getValue(g),y=h[g];if(!(!m||void 0===y||v&&oR(v,g))){var b=JC({delay:o},f);t.shouldReduceMotion&&UA(g)&&(b=JC(JC({},b),{type:!1,delay:0}));var _=HP(g,m,y,b);p.push(_)}}return Promise.all(p).then((function(){d&&function(t,e){var n=kA(t,e),r=n?t.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var o=tA(r,["transitionEnd","transition"]);for(var s in o=JC(JC({},o),a))eR(t,s,aM(o[s]))}(t,d)}))}function aR(t,e){return t.sortNodePosition(e)}function oR(t,e){var n=t.protectedKeys,r=t.needsAnimating,i=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,i}var sR=[cM.Animate,cM.InView,cM.Focus,cM.Hover,cM.Tap,cM.Drag,cM.Exit],uR=nA([],eA(sR),!1).reverse(),lR=sR.length;function cR(t){return function(e){return Promise.all(e.map((function(e){var n=e.animation,r=e.options;return function(t,e,n){var r;if(void 0===n&&(n={}),t.notifyAnimationStart(e),Array.isArray(e)){var i=e.map((function(e){return rR(t,e,n)}));r=Promise.all(i)}else if("string"==typeof e)r=rR(t,e,n);else{var a="function"==typeof e?kA(t,e,n.custom):e;r=iR(t,a,n)}return r.then((function(){return t.notifyAnimationComplete(e)}))}(t,n,r)})))}}function fR(t){var e=cR(t),n=function(){var t;return(t={})[cM.Animate]=dR(!0),t[cM.InView]=dR(),t[cM.Hover]=dR(),t[cM.Tap]=dR(),t[cM.Drag]=dR(),t[cM.Focus]=dR(),t[cM.Exit]=dR(),t}(),r={},i=!0,a=function(e,n){var r=kA(t,n);if(r){r.transition;var i=r.transitionEnd,a=tA(r,["transition","transitionEnd"]);e=JC(JC(JC({},e),a),i)}return e};function o(o,s){for(var u,l=t.getProps(),c=t.getVariantContext(!0)||{},f=[],d=new Set,h={},p=1/0,v=function(e){var r=uR[e],v=n[r],g=null!==(u=l[r])&&void 0!==u?u:c[r],m=xA(g),y=r===s?v.isActive:null;!1===y&&(p=e);var b=g===c[r]&&g!==l[r]&&m;if(b&&i&&t.manuallyAnimateOnMount&&(b=!1),v.protectedKeys=JC({},h),!v.isActive&&null===y||!g&&!v.prevProp||rM(g)||"boolean"==typeof g)return"continue";var _=function(t,e){if("string"==typeof e)return e!==t;if(_A(e))return!wP(e,t);return!1}(v.prevProp,g),x=_||r===s&&v.isActive&&!b&&m||e>p&&m,w=Array.isArray(g)?g:[g],k=w.reduce(a,{});!1===y&&(k={});var S=v.prevResolvedValues,E=void 0===S?{}:S,C=JC(JC({},E),k),A=function(t){x=!0,d.delete(t),v.needsAnimating[t]=!0};for(var T in C){var M=k[T],O=E[T];h.hasOwnProperty(T)||(M!==O?iM(M)&&iM(O)?!wP(M,O)||_?A(T):v.protectedKeys[T]=!0:void 0!==M?A(T):d.add(T):void 0!==M&&d.has(T)?A(T):v.protectedKeys[T]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h=JC(JC({},h),k)),i&&t.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,nA([],eA(w.map((function(t){return{animation:t,options:JC({type:r},o)}}))),!1))},g=0;g<lR;g++)v(g);if(r=JC({},h),d.size){var m={};d.forEach((function(e){var n=t.getBaseTarget(e);void 0!==n&&(m[e]=n)})),f.push({animation:m})}var y=Boolean(f.length);return i&&!1===l.initial&&!t.manuallyAnimateOnMount&&(y=!1),i=!1,y?e(f):Promise.resolve()}return{isAnimated:function(t){return void 0!==r[t]},animateChanges:o,setActive:function(e,r,i){var a;if(n[e].isActive===r)return Promise.resolve();null===(a=t.variantChildren)||void 0===a||a.forEach((function(t){var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;var s=o(i,e);for(var u in n)n[u].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:function(){return n}}}function dR(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var hR={animation:mP((function(t){var e=t.visualElement,n=t.animate;e.animationState||(e.animationState=fR(e)),rM(n)&&ki.exports.useEffect((function(){return n.subscribe(e)}),[n])})),exit:mP((function(t){var e=t.custom,n=t.visualElement,r=eA(xP(),2),i=r[0],a=r[1],o=ki.exports.useContext(fA);ki.exports.useEffect((function(){var t,r;n.isPresent=i;var s=null===(t=n.animationState)||void 0===t?void 0:t.setActive(cM.Exit,!i,{custom:null!==(r=null==o?void 0:o.custom)&&void 0!==r?r:e});!i&&(null==s||s.then(a))}),[i])}))},pR=function(){function t(t,e,n){var r=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var t=mR(r.lastMoveEventInfo,r.history),e=null!==r.startEvent,n=tP(t.offset,{x:0,y:0})>=3;if(e||n){var i=t.point,a=GO().timestamp;r.history.push(JC(JC({},i),{timestamp:a}));var o=r.handlers,s=o.onStart,u=o.onMove;e||(s&&s(r.lastMoveEvent,t),r.startEvent=r.lastMoveEvent),u&&u(r.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){r.lastMoveEvent=t,r.lastMoveEventInfo=vR(e,r.transformPagePoint),vM(t)&&0===t.buttons?r.handlePointerUp(t,e):BO.update(r.updatePoint,!0)},this.handlePointerUp=function(t,e){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=mR(vR(e,r.transformPagePoint),r.history);r.startEvent&&i&&i(t,o),a&&a(t,o)},!(gM(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=i;var a=vR(_M(t),this.transformPagePoint),o=a.point,s=GO().timestamp;this.history=[JC(JC({},o),{timestamp:s})];var u=e.onSessionStart;u&&u(t,mR(a,this.history)),this.removeListeners=tO(EM(window,"pointermove",this.handlePointerMove),EM(window,"pointerup",this.handlePointerUp),EM(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),VO.update(this.updatePoint)},t}();function vR(t,e){return e?{point:e(t.point)}:t}function gR(t,e){return{x:t.x-e.x,y:t.y-e.y}}function mR(t,e){var n=t.point;return{point:n,delta:gR(n,bR(e)),offset:gR(n,yR(e)),velocity:_R(e,.1)}}function yR(t){return t[0]}function bR(t){return t[t.length-1]}function _R(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,i=bR(t);n>=0&&(r=t[n],!(i.timestamp-r.timestamp>kP(e)));)n--;if(!r)return{x:0,y:0};var a=(i.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function xR(t){return t.max-t.min}function wR(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),tP(t,e)<n}function kR(t,e,n,r){void 0===r&&(r=.5),t.origin=r,t.originPoint=YM(e.min,e.max,t.origin),t.scale=xR(n)/xR(e),(wR(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=YM(n.min,n.max,t.origin)-t.originPoint,(wR(t.translate)||isNaN(t.translate))&&(t.translate=0)}function SR(t,e,n,r){kR(t.x,e.x,n.x,null==r?void 0:r.originX),kR(t.y,e.y,n.y,null==r?void 0:r.originY)}function ER(t,e,n){t.min=n.min+e.min,t.max=t.min+xR(e)}function CR(t,e,n){t.min=e.min-n.min,t.max=t.min+xR(e)}function AR(t,e,n){CR(t.x,e.x,n.x),CR(t.y,e.y,n.y)}function TR(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function MR(t,e){var n,r=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&(r=(n=eA([i,r],2))[0],i=n[1]),{min:r,max:i}}var OR=.35;function PR(t,e,n){return{min:RR(t,e),max:RR(t,n)}}function RR(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}function DR(t){return[t("x"),t("y")]}function LR(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function IR(t){return void 0===t||1===t}function NR(t){var e=t.scale,n=t.scaleX,r=t.scaleY;return!IR(e)||!IR(n)||!IR(r)}function FR(t){return NR(t)||zR(t.x)||zR(t.y)||t.z||t.rotate||t.rotateX||t.rotateY}function zR(t){return t&&"0%"!==t}function jR(t,e,n){return n+e*(t-n)}function BR(t,e,n,r,i){return void 0!==i&&(t=jR(t,i,r)),jR(t,n,r)+e}function VR(t,e,n,r,i){void 0===e&&(e=0),void 0===n&&(n=1),t.min=BR(t.min,e,n,r,i),t.max=BR(t.max,e,n,r,i)}function HR(t,e){var n=e.x,r=e.y;VR(t.x,n.translate,n.scale,n.originPoint),VR(t.y,r.translate,r.scale,r.originPoint)}function UR(t,e){t.min=t.min+e,t.max=t.max+e}function WR(t,e,n){var r=eA(n,3),i=r[0],a=r[1],o=r[2],s=void 0!==e[o]?e[o]:.5,u=YM(t.min,t.max,s);VR(t,e[i],e[a],u,e.scale)}var YR=["x","scaleX","originX"],GR=["y","scaleY","originY"];function qR(t,e){WR(t.x,e,YR),WR(t.y,e,GR)}function ZR(t,e){return LR(function(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}}(t.getBoundingClientRect(),e))}var XR=new WeakMap,KR=function(){function t(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}return t.prototype.start=function(t,e){var n=this,r=(void 0===e?{}:e).snapToCursor,i=void 0!==r&&r;if(!1!==this.visualElement.isPresent){this.panSession=new pR(t,{onSessionStart:function(t){n.stopAnimation(),i&&n.snapToCursor(_M(t,"page").point)},onStart:function(t,e){var r,i=n.getProps(),a=i.drag,o=i.dragPropagation,s=i.onDragStart;(!a||o||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=OM(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),DR((function(t){var e,r,i=n.getAxisMotionValue(t).get()||0;if(uT.test(i)){var a=null===(r=null===(e=n.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===r?void 0:r.actual[t];if(a)i=xR(a)*(parseFloat(i)/100)}n.originPoint[t]=i})),null==s||s(t,e),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(cM.Drag,!0))},onMove:function(t,e){var r=n.getProps(),i=r.dragPropagation,a=r.dragDirectionLock,o=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var u=e.offset;if(a&&null===n.currentDirection)return n.currentDirection=function(t,e){void 0===e&&(e=10);var n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(u),void(null!==n.currentDirection&&(null==o||o(n.currentDirection)));n.updateAxis("x",e.point,u),n.updateAxis("y",e.point,u),n.visualElement.syncRender(),null==s||s(t,e)}},onSessionEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(t,e){var n=this.isDragging;if(this.cancel(),n){var r=e.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(t,e)}},t.prototype.cancel=function(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(cM.Drag,!1)},t.prototype.updateAxis=function(t,e,n){var r=this.getProps().drag;if(n&&$R(t,r,this.currentDirection)){var i=this.getAxisMotionValue(t),a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=function(t,e,n){var r=e.min,i=e.max;return void 0!==r&&t<r?t=n?YM(r,t,n.min):Math.max(t,r):void 0!==i&&t>i&&(t=n?YM(i,t,n.max):Math.min(t,i)),t}(a,this.constraints[t],this.elastic[t])),i.set(a)}},t.prototype.resolveConstraints=function(){var t=this,e=this.getProps(),n=e.dragConstraints,r=e.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;n&&yA(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(t,e){var n=e.top,r=e.left,i=e.bottom,a=e.right;return{x:TR(t.x,r,a),y:TR(t.y,n,i)}}(i.actual,n),this.elastic=function(t){return void 0===t&&(t=OR),!1===t?t=0:!0===t&&(t=OR),{x:PR(t,"left","right"),y:PR(t,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&DR((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.actual[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(){var t=this.getProps(),e=t.dragConstraints,n=t.onMeasureDragConstraints;if(!e||!yA(e))return!1;var r=e.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(t,e,n){var r=ZR(t,n),i=e.scroll;return i&&(UR(r.x,i.x),UR(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(t,e){return{x:MR(t.x,e.x),y:MR(t.y,e.y)}}(i.layout.actual,a);if(n){var s=n(function(t){var e=t.x,n=t.y;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(o));this.hasMutatedConstraints=!!s,s&&(o=LR(s))}return o},t.prototype.startAnimation=function(t){var e=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,a=n.dragElastic,o=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,l=this.constraints||{},c=DR((function(n){var u;if($R(n,r,e.currentDirection)){var c=null!==(u=null==l?void 0:l[n])&&void 0!==u?u:{};s&&(c={min:0,max:0});var f=a?200:1e6,d=a?40:1e7,h=JC(JC({type:"inertia",velocity:i?t[n]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),c);return e.startAxisValueAnimation(n,h)}}));return Promise.all(c).then(u)},t.prototype.startAxisValueAnimation=function(t,e){return HP(t,this.getAxisMotionValue(t),0,e)},t.prototype.stopAnimation=function(){var t=this;DR((function(e){return t.getAxisMotionValue(e).stop()}))},t.prototype.getAxisMotionValue=function(t){var e,n,r="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)},t.prototype.snapToCursor=function(t){var e=this;DR((function(n){if($R(n,e.getProps().drag,e.currentDirection)){var r=e.visualElement.projection,i=e.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],o=a.min,s=a.max;i.set(t[n]-YM(o,s,.5))}}}))},t.prototype.scalePositionWithinConstraints=function(){var t,e=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,a=this.visualElement.projection;if(yA(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};DR((function(t){var n,r,i,a,s,u=e.getAxisMotionValue(t);if(u){var l=u.get();o[t]=(n={min:l,max:l},r=e.constraints[t],i=.5,a=xR(n),(s=xR(r))>a?i=WM(r.min,r.max-a,n.min):a>s&&(i=WM(n.min,n.max-s,r.min)),IM(0,1,i))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(t=a.root)||void 0===t||t.updateScroll(),a.updateLayout(),this.resolveConstraints(),DR((function(t){if($R(t,r,null)){var n=e.getAxisMotionValue(t),i=e.constraints[t],a=i.min,s=i.max;n.set(YM(a,s,o[t]))}}))}},t.prototype.addListeners=function(){var t,e=this;XR.set(this.visualElement,this);var n=EM(this.visualElement.getInstance(),"pointerdown",(function(t){var n=e.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&e.start(t)})),r=function(){yA(e.getProps().dragConstraints)&&(e.constraints=e.resolveRefConstraints())},i=this.visualElement.projection,a=i.addEventListener("measure",r);i&&!i.layout&&(null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout()),r();var o=hM(window,"resize",(function(){return e.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(t){var n=t.delta,r=t.hasLayoutChanged;e.isDragging&&r&&(DR((function(t){var r=e.getAxisMotionValue(t);r&&(e.originPoint[t]+=n[t].translate,r.set(r.get()+n[t].translate))})),e.visualElement.syncRender())})),function(){o(),n(),a()}},t.prototype.getProps=function(){var t=this.visualElement.getProps(),e=t.drag,n=void 0!==e&&e,r=t.dragDirectionLock,i=void 0!==r&&r,a=t.dragPropagation,o=void 0!==a&&a,s=t.dragConstraints,u=void 0!==s&&s,l=t.dragElastic,c=void 0===l?OR:l,f=t.dragMomentum,d=void 0===f||f;return JC(JC({},t),{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:d})},t}();function $R(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var QR={pan:mP((function(t){var e=t.onPan,n=t.onPanStart,r=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,o=e||n||r||i,s=ki.exports.useRef(null),u=ki.exports.useContext(lA).transformPagePoint,l={onSessionStart:i,onStart:n,onMove:e,onEnd:function(t,e){s.current=null,r&&r(t,e)}};ki.exports.useEffect((function(){null!==s.current&&s.current.updateHandlers(l)})),CM(a,"pointerdown",o&&function(t){s.current=new pR(t,l,{transformPagePoint:u})}),LM((function(){return s.current&&s.current.end()}))})),drag:mP((function(t){var e=t.dragControls,n=t.visualElement,r=TA((function(){return new KR(n)}));ki.exports.useEffect((function(){return e&&e.subscribe(r)}),[r,e]),ki.exports.useEffect((function(){return r.addListeners()}),[r])}))},JR=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var tD=function(t){var e=t.treeType,n=void 0===e?"":e,r=t.build,i=t.getBaseTarget,a=t.makeTargetAnimatable,o=t.measureViewportBox,s=t.render,u=t.readValueFromInstance,l=t.removeValueFromRenderState,c=t.sortNodePosition,f=t.scrapeMotionValuesFromProps;return function(t,e){var d=t.parent,h=t.props,p=t.presenceId,v=t.blockInitialAnimation,g=t.visualState,m=t.shouldReduceMotion;void 0===e&&(e={});var y,b,_=!1,x=g.latestValues,w=g.renderState,k=function(){var t=JR.map((function(){return new qP})),e={},n={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){JR.forEach((function(r){var i,a="on"+r,o=t[a];null===(i=e[r])||void 0===i||i.call(e),o&&(e[r]=n[a](o))}))}};return t.forEach((function(t,e){n["on"+JR[e]]=function(e){return t.add(e)},n["notify"+JR[e]]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.notify.apply(t,nA([],eA(e),!1))}})),n}(),S=new Map,E=new Map,C={},A=JC({},x);function T(){y&&_&&(M(),s(y,w,h.style,F.projection))}function M(){r(F,w,x,e,h)}function O(){k.notifyUpdate(x)}function P(t,e){var n=e.onChange((function(e){x[t]=e,h.onUpdate&&BO.update(O,!1,!0)})),r=e.onRenderRequest(F.scheduleRender);E.set(t,(function(){n(),r()}))}var R=f(h);for(var D in R){var L=R[D];void 0!==x[D]&&qA(L)&&L.set(x[D],!1)}var I=SA(h),N=EA(h),F=JC(JC({treeType:n,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:p,shouldReduceMotion:m,variantChildren:N?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==d?void 0:d.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(y)},mount:function(t){_=!0,y=F.current=t,F.projection&&F.projection.mount(t),N&&d&&!I&&(b=null==d?void 0:d.addVariantChild(F)),S.forEach((function(t,e){return P(e,t)})),null==d||d.children.add(F),F.setProps(h)},unmount:function(){var t;null===(t=F.projection)||void 0===t||t.unmount(),VO.update(O),VO.render(T),E.forEach((function(t){return t()})),null==b||b(),null==d||d.children.delete(F),k.clearAllListeners(),y=void 0,_=!1},addVariantChild:function(t){var e,n=F.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),function(){return n.variantChildren.delete(t)}},sortNodePosition:function(t){return c&&n===t.treeType?c(F.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return N?F:null==d?void 0:d.getClosestVariantNode()},getLayoutId:function(){return h.layoutId},getInstance:function(){return y},getStaticValue:function(t){return x[t]},setStaticValue:function(t,e){return x[t]=e},getLatestValues:function(){return x},setVisibility:function(t){F.isVisible!==t&&(F.isVisible=t,F.scheduleRender())},makeTargetAnimatable:function(t,e){return void 0===e&&(e=!0),a(F,t,h,e)},measureViewportBox:function(){return o(y,h)},addValue:function(t,e){F.hasValue(t)&&F.removeValue(t),S.set(t,e),x[t]=e.get(),P(t,e)},removeValue:function(t){var e;S.delete(t),null===(e=E.get(t))||void 0===e||e(),E.delete(t),delete x[t],l(t,w)},hasValue:function(t){return S.has(t)},getValue:function(t,e){var n=S.get(t);return void 0===n&&void 0!==e&&(n=XP(e),F.addValue(t,n)),n},forEachValue:function(t){return S.forEach(t)},readValue:function(t){var n;return null!==(n=x[t])&&void 0!==n?n:u(y,t,e)},setBaseTarget:function(t,e){A[t]=e},getBaseTarget:function(t){if(i){var e=i(h,t);if(void 0!==e&&!qA(e))return e}return A[t]}},k),{build:function(){return M(),w},scheduleRender:function(){BO.render(T,!1,!0)},syncRender:T,setProps:function(t){(t.transformTemplate||h.transformTemplate)&&F.scheduleRender(),h=t,k.updatePropListeners(t),C=function(t,e,n){var r;for(var i in e){var a=e[i],o=n[i];if(qA(a))t.addValue(i,a);else if(qA(o))t.addValue(i,XP(a));else if(o!==a)if(t.hasValue(i)){var s=t.getValue(i);!s.hasAnimated&&s.set(a)}else t.addValue(i,XP(null!==(r=t.getStaticValue(i))&&void 0!==r?r:a))}for(var i in n)void 0===e[i]&&t.removeValue(i);return e}(F,f(h),C)},getProps:function(){return h},getVariant:function(t){var e;return null===(e=h.variants)||void 0===e?void 0:e[t]},getDefaultTransition:function(){return h.transition},getTransformPagePoint:function(){return h.transformPagePoint},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null==d?void 0:d.getVariantContext();if(!I){var e=(null==d?void 0:d.getVariantContext())||{};return void 0!==h.initial&&(e.initial=h.initial),e}for(var n={},r=0;r<nD;r++){var i=eD[r],a=h[i];(xA(a)||!1===a)&&(n[i]=a)}return n}});return F}},eD=nA(["initial"],eA(sR),!1),nD=eD.length;function rD(t){return"string"==typeof t&&t.startsWith("var(--")}var iD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function aD(t,e,n){var r=eA(function(t){var e=iD.exec(t);if(!e)return[,];var n=eA(e,3);return[n[1],n[2]]}(t),2),i=r[0],a=r[1];if(i){var o=window.getComputedStyle(e).getPropertyValue(i);return o?o.trim():rD(a)?aD(a,e):a}}var oD,sD=new Set(["width","height","top","left","right","bottom","x","y"]),uD=function(t){return sD.has(t)},lD=function(t,e){t.set(e,!1),t.set(e)},cD=function(t){return t===rT||t===lT};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(oD||(oD={}));var fD=function(t,e){return parseFloat(t.split(", ")[e])},dD=function(t,e){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var a=i.match(/^matrix3d\((.+)\)$/);if(a)return fD(a[1],e);var o=i.match(/^matrix\((.+)\)$/);return o?fD(o[1],t):0}},hD=new Set(["x","y","z"]),pD=BA.filter((function(t){return!hD.has(t)}));var vD={width:function(t,e){var n=t.x,r=e.paddingLeft,i=void 0===r?"0":r,a=e.paddingRight,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},height:function(t,e){var n=t.y,r=e.paddingTop,i=void 0===r?"0":r,a=e.paddingBottom,o=void 0===a?"0":a;return n.max-n.min-parseFloat(i)-parseFloat(o)},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:dD(4,13),y:dD(5,14)},gD=function(t,e,n,r){void 0===n&&(n={}),void 0===r&&(r={}),e=JC({},e),r=JC({},r);var i=Object.keys(e).filter(uD),a=[],o=!1,s=[];if(i.forEach((function(i){var u=t.getValue(i);if(t.hasValue(i)){var l,c=n[i],f=QP(c),d=e[i];if(iM(d)){var h=d.length,p=null===d[0]?1:0;c=d[p],f=QP(c);for(var v=p;v<h;v++)l?QP(d[v]):l=QP(d[v])}else l=QP(d);if(f!==l)if(cD(f)&&cD(l)){var g=u.get();"string"==typeof g&&u.set(parseFloat(g)),"string"==typeof d?e[i]=parseFloat(d):Array.isArray(d)&&l===lT&&(e[i]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==l?void 0:l.transform)&&(0===c||0===d)?0===c?u.set(l.transform(c)):e[i]=f.transform(d):(o||(a=function(t){var e=[];return pD.forEach((function(n){var r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.syncRender(),e}(t),o=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:e[i],lD(u,d))}})),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,l=function(t,e,n){var r=e.measureViewportBox(),i=e.getInstance(),a=getComputedStyle(i),o=a.display,s={};"none"===o&&e.setStaticValue("display",t.display||"block"),n.forEach((function(t){s[t]=vD[t](r,a)})),e.syncRender();var u=e.measureViewportBox();return n.forEach((function(n){var r=e.getValue(n);lD(r,s[n]),t[n]=vD[n](u,a)})),t}(e,t,s);return a.length&&a.forEach((function(e){var n=eA(e,2),r=n[0],i=n[1];t.getValue(r).set(i)})),t.syncRender(),null!==u&&window.scrollTo({top:u}),{target:l,transitionEnd:r}}return{target:e,transitionEnd:r}};function mD(t,e,n,r){return function(t){return Object.keys(t).some(uD)}(e)?gD(t,e,n,r):{target:e,transitionEnd:r}}var yD=function(t,e,n,r){var i=function(t,e,n){var r,i=tA(e,[]),a=t.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var o in n&&(n=JC({},n)),t.forEachValue((function(t){var e=t.get();if(rD(e)){var n=aD(e,a);n&&t.set(n)}})),i){var s=i[o];if(rD(s)){var u=aD(s,a);u&&(i[o]=u,n&&(null!==(r=n[o])&&void 0!==r||(n[o]=s)))}}return{target:i,transitionEnd:n}}(t,e,r);return mD(t,e=i.target,n,r=i.transitionEnd)};var bD={treeType:"dom",readValueFromInstance:function(t,e){if(UA(e)){var n=DP(e);return n&&n.default||0}var r,i=(r=t,window.getComputedStyle(r));return(XA(e)?i.getPropertyValue(e):i[e])||0},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:function(t,e){return ZR(t,e.transformPagePoint)},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;void 0===r&&(r=!0);var a=e.transition,o=e.transitionEnd,s=tA(e,["transition","transitionEnd"]),u=function(t,e,n){var r,i,a={};for(var o in t)a[o]=null!==(r=nR(o,e))&&void 0!==r?r:null===(i=n.getValue(o))||void 0===i?void 0:i.get();return a}(s,a||{},t);if(i&&(o&&(o=i(o)),s&&(s=i(s)),u&&(u=i(u))),r){!function(t,e,n){var r,i,a,o,s=Object.keys(e).filter((function(e){return!t.hasValue(e)})),u=s.length;if(u)for(var l=0;l<u;l++){var c=s[l],f=e[c],d=null;Array.isArray(f)&&(d=f[0]),null===d&&(d=null!==(i=null!==(r=n[c])&&void 0!==r?r:t.readValue(c))&&void 0!==i?i:e[c]),null!=d&&("string"==typeof d&&(UP(d)||WP(d))?d=parseFloat(d):!tR(d)&&AT.test(f)&&(d=LP(c,f)),t.addValue(c,XP(d)),null!==(a=(o=n)[c])&&void 0!==a||(o[c]=d),t.setBaseTarget(c,d))}}(t,s,u);var l=yD(t,s,u,o);o=l.transitionEnd,s=l.target}return JC({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:eM,build:function(t,e,n,r,i){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),LT(e,n,r,i.transformTemplate)},render:QT},_D=tD(bD),xD=tD(JC(JC({},bD),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return UA(e)?(null===(n=DP(e))||void 0===n?void 0:n.default)||0:(e=JT.has(e)?e:$T(e),t.getAttribute(e))},scrapeMotionValuesFromProps:nM,build:function(t,e,n,r,i){GT(e,n,r,i.transformTemplate)},render:tM})),wD=function(t,e){return FA(t)?xD(e,{enableHardwareAcceleration:!1}):_D(e,{enableHardwareAcceleration:!0})};function kD(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var SD={correct:function(t,e){if(!e.target)return t;if("string"==typeof t){if(!lT.test(t))return t;t=parseFloat(t)}var n=kD(t,e.target.x),r=kD(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}},ED="_$css",CD={correct:function(t,e){var n=e.treeScale,r=e.projectionDelta,i=t,a=t.includes("var("),o=[];a&&(t=t.replace(iD,(function(t){return o.push(t),ED})));var s=AT.parse(t);if(s.length>5)return i;var u=AT.createTransformer(t),l="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,f=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=f;var d=YM(c,f,.5);"number"==typeof s[2+l]&&(s[2+l]/=d),"number"==typeof s[3+l]&&(s[3+l]/=d);var h=u(s);if(a){var p=0;h=h.replace(ED,(function(){var t=o[p];return p++,t}))}return h}},AD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return QC(e,t),e.prototype.componentDidMount=function(){var t,e=this,n=this.props,r=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,o=n.layoutId,s=r.projection;t=TD,Object.assign(zA,t),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==a?void 0:a.register)&&o&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){e.safeToRemove()})),s.setOptions(JC(JC({},s.options),{onExitComplete:function(){return e.safeToRemove()}}))),MA.hasEverUpdated=!0},e.prototype.getSnapshotBeforeUpdate=function(t){var e=this,n=this.props,r=n.layoutDependency,i=n.visualElement,a=n.drag,o=n.isPresent,s=i.projection;return s?(s.isPresent=o,a||t.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||BO.postRender((function(){var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||e.safeToRemove()}))),null):null},e.prototype.componentDidUpdate=function(){var t=this.props.visualElement.projection;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())},e.prototype.componentWillUnmount=function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,r=t.switchLayoutGroup,i=e.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},e.prototype.safeToRemove=function(){var t=this.props.safeToRemove;null==t||t()},e.prototype.render=function(){return null},e}(pa.Component);var TD={borderRadius:JC(JC({},SD),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:SD,borderTopRightRadius:SD,borderBottomLeftRadius:SD,borderBottomRightRadius:SD,boxShadow:CD},MD={measureLayout:function(t){var e=eA(xP(),2),n=e[0],r=e[1],i=ki.exports.useContext(PA);return yk(AD,_i({},JC({},t,{layoutGroup:i,switchLayoutGroup:ki.exports.useContext(RA),isPresent:n,safeToRemove:r})))}};var OD=["TopLeft","TopRight","BottomLeft","BottomRight"],PD=OD.length,RD=function(t){return"string"==typeof t?parseFloat(t):t},DD=function(t){return"number"==typeof t||lT.test(t)};function LD(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}var ID=FD(0,.5,_O),ND=FD(.5,.95,vO);function FD(t,e,n){return function(r){return r<t?0:r>e?1:n(WM(t,e,r))}}function zD(t,e){t.min=e.min,t.max=e.max}function jD(t,e){zD(t.x,e.x),zD(t.y,e.y)}function BD(t,e,n,r,i){return t=jR(t-=e,1/n,r),void 0!==i&&(t=jR(t,1/i,r)),t}function VD(t,e,n,r,i){var a=eA(n,3),o=a[0],s=a[1],u=a[2];!function(t,e,n,r,i,a,o){if(void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=t),void 0===o&&(o=t),uT.test(e)&&(e=parseFloat(e),e=YM(o.min,o.max,e/100)-o.min),"number"==typeof e){var s=YM(a.min,a.max,r);t===a&&(s-=e),t.min=BD(t.min,e,n,s,i),t.max=BD(t.max,e,n,s,i)}}(t,e[o],e[s],e[u],e.scale,r,i)}var HD=["x","scaleX","originX"],UD=["y","scaleY","originY"];function WD(t,e,n,r){VD(t.x,e,HD,null==n?void 0:n.x,null==r?void 0:r.x),VD(t.y,e,UD,null==n?void 0:n.y,null==r?void 0:r.y)}function YD(t){return 0===t.translate&&1===t.scale}function GD(t){return YD(t.x)&&YD(t.y)}function qD(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 ZD=function(){function t(){this.members=[]}return t.prototype.add=function(t){YP(this.members,t),t.scheduleRender()},t.prototype.remove=function(t){if(GP(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}},t.prototype.relegate=function(t){var e,n=this.members.findIndex((function(e){return t===e}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)},t.prototype.promote=function(t,e){var n,r=this.lead;t!==r&&(this.prevLead=r,this.lead=t,t.show(),r&&(r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues,t.snapshot.isShared=!0),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0),!1===t.options.crossfade&&r.hide()))},t.prototype.exitAnimationComplete=function(){this.members.forEach((function(t){var e,n,r,i,a;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(a=null===(r=t.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===a||a.call(i)}))},t.prototype.scheduleRender=function(){this.members.forEach((function(t){t.instance&&t.scheduleRender(!1)}))},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}();function XD(t,e,n){var r=t.x.translate/e.x,i=t.y.translate/e.y,a="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(a+="scale(".concat(1/e.x,", ").concat(1/e.y,") "),n){var o=n.rotate,s=n.rotateX,u=n.rotateY;o&&(a+="rotate(".concat(o,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),u&&(a+="rotateY(".concat(u,"deg) "))}var l=t.x.scale*e.x,c=t.y.scale*e.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(a+="scale(".concat(l,", ").concat(c,")"))?"none":a}var KD=function(t,e){return t.depth-e.depth},$D=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){YP(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){GP(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(KD),this.isDirty=!1,this.children.forEach(t)},t}();function QD(t){var e=t.attachResizeListener,n=t.defaultParent,r=t.measureScroll,i=t.checkIsScrollRoot,a=t.resetTransform;return function(){function t(t,e,r){var i=this;void 0===e&&(e={}),void 0===r&&(r=null==n?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(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(aL),i.nodes.forEach(oL)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=t,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?nA(nA([],eA(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new $D)}return t.prototype.addEventListener=function(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new qP),this.eventHandlers.get(t).add(e)},t.prototype.notifyListeners=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.eventHandlers.get(t);null==r||r.notify.apply(r,nA([],eA(e),!1))},t.prototype.hasListeners=function(t){return this.eventHandlers.has(t)},t.prototype.registerPotentialNode=function(t,e){this.potentialNodes.set(t,e)},t.prototype.mount=function(t,n){var r,i=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;var a=this.options,o=a.layoutId,s=a.layout,u=a.visualElement;if(u&&!u.getInstance()&&u.mount(t),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||o)&&(this.isLayoutDirty=!0),e){var l,c=function(){return i.root.updateBlockedByResize=!1};e(t,(function(){i.root.updateBlockedByResize=!0,clearTimeout(l),l=window.setTimeout(c,250),MA.hasAnimatedSinceResize&&(MA.hasAnimatedSinceResize=!1,i.nodes.forEach(iL))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&u&&(o||s)&&this.addEventListener("didUpdate",(function(t){var e,n,r,a,o,s=t.delta,l=t.hasLayoutChanged,c=t.hasRelativeTargetChanged,f=t.layout;if(i.isTreeAnimationBlocked())return i.target=void 0,void(i.relativeTarget=void 0);var d=null!==(n=null!==(e=i.options.transition)&&void 0!==e?e:u.getDefaultTransition())&&void 0!==n?n:dL,h=u.getProps(),p=h.onLayoutAnimationStart,v=h.onLayoutAnimationComplete,g=!i.targetLayout||!qD(i.targetLayout,f)||c,m=!l&&c;if((null===(r=i.resumeFrom)||void 0===r?void 0:r.instance)||m||l&&(g||!i.currentAnimation)){i.resumeFrom&&(i.resumingFrom=i.resumeFrom,i.resumingFrom.resumingFrom=void 0),i.setAnimationOrigin(s,m);var y=JC(JC({},VP(d,"layout")),{onPlay:p,onComplete:v});u.shouldReduceMotion&&(y.delay=0,y.type=!1),i.startAnimation(y)}else l||0!==i.animationProgress||i.finishAnimation(),i.isLead()&&(null===(o=(a=i.options).onExitComplete)||void 0===o||o.call(a));i.targetLayout=f}))}},t.prototype.unmount=function(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,VO.preRender(this.updateProjection)},t.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},t.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},t.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},t.prototype.isTreeAnimationBlocked=function(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1},t.prototype.startUpdate=function(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(sL))},t.prototype.willUpdate=function(t){var e,n,r;if(void 0===t&&(t=!0),this.root.isUpdateBlocked())null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var a=this.path[i];a.shouldResetTransform=!0,a.updateScroll()}var o=this.options,s=o.layoutId,u=o.layout;if(void 0!==s||u){var l=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==l?void 0:l(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}}},t.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(nL);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(hL),this.potentialNodes.clear()),this.nodes.forEach(rL),this.nodes.forEach(JD),this.nodes.forEach(tL),this.clearAllSnapshots(),HO.update(),HO.preRender(),HO.render())},t.prototype.clearAllSnapshots=function(){this.nodes.forEach(eL),this.sharedNodes.forEach(uL)},t.prototype.scheduleUpdateProjection=function(){BO.preRender(this.updateProjection,!1,!0)},t.prototype.scheduleCheckAfterUnmount=function(){var t=this;BO.postRender((function(){t.isLayoutDirty?t.root.didUpdate():t.root.checkUpdateFailed()}))},t.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var t=this.measure(),e=this.removeTransform(this.removeElementScroll(t));vL(e),this.snapshot={measured:t,layout:e,latestValues:{}}}},t.prototype.updateLayout=function(){var t;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var e=0;e<this.path.length;e++){this.path[e].updateScroll()}var n=this.measure();vL(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(t=this.options.visualElement)||void 0===t||t.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},t.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},t.prototype.resetTransform=function(){var t;if(a){var e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!GD(this.projectionDelta),r=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),o=i!==this.prevTransformTemplateValue;e&&(n||FR(this.latestValues)||o)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},t.prototype.measure=function(){var t=this.options.visualElement;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};var e=t.measureViewportBox(),n=this.root.scroll;return n&&(UR(e.x,n.x),UR(e.y,n.y)),e},t.prototype.removeElementScroll=function(t){var e={x:{min:0,max:0},y:{min:0,max:0}};jD(e,t);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,a=r.options,o=r.isScrollRoot;if(r!==this.root&&i&&a.layoutScroll){if(o){jD(e,t);var s=this.root.scroll;s&&(UR(e.x,-s.x),UR(e.y,-s.y))}UR(e.x,i.x),UR(e.y,i.y)}}return e},t.prototype.applyTransform=function(t,e){void 0===e&&(e=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};jD(n,t);for(var r=0;r<this.path.length;r++){var i=this.path[r];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&qR(n,{x:-i.scroll.x,y:-i.scroll.y}),FR(i.latestValues)&&qR(n,i.latestValues)}return FR(this.latestValues)&&qR(n,this.latestValues),n},t.prototype.removeTransform=function(t){var e,n={x:{min:0,max:0},y:{min:0,max:0}};jD(n,t);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&FR(i.latestValues)){NR(i.latestValues)&&i.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};jD(a,i.measure()),WD(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layout,a)}}return FR(this.latestValues)&&WD(n,this.latestValues),n},t.prototype.setTargetDelta=function(t){this.targetDelta=t,this.root.scheduleUpdateProjection()},t.prototype.setOptions=function(t){var e;this.options=JC(JC(JC({},this.options),t),{crossfade:null===(e=t.crossfade)||void 0===e||e})},t.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},t.prototype.resolveTargetDelta=function(){var t,e,n,r,i=this.options,a=i.layout,o=i.layoutId;this.layout&&(a||o)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},AR(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),jD(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(e=this.target,n=this.relativeTarget,r=this.relativeParent.target,ER(e.x,n.x,r.x),ER(e.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):jD(this.target,this.layout.actual),HR(this.target,this.targetDelta)):jD(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={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},AR(this.relativeTargetOrigin,this.target,this.relativeParent.target),jD(this.relativeTarget,this.relativeTargetOrigin)))))},t.prototype.getClosestProjectingParent=function(){if(this.parent&&!FR(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},t.prototype.calcProjection=function(){var t,e=this.options,n=e.layout,r=e.layoutId;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();jD(this.layoutCorrected,this.layout.actual),function(t,e,n,r){var i,a;void 0===r&&(r=!1);var o=n.length;if(o){var s,u;e.x=e.y=1;for(var l=0;l<o;l++)u=(s=n[l]).projectionDelta,"contents"!==(null===(a=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&qR(t,{x:-s.scroll.x,y:-s.scroll.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,HR(t,u)),r&&FR(s.latestValues)&&qR(t,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var a=i.target;if(a){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var o=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;SR(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=XD(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===o&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},t.prototype.hide=function(){this.isVisible=!1},t.prototype.show=function(){this.isVisible=!0},t.prototype.scheduleRender=function(t){var e,n,r;void 0===t&&(t=!0),null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},t.prototype.setAnimationOrigin=function(t,e){var n,r=this;void 0===e&&(e=!1);var i=this.snapshot,a=(null==i?void 0:i.latestValues)||{},o=JC({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;var u={x:{min:0,max:0},y:{min:0,max:0}},l=null==i?void 0:i.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,f=Boolean(l&&!c&&!0===this.options.crossfade&&!this.path.some(fL));this.animationProgress=0,this.mixTargetDelta=function(e){var n,i=e/1e3;lL(s.x,t.x,i),lL(s.y,t.y,i),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(AR(u,r.layout.actual,r.relativeParent.layout.actual),function(t,e,n,r){cL(t.x,e.x,n.x,r),cL(t.y,e.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,u,i)),l&&(r.animationValues=o,function(t,e,n,r,i,a){var o,s,u,l;i?(t.opacity=YM(0,null!==(o=n.opacity)&&void 0!==o?o:1,ID(r)),t.opacityExit=YM(null!==(s=e.opacity)&&void 0!==s?s:1,0,ND(r))):a&&(t.opacity=YM(null!==(u=e.opacity)&&void 0!==u?u:1,null!==(l=n.opacity)&&void 0!==l?l:1,r));for(var c=0;c<PD;c++){var f="border".concat(OD[c],"Radius"),d=LD(e,f),h=LD(n,f);void 0===d&&void 0===h||(d||(d=0),h||(h=0),0===d||0===h||DD(d)===DD(h)?(t[f]=Math.max(YM(RD(d),RD(h),r),0),(uT.test(h)||uT.test(d))&&(t[f]+="%")):t[f]=h)}(e.rotate||n.rotate)&&(t.rotate=YM(e.rotate||0,n.rotate||0,r))}(o,a,r.latestValues,i,f,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=i},this.mixTargetDelta(0)},t.prototype.startAnimation=function(t){var e,n,r=this;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(VO.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=BO.update((function(){MA.hasAnimatedSinceResize=!0,r.currentAnimation=function(t,e,n){void 0===n&&(n={});var r=qA(t)?t:XP(t);return HP("",r,e,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,1e3,JC(JC({},t),{onUpdate:function(e){var n;r.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:function(){var e;null===(e=t.onComplete)||void 0===e||e.call(t),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},t.prototype.completeAnimation=function(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},t.prototype.finishAnimation=function(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},t.prototype.applyTransformsToTarget=function(){var t=this.getLead(),e=t.targetWithTransforms,n=t.target,r=t.layout,i=t.latestValues;e&&n&&r&&(jD(e,n),qR(e,i),SR(this.projectionDeltaWithTransform,this.layoutCorrected,e,i))},t.prototype.registerSharedNode=function(t,e){var n,r,i;this.sharedNodes.has(t)||this.sharedNodes.set(t,new ZD),this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=e.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,e)})},t.prototype.isLead=function(){var t=this.getStack();return!t||t.lead===this},t.prototype.getLead=function(){var t;return this.options.layoutId&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this},t.prototype.getPrevLead=function(){var t;return this.options.layoutId?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0},t.prototype.getStack=function(){var t=this.options.layoutId;if(t)return this.root.sharedNodes.get(t)},t.prototype.promote=function(t){var e=void 0===t?{}:t,n=e.needsReset,r=e.transition,i=e.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},t.prototype.relegate=function(){var t=this.getStack();return!!t&&t.relegate(this)},t.prototype.resetRotation=function(){var t=this.options.visualElement;if(t){for(var e=!1,n={},r=0;r<jA.length;r++){var i="rotate"+jA[r];t.getStaticValue(i)&&(e=!0,n[i]=t.getStaticValue(i),t.setStaticValue(i,0))}if(e){for(var i in null==t||t.syncRender(),n)t.setStaticValue(i,n[i]);t.scheduleRender()}}},t.prototype.getProjectionStyles=function(t){var e,n,r,i,a,o;void 0===t&&(t={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=oM(t.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=oM(t.pointerEvents)||""),this.hasProjected&&!FR(this.latestValues)&&(c.transform=u?u({},""):"none",this.hasProjected=!1),c}var f=l.animationValues||l.latestValues;this.applyTransformsToTarget(),s.transform=XD(this.projectionDeltaWithTransform,this.treeScale,f),u&&(s.transform=u(f,s.transform));var d=this.projectionDelta,h=d.x,p=d.y;for(var v in s.transformOrigin="".concat(100*h.origin,"% ").concat(100*p.origin,"% 0"),l.animationValues?s.opacity=l===this?null!==(i=null!==(r=f.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=l===this?null!==(a=f.opacity)&&void 0!==a?a:"":null!==(o=f.opacityExit)&&void 0!==o?o:0,zA)if(void 0!==f[v]){var g=zA[v],m=g.correct,y=g.applyTo,b=m(f[v],l);if(y)for(var _=y.length,x=0;x<_;x++)s[y[x]]=b;else s[v]=b}return this.options.layoutId&&(s.pointerEvents=l===this?oM(t.pointerEvents)||"":"none"),s},t.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},t.prototype.resetTree=function(){this.root.nodes.forEach((function(t){var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(nL),this.root.sharedNodes.clear()},t}()}function JD(t){t.updateLayout()}function tL(t){var e,n,r,i,a=null!==(n=null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)&&void 0!==n?n:t.snapshot;if(t.isLead()&&t.layout&&a&&t.hasListeners("didUpdate")){var o=t.layout,s=o.actual,u=o.measured;"size"===t.options.animationType?DR((function(t){var e=a.isShared?a.measured[t]:a.layout[t],n=xR(e);e.min=s[t].min,e.max=e.min+n})):"position"===t.options.animationType&&DR((function(t){var e=a.isShared?a.measured[t]:a.layout[t],n=xR(s[t]);e.max=e.min+n}));var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};SR(l,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?SR(c,t.applyTransform(u,!0),a.measured):SR(c,s,a.layout);var f=!GD(l),d=!1;if(!t.resumeFrom&&(t.relativeParent=t.getClosestProjectingParent(),t.relativeParent&&!t.relativeParent.resumeFrom)){var h=t.relativeParent,p=h.snapshot,v=h.layout;if(p&&v){var g={x:{min:0,max:0},y:{min:0,max:0}};AR(g,a.layout,p.layout);var m={x:{min:0,max:0},y:{min:0,max:0}};AR(m,s,v.actual),qD(g,m)||(d=!0)}}t.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:c,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else t.isLead()&&(null===(i=(r=t.options).onExitComplete)||void 0===i||i.call(r));t.options.transition=void 0}function eL(t){t.clearSnapshot()}function nL(t){t.clearMeasurements()}function rL(t){var e=t.options.visualElement;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notifyBeforeLayoutMeasure(),t.resetTransform()}function iL(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function aL(t){t.resolveTargetDelta()}function oL(t){t.calcProjection()}function sL(t){t.resetRotation()}function uL(t){t.removeLeadSnapshot()}function lL(t,e,n){t.translate=YM(e.translate,0,n),t.scale=YM(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function cL(t,e,n,r){t.min=YM(e.min,n.min,r),t.max=YM(e.max,n.max,r)}function fL(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var dL={duration:.45,ease:[.4,0,.1,1]};function hL(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).querySelector('[data-projection-id="'.concat(e,'"]'));i&&t.mount(i,!0)}function pL(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function vL(t){pL(t.x),pL(t.y)}var gL=QD({attachResizeListener:function(t,e){return hM(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),mL={current:void 0},yL=QD({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!mL.current){var t=new gL(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),mL.current=t}return mL.current},resetTransform:function(t,e){t.style.transform=null!=e?e:"none"},checkIsScrollRoot:function(t){return Boolean("fixed"===window.getComputedStyle(t).position)}}),bL=JC(JC(JC(JC({},hR),yP),QR),MD),_L=hi("m",IA((function(t,e){return function(t,e,n,r,i){var a=e.forwardMotionProps,o=void 0!==a&&a,s=FA(t)?fM:dM;return JC(JC({},s),{preloadedFeatures:n,useRender:XT(o),createVisualElement:r,projectionNodeConstructor:i,Component:t})}(t,e,bL,wD,yL)}))),xL=Object.defineProperty,wL=function(t,e,n){return function(t,e,n){e in t?xL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},kL={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"},SL={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"},EL={colorBlue70:"#0056D3"},CL=Object.freeze(Object.defineProperty({__proto__:null,primaryColors:kL,neutralColors:SL,blueColors:EL},Symbol.toStringTag,{value:"Module"})),AL={"--ll-color-primary":kL.colorPrimary50,"--ll-color-primary-variant1":kL.colorPrimary40,"--ll-color-background":SL.colorNeutral100,"--ll-color-surface":SL.colorNeutral95,"--ll-color-surface-variant1":SL.colorNeutral90,"--ll-color-surface-variant2":SL.colorNeutral80,"--ll-color-on-primary":SL.colorNeutral100,"--ll-color-on-primary-variant1":SL.colorNeutral90,"--ll-color-on-background":SL.colorNeutral10,"--ll-color-on-background-variant1":SL.colorNeutral30,"--ll-color-on-surface":SL.colorNeutral10,"--ll-color-on-surface-variant1":SL.colorNeutral30,"--ll-color-placeholder":SL.colorNeutral60,"--ll-color-disabled":SL.colorNeutral60,"--ll-color-border":SL.colorNeutral90,"--ll-color-link":EL.colorBlue70},TL={"--ll-border-radius-small":"".concat(4,"px"),"--ll-border-radius-medium":"".concat(8,"px"),"--ll-border-radius-large":"".concat(16,"px")},ML={"--ll-spacing-auto":"auto","--ll-spacing-base-unit":"".concat(4,"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)"},OL=_i(_i(_i(_i(_i(_i(_i({},AL),TL),{"--ll-shadow-small":"rgb(0 0 0 / 18%) 0px 2px 5px","--ll-shadow-medium":"0px 5px 11px -4px rgba(0,0,0,0.75)"}),ML),{"--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;"}),{"--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)"}),{"--ll-font-weight-light":"400","--ll-font-weight-normal":"500","--ll-font-weight-medium":"600","--ll-font-weight-bold":"700"}),PL=_i(_i({},OL),{},{"--ll-color-primary":kL.colorPrimary60,"--ll-color-primary-variant1":kL.colorPrimary50,"--ll-color-background":SL.colorNeutral10,"--ll-color-surface":SL.colorNeutral20,"--ll-color-surface-variant1":SL.colorNeutral30,"--ll-color-surface-variant2":SL.colorNeutral40,"--ll-color-on-primary":SL.colorNeutral100,"--ll-color-on-primary-variant1":SL.colorNeutral90,"--ll-color-on-background":SL.colorNeutral99,"--ll-color-on-background-variant1":SL.colorNeutral80,"--ll-color-on-surface":SL.colorNeutral80,"--ll-color-on-surface-variant1":SL.colorNeutral90,"--ll-color-placeholder":SL.colorNeutral70,"--ll-color-disabled":SL.colorNeutral70,"--ll-color-border":SL.colorNeutral30,"--ll-color-link":EL.colorBlue70}),RL=Object.keys(OL).reduce((function(t,e){return _i(_i({},t),{},xi({},e,"var(".concat(e,")")))}),{}),DL={day:OL,night:PL},LL=XC(t||(t=ci(["\n :root {\n ",";\n }\n"])),(function(t){var e=t.themeName,n=t.overrides;return _i(_i({},DL[e||"day"]),n)})),IL={default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}},NL=Object.freeze(Object.defineProperty({__proto__:null,transitions:IL},Symbol.toStringTag,{value:"Module"})),FL={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},zL=Object.freeze(Object.defineProperty({__proto__:null,screenSizes:FL},Symbol.toStringTag,{value:"Module"})),jL=_i(_i({colors:CL},NL),zL);qC.span(i||(i=ci(["\n white-space: nowrap;\n display: inline-flex;\n color: ",";\n background-color: ",";\n border-radius: ",";\n line-height: 1;\n font-family: ",";\n font-size: ",";\n justify-content: center;\n\n ",";\n"])),(function(t){return t.$textColor}),(function(t){return t.$backgroundColor}),RL["--ll-border-radius-small"],RL["--ll-font-family"],RL["--ll-font-size-caption-1"],(function(t){var i=t.$size;return"small"===i?WC(e||(e=ci(["\n padding: calc("," / 2) ",";\n "])),RL["--ll-spacing-xx-small"],RL["--ll-spacing-xx-small"]):"large"===i?WC(n||(n=ci(["\n padding: calc("," / 2) ",";\n font-size: ",";\n line-height: ",";\n "])),RL["--ll-spacing-small"],RL["--ll-spacing-medium"],RL["--ll-font-size-p"],RL["--ll-font-size-h6"]):WC(r||(r=ci(["\n padding: "," ",";\n "])),RL["--ll-spacing-xx-small"],RL["--ll-spacing-x-small"])})),hi({K:4,_:RL,c:jL});var BL,VL={exports:{}},HL={};
|
|
22
|
-
/**
|
|
23
|
-
* @license React
|
|
24
|
-
* react-jsx-runtime.production.min.js
|
|
25
|
-
*
|
|
26
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the MIT license found in the
|
|
29
|
-
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/VL.exports=function(){if(BL)return HL;BL=1;var t=pa,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,a={key:!0,ref:!0,__self:!0,__source:!0};function o(t,n,o){var s,u={},l=null,c=null;for(s in void 0!==o&&(l=""+o),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!a.hasOwnProperty(s)&&(u[s]=n[s]);if(t&&t.defaultProps)for(s in n=t.defaultProps)void 0===u[s]&&(u[s]=n[s]);return{$$typeof:e,type:t,key:l,ref:c,props:u,_owner:i.current}}return HL.Fragment=n,HL.jsx=o,HL.jsxs=o,HL}();var UL=VL.exports.Fragment,WL=VL.exports.jsx,YL=VL.exports.jsxs,GL=qC.div(a||(a=ci(["\n height: ","px;\n width: ","px;\n fill: ",";\n display: flex;\n\n & > svg {\n fill: inherit;\n height: 100%;\n width: 100%;\n }\n"])),(function(t){return t.height}),(function(t){return t.width}),(function(t){return t.fill})),qL=function(t){var e=t.SVGElement,n=t.fill,r=void 0===n?"--ll-color-on-background":n,i=t.height,a=void 0===i?24:i,o=t.width;return WL(GL,{fill:r,height:a,width:void 0===o?24:o,children:WL(e,{})})},ZL=function(t){var e=t.$variant;return"h1"===e?RL["--ll-font-size-h1"]:"h2"===e?RL["--ll-font-size-h2"]:"h3"===e?RL["--ll-font-size-h3"]:"h4"===e?RL["--ll-font-size-h4"]:"h5"===e?RL["--ll-font-size-h5"]:"h6"===e?RL["--ll-font-size-h6"]:"p"===e?RL["--ll-font-size-p"]:"caption1"===e?RL["--ll-font-size-caption-1"]:"caption2"===e?RL["--ll-font-size-caption-2"]:RL["--ll-font-size-h2"]},XL=function(t){var e=t.$color;return e in RL?RL[e]:e},KL=qC.span(o||(o=ci(["\n overflow: hidden;\n display: inline-block;\n width: 100%;\n line-height: ",";\n margin: 0 0 "," 0;\n font-size: inherit;\n font-weight: inherit;\n"])),(function(t){return t.$lineHeight||1.45}),(function(t){return t.$noMargin?"0":"0.5em"})),$L=qC.div(s||(s=ci(["\n ","\n"])),(function(t){return WC(u||(u=ci(["\n text-align: ",";\n font-size: ",";\n font-family: ",";\n font-variant: ",";\n letter-spacing: ",";\n color: ",";\n font-weight: ",";\n overflow: hidden;\n display: flex;\n\n svg {\n height: ",";\n fill: ",";\n }\n\n "," {\n ","\n }\n "])),t.$align,ZL(t),"sans-serif"===t.$family?RL["--ll-font-family"]:RL["--ll-font-family-mono"],t.$fontVariant,t.$letterSpacing,XL(t),RL[t.$weight],ZL(t),XL(t),KL,t.$lineClamp&&WC(l||(l=ci(["\n display: -webkit-box;\n -webkit-line-clamp: ",";\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n "])),t.$lineClamp))})),QL=function(t){var e=t.children,n=t.variant,r=void 0===n?"p":n,i=t.align,a=t.color,o=void 0===a?"--ll-color-on-background":a,s=t.lineClamp,u=t.noMargin,l=t.lineHeight,c=t.weight,f=void 0===c?"--ll-font-weight-normal":c,d=t.family,h=void 0===d?"sans-serif":d,p=t.className,v=t.fontVariant,g=void 0===v?"initial":v,m=t.letterSpacing,y=["caption1","caption2","p"].includes(r)?"p":r;return WL($L,{$variant:r,$align:i,$color:o,$lineClamp:s,$weight:f,$family:h,$fontVariant:g,$letterSpacing:m,children:WL(KL,{as:y,className:p,$noMargin:u,$lineHeight:l,children:e})})};function JL(){return JL=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},JL.apply(this,arguments)}function tI(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];function r(e,r){var i=ki.exports.createContext(r),a=n.length;function o(e){var n=e.scope,r=e.children,o=fi(e,rn),s=(null==n?void 0:n[t][a])||i,u=ki.exports.useMemo((function(){return o}),Object.values(o));return ki.exports.createElement(s.Provider,{value:u},r)}return n=[].concat(mi(n),[r]),o.displayName=e+"Provider",[o,function(n,o){var s=(null==o?void 0:o[t][a])||i,u=ki.exports.useContext(s);if(u)return u;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(e,"`"))}]}var i=function(){var e=n.map((function(t){return ki.exports.createContext(t)}));return function(n){var r=(null==n?void 0:n[t])||e;return ki.exports.useMemo((function(){return xi({},"__scope".concat(t),_i(_i({},n),{},xi({},t,r)))}),[n,r])}};return i.scopeName=t,[r,eI.apply(void 0,[i].concat(mi(e)))]}function eI(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if(1===e.length)return r;var i=function(){var t=e.map((function(t){return{useScope:t(),scopeName:t.scopeName}}));return function(e){var n=t.reduce((function(t,n){var r=n.useScope,i=n.scopeName,a=r(e)["__scope".concat(i)];return _i(_i({},t),a)}),{});return ki.exports.useMemo((function(){return xi({},"__scope".concat(r.scopeName),n)}),[n])}};return i.scopeName=r.scopeName,i}function nI(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}function rI(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.forEach((function(e){return nI(e,t)}))}}function iI(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ki.exports.useCallback(rI.apply(void 0,e),e)}qC.a(c||(c=ci(["\n font-family: ",";\n font-size: ",";\n color: ",";\n cursor: pointer;\n\n ","\n"])),RL["--ll-font-family"],RL["--ll-font-size-p"],RL["--ll-color-link"],(function(t){var e=t.lineClamp;return e&&WC(f||(f=ci(["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ",";\n "])),e)})),hi({G:qL,o:QL});var aI=ki.exports.forwardRef((function(t,e){var n=t.children,r=fi(t,an),i=ki.exports.Children.toArray(n),a=i.find(uI);if(a){var o=a.props.children,s=i.map((function(t){return t===a?ki.exports.Children.count(o)>1?ki.exports.Children.only(null):ki.exports.isValidElement(o)?o.props.children:null:t}));return ki.exports.createElement(oI,JL({},r,{ref:e}),ki.exports.isValidElement(o)?ki.exports.cloneElement(o,void 0,s):null)}return ki.exports.createElement(oI,JL({},r,{ref:e}),n)}));aI.displayName="Slot";var oI=ki.exports.forwardRef((function(t,e){var n=t.children,r=fi(t,on);return ki.exports.isValidElement(n)?ki.exports.cloneElement(n,_i(_i({},function(t,e){var n=_i({},e),r=function(r){var i=t[r],a=e[r];/^on[A-Z]/.test(r)?n[r]=function(){null==a||a.apply(void 0,arguments),null==i||i.apply(void 0,arguments)}:"style"===r?n[r]=_i(_i({},i),a):"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))};for(var i in e)r(i);return _i(_i({},t),n)}(r,n.props)),{},{ref:rI(e,n.ref)})):ki.exports.Children.count(n)>1?ki.exports.Children.only(null):null}));oI.displayName="SlotClone";var sI=function(t){var e=t.children;return ki.exports.createElement(ki.exports.Fragment,null,e)};function uI(t){return ki.exports.isValidElement(t)&&t.type===sI}var lI=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(t,e){var n=ki.exports.forwardRef((function(t,n){var r=t.asChild,i=fi(t,sn),a=r?aI:e;return ki.exports.useEffect((function(){window[Symbol.for("radix-ui")]=!0}),[]),ki.exports.createElement(a,JL({},i,{ref:n}))}));return n.displayName="Primitive.".concat(e),_i(_i({},t),{},xi({},e,n))}),{});var cI=Boolean(null==globalThis?void 0:globalThis.document)?ki.exports.useLayoutEffect:function(){},fI=va["useId".toString()]||function(){},dI=0;function hI(t){var e=wi(ki.exports.useState(fI()),2),n=e[0],r=e[1];return cI((function(){t||r((function(t){return null!=t?t:String(dI++)}))}),[t]),t||(n?"radix-".concat(n):"")}var pI=function(t,e){var n=ki.exports.createContext(e);function r(t){var e=t.children,r=fi(t,nn),i=ki.exports.useMemo((function(){return r}),Object.values(r));return ki.exports.createElement(n.Provider,{value:i},e)}return r.displayName=t+"Provider",[r,function(r){var i=ki.exports.useContext(n);if(i)return i;if(void 0!==e)return e;throw new Error("`".concat(r,"` must be used within `").concat(t,"`"))}]}("Label",{id:void 0,controlRef:{current:null}}),vI=wi(pI,2),gI=vI[0],mI=vI[1],yI=ki.exports.forwardRef((function(t,e){var n=t.htmlFor,r=t.id,i=fi(t,un),a=ki.exports.useRef(null),o=ki.exports.useRef(null),s=iI(e,o),u=hI(r);return ki.exports.useEffect((function(){if(n){var t=document.getElementById(n);if(o.current&&t){var e=function(){return t.getAttribute("aria-labelledby")},r=[u,e()].filter(Boolean).join(" ");return t.setAttribute("aria-labelledby",r),a.current=t,function(){var n,r=null===(n=e())||void 0===n?void 0:n.replace(u,"");""===r?t.removeAttribute("aria-labelledby"):r&&t.setAttribute("aria-labelledby",r)}}}}),[u,n]),ki.exports.createElement(gI,{id:u,controlRef:a},ki.exports.createElement(lI.span,JL({role:"label",id:u},i,{ref:s,onMouseDown:function(e){var n;null===(n=t.onMouseDown)||void 0===n||n.call(t,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},onClick:function(e){var n;if(null===(n=t.onClick)||void 0===n||n.call(t,e),a.current&&!e.defaultPrevented){var r=a.current.contains(e.target),i=!0===e.isTrusted;!r&&i&&(a.current.click(),a.current.focus())}}})))})),bI=function(t){var e=mI("LabelConsumer"),n=e.controlRef;return ki.exports.useEffect((function(){t&&(n.current=t)}),[t,n]),e.id},_I=qC(yI)(d||(d=ci(["\n font-size: ",";\n font-family: ",";\n color: ",";\n"])),RL["--ll-font-size-p"],RL["--ll-font-family"],RL["--ll-color-placeholder"]),xI=function(t){return WL(_I,_i({},t))},wI=0,kI=KC(h||(h=ci(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),SI={small:16,medium:24,large:32},EI=qC.div(p||(p=ci(["\n height: ","px;\n width: ","px;\n border: ","px solid ",";\n border-bottom-color: transparent;\n border-radius: 50%;\n display: inline-block;\n box-sizing: border-box;\n animation: "," 1s linear infinite;\n"])),(function(t){var e=t.size;return SI[e]}),(function(t){var e=t.size;return SI[e]}),(function(t){var e=t.size;return SI[e]/6}),RL["--ll-color-on-surface-variant1"],kI),CI=function(t){var e=t.size;return WL(EI,{size:void 0===e?"medium":e})},AI={primary:{background:RL["--ll-color-primary"],onBackground:RL["--ll-color-on-primary"],hover:RL["--ll-color-primary-variant1"]}},TI=function(t){var e=t.size;return"".concat("small"===e?32:"large"===e?48:40,"px")},MI=WC(v||(v=ci(["\n color: ",";\n\n &:disabled {\n cursor: default;\n }\n\n height: ",";\n"])),RL["--ll-color-on-background"],TI),OI=WC(g||(g=ci(["\n ",";\n height: ",";\n"])),(function(t){var e=t.color,n=void 0===e?"primary":e;return WC(m||(m=ci(["\n background-color: ",";\n color: ",";\n border: 1px solid transparent;\n\n &:hover {\n background-color: ",";\n }\n\n &:disabled {\n background-color: ",";\n cursor: default;\n }\n "])),AI[n].background,AI[n].onBackground,AI[n].hover,RL["--ll-color-disabled"])}),TI),PI=WC(y||(y=ci(["\n ",";\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.03);\n }\n\n height: ",";\n"])),(function(t){var e=t.color,n=void 0===e?"primary":e;return WC(b||(b=ci(["\n border-color: ",";\n border-width: 1px;\n border-style: solid;\n color: ",";\n "])),AI[n].background,AI[n].background)}),TI),RI=qC.div(_||(_=ci(["\n display: flex;\n align-items: center;\n margin-right: ",";\n margin-left: calc(-1 * ",");\n"])),RL["--ll-spacing-x-small"],RL["--ll-spacing-xx-small"]),DI=qC.button(x||(x=ci(["\n font-weight: ",";\n border-radius: ",";\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: inline-flex;\n background: none;\n border: none;\n box-sizing: border-box;\n\n svg {\n fill: currentColor;\n }\n\n ",";\n ",";\n ",";\n ",";\n"])),RL["--ll-font-weight-normal"],RL["--ll-border-radius-small"],(function(t){return{contained:OI,outlined:PI,text:MI}[t.variant]}),(function(t){var e=t.size;return"large"===e?"svg { height: 24px; }":"small"===e?"svg { height: 12px }":"svg { height: 20px; }"}),(function(t){var e=t.size;return"font-size: ".concat("small"===e?RL["--ll-font-size-caption-1"]:RL["--ll-font-size-p"])}),(function(t){var e=t.size;return"padding: 0 ".concat("small"===e?RL["--ll-spacing-x-small"]:"large"===e?RL["--ll-spacing-medium"]:RL["--ll-spacing-small"])})),LI=pa.forwardRef((function(t,e){var n=t.children,r=t.disabled,i=void 0!==r&&r,a=t.onClick,o=t.variant,s=void 0===o?"contained":o,u=t.startAdornment,l=t.size,c=void 0===l?"medium":l,f=t.type,d=void 0===f?"button":f,h=t.color,p=t.isLoading,v=t.className;return WL(DI,{variant:s,size:c,onClick:function(t){i||!a||p||a(t)},disabled:i||p,className:v,color:h,type:d,ref:e,children:p?WL(CI,{}):YL(UL,{children:[u&&WL(RI,{children:u}),n]})})}));hi({l:CI,U:LI}),LI.displayName="Button";var II=qC.div(w||(w=ci(["\n display: flex;\n flex-direction: column;\n"]))),NI=qC.div(k||(k=ci(["\n position: relative;\n"]))),FI=qC(LI)(S||(S=ci(["\n position: absolute;\n right: 0px;\n top: 0px;\n"]))),zI=qC.input(E||(E=ci(["\n all: unset;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ",";\n padding: 0 ",";\n height: 30px;\n line-height: 1;\n font-size: ",";\n font-family: ",";\n color: ",";\n background-color: ",";\n border: 1px solid ",";\n width: calc(100% - ",");\n\n &:focus {\n box-shadow: ",";\n }\n\n // Set to 16px to avoid mobile to zoom in to the input\n @media (max-width: ","px) {\n font-size: ",";\n }\n"])),RL["--ll-border-radius-small"],RL["--ll-spacing-x-small"],RL["--ll-font-size-p"],RL["--ll-font-family"],RL["--ll-color-on-background"],RL["--ll-color-background"],RL["--ll-color-border"],RL["--ll-spacing-medium"],RL["--ll-shadow-small"],FL.tablet,RL["--ll-font-size-h6"]),jI=function(t){return yk("svg",_i(_i({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},BI=(hi("E",(function(t){var e=t.value,n=t.label,r=t.placeholder,i=t.className,a=t.autofocus,o=void 0!==a&&a,s=t.onBlur,u=t.onFocus,l=t.onClear,c=t.onChange,f=wi(ki.exports.useState((function(){return"id-".concat(wI+=1)})),1)[0],d=ki.exports.useMemo((function(){return n?WL(xI,{htmlFor:f,style:{lineHeight:"26px"},children:n}):null}),[n]);return YL(II,{children:[d,YL(NI,{children:[WL(zI,{autoFocus:o,className:i,id:f,value:e,onBlur:s,onFocus:u,onChange:c,placeholder:r}),l&&WL(FI,{size:"small",variant:"text",onClick:l,children:WL(jI,{})})]})]})})),{small:20,medium:32,large:40});function VI(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.checkForDefaultPrevented,i=void 0===r||r;return function(n){if(null==t||t(n),!1===i||!n.defaultPrevented)return null==e?void 0:e(n)}}function HI(t){var e=ki.exports.useRef(t);return ki.exports.useEffect((function(){e.current=t})),ki.exports.useMemo((function(){return function(){for(var t,n,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return null===(n=e.current)||void 0===n?void 0:(t=n).call.apply(t,[e].concat(i))}}),[])}function UI(t){var e=t.prop,n=t.defaultProp,r=t.onChange,i=void 0===r?function(){}:r,a=function(t){var e=t.defaultProp,n=t.onChange,r=ki.exports.useState(e),i=wi(r,1)[0],a=ki.exports.useRef(i),o=HI(n);return ki.exports.useEffect((function(){a.current!==i&&(o(i),a.current=i)}),[i,a,o]),r}({defaultProp:n,onChange:i}),o=wi(a,2),s=o[0],u=o[1],l=void 0!==e,c=l?e:s,f=HI(i),d=ki.exports.useCallback((function(t){if(l){var n="function"==typeof t?t(e):t;n!==e&&f(n)}else u(t)}),[l,e,u,f]);return[c,d]}function WI(t){var e=ki.exports.useRef({value:t,previous:t});return ki.exports.useMemo((function(){return e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous}),[t])}function YI(t){var e=wi(ki.exports.useState(void 0),2),n=e[0],r=e[1];return cI((function(){if(t){r({width:t.offsetWidth,height:t.offsetHeight});var e=new ResizeObserver((function(e){if(Array.isArray(e)&&e.length){var n,i,a=e[0];if("borderBoxSize"in a){var o=a.borderBoxSize,s=Array.isArray(o)?o[0]:o;n=s.inlineSize,i=s.blockSize}else n=t.offsetWidth,i=t.offsetHeight;r({width:n,height:i})}}));return e.observe(t,{box:"border-box"}),function(){return e.unobserve(t)}}r(void 0)}),[t]),n}qC(_L.div)(C||(C=ci(["\n background: linear-gradient(\n to top,\n ",",\n ","\n );\n border-radius: 50%;\n border: 2px solid #fff;\n height: ","px;\n width: ","px;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: ",";\n"])),(function(t){return t.$backgroundColorHighlight}),(function(t){return t.$backgroundColor}),(function(t){var e=t.$size;return BI[e]}),(function(t){var e=t.$size;return BI[e]}),RL["--ll-shadow-small"]);var GI="Switch",qI=wi(tI(GI),2),ZI=qI[0],XI=(qI[1],wi(ZI(GI),2)),KI=XI[0],$I=XI[1],QI=ki.exports.forwardRef((function(t,e){var n=t.__scopeSwitch,r=t["aria-labelledby"],i=t.name,a=t.checked,o=t.defaultChecked,s=t.required,u=t.disabled,l=t.value,c=void 0===l?"on":l,f=t.onCheckedChange,d=fi(t,ln),h=wi(ki.exports.useState(null),2),p=h[0],v=h[1],g=iI(e,(function(t){return v(t)})),m=bI(p),y=r||m,b=ki.exports.useRef(!1),_=!p||Boolean(p.closest("form")),x=wi(UI({prop:a,defaultProp:o,onChange:f}),2),w=x[0],k=void 0!==w&&w,S=x[1];return ki.exports.createElement(KI,{scope:n,checked:k,disabled:u},ki.exports.createElement(lI.button,JL({type:"button",role:"switch","aria-checked":k,"aria-labelledby":y,"aria-required":s,"data-state":eN(k),"data-disabled":u?"":void 0,disabled:u,value:c},d,{ref:g,onClick:VI(t.onClick,(function(t){S((function(t){return!t})),_&&(b.current=t.isPropagationStopped(),b.current||t.stopPropagation())}))})),_&&ki.exports.createElement(tN,{control:p,bubbles:!b.current,name:i,value:c,checked:k,required:s,disabled:u,style:{transform:"translateX(-100%)"}}))})),JI=ki.exports.forwardRef((function(t,e){var n=t.__scopeSwitch,r=fi(t,cn),i=$I("SwitchThumb",n);return ki.exports.createElement(lI.span,JL({"data-state":eN(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:e}))})),tN=function(t){var e=t.control,n=t.checked,r=t.bubbles,i=void 0===r||r,a=fi(t,fn),o=ki.exports.useRef(null),s=WI(n),u=YI(e);return ki.exports.useEffect((function(){var t=o.current,e=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(e,"checked").set;if(s!==n&&r){var a=new Event("click",{bubbles:i});r.call(t,n),t.dispatchEvent(a)}}),[s,n,i]),ki.exports.createElement("input",JL({type:"checkbox","aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:o,style:_i(_i(_i({},t.style),u),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))};function eN(t){return t?"checked":"unchecked"}var nN=JI,rN=qC(QI)(A||(A=ci(["\n all: unset;\n width: 42px;\n height: 24px;\n background-color: ",';\n border-radius: 13px;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &[data-state="checked"] {\n background-color: ',";\n }\n"])),RL["--ll-color-disabled"],RL["--ll-color-on-background"]),iN=qC(nN)(T||(T=ci(["\n display: block;\n width: 18px;\n height: 18px;\n background-color: ",';\n border-radius: 9px;\n transition: transform 100ms;\n transform: translateX(3px);\n will-change: transform;\n\n &[data-state="checked"] {\n transform: translateX(21px);\n }\n'])),RL["--ll-color-background"]);hi("a5",(function(t){return WL(rN,_i(_i({},t),{},{children:WL(iN,{})}))}));function aN(t,e){var n=wi(e,2),r=n[0],i=n[1];return Math.min(i,Math.max(r,t))}var oN=ki.exports.createContext(void 0);function sN(t){var e=ki.exports.useContext(oN);return t||e||"ltr"}function uN(t){var e=t+"CollectionProvider",n=wi(tI(e),2),r=n[0],i=n[1],a=wi(r(e,{collectionRef:{current:null},itemMap:new Map}),2),o=a[0],s=a[1],u=t+"CollectionSlot",l=pa.forwardRef((function(t,e){var n=t.scope,r=t.children,i=iI(e,s(u,n).collectionRef);return pa.createElement(aI,{ref:i},r)})),c=t+"CollectionItemSlot",f="data-radix-collection-item",d=pa.forwardRef((function(t,e){var n,r=t.scope,i=t.children,a=fi(t,dn),o=pa.useRef(null),u=iI(e,o),l=s(c,r);return pa.useEffect((function(){return l.itemMap.set(o,_i({ref:o},a)),function(){l.itemMap.delete(o)}})),pa.createElement(aI,(xi(n={},f,""),xi(n,"ref",u),n),i)}));return[{Provider:function(t){var e=t.scope,n=t.children,r=pa.useRef(null),i=pa.useRef(new Map).current;return pa.createElement(o,{scope:e,itemMap:i,collectionRef:r},n)},Slot:l,ItemSlot:d},function(e){var n=s(t+"CollectionConsumer",e);return pa.useCallback((function(){var t=n.collectionRef.current;if(!t)return[];var e=Array.from(t.querySelectorAll("[".concat(f,"]")));return Array.from(n.itemMap.values()).sort((function(t,n){return e.indexOf(t.ref.current)-e.indexOf(n.ref.current)}))}),[n.collectionRef,n.itemMap])},i]}var lN=["PageUp","PageDown"],cN=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fN={ltr:["ArrowDown","Home","ArrowLeft","PageDown"],rtl:["ArrowDown","Home","ArrowRight","PageDown"]},dN="Slider",hN=wi(uN(dN),3),pN=hN[0],vN=hN[1],gN=hN[2],mN=wi(tI(dN,[gN]),2),yN=mN[0],bN=(mN[1],wi(yN(dN),2)),_N=bN[0],xN=bN[1],wN=ki.exports.forwardRef((function(t,e){var n=t.name,r=t.min,i=void 0===r?0:r,a=t.max,o=void 0===a?100:a,s=t.step,u=void 0===s?1:s,l=t.orientation,c=void 0===l?"horizontal":l,f=t.disabled,d=void 0!==f&&f,h=t.minStepsBetweenThumbs,p=void 0===h?0:h,v=t.defaultValue,g=void 0===v?[i]:v,m=t.value,y=t.onValueChange,b=void 0===y?function(){}:y,_=fi(t,hn),x=wi(ki.exports.useState(null),2),w=x[0],k=x[1],S=iI(e,(function(t){return k(t)})),E=ki.exports.useRef(new Set),C=ki.exports.useRef(0),A="horizontal"===c,T=!w||Boolean(w.closest("form")),M=A?CN:AN,O=UI({prop:m,defaultProp:g,onChange:function(t){var e;null===(e=mi(E.current)[C.current])||void 0===e||e.focus(),b(t)}}),P=wi(O,2),R=P[0],D=void 0===R?[]:R,L=P[1];function I(t,e){var n=function(t){return(String(t).split(".")[1]||"").length}(u),r=function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}(Math.round((t-i)/u)*u+i,n),a=aN(r,[i,o]);L((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=NN(t,a,e);return zN(n,p*u)?(C.current=n.indexOf(a),String(n)===String(t)?t:n):t}))}return ki.exports.createElement(_N,{scope:t.__scopeSlider,disabled:d,min:i,max:o,valueIndexToChangeRef:C,thumbs:E.current,values:D,orientation:c},ki.exports.createElement(pN.Provider,{scope:t.__scopeSlider},ki.exports.createElement(pN.Slot,{scope:t.__scopeSlider},ki.exports.createElement(M,JL({"aria-disabled":d,"data-disabled":d?"":void 0},_,{ref:S,min:i,max:o,onSlideStart:d?void 0:function(t){var e=function(t,e){if(1===t.length)return 0;var n=t.map((function(t){return Math.abs(t-e)})),r=Math.min.apply(Math,mi(n));return n.indexOf(r)}(D,t);I(t,e)},onSlideMove:d?void 0:function(t){I(t,C.current)},onHomeKeyDown:function(){return!d&&I(i,0)},onEndKeyDown:function(){return!d&&I(o,D.length-1)},onStepKeyDown:function(t){var e=t.event,n=t.direction;if(!d){var r=lN.includes(e.key)||e.shiftKey&&cN.includes(e.key)?10:1,i=C.current;I(D[i]+u*r*n,i)}}})))),T&&D.map((function(t,e){return ki.exports.createElement(IN,{key:e,name:n?n+(D.length>1?"[]":""):void 0,value:t})})))})),kN=wi(yN(dN,{startEdge:"left",endEdge:"right",size:"width",direction:1}),2),SN=kN[0],EN=kN[1],CN=ki.exports.forwardRef((function(t,e){var n=t.min,r=t.max,i=t.dir,a=t.onSlideStart,o=t.onSlideMove,s=t.onStepKeyDown,u=fi(t,pn),l=wi(ki.exports.useState(null),2),c=l[0],f=l[1],d=iI(e,(function(t){return f(t)})),h=ki.exports.useRef(),p=sN(i),v="ltr"===p;function g(t){var e=h.current||c.getBoundingClientRect(),i=jN([0,e.width],v?[n,r]:[r,n]);return h.current=e,i(t-e.left)}return ki.exports.createElement(SN,{scope:t.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width"},ki.exports.createElement(TN,JL({dir:p,"data-orientation":"horizontal"},u,{ref:d,style:_i(_i({},u.style),{},xi({},"--radix-slider-thumb-transform","translateX(-50%)")),onSlideStart:function(t){var e=g(t.clientX);null==a||a(e)},onSlideMove:function(t){var e=g(t.clientX);null==o||o(e)},onSlideEnd:function(){return h.current=void 0},onStepKeyDown:function(t){var e=fN[p].includes(t.key);null==s||s({event:t,direction:e?-1:1})}})))})),AN=ki.exports.forwardRef((function(t,e){var n=t.min,r=t.max,i=t.onSlideStart,a=t.onSlideMove,o=t.onStepKeyDown,s=fi(t,vn),u=ki.exports.useRef(null),l=iI(e,u),c=ki.exports.useRef();function f(t){var e=c.current||u.current.getBoundingClientRect(),i=jN([0,e.height],[r,n]);return c.current=e,i(t-e.top)}return ki.exports.createElement(SN,{scope:t.__scopeSlider,startEdge:"bottom",endEdge:"top",size:"height",direction:1},ki.exports.createElement(TN,JL({"data-orientation":"vertical"},s,{ref:l,style:_i(_i({},s.style),{},xi({},"--radix-slider-thumb-transform","translateY(50%)")),onSlideStart:function(t){var e=f(t.clientY);null==i||i(e)},onSlideMove:function(t){var e=f(t.clientY);null==a||a(e)},onSlideEnd:function(){return c.current=void 0},onStepKeyDown:function(t){var e=fN.ltr.includes(t.key);null==o||o({event:t,direction:e?-1:1})}})))})),TN=ki.exports.forwardRef((function(t,e){var n=t.__scopeSlider,r=t.onSlideStart,i=t.onSlideMove,a=t.onSlideEnd,o=t.onHomeKeyDown,s=t.onEndKeyDown,u=t.onStepKeyDown,l=fi(t,gn),c=xN(dN,n);return ki.exports.createElement(lI.span,JL({},l,{ref:e,onKeyDown:VI(t.onKeyDown,(function(t){"Home"===t.key?(o(t),t.preventDefault()):"End"===t.key?(s(t),t.preventDefault()):lN.concat(cN).includes(t.key)&&(u(t),t.preventDefault())})),onPointerDown:VI(t.onPointerDown,(function(t){var e=t.target;e.setPointerCapture(t.pointerId),t.preventDefault(),c.thumbs.has(e)?e.focus():r(t)})),onPointerMove:VI(t.onPointerMove,(function(t){t.target.hasPointerCapture(t.pointerId)&&i(t)})),onPointerUp:VI(t.onPointerUp,(function(t){var e=t.target;e.hasPointerCapture(t.pointerId)&&(e.releasePointerCapture(t.pointerId),a(t))}))}))})),MN=ki.exports.forwardRef((function(t,e){var n=t.__scopeSlider,r=fi(t,mn),i=xN("SliderTrack",n);return ki.exports.createElement(lI.span,JL({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},r,{ref:e}))})),ON="SliderRange",PN=ki.exports.forwardRef((function(t,e){var n,r=t.__scopeSlider,i=fi(t,yn),a=xN(ON,r),o=EN(ON,r),s=iI(e,ki.exports.useRef(null)),u=a.values.length,l=a.values.map((function(t){return FN(t,a.min,a.max)})),c=u>1?Math.min.apply(Math,mi(l)):0,f=100-Math.max.apply(Math,mi(l));return ki.exports.createElement(lI.span,JL({"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0},i,{ref:s,style:_i(_i({},t.style),{},(n={},xi(n,o.startEdge,c+"%"),xi(n,o.endEdge,f+"%"),n))}))})),RN="SliderThumb",DN=ki.exports.forwardRef((function(t,e){var n=vN(t.__scopeSlider),r=wi(ki.exports.useState(null),2),i=r[0],a=r[1],o=iI(e,(function(t){return a(t)})),s=ki.exports.useMemo((function(){return i?n().findIndex((function(t){return t.ref.current===i})):-1}),[n,i]);return ki.exports.createElement(LN,JL({},t,{ref:o,index:s}))})),LN=ki.exports.forwardRef((function(t,e){var n=t.__scopeSlider,r=t.index,i=fi(t,bn),a=xN(RN,n),o=EN(RN,n),s=wi(ki.exports.useState(null),2),u=s[0],l=s[1],c=iI(e,(function(t){return l(t)})),f=YI(u),d=a.values[r],h=void 0===d?0:FN(d,a.min,a.max),p=function(t,e){return e>2?"Value ".concat(t+1," of ").concat(e):2===e?["Minimum","Maximum"][t]:void 0}(r,a.values.length),v=null==f?void 0:f[o.size],g=v?function(t,e,n){var r=t/2,i=jN([0,50],[0,r]);return(r-i(e)*n)*n}(v,h,o.direction):0;return ki.exports.useEffect((function(){if(u)return a.thumbs.add(u),function(){a.thumbs.delete(u)}}),[u,a.thumbs]),ki.exports.createElement("span",{style:xi({transform:"var(--radix-slider-thumb-transform)",position:"absolute"},o.startEdge,"calc(".concat(h,"% + ").concat(g,"px)"))},ki.exports.createElement(pN.ItemSlot,{scope:t.__scopeSlider},ki.exports.createElement(lI.span,JL({role:"slider","aria-label":t["aria-label"]||p,"aria-valuemin":a.min,"aria-valuenow":d,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},i,{ref:c,style:void 0===d?{display:"none"}:t.style,onFocus:VI(t.onFocus,(function(){a.valueIndexToChangeRef.current=r}))}))))})),IN=function(t){var e=t.value,n=fi(t,_n),r=ki.exports.useRef(null),i=WI(e);return ki.exports.useEffect((function(){var t=r.current,n=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==e&&a){var o=new Event("input",{bubbles:!0});a.call(t,e),t.dispatchEvent(o)}}),[i,e]),ki.exports.createElement("input",JL({style:{display:"none"}},n,{ref:r,defaultValue:e}))};function NN(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=mi(t);return r[n]=e,r.sort((function(t,e){return t-e}))}function FN(t,e,n){return 100/(n-e)*(t-e)}function zN(t,e){if(e>0){var n=function(t){return t.slice(0,-1).map((function(e,n){return t[n+1]-e}))}(t);return Math.min.apply(Math,mi(n))>=e}return!0}function jN(t,e){return function(n){if(t[0]===t[1]||e[0]===e[1])return e[0];var r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}var BN=wN,VN=MN,HN=PN,UN=DN,WN=qC.div(M||(M=ci([""]))),YN=qC.div(O||(O=ci(["\n display: flex;\n align-items: center;\n"]))),GN=qC(BN)(P||(P=ci(["\n position: relative;\n display: flex;\n align-items: center;\n user-select: none;\n touch-action: none;\n height: 20;\n flex: 1;\n"]))),qN=qC(UN)(R||(R=ci(["\n all: unset;\n height: 20px;\n width: 20px;\n border-radius: 50%;\n display: block;\n background-color: ",";\n box-shadow: ",";\n"])),RL["--ll-color-primary"],RL["--ll-shadow-medium"]),ZN=qC(VN)(D||(D=ci(["\n height: 4px;\n border-radius: 2px;\n background-color: ",";\n position: relative;\n flex: 1;\n"])),RL["--ll-color-surface-variant1"]),XN=qC(HN)(L||(L=ci(["\n height: 100%;\n position: absolute;\n background-color: ",";\n border-radius: 2px;\n"])),RL["--ll-color-primary"]),KN=qC.div(I||(I=ci(["\n margin: ",";\n flex-shrink: 0;\n"])),(function(t){return function(t){var e=t.$vertical,n=t.$spacing,r=RL[n];return e?"".concat(r," 0 0 0"):"0 ".concat(r," 0 0")}(t)})),$N=function(t){var e=t.vertical,n=void 0!==e&&e,r=t.spacing;return WL(KN,{$vertical:n,$spacing:void 0===r?"--ll-spacing-auto":r})},QN={primary:{background:RL["--ll-color-primary"],onBackground:RL["--ll-color-on-primary"],hover:RL["--ll-color-primary-variant1"]},inverse:{background:"transparent",onBackground:RL["--ll-color-primary"],hover:"rgba(0,0,0,0.05)"},neutral:{background:"transparent",onBackground:RL["--ll-color-on-background-variant1"],hover:"rgba(0,0,0,0.05)"}},JN={small:24,medium:32,large:48},tF=qC.button(N||(N=ci(["\n ",";\n"])),(function(t){var e=t.color,n=void 0===e?"primary":e,r=t.size,i=void 0===r?"medium":r;return WC(F||(F=ci(["\n border: none;\n background-color: ",";\n color: ",";\n border-radius: 50%;\n height: ","px;\n width: ","px;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 6px;\n\n &:hover {\n background-color: ",";\n }\n\n &:disabled {\n cursor: default;\n background-color: rgba(0, 0, 0, 0.1);\n color: ",";\n }\n "])),QN[n].background,QN[n].onBackground,JN[i],JN[i],QN[n].hover,RL["--ll-color-on-background-variant1"])}));hi({V:$N,aa:function(t){var e=t.label,n=t.showValue,r=fi(t,xn);return YL(WN,{children:[e&&WL(xI,{style:{lineHeight:"50px"},children:e}),YL(YN,{children:[YL(GN,_i(_i({},r),{},{children:[WL(ZN,{children:WL(XN,{})}),WL(qN,{})]})),n&&YL(UL,{children:[WL($N,{spacing:"--ll-spacing-small"}),WL(QL,{noMargin:!0,children:r.value})]})]})]})},t:function(t){var e=t.SVGElement,n=t.disabled,r=void 0!==n&&n,i=t.onClick,a=t.size,o=void 0===a?"medium":a,s=t.type,u=void 0===s?"button":s,l=t.color,c=void 0===l?"primary":l,f=t.isLoading,d=t.className,h=ki.exports.useMemo((function(){return r?RL["--ll-color-placeholder"]:QN[c].onBackground}),[c,r]);return WL(tF,{size:o,onClick:function(t){r||!i||f||i(t)},disabled:r||f,className:d,color:c,type:u,children:f?WL(CI,{}):WL(qL,{SVGElement:e,width:JN[o]/1.33333,height:JN[o]/1.33333,fill:h})})}});var eF=KC(j||(j=ci(["\n from {\n background-position: -800px 0;\n }\n\n to {\n background-position: 800px 0;\n }\n"]))),nF=qC.div(B||(B=ci(["\n border-radius: ",";\n animation: "," 2s linear infinite;\n background: linear-gradient(\n to right,\n /* NOTE: 99.9% of the time we should use colours from theme, since these are\n CSS vars that can be overriden. */\n "," 4%,\n "," 25%,\n "," 36%\n );\n background-size: 800px 100%;\n ","\n"])),RL["--ll-border-radius-medium"],eF,RL["--ll-color-surface-variant1"],RL["--ll-color-surface-variant2"],RL["--ll-color-surface-variant1"],(function(t){var e=t.height,n=t.width;return WC(z||(z=ci(["\n height: ",";\n width: ",";\n "])),e,n)}));hi("q",(function(t){var e=t.height,n=t.width,r=t.className;return WL(nF,{height:e,width:n,className:r})}));qC.div(V||(V=ci(["\n flex: 1;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),qC.div(H||(H=ci(["\n display: flex;\n flex-direction: column;\n align-items: center;\n"])));var rF=Object.defineProperty,iF=function(t,e,n){return function(t,e,n){e in t?rF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},aF={},oF={},sF={},uF={
|
|
31
|
-
/*!
|
|
32
|
-
* cookie
|
|
33
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
34
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
35
|
-
* MIT Licensed
|
|
36
|
-
*/
|
|
37
|
-
parse:function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},r=e||{},i=t.split(fF),a=r.decode||lF,o=0;o<i.length;o++){var s=i[o],u=s.indexOf("=");if(!(u<0)){var l=s.substr(0,u).trim(),c=s.substr(++u,s.length).trim();'"'==c[0]&&(c=c.slice(1,-1)),null==n[l]&&(n[l]=hF(c,a))}}return n},serialize:function(t,e,n){var r=n||{},i=r.encode||cF;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!dF.test(t))throw new TypeError("argument name is invalid");var a=i(e);if(a&&!dF.test(a))throw new TypeError("argument val is invalid");var o=t+"="+a;if(null!=r.maxAge){var s=r.maxAge-0;if(isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age="+Math.floor(s)}if(r.domain){if(!dF.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!dF.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return o}},lF=decodeURIComponent,cF=encodeURIComponent,fF=/; */,dF=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function hF(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(sF,"__esModule",{value:!0});var pF=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();sF.hasCookies=function(){var t=new yF;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),"1"===n}catch(r){return!1}};var vF=function(t){return t&&t.__esModule?t:{default:t}}(uF);function gF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var mF="lS_",yF=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};gF(this,t),this.cookieOptions=Object.assign({path:"/"},e),mF=void 0===e.prefix?mF:e.prefix}return pF(t,[{key:"getItem",value:function(t){var e=vF.default.parse(document.cookie);return e&&e.hasOwnProperty(mF+t)?e[mF+t]:null}},{key:"setItem",value:function(t,e){return document.cookie=vF.default.serialize(mF+t,e,this.cookieOptions),e}},{key:"removeItem",value:function(t){var e=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=vF.default.serialize(mF+t,"",e),null}},{key:"clear",value:function(){var t=vF.default.parse(document.cookie);for(var e in t)0===e.indexOf(mF)&&this.removeItem(e.substr(mF.length));return null}}]),t}();sF.default=yF,Object.defineProperty(oF,"__esModule",{value:!0}),oF.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage",e=String(t).replace(/storage$/i,"").toLowerCase();if("local"===e)return xF("localStorage");if("session"===e)return xF("sessionStorage");if("cookie"===e)return(0,bF.hasCookies)();if("memory"===e)return!0;throw new Error("Storage method `"+t+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")};var bF=sF,_F="__test";function xF(t){try{var e=window[t];return e.setItem(_F,"1"),e.removeItem(_F),!0}catch(n){return!1}}var wF={};Object.defineProperty(wF,"__esModule",{value:!0});var kF=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var SF=function(){function t(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._data={}}return kF(t,[{key:"getItem",value:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}},{key:"setItem",value:function(t,e){return this._data[t]=String(e)}},{key:"removeItem",value:function(t){return delete this._data[t]}},{key:"clear",value:function(){return this._data={}}}]),t}();wF.default=SF,Object.defineProperty(aF,"__esModule",{value:!0}),aF.MemoryStorage=aF.CookieStorage=aF.isSupported=aF.storage=void 0;var EF=TF(oF),CF=TF(sF),AF=TF(wF);function TF(t){return t&&t.__esModule?t:{default:t}}var MF=null;(0,EF.default)("localStorage")?aF.storage=MF=window.localStorage:(0,EF.default)("sessionStorage")?aF.storage=MF=window.sessionStorage:(0,EF.default)("cookieStorage")?aF.storage=MF=new CF.default:aF.storage=MF=new AF.default;var OF=aF.default=MF;aF.storage=MF,aF.isSupported=EF.default,aF.CookieStorage=CF.default,aF.MemoryStorage=AF.default;var PF=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";Ai(this,t),iF(this,"group"),iF(this,"localStorage"),this.group=e,this.localStorage=OF}return Ci(t,[{key:"setGroup",value:function(t){this.group=t}},{key:"getGroup",value:function(){return this.group}},{key:"getItem",value:function(t){return this.localStorage.getItem("".concat(this.group,".").concat(t))}},{key:"setItem",value:function(t,e){this.localStorage.setItem("".concat(this.group,".").concat(t),e)}},{key:"removeItem",value:function(t){this.localStorage.removeItem("".concat(this.group,".").concat(t))}}]),t}();new PF;var RF=function(){function t(){Ai(this,t),iF(this,"storageLocation","suggestion_history"),iF(this,"storage"),iF(this,"history",[]),this.storage=new PF("commute");var e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}return Ci(t,[{key:"push",value:function(t){this.history=this.removeDuplicateEntries(t),this.history.unshift(t),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}},{key:"hasSuggestionHistory",value:function(){return this.history.length>0}},{key:"getSuggestionHistory",value:function(){return this.history}},{key:"removeDuplicateEntries",value:function(t){return this.history.filter((function(e){return e.locationId!==t.locationId}))}}]),t}();
|
|
38
|
-
/*!
|
|
39
|
-
* @kurkle/color v0.3.2
|
|
40
|
-
* https://github.com/kurkle/color#readme
|
|
41
|
-
* (c) 2023 Jukka Kurkela
|
|
42
|
-
* Released under the MIT License
|
|
43
|
-
*/
|
|
44
|
-
function DF(t){return t+.5|0}new RF;var LF=function(t,e,n){return Math.max(Math.min(t,n),e)};function IF(t){return LF(DF(2.55*t),0,255)}function NF(t){return LF(DF(255*t),0,255)}function FF(t){return LF(DF(t/2.55)/100,0,1)}function zF(t){return LF(DF(100*t),0,100)}var jF={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},BF=mi("0123456789ABCDEF"),VF=function(t){return BF[15&t]},HF=function(t){return BF[(240&t)>>4]+BF[15&t]},UF=function(t){return(240&t)>>4==(15&t)};function WF(t){var e=function(t){return UF(t.r)&&UF(t.g)&&UF(t.b)&&UF(t.a)}(t)?VF:HF;return t?"#"+e(t.r)+e(t.g)+e(t.b)+function(t,e){return t<255?e(t):""}(t.a,e):void 0}var YF=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function GF(t,e,n){var r=e*Math.min(n,1-n),i=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+t/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function qF(t,e,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+t/60)%6;return n-n*e*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function ZF(t,e,n){var r,i=GF(t,1,.5);for(e+n>1&&(e*=r=1/(e+n),n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function XF(t){var e,n,r,i=t.r/255,a=t.g/255,o=t.b/255,s=Math.max(i,a,o),u=Math.min(i,a,o),l=(s+u)/2;return s!==u&&(r=s-u,n=l>.5?r/(2-s-u):r/(s+u),e=function(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}(i,a,o,r,s),e=60*e+.5),[0|e,n||0,l]}function KF(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(NF)}function $F(t,e,n){return KF(GF,t,e,n)}function QF(t){return(t%360+360)%360}function JF(t){var e,n=YF.exec(t),r=255;if(n){n[5]!==e&&(r=n[6]?IF(+n[5]):NF(+n[5]));var i=QF(+n[2]),a=+n[3]/100,o=+n[4]/100;return e="hwb"===n[1]?function(t,e,n){return KF(ZF,t,e,n)}(i,a,o):"hsv"===n[1]?function(t,e,n){return KF(qF,t,e,n)}(i,a,o):$F(i,a,o),{r:e[0],g:e[1],b:e[2],a:r}}}var tz,ez={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"},nz={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 rz(t){tz||(tz=function(){var t,e,n,r,i,a={},o=Object.keys(nz),s=Object.keys(ez);for(t=0;t<o.length;t++){for(r=i=o[t],e=0;e<s.length;e++)n=s[e],i=i.replace(n,ez[n]);n=parseInt(nz[r],16),a[i]=[n>>16&255,n>>8&255,255&n]}return a}(),tz.transparent=[0,0,0,0]);var e=tz[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}var iz=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var az=function(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055},oz=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)};function sz(t,e,n){if(t){var r=XF(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=$F(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function uz(t,e){return t&&Object.assign(e||{},t)}function lz(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=NF(t[3]))):(e=uz(t,{r:0,g:0,b:0,a:1})).a=NF(e.a),e}function cz(t){return"r"===t.charAt(0)?function(t){var e,n,r,i=iz.exec(t),a=255;if(i){if(i[7]!==e){var o=+i[7];a=i[8]?IF(o):LF(255*o,0,255)}return e=+i[1],n=+i[3],r=+i[5],{r:e=255&(i[2]?IF(e):LF(e,0,255)),g:n=255&(i[4]?IF(n):LF(n,0,255)),b:r=255&(i[6]?IF(r):LF(r,0,255)),a:a}}}(t):JF(t)}var fz=function(){function t(e){if(Ai(this,t),e instanceof t)return e;var n,r=Fi(e);"object"===r?n=lz(e):"string"===r&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*jF[t[1]],g:255&17*jF[t[2]],b:255&17*jF[t[3]],a:5===n?17*jF[t[4]]:255}:(7===n||9===n)&&(e={r:jF[t[1]]<<4|jF[t[2]],g:jF[t[3]]<<4|jF[t[4]],b:jF[t[5]]<<4|jF[t[6]],a:9===n?jF[t[7]]<<4|jF[t[8]]:255})),e}(e)||rz(e)||cz(e)),this._rgb=n,this._valid=!!n}return Ci(t,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var t=uz(this._rgb);return t&&(t.a=FF(t.a)),t},set:function(t){this._rgb=lz(t)}},{key:"rgbString",value:function(){return this._valid?function(t){return t&&(t.a<255?"rgba(".concat(t.r,", ").concat(t.g,", ").concat(t.b,", ").concat(FF(t.a),")"):"rgb(".concat(t.r,", ").concat(t.g,", ").concat(t.b,")"))}(this._rgb):void 0}},{key:"hexString",value:function(){return this._valid?WF(this._rgb):void 0}},{key:"hslString",value:function(){return this._valid?function(t){if(t){var e=XF(t),n=e[0],r=zF(e[1]),i=zF(e[2]);return t.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(FF(t.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):void 0}},{key:"mix",value:function(t,e){if(t){var n,r=this.rgb,i=t.rgb,a=e===n?.5:e,o=2*a-1,s=r.a-i.a,u=((o*s==-1?o:(o+s)/(1+o*s))+1)/2;n=1-u,r.r=255&u*r.r+n*i.r+.5,r.g=255&u*r.g+n*i.g+.5,r.b=255&u*r.b+n*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}},{key:"interpolate",value:function(t,e){return t&&(this._rgb=function(t,e,n){var r=oz(FF(t.r)),i=oz(FF(t.g)),a=oz(FF(t.b));return{r:NF(az(r+n*(oz(FF(e.r))-r))),g:NF(az(i+n*(oz(FF(e.g))-i))),b:NF(az(a+n*(oz(FF(e.b))-a))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}},{key:"clone",value:function(){return new t(this.rgb)}},{key:"alpha",value:function(t){return this._rgb.a=NF(t),this}},{key:"clearer",value:function(t){return this._rgb.a*=1-t,this}},{key:"greyscale",value:function(){var t=this._rgb,e=DF(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}},{key:"opaquer",value:function(t){return this._rgb.a*=1+t,this}},{key:"negate",value:function(){var t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}},{key:"lighten",value:function(t){return sz(this._rgb,2,t),this}},{key:"darken",value:function(t){return sz(this._rgb,2,-t),this}},{key:"saturate",value:function(t){return sz(this._rgb,1,t),this}},{key:"desaturate",value:function(t){return sz(this._rgb,1,-t),this}},{key:"rotate",value:function(t){return function(t,e){var n=XF(t);n[0]=QF(n[0]+e),n=$F(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}]),t}();
|
|
45
|
-
/*!
|
|
46
|
-
* Chart.js v4.2.0
|
|
47
|
-
* https://www.chartjs.org
|
|
48
|
-
* (c) 2023 Chart.js Contributors
|
|
49
|
-
* Released under the MIT License
|
|
50
|
-
*/function dz(){}var hz=function(){var t=0;return function(){return t++}}();function pz(t){return null===t||Fi(t)>"u"}function vz(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function gz(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function mz(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function yz(t,e){return mz(t)?t:e}function bz(t,e){return Fi(t)>"u"?e:t}var _z=function(t,e){return"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t};function xz(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function wz(t,e,n,r){var i,a,o;if(vz(t))if(a=t.length,r)for(i=a-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<a;i++)e.call(n,t[i],i);else if(gz(t))for(a=(o=Object.keys(t)).length,i=0;i<a;i++)e.call(n,t[o[i]],o[i])}function kz(t,e){var n,r,i,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],a=e[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Sz(t){if(vz(t))return t.map(Sz);if(gz(t)){for(var e=Object.create(null),n=Object.keys(t),r=n.length,i=0;i<r;++i)e[n[i]]=Sz(t[n[i]]);return e}return t}function Ez(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Cz(t,e,n,r){if(Ez(t)){var i=e[t],a=n[t];gz(i)&&gz(a)?Az(i,a,r):e[t]=Sz(a)}}function Az(t,e,n){var r=vz(e)?e:[e],i=r.length;if(!gz(t))return t;for(var a,o=(n=n||{}).merger||Cz,s=0;s<i;++s)if(gz(a=r[s]))for(var u=Object.keys(a),l=0,c=u.length;l<c;++l)o(u[l],t,a,n);return t}function Tz(t,e){return Az(t,e,{merger:Mz})}function Mz(t,e,n){if(Ez(t)){var r=e[t],i=n[t];gz(r)&&gz(i)?Tz(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Sz(i))}}var Oz={"":function(t){return t},x:function(t){return t.x},y:function(t){return t.y}};function Pz(t){var e=function(t){var e,n=[],r="",i=zi(t.split("."));try{for(i.s();!(e=i.n()).done;)(r+=e.value).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="")}catch(a){i.e(a)}finally{i.f()}return n}(t);return function(t){var n,r=zi(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(""===i)break;t=t&&t[i]}}catch(a){r.e(a)}finally{r.f()}return t}}function Rz(t,e){return(Oz[e]||(Oz[e]=Pz(e)))(t)}function Dz(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Lz=function(t){return Fi(t)<"u"},Iz=function(t){return"function"==typeof t},Nz=function(t,e){if(t.size!==e.size)return!1;var n,r=zi(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!e.has(i))return!1}}catch(a){r.e(a)}finally{r.f()}return!0};var Fz=Math.PI,zz=2*Fz,jz=Number.POSITIVE_INFINITY,Bz=Fz/180,Vz=Fz/2,Hz=Fz/4,Uz=2*Fz/3,Wz=Math.log10,Yz=Math.sign;function Gz(t,e,n){return Math.abs(t-e)<n}function qz(t){var e=Math.round(t);t=Gz(t,e,t/1e3)?e:t;var n=Math.pow(10,Math.floor(Wz(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Zz(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Xz(t,e,n){var r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r][n],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function Kz(t){return t*(Fz/180)}function $z(t){return t*(180/Fz)}function Qz(t){if(mz(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}}function Jz(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*Fz&&(a+=zz),{angle:a,distance:i}}function tj(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ej(t){return(t%zz+zz)%zz}function nj(t,e,n,r){var i=ej(t),a=ej(e),o=ej(n),s=ej(a-i),u=ej(o-i),l=ej(i-a),c=ej(i-o);return i===a||i===o||r&&a===o||s>u&&l<c}function rj(t,e,n){return Math.max(e,Math.min(n,t))}function ij(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function aj(t,e,n){n=n||function(n){return t[n]<e};for(var r,i=t.length-1,a=0;i-a>1;)n(r=a+i>>1)?a=r:i=r;return{lo:a,hi:i}}var oj=function(t,e,n,r){return aj(t,n,r?function(r){var i=t[r][e];return i<n||i===n&&t[r+1][e]===n}:function(r){return t[r][e]<n})},sj=function(t,e,n){return aj(t,n,(function(r){return t[r][e]>=n}))};var uj=["push","pop","shift","splice","unshift"];function lj(t,e){var n=t._chartjs;if(n){var r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),!(r.length>0)&&(uj.forEach((function(e){delete t[e]})),delete t._chartjs)}}function cj(t){var e,n,r=new Set;for(e=0,n=t.length;e<n;++e)r.add(t[e]);return r.size===n?t:Array.from(r)}var fj=("undefined"==typeof window?"undefined":Fi(window))>"u"?function(t){return t()}:window.requestAnimationFrame;function dj(t,e){var n=[],r=!1;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];n=a,r||(r=!0,fj.call(window,(function(){r=!1,t.apply(e,n)})))}}var hj=function(t){return"start"===t?"left":"end"===t?"right":"center"},pj=function(t,e,n){return"start"===t?e:"end"===t?n:(e+n)/2},vj=function(t){return 0===t||1===t},gj=function(t,e,n){return-Math.pow(2,10*(t-=1))*Math.sin((t-e)*zz/n)},mj=function(t,e,n){return Math.pow(2,-10*t)*Math.sin((t-e)*zz/n)+1},yj={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*Vz)},easeOutSine:function(t){return Math.sin(t*Vz)},easeInOutSine:function(t){return-.5*(Math.cos(Fz*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return vj(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1)))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){return vj(t)?t:gj(t,.075,.3)},easeOutElastic:function(t){return vj(t)?t:mj(t,.075,.3)},easeInOutElastic:function(t){return vj(t)?t:t<.5?.5*gj(2*t,.1125,.45):.5+.5*mj(2*t-1,.1125,.45)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-yj.easeOutBounce(1-t)},easeOutBounce:function(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:function(t){return t<.5?.5*yj.easeInBounce(2*t):.5*yj.easeOutBounce(2*t-1)+.5}};function bj(t){if(t&&"object"==Fi(t)){var e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function _j(t){return bj(t)?t:new fz(t)}function xj(t){return bj(t)?t:new fz(t).saturate(.5).darken(.1).hexString()}var wj=["x","y","borderWidth","radius","tension"],kj=["color","borderColor","backgroundColor"];var Sj=new Map;function Ej(t,e,n){return function(t,e){e=e||{};var n=t+JSON.stringify(e),r=Sj.get(n);return r||(r=new Intl.NumberFormat(t,e),Sj.set(n,r)),r}(e,n).format(t)}var Cj={values:function(t){return vz(t)?t:""+t},numeric:function(t,e,n){if(0===t)return"0";var r,i=this.chart.options.locale,a=t;if(n.length>1){var o=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(o<1e-4||o>1e15)&&(r="scientific"),a=function(t,e){var 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}(t,n)}var s=Wz(Math.abs(a)),u=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(l,this.options.ticks.format),Ej(t,i,l)},logarithmic:function(t,e,n){if(0===t)return"0";var r=n[e].significand||t/Math.pow(10,Math.floor(Wz(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?Cj.numeric.call(this,t,e,n):""}};var Aj={formatters:Cj};var Tj=Object.create(null),Mj=Object.create(null);function Oj(t,e){if(!e)return t;for(var n=e.split("."),r=0,i=n.length;r<i;++r){var a=n[r];t=t[a]||(t[a]=Object.create(null))}return t}function Pj(t,e,n){return"string"==typeof e?Az(Oj(t,e),n):Az(Oj(t,""),e)}var Rj=function(){function t(e,n){Ai(this,t),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=function(t){return t.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=function(t,e){return xj(e.backgroundColor)},this.hoverBorderColor=function(t,e){return xj(e.borderColor)},this.hoverColor=function(t,e){return xj(e.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)}return Ci(t,[{key:"set",value:function(t,e){return Pj(this,t,e)}},{key:"get",value:function(t){return Oj(this,t)}},{key:"describe",value:function(t,e){return Pj(Mj,t,e)}},{key:"override",value:function(t,e){return Pj(Tj,t,e)}},{key:"route",value:function(t,e,n,r){var i,a=Oj(this,t),o=Oj(this,n),s="_"+e;Object.defineProperties(a,(xi(i={},s,{value:a[e],writable:!0}),xi(i,e,{enumerable:!0,get:function(){var t=this[s],e=o[r];return gz(t)?Object.assign({},e,t):bz(t,e)},set:function(t){this[s]=t}}),i))}},{key:"apply",value:function(t){var e=this;t.forEach((function(t){return t(e)}))}}]),t}(),Dj=new Rj({_scriptable:function(t){return!t.startsWith("on")},_indexable:function(t){return"events"!==t},hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(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:function(t){return"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}}),t.set("animations",{colors:{type:"color",properties:kj},numbers:{type:"number",properties:wj}}),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:function(t){return 0|t}}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(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:function(t,e){return e.lineWidth},tickColor:function(t,e){return e.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:Aj.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:function(t){return!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t},_indexable:function(t){return"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:function(t){return"backdropPadding"!==t&&"callback"!==t},_indexable:function(t){return"backdropPadding"!==t}})}]);function Lj(t,e,n,r,i){var a=e[i];return a||(a=e[i]=t.measureText(i).width,n.push(i)),a>r&&(r=a),r}function Ij(t,e,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},a=r.garbageCollect=[],r.font=e),t.save(),t.font=e;var o,s,u,l,c,f=0,d=n.length;for(o=0;o<d;o++)if(null!=(l=n[o])&&!0!==vz(l))f=Lj(t,i,a,f,l);else if(vz(l))for(s=0,u=l.length;s<u;s++)null!=(c=l[s])&&!vz(c)&&(f=Lj(t,i,a,f,c));t.restore();var h=a.length/2;if(h>n.length){for(o=0;o<h;o++)delete i[a[o]];a.splice(0,h)}return f}function Nj(t,e,n){var r=t.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function Fj(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function zj(t,e,n,r){jj(t,e,n,r,null)}function jj(t,e,n,r,i){var a,o,s,u,l,c,f,d,h=e.pointStyle,p=e.rotation,v=e.radius,g=(p||0)*Bz;if(h&&"object"==Fi(h)&&("[object HTMLImageElement]"===(a=h.toString())||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(n,r),t.rotate(g),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(v)||v<=0)){switch(t.beginPath(),h){default:i?t.ellipse(n,r,i/2,v,0,0,zz):t.arc(n,r,v,0,zz),t.closePath();break;case"triangle":c=i?i/2:v,t.moveTo(n+Math.sin(g)*c,r-Math.cos(g)*v),g+=Uz,t.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*v),g+=Uz,t.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*v),t.closePath();break;case"rectRounded":u=v-(l=.516*v),o=Math.cos(g+Hz)*u,f=Math.cos(g+Hz)*(i?i/2-l:u),s=Math.sin(g+Hz)*u,d=Math.sin(g+Hz)*(i?i/2-l:u),t.arc(n-f,r-s,l,g-Fz,g-Vz),t.arc(n+d,r-o,l,g-Vz,g),t.arc(n+f,r+s,l,g,g+Vz),t.arc(n-d,r+o,l,g+Vz,g+Fz),t.closePath();break;case"rect":if(!p){u=Math.SQRT1_2*v,c=i?i/2:u,t.rect(n-c,r-u,2*c,2*u);break}g+=Hz;case"rectRot":f=Math.cos(g)*(i?i/2:v),o=Math.cos(g)*v,s=Math.sin(g)*v,d=Math.sin(g)*(i?i/2:v),t.moveTo(n-f,r-s),t.lineTo(n+d,r-o),t.lineTo(n+f,r+s),t.lineTo(n-d,r+o),t.closePath();break;case"crossRot":g+=Hz;case"cross":f=Math.cos(g)*(i?i/2:v),o=Math.cos(g)*v,s=Math.sin(g)*v,d=Math.sin(g)*(i?i/2:v),t.moveTo(n-f,r-s),t.lineTo(n+f,r+s),t.moveTo(n+d,r-o),t.lineTo(n-d,r+o);break;case"star":f=Math.cos(g)*(i?i/2:v),o=Math.cos(g)*v,s=Math.sin(g)*v,d=Math.sin(g)*(i?i/2:v),t.moveTo(n-f,r-s),t.lineTo(n+f,r+s),t.moveTo(n+d,r-o),t.lineTo(n-d,r+o),g+=Hz,f=Math.cos(g)*(i?i/2:v),o=Math.cos(g)*v,s=Math.sin(g)*v,d=Math.sin(g)*(i?i/2:v),t.moveTo(n-f,r-s),t.lineTo(n+f,r+s),t.moveTo(n+d,r-o),t.lineTo(n-d,r+o);break;case"line":o=i?i/2:Math.cos(g)*v,s=Math.sin(g)*v,t.moveTo(n-o,r-s),t.lineTo(n+o,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(g)*(i?i/2:v),r+Math.sin(g)*v);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Bj(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 Vj(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Hj(t){t.restore()}function Uj(t,e,n,r,i){var a,o,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=vz(e)?e:[e],l=s.strokeWidth>0&&""!==s.strokeColor;for(t.save(),t.font=i.string,Wj(t,s),a=0;a<u.length;++a)o=u[a],s.backdrop&&Gj(t,s.backdrop),l&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),pz(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(o,n,r,s.maxWidth)),t.fillText(o,n,r,s.maxWidth),Yj(t,n,r,o,s),r+=i.lineHeight;t.restore()}function Wj(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),pz(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 Yj(t,e,n,r,i){if(i.strikethrough||i.underline){var a=t.measureText(r),o=e-a.actualBoundingBoxLeft,s=e+a.actualBoundingBoxRight,u=n-a.actualBoundingBoxAscent,l=n+a.actualBoundingBoxDescent,c=i.strikethrough?(u+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(o,c),t.lineTo(s,c),t.stroke()}}function Gj(t,e){var n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function qj(t,e){var n=e.x,r=e.y,i=e.w,a=e.h,o=e.radius;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,-Vz,Fz,!0),t.lineTo(n,r+a-o.bottomLeft),t.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Fz,Vz,!0),t.lineTo(n+i-o.bottomRight,r+a),t.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,Vz,0,!0),t.lineTo(n+i,r+o.topRight),t.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-Vz,!0),t.lineTo(n+o.topLeft,r)}var Zj=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Xj=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Kj(t,e){var n=(""+t).match(Zj);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}var $j=function(t){return+t||0};function Qj(t,e){var n,r={},i=gz(e),a=i?Object.keys(e):e,o=gz(t)?i?function(n){return bz(t[n],t[e[n]])}:function(e){return t[e]}:function(){return t},s=zi(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;r[u]=$j(o(u))}}catch(l){s.e(l)}finally{s.f()}return r}function Jj(t){return Qj(t,{top:"y",right:"x",bottom:"y",left:"x"})}function tB(t){return Qj(t,["topLeft","topRight","bottomLeft","bottomRight"])}function eB(t){var e=Jj(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function nB(t,e){t=t||{},e=e||Dj.font;var n=bz(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));var r=bz(t.style,e.style);r&&!(""+r).match(Xj)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);var i={family:bz(t.family,e.family),lineHeight:Kj(bz(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:bz(t.weight,e.weight),string:""};return i.string=function(t){return!t||pz(t.size)||pz(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i}function rB(t,e,n,r){var i,a,o,s=!0;for(i=0,a=t.length;i<a;++i)if(void 0!==(o=t[i])&&(void 0!==e&&"function"==typeof o&&(o=o(e),s=!1),void 0!==n&&vz(o)&&(o=o[n%o.length],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}function iB(t,e){return Object.assign(Object.create(t),e)}function aB(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return t[0]};Lz(i)||(i=mB("_fallback",t));var o=(xi(e={},Symbol.toStringTag,"Object"),xi(e,"_cacheable",!0),xi(e,"_scopes",t),xi(e,"_rootScopes",r),xi(e,"_fallback",i),xi(e,"_getTarget",a),xi(e,"override",(function(e){return aB([e].concat(mi(t)),n,r,i)})),e);return new Proxy(o,{deleteProperty:function(e,n){return delete e[n],delete e._keys,delete t[0][n],!0},get:function(e,r){return cB(e,r,(function(){return gB(r,n,t,e)}))},getOwnPropertyDescriptor:function(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf:function(){return Reflect.getPrototypeOf(t[0])},has:function(t,e){return yB(t).includes(e)},ownKeys:function(t){return yB(t)},set:function(t,e,n){var r=t._storage||(t._storage=a());return t[e]=r[e]=n,delete t._keys,!0}})}function oB(t,e,n,r){var i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:sB(t,r),setContext:function(e){return oB(t,e,n,r)},override:function(i){return oB(t.override(i),e,n,r)}};return new Proxy(i,{deleteProperty:function(e,n){return delete e[n],delete t[n],!0},get:function(t,e,n){return cB(t,e,(function(){return function(t,e,n){var r=t._proxy,i=t._context,a=t._subProxy,o=t._descriptors,s=r[e];return Iz(s)&&o.isScriptable(e)&&(s=function(t,e,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._stack;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(a,o||r),s.delete(t),lB(t,e)&&(e=pB(i._scopes,i,t,e)),e}(e,s,t,n)),vz(s)&&s.length&&(s=function(t,e,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._descriptors;if(Lz(a.index)&&r(t))e=e[a.index%e.length];else if(gz(e[0])){var u=e,l=i._scopes.filter((function(t){return t!==u}));e=[];var c,f=zi(u);try{for(f.s();!(c=f.n()).done;){var d=pB(l,i,t,c.value);e.push(oB(d,a,o&&o[t],s))}}catch(h){f.e(h)}finally{f.f()}}return e}(e,s,t,o.isIndexable)),lB(e,s)&&(s=oB(s,i,a&&a[e],o)),s}(t,e,n)}))},getOwnPropertyDescriptor:function(e,n){return e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(t)},has:function(e,n){return Reflect.has(t,n)},ownKeys:function(){return Reflect.ownKeys(t)},set:function(e,n,r){return t[n]=r,delete e[n],!0}})}function sB(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=t._scriptable,r=void 0===n?e.scriptable:n,i=t._indexable,a=void 0===i?e.indexable:i,o=t._allKeys,s=void 0===o?e.allKeys:o;return{allKeys:s,scriptable:r,indexable:a,isScriptable:Iz(r)?r:function(){return r},isIndexable:Iz(a)?a:function(){return a}}}var uB=function(t,e){return t?t+Dz(e):e},lB=function(t,e){return gz(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object)};function cB(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];var r=n();return t[e]=r,r}function fB(t,e,n){return Iz(t)?t(e,n):t}var dB=function(t,e){return!0===t?e:"string"==typeof t?Rz(e,t):void 0};function hB(t,e,n,r,i){var a,o=zi(e);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=dB(n,s);if(u){t.add(u);var l=fB(u._fallback,n,i);if(Lz(l)&&l!==n&&l!==r)return l}else if(!1===u&&Lz(r)&&n!==r)return null}}catch(c){o.e(c)}finally{o.f()}return!1}function pB(t,e,n,r){var i=e._rootScopes,a=fB(e._fallback,n,r),o=[].concat(mi(t),mi(i)),s=new Set;s.add(r);var u=vB(s,o,n,a||n,r);return!(null===u||Lz(a)&&a!==n&&(u=vB(s,o,a,u,r),null===u))&&aB(Array.from(s),[""],i,a,(function(){return function(t,e,n){var r=t._getTarget();e in r||(r[e]={});var i=r[e];return vz(i)&&gz(n)?n:i||{}}(e,n,r)}))}function vB(t,e,n,r,i){for(;n;)n=hB(t,e,n,r,i);return n}function gB(t,e,n,r){var i,a,o=zi(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(i=mB(uB(s,t),n),Lz(i))return lB(t,i)?pB(n,r,t,i):i}}catch(u){o.e(u)}finally{o.f()}}function mB(t,e){var n,r=zi(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i){var a=i[t];if(Lz(a))return a}}}catch(o){r.e(o)}finally{r.f()}}function yB(t){var e=t._keys;return e||(e=t._keys=function(t){var e,n=new Set,r=zi(t);try{for(r.s();!(e=r.n()).done;){var i,a=e.value,o=zi(Object.keys(a).filter((function(t){return!t.startsWith("_")})));try{for(o.s();!(i=o.n()).done;){var s=i.value;n.add(s)}}catch(u){o.e(u)}finally{o.f()}}}catch(u){r.e(u)}finally{r.f()}return Array.from(n)}(t._scopes)),e}function bB(){return("undefined"==typeof window?"undefined":Fi(window))<"u"&&("undefined"==typeof document?"undefined":Fi(document))<"u"}function _B(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function xB(t,e,n){var r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}var wB=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};var kB=["top","right","bottom","left"];function SB(t,e,n){var r={};n=n?"-"+n:"";for(var i=0;i<4;i++){var a=kB[i];r[a]=parseFloat(t[e+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function EB(t,e){if("native"in t)return t;var n=e.canvas,r=e.currentDevicePixelRatio,i=wB(n),a="border-box"===i.boxSizing,o=SB(i,"padding"),s=SB(i,"border","width"),u=function(t,e){var n,r,i=t.touches,a=i&&i.length?i[0]:t,o=a.offsetX,s=a.offsetY,u=!1;if(function(t,e,n){return(t>0||e>0)&&(!n||!n.shadowRoot)}(o,s,t.target))n=o,r=s;else{var l=e.getBoundingClientRect();n=a.clientX-l.left,r=a.clientY-l.top,u=!0}return{x:n,y:r,box:u}}(t,n),l=u.x,c=u.y,f=u.box,d=o.left+(f&&s.left),h=o.top+(f&&s.top),p=e.width,v=e.height;return a&&(p-=o.width+s.width,v-=o.height+s.height),{x:Math.round((l-d)/p*n.width/r),y:Math.round((c-h)/v*n.height/r)}}var CB=function(t){return Math.round(10*t)/10};function AB(t,e,n,r){var i=wB(t),a=SB(i,"margin"),o=xB(i.maxWidth,t,"clientWidth")||jz,s=xB(i.maxHeight,t,"clientHeight")||jz,u=function(t,e,n){var r,i;if(void 0===e||void 0===n){var a=_B(t);if(a){var o=a.getBoundingClientRect(),s=wB(a),u=SB(s,"border","width"),l=SB(s,"padding");e=o.width-l.width-u.width,n=o.height-l.height-u.height,r=xB(s.maxWidth,a,"clientWidth"),i=xB(s.maxHeight,a,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||jz,maxHeight:i||jz}}(t,e,n),l=u.width,c=u.height;if("content-box"===i.boxSizing){var f=SB(i,"border","width"),d=SB(i,"padding");l-=d.width+f.width,c-=d.height+f.height}return l=Math.max(0,l-a.width),c=Math.max(0,r?l/r:c-a.height),l=CB(Math.min(l,o,u.maxWidth)),c=CB(Math.min(c,s,u.maxHeight)),l&&!c&&(c=CB(l/2)),(void 0!==e||void 0!==n)&&r&&u.height&&c>u.height&&(c=u.height,l=CB(Math.floor(c*r))),{width:l,height:c}}function TB(t,e,n){var r=e||1,i=Math.floor(t.height*r),a=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);var o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height="".concat(t.height,"px"),o.style.width="".concat(t.width,"px")),(t.currentDevicePixelRatio!==r||o.height!==i||o.width!==a)&&(t.currentDevicePixelRatio=r,o.height=i,o.width=a,t.ctx.setTransform(r,0,0,r,0,0),!0)}var MB=function(){var t=!1;try{var e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(n){}return t}();function OB(t,e){var n=function(t,e){return wB(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function PB(t,e,n){return t?function(t,e){return{x:function(n){return t+t+e-n},setWidth:function(t){e=t},textAlign:function(t){return"center"===t?t:"right"===t?"left":"right"},xPlus:function(t,e){return t-e},leftForLtr:function(t,e){return t-e}}}(e,n):{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}}function RB(t,e){var n,r;("ltr"===e||"rtl"===e)&&(r=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function DB(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}
|
|
51
|
-
/*!
|
|
52
|
-
* Chart.js v4.2.0
|
|
53
|
-
* https://www.chartjs.org
|
|
54
|
-
* (c) 2023 Chart.js Contributors
|
|
55
|
-
* Released under the MIT License
|
|
56
|
-
*/var LB=function(){function t(){Ai(this,t),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}return Ci(t,[{key:"_notify",value:function(t,e,n,r){var i=e.listeners[r],a=e.duration;i.forEach((function(r){return r({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(n-e.start,a)})}))}},{key:"_refresh",value:function(){var t=this;this._request||(this._running=!0,this._request=fj.call(window,(function(){t._update(),t._request=null,t._running&&t._refresh()})))}},{key:"_update",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=0;this._charts.forEach((function(r,i){if(r.running&&r.items.length){for(var a,o=r.items,s=o.length-1,u=!1;s>=0;--s)(a=o[s])._active?(a._total>r.duration&&(r.duration=a._total),a.tick(e),u=!0):(o[s]=o[o.length-1],o.pop());u&&(i.draw(),t._notify(i,r,e,"progress")),o.length||(r.running=!1,t._notify(i,r,e,"complete"),r.initial=!1),n+=o.length}})),this._lastDate=e,0===n&&(this._running=!1)}},{key:"_getAnims",value:function(t){var e=this._charts,n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}},{key:"listen",value:function(t,e,n){this._getAnims(t).listeners[e].push(n)}},{key:"add",value:function(t,e){var n;!e||!e.length||(n=this._getAnims(t).items).push.apply(n,mi(e))}},{key:"has",value:function(t){return this._getAnims(t).items.length>0}},{key:"start",value:function(t){var e=this._charts.get(t);!e||(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((function(t,e){return Math.max(t,e._duration)}),0),this._refresh())}},{key:"running",value:function(t){if(!this._running)return!1;var e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}},{key:"stop",value:function(t){var e=this._charts.get(t);if(e&&e.items.length){for(var n=e.items,r=n.length-1;r>=0;--r)n[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}}},{key:"remove",value:function(t){return this._charts.delete(t)}}]),t}(),IB=new LB,NB="transparent",FB={boolean:function(t,e,n){return n>.5?e:t},color:function(t,e,n){var r=_j(t||NB),i=r.valid&&_j(e||NB);return i&&i.valid?i.mix(r,n).hexString():e},number:function(t,e,n){return t+(e-t)*n}},zB=function(){function t(e,n,r,i){Ai(this,t);var a=n[r];i=rB([e.to,i,a,e.from]);var o=rB([e.from,a,i]);this._active=!0,this._fn=e.fn||FB[e.type||Fi(o)],this._easing=yj[e.easing]||yj.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=o,this._to=i,this._promises=void 0}return Ci(t,[{key:"active",value:function(){return this._active}},{key:"update",value:function(t,e,n){if(this._active){this._notify(!1);var r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=rB([t.to,e,r,t.from]),this._from=rB([t.from,r,e])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(t){var e,n=t-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;if(this._active=a!==s&&(o||n<r),!this._active)return this._target[i]=s,void this._notify(!0);n<0?this._target[i]=a:(e=n/r%2,e=o&&e>1?2-e:e,e=this._easing(Math.min(1,Math.max(0,e))),this._target[i]=this._fn(a,s,e))}},{key:"wait",value:function(){var t=this._promises||(this._promises=[]);return new Promise((function(e,n){t.push({res:e,rej:n})}))}},{key:"_notify",value:function(t){for(var e=t?"res":"rej",n=this._promises||[],r=0;r<n.length;r++)n[r][e]()}}]),t}(),jB=function(){function t(e,n){Ai(this,t),this._chart=e,this._properties=new Map,this.configure(n)}return Ci(t,[{key:"configure",value:function(t){if(gz(t)){var e=Object.keys(Dj.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((function(r){var i=t[r];if(gz(i)){var a,o={},s=zi(e);try{for(s.s();!(a=s.n()).done;){var u=a.value;o[u]=i[u]}}catch(l){s.e(l)}finally{s.f()}(vz(i.properties)&&i.properties||[r]).forEach((function(t){(t===r||!n.has(t))&&n.set(t,o)}))}}))}}},{key:"_animateOptions",value:function(t,e){var n=e.options,r=function(t,e){if(!e)return;var n=t.options;if(!n)return void(t.options=e);return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}(t,n);if(!r)return[];var i=this._createAnimations(r,n);return n.$shared&&function(t,e){for(var n=[],r=Object.keys(e),i=0;i<r.length;i++){var a=t[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}(t.options.$animations,n).then((function(){t.options=n}),(function(){})),i}},{key:"_createAnimations",value:function(t,e){var n,r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(e),s=Date.now();for(n=o.length-1;n>=0;--n){var u=o[n];if("$"!==u.charAt(0))if("options"!==u){var l=e[u],c=a[u],f=r.get(u);if(c){if(f&&c.active()){c.update(f,l,s);continue}c.cancel()}f&&f.duration?(a[u]=c=new zB(f,t,u,l),i.push(c)):t[u]=l}else i.push.apply(i,mi(this._animateOptions(t,e)))}return i}},{key:"update",value:function(t,e){if(0!==this._properties.size){var n=this._createAnimations(t,e);return n.length?(IB.add(this._chart,n),!0):void 0}Object.assign(t,e)}}]),t}();function BB(t,e){var n=t&&t.options||{},r=n.reverse,i=void 0===n.min?e:0,a=void 0===n.max?e:0;return{start:r?a:i,end:r?i:a}}function VB(t,e){var n,r,i=[],a=t._getSortedDatasetMetas(e);for(n=0,r=a.length;n<r;++n)i.push(a[n].index);return i}function HB(t,e,n){var r,i,a,o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=t.keys,l="single"===s.mode;if(null!==e){for(r=0,i=u.length;r<i;++r){if((a=+u[r])===n){if(s.all)continue;break}mz(o=t.values[a])&&(l||0===e||Yz(e)===Yz(o))&&(e+=o)}return e}}function UB(t,e){var n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function WB(t,e,n){var r=t[e]||(t[e]={});return r[n]||(r[n]={})}function YB(t,e,n,r){var i,a=zi(e.getMatchingVisibleMetas(r).reverse());try{for(a.s();!(i=a.n()).done;){var o=i.value,s=t[o.index];if(n&&s>0||!n&&s<0)return o.index}}catch(u){a.e(u)}finally{a.f()}return null}function GB(t,e){for(var n,r=t.chart,i=t._cachedMeta,a=r._stacks||(r._stacks={}),o=i.iScale,s=i.vScale,u=i.index,l=o.axis,c=s.axis,f=function(t,e,n){return"".concat(t.id,".").concat(e.id,".").concat(n.stack||n.type)}(o,s,i),d=e.length,h=0;h<d;++h){var p=e[h],v=p[l],g=p[c];(n=(p._stacks||(p._stacks={}))[c]=WB(a,f,v))[u]=g,n._top=YB(n,s,!0,i.type),n._bottom=YB(n,s,!1,i.type),(n._visualValues||(n._visualValues={}))[u]=g}}function qB(t,e){var n=t.scales;return Object.keys(n).filter((function(t){return n[t].axis===e})).shift()}function ZB(t,e){var n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){var i,a=zi(e=e||t._parsed);try{for(a.s();!(i=a.n()).done;){var o=i.value._stacks;if(!o||void 0===o[r]||void 0===o[r][n])return;delete o[r][n],void 0!==o[r]._visualValues&&void 0!==o[r]._visualValues[n]&&delete o[r]._visualValues[n]}}catch(s){a.e(s)}finally{a.f()}}}var XB=function(t){return"reset"===t||"none"===t},KB=function(t,e){return e?t:Object.assign({},t)},$B=function(){function t(e,n){Ai(this,t),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=(this instanceof t?this.constructor:void 0).datasetElementType,this.dataElementType=(this instanceof t?this.constructor:void 0).dataElementType,this.initialize()}return Ci(t,[{key:"initialize",value:function(){var t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=UB(t.vScale,t),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")}},{key:"updateIndex",value:function(t){this.index!==t&&ZB(this._cachedMeta),this.index=t}},{key:"linkScales",value:function(){var t=this.chart,e=this._cachedMeta,n=this.getDataset(),r=function(t,e,n,r){return"x"===t?e:"r"===t?r:n},i=e.xAxisID=bz(n.xAxisID,qB(t,"x")),a=e.yAxisID=bz(n.yAxisID,qB(t,"y")),o=e.rAxisID=bz(n.rAxisID,qB(t,"r")),s=e.indexAxis,u=e.iAxisID=r(s,i,a,o),l=e.vAxisID=r(s,a,i,o);e.xScale=this.getScaleForId(i),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(u),e.vScale=this.getScaleForId(l)}},{key:"getDataset",value:function(){return this.chart.data.datasets[this.index]}},{key:"getMeta",value:function(){return this.chart.getDatasetMeta(this.index)}},{key:"getScaleForId",value:function(t){return this.chart.scales[t]}},{key:"_getOtherScale",value:function(t){var e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}},{key:"reset",value:function(){this._update("reset")}},{key:"_destroy",value:function(){var t=this._cachedMeta;this._data&&lj(this._data,this),t._stacked&&ZB(t)}},{key:"_dataCheck",value:function(){var t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(gz(e))this._data=function(t){var e,n,r,i=Object.keys(t),a=new Array(i.length);for(e=0,n=i.length;e<n;++e)r=i[e],a[e]={x:r,y:t[r]};return a}(e);else if(n!==e){if(n){lj(n,this);var r=this._cachedMeta;ZB(r),r._parsed=[]}e&&Object.isExtensible(e)&&function(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),uj.forEach((function(e){var n="_onData"+Dz(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var o=r.apply(this,i);return t._chartjs.listeners.forEach((function(t){"function"==typeof t[n]&&t[n].apply(t,i)})),o}})})))}(e,this),this._syncList=[],this._data=e}}},{key:"addElements",value:function(){var t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}},{key:"buildOrUpdateElements",value:function(t){var e=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();var i=e._stacked;e._stacked=UB(e.vScale,e),e.stack!==n.stack&&(r=!0,ZB(e),e.stack=n.stack),this._resyncElements(t),(r||i!==e._stacked)&&GB(this,e._parsed)}},{key:"configure",value:function(){var t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}},{key:"parse",value:function(t,e){var n,r,i,a=this._cachedMeta,o=this._data,s=a.iScale,u=a._stacked,l=s.axis,c=0===t&&e===o.length||a._sorted,f=t>0&&a._parsed[t-1];if(!1===this._parsing)a._parsed=o,a._sorted=!0,i=o;else{i=vz(o[t])?this.parseArrayData(a,o,t,e):gz(o[t])?this.parseObjectData(a,o,t,e):this.parsePrimitiveData(a,o,t,e);for(n=0;n<e;++n)a._parsed[n+t]=r=i[n],c&&((null===r[l]||f&&r[l]<f[l])&&(c=!1),f=r);a._sorted=c}u&&GB(this,i)}},{key:"parsePrimitiveData",value:function(t,e,n,r){var i,a,o,s=t.iScale,u=t.vScale,l=s.axis,c=u.axis,f=s.getLabels(),d=s===u,h=new Array(r);for(i=0,a=r;i<a;++i){var p;o=i+n,h[i]=(xi(p={},l,d||s.parse(f[o],o)),xi(p,c,u.parse(e[o],o)),p)}return h}},{key:"parseArrayData",value:function(t,e,n,r){var i,a,o,s,u=t.xScale,l=t.yScale,c=new Array(r);for(i=0,a=r;i<a;++i)s=e[o=i+n],c[i]={x:u.parse(s[0],o),y:l.parse(s[1],o)};return c}},{key:"parseObjectData",value:function(t,e,n,r){var i,a,o,s,u=t.xScale,l=t.yScale,c=this._parsing,f=c.xAxisKey,d=void 0===f?"x":f,h=c.yAxisKey,p=void 0===h?"y":h,v=new Array(r);for(i=0,a=r;i<a;++i)s=e[o=i+n],v[i]={x:u.parse(Rz(s,d),o),y:l.parse(Rz(s,p),o)};return v}},{key:"getParsed",value:function(t){return this._cachedMeta._parsed[t]}},{key:"getDataElement",value:function(t){return this._cachedMeta.data[t]}},{key:"applyStack",value:function(t,e,n){var r=this.chart,i=this._cachedMeta,a=e[t.axis];return HB({keys:VB(r,!0),values:e._stacks[t.axis]._visualValues},a,i.index,{mode:n})}},{key:"updateRangeFromParsed",value:function(t,e,n,r){var i=n[e.axis],a=null===i?NaN:i,o=r&&n._stacks[e.axis];r&&o&&(r.values=o,a=HB(r,i,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}},{key:"getMinMax",value:function(t,e){var n,r,i=this._cachedMeta,a=i._parsed,o=i._sorted&&t===i.iScale,s=a.length,u=this._getOtherScale(t),l=function(t,e,n){return t&&!e.hidden&&e._stacked&&{keys:VB(n,!0),values:null}}(e,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},f=function(t){var e=t.getUserBounds(),n=e.min,r=e.max,i=e.minDefined,a=e.maxDefined;return{min:i?n:Number.NEGATIVE_INFINITY,max:a?r:Number.POSITIVE_INFINITY}}(u),d=f.min,h=f.max;function p(){var e=(r=a[n])[u.axis];return!mz(r[t.axis])||d>e||h<e}for(n=0;n<s&&(p()||(this.updateRangeFromParsed(c,t,r,l),!o));++n);if(o)for(n=s-1;n>=0;--n)if(!p()){this.updateRangeFromParsed(c,t,r,l);break}return c}},{key:"getAllParsedValues",value:function(t){var e,n,r,i=this._cachedMeta._parsed,a=[];for(e=0,n=i.length;e<n;++e)mz(r=i[e][t.axis])&&a.push(r);return a}},{key:"getMaxOverflow",value:function(){return!1}},{key:"getLabelAndValue",value:function(t){var e=this._cachedMeta,n=e.iScale,r=e.vScale,i=this.getParsed(t);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}},{key:"_update",value:function(t){var e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){var e,n,r,i;return gz(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:!1===t}}(bz(this.options.clip,function(t,e,n){if(!1===n)return!1;var r=BB(t,n),i=BB(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}},{key:"update",value:function(t){}},{key:"draw",value:function(){var t,e=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,u=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;for(r.dataset&&r.dataset.draw(e,a,s,u),t=s;t<s+u;++t){var c=i[t];c.hidden||(c.active&&l?o.push(c):c.draw(e,a))}for(t=0;t<o.length;++t)o[t].draw(e,a)}},{key:"getStyle",value:function(t,e){var n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}},{key:"getContext",value:function(t,e,n){var r,i=this.getDataset();if(t>=0&&t<this._cachedMeta.data.length){var a=this._cachedMeta.data[t];r=a.$context||(a.$context=function(t,e,n){return iB(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,a)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return iB(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}},{key:"resolveDatasetElementOptions",value:function(t){return this._resolveElementOptions(this.datasetElementType.id,t)}},{key:"resolveDataElementOptions",value:function(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}},{key:"_resolveElementOptions",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,i="active"===n,a=this._cachedDataOpts,o=t+"-"+n,s=a[o],u=this.enableOptionSharing&&Lz(r);if(s)return KB(s,u);var l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),f=i?["".concat(t,"Hover"),"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(Dj.elements[t]),p=function(){return e.getContext(r,i,n)},v=l.resolveNamedOptions(d,h,p,f);return v.$shared&&(v.$shared=u,a[o]=Object.freeze(KB(v,u))),v}},{key:"_resolveAnimations",value:function(t,e,n){var r,i=this.chart,a=this._cachedDataOpts,o="animation-".concat(e),s=a[o];if(s)return s;if(!1!==i.options.animation){var u=this.chart.config,l=u.datasetAnimationScopeKeys(this._type,e),c=u.getOptionScopes(this.getDataset(),l);r=u.createResolver(c,this.getContext(t,n,e))}var f=new jB(i,r&&r.animations);return r&&r._cacheable&&(a[o]=Object.freeze(f)),f}},{key:"getSharedOptions",value:function(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}},{key:"includeOptions",value:function(t,e){return!e||XB(t)||this.chart._animationsDisabled}},{key:"_getSharedOptions",value:function(t,e){var n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(e,i)||i!==r;return this.updateSharedOptions(i,e,n),{sharedOptions:i,includeOptions:a}}},{key:"updateElement",value:function(t,e,n,r){XB(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}},{key:"updateSharedOptions",value:function(t,e,n){t&&!XB(e)&&this._resolveAnimations(void 0,e).update(t,n)}},{key:"_setStyle",value:function(t,e,n,r){t.active=r;var i=this.getStyle(e,r);this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(t,e,n){this._setStyle(t,n,"active",!1)}},{key:"setHoverStyle",value:function(t,e,n){this._setStyle(t,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}},{key:"_resyncElements",value:function(t){var e,n=this._data,r=this._cachedMeta.data,i=zi(this._syncList);try{for(i.s();!(e=i.n()).done;){var a=wi(e.value,3),o=a[0],s=a[1],u=a[2];this[o](s,u)}}catch(d){i.e(d)}finally{i.f()}this._syncList=[];var l=r.length,c=n.length,f=Math.min(c,l);f&&this.parse(0,f),c>l?this._insertElements(l,c-l,t):c<l&&this._removeElements(c,l-c)}},{key:"_insertElements",value:function(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this._cachedMeta,a=i.data,o=t+e,s=function(t){for(t.length+=e,n=t.length-1;n>=o;n--)t[n]=t[n-e]};for(s(a),n=t;n<o;++n)a[n]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),r&&this.updateElements(a,t,e,"reset")}},{key:"updateElements",value:function(t,e,n,r){}},{key:"_removeElements",value:function(t,e){var n=this._cachedMeta;if(this._parsing){var r=n._parsed.splice(t,e);n._stacked&&ZB(n,r)}n.data.splice(t,e)}},{key:"_sync",value:function(t){if(this._parsing)this._syncList.push(t);else{var e=wi(t,3),n=e[0],r=e[1],i=e[2];this[n](r,i)}this.chart._dataChanges.push([this.index].concat(mi(t)))}},{key:"_onDataPush",value:function(){var t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}},{key:"_onDataPop",value:function(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}},{key:"_onDataShift",value:function(){this._sync(["_removeElements",0,1])}},{key:"_onDataSplice",value:function(t,e){e&&this._sync(["_removeElements",t,e]);var n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}},{key:"_onDataUnshift",value:function(){this._sync(["_insertElements",0,arguments.length])}}]),t}();function QB(t){var e,n,r,i,a=t.iScale,o=function(t,e){if(!t._cache.$bar){for(var n=t.getMatchingVisibleMetas(e),r=[],i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(t));t._cache.$bar=cj(r.sort((function(t,e){return t-e})))}return t._cache.$bar}(a,t.type),s=a._length,u=function(){32767===r||-32768===r||(Lz(i)&&(s=Math.min(s,Math.abs(r-i)||s)),i=r)};for(e=0,n=o.length;e<n;++e)r=a.getPixelForValue(o[e]),u();for(i=void 0,e=0,n=a.ticks.length;e<n;++e)r=a.getPixelForTick(e),u();return s}function JB(t,e,n,r){return vz(t)?function(t,e,n,r){var i=n.parse(t[0],r),a=n.parse(t[1],r),o=Math.min(i,a),s=Math.max(i,a),u=o,l=s;Math.abs(o)>Math.abs(s)&&(u=s,l=o),e[n.axis]=l,e._custom={barStart:u,barEnd:l,start:i,end:a,min:o,max:s}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function tV(t,e,n,r){var i,a,o,s,u=t.iScale,l=t.vScale,c=u.getLabels(),f=u===l,d=[];for(i=n,a=n+r;i<a;++i)s=e[i],(o={})[u.axis]=f||u.parse(c[i],i),d.push(JB(s,o,l,i));return d}function eV(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function nV(t,e,n,r){var i=e.borderSkipped,a={};if(i)if(!0!==i){var o=function(t){var e,n,r,i,a;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:e,top:i,bottom:a}}(t),s=o.start,u=o.end,l=o.reverse,c=o.top,f=o.bottom;"middle"===i&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(a[rV(f,s,u,l)]=!0,i=c)),a[rV(i,s,u,l)]=!0,t.borderSkipped=a}else t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};else t.borderSkipped=a}function rV(t,e,n,r){return r?(t=function(t,e,n){return t===e?n:t===n?e:t}(t,e,n),t=iV(t,n,e)):t=iV(t,e,n),t}function iV(t,e,n){return"start"===t?e:"end"===t?n:t}function aV(t,e,n){var r=e.inflateAmount;t.inflateAmount="auto"===r?1===n?.33:0:r}wL($B,"defaults",{}),wL($B,"datasetElementType",null),wL($B,"dataElementType",null);var oV=function(t){Ti(n,t);var e=Mi(n);function n(){return Ai(this,n),e.apply(this,arguments)}return Ci(n,[{key:"parsePrimitiveData",value:function(t,e,n,r){return tV(t,e,n,r)}},{key:"parseArrayData",value:function(t,e,n,r){return tV(t,e,n,r)}},{key:"parseObjectData",value:function(t,e,n,r){var i,a,o,s,u=t.iScale,l=t.vScale,c=this._parsing,f=c.xAxisKey,d=void 0===f?"x":f,h=c.yAxisKey,p=void 0===h?"y":h,v="x"===u.axis?d:p,g="x"===l.axis?d:p,m=[];for(i=n,a=n+r;i<a;++i)s=e[i],(o={})[u.axis]=u.parse(Rz(s,v),i),m.push(JB(Rz(s,g),o,l,i));return m}},{key:"updateRangeFromParsed",value:function(t,e,r,i){vi(Ni(n.prototype),"updateRangeFromParsed",this).call(this,t,e,r,i);var a=r._custom;a&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}},{key:"getMaxOverflow",value:function(){return 0}},{key:"getLabelAndValue",value:function(t){var e=this._cachedMeta,n=e.iScale,r=e.vScale,i=this.getParsed(t),a=i._custom,o=eV(a)?"["+a.start+", "+a.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:o}}},{key:"initialize",value:function(){this.enableOptionSharing=!0,vi(Ni(n.prototype),"initialize",this).call(this),this._cachedMeta.stack=this.getDataset().stack}},{key:"update",value:function(t){var e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}},{key:"updateElements",value:function(t,e,n,r){for(var i="reset"===r,a=this.index,o=this._cachedMeta.vScale,s=o.getBasePixel(),u=o.isHorizontal(),l=this._getRuler(),c=this._getSharedOptions(e,r),f=c.sharedOptions,d=c.includeOptions,h=e;h<e+n;h++){var p=this.getParsed(h),v=i||pz(p[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),g=this._calculateBarIndexPixels(h,l),m=(p._stacks||{})[o.axis],y={horizontal:u,base:v.base,enableBorderRadius:!m||eV(p._custom)||a===m._top||a===m._bottom,x:u?v.head:g.center,y:u?g.center:v.head,height:u?g.size:Math.abs(v.size),width:u?Math.abs(v.size):g.size};d&&(y.options=f||this.resolveDataElementOptions(h,t[h].active?"active":r));var b=y.options||t[h].options;nV(y,b,m,a),aV(y,b,l.ratio),this.updateElement(t[h],h,y,r)}}},{key:"_getStacks",value:function(t,e){var n,r=this._cachedMeta.iScale,i=r.getMatchingVisibleMetas(this._type).filter((function(t){return t.controller.options.grouped})),a=r.options.stacked,o=[],s=function(t){var n=t.controller.getParsed(e),r=n&&n[t.vScale.axis];if(pz(r)||isNaN(r))return!0},u=zi(i);try{for(u.s();!(n=u.n()).done;){var l=n.value;if((void 0===e||!s(l))&&((!1===a||-1===o.indexOf(l.stack)||void 0===a&&void 0===l.stack)&&o.push(l.stack),l.index===t))break}}catch(c){u.e(c)}finally{u.f()}return o.length||o.push(void 0),o}},{key:"_getStackCount",value:function(t){return this._getStacks(void 0,t).length}},{key:"_getStackIndex",value:function(t,e,n){var r=this._getStacks(t,n),i=void 0!==e?r.indexOf(e):-1;return-1===i?r.length-1:i}},{key:"_getRuler",value:function(){var t,e,n=this.options,r=this._cachedMeta,i=r.iScale,a=[];for(t=0,e=r.data.length;t<e;++t)a.push(i.getPixelForValue(this.getParsed(t)[i.axis],t));var o=n.barThickness;return{min:o||QB(r),pixels:a,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:n.grouped,ratio:o?1:n.categoryPercentage*n.barPercentage}}},{key:"_calculateBarValuePixels",value:function(t){var e,n,r=this._cachedMeta,i=r.vScale,a=r._stacked,o=r.index,s=this.options,u=s.base,l=s.minBarLength,c=u||0,f=this.getParsed(t),d=f._custom,h=eV(d),p=f[i.axis],v=0,g=a?this.applyStack(i,f,a):p;g!==p&&(v=g-p,g=p),h&&(p=d.barStart,g=d.barEnd-d.barStart,0!==p&&Yz(p)!==Yz(d.barEnd)&&(v=0),v+=p);var m=pz(u)||h?v:u,y=i.getPixelForValue(m);if(n=(e=this.chart.getDataVisibility(t)?i.getPixelForValue(v+g):y)-y,Math.abs(n)<l){n=function(t,e,n){return 0!==t?Yz(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(n,i,c)*l,p===c&&(y-=n/2);var b=i.getPixelForDecimal(0),_=i.getPixelForDecimal(1),x=Math.min(b,_),w=Math.max(b,_);e=(y=Math.max(Math.min(y,w),x))+n,a&&!h&&(f._stacks[i.axis]._visualValues[o]=i.getValueForPixel(e)-i.getValueForPixel(y))}if(y===i.getPixelForValue(c)){var k=Yz(n)*i.getLineWidthForValue(c)/2;y+=k,n-=k}return{size:n,base:y,head:e,center:e+n/2}}},{key:"_calculateBarIndexPixels",value:function(t,e){var n,r,i=e.scale,a=this.options,o=a.skipNull,s=bz(a.maxBarThickness,1/0);if(e.grouped){var u=o?this._getStackCount(t):e.stackCount,l="flex"===a.barThickness?function(t,e,n,r){var i=e.pixels,a=i[t],o=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null,u=n.categoryPercentage;null===o&&(o=a-(null===s?e.end-e.start:s-a)),null===s&&(s=a+a-o);var l=a-(a-Math.min(o,s))/2*u;return{chunk:Math.abs(s-o)/2*u/r,ratio:n.barPercentage,start:l}}(t,e,a,u):function(t,e,n,r){var i,a,o=n.barThickness;return pz(o)?(i=e.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:e.pixels[t]-i/2}}(t,e,a,u),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);n=l.start+l.chunk*c+l.chunk/2,r=Math.min(s,l.chunk*l.ratio)}else n=i.getPixelForValue(this.getParsed(t)[i.axis],t),r=Math.min(s,e.min*e.ratio);return{base:n-r/2,head:n+r/2,center:n,size:r}}},{key:"draw",value:function(){for(var t=this._cachedMeta,e=t.vScale,n=t.data,r=n.length,i=0;i<r;++i)null!==this.getParsed(i)[e.axis]&&n[i].draw(this._ctx)}}]),n}($B);wL(oV,"id","bar"),wL(oV,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),wL(oV,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});var sV=function(t){Ti(n,t);var e=Mi(n);function n(t,r){var i;return Ai(this,n),(i=e.call(this,t,r)).enableOptionSharing=!0,i.innerRadius=void 0,i.outerRadius=void 0,i.offsetX=void 0,i.offsetY=void 0,i}return Ci(n,[{key:"linkScales",value:function(){}},{key:"parse",value:function(t,e){var n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{var i,a,o=function(t){return+n[t]};if(gz(n[t])){var s=this._parsing.key,u=void 0===s?"value":s;o=function(t){return+Rz(n[t],u)}}for(i=t,a=t+e;i<a;++i)r._parsed[i]=o(i)}}},{key:"_getRotation",value:function(){return Kz(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return Kz(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var t=zz,e=-zz,n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){var r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),a=r._getCircumference();t=Math.min(t,i),e=Math.max(e,i+a)}return{rotation:t,circumference:e-t}}},{key:"update",value:function(t){var e=this.chart.chartArea,n=this._cachedMeta,r=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(e.width,e.height)-i)/2,0),o=Math.min(function(t,e){return"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e}(this.options.cutout,a),1),s=this._getRingWeight(this.index),u=this._getRotationExtents(),l=u.circumference,c=function(t,e,n){var r=1,i=1,a=0,o=0;if(e<zz){var s=t,u=s+e,l=Math.cos(s),c=Math.sin(s),f=Math.cos(u),d=Math.sin(u),h=function(t,e,r){return nj(t,s,u,!0)?1:Math.max(e,e*n,r,r*n)},p=function(t,e,r){return nj(t,s,u,!0)?-1:Math.min(e,e*n,r,r*n)},v=h(0,l,f),g=h(Vz,c,d),m=p(Fz,l,f),y=p(Fz+Vz,c,d);r=(v-m)/2,i=(g-y)/2,a=-(v+m)/2,o=-(g+y)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}(u.rotation,l,o),f=c.ratioX,d=c.ratioY,h=c.offsetX,p=c.offsetY,v=(e.width-i)/f,g=(e.height-i)/d,m=Math.max(Math.min(v,g)/2,0),y=_z(this.options.radius,m),b=(y-Math.max(y*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*y,this.offsetY=p*y,n.total=this.calculateTotal(),this.outerRadius=y-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*s,0),this.updateElements(r,0,r.length,t)}},{key:"_circumference",value:function(t,e){var n=this.options,r=this._cachedMeta,i=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*i/zz)}},{key:"updateElements",value:function(t,e,n,r){var i,a="reset"===r,o=this.chart,s=o.chartArea,u=o.options.animation,l=(s.left+s.right)/2,c=(s.top+s.bottom)/2,f=a&&u.animateScale,d=f?0:this.innerRadius,h=f?0:this.outerRadius,p=this._getSharedOptions(e,r),v=p.sharedOptions,g=p.includeOptions,m=this._getRotation();for(i=0;i<e;++i)m+=this._circumference(i,a);for(i=e;i<e+n;++i){var y=this._circumference(i,a),b=t[i],_={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+y,circumference:y,outerRadius:h,innerRadius:d};g&&(_.options=v||this.resolveDataElementOptions(i,b.active?"active":r)),m+=y,this.updateElement(b,i,_,r)}}},{key:"calculateTotal",value:function(){var t,e=this._cachedMeta,n=e.data,r=0;for(t=0;t<n.length;t++){var i=e._parsed[t];null!==i&&!isNaN(i)&&this.chart.getDataVisibility(t)&&!n[t].hidden&&(r+=Math.abs(i))}return r}},{key:"calculateCircumference",value:function(t){var e=this._cachedMeta.total;return e>0&&!isNaN(t)?zz*(Math.abs(t)/e):0}},{key:"getLabelAndValue",value:function(t){var e=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Ej(e._parsed[t],n.options.locale);return{label:r[t]||"",value:i}}},{key:"getMaxBorderWidth",value:function(t){var e,n,r,i,a,o=0,s=this.chart;if(!t)for(e=0,n=s.data.datasets.length;e<n;++e)if(s.isDatasetVisible(e)){t=(r=s.getDatasetMeta(e)).data,i=r.controller;break}if(!t)return 0;for(e=0,n=t.length;e<n;++e)"inner"!==(a=i.resolveDataElementOptions(e)).borderAlign&&(o=Math.max(o,a.borderWidth||0,a.hoverBorderWidth||0));return o}},{key:"getMaxOffset",value:function(t){for(var e=0,n=0,r=t.length;n<r;++n){var i=this.resolveDataElementOptions(n);e=Math.max(e,i.offset||0,i.hoverOffset||0)}return e}},{key:"_getRingWeightOffset",value:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}},{key:"_getRingWeight",value:function(t){return Math.max(bz(this.chart.data.datasets[t].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),n}($B);function uV(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}wL(sV,"id","doughnut"),wL(sV,"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"}),wL(sV,"descriptors",{_scriptable:function(t){return"spacing"!==t},_indexable:function(t){return"spacing"!==t}}),wL(sV,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(t){var e=t.data;if(e.labels.length&&e.datasets.length){var n=t.legend.options.labels,r=n.pointStyle,i=n.color;return e.labels.map((function(e,n){var a=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:i,lineWidth:a.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick:function(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}});var lV=function(){function t(e){Ai(this,t),this.options=e||{}}return Ci(t,[{key:"init",value:function(){}},{key:"formats",value:function(){return uV()}},{key:"parse",value:function(){return uV()}},{key:"format",value:function(){return uV()}},{key:"add",value:function(){return uV()}},{key:"diff",value:function(){return uV()}},{key:"startOf",value:function(){return uV()}},{key:"endOf",value:function(){return uV()}}],[{key:"override",value:function(e){Object.assign(t.prototype,e)}}]),t}(),cV={_date:lV};function fV(t,e,n,r){var i=t.controller,a=t.data,o=t._sorted,s=i._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&o&&a.length){var u=s._reversePixels?sj:oj;if(!r)return u(a,e,n);if(i._sharedOptions){var l=a[0],c="function"==typeof l.getRange&&l.getRange(e);if(c){var f=u(a,e,n-c),d=u(a,e,n+c);return{lo:f.lo,hi:d.hi}}}}return{lo:0,hi:a.length-1}}function dV(t,e,n,r,i){for(var a=t.getSortedVisibleDatasetMetas(),o=n[e],s=0,u=a.length;s<u;++s)for(var l=a[s],c=l.index,f=l.data,d=fV(a[s],e,o,i),h=d.lo,p=d.hi,v=h;v<=p;++v){var g=f[v];g.skip||r(g,c,v)}}function hV(t,e,n,r,i){var a=[];return!i&&!t.isPointInArea(e)||dV(t,n,e,(function(n,o,s){!i&&!Bj(n,t.chartArea,0)||n.inRange(e.x,e.y,r)&&a.push({element:n,datasetIndex:o,index:s})}),!0),a}function pV(t,e,n,r,i,a){var o=[],s=function(t){var e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){var i=e?Math.abs(t.x-r.x):0,a=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}(n),u=Number.POSITIVE_INFINITY;return dV(t,n,e,(function(n,l,c){var f=n.inRange(e.x,e.y,i);if(!r||f){var d=n.getCenterPoint(i);if(a||t.isPointInArea(d)||f){var h=s(e,d);h<u?(o=[{element:n,datasetIndex:l,index:c}],u=h):h===u&&o.push({element:n,datasetIndex:l,index:c})}}})),o}function vV(t,e,n,r,i,a){return a||t.isPointInArea(e)?"r"!==n||r?pV(t,e,n,r,i,a):function(t,e,n,r){var i=[];return dV(t,n,e,(function(t,n,a){var o=t.getProps(["startAngle","endAngle"],r),s=o.startAngle,u=o.endAngle;nj(Jz(t,{x:e.x,y:e.y}).angle,s,u)&&i.push({element:t,datasetIndex:n,index:a})})),i}(t,e,n,i):[]}function gV(t,e,n,r,i){var a=[],o="x"===n?"inXRange":"inYRange",s=!1;return dV(t,n,e,(function(t,r,u){t[o](e[n],i)&&(a.push({element:t,datasetIndex:r,index:u}),s=s||t.inRange(e.x,e.y,i))})),r&&!s?[]:a}var mV={evaluateInteractionItems:dV,modes:{index:function(t,e,n,r){var i=EB(e,t),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?hV(t,i,a,r,o):vV(t,i,a,!1,r,o),u=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((function(t){var e=s[0].index,n=t.data[e];n&&!n.skip&&u.push({element:n,datasetIndex:t.index,index:e})})),u):[]},dataset:function(t,e,n,r){var i=EB(e,t),a=n.axis||"xy",o=n.includeInvisible||!1,s=n.intersect?hV(t,i,a,r,o):vV(t,i,a,!1,r,o);if(s.length>0){var u=s[0].datasetIndex,l=t.getDatasetMeta(u).data;s=[];for(var c=0;c<l.length;++c)s.push({element:l[c],datasetIndex:u,index:c})}return s},point:function(t,e,n,r){return hV(t,EB(e,t),n.axis||"xy",r,n.includeInvisible||!1)},nearest:function(t,e,n,r){var i=EB(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return vV(t,i,a,n.intersect,r,o)},x:function(t,e,n,r){return gV(t,EB(e,t),"x",n.intersect,r)},y:function(t,e,n,r){return gV(t,EB(e,t),"y",n.intersect,r)}}},yV=["left","top","right","bottom"];function bV(t,e){return t.filter((function(t){return t.pos===e}))}function _V(t,e){return t.filter((function(t){return-1===yV.indexOf(t.pos)&&t.box.axis===e}))}function xV(t,e){return t.sort((function(t,n){var r=e?n:t,i=e?t:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function wV(t,e){var n,r,i,a=function(t){var e,n={},r=zi(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,a=i.stack,o=i.pos,s=i.stackWeight;if(a&&yV.includes(o)){var u=n[a]||(n[a]={count:0,placed:0,weight:0,size:0});u.count++,u.weight+=s}}}catch(l){r.e(l)}finally{r.f()}return n}(t),o=e.vBoxMaxWidth,s=e.hBoxMaxHeight;for(n=0,r=t.length;n<r;++n){var u=(i=t[n]).box.fullSize,l=a[i.stack],c=l&&i.stackWeight/l.weight;i.horizontal?(i.width=c?c*o:u&&e.availableWidth,i.height=s):(i.width=o,i.height=c?c*s:u&&e.availableHeight)}return a}function kV(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function SV(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 EV(t,e,n,r){var i=n.pos,a=n.box,o=t.maxPadding;if(!gz(i)){n.size&&(t[i]-=n.size);var s=r[n.stack]||{size:0,count:1};s.size=Math.max(s.size,n.horizontal?a.height:a.width),n.size=s.size/s.count,t[i]+=n.size}a.getPadding&&SV(o,a.getPadding());var u=Math.max(0,e.outerWidth-kV(o,t,"left","right")),l=Math.max(0,e.outerHeight-kV(o,t,"top","bottom")),c=u!==t.w,f=l!==t.h;return t.w=u,t.h=l,n.horizontal?{same:c,other:f}:{same:f,other:c}}function CV(t,e){var n,r=e.maxPadding;return n={left:0,top:0,right:0,bottom:0},(t?["left","right"]:["top","bottom"]).forEach((function(t){n[t]=Math.max(e[t],r[t])})),n}function AV(t,e,n,r){var i,a,o,s,u,l,c=[];for(i=0,a=t.length,u=0;i<a;++i){(s=(o=t[i]).box).update(o.width||e.w,o.height||e.h,CV(o.horizontal,e));var f=EV(e,n,o,r),d=f.same,h=f.other;u|=d&&c.length,l=l||h,s.fullSize||c.push(o)}return u&&AV(c,e,n,r)||l}function TV(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 MV(t,e,n,r){var i,a=n.padding,o=e.x,s=e.y,u=zi(t);try{for(u.s();!(i=u.n()).done;){var l=i.value,c=l.box,f=r[l.stack]||{count:1,placed:0,weight:1},d=l.stackWeight/f.weight||1;if(l.horizontal){var h=e.w*d,p=f.size||c.height;Lz(f.start)&&(s=f.start),c.fullSize?TV(c,a.left,s,n.outerWidth-a.right-a.left,p):TV(c,e.left+f.placed,s,h,p),f.start=s,f.placed+=h,s=c.bottom}else{var v=e.h*d,g=f.size||c.width;Lz(f.start)&&(o=f.start),c.fullSize?TV(c,o,a.top,g,n.outerHeight-a.bottom-a.top):TV(c,o,e.top+f.placed,g,v),f.start=o,f.placed+=v,o=c.right}}}catch(m){u.e(m)}finally{u.f()}e.x=o,e.y=s}var OV=function(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:function(t){e.draw(t)}}]},t.boxes.push(e)},PV=function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},RV=function(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},DV=function(t,e,n,r){if(t){var i=eB(t.options.layout.padding),a=Math.max(e-i.width,0),o=Math.max(n-i.height,0),s=function(t){var e=function(t){var e,n,r,i,a,o,s=[];for(e=0,n=(t||[]).length;e<n;++e){var u,l,c;i=(u=r=t[e]).position,a=(l=u.options).stack,o=void 0===(c=l.stackWeight)?1:c,s.push({index:e,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:o})}return s}(t),n=xV(e.filter((function(t){return t.box.fullSize})),!0),r=xV(bV(e,"left"),!0),i=xV(bV(e,"right")),a=xV(bV(e,"top"),!0),o=xV(bV(e,"bottom")),s=_V(e,"x"),u=_V(e,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(u).concat(o).concat(s),chartArea:bV(e,"chartArea"),vertical:r.concat(i).concat(u),horizontal:a.concat(o).concat(s)}}(t.boxes),u=s.vertical,l=s.horizontal;wz(t.boxes,(function(t){"function"==typeof t.beforeLayout&&t.beforeLayout()}));var c=u.reduce((function(t,e){return e.box.options&&!1===e.box.options.display?t:t+1}),0)||1,f=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),d=Object.assign({},i);SV(d,eB(r));var h=Object.assign({maxPadding:d,w:a,h:o,x:i.left,y:i.top},i),p=wV(u.concat(l),f);AV(s.fullSize,h,f,p),AV(u,h,f,p),AV(l,h,f,p)&&AV(u,h,f,p),function(t){var e=t.maxPadding;function n(n){var r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(h),MV(s.leftAndTop,h,f,p),h.x+=h.w,h.y+=h.h,MV(s.rightAndBottom,h,f,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},wz(s.chartArea,(function(e){var n=e.box;Object.assign(n,t.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}},LV=function(){function t(){Ai(this,t)}return Ci(t,[{key:"acquireContext",value:function(t,e){}},{key:"releaseContext",value:function(t){return!1}},{key:"addEventListener",value:function(t,e,n){}},{key:"removeEventListener",value:function(t,e,n){}},{key:"getDevicePixelRatio",value:function(){return 1}},{key:"getMaximumSize",value:function(t,e,n,r){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):n)}}},{key:"isAttached",value:function(t){return!0}},{key:"updateConfig",value:function(t){}}]),t}(),IV=function(t){Ti(n,t);var e=Mi(n);function n(){return Ai(this,n),e.apply(this,arguments)}return Ci(n,[{key:"acquireContext",value:function(t){return t&&t.getContext&&t.getContext("2d")||null}},{key:"updateConfig",value:function(t){t.options.animation=!1}}]),n}(LV),NV="$chartjs",FV={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},zV=function(t){return null===t||""===t};var jV=!!MB&&{passive:!0};function BV(t,e,n){t.canvas.removeEventListener(e,n,jV)}function VV(t,e){var n,r=zi(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i===e||i.contains(e))return!0}}catch(a){r.e(a)}finally{r.f()}}function HV(t,e,n){var r=t.canvas,i=new MutationObserver((function(t){var e,i=!1,a=zi(t);try{for(a.s();!(e=a.n()).done;){var o=e.value;i=(i=i||VV(o.addedNodes,r))&&!VV(o.removedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function UV(t,e,n){var r=t.canvas,i=new MutationObserver((function(t){var e,i=!1,a=zi(t);try{for(a.s();!(e=a.n()).done;){var o=e.value;i=(i=i||VV(o.removedNodes,r))&&!VV(o.addedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}var WV=new Map,YV=0;function GV(){var t=window.devicePixelRatio;t!==YV&&(YV=t,WV.forEach((function(e,n){n.currentDevicePixelRatio!==t&&e()})))}function qV(t,e,n){var r=t.canvas,i=r&&_B(r);if(i){var a=dj((function(t,e){var r=i.clientWidth;n(t,e),r<i.clientWidth&&n()}),window),o=new ResizeObserver((function(t){var e=t[0],n=e.contentRect.width,r=e.contentRect.height;0===n&&0===r||a(n,r)}));return o.observe(i),function(t,e){WV.size||window.addEventListener("resize",GV),WV.set(t,e)}(t,a),o}}function ZV(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){WV.delete(t),WV.size||window.removeEventListener("resize",GV)}(t)}function XV(t,e,n){var r=t.canvas,i=dj((function(e){null!==t.ctx&&n(function(t,e){var n=FV[t.type]||t.type,r=EB(t,e),i=r.x,a=r.y;return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==a?a:null}}(e,t))}),t);return function(t,e,n){t.addEventListener(e,n,jV)}(r,e,i),i}var KV=function(t){Ti(n,t);var e=Mi(n);function n(){return Ai(this,n),e.apply(this,arguments)}return Ci(n,[{key:"acquireContext",value:function(t,e){var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){var n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[NV]={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",zV(i)){var a=OB(t,"width");void 0!==a&&(t.width=a)}if(zV(r))if(""===t.style.height)t.height=t.width/(e||2);else{var o=OB(t,"height");void 0!==o&&(t.height=o)}}(t,e),n):null}},{key:"releaseContext",value:function(t){var e=t.canvas;if(!e[NV])return!1;var n=e[NV].initial;["height","width"].forEach((function(t){var r=n[t];pz(r)?e.removeAttribute(t):e.setAttribute(t,r)}));var r=n.style||{};return Object.keys(r).forEach((function(t){e.style[t]=r[t]})),e.width=e.width,delete e[NV],!0}},{key:"addEventListener",value:function(t,e,n){this.removeEventListener(t,e);var r=t.$proxies||(t.$proxies={}),i={attach:HV,detach:UV,resize:qV}[e]||XV;r[e]=i(t,e,n)}},{key:"removeEventListener",value:function(t,e){var n=t.$proxies||(t.$proxies={}),r=n[e];r&&(({attach:ZV,detach:ZV,resize:ZV}[e]||BV)(t,e,r),n[e]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(t,e,n,r){return AB(t,e,n,r)}},{key:"isAttached",value:function(t){var e=_B(t);return!(!e||!e.isConnected)}}]),n}(LV);var $V=function(){function t(){Ai(this,t),wL(this,"active",!1)}return Ci(t,[{key:"tooltipPosition",value:function(t){var e=this.getProps(["x","y"],t);return{x:e.x,y:e.y}}},{key:"hasValue",value:function(){return Zz(this.x)&&Zz(this.y)}},{key:"getProps",value:function(t,e){var n=this,r=this.$animations;if(!e||!r)return this;var i={};return t.forEach((function(t){i[t]=r[t]&&r[t].active()?r[t]._to:n[t]})),i}}]),t}();function QV(t,e){var n=t.options.ticks,r=function(t){var 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))}(t),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?function(t){var e,n,r=[];for(e=0,n=t.length;e<n;e++)t[e].major&&r.push(e);return r}(e):[],o=a.length,s=a[0],u=a[o-1],l=[];if(o>i)return function(t,e,n,r){var i,a=0,o=n[0];for(r=Math.ceil(r),i=0;i<t.length;i++)i===o&&(e.push(t[i]),o=n[++a*r])}(e,l,a,o/i),l;var c=function(t,e,n){var r=function(t){var e,n,r=t.length;if(r<2)return!1;for(n=t[0],e=1;e<r;++e)if(t[e]-t[e-1]!==n)return!1;return n}(t),i=e.length/n;if(!r)return Math.max(i,1);for(var a=function(t){var e,n=[],r=Math.sqrt(t);for(e=1;e<r;e++)t%e==0&&(n.push(e),n.push(t/e));return r===(0|r)&&n.push(r),n.sort((function(t,e){return t-e})).pop(),n}(r),o=0,s=a.length-1;o<s;o++){var u=a[o];if(u>i)return u}return Math.max(i,1)}(a,e,i);if(o>0){var f,d,h=o>1?Math.round((u-s)/(o-1)):null;for(JV(e,l,c,pz(h)?0:s-h,s),f=0,d=o-1;f<d;f++)JV(e,l,c,a[f],a[f+1]);return JV(e,l,c,u,pz(h)?e.length:u+h),l}return JV(e,l,c),l}function JV(t,e,n,r,i){var a,o,s,u=bz(r,0),l=Math.min(bz(i,t.length),t.length),c=0;for(n=Math.ceil(n),i&&(n=(a=i-r)/Math.floor(a/n)),s=u;s<0;)c++,s=Math.round(u+c*n);for(o=Math.max(u,0);o<l;o++)o===s&&(e.push(t[o]),c++,s=Math.round(u+c*n))}wL($V,"defaults",{}),wL($V,"defaultRoutes");var tH=function(t,e,n){return"top"===e||"left"===e?t[e]+n:t[e]-n};function eH(t,e){for(var n=[],r=t.length/e,i=t.length,a=0;a<i;a+=r)n.push(t[Math.floor(a)]);return n}function nH(t,e,n){var r,i=t.ticks.length,a=Math.min(e,i-1),o=t._startPixel,s=t._endPixel,u=1e-6,l=t.getPixelForTick(a);if(!(n&&(r=1===i?Math.max(l-o,s-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(a-1))/2,l+=a<e?r:-r,l<o-u||l>s+u)))return l}function rH(t){return t.drawTicks?t.tickLength:0}function iH(t,e){if(!t.display)return 0;var n=nB(t.font,e),r=eB(t.padding);return(vz(t.text)?t.text.length:1)*n.lineHeight+r.height}function aH(t,e,n){var r=hj(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=function(t){return"left"===t?"right":"right"===t?"left":t}(r)),r}var oH=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).id=t.id,r.type=t.type,r.options=void 0,r.ctx=t.ctx,r.chart=t.chart,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r._margins={left:0,right:0,top:0,bottom:0},r.maxWidth=void 0,r.maxHeight=void 0,r.paddingTop=void 0,r.paddingBottom=void 0,r.paddingLeft=void 0,r.paddingRight=void 0,r.axis=void 0,r.labelRotation=void 0,r.min=void 0,r.max=void 0,r._range=void 0,r.ticks=[],r._gridLineItems=null,r._labelItems=null,r._labelSizes=null,r._length=0,r._maxLength=0,r._longestTextCache={},r._startPixel=void 0,r._endPixel=void 0,r._reversePixels=!1,r._userMax=void 0,r._userMin=void 0,r._suggestedMax=void 0,r._suggestedMin=void 0,r._ticksLength=0,r._borderValue=0,r._cache={},r._dataLimitsCached=!1,r.$context=void 0,r}return Ci(n,[{key:"init",value:function(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}},{key:"parse",value:function(t,e){return t}},{key:"getUserBounds",value:function(){var t=this._userMin,e=this._userMax,n=this._suggestedMin,r=this._suggestedMax;return t=yz(t,Number.POSITIVE_INFINITY),e=yz(e,Number.NEGATIVE_INFINITY),n=yz(n,Number.POSITIVE_INFINITY),r=yz(r,Number.NEGATIVE_INFINITY),{min:yz(t,n),max:yz(e,r),minDefined:mz(t),maxDefined:mz(e)}}},{key:"getMinMax",value:function(t){var e,n=this.getUserBounds(),r=n.min,i=n.max,a=n.minDefined,o=n.maxDefined;if(a&&o)return{min:r,max:i};for(var s=this.getMatchingVisibleMetas(),u=0,l=s.length;u<l;++u)e=s[u].controller.getMinMax(this,t),a||(r=Math.min(r,e.min)),o||(i=Math.max(i,e.max));return{min:yz(r=o&&r>i?i:r,yz(i=a&&r>i?r:i,r)),max:yz(i,yz(r,i))}}},{key:"getPadding",value:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}},{key:"getTicks",value:function(){return this.ticks}},{key:"getLabels",value:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}},{key:"getLabelItems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.chartArea;return this._labelItems||(this._labelItems=this._computeLabelItems(t))}},{key:"beforeLayout",value:function(){this._cache={},this._dataLimitsCached=!1}},{key:"beforeUpdate",value:function(){xz(this.options.beforeUpdate,[this])}},{key:"update",value:function(t,e,n){var r=this.options,i=r.beginAtZero,a=r.grace,o=r.ticks,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){var r=t.min,i=t.max,a=_z(e,(i-r)/2),o=function(t,e){return n&&0===t?0:t+e};return{min:o(r,-Math.abs(a)),max:o(i,a)}}(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();var u=s<this.ticks.length;this._convertTicksToLabels(u?eH(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=QV(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),u&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}},{key:"configure",value:function(){var t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}},{key:"afterUpdate",value:function(){xz(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){xz(this.options.beforeSetDimensions,[this])}},{key:"setDimensions",value:function(){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}},{key:"afterSetDimensions",value:function(){xz(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(t){this.chart.notifyPlugins(t,this.getContext()),xz(this.options[t],[this])}},{key:"beforeDataLimits",value:function(){this._callHooks("beforeDataLimits")}},{key:"determineDataLimits",value:function(){}},{key:"afterDataLimits",value:function(){this._callHooks("afterDataLimits")}},{key:"beforeBuildTicks",value:function(){this._callHooks("beforeBuildTicks")}},{key:"buildTicks",value:function(){return[]}},{key:"afterBuildTicks",value:function(){this._callHooks("afterBuildTicks")}},{key:"beforeTickToLabelConversion",value:function(){xz(this.options.beforeTickToLabelConversion,[this])}},{key:"generateTickLabels",value:function(t){var e,n,r,i=this.options.ticks;for(e=0,n=t.length;e<n;e++)(r=t[e]).label=xz(i.callback,[r.value,e,t],this)}},{key:"afterTickToLabelConversion",value:function(){xz(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){xz(this.options.beforeCalculateLabelRotation,[this])}},{key:"calculateLabelRotation",value:function(){var t,e,n,r=this.options,i=r.ticks,a=this.ticks.length,o=i.minRotation||0,s=i.maxRotation,u=o;if(!this._isVisible()||!i.display||o>=s||a<=1||!this.isHorizontal())this.labelRotation=o;else{var l=this._getLabelSizes(),c=l.widest.width,f=l.highest.height,d=rj(this.chart.width-c,0,this.maxWidth);c+6>(t=r.offset?this.maxWidth/a:d/(a-1))&&(t=d/(a-(r.offset?.5:1)),e=this.maxHeight-rH(r.grid)-i.padding-iH(r.title,this.chart.options.font),n=Math.sqrt(c*c+f*f),u=$z(Math.min(Math.asin(rj((l.highest.height+6)/t,-1,1)),Math.asin(rj(e/n,-1,1))-Math.asin(rj(f/n,-1,1)))),u=Math.max(o,Math.min(s,u))),this.labelRotation=u}}},{key:"afterCalculateLabelRotation",value:function(){xz(this.options.afterCalculateLabelRotation,[this])}},{key:"afterAutoSkip",value:function(){}},{key:"beforeFit",value:function(){xz(this.options.beforeFit,[this])}},{key:"fit",value:function(){var t={width:0,height:0},e=this.chart,n=this.options,r=n.ticks,i=n.title,a=n.grid,o=this._isVisible(),s=this.isHorizontal();if(o){var u=iH(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=rH(a)+u):(t.height=this.maxHeight,t.width=rH(a)+u),r.display&&this.ticks.length){var l=this._getLabelSizes(),c=l.first,f=l.last,d=l.widest,h=l.highest,p=2*r.padding,v=Kz(this.labelRotation),g=Math.cos(v),m=Math.sin(v);if(s){var y=r.mirror?0:m*d.width+g*h.height;t.height=Math.min(this.maxHeight,t.height+y+p)}else{var b=r.mirror?0:g*d.width+m*h.height;t.width=Math.min(this.maxWidth,t.width+b+p)}this._calculatePadding(c,f,m,g)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}},{key:"_calculatePadding",value:function(t,e,n,r){var i=this.options,a=i.ticks,o=a.align,s=a.padding,u=i.position,l=0!==this.labelRotation,c="top"!==u&&"x"===this.axis;if(this.isHorizontal()){var f=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1),h=0,p=0;l?c?(h=r*t.width,p=n*e.height):(h=n*t.height,p=r*e.width):"start"===o?p=e.width:"end"===o?h=t.width:"inner"!==o&&(h=t.width/2,p=e.width/2),this.paddingLeft=Math.max((h-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((p-d+s)*this.width/(this.width-d),0)}else{var v=e.height/2,g=t.height/2;"start"===o?(v=0,g=t.height):"end"===o&&(v=e.height,g=0),this.paddingTop=v+s,this.paddingBottom=g+s}}},{key:"_handleMargins",value:function(){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))}},{key:"afterFit",value:function(){xz(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var t=this.options,e=t.axis,n=t.position;return"top"===n||"bottom"===n||"x"===e}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(t){var e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)pz(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}},{key:"_getLabelSizes",value:function(){var t=this._labelSizes;if(!t){var e=this.options.ticks.sampleSize,n=this.ticks;e<n.length&&(n=eH(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}},{key:"_computeLabelSizes",value:function(t,e){var n,r,i,a,o,s,u,l,c,f,d,h=this.ctx,p=this._longestTextCache,v=[],g=[],m=0,y=0;for(n=0;n<e;++n){if(a=t[n].label,o=this._resolveTickFontOptions(n),h.font=s=o.string,u=p[s]=p[s]||{data:{},gc:[]},l=o.lineHeight,c=f=0,pz(a)||vz(a)){if(vz(a))for(r=0,i=a.length;r<i;++r)!pz(d=a[r])&&!vz(d)&&(c=Lj(h,u.data,u.gc,c,d),f+=l)}else c=Lj(h,u.data,u.gc,c,a),f=l;v.push(c),g.push(f),m=Math.max(c,m),y=Math.max(f,y)}!function(t,e){wz(t,(function(t){var n,r=t.gc,i=r.length/2;if(i>e){for(n=0;n<i;++n)delete t.data[r[n]];r.splice(0,i)}}))}(p,e);var b=v.indexOf(m),_=g.indexOf(y),x=function(t){return{width:v[t]||0,height:g[t]||0}};return{first:x(0),last:x(e-1),widest:x(b),highest:x(_),widths:v,heights:g}}},{key:"getLabelForValue",value:function(t){return t}},{key:"getPixelForValue",value:function(t,e){return NaN}},{key:"getValueForPixel",value:function(t){}},{key:"getPixelForTick",value:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}},{key:"getPixelForDecimal",value:function(t){this._reversePixels&&(t=1-t);var e=this._startPixel+t*this._length;return function(t){return rj(t,-32768,32767)}(this._alignToPixels?Nj(this.chart,e,0):e)}},{key:"getDecimalForPixel",value:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var t=this.min,e=this.max;return t<0&&e<0?e:t>0&&e>0?t:0}},{key:"getContext",value:function(t){var e=this.ticks||[];if(t>=0&&t<e.length){var n=e[t];return n.$context||(n.$context=function(t,e,n){return iB(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=function(t,e){return iB(t,{scale:e,type:"scale"})}(this.chart.getContext(),this))}},{key:"_tickSize",value:function(){var t=this.options.ticks,e=Kz(this.labelRotation),n=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),i=this._getLabelSizes(),a=t.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r<o*n?s/n:o/r}},{key:"_isVisible",value:function(){var t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}},{key:"_computeGridLineItems",value:function(t){var e,n,r,i,a,o,s,u,l,c,f,d,h=this.axis,p=this.chart,v=this.options,g=v.grid,m=v.position,y=v.border,b=g.offset,_=this.isHorizontal(),x=this.ticks.length+(b?1:0),w=rH(g),k=[],S=y.setContext(this.getContext()),E=S.display?S.width:0,C=E/2,A=function(t){return Nj(p,t,E)};if("top"===m)e=A(this.bottom),o=this.bottom-w,u=e-C,c=A(t.top)+C,d=t.bottom;else if("bottom"===m)e=A(this.top),c=t.top,d=A(t.bottom)-C,o=e+C,u=this.top+w;else if("left"===m)e=A(this.right),a=this.right-w,s=e-C,l=A(t.left)+C,f=t.right;else if("right"===m)e=A(this.left),l=t.left,f=A(t.right)-C,a=e+C,s=this.left+w;else if("x"===h){if("center"===m)e=A((t.top+t.bottom)/2+.5);else if(gz(m)){var T=Object.keys(m)[0],M=m[T];e=A(this.chart.scales[T].getPixelForValue(M))}c=t.top,d=t.bottom,u=(o=e+C)+w}else if("y"===h){if("center"===m)e=A((t.left+t.right)/2);else if(gz(m)){var O=Object.keys(m)[0],P=m[O];e=A(this.chart.scales[O].getPixelForValue(P))}s=(a=e-C)-w,l=t.left,f=t.right}var R=bz(v.ticks.maxTicksLimit,x),D=Math.max(1,Math.ceil(x/R));for(n=0;n<x;n+=D){var L=this.getContext(n),I=g.setContext(L),N=y.setContext(L),F=I.lineWidth,z=I.color,j=N.dash||[],B=N.dashOffset,V=I.tickWidth,H=I.tickColor,U=I.tickBorderDash||[],W=I.tickBorderDashOffset;void 0!==(r=nH(this,n,b))&&(i=Nj(p,r,F),_?a=s=l=f=i:o=u=c=d=i,k.push({tx1:a,ty1:o,tx2:s,ty2:u,x1:l,y1:c,x2:f,y2:d,width:F,color:z,borderDash:j,borderDashOffset:B,tickWidth:V,tickColor:H,tickBorderDash:U,tickBorderDashOffset:W}))}return this._ticksLength=x,this._borderValue=e,k}},{key:"_computeLabelItems",value:function(t){var e,n,r,i,a,o,s,u,l,c,f,d=this.axis,h=this.options,p=h.position,v=h.ticks,g=this.isHorizontal(),m=this.ticks,y=v.align,b=v.crossAlign,_=v.padding,x=v.mirror,w=rH(h.grid),k=w+_,S=x?-_:k,E=-Kz(this.labelRotation),C=[],A="middle";if("top"===p)a=this.bottom-S,o=this._getXAxisLabelAlignment();else if("bottom"===p)a=this.top+S,o=this._getXAxisLabelAlignment();else if("left"===p){var T=this._getYAxisLabelAlignment(w);o=T.textAlign,i=T.x}else if("right"===p){var M=this._getYAxisLabelAlignment(w);o=M.textAlign,i=M.x}else if("x"===d){if("center"===p)a=(t.top+t.bottom)/2+k;else if(gz(p)){var O=Object.keys(p)[0],P=p[O];a=this.chart.scales[O].getPixelForValue(P)+k}o=this._getXAxisLabelAlignment()}else if("y"===d){if("center"===p)i=(t.left+t.right)/2-k;else if(gz(p)){var R=Object.keys(p)[0],D=p[R];i=this.chart.scales[R].getPixelForValue(D)}o=this._getYAxisLabelAlignment(w).textAlign}"y"===d&&("start"===y?A="top":"end"===y&&(A="bottom"));var L=this._getLabelSizes();for(e=0,n=m.length;e<n;++e){r=m[e].label;var I=v.setContext(this.getContext(e));s=this.getPixelForTick(e)+v.labelOffset,l=(u=this._resolveTickFontOptions(e)).lineHeight;var N=(c=vz(r)?r.length:1)/2,F=I.color,z=I.textStrokeColor,j=I.textStrokeWidth,B=o;g?(i=s,"inner"===o&&(B=e===n-1?this.options.reverse?"left":"right":0===e?this.options.reverse?"right":"left":"center"),f="top"===p?"near"===b||0!==E?-c*l+l/2:"center"===b?-L.highest.height/2-N*l+l:-L.highest.height+l/2:"near"===b||0!==E?l/2:"center"===b?L.highest.height/2-N*l:L.highest.height-c*l,x&&(f*=-1),0!==E&&!I.showLabelBackdrop&&(i+=l/2*Math.sin(E))):(a=s,f=(1-c)*l/2);var V=void 0;if(I.showLabelBackdrop){var H=eB(I.backdropPadding),U=L.heights[e],W=L.widths[e],Y=f-H.top,G=0-H.left;switch(A){case"middle":Y-=U/2;break;case"bottom":Y-=U}switch(o){case"center":G-=W/2;break;case"right":G-=W}V={left:G,top:Y,width:W+H.width,height:U+H.height,color:I.backdropColor}}C.push({label:r,font:u,textOffset:f,options:{rotation:E,color:F,strokeColor:z,strokeWidth:j,textAlign:B,textBaseline:A,translation:[i,a],backdrop:V}})}return C}},{key:"_getXAxisLabelAlignment",value:function(){var t=this.options,e=t.position,n=t.ticks;if(-Kz(this.labelRotation))return"top"===e?"left":"right";var r="center";return"start"===n.align?r="left":"end"===n.align?r="right":"inner"===n.align&&(r="inner"),r}},{key:"_getYAxisLabelAlignment",value:function(t){var e,n,r=this.options,i=r.position,a=r.ticks,o=a.crossAlign,s=a.mirror,u=a.padding,l=t+u,c=this._getLabelSizes().widest.width;return"left"===i?s?(n=this.right+u,"near"===o?e="left":"center"===o?(e="center",n+=c/2):(e="right",n+=c)):(n=this.right-l,"near"===o?e="right":"center"===o?(e="center",n-=c/2):(e="left",n=this.left)):"right"===i?s?(n=this.left+u,"near"===o?e="right":"center"===o?(e="center",n-=c/2):(e="left",n-=c)):(n=this.left+l,"near"===o?e="left":"center"===o?(e="center",n+=c/2):(e="right",n=this.right)):e="right",{textAlign:e,x:n}}},{key:"_computeLabelArea",value:function(){if(!this.options.ticks.mirror){var t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}}},{key:"drawBackground",value:function(){var t=this.ctx,e=this.options.backgroundColor,n=this.left,r=this.top,i=this.width,a=this.height;e&&(t.save(),t.fillStyle=e,t.fillRect(n,r,i,a),t.restore())}},{key:"getLineWidthForValue",value:function(t){var e=this.options.grid;if(!this._isVisible()||!e.display)return 0;var n=this.ticks.findIndex((function(e){return e.value===t}));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}},{key:"drawGrid",value:function(t){var e,n,r=this.options.grid,i=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),o=function(t,e,n){!n.width||!n.color||(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(r.display)for(e=0,n=a.length;e<n;++e){var s=a[e];r.drawOnChartArea&&o({x:s.x1,y:s.y1},{x:s.x2,y:s.y2},s),r.drawTicks&&o({x:s.tx1,y:s.ty1},{x:s.tx2,y:s.ty2},{color:s.tickColor,width:s.tickWidth,borderDash:s.tickBorderDash,borderDashOffset:s.tickBorderDashOffset})}}},{key:"drawBorder",value:function(){var t=this.chart,e=this.ctx,n=this.options,r=n.border,i=n.grid,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(o){var s,u,l,c,f=i.setContext(this.getContext(0)).lineWidth,d=this._borderValue;this.isHorizontal()?(s=Nj(t,this.left,o)-o/2,u=Nj(t,this.right,f)+f/2,l=c=d):(l=Nj(t,this.top,o)-o/2,c=Nj(t,this.bottom,f)+f/2,s=u=d),e.save(),e.lineWidth=a.width,e.strokeStyle=a.color,e.beginPath(),e.moveTo(s,l),e.lineTo(u,c),e.stroke(),e.restore()}}},{key:"drawLabels",value:function(t){if(this.options.ticks.display){var e=this.ctx,n=this._computeLabelArea();n&&Vj(e,n);var r,i=zi(this.getLabelItems(t));try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.options,s=a.font;Uj(e,a.label,0,a.textOffset,s,o)}}catch(u){i.e(u)}finally{i.f()}n&&Hj(e)}}},{key:"drawTitle",value:function(){var t=this.ctx,e=this.options,n=e.position,r=e.title,i=e.reverse;if(r.display){var a=nB(r.font),o=eB(r.padding),s=r.align,u=a.lineHeight/2;"bottom"===n||"center"===n||gz(n)?(u+=o.bottom,vz(r.text)&&(u+=a.lineHeight*(r.text.length-1))):u+=o.top;var l=function(t,e,n,r){var i,a,o,s=t.top,u=t.left,l=t.bottom,c=t.right,f=t.chart,d=f.chartArea,h=f.scales,p=0,v=l-s,g=c-u;if(t.isHorizontal()){if(a=pj(r,u,c),gz(n)){var m=Object.keys(n)[0],y=n[m];o=h[m].getPixelForValue(y)+v-e}else o="center"===n?(d.bottom+d.top)/2+v-e:tH(t,n,e);i=c-u}else{if(gz(n)){var b=Object.keys(n)[0],_=n[b];a=h[b].getPixelForValue(_)-g+e}else a="center"===n?(d.left+d.right)/2-g+e:tH(t,n,e);o=pj(r,l,s),p="left"===n?-Vz:Vz}return{titleX:a,titleY:o,maxWidth:i,rotation:p}}(this,u,n,s),c=l.titleX,f=l.titleY,d=l.maxWidth,h=l.rotation;Uj(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:aH(s,n,i),textBaseline:"middle",translation:[c,f]})}}},{key:"draw",value:function(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}},{key:"_layers",value:function(){var t=this,e=this.options,r=e.ticks&&e.ticks.z||0,i=bz(e.grid&&e.grid.z,-1),a=bz(e.border&&e.border.z,0);return this._isVisible()&&this.draw===n.prototype.draw?[{z:i,draw:function(e){t.drawBackground(),t.drawGrid(e),t.drawTitle()}},{z:a,draw:function(){t.drawBorder()}},{z:r,draw:function(e){t.drawLabels(e)}}]:[{z:r,draw:function(e){t.draw(e)}}]}},{key:"getMatchingVisibleMetas",value:function(t){var e,n,r=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",a=[];for(e=0,n=r.length;e<n;++e){var o=r[e];o[i]===this.id&&(!t||o.type===t)&&a.push(o)}return a}},{key:"_resolveTickFontOptions",value:function(t){return nB(this.options.ticks.setContext(this.getContext(t)).font)}},{key:"_maxDigits",value:function(){var t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}]),n}($V),sH=function(){function t(e,n,r){Ai(this,t),this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}return Ci(t,[{key:"isForType",value:function(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}},{key:"register",value:function(t){var e,n=Object.getPrototypeOf(t);(function(t){return"id"in t&&"defaults"in t})(n)&&(e=this.register(n));var r=this.items,i=t.id,a=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in r||(r[i]=t,function(t,e,n){var r=Az(Object.create(null),[n?Dj.get(n):{},Dj.get(e),t.defaults]);Dj.set(e,r),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((function(n){var r=n.split("."),i=r.pop(),a=[t].concat(r).join("."),o=e[n].split("."),s=o.pop(),u=o.join(".");Dj.route(a,i,u,s)}))}(e,t.defaultRoutes),t.descriptors&&Dj.describe(e,t.descriptors)}(t,a,e),this.override&&Dj.override(t.id,t.overrides)),a}},{key:"get",value:function(t){return this.items[t]}},{key:"unregister",value:function(t){var e=this.items,n=t.id,r=this.scope;n in e&&delete e[n],r&&n in Dj[r]&&(delete Dj[r][n],this.override&&delete Tj[n])}}]),t}();var uH=function(){function t(){Ai(this,t),this.controllers=new sH($B,"datasets",!0),this.elements=new sH($V,"elements"),this.plugins=new sH(Object,"plugins"),this.scales=new sH(oH,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}return Ci(t,[{key:"add",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e)}},{key:"remove",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e)}},{key:"addControllers",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,this.controllers)}},{key:"addElements",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,this.elements)}},{key:"addPlugins",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,this.plugins)}},{key:"addScales",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,this.scales)}},{key:"getController",value:function(t){return this._get(t,this.controllers,"controller")}},{key:"getElement",value:function(t){return this._get(t,this.elements,"element")}},{key:"getPlugin",value:function(t){return this._get(t,this.plugins,"plugin")}},{key:"getScale",value:function(t){return this._get(t,this.scales,"scale")}},{key:"removeControllers",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.controllers)}},{key:"removeElements",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.elements)}},{key:"removePlugins",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.plugins)}},{key:"removeScales",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.scales)}},{key:"_each",value:function(t,e,n){var r=this;mi(e).forEach((function(e){var i=n||r._getRegistryForType(e);n||i.isForType(e)||i===r.plugins&&e.id?r._exec(t,i,e):wz(e,(function(e){var i=n||r._getRegistryForType(e);r._exec(t,i,e)}))}))}},{key:"_exec",value:function(t,e,n){var r=Dz(t);xz(n["before"+r],[],n),e[t](n),xz(n["after"+r],[],n)}},{key:"_getRegistryForType",value:function(t){for(var e=0;e<this._typedRegistries.length;e++){var n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}},{key:"_get",value:function(t,e,n){var r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+n+".");return r}}]),t}(),lH=new uH,cH=function(){function t(){Ai(this,t),this._init=[]}return Ci(t,[{key:"notify",value:function(t,e,n,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));var i=r?this._descriptors(t).filter(r):this._descriptors(t),a=this._notify(i,t,e,n);return"afterDestroy"===e&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),a}},{key:"_notify",value:function(t,e,n,r){r=r||{};var i,a=zi(t);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.plugin;if(!1===xz(s[n],[e,r,o.options],s)&&r.cancelable)return!1}}catch(u){a.e(u)}finally{a.f()}return!0}},{key:"invalidate",value:function(){pz(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}},{key:"_descriptors",value:function(t){if(this._cache)return this._cache;var e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}},{key:"_createDescriptors",value:function(t,e){var n=t&&t.config,r=bz(n.options&&n.options.plugins,{}),i=function(t){for(var e={},n=[],r=Object.keys(lH.plugins.items),i=0;i<r.length;i++)n.push(lH.getPlugin(r[i]));for(var a=t.plugins||[],o=0;o<a.length;o++){var s=a[o];-1===n.indexOf(s)&&(n.push(s),e[s.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==r||e?function(t,e,n,r){var i,a=e.plugins,o=e.localIds,s=[],u=t.getContext(),l=zi(a);try{for(l.s();!(i=l.n()).done;){var c=i.value,f=c.id,d=fH(n[f],r);null!==d&&s.push({plugin:c,options:dH(t.config,{plugin:c,local:o[f]},d,u)})}}catch(h){l.e(h)}finally{l.f()}return s}(t,i,r,e):[]}},{key:"_notifyStateChanges",value:function(t){var e=this._oldCache||[],n=this._cache,r=function(t,e){return t.filter((function(t){return!e.some((function(e){return t.plugin.id===e.plugin.id}))}))};this._notify(r(e,n),t,"stop"),this._notify(r(n,e),t,"start")}}]),t}();function fH(t,e){return e||!1!==t?!0===t?{}:t:null}function dH(t,e,n,r){var i=e.plugin,a=e.local,o=t.pluginScopeKeys(i),s=t.getOptionScopes(n,o);return a&&i.defaults&&s.push(i.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hH(t,e){var n=Dj.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function pH(t,e){if("x"===t||"y"===t||"r"===t||(t=e.axis||function(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}(e.position)||t.length>1&&pH(t[0].toLowerCase(),e)))return t;throw new Error("Cannot determine type of '".concat(name,"' axis. Please provide 'axis' or 'position' option."))}function vH(t){var e=t.options||(t.options={});e.plugins=bz(e.plugins,{}),e.scales=function(t,e){var n=Tj[t.type]||{scales:{}},r=e.scales||{},i=hH(t.type,e),a=Object.create(null);return Object.keys(r).forEach((function(t){var e=r[t];if(!gz(e))return console.error("Invalid scale configuration for scale: ".concat(t));if(e._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(t));var o=pH(t,e),s=function(t,e){return t===e?"_index_":"_value_"}(o,i),u=n.scales||{};a[t]=Tz(Object.create(null),[{axis:o},e,u[o],u[s]])})),t.data.datasets.forEach((function(n){var i=n.type||t.type,o=n.indexAxis||hH(i,e),s=(Tj[i]||{}).scales||{};Object.keys(s).forEach((function(t){var e=function(t,e){var n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,o),i=n[e+"AxisID"]||e;a[i]=a[i]||Object.create(null),Tz(a[i],[{axis:e},r[i],s[t]])}))})),Object.keys(a).forEach((function(t){var e=a[t];Tz(e,[Dj.scales[e.type],Dj.scale])})),a}(t,e)}function gH(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}var mH=new Map,yH=new Set;function bH(t,e){var n=mH.get(t);return n||(n=e(),mH.set(t,n),yH.add(n)),n}var _H=function(t,e,n){var r=Rz(e,n);void 0!==r&&t.add(r)},xH=function(){function t(e){Ai(this,t),this._config=function(t){return(t=t||{}).data=gH(t.data),vH(t),t}(e),this._scopeCache=new Map,this._resolverCache=new Map}return Ci(t,[{key:"platform",get:function(){return this._config.platform}},{key:"type",get:function(){return this._config.type},set:function(t){this._config.type=t}},{key:"data",get:function(){return this._config.data},set:function(t){this._config.data=gH(t)}},{key:"options",get:function(){return this._config.options},set:function(t){this._config.options=t}},{key:"plugins",get:function(){return this._config.plugins}},{key:"update",value:function(){var t=this._config;this.clearCache(),vH(t)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(t){return bH(t,(function(){return[["datasets.".concat(t),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(t,e){return bH("".concat(t,".transition.").concat(e),(function(){return[["datasets.".concat(t,".transitions.").concat(e),"transitions.".concat(e)],["datasets.".concat(t),""]]}))}},{key:"datasetElementScopeKeys",value:function(t,e){return bH("".concat(t,"-").concat(e),(function(){return[["datasets.".concat(t,".elements.").concat(e),"datasets.".concat(t),"elements.".concat(e),""]]}))}},{key:"pluginScopeKeys",value:function(t){var e=t.id,n=this.type;return bH("".concat(n,"-plugin-").concat(e),(function(){return[["plugins.".concat(e)].concat(mi(t.additionalOptionScopes||[]))]}))}},{key:"_cachedScopes",value:function(t,e){var n=this._scopeCache,r=n.get(t);return(!r||e)&&(r=new Map,n.set(t,r)),r}},{key:"getOptionScopes",value:function(t,e,n){var r=this.options,i=this.type,a=this._cachedScopes(t,n),o=a.get(e);if(o)return o;var s=new Set;e.forEach((function(e){t&&(s.add(t),e.forEach((function(e){return _H(s,t,e)}))),e.forEach((function(t){return _H(s,r,t)})),e.forEach((function(t){return _H(s,Tj[i]||{},t)})),e.forEach((function(t){return _H(s,Dj,t)})),e.forEach((function(t){return _H(s,Mj,t)}))}));var u=Array.from(s);return 0===u.length&&u.push(Object.create(null)),yH.has(e)&&a.set(e,u),u}},{key:"chartOptionScopes",value:function(){var t=this.options,e=this.type;return[t,Tj[e]||{},Dj.datasets[e]||{},{type:e},Dj,Mj]}},{key:"resolveNamedOptions",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},a=wH(this._resolverCache,t,r),o=a.resolver,s=a.subPrefixes,u=o;if(SH(o,e)){i.$shared=!1,n=Iz(n)?n():n;var l=this.createResolver(t,n,s);u=oB(o,n,l)}var c,f=zi(e);try{for(f.s();!(c=f.n()).done;){var d=c.value;i[d]=u[d]}}catch(h){f.e(h)}finally{f.f()}return i}},{key:"createResolver",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,i=wH(this._resolverCache,t,n),a=i.resolver;return gz(e)?oB(a,e,void 0,r):a}}]),t}();function wH(t,e,n){var r=t.get(e);r||(r=new Map,t.set(e,r));var i=n.join(),a=r.get(i);return a||(a={resolver:aB(e,n),subPrefixes:n.filter((function(t){return!t.toLowerCase().includes("hover")}))},r.set(i,a)),a}var kH=function(t){return gz(t)&&Object.getOwnPropertyNames(t).reduce((function(e,n){return e||Iz(t[n])}),!1)};function SH(t,e){var n,r=sB(t),i=r.isScriptable,a=r.isIndexable,o=zi(e);try{for(o.s();!(n=o.n()).done;){var s=n.value,u=i(s),l=a(s),c=(l||u)&&t[s];if(u&&(Iz(c)||kH(c))||l&&vz(c))return!0}}catch(f){o.e(f)}finally{o.f()}return!1}var EH=["top","bottom","left","right","chartArea"];function CH(t,e){return"top"===t||"bottom"===t||-1===EH.indexOf(t)&&"x"===e}function AH(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function TH(t){var e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),xz(n&&n.onComplete,[t],e)}function MH(t){var e=t.chart,n=e.options.animation;xz(n&&n.onProgress,[t],e)}function OH(t){return bB()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var PH={},RH=function(t){var e=OH(t);return Object.values(PH).filter((function(t){return t.canvas===e})).pop()};function DH(t,e,n){for(var r=0,i=Object.keys(t);r<i.length;r++){var a=i[r],o=+a;if(o>=e){var s=t[a];delete t[a],(n>0||o>e)&&(t[o+n]=s)}}}var LH=function(){function t(e,n){var r=this;Ai(this,t);var i=this.config=new xH(n),a=OH(e),o=RH(a);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.");var s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!bB()||("undefined"==typeof OffscreenCanvas?"undefined":Fi(OffscreenCanvas))<"u"&&t instanceof OffscreenCanvas?IV:KV}(a)),this.platform.updateConfig(i);var u=this.platform.acquireContext(a,s.aspectRatio),l=u&&u.canvas,c=l&&l.height,f=l&&l.width;this.id=hz(),this.ctx=u,this.canvas=l,this.width=f,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 cH,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){var n;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((function(t){return r.update(t)}),s.resizeDelay||0),this._dataChanges=[],PH[this.id]=this,u&&l?(IB.listen(this,"complete",TH),IB.listen(this,"progress",MH),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}return Ci(t,[{key:"aspectRatio",get:function(){var t=this.options,e=t.aspectRatio,n=t.maintainAspectRatio,r=this.width,i=this.height,a=this._aspectRatio;return pz(e)?n&&a?a:i?r/i:null:e}},{key:"data",get:function(){return this.config.data},set:function(t){this.config.data=t}},{key:"options",get:function(){return this._options},set:function(t){this.config.options=t}},{key:"registry",get:function(){return lH}},{key:"_initialize",value:function(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():TB(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}},{key:"clear",value:function(){return Fj(this.canvas,this.ctx),this}},{key:"stop",value:function(){return IB.stop(this),this}},{key:"resize",value:function(t,e){IB.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}},{key:"_resize",value:function(t,e){var n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,t,e,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,TB(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),xz(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}},{key:"ensureScalesHaveIDs",value:function(){wz(this.options.scales||{},(function(t,e){t.id=e}))}},{key:"buildOrUpdateScales",value:function(){var t=this,e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce((function(t,e){return t[e]=!1,t}),{}),a=[];n&&(a=a.concat(Object.keys(n).map((function(t){var e=n[t],r=pH(t,e),i="r"===r,a="x"===r;return{options:e,dposition:i?"chartArea":a?"bottom":"left",dtype:i?"radialLinear":a?"category":"linear"}})))),wz(a,(function(n){var a=n.options,o=a.id,s=pH(o,a),u=bz(a.type,n.dtype);(void 0===a.position||CH(a.position,s)!==CH(n.dposition))&&(a.position=n.dposition),i[o]=!0;var l=null;o in r&&r[o].type===u?l=r[o]:(l=new(lH.getScale(u))({id:o,type:u,ctx:t.ctx,chart:t}),r[l.id]=l);l.init(a,e)})),wz(i,(function(t,e){t||delete r[e]})),wz(r,(function(e){RV(t,e,e.options),OV(t,e)}))}},{key:"_updateMetasets",value:function(){var t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((function(t,e){return t.index-e.index})),n>e){for(var r=e;r<n;++r)this._destroyDatasetMeta(r);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(AH("order","index"))}},{key:"_removeUnreferencedMetasets",value:function(){var t=this,e=this._metasets,n=this.data.datasets;e.length>n.length&&delete this._stacks,e.forEach((function(e,r){0===n.filter((function(t){return t===e._dataset})).length&&t._destroyDatasetMeta(r)}))}},{key:"buildOrUpdateControllers",value:function(){var t,e,n=[],r=this.data.datasets;for(this._removeUnreferencedMetasets(),t=0,e=r.length;t<e;t++){var i=r[t],a=this.getDatasetMeta(t),o=i.type||this.config.type;if(a.type&&a.type!==o&&(this._destroyDatasetMeta(t),a=this.getDatasetMeta(t)),a.type=o,a.indexAxis=i.indexAxis||hH(o,this.options),a.order=i.order||0,a.index=t,a.label=""+i.label,a.visible=this.isDatasetVisible(t),a.controller)a.controller.updateIndex(t),a.controller.linkScales();else{var s=lH.getController(o),u=Dj.datasets[o],l=u.datasetElementType,c=u.dataElementType;Object.assign(s,{dataElementType:lH.getElement(c),datasetElementType:l&&lH.getElement(l)}),a.controller=new s(this,t),n.push(a.controller)}}return this._updateMetasets(),n}},{key:"_resetElements",value:function(){var t=this;wz(this.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),this)}},{key:"reset",value:function(){this._resetElements(),this.notifyPlugins("reset")}},{key:"update",value:function(t){var e=this.config;e.update();var n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1!==this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})){var i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");for(var a=0,o=0,s=this.data.datasets.length;o<s;o++){var u=this.getDatasetMeta(o).controller,l=!r&&-1===i.indexOf(u);u.buildOrUpdateElements(l),a=Math.max(+u.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),r||wz(i,(function(t){t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(AH("z","_idx"));var c=this._active,f=this._lastEvent;f?this._eventHandler(f,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}}},{key:"_updateScales",value:function(){var t=this;wz(this.scales,(function(e){PV(t,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}},{key:"_checkEventBindings",value:function(){var t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!Nz(e,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}},{key:"_updateHiddenIndices",value:function(){var t,e=this._hiddenIndices,n=zi(this._getUniformDataChanges()||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.method,a=r.start,o=r.count;DH(e,a,"_removeElements"===i?-o:o)}}catch(s){n.e(s)}finally{n.f()}}},{key:"_getUniformDataChanges",value:function(){var t=this._dataChanges;if(t&&t.length){this._dataChanges=[];for(var e=this.data.datasets.length,n=function(e){return new Set(t.filter((function(t){return t[0]===e})).map((function(t,e){return e+","+t.splice(1).join(",")})))},r=n(0),i=1;i<e;i++)if(!Nz(r,n(i)))return;return Array.from(r).map((function(t){return t.split(",")})).map((function(t){return{method:t[1],start:+t[2],count:+t[3]}}))}}},{key:"_updateLayout",value:function(t){var e=this;if(!1!==this.notifyPlugins("beforeLayout",{cancelable:!0})){DV(this,this.width,this.height,t);var n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],wz(this.boxes,(function(t){var n;r&&"chartArea"===t.position||(t.configure&&t.configure(),(n=e._layers).push.apply(n,mi(t._layers())))}),this),this._layers.forEach((function(t,e){t._idx=e})),this.notifyPlugins("afterLayout")}}},{key:"_updateDatasets",value:function(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(var e=0,n=this.data.datasets.length;e<n;++e)this.getDatasetMeta(e).controller.configure();for(var r=0,i=this.data.datasets.length;r<i;++r)this._updateDataset(r,Iz(t)?t({datasetIndex:r}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}},{key:"_updateDataset",value:function(t,e){var n=this.getDatasetMeta(t),r={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}},{key:"render",value:function(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(IB.has(this)?this.attached&&!IB.running(this)&&IB.start(this):(this.draw(),TH({chart:this})))}},{key:"draw",value:function(){var t;if(this._resizeBeforeDraw){var e=this._resizeBeforeDraw,n=e.width,r=e.height;this._resize(n,r),this._resizeBeforeDraw=null}if(this.clear(),!(this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))){var i=this._layers;for(t=0;t<i.length&&i[t].z<=0;++t)i[t].draw(this.chartArea);for(this._drawDatasets();t<i.length;++t)i[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}}},{key:"_getSortedDatasetMetas",value:function(t){var e,n,r=this._sortedMetasets,i=[];for(e=0,n=r.length;e<n;++e){var a=r[e];(!t||a.visible)&&i.push(a)}return i}},{key:"getSortedVisibleDatasetMetas",value:function(){return this._getSortedDatasetMetas(!0)}},{key:"_drawDatasets",value:function(){if(!1!==this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})){for(var t=this.getSortedVisibleDatasetMetas(),e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(t){var e=this.ctx,n=t._clip,r=!n.disabled,i=function(t){var e=t.xScale,n=t.yScale;if(e&&n)return{left:e.left,right:e.right,top:n.top,bottom:n.bottom}}(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(r&&Vj(e,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),t.controller.draw(),r&&Hj(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}},{key:"isPointInArea",value:function(t){return Bj(t,this.chartArea,this._minPadding)}},{key:"getElementsAtEventForMode",value:function(t,e,n,r){var i=mV.modes[e];return"function"==typeof i?i(this,t,n,r):[]}},{key:"getDatasetMeta",value:function(t){var e=this.data.datasets[t],n=this._metasets,r=n.filter((function(t){return t&&t._dataset===e})).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context=iB(null,{chart:this,type:"chart"}))}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(t){var e=this.data.datasets[t];if(!e)return!1;var n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}},{key:"setDatasetVisibility",value:function(t,e){this.getDatasetMeta(t).hidden=!e}},{key:"toggleDataVisibility",value:function(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}},{key:"getDataVisibility",value:function(t){return!this._hiddenIndices[t]}},{key:"_updateVisibility",value:function(t,e,n){var r=n?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,r);Lz(e)?(i.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(i,{visible:n}),this.update((function(e){return e.datasetIndex===t?r:void 0})))}},{key:"hide",value:function(t,e){this._updateVisibility(t,e,!1)}},{key:"show",value:function(t,e){this._updateVisibility(t,e,!0)}},{key:"_destroyDatasetMeta",value:function(t){var e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}},{key:"_stop",value:function(){var t,e;for(this.stop(),IB.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}},{key:"destroy",value:function(){this.notifyPlugins("beforeDestroy");var t=this.canvas,e=this.ctx;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Fj(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete PH[this.id],this.notifyPlugins("afterDestroy")}},{key:"toBase64Image",value:function(){var t;return(t=this.canvas).toDataURL.apply(t,arguments)}},{key:"bindEvents",value:function(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}},{key:"bindUserEvents",value:function(){var t=this,e=this._listeners,n=this.platform,r=function(e,n,r){e.offsetX=n,e.offsetY=r,t._eventHandler(e)};wz(this.options.events,(function(i){return function(r,i){n.addEventListener(t,r,i),e[r]=i}(i,r)}))}},{key:"bindResponsiveEvents",value:function(){var t=this;this._responsiveListeners||(this._responsiveListeners={});var e,n=this._responsiveListeners,r=this.platform,i=function(e,i){r.addEventListener(t,e,i),n[e]=i},a=function(e,i){n[e]&&(r.removeEventListener(t,e,i),delete n[e])},o=function(e,n){t.canvas&&t.resize(e,n)},s=function n(){a("attach",n),t.attached=!0,t.resize(),i("resize",o),i("detach",e)};e=function(){t.attached=!1,a("resize",o),t._stop(),t._resize(0,0),i("attach",s)},r.isAttached(this.canvas)?s():e()}},{key:"unbindEvents",value:function(){var t=this;wz(this._listeners,(function(e,n){t.platform.removeEventListener(t,n,e)})),this._listeners={},wz(this._responsiveListeners,(function(e,n){t.platform.removeEventListener(t,n,e)})),this._responsiveListeners=void 0}},{key:"updateHoverStyle",value:function(t,e,n){var r,i,a,o=n?"set":"remove";for("dataset"===e&&this.getDatasetMeta(t[0].datasetIndex).controller["_"+o+"DatasetHoverStyle"](),i=0,a=t.length;i<a;++i){var s=(r=t[i])&&this.getDatasetMeta(r.datasetIndex).controller;s&&s[o+"HoverStyle"](r.element,r.datasetIndex,r.index)}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(t){var e=this,n=this._active||[],r=t.map((function(t){var n=t.datasetIndex,r=t.index,i=e.getDatasetMeta(n);if(!i)throw new Error("No dataset found at index "+n);return{datasetIndex:n,element:i.data[r],index:r}}));!kz(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}},{key:"notifyPlugins",value:function(t,e,n){return this._plugins.notify(this,t,e,n)}},{key:"isPluginEnabled",value:function(t){return 1===this._plugins._cache.filter((function(e){return e.plugin.id===t})).length}},{key:"_updateHoverStyles",value:function(t,e,n){var r=this.options.hover,i=function(t,e){return t.filter((function(t){return!e.some((function(e){return t.datasetIndex===e.datasetIndex&&t.index===e.index}))}))},a=i(e,t),o=n?t:i(t,e);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}},{key:"_eventHandler",value:function(t,e){var n=this,r={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=function(e){return(e.options.events||n.options.events).includes(t.native.type)};if(!1!==this.notifyPlugins("beforeEvent",r,i)){var a=this._handleEvent(t,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}}},{key:"_handleEvent",value:function(t,e,n){var r=this._active,i=void 0===r?[]:r,a=this.options,o=e,s=this._getActiveElements(t,i,n,o),u=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,r){return n&&"mouseout"!==t.type?r?e:t:null}(t,this._lastEvent,n,u);n&&(this._lastEvent=null,xz(a.onHover,[t,s,this],this),u&&xz(a.onClick,[t,s,this],this));var c=!kz(s,i);return(c||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=l,c}},{key:"_getActiveElements",value:function(t,e,n,r){if("mouseout"===t.type)return[];if(!n)return e;var i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}}],[{key:"register",value:function(){lH.add.apply(lH,arguments),IH()}},{key:"unregister",value:function(){lH.remove.apply(lH,arguments),IH()}}]),t}();function IH(){return wz(LH.instances,(function(t){return t._plugins.invalidate()}))}function NH(t,e,n,r){var i=function(t){return Qj(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),a=(n-e)/2,o=Math.min(a,r*e/2),s=function(t){var e=(n-Math.min(a,t))*r/2;return rj(t,0,Math.min(a,e))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:rj(i.innerStart,0,o),innerEnd:rj(i.innerEnd,0,o)}}function FH(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function zH(t,e,n,r,i,a){var o=e.x,s=e.y,u=e.startAngle,l=e.pixelMargin,c=e.innerRadius,f=Math.max(e.outerRadius+r+n-l,0),d=c>0?c+r+n+l:0,h=0,p=i-u;r&&(h=(p-(0!==(I=((c>0?c-r:0)+(f>0?f-r:0))/2)?p*I/(I+r):p))/2);var v=(p-Math.max(.001,p*f-n/Fz)/f)/2,g=u+v+h,m=i-v-h,y=NH(e,d,f,m-g),b=y.outerStart,_=y.outerEnd,x=y.innerStart,w=y.innerEnd,k=f-b,S=f-_,E=g+b/k,C=m-_/S,A=d+x,T=d+w,M=g+x/A,O=m-w/T;if(t.beginPath(),a){var P=(E+C)/2;if(t.arc(o,s,f,E,P),t.arc(o,s,f,P,C),_>0){var R=FH(S,C,o,s);t.arc(R.x,R.y,_,C,m+Vz)}var D=FH(T,m,o,s);if(t.lineTo(D.x,D.y),w>0){var L=FH(T,O,o,s);t.arc(L.x,L.y,w,m+Vz,O+Math.PI)}var I=(m-w/d+(g+x/d))/2;if(t.arc(o,s,d,m-w/d,I,!0),t.arc(o,s,d,I,g+x/d,!0),x>0){var N=FH(A,M,o,s);t.arc(N.x,N.y,x,M+Math.PI,g-Vz)}var F=FH(k,g,o,s);if(t.lineTo(F.x,F.y),b>0){var z=FH(k,E,o,s);t.arc(z.x,z.y,b,g-Vz,E)}}else{t.moveTo(o,s);var j=Math.cos(E)*f+o,B=Math.sin(E)*f+s;t.lineTo(j,B);var V=Math.cos(C)*f+o,H=Math.sin(C)*f+s;t.lineTo(V,H)}t.closePath()}function jH(t,e,n,r,i){var a=e.fullCircles,o=e.startAngle,s=e.circumference,u=e.options,l=u.borderWidth,c=u.borderJoinStyle,f="inner"===u.borderAlign;if(l){f?(t.lineWidth=2*l,t.lineJoin=c||"round"):(t.lineWidth=l,t.lineJoin=c||"bevel");var d=e.endAngle;if(a){zH(t,e,n,r,d,i);for(var h=0;h<a;++h)t.stroke();isNaN(s)||(d=o+(s%zz||zz))}f&&function(t,e,n){var r=e.startAngle,i=e.pixelMargin,a=e.x,o=e.y,s=e.outerRadius,u=e.innerRadius,l=i/s;t.beginPath(),t.arc(a,o,s,r-l,n+l),u>i?(l=i/u,t.arc(a,o,u,n+l,r-l,!0)):t.arc(a,o,i,n+Vz,r-Vz),t.closePath(),t.clip()}(t,e,d),a||(zH(t,e,n,r,d,i),t.stroke())}}wL(LH,"defaults",Dj),wL(LH,"instances",PH),wL(LH,"overrides",Tj),wL(LH,"registry",lH),wL(LH,"version","4.2.0"),wL(LH,"getChart",RH);var BH=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).options=void 0,r.circumference=void 0,r.startAngle=void 0,r.endAngle=void 0,r.innerRadius=void 0,r.outerRadius=void 0,r.pixelMargin=0,r.fullCircles=0,t&&Object.assign(Pi(r),t),r}return Ci(n,[{key:"inRange",value:function(t,e,n){var r=Jz(this.getProps(["x","y"],n),{x:t,y:e}),i=r.angle,a=r.distance,o=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),s=o.startAngle,u=o.endAngle,l=o.innerRadius,c=o.outerRadius,f=o.circumference,d=this.options.spacing/2,h=bz(f,u-s)>=zz||nj(i,s,u),p=ij(a,l+d,c+d);return h&&p}},{key:"getCenterPoint",value:function(t){var e=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),n=e.x,r=e.y,i=e.startAngle,a=e.endAngle,o=e.innerRadius,s=e.outerRadius,u=this.options,l=u.offset,c=(i+a)/2,f=(o+s+u.spacing+l)/2;return{x:n+Math.cos(c)*f,y:r+Math.sin(c)*f}}},{key:"tooltipPosition",value:function(t){return this.getCenterPoint(t)}},{key:"draw",value:function(t){var e=this.options,n=this.circumference,r=(e.offset||0)/4,i=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>zz?Math.floor(n/zz):0,!(0===n||this.innerRadius<0||this.outerRadius<0)){t.save();var o=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(o)*r,Math.sin(o)*r);var s=r*(1-Math.sin(Math.min(Fz,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,n,r,i){var a=e.fullCircles,o=e.startAngle,s=e.circumference,u=e.endAngle;if(a){zH(t,e,n,r,u,i);for(var l=0;l<a;++l)t.fill();isNaN(s)||(u=o+(s%zz||zz))}zH(t,e,n,r,u,i),t.fill()}(t,this,s,i,a),jH(t,this,s,i,a),t.restore()}}}]),n}($V);function VH(t,e){var n,r,i,a,o,s=t.getProps(["x","y","base","width","height"],e),u=s.x,l=s.y,c=s.base,f=s.width,d=s.height;return t.horizontal?(o=d/2,n=Math.min(u,c),r=Math.max(u,c),i=l-o,a=l+o):(n=u-(o=f/2),r=u+o,i=Math.min(l,c),a=Math.max(l,c)),{left:n,top:i,right:r,bottom:a}}function HH(t,e,n,r){return t?0:rj(e,n,r)}function UH(t){var e=VH(t),n=e.right-e.left,r=e.bottom-e.top,i=function(t,e,n){var r=t.options.borderWidth,i=t.borderSkipped,a=Jj(r);return{t:HH(i.top,a.top,0,n),r:HH(i.right,a.right,0,e),b:HH(i.bottom,a.bottom,0,n),l:HH(i.left,a.left,0,e)}}(t,n/2,r/2),a=function(t,e,n){var r=t.getProps(["enableBorderRadius"]).enableBorderRadius,i=t.options.borderRadius,a=tB(i),o=Math.min(e,n),s=t.borderSkipped,u=r||gz(i);return{topLeft:HH(!u||s.top||s.left,a.topLeft,0,o),topRight:HH(!u||s.top||s.right,a.topRight,0,o),bottomLeft:HH(!u||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:HH(!u||s.bottom||s.right,a.bottomRight,0,o)}}(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:a},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,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function WH(t,e,n,r){var i=null===e,a=null===n,o=t&&!(i&&a)&&VH(t,r);return o&&(i||ij(e,o.left,o.right))&&(a||ij(n,o.top,o.bottom))}function YH(t,e){t.rect(e.x,e.y,e.w,e.h)}function GH(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,a=(t.x+t.w!==n.x+n.w?e:0)-r,o=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+r,y:t.y+i,w:t.w+a,h:t.h+o,radius:t.radius}}wL(BH,"id","arc"),wL(BH,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),wL(BH,"defaultRoutes",{backgroundColor:"backgroundColor"});var qH=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,r.inflateAmount=void 0,t&&Object.assign(Pi(r),t),r}return Ci(n,[{key:"draw",value:function(t){var e=this.inflateAmount,n=this.options,r=n.borderColor,i=n.backgroundColor,a=UH(this),o=a.inner,s=a.outer,u=function(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}(s.radius)?qj:YH;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),u(t,GH(s,e,o)),t.clip(),u(t,GH(o,-e,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),u(t,GH(o,e)),t.fillStyle=i,t.fill(),t.restore()}},{key:"inRange",value:function(t,e,n){return WH(this,t,e,n)}},{key:"inXRange",value:function(t,e){return WH(this,t,null,e)}},{key:"inYRange",value:function(t,e){return WH(this,null,t,e)}},{key:"getCenterPoint",value:function(t){var e=this.getProps(["x","y","base","horizontal"],t),n=e.x,r=e.y,i=e.base,a=e.horizontal;return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}},{key:"getRange",value:function(t){return"x"===t?this.width/2:this.height/2}}]),n}($V);wL(qH,"id","bar"),wL(qH,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),wL(qH,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var ZH=function(t,e){var n=t.boxHeight,r=void 0===n?e:n,i=t.boxWidth,a=void 0===i?e:i;return t.usePointStyle&&(r=Math.min(r,e),a=t.pointStyleWidth||Math.min(a,e)),{boxWidth:a,boxHeight:r,itemHeight:Math.max(e,r)}},XH=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=t.chart,r.options=t.options,r.ctx=t.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Ci(n,[{key:"update",value:function(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}},{key:"setDimensions",value:function(){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)}},{key:"buildLabels",value:function(){var t=this,e=this.options.labels||{},n=xz(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),e.sort&&(n=n.sort((function(n,r){return e.sort(n,r,t.chart.data)}))),this.options.reverse&&n.reverse(),this.legendItems=n}},{key:"fit",value:function(){var t=this.options,e=this.ctx;if(t.display){var n,r,i=t.labels,a=nB(i.font),o=a.size,s=this._computeTitleHeight(),u=ZH(i,o),l=u.boxWidth,c=u.itemHeight;e.font=a.string,this.isHorizontal()?(n=this.maxWidth,r=this._fitRows(s,o,l,c)+10):(r=this.maxHeight,n=this._fitCols(s,a,l,c)+10),this.width=Math.min(n,t.maxWidth||this.maxWidth),this.height=Math.min(r,t.maxHeight||this.maxHeight)}else this.width=this.height=0}},{key:"_fitRows",value:function(t,e,n,r){var i=this.ctx,a=this.maxWidth,o=this.options.labels.padding,s=this.legendHitBoxes=[],u=this.lineWidths=[0],l=r+o,c=t;i.textAlign="left",i.textBaseline="middle";var f=-1,d=-l;return this.legendItems.forEach((function(t,h){var p=n+e/2+i.measureText(t.text).width;(0===h||u[u.length-1]+p+2*o>a)&&(c+=l,u[u.length-(h>0?0:1)]=0,d+=l,f++),s[h]={left:0,top:d,row:f,width:p,height:r},u[u.length-1]+=p+o})),c}},{key:"_fitCols",value:function(t,e,n,r){var i=this.ctx,a=this.maxHeight,o=this.options.labels.padding,s=this.legendHitBoxes=[],u=this.columnSizes=[],l=a-t,c=o,f=0,d=0,h=0,p=0;return this.legendItems.forEach((function(t,a){var v=function(t,e,n,r,i){var a=function(t,e,n,r){var i=t.text;return i&&"string"!=typeof i&&(i=i.reduce((function(t,e){return t.length>e.length?t:e}))),e+n.size/2+r.measureText(i).width}(r,t,e,n),o=function(t,e,n){var r=t;return"string"!=typeof e.text&&(r=KH(e,n)),r}(i,r,e.lineHeight);return{itemWidth:a,itemHeight:o}}(n,e,i,t,r),g=v.itemWidth,m=v.itemHeight;a>0&&d+m+2*o>l&&(c+=f+o,u.push({width:f,height:d}),h+=f+o,p++,f=d=0),s[a]={left:h,top:d,col:p,width:g,height:m},f=Math.max(f,g),d+=m+o})),c+=f,u.push({width:f,height:d}),c}},{key:"adjustHitBoxes",value:function(){if(this.options.display){var t=this._computeTitleHeight(),e=this.legendHitBoxes,n=this.options,r=n.align,i=n.labels.padding,a=PB(n.rtl,this.left,this.width);if(this.isHorizontal()){var o,s=0,u=pj(r,this.left+i,this.right-this.lineWidths[s]),l=zi(e);try{for(l.s();!(o=l.n()).done;){var c=o.value;s!==c.row&&(s=c.row,u=pj(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(u),c.width),u+=c.width+i}}catch(g){l.e(g)}finally{l.f()}}else{var f,d=0,h=pj(r,this.top+t+i,this.bottom-this.columnSizes[d].height),p=zi(e);try{for(p.s();!(f=p.n()).done;){var v=f.value;v.col!==d&&(d=v.col,h=pj(r,this.top+t+i,this.bottom-this.columnSizes[d].height)),v.top=h,v.left+=this.left+i,v.left=a.leftForLtr(a.x(v.left),v.width),h+=v.height+i}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){if(this.options.display){var t=this.ctx;Vj(t,this),this._draw(),Hj(t)}}},{key:"_draw",value:function(){var t,e=this,n=this.options,r=this.columnSizes,i=this.lineWidths,a=this.ctx,o=n.align,s=n.labels,u=Dj.color,l=PB(n.rtl,this.left,this.width),c=nB(s.font),f=s.padding,d=c.size,h=d/2;this.drawTitle(),a.textAlign=l.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;var p=ZH(s,d),v=p.boxWidth,g=p.boxHeight,m=p.itemHeight,y=this.isHorizontal(),b=this._computeTitleHeight();t=y?{x:pj(o,this.left+f,this.right-i[0]),y:this.top+f+b,line:0}:{x:this.left+f,y:pj(o,this.top+b+f,this.bottom-r[0].height),line:0},RB(this.ctx,n.textDirection);var _=m+f;this.legendItems.forEach((function(p,x){a.strokeStyle=p.fontColor,a.fillStyle=p.fontColor;var w=a.measureText(p.text).width,k=l.textAlign(p.textAlign||(p.textAlign=s.textAlign)),S=v+h+w,E=t.x,C=t.y;if(l.setWidth(e.width),y?x>0&&E+S+f>e.right&&(C=t.y+=_,t.line++,E=t.x=pj(o,e.left+f,e.right-i[t.line])):x>0&&C+_>e.bottom&&(E=t.x=E+r[t.line].width+f,t.line++,C=t.y=pj(o,e.top+b+f,e.bottom-r[t.line].height)),function(t,e,n){if(!(isNaN(v)||v<=0||isNaN(g)||g<0)){a.save();var r=bz(n.lineWidth,1);if(a.fillStyle=bz(n.fillStyle,u),a.lineCap=bz(n.lineCap,"butt"),a.lineDashOffset=bz(n.lineDashOffset,0),a.lineJoin=bz(n.lineJoin,"miter"),a.lineWidth=r,a.strokeStyle=bz(n.strokeStyle,u),a.setLineDash(bz(n.lineDash,[])),s.usePointStyle){var i={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},o=l.xPlus(t,v/2);jj(a,i,o,e+h,s.pointStyleWidth&&v)}else{var c=e+Math.max((d-g)/2,0),f=l.leftForLtr(t,v),p=tB(n.borderRadius);a.beginPath(),Object.values(p).some((function(t){return 0!==t}))?qj(a,{x:f,y:c,w:v,h:g,radius:p}):a.rect(f,c,v,g),a.fill(),0!==r&&a.stroke()}a.restore()}}(l.x(E),C,p),E=function(t,e,n,r){return t===(r?"left":"right")?n:"center"===t?(e+n)/2:e}(k,E+v+h,y?E+S:e.right,n.rtl),function(t,e,n){Uj(a,n.text,t,e+m/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(E),C,p),y)t.x+=S+f;else if("string"!=typeof p.text){var A=c.lineHeight;t.y+=KH(p,A)}else t.y+=_})),DB(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var t=this.options,e=t.title,n=nB(e.font),r=eB(e.padding);if(e.display){var i,a=PB(t.rtl,this.left,this.width),o=this.ctx,s=e.position,u=n.size/2,l=r.top+u,c=this.left,f=this.width;if(this.isHorizontal())f=Math.max.apply(Math,mi(this.lineWidths)),i=this.top+l,c=pj(t.align,c,this.right-f);else{var d=this.columnSizes.reduce((function(t,e){return Math.max(t,e.height)}),0);i=l+pj(t.align,this.top,this.bottom-d-t.labels.padding-this._computeTitleHeight())}var h=pj(s,c,c+f);o.textAlign=a.textAlign(hj(s)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=n.string,Uj(o,e.text,h,i,n)}}},{key:"_computeTitleHeight",value:function(){var t=this.options.title,e=nB(t.font),n=eB(t.padding);return t.display?e.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(t,e){var n,r,i;if(ij(t,this.left,this.right)&&ij(e,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(ij(t,(r=i[n]).left,r.left+r.width)&&ij(e,r.top,r.top+r.height))return this.legendItems[n];return null}},{key:"handleEvent",value:function(t){var e=this.options;if(function(t,e){return!(("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)&&(!e.onClick||"click"!==t&&"mouseup"!==t))}(t.type,e)){var n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){var r=this._hoveredItem,i=function(t,e){return null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index}(r,n);r&&!i&&xz(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!i&&xz(e.onHover,[t,n,this],this)}else n&&xz(e.onClick,[t,n,this],this)}}}]),n}($V);function KH(t,e){return e*(t.text?t.text.length+.5:0)}var $H={id:"legend",_element:XH,start:function(t,e,n){var r=t.legend=new XH({ctx:t.ctx,options:n,chart:t});RV(t,r,n),OV(t,r)},stop:function(t){PV(t,t.legend),delete t.legend},beforeUpdate:function(t,e,n){var r=t.legend;RV(t,r,n),r.options=n},afterUpdate:function(t){var e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent:function(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick:function(t,e,n){var 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:function(t){return t.chart.options.color},boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,n=t.legend.options.labels,r=n.usePointStyle,i=n.pointStyle,a=n.textAlign,o=n.color,s=n.useBorderRadius,u=n.borderRadius;return t._getSortedDatasetMetas().map((function(t){var n=t.controller.getStyle(r?0:void 0),l=eB(n.borderWidth);return{text:e[t.index].label,fillStyle:n.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:n.borderColor,pointStyle:i||n.pointStyle,rotation:n.rotation,textAlign:a||n.textAlign,borderRadius:s&&(u||n.borderRadius),datasetIndex:t.index}}),this)}},title:{color:function(t){return t.chart.options.color},display:!1,position:"center",text:""}},descriptors:{_scriptable:function(t){return!t.startsWith("on")},labels:{_scriptable:function(t){return!["generateLabels","filter","sort"].includes(t)}}}},QH=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).chart=t.chart,r.options=t.options,r.ctx=t.ctx,r._padding=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Ci(n,[{key:"update",value:function(t,e){var n=this.options;if(this.left=0,this.top=0,n.display){this.width=this.right=t,this.height=this.bottom=e;var r=vz(n.text)?n.text.length:1;this._padding=eB(n.padding);var i=r*nB(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}else this.width=this.height=this.right=this.bottom=0}},{key:"isHorizontal",value:function(){var t=this.options.position;return"top"===t||"bottom"===t}},{key:"_drawArgs",value:function(t){var e,n,r,i=this.top,a=this.left,o=this.bottom,s=this.right,u=this.options,l=u.align,c=0;return this.isHorizontal()?(n=pj(l,a,s),r=i+t,e=s-a):("left"===u.position?(n=a+t,r=pj(l,o,i),c=-.5*Fz):(n=s-t,r=pj(l,i,o),c=.5*Fz),e=o-i),{titleX:n,titleY:r,maxWidth:e,rotation:c}}},{key:"draw",value:function(){var t=this.ctx,e=this.options;if(e.display){var n=nB(e.font),r=n.lineHeight/2+this._padding.top,i=this._drawArgs(r),a=i.titleX,o=i.titleY,s=i.maxWidth,u=i.rotation;Uj(t,e.text,0,0,n,{color:e.color,maxWidth:s,rotation:u,textAlign:hj(e.align),textBaseline:"middle",translation:[a,o]})}}}]),n}($V);var JH={id:"title",_element:QH,start:function(t,e,n){!function(t,e){var n=new QH({ctx:t.ctx,options:e,chart:t});RV(t,n,e),OV(t,n),t.titleBlock=n}(t,n)},stop:function(t){var e=t.titleBlock;PV(t,e),delete t.titleBlock},beforeUpdate:function(t,e,n){var r=t.titleBlock;RV(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}},tU={average:function(t){if(!t.length)return!1;var e,n,r=0,i=0,a=0;for(e=0,n=t.length;e<n;++e){var o=t[e].element;if(o&&o.hasValue()){var s=o.tooltipPosition();r+=s.x,i+=s.y,++a}}return{x:r/a,y:i/a}},nearest:function(t,e){if(!t.length)return!1;var n,r,i,a=e.x,o=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){var u=t[n].element;if(u&&u.hasValue()){var l=tj(e,u.getCenterPoint());l<s&&(s=l,i=u)}}if(i){var c=i.tooltipPosition();a=c.x,o=c.y}return{x:a,y:o}}};function eU(t,e){return e&&(vz(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function nU(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function rU(t,e){var n=e.element,r=e.datasetIndex,i=e.index,a=t.getDatasetMeta(r).controller,o=a.getLabelAndValue(i),s=o.label,u=o.value;return{chart:t,label:s,parsed:a.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:u,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function iU(t,e){var n=t.chart.ctx,r=t.body,i=t.footer,a=t.title,o=e.boxWidth,s=e.boxHeight,u=nB(e.bodyFont),l=nB(e.titleFont),c=nB(e.footerFont),f=a.length,d=i.length,h=r.length,p=eB(e.padding),v=p.height,g=0,m=r.reduce((function(t,e){return t+e.before.length+e.lines.length+e.after.length}),0);(m+=t.beforeBody.length+t.afterBody.length,f&&(v+=f*l.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),m)&&(v+=h*(e.displayColors?Math.max(s,u.lineHeight):u.lineHeight)+(m-h)*u.lineHeight+(m-1)*e.bodySpacing);d&&(v+=e.footerMarginTop+d*c.lineHeight+(d-1)*e.footerSpacing);var y=0,b=function(t){g=Math.max(g,n.measureText(t).width+y)};return n.save(),n.font=l.string,wz(t.title,b),n.font=u.string,wz(t.beforeBody.concat(t.afterBody),b),y=e.displayColors?o+2+e.boxPadding:0,wz(r,(function(t){wz(t.before,b),wz(t.lines,b),wz(t.after,b)})),y=0,n.font=c.string,wz(t.footer,b),n.restore(),{width:g+=p.width,height:v}}function aU(t,e,n,r){var i=n.x,a=n.width,o=t.width,s=t.chartArea,u=s.left,l=s.right,c="center";return"center"===r?c=i<=(u+l)/2?"left":"right":i<=a/2?c="left":i>=o-a/2&&(c="right"),function(t,e,n,r){var i=r.x,a=r.width,o=n.caretSize+n.caretPadding;if("left"===t&&i+a+o>e.width||"right"===t&&i-a-o<0)return!0}(c,t,e,n)&&(c="center"),c}function oU(t,e,n){var r=n.yAlign||e.yAlign||function(t,e){var n=e.y,r=e.height;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||aU(t,e,n,r),yAlign:r}}function sU(t,e,n,r){var i=t.caretSize,a=t.caretPadding,o=t.cornerRadius,s=n.xAlign,u=n.yAlign,l=i+a,c=tB(o),f=c.topLeft,d=c.topRight,h=c.bottomLeft,p=c.bottomRight,v=function(t,e){var n=t.x,r=t.width;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}(e,s),g=function(t,e,n){var r=t.y,i=t.height;return"top"===e?r+=n:r-="bottom"===e?i+n:i/2,r}(e,u,l);return"center"===u?"left"===s?v+=l:"right"===s&&(v-=l):"left"===s?v-=Math.max(f,h)+i:"right"===s&&(v+=Math.max(d,p)+i),{x:rj(v,0,r.width-e.width),y:rj(g,0,r.height-e.height)}}function uU(t,e,n){var r=eB(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function lU(t){return eU([],nU(t))}function cU(t,e){var n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}var fU={beforeTitle:dz,title:function(t){if(t.length>0){var e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:dz,beforeBody:dz,beforeLabel:dz,label:function(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;var e=t.dataset.label||"";e&&(e+=": ");var n=t.formattedValue;return pz(n)||(e+=n),e},labelColor:function(t){var 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:function(){return this.options.bodyColor},labelPointStyle:function(t){var e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:dz,afterBody:dz,beforeFooter:dz,footer:dz,afterFooter:dz};function dU(t,e,n,r){var i=t[e].call(n,r);return Fi(i)>"u"?fU[e].call(n,r):i}var hU=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).opacity=0,r._active=[],r._eventPosition=void 0,r._size=void 0,r._cachedAnimations=void 0,r._tooltipItems=[],r.$animations=void 0,r.$context=void 0,r.chart=t.chart,r.options=t.options,r.dataPoints=void 0,r.title=void 0,r.beforeBody=void 0,r.body=void 0,r.afterBody=void 0,r.footer=void 0,r.xAlign=void 0,r.yAlign=void 0,r.x=void 0,r.y=void 0,r.height=void 0,r.width=void 0,r.caretX=void 0,r.caretY=void 0,r.labelColors=void 0,r.labelPointStyles=void 0,r.labelTextColors=void 0,r}return Ci(n,[{key:"initialize",value:function(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}},{key:"_resolveAnimations",value:function(){var t=this._cachedAnimations;if(t)return t;var e=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&e.options.animation&&n.animations,i=new jB(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}},{key:"getContext",value:function(){return this.$context||(this.$context=function(t,e,n){return iB(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}},{key:"getTitle",value:function(t,e){var n=e.callbacks,r=dU(n,"beforeTitle",this,t),i=dU(n,"title",this,t),a=dU(n,"afterTitle",this,t),o=[];return o=eU(o,nU(r)),o=eU(o,nU(i)),o=eU(o,nU(a))}},{key:"getBeforeBody",value:function(t,e){return lU(dU(e.callbacks,"beforeBody",this,t))}},{key:"getBody",value:function(t,e){var n=this,r=e.callbacks,i=[];return wz(t,(function(t){var e={before:[],lines:[],after:[]},a=cU(r,t);eU(e.before,nU(dU(a,"beforeLabel",n,t))),eU(e.lines,dU(a,"label",n,t)),eU(e.after,nU(dU(a,"afterLabel",n,t))),i.push(e)})),i}},{key:"getAfterBody",value:function(t,e){return lU(dU(e.callbacks,"afterBody",this,t))}},{key:"getFooter",value:function(t,e){var n=e.callbacks,r=dU(n,"beforeFooter",this,t),i=dU(n,"footer",this,t),a=dU(n,"afterFooter",this,t),o=[];return o=eU(o,nU(r)),o=eU(o,nU(i)),o=eU(o,nU(a))}},{key:"_createItems",value:function(t){var e,n,r=this,i=this._active,a=this.chart.data,o=[],s=[],u=[],l=[];for(e=0,n=i.length;e<n;++e)l.push(rU(this.chart,i[e]));return t.filter&&(l=l.filter((function(e,n,r){return t.filter(e,n,r,a)}))),t.itemSort&&(l=l.sort((function(e,n){return t.itemSort(e,n,a)}))),wz(l,(function(e){var n=cU(t.callbacks,e);o.push(dU(n,"labelColor",r,e)),s.push(dU(n,"labelPointStyle",r,e)),u.push(dU(n,"labelTextColor",r,e))})),this.labelColors=o,this.labelPointStyles=s,this.labelTextColors=u,this.dataPoints=l,l}},{key:"update",value:function(t,e){var n,r=this.options.setContext(this.getContext()),i=this._active,a=[];if(i.length){var o=tU[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);var s=this._size=iU(this,r),u=Object.assign({},o,s),l=oU(this.chart,r,u),c=sU(r,u,l,this.chart);this.xAlign=l.xAlign,this.yAlign=l.yAlign,n={opacity:1,x:c.x,y:c.y,width:s.width,height:s.height,caretX:o.x,caretY:o.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=a,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:e})}},{key:"drawCaret",value:function(t,e,n,r){var i=this.getCaretPosition(t,n,r);e.lineTo(i.x1,i.y1),e.lineTo(i.x2,i.y2),e.lineTo(i.x3,i.y3)}},{key:"getCaretPosition",value:function(t,e,n){var r,i,a,o,s,u,l=this.xAlign,c=this.yAlign,f=n.caretSize,d=tB(n.cornerRadius),h=d.topLeft,p=d.topRight,v=d.bottomLeft,g=d.bottomRight,m=t.x,y=t.y,b=e.width,_=e.height;return"center"===c?(s=y+_/2,"left"===l?(i=(r=m)-f,o=s+f,u=s-f):(i=(r=m+b)+f,o=s-f,u=s+f),a=r):(i="left"===l?m+Math.max(h,v)+f:"right"===l?m+b-Math.max(p,g)-f:this.caretX,"top"===c?(s=(o=y)-f,r=i-f,a=i+f):(s=(o=y+_)+f,r=i+f,a=i-f),u=o),{x1:r,x2:i,x3:a,y1:o,y2:s,y3:u}}},{key:"drawTitle",value:function(t,e,n){var r,i,a,o=this.title,s=o.length;if(s){var u=PB(n.rtl,this.x,this.width);for(t.x=uU(this,n.titleAlign,n),e.textAlign=u.textAlign(n.titleAlign),e.textBaseline="middle",r=nB(n.titleFont),i=n.titleSpacing,e.fillStyle=n.titleColor,e.font=r.string,a=0;a<s;++a)e.fillText(o[a],u.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i,a+1===s&&(t.y+=n.titleMarginBottom-i)}}},{key:"_drawColorBox",value:function(t,e,n,r,i){var a=this.labelColors[n],o=this.labelPointStyles[n],s=i.boxHeight,u=i.boxWidth,l=i.boxPadding,c=nB(i.bodyFont),f=uU(this,"left",i),d=r.x(f),h=s<c.lineHeight?(c.lineHeight-s)/2:0,p=e.y+h;if(i.usePointStyle){var v={radius:Math.min(u,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},g=r.leftForLtr(d,u)+u/2,m=p+s/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,zj(t,v,g,m),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,zj(t,v,g,m)}else{t.lineWidth=gz(a.borderWidth)?Math.max.apply(Math,mi(Object.values(a.borderWidth))):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;var y=r.leftForLtr(d,u-l),b=r.leftForLtr(r.xPlus(d,1),u-l-2),_=tB(a.borderRadius);Object.values(_).some((function(t){return 0!==t}))?(t.beginPath(),t.fillStyle=i.multiKeyBackground,qj(t,{x:y,y:p,w:u,h:s,radius:_}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),qj(t,{x:b,y:p+1,w:u-2,h:s-2,radius:_}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(y,p,u,s),t.strokeRect(y,p,u,s),t.fillStyle=a.backgroundColor,t.fillRect(b,p+1,u-2,s-2))}t.fillStyle=this.labelTextColors[n]}},{key:"drawBody",value:function(t,e,n){var r,i,a,o,s,u,l,c=this.body,f=n.bodySpacing,d=n.bodyAlign,h=n.displayColors,p=n.boxHeight,v=n.boxWidth,g=n.boxPadding,m=nB(n.bodyFont),y=m.lineHeight,b=0,_=PB(n.rtl,this.x,this.width),x=function(n){e.fillText(n,_.x(t.x+b),t.y+y/2),t.y+=y+f},w=_.textAlign(d);for(e.textAlign=d,e.textBaseline="middle",e.font=m.string,t.x=uU(this,w,n),e.fillStyle=n.bodyColor,wz(this.beforeBody,x),b=h&&"right"!==w?"center"===d?v/2+g:v+2+g:0,o=0,u=c.length;o<u;++o){for(r=c[o],i=this.labelTextColors[o],e.fillStyle=i,wz(r.before,x),a=r.lines,h&&a.length&&(this._drawColorBox(e,t,o,_,n),y=Math.max(m.lineHeight,p)),s=0,l=a.length;s<l;++s)x(a[s]),y=m.lineHeight;wz(r.after,x)}b=0,y=m.lineHeight,wz(this.afterBody,x),t.y-=f}},{key:"drawFooter",value:function(t,e,n){var r,i,a=this.footer,o=a.length;if(o){var s=PB(n.rtl,this.x,this.width);for(t.x=uU(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",r=nB(n.footerFont),e.fillStyle=n.footerColor,e.font=r.string,i=0;i<o;++i)e.fillText(a[i],s.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n.footerSpacing}}},{key:"drawBackground",value:function(t,e,n,r){var i=this.xAlign,a=this.yAlign,o=t.x,s=t.y,u=n.width,l=n.height,c=tB(r.cornerRadius),f=c.topLeft,d=c.topRight,h=c.bottomLeft,p=c.bottomRight;e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(o+f,s),"top"===a&&this.drawCaret(t,e,n,r),e.lineTo(o+u-d,s),e.quadraticCurveTo(o+u,s,o+u,s+d),"center"===a&&"right"===i&&this.drawCaret(t,e,n,r),e.lineTo(o+u,s+l-p),e.quadraticCurveTo(o+u,s+l,o+u-p,s+l),"bottom"===a&&this.drawCaret(t,e,n,r),e.lineTo(o+h,s+l),e.quadraticCurveTo(o,s+l,o,s+l-h),"center"===a&&"left"===i&&this.drawCaret(t,e,n,r),e.lineTo(o,s+f),e.quadraticCurveTo(o,s,o+f,s),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}},{key:"_updateAnimationTarget",value:function(t){var e=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){var a=tU[t.position].call(this,this._active,this._eventPosition);if(!a)return;var o=this._size=iU(this,t),s=Object.assign({},a,this._size),u=oU(e,t,s),l=sU(t,s,u,e);(r._to!==l.x||i._to!==l.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=o.width,this.height=o.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,l))}}},{key:"_willRender",value:function(){return!!this.opacity}},{key:"draw",value:function(t){var e=this.options.setContext(this.getContext()),n=this.opacity;if(n){this._updateAnimationTarget(e);var r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;var a=eB(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=n,this.drawBackground(i,t,r,e),RB(t,e.textDirection),i.y+=a.top,this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),DB(t,e.textDirection),t.restore())}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(t,e){var n=this,r=this._active,i=t.map((function(t){var e=t.datasetIndex,r=t.index,i=n.chart.getDatasetMeta(e);if(!i)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:i.data[r],index:r}})),a=!kz(r,i),o=this._positionChanged(i,e);(a||o)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}},{key:"handleEvent",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;var r=this.options,i=this._active||[],a=this._getActiveElements(t,i,e,n),o=this._positionChanged(a,t),s=e||!kz(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}},{key:"_getActiveElements",value:function(t,e,n,r){var i=this.options;if("mouseout"===t.type)return[];if(!r)return e;var a=this.chart.getElementsAtEventForMode(t,i.mode,i,n);return i.reverse&&a.reverse(),a}},{key:"_positionChanged",value:function(t,e){var n=this.caretX,r=this.caretY,i=this.options,a=tU[i.position].call(this,t,e);return!1!==a&&(n!==a.x||r!==a.y)}}]),n}($V);wL(hU,"positioners",tU);var pU={id:"tooltip",_element:hU,positioners:tU,afterInit:function(t,e,n){n&&(t.tooltip=new hU({chart:t,options:n}))},beforeUpdate:function(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset:function(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw:function(t){var e=t.tooltip;if(e&&e._willRender()){var n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",_i(_i({},n),{},{cancelable:!0})))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent:function(t,e){if(t.tooltip){var 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:function(t,e){return e.bodyFont.size},boxWidth:function(t,e){return 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:fU},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:function(t){return"filter"!==t&&"itemSort"!==t&&"external"!==t},_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function vU(t,e,n,r){var i=t.indexOf(e);return-1===i?function(t,e,n,r){return"string"==typeof e?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n}(t,e,n,r):i!==t.lastIndexOf(e)?n:i}function gU(t){var e=this.getLabels();return t>=0&&t<e.length?e[t]:t}var mU=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t))._startValue=void 0,r._valueRange=0,r._addedLabels=[],r}return Ci(n,[{key:"init",value:function(t){var e=this._addedLabels;if(e.length){var r,i=this.getLabels(),a=zi(e);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.index,u=o.label;i[s]===u&&i.splice(s,1)}}catch(l){a.e(l)}finally{a.f()}this._addedLabels=[]}vi(Ni(n.prototype),"init",this).call(this,t)}},{key:"parse",value:function(t,e){if(pz(t))return null;var n=this.getLabels();return function(t,e){return null===t?null:rj(Math.round(t),0,e)}(e=isFinite(e)&&n[e]===t?e:vU(n,t,bz(e,t),this._addedLabels),n.length-1)}},{key:"determineDataLimits",value:function(){var t=this.getUserBounds(),e=t.minDefined,n=t.maxDefined,r=this.getMinMax(!0),i=r.min,a=r.max;"ticks"===this.options.bounds&&(e||(i=0),n||(a=this.getLabels().length-1)),this.min=i,this.max=a}},{key:"buildTicks",value:function(){var t=this.min,e=this.max,n=this.options.offset,r=[],i=this.getLabels();i=0===t&&e===i.length-1?i:i.slice(t,e+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(var a=t;a<=e;a++)r.push({value:a});return r}},{key:"getLabelForValue",value:function(t){return gU.call(this,t)}},{key:"configure",value:function(){vi(Ni(n.prototype),"configure",this).call(this),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}},{key:"getPixelForValue",value:function(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}},{key:"getPixelForTick",value:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}},{key:"getValueForPixel",value:function(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}},{key:"getBasePixel",value:function(){return this.bottom}}]),n}(oH);function yU(t,e){var n,r,i,a,o=[],s=t.bounds,u=t.step,l=t.min,c=t.max,f=t.precision,d=t.count,h=t.maxTicks,p=t.maxDigits,v=t.includeBounds,g=u||1,m=h-1,y=e.min,b=e.max,_=!pz(l),x=!pz(c),w=!pz(d),k=(b-y)/(p+1),S=qz((b-y)/m/g)*g;if(S<1e-14&&!_&&!x)return[{value:y},{value:b}];(a=Math.ceil(b/S)-Math.floor(y/S))>m&&(S=qz(a*S/m/g)*g),pz(f)||(n=Math.pow(10,f),S=Math.ceil(S*n)/n),"ticks"===s?(r=Math.floor(y/S)*S,i=Math.ceil(b/S)*S):(r=y,i=b),_&&x&&u&&function(t,e){var n=Math.round(t);return n-e<=t&&n+e>=t}((c-l)/u,S/1e3)?(S=(c-l)/(a=Math.round(Math.min((c-l)/S,h))),r=l,i=c):w?S=((i=x?c:i)-(r=_?l:r))/(a=d-1):a=Gz(a=(i-r)/S,Math.round(a),S/1e3)?Math.round(a):Math.ceil(a);var E=Math.max(Qz(S),Qz(r));n=Math.pow(10,pz(f)?E:f),r=Math.round(r*n)/n,i=Math.round(i*n)/n;var C=0;for(_&&(v&&r!==l?(o.push({value:l}),r<l&&C++,Gz(Math.round((r+C*S)*n)/n,l,bU(l,k,t))&&C++):r<l&&C++);C<a;++C)o.push({value:Math.round((r+C*S)*n)/n});return x&&v&&i!==c?o.length&&Gz(o[o.length-1].value,c,bU(c,k,t))?o[o.length-1].value=c:o.push({value:c}):(!x||i===c)&&o.push({value:i}),o}function bU(t,e,n){var r=n.horizontal,i=Kz(n.minRotation),a=(r?Math.sin(i):Math.cos(i))||.001,o=.75*e*(""+t).length;return Math.min(e/a,o)}wL(mU,"id","category"),wL(mU,"defaults",{ticks:{callback:gU}});var _U=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t)).start=void 0,r.end=void 0,r._startValue=void 0,r._endValue=void 0,r._valueRange=0,r}return Ci(n,[{key:"parse",value:function(t,e){return pz(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}},{key:"handleTickRangeOptions",value:function(){var t=this.options.beginAtZero,e=this.getUserBounds(),n=e.minDefined,r=e.maxDefined,i=this.min,a=this.max,o=function(t){return i=n?i:t},s=function(t){return a=r?a:t};if(t){var u=Yz(i),l=Yz(a);u<0&&l<0?s(0):u>0&&l>0&&o(0)}if(i===a){var c=0===a?1:Math.abs(.05*a);s(a+c),t||o(i-c)}this.min=i,this.max=a}},{key:"getTickLimit",value:function(){var t,e=this.options.ticks,n=e.maxTicksLimit,r=e.stepSize;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1)>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(r," would result generating up to ").concat(t," ticks. Limiting to 1000.")),t=1e3):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}},{key:"computeTickLimit",value:function(){return Number.POSITIVE_INFINITY}},{key:"buildTicks",value:function(){var t=this.options,e=t.ticks,n=this.getTickLimit(),r=yU({maxTicks:n=Math.max(2,n),bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Xz(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}},{key:"configure",value:function(){var t=this.ticks,e=this.min,r=this.max;if(vi(Ni(n.prototype),"configure",this).call(this),this.options.offset&&t.length){var i=(r-e)/Math.max(t.length-1,1)/2;e-=i,r+=i}this._startValue=e,this._endValue=r,this._valueRange=r-e}},{key:"getLabelForValue",value:function(t){return Ej(t,this.chart.options.locale,this.options.ticks.format)}}]),n}(oH),xU=function(t){Ti(n,t);var e=Mi(n);function n(){return Ai(this,n),e.apply(this,arguments)}return Ci(n,[{key:"determineDataLimits",value:function(){var t=this.getMinMax(!0),e=t.min,n=t.max;this.min=mz(e)?e:0,this.max=mz(n)?n:1,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var t=this.isHorizontal(),e=t?this.width:this.height,n=Kz(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,i.lineHeight/r))}},{key:"getPixelForValue",value:function(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}]),n}(_U);wL(xU,"id","linear"),wL(xU,"defaults",{ticks:{callback:Aj.formatters.numeric}});var wU=function(t){return Math.floor(Wz(t))},kU=function(t,e){return Math.pow(10,wU(t)+e)};function SU(t){return t/Math.pow(10,wU(t))==1}function EU(t,e,n){var r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function CU(t,e){var n=e.min,r=e.max;n=yz(t.min,n);for(var i=[],a=wU(n),o=function(t,e){for(var n=wU(e-t);EU(t,e,n)>10;)n++;for(;EU(t,e,n)<10;)n--;return Math.min(n,wU(t))}(n,r),s=o<0?Math.pow(10,Math.abs(o)):1,u=Math.pow(10,o),l=a>o?Math.pow(10,a):0,c=Math.round((n-l)*s)/s,f=Math.floor((n-l)/u/10)*u*10,d=Math.floor((c-f)/Math.pow(10,o)),h=yz(t.min,Math.round((l+f+d*Math.pow(10,o))*s)/s);h<r;)i.push({value:h,major:SU(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(d=2,s=++o>=0?1:s),h=Math.round((l+f+d*Math.pow(10,o))*s)/s;var p=yz(t.max,h);return i.push({value:p,major:SU(p),significand:d}),i}var AU=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t)).start=void 0,r.end=void 0,r._startValue=void 0,r._valueRange=0,r}return Ci(n,[{key:"parse",value:function(t,e){var n=_U.prototype.parse.apply(this,[t,e]);if(0!==n)return mz(n)&&n>0?n:null;this._zero=!0}},{key:"determineDataLimits",value:function(){var t=this.getMinMax(!0),e=t.min,n=t.max;this.min=mz(e)?Math.max(0,e):null,this.max=mz(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!mz(this._userMin)&&(this.min=e===kU(this.min,0)?kU(this.min,-1):kU(this.min,0)),this.handleTickRangeOptions()}},{key:"handleTickRangeOptions",value:function(){var t=this.getUserBounds(),e=t.minDefined,n=t.maxDefined,r=this.min,i=this.max,a=function(t){return r=e?r:t},o=function(t){return i=n?i:t};r===i&&(r<=0?(a(1),o(10)):(a(kU(r,-1)),o(kU(i,1)))),r<=0&&a(kU(i,-1)),i<=0&&o(kU(r,1)),this.min=r,this.max=i}},{key:"buildTicks",value:function(){var t=this.options,e=CU({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Xz(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}},{key:"getLabelForValue",value:function(t){return void 0===t?"0":Ej(t,this.chart.options.locale,this.options.ticks.format)}},{key:"configure",value:function(){var t=this.min;vi(Ni(n.prototype),"configure",this).call(this),this._startValue=Wz(t),this._valueRange=Wz(this.max)-Wz(t)}},{key:"getPixelForValue",value:function(t){return(void 0===t||0===t)&&(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Wz(t)-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(t){var e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}]),n}(oH);function TU(t){var e=t.ticks;if(e.display&&t.display){var n=eB(e.backdropPadding);return bz(e.font&&e.font.size,Dj.font.size)+n.height}return 0}function MU(t,e,n){return n=vz(n)?n:[n],{w:Ij(t,e.string,n),h:n.length*e.lineHeight}}function OU(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 PU(t){for(var 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=[],a=t._pointLabels.length,o=t.options.pointLabels,s=o.centerPointLabels?Fz/a:0,u=0;u<a;u++){var l=o.setContext(t.getPointLabelContext(u));i[u]=l.padding;var c=t.getPointPosition(u,t.drawingArea+i[u],s),f=nB(l.font),d=MU(t.ctx,f,t._pointLabels[u]);r[u]=d;var h=ej(t.getIndexAngle(u)+s),p=Math.round($z(h));RU(n,e,h,OU(p,c.x,d.w,0,180),OU(p,c.y,d.h,90,270))}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){for(var r=[],i=t._pointLabels.length,a=t.options,o=TU(a)/2,s=t.drawingArea,u=a.pointLabels.centerPointLabels?Fz/i:0,l=0;l<i;l++){var c=t.getPointPosition(l,s+o+n[l],u),f=Math.round($z(ej(c.angle+Vz))),d=e[l],h=IU(c.y,d.h,f),p=DU(f),v=LU(c.x,d.w,p);r.push({x:c.x,y:h,textAlign:p,left:v,top:h,right:v+d.w,bottom:h+d.h})}return r}(t,r,i)}function RU(t,e,n,r,i){var a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n)),s=0,u=0;r.start<e.l?(s=(e.l-r.start)/a,t.l=Math.min(t.l,e.l-s)):r.end>e.r&&(s=(r.end-e.r)/a,t.r=Math.max(t.r,e.r+s)),i.start<e.t?(u=(e.t-i.start)/o,t.t=Math.min(t.t,e.t-u)):i.end>e.b&&(u=(i.end-e.b)/o,t.b=Math.max(t.b,e.b+u))}function DU(t){return 0===t||180===t?"center":t<180?"left":"right"}function LU(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function IU(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function NU(t,e,n,r){var i=t.ctx;if(n)i.arc(t.xCenter,t.yCenter,e,0,zz);else{var a=t.getPointPosition(0,e);i.moveTo(a.x,a.y);for(var o=1;o<r;o++)a=t.getPointPosition(o,e),i.lineTo(a.x,a.y)}}wL(AU,"id","logarithmic"),wL(AU,"defaults",{ticks:{callback:Aj.formatters.logarithmic,major:{enabled:!0}}});var FU=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t)).xCenter=void 0,r.yCenter=void 0,r.drawingArea=void 0,r._pointLabels=[],r._pointLabelItems=[],r}return Ci(n,[{key:"setDimensions",value:function(){var t=this._padding=eB(TU(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}},{key:"determineDataLimits",value:function(){var t=this.getMinMax(!1),e=t.min,n=t.max;this.min=mz(e)&&!isNaN(e)?e:0,this.max=mz(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/TU(this.options))}},{key:"generateTickLabels",value:function(t){var e=this;_U.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((function(t,n){var r=xz(e.options.pointLabels.callback,[t,n],e);return r||0===r?r:""})).filter((function(t,n){return e.chart.getDataVisibility(n)}))}},{key:"fit",value:function(){var t=this.options;t.display&&t.pointLabels.display?PU(this):this.setCenterPoint(0,0,0,0)}},{key:"setCenterPoint",value:function(t,e,n,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,r))}},{key:"getIndexAngle",value:function(t){return ej(t*(zz/(this._pointLabels.length||1))+Kz(this.options.startAngle||0))}},{key:"getDistanceFromCenterForValue",value:function(t){if(pz(t))return NaN;var e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}},{key:"getValueForDistanceFromCenter",value:function(t){if(pz(t))return NaN;var e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}},{key:"getPointLabelContext",value:function(t){var e=this._pointLabels||[];if(t>=0&&t<e.length){var n=e[t];return function(t,e,n){return iB(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}},{key:"getPointPosition",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getIndexAngle(t)-Vz+n;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}},{key:"getPointPositionForValue",value:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}},{key:"getBasePosition",value:function(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}},{key:"getPointLabelPosition",value:function(t){var e=this._pointLabelItems[t];return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}},{key:"drawBackground",value:function(){var t=this.options,e=t.backgroundColor,n=t.grid.circular;if(e){var r=this.ctx;r.save(),r.beginPath(),NU(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}},{key:"drawGrid",value:function(){var t,e,n,r=this,i=this.ctx,a=this.options,o=a.angleLines,s=a.grid,u=a.border,l=this._pointLabels.length;if(a.pointLabels.display&&function(t,e){for(var n=t.ctx,r=t.options.pointLabels,i=e-1;i>=0;i--){var a=r.setContext(t.getPointLabelContext(i)),o=nB(a.font),s=t._pointLabelItems[i],u=s.x,l=s.y,c=s.textAlign,f=s.left,d=s.top,h=s.right,p=s.bottom,v=a.backdropColor;if(!pz(v)){var g=tB(a.borderRadius),m=eB(a.backdropPadding);n.fillStyle=v;var y=f-m.left,b=d-m.top,_=h-f+m.width,x=p-d+m.height;Object.values(g).some((function(t){return 0!==t}))?(n.beginPath(),qj(n,{x:y,y:b,w:_,h:x,radius:g}),n.fill()):n.fillRect(y,b,_,x)}Uj(n,t._pointLabels[i],u,l+o.lineHeight/2,o,{color:a.color,textAlign:c,textBaseline:"middle"})}}(this,l),s.display&&this.ticks.forEach((function(t,n){if(0!==n){e=r.getDistanceFromCenterForValue(t.value);var i=r.getContext(n),a=s.setContext(i),o=u.setContext(i);!function(t,e,n,r,i){var a=t.ctx,o=e.circular,s=e.color,u=e.lineWidth;!o&&!r||!s||!u||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=u,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),NU(t,n,o,r),a.closePath(),a.stroke(),a.restore())}(r,a,e,l,o)}})),o.display){for(i.save(),t=l-1;t>=0;t--){var c=o.setContext(this.getPointLabelContext(t)),f=c.color,d=c.lineWidth;!d||!f||(i.lineWidth=d,i.strokeStyle=f,i.setLineDash(c.borderDash),i.lineDashOffset=c.borderDashOffset,e=this.getDistanceFromCenterForValue(a.ticks.reverse?this.min:this.max),n=this.getPointPosition(t,e),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(n.x,n.y),i.stroke())}i.restore()}}},{key:"drawBorder",value:function(){}},{key:"drawLabels",value:function(){var t=this,e=this.ctx,n=this.options,r=n.ticks;if(r.display){var i,a,o=this.getIndexAngle(0);e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((function(o,s){if(0!==s||n.reverse){var u=r.setContext(t.getContext(s)),l=nB(u.font);if(i=t.getDistanceFromCenterForValue(t.ticks[s].value),u.showLabelBackdrop){e.font=l.string,a=e.measureText(o.label).width,e.fillStyle=u.backdropColor;var c=eB(u.backdropPadding);e.fillRect(-a/2-c.left,-i-l.size/2-c.top,a+c.width,l.size+c.height)}Uj(e,o.label,0,-i,l,{color:u.color})}})),e.restore()}}},{key:"drawTitle",value:function(){}}]),n}(_U);wL(FU,"id","radialLinear"),wL(FU,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Aj.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(t){return t},padding:5,centerPointLabels:!1}}),wL(FU,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),wL(FU,"descriptors",{angleLines:{_fallback:"grid"}});var zU={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}},jU=Object.keys(zU);function BU(t,e){return t-e}function VU(t,e){if(pz(e))return null;var n=t._adapter,r=t._parseOpts,i=r.parser,a=r.round,o=r.isoWeekday,s=e;return"function"==typeof i&&(s=i(s)),mz(s)||(s="string"==typeof i?n.parse(s,i):n.parse(s)),null===s?null:(a&&(s="week"!==a||!Zz(o)&&!0!==o?n.startOf(s,a):n.startOf(s,"isoWeek",o)),+s)}function HU(t,e,n,r){for(var i=jU.length,a=jU.indexOf(t);a<i-1;++a){var o=zU[jU[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(s*o.size))<=r)return jU[a]}return jU[i-1]}function UU(t,e,n){if(n){if(n.length){var r=aj(n,e),i=r.lo,a=r.hi;t[n[i]>=e?n[i]:n[a]]=!0}}else t[e]=!0}function WU(t,e,n){var r,i,a=[],o={},s=e.length;for(r=0;r<s;++r)o[i=e[r]]=r,a.push({value:i,major:!1});return 0!==s&&n?function(t,e,n,r){var i,a,o=t._adapter,s=+o.startOf(e[0].value,r),u=e[e.length-1].value;for(i=s;i<=u;i=+o.add(i,1,r))(a=n[i])>=0&&(e[a].major=!0);return e}(t,a,o,n):a}var YU=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t))._cache={data:[],labels:[],all:[]},r._unit="day",r._majorUnit=void 0,r._offsets={},r._normalized=!1,r._parseOpts=void 0,r}return Ci(n,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.time||(t.time={}),i=this._adapter=new cV._date(t.adapters.date);i.init(e),Tz(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},vi(Ni(n.prototype),"init",this).call(this,t),this._normalized=e.normalized}},{key:"parse",value:function(t,e){return void 0===t?null:VU(this,t)}},{key:"beforeLayout",value:function(){vi(Ni(n.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var t=this.options,e=this._adapter,n=t.time.unit||"day",r=this.getUserBounds(),i=r.min,a=r.max,o=r.minDefined,s=r.maxDefined;function u(t){!o&&!isNaN(t.min)&&(i=Math.min(i,t.min)),!s&&!isNaN(t.max)&&(a=Math.max(a,t.max))}(!o||!s)&&(u(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&u(this.getMinMax(!1))),i=mz(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),a=mz(a)&&!isNaN(a)?a:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}},{key:"_getLabelBounds",value:function(){var t=this.getLabelTimestamps(),e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}},{key:"buildTicks",value:function(){var t=this.options,e=t.time,n=t.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);var i=this.min,a=function(t,e,n){for(var r=0,i=t.length;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}(r,i,this.max);return this._unit=e.unit||(n.autoSkip?HU(e.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(t,e,n,r,i){for(var a=jU.length-1;a>=jU.indexOf(n);a--){var o=jU[a];if(zU[o].common&&t._adapter.diff(i,r,o)>=e-1)return o}return jU[n?jU.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(var e=jU.indexOf(t)+1,n=jU.length;e<n;++e)if(zU[jU[e]].common)return jU[e]}(this._unit):void 0,this.initOffsets(r),t.reverse&&a.reverse(),WU(this,a,this._majorUnit)}},{key:"afterAutoSkip",value:function(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((function(t){return+t.value})))}},{key:"initOffsets",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=0,i=0;this.options.offset&&n.length&&(t=this.getDecimalForValue(n[0]),r=1===n.length?1-t:(this.getDecimalForValue(n[1])-t)/2,e=this.getDecimalForValue(n[n.length-1]),i=1===n.length?e:(e-this.getDecimalForValue(n[n.length-2]))/2);var a=n.length<3?.5:.25;r=rj(r,0,a),i=rj(i,0,a),this._offsets={start:r,end:i,factor:1/(r+1+i)}}},{key:"_generate",value:function(){var t,e,n=this._adapter,r=this.min,i=this.max,a=this.options,o=a.time,s=o.unit||HU(o.minUnit,r,i,this._getLabelCapacity(r)),u=bz(a.ticks.stepSize,1),l="week"===s&&o.isoWeekday,c=Zz(l)||!0===l,f={},d=r;if(c&&(d=+n.startOf(d,"isoWeek",l)),d=+n.startOf(d,c?"day":s),n.diff(i,r,s)>1e5*u)throw new Error(r+" and "+i+" are too far apart with stepSize of "+u+" "+s);var h="data"===a.ticks.source&&this.getDataTimestamps();for(t=d,e=0;t<i;t=+n.add(t,u,s),e++)UU(f,t,h);return(t===i||"ticks"===a.bounds||1===e)&&UU(f,t,h),Object.keys(f).sort((function(t,e){return t-e})).map((function(t){return+t}))}},{key:"getLabelForValue",value:function(t){var e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}},{key:"format",value:function(t,e){var n=this.options.time.displayFormats,r=this._unit,i=e||n[r];return this._adapter.format(t,i)}},{key:"_tickFormatFunction",value:function(t,e,n,r){var i=this.options,a=i.ticks.callback;if(a)return xz(a,[t,e,n],this);var o=i.time.displayFormats,s=this._unit,u=this._majorUnit,l=s&&o[s],c=u&&o[u],f=n[e],d=u&&c&&f&&f.major;return this._adapter.format(t,r||(d?c:l))}},{key:"generateTickLabels",value:function(t){var e,n,r;for(e=0,n=t.length;e<n;++e)(r=t[e]).label=this._tickFormatFunction(r.value,e,t)}},{key:"getDecimalForValue",value:function(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}},{key:"getPixelForValue",value:function(t){var e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}},{key:"getValueForPixel",value:function(t){var e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}},{key:"_getLabelSize",value:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,r=Kz(this.isHorizontal()?e.maxRotation:e.minRotation),i=Math.cos(r),a=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*i+o*a,h:n*a+o*i}}},{key:"_getLabelCapacity",value:function(t){var e=this.options.time,n=e.displayFormats,r=n[e.unit]||n.millisecond,i=this._tickFormatFunction(t,0,WU(this,[t],this._majorUnit),r),a=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}},{key:"getDataTimestamps",value:function(){var t,e,n=this._cache.data||[];if(n.length)return n;var r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,e=r.length;t<e;++t)n=n.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}},{key:"getLabelTimestamps",value:function(){var t,e,n=this._cache.labels||[];if(n.length)return n;var r=this.getLabels();for(t=0,e=r.length;t<e;++t)n.push(VU(this,r[t]));return this._cache.labels=this._normalized?n:this.normalize(n)}},{key:"normalize",value:function(t){return cj(t.sort(BU))}}]),n}(oH);function GU(t,e,n){var r,i,a,o,s,u,l,c,f,d,h=0,p=t.length-1;n?(e>=t[h].pos&&e<=t[p].pos&&(h=(r=oj(t,"pos",e)).lo,p=r.hi),l=(i=t[h]).pos,f=i.time,c=(a=t[p]).pos,d=a.time):(e>=t[h].time&&e<=t[p].time&&(h=(o=oj(t,"time",e)).lo,p=o.hi),l=(s=t[h]).time,f=s.pos,c=(u=t[p]).time,d=u.pos);var v=c-l;return v?f+(d-f)*(e-l)/v:f}wL(YU,"id","time"),wL(YU,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});var qU=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t))._table=[],r._minPos=void 0,r._tableRange=void 0,r}return Ci(n,[{key:"initOffsets",value:function(){var t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=GU(e,this.min),this._tableRange=GU(e,this.max)-this._minPos,vi(Ni(n.prototype),"initOffsets",this).call(this,t)}},{key:"buildLookupTable",value:function(t){var e,n,r,i,a,o=this.min,s=this.max,u=[],l=[];for(e=0,n=t.length;e<n;++e)(i=t[e])>=o&&i<=s&&u.push(i);if(u.length<2)return[{time:o,pos:0},{time:s,pos:1}];for(e=0,n=u.length;e<n;++e)a=u[e+1],r=u[e-1],i=u[e],Math.round((a+r)/2)!==i&&l.push({time:i,pos:e/(n-1)});return l}},{key:"_getTimestampsForTable",value:function(){var t=this._cache.all||[];if(t.length)return t;var e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t}},{key:"getDecimalForValue",value:function(t){return(GU(this._table,t)-this._minPos)/this._tableRange}},{key:"getValueForPixel",value:function(t){var e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return GU(this._table,n*this._tableRange+this._minPos,!0)}}]),n}(YU);wL(qU,"id","timeseries"),wL(qU,"defaults",YU.defaults);var ZU="label";function XU(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function KU(t,e){t.labels=e}function $U(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ZU,r=[];t.datasets=e.map((function(e){var i=t.datasets.find((function(t){return t[n]===e[n]}));return i&&e.data&&!r.includes(i)?(r.push(i),Object.assign(i,e),i):_i({},e)}))}function QU(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ZU,n={labels:[],datasets:[]};return KU(n,t.labels),$U(n,t.datasets,e),n}function JU(t,e){var n=t.height,r=void 0===n?150:n,i=t.width,a=void 0===i?300:i,o=t.redraw,s=void 0!==o&&o,u=t.datasetIdKey,l=t.type,c=t.data,f=t.options,d=t.plugins,h=void 0===d?[]:d,p=t.fallbackContent,v=t.updateMode,g=fi(t,wn),m=ki.exports.useRef(null),y=ki.exports.useRef(),b=function(){!m.current||(y.current=new LH(m.current,{type:l,data:QU(c,u),options:f&&_i({},f),plugins:h}),XU(e,y.current))},_=function(){XU(e,null),y.current&&(y.current.destroy(),y.current=null)};return ki.exports.useEffect((function(){!s&&y.current&&f&&function(t,e){var n=t.options;n&&e&&Object.assign(n,e)}(y.current,f)}),[s,f]),ki.exports.useEffect((function(){!s&&y.current&&KU(y.current.config.data,c.labels)}),[s,c.labels]),ki.exports.useEffect((function(){!s&&y.current&&c.datasets&&$U(y.current.config.data,c.datasets,u)}),[s,c.datasets]),ki.exports.useEffect((function(){!y.current||(s?(_(),setTimeout(b)):y.current.update(v))}),[s,f,c.labels,c.datasets,v]),ki.exports.useEffect((function(){!y.current||(_(),setTimeout(b))}),[l]),ki.exports.useEffect((function(){return b(),function(){return _()}}),[]),WL("canvas",_i(_i({},Object.assign({ref:m,role:"img",height:r,width:a},g)),{},{children:p}))}var tW=ki.exports.forwardRef(JU);function eW(t,e){return LH.register(e),ki.exports.forwardRef((function(e,n){return WL(tW,_i({},Object.assign({},e,{ref:n,type:t})))}))}var nW=eW("bar",oV),rW=eW("doughnut",sV);!!(("undefined"==typeof window?"undefined":Fi(window))<"u"&&window.document&&window.document.createElement)&&getComputedStyle(document.documentElement),qC.div(U||(U=ci(["\n position: relative;\n height: calc((100vw / 2) - ",");\n width: 100%;\n"])),RL["--ll-spacing-medium"]),qC(nW)(W||(W=ci(["\n background-color: ",";\n padding: "," ",";\n border-radius: ",";\n font-family: ",";\n"])),RL["--ll-color-surface"],RL["--ll-spacing-medium"],RL["--ll-spacing-x-large"],RL["--ll-border-radius-medium"],RL["--ll-font-family"]),qC(rW)(Y||(Y=ci(["\n background-color: ",";\n padding: "," ",";\n border-radius: ",";\n font-family: ",";\n"])),RL["--ll-color-surface"],RL["--ll-spacing-medium"],RL["--ll-spacing-x-large"],RL["--ll-border-radius-medium"],RL["--ll-font-family"]),LH.register(mU,xU,qH),LH.register(mU,xU,qH,JH,$H),LH.register(BH,pU,$H),qC.div(G||(G=ci(["\n box-sizing: border-box;\n display: block;\n color: ",";\n background: linear-gradient(\n to top,\n ",",\n ","\n );\n padding: "," ",";\n border-radius: ",";\n line-height: 1;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n height: 275px;\n * {\n box-sizing: inherit;\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n"])),RL["--ll-color-background"],RL["--ll-color-primary-variant1"],RL["--ll-color-primary"],RL["--ll-spacing-medium"],RL["--ll-spacing-x-large"],RL["--ll-border-radius-medium"],RL["--ll-font-family"],RL["--ll-font-size-caption-1"],RL["--ll-font-weight-normal"]),qC.h1(q||(q=ci(["\n font-size: ",";\n margin: 0 0 ",";\n"])),RL["--ll-font-size-p"],RL["--ll-spacing-xxx-large"]),qC.ul(Z||(Z=ci(["\n font-size: ",";\n list-style: none;\n padding: 0;\n margin: 0;\n display: flex;\n flex-flow: column;\n row-gap: ",";\n"])),RL["--ll-font-size-h3"],RL["--ll-spacing-large"]),qC.li(X||(X=ci(["\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n align-items: center;\n"]))),qC.h2(K||(K=ci(["\n font-size: inherit;\n line-height: inherit;\n font-weight: inherit;\n margin: 0;\n display: flex;\n flex-flow: row wrap;\n justify-content: flex-start;\n align-items: center;\n column-gap: 8px;\n"]))),qC.p($||($=ci(["\n font-size: inherit;\n line-height: inherit;\n font-weight: inherit;\n margin: 0;\n"]))),qC.span(Q||(Q=ci(["\n width: 32px;\n height: 32px;\n display: flex;\n flex-flow: row;\n align-items: center;\n justify-content: center;\n"])));var iW,aW="dismissableLayer.update",oW="dismissableLayer.pointerDownOutside",sW="dismissableLayer.focusOutside",uW=ki.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lW=ki.exports.forwardRef((function(t,e){var n=t.disableOutsidePointerEvents,r=void 0!==n&&n,i=t.onEscapeKeyDown,a=t.onPointerDownOutside,o=t.onFocusOutside,s=t.onInteractOutside,u=t.onDismiss,l=fi(t,kn),c=ki.exports.useContext(uW),f=wi(ki.exports.useState(null),2),d=f[0],h=f[1],p=wi(ki.exports.useState({}),2)[1],v=iI(e,(function(t){return h(t)})),g=Array.from(c.layers),m=wi(mi(c.layersWithOutsidePointerEventsDisabled).slice(-1),1)[0],y=g.indexOf(m),b=d?g.indexOf(d):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,w=function(t){var e=HI(t),n=ki.exports.useRef(!1),r=ki.exports.useRef((function(){}));return ki.exports.useEffect((function(){var t=function(t){if(t.target&&!n.current){var i=function(){fW(oW,e,a,{discrete:!0})},a={originalEvent:t};"touch"===t.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout((function(){document.addEventListener("pointerdown",t)}),0);return function(){window.clearTimeout(i),document.removeEventListener("pointerdown",t),document.removeEventListener("click",r.current)}}),[e]),{onPointerDownCapture:function(){return n.current=!0}}}((function(t){var e=t.target,n=mi(c.branches).some((function(t){return t.contains(e)}));!x||n||(null==a||a(t),null==s||s(t),t.defaultPrevented||null==u||u())})),k=function(t){var e=HI(t),n=ki.exports.useRef(!1);return ki.exports.useEffect((function(){var t=function(t){t.target&&!n.current&&fW(sW,e,{originalEvent:t},{discrete:!1})};return document.addEventListener("focusin",t),function(){return document.removeEventListener("focusin",t)}}),[e]),{onFocusCapture:function(){return n.current=!0},onBlurCapture:function(){return n.current=!1}}}((function(t){var e=t.target;mi(c.branches).some((function(t){return t.contains(e)}))||(null==o||o(t),null==s||s(t),t.defaultPrevented||null==u||u())}));return function(t){var e=HI(t);ki.exports.useEffect((function(){var t=function(t){"Escape"===t.key&&e(t)};return document.addEventListener("keydown",t),function(){return document.removeEventListener("keydown",t)}}),[e])}((function(t){b===c.layers.size-1&&(null==i||i(t),!t.defaultPrevented&&u&&(t.preventDefault(),u()))})),ki.exports.useEffect((function(){if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(iW=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),cW(),function(){r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=iW)}}),[d,r,c]),ki.exports.useEffect((function(){return function(){!d||(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),cW())}}),[d,c]),ki.exports.useEffect((function(){var t=function(){return p({})};return document.addEventListener(aW,t),function(){return document.removeEventListener(aW,t)}}),[]),ki.exports.createElement(lI.div,JL({},l,{ref:v,style:_i({pointerEvents:_?x?"auto":"none":void 0},t.style),onFocusCapture:VI(t.onFocusCapture,k.onFocusCapture),onBlurCapture:VI(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:VI(t.onPointerDownCapture,w.onPointerDownCapture)}))}));function cW(){var t=new CustomEvent(aW);document.dispatchEvent(t)}function fW(t,e,n,r){var i=r.discrete,a=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&a.addEventListener(t,e,{once:!0}),i?function(t,e){t&&ma.exports.flushSync((function(){return t.dispatchEvent(e)}))}(a,o):a.dispatchEvent(o)}var dW=0;function hW(){ki.exports.useEffect((function(){var t,e,n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(t=n[0])&&void 0!==t?t:pW()),document.body.insertAdjacentElement("beforeend",null!==(e=n[1])&&void 0!==e?e:pW()),dW++,function(){1===dW&&document.querySelectorAll("[data-radix-focus-guard]").forEach((function(t){return t.remove()})),dW--}}),[])}function pW(){var 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}var vW="focusScope.autoFocusOnMount",gW="focusScope.autoFocusOnUnmount",mW={bubbles:!1,cancelable:!0},yW=ki.exports.forwardRef((function(t,e){var n=t.loop,r=void 0!==n&&n,i=t.trapped,a=void 0!==i&&i,o=t.onMountAutoFocus,s=t.onUnmountAutoFocus,u=fi(t,Sn),l=wi(ki.exports.useState(null),2),c=l[0],f=l[1],d=HI(o),h=HI(s),p=ki.exports.useRef(null),v=iI(e,(function(t){return f(t)})),g=ki.exports.useRef({paused:!1,pause:function(){this.paused=!0},resume:function(){this.paused=!1}}).current;ki.exports.useEffect((function(){if(a){var t=function(t){if(!g.paused&&c){var e=t.target;c.contains(e)?p.current=e:kW(p.current,{select:!0})}},e=function(t){g.paused||!c||c.contains(t.relatedTarget)||kW(p.current,{select:!0})};return document.addEventListener("focusin",t),document.addEventListener("focusout",e),function(){document.removeEventListener("focusin",t),document.removeEventListener("focusout",e)}}}),[a,c,g.paused]),ki.exports.useEffect((function(){if(c){SW.add(g);var t=document.activeElement;if(!c.contains(t)){var e=new CustomEvent(vW,mW);c.addEventListener(vW,d),c.dispatchEvent(e),e.defaultPrevented||(function(t){var e,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,r=void 0!==n&&n,i=document.activeElement,a=zi(t);try{for(a.s();!(e=a.n()).done;){if(kW(e.value,{select:r}),document.activeElement!==i)return}}catch(o){a.e(o)}finally{a.f()}}(function(t){return t.filter((function(t){return"A"!==t.tagName}))}(bW(c)),{select:!0}),document.activeElement===t&&kW(c))}return function(){c.removeEventListener(vW,d),setTimeout((function(){var e=new CustomEvent(gW,mW);c.addEventListener(gW,h),c.dispatchEvent(e),e.defaultPrevented||kW(null!=t?t:document.body,{select:!0}),c.removeEventListener(gW,h),SW.remove(g)}),0)}}}),[c,d,h,g]);var m=ki.exports.useCallback((function(t){if((r||a)&&!g.paused){var e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,n=document.activeElement;if(e&&n){var i=t.currentTarget,o=function(t){var e=bW(t),n=_W(e,t),r=_W(e.reverse(),t);return[n,r]}(i),s=wi(o,2),u=s[0],l=s[1];u&&l?t.shiftKey||n!==l?t.shiftKey&&n===u&&(t.preventDefault(),r&&kW(l,{select:!0})):(t.preventDefault(),r&&kW(u,{select:!0})):n===i&&t.preventDefault()}}}),[r,a,g.paused]);return ki.exports.createElement(lI.div,JL({tabIndex:-1},u,{ref:v,onKeyDown:m}))}));function bW(t){for(var e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:function(t){var e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});n.nextNode();)e.push(n.currentNode);return e}function _W(t,e){var n,r=zi(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!xW(i,{upTo:e}))return i}}catch(a){r.e(a)}finally{r.f()}}function xW(t,e){var n=e.upTo;if("hidden"===getComputedStyle(t).visibility)return!0;for(;t;){if(void 0!==n&&t===n)return!1;if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}function wW(t){return t instanceof HTMLInputElement&&"select"in t}function kW(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.select,r=void 0!==n&&n;if(t&&t.focus){var i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&wW(t)&&r&&t.select()}}var SW=function(){var t=[];return{add:function(e){var n=t[0];e!==n&&(null==n||n.pause()),(t=EW(t,e)).unshift(e)},remove:function(e){var n;null===(n=(t=EW(t,e))[0])||void 0===n||n.resume()}}}();function EW(t,e){var n=mi(t),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}var CW=ki.exports.forwardRef((function(t,e){var n,r=t.container,i=void 0===r?null==globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body:r,a=fi(t,En);return i?kg.createPortal(ki.exports.createElement(lI.div,JL({},a,{ref:e})),i):null})),AW=ki.exports.forwardRef((function(t,e){return ki.exports.createElement(lI.span,JL({},t,{ref:e,style:_i({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)}))})),TW=new WeakMap,MW=new WeakMap,OW={},PW=0,RW=function(t,e,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=e||function(t){return("undefined"==typeof document?"undefined":Fi(document))>"u"?null:(Array.isArray(t)?t[0]:t).ownerDocument.body}(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),function(t,e,n,r){var i=Array.isArray(t)?t:[t];OW[n]||(OW[n]=new WeakMap);var a=OW[n],o=[],s=new Set,u=new Set(i);return i.forEach((function t(e){!e||s.has(e)||(s.add(e),t(e.parentNode))})),function t(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))t(e);else{var i=e.getAttribute(r),u=null!==i&&"false"!==i,l=(TW.get(e)||0)+1,c=(a.get(e)||0)+1;TW.set(e,l),a.set(e,c),o.push(e),1===l&&u&&MW.set(e,!0),1===c&&e.setAttribute(n,"true"),u||e.setAttribute(r,"true")}}))}(e),s.clear(),PW++,function(){o.forEach((function(t){var e=TW.get(t)-1,i=a.get(t)-1;TW.set(t,e),a.set(t,i),e||(MW.has(t)||t.removeAttribute(r),MW.delete(t)),i||t.removeAttribute(n)})),--PW||(TW=new WeakMap,TW=new WeakMap,MW=new WeakMap,OW={})}}(r,i,n,"aria-hidden")):function(){return null}},DW=function(){return DW=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},DW.apply(this,arguments)};function LW(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(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}var IW="right-scroll-bar-position",NW="width-before-scroll-bar";function FW(t,e){return function(t,e){var n=ki.exports.useState((function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(t){var e=n.value;e!==t&&(n.value=t,n.callback(t,e))}}}}))[0];return n.callback=e,n.facade}(e||null,(function(e){return t.forEach((function(t){return function(t,e){return"function"==typeof t?t(e):t&&(t.current=e),t}(t,e)}))}))}function zW(t){return t}var jW=function(t){var e=t.sideCar,n=LW(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 WL(r,_i({},DW({},n)))};jW.isSideCarExport=!0;var BW=function(t){void 0===t&&(t={});var e=function(t,e){void 0===e&&(e=zW);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(t){var i=e(t,r);return n.push(i),function(){n=n.filter((function(t){return t!==i}))}},assignSyncMedium:function(t){for(r=!0;n.length;){var e=n;n=[],e.forEach(t)}n={push:function(e){return t(e)},filter:function(){return n}}},assignMedium:function(t){r=!0;var e=[];if(n.length){var i=n;n=[],i.forEach(t),e=n}var a=function(){var n=e;e=[],n.forEach(t)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(t){e.push(t),o()},filter:function(t){return e=e.filter(t),n}}}};return i}(null);return e.options=DW({async:!0,ssr:!1},t),e}(),VW=function(){},HW=ki.exports.forwardRef((function(t,e){var n=ki.exports.useRef(null),r=ki.exports.useState({onScrollCapture:VW,onWheelCapture:VW,onTouchMoveCapture:VW}),i=r[0],a=r[1],o=t.forwardProps,s=t.children,u=t.className,l=t.removeScrollBar,c=t.enabled,f=t.shards,d=t.sideCar,h=t.noIsolation,p=t.inert,v=t.allowPinchZoom,g=t.as,m=void 0===g?"div":g,y=LW(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=d,_=FW([n,e]),x=DW(DW({},y),i);return YL(UL,{children:[c&&WL(b,{sideCar:BW,removeScrollBar:l,shards:f,noIsolation:h,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),o?ki.exports.cloneElement(ki.exports.Children.only(s),DW(DW({},x),{ref:_})):WL(m,_i(_i({},DW({},x,{className:u,ref:_})),{},{children:s}))]})}));HW.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},HW.classNames={fullWidth:NW,zeroRight:IW};function UW(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=function(){if(("undefined"==typeof __webpack_nonce__?"undefined":Fi(__webpack_nonce__))<"u")return __webpack_nonce__}();return e&&t.setAttribute("nonce",e),t}var WW=function(){var t=0,e=null;return{add:function(n){0==t&&(e=UW())&&(function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}(e,n),function(t){(document.head||document.getElementsByTagName("head")[0]).appendChild(t)}(e)),t++},remove:function(){!--t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},YW=function(){var t=function(){var t=WW();return function(e,n){ki.exports.useEffect((function(){return t.add(e),function(){t.remove()}}),[e&&n])}}();return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},GW={left:0,top:0,right:0,gap:0},qW=function(t){return parseInt(t||"",10)||0},ZW=function(t){if(void 0===t&&(t="margin"),("undefined"==typeof window?"undefined":Fi(window))>"u")return GW;var e=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],r=e["padding"===t?"paddingTop":"marginTop"],i=e["padding"===t?"paddingRight":"marginRight"];return[qW(n),qW(r),qW(i)]}(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])}},XW=YW(),KW=function(t,e,n,r){var i=t.left,a=t.top,o=t.right,s=t.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([e&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(IW," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(NW," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(IW," .").concat(IW," {\n right: 0 ").concat(r,";\n }\n \n .").concat(NW," .").concat(NW," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},$W=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=void 0===r?"margin":r,a=ki.exports.useMemo((function(){return ZW(i)}),[i]);return WL(XW,{styles:KW(a,!e,i,n?"":"!important")})},QW=!1;if(("undefined"==typeof window?"undefined":Fi(window))<"u")try{var JW=Object.defineProperty({},"passive",{get:function(){return QW=!0,!0}});window.addEventListener("test",JW,JW),window.removeEventListener("test",JW,JW)}catch(vft){QW=!1}var tY=!!QW&&{passive:!1},eY=function(t,e){var n=e;do{if(("undefined"==typeof ShadowRoot?"undefined":Fi(ShadowRoot))<"u"&&n instanceof ShadowRoot&&(n=n.host),nY(t,n)){var r=rY(t,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},nY=function(t,e){return"v"===t?function(t){var e=window.getComputedStyle(t);return"hidden"!==e.overflowY&&!(e.overflowY===e.overflowX&&"visible"===e.overflowY)}(e):function(t){var e=window.getComputedStyle(t);return"hidden"!==e.overflowX&&!(e.overflowY===e.overflowX&&"visible"===e.overflowX)}(e)},rY=function(t,e){return"v"===t?function(t){return[t.scrollTop,t.scrollHeight,t.clientHeight]}(e):function(t){return[t.scrollLeft,t.scrollWidth,t.clientWidth]}(e)},iY=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},aY=function(t){return[t.deltaX,t.deltaY]},oY=function(t){return t&&"current"in t?t.current:t},sY=function(t){return"\n .block-interactivity-".concat(t," {pointer-events: none;}\n .allow-interactivity-").concat(t," {pointer-events: all;}\n")},uY=0,lY=[];var cY=function(t,e){return t.useMedium(e),jW}(BW,(function(t){var e=ki.exports.useRef([]),n=ki.exports.useRef([0,0]),r=ki.exports.useRef(),i=ki.exports.useState(uY++)[0],a=ki.exports.useState((function(){return YW()}))[0],o=ki.exports.useRef(t);ki.exports.useEffect((function(){o.current=t}),[t]),ki.exports.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}([t.lockRef.current],(t.shards||[]).map(oY),!0).filter(Boolean);return e.forEach((function(t){return t.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(t){return t.classList.remove("allow-interactivity-".concat(i))}))}}}),[t.inert,t.lockRef.current,t.shards]);var s=ki.exports.useCallback((function(t,e){if("touches"in t&&2===t.touches.length)return!o.current.allowPinchZoom;var i,a=iY(t),s=n.current,u="deltaX"in t?t.deltaX:s[0]-a[0],l="deltaY"in t?t.deltaY:s[1]-a[1],c=t.target,f=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in t&&"h"===f&&"range"===c.type)return!1;var d=eY(f,c);if(!d)return!0;if(d?i=f:(i="v"===f?"h":"v",d=eY(f,c)),!d)return!1;if(!r.current&&"changedTouches"in t&&(u||l)&&(r.current=i),!i)return!0;var h=r.current||i;return function(t,e,n,r,i){var a=function(t,e){return"h"===t&&"rtl"===e?-1:1}(t,window.getComputedStyle(e).direction),o=a*r,s=n.target,u=e.contains(s),l=!1,c=o>0,f=0,d=0;do{var h=rY(t,s),p=h[0],v=h[1]-h[2]-a*p;(p||v)&&nY(t,s)&&(f+=v,d+=p),s=s.parentNode}while(!u&&s!==document.body||u&&(e.contains(s)||e===s));return(c&&(i&&0===f||!i&&o>f)||!c&&(i&&0===d||!i&&-o>d))&&(l=!0),l}(h,e,t,"h"===h?u:l,!0)}),[]),u=ki.exports.useCallback((function(t){var n=t;if(lY.length&&lY[lY.length-1]===a){var r="deltaY"in n?aY(n):iY(n),i=e.current.filter((function(t){return t.name===n.type&&t.target===n.target&&function(t,e){return t[0]===e[0]&&t[1]===e[1]}(t.delta,r)}))[0];if(i&&i.should)return void n.preventDefault();if(!i){var u=(o.current.shards||[]).map(oY).filter(Boolean).filter((function(t){return t.contains(n.target)}));(u.length>0?s(n,u[0]):!o.current.noIsolation)&&n.preventDefault()}}}),[]),l=ki.exports.useCallback((function(t,n,r,i){var a={name:t,delta:n,target:r,should:i};e.current.push(a),setTimeout((function(){e.current=e.current.filter((function(t){return t!==a}))}),1)}),[]),c=ki.exports.useCallback((function(t){n.current=iY(t),r.current=void 0}),[]),f=ki.exports.useCallback((function(e){l(e.type,aY(e),e.target,s(e,t.lockRef.current))}),[]),d=ki.exports.useCallback((function(e){l(e.type,iY(e),e.target,s(e,t.lockRef.current))}),[]);ki.exports.useEffect((function(){return lY.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",u,tY),document.addEventListener("touchmove",u,tY),document.addEventListener("touchstart",c,tY),function(){lY=lY.filter((function(t){return t!==a})),document.removeEventListener("wheel",u,tY),document.removeEventListener("touchmove",u,tY),document.removeEventListener("touchstart",c,tY)}}),[]);var h=t.removeScrollBar,p=t.inert;return YL(UL,{children:[p?WL(a,{styles:sY(i)}):null,h?WL($W,{gapMode:"margin"}):null]})})),fY=ki.exports.forwardRef((function(t,e){return WL(HW,_i({},DW({},t,{ref:e,sideCar:cY})))}));fY.classNames=HW.classNames;var dY=fY,hY=[" ","Enter","ArrowUp","ArrowDown"],pY=[" ","Enter"],vY="Select",gY=wi(uN(vY),3),mY=gY[0],yY=gY[1],bY=wi(tI(vY,[gY[2]]),2),_Y=bY[0],xY=bY[1],wY=wi(_Y(vY),2),kY=wY[0],SY=wY[1],EY=wi(_Y(vY),2),CY=EY[0],AY=EY[1],TY=function(t){var e=t.__scopeSelect,n=t.children,r=t.open,i=t.defaultOpen,a=t.onOpenChange,o=t.value,s=t.defaultValue,u=t.onValueChange,l=t.dir,c=t.name,f=t.autoComplete,d=wi(ki.exports.useState(null),2),h=d[0],p=d[1],v=wi(ki.exports.useState(null),2),g=v[0],m=v[1],y=wi(ki.exports.useState(!1),2),b=y[0],_=y[1],x=sN(l),w=wi(UI({prop:r,defaultProp:i,onChange:a}),2),k=w[0],S=void 0!==k&&k,E=w[1],C=wi(UI({prop:o,defaultProp:s,onChange:u}),2),A=C[0],T=C[1],M=ki.exports.useRef(null),O=!h||Boolean(h.closest("form")),P=wi(ki.exports.useState(new Set),2),R=P[0],D=P[1],L=Array.from(R).map((function(t){return t.props.value})).join(";");return ki.exports.createElement(kY,{scope:e,trigger:h,onTriggerChange:p,valueNode:g,onValueNodeChange:m,valueNodeHasChildren:b,onValueNodeHasChildrenChange:_,contentId:hI(),value:A,onValueChange:T,open:S,onOpenChange:E,dir:x,triggerPointerDownPosRef:M},ki.exports.createElement(mY.Provider,{scope:e},ki.exports.createElement(CY,{scope:t.__scopeSelect,onNativeOptionAdd:ki.exports.useCallback((function(t){D((function(e){return new Set(e).add(t)}))}),[]),onNativeOptionRemove:ki.exports.useCallback((function(t){D((function(e){var n=new Set(e);return n.delete(t),n}))}),[])},n)),O?ki.exports.createElement(iG,{key:L,"aria-hidden":!0,tabIndex:-1,name:c,autoComplete:f,value:A,onChange:function(t){return T(t.target.value)}},Array.from(R)):null)},MY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.disabled,i=void 0!==r&&r,a=t["aria-labelledby"],o=fi(t,Cn),s=SY("SelectTrigger",n),u=iI(e,s.onTriggerChange),l=yY(n),c=bI(s.trigger),f=a||c,d=aG((function(t){var e=l().filter((function(t){return!t.disabled})),n=e.find((function(t){return t.value===s.value})),r=oG(e,t,n);void 0!==r&&s.onValueChange(r.value)})),h=wi(d,3),p=h[0],v=h[1],g=h[2],m=function(){i||(s.onOpenChange(!0),g())};return ki.exports.createElement(lI.button,JL({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-autocomplete":"none","aria-labelledby":f,dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":void 0===s.value?"":void 0},o,{ref:u,onPointerDown:VI(o.onPointerDown,(function(t){t.target.releasePointerCapture(t.pointerId),0===t.button&&!1===t.ctrlKey&&(m(),s.triggerPointerDownPosRef.current={x:Math.round(t.pageX),y:Math.round(t.pageY)},t.preventDefault())})),onKeyDown:VI(o.onKeyDown,(function(t){var e=""!==p.current;!(t.ctrlKey||t.altKey||t.metaKey)&&1===t.key.length&&v(t.key),(!e||" "!==t.key)&&hY.includes(t.key)&&(m(),t.preventDefault())}))}))})),OY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=(t.className,t.style,t.children),i=t.placeholder,a=fi(t,An),o=SY("SelectValue",n),s=o.onValueNodeHasChildrenChange,u=void 0!==r,l=iI(e,o.onValueNodeChange);return cI((function(){s(u)}),[s,u]),ki.exports.createElement(lI.span,JL({},a,{ref:l,style:{pointerEvents:"none"}}),void 0===o.value&&void 0!==i?i:r)})),PY=ki.exports.forwardRef((function(t,e){t.__scopeSelect;var n=t.children,r=fi(t,Tn);return ki.exports.createElement(lI.span,JL({"aria-hidden":!0},r,{ref:e}),n||"▼")})),RY=function(t){return ki.exports.createElement(CW,JL({asChild:!0},t))},DY="SelectContent",LY=ki.exports.forwardRef((function(t,e){var n=SY(DY,t.__scopeSelect),r=wi(ki.exports.useState(),2),i=r[0],a=r[1];return cI((function(){a(new DocumentFragment)}),[]),ki.exports.createElement(ki.exports.Fragment,null,n.open?ki.exports.createElement(jY,JL({},t,{ref:e})):i?ma.exports.createPortal(ki.exports.createElement(FY,{scope:t.__scopeSelect},ki.exports.createElement(mY.Slot,{scope:t.__scopeSelect},ki.exports.createElement("div",null,t.children))),i):null)})),IY=10,NY=wi(_Y(DY),2),FY=NY[0],zY=NY[1],jY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.onCloseAutoFocus,i=fi(t,Mn),a=SY(DY,n),o=wi(ki.exports.useState(null),2),s=o[0],u=o[1],l=wi(ki.exports.useState(null),2),c=l[0],f=l[1],d=wi(ki.exports.useState(null),2),h=d[0],p=d[1],v=iI(e,(function(t){return f(t)})),g=wi(ki.exports.useState(null),2),m=g[0],y=g[1],b=wi(ki.exports.useState(null),2),_=b[0],x=b[1],w=yY(n),k=wi(ki.exports.useState(!1),2),S=k[0],E=k[1],C=ki.exports.useRef(!0),A=ki.exports.useRef(!1),T=ki.exports.useRef(!1);ki.exports.useEffect((function(){if(c)return RW(c)}),[c]),hW();var M=wi(ki.exports.useState(),2),O=M[0],P=M[1];cI((function(){c&&P(window.getComputedStyle(c).zIndex)}),[c]);var R=ki.exports.useCallback((function(t){var e,n=w().map((function(t){return t.ref.current})),r=li(n),i=r[0],a=wi(r.slice(1).slice(-1),1)[0],o=document.activeElement,s=zi(t);try{for(s.s();!(e=s.n()).done;){var u=e.value;if(u===o||(null==u||u.scrollIntoView({block:"nearest"}),u===i&&h&&(h.scrollTop=0),u===a&&h&&(h.scrollTop=h.scrollHeight),null==u||u.focus(),document.activeElement!==o))return}}catch(l){s.e(l)}finally{s.f()}}),[w,h]),D=ki.exports.useCallback((function(){if(a.trigger&&a.valueNode&&s&&c&&h&&m&&_){var t=a.trigger.getBoundingClientRect(),e=c.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=_.getBoundingClientRect();if("rtl"!==a.dir){var i=r.left-e.left,o=n.left-i,u=t.left-o,l=t.width+u,f=Math.max(l,e.width),d=window.innerWidth-IY,p=aN(o,[IY,d-f]);s.style.minWidth=l+"px",s.style.left=p+"px"}else{var v=e.right-r.right,g=window.innerWidth-n.right-v,y=window.innerWidth-t.right-g,b=t.width+y,x=Math.max(b,e.width),k=window.innerWidth-IY,S=aN(g,[IY,k-x]);s.style.minWidth=b+"px",s.style.right=S+"px"}var C=w(),T=window.innerHeight-20,M=h.scrollHeight,O=window.getComputedStyle(c),P=parseInt(O.borderTopWidth,10),R=parseInt(O.paddingTop,10),D=parseInt(O.borderBottomWidth,10),L=P+R+M+parseInt(O.paddingBottom,10)+D,I=Math.min(5*m.offsetHeight,L),N=window.getComputedStyle(h),F=parseInt(N.paddingTop,10),z=parseInt(N.paddingBottom,10),j=t.top+t.height/2-IY,B=T-j,V=m.offsetHeight/2,H=P+R+(m.offsetTop+V),U=L-H;if(H<=j){var W=m===C[C.length-1].ref.current;s.style.bottom="0px";var Y=c.clientHeight-h.offsetTop-h.offsetHeight,G=H+Math.max(B,V+(W?z:0)+Y+D);s.style.height=G+"px"}else{var q=m===C[0].ref.current;s.style.top="0px";var Z=Math.max(j,P+h.offsetTop+(q?F:0)+V)+U;s.style.height=Z+"px",h.scrollTop=H-j+h.offsetTop}s.style.margin="".concat(IY,"px 0"),s.style.minHeight=I+"px",s.style.maxHeight=T+"px",E(!0),requestAnimationFrame((function(){return A.current=!0}))}}),[w,a.trigger,a.valueNode,s,c,h,m,_,a.dir]);cI((function(){return D()}),[D]);var L=ki.exports.useCallback((function(){return R([m,c])}),[R,m,c]);ki.exports.useEffect((function(){S&&L()}),[S,L]);var I=ki.exports.useCallback((function(t){t&&!0===C.current&&(D(),L(),C.current=!1)}),[D,L]),N=a.onOpenChange,F=a.triggerPointerDownPosRef;ki.exports.useEffect((function(){if(c){var t={x:0,y:0},e=function(e){var n,r,i,a;t={x:Math.abs(Math.round(e.pageX)-(null!==(n=null===(r=F.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(e.pageY)-(null!==(i=null===(a=F.current)||void 0===a?void 0:a.y)&&void 0!==i?i:0))}},n=function(n){t.x<=10&&t.y<=10?n.preventDefault():c.contains(n.target)||N(!1),document.removeEventListener("pointermove",e),F.current=null};return null!==F.current&&(document.addEventListener("pointermove",e),document.addEventListener("pointerup",n,{capture:!0,once:!0})),function(){document.removeEventListener("pointermove",e),document.removeEventListener("pointerup",n,{capture:!0})}}}),[c,N,F]),ki.exports.useEffect((function(){var t=function(){return N(!1)};return window.addEventListener("blur",t),window.addEventListener("resize",t),function(){window.removeEventListener("blur",t),window.removeEventListener("resize",t)}}),[N]);var z=aG((function(t){var e=w().filter((function(t){return!t.disabled})),n=e.find((function(t){return t.ref.current===document.activeElement})),r=oG(e,t,n);r&&setTimeout((function(){return r.ref.current.focus()}))})),j=wi(z,2),B=j[0],V=j[1],H=ki.exports.useCallback((function(t,e,n){var r=!T.current&&!n;(void 0!==a.value&&a.value===e||r)&&(y(t),r&&(T.current=!0))}),[a.value]),U=ki.exports.useCallback((function(){return null==c?void 0:c.focus()}),[c]),W=ki.exports.useCallback((function(t,e,n){var r=!T.current&&!n;(void 0!==a.value&&a.value===e||r)&&x(t)}),[a.value]);return ki.exports.createElement(FY,{scope:n,contentWrapper:s,content:c,viewport:h,onViewportChange:p,itemRefCallback:H,selectedItem:m,onItemLeave:U,itemTextRefCallback:W,selectedItemText:_,onScrollButtonChange:I,isPositioned:S,shouldExpandOnScrollRef:A,searchRef:B},ki.exports.createElement(dY,{as:aI,allowPinchZoom:!0},ki.exports.createElement("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O}},ki.exports.createElement(yW,{asChild:!0,trapped:a.open,onMountAutoFocus:function(t){t.preventDefault()},onUnmountAutoFocus:VI(r,(function(t){var e;null===(e=a.trigger)||void 0===e||e.focus({preventScroll:!0}),t.preventDefault()}))},ki.exports.createElement(lW,JL({role:"listbox",id:a.contentId,"data-state":a.open?"open":"closed",dir:a.dir,onContextMenu:function(t){return t.preventDefault()}},i,{ref:v,style:_i({display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none"},i.style),disableOutsidePointerEvents:!0,onFocusOutside:function(t){return t.preventDefault()},onDismiss:function(){return a.onOpenChange(!1)},onKeyDown:VI(i.onKeyDown,(function(t){var e=t.ctrlKey||t.altKey||t.metaKey;if("Tab"===t.key&&t.preventDefault(),!e&&1===t.key.length&&V(t.key),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){var n=w().filter((function(t){return!t.disabled})).map((function(t){return t.ref.current}));if(["ArrowUp","End"].includes(t.key)&&(n=n.slice().reverse()),["ArrowUp","ArrowDown"].includes(t.key)){var r=t.target,i=n.indexOf(r);n=n.slice(i+1)}setTimeout((function(){return R(n)})),t.preventDefault()}}))}))))))})),BY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,On),i=zY("SelectViewport",n),a=iI(e,i.onViewportChange),o=ki.exports.useRef(0);return ki.exports.createElement(ki.exports.Fragment,null,ki.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}"}}),ki.exports.createElement(mY.Slot,{scope:n},ki.exports.createElement(lI.div,JL({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:_i({position:"relative",flex:1,overflow:"auto"},r.style),onScroll:VI(r.onScroll,(function(t){var e=t.currentTarget,n=i.contentWrapper,r=i.shouldExpandOnScrollRef;if(null!=r&&r.current&&n){var a=Math.abs(o.current-e.scrollTop);if(a>0){var s=window.innerHeight-20,u=parseFloat(n.style.minHeight),l=parseFloat(n.style.height),c=Math.max(u,l);if(c<s){var f=c+a,d=Math.min(s,f),h=f-d;n.style.height=d+"px","0px"===n.style.bottom&&(e.scrollTop=h>0?h:0,n.style.justifyContent="flex-end")}}}o.current=e.scrollTop}))}))))})),VY=wi(_Y("SelectGroup"),2),HY=VY[0],UY=VY[1],WY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Pn),i=hI();return ki.exports.createElement(HY,{scope:n,id:i},ki.exports.createElement(lI.div,JL({role:"group","aria-labelledby":i},r,{ref:e})))})),YY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Rn),i=UY("SelectLabel",n);return ki.exports.createElement(lI.div,JL({id:i.id},r,{ref:e}))})),GY="SelectItem",qY=wi(_Y(GY),2),ZY=qY[0],XY=qY[1],KY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.value,i=t.disabled,a=void 0!==i&&i,o=t.textValue,s=fi(t,Dn),u=SY(GY,n),l=zY(GY,n),c=u.value===r,f=wi(ki.exports.useState(null!=o?o:""),2),d=f[0],h=f[1],p=wi(ki.exports.useState(!1),2),v=p[0],g=p[1],m=iI(e,(function(t){var e;return null===(e=l.itemRefCallback)||void 0===e?void 0:e.call(l,t,r,a)})),y=hI(),b=function(){a||(u.onValueChange(r),u.onOpenChange(!1))};return ki.exports.createElement(ZY,{scope:n,value:r,disabled:a,textId:y,isSelected:c,onItemTextChange:ki.exports.useCallback((function(t){h((function(e){var n;return e||(null!==(n=null==t?void 0:t.textContent)&&void 0!==n?n:"").trim()}))}),[])},ki.exports.createElement(mY.ItemSlot,{scope:n,value:r,disabled:a,textValue:d},ki.exports.createElement(lI.div,JL({role:"option","aria-labelledby":y,"data-highlighted":v?"":void 0,"aria-selected":c&&v,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},s,{ref:m,onFocus:VI(s.onFocus,(function(){return g(!0)})),onBlur:VI(s.onBlur,(function(){return g(!1)})),onPointerUp:VI(s.onPointerUp,b),onPointerMove:VI(s.onPointerMove,(function(t){var e;a?null===(e=l.onItemLeave)||void 0===e||e.call(l):t.currentTarget.focus({preventScroll:!0})})),onPointerLeave:VI(s.onPointerLeave,(function(t){var e;t.currentTarget===document.activeElement&&(null===(e=l.onItemLeave)||void 0===e||e.call(l))})),onKeyDown:VI(s.onKeyDown,(function(t){var e;""!==(null===(e=l.searchRef)||void 0===e?void 0:e.current)&&" "===t.key||(pY.includes(t.key)&&b()," "===t.key&&t.preventDefault())}))}))))})),$Y="SelectItemText",QY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=(t.className,t.style,fi(t,Ln)),i=SY($Y,n),a=zY($Y,n),o=XY($Y,n),s=AY($Y,n),u=wi(ki.exports.useState(null),2),l=u[0],c=u[1],f=iI(e,(function(t){return c(t)}),o.onItemTextChange,(function(t){var e;return null===(e=a.itemTextRefCallback)||void 0===e?void 0:e.call(a,t,o.value,o.disabled)})),d=null==l?void 0:l.textContent,h=ki.exports.useMemo((function(){return ki.exports.createElement("option",{key:o.value,value:o.value,disabled:o.disabled},d)}),[o.disabled,o.value,d]),p=s.onNativeOptionAdd,v=s.onNativeOptionRemove;return cI((function(){return p(h),function(){return v(h)}}),[p,v,h]),ki.exports.createElement(ki.exports.Fragment,null,ki.exports.createElement(lI.span,JL({id:o.textId},r,{ref:f})),o.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ma.exports.createPortal(r.children,i.valueNode):null)})),JY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,In);return XY("SelectItemIndicator",n).isSelected?ki.exports.createElement(lI.span,JL({"aria-hidden":!0},r,{ref:e})):null})),tG=ki.exports.forwardRef((function(t,e){var n=zY("SelectScrollUpButton",t.__scopeSelect),r=wi(ki.exports.useState(!1),2),i=r[0],a=r[1],o=iI(e,n.onScrollButtonChange);return cI((function(){if(n.viewport&&n.isPositioned){var t=function(){var t=e.scrollTop>0;a(t)},e=n.viewport;return t(),e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}}}),[n.viewport,n.isPositioned]),i?ki.exports.createElement(nG,JL({},t,{ref:o,onAutoScroll:function(){var t=n.viewport,e=n.selectedItem;t&&e&&(t.scrollTop=t.scrollTop-e.offsetHeight)}})):null})),eG=ki.exports.forwardRef((function(t,e){var n=zY("SelectScrollDownButton",t.__scopeSelect),r=wi(ki.exports.useState(!1),2),i=r[0],a=r[1],o=iI(e,n.onScrollButtonChange);return cI((function(){if(n.viewport&&n.isPositioned){var t=function(){var t=e.scrollHeight-e.clientHeight,n=Math.ceil(e.scrollTop)<t;a(n)},e=n.viewport;return t(),e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}}}),[n.viewport,n.isPositioned]),i?ki.exports.createElement(nG,JL({},t,{ref:o,onAutoScroll:function(){var t=n.viewport,e=n.selectedItem;t&&e&&(t.scrollTop=t.scrollTop+e.offsetHeight)}})):null})),nG=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.onAutoScroll,i=fi(t,Nn),a=zY("SelectScrollButton",n),o=ki.exports.useRef(null),s=yY(n),u=ki.exports.useCallback((function(){null!==o.current&&(window.clearInterval(o.current),o.current=null)}),[]);return ki.exports.useEffect((function(){return function(){return u()}}),[u]),cI((function(){var t,e=s().find((function(t){return t.ref.current===document.activeElement}));null==e||null===(t=e.ref.current)||void 0===t||t.scrollIntoView({block:"nearest"})}),[s]),ki.exports.createElement(lI.div,JL({"aria-hidden":!0},i,{ref:e,style:_i({flexShrink:0},i.style),onPointerMove:VI(i.onPointerMove,(function(){var t;null===(t=a.onItemLeave)||void 0===t||t.call(a),null===o.current&&(o.current=window.setInterval(r,50))})),onPointerLeave:VI(i.onPointerLeave,(function(){u()}))}))})),rG=ki.exports.forwardRef((function(t,e){t.__scopeSelect;var n=fi(t,Fn);return ki.exports.createElement(lI.div,JL({"aria-hidden":!0},n,{ref:e}))})),iG=ki.exports.forwardRef((function(t,e){var n=t.value,r=fi(t,zn),i=ki.exports.useRef(null),a=iI(e,i),o=WI(n);return ki.exports.useEffect((function(){var t=i.current,e=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(e,"value").set;if(o!==n&&r){var a=new Event("change",{bubbles:!0});r.call(t,n),t.dispatchEvent(a)}}),[o,n]),ki.exports.createElement(AW,{asChild:!0},ki.exports.createElement("select",JL({},r,{ref:a,defaultValue:n})))}));function aG(t){var e=HI(t),n=ki.exports.useRef(""),r=ki.exports.useRef(0),i=ki.exports.useCallback((function(t){var i=n.current+t;e(i),function t(e){n.current=e,window.clearTimeout(r.current),""!==e&&(r.current=window.setTimeout((function(){return t("")}),1e3))}(i)}),[e]),a=ki.exports.useCallback((function(){n.current="",window.clearTimeout(r.current)}),[]);return ki.exports.useEffect((function(){return function(){return window.clearTimeout(r.current)}}),[]),[n,i,a]}function oG(t,e,n){var r=e.length>1&&Array.from(e).every((function(t){return t===e[0]}))?e[0]:e,i=n?t.indexOf(n):-1,a=function(t,e){return t.map((function(n,r){return t[(e+r)%t.length]}))}(t,Math.max(i,0));1===r.length&&(a=a.filter((function(t){return t!==n})));var o=a.find((function(t){return t.textValue.toLowerCase().startsWith(r.toLowerCase())}));return o!==n?o:void 0}iG.displayName="BubbleSelect";var sG=TY,uG=MY,lG=OY,cG=PY,fG=RY,dG=LY,hG=BY,pG=WY,vG=YY,gG=KY,mG=QY,yG=JY,bG=tG,_G=eG,xG=rG,wG=Object.freeze(Object.defineProperty({__proto__:null,createSelectScope:xY,Select:TY,SelectTrigger:MY,SelectValue:OY,SelectIcon:PY,SelectPortal:RY,SelectContent:LY,SelectViewport:BY,SelectGroup:WY,SelectLabel:YY,SelectItem:KY,SelectItemText:QY,SelectItemIndicator:JY,SelectScrollUpButton:tG,SelectScrollDownButton:eG,SelectSeparator:rG,Root:sG,Trigger:uG,Value:lG,Icon:cG,Portal:fG,Content:dG,Viewport:hG,Group:pG,Label:vG,Item:gG,ItemText:mG,ItemIndicator:yG,ScrollUpButton:bG,ScrollDownButton:_G,Separator:xG},Symbol.toStringTag,{value:"Module"})),kG=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("g",{clipPath:"url(#clip0_17_2062)",children:yk("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"})})}))},SG=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("g",{clipPath:"url(#clip0_17_4631)",children:yk("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"})})}))},EG=qC(uG)(J||(J=ci(["\n display: inline-flex;\n align-items: center;\n justify-content: space-between;\n background-color: ",";\n border-radius: ",";\n border: 1px solid ",";\n color: ",";\n padding: "," ","\n "," ",";\n flex: 1;\n height: ",";\n font-size: ",";\n"])),RL["--ll-color-background"],RL["--ll-border-radius-small"],RL["--ll-color-border"],RL["--ll-color-on-background-variant1"],RL["--ll-spacing-xx-small"],RL["--ll-spacing-x-small"],RL["--ll-spacing-xx-small"],RL["--ll-spacing-small"],(function(t){return"medium"===t.size?"32px":"40px"}),(function(t){return"medium"===t.size?RL["--ll-font-size-p"]:RL["--ll-font-size-h6"]})),CG=qC(PY)(tt||(tt=ci(["\n margin-left: ",";\n"])),RL["--ll-spacing-x-small"]),AG=qC(dG)(et||(et=ci(["\n overflow: hidden;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n min-width: 120px;\n z-index: 2;\n font-size: ",";\n"])),RL["--ll-color-background"],RL["--ll-border-radius-small"],RL["--ll-shadow-medium"],(function(t){return"medium"===t.size?RL["--ll-font-size-p"]:RL["--ll-font-size-h6"]})),TG=qC(gG)(nt||(nt=ci(["\n font-family: ",";\n font-size: inherit;\n padding: "," ","\n "," ",";\n outline: none;\n border-radius: ",";\n position: relative;\n color: ",";\n cursor: default;\n\n &[data-highlighted] {\n background-color: ",";\n color: ",";\n }\n"])),RL["--ll-font-family"],RL["--ll-spacing-xx-small"],RL["--ll-spacing-x-large"],RL["--ll-spacing-xx-small"],RL["--ll-spacing-large"],RL["--ll-border-radius-small"],RL["--ll-color-on-surface-variant1"],RL["--ll-color-primary"],RL["--ll-color-on-primary"]),MG=qC(yG)(rt||(rt=ci(["\n position: absolute;\n left: 0;\n height: 100%;\n left: 0;\n bottom: 0;\n width: ",";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n"])),RL["--ll-spacing-large"]),OG=qC(hG)(it||(it=ci(["\n font-size: inherit;\n padding: ",";\n"])),RL["--ll-spacing-base-unit"]),PG=qC(fG)(at||(at=ci(["\n z-index: 1;\n"]))),RG=Object.freeze(Object.defineProperty({__proto__:null,Trigger:EG,SelectIcon:CG,Content:AG,Item:TG,ItemIndicator:MG,Viewport:OG,Portal:PG},Symbol.toStringTag,{value:"Module"})),DG=wG.Root,LG=RG.Portal;hi("g",Object.freeze(Object.defineProperty({__proto__:null,Root:DG,Trigger:function(t){var e=t.size,n=void 0===e?"medium":e,r=t.children,i=fi(t,jn);return YL(EG,_i(_i({size:n},i),{},{children:[r,WL(PY,{children:WL(qL,{SVGElement:kG,fill:RL["--ll-color-on-background-variant1"],height:20})})]}))},Content:function(t){var e=t.size,n=void 0===e?"medium":e,r=t.children,i=fi(t,Bn);return WL(AG,_i(_i({size:n},i),{},{children:WL(OG,{children:r})}))},Item:function(t){var e=t.children,n=fi(t,Vn);return YL(TG,_i(_i({},n),{},{children:[WL(mG,{children:e}),WL(MG,{children:WL(qL,{SVGElement:SG,fill:"currentColor",height:12})})]}))},Portal:LG},Symbol.toStringTag,{value:"Module"})));function IG(t){return t.split("-")[0]}function NG(t){return t.split("-")[1]}function FG(t){return["top","bottom"].includes(IG(t))?"x":"y"}function zG(t){return"y"===t?"height":"width"}function jG(t,e,n){var r,i=t.reference,a=t.floating,o=i.x+i.width/2-a.width/2,s=i.y+i.height/2-a.height/2,u=FG(e),l=zG(u),c=i[l]/2-a[l]/2,f="x"===u;switch(IG(e)){case"top":r={x:o,y:i.y-a.height};break;case"bottom":r={x:o,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-a.width,y:s};break;default:r={x:i.x,y:i.y}}switch(NG(e)){case"start":r[u]-=c*(n&&f?-1:1);break;case"end":r[u]+=c*(n&&f?-1:1)}return r}var BG=function(){var t=pi(di().mark((function t(e,n,r){var i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k,S,E,C,A,T;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.placement,a=void 0===i?"bottom":i,o=r.strategy,s=void 0===o?"absolute":o,u=r.middleware,l=void 0===u?[]:u,c=r.platform,t.next=9,null==c.isRTL?void 0:c.isRTL(n);case 9:return f=t.sent,t.next=12,c.getElementRects({reference:e,floating:n,strategy:s});case 12:d=t.sent,h=jG(d,a,f),p=h.x,v=h.y,g=a,m={},y=0,b=0;case 20:if(!(b<l.length)){t.next=52;break}return _=l[b],x=_.name,w=_.fn,t.next=26,w({x:p,y:v,initialPlacement:a,placement:g,strategy:s,middlewareData:m,rects:d,platform:c,elements:{reference:e,floating:n}});case 26:if(k=t.sent,S=k.x,E=k.y,C=k.data,A=k.reset,p=null!=S?S:p,v=null!=E?E:v,m=_i(_i({},m),{},xi({},x,_i(_i({},m[x]),C))),!(A&&y<=50)){t.next=49;break}if(y++,t.t0="object"==Fi(A),!t.t0){t.next=47;break}if(A.placement&&(g=A.placement),t.t1=A.rects,!t.t1){t.next=46;break}if(!0!==A.rects){t.next=44;break}return t.next=41,c.getElementRects({reference:e,floating:n,strategy:s});case 41:t.t2=t.sent,t.next=45;break;case 44:t.t2=A.rects;case 45:d=t.t2;case 46:T=jG(d,g,f),p=T.x,v=T.y;case 47:return b=-1,t.abrupt("continue",49);case 49:b++,t.next=20;break;case 52:return t.abrupt("return",{x:p,y:v,placement:g,strategy:s,middlewareData:m});case 53:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}();function VG(t){return"number"!=typeof t?function(t){return _i({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function HG(t){return _i(_i({},t),{},{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function UG(t,e){return WG.apply(this,arguments)}function WG(){return WG=pi(di().mark((function t(e,n){var r,i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===n&&(n={}),i=e.x,a=e.y,o=e.platform,s=e.rects,u=e.elements,l=e.strategy,f=(c=n).boundary,d=void 0===f?"clippingAncestors":f,h=c.rootBoundary,p=void 0===h?"viewport":h,v=c.elementContext,g=void 0===v?"floating":v,m=c.altBoundary,y=void 0!==m&&m,b=c.padding,_=VG(void 0===b?0:b),x=u[y?"floating"===g?"reference":"floating":g],t.t0=HG,t.t1=o,t.next=24,null==o.isElement?void 0:o.isElement(x);case 24:if(t.t3=r=t.sent,t.t2=null==t.t3,t.t2){t.next=28;break}t.t2=r;case 28:if(!t.t2){t.next=32;break}t.t4=x,t.next=38;break;case 32:if(t.t5=x.contextElement,t.t5){t.next=37;break}return t.next=36,null==o.getDocumentElement?void 0:o.getDocumentElement(u.floating);case 36:t.t5=t.sent;case 37:t.t4=t.t5;case 38:return t.t6=t.t4,t.t7=d,t.t8=p,t.t9=l,t.t10={element:t.t6,boundary:t.t7,rootBoundary:t.t8,strategy:t.t9},t.next=45,t.t1.getClippingRect.call(t.t1,t.t10);case 45:if(t.t11=t.sent,w=(0,t.t0)(t.t11),t.t12=HG,!o.convertOffsetParentRelativeRectToViewportRelativeRect){t.next=61;break}return t.t14=o,t.t15="floating"===g?_i(_i({},s.floating),{},{x:i,y:a}):s.reference,t.next=53,null==o.getOffsetParent?void 0:o.getOffsetParent(u.floating);case 53:return t.t16=t.sent,t.t17=l,t.t18={rect:t.t15,offsetParent:t.t16,strategy:t.t17},t.next=58,t.t14.convertOffsetParentRelativeRectToViewportRelativeRect.call(t.t14,t.t18);case 58:t.t13=t.sent,t.next=62;break;case 61:t.t13=s[g];case 62:return t.t19=t.t13,k=(0,t.t12)(t.t19),t.abrupt("return",{top:w.top-k.top+_.top,bottom:k.bottom-w.bottom+_.bottom,left:w.left-k.left+_.left,right:k.right-w.right+_.right});case 65:case"end":return t.stop()}}),t)}))),WG.apply(this,arguments)}var YG=Math.min,GG=Math.max;function qG(t,e,n){return GG(t,YG(e,n))}var ZG=function(t){return{name:"arrow",options:t,fn:function(e){return pi(di().mark((function n(){var r,i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k,S,E,C,A,T,M,O,P;return di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=(a=null!=t?t:{}).element,s=a.padding,u=void 0===s?0:s,l=e.x,c=e.y,f=e.placement,d=e.rects,h=e.platform,null!=o){n.next=3;break}return n.abrupt("return",{});case 3:return p=VG(u),v={x:l,y:c},g=FG(f),m=NG(f),y=zG(g),n.next=10,h.getDimensions(o);case 10:return b=n.sent,_="y"===g?"top":"left",x="y"===g?"bottom":"right",w=d.reference[y]+d.reference[g]-v[g]-d.floating[y],k=v[g]-d.reference[g],n.next=17,null==h.getOffsetParent?void 0:h.getOffsetParent(o);case 17:return S=n.sent,0===(E=S?"y"===g?S.clientHeight||0:S.clientWidth||0:0)&&(E=d.floating[y]),C=w/2-k/2,A=p[_],T=E-b[y]-p[x],M=E/2-b[y]/2+C,O=qG(A,M,T),P=("start"===m?p[_]:p[x])>0&&M!==O&&d.reference[y]<=d.floating[y]?M<A?A-M:T-M:0,n.abrupt("return",(xi(i={},g,v[g]-P),xi(i,"data",(xi(r={},g,O),xi(r,"centerOffset",M-O),r)),i));case 22:case"end":return n.stop()}}),n)})))()}}},XG={left:"right",right:"left",bottom:"top",top:"bottom"};function KG(t){return t.replace(/left|right|bottom|top/g,(function(t){return XG[t]}))}function $G(t,e,n){void 0===n&&(n=!1);var r=NG(t),i=FG(t),a=zG(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=KG(o)),{main:o,cross:KG(o)}}var QG={start:"end",end:"start"};function JG(t){return t.replace(/start|end/g,(function(t){return QG[t]}))}var tq=["top","right","bottom","left"];function eq(t){var e=KG(t);return[JG(t),e,JG(e)]}var nq=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(e){return pi(di().mark((function n(){var r,i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k,S,E,C,A,T,M,O,P,R,D,L,I,N;return di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.placement,a=e.middlewareData,o=e.rects,s=e.initialPlacement,u=e.platform,l=e.elements,f=(c=t).mainAxis,d=void 0===f||f,h=c.crossAxis,p=void 0===h||h,v=c.fallbackPlacements,g=c.fallbackStrategy,m=void 0===g?"bestFit":g,y=c.flipAlignment,b=void 0===y||y,_=fi(c,Hn),x=IG(i),w=v||(x!==s&&b?eq(s):[KG(s)]),k=[s].concat(mi(w)),n.next=22,UG(e,_);case 22:if(S=n.sent,E=[],C=(null==(r=a.flip)?void 0:r.overflows)||[],d&&E.push(S[x]),!p){n.next=36;break}return n.t0=$G,n.t1=i,n.t2=o,n.next=31,null==u.isRTL?void 0:u.isRTL(l.floating);case 31:n.t3=n.sent,A=(0,n.t0)(n.t1,n.t2,n.t3),T=A.main,M=A.cross,E.push(S[T],S[M]);case 36:if(C=[].concat(mi(C),[{placement:i,overflows:E}]),E.every((function(t){return t<=0}))){n.next=51;break}if(R=(null!=(O=null==(P=a.flip)?void 0:P.index)?O:0)+1,!(D=k[R])){n.next=40;break}return n.abrupt("return",{data:{index:R,overflows:C},reset:{placement:D}});case 40:L="bottom",n.t4=m,n.next="bestFit"===n.t4?44:"initialPlacement"===n.t4?47:49;break;case 44:return N=null==(I=C.map((function(t){return[t,t.overflows.filter((function(t){return t>0})).reduce((function(t,e){return t+e}),0)]})).sort((function(t,e){return t[1]-e[1]}))[0])?void 0:I[0].placement,N&&(L=N),n.abrupt("break",49);case 47:return L=s,n.abrupt("break",49);case 49:if(i===L){n.next=51;break}return n.abrupt("return",{reset:{placement:L}});case 51:return n.abrupt("return",{});case 52:case"end":return n.stop()}}),n)})))()}}};function rq(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function iq(t){return tq.some((function(e){return t[e]>=0}))}var aq=function(t){var e=void 0===t?{}:t,n=e.strategy,r=void 0===n?"referenceHidden":n,i=fi(e,Un);return{name:"hide",fn:function(t){return pi(di().mark((function e(){var n,a,o,s,u;return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.rects,e.t0=r,e.next="referenceHidden"===e.t0?4:"escaped"===e.t0?9:14;break;case 4:return e.next=6,UG(t,_i(_i({},i),{},{elementContext:"reference"}));case 6:return a=e.sent,o=rq(a,n.reference),e.abrupt("return",{data:{referenceHiddenOffsets:o,referenceHidden:iq(o)}});case 9:return e.next=11,UG(t,_i(_i({},i),{},{altBoundary:!0}));case 11:return s=e.sent,u=rq(s,n.floating),e.abrupt("return",{data:{escapedOffsets:u,escaped:iq(u)}});case 14:return e.abrupt("return",{});case 15:case"end":return e.stop()}}),e)})))()}}};function oq(t,e){return sq.apply(this,arguments)}function sq(){return sq=pi(di().mark((function t(e,n){var r,i,a,o,s,u,l,c,f,d,h,p,v,g;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.placement,i=e.platform,a=e.elements,t.next=5,null==i.isRTL?void 0:i.isRTL(a.floating);case 5:return o=t.sent,s=IG(r),u=NG(r),l="x"===FG(r),c=["left","top"].includes(s)?-1:1,f=o&&l?-1:1,d="function"==typeof n?n(e):n,h="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:_i({mainAxis:0,crossAxis:0,alignmentAxis:null},d),p=h.mainAxis,v=h.crossAxis,g=h.alignmentAxis,t.abrupt("return",(u&&"number"==typeof g&&(v="end"===u?-1*g:g),l?{x:v*f,y:p*c}:{x:p*c,y:v*f}));case 14:case"end":return t.stop()}}),t)}))),sq.apply(this,arguments)}var uq=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(e){return pi(di().mark((function n(){var r,i,a;return di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.x,i=e.y,n.next=4,oq(e,t);case 4:return a=n.sent,n.abrupt("return",{x:r+a.x,y:i+a.y,data:a});case 6:case"end":return n.stop()}}),n)})))()}}};function lq(t){return"x"===t?"y":"x"}var cq=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(e){return pi(di().mark((function n(){var r,i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k,S,E,C,A;return di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.x,a=e.y,o=e.placement,u=(s=t).mainAxis,l=void 0===u||u,c=s.crossAxis,f=void 0!==c&&c,d=s.limiter,h=void 0===d?{fn:function(t){return{x:t.x,y:t.y}}}:d,p=fi(s,Wn),v={x:i,y:a},n.next=14,UG(e,p);case 14:return g=n.sent,m=FG(IG(o)),y=lq(m),b=v[m],_=v[y],l&&(x="y"===m?"bottom":"right",w=b+g["y"===m?"top":"left"],k=b-g[x],b=qG(w,b,k)),f&&(S="y"===y?"bottom":"right",E=_+g["y"===y?"top":"left"],C=_-g[S],_=qG(E,_,C)),A=h.fn(_i(_i({},e),{},(xi(r={},m,b),xi(r,y,_),r))),n.abrupt("return",_i(_i({},A),{},{data:{x:A.x-i,y:A.y-a}}));case 22:case"end":return n.stop()}}),n)})))()}}},fq=function(t){return void 0===t&&(t={}),{options:t,fn:function(e){var n,r=e.x,i=e.y,a=e.placement,o=e.rects,s=e.middlewareData,u=t,l=u.offset,c=void 0===l?0:l,f=u.mainAxis,d=void 0===f||f,h=u.crossAxis,p=void 0===h||h,v={x:r,y:i},g=FG(a),m=lq(g),y=v[g],b=v[m],_="function"==typeof c?c(_i(_i({},o),{},{placement:a})):c,x="number"==typeof _?{mainAxis:_,crossAxis:0}:_i({mainAxis:0,crossAxis:0},_);if(d){var w="y"===g?"height":"width",k=o.reference[g]-o.floating[w]+x.mainAxis,S=o.reference[g]+o.reference[w]-x.mainAxis;y<k?y=k:y>S&&(y=S)}if(p){var E,C,A,T,M="y"===g?"width":"height",O=["top","left"].includes(IG(a)),P=o.reference[m]-o.floating[M]+(O&&null!=(E=null==(C=s.offset)?void 0:C[m])?E:0)+(O?0:x.crossAxis),R=o.reference[m]+o.reference[M]+(O?0:null!=(A=null==(T=s.offset)?void 0:T[m])?A:0)-(O?x.crossAxis:0);b<P?b=P:b>R&&(b=R)}return xi(n={},g,y),xi(n,m,b),n}}};function dq(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function hq(t){if(null==t)return window;if(!dq(t)){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function pq(t){return hq(t).getComputedStyle(t)}function vq(t){return dq(t)?"":t?(t.nodeName||"").toLowerCase():""}function gq(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function mq(t){return t instanceof hq(t).HTMLElement}function yq(t){return t instanceof hq(t).Element}function bq(t){return!(("undefined"==typeof ShadowRoot?"undefined":Fi(ShadowRoot))>"u")&&(t instanceof hq(t).ShadowRoot||t instanceof ShadowRoot)}function _q(t){var e=pq(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function xq(t){return["table","td","th"].includes(vq(t))}function wq(t){var e=/firefox/i.test(gq()),n=pq(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function kq(){return!/^((?!chrome|android).)*safari/i.test(gq())}var Sq=Math.min,Eq=Math.max,Cq=Math.round;function Aq(t,e,n){var r,i,a,o;void 0===e&&(e=!1),void 0===n&&(n=!1);var s=t.getBoundingClientRect(),u=1,l=1;e&&mq(t)&&(u=t.offsetWidth>0&&Cq(s.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Cq(s.height)/t.offsetHeight||1);var c=yq(t)?hq(t):window,f=!kq()&&n,d=(s.left+(f&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/u,h=(s.top+(f&&null!=(a=null==(o=c.visualViewport)?void 0:o.offsetTop)?a:0))/l,p=s.width/u,v=s.height/l;return{width:p,height:v,top:h,right:d+p,bottom:h+v,left:d,x:d,y:h}}function Tq(t){return((function(t){return t instanceof hq(t).Node}(t)?t.ownerDocument:t.document)||window.document).documentElement}function Mq(t){return yq(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Oq(t){return Aq(Tq(t)).left+Mq(t).scrollLeft}function Pq(t,e,n){var r=mq(e),i=Tq(e),a=Aq(t,r&&function(t){var e=Aq(t);return Cq(e.width)!==t.offsetWidth||Cq(e.height)!==t.offsetHeight}(e),"fixed"===n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==vq(e)||_q(i))&&(o=Mq(e)),mq(e)){var u=Aq(e,!0);s.x=u.x+e.clientLeft,s.y=u.y+e.clientTop}else i&&(s.x=Oq(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}function Rq(t){return"html"===vq(t)?t:t.assignedSlot||t.parentNode||(bq(t)?t.host:null)||Tq(t)}function Dq(t){return mq(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function Lq(t){for(var e=hq(t),n=Dq(t);n&&xq(n)&&"static"===getComputedStyle(n).position;)n=Dq(n);return n&&("html"===vq(n)||"body"===vq(n)&&"static"===getComputedStyle(n).position&&!wq(n))?e:n||function(t){var e=Rq(t);for(bq(e)&&(e=e.host);mq(e)&&!["html","body"].includes(vq(e));){if(wq(e))return e;e=e.parentNode}return null}(t)||e}function Iq(t){if(mq(t))return{width:t.offsetWidth,height:t.offsetHeight};var e=Aq(t);return{width:e.width,height:e.height}}function Nq(t){var e=Rq(t);return["html","body","#document"].includes(vq(e))?t.ownerDocument.body:mq(e)&&_q(e)?e:Nq(e)}function Fq(t,e){var n;void 0===e&&(e=[]);var r=Nq(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),a=hq(r),o=i?[a].concat(a.visualViewport||[],_q(r)?r:[]):r,s=e.concat(o);return i?s:s.concat(Fq(o))}function zq(t,e,n){return"viewport"===e?HG(function(t,e){var n=hq(t),r=Tq(t),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;var l=kq();(l||!l&&"fixed"===e)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}(t,n)):yq(e)?function(t,e){var n=Aq(t,!1,"fixed"===e),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}}(e,n):HG(function(t){var e,n=Tq(t),r=Mq(t),i=null==(e=t.ownerDocument)?void 0:e.body,a=Eq(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Eq(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Oq(t),u=-r.scrollTop;return"rtl"===pq(i||n).direction&&(s+=Eq(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}(Tq(t)))}function jq(t){var e=Fq(t),n=["absolute","fixed"].includes(pq(t).position)&&mq(t)?Lq(t):t;return yq(n)?e.filter((function(t){return yq(t)&&function(t,e){var n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&bq(n)){var r=e;do{if(r&&t===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(t,n)&&"body"!==vq(t)})):[]}var Bq={getClippingRect:function(t){var e=t.element,n=t.boundary,r=t.rootBoundary,i=t.strategy,a=[].concat(mi("clippingAncestors"===n?jq(e):[].concat(n)),[r]),o=a[0],s=a.reduce((function(t,n){var r=zq(e,n,i);return t.top=Eq(r.top,t.top),t.right=Sq(r.right,t.right),t.bottom=Sq(r.bottom,t.bottom),t.left=Eq(r.left,t.left),t}),zq(e,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var e=t.rect,n=t.offsetParent,r=t.strategy,i=mq(n),a=Tq(n);if(n===a)return e;var o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==vq(n)||_q(a))&&(o=Mq(n)),mq(n))){var u=Aq(n,!0);s.x=u.x+n.clientLeft,s.y=u.y+n.clientTop}return _i(_i({},e),{},{x:e.x-o.scrollLeft+s.x,y:e.y-o.scrollTop+s.y})},isElement:yq,getDimensions:Iq,getOffsetParent:Lq,getDocumentElement:Tq,getElementRects:function(t){var e=t.reference,n=t.floating,r=t.strategy;return{reference:Pq(e,Lq(n),r),floating:_i(_i({},Iq(n)),{},{x:0,y:0})}},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===pq(t).direction}};function Vq(t,e,n,r){void 0===r&&(r={});var i=r,a=i.ancestorScroll,o=void 0===a||a,s=i.ancestorResize,u=void 0===s||s,l=i.elementResize,c=void 0===l||l,f=i.animationFrame,d=void 0!==f&&f,h=o&&!d,p=u&&!d,v=h||p?[].concat(mi(yq(t)?Fq(t):[]),mi(Fq(e))):[];v.forEach((function(t){h&&t.addEventListener("scroll",n,{passive:!0}),p&&t.addEventListener("resize",n)}));var g=null;if(c){var m=!0;g=new ResizeObserver((function(){m||n(),m=!1})),yq(t)&&!d&&g.observe(t),g.observe(e)}var y,b=d?Aq(t):null;return d&&function e(){var r=Aq(t);b&&(r.x!==b.x||r.y!==b.y||r.width!==b.width||r.height!==b.height)&&n(),b=r,y=requestAnimationFrame(e)}(),n(),function(){var t;v.forEach((function(t){h&&t.removeEventListener("scroll",n),p&&t.removeEventListener("resize",n)})),null==(t=g)||t.disconnect(),g=null,d&&cancelAnimationFrame(y)}}var Hq=("undefined"==typeof document?"undefined":Fi(document))<"u"?ki.exports.useLayoutEffect:ki.exports.useEffect;function Uq(t,e){if(t===e)return!0;if(Fi(t)!=Fi(e))return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;var n,r,i;if(t&&e&&"object"==Fi(t)){if(Array.isArray(t)){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!Uq(t[r],e[r]))return!1;return!0}if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){var a=i[r];if(!("_owner"===a&&t.$$typeof||Uq(t[a],e[a])))return!1}return!0}return t!=t&&e!=e}function Wq(t){var e=void 0===t?{}:t,n=e.middleware,r=e.placement,i=void 0===r?"bottom":r,a=e.strategy,o=void 0===a?"absolute":a,s=e.whileElementsMounted,u=ki.exports.useRef(null),l=ki.exports.useRef(null),c=function(t){var e=ki.exports.useRef(t);return Hq((function(){e.current=t})),e}(s),f=ki.exports.useRef(null),d=wi(ki.exports.useState({x:null,y:null,strategy:o,placement:i,middlewareData:{}}),2),h=d[0],p=d[1],v=wi(ki.exports.useState(n),2),g=v[0],m=v[1];Uq(null==g?void 0:g.map((function(t){return t.options})),null==n?void 0:n.map((function(t){return t.options})))||m(n);var y=ki.exports.useCallback((function(){!u.current||!l.current||function(t,e,n){return BG(t,e,_i({platform:Bq},n))}(u.current,l.current,{middleware:g,placement:i,strategy:o}).then((function(t){b.current&&ma.exports.flushSync((function(){p(t)}))}))}),[g,i,o]);Hq((function(){b.current&&y()}),[y]);var b=ki.exports.useRef(!1);Hq((function(){return b.current=!0,function(){b.current=!1}}),[]);var _=ki.exports.useCallback((function(){if("function"==typeof f.current&&(f.current(),f.current=null),u.current&&l.current)if(c.current){var t=c.current(u.current,l.current,y);f.current=t}else y()}),[y,c]),x=ki.exports.useCallback((function(t){u.current=t,_()}),[_]),w=ki.exports.useCallback((function(t){l.current=t,_()}),[_]),k=ki.exports.useMemo((function(){return{reference:u,floating:l}}),[]);return ki.exports.useMemo((function(){return _i(_i({},h),{},{update:y,refs:k,reference:x,floating:w})}),[h,y,k,x,w])}var Yq=function(t){var e=t.element,n=t.padding;return{name:"arrow",options:t,fn:function(t){return function(t){return Object.prototype.hasOwnProperty.call(t,"current")}(e)?null!=e.current?ZG({element:e.current,padding:n}).fn(t):{}:e?ZG({element:e,padding:n}).fn(t):{}}}},Gq=ki.exports.forwardRef((function(t,e){var n=t.children,r=t.width,i=void 0===r?10:r,a=t.height,o=void 0===a?5:a,s=fi(t,Yn);return ki.exports.createElement(lI.svg,JL({},s,{ref:e,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?n:ki.exports.createElement("polygon",{points:"0,0 30,0 15,10"}))})),qq=Gq,Zq="Popper",Xq=wi(tI(Zq),2),Kq=Xq[0],$q=Xq[1],Qq=wi(Kq(Zq),2),Jq=Qq[0],tZ=Qq[1],eZ=ki.exports.forwardRef((function(t,e){var n=t.__scopePopper,r=t.virtualRef,i=fi(t,Gn),a=tZ("PopperAnchor",n),o=ki.exports.useRef(null),s=iI(e,o);return ki.exports.useEffect((function(){a.onAnchorChange((null==r?void 0:r.current)||o.current)})),r?null:ki.exports.createElement(lI.div,JL({},i,{ref:s}))})),nZ="PopperContent",rZ=wi(Kq(nZ),2),iZ=rZ[0],aZ=rZ[1],oZ=wi(Kq(nZ,{hasParent:!1,positionUpdateFns:new Set}),2),sZ=oZ[0],uZ=oZ[1],lZ=ki.exports.forwardRef((function(t,e){var n,r,i,a,o,s,u,l,c=t.__scopePopper,f=t.side,d=void 0===f?"bottom":f,h=t.sideOffset,p=void 0===h?0:h,v=t.align,g=void 0===v?"center":v,m=t.alignOffset,y=void 0===m?0:m,b=t.arrowPadding,_=void 0===b?0:b,x=t.collisionBoundary,w=void 0===x?[]:x,k=t.collisionPadding,S=void 0===k?0:k,E=t.sticky,C=void 0===E?"partial":E,A=t.hideWhenDetached,T=void 0!==A&&A,M=t.avoidCollisions,O=void 0===M||M,P=fi(t,qn),R=tZ(nZ,c),D=wi(ki.exports.useState(null),2),L=D[0],I=D[1],N=iI(e,(function(t){return I(t)})),F=wi(ki.exports.useState(null),2),z=F[0],j=F[1],B=YI(z),V=null!==(n=null==B?void 0:B.width)&&void 0!==n?n:0,H=null!==(r=null==B?void 0:B.height)&&void 0!==r?r:0,U=d+("center"!==g?"-"+g:""),W="number"==typeof S?S:_i({top:0,right:0,bottom:0,left:0},S),Y=Array.isArray(w)?w:[w],G=Y.length>0,q={padding:W,boundary:Y.filter(hZ),altBoundary:G},Z=Wq({strategy:"fixed",placement:U,whileElementsMounted:Vq,middleware:[uq({mainAxis:p+H,alignmentAxis:y}),O?cq(_i({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?fq():void 0},q)):void 0,z?Yq({element:z,padding:_}):void 0,O?nq(_i({},q)):void 0,pZ({arrowWidth:V,arrowHeight:H}),T?aq({strategy:"referenceHidden"}):void 0].filter(dZ)}),X=Z.reference,K=Z.floating,$=Z.strategy,Q=Z.x,J=Z.y,tt=Z.placement,et=Z.middlewareData,nt=Z.update;cI((function(){X(R.anchor)}),[X,R.anchor]);var rt=null!==Q&&null!==J,it=wi(vZ(tt),2),at=it[0],ot=it[1],st=null===(i=et.arrow)||void 0===i?void 0:i.x,ut=null===(a=et.arrow)||void 0===a?void 0:a.y,lt=0!==(null===(o=et.arrow)||void 0===o?void 0:o.centerOffset),ct=wi(ki.exports.useState(),2),ft=ct[0],dt=ct[1];cI((function(){L&&dt(window.getComputedStyle(L).zIndex)}),[L]);var ht=uZ(nZ,c),pt=ht.hasParent,vt=ht.positionUpdateFns,gt=!pt;ki.exports.useLayoutEffect((function(){if(!gt)return vt.add(nt),function(){vt.delete(nt)}}),[gt,vt,nt]),ki.exports.useLayoutEffect((function(){gt&&rt&&Array.from(vt).reverse().forEach((function(t){return requestAnimationFrame(t)}))}),[gt,rt,vt]);var mt=_i(_i({"data-side":at,"data-align":ot},P),{},{ref:N,style:_i(_i({},P.style),{},{animation:rt?void 0:"none",opacity:null!==(s=et.hide)&&void 0!==s&&s.referenceHidden?0:void 0})});return ki.exports.createElement("div",{ref:K,"data-radix-popper-content-wrapper":"",style:xi({position:$,left:0,top:0,transform:rt?"translate3d(".concat(Math.round(Q),"px, ").concat(Math.round(J),"px, 0)"):"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ft},"--radix-popper-transform-origin",[null===(u=et.transformOrigin)||void 0===u?void 0:u.x,null===(l=et.transformOrigin)||void 0===l?void 0:l.y].join(" "))},ki.exports.createElement(iZ,{scope:c,placedSide:at,onArrowChange:j,arrowX:st,arrowY:ut,shouldHideArrow:lt},gt?ki.exports.createElement(sZ,{scope:c,hasParent:!0,positionUpdateFns:vt},ki.exports.createElement(lI.div,mt)):ki.exports.createElement(lI.div,mt)))})),cZ={top:"bottom",right:"left",bottom:"top",left:"right"},fZ=ki.exports.forwardRef((function(t,e){var n,r=t.__scopePopper,i=fi(t,Zn),a=aZ("PopperArrow",r),o=cZ[a.placedSide];return ki.exports.createElement("span",{ref:a.onArrowChange,style:(n={position:"absolute",left:a.arrowX,top:a.arrowY},xi(n,o,0),xi(n,"transformOrigin",{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide]),xi(n,"transform",{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide]),xi(n,"visibility",a.shouldHideArrow?"hidden":void 0),n)},ki.exports.createElement(qq,JL({},i,{ref:e,style:_i(_i({},i.style),{},{display:"block"})})))}));function dZ(t){return void 0!==t}function hZ(t){return null!==t}var pZ=function(t){return{name:"transformOrigin",options:t,fn:function(e){var n,r,i,a,o,s=e.placement,u=e.rects,l=e.middlewareData,c=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),f=c?0:t.arrowWidth,d=c?0:t.arrowHeight,h=wi(vZ(s),2),p=h[0],v={start:"0%",center:"50%",end:"100%"}[h[1]],g=(null!==(r=null===(i=l.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+f/2,m=(null!==(a=null===(o=l.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+d/2,y="",b="";return"bottom"===p?(y=c?v:"".concat(g,"px"),b="".concat(-d,"px")):"top"===p?(y=c?v:"".concat(g,"px"),b="".concat(u.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),b=c?v:"".concat(m,"px")):"left"===p&&(y="".concat(u.floating.width+d,"px"),b=c?v:"".concat(m,"px")),{data:{x:y,y:b}}}}};function vZ(t){var e=wi(t.split("-"),2),n=e[0],r=e[1];return[n,void 0===r?"center":r]}var gZ=function(t){var e=t.__scopePopper,n=t.children,r=wi(ki.exports.useState(null),2),i=r[0],a=r[1];return ki.exports.createElement(Jq,{scope:e,anchor:i,onAnchorChange:a},n)},mZ=eZ,yZ=lZ,bZ=fZ;var _Z=function(t){var e=t.present,n=t.children,r=function(t){var e=wi(ki.exports.useState(),2),n=e[0],r=e[1],i=ki.exports.useRef({}),a=ki.exports.useRef(t),o=ki.exports.useRef("none"),s=wi(function(t,e){return ki.exports.useReducer((function(t,n){var r=e[t][n];return null!=r?r:t}),t)}(t?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),2),u=s[0],l=s[1];return ki.exports.useEffect((function(){var t=xZ(i.current);o.current="mounted"===u?t:"none"}),[u]),cI((function(){var e=i.current,n=a.current;if(n!==t){var r=o.current,s=xZ(e);t?l("MOUNT"):"none"===s||"none"===(null==e?void 0:e.display)?l("UNMOUNT"):l(n&&r!==s?"ANIMATION_OUT":"UNMOUNT"),a.current=t}}),[t,l]),cI((function(){if(n){var t=function(t){var e=xZ(i.current).includes(t.animationName);t.target===n&&e&&ma.exports.flushSync((function(){return l("ANIMATION_END")}))},e=function(t){t.target===n&&(o.current=xZ(i.current))};return n.addEventListener("animationstart",e),n.addEventListener("animationcancel",t),n.addEventListener("animationend",t),function(){n.removeEventListener("animationstart",e),n.removeEventListener("animationcancel",t),n.removeEventListener("animationend",t)}}l("ANIMATION_END")}),[n,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:ki.exports.useCallback((function(t){t&&(i.current=getComputedStyle(t)),r(t)}),[])}}(e),i="function"==typeof n?n({present:r.isPresent}):ki.exports.Children.only(n),a=iI(r.ref,i.ref);return"function"==typeof n||r.isPresent?ki.exports.cloneElement(i,{ref:a}):null};function xZ(t){return(null==t?void 0:t.animationName)||"none"}_Z.displayName="Presence";var wZ="Popover",kZ=wi(tI(wZ,[$q]),2),SZ=kZ[0],EZ=kZ[1],CZ=$q(),AZ=wi(SZ(wZ),2),TZ=AZ[0],MZ=AZ[1],OZ=function(t){var e=t.__scopePopover,n=t.children,r=t.open,i=t.defaultOpen,a=t.onOpenChange,o=t.modal,s=void 0!==o&&o,u=CZ(e),l=ki.exports.useRef(null),c=wi(ki.exports.useState(!1),2),f=c[0],d=c[1],h=wi(UI({prop:r,defaultProp:i,onChange:a}),2),p=h[0],v=void 0!==p&&p,g=h[1];return ki.exports.createElement(gZ,u,ki.exports.createElement(TZ,{scope:e,contentId:hI(),triggerRef:l,open:v,onOpenChange:g,onOpenToggle:ki.exports.useCallback((function(){return g((function(t){return!t}))}),[g]),hasCustomAnchor:f,onCustomAnchorAdd:ki.exports.useCallback((function(){return d(!0)}),[]),onCustomAnchorRemove:ki.exports.useCallback((function(){return d(!1)}),[]),modal:s},n))},PZ=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,Xn),i=MZ("PopoverAnchor",n),a=CZ(n),o=i.onCustomAnchorAdd,s=i.onCustomAnchorRemove;return ki.exports.useEffect((function(){return o(),function(){return s()}}),[o,s]),ki.exports.createElement(mZ,JL({},a,r,{ref:e}))})),RZ=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,Kn),i=MZ("PopoverTrigger",n),a=CZ(n),o=iI(e,i.triggerRef),s=ki.exports.createElement(lI.button,JL({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":YZ(i.open)},r,{ref:o,onClick:VI(t.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:ki.exports.createElement(mZ,JL({asChild:!0},a),s)})),DZ="PopoverPortal",LZ=wi(SZ(DZ,{forceMount:void 0}),2),IZ=LZ[0],NZ=LZ[1],FZ=function(t){var e=t.__scopePopover,n=t.forceMount,r=t.children,i=t.container,a=MZ(DZ,e);return ki.exports.createElement(IZ,{scope:e,forceMount:n},ki.exports.createElement(_Z,{present:n||a.open},ki.exports.createElement(CW,{asChild:!0,container:i},r)))},zZ="PopoverContent",jZ=ki.exports.forwardRef((function(t,e){var n=NZ(zZ,t.__scopePopover),r=t.forceMount,i=void 0===r?n.forceMount:r,a=fi(t,$n),o=MZ(zZ,t.__scopePopover);return ki.exports.createElement(_Z,{present:i||o.open},o.modal?ki.exports.createElement(BZ,JL({},a,{ref:e})):ki.exports.createElement(VZ,JL({},a,{ref:e})))})),BZ=ki.exports.forwardRef((function(t,e){var n=MZ(zZ,t.__scopePopover),r=ki.exports.useRef(null),i=iI(e,r),a=ki.exports.useRef(!1);return ki.exports.useEffect((function(){var t=r.current;if(t)return RW(t)}),[]),ki.exports.createElement(dY,{as:aI,allowPinchZoom:!0},ki.exports.createElement(HZ,JL({},t,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:VI(t.onCloseAutoFocus,(function(t){var e;t.preventDefault(),a.current||null===(e=n.triggerRef.current)||void 0===e||e.focus()})),onPointerDownOutside:VI(t.onPointerDownOutside,(function(t){var e=t.detail.originalEvent,n=0===e.button&&!0===e.ctrlKey,r=2===e.button||n;a.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:VI(t.onFocusOutside,(function(t){return t.preventDefault()}),{checkForDefaultPrevented:!1})})))})),VZ=ki.exports.forwardRef((function(t,e){var n=MZ(zZ,t.__scopePopover),r=ki.exports.useRef(!1);return ki.exports.createElement(HZ,JL({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:function(e){var i,a;(null===(i=t.onCloseAutoFocus)||void 0===i||i.call(t,e),e.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),e.preventDefault());r.current=!1},onInteractOutside:function(e){var i,a;null===(i=t.onInteractOutside)||void 0===i||i.call(t,e),e.defaultPrevented||(r.current=!0);var o=e.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(o))&&e.preventDefault()}}))})),HZ=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=t.trapFocus,i=t.onOpenAutoFocus,a=t.onCloseAutoFocus,o=t.disableOutsidePointerEvents,s=t.onEscapeKeyDown,u=t.onPointerDownOutside,l=t.onFocusOutside,c=t.onInteractOutside,f=fi(t,Qn),d=MZ(zZ,n),h=CZ(n);return hW(),ki.exports.createElement(yW,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a},ki.exports.createElement(lW,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:l,onDismiss:function(){return d.onOpenChange(!1)}},ki.exports.createElement(yZ,JL({"data-state":YZ(d.open),role:"dialog",id:d.contentId},h,f,{ref:e,style:_i(_i({},f.style),{},xi({},"--radix-popover-content-transform-origin","var(--radix-popper-transform-origin)"))}))))})),UZ=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,Jn),i=MZ("PopoverClose",n);return ki.exports.createElement(lI.button,JL({type:"button"},r,{ref:e,onClick:VI(t.onClick,(function(){return i.onOpenChange(!1)}))}))})),WZ=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,tr),i=CZ(n);return ki.exports.createElement(bZ,JL({},i,r,{ref:e}))}));function YZ(t){return t?"open":"closed"}var GZ,qZ=OZ,ZZ=PZ,XZ=RZ,KZ=FZ,$Z=jZ,QZ=UZ,JZ=WZ,tX=Object.freeze(Object.defineProperty({__proto__:null,createPopoverScope:EZ,Popover:OZ,PopoverAnchor:PZ,PopoverTrigger:RZ,PopoverPortal:FZ,PopoverContent:jZ,PopoverClose:UZ,PopoverArrow:WZ,Root:qZ,Anchor:ZZ,Trigger:XZ,Portal:KZ,Content:$Z,Close:QZ,Arrow:JZ},Symbol.toStringTag,{value:"Module"})),eX=qC(XZ)(ot||(ot=ci(["\n background: none;\n border: none;\n padding: 0;\n"]))),nX=qC($Z)(st||(st=ci(["\n padding: ",";\n background-color: ",";\n box-shadow: ",";\n border-radius: ",";\n width: 240px;\n"])),RL["--ll-spacing-small"],RL["--ll-color-background"],RL["--ll-shadow-small"],RL["--ll-border-radius-small"]),rX=qC(JZ)(ut||(ut=ci(["\n fill: ",";\n"])),RL["--ll-color-background"]),iX=Object.freeze(Object.defineProperty({__proto__:null,Trigger:eX,Content:nX,Arrow:rX},Symbol.toStringTag,{value:"Module"})),aX=tX.Root,oX=tX.Portal,sX=iX.Trigger;hi("i",Object.freeze(Object.defineProperty({__proto__:null,Root:aX,Trigger:sX,Content:function(t){var e=t.side,n=t.children,r=t.className,i=t.sideOffset,a=void 0===i?8:i,o=t.collisionPadding;return WL(oX,{children:YL(nX,{side:e,className:r,sideOffset:a,collisionPadding:void 0===o?8:o,children:[WL(rX,{}),n]})})}},Symbol.toStringTag,{value:"Module"})));function uX(){return hi("z",uX=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}),uX.apply(this,arguments)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(GZ||(GZ={}));var lX="beforeunload";function cX(t,e,n){return Math.min(Math.max(t,e),n)}function fX(t){t.preventDefault(),t.returnValue=""}function dX(){var t=[];return{get length(){return t.length},push:function(e){return t.push(e),function(){t=t.filter((function(t){return t!==e}))}},call:function(e){t.forEach((function(t){return t&&t(e)}))}}}function hX(){return Math.random().toString(36).substr(2,8)}function pX(t){var e=t.pathname,n=void 0===e?"/":e,r=t.search,i=void 0===r?"":r,a=t.hash,o=void 0===a?"":a;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),o&&"#"!==o&&(n+="#"===o.charAt(0)?o:"#"+o),n}function vX(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}
|
|
57
|
-
/**
|
|
58
|
-
* react-location
|
|
59
|
-
*
|
|
60
|
-
* Copyright (c) TanStack
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the MIT license found in the
|
|
63
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
64
|
-
*
|
|
65
|
-
* @license MIT
|
|
66
|
-
*/function gX(){return gX=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},gX.apply(this,arguments)}function mX(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function yX(t){if(!t)return"";var e=decodeURIComponent(t);return"false"!==e&&("true"===e||(0*+e==0?+e:e))}var bX=["children","location","__experimental__snapshot"],_X=["location","__experimental__snapshot"],xX=["basepath","routes"],wX=ki.exports.createContext(null),kX=ki.exports.createContext(null),SX=ki.exports.createContext(null),EX=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),CX=EX?ki.exports.useLayoutEffect:ki.exports.useEffect,AX=function(){return EX?function(t){void 0===t&&(t={});var e=t.window,n=void 0===e?document.defaultView:e,r=n.history;function i(){var t=n.location,e=t.pathname,i=t.search,a=t.hash,o=r.state||{};return[o.idx,{pathname:e,search:i,hash:a,state:o.usr||null,key:o.key||"default"}]}var a=null;n.addEventListener("popstate",(function(){if(a)f.call(a),a=null;else{var t=GZ.Pop,e=i(),n=e[0],r=e[1];if(f.length){if(null!=n){var o=u-n;o&&(a={action:t,location:r,retry:function(){m(-1*o)}},m(o))}}else g(t)}}));var o=GZ.Pop,s=i(),u=s[0],l=s[1],c=dX(),f=dX();function d(t){return"string"==typeof t?t:pX(t)}function h(t,e){return void 0===e&&(e=null),uX({pathname:l.pathname,hash:"",search:""},"string"==typeof t?vX(t):t,{state:e,key:hX()})}function p(t,e){return[{usr:t.state,key:t.key,idx:e},d(t)]}function v(t,e,n){return!f.length||(f.call({action:t,location:e,retry:n}),!1)}function g(t){o=t;var e=i();u=e[0],l=e[1],c.call({action:o,location:l})}function m(t){r.go(t)}null==u&&(u=0,r.replaceState(uX({},r.state,{idx:u}),""));var y={get action(){return o},get location(){return l},createHref:d,push:function t(e,i){var a=GZ.Push,o=h(e,i);if(v(a,o,(function(){t(e,i)}))){var s=p(o,u+1),l=s[0],c=s[1];try{r.pushState(l,"",c)}catch(f){n.location.assign(c)}g(a)}},replace:function t(e,n){var i=GZ.Replace,a=h(e,n);if(v(i,a,(function(){t(e,n)}))){var o=p(a,u),s=o[0],l=o[1];r.replaceState(s,"",l),g(i)}},go:m,back:function(){m(-1)},forward:function(){m(1)},listen:function(t){return c.push(t)},block:function(t){var e=f.push(t);return 1===f.length&&n.addEventListener(lX,fX),function(){e(),f.length||n.removeEventListener(lX,fX)}}};return y}():function(t){void 0===t&&(t={});var e=t,n=e.initialEntries,r=void 0===n?["/"]:n,i=e.initialIndex,a=r.map((function(t){return uX({pathname:"/",search:"",hash:"",state:null,key:hX()},"string"==typeof t?vX(t):t)})),o=cX(null==i?a.length-1:i,0,a.length-1),s=GZ.Pop,u=a[o],l=dX(),c=dX();function f(t,e){return void 0===e&&(e=null),uX({pathname:u.pathname,search:"",hash:""},"string"==typeof t?vX(t):t,{state:e,key:hX()})}function d(t,e,n){return!c.length||(c.call({action:t,location:e,retry:n}),!1)}function h(t,e){s=t,u=e,l.call({action:s,location:u})}function p(t){var e=cX(o+t,0,a.length-1),n=GZ.Pop,r=a[e];d(n,r,(function(){p(t)}))&&(o=e,h(n,r))}var v={get index(){return o},get action(){return s},get location(){return u},createHref:function(t){return"string"==typeof t?t:pX(t)},push:function t(e,n){var r=GZ.Push,i=f(e,n);d(r,i,(function(){t(e,n)}))&&(o+=1,a.splice(o,a.length,i),h(r,i))},replace:function t(e,n){var r=GZ.Replace,i=f(e,n);d(r,i,(function(){t(e,n)}))&&(a[o]=i,h(r,i))},go:p,back:function(){p(-1)},forward:function(){p(1)},listen:function(t){return l.push(t)},block:function(t){return c.push(t)}};return v}()},TX=function(){function t(){Ai(this,t),this.listeners=[]}return Ci(t,[{key:"subscribe",value:function(t){var e=this;return this.listeners.push(t),function(){e.listeners=e.listeners.filter((function(e){return e!==t}))}}},{key:"notify",value:function(){this.listeners.forEach((function(t){return t()}))}}]),t}(),MX=function(t){Ti(n,t);var e=Mi(n);function n(t){var r,i,a;return Ai(this,n),(r=e.call(this)).isTransitioning=!1,r.history=(null==t?void 0:t.history)||AX(),r.stringifySearch=null!=(i=null==t?void 0:t.stringifySearch)?i:rK,r.parseSearch=null!=(a=null==t?void 0:t.parseSearch)?a:nK,r.current=r.parseLocation(r.history.location),r.destroy=r.history.listen((function(t){r.current=r.parseLocation(t.location,r.current),r.notify()})),r}return Ci(n,[{key:"buildNext",value:function(t,e){var n,r,i,a;void 0===t&&(t="/"),void 0===e&&(e={});var o=gX({},this.current,e.from),s=function(t,e,n){e=e.replace(new RegExp("^"+t),"/"),n=n.replace(new RegExp("^"+t),"/");var r=KX(e),i=KX(n);i.forEach((function(t,e){if("/"===t.value)e?e===i.length-1&&r.push(t):r=[t];else if(".."===t.value)r.pop();else{if("."===t.value)return;r.push(t)}}));var a=ZX([t].concat(mi(r.map((function(t){return t.value})))));return XX(a)}(t,o.pathname,""+(null!=(n=e.to)?n:".")),u=null!=(r=e.__searchFilters)&&r.length?e.__searchFilters.reduce((function(t,e){return e(t)}),o.search):o.search,l=!0===e.search?u:e.search?null!=(i=qX(e.search,u))?i:{}:null!=(a=e.__searchFilters)&&a.length?u:{},c=QX(o.search,l),f=this.stringifySearch(c),d=!0===e.hash?o.hash:qX(e.hash,o.hash);return{pathname:s,search:c,searchStr:f,hash:d=d?"#"+d:"",href:""+s+f+d,key:e.key}}},{key:"navigate",value:function(t,e){this.current=t,this.navigateTimeout&&clearTimeout(this.navigateTimeout);var n="replace";return e||(n="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(n="replace"),"replace"===n?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})}},{key:"parseLocation",value:function(t,e){var n,r=this.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:QX(null==e?void 0:e.search,r),hash:null!=(n=t.hash.split("#").reverse()[0])?n:"",href:""+t.pathname+t.search+t.hash,key:t.key}}}]),n}(TX);function OX(t){return yk(kX.Provider,_i({},t))}function PX(t){var e=t.children,n=t.location,r=t.__experimental__snapshot,i=mX(t,bX),a=ki.exports.useRef(null);a.current||(a.current=new DX({location:n,__experimental__snapshot:r,routes:i.routes}));var o=a.current,s=wi(ki.exports.useReducer((function(){return{}}),{}),2),u=(s[0],s[1]);return o.update(i),CX((function(){return o.subscribe((function(){u()}))}),[]),CX((function(){return o.updateLocation(n.current).unsubscribe}),[n.current.key]),ki.exports.createElement(wX.Provider,{value:{location:n}},ki.exports.createElement(SX.Provider,{value:{router:o}},yk(RX,{}),yk(OX,{value:[o.rootMatch].concat(mi(o.state.matches)),children:null!=e?e:yk(WX,{})})))}function RX(){var t=LX(),e=UX(),n=HX();return CX((function(){e({to:".",search:!0,hash:!0}).href!==t.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})}),[]),null}var DX=function(t){Ti(n,t);var e=Mi(n);function n(t){var r,i;Ai(this,n);var a=t.location,o=t.__experimental__snapshot,s=mX(t,_X);(r=e.call(this)).routesById={},r.update=function(t){var e=t.basepath,n=t.routes,i=mX(t,xX);Object.assign(Pi(r),i),r.basepath=XX("/"+(null!=e?e:"")),r.routesById={};r.routes=function t(e,n){return e.map((function(e){var a,o,s,u,l=null!=(a=e.path)?a:"*",c=ZX(["root"===(null==n?void 0:n.id)?"":null==n?void 0:n.id,(null==l?void 0:l.replace(/(.)\/$/,"$1"))+(e.id?"-"+e.id:"")]);if(e=gX({},e,{pendingMs:null!=(o=e.pendingMs)?o:null==i?void 0:i.defaultPendingMs,pendingMinMs:null!=(s=e.pendingMinMs)?s:null==i?void 0:i.defaultPendingMinMs,id:c}),r.routesById[c])throw new Error;return r.routesById[c]=e,e.children=null!=(u=e.children)&&u.length?t(e.children,e):void 0,e}))}(n),r.rootMatch={id:"root",params:{},search:{},pathname:r.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},r.setState=function(t){var e=t({state:r.state,pending:r.pending});r.state=e.state,r.pending=e.pending,r.cleanMatchCache(),r.notify()},r.matchCache={},r.cleanMatchCache=function(){var t,e,n,i=[].concat(mi(null!=(t=null==Pi(r)?void 0:r.state.matches)?t:[]),mi(null!=(e=null==Pi(r)||null==(n=r.pending)?void 0:n.matches)?e:[])).map((function(t){return t.id}));Object.values(r.matchCache).forEach((function(t){var e;if(t.updatedAt&&!i.includes(t.id)){var n=Date.now()-(null!=(e=t.updatedAt)?e:0);(!t.maxAge||n>t.maxAge)&&(t.route.unloader&&t.route.unloader(t),delete r.matchCache[t.id])}}))},r.updateLocation=function(t){var e,n=new Promise((function(n){var i=new NX(Pi(r),t);r.setState((function(t){return gX({},t,{pending:{location:i.location,matches:i.matches}})})),e=i.subscribe((function(){var t=r.state.matches;t.filter((function(t){return!i.matches.find((function(e){return e.id===t.id}))})).forEach((function(t){null==t.onExit||t.onExit(t)})),t.filter((function(t){return i.matches.find((function(e){return e.id===t.id}))})).forEach((function(t){null==t.route.onTransition||t.route.onTransition(t)})),i.matches.filter((function(e){return!t.find((function(t){return t.id===e.id}))})).forEach((function(t){t.onExit=null==t.route.onMatch?void 0:t.route.onMatch(t)})),r.setState((function(t){return gX({},t,{state:{location:i.location,matches:i.matches},pending:void 0})})),n()})),i.loadData(),i.startPending()}));return{promise:n,unsubscribe:e}},r.__experimental__createSnapshot=function(){return{location:r.state.location,matches:r.state.matches.map((function(t){var e=t.ownData;return{id:t.id,ownData:e}}))}},r.update(s);var u=[];if(o){var l=new NX(Pi(r),a.current);l.matches.forEach((function(t,e){var n,r,i,a;if(t.id!==(null==(n=o.matches[e])?void 0:n.id))throw new Error("Router hydration mismatch: "+t.id+" !== "+(null==(a=o.matches[e])?void 0:a.id));t.ownData=null!=(r=null==(i=o.matches[e])?void 0:i.ownData)?r:{}})),FX(l.matches),u=l.matches}return r.state={location:null!=(i=null==o?void 0:o.location)?i:a.current,matches:u},a.subscribe((function(){return r.notify()})),r}return Ci(n)}(TX);function LX(){var t=ki.exports.useContext(wX);return GX(!!t,"useLocation must be used within a <ReactLocation />"),t.location}var IX=Ci((function t(e){var n=this;Ai(this,t),this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=function(t){var e;null==(e=n.matchLoader)||e.preNotify(t?n:void 0)},this.assignMatchLoader=function(t){n.matchLoader=t},this.startPending=function(){n.pendingTimeout&&clearTimeout(n.pendingTimeout),void 0!==n.route.pendingMs&&(n.pendingTimeout=setTimeout((function(){var t;"loading"===n.status&&(n.status="pending"),null==(t=n.notify)||t.call(n),void 0!==n.route.pendingMinMs&&(n.pendingMinPromise=new Promise((function(t){return setTimeout(t,n.route.pendingMinMs)})))}),n.route.pendingMs))},this.load=function(t){var e,r;if(n.maxAge=null!=(e=null!=(r=t.maxAge)?r:n.route.loaderMaxAge)?e:t.router.defaultLoaderMaxAge,!n.loaderPromise){var i=n.route.import;n.loaderPromise=(i?(n.isLoading=!0,i({params:n.params,search:n.search}).then((function(t){n.route=gX({},n.route,t)}))):Promise.resolve()).then((function(){var e=[];["element","errorElement","pendingElement"].forEach((function(t){var r=n.route[t];n[t]||("function"==typeof r?(n.isLoading=!0,e.push(r(n).then((function(e){n[t]=e})))):n[t]=n.route[t])}));var r=n.route.loader,i=r?new Promise(function(){var e=pi(di().mark((function e(i){var a,o,s;return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.isLoading=!0,a=function(t){n.updatedAt=Date.now(),i(n.ownData),n.status=t},o=function(t){n.ownData=t,n.error=void 0,a("resolved")},s=function(t){console.error(t),n.error=t,a("rejected")},e.prev=4,e.t0=o,e.next=8,r(n,{parentMatch:t.parentMatch,dispatch:function(){var t=pi(di().mark((function t(e){var r;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:"resolve"===e.type?o(e.data):"reject"===e.type?s(e.error):"loading"===e.type?n.isLoading=!0:"maxAge"===e.type&&(n.maxAge=e.maxAge),n.updatedAt=Date.now(),null==(r=n.notify)||r.call(n,!0);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()});case 8:e.t1=e.sent,(0,e.t0)(e.t1),e.next=15;break;case 12:e.prev=12,e.t2=e.catch(4),s(e.t2);case 15:case"end":return e.stop()}}),e,null,[[4,12]])})));return function(t){return e.apply(this,arguments)}}()):Promise.resolve();return Promise.all([].concat(e,[i])).then((function(){n.status="resolved",n.isLoading=!1,n.startPending=void 0})).then((function(){return n.pendingMinPromise})).then((function(){var t;n.pendingTimeout&&clearTimeout(n.pendingTimeout),null==(t=n.notify)||t.call(n,!0)}))})).then((function(){return n.ownData}))}},Object.assign(this,e)})),NX=function(t){Ti(n,t);var e=Mi(n);function n(t,r){var i,a;Ai(this,n),i=e.call(this),a=Pi(i),i.preNotifiedMatches=[],i.status="pending",i.preNotify=function(t){t&&(i.preNotifiedMatches.includes(t)||i.preNotifiedMatches.push(t)),t&&i.preNotifiedMatches.length!==i.matches.length||(i.status="resolved",FX(i.matches),i.notify())},i.loadData=function(){var t=pi(di().mark((function t(e){var n,r;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=(void 0===e?{}:e).maxAge,a.router.cleanMatchCache(),null!=(n=a.matches)&&n.length){t.next=5;break}return a.preNotify(),t.abrupt("return");case 5:return a.firstRenderPromises=[],a.matches.forEach((function(t,e){var n,i,o=null==(n=a.matches)?void 0:n[e-1];null==t.assignMatchLoader||t.assignMatchLoader(a),null==t.load||t.load({maxAge:r,parentMatch:o,router:a.router}),null==(i=a.firstRenderPromises)||i.push(t.loaderPromise)})),t.next=9,Promise.all(a.firstRenderPromises).then((function(){return a.preNotify(),a.matches}));case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),i.load=function(){var t=pi(di().mark((function t(e){var n;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(void 0===e?{}:e).maxAge,t.next=3,a.loadData({maxAge:n});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),i.startPending=pi(di().mark((function t(){return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i.matches.forEach((function(t){return null==t.startPending?void 0:t.startPending()}));case 1:case"end":return t.stop()}}),t)}))),i.router=t,i.location=r,i.matches=[];var o=jX(i.router,i.location);return i.matches=null==o?void 0:o.map((function(t){return i.router.matchCache[t.id]||(i.router.matchCache[t.id]=new IX(t)),i.router.matchCache[t.id]})),i}return Ci(n)}(TX);function FX(t){null==t||t.forEach((function(e,n){var r,i=null==t?void 0:t[n-1];e.data=gX({},null!=(r=null==i?void 0:i.data)?r:{},e.ownData)}))}function zX(){var t=ki.exports.useContext(SX);if(!t)throw GX(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return t.router}function jX(t,e){if(!t.routes.length)return[];var n=[],r=function(){var i=pi(di().mark((function i(a,o){var s,u,l,c,f,d,h,p;return di().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(u=o.pathname,l=o.params,c=null!=t&&t.filterRoutes?null==t?void 0:t.filterRoutes(a):a,f=c.find((function(n){var r,i,a=ZX([u,n.path]),o=!!("/"!==n.path||null!=(r=n.children)&&r.length),s=YX(e,{to:a,search:n.search,fuzzy:o,caseSensitive:null!=(i=n.caseSensitive)?i:t.caseSensitive});return s&&(l=gX({},l,s)),!!s}))){i.next=5;break}return i.abrupt("return");case 5:d=BX(f.path,l),u=ZX([u,d]),h=BX(f.id,l,!0),p={id:h,route:f,params:l,pathname:u,search:e.search},n.push(p),null!=(s=f.children)&&s.length&&r(f.children,p);case 11:case"end":return i.stop()}}),i)})));return function(t,e){return i.apply(this,arguments)}}();return r(t.routes,t.rootMatch),n}function BX(t,e,n){return ZX(KX(t).map((function(t){return"*"!==t.value||n?"param"===t.type?null!=(r=e[t.value.substring(1)])?r:"":t.value:"";var r})))}function VX(){return ki.exports.useContext(kX)}function HX(){var t,e=LX(),n=null==(t=VX())?void 0:t[0],r=UX();return $X((function(t){var i,a=t.search,o=t.hash,s=t.replace,u=t.from,l=t.to,c=t.fromCurrent;c=null!=(i=c)?i:void 0===l;var f=r({to:l,search:a,hash:o,from:c?e.current:null!=u?u:{pathname:n.pathname}});e.navigate(f,s)}))}function UX(){var t=LX(),e=zX();return $X((function(n){var r=t.buildNext(e.basepath,n),i=jX(e,r).map((function(t){var e;return null!=(e=t.route.searchFilters)?e:[]})).flat().filter(Boolean);return t.buildNext(e.basepath,gX({},n,{__searchFilters:i}))}))}function WX(){var t,e=zX(),n=li(VX()),r=(n[0],n.slice(1)),i=r[0];if(!i)return null;var a=null!=(t=i.errorElement)?t:e.defaultErrorElement,o=function(){var t,n;if("rejected"===i.status){if(a)return a;if(!e.useErrorBoundary)return"An unknown error occured!";throw i.error}var r=null!=(t=i.pendingElement)?t:e.defaultPendingElement;if("loading"===i.status)return null;if("pending"===i.status&&(i.route.pendingMs||r))return null!=r?r:null;var o=null!=(n=i.element)?n:e.defaultElement;return null!=o?o:yk(WX,{})}();return yk(OX,{value:r,children:o})}function YX(t,e){var n=function(t,e){var n,r=KX(t.pathname),i=KX(""+(null!=(n=e.to)?n:"*")),a={},o=function(){for(var t=0;t<Math.max(r.length,i.length);t++){var n=r[t],o=i[t],s=t===i.length-1,u=t===r.length-1;if(o){if("wildcard"===o.type)return!(null==n||!n.value)&&(a["*"]=ZX(r.slice(t).map((function(t){return t.value}))),!0);if("pathname"===o.type){if("/"===o.value&&(null==n||!n.value))return!0;if(n)if(e.caseSensitive){if(o.value!==n.value)return!1}else if(o.value.toLowerCase()!==n.value.toLowerCase())return!1}if(!n)return!1;"param"===o.type&&(a[o.value.substring(1)]=n.value)}if(s&&!u)return!!e.fuzzy}return!0}();return o?a:void 0}(t,e),r=function(t,e){return!(!e.search||!e.search(t.search))}(t,e);if((!e.to||n)&&(!e.search||r))return null!=n?n:{}}function GX(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(n){}}}function qX(t,e){return function(t){return"function"==typeof t}(t)?t(e):t}function ZX(t){return XX(t.filter(Boolean).join("/"))}function XX(t){return(""+t).replace(/\/{2,}/g,"/")}function KX(t){if(!t)return[];var e=[];if("/"===(t=XX(t)).slice(0,1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),!t)return e;var n=t.split("/").filter(Boolean);return e.push.apply(e,mi(n.map((function(t){return t.startsWith("*")?{type:"wildcard",value:t}:":"===t.charAt(0)?{type:"param",value:t}:{type:"pathname",value:t}})))),"/"===t.slice(-1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),e}function $X(t){var e=ki.exports.useRef(),n=ki.exports.useRef(t);return n.current=t,e.current||(e.current=function(){return n.current.apply(n,arguments)}),e.current}function QX(t,e){if(t===e)return t;var n=Array.isArray(t)&&Array.isArray(e);if(n||JX(t)&&JX(e)){for(var r=n?t.length:Object.keys(t).length,i=n?e:Object.keys(e),a=i.length,o=n?[]:{},s=0,u=0;u<a;u++){var l=n?u:i[u];o[l]=QX(t[l],e[l]),o[l]===t[l]&&s++}return r===a&&s===r?t:o}return e}function JX(t){if(!tK(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!tK(n)&&!!n.hasOwnProperty("isPrototypeOf")}function tK(t){return"[object Object]"===Object.prototype.toString.call(t)}var eK,nK=(eK=JSON.parse,function(t){"?"===t.substring(0,1)&&(t=t.substring(1));var e=function(t){for(var e,n,r={},i=t.split("&");e=i.shift();)void 0!==r[n=(e=e.split("=")).shift()]?r[n]=[].concat(r[n],yX(e.shift())):r[n]=yX(e.shift());return r}(t);for(var n in e){var r=e[n];if("string"==typeof r)try{e[n]=eK(r)}catch(i){}}return e}),rK=function(t){return function(e){(e=gX({},e))&&Object.keys(e).forEach((function(n){var r=e[n];if(void 0===r||void 0===r)delete e[n];else if(r&&"object"===Fi(r)&&null!==r)try{e[n]=t(r)}catch(i){}}));var n=function(t,e){var n,r,i,a="";for(n in t)if(void 0!==(i=t[n]))if(Array.isArray(i))for(r=0;r<i.length;r++)a&&(a+="&"),a+=encodeURIComponent(n)+"="+encodeURIComponent(i[r]);else a&&(a+="&"),a+=encodeURIComponent(n)+"="+encodeURIComponent(i);return(e||"")+a}(e).toString();return n?"?"+n:""}}(JSON.stringify);function iK(t,e){return iK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},iK(t,e)}var aK={error:null},oK=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).state=aK,e.resetErrorBoundary=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null==e.props.onReset||(t=e.props).onReset.apply(t,r),e.reset()},e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,iK(e,n),r.getDerivedStateFromError=function(t){return{error:t}};var i=r.prototype;return i.reset=function(){this.setState(aK)},i.componentDidCatch=function(t,e){var n,r;null==(n=(r=this.props).onError)||n.call(r,t,e)},i.componentDidUpdate=function(t,e){var n,r,i=this.state.error,a=this.props.resetKeys;null!==i&&null!==e.error&&function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=[]),t.length!==e.length||t.some((function(t,n){return!Object.is(t,e[n])}))}(t.resetKeys,a)&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,t.resetKeys,a),this.reset())},i.render=function(){var t=this.state.error,e=this.props,n=e.fallbackRender,r=e.FallbackComponent,i=e.fallback;if(null!==t){var a={error:t,resetErrorBoundary:this.resetErrorBoundary};if(ki.exports.isValidElement(i))return i;if("function"==typeof n)return n(a);if(r)return yk(r,_i({},a));throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},r}(ki.exports.Component),sK=function(){function t(){Ai(this,t),this.listeners=[],this.subscribe=this.subscribe.bind(this)}return Ci(t,[{key:"subscribe",value:function(t){var e=this;return this.listeners.push(t),this.onSubscribe(),function(){e.listeners=e.listeners.filter((function(e){return e!==t})),e.onUnsubscribe()}}},{key:"hasListeners",value:function(){return this.listeners.length>0}},{key:"onSubscribe",value:function(){}},{key:"onUnsubscribe",value:function(){}}]),t}();hi("S",sK);var uK=hi("L","undefined"==typeof window);function lK(){}function cK(t){return"number"==typeof t&&t>=0&&t!==1/0}function fK(t,e){return Math.max(t+(e||0)-Date.now(),0)}function dK(t,e,n){return SK(t)?"function"==typeof e?_i(_i({},n),{},{queryKey:t,queryFn:e}):_i(_i({},e),{},{queryKey:t}):t}function hK(t,e,n){return SK(t)?[_i(_i({},e),{},{queryKey:t}),n]:[t||{},e]}function pK(t,e){var n=t.type,r=void 0===n?"all":n,i=t.exact,a=t.fetchStatus,o=t.predicate,s=t.queryKey,u=t.stale;if(SK(s))if(i){if(e.queryHash!==gK(s,e.options))return!1}else if(!yK(e.queryKey,s))return!1;if("all"!==r){var l=e.isActive();if("active"===r&&!l)return!1;if("inactive"===r&&l)return!1}return("boolean"!=typeof u||e.isStale()===u)&&((void 0===a||a===e.state.fetchStatus)&&!(o&&!o(e)))}function vK(t,e){var n=t.exact,r=t.fetching,i=t.predicate,a=t.mutationKey;if(SK(a)){if(!e.options.mutationKey)return!1;if(n){if(mK(e.options.mutationKey)!==mK(a))return!1}else if(!yK(e.options.mutationKey,a))return!1}return("boolean"!=typeof r||"loading"===e.state.status===r)&&!(i&&!i(e))}function gK(t,e){return((null==e?void 0:e.queryKeyHashFn)||mK)(t)}function mK(t){return JSON.stringify(t,(function(t,e){return wK(e)?Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t}),{}):e}))}function yK(t,e){return bK(t,e)}function bK(t,e){return t===e||Fi(t)===Fi(e)&&(!(!t||!e||"object"!==Fi(t)||"object"!==Fi(e))&&!Object.keys(e).some((function(n){return!bK(t[n],e[n])})))}function _K(t,e){if(t===e)return t;var n=xK(t)&&xK(e);if(n||wK(t)&&wK(e)){for(var r=n?t.length:Object.keys(t).length,i=n?e:Object.keys(e),a=i.length,o=n?[]:{},s=0,u=0;u<a;u++){var l=n?u:i[u];o[l]=_K(t[l],e[l]),o[l]===t[l]&&s++}return r===a&&s===r?t:o}return e}function xK(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function wK(t){if(!kK(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!kK(n)&&!!n.hasOwnProperty("isPrototypeOf")}function kK(t){return"[object Object]"===Object.prototype.toString.call(t)}function SK(t){return Array.isArray(t)}function EK(t){return new Promise((function(e){setTimeout(e,t)}))}function CK(t){EK(0).then(t)}function AK(t,e,n){return null!=n.isDataEqual&&n.isDataEqual(t,e)?t:"function"==typeof n.structuralSharing?n.structuralSharing(t,e):!1!==n.structuralSharing?_K(t,e):e}var TK=hi("Q",new(function(t){Ti(n,t);var e=Mi(n);function n(){var t;return Ai(this,n),(t=e.call(this)).setup=function(t){if(!uK&&window.addEventListener){var e=function(){return t()};return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),function(){window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}},t}return Ci(n,[{key:"onSubscribe",value:function(){this.cleanup||this.setEventListener(this.setup)}},{key:"onUnsubscribe",value:function(){var t;this.hasListeners()||(null==(t=this.cleanup)||t.call(this),this.cleanup=void 0)}},{key:"setEventListener",value:function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t((function(t){"boolean"==typeof t?n.setFocused(t):n.onFocus()}))}},{key:"setFocused",value:function(t){this.focused=t,t&&this.onFocus()}},{key:"onFocus",value:function(){this.listeners.forEach((function(t){t()}))}},{key:"isFocused",value:function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}]),n}(sK))),MK=new(function(t){Ti(n,t);var e=Mi(n);function n(){var t;return Ai(this,n),(t=e.call(this)).setup=function(t){if(!uK&&window.addEventListener){var e=function(){return t()};return window.addEventListener("online",e,!1),window.addEventListener("offline",e,!1),function(){window.removeEventListener("online",e),window.removeEventListener("offline",e)}}},t}return Ci(n,[{key:"onSubscribe",value:function(){this.cleanup||this.setEventListener(this.setup)}},{key:"onUnsubscribe",value:function(){var t;this.hasListeners()||(null==(t=this.cleanup)||t.call(this),this.cleanup=void 0)}},{key:"setEventListener",value:function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t((function(t){"boolean"==typeof t?n.setOnline(t):n.onOnline()}))}},{key:"setOnline",value:function(t){this.online=t,t&&this.onOnline()}},{key:"onOnline",value:function(){this.listeners.forEach((function(t){t()}))}},{key:"isOnline",value:function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}]),n}(sK));function OK(t){return Math.min(1e3*Math.pow(2,t),3e4)}function PK(t){return"online"!==(null!=t?t:"online")||MK.isOnline()}var RK=Ci((function t(e){Ai(this,t),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}));function DK(t){return t instanceof RK}function LK(t){var e,n,r,i=!1,a=0,o=!1,s=new Promise((function(t,e){n=t,r=e})),u=function(){return!TK.isFocused()||"always"!==t.networkMode&&!MK.isOnline()},l=function(r){o||(o=!0,null==t.onSuccess||t.onSuccess(r),null==e||e(),n(r))},c=function(n){o||(o=!0,null==t.onError||t.onError(n),null==e||e(),r(n))},f=function(){return new Promise((function(n){e=function(t){if(o||!u())return n(t)},null==t.onPause||t.onPause()})).then((function(){e=void 0,o||null==t.onContinue||t.onContinue()}))},d=function e(){if(!o){var n;try{n=t.fn()}catch(r){n=Promise.reject(r)}Promise.resolve(n).then(l).catch((function(n){var r,s;if(!o){var l=null!=(r=t.retry)?r:3,d=null!=(s=t.retryDelay)?s:OK,h="function"==typeof d?d(a,n):d,p=!0===l||"number"==typeof l&&a<l||"function"==typeof l&&l(a,n);!i&&p?(a++,null==t.onFail||t.onFail(a,n),EK(h).then((function(){if(u())return f()})).then((function(){i?c(n):e()}))):c(n)}}))}};return PK(t.networkMode)?d():f().then(d),{promise:s,cancel:function(e){o||(c(new RK(e)),null==t.abort||t.abort())},continue:function(){null==e||e()},cancelRetry:function(){i=!0},continueRetry:function(){i=!1}}}var IK=console;var NK,FK,zK,jK,BK,VK,HK=hi("a2",(NK=[],FK=0,zK=function(t){t()},jK=function(t){t()},VK=function(){var t=NK;NK=[],t.length&&CK((function(){jK((function(){t.forEach((function(t){zK(t)}))}))}))},{batch:function(t){var e;FK++;try{e=t()}finally{--FK||VK()}return e},batchCalls:function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];BK((function(){t.apply(void 0,n)}))}},schedule:BK=function(t){FK?NK.push(t):CK((function(){zK(t)}))},setNotifyFunction:function(t){zK=t},setBatchNotifyFunction:function(t){jK=t}})),UK=function(){function t(){Ai(this,t)}return Ci(t,[{key:"destroy",value:function(){this.clearGcTimeout()}},{key:"scheduleGc",value:function(){var t=this;this.clearGcTimeout(),cK(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){t.optionalRemove()}),this.cacheTime))}},{key:"updateCacheTime",value:function(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:uK?1/0:3e5)}},{key:"clearGcTimeout",value:function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}]),t}(),WK=function(t){Ti(n,t);var e=Mi(n);function n(t){var r,i,a,o,s;return Ai(this,n),(r=e.call(this)).abortSignalConsumed=!1,r.defaultOptions=t.defaultOptions,r.setOptions(t.options),r.observers=[],r.cache=t.cache,r.logger=t.logger||IK,r.queryKey=t.queryKey,r.queryHash=t.queryHash,r.initialState=t.state||(i=r.options,a="function"==typeof i.initialData?i.initialData():i.initialData,o=void 0!==i.initialData?"function"==typeof i.initialDataUpdatedAt?i.initialDataUpdatedAt():i.initialDataUpdatedAt:0,{data:a,dataUpdateCount:0,dataUpdatedAt:(s=void 0!==a)?null!=o?o:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isInvalidated:!1,status:s?"success":"loading",fetchStatus:"idle"}),r.state=r.initialState,r.meta=t.meta,r}return Ci(n,[{key:"setOptions",value:function(t){this.options=_i(_i({},this.defaultOptions),t),this.meta=null==t?void 0:t.meta,this.updateCacheTime(this.options.cacheTime)}},{key:"optionalRemove",value:function(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}},{key:"setData",value:function(t,e){var n=AK(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),n}},{key:"setState",value:function(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}},{key:"cancel",value:function(t){var e,n=this.promise;return null==(e=this.retryer)||e.cancel(t),n?n.then(lK).catch(lK):Promise.resolve()}},{key:"destroy",value:function(){vi(Ni(n.prototype),"destroy",this).call(this),this.cancel({silent:!0})}},{key:"reset",value:function(){this.destroy(),this.setState(this.initialState)}},{key:"isActive",value:function(){return this.observers.some((function(t){return!1!==t.options.enabled}))}},{key:"isDisabled",value:function(){return this.getObserversCount()>0&&!this.isActive()}},{key:"isStale",value:function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(t){return t.getCurrentResult().isStale}))}},{key:"isStaleByTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!fK(this.state.dataUpdatedAt,t)}},{key:"onFocus",value:function(){var t,e=this.observers.find((function(t){return t.shouldFetchOnWindowFocus()}));e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}},{key:"onOnline",value:function(){var t,e=this.observers.find((function(t){return t.shouldFetchOnReconnect()}));e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}},{key:"addObserver",value:function(t){-1===this.observers.indexOf(t)&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}},{key:"removeObserver",value:function(t){-1!==this.observers.indexOf(t)&&(this.observers=this.observers.filter((function(e){return e!==t})),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}},{key:"getObserversCount",value:function(){return this.observers.length}},{key:"invalidate",value:function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}},{key:"fetch",value:function(t,e){var n,r,i=this;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){var o=this.observers.find((function(t){return t.options.queryFn}));o&&this.setOptions(o.options)}Array.isArray(this.options.queryKey);var s=function(){if("function"==typeof AbortController)return new AbortController}(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=function(t){Object.defineProperty(t,"signal",{enumerable:!0,get:function(){if(s)return i.abortSignalConsumed=!0,s.signal}})};l(u);var c,f={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(u)):Promise.reject("Missing queryFn")},meta:this.meta};(l(f),null==(n=this.options.behavior)||n.onFetch(f),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=f.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=f.fetchOptions)?void 0:c.meta});var d=function(t){var e,n;(DK(t)&&t.silent||i.dispatch({type:"error",error:t}),DK(t))||(null==(e=(n=i.cache.config).onError)||e.call(n,t,i));i.isFetchingOptimistic||i.scheduleGc(),i.isFetchingOptimistic=!1};return this.retryer=LK({fn:f.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:function(t){var e,n;void 0!==t?(i.setData(t),null==(e=(n=i.cache.config).onSuccess)||e.call(n,t,i),i.isFetchingOptimistic||i.scheduleGc(),i.isFetchingOptimistic=!1):d(new Error("Query data cannot be undefined"))},onError:d,onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode}),this.promise=this.retryer.promise,this.promise}},{key:"dispatch",value:function(t){var e=this;this.state=function(n){var r,i;switch(t.type){case"failed":return _i(_i({},n),{},{fetchFailureCount:n.fetchFailureCount+1});case"pause":return _i(_i({},n),{},{fetchStatus:"paused"});case"continue":return _i(_i({},n),{},{fetchStatus:"fetching"});case"fetch":return _i(_i({},n),{},{fetchFailureCount:0,fetchMeta:null!=(r=t.meta)?r:null,fetchStatus:PK(e.options.networkMode)?"fetching":"paused"},!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return _i(_i({},n),{},{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,isInvalidated:!1,status:"success"},!t.manual&&{fetchStatus:"idle",fetchFailureCount:0});case"error":var a=t.error;return DK(a)&&a.revert&&e.revertState?_i({},e.revertState):_i(_i({},n),{},{error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchStatus:"idle",status:"error"});case"invalidate":return _i(_i({},n),{},{isInvalidated:!0});case"setState":return _i(_i({},n),t.state)}}(this.state),HK.batch((function(){e.observers.forEach((function(e){e.onQueryUpdate(t)})),e.cache.notify({query:e,type:"updated",action:t})}))}}]),n}(UK);var YK=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).config=t||{},r.queries=[],r.queriesMap={},r}return Ci(n,[{key:"build",value:function(t,e,n){var r,i=e.queryKey,a=null!=(r=e.queryHash)?r:gK(i,e),o=this.get(a);return o||(o=new WK({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(i),meta:e.meta}),this.add(o)),o}},{key:"add",value:function(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}},{key:"remove",value:function(t){var e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter((function(e){return e!==t})),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}},{key:"clear",value:function(){var t=this;HK.batch((function(){t.queries.forEach((function(e){t.remove(e)}))}))}},{key:"get",value:function(t){return this.queriesMap[t]}},{key:"getAll",value:function(){return this.queries}},{key:"find",value:function(t,e){var n=wi(hK(t,e),1)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(t){return pK(n,t)}))}},{key:"findAll",value:function(t,e){var n=wi(hK(t,e),1)[0];return Object.keys(n).length>0?this.queries.filter((function(t){return pK(n,t)})):this.queries}},{key:"notify",value:function(t){var e=this;HK.batch((function(){e.listeners.forEach((function(e){e(t)}))}))}},{key:"onFocus",value:function(){var t=this;HK.batch((function(){t.queries.forEach((function(t){t.onFocus()}))}))}},{key:"onOnline",value:function(){var t=this;HK.batch((function(){t.queries.forEach((function(t){t.onOnline()}))}))}}]),n}(sK),GK=function(t){Ti(r,t);var e,n=Mi(r);function r(t){var e;return Ai(this,r),(e=n.call(this)).options=_i(_i({},t.defaultOptions),t.options),e.mutationId=t.mutationId,e.mutationCache=t.mutationCache,e.logger=t.logger||IK,e.observers=[],e.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},e.meta=t.meta,e.updateCacheTime(e.options.cacheTime),e.scheduleGc(),e}return Ci(r,[{key:"setState",value:function(t){this.dispatch({type:"setState",state:t})}},{key:"addObserver",value:function(t){-1===this.observers.indexOf(t)&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}},{key:"removeObserver",value:function(t){this.observers=this.observers.filter((function(e){return e!==t})),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}},{key:"optionalRemove",value:function(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}},{key:"continue",value:function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}},{key:"execute",value:(e=pi(di().mark((function t(){var e,n,r,i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x=this;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=function(){var t;return x.retryer=LK({fn:function(){return x.options.mutationFn?x.options.mutationFn(x.state.variables):Promise.reject("No mutationFn found")},onFail:function(){x.dispatch({type:"failed"})},onPause:function(){x.dispatch({type:"pause"})},onContinue:function(){x.dispatch({type:"continue"})},retry:null!=(t=x.options.retry)?t:0,retryDelay:x.options.retryDelay,networkMode:x.options.networkMode}),x.retryer.promise},n="loading"===this.state.status,t.prev=2,n){t.next=10;break}return this.dispatch({type:"loading",variables:this.options.variables}),null==(l=(c=this.mutationCache.config).onMutate)||l.call(c,this.state.variables,this),t.next=8,null==(f=(d=this.options).onMutate)?void 0:f.call(d,this.state.variables);case 8:(h=t.sent)!==this.state.context&&this.dispatch({type:"loading",context:h,variables:this.state.variables});case 10:return t.next=12,e();case 12:return p=t.sent,null==(r=(i=this.mutationCache.config).onSuccess)||r.call(i,p,this.state.variables,this.state.context,this),t.next=16,null==(a=(o=this.options).onSuccess)?void 0:a.call(o,p,this.state.variables,this.state.context);case 16:return t.next=18,null==(s=(u=this.options).onSettled)?void 0:s.call(u,p,null,this.state.variables,this.state.context);case 18:return this.dispatch({type:"success",data:p}),t.abrupt("return",p);case 22:return t.prev=22,t.t0=t.catch(2),t.prev=24,null==(v=(g=this.mutationCache.config).onError)||v.call(g,t.t0,this.state.variables,this.state.context,this),t.next=29,null==(m=(y=this.options).onError)?void 0:m.call(y,t.t0,this.state.variables,this.state.context);case 29:return t.next=31,null==(b=(_=this.options).onSettled)?void 0:b.call(_,void 0,t.t0,this.state.variables,this.state.context);case 31:throw t.t0;case 32:return t.prev=32,this.dispatch({type:"error",error:t.t0}),t.finish(32);case 35:case"end":return t.stop()}}),t,this,[[2,22],[24,,32,35]])}))),function(){return e.apply(this,arguments)})},{key:"dispatch",value:function(t){var e=this;this.state=function(n){switch(t.type){case"failed":return _i(_i({},n),{},{failureCount:n.failureCount+1});case"pause":return _i(_i({},n),{},{isPaused:!0});case"continue":return _i(_i({},n),{},{isPaused:!1});case"loading":return _i(_i({},n),{},{context:t.context,data:void 0,error:null,isPaused:!PK(e.options.networkMode),status:"loading",variables:t.variables});case"success":return _i(_i({},n),{},{data:t.data,error:null,status:"success",isPaused:!1});case"error":return _i(_i({},n),{},{data:void 0,error:t.error,failureCount:n.failureCount+1,isPaused:!1,status:"error"});case"setState":return _i(_i({},n),t.state)}}(this.state),HK.batch((function(){e.observers.forEach((function(e){e.onMutationUpdate(t)})),e.mutationCache.notify({mutation:e,type:"updated",action:t})}))}}]),r}(UK);var qK=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).config=t||{},r.mutations=[],r.mutationId=0,r}return Ci(n,[{key:"build",value:function(t,e,n){var r=new GK({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:n,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0,meta:e.meta});return this.add(r),r}},{key:"add",value:function(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}},{key:"remove",value:function(t){this.mutations=this.mutations.filter((function(e){return e!==t})),this.notify({type:"removed",mutation:t})}},{key:"clear",value:function(){var t=this;HK.batch((function(){t.mutations.forEach((function(e){t.remove(e)}))}))}},{key:"getAll",value:function(){return this.mutations}},{key:"find",value:function(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find((function(e){return vK(t,e)}))}},{key:"findAll",value:function(t){return this.mutations.filter((function(e){return vK(t,e)}))}},{key:"notify",value:function(t){var e=this;HK.batch((function(){e.listeners.forEach((function(e){e(t)}))}))}},{key:"resumePausedMutations",value:function(){var t=this.mutations.filter((function(t){return t.state.isPaused}));return HK.batch((function(){return t.reduce((function(t,e){return t.then((function(){return e.continue().catch(lK)}))}),Promise.resolve())}))}}]),n}(sK);function ZK(){return{onFetch:function(t){t.fetchFn=function(){var e,n,r,i,a,o,s,u,l,c=null==(e=t.fetchOptions)||null==(n=e.meta)?void 0:n.refetchPage,f=null==(r=t.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,d=null==f?void 0:f.pageParam,h="forward"===(null==f?void 0:f.direction),p="backward"===(null==f?void 0:f.direction),v=(null==(a=t.state.data)?void 0:a.pages)||[],g=(null==(o=t.state.data)?void 0:o.pageParams)||[],m=g,y=!1,b=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},_=function(t,e,n,r){return m=r?[e].concat(mi(m)):[].concat(mi(m),[e]),r?[n].concat(mi(t)):[].concat(mi(t),[n])},x=function(e,n,r,i){if(y)return Promise.reject("Cancelled");if(void 0===r&&!n&&e.length)return Promise.resolve(e);var a,o={queryKey:t.queryKey,pageParam:r,meta:t.meta};a=o,Object.defineProperty(a,"signal",{enumerable:!0,get:function(){var e,n;return null!=(e=t.signal)&&e.aborted?y=!0:null==(n=t.signal)||n.addEventListener("abort",(function(){y=!0})),t.signal}});var s=b(o);return Promise.resolve(s).then((function(t){return _(e,r,t,i)}))};if(v.length)if(h){var w=void 0!==d,k=w?d:XK(t.options,v);s=x(v,w,k)}else if(p){var S=void 0!==d,E=S?d:(u=t.options,l=v,null==u.getPreviousPageParam?void 0:u.getPreviousPageParam(l[0],l));s=x(v,S,E,!0)}else!function(){m=[];var e=void 0===t.options.getNextPageParam,n=!c||!v[0]||c(v[0],0,v);s=n?x([],e,g[0]):Promise.resolve(_([],g[0],v[0]));for(var r=function(n){s=s.then((function(r){if(!c||!v[n]||c(v[n],n,v)){var i=e?g[n]:XK(t.options,r);return x(r,e,i)}return Promise.resolve(_(r,g[n],v[n]))}))},i=1;i<v.length;i++)r(i)}();else s=x([]);var C=s.then((function(t){return{pages:t,pageParams:m}}));return C}}}}function XK(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}var KK=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ai(this,t),this.queryCache=e.queryCache||new YK,this.mutationCache=e.mutationCache||new qK,this.logger=e.logger||IK,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}return Ci(t,[{key:"mount",value:function(){var t=this;this.unsubscribeFocus=TK.subscribe((function(){TK.isFocused()&&(t.resumePausedMutations(),t.queryCache.onFocus())})),this.unsubscribeOnline=MK.subscribe((function(){MK.isOnline()&&(t.resumePausedMutations(),t.queryCache.onOnline())}))}},{key:"unmount",value:function(){var t,e;null==(t=this.unsubscribeFocus)||t.call(this),null==(e=this.unsubscribeOnline)||e.call(this)}},{key:"isFetching",value:function(t,e){var n=wi(hK(t,e),1)[0];return n.fetchStatus="fetching",this.queryCache.findAll(n).length}},{key:"isMutating",value:function(t){return this.mutationCache.findAll(_i(_i({},t),{},{fetching:!0})).length}},{key:"getQueryData",value:function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state.data}},{key:"getQueriesData",value:function(t){return this.getQueryCache().findAll(t).map((function(t){return[t.queryKey,t.state.data]}))}},{key:"setQueryData",value:function(t,e,n){var r=this.queryCache.find(t),i=function(t,e){return"function"==typeof t?t(e):t}(e,null==r?void 0:r.state.data);if(void 0!==i){var a=dK(t),o=this.defaultQueryOptions(a);return this.queryCache.build(this,o).setData(i,_i(_i({},n),{},{manual:!0}))}}},{key:"setQueriesData",value:function(t,e,n){var r=this;return HK.batch((function(){return r.getQueryCache().findAll(t).map((function(t){var i=t.queryKey;return[i,r.setQueryData(i,e,n)]}))}))}},{key:"getQueryState",value:function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state}},{key:"removeQueries",value:function(t,e){var n=wi(hK(t,e),1)[0],r=this.queryCache;HK.batch((function(){r.findAll(n).forEach((function(t){r.remove(t)}))}))}},{key:"resetQueries",value:function(t,e,n){var r=this,i=wi(hK(t,e,n),2),a=i[0],o=i[1],s=this.queryCache,u=_i({type:"active"},a);return HK.batch((function(){return s.findAll(a).forEach((function(t){t.reset()})),r.refetchQueries(u,o)}))}},{key:"cancelQueries",value:function(t,e,n){var r=this,i=wi(hK(t,e,n),2),a=i[0],o=i[1],s=void 0===o?{}:o;void 0===s.revert&&(s.revert=!0);var u=HK.batch((function(){return r.queryCache.findAll(a).map((function(t){return t.cancel(s)}))}));return Promise.all(u).then(lK).catch(lK)}},{key:"invalidateQueries",value:function(t,e,n){var r=this,i=wi(hK(t,e,n),2),a=i[0],o=i[1];return HK.batch((function(){var t,e;if(r.queryCache.findAll(a).forEach((function(t){t.invalidate()})),"none"===a.refetchType)return Promise.resolve();var n=_i(_i({},a),{},{type:null!=(t=null!=(e=a.refetchType)?e:a.type)?t:"active"});return r.refetchQueries(n,o)}))}},{key:"refetchQueries",value:function(t,e,n){var r=this,i=wi(hK(t,e,n),2),a=i[0],o=i[1],s=HK.batch((function(){return r.queryCache.findAll(a).filter((function(t){return!t.isDisabled()})).map((function(t){var e;return t.fetch(void 0,_i(_i({},o),{},{cancelRefetch:null==(e=null==o?void 0:o.cancelRefetch)||e,meta:{refetchPage:a.refetchPage}}))}))})),u=Promise.all(s).then(lK);return null!=o&&o.throwOnError||(u=u.catch(lK)),u}},{key:"fetchQuery",value:function(t,e,n){var r=dK(t,e,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);var a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}},{key:"prefetchQuery",value:function(t,e,n){return this.fetchQuery(t,e,n).then(lK).catch(lK)}},{key:"fetchInfiniteQuery",value:function(t,e,n){var r=dK(t,e,n);return r.behavior=ZK(),this.fetchQuery(r)}},{key:"prefetchInfiniteQuery",value:function(t,e,n){return this.fetchInfiniteQuery(t,e,n).then(lK).catch(lK)}},{key:"resumePausedMutations",value:function(){return this.mutationCache.resumePausedMutations()}},{key:"getQueryCache",value:function(){return this.queryCache}},{key:"getMutationCache",value:function(){return this.mutationCache}},{key:"getLogger",value:function(){return this.logger}},{key:"getDefaultOptions",value:function(){return this.defaultOptions}},{key:"setDefaultOptions",value:function(t){this.defaultOptions=t}},{key:"setQueryDefaults",value:function(t,e){var n=this.queryDefaults.find((function(e){return mK(t)===mK(e.queryKey)}));n?n.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}},{key:"getQueryDefaults",value:function(t){if(t){var e=this.queryDefaults.find((function(e){return yK(t,e.queryKey)}));return null==e?void 0:e.defaultOptions}}},{key:"setMutationDefaults",value:function(t,e){var n=this.mutationDefaults.find((function(e){return mK(t)===mK(e.mutationKey)}));n?n.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}},{key:"getMutationDefaults",value:function(t){if(t){var e=this.mutationDefaults.find((function(e){return yK(t,e.mutationKey)}));return null==e?void 0:e.defaultOptions}}},{key:"defaultQueryOptions",value:function(t){if(null!=t&&t._defaulted)return t;var e=_i(_i(_i(_i({},this.defaultOptions.queries),this.getQueryDefaults(null==t?void 0:t.queryKey)),t),{},{_defaulted:!0});return!e.queryHash&&e.queryKey&&(e.queryHash=gK(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}},{key:"defaultMutationOptions",value:function(t){return null!=t&&t._defaulted?t:_i(_i(_i(_i({},this.defaultOptions.mutations),this.getMutationDefaults(null==t?void 0:t.mutationKey)),t),{},{_defaulted:!0})}},{key:"clear",value:function(){this.queryCache.clear(),this.mutationCache.clear()}}]),t}(),$K=ki.exports.createContext(void 0),QK=ki.exports.createContext(!1);function JK(t,e){return t||(e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=$K),window.ReactQueryClientContext):$K)}hi("a3",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.context,n=ki.exports.useContext(JK(e,ki.exports.useContext(QK)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n}));var t$=function(t){var e=t.client,n=t.children,r=t.context,i=t.contextSharing,a=void 0!==i&&i;ki.exports.useEffect((function(){return e.mount(),function(){e.unmount()}}),[e]);var o=JK(r,a);return yk(QK.Provider,{value:!r&&a,children:yk(o.Provider,{value:e,children:n})})},e$=hi("v",(function(t,e,n){return t()})),n$=function(t){return t.LOCAL_CONTENT="local-content",t.DATA_EXPLORER="data-explorer",t.DEMOGRAPHICS="demographics",t}(n$||{}),r$=new MX,i$=pa.lazy((function(){return e$((function(){return gi.import("./index-legacy.8a8cb342.js")}),void 0)})),a$=pa.lazy((function(){return e$((function(){return gi.import("./index-legacy.4d0178fa.js")}),void 0)})),o$=pa.lazy((function(){return e$((function(){return gi.import("./index-legacy.02b7ed30.js")}),void 0)})),s$=function(t){var e=t.children,n=[{path:"/sdks-app/".concat("v1","/",n$.LOCAL_CONTENT),element:yk(i$,{})},{path:"/sdks-app/".concat("v1","/",n$.DATA_EXPLORER),element:yk(a$,{})},{path:"/sdks-app/".concat("v1","/",n$.DEMOGRAPHICS),element:yk(o$,{})}];return yk(PX,{location:r$,routes:n,children:e})},u$=Object.defineProperty,l$=function(t,e,n){return function(t,e,n){e in t?u$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n};function c$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var f$={exports:{}};!function(t){var e=function(){var t=Object.defineProperty,e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=function(e,n,r){return n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},a=function(t,a){for(var o in a||(a={}))n.call(a,o)&&i(t,o,a[o]);if(e){var s,u=zi(e(a));try{for(u.s();!(s=u.n()).done;){o=s.value;r.call(a,o)&&i(t,o,a[o])}}catch(l){u.e(l)}finally{u.f()}}return t},o={};!function(e,n){for(var r in function(e){t(e,"__esModule",{value:!0})}(e),n)t(e,r,{get:n[r],enumerable:!0})}(o,{DEFAULT_UUID_LENGTH:function(){return u},default:function(){return f}});var s="4.4.4",u=6,l={dictionary:"alphanum",shuffle:!0,debug:!1,length:u},c=function(t){Ti(n,t);var e=Mi(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ai(this,n),(t=e.call(this)).dictIndex=0,t.dictRange=[],t.lowerBound=0,t.upperBound=0,t.dictLength=0,t._digit_first_ascii=48,t._digit_last_ascii=58,t._alpha_lower_first_ascii=97,t._alpha_lower_last_ascii=123,t._hex_last_ascii=103,t._alpha_upper_first_ascii=65,t._alpha_upper_last_ascii=91,t._number_dict_ranges={digits:[t._digit_first_ascii,t._digit_last_ascii]},t._alpha_dict_ranges={lowerCase:[t._alpha_lower_first_ascii,t._alpha_lower_last_ascii],upperCase:[t._alpha_upper_first_ascii,t._alpha_upper_last_ascii]},t._alpha_lower_dict_ranges={lowerCase:[t._alpha_lower_first_ascii,t._alpha_lower_last_ascii]},t._alpha_upper_dict_ranges={upperCase:[t._alpha_upper_first_ascii,t._alpha_upper_last_ascii]},t._alphanum_dict_ranges={digits:[t._digit_first_ascii,t._digit_last_ascii],lowerCase:[t._alpha_lower_first_ascii,t._alpha_lower_last_ascii],upperCase:[t._alpha_upper_first_ascii,t._alpha_upper_last_ascii]},t._alphanum_lower_dict_ranges={digits:[t._digit_first_ascii,t._digit_last_ascii],lowerCase:[t._alpha_lower_first_ascii,t._alpha_lower_last_ascii]},t._alphanum_upper_dict_ranges={digits:[t._digit_first_ascii,t._digit_last_ascii],upperCase:[t._alpha_upper_first_ascii,t._alpha_upper_last_ascii]},t._hex_dict_ranges={decDigits:[t._digit_first_ascii,t._digit_last_ascii],alphaDigits:[t._alpha_lower_first_ascii,t._hex_last_ascii]},t.log=function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=[].concat(r);if(a[0]="[short-unique-id] ".concat(r[0]),!0===t.debug&&("undefined"==typeof console?"undefined":Fi(console))<"u"&&null!==console)return(e=console).log.apply(e,mi(a))},t.setDictionary=function(e,n){var r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{var i;r=[],t.dictIndex=i=0;var a="_".concat(e,"_dict_ranges"),o=t[a];Object.keys(o).forEach((function(e){var n=e;for(t.dictRange=o[n],t.lowerBound=t.dictRange[0],t.upperBound=t.dictRange[1],t.dictIndex=i=t.lowerBound;t.lowerBound<=t.upperBound?i<t.upperBound:i>t.upperBound;t.dictIndex=t.lowerBound<=t.upperBound?i+=1:i-=1)r.push(String.fromCharCode(t.dictIndex))}))}n&&(r=r.sort((function(){return Math.random()-.5}))),t.dict=r,t.dictLength=t.dict.length,t.counter=0},t.seq=function(){return t.sequentialUUID()},t.sequentialUUID=function(){var e,n,r="";e=t.counter;do{n=e%t.dictLength,e=Math.trunc(e/t.dictLength),r+=t.dict[n]}while(0!==e);return t.counter+=1,r},t.randomUUID=function(){var e,n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.uuidLength||u;if(null===i||Fi(i)>"u"||i<1)throw new Error("Invalid UUID Length Provided");for(e="",r=0;r<i;r+=1)n=parseInt((Math.random()*t.dictLength).toFixed(0),10)%t.dictLength,e+=t.dict[n];return e},t.availableUUIDs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.uuidLength;return parseFloat(Math.pow(mi(new Set(t.dict)).length,e).toFixed(0))},t.approxMaxBeforeCollision=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.availableUUIDs(t.uuidLength);return parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20))},t.collisionProbability=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.availableUUIDs(t.uuidLength),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.uuidLength;return parseFloat((t.approxMaxBeforeCollision(e)/t.availableUUIDs(n)).toFixed(20))},t.uniqueness=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.availableUUIDs(t.uuidLength),n=parseFloat((1-t.approxMaxBeforeCollision(e)/e).toFixed(20));return n>1?1:n<0?0:n},t.getVersion=function(){return t.version},t.stamp=function(e){if("number"!=typeof e||e<10)throw new Error("Param finalLength must be number greater than 10");var n=Math.floor(+new Date/1e3).toString(16),r=e-9,i=Math.round(Math.random()*(r>15?15:r)),a=t.randomUUID(r);return"".concat(a.substr(0,i)).concat(n).concat(a.substr(i)).concat(i.toString(16))},t.parseStamp=function(t){if(t.length<10)throw new Error("Stamp length invalid");var e=parseInt(t.substr(t.length-1,1),16);return new Date(1e3*parseInt(t.substr(e,8),16))};var i=a(a({},l),r);t.counter=0,t.debug=!1,t.dict=[],t.version=s;var o=i.dictionary,c=i.shuffle,f=i.length;return Oi(t,(t.uuidLength=f,t.setDictionary(o,c),t.debug=i.debug,t.log(t.dict),t.log("Generator instantiated with Dictionary Size ".concat(t.dictLength)),new Proxy(Pi(t),{apply:function(e,n,r){var i;return(i=t).randomUUID.apply(i,mi(r))}})))}return Ci(n)}(Ri(Function)),f=c;return f.default=c,o}();t.exports=e.default,("undefined"==typeof window?"undefined":Fi(window))<"u"&&(e=e.default)}(f$);var d$=new(c$(f$.exports))({length:10}),h$=function(){function t(e,n){var r=this;Ai(this,t),l$(this,"connection"),l$(this,"channelId"),l$(this,"boundMessageHandler"),l$(this,"onMessageHandlers",[]),l$(this,"resolveConnection"),l$(this,"channelNodeId"),l$(this,"crossOrigin"),l$(this,"message",(function(t,e,n){return r.crossOrigin?r.postMessage(t,e,n):r.customEventMessage(t,e,n)})),this.channelId=null!=e?e:"DEFAULT",this.channelNodeId="channel-node-".concat(d$()),this.crossOrigin=n,this.connection=new Promise((function(t){r.resolveConnection=t})),this.boundMessageHandler=this.handleMessage.bind(this)}var e,n;return Ci(t,[{key:"disconnect",value:function(){var t=this;this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise((function(e){t.resolveConnection=e}))}},{key:"onMessage",value:function(t){this.onMessageHandlers.push(t)}},{key:"removeMessageHandler",value:function(t){var e=this.onMessageHandlers.findIndex((function(e){return e===t}));this.onMessageHandlers.splice(e,1)}},{key:"customEventMessage",value:function(t,e,n){var r=new CustomEvent(this.channelId,{detail:{eventId:n,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:e}});window.dispatchEvent(r)}},{key:"postMessage",value:function(t,e,n){var r,i,a,o;if(null==(r=this.crossOrigin)||!r.targetOrigin)throw new Error("A target origin was not specified.");null==(o=null==(i=this.crossOrigin)?void 0:i.window)||o.postMessage({eventId:n,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:e},null==(a=this.crossOrigin)?void 0:a.targetOrigin)}},{key:"eventRequest",value:(n=pi(di().mark((function t(e,n){var r,i=this;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=d$(),t.abrupt("return",new Promise((function(t){i.onMessage((function e(n){var a=n.eventId;r===a&&(i.removeMessageHandler(e),t(n))})),i.message(e,n,r)})));case 2:case"end":return t.stop()}}),t)}))),function(t,e){return n.apply(this,arguments)})},{key:"waitForEvent",value:(e=pi(di().mark((function t(e){var n=this;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){n.onMessage((function r(i){var a=i.name;e===a&&(n.removeMessageHandler(r),t(i))}))})));case 1:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"handleMessage",value:function(e){var n,r;if(t.isCustomEvent(e))r=e.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(e.origin)&&"*"!==(null==(n=this.crossOrigin)?void 0:n.targetOrigin))return;r=e.data}var i=r,a=i.channelId,o=i.channelNodeId;this.channelId===a&&this.channelNodeId!==o&&this.onMessageHandlers.forEach((function(t){t(r)}))}}],[{key:"isCustomEvent",value:function(t){return void 0!==t.detail}}]),t}(),p$=function(t){Ti(n,t);var e=Mi(n);function n(){return Ai(this,n),e.apply(this,arguments)}return Ci(n,[{key:"connect",value:function(){var t=this;return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest("CONNECT").then((function(e){t.resolveConnection(e)})),this.connection}}]),n}(h$),v$=1/0,g$=17976931348623157e292,m$=NaN,y$="[object Symbol]",b$=/^\s+|\s+$/g,_$=/^[-+]0x[0-9a-f]+$/i,x$=/^0b[01]+$/i,w$=/^0o[0-7]+$/i,k$=parseInt,S$=Object.prototype.toString;function E$(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=function(t){var e=function(t){if(!t)return 0===t?t:0;if((t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==Fi(t)||function(t){return!!t&&"object"==Fi(t)}(t)&&S$.call(t)==y$}(t))return m$;if(C$(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=C$(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(b$,"");var n=x$.test(t);return n||w$.test(t)?k$(t.slice(2),n?2:8):_$.test(t)?m$:+t}(t))===v$||t===-1/0){return(t<0?-1:1)*g$}return t==t?t:0}(t),n=e%1;return e==e?n?e-n:e:0}(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}function C$(t){var e=Fi(t);return!!t&&("object"==e||"function"==e)}var A$=function(t){return E$(2,t)},T$=Object.defineProperty,M$=function(t,e,n){return function(t,e,n){e in t?T$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},O$=[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],P$=("undefined"==typeof BigInt?"undefined":Fi(BigInt))<"u"?BigInt:Number;function R$(t){var e=P$(0),n=P$(0),r=[];if(t.split("").forEach((function(t){var i=P$(function(t){var e=t.charCodeAt(0);return O$[e-45]}(t));e|=(i&P$(31))<<n,(i&P$(32))===P$(0)?(r.push(e),e=P$(0),n=P$(0)):n+=P$(5)})),n>0)throw new Error("Invalid encoding");return r}function D$(t){var e=t;return e&P$(1)&&(e=~e),+(e>>=P$(1)).toString()}var L$=Object.freeze(Object.defineProperty({__proto__:null,decode:function(t){for(var e=R$(t),n=function(t,e){if(1!=+t.toString())throw new Error("Invalid format version");var n=+e.toString();return{precision:15&n,thirdDim:n>>4&7,thirdDimPrecision:n>>7&15}}(e[0],e[1]),r=Math.pow(10,n.precision),i=Math.pow(10,n.thirdDimPrecision),a=n.thirdDim,o=0,s=0,u=0,l=[],c=2;c<e.length;){if(o+=D$(e[c])/r,s+=D$(e[c+1])/r,a)u+=D$(e[c+2])/i,l.push([s,o,u]),c+=3;else l.push([s,o]),c+=2}if(c!==e.length)throw new Error("Invalid encoding. Premature ending reached");return{type:"FeatureCollection",features:[{id:"route",type:"Feature",geometry:{type:"LineString",coordinates:l}}]}}},Symbol.toStringTag,{value:"Module"}));var I$=Object.freeze(Object.defineProperty({__proto__:null,formatGeometry:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=function t(e){return Object.values(e).map((function(e){return Array.isArray(e[0])?t(e):[e[1],e[0]]}))};return{type:"FeatureCollection",features:[{id:"schoolCatchment",type:"Feature",geometry:{type:"MultiPolygon",coordinates:e(t)}}]}}},Symbol.toStringTag,{value:"Module"})),N$=(hi("w",Object.freeze(Object.defineProperty({__proto__:null,polyline:L$,formatGeometry:I$},Symbol.toStringTag,{value:"Module"}))),function(t){return"object"==Fi(t)&&null!==t&&!Array.isArray(t)});var F$=Object.freeze(Object.defineProperty({__proto__:null,isObject:N$,mergeDeep:function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(!r.length)return e;var a=r.shift();return N$(e)&&N$(a)&&Object.keys(a).forEach((function(n){N$(a[n])?(e[n]||Object.assign(e,xi({},n,{})),t(e[n],a[n])):Object.assign(e,xi({},n,a[n]))})),t.apply(void 0,[e].concat(r))}},Symbol.toStringTag,{value:"Module"})),z$=Object.freeze(Object.defineProperty({__proto__:null,pluralize:function(t,e,n){return 1===e?t:null!=n?n:"".concat(t,"s")},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},formatAddress:function(t){var e=t.houseNumber,n=t.street,r=t.city,i=t.state,a=t.country,o=t.postalCode;return["".concat(e?"".concat(e&&n?"".concat(e," "):"".concat(e)):"").concat(n||""),r,i,a,o].reduceRight((function(t,e){return t&&e?"".concat(e,", ").concat(t):e||t||""}))||""}},Symbol.toStringTag,{value:"Module"})),j$=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:function(t){var e=t.data,n=t.fileName,r=t.fileType,i="text/".concat(r),a=new Blob([e],{type:i}),o=document.createElement("a");o.download="".concat(n,".").concat(r),o.href=window.URL.createObjectURL(a);var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});o.dispatchEvent(s),o.remove()}},Symbol.toStringTag,{value:"Module"})),B$=Object.freeze(Object.defineProperty({__proto__:null,isSchool:function(t,e){return"school"===e}},Symbol.toStringTag,{value:"Module"})),V$=Object.freeze(Object.defineProperty({__proto__:null,poi:B$},Symbol.toStringTag,{value:"Module"}));hi({I:z$,a6:j$,C:V$});var H$={},U$={},W$={},Y$={
|
|
67
|
-
/*!
|
|
68
|
-
* cookie
|
|
69
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
70
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
71
|
-
* MIT Licensed
|
|
72
|
-
*/
|
|
73
|
-
parse:function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},r=e||{},i=t.split(Z$),a=r.decode||G$,o=0;o<i.length;o++){var s=i[o],u=s.indexOf("=");if(!(u<0)){var l=s.substr(0,u).trim(),c=s.substr(++u,s.length).trim();'"'==c[0]&&(c=c.slice(1,-1)),null==n[l]&&(n[l]=K$(c,a))}}return n},serialize:function(t,e,n){var r=n||{},i=r.encode||q$;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!X$.test(t))throw new TypeError("argument name is invalid");var a=i(e);if(a&&!X$.test(a))throw new TypeError("argument val is invalid");var o=t+"="+a;if(null!=r.maxAge){var s=r.maxAge-0;if(isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age="+Math.floor(s)}if(r.domain){if(!X$.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!X$.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return o}},G$=decodeURIComponent,q$=encodeURIComponent,Z$=/; */,X$=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function K$(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(W$,"__esModule",{value:!0});var $$=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();W$.hasCookies=function(){var t=new eQ;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),"1"===n}catch(r){return!1}};var Q$=function(t){return t&&t.__esModule?t:{default:t}}(Y$);function J$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var tQ="lS_",eQ=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};J$(this,t),this.cookieOptions=Object.assign({path:"/"},e),tQ=void 0===e.prefix?tQ:e.prefix}return $$(t,[{key:"getItem",value:function(t){var e=Q$.default.parse(document.cookie);return e&&e.hasOwnProperty(tQ+t)?e[tQ+t]:null}},{key:"setItem",value:function(t,e){return document.cookie=Q$.default.serialize(tQ+t,e,this.cookieOptions),e}},{key:"removeItem",value:function(t){var e=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=Q$.default.serialize(tQ+t,"",e),null}},{key:"clear",value:function(){var t=Q$.default.parse(document.cookie);for(var e in t)0===e.indexOf(tQ)&&this.removeItem(e.substr(tQ.length));return null}}]),t}();W$.default=eQ,Object.defineProperty(U$,"__esModule",{value:!0}),U$.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage",e=String(t).replace(/storage$/i,"").toLowerCase();if("local"===e)return iQ("localStorage");if("session"===e)return iQ("sessionStorage");if("cookie"===e)return(0,nQ.hasCookies)();if("memory"===e)return!0;throw new Error("Storage method `"+t+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")};var nQ=W$,rQ="__test";function iQ(t){try{var e=window[t];return e.setItem(rQ,"1"),e.removeItem(rQ),!0}catch(n){return!1}}var aQ={};Object.defineProperty(aQ,"__esModule",{value:!0});var oQ=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var sQ=function(){function t(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._data={}}return oQ(t,[{key:"getItem",value:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}},{key:"setItem",value:function(t,e){return this._data[t]=String(e)}},{key:"removeItem",value:function(t){return delete this._data[t]}},{key:"clear",value:function(){return this._data={}}}]),t}();aQ.default=sQ,Object.defineProperty(H$,"__esModule",{value:!0}),H$.MemoryStorage=H$.CookieStorage=H$.isSupported=H$.storage=void 0;var uQ=fQ(U$),lQ=fQ(W$),cQ=fQ(aQ);function fQ(t){return t&&t.__esModule?t:{default:t}}var dQ=null;(0,uQ.default)("localStorage")?H$.storage=dQ=window.localStorage:(0,uQ.default)("sessionStorage")?H$.storage=dQ=window.sessionStorage:(0,uQ.default)("cookieStorage")?H$.storage=dQ=new lQ.default:H$.storage=dQ=new cQ.default;var hQ=H$.default=dQ;H$.storage=dQ,H$.isSupported=uQ.default,H$.CookieStorage=lQ.default,H$.MemoryStorage=cQ.default;var pQ=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";Ai(this,t),M$(this,"group"),M$(this,"localStorage"),this.group=e,this.localStorage=hQ}return Ci(t,[{key:"setGroup",value:function(t){this.group=t}},{key:"getGroup",value:function(){return this.group}},{key:"getItem",value:function(t){return this.localStorage.getItem("".concat(this.group,".").concat(t))}},{key:"setItem",value:function(t,e){this.localStorage.setItem("".concat(this.group,".").concat(t),e)}},{key:"removeItem",value:function(t){this.localStorage.removeItem("".concat(this.group,".").concat(t))}}]),t}();new pQ;var vQ=function(){function t(){Ai(this,t),M$(this,"storageLocation","suggestion_history"),M$(this,"storage"),M$(this,"history",[]),this.storage=new pQ("commute");var e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}return Ci(t,[{key:"push",value:function(t){this.history=this.removeDuplicateEntries(t),this.history.unshift(t),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}},{key:"hasSuggestionHistory",value:function(){return this.history.length>0}},{key:"getSuggestionHistory",value:function(){return this.history}},{key:"removeDuplicateEntries",value:function(t){return this.history.filter((function(e){return e.locationId!==t.locationId}))}}]),t}(),gQ=(hi("D",new vQ),hi("a",(function(t,e){var n=wi(ki.exports.useState(t),2),r=n[0],i=n[1];return ki.exports.useEffect((function(){var n=setTimeout((function(){i(t)}),e);return function(){clearTimeout(n)}}),[t,e]),r}))),mQ=function(t){return t.GET_STATE="get-state",t.GET_STATE_RESPONSE="get-state-response",t.SET_STATE="set-state",t.ON_CHANGE="on-change",t}(mQ||{}),yQ={},bQ={locale:"en"},_Q={"local-content":{globalOptions:bQ,options:{zoom:16,pitch:0,bearing:0,cooperativeGestures:!0}},"data-explorer":{globalOptions:bQ,options:yQ},demographics:{globalOptions:bQ,options:yQ}},xQ=A$((function(){return pa.createContext({})})),wQ=hi("u",(function(){var t=pa.useContext(xQ());if(!t)throw new Error("useStateManagerContext must be used under StateManagerProvider");return t})),kQ=pa.memo((function(t){var e,n,r,i,a,o,s=t.children,u=xQ(),l=LX().current.search,c=pa.useRef(l),f=LX().current.pathname.split("/"),d=f[f.length-1],h=_Q[d],p=pa.useRef(),v=wi(ki.exports.useState(!1),2),g=v[0],m=v[1],y=wi(ki.exports.useState(h),2),b=y[0],_=y[1],x=gQ(b,500),w=HX(),k=function(t){c.current=t,_(t)},S=function(t){var e;t.name===mQ.GET_STATE&&(null===(e=p.current)||void 0===e||e.message(mQ.GET_STATE_RESPONSE,c.current,t.eventId));t.name===mQ.SET_STATE&&k(t.data)};e=function(){var t=new p$(l.channelId,{targetOrigin:document.referrer,window:window.parent});p.current=t,null==t||t.onMessage(S),null==t||t.connect().then((function(t){var e=F$.mergeDeep(b,t.data);k(e),m(!0)}))},n=ki.exports.useRef(e),r=ki.exports.useRef(),i=ki.exports.useRef(!1),a=ki.exports.useRef(!1),o=wi(ki.exports.useState(0),2)[1],i.current&&(a.current=!0),ki.exports.useEffect((function(){return i.current||(r.current=n.current(),i.current=!0),o((function(t){return t+1})),function(){a.current&&r.current&&r.current()}}),[]);var E=function(t){var e;null===(e=p.current)||void 0===e||e.message(mQ.ON_CHANGE,t)};ki.exports.useEffect((function(){w({search:function(){return x}})}),[x]),ki.exports.useEffect((function(){b.options&&E({type:"options",data:b.options})}),[b.options]);var C=ki.exports.useMemo((function(){return{sdkState:b,setSdkState:k,onChange:E}}),[b,k,E]);return g?yk(u.Provider,{value:C,children:s}):null}));kQ.displayName="StateManagerProvider";var SQ={en:function(){return e$((function(){return gi.import("./index-legacy.93d69255.js")}),void 0)},fr:function(){return e$((function(){return gi.import("./index-legacy.46f64d17.js")}),void 0)}},EQ={en:function(){return e$((function(){return gi.import("./index-legacy.57bc6187.js")}),void 0)},fr:function(){return e$((function(){return gi.import("./index-legacy.c4bf8ae2.js")}),void 0)}},CQ={en:function(){return e$((function(){return gi.import("./index-legacy.8634a2d4.js")}),void 0)},fr:function(){return e$((function(){return gi.import("./index-legacy.4330b3be.js")}),void 0)}},AQ={"local-content":function(t){return EQ[t]()},"data-explorer":function(t){return SQ[t]()},demographics:function(t){return CQ[t]()}},TQ=A$((function(){return pa.createContext({})})),MQ=(hi("d",(function(){var t=ki.exports.useContext(TQ());if(!t)throw new Error("useLangauges must be used under LanguagesProvider");return t})),function(t){var e,n=t.children,r=wi(ki.exports.useState(!0),2),i=r[0],a=r[1],o=wi(ki.exports.useState(),2),s=o[0],u=o[1],l=(null===(e=wQ().sdkState.globalOptions)||void 0===e?void 0:e.locale)||"en",c=TQ(),f=LX().current.pathname.split("/"),d=f[f.length-1],h=AQ[d];if(ki.exports.useEffect((function(){a(!0),h(l).then((function(t){u(t.translations)})).finally((function(){a(!1)}))}),[l,h]),i)return null;if(!s)throw new Error("No translations were found.");return yk(c.Provider,{value:{translations:s},children:n})}),OQ=Object.defineProperty,PQ=function(t,e,n){return function(t,e,n){e in t?OQ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n};function RQ(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var DQ={exports:{}},LQ={exports:{}},IQ=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)}},NQ=IQ,FQ=Object.prototype.toString;function zQ(t){return Array.isArray(t)}function jQ(t){return Fi(t)>"u"}function BQ(t){return"[object ArrayBuffer]"===FQ.call(t)}function VQ(t){return null!==t&&"object"==Fi(t)}function HQ(t){if("[object Object]"!==FQ.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function UQ(t){return"[object Function]"===FQ.call(t)}function WQ(t,e){if(!(null===t||Fi(t)>"u"))if("object"!=Fi(t)&&(t=[t]),zQ(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)}var YQ={isArray:zQ,isArrayBuffer:BQ,isBuffer:function(t){return null!==t&&!jQ(t)&&null!==t.constructor&&!jQ(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"[object FormData]"===FQ.call(t)},isArrayBufferView:function(t){return("undefined"==typeof ArrayBuffer?"undefined":Fi(ArrayBuffer))<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&BQ(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:VQ,isPlainObject:HQ,isUndefined:jQ,isDate:function(t){return"[object Date]"===FQ.call(t)},isFile:function(t){return"[object File]"===FQ.call(t)},isBlob:function(t){return"[object Blob]"===FQ.call(t)},isFunction:UQ,isStream:function(t){return VQ(t)&&UQ(t.pipe)},isURLSearchParams:function(t){return"[object URLSearchParams]"===FQ.call(t)},isStandardBrowserEnv:function(){return(!(("undefined"==typeof navigator?"undefined":Fi(navigator))<"u")||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&(("undefined"==typeof window?"undefined":Fi(window))<"u"&&("undefined"==typeof document?"undefined":Fi(document))<"u")},forEach:WQ,merge:function t(){var e={};function n(n,r){HQ(e[r])&&HQ(n)?e[r]=t(e[r],n):HQ(n)?e[r]=t({},n):zQ(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)WQ(arguments[r],n);return e},extend:function(t,e,n){return WQ(e,(function(e,r){t[r]=n&&"function"==typeof e?NQ(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}},GQ=YQ;function qQ(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ZQ=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(GQ.isURLSearchParams(e))r=e.toString();else{var i=[];GQ.forEach(e,(function(t,e){null===t||Fi(t)>"u"||(GQ.isArray(t)?e+="[]":t=[t],GQ.forEach(t,(function(t){GQ.isDate(t)?t=t.toISOString():GQ.isObject(t)&&(t=JSON.stringify(t)),i.push(qQ(e)+"="+qQ(t))})))})),r=i.join("&")}if(r){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t},XQ=YQ;function KQ(){this.handlers=[]}KQ.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},KQ.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},KQ.prototype.forEach=function(t){XQ.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var $Q,QQ,JQ,tJ,eJ,nJ,rJ,iJ,aJ,oJ,sJ,uJ,lJ,cJ,fJ,dJ,hJ,pJ,vJ,gJ,mJ=KQ,yJ=YQ,bJ=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},_J={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};function xJ(){if(QQ)return $Q;QQ=1;var t=bJ;return $Q=function(e,n,r,i,a){var o=new Error(e);return t(o,n,r,i,a)},$Q}function wJ(){if(uJ)return sJ;uJ=1;var t=(iJ||(iJ=1,rJ=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),rJ),e=(oJ||(oJ=1,aJ=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}),aJ);return sJ=function(n,r){return n&&!t(r)?e(n,r):r},sJ}function kJ(){if(pJ)return hJ;function t(t){this.message=t}return pJ=1,t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,hJ=t}function SJ(){if(gJ)return vJ;gJ=1;var t=YQ,e=function(){if(tJ)return JQ;tJ=1;var t=xJ();return JQ=function(e,n,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?n(t("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},JQ}(),n=function(){if(nJ)return eJ;nJ=1;var t=YQ;return eJ=t.isStandardBrowserEnv()?{write:function(e,n,r,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(n)),t.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),t.isString(i)&&s.push("path="+i),t.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},eJ}(),r=ZQ,i=wJ(),a=function(){if(cJ)return lJ;cJ=1;var t=YQ,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 lJ=function(n){var r,i,a,o={};return n&&t.forEach(n.split("\n"),(function(n){if(a=n.indexOf(":"),r=t.trim(n.substr(0,a)).toLowerCase(),i=t.trim(n.substr(a+1)),r){if(o[r]&&e.indexOf(r)>=0)return;o[r]="set-cookie"===r?(o[r]?o[r]:[]).concat([i]):o[r]?o[r]+", "+i:i}})),o},lJ}(),o=function(){if(dJ)return fJ;dJ=1;var t=YQ;return fJ=t.isStandardBrowserEnv()?function(){var e,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var e=t;return n&&(r.setAttribute("href",e),e=r.href),r.setAttribute("href",e),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(n){var r=t.isString(n)?i(n):n;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},fJ}(),s=xJ(),u=_J,l=kJ();return vJ=function(c){return new Promise((function(f,d){var h,p=c.data,v=c.headers,g=c.responseType;function m(){c.cancelToken&&c.cancelToken.unsubscribe(h),c.signal&&c.signal.removeEventListener("abort",h)}t.isFormData(p)&&delete v["Content-Type"];var y=new XMLHttpRequest;if(c.auth){var b=c.auth.username||"",_=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+_)}var x=i(c.baseURL,c.url);function w(){if(y){var t="getAllResponseHeaders"in y?a(y.getAllResponseHeaders()):null,n={data:g&&"text"!==g&&"json"!==g?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:t,config:c,request:y};e((function(t){f(t),m()}),(function(t){d(t),m()}),n),y=null}}if(y.open(c.method.toUpperCase(),r(x,c.params,c.paramsSerializer),!0),y.timeout=c.timeout,"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){!y||4!==y.readyState||0===y.status&&(!y.responseURL||0!==y.responseURL.indexOf("file:"))||setTimeout(w)},y.onabort=function(){!y||(d(s("Request aborted",c,"ECONNABORTED",y)),y=null)},y.onerror=function(){d(s("Network Error",c,null,y)),y=null},y.ontimeout=function(){var t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",e=c.transitional||u;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),d(s(t,c,e.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},t.isStandardBrowserEnv()){var k=(c.withCredentials||o(x))&&c.xsrfCookieName?n.read(c.xsrfCookieName):void 0;k&&(v[c.xsrfHeaderName]=k)}"setRequestHeader"in y&&t.forEach(v,(function(t,e){Fi(p)>"u"&&"content-type"===e.toLowerCase()?delete v[e]:y.setRequestHeader(e,t)})),t.isUndefined(c.withCredentials)||(y.withCredentials=!!c.withCredentials),g&&"json"!==g&&(y.responseType=c.responseType),"function"==typeof c.onDownloadProgress&&y.addEventListener("progress",c.onDownloadProgress),"function"==typeof c.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(h=function(t){!y||(d(!t||t&&t.type?new l("canceled"):t),y.abort(),y=null)},c.cancelToken&&c.cancelToken.subscribe(h),c.signal&&(c.signal.aborted?h():c.signal.addEventListener("abort",h))),p||(p=null),y.send(p)}))},vJ}var EJ=YQ,CJ=function(t,e){yJ.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},AJ=bJ,TJ={"Content-Type":"application/x-www-form-urlencoded"};function MJ(t,e){!EJ.isUndefined(t)&&EJ.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var OJ={transitional:_J,adapter:function(){var t;return(("undefined"==typeof XMLHttpRequest?"undefined":Fi(XMLHttpRequest))<"u"||("undefined"==typeof process?"undefined":Fi(process))<"u"&&"[object process]"===Object.prototype.toString.call(process))&&(t=SJ()),t}(),transformRequest:[function(t,e){return CJ(e,"Accept"),CJ(e,"Content-Type"),EJ.isFormData(t)||EJ.isArrayBuffer(t)||EJ.isBuffer(t)||EJ.isStream(t)||EJ.isFile(t)||EJ.isBlob(t)?t:EJ.isArrayBufferView(t)?t.buffer:EJ.isURLSearchParams(t)?(MJ(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):EJ.isObject(t)||e&&"application/json"===e["Content-Type"]?(MJ(e,"application/json"),function(t,e,n){if(EJ.isString(t))try{return(e||JSON.parse)(t),EJ.trim(t)}catch(pk){if("SyntaxError"!==pk.name)throw pk}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||OJ.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&EJ.isString(t)&&t.length)try{return JSON.parse(t)}catch(eP){if(i)throw"SyntaxError"===eP.name?AJ(eP,this,"E_JSON_PARSE"):eP}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, */*"}}};EJ.forEach(["delete","get","head"],(function(t){OJ.headers[t]={}})),EJ.forEach(["post","put","patch"],(function(t){OJ.headers[t]=EJ.merge(TJ)}));var PJ,RJ,DJ=OJ,LJ=YQ,IJ=DJ;function NJ(){return RJ||(RJ=1,PJ=function(t){return!(!t||!t.__CANCEL__)}),PJ}var FJ=YQ,zJ=function(t,e,n){var r=this||IJ;return LJ.forEach(n,(function(n){t=n.call(r,t,e)})),t},jJ=NJ(),BJ=DJ,VJ=kJ();function HJ(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new VJ("canceled")}var UJ,WJ,YJ=YQ,GJ=function(t,e){e=e||{};var n={};function r(t,e){return YJ.isPlainObject(t)&&YJ.isPlainObject(e)?YJ.merge(t,e):YJ.isPlainObject(e)?YJ.merge({},e):YJ.isArray(e)?e.slice():e}function i(n){return YJ.isUndefined(e[n])?YJ.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function a(t){if(!YJ.isUndefined(e[t]))return r(void 0,e[t])}function o(n){return YJ.isUndefined(e[n])?YJ.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function s(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}var u={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return YJ.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,r=e(t);YJ.isUndefined(r)&&e!==s||(n[t]=r)})),n};function qJ(){return WJ||(WJ=1,UJ={version:"0.26.1"}),UJ}var ZJ=qJ().version,XJ={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){XJ[t]=function(n){return Fi(n)===t||"a"+(e<1?"n ":" ")+t}}));var KJ={};XJ.transitional=function(t,e,n){function r(t,e){return"[Axios v"+ZJ+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,i,a){if(!1===t)throw new Error(r(i," has been removed"+(e?" in "+e:"")));return e&&!KJ[i]&&(KJ[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,a)}};var $J,QJ,JJ,t0,e0,n0,r0={assertOptions:function(t,e,n){if("object"!=Fi(t))throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var a=r[i],o=e[a];if(o){var s=t[a],u=void 0===s||o(s,a,t);if(!0!==u)throw new TypeError("option "+a+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:XJ},i0=YQ,a0=ZQ,o0=mJ,s0=function(t){return HJ(t),t.headers=t.headers||{},t.data=zJ.call(t,t.data,t.headers,t.transformRequest),t.headers=FJ.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),FJ.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||BJ.adapter)(t).then((function(e){return HJ(t),e.data=zJ.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return jJ(e)||(HJ(t),e&&e.response&&(e.response.data=zJ.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},u0=GJ,l0=r0,c0=l0.validators;function f0(t){this.defaults=t,this.interceptors={request:new o0,response:new o0}}f0.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=u0(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&l0.assertOptions(n,{silentJSONParsing:c0.transitional(c0.boolean),forcedJSONParsing:c0.transitional(c0.boolean),clarifyTimeoutError:c0.transitional(c0.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var a,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!i){var s=[s0,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(o),a=Promise.resolve(e);s.length;)a=a.then(s.shift(),s.shift());return a}for(var u=e;r.length;){var l=r.shift(),c=r.shift();try{u=l(u)}catch(tQ){c(tQ);break}}try{a=s0(u)}catch(tQ){return Promise.reject(tQ)}for(;o.length;)a=a.then(o.shift(),o.shift());return a},f0.prototype.getUri=function(t){return t=u0(this.defaults,t),a0(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i0.forEach(["delete","get","head","options"],(function(t){f0.prototype[t]=function(e,n){return this.request(u0(n||{},{method:t,url:e,data:(n||{}).data}))}})),i0.forEach(["post","put","patch"],(function(t){f0.prototype[t]=function(e,n,r){return this.request(u0(r||{},{method:t,url:e,data:n}))}}));var d0=YQ,h0=IQ,p0=f0,v0=GJ;var g0=function t(e){var n=new p0(e),r=h0(p0.prototype.request,n);return d0.extend(r,p0.prototype,n),d0.extend(r,n),r.create=function(n){return t(v0(e,n))},r}(DJ);g0.Axios=p0,g0.Cancel=kJ(),g0.CancelToken=function(){if(QJ)return $J;QJ=1;var t=kJ();function e(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(t){n=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},e((function(e){r.reason||(r.reason=new t(e),n(r.reason))}))}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},e.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},e.source=function(){var t,n=new e((function(e){t=e}));return{token:n,cancel:t}},$J=e}(),g0.isCancel=NJ(),g0.VERSION=qJ().version,g0.all=function(t){return Promise.all(t)},g0.spread=(t0||(t0=1,JJ=function(t){return function(e){return t.apply(null,e)}}),JJ),g0.isAxiosError=function(){if(n0)return e0;n0=1;var t=YQ;return e0=function(e){return t.isObject(e)&&!0===e.isAxiosError},e0}(),LQ.exports=g0,LQ.exports.default=g0,function(t){t.exports=LQ.exports}(DQ);var m0=RQ(DQ.exports),y0=function(t,e){return m0.create({baseURL:{VITE_HERE_API_KEY:"KDL0aAzsbOcv7p53P2ovno2izfDOe93hyzZRrayktbE",VITE_API_KEY:"V3 fJThgHrWKzWZXfqwvpGdlx3d8ujnxmT3.d299c257-027b-46f6-b79b-4832b4475fc1",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})},b0=hi("a8",function(t){return 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}(b0||{}));function _0(t){this._maxSize=t,this.clear()}_0.prototype.clear=function(){this._size=0,this._values=Object.create(null)},_0.prototype.get=function(t){return this._values[t]},_0.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var x0=/[^.^\]^[]+|(?=\[\]|\.\.)/g,w0=/^\d+$/,k0=/^\d/,S0=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,E0=/^\s*(['"]?)(.*?)(\1)\s*$/,C0=new _0(512),A0=new _0(512),T0=new _0(512),M0={Cache:_0,split:P0,normalizePath:O0,setter:function(t){var e=O0(t);return A0.get(t)||A0.set(t,(function(t,n){for(var r=0,i=e.length,a=t;r<i-1;){var o=e[r];if("__proto__"===o||"constructor"===o||"prototype"===o)return t;a=a[e[r++]]}a[e[r]]=n}))},getter:function(t,e){var n=O0(t);return T0.get(t)||T0.set(t,(function(t){for(var r=0,i=n.length;r<i;){if(null==t&&e)return;t=t[n[r++]]}return t}))},join:function(t){return t.reduce((function(t,e){return t+(R0(e)||w0.test(e)?"["+e+"]":(t?".":"")+e)}),"")},forEach:function(t,e,n){!function(t,e,n){var r,i,a,o,s=t.length;for(i=0;i<s;i++)(r=t[i])&&(D0(r)&&(r='"'+r+'"'),a=!(o=R0(r))&&/^\d+$/.test(r),e.call(n,r,o,a,i,t))}(Array.isArray(t)?t:P0(t),e,n)}};function O0(t){return C0.get(t)||C0.set(t,P0(t).map((function(t){return t.replace(E0,"$2")})))}function P0(t){return t.match(x0)||[""]}function R0(t){return"string"==typeof t&&t&&-1!==["'",'"'].indexOf(t.charAt(0))}function D0(t){return!R0(t)&&(function(t){return t.match(k0)&&!t.match(w0)}(t)||function(t){return S0.test(t)}(t))}var L0=/[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,I0=function(t){return t.match(L0)||[]},N0=function(t,e){return I0(t).join(e).toLowerCase()},F0=function(t){return I0(t).reduce((function(t,e){return"".concat(t).concat(t?e[0].toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase())}),"")},z0=F0,j0=function(t){return N0(t,"_")},B0={exports:{}};function V0(t,e){var n=t.length,r=new Array(n),i={},a=n,o=function(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}(e),s=function(t){for(var e=new Map,n=0,r=t.length;n<r;n++)e.set(t[n],n);return e}(t);for(e.forEach((function(t){if(!s.has(t[0])||!s.has(t[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));a--;)i[a]||u(t[a],a,new Set);return r;function u(t,e,a){if(a.has(t)){var l;try{l=", node was:"+JSON.stringify(t)}catch(d){l=""}throw new Error("Cyclic dependency"+l)}if(!s.has(t))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!i[e]){i[e]=!0;var c=o.get(t)||new Set;if(e=(c=Array.from(c)).length){a.add(t);do{var f=c[--e];u(f,s.get(f),a)}while(e);a.delete(t)}r[--n]=t}}}B0.exports=function(t){return V0(function(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)}(t),t)},B0.exports.array=V0;var H0=Object.prototype.toString,U0=Error.prototype.toString,W0=RegExp.prototype.toString,Y0=("undefined"==typeof Symbol?"undefined":Fi(Symbol))<"u"?Symbol.prototype.toString:function(){return""},G0=/^Symbol\((.*)\)(.*)$/;function q0(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function Z0(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==t||!0===t||!1===t)return""+t;var n=Fi(t);if("number"===n)return q0(t);if("string"===n)return e?'"'.concat(t,'"'):t;if("function"===n)return"[Function "+(t.name||"anonymous")+"]";if("symbol"===n)return Y0.call(t).replace(G0,"Symbol($1)");var r=H0.call(t).slice(8,-1);return"Date"===r?isNaN(t.getTime())?""+t:t.toISOString(t):"Error"===r||t instanceof Error?"["+U0.call(t)+"]":"RegExp"===r?W0.call(t):null}function X0(t,e){var n=Z0(t,e);return null!==n?n:JSON.stringify(t,(function(t,n){var r=Z0(this[t],e);return null!==r?r:n}),2)}function K0(t){return null==t?[]:[].concat(t)}var $0=/\$\{\s*(\w+)\s*\}/g,Q0=function(t){Ti(n,t);var e=Mi(n);function n(t,r,i,a){var o;return Ai(this,n),(o=e.call(this)).value=void 0,o.path=void 0,o.type=void 0,o.errors=void 0,o.params=void 0,o.inner=void 0,o.name="ValidationError",o.value=r,o.path=i,o.type=a,o.errors=[],o.inner=[],K0(t).forEach((function(t){var e;n.isError(t)?((e=o.errors).push.apply(e,mi(t.errors)),o.inner=o.inner.concat(t.inner.length?t.inner:t)):o.errors.push(t)})),o.message=o.errors.length>1?"".concat(o.errors.length," errors occurred"):o.errors[0],Error.captureStackTrace&&Error.captureStackTrace(Pi(o),n),o}return Ci(n,null,[{key:"formatError",value:function(t,e){var n=e.label||e.path||"this";return n!==e.path&&(e=Object.assign({},e,{path:n})),"string"==typeof t?t.replace($0,(function(t,n){return X0(e[n])})):"function"==typeof t?t(e):t}},{key:"isError",value:function(t){return t&&"ValidationError"===t.name}}]),n}(Ri(Error)),J0={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:function(t){var e=t.path,n=t.type,r=t.value,i=t.originalValue,a=null!=i&&i!==r?" (cast from the value `".concat(X0(i,!0),"`)."):".";return"mixed"!==n?"".concat(e," must be a `").concat(n,"` type, but the final value was: `").concat(X0(r,!0),"`")+a:"".concat(e," must match the configured type. The validated value was: `").concat(X0(r,!0),"`")+a}},t1={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"},e1={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"},n1={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},r1={isValue:"${path} field must be ${value}"},i1={noUnknown:"${path} field has unspecified keys: ${unknown}"},a1={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:J0,string:t1,number:e1,date:n1,object:i1,array:a1,boolean:r1});var o1=function(t){return t&&t.__isYupSchema__},s1=function(){function t(e,n){Ai(this,t),this.fn=void 0,this.refs=e,this.refs=e,this.fn=n}return Ci(t,[{key:"resolve",value:function(t,e){var n=this.refs.map((function(t){return t.getValue(null==e?void 0:e.value,null==e?void 0:e.parent,null==e?void 0:e.context)})),r=this.fn(n,t,e);if(void 0===r||r===t)return t;if(!o1(r))throw new TypeError("conditions must return a schema object");return r.resolve(e)}}],[{key:"fromOptions",value:function(e,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");var r=n.is,i=n.then,a=n.otherwise,o="function"==typeof r?r:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.every((function(t){return t===r}))};return new t(e,(function(t,e){var n,r=o.apply(void 0,mi(t))?i:a;return null!=(n=null==r?void 0:r(e))?n:e}))}}]),t}();var u1="$",l1=".",c1=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ai(this,t),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,"string"!=typeof e)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]===u1,this.isValue=this.key[0]===l1,this.isSibling=!this.isContext&&!this.isValue;var r=this.isContext?u1:this.isValue?l1:"";this.path=this.key.slice(r.length),this.getter=this.path&&M0.getter(this.path,!0),this.map=n.map}return Ci(t,[{key:"getValue",value:function(t,e,n){var r=this.isContext?n:this.isValue?t:e;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}},{key:"cast",value:function(t,e){return this.getValue(t,null==e?void 0:e.parent,null==e?void 0:e.context)}},{key:"resolve",value:function(){return this}},{key:"describe",value:function(){return{type:"ref",key:this.key}}},{key:"toString",value:function(){return"Ref(".concat(this.key,")")}}],[{key:"isRef",value:function(t){return t&&t.__isYupRef}}]),t}();c1.prototype.__isYupRef=!0;var f1=function(t){return null==t},d1=["value","path","label","options","originalValue","spec","sync"];function h1(t){function e(e,n,r){var i=e.value,a=e.path,o=void 0===a?"":a,s=e.label,u=e.options,l=e.originalValue,c=e.spec,f=e.sync,d=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],!(e.indexOf(n)>=0)&&(i[n]=t[n]);return i}(e,d1),h=t.name,p=t.test,v=t.params,g=t.message,m=t.skipAbsent,y=u.parent,b=u.context,_=u.abortEarly;function x(t){return c1.isRef(t)?t.getValue(i,y,b):t}function w(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({value:i,originalValue:l,label:s,path:t.path||o,spec:c},v,t.params),n=0,r=Object.keys(e);n<r.length;n++){var a=r[n];e[a]=x(e[a])}var u=new Q0(Q0.formatError(t.message||g,e),i,e.path,t.type||h);return u.params=e,u}var k=(void 0===_?d.schema.spec.abortEarly:_)?n:r,S=Object.assign({path:o,parent:y,type:h,createError:w,resolve:x,options:u,originalValue:l},d),E=function(t){Q0.isError(t)?k(t):t?r(null):k(w())},C=function(t){Q0.isError(t)?k(t):n(t)},A=m&&f1(i);if(f){var T;try{var M;if("function"==typeof(null==(M=T=!!A||p.call(S,i,S))?void 0:M.then))throw new Error('Validation test of type: "'.concat(S.type,'" returned a Promise during a synchronous validate. This test will finish after the validate call has returned'))}catch(M$){return void C(M$)}E(T)}else try{Promise.resolve(!!A||p.call(S,i,S)).then(E,C)}catch(M$){C(M$)}}return e.OPTIONS=t,e}var p1=function(t){return t.substr(0,t.length-1).substr(1)};function v1(t,e,n){var r,i,a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return e?(M0.forEach(e,(function(s,u,l){var c=u?p1(s):s,f="tuple"===(t=t.resolve({context:o,parent:r,value:n})).type,d=l?parseInt(c,10):0;if(t.innerType||f){if(f&&!l)throw new Error('Yup.reach cannot implicitly index into a tuple type. the path part "'.concat(a,'" must contain an index to the tuple element, e.g. "').concat(a,'[0]"'));if(n&&d>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: ".concat(s,", in the path: ").concat(e,". because there is no value at that index. "));r=n,n=n&&n[d],t=f?t.spec.types[d]:t.innerType}if(!l){if(!t.fields||!t.fields[c])throw new Error("The schema does not contain the path: ".concat(e,". (failed at: ").concat(a,' which is a type: "').concat(t.type,'")'));r=n,n=n&&n[c],t=t.fields[c]}i=c,a=u?"["+s+"]":"."+s})),{schema:t,parent:r,parentPath:i}):{parent:r,parentPath:e,schema:t}}var g1=function(){function t(){Ai(this,t),this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}return Ci(t,[{key:"size",get:function(){return this.list.size+this.refs.size}},{key:"describe",value:function(){var t,e=[],n=zi(this.list);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.push(r)}}catch(s){n.e(s)}finally{n.f()}var i,a=zi(this.refs);try{for(a.s();!(i=a.n()).done;){var o=wi(i.value,2)[1];e.push(o.describe())}}catch(s){a.e(s)}finally{a.f()}return e}},{key:"toArray",value:function(){return Array.from(this.list).concat(Array.from(this.refs.values()))}},{key:"resolveAll",value:function(t){return this.toArray().reduce((function(e,n){return e.concat(c1.isRef(n)?t(n):n)}),[])}},{key:"add",value:function(t){c1.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}},{key:"delete",value:function(t){c1.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}},{key:"clone",value:function(){var e=new t;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}},{key:"merge",value:function(t,e){var n=this.clone();return t.list.forEach((function(t){return n.add(t)})),t.refs.forEach((function(t){return n.add(t)})),e.list.forEach((function(t){return n.delete(t)})),e.refs.forEach((function(t){return n.delete(t)})),n}}]),t}();function m1(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;if(o1(t)||!t||"object"!=Fi(t))return t;if(n.has(t))return n.get(t);if(t instanceof Date)e=new Date(t.getTime()),n.set(t,e);else if(t instanceof RegExp)e=new RegExp(t),n.set(t,e);else if(Array.isArray(t)){e=new Array(t.length),n.set(t,e);for(var r=0;r<t.length;r++)e[r]=m1(t[r],n)}else if(t instanceof Map){e=new Map,n.set(t,e);var i,a=zi(t.entries());try{for(a.s();!(i=a.n()).done;){var o=wi(i.value,2),s=o[0],u=o[1];e.set(s,m1(u,n))}}catch(m){a.e(m)}finally{a.f()}}else if(t instanceof Set){e=new Set,n.set(t,e);var l,c=zi(t);try{for(c.s();!(l=c.n()).done;){var f=l.value;e.add(m1(f,n))}}catch(m){c.e(m)}finally{c.f()}}else{if(!(t instanceof Object))throw Error("Unable to clone ".concat(t));e={},n.set(t,e);for(var d=0,h=Object.entries(t);d<h.length;d++){var p=wi(h[d],2),v=p[0],g=p[1];e[v]=m1(g,n)}}return e}var y1=function(){function t(e){var n=this;Ai(this,t),this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new g1,this._blacklist=new g1,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((function(){n.typeError(J0.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},null==e?void 0:e.spec),this.withMutation((function(t){t.nonNullable()}))}return Ci(t,[{key:"_type",get:function(){return this.type}},{key:"clone",value:function(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;var e=Object.create(Object.getPrototypeOf(this));return e.type=this.type,e._typeCheck=this._typeCheck,e._whitelist=this._whitelist.clone(),e._blacklist=this._blacklist.clone(),e.internalTests=Object.assign({},this.internalTests),e.exclusiveTests=Object.assign({},this.exclusiveTests),e.deps=mi(this.deps),e.conditions=mi(this.conditions),e.tests=mi(this.tests),e.transforms=mi(this.transforms),e.spec=m1(Object.assign({},this.spec,t)),e}},{key:"label",value:function(t){var e=this.clone();return e.spec.label=t,e}},{key:"meta",value:function(){if(0===arguments.length)return this.spec.meta;var t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},arguments.length<=0?void 0:arguments[0]),t}},{key:"withMutation",value:function(t){var e=this._mutate;this._mutate=!0;var n=t(this);return this._mutate=e,n}},{key:"concat",value:function(t){if(!t||t===this)return this;if(t.type!==this.type&&"mixed"!==this.type)throw new TypeError("You cannot `concat()` schema's of different types: ".concat(this.type," and ").concat(t.type));var e=this,n=t.clone(),r=Object.assign({},e.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},e.internalTests,n.internalTests),n._whitelist=e._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=e._blacklist.merge(t._blacklist,t._whitelist),n.tests=e.tests,n.exclusiveTests=e.exclusiveTests,n.withMutation((function(e){t.tests.forEach((function(t){e.test(t.OPTIONS)}))})),n.transforms=[].concat(mi(e.transforms),mi(n.transforms)),n}},{key:"isType",value:function(t){return null==t?!!(this.spec.nullable&&null===t||this.spec.optional&&void 0===t):this._typeCheck(t)}},{key:"resolve",value:function(t){var e=this;if(e.conditions.length){var n=e.conditions;(e=e.clone()).conditions=[],e=n.reduce((function(e,n){return n.resolve(e,t)}),e),e=e.resolve(t)}return e}},{key:"resolveOptions",value:function(t){var e,n,r;return Object.assign({},t,{from:t.from||[],strict:null!=(e=t.strict)?e:this.spec.strict,abortEarly:null!=(n=t.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=t.recursive)?r:this.spec.recursive})}},{key:"cast",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(Object.assign({value:t},e)),r="ignore-optionality"===e.assert,i=n._cast(t,e);if(!1!==e.assert&&!n.isType(i)){if(r&&f1(i))return i;var a=X0(t),o=X0(i);throw new TypeError("The value of ".concat(e.path||"field",' could not be cast to a value that satisfies the schema type: "').concat(n.type,'". \n\nattempted value: ').concat(a," \n")+(o!==a?"result of cast: ".concat(o):""))}return i}},{key:"_cast",value:function(t,e){var n=this,r=void 0===t?t:this.transforms.reduce((function(e,r){return r.call(n,e,t,n)}),t);return void 0===r&&(r=this.getDefault()),r}},{key:"_validate",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=n.sync,o=n.path,s=n.from,u=void 0===s?[]:s,l=n.originalValue,c=void 0===l?t:l,f=n.strict,d=void 0===f?this.spec.strict:f,h=t;d||(h=this._cast(h,Object.assign({assert:!1},n)));for(var p={value:h,path:o,options:n,originalValue:c,schema:this,label:this.spec.label,spec:this.spec,sync:a,from:u},v=[],g=0,m=Object.values(this.internalTests);g<m.length;g++){var y=m[g];y&&v.push(y)}this.runTests({args:p,value:h,tests:v},r,(function(t){if(t.length)return i(t,h);e.runTests({args:p,value:h,tests:e.tests},r,i)}))}},{key:"runTests",value:function(t,e,n){var r=!1,i=t.tests,a=t.args,o=t.value,s=function(t){r||(r=!0,e(t,o))},u=function(t){r||(r=!0,n(t,o))},l=i.length,c=[];if(!l)return u([]);for(var f=0;f<i.length;f++){(0,i[f])(a,s,(function(t){t&&(c=c.concat(t)),--l<=0&&u(c)}))}}},{key:"asNestedTest",value:function(t){var e,n=this,r=t.key,i=t.index,a=t.parent,o=t.parentPath,s=t.originalParent,u=t.options,l=null!=r?r:i;if(null==l)throw TypeError("Must include `key` or `index` for nested validations");var c="number"==typeof l,f=a[l],d=Object.assign({},u,(xi(e={strict:!0,parent:a,value:f,originalValue:s[l],key:void 0},c?"index":"key",l),xi(e,"path",c||l.includes(".")?"".concat(o||"","[").concat(f?l:'"'.concat(l,'"'),"]"):(o?"".concat(o,"."):"")+r),e));return function(t,e,r){return n.resolve(d)._validate(f,d,e,r)}}},{key:"validate",value:function(t,e){var n=this.resolve(Object.assign({},e,{value:t}));return new Promise((function(r,i){return n._validate(t,e,(function(t,e){Q0.isError(t)&&(t.value=e),i(t)}),(function(t,e){t.length?i(new Q0(t,e)):r(e)}))}))}},{key:"validateSync",value:function(t,e){var n;return this.resolve(Object.assign({},e,{value:t}))._validate(t,Object.assign({},e,{sync:!0}),(function(t,e){throw Q0.isError(t)&&(t.value=e),t}),(function(e,r){if(e.length)throw new Q0(e,t);n=r})),n}},{key:"isValid",value:function(t,e){return this.validate(t,e).then((function(){return!0}),(function(t){if(Q0.isError(t))return!1;throw t}))}},{key:"isValidSync",value:function(t,e){try{return this.validateSync(t,e),!0}catch(pk){if(Q0.isError(pk))return!1;throw pk}}},{key:"_getDefault",value:function(){var t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this):m1(t)}},{key:"getDefault",value:function(t){return this.resolve(t||{})._getDefault()}},{key:"default",value:function(t){return 0===arguments.length?this._getDefault():this.clone({default:t})}},{key:"strict",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clone({strict:t})}},{key:"nullability",value:function(t,e){var n=this.clone({nullable:t});return n.internalTests.nullable=h1({message:e,name:"nullable",test:function(t){return null!==t||this.schema.spec.nullable}}),n}},{key:"optionality",value:function(t,e){var n=this.clone({optional:t});return n.internalTests.optionality=h1({message:e,name:"optionality",test:function(t){return void 0!==t||this.schema.spec.optional}}),n}},{key:"optional",value:function(){return this.optionality(!0)}},{key:"defined",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J0.defined;return this.optionality(!1,t)}},{key:"nullable",value:function(){return this.nullability(!0)}},{key:"nonNullable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J0.notNull;return this.nullability(!1,t)}},{key:"required",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J0.required;return this.clone().withMutation((function(e){return e.nonNullable(t).defined(t)}))}},{key:"notRequired",value:function(){return this.clone().withMutation((function(t){return t.nullable().optional()}))}},{key:"transform",value:function(t){var e=this.clone();return e.transforms.push(t),e}},{key:"test",value:function(){var t;if(void 0===(t=1===arguments.length?"function"==typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(t.message=J0.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");var e=this.clone(),n=h1(t),r=t.exclusive||t.name&&!0===e.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(e.exclusiveTests[t.name]=!!t.exclusive),e.tests=e.tests.filter((function(e){return!(e.OPTIONS.name===t.name&&(r||e.OPTIONS.test===n.OPTIONS.test))})),e.tests.push(n),e}},{key:"when",value:function(t,e){!Array.isArray(t)&&"string"!=typeof t&&(e=t,t=".");var n=this.clone(),r=K0(t).map((function(t){return new c1(t)}));return r.forEach((function(t){t.isSibling&&n.deps.push(t.key)})),n.conditions.push("function"==typeof e?new s1(r,e):s1.fromOptions(r,e)),n}},{key:"typeError",value:function(t){var e=this.clone();return e.internalTests.typeError=h1({message:t,name:"typeError",test:function(t){return!(!f1(t)&&!this.schema._typeCheck(t))||this.createError({params:{type:this.schema.type}})}}),e}},{key:"oneOf",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J0.oneOf,n=this.clone();return t.forEach((function(t){n._whitelist.add(t),n._blacklist.delete(t)})),n.internalTests.whiteList=h1({message:e,name:"oneOf",test:function(t){if(void 0===t)return!0;var e=this.schema._whitelist,n=e.resolveAll(this.resolve);return!!n.includes(t)||this.createError({params:{values:e.toArray().join(", "),resolved:n}})}}),n}},{key:"notOneOf",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J0.notOneOf,n=this.clone();return t.forEach((function(t){n._blacklist.add(t),n._whitelist.delete(t)})),n.internalTests.blacklist=h1({message:e,name:"notOneOf",test:function(t){var e=this.schema._blacklist,n=e.resolveAll(this.resolve);return!n.includes(t)||this.createError({params:{values:e.toArray().join(", "),resolved:n}})}}),n}},{key:"strip",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.clone();return e.spec.strip=t,e}},{key:"describe",value:function(t){var e=(t?this.resolve(t):this).clone(),n=e.spec,r=n.label;return{meta:n.meta,label:r,optional:n.optional,nullable:n.nullable,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map((function(t){return{name:t.OPTIONS.name,params:t.OPTIONS.params}})).filter((function(t,e,n){return n.findIndex((function(e){return e.name===t.name}))===e}))}}}]),t}();y1.prototype.__isYupSchema__=!0;for(var b1=function(){var t=x1[_1];y1.prototype["".concat(t,"At")]=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=v1(this,e,n,r.context),a=i.parent,o=i.parentPath,s=i.schema;return s[t](a&&a[o],Object.assign({},r,{parent:a,path:e}))}},_1=0,x1=["validate","validateSync"];_1<x1.length;_1++)b1();for(var w1=0,k1=["equals","is"];w1<k1.length;w1++){var S1=k1[w1];y1.prototype[S1]=y1.prototype.oneOf}for(var E1=0,C1=["not","nope"];E1<C1.length;E1++){var A1=C1[E1];y1.prototype[A1]=y1.prototype.notOneOf}function T1(){return new M1}var M1=function(t){Ti(n,t);var e=Mi(n);function n(){var t;return Ai(this,n),t=e.call(this,{type:"boolean",check:function(t){return t instanceof Boolean&&(t=t.valueOf()),"boolean"==typeof t}}),t.withMutation((function(){t.transform((function(t,e,n){if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t}))})),t}return Ci(n,[{key:"isTrue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r1.isValue;return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test:function(t){return f1(t)||!0===t}})}},{key:"isFalse",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r1.isValue;return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test:function(t){return f1(t)||!1===t}})}},{key:"default",value:function(t){return vi(Ni(n.prototype),"default",this).call(this,t)}},{key:"defined",value:function(t){return vi(Ni(n.prototype),"defined",this).call(this,t)}},{key:"optional",value:function(){return vi(Ni(n.prototype),"optional",this).call(this)}},{key:"required",value:function(t){return vi(Ni(n.prototype),"required",this).call(this,t)}},{key:"notRequired",value:function(){return vi(Ni(n.prototype),"notRequired",this).call(this)}},{key:"nullable",value:function(){return vi(Ni(n.prototype),"nullable",this).call(this)}},{key:"nonNullable",value:function(t){return vi(Ni(n.prototype),"nonNullable",this).call(this,t)}},{key:"strip",value:function(t){return vi(Ni(n.prototype),"strip",this).call(this,t)}}]),n}(y1);T1.prototype=M1.prototype;var O1=/^((([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,P1=/^((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,R1=/^(?:[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,D1=function(t){return f1(t)||t===t.trim()},L1={}.toString();function I1(){return new N1}var N1=function(t){Ti(n,t);var e=Mi(n);function n(){var t;return Ai(this,n),t=e.call(this,{type:"string",check:function(t){return t instanceof String&&(t=t.valueOf()),"string"==typeof t}}),t.withMutation((function(){t.transform((function(t,e,n){if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;var r=null!=t&&t.toString?t.toString():t;return r===L1?t:r}))})),t}return Ci(n,[{key:"required",value:function(t){return vi(Ni(n.prototype),"required",this).call(this,t).withMutation((function(e){return e.test({message:t||J0.required,name:"required",skipAbsent:!0,test:function(t){return!!t.length}})}))}},{key:"notRequired",value:function(){return vi(Ni(n.prototype),"notRequired",this).call(this).withMutation((function(t){return t.tests.filter((function(t){return"required"!==t.OPTIONS.name})),t}))}},{key:"length",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t1.length;return this.test({message:e,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test:function(e){return e.length===this.resolve(t)}})}},{key:"min",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t1.min;return this.test({message:e,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test:function(e){return e.length>=this.resolve(t)}})}},{key:"max",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t1.max;return this.test({name:"max",exclusive:!0,message:e,params:{max:t},skipAbsent:!0,test:function(e){return e.length<=this.resolve(t)}})}},{key:"matches",value:function(t,e){var n,r,i,a,o=!1;return e&&("object"==Fi(e)?(r=(n=e).excludeEmptyString,o=void 0!==r&&r,i=n.message,a=n.name):i=e),this.test({name:a||"matches",message:i||t1.matches,params:{regex:t},skipAbsent:!0,test:function(e){return""===e&&o||-1!==e.search(t)}})}},{key:"email",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t1.email;return this.matches(O1,{name:"email",message:t,excludeEmptyString:!0})}},{key:"url",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t1.url;return this.matches(P1,{name:"url",message:t,excludeEmptyString:!0})}},{key:"uuid",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t1.uuid;return this.matches(R1,{name:"uuid",message:t,excludeEmptyString:!1})}},{key:"ensure",value:function(){return this.default("").transform((function(t){return null===t?"":t}))}},{key:"trim",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t1.trim;return this.transform((function(t){return null!=t?t.trim():t})).test({message:t,name:"trim",test:D1})}},{key:"lowercase",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t1.lowercase;return this.transform((function(t){return f1(t)?t:t.toLowerCase()})).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:function(t){return f1(t)||t===t.toLowerCase()}})}},{key:"uppercase",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t1.uppercase;return this.transform((function(t){return f1(t)?t:t.toUpperCase()})).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:function(t){return f1(t)||t===t.toUpperCase()}})}}]),n}(y1);I1.prototype=N1.prototype;function F1(){return new z1}var z1=function(t){Ti(n,t);var e=Mi(n);function n(){var t;return Ai(this,n),t=e.call(this,{type:"number",check:function(t){return t instanceof Number&&(t=t.valueOf()),"number"==typeof t&&!function(t){return t!=+t}(t)}}),t.withMutation((function(){t.transform((function(t,e,n){if(!n.spec.coerce)return t;var r=t;if("string"==typeof r){if(""===(r=r.replace(/\s/g,"")))return NaN;r=+r}return n.isType(r)?r:parseFloat(r)}))})),t}return Ci(n,[{key:"min",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e1.min;return this.test({message:e,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test:function(e){return e>=this.resolve(t)}})}},{key:"max",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e1.max;return this.test({message:e,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test:function(e){return e<=this.resolve(t)}})}},{key:"lessThan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e1.lessThan;return this.test({message:e,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test:function(e){return e<this.resolve(t)}})}},{key:"moreThan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e1.moreThan;return this.test({message:e,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test:function(e){return e>this.resolve(t)}})}},{key:"positive",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e1.positive;return this.moreThan(0,t)}},{key:"negative",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e1.negative;return this.lessThan(0,t)}},{key:"integer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e1.integer;return this.test({name:"integer",message:t,skipAbsent:!0,test:function(t){return Number.isInteger(t)}})}},{key:"truncate",value:function(){return this.transform((function(t){return f1(t)?t:0|t}))}},{key:"round",value:function(t){var e,n=["ceil","floor","round","trunc"];if("trunc"===(t=(null==(e=t)?void 0:e.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(t.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((function(e){return f1(e)?e:Math[t](e)}))}}]),n}(y1);F1.prototype=z1.prototype;var j1=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;var B1=new Date(""),V1=function(t){Ti(n,t);var e=Mi(n);function n(){var t;return Ai(this,n),t=e.call(this,{type:"date",check:function(t){return function(t){return"[object Date]"===Object.prototype.toString.call(t)}(t)&&!isNaN(t.getTime())}}),t.withMutation((function(){t.transform((function(t,e,r){return!r.spec.coerce||r.isType(t)?t:(t=function(t){var e,n,r=[1,4,5,6,7,10,11],i=0;if(n=j1.exec(t)){for(var a,o=0;a=r[o];++o)n[a]=+n[a]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),e=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):e=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else e=Date.parse?Date.parse(t):NaN;return e}(t),isNaN(t)?n.INVALID_DATE:new Date(t))}))})),t}return Ci(n,[{key:"prepareParam",value:function(t,e){var n;if(c1.isRef(t))n=t;else{var r=this.cast(t);if(!this._typeCheck(r))throw new TypeError("`".concat(e,"` must be a Date or a value that can be `cast()` to a Date"));n=r}return n}},{key:"min",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n1.min,n=this.prepareParam(t,"min");return this.test({message:e,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test:function(t){return t>=this.resolve(n)}})}},{key:"max",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n1.max,n=this.prepareParam(t,"max");return this.test({message:e,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test:function(t){return t<=this.resolve(n)}})}}]),n}(y1);function H1(t,e){var n=1/0;return t.some((function(t,r){var i;if(null!=(i=e.path)&&i.includes(t))return n=r,!0})),n}function U1(t){return function(e,n){return H1(t,e)-H1(t,n)}}V1.INVALID_DATE=B1,V1.prototype;var W1=function(t,e,n){if("string"!=typeof t)return t;var r=t;try{r=JSON.parse(t)}catch(i){}return n.isType(r)?r:t};function Y1(t){if("fields"in t){for(var e={},n=0,r=Object.entries(t.fields);n<r.length;n++){var i=wi(r[n],2),a=i[0],o=i[1];e[a]=Y1(o)}return t.setFields(e)}if("array"===t.type){var s=t.optional();return s.innerType&&(s.innerType=Y1(s.innerType)),s}return"tuple"===t.type?t.optional().clone({types:t.spec.types.map(Y1)}):"optional"in t?t.optional():t}var G1=function(t){return"[object Object]"===Object.prototype.toString.call(t)};function q1(t,e){var n=Object.keys(t.fields);return Object.keys(e).filter((function(t){return-1===n.indexOf(t)}))}var Z1=U1([]);function X1(t){return new K1(t)}var K1=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),r=e.call(this,{type:"object",check:function(t){return G1(t)||"function"==typeof t}}),r.fields=Object.create(null),r._sortErrors=Z1,r._nodes=[],r._excludedEdges=[],r.withMutation((function(){t&&r.shape(t)})),r}return Ci(n,[{key:"_cast",value:function(t){var e,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=vi(Ni(n.prototype),"_cast",this).call(this,t,i);if(void 0===a)return this.getDefault();if(!this._typeCheck(a))return a;var o,s=this.fields,u=null!=(e=i.stripUnknown)?e:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(a).filter((function(t){return!r._nodes.includes(t)}))),c={},f=Object.assign({},i,{parent:c,__validating:i.__validating||!1}),d=!1,h=zi(l);try{for(h.s();!(o=h.n()).done;){var p=o.value,v=s[p],g=p in a;if(v){var m=void 0,y=a[p];f.path=(i.path?"".concat(i.path,"."):"")+p;var b=(v=v.resolve({value:y,context:i.context,parent:c}))instanceof y1?v.spec:void 0,_=null==b?void 0:b.strict;if(null!=b&&b.strip){d=d||p in a;continue}void 0!==(m=i.__validating&&_?a[p]:v.cast(a[p],f))&&(c[p]=m)}else g&&!u&&(c[p]=a[p]);(g!==p in c||c[p]!==a[p])&&(d=!0)}}catch(x){h.e(x)}finally{h.f()}return d?c:a}},{key:"_validate",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=r.from,s=void 0===o?[]:o,u=r.originalValue,l=void 0===u?t:u,c=r.recursive,f=void 0===c?this.spec.recursive:c;r.from=[{schema:this,value:l}].concat(mi(s)),r.__validating=!0,r.originalValue=l,vi(Ni(n.prototype),"_validate",this).call(this,t,r,i,(function(t,n){if(f&&G1(n)){l=l||n;var o,s=[],u=zi(e._nodes);try{for(u.s();!(o=u.n()).done;){var c=o.value,d=e.fields[c];!d||c1.isRef(d)||s.push(d.asNestedTest({options:r,key:c,parent:n,parentPath:r.path,originalParent:l}))}}catch(h){u.e(h)}finally{u.f()}e.runTests({tests:s,value:n},i,(function(r){a(r.sort(e._sortErrors).concat(t),n)}))}else a(t,n)}))}},{key:"clone",value:function(t){var e=vi(Ni(n.prototype),"clone",this).call(this,t);return e.fields=Object.assign({},this.fields),e._nodes=this._nodes,e._excludedEdges=this._excludedEdges,e._sortErrors=this._sortErrors,e}},{key:"concat",value:function(t){for(var e=this,r=vi(Ni(n.prototype),"concat",this).call(this,t),i=r.fields,a=0,o=Object.entries(this.fields);a<o.length;a++){var s=wi(o[a],2),u=s[0],l=s[1],c=i[u];i[u]=void 0===c?l:c}return r.withMutation((function(t){return t.setFields(i,e._excludedEdges)}))}},{key:"_getDefault",value:function(){var t=this;if("default"in this.spec)return vi(Ni(n.prototype),"_getDefault",this).call(this);if(this._nodes.length){var e={};return this._nodes.forEach((function(n){var r=t.fields[n];e[n]="getDefault"in r?r.getDefault():void 0})),e}}},{key:"setFields",value:function(t,e){var n=this.clone();return n.fields=t,n._nodes=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=new Set,i=new Set(e.map((function(t){var e=wi(t,2),n=e[0],r=e[1];return"".concat(n,"-").concat(r)})));function a(t,e){var a=M0.split(t)[0];r.add(a),i.has("".concat(e,"-").concat(a))||n.push([e,a])}for(var o=function(){var e=u[s],n=t[e];r.add(e),c1.isRef(n)&&n.isSibling?a(n.path,e):o1(n)&&"deps"in n&&n.deps.forEach((function(t){return a(t,e)}))},s=0,u=Object.keys(t);s<u.length;s++)o();return B0.exports.array(Array.from(r),n).reverse()}(t,e),n._sortErrors=U1(Object.keys(t)),e&&(n._excludedEdges=e),n}},{key:"shape",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.clone().withMutation((function(n){var r=n._excludedEdges;return e.length&&(Array.isArray(e[0])||(e=[e]),r=[].concat(mi(n._excludedEdges),mi(e))),n.setFields(Object.assign(n.fields,t),r)}))}},{key:"partial",value:function(){for(var t={},e=0,n=Object.entries(this.fields);e<n.length;e++){var r=wi(n[e],2),i=r[0],a=r[1];t[i]="optional"in a&&a.optional instanceof Function?a.optional():a}return this.setFields(t)}},{key:"deepPartial",value:function(){return Y1(this)}},{key:"pick",value:function(t){var e,n={},r=zi(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;this.fields[i]&&(n[i]=this.fields[i])}}catch(a){r.e(a)}finally{r.f()}return this.setFields(n)}},{key:"omit",value:function(t){var e,n=Object.assign({},this.fields),r=zi(t);try{for(r.s();!(e=r.n()).done;){delete n[e.value]}}catch(i){r.e(i)}finally{r.f()}return this.setFields(n)}},{key:"from",value:function(t,e,n){var r=M0.getter(t,!0);return this.transform((function(i){if(!i)return i;var a=i;return function(t,e){var n=mi(M0.normalizePath(e));if(1===n.length)return n[0]in t;var r=n.pop(),i=M0.getter(M0.join(n),!0)(t);return!(!i||!(r in i))}(i,t)&&(a=Object.assign({},i),n||delete a[t],a[e]=r(i)),a}))}},{key:"json",value:function(){return this.transform(W1)}},{key:"noUnknown",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i1.noUnknown;"boolean"!=typeof t&&(e=t,t=!0);var n=this.test({name:"noUnknown",exclusive:!0,message:e,test:function(e){if(null==e)return!0;var n=q1(this.schema,e);return!t||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=t,n}},{key:"unknown",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i1.noUnknown;return this.noUnknown(!t,e)}},{key:"transformKeys",value:function(t){return this.transform((function(e){if(!e)return e;for(var n={},r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];n[t(a)]=e[a]}return n}))}},{key:"camelCase",value:function(){return this.transformKeys(z0)}},{key:"snakeCase",value:function(){return this.transformKeys(j0)}},{key:"constantCase",value:function(){return this.transformKeys((function(t){return j0(t).toUpperCase()}))}},{key:"describe",value:function(t){var e=vi(Ni(n.prototype),"describe",this).call(this,t);e.fields={};for(var r=0,i=Object.entries(this.fields);r<i.length;r++){var a,o=wi(i[r],2),s=o[0],u=o[1],l=t;null!=(a=l)&&a.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[s]})),e.fields[s]=u.describe(l)}return e}}]),n}(y1);function $1(t){return new Q1(t)}X1.prototype=K1.prototype;var Q1=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),r=e.call(this,{type:"array",check:function(t){return Array.isArray(t)}}),r.innerType=void 0,r.innerType=t,r}return Ci(n,[{key:"_cast",value:function(t,e){var r=this,i=vi(Ni(n.prototype),"_cast",this).call(this,t,e);if(!this._typeCheck(i)||!this.innerType)return i;var a=!1,o=i.map((function(t,n){var i=r.innerType.cast(t,Object.assign({},e,{path:"".concat(e.path||"","[").concat(n,"]")}));return i!==t&&(a=!0),i}));return a?o:i}},{key:"_validate",value:function(t){var e,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=this.innerType,u=null!=(e=i.recursive)?e:this.spec.recursive;null!=i.originalValue&&i.originalValue,vi(Ni(n.prototype),"_validate",this).call(this,t,i,a,(function(e,n){if(u&&s&&r._typeCheck(n)){for(var l=new Array(n.length),c=0;c<n.length;c++){var f;l[c]=s.asNestedTest({options:i,index:c,parent:n,parentPath:i.path,originalParent:null!=(f=i.originalValue)?f:t})}r.runTests({value:n,tests:l},a,(function(t){return o(t.concat(e),n)}))}else o(e,n)}))}},{key:"clone",value:function(t){var e=vi(Ni(n.prototype),"clone",this).call(this,t);return e.innerType=this.innerType,e}},{key:"json",value:function(){return this.transform(W1)}},{key:"concat",value:function(t){var e=vi(Ni(n.prototype),"concat",this).call(this,t);return e.innerType=this.innerType,t.innerType&&(e.innerType=e.innerType?e.innerType.concat(t.innerType):t.innerType),e}},{key:"of",value:function(t){var e=this.clone();if(!o1(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+X0(t));return e.innerType=t,e}},{key:"length",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a1.length;return this.test({message:e,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test:function(e){return e.length===this.resolve(t)}})}},{key:"min",value:function(t,e){return e=e||a1.min,this.test({message:e,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test:function(e){return e.length>=this.resolve(t)}})}},{key:"max",value:function(t,e){return e=e||a1.max,this.test({message:e,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test:function(e){return e.length<=this.resolve(t)}})}},{key:"ensure",value:function(){var t=this;return this.default((function(){return[]})).transform((function(e,n){return t._typeCheck(e)?e:null==n?[]:[].concat(n)}))}},{key:"compact",value:function(t){var e=t?function(e,n,r){return!t(e,n,r)}:function(t){return!!t};return this.transform((function(t){return null!=t?t.filter(e):t}))}},{key:"describe",value:function(t){var e=vi(Ni(n.prototype),"describe",this).call(this);if(this.innerType){var r,i=t;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),e.innerType=this.innerType.describe(t)}return e}}]),n}(y1);$1.prototype=Q1.prototype;var J1=new RegExp("(".concat(Object.keys(b0).filter((function(t){return Number.isNaN(Number(t))})).join("|"),")")),t2=X1({lat:F1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:F1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:F1().max(30),radius:F1().max(25e3),include:$1().of(I1().matches(J1,"Must be a valid Score category.").required()).required()}),e2=hi("a7",function(t){return 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}(e2||{})),n2=new RegExp("(".concat(Object.keys(e2).filter((function(t){return Number.isNaN(Number(t))})).join("|"),")")),r2=X1({lat:F1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:F1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geographyIds:$1().of(I1().required()),geographyLevels:$1().of(I1().matches(/10|20|30/,"Must be a valid Geography level.").required()),locationScoresRounding:T1(),include:$1().of(I1().matches(n2,"Must be a valid Score category.").required())}),i2=X1({lat:F1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:F1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:F1().max(30,"Must use a limit between 1 and 30."),radius:F1().max(25e3,"Must use a radius between 1 and 25000."),include_catchments:T1()}),a2=X1({lat:F1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:F1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geogId:I1()}),o2=X1({lat:F1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:F1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),include:I1().oneOf(["geometry"])}),s2=X1({lat:F1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:F1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),radius:F1().max(5e3)}),u2="LocalLogicClient/",l2=function(t){Ti(n,t);var e=Mi(n);function n(t){var r,i=t.message;return Ai(this,n),(r=e.call(this,i)).name=u2+r.constructor.name,r}return Ci(n)}(Ri(Error)),c2=function(t){Ti(n,t);var e=Mi(n);function n(t){var r,i=t.message,a=t.response;return Ai(this,n),r=e.call(this,i),PQ(Pi(r),"statusCode"),PQ(Pi(r),"statusText"),PQ(Pi(r),"data"),r.name=u2+r.constructor.name,r.statusCode=null==a?void 0:a.status,r.statusText=null==a?void 0:a.statusText,r.data=null==a?void 0:a.data,r}return Ci(n)}(Ri(Error)),f2=function(t){Ti(n,t);var e=Mi(n);function n(t){var r,i=t.message;return Ai(this,n),(r=e.call(this,i)).name=u2+r.constructor.name,r}return Ci(n)}(Ri(Error)),d2=function(t){throw t instanceof Q0?new l2(t):m0.isAxiosError(t)?new c2(t):new f2(t)},h2=function(t,e,n){var r=n.value;return n.value=function(){try{for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=r.apply(this,e);return i&&i instanceof Promise?i.catch((function(t){d2(t)})):i}catch(nw){d2(nw)}},n},p2=Object.defineProperty,v2=Object.getOwnPropertyDescriptor,g2=function(t,e,n,r){for(var i,a=r>1?void 0:r?v2(e,n):e,o=t.length-1;o>=0;o--)(i=t[o])&&(a=(r?i(e,n,a):i(a))||a);return r&&a&&p2(e,n,a),a},m2=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{locale:"en"};Ai(this,t),PQ(this,"requests"),PQ(this,"options"),this.requests=y0(e,n),this.options=n}return Ci(t,[{key:"getPois",value:function(t){return function(t){return function(){var e=pi(di().mark((function e(n){var r,i,a,o,s,u,l,c;return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t2.validate(n);case 2:return r=e.sent,i=r.lat,a=r.lng,o=r.limit,s=r.radius,u=r.include,e.next=10,t.get("/pois",{params:{lat:i,lng:a,limit:o,radius:s,include:null==u?void 0:u.join(",")}});case 10:return l=e.sent,c=u.reduce((function(t,e){return _i(_i({},t),{},xi({},e,[]))}),{}),e.abrupt("return",l.data.data||c);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}(this.requests)(t)}},{key:"getScores",value:function(t){return function(t){return function(){var e=pi(di().mark((function e(n){var r,i,a,o,s,u,l,c;return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r2.validate(n);case 2:return r=e.sent,i=r.lat,a=r.lng,o=r.include,s=r.geographyIds,u=r.geographyLevels,l=r.locationScoresRounding,c=void 0===l||l,e.next=12,t.get("/scores",{params:{lat:i,lng:a,include:null==o?void 0:o.join(","),geography_levels:null==u?void 0:u.join(","),geography_ids:null==s?void 0:s.join(","),location_scores_rounding:c?".5":"none"}});case 12:return e.abrupt("return",e.sent.data.data);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}(this.requests)(t)}},{key:"getSchools",value:function(t){return function(t){return function(){var e=pi(di().mark((function e(n){var r,i,a,o,s,u;return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i2.validate(n);case 2:return r=e.sent,i=r.lat,a=r.lng,o=r.limit,s=r.radius,u=r.include_catchments,e.next=10,t.get("/schools",{params:{lat:i,lng:a,limit:o,radius:s,include_catchments:u}});case 10:return e.abrupt("return",e.sent.data.data);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}(this.requests)(t)}},{key:"getProfiles",value:function(t){return function(t){return function(){var e=pi(di().mark((function e(n){var r,i,a,o;return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a2.validate(n);case 2:return r=e.sent,i=r.lat,a=r.lng,o=r.geogId,e.next=8,t.get("/profiles",{params:{lat:i,lng:a,geog_id:o}});case 8:return e.abrupt("return",e.sent.data.data);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}(this.requests)(t)}},{key:"getGeographies",value:function(t){return function(t){return function(){var e=pi(di().mark((function e(n){var r,i,a,o;return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o2.validate(n);case 2:return r=e.sent,i=r.lat,a=r.lng,o=r.include,e.next=8,t.get("/geographies",{params:{lat:i,lng:a,include:o}});case 8:return e.abrupt("return",e.sent.data.data);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}(this.requests)(t)}},{key:"getDemographics",value:function(t){return function(t){return function(){var e=pi(di().mark((function e(n){var r,i,a,o;return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s2.validate(n);case 2:return r=e.sent,i=r.lat,a=r.lng,o=r.radius,e.next=8,t.get("/demographics",{params:{lat:i,lng:a,radius:o}});case 8:return e.abrupt("return",e.sent.data.data.attributes);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}(this.requests)(t)}}]),t}();g2([h2],m2.prototype,"getPois",1),g2([h2],m2.prototype,"getScores",1),g2([h2],m2.prototype,"getSchools",1),g2([h2],m2.prototype,"getProfiles",1),g2([h2],m2.prototype,"getGeographies",1),g2([h2],m2.prototype,"getDemographics",1);var y2,b2={exports:{}},_2={};!function(t){t.exports=function(){if(y2)return _2;y2=1;var t=pa,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,a={key:!0,ref:!0,__self:!0,__source:!0};function o(t,n,o){var s,u={},l=null,c=null;for(s in void 0!==o&&(l=""+o),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!a.hasOwnProperty(s)&&(u[s]=n[s]);if(t&&t.defaultProps)for(s in n=t.defaultProps)void 0===u[s]&&(u[s]=n[s]);return{$$typeof:e,type:t,key:l,ref:c,props:u,_owner:i.current}}return _2.Fragment=n,_2.jsx=o,_2.jsxs=o,_2}()}(b2);var x2,w2=b2.exports.Fragment,k2=b2.exports.jsx,S2=b2.exports.jsxs,E2=Object.defineProperty,C2=function(t,e,n){return function(t,e,n){e in t?E2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},A2={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"},T2={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"},M2={colorBlue70:"#0056D3"},O2=Object.freeze(Object.defineProperty({__proto__:null,primaryColors:A2,neutralColors:T2,blueColors:M2},Symbol.toStringTag,{value:"Module"})),P2={"--ll-color-primary":A2.colorPrimary50,"--ll-color-primary-variant1":A2.colorPrimary40,"--ll-color-background":T2.colorNeutral100,"--ll-color-surface":T2.colorNeutral95,"--ll-color-surface-variant1":T2.colorNeutral90,"--ll-color-surface-variant2":T2.colorNeutral80,"--ll-color-on-primary":T2.colorNeutral100,"--ll-color-on-primary-variant1":T2.colorNeutral90,"--ll-color-on-background":T2.colorNeutral10,"--ll-color-on-background-variant1":T2.colorNeutral30,"--ll-color-on-surface":T2.colorNeutral10,"--ll-color-on-surface-variant1":T2.colorNeutral30,"--ll-color-placeholder":T2.colorNeutral60,"--ll-color-disabled":T2.colorNeutral60,"--ll-color-border":T2.colorNeutral90,"--ll-color-link":M2.colorBlue70},R2={"--ll-border-radius-small":"".concat(4,"px"),"--ll-border-radius-medium":"".concat(8,"px"),"--ll-border-radius-large":"".concat(16,"px")},D2={"--ll-spacing-auto":"auto","--ll-spacing-base-unit":"".concat(4,"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)"},L2=_i(_i(_i(_i(_i(_i(_i({},P2),R2),{"--ll-shadow-small":"rgb(0 0 0 / 18%) 0px 2px 5px","--ll-shadow-medium":"0px 5px 11px -4px rgba(0,0,0,0.75)"}),D2),{"--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;"}),{"--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)"}),{"--ll-font-weight-light":"400","--ll-font-weight-normal":"500","--ll-font-weight-medium":"600","--ll-font-weight-bold":"700"}),I2=_i(_i({},L2),{},{"--ll-color-primary":A2.colorPrimary60,"--ll-color-primary-variant1":A2.colorPrimary50,"--ll-color-background":T2.colorNeutral10,"--ll-color-surface":T2.colorNeutral20,"--ll-color-surface-variant1":T2.colorNeutral30,"--ll-color-surface-variant2":T2.colorNeutral40,"--ll-color-on-primary":T2.colorNeutral100,"--ll-color-on-primary-variant1":T2.colorNeutral90,"--ll-color-on-background":T2.colorNeutral99,"--ll-color-on-background-variant1":T2.colorNeutral80,"--ll-color-on-surface":T2.colorNeutral80,"--ll-color-on-surface-variant1":T2.colorNeutral90,"--ll-color-placeholder":T2.colorNeutral70,"--ll-color-disabled":T2.colorNeutral70,"--ll-color-border":T2.colorNeutral30,"--ll-color-link":M2.colorBlue70}),N2=Object.keys(L2).reduce((function(t,e){return _i(_i({},t),{},xi({},e,"var(".concat(e,")")))}),{}),F2={day:L2,night:I2},z2=XC(lt||(lt=ci(["\n :root {\n ",";\n }\n"])),(function(t){var e=t.themeName,n=t.overrides;return _i(_i({},F2[e||"day"]),n)})),j2={default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}},B2=Object.freeze(Object.defineProperty({__proto__:null,transitions:j2},Symbol.toStringTag,{value:"Module"})),V2={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},H2=Object.freeze(Object.defineProperty({__proto__:null,screenSizes:V2},Symbol.toStringTag,{value:"Module"})),U2=_i(_i({colors:O2},B2),H2),W2=qC.span(ht||(ht=ci(["\n white-space: nowrap;\n display: inline-flex;\n color: ",";\n background-color: ",";\n border-radius: ",";\n line-height: 1;\n font-family: ",";\n font-size: ",";\n justify-content: center;\n\n ",";\n"])),(function(t){return t.$textColor}),(function(t){return t.$backgroundColor}),N2["--ll-border-radius-small"],N2["--ll-font-family"],N2["--ll-font-size-caption-1"],(function(t){var e=t.$size;return"small"===e?WC(ct||(ct=ci(["\n padding: calc("," / 2) ",";\n "])),N2["--ll-spacing-xx-small"],N2["--ll-spacing-xx-small"]):"large"===e?WC(ft||(ft=ci(["\n padding: calc("," / 2) ",";\n font-size: ",";\n line-height: ",";\n "])),N2["--ll-spacing-small"],N2["--ll-spacing-medium"],N2["--ll-font-size-p"],N2["--ll-font-size-h6"]):WC(dt||(dt=ci(["\n padding: "," ",";\n "])),N2["--ll-spacing-xx-small"],N2["--ll-spacing-x-small"])})),Y2={exports:{}},G2={};!function(t){t.exports=function(){if(x2)return G2;x2=1;var t=pa,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,a={key:!0,ref:!0,__self:!0,__source:!0};function o(t,n,o){var s,u={},l=null,c=null;for(s in void 0!==o&&(l=""+o),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!a.hasOwnProperty(s)&&(u[s]=n[s]);if(t&&t.defaultProps)for(s in n=t.defaultProps)void 0===u[s]&&(u[s]=n[s]);return{$$typeof:e,type:t,key:l,ref:c,props:u,_owner:i.current}}return G2.Fragment=n,G2.jsx=o,G2.jsxs=o,G2}()}(Y2);var q2=Y2.exports.Fragment,Z2=Y2.exports.jsx,X2=Y2.exports.jsxs,K2=function(t){var e=t.text,n=t.size,r=void 0===n?"small":n,i=t.className,a=t.textColor,o=void 0===a?T2.colorNeutral10:a,s=t.backgroundColor,u=void 0===s?T2.colorNeutral90:s,l=t.onClick;return Z2(W2,{$size:r,onClick:l,className:i,$textColor:o,$backgroundColor:u,children:e})},$2=qC.div(pt||(pt=ci(["\n height: ","px;\n width: ","px;\n fill: ",";\n display: flex;\n\n & > svg {\n fill: inherit;\n height: 100%;\n width: 100%;\n }\n"])),(function(t){return t.height}),(function(t){return t.width}),(function(t){return t.fill})),Q2=function(t){var e=t.SVGElement,n=t.fill,r=void 0===n?"--ll-color-on-background":n,i=t.height,a=void 0===i?24:i,o=t.width;return Z2($2,{fill:r,height:a,width:void 0===o?24:o,children:Z2(e,{})})},J2=function(t){var e=t.$variant;return"h1"===e?N2["--ll-font-size-h1"]:"h2"===e?N2["--ll-font-size-h2"]:"h3"===e?N2["--ll-font-size-h3"]:"h4"===e?N2["--ll-font-size-h4"]:"h5"===e?N2["--ll-font-size-h5"]:"h6"===e?N2["--ll-font-size-h6"]:"p"===e?N2["--ll-font-size-p"]:"caption1"===e?N2["--ll-font-size-caption-1"]:"caption2"===e?N2["--ll-font-size-caption-2"]:N2["--ll-font-size-h2"]},t5=function(t){var e=t.$color;return e in N2?N2[e]:e},e5=qC.span(vt||(vt=ci(["\n overflow: hidden;\n display: inline-block;\n width: 100%;\n line-height: ",";\n margin: 0 0 "," 0;\n font-size: inherit;\n font-weight: inherit;\n"])),(function(t){return t.$lineHeight||1.45}),(function(t){return t.$noMargin?"0":"0.5em"})),n5=qC.div(gt||(gt=ci(["\n ","\n"])),(function(t){return WC(mt||(mt=ci(["\n text-align: ",";\n font-size: ",";\n font-family: ",";\n font-variant: ",";\n letter-spacing: ",";\n color: ",";\n font-weight: ",";\n overflow: hidden;\n display: flex;\n\n svg {\n height: ",";\n fill: ",";\n }\n\n "," {\n ","\n }\n "])),t.$align,J2(t),"sans-serif"===t.$family?N2["--ll-font-family"]:N2["--ll-font-family-mono"],t.$fontVariant,t.$letterSpacing,t5(t),N2[t.$weight],J2(t),t5(t),e5,t.$lineClamp&&WC(yt||(yt=ci(["\n display: -webkit-box;\n -webkit-line-clamp: ",";\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n "])),t.$lineClamp))})),r5=function(t){var e=t.children,n=t.variant,r=void 0===n?"p":n,i=t.align,a=t.color,o=void 0===a?"--ll-color-on-background":a,s=t.lineClamp,u=t.noMargin,l=t.lineHeight,c=t.weight,f=void 0===c?"--ll-font-weight-normal":c,d=t.family,h=void 0===d?"sans-serif":d,p=t.className,v=t.fontVariant,g=void 0===v?"initial":v,m=t.letterSpacing,y=["caption1","caption2","p"].includes(r)?"p":r;return Z2(n5,{$variant:r,$align:i,$color:o,$lineClamp:s,$weight:f,$family:h,$fontVariant:g,$letterSpacing:m,children:Z2(e5,{as:y,className:p,$noMargin:u,$lineHeight:l,children:e})})},i5=qC.a(bt||(bt=ci(["\n font-family: ",";\n font-size: ",";\n color: ",";\n cursor: pointer;\n\n ","\n"])),N2["--ll-font-family"],N2["--ll-font-size-p"],N2["--ll-color-link"],(function(t){var e=t.lineClamp;return e&&WC(_t||(_t=ci(["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ",";\n "])),e)})),a5=function(t){var e=t.children,n=t.href,r=t.className,i=t.lineClamp,a=t.download;return Z2(i5,{href:n,target:"_blank",rel:"noreferrer",lineClamp:i,className:r,download:a,children:e})};function o5(){return o5=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},o5.apply(this,arguments)}function s5(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];function r(e,r){var i=ki.exports.createContext(r),a=n.length;function o(e){var n=e.scope,r=e.children,o=fi(e,nr),s=(null==n?void 0:n[t][a])||i,u=ki.exports.useMemo((function(){return o}),Object.values(o));return ki.exports.createElement(s.Provider,{value:u},r)}return n=[].concat(mi(n),[r]),o.displayName=e+"Provider",[o,function(n,o){var s=(null==o?void 0:o[t][a])||i,u=ki.exports.useContext(s);if(u)return u;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(e,"`"))}]}var i=function(){var e=n.map((function(t){return ki.exports.createContext(t)}));return function(n){var r=(null==n?void 0:n[t])||e;return ki.exports.useMemo((function(){return xi({},"__scope".concat(t),_i(_i({},n),{},xi({},t,r)))}),[n,r])}};return i.scopeName=t,[r,u5.apply(void 0,[i].concat(mi(e)))]}function u5(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if(1===e.length)return r;var i=function(){var t=e.map((function(t){return{useScope:t(),scopeName:t.scopeName}}));return function(e){var n=t.reduce((function(t,n){var r=n.useScope,i=n.scopeName,a=r(e)["__scope".concat(i)];return _i(_i({},t),a)}),{});return ki.exports.useMemo((function(){return xi({},"__scope".concat(r.scopeName),n)}),[n])}};return i.scopeName=r.scopeName,i}function l5(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}function c5(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.forEach((function(e){return l5(e,t)}))}}function f5(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ki.exports.useCallback(c5.apply(void 0,e),e)}var d5=ki.exports.forwardRef((function(t,e){var n=t.children,r=fi(t,rr),i=ki.exports.Children.toArray(n),a=i.find(v5);if(a){var o=a.props.children,s=i.map((function(t){return t===a?ki.exports.Children.count(o)>1?ki.exports.Children.only(null):ki.exports.isValidElement(o)?o.props.children:null:t}));return ki.exports.createElement(h5,o5({},r,{ref:e}),ki.exports.isValidElement(o)?ki.exports.cloneElement(o,void 0,s):null)}return ki.exports.createElement(h5,o5({},r,{ref:e}),n)}));d5.displayName="Slot";var h5=ki.exports.forwardRef((function(t,e){var n=t.children,r=fi(t,ir);return ki.exports.isValidElement(n)?ki.exports.cloneElement(n,_i(_i({},function(t,e){var n=_i({},e),r=function(r){var i=t[r],a=e[r];/^on[A-Z]/.test(r)?n[r]=function(){null==a||a.apply(void 0,arguments),null==i||i.apply(void 0,arguments)}:"style"===r?n[r]=_i(_i({},i),a):"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))};for(var i in e)r(i);return _i(_i({},t),n)}(r,n.props)),{},{ref:c5(e,n.ref)})):ki.exports.Children.count(n)>1?ki.exports.Children.only(null):null}));h5.displayName="SlotClone";var p5=function(t){var e=t.children;return ki.exports.createElement(ki.exports.Fragment,null,e)};function v5(t){return ki.exports.isValidElement(t)&&t.type===p5}var g5=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(t,e){var n=ki.exports.forwardRef((function(t,n){var r=t.asChild,i=fi(t,ar),a=r?d5:e;return ki.exports.useEffect((function(){window[Symbol.for("radix-ui")]=!0}),[]),ki.exports.createElement(a,o5({},i,{ref:n}))}));return n.displayName="Primitive.".concat(e),_i(_i({},t),{},xi({},e,n))}),{});var m5=Boolean(null==globalThis?void 0:globalThis.document)?ki.exports.useLayoutEffect:function(){},y5=va["useId".toString()]||function(){},b5=0;function _5(t){var e=wi(ki.exports.useState(y5()),2),n=e[0],r=e[1];return m5((function(){t||r((function(t){return null!=t?t:String(b5++)}))}),[t]),t||(n?"radix-".concat(n):"")}var x5=function(t,e){var n=ki.exports.createContext(e);function r(t){var e=t.children,r=fi(t,er),i=ki.exports.useMemo((function(){return r}),Object.values(r));return ki.exports.createElement(n.Provider,{value:i},e)}return r.displayName=t+"Provider",[r,function(r){var i=ki.exports.useContext(n);if(i)return i;if(void 0!==e)return e;throw new Error("`".concat(r,"` must be used within `").concat(t,"`"))}]}("Label",{id:void 0,controlRef:{current:null}}),w5=wi(x5,2),k5=w5[0],S5=w5[1],E5=ki.exports.forwardRef((function(t,e){var n=t.htmlFor,r=t.id,i=fi(t,or),a=ki.exports.useRef(null),o=ki.exports.useRef(null),s=f5(e,o),u=_5(r);return ki.exports.useEffect((function(){if(n){var t=document.getElementById(n);if(o.current&&t){var e=function(){return t.getAttribute("aria-labelledby")},r=[u,e()].filter(Boolean).join(" ");return t.setAttribute("aria-labelledby",r),a.current=t,function(){var n,r=null===(n=e())||void 0===n?void 0:n.replace(u,"");""===r?t.removeAttribute("aria-labelledby"):r&&t.setAttribute("aria-labelledby",r)}}}}),[u,n]),ki.exports.createElement(k5,{id:u,controlRef:a},ki.exports.createElement(g5.span,o5({role:"label",id:u},i,{ref:s,onMouseDown:function(e){var n;null===(n=t.onMouseDown)||void 0===n||n.call(t,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},onClick:function(e){var n;if(null===(n=t.onClick)||void 0===n||n.call(t,e),a.current&&!e.defaultPrevented){var r=a.current.contains(e.target),i=!0===e.isTrusted;!r&&i&&(a.current.click(),a.current.focus())}}})))})),C5=function(t){var e=S5("LabelConsumer"),n=e.controlRef;return ki.exports.useEffect((function(){t&&(n.current=t)}),[t,n]),e.id};qC(E5)(xt||(xt=ci(["\n font-size: ",";\n font-family: ",";\n color: ",";\n"])),N2["--ll-font-size-p"],N2["--ll-font-family"],N2["--ll-color-placeholder"]);var A5=KC(wt||(wt=ci(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),T5={small:16,medium:24,large:32},M5=qC.div(kt||(kt=ci(["\n height: ","px;\n width: ","px;\n border: ","px solid ",";\n border-bottom-color: transparent;\n border-radius: 50%;\n display: inline-block;\n box-sizing: border-box;\n animation: "," 1s linear infinite;\n"])),(function(t){var e=t.size;return T5[e]}),(function(t){var e=t.size;return T5[e]}),(function(t){var e=t.size;return T5[e]/6}),N2["--ll-color-on-surface-variant1"],A5),O5=function(t){var e=t.size;return Z2(M5,{size:void 0===e?"medium":e})},P5={primary:{background:N2["--ll-color-primary"],onBackground:N2["--ll-color-on-primary"],hover:N2["--ll-color-primary-variant1"]}},R5=function(t){var e=t.size;return"".concat("small"===e?32:"large"===e?48:40,"px")},D5=WC(St||(St=ci(["\n color: ",";\n\n &:disabled {\n cursor: default;\n }\n\n height: ",";\n"])),N2["--ll-color-on-background"],R5),L5=WC(Et||(Et=ci(["\n ",";\n height: ",";\n"])),(function(t){var e=t.color,n=void 0===e?"primary":e;return WC(Ct||(Ct=ci(["\n background-color: ",";\n color: ",";\n border: 1px solid transparent;\n\n &:hover {\n background-color: ",";\n }\n\n &:disabled {\n background-color: ",";\n cursor: default;\n }\n "])),P5[n].background,P5[n].onBackground,P5[n].hover,N2["--ll-color-disabled"])}),R5),I5=WC(At||(At=ci(["\n ",";\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.03);\n }\n\n height: ",";\n"])),(function(t){var e=t.color,n=void 0===e?"primary":e;return WC(Tt||(Tt=ci(["\n border-color: ",";\n border-width: 1px;\n border-style: solid;\n color: ",";\n "])),P5[n].background,P5[n].background)}),R5),N5=qC.div(Mt||(Mt=ci(["\n display: flex;\n align-items: center;\n margin-right: ",";\n margin-left: calc(-1 * ",");\n"])),N2["--ll-spacing-x-small"],N2["--ll-spacing-xx-small"]),F5=qC.button(Ot||(Ot=ci(["\n font-weight: ",";\n border-radius: ",";\n align-items: center;\n justify-content: center;\n cursor: pointer;\n display: inline-flex;\n background: none;\n border: none;\n box-sizing: border-box;\n\n svg {\n fill: currentColor;\n }\n\n ",";\n ",";\n ",";\n ",";\n"])),N2["--ll-font-weight-normal"],N2["--ll-border-radius-small"],(function(t){return{contained:L5,outlined:I5,text:D5}[t.variant]}),(function(t){var e=t.size;return"large"===e?"svg { height: 24px; }":"small"===e?"svg { height: 12px }":"svg { height: 20px; }"}),(function(t){var e=t.size;return"font-size: ".concat("small"===e?N2["--ll-font-size-caption-1"]:N2["--ll-font-size-p"])}),(function(t){var e=t.size;return"padding: 0 ".concat("small"===e?N2["--ll-spacing-x-small"]:"large"===e?N2["--ll-spacing-medium"]:N2["--ll-spacing-small"])})),z5=pa.forwardRef((function(t,e){var n=t.children,r=t.disabled,i=void 0!==r&&r,a=t.onClick,o=t.variant,s=void 0===o?"contained":o,u=t.startAdornment,l=t.size,c=void 0===l?"medium":l,f=t.type,d=void 0===f?"button":f,h=t.color,p=t.isLoading,v=t.className;return Z2(F5,{variant:s,size:c,onClick:function(t){i||!a||p||a(t)},disabled:i||p,className:v,color:h,type:d,ref:e,children:p?Z2(O5,{}):X2(q2,{children:[u&&Z2(N5,{children:u}),n]})})}));z5.displayName="Button",qC.div(Pt||(Pt=ci(["\n display: flex;\n flex-direction: column;\n"]))),qC.div(Rt||(Rt=ci(["\n position: relative;\n"]))),qC(z5)(Dt||(Dt=ci(["\n position: absolute;\n right: 0px;\n top: 0px;\n"]))),qC.input(Lt||(Lt=ci(["\n all: unset;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: ",";\n padding: 0 ",";\n height: 30px;\n line-height: 1;\n font-size: ",";\n font-family: ",";\n color: ",";\n background-color: ",";\n border: 1px solid ",";\n width: calc(100% - ",");\n\n &:focus {\n box-shadow: ",";\n }\n\n // Set to 16px to avoid mobile to zoom in to the input\n @media (max-width: ","px) {\n font-size: ",";\n }\n"])),N2["--ll-border-radius-small"],N2["--ll-spacing-x-small"],N2["--ll-font-size-p"],N2["--ll-font-family"],N2["--ll-color-on-background"],N2["--ll-color-background"],N2["--ll-color-border"],N2["--ll-spacing-medium"],N2["--ll-shadow-small"],V2.tablet,N2["--ll-font-size-h6"]);var j5={small:20,medium:32,large:40},B5=qC(_L.div)(It||(It=ci(["\n background: linear-gradient(\n to top,\n ",",\n ","\n );\n border-radius: 50%;\n border: 2px solid #fff;\n height: ","px;\n width: ","px;\n display: flex;\n justify-content: center;\n align-items: center;\n box-shadow: ",";\n"])),(function(t){return t.$backgroundColorHighlight}),(function(t){return t.$backgroundColor}),(function(t){var e=t.$size;return j5[e]}),(function(t){var e=t.$size;return j5[e]}),N2["--ll-shadow-small"]),V5=function(t){var e=t.fill,n=void 0===e?"#fff":e,r=t.backgroundColor,i=void 0===r?N2["--ll-color-primary"]:r,a=t.backgroundColorHighlight,o=void 0===a?i:a,s=t.SVGElement,u=t.size,l=void 0===u?"small":u,c=t.expandMarker;return Z2(B5,{"data-testid":"svgInfo",$backgroundColor:i,$backgroundColorHighlight:o,$size:l,variants:{default:{scale:1},hovered:{scale:1.2}},animate:c?"hovered":"default",whileHover:{scale:1.2},transition:U2.transitions.default,children:Z2(Q2,{SVGElement:s,fill:n,height:j5[l]/1.5,width:j5[l]/1.5})})};function H5(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.checkForDefaultPrevented,i=void 0===r||r;return function(n){if(null==t||t(n),!1===i||!n.defaultPrevented)return null==e?void 0:e(n)}}function U5(t){var e=ki.exports.useRef(t);return ki.exports.useEffect((function(){e.current=t})),ki.exports.useMemo((function(){return function(){for(var t,n,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return null===(n=e.current)||void 0===n?void 0:(t=n).call.apply(t,[e].concat(i))}}),[])}function W5(t){var e=t.prop,n=t.defaultProp,r=t.onChange,i=void 0===r?function(){}:r,a=function(t){var e=t.defaultProp,n=t.onChange,r=ki.exports.useState(e),i=wi(r,1)[0],a=ki.exports.useRef(i),o=U5(n);return ki.exports.useEffect((function(){a.current!==i&&(o(i),a.current=i)}),[i,a,o]),r}({defaultProp:n,onChange:i}),o=wi(a,2),s=o[0],u=o[1],l=void 0!==e,c=l?e:s,f=U5(i),d=ki.exports.useCallback((function(t){if(l){var n="function"==typeof t?t(e):t;n!==e&&f(n)}else u(t)}),[l,e,u,f]);return[c,d]}function Y5(t){var e=ki.exports.useRef({value:t,previous:t});return ki.exports.useMemo((function(){return e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous}),[t])}function G5(t){var e=wi(ki.exports.useState(void 0),2),n=e[0],r=e[1];return m5((function(){if(t){r({width:t.offsetWidth,height:t.offsetHeight});var e=new ResizeObserver((function(e){if(Array.isArray(e)&&e.length){var n,i,a=e[0];if("borderBoxSize"in a){var o=a.borderBoxSize,s=Array.isArray(o)?o[0]:o;n=s.inlineSize,i=s.blockSize}else n=t.offsetWidth,i=t.offsetHeight;r({width:n,height:i})}}));return e.observe(t,{box:"border-box"}),function(){return e.unobserve(t)}}r(void 0)}),[t]),n}var q5="Switch",Z5=wi(s5(q5),2),X5=Z5[0],K5=(Z5[1],wi(X5(q5),2)),$5=K5[0],Q5=K5[1],J5=ki.exports.forwardRef((function(t,e){var n=t.__scopeSwitch,r=t["aria-labelledby"],i=t.name,a=t.checked,o=t.defaultChecked,s=t.required,u=t.disabled,l=t.value,c=void 0===l?"on":l,f=t.onCheckedChange,d=fi(t,sr),h=wi(ki.exports.useState(null),2),p=h[0],v=h[1],g=f5(e,(function(t){return v(t)})),m=C5(p),y=r||m,b=ki.exports.useRef(!1),_=!p||Boolean(p.closest("form")),x=wi(W5({prop:a,defaultProp:o,onChange:f}),2),w=x[0],k=void 0!==w&&w,S=x[1];return ki.exports.createElement($5,{scope:n,checked:k,disabled:u},ki.exports.createElement(g5.button,o5({type:"button",role:"switch","aria-checked":k,"aria-labelledby":y,"aria-required":s,"data-state":n3(k),"data-disabled":u?"":void 0,disabled:u,value:c},d,{ref:g,onClick:H5(t.onClick,(function(t){S((function(t){return!t})),_&&(b.current=t.isPropagationStopped(),b.current||t.stopPropagation())}))})),_&&ki.exports.createElement(e3,{control:p,bubbles:!b.current,name:i,value:c,checked:k,required:s,disabled:u,style:{transform:"translateX(-100%)"}}))})),t3=ki.exports.forwardRef((function(t,e){var n=t.__scopeSwitch,r=fi(t,ur),i=Q5("SwitchThumb",n);return ki.exports.createElement(g5.span,o5({"data-state":n3(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:e}))})),e3=function(t){var e=t.control,n=t.checked,r=t.bubbles,i=void 0===r||r,a=fi(t,lr),o=ki.exports.useRef(null),s=Y5(n),u=G5(e);return ki.exports.useEffect((function(){var t=o.current,e=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(e,"checked").set;if(s!==n&&r){var a=new Event("click",{bubbles:i});r.call(t,n),t.dispatchEvent(a)}}),[s,n,i]),ki.exports.createElement("input",o5({type:"checkbox","aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:o,style:_i(_i(_i({},t.style),u),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))};function n3(t){return t?"checked":"unchecked"}var r3=t3;function i3(t,e){var n=wi(e,2),r=n[0],i=n[1];return Math.min(i,Math.max(r,t))}qC(J5)(Nt||(Nt=ci(["\n all: unset;\n width: 42px;\n height: 24px;\n background-color: ",';\n border-radius: 13px;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &[data-state="checked"] {\n background-color: ',";\n }\n"])),N2["--ll-color-disabled"],N2["--ll-color-on-background"]),qC(r3)(Ft||(Ft=ci(["\n display: block;\n width: 18px;\n height: 18px;\n background-color: ",';\n border-radius: 9px;\n transition: transform 100ms;\n transform: translateX(3px);\n will-change: transform;\n\n &[data-state="checked"] {\n transform: translateX(21px);\n }\n'])),N2["--ll-color-background"]);var a3=ki.exports.createContext(void 0);function o3(t){var e=ki.exports.useContext(a3);return t||e||"ltr"}function s3(t){var e=t+"CollectionProvider",n=wi(s5(e),2),r=n[0],i=n[1],a=wi(r(e,{collectionRef:{current:null},itemMap:new Map}),2),o=a[0],s=a[1],u=t+"CollectionSlot",l=pa.forwardRef((function(t,e){var n=t.scope,r=t.children,i=f5(e,s(u,n).collectionRef);return pa.createElement(d5,{ref:i},r)})),c=t+"CollectionItemSlot",f="data-radix-collection-item",d=pa.forwardRef((function(t,e){var n,r=t.scope,i=t.children,a=fi(t,cr),o=pa.useRef(null),u=f5(e,o),l=s(c,r);return pa.useEffect((function(){return l.itemMap.set(o,_i({ref:o},a)),function(){l.itemMap.delete(o)}})),pa.createElement(d5,(xi(n={},f,""),xi(n,"ref",u),n),i)}));return[{Provider:function(t){var e=t.scope,n=t.children,r=pa.useRef(null),i=pa.useRef(new Map).current;return pa.createElement(o,{scope:e,itemMap:i,collectionRef:r},n)},Slot:l,ItemSlot:d},function(e){var n=s(t+"CollectionConsumer",e);return pa.useCallback((function(){var t=n.collectionRef.current;if(!t)return[];var e=Array.from(t.querySelectorAll("[".concat(f,"]")));return Array.from(n.itemMap.values()).sort((function(t,n){return e.indexOf(t.ref.current)-e.indexOf(n.ref.current)}))}),[n.collectionRef,n.itemMap])},i]}var u3=["PageUp","PageDown"],l3=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],c3={ltr:["ArrowDown","Home","ArrowLeft","PageDown"],rtl:["ArrowDown","Home","ArrowRight","PageDown"]},f3="Slider",d3=wi(s3(f3),3),h3=d3[0],p3=d3[1],v3=d3[2],g3=wi(s5(f3,[v3]),2),m3=g3[0],y3=(g3[1],wi(m3(f3),2)),b3=y3[0],_3=y3[1],x3=ki.exports.forwardRef((function(t,e){var n=t.name,r=t.min,i=void 0===r?0:r,a=t.max,o=void 0===a?100:a,s=t.step,u=void 0===s?1:s,l=t.orientation,c=void 0===l?"horizontal":l,f=t.disabled,d=void 0!==f&&f,h=t.minStepsBetweenThumbs,p=void 0===h?0:h,v=t.defaultValue,g=void 0===v?[i]:v,m=t.value,y=t.onValueChange,b=void 0===y?function(){}:y,_=fi(t,fr),x=wi(ki.exports.useState(null),2),w=x[0],k=x[1],S=f5(e,(function(t){return k(t)})),E=ki.exports.useRef(new Set),C=ki.exports.useRef(0),A="horizontal"===c,T=!w||Boolean(w.closest("form")),M=A?E3:C3,O=W5({prop:m,defaultProp:g,onChange:function(t){var e;null===(e=mi(E.current)[C.current])||void 0===e||e.focus(),b(t)}}),P=wi(O,2),R=P[0],D=void 0===R?[]:R,L=P[1];function I(t,e){var n=function(t){return(String(t).split(".")[1]||"").length}(u),r=function(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}(Math.round((t-i)/u)*u+i,n),a=i3(r,[i,o]);L((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=I3(t,a,e);return F3(n,p*u)?(C.current=n.indexOf(a),String(n)===String(t)?t:n):t}))}return ki.exports.createElement(b3,{scope:t.__scopeSlider,disabled:d,min:i,max:o,valueIndexToChangeRef:C,thumbs:E.current,values:D,orientation:c},ki.exports.createElement(h3.Provider,{scope:t.__scopeSlider},ki.exports.createElement(h3.Slot,{scope:t.__scopeSlider},ki.exports.createElement(M,o5({"aria-disabled":d,"data-disabled":d?"":void 0},_,{ref:S,min:i,max:o,onSlideStart:d?void 0:function(t){var e=function(t,e){if(1===t.length)return 0;var n=t.map((function(t){return Math.abs(t-e)})),r=Math.min.apply(Math,mi(n));return n.indexOf(r)}(D,t);I(t,e)},onSlideMove:d?void 0:function(t){I(t,C.current)},onHomeKeyDown:function(){return!d&&I(i,0)},onEndKeyDown:function(){return!d&&I(o,D.length-1)},onStepKeyDown:function(t){var e=t.event,n=t.direction;if(!d){var r=u3.includes(e.key)||e.shiftKey&&l3.includes(e.key)?10:1,i=C.current;I(D[i]+u*r*n,i)}}})))),T&&D.map((function(t,e){return ki.exports.createElement(L3,{key:e,name:n?n+(D.length>1?"[]":""):void 0,value:t})})))})),w3=wi(m3(f3,{startEdge:"left",endEdge:"right",size:"width",direction:1}),2),k3=w3[0],S3=w3[1],E3=ki.exports.forwardRef((function(t,e){var n=t.min,r=t.max,i=t.dir,a=t.onSlideStart,o=t.onSlideMove,s=t.onStepKeyDown,u=fi(t,dr),l=wi(ki.exports.useState(null),2),c=l[0],f=l[1],d=f5(e,(function(t){return f(t)})),h=ki.exports.useRef(),p=o3(i),v="ltr"===p;function g(t){var e=h.current||c.getBoundingClientRect(),i=z3([0,e.width],v?[n,r]:[r,n]);return h.current=e,i(t-e.left)}return ki.exports.createElement(k3,{scope:t.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width"},ki.exports.createElement(A3,o5({dir:p,"data-orientation":"horizontal"},u,{ref:d,style:_i(_i({},u.style),{},xi({},"--radix-slider-thumb-transform","translateX(-50%)")),onSlideStart:function(t){var e=g(t.clientX);null==a||a(e)},onSlideMove:function(t){var e=g(t.clientX);null==o||o(e)},onSlideEnd:function(){return h.current=void 0},onStepKeyDown:function(t){var e=c3[p].includes(t.key);null==s||s({event:t,direction:e?-1:1})}})))})),C3=ki.exports.forwardRef((function(t,e){var n=t.min,r=t.max,i=t.onSlideStart,a=t.onSlideMove,o=t.onStepKeyDown,s=fi(t,hr),u=ki.exports.useRef(null),l=f5(e,u),c=ki.exports.useRef();function f(t){var e=c.current||u.current.getBoundingClientRect(),i=z3([0,e.height],[r,n]);return c.current=e,i(t-e.top)}return ki.exports.createElement(k3,{scope:t.__scopeSlider,startEdge:"bottom",endEdge:"top",size:"height",direction:1},ki.exports.createElement(A3,o5({"data-orientation":"vertical"},s,{ref:l,style:_i(_i({},s.style),{},xi({},"--radix-slider-thumb-transform","translateY(50%)")),onSlideStart:function(t){var e=f(t.clientY);null==i||i(e)},onSlideMove:function(t){var e=f(t.clientY);null==a||a(e)},onSlideEnd:function(){return c.current=void 0},onStepKeyDown:function(t){var e=c3.ltr.includes(t.key);null==o||o({event:t,direction:e?-1:1})}})))})),A3=ki.exports.forwardRef((function(t,e){var n=t.__scopeSlider,r=t.onSlideStart,i=t.onSlideMove,a=t.onSlideEnd,o=t.onHomeKeyDown,s=t.onEndKeyDown,u=t.onStepKeyDown,l=fi(t,pr),c=_3(f3,n);return ki.exports.createElement(g5.span,o5({},l,{ref:e,onKeyDown:H5(t.onKeyDown,(function(t){"Home"===t.key?(o(t),t.preventDefault()):"End"===t.key?(s(t),t.preventDefault()):u3.concat(l3).includes(t.key)&&(u(t),t.preventDefault())})),onPointerDown:H5(t.onPointerDown,(function(t){var e=t.target;e.setPointerCapture(t.pointerId),t.preventDefault(),c.thumbs.has(e)?e.focus():r(t)})),onPointerMove:H5(t.onPointerMove,(function(t){t.target.hasPointerCapture(t.pointerId)&&i(t)})),onPointerUp:H5(t.onPointerUp,(function(t){var e=t.target;e.hasPointerCapture(t.pointerId)&&(e.releasePointerCapture(t.pointerId),a(t))}))}))})),T3=ki.exports.forwardRef((function(t,e){var n=t.__scopeSlider,r=fi(t,vr),i=_3("SliderTrack",n);return ki.exports.createElement(g5.span,o5({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},r,{ref:e}))})),M3="SliderRange",O3=ki.exports.forwardRef((function(t,e){var n,r=t.__scopeSlider,i=fi(t,gr),a=_3(M3,r),o=S3(M3,r),s=f5(e,ki.exports.useRef(null)),u=a.values.length,l=a.values.map((function(t){return N3(t,a.min,a.max)})),c=u>1?Math.min.apply(Math,mi(l)):0,f=100-Math.max.apply(Math,mi(l));return ki.exports.createElement(g5.span,o5({"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0},i,{ref:s,style:_i(_i({},t.style),{},(n={},xi(n,o.startEdge,c+"%"),xi(n,o.endEdge,f+"%"),n))}))})),P3="SliderThumb",R3=ki.exports.forwardRef((function(t,e){var n=p3(t.__scopeSlider),r=wi(ki.exports.useState(null),2),i=r[0],a=r[1],o=f5(e,(function(t){return a(t)})),s=ki.exports.useMemo((function(){return i?n().findIndex((function(t){return t.ref.current===i})):-1}),[n,i]);return ki.exports.createElement(D3,o5({},t,{ref:o,index:s}))})),D3=ki.exports.forwardRef((function(t,e){var n=t.__scopeSlider,r=t.index,i=fi(t,mr),a=_3(P3,n),o=S3(P3,n),s=wi(ki.exports.useState(null),2),u=s[0],l=s[1],c=f5(e,(function(t){return l(t)})),f=G5(u),d=a.values[r],h=void 0===d?0:N3(d,a.min,a.max),p=function(t,e){return e>2?"Value ".concat(t+1," of ").concat(e):2===e?["Minimum","Maximum"][t]:void 0}(r,a.values.length),v=null==f?void 0:f[o.size],g=v?function(t,e,n){var r=t/2,i=z3([0,50],[0,r]);return(r-i(e)*n)*n}(v,h,o.direction):0;return ki.exports.useEffect((function(){if(u)return a.thumbs.add(u),function(){a.thumbs.delete(u)}}),[u,a.thumbs]),ki.exports.createElement("span",{style:xi({transform:"var(--radix-slider-thumb-transform)",position:"absolute"},o.startEdge,"calc(".concat(h,"% + ").concat(g,"px)"))},ki.exports.createElement(h3.ItemSlot,{scope:t.__scopeSlider},ki.exports.createElement(g5.span,o5({role:"slider","aria-label":t["aria-label"]||p,"aria-valuemin":a.min,"aria-valuenow":d,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0},i,{ref:c,style:void 0===d?{display:"none"}:t.style,onFocus:H5(t.onFocus,(function(){a.valueIndexToChangeRef.current=r}))}))))})),L3=function(t){var e=t.value,n=fi(t,yr),r=ki.exports.useRef(null),i=Y5(e);return ki.exports.useEffect((function(){var t=r.current,n=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(n,"value").set;if(i!==e&&a){var o=new Event("input",{bubbles:!0});a.call(t,e),t.dispatchEvent(o)}}),[i,e]),ki.exports.createElement("input",o5({style:{display:"none"}},n,{ref:r,defaultValue:e}))};function I3(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=mi(t);return r[n]=e,r.sort((function(t,e){return t-e}))}function N3(t,e,n){return 100/(n-e)*(t-e)}function F3(t,e){if(e>0){var n=function(t){return t.slice(0,-1).map((function(e,n){return t[n+1]-e}))}(t);return Math.min.apply(Math,mi(n))>=e}return!0}function z3(t,e){return function(n){if(t[0]===t[1]||e[0]===e[1])return e[0];var r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}var j3=x3,B3=T3,V3=O3,H3=R3;qC.div(zt||(zt=ci([""]))),qC.div(jt||(jt=ci(["\n display: flex;\n align-items: center;\n"]))),qC(j3)(Bt||(Bt=ci(["\n position: relative;\n display: flex;\n align-items: center;\n user-select: none;\n touch-action: none;\n height: 20;\n flex: 1;\n"]))),qC(H3)(Vt||(Vt=ci(["\n all: unset;\n height: 20px;\n width: 20px;\n border-radius: 50%;\n display: block;\n background-color: ",";\n box-shadow: ",";\n"])),N2["--ll-color-primary"],N2["--ll-shadow-medium"]),qC(B3)(Ht||(Ht=ci(["\n height: 4px;\n border-radius: 2px;\n background-color: ",";\n position: relative;\n flex: 1;\n"])),N2["--ll-color-surface-variant1"]),qC(V3)(Ut||(Ut=ci(["\n height: 100%;\n position: absolute;\n background-color: ",";\n border-radius: 2px;\n"])),N2["--ll-color-primary"]);var U3=qC.div(Wt||(Wt=ci(["\n margin: ",";\n flex-shrink: 0;\n"])),(function(t){return function(t){var e=t.$vertical,n=t.$spacing,r=N2[n];return e?"".concat(r," 0 0 0"):"0 ".concat(r," 0 0")}(t)})),W3=function(t){var e=t.vertical,n=void 0!==e&&e,r=t.spacing;return Z2(U3,{$vertical:n,$spacing:void 0===r?"--ll-spacing-auto":r})},Y3={primary:{background:N2["--ll-color-primary"],onBackground:N2["--ll-color-on-primary"],hover:N2["--ll-color-primary-variant1"]},inverse:{background:"transparent",onBackground:N2["--ll-color-primary"],hover:"rgba(0,0,0,0.05)"},neutral:{background:"transparent",onBackground:N2["--ll-color-on-background-variant1"],hover:"rgba(0,0,0,0.05)"}},G3={small:24,medium:32,large:48};qC.button(Yt||(Yt=ci(["\n ",";\n"])),(function(t){var e=t.color,n=void 0===e?"primary":e,r=t.size,i=void 0===r?"medium":r;return WC(Gt||(Gt=ci(["\n border: none;\n background-color: ",";\n color: ",";\n border-radius: 50%;\n height: ","px;\n width: ","px;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 6px;\n\n &:hover {\n background-color: ",";\n }\n\n &:disabled {\n cursor: default;\n background-color: rgba(0, 0, 0, 0.1);\n color: ",";\n }\n "])),Y3[n].background,Y3[n].onBackground,G3[i],G3[i],Y3[n].hover,N2["--ll-color-on-background-variant1"])}));var q3=KC(Zt||(Zt=ci(["\n from {\n background-position: -800px 0;\n }\n\n to {\n background-position: 800px 0;\n }\n"])));qC.div(Xt||(Xt=ci(["\n border-radius: ",";\n animation: "," 2s linear infinite;\n background: linear-gradient(\n to right,\n /* NOTE: 99.9% of the time we should use colours from theme, since these are\n CSS vars that can be overriden. */\n "," 4%,\n "," 25%,\n "," 36%\n );\n background-size: 800px 100%;\n ","\n"])),N2["--ll-border-radius-medium"],q3,N2["--ll-color-surface-variant1"],N2["--ll-color-surface-variant2"],N2["--ll-color-surface-variant1"],(function(t){var e=t.height,n=t.width;return WC(qt||(qt=ci(["\n height: ",";\n width: ",";\n "])),e,n)})),qC.div(Kt||(Kt=ci(["\n flex: 1;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),qC.div($t||($t=ci(["\n display: flex;\n flex-direction: column;\n align-items: center;\n"])));var Z3=Object.defineProperty,X3=function(t,e,n){return function(t,e,n){e in t?Z3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},K3=function(t){return"object"==Fi(t)&&null!==t&&!Array.isArray(t)};var $3=Object.freeze(Object.defineProperty({__proto__:null,isObject:K3,mergeDeep:function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(!r.length)return e;var a=r.shift();return K3(e)&&K3(a)&&Object.keys(a).forEach((function(n){K3(a[n])?(e[n]||Object.assign(e,xi({},n,{})),t(e[n],a[n])):Object.assign(e,xi({},n,a[n]))})),t.apply(void 0,[e].concat(r))}},Symbol.toStringTag,{value:"Module"})),Q3={},J3={},t4={},e4={
|
|
74
|
-
/*!
|
|
75
|
-
* cookie
|
|
76
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
77
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
78
|
-
* MIT Licensed
|
|
79
|
-
*/
|
|
80
|
-
parse:function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},r=e||{},i=t.split(i4),a=r.decode||n4,o=0;o<i.length;o++){var s=i[o],u=s.indexOf("=");if(!(u<0)){var l=s.substr(0,u).trim(),c=s.substr(++u,s.length).trim();'"'==c[0]&&(c=c.slice(1,-1)),null==n[l]&&(n[l]=o4(c,a))}}return n},serialize:function(t,e,n){var r=n||{},i=r.encode||r4;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!a4.test(t))throw new TypeError("argument name is invalid");var a=i(e);if(a&&!a4.test(a))throw new TypeError("argument val is invalid");var o=t+"="+a;if(null!=r.maxAge){var s=r.maxAge-0;if(isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age="+Math.floor(s)}if(r.domain){if(!a4.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!a4.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return o}},n4=decodeURIComponent,r4=encodeURIComponent,i4=/; */,a4=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function o4(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(t4,"__esModule",{value:!0});var s4=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();t4.hasCookies=function(){var t=new f4;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),"1"===n}catch(r){return!1}};var u4=function(t){return t&&t.__esModule?t:{default:t}}(e4);function l4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var c4="lS_",f4=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l4(this,t),this.cookieOptions=Object.assign({path:"/"},e),c4=void 0===e.prefix?c4:e.prefix}return s4(t,[{key:"getItem",value:function(t){var e=u4.default.parse(document.cookie);return e&&e.hasOwnProperty(c4+t)?e[c4+t]:null}},{key:"setItem",value:function(t,e){return document.cookie=u4.default.serialize(c4+t,e,this.cookieOptions),e}},{key:"removeItem",value:function(t){var e=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=u4.default.serialize(c4+t,"",e),null}},{key:"clear",value:function(){var t=u4.default.parse(document.cookie);for(var e in t)0===e.indexOf(c4)&&this.removeItem(e.substr(c4.length));return null}}]),t}();t4.default=f4,Object.defineProperty(J3,"__esModule",{value:!0}),J3.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage",e=String(t).replace(/storage$/i,"").toLowerCase();if("local"===e)return p4("localStorage");if("session"===e)return p4("sessionStorage");if("cookie"===e)return(0,d4.hasCookies)();if("memory"===e)return!0;throw new Error("Storage method `"+t+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")};var d4=t4,h4="__test";function p4(t){try{var e=window[t];return e.setItem(h4,"1"),e.removeItem(h4),!0}catch(n){return!1}}var v4={};Object.defineProperty(v4,"__esModule",{value:!0});var g4=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var m4=function(){function t(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._data={}}return g4(t,[{key:"getItem",value:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}},{key:"setItem",value:function(t,e){return this._data[t]=String(e)}},{key:"removeItem",value:function(t){return delete this._data[t]}},{key:"clear",value:function(){return this._data={}}}]),t}();v4.default=m4,Object.defineProperty(Q3,"__esModule",{value:!0}),Q3.MemoryStorage=Q3.CookieStorage=Q3.isSupported=Q3.storage=void 0;var y4=x4(J3),b4=x4(t4),_4=x4(v4);function x4(t){return t&&t.__esModule?t:{default:t}}var w4=null;(0,y4.default)("localStorage")?Q3.storage=w4=window.localStorage:(0,y4.default)("sessionStorage")?Q3.storage=w4=window.sessionStorage:(0,y4.default)("cookieStorage")?Q3.storage=w4=new b4.default:Q3.storage=w4=new _4.default;var k4=Q3.default=w4;Q3.storage=w4,Q3.isSupported=y4.default,Q3.CookieStorage=b4.default,Q3.MemoryStorage=_4.default;var S4=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";Ai(this,t),X3(this,"group"),X3(this,"localStorage"),this.group=e,this.localStorage=k4}return Ci(t,[{key:"setGroup",value:function(t){this.group=t}},{key:"getGroup",value:function(){return this.group}},{key:"getItem",value:function(t){return this.localStorage.getItem("".concat(this.group,".").concat(t))}},{key:"setItem",value:function(t,e){this.localStorage.setItem("".concat(this.group,".").concat(t),e)}},{key:"removeItem",value:function(t){this.localStorage.removeItem("".concat(this.group,".").concat(t))}}]),t}();new S4;var E4=function(){function t(){Ai(this,t),X3(this,"storageLocation","suggestion_history"),X3(this,"storage"),X3(this,"history",[]),this.storage=new S4("commute");var e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}return Ci(t,[{key:"push",value:function(t){this.history=this.removeDuplicateEntries(t),this.history.unshift(t),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}},{key:"hasSuggestionHistory",value:function(){return this.history.length>0}},{key:"getSuggestionHistory",value:function(){return this.history}},{key:"removeDuplicateEntries",value:function(t){return this.history.filter((function(e){return e.locationId!==t.locationId}))}}]),t}();
|
|
81
|
-
/*!
|
|
82
|
-
* @kurkle/color v0.3.2
|
|
83
|
-
* https://github.com/kurkle/color#readme
|
|
84
|
-
* (c) 2023 Jukka Kurkela
|
|
85
|
-
* Released under the MIT License
|
|
86
|
-
*/
|
|
87
|
-
function C4(t){return t+.5|0}new E4;var A4=function(t,e,n){return Math.max(Math.min(t,n),e)};function T4(t){return A4(C4(2.55*t),0,255)}function M4(t){return A4(C4(255*t),0,255)}function O4(t){return A4(C4(t/2.55)/100,0,1)}function P4(t){return A4(C4(100*t),0,100)}var R4={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},D4=mi("0123456789ABCDEF"),L4=function(t){return D4[15&t]},I4=function(t){return D4[(240&t)>>4]+D4[15&t]},N4=function(t){return(240&t)>>4==(15&t)};function F4(t){var e=function(t){return N4(t.r)&&N4(t.g)&&N4(t.b)&&N4(t.a)}(t)?L4:I4;return t?"#"+e(t.r)+e(t.g)+e(t.b)+function(t,e){return t<255?e(t):""}(t.a,e):void 0}var z4=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function j4(t,e,n){var r=e*Math.min(n,1-n),i=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+t/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function B4(t,e,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+t/60)%6;return n-n*e*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function V4(t,e,n){var r,i=j4(t,1,.5);for(e+n>1&&(e*=r=1/(e+n),n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function H4(t){var e,n,r,i=t.r/255,a=t.g/255,o=t.b/255,s=Math.max(i,a,o),u=Math.min(i,a,o),l=(s+u)/2;return s!==u&&(r=s-u,n=l>.5?r/(2-s-u):r/(s+u),e=function(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}(i,a,o,r,s),e=60*e+.5),[0|e,n||0,l]}function U4(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(M4)}function W4(t,e,n){return U4(j4,t,e,n)}function Y4(t){return(t%360+360)%360}function G4(t){var e,n=z4.exec(t),r=255;if(n){n[5]!==e&&(r=n[6]?T4(+n[5]):M4(+n[5]));var i=Y4(+n[2]),a=+n[3]/100,o=+n[4]/100;return e="hwb"===n[1]?function(t,e,n){return U4(V4,t,e,n)}(i,a,o):"hsv"===n[1]?function(t,e,n){return U4(B4,t,e,n)}(i,a,o):W4(i,a,o),{r:e[0],g:e[1],b:e[2],a:r}}}var q4,Z4={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"},X4={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 K4(t){q4||(q4=function(){var t,e,n,r,i,a={},o=Object.keys(X4),s=Object.keys(Z4);for(t=0;t<o.length;t++){for(r=i=o[t],e=0;e<s.length;e++)n=s[e],i=i.replace(n,Z4[n]);n=parseInt(X4[r],16),a[i]=[n>>16&255,n>>8&255,255&n]}return a}(),q4.transparent=[0,0,0,0]);var e=q4[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}var $4=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var Q4=function(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055},J4=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)};function t6(t,e,n){if(t){var r=H4(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=W4(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function e6(t,e){return t&&Object.assign(e||{},t)}function n6(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=M4(t[3]))):(e=e6(t,{r:0,g:0,b:0,a:1})).a=M4(e.a),e}function r6(t){return"r"===t.charAt(0)?function(t){var e,n,r,i=$4.exec(t),a=255;if(i){if(i[7]!==e){var o=+i[7];a=i[8]?T4(o):A4(255*o,0,255)}return e=+i[1],n=+i[3],r=+i[5],{r:e=255&(i[2]?T4(e):A4(e,0,255)),g:n=255&(i[4]?T4(n):A4(n,0,255)),b:r=255&(i[6]?T4(r):A4(r,0,255)),a:a}}}(t):G4(t)}var i6=function(){function t(e){if(Ai(this,t),e instanceof t)return e;var n,r=Fi(e);"object"===r?n=n6(e):"string"===r&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*R4[t[1]],g:255&17*R4[t[2]],b:255&17*R4[t[3]],a:5===n?17*R4[t[4]]:255}:(7===n||9===n)&&(e={r:R4[t[1]]<<4|R4[t[2]],g:R4[t[3]]<<4|R4[t[4]],b:R4[t[5]]<<4|R4[t[6]],a:9===n?R4[t[7]]<<4|R4[t[8]]:255})),e}(e)||K4(e)||r6(e)),this._rgb=n,this._valid=!!n}return Ci(t,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var t=e6(this._rgb);return t&&(t.a=O4(t.a)),t},set:function(t){this._rgb=n6(t)}},{key:"rgbString",value:function(){return this._valid?function(t){return t&&(t.a<255?"rgba(".concat(t.r,", ").concat(t.g,", ").concat(t.b,", ").concat(O4(t.a),")"):"rgb(".concat(t.r,", ").concat(t.g,", ").concat(t.b,")"))}(this._rgb):void 0}},{key:"hexString",value:function(){return this._valid?F4(this._rgb):void 0}},{key:"hslString",value:function(){return this._valid?function(t){if(t){var e=H4(t),n=e[0],r=P4(e[1]),i=P4(e[2]);return t.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(O4(t.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):void 0}},{key:"mix",value:function(t,e){if(t){var n,r=this.rgb,i=t.rgb,a=e===n?.5:e,o=2*a-1,s=r.a-i.a,u=((o*s==-1?o:(o+s)/(1+o*s))+1)/2;n=1-u,r.r=255&u*r.r+n*i.r+.5,r.g=255&u*r.g+n*i.g+.5,r.b=255&u*r.b+n*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}},{key:"interpolate",value:function(t,e){return t&&(this._rgb=function(t,e,n){var r=J4(O4(t.r)),i=J4(O4(t.g)),a=J4(O4(t.b));return{r:M4(Q4(r+n*(J4(O4(e.r))-r))),g:M4(Q4(i+n*(J4(O4(e.g))-i))),b:M4(Q4(a+n*(J4(O4(e.b))-a))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}},{key:"clone",value:function(){return new t(this.rgb)}},{key:"alpha",value:function(t){return this._rgb.a=M4(t),this}},{key:"clearer",value:function(t){return this._rgb.a*=1-t,this}},{key:"greyscale",value:function(){var t=this._rgb,e=C4(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}},{key:"opaquer",value:function(t){return this._rgb.a*=1+t,this}},{key:"negate",value:function(){var t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}},{key:"lighten",value:function(t){return t6(this._rgb,2,t),this}},{key:"darken",value:function(t){return t6(this._rgb,2,-t),this}},{key:"saturate",value:function(t){return t6(this._rgb,1,t),this}},{key:"desaturate",value:function(t){return t6(this._rgb,1,-t),this}},{key:"rotate",value:function(t){return function(t,e){var n=H4(t);n[0]=Y4(n[0]+e),n=W4(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}]),t}();
|
|
88
|
-
/*!
|
|
89
|
-
* Chart.js v4.2.0
|
|
90
|
-
* https://www.chartjs.org
|
|
91
|
-
* (c) 2023 Chart.js Contributors
|
|
92
|
-
* Released under the MIT License
|
|
93
|
-
*/function a6(){}var o6=function(){var t=0;return function(){return t++}}();function s6(t){return null===t||Fi(t)>"u"}function u6(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function l6(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function c6(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function f6(t,e){return c6(t)?t:e}function d6(t,e){return Fi(t)>"u"?e:t}var h6=function(t,e){return"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t};function p6(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function v6(t,e,n,r){var i,a,o;if(u6(t))if(a=t.length,r)for(i=a-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<a;i++)e.call(n,t[i],i);else if(l6(t))for(a=(o=Object.keys(t)).length,i=0;i<a;i++)e.call(n,t[o[i]],o[i])}function g6(t,e){var n,r,i,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],a=e[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function m6(t){if(u6(t))return t.map(m6);if(l6(t)){for(var e=Object.create(null),n=Object.keys(t),r=n.length,i=0;i<r;++i)e[n[i]]=m6(t[n[i]]);return e}return t}function y6(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function b6(t,e,n,r){if(y6(t)){var i=e[t],a=n[t];l6(i)&&l6(a)?_6(i,a,r):e[t]=m6(a)}}function _6(t,e,n){var r=u6(e)?e:[e],i=r.length;if(!l6(t))return t;for(var a,o=(n=n||{}).merger||b6,s=0;s<i;++s)if(l6(a=r[s]))for(var u=Object.keys(a),l=0,c=u.length;l<c;++l)o(u[l],t,a,n);return t}function x6(t,e){return _6(t,e,{merger:w6})}function w6(t,e,n){if(y6(t)){var r=e[t],i=n[t];l6(r)&&l6(i)?x6(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=m6(i))}}var k6={"":function(t){return t},x:function(t){return t.x},y:function(t){return t.y}};function S6(t){var e=function(t){var e,n=[],r="",i=zi(t.split("."));try{for(i.s();!(e=i.n()).done;)(r+=e.value).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="")}catch(a){i.e(a)}finally{i.f()}return n}(t);return function(t){var n,r=zi(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(""===i)break;t=t&&t[i]}}catch(a){r.e(a)}finally{r.f()}return t}}function E6(t,e){return(k6[e]||(k6[e]=S6(e)))(t)}function C6(t){return t.charAt(0).toUpperCase()+t.slice(1)}var A6=function(t){return Fi(t)<"u"},T6=function(t){return"function"==typeof t},M6=function(t,e){if(t.size!==e.size)return!1;var n,r=zi(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!e.has(i))return!1}}catch(a){r.e(a)}finally{r.f()}return!0};var O6=Math.PI,P6=2*O6,R6=Number.POSITIVE_INFINITY,D6=O6/180,L6=O6/2,I6=O6/4,N6=2*O6/3,F6=Math.log10,z6=Math.sign;function j6(t,e,n){return Math.abs(t-e)<n}function B6(t){var e=Math.round(t);t=j6(t,e,t/1e3)?e:t;var n=Math.pow(10,Math.floor(F6(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function V6(t){return!isNaN(parseFloat(t))&&isFinite(t)}function H6(t,e,n){var r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r][n],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function U6(t){return t*(O6/180)}function W6(t){return t*(180/O6)}function Y6(t){if(c6(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}}function G6(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*O6&&(a+=P6),{angle:a,distance:i}}function q6(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Z6(t){return(t%P6+P6)%P6}function X6(t,e,n,r){var i=Z6(t),a=Z6(e),o=Z6(n),s=Z6(a-i),u=Z6(o-i),l=Z6(i-a),c=Z6(i-o);return i===a||i===o||r&&a===o||s>u&&l<c}function K6(t,e,n){return Math.max(e,Math.min(n,t))}function $6(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Q6(t,e,n){n=n||function(n){return t[n]<e};for(var r,i=t.length-1,a=0;i-a>1;)n(r=a+i>>1)?a=r:i=r;return{lo:a,hi:i}}var J6=function(t,e,n,r){return Q6(t,n,r?function(r){var i=t[r][e];return i<n||i===n&&t[r+1][e]===n}:function(r){return t[r][e]<n})},t8=function(t,e,n){return Q6(t,n,(function(r){return t[r][e]>=n}))};var e8=["push","pop","shift","splice","unshift"];function n8(t,e){var n=t._chartjs;if(n){var r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),!(r.length>0)&&(e8.forEach((function(e){delete t[e]})),delete t._chartjs)}}function r8(t){var e,n,r=new Set;for(e=0,n=t.length;e<n;++e)r.add(t[e]);return r.size===n?t:Array.from(r)}var i8=("undefined"==typeof window?"undefined":Fi(window))>"u"?function(t){return t()}:window.requestAnimationFrame;function a8(t,e){var n=[],r=!1;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];n=a,r||(r=!0,i8.call(window,(function(){r=!1,t.apply(e,n)})))}}var o8=function(t){return"start"===t?"left":"end"===t?"right":"center"},s8=function(t,e,n){return"start"===t?e:"end"===t?n:(e+n)/2},u8=function(t){return 0===t||1===t},l8=function(t,e,n){return-Math.pow(2,10*(t-=1))*Math.sin((t-e)*P6/n)},c8=function(t,e,n){return Math.pow(2,-10*t)*Math.sin((t-e)*P6/n)+1},f8={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*L6)},easeOutSine:function(t){return Math.sin(t*L6)},easeInOutSine:function(t){return-.5*(Math.cos(O6*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return u8(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1)))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){return u8(t)?t:l8(t,.075,.3)},easeOutElastic:function(t){return u8(t)?t:c8(t,.075,.3)},easeInOutElastic:function(t){return u8(t)?t:t<.5?.5*l8(2*t,.1125,.45):.5+.5*c8(2*t-1,.1125,.45)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-f8.easeOutBounce(1-t)},easeOutBounce:function(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:function(t){return t<.5?.5*f8.easeInBounce(2*t):.5*f8.easeOutBounce(2*t-1)+.5}};function d8(t){if(t&&"object"==Fi(t)){var e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function h8(t){return d8(t)?t:new i6(t)}function p8(t){return d8(t)?t:new i6(t).saturate(.5).darken(.1).hexString()}var v8=["x","y","borderWidth","radius","tension"],g8=["color","borderColor","backgroundColor"];var m8=new Map;function y8(t,e,n){return function(t,e){e=e||{};var n=t+JSON.stringify(e),r=m8.get(n);return r||(r=new Intl.NumberFormat(t,e),m8.set(n,r)),r}(e,n).format(t)}var b8={values:function(t){return u6(t)?t:""+t},numeric:function(t,e,n){if(0===t)return"0";var r,i=this.chart.options.locale,a=t;if(n.length>1){var o=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(o<1e-4||o>1e15)&&(r="scientific"),a=function(t,e){var 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}(t,n)}var s=F6(Math.abs(a)),u=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(l,this.options.ticks.format),y8(t,i,l)},logarithmic:function(t,e,n){if(0===t)return"0";var r=n[e].significand||t/Math.pow(10,Math.floor(F6(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?b8.numeric.call(this,t,e,n):""}};var _8={formatters:b8};var x8=Object.create(null),w8=Object.create(null);function k8(t,e){if(!e)return t;for(var n=e.split("."),r=0,i=n.length;r<i;++r){var a=n[r];t=t[a]||(t[a]=Object.create(null))}return t}function S8(t,e,n){return"string"==typeof e?_6(k8(t,e),n):_6(k8(t,""),e)}var E8=function(){function t(e,n){Ai(this,t),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=function(t){return t.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=function(t,e){return p8(e.backgroundColor)},this.hoverBorderColor=function(t,e){return p8(e.borderColor)},this.hoverColor=function(t,e){return p8(e.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)}return Ci(t,[{key:"set",value:function(t,e){return S8(this,t,e)}},{key:"get",value:function(t){return k8(this,t)}},{key:"describe",value:function(t,e){return S8(w8,t,e)}},{key:"override",value:function(t,e){return S8(x8,t,e)}},{key:"route",value:function(t,e,n,r){var i,a=k8(this,t),o=k8(this,n),s="_"+e;Object.defineProperties(a,(xi(i={},s,{value:a[e],writable:!0}),xi(i,e,{enumerable:!0,get:function(){var t=this[s],e=o[r];return l6(t)?Object.assign({},e,t):d6(t,e)},set:function(t){this[s]=t}}),i))}},{key:"apply",value:function(t){var e=this;t.forEach((function(t){return t(e)}))}}]),t}(),C8=new E8({_scriptable:function(t){return!t.startsWith("on")},_indexable:function(t){return"events"!==t},hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(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:function(t){return"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}}),t.set("animations",{colors:{type:"color",properties:g8},numbers:{type:"number",properties:v8}}),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:function(t){return 0|t}}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(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:function(t,e){return e.lineWidth},tickColor:function(t,e){return e.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:_8.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:function(t){return!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t},_indexable:function(t){return"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:function(t){return"backdropPadding"!==t&&"callback"!==t},_indexable:function(t){return"backdropPadding"!==t}})}]);function A8(t,e,n,r,i){var a=e[i];return a||(a=e[i]=t.measureText(i).width,n.push(i)),a>r&&(r=a),r}function T8(t,e,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},a=r.garbageCollect=[],r.font=e),t.save(),t.font=e;var o,s,u,l,c,f=0,d=n.length;for(o=0;o<d;o++)if(null!=(l=n[o])&&!0!==u6(l))f=A8(t,i,a,f,l);else if(u6(l))for(s=0,u=l.length;s<u;s++)null!=(c=l[s])&&!u6(c)&&(f=A8(t,i,a,f,c));t.restore();var h=a.length/2;if(h>n.length){for(o=0;o<h;o++)delete i[a[o]];a.splice(0,h)}return f}function M8(t,e,n){var r=t.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function O8(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function P8(t,e,n,r){R8(t,e,n,r,null)}function R8(t,e,n,r,i){var a,o,s,u,l,c,f,d,h=e.pointStyle,p=e.rotation,v=e.radius,g=(p||0)*D6;if(h&&"object"==Fi(h)&&("[object HTMLImageElement]"===(a=h.toString())||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(n,r),t.rotate(g),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(v)||v<=0)){switch(t.beginPath(),h){default:i?t.ellipse(n,r,i/2,v,0,0,P6):t.arc(n,r,v,0,P6),t.closePath();break;case"triangle":c=i?i/2:v,t.moveTo(n+Math.sin(g)*c,r-Math.cos(g)*v),g+=N6,t.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*v),g+=N6,t.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*v),t.closePath();break;case"rectRounded":u=v-(l=.516*v),o=Math.cos(g+I6)*u,f=Math.cos(g+I6)*(i?i/2-l:u),s=Math.sin(g+I6)*u,d=Math.sin(g+I6)*(i?i/2-l:u),t.arc(n-f,r-s,l,g-O6,g-L6),t.arc(n+d,r-o,l,g-L6,g),t.arc(n+f,r+s,l,g,g+L6),t.arc(n-d,r+o,l,g+L6,g+O6),t.closePath();break;case"rect":if(!p){u=Math.SQRT1_2*v,c=i?i/2:u,t.rect(n-c,r-u,2*c,2*u);break}g+=I6;case"rectRot":f=Math.cos(g)*(i?i/2:v),o=Math.cos(g)*v,s=Math.sin(g)*v,d=Math.sin(g)*(i?i/2:v),t.moveTo(n-f,r-s),t.lineTo(n+d,r-o),t.lineTo(n+f,r+s),t.lineTo(n-d,r+o),t.closePath();break;case"crossRot":g+=I6;case"cross":f=Math.cos(g)*(i?i/2:v),o=Math.cos(g)*v,s=Math.sin(g)*v,d=Math.sin(g)*(i?i/2:v),t.moveTo(n-f,r-s),t.lineTo(n+f,r+s),t.moveTo(n+d,r-o),t.lineTo(n-d,r+o);break;case"star":f=Math.cos(g)*(i?i/2:v),o=Math.cos(g)*v,s=Math.sin(g)*v,d=Math.sin(g)*(i?i/2:v),t.moveTo(n-f,r-s),t.lineTo(n+f,r+s),t.moveTo(n+d,r-o),t.lineTo(n-d,r+o),g+=I6,f=Math.cos(g)*(i?i/2:v),o=Math.cos(g)*v,s=Math.sin(g)*v,d=Math.sin(g)*(i?i/2:v),t.moveTo(n-f,r-s),t.lineTo(n+f,r+s),t.moveTo(n+d,r-o),t.lineTo(n-d,r+o);break;case"line":o=i?i/2:Math.cos(g)*v,s=Math.sin(g)*v,t.moveTo(n-o,r-s),t.lineTo(n+o,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(g)*(i?i/2:v),r+Math.sin(g)*v);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function D8(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 L8(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function I8(t){t.restore()}function N8(t,e,n,r,i){var a,o,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=u6(e)?e:[e],l=s.strokeWidth>0&&""!==s.strokeColor;for(t.save(),t.font=i.string,F8(t,s),a=0;a<u.length;++a)o=u[a],s.backdrop&&j8(t,s.backdrop),l&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),s6(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(o,n,r,s.maxWidth)),t.fillText(o,n,r,s.maxWidth),z8(t,n,r,o,s),r+=i.lineHeight;t.restore()}function F8(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),s6(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 z8(t,e,n,r,i){if(i.strikethrough||i.underline){var a=t.measureText(r),o=e-a.actualBoundingBoxLeft,s=e+a.actualBoundingBoxRight,u=n-a.actualBoundingBoxAscent,l=n+a.actualBoundingBoxDescent,c=i.strikethrough?(u+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(o,c),t.lineTo(s,c),t.stroke()}}function j8(t,e){var n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function B8(t,e){var n=e.x,r=e.y,i=e.w,a=e.h,o=e.radius;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,-L6,O6,!0),t.lineTo(n,r+a-o.bottomLeft),t.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,O6,L6,!0),t.lineTo(n+i-o.bottomRight,r+a),t.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,L6,0,!0),t.lineTo(n+i,r+o.topRight),t.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-L6,!0),t.lineTo(n+o.topLeft,r)}var V8=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,H8=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function U8(t,e){var n=(""+t).match(V8);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}var W8=function(t){return+t||0};function Y8(t,e){var n,r={},i=l6(e),a=i?Object.keys(e):e,o=l6(t)?i?function(n){return d6(t[n],t[e[n]])}:function(e){return t[e]}:function(){return t},s=zi(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;r[u]=W8(o(u))}}catch(l){s.e(l)}finally{s.f()}return r}function G8(t){return Y8(t,{top:"y",right:"x",bottom:"y",left:"x"})}function q8(t){return Y8(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Z8(t){var e=G8(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function X8(t,e){t=t||{},e=e||C8.font;var n=d6(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));var r=d6(t.style,e.style);r&&!(""+r).match(H8)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);var i={family:d6(t.family,e.family),lineHeight:U8(d6(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:d6(t.weight,e.weight),string:""};return i.string=function(t){return!t||s6(t.size)||s6(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i}function K8(t,e,n,r){var i,a,o,s=!0;for(i=0,a=t.length;i<a;++i)if(void 0!==(o=t[i])&&(void 0!==e&&"function"==typeof o&&(o=o(e),s=!1),void 0!==n&&u6(o)&&(o=o[n%o.length],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}function $8(t,e){return Object.assign(Object.create(t),e)}function Q8(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return t[0]};A6(i)||(i=c9("_fallback",t));var o=(xi(e={},Symbol.toStringTag,"Object"),xi(e,"_cacheable",!0),xi(e,"_scopes",t),xi(e,"_rootScopes",r),xi(e,"_fallback",i),xi(e,"_getTarget",a),xi(e,"override",(function(e){return Q8([e].concat(mi(t)),n,r,i)})),e);return new Proxy(o,{deleteProperty:function(e,n){return delete e[n],delete e._keys,delete t[0][n],!0},get:function(e,r){return r9(e,r,(function(){return l9(r,n,t,e)}))},getOwnPropertyDescriptor:function(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf:function(){return Reflect.getPrototypeOf(t[0])},has:function(t,e){return f9(t).includes(e)},ownKeys:function(t){return f9(t)},set:function(t,e,n){var r=t._storage||(t._storage=a());return t[e]=r[e]=n,delete t._keys,!0}})}function J8(t,e,n,r){var i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:t9(t,r),setContext:function(e){return J8(t,e,n,r)},override:function(i){return J8(t.override(i),e,n,r)}};return new Proxy(i,{deleteProperty:function(e,n){return delete e[n],delete t[n],!0},get:function(t,e,n){return r9(t,e,(function(){return function(t,e,n){var r=t._proxy,i=t._context,a=t._subProxy,o=t._descriptors,s=r[e];return T6(s)&&o.isScriptable(e)&&(s=function(t,e,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._stack;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(a,o||r),s.delete(t),n9(t,e)&&(e=s9(i._scopes,i,t,e)),e}(e,s,t,n)),u6(s)&&s.length&&(s=function(t,e,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._descriptors;if(A6(a.index)&&r(t))e=e[a.index%e.length];else if(l6(e[0])){var u=e,l=i._scopes.filter((function(t){return t!==u}));e=[];var c,f=zi(u);try{for(f.s();!(c=f.n()).done;){var d=s9(l,i,t,c.value);e.push(J8(d,a,o&&o[t],s))}}catch(h){f.e(h)}finally{f.f()}}return e}(e,s,t,o.isIndexable)),n9(e,s)&&(s=J8(s,i,a&&a[e],o)),s}(t,e,n)}))},getOwnPropertyDescriptor:function(e,n){return e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(t)},has:function(e,n){return Reflect.has(t,n)},ownKeys:function(){return Reflect.ownKeys(t)},set:function(e,n,r){return t[n]=r,delete e[n],!0}})}function t9(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=t._scriptable,r=void 0===n?e.scriptable:n,i=t._indexable,a=void 0===i?e.indexable:i,o=t._allKeys,s=void 0===o?e.allKeys:o;return{allKeys:s,scriptable:r,indexable:a,isScriptable:T6(r)?r:function(){return r},isIndexable:T6(a)?a:function(){return a}}}var e9=function(t,e){return t?t+C6(e):e},n9=function(t,e){return l6(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object)};function r9(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];var r=n();return t[e]=r,r}function i9(t,e,n){return T6(t)?t(e,n):t}var a9=function(t,e){return!0===t?e:"string"==typeof t?E6(e,t):void 0};function o9(t,e,n,r,i){var a,o=zi(e);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=a9(n,s);if(u){t.add(u);var l=i9(u._fallback,n,i);if(A6(l)&&l!==n&&l!==r)return l}else if(!1===u&&A6(r)&&n!==r)return null}}catch(c){o.e(c)}finally{o.f()}return!1}function s9(t,e,n,r){var i=e._rootScopes,a=i9(e._fallback,n,r),o=[].concat(mi(t),mi(i)),s=new Set;s.add(r);var u=u9(s,o,n,a||n,r);return!(null===u||A6(a)&&a!==n&&(u=u9(s,o,a,u,r),null===u))&&Q8(Array.from(s),[""],i,a,(function(){return function(t,e,n){var r=t._getTarget();e in r||(r[e]={});var i=r[e];return u6(i)&&l6(n)?n:i||{}}(e,n,r)}))}function u9(t,e,n,r,i){for(;n;)n=o9(t,e,n,r,i);return n}function l9(t,e,n,r){var i,a,o=zi(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(i=c9(e9(s,t),n),A6(i))return n9(t,i)?s9(n,r,t,i):i}}catch(u){o.e(u)}finally{o.f()}}function c9(t,e){var n,r=zi(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i){var a=i[t];if(A6(a))return a}}}catch(o){r.e(o)}finally{r.f()}}function f9(t){var e=t._keys;return e||(e=t._keys=function(t){var e,n=new Set,r=zi(t);try{for(r.s();!(e=r.n()).done;){var i,a=e.value,o=zi(Object.keys(a).filter((function(t){return!t.startsWith("_")})));try{for(o.s();!(i=o.n()).done;){var s=i.value;n.add(s)}}catch(u){o.e(u)}finally{o.f()}}}catch(u){r.e(u)}finally{r.f()}return Array.from(n)}(t._scopes)),e}function d9(){return("undefined"==typeof window?"undefined":Fi(window))<"u"&&("undefined"==typeof document?"undefined":Fi(document))<"u"}function h9(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function p9(t,e,n){var r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}var v9=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};var g9=["top","right","bottom","left"];function m9(t,e,n){var r={};n=n?"-"+n:"";for(var i=0;i<4;i++){var a=g9[i];r[a]=parseFloat(t[e+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function y9(t,e){if("native"in t)return t;var n=e.canvas,r=e.currentDevicePixelRatio,i=v9(n),a="border-box"===i.boxSizing,o=m9(i,"padding"),s=m9(i,"border","width"),u=function(t,e){var n,r,i=t.touches,a=i&&i.length?i[0]:t,o=a.offsetX,s=a.offsetY,u=!1;if(function(t,e,n){return(t>0||e>0)&&(!n||!n.shadowRoot)}(o,s,t.target))n=o,r=s;else{var l=e.getBoundingClientRect();n=a.clientX-l.left,r=a.clientY-l.top,u=!0}return{x:n,y:r,box:u}}(t,n),l=u.x,c=u.y,f=u.box,d=o.left+(f&&s.left),h=o.top+(f&&s.top),p=e.width,v=e.height;return a&&(p-=o.width+s.width,v-=o.height+s.height),{x:Math.round((l-d)/p*n.width/r),y:Math.round((c-h)/v*n.height/r)}}var b9=function(t){return Math.round(10*t)/10};function _9(t,e,n,r){var i=v9(t),a=m9(i,"margin"),o=p9(i.maxWidth,t,"clientWidth")||R6,s=p9(i.maxHeight,t,"clientHeight")||R6,u=function(t,e,n){var r,i;if(void 0===e||void 0===n){var a=h9(t);if(a){var o=a.getBoundingClientRect(),s=v9(a),u=m9(s,"border","width"),l=m9(s,"padding");e=o.width-l.width-u.width,n=o.height-l.height-u.height,r=p9(s.maxWidth,a,"clientWidth"),i=p9(s.maxHeight,a,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||R6,maxHeight:i||R6}}(t,e,n),l=u.width,c=u.height;if("content-box"===i.boxSizing){var f=m9(i,"border","width"),d=m9(i,"padding");l-=d.width+f.width,c-=d.height+f.height}return l=Math.max(0,l-a.width),c=Math.max(0,r?l/r:c-a.height),l=b9(Math.min(l,o,u.maxWidth)),c=b9(Math.min(c,s,u.maxHeight)),l&&!c&&(c=b9(l/2)),(void 0!==e||void 0!==n)&&r&&u.height&&c>u.height&&(c=u.height,l=b9(Math.floor(c*r))),{width:l,height:c}}function x9(t,e,n){var r=e||1,i=Math.floor(t.height*r),a=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);var o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height="".concat(t.height,"px"),o.style.width="".concat(t.width,"px")),(t.currentDevicePixelRatio!==r||o.height!==i||o.width!==a)&&(t.currentDevicePixelRatio=r,o.height=i,o.width=a,t.ctx.setTransform(r,0,0,r,0,0),!0)}var w9=function(){var t=!1;try{var e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(n){}return t}();function k9(t,e){var n=function(t,e){return v9(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function S9(t,e,n){return t?function(t,e){return{x:function(n){return t+t+e-n},setWidth:function(t){e=t},textAlign:function(t){return"center"===t?t:"right"===t?"left":"right"},xPlus:function(t,e){return t-e},leftForLtr:function(t,e){return t-e}}}(e,n):{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}}function E9(t,e){var n,r;("ltr"===e||"rtl"===e)&&(r=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function C9(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}
|
|
94
|
-
/*!
|
|
95
|
-
* Chart.js v4.2.0
|
|
96
|
-
* https://www.chartjs.org
|
|
97
|
-
* (c) 2023 Chart.js Contributors
|
|
98
|
-
* Released under the MIT License
|
|
99
|
-
*/var A9=function(){function t(){Ai(this,t),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}return Ci(t,[{key:"_notify",value:function(t,e,n,r){var i=e.listeners[r],a=e.duration;i.forEach((function(r){return r({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(n-e.start,a)})}))}},{key:"_refresh",value:function(){var t=this;this._request||(this._running=!0,this._request=i8.call(window,(function(){t._update(),t._request=null,t._running&&t._refresh()})))}},{key:"_update",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=0;this._charts.forEach((function(r,i){if(r.running&&r.items.length){for(var a,o=r.items,s=o.length-1,u=!1;s>=0;--s)(a=o[s])._active?(a._total>r.duration&&(r.duration=a._total),a.tick(e),u=!0):(o[s]=o[o.length-1],o.pop());u&&(i.draw(),t._notify(i,r,e,"progress")),o.length||(r.running=!1,t._notify(i,r,e,"complete"),r.initial=!1),n+=o.length}})),this._lastDate=e,0===n&&(this._running=!1)}},{key:"_getAnims",value:function(t){var e=this._charts,n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}},{key:"listen",value:function(t,e,n){this._getAnims(t).listeners[e].push(n)}},{key:"add",value:function(t,e){var n;!e||!e.length||(n=this._getAnims(t).items).push.apply(n,mi(e))}},{key:"has",value:function(t){return this._getAnims(t).items.length>0}},{key:"start",value:function(t){var e=this._charts.get(t);!e||(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((function(t,e){return Math.max(t,e._duration)}),0),this._refresh())}},{key:"running",value:function(t){if(!this._running)return!1;var e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}},{key:"stop",value:function(t){var e=this._charts.get(t);if(e&&e.items.length){for(var n=e.items,r=n.length-1;r>=0;--r)n[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}}},{key:"remove",value:function(t){return this._charts.delete(t)}}]),t}(),T9=new A9,M9="transparent",O9={boolean:function(t,e,n){return n>.5?e:t},color:function(t,e,n){var r=h8(t||M9),i=r.valid&&h8(e||M9);return i&&i.valid?i.mix(r,n).hexString():e},number:function(t,e,n){return t+(e-t)*n}},P9=function(){function t(e,n,r,i){Ai(this,t);var a=n[r];i=K8([e.to,i,a,e.from]);var o=K8([e.from,a,i]);this._active=!0,this._fn=e.fn||O9[e.type||Fi(o)],this._easing=f8[e.easing]||f8.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=o,this._to=i,this._promises=void 0}return Ci(t,[{key:"active",value:function(){return this._active}},{key:"update",value:function(t,e,n){if(this._active){this._notify(!1);var r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=K8([t.to,e,r,t.from]),this._from=K8([t.from,r,e])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(t){var e,n=t-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;if(this._active=a!==s&&(o||n<r),!this._active)return this._target[i]=s,void this._notify(!0);n<0?this._target[i]=a:(e=n/r%2,e=o&&e>1?2-e:e,e=this._easing(Math.min(1,Math.max(0,e))),this._target[i]=this._fn(a,s,e))}},{key:"wait",value:function(){var t=this._promises||(this._promises=[]);return new Promise((function(e,n){t.push({res:e,rej:n})}))}},{key:"_notify",value:function(t){for(var e=t?"res":"rej",n=this._promises||[],r=0;r<n.length;r++)n[r][e]()}}]),t}(),R9=function(){function t(e,n){Ai(this,t),this._chart=e,this._properties=new Map,this.configure(n)}return Ci(t,[{key:"configure",value:function(t){if(l6(t)){var e=Object.keys(C8.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((function(r){var i=t[r];if(l6(i)){var a,o={},s=zi(e);try{for(s.s();!(a=s.n()).done;){var u=a.value;o[u]=i[u]}}catch(l){s.e(l)}finally{s.f()}(u6(i.properties)&&i.properties||[r]).forEach((function(t){(t===r||!n.has(t))&&n.set(t,o)}))}}))}}},{key:"_animateOptions",value:function(t,e){var n=e.options,r=function(t,e){if(!e)return;var n=t.options;if(!n)return void(t.options=e);return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}(t,n);if(!r)return[];var i=this._createAnimations(r,n);return n.$shared&&function(t,e){for(var n=[],r=Object.keys(e),i=0;i<r.length;i++){var a=t[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}(t.options.$animations,n).then((function(){t.options=n}),(function(){})),i}},{key:"_createAnimations",value:function(t,e){var n,r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(e),s=Date.now();for(n=o.length-1;n>=0;--n){var u=o[n];if("$"!==u.charAt(0))if("options"!==u){var l=e[u],c=a[u],f=r.get(u);if(c){if(f&&c.active()){c.update(f,l,s);continue}c.cancel()}f&&f.duration?(a[u]=c=new P9(f,t,u,l),i.push(c)):t[u]=l}else i.push.apply(i,mi(this._animateOptions(t,e)))}return i}},{key:"update",value:function(t,e){if(0!==this._properties.size){var n=this._createAnimations(t,e);return n.length?(T9.add(this._chart,n),!0):void 0}Object.assign(t,e)}}]),t}();function D9(t,e){var n=t&&t.options||{},r=n.reverse,i=void 0===n.min?e:0,a=void 0===n.max?e:0;return{start:r?a:i,end:r?i:a}}function L9(t,e){var n,r,i=[],a=t._getSortedDatasetMetas(e);for(n=0,r=a.length;n<r;++n)i.push(a[n].index);return i}function I9(t,e,n){var r,i,a,o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=t.keys,l="single"===s.mode;if(null!==e){for(r=0,i=u.length;r<i;++r){if((a=+u[r])===n){if(s.all)continue;break}c6(o=t.values[a])&&(l||0===e||z6(e)===z6(o))&&(e+=o)}return e}}function N9(t,e){var n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function F9(t,e,n){var r=t[e]||(t[e]={});return r[n]||(r[n]={})}function z9(t,e,n,r){var i,a=zi(e.getMatchingVisibleMetas(r).reverse());try{for(a.s();!(i=a.n()).done;){var o=i.value,s=t[o.index];if(n&&s>0||!n&&s<0)return o.index}}catch(u){a.e(u)}finally{a.f()}return null}function j9(t,e){for(var n,r=t.chart,i=t._cachedMeta,a=r._stacks||(r._stacks={}),o=i.iScale,s=i.vScale,u=i.index,l=o.axis,c=s.axis,f=function(t,e,n){return"".concat(t.id,".").concat(e.id,".").concat(n.stack||n.type)}(o,s,i),d=e.length,h=0;h<d;++h){var p=e[h],v=p[l],g=p[c];(n=(p._stacks||(p._stacks={}))[c]=F9(a,f,v))[u]=g,n._top=z9(n,s,!0,i.type),n._bottom=z9(n,s,!1,i.type),(n._visualValues||(n._visualValues={}))[u]=g}}function B9(t,e){var n=t.scales;return Object.keys(n).filter((function(t){return n[t].axis===e})).shift()}function V9(t,e){var n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){var i,a=zi(e=e||t._parsed);try{for(a.s();!(i=a.n()).done;){var o=i.value._stacks;if(!o||void 0===o[r]||void 0===o[r][n])return;delete o[r][n],void 0!==o[r]._visualValues&&void 0!==o[r]._visualValues[n]&&delete o[r]._visualValues[n]}}catch(s){a.e(s)}finally{a.f()}}}var H9=function(t){return"reset"===t||"none"===t},U9=function(t,e){return e?t:Object.assign({},t)},W9=function(){function t(e,n){Ai(this,t),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=(this instanceof t?this.constructor:void 0).datasetElementType,this.dataElementType=(this instanceof t?this.constructor:void 0).dataElementType,this.initialize()}return Ci(t,[{key:"initialize",value:function(){var t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=N9(t.vScale,t),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")}},{key:"updateIndex",value:function(t){this.index!==t&&V9(this._cachedMeta),this.index=t}},{key:"linkScales",value:function(){var t=this.chart,e=this._cachedMeta,n=this.getDataset(),r=function(t,e,n,r){return"x"===t?e:"r"===t?r:n},i=e.xAxisID=d6(n.xAxisID,B9(t,"x")),a=e.yAxisID=d6(n.yAxisID,B9(t,"y")),o=e.rAxisID=d6(n.rAxisID,B9(t,"r")),s=e.indexAxis,u=e.iAxisID=r(s,i,a,o),l=e.vAxisID=r(s,a,i,o);e.xScale=this.getScaleForId(i),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(u),e.vScale=this.getScaleForId(l)}},{key:"getDataset",value:function(){return this.chart.data.datasets[this.index]}},{key:"getMeta",value:function(){return this.chart.getDatasetMeta(this.index)}},{key:"getScaleForId",value:function(t){return this.chart.scales[t]}},{key:"_getOtherScale",value:function(t){var e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}},{key:"reset",value:function(){this._update("reset")}},{key:"_destroy",value:function(){var t=this._cachedMeta;this._data&&n8(this._data,this),t._stacked&&V9(t)}},{key:"_dataCheck",value:function(){var t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(l6(e))this._data=function(t){var e,n,r,i=Object.keys(t),a=new Array(i.length);for(e=0,n=i.length;e<n;++e)r=i[e],a[e]={x:r,y:t[r]};return a}(e);else if(n!==e){if(n){n8(n,this);var r=this._cachedMeta;V9(r),r._parsed=[]}e&&Object.isExtensible(e)&&function(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),e8.forEach((function(e){var n="_onData"+C6(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var o=r.apply(this,i);return t._chartjs.listeners.forEach((function(t){"function"==typeof t[n]&&t[n].apply(t,i)})),o}})})))}(e,this),this._syncList=[],this._data=e}}},{key:"addElements",value:function(){var t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}},{key:"buildOrUpdateElements",value:function(t){var e=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();var i=e._stacked;e._stacked=N9(e.vScale,e),e.stack!==n.stack&&(r=!0,V9(e),e.stack=n.stack),this._resyncElements(t),(r||i!==e._stacked)&&j9(this,e._parsed)}},{key:"configure",value:function(){var t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}},{key:"parse",value:function(t,e){var n,r,i,a=this._cachedMeta,o=this._data,s=a.iScale,u=a._stacked,l=s.axis,c=0===t&&e===o.length||a._sorted,f=t>0&&a._parsed[t-1];if(!1===this._parsing)a._parsed=o,a._sorted=!0,i=o;else{i=u6(o[t])?this.parseArrayData(a,o,t,e):l6(o[t])?this.parseObjectData(a,o,t,e):this.parsePrimitiveData(a,o,t,e);for(n=0;n<e;++n)a._parsed[n+t]=r=i[n],c&&((null===r[l]||f&&r[l]<f[l])&&(c=!1),f=r);a._sorted=c}u&&j9(this,i)}},{key:"parsePrimitiveData",value:function(t,e,n,r){var i,a,o,s=t.iScale,u=t.vScale,l=s.axis,c=u.axis,f=s.getLabels(),d=s===u,h=new Array(r);for(i=0,a=r;i<a;++i){var p;o=i+n,h[i]=(xi(p={},l,d||s.parse(f[o],o)),xi(p,c,u.parse(e[o],o)),p)}return h}},{key:"parseArrayData",value:function(t,e,n,r){var i,a,o,s,u=t.xScale,l=t.yScale,c=new Array(r);for(i=0,a=r;i<a;++i)s=e[o=i+n],c[i]={x:u.parse(s[0],o),y:l.parse(s[1],o)};return c}},{key:"parseObjectData",value:function(t,e,n,r){var i,a,o,s,u=t.xScale,l=t.yScale,c=this._parsing,f=c.xAxisKey,d=void 0===f?"x":f,h=c.yAxisKey,p=void 0===h?"y":h,v=new Array(r);for(i=0,a=r;i<a;++i)s=e[o=i+n],v[i]={x:u.parse(E6(s,d),o),y:l.parse(E6(s,p),o)};return v}},{key:"getParsed",value:function(t){return this._cachedMeta._parsed[t]}},{key:"getDataElement",value:function(t){return this._cachedMeta.data[t]}},{key:"applyStack",value:function(t,e,n){var r=this.chart,i=this._cachedMeta,a=e[t.axis];return I9({keys:L9(r,!0),values:e._stacks[t.axis]._visualValues},a,i.index,{mode:n})}},{key:"updateRangeFromParsed",value:function(t,e,n,r){var i=n[e.axis],a=null===i?NaN:i,o=r&&n._stacks[e.axis];r&&o&&(r.values=o,a=I9(r,i,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}},{key:"getMinMax",value:function(t,e){var n,r,i=this._cachedMeta,a=i._parsed,o=i._sorted&&t===i.iScale,s=a.length,u=this._getOtherScale(t),l=function(t,e,n){return t&&!e.hidden&&e._stacked&&{keys:L9(n,!0),values:null}}(e,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},f=function(t){var e=t.getUserBounds(),n=e.min,r=e.max,i=e.minDefined,a=e.maxDefined;return{min:i?n:Number.NEGATIVE_INFINITY,max:a?r:Number.POSITIVE_INFINITY}}(u),d=f.min,h=f.max;function p(){var e=(r=a[n])[u.axis];return!c6(r[t.axis])||d>e||h<e}for(n=0;n<s&&(p()||(this.updateRangeFromParsed(c,t,r,l),!o));++n);if(o)for(n=s-1;n>=0;--n)if(!p()){this.updateRangeFromParsed(c,t,r,l);break}return c}},{key:"getAllParsedValues",value:function(t){var e,n,r,i=this._cachedMeta._parsed,a=[];for(e=0,n=i.length;e<n;++e)c6(r=i[e][t.axis])&&a.push(r);return a}},{key:"getMaxOverflow",value:function(){return!1}},{key:"getLabelAndValue",value:function(t){var e=this._cachedMeta,n=e.iScale,r=e.vScale,i=this.getParsed(t);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}},{key:"_update",value:function(t){var e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){var e,n,r,i;return l6(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:!1===t}}(d6(this.options.clip,function(t,e,n){if(!1===n)return!1;var r=D9(t,n),i=D9(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}},{key:"update",value:function(t){}},{key:"draw",value:function(){var t,e=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,u=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;for(r.dataset&&r.dataset.draw(e,a,s,u),t=s;t<s+u;++t){var c=i[t];c.hidden||(c.active&&l?o.push(c):c.draw(e,a))}for(t=0;t<o.length;++t)o[t].draw(e,a)}},{key:"getStyle",value:function(t,e){var n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}},{key:"getContext",value:function(t,e,n){var r,i=this.getDataset();if(t>=0&&t<this._cachedMeta.data.length){var a=this._cachedMeta.data[t];r=a.$context||(a.$context=function(t,e,n){return $8(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,a)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return $8(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}},{key:"resolveDatasetElementOptions",value:function(t){return this._resolveElementOptions(this.datasetElementType.id,t)}},{key:"resolveDataElementOptions",value:function(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}},{key:"_resolveElementOptions",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,i="active"===n,a=this._cachedDataOpts,o=t+"-"+n,s=a[o],u=this.enableOptionSharing&&A6(r);if(s)return U9(s,u);var l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),f=i?["".concat(t,"Hover"),"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(C8.elements[t]),p=function(){return e.getContext(r,i,n)},v=l.resolveNamedOptions(d,h,p,f);return v.$shared&&(v.$shared=u,a[o]=Object.freeze(U9(v,u))),v}},{key:"_resolveAnimations",value:function(t,e,n){var r,i=this.chart,a=this._cachedDataOpts,o="animation-".concat(e),s=a[o];if(s)return s;if(!1!==i.options.animation){var u=this.chart.config,l=u.datasetAnimationScopeKeys(this._type,e),c=u.getOptionScopes(this.getDataset(),l);r=u.createResolver(c,this.getContext(t,n,e))}var f=new R9(i,r&&r.animations);return r&&r._cacheable&&(a[o]=Object.freeze(f)),f}},{key:"getSharedOptions",value:function(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}},{key:"includeOptions",value:function(t,e){return!e||H9(t)||this.chart._animationsDisabled}},{key:"_getSharedOptions",value:function(t,e){var n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(e,i)||i!==r;return this.updateSharedOptions(i,e,n),{sharedOptions:i,includeOptions:a}}},{key:"updateElement",value:function(t,e,n,r){H9(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}},{key:"updateSharedOptions",value:function(t,e,n){t&&!H9(e)&&this._resolveAnimations(void 0,e).update(t,n)}},{key:"_setStyle",value:function(t,e,n,r){t.active=r;var i=this.getStyle(e,r);this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(t,e,n){this._setStyle(t,n,"active",!1)}},{key:"setHoverStyle",value:function(t,e,n){this._setStyle(t,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}},{key:"_resyncElements",value:function(t){var e,n=this._data,r=this._cachedMeta.data,i=zi(this._syncList);try{for(i.s();!(e=i.n()).done;){var a=wi(e.value,3),o=a[0],s=a[1],u=a[2];this[o](s,u)}}catch(d){i.e(d)}finally{i.f()}this._syncList=[];var l=r.length,c=n.length,f=Math.min(c,l);f&&this.parse(0,f),c>l?this._insertElements(l,c-l,t):c<l&&this._removeElements(c,l-c)}},{key:"_insertElements",value:function(t,e){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this._cachedMeta,a=i.data,o=t+e,s=function(t){for(t.length+=e,n=t.length-1;n>=o;n--)t[n]=t[n-e]};for(s(a),n=t;n<o;++n)a[n]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),r&&this.updateElements(a,t,e,"reset")}},{key:"updateElements",value:function(t,e,n,r){}},{key:"_removeElements",value:function(t,e){var n=this._cachedMeta;if(this._parsing){var r=n._parsed.splice(t,e);n._stacked&&V9(n,r)}n.data.splice(t,e)}},{key:"_sync",value:function(t){if(this._parsing)this._syncList.push(t);else{var e=wi(t,3),n=e[0],r=e[1],i=e[2];this[n](r,i)}this.chart._dataChanges.push([this.index].concat(mi(t)))}},{key:"_onDataPush",value:function(){var t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}},{key:"_onDataPop",value:function(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}},{key:"_onDataShift",value:function(){this._sync(["_removeElements",0,1])}},{key:"_onDataSplice",value:function(t,e){e&&this._sync(["_removeElements",t,e]);var n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}},{key:"_onDataUnshift",value:function(){this._sync(["_insertElements",0,arguments.length])}}]),t}();function Y9(t){var e,n,r,i,a=t.iScale,o=function(t,e){if(!t._cache.$bar){for(var n=t.getMatchingVisibleMetas(e),r=[],i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(t));t._cache.$bar=r8(r.sort((function(t,e){return t-e})))}return t._cache.$bar}(a,t.type),s=a._length,u=function(){32767===r||-32768===r||(A6(i)&&(s=Math.min(s,Math.abs(r-i)||s)),i=r)};for(e=0,n=o.length;e<n;++e)r=a.getPixelForValue(o[e]),u();for(i=void 0,e=0,n=a.ticks.length;e<n;++e)r=a.getPixelForTick(e),u();return s}function G9(t,e,n,r){return u6(t)?function(t,e,n,r){var i=n.parse(t[0],r),a=n.parse(t[1],r),o=Math.min(i,a),s=Math.max(i,a),u=o,l=s;Math.abs(o)>Math.abs(s)&&(u=s,l=o),e[n.axis]=l,e._custom={barStart:u,barEnd:l,start:i,end:a,min:o,max:s}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function q9(t,e,n,r){var i,a,o,s,u=t.iScale,l=t.vScale,c=u.getLabels(),f=u===l,d=[];for(i=n,a=n+r;i<a;++i)s=e[i],(o={})[u.axis]=f||u.parse(c[i],i),d.push(G9(s,o,l,i));return d}function Z9(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function X9(t,e,n,r){var i=e.borderSkipped,a={};if(i)if(!0!==i){var o=function(t){var e,n,r,i,a;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:e,top:i,bottom:a}}(t),s=o.start,u=o.end,l=o.reverse,c=o.top,f=o.bottom;"middle"===i&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(a[K9(f,s,u,l)]=!0,i=c)),a[K9(i,s,u,l)]=!0,t.borderSkipped=a}else t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};else t.borderSkipped=a}function K9(t,e,n,r){return r?(t=function(t,e,n){return t===e?n:t===n?e:t}(t,e,n),t=$9(t,n,e)):t=$9(t,e,n),t}function $9(t,e,n){return"start"===t?e:"end"===t?n:t}function Q9(t,e,n){var r=e.inflateAmount;t.inflateAmount="auto"===r?1===n?.33:0:r}C2(W9,"defaults",{}),C2(W9,"datasetElementType",null),C2(W9,"dataElementType",null);var J9=function(t){Ti(n,t);var e=Mi(n);function n(){return Ai(this,n),e.apply(this,arguments)}return Ci(n,[{key:"parsePrimitiveData",value:function(t,e,n,r){return q9(t,e,n,r)}},{key:"parseArrayData",value:function(t,e,n,r){return q9(t,e,n,r)}},{key:"parseObjectData",value:function(t,e,n,r){var i,a,o,s,u=t.iScale,l=t.vScale,c=this._parsing,f=c.xAxisKey,d=void 0===f?"x":f,h=c.yAxisKey,p=void 0===h?"y":h,v="x"===u.axis?d:p,g="x"===l.axis?d:p,m=[];for(i=n,a=n+r;i<a;++i)s=e[i],(o={})[u.axis]=u.parse(E6(s,v),i),m.push(G9(E6(s,g),o,l,i));return m}},{key:"updateRangeFromParsed",value:function(t,e,r,i){vi(Ni(n.prototype),"updateRangeFromParsed",this).call(this,t,e,r,i);var a=r._custom;a&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}},{key:"getMaxOverflow",value:function(){return 0}},{key:"getLabelAndValue",value:function(t){var e=this._cachedMeta,n=e.iScale,r=e.vScale,i=this.getParsed(t),a=i._custom,o=Z9(a)?"["+a.start+", "+a.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:o}}},{key:"initialize",value:function(){this.enableOptionSharing=!0,vi(Ni(n.prototype),"initialize",this).call(this),this._cachedMeta.stack=this.getDataset().stack}},{key:"update",value:function(t){var e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}},{key:"updateElements",value:function(t,e,n,r){for(var i="reset"===r,a=this.index,o=this._cachedMeta.vScale,s=o.getBasePixel(),u=o.isHorizontal(),l=this._getRuler(),c=this._getSharedOptions(e,r),f=c.sharedOptions,d=c.includeOptions,h=e;h<e+n;h++){var p=this.getParsed(h),v=i||s6(p[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),g=this._calculateBarIndexPixels(h,l),m=(p._stacks||{})[o.axis],y={horizontal:u,base:v.base,enableBorderRadius:!m||Z9(p._custom)||a===m._top||a===m._bottom,x:u?v.head:g.center,y:u?g.center:v.head,height:u?g.size:Math.abs(v.size),width:u?Math.abs(v.size):g.size};d&&(y.options=f||this.resolveDataElementOptions(h,t[h].active?"active":r));var b=y.options||t[h].options;X9(y,b,m,a),Q9(y,b,l.ratio),this.updateElement(t[h],h,y,r)}}},{key:"_getStacks",value:function(t,e){var n,r=this._cachedMeta.iScale,i=r.getMatchingVisibleMetas(this._type).filter((function(t){return t.controller.options.grouped})),a=r.options.stacked,o=[],s=function(t){var n=t.controller.getParsed(e),r=n&&n[t.vScale.axis];if(s6(r)||isNaN(r))return!0},u=zi(i);try{for(u.s();!(n=u.n()).done;){var l=n.value;if((void 0===e||!s(l))&&((!1===a||-1===o.indexOf(l.stack)||void 0===a&&void 0===l.stack)&&o.push(l.stack),l.index===t))break}}catch(c){u.e(c)}finally{u.f()}return o.length||o.push(void 0),o}},{key:"_getStackCount",value:function(t){return this._getStacks(void 0,t).length}},{key:"_getStackIndex",value:function(t,e,n){var r=this._getStacks(t,n),i=void 0!==e?r.indexOf(e):-1;return-1===i?r.length-1:i}},{key:"_getRuler",value:function(){var t,e,n=this.options,r=this._cachedMeta,i=r.iScale,a=[];for(t=0,e=r.data.length;t<e;++t)a.push(i.getPixelForValue(this.getParsed(t)[i.axis],t));var o=n.barThickness;return{min:o||Y9(r),pixels:a,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:n.grouped,ratio:o?1:n.categoryPercentage*n.barPercentage}}},{key:"_calculateBarValuePixels",value:function(t){var e,n,r=this._cachedMeta,i=r.vScale,a=r._stacked,o=r.index,s=this.options,u=s.base,l=s.minBarLength,c=u||0,f=this.getParsed(t),d=f._custom,h=Z9(d),p=f[i.axis],v=0,g=a?this.applyStack(i,f,a):p;g!==p&&(v=g-p,g=p),h&&(p=d.barStart,g=d.barEnd-d.barStart,0!==p&&z6(p)!==z6(d.barEnd)&&(v=0),v+=p);var m=s6(u)||h?v:u,y=i.getPixelForValue(m);if(n=(e=this.chart.getDataVisibility(t)?i.getPixelForValue(v+g):y)-y,Math.abs(n)<l){n=function(t,e,n){return 0!==t?z6(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(n,i,c)*l,p===c&&(y-=n/2);var b=i.getPixelForDecimal(0),_=i.getPixelForDecimal(1),x=Math.min(b,_),w=Math.max(b,_);e=(y=Math.max(Math.min(y,w),x))+n,a&&!h&&(f._stacks[i.axis]._visualValues[o]=i.getValueForPixel(e)-i.getValueForPixel(y))}if(y===i.getPixelForValue(c)){var k=z6(n)*i.getLineWidthForValue(c)/2;y+=k,n-=k}return{size:n,base:y,head:e,center:e+n/2}}},{key:"_calculateBarIndexPixels",value:function(t,e){var n,r,i=e.scale,a=this.options,o=a.skipNull,s=d6(a.maxBarThickness,1/0);if(e.grouped){var u=o?this._getStackCount(t):e.stackCount,l="flex"===a.barThickness?function(t,e,n,r){var i=e.pixels,a=i[t],o=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null,u=n.categoryPercentage;null===o&&(o=a-(null===s?e.end-e.start:s-a)),null===s&&(s=a+a-o);var l=a-(a-Math.min(o,s))/2*u;return{chunk:Math.abs(s-o)/2*u/r,ratio:n.barPercentage,start:l}}(t,e,a,u):function(t,e,n,r){var i,a,o=n.barThickness;return s6(o)?(i=e.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:e.pixels[t]-i/2}}(t,e,a,u),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);n=l.start+l.chunk*c+l.chunk/2,r=Math.min(s,l.chunk*l.ratio)}else n=i.getPixelForValue(this.getParsed(t)[i.axis],t),r=Math.min(s,e.min*e.ratio);return{base:n-r/2,head:n+r/2,center:n,size:r}}},{key:"draw",value:function(){for(var t=this._cachedMeta,e=t.vScale,n=t.data,r=n.length,i=0;i<r;++i)null!==this.getParsed(i)[e.axis]&&n[i].draw(this._ctx)}}]),n}(W9);C2(J9,"id","bar"),C2(J9,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),C2(J9,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});var t7=function(t){Ti(n,t);var e=Mi(n);function n(t,r){var i;return Ai(this,n),(i=e.call(this,t,r)).enableOptionSharing=!0,i.innerRadius=void 0,i.outerRadius=void 0,i.offsetX=void 0,i.offsetY=void 0,i}return Ci(n,[{key:"linkScales",value:function(){}},{key:"parse",value:function(t,e){var n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{var i,a,o=function(t){return+n[t]};if(l6(n[t])){var s=this._parsing.key,u=void 0===s?"value":s;o=function(t){return+E6(n[t],u)}}for(i=t,a=t+e;i<a;++i)r._parsed[i]=o(i)}}},{key:"_getRotation",value:function(){return U6(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return U6(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var t=P6,e=-P6,n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){var r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),a=r._getCircumference();t=Math.min(t,i),e=Math.max(e,i+a)}return{rotation:t,circumference:e-t}}},{key:"update",value:function(t){var e=this.chart.chartArea,n=this._cachedMeta,r=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(e.width,e.height)-i)/2,0),o=Math.min(function(t,e){return"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e}(this.options.cutout,a),1),s=this._getRingWeight(this.index),u=this._getRotationExtents(),l=u.circumference,c=function(t,e,n){var r=1,i=1,a=0,o=0;if(e<P6){var s=t,u=s+e,l=Math.cos(s),c=Math.sin(s),f=Math.cos(u),d=Math.sin(u),h=function(t,e,r){return X6(t,s,u,!0)?1:Math.max(e,e*n,r,r*n)},p=function(t,e,r){return X6(t,s,u,!0)?-1:Math.min(e,e*n,r,r*n)},v=h(0,l,f),g=h(L6,c,d),m=p(O6,l,f),y=p(O6+L6,c,d);r=(v-m)/2,i=(g-y)/2,a=-(v+m)/2,o=-(g+y)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}(u.rotation,l,o),f=c.ratioX,d=c.ratioY,h=c.offsetX,p=c.offsetY,v=(e.width-i)/f,g=(e.height-i)/d,m=Math.max(Math.min(v,g)/2,0),y=h6(this.options.radius,m),b=(y-Math.max(y*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=h*y,this.offsetY=p*y,n.total=this.calculateTotal(),this.outerRadius=y-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*s,0),this.updateElements(r,0,r.length,t)}},{key:"_circumference",value:function(t,e){var n=this.options,r=this._cachedMeta,i=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*i/P6)}},{key:"updateElements",value:function(t,e,n,r){var i,a="reset"===r,o=this.chart,s=o.chartArea,u=o.options.animation,l=(s.left+s.right)/2,c=(s.top+s.bottom)/2,f=a&&u.animateScale,d=f?0:this.innerRadius,h=f?0:this.outerRadius,p=this._getSharedOptions(e,r),v=p.sharedOptions,g=p.includeOptions,m=this._getRotation();for(i=0;i<e;++i)m+=this._circumference(i,a);for(i=e;i<e+n;++i){var y=this._circumference(i,a),b=t[i],_={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+y,circumference:y,outerRadius:h,innerRadius:d};g&&(_.options=v||this.resolveDataElementOptions(i,b.active?"active":r)),m+=y,this.updateElement(b,i,_,r)}}},{key:"calculateTotal",value:function(){var t,e=this._cachedMeta,n=e.data,r=0;for(t=0;t<n.length;t++){var i=e._parsed[t];null!==i&&!isNaN(i)&&this.chart.getDataVisibility(t)&&!n[t].hidden&&(r+=Math.abs(i))}return r}},{key:"calculateCircumference",value:function(t){var e=this._cachedMeta.total;return e>0&&!isNaN(t)?P6*(Math.abs(t)/e):0}},{key:"getLabelAndValue",value:function(t){var e=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=y8(e._parsed[t],n.options.locale);return{label:r[t]||"",value:i}}},{key:"getMaxBorderWidth",value:function(t){var e,n,r,i,a,o=0,s=this.chart;if(!t)for(e=0,n=s.data.datasets.length;e<n;++e)if(s.isDatasetVisible(e)){t=(r=s.getDatasetMeta(e)).data,i=r.controller;break}if(!t)return 0;for(e=0,n=t.length;e<n;++e)"inner"!==(a=i.resolveDataElementOptions(e)).borderAlign&&(o=Math.max(o,a.borderWidth||0,a.hoverBorderWidth||0));return o}},{key:"getMaxOffset",value:function(t){for(var e=0,n=0,r=t.length;n<r;++n){var i=this.resolveDataElementOptions(n);e=Math.max(e,i.offset||0,i.hoverOffset||0)}return e}},{key:"_getRingWeightOffset",value:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}},{key:"_getRingWeight",value:function(t){return Math.max(d6(this.chart.data.datasets[t].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),n}(W9);function e7(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}C2(t7,"id","doughnut"),C2(t7,"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"}),C2(t7,"descriptors",{_scriptable:function(t){return"spacing"!==t},_indexable:function(t){return"spacing"!==t}}),C2(t7,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(t){var e=t.data;if(e.labels.length&&e.datasets.length){var n=t.legend.options.labels,r=n.pointStyle,i=n.color;return e.labels.map((function(e,n){var a=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:i,lineWidth:a.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick:function(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}});var n7=function(){function t(e){Ai(this,t),this.options=e||{}}return Ci(t,[{key:"init",value:function(){}},{key:"formats",value:function(){return e7()}},{key:"parse",value:function(){return e7()}},{key:"format",value:function(){return e7()}},{key:"add",value:function(){return e7()}},{key:"diff",value:function(){return e7()}},{key:"startOf",value:function(){return e7()}},{key:"endOf",value:function(){return e7()}}],[{key:"override",value:function(e){Object.assign(t.prototype,e)}}]),t}(),r7={_date:n7};function i7(t,e,n,r){var i=t.controller,a=t.data,o=t._sorted,s=i._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&o&&a.length){var u=s._reversePixels?t8:J6;if(!r)return u(a,e,n);if(i._sharedOptions){var l=a[0],c="function"==typeof l.getRange&&l.getRange(e);if(c){var f=u(a,e,n-c),d=u(a,e,n+c);return{lo:f.lo,hi:d.hi}}}}return{lo:0,hi:a.length-1}}function a7(t,e,n,r,i){for(var a=t.getSortedVisibleDatasetMetas(),o=n[e],s=0,u=a.length;s<u;++s)for(var l=a[s],c=l.index,f=l.data,d=i7(a[s],e,o,i),h=d.lo,p=d.hi,v=h;v<=p;++v){var g=f[v];g.skip||r(g,c,v)}}function o7(t,e,n,r,i){var a=[];return!i&&!t.isPointInArea(e)||a7(t,n,e,(function(n,o,s){!i&&!D8(n,t.chartArea,0)||n.inRange(e.x,e.y,r)&&a.push({element:n,datasetIndex:o,index:s})}),!0),a}function s7(t,e,n,r,i,a){var o=[],s=function(t){var e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){var i=e?Math.abs(t.x-r.x):0,a=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}(n),u=Number.POSITIVE_INFINITY;return a7(t,n,e,(function(n,l,c){var f=n.inRange(e.x,e.y,i);if(!r||f){var d=n.getCenterPoint(i);if(a||t.isPointInArea(d)||f){var h=s(e,d);h<u?(o=[{element:n,datasetIndex:l,index:c}],u=h):h===u&&o.push({element:n,datasetIndex:l,index:c})}}})),o}function u7(t,e,n,r,i,a){return a||t.isPointInArea(e)?"r"!==n||r?s7(t,e,n,r,i,a):function(t,e,n,r){var i=[];return a7(t,n,e,(function(t,n,a){var o=t.getProps(["startAngle","endAngle"],r),s=o.startAngle,u=o.endAngle;X6(G6(t,{x:e.x,y:e.y}).angle,s,u)&&i.push({element:t,datasetIndex:n,index:a})})),i}(t,e,n,i):[]}function l7(t,e,n,r,i){var a=[],o="x"===n?"inXRange":"inYRange",s=!1;return a7(t,n,e,(function(t,r,u){t[o](e[n],i)&&(a.push({element:t,datasetIndex:r,index:u}),s=s||t.inRange(e.x,e.y,i))})),r&&!s?[]:a}var c7={evaluateInteractionItems:a7,modes:{index:function(t,e,n,r){var i=y9(e,t),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?o7(t,i,a,r,o):u7(t,i,a,!1,r,o),u=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((function(t){var e=s[0].index,n=t.data[e];n&&!n.skip&&u.push({element:n,datasetIndex:t.index,index:e})})),u):[]},dataset:function(t,e,n,r){var i=y9(e,t),a=n.axis||"xy",o=n.includeInvisible||!1,s=n.intersect?o7(t,i,a,r,o):u7(t,i,a,!1,r,o);if(s.length>0){var u=s[0].datasetIndex,l=t.getDatasetMeta(u).data;s=[];for(var c=0;c<l.length;++c)s.push({element:l[c],datasetIndex:u,index:c})}return s},point:function(t,e,n,r){return o7(t,y9(e,t),n.axis||"xy",r,n.includeInvisible||!1)},nearest:function(t,e,n,r){var i=y9(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return u7(t,i,a,n.intersect,r,o)},x:function(t,e,n,r){return l7(t,y9(e,t),"x",n.intersect,r)},y:function(t,e,n,r){return l7(t,y9(e,t),"y",n.intersect,r)}}},f7=["left","top","right","bottom"];function d7(t,e){return t.filter((function(t){return t.pos===e}))}function h7(t,e){return t.filter((function(t){return-1===f7.indexOf(t.pos)&&t.box.axis===e}))}function p7(t,e){return t.sort((function(t,n){var r=e?n:t,i=e?t:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function v7(t,e){var n,r,i,a=function(t){var e,n={},r=zi(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,a=i.stack,o=i.pos,s=i.stackWeight;if(a&&f7.includes(o)){var u=n[a]||(n[a]={count:0,placed:0,weight:0,size:0});u.count++,u.weight+=s}}}catch(l){r.e(l)}finally{r.f()}return n}(t),o=e.vBoxMaxWidth,s=e.hBoxMaxHeight;for(n=0,r=t.length;n<r;++n){var u=(i=t[n]).box.fullSize,l=a[i.stack],c=l&&i.stackWeight/l.weight;i.horizontal?(i.width=c?c*o:u&&e.availableWidth,i.height=s):(i.width=o,i.height=c?c*s:u&&e.availableHeight)}return a}function g7(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function m7(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 y7(t,e,n,r){var i=n.pos,a=n.box,o=t.maxPadding;if(!l6(i)){n.size&&(t[i]-=n.size);var s=r[n.stack]||{size:0,count:1};s.size=Math.max(s.size,n.horizontal?a.height:a.width),n.size=s.size/s.count,t[i]+=n.size}a.getPadding&&m7(o,a.getPadding());var u=Math.max(0,e.outerWidth-g7(o,t,"left","right")),l=Math.max(0,e.outerHeight-g7(o,t,"top","bottom")),c=u!==t.w,f=l!==t.h;return t.w=u,t.h=l,n.horizontal?{same:c,other:f}:{same:f,other:c}}function b7(t,e){var n=e.maxPadding;return function(t){var r={left:0,top:0,right:0,bottom:0};return t.forEach((function(t){r[t]=Math.max(e[t],n[t])})),r}(t?["left","right"]:["top","bottom"])}function _7(t,e,n,r){var i,a,o,s,u,l,c=[];for(i=0,a=t.length,u=0;i<a;++i){(s=(o=t[i]).box).update(o.width||e.w,o.height||e.h,b7(o.horizontal,e));var f=y7(e,n,o,r),d=f.same,h=f.other;u|=d&&c.length,l=l||h,s.fullSize||c.push(o)}return u&&_7(c,e,n,r)||l}function x7(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 w7(t,e,n,r){var i,a=n.padding,o=e.x,s=e.y,u=zi(t);try{for(u.s();!(i=u.n()).done;){var l=i.value,c=l.box,f=r[l.stack]||{count:1,placed:0,weight:1},d=l.stackWeight/f.weight||1;if(l.horizontal){var h=e.w*d,p=f.size||c.height;A6(f.start)&&(s=f.start),c.fullSize?x7(c,a.left,s,n.outerWidth-a.right-a.left,p):x7(c,e.left+f.placed,s,h,p),f.start=s,f.placed+=h,s=c.bottom}else{var v=e.h*d,g=f.size||c.width;A6(f.start)&&(o=f.start),c.fullSize?x7(c,o,a.top,g,n.outerHeight-a.bottom-a.top):x7(c,o,e.top+f.placed,g,v),f.start=o,f.placed+=v,o=c.right}}}catch(m){u.e(m)}finally{u.f()}e.x=o,e.y=s}var k7=function(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:function(t){e.draw(t)}}]},t.boxes.push(e)},S7=function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},E7=function(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},C7=function(t,e,n,r){if(t){var i=Z8(t.options.layout.padding),a=Math.max(e-i.width,0),o=Math.max(n-i.height,0),s=function(t){var e=function(t){var e,n,r,i,a,o,s=[];for(e=0,n=(t||[]).length;e<n;++e){var u,l,c;i=(u=r=t[e]).position,a=(l=u.options).stack,o=void 0===(c=l.stackWeight)?1:c,s.push({index:e,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:o})}return s}(t),n=p7(e.filter((function(t){return t.box.fullSize})),!0),r=p7(d7(e,"left"),!0),i=p7(d7(e,"right")),a=p7(d7(e,"top"),!0),o=p7(d7(e,"bottom")),s=h7(e,"x"),u=h7(e,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(u).concat(o).concat(s),chartArea:d7(e,"chartArea"),vertical:r.concat(i).concat(u),horizontal:a.concat(o).concat(s)}}(t.boxes),u=s.vertical,l=s.horizontal;v6(t.boxes,(function(t){"function"==typeof t.beforeLayout&&t.beforeLayout()}));var c=u.reduce((function(t,e){return e.box.options&&!1===e.box.options.display?t:t+1}),0)||1,f=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),d=Object.assign({},i);m7(d,Z8(r));var h=Object.assign({maxPadding:d,w:a,h:o,x:i.left,y:i.top},i),p=v7(u.concat(l),f);_7(s.fullSize,h,f,p),_7(u,h,f,p),_7(l,h,f,p)&&_7(u,h,f,p),function(t){var e=t.maxPadding;function n(n){var r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(h),w7(s.leftAndTop,h,f,p),h.x+=h.w,h.y+=h.h,w7(s.rightAndBottom,h,f,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},v6(s.chartArea,(function(e){var n=e.box;Object.assign(n,t.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}},A7=function(){function t(){Ai(this,t)}return Ci(t,[{key:"acquireContext",value:function(t,e){}},{key:"releaseContext",value:function(t){return!1}},{key:"addEventListener",value:function(t,e,n){}},{key:"removeEventListener",value:function(t,e,n){}},{key:"getDevicePixelRatio",value:function(){return 1}},{key:"getMaximumSize",value:function(t,e,n,r){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):n)}}},{key:"isAttached",value:function(t){return!0}},{key:"updateConfig",value:function(t){}}]),t}(),T7=function(t){Ti(n,t);var e=Mi(n);function n(){return Ai(this,n),e.apply(this,arguments)}return Ci(n,[{key:"acquireContext",value:function(t){return t&&t.getContext&&t.getContext("2d")||null}},{key:"updateConfig",value:function(t){t.options.animation=!1}}]),n}(A7),M7="$chartjs",O7={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},P7=function(t){return null===t||""===t};var R7=!!w9&&{passive:!0};function D7(t,e,n){t.canvas.removeEventListener(e,n,R7)}function L7(t,e){var n,r=zi(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i===e||i.contains(e))return!0}}catch(a){r.e(a)}finally{r.f()}}function I7(t,e,n){var r=t.canvas,i=new MutationObserver((function(t){var e,i=!1,a=zi(t);try{for(a.s();!(e=a.n()).done;){var o=e.value;i=(i=i||L7(o.addedNodes,r))&&!L7(o.removedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function N7(t,e,n){var r=t.canvas,i=new MutationObserver((function(t){var e,i=!1,a=zi(t);try{for(a.s();!(e=a.n()).done;){var o=e.value;i=(i=i||L7(o.removedNodes,r))&&!L7(o.addedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}var F7=new Map,z7=0;function j7(){var t=window.devicePixelRatio;t!==z7&&(z7=t,F7.forEach((function(e,n){n.currentDevicePixelRatio!==t&&e()})))}function B7(t,e,n){var r=t.canvas,i=r&&h9(r);if(i){var a=a8((function(t,e){var r=i.clientWidth;n(t,e),r<i.clientWidth&&n()}),window),o=new ResizeObserver((function(t){var e=t[0],n=e.contentRect.width,r=e.contentRect.height;0===n&&0===r||a(n,r)}));return o.observe(i),function(t,e){F7.size||window.addEventListener("resize",j7),F7.set(t,e)}(t,a),o}}function V7(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){F7.delete(t),F7.size||window.removeEventListener("resize",j7)}(t)}function H7(t,e,n){var r=t.canvas,i=a8((function(e){null!==t.ctx&&n(function(t,e){var n=O7[t.type]||t.type,r=y9(t,e),i=r.x,a=r.y;return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==a?a:null}}(e,t))}),t);return function(t,e,n){t.addEventListener(e,n,R7)}(r,e,i),i}var U7=function(t){Ti(n,t);var e=Mi(n);function n(){return Ai(this,n),e.apply(this,arguments)}return Ci(n,[{key:"acquireContext",value:function(t,e){var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){var n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[M7]={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",P7(i)){var a=k9(t,"width");void 0!==a&&(t.width=a)}if(P7(r))if(""===t.style.height)t.height=t.width/(e||2);else{var o=k9(t,"height");void 0!==o&&(t.height=o)}}(t,e),n):null}},{key:"releaseContext",value:function(t){var e=t.canvas;if(!e[M7])return!1;var n=e[M7].initial;["height","width"].forEach((function(t){var r=n[t];s6(r)?e.removeAttribute(t):e.setAttribute(t,r)}));var r=n.style||{};return Object.keys(r).forEach((function(t){e.style[t]=r[t]})),e.width=e.width,delete e[M7],!0}},{key:"addEventListener",value:function(t,e,n){this.removeEventListener(t,e);var r=t.$proxies||(t.$proxies={}),i={attach:I7,detach:N7,resize:B7}[e]||H7;r[e]=i(t,e,n)}},{key:"removeEventListener",value:function(t,e){var n=t.$proxies||(t.$proxies={}),r=n[e];!r||(({attach:V7,detach:V7,resize:V7}[e]||D7)(t,e,r),n[e]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(t,e,n,r){return _9(t,e,n,r)}},{key:"isAttached",value:function(t){var e=h9(t);return!(!e||!e.isConnected)}}]),n}(A7);var W7=function(){function t(){Ai(this,t),C2(this,"active",!1)}return Ci(t,[{key:"tooltipPosition",value:function(t){var e=this.getProps(["x","y"],t);return{x:e.x,y:e.y}}},{key:"hasValue",value:function(){return V6(this.x)&&V6(this.y)}},{key:"getProps",value:function(t,e){var n=this,r=this.$animations;if(!e||!r)return this;var i={};return t.forEach((function(t){i[t]=r[t]&&r[t].active()?r[t]._to:n[t]})),i}}]),t}();function Y7(t,e){var n=t.options.ticks,r=function(t){var 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))}(t),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?function(t){var e,n,r=[];for(e=0,n=t.length;e<n;e++)t[e].major&&r.push(e);return r}(e):[],o=a.length,s=a[0],u=a[o-1],l=[];if(o>i)return function(t,e,n,r){var i,a=0,o=n[0];for(r=Math.ceil(r),i=0;i<t.length;i++)i===o&&(e.push(t[i]),o=n[++a*r])}(e,l,a,o/i),l;var c=function(t,e,n){var r=function(t){var e,n,r=t.length;if(r<2)return!1;for(n=t[0],e=1;e<r;++e)if(t[e]-t[e-1]!==n)return!1;return n}(t),i=e.length/n;if(!r)return Math.max(i,1);for(var a=function(t){var e,n=[],r=Math.sqrt(t);for(e=1;e<r;e++)t%e==0&&(n.push(e),n.push(t/e));return r===(0|r)&&n.push(r),n.sort((function(t,e){return t-e})).pop(),n}(r),o=0,s=a.length-1;o<s;o++){var u=a[o];if(u>i)return u}return Math.max(i,1)}(a,e,i);if(o>0){var f,d,h=o>1?Math.round((u-s)/(o-1)):null;for(G7(e,l,c,s6(h)?0:s-h,s),f=0,d=o-1;f<d;f++)G7(e,l,c,a[f],a[f+1]);return G7(e,l,c,u,s6(h)?e.length:u+h),l}return G7(e,l,c),l}function G7(t,e,n,r,i){var a,o,s,u=d6(r,0),l=Math.min(d6(i,t.length),t.length),c=0;for(n=Math.ceil(n),i&&(n=(a=i-r)/Math.floor(a/n)),s=u;s<0;)c++,s=Math.round(u+c*n);for(o=Math.max(u,0);o<l;o++)o===s&&(e.push(t[o]),c++,s=Math.round(u+c*n))}C2(W7,"defaults",{}),C2(W7,"defaultRoutes");var q7=function(t,e,n){return"top"===e||"left"===e?t[e]+n:t[e]-n};function Z7(t,e){for(var n=[],r=t.length/e,i=t.length,a=0;a<i;a+=r)n.push(t[Math.floor(a)]);return n}function X7(t,e,n){var r,i=t.ticks.length,a=Math.min(e,i-1),o=t._startPixel,s=t._endPixel,u=1e-6,l=t.getPixelForTick(a);if(!(n&&(r=1===i?Math.max(l-o,s-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(a-1))/2,l+=a<e?r:-r,l<o-u||l>s+u)))return l}function K7(t){return t.drawTicks?t.tickLength:0}function $7(t,e){if(!t.display)return 0;var n=X8(t.font,e),r=Z8(t.padding);return(u6(t.text)?t.text.length:1)*n.lineHeight+r.height}function Q7(t,e,n){var r=o8(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=function(t){return"left"===t?"right":"right"===t?"left":t}(r)),r}var J7=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).id=t.id,r.type=t.type,r.options=void 0,r.ctx=t.ctx,r.chart=t.chart,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r._margins={left:0,right:0,top:0,bottom:0},r.maxWidth=void 0,r.maxHeight=void 0,r.paddingTop=void 0,r.paddingBottom=void 0,r.paddingLeft=void 0,r.paddingRight=void 0,r.axis=void 0,r.labelRotation=void 0,r.min=void 0,r.max=void 0,r._range=void 0,r.ticks=[],r._gridLineItems=null,r._labelItems=null,r._labelSizes=null,r._length=0,r._maxLength=0,r._longestTextCache={},r._startPixel=void 0,r._endPixel=void 0,r._reversePixels=!1,r._userMax=void 0,r._userMin=void 0,r._suggestedMax=void 0,r._suggestedMin=void 0,r._ticksLength=0,r._borderValue=0,r._cache={},r._dataLimitsCached=!1,r.$context=void 0,r}return Ci(n,[{key:"init",value:function(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}},{key:"parse",value:function(t,e){return t}},{key:"getUserBounds",value:function(){var t=this._userMin,e=this._userMax,n=this._suggestedMin,r=this._suggestedMax;return t=f6(t,Number.POSITIVE_INFINITY),e=f6(e,Number.NEGATIVE_INFINITY),n=f6(n,Number.POSITIVE_INFINITY),r=f6(r,Number.NEGATIVE_INFINITY),{min:f6(t,n),max:f6(e,r),minDefined:c6(t),maxDefined:c6(e)}}},{key:"getMinMax",value:function(t){var e,n=this.getUserBounds(),r=n.min,i=n.max,a=n.minDefined,o=n.maxDefined;if(a&&o)return{min:r,max:i};for(var s=this.getMatchingVisibleMetas(),u=0,l=s.length;u<l;++u)e=s[u].controller.getMinMax(this,t),a||(r=Math.min(r,e.min)),o||(i=Math.max(i,e.max));return{min:f6(r=o&&r>i?i:r,f6(i=a&&r>i?r:i,r)),max:f6(i,f6(r,i))}}},{key:"getPadding",value:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}},{key:"getTicks",value:function(){return this.ticks}},{key:"getLabels",value:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}},{key:"getLabelItems",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.chartArea;return this._labelItems||(this._labelItems=this._computeLabelItems(t))}},{key:"beforeLayout",value:function(){this._cache={},this._dataLimitsCached=!1}},{key:"beforeUpdate",value:function(){p6(this.options.beforeUpdate,[this])}},{key:"update",value:function(t,e,n){var r=this.options,i=r.beginAtZero,a=r.grace,o=r.ticks,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){var r=t.min,i=t.max,a=h6(e,(i-r)/2),o=function(t,e){return n&&0===t?0:t+e};return{min:o(r,-Math.abs(a)),max:o(i,a)}}(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();var u=s<this.ticks.length;this._convertTicksToLabels(u?Z7(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=Y7(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),u&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}},{key:"configure",value:function(){var t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}},{key:"afterUpdate",value:function(){p6(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){p6(this.options.beforeSetDimensions,[this])}},{key:"setDimensions",value:function(){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}},{key:"afterSetDimensions",value:function(){p6(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(t){this.chart.notifyPlugins(t,this.getContext()),p6(this.options[t],[this])}},{key:"beforeDataLimits",value:function(){this._callHooks("beforeDataLimits")}},{key:"determineDataLimits",value:function(){}},{key:"afterDataLimits",value:function(){this._callHooks("afterDataLimits")}},{key:"beforeBuildTicks",value:function(){this._callHooks("beforeBuildTicks")}},{key:"buildTicks",value:function(){return[]}},{key:"afterBuildTicks",value:function(){this._callHooks("afterBuildTicks")}},{key:"beforeTickToLabelConversion",value:function(){p6(this.options.beforeTickToLabelConversion,[this])}},{key:"generateTickLabels",value:function(t){var e,n,r,i=this.options.ticks;for(e=0,n=t.length;e<n;e++)(r=t[e]).label=p6(i.callback,[r.value,e,t],this)}},{key:"afterTickToLabelConversion",value:function(){p6(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){p6(this.options.beforeCalculateLabelRotation,[this])}},{key:"calculateLabelRotation",value:function(){var t,e,n,r=this.options,i=r.ticks,a=this.ticks.length,o=i.minRotation||0,s=i.maxRotation,u=o;if(!this._isVisible()||!i.display||o>=s||a<=1||!this.isHorizontal())this.labelRotation=o;else{var l=this._getLabelSizes(),c=l.widest.width,f=l.highest.height,d=K6(this.chart.width-c,0,this.maxWidth);c+6>(t=r.offset?this.maxWidth/a:d/(a-1))&&(t=d/(a-(r.offset?.5:1)),e=this.maxHeight-K7(r.grid)-i.padding-$7(r.title,this.chart.options.font),n=Math.sqrt(c*c+f*f),u=W6(Math.min(Math.asin(K6((l.highest.height+6)/t,-1,1)),Math.asin(K6(e/n,-1,1))-Math.asin(K6(f/n,-1,1)))),u=Math.max(o,Math.min(s,u))),this.labelRotation=u}}},{key:"afterCalculateLabelRotation",value:function(){p6(this.options.afterCalculateLabelRotation,[this])}},{key:"afterAutoSkip",value:function(){}},{key:"beforeFit",value:function(){p6(this.options.beforeFit,[this])}},{key:"fit",value:function(){var t={width:0,height:0},e=this.chart,n=this.options,r=n.ticks,i=n.title,a=n.grid,o=this._isVisible(),s=this.isHorizontal();if(o){var u=$7(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=K7(a)+u):(t.height=this.maxHeight,t.width=K7(a)+u),r.display&&this.ticks.length){var l=this._getLabelSizes(),c=l.first,f=l.last,d=l.widest,h=l.highest,p=2*r.padding,v=U6(this.labelRotation),g=Math.cos(v),m=Math.sin(v);if(s){var y=r.mirror?0:m*d.width+g*h.height;t.height=Math.min(this.maxHeight,t.height+y+p)}else{var b=r.mirror?0:g*d.width+m*h.height;t.width=Math.min(this.maxWidth,t.width+b+p)}this._calculatePadding(c,f,m,g)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}},{key:"_calculatePadding",value:function(t,e,n,r){var i=this.options,a=i.ticks,o=a.align,s=a.padding,u=i.position,l=0!==this.labelRotation,c="top"!==u&&"x"===this.axis;if(this.isHorizontal()){var f=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1),h=0,p=0;l?c?(h=r*t.width,p=n*e.height):(h=n*t.height,p=r*e.width):"start"===o?p=e.width:"end"===o?h=t.width:"inner"!==o&&(h=t.width/2,p=e.width/2),this.paddingLeft=Math.max((h-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((p-d+s)*this.width/(this.width-d),0)}else{var v=e.height/2,g=t.height/2;"start"===o?(v=0,g=t.height):"end"===o&&(v=e.height,g=0),this.paddingTop=v+s,this.paddingBottom=g+s}}},{key:"_handleMargins",value:function(){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))}},{key:"afterFit",value:function(){p6(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var t=this.options,e=t.axis,n=t.position;return"top"===n||"bottom"===n||"x"===e}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(t){var e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)s6(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}},{key:"_getLabelSizes",value:function(){var t=this._labelSizes;if(!t){var e=this.options.ticks.sampleSize,n=this.ticks;e<n.length&&(n=Z7(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}},{key:"_computeLabelSizes",value:function(t,e){var n,r,i,a,o,s,u,l,c,f,d,h=this.ctx,p=this._longestTextCache,v=[],g=[],m=0,y=0;for(n=0;n<e;++n){if(a=t[n].label,o=this._resolveTickFontOptions(n),h.font=s=o.string,u=p[s]=p[s]||{data:{},gc:[]},l=o.lineHeight,c=f=0,s6(a)||u6(a)){if(u6(a))for(r=0,i=a.length;r<i;++r)!s6(d=a[r])&&!u6(d)&&(c=A8(h,u.data,u.gc,c,d),f+=l)}else c=A8(h,u.data,u.gc,c,a),f=l;v.push(c),g.push(f),m=Math.max(c,m),y=Math.max(f,y)}!function(t,e){v6(t,(function(t){var n,r=t.gc,i=r.length/2;if(i>e){for(n=0;n<i;++n)delete t.data[r[n]];r.splice(0,i)}}))}(p,e);var b=v.indexOf(m),_=g.indexOf(y),x=function(t){return{width:v[t]||0,height:g[t]||0}};return{first:x(0),last:x(e-1),widest:x(b),highest:x(_),widths:v,heights:g}}},{key:"getLabelForValue",value:function(t){return t}},{key:"getPixelForValue",value:function(t,e){return NaN}},{key:"getValueForPixel",value:function(t){}},{key:"getPixelForTick",value:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}},{key:"getPixelForDecimal",value:function(t){this._reversePixels&&(t=1-t);var e=this._startPixel+t*this._length;return function(t){return K6(t,-32768,32767)}(this._alignToPixels?M8(this.chart,e,0):e)}},{key:"getDecimalForPixel",value:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var t=this.min,e=this.max;return t<0&&e<0?e:t>0&&e>0?t:0}},{key:"getContext",value:function(t){var e=this.ticks||[];if(t>=0&&t<e.length){var n=e[t];return n.$context||(n.$context=function(t,e,n){return $8(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=function(t,e){return $8(t,{scale:e,type:"scale"})}(this.chart.getContext(),this))}},{key:"_tickSize",value:function(){var t=this.options.ticks,e=U6(this.labelRotation),n=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),i=this._getLabelSizes(),a=t.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r<o*n?s/n:o/r}},{key:"_isVisible",value:function(){var t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}},{key:"_computeGridLineItems",value:function(t){var e,n,r,i,a,o,s,u,l,c,f,d,h=this.axis,p=this.chart,v=this.options,g=v.grid,m=v.position,y=v.border,b=g.offset,_=this.isHorizontal(),x=this.ticks.length+(b?1:0),w=K7(g),k=[],S=y.setContext(this.getContext()),E=S.display?S.width:0,C=E/2,A=function(t){return M8(p,t,E)};if("top"===m)e=A(this.bottom),o=this.bottom-w,u=e-C,c=A(t.top)+C,d=t.bottom;else if("bottom"===m)e=A(this.top),c=t.top,d=A(t.bottom)-C,o=e+C,u=this.top+w;else if("left"===m)e=A(this.right),a=this.right-w,s=e-C,l=A(t.left)+C,f=t.right;else if("right"===m)e=A(this.left),l=t.left,f=A(t.right)-C,a=e+C,s=this.left+w;else if("x"===h){if("center"===m)e=A((t.top+t.bottom)/2+.5);else if(l6(m)){var T=Object.keys(m)[0],M=m[T];e=A(this.chart.scales[T].getPixelForValue(M))}c=t.top,d=t.bottom,u=(o=e+C)+w}else if("y"===h){if("center"===m)e=A((t.left+t.right)/2);else if(l6(m)){var O=Object.keys(m)[0],P=m[O];e=A(this.chart.scales[O].getPixelForValue(P))}s=(a=e-C)-w,l=t.left,f=t.right}var R=d6(v.ticks.maxTicksLimit,x),D=Math.max(1,Math.ceil(x/R));for(n=0;n<x;n+=D){var L=this.getContext(n),I=g.setContext(L),N=y.setContext(L),F=I.lineWidth,z=I.color,j=N.dash||[],B=N.dashOffset,V=I.tickWidth,H=I.tickColor,U=I.tickBorderDash||[],W=I.tickBorderDashOffset;void 0!==(r=X7(this,n,b))&&(i=M8(p,r,F),_?a=s=l=f=i:o=u=c=d=i,k.push({tx1:a,ty1:o,tx2:s,ty2:u,x1:l,y1:c,x2:f,y2:d,width:F,color:z,borderDash:j,borderDashOffset:B,tickWidth:V,tickColor:H,tickBorderDash:U,tickBorderDashOffset:W}))}return this._ticksLength=x,this._borderValue=e,k}},{key:"_computeLabelItems",value:function(t){var e,n,r,i,a,o,s,u,l,c,f,d=this.axis,h=this.options,p=h.position,v=h.ticks,g=this.isHorizontal(),m=this.ticks,y=v.align,b=v.crossAlign,_=v.padding,x=v.mirror,w=K7(h.grid),k=w+_,S=x?-_:k,E=-U6(this.labelRotation),C=[],A="middle";if("top"===p)a=this.bottom-S,o=this._getXAxisLabelAlignment();else if("bottom"===p)a=this.top+S,o=this._getXAxisLabelAlignment();else if("left"===p){var T=this._getYAxisLabelAlignment(w);o=T.textAlign,i=T.x}else if("right"===p){var M=this._getYAxisLabelAlignment(w);o=M.textAlign,i=M.x}else if("x"===d){if("center"===p)a=(t.top+t.bottom)/2+k;else if(l6(p)){var O=Object.keys(p)[0],P=p[O];a=this.chart.scales[O].getPixelForValue(P)+k}o=this._getXAxisLabelAlignment()}else if("y"===d){if("center"===p)i=(t.left+t.right)/2-k;else if(l6(p)){var R=Object.keys(p)[0],D=p[R];i=this.chart.scales[R].getPixelForValue(D)}o=this._getYAxisLabelAlignment(w).textAlign}"y"===d&&("start"===y?A="top":"end"===y&&(A="bottom"));var L=this._getLabelSizes();for(e=0,n=m.length;e<n;++e){r=m[e].label;var I=v.setContext(this.getContext(e));s=this.getPixelForTick(e)+v.labelOffset,l=(u=this._resolveTickFontOptions(e)).lineHeight;var N=(c=u6(r)?r.length:1)/2,F=I.color,z=I.textStrokeColor,j=I.textStrokeWidth,B=o;g?(i=s,"inner"===o&&(B=e===n-1?this.options.reverse?"left":"right":0===e?this.options.reverse?"right":"left":"center"),f="top"===p?"near"===b||0!==E?-c*l+l/2:"center"===b?-L.highest.height/2-N*l+l:-L.highest.height+l/2:"near"===b||0!==E?l/2:"center"===b?L.highest.height/2-N*l:L.highest.height-c*l,x&&(f*=-1),0!==E&&!I.showLabelBackdrop&&(i+=l/2*Math.sin(E))):(a=s,f=(1-c)*l/2);var V=void 0;if(I.showLabelBackdrop){var H=Z8(I.backdropPadding),U=L.heights[e],W=L.widths[e],Y=f-H.top,G=0-H.left;switch(A){case"middle":Y-=U/2;break;case"bottom":Y-=U}switch(o){case"center":G-=W/2;break;case"right":G-=W}V={left:G,top:Y,width:W+H.width,height:U+H.height,color:I.backdropColor}}C.push({label:r,font:u,textOffset:f,options:{rotation:E,color:F,strokeColor:z,strokeWidth:j,textAlign:B,textBaseline:A,translation:[i,a],backdrop:V}})}return C}},{key:"_getXAxisLabelAlignment",value:function(){var t=this.options,e=t.position,n=t.ticks;if(-U6(this.labelRotation))return"top"===e?"left":"right";var r="center";return"start"===n.align?r="left":"end"===n.align?r="right":"inner"===n.align&&(r="inner"),r}},{key:"_getYAxisLabelAlignment",value:function(t){var e,n,r=this.options,i=r.position,a=r.ticks,o=a.crossAlign,s=a.mirror,u=a.padding,l=t+u,c=this._getLabelSizes().widest.width;return"left"===i?s?(n=this.right+u,"near"===o?e="left":"center"===o?(e="center",n+=c/2):(e="right",n+=c)):(n=this.right-l,"near"===o?e="right":"center"===o?(e="center",n-=c/2):(e="left",n=this.left)):"right"===i?s?(n=this.left+u,"near"===o?e="right":"center"===o?(e="center",n-=c/2):(e="left",n-=c)):(n=this.left+l,"near"===o?e="left":"center"===o?(e="center",n+=c/2):(e="right",n=this.right)):e="right",{textAlign:e,x:n}}},{key:"_computeLabelArea",value:function(){if(!this.options.ticks.mirror){var t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}}},{key:"drawBackground",value:function(){var t=this.ctx,e=this.options.backgroundColor,n=this.left,r=this.top,i=this.width,a=this.height;e&&(t.save(),t.fillStyle=e,t.fillRect(n,r,i,a),t.restore())}},{key:"getLineWidthForValue",value:function(t){var e=this.options.grid;if(!this._isVisible()||!e.display)return 0;var n=this.ticks.findIndex((function(e){return e.value===t}));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}},{key:"drawGrid",value:function(t){var e,n,r=this.options.grid,i=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),o=function(t,e,n){!n.width||!n.color||(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(r.display)for(e=0,n=a.length;e<n;++e){var s=a[e];r.drawOnChartArea&&o({x:s.x1,y:s.y1},{x:s.x2,y:s.y2},s),r.drawTicks&&o({x:s.tx1,y:s.ty1},{x:s.tx2,y:s.ty2},{color:s.tickColor,width:s.tickWidth,borderDash:s.tickBorderDash,borderDashOffset:s.tickBorderDashOffset})}}},{key:"drawBorder",value:function(){var t=this.chart,e=this.ctx,n=this.options,r=n.border,i=n.grid,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(o){var s,u,l,c,f=i.setContext(this.getContext(0)).lineWidth,d=this._borderValue;this.isHorizontal()?(s=M8(t,this.left,o)-o/2,u=M8(t,this.right,f)+f/2,l=c=d):(l=M8(t,this.top,o)-o/2,c=M8(t,this.bottom,f)+f/2,s=u=d),e.save(),e.lineWidth=a.width,e.strokeStyle=a.color,e.beginPath(),e.moveTo(s,l),e.lineTo(u,c),e.stroke(),e.restore()}}},{key:"drawLabels",value:function(t){if(this.options.ticks.display){var e=this.ctx,n=this._computeLabelArea();n&&L8(e,n);var r,i=zi(this.getLabelItems(t));try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.options,s=a.font;N8(e,a.label,0,a.textOffset,s,o)}}catch(u){i.e(u)}finally{i.f()}n&&I8(e)}}},{key:"drawTitle",value:function(){var t=this.ctx,e=this.options,n=e.position,r=e.title,i=e.reverse;if(r.display){var a=X8(r.font),o=Z8(r.padding),s=r.align,u=a.lineHeight/2;"bottom"===n||"center"===n||l6(n)?(u+=o.bottom,u6(r.text)&&(u+=a.lineHeight*(r.text.length-1))):u+=o.top;var l=function(t,e,n,r){var i,a,o,s=t.top,u=t.left,l=t.bottom,c=t.right,f=t.chart,d=f.chartArea,h=f.scales,p=0,v=l-s,g=c-u;if(t.isHorizontal()){if(a=s8(r,u,c),l6(n)){var m=Object.keys(n)[0],y=n[m];o=h[m].getPixelForValue(y)+v-e}else o="center"===n?(d.bottom+d.top)/2+v-e:q7(t,n,e);i=c-u}else{if(l6(n)){var b=Object.keys(n)[0],_=n[b];a=h[b].getPixelForValue(_)-g+e}else a="center"===n?(d.left+d.right)/2-g+e:q7(t,n,e);o=s8(r,l,s),p="left"===n?-L6:L6}return{titleX:a,titleY:o,maxWidth:i,rotation:p}}(this,u,n,s),c=l.titleX,f=l.titleY,d=l.maxWidth,h=l.rotation;N8(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:Q7(s,n,i),textBaseline:"middle",translation:[c,f]})}}},{key:"draw",value:function(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}},{key:"_layers",value:function(){var t=this,e=this.options,r=e.ticks&&e.ticks.z||0,i=d6(e.grid&&e.grid.z,-1),a=d6(e.border&&e.border.z,0);return this._isVisible()&&this.draw===n.prototype.draw?[{z:i,draw:function(e){t.drawBackground(),t.drawGrid(e),t.drawTitle()}},{z:a,draw:function(){t.drawBorder()}},{z:r,draw:function(e){t.drawLabels(e)}}]:[{z:r,draw:function(e){t.draw(e)}}]}},{key:"getMatchingVisibleMetas",value:function(t){var e,n,r=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",a=[];for(e=0,n=r.length;e<n;++e){var o=r[e];o[i]===this.id&&(!t||o.type===t)&&a.push(o)}return a}},{key:"_resolveTickFontOptions",value:function(t){return X8(this.options.ticks.setContext(this.getContext(t)).font)}},{key:"_maxDigits",value:function(){var t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}]),n}(W7),ttt=function(){function t(e,n,r){Ai(this,t),this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}return Ci(t,[{key:"isForType",value:function(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}},{key:"register",value:function(t){var e,n=Object.getPrototypeOf(t);(function(t){return"id"in t&&"defaults"in t})(n)&&(e=this.register(n));var r=this.items,i=t.id,a=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in r||(r[i]=t,function(t,e,n){var r=_6(Object.create(null),[n?C8.get(n):{},C8.get(e),t.defaults]);C8.set(e,r),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((function(n){var r=n.split("."),i=r.pop(),a=[t].concat(r).join("."),o=e[n].split("."),s=o.pop(),u=o.join(".");C8.route(a,i,u,s)}))}(e,t.defaultRoutes),t.descriptors&&C8.describe(e,t.descriptors)}(t,a,e),this.override&&C8.override(t.id,t.overrides)),a}},{key:"get",value:function(t){return this.items[t]}},{key:"unregister",value:function(t){var e=this.items,n=t.id,r=this.scope;n in e&&delete e[n],r&&n in C8[r]&&(delete C8[r][n],this.override&&delete x8[n])}}]),t}();var ett=function(){function t(){Ai(this,t),this.controllers=new ttt(W9,"datasets",!0),this.elements=new ttt(W7,"elements"),this.plugins=new ttt(Object,"plugins"),this.scales=new ttt(J7,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}return Ci(t,[{key:"add",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e)}},{key:"remove",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e)}},{key:"addControllers",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,this.controllers)}},{key:"addElements",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,this.elements)}},{key:"addPlugins",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,this.plugins)}},{key:"addScales",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("register",e,this.scales)}},{key:"getController",value:function(t){return this._get(t,this.controllers,"controller")}},{key:"getElement",value:function(t){return this._get(t,this.elements,"element")}},{key:"getPlugin",value:function(t){return this._get(t,this.plugins,"plugin")}},{key:"getScale",value:function(t){return this._get(t,this.scales,"scale")}},{key:"removeControllers",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.controllers)}},{key:"removeElements",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.elements)}},{key:"removePlugins",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.plugins)}},{key:"removeScales",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._each("unregister",e,this.scales)}},{key:"_each",value:function(t,e,n){var r=this;mi(e).forEach((function(e){var i=n||r._getRegistryForType(e);n||i.isForType(e)||i===r.plugins&&e.id?r._exec(t,i,e):v6(e,(function(e){var i=n||r._getRegistryForType(e);r._exec(t,i,e)}))}))}},{key:"_exec",value:function(t,e,n){var r=C6(t);p6(n["before"+r],[],n),e[t](n),p6(n["after"+r],[],n)}},{key:"_getRegistryForType",value:function(t){for(var e=0;e<this._typedRegistries.length;e++){var n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}},{key:"_get",value:function(t,e,n){var r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+n+".");return r}}]),t}(),ntt=new ett,rtt=function(){function t(){Ai(this,t),this._init=[]}return Ci(t,[{key:"notify",value:function(t,e,n,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));var i=r?this._descriptors(t).filter(r):this._descriptors(t),a=this._notify(i,t,e,n);return"afterDestroy"===e&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),a}},{key:"_notify",value:function(t,e,n,r){r=r||{};var i,a=zi(t);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.plugin;if(!1===p6(s[n],[e,r,o.options],s)&&r.cancelable)return!1}}catch(u){a.e(u)}finally{a.f()}return!0}},{key:"invalidate",value:function(){s6(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}},{key:"_descriptors",value:function(t){if(this._cache)return this._cache;var e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}},{key:"_createDescriptors",value:function(t,e){var n=t&&t.config,r=d6(n.options&&n.options.plugins,{}),i=function(t){for(var e={},n=[],r=Object.keys(ntt.plugins.items),i=0;i<r.length;i++)n.push(ntt.getPlugin(r[i]));for(var a=t.plugins||[],o=0;o<a.length;o++){var s=a[o];-1===n.indexOf(s)&&(n.push(s),e[s.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==r||e?function(t,e,n,r){var i,a=e.plugins,o=e.localIds,s=[],u=t.getContext(),l=zi(a);try{for(l.s();!(i=l.n()).done;){var c=i.value,f=c.id,d=itt(n[f],r);null!==d&&s.push({plugin:c,options:att(t.config,{plugin:c,local:o[f]},d,u)})}}catch(h){l.e(h)}finally{l.f()}return s}(t,i,r,e):[]}},{key:"_notifyStateChanges",value:function(t){var e=this._oldCache||[],n=this._cache,r=function(t,e){return t.filter((function(t){return!e.some((function(e){return t.plugin.id===e.plugin.id}))}))};this._notify(r(e,n),t,"stop"),this._notify(r(n,e),t,"start")}}]),t}();function itt(t,e){return e||!1!==t?!0===t?{}:t:null}function att(t,e,n,r){var i=e.plugin,a=e.local,o=t.pluginScopeKeys(i),s=t.getOptionScopes(n,o);return a&&i.defaults&&s.push(i.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ott(t,e){var n=C8.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function stt(t,e){if("x"===t||"y"===t||"r"===t||(t=e.axis||function(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}(e.position)||t.length>1&&stt(t[0].toLowerCase(),e)))return t;throw new Error("Cannot determine type of '".concat(name,"' axis. Please provide 'axis' or 'position' option."))}function utt(t){var e=t.options||(t.options={});e.plugins=d6(e.plugins,{}),e.scales=function(t,e){var n=x8[t.type]||{scales:{}},r=e.scales||{},i=ott(t.type,e),a=Object.create(null);return Object.keys(r).forEach((function(t){var e=r[t];if(!l6(e))return console.error("Invalid scale configuration for scale: ".concat(t));if(e._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(t));var o=stt(t,e),s=function(t,e){return t===e?"_index_":"_value_"}(o,i),u=n.scales||{};a[t]=x6(Object.create(null),[{axis:o},e,u[o],u[s]])})),t.data.datasets.forEach((function(n){var i=n.type||t.type,o=n.indexAxis||ott(i,e),s=(x8[i]||{}).scales||{};Object.keys(s).forEach((function(t){var e=function(t,e){var n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,o),i=n[e+"AxisID"]||e;a[i]=a[i]||Object.create(null),x6(a[i],[{axis:e},r[i],s[t]])}))})),Object.keys(a).forEach((function(t){var e=a[t];x6(e,[C8.scales[e.type],C8.scale])})),a}(t,e)}function ltt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}var ctt=new Map,ftt=new Set;function dtt(t,e){var n=ctt.get(t);return n||(n=e(),ctt.set(t,n),ftt.add(n)),n}var htt=function(t,e,n){var r=E6(e,n);void 0!==r&&t.add(r)},ptt=function(){function t(e){Ai(this,t),this._config=function(t){return(t=t||{}).data=ltt(t.data),utt(t),t}(e),this._scopeCache=new Map,this._resolverCache=new Map}return Ci(t,[{key:"platform",get:function(){return this._config.platform}},{key:"type",get:function(){return this._config.type},set:function(t){this._config.type=t}},{key:"data",get:function(){return this._config.data},set:function(t){this._config.data=ltt(t)}},{key:"options",get:function(){return this._config.options},set:function(t){this._config.options=t}},{key:"plugins",get:function(){return this._config.plugins}},{key:"update",value:function(){var t=this._config;this.clearCache(),utt(t)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(t){return dtt(t,(function(){return[["datasets.".concat(t),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(t,e){return dtt("".concat(t,".transition.").concat(e),(function(){return[["datasets.".concat(t,".transitions.").concat(e),"transitions.".concat(e)],["datasets.".concat(t),""]]}))}},{key:"datasetElementScopeKeys",value:function(t,e){return dtt("".concat(t,"-").concat(e),(function(){return[["datasets.".concat(t,".elements.").concat(e),"datasets.".concat(t),"elements.".concat(e),""]]}))}},{key:"pluginScopeKeys",value:function(t){var e=t.id,n=this.type;return dtt("".concat(n,"-plugin-").concat(e),(function(){return[["plugins.".concat(e)].concat(mi(t.additionalOptionScopes||[]))]}))}},{key:"_cachedScopes",value:function(t,e){var n=this._scopeCache,r=n.get(t);return(!r||e)&&(r=new Map,n.set(t,r)),r}},{key:"getOptionScopes",value:function(t,e,n){var r=this.options,i=this.type,a=this._cachedScopes(t,n),o=a.get(e);if(o)return o;var s=new Set;e.forEach((function(e){t&&(s.add(t),e.forEach((function(e){return htt(s,t,e)}))),e.forEach((function(t){return htt(s,r,t)})),e.forEach((function(t){return htt(s,x8[i]||{},t)})),e.forEach((function(t){return htt(s,C8,t)})),e.forEach((function(t){return htt(s,w8,t)}))}));var u=Array.from(s);return 0===u.length&&u.push(Object.create(null)),ftt.has(e)&&a.set(e,u),u}},{key:"chartOptionScopes",value:function(){var t=this.options,e=this.type;return[t,x8[e]||{},C8.datasets[e]||{},{type:e},C8,w8]}},{key:"resolveNamedOptions",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},a=vtt(this._resolverCache,t,r),o=a.resolver,s=a.subPrefixes,u=o;if(mtt(o,e)){i.$shared=!1,n=T6(n)?n():n;var l=this.createResolver(t,n,s);u=J8(o,n,l)}var c,f=zi(e);try{for(f.s();!(c=f.n()).done;){var d=c.value;i[d]=u[d]}}catch(h){f.e(h)}finally{f.f()}return i}},{key:"createResolver",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,i=vtt(this._resolverCache,t,n),a=i.resolver;return l6(e)?J8(a,e,void 0,r):a}}]),t}();function vtt(t,e,n){var r=t.get(e);r||(r=new Map,t.set(e,r));var i=n.join(),a=r.get(i);return a||(a={resolver:Q8(e,n),subPrefixes:n.filter((function(t){return!t.toLowerCase().includes("hover")}))},r.set(i,a)),a}var gtt=function(t){return l6(t)&&Object.getOwnPropertyNames(t).reduce((function(e,n){return e||T6(t[n])}),!1)};function mtt(t,e){var n,r=t9(t),i=r.isScriptable,a=r.isIndexable,o=zi(e);try{for(o.s();!(n=o.n()).done;){var s=n.value,u=i(s),l=a(s),c=(l||u)&&t[s];if(u&&(T6(c)||gtt(c))||l&&u6(c))return!0}}catch(f){o.e(f)}finally{o.f()}return!1}var ytt=["top","bottom","left","right","chartArea"];function btt(t,e){return"top"===t||"bottom"===t||-1===ytt.indexOf(t)&&"x"===e}function _tt(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function xtt(t){var e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),p6(n&&n.onComplete,[t],e)}function wtt(t){var e=t.chart,n=e.options.animation;p6(n&&n.onProgress,[t],e)}function ktt(t){return d9()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var Stt={},Ett=function(t){var e=ktt(t);return Object.values(Stt).filter((function(t){return t.canvas===e})).pop()};function Ctt(t,e,n){for(var r=0,i=Object.keys(t);r<i.length;r++){var a=i[r],o=+a;if(o>=e){var s=t[a];delete t[a],(n>0||o>e)&&(t[o+n]=s)}}}var Att=function(){function t(e,n){var r=this;Ai(this,t);var i=this.config=new ptt(n),a=ktt(e),o=Ett(a);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.");var s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!d9()||("undefined"==typeof OffscreenCanvas?"undefined":Fi(OffscreenCanvas))<"u"&&t instanceof OffscreenCanvas?T7:U7}(a)),this.platform.updateConfig(i);var u=this.platform.acquireContext(a,s.aspectRatio),l=u&&u.canvas,c=l&&l.height,f=l&&l.width;this.id=o6(),this.ctx=u,this.canvas=l,this.width=f,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 rtt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){var n;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((function(t){return r.update(t)}),s.resizeDelay||0),this._dataChanges=[],Stt[this.id]=this,u&&l?(T9.listen(this,"complete",xtt),T9.listen(this,"progress",wtt),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}return Ci(t,[{key:"aspectRatio",get:function(){var t=this.options,e=t.aspectRatio,n=t.maintainAspectRatio,r=this.width,i=this.height,a=this._aspectRatio;return s6(e)?n&&a?a:i?r/i:null:e}},{key:"data",get:function(){return this.config.data},set:function(t){this.config.data=t}},{key:"options",get:function(){return this._options},set:function(t){this.config.options=t}},{key:"registry",get:function(){return ntt}},{key:"_initialize",value:function(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():x9(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}},{key:"clear",value:function(){return O8(this.canvas,this.ctx),this}},{key:"stop",value:function(){return T9.stop(this),this}},{key:"resize",value:function(t,e){T9.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}},{key:"_resize",value:function(t,e){var n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,t,e,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,x9(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),p6(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}},{key:"ensureScalesHaveIDs",value:function(){v6(this.options.scales||{},(function(t,e){t.id=e}))}},{key:"buildOrUpdateScales",value:function(){var t=this,e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce((function(t,e){return t[e]=!1,t}),{}),a=[];n&&(a=a.concat(Object.keys(n).map((function(t){var e=n[t],r=stt(t,e),i="r"===r,a="x"===r;return{options:e,dposition:i?"chartArea":a?"bottom":"left",dtype:i?"radialLinear":a?"category":"linear"}})))),v6(a,(function(n){var a=n.options,o=a.id,s=stt(o,a),u=d6(a.type,n.dtype);(void 0===a.position||btt(a.position,s)!==btt(n.dposition))&&(a.position=n.dposition),i[o]=!0;var l=null;o in r&&r[o].type===u?l=r[o]:(l=new(ntt.getScale(u))({id:o,type:u,ctx:t.ctx,chart:t}),r[l.id]=l);l.init(a,e)})),v6(i,(function(t,e){t||delete r[e]})),v6(r,(function(e){E7(t,e,e.options),k7(t,e)}))}},{key:"_updateMetasets",value:function(){var t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((function(t,e){return t.index-e.index})),n>e){for(var r=e;r<n;++r)this._destroyDatasetMeta(r);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(_tt("order","index"))}},{key:"_removeUnreferencedMetasets",value:function(){var t=this,e=this._metasets,n=this.data.datasets;e.length>n.length&&delete this._stacks,e.forEach((function(e,r){0===n.filter((function(t){return t===e._dataset})).length&&t._destroyDatasetMeta(r)}))}},{key:"buildOrUpdateControllers",value:function(){var t,e,n=[],r=this.data.datasets;for(this._removeUnreferencedMetasets(),t=0,e=r.length;t<e;t++){var i=r[t],a=this.getDatasetMeta(t),o=i.type||this.config.type;if(a.type&&a.type!==o&&(this._destroyDatasetMeta(t),a=this.getDatasetMeta(t)),a.type=o,a.indexAxis=i.indexAxis||ott(o,this.options),a.order=i.order||0,a.index=t,a.label=""+i.label,a.visible=this.isDatasetVisible(t),a.controller)a.controller.updateIndex(t),a.controller.linkScales();else{var s=ntt.getController(o),u=C8.datasets[o],l=u.datasetElementType,c=u.dataElementType;Object.assign(s,{dataElementType:ntt.getElement(c),datasetElementType:l&&ntt.getElement(l)}),a.controller=new s(this,t),n.push(a.controller)}}return this._updateMetasets(),n}},{key:"_resetElements",value:function(){var t=this;v6(this.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),this)}},{key:"reset",value:function(){this._resetElements(),this.notifyPlugins("reset")}},{key:"update",value:function(t){var e=this.config;e.update();var n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1!==this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})){var i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");for(var a=0,o=0,s=this.data.datasets.length;o<s;o++){var u=this.getDatasetMeta(o).controller,l=!r&&-1===i.indexOf(u);u.buildOrUpdateElements(l),a=Math.max(+u.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),r||v6(i,(function(t){t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(_tt("z","_idx"));var c=this._active,f=this._lastEvent;f?this._eventHandler(f,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}}},{key:"_updateScales",value:function(){var t=this;v6(this.scales,(function(e){S7(t,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}},{key:"_checkEventBindings",value:function(){var t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!M6(e,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}},{key:"_updateHiddenIndices",value:function(){var t,e=this._hiddenIndices,n=zi(this._getUniformDataChanges()||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.method,a=r.start,o=r.count;Ctt(e,a,"_removeElements"===i?-o:o)}}catch(s){n.e(s)}finally{n.f()}}},{key:"_getUniformDataChanges",value:function(){var t=this._dataChanges;if(t&&t.length){this._dataChanges=[];for(var e=this.data.datasets.length,n=function(e){return new Set(t.filter((function(t){return t[0]===e})).map((function(t,e){return e+","+t.splice(1).join(",")})))},r=n(0),i=1;i<e;i++)if(!M6(r,n(i)))return;return Array.from(r).map((function(t){return t.split(",")})).map((function(t){return{method:t[1],start:+t[2],count:+t[3]}}))}}},{key:"_updateLayout",value:function(t){var e=this;if(!1!==this.notifyPlugins("beforeLayout",{cancelable:!0})){C7(this,this.width,this.height,t);var n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],v6(this.boxes,(function(t){var n;r&&"chartArea"===t.position||(t.configure&&t.configure(),(n=e._layers).push.apply(n,mi(t._layers())))}),this),this._layers.forEach((function(t,e){t._idx=e})),this.notifyPlugins("afterLayout")}}},{key:"_updateDatasets",value:function(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(var e=0,n=this.data.datasets.length;e<n;++e)this.getDatasetMeta(e).controller.configure();for(var r=0,i=this.data.datasets.length;r<i;++r)this._updateDataset(r,T6(t)?t({datasetIndex:r}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}},{key:"_updateDataset",value:function(t,e){var n=this.getDatasetMeta(t),r={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}},{key:"render",value:function(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(T9.has(this)?this.attached&&!T9.running(this)&&T9.start(this):(this.draw(),xtt({chart:this})))}},{key:"draw",value:function(){var t;if(this._resizeBeforeDraw){var e=this._resizeBeforeDraw,n=e.width,r=e.height;this._resize(n,r),this._resizeBeforeDraw=null}if(this.clear(),!(this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))){var i=this._layers;for(t=0;t<i.length&&i[t].z<=0;++t)i[t].draw(this.chartArea);for(this._drawDatasets();t<i.length;++t)i[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}}},{key:"_getSortedDatasetMetas",value:function(t){var e,n,r=this._sortedMetasets,i=[];for(e=0,n=r.length;e<n;++e){var a=r[e];(!t||a.visible)&&i.push(a)}return i}},{key:"getSortedVisibleDatasetMetas",value:function(){return this._getSortedDatasetMetas(!0)}},{key:"_drawDatasets",value:function(){if(!1!==this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})){for(var t=this.getSortedVisibleDatasetMetas(),e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(t){var e=this.ctx,n=t._clip,r=!n.disabled,i=function(t){var e=t.xScale,n=t.yScale;if(e&&n)return{left:e.left,right:e.right,top:n.top,bottom:n.bottom}}(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(r&&L8(e,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),t.controller.draw(),r&&I8(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}},{key:"isPointInArea",value:function(t){return D8(t,this.chartArea,this._minPadding)}},{key:"getElementsAtEventForMode",value:function(t,e,n,r){var i=c7.modes[e];return"function"==typeof i?i(this,t,n,r):[]}},{key:"getDatasetMeta",value:function(t){var e=this.data.datasets[t],n=this._metasets,r=n.filter((function(t){return t&&t._dataset===e})).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context=$8(null,{chart:this,type:"chart"}))}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(t){var e=this.data.datasets[t];if(!e)return!1;var n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}},{key:"setDatasetVisibility",value:function(t,e){this.getDatasetMeta(t).hidden=!e}},{key:"toggleDataVisibility",value:function(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}},{key:"getDataVisibility",value:function(t){return!this._hiddenIndices[t]}},{key:"_updateVisibility",value:function(t,e,n){var r=n?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,r);A6(e)?(i.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(i,{visible:n}),this.update((function(e){return e.datasetIndex===t?r:void 0})))}},{key:"hide",value:function(t,e){this._updateVisibility(t,e,!1)}},{key:"show",value:function(t,e){this._updateVisibility(t,e,!0)}},{key:"_destroyDatasetMeta",value:function(t){var e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}},{key:"_stop",value:function(){var t,e;for(this.stop(),T9.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}},{key:"destroy",value:function(){this.notifyPlugins("beforeDestroy");var t=this.canvas,e=this.ctx;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),O8(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Stt[this.id],this.notifyPlugins("afterDestroy")}},{key:"toBase64Image",value:function(){var t;return(t=this.canvas).toDataURL.apply(t,arguments)}},{key:"bindEvents",value:function(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}},{key:"bindUserEvents",value:function(){var t=this,e=this._listeners,n=this.platform,r=function(e,n,r){e.offsetX=n,e.offsetY=r,t._eventHandler(e)};v6(this.options.events,(function(i){return function(r,i){n.addEventListener(t,r,i),e[r]=i}(i,r)}))}},{key:"bindResponsiveEvents",value:function(){var t=this;this._responsiveListeners||(this._responsiveListeners={});var e,n=this._responsiveListeners,r=this.platform,i=function(e,i){r.addEventListener(t,e,i),n[e]=i},a=function(e,i){n[e]&&(r.removeEventListener(t,e,i),delete n[e])},o=function(e,n){t.canvas&&t.resize(e,n)},s=function n(){a("attach",n),t.attached=!0,t.resize(),i("resize",o),i("detach",e)};e=function(){t.attached=!1,a("resize",o),t._stop(),t._resize(0,0),i("attach",s)},r.isAttached(this.canvas)?s():e()}},{key:"unbindEvents",value:function(){var t=this;v6(this._listeners,(function(e,n){t.platform.removeEventListener(t,n,e)})),this._listeners={},v6(this._responsiveListeners,(function(e,n){t.platform.removeEventListener(t,n,e)})),this._responsiveListeners=void 0}},{key:"updateHoverStyle",value:function(t,e,n){var r,i,a,o=n?"set":"remove";for("dataset"===e&&this.getDatasetMeta(t[0].datasetIndex).controller["_"+o+"DatasetHoverStyle"](),i=0,a=t.length;i<a;++i){var s=(r=t[i])&&this.getDatasetMeta(r.datasetIndex).controller;s&&s[o+"HoverStyle"](r.element,r.datasetIndex,r.index)}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(t){var e=this,n=this._active||[],r=t.map((function(t){var n=t.datasetIndex,r=t.index,i=e.getDatasetMeta(n);if(!i)throw new Error("No dataset found at index "+n);return{datasetIndex:n,element:i.data[r],index:r}}));!g6(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}},{key:"notifyPlugins",value:function(t,e,n){return this._plugins.notify(this,t,e,n)}},{key:"isPluginEnabled",value:function(t){return 1===this._plugins._cache.filter((function(e){return e.plugin.id===t})).length}},{key:"_updateHoverStyles",value:function(t,e,n){var r=this.options.hover,i=function(t,e){return t.filter((function(t){return!e.some((function(e){return t.datasetIndex===e.datasetIndex&&t.index===e.index}))}))},a=i(e,t),o=n?t:i(t,e);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}},{key:"_eventHandler",value:function(t,e){var n=this,r={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=function(e){return(e.options.events||n.options.events).includes(t.native.type)};if(!1!==this.notifyPlugins("beforeEvent",r,i)){var a=this._handleEvent(t,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}}},{key:"_handleEvent",value:function(t,e,n){var r=this._active,i=void 0===r?[]:r,a=this.options,o=e,s=this._getActiveElements(t,i,n,o),u=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,r){return n&&"mouseout"!==t.type?r?e:t:null}(t,this._lastEvent,n,u);n&&(this._lastEvent=null,p6(a.onHover,[t,s,this],this),u&&p6(a.onClick,[t,s,this],this));var c=!g6(s,i);return(c||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=l,c}},{key:"_getActiveElements",value:function(t,e,n,r){if("mouseout"===t.type)return[];if(!n)return e;var i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}}],[{key:"register",value:function(){ntt.add.apply(ntt,arguments),Ttt()}},{key:"unregister",value:function(){ntt.remove.apply(ntt,arguments),Ttt()}}]),t}();function Ttt(){return v6(Att.instances,(function(t){return t._plugins.invalidate()}))}function Mtt(t,e,n,r){var i=function(t){return Y8(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),a=(n-e)/2,o=Math.min(a,r*e/2),s=function(t){var e=(n-Math.min(a,t))*r/2;return K6(t,0,Math.min(a,e))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:K6(i.innerStart,0,o),innerEnd:K6(i.innerEnd,0,o)}}function Ott(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Ptt(t,e,n,r,i,a){var o=e.x,s=e.y,u=e.startAngle,l=e.pixelMargin,c=e.innerRadius,f=Math.max(e.outerRadius+r+n-l,0),d=c>0?c+r+n+l:0,h=0,p=i-u;if(r){var v=((c>0?c-r:0)+(f>0?f-r:0))/2;h=(p-(0!==v?p*v/(v+r):p))/2}var g=(p-Math.max(.001,p*f-n/O6)/f)/2,m=u+g+h,y=i-g-h,b=Mtt(e,d,f,y-m),_=b.outerStart,x=b.outerEnd,w=b.innerStart,k=b.innerEnd,S=f-_,E=f-x,C=m+_/S,A=y-x/E,T=d+w,M=d+k,O=m+w/T,P=y-k/M;if(t.beginPath(),a){var R=(C+A)/2;if(t.arc(o,s,f,C,R),t.arc(o,s,f,R,A),x>0){var D=Ott(E,A,o,s);t.arc(D.x,D.y,x,A,y+L6)}var L=Ott(M,y,o,s);if(t.lineTo(L.x,L.y),k>0){var I=Ott(M,P,o,s);t.arc(I.x,I.y,k,y+L6,P+Math.PI)}var N=(y-k/d+(m+w/d))/2;if(t.arc(o,s,d,y-k/d,N,!0),t.arc(o,s,d,N,m+w/d,!0),w>0){var F=Ott(T,O,o,s);t.arc(F.x,F.y,w,O+Math.PI,m-L6)}var z=Ott(S,m,o,s);if(t.lineTo(z.x,z.y),_>0){var j=Ott(S,C,o,s);t.arc(j.x,j.y,_,m-L6,C)}}else{t.moveTo(o,s);var B=Math.cos(C)*f+o,V=Math.sin(C)*f+s;t.lineTo(B,V);var H=Math.cos(A)*f+o,U=Math.sin(A)*f+s;t.lineTo(H,U)}t.closePath()}function Rtt(t,e,n,r,i){var a=e.fullCircles,o=e.startAngle,s=e.circumference,u=e.options,l=u.borderWidth,c=u.borderJoinStyle,f="inner"===u.borderAlign;if(l){f?(t.lineWidth=2*l,t.lineJoin=c||"round"):(t.lineWidth=l,t.lineJoin=c||"bevel");var d=e.endAngle;if(a){Ptt(t,e,n,r,d,i);for(var h=0;h<a;++h)t.stroke();isNaN(s)||(d=o+(s%P6||P6))}f&&function(t,e,n){var r=e.startAngle,i=e.pixelMargin,a=e.x,o=e.y,s=e.outerRadius,u=e.innerRadius,l=i/s;t.beginPath(),t.arc(a,o,s,r-l,n+l),u>i?(l=i/u,t.arc(a,o,u,n+l,r-l,!0)):t.arc(a,o,i,n+L6,r-L6),t.closePath(),t.clip()}(t,e,d),a||(Ptt(t,e,n,r,d,i),t.stroke())}}C2(Att,"defaults",C8),C2(Att,"instances",Stt),C2(Att,"overrides",x8),C2(Att,"registry",ntt),C2(Att,"version","4.2.0"),C2(Att,"getChart",Ett);var Dtt=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).options=void 0,r.circumference=void 0,r.startAngle=void 0,r.endAngle=void 0,r.innerRadius=void 0,r.outerRadius=void 0,r.pixelMargin=0,r.fullCircles=0,t&&Object.assign(Pi(r),t),r}return Ci(n,[{key:"inRange",value:function(t,e,n){var r=G6(this.getProps(["x","y"],n),{x:t,y:e}),i=r.angle,a=r.distance,o=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),s=o.startAngle,u=o.endAngle,l=o.innerRadius,c=o.outerRadius,f=o.circumference,d=this.options.spacing/2,h=d6(f,u-s)>=P6||X6(i,s,u),p=$6(a,l+d,c+d);return h&&p}},{key:"getCenterPoint",value:function(t){var e=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),n=e.x,r=e.y,i=e.startAngle,a=e.endAngle,o=e.innerRadius,s=e.outerRadius,u=this.options,l=u.offset,c=(i+a)/2,f=(o+s+u.spacing+l)/2;return{x:n+Math.cos(c)*f,y:r+Math.sin(c)*f}}},{key:"tooltipPosition",value:function(t){return this.getCenterPoint(t)}},{key:"draw",value:function(t){var e=this.options,n=this.circumference,r=(e.offset||0)/4,i=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>P6?Math.floor(n/P6):0,!(0===n||this.innerRadius<0||this.outerRadius<0)){t.save();var o=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(o)*r,Math.sin(o)*r);var s=r*(1-Math.sin(Math.min(O6,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,n,r,i){var a=e.fullCircles,o=e.startAngle,s=e.circumference,u=e.endAngle;if(a){Ptt(t,e,n,r,u,i);for(var l=0;l<a;++l)t.fill();isNaN(s)||(u=o+(s%P6||P6))}Ptt(t,e,n,r,u,i),t.fill()}(t,this,s,i,a),Rtt(t,this,s,i,a),t.restore()}}}]),n}(W7);function Ltt(t,e){var n,r,i,a,o,s=t.getProps(["x","y","base","width","height"],e),u=s.x,l=s.y,c=s.base,f=s.width,d=s.height;return t.horizontal?(o=d/2,n=Math.min(u,c),r=Math.max(u,c),i=l-o,a=l+o):(n=u-(o=f/2),r=u+o,i=Math.min(l,c),a=Math.max(l,c)),{left:n,top:i,right:r,bottom:a}}function Itt(t,e,n,r){return t?0:K6(e,n,r)}function Ntt(t){var e=Ltt(t),n=e.right-e.left,r=e.bottom-e.top,i=function(t,e,n){var r=t.options.borderWidth,i=t.borderSkipped,a=G8(r);return{t:Itt(i.top,a.top,0,n),r:Itt(i.right,a.right,0,e),b:Itt(i.bottom,a.bottom,0,n),l:Itt(i.left,a.left,0,e)}}(t,n/2,r/2),a=function(t,e,n){var r=t.getProps(["enableBorderRadius"]).enableBorderRadius,i=t.options.borderRadius,a=q8(i),o=Math.min(e,n),s=t.borderSkipped,u=r||l6(i);return{topLeft:Itt(!u||s.top||s.left,a.topLeft,0,o),topRight:Itt(!u||s.top||s.right,a.topRight,0,o),bottomLeft:Itt(!u||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:Itt(!u||s.bottom||s.right,a.bottomRight,0,o)}}(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:a},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,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function Ftt(t,e,n,r){var i=null===e,a=null===n,o=t&&!(i&&a)&&Ltt(t,r);return o&&(i||$6(e,o.left,o.right))&&(a||$6(n,o.top,o.bottom))}function ztt(t,e){t.rect(e.x,e.y,e.w,e.h)}function jtt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,a=(t.x+t.w!==n.x+n.w?e:0)-r,o=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+r,y:t.y+i,w:t.w+a,h:t.h+o,radius:t.radius}}C2(Dtt,"id","arc"),C2(Dtt,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),C2(Dtt,"defaultRoutes",{backgroundColor:"backgroundColor"});var Btt=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,r.inflateAmount=void 0,t&&Object.assign(Pi(r),t),r}return Ci(n,[{key:"draw",value:function(t){var e=this.inflateAmount,n=this.options,r=n.borderColor,i=n.backgroundColor,a=Ntt(this),o=a.inner,s=a.outer,u=function(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}(s.radius)?B8:ztt;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),u(t,jtt(s,e,o)),t.clip(),u(t,jtt(o,-e,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),u(t,jtt(o,e)),t.fillStyle=i,t.fill(),t.restore()}},{key:"inRange",value:function(t,e,n){return Ftt(this,t,e,n)}},{key:"inXRange",value:function(t,e){return Ftt(this,t,null,e)}},{key:"inYRange",value:function(t,e){return Ftt(this,null,t,e)}},{key:"getCenterPoint",value:function(t){var e=this.getProps(["x","y","base","horizontal"],t),n=e.x,r=e.y,i=e.base,a=e.horizontal;return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}},{key:"getRange",value:function(t){return"x"===t?this.width/2:this.height/2}}]),n}(W7);C2(Btt,"id","bar"),C2(Btt,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),C2(Btt,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Vtt=function(t,e){var n=t.boxHeight,r=void 0===n?e:n,i=t.boxWidth,a=void 0===i?e:i;return t.usePointStyle&&(r=Math.min(r,e),a=t.pointStyleWidth||Math.min(a,e)),{boxWidth:a,boxHeight:r,itemHeight:Math.max(e,r)}},Htt=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=t.chart,r.options=t.options,r.ctx=t.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Ci(n,[{key:"update",value:function(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}},{key:"setDimensions",value:function(){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)}},{key:"buildLabels",value:function(){var t=this,e=this.options.labels||{},n=p6(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),e.sort&&(n=n.sort((function(n,r){return e.sort(n,r,t.chart.data)}))),this.options.reverse&&n.reverse(),this.legendItems=n}},{key:"fit",value:function(){var t=this.options,e=this.ctx;if(t.display){var n,r,i=t.labels,a=X8(i.font),o=a.size,s=this._computeTitleHeight(),u=Vtt(i,o),l=u.boxWidth,c=u.itemHeight;e.font=a.string,this.isHorizontal()?(n=this.maxWidth,r=this._fitRows(s,o,l,c)+10):(r=this.maxHeight,n=this._fitCols(s,a,l,c)+10),this.width=Math.min(n,t.maxWidth||this.maxWidth),this.height=Math.min(r,t.maxHeight||this.maxHeight)}else this.width=this.height=0}},{key:"_fitRows",value:function(t,e,n,r){var i=this.ctx,a=this.maxWidth,o=this.options.labels.padding,s=this.legendHitBoxes=[],u=this.lineWidths=[0],l=r+o,c=t;i.textAlign="left",i.textBaseline="middle";var f=-1,d=-l;return this.legendItems.forEach((function(t,h){var p=n+e/2+i.measureText(t.text).width;(0===h||u[u.length-1]+p+2*o>a)&&(c+=l,u[u.length-(h>0?0:1)]=0,d+=l,f++),s[h]={left:0,top:d,row:f,width:p,height:r},u[u.length-1]+=p+o})),c}},{key:"_fitCols",value:function(t,e,n,r){var i=this.ctx,a=this.maxHeight,o=this.options.labels.padding,s=this.legendHitBoxes=[],u=this.columnSizes=[],l=a-t,c=o,f=0,d=0,h=0,p=0;return this.legendItems.forEach((function(t,a){var v=function(t,e,n,r,i){var a=function(t,e,n,r){var i=t.text;return i&&"string"!=typeof i&&(i=i.reduce((function(t,e){return t.length>e.length?t:e}))),e+n.size/2+r.measureText(i).width}(r,t,e,n),o=function(t,e,n){var r=t;return"string"!=typeof e.text&&(r=Utt(e,n)),r}(i,r,e.lineHeight);return{itemWidth:a,itemHeight:o}}(n,e,i,t,r),g=v.itemWidth,m=v.itemHeight;a>0&&d+m+2*o>l&&(c+=f+o,u.push({width:f,height:d}),h+=f+o,p++,f=d=0),s[a]={left:h,top:d,col:p,width:g,height:m},f=Math.max(f,g),d+=m+o})),c+=f,u.push({width:f,height:d}),c}},{key:"adjustHitBoxes",value:function(){if(this.options.display){var t=this._computeTitleHeight(),e=this.legendHitBoxes,n=this.options,r=n.align,i=n.labels.padding,a=S9(n.rtl,this.left,this.width);if(this.isHorizontal()){var o,s=0,u=s8(r,this.left+i,this.right-this.lineWidths[s]),l=zi(e);try{for(l.s();!(o=l.n()).done;){var c=o.value;s!==c.row&&(s=c.row,u=s8(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(u),c.width),u+=c.width+i}}catch(g){l.e(g)}finally{l.f()}}else{var f,d=0,h=s8(r,this.top+t+i,this.bottom-this.columnSizes[d].height),p=zi(e);try{for(p.s();!(f=p.n()).done;){var v=f.value;v.col!==d&&(d=v.col,h=s8(r,this.top+t+i,this.bottom-this.columnSizes[d].height)),v.top=h,v.left+=this.left+i,v.left=a.leftForLtr(a.x(v.left),v.width),h+=v.height+i}}catch(g){p.e(g)}finally{p.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){if(this.options.display){var t=this.ctx;L8(t,this),this._draw(),I8(t)}}},{key:"_draw",value:function(){var t,e=this,n=this.options,r=this.columnSizes,i=this.lineWidths,a=this.ctx,o=n.align,s=n.labels,u=C8.color,l=S9(n.rtl,this.left,this.width),c=X8(s.font),f=s.padding,d=c.size,h=d/2;this.drawTitle(),a.textAlign=l.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;var p=Vtt(s,d),v=p.boxWidth,g=p.boxHeight,m=p.itemHeight,y=this.isHorizontal(),b=this._computeTitleHeight();t=y?{x:s8(o,this.left+f,this.right-i[0]),y:this.top+f+b,line:0}:{x:this.left+f,y:s8(o,this.top+b+f,this.bottom-r[0].height),line:0},E9(this.ctx,n.textDirection);var _=m+f;this.legendItems.forEach((function(p,x){a.strokeStyle=p.fontColor,a.fillStyle=p.fontColor;var w=a.measureText(p.text).width,k=l.textAlign(p.textAlign||(p.textAlign=s.textAlign)),S=v+h+w,E=t.x,C=t.y;if(l.setWidth(e.width),y?x>0&&E+S+f>e.right&&(C=t.y+=_,t.line++,E=t.x=s8(o,e.left+f,e.right-i[t.line])):x>0&&C+_>e.bottom&&(E=t.x=E+r[t.line].width+f,t.line++,C=t.y=s8(o,e.top+b+f,e.bottom-r[t.line].height)),function(t,e,n){if(!(isNaN(v)||v<=0||isNaN(g)||g<0)){a.save();var r=d6(n.lineWidth,1);if(a.fillStyle=d6(n.fillStyle,u),a.lineCap=d6(n.lineCap,"butt"),a.lineDashOffset=d6(n.lineDashOffset,0),a.lineJoin=d6(n.lineJoin,"miter"),a.lineWidth=r,a.strokeStyle=d6(n.strokeStyle,u),a.setLineDash(d6(n.lineDash,[])),s.usePointStyle){var i={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},o=l.xPlus(t,v/2);R8(a,i,o,e+h,s.pointStyleWidth&&v)}else{var c=e+Math.max((d-g)/2,0),f=l.leftForLtr(t,v),p=q8(n.borderRadius);a.beginPath(),Object.values(p).some((function(t){return 0!==t}))?B8(a,{x:f,y:c,w:v,h:g,radius:p}):a.rect(f,c,v,g),a.fill(),0!==r&&a.stroke()}a.restore()}}(l.x(E),C,p),E=function(t,e,n,r){return t===(r?"left":"right")?n:"center"===t?(e+n)/2:e}(k,E+v+h,y?E+S:e.right,n.rtl),function(t,e,n){N8(a,n.text,t,e+m/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(E),C,p),y)t.x+=S+f;else if("string"!=typeof p.text){var A=c.lineHeight;t.y+=Utt(p,A)}else t.y+=_})),C9(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var t=this.options,e=t.title,n=X8(e.font),r=Z8(e.padding);if(e.display){var i,a=S9(t.rtl,this.left,this.width),o=this.ctx,s=e.position,u=n.size/2,l=r.top+u,c=this.left,f=this.width;if(this.isHorizontal())f=Math.max.apply(Math,mi(this.lineWidths)),i=this.top+l,c=s8(t.align,c,this.right-f);else{var d=this.columnSizes.reduce((function(t,e){return Math.max(t,e.height)}),0);i=l+s8(t.align,this.top,this.bottom-d-t.labels.padding-this._computeTitleHeight())}var h=s8(s,c,c+f);o.textAlign=a.textAlign(o8(s)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=n.string,N8(o,e.text,h,i,n)}}},{key:"_computeTitleHeight",value:function(){var t=this.options.title,e=X8(t.font),n=Z8(t.padding);return t.display?e.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(t,e){var n,r,i;if($6(t,this.left,this.right)&&$6(e,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if($6(t,(r=i[n]).left,r.left+r.width)&&$6(e,r.top,r.top+r.height))return this.legendItems[n];return null}},{key:"handleEvent",value:function(t){var e=this.options;if(function(t,e){return!(("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)&&(!e.onClick||"click"!==t&&"mouseup"!==t))}(t.type,e)){var n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){var r=this._hoveredItem,i=function(t,e){return null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index}(r,n);r&&!i&&p6(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!i&&p6(e.onHover,[t,n,this],this)}else n&&p6(e.onClick,[t,n,this],this)}}}]),n}(W7);function Utt(t,e){return e*(t.text?t.text.length+.5:0)}var Wtt={id:"legend",_element:Htt,start:function(t,e,n){var r=t.legend=new Htt({ctx:t.ctx,options:n,chart:t});E7(t,r,n),k7(t,r)},stop:function(t){S7(t,t.legend),delete t.legend},beforeUpdate:function(t,e,n){var r=t.legend;E7(t,r,n),r.options=n},afterUpdate:function(t){var e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent:function(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick:function(t,e,n){var 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:function(t){return t.chart.options.color},boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,n=t.legend.options.labels,r=n.usePointStyle,i=n.pointStyle,a=n.textAlign,o=n.color,s=n.useBorderRadius,u=n.borderRadius;return t._getSortedDatasetMetas().map((function(t){var n=t.controller.getStyle(r?0:void 0),l=Z8(n.borderWidth);return{text:e[t.index].label,fillStyle:n.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:n.borderColor,pointStyle:i||n.pointStyle,rotation:n.rotation,textAlign:a||n.textAlign,borderRadius:s&&(u||n.borderRadius),datasetIndex:t.index}}),this)}},title:{color:function(t){return t.chart.options.color},display:!1,position:"center",text:""}},descriptors:{_scriptable:function(t){return!t.startsWith("on")},labels:{_scriptable:function(t){return!["generateLabels","filter","sort"].includes(t)}}}},Ytt=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).chart=t.chart,r.options=t.options,r.ctx=t.ctx,r._padding=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Ci(n,[{key:"update",value:function(t,e){var n=this.options;if(this.left=0,this.top=0,n.display){this.width=this.right=t,this.height=this.bottom=e;var r=u6(n.text)?n.text.length:1;this._padding=Z8(n.padding);var i=r*X8(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}else this.width=this.height=this.right=this.bottom=0}},{key:"isHorizontal",value:function(){var t=this.options.position;return"top"===t||"bottom"===t}},{key:"_drawArgs",value:function(t){var e,n,r,i=this.top,a=this.left,o=this.bottom,s=this.right,u=this.options,l=u.align,c=0;return this.isHorizontal()?(n=s8(l,a,s),r=i+t,e=s-a):("left"===u.position?(n=a+t,r=s8(l,o,i),c=-.5*O6):(n=s-t,r=s8(l,i,o),c=.5*O6),e=o-i),{titleX:n,titleY:r,maxWidth:e,rotation:c}}},{key:"draw",value:function(){var t=this.ctx,e=this.options;if(e.display){var n=X8(e.font),r=n.lineHeight/2+this._padding.top,i=this._drawArgs(r),a=i.titleX,o=i.titleY,s=i.maxWidth,u=i.rotation;N8(t,e.text,0,0,n,{color:e.color,maxWidth:s,rotation:u,textAlign:o8(e.align),textBaseline:"middle",translation:[a,o]})}}}]),n}(W7);var Gtt={id:"title",_element:Ytt,start:function(t,e,n){!function(t,e){var n=new Ytt({ctx:t.ctx,options:e,chart:t});E7(t,n,e),k7(t,n),t.titleBlock=n}(t,n)},stop:function(t){var e=t.titleBlock;S7(t,e),delete t.titleBlock},beforeUpdate:function(t,e,n){var r=t.titleBlock;E7(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}},qtt={average:function(t){if(!t.length)return!1;var e,n,r=0,i=0,a=0;for(e=0,n=t.length;e<n;++e){var o=t[e].element;if(o&&o.hasValue()){var s=o.tooltipPosition();r+=s.x,i+=s.y,++a}}return{x:r/a,y:i/a}},nearest:function(t,e){if(!t.length)return!1;var n,r,i,a=e.x,o=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){var u=t[n].element;if(u&&u.hasValue()){var l=q6(e,u.getCenterPoint());l<s&&(s=l,i=u)}}if(i){var c=i.tooltipPosition();a=c.x,o=c.y}return{x:a,y:o}}};function Ztt(t,e){return e&&(u6(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Xtt(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Ktt(t,e){var n=e.element,r=e.datasetIndex,i=e.index,a=t.getDatasetMeta(r).controller,o=a.getLabelAndValue(i),s=o.label,u=o.value;return{chart:t,label:s,parsed:a.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:u,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function $tt(t,e){var n=t.chart.ctx,r=t.body,i=t.footer,a=t.title,o=e.boxWidth,s=e.boxHeight,u=X8(e.bodyFont),l=X8(e.titleFont),c=X8(e.footerFont),f=a.length,d=i.length,h=r.length,p=Z8(e.padding),v=p.height,g=0,m=r.reduce((function(t,e){return t+e.before.length+e.lines.length+e.after.length}),0);(m+=t.beforeBody.length+t.afterBody.length,f&&(v+=f*l.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),m)&&(v+=h*(e.displayColors?Math.max(s,u.lineHeight):u.lineHeight)+(m-h)*u.lineHeight+(m-1)*e.bodySpacing);d&&(v+=e.footerMarginTop+d*c.lineHeight+(d-1)*e.footerSpacing);var y=0,b=function(t){g=Math.max(g,n.measureText(t).width+y)};return n.save(),n.font=l.string,v6(t.title,b),n.font=u.string,v6(t.beforeBody.concat(t.afterBody),b),y=e.displayColors?o+2+e.boxPadding:0,v6(r,(function(t){v6(t.before,b),v6(t.lines,b),v6(t.after,b)})),y=0,n.font=c.string,v6(t.footer,b),n.restore(),{width:g+=p.width,height:v}}function Qtt(t,e,n,r){var i=n.x,a=n.width,o=t.width,s=t.chartArea,u=s.left,l=s.right,c="center";return"center"===r?c=i<=(u+l)/2?"left":"right":i<=a/2?c="left":i>=o-a/2&&(c="right"),function(t,e,n,r){var i=r.x,a=r.width,o=n.caretSize+n.caretPadding;if("left"===t&&i+a+o>e.width||"right"===t&&i-a-o<0)return!0}(c,t,e,n)&&(c="center"),c}function Jtt(t,e,n){var r=n.yAlign||e.yAlign||function(t,e){var n=e.y,r=e.height;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Qtt(t,e,n,r),yAlign:r}}function tet(t,e,n,r){var i=t.caretSize,a=t.caretPadding,o=t.cornerRadius,s=n.xAlign,u=n.yAlign,l=i+a,c=q8(o),f=c.topLeft,d=c.topRight,h=c.bottomLeft,p=c.bottomRight,v=function(t,e){var n=t.x,r=t.width;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}(e,s),g=function(t,e,n){var r=t.y,i=t.height;return"top"===e?r+=n:r-="bottom"===e?i+n:i/2,r}(e,u,l);return"center"===u?"left"===s?v+=l:"right"===s&&(v-=l):"left"===s?v-=Math.max(f,h)+i:"right"===s&&(v+=Math.max(d,p)+i),{x:K6(v,0,r.width-e.width),y:K6(g,0,r.height-e.height)}}function eet(t,e,n){var r=Z8(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function net(t){return Ztt([],Xtt(t))}function ret(t,e){var n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}var iet={beforeTitle:a6,title:function(t){if(t.length>0){var e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:a6,beforeBody:a6,beforeLabel:a6,label:function(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;var e=t.dataset.label||"";e&&(e+=": ");var n=t.formattedValue;return s6(n)||(e+=n),e},labelColor:function(t){var 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:function(){return this.options.bodyColor},labelPointStyle:function(t){var e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:a6,afterBody:a6,beforeFooter:a6,footer:a6,afterFooter:a6};function aet(t,e,n,r){var i=t[e].call(n,r);return Fi(i)>"u"?iet[e].call(n,r):i}var oet=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this)).opacity=0,r._active=[],r._eventPosition=void 0,r._size=void 0,r._cachedAnimations=void 0,r._tooltipItems=[],r.$animations=void 0,r.$context=void 0,r.chart=t.chart,r.options=t.options,r.dataPoints=void 0,r.title=void 0,r.beforeBody=void 0,r.body=void 0,r.afterBody=void 0,r.footer=void 0,r.xAlign=void 0,r.yAlign=void 0,r.x=void 0,r.y=void 0,r.height=void 0,r.width=void 0,r.caretX=void 0,r.caretY=void 0,r.labelColors=void 0,r.labelPointStyles=void 0,r.labelTextColors=void 0,r}return Ci(n,[{key:"initialize",value:function(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}},{key:"_resolveAnimations",value:function(){var t=this._cachedAnimations;if(t)return t;var e=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&e.options.animation&&n.animations,i=new R9(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}},{key:"getContext",value:function(){return this.$context||(this.$context=function(t,e,n){return $8(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}},{key:"getTitle",value:function(t,e){var n=e.callbacks,r=aet(n,"beforeTitle",this,t),i=aet(n,"title",this,t),a=aet(n,"afterTitle",this,t),o=[];return o=Ztt(o,Xtt(r)),o=Ztt(o,Xtt(i)),o=Ztt(o,Xtt(a))}},{key:"getBeforeBody",value:function(t,e){return net(aet(e.callbacks,"beforeBody",this,t))}},{key:"getBody",value:function(t,e){var n=this,r=e.callbacks,i=[];return v6(t,(function(t){var e={before:[],lines:[],after:[]},a=ret(r,t);Ztt(e.before,Xtt(aet(a,"beforeLabel",n,t))),Ztt(e.lines,aet(a,"label",n,t)),Ztt(e.after,Xtt(aet(a,"afterLabel",n,t))),i.push(e)})),i}},{key:"getAfterBody",value:function(t,e){return net(aet(e.callbacks,"afterBody",this,t))}},{key:"getFooter",value:function(t,e){var n=e.callbacks,r=aet(n,"beforeFooter",this,t),i=aet(n,"footer",this,t),a=aet(n,"afterFooter",this,t),o=[];return o=Ztt(o,Xtt(r)),o=Ztt(o,Xtt(i)),o=Ztt(o,Xtt(a))}},{key:"_createItems",value:function(t){var e,n,r=this,i=this._active,a=this.chart.data,o=[],s=[],u=[],l=[];for(e=0,n=i.length;e<n;++e)l.push(Ktt(this.chart,i[e]));return t.filter&&(l=l.filter((function(e,n,r){return t.filter(e,n,r,a)}))),t.itemSort&&(l=l.sort((function(e,n){return t.itemSort(e,n,a)}))),v6(l,(function(e){var n=ret(t.callbacks,e);o.push(aet(n,"labelColor",r,e)),s.push(aet(n,"labelPointStyle",r,e)),u.push(aet(n,"labelTextColor",r,e))})),this.labelColors=o,this.labelPointStyles=s,this.labelTextColors=u,this.dataPoints=l,l}},{key:"update",value:function(t,e){var n,r=this.options.setContext(this.getContext()),i=this._active,a=[];if(i.length){var o=qtt[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);var s=this._size=$tt(this,r),u=Object.assign({},o,s),l=Jtt(this.chart,r,u),c=tet(r,u,l,this.chart);this.xAlign=l.xAlign,this.yAlign=l.yAlign,n={opacity:1,x:c.x,y:c.y,width:s.width,height:s.height,caretX:o.x,caretY:o.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=a,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:e})}},{key:"drawCaret",value:function(t,e,n,r){var i=this.getCaretPosition(t,n,r);e.lineTo(i.x1,i.y1),e.lineTo(i.x2,i.y2),e.lineTo(i.x3,i.y3)}},{key:"getCaretPosition",value:function(t,e,n){var r,i,a,o,s,u,l=this.xAlign,c=this.yAlign,f=n.caretSize,d=q8(n.cornerRadius),h=d.topLeft,p=d.topRight,v=d.bottomLeft,g=d.bottomRight,m=t.x,y=t.y,b=e.width,_=e.height;return"center"===c?(s=y+_/2,"left"===l?(i=(r=m)-f,o=s+f,u=s-f):(i=(r=m+b)+f,o=s-f,u=s+f),a=r):(i="left"===l?m+Math.max(h,v)+f:"right"===l?m+b-Math.max(p,g)-f:this.caretX,"top"===c?(s=(o=y)-f,r=i-f,a=i+f):(s=(o=y+_)+f,r=i+f,a=i-f),u=o),{x1:r,x2:i,x3:a,y1:o,y2:s,y3:u}}},{key:"drawTitle",value:function(t,e,n){var r,i,a,o=this.title,s=o.length;if(s){var u=S9(n.rtl,this.x,this.width);for(t.x=eet(this,n.titleAlign,n),e.textAlign=u.textAlign(n.titleAlign),e.textBaseline="middle",r=X8(n.titleFont),i=n.titleSpacing,e.fillStyle=n.titleColor,e.font=r.string,a=0;a<s;++a)e.fillText(o[a],u.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i,a+1===s&&(t.y+=n.titleMarginBottom-i)}}},{key:"_drawColorBox",value:function(t,e,n,r,i){var a=this.labelColors[n],o=this.labelPointStyles[n],s=i.boxHeight,u=i.boxWidth,l=i.boxPadding,c=X8(i.bodyFont),f=eet(this,"left",i),d=r.x(f),h=s<c.lineHeight?(c.lineHeight-s)/2:0,p=e.y+h;if(i.usePointStyle){var v={radius:Math.min(u,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},g=r.leftForLtr(d,u)+u/2,m=p+s/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,P8(t,v,g,m),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,P8(t,v,g,m)}else{t.lineWidth=l6(a.borderWidth)?Math.max.apply(Math,mi(Object.values(a.borderWidth))):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;var y=r.leftForLtr(d,u-l),b=r.leftForLtr(r.xPlus(d,1),u-l-2),_=q8(a.borderRadius);Object.values(_).some((function(t){return 0!==t}))?(t.beginPath(),t.fillStyle=i.multiKeyBackground,B8(t,{x:y,y:p,w:u,h:s,radius:_}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),B8(t,{x:b,y:p+1,w:u-2,h:s-2,radius:_}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(y,p,u,s),t.strokeRect(y,p,u,s),t.fillStyle=a.backgroundColor,t.fillRect(b,p+1,u-2,s-2))}t.fillStyle=this.labelTextColors[n]}},{key:"drawBody",value:function(t,e,n){var r,i,a,o,s,u,l,c=this.body,f=n.bodySpacing,d=n.bodyAlign,h=n.displayColors,p=n.boxHeight,v=n.boxWidth,g=n.boxPadding,m=X8(n.bodyFont),y=m.lineHeight,b=0,_=S9(n.rtl,this.x,this.width),x=function(n){e.fillText(n,_.x(t.x+b),t.y+y/2),t.y+=y+f},w=_.textAlign(d);for(e.textAlign=d,e.textBaseline="middle",e.font=m.string,t.x=eet(this,w,n),e.fillStyle=n.bodyColor,v6(this.beforeBody,x),b=h&&"right"!==w?"center"===d?v/2+g:v+2+g:0,o=0,u=c.length;o<u;++o){for(r=c[o],i=this.labelTextColors[o],e.fillStyle=i,v6(r.before,x),a=r.lines,h&&a.length&&(this._drawColorBox(e,t,o,_,n),y=Math.max(m.lineHeight,p)),s=0,l=a.length;s<l;++s)x(a[s]),y=m.lineHeight;v6(r.after,x)}b=0,y=m.lineHeight,v6(this.afterBody,x),t.y-=f}},{key:"drawFooter",value:function(t,e,n){var r,i,a=this.footer,o=a.length;if(o){var s=S9(n.rtl,this.x,this.width);for(t.x=eet(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",r=X8(n.footerFont),e.fillStyle=n.footerColor,e.font=r.string,i=0;i<o;++i)e.fillText(a[i],s.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n.footerSpacing}}},{key:"drawBackground",value:function(t,e,n,r){var i=this.xAlign,a=this.yAlign,o=t.x,s=t.y,u=n.width,l=n.height,c=q8(r.cornerRadius),f=c.topLeft,d=c.topRight,h=c.bottomLeft,p=c.bottomRight;e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(o+f,s),"top"===a&&this.drawCaret(t,e,n,r),e.lineTo(o+u-d,s),e.quadraticCurveTo(o+u,s,o+u,s+d),"center"===a&&"right"===i&&this.drawCaret(t,e,n,r),e.lineTo(o+u,s+l-p),e.quadraticCurveTo(o+u,s+l,o+u-p,s+l),"bottom"===a&&this.drawCaret(t,e,n,r),e.lineTo(o+h,s+l),e.quadraticCurveTo(o,s+l,o,s+l-h),"center"===a&&"left"===i&&this.drawCaret(t,e,n,r),e.lineTo(o,s+f),e.quadraticCurveTo(o,s,o+f,s),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}},{key:"_updateAnimationTarget",value:function(t){var e=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){var a=qtt[t.position].call(this,this._active,this._eventPosition);if(!a)return;var o=this._size=$tt(this,t),s=Object.assign({},a,this._size),u=Jtt(e,t,s),l=tet(t,s,u,e);(r._to!==l.x||i._to!==l.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=o.width,this.height=o.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,l))}}},{key:"_willRender",value:function(){return!!this.opacity}},{key:"draw",value:function(t){var e=this.options.setContext(this.getContext()),n=this.opacity;if(n){this._updateAnimationTarget(e);var r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;var a=Z8(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=n,this.drawBackground(i,t,r,e),E9(t,e.textDirection),i.y+=a.top,this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),C9(t,e.textDirection),t.restore())}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(t,e){var n=this,r=this._active,i=t.map((function(t){var e=t.datasetIndex,r=t.index,i=n.chart.getDatasetMeta(e);if(!i)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:i.data[r],index:r}})),a=!g6(r,i),o=this._positionChanged(i,e);(a||o)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}},{key:"handleEvent",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;var r=this.options,i=this._active||[],a=this._getActiveElements(t,i,e,n),o=this._positionChanged(a,t),s=e||!g6(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}},{key:"_getActiveElements",value:function(t,e,n,r){var i=this.options;if("mouseout"===t.type)return[];if(!r)return e;var a=this.chart.getElementsAtEventForMode(t,i.mode,i,n);return i.reverse&&a.reverse(),a}},{key:"_positionChanged",value:function(t,e){var n=this.caretX,r=this.caretY,i=this.options,a=qtt[i.position].call(this,t,e);return!1!==a&&(n!==a.x||r!==a.y)}}]),n}(W7);C2(oet,"positioners",qtt);var set={id:"tooltip",_element:oet,positioners:qtt,afterInit:function(t,e,n){n&&(t.tooltip=new oet({chart:t,options:n}))},beforeUpdate:function(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset:function(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw:function(t){var e=t.tooltip;if(e&&e._willRender()){var n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",_i(_i({},n),{},{cancelable:!0})))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent:function(t,e){if(t.tooltip){var 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:function(t,e){return e.bodyFont.size},boxWidth:function(t,e){return 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:iet},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:function(t){return"filter"!==t&&"itemSort"!==t&&"external"!==t},_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function uet(t,e,n,r){var i=t.indexOf(e);return-1===i?function(t,e,n,r){return"string"==typeof e?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n}(t,e,n,r):i!==t.lastIndexOf(e)?n:i}function cet(t){var e=this.getLabels();return t>=0&&t<e.length?e[t]:t}var fet=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t))._startValue=void 0,r._valueRange=0,r._addedLabels=[],r}return Ci(n,[{key:"init",value:function(t){var e=this._addedLabels;if(e.length){var r,i=this.getLabels(),a=zi(e);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.index,u=o.label;i[s]===u&&i.splice(s,1)}}catch(l){a.e(l)}finally{a.f()}this._addedLabels=[]}vi(Ni(n.prototype),"init",this).call(this,t)}},{key:"parse",value:function(t,e){if(s6(t))return null;var n=this.getLabels();return function(t,e){return null===t?null:K6(Math.round(t),0,e)}(e=isFinite(e)&&n[e]===t?e:uet(n,t,d6(e,t),this._addedLabels),n.length-1)}},{key:"determineDataLimits",value:function(){var t=this.getUserBounds(),e=t.minDefined,n=t.maxDefined,r=this.getMinMax(!0),i=r.min,a=r.max;"ticks"===this.options.bounds&&(e||(i=0),n||(a=this.getLabels().length-1)),this.min=i,this.max=a}},{key:"buildTicks",value:function(){var t=this.min,e=this.max,n=this.options.offset,r=[],i=this.getLabels();i=0===t&&e===i.length-1?i:i.slice(t,e+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(var a=t;a<=e;a++)r.push({value:a});return r}},{key:"getLabelForValue",value:function(t){return cet.call(this,t)}},{key:"configure",value:function(){vi(Ni(n.prototype),"configure",this).call(this),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}},{key:"getPixelForValue",value:function(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}},{key:"getPixelForTick",value:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}},{key:"getValueForPixel",value:function(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}},{key:"getBasePixel",value:function(){return this.bottom}}]),n}(J7);function det(t,e){var n,r,i,a,o=[],s=t.bounds,u=t.step,l=t.min,c=t.max,f=t.precision,d=t.count,h=t.maxTicks,p=t.maxDigits,v=t.includeBounds,g=u||1,m=h-1,y=e.min,b=e.max,_=!s6(l),x=!s6(c),w=!s6(d),k=(b-y)/(p+1),S=B6((b-y)/m/g)*g;if(S<1e-14&&!_&&!x)return[{value:y},{value:b}];(a=Math.ceil(b/S)-Math.floor(y/S))>m&&(S=B6(a*S/m/g)*g),s6(f)||(n=Math.pow(10,f),S=Math.ceil(S*n)/n),"ticks"===s?(r=Math.floor(y/S)*S,i=Math.ceil(b/S)*S):(r=y,i=b),_&&x&&u&&function(t,e){var n=Math.round(t);return n-e<=t&&n+e>=t}((c-l)/u,S/1e3)?(S=(c-l)/(a=Math.round(Math.min((c-l)/S,h))),r=l,i=c):w?S=((i=x?c:i)-(r=_?l:r))/(a=d-1):a=j6(a=(i-r)/S,Math.round(a),S/1e3)?Math.round(a):Math.ceil(a);var E=Math.max(Y6(S),Y6(r));n=Math.pow(10,s6(f)?E:f),r=Math.round(r*n)/n,i=Math.round(i*n)/n;var C=0;for(_&&(v&&r!==l?(o.push({value:l}),r<l&&C++,j6(Math.round((r+C*S)*n)/n,l,het(l,k,t))&&C++):r<l&&C++);C<a;++C)o.push({value:Math.round((r+C*S)*n)/n});return x&&v&&i!==c?o.length&&j6(o[o.length-1].value,c,het(c,k,t))?o[o.length-1].value=c:o.push({value:c}):(!x||i===c)&&o.push({value:i}),o}function het(t,e,n){var r=n.horizontal,i=U6(n.minRotation),a=(r?Math.sin(i):Math.cos(i))||.001,o=.75*e*(""+t).length;return Math.min(e/a,o)}C2(fet,"id","category"),C2(fet,"defaults",{ticks:{callback:cet}});var pet=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t)).start=void 0,r.end=void 0,r._startValue=void 0,r._endValue=void 0,r._valueRange=0,r}return Ci(n,[{key:"parse",value:function(t,e){return s6(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}},{key:"handleTickRangeOptions",value:function(){var t=this.options.beginAtZero,e=this.getUserBounds(),n=e.minDefined,r=e.maxDefined,i=this.min,a=this.max,o=function(t){return i=n?i:t},s=function(t){return a=r?a:t};if(t){var u=z6(i),l=z6(a);u<0&&l<0?s(0):u>0&&l>0&&o(0)}if(i===a){var c=0===a?1:Math.abs(.05*a);s(a+c),t||o(i-c)}this.min=i,this.max=a}},{key:"getTickLimit",value:function(){var t,e=this.options.ticks,n=e.maxTicksLimit,r=e.stepSize;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1)>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(r," would result generating up to ").concat(t," ticks. Limiting to 1000.")),t=1e3):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}},{key:"computeTickLimit",value:function(){return Number.POSITIVE_INFINITY}},{key:"buildTicks",value:function(){var t=this.options,e=t.ticks,n=this.getTickLimit(),r=det({maxTicks:n=Math.max(2,n),bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&H6(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}},{key:"configure",value:function(){var t=this.ticks,e=this.min,r=this.max;if(vi(Ni(n.prototype),"configure",this).call(this),this.options.offset&&t.length){var i=(r-e)/Math.max(t.length-1,1)/2;e-=i,r+=i}this._startValue=e,this._endValue=r,this._valueRange=r-e}},{key:"getLabelForValue",value:function(t){return y8(t,this.chart.options.locale,this.options.ticks.format)}}]),n}(J7),vet=function(t){Ti(n,t);var e=Mi(n);function n(){return Ai(this,n),e.apply(this,arguments)}return Ci(n,[{key:"determineDataLimits",value:function(){var t=this.getMinMax(!0),e=t.min,n=t.max;this.min=c6(e)?e:0,this.max=c6(n)?n:1,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var t=this.isHorizontal(),e=t?this.width:this.height,n=U6(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,i.lineHeight/r))}},{key:"getPixelForValue",value:function(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}]),n}(pet);C2(vet,"id","linear"),C2(vet,"defaults",{ticks:{callback:_8.formatters.numeric}});var get=function(t){return Math.floor(F6(t))},met=function(t,e){return Math.pow(10,get(t)+e)};function yet(t){return t/Math.pow(10,get(t))==1}function bet(t,e,n){var r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function _et(t,e){var n=e.min,r=e.max;n=f6(t.min,n);for(var i=[],a=get(n),o=function(t,e){for(var n=get(e-t);bet(t,e,n)>10;)n++;for(;bet(t,e,n)<10;)n--;return Math.min(n,get(t))}(n,r),s=o<0?Math.pow(10,Math.abs(o)):1,u=Math.pow(10,o),l=a>o?Math.pow(10,a):0,c=Math.round((n-l)*s)/s,f=Math.floor((n-l)/u/10)*u*10,d=Math.floor((c-f)/Math.pow(10,o)),h=f6(t.min,Math.round((l+f+d*Math.pow(10,o))*s)/s);h<r;)i.push({value:h,major:yet(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(d=2,s=++o>=0?1:s),h=Math.round((l+f+d*Math.pow(10,o))*s)/s;var p=f6(t.max,h);return i.push({value:p,major:yet(p),significand:d}),i}var xet=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t)).start=void 0,r.end=void 0,r._startValue=void 0,r._valueRange=0,r}return Ci(n,[{key:"parse",value:function(t,e){var n=pet.prototype.parse.apply(this,[t,e]);if(0!==n)return c6(n)&&n>0?n:null;this._zero=!0}},{key:"determineDataLimits",value:function(){var t=this.getMinMax(!0),e=t.min,n=t.max;this.min=c6(e)?Math.max(0,e):null,this.max=c6(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!c6(this._userMin)&&(this.min=e===met(this.min,0)?met(this.min,-1):met(this.min,0)),this.handleTickRangeOptions()}},{key:"handleTickRangeOptions",value:function(){var t=this.getUserBounds(),e=t.minDefined,n=t.maxDefined,r=this.min,i=this.max,a=function(t){return r=e?r:t},o=function(t){return i=n?i:t};r===i&&(r<=0?(a(1),o(10)):(a(met(r,-1)),o(met(i,1)))),r<=0&&a(met(i,-1)),i<=0&&o(met(r,1)),this.min=r,this.max=i}},{key:"buildTicks",value:function(){var t=this.options,e=_et({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&H6(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}},{key:"getLabelForValue",value:function(t){return void 0===t?"0":y8(t,this.chart.options.locale,this.options.ticks.format)}},{key:"configure",value:function(){var t=this.min;vi(Ni(n.prototype),"configure",this).call(this),this._startValue=F6(t),this._valueRange=F6(this.max)-F6(t)}},{key:"getPixelForValue",value:function(t){return(void 0===t||0===t)&&(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(F6(t)-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(t){var e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}]),n}(J7);function wet(t){var e=t.ticks;if(e.display&&t.display){var n=Z8(e.backdropPadding);return d6(e.font&&e.font.size,C8.font.size)+n.height}return 0}function ket(t,e,n){return n=u6(n)?n:[n],{w:T8(t,e.string,n),h:n.length*e.lineHeight}}function Eet(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 Cet(t){for(var 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=[],a=t._pointLabels.length,o=t.options.pointLabels,s=o.centerPointLabels?O6/a:0,u=0;u<a;u++){var l=o.setContext(t.getPointLabelContext(u));i[u]=l.padding;var c=t.getPointPosition(u,t.drawingArea+i[u],s),f=X8(l.font),d=ket(t.ctx,f,t._pointLabels[u]);r[u]=d;var h=Z6(t.getIndexAngle(u)+s),p=Math.round(W6(h));Aet(n,e,h,Eet(p,c.x,d.w,0,180),Eet(p,c.y,d.h,90,270))}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){for(var r=[],i=t._pointLabels.length,a=t.options,o=wet(a)/2,s=t.drawingArea,u=a.pointLabels.centerPointLabels?O6/i:0,l=0;l<i;l++){var c=t.getPointPosition(l,s+o+n[l],u),f=Math.round(W6(Z6(c.angle+L6))),d=e[l],h=Oet(c.y,d.h,f),p=Tet(f),v=Met(c.x,d.w,p);r.push({x:c.x,y:h,textAlign:p,left:v,top:h,right:v+d.w,bottom:h+d.h})}return r}(t,r,i)}function Aet(t,e,n,r,i){var a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n)),s=0,u=0;r.start<e.l?(s=(e.l-r.start)/a,t.l=Math.min(t.l,e.l-s)):r.end>e.r&&(s=(r.end-e.r)/a,t.r=Math.max(t.r,e.r+s)),i.start<e.t?(u=(e.t-i.start)/o,t.t=Math.min(t.t,e.t-u)):i.end>e.b&&(u=(i.end-e.b)/o,t.b=Math.max(t.b,e.b+u))}function Tet(t){return 0===t||180===t?"center":t<180?"left":"right"}function Met(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Oet(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Pet(t,e,n,r){var i=t.ctx;if(n)i.arc(t.xCenter,t.yCenter,e,0,P6);else{var a=t.getPointPosition(0,e);i.moveTo(a.x,a.y);for(var o=1;o<r;o++)a=t.getPointPosition(o,e),i.lineTo(a.x,a.y)}}C2(xet,"id","logarithmic"),C2(xet,"defaults",{ticks:{callback:_8.formatters.logarithmic,major:{enabled:!0}}});var Ret=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t)).xCenter=void 0,r.yCenter=void 0,r.drawingArea=void 0,r._pointLabels=[],r._pointLabelItems=[],r}return Ci(n,[{key:"setDimensions",value:function(){var t=this._padding=Z8(wet(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}},{key:"determineDataLimits",value:function(){var t=this.getMinMax(!1),e=t.min,n=t.max;this.min=c6(e)&&!isNaN(e)?e:0,this.max=c6(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/wet(this.options))}},{key:"generateTickLabels",value:function(t){var e=this;pet.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((function(t,n){var r=p6(e.options.pointLabels.callback,[t,n],e);return r||0===r?r:""})).filter((function(t,n){return e.chart.getDataVisibility(n)}))}},{key:"fit",value:function(){var t=this.options;t.display&&t.pointLabels.display?Cet(this):this.setCenterPoint(0,0,0,0)}},{key:"setCenterPoint",value:function(t,e,n,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,r))}},{key:"getIndexAngle",value:function(t){return Z6(t*(P6/(this._pointLabels.length||1))+U6(this.options.startAngle||0))}},{key:"getDistanceFromCenterForValue",value:function(t){if(s6(t))return NaN;var e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}},{key:"getValueForDistanceFromCenter",value:function(t){if(s6(t))return NaN;var e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}},{key:"getPointLabelContext",value:function(t){var e=this._pointLabels||[];if(t>=0&&t<e.length){var n=e[t];return function(t,e,n){return $8(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}},{key:"getPointPosition",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getIndexAngle(t)-L6+n;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}},{key:"getPointPositionForValue",value:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}},{key:"getBasePosition",value:function(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}},{key:"getPointLabelPosition",value:function(t){var e=this._pointLabelItems[t];return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}},{key:"drawBackground",value:function(){var t=this.options,e=t.backgroundColor,n=t.grid.circular;if(e){var r=this.ctx;r.save(),r.beginPath(),Pet(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}},{key:"drawGrid",value:function(){var t,e,n,r=this,i=this.ctx,a=this.options,o=a.angleLines,s=a.grid,u=a.border,l=this._pointLabels.length;if(a.pointLabels.display&&function(t,e){for(var n=t.ctx,r=t.options.pointLabels,i=e-1;i>=0;i--){var a=r.setContext(t.getPointLabelContext(i)),o=X8(a.font),s=t._pointLabelItems[i],u=s.x,l=s.y,c=s.textAlign,f=s.left,d=s.top,h=s.right,p=s.bottom,v=a.backdropColor;if(!s6(v)){var g=q8(a.borderRadius),m=Z8(a.backdropPadding);n.fillStyle=v;var y=f-m.left,b=d-m.top,_=h-f+m.width,x=p-d+m.height;Object.values(g).some((function(t){return 0!==t}))?(n.beginPath(),B8(n,{x:y,y:b,w:_,h:x,radius:g}),n.fill()):n.fillRect(y,b,_,x)}N8(n,t._pointLabels[i],u,l+o.lineHeight/2,o,{color:a.color,textAlign:c,textBaseline:"middle"})}}(this,l),s.display&&this.ticks.forEach((function(t,n){if(0!==n){e=r.getDistanceFromCenterForValue(t.value);var i=r.getContext(n),a=s.setContext(i),o=u.setContext(i);!function(t,e,n,r,i){var a=t.ctx,o=e.circular,s=e.color,u=e.lineWidth;!o&&!r||!s||!u||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=u,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),Pet(t,n,o,r),a.closePath(),a.stroke(),a.restore())}(r,a,e,l,o)}})),o.display){for(i.save(),t=l-1;t>=0;t--){var c=o.setContext(this.getPointLabelContext(t)),f=c.color,d=c.lineWidth;!d||!f||(i.lineWidth=d,i.strokeStyle=f,i.setLineDash(c.borderDash),i.lineDashOffset=c.borderDashOffset,e=this.getDistanceFromCenterForValue(a.ticks.reverse?this.min:this.max),n=this.getPointPosition(t,e),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(n.x,n.y),i.stroke())}i.restore()}}},{key:"drawBorder",value:function(){}},{key:"drawLabels",value:function(){var t=this,e=this.ctx,n=this.options,r=n.ticks;if(r.display){var i,a,o=this.getIndexAngle(0);e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((function(o,s){if(0!==s||n.reverse){var u=r.setContext(t.getContext(s)),l=X8(u.font);if(i=t.getDistanceFromCenterForValue(t.ticks[s].value),u.showLabelBackdrop){e.font=l.string,a=e.measureText(o.label).width,e.fillStyle=u.backdropColor;var c=Z8(u.backdropPadding);e.fillRect(-a/2-c.left,-i-l.size/2-c.top,a+c.width,l.size+c.height)}N8(e,o.label,0,-i,l,{color:u.color})}})),e.restore()}}},{key:"drawTitle",value:function(){}}]),n}(pet);C2(Ret,"id","radialLinear"),C2(Ret,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:_8.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(t){return t},padding:5,centerPointLabels:!1}}),C2(Ret,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),C2(Ret,"descriptors",{angleLines:{_fallback:"grid"}});var Det={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}},Let=Object.keys(Det);function Iet(t,e){return t-e}function Net(t,e){if(s6(e))return null;var n=t._adapter,r=t._parseOpts,i=r.parser,a=r.round,o=r.isoWeekday,s=e;return"function"==typeof i&&(s=i(s)),c6(s)||(s="string"==typeof i?n.parse(s,i):n.parse(s)),null===s?null:(a&&(s="week"!==a||!V6(o)&&!0!==o?n.startOf(s,a):n.startOf(s,"isoWeek",o)),+s)}function Fet(t,e,n,r){for(var i=Let.length,a=Let.indexOf(t);a<i-1;++a){var o=Det[Let[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(s*o.size))<=r)return Let[a]}return Let[i-1]}function zet(t,e,n){if(n){if(n.length){var r=Q6(n,e),i=r.lo,a=r.hi;t[n[i]>=e?n[i]:n[a]]=!0}}else t[e]=!0}function jet(t,e,n){var r,i,a=[],o={},s=e.length;for(r=0;r<s;++r)o[i=e[r]]=r,a.push({value:i,major:!1});return 0!==s&&n?function(t,e,n,r){var i,a,o=t._adapter,s=+o.startOf(e[0].value,r),u=e[e.length-1].value;for(i=s;i<=u;i=+o.add(i,1,r))(a=n[i])>=0&&(e[a].major=!0);return e}(t,a,o,n):a}var Bet=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t))._cache={data:[],labels:[],all:[]},r._unit="day",r._majorUnit=void 0,r._offsets={},r._normalized=!1,r._parseOpts=void 0,r}return Ci(n,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.time||(t.time={}),i=this._adapter=new r7._date(t.adapters.date);i.init(e),x6(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},vi(Ni(n.prototype),"init",this).call(this,t),this._normalized=e.normalized}},{key:"parse",value:function(t,e){return void 0===t?null:Net(this,t)}},{key:"beforeLayout",value:function(){vi(Ni(n.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var t=this.options,e=this._adapter,n=t.time.unit||"day",r=this.getUserBounds(),i=r.min,a=r.max,o=r.minDefined,s=r.maxDefined;function u(t){!o&&!isNaN(t.min)&&(i=Math.min(i,t.min)),!s&&!isNaN(t.max)&&(a=Math.max(a,t.max))}(!o||!s)&&(u(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&u(this.getMinMax(!1))),i=c6(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),a=c6(a)&&!isNaN(a)?a:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}},{key:"_getLabelBounds",value:function(){var t=this.getLabelTimestamps(),e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}},{key:"buildTicks",value:function(){var t=this.options,e=t.time,n=t.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);var i=this.min,a=function(t,e,n){for(var r=0,i=t.length;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}(r,i,this.max);return this._unit=e.unit||(n.autoSkip?Fet(e.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(t,e,n,r,i){for(var a=Let.length-1;a>=Let.indexOf(n);a--){var o=Let[a];if(Det[o].common&&t._adapter.diff(i,r,o)>=e-1)return o}return Let[n?Let.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(var e=Let.indexOf(t)+1,n=Let.length;e<n;++e)if(Det[Let[e]].common)return Let[e]}(this._unit):void 0,this.initOffsets(r),t.reverse&&a.reverse(),jet(this,a,this._majorUnit)}},{key:"afterAutoSkip",value:function(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((function(t){return+t.value})))}},{key:"initOffsets",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=0,i=0;this.options.offset&&n.length&&(t=this.getDecimalForValue(n[0]),r=1===n.length?1-t:(this.getDecimalForValue(n[1])-t)/2,e=this.getDecimalForValue(n[n.length-1]),i=1===n.length?e:(e-this.getDecimalForValue(n[n.length-2]))/2);var a=n.length<3?.5:.25;r=K6(r,0,a),i=K6(i,0,a),this._offsets={start:r,end:i,factor:1/(r+1+i)}}},{key:"_generate",value:function(){var t,e,n=this._adapter,r=this.min,i=this.max,a=this.options,o=a.time,s=o.unit||Fet(o.minUnit,r,i,this._getLabelCapacity(r)),u=d6(a.ticks.stepSize,1),l="week"===s&&o.isoWeekday,c=V6(l)||!0===l,f={},d=r;if(c&&(d=+n.startOf(d,"isoWeek",l)),d=+n.startOf(d,c?"day":s),n.diff(i,r,s)>1e5*u)throw new Error(r+" and "+i+" are too far apart with stepSize of "+u+" "+s);var h="data"===a.ticks.source&&this.getDataTimestamps();for(t=d,e=0;t<i;t=+n.add(t,u,s),e++)zet(f,t,h);return(t===i||"ticks"===a.bounds||1===e)&&zet(f,t,h),Object.keys(f).sort((function(t,e){return t-e})).map((function(t){return+t}))}},{key:"getLabelForValue",value:function(t){var e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}},{key:"format",value:function(t,e){var n=this.options.time.displayFormats,r=this._unit,i=e||n[r];return this._adapter.format(t,i)}},{key:"_tickFormatFunction",value:function(t,e,n,r){var i=this.options,a=i.ticks.callback;if(a)return p6(a,[t,e,n],this);var o=i.time.displayFormats,s=this._unit,u=this._majorUnit,l=s&&o[s],c=u&&o[u],f=n[e],d=u&&c&&f&&f.major;return this._adapter.format(t,r||(d?c:l))}},{key:"generateTickLabels",value:function(t){var e,n,r;for(e=0,n=t.length;e<n;++e)(r=t[e]).label=this._tickFormatFunction(r.value,e,t)}},{key:"getDecimalForValue",value:function(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}},{key:"getPixelForValue",value:function(t){var e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}},{key:"getValueForPixel",value:function(t){var e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}},{key:"_getLabelSize",value:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,r=U6(this.isHorizontal()?e.maxRotation:e.minRotation),i=Math.cos(r),a=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*i+o*a,h:n*a+o*i}}},{key:"_getLabelCapacity",value:function(t){var e=this.options.time,n=e.displayFormats,r=n[e.unit]||n.millisecond,i=this._tickFormatFunction(t,0,jet(this,[t],this._majorUnit),r),a=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}},{key:"getDataTimestamps",value:function(){var t,e,n=this._cache.data||[];if(n.length)return n;var r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,e=r.length;t<e;++t)n=n.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}},{key:"getLabelTimestamps",value:function(){var t,e,n=this._cache.labels||[];if(n.length)return n;var r=this.getLabels();for(t=0,e=r.length;t<e;++t)n.push(Net(this,r[t]));return this._cache.labels=this._normalized?n:this.normalize(n)}},{key:"normalize",value:function(t){return r8(t.sort(Iet))}}]),n}(J7);function Vet(t,e,n){var r,i,a,o,s,u,l,c,f,d,h=0,p=t.length-1;n?(e>=t[h].pos&&e<=t[p].pos&&(h=(r=J6(t,"pos",e)).lo,p=r.hi),l=(i=t[h]).pos,f=i.time,c=(a=t[p]).pos,d=a.time):(e>=t[h].time&&e<=t[p].time&&(h=(o=J6(t,"time",e)).lo,p=o.hi),l=(s=t[h]).time,f=s.pos,c=(u=t[p]).time,d=u.pos);var v=c-l;return v?f+(d-f)*(e-l)/v:f}C2(Bet,"id","time"),C2(Bet,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});var Het=function(t){Ti(n,t);var e=Mi(n);function n(t){var r;return Ai(this,n),(r=e.call(this,t))._table=[],r._minPos=void 0,r._tableRange=void 0,r}return Ci(n,[{key:"initOffsets",value:function(){var t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Vet(e,this.min),this._tableRange=Vet(e,this.max)-this._minPos,vi(Ni(n.prototype),"initOffsets",this).call(this,t)}},{key:"buildLookupTable",value:function(t){var e,n,r,i,a,o=this.min,s=this.max,u=[],l=[];for(e=0,n=t.length;e<n;++e)(i=t[e])>=o&&i<=s&&u.push(i);if(u.length<2)return[{time:o,pos:0},{time:s,pos:1}];for(e=0,n=u.length;e<n;++e)a=u[e+1],r=u[e-1],i=u[e],Math.round((a+r)/2)!==i&&l.push({time:i,pos:e/(n-1)});return l}},{key:"_getTimestampsForTable",value:function(){var t=this._cache.all||[];if(t.length)return t;var e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t}},{key:"getDecimalForValue",value:function(t){return(Vet(this._table,t)-this._minPos)/this._tableRange}},{key:"getValueForPixel",value:function(t){var e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Vet(this._table,n*this._tableRange+this._minPos,!0)}}]),n}(Bet);C2(Het,"id","timeseries"),C2(Het,"defaults",Bet.defaults);var Uet="label";function Wet(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function Yet(t,e){t.labels=e}function Get(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Uet,r=[];t.datasets=e.map((function(e){var i=t.datasets.find((function(t){return t[n]===e[n]}));return i&&e.data&&!r.includes(i)?(r.push(i),Object.assign(i,e),i):_i({},e)}))}function qet(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uet,n={labels:[],datasets:[]};return Yet(n,t.labels),Get(n,t.datasets,e),n}function Zet(t,e){var n=t.height,r=void 0===n?150:n,i=t.width,a=void 0===i?300:i,o=t.redraw,s=void 0!==o&&o,u=t.datasetIdKey,l=t.type,c=t.data,f=t.options,d=t.plugins,h=void 0===d?[]:d,p=t.fallbackContent,v=t.updateMode,g=fi(t,br),m=ki.exports.useRef(null),y=ki.exports.useRef(),b=function(){!m.current||(y.current=new Att(m.current,{type:l,data:qet(c,u),options:f&&_i({},f),plugins:h}),Wet(e,y.current))},_=function(){Wet(e,null),y.current&&(y.current.destroy(),y.current=null)};return ki.exports.useEffect((function(){!s&&y.current&&f&&function(t,e){var n=t.options;n&&e&&Object.assign(n,e)}(y.current,f)}),[s,f]),ki.exports.useEffect((function(){!s&&y.current&&Yet(y.current.config.data,c.labels)}),[s,c.labels]),ki.exports.useEffect((function(){!s&&y.current&&c.datasets&&Get(y.current.config.data,c.datasets,u)}),[s,c.datasets]),ki.exports.useEffect((function(){!y.current||(s?(_(),setTimeout(b)):y.current.update(v))}),[s,f,c.labels,c.datasets,v]),ki.exports.useEffect((function(){!y.current||(_(),setTimeout(b))}),[l]),ki.exports.useEffect((function(){return b(),function(){return _()}}),[]),Z2("canvas",_i(_i({},Object.assign({ref:m,role:"img",height:r,width:a},g)),{},{children:p}))}var Xet=ki.exports.forwardRef(Zet);function Ket(t,e){return Att.register(e),ki.exports.forwardRef((function(e,n){return Z2(Xet,_i({},Object.assign({},e,{ref:n,type:t})))}))}var $et=Ket("bar",J9),Qet=Ket("doughnut",t7),Jet=!!(("undefined"==typeof window?"undefined":Fi(window))<"u"&&window.document&&window.document.createElement)&&getComputedStyle(document.documentElement),tnt=function(t){return function(){return Jet?Jet.getPropertyValue(t):""}},ent=qC.div(Qt||(Qt=ci(["\n position: relative;\n height: calc((100vw / 2) - ",");\n width: 100%;\n"])),N2["--ll-spacing-medium"]),nnt=qC($et)(Jt||(Jt=ci(["\n background-color: ",";\n padding: "," ",";\n border-radius: ",";\n font-family: ",";\n"])),N2["--ll-color-surface"],N2["--ll-spacing-medium"],N2["--ll-spacing-x-large"],N2["--ll-border-radius-medium"],N2["--ll-font-family"]),rnt=qC(Qet)(te||(te=ci(["\n background-color: ",";\n padding: "," ",";\n border-radius: ",";\n font-family: ",";\n"])),N2["--ll-color-surface"],N2["--ll-spacing-medium"],N2["--ll-spacing-x-large"],N2["--ll-border-radius-medium"],N2["--ll-font-family"]),int={options:{indexAxis:"y",elements:{bar:{borderWidth:0,borderRadius:4,backgroundColor:tnt("--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:tnt("--ll-color-on-background"),font:{family:tnt("--ll-font-family"),weight:tnt("--ll-font-weight-medium"),size:14,lineHeight:1.4}}}}};Att.register(fet,vet,Btt);var ant=function(t){return Z2(ent,{children:Z2(nnt,_i({},$3.mergeDeep(int,t)))})},ont=_i({},int.options),snt={options:_i(_i({},ont),{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}}}}),plugins:[{beforeDatasetsDraw:function(t){var e=t.ctx,n=t.data,r=t.scales;r.x,r.y;e.save(),n.datasets.map((function(t){return t.data[0]})).forEach((function(n,r){var i=0===r?0:t.width-30,a=t.height/2-2;e.fillText("".concat(n,"%"),i,a)}))}}]};Att.register(fet,vet,Btt,Gtt,Wtt);var unt=function(t){return Z2(ent,{children:Z2(nnt,_i({},$3.mergeDeep(snt,{data:{labels:[""]}},t)))})},lnt={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:tnt("--ll-color-on-background"),font:{family:tnt("--ll-font-family"),weight:tnt("--ll-font-weight-medium"),size:14,lineHeight:1.4}}}},plugins:[{id:"centerIcon",beforeDatasetsDraw:function(t){var e=t.ctx,n=(t.data,t.chartArea),r=(n.top,n.bottom,n.left,n.right,n.width,n.height,t.scales);r.x,r.y;e.save()}}]};Att.register(Dtt,set,Wtt);var cnt=function(t){var e=t.data.datasets.map((function(t){return _i(_i({},t),{},{backgroundColor:["rgba(0, 132, 145, 1)","rgba(62, 49, 91, 1)","rgba(151, 184, 126, 1)","rgba(249, 249, 153, 1)"]})}));return Z2(ent,{children:Z2(rnt,_i({},$3.mergeDeep(lnt,t,{data:{datasets:e}})))})},fnt=qC.div(ee||(ee=ci(["\n box-sizing: border-box;\n display: block;\n color: ",";\n background: linear-gradient(\n to top,\n ",",\n ","\n );\n padding: "," ",";\n border-radius: ",";\n line-height: 1;\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n height: 275px;\n * {\n box-sizing: inherit;\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n"])),N2["--ll-color-background"],N2["--ll-color-primary-variant1"],N2["--ll-color-primary"],N2["--ll-spacing-medium"],N2["--ll-spacing-x-large"],N2["--ll-border-radius-medium"],N2["--ll-font-family"],N2["--ll-font-size-caption-1"],N2["--ll-font-weight-normal"]),dnt=qC.h1(ne||(ne=ci(["\n font-size: ",";\n margin: 0 0 ",";\n"])),N2["--ll-font-size-p"],N2["--ll-spacing-xxx-large"]),hnt=qC.ul(re||(re=ci(["\n font-size: ",";\n list-style: none;\n padding: 0;\n margin: 0;\n display: flex;\n flex-flow: column;\n row-gap: ",";\n"])),N2["--ll-font-size-h3"],N2["--ll-spacing-large"]),pnt=qC.li(ie||(ie=ci(["\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n align-items: center;\n"]))),vnt=qC.h2(ae||(ae=ci(["\n font-size: inherit;\n line-height: inherit;\n font-weight: inherit;\n margin: 0;\n display: flex;\n flex-flow: row wrap;\n justify-content: flex-start;\n align-items: center;\n column-gap: 8px;\n"]))),gnt=qC.p(oe||(oe=ci(["\n font-size: inherit;\n line-height: inherit;\n font-weight: inherit;\n margin: 0;\n"]))),mnt=qC.span(se||(se=ci(["\n width: 32px;\n height: 32px;\n display: flex;\n flex-flow: row;\n align-items: center;\n justify-content: center;\n"]))),ynt=function(t){var e=t.options,n=e.title,r=e.incomeTypes;return X2(fnt,{children:[Z2(dnt,{children:n}),Z2(hnt,{children:null==r?void 0:r.map((function(t){return X2(pnt,{children:[X2(vnt,{children:[Z2(mnt,{children:Z2(Q2,{SVGElement:t.SVGElement,width:32,height:32,fill:A2.colorPrimary100})}),t.label]}),Z2(gnt,{children:new Intl.NumberFormat("en-EN",{style:"currency",currency:"USD"}).format(t.value)})]},t.variable)}))})]})};var bnt,_nt="dismissableLayer.update",xnt="dismissableLayer.pointerDownOutside",wnt="dismissableLayer.focusOutside",knt=ki.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Snt=ki.exports.forwardRef((function(t,e){var n=t.disableOutsidePointerEvents,r=void 0!==n&&n,i=t.onEscapeKeyDown,a=t.onPointerDownOutside,o=t.onFocusOutside,s=t.onInteractOutside,u=t.onDismiss,l=fi(t,_r),c=ki.exports.useContext(knt),f=wi(ki.exports.useState(null),2),d=f[0],h=f[1],p=wi(ki.exports.useState({}),2)[1],v=f5(e,(function(t){return h(t)})),g=Array.from(c.layers),m=wi(mi(c.layersWithOutsidePointerEventsDisabled).slice(-1),1)[0],y=g.indexOf(m),b=d?g.indexOf(d):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=y,w=function(t){var e=U5(t),n=ki.exports.useRef(!1),r=ki.exports.useRef((function(){}));return ki.exports.useEffect((function(){var t=function(t){if(t.target&&!n.current){var i=function(){Cnt(xnt,e,a,{discrete:!0})},a={originalEvent:t};"touch"===t.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout((function(){document.addEventListener("pointerdown",t)}),0);return function(){window.clearTimeout(i),document.removeEventListener("pointerdown",t),document.removeEventListener("click",r.current)}}),[e]),{onPointerDownCapture:function(){return n.current=!0}}}((function(t){var e=t.target,n=mi(c.branches).some((function(t){return t.contains(e)}));!x||n||(null==a||a(t),null==s||s(t),t.defaultPrevented||null==u||u())})),k=function(t){var e=U5(t),n=ki.exports.useRef(!1);return ki.exports.useEffect((function(){var t=function(t){t.target&&!n.current&&Cnt(wnt,e,{originalEvent:t},{discrete:!1})};return document.addEventListener("focusin",t),function(){return document.removeEventListener("focusin",t)}}),[e]),{onFocusCapture:function(){return n.current=!0},onBlurCapture:function(){return n.current=!1}}}((function(t){var e=t.target;mi(c.branches).some((function(t){return t.contains(e)}))||(null==o||o(t),null==s||s(t),t.defaultPrevented||null==u||u())}));return function(t){var e=U5(t);ki.exports.useEffect((function(){var t=function(t){"Escape"===t.key&&e(t)};return document.addEventListener("keydown",t),function(){return document.removeEventListener("keydown",t)}}),[e])}((function(t){b===c.layers.size-1&&(null==i||i(t),!t.defaultPrevented&&u&&(t.preventDefault(),u()))})),ki.exports.useEffect((function(){if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(bnt=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Ent(),function(){r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=bnt)}}),[d,r,c]),ki.exports.useEffect((function(){return function(){!d||(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Ent())}}),[d,c]),ki.exports.useEffect((function(){var t=function(){return p({})};return document.addEventListener(_nt,t),function(){return document.removeEventListener(_nt,t)}}),[]),ki.exports.createElement(g5.div,o5({},l,{ref:v,style:_i({pointerEvents:_?x?"auto":"none":void 0},t.style),onFocusCapture:H5(t.onFocusCapture,k.onFocusCapture),onBlurCapture:H5(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:H5(t.onPointerDownCapture,w.onPointerDownCapture)}))}));function Ent(){var t=new CustomEvent(_nt);document.dispatchEvent(t)}function Cnt(t,e,n,r){var i=r.discrete,a=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&a.addEventListener(t,e,{once:!0}),i?function(t,e){t&&ma.exports.flushSync((function(){return t.dispatchEvent(e)}))}(a,o):a.dispatchEvent(o)}var Ant=0;function Tnt(){ki.exports.useEffect((function(){var t,e,n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(t=n[0])&&void 0!==t?t:Mnt()),document.body.insertAdjacentElement("beforeend",null!==(e=n[1])&&void 0!==e?e:Mnt()),Ant++,function(){1===Ant&&document.querySelectorAll("[data-radix-focus-guard]").forEach((function(t){return t.remove()})),Ant--}}),[])}function Mnt(){var 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}var Ont="focusScope.autoFocusOnMount",Pnt="focusScope.autoFocusOnUnmount",Rnt={bubbles:!1,cancelable:!0},Dnt=ki.exports.forwardRef((function(t,e){var n=t.loop,r=void 0!==n&&n,i=t.trapped,a=void 0!==i&&i,o=t.onMountAutoFocus,s=t.onUnmountAutoFocus,u=fi(t,xr),l=wi(ki.exports.useState(null),2),c=l[0],f=l[1],d=U5(o),h=U5(s),p=ki.exports.useRef(null),v=f5(e,(function(t){return f(t)})),g=ki.exports.useRef({paused:!1,pause:function(){this.paused=!0},resume:function(){this.paused=!1}}).current;ki.exports.useEffect((function(){if(a){var t=function(t){if(!g.paused&&c){var e=t.target;c.contains(e)?p.current=e:znt(p.current,{select:!0})}},e=function(t){g.paused||!c||c.contains(t.relatedTarget)||znt(p.current,{select:!0})};return document.addEventListener("focusin",t),document.addEventListener("focusout",e),function(){document.removeEventListener("focusin",t),document.removeEventListener("focusout",e)}}}),[a,c,g.paused]),ki.exports.useEffect((function(){if(c){jnt.add(g);var t=document.activeElement;if(!c.contains(t)){var e=new CustomEvent(Ont,Rnt);c.addEventListener(Ont,d),c.dispatchEvent(e),e.defaultPrevented||(function(t){var e,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,r=void 0!==n&&n,i=document.activeElement,a=zi(t);try{for(a.s();!(e=a.n()).done;){if(znt(e.value,{select:r}),document.activeElement!==i)return}}catch(o){a.e(o)}finally{a.f()}}(function(t){return t.filter((function(t){return"A"!==t.tagName}))}(Lnt(c)),{select:!0}),document.activeElement===t&&znt(c))}return function(){c.removeEventListener(Ont,d),setTimeout((function(){var e=new CustomEvent(Pnt,Rnt);c.addEventListener(Pnt,h),c.dispatchEvent(e),e.defaultPrevented||znt(null!=t?t:document.body,{select:!0}),c.removeEventListener(Pnt,h),jnt.remove(g)}),0)}}}),[c,d,h,g]);var m=ki.exports.useCallback((function(t){if((r||a)&&!g.paused){var e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,n=document.activeElement;if(e&&n){var i=t.currentTarget,o=function(t){var e=Lnt(t),n=Int(e,t),r=Int(e.reverse(),t);return[n,r]}(i),s=wi(o,2),u=s[0],l=s[1];u&&l?t.shiftKey||n!==l?t.shiftKey&&n===u&&(t.preventDefault(),r&&znt(l,{select:!0})):(t.preventDefault(),r&&znt(u,{select:!0})):n===i&&t.preventDefault()}}}),[r,a,g.paused]);return ki.exports.createElement(g5.div,o5({tabIndex:-1},u,{ref:v,onKeyDown:m}))}));function Lnt(t){for(var e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:function(t){var e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});n.nextNode();)e.push(n.currentNode);return e}function Int(t,e){var n,r=zi(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!Nnt(i,{upTo:e}))return i}}catch(a){r.e(a)}finally{r.f()}}function Nnt(t,e){var n=e.upTo;if("hidden"===getComputedStyle(t).visibility)return!0;for(;t;){if(void 0!==n&&t===n)return!1;if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}function Fnt(t){return t instanceof HTMLInputElement&&"select"in t}function znt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.select,r=void 0!==n&&n;if(t&&t.focus){var i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&Fnt(t)&&r&&t.select()}}var jnt=function(){var t=[];return{add:function(e){var n=t[0];e!==n&&(null==n||n.pause()),(t=Bnt(t,e)).unshift(e)},remove:function(e){var n;null===(n=(t=Bnt(t,e))[0])||void 0===n||n.resume()}}}();function Bnt(t,e){var n=mi(t),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}var Vnt=ki.exports.forwardRef((function(t,e){var n,r=t.container,i=void 0===r?null==globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body:r,a=fi(t,wr);return i?kg.createPortal(ki.exports.createElement(g5.div,o5({},a,{ref:e})),i):null})),Hnt=ki.exports.forwardRef((function(t,e){return ki.exports.createElement(g5.span,o5({},t,{ref:e,style:_i({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)}))})),Unt=new WeakMap,Wnt=new WeakMap,Ynt={},Gnt=0,qnt=function(t,e,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=e||function(t){return("undefined"==typeof document?"undefined":Fi(document))>"u"?null:(Array.isArray(t)?t[0]:t).ownerDocument.body}(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),function(t,e,n,r){var i=Array.isArray(t)?t:[t];Ynt[n]||(Ynt[n]=new WeakMap);var a=Ynt[n],o=[],s=new Set,u=new Set(i);return i.forEach((function t(e){!e||s.has(e)||(s.add(e),t(e.parentNode))})),function t(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))t(e);else{var i=e.getAttribute(r),u=null!==i&&"false"!==i,l=(Unt.get(e)||0)+1,c=(a.get(e)||0)+1;Unt.set(e,l),a.set(e,c),o.push(e),1===l&&u&&Wnt.set(e,!0),1===c&&e.setAttribute(n,"true"),u||e.setAttribute(r,"true")}}))}(e),s.clear(),Gnt++,function(){o.forEach((function(t){var e=Unt.get(t)-1,i=a.get(t)-1;Unt.set(t,e),a.set(t,i),e||(Wnt.has(t)||t.removeAttribute(r),Wnt.delete(t)),i||t.removeAttribute(n)})),--Gnt||(Unt=new WeakMap,Unt=new WeakMap,Wnt=new WeakMap,Ynt={})}}(r,i,n,"aria-hidden")):function(){return null}},Znt=function(){return Znt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Znt.apply(this,arguments)};function Xnt(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(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}var Knt="right-scroll-bar-position",$nt="width-before-scroll-bar";function Qnt(t,e){return function(t,e){var n=ki.exports.useState((function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(t){var e=n.value;e!==t&&(n.value=t,n.callback(t,e))}}}}))[0];return n.callback=e,n.facade}(e||null,(function(e){return t.forEach((function(t){return function(t,e){return"function"==typeof t?t(e):t&&(t.current=e),t}(t,e)}))}))}function Jnt(t){return t}var trt=function(t){var e=t.sideCar,n=Xnt(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 Z2(r,_i({},Znt({},n)))};trt.isSideCarExport=!0;var ert=function(t){void 0===t&&(t={});var e=function(t,e){void 0===e&&(e=Jnt);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(t){var i=e(t,r);return n.push(i),function(){n=n.filter((function(t){return t!==i}))}},assignSyncMedium:function(t){for(r=!0;n.length;){var e=n;n=[],e.forEach(t)}n={push:function(e){return t(e)},filter:function(){return n}}},assignMedium:function(t){r=!0;var e=[];if(n.length){var i=n;n=[],i.forEach(t),e=n}var a=function(){var n=e;e=[],n.forEach(t)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(t){e.push(t),o()},filter:function(t){return e=e.filter(t),n}}}};return i}(null);return e.options=Znt({async:!0,ssr:!1},t),e}(),nrt=function(){},rrt=ki.exports.forwardRef((function(t,e){var n=ki.exports.useRef(null),r=ki.exports.useState({onScrollCapture:nrt,onWheelCapture:nrt,onTouchMoveCapture:nrt}),i=r[0],a=r[1],o=t.forwardProps,s=t.children,u=t.className,l=t.removeScrollBar,c=t.enabled,f=t.shards,d=t.sideCar,h=t.noIsolation,p=t.inert,v=t.allowPinchZoom,g=t.as,m=void 0===g?"div":g,y=Xnt(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=d,_=Qnt([n,e]),x=Znt(Znt({},y),i);return X2(q2,{children:[c&&Z2(b,{sideCar:ert,removeScrollBar:l,shards:f,noIsolation:h,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),o?ki.exports.cloneElement(ki.exports.Children.only(s),Znt(Znt({},x),{ref:_})):Z2(m,_i(_i({},Znt({},x,{className:u,ref:_})),{},{children:s}))]})}));rrt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},rrt.classNames={fullWidth:$nt,zeroRight:Knt};function irt(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=function(){if(("undefined"==typeof __webpack_nonce__?"undefined":Fi(__webpack_nonce__))<"u")return __webpack_nonce__}();return e&&t.setAttribute("nonce",e),t}var art=function(){var t=0,e=null;return{add:function(n){0==t&&(e=irt())&&(function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}(e,n),function(t){(document.head||document.getElementsByTagName("head")[0]).appendChild(t)}(e)),t++},remove:function(){!--t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},ort=function(){var t=function(){var t=art();return function(e,n){ki.exports.useEffect((function(){return t.add(e),function(){t.remove()}}),[e&&n])}}();return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},srt={left:0,top:0,right:0,gap:0},urt=function(t){return parseInt(t||"",10)||0},lrt=function(t){if(void 0===t&&(t="margin"),("undefined"==typeof window?"undefined":Fi(window))>"u")return srt;var e=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],r=e["padding"===t?"paddingTop":"marginTop"],i=e["padding"===t?"paddingRight":"marginRight"];return[urt(n),urt(r),urt(i)]}(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])}},crt=ort(),frt=function(t,e,n,r){var i=t.left,a=t.top,o=t.right,s=t.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([e&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Knt," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat($nt," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Knt," .").concat(Knt," {\n right: 0 ").concat(r,";\n }\n \n .").concat($nt," .").concat($nt," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},drt=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=void 0===r?"margin":r,a=ki.exports.useMemo((function(){return lrt(i)}),[i]);return Z2(crt,{styles:frt(a,!e,i,n?"":"!important")})},hrt=!1;if(("undefined"==typeof window?"undefined":Fi(window))<"u")try{var prt=Object.defineProperty({},"passive",{get:function(){return hrt=!0,!0}});window.addEventListener("test",prt,prt),window.removeEventListener("test",prt,prt)}catch(gft){hrt=!1}var vrt=!!hrt&&{passive:!1},grt=function(t,e){var n=e;do{if(("undefined"==typeof ShadowRoot?"undefined":Fi(ShadowRoot))<"u"&&n instanceof ShadowRoot&&(n=n.host),mrt(t,n)){var r=yrt(t,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},mrt=function(t,e){return"v"===t?function(t){var e=window.getComputedStyle(t);return"hidden"!==e.overflowY&&!(e.overflowY===e.overflowX&&"visible"===e.overflowY)}(e):function(t){var e=window.getComputedStyle(t);return"hidden"!==e.overflowX&&!(e.overflowY===e.overflowX&&"visible"===e.overflowX)}(e)},yrt=function(t,e){return"v"===t?function(t){return[t.scrollTop,t.scrollHeight,t.clientHeight]}(e):function(t){return[t.scrollLeft,t.scrollWidth,t.clientWidth]}(e)},brt=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},_rt=function(t){return[t.deltaX,t.deltaY]},xrt=function(t){return t&&"current"in t?t.current:t},wrt=function(t){return"\n .block-interactivity-".concat(t," {pointer-events: none;}\n .allow-interactivity-").concat(t," {pointer-events: all;}\n")},krt=0,Srt=[];var Ert=function(t,e){return t.useMedium(e),trt}(ert,(function(t){var e=ki.exports.useRef([]),n=ki.exports.useRef([0,0]),r=ki.exports.useRef(),i=ki.exports.useState(krt++)[0],a=ki.exports.useState((function(){return ort()}))[0],o=ki.exports.useRef(t);ki.exports.useEffect((function(){o.current=t}),[t]),ki.exports.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}([t.lockRef.current],(t.shards||[]).map(xrt),!0).filter(Boolean);return e.forEach((function(t){return t.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(t){return t.classList.remove("allow-interactivity-".concat(i))}))}}}),[t.inert,t.lockRef.current,t.shards]);var s=ki.exports.useCallback((function(t,e){if("touches"in t&&2===t.touches.length)return!o.current.allowPinchZoom;var i,a=brt(t),s=n.current,u="deltaX"in t?t.deltaX:s[0]-a[0],l="deltaY"in t?t.deltaY:s[1]-a[1],c=t.target,f=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in t&&"h"===f&&"range"===c.type)return!1;var d=grt(f,c);if(!d)return!0;if(d?i=f:(i="v"===f?"h":"v",d=grt(f,c)),!d)return!1;if(!r.current&&"changedTouches"in t&&(u||l)&&(r.current=i),!i)return!0;var h=r.current||i;return function(t,e,n,r,i){var a=function(t,e){return"h"===t&&"rtl"===e?-1:1}(t,window.getComputedStyle(e).direction),o=a*r,s=n.target,u=e.contains(s),l=!1,c=o>0,f=0,d=0;do{var h=yrt(t,s),p=h[0],v=h[1]-h[2]-a*p;(p||v)&&mrt(t,s)&&(f+=v,d+=p),s=s.parentNode}while(!u&&s!==document.body||u&&(e.contains(s)||e===s));return(c&&(i&&0===f||!i&&o>f)||!c&&(i&&0===d||!i&&-o>d))&&(l=!0),l}(h,e,t,"h"===h?u:l,!0)}),[]),u=ki.exports.useCallback((function(t){var n=t;if(Srt.length&&Srt[Srt.length-1]===a){var r="deltaY"in n?_rt(n):brt(n),i=e.current.filter((function(t){return t.name===n.type&&t.target===n.target&&function(t,e){return t[0]===e[0]&&t[1]===e[1]}(t.delta,r)}))[0];if(i&&i.should)return void n.preventDefault();if(!i){var u=(o.current.shards||[]).map(xrt).filter(Boolean).filter((function(t){return t.contains(n.target)}));(u.length>0?s(n,u[0]):!o.current.noIsolation)&&n.preventDefault()}}}),[]),l=ki.exports.useCallback((function(t,n,r,i){var a={name:t,delta:n,target:r,should:i};e.current.push(a),setTimeout((function(){e.current=e.current.filter((function(t){return t!==a}))}),1)}),[]),c=ki.exports.useCallback((function(t){n.current=brt(t),r.current=void 0}),[]),f=ki.exports.useCallback((function(e){l(e.type,_rt(e),e.target,s(e,t.lockRef.current))}),[]),d=ki.exports.useCallback((function(e){l(e.type,brt(e),e.target,s(e,t.lockRef.current))}),[]);ki.exports.useEffect((function(){return Srt.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",u,vrt),document.addEventListener("touchmove",u,vrt),document.addEventListener("touchstart",c,vrt),function(){Srt=Srt.filter((function(t){return t!==a})),document.removeEventListener("wheel",u,vrt),document.removeEventListener("touchmove",u,vrt),document.removeEventListener("touchstart",c,vrt)}}),[]);var h=t.removeScrollBar,p=t.inert;return X2(q2,{children:[p?Z2(a,{styles:wrt(i)}):null,h?Z2(drt,{gapMode:"margin"}):null]})})),Crt=ki.exports.forwardRef((function(t,e){return Z2(rrt,_i({},Znt({},t,{ref:e,sideCar:Ert})))}));Crt.classNames=rrt.classNames;var Art=Crt,Trt=[" ","Enter","ArrowUp","ArrowDown"],Mrt=[" ","Enter"],Ort="Select",Prt=wi(s3(Ort),3),Rrt=Prt[0],Drt=Prt[1],Lrt=wi(s5(Ort,[Prt[2]]),2),Irt=Lrt[0],Nrt=Lrt[1],Frt=wi(Irt(Ort),2),zrt=Frt[0],jrt=Frt[1],Brt=wi(Irt(Ort),2),Vrt=Brt[0],Hrt=Brt[1],Urt=function(t){var e=t.__scopeSelect,n=t.children,r=t.open,i=t.defaultOpen,a=t.onOpenChange,o=t.value,s=t.defaultValue,u=t.onValueChange,l=t.dir,c=t.name,f=t.autoComplete,d=wi(ki.exports.useState(null),2),h=d[0],p=d[1],v=wi(ki.exports.useState(null),2),g=v[0],m=v[1],y=wi(ki.exports.useState(!1),2),b=y[0],_=y[1],x=o3(l),w=wi(W5({prop:r,defaultProp:i,onChange:a}),2),k=w[0],S=void 0!==k&&k,E=w[1],C=wi(W5({prop:o,defaultProp:s,onChange:u}),2),A=C[0],T=C[1],M=ki.exports.useRef(null),O=!h||Boolean(h.closest("form")),P=wi(ki.exports.useState(new Set),2),R=P[0],D=P[1],L=Array.from(R).map((function(t){return t.props.value})).join(";");return ki.exports.createElement(zrt,{scope:e,trigger:h,onTriggerChange:p,valueNode:g,onValueNodeChange:m,valueNodeHasChildren:b,onValueNodeHasChildrenChange:_,contentId:_5(),value:A,onValueChange:T,open:S,onOpenChange:E,dir:x,triggerPointerDownPosRef:M},ki.exports.createElement(Rrt.Provider,{scope:e},ki.exports.createElement(Vrt,{scope:t.__scopeSelect,onNativeOptionAdd:ki.exports.useCallback((function(t){D((function(e){return new Set(e).add(t)}))}),[]),onNativeOptionRemove:ki.exports.useCallback((function(t){D((function(e){var n=new Set(e);return n.delete(t),n}))}),[])},n)),O?ki.exports.createElement(bit,{key:L,"aria-hidden":!0,tabIndex:-1,name:c,autoComplete:f,value:A,onChange:function(t){return T(t.target.value)}},Array.from(R)):null)},Wrt=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.disabled,i=void 0!==r&&r,a=t["aria-labelledby"],o=fi(t,kr),s=jrt("SelectTrigger",n),u=f5(e,s.onTriggerChange),l=Drt(n),c=C5(s.trigger),f=a||c,d=_it((function(t){var e=l().filter((function(t){return!t.disabled})),n=e.find((function(t){return t.value===s.value})),r=xit(e,t,n);void 0!==r&&s.onValueChange(r.value)})),h=wi(d,3),p=h[0],v=h[1],g=h[2],m=function(){i||(s.onOpenChange(!0),g())};return ki.exports.createElement(g5.button,o5({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-autocomplete":"none","aria-labelledby":f,dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":void 0===s.value?"":void 0},o,{ref:u,onPointerDown:H5(o.onPointerDown,(function(t){t.target.releasePointerCapture(t.pointerId),0===t.button&&!1===t.ctrlKey&&(m(),s.triggerPointerDownPosRef.current={x:Math.round(t.pageX),y:Math.round(t.pageY)},t.preventDefault())})),onKeyDown:H5(o.onKeyDown,(function(t){var e=""!==p.current;!(t.ctrlKey||t.altKey||t.metaKey)&&1===t.key.length&&v(t.key),(!e||" "!==t.key)&&Trt.includes(t.key)&&(m(),t.preventDefault())}))}))})),Yrt=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=(t.className,t.style,t.children),i=t.placeholder,a=fi(t,Sr),o=jrt("SelectValue",n),s=o.onValueNodeHasChildrenChange,u=void 0!==r,l=f5(e,o.onValueNodeChange);return m5((function(){s(u)}),[s,u]),ki.exports.createElement(g5.span,o5({},a,{ref:l,style:{pointerEvents:"none"}}),void 0===o.value&&void 0!==i?i:r)})),Grt=ki.exports.forwardRef((function(t,e){t.__scopeSelect;var n=t.children,r=fi(t,Er);return ki.exports.createElement(g5.span,o5({"aria-hidden":!0},r,{ref:e}),n||"▼")})),qrt=function(t){return ki.exports.createElement(Vnt,o5({asChild:!0},t))},Zrt="SelectContent",Xrt=ki.exports.forwardRef((function(t,e){var n=jrt(Zrt,t.__scopeSelect),r=wi(ki.exports.useState(),2),i=r[0],a=r[1];return m5((function(){a(new DocumentFragment)}),[]),ki.exports.createElement(ki.exports.Fragment,null,n.open?ki.exports.createElement(tit,o5({},t,{ref:e})):i?ma.exports.createPortal(ki.exports.createElement(Qrt,{scope:t.__scopeSelect},ki.exports.createElement(Rrt.Slot,{scope:t.__scopeSelect},ki.exports.createElement("div",null,t.children))),i):null)})),Krt=10,$rt=wi(Irt(Zrt),2),Qrt=$rt[0],Jrt=$rt[1],tit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.onCloseAutoFocus,i=fi(t,Cr),a=jrt(Zrt,n),o=wi(ki.exports.useState(null),2),s=o[0],u=o[1],l=wi(ki.exports.useState(null),2),c=l[0],f=l[1],d=wi(ki.exports.useState(null),2),h=d[0],p=d[1],v=f5(e,(function(t){return f(t)})),g=wi(ki.exports.useState(null),2),m=g[0],y=g[1],b=wi(ki.exports.useState(null),2),_=b[0],x=b[1],w=Drt(n),k=wi(ki.exports.useState(!1),2),S=k[0],E=k[1],C=ki.exports.useRef(!0),A=ki.exports.useRef(!1),T=ki.exports.useRef(!1);ki.exports.useEffect((function(){if(c)return qnt(c)}),[c]),Tnt();var M=wi(ki.exports.useState(),2),O=M[0],P=M[1];m5((function(){c&&P(window.getComputedStyle(c).zIndex)}),[c]);var R=ki.exports.useCallback((function(t){var e,n=w().map((function(t){return t.ref.current})),r=li(n),i=r[0],a=wi(r.slice(1).slice(-1),1)[0],o=document.activeElement,s=zi(t);try{for(s.s();!(e=s.n()).done;){var u=e.value;if(u===o||(null==u||u.scrollIntoView({block:"nearest"}),u===i&&h&&(h.scrollTop=0),u===a&&h&&(h.scrollTop=h.scrollHeight),null==u||u.focus(),document.activeElement!==o))return}}catch(l){s.e(l)}finally{s.f()}}),[w,h]),D=ki.exports.useCallback((function(){if(a.trigger&&a.valueNode&&s&&c&&h&&m&&_){var t=a.trigger.getBoundingClientRect(),e=c.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),r=_.getBoundingClientRect();if("rtl"!==a.dir){var i=r.left-e.left,o=n.left-i,u=t.left-o,l=t.width+u,f=Math.max(l,e.width),d=window.innerWidth-Krt,p=i3(o,[Krt,d-f]);s.style.minWidth=l+"px",s.style.left=p+"px"}else{var v=e.right-r.right,g=window.innerWidth-n.right-v,y=window.innerWidth-t.right-g,b=t.width+y,x=Math.max(b,e.width),k=window.innerWidth-Krt,S=i3(g,[Krt,k-x]);s.style.minWidth=b+"px",s.style.right=S+"px"}var C=w(),T=window.innerHeight-20,M=h.scrollHeight,O=window.getComputedStyle(c),P=parseInt(O.borderTopWidth,10),R=parseInt(O.paddingTop,10),D=parseInt(O.borderBottomWidth,10),L=P+R+M+parseInt(O.paddingBottom,10)+D,I=Math.min(5*m.offsetHeight,L),N=window.getComputedStyle(h),F=parseInt(N.paddingTop,10),z=parseInt(N.paddingBottom,10),j=t.top+t.height/2-Krt,B=T-j,V=m.offsetHeight/2,H=P+R+(m.offsetTop+V),U=L-H;if(H<=j){var W=m===C[C.length-1].ref.current;s.style.bottom="0px";var Y=c.clientHeight-h.offsetTop-h.offsetHeight,G=H+Math.max(B,V+(W?z:0)+Y+D);s.style.height=G+"px"}else{var q=m===C[0].ref.current;s.style.top="0px";var Z=Math.max(j,P+h.offsetTop+(q?F:0)+V)+U;s.style.height=Z+"px",h.scrollTop=H-j+h.offsetTop}s.style.margin="".concat(Krt,"px 0"),s.style.minHeight=I+"px",s.style.maxHeight=T+"px",E(!0),requestAnimationFrame((function(){return A.current=!0}))}}),[w,a.trigger,a.valueNode,s,c,h,m,_,a.dir]);m5((function(){return D()}),[D]);var L=ki.exports.useCallback((function(){return R([m,c])}),[R,m,c]);ki.exports.useEffect((function(){S&&L()}),[S,L]);var I=ki.exports.useCallback((function(t){t&&!0===C.current&&(D(),L(),C.current=!1)}),[D,L]),N=a.onOpenChange,F=a.triggerPointerDownPosRef;ki.exports.useEffect((function(){if(c){var t={x:0,y:0},e=function(e){var n,r,i,a;t={x:Math.abs(Math.round(e.pageX)-(null!==(n=null===(r=F.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(e.pageY)-(null!==(i=null===(a=F.current)||void 0===a?void 0:a.y)&&void 0!==i?i:0))}},n=function(n){t.x<=10&&t.y<=10?n.preventDefault():c.contains(n.target)||N(!1),document.removeEventListener("pointermove",e),F.current=null};return null!==F.current&&(document.addEventListener("pointermove",e),document.addEventListener("pointerup",n,{capture:!0,once:!0})),function(){document.removeEventListener("pointermove",e),document.removeEventListener("pointerup",n,{capture:!0})}}}),[c,N,F]),ki.exports.useEffect((function(){var t=function(){return N(!1)};return window.addEventListener("blur",t),window.addEventListener("resize",t),function(){window.removeEventListener("blur",t),window.removeEventListener("resize",t)}}),[N]);var z=_it((function(t){var e=w().filter((function(t){return!t.disabled})),n=e.find((function(t){return t.ref.current===document.activeElement})),r=xit(e,t,n);r&&setTimeout((function(){return r.ref.current.focus()}))})),j=wi(z,2),B=j[0],V=j[1],H=ki.exports.useCallback((function(t,e,n){var r=!T.current&&!n;(void 0!==a.value&&a.value===e||r)&&(y(t),r&&(T.current=!0))}),[a.value]),U=ki.exports.useCallback((function(){return null==c?void 0:c.focus()}),[c]),W=ki.exports.useCallback((function(t,e,n){var r=!T.current&&!n;(void 0!==a.value&&a.value===e||r)&&x(t)}),[a.value]);return ki.exports.createElement(Qrt,{scope:n,contentWrapper:s,content:c,viewport:h,onViewportChange:p,itemRefCallback:H,selectedItem:m,onItemLeave:U,itemTextRefCallback:W,selectedItemText:_,onScrollButtonChange:I,isPositioned:S,shouldExpandOnScrollRef:A,searchRef:B},ki.exports.createElement(Art,{as:d5,allowPinchZoom:!0},ki.exports.createElement("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O}},ki.exports.createElement(Dnt,{asChild:!0,trapped:a.open,onMountAutoFocus:function(t){t.preventDefault()},onUnmountAutoFocus:H5(r,(function(t){var e;null===(e=a.trigger)||void 0===e||e.focus({preventScroll:!0}),t.preventDefault()}))},ki.exports.createElement(Snt,o5({role:"listbox",id:a.contentId,"data-state":a.open?"open":"closed",dir:a.dir,onContextMenu:function(t){return t.preventDefault()}},i,{ref:v,style:_i({display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none"},i.style),disableOutsidePointerEvents:!0,onFocusOutside:function(t){return t.preventDefault()},onDismiss:function(){return a.onOpenChange(!1)},onKeyDown:H5(i.onKeyDown,(function(t){var e=t.ctrlKey||t.altKey||t.metaKey;if("Tab"===t.key&&t.preventDefault(),!e&&1===t.key.length&&V(t.key),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){var n=w().filter((function(t){return!t.disabled})).map((function(t){return t.ref.current}));if(["ArrowUp","End"].includes(t.key)&&(n=n.slice().reverse()),["ArrowUp","ArrowDown"].includes(t.key)){var r=t.target,i=n.indexOf(r);n=n.slice(i+1)}setTimeout((function(){return R(n)})),t.preventDefault()}}))}))))))})),eit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Ar),i=Jrt("SelectViewport",n),a=f5(e,i.onViewportChange),o=ki.exports.useRef(0);return ki.exports.createElement(ki.exports.Fragment,null,ki.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}"}}),ki.exports.createElement(Rrt.Slot,{scope:n},ki.exports.createElement(g5.div,o5({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:_i({position:"relative",flex:1,overflow:"auto"},r.style),onScroll:H5(r.onScroll,(function(t){var e=t.currentTarget,n=i.contentWrapper,r=i.shouldExpandOnScrollRef;if(null!=r&&r.current&&n){var a=Math.abs(o.current-e.scrollTop);if(a>0){var s=window.innerHeight-20,u=parseFloat(n.style.minHeight),l=parseFloat(n.style.height),c=Math.max(u,l);if(c<s){var f=c+a,d=Math.min(s,f),h=f-d;n.style.height=d+"px","0px"===n.style.bottom&&(e.scrollTop=h>0?h:0,n.style.justifyContent="flex-end")}}}o.current=e.scrollTop}))}))))})),nit=wi(Irt("SelectGroup"),2),rit=nit[0],iit=nit[1],ait=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Tr),i=_5();return ki.exports.createElement(rit,{scope:n,id:i},ki.exports.createElement(g5.div,o5({role:"group","aria-labelledby":i},r,{ref:e})))})),oit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Mr),i=iit("SelectLabel",n);return ki.exports.createElement(g5.div,o5({id:i.id},r,{ref:e}))})),sit="SelectItem",uit=wi(Irt(sit),2),lit=uit[0],cit=uit[1],fit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.value,i=t.disabled,a=void 0!==i&&i,o=t.textValue,s=fi(t,Or),u=jrt(sit,n),l=Jrt(sit,n),c=u.value===r,f=wi(ki.exports.useState(null!=o?o:""),2),d=f[0],h=f[1],p=wi(ki.exports.useState(!1),2),v=p[0],g=p[1],m=f5(e,(function(t){var e;return null===(e=l.itemRefCallback)||void 0===e?void 0:e.call(l,t,r,a)})),y=_5(),b=function(){a||(u.onValueChange(r),u.onOpenChange(!1))};return ki.exports.createElement(lit,{scope:n,value:r,disabled:a,textId:y,isSelected:c,onItemTextChange:ki.exports.useCallback((function(t){h((function(e){var n;return e||(null!==(n=null==t?void 0:t.textContent)&&void 0!==n?n:"").trim()}))}),[])},ki.exports.createElement(Rrt.ItemSlot,{scope:n,value:r,disabled:a,textValue:d},ki.exports.createElement(g5.div,o5({role:"option","aria-labelledby":y,"data-highlighted":v?"":void 0,"aria-selected":c&&v,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},s,{ref:m,onFocus:H5(s.onFocus,(function(){return g(!0)})),onBlur:H5(s.onBlur,(function(){return g(!1)})),onPointerUp:H5(s.onPointerUp,b),onPointerMove:H5(s.onPointerMove,(function(t){var e;a?null===(e=l.onItemLeave)||void 0===e||e.call(l):t.currentTarget.focus({preventScroll:!0})})),onPointerLeave:H5(s.onPointerLeave,(function(t){var e;t.currentTarget===document.activeElement&&(null===(e=l.onItemLeave)||void 0===e||e.call(l))})),onKeyDown:H5(s.onKeyDown,(function(t){var e;""!==(null===(e=l.searchRef)||void 0===e?void 0:e.current)&&" "===t.key||(Mrt.includes(t.key)&&b()," "===t.key&&t.preventDefault())}))}))))})),dit="SelectItemText",hit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=(t.className,t.style,fi(t,Pr)),i=jrt(dit,n),a=Jrt(dit,n),o=cit(dit,n),s=Hrt(dit,n),u=wi(ki.exports.useState(null),2),l=u[0],c=u[1],f=f5(e,(function(t){return c(t)}),o.onItemTextChange,(function(t){var e;return null===(e=a.itemTextRefCallback)||void 0===e?void 0:e.call(a,t,o.value,o.disabled)})),d=null==l?void 0:l.textContent,h=ki.exports.useMemo((function(){return ki.exports.createElement("option",{key:o.value,value:o.value,disabled:o.disabled},d)}),[o.disabled,o.value,d]),p=s.onNativeOptionAdd,v=s.onNativeOptionRemove;return m5((function(){return p(h),function(){return v(h)}}),[p,v,h]),ki.exports.createElement(ki.exports.Fragment,null,ki.exports.createElement(g5.span,o5({id:o.textId},r,{ref:f})),o.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ma.exports.createPortal(r.children,i.valueNode):null)})),pit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Rr);return cit("SelectItemIndicator",n).isSelected?ki.exports.createElement(g5.span,o5({"aria-hidden":!0},r,{ref:e})):null})),vit=ki.exports.forwardRef((function(t,e){var n=Jrt("SelectScrollUpButton",t.__scopeSelect),r=wi(ki.exports.useState(!1),2),i=r[0],a=r[1],o=f5(e,n.onScrollButtonChange);return m5((function(){if(n.viewport&&n.isPositioned){var t=function(){var t=e.scrollTop>0;a(t)},e=n.viewport;return t(),e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}}}),[n.viewport,n.isPositioned]),i?ki.exports.createElement(mit,o5({},t,{ref:o,onAutoScroll:function(){var t=n.viewport,e=n.selectedItem;t&&e&&(t.scrollTop=t.scrollTop-e.offsetHeight)}})):null})),git=ki.exports.forwardRef((function(t,e){var n=Jrt("SelectScrollDownButton",t.__scopeSelect),r=wi(ki.exports.useState(!1),2),i=r[0],a=r[1],o=f5(e,n.onScrollButtonChange);return m5((function(){if(n.viewport&&n.isPositioned){var t=function(){var t=e.scrollHeight-e.clientHeight,n=Math.ceil(e.scrollTop)<t;a(n)},e=n.viewport;return t(),e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}}}),[n.viewport,n.isPositioned]),i?ki.exports.createElement(mit,o5({},t,{ref:o,onAutoScroll:function(){var t=n.viewport,e=n.selectedItem;t&&e&&(t.scrollTop=t.scrollTop+e.offsetHeight)}})):null})),mit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.onAutoScroll,i=fi(t,Dr),a=Jrt("SelectScrollButton",n),o=ki.exports.useRef(null),s=Drt(n),u=ki.exports.useCallback((function(){null!==o.current&&(window.clearInterval(o.current),o.current=null)}),[]);return ki.exports.useEffect((function(){return function(){return u()}}),[u]),m5((function(){var t,e=s().find((function(t){return t.ref.current===document.activeElement}));null==e||null===(t=e.ref.current)||void 0===t||t.scrollIntoView({block:"nearest"})}),[s]),ki.exports.createElement(g5.div,o5({"aria-hidden":!0},i,{ref:e,style:_i({flexShrink:0},i.style),onPointerMove:H5(i.onPointerMove,(function(){var t;null===(t=a.onItemLeave)||void 0===t||t.call(a),null===o.current&&(o.current=window.setInterval(r,50))})),onPointerLeave:H5(i.onPointerLeave,(function(){u()}))}))})),yit=ki.exports.forwardRef((function(t,e){t.__scopeSelect;var n=fi(t,Lr);return ki.exports.createElement(g5.div,o5({"aria-hidden":!0},n,{ref:e}))})),bit=ki.exports.forwardRef((function(t,e){var n=t.value,r=fi(t,Ir),i=ki.exports.useRef(null),a=f5(e,i),o=Y5(n);return ki.exports.useEffect((function(){var t=i.current,e=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(e,"value").set;if(o!==n&&r){var a=new Event("change",{bubbles:!0});r.call(t,n),t.dispatchEvent(a)}}),[o,n]),ki.exports.createElement(Hnt,{asChild:!0},ki.exports.createElement("select",o5({},r,{ref:a,defaultValue:n})))}));function _it(t){var e=U5(t),n=ki.exports.useRef(""),r=ki.exports.useRef(0),i=ki.exports.useCallback((function(t){var i=n.current+t;e(i),function t(e){n.current=e,window.clearTimeout(r.current),""!==e&&(r.current=window.setTimeout((function(){return t("")}),1e3))}(i)}),[e]),a=ki.exports.useCallback((function(){n.current="",window.clearTimeout(r.current)}),[]);return ki.exports.useEffect((function(){return function(){return window.clearTimeout(r.current)}}),[]),[n,i,a]}function xit(t,e,n){var r=e.length>1&&Array.from(e).every((function(t){return t===e[0]}))?e[0]:e,i=n?t.indexOf(n):-1,a=function(t,e){return t.map((function(n,r){return t[(e+r)%t.length]}))}(t,Math.max(i,0));1===r.length&&(a=a.filter((function(t){return t!==n})));var o=a.find((function(t){return t.textValue.toLowerCase().startsWith(r.toLowerCase())}));return o!==n?o:void 0}bit.displayName="BubbleSelect";var wit=Urt,kit=Wrt,Sit=Yrt,Eit=Grt,Cit=qrt,Ait=Xrt,Tit=eit,Mit=ait,Oit=oit,Pit=fit,Rit=hit,Dit=pit,Lit=vit,Iit=git,Nit=yit,Fit=Object.freeze(Object.defineProperty({__proto__:null,createSelectScope:Nrt,Select:Urt,SelectTrigger:Wrt,SelectValue:Yrt,SelectIcon:Grt,SelectPortal:qrt,SelectContent:Xrt,SelectViewport:eit,SelectGroup:ait,SelectLabel:oit,SelectItem:fit,SelectItemText:hit,SelectItemIndicator:pit,SelectScrollUpButton:vit,SelectScrollDownButton:git,SelectSeparator:yit,Root:wit,Trigger:kit,Value:Sit,Icon:Eit,Portal:Cit,Content:Ait,Viewport:Tit,Group:Mit,Label:Oit,Item:Pit,ItemText:Rit,ItemIndicator:Dit,ScrollUpButton:Lit,ScrollDownButton:Iit,Separator:Nit},Symbol.toStringTag,{value:"Module"})),zit=function(t){return k2("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:k2("g",{clipPath:"url(#clip0_17_2062)",children:k2("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"})})}))},jit=function(t){return k2("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:k2("g",{clipPath:"url(#clip0_17_4631)",children:k2("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"})})}))},Bit=qC(kit)(ue||(ue=ci(["\n display: inline-flex;\n align-items: center;\n justify-content: space-between;\n background-color: ",";\n border-radius: ",";\n border: 1px solid ",";\n color: ",";\n padding: "," ","\n "," ",";\n flex: 1;\n height: ",";\n font-size: ",";\n"])),N2["--ll-color-background"],N2["--ll-border-radius-small"],N2["--ll-color-border"],N2["--ll-color-on-background-variant1"],N2["--ll-spacing-xx-small"],N2["--ll-spacing-x-small"],N2["--ll-spacing-xx-small"],N2["--ll-spacing-small"],(function(t){return"medium"===t.size?"32px":"40px"}),(function(t){return"medium"===t.size?N2["--ll-font-size-p"]:N2["--ll-font-size-h6"]})),Vit=qC(Grt)(le||(le=ci(["\n margin-left: ",";\n"])),N2["--ll-spacing-x-small"]),Hit=qC(Ait)(ce||(ce=ci(["\n overflow: hidden;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n min-width: 120px;\n z-index: 2;\n font-size: ",";\n"])),N2["--ll-color-background"],N2["--ll-border-radius-small"],N2["--ll-shadow-medium"],(function(t){return"medium"===t.size?N2["--ll-font-size-p"]:N2["--ll-font-size-h6"]})),Uit=qC(Pit)(fe||(fe=ci(["\n font-family: ",";\n font-size: inherit;\n padding: "," ","\n "," ",";\n outline: none;\n border-radius: ",";\n position: relative;\n color: ",";\n cursor: default;\n\n &[data-highlighted] {\n background-color: ",";\n color: ",";\n }\n"])),N2["--ll-font-family"],N2["--ll-spacing-xx-small"],N2["--ll-spacing-x-large"],N2["--ll-spacing-xx-small"],N2["--ll-spacing-large"],N2["--ll-border-radius-small"],N2["--ll-color-on-surface-variant1"],N2["--ll-color-primary"],N2["--ll-color-on-primary"]),Wit=qC(Dit)(de||(de=ci(["\n position: absolute;\n left: 0;\n height: 100%;\n left: 0;\n bottom: 0;\n width: ",";\n display: inline-flex;\n align-items: center;\n justify-content: center;\n"])),N2["--ll-spacing-large"]),Yit=qC(Tit)(he||(he=ci(["\n font-size: inherit;\n padding: ",";\n"])),N2["--ll-spacing-base-unit"]),Git=qC(Cit)(pe||(pe=ci(["\n z-index: 1;\n"]))),qit=Object.freeze(Object.defineProperty({__proto__:null,Trigger:Bit,SelectIcon:Vit,Content:Hit,Item:Uit,ItemIndicator:Wit,Viewport:Yit,Portal:Git},Symbol.toStringTag,{value:"Module"})),Zit=Fit.Root,Xit=qit.Portal,Kit=Object.freeze(Object.defineProperty({__proto__:null,Root:Zit,Trigger:function(t){var e=t.size,n=void 0===e?"medium":e,r=t.children,i=fi(t,Nr);return X2(Bit,_i(_i({size:n},i),{},{children:[r,Z2(Grt,{children:Z2(Q2,{SVGElement:zit,fill:N2["--ll-color-on-background-variant1"],height:20})})]}))},Content:function(t){var e=t.size,n=void 0===e?"medium":e,r=t.children,i=fi(t,Fr);return Z2(Hit,_i(_i({size:n},i),{},{children:Z2(Yit,{children:r})}))},Item:function(t){var e=t.children,n=fi(t,zr);return X2(Uit,_i(_i({},n),{},{children:[Z2(Rit,{children:e}),Z2(Wit,{children:Z2(Q2,{SVGElement:jit,fill:"currentColor",height:12})})]}))},Portal:Xit},Symbol.toStringTag,{value:"Module"}));function $it(t){return t.split("-")[0]}function Qit(t){return t.split("-")[1]}function Jit(t){return["top","bottom"].includes($it(t))?"x":"y"}function tat(t){return"y"===t?"height":"width"}function eat(t,e,n){var r,i=t.reference,a=t.floating,o=i.x+i.width/2-a.width/2,s=i.y+i.height/2-a.height/2,u=Jit(e),l=tat(u),c=i[l]/2-a[l]/2,f="x"===u;switch($it(e)){case"top":r={x:o,y:i.y-a.height};break;case"bottom":r={x:o,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-a.width,y:s};break;default:r={x:i.x,y:i.y}}switch(Qit(e)){case"start":r[u]-=c*(n&&f?-1:1);break;case"end":r[u]+=c*(n&&f?-1:1)}return r}var nat=function(){var t=pi(di().mark((function t(e,n,r){var i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k,S,E,C,A,T;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.placement,a=void 0===i?"bottom":i,o=r.strategy,s=void 0===o?"absolute":o,u=r.middleware,l=void 0===u?[]:u,c=r.platform,t.next=9,null==c.isRTL?void 0:c.isRTL(n);case 9:return f=t.sent,t.next=12,c.getElementRects({reference:e,floating:n,strategy:s});case 12:d=t.sent,h=eat(d,a,f),p=h.x,v=h.y,g=a,m={},y=0,b=0;case 20:if(!(b<l.length)){t.next=52;break}return _=l[b],x=_.name,w=_.fn,t.next=26,w({x:p,y:v,initialPlacement:a,placement:g,strategy:s,middlewareData:m,rects:d,platform:c,elements:{reference:e,floating:n}});case 26:if(k=t.sent,S=k.x,E=k.y,C=k.data,A=k.reset,p=null!=S?S:p,v=null!=E?E:v,m=_i(_i({},m),{},xi({},x,_i(_i({},m[x]),C))),!(A&&y<=50)){t.next=49;break}if(y++,t.t0="object"==Fi(A),!t.t0){t.next=47;break}if(A.placement&&(g=A.placement),t.t1=A.rects,!t.t1){t.next=46;break}if(!0!==A.rects){t.next=44;break}return t.next=41,c.getElementRects({reference:e,floating:n,strategy:s});case 41:t.t2=t.sent,t.next=45;break;case 44:t.t2=A.rects;case 45:d=t.t2;case 46:T=eat(d,g,f),p=T.x,v=T.y;case 47:return b=-1,t.abrupt("continue",49);case 49:b++,t.next=20;break;case 52:return t.abrupt("return",{x:p,y:v,placement:g,strategy:s,middlewareData:m});case 53:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}();function rat(t){return"number"!=typeof t?function(t){return _i({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function iat(t){return _i(_i({},t),{},{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function aat(t,e){return oat.apply(this,arguments)}function oat(){return oat=pi(di().mark((function t(e,n){var r,i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===n&&(n={}),i=e.x,a=e.y,o=e.platform,s=e.rects,u=e.elements,l=e.strategy,f=(c=n).boundary,d=void 0===f?"clippingAncestors":f,h=c.rootBoundary,p=void 0===h?"viewport":h,v=c.elementContext,g=void 0===v?"floating":v,m=c.altBoundary,y=void 0!==m&&m,b=c.padding,_=rat(void 0===b?0:b),x=u[y?"floating"===g?"reference":"floating":g],t.t0=iat,t.t1=o,t.next=24,null==o.isElement?void 0:o.isElement(x);case 24:if(t.t3=r=t.sent,t.t2=null==t.t3,t.t2){t.next=28;break}t.t2=r;case 28:if(!t.t2){t.next=32;break}t.t4=x,t.next=38;break;case 32:if(t.t5=x.contextElement,t.t5){t.next=37;break}return t.next=36,null==o.getDocumentElement?void 0:o.getDocumentElement(u.floating);case 36:t.t5=t.sent;case 37:t.t4=t.t5;case 38:return t.t6=t.t4,t.t7=d,t.t8=p,t.t9=l,t.t10={element:t.t6,boundary:t.t7,rootBoundary:t.t8,strategy:t.t9},t.next=45,t.t1.getClippingRect.call(t.t1,t.t10);case 45:if(t.t11=t.sent,w=(0,t.t0)(t.t11),t.t12=iat,!o.convertOffsetParentRelativeRectToViewportRelativeRect){t.next=61;break}return t.t14=o,t.t15="floating"===g?_i(_i({},s.floating),{},{x:i,y:a}):s.reference,t.next=53,null==o.getOffsetParent?void 0:o.getOffsetParent(u.floating);case 53:return t.t16=t.sent,t.t17=l,t.t18={rect:t.t15,offsetParent:t.t16,strategy:t.t17},t.next=58,t.t14.convertOffsetParentRelativeRectToViewportRelativeRect.call(t.t14,t.t18);case 58:t.t13=t.sent,t.next=62;break;case 61:t.t13=s[g];case 62:return t.t19=t.t13,k=(0,t.t12)(t.t19),t.abrupt("return",{top:w.top-k.top+_.top,bottom:k.bottom-w.bottom+_.bottom,left:w.left-k.left+_.left,right:k.right-w.right+_.right});case 65:case"end":return t.stop()}}),t)}))),oat.apply(this,arguments)}var sat=Math.min,uat=Math.max;function lat(t,e,n){return uat(t,sat(e,n))}var cat=function(t){return{name:"arrow",options:t,fn:function(e){return pi(di().mark((function n(){var r,i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k,S,E,C,A,T,M,O,P;return di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=(a=null!=t?t:{}).element,s=a.padding,u=void 0===s?0:s,l=e.x,c=e.y,f=e.placement,d=e.rects,h=e.platform,null!=o){n.next=3;break}return n.abrupt("return",{});case 3:return p=rat(u),v={x:l,y:c},g=Jit(f),m=Qit(f),y=tat(g),n.next=10,h.getDimensions(o);case 10:return b=n.sent,_="y"===g?"top":"left",x="y"===g?"bottom":"right",w=d.reference[y]+d.reference[g]-v[g]-d.floating[y],k=v[g]-d.reference[g],n.next=17,null==h.getOffsetParent?void 0:h.getOffsetParent(o);case 17:return S=n.sent,0===(E=S?"y"===g?S.clientHeight||0:S.clientWidth||0:0)&&(E=d.floating[y]),C=w/2-k/2,A=p[_],T=E-b[y]-p[x],M=E/2-b[y]/2+C,O=lat(A,M,T),P=("start"===m?p[_]:p[x])>0&&M!==O&&d.reference[y]<=d.floating[y]?M<A?A-M:T-M:0,n.abrupt("return",(xi(i={},g,v[g]-P),xi(i,"data",(xi(r={},g,O),xi(r,"centerOffset",M-O),r)),i));case 22:case"end":return n.stop()}}),n)})))()}}},fat={left:"right",right:"left",bottom:"top",top:"bottom"};function dat(t){return t.replace(/left|right|bottom|top/g,(function(t){return fat[t]}))}function hat(t,e,n){void 0===n&&(n=!1);var r=Qit(t),i=Jit(t),a=tat(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=dat(o)),{main:o,cross:dat(o)}}var pat={start:"end",end:"start"};function vat(t){return t.replace(/start|end/g,(function(t){return pat[t]}))}var gat=["top","right","bottom","left"];function mat(t){var e=dat(t);return[vat(t),e,vat(e)]}var yat=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(e){return pi(di().mark((function n(){var r,i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k,S,E,C,A,T,M,O,P,R,D,L,I,N;return di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.placement,a=e.middlewareData,o=e.rects,s=e.initialPlacement,u=e.platform,l=e.elements,f=(c=t).mainAxis,d=void 0===f||f,h=c.crossAxis,p=void 0===h||h,v=c.fallbackPlacements,g=c.fallbackStrategy,m=void 0===g?"bestFit":g,y=c.flipAlignment,b=void 0===y||y,_=fi(c,jr),x=$it(i),w=v||(x!==s&&b?mat(s):[dat(s)]),k=[s].concat(mi(w)),n.next=22,aat(e,_);case 22:if(S=n.sent,E=[],C=(null==(r=a.flip)?void 0:r.overflows)||[],d&&E.push(S[x]),!p){n.next=36;break}return n.t0=hat,n.t1=i,n.t2=o,n.next=31,null==u.isRTL?void 0:u.isRTL(l.floating);case 31:n.t3=n.sent,A=(0,n.t0)(n.t1,n.t2,n.t3),T=A.main,M=A.cross,E.push(S[T],S[M]);case 36:if(C=[].concat(mi(C),[{placement:i,overflows:E}]),E.every((function(t){return t<=0}))){n.next=51;break}if(R=(null!=(O=null==(P=a.flip)?void 0:P.index)?O:0)+1,!(D=k[R])){n.next=40;break}return n.abrupt("return",{data:{index:R,overflows:C},reset:{placement:D}});case 40:L="bottom",n.t4=m,n.next="bestFit"===n.t4?44:"initialPlacement"===n.t4?47:49;break;case 44:return N=null==(I=C.map((function(t){return[t,t.overflows.filter((function(t){return t>0})).reduce((function(t,e){return t+e}),0)]})).sort((function(t,e){return t[1]-e[1]}))[0])?void 0:I[0].placement,N&&(L=N),n.abrupt("break",49);case 47:return L=s,n.abrupt("break",49);case 49:if(i===L){n.next=51;break}return n.abrupt("return",{reset:{placement:L}});case 51:return n.abrupt("return",{});case 52:case"end":return n.stop()}}),n)})))()}}};function bat(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function _at(t){return gat.some((function(e){return t[e]>=0}))}var xat=function(t){var e=void 0===t?{}:t,n=e.strategy,r=void 0===n?"referenceHidden":n,i=fi(e,Br);return{name:"hide",fn:function(t){return pi(di().mark((function e(){var n,a,o,s,u;return di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.rects,e.t0=r,e.next="referenceHidden"===e.t0?4:"escaped"===e.t0?9:14;break;case 4:return e.next=6,aat(t,_i(_i({},i),{},{elementContext:"reference"}));case 6:return a=e.sent,o=bat(a,n.reference),e.abrupt("return",{data:{referenceHiddenOffsets:o,referenceHidden:_at(o)}});case 9:return e.next=11,aat(t,_i(_i({},i),{},{altBoundary:!0}));case 11:return s=e.sent,u=bat(s,n.floating),e.abrupt("return",{data:{escapedOffsets:u,escaped:_at(u)}});case 14:return e.abrupt("return",{});case 15:case"end":return e.stop()}}),e)})))()}}};function wat(t,e){return kat.apply(this,arguments)}function kat(){return kat=pi(di().mark((function t(e,n){var r,i,a,o,s,u,l,c,f,d,h,p,v,g;return di().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.placement,i=e.platform,a=e.elements,t.next=5,null==i.isRTL?void 0:i.isRTL(a.floating);case 5:return o=t.sent,s=$it(r),u=Qit(r),l="x"===Jit(r),c=["left","top"].includes(s)?-1:1,f=o&&l?-1:1,d="function"==typeof n?n(e):n,h="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:_i({mainAxis:0,crossAxis:0,alignmentAxis:null},d),p=h.mainAxis,v=h.crossAxis,g=h.alignmentAxis,t.abrupt("return",(u&&"number"==typeof g&&(v="end"===u?-1*g:g),l?{x:v*f,y:p*c}:{x:p*c,y:v*f}));case 14:case"end":return t.stop()}}),t)}))),kat.apply(this,arguments)}var Sat=function(t){return void 0===t&&(t=0),{name:"offset",options:t,fn:function(e){return pi(di().mark((function n(){var r,i,a;return di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.x,i=e.y,n.next=4,wat(e,t);case 4:return a=n.sent,n.abrupt("return",{x:r+a.x,y:i+a.y,data:a});case 6:case"end":return n.stop()}}),n)})))()}}};function Eat(t){return"x"===t?"y":"x"}var Cat=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(e){return pi(di().mark((function n(){var r,i,a,o,s,u,l,c,f,d,h,p,v,g,m,y,b,_,x,w,k,S,E,C,A;return di().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.x,a=e.y,o=e.placement,u=(s=t).mainAxis,l=void 0===u||u,c=s.crossAxis,f=void 0!==c&&c,d=s.limiter,h=void 0===d?{fn:function(t){return{x:t.x,y:t.y}}}:d,p=fi(s,Vr),v={x:i,y:a},n.next=14,aat(e,p);case 14:return g=n.sent,m=Jit($it(o)),y=Eat(m),b=v[m],_=v[y],l&&(x="y"===m?"bottom":"right",w=b+g["y"===m?"top":"left"],k=b-g[x],b=lat(w,b,k)),f&&(S="y"===y?"bottom":"right",E=_+g["y"===y?"top":"left"],C=_-g[S],_=lat(E,_,C)),A=h.fn(_i(_i({},e),{},(xi(r={},m,b),xi(r,y,_),r))),n.abrupt("return",_i(_i({},A),{},{data:{x:A.x-i,y:A.y-a}}));case 22:case"end":return n.stop()}}),n)})))()}}},Aat=function(t){return void 0===t&&(t={}),{options:t,fn:function(e){var n,r=e.x,i=e.y,a=e.placement,o=e.rects,s=e.middlewareData,u=t,l=u.offset,c=void 0===l?0:l,f=u.mainAxis,d=void 0===f||f,h=u.crossAxis,p=void 0===h||h,v={x:r,y:i},g=Jit(a),m=Eat(g),y=v[g],b=v[m],_="function"==typeof c?c(_i(_i({},o),{},{placement:a})):c,x="number"==typeof _?{mainAxis:_,crossAxis:0}:_i({mainAxis:0,crossAxis:0},_);if(d){var w="y"===g?"height":"width",k=o.reference[g]-o.floating[w]+x.mainAxis,S=o.reference[g]+o.reference[w]-x.mainAxis;y<k?y=k:y>S&&(y=S)}if(p){var E,C,A,T,M="y"===g?"width":"height",O=["top","left"].includes($it(a)),P=o.reference[m]-o.floating[M]+(O&&null!=(E=null==(C=s.offset)?void 0:C[m])?E:0)+(O?0:x.crossAxis),R=o.reference[m]+o.reference[M]+(O?0:null!=(A=null==(T=s.offset)?void 0:T[m])?A:0)-(O?x.crossAxis:0);b<P?b=P:b>R&&(b=R)}return xi(n={},g,y),xi(n,m,b),n}}};function Tat(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function Mat(t){if(null==t)return window;if(!Tat(t)){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Oat(t){return Mat(t).getComputedStyle(t)}function Pat(t){return Tat(t)?"":t?(t.nodeName||"").toLowerCase():""}function Rat(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Dat(t){return t instanceof Mat(t).HTMLElement}function Lat(t){return t instanceof Mat(t).Element}function Iat(t){return!(("undefined"==typeof ShadowRoot?"undefined":Fi(ShadowRoot))>"u")&&(t instanceof Mat(t).ShadowRoot||t instanceof ShadowRoot)}function Nat(t){var e=Oat(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Fat(t){return["table","td","th"].includes(Pat(t))}function zat(t){var e=/firefox/i.test(Rat()),n=Oat(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function jat(){return!/^((?!chrome|android).)*safari/i.test(Rat())}var Bat=Math.min,Vat=Math.max,Hat=Math.round;function Uat(t,e,n){var r,i,a,o;void 0===e&&(e=!1),void 0===n&&(n=!1);var s=t.getBoundingClientRect(),u=1,l=1;e&&Dat(t)&&(u=t.offsetWidth>0&&Hat(s.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Hat(s.height)/t.offsetHeight||1);var c=Lat(t)?Mat(t):window,f=!jat()&&n,d=(s.left+(f&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/u,h=(s.top+(f&&null!=(a=null==(o=c.visualViewport)?void 0:o.offsetTop)?a:0))/l,p=s.width/u,v=s.height/l;return{width:p,height:v,top:h,right:d+p,bottom:h+v,left:d,x:d,y:h}}function Wat(t){return((function(t){return t instanceof Mat(t).Node}(t)?t.ownerDocument:t.document)||window.document).documentElement}function Yat(t){return Lat(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gat(t){return Uat(Wat(t)).left+Yat(t).scrollLeft}function qat(t,e,n){var r=Dat(e),i=Wat(e),a=Uat(t,r&&function(t){var e=Uat(t);return Hat(e.width)!==t.offsetWidth||Hat(e.height)!==t.offsetHeight}(e),"fixed"===n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Pat(e)||Nat(i))&&(o=Yat(e)),Dat(e)){var u=Uat(e,!0);s.x=u.x+e.clientLeft,s.y=u.y+e.clientTop}else i&&(s.x=Gat(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}function Zat(t){return"html"===Pat(t)?t:t.assignedSlot||t.parentNode||(Iat(t)?t.host:null)||Wat(t)}function Xat(t){return Dat(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function Kat(t){for(var e=Mat(t),n=Xat(t);n&&Fat(n)&&"static"===getComputedStyle(n).position;)n=Xat(n);return n&&("html"===Pat(n)||"body"===Pat(n)&&"static"===getComputedStyle(n).position&&!zat(n))?e:n||function(t){var e=Zat(t);for(Iat(e)&&(e=e.host);Dat(e)&&!["html","body"].includes(Pat(e));){if(zat(e))return e;e=e.parentNode}return null}(t)||e}function $at(t){if(Dat(t))return{width:t.offsetWidth,height:t.offsetHeight};var e=Uat(t);return{width:e.width,height:e.height}}function Qat(t){var e=Zat(t);return["html","body","#document"].includes(Pat(e))?t.ownerDocument.body:Dat(e)&&Nat(e)?e:Qat(e)}function Jat(t,e){var n;void 0===e&&(e=[]);var r=Qat(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),a=Mat(r),o=i?[a].concat(a.visualViewport||[],Nat(r)?r:[]):r,s=e.concat(o);return i?s:s.concat(Jat(o))}function tot(t,e,n){return"viewport"===e?iat(function(t,e){var n=Mat(t),r=Wat(t),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;var l=jat();(l||!l&&"fixed"===e)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}(t,n)):Lat(e)?function(t,e){var n=Uat(t,!1,"fixed"===e),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}}(e,n):iat(function(t){var e,n=Wat(t),r=Yat(t),i=null==(e=t.ownerDocument)?void 0:e.body,a=Vat(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Vat(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Gat(t),u=-r.scrollTop;return"rtl"===Oat(i||n).direction&&(s+=Vat(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}(Wat(t)))}function eot(t){var e=Jat(t),n=["absolute","fixed"].includes(Oat(t).position)&&Dat(t)?Kat(t):t;return Lat(n)?e.filter((function(t){return Lat(t)&&function(t,e){var n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Iat(n)){var r=e;do{if(r&&t===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(t,n)&&"body"!==Pat(t)})):[]}var not={getClippingRect:function(t){var e=t.element,n=t.boundary,r=t.rootBoundary,i=t.strategy,a=[].concat(mi("clippingAncestors"===n?eot(e):[].concat(n)),[r]),o=a[0],s=a.reduce((function(t,n){var r=tot(e,n,i);return t.top=Vat(r.top,t.top),t.right=Bat(r.right,t.right),t.bottom=Bat(r.bottom,t.bottom),t.left=Vat(r.left,t.left),t}),tot(e,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var e=t.rect,n=t.offsetParent,r=t.strategy,i=Dat(n),a=Wat(n);if(n===a)return e;var o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==Pat(n)||Nat(a))&&(o=Yat(n)),Dat(n))){var u=Uat(n,!0);s.x=u.x+n.clientLeft,s.y=u.y+n.clientTop}return _i(_i({},e),{},{x:e.x-o.scrollLeft+s.x,y:e.y-o.scrollTop+s.y})},isElement:Lat,getDimensions:$at,getOffsetParent:Kat,getDocumentElement:Wat,getElementRects:function(t){var e=t.reference,n=t.floating,r=t.strategy;return{reference:qat(e,Kat(n),r),floating:_i(_i({},$at(n)),{},{x:0,y:0})}},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===Oat(t).direction}};function rot(t,e,n,r){void 0===r&&(r={});var i=r,a=i.ancestorScroll,o=void 0===a||a,s=i.ancestorResize,u=void 0===s||s,l=i.elementResize,c=void 0===l||l,f=i.animationFrame,d=void 0!==f&&f,h=o&&!d,p=u&&!d,v=h||p?[].concat(mi(Lat(t)?Jat(t):[]),mi(Jat(e))):[];v.forEach((function(t){h&&t.addEventListener("scroll",n,{passive:!0}),p&&t.addEventListener("resize",n)}));var g=null;if(c){var m=!0;g=new ResizeObserver((function(){m||n(),m=!1})),Lat(t)&&!d&&g.observe(t),g.observe(e)}var y,b=d?Uat(t):null;return d&&function e(){var r=Uat(t);b&&(r.x!==b.x||r.y!==b.y||r.width!==b.width||r.height!==b.height)&&n(),b=r,y=requestAnimationFrame(e)}(),n(),function(){var t;v.forEach((function(t){h&&t.removeEventListener("scroll",n),p&&t.removeEventListener("resize",n)})),null==(t=g)||t.disconnect(),g=null,d&&cancelAnimationFrame(y)}}var iot=("undefined"==typeof document?"undefined":Fi(document))<"u"?ki.exports.useLayoutEffect:ki.exports.useEffect;function aot(t,e){if(t===e)return!0;if(Fi(t)!=Fi(e))return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;var n,r,i;if(t&&e&&"object"==Fi(t)){if(Array.isArray(t)){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!aot(t[r],e[r]))return!1;return!0}if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){var a=i[r];if(!("_owner"===a&&t.$$typeof||aot(t[a],e[a])))return!1}return!0}return t!=t&&e!=e}function oot(t){var e=void 0===t?{}:t,n=e.middleware,r=e.placement,i=void 0===r?"bottom":r,a=e.strategy,o=void 0===a?"absolute":a,s=e.whileElementsMounted,u=ki.exports.useRef(null),l=ki.exports.useRef(null),c=function(t){var e=ki.exports.useRef(t);return iot((function(){e.current=t})),e}(s),f=ki.exports.useRef(null),d=wi(ki.exports.useState({x:null,y:null,strategy:o,placement:i,middlewareData:{}}),2),h=d[0],p=d[1],v=wi(ki.exports.useState(n),2),g=v[0],m=v[1];aot(null==g?void 0:g.map((function(t){return t.options})),null==n?void 0:n.map((function(t){return t.options})))||m(n);var y=ki.exports.useCallback((function(){!u.current||!l.current||function(t,e,n){return nat(t,e,_i({platform:not},n))}(u.current,l.current,{middleware:g,placement:i,strategy:o}).then((function(t){b.current&&ma.exports.flushSync((function(){p(t)}))}))}),[g,i,o]);iot((function(){b.current&&y()}),[y]);var b=ki.exports.useRef(!1);iot((function(){return b.current=!0,function(){b.current=!1}}),[]);var _=ki.exports.useCallback((function(){if("function"==typeof f.current&&(f.current(),f.current=null),u.current&&l.current)if(c.current){var t=c.current(u.current,l.current,y);f.current=t}else y()}),[y,c]),x=ki.exports.useCallback((function(t){u.current=t,_()}),[_]),w=ki.exports.useCallback((function(t){l.current=t,_()}),[_]),k=ki.exports.useMemo((function(){return{reference:u,floating:l}}),[]);return ki.exports.useMemo((function(){return _i(_i({},h),{},{update:y,refs:k,reference:x,floating:w})}),[h,y,k,x,w])}var sot=function(t){var e=t.element,n=t.padding;return{name:"arrow",options:t,fn:function(t){return function(t){return Object.prototype.hasOwnProperty.call(t,"current")}(e)?null!=e.current?cat({element:e.current,padding:n}).fn(t):{}:e?cat({element:e,padding:n}).fn(t):{}}}},uot=ki.exports.forwardRef((function(t,e){var n=t.children,r=t.width,i=void 0===r?10:r,a=t.height,o=void 0===a?5:a,s=fi(t,Hr);return ki.exports.createElement(g5.svg,o5({},s,{ref:e,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?n:ki.exports.createElement("polygon",{points:"0,0 30,0 15,10"}))})),lot=uot,cot="Popper",fot=wi(s5(cot),2),dot=fot[0],hot=fot[1],pot=wi(dot(cot),2),vot=pot[0],got=pot[1],mot=ki.exports.forwardRef((function(t,e){var n=t.__scopePopper,r=t.virtualRef,i=fi(t,Ur),a=got("PopperAnchor",n),o=ki.exports.useRef(null),s=f5(e,o);return ki.exports.useEffect((function(){a.onAnchorChange((null==r?void 0:r.current)||o.current)})),r?null:ki.exports.createElement(g5.div,o5({},i,{ref:s}))})),yot="PopperContent",bot=wi(dot(yot),2),_ot=bot[0],xot=bot[1],wot=wi(dot(yot,{hasParent:!1,positionUpdateFns:new Set}),2),kot=wot[0],Sot=wot[1],Eot=ki.exports.forwardRef((function(t,e){var n,r,i,a,o,s,u,l,c=t.__scopePopper,f=t.side,d=void 0===f?"bottom":f,h=t.sideOffset,p=void 0===h?0:h,v=t.align,g=void 0===v?"center":v,m=t.alignOffset,y=void 0===m?0:m,b=t.arrowPadding,_=void 0===b?0:b,x=t.collisionBoundary,w=void 0===x?[]:x,k=t.collisionPadding,S=void 0===k?0:k,E=t.sticky,C=void 0===E?"partial":E,A=t.hideWhenDetached,T=void 0!==A&&A,M=t.avoidCollisions,O=void 0===M||M,P=fi(t,Wr),R=got(yot,c),D=wi(ki.exports.useState(null),2),L=D[0],I=D[1],N=f5(e,(function(t){return I(t)})),F=wi(ki.exports.useState(null),2),z=F[0],j=F[1],B=G5(z),V=null!==(n=null==B?void 0:B.width)&&void 0!==n?n:0,H=null!==(r=null==B?void 0:B.height)&&void 0!==r?r:0,U=d+("center"!==g?"-"+g:""),W="number"==typeof S?S:_i({top:0,right:0,bottom:0,left:0},S),Y=Array.isArray(w)?w:[w],G=Y.length>0,q={padding:W,boundary:Y.filter(Mot),altBoundary:G},Z=oot({strategy:"fixed",placement:U,whileElementsMounted:rot,middleware:[Sat({mainAxis:p+H,alignmentAxis:y}),O?Cat(_i({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?Aat():void 0},q)):void 0,z?sot({element:z,padding:_}):void 0,O?yat(_i({},q)):void 0,Oot({arrowWidth:V,arrowHeight:H}),T?xat({strategy:"referenceHidden"}):void 0].filter(Tot)}),X=Z.reference,K=Z.floating,$=Z.strategy,Q=Z.x,J=Z.y,tt=Z.placement,et=Z.middlewareData,nt=Z.update;m5((function(){X(R.anchor)}),[X,R.anchor]);var rt=null!==Q&&null!==J,it=wi(Pot(tt),2),at=it[0],ot=it[1],st=null===(i=et.arrow)||void 0===i?void 0:i.x,ut=null===(a=et.arrow)||void 0===a?void 0:a.y,lt=0!==(null===(o=et.arrow)||void 0===o?void 0:o.centerOffset),ct=wi(ki.exports.useState(),2),ft=ct[0],dt=ct[1];m5((function(){L&&dt(window.getComputedStyle(L).zIndex)}),[L]);var ht=Sot(yot,c),pt=ht.hasParent,vt=ht.positionUpdateFns,gt=!pt;ki.exports.useLayoutEffect((function(){if(!gt)return vt.add(nt),function(){vt.delete(nt)}}),[gt,vt,nt]),ki.exports.useLayoutEffect((function(){gt&&rt&&Array.from(vt).reverse().forEach((function(t){return requestAnimationFrame(t)}))}),[gt,rt,vt]);var mt=_i(_i({"data-side":at,"data-align":ot},P),{},{ref:N,style:_i(_i({},P.style),{},{animation:rt?void 0:"none",opacity:null!==(s=et.hide)&&void 0!==s&&s.referenceHidden?0:void 0})});return ki.exports.createElement("div",{ref:K,"data-radix-popper-content-wrapper":"",style:xi({position:$,left:0,top:0,transform:rt?"translate3d(".concat(Math.round(Q),"px, ").concat(Math.round(J),"px, 0)"):"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ft},"--radix-popper-transform-origin",[null===(u=et.transformOrigin)||void 0===u?void 0:u.x,null===(l=et.transformOrigin)||void 0===l?void 0:l.y].join(" "))},ki.exports.createElement(_ot,{scope:c,placedSide:at,onArrowChange:j,arrowX:st,arrowY:ut,shouldHideArrow:lt},gt?ki.exports.createElement(kot,{scope:c,hasParent:!0,positionUpdateFns:vt},ki.exports.createElement(g5.div,mt)):ki.exports.createElement(g5.div,mt)))})),Cot={top:"bottom",right:"left",bottom:"top",left:"right"},Aot=ki.exports.forwardRef((function(t,e){var n,r=t.__scopePopper,i=fi(t,Yr),a=xot("PopperArrow",r),o=Cot[a.placedSide];return ki.exports.createElement("span",{ref:a.onArrowChange,style:(n={position:"absolute",left:a.arrowX,top:a.arrowY},xi(n,o,0),xi(n,"transformOrigin",{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide]),xi(n,"transform",{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide]),xi(n,"visibility",a.shouldHideArrow?"hidden":void 0),n)},ki.exports.createElement(lot,o5({},i,{ref:e,style:_i(_i({},i.style),{},{display:"block"})})))}));function Tot(t){return void 0!==t}function Mot(t){return null!==t}var Oot=function(t){return{name:"transformOrigin",options:t,fn:function(e){var n,r,i,a,o,s=e.placement,u=e.rects,l=e.middlewareData,c=0!==(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset),f=c?0:t.arrowWidth,d=c?0:t.arrowHeight,h=wi(Pot(s),2),p=h[0],v={start:"0%",center:"50%",end:"100%"}[h[1]],g=(null!==(r=null===(i=l.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+f/2,m=(null!==(a=null===(o=l.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+d/2,y="",b="";return"bottom"===p?(y=c?v:"".concat(g,"px"),b="".concat(-d,"px")):"top"===p?(y=c?v:"".concat(g,"px"),b="".concat(u.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),b=c?v:"".concat(m,"px")):"left"===p&&(y="".concat(u.floating.width+d,"px"),b=c?v:"".concat(m,"px")),{data:{x:y,y:b}}}}};function Pot(t){var e=wi(t.split("-"),2),n=e[0],r=e[1];return[n,void 0===r?"center":r]}var Rot=function(t){var e=t.__scopePopper,n=t.children,r=wi(ki.exports.useState(null),2),i=r[0],a=r[1];return ki.exports.createElement(vot,{scope:e,anchor:i,onAnchorChange:a},n)},Dot=mot,Lot=Eot,Iot=Aot;var Not=function(t){var e=t.present,n=t.children,r=function(t){var e=wi(ki.exports.useState(),2),n=e[0],r=e[1],i=ki.exports.useRef({}),a=ki.exports.useRef(t),o=ki.exports.useRef("none"),s=wi(function(t,e){return ki.exports.useReducer((function(t,n){var r=e[t][n];return null!=r?r:t}),t)}(t?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),2),u=s[0],l=s[1];return ki.exports.useEffect((function(){var t=Fot(i.current);o.current="mounted"===u?t:"none"}),[u]),m5((function(){var e=i.current,n=a.current;if(n!==t){var r=o.current,s=Fot(e);t?l("MOUNT"):"none"===s||"none"===(null==e?void 0:e.display)?l("UNMOUNT"):l(n&&r!==s?"ANIMATION_OUT":"UNMOUNT"),a.current=t}}),[t,l]),m5((function(){if(n){var t=function(t){var e=Fot(i.current).includes(t.animationName);t.target===n&&e&&ma.exports.flushSync((function(){return l("ANIMATION_END")}))},e=function(t){t.target===n&&(o.current=Fot(i.current))};return n.addEventListener("animationstart",e),n.addEventListener("animationcancel",t),n.addEventListener("animationend",t),function(){n.removeEventListener("animationstart",e),n.removeEventListener("animationcancel",t),n.removeEventListener("animationend",t)}}l("ANIMATION_END")}),[n,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:ki.exports.useCallback((function(t){t&&(i.current=getComputedStyle(t)),r(t)}),[])}}(e),i="function"==typeof n?n({present:r.isPresent}):ki.exports.Children.only(n),a=f5(r.ref,i.ref);return"function"==typeof n||r.isPresent?ki.exports.cloneElement(i,{ref:a}):null};function Fot(t){return(null==t?void 0:t.animationName)||"none"}Not.displayName="Presence";var zot="Popover",jot=wi(s5(zot,[hot]),2),Bot=jot[0],Vot=jot[1],Hot=hot(),Uot=wi(Bot(zot),2),Wot=Uot[0],Yot=Uot[1],Got=function(t){var e=t.__scopePopover,n=t.children,r=t.open,i=t.defaultOpen,a=t.onOpenChange,o=t.modal,s=void 0!==o&&o,u=Hot(e),l=ki.exports.useRef(null),c=wi(ki.exports.useState(!1),2),f=c[0],d=c[1],h=wi(W5({prop:r,defaultProp:i,onChange:a}),2),p=h[0],v=void 0!==p&&p,g=h[1];return ki.exports.createElement(Rot,u,ki.exports.createElement(Wot,{scope:e,contentId:_5(),triggerRef:l,open:v,onOpenChange:g,onOpenToggle:ki.exports.useCallback((function(){return g((function(t){return!t}))}),[g]),hasCustomAnchor:f,onCustomAnchorAdd:ki.exports.useCallback((function(){return d(!0)}),[]),onCustomAnchorRemove:ki.exports.useCallback((function(){return d(!1)}),[]),modal:s},n))},qot=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,Gr),i=Yot("PopoverAnchor",n),a=Hot(n),o=i.onCustomAnchorAdd,s=i.onCustomAnchorRemove;return ki.exports.useEffect((function(){return o(),function(){return s()}}),[o,s]),ki.exports.createElement(Dot,o5({},a,r,{ref:e}))})),Zot=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,qr),i=Yot("PopoverTrigger",n),a=Hot(n),o=f5(e,i.triggerRef),s=ki.exports.createElement(g5.button,o5({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":sst(i.open)},r,{ref:o,onClick:H5(t.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:ki.exports.createElement(Dot,o5({asChild:!0},a),s)})),Xot="PopoverPortal",Kot=wi(Bot(Xot,{forceMount:void 0}),2),$ot=Kot[0],Qot=Kot[1],Jot=function(t){var e=t.__scopePopover,n=t.forceMount,r=t.children,i=t.container,a=Yot(Xot,e);return ki.exports.createElement($ot,{scope:e,forceMount:n},ki.exports.createElement(Not,{present:n||a.open},ki.exports.createElement(Vnt,{asChild:!0,container:i},r)))},tst="PopoverContent",est=ki.exports.forwardRef((function(t,e){var n=Qot(tst,t.__scopePopover),r=t.forceMount,i=void 0===r?n.forceMount:r,a=fi(t,Zr),o=Yot(tst,t.__scopePopover);return ki.exports.createElement(Not,{present:i||o.open},o.modal?ki.exports.createElement(nst,o5({},a,{ref:e})):ki.exports.createElement(rst,o5({},a,{ref:e})))})),nst=ki.exports.forwardRef((function(t,e){var n=Yot(tst,t.__scopePopover),r=ki.exports.useRef(null),i=f5(e,r),a=ki.exports.useRef(!1);return ki.exports.useEffect((function(){var t=r.current;if(t)return qnt(t)}),[]),ki.exports.createElement(Art,{as:d5,allowPinchZoom:!0},ki.exports.createElement(ist,o5({},t,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H5(t.onCloseAutoFocus,(function(t){var e;t.preventDefault(),a.current||null===(e=n.triggerRef.current)||void 0===e||e.focus()})),onPointerDownOutside:H5(t.onPointerDownOutside,(function(t){var e=t.detail.originalEvent,n=0===e.button&&!0===e.ctrlKey,r=2===e.button||n;a.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:H5(t.onFocusOutside,(function(t){return t.preventDefault()}),{checkForDefaultPrevented:!1})})))})),rst=ki.exports.forwardRef((function(t,e){var n=Yot(tst,t.__scopePopover),r=ki.exports.useRef(!1);return ki.exports.createElement(ist,o5({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:function(e){var i,a;(null===(i=t.onCloseAutoFocus)||void 0===i||i.call(t,e),e.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),e.preventDefault());r.current=!1},onInteractOutside:function(e){var i,a;null===(i=t.onInteractOutside)||void 0===i||i.call(t,e),e.defaultPrevented||(r.current=!0);var o=e.target;null!==(a=n.triggerRef.current)&&void 0!==a&&a.contains(o)&&e.preventDefault()}}))})),ist=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=t.trapFocus,i=t.onOpenAutoFocus,a=t.onCloseAutoFocus,o=t.disableOutsidePointerEvents,s=t.onEscapeKeyDown,u=t.onPointerDownOutside,l=t.onFocusOutside,c=t.onInteractOutside,f=fi(t,Xr),d=Yot(tst,n),h=Hot(n);return Tnt(),ki.exports.createElement(Dnt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a},ki.exports.createElement(Snt,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:l,onDismiss:function(){return d.onOpenChange(!1)}},ki.exports.createElement(Lot,o5({"data-state":sst(d.open),role:"dialog",id:d.contentId},h,f,{ref:e,style:_i(_i({},f.style),{},xi({},"--radix-popover-content-transform-origin","var(--radix-popper-transform-origin)"))}))))})),ast=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,Kr),i=Yot("PopoverClose",n);return ki.exports.createElement(g5.button,o5({type:"button"},r,{ref:e,onClick:H5(t.onClick,(function(){return i.onOpenChange(!1)}))}))})),ost=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,$r),i=Hot(n);return ki.exports.createElement(Iot,o5({},i,r,{ref:e}))}));function sst(t){return t?"open":"closed"}var ust=Got,lst=qot,cst=Zot,fst=Jot,dst=est,hst=ast,pst=ost,vst=Object.freeze(Object.defineProperty({__proto__:null,createPopoverScope:Vot,Popover:Got,PopoverAnchor:qot,PopoverTrigger:Zot,PopoverPortal:Jot,PopoverContent:est,PopoverClose:ast,PopoverArrow:ost,Root:ust,Anchor:lst,Trigger:cst,Portal:fst,Content:dst,Close:hst,Arrow:pst},Symbol.toStringTag,{value:"Module"})),gst=qC(cst)(ve||(ve=ci(["\n background: none;\n border: none;\n padding: 0;\n"]))),mst=qC(dst)(ge||(ge=ci(["\n padding: ",";\n background-color: ",";\n box-shadow: ",";\n border-radius: ",";\n width: 240px;\n"])),N2["--ll-spacing-small"],N2["--ll-color-background"],N2["--ll-shadow-small"],N2["--ll-border-radius-small"]),yst=qC(pst)(me||(me=ci(["\n fill: ",";\n"])),N2["--ll-color-background"]),bst=Object.freeze(Object.defineProperty({__proto__:null,Trigger:gst,Content:mst,Arrow:yst},Symbol.toStringTag,{value:"Module"})),_st=vst.Root,xst=vst.Portal,wst=bst.Trigger,kst=Object.freeze(Object.defineProperty({__proto__:null,Root:_st,Trigger:wst,Content:function(t){var e=t.side,n=t.children,r=t.className,i=t.sideOffset,a=void 0===i?8:i,o=t.collisionPadding;return Z2(xst,{children:X2(mst,{side:e,className:r,sideOffset:a,collisionPadding:void 0===o?8:o,children:[Z2(yst,{}),n]})})}},Symbol.toStringTag,{value:"Module"})),Sst=pa.createContext({}),Est=hi("n",(function(){return ki.exports.useContext(Sst)})),Cst=function(t){var e,n,r=t.client,i=t.options,a=t.children;return S2(Sst.Provider,{value:{client:r,options:i},children:[k2(z2,{themeName:null==(e=null==i?void 0:i.appearance)?void 0:e.theme,overrides:null==(n=null==i?void 0:i.appearance)?void 0:n.variables}),a]})},Ast=pa.createContext({}),Tst=function(){return ki.exports.useContext(Ast)},Mst=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return null;var n=2*parseFloat(t);return e?Math.round(n):Math.round(10*n)/10},Ost=function(t){var e=t.scoresData,n=t.score,r=t.round,i=void 0!==r&&r,a=ki.exports.useMemo((function(){var t,r,a=null==(r=null==(t=null==e?void 0:e.location)?void 0:t[n])?void 0:r.value;return Mst(a,i)}),[e,n,i]),o=ki.exports.useMemo((function(){var t,r;return null==(r=null==(t=null==e?void 0:e.location)?void 0:t[n])?void 0:r.text}),[e,n]),s=ki.exports.useMemo((function(){var t;return null==(t=null==e?void 0:e.geographies)?void 0:t.find((function(t){return"municipality"===t.geog_level_type}))}),[e]),u=ki.exports.useMemo((function(){var t;return null==(t=null==e?void 0:e.geographies)?void 0:t.find((function(t){return"macro neighbourhood"===t.geog_level_type}))}),[e]),l=ki.exports.useMemo((function(){var t,e=null==(t=null==s?void 0:s.scores[n])?void 0:t.value;return Mst(e,i)}),[s,n,i]),c=ki.exports.useMemo((function(){var t,e=null==(t=null==u?void 0:u.scores[n])?void 0:t.value;return Mst(e,i)}),[u,n,i]);return{textVal:o,scoreVal:a,cityName:ki.exports.useMemo((function(){return null==s?void 0:s.name}),[s]),cityScoreVal:l,neighbourhoodName:ki.exports.useMemo((function(){return null==u?void 0:u.name}),[u]),neighbourhoodScoreVal:c}},Pst=qC.div(_e||(_e=ci(["\n position: relative;\n background: ",";\n color: ",";\n border-radius: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 1;\n font-family: ",";\n overflow: hidden;\n transition: background 160ms ease;\n flex-shrink: 0;\n ",';\n\n &:after {\n content: "";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n background: linear-gradient(\n 180deg,\n rgba(255, 255, 255, 0.2) 0%,\n rgba(0, 0, 0, 0.1) 100%\n );\n }\n'])),(function(t){return t.$isPrimary?N2["--ll-color-primary"]:N2["--ll-color-disabled"]}),N2["--ll-color-on-primary"],N2["--ll-border-radius-small"],N2["--ll-font-family"],(function(t){return function(t){return"small"===t?WC(ye||(ye=ci(["\n height: 16px;\n padding: 0 ",";\n font-size: ",";\n "])),N2["--ll-spacing-xx-small"],N2["--ll-font-size-caption-2"]):WC(be||(be=ci(["\n height: 32px;\n width: 32px;\n font-size: ",";\n "])),N2["--ll-font-size-p"])}(t.$variant)})),Rst=qC.div(xe||(xe=ci(["\n z-index: 1;\n"]))),Dst=Object.defineProperty,Lst=function(t,e,n){return function(t,e,n){e in t?Dst(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},Ist=function(t){return"object"==Fi(t)&&null!==t&&!Array.isArray(t)};var Nst=Object.freeze(Object.defineProperty({__proto__:null,isObject:Ist,mergeDeep:function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(!r.length)return e;var a=r.shift();return Ist(e)&&Ist(a)&&Object.keys(a).forEach((function(n){Ist(a[n])?(e[n]||Object.assign(e,xi({},n,{})),t(e[n],a[n])):Object.assign(e,xi({},n,a[n]))})),t.apply(void 0,[e].concat(r))}},Symbol.toStringTag,{value:"Module"})),Fst=Object.freeze(Object.defineProperty({__proto__:null,pluralize:function(t,e,n){return 1===e?t:null!=n?n:"".concat(t,"s")},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},formatAddress:function(t){var e=t.houseNumber,n=t.street,r=t.city,i=t.state,a=t.country,o=t.postalCode;return["".concat(e?"".concat(e&&n?"".concat(e," "):"".concat(e)):"").concat(n||""),r,i,a,o].reduceRight((function(t,e){return t&&e?"".concat(e,", ").concat(t):e||t||""}))||""}},Symbol.toStringTag,{value:"Module"})),zst=Object.freeze(Object.defineProperty({__proto__:null,isSchool:function(t,e){return"school"===e}},Symbol.toStringTag,{value:"Module"})),jst=Object.freeze(Object.defineProperty({__proto__:null,poi:zst},Symbol.toStringTag,{value:"Module"})),Bst={},Vst={},Hst={},Ust={
|
|
100
|
-
/*!
|
|
101
|
-
* cookie
|
|
102
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
103
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
104
|
-
* MIT Licensed
|
|
105
|
-
*/
|
|
106
|
-
parse:function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},r=e||{},i=t.split(Gst),a=r.decode||Wst,o=0;o<i.length;o++){var s=i[o],u=s.indexOf("=");if(!(u<0)){var l=s.substr(0,u).trim(),c=s.substr(++u,s.length).trim();'"'==c[0]&&(c=c.slice(1,-1)),null==n[l]&&(n[l]=Zst(c,a))}}return n},serialize:function(t,e,n){var r=n||{},i=r.encode||Yst;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!qst.test(t))throw new TypeError("argument name is invalid");var a=i(e);if(a&&!qst.test(a))throw new TypeError("argument val is invalid");var o=t+"="+a;if(null!=r.maxAge){var s=r.maxAge-0;if(isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age="+Math.floor(s)}if(r.domain){if(!qst.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!qst.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return o}},Wst=decodeURIComponent,Yst=encodeURIComponent,Gst=/; */,qst=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Zst(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(Hst,"__esModule",{value:!0});var Xst=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();Hst.hasCookies=function(){var t=new Jst;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),"1"===n}catch(r){return!1}};var Kst=function(t){return t&&t.__esModule?t:{default:t}}(Ust);function $st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Qst="lS_",Jst=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};$st(this,t),this.cookieOptions=Object.assign({path:"/"},e),Qst=void 0===e.prefix?Qst:e.prefix}return Xst(t,[{key:"getItem",value:function(t){var e=Kst.default.parse(document.cookie);return e&&e.hasOwnProperty(Qst+t)?e[Qst+t]:null}},{key:"setItem",value:function(t,e){return document.cookie=Kst.default.serialize(Qst+t,e,this.cookieOptions),e}},{key:"removeItem",value:function(t){var e=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=Kst.default.serialize(Qst+t,"",e),null}},{key:"clear",value:function(){var t=Kst.default.parse(document.cookie);for(var e in t)0===e.indexOf(Qst)&&this.removeItem(e.substr(Qst.length));return null}}]),t}();Hst.default=Jst,Object.defineProperty(Vst,"__esModule",{value:!0}),Vst.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage",e=String(t).replace(/storage$/i,"").toLowerCase();if("local"===e)return nut("localStorage");if("session"===e)return nut("sessionStorage");if("cookie"===e)return(0,tut.hasCookies)();if("memory"===e)return!0;throw new Error("Storage method `"+t+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")};var tut=Hst,eut="__test";function nut(t){try{var e=window[t];return e.setItem(eut,"1"),e.removeItem(eut),!0}catch(n){return!1}}var rut={};Object.defineProperty(rut,"__esModule",{value:!0});var iut=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var aut=function(){function t(){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._data={}}return iut(t,[{key:"getItem",value:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}},{key:"setItem",value:function(t,e){return this._data[t]=String(e)}},{key:"removeItem",value:function(t){return delete this._data[t]}},{key:"clear",value:function(){return this._data={}}}]),t}();rut.default=aut,Object.defineProperty(Bst,"__esModule",{value:!0}),Bst.MemoryStorage=Bst.CookieStorage=Bst.isSupported=Bst.storage=void 0;var out=lut(Vst),sut=lut(Hst),uut=lut(rut);function lut(t){return t&&t.__esModule?t:{default:t}}var cut=null;(0,out.default)("localStorage")?Bst.storage=cut=window.localStorage:(0,out.default)("sessionStorage")?Bst.storage=cut=window.sessionStorage:(0,out.default)("cookieStorage")?Bst.storage=cut=new sut.default:Bst.storage=cut=new uut.default;var fut=Bst.default=cut;Bst.storage=cut,Bst.isSupported=out.default,Bst.CookieStorage=sut.default,Bst.MemoryStorage=uut.default;var dut=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";Ai(this,t),Lst(this,"group"),Lst(this,"localStorage"),this.group=e,this.localStorage=fut}return Ci(t,[{key:"setGroup",value:function(t){this.group=t}},{key:"getGroup",value:function(){return this.group}},{key:"getItem",value:function(t){return this.localStorage.getItem("".concat(this.group,".").concat(t))}},{key:"setItem",value:function(t,e){this.localStorage.setItem("".concat(this.group,".").concat(t),e)}},{key:"removeItem",value:function(t){this.localStorage.removeItem("".concat(this.group,".").concat(t))}}]),t}();new dut;var hut=function(){function t(){Ai(this,t),Lst(this,"storageLocation","suggestion_history"),Lst(this,"storage"),Lst(this,"history",[]),this.storage=new dut("commute");var e=this.storage.getItem(this.storageLocation);e&&(this.history=JSON.parse(e))}return Ci(t,[{key:"push",value:function(t){this.history=this.removeDuplicateEntries(t),this.history.unshift(t),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}},{key:"hasSuggestionHistory",value:function(){return this.history.length>0}},{key:"getSuggestionHistory",value:function(){return this.history}},{key:"removeDuplicateEntries",value:function(t){return this.history.filter((function(e){return e.locationId!==t.locationId}))}}]),t}();new hut;var put=function(t){var e=Est().client.options.locale,n=void 0===e?"en":e,r=ki.exports.useMemo((function(){return Nst.mergeDeep.apply(Nst,[{}].concat(mi(t)))[n]}),[n,t]);return{locale:n,translations:r}},vut={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és",car_friendly:"Voiture",cycling_friendly:"Vélo",daycares:"Garderies",greenery:"Verdure",groceries:"Épiceries",high_schools:"Écoles secondaires",historic:"Historique",nightlife:"Vie nocturne",parks:"Parcs",pedestrian_friendly:"Marche",primary_schools:"Écoles primaires",quiet:"Silencieux",restaurants:"Restaurants",shopping:"Magasins",transit_friendly:"Transport public",vibrant:"Dynamisme",wellness:"Bien-être"}},gut={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é et de la diversité des cafés à proximité.","car_friendly-description":"Représente la fluidité de la circulation et la facilité de stationnement.","cycling_friendly-description":"Représente à quel point la zone est adaptée au cyclisme en termes d'infrastructure cyclable à proximité et de rues calmes, ainsi que le nombre de destinations pouvant être atteintes à vélo.","daycares-description":"Représente la distance à la garderie la plus proche.","greenery-description":"Quantité d'espaces verts à proximité et couverture de la canopée des arbres.","groceries-description":"Une mesure de la quantité d'épiceries à proximité.","high_schools-description":"Représente la distance à l'école secondaire la plus proche.","historic-description":"Une mesure de la quantité et de la taille des bâtiments patrimoniaux, et de l'âge moyen des bâtiments dans la région.","nightlife-description":"Représente la quantité et la diversité des bars à proximité.","parks-description":"Une mesure de la quantité et de la taille des parcs à proximité.","pedestrian_friendly-description":"Une mesure de la proximité des services de base et de l'agrément d'y aller à pied.","primary_schools-description":"Une mesure de la distance à l'école primaire la plus proche.","quiet-description":"Une mesure des niveaux moyens de bruit à proximité.","restaurants-description":"Représente la quantité et la diversité des restaurants à proximité.","shopping-description":"Une mesure de la quantité et de la diversité de magasins de mode et de grands magasins à proximité.","transit_friendly-description":"Une mesure de la fréquence et du niveau de service de transport en commun.","vibrant-description":"Représente le niveau d'activité de la rue à proximité.","wellness-description":"Représente à quel point un emplacement est propice au bien-être des individus."}},mut=function(t){var e,n=Tst().options.score,r=put([gut,vut]).translations;return null!=(e=t.options)&&e.isRawText?k2(w2,{children:r[n]}):k2(r5,_i(_i({},t.options),{},{children:r[n]}))};mut.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1",isRawText:!1}};var yut=function(t){return bk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[yk("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"}),yk("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"}),yk("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"})]}))},but=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},_ut=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},xut=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},wut=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},kut=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},Sut=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},Eut=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},Cut=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},Aut=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},Tut=function(t){return bk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[yk("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"}),yk("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"}),yk("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"})]}))},Mut={pedestrian_friendly:function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},transit_friendly:yut,cycling_friendly:function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},car_friendly:function(t){return bk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[yk("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"}),yk("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"}),yk("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"})]}))},groceries:kut,restaurants:wut,cafes:but,shopping:_ut,wellness:Cut,parks:Sut,greenery:function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},vibrant:function(t){return bk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[yk("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"}),yk("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"}),yk("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"}),yk("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"}),yk("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"})]}))},nightlife:xut,quiet:function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},historic:function(t){return bk("svg",_i(_i({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[yk("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"}),yk("path",{d:"M9.16671 7.5H7.50004V10H9.16671V7.5Z"}),yk("path",{d:"M12.5 7.5H10.8334V10H12.5V7.5Z"})]}))},high_schools:Aut,primary_schools:Tut,daycares:Eut},Out=(hi("N",{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"]}),function(t){var e=t.options,n=Tst().options.score;return k2(Q2,{SVGElement:Mut[n],fill:"var(".concat(null==e?void 0:e.color,")"),height:null==e?void 0:e.height,width:null==e?void 0:e.width})});Out.defaultProps={options:{color:"--ll-color-on-background-variant1"}};var Put={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0},Rut=function(){var t=function(){var t=wi(ki.exports.useState(!0),2),e=t[0],n=t[1];return ki.exports.useEffect((function(){n(!1)}),[]),e}(),e=wi(ki.exports.useState(null),2),n=e[0],r=e[1],i=wi(ki.exports.useState(Put),2),a=i[0],o=i[1],s=ki.exports.useMemo((function(){return t?void 0:new window.ResizeObserver((function(t){if(t[0]){var e=t[0].contentRect,n=e.x,r=e.y,i=e.width,a=e.height,s=e.top,u=e.left,l=e.bottom,c=e.right;o({x:n,y:r,width:i,height:a,top:s,left:u,bottom:l,right:c})}}))}),[t]);return ki.exports.useLayoutEffect((function(){if(n&&!t)return null==s||s.observe(n),function(){null==s||s.disconnect()}}),[n,t]),[r,a,n]},Dut={en:{LOCATION:"This Location",CITY:"City",NEIGHBOURHOOD:"Neighbourhood",AVG:"Avg."},fr:{LOCATION:"Ce Lieu",CITY:"Ville",NEIGHBOURHOOD:"Quartier",AVG:"Moy."}},Lut=qC.div(we||(we=ci(["\n position: relative;\n display: grid;\n grid-template-columns: ",";\n align-items: center;\n grid-column-gap: ",";\n width: 100%;\n"])),(function(t){return t.$isUsingIcons?"auto auto 1fr auto":"auto 1fr auto"}),N2["--ll-spacing-x-small"]),Iut=qC.div(ke||(ke=ci(["\n height: ","px;\n width: 100%;\n border-radius: ","px;\n background-color: ",";\n position: relative;\n overflow: hidden;\n"])),8,4,N2["--ll-color-surface-variant1"]),Nut=qC(_L.div)(Se||(Se=ci(["\n position: absolute;\n height: 100%;\n border-radius: ","px;\n background: ",";\n"])),4,(function(t){return!0===t.$renderForPrint?WC(Ee||(Ee=ci(["\n ","\n "])),N2["--ll-color-primary"]):WC(Ce||(Ce=ci(["linear-gradient(\n to right,\n ",",\n ","\n )"])),N2["--ll-color-primary-variant1"],N2["--ll-color-primary"])}));qC.div(Ae||(Ae=ci(["\n position: absolute;\n height: 100%;\n top: 0;\n left: ","%;\n transform: translateX(-1px);\n border-right: ",";\n"])),(function(t){return 10*t.val}),(function(t){var e=t.markerType;return"4px ".concat("city"===e?"solid":"dotted"," ").concat(N2["--ll-color-on-background"])})),qC.div(Te||(Te=ci(["\n position: absolute;\n top: ",";\n bottom: ",";\n transform: translateX(calc(-50% + 2px));\n left: 0;\n"])),(function(t){return"top"===t.position&&"-18px"}),(function(t){return"bottom"===t.position&&"-18px"}));var Fut=qC.div(Me||(Me=ci(["\n display: flex;\n max-width: ","px;\n"])),(function(t){return t.maxWidth})),zut=qC(r5)(Oe||(Oe=ci(["\n margin-right: 4px;\n"]))),jut=qC.span(Pe||(Pe=ci(["\n flex-shrink: 0;\n"]))),But=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},Vut=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},Hut=qC.div(Re||(Re=ci(["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n"]))),Uut=qC(kst.Content)(De||(De=ci(["\n z-index: 3;\n"]))),Wut=Object.freeze(Object.defineProperty({__proto__:null,Badge:function(t){var e=t.options,n=(e=void 0===e?{}:e).variant,r=void 0===n?"large":n,i=e.isPrimary,a=void 0===i||i,o=Tst().options,s=o.scoresData,u=o.score,l=Ost({scoresData:s,score:u}).scoreVal;return null==l?null:k2(Pst,{"data-testid":"score-badge",$variant:r,$isPrimary:a,children:k2(Rst,{children:l})})},Title:mut,Icon:Out,BarChart:function(t){var e=t.options,n=(e=void 0===e?{}:e).locationIcon,r=e.cityIcon,i=e.neighbourhoodIcon,a=e.renderCityAvg,o=e.renderNeighbourhoodAvg,s=Tst().options,u=s.scoresData,l=s.score,c=Est().options,f=Ost({score:l,scoresData:u}),d=f.scoreVal,h=f.cityName,p=f.cityScoreVal,v=f.neighbourhoodName,g=f.neighbourhoodScoreVal,m=put([Dut]).translations,y=!!n||!!r||!!i,b=wi(Rut(),2),_=b[0],x=b[1],w=k2("div",{}),k=function(t){return t?k2(Q2,{width:20,height:20,SVGElement:t,fill:N2["--ll-color-on-background-variant1"]}):y?w:void 0};return d?k2(w2,{children:S2(Lut,{$isUsingIcons:y,ref:_,children:[S2(w2,{children:[k(n),k2(r5,{variant:"p",weight:"--ll-font-weight-bold",noMargin:!0,color:"--ll-color-on-background-variant1",children:m.LOCATION}),k2(Iut,{children:k2(Nut,{$renderForPrint:null==c?void 0:c.renderForPrint,animate:{width:"".concat(d/10*100,"%")},transition:!0===(null==c?void 0:c.renderForPrint)?{delay:0,duration:0}:_i({delay:.3},U2.transitions.spring)})}),k2(r5,{variant:"p",weight:"--ll-font-weight-bold",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:d})]}),g&&!1!==o&&S2(w2,{children:[k(i),S2(Fut,{maxWidth:x.width/2,children:[k2(zut,{variant:"p",lineClamp:1,noMargin:!0,color:"--ll-color-on-background-variant1",children:v||m.NEIGHBOURHOOD}),k2(jut,{children:k2(r5,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:m.AVG})})]}),k2(Iut,{children:k2(Nut,{animate:{width:"".concat(g/10*100,"%")},transition:_i({delay:.5},U2.transitions.spring)})}),k2(r5,{variant:"p",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:g})]}),p&&!1!==a&&S2(w2,{children:[k(r),S2(Fut,{maxWidth:x.width/2,children:[k2(zut,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:h||m.CITY}),k2(jut,{children:k2(r5,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:m.AVG})})]}),k2(Iut,{children:k2(Nut,{animate:{width:"".concat(p/10*100,"%")},transition:_i({delay:.4},U2.transitions.spring)})}),k2(r5,{variant:"p",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:p})]})]})}):null},Description:function(){var t=Tst(),e=t.options,n=e.scoresData,r=e.score,i=t.onChange,a=Ost({scoresData:n,score:r}).textVal,o=wi(ki.exports.useState(!1),2),s=o[0],u=o[1],l=put([gut,vut]).translations;return a?S2(Hut,{children:[S2(r5,{noMargin:!0,color:"--ll-color-on-surface-variant1",children:[a,"."]}),S2(kst.Root,{open:s,onOpenChange:function(t){u(t),i&&i({type:"tooltip-toggle",data:t})},children:[k2(kst.Trigger,{children:k2(Q2,{SVGElement:s?But:Vut,fill:N2["--ll-color-primary"],height:20,width:20})}),k2(Uut,{children:k2(r5,{noMargin:!0,color:"--ll-color-on-surface-variant1",children:l["".concat(r,"-description")]})})]})]}):null},Root:function(t){return k2(Ast.Provider,{value:_i({},t),children:t.children})}},Symbol.toStringTag,{value:"Module"})),Yut={en:{LOCAL_LOGIC:"Local Logic",POWERED_BY:"Powered by"},fr:{LOCAL_LOGIC:"Local Logic",POWERED_BY:"Propulsé par"}},Gut=qC.a(Le||(Le=ci(["\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n margin-top: 1px;\n width: 100%;\n"]))),qut=qC.img(Ie||(Ie=ci(["\n height: 20px;\n margin-left: ",";\n"])),N2["--ll-spacing-base-unit"]),Zut=qC(r5)(Ne||(Ne=ci(["\n line-height: initial;\n"]))),Xut=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Kut=Object.freeze(Object.defineProperty({__proto__:null,Root:function(){var t=put([Yut]).translations;return S2(Gut,{href:"https://locallogic.co/",target:"_blank",rel:"noreferrer",children:[k2(Zut,{variant:"caption1",weight:"--ll-font-weight-medium",noMargin:!0,lineClamp:1,color:"--ll-color-on-background-variant1",children:t.POWERED_BY}),k2(qut,{src:"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="})]})},Types:Xut},Symbol.toStringTag,{value:"Module"})),$ut=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("path",{d:"M10 20V14H14V20H19V12H22L12 3L2 12H5V20H10Z"})}))},Qut=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},Jut=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),tlt=Object.freeze(Object.defineProperty({__proto__:null,Root:function(t){var e=t.options;return k2(V5,{SVGElement:"house"===e.style?$ut:Qut,size:e.size||"large",backgroundColor:N2["--ll-color-primary"],backgroundColorHighlight:N2["--ll-color-primary-variant1"]})},Types:Jut},Symbol.toStringTag,{value:"Module"})),elt=pa.createContext({}),nlt=function(){return ki.exports.useContext(elt)},rlt={groceries:function(t){return yk("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),{},{children:yk("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"})}))},groceries_specialized:kut,shopping:_ut,nightlife:xut,restaurants:wut,healthy_restaurants:Cut,cafes:but,daycares:Eut,bus_stops:yut,rapid_transit_stations:function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},train_stations:function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},parks:Sut,fitness:function(t){return bk("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),{},{children:[yk("path",{d:"M0 0h24v24H0z",fill:"none"}),yk("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"})]}))},personal_care:Cut,pet_care:function(t){return bk("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),{},{children:[yk("path",{d:"M0 0h24v24H0z",fill:"none"}),yk("circle",{cx:4.5,cy:9.5,r:2.5}),yk("circle",{cx:9,cy:5.5,r:2.5}),yk("circle",{cx:15,cy:5.5,r:2.5}),yk("circle",{cx:19.5,cy:9.5,r:2.5}),yk("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"})]}))},car_fueling_stations:function(t){return bk("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),{},{children:[yk("path",{d:"M0 0h24v24H0z",fill:"none"}),yk("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"})]}))},health_care:function(t){return bk("svg",_i(_i({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:[yk("rect",{fill:"none",height:24,width:24}),yk("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"})]}))},sport_facilities:function(t){return bk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[yk("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"}),yk("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"})]}))},art_culture_science:function(t){return bk("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",viewBox:"0 0 24 24"},t),{},{children:[yk("g",{children:yk("rect",{fill:"none",height:24,width:24})}),yk("g",{children:yk("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"})})]}))},home_improvement:function(t){return bk("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",viewBox:"0 0 24 24"},t),{},{children:[yk("g",{children:yk("rect",{fill:"none",height:24,width:24})}),yk("g",{children:bk("g",{children:[yk("g",{children:yk("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"})}),yk("g",{children:yk("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"})})]})})]}))},primary_schools:Tut,high_schools:Aut},ilt=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},alt={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énérales",groceries_specialized:"Spécialisées",shopping:"Magasinage",nightlife:"Nightlife",restaurants:"Restaurants",cafes:"Cafés",daycares:"Garderies",bus_stops:"Autobus",rapid_transit_stations:"Métro",train_stations:"Train",parks:"Parcs",healthy_restaurants:"Restaurants sains",fitness:"Fitness",sport_facilities:"Installations sportives",health_care:"Soins de santé",pet_care:"Soins pour animaux",car_fueling_stations:"Stations-service",art_culture_science:"Art, Culture, Science",home_improvement:"Amélioration de l'habitat",personal_care:"Soins personnels"}},olt={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çais",SPANISH:"Espagnol",high_schools:"Écoles secondaires",primary_schools:"Écoles primaires",CALCULATE:"Calculer"}},slt=qC.div(Fe||(Fe=ci(["\n display: flex;\n margin-bottom: ",";\n align-items: center;\n justify-content: ",";\n"])),N2["--ll-spacing-xx-small"],(function(t){return t.justify||"start"})),ult=qC(K2)(ze||(ze=ci(["\n margin-right: 2px;\n margin-bottom: 2px;\n"]))),llt=qC.div(je||(je=ci(["\n display: grid;\n grid-template-columns: auto 1fr;\n grid-column-gap: 10px;\n margin-bottom: ",";\n"])),N2["--ll-spacing-xx-small"]),clt=qC(kst.Content)(Be||(Be=ci(["\n z-index: 3;\n"]))),flt=qC(r5)(Ve||(Ve=ci([""]))),dlt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),hlt=Object.freeze(Object.defineProperty({__proto__:null,Types:dlt,Marker:function(){var t=nlt().options,e=t.type,n=t.isOpen,r=t.isHovered,i=t.size;return k2(kst.Trigger,{children:k2(V5,{size:i,SVGElement:rlt[e],expandMarker:n||r,backgroundColor:N2["--ll-color-primary"],backgroundColorHighlight:N2["--ll-color-primary-variant1"]})})},Content:function(){var t,e,n,r,i,a,o=nlt().options,s=o.poi,u=o.side,l=o.collisionPadding,c=o.type,f=o.walkingTime,d=o.calculateRoute,h=put([alt,olt]).translations,p="high_schools"===c||"primary_schools"===c?"school":"poi",v=function(t,e){return S2(w2,{children:[S2(flt,{children:[t,": "]}),k2(flt,{color:N2["--ll-color-on-background-variant1"],children:Fst.capitalize(e)})]})};return S2(clt,{side:u,collisionPadding:l,children:[k2(r5,{variant:"h4",noMargin:!0,weight:"--ll-font-weight-bold",children:s.name}),k2(W3,{vertical:!0,spacing:"--ll-spacing-xx-small"}),s.address&&k2(r5,{variant:"p",noMargin:!0,children:s.address}),k2(W3,{vertical:!0,spacing:"--ll-spacing-xx-small"}),s.url&&S2(w2,{children:[k2(a5,{lineClamp:2,href:s.url,children:s.url}),k2(W3,{vertical:!0,spacing:"--ll-spacing-xx-small"})]}),jst.poi.isSchool(s,p)?S2(llt,{children:[(null==(t=s.school_attributes)?void 0:t.grades)&&v(h.SCHOOL_LEVELS,s.school_attributes.grades),(null==(e=s.school_attributes)?void 0:e.languages)&&v(h.SCHOOL_LANGUAGES,function(t){return t.map((function(t){switch(t){case"en":return h.ENGLISH;case"fr":return h.FRENCH;case"es":return h.SPANISH;default:return t}}))}(s.school_attributes.languages).join(", ")),(null==(n=s.school_attributes)?void 0:n.types)&&v(h.SCHOOL_TYPE,s.school_attributes.types.join(", ")),(null==(r=s.school_board_attributes)?void 0:r.name)&&(null==(i=s.school_board_attributes)?void 0:i.url)&&S2(w2,{children:[S2(flt,{children:[h.SCHOOL_BOARD,": "]}),k2(a5,{href:s.school_board_attributes.url,children:Fst.capitalize(s.school_board_attributes.name)})]})]}):s.routes&&S2(slt,{children:[k2(Q2,{SVGElement:rlt[c],height:20,width:20,fill:N2["--ll-color-on-background"]}),null==(a=s.routes)?void 0:a.map((function(t,e){return k2(ult,{text:t.short_name,backgroundColor:t.route_color,textColor:t.text_color},t.short_name+e)}))]}),k2(K2,{text:h[c],size:"medium",backgroundColor:N2["--ll-color-primary"]}),d&&S2(w2,{children:[k2(W3,{vertical:!0,spacing:"--ll-spacing-small"}),S2(slt,{justify:f?"space-between":"end",children:[f&&S2(slt,{children:[k2(Q2,{SVGElement:ilt,height:20,width:20,fill:N2["--ll-color-on-background"]}),k2(r5,{variant:"p",noMargin:!0,children:f})]}),k2(z5,{size:"small",variant:"contained",onClick:d,children:h.CALCULATE})]})]})]})},Root:function(t){return k2(kst.Root,{open:t.options.isOpen,onOpenChange:function(e){return t.onChange&&t.onChange({type:"open-change",data:e})},children:k2(elt.Provider,{value:_i({},t),children:t.children})})}},Symbol.toStringTag,{value:"Module"})),plt=qC.ul(He||(He=ci(["\n list-style: none;\n padding: 0;\n margin-bottom: 0;\n"]))),vlt=qC.li(Ue||(Ue=ci(["\n cursor: default;\n padding: ",";\n margin-bottom: ",";\n border-radius: ",";\n background-color: ",";\n"])),N2["--ll-spacing-x-small"],N2["--ll-spacing-xx-small"],N2["--ll-border-radius-small"],(function(t){var e=t.isActive,n=t.isHovered;return e||n?N2["--ll-color-surface-variant1"]:N2["--ll-color-background"]})),glt=qC.div(We||(We=ci(["\n display: flex;\n flex-wrap: wrap;\n"]))),mlt=qC(K2)(Ye||(Ye=ci(["\n margin-right: 2px;\n margin-bottom: 2px;\n"]))),ylt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),blt=Object.freeze(Object.defineProperty({__proto__:null,Root:function(t){var e=t.options,n=e.data,r=e.type,i=e.activePOI,a=e.hoveredPOI,o=t.onChange;return k2(plt,{children:n.map((function(t,e){var n,s,u;return S2(vlt,{isActive:i===t,isHovered:a===t,onClick:function(){return o&&o({type:"poi-click",data:t})},onMouseOver:function(){return o&&o({type:"poi-hover",data:t})},onMouseLeave:function(){return o&&o({type:"poi-hover",data:void 0})},children:[k2(r5,{variant:"p",color:"--ll-color-on-surface-variant1",noMargin:!0,children:t.name}),jst.poi.isSchool(t,r)?k2(glt,{children:null==(s=null==(n=t.school_attributes)?void 0:n.types)?void 0:s.map((function(t,e){return k2(mlt,{text:t},t)}))}):k2(glt,{children:null==(u=t.routes)?void 0:u.map((function(t,e){return k2(mlt,{text:t.short_name,backgroundColor:t.route_color,textColor:t.text_color},t.short_name+e)}))})]},"".concat(t.name,"-").concat(t.lat,"-").concat(t.lng,"-").concat(e))}))})},Types:ylt},Symbol.toStringTag,{value:"Module"})),_lt=pa.createContext({}),xlt=function(){return ki.exports.useContext(_lt)},wlt={en:{commute:"Transport",amenities:"Amenities",character:"Character",nature:"Nature",education:"Education",about:"About"},fr:{commute:"Transport",amenities:"Services",character:"Caractère",nature:"Nature",education:"Familles",about:"Info"}},klt=function(t){var e=xlt().scoreCategory,n=put([wlt]).translations;return k2(r5,_i(_i({},t.options),{},{children:n[e]}))};hi({f:Wut,p:Kut,B:tlt,W:hlt,Z:blt}),klt.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1"}};var Slt=function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},Elt=hi("O",[{value:"commute",icon:Slt,scores:["transit_friendly","car_friendly","pedestrian_friendly","cycling_friendly"]},{value:"education",icon:Aut,scores:["primary_schools","high_schools","daycares"]},{value:"amenities",icon:function(t){return yk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},scores:["groceries","restaurants","shopping","cafes"]},{value:"character",icon:function(t){return bk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[yk("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"}),yk("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"}),yk("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"}),yk("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"}),yk("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"})]}))},scores:["quiet","nightlife","vibrant","historic"]},{value:"nature",icon:function(t){return bk("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[yk("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"}),yk("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"})]}))},scores:["parks","greenery"]}]),Clt=function(t){var e=t.options,n=xlt().scoreCategory,r=Elt.find((function(t){return t.value===n}));return k2(Q2,{SVGElement:r.icon,fill:"var(".concat(null==e?void 0:e.color,")"),height:null==e?void 0:e.height,width:null==e?void 0:e.width})};Clt.defaultProps={options:{color:"--ll-color-on-background-variant1"}};var Alt=function(t){var e=t.options,n=t.children;return k2(_lt.Provider,{value:_i({},e),children:n})},Tlt=hi("h",Object.freeze(Object.defineProperty({__proto__:null,Root:Alt,Title:klt,Icon:Clt},Symbol.toStringTag,{value:"Module"})));function Mlt(){return Mlt=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},Mlt.apply(this,arguments)}function Olt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.checkForDefaultPrevented,i=void 0===r||r;return function(n){if(null==t||t(n),!1===i||!n.defaultPrevented)return null==e?void 0:e(n)}}function Plt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];function r(e,r){var i=ki.exports.createContext(r),a=n.length;function o(e){var n=e.scope,r=e.children,o=fi(e,Qr),s=(null==n?void 0:n[t][a])||i,u=ki.exports.useMemo((function(){return o}),Object.values(o));return ki.exports.createElement(s.Provider,{value:u},r)}return n=[].concat(mi(n),[r]),o.displayName=e+"Provider",[o,function(n,o){var s=(null==o?void 0:o[t][a])||i,u=ki.exports.useContext(s);if(u)return u;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(e,"`"))}]}var i=function(){var e=n.map((function(t){return ki.exports.createContext(t)}));return function(n){var r=(null==n?void 0:n[t])||e;return ki.exports.useMemo((function(){return xi({},"__scope".concat(t),_i(_i({},n),{},xi({},t,r)))}),[n,r])}};return i.scopeName=t,[r,Rlt.apply(void 0,[i].concat(mi(e)))]}function Rlt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if(1===e.length)return r;var i=function(){var t=e.map((function(t){return{useScope:t(),scopeName:t.scopeName}}));return function(e){var n=t.reduce((function(t,n){var r=n.useScope,i=n.scopeName,a=r(e)["__scope".concat(i)];return _i(_i({},t),a)}),{});return ki.exports.useMemo((function(){return xi({},"__scope".concat(r.scopeName),n)}),[n])}};return i.scopeName=r.scopeName,i}function Dlt(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}function Llt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.forEach((function(e){return Dlt(e,t)}))}}function Ilt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ki.exports.useCallback(Llt.apply(void 0,e),e)}var Nlt=ki.exports.forwardRef((function(t,e){var n=t.children,r=fi(t,Jr),i=ki.exports.Children.toArray(n),a=i.find(jlt);if(a){var o=a.props.children,s=i.map((function(t){return t===a?ki.exports.Children.count(o)>1?ki.exports.Children.only(null):ki.exports.isValidElement(o)?o.props.children:null:t}));return ki.exports.createElement(Flt,Mlt({},r,{ref:e}),ki.exports.isValidElement(o)?ki.exports.cloneElement(o,void 0,s):null)}return ki.exports.createElement(Flt,Mlt({},r,{ref:e}),n)}));Nlt.displayName="Slot";var Flt=ki.exports.forwardRef((function(t,e){var n=t.children,r=fi(t,ti);return ki.exports.isValidElement(n)?ki.exports.cloneElement(n,_i(_i({},function(t,e){var n=_i({},e),r=function(r){var i=t[r],a=e[r];/^on[A-Z]/.test(r)?n[r]=function(){null==a||a.apply(void 0,arguments),null==i||i.apply(void 0,arguments)}:"style"===r?n[r]=_i(_i({},i),a):"className"===r&&(n[r]=[i,a].filter(Boolean).join(" "))};for(var i in e)r(i);return _i(_i({},t),n)}(r,n.props)),{},{ref:Llt(e,n.ref)})):ki.exports.Children.count(n)>1?ki.exports.Children.only(null):null}));Flt.displayName="SlotClone";var zlt=function(t){var e=t.children;return ki.exports.createElement(ki.exports.Fragment,null,e)};function jlt(t){return ki.exports.isValidElement(t)&&t.type===zlt}var Blt=Boolean(null==globalThis?void 0:globalThis.document)?ki.exports.useLayoutEffect:function(){},Vlt=va["useId".toString()]||function(){},Hlt=0;function Ult(t){var e=wi(ki.exports.useState(Vlt()),2),n=e[0],r=e[1];return Blt((function(){t||r((function(t){return null!=t?t:String(Hlt++)}))}),[t]),t||(n?"radix-".concat(n):"")}var Wlt=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(t,e){var n=ki.exports.forwardRef((function(t,n){var r=t.asChild,i=fi(t,ni),a=r?Nlt:e;return ki.exports.useEffect((function(){window[Symbol.for("radix-ui")]=!0}),[]),ki.exports.createElement(a,Mlt({},i,{ref:n}))}));return n.displayName="Primitive.".concat(e),_i(_i({},t),{},xi({},e,n))}),{});function Ylt(t){var e=ki.exports.useRef(t);return ki.exports.useEffect((function(){e.current=t})),ki.exports.useMemo((function(){return function(){for(var t,n,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return null===(n=e.current)||void 0===n?void 0:(t=n).call.apply(t,[e].concat(i))}}),[])}function Glt(t){var e=t.prop,n=t.defaultProp,r=t.onChange,i=void 0===r?function(){}:r,a=function(t){var e=t.defaultProp,n=t.onChange,r=ki.exports.useState(e),i=wi(r,1)[0],a=ki.exports.useRef(i),o=Ylt(n);return ki.exports.useEffect((function(){a.current!==i&&(o(i),a.current=i)}),[i,a,o]),r}({defaultProp:n,onChange:i}),o=wi(a,2),s=o[0],u=o[1],l=void 0!==e,c=l?e:s,f=Ylt(i),d=ki.exports.useCallback((function(t){if(l){var n="function"==typeof t?t(e):t;n!==e&&f(n)}else u(t)}),[l,e,u,f]);return[c,d]}var qlt=ki.exports.createContext(void 0);function Zlt(t){var e=ki.exports.useContext(qlt);return t||e||"ltr"}var Xlt="rovingFocusGroup.onEntryFocus",Klt={bubbles:!1,cancelable:!0},$lt="RovingFocusGroup",Qlt=function(t){var e=t+"CollectionProvider",n=wi(Plt(e),2),r=n[0],i=n[1],a=wi(r(e,{collectionRef:{current:null},itemMap:new Map}),2),o=a[0],s=a[1],u=t+"CollectionSlot",l=pa.forwardRef((function(t,e){var n=t.scope,r=t.children,i=Ilt(e,s(u,n).collectionRef);return pa.createElement(Nlt,{ref:i},r)})),c=t+"CollectionItemSlot",f="data-radix-collection-item",d=pa.forwardRef((function(t,e){var n,r=t.scope,i=t.children,a=fi(t,ei),o=pa.useRef(null),u=Ilt(e,o),l=s(c,r);return pa.useEffect((function(){return l.itemMap.set(o,_i({ref:o},a)),function(){l.itemMap.delete(o)}})),pa.createElement(Nlt,(xi(n={},f,""),xi(n,"ref",u),n),i)}));return[{Provider:function(t){var e=t.scope,n=t.children,r=pa.useRef(null),i=pa.useRef(new Map).current;return pa.createElement(o,{scope:e,itemMap:i,collectionRef:r},n)},Slot:l,ItemSlot:d},function(e){var n=s(t+"CollectionConsumer",e);return pa.useCallback((function(){var t=n.collectionRef.current;if(!t)return[];var e=Array.from(t.querySelectorAll("[".concat(f,"]")));return Array.from(n.itemMap.values()).sort((function(t,n){return e.indexOf(t.ref.current)-e.indexOf(n.ref.current)}))}),[n.collectionRef,n.itemMap])},i]}($lt),Jlt=wi(Qlt,3),tct=Jlt[0],ect=Jlt[1],nct=wi(Plt($lt,[Jlt[2]]),2),rct=nct[0],ict=nct[1],act=wi(rct($lt),2),oct=act[0],sct=act[1],uct=ki.exports.forwardRef((function(t,e){return ki.exports.createElement(tct.Provider,{scope:t.__scopeRovingFocusGroup},ki.exports.createElement(tct.Slot,{scope:t.__scopeRovingFocusGroup},ki.exports.createElement(lct,Mlt({},t,{ref:e}))))})),lct=ki.exports.forwardRef((function(t,e){var n=t.__scopeRovingFocusGroup,r=t.orientation,i=t.loop,a=void 0!==i&&i,o=t.dir,s=t.currentTabStopId,u=t.defaultCurrentTabStopId,l=t.onCurrentTabStopIdChange,c=t.onEntryFocus,f=fi(t,ri),d=ki.exports.useRef(null),h=Ilt(e,d),p=Zlt(o),v=wi(Glt({prop:s,defaultProp:u,onChange:l}),2),g=v[0],m=void 0===g?null:g,y=v[1],b=wi(ki.exports.useState(!1),2),_=b[0],x=b[1],w=Ylt(c),k=ect(n),S=ki.exports.useRef(!1);return ki.exports.useEffect((function(){var t=d.current;if(t)return t.addEventListener(Xlt,w),function(){return t.removeEventListener(Xlt,w)}}),[w]),ki.exports.createElement(oct,{scope:n,orientation:r,dir:p,loop:a,currentTabStopId:m,onItemFocus:ki.exports.useCallback((function(t){return y(t)}),[y]),onItemShiftTab:ki.exports.useCallback((function(){return x(!0)}),[])},ki.exports.createElement(Wlt.div,Mlt({tabIndex:_?-1:0,"data-orientation":r},f,{ref:h,style:_i({outline:"none"},t.style),onMouseDown:Olt(t.onMouseDown,(function(){S.current=!0})),onFocus:Olt(t.onFocus,(function(t){var e=!S.current;if(t.target===t.currentTarget&&e&&!_){var n=new CustomEvent(Xlt,Klt);if(t.currentTarget.dispatchEvent(n),!n.defaultPrevented){var r=k().filter((function(t){return t.focusable})),i=r.find((function(t){return t.active})),a=r.find((function(t){return t.id===m})),o=[i,a].concat(mi(r)).filter(Boolean).map((function(t){return t.ref.current}));dct(o)}}S.current=!1})),onBlur:Olt(t.onBlur,(function(){return x(!1)}))})))})),cct=ki.exports.forwardRef((function(t,e){var n=t.__scopeRovingFocusGroup,r=t.focusable,i=void 0===r||r,a=t.active,o=void 0!==a&&a,s=fi(t,ii),u=Ult(),l=sct("RovingFocusGroupItem",n),c=l.currentTabStopId===u,f=ect(n);return ki.exports.createElement(tct.ItemSlot,{scope:n,id:u,focusable:i,active:o},ki.exports.createElement(Wlt.span,Mlt({tabIndex:c?0:-1,"data-orientation":l.orientation},s,{ref:e,onMouseDown:Olt(t.onMouseDown,(function(t){i?l.onItemFocus(u):t.preventDefault()})),onFocus:Olt(t.onFocus,(function(){return l.onItemFocus(u)})),onKeyDown:Olt(t.onKeyDown,(function(t){if("Tab"===t.key&&t.shiftKey)l.onItemShiftTab();else if(t.target===t.currentTarget){var e=function(t,e,n){var r=function(t,e){return"rtl"!==e?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t}(t.key,n);if(!("vertical"===e&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===e&&["ArrowUp","ArrowDown"].includes(r)))return fct[r]}(t,l.orientation,l.dir);if(void 0!==e){t.preventDefault();var n=f().filter((function(t){return t.focusable})).map((function(t){return t.ref.current}));if("last"===e)n.reverse();else if("prev"===e||"next"===e){"prev"===e&&n.reverse();var r=n.indexOf(t.currentTarget);n=l.loop?function(t,e){return t.map((function(n,r){return t[(e+r)%t.length]}))}(n,r+1):n.slice(r+1)}setTimeout((function(){return dct(n)}))}}}))})))})),fct={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dct(t){var e,n=document.activeElement,r=zi(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(i===n||(i.focus(),document.activeElement!==n))return}}catch(a){r.e(a)}finally{r.f()}}var hct=uct,pct=cct;var vct=function(t){var e=t.present,n=t.children,r=function(t){var e=wi(ki.exports.useState(),2),n=e[0],r=e[1],i=ki.exports.useRef({}),a=ki.exports.useRef(t),o=ki.exports.useRef("none"),s=wi(function(t,e){return ki.exports.useReducer((function(t,n){var r=e[t][n];return null!=r?r:t}),t)}(t?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),2),u=s[0],l=s[1];return ki.exports.useEffect((function(){var t=gct(i.current);o.current="mounted"===u?t:"none"}),[u]),Blt((function(){var e=i.current,n=a.current;if(n!==t){var r=o.current,s=gct(e);t?l("MOUNT"):"none"===s||"none"===(null==e?void 0:e.display)?l("UNMOUNT"):l(n&&r!==s?"ANIMATION_OUT":"UNMOUNT"),a.current=t}}),[t,l]),Blt((function(){if(n){var t=function(t){var e=gct(i.current).includes(t.animationName);t.target===n&&e&&ma.exports.flushSync((function(){return l("ANIMATION_END")}))},e=function(t){t.target===n&&(o.current=gct(i.current))};return n.addEventListener("animationstart",e),n.addEventListener("animationcancel",t),n.addEventListener("animationend",t),function(){n.removeEventListener("animationstart",e),n.removeEventListener("animationcancel",t),n.removeEventListener("animationend",t)}}l("ANIMATION_END")}),[n,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:ki.exports.useCallback((function(t){t&&(i.current=getComputedStyle(t)),r(t)}),[])}}(e),i="function"==typeof n?n({present:r.isPresent}):ki.exports.Children.only(n),a=Ilt(r.ref,i.ref);return"function"==typeof n||r.isPresent?ki.exports.cloneElement(i,{ref:a}):null};function gct(t){return(null==t?void 0:t.animationName)||"none"}vct.displayName="Presence";var mct="Tabs",yct=wi(Plt(mct,[ict]),2),bct=yct[0],_ct=(yct[1],ict()),xct=wi(bct(mct),2),wct=xct[0],kct=xct[1],Sct=ki.exports.forwardRef((function(t,e){var n=t.__scopeTabs,r=t.value,i=t.onValueChange,a=t.defaultValue,o=t.orientation,s=void 0===o?"horizontal":o,u=t.dir,l=t.activationMode,c=void 0===l?"automatic":l,f=fi(t,ai),d=Zlt(u),h=wi(Glt({prop:r,onChange:i,defaultProp:a}),2),p=h[0],v=h[1];return ki.exports.createElement(wct,{scope:n,baseId:Ult(),value:p,onValueChange:v,orientation:s,dir:d,activationMode:c},ki.exports.createElement(Wlt.div,Mlt({dir:d,"data-orientation":s},f,{ref:e})))})),Ect=ki.exports.forwardRef((function(t,e){var n=t.__scopeTabs,r=t.loop,i=void 0===r||r,a=fi(t,oi),o=kct("TabsList",n),s=_ct(n);return ki.exports.createElement(hct,Mlt({asChild:!0},s,{orientation:o.orientation,dir:o.dir,loop:i}),ki.exports.createElement(Wlt.div,Mlt({role:"tablist","aria-orientation":o.orientation},a,{ref:e})))})),Cct=ki.exports.forwardRef((function(t,e){var n=t.__scopeTabs,r=t.value,i=t.disabled,a=void 0!==i&&i,o=fi(t,si),s=kct("TabsTrigger",n),u=_ct(n),l=Tct(s.baseId,r),c=Mct(s.baseId,r),f=r===s.value;return ki.exports.createElement(pct,Mlt({asChild:!0},u,{focusable:!a,active:f}),ki.exports.createElement(Wlt.button,Mlt({type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:l},o,{ref:e,onMouseDown:Olt(t.onMouseDown,(function(t){a||0!==t.button||!1!==t.ctrlKey?t.preventDefault():s.onValueChange(r)})),onKeyDown:Olt(t.onKeyDown,(function(t){[" ","Enter"].includes(t.key)&&s.onValueChange(r)})),onFocus:Olt(t.onFocus,(function(){var t="manual"!==s.activationMode;!f&&!a&&t&&s.onValueChange(r)}))})))})),Act=ki.exports.forwardRef((function(t,e){var n=t.__scopeTabs,r=t.value,i=t.forceMount,a=t.children,o=fi(t,ui),s=kct("TabsContent",n),u=Tct(s.baseId,r),l=Mct(s.baseId,r),c=r===s.value,f=ki.exports.useRef(c);return ki.exports.useEffect((function(){var t=requestAnimationFrame((function(){return f.current=!1}));return function(){return cancelAnimationFrame(t)}}),[]),ki.exports.createElement(vct,{present:i||c},(function(n){var r=n.present;return ki.exports.createElement(Wlt.div,Mlt({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:l,tabIndex:0},o,{ref:e,style:_i(_i({},t.style),{},{animationDuration:f.current?"0s":void 0})}),r&&a)}))}));function Tct(t,e){return"".concat(t,"-trigger-").concat(e)}function Mct(t,e){return"".concat(t,"-content-").concat(e)}var Oct=Sct,Pct=Ect,Rct=Cct,Dct=Act,Lct=function(t){var e=ki.exports.useRef(t);return ki.exports.useEffect((function(){e.current=t})),ki.exports.useMemo((function(){return function(){for(var t,n,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return null==(n=e.current)?void 0:(t=n).call.apply(t,[e].concat(i))}}),[])},Ict=function(t){var e=t.controlledValue,n=t.onChange,r=function(t){var e=t.defaultValue,n=t.onChange,r=ki.exports.useState(e),i=wi(r,1)[0],a=ki.exports.useRef(i),o=Lct(null==n?void 0:n.func);return ki.exports.useEffect((function(){a.current!==i&&n&&(o({type:n.key,data:i}),a.current=i)}),[i,a,o]),r}({defaultValue:t.defaultValue,onChange:n}),i=wi(r,2),a=i[0],o=i[1],s=void 0!==e,u=s?e:a,l=Lct(null==n?void 0:n.func),c=ki.exports.useCallback((function(t){if(s){var r="function"==typeof t?t(e):t;r!==e&&n&&l({type:n.key,data:r})}else o(t)}),[s,u,o,l]);return[u,c]},Nct=pa.createContext({}),Fct=Tlt.Title,zct=Tlt.Icon,jct=qC(Pct)(Ge||(Ge=ci(["\n display: grid;\n grid-auto-columns: minmax(0, 1fr);\n grid-auto-flow: column;\n background-color: ",";\n"])),N2["--ll-color-background"]),Bct=qC(Rct)(qe||(qe=ci(["\n background: none;\n border: none;\n padding: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n\n &:hover {\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n }\n"])),N2["--ll-spacing-xx-small"],N2["--ll-color-surface"],N2["--ll-border-radius-small"],N2["--ll-shadow-small"]),Vct=Object.freeze(Object.defineProperty({__proto__:null,Root:function(t){var e=t.options,n=t.onChange,r=t.children,i=wi(Ict({controlledValue:e.currentTab,onChange:{func:n,key:"tabs"},defaultValue:e.defaultTab||"commute"}),2),a=i[0],o=i[1];return k2(Nct.Provider,{value:_i(_i({},e),{},{currentTab:a}),children:k2(Oct,{value:a,orientation:"vertical",defaultValue:a,onValueChange:function(t){return o(t)},children:r})})},Tabs:function(){var t=ki.exports.useContext(Nct).currentTab,e=put([wlt]).translations;return k2(jct,{"aria-label":"Score tabs",children:Elt.map((function(n){var r=n.value===t?"--ll-color-primary":"--ll-color-disabled";return k2(pa.Fragment,{children:S2(Bct,{value:n.value,children:[k2(Q2,{SVGElement:n.icon,fill:N2[r]}),k2(r5,{noMargin:!0,variant:"caption1",color:r,weight:"--ll-font-weight-medium",children:e[n.value]})]})},n.value)}))})},Content:function(t){var e=t.children,n=t.options.value;return k2(Dct,{value:n,children:k2(Alt,{options:{scoreCategory:n},children:e})},n)},Title:Fct,Icon:zct},Symbol.toStringTag,{value:"Module"})),Hct=pa.createContext({}),Uct=qC(Rct)(Ze||(Ze=ci(["\n margin-right: ",";\n margin-bottom: ",";\n"])),N2["--ll-spacing-xx-small"],N2["--ll-spacing-xx-small"]),Wct=Object.freeze(Object.defineProperty({__proto__:null,Root:function(t){var e=t.options,n=t.children,r=wi(ki.exports.useState(e.include[0]),2),i=r[0],a=r[1];return k2(Hct.Provider,{value:_i(_i({},e),{},{activeTab:i,setActiveTab:a}),children:k2(Oct,{value:i,children:n})})},Tabs:function(){var t=ki.exports.useContext(Hct),e=t.include,n=t.activeTab,r=t.setActiveTab,i=put([alt]).translations;return e.length<=1?null:k2(Pct,{"aria-label":"tabs example",children:e.map((function(t){return k2(Uct,{value:t,asChild:!0,children:k2(z5,{size:"small",variant:t===n?"contained":"outlined",onClick:function(){return r(t)},children:i[t]})},t)}))})},Content:function(t){var e=t.children,n=t.options.value;return k2(Dct,{value:n,children:e},n)}},Symbol.toStringTag,{value:"Module"})),Yct=pa.createContext({}),Gct=function(){return ki.exports.useContext(Yct)},qct=function(t){var e,n=Gct().options.poi,r=put([alt,olt]).translations;return null!=(e=t.options)&&e.isRawText?k2(w2,{children:r[n]}):k2(r5,_i(_i({},t.options),{},{children:r[n]}))};hi({Y:Vct,X:Wct}),qct.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1",isRawText:!1}};var Zct=function(t){var e=t.options,n=Gct().options.poi;return k2(Q2,{SVGElement:rlt[n],fill:"var(".concat(null==e?void 0:e.color,")"),height:null==e?void 0:e.height,width:null==e?void 0:e.width})};Zct.defaultProps={options:{color:"--ll-color-on-background-variant1"}};var Xct=Object.freeze(Object.defineProperty({__proto__:null,Title:qct,Icon:Zct,Root:function(t){return k2(Yct.Provider,{value:_i({},t),children:t.children})}},Symbol.toStringTag,{value:"Module"})),Kct=pa.createContext({}),$ct={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'âge",populationInPercentage:"% de la population totale",ownersRentersTitle:"Propriétaires vs locataires",householdCompositionTitle:"Composition du ménage",averageIncomeTitle:"Revenu Moyen",commuteModeTitle:"Mode Trajet",educationLevelTitle:"Plus haut niveau d'études atteint",avg_household_income:"Famille",avg_individual_income:"Individuel"}},Qct=function(t){return bk("svg",_i(_i({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[yk("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"}),yk("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"}),yk("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"}),yk("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"})]}))},Jct=function(t){return yk("svg",_i(_i({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))},tft=Object.freeze(Object.defineProperty({__proto__:null,Root:function(t){return k2(Kct.Provider,{value:_i({},t),children:t.children})},AvgIncomeCard:function(t){var e=t.options.incomeTypes,n=put([$ct]).translations,r={avg_household_income:Qct,avg_individual_income:Jct},i=ki.exports.useMemo((function(){return{options:{title:n.averageIncomeTitle,incomeTypes:e.map((function(t){return{variable:t.variable,value:t.value,label:n[t.variable],SVGElement:r[t.variable]}}))}}}),[e]);return k2(ynt,_i({},i))},PopulationByAgeChart:function(t){var e=t.options,n=e.labels,r=e.data,i=put([$ct]).translations,a=ki.exports.useMemo((function(){return{data:{labels:n,datasets:[{label:i.populationInPercentage,data:r}]},options:{plugins:{title:{text:i.populationByAgeTitle}}}}}),[n,r]);return k2(ant,_i({},a))},OwnersRentersCard:function(t){var e=t.options.datasets,n=put([$ct]).translations,r=["rgb(0, 132, 145)","rgb(62, 49, 91)"],i=ki.exports.useMemo((function(){return{data:{datasets:e.map((function(t,e){return _i(_i({},t),{},{data:[t.data],backgroundColor:r[e<2?e:0]})}))},options:{plugins:{title:{text:n.ownersRentersTitle}}}}}),[e]);return k2(unt,_i({},i))},HouseholdCompositionCard:function(t){var e=t.options,n=e.labels,r=e.data,i=put([$ct]).translations,a=ki.exports.useMemo((function(){return{data:{labels:n,datasets:[{data:r}]},options:{plugins:{title:{text:i.householdCompositionTitle}}}}}),[n,r]);return k2(cnt,_i({},a))},CommuteModeCard:function(t){var e=t.options,n=e.labels,r=e.data,i=put([$ct]).translations,a=ki.exports.useMemo((function(){return{data:{labels:n,datasets:[{data:r}]},options:{plugins:{title:{text:i.commuteModeTitle}}}}}),[n,r]);return k2(cnt,_i({},a))},EducationLevelChart:function(t){var e=t.options,n=e.labels,r=e.data,i=put([$ct]).translations,a=ki.exports.useMemo((function(){return{data:{labels:n,datasets:[{label:i.populationInPercentage,data:r}]},options:{plugins:{title:{text:i.educationLevelTitle}}}}}),[n,r]);return k2(ant,_i({},a))}},Symbol.toStringTag,{value:"Module"})),eft=pa.createContext({}),nft=function(){return ki.exports.useContext(eft)},rft={en:{income:"Income",population:"Population",housing:"Housing",household:"Household",education:"Education",commute:"Commute"},fr:{income:"Revenu",population:"Services",housing:"Logement",household:"Ménage",education:"Éducation",commute:"Navette"}},ift=[{value:"income",icon:function(t){return yk("svg",_i(_i({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))}},{value:"population",icon:function(t){return bk("svg",_i(_i({width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[yk("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"}),yk("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"}),yk("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"})]}))}},{value:"housing",icon:function(t){return bk("svg",_i(_i({width:22,height:18,viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[yk("path",{d:"M18 4H16V6H18V4Z"}),yk("path",{d:"M18 8H16V10H18V8Z"}),yk("path",{d:"M18 12H16V14H18V12Z"}),yk("path",{d:"M0 8V18H6V13H8V18H14V8L7 3L0 8ZM12 16H10V11H4V16H2V9L7 5.5L12 9V16Z"}),yk("path",{d:"M9 0V1.97L11 3.4V2H20V16H16V18H22V0H9Z"})]}))}},{value:"household",icon:function(t){return yk("svg",_i(_i({width:22,height:20,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))}},{value:"education",icon:function(t){return yk("svg",_i(_i({width:22,height:18,viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:yk("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"})}))}},{value:"commute",icon:Slt}],aft=qC(Pct)(Xe||(Xe=ci(["\n display: grid;\n grid-auto-columns: minmax(0, 80px);\n grid-auto-flow: column;\n"]))),oft=qC(Rct)(Ke||(Ke=ci(["\n background: none;\n border: none;\n padding: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n\n &:hover {\n cursor: pointer;\n\n svg {\n fill: ",";\n }\n\n p {\n color: ",";\n }\n }\n"])),N2["--ll-spacing-xx-small"],N2["--ll-color-primary"],N2["--ll-color-primary"]),sft=qC.div($e||($e=ci(["\n display: flex;\n padding: "," ","\n "," ",";\n"])),N2["--ll-spacing-x-small"],N2["--ll-spacing-medium"],N2["--ll-spacing-xx-small"],N2["--ll-spacing-medium"]),uft=Object.freeze(Object.defineProperty({__proto__:null,Root:function(t){var e=t.options,n=t.onChange,r=t.children;return k2(eft.Provider,{value:{options:e,onChange:n},children:k2(Oct,{value:e.activeTab,onValueChange:function(t){n({type:"tabs",data:t})},children:r})})},Tabs:function(){var t=nft().options,e=put([rft]).translations;return k2(aft,{"aria-label":"Demographics tabs",children:ift.map((function(n){var r=n.value===t.activeTab?"--ll-color-primary":"--ll-color-disabled";return k2(pa.Fragment,{children:S2(oft,{value:n.value,children:[k2(Q2,{SVGElement:n.icon,fill:N2[r]}),k2(r5,{noMargin:!0,variant:"caption1",color:r,weight:"--ll-font-weight-medium",children:e[n.value]})]})},n.value)}))})},Select:function(){var t=nft(),e=t.options,n=t.onChange,r=put([rft]).translations;return k2(sft,{children:S2(Kit.Root,{value:e.activeTab,onValueChange:function(t){n({type:"tabs",data:t})},children:[k2(Kit.Trigger,{size:"large",children:k2(r5,{noMargin:!0,variant:"h6",children:r[e.activeTab]})}),k2(Kit.Content,{children:ift.map((function(t){return k2(Kit.Item,{value:t.value,children:k2(r5,{noMargin:!0,variant:"h6",children:r[t.value]})},t.value)}))})]})})},Content:function(t){var e=t.children,n=t.options.value;return k2(Dct,{value:n,children:e},n)}},Symbol.toStringTag,{value:"Module"}));hi({a9:Xct,ad:tft,ab:ift,ac:uft});var lft,cft=function(t){var e,n,r=t.children,i=wQ().sdkState;if(null==i||!i.apiKey)throw Error("A valid apiKey must be provided.");var a=function(t,e){return new m2(t,e)}(i.apiKey,{locale:null==i||null===(e=i.globalOptions)||void 0===e?void 0:e.locale});return yk(Cst,{client:a,options:{appearance:null==i||null===(n=i.globalOptions)||void 0===n?void 0:n.appearance},children:r})},fft=qC.div(Qe||(Qe=ci(["\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n"]))),dft=function(t){var e=t.error;return bk(fft,{children:[yk(QL,{variant:"h4",children:"An error occurred"}),yk(QL,{variant:"p",color:"--ll-color-on-background-variant1",children:e.message})]})},hft=new KK({defaultOptions:{queries:{retry:2,staleTime:1/0,keepPreviousData:!0}}}),pft=function(){return bk(mk,{children:[yk(LL,{}),yk(oK,{FallbackComponent:dft,children:yk(s$,{children:yk(t$,{client:hft,children:yk(kQ,{children:yk(cft,{children:yk(MQ,{children:yk(WX,{})})})})})})})]})};(lft={dsn:"https://19707ff4ff7f420b9369a3e15041c787@o227377.ingest.sentry.io/6677584",integrations:[new uS,new sk],tracesSampleRate:.05,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.5,environment:"production",enabled:!0})._metadata=lft._metadata||{},lft._metadata.sdk=lft._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:db}],version:db},function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0===t.defaultIntegrations&&(t.defaultIntegrations=k_),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),mb.SENTRY_RELEASE&&mb.SENTRY_RELEASE.id&&(t.release=mb.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);var e=_i(_i({},t),{},{stackParser:gm(t.stackParser||t_),integrations:eb(t),transport:t.transport||(xm()?Vb:Hb)});ub(Fb,e),t.autoSessionTracking&&E_()}(lft),ga.createRoot(document.getElementById("root")).render(yk(pa.StrictMode,{children:yk(pft,{})}))}}}))}();
|