@local-logic/sdks-app 1.7.2 → 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.935e7346.js → index-legacy.5b5c89be.js} +1 -1
- package/dist/assets/{index-legacy.3a8c6aa8.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.71eb35ea.js → index.24661964.js} +17 -17
- 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.10935833.js → index.d89a7cee.js} +1 -1
- package/dist/assets/polyfills-legacy.db2bc606.js +1 -0
- package/dist/assets/{useIsMobile-legacy.a1dad04e.js → useIsMobile-legacy.7fb572d8.js} +1 -1
- package/dist/assets/{useIsMobile.5dc7840d.js → useIsMobile.b5e8d9ad.js} +1 -1
- package/dist/assets/{useQuery-legacy.6ce02414.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/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/package.json +4 -3
- package/dist/assets/index-legacy.128bbb90.js +0 -106
- package/dist/assets/index-legacy.60df4146.js +0 -1
- package/dist/assets/index-legacy.7c9f6b15.js +0 -1
- package/dist/assets/index.1df47f40.js +0 -28
- package/dist/assets/index.97d3a920.js +0 -1374
- package/dist/assets/index.d464e7cf.js +0 -1
- package/dist/assets/index.e63e2d64.js +0 -1
- package/dist/assets/index.ed99fd65.js +0 -120
- package/dist/assets/polyfills-legacy.147ba02d.js +0 -1
- package/dist/assets/useQuery.7c643982.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:KC,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:vK,M:gK,P:mK,T:FK,a0:DK,a1:jK,a4:yK,k:nA,z:pX});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(lP){var e=lP.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(Z$){var r=Z$}Reflect.construct(t,[],e)}else{try{e.call()}catch(Z$){r=Z$}t.call(e.prototype)}else{try{throw Error()}catch(Z$){r=Z$}t()}}catch(Z$){if(Z$&&r&&"string"==typeof Z$.stack){for(var i=Z$.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(lP){}}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(PJ){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(sP){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(I$){this.onError(I$)}}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(oQ){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(oQ){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(Z$){}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(F$){i="\nError generating stack: "+F$.message+"\n"+F$.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(lP){setTimeout((function(){throw lP}))}}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(oQ){Hv(t,e,oQ)}else n.current=null}function yp(t,e,n){try{n()}catch(oQ){Hv(t,e,oQ)}}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(yQ){}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(yQ){Hv(n,e,yQ)}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(Z$){Hv(i,e,Z$)}}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(fQ){Hv(t,t.return,fQ)}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(fQ){Hv(e,n,fQ)}break;case 1:var r=e.stateNode;if("function"==typeof r.componentDidMount){var i=e.return;try{r.componentDidMount()}catch(fQ){Hv(e,i,fQ)}}var a=e.return;try{wp(e)}catch(fQ){Hv(e,a,fQ)}break;case 5:var o=e.return;try{wp(e)}catch(fQ){Hv(e,o,fQ)}}}catch(fQ){Hv(e,e.return,fQ)}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(yQ){Pv(t,yQ)}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(vut){e=vut,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($Q){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($Q){Hv(e,e.return,$Q)}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(vut){Hv(s,s.return,vut)}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(vut){}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(sP){}}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(T2){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(S1){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){Uy().addBreadcrumb(t)}function Xy(t,e){Uy().setContext(t,e)}function Ky(t){Uy().withScope(t)}function $y(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 Qy(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 Jy(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($y(t),"?").concat(Qy(t,r))}function tb(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 eb=[];function nb(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 rb(t,e){e[t.name]=t,-1===eb.indexOf(t.name)&&(t.setupOnce(jy,Uy),eb.push(t.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("Integration installed: ".concat(t.name)))}function ib(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 ab="Not capturing exception because it's already been captured.",ob=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=Jy(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(ab)}},{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(ab)}},{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){rb(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){rb(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=tb(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 ib(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=ub(t),s=sb(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(sb(e)&&r)return r(e,n);if(ub(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 sb(t){return void 0===t.type}function ub(t){return"transaction"===t.type}function lb(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 cb(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=fb(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=fb(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 fb(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}var db,hb="7.33.0",pb=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(){db=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 db.apply(t,n)}}}],[{key:"__initStatic",value:function(){this.id="FunctionToString"}}]),t}();pb.__initStatic();var vb=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],gb=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||[]),vb),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=mb(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(mb(t))),!0;if(!function(t,e){if(!e||!e.length)return!0;var n=mb(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(mb(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 mb(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}}gb.__initStatic();var yb=jg,bb=0;function _b(){return bb>0}function xb(){bb++,setTimeout((function(){bb--}))}function wb(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 wb(t,e)}));return t.apply(this,i)}catch(a){throw xb(),Ky((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 kb(t,e){var n=Eb(t,e),r={type:e&&e.name,value:Ab(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Sb(t,e){return{exception:{values:[kb(t,e)]}}}function Eb(t,e){var n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Cb.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(i){}return[]}var Cb=/Minified React error #\d+;/i;function Ab(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Tb(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=Ob(t,e,a,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),ey(o)}function Mb(t,e,n,r,i){var a;if(Tg(e)&&e.error)return Sb(t,e.error);if(Mg(e)||Ag(e,"DOMException")){var o=e;if("stack"in e)a=Sb(t,e);else{var s=o.name||(Mg(o)?"DOMError":"DOMException"),u=o.message?"".concat(s,": ").concat(o.message):s;Wm(a=Ob(t,u,n,r),u)}return"code"in o&&(a.tags=_i(_i({},a.tags),{},{"DOMException.code":"".concat(o.code)})),a}return Cg(e)?Sb(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=Eb(t,n);s.length&&(o.exception.values[0].stacktrace={frames:s})}return o}(t,e,n,i),Ym(a,{synthetic:!0}),a):(Wm(a=Ob(t,e,n,r),"".concat(e),void 0),Ym(a,{synthetic:!0}),a)}function Ob(t,e,n,r){var i={message:e};if(r&&n){var a=Eb(t,n);a.length&&(i.exception={values:[{value:e,stacktrace:{frames:a}}]})}return i}var Pb=1024,Rb="Breadcrumbs",Db=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",Lb),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>Pb&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("`dom.maxStringLength` cannot exceed ".concat(Pb,", but a value of ").concat(i," was configured. Sentry will use ").concat(Pb," instead.")),i=Pb),"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",Ib),this.options.fetch&&Tm("fetch",Nb),this.options.history&&Tm("history",Fb)}},{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=Rb}}]),t}();function Lb(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 Ib(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 Nb(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 Fb(t){var e=t.from,n=t.to,r=ay(yb.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}})}Db.__initStatic();var zb=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:hb}],version:hb},r=e.call(this,t),t.sendClientReports&&yb.document&&yb.document.addEventListener("visibilitychange",(function(){"hidden"===yb.document.visibilityState&&r._flushOutcomes()})),r}return Ci(n,[{key:"eventFromException",value:function(t,e){return function(t,e,n,r){var i=Mb(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 Tb(this._options.stackParser,t,e,n,this._options.attachStacktrace)}},{key:"sendEvent",value:function(t,e){var r=this.getIntegrationById(Rb);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=Jy(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(yb&&yb.navigator)&&"function"==typeof yb.navigator.sendBeacon&&!this._options.transportOptions)yb.navigator.sendBeacon.bind(yb.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}(ob),jb=void 0;function Bb(){if(jb)return jb;if(wm(yb.fetch))return jb=yb.fetch.bind(yb);var t=yb.document,e=yb.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 jb=e.bind(yb)}function Vb(){jb=void 0}function Hb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bb();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 Vb(),ny(i)}}return cb(t,n)}function Ub(t){return cb(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 Wb="?";function Yb(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 Gb=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,qb=/\((\S*)(?::(\d+))(?::(\d+))\)/,Zb=[30,function(t){var e=Gb.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=qb.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var r=wi(n_(e[1]||Wb,e[2]),2),i=r[0];return Yb(r[1],i,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],Xb=/^\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,Kb=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$b=[50,function(t){var e=Xb.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){var n=Kb.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]||Wb,a=wi(n_(i,r),2);return i=a[0],Yb(r=a[1],i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],Qb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Jb=[40,function(t){var e=Qb.exec(t);return e?Yb(e[2],e[1]||Wb,+e[3],e[4]?+e[4]:void 0):void 0}],t_=[Zb,$b,Jb],e_=vm.apply(void 0,t_),n_=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]:Wb,n?"safari-extension:".concat(e):"safari-web-extension:".concat(e)]:[t,e]},r_=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:i_,onunhandledrejection:a_}}},{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 i_(){Tm("error",(function(t){var e=wi(u_(),3),n=e[0],r=e[1],i=e[2];if(n.getIntegration(r_)){var a=t.msg,o=t.url,s=t.line,u=t.column,l=t.error;if(!(_b()||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 o_({exception:{values:[{type:o,value:a}]}},e,n,r)}(a,o,s,u):o_(Mb(r,l||a,void 0,i,!1),o,s,u);c.level="error",s_(n,l,c,"onerror")}}}))}function a_(){Tm("unhandledrejection",(function(t){var e=wi(u_(),3),n=e[0],r=e[1],i=e[2];if(n.getIntegration(r_)){var a=t;try{"reason"in t?a=t.reason:"detail"in t&&"reason"in t.detail&&(a=t.detail.reason)}catch(s){}if(_b()||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))}]}}:Mb(r,a,void 0,i,!0);o.level="error",s_(n,a,o,"onunhandledrejection")}}))}function o_(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 s_(t,e,n,r){Ym(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function u_(){var t=Uy(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}r_.__initStatic();var l_=["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"],c_=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(yb,"setTimeout",f_),this._options.setInterval&&am(yb,"setInterval",f_),this._options.requestAnimationFrame&&am(yb,"requestAnimationFrame",d_),this._options.XMLHttpRequest&&"XMLHttpRequest"in yb&&am(XMLHttpRequest.prototype,"send",h_);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:l_).forEach(p_)}}],[{key:"__initStatic",value:function(){this.id="TryCatch"}}]),t}();function f_(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]=wb(i,{mechanism:{data:{function:bm(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}}function d_(t){return function(e){return t.apply(this,[wb(e,{mechanism:{data:{function:"requestAnimationFrame",handler:bm(t)},handled:!0,type:"instrument"}})])}}function h_(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)),wb(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 p_(t){var e=yb,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=wb(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:bm(r),target:t},handled:!0,type:"instrument"}}))}catch(a){}return e.apply(this,[n,wb(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)}})))}c_.__initStatic();var v_="cause",g_=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||v_,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=m_(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 m_(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=kb(t,n[r]);return m_(t,e,n[r],r,[a].concat(mi(i)))}g_.__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(){jy((function(e){if(Uy().getIntegration(t)){if(!yb.navigator&&!yb.location&&!yb.document)return e;var n=e.request&&e.request.url||yb.location&&yb.location.href,r=(yb.document||{}).referrer,i=(yb.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}();y_.__initStatic();var b_=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(!x_(t,e))return!1;if(!__(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){var n=w_(e),r=w_(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!x_(t,e))return!1;if(!__(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 __(t,e){var n=k_(t),r=k_(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 x_(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 w_(t){return t.exception&&t.exception.values&&t.exception.values[0]}function k_(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}}b_.__initStatic();var S_=[new gb,new pb,new c_,new Db,new r_,new g_,new b_,new y_];function E_(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function C_(){if(void 0!==yb.document){var t=Uy();t.captureSession&&(E_(t),Tm("history",(function(t){var e=t.from,n=t.to;void 0!==e&&e!==n&&E_(Uy())})))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}var A_,T_=jg,M_="sentryReplaySession",O_="replay_event",P_="Unable to send Replay",R_=3e5,D_=R_,L_=36e5,I_="body *:not(style), body *:not(script)",N_=5e3,F_=function(){return F_=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},F_.apply(this,arguments)};function z_(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 j_(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 B_(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 V_(t){var e,n=null===(e=t)||void 0===e?void 0:e.host;return Boolean(n&&n.shadowRoot&&n.shadowRoot===t)}function H_(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"}(A_||(A_={}));var U_="__rrweb_original__";var W_,Y_,G_=1,q_=new RegExp("[^a-z0-9-_:]");function Z_(t){try{var e=t.rules||t.cssRules;return e?Array.from(e).map(X_).join(""):null}catch(n){return null}}function X_(t){var e=t.cssText;if(function(t){return"styleSheet"in t}(t))try{e=Z_(t.styleSheet)||e}catch(F3){}return e}var K_=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,$_=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,Q_=/^(data:)([^,]*),(.*)/i;function J_(t,e){return(t||"").replace(K_,(function(t,n,r,i,a,o){var s,u=r||a||o,l=n||i||"";if(!u)return t;if(!$_.test(u))return"url("+l+u+l+")";if(Q_.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 tx,ex,nx,rx,ix,ax,ox=/^[^ \t\n\r\u000c]+/,sx=/^[, \t\n\r\u000c]+/;function ux(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}function lx(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)}function cx(){var t=document.createElement("a");return t.href="",t.href}function fx(t,e,n,r){return"src"===n||"href"===n&&r||"xlink:href"===n&&r&&"#"!==r[0]?ux(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(sx),!(n>=e.length);){var a=r(ox);if(","===a.slice(-1))a=ux(t,a.substring(0,a.length-1)),i.push(a);else{var o="";a=ux(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?J_(r,cx()):"object"===e&&"data"===n&&r?ux(t,r):r:ux(t,r)}function dx(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))||dx(t.parentNode,e,n)}return t.nodeType,t.TEXT_NODE,dx(t.parentNode,e,n)}function hx(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:A_.Document,childNodes:[],compatMode:t.compatMode,rootId:r}:{type:A_.Document,childNodes:[],rootId:r};case t.DOCUMENT_TYPE_NODE:return{type:A_.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 q_.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]=fx(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=Z_(M)),O&&(delete k.rel,delete k.href,k._cssText=J_(O,M.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length)(O=Z_(t.sheet))&&(k._cssText=J_(O,cx()));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=H_({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=U_ 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){W_||(W_=a.createElement("canvas"),Y_=W_.getContext("2d"));var D=t,L=D.crossOrigin;D.crossOrigin="anonymous";var I=function(){try{W_.width=D.naturalWidth,W_.height=D.naturalHeight,Y_.drawImage(D,0,0),k.rr_dataURL=W_.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:A_.Element,tagName:w,attributes:k,childNodes:[],isSVG:lx(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=J_(B,cx())}return H&&(B="SCRIPT_PLACEHOLDER"),!V&&!H&&dx(t,u,l)&&B&&(B=h?h(B):B.replace(/[\S]/g,"*")),{type:A_.Text,textContent:B||"",isStyle:V,rootId:r};case t.CDATA_SECTION_NODE:return{type:A_.CDATA,textContent:"",rootId:r};case t.COMMENT_NODE:return{type:A_.Comment,textContent:t.textContent||"",rootId:r};default:return!1}}function px(t){return void 0===t?"":t.toLowerCase()}function vx(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=hx(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===A_.Comment)return!0;if(t.type===A_.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&&(px(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===px(t.attributes.name)||"icon"===px(t.attributes.rel)||"apple-touch-icon"===px(t.attributes.rel)||"shortcut icon"===px(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&px(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(px(t.attributes.property).match(/^(og|twitter|fb):/)||px(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===px(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===px(t.attributes.name)||"googlebot"===px(t.attributes.name)||"bingbot"===px(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===px(t.attributes.name)||"generator"===px(t.attributes.name)||"framework"===px(t.attributes.name)||"publisher"===px(t.attributes.name)||"progid"===px(t.attributes.name)||px(t.attributes.property).match(/^article:/)||px(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===px(t.attributes.name)||"yandex-verification"===px(t.attributes.name)||"csrf-token"===px(t.attributes.name)||"p:domain_verify"===px(t.attributes.name)||"verify-v1"===px(t.attributes.name)||"verification"===px(t.attributes.name)||"shopify-checkout-api-token"===px(t.attributes.name)))return!0}}return!1}(R,m)&&(P||R.type!==A_.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?G_++:-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===A_.Element&&(L=L&&!D.needBlock,delete D.needBlock,t.shadowRoot&&(D.isShadowHost=!0)),(D.type===A_.Document||D.type===A_.Element)&&L){m.headWhitespace&&R.type===A_.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=vx(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=vx(j[z],I))&&(B.isShadow=!0,D.childNodes.push(B))}}return t.parentNode&&V_(t.parentNode)&&(D.isShadow=!0),D.type===A_.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=vx(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 gx(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"}(tx||(tx={})),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"}(ex||(ex={})),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"}(nx||(nx={})),function(t){t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2"}(rx||(rx={})),function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange"}(ix||(ix={})),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"}(ax||(ax={}));var mx="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.",yx={map:{},getId:function(){return console.error(mx),-1},getNode:function(){return console.error(mx),null},removeNodeFromMap:function(){console.error(mx)},has:function(){return console.error(mx),!1},reset:function(){console.error(mx)}};function bx(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 _x(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 _x(t,e,a||{},!0)}}function xx(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(F3){return function(){}}}function wx(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function kx(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Sx(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||Sx(t.parentNode,e)}return t.nodeType,t.TEXT_NODE,Sx(t.parentNode,e)}function Ex(t){return"__sn"in t&&-2===t.__sn.id}function Cx(t,e){if(V_(t))return!1;var n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||Cx(t.parentNode,e))}function Ax(t){return Boolean(t.changedTouches)}function Tx(t){return"__sn"in t&&(t.__sn.type===A_.Element&&"iframe"===t.__sn.tagName)}function Mx(t){return Boolean(null==t?void 0:t.shadowRoot)}function Ox(t){return"__ln"in t}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(yx=new Proxy(yx,{get:function(t,e,n){return"map"===e&&console.error(mx),Reflect.get(t,e,n)}}));var Px=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&&Ox(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&&Ox(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}(),Rx=function(t,e){return"".concat(t,"@").concat(e)};function Dx(t){return"__sn"in t}var Lx=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 Px,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=V_(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=vx(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){Tx(n)&&t.iframeManager.addIframe(n),Mx(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=z_(t.movedSet),c=l.next();!c.done;c=l.next()){var f=c.value;Nx(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=z_(t.addedSet),h=d.next();!h.done;h=d.next()){f=h.value;Fx(t.droppedSet,f)||Nx(t.removes,f,t.mirror)?Fx(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(!Ex(e.target))switch(e.type){case"characterData":var o=e.target.textContent;Sx(e.target,t.blockClass)||o===e.oldValue||t.texts.push({value:dx(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=H_({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:o,maskInputFn:t.maskInputFn})),Sx(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=z_(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=z_(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]=fx(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=V_(e.target)?t.mirror.getId(e.target.host):t.mirror.getId(e.target);Sx(e.target,t.blockClass)||Ex(n)||(t.addedSet.has(n)?(Ix(t.addedSet,n),t.droppedSet.add(n)):t.addedSet.has(e.target)&&-1===r||Cx(e.target,t.mirror)||(t.movedSet.has(n)&&t.movedMap[Rx(r,i)]?Ix(t.movedSet,n):t.removes.push({parentId:i,id:r,isShadow:!!V_(e.target)||void 0})),t.mapRemoves.push(n))}))}},this.genAdds=function(e,n){if(!n||!Sx(n,t.blockClass)){if(Dx(e)){if(Ex(e))return;t.movedSet.add(e);var r=null;n&&Dx(n)&&(r=n.__sn.id),r&&(t.movedMap[Rx(e.__sn.id,r)]=!0)}else t.addedSet.add(e),t.droppedSet.delete(e);Sx(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 Ix(t,e){t.delete(e),e.childNodes.forEach((function(e){return Ix(t,e)}))}function Nx(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}))||Nx(t,r,n)}function Fx(t,e){var n=e.parentNode;return!!n&&(!!t.has(n)||Fx(t,n))}var zx=Lx,jx=[],Bx="undefined"!=typeof CSSGroupingRule,Vx="undefined"!=typeof CSSMediaRule,Hx="undefined"!=typeof CSSSupportsRule,Ux="undefined"!=typeof CSSConditionRule;function Wx(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(F3){return t.target}}function Yx(t,e){var n,r,i=new zx;jx.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 Gx(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(nx).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=Wx(n);if(!Sx(a,i)){var o=Ax(n)?n.changedTouches[0]:n;if(o){var s=r.getId(a),u=o.clientX,l=o.clientY;e({type:nx[t],id:s,x:u,y:l})}}}}(t);s.push(gx(a,o,n))})),function(){s.forEach((function(t){return t()}))}}function qx(t){var e=t.scrollCb,n=t.doc,r=t.mirror,i=t.blockClass,a=bx((function(t){var a=Wx(t);if(a&&!Sx(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 gx("scroll",a,n)}function Zx(t,e){var n=F_({},t);return e||delete n.userTriggered,n}var Xx=["INPUT","TEXTAREA","SELECT"],Kx=new WeakMap;function $x(t){return function(t,e){if(Bx&&t.parentRule instanceof CSSGroupingRule||Vx&&t.parentRule instanceof CSSMediaRule||Hx&&t.parentRule instanceof CSSSupportsRule||Ux&&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 Qx(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,B_([],j_(t),!1)),n.apply(void 0,B_([],j_(t),!1))},t.mousemoveCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.mousemove&&e.mousemove.apply(e,B_([],j_(t),!1)),r.apply(void 0,B_([],j_(t),!1))},t.mouseInteractionCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.mouseInteraction&&e.mouseInteraction.apply(e,B_([],j_(t),!1)),i.apply(void 0,B_([],j_(t),!1))},t.scrollCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.scroll&&e.scroll.apply(e,B_([],j_(t),!1)),a.apply(void 0,B_([],j_(t),!1))},t.viewportResizeCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.viewportResize&&e.viewportResize.apply(e,B_([],j_(t),!1)),o.apply(void 0,B_([],j_(t),!1))},t.inputCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.input&&e.input.apply(e,B_([],j_(t),!1)),s.apply(void 0,B_([],j_(t),!1))},t.mediaInteractionCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.mediaInteaction&&e.mediaInteaction.apply(e,B_([],j_(t),!1)),u.apply(void 0,B_([],j_(t),!1))},t.styleSheetRuleCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.styleSheetRule&&e.styleSheetRule.apply(e,B_([],j_(t),!1)),l.apply(void 0,B_([],j_(t),!1))},t.styleDeclarationCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.styleDeclaration&&e.styleDeclaration.apply(e,B_([],j_(t),!1)),c.apply(void 0,B_([],j_(t),!1))},t.canvasMutationCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.canvasMutation&&e.canvasMutation.apply(e,B_([],j_(t),!1)),f.apply(void 0,B_([],j_(t),!1))},t.fontCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.font&&e.font.apply(e,B_([],j_(t),!1)),d.apply(void 0,B_([],j_(t),!1))}}(t,e);var a=Yx(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=bx((function(t){var n=Date.now()-a;e(u.map((function(t){return t.timeOffset-=n,t})),t),u=[],a=null}),s),c=bx((function(t){var e=Wx(t),n=Ax(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?ex.Drag:t instanceof MouseEvent?ex.MouseMove:ex.TouchMove)}),o,{trailing:!1}),f=[gx("mousemove",c,r),gx("touchmove",c,r),gx("drag",c,r)];return function(){f.forEach((function(t){return t()}))}}(t),s=Gx(t),u=qx(t),l=function(t){var e=t.viewportResizeCb,n=-1,r=-1;return gx("resize",bx((function(){var t=wx(),i=kx();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=Wx(t),r=t.isTrusted;if(e&&"OPTION"===e.tagName&&(e=e.parentElement),e&&e.tagName&&!(Xx.indexOf(e.tagName)<0)&&!Sx(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=H_({maskInputOptions:o,tagName:e.tagName,type:u,value:c,maskInputFn:s})),f(e,Zx({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,Zx({text:t.value,isChecked:!d,userTriggered:!1},l))}))}}}function f(t,n){var i=Kx.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){Kx.set(t,n);var a=r.getId(t);e(F_(F_({},n),{id:a}))}}var d=("last"===u.input?["change"]:["input","change"]).map((function(t){return gx(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,B_([],j_(p.map((function(t){return _x(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 bx((function(i){var a=Wx(i);if(a&&!Sx(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=[gx("play",a(0)),gx("pause",a(1)),gx("seeked",a(2)),gx("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={};Bx?s.CSSGroupingRule=i.CSSGroupingRule:(Vx&&(s.CSSMediaRule=i.CSSMediaRule),Ux&&(s.CSSConditionRule=i.CSSConditionRule),Hx&&(s.CSSSupportsRule=i.CSSSupportsRule));var u={};return Object.entries(s).forEach((function(t){var e=j_(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:B_(B_([],j_($x(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:B_(B_([],j_($x(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=j_(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:$x(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:$x(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=xx(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=z_(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(){jx.forEach((function(t){return t.reset()})),a.disconnect(),o(),s(),u(),l(),c(),f(),d(),h(),p(),v.forEach((function(t){return t()}))}}var Jx=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}(),tw=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(xx(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){Yx(F_(F_({},this.bypassOptions),{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),qx(F_(F_({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))},t.prototype.observeAttachShadow=function(t){if(t.contentWindow){var e=this;this.restorePatches.push(xx(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 ew="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nw="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rw=0;rw<ew.length;rw++)nw[ew.charCodeAt(rw)]=rw;var iw=new Map;var aw=function(t,e,n){if(t&&(uw(t,e)||"object"===Fi(t))){var r=function(t,e){var n=iw.get(t);return n||(n=new Map,iw.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 ow(t,e,n){if(t instanceof Array)return t.map((function(t){return ow(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+=ew[n[e]>>2],i+=ew[(3&n[e])<<4|n[e+1]>>4],i+=ew[(15&n[e+1])<<2|n[e+2]>>6],i+=ew[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:[ow(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:[ow(t.data,e,n),t.width,t.height]}:uw(t,e)||"object"===Fi(t)?{rr_type:t.constructor.name,index:aw(t,e,n)}:t}var sw=function(t,e,n){return B_([],j_(t),!1).map((function(t){return ow(t,e,n)}))},uw=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 lw(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=xx(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(aw(c,a,t),!Sx(this.canvas,r)){i.getId(this.canvas);var f=sw(B_([],j_(u),!1),a,t),d={type:e,property:o,args:f};n(this.canvas,d)}return c}}));u.push(s)}catch(vnt){var l=_x(t,o,{set:function(t){n(this.canvas,{type:e,property:o,args:[t],setter:!0})}});u.push(l)}};try{for(var f=z_(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 cw,fw,dw=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=xx(t.HTMLCanvasElement.prototype,"getContext",(function(t){return function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return Sx(this,e)||"__context"in this||(this.__context=n),t.apply(this,B_([n],j_(r),!1))}}));n.push(r)}catch(F3){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=xx(e.CanvasRenderingContext2D.prototype,r,(function(e){return function(){for(var i=this,a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return Sx(this.canvas,n)||setTimeout((function(){var e=B_([],j_(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:rx["2D"],property:r,args:e})}),0),e.apply(this,a)}}));o.push(i)}catch(vnt){var a=_x(e.CanvasRenderingContext2D.prototype,r,{set:function(e){t(this.canvas,{type:rx["2D"],property:r,args:[e],setter:!0})}});o.push(a)}};try{for(var l=z_(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,B_([],j_(lw(e.WebGLRenderingContext.prototype,rx.WebGL,t,n,r,e)),!1)),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,B_([],j_(lw(e.WebGL2RenderingContext.prototype,rx.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 hw(t){return F_(F_({},t),{timestamp:Date.now()})}var pw={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 vw(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;cw=function(t,i){var a;if(!(null===(a=jx[0])||void 0===a?void 0:a.isFrozen())||t.type===tx.FullSnapshot||t.type===tx.IncrementalSnapshot&&t.data.source===ex.Mutation||jx.forEach((function(t){return t.unfreeze()})),e(function(t){var e,n;try{for(var r=z_(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===tx.FullSnapshot)z=t,V=0;else if(t.type===tx.IncrementalSnapshot){if(t.data.source===ex.Mutation&&t.data.isAttachIframe)return;V++;var o=r&&V>=r,s=n&&t.timestamp-z.timestamp>n;(o||s)&&fw(!0)}};var H=function(t){cw(hw({type:tx.IncrementalSnapshot,data:F_({source:ex.Mutation},t)}))},U=function(t){return cw(hw({type:tx.IncrementalSnapshot,data:F_({source:ex.Scroll},t)}))},W=function(t){return cw(hw({type:tx.IncrementalSnapshot,data:F_({source:ex.CanvasMutation},t)}))},Y=new Jx({mutationCb:H}),G=new dw({recordCanvas:A,mutationCb:W,win:window,blockClass:a,mirror:pw}),q=new tw({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:pw});fw=function(t){var e,n,r,i;void 0===t&&(t=!1),cw(hw({type:tx.Meta,data:{href:window.location.href,width:kx(),height:wx()}}),t),jx.forEach((function(t){return t.lock()}));var o=j_(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[vx(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){Tx(t)&&Y.addIframe(t),Mx(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");pw.map=l,cw(hw({type:tx.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}}})),jx.forEach((function(t){return t.unlock()}))};try{var Z=[];Z.push(gx("DOMContentLoaded",(function(){cw(hw({type:tx.DomContentLoaded,data:{}}))})));var X=function(t){var e;return Qx({mutationCb:H,mousemoveCb:function(t,e){return cw(hw({type:tx.IncrementalSnapshot,data:{source:e,positions:t}}))},mouseInteractionCb:function(t){return cw(hw({type:tx.IncrementalSnapshot,data:F_({source:ex.MouseInteraction},t)}))},scrollCb:U,viewportResizeCb:function(t){return cw(hw({type:tx.IncrementalSnapshot,data:F_({source:ex.ViewportResize},t)}))},inputCb:function(t){return cw(hw({type:tx.IncrementalSnapshot,data:F_({source:ex.Input},t)}))},mediaInteractionCb:function(t){return cw(hw({type:tx.IncrementalSnapshot,data:F_({source:ex.MediaInteraction},t)}))},styleSheetRuleCb:function(t){return cw(hw({type:tx.IncrementalSnapshot,data:F_({source:ex.StyleSheetRule},t)}))},styleDeclarationCb:function(t){return cw(hw({type:tx.IncrementalSnapshot,data:F_({source:ex.StyleDeclaration},t)}))},canvasMutationCb:W,fontCb:function(t){return cw(hw({type:tx.IncrementalSnapshot,data:F_({source:ex.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:pw,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 cw(hw({type:tx.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(){fw(),Z.push(X(document))};return"interactive"===document.readyState||"complete"===document.readyState?K():Z.push(gx("load",(function(){cw(hw({type:tx.Load,data:{}})),K()}),window)),function(){Z.forEach((function(t){return t()}))}}catch($){console.warn($)}}vw.addCustomEvent=function(t,e){if(!cw)throw new Error("please add custom event after start recording");cw(hw({type:tx.Custom,data:{tag:t,payload:e}}))},vw.freezePage=function(){jx.forEach((function(t){return t.freeze()}))},vw.takeFullSnapshot=function(t){if(!fw)throw new Error("please take full snapshot after start recording");fw(t)},vw.mirror=pw;var gw=["name","type","startTime","transferSize","duration"];function mw(t){return function(e){return gw.every((function(n){return t[n]===e[n]}))}}function yw(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(mw(e))&&!l.find(mw(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 bw=function(){function t(e){Ai(this,t),this._fallback=new _w,this._compression=new xw(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}(),_w=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}(),xw=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 ww(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 kw(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return ww(t.started,L_,n)||ww(t.lastActivity,e,n)}function Sw(t){if("sessionStorage"in T_)try{T_.sessionStorage.setItem(M_,JSON.stringify(t))}catch(e){}}function Ew(t){return void 0!==t&&Math.random()<t}function Cw(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 Aw(t){var e=t.sessionSampleRate,n=t.errorSampleRate,r=t.stickySession,i=void 0!==r&&r,a=function(t,e){return Ew(t)?"session":!!Ew(e)&&"error"}(e,n),o=Cw({sampled:a});return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Creating new session: ".concat(o.id)),i&&Sw(o),o}function Tw(t){var e=t.expiry,n=t.currentSession,r=t.stickySession,i=t.sessionSampleRate,a=t.errorSampleRate,o=n||r&&function(){if(!("sessionStorage"in T_))return null;try{var t=T_.sessionStorage.getItem(M_);return t?Cw(JSON.parse(t)):null}catch(e){return null}}();if(o){if(!kw(o,e))return{type:"saved",session:o};("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Session has expired")}return{type:"new",session:Aw({stickySession:r,sessionSampleRate:i,errorSampleRate:a})}}function Mw(t,e,n){return Ow.apply(this,arguments)}function Ow(){return(Ow=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)+R_<(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 Pw(t){return _i({timestamp:(new Date).getTime()/1e3,type:"default"},t)}function Rw(t,e){"sentry.transaction"!==e.category&&("ui.click"===e.category?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((function(){return Mw(t,{type:tx.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:e}}),"console"===e.category})))}var Dw=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 Pw({category:"ui.".concat(t.name),message:e,data:_i({},n?{nodeId:vw.mirror.getId(n)}:{})})}(e);n&&Rw(t,n)}}};function Lw(t,e){return e.map((function(e){var n=e.type,r=e.start,i=e.end,a=e.name,o=e.data;return Mw(t,{type:tx.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:i,data:o}}})}))}function Iw(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 Nw(t){return function(e){if(e.type===O_)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),Zy(_i({category:i||"console",level:a||"debug",message:"[debug]: ".concat(o)},s))}var r,i,a,o,s;return"error"===t.recordingMode&&e.exception&&e.message!==P_&&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 Fw(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 Lw(t,[n]),!1})))}}}var zw=null,jw=function(t){return function(e){if(t.isEnabled()){var n=function(t){var e=t.getLastBreadcrumb();if(zw===e||!e)return null;if(zw=e,e.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")))return null;return Pw(e)}(e);n&&Rw(t,n)}}};function Bw(t){var e=Uy().getScope();e&&e.addScopeListener(jw(t)),Tm("dom",Dw(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&&(Iw(t,n.name)||t.addUpdate((function(){return Lw(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&&(Iw(t,n.name)||t.addUpdate((function(){return Lw(t,[n]),!0})))}}}(t)),Tm("history",Fw(t)),jy(Nw(t))}function Vw(t){return Hw.apply(this,arguments)}function Hw(){return(Hw=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(Lw(e,[Uw(T_.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 Uw(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 Ww,Yw=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:qw(a),end:qw(i),name:r,data:{size:s,encodedBodySize:o}}},paint:function(t){var e=t.duration,n=t.entryType,r=t.name,i=qw(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:qw(a),end:qw(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=qw(r);return{type:n,name:n,start:a,end:a+e,data:{duration:e,size:i,nodeId:vw.mirror.getId(t.element)}}}));function Gw(t){return void 0===Yw[t.entryType]?null:Yw[t.entryType](t)}function qw(t){return((py||T_.performance.timeOrigin)+t)/1e3}function Zw(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 Xw(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 Kw(t){return $w.apply(this,arguments)}function $w(){return $w=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,ib(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)}))),$w.apply(this,arguments)}function Qw(t){return Jw.apply(this,arguments)}function Jw(){return Jw=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=Xw({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:O_},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,Kw({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=Zw(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(P_);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 tk(S);case 34:if("number"!=typeof k.statusCode||!(k.statusCode<200||k.statusCode>=300)){t.next=36;break}throw new ek(k.statusCode);case 36:return t.abrupt("return",k);case 37:case"end":return t.stop()}}),t,null,[[20,26]])}))),Jw.apply(this,arguments)}var tk=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)),ek=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 nk(t){return rk.apply(this,arguments)}function rk(){return rk=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:N_},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,Qw(e);case 7:return t.abrupt("return",!0);case 10:if(t.prev=10,t.t0=t.catch(4),!(t.t0 instanceof tk||t.t0 instanceof ek)){t.next=14;break}throw t.t0;case 14:if(Xy("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(P_," - 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,nk(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]])}))),rk.apply(this,arguments)}var ik=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:R_}),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 bw(r)}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Replay] Using simple buffer"),new _w}({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=vw(_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:R_}),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?R_:e,r=this.getSessionId();if(!this._lastActivity||!ww(this._lastActivity,L_)){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=Tw({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(T_.location.pathname).concat(T_.location.hash).concat(T_.location.search),e="".concat(T_.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{T_.document.addEventListener("visibilitychange",this._handleVisibilityChange),T_.addEventListener("blur",this._handleWindowBlur),T_.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)},Ww=n}}(this._context.errorIds),this._hasInitializedCoreListeners||(Bw(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"_performanceObserver"in T_&&(this._performanceObserver=yw(this))}},{key:"_removeListeners",value:function(){try{T_.document.removeEventListener("visibilitychange",this._handleVisibilityChange),T_.removeEventListener("blur",this._handleWindowBlur),T_.removeEventListener("focus",this._handleWindowFocus),function(){var t=Uy().getClient();t&&Ww&&(t.recordDroppedEvent=Ww)}(),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(),Mw(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"===T_.document.visibilityState?t._doChangeToForegroundTasks():t._doChangeToBackgroundTasks()}}},{key:"__init14",value:function(){var t=this;this._handleWindowBlur=function(){var e=Pw({category:"ui.blur"});t._doChangeToBackgroundTasks(e)}}},{key:"__init15",value:function(){var t=this;this._handleWindowFocus=function(){var e=Pw({category:"ui.focus"});t._doChangeToForegroundTasks(e)}}},{key:"_doChangeToBackgroundTasks",value:function(t){if(this.session){var e=kw(this.session,D_);t&&!e&&this._createCustomBreadcrumb(t),this._conditionalFlush()}}},{key:"_doChangeToForegroundTasks",value:function(t){this.session&&(this.checkAndHandleExpiredSession({expiry:D_})?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"),vw.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(){Mw(e,{type:tx.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}},{key:"_addPerformanceEntries",value:function(){var t=mi(this.performanceEvents);return this.performanceEvents=[],Promise.all(Lw(this,function(t){return t.map(Gw).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,Vw(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,nk({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 tk)){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&&Sw(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 ak(){return"undefined"!=typeof window&&(!Zm()||"undefined"!=typeof process&&"renderer"===process.type)}var ok="img,image,svg,path,rect,area,video,object,picture,embed,map,audio",sk=!1,uk=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=I_),this._options.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(ok):ok),this._isInitialized&&ak())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 sk},set:function(t){sk=t}},{key:"setupOnce",value:function(){var t=this;ak()&&(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 ik({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}();function lk(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:hb}],version:hb},function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0===t.defaultIntegrations&&(t.defaultIntegrations=S_),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),yb.SENTRY_RELEASE&&yb.SENTRY_RELEASE.id&&(t.release=yb.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||e_),integrations:nb(t),transport:t.transport||(xm()?Hb:Ub)});lb(zb,e),t.autoSessionTracking&&C_()}(t)}uk.__initStatic();var ck={exports:{}},fk={},dk=ki.exports,hk=Symbol.for("react.element"),pk=Symbol.for("react.fragment"),vk=Object.prototype.hasOwnProperty,gk=dk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mk={key:!0,ref:!0,__self:!0,__source:!0};function yk(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)vk.call(e,r)&&!mk.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:hk,type:t,key:a,ref:o,props:i,_owner:gk.current}}fk.Fragment=pk,fk.jsx=yk,fk.jsxs=yk,function(t){t.exports=fk}(ck);var bk=hi("F",ck.exports.Fragment),_k=hi("j",ck.exports.jsx),xk=hi("e",ck.exports.jsxs);function wk(t){var e=Uy().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function kk(t){var e=(t||Uy()).getScope();return e&&e.getTransaction()}function Sk(t){return t/1e3}function Ek(){var t=kk();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 Ck=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 Ak=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 Ck(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}()),Tk=1e3,Mk=3e4,Ok=5e3,Pk=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}(Ck),Rk=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]:Tk,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mk,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Ok,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&&(Dk(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&&Dk(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 Pk((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}(Ak);function Dk(t){var e=t.getScope();e&&(e.getTransaction()&&e.setSpan(void 0))}function Lk(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function Ik(t,e,n){return wk(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 Nk(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 Ak(t,this);return(o=Ik(o,r,_i({parentSampled:t.parentSampled,transactionContext:t},e))).sampled&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),o}function Fk(t,e,n,r,i,a,o){var s=t.getClient(),u=s&&s.getOptions()||{},l=new Rk(e,t,n,r,o,i);return(l=Ik(l,u,_i({parentSampled:e.parentSampled,transactionContext:e},a))).sampled&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l}function zk(){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 jk=jg;var Bk=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))}},Vk=function(){return jk.__WEB_VITALS_POLYFILL__?jk.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||function(){var t=jk.performance.timing,e=jk.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}()):jk.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},Hk=function(){var t=Vk();return t&&t.activationStart||0},Uk=function(t,e){var n=Vk(),r="navigate";return n&&(r=jk.document.prerendering||Hk()>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}},Wk=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){}},Yk=function(t,e){var n=function n(r){"pagehide"!==r.type&&"hidden"!==jk.document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Gk=-1,qk=function(){return Gk<0&&(Gk="hidden"!==jk.document.visibilityState||jk.document.prerendering?1/0:0,Yk((function(t){var e=t.timeStamp;Gk=e}),!0)),{get firstHiddenTime(){return Gk}}},Zk={};function Xk(t){return"number"==typeof t&&isFinite(t)}function Kk(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 $k(){return jk&&jk.addEventListener&&jk.performance}var Qk,Jk,tS=0,eS={};function nS(){var t=$k();t&&py&&(t.mark&&jk.performance.mark("sentry-tracing-init"),function(t){var e,n=Uk("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=Wk("layout-shift",a);o&&(e=Bk(t,n),Yk((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"),eS.cls={value:t.value,unit:""},Jk=e)})),function(t){var e,n=qk(),r=Uk("LCP"),i=function(t){var i=t[t.length-1];if(i){var a=Math.max(i.startTime-Hk(),0);a<n.firstHiddenTime&&(r.value=a,r.entries=[i],e())}},a=Wk("largest-contentful-paint",i);if(a){e=Bk(t,r);var o=function(){Zk[r.id]||(i(a.takeRecords()),a.disconnect(),Zk[r.id]=!0,e(!0))};["keydown","click"].forEach((function(t){addEventListener(t,o,{once:!0,capture:!0})})),Yk(o,!0)}}((function(t){var e=t.entries.pop();e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding LCP"),eS.lcp={value:t.value,unit:"millisecond"},Qk=e)})),function(t){var e,n=qk(),r=Uk("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=Wk("first-input",a);e=Bk(t,r),o&&Yk((function(){a(o.takeRecords()),o.disconnect()}),!0)}((function(t){var e=t.entries.pop();if(e){var n=Sk(py),r=Sk(e.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding FID"),eS.fid={value:t.value,unit:"millisecond"},eS["mark.fid"]={value:n+r,unit:"second"}}})))}function rS(t){var e=$k();if(e&&jk.performance.getEntries&&py){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,i=Sk(py),a=e.getEntries();if(a.slice(tS).forEach((function(e){var a=Sk(e.startTime),o=Sk(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){iS(t,e,r,n)})),iS(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),iS(t,e,"fetch",n,"cache","domainLookupStart"),iS(t,e,"domainLookup",n,"DNS"),function(t,e,n){Kk(t,{op:"browser",description:"request",startTimestamp:n+Sk(e.requestStart),endTimestamp:n+Sk(e.responseEnd)}),Kk(t,{op:"browser",description:"response",startTimestamp:n+Sk(e.responseStart),endTimestamp:n+Sk(e.responseEnd)})}(t,e,n)}(t,e,i),n=i+Sk(e.responseStart),r=i+Sk(e.requestStart);break;case"mark":case"paint":case"measure":!function(t,e,n,r,i){var a=i+n,o=a+r;Kk(t,{description:e.name,endTimestamp:o,op:e.entryType,startTimestamp:a})}(t,e,a,o,i);var s=qk(),u=e.startTime<s.firstHiddenTime;"first-paint"===e.name&&u&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding FP"),eS.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&u&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding FCP"),eS.fcp={value:e.startTime,unit:"millisecond"});break;case"resource":var l=e.name.replace(jk.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;Kk(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)}})),tS=Math.max(a.length-1,0),function(t){var e=jk.navigator;if(!e)return;var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),Xk(n.rtt)&&(eS["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Xk(e.deviceMemory)&&t.setTag("deviceMemory","".concat(e.deviceMemory," GB"));Xk(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"),eS.ttfb={value:1e3*(n-t.startTimestamp),unit:"millisecond"},"number"==typeof r&&r<=n&&(eS["ttfb.requestTime"]={value:1e3*(n-r),unit:"millisecond"})),["fcp","fp","lcp"].forEach((function(e){if(eS[e]&&!(i>=t.startTimestamp)){var n=eS[e].value,r=i+Sk(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,")")),eS[e].value=a}}));var o=eS["mark.fid"];o&&eS.fid&&(Kk(t,{description:"first input delay",endTimestamp:o.value+Sk(eS.fid.value),op:"ui.action",startTimestamp:o.value}),delete eS["mark.fid"]),"fcp"in eS||delete eS.cls,Object.keys(eS).forEach((function(e){t.setMeasurement(e,eS[e].value,eS[e].unit)})),function(t){Qk&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding LCP Data"),Qk.element&&t.setTag("lcp.element",Ug(Qk.element)),Qk.id&&t.setTag("lcp.id",Qk.id),Qk.url&&t.setTag("lcp.url",Qk.url.trim().slice(0,200)),t.setTag("lcp.size",Qk.size));Jk&&Jk.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Kg.log("[Measurements] Adding CLS Data"),Jk.sources.forEach((function(e,n){return t.setTag("cls.source.".concat(n+1),Ug(e.node))})))}(t)}Qk=void 0,Jk=void 0,eS={}}}function iS(t,e,n,r,i,a){var o=a?e[a]:e["".concat(n,"End")],s=e["".concat(n,"Start")];s&&o&&Kk(t,{op:"browser",description:i||n,startTimestamp:r+Sk(s),endTimestamp:r+Sk(o)})}var aS=["localhost",/^\//],oS={traceFetch:!0,traceXHR:!0,tracingOrigins:aS,tracePropagationTargets:aS};function sS(t){var e=_i({traceFetch:oS.traceFetch,traceXHR:oS.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||aS)}(t,i||a)},l={};n&&Tm("fetch",(function(t){!function(t,e,n,r){if(!wk()||!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(!wk()||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(S1){}}}(t,s,u,l)}))}var uS,lS=_i({idleTimeout:Tk,finalTimeout:Mk,heartbeatInterval:Ok,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(jk&&jk.location){var r,i=jk.location.href;e&&(r=t({name:jk.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:jk.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:{}},oS),cS=function(){function t(e){Ai(this,t),t.prototype.__init.call(this),this.options=_i(_i({},lS),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),nS(),this.options.enableLongTask&&Wk("longtask",(function(t){var e,n=zi(t);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=kk();if(!i)return;var a=Sk(py+r.startTime),o=Sk(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&&(jk&&jk.document?jk.document.addEventListener("visibilitychange",(function(){var t=kk();if(jk.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(),sS({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?fS("sentry-trace"):null,u=o?fS("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=Fk(this._getCurrentHub(),h,r,i,!0,{location:jk.location},a);return p.registerBeforeFinishCallback((function(t){rS(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=jk.location,l={name:e._latestRouteName,op:o,trimEnd:!0,metadata:{source:e._latestRouteSource||"url"}};t=Fk(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 fS(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__)&&((uS=Vy()).__SENTRY__&&(uS.__SENTRY__.extensions=uS.__SENTRY__.extensions||{},uS.__SENTRY__.extensions.startTransaction||(uS.__SENTRY__.extensions.startTransaction=Nk),uS.__SENTRY__.extensions.traceHeaders||(uS.__SENTRY__.extensions.traceHeaders=Lk)),Zm()&&zk(),Tm("error",Ek),Tm("unhandledrejection",Ek));var dS=["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage","Script error.","_avast_submit"],hS=[/pagead\/js/i,/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i],pS="[Local Logic] ",vS=function(){function t(){Ai(this,t),lk({dsn:"https://19707ff4ff7f420b9369a3e15041c787@o227377.ingest.sentry.io/6677584",integrations:[new cS,new uk],tracesSampleRate:.05,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.5,environment:"production",enabled:!0,ignoreErrors:dS,denyUrls:hS})}return Ci(t,[{key:"captureException",value:function(t){this.log(t.message,"error"),qy(t)}},{key:"addBreadCrumb",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"info";this.log(e),Zy({category:t,message:e,data:n,level:r})}},{key:"log",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";console[e](pS+t)}}]),t}(),gS=(hi("b",Object.freeze(new vS)),function(){return gS=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},gS.apply(this,arguments)});function mS(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 yS(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 bS="-ms-",_S="-moz-",xS="-webkit-",wS="comm",kS="rule",SS="decl",ES="@keyframes",CS=Math.abs,AS=String.fromCharCode,TS=Object.assign;function MS(t){return t.trim()}function OS(t,e){return(t=e.exec(t))?t[0]:t}function PS(t,e,n){return t.replace(e,n)}function RS(t,e){return t.indexOf(e)}function DS(t,e){return 0|t.charCodeAt(e)}function LS(t,e,n){return t.slice(e,n)}function IS(t){return t.length}function NS(t){return t.length}function FS(t,e){return e.push(t),t}var zS=1,jS=1,BS=0,VS=0,HS=0,US="";function WS(t,e,n,r,i,a,o){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:zS,column:jS,length:o,return:""}}function YS(t,e){return TS(WS("",null,null,"",null,null,0),t,{length:-t.length},e)}function GS(){return HS=VS>0?DS(US,--VS):0,jS--,10===HS&&(jS=1,zS--),HS}function qS(){return HS=VS<BS?DS(US,VS++):0,jS++,10===HS&&(jS=1,zS++),HS}function ZS(){return DS(US,VS)}function XS(){return VS}function KS(t,e){return LS(US,t,e)}function $S(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 QS(t){return MS(KS(VS-1,eE(91===t?t+2:40===t?t+1:t)))}function JS(t){for(;(HS=ZS())&&HS<33;)qS();return $S(t)>2||$S(HS)>3?"":" "}function tE(t,e){for(;--e&&qS()&&!(HS<48||HS>102||HS>57&&HS<65||HS>70&&HS<97););return KS(t,XS()+(e<6&&32==ZS()&&32==qS()))}function eE(t){for(;qS();)switch(HS){case t:return VS;case 34:case 39:34!==t&&39!==t&&eE(HS);break;case 40:41===t&&eE(t);break;case 92:qS()}return VS}function nE(t,e){for(;qS()&&t+HS!==57&&(t+HS!==84||47!==ZS()););return"/*"+KS(e,VS-1)+"*"+AS(47===t?t:qS())}function rE(t){for(;!$S(ZS());)qS();return KS(t,VS)}function iE(t){return function(t){return US="",t}(aE("",null,null,null,[""],t=function(t){return zS=jS=1,BS=IS(US=t),VS=0,[]}(t),0,[0],t))}function aE(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=qS()){case 40:if(108!=p&&58==DS(k,f-1)){-1!=RS(k+=PS(QS(y),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:k+=QS(y);break;case 9:case 10:case 13:case 32:k+=JS(p);break;case 92:k+=tE(XS()-1,7);continue;case 47:switch(ZS()){case 42:case 47:FS(sE(nE(qS(),XS()),e,n),u);break;default:k+="/"}break;case 123*v:s[l++]=IS(k)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:h>0&&IS(k)-f&&FS(h>32?uE(k+";",r,n,f-1):uE(PS(k," ","")+";",r,n,f-2),u);break;case 59:k+=";";default:if(FS(w=oE(k,e,n,l,c,i,s,b,_=[],x=[],f),a),123===y)if(0===c)aE(k,e,w,w,_,a,f,s,x);else switch(99===d&&110===DS(k,3)?100:d){case 100:case 109:case 115:aE(t,w,w,r&&FS(oE(t,w,w,0,0,i,s,b,i,_=[],f),x),i,x,f,s,r?_:x);break;default:aE(k,w,w,w,[""],x,0,s,x)}}l=c=h=0,v=m=1,b=k="",f=o;break;case 58:f=1+IS(k),h=p;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==GS())continue;switch(k+=AS(y),y*v){case 38:m=c>0?1:(k+="\f",-1);break;case 44:s[l++]=(IS(k)-1)*m,m=1;break;case 64:45===ZS()&&(k+=QS(qS())),d=ZS(),c=f=IS(b=k+=rE(XS())),y++;break;case 45:45===p&&2==IS(k)&&(v=0)}}return a}function oE(t,e,n,r,i,a,o,s,u,l,c){for(var f=i-1,d=0===i?a:[""],h=NS(d),p=0,v=0,g=0;p<r;++p)for(var m=0,y=LS(t,f+1,f=CS(v=o[p])),b=t;m<h;++m)(b=MS(v>0?d[m]+" "+y:PS(y,/&\f/g,d[m])))&&(u[g++]=b);return WS(t,e,n,0===i?kS:s,u,l,c)}function sE(t,e,n){return WS(t,e,n,wS,AS(HS),LS(t,2,-2),0)}function uE(t,e,n,r){return WS(t,e,n,SS,LS(t,0,r),LS(t,r+1,-1),r)}function lE(t,e,n){switch(function(t,e){return 45^DS(t,0)?(((e<<2^DS(t,0))<<2^DS(t,1))<<2^DS(t,2))<<2^DS(t,3):0}(t,e)){case 5103:return xS+"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 xS+t+t;case 4789:return _S+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return xS+t+_S+t+bS+t+t;case 5936:switch(DS(t,e+11)){case 114:return xS+t+bS+PS(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return xS+t+bS+PS(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return xS+t+bS+PS(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return xS+t+bS+t+t;case 6165:return xS+t+bS+"flex-"+t+t;case 5187:return xS+t+PS(t,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+t;case 5443:return xS+t+bS+"flex-item-"+PS(t,/flex-|-self/g,"")+(OS(t,/flex-|baseline/)?"":bS+"grid-row-"+PS(t,/flex-|-self/g,""))+t;case 4675:return xS+t+bS+"flex-line-pack"+PS(t,/align-content|flex-|-self/g,"")+t;case 5548:return xS+t+bS+PS(t,"shrink","negative")+t;case 5292:return xS+t+bS+PS(t,"basis","preferred-size")+t;case 6060:return xS+"box-"+PS(t,"-grow","")+xS+t+bS+PS(t,"grow","positive")+t;case 4554:return xS+PS(t,/([^-])(transform)/g,"$1-webkit-$2")+t;case 6187:return PS(PS(PS(t,/(zoom-|grab)/,xS+"$1"),/(image-set)/,xS+"$1"),t,"")+t;case 5495:case 3959:return PS(t,/(image-set\([^]*)/,xS+"$1$`$1");case 4968:return PS(PS(t,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+xS+t+t;case 4200:if(!OS(t,/flex-|baseline/))return bS+"grid-column-align"+LS(t,e)+t;break;case 2592:case 3360:return bS+PS(t,"template-","")+t;case 4384:case 3616:return n&&n.some((function(t,n){return e=n,OS(t.props,/grid-\w+-end/)}))?~RS(t+(n=n[e].value),"span")?t:bS+PS(t,"-start","")+t+bS+"grid-row-span:"+(~RS(n,"span")?OS(n,/\d+/):+OS(n,/\d+/)-+OS(t,/\d+/))+";":bS+PS(t,"-start","")+t;case 4896:case 4128:return n&&n.some((function(t){return OS(t.props,/grid-\w+-start/)}))?t:bS+PS(PS(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return PS(t,/(.+)-inline(.+)/,xS+"$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(IS(t)-1-e>6)switch(DS(t,e+1)){case 109:if(45!==DS(t,e+4))break;case 102:return PS(t,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+_S+(108==DS(t,e+3)?"$3":"$2-$3"))+t;case 115:return~RS(t,"stretch")?lE(PS(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return PS(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,r,i,a,o,s){return bS+n+":"+r+s+(i?bS+n+"-span:"+(a?o:+o-+r)+s:"")+t}));case 4949:if(121===DS(t,e+6))return PS(t,":",":"+xS)+t;break;case 6444:switch(DS(t,45===DS(t,14)?18:11)){case 120:return PS(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+xS+(45===DS(t,14)?"inline-":"")+"box$3$1"+xS+"$2$3$1"+bS+"$2box$3")+t;case 100:return PS(t,":",":"+bS)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return PS(t,"scroll-","scroll-snap-")+t}return t}function cE(t,e){for(var n="",r=NS(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function fE(t,e,n,r){switch(t.type){case"@import":case SS:return t.return=t.return||t.value;case wS:return"";case ES:return t.return=t.value+"{"+cE(t.children,r)+"}";case kS:t.value=t.props.join(",")}return IS(n=cE(t.children,r))?t.return=t.value+"{"+n+"}":""}function dE(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case SS:return void(t.return=lE(t.value,t.length,n));case ES:return cE([YS(t,{value:PS(t.value,"@","@"+xS)})],r);case kS:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,(function(e){switch(OS(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cE([YS(t,{props:[PS(e,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cE([YS(t,{props:[PS(e,/:(plac\w+)/,":-webkit-input-$1")]}),YS(t,{props:[PS(e,/:(plac\w+)/,":-moz-$1")]}),YS(t,{props:[PS(e,/:(plac\w+)/,bS+"input-$1")]})],r)}return""}))}}var hE={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},pE="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",vE="active",gE="data-styled-version",mE="6.0.0-beta.11",yE="/*!sc*/\n",bE="undefined"!=typeof window&&"HTMLElement"in window,_E=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)),xE={},wE=Object.freeze([]),kE=Object.freeze({});function SE(t,e,n){return void 0===n&&(n=kE),t.theme!==n.theme&&t.theme||e||n.theme}var EE=["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"],CE=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,AE=/(^-|-$)/g;function TE(t){return t.replace(CE,"-").replace(AE,"")}var ME=/(a)(d)/gi,OE=function(t){return String.fromCharCode(t+(t>25?39:97))};function PE(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=OE(e%52)+n;return(OE(e%52)+n).replace(ME,"$1-$2")}var RE,DE=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},LE=function(t){return DE(5381,t)};function IE(t){return PE(LE(t)>>>0)}function NE(t){return"string"==typeof t&&!0}var FE="function"==typeof Symbol&&Symbol.for,zE=FE?Symbol.for("react.memo"):60115,jE=FE?Symbol.for("react.forward_ref"):60112,BE={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},VE={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},HE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},UE=((RE={})[jE]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},RE[zE]=HE,RE);function WE(t){return("type"in(e=t)&&e.type.$$typeof)===zE?HE:"$$typeof"in t?UE[t.$$typeof]:BE;var e}var YE=Object.defineProperty,GE=Object.getOwnPropertyNames,qE=Object.getOwnPropertySymbols,ZE=Object.getOwnPropertyDescriptor,XE=Object.getPrototypeOf,KE=Object.prototype;function $E(t,e,n){if("string"!=typeof e){if(KE){var r=XE(e);r&&r!==KE&&$E(t,r,n)}var i=GE(e);qE&&(i=i.concat(qE(e)));for(var a=WE(t),o=WE(e),s=0;s<i.length;++s){var u=i[s];if(!(u in VE||n&&n[u]||o&&u in o||a&&u in a)){var l=ZE(e,u);try{YE(t,u,l)}catch(c){}}}}return t}function QE(t){return"object"===Fi(t)&&"styledComponentId"in t}function JE(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter(Boolean).join(" ")}function tC(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 eC(t,e,n){if(void 0===n&&(n=!1),!n&&!tC(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)t[r]=eC(t[r],e[r]);else if(tC(e))for(var r in e)t[r]=eC(t[r],e[r]);return t}function nC(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 rC=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 nC(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(yE);return e},t}(),iC=new Map,aC=new Map,oC=1,sC=function(t){if(iC.has(t))return iC.get(t);for(;aC.has(oC);)oC++;var e=oC++;return iC.set(t,e),aC.set(e,t),e},uC=function(t,e){iC.set(t,e),aC.set(e,t)},lC="style[".concat(pE,"][").concat(gE,'="').concat(mE,'"]'),cC=new RegExp("^".concat(pE,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),fC=function(t){for(var e=t.getTag(),n=e.length,r="",i=function(n){var i=function(t){return aC.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(pE,".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(yE)},a=0;a<n;a++)i(a);return r},dC=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)},hC=function(t,e){for(var n,r=(null!==(n=e.textContent)&&void 0!==n?n:"").split(yE),i=[],a=0,o=r.length;a<o;a++){var s=r[a].trim();if(s){var u=s.match(cC);if(u){var l=0|parseInt(u[1],10),c=u[2];0!==l&&(uC(c,l),dC(t,c,u[3]),t.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}};var pC=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(pE))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(pE,vE),r.setAttribute(gE,mE);var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},vC=function(){function t(t){var e=this.element=pC(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 nC(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}(),gC=function(){function t(t){var e=this.element=pC(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}(),mC=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}(),yC=bE,bC={isServer:!bE,useCSSOMInjection:!_E},_C=function(){function t(t,e,n){void 0===t&&(t=kE),void 0===e&&(e={}),this.options=gS(gS({},bC),t),this.gs=e,this.names=new Map(n),this.server=!!t.isServer,!this.server&&bE&&yC&&(yC=!1,function(t){for(var e=document.querySelectorAll(lC),n=0,r=e.length;n<r;n++){var i=e[n];i&&i.getAttribute(pE)!==vE&&(hC(t,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}return t.registerId=function(t){return sC(t)},t.prototype.reconstructWithOptions=function(e,n){return void 0===n&&(n=!0),new t(gS(gS({},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 mC(r):n?new vC(r):new gC(r)}(this.options),new rC(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(sC(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(sC(t),n)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(sC(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t.prototype.toString=function(){return fC(this)},t}(),xC=/^\s*\/\/.*$/gm,wC=[":","[",".","#"];function kC(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=kC(t.children,e)),t}))}var SC=pa.createContext({shouldForwardProp:void 0,styleSheet:void 0});SC.Consumer;var EC=pa.createContext(void 0);EC.Consumer;var CC=new _C,AC=function(t){var e,n,r,i,a=void 0===t?kE:t,o=a.options,s=void 0===o?kE:o,u=a.plugins,l=void 0===u?wE:u,c=function(t,r,a){return 0===r&&wC.includes(a[n.length])||a.match(i)?t:".".concat(e)},f=function(t){if(t.type===kS&&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(xC,"");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(dE),d.push(f,fE);var h,p,v=iE(o||a?"".concat(o," ").concat(a," { ").concat(c," }"):c);return s.namespace&&(v=kC(v,s.namespace)),h=v,p=function(t){var e=NS(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||nC(15),DE(t,e.name)}),5381).toString():"",d}();function TC(){return ki.exports.useContext(SC).styleSheet||CC}function MC(){return ki.exports.useContext(EC)||AC}var OC=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=AC);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 nC(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=AC),this.name+t.hash},t}();function PC(t,e){return null==e||"boolean"==typeof e||""===e?"":"number"!=typeof e||0===e||t in hE?String(e).trim():"".concat(e,"px")}var RC=/[A-Z]/,DC=/[A-Z]/g,LC=/^ms-/,IC=function(t){return"-".concat(t.toLowerCase())};function NC(t){return RC.test(t)&&!t.startsWith("--")?t.replace(DC,IC).replace(LC,"-ms-"):t}function FC(t){return"function"==typeof t}var zC=function(t){return null==t||!1===t||""===t},jC=function t(e,n){var r=[];for(var i in e)e.hasOwnProperty(i)&&!zC(e[i])&&(Array.isArray(e[i])&&e[i].isCss||FC(e[i])?r.push("".concat(NC(i),":"),e[i],";"):tC(e[i])?r.push.apply(r,t(e[i],i)):r.push("".concat(NC(i),": ").concat(PC(i,e[i]),";")));return n?yS(yS(["".concat(n," {")],r,!0),["}"],!1):r};function BC(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=BC(t[a],e,n,r)).length&&i.push.apply(i,s);return i}return zC(t)?[]:QE(t)?[".".concat(t.styledComponentId)]:FC(t)?function(t){return"function"==typeof t&&!(t.prototype&&t.prototype.isReactComponent)}(t)&&e?BC(s=t(e),e,n,r):[t]:t instanceof OC?n?(t.inject(n,r),[t.getName(r)]):[t]:tC(t)?jC(t):[t.toString()]}function VC(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(FC(n)&&!QE(n))return!1}return!0}var HC=LE(mE),UC=function(){function t(t,e,n){this.names=[],this.rules=t,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&VC(t),this.componentId=e,this.baseHash=DE(HC,e),this.baseStyle=n,_C.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=BC(this.rules,t,e,n).join(""),a=PE(DE(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=DE(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=BC(f,t,e,n),h=Array.isArray(d)?d.join(""):d;u=DE(u,h),l+=h}}if(l){var p=PE(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}(),WC=pa.createContext(void 0);WC.Consumer;var YC={};function GC(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(SC).shouldForwardProp,f=t.shouldForwardProp||c,d=SE(e,ki.exports.useContext(WC),o)||kE,h=i.reduce((function(t,e){var n="function"==typeof e?e(t):e;for(var r in n)t[r]="className"===r?JE(t[r],n[r]):"style"===r?gS(gS({},t[r]),n[r]):n[r];return t}),gS(gS({},e),{theme:d})),p=function(t,e,n,r){var i=TC(),a=MC();return t.generateAndInjectStyles(e?kE:n,i,a)}(a,r,h),v=n,g=h.as||l,m=NE(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===EE.indexOf(g)?"class":"className"]=s.concat(u,p!==u?p:"",h.className||"").filter(Boolean).join(" "),y.ref=v,ki.exports.createElement(g,y)}function qC(t,e,n){var r=QE(t),i=t,a=!NE(t),o=e.attrs,s=void 0===o?wE:o,u=e.componentId,l=void 0===u?function(t,e){var n="string"!=typeof t?"sc":TE(t);YC[n]=(YC[n]||0)+1;var r="".concat(n,"-").concat(IE(mE+n+YC[n]));return e?"".concat(e,"-").concat(r):r}(e.displayName,e.parentComponentId):u,c=e.displayName,f=void 0===c?function(t){return NE(t)?"styled.".concat(t):"Styled(".concat(function(t){return t.displayName||t.name||"Component"}(t),")")}(t):c,d=e.displayName&&e.componentId?"".concat(TE(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 UC(n,d,r?i.componentStyle:void 0),y=m.isStatic&&0===s.length;function b(t,e){return GC(_,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):wE,_.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++){eC(t,i[r],!0)}return t}({},i.defaultProps,t):t}}),_.toString=function(){return".".concat(_.styledComponentId)},a)&&$E(_,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0});return _}function ZC(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 XC=function(t){return Object.assign(t,{isCss:!0})};function KC(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(FC(t)||tC(t)){var r=t;return XC(BC(ZC(wE,yS([r],e,!0))))}var i=t;return 0===e.length&&1===i.length&&"string"==typeof i[0]?BC(i):XC(BC(ZC(i,e)))}function $C(t,e,n){if(void 0===n&&(n=kE),!e)throw nC(1,e);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return t(e,n,KC.apply(void 0,yS([r],i,!1)))};return r.attrs=function(r){return $C(t,e,gS(gS({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return $C(t,e,gS(gS({},n),r))},r}var QC=function(t){return $C(qC,t)},JC=hi("s",QC);EE.forEach((function(t){JC[t]=QC(t)}));var tA=function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=VC(t),_C.registerId(this.componentId+1)}return t.prototype.createStyles=function(t,e,n,r){var i=r(BC(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&&_C.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,r)},t}();function eA(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=KC.apply(void 0,yS([t],e,!1)),i="sc-global-".concat(IE(JSON.stringify(r))),a=new tA(r,i),o=function(t){var e=TC(),n=MC(),r=pa.useContext(WC),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,xE,n,i);else{var s=gS(gS({},e),{theme:SE(e,r,o.defaultProps)});a.renderStyles(t,s,n,i)}}return pa.memo(o)}function nA(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=KC.apply(void 0,yS([t],e,!1)).join(""),i=IE(r);return new OC(i,r)}var rA=function(t,e){return rA=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])},rA(t,e)};function iA(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}rA(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var aA=function(){return aA=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},aA.apply(this,arguments)};function oA(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 sA(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 uA(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 lA=("undefined"==typeof process||process.env,"production"),cA=function(t){return{isEnabled:function(e){return t.some((function(t){return!!e[t]}))}}},fA={measureLayout:cA(["layout","layoutId","drag"]),animation:cA(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:cA(["exit"]),drag:cA(["drag","dragControls"]),focus:cA(["whileFocus"]),hover:cA(["whileHover","onHoverStart","onHoverEnd"]),tap:cA(["whileTap","onTap","onTapStart","onTapCancel"]),pan:cA(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:cA(["whileInView","onViewportEnter","onViewportLeave"])};var dA=ki.exports.createContext({strict:!1}),hA=Object.keys(fA),pA=hA.length;var vA=ki.exports.createContext({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),gA=ki.exports.createContext({});var mA=ki.exports.createContext(null),yA="undefined"!=typeof document,bA=yA?ki.exports.useLayoutEffect:ki.exports.useEffect,_A={current:null},xA=!1;function wA(){return!xA&&function(){if(xA=!0,yA)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return _A.current=t.matches};t.addListener(e),e()}else _A.current=!1}(),sA(ki.exports.useState(_A.current),1)[0]}function kA(t,e,n,r){var i,a,o=ki.exports.useContext(dA),s=ki.exports.useContext(gA).visualElement,u=ki.exports.useContext(mA),l=(i=wA(),"never"!==(a=ki.exports.useContext(vA).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 bA((function(){null==f||f.syncRender()})),ki.exports.useEffect((function(){var t;null===(t=null==f?void 0:f.animationState)||void 0===t||t.animateChanges()})),bA((function(){return function(){return null==f?void 0:f.notifyUnmount()}}),[]),f}function SA(t){return"object"===Fi(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function EA(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):SA(n)&&(n.current=r))}),[e])}function CA(t){return Array.isArray(t)}function AA(t){return"string"==typeof t||CA(t)}function TA(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 MA(t,e,n){var r=t.getProps();return TA(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 OA(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||AA(t.initial)||AA(t.animate)||AA(t.whileHover)||AA(t.whileDrag)||AA(t.whileTap)||AA(t.whileFocus)||AA(t.exit)}function PA(t){return Boolean(OA(t)||t.variants)}function RA(t){var e=function(t,e){if(OA(t)){var n=t.initial,r=t.animate;return{initial:!1===n||AA(n)?n:void 0,animate:AA(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,ki.exports.useContext(gA)),n=e.initial,r=e.animate;return ki.exports.useMemo((function(){return{initial:n,animate:r}}),[DA(n),DA(r)])}function DA(t){return Array.isArray(t)?t.join(" "):t}function LA(t){var e=ki.exports.useRef(null);return null===e.current&&(e.current=t()),e.current}var IA={hasAnimatedSinceResize:!0,hasEverUpdated:!1},NA=1;var FA=ki.exports.createContext({}),zA=ki.exports.createContext({});var jA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iA(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 BA(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?fA.projectionNodeConstructor=t[e]:fA[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(FA))||void 0===e?void 0:e.id;return r&&void 0!==n?r+"-"+n:n}(t);t=aA(aA({},t),{layoutId:u});var l=ki.exports.useContext(vA),c=null,f=RA(t),d=l.isStatic?void 0:LA((function(){if(IA.hasEverUpdated)return NA++})),h=a(t,l.isStatic);return!l.isStatic&&yA&&(f.visualElement=kA(o,h,aA(aA({},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(zA);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&&SA(u),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof o?o:"both",initialPromotionConfig:c,layoutScroll:l}))}(d,t,f.visualElement,r||fA.projectionNodeConstructor),c=function(t,e,n){var r=[],i=ki.exports.useContext(dA);if(!e)return null;"production"!==lA&&n&&i.strict;for(var a=0;a<pA;a++){var o=hA[a],s=fA[o],u=s.isEnabled,l=s.Component;u(t)&&l&&r.push(_k(l,_i({},aA({key:o},t,{visualElement:e}))))}return r}(t,f.visualElement,e)),xk(jA,{visualElement:f.visualElement,props:aA(aA({},l),t),children:[c,_k(gA.Provider,{value:f,children:i(o,t,d,EA(h,f.visualElement,s),h,l.isStatic,f.visualElement)})]})}))}function VA(t){function e(e,n){return void 0===n&&(n={}),BA(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 HA=["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 UA(t){return"string"==typeof t&&!t.includes("-")&&!!(HA.indexOf(t)>-1||/[A-Z]/.test(t))}var WA={};var YA=["","X","Y","Z"],GA=["transformPerspective","x","y","z"];function qA(t,e){return GA.indexOf(t)-GA.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return YA.forEach((function(e){return GA.push(t+e)}))}));var ZA=new Set(GA);function XA(t){return ZA.has(t)}var KA=new Set(["originX","originY","originZ"]);function $A(t){return KA.has(t)}function QA(t,e){var n=e.layout,r=e.layoutId;return XA(t)||$A(t)||(n||void 0!==r)&&(!!WA[t]||"opacity"===t)}var JA=function(t){return Boolean(null!==t&&"object"===Fi(t)&&t.getVelocity)},tT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function eT(t){return t.startsWith("--")}var nT=function(t,e){return e&&"number"==typeof t?e.transform(t):t},rT=function(t,e){return function(n){return Math.max(Math.min(n,e),t)}},iT=function(t){return t%1?Number(t.toFixed(5)):t},aT=/(-)?([\d]*\.?[\d])+/g,oT=/(#[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,sT=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function uT(t){return"string"==typeof t}var lT={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},cT=Object.assign(Object.assign({},lT),{transform:rT(0,1)}),fT=Object.assign(Object.assign({},lT),{default:1}),dT=function(t){return{test:function(e){return uT(e)&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return"".concat(e).concat(t)}}},hT=dT("deg"),pT=dT("%"),vT=dT("px"),gT=dT("vh"),mT=dT("vw"),yT=Object.assign(Object.assign({},pT),{parse:function(t){return pT.parse(t)/100},transform:function(t){return pT.transform(100*t)}}),bT=function(t,e){return function(n){return Boolean(uT(n)&&sT.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e))}},_T=function(t,e,n){return function(r){var i;if(!uT(r))return r;var a=wi(r.match(aT),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}},xT={test:bT("hsl","hue"),parse:_T("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)+", "+pT.transform(iT(n))+", "+pT.transform(iT(r))+", "+iT(cT.transform(a))+")"}},wT=rT(0,255),kT=Object.assign(Object.assign({},lT),{transform:function(t){return Math.round(wT(t))}}),ST={test:bT("rgb","red"),parse:_T("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("+kT.transform(e)+", "+kT.transform(n)+", "+kT.transform(r)+", "+iT(cT.transform(a))+")"}};var ET={test:bT("#"),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:ST.transform},CT={test:function(t){return ST.test(t)||ET.test(t)||xT.test(t)},parse:function(t){return ST.test(t)?ST.parse(t):xT.test(t)?xT.parse(t):ET.parse(t)},transform:function(t){return uT(t)?t:t.hasOwnProperty("red")?ST.transform(t):xT.transform(t)}},AT="${c}",TT="${n}";function MT(t){"number"==typeof t&&(t="".concat(t));var e=[],n=0,r=t.match(oT);r&&(n=r.length,t=t.replace(oT,AT),e.push.apply(e,mi(r.map(CT.parse))));var i=t.match(aT);return i&&(t=t.replace(aT,TT),e.push.apply(e,mi(i.map(lT.parse)))),{values:e,numColors:n,tokenised:t}}function OT(t){return MT(t).values}function PT(t){var e=MT(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?AT:TT,n<r?CT.transform(t[n]):iT(t[n]));return e}}var RT=function(t){return"number"==typeof t?0:t};var DT={test:function(t){var e,n,r,i;return isNaN(t)&&uT(t)&&(null!==(n=null===(e=t.match(aT))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(i=null===(r=t.match(oT))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:OT,createTransformer:PT,getAnimatableNone:function(t){var e=OT(t);return PT(t)(e.map(RT))}},LT=new Set(["brightness","contrast","saturate","opacity"]);function IT(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(aT)||[],1)[0];if(!i)return t;var a=r.replace(i,""),o=LT.has(n)?1:0;return i!==r&&(o*=100),n+"("+o+a+")"}var NT=/([a-z-]*)\(.*?\)/g,FT=Object.assign(Object.assign({},DT),{getAnimatableNone:function(t){var e=t.match(NT);return e?e.map(IT).join(" "):t}}),zT=aA(aA({},lT),{transform:Math.round}),jT={borderWidth:vT,borderTopWidth:vT,borderRightWidth:vT,borderBottomWidth:vT,borderLeftWidth:vT,borderRadius:vT,radius:vT,borderTopLeftRadius:vT,borderTopRightRadius:vT,borderBottomRightRadius:vT,borderBottomLeftRadius:vT,width:vT,maxWidth:vT,height:vT,maxHeight:vT,size:vT,top:vT,right:vT,bottom:vT,left:vT,padding:vT,paddingTop:vT,paddingRight:vT,paddingBottom:vT,paddingLeft:vT,margin:vT,marginTop:vT,marginRight:vT,marginBottom:vT,marginLeft:vT,rotate:hT,rotateX:hT,rotateY:hT,rotateZ:hT,scale:fT,scaleX:fT,scaleY:fT,scaleZ:fT,skew:hT,skewX:hT,skewY:hT,distance:vT,translateX:vT,translateY:vT,translateZ:vT,x:vT,y:vT,z:vT,perspective:vT,transformPerspective:vT,opacity:cT,originX:yT,originY:yT,originZ:vT,zIndex:zT,fillOpacity:cT,strokeOpacity:cT,numOctaves:zT};function BT(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(eT(h))o[h]=p;else{var v=jT[h],g=nT(p,v);if(XA(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 $A(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(qA);for(var f=!1,d=a.length,h=0;h<d;h++){var p=a[h];c+="".concat(tT[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 VT=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function HT(t,e,n){for(var r in e)JA(e[r])||QA(r,n)||(t[r]=e[r])}function UT(t,e,n){var r={};return HT(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:{}};BT(t,e,{enableHardwareAcceleration:!n},r);var i=t.style;return aA(aA({},t.vars),i)}),[e])}(t,e,n)),t.transformValues&&(r=t.transformValues(r)),r}function WT(t,e,n){var r={},i=UT(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 YT=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 GT(t){return YT.has(t)}var qT,ZT=function(t){return!GT(t)};try{(qT=require("@emotion/is-prop-valid").default)&&(ZT=function(t){return t.startsWith("on")?!GT(t):qT(t)})}catch(F3){}function XT(t,e,n){return"string"==typeof t?t:vT.transform(e+n*t)}var KT={offset:"stroke-dashoffset",array:"stroke-dasharray"},$T={offset:"strokeDashoffset",array:"strokeDasharray"};function QT(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;BT(t,oA(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=XT(e,t.x,t.width),i=XT(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?KT:$T;t[a.offset]=vT.transform(-r);var o=vT.transform(e),s=vT.transform(n);t[a.array]="".concat(o," ").concat(s)}(h,u,c,d,!1)}var JT=function(){return aA(aA({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function tM(t,e){var n=ki.exports.useMemo((function(){var n=JT();return QT(n,e,{enableHardwareAcceleration:!1},t.transformTemplate),aA(aA({},n.attrs),{style:aA({},n.style)})}),[e]);if(t.style){var r={};HT(r,t.style,t),n.style=aA(aA({},r),n.style)}return n}function eM(t){void 0===t&&(t=!1);return function(e,n,r,i,a,o){var s=a.latestValues,u=(UA(e)?tM:WT)(n,s,o),l=function(t,e,n){var r={};for(var i in t)(ZT(i)||!0===n&>(i)||!e&&!GT(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),c=aA(aA(aA({},l),u),{ref:i});return r&&(c["data-projection-id"]=r),ki.exports.createElement(e,c)}}var nM=/([a-z])([A-Z])/g,rM=function(t){return t.replace(nM,"$1-$2").toLowerCase()};function iM(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 aM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function oM(t,e,n,r){for(var i in iM(t,e,void 0,r),e.attrs)t.setAttribute(aM.has(i)?i:rM(i),e.attrs[i])}function sM(t){var e=t.style,n={};for(var r in e)(JA(e[r])||QA(r,t))&&(n[r]=e[r]);return n}function uM(t){var e=sM(t);for(var n in t){if(JA(t[n]))e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function lM(t){return"object"===Fi(t)&&"function"==typeof t.start}var cM=function(t){return Array.isArray(t)},fM=function(t){return cM(t)?t[t.length-1]||0:t};function dM(t){var e=JA(t)?t.get():t;return function(t){return Boolean(t&&"object"===Fi(t)&&t.mix&&t.toValue)}(e)?e.toValue():e}function hM(t,e,n,r){var i=t.scrapeMotionValuesFromProps,a=t.createRenderState,o=t.onMount,s={latestValues:vM(e,n,r,i),renderState:a()};return o&&(s.mount=function(t){return o(e,t,s)}),s}var pM=function(t){return function(e,n){var r=ki.exports.useContext(gA),i=ki.exports.useContext(mA);return n?hM(t,e,r,i):LA((function(){return hM(t,e,r,i)}))}};function vM(t,e,n,r){var i={},a=!1===(null==n?void 0:n.initial),o=r(t);for(var s in o)i[s]=dM(o[s]);var u=t.initial,l=t.animate,c=OA(t),f=PA(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&&!lM(h)&&(Array.isArray(h)?h:[h]).forEach((function(e){var n=TA(t,e);if(n){var r=n.transitionEnd;n.transition;var a=oA(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 gM,mM={useVisualState:pM({scrapeMotionValuesFromProps:uM,createRenderState:JT,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}}QT(r,i,{enableHardwareAcceleration:!1},t.transformTemplate),oM(e,r)}})},yM={useVisualState:pM({scrapeMotionValuesFromProps:sM,createRenderState:VT})};function bM(t,e,n,r){return void 0===r&&(r={passive:!0}),t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n)}}function _M(t,e,n,r){ki.exports.useEffect((function(){var i=t.current;if(n&&i)return bM(i,e,n,r)}),[t,e,n,r])}function xM(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function wM(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"}(gM||(gM={}));var kM={pageX:0,pageY:0};function SM(t,e){void 0===e&&(e="page");var n=t.touches[0]||t.changedTouches[0]||kM;return{x:n[e+"X"],y:n[e+"Y"]}}function EM(t,e){return void 0===e&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function CM(t,e){return void 0===e&&(e="page"),{point:wM(t)?SM(t,e):EM(t,e)}}var AM=function(t,e){void 0===e&&(e=!1);var n,r=function(e){return t(e,CM(e))};return e?(n=r,function(t){var e=t instanceof MouseEvent;(!e||e&&0===t.button)&&n(t)}):r},TM={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},MM={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function OM(t){return yA&&null===window.onpointerdown?t:yA&&null===window.ontouchstart?MM[t]:yA&&null===window.onmousedown?TM[t]:t}function PM(t,e,n,r){return bM(t,OM(e),AM(n,"pointerdown"===e),r)}function RM(t,e,n,r){return _M(t,OM(e),n&&AM(n,"pointerdown"===e),r)}function DM(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var LM=DM("dragHorizontal"),IM=DM("dragVertical");function NM(t){var e=!1;if("y"===t)e=IM();else if("x"===t)e=LM();else{var n=LM(),r=IM();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}function FM(){var t=NM(!0);return!t||(t(),!1)}function zM(t,e,n){return function(r,i){var a;xM(r)&&!FM()&&(null===(a=t.animationState)||void 0===a||a.setActive(gM.Hover,e),null==n||n(r,i))}}var jM=function t(e,n){return!!n&&(e===n||t(e,n.parentElement))};function BM(t){return ki.exports.useEffect((function(){return function(){return t()}}),[])}var VM=function(t,e,n){return Math.min(Math.max(n,t),e)},HM=.001;function UM(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=VM(.05,1,f),i=VM(.01,10,i/1e3),f<1?(e=function(t){var e=t*f,n=e*i,r=e-u,a=WM(t,f),o=Math.exp(-n);return HM-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=WM(Math.pow(t,2),f);return(-e(t)+HM>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 WM(t,e){return t*Math.sqrt(1-e*e)}var YM=["duration","bounce"],GM=["stiffness","damping","mass"];function qM(t,e){return e.some((function(e){return void 0!==t[e]}))}function ZM(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=mS(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(!qM(t,GM)&&qM(t,YM)){var n=UM(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=XM,y=XM;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=WM(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()}}}ZM.needsInterpolation=function(t,e){return"string"==typeof t||"string"==typeof e};var XM=function(t){return 0},KM=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},$M=function(t,e,n){return-n*t+n*e+t};function QM(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 JM(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=QM(l,u,e+1/3),o=QM(l,u,e),s=QM(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 tO=function(t,e,n){var r=t*t,i=e*e;return Math.sqrt(Math.max(0,n*(i-r)+r))},eO=[ET,ST,xT],nO=function(t){return eO.find((function(e){return e.test(t)}))},rO=function(t,e){var n=nO(t),r=nO(e),i=n.parse(t),a=r.parse(e);n===xT&&(i=JM(i),n=ST),r===xT&&(a=JM(a),r=ST);var o=Object.assign({},i);return function(t){for(var e in o)"alpha"!==e&&(o[e]=tO(i[e],a[e],t));return o.alpha=$M(i.alpha,a.alpha,t),n.transform(o)}},iO=function(t){return"number"==typeof t},aO=function(t,e){return function(n){return e(t(n))}},oO=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(aO)};function sO(t,e){return iO(t)?function(n){return $M(t,e,n)}:CT.test(t)?rO(t,e):fO(t,e)}var uO=function(t,e){var n=mi(t),r=n.length,i=t.map((function(t,n){return sO(t,e[n])}));return function(t){for(var e=0;e<r;e++)n[e]=i[e](t);return n}},lO=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]=sO(t[i],e[i]));return function(t){for(var e in r)n[e]=r[e](t);return n}};function cO(t){for(var e=DT.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 fO=function(t,e){var n=DT.createTransformer(e),r=cO(t),i=cO(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?oO(uO(r.parsed,i.parsed),n):function(n){return"".concat(n>0?e:t)}},dO=function(t,e){return function(n){return $M(t,e,n)}};function hO(t,e,n){for(var r=[],i=n||function(t){return"number"==typeof t?dO:"string"==typeof t?CT.test(t)?rO:fO:Array.isArray(t)?uO:"object"===Fi(t)?lO: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=oO(u,s)}r.push(s)}return r}function pO(t,e){var n=wi(t,2),r=n[0],i=n[1],a=wi(e,1)[0];return function(t){return a(KM(r,i,t))}}function vO(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=KM(t[a],t[a+1],i);return e[a](u)}}function gO(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=hO(e,a,o),l=2===s?pO(t,u):vO(t,u);return i?function(e){return l(VM(t[0],t[s-1],e))}:l}var mO,yO=function(t){return function(e){return 1-t(1-e)}},bO=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},_O=function(t){return function(e){return e*e*((t+1)*e-t)}},xO=function(t){return t},wO=(mO=2,function(t){return Math.pow(t,mO)}),kO=yO(wO),SO=bO(wO),EO=function(t){return 1-Math.sin(Math.acos(t))},CO=yO(EO),AO=bO(CO),TO=_O(1.525),MO=yO(TO),OO=bO(TO),PO=function(t){var e=_O(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}}(1.525),RO=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},DO=yO(RO);function LO(t,e){return t.map((function(){return e||SO})).splice(0,t.length-1)}function IO(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 gO(f,c,{ease:Array.isArray(a)?a:LO(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 NO={keyframes:IO,spring:ZM,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 FO=1/60*1e3,zO="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},jO="undefined"!=typeof window?function(t){return window.requestAnimationFrame(t)}:function(t){return setTimeout((function(){return t(zO())}),FO)};var BO=!0,VO=!1,HO=!1,UO={delta:0,timestamp:0},WO=["read","update","preRender","render","postRender"],YO=WO.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 VO=!0})),t}),{}),GO=WO.reduce((function(t,e){var n=YO[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 VO||$O(),n.schedule(t,e,r)},t}),{}),qO=WO.reduce((function(t,e){return t[e]=YO[e].cancel,t}),{}),ZO=WO.reduce((function(t,e){return t[e]=function(){return YO[e].process(UO)},t}),{}),XO=function(t){return YO[t].process(UO)},KO=function t(e){VO=!1,UO.delta=BO?FO:Math.max(Math.min(e-UO.timestamp,40),1),UO.timestamp=e,HO=!0,WO.forEach(XO),HO=!1,VO&&(BO=!1,jO(t))},$O=function(){VO=!0,BO=!0,HO||jO(KO)},QO=function(){return UO};function JO(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t-e-n}var tP=function(t){var e=function(e){var n=e.delta;return t(n)};return{start:function(){return GO.update(e,!0)},stop:function(){return qO.update(e)}}};function eP(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?tP: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=mS(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 IO;if(NO[t.type])return NO[t.type];var e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?IO:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?ZM:IO}(S);(null===(n=(e=O).needsInterpolation)||void 0===n?void 0:n.call(e,o,E))&&(a=gO([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:JO(e+-t,e,n)}(d,A,y,M=C%2==0):(d=JO(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 nP(t,e){return e?t*(1e3/e):0}var rP=function(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")},iP=function(t){return rP(t)&&t.hasOwnProperty("z")},aP=function(t,e){return Math.abs(t-e)};function oP(t,e){if(iO(t)&&iO(e))return aP(t,e);if(rP(t)&&rP(e)){var n=aP(t.x,e.x),r=aP(t.y,e.y),i=iP(t)&&iP(e)?aP(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var sP=function(t,e){return 1-3*e+3*t},uP=function(t,e){return 3*e-6*t},lP=function(t){return 3*t},cP=function(t,e,n){return((sP(e,n)*t+uP(e,n))*t+lP(e))*t},fP=function(t,e,n){return 3*sP(e,n)*t*t+2*uP(e,n)*t+lP(e)};var dP=.1;function hP(t,e,n,r){if(t===e&&n===r)return xO;for(var i=new Float32Array(11),a=0;a<11;++a)i[a]=cP(a*dP,t,n);function o(e){for(var r=0,a=1;10!==a&&i[a]<=e;++a)r+=dP;--a;var o=r+(e-i[a])/(i[a+1]-i[a])*dP,s=fP(o,t,n);return s>=.001?function(t,e,n,r){for(var i=0;i<8;++i){var a=fP(e,n,r);if(0===a)return e;e-=(cP(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=cP(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+dP,t,n)}return function(t){return 0===t||1===t?t:cP(o(t),e,r)}}var pP=new Set;var vP=new WeakMap,gP=new WeakMap,mP=function(t){var e;null===(e=vP.get(t.target))||void 0===e||e(t)},yP=function(t){t.forEach(mP)};function bP(t,e,n){var r=function(t){var e=t.root,n=oA(t,["root"]),r=e||document;gP.has(r)||gP.set(r,{});var i=gP.get(r),a=JSON.stringify(n);return i[a]||(i[a]=new IntersectionObserver(yP,aA({root:e},n))),i[a]}(e);return vP.set(t,n),r.observe(t),function(){vP.delete(t),r.unobserve(t)}}var _P={some:0,all:1};function xP(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:_P[s]};return bP(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(gM.InView,i);var a=n.getProps(),o=i?a.onViewportEnter:a.onViewportLeave;null==o||o(t)}}))}}),[t,i,a,s])}function wP(t,e,n,r){var i=r.fallback,a=void 0===i||i;ki.exports.useEffect((function(){var r,i;t&&a&&("production"!==lA&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||pP.has(r)||(console.warn(r),i&&console.warn(i),pP.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(gM.InView,!0)})))}),[t])}var kP=function(t){return function(e){return t(e),null}},SP={inView:kP((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?wP:xP)(u,s.current,e,o)})),tap:kP((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(gM.Tap,!1),!FM()}function d(t,n){f()&&(jM(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=oO(PM(window,"pointerup",d,l),PM(window,"pointercancel",h,l)),null===(r=a.animationState)||void 0===r||r.setActive(gM.Tap,!0),null==n||n(t,e))}RM(a,"pointerdown",o?p:void 0,l),BM(c)})),focus:kP((function(t){var e=t.whileFocus,n=t.visualElement;_M(n,"focus",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(gM.Focus,!0)}:void 0),_M(n,"blur",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(gM.Focus,!1)}:void 0)})),hover:kP((function(t){var e=t.onHoverStart,n=t.onHoverEnd,r=t.whileHover,i=t.visualElement;RM(i,"pointerenter",e||r?zM(i,!0,e):void 0,{passive:!e}),RM(i,"pointerleave",n||r?zM(i,!1,n):void 0,{passive:!n})}))},EP=0,CP=function(){return EP++};function AP(){var t=ki.exports.useContext(mA);if(null===t)return[!0,null];var e=t.isPresent,n=t.onExitComplete,r=t.register,i=LA(CP);ki.exports.useEffect((function(){return r(i)}),[]);return!e&&n?[!1,function(){return null==n?void 0:n(i)}]:[!0]}function TP(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 MP=function(t){return 1e3*t},OP={linear:xO,easeIn:wO,easeInOut:SO,easeOut:kO,circIn:EO,circInOut:AO,circOut:CO,backIn:TO,backInOut:OO,backOut:MO,anticipate:PO,bounceIn:DO,bounceInOut:function(t){return t<.5?.5*(1-RO(1-2*t)):.5*RO(2*t-1)+.5},bounceOut:RO},PP=function(t){if(Array.isArray(t)){t.length;var e=sA(t,4);return hP(e[0],e[1],e[2],e[3])}return"string"==typeof t?OP[t]:t},RP=function(t,e){return"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!DT.test(e)||e.startsWith("url(")))},DP=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},LP=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}},IP=function(){return{type:"keyframes",ease:"linear",duration:.3}},NP=function(t){return{type:"keyframes",duration:.8,values:t}},FP={x:DP,y:DP,z:DP,rotate:DP,rotateX:DP,rotateY:DP,rotateZ:DP,scaleX:LP,scaleY:LP,scale:LP,opacity:IP,backgroundColor:IP,color:IP,default:LP},zP=aA(aA({},jT),{color:CT,backgroundColor:CT,outlineColor:CT,fill:CT,stroke:CT,borderColor:CT,borderTopColor:CT,borderRightColor:CT,borderBottomColor:CT,borderLeftColor:CT,filter:FT,WebkitFilter:FT}),jP=function(t){return zP[t]};function BP(t,e){var n,r=jP(t);return r!==FT&&(r=DT),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}var VP=!1;function HP(t){var e=t.ease,n=t.times,r=t.yoyo,i=t.flip,a=t.loop,o=oA(t,["ease","times","yoyo","flip","loop"]),s=aA({},o);return n&&(s.offset=n),o.duration&&(s.duration=MP(o.duration)),o.repeatDelay&&(s.repeatDelay=MP(o.repeatDelay)),e&&(s.ease=function(t){return Array.isArray(t)&&"number"!=typeof t[0]}(e)?e.map(PP):PP(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 UP(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=uA([],sA(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=oA(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=aA(aA({},t),function(t,e){var n;return n=cM(e)?NP:FP[t]||FP.default,aA({to:e},n(e))}(n,e.to))),aA(aA({},e),HP(t))}function WP(t,e,n,r,i){var a,o=qP(r,t),s=null!==(a=o.from)&&void 0!==a?a:e.get(),u=RP(t,n);return"none"===s&&u&&"string"==typeof n?s=BP(t,n):YP(s)&&"string"==typeof n?s=GP(n):!Array.isArray(n)&&YP(n)&&"string"==typeof s&&(n=GP(s)),RP(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=eP(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=nP(t-T,QO().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()}}}(aA(aA({},r),o)):eP(aA(aA({},UP(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=fM(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 YP(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function GP(t){return"number"==typeof t?0:BP("",t)}function qP(t,e){return t[e]||t.default||t}function ZP(t,e,n,r){return void 0===r&&(r={}),VP&&(r={type:!1}),e.start((function(i){var a,o,s=WP(t,e,n,r,i),u=function(t,e){var n,r;return null!==(r=null!==(n=(qP(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,MP(u)):l(),function(){clearTimeout(a),null==o||o.stop()}}))}var XP=function(t){return/^\-?\d*\.?\d+$/.test(t)},KP=function(t){return/^0[^.\s]+$/.test(t)};function $P(t,e){-1===t.indexOf(e)&&t.push(e)}function QP(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var JP=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return $P(this.subscriptions,t),function(){return QP(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}(),tR=function(){function t(t){var e,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new JP,this.velocityUpdateSubscribers=new JP,this.renderSubscribers=new JP,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t;var r=QO(),i=r.delta,a=r.timestamp;n.lastUpdated!==a&&(n.timeDelta=i,n.lastUpdated=a,GO.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 GO.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?nP(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 eR(t){return new tR(t)}var nR=function(t){return function(e){return e.test(t)}},rR=[lT,vT,pT,hT,mT,gT,{test:function(t){return"auto"===t},parse:function(t){return t}}],iR=function(t){return rR.find(nR(t))},aR=uA(uA([],sA(rR),!1),[CT,DT],!1),oR=function(t){return aR.find(nR(t))};function sR(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,eR(n))}function uR(t,e){if(e)return(e[t]||e.default||e).from}function lR(t,e,n){var r;void 0===n&&(n={});var i=MA(t,e,n.custom),a=(i||{}).transition,o=void 0===a?t.getDefaultTransition()||{}:a;n.transitionOverride&&(o=n.transitionOverride);var s=i?function(){return cR(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(fR).forEach((function(t,r){o.push(lR(t,e,aA(aA({},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=sA("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 cR(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=oA(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&&dR(v,g))){var b=aA({delay:o},f);t.shouldReduceMotion&&XA(g)&&(b=aA(aA({},b),{type:!1,delay:0}));var _=ZP(g,m,y,b);p.push(_)}}return Promise.all(p).then((function(){d&&function(t,e){var n=MA(t,e),r=n?t.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,a=void 0===i?{}:i;r.transition;var o=oA(r,["transitionEnd","transition"]);for(var s in o=aA(aA({},o),a))sR(t,s,fM(o[s]))}(t,d)}))}function fR(t,e){return t.sortNodePosition(e)}function dR(t,e){var n=t.protectedKeys,r=t.needsAnimating,i=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,i}var hR=[gM.Animate,gM.InView,gM.Focus,gM.Hover,gM.Tap,gM.Drag,gM.Exit],pR=uA([],sA(hR),!1).reverse(),vR=hR.length;function gR(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 lR(t,e,n)}));r=Promise.all(i)}else if("string"==typeof e)r=lR(t,e,n);else{var a="function"==typeof e?MA(t,e,n.custom):e;r=cR(t,a,n)}return r.then((function(){return t.notifyAnimationComplete(e)}))}(t,n,r)})))}}function mR(t){var e=gR(t),n=function(){var t;return(t={})[gM.Animate]=yR(!0),t[gM.InView]=yR(),t[gM.Hover]=yR(),t[gM.Tap]=yR(),t[gM.Drag]=yR(),t[gM.Focus]=yR(),t[gM.Exit]=yR(),t}(),r={},i=!0,a=function(e,n){var r=MA(t,n);if(r){r.transition;var i=r.transitionEnd,a=oA(r,["transition","transitionEnd"]);e=aA(aA(aA({},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=pR[e],v=n[r],g=null!==(u=l[r])&&void 0!==u?u:c[r],m=AA(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=aA({},h),!v.isActive&&null===y||!g&&!v.prevProp||lM(g)||"boolean"==typeof g)return"continue";var _=function(t,e){if("string"==typeof e)return e!==t;if(CA(e))return!TP(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=aA(aA({},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?cM(M)&&cM(O)?!TP(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=aA(aA({},h),k)),i&&t.blockInitialAnimation&&(x=!1),x&&!b&&f.push.apply(f,uA([],sA(w.map((function(t){return{animation:t,options:aA({type:r},o)}}))),!1))},g=0;g<vR;g++)v(g);if(r=aA({},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 yR(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var bR={animation:kP((function(t){var e=t.visualElement,n=t.animate;e.animationState||(e.animationState=mR(e)),lM(n)&&ki.exports.useEffect((function(){return n.subscribe(e)}),[n])})),exit:kP((function(t){var e=t.custom,n=t.visualElement,r=sA(AP(),2),i=r[0],a=r[1],o=ki.exports.useContext(mA);ki.exports.useEffect((function(){var t,r;n.isPresent=i;var s=null===(t=n.animationState)||void 0===t?void 0:t.setActive(gM.Exit,!i,{custom:null!==(r=null==o?void 0:o.custom)&&void 0!==r?r:e});!i&&(null==s||s.then(a))}),[i])}))},_R=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=kR(r.lastMoveEventInfo,r.history),e=null!==r.startEvent,n=oP(t.offset,{x:0,y:0})>=3;if(e||n){var i=t.point,a=QO().timestamp;r.history.push(aA(aA({},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=xR(e,r.transformPagePoint),xM(t)&&0===t.buttons?r.handlePointerUp(t,e):GO.update(r.updatePoint,!0)},this.handlePointerUp=function(t,e){r.end();var n=r.handlers,i=n.onEnd,a=n.onSessionEnd,o=kR(xR(e,r.transformPagePoint),r.history);r.startEvent&&i&&i(t,o),a&&a(t,o)},!(wM(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=i;var a=xR(CM(t),this.transformPagePoint),o=a.point,s=QO().timestamp;this.history=[aA(aA({},o),{timestamp:s})];var u=e.onSessionStart;u&&u(t,kR(a,this.history)),this.removeListeners=oO(PM(window,"pointermove",this.handlePointerMove),PM(window,"pointerup",this.handlePointerUp),PM(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),qO.update(this.updatePoint)},t}();function xR(t,e){return e?{point:e(t.point)}:t}function wR(t,e){return{x:t.x-e.x,y:t.y-e.y}}function kR(t,e){var n=t.point;return{point:n,delta:wR(n,ER(e)),offset:wR(n,SR(e)),velocity:CR(e,.1)}}function SR(t){return t[0]}function ER(t){return t[t.length-1]}function CR(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,i=ER(t);n>=0&&(r=t[n],!(i.timestamp-r.timestamp>MP(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 AR(t){return t.max-t.min}function TR(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),oP(t,e)<n}function MR(t,e,n,r){void 0===r&&(r=.5),t.origin=r,t.originPoint=$M(e.min,e.max,t.origin),t.scale=AR(n)/AR(e),(TR(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=$M(n.min,n.max,t.origin)-t.originPoint,(TR(t.translate)||isNaN(t.translate))&&(t.translate=0)}function OR(t,e,n,r){MR(t.x,e.x,n.x,null==r?void 0:r.originX),MR(t.y,e.y,n.y,null==r?void 0:r.originY)}function PR(t,e,n){t.min=n.min+e.min,t.max=t.min+AR(e)}function RR(t,e,n){t.min=e.min-n.min,t.max=t.min+AR(e)}function DR(t,e,n){RR(t.x,e.x,n.x),RR(t.y,e.y,n.y)}function LR(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 IR(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=sA([i,r],2))[0],i=n[1]),{min:r,max:i}}var NR=.35;function FR(t,e,n){return{min:zR(t,e),max:zR(t,n)}}function zR(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}function jR(t){return[t("x"),t("y")]}function BR(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function VR(t){return void 0===t||1===t}function HR(t){var e=t.scale,n=t.scaleX,r=t.scaleY;return!VR(e)||!VR(n)||!VR(r)}function UR(t){return HR(t)||WR(t.x)||WR(t.y)||t.z||t.rotate||t.rotateX||t.rotateY}function WR(t){return t&&"0%"!==t}function YR(t,e,n){return n+e*(t-n)}function GR(t,e,n,r,i){return void 0!==i&&(t=YR(t,i,r)),YR(t,n,r)+e}function qR(t,e,n,r,i){void 0===e&&(e=0),void 0===n&&(n=1),t.min=GR(t.min,e,n,r,i),t.max=GR(t.max,e,n,r,i)}function ZR(t,e){var n=e.x,r=e.y;qR(t.x,n.translate,n.scale,n.originPoint),qR(t.y,r.translate,r.scale,r.originPoint)}function XR(t,e){t.min=t.min+e,t.max=t.max+e}function KR(t,e,n){var r=sA(n,3),i=r[0],a=r[1],o=r[2],s=void 0!==e[o]?e[o]:.5,u=$M(t.min,t.max,s);qR(t,e[i],e[a],u,e.scale)}var $R=["x","scaleX","originX"],QR=["y","scaleY","originY"];function JR(t,e){KR(t.x,e,$R),KR(t.y,e,QR)}function tD(t,e){return BR(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 eD=new WeakMap,nD=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 _R(t,{onSessionStart:function(t){n.stopAnimation(),i&&n.snapToCursor(CM(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=NM(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),jR((function(t){var e,r,i=n.getAxisMotionValue(t).get()||0;if(pT.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=AR(a)*(parseFloat(i)/100)}n.originPoint[t]=i})),null==s||s(t,e),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(gM.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(gM.Drag,!1)},t.prototype.updateAxis=function(t,e,n){var r=this.getProps().drag;if(n&&rD(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?$M(r,t,n.min):Math.max(t,r):void 0!==i&&t>i&&(t=n?$M(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&&SA(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:LR(t.x,r,a),y:LR(t.y,n,i)}}(i.actual,n),this.elastic=function(t){return void 0===t&&(t=NR),!1===t?t=0:!0===t&&(t=NR),{x:FR(t,"left","right"),y:FR(t,"top","bottom")}}(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&jR((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||!SA(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=tD(t,n),i=e.scroll;return i&&(XR(r.x,i.x),XR(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),o=function(t,e){return{x:IR(t.x,e.x),y:IR(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=BR(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=jR((function(n){var u;if(rD(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=aA(aA({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 ZP(t,this.getAxisMotionValue(t),0,e)},t.prototype.stopAnimation=function(){var t=this;jR((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;jR((function(n){if(rD(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]-$M(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(SA(i)&&a&&this.constraints){this.stopAnimation();var o={x:0,y:0};jR((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=AR(n),(s=AR(r))>a?i=KM(r.min,r.max-a,n.min):a>s&&(i=KM(n.min,n.max-s,r.min)),VM(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(),jR((function(t){if(rD(t,r,null)){var n=e.getAxisMotionValue(t),i=e.constraints[t],a=i.min,s=i.max;n.set($M(a,s,o[t]))}}))}},t.prototype.addListeners=function(){var t,e=this;eD.set(this.visualElement,this);var n=PM(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(){SA(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=bM(window,"resize",(function(){return e.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(t){var n=t.delta,r=t.hasLayoutChanged;e.isDragging&&r&&(jR((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?NR:l,f=t.dragMomentum,d=void 0===f||f;return aA(aA({},t),{drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:d})},t}();function rD(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var iD={pan:kP((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(vA).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)})),RM(a,"pointerdown",o&&function(t){s.current=new _R(t,l,{transformPagePoint:u})}),BM((function(){return s.current&&s.current.end()}))})),drag:kP((function(t){var e=t.dragControls,n=t.visualElement,r=LA((function(){return new nD(n)}));ki.exports.useEffect((function(){return e&&e.subscribe(r)}),[r,e]),ki.exports.useEffect((function(){return r.addListeners()}),[r])}))},aD=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var oD=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=aD.map((function(){return new JP})),e={},n={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){aD.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"+aD[e]]=function(e){return t.add(e)},n["notify"+aD[e]]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.notify.apply(t,uA([],sA(e),!1))}})),n}(),S=new Map,E=new Map,C={},A=aA({},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&&GO.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]&&JA(L)&&L.set(x[D],!1)}var I=OA(h),N=PA(h),F=aA(aA({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(),qO.update(O),qO.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=eR(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&&!JA(e))return e}return A[t]}},k),{build:function(){return M(),w},scheduleRender:function(){GO.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(JA(a))t.addValue(i,a);else if(JA(o))t.addValue(i,eR(a));else if(o!==a)if(t.hasValue(i)){var s=t.getValue(i);!s.hasAnimated&&s.set(a)}else t.addValue(i,eR(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<uD;r++){var i=sD[r],a=h[i];(AA(a)||!1===a)&&(n[i]=a)}return n}});return F}},sD=uA(["initial"],sA(hR),!1),uD=sD.length;function lD(t){return"string"==typeof t&&t.startsWith("var(--")}var cD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function fD(t,e,n){var r=sA(function(t){var e=cD.exec(t);if(!e)return[,];var n=sA(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():lD(a)?fD(a,e):a}}var dD,hD=new Set(["width","height","top","left","right","bottom","x","y"]),pD=function(t){return hD.has(t)},vD=function(t,e){t.set(e,!1),t.set(e)},gD=function(t){return t===lT||t===vT};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(dD||(dD={}));var mD=function(t,e){return parseFloat(t.split(", ")[e])},yD=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 mD(a[1],e);var o=i.match(/^matrix\((.+)\)$/);return o?mD(o[1],t):0}},bD=new Set(["x","y","z"]),_D=GA.filter((function(t){return!bD.has(t)}));var xD={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:yD(4,13),y:yD(5,14)},wD=function(t,e,n,r){void 0===n&&(n={}),void 0===r&&(r={}),e=aA({},e),r=aA({},r);var i=Object.keys(e).filter(pD),a=[],o=!1,s=[];if(i.forEach((function(i){var u=t.getValue(i);if(t.hasValue(i)){var l,c=n[i],f=iR(c),d=e[i];if(cM(d)){var h=d.length,p=null===d[0]?1:0;c=d[p],f=iR(c);for(var v=p;v<h;v++)l?iR(d[v]):l=iR(d[v])}else l=iR(d);if(f!==l)if(gD(f)&&gD(l)){var g=u.get();"string"==typeof g&&u.set(parseFloat(g)),"string"==typeof d?e[i]=parseFloat(d):Array.isArray(d)&&l===vT&&(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 _D.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],vD(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]=xD[t](r,a)})),e.syncRender();var u=e.measureViewportBox();return n.forEach((function(n){var r=e.getValue(n);vD(r,s[n]),t[n]=xD[n](u,a)})),t}(e,t,s);return a.length&&a.forEach((function(e){var n=sA(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 kD(t,e,n,r){return function(t){return Object.keys(t).some(pD)}(e)?wD(t,e,n,r):{target:e,transitionEnd:r}}var SD=function(t,e,n,r){var i=function(t,e,n){var r,i=oA(e,[]),a=t.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var o in n&&(n=aA({},n)),t.forEachValue((function(t){var e=t.get();if(lD(e)){var n=fD(e,a);n&&t.set(n)}})),i){var s=i[o];if(lD(s)){var u=fD(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 kD(t,e=i.target,n,r=i.transitionEnd)};var ED={treeType:"dom",readValueFromInstance:function(t,e){if(XA(e)){var n=jP(e);return n&&n.default||0}var r,i=(r=t,window.getComputedStyle(r));return(eT(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 tD(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=oA(e,["transition","transitionEnd"]),u=function(t,e,n){var r,i,a={};for(var o in t)a[o]=null!==(r=uR(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&&(XP(d)||KP(d))?d=parseFloat(d):!oR(d)&&DT.test(f)&&(d=BP(c,f)),t.addValue(c,eR(d)),null!==(a=(o=n)[c])&&void 0!==a||(o[c]=d),t.setBaseTarget(c,d))}}(t,s,u);var l=SD(t,s,u,o);o=l.transitionEnd,s=l.target}return aA({transition:a,transitionEnd:o},s)},scrapeMotionValuesFromProps:sM,build:function(t,e,n,r,i){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),BT(e,n,r,i.transformTemplate)},render:iM},CD=oD(ED),AD=oD(aA(aA({},ED),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return XA(e)?(null===(n=jP(e))||void 0===n?void 0:n.default)||0:(e=aM.has(e)?e:rM(e),t.getAttribute(e))},scrapeMotionValuesFromProps:uM,build:function(t,e,n,r,i){QT(e,n,r,i.transformTemplate)},render:oM})),TD=function(t,e){return UA(t)?AD(e,{enableHardwareAcceleration:!1}):CD(e,{enableHardwareAcceleration:!0})};function MD(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var OD={correct:function(t,e){if(!e.target)return t;if("string"==typeof t){if(!vT.test(t))return t;t=parseFloat(t)}var n=MD(t,e.target.x),r=MD(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}},PD="_$css",RD={correct:function(t,e){var n=e.treeScale,r=e.projectionDelta,i=t,a=t.includes("var("),o=[];a&&(t=t.replace(cD,(function(t){return o.push(t),PD})));var s=DT.parse(t);if(s.length>5)return i;var u=DT.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=$M(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(PD,(function(){var t=o[p];return p++,t}))}return h}},DD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iA(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=LD,Object.assign(WA,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(aA(aA({},s.options),{onExitComplete:function(){return e.safeToRemove()}}))),IA.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()||GO.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 LD={borderRadius:aA(aA({},OD),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:OD,borderTopRightRadius:OD,borderBottomLeftRadius:OD,borderBottomRightRadius:OD,boxShadow:RD},ID={measureLayout:function(t){var e=sA(AP(),2),n=e[0],r=e[1],i=ki.exports.useContext(FA);return _k(DD,_i({},aA({},t,{layoutGroup:i,switchLayoutGroup:ki.exports.useContext(zA),isPresent:n,safeToRemove:r})))}};var ND=["TopLeft","TopRight","BottomLeft","BottomRight"],FD=ND.length,zD=function(t){return"string"==typeof t?parseFloat(t):t},jD=function(t){return"number"==typeof t||vT.test(t)};function BD(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}var VD=UD(0,.5,CO),HD=UD(.5,.95,xO);function UD(t,e,n){return function(r){return r<t?0:r>e?1:n(KM(t,e,r))}}function WD(t,e){t.min=e.min,t.max=e.max}function YD(t,e){WD(t.x,e.x),WD(t.y,e.y)}function GD(t,e,n,r,i){return t=YR(t-=e,1/n,r),void 0!==i&&(t=YR(t,1/i,r)),t}function qD(t,e,n,r,i){var a=sA(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),pT.test(e)&&(e=parseFloat(e),e=$M(o.min,o.max,e/100)-o.min),"number"==typeof e){var s=$M(a.min,a.max,r);t===a&&(s-=e),t.min=GD(t.min,e,n,s,i),t.max=GD(t.max,e,n,s,i)}}(t,e[o],e[s],e[u],e.scale,r,i)}var ZD=["x","scaleX","originX"],XD=["y","scaleY","originY"];function KD(t,e,n,r){qD(t.x,e,ZD,null==n?void 0:n.x,null==r?void 0:r.x),qD(t.y,e,XD,null==n?void 0:n.y,null==r?void 0:r.y)}function $D(t){return 0===t.translate&&1===t.scale}function QD(t){return $D(t.x)&&$D(t.y)}function JD(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 tL=function(){function t(){this.members=[]}return t.prototype.add=function(t){$P(this.members,t),t.scheduleRender()},t.prototype.remove=function(t){if(QP(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 eL(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 nL=function(t,e){return t.depth-e.depth},rL=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){$P(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){QP(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(nL),this.isDirty=!1,this.children.forEach(t)},t}();function iL(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(fL),i.nodes.forEach(dL)},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?uA(uA([],sA(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 rL)}return t.prototype.addEventListener=function(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new JP),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,uA([],sA(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),IA.hasAnimatedSinceResize&&(IA.hasAnimatedSinceResize=!1,i.nodes.forEach(cL))}))}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:yL,h=u.getProps(),p=h.onLayoutAnimationStart,v=h.onLayoutAnimationComplete,g=!i.targetLayout||!JD(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=aA(aA({},qP(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,qO.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(hL))},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(uL);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(bL),this.potentialNodes.clear()),this.nodes.forEach(lL),this.nodes.forEach(aL),this.nodes.forEach(oL),this.clearAllSnapshots(),ZO.update(),ZO.preRender(),ZO.render())},t.prototype.clearAllSnapshots=function(){this.nodes.forEach(sL),this.sharedNodes.forEach(pL)},t.prototype.scheduleUpdateProjection=function(){GO.preRender(this.updateProjection,!1,!0)},t.prototype.scheduleCheckAfterUnmount=function(){var t=this;GO.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));xL(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();xL(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&&!QD(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||UR(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&&(XR(e.x,n.x),XR(e.y,n.y)),e},t.prototype.removeElementScroll=function(t){var e={x:{min:0,max:0},y:{min:0,max:0}};YD(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){YD(e,t);var s=this.root.scroll;s&&(XR(e.x,-s.x),XR(e.y,-s.y))}XR(e.x,i.x),XR(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}};YD(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&&JR(n,{x:-i.scroll.x,y:-i.scroll.y}),UR(i.latestValues)&&JR(n,i.latestValues)}return UR(this.latestValues)&&JR(n,this.latestValues),n},t.prototype.removeTransform=function(t){var e,n={x:{min:0,max:0},y:{min:0,max:0}};YD(n,t);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&UR(i.latestValues)){HR(i.latestValues)&&i.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};YD(a,i.measure()),KD(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layout,a)}}return UR(this.latestValues)&&KD(n,this.latestValues),n},t.prototype.setTargetDelta=function(t){this.targetDelta=t,this.root.scheduleUpdateProjection()},t.prototype.setOptions=function(t){var e;this.options=aA(aA(aA({},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}},DR(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),YD(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,PR(e.x,n.x,r.x),PR(e.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):YD(this.target,this.layout.actual),ZR(this.target,this.targetDelta)):YD(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}},DR(this.relativeTargetOrigin,this.target,this.relativeParent.target),YD(this.relativeTarget,this.relativeTargetOrigin)))))},t.prototype.getClosestProjectingParent=function(){if(this.parent&&!UR(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();YD(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&&JR(t,{x:-s.scroll.x,y:-s.scroll.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,ZR(t,u)),r&&UR(s.latestValues)&&JR(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;OR(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=eL(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=aA({},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(mL));this.animationProgress=0,this.mixTargetDelta=function(e){var n,i=e/1e3;vL(s.x,t.x,i),vL(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)&&(DR(u,r.layout.actual,r.relativeParent.layout.actual),function(t,e,n,r){gL(t.x,e.x,n.x,r),gL(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=$M(0,null!==(o=n.opacity)&&void 0!==o?o:1,VD(r)),t.opacityExit=$M(null!==(s=e.opacity)&&void 0!==s?s:1,0,HD(r))):a&&(t.opacity=$M(null!==(u=e.opacity)&&void 0!==u?u:1,null!==(l=n.opacity)&&void 0!==l?l:1,r));for(var c=0;c<FD;c++){var f="border".concat(ND[c],"Radius"),d=BD(e,f),h=BD(n,f);void 0===d&&void 0===h||(d||(d=0),h||(h=0),0===d||0===h||jD(d)===jD(h)?(t[f]=Math.max($M(zD(d),zD(h),r),0),(pT.test(h)||pT.test(d))&&(t[f]+="%")):t[f]=h)}(e.rotate||n.rotate)&&(t.rotate=$M(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&&(qO.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=GO.update((function(){IA.hasAnimatedSinceResize=!0,r.currentAnimation=function(t,e,n){void 0===n&&(n={});var r=JA(t)?t:eR(t);return ZP("",r,e,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,1e3,aA(aA({},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&&(YD(e,n),JR(e,i),OR(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 tL),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<YA.length;r++){var i="rotate"+YA[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=dM(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=dM(t.pointerEvents)||""),this.hasProjected&&!UR(this.latestValues)&&(c.transform=u?u({},""):"none",this.hasProjected=!1),c}var f=l.animationValues||l.latestValues;this.applyTransformsToTarget(),s.transform=eL(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,WA)if(void 0!==f[v]){var g=WA[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?dM(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(uL),this.root.sharedNodes.clear()},t}()}function aL(t){t.updateLayout()}function oL(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?jR((function(t){var e=a.isShared?a.measured[t]:a.layout[t],n=AR(e);e.min=s[t].min,e.max=e.min+n})):"position"===t.options.animationType&&jR((function(t){var e=a.isShared?a.measured[t]:a.layout[t],n=AR(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}};OR(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?OR(c,t.applyTransform(u,!0),a.measured):OR(c,s,a.layout);var f=!QD(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}};DR(g,a.layout,p.layout);var m={x:{min:0,max:0},y:{min:0,max:0}};DR(m,s,v.actual),JD(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 sL(t){t.clearSnapshot()}function uL(t){t.clearMeasurements()}function lL(t){var e=t.options.visualElement;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notifyBeforeLayoutMeasure(),t.resetTransform()}function cL(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function fL(t){t.resolveTargetDelta()}function dL(t){t.calcProjection()}function hL(t){t.resetRotation()}function pL(t){t.removeLeadSnapshot()}function vL(t,e,n){t.translate=$M(e.translate,0,n),t.scale=$M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function gL(t,e,n,r){t.min=$M(e.min,n.min,r),t.max=$M(e.max,n.max,r)}function mL(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var yL={duration:.45,ease:[.4,0,.1,1]};function bL(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 _L(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function xL(t){_L(t.x),_L(t.y)}var wL=iL({attachResizeListener:function(t,e){return bM(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),kL={current:void 0},SL=iL({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!kL.current){var t=new wL(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),kL.current=t}return kL.current},resetTransform:function(t,e){t.style.transform=null!=e?e:"none"},checkIsScrollRoot:function(t){return Boolean("fixed"===window.getComputedStyle(t).position)}}),EL=aA(aA(aA(aA({},bR),SP),iD),ID),CL=hi("m",VA((function(t,e){return function(t,e,n,r,i){var a=e.forwardMotionProps,o=void 0!==a&&a,s=UA(t)?mM:yM;return aA(aA({},s),{preloadedFeatures:n,useRender:eM(o),createVisualElement:r,projectionNodeConstructor:i,Component:t})}(t,e,EL,TD,SL)}))),AL=Object.defineProperty,TL=function(t,e,n){return function(t,e,n){e in t?AL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},ML={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"},OL={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"},PL={colorBlue70:"#0056D3"},RL=Object.freeze(Object.defineProperty({__proto__:null,primaryColors:ML,neutralColors:OL,blueColors:PL},Symbol.toStringTag,{value:"Module"})),DL={"--ll-color-primary":ML.colorPrimary50,"--ll-color-primary-variant1":ML.colorPrimary40,"--ll-color-background":OL.colorNeutral100,"--ll-color-surface":OL.colorNeutral95,"--ll-color-surface-variant1":OL.colorNeutral90,"--ll-color-surface-variant2":OL.colorNeutral80,"--ll-color-on-primary":OL.colorNeutral100,"--ll-color-on-primary-variant1":OL.colorNeutral90,"--ll-color-on-background":OL.colorNeutral10,"--ll-color-on-background-variant1":OL.colorNeutral30,"--ll-color-on-surface":OL.colorNeutral10,"--ll-color-on-surface-variant1":OL.colorNeutral30,"--ll-color-placeholder":OL.colorNeutral60,"--ll-color-disabled":OL.colorNeutral60,"--ll-color-border":OL.colorNeutral90,"--ll-color-link":PL.colorBlue70},LL={"--ll-border-radius-small":"".concat(4,"px"),"--ll-border-radius-medium":"".concat(8,"px"),"--ll-border-radius-large":"".concat(16,"px")},IL={"--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)"},NL=_i(_i(_i(_i(_i(_i(_i({},DL),LL),{"--ll-shadow-small":"rgb(0 0 0 / 18%) 0px 2px 5px","--ll-shadow-medium":"0px 5px 11px -4px rgba(0,0,0,0.75)"}),IL),{"--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"}),FL=_i(_i({},NL),{},{"--ll-color-primary":ML.colorPrimary60,"--ll-color-primary-variant1":ML.colorPrimary50,"--ll-color-background":OL.colorNeutral10,"--ll-color-surface":OL.colorNeutral20,"--ll-color-surface-variant1":OL.colorNeutral30,"--ll-color-surface-variant2":OL.colorNeutral40,"--ll-color-on-primary":OL.colorNeutral100,"--ll-color-on-primary-variant1":OL.colorNeutral90,"--ll-color-on-background":OL.colorNeutral99,"--ll-color-on-background-variant1":OL.colorNeutral80,"--ll-color-on-surface":OL.colorNeutral80,"--ll-color-on-surface-variant1":OL.colorNeutral90,"--ll-color-placeholder":OL.colorNeutral70,"--ll-color-disabled":OL.colorNeutral70,"--ll-color-border":OL.colorNeutral30,"--ll-color-link":PL.colorBlue70}),zL=Object.keys(NL).reduce((function(t,e){return _i(_i({},t),{},xi({},e,"var(".concat(e,")")))}),{}),jL={day:NL,night:FL},BL=eA(t||(t=ci(["\n :root {\n ",";\n }\n"])),(function(t){var e=t.themeName,n=t.overrides;return _i(_i({},jL[e||"day"]),n)})),VL={default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}},HL=Object.freeze(Object.defineProperty({__proto__:null,transitions:VL},Symbol.toStringTag,{value:"Module"})),UL={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},WL=Object.freeze(Object.defineProperty({__proto__:null,screenSizes:UL},Symbol.toStringTag,{value:"Module"})),YL=_i(_i({colors:RL},HL),WL);JC.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}),zL["--ll-border-radius-small"],zL["--ll-font-family"],zL["--ll-font-size-caption-1"],(function(t){var i=t.$size;return"small"===i?KC(e||(e=ci(["\n padding: calc("," / 2) ",";\n "])),zL["--ll-spacing-xx-small"],zL["--ll-spacing-xx-small"]):"large"===i?KC(n||(n=ci(["\n padding: calc("," / 2) ",";\n font-size: ",";\n line-height: ",";\n "])),zL["--ll-spacing-small"],zL["--ll-spacing-medium"],zL["--ll-font-size-p"],zL["--ll-font-size-h6"]):KC(r||(r=ci(["\n padding: "," ",";\n "])),zL["--ll-spacing-xx-small"],zL["--ll-spacing-x-small"])})),hi({K:4,_:zL,c:YL});var GL,qL={exports:{}},ZL={};
|
|
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
|
-
*/qL.exports=function(){if(GL)return ZL;GL=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 ZL.Fragment=n,ZL.jsx=o,ZL.jsxs=o,ZL}();var XL=qL.exports.Fragment,KL=qL.exports.jsx,$L=qL.exports.jsxs,QL=JC.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})),JL=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 KL(QL,{fill:r,height:a,width:void 0===o?24:o,children:KL(e,{})})},tI=function(t){var e=t.$variant;return"h1"===e?zL["--ll-font-size-h1"]:"h2"===e?zL["--ll-font-size-h2"]:"h3"===e?zL["--ll-font-size-h3"]:"h4"===e?zL["--ll-font-size-h4"]:"h5"===e?zL["--ll-font-size-h5"]:"h6"===e?zL["--ll-font-size-h6"]:"p"===e?zL["--ll-font-size-p"]:"caption1"===e?zL["--ll-font-size-caption-1"]:"caption2"===e?zL["--ll-font-size-caption-2"]:zL["--ll-font-size-h2"]},eI=function(t){var e=t.$color;return e in zL?zL[e]:e},nI=JC.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"})),rI=JC.div(s||(s=ci(["\n ","\n"])),(function(t){return KC(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,tI(t),"sans-serif"===t.$family?zL["--ll-font-family"]:zL["--ll-font-family-mono"],t.$fontVariant,t.$letterSpacing,eI(t),zL[t.$weight],tI(t),eI(t),nI,t.$lineClamp&&KC(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))})),iI=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 KL(rI,{$variant:r,$align:i,$color:o,$lineClamp:s,$weight:f,$family:h,$fontVariant:g,$letterSpacing:m,children:KL(nI,{as:y,className:p,$noMargin:u,$lineHeight:l,children:e})})};function aI(){return aI=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},aI.apply(this,arguments)}function oI(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,sI.apply(void 0,[i].concat(mi(e)))]}function sI(){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 uI(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}function lI(){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 uI(e,t)}))}}function cI(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ki.exports.useCallback(lI.apply(void 0,e),e)}JC.a(c||(c=ci(["\n font-family: ",";\n font-size: ",";\n color: ",";\n cursor: pointer;\n\n ","\n"])),zL["--ll-font-family"],zL["--ll-font-size-p"],zL["--ll-color-link"],(function(t){var e=t.lineClamp;return e&&KC(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:JL,o:iI});var fI=ki.exports.forwardRef((function(t,e){var n=t.children,r=fi(t,an),i=ki.exports.Children.toArray(n),a=i.find(pI);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(dI,aI({},r,{ref:e}),ki.exports.isValidElement(o)?ki.exports.cloneElement(o,void 0,s):null)}return ki.exports.createElement(dI,aI({},r,{ref:e}),n)}));fI.displayName="Slot";var dI=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:lI(e,n.ref)})):ki.exports.Children.count(n)>1?ki.exports.Children.only(null):null}));dI.displayName="SlotClone";var hI=function(t){var e=t.children;return ki.exports.createElement(ki.exports.Fragment,null,e)};function pI(t){return ki.exports.isValidElement(t)&&t.type===hI}var vI=["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?fI:e;return ki.exports.useEffect((function(){window[Symbol.for("radix-ui")]=!0}),[]),ki.exports.createElement(a,aI({},i,{ref:n}))}));return n.displayName="Primitive.".concat(e),_i(_i({},t),{},xi({},e,n))}),{});var gI=Boolean(null==globalThis?void 0:globalThis.document)?ki.exports.useLayoutEffect:function(){},mI=va["useId".toString()]||function(){},yI=0;function bI(t){var e=wi(ki.exports.useState(mI()),2),n=e[0],r=e[1];return gI((function(){t||r((function(t){return null!=t?t:String(yI++)}))}),[t]),t||(n?"radix-".concat(n):"")}var _I=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}}),xI=wi(_I,2),wI=xI[0],kI=xI[1],SI=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=cI(e,o),u=bI(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(wI,{id:u,controlRef:a},ki.exports.createElement(vI.span,aI({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())}}})))})),EI=function(t){var e=kI("LabelConsumer"),n=e.controlRef;return ki.exports.useEffect((function(){t&&(n.current=t)}),[t,n]),e.id},CI=JC(SI)(d||(d=ci(["\n font-size: ",";\n font-family: ",";\n color: ",";\n"])),zL["--ll-font-size-p"],zL["--ll-font-family"],zL["--ll-color-placeholder"]),AI=function(t){return KL(CI,_i({},t))},TI=0,MI=nA(h||(h=ci(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),OI={small:16,medium:24,large:32},PI=JC.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 OI[e]}),(function(t){var e=t.size;return OI[e]}),(function(t){var e=t.size;return OI[e]/6}),zL["--ll-color-on-surface-variant1"],MI),RI=function(t){var e=t.size;return KL(PI,{size:void 0===e?"medium":e})},DI={primary:{background:zL["--ll-color-primary"],onBackground:zL["--ll-color-on-primary"],hover:zL["--ll-color-primary-variant1"]}},LI=function(t){var e=t.size;return"".concat("small"===e?32:"large"===e?48:40,"px")},II=KC(v||(v=ci(["\n color: ",";\n\n &:disabled {\n cursor: default;\n }\n\n height: ",";\n"])),zL["--ll-color-on-background"],LI),NI=KC(g||(g=ci(["\n ",";\n height: ",";\n"])),(function(t){var e=t.color,n=void 0===e?"primary":e;return KC(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 "])),DI[n].background,DI[n].onBackground,DI[n].hover,zL["--ll-color-disabled"])}),LI),FI=KC(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 KC(b||(b=ci(["\n border-color: ",";\n border-width: 1px;\n border-style: solid;\n color: ",";\n "])),DI[n].background,DI[n].background)}),LI),zI=JC.div(_||(_=ci(["\n display: flex;\n align-items: center;\n margin-right: ",";\n margin-left: calc(-1 * ",");\n"])),zL["--ll-spacing-x-small"],zL["--ll-spacing-xx-small"]),jI=JC.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"])),zL["--ll-font-weight-normal"],zL["--ll-border-radius-small"],(function(t){return{contained:NI,outlined:FI,text:II}[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?zL["--ll-font-size-caption-1"]:zL["--ll-font-size-p"])}),(function(t){var e=t.size;return"padding: 0 ".concat("small"===e?zL["--ll-spacing-x-small"]:"large"===e?zL["--ll-spacing-medium"]:zL["--ll-spacing-small"])})),BI=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 KL(jI,{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?KL(RI,{}):$L(XL,{children:[u&&KL(zI,{children:u}),n]})})}));hi({l:RI,U:BI}),BI.displayName="Button";var VI=JC.div(w||(w=ci(["\n display: flex;\n flex-direction: column;\n"]))),HI=JC.div(k||(k=ci(["\n position: relative;\n"]))),UI=JC(BI)(S||(S=ci(["\n position: absolute;\n right: 0px;\n top: 0px;\n"]))),WI=JC.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"])),zL["--ll-border-radius-small"],zL["--ll-spacing-x-small"],zL["--ll-font-size-p"],zL["--ll-font-family"],zL["--ll-color-on-background"],zL["--ll-color-background"],zL["--ll-color-border"],zL["--ll-spacing-medium"],zL["--ll-shadow-small"],UL.tablet,zL["--ll-font-size-h6"]),YI=function(t){return _k("svg",_i(_i({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},GI=(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(TI+=1)})),1)[0],d=ki.exports.useMemo((function(){return n?KL(AI,{htmlFor:f,style:{lineHeight:"26px"},children:n}):null}),[n]);return $L(VI,{children:[d,$L(HI,{children:[KL(WI,{autoFocus:o,className:i,id:f,value:e,onBlur:s,onFocus:u,onChange:c,placeholder:r}),l&&KL(UI,{size:"small",variant:"text",onClick:l,children:KL(YI,{})})]})]})})),{small:20,medium:32,large:40});function qI(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 ZI(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 XI(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=ZI(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=ZI(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 KI(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 $I(t){var e=wi(ki.exports.useState(void 0),2),n=e[0],r=e[1];return gI((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}JC(CL.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 GI[e]}),(function(t){var e=t.$size;return GI[e]}),zL["--ll-shadow-small"]);var QI="Switch",JI=wi(oI(QI),2),tN=JI[0],eN=(JI[1],wi(tN(QI),2)),nN=eN[0],rN=eN[1],iN=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=cI(e,(function(t){return v(t)})),m=EI(p),y=r||m,b=ki.exports.useRef(!1),_=!p||Boolean(p.closest("form")),x=wi(XI({prop:a,defaultProp:o,onChange:f}),2),w=x[0],k=void 0!==w&&w,S=x[1];return ki.exports.createElement(nN,{scope:n,checked:k,disabled:u},ki.exports.createElement(vI.button,aI({type:"button",role:"switch","aria-checked":k,"aria-labelledby":y,"aria-required":s,"data-state":sN(k),"data-disabled":u?"":void 0,disabled:u,value:c},d,{ref:g,onClick:qI(t.onClick,(function(t){S((function(t){return!t})),_&&(b.current=t.isPropagationStopped(),b.current||t.stopPropagation())}))})),_&&ki.exports.createElement(oN,{control:p,bubbles:!b.current,name:i,value:c,checked:k,required:s,disabled:u,style:{transform:"translateX(-100%)"}}))})),aN=ki.exports.forwardRef((function(t,e){var n=t.__scopeSwitch,r=fi(t,cn),i=rN("SwitchThumb",n);return ki.exports.createElement(vI.span,aI({"data-state":sN(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:e}))})),oN=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=KI(n),u=$I(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",aI({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 sN(t){return t?"checked":"unchecked"}var uN=aN,lN=JC(iN)(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"])),zL["--ll-color-disabled"],zL["--ll-color-on-background"]),cN=JC(uN)(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'])),zL["--ll-color-background"]);hi("a5",(function(t){return KL(lN,_i(_i({},t),{},{children:KL(cN,{})}))}));function fN(t,e){var n=wi(e,2),r=n[0],i=n[1];return Math.min(i,Math.max(r,t))}var dN=ki.exports.createContext(void 0);function hN(t){var e=ki.exports.useContext(dN);return t||e||"ltr"}function pN(t){var e=t+"CollectionProvider",n=wi(oI(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=cI(e,s(u,n).collectionRef);return pa.createElement(fI,{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=cI(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(fI,(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 vN=["PageUp","PageDown"],gN=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mN={ltr:["ArrowDown","Home","ArrowLeft","PageDown"],rtl:["ArrowDown","Home","ArrowRight","PageDown"]},yN="Slider",bN=wi(pN(yN),3),_N=bN[0],xN=bN[1],wN=bN[2],kN=wi(oI(yN,[wN]),2),SN=kN[0],EN=(kN[1],wi(SN(yN),2)),CN=EN[0],AN=EN[1],TN=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=cI(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?RN:DN,O=XI({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=fN(r,[i,o]);L((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=HN(t,a,e);return WN(n,p*u)?(C.current=n.indexOf(a),String(n)===String(t)?t:n):t}))}return ki.exports.createElement(CN,{scope:t.__scopeSlider,disabled:d,min:i,max:o,valueIndexToChangeRef:C,thumbs:E.current,values:D,orientation:c},ki.exports.createElement(_N.Provider,{scope:t.__scopeSlider},ki.exports.createElement(_N.Slot,{scope:t.__scopeSlider},ki.exports.createElement(M,aI({"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=vN.includes(e.key)||e.shiftKey&&gN.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(VN,{key:e,name:n?n+(D.length>1?"[]":""):void 0,value:t})})))})),MN=wi(SN(yN,{startEdge:"left",endEdge:"right",size:"width",direction:1}),2),ON=MN[0],PN=MN[1],RN=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=cI(e,(function(t){return f(t)})),h=ki.exports.useRef(),p=hN(i),v="ltr"===p;function g(t){var e=h.current||c.getBoundingClientRect(),i=YN([0,e.width],v?[n,r]:[r,n]);return h.current=e,i(t-e.left)}return ki.exports.createElement(ON,{scope:t.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width"},ki.exports.createElement(LN,aI({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=mN[p].includes(t.key);null==s||s({event:t,direction:e?-1:1})}})))})),DN=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=cI(e,u),c=ki.exports.useRef();function f(t){var e=c.current||u.current.getBoundingClientRect(),i=YN([0,e.height],[r,n]);return c.current=e,i(t-e.top)}return ki.exports.createElement(ON,{scope:t.__scopeSlider,startEdge:"bottom",endEdge:"top",size:"height",direction:1},ki.exports.createElement(LN,aI({"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=mN.ltr.includes(t.key);null==o||o({event:t,direction:e?-1:1})}})))})),LN=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=AN(yN,n);return ki.exports.createElement(vI.span,aI({},l,{ref:e,onKeyDown:qI(t.onKeyDown,(function(t){"Home"===t.key?(o(t),t.preventDefault()):"End"===t.key?(s(t),t.preventDefault()):vN.concat(gN).includes(t.key)&&(u(t),t.preventDefault())})),onPointerDown:qI(t.onPointerDown,(function(t){var e=t.target;e.setPointerCapture(t.pointerId),t.preventDefault(),c.thumbs.has(e)?e.focus():r(t)})),onPointerMove:qI(t.onPointerMove,(function(t){t.target.hasPointerCapture(t.pointerId)&&i(t)})),onPointerUp:qI(t.onPointerUp,(function(t){var e=t.target;e.hasPointerCapture(t.pointerId)&&(e.releasePointerCapture(t.pointerId),a(t))}))}))})),IN=ki.exports.forwardRef((function(t,e){var n=t.__scopeSlider,r=fi(t,mn),i=AN("SliderTrack",n);return ki.exports.createElement(vI.span,aI({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},r,{ref:e}))})),NN="SliderRange",FN=ki.exports.forwardRef((function(t,e){var n,r=t.__scopeSlider,i=fi(t,yn),a=AN(NN,r),o=PN(NN,r),s=cI(e,ki.exports.useRef(null)),u=a.values.length,l=a.values.map((function(t){return UN(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(vI.span,aI({"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))}))})),zN="SliderThumb",jN=ki.exports.forwardRef((function(t,e){var n=xN(t.__scopeSlider),r=wi(ki.exports.useState(null),2),i=r[0],a=r[1],o=cI(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(BN,aI({},t,{ref:o,index:s}))})),BN=ki.exports.forwardRef((function(t,e){var n=t.__scopeSlider,r=t.index,i=fi(t,bn),a=AN(zN,n),o=PN(zN,n),s=wi(ki.exports.useState(null),2),u=s[0],l=s[1],c=cI(e,(function(t){return l(t)})),f=$I(u),d=a.values[r],h=void 0===d?0:UN(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=YN([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(_N.ItemSlot,{scope:t.__scopeSlider},ki.exports.createElement(vI.span,aI({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:qI(t.onFocus,(function(){a.valueIndexToChangeRef.current=r}))}))))})),VN=function(t){var e=t.value,n=fi(t,_n),r=ki.exports.useRef(null),i=KI(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",aI({style:{display:"none"}},n,{ref:r,defaultValue:e}))};function HN(){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 UN(t,e,n){return 100/(n-e)*(t-e)}function WN(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 YN(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 GN=TN,qN=IN,ZN=FN,XN=jN,KN=JC.div(M||(M=ci([""]))),$N=JC.div(O||(O=ci(["\n display: flex;\n align-items: center;\n"]))),QN=JC(GN)(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"]))),JN=JC(XN)(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"])),zL["--ll-color-primary"],zL["--ll-shadow-medium"]),tF=JC(qN)(D||(D=ci(["\n height: 4px;\n border-radius: 2px;\n background-color: ",";\n position: relative;\n flex: 1;\n"])),zL["--ll-color-surface-variant1"]),eF=JC(ZN)(L||(L=ci(["\n height: 100%;\n position: absolute;\n background-color: ",";\n border-radius: 2px;\n"])),zL["--ll-color-primary"]),nF=JC.div(I||(I=ci(["\n margin: ",";\n flex-shrink: 0;\n"])),(function(t){return function(t){var e=t.$vertical,n=t.$spacing,r=zL[n];return e?"".concat(r," 0 0 0"):"0 ".concat(r," 0 0")}(t)})),rF=function(t){var e=t.vertical,n=void 0!==e&&e,r=t.spacing;return KL(nF,{$vertical:n,$spacing:void 0===r?"--ll-spacing-auto":r})},iF={primary:{background:zL["--ll-color-primary"],onBackground:zL["--ll-color-on-primary"],hover:zL["--ll-color-primary-variant1"]},inverse:{background:"transparent",onBackground:zL["--ll-color-primary"],hover:"rgba(0,0,0,0.05)"},neutral:{background:"transparent",onBackground:zL["--ll-color-on-background-variant1"],hover:"rgba(0,0,0,0.05)"}},aF={small:24,medium:32,large:48},oF=JC.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 KC(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 "])),iF[n].background,iF[n].onBackground,aF[i],aF[i],iF[n].hover,zL["--ll-color-on-background-variant1"])}));hi({V:rF,aa:function(t){var e=t.label,n=t.showValue,r=fi(t,xn);return $L(KN,{children:[e&&KL(AI,{style:{lineHeight:"50px"},children:e}),$L($N,{children:[$L(QN,_i(_i({},r),{},{children:[KL(tF,{children:KL(eF,{})}),KL(JN,{})]})),n&&$L(XL,{children:[KL(rF,{spacing:"--ll-spacing-small"}),KL(iI,{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?zL["--ll-color-placeholder"]:iF[c].onBackground}),[c,r]);return KL(oF,{size:o,onClick:function(t){r||!i||f||i(t)},disabled:r||f,className:d,color:c,type:u,children:f?KL(RI,{}):KL(JL,{SVGElement:e,width:aF[o]/1.33333,height:aF[o]/1.33333,fill:h})})}});var sF=nA(j||(j=ci(["\n from {\n background-position: -800px 0;\n }\n\n to {\n background-position: 800px 0;\n }\n"]))),uF=JC.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"])),zL["--ll-border-radius-medium"],sF,zL["--ll-color-surface-variant1"],zL["--ll-color-surface-variant2"],zL["--ll-color-surface-variant1"],(function(t){var e=t.height,n=t.width;return KC(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 KL(uF,{height:e,width:n,className:r})}));JC.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"]))),JC.div(H||(H=ci(["\n display: flex;\n flex-direction: column;\n align-items: center;\n"])));var lF=Object.defineProperty,cF=function(t,e,n){return function(t,e,n){e in t?lF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},fF={},dF={},hF={},pF={
|
|
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(mF),a=r.decode||vF,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]=bF(c,a))}}return n},serialize:function(t,e,n){var r=n||{},i=r.encode||gF;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!yF.test(t))throw new TypeError("argument name is invalid");var a=i(e);if(a&&!yF.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(!yF.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!yF.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}},vF=decodeURIComponent,gF=encodeURIComponent,mF=/; */,yF=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function bF(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(hF,"__esModule",{value:!0});var _F=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}}();hF.hasCookies=function(){var t=new SF;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),"1"===n}catch(r){return!1}};var xF=function(t){return t&&t.__esModule?t:{default:t}}(pF);function wF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var kF="lS_",SF=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};wF(this,t),this.cookieOptions=Object.assign({path:"/"},e),kF=void 0===e.prefix?kF:e.prefix}return _F(t,[{key:"getItem",value:function(t){var e=xF.default.parse(document.cookie);return e&&e.hasOwnProperty(kF+t)?e[kF+t]:null}},{key:"setItem",value:function(t,e){return document.cookie=xF.default.serialize(kF+t,e,this.cookieOptions),e}},{key:"removeItem",value:function(t){var e=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=xF.default.serialize(kF+t,"",e),null}},{key:"clear",value:function(){var t=xF.default.parse(document.cookie);for(var e in t)0===e.indexOf(kF)&&this.removeItem(e.substr(kF.length));return null}}]),t}();hF.default=SF,Object.defineProperty(dF,"__esModule",{value:!0}),dF.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 AF("localStorage");if("session"===e)return AF("sessionStorage");if("cookie"===e)return(0,EF.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 EF=hF,CF="__test";function AF(t){try{var e=window[t];return e.setItem(CF,"1"),e.removeItem(CF),!0}catch(n){return!1}}var TF={};Object.defineProperty(TF,"__esModule",{value:!0});var MF=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 OF=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 MF(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}();TF.default=OF,Object.defineProperty(fF,"__esModule",{value:!0}),fF.MemoryStorage=fF.CookieStorage=fF.isSupported=fF.storage=void 0;var PF=LF(dF),RF=LF(hF),DF=LF(TF);function LF(t){return t&&t.__esModule?t:{default:t}}var IF=null;(0,PF.default)("localStorage")?fF.storage=IF=window.localStorage:(0,PF.default)("sessionStorage")?fF.storage=IF=window.sessionStorage:(0,PF.default)("cookieStorage")?fF.storage=IF=new RF.default:fF.storage=IF=new DF.default;var NF=fF.default=IF;fF.storage=IF,fF.isSupported=PF.default,fF.CookieStorage=RF.default,fF.MemoryStorage=DF.default;var FF=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";Ai(this,t),cF(this,"group"),cF(this,"localStorage"),this.group=e,this.localStorage=NF}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 FF;var zF=function(){function t(){Ai(this,t),cF(this,"storageLocation","suggestion_history"),cF(this,"storage"),cF(this,"history",[]),this.storage=new FF("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 jF(t){return t+.5|0}new zF;var BF=function(t,e,n){return Math.max(Math.min(t,n),e)};function VF(t){return BF(jF(2.55*t),0,255)}function HF(t){return BF(jF(255*t),0,255)}function UF(t){return BF(jF(t/2.55)/100,0,1)}function WF(t){return BF(jF(100*t),0,100)}var YF={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},GF=mi("0123456789ABCDEF"),qF=function(t){return GF[15&t]},ZF=function(t){return GF[(240&t)>>4]+GF[15&t]},XF=function(t){return(240&t)>>4==(15&t)};function KF(t){var e=function(t){return XF(t.r)&&XF(t.g)&&XF(t.b)&&XF(t.a)}(t)?qF:ZF;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 $F=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function QF(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 JF(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 tz(t,e,n){var r,i=QF(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 ez(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 nz(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(HF)}function rz(t,e,n){return nz(QF,t,e,n)}function iz(t){return(t%360+360)%360}function az(t){var e,n=$F.exec(t),r=255;if(n){n[5]!==e&&(r=n[6]?VF(+n[5]):HF(+n[5]));var i=iz(+n[2]),a=+n[3]/100,o=+n[4]/100;return e="hwb"===n[1]?function(t,e,n){return nz(tz,t,e,n)}(i,a,o):"hsv"===n[1]?function(t,e,n){return nz(JF,t,e,n)}(i,a,o):rz(i,a,o),{r:e[0],g:e[1],b:e[2],a:r}}}var oz,sz={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"},uz={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 lz(t){oz||(oz=function(){var t,e,n,r,i,a={},o=Object.keys(uz),s=Object.keys(sz);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,sz[n]);n=parseInt(uz[r],16),a[i]=[n>>16&255,n>>8&255,255&n]}return a}(),oz.transparent=[0,0,0,0]);var e=oz[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}var cz=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var fz=function(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055},dz=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)};function hz(t,e,n){if(t){var r=ez(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=rz(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function pz(t,e){return t&&Object.assign(e||{},t)}function vz(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=HF(t[3]))):(e=pz(t,{r:0,g:0,b:0,a:1})).a=HF(e.a),e}function gz(t){return"r"===t.charAt(0)?function(t){var e,n,r,i=cz.exec(t),a=255;if(i){if(i[7]!==e){var o=+i[7];a=i[8]?VF(o):BF(255*o,0,255)}return e=+i[1],n=+i[3],r=+i[5],{r:e=255&(i[2]?VF(e):BF(e,0,255)),g:n=255&(i[4]?VF(n):BF(n,0,255)),b:r=255&(i[6]?VF(r):BF(r,0,255)),a:a}}}(t):az(t)}var mz=function(){function t(e){if(Ai(this,t),e instanceof t)return e;var n,r=Fi(e);"object"===r?n=vz(e):"string"===r&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*YF[t[1]],g:255&17*YF[t[2]],b:255&17*YF[t[3]],a:5===n?17*YF[t[4]]:255}:(7===n||9===n)&&(e={r:YF[t[1]]<<4|YF[t[2]],g:YF[t[3]]<<4|YF[t[4]],b:YF[t[5]]<<4|YF[t[6]],a:9===n?YF[t[7]]<<4|YF[t[8]]:255})),e}(e)||lz(e)||gz(e)),this._rgb=n,this._valid=!!n}return Ci(t,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var t=pz(this._rgb);return t&&(t.a=UF(t.a)),t},set:function(t){this._rgb=vz(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(UF(t.a),")"):"rgb(".concat(t.r,", ").concat(t.g,", ").concat(t.b,")"))}(this._rgb):void 0}},{key:"hexString",value:function(){return this._valid?KF(this._rgb):void 0}},{key:"hslString",value:function(){return this._valid?function(t){if(t){var e=ez(t),n=e[0],r=WF(e[1]),i=WF(e[2]);return t.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(UF(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=dz(UF(t.r)),i=dz(UF(t.g)),a=dz(UF(t.b));return{r:HF(fz(r+n*(dz(UF(e.r))-r))),g:HF(fz(i+n*(dz(UF(e.g))-i))),b:HF(fz(a+n*(dz(UF(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=HF(t),this}},{key:"clearer",value:function(t){return this._rgb.a*=1-t,this}},{key:"greyscale",value:function(){var t=this._rgb,e=jF(.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 hz(this._rgb,2,t),this}},{key:"darken",value:function(t){return hz(this._rgb,2,-t),this}},{key:"saturate",value:function(t){return hz(this._rgb,1,t),this}},{key:"desaturate",value:function(t){return hz(this._rgb,1,-t),this}},{key:"rotate",value:function(t){return function(t,e){var n=ez(t);n[0]=iz(n[0]+e),n=rz(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 yz(){}var bz=function(){var t=0;return function(){return t++}}();function _z(t){return null===t||Fi(t)>"u"}function xz(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 wz(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function kz(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Sz(t,e){return kz(t)?t:e}function Ez(t,e){return Fi(t)>"u"?e:t}var Cz=function(t,e){return"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t};function Az(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function Tz(t,e,n,r){var i,a,o;if(xz(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(wz(t))for(a=(o=Object.keys(t)).length,i=0;i<a;i++)e.call(n,t[o[i]],o[i])}function Mz(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 Oz(t){if(xz(t))return t.map(Oz);if(wz(t)){for(var e=Object.create(null),n=Object.keys(t),r=n.length,i=0;i<r;++i)e[n[i]]=Oz(t[n[i]]);return e}return t}function Pz(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Rz(t,e,n,r){if(Pz(t)){var i=e[t],a=n[t];wz(i)&&wz(a)?Dz(i,a,r):e[t]=Oz(a)}}function Dz(t,e,n){var r=xz(e)?e:[e],i=r.length;if(!wz(t))return t;for(var a,o=(n=n||{}).merger||Rz,s=0;s<i;++s)if(wz(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 Lz(t,e){return Dz(t,e,{merger:Iz})}function Iz(t,e,n){if(Pz(t)){var r=e[t],i=n[t];wz(r)&&wz(i)?Lz(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Oz(i))}}var Nz={"":function(t){return t},x:function(t){return t.x},y:function(t){return t.y}};function Fz(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 zz(t,e){return(Nz[e]||(Nz[e]=Fz(e)))(t)}function jz(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Bz=function(t){return Fi(t)<"u"},Vz=function(t){return"function"==typeof t},Hz=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 Uz=Math.PI,Wz=2*Uz,Yz=Number.POSITIVE_INFINITY,Gz=Uz/180,qz=Uz/2,Zz=Uz/4,Xz=2*Uz/3,Kz=Math.log10,$z=Math.sign;function Qz(t,e,n){return Math.abs(t-e)<n}function Jz(t){var e=Math.round(t);t=Qz(t,e,t/1e3)?e:t;var n=Math.pow(10,Math.floor(Kz(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function tj(t){return!isNaN(parseFloat(t))&&isFinite(t)}function ej(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 nj(t){return t*(Uz/180)}function rj(t){return t*(180/Uz)}function ij(t){if(kz(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}}function aj(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*Uz&&(a+=Wz),{angle:a,distance:i}}function oj(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function sj(t){return(t%Wz+Wz)%Wz}function uj(t,e,n,r){var i=sj(t),a=sj(e),o=sj(n),s=sj(a-i),u=sj(o-i),l=sj(i-a),c=sj(i-o);return i===a||i===o||r&&a===o||s>u&&l<c}function lj(t,e,n){return Math.max(e,Math.min(n,t))}function cj(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 fj(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 dj=function(t,e,n,r){return fj(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})},hj=function(t,e,n){return fj(t,n,(function(r){return t[r][e]>=n}))};var pj=["push","pop","shift","splice","unshift"];function vj(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)&&(pj.forEach((function(e){delete t[e]})),delete t._chartjs)}}function gj(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 mj=("undefined"==typeof window?"undefined":Fi(window))>"u"?function(t){return t()}:window.requestAnimationFrame;function yj(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,mj.call(window,(function(){r=!1,t.apply(e,n)})))}}var bj=function(t){return"start"===t?"left":"end"===t?"right":"center"},_j=function(t,e,n){return"start"===t?e:"end"===t?n:(e+n)/2},xj=function(t){return 0===t||1===t},wj=function(t,e,n){return-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Wz/n)},kj=function(t,e,n){return Math.pow(2,-10*t)*Math.sin((t-e)*Wz/n)+1},Sj={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*qz)},easeOutSine:function(t){return Math.sin(t*qz)},easeInOutSine:function(t){return-.5*(Math.cos(Uz*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 xj(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 xj(t)?t:wj(t,.075,.3)},easeOutElastic:function(t){return xj(t)?t:kj(t,.075,.3)},easeInOutElastic:function(t){return xj(t)?t:t<.5?.5*wj(2*t,.1125,.45):.5+.5*kj(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-Sj.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*Sj.easeInBounce(2*t):.5*Sj.easeOutBounce(2*t-1)+.5}};function Ej(t){if(t&&"object"==Fi(t)){var e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Cj(t){return Ej(t)?t:new mz(t)}function Aj(t){return Ej(t)?t:new mz(t).saturate(.5).darken(.1).hexString()}var Tj=["x","y","borderWidth","radius","tension"],Mj=["color","borderColor","backgroundColor"];var Oj=new Map;function Pj(t,e,n){return function(t,e){e=e||{};var n=t+JSON.stringify(e),r=Oj.get(n);return r||(r=new Intl.NumberFormat(t,e),Oj.set(n,r)),r}(e,n).format(t)}var Rj={values:function(t){return xz(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=Kz(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),Pj(t,i,l)},logarithmic:function(t,e,n){if(0===t)return"0";var r=n[e].significand||t/Math.pow(10,Math.floor(Kz(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?Rj.numeric.call(this,t,e,n):""}};var Dj={formatters:Rj};var Lj=Object.create(null),Ij=Object.create(null);function Nj(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 Fj(t,e,n){return"string"==typeof e?Dz(Nj(t,e),n):Dz(Nj(t,""),e)}var zj=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 Aj(e.backgroundColor)},this.hoverBorderColor=function(t,e){return Aj(e.borderColor)},this.hoverColor=function(t,e){return Aj(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 Fj(this,t,e)}},{key:"get",value:function(t){return Nj(this,t)}},{key:"describe",value:function(t,e){return Fj(Ij,t,e)}},{key:"override",value:function(t,e){return Fj(Lj,t,e)}},{key:"route",value:function(t,e,n,r){var i,a=Nj(this,t),o=Nj(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 wz(t)?Object.assign({},e,t):Ez(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}(),jj=new zj({_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:Mj},numbers:{type:"number",properties:Tj}}),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:Dj.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 Bj(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 Vj(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!==xz(l))f=Bj(t,i,a,f,l);else if(xz(l))for(s=0,u=l.length;s<u;s++)null!=(c=l[s])&&!xz(c)&&(f=Bj(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 Hj(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 Uj(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Wj(t,e,n,r){Yj(t,e,n,r,null)}function Yj(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)*Gz;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,Wz):t.arc(n,r,v,0,Wz),t.closePath();break;case"triangle":c=i?i/2:v,t.moveTo(n+Math.sin(g)*c,r-Math.cos(g)*v),g+=Xz,t.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*v),g+=Xz,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+Zz)*u,f=Math.cos(g+Zz)*(i?i/2-l:u),s=Math.sin(g+Zz)*u,d=Math.sin(g+Zz)*(i?i/2-l:u),t.arc(n-f,r-s,l,g-Uz,g-qz),t.arc(n+d,r-o,l,g-qz,g),t.arc(n+f,r+s,l,g,g+qz),t.arc(n-d,r+o,l,g+qz,g+Uz),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+=Zz;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+=Zz;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+=Zz,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 Gj(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 qj(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Zj(t){t.restore()}function Xj(t,e,n,r,i){var a,o,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=xz(e)?e:[e],l=s.strokeWidth>0&&""!==s.strokeColor;for(t.save(),t.font=i.string,Kj(t,s),a=0;a<u.length;++a)o=u[a],s.backdrop&&Qj(t,s.backdrop),l&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),_z(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(o,n,r,s.maxWidth)),t.fillText(o,n,r,s.maxWidth),$j(t,n,r,o,s),r+=i.lineHeight;t.restore()}function Kj(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),_z(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 $j(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 Qj(t,e){var n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Jj(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,-qz,Uz,!0),t.lineTo(n,r+a-o.bottomLeft),t.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Uz,qz,!0),t.lineTo(n+i-o.bottomRight,r+a),t.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,qz,0,!0),t.lineTo(n+i,r+o.topRight),t.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-qz,!0),t.lineTo(n+o.topLeft,r)}var tB=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,eB=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function nB(t,e){var n=(""+t).match(tB);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 rB=function(t){return+t||0};function iB(t,e){var n,r={},i=wz(e),a=i?Object.keys(e):e,o=wz(t)?i?function(n){return Ez(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]=rB(o(u))}}catch(l){s.e(l)}finally{s.f()}return r}function aB(t){return iB(t,{top:"y",right:"x",bottom:"y",left:"x"})}function oB(t){return iB(t,["topLeft","topRight","bottomLeft","bottomRight"])}function sB(t){var e=aB(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function uB(t,e){t=t||{},e=e||jj.font;var n=Ez(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));var r=Ez(t.style,e.style);r&&!(""+r).match(eB)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);var i={family:Ez(t.family,e.family),lineHeight:nB(Ez(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:Ez(t.weight,e.weight),string:""};return i.string=function(t){return!t||_z(t.size)||_z(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i}function lB(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&&xz(o)&&(o=o[n%o.length],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}function cB(t,e){return Object.assign(Object.create(t),e)}function fB(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]};Bz(i)||(i=kB("_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 fB([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 gB(e,r,(function(){return wB(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 SB(t).includes(e)},ownKeys:function(t){return SB(t)},set:function(t,e,n){var r=t._storage||(t._storage=a());return t[e]=r[e]=n,delete t._keys,!0}})}function dB(t,e,n,r){var i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:hB(t,r),setContext:function(e){return dB(t,e,n,r)},override:function(i){return dB(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 gB(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 Vz(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),vB(t,e)&&(e=_B(i._scopes,i,t,e)),e}(e,s,t,n)),xz(s)&&s.length&&(s=function(t,e,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._descriptors;if(Bz(a.index)&&r(t))e=e[a.index%e.length];else if(wz(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=_B(l,i,t,c.value);e.push(dB(d,a,o&&o[t],s))}}catch(h){f.e(h)}finally{f.f()}}return e}(e,s,t,o.isIndexable)),vB(e,s)&&(s=dB(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 hB(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:Vz(r)?r:function(){return r},isIndexable:Vz(a)?a:function(){return a}}}var pB=function(t,e){return t?t+jz(e):e},vB=function(t,e){return wz(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object)};function gB(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];var r=n();return t[e]=r,r}function mB(t,e,n){return Vz(t)?t(e,n):t}var yB=function(t,e){return!0===t?e:"string"==typeof t?zz(e,t):void 0};function bB(t,e,n,r,i){var a,o=zi(e);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=yB(n,s);if(u){t.add(u);var l=mB(u._fallback,n,i);if(Bz(l)&&l!==n&&l!==r)return l}else if(!1===u&&Bz(r)&&n!==r)return null}}catch(c){o.e(c)}finally{o.f()}return!1}function _B(t,e,n,r){var i=e._rootScopes,a=mB(e._fallback,n,r),o=[].concat(mi(t),mi(i)),s=new Set;s.add(r);var u=xB(s,o,n,a||n,r);return!(null===u||Bz(a)&&a!==n&&(u=xB(s,o,a,u,r),null===u))&&fB(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 xz(i)&&wz(n)?n:i||{}}(e,n,r)}))}function xB(t,e,n,r,i){for(;n;)n=bB(t,e,n,r,i);return n}function wB(t,e,n,r){var i,a,o=zi(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(i=kB(pB(s,t),n),Bz(i))return vB(t,i)?_B(n,r,t,i):i}}catch(u){o.e(u)}finally{o.f()}}function kB(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(Bz(a))return a}}}catch(o){r.e(o)}finally{r.f()}}function SB(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 EB(){return("undefined"==typeof window?"undefined":Fi(window))<"u"&&("undefined"==typeof document?"undefined":Fi(document))<"u"}function CB(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function AB(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 TB=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};var MB=["top","right","bottom","left"];function OB(t,e,n){var r={};n=n?"-"+n:"";for(var i=0;i<4;i++){var a=MB[i];r[a]=parseFloat(t[e+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function PB(t,e){if("native"in t)return t;var n=e.canvas,r=e.currentDevicePixelRatio,i=TB(n),a="border-box"===i.boxSizing,o=OB(i,"padding"),s=OB(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 RB=function(t){return Math.round(10*t)/10};function DB(t,e,n,r){var i=TB(t),a=OB(i,"margin"),o=AB(i.maxWidth,t,"clientWidth")||Yz,s=AB(i.maxHeight,t,"clientHeight")||Yz,u=function(t,e,n){var r,i;if(void 0===e||void 0===n){var a=CB(t);if(a){var o=a.getBoundingClientRect(),s=TB(a),u=OB(s,"border","width"),l=OB(s,"padding");e=o.width-l.width-u.width,n=o.height-l.height-u.height,r=AB(s.maxWidth,a,"clientWidth"),i=AB(s.maxHeight,a,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||Yz,maxHeight:i||Yz}}(t,e,n),l=u.width,c=u.height;if("content-box"===i.boxSizing){var f=OB(i,"border","width"),d=OB(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=RB(Math.min(l,o,u.maxWidth)),c=RB(Math.min(c,s,u.maxHeight)),l&&!c&&(c=RB(l/2)),(void 0!==e||void 0!==n)&&r&&u.height&&c>u.height&&(c=u.height,l=RB(Math.floor(c*r))),{width:l,height:c}}function LB(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 IB=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 NB(t,e){var n=function(t,e){return TB(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function FB(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 zB(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 jB(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 BB=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=mj.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}(),VB=new BB,HB="transparent",UB={boolean:function(t,e,n){return n>.5?e:t},color:function(t,e,n){var r=Cj(t||HB),i=r.valid&&Cj(e||HB);return i&&i.valid?i.mix(r,n).hexString():e},number:function(t,e,n){return t+(e-t)*n}},WB=function(){function t(e,n,r,i){Ai(this,t);var a=n[r];i=lB([e.to,i,a,e.from]);var o=lB([e.from,a,i]);this._active=!0,this._fn=e.fn||UB[e.type||Fi(o)],this._easing=Sj[e.easing]||Sj.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=lB([t.to,e,r,t.from]),this._from=lB([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}(),YB=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(wz(t)){var e=Object.keys(jj.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((function(r){var i=t[r];if(wz(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()}(xz(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 WB(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?(VB.add(this._chart,n),!0):void 0}Object.assign(t,e)}}]),t}();function GB(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 qB(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 ZB(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}kz(o=t.values[a])&&(l||0===e||$z(e)===$z(o))&&(e+=o)}return e}}function XB(t,e){var n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function KB(t,e,n){var r=t[e]||(t[e]={});return r[n]||(r[n]={})}function $B(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 QB(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]=KB(a,f,v))[u]=g,n._top=$B(n,s,!0,i.type),n._bottom=$B(n,s,!1,i.type),(n._visualValues||(n._visualValues={}))[u]=g}}function JB(t,e){var n=t.scales;return Object.keys(n).filter((function(t){return n[t].axis===e})).shift()}function tV(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 eV=function(t){return"reset"===t||"none"===t},nV=function(t,e){return e?t:Object.assign({},t)},rV=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=XB(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&&tV(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=Ez(n.xAxisID,JB(t,"x")),a=e.yAxisID=Ez(n.yAxisID,JB(t,"y")),o=e.rAxisID=Ez(n.rAxisID,JB(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&&vj(this._data,this),t._stacked&&tV(t)}},{key:"_dataCheck",value:function(){var t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(wz(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){vj(n,this);var r=this._cachedMeta;tV(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]}}),pj.forEach((function(e){var n="_onData"+jz(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=XB(e.vScale,e),e.stack!==n.stack&&(r=!0,tV(e),e.stack=n.stack),this._resyncElements(t),(r||i!==e._stacked)&&QB(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=xz(o[t])?this.parseArrayData(a,o,t,e):wz(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&&QB(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(zz(s,d),o),y:l.parse(zz(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 ZB({keys:qB(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=ZB(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:qB(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!kz(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)kz(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 wz(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}}(Ez(this.options.clip,function(t,e,n){if(!1===n)return!1;var r=GB(t,n),i=GB(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 cB(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 cB(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&&Bz(r);if(s)return nV(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(jj.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(nV(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 YB(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||eV(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){eV(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}},{key:"updateSharedOptions",value:function(t,e,n){t&&!eV(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&&tV(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 iV(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=gj(r.sort((function(t,e){return t-e})))}return t._cache.$bar}(a,t.type),s=a._length,u=function(){32767===r||-32768===r||(Bz(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 aV(t,e,n,r){return xz(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 oV(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(aV(s,o,l,i));return d}function sV(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function uV(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[lV(f,s,u,l)]=!0,i=c)),a[lV(i,s,u,l)]=!0,t.borderSkipped=a}else t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};else t.borderSkipped=a}function lV(t,e,n,r){return r?(t=function(t,e,n){return t===e?n:t===n?e:t}(t,e,n),t=cV(t,n,e)):t=cV(t,e,n),t}function cV(t,e,n){return"start"===t?e:"end"===t?n:t}function fV(t,e,n){var r=e.inflateAmount;t.inflateAmount="auto"===r?1===n?.33:0:r}TL(rV,"defaults",{}),TL(rV,"datasetElementType",null),TL(rV,"dataElementType",null);var dV=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 oV(t,e,n,r)}},{key:"parseArrayData",value:function(t,e,n,r){return oV(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(zz(s,v),i),m.push(aV(zz(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=sV(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||_z(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||sV(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;uV(y,b,m,a),fV(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(_z(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||iV(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=sV(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&&$z(p)!==$z(d.barEnd)&&(v=0),v+=p);var m=_z(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?$z(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=$z(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=Ez(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 _z(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}(rV);TL(dV,"id","bar"),TL(dV,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),TL(dV,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});var hV=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(wz(n[t])){var s=this._parsing.key,u=void 0===s?"value":s;o=function(t){return+zz(n[t],u)}}for(i=t,a=t+e;i<a;++i)r._parsed[i]=o(i)}}},{key:"_getRotation",value:function(){return nj(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return nj(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var t=Wz,e=-Wz,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<Wz){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 uj(t,s,u,!0)?1:Math.max(e,e*n,r,r*n)},p=function(t,e,r){return uj(t,s,u,!0)?-1:Math.min(e,e*n,r,r*n)},v=h(0,l,f),g=h(qz,c,d),m=p(Uz,l,f),y=p(Uz+qz,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=Cz(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/Wz)}},{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)?Wz*(Math.abs(t)/e):0}},{key:"getLabelAndValue",value:function(t){var e=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Pj(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(Ez(this.chart.data.datasets[t].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),n}(rV);function pV(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}TL(hV,"id","doughnut"),TL(hV,"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"}),TL(hV,"descriptors",{_scriptable:function(t){return"spacing"!==t},_indexable:function(t){return"spacing"!==t}}),TL(hV,"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 vV=function(){function t(e){Ai(this,t),this.options=e||{}}return Ci(t,[{key:"init",value:function(){}},{key:"formats",value:function(){return pV()}},{key:"parse",value:function(){return pV()}},{key:"format",value:function(){return pV()}},{key:"add",value:function(){return pV()}},{key:"diff",value:function(){return pV()}},{key:"startOf",value:function(){return pV()}},{key:"endOf",value:function(){return pV()}}],[{key:"override",value:function(e){Object.assign(t.prototype,e)}}]),t}(),gV={_date:vV};function mV(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?hj:dj;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 yV(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=mV(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 bV(t,e,n,r,i){var a=[];return!i&&!t.isPointInArea(e)||yV(t,n,e,(function(n,o,s){!i&&!Gj(n,t.chartArea,0)||n.inRange(e.x,e.y,r)&&a.push({element:n,datasetIndex:o,index:s})}),!0),a}function _V(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 yV(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 xV(t,e,n,r,i,a){return a||t.isPointInArea(e)?"r"!==n||r?_V(t,e,n,r,i,a):function(t,e,n,r){var i=[];return yV(t,n,e,(function(t,n,a){var o=t.getProps(["startAngle","endAngle"],r),s=o.startAngle,u=o.endAngle;uj(aj(t,{x:e.x,y:e.y}).angle,s,u)&&i.push({element:t,datasetIndex:n,index:a})})),i}(t,e,n,i):[]}function wV(t,e,n,r,i){var a=[],o="x"===n?"inXRange":"inYRange",s=!1;return yV(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 kV={evaluateInteractionItems:yV,modes:{index:function(t,e,n,r){var i=PB(e,t),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?bV(t,i,a,r,o):xV(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=PB(e,t),a=n.axis||"xy",o=n.includeInvisible||!1,s=n.intersect?bV(t,i,a,r,o):xV(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 bV(t,PB(e,t),n.axis||"xy",r,n.includeInvisible||!1)},nearest:function(t,e,n,r){var i=PB(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return xV(t,i,a,n.intersect,r,o)},x:function(t,e,n,r){return wV(t,PB(e,t),"x",n.intersect,r)},y:function(t,e,n,r){return wV(t,PB(e,t),"y",n.intersect,r)}}},SV=["left","top","right","bottom"];function EV(t,e){return t.filter((function(t){return t.pos===e}))}function CV(t,e){return t.filter((function(t){return-1===SV.indexOf(t.pos)&&t.box.axis===e}))}function AV(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 TV(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&&SV.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 MV(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function OV(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 PV(t,e,n,r){var i=n.pos,a=n.box,o=t.maxPadding;if(!wz(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&&OV(o,a.getPadding());var u=Math.max(0,e.outerWidth-MV(o,t,"left","right")),l=Math.max(0,e.outerHeight-MV(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 RV(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 DV(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,RV(o.horizontal,e));var f=PV(e,n,o,r),d=f.same,h=f.other;u|=d&&c.length,l=l||h,s.fullSize||c.push(o)}return u&&DV(c,e,n,r)||l}function LV(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 IV(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;Bz(f.start)&&(s=f.start),c.fullSize?LV(c,a.left,s,n.outerWidth-a.right-a.left,p):LV(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;Bz(f.start)&&(o=f.start),c.fullSize?LV(c,o,a.top,g,n.outerHeight-a.bottom-a.top):LV(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 NV=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)},FV=function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},zV=function(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},jV=function(t,e,n,r){if(t){var i=sB(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=AV(e.filter((function(t){return t.box.fullSize})),!0),r=AV(EV(e,"left"),!0),i=AV(EV(e,"right")),a=AV(EV(e,"top"),!0),o=AV(EV(e,"bottom")),s=CV(e,"x"),u=CV(e,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(u).concat(o).concat(s),chartArea:EV(e,"chartArea"),vertical:r.concat(i).concat(u),horizontal:a.concat(o).concat(s)}}(t.boxes),u=s.vertical,l=s.horizontal;Tz(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);OV(d,sB(r));var h=Object.assign({maxPadding:d,w:a,h:o,x:i.left,y:i.top},i),p=TV(u.concat(l),f);DV(s.fullSize,h,f,p),DV(u,h,f,p),DV(l,h,f,p)&&DV(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),IV(s.leftAndTop,h,f,p),h.x+=h.w,h.y+=h.h,IV(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},Tz(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})}))}},BV=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}(),VV=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}(BV),HV="$chartjs",UV={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},WV=function(t){return null===t||""===t};var YV=!!IB&&{passive:!0};function GV(t,e,n){t.canvas.removeEventListener(e,n,YV)}function qV(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 ZV(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||qV(o.addedNodes,r))&&!qV(o.removedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function XV(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||qV(o.removedNodes,r))&&!qV(o.addedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}var KV=new Map,$V=0;function QV(){var t=window.devicePixelRatio;t!==$V&&($V=t,KV.forEach((function(e,n){n.currentDevicePixelRatio!==t&&e()})))}function JV(t,e,n){var r=t.canvas,i=r&&CB(r);if(i){var a=yj((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){KV.size||window.addEventListener("resize",QV),KV.set(t,e)}(t,a),o}}function tH(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){KV.delete(t),KV.size||window.removeEventListener("resize",QV)}(t)}function eH(t,e,n){var r=t.canvas,i=yj((function(e){null!==t.ctx&&n(function(t,e){var n=UV[t.type]||t.type,r=PB(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,YV)}(r,e,i),i}var nH=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[HV]={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",WV(i)){var a=NB(t,"width");void 0!==a&&(t.width=a)}if(WV(r))if(""===t.style.height)t.height=t.width/(e||2);else{var o=NB(t,"height");void 0!==o&&(t.height=o)}}(t,e),n):null}},{key:"releaseContext",value:function(t){var e=t.canvas;if(!e[HV])return!1;var n=e[HV].initial;["height","width"].forEach((function(t){var r=n[t];_z(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[HV],!0}},{key:"addEventListener",value:function(t,e,n){this.removeEventListener(t,e);var r=t.$proxies||(t.$proxies={}),i={attach:ZV,detach:XV,resize:JV}[e]||eH;r[e]=i(t,e,n)}},{key:"removeEventListener",value:function(t,e){var n=t.$proxies||(t.$proxies={}),r=n[e];r&&(({attach:tH,detach:tH,resize:tH}[e]||GV)(t,e,r),n[e]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(t,e,n,r){return DB(t,e,n,r)}},{key:"isAttached",value:function(t){var e=CB(t);return!(!e||!e.isConnected)}}]),n}(BV);var rH=function(){function t(){Ai(this,t),TL(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 tj(this.x)&&tj(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 iH(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(aH(e,l,c,_z(h)?0:s-h,s),f=0,d=o-1;f<d;f++)aH(e,l,c,a[f],a[f+1]);return aH(e,l,c,u,_z(h)?e.length:u+h),l}return aH(e,l,c),l}function aH(t,e,n,r,i){var a,o,s,u=Ez(r,0),l=Math.min(Ez(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))}TL(rH,"defaults",{}),TL(rH,"defaultRoutes");var oH=function(t,e,n){return"top"===e||"left"===e?t[e]+n:t[e]-n};function sH(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 uH(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 lH(t){return t.drawTicks?t.tickLength:0}function cH(t,e){if(!t.display)return 0;var n=uB(t.font,e),r=sB(t.padding);return(xz(t.text)?t.text.length:1)*n.lineHeight+r.height}function fH(t,e,n){var r=bj(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=function(t){return"left"===t?"right":"right"===t?"left":t}(r)),r}var dH=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=Sz(t,Number.POSITIVE_INFINITY),e=Sz(e,Number.NEGATIVE_INFINITY),n=Sz(n,Number.POSITIVE_INFINITY),r=Sz(r,Number.NEGATIVE_INFINITY),{min:Sz(t,n),max:Sz(e,r),minDefined:kz(t),maxDefined:kz(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:Sz(r=o&&r>i?i:r,Sz(i=a&&r>i?r:i,r)),max:Sz(i,Sz(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(){Az(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=Cz(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?sH(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=iH(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(){Az(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){Az(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(){Az(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(t){this.chart.notifyPlugins(t,this.getContext()),Az(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(){Az(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=Az(i.callback,[r.value,e,t],this)}},{key:"afterTickToLabelConversion",value:function(){Az(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){Az(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=lj(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-lH(r.grid)-i.padding-cH(r.title,this.chart.options.font),n=Math.sqrt(c*c+f*f),u=rj(Math.min(Math.asin(lj((l.highest.height+6)/t,-1,1)),Math.asin(lj(e/n,-1,1))-Math.asin(lj(f/n,-1,1)))),u=Math.max(o,Math.min(s,u))),this.labelRotation=u}}},{key:"afterCalculateLabelRotation",value:function(){Az(this.options.afterCalculateLabelRotation,[this])}},{key:"afterAutoSkip",value:function(){}},{key:"beforeFit",value:function(){Az(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=cH(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=lH(a)+u):(t.height=this.maxHeight,t.width=lH(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=nj(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(){Az(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++)_z(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=sH(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,_z(a)||xz(a)){if(xz(a))for(r=0,i=a.length;r<i;++r)!_z(d=a[r])&&!xz(d)&&(c=Bj(h,u.data,u.gc,c,d),f+=l)}else c=Bj(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){Tz(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 lj(t,-32768,32767)}(this._alignToPixels?Hj(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 cB(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=function(t,e){return cB(t,{scale:e,type:"scale"})}(this.chart.getContext(),this))}},{key:"_tickSize",value:function(){var t=this.options.ticks,e=nj(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=lH(g),k=[],S=y.setContext(this.getContext()),E=S.display?S.width:0,C=E/2,A=function(t){return Hj(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(wz(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(wz(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=Ez(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=uH(this,n,b))&&(i=Hj(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=lH(h.grid),k=w+_,S=x?-_:k,E=-nj(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(wz(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(wz(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=xz(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=sB(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(-nj(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=Hj(t,this.left,o)-o/2,u=Hj(t,this.right,f)+f/2,l=c=d):(l=Hj(t,this.top,o)-o/2,c=Hj(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&&qj(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;Xj(e,a.label,0,a.textOffset,s,o)}}catch(u){i.e(u)}finally{i.f()}n&&Zj(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=uB(r.font),o=sB(r.padding),s=r.align,u=a.lineHeight/2;"bottom"===n||"center"===n||wz(n)?(u+=o.bottom,xz(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=_j(r,u,c),wz(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:oH(t,n,e);i=c-u}else{if(wz(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:oH(t,n,e);o=_j(r,l,s),p="left"===n?-qz:qz}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;Xj(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:fH(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=Ez(e.grid&&e.grid.z,-1),a=Ez(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 uB(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}(rH),hH=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=Dz(Object.create(null),[n?jj.get(n):{},jj.get(e),t.defaults]);jj.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(".");jj.route(a,i,u,s)}))}(e,t.defaultRoutes),t.descriptors&&jj.describe(e,t.descriptors)}(t,a,e),this.override&&jj.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 jj[r]&&(delete jj[r][n],this.override&&delete Lj[n])}}]),t}();var pH=function(){function t(){Ai(this,t),this.controllers=new hH(rV,"datasets",!0),this.elements=new hH(rH,"elements"),this.plugins=new hH(Object,"plugins"),this.scales=new hH(dH,"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):Tz(e,(function(e){var i=n||r._getRegistryForType(e);r._exec(t,i,e)}))}))}},{key:"_exec",value:function(t,e,n){var r=jz(t);Az(n["before"+r],[],n),e[t](n),Az(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}(),vH=new pH,gH=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===Az(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(){_z(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=Ez(n.options&&n.options.plugins,{}),i=function(t){for(var e={},n=[],r=Object.keys(vH.plugins.items),i=0;i<r.length;i++)n.push(vH.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=mH(n[f],r);null!==d&&s.push({plugin:c,options:yH(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 mH(t,e){return e||!1!==t?!0===t?{}:t:null}function yH(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 bH(t,e){var n=jj.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function _H(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&&_H(t[0].toLowerCase(),e)))return t;throw new Error("Cannot determine type of '".concat(name,"' axis. Please provide 'axis' or 'position' option."))}function xH(t){var e=t.options||(t.options={});e.plugins=Ez(e.plugins,{}),e.scales=function(t,e){var n=Lj[t.type]||{scales:{}},r=e.scales||{},i=bH(t.type,e),a=Object.create(null);return Object.keys(r).forEach((function(t){var e=r[t];if(!wz(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=_H(t,e),s=function(t,e){return t===e?"_index_":"_value_"}(o,i),u=n.scales||{};a[t]=Lz(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||bH(i,e),s=(Lj[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),Lz(a[i],[{axis:e},r[i],s[t]])}))})),Object.keys(a).forEach((function(t){var e=a[t];Lz(e,[jj.scales[e.type],jj.scale])})),a}(t,e)}function wH(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}var kH=new Map,SH=new Set;function EH(t,e){var n=kH.get(t);return n||(n=e(),kH.set(t,n),SH.add(n)),n}var CH=function(t,e,n){var r=zz(e,n);void 0!==r&&t.add(r)},AH=function(){function t(e){Ai(this,t),this._config=function(t){return(t=t||{}).data=wH(t.data),xH(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=wH(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(),xH(t)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(t){return EH(t,(function(){return[["datasets.".concat(t),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(t,e){return EH("".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 EH("".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 EH("".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 CH(s,t,e)}))),e.forEach((function(t){return CH(s,r,t)})),e.forEach((function(t){return CH(s,Lj[i]||{},t)})),e.forEach((function(t){return CH(s,jj,t)})),e.forEach((function(t){return CH(s,Ij,t)}))}));var u=Array.from(s);return 0===u.length&&u.push(Object.create(null)),SH.has(e)&&a.set(e,u),u}},{key:"chartOptionScopes",value:function(){var t=this.options,e=this.type;return[t,Lj[e]||{},jj.datasets[e]||{},{type:e},jj,Ij]}},{key:"resolveNamedOptions",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},a=TH(this._resolverCache,t,r),o=a.resolver,s=a.subPrefixes,u=o;if(OH(o,e)){i.$shared=!1,n=Vz(n)?n():n;var l=this.createResolver(t,n,s);u=dB(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=TH(this._resolverCache,t,n),a=i.resolver;return wz(e)?dB(a,e,void 0,r):a}}]),t}();function TH(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:fB(e,n),subPrefixes:n.filter((function(t){return!t.toLowerCase().includes("hover")}))},r.set(i,a)),a}var MH=function(t){return wz(t)&&Object.getOwnPropertyNames(t).reduce((function(e,n){return e||Vz(t[n])}),!1)};function OH(t,e){var n,r=hB(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&&(Vz(c)||MH(c))||l&&xz(c))return!0}}catch(f){o.e(f)}finally{o.f()}return!1}var PH=["top","bottom","left","right","chartArea"];function RH(t,e){return"top"===t||"bottom"===t||-1===PH.indexOf(t)&&"x"===e}function DH(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function LH(t){var e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Az(n&&n.onComplete,[t],e)}function IH(t){var e=t.chart,n=e.options.animation;Az(n&&n.onProgress,[t],e)}function NH(t){return EB()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var FH={},zH=function(t){var e=NH(t);return Object.values(FH).filter((function(t){return t.canvas===e})).pop()};function jH(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 BH=function(){function t(e,n){var r=this;Ai(this,t);var i=this.config=new AH(n),a=NH(e),o=zH(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!EB()||("undefined"==typeof OffscreenCanvas?"undefined":Fi(OffscreenCanvas))<"u"&&t instanceof OffscreenCanvas?VV:nH}(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=bz(),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 gH,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=[],FH[this.id]=this,u&&l?(VB.listen(this,"complete",LH),VB.listen(this,"progress",IH),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 _z(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 vH}},{key:"_initialize",value:function(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():LB(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}},{key:"clear",value:function(){return Uj(this.canvas,this.ctx),this}},{key:"stop",value:function(){return VB.stop(this),this}},{key:"resize",value:function(t,e){VB.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,LB(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),Az(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}},{key:"ensureScalesHaveIDs",value:function(){Tz(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=_H(t,e),i="r"===r,a="x"===r;return{options:e,dposition:i?"chartArea":a?"bottom":"left",dtype:i?"radialLinear":a?"category":"linear"}})))),Tz(a,(function(n){var a=n.options,o=a.id,s=_H(o,a),u=Ez(a.type,n.dtype);(void 0===a.position||RH(a.position,s)!==RH(n.dposition))&&(a.position=n.dposition),i[o]=!0;var l=null;o in r&&r[o].type===u?l=r[o]:(l=new(vH.getScale(u))({id:o,type:u,ctx:t.ctx,chart:t}),r[l.id]=l);l.init(a,e)})),Tz(i,(function(t,e){t||delete r[e]})),Tz(r,(function(e){zV(t,e,e.options),NV(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(DH("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||bH(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=vH.getController(o),u=jj.datasets[o],l=u.datasetElementType,c=u.dataElementType;Object.assign(s,{dataElementType:vH.getElement(c),datasetElementType:l&&vH.getElement(l)}),a.controller=new s(this,t),n.push(a.controller)}}return this._updateMetasets(),n}},{key:"_resetElements",value:function(){var t=this;Tz(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||Tz(i,(function(t){t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(DH("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;Tz(this.scales,(function(e){FV(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);(!Hz(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;jH(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(!Hz(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})){jV(this,this.width,this.height,t);var n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Tz(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,Vz(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})&&(VB.has(this)?this.attached&&!VB.running(this)&&VB.start(this):(this.draw(),LH({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&&qj(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&&Zj(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}},{key:"isPointInArea",value:function(t){return Gj(t,this.chartArea,this._minPadding)}},{key:"getElementsAtEventForMode",value:function(t,e,n,r){var i=kV.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=cB(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);Bz(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(),VB.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(),Uj(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete FH[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)};Tz(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;Tz(this._listeners,(function(e,n){t.platform.removeEventListener(t,n,e)})),this._listeners={},Tz(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}}));!Mz(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,Az(a.onHover,[t,s,this],this),u&&Az(a.onClick,[t,s,this],this));var c=!Mz(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(){vH.add.apply(vH,arguments),VH()}},{key:"unregister",value:function(){vH.remove.apply(vH,arguments),VH()}}]),t}();function VH(){return Tz(BH.instances,(function(t){return t._plugins.invalidate()}))}function HH(t,e,n,r){var i=function(t){return iB(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 lj(t,0,Math.min(a,e))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:lj(i.innerStart,0,o),innerEnd:lj(i.innerEnd,0,o)}}function UH(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function WH(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/Uz)/f)/2,g=u+v+h,m=i-v-h,y=HH(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=UH(S,C,o,s);t.arc(R.x,R.y,_,C,m+qz)}var D=UH(T,m,o,s);if(t.lineTo(D.x,D.y),w>0){var L=UH(T,O,o,s);t.arc(L.x,L.y,w,m+qz,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=UH(A,M,o,s);t.arc(N.x,N.y,x,M+Math.PI,g-qz)}var F=UH(k,g,o,s);if(t.lineTo(F.x,F.y),b>0){var z=UH(k,E,o,s);t.arc(z.x,z.y,b,g-qz,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 YH(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){WH(t,e,n,r,d,i);for(var h=0;h<a;++h)t.stroke();isNaN(s)||(d=o+(s%Wz||Wz))}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+qz,r-qz),t.closePath(),t.clip()}(t,e,d),a||(WH(t,e,n,r,d,i),t.stroke())}}TL(BH,"defaults",jj),TL(BH,"instances",FH),TL(BH,"overrides",Lj),TL(BH,"registry",vH),TL(BH,"version","4.2.0"),TL(BH,"getChart",zH);var GH=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=aj(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=Ez(f,u-s)>=Wz||uj(i,s,u),p=cj(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>Wz?Math.floor(n/Wz):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(Uz,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){WH(t,e,n,r,u,i);for(var l=0;l<a;++l)t.fill();isNaN(s)||(u=o+(s%Wz||Wz))}WH(t,e,n,r,u,i),t.fill()}(t,this,s,i,a),YH(t,this,s,i,a),t.restore()}}}]),n}(rH);function qH(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 ZH(t,e,n,r){return t?0:lj(e,n,r)}function XH(t){var e=qH(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=aB(r);return{t:ZH(i.top,a.top,0,n),r:ZH(i.right,a.right,0,e),b:ZH(i.bottom,a.bottom,0,n),l:ZH(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=oB(i),o=Math.min(e,n),s=t.borderSkipped,u=r||wz(i);return{topLeft:ZH(!u||s.top||s.left,a.topLeft,0,o),topRight:ZH(!u||s.top||s.right,a.topRight,0,o),bottomLeft:ZH(!u||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:ZH(!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 KH(t,e,n,r){var i=null===e,a=null===n,o=t&&!(i&&a)&&qH(t,r);return o&&(i||cj(e,o.left,o.right))&&(a||cj(n,o.top,o.bottom))}function $H(t,e){t.rect(e.x,e.y,e.w,e.h)}function QH(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}}TL(GH,"id","arc"),TL(GH,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),TL(GH,"defaultRoutes",{backgroundColor:"backgroundColor"});var JH=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=XH(this),o=a.inner,s=a.outer,u=function(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}(s.radius)?Jj:$H;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),u(t,QH(s,e,o)),t.clip(),u(t,QH(o,-e,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),u(t,QH(o,e)),t.fillStyle=i,t.fill(),t.restore()}},{key:"inRange",value:function(t,e,n){return KH(this,t,e,n)}},{key:"inXRange",value:function(t,e){return KH(this,t,null,e)}},{key:"inYRange",value:function(t,e){return KH(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}(rH);TL(JH,"id","bar"),TL(JH,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),TL(JH,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var tU=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)}},eU=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=Az(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=uB(i.font),o=a.size,s=this._computeTitleHeight(),u=tU(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=nU(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=FB(n.rtl,this.left,this.width);if(this.isHorizontal()){var o,s=0,u=_j(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=_j(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=_j(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=_j(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;qj(t,this),this._draw(),Zj(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=jj.color,l=FB(n.rtl,this.left,this.width),c=uB(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=tU(s,d),v=p.boxWidth,g=p.boxHeight,m=p.itemHeight,y=this.isHorizontal(),b=this._computeTitleHeight();t=y?{x:_j(o,this.left+f,this.right-i[0]),y:this.top+f+b,line:0}:{x:this.left+f,y:_j(o,this.top+b+f,this.bottom-r[0].height),line:0},zB(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=_j(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=_j(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=Ez(n.lineWidth,1);if(a.fillStyle=Ez(n.fillStyle,u),a.lineCap=Ez(n.lineCap,"butt"),a.lineDashOffset=Ez(n.lineDashOffset,0),a.lineJoin=Ez(n.lineJoin,"miter"),a.lineWidth=r,a.strokeStyle=Ez(n.strokeStyle,u),a.setLineDash(Ez(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);Yj(a,i,o,e+h,s.pointStyleWidth&&v)}else{var c=e+Math.max((d-g)/2,0),f=l.leftForLtr(t,v),p=oB(n.borderRadius);a.beginPath(),Object.values(p).some((function(t){return 0!==t}))?Jj(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){Xj(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+=nU(p,A)}else t.y+=_})),jB(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var t=this.options,e=t.title,n=uB(e.font),r=sB(e.padding);if(e.display){var i,a=FB(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=_j(t.align,c,this.right-f);else{var d=this.columnSizes.reduce((function(t,e){return Math.max(t,e.height)}),0);i=l+_j(t.align,this.top,this.bottom-d-t.labels.padding-this._computeTitleHeight())}var h=_j(s,c,c+f);o.textAlign=a.textAlign(bj(s)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=n.string,Xj(o,e.text,h,i,n)}}},{key:"_computeTitleHeight",value:function(){var t=this.options.title,e=uB(t.font),n=sB(t.padding);return t.display?e.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(t,e){var n,r,i;if(cj(t,this.left,this.right)&&cj(e,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(cj(t,(r=i[n]).left,r.left+r.width)&&cj(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&&Az(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!i&&Az(e.onHover,[t,n,this],this)}else n&&Az(e.onClick,[t,n,this],this)}}}]),n}(rH);function nU(t,e){return e*(t.text?t.text.length+.5:0)}var rU={id:"legend",_element:eU,start:function(t,e,n){var r=t.legend=new eU({ctx:t.ctx,options:n,chart:t});zV(t,r,n),NV(t,r)},stop:function(t){FV(t,t.legend),delete t.legend},beforeUpdate:function(t,e,n){var r=t.legend;zV(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=sB(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)}}}},iU=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=xz(n.text)?n.text.length:1;this._padding=sB(n.padding);var i=r*uB(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=_j(l,a,s),r=i+t,e=s-a):("left"===u.position?(n=a+t,r=_j(l,o,i),c=-.5*Uz):(n=s-t,r=_j(l,i,o),c=.5*Uz),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=uB(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;Xj(t,e.text,0,0,n,{color:e.color,maxWidth:s,rotation:u,textAlign:bj(e.align),textBaseline:"middle",translation:[a,o]})}}}]),n}(rH);var aU={id:"title",_element:iU,start:function(t,e,n){!function(t,e){var n=new iU({ctx:t.ctx,options:e,chart:t});zV(t,n,e),NV(t,n),t.titleBlock=n}(t,n)},stop:function(t){var e=t.titleBlock;FV(t,e),delete t.titleBlock},beforeUpdate:function(t,e,n){var r=t.titleBlock;zV(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}},oU={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=oj(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 sU(t,e){return e&&(xz(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function uU(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function lU(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 cU(t,e){var n=t.chart.ctx,r=t.body,i=t.footer,a=t.title,o=e.boxWidth,s=e.boxHeight,u=uB(e.bodyFont),l=uB(e.titleFont),c=uB(e.footerFont),f=a.length,d=i.length,h=r.length,p=sB(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,Tz(t.title,b),n.font=u.string,Tz(t.beforeBody.concat(t.afterBody),b),y=e.displayColors?o+2+e.boxPadding:0,Tz(r,(function(t){Tz(t.before,b),Tz(t.lines,b),Tz(t.after,b)})),y=0,n.font=c.string,Tz(t.footer,b),n.restore(),{width:g+=p.width,height:v}}function fU(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 dU(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||fU(t,e,n,r),yAlign:r}}function hU(t,e,n,r){var i=t.caretSize,a=t.caretPadding,o=t.cornerRadius,s=n.xAlign,u=n.yAlign,l=i+a,c=oB(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:lj(v,0,r.width-e.width),y:lj(g,0,r.height-e.height)}}function pU(t,e,n){var r=sB(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function vU(t){return sU([],uU(t))}function gU(t,e){var n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}var mU={beforeTitle:yz,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:yz,beforeBody:yz,beforeLabel:yz,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 _z(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:yz,afterBody:yz,beforeFooter:yz,footer:yz,afterFooter:yz};function yU(t,e,n,r){var i=t[e].call(n,r);return Fi(i)>"u"?mU[e].call(n,r):i}var bU=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 YB(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 cB(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}},{key:"getTitle",value:function(t,e){var n=e.callbacks,r=yU(n,"beforeTitle",this,t),i=yU(n,"title",this,t),a=yU(n,"afterTitle",this,t),o=[];return o=sU(o,uU(r)),o=sU(o,uU(i)),o=sU(o,uU(a))}},{key:"getBeforeBody",value:function(t,e){return vU(yU(e.callbacks,"beforeBody",this,t))}},{key:"getBody",value:function(t,e){var n=this,r=e.callbacks,i=[];return Tz(t,(function(t){var e={before:[],lines:[],after:[]},a=gU(r,t);sU(e.before,uU(yU(a,"beforeLabel",n,t))),sU(e.lines,yU(a,"label",n,t)),sU(e.after,uU(yU(a,"afterLabel",n,t))),i.push(e)})),i}},{key:"getAfterBody",value:function(t,e){return vU(yU(e.callbacks,"afterBody",this,t))}},{key:"getFooter",value:function(t,e){var n=e.callbacks,r=yU(n,"beforeFooter",this,t),i=yU(n,"footer",this,t),a=yU(n,"afterFooter",this,t),o=[];return o=sU(o,uU(r)),o=sU(o,uU(i)),o=sU(o,uU(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(lU(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)}))),Tz(l,(function(e){var n=gU(t.callbacks,e);o.push(yU(n,"labelColor",r,e)),s.push(yU(n,"labelPointStyle",r,e)),u.push(yU(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=oU[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=cU(this,r),u=Object.assign({},o,s),l=dU(this.chart,r,u),c=hU(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=oB(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=FB(n.rtl,this.x,this.width);for(t.x=pU(this,n.titleAlign,n),e.textAlign=u.textAlign(n.titleAlign),e.textBaseline="middle",r=uB(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=uB(i.bodyFont),f=pU(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,Wj(t,v,g,m),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Wj(t,v,g,m)}else{t.lineWidth=wz(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),_=oB(a.borderRadius);Object.values(_).some((function(t){return 0!==t}))?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Jj(t,{x:y,y:p,w:u,h:s,radius:_}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Jj(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=uB(n.bodyFont),y=m.lineHeight,b=0,_=FB(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=pU(this,w,n),e.fillStyle=n.bodyColor,Tz(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,Tz(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;Tz(r.after,x)}b=0,y=m.lineHeight,Tz(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=FB(n.rtl,this.x,this.width);for(t.x=pU(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",r=uB(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=oB(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=oU[t.position].call(this,this._active,this._eventPosition);if(!a)return;var o=this._size=cU(this,t),s=Object.assign({},a,this._size),u=dU(e,t,s),l=hU(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=sB(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),zB(t,e.textDirection),i.y+=a.top,this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),jB(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=!Mz(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||!Mz(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=oU[i.position].call(this,t,e);return!1!==a&&(n!==a.x||r!==a.y)}}]),n}(rH);TL(bU,"positioners",oU);var _U={id:"tooltip",_element:bU,positioners:oU,afterInit:function(t,e,n){n&&(t.tooltip=new bU({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:mU},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 xU(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 wU(t){var e=this.getLabels();return t>=0&&t<e.length?e[t]:t}var kU=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(_z(t))return null;var n=this.getLabels();return function(t,e){return null===t?null:lj(Math.round(t),0,e)}(e=isFinite(e)&&n[e]===t?e:xU(n,t,Ez(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 wU.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}(dH);function SU(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,_=!_z(l),x=!_z(c),w=!_z(d),k=(b-y)/(p+1),S=Jz((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=Jz(a*S/m/g)*g),_z(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=Qz(a=(i-r)/S,Math.round(a),S/1e3)?Math.round(a):Math.ceil(a);var E=Math.max(ij(S),ij(r));n=Math.pow(10,_z(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++,Qz(Math.round((r+C*S)*n)/n,l,EU(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&&Qz(o[o.length-1].value,c,EU(c,k,t))?o[o.length-1].value=c:o.push({value:c}):(!x||i===c)&&o.push({value:i}),o}function EU(t,e,n){var r=n.horizontal,i=nj(n.minRotation),a=(r?Math.sin(i):Math.cos(i))||.001,o=.75*e*(""+t).length;return Math.min(e/a,o)}TL(kU,"id","category"),TL(kU,"defaults",{ticks:{callback:wU}});var CU=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 _z(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=$z(i),l=$z(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=SU({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&&ej(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 Pj(t,this.chart.options.locale,this.options.ticks.format)}}]),n}(dH),AU=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=kz(e)?e:0,this.max=kz(n)?n:1,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var t=this.isHorizontal(),e=t?this.width:this.height,n=nj(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}(CU);TL(AU,"id","linear"),TL(AU,"defaults",{ticks:{callback:Dj.formatters.numeric}});var TU=function(t){return Math.floor(Kz(t))},MU=function(t,e){return Math.pow(10,TU(t)+e)};function OU(t){return t/Math.pow(10,TU(t))==1}function PU(t,e,n){var r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function RU(t,e){var n=e.min,r=e.max;n=Sz(t.min,n);for(var i=[],a=TU(n),o=function(t,e){for(var n=TU(e-t);PU(t,e,n)>10;)n++;for(;PU(t,e,n)<10;)n--;return Math.min(n,TU(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=Sz(t.min,Math.round((l+f+d*Math.pow(10,o))*s)/s);h<r;)i.push({value:h,major:OU(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=Sz(t.max,h);return i.push({value:p,major:OU(p),significand:d}),i}var DU=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=CU.prototype.parse.apply(this,[t,e]);if(0!==n)return kz(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=kz(e)?Math.max(0,e):null,this.max=kz(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!kz(this._userMin)&&(this.min=e===MU(this.min,0)?MU(this.min,-1):MU(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(MU(r,-1)),o(MU(i,1)))),r<=0&&a(MU(i,-1)),i<=0&&o(MU(r,1)),this.min=r,this.max=i}},{key:"buildTicks",value:function(){var t=this.options,e=RU({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&ej(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":Pj(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=Kz(t),this._valueRange=Kz(this.max)-Kz(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:(Kz(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}(dH);function LU(t){var e=t.ticks;if(e.display&&t.display){var n=sB(e.backdropPadding);return Ez(e.font&&e.font.size,jj.font.size)+n.height}return 0}function IU(t,e,n){return n=xz(n)?n:[n],{w:Vj(t,e.string,n),h:n.length*e.lineHeight}}function NU(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 FU(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?Uz/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=uB(l.font),d=IU(t.ctx,f,t._pointLabels[u]);r[u]=d;var h=sj(t.getIndexAngle(u)+s),p=Math.round(rj(h));zU(n,e,h,NU(p,c.x,d.w,0,180),NU(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=LU(a)/2,s=t.drawingArea,u=a.pointLabels.centerPointLabels?Uz/i:0,l=0;l<i;l++){var c=t.getPointPosition(l,s+o+n[l],u),f=Math.round(rj(sj(c.angle+qz))),d=e[l],h=VU(c.y,d.h,f),p=jU(f),v=BU(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 zU(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 jU(t){return 0===t||180===t?"center":t<180?"left":"right"}function BU(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function VU(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function HU(t,e,n,r){var i=t.ctx;if(n)i.arc(t.xCenter,t.yCenter,e,0,Wz);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)}}TL(DU,"id","logarithmic"),TL(DU,"defaults",{ticks:{callback:Dj.formatters.logarithmic,major:{enabled:!0}}});var UU=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=sB(LU(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=kz(e)&&!isNaN(e)?e:0,this.max=kz(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/LU(this.options))}},{key:"generateTickLabels",value:function(t){var e=this;CU.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((function(t,n){var r=Az(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?FU(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 sj(t*(Wz/(this._pointLabels.length||1))+nj(this.options.startAngle||0))}},{key:"getDistanceFromCenterForValue",value:function(t){if(_z(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(_z(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 cB(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)-qz+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(),HU(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=uB(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(!_z(v)){var g=oB(a.borderRadius),m=sB(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(),Jj(n,{x:y,y:b,w:_,h:x,radius:g}),n.fill()):n.fillRect(y,b,_,x)}Xj(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(),HU(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=uB(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=sB(u.backdropPadding);e.fillRect(-a/2-c.left,-i-l.size/2-c.top,a+c.width,l.size+c.height)}Xj(e,o.label,0,-i,l,{color:u.color})}})),e.restore()}}},{key:"drawTitle",value:function(){}}]),n}(CU);TL(UU,"id","radialLinear"),TL(UU,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Dj.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(t){return t},padding:5,centerPointLabels:!1}}),TL(UU,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),TL(UU,"descriptors",{angleLines:{_fallback:"grid"}});var WU={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}},YU=Object.keys(WU);function GU(t,e){return t-e}function qU(t,e){if(_z(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)),kz(s)||(s="string"==typeof i?n.parse(s,i):n.parse(s)),null===s?null:(a&&(s="week"!==a||!tj(o)&&!0!==o?n.startOf(s,a):n.startOf(s,"isoWeek",o)),+s)}function ZU(t,e,n,r){for(var i=YU.length,a=YU.indexOf(t);a<i-1;++a){var o=WU[YU[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(s*o.size))<=r)return YU[a]}return YU[i-1]}function XU(t,e,n){if(n){if(n.length){var r=fj(n,e),i=r.lo,a=r.hi;t[n[i]>=e?n[i]:n[a]]=!0}}else t[e]=!0}function KU(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 $U=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 gV._date(t.adapters.date);i.init(e),Lz(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:qU(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=kz(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),a=kz(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?ZU(e.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(t,e,n,r,i){for(var a=YU.length-1;a>=YU.indexOf(n);a--){var o=YU[a];if(WU[o].common&&t._adapter.diff(i,r,o)>=e-1)return o}return YU[n?YU.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=YU.indexOf(t)+1,n=YU.length;e<n;++e)if(WU[YU[e]].common)return YU[e]}(this._unit):void 0,this.initOffsets(r),t.reverse&&a.reverse(),KU(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=lj(r,0,a),i=lj(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||ZU(o.minUnit,r,i,this._getLabelCapacity(r)),u=Ez(a.ticks.stepSize,1),l="week"===s&&o.isoWeekday,c=tj(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++)XU(f,t,h);return(t===i||"ticks"===a.bounds||1===e)&&XU(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 Az(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=nj(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,KU(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(qU(this,r[t]));return this._cache.labels=this._normalized?n:this.normalize(n)}},{key:"normalize",value:function(t){return gj(t.sort(GU))}}]),n}(dH);function QU(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=dj(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=dj(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}TL($U,"id","time"),TL($U,"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 JU=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=QU(e,this.min),this._tableRange=QU(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(QU(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 QU(this._table,n*this._tableRange+this._minPos,!0)}}]),n}($U);TL(JU,"id","timeseries"),TL(JU,"defaults",$U.defaults);var tW="label";function eW(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function nW(t,e){t.labels=e}function rW(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tW,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 iW(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tW,n={labels:[],datasets:[]};return nW(n,t.labels),rW(n,t.datasets,e),n}function aW(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 BH(m.current,{type:l,data:iW(c,u),options:f&&_i({},f),plugins:h}),eW(e,y.current))},_=function(){eW(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&&nW(y.current.config.data,c.labels)}),[s,c.labels]),ki.exports.useEffect((function(){!s&&y.current&&c.datasets&&rW(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 _()}}),[]),KL("canvas",_i(_i({},Object.assign({ref:m,role:"img",height:r,width:a},g)),{},{children:p}))}var oW=ki.exports.forwardRef(aW);function sW(t,e){return BH.register(e),ki.exports.forwardRef((function(e,n){return KL(oW,_i({},Object.assign({},e,{ref:n,type:t})))}))}var uW=sW("bar",dV),lW=sW("doughnut",hV);!!(("undefined"==typeof window?"undefined":Fi(window))<"u"&&window.document&&window.document.createElement)&&getComputedStyle(document.documentElement),JC.div(U||(U=ci(["\n position: relative;\n height: calc((100vw / 2) - ",");\n width: 100%;\n"])),zL["--ll-spacing-medium"]),JC(uW)(W||(W=ci(["\n background-color: ",";\n padding: "," ",";\n border-radius: ",";\n font-family: ",";\n"])),zL["--ll-color-surface"],zL["--ll-spacing-medium"],zL["--ll-spacing-x-large"],zL["--ll-border-radius-medium"],zL["--ll-font-family"]),JC(lW)(Y||(Y=ci(["\n background-color: ",";\n padding: "," ",";\n border-radius: ",";\n font-family: ",";\n"])),zL["--ll-color-surface"],zL["--ll-spacing-medium"],zL["--ll-spacing-x-large"],zL["--ll-border-radius-medium"],zL["--ll-font-family"]),BH.register(kU,AU,JH),BH.register(kU,AU,JH,aU,rU),BH.register(GH,_U,rU),JC.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"])),zL["--ll-color-background"],zL["--ll-color-primary-variant1"],zL["--ll-color-primary"],zL["--ll-spacing-medium"],zL["--ll-spacing-x-large"],zL["--ll-border-radius-medium"],zL["--ll-font-family"],zL["--ll-font-size-caption-1"],zL["--ll-font-weight-normal"]),JC.h1(q||(q=ci(["\n font-size: ",";\n margin: 0 0 ",";\n"])),zL["--ll-font-size-p"],zL["--ll-spacing-xxx-large"]),JC.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"])),zL["--ll-font-size-h3"],zL["--ll-spacing-large"]),JC.li(X||(X=ci(["\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n align-items: center;\n"]))),JC.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"]))),JC.p($||($=ci(["\n font-size: inherit;\n line-height: inherit;\n font-weight: inherit;\n margin: 0;\n"]))),JC.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 cW,fW="dismissableLayer.update",dW="dismissableLayer.pointerDownOutside",hW="dismissableLayer.focusOutside",pW=ki.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vW=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(pW),f=wi(ki.exports.useState(null),2),d=f[0],h=f[1],p=wi(ki.exports.useState({}),2)[1],v=cI(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=ZI(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(){mW(dW,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=ZI(t),n=ki.exports.useRef(!1);return ki.exports.useEffect((function(){var t=function(t){t.target&&!n.current&&mW(hW,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=ZI(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&&(cW=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),gW(),function(){r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=cW)}}),[d,r,c]),ki.exports.useEffect((function(){return function(){!d||(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),gW())}}),[d,c]),ki.exports.useEffect((function(){var t=function(){return p({})};return document.addEventListener(fW,t),function(){return document.removeEventListener(fW,t)}}),[]),ki.exports.createElement(vI.div,aI({},l,{ref:v,style:_i({pointerEvents:_?x?"auto":"none":void 0},t.style),onFocusCapture:qI(t.onFocusCapture,k.onFocusCapture),onBlurCapture:qI(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:qI(t.onPointerDownCapture,w.onPointerDownCapture)}))}));function gW(){var t=new CustomEvent(fW);document.dispatchEvent(t)}function mW(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 yW=0;function bW(){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:_W()),document.body.insertAdjacentElement("beforeend",null!==(e=n[1])&&void 0!==e?e:_W()),yW++,function(){1===yW&&document.querySelectorAll("[data-radix-focus-guard]").forEach((function(t){return t.remove()})),yW--}}),[])}function _W(){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 xW="focusScope.autoFocusOnMount",wW="focusScope.autoFocusOnUnmount",kW={bubbles:!1,cancelable:!0},SW=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=ZI(o),h=ZI(s),p=ki.exports.useRef(null),v=cI(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:MW(p.current,{select:!0})}},e=function(t){g.paused||!c||c.contains(t.relatedTarget)||MW(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){OW.add(g);var t=document.activeElement;if(!c.contains(t)){var e=new CustomEvent(xW,kW);c.addEventListener(xW,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(MW(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}))}(EW(c)),{select:!0}),document.activeElement===t&&MW(c))}return function(){c.removeEventListener(xW,d),setTimeout((function(){var e=new CustomEvent(wW,kW);c.addEventListener(wW,h),c.dispatchEvent(e),e.defaultPrevented||MW(null!=t?t:document.body,{select:!0}),c.removeEventListener(wW,h),OW.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=EW(t),n=CW(e,t),r=CW(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&&MW(l,{select:!0})):(t.preventDefault(),r&&MW(u,{select:!0})):n===i&&t.preventDefault()}}}),[r,a,g.paused]);return ki.exports.createElement(vI.div,aI({tabIndex:-1},u,{ref:v,onKeyDown:m}))}));function EW(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 CW(t,e){var n,r=zi(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!AW(i,{upTo:e}))return i}}catch(a){r.e(a)}finally{r.f()}}function AW(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 TW(t){return t instanceof HTMLInputElement&&"select"in t}function MW(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&&TW(t)&&r&&t.select()}}var OW=function(){var t=[];return{add:function(e){var n=t[0];e!==n&&(null==n||n.pause()),(t=PW(t,e)).unshift(e)},remove:function(e){var n;null===(n=(t=PW(t,e))[0])||void 0===n||n.resume()}}}();function PW(t,e){var n=mi(t),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}var RW=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(vI.div,aI({},a,{ref:e})),i):null})),DW=ki.exports.forwardRef((function(t,e){return ki.exports.createElement(vI.span,aI({},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)}))})),LW=new WeakMap,IW=new WeakMap,NW={},FW=0,zW=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];NW[n]||(NW[n]=new WeakMap);var a=NW[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=(LW.get(e)||0)+1,c=(a.get(e)||0)+1;LW.set(e,l),a.set(e,c),o.push(e),1===l&&u&&IW.set(e,!0),1===c&&e.setAttribute(n,"true"),u||e.setAttribute(r,"true")}}))}(e),s.clear(),FW++,function(){o.forEach((function(t){var e=LW.get(t)-1,i=a.get(t)-1;LW.set(t,e),a.set(t,i),e||(IW.has(t)||t.removeAttribute(r),IW.delete(t)),i||t.removeAttribute(n)})),--FW||(LW=new WeakMap,LW=new WeakMap,IW=new WeakMap,NW={})}}(r,i,n,"aria-hidden")):function(){return null}},jW=function(){return jW=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},jW.apply(this,arguments)};function BW(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 VW="right-scroll-bar-position",HW="width-before-scroll-bar";function UW(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 WW(t){return t}var YW=function(t){var e=t.sideCar,n=BW(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 KL(r,_i({},jW({},n)))};YW.isSideCarExport=!0;var GW=function(t){void 0===t&&(t={});var e=function(t,e){void 0===e&&(e=WW);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=jW({async:!0,ssr:!1},t),e}(),qW=function(){},ZW=ki.exports.forwardRef((function(t,e){var n=ki.exports.useRef(null),r=ki.exports.useState({onScrollCapture:qW,onWheelCapture:qW,onTouchMoveCapture:qW}),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=BW(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=d,_=UW([n,e]),x=jW(jW({},y),i);return $L(XL,{children:[c&&KL(b,{sideCar:GW,removeScrollBar:l,shards:f,noIsolation:h,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),o?ki.exports.cloneElement(ki.exports.Children.only(s),jW(jW({},x),{ref:_})):KL(m,_i(_i({},jW({},x,{className:u,ref:_})),{},{children:s}))]})}));ZW.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ZW.classNames={fullWidth:HW,zeroRight:VW};function XW(){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 KW=function(){var t=0,e=null;return{add:function(n){0==t&&(e=XW())&&(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)}}},$W=function(){var t=function(){var t=KW();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}},QW={left:0,top:0,right:0,gap:0},JW=function(t){return parseInt(t||"",10)||0},tY=function(t){if(void 0===t&&(t="margin"),("undefined"==typeof window?"undefined":Fi(window))>"u")return QW;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[JW(n),JW(r),JW(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])}},eY=$W(),nY=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(VW," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(HW," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(VW," .").concat(VW," {\n right: 0 ").concat(r,";\n }\n \n .").concat(HW," .").concat(HW," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},rY=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=void 0===r?"margin":r,a=ki.exports.useMemo((function(){return tY(i)}),[i]);return KL(eY,{styles:nY(a,!e,i,n?"":"!important")})},iY=!1;if(("undefined"==typeof window?"undefined":Fi(window))<"u")try{var aY=Object.defineProperty({},"passive",{get:function(){return iY=!0,!0}});window.addEventListener("test",aY,aY),window.removeEventListener("test",aY,aY)}catch(_ft){iY=!1}var oY=!!iY&&{passive:!1},sY=function(t,e){var n=e;do{if(("undefined"==typeof ShadowRoot?"undefined":Fi(ShadowRoot))<"u"&&n instanceof ShadowRoot&&(n=n.host),uY(t,n)){var r=lY(t,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},uY=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)},lY=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)},cY=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},fY=function(t){return[t.deltaX,t.deltaY]},dY=function(t){return t&&"current"in t?t.current:t},hY=function(t){return"\n .block-interactivity-".concat(t," {pointer-events: none;}\n .allow-interactivity-").concat(t," {pointer-events: all;}\n")},pY=0,vY=[];var gY=function(t,e){return t.useMedium(e),YW}(GW,(function(t){var e=ki.exports.useRef([]),n=ki.exports.useRef([0,0]),r=ki.exports.useRef(),i=ki.exports.useState(pY++)[0],a=ki.exports.useState((function(){return $W()}))[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(dY),!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=cY(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=sY(f,c);if(!d)return!0;if(d?i=f:(i="v"===f?"h":"v",d=sY(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=lY(t,s),p=h[0],v=h[1]-h[2]-a*p;(p||v)&&uY(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(vY.length&&vY[vY.length-1]===a){var r="deltaY"in n?fY(n):cY(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(dY).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=cY(t),r.current=void 0}),[]),f=ki.exports.useCallback((function(e){l(e.type,fY(e),e.target,s(e,t.lockRef.current))}),[]),d=ki.exports.useCallback((function(e){l(e.type,cY(e),e.target,s(e,t.lockRef.current))}),[]);ki.exports.useEffect((function(){return vY.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",u,oY),document.addEventListener("touchmove",u,oY),document.addEventListener("touchstart",c,oY),function(){vY=vY.filter((function(t){return t!==a})),document.removeEventListener("wheel",u,oY),document.removeEventListener("touchmove",u,oY),document.removeEventListener("touchstart",c,oY)}}),[]);var h=t.removeScrollBar,p=t.inert;return $L(XL,{children:[p?KL(a,{styles:hY(i)}):null,h?KL(rY,{gapMode:"margin"}):null]})})),mY=ki.exports.forwardRef((function(t,e){return KL(ZW,_i({},jW({},t,{ref:e,sideCar:gY})))}));mY.classNames=ZW.classNames;var yY=mY,bY=[" ","Enter","ArrowUp","ArrowDown"],_Y=[" ","Enter"],xY="Select",wY=wi(pN(xY),3),kY=wY[0],SY=wY[1],EY=wi(oI(xY,[wY[2]]),2),CY=EY[0],AY=EY[1],TY=wi(CY(xY),2),MY=TY[0],OY=TY[1],PY=wi(CY(xY),2),RY=PY[0],DY=PY[1],LY=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=hN(l),w=wi(XI({prop:r,defaultProp:i,onChange:a}),2),k=w[0],S=void 0!==k&&k,E=w[1],C=wi(XI({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(MY,{scope:e,trigger:h,onTriggerChange:p,valueNode:g,onValueNodeChange:m,valueNodeHasChildren:b,onValueNodeHasChildrenChange:_,contentId:bI(),value:A,onValueChange:T,open:S,onOpenChange:E,dir:x,triggerPointerDownPosRef:M},ki.exports.createElement(kY.Provider,{scope:e},ki.exports.createElement(RY,{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(cG,{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)},IY=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=OY("SelectTrigger",n),u=cI(e,s.onTriggerChange),l=SY(n),c=EI(s.trigger),f=a||c,d=fG((function(t){var e=l().filter((function(t){return!t.disabled})),n=e.find((function(t){return t.value===s.value})),r=dG(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(vI.button,aI({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:qI(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:qI(o.onKeyDown,(function(t){var e=""!==p.current;!(t.ctrlKey||t.altKey||t.metaKey)&&1===t.key.length&&v(t.key),(!e||" "!==t.key)&&bY.includes(t.key)&&(m(),t.preventDefault())}))}))})),NY=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=OY("SelectValue",n),s=o.onValueNodeHasChildrenChange,u=void 0!==r,l=cI(e,o.onValueNodeChange);return gI((function(){s(u)}),[s,u]),ki.exports.createElement(vI.span,aI({},a,{ref:l,style:{pointerEvents:"none"}}),void 0===o.value&&void 0!==i?i:r)})),FY=ki.exports.forwardRef((function(t,e){t.__scopeSelect;var n=t.children,r=fi(t,Tn);return ki.exports.createElement(vI.span,aI({"aria-hidden":!0},r,{ref:e}),n||"▼")})),zY=function(t){return ki.exports.createElement(RW,aI({asChild:!0},t))},jY="SelectContent",BY=ki.exports.forwardRef((function(t,e){var n=OY(jY,t.__scopeSelect),r=wi(ki.exports.useState(),2),i=r[0],a=r[1];return gI((function(){a(new DocumentFragment)}),[]),ki.exports.createElement(ki.exports.Fragment,null,n.open?ki.exports.createElement(YY,aI({},t,{ref:e})):i?ma.exports.createPortal(ki.exports.createElement(UY,{scope:t.__scopeSelect},ki.exports.createElement(kY.Slot,{scope:t.__scopeSelect},ki.exports.createElement("div",null,t.children))),i):null)})),VY=10,HY=wi(CY(jY),2),UY=HY[0],WY=HY[1],YY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.onCloseAutoFocus,i=fi(t,Mn),a=OY(jY,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=cI(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=SY(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 zW(c)}),[c]),bW();var M=wi(ki.exports.useState(),2),O=M[0],P=M[1];gI((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-VY,p=fN(o,[VY,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-VY,S=fN(g,[VY,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-VY,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(VY,"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]);gI((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=fG((function(t){var e=w().filter((function(t){return!t.disabled})),n=e.find((function(t){return t.ref.current===document.activeElement})),r=dG(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(UY,{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(yY,{as:fI,allowPinchZoom:!0},ki.exports.createElement("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O}},ki.exports.createElement(SW,{asChild:!0,trapped:a.open,onMountAutoFocus:function(t){t.preventDefault()},onUnmountAutoFocus:qI(r,(function(t){var e;null===(e=a.trigger)||void 0===e||e.focus({preventScroll:!0}),t.preventDefault()}))},ki.exports.createElement(vW,aI({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:qI(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()}}))}))))))})),GY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,On),i=WY("SelectViewport",n),a=cI(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(kY.Slot,{scope:n},ki.exports.createElement(vI.div,aI({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:_i({position:"relative",flex:1,overflow:"auto"},r.style),onScroll:qI(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}))}))))})),qY=wi(CY("SelectGroup"),2),ZY=qY[0],XY=qY[1],KY=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Pn),i=bI();return ki.exports.createElement(ZY,{scope:n,id:i},ki.exports.createElement(vI.div,aI({role:"group","aria-labelledby":i},r,{ref:e})))})),$Y=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Rn),i=XY("SelectLabel",n);return ki.exports.createElement(vI.div,aI({id:i.id},r,{ref:e}))})),QY="SelectItem",JY=wi(CY(QY),2),tG=JY[0],eG=JY[1],nG=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=OY(QY,n),l=WY(QY,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=cI(e,(function(t){var e;return null===(e=l.itemRefCallback)||void 0===e?void 0:e.call(l,t,r,a)})),y=bI(),b=function(){a||(u.onValueChange(r),u.onOpenChange(!1))};return ki.exports.createElement(tG,{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(kY.ItemSlot,{scope:n,value:r,disabled:a,textValue:d},ki.exports.createElement(vI.div,aI({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:qI(s.onFocus,(function(){return g(!0)})),onBlur:qI(s.onBlur,(function(){return g(!1)})),onPointerUp:qI(s.onPointerUp,b),onPointerMove:qI(s.onPointerMove,(function(t){var e;a?null===(e=l.onItemLeave)||void 0===e||e.call(l):t.currentTarget.focus({preventScroll:!0})})),onPointerLeave:qI(s.onPointerLeave,(function(t){var e;t.currentTarget===document.activeElement&&(null===(e=l.onItemLeave)||void 0===e||e.call(l))})),onKeyDown:qI(s.onKeyDown,(function(t){var e;""!==(null===(e=l.searchRef)||void 0===e?void 0:e.current)&&" "===t.key||(_Y.includes(t.key)&&b()," "===t.key&&t.preventDefault())}))}))))})),rG="SelectItemText",iG=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=(t.className,t.style,fi(t,Ln)),i=OY(rG,n),a=WY(rG,n),o=eG(rG,n),s=DY(rG,n),u=wi(ki.exports.useState(null),2),l=u[0],c=u[1],f=cI(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 gI((function(){return p(h),function(){return v(h)}}),[p,v,h]),ki.exports.createElement(ki.exports.Fragment,null,ki.exports.createElement(vI.span,aI({id:o.textId},r,{ref:f})),o.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ma.exports.createPortal(r.children,i.valueNode):null)})),aG=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,In);return eG("SelectItemIndicator",n).isSelected?ki.exports.createElement(vI.span,aI({"aria-hidden":!0},r,{ref:e})):null})),oG=ki.exports.forwardRef((function(t,e){var n=WY("SelectScrollUpButton",t.__scopeSelect),r=wi(ki.exports.useState(!1),2),i=r[0],a=r[1],o=cI(e,n.onScrollButtonChange);return gI((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(uG,aI({},t,{ref:o,onAutoScroll:function(){var t=n.viewport,e=n.selectedItem;t&&e&&(t.scrollTop=t.scrollTop-e.offsetHeight)}})):null})),sG=ki.exports.forwardRef((function(t,e){var n=WY("SelectScrollDownButton",t.__scopeSelect),r=wi(ki.exports.useState(!1),2),i=r[0],a=r[1],o=cI(e,n.onScrollButtonChange);return gI((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(uG,aI({},t,{ref:o,onAutoScroll:function(){var t=n.viewport,e=n.selectedItem;t&&e&&(t.scrollTop=t.scrollTop+e.offsetHeight)}})):null})),uG=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.onAutoScroll,i=fi(t,Nn),a=WY("SelectScrollButton",n),o=ki.exports.useRef(null),s=SY(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]),gI((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(vI.div,aI({"aria-hidden":!0},i,{ref:e,style:_i({flexShrink:0},i.style),onPointerMove:qI(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:qI(i.onPointerLeave,(function(){u()}))}))})),lG=ki.exports.forwardRef((function(t,e){t.__scopeSelect;var n=fi(t,Fn);return ki.exports.createElement(vI.div,aI({"aria-hidden":!0},n,{ref:e}))})),cG=ki.exports.forwardRef((function(t,e){var n=t.value,r=fi(t,zn),i=ki.exports.useRef(null),a=cI(e,i),o=KI(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(DW,{asChild:!0},ki.exports.createElement("select",aI({},r,{ref:a,defaultValue:n})))}));function fG(t){var e=ZI(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 dG(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}cG.displayName="BubbleSelect";var hG=LY,pG=IY,vG=NY,gG=FY,mG=zY,yG=BY,bG=GY,_G=KY,xG=$Y,wG=nG,kG=iG,SG=aG,EG=oG,CG=sG,AG=lG,TG=Object.freeze(Object.defineProperty({__proto__:null,createSelectScope:AY,Select:LY,SelectTrigger:IY,SelectValue:NY,SelectIcon:FY,SelectPortal:zY,SelectContent:BY,SelectViewport:GY,SelectGroup:KY,SelectLabel:$Y,SelectItem:nG,SelectItemText:iG,SelectItemIndicator:aG,SelectScrollUpButton:oG,SelectScrollDownButton:sG,SelectSeparator:lG,Root:hG,Trigger:pG,Value:vG,Icon:gG,Portal:mG,Content:yG,Viewport:bG,Group:_G,Label:xG,Item:wG,ItemText:kG,ItemIndicator:SG,ScrollUpButton:EG,ScrollDownButton:CG,Separator:AG},Symbol.toStringTag,{value:"Module"})),MG=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("g",{clipPath:"url(#clip0_17_2062)",children:_k("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"})})}))},OG=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("g",{clipPath:"url(#clip0_17_4631)",children:_k("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"})})}))},PG=JC(pG)(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"])),zL["--ll-color-background"],zL["--ll-border-radius-small"],zL["--ll-color-border"],zL["--ll-color-on-background-variant1"],zL["--ll-spacing-xx-small"],zL["--ll-spacing-x-small"],zL["--ll-spacing-xx-small"],zL["--ll-spacing-small"],(function(t){return"medium"===t.size?"32px":"40px"}),(function(t){return"medium"===t.size?zL["--ll-font-size-p"]:zL["--ll-font-size-h6"]})),RG=JC(FY)(tt||(tt=ci(["\n margin-left: ",";\n"])),zL["--ll-spacing-x-small"]),DG=JC(yG)(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"])),zL["--ll-color-background"],zL["--ll-border-radius-small"],zL["--ll-shadow-medium"],(function(t){return"medium"===t.size?zL["--ll-font-size-p"]:zL["--ll-font-size-h6"]})),LG=JC(wG)(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"])),zL["--ll-font-family"],zL["--ll-spacing-xx-small"],zL["--ll-spacing-x-large"],zL["--ll-spacing-xx-small"],zL["--ll-spacing-large"],zL["--ll-border-radius-small"],zL["--ll-color-on-surface-variant1"],zL["--ll-color-primary"],zL["--ll-color-on-primary"]),IG=JC(SG)(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"])),zL["--ll-spacing-large"]),NG=JC(bG)(it||(it=ci(["\n font-size: inherit;\n padding: ",";\n"])),zL["--ll-spacing-base-unit"]),FG=JC(mG)(at||(at=ci(["\n z-index: 1;\n"]))),zG=Object.freeze(Object.defineProperty({__proto__:null,Trigger:PG,SelectIcon:RG,Content:DG,Item:LG,ItemIndicator:IG,Viewport:NG,Portal:FG},Symbol.toStringTag,{value:"Module"})),jG=TG.Root,BG=zG.Portal;hi("g",Object.freeze(Object.defineProperty({__proto__:null,Root:jG,Trigger:function(t){var e=t.size,n=void 0===e?"medium":e,r=t.children,i=fi(t,jn);return $L(PG,_i(_i({size:n},i),{},{children:[r,KL(FY,{children:KL(JL,{SVGElement:MG,fill:zL["--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 KL(DG,_i(_i({size:n},i),{},{children:KL(NG,{children:r})}))},Item:function(t){var e=t.children,n=fi(t,Vn);return $L(LG,_i(_i({},n),{},{children:[KL(kG,{children:e}),KL(IG,{children:KL(JL,{SVGElement:OG,fill:"currentColor",height:12})})]}))},Portal:BG},Symbol.toStringTag,{value:"Module"})));function VG(t){return t.split("-")[0]}function HG(t){return t.split("-")[1]}function UG(t){return["top","bottom"].includes(VG(t))?"x":"y"}function WG(t){return"y"===t?"height":"width"}function YG(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=UG(e),l=WG(u),c=i[l]/2-a[l]/2,f="x"===u;switch(VG(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(HG(e)){case"start":r[u]-=c*(n&&f?-1:1);break;case"end":r[u]+=c*(n&&f?-1:1)}return r}var GG=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=YG(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=YG(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 qG(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 ZG(t){return _i(_i({},t),{},{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function XG(t,e){return KG.apply(this,arguments)}function KG(){return KG=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,_=qG(void 0===b?0:b),x=u[y?"floating"===g?"reference":"floating":g],t.t0=ZG,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=ZG,!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)}))),KG.apply(this,arguments)}var $G=Math.min,QG=Math.max;function JG(t,e,n){return QG(t,$G(e,n))}var tq=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=qG(u),v={x:l,y:c},g=UG(f),m=HG(f),y=WG(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=JG(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)})))()}}},eq={left:"right",right:"left",bottom:"top",top:"bottom"};function nq(t){return t.replace(/left|right|bottom|top/g,(function(t){return eq[t]}))}function rq(t,e,n){void 0===n&&(n=!1);var r=HG(t),i=UG(t),a=WG(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=nq(o)),{main:o,cross:nq(o)}}var iq={start:"end",end:"start"};function aq(t){return t.replace(/start|end/g,(function(t){return iq[t]}))}var oq=["top","right","bottom","left"];function sq(t){var e=nq(t);return[aq(t),e,aq(e)]}var uq=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=VG(i),w=v||(x!==s&&b?sq(s):[nq(s)]),k=[s].concat(mi(w)),n.next=22,XG(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=rq,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 lq(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function cq(t){return oq.some((function(e){return t[e]>=0}))}var fq=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,XG(t,_i(_i({},i),{},{elementContext:"reference"}));case 6:return a=e.sent,o=lq(a,n.reference),e.abrupt("return",{data:{referenceHiddenOffsets:o,referenceHidden:cq(o)}});case 9:return e.next=11,XG(t,_i(_i({},i),{},{altBoundary:!0}));case 11:return s=e.sent,u=lq(s,n.floating),e.abrupt("return",{data:{escapedOffsets:u,escaped:cq(u)}});case 14:return e.abrupt("return",{});case 15:case"end":return e.stop()}}),e)})))()}}};function dq(t,e){return hq.apply(this,arguments)}function hq(){return hq=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=VG(r),u=HG(r),l="x"===UG(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)}))),hq.apply(this,arguments)}var pq=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,dq(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 vq(t){return"x"===t?"y":"x"}var gq=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,XG(e,p);case 14:return g=n.sent,m=UG(VG(o)),y=vq(m),b=v[m],_=v[y],l&&(x="y"===m?"bottom":"right",w=b+g["y"===m?"top":"left"],k=b-g[x],b=JG(w,b,k)),f&&(S="y"===y?"bottom":"right",E=_+g["y"===y?"top":"left"],C=_-g[S],_=JG(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)})))()}}},mq=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=UG(a),m=vq(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(VG(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 yq(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function bq(t){if(null==t)return window;if(!yq(t)){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function _q(t){return bq(t).getComputedStyle(t)}function xq(t){return yq(t)?"":t?(t.nodeName||"").toLowerCase():""}function wq(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function kq(t){return t instanceof bq(t).HTMLElement}function Sq(t){return t instanceof bq(t).Element}function Eq(t){return!(("undefined"==typeof ShadowRoot?"undefined":Fi(ShadowRoot))>"u")&&(t instanceof bq(t).ShadowRoot||t instanceof ShadowRoot)}function Cq(t){var e=_q(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Aq(t){return["table","td","th"].includes(xq(t))}function Tq(t){var e=/firefox/i.test(wq()),n=_q(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 Mq(){return!/^((?!chrome|android).)*safari/i.test(wq())}var Oq=Math.min,Pq=Math.max,Rq=Math.round;function Dq(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&&kq(t)&&(u=t.offsetWidth>0&&Rq(s.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Rq(s.height)/t.offsetHeight||1);var c=Sq(t)?bq(t):window,f=!Mq()&&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 Lq(t){return((function(t){return t instanceof bq(t).Node}(t)?t.ownerDocument:t.document)||window.document).documentElement}function Iq(t){return Sq(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Nq(t){return Dq(Lq(t)).left+Iq(t).scrollLeft}function Fq(t,e,n){var r=kq(e),i=Lq(e),a=Dq(t,r&&function(t){var e=Dq(t);return Rq(e.width)!==t.offsetWidth||Rq(e.height)!==t.offsetHeight}(e),"fixed"===n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==xq(e)||Cq(i))&&(o=Iq(e)),kq(e)){var u=Dq(e,!0);s.x=u.x+e.clientLeft,s.y=u.y+e.clientTop}else i&&(s.x=Nq(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}function zq(t){return"html"===xq(t)?t:t.assignedSlot||t.parentNode||(Eq(t)?t.host:null)||Lq(t)}function jq(t){return kq(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function Bq(t){for(var e=bq(t),n=jq(t);n&&Aq(n)&&"static"===getComputedStyle(n).position;)n=jq(n);return n&&("html"===xq(n)||"body"===xq(n)&&"static"===getComputedStyle(n).position&&!Tq(n))?e:n||function(t){var e=zq(t);for(Eq(e)&&(e=e.host);kq(e)&&!["html","body"].includes(xq(e));){if(Tq(e))return e;e=e.parentNode}return null}(t)||e}function Vq(t){if(kq(t))return{width:t.offsetWidth,height:t.offsetHeight};var e=Dq(t);return{width:e.width,height:e.height}}function Hq(t){var e=zq(t);return["html","body","#document"].includes(xq(e))?t.ownerDocument.body:kq(e)&&Cq(e)?e:Hq(e)}function Uq(t,e){var n;void 0===e&&(e=[]);var r=Hq(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),a=bq(r),o=i?[a].concat(a.visualViewport||[],Cq(r)?r:[]):r,s=e.concat(o);return i?s:s.concat(Uq(o))}function Wq(t,e,n){return"viewport"===e?ZG(function(t,e){var n=bq(t),r=Lq(t),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;var l=Mq();(l||!l&&"fixed"===e)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}(t,n)):Sq(e)?function(t,e){var n=Dq(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):ZG(function(t){var e,n=Lq(t),r=Iq(t),i=null==(e=t.ownerDocument)?void 0:e.body,a=Pq(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Pq(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Nq(t),u=-r.scrollTop;return"rtl"===_q(i||n).direction&&(s+=Pq(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}(Lq(t)))}function Yq(t){var e=Uq(t),n=["absolute","fixed"].includes(_q(t).position)&&kq(t)?Bq(t):t;return Sq(n)?e.filter((function(t){return Sq(t)&&function(t,e){var n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Eq(n)){var r=e;do{if(r&&t===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(t,n)&&"body"!==xq(t)})):[]}var Gq={getClippingRect:function(t){var e=t.element,n=t.boundary,r=t.rootBoundary,i=t.strategy,a=[].concat(mi("clippingAncestors"===n?Yq(e):[].concat(n)),[r]),o=a[0],s=a.reduce((function(t,n){var r=Wq(e,n,i);return t.top=Pq(r.top,t.top),t.right=Oq(r.right,t.right),t.bottom=Oq(r.bottom,t.bottom),t.left=Pq(r.left,t.left),t}),Wq(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=kq(n),a=Lq(n);if(n===a)return e;var o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==xq(n)||Cq(a))&&(o=Iq(n)),kq(n))){var u=Dq(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:Sq,getDimensions:Vq,getOffsetParent:Bq,getDocumentElement:Lq,getElementRects:function(t){var e=t.reference,n=t.floating,r=t.strategy;return{reference:Fq(e,Bq(n),r),floating:_i(_i({},Vq(n)),{},{x:0,y:0})}},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===_q(t).direction}};function qq(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(Sq(t)?Uq(t):[]),mi(Uq(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})),Sq(t)&&!d&&g.observe(t),g.observe(e)}var y,b=d?Dq(t):null;return d&&function e(){var r=Dq(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 Zq=("undefined"==typeof document?"undefined":Fi(document))<"u"?ki.exports.useLayoutEffect:ki.exports.useEffect;function Xq(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(!Xq(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||Xq(t[a],e[a])))return!1}return!0}return t!=t&&e!=e}function Kq(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 Zq((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];Xq(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 GG(t,e,_i({platform:Gq},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]);Zq((function(){b.current&&y()}),[y]);var b=ki.exports.useRef(!1);Zq((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 $q=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?tq({element:e.current,padding:n}).fn(t):{}:e?tq({element:e,padding:n}).fn(t):{}}}},Qq=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(vI.svg,aI({},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"}))})),Jq=Qq,tZ="Popper",eZ=wi(oI(tZ),2),nZ=eZ[0],rZ=eZ[1],iZ=wi(nZ(tZ),2),aZ=iZ[0],oZ=iZ[1],sZ=ki.exports.forwardRef((function(t,e){var n=t.__scopePopper,r=t.virtualRef,i=fi(t,Gn),a=oZ("PopperAnchor",n),o=ki.exports.useRef(null),s=cI(e,o);return ki.exports.useEffect((function(){a.onAnchorChange((null==r?void 0:r.current)||o.current)})),r?null:ki.exports.createElement(vI.div,aI({},i,{ref:s}))})),uZ="PopperContent",lZ=wi(nZ(uZ),2),cZ=lZ[0],fZ=lZ[1],dZ=wi(nZ(uZ,{hasParent:!1,positionUpdateFns:new Set}),2),hZ=dZ[0],pZ=dZ[1],vZ=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=oZ(uZ,c),D=wi(ki.exports.useState(null),2),L=D[0],I=D[1],N=cI(e,(function(t){return I(t)})),F=wi(ki.exports.useState(null),2),z=F[0],j=F[1],B=$I(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(bZ),altBoundary:G},Z=Kq({strategy:"fixed",placement:U,whileElementsMounted:qq,middleware:[pq({mainAxis:p+H,alignmentAxis:y}),O?gq(_i({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?mq():void 0},q)):void 0,z?$q({element:z,padding:_}):void 0,O?uq(_i({},q)):void 0,_Z({arrowWidth:V,arrowHeight:H}),T?fq({strategy:"referenceHidden"}):void 0].filter(yZ)}),X=Z.reference,K=Z.floating,$=Z.strategy,Q=Z.x,J=Z.y,tt=Z.placement,et=Z.middlewareData,nt=Z.update;gI((function(){X(R.anchor)}),[X,R.anchor]);var rt=null!==Q&&null!==J,it=wi(xZ(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];gI((function(){L&&dt(window.getComputedStyle(L).zIndex)}),[L]);var ht=pZ(uZ,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(cZ,{scope:c,placedSide:at,onArrowChange:j,arrowX:st,arrowY:ut,shouldHideArrow:lt},gt?ki.exports.createElement(hZ,{scope:c,hasParent:!0,positionUpdateFns:vt},ki.exports.createElement(vI.div,mt)):ki.exports.createElement(vI.div,mt)))})),gZ={top:"bottom",right:"left",bottom:"top",left:"right"},mZ=ki.exports.forwardRef((function(t,e){var n,r=t.__scopePopper,i=fi(t,Zn),a=fZ("PopperArrow",r),o=gZ[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(Jq,aI({},i,{ref:e,style:_i(_i({},i.style),{},{display:"block"})})))}));function yZ(t){return void 0!==t}function bZ(t){return null!==t}var _Z=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(xZ(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 xZ(t){var e=wi(t.split("-"),2),n=e[0],r=e[1];return[n,void 0===r?"center":r]}var wZ=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(aZ,{scope:e,anchor:i,onAnchorChange:a},n)},kZ=sZ,SZ=vZ,EZ=mZ;var CZ=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=AZ(i.current);o.current="mounted"===u?t:"none"}),[u]),gI((function(){var e=i.current,n=a.current;if(n!==t){var r=o.current,s=AZ(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]),gI((function(){if(n){var t=function(t){var e=AZ(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=AZ(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=cI(r.ref,i.ref);return"function"==typeof n||r.isPresent?ki.exports.cloneElement(i,{ref:a}):null};function AZ(t){return(null==t?void 0:t.animationName)||"none"}CZ.displayName="Presence";var TZ="Popover",MZ=wi(oI(TZ,[rZ]),2),OZ=MZ[0],PZ=MZ[1],RZ=rZ(),DZ=wi(OZ(TZ),2),LZ=DZ[0],IZ=DZ[1],NZ=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=RZ(e),l=ki.exports.useRef(null),c=wi(ki.exports.useState(!1),2),f=c[0],d=c[1],h=wi(XI({prop:r,defaultProp:i,onChange:a}),2),p=h[0],v=void 0!==p&&p,g=h[1];return ki.exports.createElement(wZ,u,ki.exports.createElement(LZ,{scope:e,contentId:bI(),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))},FZ=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,Xn),i=IZ("PopoverAnchor",n),a=RZ(n),o=i.onCustomAnchorAdd,s=i.onCustomAnchorRemove;return ki.exports.useEffect((function(){return o(),function(){return s()}}),[o,s]),ki.exports.createElement(kZ,aI({},a,r,{ref:e}))})),zZ=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,Kn),i=IZ("PopoverTrigger",n),a=RZ(n),o=cI(e,i.triggerRef),s=ki.exports.createElement(vI.button,aI({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":$Z(i.open)},r,{ref:o,onClick:qI(t.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:ki.exports.createElement(kZ,aI({asChild:!0},a),s)})),jZ="PopoverPortal",BZ=wi(OZ(jZ,{forceMount:void 0}),2),VZ=BZ[0],HZ=BZ[1],UZ=function(t){var e=t.__scopePopover,n=t.forceMount,r=t.children,i=t.container,a=IZ(jZ,e);return ki.exports.createElement(VZ,{scope:e,forceMount:n},ki.exports.createElement(CZ,{present:n||a.open},ki.exports.createElement(RW,{asChild:!0,container:i},r)))},WZ="PopoverContent",YZ=ki.exports.forwardRef((function(t,e){var n=HZ(WZ,t.__scopePopover),r=t.forceMount,i=void 0===r?n.forceMount:r,a=fi(t,$n),o=IZ(WZ,t.__scopePopover);return ki.exports.createElement(CZ,{present:i||o.open},o.modal?ki.exports.createElement(GZ,aI({},a,{ref:e})):ki.exports.createElement(qZ,aI({},a,{ref:e})))})),GZ=ki.exports.forwardRef((function(t,e){var n=IZ(WZ,t.__scopePopover),r=ki.exports.useRef(null),i=cI(e,r),a=ki.exports.useRef(!1);return ki.exports.useEffect((function(){var t=r.current;if(t)return zW(t)}),[]),ki.exports.createElement(yY,{as:fI,allowPinchZoom:!0},ki.exports.createElement(ZZ,aI({},t,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qI(t.onCloseAutoFocus,(function(t){var e;t.preventDefault(),a.current||null===(e=n.triggerRef.current)||void 0===e||e.focus()})),onPointerDownOutside:qI(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:qI(t.onFocusOutside,(function(t){return t.preventDefault()}),{checkForDefaultPrevented:!1})})))})),qZ=ki.exports.forwardRef((function(t,e){var n=IZ(WZ,t.__scopePopover),r=ki.exports.useRef(!1);return ki.exports.createElement(ZZ,aI({},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()}}))})),ZZ=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=IZ(WZ,n),h=RZ(n);return bW(),ki.exports.createElement(SW,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a},ki.exports.createElement(vW,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:l,onDismiss:function(){return d.onOpenChange(!1)}},ki.exports.createElement(SZ,aI({"data-state":$Z(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)"))}))))})),XZ=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,Jn),i=IZ("PopoverClose",n);return ki.exports.createElement(vI.button,aI({type:"button"},r,{ref:e,onClick:qI(t.onClick,(function(){return i.onOpenChange(!1)}))}))})),KZ=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,tr),i=RZ(n);return ki.exports.createElement(EZ,aI({},i,r,{ref:e}))}));function $Z(t){return t?"open":"closed"}var QZ,JZ=NZ,tX=FZ,eX=zZ,nX=UZ,rX=YZ,iX=XZ,aX=KZ,oX=Object.freeze(Object.defineProperty({__proto__:null,createPopoverScope:PZ,Popover:NZ,PopoverAnchor:FZ,PopoverTrigger:zZ,PopoverPortal:UZ,PopoverContent:YZ,PopoverClose:XZ,PopoverArrow:KZ,Root:JZ,Anchor:tX,Trigger:eX,Portal:nX,Content:rX,Close:iX,Arrow:aX},Symbol.toStringTag,{value:"Module"})),sX=JC(eX)(ot||(ot=ci(["\n background: none;\n border: none;\n padding: 0;\n"]))),uX=JC(rX)(st||(st=ci(["\n padding: ",";\n background-color: ",";\n box-shadow: ",";\n border-radius: ",";\n width: 240px;\n"])),zL["--ll-spacing-small"],zL["--ll-color-background"],zL["--ll-shadow-small"],zL["--ll-border-radius-small"]),lX=JC(aX)(ut||(ut=ci(["\n fill: ",";\n"])),zL["--ll-color-background"]),cX=Object.freeze(Object.defineProperty({__proto__:null,Trigger:sX,Content:uX,Arrow:lX},Symbol.toStringTag,{value:"Module"})),fX=oX.Root,dX=oX.Portal,hX=cX.Trigger;hi("i",Object.freeze(Object.defineProperty({__proto__:null,Root:fX,Trigger:hX,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 KL(dX,{children:$L(uX,{side:e,className:r,sideOffset:a,collisionPadding:void 0===o?8:o,children:[KL(lX,{}),n]})})}},Symbol.toStringTag,{value:"Module"})));function pX(){return hi("z",pX=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}),pX.apply(this,arguments)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(QZ||(QZ={}));var vX="beforeunload";function gX(t,e,n){return Math.min(Math.max(t,e),n)}function mX(t){t.preventDefault(),t.returnValue=""}function yX(){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 bX(){return Math.random().toString(36).substr(2,8)}function _X(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 xX(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 wX(){return wX=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},wX.apply(this,arguments)}function kX(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 SX(t){if(!t)return"";var e=decodeURIComponent(t);return"false"!==e&&("true"===e||(0*+e==0?+e:e))}var EX=["children","location","__experimental__snapshot"],CX=["location","__experimental__snapshot"],AX=["basepath","routes"],TX=ki.exports.createContext(null),MX=ki.exports.createContext(null),OX=ki.exports.createContext(null),PX=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),RX=PX?ki.exports.useLayoutEffect:ki.exports.useEffect,DX=function(){return PX?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=QZ.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=QZ.Pop,s=i(),u=s[0],l=s[1],c=yX(),f=yX();function d(t){return"string"==typeof t?t:_X(t)}function h(t,e){return void 0===e&&(e=null),pX({pathname:l.pathname,hash:"",search:""},"string"==typeof t?xX(t):t,{state:e,key:bX()})}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(pX({},r.state,{idx:u}),""));var y={get action(){return o},get location(){return l},createHref:d,push:function t(e,i){var a=QZ.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=QZ.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(vX,mX),function(){e(),f.length||n.removeEventListener(vX,mX)}}};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 pX({pathname:"/",search:"",hash:"",state:null,key:bX()},"string"==typeof t?xX(t):t)})),o=gX(null==i?a.length-1:i,0,a.length-1),s=QZ.Pop,u=a[o],l=yX(),c=yX();function f(t,e){return void 0===e&&(e=null),pX({pathname:u.pathname,search:"",hash:""},"string"==typeof t?xX(t):t,{state:e,key:bX()})}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=gX(o+t,0,a.length-1),n=QZ.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:_X(t)},push:function t(e,n){var r=QZ.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=QZ.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}()},LX=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}(),IX=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)||DX(),r.stringifySearch=null!=(i=null==t?void 0:t.stringifySearch)?i:lK,r.parseSearch=null!=(a=null==t?void 0:t.parseSearch)?a:uK,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=wX({},this.current,e.from),s=function(t,e,n){e=e.replace(new RegExp("^"+t),"/"),n=n.replace(new RegExp("^"+t),"/");var r=nK(e),i=nK(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=tK([t].concat(mi(r.map((function(t){return t.value})))));return eK(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=JX(e.search,u))?i:{}:null!=(a=e.__searchFilters)&&a.length?u:{},c=iK(o.search,l),f=this.stringifySearch(c),d=!0===e.hash?o.hash:JX(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:iK(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}(LX);function NX(t){return _k(MX.Provider,_i({},t))}function FX(t){var e=t.children,n=t.location,r=t.__experimental__snapshot,i=kX(t,EX),a=ki.exports.useRef(null);a.current||(a.current=new jX({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),RX((function(){return o.subscribe((function(){u()}))}),[]),RX((function(){return o.updateLocation(n.current).unsubscribe}),[n.current.key]),ki.exports.createElement(TX.Provider,{value:{location:n}},ki.exports.createElement(OX.Provider,{value:{router:o}},_k(zX,{}),_k(NX,{value:[o.rootMatch].concat(mi(o.state.matches)),children:null!=e?e:_k(KX,{})})))}function zX(){var t=BX(),e=XX(),n=ZX();return RX((function(){e({to:".",search:!0,hash:!0}).href!==t.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})}),[]),null}var jX=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=kX(t,CX);(r=e.call(this)).routesById={},r.update=function(t){var e=t.basepath,n=t.routes,i=kX(t,AX);Object.assign(Pi(r),i),r.basepath=eK("/"+(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=tK(["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=wX({},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 HX(Pi(r),t);r.setState((function(t){return wX({},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 wX({},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 HX(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:{}})),UX(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)}(LX);function BX(){var t=ki.exports.useContext(TX);return QX(!!t,"useLocation must be used within a <ReactLocation />"),t.location}var VX=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=wX({},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)})),HX=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",UX(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=YX(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 VX(t)),i.router.matchCache[t.id]})),i}return Ci(n)}(LX);function UX(t){null==t||t.forEach((function(e,n){var r,i=null==t?void 0:t[n-1];e.data=wX({},null!=(r=null==i?void 0:i.data)?r:{},e.ownData)}))}function WX(){var t=ki.exports.useContext(OX);if(!t)throw QX(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return t.router}function YX(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=tK([u,n.path]),o=!!("/"!==n.path||null!=(r=n.children)&&r.length),s=$X(e,{to:a,search:n.search,fuzzy:o,caseSensitive:null!=(i=n.caseSensitive)?i:t.caseSensitive});return s&&(l=wX({},l,s)),!!s}))){i.next=5;break}return i.abrupt("return");case 5:d=GX(f.path,l),u=tK([u,d]),h=GX(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 GX(t,e,n){return tK(nK(t).map((function(t){return"*"!==t.value||n?"param"===t.type?null!=(r=e[t.value.substring(1)])?r:"":t.value:"";var r})))}function qX(){return ki.exports.useContext(MX)}function ZX(){var t,e=BX(),n=null==(t=qX())?void 0:t[0],r=XX();return rK((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 XX(){var t=BX(),e=WX();return rK((function(n){var r=t.buildNext(e.basepath,n),i=YX(e,r).map((function(t){var e;return null!=(e=t.route.searchFilters)?e:[]})).flat().filter(Boolean);return t.buildNext(e.basepath,wX({},n,{__searchFilters:i}))}))}function KX(){var t,e=WX(),n=li(qX()),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:_k(KX,{})}();return _k(NX,{value:r,children:o})}function $X(t,e){var n=function(t,e){var n,r=nK(t.pathname),i=nK(""+(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["*"]=tK(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 QX(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(n){}}}function JX(t,e){return function(t){return"function"==typeof t}(t)?t(e):t}function tK(t){return eK(t.filter(Boolean).join("/"))}function eK(t){return(""+t).replace(/\/{2,}/g,"/")}function nK(t){if(!t)return[];var e=[];if("/"===(t=eK(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 rK(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 iK(t,e){if(t===e)return t;var n=Array.isArray(t)&&Array.isArray(e);if(n||aK(t)&&aK(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]=iK(t[l],e[l]),o[l]===t[l]&&s++}return r===a&&s===r?t:o}return e}function aK(t){if(!oK(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!oK(n)&&!!n.hasOwnProperty("isPrototypeOf")}function oK(t){return"[object Object]"===Object.prototype.toString.call(t)}var sK,uK=(sK=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],SX(e.shift())):r[n]=SX(e.shift());return r}(t);for(var n in e){var r=e[n];if("string"==typeof r)try{e[n]=sK(r)}catch(i){}}return e}),lK=function(t){return function(e){(e=wX({},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 cK(t,e){return cK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cK(t,e)}var fK={error:null},dK=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=fK,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,cK(e,n),r.getDerivedStateFromError=function(t){return{error:t}};var i=r.prototype;return i.reset=function(){this.setState(fK)},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 _k(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),hK=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",hK);var pK=hi("L","undefined"==typeof window);function vK(){}function gK(t){return"number"==typeof t&&t>=0&&t!==1/0}function mK(t,e){return Math.max(t+(e||0)-Date.now(),0)}function yK(t,e,n){return OK(t)?"function"==typeof e?_i(_i({},n),{},{queryKey:t,queryFn:e}):_i(_i({},e),{},{queryKey:t}):t}function bK(t,e,n){return OK(t)?[_i(_i({},e),{},{queryKey:t}),n]:[t||{},e]}function _K(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(OK(s))if(i){if(e.queryHash!==wK(s,e.options))return!1}else if(!SK(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 xK(t,e){var n=t.exact,r=t.fetching,i=t.predicate,a=t.mutationKey;if(OK(a)){if(!e.options.mutationKey)return!1;if(n){if(kK(e.options.mutationKey)!==kK(a))return!1}else if(!SK(e.options.mutationKey,a))return!1}return("boolean"!=typeof r||"loading"===e.state.status===r)&&!(i&&!i(e))}function wK(t,e){return((null==e?void 0:e.queryKeyHashFn)||kK)(t)}function kK(t){return JSON.stringify(t,(function(t,e){return TK(e)?Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t}),{}):e}))}function SK(t,e){return EK(t,e)}function EK(t,e){return t===e||Fi(t)===Fi(e)&&(!(!t||!e||"object"!==Fi(t)||"object"!==Fi(e))&&!Object.keys(e).some((function(n){return!EK(t[n],e[n])})))}function CK(t,e){if(t===e)return t;var n=AK(t)&&AK(e);if(n||TK(t)&&TK(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]=CK(t[l],e[l]),o[l]===t[l]&&s++}return r===a&&s===r?t:o}return e}function AK(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function TK(t){if(!MK(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!MK(n)&&!!n.hasOwnProperty("isPrototypeOf")}function MK(t){return"[object Object]"===Object.prototype.toString.call(t)}function OK(t){return Array.isArray(t)}function PK(t){return new Promise((function(e){setTimeout(e,t)}))}function RK(t){PK(0).then(t)}function DK(t,e,n){return null!=n.isDataEqual&&n.isDataEqual(t,e)?t:"function"==typeof n.structuralSharing?n.structuralSharing(t,e):!1!==n.structuralSharing?CK(t,e):e}var LK=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(!pK&&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}(hK))),IK=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(!pK&&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}(hK));function NK(t){return Math.min(1e3*Math.pow(2,t),3e4)}function FK(t){return"online"!==(null!=t?t:"online")||IK.isOnline()}var zK=Ci((function t(e){Ai(this,t),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}));function jK(t){return t instanceof zK}function BK(t){var e,n,r,i=!1,a=0,o=!1,s=new Promise((function(t,e){n=t,r=e})),u=function(){return!LK.isFocused()||"always"!==t.networkMode&&!IK.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:NK,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),PK(h).then((function(){if(u())return f()})).then((function(){i?c(n):e()}))):c(n)}}))}};return FK(t.networkMode)?d():f().then(d),{promise:s,cancel:function(e){o||(c(new zK(e)),null==t.abort||t.abort())},continue:function(){null==e||e()},cancelRetry:function(){i=!0},continueRetry:function(){i=!1}}}var VK=console;var HK,UK,WK,YK,GK,qK,ZK=hi("a2",(HK=[],UK=0,WK=function(t){t()},YK=function(t){t()},qK=function(){var t=HK;HK=[],t.length&&RK((function(){YK((function(){t.forEach((function(t){WK(t)}))}))}))},{batch:function(t){var e;UK++;try{e=t()}finally{--UK||qK()}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];GK((function(){t.apply(void 0,n)}))}},schedule:GK=function(t){UK?HK.push(t):RK((function(){WK(t)}))},setNotifyFunction:function(t){WK=t},setBatchNotifyFunction:function(t){YK=t}})),XK=function(){function t(){Ai(this,t)}return Ci(t,[{key:"destroy",value:function(){this.clearGcTimeout()}},{key:"scheduleGc",value:function(){var t=this;this.clearGcTimeout(),gK(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:pK?1/0:3e5)}},{key:"clearGcTimeout",value:function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}]),t}(),KK=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||VK,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=DK(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(vK).catch(vK):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||!mK(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;(jK(t)&&t.silent||i.dispatch({type:"error",error:t}),jK(t))||(null==(e=(n=i.cache.config).onError)||e.call(n,t,i));i.isFetchingOptimistic||i.scheduleGc(),i.isFetchingOptimistic=!1};return this.retryer=BK({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:FK(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 jK(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),ZK.batch((function(){e.observers.forEach((function(e){e.onQueryUpdate(t)})),e.cache.notify({query:e,type:"updated",action:t})}))}}]),n}(XK);var $K=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:wK(i,e),o=this.get(a);return o||(o=new KK({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;ZK.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(bK(t,e),1)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(t){return _K(n,t)}))}},{key:"findAll",value:function(t,e){var n=wi(bK(t,e),1)[0];return Object.keys(n).length>0?this.queries.filter((function(t){return _K(n,t)})):this.queries}},{key:"notify",value:function(t){var e=this;ZK.batch((function(){e.listeners.forEach((function(e){e(t)}))}))}},{key:"onFocus",value:function(){var t=this;ZK.batch((function(){t.queries.forEach((function(t){t.onFocus()}))}))}},{key:"onOnline",value:function(){var t=this;ZK.batch((function(){t.queries.forEach((function(t){t.onOnline()}))}))}}]),n}(hK),QK=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||VK,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=BK({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:!FK(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),ZK.batch((function(){e.observers.forEach((function(e){e.onMutationUpdate(t)})),e.mutationCache.notify({mutation:e,type:"updated",action:t})}))}}]),r}(XK);var JK=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 QK({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;ZK.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 xK(t,e)}))}},{key:"findAll",value:function(t){return this.mutations.filter((function(e){return xK(t,e)}))}},{key:"notify",value:function(t){var e=this;ZK.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 ZK.batch((function(){return t.reduce((function(t,e){return t.then((function(){return e.continue().catch(vK)}))}),Promise.resolve())}))}}]),n}(hK);function t$(){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:e$(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]:e$(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 e$(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}var n$=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ai(this,t),this.queryCache=e.queryCache||new $K,this.mutationCache=e.mutationCache||new JK,this.logger=e.logger||VK,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}return Ci(t,[{key:"mount",value:function(){var t=this;this.unsubscribeFocus=LK.subscribe((function(){LK.isFocused()&&(t.resumePausedMutations(),t.queryCache.onFocus())})),this.unsubscribeOnline=IK.subscribe((function(){IK.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(bK(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=yK(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 ZK.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(bK(t,e),1)[0],r=this.queryCache;ZK.batch((function(){r.findAll(n).forEach((function(t){r.remove(t)}))}))}},{key:"resetQueries",value:function(t,e,n){var r=this,i=wi(bK(t,e,n),2),a=i[0],o=i[1],s=this.queryCache,u=_i({type:"active"},a);return ZK.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(bK(t,e,n),2),a=i[0],o=i[1],s=void 0===o?{}:o;void 0===s.revert&&(s.revert=!0);var u=ZK.batch((function(){return r.queryCache.findAll(a).map((function(t){return t.cancel(s)}))}));return Promise.all(u).then(vK).catch(vK)}},{key:"invalidateQueries",value:function(t,e,n){var r=this,i=wi(bK(t,e,n),2),a=i[0],o=i[1];return ZK.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(bK(t,e,n),2),a=i[0],o=i[1],s=ZK.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(vK);return null!=o&&o.throwOnError||(u=u.catch(vK)),u}},{key:"fetchQuery",value:function(t,e,n){var r=yK(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(vK).catch(vK)}},{key:"fetchInfiniteQuery",value:function(t,e,n){var r=yK(t,e,n);return r.behavior=t$(),this.fetchQuery(r)}},{key:"prefetchInfiniteQuery",value:function(t,e,n){return this.fetchInfiniteQuery(t,e,n).then(vK).catch(vK)}},{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 kK(t)===kK(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 SK(t,e.queryKey)}));return null==e?void 0:e.defaultOptions}}},{key:"setMutationDefaults",value:function(t,e){var n=this.mutationDefaults.find((function(e){return kK(t)===kK(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 SK(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=wK(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}(),r$=ki.exports.createContext(void 0),i$=ki.exports.createContext(!1);function a$(t,e){return t||(e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=r$),window.ReactQueryClientContext):r$)}hi("a3",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.context,n=ki.exports.useContext(a$(e,ki.exports.useContext(i$)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n}));var o$=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=a$(r,a);return _k(i$.Provider,{value:!r&&a,children:_k(o.Provider,{value:e,children:n})})},s$=hi("v",(function(t,e,n){return t()})),u$=function(t){return t.LOCAL_CONTENT="local-content",t.DATA_EXPLORER="data-explorer",t.DEMOGRAPHICS="demographics",t}(u$||{}),l$=new IX,c$=pa.lazy((function(){return s$((function(){return gi.import("./index-legacy.3a8c6aa8.js")}),void 0)})),f$=pa.lazy((function(){return s$((function(){return gi.import("./index-legacy.60df4146.js")}),void 0)})),d$=pa.lazy((function(){return s$((function(){return gi.import("./index-legacy.7c9f6b15.js")}),void 0)})),h$=function(t){var e=t.children,n=[{path:"/sdks-app/".concat("v1","/",u$.LOCAL_CONTENT),element:_k(c$,{})},{path:"/sdks-app/".concat("v1","/",u$.DATA_EXPLORER),element:_k(f$,{})},{path:"/sdks-app/".concat("v1","/",u$.DEMOGRAPHICS),element:_k(d$,{})}];return _k(FX,{location:l$,routes:n,children:e})},p$=Object.defineProperty,v$=function(t,e,n){return function(t,e,n){e in t?p$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n};function g$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var m$={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)}(m$);var y$=new(g$(m$.exports))({length:10}),b$=function(){function t(e,n){var r=this;Ai(this,t),v$(this,"connection"),v$(this,"channelId"),v$(this,"boundMessageHandler"),v$(this,"onMessageHandlers",[]),v$(this,"resolveConnection"),v$(this,"channelNodeId"),v$(this,"crossOrigin"),v$(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(y$()),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=y$(),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}(),_$=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}(b$),x$=1/0,w$=17976931348623157e292,k$=NaN,S$="[object Symbol]",E$=/^\s+|\s+$/g,C$=/^[-+]0x[0-9a-f]+$/i,A$=/^0b[01]+$/i,T$=/^0o[0-7]+$/i,M$=parseInt,O$=Object.prototype.toString;function P$(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)&&O$.call(t)==S$}(t))return k$;if(R$(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=R$(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(E$,"");var n=A$.test(t);return n||T$.test(t)?M$(t.slice(2),n?2:8):C$.test(t)?k$:+t}(t))===x$||t===-1/0){return(t<0?-1:1)*w$}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 R$(t){var e=Fi(t);return!!t&&("object"==e||"function"==e)}var D$=function(t){return P$(2,t)},L$=Object.defineProperty,I$=function(t,e,n){return function(t,e,n){e in t?L$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},N$=[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],F$=("undefined"==typeof BigInt?"undefined":Fi(BigInt))<"u"?BigInt:Number;function z$(t){var e=F$(0),n=F$(0),r=[];if(t.split("").forEach((function(t){var i=F$(function(t){var e=t.charCodeAt(0);return N$[e-45]}(t));e|=(i&F$(31))<<n,(i&F$(32))===F$(0)?(r.push(e),e=F$(0),n=F$(0)):n+=F$(5)})),n>0)throw new Error("Invalid encoding");return r}function j$(t){var e=t;return e&F$(1)&&(e=~e),+(e>>=F$(1)).toString()}var B$=Object.freeze(Object.defineProperty({__proto__:null,decode:function(t){for(var e=z$(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+=j$(e[c])/r,s+=j$(e[c+1])/r,a)u+=j$(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 V$=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"})),H$=(hi("w",Object.freeze(Object.defineProperty({__proto__:null,polyline:B$,formatGeometry:V$},Symbol.toStringTag,{value:"Module"}))),function(t){return"object"==Fi(t)&&null!==t&&!Array.isArray(t)});var U$=Object.freeze(Object.defineProperty({__proto__:null,isObject:H$,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 H$(e)&&H$(a)&&Object.keys(a).forEach((function(n){H$(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"})),W$=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"})),Y$=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"})),G$=Object.freeze(Object.defineProperty({__proto__:null,isSchool:function(t,e){return"school"===e}},Symbol.toStringTag,{value:"Module"})),q$=Object.freeze(Object.defineProperty({__proto__:null,poi:G$},Symbol.toStringTag,{value:"Module"}));hi({I:W$,a6:Y$,C:q$});var Z$={},X$={},K$={},$$={
|
|
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(tQ),a=r.decode||Q$,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]=nQ(c,a))}}return n},serialize:function(t,e,n){var r=n||{},i=r.encode||J$;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!eQ.test(t))throw new TypeError("argument name is invalid");var a=i(e);if(a&&!eQ.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(!eQ.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!eQ.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}},Q$=decodeURIComponent,J$=encodeURIComponent,tQ=/; */,eQ=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function nQ(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(K$,"__esModule",{value:!0});var rQ=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}}();K$.hasCookies=function(){var t=new sQ;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),"1"===n}catch(r){return!1}};var iQ=function(t){return t&&t.__esModule?t:{default:t}}($$);function aQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var oQ="lS_",sQ=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};aQ(this,t),this.cookieOptions=Object.assign({path:"/"},e),oQ=void 0===e.prefix?oQ:e.prefix}return rQ(t,[{key:"getItem",value:function(t){var e=iQ.default.parse(document.cookie);return e&&e.hasOwnProperty(oQ+t)?e[oQ+t]:null}},{key:"setItem",value:function(t,e){return document.cookie=iQ.default.serialize(oQ+t,e,this.cookieOptions),e}},{key:"removeItem",value:function(t){var e=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=iQ.default.serialize(oQ+t,"",e),null}},{key:"clear",value:function(){var t=iQ.default.parse(document.cookie);for(var e in t)0===e.indexOf(oQ)&&this.removeItem(e.substr(oQ.length));return null}}]),t}();K$.default=sQ,Object.defineProperty(X$,"__esModule",{value:!0}),X$.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 cQ("localStorage");if("session"===e)return cQ("sessionStorage");if("cookie"===e)return(0,uQ.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 uQ=K$,lQ="__test";function cQ(t){try{var e=window[t];return e.setItem(lQ,"1"),e.removeItem(lQ),!0}catch(n){return!1}}var fQ={};Object.defineProperty(fQ,"__esModule",{value:!0});var dQ=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 hQ=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 dQ(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}();fQ.default=hQ,Object.defineProperty(Z$,"__esModule",{value:!0}),Z$.MemoryStorage=Z$.CookieStorage=Z$.isSupported=Z$.storage=void 0;var pQ=mQ(X$),vQ=mQ(K$),gQ=mQ(fQ);function mQ(t){return t&&t.__esModule?t:{default:t}}var yQ=null;(0,pQ.default)("localStorage")?Z$.storage=yQ=window.localStorage:(0,pQ.default)("sessionStorage")?Z$.storage=yQ=window.sessionStorage:(0,pQ.default)("cookieStorage")?Z$.storage=yQ=new vQ.default:Z$.storage=yQ=new gQ.default;var bQ=Z$.default=yQ;Z$.storage=yQ,Z$.isSupported=pQ.default,Z$.CookieStorage=vQ.default,Z$.MemoryStorage=gQ.default;var _Q=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";Ai(this,t),I$(this,"group"),I$(this,"localStorage"),this.group=e,this.localStorage=bQ}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 _Q;var xQ=function(){function t(){Ai(this,t),I$(this,"storageLocation","suggestion_history"),I$(this,"storage"),I$(this,"history",[]),this.storage=new _Q("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}(),wQ=(hi("D",new xQ),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}))),kQ=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}(kQ||{}),SQ={},EQ={locale:"en"},CQ={"local-content":{globalOptions:EQ,options:{zoom:16,pitch:0,bearing:0,cooperativeGestures:!0}},"data-explorer":{globalOptions:EQ,options:SQ},demographics:{globalOptions:EQ,options:SQ}},AQ=D$((function(){return pa.createContext({})})),TQ=hi("u",(function(){var t=pa.useContext(AQ());if(!t)throw new Error("useStateManagerContext must be used under StateManagerProvider");return t})),MQ=pa.memo((function(t){var e,n,r,i,a,o,s=t.children,u=AQ(),l=BX().current.search,c=pa.useRef(l),f=BX().current.pathname.split("/"),d=f[f.length-1],h=CQ[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=wQ(b,500),w=ZX(),k=function(t){c.current=t,_(t)},S=function(t){var e;t.name===kQ.GET_STATE&&(null===(e=p.current)||void 0===e||e.message(kQ.GET_STATE_RESPONSE,c.current,t.eventId));t.name===kQ.SET_STATE&&k(t.data)};e=function(){var t=new _$(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=U$.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(kQ.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?_k(u.Provider,{value:C,children:s}):null}));MQ.displayName="StateManagerProvider";var OQ={en:function(){return s$((function(){return gi.import("./index-legacy.93d69255.js")}),void 0)},fr:function(){return s$((function(){return gi.import("./index-legacy.46f64d17.js")}),void 0)}},PQ={en:function(){return s$((function(){return gi.import("./index-legacy.57bc6187.js")}),void 0)},fr:function(){return s$((function(){return gi.import("./index-legacy.c4bf8ae2.js")}),void 0)}},RQ={en:function(){return s$((function(){return gi.import("./index-legacy.8634a2d4.js")}),void 0)},fr:function(){return s$((function(){return gi.import("./index-legacy.4330b3be.js")}),void 0)}},DQ={"local-content":function(t){return PQ[t]()},"data-explorer":function(t){return OQ[t]()},demographics:function(t){return RQ[t]()}},LQ=D$((function(){return pa.createContext({})})),IQ=(hi("d",(function(){var t=ki.exports.useContext(LQ());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=TQ().sdkState.globalOptions)||void 0===e?void 0:e.locale)||"en",c=LQ(),f=BX().current.pathname.split("/"),d=f[f.length-1],h=DQ[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 _k(c.Provider,{value:{translations:s},children:n})}),NQ=Object.defineProperty,FQ=function(t,e,n){return function(t,e,n){e in t?NQ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n};function zQ(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jQ={exports:{}},BQ={exports:{}},VQ=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)}},HQ=VQ,UQ=Object.prototype.toString;function WQ(t){return Array.isArray(t)}function YQ(t){return Fi(t)>"u"}function GQ(t){return"[object ArrayBuffer]"===UQ.call(t)}function qQ(t){return null!==t&&"object"==Fi(t)}function ZQ(t){if("[object Object]"!==UQ.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function XQ(t){return"[object Function]"===UQ.call(t)}function KQ(t,e){if(!(null===t||Fi(t)>"u"))if("object"!=Fi(t)&&(t=[t]),WQ(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 $Q={isArray:WQ,isArrayBuffer:GQ,isBuffer:function(t){return null!==t&&!YQ(t)&&null!==t.constructor&&!YQ(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"[object FormData]"===UQ.call(t)},isArrayBufferView:function(t){return("undefined"==typeof ArrayBuffer?"undefined":Fi(ArrayBuffer))<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&GQ(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:qQ,isPlainObject:ZQ,isUndefined:YQ,isDate:function(t){return"[object Date]"===UQ.call(t)},isFile:function(t){return"[object File]"===UQ.call(t)},isBlob:function(t){return"[object Blob]"===UQ.call(t)},isFunction:XQ,isStream:function(t){return qQ(t)&&XQ(t.pipe)},isURLSearchParams:function(t){return"[object URLSearchParams]"===UQ.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:KQ,merge:function t(){var e={};function n(n,r){ZQ(e[r])&&ZQ(n)?e[r]=t(e[r],n):ZQ(n)?e[r]=t({},n):WQ(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)KQ(arguments[r],n);return e},extend:function(t,e,n){return KQ(e,(function(e,r){t[r]=n&&"function"==typeof e?HQ(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}},QQ=$Q;function JQ(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var tJ=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(QQ.isURLSearchParams(e))r=e.toString();else{var i=[];QQ.forEach(e,(function(t,e){null===t||Fi(t)>"u"||(QQ.isArray(t)?e+="[]":t=[t],QQ.forEach(t,(function(t){QQ.isDate(t)?t=t.toISOString():QQ.isObject(t)&&(t=JSON.stringify(t)),i.push(JQ(e)+"="+JQ(t))})))})),r=i.join("&")}if(r){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t},eJ=$Q;function nJ(){this.handlers=[]}nJ.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},nJ.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},nJ.prototype.forEach=function(t){eJ.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var rJ,iJ,aJ,oJ,sJ,uJ,lJ,cJ,fJ,dJ,hJ,pJ,vJ,gJ,mJ,yJ,bJ,_J,xJ,wJ,kJ=nJ,SJ=$Q,EJ=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},CJ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};function AJ(){if(iJ)return rJ;iJ=1;var t=EJ;return rJ=function(e,n,r,i,a){var o=new Error(e);return t(o,n,r,i,a)},rJ}function TJ(){if(pJ)return hJ;pJ=1;var t=(cJ||(cJ=1,lJ=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),lJ),e=(dJ||(dJ=1,fJ=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}),fJ);return hJ=function(n,r){return n&&!t(r)?e(n,r):r},hJ}function MJ(){if(_J)return bJ;function t(t){this.message=t}return _J=1,t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,bJ=t}function OJ(){if(wJ)return xJ;wJ=1;var t=$Q,e=function(){if(oJ)return aJ;oJ=1;var t=AJ();return aJ=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)},aJ}(),n=function(){if(uJ)return sJ;uJ=1;var t=$Q;return sJ=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(){}},sJ}(),r=tJ,i=TJ(),a=function(){if(gJ)return vJ;gJ=1;var t=$Q,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 vJ=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},vJ}(),o=function(){if(yJ)return mJ;yJ=1;var t=$Q;return mJ=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},mJ}(),s=AJ(),u=CJ,l=MJ();return xJ=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)}))},xJ}var PJ=$Q,RJ=function(t,e){SJ.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},DJ=EJ,LJ={"Content-Type":"application/x-www-form-urlencoded"};function IJ(t,e){!PJ.isUndefined(t)&&PJ.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var NJ={transitional:CJ,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=OJ()),t}(),transformRequest:[function(t,e){return RJ(e,"Accept"),RJ(e,"Content-Type"),PJ.isFormData(t)||PJ.isArrayBuffer(t)||PJ.isBuffer(t)||PJ.isStream(t)||PJ.isFile(t)||PJ.isBlob(t)?t:PJ.isArrayBufferView(t)?t.buffer:PJ.isURLSearchParams(t)?(IJ(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):PJ.isObject(t)||e&&"application/json"===e["Content-Type"]?(IJ(e,"application/json"),function(t,e,n){if(PJ.isString(t))try{return(e||JSON.parse)(t),PJ.trim(t)}catch(gk){if("SyntaxError"!==gk.name)throw gk}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||NJ.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&PJ.isString(t)&&t.length)try{return JSON.parse(t)}catch(sP){if(i)throw"SyntaxError"===sP.name?DJ(sP,this,"E_JSON_PARSE"):sP}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, */*"}}};PJ.forEach(["delete","get","head"],(function(t){NJ.headers[t]={}})),PJ.forEach(["post","put","patch"],(function(t){NJ.headers[t]=PJ.merge(LJ)}));var FJ,zJ,jJ=NJ,BJ=$Q,VJ=jJ;function HJ(){return zJ||(zJ=1,FJ=function(t){return!(!t||!t.__CANCEL__)}),FJ}var UJ=$Q,WJ=function(t,e,n){var r=this||VJ;return BJ.forEach(n,(function(n){t=n.call(r,t,e)})),t},YJ=HJ(),GJ=jJ,qJ=MJ();function ZJ(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new qJ("canceled")}var XJ,KJ,$J=$Q,QJ=function(t,e){e=e||{};var n={};function r(t,e){return $J.isPlainObject(t)&&$J.isPlainObject(e)?$J.merge(t,e):$J.isPlainObject(e)?$J.merge({},e):$J.isArray(e)?e.slice():e}function i(n){return $J.isUndefined(e[n])?$J.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function a(t){if(!$J.isUndefined(e[t]))return r(void 0,e[t])}function o(n){return $J.isUndefined(e[n])?$J.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 $J.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,r=e(t);$J.isUndefined(r)&&e!==s||(n[t]=r)})),n};function JJ(){return KJ||(KJ=1,XJ={version:"0.26.1"}),XJ}var t0=JJ().version,e0={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){e0[t]=function(n){return Fi(n)===t||"a"+(e<1?"n ":" ")+t}}));var n0={};e0.transitional=function(t,e,n){function r(t,e){return"[Axios v"+t0+"] 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&&!n0[i]&&(n0[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 r0,i0,a0,o0,s0,u0,l0={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:e0},c0=$Q,f0=tJ,d0=kJ,h0=function(t){return ZJ(t),t.headers=t.headers||{},t.data=WJ.call(t,t.data,t.headers,t.transformRequest),t.headers=UJ.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),UJ.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||GJ.adapter)(t).then((function(e){return ZJ(t),e.data=WJ.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return YJ(e)||(ZJ(t),e&&e.response&&(e.response.data=WJ.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},p0=QJ,v0=l0,g0=v0.validators;function m0(t){this.defaults=t,this.interceptors={request:new d0,response:new d0}}m0.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=p0(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&&v0.assertOptions(n,{silentJSONParsing:g0.transitional(g0.boolean),forcedJSONParsing:g0.transitional(g0.boolean),clarifyTimeoutError:g0.transitional(g0.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=[h0,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(oQ){c(oQ);break}}try{a=h0(u)}catch(oQ){return Promise.reject(oQ)}for(;o.length;)a=a.then(o.shift(),o.shift());return a},m0.prototype.getUri=function(t){return t=p0(this.defaults,t),f0(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},c0.forEach(["delete","get","head","options"],(function(t){m0.prototype[t]=function(e,n){return this.request(p0(n||{},{method:t,url:e,data:(n||{}).data}))}})),c0.forEach(["post","put","patch"],(function(t){m0.prototype[t]=function(e,n,r){return this.request(p0(r||{},{method:t,url:e,data:n}))}}));var y0=$Q,b0=VQ,_0=m0,x0=QJ;var w0=function t(e){var n=new _0(e),r=b0(_0.prototype.request,n);return y0.extend(r,_0.prototype,n),y0.extend(r,n),r.create=function(n){return t(x0(e,n))},r}(jJ);w0.Axios=_0,w0.Cancel=MJ(),w0.CancelToken=function(){if(i0)return r0;i0=1;var t=MJ();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}},r0=e}(),w0.isCancel=HJ(),w0.VERSION=JJ().version,w0.all=function(t){return Promise.all(t)},w0.spread=(o0||(o0=1,a0=function(t){return function(e){return t.apply(null,e)}}),a0),w0.isAxiosError=function(){if(u0)return s0;u0=1;var t=$Q;return s0=function(e){return t.isObject(e)&&!0===e.isAxiosError},s0}(),BQ.exports=w0,BQ.exports.default=w0,function(t){t.exports=BQ.exports}(jQ);var k0=zQ(jQ.exports),S0=function(t,e){return k0.create({baseURL:{VITE_HERE_API_KEY:"KDL0aAzsbOcv7p53P2ovno2izfDOe93hyzZRrayktbE",VITE_API_KEY:"V3 dDMCy1EKO25e8GS5ZBB9Xe7YS52bfUrf.04252efe-5994-47bd-ad37-23e86f102d69",VITE_REACT_APP_MAPTILER_KEY:"9jNGatuzs05Q1oNlctEs",VITE_SEGMENT_KEY:"c0SISxJpICLXxstkrSppa4uxwYzBQbqf",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_API_URL||"https://api.locallogic.co/v3/",headers:{Accept:"application/json",Authorization:t},params:e})},E0=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}(E0||{}));function C0(t){this._maxSize=t,this.clear()}C0.prototype.clear=function(){this._size=0,this._values=Object.create(null)},C0.prototype.get=function(t){return this._values[t]},C0.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var A0=/[^.^\]^[]+|(?=\[\]|\.\.)/g,T0=/^\d+$/,M0=/^\d/,O0=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,P0=/^\s*(['"]?)(.*?)(\1)\s*$/,R0=new C0(512),D0=new C0(512),L0=new C0(512),I0={Cache:C0,split:F0,normalizePath:N0,setter:function(t){var e=N0(t);return D0.get(t)||D0.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=N0(t);return L0.get(t)||L0.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+(z0(e)||T0.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])&&(j0(r)&&(r='"'+r+'"'),a=!(o=z0(r))&&/^\d+$/.test(r),e.call(n,r,o,a,i,t))}(Array.isArray(t)?t:F0(t),e,n)}};function N0(t){return R0.get(t)||R0.set(t,F0(t).map((function(t){return t.replace(P0,"$2")})))}function F0(t){return t.match(A0)||[""]}function z0(t){return"string"==typeof t&&t&&-1!==["'",'"'].indexOf(t.charAt(0))}function j0(t){return!z0(t)&&(function(t){return t.match(M0)&&!t.match(T0)}(t)||function(t){return O0.test(t)}(t))}var B0=/[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,V0=function(t){return t.match(B0)||[]},H0=function(t,e){return V0(t).join(e).toLowerCase()},U0=function(t){return V0(t).reduce((function(t,e){return"".concat(t).concat(t?e[0].toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase())}),"")},W0=U0,Y0=function(t){return H0(t,"_")},G0={exports:{}};function q0(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}}}G0.exports=function(t){return q0(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)},G0.exports.array=q0;var Z0=Object.prototype.toString,X0=Error.prototype.toString,K0=RegExp.prototype.toString,$0=("undefined"==typeof Symbol?"undefined":Fi(Symbol))<"u"?Symbol.prototype.toString:function(){return""},Q0=/^Symbol\((.*)\)(.*)$/;function J0(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}function t1(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 J0(t);if("string"===n)return e?'"'.concat(t,'"'):t;if("function"===n)return"[Function "+(t.name||"anonymous")+"]";if("symbol"===n)return $0.call(t).replace(Q0,"Symbol($1)");var r=Z0.call(t).slice(8,-1);return"Date"===r?isNaN(t.getTime())?""+t:t.toISOString(t):"Error"===r||t instanceof Error?"["+X0.call(t)+"]":"RegExp"===r?K0.call(t):null}function e1(t,e){var n=t1(t,e);return null!==n?n:JSON.stringify(t,(function(t,n){var r=t1(this[t],e);return null!==r?r:n}),2)}function n1(t){return null==t?[]:[].concat(t)}var r1=/\$\{\s*(\w+)\s*\}/g,i1=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=[],n1(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(r1,(function(t,n){return e1(e[n])})):"function"==typeof t?t(e):t}},{key:"isError",value:function(t){return t&&"ValidationError"===t.name}}]),n}(Ri(Error)),a1={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(e1(i,!0),"`)."):".";return"mixed"!==n?"".concat(e," must be a `").concat(n,"` type, but the final value was: `").concat(e1(r,!0),"`")+a:"".concat(e," must match the configured type. The validated value was: `").concat(e1(r,!0),"`")+a}},o1={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"},s1={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"},u1={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},l1={isValue:"${path} field must be ${value}"},c1={noUnknown:"${path} field has unspecified keys: ${unknown}"},f1={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:a1,string:o1,number:s1,date:u1,object:c1,array:f1,boolean:l1});var d1=function(t){return t&&t.__isYupSchema__},h1=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(!d1(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 p1="$",v1=".",g1=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]===p1,this.isValue=this.key[0]===v1,this.isSibling=!this.isContext&&!this.isValue;var r=this.isContext?p1:this.isValue?v1:"";this.path=this.key.slice(r.length),this.getter=this.path&&I0.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}();g1.prototype.__isYupRef=!0;var m1=function(t){return null==t},y1=["value","path","label","options","originalValue","spec","sync"];function b1(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,y1),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 g1.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 i1(i1.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){i1.isError(t)?k(t):t?r(null):k(w())},C=function(t){i1.isError(t)?k(t):n(t)},A=m&&m1(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(I$){return void C(I$)}E(T)}else try{Promise.resolve(!!A||p.call(S,i,S)).then(E,C)}catch(I$){C(I$)}}return e.OPTIONS=t,e}var _1=function(t){return t.substr(0,t.length-1).substr(1)};function x1(t,e,n){var r,i,a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return e?(I0.forEach(e,(function(s,u,l){var c=u?_1(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 w1=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(g1.isRef(n)?t(n):n)}),[])}},{key:"add",value:function(t){g1.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}},{key:"delete",value:function(t){g1.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 k1(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;if(d1(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]=k1(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,k1(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(k1(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]=k1(g,n)}}return e}var S1=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 w1,this._blacklist=new w1,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((function(){n.typeError(a1.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=k1(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&&m1(i))return i;var a=e1(t),o=e1(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){i1.isError(t)&&(t.value=e),i(t)}),(function(t,e){t.length?i(new i1(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 i1.isError(t)&&(t.value=e),t}),(function(e,r){if(e.length)throw new i1(e,t);n=r})),n}},{key:"isValid",value:function(t,e){return this.validate(t,e).then((function(){return!0}),(function(t){if(i1.isError(t))return!1;throw t}))}},{key:"isValidSync",value:function(t,e){try{return this.validateSync(t,e),!0}catch(gk){if(i1.isError(gk))return!1;throw gk}}},{key:"_getDefault",value:function(){var t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this):k1(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=b1({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=b1({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]:a1.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]:a1.notNull;return this.nullability(!1,t)}},{key:"required",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a1.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=a1.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");var e=this.clone(),n=b1(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=n1(t).map((function(t){return new g1(t)}));return r.forEach((function(t){t.isSibling&&n.deps.push(t.key)})),n.conditions.push("function"==typeof e?new h1(r,e):h1.fromOptions(r,e)),n}},{key:"typeError",value:function(t){var e=this.clone();return e.internalTests.typeError=b1({message:t,name:"typeError",test:function(t){return!(!m1(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]:a1.oneOf,n=this.clone();return t.forEach((function(t){n._whitelist.add(t),n._blacklist.delete(t)})),n.internalTests.whiteList=b1({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]:a1.notOneOf,n=this.clone();return t.forEach((function(t){n._blacklist.add(t),n._whitelist.delete(t)})),n.internalTests.blacklist=b1({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}();S1.prototype.__isYupSchema__=!0;for(var E1=function(){var t=A1[C1];S1.prototype["".concat(t,"At")]=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=x1(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}))}},C1=0,A1=["validate","validateSync"];C1<A1.length;C1++)E1();for(var T1=0,M1=["equals","is"];T1<M1.length;T1++){var O1=M1[T1];S1.prototype[O1]=S1.prototype.oneOf}for(var P1=0,R1=["not","nope"];P1<R1.length;P1++){var D1=R1[P1];S1.prototype[D1]=S1.prototype.notOneOf}function L1(){return new I1}var I1=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]:l1.isValue;return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test:function(t){return m1(t)||!0===t}})}},{key:"isFalse",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l1.isValue;return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test:function(t){return m1(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}(S1);L1.prototype=I1.prototype;var N1=/^((([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,F1=/^((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,z1=/^(?:[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,j1=function(t){return m1(t)||t===t.trim()},B1={}.toString();function V1(){return new H1}var H1=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===B1?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||a1.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]:o1.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]:o1.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]:o1.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||o1.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]:o1.email;return this.matches(N1,{name:"email",message:t,excludeEmptyString:!0})}},{key:"url",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o1.url;return this.matches(F1,{name:"url",message:t,excludeEmptyString:!0})}},{key:"uuid",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o1.uuid;return this.matches(z1,{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]:o1.trim;return this.transform((function(t){return null!=t?t.trim():t})).test({message:t,name:"trim",test:j1})}},{key:"lowercase",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o1.lowercase;return this.transform((function(t){return m1(t)?t:t.toLowerCase()})).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:function(t){return m1(t)||t===t.toLowerCase()}})}},{key:"uppercase",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o1.uppercase;return this.transform((function(t){return m1(t)?t:t.toUpperCase()})).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:function(t){return m1(t)||t===t.toUpperCase()}})}}]),n}(S1);V1.prototype=H1.prototype;function U1(){return new W1}var W1=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]:s1.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]:s1.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]:s1.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]:s1.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]:s1.positive;return this.moreThan(0,t)}},{key:"negative",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s1.negative;return this.lessThan(0,t)}},{key:"integer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s1.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 m1(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 m1(e)?e:Math[t](e)}))}}]),n}(S1);U1.prototype=W1.prototype;var Y1=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;var G1=new Date(""),q1=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=Y1.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(g1.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]:u1.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]:u1.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}(S1);function Z1(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 X1(t){return function(e,n){return Z1(t,e)-Z1(t,n)}}q1.INVALID_DATE=G1,q1.prototype;var K1=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 $1(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]=$1(o)}return t.setFields(e)}if("array"===t.type){var s=t.optional();return s.innerType&&(s.innerType=$1(s.innerType)),s}return"tuple"===t.type?t.optional().clone({types:t.spec.types.map($1)}):"optional"in t?t.optional():t}var Q1=function(t){return"[object Object]"===Object.prototype.toString.call(t)};function J1(t,e){var n=Object.keys(t.fields);return Object.keys(e).filter((function(t){return-1===n.indexOf(t)}))}var t2=X1([]);function e2(t){return new n2(t)}var n2=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 Q1(t)||"function"==typeof t}}),r.fields=Object.create(null),r._sortErrors=t2,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 S1?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&&Q1(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||g1.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=I0.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),g1.isRef(n)&&n.isSibling?a(n.path,e):d1(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 G0.exports.array(Array.from(r),n).reverse()}(t,e),n._sortErrors=X1(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 $1(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=I0.getter(t,!0);return this.transform((function(i){if(!i)return i;var a=i;return function(t,e){var n=mi(I0.normalizePath(e));if(1===n.length)return n[0]in t;var r=n.pop(),i=I0.getter(I0.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(K1)}},{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]:c1.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=J1(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]:c1.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(W0)}},{key:"snakeCase",value:function(){return this.transformKeys(Y0)}},{key:"constantCase",value:function(){return this.transformKeys((function(t){return Y0(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}(S1);function r2(t){return new i2(t)}e2.prototype=n2.prototype;var i2=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(K1)}},{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(!d1(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+e1(t));return e.innerType=t,e}},{key:"length",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f1.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||f1.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||f1.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}(S1);r2.prototype=i2.prototype;var a2=new RegExp("(".concat(Object.keys(E0).filter((function(t){return Number.isNaN(Number(t))})).join("|"),")")),o2=e2({lat:U1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:U1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:U1().max(30),radius:U1().max(25e3),include:r2().of(V1().matches(a2,"Must be a valid Score category.").required()).required()}),s2=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}(s2||{})),u2=new RegExp("(".concat(Object.keys(s2).filter((function(t){return Number.isNaN(Number(t))})).join("|"),")")),l2=e2({lat:U1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:U1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geographyIds:r2().of(V1().required()),geographyLevels:r2().of(V1().matches(/10|20|30/,"Must be a valid Geography level.").required()),locationScoresRounding:L1(),include:r2().of(V1().matches(u2,"Must be a valid Score category.").required())}),c2=e2({lat:U1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:U1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:U1().max(30,"Must use a limit between 1 and 30."),radius:U1().max(25e3,"Must use a radius between 1 and 25000."),include_catchments:L1()}),f2=e2({lat:U1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:U1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geogId:V1()}),d2=e2({lat:U1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:U1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),include:V1().oneOf(["geometry"])}),h2=e2({lat:U1().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:U1().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),radius:U1().max(5e3)}),p2="LocalLogicClient/",v2=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=p2+r.constructor.name,r}return Ci(n)}(Ri(Error)),g2=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),FQ(Pi(r),"statusCode"),FQ(Pi(r),"statusText"),FQ(Pi(r),"data"),r.name=p2+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)),m2=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=p2+r.constructor.name,r}return Ci(n)}(Ri(Error)),y2=function(t){throw t instanceof i1?new v2(t):k0.isAxiosError(t)?new g2(t):new m2(t)},b2=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){y2(t)})):i}catch(rw){y2(rw)}},n},_2=Object.defineProperty,x2=Object.getOwnPropertyDescriptor,w2=function(t,e,n,r){for(var i,a=r>1?void 0:r?x2(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&&_2(e,n,a),a},k2=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{locale:"en"};Ai(this,t),FQ(this,"requests"),FQ(this,"options"),this.requests=S0(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,o2.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,l2.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,c2.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,f2.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,d2.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,h2.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}();w2([b2],k2.prototype,"getPois",1),w2([b2],k2.prototype,"getScores",1),w2([b2],k2.prototype,"getSchools",1),w2([b2],k2.prototype,"getProfiles",1),w2([b2],k2.prototype,"getGeographies",1),w2([b2],k2.prototype,"getDemographics",1);var S2,E2={exports:{}},C2={};!function(t){t.exports=function(){if(S2)return C2;S2=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 C2.Fragment=n,C2.jsx=o,C2.jsxs=o,C2}()}(E2);var A2,T2=E2.exports.Fragment,M2=E2.exports.jsx,O2=E2.exports.jsxs,P2=Object.defineProperty,R2=function(t,e,n){return function(t,e,n){e in t?P2(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},D2={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"},L2={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"},I2={colorBlue70:"#0056D3"},N2=Object.freeze(Object.defineProperty({__proto__:null,primaryColors:D2,neutralColors:L2,blueColors:I2},Symbol.toStringTag,{value:"Module"})),F2={"--ll-color-primary":D2.colorPrimary50,"--ll-color-primary-variant1":D2.colorPrimary40,"--ll-color-background":L2.colorNeutral100,"--ll-color-surface":L2.colorNeutral95,"--ll-color-surface-variant1":L2.colorNeutral90,"--ll-color-surface-variant2":L2.colorNeutral80,"--ll-color-on-primary":L2.colorNeutral100,"--ll-color-on-primary-variant1":L2.colorNeutral90,"--ll-color-on-background":L2.colorNeutral10,"--ll-color-on-background-variant1":L2.colorNeutral30,"--ll-color-on-surface":L2.colorNeutral10,"--ll-color-on-surface-variant1":L2.colorNeutral30,"--ll-color-placeholder":L2.colorNeutral60,"--ll-color-disabled":L2.colorNeutral60,"--ll-color-border":L2.colorNeutral90,"--ll-color-link":I2.colorBlue70},z2={"--ll-border-radius-small":"".concat(4,"px"),"--ll-border-radius-medium":"".concat(8,"px"),"--ll-border-radius-large":"".concat(16,"px")},j2={"--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)"},B2=_i(_i(_i(_i(_i(_i(_i({},F2),z2),{"--ll-shadow-small":"rgb(0 0 0 / 18%) 0px 2px 5px","--ll-shadow-medium":"0px 5px 11px -4px rgba(0,0,0,0.75)"}),j2),{"--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"}),V2=_i(_i({},B2),{},{"--ll-color-primary":D2.colorPrimary60,"--ll-color-primary-variant1":D2.colorPrimary50,"--ll-color-background":L2.colorNeutral10,"--ll-color-surface":L2.colorNeutral20,"--ll-color-surface-variant1":L2.colorNeutral30,"--ll-color-surface-variant2":L2.colorNeutral40,"--ll-color-on-primary":L2.colorNeutral100,"--ll-color-on-primary-variant1":L2.colorNeutral90,"--ll-color-on-background":L2.colorNeutral99,"--ll-color-on-background-variant1":L2.colorNeutral80,"--ll-color-on-surface":L2.colorNeutral80,"--ll-color-on-surface-variant1":L2.colorNeutral90,"--ll-color-placeholder":L2.colorNeutral70,"--ll-color-disabled":L2.colorNeutral70,"--ll-color-border":L2.colorNeutral30,"--ll-color-link":I2.colorBlue70}),H2=Object.keys(B2).reduce((function(t,e){return _i(_i({},t),{},xi({},e,"var(".concat(e,")")))}),{}),U2={day:B2,night:V2},W2=eA(lt||(lt=ci(["\n :root {\n ",";\n }\n"])),(function(t){var e=t.themeName,n=t.overrides;return _i(_i({},U2[e||"day"]),n)})),Y2={default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}},G2=Object.freeze(Object.defineProperty({__proto__:null,transitions:Y2},Symbol.toStringTag,{value:"Module"})),q2={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},Z2=Object.freeze(Object.defineProperty({__proto__:null,screenSizes:q2},Symbol.toStringTag,{value:"Module"})),X2=_i(_i({colors:N2},G2),Z2),K2=JC.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}),H2["--ll-border-radius-small"],H2["--ll-font-family"],H2["--ll-font-size-caption-1"],(function(t){var e=t.$size;return"small"===e?KC(ct||(ct=ci(["\n padding: calc("," / 2) ",";\n "])),H2["--ll-spacing-xx-small"],H2["--ll-spacing-xx-small"]):"large"===e?KC(ft||(ft=ci(["\n padding: calc("," / 2) ",";\n font-size: ",";\n line-height: ",";\n "])),H2["--ll-spacing-small"],H2["--ll-spacing-medium"],H2["--ll-font-size-p"],H2["--ll-font-size-h6"]):KC(dt||(dt=ci(["\n padding: "," ",";\n "])),H2["--ll-spacing-xx-small"],H2["--ll-spacing-x-small"])})),$2={exports:{}},Q2={};!function(t){t.exports=function(){if(A2)return Q2;A2=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 Q2.Fragment=n,Q2.jsx=o,Q2.jsxs=o,Q2}()}($2);var J2=$2.exports.Fragment,t5=$2.exports.jsx,e5=$2.exports.jsxs,n5=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?L2.colorNeutral10:a,s=t.backgroundColor,u=void 0===s?L2.colorNeutral90:s,l=t.onClick;return t5(K2,{$size:r,onClick:l,className:i,$textColor:o,$backgroundColor:u,children:e})},r5=JC.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})),i5=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 t5(r5,{fill:r,height:a,width:void 0===o?24:o,children:t5(e,{})})},a5=function(t){var e=t.$variant;return"h1"===e?H2["--ll-font-size-h1"]:"h2"===e?H2["--ll-font-size-h2"]:"h3"===e?H2["--ll-font-size-h3"]:"h4"===e?H2["--ll-font-size-h4"]:"h5"===e?H2["--ll-font-size-h5"]:"h6"===e?H2["--ll-font-size-h6"]:"p"===e?H2["--ll-font-size-p"]:"caption1"===e?H2["--ll-font-size-caption-1"]:"caption2"===e?H2["--ll-font-size-caption-2"]:H2["--ll-font-size-h2"]},o5=function(t){var e=t.$color;return e in H2?H2[e]:e},s5=JC.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"})),u5=JC.div(gt||(gt=ci(["\n ","\n"])),(function(t){return KC(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,a5(t),"sans-serif"===t.$family?H2["--ll-font-family"]:H2["--ll-font-family-mono"],t.$fontVariant,t.$letterSpacing,o5(t),H2[t.$weight],a5(t),o5(t),s5,t.$lineClamp&&KC(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))})),l5=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 t5(u5,{$variant:r,$align:i,$color:o,$lineClamp:s,$weight:f,$family:h,$fontVariant:g,$letterSpacing:m,children:t5(s5,{as:y,className:p,$noMargin:u,$lineHeight:l,children:e})})},c5=JC.a(bt||(bt=ci(["\n font-family: ",";\n font-size: ",";\n color: ",";\n cursor: pointer;\n\n ","\n"])),H2["--ll-font-family"],H2["--ll-font-size-p"],H2["--ll-color-link"],(function(t){var e=t.lineClamp;return e&&KC(_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)})),f5=function(t){var e=t.children,n=t.href,r=t.className,i=t.lineClamp,a=t.download;return t5(c5,{href:n,target:"_blank",rel:"noreferrer",lineClamp:i,className:r,download:a,children:e})};function d5(){return d5=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},d5.apply(this,arguments)}function h5(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,p5.apply(void 0,[i].concat(mi(e)))]}function p5(){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 v5(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}function g5(){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 v5(e,t)}))}}function m5(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ki.exports.useCallback(g5.apply(void 0,e),e)}var y5=ki.exports.forwardRef((function(t,e){var n=t.children,r=fi(t,rr),i=ki.exports.Children.toArray(n),a=i.find(x5);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(b5,d5({},r,{ref:e}),ki.exports.isValidElement(o)?ki.exports.cloneElement(o,void 0,s):null)}return ki.exports.createElement(b5,d5({},r,{ref:e}),n)}));y5.displayName="Slot";var b5=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:g5(e,n.ref)})):ki.exports.Children.count(n)>1?ki.exports.Children.only(null):null}));b5.displayName="SlotClone";var _5=function(t){var e=t.children;return ki.exports.createElement(ki.exports.Fragment,null,e)};function x5(t){return ki.exports.isValidElement(t)&&t.type===_5}var w5=["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?y5:e;return ki.exports.useEffect((function(){window[Symbol.for("radix-ui")]=!0}),[]),ki.exports.createElement(a,d5({},i,{ref:n}))}));return n.displayName="Primitive.".concat(e),_i(_i({},t),{},xi({},e,n))}),{});var k5=Boolean(null==globalThis?void 0:globalThis.document)?ki.exports.useLayoutEffect:function(){},S5=va["useId".toString()]||function(){},E5=0;function C5(t){var e=wi(ki.exports.useState(S5()),2),n=e[0],r=e[1];return k5((function(){t||r((function(t){return null!=t?t:String(E5++)}))}),[t]),t||(n?"radix-".concat(n):"")}var A5=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}}),T5=wi(A5,2),M5=T5[0],O5=T5[1],P5=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=m5(e,o),u=C5(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(M5,{id:u,controlRef:a},ki.exports.createElement(w5.span,d5({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())}}})))})),R5=function(t){var e=O5("LabelConsumer"),n=e.controlRef;return ki.exports.useEffect((function(){t&&(n.current=t)}),[t,n]),e.id};JC(P5)(xt||(xt=ci(["\n font-size: ",";\n font-family: ",";\n color: ",";\n"])),H2["--ll-font-size-p"],H2["--ll-font-family"],H2["--ll-color-placeholder"]);var D5=nA(wt||(wt=ci(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),L5={small:16,medium:24,large:32},I5=JC.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 L5[e]}),(function(t){var e=t.size;return L5[e]}),(function(t){var e=t.size;return L5[e]/6}),H2["--ll-color-on-surface-variant1"],D5),N5=function(t){var e=t.size;return t5(I5,{size:void 0===e?"medium":e})},F5={primary:{background:H2["--ll-color-primary"],onBackground:H2["--ll-color-on-primary"],hover:H2["--ll-color-primary-variant1"]}},z5=function(t){var e=t.size;return"".concat("small"===e?32:"large"===e?48:40,"px")},j5=KC(St||(St=ci(["\n color: ",";\n\n &:disabled {\n cursor: default;\n }\n\n height: ",";\n"])),H2["--ll-color-on-background"],z5),B5=KC(Et||(Et=ci(["\n ",";\n height: ",";\n"])),(function(t){var e=t.color,n=void 0===e?"primary":e;return KC(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 "])),F5[n].background,F5[n].onBackground,F5[n].hover,H2["--ll-color-disabled"])}),z5),V5=KC(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 KC(Tt||(Tt=ci(["\n border-color: ",";\n border-width: 1px;\n border-style: solid;\n color: ",";\n "])),F5[n].background,F5[n].background)}),z5),H5=JC.div(Mt||(Mt=ci(["\n display: flex;\n align-items: center;\n margin-right: ",";\n margin-left: calc(-1 * ",");\n"])),H2["--ll-spacing-x-small"],H2["--ll-spacing-xx-small"]),U5=JC.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"])),H2["--ll-font-weight-normal"],H2["--ll-border-radius-small"],(function(t){return{contained:B5,outlined:V5,text:j5}[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?H2["--ll-font-size-caption-1"]:H2["--ll-font-size-p"])}),(function(t){var e=t.size;return"padding: 0 ".concat("small"===e?H2["--ll-spacing-x-small"]:"large"===e?H2["--ll-spacing-medium"]:H2["--ll-spacing-small"])})),W5=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 t5(U5,{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?t5(N5,{}):e5(J2,{children:[u&&t5(H5,{children:u}),n]})})}));W5.displayName="Button",JC.div(Pt||(Pt=ci(["\n display: flex;\n flex-direction: column;\n"]))),JC.div(Rt||(Rt=ci(["\n position: relative;\n"]))),JC(W5)(Dt||(Dt=ci(["\n position: absolute;\n right: 0px;\n top: 0px;\n"]))),JC.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"])),H2["--ll-border-radius-small"],H2["--ll-spacing-x-small"],H2["--ll-font-size-p"],H2["--ll-font-family"],H2["--ll-color-on-background"],H2["--ll-color-background"],H2["--ll-color-border"],H2["--ll-spacing-medium"],H2["--ll-shadow-small"],q2.tablet,H2["--ll-font-size-h6"]);var Y5={small:20,medium:32,large:40},G5=JC(CL.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 Y5[e]}),(function(t){var e=t.$size;return Y5[e]}),H2["--ll-shadow-small"]),q5=function(t){var e=t.fill,n=void 0===e?"#fff":e,r=t.backgroundColor,i=void 0===r?H2["--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 t5(G5,{"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:X2.transitions.default,children:t5(i5,{SVGElement:s,fill:n,height:Y5[l]/1.5,width:Y5[l]/1.5})})};function Z5(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 X5(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 K5(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=X5(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=X5(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 $5(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 Q5(t){var e=wi(ki.exports.useState(void 0),2),n=e[0],r=e[1];return k5((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 J5="Switch",t3=wi(h5(J5),2),e3=t3[0],n3=(t3[1],wi(e3(J5),2)),r3=n3[0],i3=n3[1],a3=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=m5(e,(function(t){return v(t)})),m=R5(p),y=r||m,b=ki.exports.useRef(!1),_=!p||Boolean(p.closest("form")),x=wi(K5({prop:a,defaultProp:o,onChange:f}),2),w=x[0],k=void 0!==w&&w,S=x[1];return ki.exports.createElement(r3,{scope:n,checked:k,disabled:u},ki.exports.createElement(w5.button,d5({type:"button",role:"switch","aria-checked":k,"aria-labelledby":y,"aria-required":s,"data-state":u3(k),"data-disabled":u?"":void 0,disabled:u,value:c},d,{ref:g,onClick:Z5(t.onClick,(function(t){S((function(t){return!t})),_&&(b.current=t.isPropagationStopped(),b.current||t.stopPropagation())}))})),_&&ki.exports.createElement(s3,{control:p,bubbles:!b.current,name:i,value:c,checked:k,required:s,disabled:u,style:{transform:"translateX(-100%)"}}))})),o3=ki.exports.forwardRef((function(t,e){var n=t.__scopeSwitch,r=fi(t,ur),i=i3("SwitchThumb",n);return ki.exports.createElement(w5.span,d5({"data-state":u3(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:e}))})),s3=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=$5(n),u=Q5(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",d5({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 u3(t){return t?"checked":"unchecked"}var l3=o3;function c3(t,e){var n=wi(e,2),r=n[0],i=n[1];return Math.min(i,Math.max(r,t))}JC(a3)(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"])),H2["--ll-color-disabled"],H2["--ll-color-on-background"]),JC(l3)(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'])),H2["--ll-color-background"]);var f3=ki.exports.createContext(void 0);function d3(t){var e=ki.exports.useContext(f3);return t||e||"ltr"}function h3(t){var e=t+"CollectionProvider",n=wi(h5(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=m5(e,s(u,n).collectionRef);return pa.createElement(y5,{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=m5(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(y5,(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 p3=["PageUp","PageDown"],v3=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],g3={ltr:["ArrowDown","Home","ArrowLeft","PageDown"],rtl:["ArrowDown","Home","ArrowRight","PageDown"]},m3="Slider",y3=wi(h3(m3),3),b3=y3[0],_3=y3[1],x3=y3[2],w3=wi(h5(m3,[x3]),2),k3=w3[0],S3=(w3[1],wi(k3(m3),2)),E3=S3[0],C3=S3[1],A3=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=m5(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?P3:R3,O=K5({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=c3(r,[i,o]);L((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=V3(t,a,e);return U3(n,p*u)?(C.current=n.indexOf(a),String(n)===String(t)?t:n):t}))}return ki.exports.createElement(E3,{scope:t.__scopeSlider,disabled:d,min:i,max:o,valueIndexToChangeRef:C,thumbs:E.current,values:D,orientation:c},ki.exports.createElement(b3.Provider,{scope:t.__scopeSlider},ki.exports.createElement(b3.Slot,{scope:t.__scopeSlider},ki.exports.createElement(M,d5({"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=p3.includes(e.key)||e.shiftKey&&v3.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(B3,{key:e,name:n?n+(D.length>1?"[]":""):void 0,value:t})})))})),T3=wi(k3(m3,{startEdge:"left",endEdge:"right",size:"width",direction:1}),2),M3=T3[0],O3=T3[1],P3=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=m5(e,(function(t){return f(t)})),h=ki.exports.useRef(),p=d3(i),v="ltr"===p;function g(t){var e=h.current||c.getBoundingClientRect(),i=W3([0,e.width],v?[n,r]:[r,n]);return h.current=e,i(t-e.left)}return ki.exports.createElement(M3,{scope:t.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width"},ki.exports.createElement(D3,d5({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=g3[p].includes(t.key);null==s||s({event:t,direction:e?-1:1})}})))})),R3=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=m5(e,u),c=ki.exports.useRef();function f(t){var e=c.current||u.current.getBoundingClientRect(),i=W3([0,e.height],[r,n]);return c.current=e,i(t-e.top)}return ki.exports.createElement(M3,{scope:t.__scopeSlider,startEdge:"bottom",endEdge:"top",size:"height",direction:1},ki.exports.createElement(D3,d5({"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=g3.ltr.includes(t.key);null==o||o({event:t,direction:e?-1:1})}})))})),D3=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=C3(m3,n);return ki.exports.createElement(w5.span,d5({},l,{ref:e,onKeyDown:Z5(t.onKeyDown,(function(t){"Home"===t.key?(o(t),t.preventDefault()):"End"===t.key?(s(t),t.preventDefault()):p3.concat(v3).includes(t.key)&&(u(t),t.preventDefault())})),onPointerDown:Z5(t.onPointerDown,(function(t){var e=t.target;e.setPointerCapture(t.pointerId),t.preventDefault(),c.thumbs.has(e)?e.focus():r(t)})),onPointerMove:Z5(t.onPointerMove,(function(t){t.target.hasPointerCapture(t.pointerId)&&i(t)})),onPointerUp:Z5(t.onPointerUp,(function(t){var e=t.target;e.hasPointerCapture(t.pointerId)&&(e.releasePointerCapture(t.pointerId),a(t))}))}))})),L3=ki.exports.forwardRef((function(t,e){var n=t.__scopeSlider,r=fi(t,vr),i=C3("SliderTrack",n);return ki.exports.createElement(w5.span,d5({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},r,{ref:e}))})),I3="SliderRange",N3=ki.exports.forwardRef((function(t,e){var n,r=t.__scopeSlider,i=fi(t,gr),a=C3(I3,r),o=O3(I3,r),s=m5(e,ki.exports.useRef(null)),u=a.values.length,l=a.values.map((function(t){return H3(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(w5.span,d5({"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))}))})),F3="SliderThumb",z3=ki.exports.forwardRef((function(t,e){var n=_3(t.__scopeSlider),r=wi(ki.exports.useState(null),2),i=r[0],a=r[1],o=m5(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(j3,d5({},t,{ref:o,index:s}))})),j3=ki.exports.forwardRef((function(t,e){var n=t.__scopeSlider,r=t.index,i=fi(t,mr),a=C3(F3,n),o=O3(F3,n),s=wi(ki.exports.useState(null),2),u=s[0],l=s[1],c=m5(e,(function(t){return l(t)})),f=Q5(u),d=a.values[r],h=void 0===d?0:H3(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=W3([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(b3.ItemSlot,{scope:t.__scopeSlider},ki.exports.createElement(w5.span,d5({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:Z5(t.onFocus,(function(){a.valueIndexToChangeRef.current=r}))}))))})),B3=function(t){var e=t.value,n=fi(t,yr),r=ki.exports.useRef(null),i=$5(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",d5({style:{display:"none"}},n,{ref:r,defaultValue:e}))};function V3(){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 H3(t,e,n){return 100/(n-e)*(t-e)}function U3(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 W3(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 Y3=A3,G3=L3,q3=N3,Z3=z3;JC.div(zt||(zt=ci([""]))),JC.div(jt||(jt=ci(["\n display: flex;\n align-items: center;\n"]))),JC(Y3)(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"]))),JC(Z3)(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"])),H2["--ll-color-primary"],H2["--ll-shadow-medium"]),JC(G3)(Ht||(Ht=ci(["\n height: 4px;\n border-radius: 2px;\n background-color: ",";\n position: relative;\n flex: 1;\n"])),H2["--ll-color-surface-variant1"]),JC(q3)(Ut||(Ut=ci(["\n height: 100%;\n position: absolute;\n background-color: ",";\n border-radius: 2px;\n"])),H2["--ll-color-primary"]);var X3=JC.div(Wt||(Wt=ci(["\n margin: ",";\n flex-shrink: 0;\n"])),(function(t){return function(t){var e=t.$vertical,n=t.$spacing,r=H2[n];return e?"".concat(r," 0 0 0"):"0 ".concat(r," 0 0")}(t)})),K3=function(t){var e=t.vertical,n=void 0!==e&&e,r=t.spacing;return t5(X3,{$vertical:n,$spacing:void 0===r?"--ll-spacing-auto":r})},$3={primary:{background:H2["--ll-color-primary"],onBackground:H2["--ll-color-on-primary"],hover:H2["--ll-color-primary-variant1"]},inverse:{background:"transparent",onBackground:H2["--ll-color-primary"],hover:"rgba(0,0,0,0.05)"},neutral:{background:"transparent",onBackground:H2["--ll-color-on-background-variant1"],hover:"rgba(0,0,0,0.05)"}},Q3={small:24,medium:32,large:48};JC.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 KC(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 "])),$3[n].background,$3[n].onBackground,Q3[i],Q3[i],$3[n].hover,H2["--ll-color-on-background-variant1"])}));var J3=nA(Zt||(Zt=ci(["\n from {\n background-position: -800px 0;\n }\n\n to {\n background-position: 800px 0;\n }\n"])));JC.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"])),H2["--ll-border-radius-medium"],J3,H2["--ll-color-surface-variant1"],H2["--ll-color-surface-variant2"],H2["--ll-color-surface-variant1"],(function(t){var e=t.height,n=t.width;return KC(qt||(qt=ci(["\n height: ",";\n width: ",";\n "])),e,n)})),JC.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"]))),JC.div($t||($t=ci(["\n display: flex;\n flex-direction: column;\n align-items: center;\n"])));var t4=Object.defineProperty,e4=function(t,e,n){return function(t,e,n){e in t?t4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},n4=function(t){return"object"==Fi(t)&&null!==t&&!Array.isArray(t)};var r4=Object.freeze(Object.defineProperty({__proto__:null,isObject:n4,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 n4(e)&&n4(a)&&Object.keys(a).forEach((function(n){n4(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"})),i4={},a4={},o4={},s4={
|
|
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(c4),a=r.decode||u4,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]=d4(c,a))}}return n},serialize:function(t,e,n){var r=n||{},i=r.encode||l4;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!f4.test(t))throw new TypeError("argument name is invalid");var a=i(e);if(a&&!f4.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(!f4.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!f4.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}},u4=decodeURIComponent,l4=encodeURIComponent,c4=/; */,f4=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d4(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(o4,"__esModule",{value:!0});var h4=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}}();o4.hasCookies=function(){var t=new m4;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),"1"===n}catch(r){return!1}};var p4=function(t){return t&&t.__esModule?t:{default:t}}(s4);function v4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var g4="lS_",m4=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v4(this,t),this.cookieOptions=Object.assign({path:"/"},e),g4=void 0===e.prefix?g4:e.prefix}return h4(t,[{key:"getItem",value:function(t){var e=p4.default.parse(document.cookie);return e&&e.hasOwnProperty(g4+t)?e[g4+t]:null}},{key:"setItem",value:function(t,e){return document.cookie=p4.default.serialize(g4+t,e,this.cookieOptions),e}},{key:"removeItem",value:function(t){var e=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=p4.default.serialize(g4+t,"",e),null}},{key:"clear",value:function(){var t=p4.default.parse(document.cookie);for(var e in t)0===e.indexOf(g4)&&this.removeItem(e.substr(g4.length));return null}}]),t}();o4.default=m4,Object.defineProperty(a4,"__esModule",{value:!0}),a4.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 _4("localStorage");if("session"===e)return _4("sessionStorage");if("cookie"===e)return(0,y4.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 y4=o4,b4="__test";function _4(t){try{var e=window[t];return e.setItem(b4,"1"),e.removeItem(b4),!0}catch(n){return!1}}var x4={};Object.defineProperty(x4,"__esModule",{value:!0});var w4=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 k4=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 w4(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}();x4.default=k4,Object.defineProperty(i4,"__esModule",{value:!0}),i4.MemoryStorage=i4.CookieStorage=i4.isSupported=i4.storage=void 0;var S4=A4(a4),E4=A4(o4),C4=A4(x4);function A4(t){return t&&t.__esModule?t:{default:t}}var T4=null;(0,S4.default)("localStorage")?i4.storage=T4=window.localStorage:(0,S4.default)("sessionStorage")?i4.storage=T4=window.sessionStorage:(0,S4.default)("cookieStorage")?i4.storage=T4=new E4.default:i4.storage=T4=new C4.default;var M4=i4.default=T4;i4.storage=T4,i4.isSupported=S4.default,i4.CookieStorage=E4.default,i4.MemoryStorage=C4.default;var O4=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";Ai(this,t),e4(this,"group"),e4(this,"localStorage"),this.group=e,this.localStorage=M4}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 O4;var P4=function(){function t(){Ai(this,t),e4(this,"storageLocation","suggestion_history"),e4(this,"storage"),e4(this,"history",[]),this.storage=new O4("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 R4(t){return t+.5|0}new P4;var D4=function(t,e,n){return Math.max(Math.min(t,n),e)};function L4(t){return D4(R4(2.55*t),0,255)}function I4(t){return D4(R4(255*t),0,255)}function N4(t){return D4(R4(t/2.55)/100,0,1)}function F4(t){return D4(R4(100*t),0,100)}var z4={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},j4=mi("0123456789ABCDEF"),B4=function(t){return j4[15&t]},V4=function(t){return j4[(240&t)>>4]+j4[15&t]},H4=function(t){return(240&t)>>4==(15&t)};function U4(t){var e=function(t){return H4(t.r)&&H4(t.g)&&H4(t.b)&&H4(t.a)}(t)?B4:V4;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 W4=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Y4(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 G4(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 q4(t,e,n){var r,i=Y4(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 Z4(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 X4(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(I4)}function K4(t,e,n){return X4(Y4,t,e,n)}function $4(t){return(t%360+360)%360}function Q4(t){var e,n=W4.exec(t),r=255;if(n){n[5]!==e&&(r=n[6]?L4(+n[5]):I4(+n[5]));var i=$4(+n[2]),a=+n[3]/100,o=+n[4]/100;return e="hwb"===n[1]?function(t,e,n){return X4(q4,t,e,n)}(i,a,o):"hsv"===n[1]?function(t,e,n){return X4(G4,t,e,n)}(i,a,o):K4(i,a,o),{r:e[0],g:e[1],b:e[2],a:r}}}var J4,t6={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"},e6={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 n6(t){J4||(J4=function(){var t,e,n,r,i,a={},o=Object.keys(e6),s=Object.keys(t6);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,t6[n]);n=parseInt(e6[r],16),a[i]=[n>>16&255,n>>8&255,255&n]}return a}(),J4.transparent=[0,0,0,0]);var e=J4[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}var r6=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var i6=function(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055},a6=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)};function o6(t,e,n){if(t){var r=Z4(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=K4(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function s6(t,e){return t&&Object.assign(e||{},t)}function u6(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=I4(t[3]))):(e=s6(t,{r:0,g:0,b:0,a:1})).a=I4(e.a),e}function l6(t){return"r"===t.charAt(0)?function(t){var e,n,r,i=r6.exec(t),a=255;if(i){if(i[7]!==e){var o=+i[7];a=i[8]?L4(o):D4(255*o,0,255)}return e=+i[1],n=+i[3],r=+i[5],{r:e=255&(i[2]?L4(e):D4(e,0,255)),g:n=255&(i[4]?L4(n):D4(n,0,255)),b:r=255&(i[6]?L4(r):D4(r,0,255)),a:a}}}(t):Q4(t)}var c6=function(){function t(e){if(Ai(this,t),e instanceof t)return e;var n,r=Fi(e);"object"===r?n=u6(e):"string"===r&&(n=function(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*z4[t[1]],g:255&17*z4[t[2]],b:255&17*z4[t[3]],a:5===n?17*z4[t[4]]:255}:(7===n||9===n)&&(e={r:z4[t[1]]<<4|z4[t[2]],g:z4[t[3]]<<4|z4[t[4]],b:z4[t[5]]<<4|z4[t[6]],a:9===n?z4[t[7]]<<4|z4[t[8]]:255})),e}(e)||n6(e)||l6(e)),this._rgb=n,this._valid=!!n}return Ci(t,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var t=s6(this._rgb);return t&&(t.a=N4(t.a)),t},set:function(t){this._rgb=u6(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(N4(t.a),")"):"rgb(".concat(t.r,", ").concat(t.g,", ").concat(t.b,")"))}(this._rgb):void 0}},{key:"hexString",value:function(){return this._valid?U4(this._rgb):void 0}},{key:"hslString",value:function(){return this._valid?function(t){if(t){var e=Z4(t),n=e[0],r=F4(e[1]),i=F4(e[2]);return t.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(N4(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=a6(N4(t.r)),i=a6(N4(t.g)),a=a6(N4(t.b));return{r:I4(i6(r+n*(a6(N4(e.r))-r))),g:I4(i6(i+n*(a6(N4(e.g))-i))),b:I4(i6(a+n*(a6(N4(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=I4(t),this}},{key:"clearer",value:function(t){return this._rgb.a*=1-t,this}},{key:"greyscale",value:function(){var t=this._rgb,e=R4(.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 o6(this._rgb,2,t),this}},{key:"darken",value:function(t){return o6(this._rgb,2,-t),this}},{key:"saturate",value:function(t){return o6(this._rgb,1,t),this}},{key:"desaturate",value:function(t){return o6(this._rgb,1,-t),this}},{key:"rotate",value:function(t){return function(t,e){var n=Z4(t);n[0]=$4(n[0]+e),n=K4(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 f6(){}var d6=function(){var t=0;return function(){return t++}}();function h6(t){return null===t||Fi(t)>"u"}function p6(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 v6(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function g6(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function m6(t,e){return g6(t)?t:e}function y6(t,e){return Fi(t)>"u"?e:t}var b6=function(t,e){return"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t};function _6(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function x6(t,e,n,r){var i,a,o;if(p6(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(v6(t))for(a=(o=Object.keys(t)).length,i=0;i<a;i++)e.call(n,t[o[i]],o[i])}function w6(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 k6(t){if(p6(t))return t.map(k6);if(v6(t)){for(var e=Object.create(null),n=Object.keys(t),r=n.length,i=0;i<r;++i)e[n[i]]=k6(t[n[i]]);return e}return t}function S6(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function E6(t,e,n,r){if(S6(t)){var i=e[t],a=n[t];v6(i)&&v6(a)?C6(i,a,r):e[t]=k6(a)}}function C6(t,e,n){var r=p6(e)?e:[e],i=r.length;if(!v6(t))return t;for(var a,o=(n=n||{}).merger||E6,s=0;s<i;++s)if(v6(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 A6(t,e){return C6(t,e,{merger:T6})}function T6(t,e,n){if(S6(t)){var r=e[t],i=n[t];v6(r)&&v6(i)?A6(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=k6(i))}}var M6={"":function(t){return t},x:function(t){return t.x},y:function(t){return t.y}};function O6(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 P6(t,e){return(M6[e]||(M6[e]=O6(e)))(t)}function R6(t){return t.charAt(0).toUpperCase()+t.slice(1)}var D6=function(t){return Fi(t)<"u"},L6=function(t){return"function"==typeof t},I6=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 N6=Math.PI,F6=2*N6,z6=Number.POSITIVE_INFINITY,j6=N6/180,B6=N6/2,V6=N6/4,H6=2*N6/3,U6=Math.log10,W6=Math.sign;function Y6(t,e,n){return Math.abs(t-e)<n}function G6(t){var e=Math.round(t);t=Y6(t,e,t/1e3)?e:t;var n=Math.pow(10,Math.floor(U6(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function q6(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Z6(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 X6(t){return t*(N6/180)}function K6(t){return t*(180/N6)}function $6(t){if(g6(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}}function Q6(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*N6&&(a+=F6),{angle:a,distance:i}}function J6(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function t8(t){return(t%F6+F6)%F6}function e8(t,e,n,r){var i=t8(t),a=t8(e),o=t8(n),s=t8(a-i),u=t8(o-i),l=t8(i-a),c=t8(i-o);return i===a||i===o||r&&a===o||s>u&&l<c}function n8(t,e,n){return Math.max(e,Math.min(n,t))}function r8(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 i8(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 a8=function(t,e,n,r){return i8(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})},o8=function(t,e,n){return i8(t,n,(function(r){return t[r][e]>=n}))};var s8=["push","pop","shift","splice","unshift"];function u8(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)&&(s8.forEach((function(e){delete t[e]})),delete t._chartjs)}}function l8(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 c8=("undefined"==typeof window?"undefined":Fi(window))>"u"?function(t){return t()}:window.requestAnimationFrame;function f8(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,c8.call(window,(function(){r=!1,t.apply(e,n)})))}}var d8=function(t){return"start"===t?"left":"end"===t?"right":"center"},h8=function(t,e,n){return"start"===t?e:"end"===t?n:(e+n)/2},p8=function(t){return 0===t||1===t},v8=function(t,e,n){return-Math.pow(2,10*(t-=1))*Math.sin((t-e)*F6/n)},g8=function(t,e,n){return Math.pow(2,-10*t)*Math.sin((t-e)*F6/n)+1},m8={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*B6)},easeOutSine:function(t){return Math.sin(t*B6)},easeInOutSine:function(t){return-.5*(Math.cos(N6*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 p8(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 p8(t)?t:v8(t,.075,.3)},easeOutElastic:function(t){return p8(t)?t:g8(t,.075,.3)},easeInOutElastic:function(t){return p8(t)?t:t<.5?.5*v8(2*t,.1125,.45):.5+.5*g8(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-m8.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*m8.easeInBounce(2*t):.5*m8.easeOutBounce(2*t-1)+.5}};function y8(t){if(t&&"object"==Fi(t)){var e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function b8(t){return y8(t)?t:new c6(t)}function _8(t){return y8(t)?t:new c6(t).saturate(.5).darken(.1).hexString()}var x8=["x","y","borderWidth","radius","tension"],w8=["color","borderColor","backgroundColor"];var k8=new Map;function S8(t,e,n){return function(t,e){e=e||{};var n=t+JSON.stringify(e),r=k8.get(n);return r||(r=new Intl.NumberFormat(t,e),k8.set(n,r)),r}(e,n).format(t)}var E8={values:function(t){return p6(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=U6(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),S8(t,i,l)},logarithmic:function(t,e,n){if(0===t)return"0";var r=n[e].significand||t/Math.pow(10,Math.floor(U6(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?E8.numeric.call(this,t,e,n):""}};var C8={formatters:E8};var A8=Object.create(null),T8=Object.create(null);function M8(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 O8(t,e,n){return"string"==typeof e?C6(M8(t,e),n):C6(M8(t,""),e)}var P8=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 _8(e.backgroundColor)},this.hoverBorderColor=function(t,e){return _8(e.borderColor)},this.hoverColor=function(t,e){return _8(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 O8(this,t,e)}},{key:"get",value:function(t){return M8(this,t)}},{key:"describe",value:function(t,e){return O8(T8,t,e)}},{key:"override",value:function(t,e){return O8(A8,t,e)}},{key:"route",value:function(t,e,n,r){var i,a=M8(this,t),o=M8(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 v6(t)?Object.assign({},e,t):y6(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}(),R8=new P8({_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:w8},numbers:{type:"number",properties:x8}}),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:C8.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 D8(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 L8(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!==p6(l))f=D8(t,i,a,f,l);else if(p6(l))for(s=0,u=l.length;s<u;s++)null!=(c=l[s])&&!p6(c)&&(f=D8(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 I8(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 N8(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function F8(t,e,n,r){z8(t,e,n,r,null)}function z8(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)*j6;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,F6):t.arc(n,r,v,0,F6),t.closePath();break;case"triangle":c=i?i/2:v,t.moveTo(n+Math.sin(g)*c,r-Math.cos(g)*v),g+=H6,t.lineTo(n+Math.sin(g)*c,r-Math.cos(g)*v),g+=H6,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+V6)*u,f=Math.cos(g+V6)*(i?i/2-l:u),s=Math.sin(g+V6)*u,d=Math.sin(g+V6)*(i?i/2-l:u),t.arc(n-f,r-s,l,g-N6,g-B6),t.arc(n+d,r-o,l,g-B6,g),t.arc(n+f,r+s,l,g,g+B6),t.arc(n-d,r+o,l,g+B6,g+N6),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+=V6;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+=V6;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+=V6,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 j8(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 B8(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function V8(t){t.restore()}function H8(t,e,n,r,i){var a,o,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=p6(e)?e:[e],l=s.strokeWidth>0&&""!==s.strokeColor;for(t.save(),t.font=i.string,U8(t,s),a=0;a<u.length;++a)o=u[a],s.backdrop&&Y8(t,s.backdrop),l&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),h6(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(o,n,r,s.maxWidth)),t.fillText(o,n,r,s.maxWidth),W8(t,n,r,o,s),r+=i.lineHeight;t.restore()}function U8(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),h6(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 W8(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 Y8(t,e){var n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function G8(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,-B6,N6,!0),t.lineTo(n,r+a-o.bottomLeft),t.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,N6,B6,!0),t.lineTo(n+i-o.bottomRight,r+a),t.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,B6,0,!0),t.lineTo(n+i,r+o.topRight),t.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-B6,!0),t.lineTo(n+o.topLeft,r)}var q8=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Z8=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function X8(t,e){var n=(""+t).match(q8);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 K8=function(t){return+t||0};function $8(t,e){var n,r={},i=v6(e),a=i?Object.keys(e):e,o=v6(t)?i?function(n){return y6(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]=K8(o(u))}}catch(l){s.e(l)}finally{s.f()}return r}function Q8(t){return $8(t,{top:"y",right:"x",bottom:"y",left:"x"})}function J8(t){return $8(t,["topLeft","topRight","bottomLeft","bottomRight"])}function t9(t){var e=Q8(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function e9(t,e){t=t||{},e=e||R8.font;var n=y6(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));var r=y6(t.style,e.style);r&&!(""+r).match(Z8)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);var i={family:y6(t.family,e.family),lineHeight:X8(y6(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:y6(t.weight,e.weight),string:""};return i.string=function(t){return!t||h6(t.size)||h6(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i}function n9(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&&p6(o)&&(o=o[n%o.length],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}function r9(t,e){return Object.assign(Object.create(t),e)}function i9(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]};D6(i)||(i=g9("_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 i9([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 l9(e,r,(function(){return v9(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 m9(t).includes(e)},ownKeys:function(t){return m9(t)},set:function(t,e,n){var r=t._storage||(t._storage=a());return t[e]=r[e]=n,delete t._keys,!0}})}function a9(t,e,n,r){var i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:o9(t,r),setContext:function(e){return a9(t,e,n,r)},override:function(i){return a9(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 l9(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 L6(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),u9(t,e)&&(e=h9(i._scopes,i,t,e)),e}(e,s,t,n)),p6(s)&&s.length&&(s=function(t,e,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._descriptors;if(D6(a.index)&&r(t))e=e[a.index%e.length];else if(v6(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=h9(l,i,t,c.value);e.push(a9(d,a,o&&o[t],s))}}catch(h){f.e(h)}finally{f.f()}}return e}(e,s,t,o.isIndexable)),u9(e,s)&&(s=a9(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 o9(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:L6(r)?r:function(){return r},isIndexable:L6(a)?a:function(){return a}}}var s9=function(t,e){return t?t+R6(e):e},u9=function(t,e){return v6(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object)};function l9(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];var r=n();return t[e]=r,r}function c9(t,e,n){return L6(t)?t(e,n):t}var f9=function(t,e){return!0===t?e:"string"==typeof t?P6(e,t):void 0};function d9(t,e,n,r,i){var a,o=zi(e);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=f9(n,s);if(u){t.add(u);var l=c9(u._fallback,n,i);if(D6(l)&&l!==n&&l!==r)return l}else if(!1===u&&D6(r)&&n!==r)return null}}catch(c){o.e(c)}finally{o.f()}return!1}function h9(t,e,n,r){var i=e._rootScopes,a=c9(e._fallback,n,r),o=[].concat(mi(t),mi(i)),s=new Set;s.add(r);var u=p9(s,o,n,a||n,r);return!(null===u||D6(a)&&a!==n&&(u=p9(s,o,a,u,r),null===u))&&i9(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 p6(i)&&v6(n)?n:i||{}}(e,n,r)}))}function p9(t,e,n,r,i){for(;n;)n=d9(t,e,n,r,i);return n}function v9(t,e,n,r){var i,a,o=zi(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(i=g9(s9(s,t),n),D6(i))return u9(t,i)?h9(n,r,t,i):i}}catch(u){o.e(u)}finally{o.f()}}function g9(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(D6(a))return a}}}catch(o){r.e(o)}finally{r.f()}}function m9(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 y9(){return("undefined"==typeof window?"undefined":Fi(window))<"u"&&("undefined"==typeof document?"undefined":Fi(document))<"u"}function b9(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function _9(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 x9=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};var w9=["top","right","bottom","left"];function k9(t,e,n){var r={};n=n?"-"+n:"";for(var i=0;i<4;i++){var a=w9[i];r[a]=parseFloat(t[e+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function S9(t,e){if("native"in t)return t;var n=e.canvas,r=e.currentDevicePixelRatio,i=x9(n),a="border-box"===i.boxSizing,o=k9(i,"padding"),s=k9(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 E9=function(t){return Math.round(10*t)/10};function C9(t,e,n,r){var i=x9(t),a=k9(i,"margin"),o=_9(i.maxWidth,t,"clientWidth")||z6,s=_9(i.maxHeight,t,"clientHeight")||z6,u=function(t,e,n){var r,i;if(void 0===e||void 0===n){var a=b9(t);if(a){var o=a.getBoundingClientRect(),s=x9(a),u=k9(s,"border","width"),l=k9(s,"padding");e=o.width-l.width-u.width,n=o.height-l.height-u.height,r=_9(s.maxWidth,a,"clientWidth"),i=_9(s.maxHeight,a,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||z6,maxHeight:i||z6}}(t,e,n),l=u.width,c=u.height;if("content-box"===i.boxSizing){var f=k9(i,"border","width"),d=k9(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=E9(Math.min(l,o,u.maxWidth)),c=E9(Math.min(c,s,u.maxHeight)),l&&!c&&(c=E9(l/2)),(void 0!==e||void 0!==n)&&r&&u.height&&c>u.height&&(c=u.height,l=E9(Math.floor(c*r))),{width:l,height:c}}function A9(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 T9=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 M9(t,e){var n=function(t,e){return x9(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function O9(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 P9(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 R9(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 D9=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=c8.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}(),L9=new D9,I9="transparent",N9={boolean:function(t,e,n){return n>.5?e:t},color:function(t,e,n){var r=b8(t||I9),i=r.valid&&b8(e||I9);return i&&i.valid?i.mix(r,n).hexString():e},number:function(t,e,n){return t+(e-t)*n}},F9=function(){function t(e,n,r,i){Ai(this,t);var a=n[r];i=n9([e.to,i,a,e.from]);var o=n9([e.from,a,i]);this._active=!0,this._fn=e.fn||N9[e.type||Fi(o)],this._easing=m8[e.easing]||m8.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=n9([t.to,e,r,t.from]),this._from=n9([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}(),z9=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(v6(t)){var e=Object.keys(R8.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((function(r){var i=t[r];if(v6(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()}(p6(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 F9(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?(L9.add(this._chart,n),!0):void 0}Object.assign(t,e)}}]),t}();function j9(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 B9(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 V9(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}g6(o=t.values[a])&&(l||0===e||W6(e)===W6(o))&&(e+=o)}return e}}function H9(t,e){var n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function U9(t,e,n){var r=t[e]||(t[e]={});return r[n]||(r[n]={})}function W9(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 Y9(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]=U9(a,f,v))[u]=g,n._top=W9(n,s,!0,i.type),n._bottom=W9(n,s,!1,i.type),(n._visualValues||(n._visualValues={}))[u]=g}}function G9(t,e){var n=t.scales;return Object.keys(n).filter((function(t){return n[t].axis===e})).shift()}function q9(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 Z9=function(t){return"reset"===t||"none"===t},X9=function(t,e){return e?t:Object.assign({},t)},K9=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=H9(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&&q9(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=y6(n.xAxisID,G9(t,"x")),a=e.yAxisID=y6(n.yAxisID,G9(t,"y")),o=e.rAxisID=y6(n.rAxisID,G9(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&&u8(this._data,this),t._stacked&&q9(t)}},{key:"_dataCheck",value:function(){var t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(v6(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){u8(n,this);var r=this._cachedMeta;q9(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]}}),s8.forEach((function(e){var n="_onData"+R6(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=H9(e.vScale,e),e.stack!==n.stack&&(r=!0,q9(e),e.stack=n.stack),this._resyncElements(t),(r||i!==e._stacked)&&Y9(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=p6(o[t])?this.parseArrayData(a,o,t,e):v6(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&&Y9(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(P6(s,d),o),y:l.parse(P6(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 V9({keys:B9(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=V9(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:B9(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!g6(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)g6(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 v6(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}}(y6(this.options.clip,function(t,e,n){if(!1===n)return!1;var r=j9(t,n),i=j9(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 r9(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 r9(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&&D6(r);if(s)return X9(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(R8.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(X9(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 z9(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||Z9(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){Z9(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}},{key:"updateSharedOptions",value:function(t,e,n){t&&!Z9(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&&q9(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 $9(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=l8(r.sort((function(t,e){return t-e})))}return t._cache.$bar}(a,t.type),s=a._length,u=function(){32767===r||-32768===r||(D6(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 Q9(t,e,n,r){return p6(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 J9(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(Q9(s,o,l,i));return d}function t7(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function e7(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[n7(f,s,u,l)]=!0,i=c)),a[n7(i,s,u,l)]=!0,t.borderSkipped=a}else t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};else t.borderSkipped=a}function n7(t,e,n,r){return r?(t=function(t,e,n){return t===e?n:t===n?e:t}(t,e,n),t=r7(t,n,e)):t=r7(t,e,n),t}function r7(t,e,n){return"start"===t?e:"end"===t?n:t}function i7(t,e,n){var r=e.inflateAmount;t.inflateAmount="auto"===r?1===n?.33:0:r}R2(K9,"defaults",{}),R2(K9,"datasetElementType",null),R2(K9,"dataElementType",null);var a7=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 J9(t,e,n,r)}},{key:"parseArrayData",value:function(t,e,n,r){return J9(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(P6(s,v),i),m.push(Q9(P6(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=t7(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||h6(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||t7(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;e7(y,b,m,a),i7(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(h6(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||$9(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=t7(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&&W6(p)!==W6(d.barEnd)&&(v=0),v+=p);var m=h6(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?W6(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=W6(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=y6(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 h6(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}(K9);R2(a7,"id","bar"),R2(a7,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),R2(a7,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});var o7=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(v6(n[t])){var s=this._parsing.key,u=void 0===s?"value":s;o=function(t){return+P6(n[t],u)}}for(i=t,a=t+e;i<a;++i)r._parsed[i]=o(i)}}},{key:"_getRotation",value:function(){return X6(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return X6(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var t=F6,e=-F6,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<F6){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 e8(t,s,u,!0)?1:Math.max(e,e*n,r,r*n)},p=function(t,e,r){return e8(t,s,u,!0)?-1:Math.min(e,e*n,r,r*n)},v=h(0,l,f),g=h(B6,c,d),m=p(N6,l,f),y=p(N6+B6,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=b6(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/F6)}},{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)?F6*(Math.abs(t)/e):0}},{key:"getLabelAndValue",value:function(t){var e=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=S8(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(y6(this.chart.data.datasets[t].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),n}(K9);function s7(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}R2(o7,"id","doughnut"),R2(o7,"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"}),R2(o7,"descriptors",{_scriptable:function(t){return"spacing"!==t},_indexable:function(t){return"spacing"!==t}}),R2(o7,"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 u7=function(){function t(e){Ai(this,t),this.options=e||{}}return Ci(t,[{key:"init",value:function(){}},{key:"formats",value:function(){return s7()}},{key:"parse",value:function(){return s7()}},{key:"format",value:function(){return s7()}},{key:"add",value:function(){return s7()}},{key:"diff",value:function(){return s7()}},{key:"startOf",value:function(){return s7()}},{key:"endOf",value:function(){return s7()}}],[{key:"override",value:function(e){Object.assign(t.prototype,e)}}]),t}(),l7={_date:u7};function c7(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?o8:a8;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 f7(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=c7(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 d7(t,e,n,r,i){var a=[];return!i&&!t.isPointInArea(e)||f7(t,n,e,(function(n,o,s){!i&&!j8(n,t.chartArea,0)||n.inRange(e.x,e.y,r)&&a.push({element:n,datasetIndex:o,index:s})}),!0),a}function h7(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 f7(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 p7(t,e,n,r,i,a){return a||t.isPointInArea(e)?"r"!==n||r?h7(t,e,n,r,i,a):function(t,e,n,r){var i=[];return f7(t,n,e,(function(t,n,a){var o=t.getProps(["startAngle","endAngle"],r),s=o.startAngle,u=o.endAngle;e8(Q6(t,{x:e.x,y:e.y}).angle,s,u)&&i.push({element:t,datasetIndex:n,index:a})})),i}(t,e,n,i):[]}function v7(t,e,n,r,i){var a=[],o="x"===n?"inXRange":"inYRange",s=!1;return f7(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 g7={evaluateInteractionItems:f7,modes:{index:function(t,e,n,r){var i=S9(e,t),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?d7(t,i,a,r,o):p7(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=S9(e,t),a=n.axis||"xy",o=n.includeInvisible||!1,s=n.intersect?d7(t,i,a,r,o):p7(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 d7(t,S9(e,t),n.axis||"xy",r,n.includeInvisible||!1)},nearest:function(t,e,n,r){var i=S9(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return p7(t,i,a,n.intersect,r,o)},x:function(t,e,n,r){return v7(t,S9(e,t),"x",n.intersect,r)},y:function(t,e,n,r){return v7(t,S9(e,t),"y",n.intersect,r)}}},m7=["left","top","right","bottom"];function y7(t,e){return t.filter((function(t){return t.pos===e}))}function b7(t,e){return t.filter((function(t){return-1===m7.indexOf(t.pos)&&t.box.axis===e}))}function _7(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 x7(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&&m7.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 w7(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function k7(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 S7(t,e,n,r){var i=n.pos,a=n.box,o=t.maxPadding;if(!v6(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&&k7(o,a.getPadding());var u=Math.max(0,e.outerWidth-w7(o,t,"left","right")),l=Math.max(0,e.outerHeight-w7(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 E7(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 C7(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,E7(o.horizontal,e));var f=S7(e,n,o,r),d=f.same,h=f.other;u|=d&&c.length,l=l||h,s.fullSize||c.push(o)}return u&&C7(c,e,n,r)||l}function A7(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 T7(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;D6(f.start)&&(s=f.start),c.fullSize?A7(c,a.left,s,n.outerWidth-a.right-a.left,p):A7(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;D6(f.start)&&(o=f.start),c.fullSize?A7(c,o,a.top,g,n.outerHeight-a.bottom-a.top):A7(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 M7=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)},O7=function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},P7=function(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},R7=function(t,e,n,r){if(t){var i=t9(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=_7(e.filter((function(t){return t.box.fullSize})),!0),r=_7(y7(e,"left"),!0),i=_7(y7(e,"right")),a=_7(y7(e,"top"),!0),o=_7(y7(e,"bottom")),s=b7(e,"x"),u=b7(e,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(u).concat(o).concat(s),chartArea:y7(e,"chartArea"),vertical:r.concat(i).concat(u),horizontal:a.concat(o).concat(s)}}(t.boxes),u=s.vertical,l=s.horizontal;x6(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);k7(d,t9(r));var h=Object.assign({maxPadding:d,w:a,h:o,x:i.left,y:i.top},i),p=x7(u.concat(l),f);C7(s.fullSize,h,f,p),C7(u,h,f,p),C7(l,h,f,p)&&C7(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),T7(s.leftAndTop,h,f,p),h.x+=h.w,h.y+=h.h,T7(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},x6(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})}))}},D7=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}(),L7=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}(D7),I7="$chartjs",N7={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},F7=function(t){return null===t||""===t};var z7=!!T9&&{passive:!0};function j7(t,e,n){t.canvas.removeEventListener(e,n,z7)}function B7(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 V7(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||B7(o.addedNodes,r))&&!B7(o.removedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function H7(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||B7(o.removedNodes,r))&&!B7(o.addedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}var U7=new Map,W7=0;function Y7(){var t=window.devicePixelRatio;t!==W7&&(W7=t,U7.forEach((function(e,n){n.currentDevicePixelRatio!==t&&e()})))}function G7(t,e,n){var r=t.canvas,i=r&&b9(r);if(i){var a=f8((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){U7.size||window.addEventListener("resize",Y7),U7.set(t,e)}(t,a),o}}function q7(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){U7.delete(t),U7.size||window.removeEventListener("resize",Y7)}(t)}function Z7(t,e,n){var r=t.canvas,i=f8((function(e){null!==t.ctx&&n(function(t,e){var n=N7[t.type]||t.type,r=S9(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,z7)}(r,e,i),i}var X7=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[I7]={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",F7(i)){var a=M9(t,"width");void 0!==a&&(t.width=a)}if(F7(r))if(""===t.style.height)t.height=t.width/(e||2);else{var o=M9(t,"height");void 0!==o&&(t.height=o)}}(t,e),n):null}},{key:"releaseContext",value:function(t){var e=t.canvas;if(!e[I7])return!1;var n=e[I7].initial;["height","width"].forEach((function(t){var r=n[t];h6(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[I7],!0}},{key:"addEventListener",value:function(t,e,n){this.removeEventListener(t,e);var r=t.$proxies||(t.$proxies={}),i={attach:V7,detach:H7,resize:G7}[e]||Z7;r[e]=i(t,e,n)}},{key:"removeEventListener",value:function(t,e){var n=t.$proxies||(t.$proxies={}),r=n[e];!r||(({attach:q7,detach:q7,resize:q7}[e]||j7)(t,e,r),n[e]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(t,e,n,r){return C9(t,e,n,r)}},{key:"isAttached",value:function(t){var e=b9(t);return!(!e||!e.isConnected)}}]),n}(D7);var K7=function(){function t(){Ai(this,t),R2(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 q6(this.x)&&q6(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 $7(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(Q7(e,l,c,h6(h)?0:s-h,s),f=0,d=o-1;f<d;f++)Q7(e,l,c,a[f],a[f+1]);return Q7(e,l,c,u,h6(h)?e.length:u+h),l}return Q7(e,l,c),l}function Q7(t,e,n,r,i){var a,o,s,u=y6(r,0),l=Math.min(y6(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))}R2(K7,"defaults",{}),R2(K7,"defaultRoutes");var J7=function(t,e,n){return"top"===e||"left"===e?t[e]+n:t[e]-n};function ttt(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 ett(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 ntt(t){return t.drawTicks?t.tickLength:0}function rtt(t,e){if(!t.display)return 0;var n=e9(t.font,e),r=t9(t.padding);return(p6(t.text)?t.text.length:1)*n.lineHeight+r.height}function itt(t,e,n){var r=d8(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=function(t){return"left"===t?"right":"right"===t?"left":t}(r)),r}var att=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=m6(t,Number.POSITIVE_INFINITY),e=m6(e,Number.NEGATIVE_INFINITY),n=m6(n,Number.POSITIVE_INFINITY),r=m6(r,Number.NEGATIVE_INFINITY),{min:m6(t,n),max:m6(e,r),minDefined:g6(t),maxDefined:g6(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:m6(r=o&&r>i?i:r,m6(i=a&&r>i?r:i,r)),max:m6(i,m6(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(){_6(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=b6(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?ttt(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=$7(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(){_6(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){_6(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(){_6(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(t){this.chart.notifyPlugins(t,this.getContext()),_6(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(){_6(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=_6(i.callback,[r.value,e,t],this)}},{key:"afterTickToLabelConversion",value:function(){_6(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){_6(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=n8(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-ntt(r.grid)-i.padding-rtt(r.title,this.chart.options.font),n=Math.sqrt(c*c+f*f),u=K6(Math.min(Math.asin(n8((l.highest.height+6)/t,-1,1)),Math.asin(n8(e/n,-1,1))-Math.asin(n8(f/n,-1,1)))),u=Math.max(o,Math.min(s,u))),this.labelRotation=u}}},{key:"afterCalculateLabelRotation",value:function(){_6(this.options.afterCalculateLabelRotation,[this])}},{key:"afterAutoSkip",value:function(){}},{key:"beforeFit",value:function(){_6(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=rtt(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=ntt(a)+u):(t.height=this.maxHeight,t.width=ntt(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=X6(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(){_6(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++)h6(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=ttt(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,h6(a)||p6(a)){if(p6(a))for(r=0,i=a.length;r<i;++r)!h6(d=a[r])&&!p6(d)&&(c=D8(h,u.data,u.gc,c,d),f+=l)}else c=D8(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){x6(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 n8(t,-32768,32767)}(this._alignToPixels?I8(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 r9(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=function(t,e){return r9(t,{scale:e,type:"scale"})}(this.chart.getContext(),this))}},{key:"_tickSize",value:function(){var t=this.options.ticks,e=X6(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=ntt(g),k=[],S=y.setContext(this.getContext()),E=S.display?S.width:0,C=E/2,A=function(t){return I8(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(v6(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(v6(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=y6(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=ett(this,n,b))&&(i=I8(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=ntt(h.grid),k=w+_,S=x?-_:k,E=-X6(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(v6(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(v6(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=p6(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=t9(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(-X6(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=I8(t,this.left,o)-o/2,u=I8(t,this.right,f)+f/2,l=c=d):(l=I8(t,this.top,o)-o/2,c=I8(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&&B8(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;H8(e,a.label,0,a.textOffset,s,o)}}catch(u){i.e(u)}finally{i.f()}n&&V8(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=e9(r.font),o=t9(r.padding),s=r.align,u=a.lineHeight/2;"bottom"===n||"center"===n||v6(n)?(u+=o.bottom,p6(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=h8(r,u,c),v6(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:J7(t,n,e);i=c-u}else{if(v6(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:J7(t,n,e);o=h8(r,l,s),p="left"===n?-B6:B6}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;H8(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:itt(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=y6(e.grid&&e.grid.z,-1),a=y6(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 e9(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}(K7),ott=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=C6(Object.create(null),[n?R8.get(n):{},R8.get(e),t.defaults]);R8.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(".");R8.route(a,i,u,s)}))}(e,t.defaultRoutes),t.descriptors&&R8.describe(e,t.descriptors)}(t,a,e),this.override&&R8.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 R8[r]&&(delete R8[r][n],this.override&&delete A8[n])}}]),t}();var stt=function(){function t(){Ai(this,t),this.controllers=new ott(K9,"datasets",!0),this.elements=new ott(K7,"elements"),this.plugins=new ott(Object,"plugins"),this.scales=new ott(att,"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):x6(e,(function(e){var i=n||r._getRegistryForType(e);r._exec(t,i,e)}))}))}},{key:"_exec",value:function(t,e,n){var r=R6(t);_6(n["before"+r],[],n),e[t](n),_6(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}(),utt=new stt,ltt=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===_6(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(){h6(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=y6(n.options&&n.options.plugins,{}),i=function(t){for(var e={},n=[],r=Object.keys(utt.plugins.items),i=0;i<r.length;i++)n.push(utt.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=ctt(n[f],r);null!==d&&s.push({plugin:c,options:ftt(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 ctt(t,e){return e||!1!==t?!0===t?{}:t:null}function ftt(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 dtt(t,e){var n=R8.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function htt(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&&htt(t[0].toLowerCase(),e)))return t;throw new Error("Cannot determine type of '".concat(name,"' axis. Please provide 'axis' or 'position' option."))}function ptt(t){var e=t.options||(t.options={});e.plugins=y6(e.plugins,{}),e.scales=function(t,e){var n=A8[t.type]||{scales:{}},r=e.scales||{},i=dtt(t.type,e),a=Object.create(null);return Object.keys(r).forEach((function(t){var e=r[t];if(!v6(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=htt(t,e),s=function(t,e){return t===e?"_index_":"_value_"}(o,i),u=n.scales||{};a[t]=A6(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||dtt(i,e),s=(A8[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),A6(a[i],[{axis:e},r[i],s[t]])}))})),Object.keys(a).forEach((function(t){var e=a[t];A6(e,[R8.scales[e.type],R8.scale])})),a}(t,e)}function vtt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}var gtt=new Map,mtt=new Set;function ytt(t,e){var n=gtt.get(t);return n||(n=e(),gtt.set(t,n),mtt.add(n)),n}var btt=function(t,e,n){var r=P6(e,n);void 0!==r&&t.add(r)},_tt=function(){function t(e){Ai(this,t),this._config=function(t){return(t=t||{}).data=vtt(t.data),ptt(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=vtt(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(),ptt(t)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(t){return ytt(t,(function(){return[["datasets.".concat(t),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(t,e){return ytt("".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 ytt("".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 ytt("".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 btt(s,t,e)}))),e.forEach((function(t){return btt(s,r,t)})),e.forEach((function(t){return btt(s,A8[i]||{},t)})),e.forEach((function(t){return btt(s,R8,t)})),e.forEach((function(t){return btt(s,T8,t)}))}));var u=Array.from(s);return 0===u.length&&u.push(Object.create(null)),mtt.has(e)&&a.set(e,u),u}},{key:"chartOptionScopes",value:function(){var t=this.options,e=this.type;return[t,A8[e]||{},R8.datasets[e]||{},{type:e},R8,T8]}},{key:"resolveNamedOptions",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},a=xtt(this._resolverCache,t,r),o=a.resolver,s=a.subPrefixes,u=o;if(ktt(o,e)){i.$shared=!1,n=L6(n)?n():n;var l=this.createResolver(t,n,s);u=a9(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=xtt(this._resolverCache,t,n),a=i.resolver;return v6(e)?a9(a,e,void 0,r):a}}]),t}();function xtt(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:i9(e,n),subPrefixes:n.filter((function(t){return!t.toLowerCase().includes("hover")}))},r.set(i,a)),a}var wtt=function(t){return v6(t)&&Object.getOwnPropertyNames(t).reduce((function(e,n){return e||L6(t[n])}),!1)};function ktt(t,e){var n,r=o9(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&&(L6(c)||wtt(c))||l&&p6(c))return!0}}catch(f){o.e(f)}finally{o.f()}return!1}var Stt=["top","bottom","left","right","chartArea"];function Ett(t,e){return"top"===t||"bottom"===t||-1===Stt.indexOf(t)&&"x"===e}function Ctt(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Att(t){var e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),_6(n&&n.onComplete,[t],e)}function Ttt(t){var e=t.chart,n=e.options.animation;_6(n&&n.onProgress,[t],e)}function Mtt(t){return y9()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var Ott={},Ptt=function(t){var e=Mtt(t);return Object.values(Ott).filter((function(t){return t.canvas===e})).pop()};function Rtt(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 Dtt=function(){function t(e,n){var r=this;Ai(this,t);var i=this.config=new _tt(n),a=Mtt(e),o=Ptt(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!y9()||("undefined"==typeof OffscreenCanvas?"undefined":Fi(OffscreenCanvas))<"u"&&t instanceof OffscreenCanvas?L7:X7}(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=d6(),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 ltt,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=[],Ott[this.id]=this,u&&l?(L9.listen(this,"complete",Att),L9.listen(this,"progress",Ttt),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 h6(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 utt}},{key:"_initialize",value:function(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():A9(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}},{key:"clear",value:function(){return N8(this.canvas,this.ctx),this}},{key:"stop",value:function(){return L9.stop(this),this}},{key:"resize",value:function(t,e){L9.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,A9(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),_6(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}},{key:"ensureScalesHaveIDs",value:function(){x6(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=htt(t,e),i="r"===r,a="x"===r;return{options:e,dposition:i?"chartArea":a?"bottom":"left",dtype:i?"radialLinear":a?"category":"linear"}})))),x6(a,(function(n){var a=n.options,o=a.id,s=htt(o,a),u=y6(a.type,n.dtype);(void 0===a.position||Ett(a.position,s)!==Ett(n.dposition))&&(a.position=n.dposition),i[o]=!0;var l=null;o in r&&r[o].type===u?l=r[o]:(l=new(utt.getScale(u))({id:o,type:u,ctx:t.ctx,chart:t}),r[l.id]=l);l.init(a,e)})),x6(i,(function(t,e){t||delete r[e]})),x6(r,(function(e){P7(t,e,e.options),M7(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(Ctt("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||dtt(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=utt.getController(o),u=R8.datasets[o],l=u.datasetElementType,c=u.dataElementType;Object.assign(s,{dataElementType:utt.getElement(c),datasetElementType:l&&utt.getElement(l)}),a.controller=new s(this,t),n.push(a.controller)}}return this._updateMetasets(),n}},{key:"_resetElements",value:function(){var t=this;x6(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||x6(i,(function(t){t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ctt("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;x6(this.scales,(function(e){O7(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);(!I6(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;Rtt(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(!I6(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})){R7(this,this.width,this.height,t);var n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],x6(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,L6(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})&&(L9.has(this)?this.attached&&!L9.running(this)&&L9.start(this):(this.draw(),Att({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&&B8(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&&V8(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}},{key:"isPointInArea",value:function(t){return j8(t,this.chartArea,this._minPadding)}},{key:"getElementsAtEventForMode",value:function(t,e,n,r){var i=g7.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=r9(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);D6(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(),L9.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(),N8(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Ott[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)};x6(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;x6(this._listeners,(function(e,n){t.platform.removeEventListener(t,n,e)})),this._listeners={},x6(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}}));!w6(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,_6(a.onHover,[t,s,this],this),u&&_6(a.onClick,[t,s,this],this));var c=!w6(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(){utt.add.apply(utt,arguments),Ltt()}},{key:"unregister",value:function(){utt.remove.apply(utt,arguments),Ltt()}}]),t}();function Ltt(){return x6(Dtt.instances,(function(t){return t._plugins.invalidate()}))}function Itt(t,e,n,r){var i=function(t){return $8(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 n8(t,0,Math.min(a,e))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:n8(i.innerStart,0,o),innerEnd:n8(i.innerEnd,0,o)}}function Ntt(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Ftt(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/N6)/f)/2,m=u+g+h,y=i-g-h,b=Itt(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=Ntt(E,A,o,s);t.arc(D.x,D.y,x,A,y+B6)}var L=Ntt(M,y,o,s);if(t.lineTo(L.x,L.y),k>0){var I=Ntt(M,P,o,s);t.arc(I.x,I.y,k,y+B6,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=Ntt(T,O,o,s);t.arc(F.x,F.y,w,O+Math.PI,m-B6)}var z=Ntt(S,m,o,s);if(t.lineTo(z.x,z.y),_>0){var j=Ntt(S,C,o,s);t.arc(j.x,j.y,_,m-B6,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 ztt(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){Ftt(t,e,n,r,d,i);for(var h=0;h<a;++h)t.stroke();isNaN(s)||(d=o+(s%F6||F6))}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+B6,r-B6),t.closePath(),t.clip()}(t,e,d),a||(Ftt(t,e,n,r,d,i),t.stroke())}}R2(Dtt,"defaults",R8),R2(Dtt,"instances",Ott),R2(Dtt,"overrides",A8),R2(Dtt,"registry",utt),R2(Dtt,"version","4.2.0"),R2(Dtt,"getChart",Ptt);var jtt=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=Q6(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=y6(f,u-s)>=F6||e8(i,s,u),p=r8(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>F6?Math.floor(n/F6):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(N6,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){Ftt(t,e,n,r,u,i);for(var l=0;l<a;++l)t.fill();isNaN(s)||(u=o+(s%F6||F6))}Ftt(t,e,n,r,u,i),t.fill()}(t,this,s,i,a),ztt(t,this,s,i,a),t.restore()}}}]),n}(K7);function Btt(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 Vtt(t,e,n,r){return t?0:n8(e,n,r)}function Htt(t){var e=Btt(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=Q8(r);return{t:Vtt(i.top,a.top,0,n),r:Vtt(i.right,a.right,0,e),b:Vtt(i.bottom,a.bottom,0,n),l:Vtt(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=J8(i),o=Math.min(e,n),s=t.borderSkipped,u=r||v6(i);return{topLeft:Vtt(!u||s.top||s.left,a.topLeft,0,o),topRight:Vtt(!u||s.top||s.right,a.topRight,0,o),bottomLeft:Vtt(!u||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:Vtt(!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 Utt(t,e,n,r){var i=null===e,a=null===n,o=t&&!(i&&a)&&Btt(t,r);return o&&(i||r8(e,o.left,o.right))&&(a||r8(n,o.top,o.bottom))}function Wtt(t,e){t.rect(e.x,e.y,e.w,e.h)}function Ytt(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}}R2(jtt,"id","arc"),R2(jtt,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),R2(jtt,"defaultRoutes",{backgroundColor:"backgroundColor"});var Gtt=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=Htt(this),o=a.inner,s=a.outer,u=function(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}(s.radius)?G8:Wtt;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),u(t,Ytt(s,e,o)),t.clip(),u(t,Ytt(o,-e,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),u(t,Ytt(o,e)),t.fillStyle=i,t.fill(),t.restore()}},{key:"inRange",value:function(t,e,n){return Utt(this,t,e,n)}},{key:"inXRange",value:function(t,e){return Utt(this,t,null,e)}},{key:"inYRange",value:function(t,e){return Utt(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}(K7);R2(Gtt,"id","bar"),R2(Gtt,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),R2(Gtt,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var qtt=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)}},Ztt=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=_6(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=e9(i.font),o=a.size,s=this._computeTitleHeight(),u=qtt(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=Xtt(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=O9(n.rtl,this.left,this.width);if(this.isHorizontal()){var o,s=0,u=h8(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=h8(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=h8(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=h8(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;B8(t,this),this._draw(),V8(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=R8.color,l=O9(n.rtl,this.left,this.width),c=e9(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=qtt(s,d),v=p.boxWidth,g=p.boxHeight,m=p.itemHeight,y=this.isHorizontal(),b=this._computeTitleHeight();t=y?{x:h8(o,this.left+f,this.right-i[0]),y:this.top+f+b,line:0}:{x:this.left+f,y:h8(o,this.top+b+f,this.bottom-r[0].height),line:0},P9(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=h8(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=h8(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=y6(n.lineWidth,1);if(a.fillStyle=y6(n.fillStyle,u),a.lineCap=y6(n.lineCap,"butt"),a.lineDashOffset=y6(n.lineDashOffset,0),a.lineJoin=y6(n.lineJoin,"miter"),a.lineWidth=r,a.strokeStyle=y6(n.strokeStyle,u),a.setLineDash(y6(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);z8(a,i,o,e+h,s.pointStyleWidth&&v)}else{var c=e+Math.max((d-g)/2,0),f=l.leftForLtr(t,v),p=J8(n.borderRadius);a.beginPath(),Object.values(p).some((function(t){return 0!==t}))?G8(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){H8(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+=Xtt(p,A)}else t.y+=_})),R9(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var t=this.options,e=t.title,n=e9(e.font),r=t9(e.padding);if(e.display){var i,a=O9(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=h8(t.align,c,this.right-f);else{var d=this.columnSizes.reduce((function(t,e){return Math.max(t,e.height)}),0);i=l+h8(t.align,this.top,this.bottom-d-t.labels.padding-this._computeTitleHeight())}var h=h8(s,c,c+f);o.textAlign=a.textAlign(d8(s)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=n.string,H8(o,e.text,h,i,n)}}},{key:"_computeTitleHeight",value:function(){var t=this.options.title,e=e9(t.font),n=t9(t.padding);return t.display?e.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(t,e){var n,r,i;if(r8(t,this.left,this.right)&&r8(e,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(r8(t,(r=i[n]).left,r.left+r.width)&&r8(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&&_6(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!i&&_6(e.onHover,[t,n,this],this)}else n&&_6(e.onClick,[t,n,this],this)}}}]),n}(K7);function Xtt(t,e){return e*(t.text?t.text.length+.5:0)}var Ktt={id:"legend",_element:Ztt,start:function(t,e,n){var r=t.legend=new Ztt({ctx:t.ctx,options:n,chart:t});P7(t,r,n),M7(t,r)},stop:function(t){O7(t,t.legend),delete t.legend},beforeUpdate:function(t,e,n){var r=t.legend;P7(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=t9(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)}}}},$tt=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=p6(n.text)?n.text.length:1;this._padding=t9(n.padding);var i=r*e9(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=h8(l,a,s),r=i+t,e=s-a):("left"===u.position?(n=a+t,r=h8(l,o,i),c=-.5*N6):(n=s-t,r=h8(l,i,o),c=.5*N6),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=e9(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;H8(t,e.text,0,0,n,{color:e.color,maxWidth:s,rotation:u,textAlign:d8(e.align),textBaseline:"middle",translation:[a,o]})}}}]),n}(K7);var Qtt={id:"title",_element:$tt,start:function(t,e,n){!function(t,e){var n=new $tt({ctx:t.ctx,options:e,chart:t});P7(t,n,e),M7(t,n),t.titleBlock=n}(t,n)},stop:function(t){var e=t.titleBlock;O7(t,e),delete t.titleBlock},beforeUpdate:function(t,e,n){var r=t.titleBlock;P7(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}},Jtt={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=J6(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 tet(t,e){return e&&(p6(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function eet(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function net(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 ret(t,e){var n=t.chart.ctx,r=t.body,i=t.footer,a=t.title,o=e.boxWidth,s=e.boxHeight,u=e9(e.bodyFont),l=e9(e.titleFont),c=e9(e.footerFont),f=a.length,d=i.length,h=r.length,p=t9(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,x6(t.title,b),n.font=u.string,x6(t.beforeBody.concat(t.afterBody),b),y=e.displayColors?o+2+e.boxPadding:0,x6(r,(function(t){x6(t.before,b),x6(t.lines,b),x6(t.after,b)})),y=0,n.font=c.string,x6(t.footer,b),n.restore(),{width:g+=p.width,height:v}}function iet(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 aet(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||iet(t,e,n,r),yAlign:r}}function oet(t,e,n,r){var i=t.caretSize,a=t.caretPadding,o=t.cornerRadius,s=n.xAlign,u=n.yAlign,l=i+a,c=J8(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:n8(v,0,r.width-e.width),y:n8(g,0,r.height-e.height)}}function set(t,e,n){var r=t9(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function uet(t){return tet([],eet(t))}function cet(t,e){var n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}var fet={beforeTitle:f6,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:f6,beforeBody:f6,beforeLabel:f6,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 h6(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:f6,afterBody:f6,beforeFooter:f6,footer:f6,afterFooter:f6};function det(t,e,n,r){var i=t[e].call(n,r);return Fi(i)>"u"?fet[e].call(n,r):i}var het=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 z9(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 r9(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}},{key:"getTitle",value:function(t,e){var n=e.callbacks,r=det(n,"beforeTitle",this,t),i=det(n,"title",this,t),a=det(n,"afterTitle",this,t),o=[];return o=tet(o,eet(r)),o=tet(o,eet(i)),o=tet(o,eet(a))}},{key:"getBeforeBody",value:function(t,e){return uet(det(e.callbacks,"beforeBody",this,t))}},{key:"getBody",value:function(t,e){var n=this,r=e.callbacks,i=[];return x6(t,(function(t){var e={before:[],lines:[],after:[]},a=cet(r,t);tet(e.before,eet(det(a,"beforeLabel",n,t))),tet(e.lines,det(a,"label",n,t)),tet(e.after,eet(det(a,"afterLabel",n,t))),i.push(e)})),i}},{key:"getAfterBody",value:function(t,e){return uet(det(e.callbacks,"afterBody",this,t))}},{key:"getFooter",value:function(t,e){var n=e.callbacks,r=det(n,"beforeFooter",this,t),i=det(n,"footer",this,t),a=det(n,"afterFooter",this,t),o=[];return o=tet(o,eet(r)),o=tet(o,eet(i)),o=tet(o,eet(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(net(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)}))),x6(l,(function(e){var n=cet(t.callbacks,e);o.push(det(n,"labelColor",r,e)),s.push(det(n,"labelPointStyle",r,e)),u.push(det(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=Jtt[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=ret(this,r),u=Object.assign({},o,s),l=aet(this.chart,r,u),c=oet(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=J8(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=O9(n.rtl,this.x,this.width);for(t.x=set(this,n.titleAlign,n),e.textAlign=u.textAlign(n.titleAlign),e.textBaseline="middle",r=e9(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=e9(i.bodyFont),f=set(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,F8(t,v,g,m),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,F8(t,v,g,m)}else{t.lineWidth=v6(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),_=J8(a.borderRadius);Object.values(_).some((function(t){return 0!==t}))?(t.beginPath(),t.fillStyle=i.multiKeyBackground,G8(t,{x:y,y:p,w:u,h:s,radius:_}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),G8(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=e9(n.bodyFont),y=m.lineHeight,b=0,_=O9(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=set(this,w,n),e.fillStyle=n.bodyColor,x6(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,x6(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;x6(r.after,x)}b=0,y=m.lineHeight,x6(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=O9(n.rtl,this.x,this.width);for(t.x=set(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",r=e9(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=J8(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=Jtt[t.position].call(this,this._active,this._eventPosition);if(!a)return;var o=this._size=ret(this,t),s=Object.assign({},a,this._size),u=aet(e,t,s),l=oet(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=t9(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),P9(t,e.textDirection),i.y+=a.top,this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),R9(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=!w6(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||!w6(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=Jtt[i.position].call(this,t,e);return!1!==a&&(n!==a.x||r!==a.y)}}]),n}(K7);R2(het,"positioners",Jtt);var pet={id:"tooltip",_element:het,positioners:Jtt,afterInit:function(t,e,n){n&&(t.tooltip=new het({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:fet},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 vet(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 get(t){var e=this.getLabels();return t>=0&&t<e.length?e[t]:t}var met=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(h6(t))return null;var n=this.getLabels();return function(t,e){return null===t?null:n8(Math.round(t),0,e)}(e=isFinite(e)&&n[e]===t?e:vet(n,t,y6(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 get.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}(att);function yet(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,_=!h6(l),x=!h6(c),w=!h6(d),k=(b-y)/(p+1),S=G6((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=G6(a*S/m/g)*g),h6(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=Y6(a=(i-r)/S,Math.round(a),S/1e3)?Math.round(a):Math.ceil(a);var E=Math.max($6(S),$6(r));n=Math.pow(10,h6(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++,Y6(Math.round((r+C*S)*n)/n,l,bet(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&&Y6(o[o.length-1].value,c,bet(c,k,t))?o[o.length-1].value=c:o.push({value:c}):(!x||i===c)&&o.push({value:i}),o}function bet(t,e,n){var r=n.horizontal,i=X6(n.minRotation),a=(r?Math.sin(i):Math.cos(i))||.001,o=.75*e*(""+t).length;return Math.min(e/a,o)}R2(met,"id","category"),R2(met,"defaults",{ticks:{callback:get}});var _et=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 h6(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=W6(i),l=W6(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=yet({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&&Z6(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 S8(t,this.chart.options.locale,this.options.ticks.format)}}]),n}(att),xet=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=g6(e)?e:0,this.max=g6(n)?n:1,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var t=this.isHorizontal(),e=t?this.width:this.height,n=X6(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}(_et);R2(xet,"id","linear"),R2(xet,"defaults",{ticks:{callback:C8.formatters.numeric}});var wet=function(t){return Math.floor(U6(t))},ket=function(t,e){return Math.pow(10,wet(t)+e)};function Eet(t){return t/Math.pow(10,wet(t))==1}function Cet(t,e,n){var r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function Aet(t,e){var n=e.min,r=e.max;n=m6(t.min,n);for(var i=[],a=wet(n),o=function(t,e){for(var n=wet(e-t);Cet(t,e,n)>10;)n++;for(;Cet(t,e,n)<10;)n--;return Math.min(n,wet(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=m6(t.min,Math.round((l+f+d*Math.pow(10,o))*s)/s);h<r;)i.push({value:h,major:Eet(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=m6(t.max,h);return i.push({value:p,major:Eet(p),significand:d}),i}var Tet=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=_et.prototype.parse.apply(this,[t,e]);if(0!==n)return g6(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=g6(e)?Math.max(0,e):null,this.max=g6(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!g6(this._userMin)&&(this.min=e===ket(this.min,0)?ket(this.min,-1):ket(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(ket(r,-1)),o(ket(i,1)))),r<=0&&a(ket(i,-1)),i<=0&&o(ket(r,1)),this.min=r,this.max=i}},{key:"buildTicks",value:function(){var t=this.options,e=Aet({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Z6(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":S8(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=U6(t),this._valueRange=U6(this.max)-U6(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:(U6(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}(att);function Met(t){var e=t.ticks;if(e.display&&t.display){var n=t9(e.backdropPadding);return y6(e.font&&e.font.size,R8.font.size)+n.height}return 0}function Oet(t,e,n){return n=p6(n)?n:[n],{w:L8(t,e.string,n),h:n.length*e.lineHeight}}function Pet(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 Ret(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?N6/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=e9(l.font),d=Oet(t.ctx,f,t._pointLabels[u]);r[u]=d;var h=t8(t.getIndexAngle(u)+s),p=Math.round(K6(h));Det(n,e,h,Pet(p,c.x,d.w,0,180),Pet(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=Met(a)/2,s=t.drawingArea,u=a.pointLabels.centerPointLabels?N6/i:0,l=0;l<i;l++){var c=t.getPointPosition(l,s+o+n[l],u),f=Math.round(K6(t8(c.angle+B6))),d=e[l],h=Net(c.y,d.h,f),p=Let(f),v=Iet(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 Det(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 Let(t){return 0===t||180===t?"center":t<180?"left":"right"}function Iet(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Net(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Fet(t,e,n,r){var i=t.ctx;if(n)i.arc(t.xCenter,t.yCenter,e,0,F6);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)}}R2(Tet,"id","logarithmic"),R2(Tet,"defaults",{ticks:{callback:C8.formatters.logarithmic,major:{enabled:!0}}});var zet=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=t9(Met(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=g6(e)&&!isNaN(e)?e:0,this.max=g6(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/Met(this.options))}},{key:"generateTickLabels",value:function(t){var e=this;_et.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((function(t,n){var r=_6(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?Ret(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 t8(t*(F6/(this._pointLabels.length||1))+X6(this.options.startAngle||0))}},{key:"getDistanceFromCenterForValue",value:function(t){if(h6(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(h6(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 r9(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)-B6+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(),Fet(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=e9(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(!h6(v)){var g=J8(a.borderRadius),m=t9(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(),G8(n,{x:y,y:b,w:_,h:x,radius:g}),n.fill()):n.fillRect(y,b,_,x)}H8(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(),Fet(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=e9(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=t9(u.backdropPadding);e.fillRect(-a/2-c.left,-i-l.size/2-c.top,a+c.width,l.size+c.height)}H8(e,o.label,0,-i,l,{color:u.color})}})),e.restore()}}},{key:"drawTitle",value:function(){}}]),n}(_et);R2(zet,"id","radialLinear"),R2(zet,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:C8.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(t){return t},padding:5,centerPointLabels:!1}}),R2(zet,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),R2(zet,"descriptors",{angleLines:{_fallback:"grid"}});var jet={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}},Bet=Object.keys(jet);function Vet(t,e){return t-e}function Het(t,e){if(h6(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)),g6(s)||(s="string"==typeof i?n.parse(s,i):n.parse(s)),null===s?null:(a&&(s="week"!==a||!q6(o)&&!0!==o?n.startOf(s,a):n.startOf(s,"isoWeek",o)),+s)}function Uet(t,e,n,r){for(var i=Bet.length,a=Bet.indexOf(t);a<i-1;++a){var o=jet[Bet[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(s*o.size))<=r)return Bet[a]}return Bet[i-1]}function Wet(t,e,n){if(n){if(n.length){var r=i8(n,e),i=r.lo,a=r.hi;t[n[i]>=e?n[i]:n[a]]=!0}}else t[e]=!0}function Yet(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 Get=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 l7._date(t.adapters.date);i.init(e),A6(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:Het(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=g6(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),a=g6(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?Uet(e.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(t,e,n,r,i){for(var a=Bet.length-1;a>=Bet.indexOf(n);a--){var o=Bet[a];if(jet[o].common&&t._adapter.diff(i,r,o)>=e-1)return o}return Bet[n?Bet.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=Bet.indexOf(t)+1,n=Bet.length;e<n;++e)if(jet[Bet[e]].common)return Bet[e]}(this._unit):void 0,this.initOffsets(r),t.reverse&&a.reverse(),Yet(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=n8(r,0,a),i=n8(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||Uet(o.minUnit,r,i,this._getLabelCapacity(r)),u=y6(a.ticks.stepSize,1),l="week"===s&&o.isoWeekday,c=q6(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++)Wet(f,t,h);return(t===i||"ticks"===a.bounds||1===e)&&Wet(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 _6(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=X6(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,Yet(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(Het(this,r[t]));return this._cache.labels=this._normalized?n:this.normalize(n)}},{key:"normalize",value:function(t){return l8(t.sort(Vet))}}]),n}(att);function qet(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=a8(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=a8(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}R2(Get,"id","time"),R2(Get,"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 Zet=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=qet(e,this.min),this._tableRange=qet(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(qet(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 qet(this._table,n*this._tableRange+this._minPos,!0)}}]),n}(Get);R2(Zet,"id","timeseries"),R2(Zet,"defaults",Get.defaults);var Xet="label";function Ket(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function $et(t,e){t.labels=e}function Qet(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xet,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 Jet(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xet,n={labels:[],datasets:[]};return $et(n,t.labels),Qet(n,t.datasets,e),n}function tnt(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 Dtt(m.current,{type:l,data:Jet(c,u),options:f&&_i({},f),plugins:h}),Ket(e,y.current))},_=function(){Ket(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&&$et(y.current.config.data,c.labels)}),[s,c.labels]),ki.exports.useEffect((function(){!s&&y.current&&c.datasets&&Qet(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 _()}}),[]),t5("canvas",_i(_i({},Object.assign({ref:m,role:"img",height:r,width:a},g)),{},{children:p}))}var ent=ki.exports.forwardRef(tnt);function nnt(t,e){return Dtt.register(e),ki.exports.forwardRef((function(e,n){return t5(ent,_i({},Object.assign({},e,{ref:n,type:t})))}))}var rnt=nnt("bar",a7),int=nnt("doughnut",o7),ant=!!(("undefined"==typeof window?"undefined":Fi(window))<"u"&&window.document&&window.document.createElement)&&getComputedStyle(document.documentElement),ont=function(t){return function(){return ant?ant.getPropertyValue(t):""}},snt=JC.div(Qt||(Qt=ci(["\n position: relative;\n height: calc((100vw / 2) - ",");\n width: 100%;\n"])),H2["--ll-spacing-medium"]),unt=JC(rnt)(Jt||(Jt=ci(["\n background-color: ",";\n padding: "," ",";\n border-radius: ",";\n font-family: ",";\n"])),H2["--ll-color-surface"],H2["--ll-spacing-medium"],H2["--ll-spacing-x-large"],H2["--ll-border-radius-medium"],H2["--ll-font-family"]),lnt=JC(int)(te||(te=ci(["\n background-color: ",";\n padding: "," ",";\n border-radius: ",";\n font-family: ",";\n"])),H2["--ll-color-surface"],H2["--ll-spacing-medium"],H2["--ll-spacing-x-large"],H2["--ll-border-radius-medium"],H2["--ll-font-family"]),cnt={options:{indexAxis:"y",elements:{bar:{borderWidth:0,borderRadius:4,backgroundColor:ont("--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:ont("--ll-color-on-background"),font:{family:ont("--ll-font-family"),weight:ont("--ll-font-weight-medium"),size:14,lineHeight:1.4}}}}};Dtt.register(met,xet,Gtt);var fnt=function(t){return t5(snt,{children:t5(unt,_i({},r4.mergeDeep(cnt,t)))})},dnt=_i({},cnt.options),hnt={options:_i(_i({},dnt),{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)}))}}]};Dtt.register(met,xet,Gtt,Qtt,Ktt);var pnt=function(t){return t5(snt,{children:t5(unt,_i({},r4.mergeDeep(hnt,{data:{labels:[""]}},t)))})},vnt={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:ont("--ll-color-on-background"),font:{family:ont("--ll-font-family"),weight:ont("--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()}}]};Dtt.register(jtt,pet,Ktt);var gnt=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 t5(snt,{children:t5(lnt,_i({},r4.mergeDeep(vnt,t,{data:{datasets:e}})))})},mnt=JC.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"])),H2["--ll-color-background"],H2["--ll-color-primary-variant1"],H2["--ll-color-primary"],H2["--ll-spacing-medium"],H2["--ll-spacing-x-large"],H2["--ll-border-radius-medium"],H2["--ll-font-family"],H2["--ll-font-size-caption-1"],H2["--ll-font-weight-normal"]),ynt=JC.h1(ne||(ne=ci(["\n font-size: ",";\n margin: 0 0 ",";\n"])),H2["--ll-font-size-p"],H2["--ll-spacing-xxx-large"]),bnt=JC.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"])),H2["--ll-font-size-h3"],H2["--ll-spacing-large"]),_nt=JC.li(ie||(ie=ci(["\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n align-items: center;\n"]))),xnt=JC.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"]))),wnt=JC.p(oe||(oe=ci(["\n font-size: inherit;\n line-height: inherit;\n font-weight: inherit;\n margin: 0;\n"]))),knt=JC.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"]))),Snt=function(t){var e=t.options,n=e.title,r=e.incomeTypes;return e5(mnt,{children:[t5(ynt,{children:n}),t5(bnt,{children:null==r?void 0:r.map((function(t){return e5(_nt,{children:[e5(xnt,{children:[t5(knt,{children:t5(i5,{SVGElement:t.SVGElement,width:32,height:32,fill:D2.colorPrimary100})}),t.label]}),t5(wnt,{children:new Intl.NumberFormat("en-EN",{style:"currency",currency:"USD"}).format(t.value)})]},t.variable)}))})]})};var Ent,Cnt="dismissableLayer.update",Ant="dismissableLayer.pointerDownOutside",Tnt="dismissableLayer.focusOutside",Mnt=ki.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ont=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(Mnt),f=wi(ki.exports.useState(null),2),d=f[0],h=f[1],p=wi(ki.exports.useState({}),2)[1],v=m5(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=X5(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(){Rnt(Ant,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=X5(t),n=ki.exports.useRef(!1);return ki.exports.useEffect((function(){var t=function(t){t.target&&!n.current&&Rnt(Tnt,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=X5(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&&(Ent=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Pnt(),function(){r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=Ent)}}),[d,r,c]),ki.exports.useEffect((function(){return function(){!d||(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Pnt())}}),[d,c]),ki.exports.useEffect((function(){var t=function(){return p({})};return document.addEventListener(Cnt,t),function(){return document.removeEventListener(Cnt,t)}}),[]),ki.exports.createElement(w5.div,d5({},l,{ref:v,style:_i({pointerEvents:_?x?"auto":"none":void 0},t.style),onFocusCapture:Z5(t.onFocusCapture,k.onFocusCapture),onBlurCapture:Z5(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Z5(t.onPointerDownCapture,w.onPointerDownCapture)}))}));function Pnt(){var t=new CustomEvent(Cnt);document.dispatchEvent(t)}function Rnt(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 Dnt=0;function Lnt(){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:Int()),document.body.insertAdjacentElement("beforeend",null!==(e=n[1])&&void 0!==e?e:Int()),Dnt++,function(){1===Dnt&&document.querySelectorAll("[data-radix-focus-guard]").forEach((function(t){return t.remove()})),Dnt--}}),[])}function Int(){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 Nnt="focusScope.autoFocusOnMount",Fnt="focusScope.autoFocusOnUnmount",znt={bubbles:!1,cancelable:!0},jnt=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=X5(o),h=X5(s),p=ki.exports.useRef(null),v=m5(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:Wnt(p.current,{select:!0})}},e=function(t){g.paused||!c||c.contains(t.relatedTarget)||Wnt(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){Ynt.add(g);var t=document.activeElement;if(!c.contains(t)){var e=new CustomEvent(Nnt,znt);c.addEventListener(Nnt,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(Wnt(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}))}(Bnt(c)),{select:!0}),document.activeElement===t&&Wnt(c))}return function(){c.removeEventListener(Nnt,d),setTimeout((function(){var e=new CustomEvent(Fnt,znt);c.addEventListener(Fnt,h),c.dispatchEvent(e),e.defaultPrevented||Wnt(null!=t?t:document.body,{select:!0}),c.removeEventListener(Fnt,h),Ynt.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=Bnt(t),n=Vnt(e,t),r=Vnt(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&&Wnt(l,{select:!0})):(t.preventDefault(),r&&Wnt(u,{select:!0})):n===i&&t.preventDefault()}}}),[r,a,g.paused]);return ki.exports.createElement(w5.div,d5({tabIndex:-1},u,{ref:v,onKeyDown:m}))}));function Bnt(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 Vnt(t,e){var n,r=zi(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!Hnt(i,{upTo:e}))return i}}catch(a){r.e(a)}finally{r.f()}}function Hnt(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 Unt(t){return t instanceof HTMLInputElement&&"select"in t}function Wnt(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&&Unt(t)&&r&&t.select()}}var Ynt=function(){var t=[];return{add:function(e){var n=t[0];e!==n&&(null==n||n.pause()),(t=Gnt(t,e)).unshift(e)},remove:function(e){var n;null===(n=(t=Gnt(t,e))[0])||void 0===n||n.resume()}}}();function Gnt(t,e){var n=mi(t),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}var qnt=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(w5.div,d5({},a,{ref:e})),i):null})),Znt=ki.exports.forwardRef((function(t,e){return ki.exports.createElement(w5.span,d5({},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)}))})),Xnt=new WeakMap,Knt=new WeakMap,$nt={},Qnt=0,Jnt=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];$nt[n]||($nt[n]=new WeakMap);var a=$nt[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=(Xnt.get(e)||0)+1,c=(a.get(e)||0)+1;Xnt.set(e,l),a.set(e,c),o.push(e),1===l&&u&&Knt.set(e,!0),1===c&&e.setAttribute(n,"true"),u||e.setAttribute(r,"true")}}))}(e),s.clear(),Qnt++,function(){o.forEach((function(t){var e=Xnt.get(t)-1,i=a.get(t)-1;Xnt.set(t,e),a.set(t,i),e||(Knt.has(t)||t.removeAttribute(r),Knt.delete(t)),i||t.removeAttribute(n)})),--Qnt||(Xnt=new WeakMap,Xnt=new WeakMap,Knt=new WeakMap,$nt={})}}(r,i,n,"aria-hidden")):function(){return null}},trt=function(){return trt=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},trt.apply(this,arguments)};function ert(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 nrt="right-scroll-bar-position",rrt="width-before-scroll-bar";function irt(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 art(t){return t}var ort=function(t){var e=t.sideCar,n=ert(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 t5(r,_i({},trt({},n)))};ort.isSideCarExport=!0;var srt=function(t){void 0===t&&(t={});var e=function(t,e){void 0===e&&(e=art);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=trt({async:!0,ssr:!1},t),e}(),urt=function(){},lrt=ki.exports.forwardRef((function(t,e){var n=ki.exports.useRef(null),r=ki.exports.useState({onScrollCapture:urt,onWheelCapture:urt,onTouchMoveCapture:urt}),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=ert(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=d,_=irt([n,e]),x=trt(trt({},y),i);return e5(J2,{children:[c&&t5(b,{sideCar:srt,removeScrollBar:l,shards:f,noIsolation:h,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),o?ki.exports.cloneElement(ki.exports.Children.only(s),trt(trt({},x),{ref:_})):t5(m,_i(_i({},trt({},x,{className:u,ref:_})),{},{children:s}))]})}));lrt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},lrt.classNames={fullWidth:rrt,zeroRight:nrt};function crt(){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 frt=function(){var t=0,e=null;return{add:function(n){0==t&&(e=crt())&&(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)}}},drt=function(){var t=function(){var t=frt();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}},hrt={left:0,top:0,right:0,gap:0},prt=function(t){return parseInt(t||"",10)||0},vrt=function(t){if(void 0===t&&(t="margin"),("undefined"==typeof window?"undefined":Fi(window))>"u")return hrt;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[prt(n),prt(r),prt(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])}},grt=drt(),mrt=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(nrt," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(rrt," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(nrt," .").concat(nrt," {\n right: 0 ").concat(r,";\n }\n \n .").concat(rrt," .").concat(rrt," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},yrt=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=void 0===r?"margin":r,a=ki.exports.useMemo((function(){return vrt(i)}),[i]);return t5(grt,{styles:mrt(a,!e,i,n?"":"!important")})},brt=!1;if(("undefined"==typeof window?"undefined":Fi(window))<"u")try{var _rt=Object.defineProperty({},"passive",{get:function(){return brt=!0,!0}});window.addEventListener("test",_rt,_rt),window.removeEventListener("test",_rt,_rt)}catch(xft){brt=!1}var xrt=!!brt&&{passive:!1},wrt=function(t,e){var n=e;do{if(("undefined"==typeof ShadowRoot?"undefined":Fi(ShadowRoot))<"u"&&n instanceof ShadowRoot&&(n=n.host),krt(t,n)){var r=Srt(t,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},krt=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)},Srt=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)},Ert=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Crt=function(t){return[t.deltaX,t.deltaY]},Art=function(t){return t&&"current"in t?t.current:t},Trt=function(t){return"\n .block-interactivity-".concat(t," {pointer-events: none;}\n .allow-interactivity-").concat(t," {pointer-events: all;}\n")},Mrt=0,Ort=[];var Prt=function(t,e){return t.useMedium(e),ort}(srt,(function(t){var e=ki.exports.useRef([]),n=ki.exports.useRef([0,0]),r=ki.exports.useRef(),i=ki.exports.useState(Mrt++)[0],a=ki.exports.useState((function(){return drt()}))[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(Art),!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=Ert(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=wrt(f,c);if(!d)return!0;if(d?i=f:(i="v"===f?"h":"v",d=wrt(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=Srt(t,s),p=h[0],v=h[1]-h[2]-a*p;(p||v)&&krt(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(Ort.length&&Ort[Ort.length-1]===a){var r="deltaY"in n?Crt(n):Ert(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(Art).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=Ert(t),r.current=void 0}),[]),f=ki.exports.useCallback((function(e){l(e.type,Crt(e),e.target,s(e,t.lockRef.current))}),[]),d=ki.exports.useCallback((function(e){l(e.type,Ert(e),e.target,s(e,t.lockRef.current))}),[]);ki.exports.useEffect((function(){return Ort.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",u,xrt),document.addEventListener("touchmove",u,xrt),document.addEventListener("touchstart",c,xrt),function(){Ort=Ort.filter((function(t){return t!==a})),document.removeEventListener("wheel",u,xrt),document.removeEventListener("touchmove",u,xrt),document.removeEventListener("touchstart",c,xrt)}}),[]);var h=t.removeScrollBar,p=t.inert;return e5(J2,{children:[p?t5(a,{styles:Trt(i)}):null,h?t5(yrt,{gapMode:"margin"}):null]})})),Rrt=ki.exports.forwardRef((function(t,e){return t5(lrt,_i({},trt({},t,{ref:e,sideCar:Prt})))}));Rrt.classNames=lrt.classNames;var Drt=Rrt,Lrt=[" ","Enter","ArrowUp","ArrowDown"],Irt=[" ","Enter"],Nrt="Select",Frt=wi(h3(Nrt),3),zrt=Frt[0],jrt=Frt[1],Brt=wi(h5(Nrt,[Frt[2]]),2),Vrt=Brt[0],Hrt=Brt[1],Urt=wi(Vrt(Nrt),2),Wrt=Urt[0],Yrt=Urt[1],Grt=wi(Vrt(Nrt),2),qrt=Grt[0],Zrt=Grt[1],Xrt=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=d3(l),w=wi(K5({prop:r,defaultProp:i,onChange:a}),2),k=w[0],S=void 0!==k&&k,E=w[1],C=wi(K5({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(Wrt,{scope:e,trigger:h,onTriggerChange:p,valueNode:g,onValueNodeChange:m,valueNodeHasChildren:b,onValueNodeHasChildrenChange:_,contentId:C5(),value:A,onValueChange:T,open:S,onOpenChange:E,dir:x,triggerPointerDownPosRef:M},ki.exports.createElement(zrt.Provider,{scope:e},ki.exports.createElement(qrt,{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(Eit,{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)},Krt=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=Yrt("SelectTrigger",n),u=m5(e,s.onTriggerChange),l=jrt(n),c=R5(s.trigger),f=a||c,d=Cit((function(t){var e=l().filter((function(t){return!t.disabled})),n=e.find((function(t){return t.value===s.value})),r=Ait(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(w5.button,d5({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:Z5(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:Z5(o.onKeyDown,(function(t){var e=""!==p.current;!(t.ctrlKey||t.altKey||t.metaKey)&&1===t.key.length&&v(t.key),(!e||" "!==t.key)&&Lrt.includes(t.key)&&(m(),t.preventDefault())}))}))})),$rt=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=Yrt("SelectValue",n),s=o.onValueNodeHasChildrenChange,u=void 0!==r,l=m5(e,o.onValueNodeChange);return k5((function(){s(u)}),[s,u]),ki.exports.createElement(w5.span,d5({},a,{ref:l,style:{pointerEvents:"none"}}),void 0===o.value&&void 0!==i?i:r)})),Qrt=ki.exports.forwardRef((function(t,e){t.__scopeSelect;var n=t.children,r=fi(t,Er);return ki.exports.createElement(w5.span,d5({"aria-hidden":!0},r,{ref:e}),n||"▼")})),Jrt=function(t){return ki.exports.createElement(qnt,d5({asChild:!0},t))},tit="SelectContent",eit=ki.exports.forwardRef((function(t,e){var n=Yrt(tit,t.__scopeSelect),r=wi(ki.exports.useState(),2),i=r[0],a=r[1];return k5((function(){a(new DocumentFragment)}),[]),ki.exports.createElement(ki.exports.Fragment,null,n.open?ki.exports.createElement(oit,d5({},t,{ref:e})):i?ma.exports.createPortal(ki.exports.createElement(iit,{scope:t.__scopeSelect},ki.exports.createElement(zrt.Slot,{scope:t.__scopeSelect},ki.exports.createElement("div",null,t.children))),i):null)})),nit=10,rit=wi(Vrt(tit),2),iit=rit[0],ait=rit[1],oit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.onCloseAutoFocus,i=fi(t,Cr),a=Yrt(tit,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=m5(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=jrt(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 Jnt(c)}),[c]),Lnt();var M=wi(ki.exports.useState(),2),O=M[0],P=M[1];k5((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-nit,p=c3(o,[nit,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-nit,S=c3(g,[nit,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-nit,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(nit,"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]);k5((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=Cit((function(t){var e=w().filter((function(t){return!t.disabled})),n=e.find((function(t){return t.ref.current===document.activeElement})),r=Ait(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(iit,{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(Drt,{as:y5,allowPinchZoom:!0},ki.exports.createElement("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O}},ki.exports.createElement(jnt,{asChild:!0,trapped:a.open,onMountAutoFocus:function(t){t.preventDefault()},onUnmountAutoFocus:Z5(r,(function(t){var e;null===(e=a.trigger)||void 0===e||e.focus({preventScroll:!0}),t.preventDefault()}))},ki.exports.createElement(Ont,d5({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:Z5(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()}}))}))))))})),sit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Ar),i=ait("SelectViewport",n),a=m5(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(zrt.Slot,{scope:n},ki.exports.createElement(w5.div,d5({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:_i({position:"relative",flex:1,overflow:"auto"},r.style),onScroll:Z5(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}))}))))})),uit=wi(Vrt("SelectGroup"),2),lit=uit[0],cit=uit[1],fit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Tr),i=C5();return ki.exports.createElement(lit,{scope:n,id:i},ki.exports.createElement(w5.div,d5({role:"group","aria-labelledby":i},r,{ref:e})))})),dit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Mr),i=cit("SelectLabel",n);return ki.exports.createElement(w5.div,d5({id:i.id},r,{ref:e}))})),hit="SelectItem",pit=wi(Vrt(hit),2),vit=pit[0],git=pit[1],mit=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=Yrt(hit,n),l=ait(hit,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=m5(e,(function(t){var e;return null===(e=l.itemRefCallback)||void 0===e?void 0:e.call(l,t,r,a)})),y=C5(),b=function(){a||(u.onValueChange(r),u.onOpenChange(!1))};return ki.exports.createElement(vit,{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(zrt.ItemSlot,{scope:n,value:r,disabled:a,textValue:d},ki.exports.createElement(w5.div,d5({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:Z5(s.onFocus,(function(){return g(!0)})),onBlur:Z5(s.onBlur,(function(){return g(!1)})),onPointerUp:Z5(s.onPointerUp,b),onPointerMove:Z5(s.onPointerMove,(function(t){var e;a?null===(e=l.onItemLeave)||void 0===e||e.call(l):t.currentTarget.focus({preventScroll:!0})})),onPointerLeave:Z5(s.onPointerLeave,(function(t){var e;t.currentTarget===document.activeElement&&(null===(e=l.onItemLeave)||void 0===e||e.call(l))})),onKeyDown:Z5(s.onKeyDown,(function(t){var e;""!==(null===(e=l.searchRef)||void 0===e?void 0:e.current)&&" "===t.key||(Irt.includes(t.key)&&b()," "===t.key&&t.preventDefault())}))}))))})),yit="SelectItemText",bit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=(t.className,t.style,fi(t,Pr)),i=Yrt(yit,n),a=ait(yit,n),o=git(yit,n),s=Zrt(yit,n),u=wi(ki.exports.useState(null),2),l=u[0],c=u[1],f=m5(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 k5((function(){return p(h),function(){return v(h)}}),[p,v,h]),ki.exports.createElement(ki.exports.Fragment,null,ki.exports.createElement(w5.span,d5({id:o.textId},r,{ref:f})),o.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ma.exports.createPortal(r.children,i.valueNode):null)})),_it=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=fi(t,Rr);return git("SelectItemIndicator",n).isSelected?ki.exports.createElement(w5.span,d5({"aria-hidden":!0},r,{ref:e})):null})),xit=ki.exports.forwardRef((function(t,e){var n=ait("SelectScrollUpButton",t.__scopeSelect),r=wi(ki.exports.useState(!1),2),i=r[0],a=r[1],o=m5(e,n.onScrollButtonChange);return k5((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(kit,d5({},t,{ref:o,onAutoScroll:function(){var t=n.viewport,e=n.selectedItem;t&&e&&(t.scrollTop=t.scrollTop-e.offsetHeight)}})):null})),wit=ki.exports.forwardRef((function(t,e){var n=ait("SelectScrollDownButton",t.__scopeSelect),r=wi(ki.exports.useState(!1),2),i=r[0],a=r[1],o=m5(e,n.onScrollButtonChange);return k5((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(kit,d5({},t,{ref:o,onAutoScroll:function(){var t=n.viewport,e=n.selectedItem;t&&e&&(t.scrollTop=t.scrollTop+e.offsetHeight)}})):null})),kit=ki.exports.forwardRef((function(t,e){var n=t.__scopeSelect,r=t.onAutoScroll,i=fi(t,Dr),a=ait("SelectScrollButton",n),o=ki.exports.useRef(null),s=jrt(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]),k5((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(w5.div,d5({"aria-hidden":!0},i,{ref:e,style:_i({flexShrink:0},i.style),onPointerMove:Z5(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:Z5(i.onPointerLeave,(function(){u()}))}))})),Sit=ki.exports.forwardRef((function(t,e){t.__scopeSelect;var n=fi(t,Lr);return ki.exports.createElement(w5.div,d5({"aria-hidden":!0},n,{ref:e}))})),Eit=ki.exports.forwardRef((function(t,e){var n=t.value,r=fi(t,Ir),i=ki.exports.useRef(null),a=m5(e,i),o=$5(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(Znt,{asChild:!0},ki.exports.createElement("select",d5({},r,{ref:a,defaultValue:n})))}));function Cit(t){var e=X5(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 Ait(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}Eit.displayName="BubbleSelect";var Tit=Xrt,Mit=Krt,Oit=$rt,Pit=Qrt,Rit=Jrt,Dit=eit,Lit=sit,Iit=fit,Nit=dit,Fit=mit,zit=bit,jit=_it,Bit=xit,Vit=wit,Hit=Sit,Uit=Object.freeze(Object.defineProperty({__proto__:null,createSelectScope:Hrt,Select:Xrt,SelectTrigger:Krt,SelectValue:$rt,SelectIcon:Qrt,SelectPortal:Jrt,SelectContent:eit,SelectViewport:sit,SelectGroup:fit,SelectLabel:dit,SelectItem:mit,SelectItemText:bit,SelectItemIndicator:_it,SelectScrollUpButton:xit,SelectScrollDownButton:wit,SelectSeparator:Sit,Root:Tit,Trigger:Mit,Value:Oit,Icon:Pit,Portal:Rit,Content:Dit,Viewport:Lit,Group:Iit,Label:Nit,Item:Fit,ItemText:zit,ItemIndicator:jit,ScrollUpButton:Bit,ScrollDownButton:Vit,Separator:Hit},Symbol.toStringTag,{value:"Module"})),Wit=function(t){return M2("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:M2("g",{clipPath:"url(#clip0_17_2062)",children:M2("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"})})}))},Yit=function(t){return M2("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:M2("g",{clipPath:"url(#clip0_17_4631)",children:M2("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"})})}))},Git=JC(Mit)(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"])),H2["--ll-color-background"],H2["--ll-border-radius-small"],H2["--ll-color-border"],H2["--ll-color-on-background-variant1"],H2["--ll-spacing-xx-small"],H2["--ll-spacing-x-small"],H2["--ll-spacing-xx-small"],H2["--ll-spacing-small"],(function(t){return"medium"===t.size?"32px":"40px"}),(function(t){return"medium"===t.size?H2["--ll-font-size-p"]:H2["--ll-font-size-h6"]})),qit=JC(Qrt)(le||(le=ci(["\n margin-left: ",";\n"])),H2["--ll-spacing-x-small"]),Zit=JC(Dit)(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"])),H2["--ll-color-background"],H2["--ll-border-radius-small"],H2["--ll-shadow-medium"],(function(t){return"medium"===t.size?H2["--ll-font-size-p"]:H2["--ll-font-size-h6"]})),Xit=JC(Fit)(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"])),H2["--ll-font-family"],H2["--ll-spacing-xx-small"],H2["--ll-spacing-x-large"],H2["--ll-spacing-xx-small"],H2["--ll-spacing-large"],H2["--ll-border-radius-small"],H2["--ll-color-on-surface-variant1"],H2["--ll-color-primary"],H2["--ll-color-on-primary"]),Kit=JC(jit)(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"])),H2["--ll-spacing-large"]),$it=JC(Lit)(he||(he=ci(["\n font-size: inherit;\n padding: ",";\n"])),H2["--ll-spacing-base-unit"]),Qit=JC(Rit)(pe||(pe=ci(["\n z-index: 1;\n"]))),Jit=Object.freeze(Object.defineProperty({__proto__:null,Trigger:Git,SelectIcon:qit,Content:Zit,Item:Xit,ItemIndicator:Kit,Viewport:$it,Portal:Qit},Symbol.toStringTag,{value:"Module"})),tat=Uit.Root,eat=Jit.Portal,nat=Object.freeze(Object.defineProperty({__proto__:null,Root:tat,Trigger:function(t){var e=t.size,n=void 0===e?"medium":e,r=t.children,i=fi(t,Nr);return e5(Git,_i(_i({size:n},i),{},{children:[r,t5(Qrt,{children:t5(i5,{SVGElement:Wit,fill:H2["--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 t5(Zit,_i(_i({size:n},i),{},{children:t5($it,{children:r})}))},Item:function(t){var e=t.children,n=fi(t,zr);return e5(Xit,_i(_i({},n),{},{children:[t5(zit,{children:e}),t5(Kit,{children:t5(i5,{SVGElement:Yit,fill:"currentColor",height:12})})]}))},Portal:eat},Symbol.toStringTag,{value:"Module"}));function rat(t){return t.split("-")[0]}function iat(t){return t.split("-")[1]}function aat(t){return["top","bottom"].includes(rat(t))?"x":"y"}function oat(t){return"y"===t?"height":"width"}function sat(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=aat(e),l=oat(u),c=i[l]/2-a[l]/2,f="x"===u;switch(rat(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(iat(e)){case"start":r[u]-=c*(n&&f?-1:1);break;case"end":r[u]+=c*(n&&f?-1:1)}return r}var uat=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=sat(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=sat(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 lat(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 cat(t){return _i(_i({},t),{},{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function fat(t,e){return dat.apply(this,arguments)}function dat(){return dat=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,_=lat(void 0===b?0:b),x=u[y?"floating"===g?"reference":"floating":g],t.t0=cat,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=cat,!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)}))),dat.apply(this,arguments)}var hat=Math.min,pat=Math.max;function vat(t,e,n){return pat(t,hat(e,n))}var gat=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=lat(u),v={x:l,y:c},g=aat(f),m=iat(f),y=oat(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=vat(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)})))()}}},mat={left:"right",right:"left",bottom:"top",top:"bottom"};function yat(t){return t.replace(/left|right|bottom|top/g,(function(t){return mat[t]}))}function bat(t,e,n){void 0===n&&(n=!1);var r=iat(t),i=aat(t),a=oat(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=yat(o)),{main:o,cross:yat(o)}}var _at={start:"end",end:"start"};function xat(t){return t.replace(/start|end/g,(function(t){return _at[t]}))}var wat=["top","right","bottom","left"];function kat(t){var e=yat(t);return[xat(t),e,xat(e)]}var Sat=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=rat(i),w=v||(x!==s&&b?kat(s):[yat(s)]),k=[s].concat(mi(w)),n.next=22,fat(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=bat,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 Eat(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Cat(t){return wat.some((function(e){return t[e]>=0}))}var Aat=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,fat(t,_i(_i({},i),{},{elementContext:"reference"}));case 6:return a=e.sent,o=Eat(a,n.reference),e.abrupt("return",{data:{referenceHiddenOffsets:o,referenceHidden:Cat(o)}});case 9:return e.next=11,fat(t,_i(_i({},i),{},{altBoundary:!0}));case 11:return s=e.sent,u=Eat(s,n.floating),e.abrupt("return",{data:{escapedOffsets:u,escaped:Cat(u)}});case 14:return e.abrupt("return",{});case 15:case"end":return e.stop()}}),e)})))()}}};function Tat(t,e){return Mat.apply(this,arguments)}function Mat(){return Mat=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=rat(r),u=iat(r),l="x"===aat(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)}))),Mat.apply(this,arguments)}var Oat=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,Tat(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 Pat(t){return"x"===t?"y":"x"}var Rat=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,fat(e,p);case 14:return g=n.sent,m=aat(rat(o)),y=Pat(m),b=v[m],_=v[y],l&&(x="y"===m?"bottom":"right",w=b+g["y"===m?"top":"left"],k=b-g[x],b=vat(w,b,k)),f&&(S="y"===y?"bottom":"right",E=_+g["y"===y?"top":"left"],C=_-g[S],_=vat(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)})))()}}},Dat=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=aat(a),m=Pat(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(rat(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 Lat(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function Iat(t){if(null==t)return window;if(!Lat(t)){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Nat(t){return Iat(t).getComputedStyle(t)}function Fat(t){return Lat(t)?"":t?(t.nodeName||"").toLowerCase():""}function zat(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function jat(t){return t instanceof Iat(t).HTMLElement}function Bat(t){return t instanceof Iat(t).Element}function Vat(t){return!(("undefined"==typeof ShadowRoot?"undefined":Fi(ShadowRoot))>"u")&&(t instanceof Iat(t).ShadowRoot||t instanceof ShadowRoot)}function Hat(t){var e=Nat(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Uat(t){return["table","td","th"].includes(Fat(t))}function Wat(t){var e=/firefox/i.test(zat()),n=Nat(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 Yat(){return!/^((?!chrome|android).)*safari/i.test(zat())}var Gat=Math.min,qat=Math.max,Zat=Math.round;function Xat(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&&jat(t)&&(u=t.offsetWidth>0&&Zat(s.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Zat(s.height)/t.offsetHeight||1);var c=Bat(t)?Iat(t):window,f=!Yat()&&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 Kat(t){return((function(t){return t instanceof Iat(t).Node}(t)?t.ownerDocument:t.document)||window.document).documentElement}function $at(t){return Bat(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Qat(t){return Xat(Kat(t)).left+$at(t).scrollLeft}function Jat(t,e,n){var r=jat(e),i=Kat(e),a=Xat(t,r&&function(t){var e=Xat(t);return Zat(e.width)!==t.offsetWidth||Zat(e.height)!==t.offsetHeight}(e),"fixed"===n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Fat(e)||Hat(i))&&(o=$at(e)),jat(e)){var u=Xat(e,!0);s.x=u.x+e.clientLeft,s.y=u.y+e.clientTop}else i&&(s.x=Qat(i));return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}function tot(t){return"html"===Fat(t)?t:t.assignedSlot||t.parentNode||(Vat(t)?t.host:null)||Kat(t)}function eot(t){return jat(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function not(t){for(var e=Iat(t),n=eot(t);n&&Uat(n)&&"static"===getComputedStyle(n).position;)n=eot(n);return n&&("html"===Fat(n)||"body"===Fat(n)&&"static"===getComputedStyle(n).position&&!Wat(n))?e:n||function(t){var e=tot(t);for(Vat(e)&&(e=e.host);jat(e)&&!["html","body"].includes(Fat(e));){if(Wat(e))return e;e=e.parentNode}return null}(t)||e}function rot(t){if(jat(t))return{width:t.offsetWidth,height:t.offsetHeight};var e=Xat(t);return{width:e.width,height:e.height}}function iot(t){var e=tot(t);return["html","body","#document"].includes(Fat(e))?t.ownerDocument.body:jat(e)&&Hat(e)?e:iot(e)}function aot(t,e){var n;void 0===e&&(e=[]);var r=iot(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),a=Iat(r),o=i?[a].concat(a.visualViewport||[],Hat(r)?r:[]):r,s=e.concat(o);return i?s:s.concat(aot(o))}function oot(t,e,n){return"viewport"===e?cat(function(t,e){var n=Iat(t),r=Kat(t),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;var l=Yat();(l||!l&&"fixed"===e)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s,y:u}}(t,n)):Bat(e)?function(t,e){var n=Xat(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):cat(function(t){var e,n=Kat(t),r=$at(t),i=null==(e=t.ownerDocument)?void 0:e.body,a=qat(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=qat(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Qat(t),u=-r.scrollTop;return"rtl"===Nat(i||n).direction&&(s+=qat(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}(Kat(t)))}function sot(t){var e=aot(t),n=["absolute","fixed"].includes(Nat(t).position)&&jat(t)?not(t):t;return Bat(n)?e.filter((function(t){return Bat(t)&&function(t,e){var n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Vat(n)){var r=e;do{if(r&&t===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(t,n)&&"body"!==Fat(t)})):[]}var uot={getClippingRect:function(t){var e=t.element,n=t.boundary,r=t.rootBoundary,i=t.strategy,a=[].concat(mi("clippingAncestors"===n?sot(e):[].concat(n)),[r]),o=a[0],s=a.reduce((function(t,n){var r=oot(e,n,i);return t.top=qat(r.top,t.top),t.right=Gat(r.right,t.right),t.bottom=Gat(r.bottom,t.bottom),t.left=qat(r.left,t.left),t}),oot(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=jat(n),a=Kat(n);if(n===a)return e;var o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==Fat(n)||Hat(a))&&(o=$at(n)),jat(n))){var u=Xat(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:Bat,getDimensions:rot,getOffsetParent:not,getDocumentElement:Kat,getElementRects:function(t){var e=t.reference,n=t.floating,r=t.strategy;return{reference:Jat(e,not(n),r),floating:_i(_i({},rot(n)),{},{x:0,y:0})}},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return"rtl"===Nat(t).direction}};function lot(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(Bat(t)?aot(t):[]),mi(aot(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})),Bat(t)&&!d&&g.observe(t),g.observe(e)}var y,b=d?Xat(t):null;return d&&function e(){var r=Xat(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 cot=("undefined"==typeof document?"undefined":Fi(document))<"u"?ki.exports.useLayoutEffect:ki.exports.useEffect;function fot(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(!fot(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||fot(t[a],e[a])))return!1}return!0}return t!=t&&e!=e}function dot(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 cot((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];fot(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 uat(t,e,_i({platform:uot},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]);cot((function(){b.current&&y()}),[y]);var b=ki.exports.useRef(!1);cot((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 hot=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?gat({element:e.current,padding:n}).fn(t):{}:e?gat({element:e,padding:n}).fn(t):{}}}},pot=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(w5.svg,d5({},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"}))})),vot=pot,got="Popper",mot=wi(h5(got),2),yot=mot[0],bot=mot[1],_ot=wi(yot(got),2),xot=_ot[0],wot=_ot[1],kot=ki.exports.forwardRef((function(t,e){var n=t.__scopePopper,r=t.virtualRef,i=fi(t,Ur),a=wot("PopperAnchor",n),o=ki.exports.useRef(null),s=m5(e,o);return ki.exports.useEffect((function(){a.onAnchorChange((null==r?void 0:r.current)||o.current)})),r?null:ki.exports.createElement(w5.div,d5({},i,{ref:s}))})),Sot="PopperContent",Eot=wi(yot(Sot),2),Cot=Eot[0],Aot=Eot[1],Tot=wi(yot(Sot,{hasParent:!1,positionUpdateFns:new Set}),2),Mot=Tot[0],Oot=Tot[1],Pot=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=wot(Sot,c),D=wi(ki.exports.useState(null),2),L=D[0],I=D[1],N=m5(e,(function(t){return I(t)})),F=wi(ki.exports.useState(null),2),z=F[0],j=F[1],B=Q5(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(Iot),altBoundary:G},Z=dot({strategy:"fixed",placement:U,whileElementsMounted:lot,middleware:[Oat({mainAxis:p+H,alignmentAxis:y}),O?Rat(_i({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?Dat():void 0},q)):void 0,z?hot({element:z,padding:_}):void 0,O?Sat(_i({},q)):void 0,Not({arrowWidth:V,arrowHeight:H}),T?Aat({strategy:"referenceHidden"}):void 0].filter(Lot)}),X=Z.reference,K=Z.floating,$=Z.strategy,Q=Z.x,J=Z.y,tt=Z.placement,et=Z.middlewareData,nt=Z.update;k5((function(){X(R.anchor)}),[X,R.anchor]);var rt=null!==Q&&null!==J,it=wi(Fot(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];k5((function(){L&&dt(window.getComputedStyle(L).zIndex)}),[L]);var ht=Oot(Sot,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(Cot,{scope:c,placedSide:at,onArrowChange:j,arrowX:st,arrowY:ut,shouldHideArrow:lt},gt?ki.exports.createElement(Mot,{scope:c,hasParent:!0,positionUpdateFns:vt},ki.exports.createElement(w5.div,mt)):ki.exports.createElement(w5.div,mt)))})),Rot={top:"bottom",right:"left",bottom:"top",left:"right"},Dot=ki.exports.forwardRef((function(t,e){var n,r=t.__scopePopper,i=fi(t,Yr),a=Aot("PopperArrow",r),o=Rot[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(vot,d5({},i,{ref:e,style:_i(_i({},i.style),{},{display:"block"})})))}));function Lot(t){return void 0!==t}function Iot(t){return null!==t}var Not=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(Fot(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 Fot(t){var e=wi(t.split("-"),2),n=e[0],r=e[1];return[n,void 0===r?"center":r]}var zot=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(xot,{scope:e,anchor:i,onAnchorChange:a},n)},jot=kot,Bot=Pot,Vot=Dot;var Hot=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=Uot(i.current);o.current="mounted"===u?t:"none"}),[u]),k5((function(){var e=i.current,n=a.current;if(n!==t){var r=o.current,s=Uot(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]),k5((function(){if(n){var t=function(t){var e=Uot(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=Uot(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=m5(r.ref,i.ref);return"function"==typeof n||r.isPresent?ki.exports.cloneElement(i,{ref:a}):null};function Uot(t){return(null==t?void 0:t.animationName)||"none"}Hot.displayName="Presence";var Wot="Popover",Yot=wi(h5(Wot,[bot]),2),Got=Yot[0],qot=Yot[1],Zot=bot(),Xot=wi(Got(Wot),2),Kot=Xot[0],$ot=Xot[1],Qot=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=Zot(e),l=ki.exports.useRef(null),c=wi(ki.exports.useState(!1),2),f=c[0],d=c[1],h=wi(K5({prop:r,defaultProp:i,onChange:a}),2),p=h[0],v=void 0!==p&&p,g=h[1];return ki.exports.createElement(zot,u,ki.exports.createElement(Kot,{scope:e,contentId:C5(),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))},Jot=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,Gr),i=$ot("PopoverAnchor",n),a=Zot(n),o=i.onCustomAnchorAdd,s=i.onCustomAnchorRemove;return ki.exports.useEffect((function(){return o(),function(){return s()}}),[o,s]),ki.exports.createElement(jot,d5({},a,r,{ref:e}))})),tst=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,qr),i=$ot("PopoverTrigger",n),a=Zot(n),o=m5(e,i.triggerRef),s=ki.exports.createElement(w5.button,d5({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":hst(i.open)},r,{ref:o,onClick:Z5(t.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:ki.exports.createElement(jot,d5({asChild:!0},a),s)})),est="PopoverPortal",nst=wi(Got(est,{forceMount:void 0}),2),rst=nst[0],ist=nst[1],ast=function(t){var e=t.__scopePopover,n=t.forceMount,r=t.children,i=t.container,a=$ot(est,e);return ki.exports.createElement(rst,{scope:e,forceMount:n},ki.exports.createElement(Hot,{present:n||a.open},ki.exports.createElement(qnt,{asChild:!0,container:i},r)))},ost="PopoverContent",sst=ki.exports.forwardRef((function(t,e){var n=ist(ost,t.__scopePopover),r=t.forceMount,i=void 0===r?n.forceMount:r,a=fi(t,Zr),o=$ot(ost,t.__scopePopover);return ki.exports.createElement(Hot,{present:i||o.open},o.modal?ki.exports.createElement(ust,d5({},a,{ref:e})):ki.exports.createElement(lst,d5({},a,{ref:e})))})),ust=ki.exports.forwardRef((function(t,e){var n=$ot(ost,t.__scopePopover),r=ki.exports.useRef(null),i=m5(e,r),a=ki.exports.useRef(!1);return ki.exports.useEffect((function(){var t=r.current;if(t)return Jnt(t)}),[]),ki.exports.createElement(Drt,{as:y5,allowPinchZoom:!0},ki.exports.createElement(cst,d5({},t,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z5(t.onCloseAutoFocus,(function(t){var e;t.preventDefault(),a.current||null===(e=n.triggerRef.current)||void 0===e||e.focus()})),onPointerDownOutside:Z5(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:Z5(t.onFocusOutside,(function(t){return t.preventDefault()}),{checkForDefaultPrevented:!1})})))})),lst=ki.exports.forwardRef((function(t,e){var n=$ot(ost,t.__scopePopover),r=ki.exports.useRef(!1);return ki.exports.createElement(cst,d5({},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()}}))})),cst=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=$ot(ost,n),h=Zot(n);return Lnt(),ki.exports.createElement(jnt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a},ki.exports.createElement(Ont,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:l,onDismiss:function(){return d.onOpenChange(!1)}},ki.exports.createElement(Bot,d5({"data-state":hst(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)"))}))))})),fst=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,Kr),i=$ot("PopoverClose",n);return ki.exports.createElement(w5.button,d5({type:"button"},r,{ref:e,onClick:Z5(t.onClick,(function(){return i.onOpenChange(!1)}))}))})),dst=ki.exports.forwardRef((function(t,e){var n=t.__scopePopover,r=fi(t,$r),i=Zot(n);return ki.exports.createElement(Vot,d5({},i,r,{ref:e}))}));function hst(t){return t?"open":"closed"}var pst=Qot,vst=Jot,gst=tst,mst=ast,yst=sst,bst=fst,_st=dst,xst=Object.freeze(Object.defineProperty({__proto__:null,createPopoverScope:qot,Popover:Qot,PopoverAnchor:Jot,PopoverTrigger:tst,PopoverPortal:ast,PopoverContent:sst,PopoverClose:fst,PopoverArrow:dst,Root:pst,Anchor:vst,Trigger:gst,Portal:mst,Content:yst,Close:bst,Arrow:_st},Symbol.toStringTag,{value:"Module"})),wst=JC(gst)(ve||(ve=ci(["\n background: none;\n border: none;\n padding: 0;\n"]))),kst=JC(yst)(ge||(ge=ci(["\n padding: ",";\n background-color: ",";\n box-shadow: ",";\n border-radius: ",";\n width: 240px;\n"])),H2["--ll-spacing-small"],H2["--ll-color-background"],H2["--ll-shadow-small"],H2["--ll-border-radius-small"]),Sst=JC(_st)(me||(me=ci(["\n fill: ",";\n"])),H2["--ll-color-background"]),Est=Object.freeze(Object.defineProperty({__proto__:null,Trigger:wst,Content:kst,Arrow:Sst},Symbol.toStringTag,{value:"Module"})),Cst=xst.Root,Ast=xst.Portal,Tst=Est.Trigger,Mst=Object.freeze(Object.defineProperty({__proto__:null,Root:Cst,Trigger:Tst,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 t5(Ast,{children:e5(kst,{side:e,className:r,sideOffset:a,collisionPadding:void 0===o?8:o,children:[t5(Sst,{}),n]})})}},Symbol.toStringTag,{value:"Module"})),Ost=pa.createContext({}),Pst=hi("n",(function(){return ki.exports.useContext(Ost)})),Rst=function(t){var e,n,r=t.client,i=t.options,a=t.children;return O2(Ost.Provider,{value:{client:r,options:i},children:[M2(W2,{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]})},Dst=pa.createContext({}),Lst=function(){return ki.exports.useContext(Dst)},Ist=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},Nst=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 Ist(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 Ist(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 Ist(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}},Fst=JC.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?H2["--ll-color-primary"]:H2["--ll-color-disabled"]}),H2["--ll-color-on-primary"],H2["--ll-border-radius-small"],H2["--ll-font-family"],(function(t){return function(t){return"small"===t?KC(ye||(ye=ci(["\n height: 16px;\n padding: 0 ",";\n font-size: ",";\n "])),H2["--ll-spacing-xx-small"],H2["--ll-font-size-caption-2"]):KC(be||(be=ci(["\n height: 32px;\n width: 32px;\n font-size: ",";\n "])),H2["--ll-font-size-p"])}(t.$variant)})),zst=JC.div(xe||(xe=ci(["\n z-index: 1;\n"]))),jst=Object.defineProperty,Bst=function(t,e,n){return function(t,e,n){e in t?jst(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n}(t,"symbol"!=Fi(e)?e+"":e,n),n},Vst=function(t){return"object"==Fi(t)&&null!==t&&!Array.isArray(t)};var Hst=Object.freeze(Object.defineProperty({__proto__:null,isObject:Vst,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 Vst(e)&&Vst(a)&&Object.keys(a).forEach((function(n){Vst(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"})),Ust=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"})),Wst=Object.freeze(Object.defineProperty({__proto__:null,isSchool:function(t,e){return"school"===e}},Symbol.toStringTag,{value:"Module"})),Yst=Object.freeze(Object.defineProperty({__proto__:null,poi:Wst},Symbol.toStringTag,{value:"Module"})),Gst={},qst={},Zst={},Xst={
|
|
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(Qst),a=r.decode||Kst,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]=tut(c,a))}}return n},serialize:function(t,e,n){var r=n||{},i=r.encode||$st;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!Jst.test(t))throw new TypeError("argument name is invalid");var a=i(e);if(a&&!Jst.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(!Jst.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!Jst.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}},Kst=decodeURIComponent,$st=encodeURIComponent,Qst=/; */,Jst=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function tut(t,e){try{return e(t)}catch(n){return t}}Object.defineProperty(Zst,"__esModule",{value:!0});var eut=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}}();Zst.hasCookies=function(){var t=new aut;try{var e="__test";t.setItem(e,"1");var n=t.getItem(e);return t.removeItem(e),"1"===n}catch(r){return!1}};var nut=function(t){return t&&t.__esModule?t:{default:t}}(Xst);function rut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var iut="lS_",aut=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};rut(this,t),this.cookieOptions=Object.assign({path:"/"},e),iut=void 0===e.prefix?iut:e.prefix}return eut(t,[{key:"getItem",value:function(t){var e=nut.default.parse(document.cookie);return e&&e.hasOwnProperty(iut+t)?e[iut+t]:null}},{key:"setItem",value:function(t,e){return document.cookie=nut.default.serialize(iut+t,e,this.cookieOptions),e}},{key:"removeItem",value:function(t){var e=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=nut.default.serialize(iut+t,"",e),null}},{key:"clear",value:function(){var t=nut.default.parse(document.cookie);for(var e in t)0===e.indexOf(iut)&&this.removeItem(e.substr(iut.length));return null}}]),t}();Zst.default=aut,Object.defineProperty(qst,"__esModule",{value:!0}),qst.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 uut("localStorage");if("session"===e)return uut("sessionStorage");if("cookie"===e)return(0,out.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 out=Zst,sut="__test";function uut(t){try{var e=window[t];return e.setItem(sut,"1"),e.removeItem(sut),!0}catch(n){return!1}}var lut={};Object.defineProperty(lut,"__esModule",{value:!0});var cut=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 fut=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 cut(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}();lut.default=fut,Object.defineProperty(Gst,"__esModule",{value:!0}),Gst.MemoryStorage=Gst.CookieStorage=Gst.isSupported=Gst.storage=void 0;var dut=vut(qst),hut=vut(Zst),put=vut(lut);function vut(t){return t&&t.__esModule?t:{default:t}}var gut=null;(0,dut.default)("localStorage")?Gst.storage=gut=window.localStorage:(0,dut.default)("sessionStorage")?Gst.storage=gut=window.sessionStorage:(0,dut.default)("cookieStorage")?Gst.storage=gut=new hut.default:Gst.storage=gut=new put.default;var mut=Gst.default=gut;Gst.storage=gut,Gst.isSupported=dut.default,Gst.CookieStorage=hut.default,Gst.MemoryStorage=put.default;var yut=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";Ai(this,t),Bst(this,"group"),Bst(this,"localStorage"),this.group=e,this.localStorage=mut}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 yut;var but=function(){function t(){Ai(this,t),Bst(this,"storageLocation","suggestion_history"),Bst(this,"storage"),Bst(this,"history",[]),this.storage=new yut("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 but;var _ut=function(t){var e=Pst().client.options.locale,n=void 0===e?"en":e,r=ki.exports.useMemo((function(){return Hst.mergeDeep.apply(Hst,[{}].concat(mi(t)))[n]}),[n,t]);return{locale:n,translations:r}},xut={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"}},wut={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."}},kut=function(t){var e,n=Lst().options.score,r=_ut([wut,xut]).translations;return null!=(e=t.options)&&e.isRawText?M2(T2,{children:r[n]}):M2(l5,_i(_i({},t.options),{},{children:r[n]}))};kut.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1",isRawText:!1}};var Sut=function(t){return xk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[_k("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"}),_k("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"}),_k("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"})]}))},Eut=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},Cut=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},Aut=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},Tut=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},Mut=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},Out=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},Put=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},Rut=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},Dut=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},Lut=function(t){return xk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[_k("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"}),_k("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"}),_k("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"})]}))},Iut={pedestrian_friendly:function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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:Sut,cycling_friendly:function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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 xk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[_k("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"}),_k("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"}),_k("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:Mut,restaurants:Tut,cafes:Eut,shopping:Cut,wellness:Rut,parks:Out,greenery:function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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 xk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[_k("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"}),_k("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"}),_k("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"}),_k("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"}),_k("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:Aut,quiet:function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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 xk("svg",_i(_i({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[_k("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"}),_k("path",{d:"M9.16671 7.5H7.50004V10H9.16671V7.5Z"}),_k("path",{d:"M12.5 7.5H10.8334V10H12.5V7.5Z"})]}))},high_schools:Dut,primary_schools:Lut,daycares:Put},Nut=(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=Lst().options.score;return M2(i5,{SVGElement:Iut[n],fill:"var(".concat(null==e?void 0:e.color,")"),height:null==e?void 0:e.height,width:null==e?void 0:e.width})});Nut.defaultProps={options:{color:"--ll-color-on-background-variant1"}};var Fut={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0},zut=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(Fut),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]},jut={en:{LOCATION:"This Location",CITY:"City",NEIGHBOURHOOD:"Neighbourhood",AVG:"Avg."},fr:{LOCATION:"Ce Lieu",CITY:"Ville",NEIGHBOURHOOD:"Quartier",AVG:"Moy."}},But=JC.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"}),H2["--ll-spacing-x-small"]),Vut=JC.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,H2["--ll-color-surface-variant1"]),Hut=JC(CL.div)(Se||(Se=ci(["\n position: absolute;\n height: 100%;\n border-radius: ","px;\n background: ",";\n"])),4,(function(t){return!0===t.$renderForPrint?KC(Ee||(Ee=ci(["\n ","\n "])),H2["--ll-color-primary"]):KC(Ce||(Ce=ci(["linear-gradient(\n to right,\n ",",\n ","\n )"])),H2["--ll-color-primary-variant1"],H2["--ll-color-primary"])}));JC.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(H2["--ll-color-on-background"])})),JC.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 Uut=JC.div(Me||(Me=ci(["\n display: flex;\n max-width: ","px;\n"])),(function(t){return t.maxWidth})),Wut=JC(l5)(Oe||(Oe=ci(["\n margin-right: 4px;\n"]))),Yut=JC.span(Pe||(Pe=ci(["\n flex-shrink: 0;\n"]))),Gut=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},qut=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},Zut=JC.div(Re||(Re=ci(["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n"]))),Xut=JC(Mst.Content)(De||(De=ci(["\n z-index: 3;\n"]))),Kut=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=Lst().options,s=o.scoresData,u=o.score,l=Nst({scoresData:s,score:u}).scoreVal;return null==l?null:M2(Fst,{"data-testid":"score-badge",$variant:r,$isPrimary:a,children:M2(zst,{children:l})})},Title:kut,Icon:Nut,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=Lst().options,u=s.scoresData,l=s.score,c=Pst().options,f=Nst({score:l,scoresData:u}),d=f.scoreVal,h=f.cityName,p=f.cityScoreVal,v=f.neighbourhoodName,g=f.neighbourhoodScoreVal,m=_ut([jut]).translations,y=!!n||!!r||!!i,b=wi(zut(),2),_=b[0],x=b[1],w=M2("div",{}),k=function(t){return t?M2(i5,{width:20,height:20,SVGElement:t,fill:H2["--ll-color-on-background-variant1"]}):y?w:void 0};return d?M2(T2,{children:O2(But,{$isUsingIcons:y,ref:_,children:[O2(T2,{children:[k(n),M2(l5,{variant:"p",weight:"--ll-font-weight-bold",noMargin:!0,color:"--ll-color-on-background-variant1",children:m.LOCATION}),M2(Vut,{children:M2(Hut,{$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},X2.transitions.spring)})}),M2(l5,{variant:"p",weight:"--ll-font-weight-bold",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:d})]}),g&&!1!==o&&O2(T2,{children:[k(i),O2(Uut,{maxWidth:x.width/2,children:[M2(Wut,{variant:"p",lineClamp:1,noMargin:!0,color:"--ll-color-on-background-variant1",children:v||m.NEIGHBOURHOOD}),M2(Yut,{children:M2(l5,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:m.AVG})})]}),M2(Vut,{children:M2(Hut,{animate:{width:"".concat(g/10*100,"%")},transition:_i({delay:.5},X2.transitions.spring)})}),M2(l5,{variant:"p",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:g})]}),p&&!1!==a&&O2(T2,{children:[k(r),O2(Uut,{maxWidth:x.width/2,children:[M2(Wut,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:h||m.CITY}),M2(Yut,{children:M2(l5,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:m.AVG})})]}),M2(Vut,{children:M2(Hut,{animate:{width:"".concat(p/10*100,"%")},transition:_i({delay:.4},X2.transitions.spring)})}),M2(l5,{variant:"p",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:p})]})]})}):null},Description:function(){var t=Lst(),e=t.options,n=e.scoresData,r=e.score,i=t.onChange,a=Nst({scoresData:n,score:r}).textVal,o=wi(ki.exports.useState(!1),2),s=o[0],u=o[1],l=_ut([wut,xut]).translations;return a?O2(Zut,{children:[O2(l5,{noMargin:!0,color:"--ll-color-on-surface-variant1",children:[a,"."]}),O2(Mst.Root,{open:s,onOpenChange:function(t){u(t),i&&i({type:"tooltip-toggle",data:t})},children:[M2(Mst.Trigger,{children:M2(i5,{SVGElement:s?Gut:qut,fill:H2["--ll-color-primary"],height:20,width:20})}),M2(Xut,{children:M2(l5,{noMargin:!0,color:"--ll-color-on-surface-variant1",children:l["".concat(r,"-description")]})})]})]}):null},Root:function(t){return M2(Dst.Provider,{value:_i({},t),children:t.children})}},Symbol.toStringTag,{value:"Module"})),$ut={en:{LOCAL_LOGIC:"Local Logic",POWERED_BY:"Powered by"},fr:{LOCAL_LOGIC:"Local Logic",POWERED_BY:"Propulsé par"}},Qut=JC.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"]))),Jut=JC.img(Ie||(Ie=ci(["\n height: 20px;\n margin-left: ",";\n"])),H2["--ll-spacing-base-unit"]),tlt=JC(l5)(Ne||(Ne=ci(["\n line-height: initial;\n"]))),elt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),nlt=Object.freeze(Object.defineProperty({__proto__:null,Root:function(){var t=_ut([$ut]).translations;return O2(Qut,{href:"https://locallogic.co/",target:"_blank",rel:"noreferrer",children:[M2(tlt,{variant:"caption1",weight:"--ll-font-weight-medium",noMargin:!0,lineClamp:1,color:"--ll-color-on-background-variant1",children:t.POWERED_BY}),M2(Jut,{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:elt},Symbol.toStringTag,{value:"Module"})),rlt=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("path",{d:"M10 20V14H14V20H19V12H22L12 3L2 12H5V20H10Z"})}))},ilt=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},alt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),olt=Object.freeze(Object.defineProperty({__proto__:null,Root:function(t){var e=t.options;return M2(q5,{SVGElement:"house"===e.style?rlt:ilt,size:e.size||"large",backgroundColor:H2["--ll-color-primary"],backgroundColorHighlight:H2["--ll-color-primary-variant1"]})},Types:alt},Symbol.toStringTag,{value:"Module"})),slt=pa.createContext({}),ult=function(){return ki.exports.useContext(slt)},llt={groceries:function(t){return _k("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),{},{children:_k("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:Mut,shopping:Cut,nightlife:Aut,restaurants:Tut,healthy_restaurants:Rut,cafes:Eut,daycares:Put,bus_stops:Sut,rapid_transit_stations:function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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 _k("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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:Out,fitness:function(t){return xk("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),{},{children:[_k("path",{d:"M0 0h24v24H0z",fill:"none"}),_k("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:Rut,pet_care:function(t){return xk("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),{},{children:[_k("path",{d:"M0 0h24v24H0z",fill:"none"}),_k("circle",{cx:4.5,cy:9.5,r:2.5}),_k("circle",{cx:9,cy:5.5,r:2.5}),_k("circle",{cx:15,cy:5.5,r:2.5}),_k("circle",{cx:19.5,cy:9.5,r:2.5}),_k("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 xk("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),{},{children:[_k("path",{d:"M0 0h24v24H0z",fill:"none"}),_k("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 xk("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:[_k("rect",{fill:"none",height:24,width:24}),_k("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 xk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[_k("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"}),_k("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 xk("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",viewBox:"0 0 24 24"},t),{},{children:[_k("g",{children:_k("rect",{fill:"none",height:24,width:24})}),_k("g",{children:_k("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 xk("svg",_i(_i({xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",viewBox:"0 0 24 24"},t),{},{children:[_k("g",{children:_k("rect",{fill:"none",height:24,width:24})}),_k("g",{children:xk("g",{children:[_k("g",{children:_k("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"})}),_k("g",{children:_k("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:Lut,high_schools:Dut},clt=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},flt={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"}},dlt={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"}},hlt=JC.div(Fe||(Fe=ci(["\n display: flex;\n margin-bottom: ",";\n align-items: center;\n justify-content: ",";\n"])),H2["--ll-spacing-xx-small"],(function(t){return t.justify||"start"})),plt=JC(n5)(ze||(ze=ci(["\n margin-right: 2px;\n margin-bottom: 2px;\n"]))),vlt=JC.div(je||(je=ci(["\n display: grid;\n grid-template-columns: auto 1fr;\n grid-column-gap: 10px;\n margin-bottom: ",";\n"])),H2["--ll-spacing-xx-small"]),glt=JC(Mst.Content)(Be||(Be=ci(["\n z-index: 3;\n"]))),mlt=JC(l5)(Ve||(Ve=ci([""]))),ylt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),blt=Object.freeze(Object.defineProperty({__proto__:null,Types:ylt,Marker:function(){var t=ult().options,e=t.type,n=t.isOpen,r=t.isHovered,i=t.size;return M2(Mst.Trigger,{children:M2(q5,{size:i,SVGElement:llt[e],expandMarker:n||r,backgroundColor:H2["--ll-color-primary"],backgroundColorHighlight:H2["--ll-color-primary-variant1"]})})},Content:function(){var t,e,n,r,i,a,o=ult().options,s=o.poi,u=o.side,l=o.collisionPadding,c=o.type,f=o.walkingTime,d=o.calculateRoute,h=_ut([flt,dlt]).translations,p="high_schools"===c||"primary_schools"===c?"school":"poi",v=function(t,e){return O2(T2,{children:[O2(mlt,{children:[t,": "]}),M2(mlt,{color:H2["--ll-color-on-background-variant1"],children:Ust.capitalize(e)})]})};return O2(glt,{side:u,collisionPadding:l,children:[M2(l5,{variant:"h4",noMargin:!0,weight:"--ll-font-weight-bold",children:s.name}),M2(K3,{vertical:!0,spacing:"--ll-spacing-xx-small"}),s.address&&M2(l5,{variant:"p",noMargin:!0,children:s.address}),M2(K3,{vertical:!0,spacing:"--ll-spacing-xx-small"}),s.url&&O2(T2,{children:[M2(f5,{lineClamp:2,href:s.url,children:s.url}),M2(K3,{vertical:!0,spacing:"--ll-spacing-xx-small"})]}),Yst.poi.isSchool(s,p)?O2(vlt,{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)&&O2(T2,{children:[O2(mlt,{children:[h.SCHOOL_BOARD,": "]}),M2(f5,{href:s.school_board_attributes.url,children:Ust.capitalize(s.school_board_attributes.name)})]})]}):s.routes&&O2(hlt,{children:[M2(i5,{SVGElement:llt[c],height:20,width:20,fill:H2["--ll-color-on-background"]}),null==(a=s.routes)?void 0:a.map((function(t,e){return M2(plt,{text:t.short_name,backgroundColor:t.route_color,textColor:t.text_color},t.short_name+e)}))]}),M2(n5,{text:h[c],size:"medium",backgroundColor:H2["--ll-color-primary"]}),d&&O2(T2,{children:[M2(K3,{vertical:!0,spacing:"--ll-spacing-small"}),O2(hlt,{justify:f?"space-between":"end",children:[f&&O2(hlt,{children:[M2(i5,{SVGElement:clt,height:20,width:20,fill:H2["--ll-color-on-background"]}),M2(l5,{variant:"p",noMargin:!0,children:f})]}),M2(W5,{size:"small",variant:"contained",onClick:d,children:h.CALCULATE})]})]})]})},Root:function(t){return M2(Mst.Root,{open:t.options.isOpen,onOpenChange:function(e){return t.onChange&&t.onChange({type:"open-change",data:e})},children:M2(slt.Provider,{value:_i({},t),children:t.children})})}},Symbol.toStringTag,{value:"Module"})),_lt=JC.ul(He||(He=ci(["\n list-style: none;\n padding: 0;\n margin-bottom: 0;\n"]))),xlt=JC.li(Ue||(Ue=ci(["\n cursor: default;\n padding: ",";\n margin-bottom: ",";\n border-radius: ",";\n background-color: ",";\n"])),H2["--ll-spacing-x-small"],H2["--ll-spacing-xx-small"],H2["--ll-border-radius-small"],(function(t){var e=t.isActive,n=t.isHovered;return e||n?H2["--ll-color-surface-variant1"]:H2["--ll-color-background"]})),wlt=JC.div(We||(We=ci(["\n display: flex;\n flex-wrap: wrap;\n"]))),klt=JC(n5)(Ye||(Ye=ci(["\n margin-right: 2px;\n margin-bottom: 2px;\n"]))),Slt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Elt=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 M2(_lt,{children:n.map((function(t,e){var n,s,u;return O2(xlt,{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:[M2(l5,{variant:"p",color:"--ll-color-on-surface-variant1",noMargin:!0,children:t.name}),Yst.poi.isSchool(t,r)?M2(wlt,{children:null==(s=null==(n=t.school_attributes)?void 0:n.types)?void 0:s.map((function(t,e){return M2(klt,{text:t},t)}))}):M2(wlt,{children:null==(u=t.routes)?void 0:u.map((function(t,e){return M2(klt,{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:Slt},Symbol.toStringTag,{value:"Module"})),Clt=pa.createContext({}),Alt=function(){return ki.exports.useContext(Clt)},Tlt={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"}},Mlt=function(t){var e=Alt().scoreCategory,n=_ut([Tlt]).translations;return M2(l5,_i(_i({},t.options),{},{children:n[e]}))};hi({f:Kut,p:nlt,B:olt,W:blt,Z:Elt}),Mlt.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1"}};var Olt=function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},Plt=hi("O",[{value:"commute",icon:Olt,scores:["transit_friendly","car_friendly","pedestrian_friendly","cycling_friendly"]},{value:"education",icon:Dut,scores:["primary_schools","high_schools","daycares"]},{value:"amenities",icon:function(t){return _k("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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 xk("svg",_i(_i({viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[_k("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"}),_k("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"}),_k("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"}),_k("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"}),_k("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 xk("svg",_i(_i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[_k("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"}),_k("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"]}]),Rlt=function(t){var e=t.options,n=Alt().scoreCategory,r=Plt.find((function(t){return t.value===n}));return M2(i5,{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})};Rlt.defaultProps={options:{color:"--ll-color-on-background-variant1"}};var Dlt=function(t){var e=t.options,n=t.children;return M2(Clt.Provider,{value:_i({},e),children:n})},Llt=hi("h",Object.freeze(Object.defineProperty({__proto__:null,Root:Dlt,Title:Mlt,Icon:Rlt},Symbol.toStringTag,{value:"Module"})));function Ilt(){return Ilt=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},Ilt.apply(this,arguments)}function Nlt(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 Flt(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,zlt.apply(void 0,[i].concat(mi(e)))]}function zlt(){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 jlt(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}function Blt(){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 jlt(e,t)}))}}function Vlt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ki.exports.useCallback(Blt.apply(void 0,e),e)}var Hlt=ki.exports.forwardRef((function(t,e){var n=t.children,r=fi(t,Jr),i=ki.exports.Children.toArray(n),a=i.find(Ylt);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(Ult,Ilt({},r,{ref:e}),ki.exports.isValidElement(o)?ki.exports.cloneElement(o,void 0,s):null)}return ki.exports.createElement(Ult,Ilt({},r,{ref:e}),n)}));Hlt.displayName="Slot";var Ult=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:Blt(e,n.ref)})):ki.exports.Children.count(n)>1?ki.exports.Children.only(null):null}));Ult.displayName="SlotClone";var Wlt=function(t){var e=t.children;return ki.exports.createElement(ki.exports.Fragment,null,e)};function Ylt(t){return ki.exports.isValidElement(t)&&t.type===Wlt}var Glt=Boolean(null==globalThis?void 0:globalThis.document)?ki.exports.useLayoutEffect:function(){},qlt=va["useId".toString()]||function(){},Zlt=0;function Xlt(t){var e=wi(ki.exports.useState(qlt()),2),n=e[0],r=e[1];return Glt((function(){t||r((function(t){return null!=t?t:String(Zlt++)}))}),[t]),t||(n?"radix-".concat(n):"")}var Klt=["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?Hlt:e;return ki.exports.useEffect((function(){window[Symbol.for("radix-ui")]=!0}),[]),ki.exports.createElement(a,Ilt({},i,{ref:n}))}));return n.displayName="Primitive.".concat(e),_i(_i({},t),{},xi({},e,n))}),{});function $lt(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 Qlt(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=$lt(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=$lt(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 Jlt=ki.exports.createContext(void 0);function tct(t){var e=ki.exports.useContext(Jlt);return t||e||"ltr"}var ect="rovingFocusGroup.onEntryFocus",nct={bubbles:!1,cancelable:!0},rct="RovingFocusGroup",ict=function(t){var e=t+"CollectionProvider",n=wi(Flt(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=Vlt(e,s(u,n).collectionRef);return pa.createElement(Hlt,{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=Vlt(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(Hlt,(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]}(rct),act=wi(ict,3),oct=act[0],sct=act[1],uct=wi(Flt(rct,[act[2]]),2),lct=uct[0],cct=uct[1],fct=wi(lct(rct),2),dct=fct[0],hct=fct[1],pct=ki.exports.forwardRef((function(t,e){return ki.exports.createElement(oct.Provider,{scope:t.__scopeRovingFocusGroup},ki.exports.createElement(oct.Slot,{scope:t.__scopeRovingFocusGroup},ki.exports.createElement(vct,Ilt({},t,{ref:e}))))})),vct=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=Vlt(e,d),p=tct(o),v=wi(Qlt({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=$lt(c),k=sct(n),S=ki.exports.useRef(!1);return ki.exports.useEffect((function(){var t=d.current;if(t)return t.addEventListener(ect,w),function(){return t.removeEventListener(ect,w)}}),[w]),ki.exports.createElement(dct,{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(Klt.div,Ilt({tabIndex:_?-1:0,"data-orientation":r},f,{ref:h,style:_i({outline:"none"},t.style),onMouseDown:Nlt(t.onMouseDown,(function(){S.current=!0})),onFocus:Nlt(t.onFocus,(function(t){var e=!S.current;if(t.target===t.currentTarget&&e&&!_){var n=new CustomEvent(ect,nct);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}));yct(o)}}S.current=!1})),onBlur:Nlt(t.onBlur,(function(){return x(!1)}))})))})),gct=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=Xlt(),l=hct("RovingFocusGroupItem",n),c=l.currentTabStopId===u,f=sct(n);return ki.exports.createElement(oct.ItemSlot,{scope:n,id:u,focusable:i,active:o},ki.exports.createElement(Klt.span,Ilt({tabIndex:c?0:-1,"data-orientation":l.orientation},s,{ref:e,onMouseDown:Nlt(t.onMouseDown,(function(t){i?l.onItemFocus(u):t.preventDefault()})),onFocus:Nlt(t.onFocus,(function(){return l.onItemFocus(u)})),onKeyDown:Nlt(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 mct[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 yct(n)}))}}}))})))})),mct={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yct(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 bct=pct,_ct=gct;var xct=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=wct(i.current);o.current="mounted"===u?t:"none"}),[u]),Glt((function(){var e=i.current,n=a.current;if(n!==t){var r=o.current,s=wct(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]),Glt((function(){if(n){var t=function(t){var e=wct(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=wct(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=Vlt(r.ref,i.ref);return"function"==typeof n||r.isPresent?ki.exports.cloneElement(i,{ref:a}):null};function wct(t){return(null==t?void 0:t.animationName)||"none"}xct.displayName="Presence";var kct="Tabs",Sct=wi(Flt(kct,[cct]),2),Ect=Sct[0],Cct=(Sct[1],cct()),Act=wi(Ect(kct),2),Tct=Act[0],Mct=Act[1],Oct=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=tct(u),h=wi(Qlt({prop:r,onChange:i,defaultProp:a}),2),p=h[0],v=h[1];return ki.exports.createElement(Tct,{scope:n,baseId:Xlt(),value:p,onValueChange:v,orientation:s,dir:d,activationMode:c},ki.exports.createElement(Klt.div,Ilt({dir:d,"data-orientation":s},f,{ref:e})))})),Pct=ki.exports.forwardRef((function(t,e){var n=t.__scopeTabs,r=t.loop,i=void 0===r||r,a=fi(t,oi),o=Mct("TabsList",n),s=Cct(n);return ki.exports.createElement(bct,Ilt({asChild:!0},s,{orientation:o.orientation,dir:o.dir,loop:i}),ki.exports.createElement(Klt.div,Ilt({role:"tablist","aria-orientation":o.orientation},a,{ref:e})))})),Rct=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=Mct("TabsTrigger",n),u=Cct(n),l=Lct(s.baseId,r),c=Ict(s.baseId,r),f=r===s.value;return ki.exports.createElement(_ct,Ilt({asChild:!0},u,{focusable:!a,active:f}),ki.exports.createElement(Klt.button,Ilt({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:Nlt(t.onMouseDown,(function(t){a||0!==t.button||!1!==t.ctrlKey?t.preventDefault():s.onValueChange(r)})),onKeyDown:Nlt(t.onKeyDown,(function(t){[" ","Enter"].includes(t.key)&&s.onValueChange(r)})),onFocus:Nlt(t.onFocus,(function(){var t="manual"!==s.activationMode;!f&&!a&&t&&s.onValueChange(r)}))})))})),Dct=ki.exports.forwardRef((function(t,e){var n=t.__scopeTabs,r=t.value,i=t.forceMount,a=t.children,o=fi(t,ui),s=Mct("TabsContent",n),u=Lct(s.baseId,r),l=Ict(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(xct,{present:i||c},(function(n){var r=n.present;return ki.exports.createElement(Klt.div,Ilt({"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 Lct(t,e){return"".concat(t,"-trigger-").concat(e)}function Ict(t,e){return"".concat(t,"-content-").concat(e)}var Nct=Oct,Fct=Pct,zct=Rct,jct=Dct,Bct=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))}}),[])},Vct=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=Bct(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=Bct(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]},Hct=pa.createContext({}),Uct=Llt.Title,Wct=Llt.Icon,Yct=JC(Fct)(Ge||(Ge=ci(["\n display: grid;\n grid-auto-columns: minmax(0, 1fr);\n grid-auto-flow: column;\n background-color: ",";\n"])),H2["--ll-color-background"]),Gct=JC(zct)(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"])),H2["--ll-spacing-xx-small"],H2["--ll-color-surface"],H2["--ll-border-radius-small"],H2["--ll-shadow-small"]),qct=Object.freeze(Object.defineProperty({__proto__:null,Root:function(t){var e=t.options,n=t.onChange,r=t.children,i=wi(Vct({controlledValue:e.currentTab,onChange:{func:n,key:"tabs"},defaultValue:e.defaultTab||"commute"}),2),a=i[0],o=i[1];return M2(Hct.Provider,{value:_i(_i({},e),{},{currentTab:a}),children:M2(Nct,{value:a,orientation:"vertical",defaultValue:a,onValueChange:function(t){return o(t)},children:r})})},Tabs:function(){var t=ki.exports.useContext(Hct).currentTab,e=_ut([Tlt]).translations;return M2(Yct,{"aria-label":"Score tabs",children:Plt.map((function(n){var r=n.value===t?"--ll-color-primary":"--ll-color-disabled";return M2(pa.Fragment,{children:O2(Gct,{value:n.value,children:[M2(i5,{SVGElement:n.icon,fill:H2[r]}),M2(l5,{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 M2(jct,{value:n,children:M2(Dlt,{options:{scoreCategory:n},children:e})},n)},Title:Uct,Icon:Wct},Symbol.toStringTag,{value:"Module"})),Zct=pa.createContext({}),Xct=JC(zct)(Ze||(Ze=ci(["\n margin-right: ",";\n margin-bottom: ",";\n"])),H2["--ll-spacing-xx-small"],H2["--ll-spacing-xx-small"]),Kct=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 M2(Zct.Provider,{value:_i(_i({},e),{},{activeTab:i,setActiveTab:a}),children:M2(Nct,{value:i,children:n})})},Tabs:function(){var t=ki.exports.useContext(Zct),e=t.include,n=t.activeTab,r=t.setActiveTab,i=_ut([flt]).translations;return e.length<=1?null:M2(Fct,{"aria-label":"tabs example",children:e.map((function(t){return M2(Xct,{value:t,asChild:!0,children:M2(W5,{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 M2(jct,{value:n,children:e},n)}},Symbol.toStringTag,{value:"Module"})),$ct=pa.createContext({}),Qct=function(){return ki.exports.useContext($ct)},Jct=function(t){var e,n=Qct().options.poi,r=_ut([flt,dlt]).translations;return null!=(e=t.options)&&e.isRawText?M2(T2,{children:r[n]}):M2(l5,_i(_i({},t.options),{},{children:r[n]}))};hi({Y:qct,X:Kct}),Jct.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1",isRawText:!1}};var tft=function(t){var e=t.options,n=Qct().options.poi;return M2(i5,{SVGElement:llt[n],fill:"var(".concat(null==e?void 0:e.color,")"),height:null==e?void 0:e.height,width:null==e?void 0:e.width})};tft.defaultProps={options:{color:"--ll-color-on-background-variant1"}};var eft=Object.freeze(Object.defineProperty({__proto__:null,Title:Jct,Icon:tft,Root:function(t){return M2($ct.Provider,{value:_i({},t),children:t.children})}},Symbol.toStringTag,{value:"Module"})),nft=pa.createContext({}),rft={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"}},ift=function(t){return xk("svg",_i(_i({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[_k("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"}),_k("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"}),_k("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"}),_k("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"})]}))},aft=function(t){return _k("svg",_i(_i({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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"})}))},oft=Object.freeze(Object.defineProperty({__proto__:null,Root:function(t){return M2(nft.Provider,{value:_i({},t),children:t.children})},AvgIncomeCard:function(t){var e=t.options.incomeTypes,n=_ut([rft]).translations,r={avg_household_income:ift,avg_individual_income:aft},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 M2(Snt,_i({},i))},PopulationByAgeChart:function(t){var e=t.options,n=e.labels,r=e.data,i=_ut([rft]).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 M2(fnt,_i({},a))},OwnersRentersCard:function(t){var e=t.options.datasets,n=_ut([rft]).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 M2(pnt,_i({},i))},HouseholdCompositionCard:function(t){var e=t.options,n=e.labels,r=e.data,i=_ut([rft]).translations,a=ki.exports.useMemo((function(){return{data:{labels:n,datasets:[{data:r}]},options:{plugins:{title:{text:i.householdCompositionTitle}}}}}),[n,r]);return M2(gnt,_i({},a))},CommuteModeCard:function(t){var e=t.options,n=e.labels,r=e.data,i=_ut([rft]).translations,a=ki.exports.useMemo((function(){return{data:{labels:n,datasets:[{data:r}]},options:{plugins:{title:{text:i.commuteModeTitle}}}}}),[n,r]);return M2(gnt,_i({},a))},EducationLevelChart:function(t){var e=t.options,n=e.labels,r=e.data,i=_ut([rft]).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 M2(fnt,_i({},a))}},Symbol.toStringTag,{value:"Module"})),sft=pa.createContext({}),uft=function(){return ki.exports.useContext(sft)},lft={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"}},cft=[{value:"income",icon:function(t){return _k("svg",_i(_i({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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 xk("svg",_i(_i({width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[_k("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"}),_k("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"}),_k("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 xk("svg",_i(_i({width:22,height:18,viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:[_k("path",{d:"M18 4H16V6H18V4Z"}),_k("path",{d:"M18 8H16V10H18V8Z"}),_k("path",{d:"M18 12H16V14H18V12Z"}),_k("path",{d:"M0 8V18H6V13H8V18H14V8L7 3L0 8ZM12 16H10V11H4V16H2V9L7 5.5L12 9V16Z"}),_k("path",{d:"M9 0V1.97L11 3.4V2H20V16H16V18H22V0H9Z"})]}))}},{value:"household",icon:function(t){return _k("svg",_i(_i({width:22,height:20,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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 _k("svg",_i(_i({width:22,height:18,viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:_k("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:Olt}],fft=JC(Fct)(Xe||(Xe=ci(["\n display: grid;\n grid-auto-columns: minmax(0, 80px);\n grid-auto-flow: column;\n"]))),dft=JC(zct)(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"])),H2["--ll-spacing-xx-small"],H2["--ll-color-primary"],H2["--ll-color-primary"]),hft=JC.div($e||($e=ci(["\n display: flex;\n padding: "," ","\n "," ",";\n"])),H2["--ll-spacing-x-small"],H2["--ll-spacing-medium"],H2["--ll-spacing-xx-small"],H2["--ll-spacing-medium"]),pft=Object.freeze(Object.defineProperty({__proto__:null,Root:function(t){var e=t.options,n=t.onChange,r=t.children;return M2(sft.Provider,{value:{options:e,onChange:n},children:M2(Nct,{value:e.activeTab,onValueChange:function(t){n({type:"tabs",data:t})},children:r})})},Tabs:function(){var t=uft().options,e=_ut([lft]).translations;return M2(fft,{"aria-label":"Demographics tabs",children:cft.map((function(n){var r=n.value===t.activeTab?"--ll-color-primary":"--ll-color-disabled";return M2(pa.Fragment,{children:O2(dft,{value:n.value,children:[M2(i5,{SVGElement:n.icon,fill:H2[r]}),M2(l5,{noMargin:!0,variant:"caption1",color:r,weight:"--ll-font-weight-medium",children:e[n.value]})]})},n.value)}))})},Select:function(){var t=uft(),e=t.options,n=t.onChange,r=_ut([lft]).translations;return M2(hft,{children:O2(nat.Root,{value:e.activeTab,onValueChange:function(t){n({type:"tabs",data:t})},children:[M2(nat.Trigger,{size:"large",children:M2(l5,{noMargin:!0,variant:"h6",children:r[e.activeTab]})}),M2(nat.Content,{children:cft.map((function(t){return M2(nat.Item,{value:t.value,children:M2(l5,{noMargin:!0,variant:"h6",children:r[t.value]})},t.value)}))})]})})},Content:function(t){var e=t.children,n=t.options.value;return M2(jct,{value:n,children:e},n)}},Symbol.toStringTag,{value:"Module"}));hi({a9:eft,ad:oft,ab:cft,ac:pft});var vft=function(t){var e,n,r=t.children,i=TQ().sdkState;if(null==i||!i.apiKey)throw Error("A valid apiKey must be provided.");var a=function(t,e){return new k2(t,e)}(i.apiKey,{locale:null==i||null===(e=i.globalOptions)||void 0===e?void 0:e.locale});return _k(Rst,{client:a,options:{appearance:null==i||null===(n=i.globalOptions)||void 0===n?void 0:n.appearance},children:r})},gft=JC.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"]))),mft=function(t){var e=t.error;return xk(gft,{children:[_k(iI,{variant:"h4",children:"An error occurred"}),_k(iI,{variant:"p",color:"--ll-color-on-background-variant1",children:e.message})]})},yft=new n$({defaultOptions:{queries:{retry:2,staleTime:1/0,keepPreviousData:!0}}}),bft=function(){return xk(bk,{children:[_k(BL,{}),_k(dK,{FallbackComponent:mft,children:_k(h$,{children:_k(o$,{client:yft,children:_k(MQ,{children:_k(vft,{children:_k(IQ,{children:_k(KX,{})})})})})})})]})};ga.createRoot(document.getElementById("root")).render(_k(pa.StrictMode,{children:_k(bft,{})}))}}}))}();
|