@nyris/nyris-webapp 0.3.53 → 0.3.55
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/build/asset-manifest.json +8 -7
- package/build/images/fav2/android-chrome-192x192.png +0 -0
- package/build/images/fav2/android-chrome-512x512.png +0 -0
- package/build/images/fav2/apple-touch-icon.png +0 -0
- package/build/images/fav2/browserconfig.xml +9 -0
- package/build/images/fav2/favicon-16x16.png +0 -0
- package/build/images/fav2/favicon-32x32.png +0 -0
- package/build/images/fav2/favicon.ico +0 -0
- package/build/images/fav2/mstile-144x144.png +0 -0
- package/build/images/fav2/mstile-150x150.png +0 -0
- package/build/images/fav2/mstile-310x150.png +0 -0
- package/build/images/fav2/mstile-310x310.png +0 -0
- package/build/images/fav2/mstile-70x70.png +0 -0
- package/build/images/fav2/safari-pinned-tab.svg +67 -0
- package/build/images/fav2/site.webmanifest +19 -0
- package/build/index.html +1 -1
- package/build/js/settings.example.js +1 -2
- package/build/manifest.json +13 -18
- package/build/static/css/main.d7425370.css +2 -0
- package/build/static/css/main.d7425370.css.map +1 -0
- package/build/static/js/main.7b9e6c68.js +3 -0
- package/build/static/js/{main.ebb92e93.js.LICENSE.txt → main.7b9e6c68.js.LICENSE.txt} +1 -1
- package/build/static/js/main.7b9e6c68.js.map +1 -0
- package/build/static/media/path.b99a15de38340a04f80828bceeab9884.svg +3 -0
- package/package.json +3 -3
- package/public/images/fav2/android-chrome-192x192.png +0 -0
- package/public/images/fav2/android-chrome-512x512.png +0 -0
- package/public/images/fav2/apple-touch-icon.png +0 -0
- package/public/images/fav2/browserconfig.xml +9 -0
- package/public/images/fav2/favicon-16x16.png +0 -0
- package/public/images/fav2/favicon-32x32.png +0 -0
- package/public/images/fav2/favicon.ico +0 -0
- package/public/images/fav2/mstile-144x144.png +0 -0
- package/public/images/fav2/mstile-150x150.png +0 -0
- package/public/images/fav2/mstile-310x150.png +0 -0
- package/public/images/fav2/mstile-310x310.png +0 -0
- package/public/images/fav2/mstile-70x70.png +0 -0
- package/public/images/fav2/safari-pinned-tab.svg +67 -0
- package/public/images/fav2/site.webmanifest +19 -0
- package/public/index.html +8 -90
- package/public/js/settings.example.js +1 -2
- package/public/manifest.json +13 -18
- package/src/Store/Store.ts +0 -1
- package/src/Store/search/Search.ts +33 -74
- package/src/Store/search/search.initialState.ts +5 -4
- package/src/Store/search/types.ts +5 -4
- package/src/common/assets/icons/path.svg +3 -0
- package/src/components/AppMobile.tsx +0 -1
- package/src/components/DragDropFile.tsx +36 -28
- package/src/components/Experience-visual-search/ExperienceVisualSearch.scss +3 -4
- package/src/components/Experience-visual-search/ExperienceVisualSearch.tsx +14 -7
- package/src/components/Feedback.tsx +5 -5
- package/src/components/FooterMobile.tsx +4 -5
- package/src/components/GoBackButton.tsx +54 -0
- package/src/components/Header.tsx +27 -3
- package/src/components/HeaderMobile.tsx +29 -12
- package/src/components/ImagePreviewMobile.tsx +6 -3
- package/src/components/Inquiry/InquiryBanner.tsx +1 -1
- package/src/components/Layout.tsx +5 -14
- package/src/components/PanelResult/PostFilterAlgolia.tsx +3 -2
- package/src/components/ProductDetailView.tsx +338 -330
- package/src/components/ProductList/index.tsx +1 -1
- package/src/components/appMobile.scss +7 -0
- package/src/components/clear-refinements/clear-refinements.tsx +1 -1
- package/src/components/common.scss +18 -7
- package/src/components/current-refinements/current-refinements.tsx +10 -22
- package/src/components/drawer/cameraCustom.tsx +12 -1
- package/src/components/input/inputSearch.tsx +79 -21
- package/src/components/pre-filter/index.tsx +23 -7
- package/src/components/results/ItemResult.tsx +296 -281
- package/src/index.tsx +12 -14
- package/src/page/landingPage/AppMobile.tsx +3 -9
- package/src/page/landingPage/common.scss +164 -48
- package/src/page/result/index.tsx +116 -87
- package/src/translations.ts +3 -0
- package/src/types.ts +1 -0
- package/build/images/fav/android-icon-192x192.png +0 -0
- package/build/images/fav/apple-icon-114x114.png +0 -0
- package/build/images/fav/apple-icon-120x120.png +0 -0
- package/build/images/fav/apple-icon-144x144.png +0 -0
- package/build/images/fav/apple-icon-152x152.png +0 -0
- package/build/images/fav/apple-icon-180x180.png +0 -0
- package/build/images/fav/apple-icon-57x57.png +0 -0
- package/build/images/fav/apple-icon-60x60.png +0 -0
- package/build/images/fav/apple-icon-72x72.png +0 -0
- package/build/images/fav/apple-icon-76x76.png +0 -0
- package/build/images/fav/browserconfig.xml +0 -2
- package/build/images/fav/favicon-16x16.png +0 -0
- package/build/images/fav/favicon-32x32.png +0 -0
- package/build/images/fav/favicon-96x96.png +0 -0
- package/build/images/fav/manifest.json +0 -35
- package/build/static/css/main.8c0eb6c0.css +0 -2
- package/build/static/css/main.8c0eb6c0.css.map +0 -1
- package/build/static/js/main.ebb92e93.js +0 -3
- package/build/static/js/main.ebb92e93.js.map +0 -1
- package/public/images/fav/android-icon-192x192.png +0 -0
- package/public/images/fav/apple-icon-114x114.png +0 -0
- package/public/images/fav/apple-icon-120x120.png +0 -0
- package/public/images/fav/apple-icon-144x144.png +0 -0
- package/public/images/fav/apple-icon-152x152.png +0 -0
- package/public/images/fav/apple-icon-180x180.png +0 -0
- package/public/images/fav/apple-icon-57x57.png +0 -0
- package/public/images/fav/apple-icon-60x60.png +0 -0
- package/public/images/fav/apple-icon-72x72.png +0 -0
- package/public/images/fav/apple-icon-76x76.png +0 -0
- package/public/images/fav/browserconfig.xml +0 -2
- package/public/images/fav/favicon-16x16.png +0 -0
- package/public/images/fav/favicon-32x32.png +0 -0
- package/public/images/fav/favicon-96x96.png +0 -0
- package/public/images/fav/manifest.json +0 -35
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see main.7b9e6c68.js.LICENSE.txt */
|
|
2
|
+
(()=>{var e={7583:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"===typeof e}function r(e){return"object"===typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,o,a,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(i(o=this._events[e]))return!1;if(n(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),o.apply(this,s)}else if(r(o))for(s=Array.prototype.slice.call(arguments,1),a=(u=o.slice()).length,l=0;l<a;l++)u[l].apply(this,s);return!0},t.prototype.addListener=function(e,o){var a;if(!n(o))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(o.listener)?o.listener:o),this._events[e]?r(this._events[e])?this._events[e].push(o):this._events[e]=[this._events[e],o]:this._events[e]=o,r(this._events[e])&&!this._events[e].warned&&(a=i(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,o=-1,i===t||n(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(i)){for(s=a;s-- >0;)if(i[s]===t||i[s].listener&&i[s].listener===t){o=s;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},5923:(e,t,n)=>{"use strict";n.d(t,{X4:()=>u,a:()=>d,e$:()=>c,eM:()=>s});var r=n(2582);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.A)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function c(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},7120:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,H:()=>o});var r=n(9575),i=n(9850),o=["xs","sm","md","lg","xl"];function a(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,i.A)(e,["values","unit","step"]);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=o.indexOf(t);return r===o.length-1?d(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[o[r+1]]?n[o[r+1]]:t)-u/100).concat(s,")")}return(0,r.A)({keys:o,values:n,up:d,down:function(e){var t=o.indexOf(e)+1,r=n[o[t]];return t===o.length?d("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-u/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},c)}},4317:(e,t,n)=>{"use strict";n.d(t,{A:()=>q});var r=n(9850),i=n(2405),o=n(7120),a=n(4586),s=n(9575);function l(e,t,n){var r;return(0,s.A)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,s.A)({paddingLeft:t(2),paddingRight:t(2)},n,(0,a.A)({},e.up("sm"),(0,s.A)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,a.A)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,a.A)(r,e.up("sm"),{minHeight:64}),r)},n)}var u=n(2582);const c={black:"#000",white:"#fff"};const d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const f={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const p={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var y=n(5923),b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:c.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:c.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:c.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function w(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,y.a)(e.main,i):"dark"===t&&(e.dark=(0,y.e$)(e.main,o)))}function C(e){return Math.round(1e5*e)/1e5}function S(e){return C(e)}var k={textTransform:"uppercase"},_='"Roboto", "Helvetica", "Arial", sans-serif';function E(e,t){var n="function"===typeof t?t(e):t,o=n.fontFamily,a=void 0===o?_:o,l=n.fontSize,u=void 0===l?14:l,c=n.fontWeightLight,d=void 0===c?300:c,f=n.fontWeightRegular,h=void 0===f?400:f,p=n.fontWeightMedium,g=void 0===p?500:p,m=n.fontWeightBold,v=void 0===m?700:m,y=n.htmlFontSize,b=void 0===y?16:y,x=n.allVariants,w=n.pxToRem,E=(0,r.A)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var P=u/14,j=w||function(e){return"".concat(e/b*P,"rem")},O=function(e,t,n,r,i){return(0,s.A)({fontFamily:a,fontWeight:e,fontSize:j(t),lineHeight:n},a===_?{letterSpacing:"".concat(C(r/t),"em")}:{},i,x)},R={h1:O(d,96,1.167,-1.5),h2:O(d,60,1.2,-.5),h3:O(h,48,1.167,0),h4:O(h,34,1.235,.25),h5:O(h,24,1.334,0),h6:O(g,20,1.6,.15),subtitle1:O(h,16,1.75,.15),subtitle2:O(g,14,1.57,.1),body1:O(h,16,1.5,.15),body2:O(h,14,1.43,.15),button:O(g,14,1.75,.4,k),caption:O(h,12,1.66,.4),overline:O(h,12,2.66,1,k)};return(0,i.A)((0,s.A)({htmlFontSize:b,pxToRem:j,round:S,fontFamily:a,fontSize:u,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:g,fontWeightBold:v},R),E,{clone:!1})}function P(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const j=["none",P(0,2,1,-1,0,1,1,0,0,1,3,0),P(0,3,1,-2,0,2,2,0,0,1,5,0),P(0,3,3,-2,0,3,4,0,0,1,8,0),P(0,2,4,-1,0,4,5,0,0,1,10,0),P(0,3,5,-1,0,5,8,0,0,1,14,0),P(0,3,5,-1,0,6,10,0,0,1,18,0),P(0,4,5,-2,0,7,10,1,0,2,16,1),P(0,5,5,-3,0,8,10,1,0,3,14,2),P(0,5,6,-3,0,9,12,1,0,3,16,2),P(0,6,6,-3,0,10,14,1,0,4,18,3),P(0,6,7,-4,0,11,15,1,0,4,20,3),P(0,7,8,-4,0,12,17,2,0,5,22,4),P(0,7,8,-4,0,13,19,2,0,5,24,4),P(0,7,9,-4,0,14,21,2,0,5,26,4),P(0,8,9,-5,0,15,22,2,0,6,28,5),P(0,8,10,-5,0,16,24,2,0,6,30,5),P(0,8,11,-5,0,17,26,2,0,6,32,5),P(0,9,11,-5,0,18,28,2,0,7,34,6),P(0,9,12,-6,0,19,29,2,0,7,36,6),P(0,10,13,-6,0,20,31,3,0,8,38,7),P(0,10,13,-6,0,21,33,3,0,8,40,7),P(0,10,14,-6,0,22,35,3,0,8,42,7),P(0,11,14,-7,0,23,36,3,0,9,44,8),P(0,11,15,-7,0,24,38,3,0,9,46,8)];const O={borderRadius:4};var R=n(2061),A=n(7545),T={xs:0,sm:600,md:960,lg:1280,xl:1920},N={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(T[e],"px)")}};const F=function(e,t){return t?(0,i.A)(e,t,{clone:!1}):e};var M={m:"margin",p:"padding"},L={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},I={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},D=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!I[e])return[e];e=I[e]}var t=e.split(""),n=(0,R.A)(t,2),r=n[0],i=n[1],o=M[r],a=L[i]||"";return Array.isArray(a)?a.map((function(e){return o+e})):[o+a]})),z=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function B(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function U(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function V(e){var t=B(e.theme);return Object.keys(e).map((function(n){if(-1===z.indexOf(n))return null;var r=U(D(n),t),i=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||N;return t.reduce((function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e}),{})}if("object"===(0,A.A)(t)){var i=e.theme.breakpoints||N;return Object.keys(t).reduce((function(e,r){return e[i.up(r)]=n(t[r]),e}),{})}return n(t)}(e,i,r)})).reduce(F,{})}V.propTypes={},V.filterProps=z;var H=n(1980),W=n(5212);function G(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,a=e.mixins,C=void 0===a?{}:a,S=e.palette,k=void 0===S?{}:S,_=e.spacing,P=e.typography,R=void 0===P?{}:P,A=(0,r.A)(e,["breakpoints","mixins","palette","spacing","typography"]),T=function(e){var t=e.primary,n=void 0===t?{light:f[300],main:f[500],dark:f[700]}:t,o=e.secondary,a=void 0===o?{light:h.A200,main:h.A400,dark:h.A700}:o,l=e.error,C=void 0===l?{light:p[300],main:p[500],dark:p[700]}:l,S=e.warning,k=void 0===S?{light:g[300],main:g[500],dark:g[700]}:S,_=e.info,E=void 0===_?{light:m[300],main:m[500],dark:m[700]}:_,P=e.success,j=void 0===P?{light:v[300],main:v[500],dark:v[700]}:P,O=e.type,R=void 0===O?"light":O,A=e.contrastThreshold,T=void 0===A?3:A,N=e.tonalOffset,F=void 0===N?.2:N,M=(0,r.A)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,y.eM)(e,x.text.primary)>=T?x.text.primary:b.text.primary}var I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,s.A)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,u.A)(4,t));if("string"!==typeof e.main)throw new Error((0,u.A)(5,JSON.stringify(e.main)));return w(e,"light",n,F),w(e,"dark",r,F),e.contrastText||(e.contrastText=L(e.main)),e},D={dark:x,light:b};return(0,i.A)((0,s.A)({common:c,type:R,primary:I(n),secondary:I(a,"A400","A200","A700"),error:I(C),warning:I(k),info:I(E),success:I(j),grey:d,contrastThreshold:T,getContrastText:L,augmentColor:I,tonalOffset:F},D[R]),M)}(k),N=(0,o.A)(n),F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=B({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(_),M=(0,i.A)({breakpoints:N,direction:"ltr",mixins:l(N,F,C),overrides:{},palette:T,props:{},shadows:j,typography:E(T,R),spacing:F,shape:O,transitions:H.Ay,zIndex:W.A},A),L=arguments.length,I=new Array(L>1?L-1:0),D=1;D<L;D++)I[D-1]=arguments[D];return M=I.reduce((function(e,t){return(0,i.A)(e,t)}),M)}const q=G},4040:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(4317).A)()},1980:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,p0:()=>o});var r=n(9850),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}const s={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,l=t.easing,u=void 0===l?i.easeInOut:l,c=t.delay,d=void 0===c?0:c;(0,r.A)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(u," ").concat("string"===typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},4458:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(9575),i=n(9850),o=n(810),a=n(2592),s=n.n(a),l=n(8943),u=n(5343),c=n(5341);const d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,f=void 0!==d&&d,h=t.name,p=(0,i.A)(t,["defaultTheme","withTheme","name"]);var g=h,m=(0,l.A)(e,(0,r.A)({defaultTheme:a,Component:n,name:h||n.displayName,classNamePrefix:g},p)),v=o.forwardRef((function(e,t){e.classes;var s,l=e.innerRef,d=(0,i.A)(e,["classes","innerRef"]),p=m((0,r.A)({},n.defaultProps,e)),g=d;return("string"===typeof h||f)&&(s=(0,c.A)()||a,h&&(g=(0,u.A)({theme:s,name:h,props:d})),f&&!g.theme&&(g.theme=s)),o.createElement(n,(0,r.A)({ref:l||t,classes:p},g))}));return s()(v,n),v}};var f=n(4040);const h=function(e,t){return d(e,(0,r.A)({defaultTheme:f.A},t))}},5212:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},6557:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2582);function i(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},4315:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{A:()=>r})},9984:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(9575),i=n(810),o=n(9850),a=n(4007),s=n(4458),l=n(6557),u=i.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,c=e.color,d=void 0===c?"inherit":c,f=e.component,h=void 0===f?"svg":f,p=e.fontSize,g=void 0===p?"medium":p,m=e.htmlColor,v=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,x=(0,o.A)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(h,(0,r.A)({className:(0,a.A)(s.root,u,"inherit"!==d&&s["color".concat((0,l.A)(d))],"default"!==g&&"medium"!==g&&s["fontSize".concat((0,l.A)(g))]),focusable:"false",viewBox:b,color:m,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},x),n,v?i.createElement("title",null,v):null)}));u.muiName="SvgIcon";const c=(0,s.A)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u);function d(e,t){var n=function(t,n){return i.createElement(c,(0,r.A)({ref:n},t),e)};return n.muiName=c.muiName,i.memo(i.forwardRef(n))}},376:(e,t,n)=>{"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{A:()=>r})},7728:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>r.A,createChainedFunction:()=>i.A,createSvgIcon:()=>o.A,debounce:()=>a.A,deprecatedPropType:()=>s,isMuiElement:()=>l.A,ownerDocument:()=>u.A,ownerWindow:()=>c.A,requirePropFactory:()=>d,setRef:()=>f.A,unstable_useId:()=>v.A,unsupportedProp:()=>h,useControlled:()=>p.A,useEventCallback:()=>g.A,useForkRef:()=>m.A,useIsFocusVisible:()=>y.A});var r=n(6557),i=n(4315),o=n(9984),a=n(376);function s(e,t){return function(){return null}}var l=n(1948),u=n(5077),c=n(2964);function d(e){return function(){return null}}var f=n(5486);function h(e,t,n,r,i){return null}var p=n(6586),g=n(9917),m=n(6935),v=n(5102),y=n(8542)},1948:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(810);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},5077:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},2964:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5077);function i(e){return(0,r.A)(e).defaultView||window}},5486:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},5102:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(810);function i(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}},6586:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(810);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}},9917:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(810),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},6935:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(810),i=n(5486);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,i.A)(e,n),(0,i.A)(t,n)}}),[e,t])}},8542:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(810),i=n(715),o=!0,a=!1,s=null,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function f(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function h(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function p(){return{isFocusVisible:f,onBlurVisible:h,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",d,!0))}),[])}}},7823:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,a=60114,s=60109,l=60110,u=60112,c=60113,d=60120,f=60115,h=60116,p=60121,g=60122,m=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),u=b("react.forward_ref"),c=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),h=b("react.lazy"),p=b("react.block"),g=b("react.server.block"),m=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case f:case s:return e;default:return t}}case r:return t}}}},6331:(e,t,n)=>{"use strict";n(7823)},1204:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M14 7l-5 5 5 5V7z"}),"ArrowLeft");t.A=a},7263:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M10 17l5-5-5-5v10z"}),"ArrowRight");t.A=a},4307:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightOutlined");t.A=a},1811:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"ClearOutlined");t.A=a},8596:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.A=a},8238:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"CloseOutlined");t.A=a},3659:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"}),"FileCopyOutlined");t.A=a},7106:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");t.A=a},1723:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");t.A=a},1325:(e,t,n)=>{"use strict";var r=n(4293),i=n(8920);t.A=void 0;var o=i(n(810)),a=(0,r(n(3829)).default)(o.createElement("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}),"PhotoLibrary");t.A=a},3829:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(7728)},7136:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},5343:(e,t,n)=>{"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,{A:()=>r})},8943:(e,t,n)=>{"use strict";n.d(t,{A:()=>un});var r=n(9850),i=n(9575),o=n(810),a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};const s="object"===("undefined"===typeof window?"undefined":a(window))&&"object"===("undefined"===typeof document?"undefined":a(document))&&9===document.nodeType;var l=n(414),u=n(9140),c=n(2474),d=n(7502),f={}.constructor;function h(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(h);if(e.constructor!==f)return e;var t={};for(var n in e)t[n]=h(e[n]);return t}function p(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=h(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var g=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},m=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=g(e[n]," ");else t=g(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function v(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function y(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function b(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=v(n),l=s.linebreak,u=s.space;if(e&&o++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=y(f+":"+u+m(h)+";",o))}}else for(var p in a){var g=a[p];null!=g&&(r&&(r+=l),r+=y(p+":"+u+m(g)+";",o))}for(var b in t){var x=t[b];null!=x&&"fallbacks"!==b&&(r&&(r+=l),r+=y(b+":"+u+m(x)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),y(""+e+u+"{"+r,--o)+y("}",o)):r}var x=/([[\].#*$><+~=|^:(),"'`\s])/g,w="undefined"!==typeof CSS&&CSS.escape,C=function(e){return w?w(e):e.replace(x,"\\$1")},S=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),k=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l((0,c.A)((0,c.A)(i)),s),i.selectorText="."+C(i.id)),i}(0,u.A)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=m(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.A)({},e,{allowEmpty:!0}):e;return b(this.selectorText,this.style,n)},(0,l.A)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(S),_={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new k(e,t,n)}},E={indent:1,children:!0},P=/@([\w-]+)/,j=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(P);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new $((0,i.A)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=E);var t=v(e).linebreak;if(null==e.indent&&(e.indent=E.indent),null==e.children&&(e.children=E.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),O=/@container|@media|@supports\s+/,R={onCreateRule:function(e,t,n){return O.test(e)?new j(e,t,n):null}},A={indent:1,children:!0},T=/@keyframes\s+([\w-]+)/,N=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(T);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===o?this.name:C(s(this,a)),this.rules=new $((0,i.A)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,i.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=A);var t=v(e).linebreak;if(null==e.indent&&(e.indent=A.indent),null==e.children&&(e.children=A.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),F=/@keyframes\s+/,M=/\$([\w-]+)/g,L=function(e,t){return"string"===typeof e?e.replace(M,(function(e,n){return n in t?t[n]:e})):e},I=function(e,t,n){var r=e[t],i=L(r,n);i!==r&&(e[t]=i)},D={onCreateRule:function(e,t,n){return"string"===typeof e&&F.test(e)?new N(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&I(e,"animation-name",n.keyframes),"animation"in e&&I(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return L(e,r.keyframes);default:return e}}},z=function(e){function t(){return e.apply(this,arguments)||this}return(0,u.A)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.A)({},e,{allowEmpty:!0}):e;return b(this.key,this.style,n)},t}(S),B={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new z(e,t,n):null}},U=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=v(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=b(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return b(this.at,this.style,e)},e}(),V=/@font-face/,H={onCreateRule:function(e,t,n){return V.test(e)?new U(e,t,n):null}},W=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return b(this.key,this.style,e)},e}(),G={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new W(e,t,n):null}},q=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),K={"@charset":!0,"@import":!0,"@namespace":!0},X={onCreateRule:function(e,t,n){return e in K?new q(e,t,n):null}},Z=[_,R,D,B,H,G,X],Y={process:!0},Q={force:!0,process:!0},$=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,a=r.sheet,s=r.jss,l=r.Renderer,u=r.generateId,c=r.scoped,d=(0,i.A)({classes:this.classes,parent:o,sheet:a,jss:s,Renderer:l,generateId:u,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(d.selector="."+C(this.classes[f]));var h=p(f,t,d);if(!h)return null;this.register(h);var g=void 0===d.index?this.index.length:d.index;return this.index.splice(g,0,h),h},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var a=n;return-1!==o&&(a=(0,i.A)({},n,{index:o})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof k?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof N&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof k?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof N&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Y);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,Q)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,Q)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=v(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),J=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,i.A)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new $(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ee=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),te=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,d.A)(t,["attached"]),i=v(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},(0,l.A)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ne=new te,re="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),ie="2f1acc6c3a606b082e5eef5e54414ffb";null==re[ie]&&(re[ie]=0);var oe=re[ie]++,ae=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+oe+i+t:o+n.key+"-"+oe+(i?"-"+i:"")+"-"+t}},se=function(e){var t;return function(){return t||(t=e()),t}},le=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},ue=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=m(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(a){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},de=function(e,t){return e.selectorText=t,e.selectorText===t},fe=se((function(){return document.querySelector("head")}));function he(e){var t=ne.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=fe(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var pe=se((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),ge=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},me=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ve=function(){function e(e){this.getPropertyValue=le,this.setProperty=ue,this.removeProperty=ce,this.setSelector=de,this.hasInsertedRules=!1,this.cssRules=[],e&&ne.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=pe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=he(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else fe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=me(n,t);if(!1===(i=ge(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=me(n,t),l=ge(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof J&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ye=0,be=function(){function e(e){this.id=ye++,this.version="10.10.0",this.plugins=new ee,this.options={id:{minify:!1},createGenerateId:ae,Renderer:s?ve:null,plugins:[]},this.generateId=ae({minify:!1});for(var t=0;t<Z.length;t++)this.plugins.use(Z[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,i.A)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===ne.index?0:ne.index+1);var r=new J(e,(0,i.A)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ne.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=(0,i.A)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=p(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),xe=function(e){return new be(e)},we="object"===typeof CSS&&null!=CSS&&"number"in CSS;function Ce(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Ce(r);o&&(t||(t={}),t[n]=o)}}return t}xe();function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var r=(0,i.A)({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var ke={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};const _e=ke;var Ee=n(5341),Pe=n(7136),je=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Oe=Date.now(),Re="fnValues"+Oe,Ae="fnStyle"+ ++Oe;const Te=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=p(e,{},n);return r[Ae]=t,r},onProcessStyle:function(e,t){if(Re in t||Ae in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[Re]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Ae];o&&(i.style=o(e)||{});var a=i[Re];if(a)for(var s in a)i.prop(s,a[s](e),r)}}};var Ne="@global",Fe="@global ",Me=function(){function e(e,t,n){for(var r in this.type="global",this.at=Ne,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new $((0,i.A)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Le=function(){function e(e,t,n){this.type="global",this.at=Ne,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,i.A)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ie=/\s*,\s*/g;function De(e,t){for(var n=e.split(Ie),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}const ze=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ne)return new Me(e,t,n);if("@"===e[0]&&e.substr(0,8)===Fe)return new Le(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Ne]:null;if(o){for(var a in o)t.addRule(a,o[a],(0,i.A)({},n,{selector:De(a,e.selector)}));delete r[Ne]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Ne.length)===Ne){var a=De(o.substr(Ne.length),e.selector);t.addRule(a,r[o],(0,i.A)({},n,{selector:a})),delete r[o]}}(e,t))}}};var Be=/\s*,\s*/g,Ue=/&/g,Ve=/\$([\w-]+)/g;const He=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Be),r=e.split(Be),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Ue,a):a+" "+l}return i}function n(e,t,n){if(n)return(0,i.A)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,i.A)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,a){if("style"!==o.type)return r;var s,l,u=o,c=u.options.parent;for(var d in r){var f=-1!==d.indexOf("&"),h="@"===d[0];if(f||h){if(s=n(u,c,s),f){var p=t(d,u.selector);l||(l=e(c,a)),p=p.replace(Ve,l);var g=u.key+"-"+d;"replaceRule"in c?c.replaceRule(g,r[d],(0,i.A)({},s,{selector:p})):c.addRule(g,r[d],(0,i.A)({},s,{selector:p}))}else h&&c.addRule(d,{},s).addRule(u.key,r[d],{selector:u.selector});delete r[d]}}return r}}};var We=/[A-Z]/g,Ge=/^ms-/,qe={};function Ke(e){return"-"+e.toLowerCase()}const Xe=function(e){if(qe.hasOwnProperty(e))return qe[e];var t=e.replace(We,Ke);return qe[e]=Ge.test(t)?"-"+t:t};function Ze(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Xe(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ze):t.fallbacks=Ze(e.fallbacks)),t}const Ye=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ze(e[t]);return e}return Ze(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Xe(t);return t===r?e:(n.prop(r,e),null)}}};var Qe=we&&CSS?CSS.px:"px",$e=we&&CSS?CSS.ms:"ms",Je=we&&CSS?CSS.percent:"%";function et(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var tt=et({"animation-delay":$e,"animation-duration":$e,"background-position":Qe,"background-position-x":Qe,"background-position-y":Qe,"background-size":Qe,border:Qe,"border-bottom":Qe,"border-bottom-left-radius":Qe,"border-bottom-right-radius":Qe,"border-bottom-width":Qe,"border-left":Qe,"border-left-width":Qe,"border-radius":Qe,"border-right":Qe,"border-right-width":Qe,"border-top":Qe,"border-top-left-radius":Qe,"border-top-right-radius":Qe,"border-top-width":Qe,"border-width":Qe,"border-block":Qe,"border-block-end":Qe,"border-block-end-width":Qe,"border-block-start":Qe,"border-block-start-width":Qe,"border-block-width":Qe,"border-inline":Qe,"border-inline-end":Qe,"border-inline-end-width":Qe,"border-inline-start":Qe,"border-inline-start-width":Qe,"border-inline-width":Qe,"border-start-start-radius":Qe,"border-start-end-radius":Qe,"border-end-start-radius":Qe,"border-end-end-radius":Qe,margin:Qe,"margin-bottom":Qe,"margin-left":Qe,"margin-right":Qe,"margin-top":Qe,"margin-block":Qe,"margin-block-end":Qe,"margin-block-start":Qe,"margin-inline":Qe,"margin-inline-end":Qe,"margin-inline-start":Qe,padding:Qe,"padding-bottom":Qe,"padding-left":Qe,"padding-right":Qe,"padding-top":Qe,"padding-block":Qe,"padding-block-end":Qe,"padding-block-start":Qe,"padding-inline":Qe,"padding-inline-end":Qe,"padding-inline-start":Qe,"mask-position-x":Qe,"mask-position-y":Qe,"mask-size":Qe,height:Qe,width:Qe,"min-height":Qe,"max-height":Qe,"min-width":Qe,"max-width":Qe,bottom:Qe,left:Qe,top:Qe,right:Qe,inset:Qe,"inset-block":Qe,"inset-block-end":Qe,"inset-block-start":Qe,"inset-inline":Qe,"inset-inline-end":Qe,"inset-inline-start":Qe,"box-shadow":Qe,"text-shadow":Qe,"column-gap":Qe,"column-rule":Qe,"column-rule-width":Qe,"column-width":Qe,"font-size":Qe,"font-size-delta":Qe,"letter-spacing":Qe,"text-decoration-thickness":Qe,"text-indent":Qe,"text-stroke":Qe,"text-stroke-width":Qe,"word-spacing":Qe,motion:Qe,"motion-offset":Qe,outline:Qe,"outline-offset":Qe,"outline-width":Qe,perspective:Qe,"perspective-origin-x":Je,"perspective-origin-y":Je,"transform-origin":Je,"transform-origin-x":Je,"transform-origin-y":Je,"transform-origin-z":Je,"transition-delay":$e,"transition-duration":$e,"vertical-align":Qe,"flex-basis":Qe,"shape-margin":Qe,size:Qe,gap:Qe,grid:Qe,"grid-gap":Qe,"row-gap":Qe,"grid-row-gap":Qe,"grid-column-gap":Qe,"grid-template-rows":Qe,"grid-template-columns":Qe,"grid-auto-rows":Qe,"grid-auto-columns":Qe,"box-shadow-x":Qe,"box-shadow-y":Qe,"box-shadow-blur":Qe,"box-shadow-spread":Qe,"font-line-height":Qe,"text-shadow-x":Qe,"text-shadow-y":Qe,"text-shadow-blur":Qe});function nt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=nt(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var i in t)t[i]=nt(i,t[i],n);else for(var o in t)t[o]=nt(e+"-"+o,t[o],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||tt[e];return!a||0===t&&a===Qe?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}const rt=function(e){void 0===e&&(e={});var t=et(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=nt(r,e[r],t);return e},onChangeValue:function(e,n){return nt(n,e,t)}}};var it=n(4619),ot="",at="",st="",lt="",ut=s&&"ontouchstart"in document.documentElement;if(s){var ct={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},dt=document.createElement("p").style;for(var ft in ct)if(ft+"Transform"in dt){ot=ft,at=ct[ft];break}"Webkit"===ot&&"msHyphens"in dt&&(ot="ms",at=ct.ms,lt="edge"),"Webkit"===ot&&"-apple-trailing-word"in dt&&(st="apple")}var ht={js:ot,css:at,vendor:st,browser:lt,isTouch:ut};var pt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ht.js?"-webkit-"+e:ht.css+e)}},gt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ht.js?ht.css+"print-"+e:e)}},mt=/[-\s]+(.)?/g;function vt(e,t){return t?t.toUpperCase():""}function yt(e){return e.replace(mt,vt)}function bt(e){return yt("-"+e)}var xt,wt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ht.js){var n="mask-image";if(yt(n)in t)return e;if(ht.js+bt(n)in t)return ht.css+e}return e}},Ct={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==ht.vendor||ht.isTouch?e:ht.css+e)}},St={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:ht.css+e)}},kt={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:ht.css+e)}},_t={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ht.js||"ms"===ht.js&&"edge"!==ht.browser?ht.css+e:e)}},Et={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ht.js||"ms"===ht.js||"apple"===ht.vendor?ht.css+e:e)}},Pt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ht.js?"WebkitColumn"+bt(e)in t&&ht.css+"column-"+e:"Moz"===ht.js&&("page"+bt(e)in t&&"page-"+e))}},jt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ht.js)return e;var n=e.replace("-inline","");return ht.js+bt(n)in t&&ht.css+n}},Ot={supportedProperty:function(e,t){return yt(e)in t&&e}},Rt={supportedProperty:function(e,t){var n=bt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ht.js+n in t?ht.css+e:"Webkit"!==ht.js&&"Webkit"+n in t&&"-webkit-"+e}},At={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ht.js?""+ht.css+e:e)}},Tt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ht.js?ht.css+"scroll-chaining":e)}},Nt={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Ft={supportedProperty:function(e,t){var n=Nt[e];return!!n&&(ht.js+bt(n)in t&&ht.css+n)}},Mt={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Lt=Object.keys(Mt),It=function(e){return ht.css+e},Dt={supportedProperty:function(e,t,n){var r=n.multiple;if(Lt.indexOf(e)>-1){var i=Mt[e];if(!Array.isArray(i))return ht.js+bt(i)in t&&ht.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(ht.js+bt(i[0])in t))return!1;return i.map(It)}return!1}},zt=[pt,gt,wt,Ct,St,kt,_t,Et,Pt,jt,Ot,Rt,At,Tt,Ft,Dt],Bt=zt.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ut=zt.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,it.A)(t.noPrefill)),e}),[]),Vt={};if(s){xt=document.createElement("p");var Ht=window.getComputedStyle(document.documentElement,"");for(var Wt in Ht)isNaN(Wt)||(Vt[Ht[Wt]]=Ht[Wt]);Ut.forEach((function(e){return delete Vt[e]}))}function Gt(e,t){if(void 0===t&&(t={}),!xt)return e;if(null!=Vt[e])return Vt[e];"transition"!==e&&"transform"!==e||(t[e]=e in xt.style);for(var n=0;n<Bt.length&&(Vt[e]=Bt[n](e,xt.style,t),!Vt[e]);n++);try{xt.style[e]=""}catch(r){return!1}return Vt[e]}var qt,Kt={},Xt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Zt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Yt(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Gt(t):", "+Gt(n);return r||(t||n)}function Qt(e,t){var n=t;if(!qt||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Kt[r])return Kt[r];try{qt.style[e]=n}catch(i){return Kt[r]=!1,!1}if(Xt[e])n=n.replace(Zt,Yt);else if(""===qt.style[e]&&("-ms-flex"===(n=ht.css+n)&&(qt.style[e]="-ms-flexbox"),qt.style[e]=n,""===qt.style[e]))return Kt[r]=!1,!1;return qt.style[e]="",Kt[r]=n,Kt[r]}s&&(qt=document.createElement("p"));const $t=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=Gt(n);o&&o!==n&&(i=!0);var a=!1,s=Qt(o,m(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===ht.js?e:"@"+ht.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Qt(t,m(e))||e}}};const Jt=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}};var en=xe({plugins:[Te(),ze(),He(),Ye(),rt(),"undefined"===typeof window?null:$t(),Jt()]}),tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==je.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Pe.A]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}(),nn={disableGeneration:!1,generateClassName:tn,jss:en,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},rn=o.createContext(nn);var on=-1e9;var an=n(2405);const sn={};function ln(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!o.disableGeneration){var l=_e.get(o.sheetsManager,a,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},_e.set(o.sheetsManager,a,r,l));var u=(0,i.A)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});u.generateId=u.serverGenerateClassName||u.generateClassName;var c=o.sheetsRegistry;if(0===l.refs){var d;o.sheetsCache&&(d=_e.get(o.sheetsCache,a,r));var f=a.create(r,s);d||((d=o.jss.createStyleSheet(f,(0,i.A)({link:!1},u))).attach(),o.sheetsCache&&_e.set(o.sheetsCache,a,r,d)),c&&c.add(d),l.staticSheet=d,l.dynamicStyles=Ce(f)}if(l.dynamicStyles){var h=o.jss.createStyleSheet(l.dynamicStyles,(0,i.A)({link:!0},u));h.update(t),h.attach(),n.dynamicSheet=h,n.classes=Se({baseClasses:l.staticSheet.classes,newClasses:h.classes}),c&&c.add(h)}else n.classes=l.staticSheet.classes;l.refs+=1}}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,l=t.defaultTheme,u=void 0===l?sn:l,c=(0,r.A)(t,["name","classNamePrefix","Component","defaultTheme"]),d=function(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(l){throw l}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=(0,i.A)({},o);return Object.keys(a).forEach((function(e){s[e]=(0,an.A)(s[e],a[e])})),s},options:{}}}(e),f=n||a||"makeStyles";d.options={index:on+=1,name:n,meta:f,classNamePrefix:f};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,Ee.A)()||u,r=(0,i.A)({},o.useContext(rn),c),a=o.useRef(),l=o.useRef();!function(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t};return ln(i,e),l.current=!1,a.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=_e.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(_e.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,d]),o.useEffect((function(){l.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(a.current,e),l.current=!0}));var f=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=Se({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(a.current,e.classes,s);return f}}},3789:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(810).createContext(null)},5341:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(810),i=n(3789);function o(){return r.useContext(i.A)}},2405:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9575),i=n(7545);function o(e){return e&&"object"===(0,i.A)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?(0,r.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},2582:(e,t,n)=>{"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},5033:(e,t,n)=>{"use strict";var r=n(4017),i=n(2477),o=n(7281);function a(e,t,n){return new r(e,t,n)}a.version=n(8308),a.AlgoliaSearchHelper=r,a.SearchParameters=i,a.SearchResults=o,e.exports=a},558:(e,t,n)=>{"use strict";var r=n(7583);function i(e,t){this.main=e,this.fn=t,this.lastResults=null}n(4832)(i,r),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=i},7716:(e,t,n)=>{"use strict";var r=n(2104),i=n(7107),o=n(6089),a={addRefinement:function(e,t,n){if(a.isRefined(e,t,n))return e;var i=""+n,o=e[t]?e[t].concat(i):[i],s={};return s[t]=o,r({},s,e)},removeRefinement:function(e,t,n){if(void 0===n)return a.clearRefinement(e,(function(e,n){return t===n}));var r=""+n;return a.clearRefinement(e,(function(e,n){return t===n&&r===e}))},toggleRefinement:function(e,t,n){if(void 0===n)throw new Error("toggleRefinement should be used with a value");return a.isRefined(e,t,n)?a.removeRefinement(e,t,n):a.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(void 0===t)return i(e)?{}:e;if("string"===typeof t)return o(e,[t]);if("function"===typeof t){var r=!1,a=Object.keys(e).reduce((function(i,o){var a=e[o]||[],s=a.filter((function(e){return!t(e,o,n)}));return s.length!==a.length&&(r=!0),i[o]=s,i}),{});return r?a:e}},isRefined:function(e,t,n){var r=Boolean(e[t])&&e[t].length>0;if(void 0===n||!r)return r;var i=""+n;return-1!==e[t].indexOf(i)}};e.exports=a},2477:(e,t,n)=>{"use strict";var r=n(2104),i=n(2439),o=n(3569),a=n(3634),s=n(7107),l=n(6089),u=n(265),c=n(9094),d=n(7716);function f(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,n){return f(t[n],e)})):e===t}function h(e){var t=e?h._parseNumbers(e):{};void 0===t.userToken||c(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var n=this;Object.keys(t).forEach((function(e){var r=-1!==h.PARAMETERS.indexOf(e),i=void 0!==t[e];!r&&i&&(n[e]=t[e])}))}h.PARAMETERS=Object.keys(new h),h._parseNumbers=function(e){if(e instanceof h)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach((function(n){var r=e[n];if("string"===typeof r){var i=parseFloat(r);t[n]=isNaN(i)?r:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach((function(t){var r=e.numericRefinements[t]||{};n[t]={},Object.keys(r).forEach((function(e){var i=r[e].map((function(e){return Array.isArray(e)?e.map((function(e){return"string"===typeof e?parseFloat(e):e})):"string"===typeof e?parseFloat(e):e}));n[t][e]=i}))})),t.numericRefinements=n}return a({},e,t)},h.make=function(e){var t=new h(e);return(e.hierarchicalFacets||[]).forEach((function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(n=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},h.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&s(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):s(e.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},h.prototype={constructor:h,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:d.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:d.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:d.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:d.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var r=u(n);if(this.isNumericRefined(e,t,r))return this;var i=a({},this.numericRefinements);return i[e]=a({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(r)):i[e][t]=[r],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,n){var r=n;return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,i){return i===e&&n.op===t&&f(n.val,u(r))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,r){return r===e&&n.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,n){return n===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return s(this.numericRefinements)?{}:this.numericRefinements;if("string"===typeof e)return l(this.numericRefinements,[e]);if("function"===typeof e){var t=!1,n=this.numericRefinements,r=Object.keys(n).reduce((function(r,i){var o=n[i],a={};return o=o||{},Object.keys(o).forEach((function(n){var r=o[n]||[],s=[];r.forEach((function(t){e({val:t,op:n},i,"numeric")||s.push(t)})),s.length!==r.length&&(t=!0),a[n]=s})),r[i]=a,r}),{});return t?r:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:d.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:d.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:d.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:d.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:d.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:d.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:d.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:d.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:d.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n))?-1===t.indexOf(n)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(n))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:r({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:r({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:r({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&d.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var n=this.getHierarchicalRefinement(e);return t?-1!==n.indexOf(t):n.length>0},isNumericRefined:function(e,t,n){if(void 0===n&&void 0===t)return Boolean(this.numericRefinements[e]);var r=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===n||!r)return r;var o,a,s=u(n),l=void 0!==(o=this.numericRefinements[e][t],a=s,i(o,(function(e){return f(e,a)})));return r&&l},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=o(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return o(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0}))).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},n=this;return Object.keys(this).forEach((function(r){var i=n[r];-1===e.indexOf(r)&&void 0!==i&&(t[r]=i)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=h.validate(this,e);if(t)throw t;var n=this,r=h._parseNumbers(e),i=Object.keys(this).reduce((function(e,t){return e[t]=n[t],e}),{}),o=Object.keys(r).reduce((function(e,t){var n=void 0!==e[t],i=void 0!==r[t];return n&&!i?l(e,[t]):(i&&(e[t]=r[t]),e)}),i);return new this.constructor(o)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!==typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=h},3527:(e,t,n)=>{"use strict";e.exports=function(e){return function(t,n){var r=e.hierarchicalFacets[n],u=e.hierarchicalFacetsRefinements[r.name]&&e.hierarchicalFacetsRefinements[r.name][0]||"",c=e._getHierarchicalFacetSeparator(r),d=e._getHierarchicalRootPath(r),f=e._getHierarchicalShowParentLevel(r),h=o(e._getHierarchicalFacetSortBy(r)),p=t.every((function(e){return e.exhaustive})),g=function(e,t,n,r,o){return function(u,c,d){var f=u;if(d>0){var h=0;for(f=u;h<d;){var p=f&&Array.isArray(f.data)?f.data:[];f=i(p,(function(e){return e.isRefined})),h++}}if(f){var g=Object.keys(c.data).map((function(e){return[e,c.data[e]]})).filter((function(e){return function(e,t,n,r,i,o){if(i&&(0!==e.indexOf(i)||i===e))return!1;return!i&&-1===e.indexOf(r)||i&&e.split(r).length-i.split(r).length===1||-1===e.indexOf(r)&&-1===n.indexOf(r)||0===n.indexOf(e)||0===e.indexOf(t+r)&&(o||0===e.indexOf(n))}(e[0],f.path||n,o,t,n,r)}));f.data=a(g.map((function(e){var n=e[0];return function(e,t,n,r,i){var o=t.split(n);return{name:o[o.length-1].trim(),path:t,escapedValue:s(t),count:e,isRefined:r===t||0===r.indexOf(t+n),exhaustive:i,data:null}}(e[1],n,t,l(o),c.exhaustive)})),e[0],e[1])}return u}}(h,c,d,f,u),m=t;return d&&(m=t.slice(d.split(c).length)),m.reduce(g,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:p,data:null})}};var r=n(4759),i=n(2439),o=n(3623),a=n(1419),s=r.escapeFacetValue,l=r.unescapeFacetValue},7281:(e,t,n)=>{"use strict";var r=n(1123),i=n(2104),o=n(4759),a=n(2439),s=n(5659),l=n(3623),u=n(3634),c=n(1419),d=o.escapeFacetValue,f=o.unescapeFacetValue,h=n(3527);function p(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}function g(e,t,n){t&&t[n]&&(e.stats=t[n])}function m(e,t,n){var o=t[0];this._rawResults=t;var l=this;Object.keys(o).forEach((function(e){l[e]=o[e]})),Object.keys(n||{}).forEach((function(e){l[e]=n[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var c=e.getRefinedDisjunctiveFacets(),d=p(e.facets),m=p(e.disjunctiveFacets),v=1,y=o.facets||{};Object.keys(y).forEach((function(t){var n,r,i=y[t],u=(n=e.hierarchicalFacets,r=t,a(n,(function(e){return(e.attributes||[]).indexOf(r)>-1})));if(u){var c=u.attributes.indexOf(t),f=s(e.hierarchicalFacets,(function(e){return e.name===u.name}));l.hierarchicalFacets[f][c]={attribute:t,data:i,exhaustive:o.exhaustiveFacetsCount}}else{var h,p=-1!==e.disjunctiveFacets.indexOf(t),v=-1!==e.facets.indexOf(t);p&&(h=m[t],l.disjunctiveFacets[h]={name:t,data:i,exhaustive:o.exhaustiveFacetsCount},g(l.disjunctiveFacets[h],o.facets_stats,t)),v&&(h=d[t],l.facets[h]={name:t,data:i,exhaustive:o.exhaustiveFacetsCount},g(l.facets[h],o.facets_stats,t))}})),this.hierarchicalFacets=r(this.hierarchicalFacets),c.forEach((function(n){var r=t[v],a=r&&r.facets?r.facets:{},c=e.getHierarchicalFacetByName(n);Object.keys(a).forEach((function(t){var n,d=a[t];if(c){n=s(e.hierarchicalFacets,(function(e){return e.name===c.name}));var h=s(l.hierarchicalFacets[n],(function(e){return e.attribute===t}));if(-1===h)return;l.hierarchicalFacets[n][h].data=u({},l.hierarchicalFacets[n][h].data,d)}else{n=m[t];var p=o.facets&&o.facets[t]||{};l.disjunctiveFacets[n]={name:t,data:i({},d,p),exhaustive:r.exhaustiveFacetsCount},g(l.disjunctiveFacets[n],r.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(r){!l.disjunctiveFacets[n].data[r]&&e.disjunctiveFacetsRefinements[t].indexOf(f(r))>-1&&(l.disjunctiveFacets[n].data[r]=0)}))}})),v++})),e.getRefinedHierarchicalFacets().forEach((function(n){var r=e.getHierarchicalFacetByName(n),o=e._getHierarchicalFacetSeparator(r),a=e.getHierarchicalRefinement(n);0===a.length||a[0].split(o).length<2||t.slice(v).forEach((function(t){var n=t&&t.facets?t.facets:{};Object.keys(n).forEach((function(t){var u=n[t],c=s(e.hierarchicalFacets,(function(e){return e.name===r.name})),d=s(l.hierarchicalFacets[c],(function(e){return e.attribute===t}));if(-1!==d){var f={};if(a.length>0){var h=a[0].split(o)[0];f[h]=l.hierarchicalFacets[c][d].data[h]}l.hierarchicalFacets[c][d].data=i(f,u,l.hierarchicalFacets[c][d].data)}})),v++}))})),Object.keys(e.facetsExcludes).forEach((function(t){var n=e.facetsExcludes[t],r=d[t];l.facets[r]={name:t,data:y[t],exhaustive:o.exhaustiveFacetsCount},n.forEach((function(e){l.facets[r]=l.facets[r]||{name:t},l.facets[r].data=l.facets[r].data||{},l.facets[r].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(h(e)),this.facets=r(this.facets),this.disjunctiveFacets=r(this.disjunctiveFacets),this._state=e}function v(e,t){function n(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var r=a(e.facets,n);return r?Object.keys(r.data).map((function(n){var i=d(n);return{name:n,escapedValue:i,count:r.data[n],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,n)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=a(e.disjunctiveFacets,n);return i?Object.keys(i.data).map((function(n){var r=d(n);return{name:n,escapedValue:r,count:i.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,r)}})):[]}if(e._state.isHierarchicalFacet(t)){var o=a(e.hierarchicalFacets,n);if(!o)return o;var s=e._state.getHierarchicalFacetByName(t),l=e._state._getHierarchicalFacetSeparator(s),u=f(e._state.getHierarchicalRefinement(t)[0]||"");0===u.indexOf(s.rootPath)&&(u=u.replace(s.rootPath+l,""));var c=u.split(l);return c.unshift(t),y(o,c,0),o}}function y(e,t,n){e.isRefined=e.name===t[n],e.data&&e.data.forEach((function(e){y(e,t,n+1)}))}function b(e,t,n,r){if(r=r||0,Array.isArray(t))return e(t,n[r]);if(!t.data||0===t.data.length)return t;var o=t.data.map((function(t){return b(e,t,n,r+1)})),a=e(o,n[r]);return i({data:a},t)}function x(e,t){var n=a(e,(function(e){return e.name===t}));return n&&n.stats}function w(e,t,n,r,i){var o=a(i,(function(e){return e.name===n})),s=o&&o.data&&o.data[r]?o.data[r]:0,l=o&&o.exhaustive||!1;return{type:t,attributeName:n,name:r,count:s,exhaustive:l}}m.prototype.getFacetByName=function(e){function t(t){return t.name===e}return a(this.facets,t)||a(this.disjunctiveFacets,t)||a(this.hierarchicalFacets,t)},m.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],m.prototype.getFacetValues=function(e,t){var n=v(this,e);if(n){var r,o=i({},t,{sortBy:m.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),a=this;if(Array.isArray(n))r=[e];else r=a._state.getHierarchicalFacetByName(n.name).attributes;return b((function(e,t){if(o.facetOrdering){var n=function(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}(a,t);if(n)return function(e,t){var n=[],r=[],i=(t.order||[]).reduce((function(e,t,n){return e[t]=n,e}),{});e.forEach((function(e){var t=e.path||e.name;void 0!==i[t]?n[i[t]]=e:r.push(e)})),n=n.filter((function(e){return e}));var o,a=t.sortRemainingBy;return"hidden"===a?n:(o="alpha"===a?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(c(r,o[0],o[1])))}(e,n)}if(Array.isArray(o.sortBy)){var r=l(o.sortBy,m.DEFAULT_SORT);return c(e,r[0],r[1])}if("function"===typeof o.sortBy)return function(e,t){return t.sort(e)}(o.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}),n,r)}},m.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?x(this.facets,e):this._state.isDisjunctiveFacet(e)?x(this.disjunctiveFacets,e):void 0},m.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach((function(r){e.facetsRefinements[r].forEach((function(i){n.push(w(e,"facet",r,i,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(r){e.facetsExcludes[r].forEach((function(i){n.push(w(e,"exclude",r,i,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(r){e.disjunctiveFacetsRefinements[r].forEach((function(i){n.push(w(e,"disjunctive",r,i,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(r){e.hierarchicalFacetsRefinements[r].forEach((function(i){n.push(function(e,t,n,r){var i=e.getHierarchicalFacetByName(t),o=e._getHierarchicalFacetSeparator(i),s=n.split(o),l=a(r,(function(e){return e.name===t})),u=s.reduce((function(e,t){var n=e&&a(e.data,(function(e){return e.name===t}));return void 0!==n?n:e}),l),c=u&&u.count||0,d=u&&u.exhaustive||!1,f=u&&u.path||"";return{type:"hierarchical",attributeName:t,name:f,count:c,exhaustive:d}}(e,r,i,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var r=e.numericRefinements[t];Object.keys(r).forEach((function(e){r[e].forEach((function(r){n.push({type:"numeric",attributeName:t,name:r,numericValue:r,operator:e})}))}))})),e.tagRefinements.forEach((function(e){n.push({type:"tag",attributeName:"_tags",name:e})})),n},e.exports=m},4017:(e,t,n)=>{"use strict";var r=n(7583),i=n(558),o=n(4759).escapeFacetValue,a=n(4832),s=n(3634),l=n(7107),u=n(6089),c=n(3702),d=n(2477),f=n(7281),h=n(8308);function p(e,t,n){"function"===typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+h+")"),this.setClient(e);var r=n||{};r.index=t,this.state=d.make(r),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function g(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function m(){return this.state.page}a(p,r),p.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},p.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},p.prototype.getQuery=function(){var e=this.state;return c._getHitsSearchParams(e)},p.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=c._getQueries(n.index,n),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),!t)return this.client.search(r).then((function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new f(n,e.results),state:n,_originalResponse:e}}),(function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e}));this.client.search(r).then((function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new f(n,e.results),n)})).catch((function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,n)}))},p.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var r=n.getModifiedState(t),i=s({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(c._getHitsSearchParams(r),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),o="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!==typeof this.client.initIndex)throw new Error(o);var a=this.client.initIndex(r.index);if("function"!==typeof a.findAnswers)throw new Error(o);return a.findAnswers(r.query,e.queryLanguages,i)},p.prototype.searchForFacetValues=function(e,t,n,r){var i="function"===typeof this.client.searchForFacetValues,a="function"===typeof this.client.initIndex;if(!i&&!a&&"function"!==typeof this.client.search)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var s=this.state.setQueryParameters(r||{}),l=s.isDisjunctiveFacet(e),u=c.getSearchForFacetQuery(e,t,n,s);this._currentNbQueries++;var d,f=this;return i?d=this.client.searchForFacetValues([{indexName:s.index,params:u}]):a?d=this.client.initIndex(s.index).searchForFacetValues(u):(delete u.facetName,d=this.client.search([{type:"facet",facet:e,indexName:s.index,params:u}]).then((function(e){return e.results[0]}))),this.emit("searchForFacetValues",{state:s,facet:e,query:t}),d.then((function(t){return f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach((function(t){t.escapedValue=o(t.value),t.isRefined=l?s.isDisjunctiveFacetRefined(e,t.escapedValue):s.isFacetRefined(e,t.escapedValue)})),t}),(function(e){throw f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),e}))},p.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},p.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},p.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},p.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},p.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},p.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},p.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},p.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},p.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},p.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},p.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},p.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},p.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},p.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},p.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},p.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},p.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},p.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},p.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},p.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},p.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},p.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},p.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},p.prototype.setCurrentPage=g,p.prototype.setPage=g,p.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},p.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},p.prototype.setState=function(e){return this._change({state:d.make(e),isPageReset:!1}),this},p.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new d(e),this},p.prototype.hasRefinements=function(e){return!!l(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},p.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},p.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},p.prototype.hasTag=function(e){return this.state.isTagRefined(e)},p.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},p.prototype.getIndex=function(){return this.state.index},p.prototype.getCurrentPage=m,p.prototype.getPage=m,p.prototype.getTags=function(){return this.state.tagRefinements},p.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e))this.state.getConjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"conjunctive"})})),this.state.getExcludeRefinements(e).forEach((function(e){t.push({value:e,type:"exclude"})}));else if(this.state.isDisjunctiveFacet(e)){this.state.getDisjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"disjunctive"})}))}var n=this.state.getNumericRefinements(e);return Object.keys(n).forEach((function(e){var r=n[e];t.push({value:r,operator:e,type:"numeric"})})),t},p.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},p.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},p.prototype._search=function(e){var t=this.state,n=[],r=[];e.onlyWithDerivedHelpers||(r=c._getQueries(t.index,t),n.push({state:t,queriesCount:r.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map((function(e){var r=e.getModifiedState(t),i=r.index?c._getQueries(r.index,r):[];return n.push({state:r,queriesCount:i.length,helper:e}),e.emit("search",{state:r,results:e.lastResults}),i})),o=Array.prototype.concat.apply(r,i),a=this._queryId++;if(this._currentNbQueries++,!o.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,n,a));try{this.client.search(o).then(this._dispatchAlgoliaResponse.bind(this,n,a)).catch(this._dispatchAlgoliaError.bind(this,a))}catch(s){this.emit("error",{error:s})}},p.prototype._dispatchAlgoliaResponse=function(e,t,n){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var r=n.results.slice();e.forEach((function(e){var t=e.state,n=e.queriesCount,i=e.helper,o=r.splice(0,n);t.index?(i.lastResults=new f(t,o),i.emit("result",{results:i.lastResults,state:t})):i.emit("result",{results:null,state:t})}))}},p.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},p.prototype.containsRefinement=function(e,t,n,r){return e||0!==t.length||0!==n.length||0!==r.length},p.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},p.prototype._change=function(e){var t=e.state,n=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:n}))},p.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},p.prototype.setClient=function(e){return this.client===e||("function"===typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+h+")"),this.client=e),this},p.prototype.getClient=function(){return this.client},p.prototype.derive=function(e){var t=new i(this,e);return this.derivedHelpers.push(t),t},p.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},p.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=p},1123:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},2104:e=>{"use strict";e.exports=function(){return Array.prototype.slice.call(arguments).reduceRight((function(e,t){return Object.keys(Object(t)).forEach((function(n){void 0!==t[n]&&(void 0!==e[n]&&delete e[n],e[n]=t[n])})),e}),{})}},4759:e=>{"use strict";e.exports={escapeFacetValue:function(e){return"string"!==typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!==typeof e?e:e.replace(/^\\-/,"-")}}},2439:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},5659:e=>{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}},3623:(e,t,n)=>{"use strict";var r=n(2439);e.exports=function(e,t){var n=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var i=t.split(":"),o=r(n,(function(e){return e[0]===i[0]}));return i.length>1||!o?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(o[0]),e[1].push(o[1]),e)}),[[],[]])}},4832:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},3569:e=>{"use strict";e.exports=function(e,t){return e.filter((function(n,r){return t.indexOf(n)>-1&&e.indexOf(n)===r}))}},3634:e=>{"use strict";function t(e){return"function"===typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function n(e,r){if(e===r)return e;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&"__proto__"!==i&&"constructor"!==i){var o=r[i],a=e[i];"undefined"!==typeof a&&"undefined"===typeof o||(t(a)&&t(o)?e[i]=n(a,o):e[i]="object"===typeof(s=o)&&null!==s?n(Array.isArray(s)?[]:{},s):s)}var s;return e}e.exports=function(e){t(e)||(e={});for(var r=1,i=arguments.length;r<i;r++){var o=arguments[r];t(o)&&n(e,o)}return e}},7107:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},6089:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},1419:e=>{"use strict";function t(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,o=null===t;if(!o&&e>t||r&&i||!n)return 1;if(!r&&e<t||o&&n||!i)return-1}return 0}e.exports=function(e,n,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var i=e.map((function(e,t){return{criteria:n.map((function(t){return e[t]})),index:t,value:e}}));return i.sort((function(e,n){for(var i=-1;++i<e.criteria.length;){var o=t(e.criteria[i],n.criteria[i]);if(o)return i>=r.length?o:"desc"===r[i]?-o:o}return e.index-n.index})),i.map((function(e){return e.value}))}},265:e=>{"use strict";e.exports=function e(t){if("number"===typeof t)return t;if("string"===typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}},3702:(e,t,n)=>{"use strict";var r=n(3634);function i(e){return Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t}),{})}var o={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:o._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach((function(r){n.push({indexName:e,params:o._getDisjunctiveFacetSearchParams(t,r)})})),t.getRefinedHierarchicalFacets().forEach((function(r){var i=t.getHierarchicalFacetByName(r),a=t.getHierarchicalRefinement(r),s=t._getHierarchicalFacetSeparator(i);if(a.length>0&&a[0].split(s).length>1){var l=a[0].split(s).slice(0,-1).reduce((function(e,t,n){return e.concat({attribute:i.attributes[n],value:0===n?t:[e[e.length-1].value,t].join(s)})}),[]);l.forEach((function(r,a){var s=o._getDisjunctiveFacetSearchParams(t,r.attribute,0===a);function u(e){return i.attributes.some((function(t){return t===e.split(":")[0]}))}var c=(s.facetFilters||[]).reduce((function(e,t){if(Array.isArray(t)){var n=t.filter((function(e){return!u(e)}));n.length>0&&e.push(n)}return"string"!==typeof t||u(t)||e.push(t),e}),[]),d=l[a-1];s.facetFilters=a>0?c.concat(d.attribute+":"+d.value):c.length>0?c:void 0,n.push({indexName:e,params:s})}))}})),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(o._getHitsHierarchicalFacetsAttributes(e)).sort(),n=o._getFacetFilters(e),a=o._getNumericFilters(e),s=o._getTagFilters(e),l={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:s};return n.length>0&&(l.facetFilters=n),a.length>0&&(l.numericFilters=a),i(r({},e.getQueryParams(),l))},_getDisjunctiveFacetSearchParams:function(e,t,n){var a=o._getFacetFilters(e,t,n),s=o._getNumericFilters(e,t),l=o._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};l.length>0&&(u.tagFilters=l);var c=e.getHierarchicalFacetByName(t);return u.facets=c?o._getDisjunctiveHierarchicalFacetAttribute(e,c,n):t,s.length>0&&(u.numericFilters=s),a.length>0&&(u.facetFilters=a),i(r({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return Object.keys(e.numericRefinements).forEach((function(r){var i=e.numericRefinements[r]||{};Object.keys(i).forEach((function(e){var o=i[e]||[];t!==r&&o.forEach((function(t){if(Array.isArray(t)){var i=t.map((function(t){return r+e+t}));n.push(i)}else n.push(r+e+t)}))}))})),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var r=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach((function(e){(i[e]||[]).sort().forEach((function(t){r.push(e+":"+t)}))}));var o=e.facetsExcludes||{};Object.keys(o).sort().forEach((function(e){(o[e]||[]).sort().forEach((function(t){r.push(e+":-"+t)}))}));var a=e.disjunctiveFacetsRefinements||{};Object.keys(a).sort().forEach((function(e){var n=a[e]||[];if(e!==t&&n&&0!==n.length){var i=[];n.sort().forEach((function(t){i.push(e+":"+t)})),r.push(i)}}));var s=e.hierarchicalFacetsRefinements||{};return Object.keys(s).sort().forEach((function(i){var o=(s[i]||[])[0];if(void 0!==o){var a,l,u=e.getHierarchicalFacetByName(i),c=e._getHierarchicalFacetSeparator(u),d=e._getHierarchicalRootPath(u);if(t===i){if(-1===o.indexOf(c)||!d&&!0===n||d&&d.split(c).length===o.split(c).length)return;d?(l=d.split(c).length-1,o=d):(l=o.split(c).length-2,o=o.slice(0,o.lastIndexOf(c))),a=u.attributes[l]}else l=o.split(c).length-1,a=u.attributes[l];a&&r.push([a+":"+o])}})),r},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce((function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),o=r.split(i).length,a=n.attributes.slice(0,o+1);return t.concat(a)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(!0===n){var i=e._getHierarchicalRootPath(t),o=0;return i&&(o=i.split(r).length),[t.attributes[o]]}var a=(e.getHierarchicalRefinement(t.name)[0]||"").split(r).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,n,a){var s=a.isDisjunctiveFacet(e)?a.clearRefinements(e):a,l={facetQuery:t,facetName:e};return"number"===typeof n&&(l.maxFacetHits=n),i(r({},o._getHitsSearchParams(s),l))}};e.exports=o},9094:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},8308:e=>{"use strict";e.exports="3.14.0"},1041:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){e(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){var t,n="algoliasearch-client-js-".concat(e.key),r=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(r().getItem(n)||"{}")},a=function(e){r().setItem(n,JSON.stringify(e))},s=function(){var t=e.timeToLive?1e3*e.timeToLive:null,n=o(),r=Object.fromEntries(Object.entries(n).filter((function(e){return void 0!==i(e,2)[1].timestamp})));if(a(r),t){var s=Object.fromEntries(Object.entries(r).filter((function(e){var n=i(e,2)[1],r=(new Date).getTime();return!(n.timestamp+t<r)})));a(s)}};return{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){s();var t=JSON.stringify(e);return o()[t]})).then((function(e){return Promise.all([e?e.value:t(),void 0!==e])})).then((function(e){var t=i(e,2),r=t[0],o=t[1];return Promise.all([r,o||n.miss(r)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=o();return i[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},r().setItem(n,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function s(e){var t=o(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return s({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return s({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return s({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return s({caches:t}).clear()}))}}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var a=r(),s=i&&i.miss||function(){return Promise.resolve()};return a.then((function(e){return s(e)})).then((function(){return a}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function u(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function c(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function d(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(n[i++])}))}var f={WithinQueryParameters:0,WithinHeaders:1};function h(e,t){var n=e||{},r=n.data||{};return Object.keys(n).forEach((function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(r[e]=n[e])})),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var p={Read:1,Write:2,Any:3},g=1,m=2,v=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:p.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||p.Any}}var x="GET",w="POST";function C(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===g||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===v&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(o(n),o(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return b(e)})):t}}))}function S(e,t,r,i){var a=[],s=function(e,t){if(e.method!==x&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),l=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,i),u=r.method,c=r.method!==x?{}:n(n({},r.data),i.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),c),i.queryParameters),f=0,h=function t(n,o){var c=n.pop();if(void 0===c)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:P(a)};var h={data:s,headers:l,method:u,url:_(c,r.path,d),connectTimeout:o(f,e.timeouts.connect),responseTimeout:o(f,i.timeout)},p=function(e){var t={request:h,response:e,host:c,triesLeft:n.length};return a.push(t),t},g={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var i=p(r);return r.isTimedOut&&f++,Promise.all([e.logger.info("Retryable failure",j(i)),e.hostsCache.set(c,y(c,r.isTimedOut?v:m))]).then((function(){return t(n,o)}))},onFail:function(e){throw p(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,P(a))}};return e.requester.send(h).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,g)}))};return C(e.hostsCache,t).then((function(e){return h(o(e.statelessHosts).reverse(),e.getTimeout)}))}function k(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function _(e,t,n){var r=E(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function E(e){return Object.keys(e).map((function(t){return d("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function P(e){return e.map((function(e){return j(e)}))}function j(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var O=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===f.WithinHeaders?r:{}},queryParameters:function(){return e===f.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:f.WithinHeaders,t,e.apiKey),o=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,o=e.requestsCache,a=e.responsesCache,s=e.timeouts,l=e.userAgent,u=e.hosts,c=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:o,responsesCache:a,timeouts:s,userAgent:l,headers:e.headers,queryParameters:c,hosts:u.map((function(e){return b(e)})),read:function(e,t){var n=h(t,d.timeouts.read),r=function(){return S(d,d.hosts.filter((function(e){return 0!=(e.accept&p.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,r()).then((function(e){return Promise.all([d.requestsCache.delete(o),e])}),(function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return S(d,d.hosts.filter((function(e){return 0!=(e.accept&p.Write)})),e,h(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:p.Read},{url:"".concat(t,".algolia.net"),accept:p.Write}].concat(u([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return c({transporter:o,appId:t,addAlgoliaAgent:function(e,t){o.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then((function(){}))}},e.methods)},R=function(e){return function(t,n){return t.method===x?e.transporter.read(t,n):e.transporter.write(t,n)}},A=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},T=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{params:E(e.params||{})})}));return e.transporter.read({method:w,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},N=function(e){return function(t,i){return Promise.all(t.map((function(t){var o=t.params,a=o.facetName,s=o.facetQuery,l=r(o,["facetName","facetQuery"]);return A(e)(t.indexName,{methods:{searchForFacetValues:L}}).searchForFacetValues(a,s,n(n({},i),l))})))}},F=function(e){return function(t,n,r){return e.transporter.read({method:w,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},M=function(e){return function(t,n){return e.transporter.read({method:w,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},L=function(e){return function(t,n,r){return e.transporter.read({method:w,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},I=1,D=2,z=3,B=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{threshold:e.threshold||0})}));return e.transporter.read({method:w,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},r)}};function U(e,t,r){var i,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},o=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(i=z,{debug:function(e,t){return I>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return D>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:l(),requestsCache:l({serializable:!1}),hostsCache:s({caches:[a({key:"".concat("4.23.3","-").concat(e)}),l()]}),userAgent:k("4.23.3").add({segment:"Browser",version:"lite"}),authMode:f.WithinQueryParameters};return O(n(n(n({},o),r),{},{methods:{search:T,searchForFacetValues:N,multipleQueries:T,multipleSearchForFacetValues:N,customRequest:R,initIndex:function(e){return function(t){return A(e)(t,{methods:{search:M,searchForFacetValues:L,findAnswers:F}})}},getRecommendations:B}}))}return U.version="4.23.3",U}()},7621:(e,t,n)=>{"use strict";function r(e){o.length||(i(),!0),o[o.length]=e}e.exports=r;var i,o=[],a=0;function s(){for(;a<o.length;){var e=a;if(a+=1,o[e].call(),a>1024){for(var t=0,n=o.length-a;t<n;t++)o[t]=o[t+a];o.length-=a,a=0}}o.length=0,a=0,!1}var l="undefined"!==typeof n.g?n.g:self,u=l.MutationObserver||l.WebKitMutationObserver;function c(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}i="function"===typeof u?function(e){var t=1,n=new u(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(s):c(s),r.requestFlush=i,r.makeRequestCallFromTimer=c},3129:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t}))}return!0}},6783:(e,t,n)=>{e.exports=n(3425)},2622:(e,t,n)=>{"use strict";var r=n(7850),i=n(6072),o=n(2158),a=n(6036),s=n(4506),l=n(5073),u=n(8628),c=n(4449);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,h=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(g+":"+m)}var v=s(e.baseURL,e.url);function y(){if(p){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o={data:h&&"text"!==h&&"json"!==h?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};i(t,n,o),p=null}}if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(f[e.xsrfHeaderName]=b)}"setRequestHeader"in p&&r.forEach(f,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},3425:(e,t,n)=>{"use strict";var r=n(7850),i=n(4470),o=n(241),a=n(9577);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=s(n(9785));l.Axios=o,l.create=function(e){return s(a(l.defaults,e))},l.Cancel=n(5806),l.CancelToken=n(101),l.isCancel=n(66),l.all=function(e){return Promise.all(e)},l.spread=n(4926),l.isAxiosError=n(4001),e.exports=l,e.exports.default=l},5806:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},101:(e,t,n)=>{"use strict";var r=n(5806);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},66:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},241:(e,t,n)=>{"use strict";var r=n(7850),i=n(6036),o=n(9873),a=n(2280),s=n(9577),l=n(5635),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(o),i=Promise.resolve(e);c.length;)i=i.then(c.shift(),c.shift());return i}for(var d=e;n.length;){var f=n.shift(),h=n.shift();try{d=f(d)}catch(p){h(p);break}}try{i=a(d)}catch(p){return Promise.reject(p)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},9873:(e,t,n)=>{"use strict";var r=n(7850);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},4506:(e,t,n)=>{"use strict";var r=n(7275),i=n(9217);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},4449:(e,t,n)=>{"use strict";var r=n(4767);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},2280:(e,t,n)=>{"use strict";var r=n(7850),i=n(2535),o=n(66),a=n(9785);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4767:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.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}},e}},9577:(e,t,n)=>{"use strict";var r=n(7850);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(d,u),n}},6072:(e,t,n)=>{"use strict";var r=n(4449);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},2535:(e,t,n)=>{"use strict";var r=n(7850),i=n(9785);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},9785:(e,t,n)=>{"use strict";var r=n(7850),i=n(4755),o=n(4767),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(2622)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l},4470:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},6036:(e,t,n)=>{"use strict";var r=n(7850);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},9217:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2158:(e,t,n)=>{"use strict";var r=n(7850);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},7275:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},4001:e=>{"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},8628:(e,t,n)=>{"use strict";var r=n(7850);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4755:(e,t,n)=>{"use strict";var r=n(7850);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},5073:(e,t,n)=>{"use strict";var r=n(7850),i=["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"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},4926:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},5635:(e,t,n)=>{"use strict";var r=n(8983),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},a=r.version.split(".");function s(e,t){for(var n=t?t.split("."):a,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(e,t,n){var i=t&&s(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(a(r," has been removed in "+t));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},7850:(e,t,n)=>{"use strict";var r=n(4470),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},3154:(e,t,n)=>{var r;!function(i){"use strict";var o=i.HTMLCanvasElement&&i.HTMLCanvasElement.prototype,a=i.Blob&&function(){try{return Boolean(new Blob)}catch(e){return!1}}(),s=a&&i.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),l=i.BlobBuilder||i.WebKitBlobBuilder||i.MozBlobBuilder||i.MSBlobBuilder,u=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,c=(a||l)&&i.atob&&i.ArrayBuffer&&i.Uint8Array&&function(e){var t,n,r,i,o,c,d,f,h;if(!(t=e.match(u)))throw new Error("invalid data URI");for(n=t[2]?t[1]:"text/plain"+(t[3]||";charset=US-ASCII"),r=!!t[4],i=e.slice(t[0].length),o=r?atob(i):decodeURIComponent(i),c=new ArrayBuffer(o.length),d=new Uint8Array(c),f=0;f<o.length;f+=1)d[f]=o.charCodeAt(f);return a?new Blob([s?d:c],{type:n}):((h=new l).append(c),h.getBlob(n))};i.HTMLCanvasElement&&!o.toBlob&&(o.mozGetAsFile?o.toBlob=function(e,t,n){var r=this;setTimeout((function(){n&&o.toDataURL&&c?e(c(r.toDataURL(t,n))):e(r.mozGetAsFile("blob",t))}))}:o.toDataURL&&c&&(o.msToBlob?o.toBlob=function(e,t,n){var r=this;setTimeout((function(){(t&&"image/png"!==t||n)&&o.toDataURL&&c?e(c(r.toDataURL(t,n))):e(r.msToBlob(t))}))}:o.toBlob=function(e,t,n){var r=this;setTimeout((function(){e(c(r.toDataURL(t,n)))}))})),void 0===(r=function(){return c}.call(t,n,t,e))||(e.exports=r)}(window)},4664:(e,t,n)=>{e.exports=n(4850),n(2089),n(1322),n(1019),n(3813),n(3314),n(2063),n(7492),n(849)},3314:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(3813)],void 0===(o="function"===typeof(r=function(e){e.ExifMap.prototype.tags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright",36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",42240:"Gamma",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"PhotographicSensitivity",34856:"OECF",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:"LensSpecification",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"},e.ExifMap.prototype.stringValues={ExposureProgram:{0:"Undefined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Undefined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},ComponentsConfiguration:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"},Orientation:{1:"top-left",2:"top-right",3:"bottom-right",4:"bottom-left",5:"left-top",6:"right-top",7:"right-bottom",8:"left-bottom"}},e.ExifMap.prototype.getText=function(e){var t=this.get(e);switch(e){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":case"Orientation":return this.stringValues[e][t];case"ExifVersion":case"FlashpixVersion":if(!t)return;return String.fromCharCode(t[0],t[1],t[2],t[3]);case"ComponentsConfiguration":if(!t)return;return this.stringValues[e][t[0]]+this.stringValues[e][t[1]]+this.stringValues[e][t[2]]+this.stringValues[e][t[3]];case"GPSVersionID":if(!t)return;return t[0]+"."+t[1]+"."+t[2]+"."+t[3]}return String(t)},function(e){var t,n=e.tags,r=e.map;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[n[t]]=t)}(e.ExifMap.prototype),e.ExifMap.prototype.getAll=function(){var e,t,n={};for(e in this)Object.prototype.hasOwnProperty.call(this,e)&&(t=this.tags[e])&&(n[t]=this.getText(t));return n}})?r.apply(t,i):r)||(e.exports=o)}()},3813:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(1322)],void 0===(o="function"===typeof(r=function(e){e.ExifMap=function(){return this},e.ExifMap.prototype.map={Orientation:274},e.ExifMap.prototype.get=function(e){return this[e]||this[this.map[e]]},e.getExifThumbnail=function(t,n,r){if(r&&!(n+r>t.byteLength))return e.createObjectURL(new Blob([t.buffer.slice(n,n+r)]));console.log("Invalid Exif data: Invalid thumbnail data.")},e.exifTagTypes={1:{getValue:function(e,t){return e.getUint8(t)},size:1},2:{getValue:function(e,t){return String.fromCharCode(e.getUint8(t))},size:1,ascii:!0},3:{getValue:function(e,t,n){return e.getUint16(t,n)},size:2},4:{getValue:function(e,t,n){return e.getUint32(t,n)},size:4},5:{getValue:function(e,t,n){return e.getUint32(t,n)/e.getUint32(t+4,n)},size:8},9:{getValue:function(e,t,n){return e.getInt32(t,n)},size:4},10:{getValue:function(e,t,n){return e.getInt32(t,n)/e.getInt32(t+4,n)},size:8}},e.exifTagTypes[7]=e.exifTagTypes[1],e.getExifValue=function(t,n,r,i,o,a){var s,l,u,c,d,f,h=e.exifTagTypes[i];if(h){if(!((l=(s=h.size*o)>4?n+t.getUint32(r+8,a):r+8)+s>t.byteLength)){if(1===o)return h.getValue(t,l,a);for(u=[],c=0;c<o;c+=1)u[c]=h.getValue(t,l+c*h.size,a);if(h.ascii){for(d="",c=0;c<u.length&&"\0"!==(f=u[c]);c+=1)d+=f;return d}return u}console.log("Invalid Exif data: Invalid data offset.")}else console.log("Invalid Exif data: Invalid tag type.")},e.parseExifTag=function(t,n,r,i){return{number:t.getUint16(r,i),value:e.getExifValue(t,n,r,t.getUint16(r+2,i),t.getUint32(r+4,i),i)}},e.parseExifTags=function(e,t,n,r,i){var o,a,s,l,u;if(n+6>e.byteLength)console.log("Invalid Exif data: Invalid directory offset.");else{if(!((a=n+2+12*(o=e.getUint16(n,r)))+4>e.byteLength)){for(s=0;s<o;s+=1)l=n+2+12*s,u=this.parseExifTag(e,t,l,r,i),i.exif[u.number]=u.value,i.exifOffsets&&(i.exifOffsets[u.number]=l);return e.getUint32(a,r)}console.log("Invalid Exif data: Invalid directory size.")}},e.parseExifData=function(t,n,r,i,o){if(!o.disableExif){var a,s,l,u=n+10;if(1165519206===t.getUint32(n+4))if(u+8>t.byteLength)console.log("Invalid Exif data: Invalid segment size.");else if(0===t.getUint16(n+8)){switch(t.getUint16(u)){case 18761:a=!0;break;case 19789:a=!1;break;default:return void console.log("Invalid Exif data: Invalid byte alignment marker.")}42===t.getUint16(u+2,a)?(s=t.getUint32(u+4,a),i.exif=new e.ExifMap,o.disableExifOffsets||(i.exifOffsets=new e.ExifMap,i.exifTiffOffset=u,i.exifLittleEndian=a),(s=e.parseExifTags(t,u,u+s,a,i))&&!o.disableExifThumbnail&&(l={exif:{}},s=e.parseExifTags(t,u,u+s,a,l),l.exif[513]&&(i.exif.Thumbnail=e.getExifThumbnail(t,u+l.exif[513],l.exif[514]))),i.exif[34665]&&!o.disableExifSub&&e.parseExifTags(t,u,u+i.exif[34665],a,i),i.exif[34853]&&!o.disableExifGps&&e.parseExifTags(t,u,u+i.exif[34853],a,i)):console.log("Invalid Exif data: Missing TIFF marker.")}else console.log("Invalid Exif data: Missing byte alignment offset.")}},e.metaDataParsers.jpeg[65505].push(e.parseExifData),e.exifWriters={274:function(e,t,n){return new DataView(e,t.exifOffsets[274]+8,2).setUint16(0,n,t.exifLittleEndian),e}},e.writeExifData=function(t,n,r,i){e.exifWriters[n.exif.map[r]](t,n,i)}})?r.apply(t,i):r)||(e.exports=o)}()},1019:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(1322)],void 0===(o="function"===typeof(r=function(e){"undefined"!==typeof fetch&&"undefined"!==typeof Request?e.fetchBlob=function(t,n,r){e.hasMetaOption(r)?fetch(new Request(t,r)).then((function(e){return e.blob()})).then(n).catch((function(e){console.log(e),n()})):n()}:"undefined"!==typeof XMLHttpRequest&&"undefined"!==typeof ProgressEvent&&(e.fetchBlob=function(t,n,r){if(e.hasMetaOption(r)){r=r||{};var i=new XMLHttpRequest;i.open(r.method||"GET",t),r.headers&&Object.keys(r.headers).forEach((function(e){i.setRequestHeader(e,r.headers[e])})),i.withCredentials="include"===r.credentials,i.responseType="blob",i.onload=function(){n(i.response)},i.onerror=i.onabort=i.ontimeout=function(e){console.log(e),n()},i.send(r.body)}else n()})})?r.apply(t,i):r)||(e.exports=o)}()},7492:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(2063)],void 0===(o="function"===typeof(r=function(e){e.IptcMap.prototype.tags={3:"ObjectType",4:"ObjectAttribute",5:"ObjectName",7:"EditStatus",8:"EditorialUpdate",10:"Urgency",12:"SubjectRef",15:"Category",20:"SupplCategory",22:"FixtureID",25:"Keywords",26:"ContentLocCode",27:"ContentLocName",30:"ReleaseDate",35:"ReleaseTime",37:"ExpirationDate",38:"ExpirationTime",40:"SpecialInstructions",42:"ActionAdvised",45:"RefService",47:"RefDate",50:"RefNumber",55:"DateCreated",60:"TimeCreated",62:"DigitalCreationDate",63:"DigitalCreationTime",65:"OriginatingProgram",70:"ProgramVersion",75:"ObjectCycle",80:"Byline",85:"BylineTitle",90:"City",92:"Sublocation",95:"State",100:"CountryCode",101:"CountryName",103:"OrigTransRef",105:"Headline",110:"Credit",115:"Source",116:"CopyrightNotice",118:"Contact",120:"Caption",122:"WriterEditor",130:"ImageType",131:"ImageOrientation",135:"LanguageID"},e.IptcMap.prototype.getText=function(e){var t=this.get(e);return String(t)},function(e){var t,n=e.tags,r=e.map||{};for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[n[t]]=t)}(e.IptcMap.prototype),e.IptcMap.prototype.getAll=function(){var e,t,n={};for(e in this)Object.prototype.hasOwnProperty.call(this,e)&&(t=this.tags[e])&&(n[t]=this.getText(t));return n}})?r.apply(t,i):r)||(e.exports=o)}()},2063:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(1322)],void 0===(o="function"===typeof(r=function(e){e.IptcMap=function(){return this},e.IptcMap.prototype.map={ObjectName:5},e.IptcMap.prototype.get=function(e){return this[e]||this[this.map[e]]},e.parseIptcTags=function(e,t,n,r){function i(e,t,n){for(var r="",i=t;i<t+n;i++)r+=String.fromCharCode(e.getUint8(i));return r}for(var o,a,s,l=t;l<t+n;)28===e.getUint8(l)&&2===e.getUint8(l+1)&&(s=e.getUint8(l+2))in r.iptc.tags&&(a=e.getInt16(l+3),o=i(e,l+5,a),Object.prototype.hasOwnProperty.call(r.iptc,s)?r.iptc[s]instanceof Array?r.iptc[s].push(o):r.iptc[s]=[r.iptc[s],o]:r.iptc[s]=o),l++},e.parseIptcData=function(t,n,r,i,o){if(!o.disableIptc){for(var a=n+r,s=function(e,t){return 943868237===e.getUint32(t)&&1028===e.getUint16(t+4)};n+8<a;){if(s(t,n)){var l=t.getUint8(n+7);l%2!==0&&(l+=1),0===l&&(l=4);var u=n+8+l;if(u>a){console.log("Invalid IPTC data: Invalid segment offset.");break}var c=t.getUint16(n+6+l);if(n+c>a){console.log("Invalid IPTC data: Invalid segment size.");break}return i.iptc=new e.IptcMap,e.parseIptcTags(t,u,c,i)}n++}console.log("No IPTC data at this offset - could be XMP")}},e.metaDataParsers.jpeg[65517].push(e.parseIptcData)})?r.apply(t,i):r)||(e.exports=o)}()},1322:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850)],r=function(e){var t="undefined"!==typeof Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);e.blobSlice=t&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},e.metaDataParsers={jpeg:{65505:[],65517:[]}},e.parseMetaData=function(t,n,r,i){i=i||{};var o=this,a=(r=r||{}).maxMetaDataSize||262144;!!("undefined"!==typeof DataView&&t&&t.size>=12&&"image/jpeg"===t.type&&e.blobSlice)&&e.readFile(e.blobSlice.call(t,0,a),(function(t){if(t.target.error)return console.log(t.target.error),void n(i);var a,s,l,u,c=t.target.result,d=new DataView(c),f=2,h=d.byteLength-4,p=f;if(65496===d.getUint16(0)){for(;f<h&&((a=d.getUint16(f))>=65504&&a<=65519||65534===a);){if(f+(s=d.getUint16(f+2)+2)>d.byteLength){console.log("Invalid meta data: Invalid segment size.");break}if((l=e.metaDataParsers.jpeg[a])&&!r.disableMetaDataParsers)for(u=0;u<l.length;u+=1)l[u].call(o,d,f,s,i,r);p=f+=s}!r.disableImageHead&&p>6&&(c.slice?i.imageHead=c.slice(0,p):i.imageHead=new Uint8Array(c).subarray(0,p))}else console.log("Invalid JPEG file: Missing JPEG marker.");n(i)}),"readAsArrayBuffer")||n(i)},e.replaceHead=function(t,n,r){e.parseMetaData(t,(function(i){r(new Blob([n,e.blobSlice.call(t,i.imageHead.byteLength)],{type:"image/jpeg"}))}),{maxMetaDataSize:256,disableMetaDataParsers:!0})},e.hasMetaOption=function(e){return e&&e.meta};var n=e.transform;e.transform=function(t,r,i,o,a){e.hasMetaOption(r)?e.parseMetaData(o,(function(a){n.call(e,t,r,i,o,a)}),r,a):n.apply(e,arguments)}},void 0===(o="function"===typeof r?r.apply(t,i):r)||(e.exports=o)}()},849:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850),n(2089),n(1322)],void 0===(o="function"===typeof(r=function(e){var t=e.hasCanvasOption,n=e.hasMetaOption,r=e.transformCoordinates,i=e.getTransformedOptions;(function(){var t="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==",n=document.createElement("img");n.onload=function(){e.orientation=1===n.width&&2===n.height},n.src=t})(),e.hasCanvasOption=function(n){return!0===!!n.orientation&&!e.orientation||n.orientation>1&&n.orientation<9||t.call(e,n)},e.hasMetaOption=function(t){return t&&!0===t.orientation&&!e.orientation||n.call(e,t)},e.transformCoordinates=function(t,n){r.call(e,t,n);var i=t.getContext("2d"),o=t.width,a=t.height,s=t.style.width,l=t.style.height,u=n.orientation;if(u>1&&u<9)switch(u>4&&(t.width=a,t.height=o,t.style.width=l,t.style.height=s),u){case 2:i.translate(o,0),i.scale(-1,1);break;case 3:i.translate(o,a),i.rotate(Math.PI);break;case 4:i.translate(0,a),i.scale(1,-1);break;case 5:i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:i.rotate(.5*Math.PI),i.translate(0,-a);break;case 7:i.rotate(.5*Math.PI),i.translate(o,-a),i.scale(-1,1);break;case 8:i.rotate(-.5*Math.PI),i.translate(-o,0)}},e.getTransformedOptions=function(t,n,r){var o,a,s=i.call(e,t,n),l=s.orientation;if(!0===l){if(e.orientation)return s;l=r&&r.exif&&r.exif.get("Orientation")}if(!(l>1&&l<9))return s;for(a in o={},s)Object.prototype.hasOwnProperty.call(s,a)&&(o[a]=s[a]);switch(o.orientation=l,l){case 2:o.left=s.right,o.right=s.left;break;case 3:o.left=s.right,o.top=s.bottom,o.right=s.left,o.bottom=s.top;break;case 4:o.top=s.bottom,o.bottom=s.top;break;case 5:o.left=s.top,o.top=s.left,o.right=s.bottom,o.bottom=s.right;break;case 6:o.left=s.top,o.top=s.right,o.right=s.bottom,o.bottom=s.left;break;case 7:o.left=s.bottom,o.top=s.right,o.right=s.top,o.bottom=s.left;break;case 8:o.left=s.bottom,o.top=s.left,o.right=s.top,o.bottom=s.right}return o.orientation>4&&(o.maxWidth=s.maxHeight,o.maxHeight=s.maxWidth,o.minWidth=s.minHeight,o.minHeight=s.minWidth,o.sourceWidth=s.sourceHeight,o.sourceHeight=s.sourceWidth),o}})?r.apply(t,i):r)||(e.exports=o)}()},2089:(e,t,n)=>{var r,i,o;!function(a){"use strict";i=[n(4850)],void 0===(o="function"===typeof(r=function(e){var t=e.transform;e.transform=function(n,r,i,o,a){t.call(e,e.scale(n,r,a),r,i,o,a)},e.transformCoordinates=function(){},e.getTransformedOptions=function(e,t){var n,r,i,o,a=t.aspectRatio;if(!a)return t;for(r in n={},t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n.crop=!0,(i=e.naturalWidth||e.width)/(o=e.naturalHeight||e.height)>a?(n.maxWidth=o*a,n.maxHeight=o):(n.maxWidth=i,n.maxHeight=i/a),n},e.renderImageToCanvas=function(e,t,n,r,i,o,a,s,l,u,c){var d=e.getContext("2d");return!1===c.imageSmoothingEnabled?d.imageSmoothingEnabled=!1:c.imageSmoothingQuality&&(d.imageSmoothingQuality=c.imageSmoothingQuality),d.drawImage(t,n,r,i,o,a,s,l,u),e},e.hasCanvasOption=function(e){return e.canvas||e.crop||!!e.aspectRatio},e.scale=function(t,n,r){n=n||{};var i,o,a,s,l,u,c,d,f,h,p,g=document.createElement("canvas"),m=t.getContext||e.hasCanvasOption(n)&&g.getContext,v=t.naturalWidth||t.width,y=t.naturalHeight||t.height,b=v,x=y;function w(){var e=Math.max((a||b)/b,(s||x)/x);e>1&&(b*=e,x*=e)}function C(){var e=Math.min((i||b)/b,(o||x)/x);e<1&&(b*=e,x*=e)}if(m&&(c=(n=e.getTransformedOptions(t,n,r)).left||0,d=n.top||0,n.sourceWidth?(l=n.sourceWidth,void 0!==n.right&&void 0===n.left&&(c=v-l-n.right)):l=v-c-(n.right||0),n.sourceHeight?(u=n.sourceHeight,void 0!==n.bottom&&void 0===n.top&&(d=y-u-n.bottom)):u=y-d-(n.bottom||0),b=l,x=u),i=n.maxWidth,o=n.maxHeight,a=n.minWidth,s=n.minHeight,m&&i&&o&&n.crop?(b=i,x=o,(p=l/u-i/o)<0?(u=o*l/i,void 0===n.top&&void 0===n.bottom&&(d=(y-u)/2)):p>0&&(l=i*u/o,void 0===n.left&&void 0===n.right&&(c=(v-l)/2))):((n.contain||n.cover)&&(a=i=i||a,s=o=o||s),n.cover?(C(),w()):(w(),C())),m){if((f=n.pixelRatio)>1&&(g.style.width=b+"px",g.style.height=x+"px",b*=f,x*=f,g.getContext("2d").scale(f,f)),(h=n.downsamplingRatio)>0&&h<1&&b<l&&x<u)for(;l*h>b;)g.width=l*h,g.height=u*h,e.renderImageToCanvas(g,t,c,d,l,u,0,0,g.width,g.height,n),c=0,d=0,l=g.width,u=g.height,(t=document.createElement("canvas")).width=l,t.height=u,e.renderImageToCanvas(t,g,0,0,l,u,0,0,l,u,n);return g.width=b,g.height=x,e.transformCoordinates(g,n),e.renderImageToCanvas(g,t,c,d,l,u,0,0,b,x,n)}return t.width=b,t.height=x,t}})?r.apply(t,i):r)||(e.exports=o)}()},4850:function(e,t,n){var r;!function(i){"use strict";function o(e,t,n){var r,i=document.createElement("img");return i.onerror=function(r){return o.onerror(i,r,e,t,n)},i.onload=function(r){return o.onload(i,r,e,t,n)},"string"===typeof e?(o.fetchBlob(e,(function(t){t&&o.isInstanceOf("Blob",t)?(e=t,r=o.createObjectURL(e)):(r=e,n&&n.crossOrigin&&(i.crossOrigin=n.crossOrigin)),i.src=r}),n),i):o.isInstanceOf("Blob",e)||o.isInstanceOf("File",e)?(r=i._objectURL=o.createObjectURL(e))?(i.src=r,i):o.readFile(e,(function(e){var n=e.target;n&&n.result?i.src=n.result:t&&t(e)})):void 0}var a=i.createObjectURL&&i||i.URL&&URL.revokeObjectURL&&URL||i.webkitURL&&webkitURL;function s(e,t){!e._objectURL||t&&t.noRevoke||(o.revokeObjectURL(e._objectURL),delete e._objectURL)}o.fetchBlob=function(e,t){t()},o.isInstanceOf=function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},o.transform=function(e,t,n,r,i){n(e,i)},o.onerror=function(e,t,n,r,i){s(e,i),r&&r.call(e,t)},o.onload=function(e,t,n,r,i){s(e,i),r&&o.transform(e,i,r,n,{originalWidth:e.naturalWidth||e.width,originalHeight:e.naturalHeight||e.height})},o.createObjectURL=function(e){return!!a&&a.createObjectURL(e)},o.revokeObjectURL=function(e){return!!a&&a.revokeObjectURL(e)},o.readFile=function(e,t,n){if(i.FileReader){var r=new FileReader;if(r.onload=r.onerror=t,r[n=n||"readAsDataURL"])return r[n](e),r}return!1},void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}("undefined"!==typeof window&&window||this)},4007:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}n.d(t,{A:()=>i});const i=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},2592:(e,t,n)=>{"use strict";var r=n(4665),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!o[v]&&(!r||!r[v])&&(!g||!g[v])&&(!s||!s[v])){var y=f(n,v);try{u(t,v,y)}catch(b){}}}}return t}},5370:function(e,t){var n;!function(t,n){"use strict";"object"===typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!==typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,c=o.indexOf,d={},f=d.toString,h=d.hasOwnProperty,p=h.toString,g=p.call(Object),m={},v=function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in x)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function C(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?d[f.call(e)]||"object":typeof e}var S="3.7.1",k=/HTML$/i,_=function(e,t){return new _.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}function P(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}_.fn=_.prototype={jquery:S,constructor:_,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return _.each(this,e)},map:function(e){return this.pushStack(_.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},_.extend=_.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"===typeof a&&(u=a,a=arguments[s]||{},s++),"object"===typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(_.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||_.isPlainObject(n)?n:{},i=!1,a[t]=_.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},_.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=a(e))||"function"===typeof(n=h.call(t,"constructor")&&t.constructor)&&p.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=_.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?_.merge(n,"string"===typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!k.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(E(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:m}),"function"===typeof Symbol&&(_.fn[Symbol.iterator]=o[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var j=o.pop,O=o.sort,R=o.splice,A="[\\x20\\t\\r\\n\\f]",T=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g");_.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var N=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function F(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}_.escapeSelector=function(e){return(e+"").replace(N,F)};var M=b,L=u;!function(){var e,t,n,i,a,l,u,d,f,p,g=L,v=_.expando,y=0,b=0,x=ee(),w=ee(),C=ee(),S=ee(),k=function(e,t){return e===t&&(a=!0),0},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="(?:\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+A+"*("+N+")(?:"+A+"*([*^$|!~]?=)"+A+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+A+"*\\]",I=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",D=new RegExp(A+"+","g"),z=new RegExp("^"+A+"*,"+A+"*"),B=new RegExp("^"+A+"*([>+~]|"+A+")"+A+"*"),U=new RegExp(A+"|>"),V=new RegExp(I),H=new RegExp("^"+N+"$"),W={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+A+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+A+"*((?:-\\d)?\\d*)"+A+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Z=new RegExp("\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\([^\\r\\n\\f])","g"),Y=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){le()},$=fe((function(e){return!0===e.disabled&&P(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(M.childNodes),M.childNodes),o[M.childNodes.length].nodeType}catch(be){g={apply:function(e,t){L.apply(e,s.call(t))},call:function(e){L.apply(e,s.call(arguments,1))}}}function J(e,t,n,r){var i,o,a,s,u,c,h,p=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!==typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(le(t),t=t||l,d)){if(11!==y&&(u=K.exec(e)))if(i=u[1]){if(9===y){if(!(a=t.getElementById(i)))return n;if(a.id===i)return g.call(n,a),n}else if(p&&(a=p.getElementById(i))&&J.contains(t,a)&&a.id===i)return g.call(n,a),n}else{if(u[2])return g.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(i)),n}if(!S[e+" "]&&(!f||!f.test(e))){if(h=e,p=t,1===y&&(U.test(e)||B.test(e))){for((p=X.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=_.escapeSelector(s):t.setAttribute("id",s=v)),o=(c=ce(e)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+de(c[o]);h=c.join(",")}try{return g.apply(n,p.querySelectorAll(h)),n}catch(b){S(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(T,"$1"),t,n,r)}function ee(){var e=[];return function n(r,i){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=i}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(be){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return P(t,"input")&&t.type===e}}function ie(e){return function(t){return(P(t,"input")||P(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&$(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function se(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}function le(e){var n,r=e?e.ownerDocument||e:M;return r!=l&&9===r.nodeType&&r.documentElement?(u=(l=r).documentElement,d=!_.isXMLDoc(l),p=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&M!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),m.getById=ne((function(e){return u.appendChild(e).id=_.expando,!l.getElementsByName||!l.getElementsByName(_.expando).length})),m.disconnectedMatch=ne((function(e){return p.call(e,"*")})),m.scope=ne((function(){return l.querySelectorAll(":scope")})),m.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(be){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(Z,Y);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Z,Y);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&d){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if("undefined"!==typeof t.getElementsByClassName&&d)return t.getElementsByClassName(e)},f=[],ne((function(e){var t;u.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||f.push("\\["+A+"*(?:value|"+E+")"),e.querySelectorAll("[id~="+v+"-]").length||f.push("~="),e.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll(":checked").length||f.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),u.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+A+"*name"+A+"*="+A+"*(?:''|\"\")")})),m.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),k=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==M&&J.contains(M,e)?-1:t===l||t.ownerDocument==M&&J.contains(M,t)?1:i?c.call(i,e)-c.call(i,t):0:4&n?-1:1)},l):l}for(e in J.matches=function(e,t){return J(e,null,null,t)},J.matchesSelector=function(e,t){if(le(e),d&&!S[t+" "]&&(!f||!f.test(t)))try{var n=p.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(be){S(t,!0)}return J(t,l,null,[e]).length>0},J.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),_.contains(e,t)},J.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[n.toLowerCase()],i=r&&h.call(t.attrHandle,n.toLowerCase())?r(e,n,!d):void 0;return void 0!==i?i:e.getAttribute(n)},J.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},_.uniqueSort=function(e){var t,n=[],r=0,o=0;if(a=!m.sortStable,i=!m.sortStable&&s.call(e,0),O.call(e,k),a){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)R.call(e,n[r],1)}return i=null,e},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(s.apply(this)))},t=_.expr={cacheLength:50,createPseudo:te,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,Y),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,Y),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||J.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&J.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=ce(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,Y).toLowerCase();return"*"===e?function(){return!0}:function(e){return P(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+A+")"+e+"("+A+"|$)"))&&x(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=J.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(D," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,f,h,p=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s,x=!1;if(g){if(o){for(;p;){for(d=t;d=d[p];)if(s?P(d,m):1===d.nodeType)return!1;h=p="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&b){for(x=(f=(u=(c=g[v]||(g[v]={}))[e]||[])[0]===y&&u[1])&&u[2],d=f&&g.childNodes[f];d=++f&&d&&d[p]||(x=f=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){c[e]=[y,f,x];break}}else if(b&&(x=f=(u=(c=t[v]||(t[v]={}))[e]||[])[0]===y&&u[1]),!1===x)for(;(d=++f&&d&&d[p]||(x=f=0)||h.pop())&&(!(s?P(d,m):1===d.nodeType)||!++x||(b&&((c=d[v]||(d[v]={}))[e]=[y,x]),d!==t)););return(x-=i)===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||J.error("unsupported pseudo: "+e);return i[v]?i(n):i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,o=i(e,n),a=o.length;a--;)e[r=c.call(e,o[a])]=!(t[r]=o[a])})):function(e){return i(e,0,r)}):i}},pseudos:{not:te((function(e){var t=[],n=[],r=ve(e.replace(T,"$1"));return r[v]?te((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return J(e,t).length>0}})),contains:te((function(e){return e=e.replace(Z,Y),function(t){return(t.textContent||_.text(t)).indexOf(e)>-1}})),lang:te((function(e){return H.test(e||"")||J.error("unsupported lang: "+e),e=e.replace(Z,Y).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===u},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return P(e,"input")&&!!e.checked||P(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){return P(e,"input")&&"button"===e.type||P(e,"button")},text:function(e){var t;return P(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ae((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);function ue(){}function ce(e,n){var r,i,o,a,s,l,u,c=w[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=t.preFilter;s;){for(a in r&&!(i=z.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=B.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(T," ")}),s=s.slice(r.length)),t.filter)!(i=W[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?J.error(e):w(e,l).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function fe(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=b++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var u,c,d=[y,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=t[v]||(t[v]={}),i&&P(t,i))t=t[r]||t;else{if((u=c[o])&&u[0]===y&&u[1]===s)return d[2]=u[2];if(c[o]=d,d[2]=e(t,n,l))return!0}return!1}}function he(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function pe(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function ge(e,t,n,r,i,o){return r&&!r[v]&&(r=ge(r)),i&&!i[v]&&(i=ge(i,o)),te((function(o,a,s,l){var u,d,f,h,p=[],m=[],v=a.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)J(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?y:pe(y,p,e,s,l);if(n?n(b,h=i||(o?e:v||r)?[]:a,s,l):h=b,r)for(u=pe(h,m),r(u,[],s,l),d=u.length;d--;)(f=u[d])&&(h[m[d]]=!(b[m[d]]=f));if(o){if(i||e){if(i){for(u=[],d=h.length;d--;)(f=h[d])&&u.push(b[d]=f);i(null,h=[],u,l)}for(d=h.length;d--;)(f=h[d])&&(u=i?c.call(o,f):p[d])>-1&&(o[u]=!(a[u]=f))}}else h=pe(h===a?h.splice(v,h.length):h),i?i(null,a,h,l):g.apply(a,h)}))}function me(e){for(var r,i,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],u=s?1:0,d=fe((function(e){return e===r}),l,!0),f=fe((function(e){return c.call(r,e)>-1}),l,!0),h=[function(e,t,i){var o=!s&&(i||t!=n)||((r=t).nodeType?d(e,t,i):f(e,t,i));return r=null,o}];u<a;u++)if(i=t.relative[e[u].type])h=[fe(he(h),i)];else{if((i=t.filter[e[u].type].apply(null,e[u].matches))[v]){for(o=++u;o<a&&!t.relative[e[o].type];o++);return ge(u>1&&he(h),u>1&&de(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(T,"$1"),i,u<o&&me(e.slice(u,o)),o<a&&me(e=e.slice(o)),o<a&&de(e))}h.push(i)}return he(h)}function ve(e,r){var i,o=[],a=[],s=C[e+" "];if(!s){for(r||(r=ce(e)),i=r.length;i--;)(s=me(r[i]))[v]?o.push(s):a.push(s);s=C(e,function(e,r){var i=r.length>0,o=e.length>0,a=function(a,s,u,c,f){var h,p,m,v=0,b="0",x=a&&[],w=[],C=n,S=a||o&&t.find.TAG("*",f),k=y+=null==C?1:Math.random()||.1,E=S.length;for(f&&(n=s==l||s||f);b!==E&&null!=(h=S[b]);b++){if(o&&h){for(p=0,s||h.ownerDocument==l||(le(h),u=!d);m=e[p++];)if(m(h,s||l,u)){g.call(c,h);break}f&&(y=k)}i&&((h=!m&&h)&&v--,a&&x.push(h))}if(v+=b,i&&b!==v){for(p=0;m=r[p++];)m(x,w,s,u);if(a){if(v>0)for(;b--;)x[b]||w[b]||(w[b]=j.call(c));w=pe(w)}g.apply(c,w),f&&!a&&w.length>0&&v+r.length>1&&_.uniqueSort(c)}return f&&(y=k,n=C),x};return i?te(a):a}(a,o)),s.selector=e}return s}function ye(e,n,r,i){var o,a,s,l,u,c="function"===typeof e&&e,f=!i&&ce(e=c.selector||e);if(r=r||[],1===f.length){if((a=f[0]=f[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Z,Y),n)||[])[0]))return r;c&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=W.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((u=t.find[l])&&(i=u(s.matches[0].replace(Z,Y),X.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=i.length&&de(a)))return g.apply(r,i),r;break}}return(c||ve(e,f))(i,n,!d,r,!n||X.test(e)&&se(n.parentNode)||n),r}ue.prototype=t.filters=t.pseudos,t.setFilters=new ue,m.sortStable=v.split("").sort(k).join("")===v,le(),m.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),_.find=J,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,J.compile=ve,J.select=ye,J.setDocument=le,J.tokenize=ce,J.escape=_.escapeSelector,J.getText=_.text,J.isXML=_.isXMLDoc,J.selectors=_.expr,J.support=_.support,J.uniqueSort=_.uniqueSort}();var I=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&_(e).is(n))break;r.push(e)}return r},D=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},z=_.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(e,t,n){return v(t)?_.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?_.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?_.grep(e,(function(e){return c.call(t,e)>-1!==n})):_.filter(t,e,n)}_.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?_.find.matchesSelector(r,e)?[r]:[]:_.find.matches(e,_.grep(t,(function(e){return 1===e.nodeType})))},_.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!==typeof e)return this.pushStack(_(e).filter((function(){for(t=0;t<r;t++)if(_.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)_.find(e,i[t],n);return r>1?_.uniqueSort(n):n},filter:function(e){return this.pushStack(U(this,e||[],!1))},not:function(e){return this.pushStack(U(this,e||[],!0))},is:function(e){return!!U(this,"string"===typeof e&&z.test(e)?_(e):e||[],!1).length}});var V,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||V,"string"===typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:H.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),B.test(r[1])&&_.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(_):_.makeArray(e,this)}).prototype=_.fn,V=_(b);var W=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function q(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(_.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!==typeof e&&_(e);if(!z.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&_.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?_.uniqueSort(o):o)},index:function(e){return e?"string"===typeof e?c.call(_(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return q(e,"nextSibling")},prev:function(e){return q(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return D((e.parentNode||{}).firstChild,e)},children:function(e){return D(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(P(e,"template")&&(e=e.content||e),_.merge([],e.childNodes))}},(function(e,t){_.fn[e]=function(n,r){var i=_.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=_.filter(r,i)),this.length>1&&(G[e]||_.uniqueSort(i),W.test(e)&&i.reverse()),this.pushStack(i)}}));var K=/[^\x20\t\r\n\f]+/g;function X(e){return e}function Z(e){throw e}function Y(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}_.Callbacks=function(e){e="string"===typeof e?function(e){var t={};return _.each(e.match(K)||[],(function(e,n){t[n]=!0})),t}(e):_.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){_.each(n,(function(n,r){v(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==C(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return _.each(arguments,(function(e,t){for(var n;(n=_.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?_.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},_.extend({Deferred:function(e){var t=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return _.Deferred((function(n){_.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,l=arguments,u=function(){var r,u;if(!(e<o)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"===typeof r||"function"===typeof r)&&r.then,v(u)?i?u.call(r,a(o,t,X,i),a(o,t,Z,i)):(o++,u.call(r,a(o,t,X,i),a(o,t,Z,i),a(o,t,X,t.notifyWith))):(n!==X&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(r){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(r,c.error),e+1>=o&&(n!==Z&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?c():(_.Deferred.getErrorHook?c.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(c.error=_.Deferred.getStackHook()),r.setTimeout(c))}}return _.Deferred((function(r){t[0][3].add(a(0,r,v(i)?i:X,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:X)),t[2][3].add(a(0,r,v(n)?n:Z))})).promise()},promise:function(e){return null!=e?_.extend(e,i):i}},o={};return _.each(t,(function(e,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=_.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(Y(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)Y(i[n],a(n),o.reject);return o.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&Q.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},_.readyException=function(e){r.setTimeout((function(){throw e}))};var $=_.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),r.removeEventListener("load",J),_.ready()}_.fn.ready=function(e){return $.then(e).catch((function(e){_.readyException(e)})),this},_.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==e&&--_.readyWait>0||$.resolveWith(b,[_]))}}),_.ready.then=$.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(_.ready):(b.addEventListener("DOMContentLoaded",J),r.addEventListener("load",J));var ee=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===C(n))for(s in i=!0,n)ee(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(_(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ie(e){return e.replace(te,"ms-").replace(ne,re)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=_.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"===typeof t)i[ie(t)]=n;else for(r in t)i[ie(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){return void 0===t||t&&"string"===typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in r?[t]:t.match(K)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||_.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!_.isEmptyObject(t)}};var se=new ae,le=new ae,ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ce=/[A-Z]/g;function de(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ce,"-$&").toLowerCase(),"string"===typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ue.test(e)?JSON.parse(e):e)}(n)}catch(i){}le.set(e,t,n)}else n=void 0;return n}_.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),_.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=ie(r.slice(5)),de(o,r,i[r]));se.set(o,"hasDataAttrs",!0)}return i}return"object"===typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),_.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),n&&(!r||Array.isArray(n)?r=se.access(e,t,_.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=_.queue(e,t),r=n.length,i=n.shift(),o=_._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){_.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:_.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),_.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?_.queue(this[0],e):void 0===t?this:this.each((function(){var n=_.queue(this,e,t);_._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&_.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){_.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=_.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!==typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var fe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+fe+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],ge=b.documentElement,me=function(e){return _.contains(e.ownerDocument,e)},ve={composed:!0};ge.getRootNode&&(me=function(e){return _.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===_.css(e,"display")};function be(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return _.css(e,t,"")},l=s(),u=n&&n[3]||(_.cssNumber[t]?"":"px"),c=e.nodeType&&(_.cssNumber[t]||"px"!==u&&+l)&&he.exec(_.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)_.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,_.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var xe={};function we(e){var t,n=e.ownerDocument,r=e.nodeName,i=xe[r];return i||(t=n.body.appendChild(n.createElement(r)),i=_.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),xe[r]=i,i)}function Ce(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=se.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ye(r)&&(i[o]=we(r))):"none"!==n&&(i[o]="none",se.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}_.fn.extend({show:function(){return Ce(this,!0)},hide:function(){return Ce(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){ye(this)?_(this).show():_(this).hide()}))}});var Se=/^(?:checkbox|radio)$/i,ke=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_e=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=b.createDocumentFragment().appendChild(b.createElement("div")),t=b.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),m.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",m.option=!!e.lastChild}();var Ee={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Pe(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&P(e,t)?_.merge([e],n):n}function je(e,t){for(var n=0,r=e.length;n<r;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Ee.tbody=Ee.tfoot=Ee.colgroup=Ee.caption=Ee.thead,Ee.th=Ee.td,m.option||(Ee.optgroup=Ee.option=[1,"<select multiple='multiple'>","</select>"]);var Oe=/<|&#?\w+;/;function Re(e,t,n,r,i){for(var o,a,s,l,u,c,d=t.createDocumentFragment(),f=[],h=0,p=e.length;h<p;h++)if((o=e[h])||0===o)if("object"===C(o))_.merge(f,o.nodeType?[o]:o);else if(Oe.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(ke.exec(o)||["",""])[1].toLowerCase(),l=Ee[s]||Ee._default,a.innerHTML=l[1]+_.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;_.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",h=0;o=f[h++];)if(r&&_.inArray(o,r)>-1)i&&i.push(o);else if(u=me(o),a=Pe(d.appendChild(o),"script"),u&&je(a),n)for(c=0;o=a[c++];)_e.test(o.type||"")&&n.push(o);return d}var Ae=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ne(){return!1}function Fe(e,t,n,r,i,o){var a,s;if("object"===typeof t){for(s in"string"!==typeof n&&(r=r||n,n=void 0),t)Fe(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ne;else if(!i)return e;return 1===o&&(a=i,i=function(e){return _().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=_.guid++)),e.each((function(){_.event.add(this,t,i,r,n)}))}function Me(e,t,n){n?(se.set(e,t,!1),_.event.add(e,t,{namespace:!1,handler:function(e){var n,r=se.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(_.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),se.set(this,t,r),this[t](),n=se.get(this,t),se.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(se.set(this,t,_.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Te)}})):void 0===se.get(e,t)&&_.event.add(e,t,Te)}_.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,h,p,g,m=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&_.find.matchesSelector(ge,i),n.guid||(n.guid=_.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return"undefined"!==typeof _&&_.event.triggered!==t.type?_.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(K)||[""]).length;u--;)h=g=(s=Ae.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h&&(d=_.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=_.event.special[h]||{},c=_.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&_.expr.match.needsContext.test(i),namespace:p.join(".")},o),(f=l[h])||((f=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),_.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,h,p,g,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(K)||[""]).length;u--;)if(h=g=(s=Ae.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h){for(d=_.event.special[h]||{},f=l[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||_.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)_.event.remove(e,h+t[u],n,r,!0);_.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=_.event.fix(e),u=(se.get(this,"events")||Object.create(null))[l.type]||[],c=_.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=_.event.handlers.call(this,l,u),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((_.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?_(i,this).index(u)>-1:_.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(_.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[_.expando]?e:new _.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Se.test(t.type)&&t.click&&P(t,"input")&&Me(t,"click",!0),!1},trigger:function(e){var t=this||e;return Se.test(t.type)&&t.click&&P(t,"input")&&Me(t,"click"),!0},_default:function(e){var t=e.target;return Se.test(t.type)&&t.click&&P(t,"input")&&se.get(t,"click")||P(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},_.Event=function(e,t){if(!(this instanceof _.Event))return new _.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ne,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&_.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Ne,isPropagationStopped:Ne,isImmediatePropagationStopped:Ne,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),r=_.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else _.event.simulate(t,e.target,_.event.fix(e))}_.event.special[e]={setup:function(){var r;if(Me(this,e,!0),!b.documentMode)return!1;(r=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(r||0)+1)},trigger:function(){return Me(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},_.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t);o||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),se.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t)-1;o?se.set(i,t,o):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),se.remove(i,t))}}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){_.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||_.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),_.fn.extend({on:function(e,t,n,r){return Fe(this,e,t,n,r)},one:function(e,t,n,r){return Fe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,_(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=Ne),this.each((function(){_.event.remove(this,e,n,t)}))}});var Le=/<script|<style|<link/i,Ie=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ze(e,t){return P(e,"table")&&P(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ve(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(i in se.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)_.event.add(t,i,s[i][n]);le.hasData(e)&&(o=le.access(e),a=_.extend({},o),le.set(t,a))}}function He(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Se.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function We(e,t,n,r){t=l(t);var i,o,a,s,u,c,d=0,f=e.length,h=f-1,p=t[0],g=v(p);if(g||f>1&&"string"===typeof p&&!m.checkClone&&Ie.test(p))return e.each((function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),We(o,t,n,r)}));if(f&&(o=(i=Re(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=_.map(Pe(i,"script"),Be)).length;d<f;d++)u=i,d!==h&&(u=_.clone(u,!0,!0),s&&_.merge(a,Pe(u,"script"))),n.call(e[d],u,d);if(s)for(c=a[a.length-1].ownerDocument,_.map(a,Ue),d=0;d<s;d++)u=a[d],_e.test(u.type||"")&&!se.access(u,"globalEval")&&_.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?_._evalUrl&&!u.noModule&&_._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):w(u.textContent.replace(De,""),u,c))}return e}function Ge(e,t,n){for(var r,i=t?_.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||_.cleanData(Pe(r)),r.parentNode&&(n&&me(r)&&je(Pe(r,"script")),r.parentNode.removeChild(r));return e}_.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=me(e);if(!m.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!_.isXMLDoc(e))for(a=Pe(s),r=0,i=(o=Pe(e)).length;r<i;r++)He(o[r],a[r]);if(t)if(n)for(o=o||Pe(e),a=a||Pe(s),r=0,i=o.length;r<i;r++)Ve(o[r],a[r]);else Ve(e,s);return(a=Pe(s,"script")).length>0&&je(a,!l&&Pe(e,"script")),s},cleanData:function(e){for(var t,n,r,i=_.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(r in t.events)i[r]?_.event.remove(n,r):_.removeEvent(n,r,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),_.fn.extend({detach:function(e){return Ge(this,e,!0)},remove:function(e){return Ge(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ze(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ze(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_.cleanData(Pe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return _.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!Le.test(e)&&!Ee[(ke.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(_.cleanData(Pe(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return We(this,arguments,(function(t){var n=this.parentNode;_.inArray(this,e)<0&&(_.cleanData(Pe(this)),n&&n.replaceChild(t,this))}),e)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){_.fn[e]=function(e){for(var n,r=[],i=_(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),_(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}}));var qe=new RegExp("^("+fe+")(?!px)[a-z%]+$","i"),Ke=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ze=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ye=new RegExp(pe.join("|"),"i");function Qe(e,t,n){var r,i,o,a,s=Ke.test(t),l=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(T,"$1")||void 0),""!==a||me(e)||(a=_.style(e,t)),!m.pixelBoxStyles()&&qe.test(a)&&Ye.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(u).appendChild(c);var e=r.getComputedStyle(c);n="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),ge.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,a,s,l,u=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,_.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var Je=["Webkit","Moz","ms"],et=b.createElement("div").style,tt={};function nt(e){var t=_.cssProps[e]||tt[e];return t||(e in et?e:tt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Je.length;n--;)if((e=Je[n]+t)in et)return e}(e)||e)}var rt=/^(none|table(?!-c[ea]).+)/,it={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function at(e,t,n){var r=he.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function st(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=_.css(e,n+pe[a],!0,i)),r?("content"===n&&(l-=_.css(e,"padding"+pe[a],!0,i)),"margin"!==n&&(l-=_.css(e,"border"+pe[a]+"Width",!0,i))):(l+=_.css(e,"padding"+pe[a],!0,i),"padding"!==n?l+=_.css(e,"border"+pe[a]+"Width",!0,i):s+=_.css(e,"border"+pe[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+u}function lt(e,t,n){var r=Xe(e),i=(!m.boxSizingReliable()||n)&&"border-box"===_.css(e,"boxSizing",!1,r),o=i,a=Qe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&P(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===_.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+st(e,t,n||(i?"border":"content"),o,r,a)+"px"}function ut(e,t,n,r,i){return new ut.prototype.init(e,t,n,r,i)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ie(t),l=Ke.test(t),u=e.style;if(l||(t=nt(s)),a=_.cssHooks[t]||_.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"===(o=typeof n)&&(i=he.exec(n))&&i[1]&&(n=be(e,t,i),o="number"),null!=n&&n===n&&("number"!==o||l||(n+=i&&i[3]||(_.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=ie(t);return Ke.test(t)||(t=nt(s)),(a=_.cssHooks[t]||_.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Qe(e,t,r)),"normal"===i&&t in ot&&(i=ot[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),_.each(["height","width"],(function(e,t){_.cssHooks[t]={get:function(e,n,r){if(n)return!rt.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?lt(e,t,r):Ze(e,it,(function(){return lt(e,t,r)}))},set:function(e,n,r){var i,o=Xe(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===_.css(e,"boxSizing",!1,o),l=r?st(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-st(e,t,"border",!1,o)-.5)),l&&(i=he.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=_.css(e,t)),at(0,n,l)}}})),_.cssHooks.marginLeft=$e(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(e,t){_.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"===typeof n?n.split(" "):[n];r<4;r++)i[e+pe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(_.cssHooks[e+t].set=at)})),_.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=_.css(e,t[a],!1,r);return o}return void 0!==n?_.style(e,t,n):_.css(e,t)}),e,t,arguments.length>1)}}),_.Tween=ut,ut.prototype={constructor:ut,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(_.cssNumber[n]?"":"px")},cur:function(){var e=ut.propHooks[this.prop];return e&&e.get?e.get(this):ut.propHooks._default.get(this)},run:function(e){var t,n=ut.propHooks[this.prop];return this.options.duration?this.pos=t=_.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ut.propHooks._default.set(this),this}},ut.prototype.init.prototype=ut.prototype,ut.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=_.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||!_.cssHooks[e.prop]&&null==e.elem.style[nt(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}},ut.propHooks.scrollTop=ut.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_.fx=ut.prototype.init,_.fx.step={};var ct,dt,ft=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;function pt(){dt&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(pt):r.setTimeout(pt,_.fx.interval),_.fx.tick())}function gt(){return r.setTimeout((function(){ct=void 0})),ct=Date.now()}function mt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=pe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(e,t,n){var r,i,o=0,a=yt.prefilters.length,s=_.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=ct||gt(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:_.extend({},t),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:t,originalOptions:n,startTime:ct||gt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=_.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=ie(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=_.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);o<a;o++)if(r=yt.prefilters[o].call(u,e,c,u.opts))return v(r.stop)&&(_._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return _.map(c,vt,u),v(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),_.fx.timer(_.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}_.Animation=_.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,he.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(K);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,u,c,d="width"in t||"height"in t,f=this,h={},p=e.style,g=e.nodeType&&ye(e),m=se.get(e,"fxshow");for(r in n.queue||(null==(a=_._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,_.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}h[r]=m&&m[r]||_.style(e,r)}if((l=!_.isEmptyObject(t))||!_.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=se.get(e,"display")),"none"===(c=_.css(e,"display"))&&(u?c=u:(Ce([e],!0),u=e.style.display||u,c=_.css(e,"display"),Ce([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===_.css(e,"float")&&(l||(f.done((function(){p.display=u})),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,h)l||(m?"hidden"in m&&(g=m.hidden):m=se.access(e,"fxshow",{display:u}),o&&(m.hidden=!g),g&&Ce([e],!0),f.done((function(){for(r in g||Ce([e]),se.remove(e,"fxshow"),h)_.style(e,r,h[r])}))),l=vt(g?m[r]:0,r,f),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),_.speed=function(e,t,n){var r=e&&"object"===typeof e?_.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return _.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in _.fx.speeds?r.duration=_.fx.speeds[r.duration]:r.duration=_.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&_.dequeue(this,r.queue)},r},_.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=_.isEmptyObject(e),o=_.speed(t,n,r),a=function(){var t=yt(this,_.extend({},e),o);(i||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!==typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=_.timers,a=se.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ht.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||_.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=_.timers,a=r?r.length:0;for(n.finish=!0,_.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),_.each(["toggle","show","hide"],(function(e,t){var n=_.fn[t];_.fn[t]=function(e,r,i){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(mt(t,!0),e,r,i)}})),_.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){_.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),_.timers=[],_.fx.tick=function(){var e,t=0,n=_.timers;for(ct=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||_.fx.stop(),ct=void 0},_.fx.timer=function(e){_.timers.push(e),_.fx.start()},_.fx.interval=13,_.fx.start=function(){dt||(dt=!0,pt())},_.fx.stop=function(){dt=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(e,t){return e=_.fx&&_.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var bt,xt=_.expr.attrHandle;_.fn.extend({attr:function(e,t){return ee(this,_.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){_.removeAttr(this,e)}))}}),_.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof e.getAttribute?_.prop(e,t,n):(1===o&&_.isXMLDoc(e)||(i=_.attrHooks[t.toLowerCase()]||(_.expr.match.bool.test(t)?bt:void 0)),void 0!==n?null===n?void _.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=_.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&P(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(K);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),bt={set:function(e,t,n){return!1===t?_.removeAttr(e,n):e.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=xt[t]||_.find.attr;xt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=xt[a],xt[a]=i,i=null!=n(e,t,r)?a:null,xt[a]=o),i}}));var wt=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;function St(e){return(e.match(K)||[]).join(" ")}function kt(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(K)||[]}_.fn.extend({prop:function(e,t){return ee(this,_.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[_.propFix[e]||e]}))}}),_.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(e)||(t=_.propFix[t]||t,i=_.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(_.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){_(this).addClass(e.call(this,t,kt(this)))})):(t=_t(e)).length?this.each((function(){if(r=kt(this),n=1===this.nodeType&&" "+St(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=St(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){_(this).removeClass(e.call(this,t,kt(this)))})):arguments.length?(t=_t(e)).length?this.each((function(){if(r=kt(this),n=1===this.nodeType&&" "+St(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=St(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){_(this).toggleClass(e.call(this,n,kt(this),t),t)})):"boolean"===typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=_t(e),this.each((function(){if(s)for(o=_(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=kt(this))&&se.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+St(kt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Et=/\r/g;_.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,_(this).val()):e)?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=_.map(i,(function(e){return null==e?"":e+""}))),(t=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=_.valHooks[i.type]||_.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"===typeof(n=i.value)?n.replace(Et,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:St(_.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!P(n.parentNode,"optgroup"))){if(t=_(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=_.makeArray(t),a=i.length;a--;)((r=i[a]).selected=_.inArray(_.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=_.inArray(_(e).val(),t)>-1}},m.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Pt=r.location,jt={guid:Date.now()},Ot=/\?/;_.parseXML=function(e){var t,n;if(!e||"string"!==typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(i){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||_.error("Invalid XML: "+(n?_.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Rt=/^(?:focusinfocus|focusoutblur)$/,At=function(e){e.stopPropagation()};_.extend(_.event,{trigger:function(e,t,n,i){var o,a,s,l,u,c,d,f,p=[n||b],g=h.call(e,"type")?e.type:e,m=h.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Rt.test(g+_.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[_.expando]?e:new _.Event(g,"object"===typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:_.makeArray(t,[e]),d=_.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Rt.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?l:d.bindType||g,(c=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&c.apply(a,t),(c=u&&a[u])&&c.apply&&oe(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!oe(n)||u&&v(n[g])&&!y(n)&&((s=n[u])&&(n[u]=null),_.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,At),n[g](),e.isPropagationStopped()&&f.removeEventListener(g,At),_.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=_.extend(new _.Event,n,{type:e,isSimulated:!0});_.event.trigger(r,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each((function(){_.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return _.event.trigger(e,t,n,!0)}});var Tt=/\[\]$/,Nt=/\r?\n/g,Ft=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,n,r){var i;if(Array.isArray(t))_.each(t,(function(t,i){n||Tt.test(e)?r(e,i):Lt(e+"["+("object"===typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==C(t))r(e,t);else for(i in t)Lt(e+"["+i+"]",t[i],n,r)}_.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,(function(){i(this.name,this.value)}));else for(n in e)Lt(n,e[n],t,i);return r.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=_.prop(this,"elements");return e?_.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!_(this).is(":disabled")&&Mt.test(this.nodeName)&&!Ft.test(e)&&(this.checked||!Se.test(e))})).map((function(e,t){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}})):{name:t.name,value:n.replace(Nt,"\r\n")}})).get()}});var It=/%20/g,Dt=/#.*$/,zt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:GET|HEAD)$/,Vt=/^\/\//,Ht={},Wt={},Gt="*/".concat("*"),qt=b.createElement("a");function Kt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(K)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Xt(e,t,n,r){var i={},o=e===Wt;function a(s){var l;return i[s]=!0,_.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!==typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Zt(e,t){var n,r,i=_.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&_.extend(!0,e,r),e}qt.href=Pt.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Gt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Zt(Zt(e,_.ajaxSettings),t):Zt(_.ajaxSettings,e)},ajaxPrefilter:Kt(Ht),ajaxTransport:Kt(Wt),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,l,u,c,d,f,h=_.ajaxSetup({},t),p=h.context||h,g=h.context&&(p.nodeType||p.jquery)?_(p):_.event,m=_.Deferred(),v=_.Callbacks("once memory"),y=h.statusCode||{},x={},w={},C="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Bt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)S.always(e[S.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||C;return n&&n.abort(t),k(0,t),this}};if(m.promise(S),h.url=((e||h.url||Pt.href)+"").replace(Vt,Pt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(K)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=qt.protocol+"//"+qt.host!==l.protocol+"//"+l.host}catch(E){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!==typeof h.data&&(h.data=_.param(h.data,h.traditional)),Xt(Ht,h,t,S),u)return S;for(d in(c=_.event&&h.global)&&0===_.active++&&_.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ut.test(h.type),i=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(It,"+")):(f=h.url.slice(i.length),h.data&&(h.processData||"string"===typeof h.data)&&(i+=(Ot.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(zt,"$1"),f=(Ot.test(i)?"&":"?")+"_="+jt.guid+++f),h.url=i+f),h.ifModified&&(_.lastModified[i]&&S.setRequestHeader("If-Modified-Since",_.lastModified[i]),_.etag[i]&&S.setRequestHeader("If-None-Match",_.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Gt+"; q=0.01":""):h.accepts["*"]),h.headers)S.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(p,S,h)||u))return S.abort();if(C="abort",v.add(h.complete),S.done(h.success),S.fail(h.error),n=Xt(Wt,h,t,S)){if(S.readyState=1,c&&g.trigger("ajaxSend",[S,h]),u)return S;h.async&&h.timeout>0&&(s=r.setTimeout((function(){S.abort("timeout")}),h.timeout));try{u=!1,n.send(x,k)}catch(E){if(u)throw E;k(-1,E)}}else k(-1,"No Transport");function k(e,t,a,l){var d,f,b,x,w,C=t;u||(u=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",S.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,S,a)),!d&&_.inArray("script",h.dataTypes)>-1&&_.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),x=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(E){return{state:"parsererror",error:a?E:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(h,x,S,d),d?(h.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(_.lastModified[i]=w),(w=S.getResponseHeader("etag"))&&(_.etag[i]=w)),204===e||"HEAD"===h.type?C="nocontent":304===e?C="notmodified":(C=x.state,f=x.data,d=!(b=x.error))):(b=C,!e&&C||(C="error",e<0&&(e=0))),S.status=e,S.statusText=(t||C)+"",d?m.resolveWith(p,[f,C,S]):m.rejectWith(p,[S,C,b]),S.statusCode(y),y=void 0,c&&g.trigger(d?"ajaxSuccess":"ajaxError",[S,h,d?f:b]),v.fireWith(p,[S,C]),c&&(g.trigger("ajaxComplete",[S,h]),--_.active||_.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return _.get(e,t,n,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],(function(e,t){_[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),_.ajax(_.extend({url:e,type:t,dataType:i,data:n,success:r},_.isPlainObject(e)&&e))}})),_.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),_._evalUrl=function(e,t,n){return _.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_.globalEval(e,t,n)}})},_.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=_(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){_(this).wrapInner(e.call(this,t))})):this.each((function(){var t=_(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){_(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(e){return!_.expr.pseudos.visible(e)},_.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=_.ajaxSettings.xhr();m.cors=!!Qt&&"withCredentials"in Qt,m.ajax=Qt=!!Qt,_.ajaxTransport((function(e){var t,n;if(m.cors||Qt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Yt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),_.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _.globalEval(e),e}}}),_.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),_.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=_("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var $t=[],Jt=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||_.expando+"_"+jt.guid++;return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,a,s=!1!==e.jsonp&&(Jt.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Jt,"$1"+i):!1!==e.jsonp&&(e.url+=(Ot.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||_.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){void 0===o?_(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,$t.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=function(){var e=b.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),_.parseHTML=function(e,t,n){return"string"!==typeof e?[]:("boolean"===typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=B.exec(e))?[t.createElement(i[1])]:(i=Re([e],t,o),o&&o.length&&_(o).remove(),_.merge([],i.childNodes)));var r,i,o},_.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=St(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"===typeof t&&(i="POST"),a.length>0&&_.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?_("<div>").append(_.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},_.expr.pseudos.animated=function(e){return _.grep(_.timers,(function(t){return e===t.elem})).length},_.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=_.css(e,"position"),c=_(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=_.css(e,"top"),l=_.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),v(t)&&(t=t.call(e,n,_.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},_.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){_.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===_.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===_.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=_(e).offset()).top+=_.css(e,"borderTopWidth",!0),i.left+=_.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-_.css(r,"marginTop",!0),left:t.left-i.left-_.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===_.css(e,"position");)e=e.offsetParent;return e||ge}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;_.fn[e]=function(r){return ee(this,(function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),_.each(["top","left"],(function(e,t){_.cssHooks[t]=$e(m.pixelPosition,(function(e,n){if(n)return n=Qe(e,t),qe.test(n)?_(e).position()[t]+"px":n}))})),_.each({Height:"height",Width:"width"},(function(e,t){_.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){_.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!==typeof i),s=n||(!0===i||!0===o?"margin":"border");return ee(this,(function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?_.css(t,n,s):_.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){_.fn[t]=function(e){return this.on(t,e)}})),_.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){_.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;_.proxy=function(e,t){var n,r,i;if("string"===typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||_.guid++,i},_.holdReady=function(e){e?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=P,_.isFunction=v,_.isWindow=y,_.camelCase=ie,_.type=C,_.now=Date.now,_.isNumeric=function(e){var t=_.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},_.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},void 0===(n=function(){return _}.apply(t,[]))||(e.exports=n);var tn=r.jQuery,nn=r.$;return _.noConflict=function(e){return r.$===_&&(r.$=nn),e&&r.jQuery===_&&(r.jQuery=tn),_},"undefined"===typeof i&&(r.jQuery=r.$=_),_}))},4822:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Animation=void 0;const r=n(2225),i=n(210),o=r.glob.performance&&r.glob.performance.now?function(){return r.glob.performance.now()}:function(){return(new Date).getTime()};class a{constructor(e,t){this.id=a.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:o(),frameRate:0},this.func=e,this.setLayers(t)}setLayers(e){let t=[];return e&&(t=Array.isArray(e)?e:[e]),this.layers=t,this}getLayers(){return this.layers}addLayer(e){const t=this.layers,n=t.length;for(let r=0;r<n;r++)if(t[r]._id===e._id)return!1;return this.layers.push(e),!0}isRunning(){const e=a.animations,t=e.length;for(let n=0;n<t;n++)if(e[n].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=o(),a._addAnimation(this),this}stop(){return a._removeAnimation(this),this}_updateFrameObject(e){this.frame.timeDiff=e-this.frame.lastTime,this.frame.lastTime=e,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(e){this.animations.push(e),this._handleAnimation()}static _removeAnimation(e){const t=e.id,n=this.animations,r=n.length;for(let i=0;i<r;i++)if(n[i].id===t){this.animations.splice(i,1);break}}static _runFrames(){const e={},t=this.animations;for(let n=0;n<t.length;n++){const r=t[n],i=r.layers,a=r.func;r._updateFrameObject(o());const s=i.length;let l;if(l=!a||!1!==a.call(r,r.frame),l)for(let t=0;t<s;t++){const n=i[t];void 0!==n._id&&(e[n._id]=n)}}for(let n in e)e.hasOwnProperty(n)&&e[n].batchDraw()}static _animationLoop(){const e=a;e.animations.length?(e._runFrames(),i.Util.requestAnimFrame(e._animationLoop)):e.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,i.Util.requestAnimFrame(this._animationLoop))}}t.Animation=a,a.animations=[],a.animIdCounter=0,a.animRunning=!1},8480:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.t2length=t.getQuadraticArcLength=t.getCubicArcLength=t.binomialCoefficients=t.cValues=t.tValues=void 0,t.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],t.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],t.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];t.getCubicArcLength=(e,r,i)=>{let o,a,s;o=i/2,a=0;for(let l=0;l<20;l++)s=o*t.tValues[20][l]+o,a+=t.cValues[20][l]*n(e,r,s);return o*a};function n(e,t,n){const i=r(1,n,e),o=r(1,n,t),a=i*i+o*o;return Math.sqrt(a)}t.getQuadraticArcLength=(e,t,n)=>{void 0===n&&(n=1);const r=e[0]-2*e[1]+e[2],i=t[0]-2*t[1]+t[2],o=2*e[1]-2*e[0],a=2*t[1]-2*t[0],s=4*(r*r+i*i),l=4*(r*o+i*a),u=o*o+a*a;if(0===s)return n*Math.sqrt(Math.pow(e[2]-e[0],2)+Math.pow(t[2]-t[0],2));const c=l/(2*s),d=n+c,f=u/s-c*c,h=d*d+f>0?Math.sqrt(d*d+f):0,p=c*c+f>0?Math.sqrt(c*c+f):0,g=c+Math.sqrt(c*c+f)!==0?f*Math.log(Math.abs((d+h)/(c+p))):0;return Math.sqrt(s)/2*(d*h-c*p+g)};const r=(e,n,i)=>{const o=i.length-1;let a,s;if(0===o)return 0;if(0===e){s=0;for(let e=0;e<=o;e++)s+=t.binomialCoefficients[o][e]*Math.pow(1-n,o-e)*Math.pow(n,e)*i[e];return s}a=new Array(o);for(let t=0;t<o;t++)a[t]=o*(i[t+1]-i[t]);return r(e-1,n,a)};t.t2length=(e,t,n)=>{let r=1,i=e/t,o=(e-n(i))/t,a=0;for(;r>.001;){const s=n(i+o),l=Math.abs(e-s)/t;if(l<r)r=l,i+=o;else{const a=n(i-o),s=Math.abs(e-a)/t;s<r?(r=s,i-=o):o/=2}if(a++,a>500)break}return i}},6786:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HitCanvas=t.SceneCanvas=t.Canvas=void 0;const r=n(210),i=n(5595),o=n(2225),a=n(630),s=n(8049);var l;class u{constructor(e){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var t=(e||{}).pixelRatio||o.Konva.pixelRatio||function(){if(l)return l;var e=r.Util.createCanvasElement(),t=e.getContext("2d");return l=(o.Konva._global.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),r.Util.releaseCanvas(e),l}();this.pixelRatio=t,this._canvas=r.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(e){var t=this.pixelRatio;this.pixelRatio=e,this.setSize(this.getWidth()/t,this.getHeight()/t)}setWidth(e){this.width=this._canvas.width=e*this.pixelRatio,this._canvas.style.width=e+"px";var t=this.pixelRatio;this.getContext()._context.scale(t,t)}setHeight(e){this.height=this._canvas.height=e*this.pixelRatio,this._canvas.style.height=e+"px";var t=this.pixelRatio;this.getContext()._context.scale(t,t)}getWidth(){return this.width}getHeight(){return this.height}setSize(e,t){this.setWidth(e||0),this.setHeight(t||0)}toDataURL(e,t){try{return this._canvas.toDataURL(e,t)}catch(n){try{return this._canvas.toDataURL()}catch(i){return r.Util.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}t.Canvas=u,a.Factory.addGetterSetter(u,"pixelRatio",void 0,(0,s.getNumberValidator)());t.SceneCanvas=class extends u{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{width:0,height:0,willReadFrequently:!1};super(e),this.context=new i.SceneContext(this,{willReadFrequently:e.willReadFrequently}),this.setSize(e.width,e.height)}};t.HitCanvas=class extends u{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{width:0,height:0};super(e),this.hitCanvas=!0,this.context=new i.HitContext(this),this.setSize(e.width,e.height)}}},3503:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;const r=n(630),i=n(5862),o=n(8049);class a extends i.Node{constructor(){super(...arguments),this.children=[]}getChildren(e){if(!e)return this.children||[];const t=this.children||[];var n=[];return t.forEach((function(t){e(t)&&n.push(t)})),n}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach((e=>{e.parent=null,e.index=0,e.remove()})),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach((e=>{e.parent=null,e.index=0,e.destroy()})),this.children=[],this._requestDraw(),this}add(){if(0===arguments.length)return this;if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(e<0||arguments.length<=e?void 0:arguments[e]);return this}const t=arguments.length<=0?void 0:arguments[0];return t.getParent()?(t.moveTo(this),this):(this._validateAdd(t),t.index=this.getChildren().length,t.parent=this,t._clearCaches(),this.getChildren().push(t),this._fire("add",{child:t}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(e){return this._generalFind(e,!1)}findOne(e){var t=this._generalFind(e,!0);return t.length>0?t[0]:void 0}_generalFind(e,t){var n=[];return this._descendants((r=>{const i=r._isMatch(e);return i&&n.push(r),!(!i||!t)})),n}_descendants(e){let t=!1;const n=this.getChildren();for(const r of n){if(t=e(r),t)return!0;if(r.hasChildren()&&(t=r._descendants(e),t))return!0}return!1}toObject(){var e=i.Node.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach((t=>{e.children.push(t.toObject())})),e}isAncestorOf(e){for(var t=e.getParent();t;){if(t._id===this._id)return!0;t=t.getParent()}return!1}clone(e){var t=i.Node.prototype.clone.call(this,e);return this.getChildren().forEach((function(e){t.add(e.clone())})),t}getAllIntersections(e){var t=[];return this.find("Shape").forEach((n=>{n.isVisible()&&n.intersects(e)&&t.push(n)})),t}_clearSelfAndDescendantCache(e){var t;super._clearSelfAndDescendantCache(e),this.isCached()||null===(t=this.children)||void 0===t||t.forEach((function(t){t._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;null===(e=this.children)||void 0===e||e.forEach((function(e,t){e.index=t})),this._requestDraw()}drawScene(e,t,n){var r=this.getLayer(),i=e||r&&r.getCanvas(),o=i&&i.getContext(),a=this._getCanvasCache(),s=a&&a.scene,l=i&&i.isCache;if(!this.isVisible()&&!l)return this;if(s){o.save();var u=this.getAbsoluteTransform(t).getMatrix();o.transform(u[0],u[1],u[2],u[3],u[4],u[5]),this._drawCachedSceneCanvas(o),o.restore()}else this._drawChildren("drawScene",i,t,n);return this}drawHit(e,t){if(!this.shouldDrawHit(t))return this;var n=this.getLayer(),r=e||n&&n.hitCanvas,i=r&&r.getContext(),o=this._getCanvasCache();if(o&&o.hit){i.save();var a=this.getAbsoluteTransform(t).getMatrix();i.transform(a[0],a[1],a[2],a[3],a[4],a[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",r,t);return this}_drawChildren(e,t,n,r){var i,o=t&&t.getContext(),a=this.clipWidth(),s=this.clipHeight(),l=this.clipFunc(),u="number"===typeof a&&"number"===typeof s||l;const c=n===this;if(u){o.save();var d=this.getAbsoluteTransform(n),f=d.getMatrix();let e;if(o.transform(f[0],f[1],f[2],f[3],f[4],f[5]),o.beginPath(),l)e=l.call(this,o,this);else{var h=this.clipX(),p=this.clipY();o.rect(h||0,p||0,a,s)}o.clip.apply(o,e),f=d.copy().invert().getMatrix(),o.transform(f[0],f[1],f[2],f[3],f[4],f[5])}var g=!c&&"source-over"!==this.globalCompositeOperation()&&"drawScene"===e;g&&(o.save(),o._applyGlobalCompositeOperation(this)),null===(i=this.children)||void 0===i||i.forEach((function(i){i[e](t,n,r)})),g&&o.restore(),u&&o.restore()}getClientRect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t,n,r,i,o,a=e.skipTransform,s=e.relativeTo,l={x:1/0,y:1/0,width:0,height:0},u=this;null===(t=this.children)||void 0===t||t.forEach((function(t){if(t.visible()){var a=t.getClientRect({relativeTo:u,skipShadow:e.skipShadow,skipStroke:e.skipStroke});0===a.width&&0===a.height||(void 0===n?(n=a.x,r=a.y,i=a.x+a.width,o=a.y+a.height):(n=Math.min(n,a.x),r=Math.min(r,a.y),i=Math.max(i,a.x+a.width),o=Math.max(o,a.y+a.height)))}}));for(var c=this.find("Shape"),d=!1,f=0;f<c.length;f++){if(c[f]._isVisible(this)){d=!0;break}}return l=d&&void 0!==n?{x:n,y:r,width:i-n,height:o-r}:{x:0,y:0,width:0,height:0},a?l:this._transformedRect(l,s)}}t.Container=a,r.Factory.addComponentsGetterSetter(a,"clip",["x","y","width","height"]),r.Factory.addGetterSetter(a,"clipX",void 0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(a,"clipY",void 0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(a,"clipWidth",void 0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(a,"clipHeight",void 0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(a,"clipFunc")},5595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HitContext=t.SceneContext=t.Context=void 0;const r=n(210),i=n(2225);var o=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"];class a{constructor(e){this.canvas=e,i.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(e){e.fillEnabled()&&this._fill(e)}_fill(e){}strokeShape(e){e.hasStroke()&&this._stroke(e)}_stroke(e){}fillStrokeShape(e){e.attrs.fillAfterStrokeEnabled?(this.strokeShape(e),this.fillShape(e)):(this.fillShape(e),this.strokeShape(e))}getTrace(e,t){var n,i,o,a,s=this.traceArr,l=s.length,u="";for(n=0;n<l;n++)(o=(i=s[n]).method)?(a=i.args,u+=o,e?u+="()":r.Util._isArray(a[0])?u+="(["+a.join(",")+"])":(t&&(a=a.map((e=>"number"===typeof e?Math.floor(e):e))),u+="("+a.join(",")+")")):(u+=i.property,e||(u+="="+i.val)),u+=";";return u}clearTrace(){this.traceArr=[]}_trace(e){var t=this.traceArr;t.push(e),t.length>=100&&t.shift()}reset(){var e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){var t=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,t.getWidth()/t.pixelRatio,t.getHeight()/t.pixelRatio)}_applyLineCap(e){const t=e.attrs.lineCap;t&&this.setAttr("lineCap",t)}_applyOpacity(e){var t=e.getAbsoluteOpacity();1!==t&&this.setAttr("globalAlpha",t)}_applyLineJoin(e){const t=e.attrs.lineJoin;t&&this.setAttr("lineJoin",t)}setAttr(e,t){this._context[e]=t}arc(e,t,n,r,i,o){this._context.arc(e,t,n,r,i,o)}arcTo(e,t,n,r,i){this._context.arcTo(e,t,n,r,i)}beginPath(){this._context.beginPath()}bezierCurveTo(e,t,n,r,i,o){this._context.bezierCurveTo(e,t,n,r,i,o)}clearRect(e,t,n,r){this._context.clearRect(e,t,n,r)}clip(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(e,t){var n=arguments;return 2===n.length?this._context.createImageData(e,t):1===n.length?this._context.createImageData(e):void 0}createLinearGradient(e,t,n,r){return this._context.createLinearGradient(e,t,n,r)}createPattern(e,t){return this._context.createPattern(e,t)}createRadialGradient(e,t,n,r,i,o){return this._context.createRadialGradient(e,t,n,r,i,o)}drawImage(e,t,n,r,i,o,a,s,l){var u=arguments,c=this._context;3===u.length?c.drawImage(e,t,n):5===u.length?c.drawImage(e,t,n,r,i):9===u.length&&c.drawImage(e,t,n,r,i,o,a,s,l)}ellipse(e,t,n,r,i,o,a,s){this._context.ellipse(e,t,n,r,i,o,a,s)}isPointInPath(e,t,n,r){return n?this._context.isPointInPath(n,e,t,r):this._context.isPointInPath(e,t,r)}fill(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._context.fill.apply(this._context,t)}fillRect(e,t,n,r){this._context.fillRect(e,t,n,r)}strokeRect(e,t,n,r){this._context.strokeRect(e,t,n,r)}fillText(e,t,n,r){r?this._context.fillText(e,t,n,r):this._context.fillText(e,t,n)}measureText(e){return this._context.measureText(e)}getImageData(e,t,n,r){return this._context.getImageData(e,t,n,r)}lineTo(e,t){this._context.lineTo(e,t)}moveTo(e,t){this._context.moveTo(e,t)}rect(e,t,n,r){this._context.rect(e,t,n,r)}roundRect(e,t,n,r,i){this._context.roundRect(e,t,n,r,i)}putImageData(e,t,n){this._context.putImageData(e,t,n)}quadraticCurveTo(e,t,n,r){this._context.quadraticCurveTo(e,t,n,r)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,t){this._context.scale(e,t)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,t,n,r,i,o){this._context.setTransform(e,t,n,r,i,o)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,t,n,r){this._context.strokeText(e,t,n,r)}transform(e,t,n,r,i,o){this._context.transform(e,t,n,r,i,o)}translate(e,t){this._context.translate(e,t)}_enableTrace(){var e,t,n=this,i=o.length,a=this.setAttr,s=function(e){var i,o=n[e];n[e]=function(){return t=function(e){var t,n,i=[],o=e.length,a=r.Util;for(t=0;t<o;t++)n=e[t],a._isNumber(n)?n=Math.round(1e3*n)/1e3:a._isString(n)||(n+=""),i.push(n);return i}(Array.prototype.slice.call(arguments,0)),i=o.apply(n,arguments),n._trace({method:e,args:t}),i}};for(e=0;e<i;e++)s(o[e]);n.setAttr=function(){a.apply(n,arguments);var e=arguments[0],t=arguments[1];"shadowOffsetX"!==e&&"shadowOffsetY"!==e&&"shadowBlur"!==e||(t/=this.canvas.getPixelRatio()),n._trace({property:e,val:t})}}_applyGlobalCompositeOperation(e){const t=e.attrs.globalCompositeOperation;!t||"source-over"===t||this.setAttr("globalCompositeOperation",t)}}t.Context=a,["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"].forEach((function(e){Object.defineProperty(a.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})}));t.SceneContext=class extends a{constructor(e){let{willReadFrequently:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:t})}_fillColor(e){var t=e.fill();this.setAttr("fillStyle",t),e._fillFunc(this)}_fillPattern(e){this.setAttr("fillStyle",e._getFillPattern()),e._fillFunc(this)}_fillLinearGradient(e){var t=e._getLinearGradient();t&&(this.setAttr("fillStyle",t),e._fillFunc(this))}_fillRadialGradient(e){const t=e._getRadialGradient();t&&(this.setAttr("fillStyle",t),e._fillFunc(this))}_fill(e){const t=e.fill(),n=e.getFillPriority();if(t&&"color"===n)return void this._fillColor(e);const r=e.getFillPatternImage();if(r&&"pattern"===n)return void this._fillPattern(e);const i=e.getFillLinearGradientColorStops();if(i&&"linear-gradient"===n)return void this._fillLinearGradient(e);const o=e.getFillRadialGradientColorStops();o&&"radial-gradient"===n?this._fillRadialGradient(e):t?this._fillColor(e):r?this._fillPattern(e):i?this._fillLinearGradient(e):o&&this._fillRadialGradient(e)}_strokeLinearGradient(e){const t=e.getStrokeLinearGradientStartPoint(),n=e.getStrokeLinearGradientEndPoint(),r=e.getStrokeLinearGradientColorStops(),i=this.createLinearGradient(t.x,t.y,n.x,n.y);if(r){for(var o=0;o<r.length;o+=2)i.addColorStop(r[o],r[o+1]);this.setAttr("strokeStyle",i)}}_stroke(e){var t=e.dash(),n=e.getStrokeScaleEnabled();if(e.hasStroke()){if(!n){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(e),t&&e.dashEnabled()&&(this.setLineDash(t),this.setAttr("lineDashOffset",e.dashOffset())),this.setAttr("lineWidth",e.strokeWidth()),e.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),e.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(e):this.setAttr("strokeStyle",e.stroke()),e._strokeFunc(this),n||this.restore()}}_applyShadow(e){var t,n,r,i=null!==(t=e.getShadowRGBA())&&void 0!==t?t:"black",o=null!==(n=e.getShadowBlur())&&void 0!==n?n:5,a=null!==(r=e.getShadowOffset())&&void 0!==r?r:{x:0,y:0},s=e.getAbsoluteScale(),l=this.canvas.getPixelRatio(),u=s.x*l,c=s.y*l;this.setAttr("shadowColor",i),this.setAttr("shadowBlur",o*Math.min(Math.abs(u),Math.abs(c))),this.setAttr("shadowOffsetX",a.x*u),this.setAttr("shadowOffsetY",a.y*c)}};t.HitContext=class extends a{constructor(e){super(e),this._context=e._canvas.getContext("2d",{willReadFrequently:!0})}_fill(e){this.save(),this.setAttr("fillStyle",e.colorKey),e._fillFuncHit(this),this.restore()}strokeShape(e){e.hasHitStroke()&&this._stroke(e)}_stroke(e){if(e.hasHitStroke()){const i=e.getStrokeScaleEnabled();if(!i){this.save();var t=this.getCanvas().getPixelRatio();this.setTransform(t,0,0,t,0,0)}this._applyLineCap(e);var n=e.hitStrokeWidth(),r="auto"===n?e.strokeWidth():n;this.setAttr("lineWidth",r),this.setAttr("strokeStyle",e.colorKey),e._strokeFuncHit(this),i||this.restore()}}}},3230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;var r=n(4334);Object.defineProperty(t,"Konva",{enumerable:!0,get:function(){return r.Konva}});const i=n(4334);e.exports=i.Konva},7098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DD=void 0;const r=n(2225),i=n(210);t.DD={get isDragging(){var e=!1;return t.DD._dragElements.forEach((t=>{"dragging"===t.dragStatus&&(e=!0)})),e},justDragged:!1,get node(){var e;return t.DD._dragElements.forEach((t=>{e=t.node})),e},_dragElements:new Map,_drag(e){const n=[];t.DD._dragElements.forEach(((t,r)=>{const{node:o}=t,a=o.getStage();a.setPointersPositions(e),void 0===t.pointerId&&(t.pointerId=i.Util._getFirstPointerId(e));const s=a._changedPointerPositions.find((e=>e.id===t.pointerId));if(s){if("dragging"!==t.dragStatus){var l=o.dragDistance();if(Math.max(Math.abs(s.x-t.startPointerPos.x),Math.abs(s.y-t.startPointerPos.y))<l)return;if(o.startDrag({evt:e}),!o.isDragging())return}o._setDragPosition(e,t),n.push(o)}})),n.forEach((t=>{t.fire("dragmove",{type:"dragmove",target:t,evt:e},!0)}))},_endDragBefore(e){const n=[];t.DD._dragElements.forEach((i=>{const{node:o}=i,a=o.getStage();e&&a.setPointersPositions(e);if(!a._changedPointerPositions.find((e=>e.id===i.pointerId)))return;"dragging"!==i.dragStatus&&"stopped"!==i.dragStatus||(t.DD.justDragged=!0,r.Konva._mouseListenClick=!1,r.Konva._touchListenClick=!1,r.Konva._pointerListenClick=!1,i.dragStatus="stopped");const s=i.node.getLayer()||i.node instanceof r.Konva.Stage&&i.node;s&&-1===n.indexOf(s)&&n.push(s)})),n.forEach((e=>{e.draw()}))},_endDragAfter(e){t.DD._dragElements.forEach(((n,r)=>{"stopped"===n.dragStatus&&n.node.fire("dragend",{type:"dragend",target:n.node,evt:e},!0),"dragging"!==n.dragStatus&&t.DD._dragElements.delete(r)}))}},r.Konva.isBrowser&&(window.addEventListener("mouseup",t.DD._endDragBefore,!0),window.addEventListener("touchend",t.DD._endDragBefore,!0),window.addEventListener("mousemove",t.DD._drag),window.addEventListener("touchmove",t.DD._drag),window.addEventListener("mouseup",t.DD._endDragAfter,!1),window.addEventListener("touchend",t.DD._endDragAfter,!1))},630:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Factory=void 0;const r=n(210),i=n(8049);var o="get",a="set";t.Factory={addGetterSetter(e,n,r,i,o){t.Factory.addGetter(e,n,r),t.Factory.addSetter(e,n,i,o),t.Factory.addOverloadedGetterSetter(e,n)},addGetter(e,t,n){var i=o+r.Util._capitalize(t);e.prototype[i]=e.prototype[i]||function(){var e=this.attrs[t];return void 0===e?n:e}},addSetter(e,n,i,o){var s=a+r.Util._capitalize(n);e.prototype[s]||t.Factory.overWriteSetter(e,n,i,o)},overWriteSetter(e,t,n,i){var o=a+r.Util._capitalize(t);e.prototype[o]=function(e){return n&&void 0!==e&&null!==e&&(e=n.call(this,e,t)),this._setAttr(t,e),i&&i.call(this),this}},addComponentsGetterSetter(e,n,s,l,u){var c,d,f=s.length,h=r.Util._capitalize,p=o+h(n),g=a+h(n);e.prototype[p]=function(){var e={};for(c=0;c<f;c++)e[d=s[c]]=this.getAttr(n+h(d));return e};var m=(0,i.getComponentValidator)(s);e.prototype[g]=function(e){var t,r=this.attrs[n];for(t in l&&(e=l.call(this,e)),m&&m.call(this,e,n),e)e.hasOwnProperty(t)&&this._setAttr(n+h(t),e[t]);return e||s.forEach((e=>{this._setAttr(n+h(e),void 0)})),this._fireChangeEvent(n,r,e),u&&u.call(this),this},t.Factory.addOverloadedGetterSetter(e,n)},addOverloadedGetterSetter(e,t){var n=r.Util._capitalize(t),i=a+n,s=o+n;e.prototype[t]=function(){return arguments.length?(this[i](arguments[0]),this):this[s]()}},addDeprecatedGetterSetter(e,n,i,a){r.Util.error("Adding deprecated "+n);var s=o+r.Util._capitalize(n),l=n+" property is deprecated and will be removed soon. Look at Konva change log for more information.";e.prototype[s]=function(){r.Util.error(l);var e=this.attrs[n];return void 0===e?i:e},t.Factory.addSetter(e,n,a,(function(){r.Util.error(l)})),t.Factory.addOverloadedGetterSetter(e,n)},backCompat(e,t){r.Util.each(t,(function(t,n){var i=e.prototype[n],s=o+r.Util._capitalize(t),l=a+r.Util._capitalize(t);function u(){i.apply(this,arguments),r.Util.error('"'+t+'" method is deprecated and will be removed soon. Use ""'+n+'" instead.')}e.prototype[t]=u,e.prototype[s]=u,e.prototype[l]=u}))},afterSetFilter(){this._filterUpToDate=!1}}},1775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FastLayer=void 0;const r=n(210),i=n(689),o=n(2225);class a extends i.Layer{constructor(e){super(e),this.listening(!1),r.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}t.FastLayer=a,a.prototype.nodeType="FastLayer",(0,o._registerNode)(a)},2225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._registerNode=t.Konva=t.glob=void 0;const r=Math.PI/180;t.glob="undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof WorkerGlobalScope?self:{},t.Konva={_global:t.glob,version:"9.3.9",isBrowser:"undefined"!==typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window)),isUnminified:/param/.test(function(e){}.toString()),dblClickWindow:400,getAngle:e=>t.Konva.angleDeg?e*r:e,enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:"undefined"!==typeof window&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging:()=>t.Konva.DD.isDragging,isTransforming(){var e;return null===(e=t.Konva.Transformer)||void 0===e?void 0:e.isTransforming()},isDragReady:()=>!!t.Konva.DD.node,releaseCanvasOnDestroy:!0,document:t.glob.document,_injectGlobal(e){t.glob.Konva=e}};t._registerNode=e=>{t.Konva[e.prototype.getClassName()]=e},t.Konva._injectGlobal(t.Konva)},9739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;const r=n(210),i=n(3503),o=n(2225);class a extends i.Container{_validateAdd(e){var t=e.getType();"Group"!==t&&"Shape"!==t&&r.Util.throw("You may only add groups and shapes to groups.")}}t.Group=a,a.prototype.nodeType="Group",(0,o._registerNode)(a)},689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Layer=void 0;const r=n(210),i=n(3503),o=n(5862),a=n(630),s=n(6786),l=n(8049),u=n(7337),c=n(2225);var d=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],f=d.length;class h extends i.Container{constructor(e){super(e),this.canvas=new s.SceneCanvas,this.hitCanvas=new s.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),e<t.children.length-1?t.content.insertBefore(this.getNativeCanvasElement(),t.children[e+1].getCanvas()._canvas):t.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){o.Node.prototype.moveToTop.call(this);var e=this.getStage();return e&&e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!o.Node.prototype.moveUp.call(this))return!1;var e=this.getStage();return!(!e||!e.content)&&(e.content.removeChild(this.getNativeCanvasElement()),this.index<e.children.length-1?e.content.insertBefore(this.getNativeCanvasElement(),e.children[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(o.Node.prototype.moveDown.call(this)){var e=this.getStage();if(e){var t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(o.Node.prototype.moveToBottom.call(this)){var e=this.getStage();if(e){var t=e.children;e.content&&(e.content.removeChild(this.getNativeCanvasElement()),e.content.insertBefore(this.getNativeCanvasElement(),t[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var e=this.getNativeCanvasElement();return o.Node.prototype.remove.call(this),e&&e.parentNode&&r.Util._isInDocument(e)&&e.parentNode.removeChild(e),this}getStage(){return this.parent}setSize(e){let{width:t,height:n}=e;return this.canvas.setSize(t,n),this.hitCanvas.setSize(t,n),this._setSmoothEnabled(),this}_validateAdd(e){var t=e.getType();"Group"!==t&&"Shape"!==t&&r.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(e){return(e=e||{}).width=e.width||this.getWidth(),e.height=e.height||this.getHeight(),e.x=void 0!==e.x?e.x:this.x(),e.y=void 0!==e.y?e.y:this.y(),o.Node.prototype._toKonvaCanvas.call(this,e)}_checkVisibility(){const e=this.visible();this.canvas._canvas.style.display=e?"block":"none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){r.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){r.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,r.Util.requestAnimFrame((()=>{this.draw(),this._waitingForDraw=!1}))),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;for(var t=1,n=!1;;){for(let r=0;r<f;r++){const i=d[r],o=this._getIntersection({x:e.x+i.x*t,y:e.y+i.y*t}),a=o.shape;if(a)return a;if(n=!!o.antialiased,!o.antialiased)break}if(!n)return null;t+=1}}_getIntersection(e){const t=this.hitCanvas.pixelRatio,n=this.hitCanvas.context.getImageData(Math.round(e.x*t),Math.round(e.y*t),1,1).data,i=n[3];if(255===i){const e=r.Util._rgbToHex(n[0],n[1],n[2]),t=u.shapes["#"+e];return t?{shape:t}:{antialiased:!0}}return i>0?{antialiased:!0}:{}}drawScene(e,t){var n=this.getLayer(),r=e||n&&n.getCanvas();return this._fire("beforeDraw",{node:this}),this.clearBeforeDraw()&&r.getContext().clear(),i.Container.prototype.drawScene.call(this,r,t),this._fire("draw",{node:this}),this}drawHit(e,t){var n=this.getLayer(),r=e||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),i.Container.prototype.drawHit.call(this,r,t),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){r.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(e)}getHitGraphEnabled(e){return r.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(this.parent&&this.parent.content){var e=this.parent;!!this.hitCanvas._canvas.parentNode?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}}destroy(){return r.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}t.Layer=h,h.prototype.nodeType="Layer",(0,c._registerNode)(h),a.Factory.addGetterSetter(h,"imageSmoothingEnabled",!0),a.Factory.addGetterSetter(h,"clearBeforeDraw",!0),a.Factory.addGetterSetter(h,"hitGraphEnabled",!0,(0,l.getBooleanValidator)())},5862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Node=void 0;const r=n(210),i=n(630),o=n(6786),a=n(2225),s=n(7098),l=n(8049);var u="absoluteOpacity",c="allEventListeners",d="absoluteTransform",f="absoluteScale",h="canvas",p="listening",g="mouseenter",m="mouseleave",v="Shape",y=" ",b="stage",x="transform",w="visible",C=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(y);let S=1;class k{constructor(e){this._id=S++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(e),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(e){e!==x&&e!==d||!this._cache.get(e)?e?this._cache.delete(e):this._cache.clear():this._cache.get(e).dirty=!0}_getCache(e,t){var n=this._cache.get(e);return(void 0===n||(e===x||e===d)&&!0===n.dirty)&&(n=t.call(this),this._cache.set(e,n)),n}_calculate(e,t,n){if(!this._attachedDepsListeners.get(e)){const n=t.map((e=>e+"Change.konva")).join(y);this.on(n,(()=>{this._clearCache(e)})),this._attachedDepsListeners.set(e,!0)}return this._getCache(e,n)}_getCanvasCache(){return this._cache.get(h)}_clearSelfAndDescendantCache(e){this._clearCache(e),e===d&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(h)){const{scene:e,filter:t,hit:n}=this._cache.get(h);r.Util.releaseCanvas(e,t,n),this._cache.delete(h)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(e){var t=e||{},n={};void 0!==t.x&&void 0!==t.y&&void 0!==t.width&&void 0!==t.height||(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var i=Math.ceil(t.width||n.width),a=Math.ceil(t.height||n.height),s=t.pixelRatio,l=void 0===t.x?Math.floor(n.x):t.x,c=void 0===t.y?Math.floor(n.y):t.y,d=t.offset||0,p=t.drawBorder||!1,g=t.hitCanvasPixelRatio||1;if(!i||!a)return void r.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");i+=2*d+(Math.abs(Math.round(n.x)-l)>.5?1:0),a+=2*d+(Math.abs(Math.round(n.y)-c)>.5?1:0),l-=d,c-=d;var m=new o.SceneCanvas({pixelRatio:s,width:i,height:a}),v=new o.SceneCanvas({pixelRatio:s,width:0,height:0,willReadFrequently:!0}),y=new o.HitCanvas({pixelRatio:g,width:i,height:a}),b=m.getContext(),x=y.getContext();return y.isCache=!0,m.isCache=!0,this._cache.delete(h),this._filterUpToDate=!1,!1===t.imageSmoothingEnabled&&(m.getContext()._context.imageSmoothingEnabled=!1,v.getContext()._context.imageSmoothingEnabled=!1),b.save(),x.save(),b.translate(-l,-c),x.translate(-l,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(u),this._clearSelfAndDescendantCache(f),this.drawScene(m,this),this.drawHit(y,this),this._isUnderCache=!1,b.restore(),x.restore(),p&&(b.save(),b.beginPath(),b.rect(0,0,i,a),b.closePath(),b.setAttr("strokeStyle","red"),b.setAttr("lineWidth",5),b.stroke(),b.restore()),this._cache.set(h,{scene:m,filter:v,hit:y,x:l,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(h)}getClientRect(e){throw new Error('abstract "getClientRect" method call')}_transformedRect(e,t){var n=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],r=1/0,i=1/0,o=-1/0,a=-1/0,s=this.getAbsoluteTransform(t);return n.forEach((function(e){var t=s.point(e);void 0===r&&(r=o=t.x,i=a=t.y),r=Math.min(r,t.x),i=Math.min(i,t.y),o=Math.max(o,t.x),a=Math.max(a,t.y)})),{x:r,y:i,width:o-r,height:a-i}}_drawCachedSceneCanvas(e){e.save(),e._applyOpacity(this),e._applyGlobalCompositeOperation(this);const t=this._getCanvasCache();e.translate(t.x,t.y);var n=this._getCachedSceneCanvas(),r=n.pixelRatio;e.drawImage(n._canvas,0,0,n.width/r,n.height/r),e.restore()}_drawCachedHitCanvas(e){var t=this._getCanvasCache(),n=t.hit;e.save(),e.translate(t.x,t.y),e.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),e.restore()}_getCachedSceneCanvas(){var e,t,n,i,o=this.filters(),a=this._getCanvasCache(),s=a.scene,l=a.filter,u=l.getContext();if(o){if(!this._filterUpToDate){var c=s.pixelRatio;l.setSize(s.width/s.pixelRatio,s.height/s.pixelRatio);try{for(e=o.length,u.clear(),u.drawImage(s._canvas,0,0,s.getWidth()/c,s.getHeight()/c),t=u.getImageData(0,0,l.getWidth(),l.getHeight()),n=0;n<e;n++)"function"===typeof(i=o[n])?(i.call(this,t),u.putImageData(t,0,0)):r.Util.error("Filter should be type of function, but got "+typeof i+" instead. Please check correct filters")}catch(d){r.Util.error("Unable to apply filter. "+d.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return l}return s}on(e,t){if(this._cache&&this._cache.delete(c),3===arguments.length)return this._delegate.apply(this,arguments);var n,r,i,o,a=e.split(y),s=a.length;for(n=0;n<s;n++)i=(r=a[n].split("."))[0],o=r[1]||"",this.eventListeners[i]||(this.eventListeners[i]=[]),this.eventListeners[i].push({name:o,handler:t});return this}off(e,t){var n,r,i,o,a,s=(e||"").split(y),l=s.length;if(this._cache&&this._cache.delete(c),!e)for(r in this.eventListeners)this._off(r);for(n=0;n<l;n++)if(o=(i=s[n].split("."))[0],a=i[1],o)this.eventListeners[o]&&this._off(o,a,t);else for(r in this.eventListeners)this._off(r,a,t);return this}dispatchEvent(e){var t={target:this,type:e.type,evt:e};return this.fire(e.type,t),this}addEventListener(e,t){return this.on(e,(function(e){t.call(this,e.evt)})),this}removeEventListener(e){return this.off(e),this}_delegate(e,t,n){var i=this;this.on(e,(function(e){for(var o=e.target.findAncestors(t,!0,i),a=0;a<o.length;a++)(e=r.Util.cloneObject(e)).currentTarget=o[a],n.call(o[a],e)}))}remove(){return this.isDragging()&&this.stopDrag(),s.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(d),this._clearSelfAndDescendantCache(u),this._clearSelfAndDescendantCache(f),this._clearSelfAndDescendantCache(b),this._clearSelfAndDescendantCache(w),this._clearSelfAndDescendantCache(p)}_remove(){this._clearCaches();var e=this.getParent();e&&e.children&&(e.children.splice(this.index,1),e._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(e){var t="get"+r.Util._capitalize(e);return r.Util._isFunction(this[t])?this[t]():this.attrs[e]}getAncestors(){for(var e=this.getParent(),t=[];e;)t.push(e),e=e.getParent();return t}getAttrs(){return this.attrs||{}}setAttrs(e){return this._batchTransformChanges((()=>{var t,n;if(!e)return this;for(t in e)"children"!==t&&(n="set"+r.Util._capitalize(t),r.Util._isFunction(this[n])?this[n](e[t]):this._setAttr(t,e[t]))})),this}isListening(){return this._getCache(p,this._isListening)}_isListening(e){if(!this.listening())return!1;const t=this.getParent();return!t||t===e||this===e||t._isListening(e)}isVisible(){return this._getCache(w,this._isVisible)}_isVisible(e){if(!this.visible())return!1;const t=this.getParent();return!t||t===e||this===e||t._isVisible(e)}shouldDrawHit(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isVisible(e)&&this._isListening(e);var n=this.getLayer(),r=!1;s.DD._dragElements.forEach((e=>{"dragging"===e.dragStatus&&("Stage"===e.node.nodeType||e.node.getLayer()===n)&&(r=!0)}));var i=!t&&!a.Konva.hitOnDragEnabled&&(r||a.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var e,t,n,r,i=this.getDepth(),o=this,a=0;const s=this.getStage();return"Stage"!==o.nodeType&&s&&function s(l){for(e=[],t=l.length,n=0;n<t;n++)r=l[n],a++,r.nodeType!==v&&(e=e.concat(r.getChildren().slice())),r._id===o._id&&(n=t);e.length>0&&e[0].getDepth()<=i&&s(e)}(s.getChildren()),a}getDepth(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e}_batchTransformChanges(e){this._batchingTransformChange=!0,e(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(x),this._clearSelfAndDescendantCache(d)),this._needClearTransformCache=!1}setPosition(e){return this._batchTransformChanges((()=>{this.x(e.x),this.y(e.y)})),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const e=this.getStage();if(!e)return null;var t=e.getPointerPosition();if(!t)return null;var n=this.getAbsoluteTransform().copy();return n.invert(),n.point(t)}getAbsolutePosition(e){let t=!1,n=this.parent;for(;n;){if(n.isCached()){t=!0;break}n=n.parent}t&&!e&&(e=!0);var i=this.getAbsoluteTransform(e).getMatrix(),o=new r.Transform,a=this.offset();return o.m=i.slice(),o.translate(a.x,a.y),o.getTranslation()}setAbsolutePosition(e){const{x:t,y:n,...r}=this._clearTransform();this.attrs.x=t,this.attrs.y=n,this._clearCache(x);var i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(e.x,e.y),e={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(r),this.setPosition({x:e.x,y:e.y}),this._clearCache(x),this._clearSelfAndDescendantCache(d),this}_setTransform(e){var t;for(t in e)this.attrs[t]=e[t]}_clearTransform(){var e={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,e}move(e){var t=e.x,n=e.y,r=this.x(),i=this.y();return void 0!==t&&(r+=t),void 0!==n&&(i+=n),this.setPosition({x:r,y:i}),this}_eachAncestorReverse(e,t){var n,r,i=[],o=this.getParent();if(!t||t._id!==this._id){for(i.unshift(this);o&&(!t||o._id!==t._id);)i.unshift(o),o=o.parent;for(n=i.length,r=0;r<n;r++)e(i[r])}}rotate(e){return this.rotation(this.rotation()+e),this}moveToTop(){if(!this.parent)return r.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var e=this.index;return e<this.parent.getChildren().length-1&&(this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0)}moveUp(){if(!this.parent)return r.Util.warn("Node has no parent. moveUp function is ignored."),!1;var e=this.index;return e<this.parent.getChildren().length-1&&(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0)}moveDown(){if(!this.parent)return r.Util.warn("Node has no parent. moveDown function is ignored."),!1;var e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0)}moveToBottom(){if(!this.parent)return r.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)}setZIndex(e){if(!this.parent)return r.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(e<0||e>=this.parent.children.length)&&r.Util.warn("Unexpected value "+e+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var t=this.index;return this.parent.children.splice(t,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(u,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var e=this.opacity(),t=this.getParent();return t&&!t._isUnderCache&&(e*=t.getAbsoluteOpacity()),e}moveTo(e){return this.getParent()!==e&&(this._remove(),e.add(this)),this}toObject(){var e,t,n,i,o=this.getAttrs();const a={attrs:{},className:this.getClassName()};for(e in o)t=o[e],r.Util.isObject(t)&&!r.Util._isPlainObject(t)&&!r.Util._isArray(t)||(n="function"===typeof this[e]&&this[e],delete o[e],i=n?n.call(this):null,o[e]=t,i!==t&&(a.attrs[e]=t));return r.Util._prepareToStringify(a)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(e,t,n){var r=[];t&&this._isMatch(e)&&r.push(this);for(var i=this.parent;i;){if(i===n)return r;i._isMatch(e)&&r.push(i),i=i.parent}return r}isAncestorOf(e){return!1}findAncestor(e,t,n){return this.findAncestors(e,t,n)[0]}_isMatch(e){if(!e)return!1;if("function"===typeof e)return e(this);var t,n,i=e.replace(/ /g,"").split(","),o=i.length;for(t=0;t<o;t++)if(n=i[t],r.Util.isValidSelector(n)||(r.Util.warn('Selector "'+n+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),r.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),r.Util.warn("Konva is awesome, right?")),"#"===n.charAt(0)){if(this.id()===n.slice(1))return!0}else if("."===n.charAt(0)){if(this.hasName(n.slice(1)))return!0}else if(this.className===n||this.nodeType===n)return!0;return!1}getLayer(){var e=this.getParent();return e?e.getLayer():null}getStage(){return this._getCache(b,this._getStage)}_getStage(){var e=this.getParent();return e?e.getStage():null}fire(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return t.target=t.target||this,n?this._fireAndBubble(e,t):this._fire(e,t),this}getAbsoluteTransform(e){return e?this._getAbsoluteTransform(e):this._getCache(d,this._getAbsoluteTransform)}_getAbsoluteTransform(e){var t;if(e)return t=new r.Transform,this._eachAncestorReverse((function(e){var n=e.transformsEnabled();"all"===n?t.multiply(e.getTransform()):"position"===n&&t.translate(e.x()-e.offsetX(),e.y()-e.offsetY())}),e),t;t=this._cache.get(d)||new r.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(t):t.reset();var n=this.transformsEnabled();if("all"===n)t.multiply(this.getTransform());else if("position"===n){const e=this.attrs.x||0,n=this.attrs.y||0,r=this.attrs.offsetX||0,i=this.attrs.offsetY||0;t.translate(e-r,n-i)}return t.dirty=!1,t}getAbsoluteScale(e){for(var t=this;t;)t._isUnderCache&&(e=t),t=t.getParent();const n=this.getAbsoluteTransform(e).decompose();return{x:n.scaleX,y:n.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(x,this._getTransform)}_getTransform(){var e,t,n=this._cache.get(x)||new r.Transform;n.reset();var i=this.x(),o=this.y(),s=a.Konva.getAngle(this.rotation()),l=null!==(e=this.attrs.scaleX)&&void 0!==e?e:1,u=null!==(t=this.attrs.scaleY)&&void 0!==t?t:1,c=this.attrs.skewX||0,d=this.attrs.skewY||0,f=this.attrs.offsetX||0,h=this.attrs.offsetY||0;return 0===i&&0===o||n.translate(i,o),0!==s&&n.rotate(s),0===c&&0===d||n.skew(c,d),1===l&&1===u||n.scale(l,u),0===f&&0===h||n.translate(-1*f,-1*h),n.dirty=!1,n}clone(e){var t,n,i,o,a,s=r.Util.cloneObject(this.attrs);for(t in e)s[t]=e[t];var l=new this.constructor(s);for(t in this.eventListeners)for(i=(n=this.eventListeners[t]).length,o=0;o<i;o++)(a=n[o]).name.indexOf("konva")<0&&(l.eventListeners[t]||(l.eventListeners[t]=[]),l.eventListeners[t].push(a));return l}_toKonvaCanvas(e){e=e||{};var t=this.getClientRect(),n=this.getStage(),r=void 0!==e.x?e.x:Math.floor(t.x),i=void 0!==e.y?e.y:Math.floor(t.y),a=e.pixelRatio||1,s=new o.SceneCanvas({width:e.width||Math.ceil(t.width)||(n?n.width():0),height:e.height||Math.ceil(t.height)||(n?n.height():0),pixelRatio:a}),l=s.getContext();const u=new o.SceneCanvas({width:s.width/s.pixelRatio+Math.abs(r),height:s.height/s.pixelRatio+Math.abs(i),pixelRatio:s.pixelRatio});return!1===e.imageSmoothingEnabled&&(l._context.imageSmoothingEnabled=!1),l.save(),(r||i)&&l.translate(-1*r,-1*i),this.drawScene(s,void 0,u),l.restore(),s}toCanvas(e){return this._toKonvaCanvas(e)._canvas}toDataURL(e){var t=(e=e||{}).mimeType||null,n=e.quality||null,r=this._toKonvaCanvas(e).toDataURL(t,n);return e.callback&&e.callback(r),r}toImage(e){return new Promise(((t,n)=>{try{const n=null===e||void 0===e?void 0:e.callback;n&&delete e.callback,r.Util._urlToImage(this.toDataURL(e),(function(e){t(e),null===n||void 0===n||n(e)}))}catch(i){n(i)}}))}toBlob(e){return new Promise(((t,n)=>{try{const n=null===e||void 0===e?void 0:e.callback;n&&delete e.callback,this.toCanvas(e).toBlob((e=>{t(e),null===n||void 0===n||n(e)}),null===e||void 0===e?void 0:e.mimeType,null===e||void 0===e?void 0:e.quality)}catch(r){n(r)}}))}setSize(e){return this.width(e.width),this.height(e.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():a.Konva.dragDistance}_off(e,t,n){var r,i,o,a=this.eventListeners[e];for(r=0;r<a.length;r++)if(i=a[r].name,o=a[r].handler,("konva"!==i||"konva"===t)&&(!t||i===t)&&(!n||n===o)){if(a.splice(r,1),0===a.length){delete this.eventListeners[e];break}r--}}_fireChangeEvent(e,t,n){this._fire(e+"Change",{oldVal:t,newVal:n})}addName(e){if(!this.hasName(e)){var t=this.name(),n=t?t+" "+e:e;this.name(n)}return this}hasName(e){if(!e)return!1;const t=this.name();return!!t&&-1!==(t||"").split(/\s/g).indexOf(e)}removeName(e){var t=(this.name()||"").split(/\s/g),n=t.indexOf(e);return-1!==n&&(t.splice(n,1),this.name(t.join(" "))),this}setAttr(e,t){var n=this["set"+r.Util._capitalize(e)];return r.Util._isFunction(n)?n.call(this,t):this._setAttr(e,t),this}_requestDraw(){if(a.Konva.autoDrawEnabled){const e=this.getLayer()||this.getStage();null===e||void 0===e||e.batchDraw()}}_setAttr(e,t){var n=this.attrs[e];(n!==t||r.Util.isObject(t))&&(void 0===t||null===t?delete this.attrs[e]:this.attrs[e]=t,this._shouldFireChangeEvents&&this._fireChangeEvent(e,n,t),this._requestDraw())}_setComponentAttr(e,t,n){var r;void 0!==n&&((r=this.attrs[e])||(this.attrs[e]=this.getAttr(e)),this.attrs[e][t]=n,this._fireChangeEvent(e,r,n))}_fireAndBubble(e,t,n){if(t&&this.nodeType===v&&(t.target=this),!((e===g||e===m)&&(n&&(this===n||this.isAncestorOf&&this.isAncestorOf(n))||"Stage"===this.nodeType&&!n))){this._fire(e,t);var r=(e===g||e===m)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(t&&!t.cancelBubble||!t)&&this.parent&&this.parent.isListening()&&!r&&(n&&n.parent?this._fireAndBubble.call(this.parent,e,t,n):this._fireAndBubble.call(this.parent,e,t))}}_getProtoListeners(e){var t,n,r;const i=null!==(t=this._cache.get(c))&&void 0!==t?t:{};let o=null===i||void 0===i?void 0:i[e];if(void 0===o){o=[];let t=Object.getPrototypeOf(this);for(;t;){const i=null!==(r=null===(n=t.eventListeners)||void 0===n?void 0:n[e])&&void 0!==r?r:[];o.push(...i),t=Object.getPrototypeOf(t)}i[e]=o,this._cache.set(c,i)}return o}_fire(e,t){(t=t||{}).currentTarget=this,t.type=e;const n=this._getProtoListeners(e);if(n)for(var r=0;r<n.length;r++)n[r].handler.call(this,t);const i=this.eventListeners[e];if(i)for(r=0;r<i.length;r++)i[r].handler.call(this,t)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(e){var t=e?e.pointerId:void 0,n=this.getStage(),r=this.getAbsolutePosition();if(n){var i=n._getPointerById(t)||n._changedPointerPositions[0]||r;s.DD._dragElements.set(this._id,{node:this,startPointerPos:i,offset:{x:i.x-r.x,y:i.y-r.y},dragStatus:"ready",pointerId:t})}}startDrag(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];s.DD._dragElements.has(this._id)||this._createDragElement(e);s.DD._dragElements.get(this._id).dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:e&&e.evt},t)}_setDragPosition(e,t){const n=this.getStage()._getPointerById(t.pointerId);if(n){var i={x:n.x-t.offset.x,y:n.y-t.offset.y},o=this.dragBoundFunc();if(void 0!==o){const t=o.call(this,i,e);t?i=t:r.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}this._lastPos&&this._lastPos.x===i.x&&this._lastPos.y===i.y||(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}}stopDrag(e){const t=s.DD._dragElements.get(this._id);t&&(t.dragStatus="stopped"),s.DD._endDragBefore(e),s.DD._endDragAfter(e)}setDraggable(e){this._setAttr("draggable",e),this._dragChange()}isDragging(){const e=s.DD._dragElements.get(this._id);return!!e&&"dragging"===e.dragStatus}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",(function(e){if((!(void 0!==e.evt.button)||a.Konva.dragButtons.indexOf(e.evt.button)>=0)&&!this.isDragging()){var t=!1;s.DD._dragElements.forEach((e=>{this.isAncestorOf(e.node)&&(t=!0)})),t||this._createDragElement(e)}}))}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const e=s.DD._dragElements.get(this._id),t=e&&"dragging"===e.dragStatus,n=e&&"ready"===e.dragStatus;t?this.stopDrag():n&&s.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0};const t=this.getStage();if(!t)return!1;const n={x:-e.x,y:-e.y,width:t.width()+2*e.x,height:t.height()+2*e.y};return r.Util.haveIntersection(n,this.getClientRect())}static create(e,t){return r.Util._isString(e)&&(e=JSON.parse(e)),this._createNode(e,t)}static _createNode(e,t){var n,i,o,s=k.prototype.getClassName.call(e),l=e.children;t&&(e.attrs.container=t),a.Konva[s]||(r.Util.warn('Can not find a node with class name "'+s+'". Fallback to "Shape".'),s="Shape");if(n=new(0,a.Konva[s])(e.attrs),l)for(i=l.length,o=0;o<i;o++)n.add(k._createNode(l[o]));return n}}t.Node=k,k.prototype.nodeType="Node",k.prototype._attrsAffectingSize=[],k.prototype.eventListeners={},k.prototype.on.call(k.prototype,C,(function(){this._batchingTransformChange?this._needClearTransformCache=!0:(this._clearCache(x),this._clearSelfAndDescendantCache(d))})),k.prototype.on.call(k.prototype,"visibleChange.konva",(function(){this._clearSelfAndDescendantCache(w)})),k.prototype.on.call(k.prototype,"listeningChange.konva",(function(){this._clearSelfAndDescendantCache(p)})),k.prototype.on.call(k.prototype,"opacityChange.konva",(function(){this._clearSelfAndDescendantCache(u)}));const _=i.Factory.addGetterSetter;_(k,"zIndex"),_(k,"absolutePosition"),_(k,"position"),_(k,"x",0,(0,l.getNumberValidator)()),_(k,"y",0,(0,l.getNumberValidator)()),_(k,"globalCompositeOperation","source-over",(0,l.getStringValidator)()),_(k,"opacity",1,(0,l.getNumberValidator)()),_(k,"name","",(0,l.getStringValidator)()),_(k,"id","",(0,l.getStringValidator)()),_(k,"rotation",0,(0,l.getNumberValidator)()),i.Factory.addComponentsGetterSetter(k,"scale",["x","y"]),_(k,"scaleX",1,(0,l.getNumberValidator)()),_(k,"scaleY",1,(0,l.getNumberValidator)()),i.Factory.addComponentsGetterSetter(k,"skew",["x","y"]),_(k,"skewX",0,(0,l.getNumberValidator)()),_(k,"skewY",0,(0,l.getNumberValidator)()),i.Factory.addComponentsGetterSetter(k,"offset",["x","y"]),_(k,"offsetX",0,(0,l.getNumberValidator)()),_(k,"offsetY",0,(0,l.getNumberValidator)()),_(k,"dragDistance",null,(0,l.getNumberValidator)()),_(k,"width",0,(0,l.getNumberValidator)()),_(k,"height",0,(0,l.getNumberValidator)()),_(k,"listening",!0,(0,l.getBooleanValidator)()),_(k,"preventDefault",!0,(0,l.getBooleanValidator)()),_(k,"filters",null,(function(e){return this._filterUpToDate=!1,e})),_(k,"visible",!0,(0,l.getBooleanValidator)()),_(k,"transformsEnabled","all",(0,l.getStringValidator)()),_(k,"size"),_(k,"dragBoundFunc"),_(k,"draggable",!1,(0,l.getBooleanValidator)()),i.Factory.backCompat(k,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"})},6244:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.releaseCapture=t.setPointerCapture=t.hasPointerCapture=t.createEvent=t.getCapturedShape=void 0;const r=n(2225),i=new Map,o=void 0!==r.Konva._global.PointerEvent;function a(e){return{evt:e,pointerId:e.pointerId}}function s(e,t){const n=i.get(e);if(!n)return;const r=n.getStage();r&&r.content,i.delete(e),o&&n._fire("lostpointercapture",a(new PointerEvent("lostpointercapture")))}t.getCapturedShape=function(e){return i.get(e)},t.createEvent=a,t.hasPointerCapture=function(e,t){return i.get(e)===t},t.setPointerCapture=function(e,t){s(e),t.getStage()&&(i.set(e,t),o&&t._fire("gotpointercapture",a(new PointerEvent("gotpointercapture"))))},t.releaseCapture=s},7337:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=t.shapes=void 0;const r=n(2225),i=n(210),o=n(630),a=n(5862),s=n(8049),l=n(2225),u=n(6244);var c="hasShadow",d="shadowRGBA",f="patternImage",h="linearGradient",p="radialGradient";let g;function m(){return g||(g=i.Util.createCanvasElement().getContext("2d"),g)}t.shapes={};class v extends a.Node{constructor(e){let n;for(super(e);n=i.Util.getRandomColor(),!n||n in t.shapes;);this.colorKey=n,t.shapes[n]=this}getContext(){return i.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return i.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(c,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(f,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const e=m().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(e&&e.setTransform){const t=new i.Transform;t.translate(this.fillPatternX(),this.fillPatternY()),t.rotate(r.Konva.getAngle(this.fillPatternRotation())),t.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),t.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const n=t.getMatrix(),o="undefined"===typeof DOMMatrix?{a:n[0],b:n[1],c:n[2],d:n[3],e:n[4],f:n[5]}:new DOMMatrix(n);e.setTransform(o)}return e}}_getLinearGradient(){return this._getCache(h,this.__getLinearGradient)}__getLinearGradient(){var e=this.fillLinearGradientColorStops();if(e){for(var t=m(),n=this.fillLinearGradientStartPoint(),r=this.fillLinearGradientEndPoint(),i=t.createLinearGradient(n.x,n.y,r.x,r.y),o=0;o<e.length;o+=2)i.addColorStop(e[o],e[o+1]);return i}}_getRadialGradient(){return this._getCache(p,this.__getRadialGradient)}__getRadialGradient(){var e=this.fillRadialGradientColorStops();if(e){for(var t=m(),n=this.fillRadialGradientStartPoint(),r=this.fillRadialGradientEndPoint(),i=t.createRadialGradient(n.x,n.y,this.fillRadialGradientStartRadius(),r.x,r.y,this.fillRadialGradientEndRadius()),o=0;o<e.length;o+=2)i.addColorStop(e[o],e[o+1]);return i}}getShadowRGBA(){return this._getCache(d,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var e=i.Util.colorToRGBA(this.shadowColor());return e?"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.shadowOpacity()||1)+")":void 0}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],(()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops())))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],(()=>this.strokeEnabled()&&this.strokeWidth()&&!(!this.stroke()&&!this.strokeLinearGradientColorStops())))}hasHitStroke(){const e=this.hitStrokeWidth();return"auto"===e?this.hasStroke():this.strokeEnabled()&&!!e}intersects(e){var t=this.getStage();if(!t)return!1;const n=t.bufferHitCanvas;n.getContext().clear(),this.drawHit(n,void 0,!0);return n.context.getImageData(Math.round(e.x),Math.round(e.y),1,1).data[3]>0}destroy(){return a.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(e){var t;if(!(null===(t=this.attrs.perfectDrawEnabled)||void 0===t||t))return!1;const n=e||this.hasFill(),r=this.hasStroke(),i=1!==this.getAbsoluteOpacity();if(n&&r&&i)return!0;const o=this.hasShadow(),a=this.shadowForStrokeEnabled();return!!(n&&r&&o&&a)}setStrokeHitEnabled(e){i.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),e?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return 0!==this.hitStrokeWidth()}getSelfRect(){var e=this.size();return{x:this._centroid?-e.width/2:0,y:this._centroid?-e.height/2:0,width:e.width,height:e.height}}getClientRect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.skipTransform,n=e.relativeTo,r=this.getSelfRect(),i=!e.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,o=r.width+i,a=r.height+i,s=!e.skipShadow&&this.hasShadow(),l=s?this.shadowOffsetX():0,u=s?this.shadowOffsetY():0,c=o+Math.abs(l),d=a+Math.abs(u),f=s&&this.shadowBlur()||0,h={width:c+2*f,height:d+2*f,x:-(i/2+f)+Math.min(l,0)+r.x,y:-(i/2+f)+Math.min(u,0)+r.y};return t?h:this._transformedRect(h,n)}drawScene(e,t,n){var r,i,o=this.getLayer(),a=e||o.getCanvas(),s=a.getContext(),l=this._getCanvasCache(),u=this.getSceneFunc(),c=this.hasShadow(),d=a.isCache,f=t===this;if(!this.isVisible()&&!f)return this;if(l){s.save();var h=this.getAbsoluteTransform(t).getMatrix();return s.transform(h[0],h[1],h[2],h[3],h[4],h[5]),this._drawCachedSceneCanvas(s),s.restore(),this}if(!u)return this;if(s.save(),this._useBufferCanvas()&&!d){r=this.getStage();const e=n||r.bufferCanvas;(i=e.getContext()).clear(),i.save(),i._applyLineJoin(this);var p=this.getAbsoluteTransform(t).getMatrix();i.transform(p[0],p[1],p[2],p[3],p[4],p[5]),u.call(this,i,this),i.restore();var g=e.pixelRatio;c&&s._applyShadow(this),s._applyOpacity(this),s._applyGlobalCompositeOperation(this),s.drawImage(e._canvas,0,0,e.width/g,e.height/g)}else{if(s._applyLineJoin(this),!f){p=this.getAbsoluteTransform(t).getMatrix();s.transform(p[0],p[1],p[2],p[3],p[4],p[5]),s._applyOpacity(this),s._applyGlobalCompositeOperation(this)}c&&s._applyShadow(this),u.call(this,s,this)}return s.restore(),this}drawHit(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.shouldDrawHit(t,n))return this;var r=this.getLayer(),o=e||r.hitCanvas,a=o&&o.getContext(),s=this.hitFunc()||this.sceneFunc(),l=this._getCanvasCache(),u=l&&l.hit;if(this.colorKey||i.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),u){a.save();var c=this.getAbsoluteTransform(t).getMatrix();return a.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(a),a.restore(),this}if(!s)return this;a.save(),a._applyLineJoin(this);if(!(this===t)){var d=this.getAbsoluteTransform(t).getMatrix();a.transform(d[0],d[1],d[2],d[3],d[4],d[5])}return s.call(this,a,this),a.restore(),this}drawHitFromCache(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;var t,n,r,o,a,s=this._getCanvasCache(),l=this._getCachedSceneCanvas(),u=s.hit,c=u.getContext(),d=u.getWidth(),f=u.getHeight();c.clear(),c.drawImage(l._canvas,0,0,d,f);try{for(r=(n=(t=c.getImageData(0,0,d,f)).data).length,o=i.Util._hexToRgb(this.colorKey),a=0;a<r;a+=4)n[a+3]>e?(n[a]=o.r,n[a+1]=o.g,n[a+2]=o.b,n[a+3]=255):n[a+3]=0;c.putImageData(t,0,0)}catch(h){i.Util.error("Unable to draw hit graph from cached scene canvas. "+h.message)}return this}hasPointerCapture(e){return u.hasPointerCapture(e,this)}setPointerCapture(e){u.setPointerCapture(e,this)}releaseCapture(e){u.releaseCapture(e,this)}}t.Shape=v,v.prototype._fillFunc=function(e){const t=this.attrs.fillRule;t?e.fill(t):e.fill()},v.prototype._strokeFunc=function(e){e.stroke()},v.prototype._fillFuncHit=function(e){e.fill()},v.prototype._strokeFuncHit=function(e){e.stroke()},v.prototype._centroid=!1,v.prototype.nodeType="Shape",(0,l._registerNode)(v),v.prototype.eventListeners={},v.prototype.on.call(v.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",(function(){this._clearCache(c)})),v.prototype.on.call(v.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",(function(){this._clearCache(d)})),v.prototype.on.call(v.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",(function(){this._clearCache(f)})),v.prototype.on.call(v.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",(function(){this._clearCache(h)})),v.prototype.on.call(v.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",(function(){this._clearCache(p)})),o.Factory.addGetterSetter(v,"stroke",void 0,(0,s.getStringOrGradientValidator)()),o.Factory.addGetterSetter(v,"strokeWidth",2,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(v,"fillAfterStrokeEnabled",!1),o.Factory.addGetterSetter(v,"hitStrokeWidth","auto",(0,s.getNumberOrAutoValidator)()),o.Factory.addGetterSetter(v,"strokeHitEnabled",!0,(0,s.getBooleanValidator)()),o.Factory.addGetterSetter(v,"perfectDrawEnabled",!0,(0,s.getBooleanValidator)()),o.Factory.addGetterSetter(v,"shadowForStrokeEnabled",!0,(0,s.getBooleanValidator)()),o.Factory.addGetterSetter(v,"lineJoin"),o.Factory.addGetterSetter(v,"lineCap"),o.Factory.addGetterSetter(v,"sceneFunc"),o.Factory.addGetterSetter(v,"hitFunc"),o.Factory.addGetterSetter(v,"dash"),o.Factory.addGetterSetter(v,"dashOffset",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(v,"shadowColor",void 0,(0,s.getStringValidator)()),o.Factory.addGetterSetter(v,"shadowBlur",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(v,"shadowOpacity",1,(0,s.getNumberValidator)()),o.Factory.addComponentsGetterSetter(v,"shadowOffset",["x","y"]),o.Factory.addGetterSetter(v,"shadowOffsetX",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(v,"shadowOffsetY",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(v,"fillPatternImage"),o.Factory.addGetterSetter(v,"fill",void 0,(0,s.getStringOrGradientValidator)()),o.Factory.addGetterSetter(v,"fillPatternX",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(v,"fillPatternY",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(v,"fillLinearGradientColorStops"),o.Factory.addGetterSetter(v,"strokeLinearGradientColorStops"),o.Factory.addGetterSetter(v,"fillRadialGradientStartRadius",0),o.Factory.addGetterSetter(v,"fillRadialGradientEndRadius",0),o.Factory.addGetterSetter(v,"fillRadialGradientColorStops"),o.Factory.addGetterSetter(v,"fillPatternRepeat","repeat"),o.Factory.addGetterSetter(v,"fillEnabled",!0),o.Factory.addGetterSetter(v,"strokeEnabled",!0),o.Factory.addGetterSetter(v,"shadowEnabled",!0),o.Factory.addGetterSetter(v,"dashEnabled",!0),o.Factory.addGetterSetter(v,"strokeScaleEnabled",!0),o.Factory.addGetterSetter(v,"fillPriority","color"),o.Factory.addComponentsGetterSetter(v,"fillPatternOffset",["x","y"]),o.Factory.addGetterSetter(v,"fillPatternOffsetX",0,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(v,"fillPatternOffsetY",0,(0,s.getNumberValidator)()),o.Factory.addComponentsGetterSetter(v,"fillPatternScale",["x","y"]),o.Factory.addGetterSetter(v,"fillPatternScaleX",1,(0,s.getNumberValidator)()),o.Factory.addGetterSetter(v,"fillPatternScaleY",1,(0,s.getNumberValidator)()),o.Factory.addComponentsGetterSetter(v,"fillLinearGradientStartPoint",["x","y"]),o.Factory.addComponentsGetterSetter(v,"strokeLinearGradientStartPoint",["x","y"]),o.Factory.addGetterSetter(v,"fillLinearGradientStartPointX",0),o.Factory.addGetterSetter(v,"strokeLinearGradientStartPointX",0),o.Factory.addGetterSetter(v,"fillLinearGradientStartPointY",0),o.Factory.addGetterSetter(v,"strokeLinearGradientStartPointY",0),o.Factory.addComponentsGetterSetter(v,"fillLinearGradientEndPoint",["x","y"]),o.Factory.addComponentsGetterSetter(v,"strokeLinearGradientEndPoint",["x","y"]),o.Factory.addGetterSetter(v,"fillLinearGradientEndPointX",0),o.Factory.addGetterSetter(v,"strokeLinearGradientEndPointX",0),o.Factory.addGetterSetter(v,"fillLinearGradientEndPointY",0),o.Factory.addGetterSetter(v,"strokeLinearGradientEndPointY",0),o.Factory.addComponentsGetterSetter(v,"fillRadialGradientStartPoint",["x","y"]),o.Factory.addGetterSetter(v,"fillRadialGradientStartPointX",0),o.Factory.addGetterSetter(v,"fillRadialGradientStartPointY",0),o.Factory.addComponentsGetterSetter(v,"fillRadialGradientEndPoint",["x","y"]),o.Factory.addGetterSetter(v,"fillRadialGradientEndPointX",0),o.Factory.addGetterSetter(v,"fillRadialGradientEndPointY",0),o.Factory.addGetterSetter(v,"fillPatternRotation",0),o.Factory.addGetterSetter(v,"fillRule",void 0,(0,s.getStringValidator)()),o.Factory.backCompat(v,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})},5878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Stage=t.stages=void 0;const r=n(210),i=n(630),o=n(3503),a=n(2225),s=n(6786),l=n(7098),u=n(2225),c=n(6244);var d="mouseleave",f="mouseover",h="mouseenter",p="mousemove",g="mousedown",m="mouseup",v="pointermove",y="pointerdown",b="pointerup",x="pointercancel",w="pointerout",C="pointerleave",S="pointerover",k="pointerenter",_="contextmenu",E="touchstart",P="touchend",j="touchmove",O="touchcancel",R="wheel",A=[[h,"_pointerenter"],[g,"_pointerdown"],[p,"_pointermove"],[m,"_pointerup"],[d,"_pointerleave"],[E,"_pointerdown"],[j,"_pointermove"],[P,"_pointerup"],[O,"_pointercancel"],[f,"_pointerover"],[R,"_wheel"],[_,"_contextmenu"],[y,"_pointerdown"],[v,"_pointermove"],[b,"_pointerup"],[x,"_pointercancel"],["lostpointercapture","_lostpointercapture"]];const T={mouse:{[w]:"mouseout",[C]:d,[S]:f,[k]:h,[v]:p,[y]:g,[b]:m,[x]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[w]:"touchout",[C]:"touchleave",[S]:"touchover",[k]:"touchenter",[v]:j,[y]:E,[b]:P,[x]:O,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[w]:w,[C]:C,[S]:S,[k]:k,[v]:v,[y]:y,[b]:b,[x]:x,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},N=e=>e.indexOf("pointer")>=0?"pointer":e.indexOf("touch")>=0?"touch":"mouse",F=e=>{const t=N(e);return"pointer"===t?a.Konva.pointerEventsEnabled&&T.pointer:"touch"===t?T.touch:"mouse"===t?T.mouse:void 0};function M(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e.clipFunc||e.clipWidth||e.clipHeight)&&r.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),e}t.stages=[];class L extends o.Container{constructor(e){super(M(e)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),t.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",(()=>{M(this.attrs)})),this._checkVisibility()}_validateAdd(e){const t="Layer"===e.getType(),n="FastLayer"===e.getType();t||n||r.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const e=this.visible()?"":"none";this.content.style.display=e}setContainer(e){if("string"===typeof e){if("."===e.charAt(0)){var t=e.slice(1);e=document.getElementsByClassName(t)[0]}else{var n;n="#"!==e.charAt(0)?e:e.slice(1),e=document.getElementById(n)}if(!e)throw"Can not find container in document with id "+n}return this._setAttr("container",e),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),e.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var e,t=this.children,n=t.length;for(e=0;e<n;e++)t[e].clear();return this}clone(e){return e||(e={}),e.container="undefined"!==typeof document&&document.createElement("div"),o.Container.prototype.clone.call(this,e)}destroy(){super.destroy();var e=this.content;e&&r.Util._isInDocument(e)&&this.container().removeChild(e);var n=t.stages.indexOf(this);return n>-1&&t.stages.splice(n,1),r.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const e=this._pointerPositions[0]||this._changedPointerPositions[0];return e?{x:e.x,y:e.y}:(r.Util.warn("Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);"),null)}_getPointerById(e){return this._pointerPositions.find((t=>t.id===e))}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(e){(e=e||{}).x=e.x||0,e.y=e.y||0,e.width=e.width||this.width(),e.height=e.height||this.height();var t=new s.SceneCanvas({width:e.width,height:e.height,pixelRatio:e.pixelRatio||1}),n=t.getContext()._context,r=this.children;return(e.x||e.y)&&n.translate(-1*e.x,-1*e.y),r.forEach((function(t){if(t.isVisible()){var r=t._toKonvaCanvas(e);n.drawImage(r._canvas,e.x,e.y,r.getWidth()/r.getPixelRatio(),r.getHeight()/r.getPixelRatio())}})),t}getIntersection(e){if(!e)return null;var t,n=this.children;for(t=n.length-1;t>=0;t--){const r=n[t].getIntersection(e);if(r)return r}return null}_resizeDOM(){var e=this.width(),t=this.height();this.content&&(this.content.style.width=e+"px",this.content.style.height=t+"px"),this.bufferCanvas.setSize(e,t),this.bufferHitCanvas.setSize(e,t),this.children.forEach((n=>{n.setSize({width:e,height:t}),n.draw()}))}add(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(arguments.length>1){for(var o=0;o<arguments.length;o++)this.add(arguments[o]);return this}super.add(e);var s=this.children.length;return s>5&&r.Util.warn("The stage has "+s+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),e.setSize({width:this.width(),height:this.height()}),e.draw(),a.Konva.isBrowser&&this.content.appendChild(e.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(e){return c.hasPointerCapture(e,this)}setPointerCapture(e){c.setPointerCapture(e,this)}releaseCapture(e){c.releaseCapture(e,this)}getLayers(){return this.children}_bindContentEvents(){a.Konva.isBrowser&&A.forEach((e=>{let[t,n]=e;this.content.addEventListener(t,(e=>{this[n](e)}),{passive:!1})}))}_pointerenter(e){this.setPointersPositions(e);const t=F(e.type);t&&this._fire(t.pointerenter,{evt:e,target:this,currentTarget:this})}_pointerover(e){this.setPointersPositions(e);const t=F(e.type);t&&this._fire(t.pointerover,{evt:e,target:this,currentTarget:this})}_getTargetShape(e){let t=this[e+"targetShape"];return t&&!t.getStage()&&(t=null),t}_pointerleave(e){const t=F(e.type),n=N(e.type);if(t){this.setPointersPositions(e);var r=this._getTargetShape(n),i=!(a.Konva.isDragging()||a.Konva.isTransforming())||a.Konva.hitOnDragEnabled;r&&i?(r._fireAndBubble(t.pointerout,{evt:e}),r._fireAndBubble(t.pointerleave,{evt:e}),this._fire(t.pointerleave,{evt:e,target:this,currentTarget:this}),this[n+"targetShape"]=null):i&&(this._fire(t.pointerleave,{evt:e,target:this,currentTarget:this}),this._fire(t.pointerout,{evt:e,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(e){const t=F(e.type),n=N(e.type);if(t){this.setPointersPositions(e);var r=!1;this._changedPointerPositions.forEach((i=>{var o=this.getIntersection(i);if(l.DD.justDragged=!1,a.Konva["_"+n+"ListenClick"]=!0,!o||!o.isListening())return void(this[n+"ClickStartShape"]=void 0);a.Konva.capturePointerEventsEnabled&&o.setPointerCapture(i.id),this[n+"ClickStartShape"]=o,o._fireAndBubble(t.pointerdown,{evt:e,pointerId:i.id}),r=!0;const s=e.type.indexOf("touch")>=0;o.preventDefault()&&e.cancelable&&s&&e.preventDefault()})),r||this._fire(t.pointerdown,{evt:e,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(e){const t=F(e.type),n=N(e.type);if(!t)return;if(a.Konva.isDragging()&&l.DD.node.preventDefault()&&e.cancelable&&e.preventDefault(),this.setPointersPositions(e),!(!(a.Konva.isDragging()||a.Konva.isTransforming())||a.Konva.hitOnDragEnabled))return;var r={};let i=!1;var o=this._getTargetShape(n);this._changedPointerPositions.forEach((a=>{const s=c.getCapturedShape(a.id)||this.getIntersection(a),l=a.id,u={evt:e,pointerId:l};var d=o!==s;if(d&&o&&(o._fireAndBubble(t.pointerout,{...u},s),o._fireAndBubble(t.pointerleave,{...u},s)),s){if(r[s._id])return;r[s._id]=!0}s&&s.isListening()?(i=!0,d&&(s._fireAndBubble(t.pointerover,{...u},o),s._fireAndBubble(t.pointerenter,{...u},o),this[n+"targetShape"]=s),s._fireAndBubble(t.pointermove,{...u})):o&&(this._fire(t.pointerover,{evt:e,target:this,currentTarget:this,pointerId:l}),this[n+"targetShape"]=null)})),i||this._fire(t.pointermove,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(e){const t=F(e.type),n=N(e.type);if(!t)return;this.setPointersPositions(e);const r=this[n+"ClickStartShape"],i=this[n+"ClickEndShape"];var o={};let s=!1;this._changedPointerPositions.forEach((u=>{const d=c.getCapturedShape(u.id)||this.getIntersection(u);if(d){if(d.releaseCapture(u.id),o[d._id])return;o[d._id]=!0}const f=u.id,h={evt:e,pointerId:f};let p=!1;a.Konva["_"+n+"InDblClickWindow"]?(p=!0,clearTimeout(this[n+"DblTimeout"])):l.DD.justDragged||(a.Konva["_"+n+"InDblClickWindow"]=!0,clearTimeout(this[n+"DblTimeout"])),this[n+"DblTimeout"]=setTimeout((function(){a.Konva["_"+n+"InDblClickWindow"]=!1}),a.Konva.dblClickWindow),d&&d.isListening()?(s=!0,this[n+"ClickEndShape"]=d,d._fireAndBubble(t.pointerup,{...h}),a.Konva["_"+n+"ListenClick"]&&r&&r===d&&(d._fireAndBubble(t.pointerclick,{...h}),p&&i&&i===d&&d._fireAndBubble(t.pointerdblclick,{...h}))):(this[n+"ClickEndShape"]=null,a.Konva["_"+n+"ListenClick"]&&this._fire(t.pointerclick,{evt:e,target:this,currentTarget:this,pointerId:f}),p&&this._fire(t.pointerdblclick,{evt:e,target:this,currentTarget:this,pointerId:f}))})),s||this._fire(t.pointerup,{evt:e,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),a.Konva["_"+n+"ListenClick"]=!1,e.cancelable&&"touch"!==n&&e.preventDefault()}_contextmenu(e){this.setPointersPositions(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble(_,{evt:e}):this._fire(_,{evt:e,target:this,currentTarget:this})}_wheel(e){this.setPointersPositions(e);var t=this.getIntersection(this.getPointerPosition());t&&t.isListening()?t._fireAndBubble(R,{evt:e}):this._fire(R,{evt:e,target:this,currentTarget:this})}_pointercancel(e){this.setPointersPositions(e);const t=c.getCapturedShape(e.pointerId)||this.getIntersection(this.getPointerPosition());t&&t._fireAndBubble(b,c.createEvent(e)),c.releaseCapture(e.pointerId)}_lostpointercapture(e){c.releaseCapture(e.pointerId)}setPointersPositions(e){var t=this._getContentPosition(),n=null,i=null;void 0!==(e=e||window.event).touches?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(e.touches,(e=>{this._pointerPositions.push({id:e.identifier,x:(e.clientX-t.left)/t.scaleX,y:(e.clientY-t.top)/t.scaleY})})),Array.prototype.forEach.call(e.changedTouches||e.touches,(e=>{this._changedPointerPositions.push({id:e.identifier,x:(e.clientX-t.left)/t.scaleX,y:(e.clientY-t.top)/t.scaleY})}))):(n=(e.clientX-t.left)/t.scaleX,i=(e.clientY-t.top)/t.scaleY,this.pointerPos={x:n,y:i},this._pointerPositions=[{x:n,y:i,id:r.Util._getFirstPointerId(e)}],this._changedPointerPositions=[{x:n,y:i,id:r.Util._getFirstPointerId(e)}])}_setPointerPosition(e){r.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(e)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var e=this.content.getBoundingClientRect();return{top:e.top,left:e.left,scaleX:e.width/this.content.clientWidth||1,scaleY:e.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new s.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new s.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),a.Konva.isBrowser){var e=this.container();if(!e)throw"Stage has no container. A container is required.";e.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),e.appendChild(this.content),this._resizeDOM()}}cache(){return r.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach((function(e){e.batchDraw()})),this}}t.Stage=L,L.prototype.nodeType="Stage",(0,u._registerNode)(L),i.Factory.addGetterSetter(L,"container")},5403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Easings=t.Tween=void 0;const r=n(210),i=n(4822),o=n(5862),a=n(2225);var s={node:1,duration:1,easing:1,onFinish:1,yoyo:1},l=0,u=["fill","stroke","shadowColor"];class c{constructor(e,t,n,r,i,o,a){this.prop=e,this.propFunc=t,this.begin=r,this._pos=r,this.duration=o,this._change=0,this.prevPos=0,this.yoyo=a,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=i-this.begin,this.pause()}fire(e){var t=this[e];t&&t()}setTime(e){e>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():e<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=e,this.update())}getTime(){return this._time}setPosition(e){this.prevPos=this._pos,this.propFunc(e),this._pos=e}getPosition(e){return void 0===e&&(e=this._time),this.func(e,this.begin,this._change,this.duration)}play(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(e){this.pause(),this._time=e,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var e=this.getTimer()-this._startTime;2===this.state?this.setTime(e):3===this.state&&this.setTime(this.duration-e)}pause(){this.state=1,this.fire("onPause")}getTimer(){return(new Date).getTime()}}class d{constructor(e){var n,o,u=this,f=e.node,h=f._id,p=e.easing||t.Easings.Linear,g=!!e.yoyo;n="undefined"===typeof e.duration?.3:0===e.duration?.001:e.duration,this.node=f,this._id=l++;var m=f.getLayer()||(f instanceof a.Konva.Stage?f.getLayers():null);for(o in m||r.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new i.Animation((function(){u.tween.onEnterFrame()}),m),this.tween=new c(o,(function(e){u._tweenFunc(e)}),p,0,1,1e3*n,g),this._addListeners(),d.attrs[h]||(d.attrs[h]={}),d.attrs[h][this._id]||(d.attrs[h][this._id]={}),d.tweens[h]||(d.tweens[h]={}),e)void 0===s[o]&&this._addAttr(o,e[o]);this.reset(),this.onFinish=e.onFinish,this.onReset=e.onReset,this.onUpdate=e.onUpdate}_addAttr(e,t){var n,i,o,a,s,l,c,f,h=this.node,p=h._id;if((o=d.tweens[p][e])&&delete d.attrs[p][o][e],n=h.getAttr(e),r.Util._isArray(t))if(i=[],s=Math.max(t.length,n.length),"points"===e&&t.length!==n.length&&(t.length>n.length?(c=n,n=r.Util._prepareArrayForTween(n,t,h.closed())):(l=t,t=r.Util._prepareArrayForTween(t,n,h.closed()))),0===e.indexOf("fill"))for(a=0;a<s;a++)if(a%2===0)i.push(t[a]-n[a]);else{var g=r.Util.colorToRGBA(n[a]);f=r.Util.colorToRGBA(t[a]),n[a]=g,i.push({r:f.r-g.r,g:f.g-g.g,b:f.b-g.b,a:f.a-g.a})}else for(a=0;a<s;a++)i.push(t[a]-n[a]);else-1!==u.indexOf(e)?(n=r.Util.colorToRGBA(n),i={r:(f=r.Util.colorToRGBA(t)).r-n.r,g:f.g-n.g,b:f.b-n.b,a:f.a-n.a}):i=t-n;d.attrs[p][this._id][e]={start:n,diff:i,end:t,trueEnd:l,trueStart:c},d.tweens[p][e]=this._id}_tweenFunc(e){var t,n,i,o,a,s,l,c,f=this.node,h=d.attrs[f._id][this._id];for(t in h){if(i=(n=h[t]).start,o=n.diff,c=n.end,r.Util._isArray(i))if(a=[],l=Math.max(i.length,c.length),0===t.indexOf("fill"))for(s=0;s<l;s++)s%2===0?a.push((i[s]||0)+o[s]*e):a.push("rgba("+Math.round(i[s].r+o[s].r*e)+","+Math.round(i[s].g+o[s].g*e)+","+Math.round(i[s].b+o[s].b*e)+","+(i[s].a+o[s].a*e)+")");else for(s=0;s<l;s++)a.push((i[s]||0)+o[s]*e);else a=-1!==u.indexOf(t)?"rgba("+Math.round(i.r+o.r*e)+","+Math.round(i.g+o.g*e)+","+Math.round(i.b+o.b*e)+","+(i.a+o.a*e)+")":i+o*e;f.setAttr(t,a)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var e=this.node,t=d.attrs[e._id][this._id];t.points&&t.points.trueEnd&&e.setAttr("points",t.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var e=this.node,t=d.attrs[e._id][this._id];t.points&&t.points.trueStart&&e.points(t.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(e){return this.tween.seek(1e3*e),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var e,t=this.node._id,n=this._id,r=d.tweens[t];for(e in this.pause(),r)delete d.tweens[t][e];delete d.attrs[t][n]}}t.Tween=d,d.attrs={},d.tweens={},o.Node.prototype.to=function(e){var t=e.onFinish;e.node=this,e.onFinish=function(){this.destroy(),t&&t()},new d(e).play()},t.Easings={BackEaseIn(e,t,n,r){var i=1.70158;return n*(e/=r)*e*((i+1)*e-i)+t},BackEaseOut(e,t,n,r){var i=1.70158;return n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},BackEaseInOut(e,t,n,r){var i=1.70158;return(e/=r/2)<1?n/2*(e*e*((1+(i*=1.525))*e-i))+t:n/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t},ElasticEaseIn(e,t,n,r,i,o){var a=0;return 0===e?t:1===(e/=r)?t+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)+t)},ElasticEaseOut(e,t,n,r,i,o){var a=0;return 0===e?t:1===(e/=r)?t+n:(o||(o=.3*r),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*e)*Math.sin((e*r-a)*(2*Math.PI)/o)+n+t)},ElasticEaseInOut(e,t,n,r,i,o){var a=0;return 0===e?t:2===(e/=r/2)?t+n:(o||(o=r*(.3*1.5)),!i||i<Math.abs(n)?(i=n,a=o/4):a=o/(2*Math.PI)*Math.asin(n/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*-.5+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*.5+n+t)},BounceEaseOut:(e,t,n,r)=>(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t,BounceEaseIn:(e,n,r,i)=>r-t.Easings.BounceEaseOut(i-e,0,r,i)+n,BounceEaseInOut:(e,n,r,i)=>e<i/2?.5*t.Easings.BounceEaseIn(2*e,0,r,i)+n:.5*t.Easings.BounceEaseOut(2*e-i,0,r,i)+.5*r+n,EaseIn:(e,t,n,r)=>n*(e/=r)*e+t,EaseOut:(e,t,n,r)=>-n*(e/=r)*(e-2)+t,EaseInOut:(e,t,n,r)=>(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t,StrongEaseIn:(e,t,n,r)=>n*(e/=r)*e*e*e*e+t,StrongEaseOut:(e,t,n,r)=>n*((e=e/r-1)*e*e*e*e+1)+t,StrongEaseInOut:(e,t,n,r)=>(e/=r/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t,Linear:(e,t,n,r)=>n*e/r+t}},210:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.Transform=void 0;const r=n(2225);class i{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,0,0,1,0,0];this.dirty=!1,this.m=e&&e.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new i(this.m)}copyInto(e){e.m[0]=this.m[0],e.m[1]=this.m[1],e.m[2]=this.m[2],e.m[3]=this.m[3],e.m[4]=this.m[4],e.m[5]=this.m[5]}point(e){var t=this.m;return{x:t[0]*e.x+t[2]*e.y+t[4],y:t[1]*e.x+t[3]*e.y+t[5]}}translate(e,t){return this.m[4]+=this.m[0]*e+this.m[2]*t,this.m[5]+=this.m[1]*e+this.m[3]*t,this}scale(e,t){return this.m[0]*=e,this.m[1]*=e,this.m[2]*=t,this.m[3]*=t,this}rotate(e){var t=Math.cos(e),n=Math.sin(e),r=this.m[0]*t+this.m[2]*n,i=this.m[1]*t+this.m[3]*n,o=this.m[0]*-n+this.m[2]*t,a=this.m[1]*-n+this.m[3]*t;return this.m[0]=r,this.m[1]=i,this.m[2]=o,this.m[3]=a,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(e,t){var n=this.m[0]+this.m[2]*t,r=this.m[1]+this.m[3]*t,i=this.m[2]+this.m[0]*e,o=this.m[3]+this.m[1]*e;return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=o,this}multiply(e){var t=this.m[0]*e.m[0]+this.m[2]*e.m[1],n=this.m[1]*e.m[0]+this.m[3]*e.m[1],r=this.m[0]*e.m[2]+this.m[2]*e.m[3],i=this.m[1]*e.m[2]+this.m[3]*e.m[3],o=this.m[0]*e.m[4]+this.m[2]*e.m[5]+this.m[4],a=this.m[1]*e.m[4]+this.m[3]*e.m[5]+this.m[5];return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this}invert(){var e=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),t=this.m[3]*e,n=-this.m[1]*e,r=-this.m[2]*e,i=this.m[0]*e,o=e*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),a=e*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=t,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=o,this.m[5]=a,this}getMatrix(){return this.m}decompose(){var e=this.m[0],n=this.m[1],r=this.m[2],i=this.m[3],o=e*i-n*r;let a={x:this.m[4],y:this.m[5],rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=e||0!=n){var s=Math.sqrt(e*e+n*n);a.rotation=n>0?Math.acos(e/s):-Math.acos(e/s),a.scaleX=s,a.scaleY=o/s,a.skewX=(e*r+n*i)/o,a.skewY=0}else if(0!=r||0!=i){var l=Math.sqrt(r*r+i*i);a.rotation=Math.PI/2-(i>0?Math.acos(-r/l):-Math.acos(r/l)),a.scaleX=o/l,a.scaleY=l,a.skewX=0,a.skewY=(e*r+n*i)/o}return a.rotation=t.Util._getRotation(a.rotation),a}}t.Transform=i;var o=Math.PI/180,a=180/Math.PI,s="Konva error: ",l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},u=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,c=[];const d="undefined"!==typeof requestAnimationFrame&&requestAnimationFrame||function(e){setTimeout(e,60)};t.Util={_isElement:e=>!(!e||1!=e.nodeType),_isFunction:e=>!!(e&&e.constructor&&e.call&&e.apply),_isPlainObject:e=>!!e&&e.constructor===Object,_isArray:e=>"[object Array]"===Object.prototype.toString.call(e),_isNumber:e=>"[object Number]"===Object.prototype.toString.call(e)&&!isNaN(e)&&isFinite(e),_isString:e=>"[object String]"===Object.prototype.toString.call(e),_isBoolean:e=>"[object Boolean]"===Object.prototype.toString.call(e),isObject:e=>e instanceof Object,isValidSelector(e){if("string"!==typeof e)return!1;var t=e[0];return"#"===t||"."===t||t===t.toUpperCase()},_sign:e=>0===e||e>0?1:-1,requestAnimFrame(e){c.push(e),1===c.length&&d((function(){const e=c;c=[],e.forEach((function(e){e()}))}))},createCanvasElement(){var e=document.createElement("canvas");try{e.style=e.style||{}}catch(t){}return e},createImageElement:()=>document.createElement("img"),_isInDocument(e){for(;e=e.parentNode;)if(e==document)return!0;return!1},_urlToImage(e,n){var r=t.Util.createImageElement();r.onload=function(){n(r)},r.src=e},_rgbToHex:(e,t,n)=>((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1),_hexToRgb(e){e=e.replace("#","");var t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:255&t}},getRandomColor(){for(var e=(16777215*Math.random()|0).toString(16);e.length<6;)e="0"+e;return"#"+e},getRGB(e){var t;return e in l?{r:(t=l[e])[0],g:t[1],b:t[2]}:"#"===e[0]?this._hexToRgb(e.substring(1)):"rgb("===e.substr(0,4)?(t=u.exec(e.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA:e=>(e=e||"black",t.Util._namedColorToRBA(e)||t.Util._hex3ColorToRGBA(e)||t.Util._hex4ColorToRGBA(e)||t.Util._hex6ColorToRGBA(e)||t.Util._hex8ColorToRGBA(e)||t.Util._rgbColorToRGBA(e)||t.Util._rgbaColorToRGBA(e)||t.Util._hslColorToRGBA(e)),_namedColorToRBA(e){var t=l[e.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(e){if(0===e.indexOf("rgb(")){var t=(e=e.match(/rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(e){if(0===e.indexOf("rgba(")){var t=(e=e.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map(((e,t)=>"%"===e.slice(-1)?3===t?parseInt(e)/100:parseInt(e)/100*255:Number(e)));return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex8ColorToRGBA(e){if("#"===e[0]&&9===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:parseInt(e.slice(7,9),16)/255}},_hex6ColorToRGBA(e){if("#"===e[0]&&7===e.length)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex4ColorToRGBA(e){if("#"===e[0]&&5===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:parseInt(e[4]+e[4],16)/255}},_hex3ColorToRGBA(e){if("#"===e[0]&&4===e.length)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_hslColorToRGBA(e){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)){const[t,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e),r=Number(n[0])/360,i=Number(n[1])/100,o=Number(n[2])/100;let a,s,l;if(0===i)return l=255*o,{r:Math.round(l),g:Math.round(l),b:Math.round(l),a:1};a=o<.5?o*(1+i):o+i-o*i;const u=2*o-a,c=[0,0,0];for(let e=0;e<3;e++)s=r+1/3*-(e-1),s<0&&s++,s>1&&s--,l=6*s<1?u+6*(a-u)*s:2*s<1?a:3*s<2?u+(a-u)*(2/3-s)*6:u,c[e]=255*l;return{r:Math.round(c[0]),g:Math.round(c[1]),b:Math.round(c[2]),a:1}}},haveIntersection:(e,t)=>!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y),cloneObject(e){var t={};for(var n in e)this._isPlainObject(e[n])?t[n]=this.cloneObject(e[n]):this._isArray(e[n])?t[n]=this.cloneArray(e[n]):t[n]=e[n];return t},cloneArray:e=>e.slice(0),degToRad:e=>e*o,radToDeg:e=>e*a,_degToRad:e=>(t.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),t.Util.degToRad(e)),_radToDeg:e=>(t.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),t.Util.radToDeg(e)),_getRotation:e=>r.Konva.angleDeg?t.Util.radToDeg(e):e,_capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),throw(e){throw new Error(s+e)},error(e){console.error(s+e)},warn(e){r.Konva.showWarnings&&console.warn("Konva warning: "+e)},each(e,t){for(var n in e)t(n,e[n])},_inRange:(e,t,n)=>t<=e&&e<n,_getProjectionToSegment(e,t,n,r,i,o){var a,s,l,u=(e-n)*(e-n)+(t-r)*(t-r);if(0==u)a=e,s=t,l=(i-n)*(i-n)+(o-r)*(o-r);else{var c=((i-e)*(n-e)+(o-t)*(r-t))/u;c<0?(a=e,s=t,l=(e-i)*(e-i)+(t-o)*(t-o)):c>1?(a=n,s=r,l=(n-i)*(n-i)+(r-o)*(r-o)):l=((a=e+c*(n-e))-i)*(a-i)+((s=t+c*(r-t))-o)*(s-o)}return[a,s,l]},_getProjectionToLine(e,n,r){var i=t.Util.cloneObject(e),o=Number.MAX_VALUE;return n.forEach((function(a,s){if(r||s!==n.length-1){var l=n[(s+1)%n.length],u=t.Util._getProjectionToSegment(a.x,a.y,l.x,l.y,e.x,e.y),c=u[0],d=u[1],f=u[2];f<o&&(i.x=c,i.y=d,o=f)}})),i},_prepareArrayForTween(e,n,r){var i,o=[],a=[];if(e.length>n.length){var s=n;n=e,e=s}for(i=0;i<e.length;i+=2)o.push({x:e[i],y:e[i+1]});for(i=0;i<n.length;i+=2)a.push({x:n[i],y:n[i+1]});var l=[];return a.forEach((function(e){var n=t.Util._getProjectionToLine(e,o,r);l.push(n.x),l.push(n.y)})),l},_prepareToStringify(e){var n;for(var r in e.visitedByCircularReferenceRemoval=!0,e)if(e.hasOwnProperty(r)&&e[r]&&"object"==typeof e[r])if(n=Object.getOwnPropertyDescriptor(e,r),e[r].visitedByCircularReferenceRemoval||t.Util._isElement(e[r])){if(!n.configurable)return null;delete e[r]}else if(null===t.Util._prepareToStringify(e[r])){if(!n.configurable)return null;delete e[r]}return delete e.visitedByCircularReferenceRemoval,e},_assign(e,t){for(var n in t)e[n]=t[n];return e},_getFirstPointerId:e=>e.touches?e.changedTouches[0].identifier:e.pointerId||999,releaseCanvas(){if(r.Konva.releaseCanvasOnDestroy){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((e=>{e.width=0,e.height=0}))}},drawRoundedRectPath(e,t,n,r){let i=0,o=0,a=0,s=0;"number"===typeof r?i=o=a=s=Math.min(r,t/2,n/2):(i=Math.min(r[0]||0,t/2,n/2),o=Math.min(r[1]||0,t/2,n/2),s=Math.min(r[2]||0,t/2,n/2),a=Math.min(r[3]||0,t/2,n/2)),e.moveTo(i,0),e.lineTo(t-o,0),e.arc(t-o,o,o,3*Math.PI/2,0,!1),e.lineTo(t,n-s),e.arc(t-s,n-s,s,0,Math.PI/2,!1),e.lineTo(a,n),e.arc(a,n-a,a,Math.PI/2,Math.PI,!1),e.lineTo(0,i),e.arc(i,i,i,Math.PI,3*Math.PI/2,!1)}}},8049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getComponentValidator=t.getBooleanValidator=t.getNumberArrayValidator=t.getFunctionValidator=t.getStringOrGradientValidator=t.getStringValidator=t.getNumberOrAutoValidator=t.getNumberOrArrayOfNumbersValidator=t.getNumberValidator=t.alphaComponent=t.RGBComponent=void 0;const r=n(2225),i=n(210);function o(e){return i.Util._isString(e)?'"'+e+'"':"[object Number]"===Object.prototype.toString.call(e)||i.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}t.RGBComponent=function(e){return e>255?255:e<0?0:Math.round(e)},t.alphaComponent=function(e){return e>1?1:e<1e-4?1e-4:e},t.getNumberValidator=function(){if(r.Konva.isUnminified)return function(e,t){return i.Util._isNumber(e)||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}},t.getNumberOrArrayOfNumbersValidator=function(e){if(r.Konva.isUnminified)return function(t,n){let r=i.Util._isNumber(t),a=i.Util._isArray(t)&&t.length==e;return r||a||i.Util.warn(o(t)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+e+")"),t}},t.getNumberOrAutoValidator=function(){if(r.Konva.isUnminified)return function(e,t){return i.Util._isNumber(e)||"auto"===e||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}},t.getStringValidator=function(){if(r.Konva.isUnminified)return function(e,t){return i.Util._isString(e)||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}},t.getStringOrGradientValidator=function(){if(r.Konva.isUnminified)return function(e,t){const n=i.Util._isString(e),r="[object CanvasGradient]"===Object.prototype.toString.call(e)||e&&e.addColorStop;return n||r||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}},t.getFunctionValidator=function(){if(r.Konva.isUnminified)return function(e,t){return i.Util._isFunction(e)||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}},t.getNumberArrayValidator=function(){if(r.Konva.isUnminified)return function(e,t){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&e instanceof n||(i.Util._isArray(e)?e.forEach((function(e){i.Util._isNumber(e)||i.Util.warn('"'+t+'" attribute has non numeric element '+e+". Make sure that all elements are numbers.")})):i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}},t.getBooleanValidator=function(){if(r.Konva.isUnminified)return function(e,t){return!0===e||!1===e||i.Util.warn(o(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}},t.getComponentValidator=function(e){if(r.Konva.isUnminified)return function(t,n){return void 0===t||null===t||i.Util.isObject(t)||i.Util.warn(o(t)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+e),t}}},4334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;const r=n(2225),i=n(210),o=n(5862),a=n(3503),s=n(5878),l=n(689),u=n(1775),c=n(9739),d=n(7098),f=n(7337),h=n(4822),p=n(5403),g=n(5595),m=n(6786);t.Konva=i.Util._assign(r.Konva,{Util:i.Util,Transform:i.Transform,Node:o.Node,Container:a.Container,Stage:s.Stage,stages:s.stages,Layer:l.Layer,FastLayer:u.FastLayer,Group:c.Group,DD:d.DD,Shape:f.Shape,shapes:f.shapes,Animation:h.Animation,Tween:p.Tween,Easings:p.Easings,Context:g.Context,Canvas:m.Canvas}),t.default=t.Konva},380:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;const r=n(4334),i=n(2471),o=n(5914),a=n(4891),s=n(1633),l=n(4782),u=n(7561),c=n(6533),d=n(1084),f=n(3321),h=n(7565),p=n(9501),g=n(1922),m=n(8967),v=n(7228),y=n(8847),b=n(7208),x=n(9475),w=n(6787),C=n(5702),S=n(4084),k=n(6245),_=n(6766),E=n(8731),P=n(7643),j=n(1045),O=n(2630),R=n(4323),A=n(9246),T=n(2694),N=n(5490),F=n(5061),M=n(7151),L=n(3088),I=n(8814),D=n(1659),z=n(2128);t.Konva=r.Konva.Util._assign(r.Konva,{Arc:i.Arc,Arrow:o.Arrow,Circle:a.Circle,Ellipse:s.Ellipse,Image:l.Image,Label:u.Label,Tag:u.Tag,Line:c.Line,Path:d.Path,Rect:f.Rect,RegularPolygon:h.RegularPolygon,Ring:p.Ring,Sprite:g.Sprite,Star:m.Star,Text:v.Text,TextPath:y.TextPath,Transformer:b.Transformer,Wedge:x.Wedge,Filters:{Blur:w.Blur,Brighten:C.Brighten,Contrast:S.Contrast,Emboss:k.Emboss,Enhance:_.Enhance,Grayscale:E.Grayscale,HSL:P.HSL,HSV:j.HSV,Invert:O.Invert,Kaleidoscope:R.Kaleidoscope,Mask:A.Mask,Noise:T.Noise,Pixelate:N.Pixelate,Posterize:F.Posterize,RGB:M.RGB,RGBA:L.RGBA,Sepia:I.Sepia,Solarize:D.Solarize,Threshold:z.Threshold}})},6787:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Blur=void 0;const r=n(630),i=n(5862),o=n(8049);function a(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var s=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],l=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];t.Blur=function(e){var t=Math.round(this.blurRadius());t>0&&function(e,t){var n,r,i,o,u,c,d,f,h,p,g,m,v,y,b,x,w,C,S,k,_,E,P,j,O=e.data,R=e.width,A=e.height,T=t+t+1,N=R-1,F=A-1,M=t+1,L=M*(M+1)/2,I=new a,D=null,z=I,B=null,U=null,V=s[t],H=l[t];for(i=1;i<T;i++)z=z.next=new a,i===M&&(D=z);for(z.next=I,d=c=0,r=0;r<A;r++){for(x=w=C=S=f=h=p=g=0,m=M*(k=O[c]),v=M*(_=O[c+1]),y=M*(E=O[c+2]),b=M*(P=O[c+3]),f+=L*k,h+=L*_,p+=L*E,g+=L*P,z=I,i=0;i<M;i++)z.r=k,z.g=_,z.b=E,z.a=P,z=z.next;for(i=1;i<M;i++)o=c+((N<i?N:i)<<2),f+=(z.r=k=O[o])*(j=M-i),h+=(z.g=_=O[o+1])*j,p+=(z.b=E=O[o+2])*j,g+=(z.a=P=O[o+3])*j,x+=k,w+=_,C+=E,S+=P,z=z.next;for(B=I,U=D,n=0;n<R;n++)O[c+3]=P=g*V>>H,0!==P?(P=255/P,O[c]=(f*V>>H)*P,O[c+1]=(h*V>>H)*P,O[c+2]=(p*V>>H)*P):O[c]=O[c+1]=O[c+2]=0,f-=m,h-=v,p-=y,g-=b,m-=B.r,v-=B.g,y-=B.b,b-=B.a,o=d+((o=n+t+1)<N?o:N)<<2,f+=x+=B.r=O[o],h+=w+=B.g=O[o+1],p+=C+=B.b=O[o+2],g+=S+=B.a=O[o+3],B=B.next,m+=k=U.r,v+=_=U.g,y+=E=U.b,b+=P=U.a,x-=k,w-=_,C-=E,S-=P,U=U.next,c+=4;d+=R}for(n=0;n<R;n++){for(w=C=S=x=h=p=g=f=0,m=M*(k=O[c=n<<2]),v=M*(_=O[c+1]),y=M*(E=O[c+2]),b=M*(P=O[c+3]),f+=L*k,h+=L*_,p+=L*E,g+=L*P,z=I,i=0;i<M;i++)z.r=k,z.g=_,z.b=E,z.a=P,z=z.next;for(u=R,i=1;i<=t;i++)c=u+n<<2,f+=(z.r=k=O[c])*(j=M-i),h+=(z.g=_=O[c+1])*j,p+=(z.b=E=O[c+2])*j,g+=(z.a=P=O[c+3])*j,x+=k,w+=_,C+=E,S+=P,z=z.next,i<F&&(u+=R);for(c=n,B=I,U=D,r=0;r<A;r++)O[3+(o=c<<2)]=P=g*V>>H,P>0?(P=255/P,O[o]=(f*V>>H)*P,O[o+1]=(h*V>>H)*P,O[o+2]=(p*V>>H)*P):O[o]=O[o+1]=O[o+2]=0,f-=m,h-=v,p-=y,g-=b,m-=B.r,v-=B.g,y-=B.b,b-=B.a,o=n+((o=r+M)<F?o:F)*R<<2,f+=x+=B.r=O[o],h+=w+=B.g=O[o+1],p+=C+=B.b=O[o+2],g+=S+=B.a=O[o+3],B=B.next,m+=k=U.r,v+=_=U.g,y+=E=U.b,b+=P=U.a,x-=k,w-=_,C-=E,S-=P,U=U.next,c+=R}}(e,t)},r.Factory.addGetterSetter(i.Node,"blurRadius",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},5702:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Brighten=void 0;const r=n(630),i=n(5862),o=n(8049);t.Brighten=function(e){var t,n=255*this.brightness(),r=e.data,i=r.length;for(t=0;t<i;t+=4)r[t]+=n,r[t+1]+=n,r[t+2]+=n},r.Factory.addGetterSetter(i.Node,"brightness",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},4084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contrast=void 0;const r=n(630),i=n(5862),o=n(8049);t.Contrast=function(e){var t,n=Math.pow((this.contrast()+100)/100,2),r=e.data,i=r.length,o=150,a=150,s=150;for(t=0;t<i;t+=4)o=r[t],a=r[t+1],s=r[t+2],o/=255,o-=.5,o*=n,o+=.5,a/=255,a-=.5,a*=n,a+=.5,s/=255,s-=.5,s*=n,s+=.5,o=(o*=255)<0?0:o>255?255:o,a=(a*=255)<0?0:a>255?255:a,s=(s*=255)<0?0:s>255?255:s,r[t]=o,r[t+1]=a,r[t+2]=s},r.Factory.addGetterSetter(i.Node,"contrast",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},6245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emboss=void 0;const r=n(630),i=n(5862),o=n(210),a=n(8049);t.Emboss=function(e){var t=10*this.embossStrength(),n=255*this.embossWhiteLevel(),r=this.embossDirection(),i=this.embossBlend(),a=0,s=0,l=e.data,u=e.width,c=e.height,d=4*u,f=c;switch(r){case"top-left":a=-1,s=-1;break;case"top":a=-1,s=0;break;case"top-right":a=-1,s=1;break;case"right":a=0,s=1;break;case"bottom-right":a=1,s=1;break;case"bottom":a=1,s=0;break;case"bottom-left":a=1,s=-1;break;case"left":a=0,s=-1;break;default:o.Util.error("Unknown emboss direction: "+r)}do{var h=(f-1)*d,p=a;f+p<1&&(p=0),f+p>c&&(p=0);var g=(f-1+p)*u*4,m=u;do{var v=h+4*(m-1),y=s;m+y<1&&(y=0),m+y>u&&(y=0);var b=g+4*(m-1+y),x=l[v]-l[b],w=l[v+1]-l[b+1],C=l[v+2]-l[b+2],S=x,k=S>0?S:-S;if((w>0?w:-w)>k&&(S=w),(C>0?C:-C)>k&&(S=C),S*=t,i){var _=l[v]+S,E=l[v+1]+S,P=l[v+2]+S;l[v]=_>255?255:_<0?0:_,l[v+1]=E>255?255:E<0?0:E,l[v+2]=P>255?255:P<0?0:P}else{var j=n-S;j<0?j=0:j>255&&(j=255),l[v]=l[v+1]=l[v+2]=j}}while(--m)}while(--f)},r.Factory.addGetterSetter(i.Node,"embossStrength",.5,(0,a.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossWhiteLevel",.5,(0,a.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossDirection","top-left",null,r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"embossBlend",!1,null,r.Factory.afterSetFilter)},6766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Enhance=void 0;const r=n(630),i=n(5862),o=n(8049);function a(e,t,n,r,i){var o=n-t,a=i-r;return 0===o?r+a/2:0===a?r:a*((e-t)/o)+r}t.Enhance=function(e){var t,n,r,i,o=e.data,s=o.length,l=o[0],u=l,c=o[1],d=c,f=o[2],h=f,p=this.enhance();if(0!==p){for(i=0;i<s;i+=4)(t=o[i+0])<l?l=t:t>u&&(u=t),(n=o[i+1])<c?c=n:n>d&&(d=n),(r=o[i+2])<f?f=r:r>h&&(h=r);var g,m,v,y,b,x,w,C,S;for(u===l&&(u=255,l=0),d===c&&(d=255,c=0),h===f&&(h=255,f=0),p>0?(m=u+p*(255-u),v=l-p*(l-0),b=d+p*(255-d),x=c-p*(c-0),C=h+p*(255-h),S=f-p*(f-0)):(m=u+p*(u-(g=.5*(u+l))),v=l+p*(l-g),b=d+p*(d-(y=.5*(d+c))),x=c+p*(c-y),C=h+p*(h-(w=.5*(h+f))),S=f+p*(f-w)),i=0;i<s;i+=4)o[i+0]=a(o[i+0],l,u,v,m),o[i+1]=a(o[i+1],c,d,x,b),o[i+2]=a(o[i+2],f,h,S,C)}},r.Factory.addGetterSetter(i.Node,"enhance",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},8731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Grayscale=void 0;t.Grayscale=function(e){var t,n,r=e.data,i=r.length;for(t=0;t<i;t+=4)n=.34*r[t]+.5*r[t+1]+.16*r[t+2],r[t]=n,r[t+1]=n,r[t+2]=n}},7643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HSL=void 0;const r=n(630),i=n(5862),o=n(8049);r.Factory.addGetterSetter(i.Node,"hue",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"saturation",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"luminance",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter);t.HSL=function(e){var t,n,r,i,o,a=e.data,s=a.length,l=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,c=127*this.luminance(),d=1*l*Math.cos(u*Math.PI/180),f=1*l*Math.sin(u*Math.PI/180),h=.299+.701*d+.167*f,p=.587-.587*d+.33*f,g=.114-.114*d-.497*f,m=.299-.299*d-.328*f,v=.587+.413*d+.035*f,y=.114-.114*d+.293*f,b=.299-.3*d+1.25*f,x=.587-.586*d-1.05*f,w=.114+.886*d-.2*f;for(t=0;t<s;t+=4)n=a[t+0],r=a[t+1],i=a[t+2],o=a[t+3],a[t+0]=h*n+p*r+g*i+c,a[t+1]=m*n+v*r+y*i+c,a[t+2]=b*n+x*r+w*i+c,a[t+3]=o}},1045:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HSV=void 0;const r=n(630),i=n(5862),o=n(8049);t.HSV=function(e){var t,n,r,i,o,a=e.data,s=a.length,l=Math.pow(2,this.value()),u=Math.pow(2,this.saturation()),c=Math.abs(this.hue()+360)%360,d=l*u*Math.cos(c*Math.PI/180),f=l*u*Math.sin(c*Math.PI/180),h=.299*l+.701*d+.167*f,p=.587*l-.587*d+.33*f,g=.114*l-.114*d-.497*f,m=.299*l-.299*d-.328*f,v=.587*l+.413*d+.035*f,y=.114*l-.114*d+.293*f,b=.299*l-.3*d+1.25*f,x=.587*l-.586*d-1.05*f,w=.114*l+.886*d-.2*f;for(t=0;t<s;t+=4)n=a[t+0],r=a[t+1],i=a[t+2],o=a[t+3],a[t+0]=h*n+p*r+g*i,a[t+1]=m*n+v*r+y*i,a[t+2]=b*n+x*r+w*i,a[t+3]=o},r.Factory.addGetterSetter(i.Node,"hue",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"saturation",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"value",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},2630:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Invert=void 0;t.Invert=function(e){var t,n=e.data,r=n.length;for(t=0;t<r;t+=4)n[t]=255-n[t],n[t+1]=255-n[t+1],n[t+2]=255-n[t+2]}},4323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Kaleidoscope=void 0;const r=n(630),i=n(5862),o=n(210),a=n(8049);t.Kaleidoscope=function(e){var t,n,r,i,a,s,l,u,c,d=e.width,f=e.height,h=Math.round(this.kaleidoscopePower()),p=Math.round(this.kaleidoscopeAngle()),g=Math.floor(d*(p%360)/360);if(!(h<1)){var m=o.Util.createCanvasElement();m.width=d,m.height=f;var v=m.getContext("2d").getImageData(0,0,d,f);o.Util.releaseCanvas(m),function(e,t,n){var r,i,o,a,s=e.data,l=t.data,u=e.width,c=e.height,d=n.polarCenterX||u/2,f=n.polarCenterY||c/2,h=0,p=0,g=0,m=0,v=Math.sqrt(d*d+f*f);i=u-d,o=c-f,v=(a=Math.sqrt(i*i+o*o))>v?a:v;var y,b,x,w,C=c,S=u,k=360/S*Math.PI/180;for(b=0;b<S;b+=1)for(x=Math.sin(b*k),w=Math.cos(b*k),y=0;y<C;y+=1)i=Math.floor(d+v*y/C*w),h=s[0+(r=4*((o=Math.floor(f+v*y/C*x))*u+i))],p=s[r+1],g=s[r+2],m=s[r+3],l[0+(r=4*(b+y*u))]=h,l[r+1]=p,l[r+2]=g,l[r+3]=m}(e,v,{polarCenterX:d/2,polarCenterY:f/2});for(var y=d/Math.pow(2,h);y<=8;)y*=2,h-=1;var b=y=Math.ceil(y),x=0,w=b,C=1;for(g+y>d&&(x=b,w=0,C=-1),n=0;n<f;n+=1)for(t=x;t!==w;t+=C)u=4*(d*n+Math.round(t+g)%d),i=v.data[u+0],a=v.data[u+1],s=v.data[u+2],l=v.data[u+3],c=4*(d*n+t),v.data[c+0]=i,v.data[c+1]=a,v.data[c+2]=s,v.data[c+3]=l;for(n=0;n<f;n+=1)for(b=Math.floor(y),r=0;r<h;r+=1){for(t=0;t<b+1;t+=1)u=4*(d*n+t),i=v.data[u+0],a=v.data[u+1],s=v.data[u+2],l=v.data[u+3],c=4*(d*n+2*b-t-1),v.data[c+0]=i,v.data[c+1]=a,v.data[c+2]=s,v.data[c+3]=l;b*=2}!function(e,t,n){var r,i,o,a,s,l,u=e.data,c=t.data,d=e.width,f=e.height,h=n.polarCenterX||d/2,p=n.polarCenterY||f/2,g=0,m=0,v=0,y=0,b=Math.sqrt(h*h+p*p);i=d-h,o=f-p,b=(l=Math.sqrt(i*i+o*o))>b?l:b;var x,w,C,S=f,k=d,_=n.polarRotation||0;for(i=0;i<d;i+=1)for(o=0;o<f;o+=1)a=i-h,s=o-p,x=Math.sqrt(a*a+s*s)*S/b,w=(w=(180*Math.atan2(s,a)/Math.PI+360+_)%360)*k/360,C=Math.floor(w),g=u[0+(r=4*(Math.floor(x)*d+C))],m=u[r+1],v=u[r+2],y=u[r+3],c[0+(r=4*(o*d+i))]=g,c[r+1]=m,c[r+2]=v,c[r+3]=y}(v,e,{polarRotation:0})}},r.Factory.addGetterSetter(i.Node,"kaleidoscopePower",2,(0,a.getNumberValidator)(),r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"kaleidoscopeAngle",0,(0,a.getNumberValidator)(),r.Factory.afterSetFilter)},9246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mask=void 0;const r=n(630),i=n(5862),o=n(8049);function a(e,t,n){var r=4*(n*e.width+t),i=[];return i.push(e.data[r++],e.data[r++],e.data[r++],e.data[r++]),i}function s(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2))}t.Mask=function(e){var t=function(e,t){var n=a(e,0,0),r=a(e,e.width-1,0),i=a(e,0,e.height-1),o=a(e,e.width-1,e.height-1),l=t||10;if(s(n,r)<l&&s(r,o)<l&&s(o,i)<l&&s(i,n)<l){for(var u=function(e){for(var t=[0,0,0],n=0;n<e.length;n++)t[0]+=e[n][0],t[1]+=e[n][1],t[2]+=e[n][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}([r,n,o,i]),c=[],d=0;d<e.width*e.height;d++){var f=s(u,[e.data[4*d],e.data[4*d+1],e.data[4*d+2]]);c[d]=f<l?0:255}return c}}(e,this.threshold());return t&&function(e,t){for(var n=0;n<e.width*e.height;n++)e.data[4*n+3]=t[n]}(e,t=function(e,t,n){for(var r=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=l+f-o;if(h>=0&&h<n&&p>=0&&p<t){var g=r[d*i+f];c+=e[h*t+p]*g}}a[u]=c}return a}(t=function(e,t,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=l+f-o;if(h>=0&&h<n&&p>=0&&p<t){var g=r[d*i+f];c+=e[h*t+p]*g}}a[u]=c>=1020?255:0}return a}(t=function(e,t,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),o=Math.floor(i/2),a=[],s=0;s<n;s++)for(var l=0;l<t;l++){for(var u=s*t+l,c=0,d=0;d<i;d++)for(var f=0;f<i;f++){var h=s+d-o,p=l+f-o;if(h>=0&&h<n&&p>=0&&p<t){var g=r[d*i+f];c+=e[h*t+p]*g}}a[u]=2040===c?255:0}return a}(t,e.width,e.height),e.width,e.height),e.width,e.height)),e},r.Factory.addGetterSetter(i.Node,"threshold",0,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},2694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Noise=void 0;const r=n(630),i=n(5862),o=n(8049);t.Noise=function(e){var t,n=255*this.noise(),r=e.data,i=r.length,o=n/2;for(t=0;t<i;t+=4)r[t+0]+=o-2*o*Math.random(),r[t+1]+=o-2*o*Math.random(),r[t+2]+=o-2*o*Math.random()},r.Factory.addGetterSetter(i.Node,"noise",.2,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},5490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pixelate=void 0;const r=n(630),i=n(210),o=n(5862),a=n(8049);t.Pixelate=function(e){var t,n,r,o,a,s,l,u,c,d,f,h,p,g,m=Math.ceil(this.pixelSize()),v=e.width,y=e.height,b=Math.ceil(v/m),x=Math.ceil(y/m),w=e.data;if(m<=0)i.Util.error("pixelSize value can not be <= 0");else for(h=0;h<b;h+=1)for(p=0;p<x;p+=1){for(o=0,a=0,s=0,l=0,c=(u=h*m)+m,f=(d=p*m)+m,g=0,t=u;t<c;t+=1)if(!(t>=v))for(n=d;n<f;n+=1)n>=y||(o+=w[(r=4*(v*n+t))+0],a+=w[r+1],s+=w[r+2],l+=w[r+3],g+=1);for(o/=g,a/=g,s/=g,l/=g,t=u;t<c;t+=1)if(!(t>=v))for(n=d;n<f;n+=1)n>=y||(w[(r=4*(v*n+t))+0]=o,w[r+1]=a,w[r+2]=s,w[r+3]=l)}},r.Factory.addGetterSetter(o.Node,"pixelSize",8,(0,a.getNumberValidator)(),r.Factory.afterSetFilter)},5061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Posterize=void 0;const r=n(630),i=n(5862),o=n(8049);t.Posterize=function(e){var t,n=Math.round(254*this.levels())+1,r=e.data,i=r.length,o=255/n;for(t=0;t<i;t+=1)r[t]=Math.floor(r[t]/o)*o},r.Factory.addGetterSetter(i.Node,"levels",.5,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},7151:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RGB=void 0;const r=n(630),i=n(5862),o=n(8049);t.RGB=function(e){var t,n,r=e.data,i=r.length,o=this.red(),a=this.green(),s=this.blue();for(t=0;t<i;t+=4)n=(.34*r[t]+.5*r[t+1]+.16*r[t+2])/255,r[t]=n*o,r[t+1]=n*a,r[t+2]=n*s,r[t+3]=r[t+3]},r.Factory.addGetterSetter(i.Node,"red",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),r.Factory.addGetterSetter(i.Node,"green",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),r.Factory.addGetterSetter(i.Node,"blue",0,o.RGBComponent,r.Factory.afterSetFilter)},3088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RGBA=void 0;const r=n(630),i=n(5862),o=n(8049);t.RGBA=function(e){var t,n,r=e.data,i=r.length,o=this.red(),a=this.green(),s=this.blue(),l=this.alpha();for(t=0;t<i;t+=4)n=1-l,r[t]=o*l+r[t]*n,r[t+1]=a*l+r[t+1]*n,r[t+2]=s*l+r[t+2]*n},r.Factory.addGetterSetter(i.Node,"red",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),r.Factory.addGetterSetter(i.Node,"green",0,(function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)})),r.Factory.addGetterSetter(i.Node,"blue",0,o.RGBComponent,r.Factory.afterSetFilter),r.Factory.addGetterSetter(i.Node,"alpha",1,(function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e}))},8814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sepia=void 0;t.Sepia=function(e){var t,n,r,i,o=e.data,a=o.length;for(t=0;t<a;t+=4)n=o[t+0],r=o[t+1],i=o[t+2],o[t+0]=Math.min(255,.393*n+.769*r+.189*i),o[t+1]=Math.min(255,.349*n+.686*r+.168*i),o[t+2]=Math.min(255,.272*n+.534*r+.131*i)}},1659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Solarize=void 0;t.Solarize=function(e){var t=e.data,n=e.width,r=4*n,i=e.height;do{var o=(i-1)*r,a=n;do{var s=o+4*(a-1),l=t[s],u=t[s+1],c=t[s+2];l>127&&(l=255-l),u>127&&(u=255-u),c>127&&(c=255-c),t[s]=l,t[s+1]=u,t[s+2]=c}while(--a)}while(--i)}},2128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Threshold=void 0;const r=n(630),i=n(5862),o=n(8049);t.Threshold=function(e){var t,n=255*this.threshold(),r=e.data,i=r.length;for(t=0;t<i;t+=1)r[t]=r[t]<n?0:255},r.Factory.addGetterSetter(i.Node,"threshold",.5,(0,o.getNumberValidator)(),r.Factory.afterSetFilter)},2792:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(380);e.exports=r.Konva},2471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Arc=void 0;const r=n(630),i=n(7337),o=n(2225),a=n(8049),s=n(2225);class l extends i.Shape{_sceneFunc(e){var t=o.Konva.getAngle(this.angle()),n=this.clockwise();e.beginPath(),e.arc(0,0,this.outerRadius(),0,t,n),e.arc(0,0,this.innerRadius(),t,0,!n),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}getSelfRect(){const e=this.innerRadius(),t=this.outerRadius(),n=this.clockwise(),r=o.Konva.getAngle(n?360-this.angle():this.angle()),i=Math.cos(Math.min(r,Math.PI)),a=Math.sin(Math.min(Math.max(Math.PI,r),3*Math.PI/2)),s=Math.sin(Math.min(r,Math.PI/2)),l=i*(i>0?e:t),u=a*(a>0?e:t),c=s*(s>0?t:e);return{x:l,y:n?-1*c:u,width:1*t-l,height:c-u}}}t.Arc=l,l.prototype._centroid=!0,l.prototype.className="Arc",l.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,s._registerNode)(l),r.Factory.addGetterSetter(l,"innerRadius",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"outerRadius",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"angle",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"clockwise",!1,(0,a.getBooleanValidator)())},5914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=void 0;const r=n(630),i=n(6533),o=n(8049),a=n(2225),s=n(1084);class l extends i.Line{_sceneFunc(e){super._sceneFunc(e);var t=2*Math.PI,n=this.points(),r=n,i=0!==this.tension()&&n.length>4;i&&(r=this.getTensionPoints());var o,a,l=this.pointerLength(),u=n.length;if(i){const e=[r[r.length-4],r[r.length-3],r[r.length-2],r[r.length-1],n[u-2],n[u-1]],t=s.Path.calcLength(r[r.length-4],r[r.length-3],"C",e),i=s.Path.getPointOnQuadraticBezier(Math.min(1,1-l/t),e[0],e[1],e[2],e[3],e[4],e[5]);o=n[u-2]-i.x,a=n[u-1]-i.y}else o=n[u-2]-n[u-4],a=n[u-1]-n[u-3];var c=(Math.atan2(a,o)+t)%t,d=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(n[u-2],n[u-1]),e.rotate(c),e.moveTo(0,0),e.lineTo(-l,d/2),e.lineTo(-l,-d/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(n[0],n[1]),i?(o=(r[0]+r[2])/2-n[0],a=(r[1]+r[3])/2-n[1]):(o=n[2]-n[0],a=n[3]-n[1]),e.rotate((Math.atan2(-a,-o)+t)%t),e.moveTo(0,0),e.lineTo(-l,d/2),e.lineTo(-l,-d/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){var t=this.dashEnabled();t&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),t&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),t=this.pointerWidth()/2;return{x:e.x-t,y:e.y-t,width:e.width+2*t,height:e.height+2*t}}}t.Arrow=l,l.prototype.className="Arrow",(0,a._registerNode)(l),r.Factory.addGetterSetter(l,"pointerLength",10,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(l,"pointerWidth",10,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(l,"pointerAtBeginning",!1),r.Factory.addGetterSetter(l,"pointerAtEnding",!0)},4891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);class s extends i.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,2*Math.PI,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}}t.Circle=s,s.prototype._centroid=!0,s.prototype.className="Circle",s.prototype._attrsAffectingSize=["radius"],(0,a._registerNode)(s),r.Factory.addGetterSetter(s,"radius",0,(0,o.getNumberValidator)())},1633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ellipse=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);class s extends i.Shape{_sceneFunc(e){var t=this.radiusX(),n=this.radiusY();e.beginPath(),e.save(),t!==n&&e.scale(1,n/t),e.arc(0,0,t,0,2*Math.PI,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.radiusX()}getHeight(){return 2*this.radiusY()}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}}t.Ellipse=s,s.prototype.className="Ellipse",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,a._registerNode)(s),r.Factory.addComponentsGetterSetter(s,"radius",["x","y"]),r.Factory.addGetterSetter(s,"radiusX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(s,"radiusY",0,(0,o.getNumberValidator)())},4782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Image=void 0;const r=n(210),i=n(630),o=n(7337),a=n(2225),s=n(8049);class l extends o.Shape{constructor(e){super(e),this.on("imageChange.konva",(()=>{this._setImageLoad()})),this._setImageLoad()}_setImageLoad(){const e=this.image();e&&e.complete||e&&4===e.readyState||e&&e.addEventListener&&e.addEventListener("load",(()=>{this._requestDraw()}))}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(e){const t=this.getWidth(),n=this.getHeight(),i=this.cornerRadius(),o=this.attrs.image;let a;if(o){const e=this.attrs.cropWidth,r=this.attrs.cropHeight;a=e&&r?[o,this.cropX(),this.cropY(),e,r,0,0,t,n]:[o,0,0,t,n]}(this.hasFill()||this.hasStroke()||i)&&(e.beginPath(),i?r.Util.drawRoundedRectPath(e,t,n,i):e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)),o&&(i&&e.clip(),e.drawImage.apply(e,a))}_hitFunc(e){var t=this.width(),n=this.height(),i=this.cornerRadius();e.beginPath(),i?r.Util.drawRoundedRectPath(e,t,n,i):e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}getWidth(){var e,t;return null!==(e=this.attrs.width)&&void 0!==e?e:null===(t=this.image())||void 0===t?void 0:t.width}getHeight(){var e,t;return null!==(e=this.attrs.height)&&void 0!==e?e:null===(t=this.image())||void 0===t?void 0:t.height}static fromURL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;var i=r.Util.createImageElement();i.onload=function(){var e=new l({image:i});t(e)},i.onerror=n,i.crossOrigin="Anonymous",i.src=e}}t.Image=l,l.prototype.className="Image",(0,a._registerNode)(l),i.Factory.addGetterSetter(l,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4)),i.Factory.addGetterSetter(l,"image"),i.Factory.addComponentsGetterSetter(l,"crop",["x","y","width","height"]),i.Factory.addGetterSetter(l,"cropX",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"cropY",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"cropWidth",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(l,"cropHeight",0,(0,s.getNumberValidator)())},7561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tag=t.Label=void 0;const r=n(630),i=n(7337),o=n(9739),a=n(8049),s=n(2225);var l=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],u="up",c="right",d="down",f="left",h=l.length;class p extends o.Group{constructor(e){super(e),this.on("add.konva",(function(e){this._addListeners(e.child),this._sync()}))}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){var t,n=this,r=function(){n._sync()};for(t=0;t<h;t++)e.on(l[t]+"Change.konva",r)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var e,t,n,r,i,o,a,s=this.getText(),l=this.getTag();if(s&&l){switch(e=s.width(),t=s.height(),n=l.pointerDirection(),r=l.pointerWidth(),a=l.pointerHeight(),i=0,o=0,n){case u:i=e/2,o=-1*a;break;case c:i=e+r,o=t/2;break;case d:i=e/2,o=t+a;break;case f:i=-1*r,o=t/2}l.setAttrs({x:-1*i,y:-1*o,width:e,height:t}),s.setAttrs({x:-1*i,y:-1*o})}}}t.Label=p,p.prototype.className="Label",(0,s._registerNode)(p);class g extends i.Shape{_sceneFunc(e){var t=this.width(),n=this.height(),r=this.pointerDirection(),i=this.pointerWidth(),o=this.pointerHeight(),a=this.cornerRadius();let s=0,l=0,h=0,p=0;"number"===typeof a?s=l=h=p=Math.min(a,t/2,n/2):(s=Math.min(a[0]||0,t/2,n/2),l=Math.min(a[1]||0,t/2,n/2),p=Math.min(a[2]||0,t/2,n/2),h=Math.min(a[3]||0,t/2,n/2)),e.beginPath(),e.moveTo(s,0),r===u&&(e.lineTo((t-i)/2,0),e.lineTo(t/2,-1*o),e.lineTo((t+i)/2,0)),e.lineTo(t-l,0),e.arc(t-l,l,l,3*Math.PI/2,0,!1),r===c&&(e.lineTo(t,(n-o)/2),e.lineTo(t+i,n/2),e.lineTo(t,(n+o)/2)),e.lineTo(t,n-p),e.arc(t-p,n-p,p,0,Math.PI/2,!1),r===d&&(e.lineTo((t+i)/2,n),e.lineTo(t/2,n+o),e.lineTo((t-i)/2,n)),e.lineTo(h,n),e.arc(h,n-h,h,Math.PI/2,Math.PI,!1),r===f&&(e.lineTo(0,(n+o)/2),e.lineTo(-1*i,n/2),e.lineTo(0,(n-o)/2)),e.lineTo(0,s),e.arc(s,s,s,Math.PI,3*Math.PI/2,!1),e.closePath(),e.fillStrokeShape(this)}getSelfRect(){var e=0,t=0,n=this.pointerWidth(),r=this.pointerHeight(),i=this.pointerDirection(),o=this.width(),a=this.height();return i===u?(t-=r,a+=r):i===d?a+=r:i===f?(e-=1.5*n,o+=n):i===c&&(o+=1.5*n),{x:e,y:t,width:o,height:a}}}t.Tag=g,g.prototype.className="Tag",(0,s._registerNode)(g),r.Factory.addGetterSetter(g,"pointerDirection","none"),r.Factory.addGetterSetter(g,"pointerWidth",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(g,"pointerHeight",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(g,"cornerRadius",0,(0,a.getNumberOrArrayOfNumbersValidator)(4))},6533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);function s(e,t,n,r,i,o,a){var s=Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2)),l=Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2)),u=a*s/(s+l),c=a*l/(s+l);return[n-u*(i-e),r-u*(o-t),n+c*(i-e),r+c*(o-t)]}function l(e,t){var n,r,i=e.length,o=[];for(n=2;n<i-2;n+=2)r=s(e[n-2],e[n-1],e[n],e[n+1],e[n+2],e[n+3],t),isNaN(r[0])||(o.push(r[0]),o.push(r[1]),o.push(e[n]),o.push(e[n+1]),o.push(r[2]),o.push(r[3]));return o}class u extends i.Shape{constructor(e){super(e),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",(function(){this._clearCache("tensionPoints")}))}_sceneFunc(e){var t,n,r,i=this.points(),o=i.length,a=this.tension(),s=this.closed(),l=this.bezier();if(o){if(e.beginPath(),e.moveTo(i[0],i[1]),0!==a&&o>4){for(n=(t=this.getTensionPoints()).length,r=s?0:4,s||e.quadraticCurveTo(t[0],t[1],t[2],t[3]);r<n-2;)e.bezierCurveTo(t[r++],t[r++],t[r++],t[r++],t[r++],t[r++]);s||e.quadraticCurveTo(t[n-2],t[n-1],i[o-2],i[o-1])}else if(l)for(r=2;r<o;)e.bezierCurveTo(i[r++],i[r++],i[r++],i[r++],i[r++],i[r++]);else for(r=2;r<o;r+=2)e.lineTo(i[r],i[r+1]);s?(e.closePath(),e.fillStrokeShape(this)):e.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():l(this.points(),this.tension())}_getTensionPointsClosed(){var e=this.points(),t=e.length,n=this.tension(),r=s(e[t-2],e[t-1],e[0],e[1],e[2],e[3],n),i=s(e[t-4],e[t-3],e[t-2],e[t-1],e[0],e[1],n),o=l(e,n);return[r[2],r[3]].concat(o).concat([i[0],i[1],e[t-2],e[t-1],i[2],i[3],r[0],r[1],e[0],e[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var e=this.points();if(e.length<4)return{x:e[0]||0,y:e[1]||0,width:0,height:0};for(var t,n,r=(e=0!==this.tension()?[e[0],e[1],...this._getTensionPoints(),e[e.length-2],e[e.length-1]]:this.points())[0],i=e[0],o=e[1],a=e[1],s=0;s<e.length/2;s++)t=e[2*s],n=e[2*s+1],r=Math.min(r,t),i=Math.max(i,t),o=Math.min(o,n),a=Math.max(a,n);return{x:r,y:o,width:i-r,height:a-o}}}t.Line=u,u.prototype.className="Line",u.prototype._attrsAffectingSize=["points","bezier","tension"],(0,a._registerNode)(u),r.Factory.addGetterSetter(u,"closed",!1),r.Factory.addGetterSetter(u,"bezier",!1),r.Factory.addGetterSetter(u,"tension",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(u,"points",[],(0,o.getNumberArrayValidator)())},1084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Path=void 0;const r=n(630),i=n(7337),o=n(2225),a=n(8480);class s extends i.Shape{constructor(e){super(e),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",(function(){this._readDataAttribute()}))}_readDataAttribute(){this.dataArray=s.parsePathData(this.data()),this.pathLength=s.getPathLength(this.dataArray)}_sceneFunc(e){var t=this.dataArray;e.beginPath();for(var n=!1,r=0;r<t.length;r++){var i=t[r].command,o=t[r].points;switch(i){case"L":e.lineTo(o[0],o[1]);break;case"M":e.moveTo(o[0],o[1]);break;case"C":e.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"Q":e.quadraticCurveTo(o[0],o[1],o[2],o[3]);break;case"A":var a=o[0],s=o[1],l=o[2],u=o[3],c=o[4],d=o[5],f=o[6],h=o[7],p=l>u?l:u,g=l>u?1:l/u,m=l>u?u/l:1;e.translate(a,s),e.rotate(f),e.scale(g,m),e.arc(0,0,p,c,c+d,1-h),e.scale(1/g,1/m),e.rotate(-f),e.translate(-a,-s);break;case"z":n=!0,e.closePath()}}n||this.hasFill()?e.fillStrokeShape(this):e.strokeShape(this)}getSelfRect(){var e=[];this.dataArray.forEach((function(t){if("A"===t.command){var n=t.points[4],r=t.points[5],i=t.points[4]+r,o=Math.PI/180;if(Math.abs(n-i)<o&&(o=Math.abs(n-i)),r<0)for(let r=n-o;r>i;r-=o){const n=s.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],r,0);e.push(n.x,n.y)}else for(let r=n+o;r<i;r+=o){const n=s.getPointOnEllipticalArc(t.points[0],t.points[1],t.points[2],t.points[3],r,0);e.push(n.x,n.y)}}else if("C"===t.command)for(let a=0;a<=1;a+=.01){const n=s.getPointOnCubicBezier(a,t.start.x,t.start.y,t.points[0],t.points[1],t.points[2],t.points[3],t.points[4],t.points[5]);e.push(n.x,n.y)}else e=e.concat(t.points)}));for(var t,n,r=e[0],i=e[0],o=e[1],a=e[1],l=0;l<e.length/2;l++)t=e[2*l],n=e[2*l+1],isNaN(t)||(r=Math.min(r,t),i=Math.max(i,t)),isNaN(n)||(o=Math.min(o,n),a=Math.max(a,n));return{x:r,y:o,width:i-r,height:a-o}}getLength(){return this.pathLength}getPointAtLength(e){return s.getPointAtLengthOfDataArray(e,this.dataArray)}static getLineLength(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}static getPathLength(e){let t=0;for(var n=0;n<e.length;++n)t+=e[n].pathLength;return t}static getPointAtLengthOfDataArray(e,t){var n,r=0,i=t.length;if(!i)return null;for(;r<i&&e>t[r].pathLength;)e-=t[r].pathLength,++r;if(r===i)return{x:(n=t[r-1].points.slice(-2))[0],y:n[1]};if(e<.01)return{x:(n=t[r].points.slice(0,2))[0],y:n[1]};var o=t[r],l=o.points;switch(o.command){case"L":return s.getPointOnLine(e,o.start.x,o.start.y,l[0],l[1]);case"C":return s.getPointOnCubicBezier((0,a.t2length)(e,s.getPathLength(t),(e=>(0,a.getCubicArcLength)([o.start.x,l[0],l[2],l[4]],[o.start.y,l[1],l[3],l[5]],e))),o.start.x,o.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return s.getPointOnQuadraticBezier((0,a.t2length)(e,s.getPathLength(t),(e=>(0,a.getQuadraticArcLength)([o.start.x,l[0],l[2]],[o.start.y,l[1],l[3]],e))),o.start.x,o.start.y,l[0],l[1],l[2],l[3]);case"A":var u=l[0],c=l[1],d=l[2],f=l[3],h=l[4],p=l[5],g=l[6];return h+=p*e/o.pathLength,s.getPointOnEllipticalArc(u,c,d,f,h,g)}return null}static getPointOnLine(e,t,n,r,i,o,a){void 0===o&&(o=t),void 0===a&&(a=n);var s=(i-n)/(r-t+1e-8),l=Math.sqrt(e*e/(1+s*s));r<t&&(l*=-1);var u,c=s*l;if(r===t)u={x:o,y:a+c};else if((a-n)/(o-t+1e-8)===s)u={x:o+l,y:a+c};else{var d,f,h=this.getLineLength(t,n,r,i),p=(o-t)*(r-t)+(a-n)*(i-n);d=t+(p/=h*h)*(r-t),f=n+p*(i-n);var g=this.getLineLength(o,a,d,f),m=Math.sqrt(e*e-g*g);l=Math.sqrt(m*m/(1+s*s)),r<t&&(l*=-1),u={x:d+l,y:f+(c=s*l)}}return u}static getPointOnCubicBezier(e,t,n,r,i,o,a,s,l){function u(e){return e*e*e}function c(e){return 3*e*e*(1-e)}function d(e){return 3*e*(1-e)*(1-e)}function f(e){return(1-e)*(1-e)*(1-e)}return{x:s*u(e)+o*c(e)+r*d(e)+t*f(e),y:l*u(e)+a*c(e)+i*d(e)+n*f(e)}}static getPointOnQuadraticBezier(e,t,n,r,i,o,a){function s(e){return e*e}function l(e){return 2*e*(1-e)}function u(e){return(1-e)*(1-e)}return{x:o*s(e)+r*l(e)+t*u(e),y:a*s(e)+i*l(e)+n*u(e)}}static getPointOnEllipticalArc(e,t,n,r,i,o){var a=Math.cos(o),s=Math.sin(o),l=n*Math.cos(i),u=r*Math.sin(i);return{x:e+(l*a-u*s),y:t+(l*s+u*a)}}static parsePathData(e){if(!e)return[];var t=e,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];t=t.replace(new RegExp(" ","g"),",");for(var r=0;r<n.length;r++)t=t.replace(new RegExp(n[r],"g"),"|"+n[r]);var i,o=t.split("|"),a=[],s=[],l=0,u=0,c=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(r=1;r<o.length;r++){var d=o[r],f=d.charAt(0);for(d=d.slice(1),s.length=0;i=c.exec(d);)s.push(i[0]);for(var h=[],p=0,g=s.length;p<g;p++)if("00"!==s[p]){var m=parseFloat(s[p]);isNaN(m)?h.push(0):h.push(m)}else h.push(0,0);for(;h.length>0&&!isNaN(h[0]);){var v,y,b,x,w,C,S,k,_,E,P="",j=[],O=l,R=u;switch(f){case"l":l+=h.shift(),u+=h.shift(),P="L",j.push(l,u);break;case"L":l=h.shift(),u=h.shift(),j.push(l,u);break;case"m":var A=h.shift(),T=h.shift();if(l+=A,u+=T,P="M",a.length>2&&"z"===a[a.length-1].command)for(var N=a.length-2;N>=0;N--)if("M"===a[N].command){l=a[N].points[0]+A,u=a[N].points[1]+T;break}j.push(l,u),f="l";break;case"M":l=h.shift(),u=h.shift(),P="M",j.push(l,u),f="L";break;case"h":l+=h.shift(),P="L",j.push(l,u);break;case"H":l=h.shift(),P="L",j.push(l,u);break;case"v":u+=h.shift(),P="L",j.push(l,u);break;case"V":u=h.shift(),P="L",j.push(l,u);break;case"C":j.push(h.shift(),h.shift(),h.shift(),h.shift()),l=h.shift(),u=h.shift(),j.push(l,u);break;case"c":j.push(l+h.shift(),u+h.shift(),l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),P="C",j.push(l,u);break;case"S":y=l,b=u,"C"===(v=a[a.length-1]).command&&(y=l+(l-v.points[2]),b=u+(u-v.points[3])),j.push(y,b,h.shift(),h.shift()),l=h.shift(),u=h.shift(),P="C",j.push(l,u);break;case"s":y=l,b=u,"C"===(v=a[a.length-1]).command&&(y=l+(l-v.points[2]),b=u+(u-v.points[3])),j.push(y,b,l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),P="C",j.push(l,u);break;case"Q":j.push(h.shift(),h.shift()),l=h.shift(),u=h.shift(),j.push(l,u);break;case"q":j.push(l+h.shift(),u+h.shift()),l+=h.shift(),u+=h.shift(),P="Q",j.push(l,u);break;case"T":y=l,b=u,"Q"===(v=a[a.length-1]).command&&(y=l+(l-v.points[0]),b=u+(u-v.points[1])),l=h.shift(),u=h.shift(),P="Q",j.push(y,b,l,u);break;case"t":y=l,b=u,"Q"===(v=a[a.length-1]).command&&(y=l+(l-v.points[0]),b=u+(u-v.points[1])),l+=h.shift(),u+=h.shift(),P="Q",j.push(y,b,l,u);break;case"A":x=h.shift(),w=h.shift(),C=h.shift(),S=h.shift(),k=h.shift(),_=l,E=u,l=h.shift(),u=h.shift(),P="A",j=this.convertEndpointToCenterParameterization(_,E,l,u,S,k,x,w,C);break;case"a":x=h.shift(),w=h.shift(),C=h.shift(),S=h.shift(),k=h.shift(),_=l,E=u,l+=h.shift(),u+=h.shift(),P="A",j=this.convertEndpointToCenterParameterization(_,E,l,u,S,k,x,w,C)}a.push({command:P||f,points:j,start:{x:O,y:R},pathLength:this.calcLength(O,R,P||f,j)})}"z"!==f&&"Z"!==f||a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(e,t,n,r){var i,o,l,u,c=s;switch(n){case"L":return c.getLineLength(e,t,r[0],r[1]);case"C":return(0,a.getCubicArcLength)([e,r[0],r[2],r[4]],[t,r[1],r[3],r[5]],1);case"Q":return(0,a.getQuadraticArcLength)([e,r[0],r[2]],[t,r[1],r[3]],1);case"A":i=0;var d=r[4],f=r[5],h=r[4]+f,p=Math.PI/180;if(Math.abs(d-h)<p&&(p=Math.abs(d-h)),o=c.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],d,0),f<0)for(u=d-p;u>h;u-=p)l=c.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),i+=c.getLineLength(o.x,o.y,l.x,l.y),o=l;else for(u=d+p;u<h;u+=p)l=c.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),i+=c.getLineLength(o.x,o.y,l.x,l.y),o=l;return l=c.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],h,0),i+=c.getLineLength(o.x,o.y,l.x,l.y)}return 0}static convertEndpointToCenterParameterization(e,t,n,r,i,o,a,s,l){var u=l*(Math.PI/180),c=Math.cos(u)*(e-n)/2+Math.sin(u)*(t-r)/2,d=-1*Math.sin(u)*(e-n)/2+Math.cos(u)*(t-r)/2,f=c*c/(a*a)+d*d/(s*s);f>1&&(a*=Math.sqrt(f),s*=Math.sqrt(f));var h=Math.sqrt((a*a*(s*s)-a*a*(d*d)-s*s*(c*c))/(a*a*(d*d)+s*s*(c*c)));i===o&&(h*=-1),isNaN(h)&&(h=0);var p=h*a*d/s,g=h*-s*c/a,m=(e+n)/2+Math.cos(u)*p-Math.sin(u)*g,v=(t+r)/2+Math.sin(u)*p+Math.cos(u)*g,y=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},b=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(y(e)*y(t))},x=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(b(e,t))},w=x([1,0],[(c-p)/a,(d-g)/s]),C=[(c-p)/a,(d-g)/s],S=[(-1*c-p)/a,(-1*d-g)/s],k=x(C,S);return b(C,S)<=-1&&(k=Math.PI),b(C,S)>=1&&(k=0),0===o&&k>0&&(k-=2*Math.PI),1===o&&k<0&&(k+=2*Math.PI),[m,v,a,s,w,k,u,o]}}t.Path=s,s.prototype.className="Path",s.prototype._attrsAffectingSize=["data"],(0,o._registerNode)(s),r.Factory.addGetterSetter(s,"data")},3321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rect=void 0;const r=n(630),i=n(7337),o=n(2225),a=n(210),s=n(8049);class l extends i.Shape{_sceneFunc(e){var t=this.cornerRadius(),n=this.width(),r=this.height();e.beginPath(),t?a.Util.drawRoundedRectPath(e,n,r,t):e.rect(0,0,n,r),e.closePath(),e.fillStrokeShape(this)}}t.Rect=l,l.prototype.className="Rect",(0,o._registerNode)(l),r.Factory.addGetterSetter(l,"cornerRadius",0,(0,s.getNumberOrArrayOfNumbersValidator)(4))},7565:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegularPolygon=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);class s extends i.Shape{_sceneFunc(e){const t=this._getPoints();e.beginPath(),e.moveTo(t[0].x,t[0].y);for(var n=1;n<t.length;n++)e.lineTo(t[n].x,t[n].y);e.closePath(),e.fillStrokeShape(this)}_getPoints(){const e=this.attrs.sides,t=this.attrs.radius||0,n=[];for(var r=0;r<e;r++)n.push({x:t*Math.sin(2*r*Math.PI/e),y:-1*t*Math.cos(2*r*Math.PI/e)});return n}getSelfRect(){const e=this._getPoints();var t=e[0].x,n=e[0].y,r=e[0].x,i=e[0].y;return e.forEach((e=>{t=Math.min(t,e.x),n=Math.max(n,e.x),r=Math.min(r,e.y),i=Math.max(i,e.y)})),{x:t,y:r,width:n-t,height:i-r}}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}t.RegularPolygon=s,s.prototype.className="RegularPolygon",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["radius"],(0,a._registerNode)(s),r.Factory.addGetterSetter(s,"radius",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(s,"sides",0,(0,o.getNumberValidator)())},9501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ring=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);var s=2*Math.PI;class l extends i.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,s,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),s,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}t.Ring=l,l.prototype.className="Ring",l.prototype._centroid=!0,l.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,a._registerNode)(l),r.Factory.addGetterSetter(l,"innerRadius",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(l,"outerRadius",0,(0,o.getNumberValidator)())},1922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sprite=void 0;const r=n(630),i=n(7337),o=n(4822),a=n(8049),s=n(2225);class l extends i.Shape{constructor(e){super(e),this._updated=!0,this.anim=new o.Animation((()=>{var e=this._updated;return this._updated=!1,e})),this.on("animationChange.konva",(function(){this.frameIndex(0)})),this.on("frameIndexChange.konva",(function(){this._updated=!0})),this.on("frameRateChange.konva",(function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}))}_sceneFunc(e){var t=this.animation(),n=this.frameIndex(),r=4*n,i=this.animations()[t],o=this.frameOffsets(),a=i[r+0],s=i[r+1],l=i[r+2],u=i[r+3],c=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,l,u),e.closePath(),e.fillStrokeShape(this)),c)if(o){var d=o[t],f=2*n;e.drawImage(c,a,s,l,u,d[f+0],d[f+1],l,u)}else e.drawImage(c,a,s,l,u,0,0,l,u)}_hitFunc(e){var t=this.animation(),n=this.frameIndex(),r=4*n,i=this.animations()[t],o=this.frameOffsets(),a=i[r+2],s=i[r+3];if(e.beginPath(),o){var l=o[t],u=2*n;e.rect(l[u+0],l[u+1],a,s)}else e.rect(0,0,a,s);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var e=this;this.interval=setInterval((function(){e._updateIndex()}),1e3/this.frameRate())}start(){if(!this.isRunning()){var e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var e=this.frameIndex(),t=this.animation();e<this.animations()[t].length/4-1?this.frameIndex(e+1):this.frameIndex(0)}}t.Sprite=l,l.prototype.className="Sprite",(0,s._registerNode)(l),r.Factory.addGetterSetter(l,"animation"),r.Factory.addGetterSetter(l,"animations"),r.Factory.addGetterSetter(l,"frameOffsets"),r.Factory.addGetterSetter(l,"image"),r.Factory.addGetterSetter(l,"frameIndex",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"frameRate",17,(0,a.getNumberValidator)()),r.Factory.backCompat(l,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"})},8967:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Star=void 0;const r=n(630),i=n(7337),o=n(8049),a=n(2225);class s extends i.Shape{_sceneFunc(e){var t=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();e.beginPath(),e.moveTo(0,0-n);for(var i=1;i<2*r;i++){var o=i%2===0?n:t,a=o*Math.sin(i*Math.PI/r),s=-1*o*Math.cos(i*Math.PI/r);e.lineTo(a,s)}e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.outerRadius()}getHeight(){return 2*this.outerRadius()}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}}t.Star=s,s.prototype.className="Star",s.prototype._centroid=!0,s.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,a._registerNode)(s),r.Factory.addGetterSetter(s,"numPoints",5,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(s,"innerRadius",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(s,"outerRadius",0,(0,o.getNumberValidator)())},7228:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.stringToArray=void 0;const r=n(210),i=n(630),o=n(7337),a=n(2225),s=n(8049),l=n(2225);function u(e){return Array.from(e)}t.stringToArray=u;var c,d="auto",f="inherit",h="justify",p="left",g="middle",m="normal",v=" ",y="none",b=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],x=b.length;function w(){return c||(c=r.Util.createCanvasElement().getContext("2d"))}class C extends o.Shape{constructor(e){super(function(e){return(e=e||{}).fillLinearGradientColorStops||e.fillRadialGradientColorStops||e.fillPatternImage||(e.fill=e.fill||"black"),e}(e)),this._partialTextX=0,this._partialTextY=0;for(var t=0;t<x;t++)this.on(b[t]+"Change.konva",this._setTextData);this._setTextData()}_sceneFunc(e){var t=this.textArr,n=t.length;if(this.text()){var r,i=this.padding(),o=this.fontSize(),s=this.lineHeight()*o,l=this.verticalAlign(),c=this.direction(),d=0,m=this.align(),v=this.getWidth(),y=this.letterSpacing(),b=this.fill(),x=this.textDecoration(),w=-1!==x.indexOf("underline"),C=-1!==x.indexOf("line-through");c=c===f?e.direction:c;var S=s/2,k=g;if(a.Konva._fixTextRendering){var _=this.measureSize("M");k="alphabetic",S=(_.fontBoundingBoxAscent-_.fontBoundingBoxDescent)/2+s/2}var E=0,P=0;for("rtl"===c&&e.setAttr("direction",c),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",k),e.setAttr("textAlign",p),l===g?d=(this.getHeight()-n*s-2*i)/2:"bottom"===l&&(d=this.getHeight()-n*s-2*i),e.translate(i,d+i),r=0;r<n;r++){E=0,P=0;var j,O,R,A=t[r],T=A.text,N=A.width,F=A.lastInParagraph;if(e.save(),"right"===m?E+=v-N-2*i:"center"===m&&(E+=(v-N-2*i)/2),w){e.save(),e.beginPath();const t=E,n=S+P+(a.Konva._fixTextRendering?Math.round(o/4):Math.round(o/2));e.moveTo(t,n),O=0===(j=T.split(" ").length-1),R=m!==h||F?N:v-2*i,e.lineTo(t+Math.round(R),n),e.lineWidth=o/15;const r=this._getLinearGradient();e.strokeStyle=r||b,e.stroke(),e.restore()}if(C){e.save(),e.beginPath();let t=a.Konva._fixTextRendering?-Math.round(o/4):0;e.moveTo(E,S+P+t),O=0===(j=T.split(" ").length-1),R=m===h&&F&&!O?v-2*i:N,e.lineTo(E+Math.round(R),S+P+t),e.lineWidth=o/15;const n=this._getLinearGradient();e.strokeStyle=n||b,e.stroke(),e.restore()}if("rtl"===c||0===y&&m!==h)0!==y&&e.setAttr("letterSpacing","".concat(y,"px")),this._partialTextX=E,this._partialTextY=S+P,this._partialText=T,e.fillStrokeShape(this);else{j=T.split(" ").length-1;for(var M=u(T),L=0;L<M.length;L++){var I=M[L];" "!==I||F||m!==h||(E+=(v-2*i-N)/j),this._partialTextX=E,this._partialTextY=S+P,this._partialText=I,e.fillStrokeShape(this),E+=this.measureSize(I).width+y}}e.restore(),n>1&&(S+=s)}}}_hitFunc(e){var t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}setText(e){var t=r.Util._isString(e)?e:null===e||void 0===e?"":e+"";return this._setAttr("text",t),this}getWidth(){return this.attrs.width===d||void 0===this.attrs.width?this.getTextWidth()+2*this.padding():this.attrs.width}getHeight(){return this.attrs.height===d||void 0===this.attrs.height?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return r.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var t,n=w(),r=this.fontSize();return n.save(),n.font=this._getContextFont(),t=n.measureText(e),n.restore(),{actualBoundingBoxAscent:t.actualBoundingBoxAscent,actualBoundingBoxDescent:t.actualBoundingBoxDescent,actualBoundingBoxLeft:t.actualBoundingBoxLeft,actualBoundingBoxRight:t.actualBoundingBoxRight,alphabeticBaseline:t.alphabeticBaseline,emHeightAscent:t.emHeightAscent,emHeightDescent:t.emHeightDescent,fontBoundingBoxAscent:t.fontBoundingBoxAscent,fontBoundingBoxDescent:t.fontBoundingBoxDescent,hangingBaseline:t.hangingBaseline,ideographicBaseline:t.ideographicBaseline,width:t.width,height:r}}_getContextFont(){return this.fontStyle()+v+this.fontVariant()+v+(this.fontSize()+"px ")+this.fontFamily().split(",").map((e=>{const t=(e=e.trim()).indexOf(" ")>=0,n=e.indexOf('"')>=0||e.indexOf("'")>=0;return t&&!n&&(e='"'.concat(e,'"')),e})).join(", ")}_addTextLine(e){this.align()===h&&(e=e.trim());var t=this._getTextWidth(e);return this.textArr.push({text:e,width:t,lastInParagraph:!1})}_getTextWidth(e){var t=this.letterSpacing(),n=e.length;return w().measureText(e).width+(n?t*(n-1):0)}_setTextData(){var e=this.text().split("\n"),t=+this.fontSize(),n=0,r=this.lineHeight()*t,i=this.attrs.width,o=this.attrs.height,a=i!==d&&void 0!==i,s=o!==d&&void 0!==o,l=this.padding(),u=i-2*l,c=o-2*l,f=0,h=this.wrap(),p="char"!==h&&h!==y,g=this.ellipsis();this.textArr=[],w().font=this._getContextFont();for(var m=g?this._getTextWidth("\u2026"):0,b=0,x=e.length;b<x;++b){var C=e[b],S=this._getTextWidth(C);if(a&&S>u)for(;C.length>0;){for(var k=0,_=C.length,E="",P=0;k<_;){var j=k+_>>>1,O=C.slice(0,j+1),R=this._getTextWidth(O)+m;R<=u?(k=j+1,E=O,P=R):_=j}if(!E)break;if(p){var A,T=C[E.length];(A=(T===v||"-"===T)&&P<=u?E.length:Math.max(E.lastIndexOf(v),E.lastIndexOf("-"))+1)>0&&(k=A,E=E.slice(0,k),P=this._getTextWidth(E))}if(E=E.trimRight(),this._addTextLine(E),n=Math.max(n,P),f+=r,this._shouldHandleEllipsis(f)){this._tryToAddEllipsisToLastLine();break}if((C=(C=C.slice(k)).trimLeft()).length>0&&(S=this._getTextWidth(C))<=u){this._addTextLine(C),f+=r,n=Math.max(n,S);break}}else this._addTextLine(C),f+=r,n=Math.max(n,S),this._shouldHandleEllipsis(f)&&b<x-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),s&&f+r>c)break}this.textHeight=t,this.textWidth=n}_shouldHandleEllipsis(e){var t=+this.fontSize(),n=this.lineHeight()*t,r=this.attrs.height,i=r!==d&&void 0!==r,o=r-2*this.padding();return!(this.wrap()!==y)||i&&e+n>o}_tryToAddEllipsisToLastLine(){var e=this.attrs.width,t=e!==d&&void 0!==e,n=e-2*this.padding(),r=this.ellipsis(),i=this.textArr[this.textArr.length-1];if(i&&r){if(t)this._getTextWidth(i.text+"\u2026")<n||(i.text=i.text.slice(0,i.text.length-3));this.textArr.splice(this.textArr.length-1,1),this._addTextLine(i.text+"\u2026")}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const e=-1!==this.textDecoration().indexOf("underline")||-1!==this.textDecoration().indexOf("line-through"),t=this.hasShadow();return!(!e||!t)||super._useBufferCanvas()}}t.Text=C,C.prototype._fillFunc=function(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)},C.prototype._strokeFunc=function(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)},C.prototype.className="Text",C.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,l._registerNode)(C),i.Factory.overWriteSetter(C,"width",(0,s.getNumberOrAutoValidator)()),i.Factory.overWriteSetter(C,"height",(0,s.getNumberOrAutoValidator)()),i.Factory.addGetterSetter(C,"direction",f),i.Factory.addGetterSetter(C,"fontFamily","Arial"),i.Factory.addGetterSetter(C,"fontSize",12,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(C,"fontStyle",m),i.Factory.addGetterSetter(C,"fontVariant",m),i.Factory.addGetterSetter(C,"padding",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(C,"align",p),i.Factory.addGetterSetter(C,"verticalAlign","top"),i.Factory.addGetterSetter(C,"lineHeight",1,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(C,"wrap","word"),i.Factory.addGetterSetter(C,"ellipsis",!1,(0,s.getBooleanValidator)()),i.Factory.addGetterSetter(C,"letterSpacing",0,(0,s.getNumberValidator)()),i.Factory.addGetterSetter(C,"text","",(0,s.getStringValidator)()),i.Factory.addGetterSetter(C,"textDecoration","")},8847:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextPath=void 0;const r=n(210),i=n(630),o=n(7337),a=n(1084),s=n(7228),l=n(8049),u=n(2225);var c="normal";function d(e){e.fillText(this.partialText,0,0)}function f(e){e.strokeText(this.partialText,0,0)}class h extends o.Shape{constructor(e){super(e),this.dummyCanvas=r.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",(function(){this._readDataAttribute(),this._setTextData()})),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return a.Path.getPathLength(this.dataArray)}_getPointAtLength(e){if(!this.attrs.data)return null;return e-1>this.pathLength?null:a.Path.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=a.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();var t=this.textDecoration(),n=this.fill(),r=this.fontSize(),i=this.glyphInfo;"underline"===t&&e.beginPath();for(var o=0;o<i.length;o++){e.save();var a=i[o].p0;e.translate(a.x,a.y),e.rotate(i[o].rotation),this.partialText=i[o].text,e.fillStrokeShape(this),"underline"===t&&(0===o&&e.moveTo(0,r/2+1),e.lineTo(r,r/2+1)),e.restore()}"underline"===t&&(e.strokeStyle=n,e.lineWidth=r/20,e.stroke()),e.restore()}_hitFunc(e){e.beginPath();var t=this.glyphInfo;if(t.length>=1){var n=t[0].p0;e.moveTo(n.x,n.y)}for(var r=0;r<t.length;r++){var i=t[r].p1;e.lineTo(i.x,i.y)}e.setAttr("lineWidth",this.fontSize()),e.setAttr("strokeStyle",this.colorKey),e.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return r.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(e){return s.Text.prototype.setText.call(this,e)}_getContextFont(){return s.Text.prototype._getContextFont.call(this)}_getTextSize(e){var t=this.dummyCanvas.getContext("2d");t.save(),t.font=this._getContextFont();var n=t.measureText(e);return t.restore(),{width:n.width,height:parseInt("".concat(this.fontSize()),10)}}_setTextData(){const{width:e,height:t}=this._getTextSize(this.attrs.text);if(this.textWidth=e,this.textHeight=t,this.glyphInfo=[],!this.attrs.data)return null;const n=this.letterSpacing(),r=this.align(),i=this.kerningFunc(),o=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);let l=0;"center"===r&&(l=Math.max(0,this.pathLength/2-o/2)),"right"===r&&(l=Math.max(0,this.pathLength-o));const u=(0,s.stringToArray)(this.text());let c=l;for(var d=0;d<u.length;d++){const e=this._getPointAtLength(c);if(!e)return;let t=this._getTextSize(u[d]).width+n;if(" "===u[d]&&"justify"===r){const e=this.text().split(" ").length-1;t+=(this.pathLength-o)/e}const s=this._getPointAtLength(c+t);if(!s)return;const l=a.Path.getLineLength(e.x,e.y,s.x,s.y);let h=0;if(i)try{h=i(u[d-1],u[d])*this.fontSize()}catch(f){h=0}e.x+=h,s.x+=h,this.textWidth+=h;const p=a.Path.getPointOnLine(h+l/2,e.x,e.y,s.x,s.y),g=Math.atan2(s.y-e.y,s.x-e.x);this.glyphInfo.push({transposeX:p.x,transposeY:p.y,text:u[d],rotation:g,p0:e,p1:s}),c+=t}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var e=[];this.glyphInfo.forEach((function(t){e.push(t.p0.x),e.push(t.p0.y),e.push(t.p1.x),e.push(t.p1.y)}));for(var t,n,r=e[0]||0,i=e[0]||0,o=e[1]||0,a=e[1]||0,s=0;s<e.length/2;s++)t=e[2*s],n=e[2*s+1],r=Math.min(r,t),i=Math.max(i,t),o=Math.min(o,n),a=Math.max(a,n);var l=this.fontSize();return{x:r-l/2,y:o-l/2,width:i-r+l,height:a-o+l}}destroy(){return r.Util.releaseCanvas(this.dummyCanvas),super.destroy()}}t.TextPath=h,h.prototype._fillFunc=d,h.prototype._strokeFunc=f,h.prototype._fillFuncHit=d,h.prototype._strokeFuncHit=f,h.prototype.className="TextPath",h.prototype._attrsAffectingSize=["text","fontSize","data"],(0,u._registerNode)(h),i.Factory.addGetterSetter(h,"data"),i.Factory.addGetterSetter(h,"fontFamily","Arial"),i.Factory.addGetterSetter(h,"fontSize",12,(0,l.getNumberValidator)()),i.Factory.addGetterSetter(h,"fontStyle",c),i.Factory.addGetterSetter(h,"align","left"),i.Factory.addGetterSetter(h,"letterSpacing",0,(0,l.getNumberValidator)()),i.Factory.addGetterSetter(h,"textBaseline","middle"),i.Factory.addGetterSetter(h,"fontVariant",c),i.Factory.addGetterSetter(h,"text",""),i.Factory.addGetterSetter(h,"textDecoration",null),i.Factory.addGetterSetter(h,"kerningFunc",null)},7208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transformer=void 0;const r=n(210),i=n(630),o=n(5862),a=n(7337),s=n(3321),l=n(9739),u=n(2225),c=n(8049),d=n(2225);var f="tr-konva",h=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map((e=>e+".".concat(f))).join(" "),p="nodesRect",g=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],m={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const v="ontouchstart"in u.Konva._global;var y=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function b(e,t,n){const r=n.x+(e.x-n.x)*Math.cos(t)-(e.y-n.y)*Math.sin(t),i=n.y+(e.x-n.x)*Math.sin(t)+(e.y-n.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:r,y:i}}function x(e,t){const n=function(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}(e);return b(e,t,n)}let w=0;class C extends l.Group{constructor(e){super(e),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(h,this.update),this.getNode()&&this.update()}attachTo(e){return this.setNode(e),this}setNode(e){return r.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([e])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return f+this._id}setNodes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._nodes&&this._nodes.length&&this.detach();const t=e.filter((e=>!e.isAncestorOf(this)||(r.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1)));return this._nodes=e=t,1===e.length&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach((e=>{const t=()=>{1===this.nodes().length&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),this._transforming||this.isDragging()||this.update()},n=e._attrsAffectingSize.map((e=>e+"Change."+this._getEventNamespace())).join(" ");e.on(n,t),e.on(g.map((e=>e+".".concat(this._getEventNamespace()))).join(" "),t),e.on("absoluteTransformChange.".concat(this._getEventNamespace()),t),this._proxyDrag(e)})),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(e){let t;e.on("dragstart.".concat(this._getEventNamespace()),(n=>{t=e.getAbsolutePosition(),this.isDragging()||e===this.findOne(".back")||this.startDrag(n,!1)})),e.on("dragmove.".concat(this._getEventNamespace()),(n=>{if(!t)return;const r=e.getAbsolutePosition(),i=r.x-t.x,o=r.y-t.y;this.nodes().forEach((t=>{if(t===e)return;if(t.isDragging())return;const r=t.getAbsolutePosition();t.setAbsolutePosition({x:r.x+i,y:r.y+o}),t.startDrag(n)})),t=null}))}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach((e=>{e.off("."+this._getEventNamespace())})),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(p),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(p,this.__getNodeRect)}__getNodeShape(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rotation(),n=arguments.length>2?arguments[2]:void 0;var r=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=e.getAbsoluteScale(n),o=e.getAbsolutePosition(n),a=r.x*i.x-e.offsetX()*i.x,s=r.y*i.y-e.offsetY()*i.y;const l=(u.Konva.getAngle(e.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI);return b({x:o.x+a*Math.cos(l)+s*Math.sin(-l),y:o.y+s*Math.cos(l)+a*Math.sin(l),width:r.width*i.x,height:r.height*i.y,rotation:l},-u.Konva.getAngle(t),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const e=[];this.nodes().map((t=>{const n=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var r=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x+n.width,y:n.y+n.height},{x:n.x,y:n.y+n.height}],i=t.getAbsoluteTransform();r.forEach((function(t){var n=i.point(t);e.push(n)}))}));const t=new r.Transform;t.rotate(-u.Konva.getAngle(this.rotation()));var n=1/0,i=1/0,o=-1/0,a=-1/0;e.forEach((function(e){var r=t.point(e);void 0===n&&(n=o=r.x,i=a=r.y),n=Math.min(n,r.x),i=Math.min(i,r.y),o=Math.max(o,r.x),a=Math.max(a,r.y)})),t.invert();const s=t.point({x:n,y:i});return{x:s.x,y:s.y,width:o-n,height:a-i,rotation:u.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),y.forEach((e=>{this._createAnchor(e)})),this._createAnchor("rotater")}_createAnchor(e){var t=new s.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:v?10:"auto"}),n=this;t.on("mousedown touchstart",(function(e){n._handleMouseDown(e)})),t.on("dragstart",(e=>{t.stopDrag(),e.cancelBubble=!0})),t.on("dragend",(e=>{e.cancelBubble=!0})),t.on("mouseenter",(()=>{var n=u.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),o=function(e,t,n){if("rotater"===e)return n;t+=r.Util.degToRad(m[e]||0);var i=(r.Util.radToDeg(t)%360+360)%360;return r.Util._inRange(i,337.5,360)||r.Util._inRange(i,0,22.5)?"ns-resize":r.Util._inRange(i,22.5,67.5)?"nesw-resize":r.Util._inRange(i,67.5,112.5)?"ew-resize":r.Util._inRange(i,112.5,157.5)?"nwse-resize":r.Util._inRange(i,157.5,202.5)?"ns-resize":r.Util._inRange(i,202.5,247.5)?"nesw-resize":r.Util._inRange(i,247.5,292.5)?"ew-resize":r.Util._inRange(i,292.5,337.5)?"nwse-resize":(r.Util.error("Transformer has unknown angle for cursor detection: "+i),"pointer")}(e,n,i);t.getStage().content&&(t.getStage().content.style.cursor=o),this._cursorChange=!0})),t.on("mouseout",(()=>{t.getStage().content&&(t.getStage().content.style.cursor=""),this._cursorChange=!1})),this.add(t)}_createBack(){var e=new a.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(e,t){var n=t.getParent(),i=n.padding();e.beginPath(),e.rect(-i,-i,t.width()+2*i,t.height()+2*i),e.moveTo(t.width()/2,-i),n.rotateEnabled()&&n.rotateLineVisible()&&e.lineTo(t.width()/2,-n.rotateAnchorOffset()*r.Util._sign(t.height())-i),e.fillStrokeShape(t)},hitFunc:(e,t)=>{if(this.shouldOverdrawWholeArea()){var n=this.padding();e.beginPath(),e.rect(-n,-n,t.width()+2*n,t.height()+2*n),e.fillStrokeShape(t)}}});this.add(e),this._proxyDrag(e),e.on("dragstart",(e=>{e.cancelBubble=!0})),e.on("dragmove",(e=>{e.cancelBubble=!0})),e.on("dragend",(e=>{e.cancelBubble=!0})),this.on("dragmove",(e=>{this.update()}))}_handleMouseDown(e){this._movingAnchorName=e.target.name().split(" ")[0];var t=this._getNodeRect(),n=t.width,r=t.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(r,2));this.sin=Math.abs(r/i),this.cos=Math.abs(n/i),"undefined"!==typeof window&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var o=e.target.getAbsolutePosition(),a=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:a.x-o.x,y:a.y-o.y},w++,this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach((t=>{t._fire("transformstart",{evt:e.evt,target:t})}))}_handleMouseMove(e){var t,n,r,i=this.findOne("."+this._movingAnchorName),o=i.getStage();o.setPointersPositions(e);const a=o.getPointerPosition();let s={x:a.x-this._anchorDragOffset.x,y:a.y-this._anchorDragOffset.y};const l=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(l,s,e)),i.setAbsolutePosition(s);const c=i.getAbsolutePosition();if(l.x!==c.x||l.y!==c.y)if("rotater"!==this._movingAnchorName){var d,f=this.shiftBehavior();d="inverted"===f?this.keepRatio()&&!e.shiftKey:"none"===f?this.keepRatio():this.keepRatio()||e.shiftKey;var h=this.centeredScaling()||e.altKey;if("top-left"===this._movingAnchorName){if(d){var p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};r=Math.sqrt(Math.pow(p.x-i.x(),2)+Math.pow(p.y-i.y(),2));var g=this.findOne(".top-left").x()>p.x?-1:1,m=this.findOne(".top-left").y()>p.y?-1:1;t=r*this.cos*g,n=r*this.sin*m,this.findOne(".top-left").x(p.x-t),this.findOne(".top-left").y(p.y-n)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(i.y());else if("top-right"===this._movingAnchorName){if(d){p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};r=Math.sqrt(Math.pow(i.x()-p.x,2)+Math.pow(p.y-i.y(),2));g=this.findOne(".top-right").x()<p.x?-1:1,m=this.findOne(".top-right").y()>p.y?-1:1;t=r*this.cos*g,n=r*this.sin*m,this.findOne(".top-right").x(p.x+t),this.findOne(".top-right").y(p.y-n)}var v=i.position();this.findOne(".top-left").y(v.y),this.findOne(".bottom-right").x(v.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(i.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(i.x());else if("bottom-left"===this._movingAnchorName){if(d){p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};r=Math.sqrt(Math.pow(p.x-i.x(),2)+Math.pow(i.y()-p.y,2));g=p.x<i.x()?-1:1,m=i.y()<p.y?-1:1;t=r*this.cos*g,n=r*this.sin*m,i.x(p.x-t),i.y(p.y+n)}v=i.position(),this.findOne(".top-left").x(v.x),this.findOne(".bottom-right").y(v.y)}else if("bottom-center"===this._movingAnchorName)this.findOne(".bottom-right").y(i.y());else if("bottom-right"===this._movingAnchorName){if(d){p=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};r=Math.sqrt(Math.pow(i.x()-p.x,2)+Math.pow(i.y()-p.y,2));g=this.findOne(".bottom-right").x()<p.x?-1:1,m=this.findOne(".bottom-right").y()<p.y?-1:1;t=r*this.cos*g,n=r*this.sin*m,this.findOne(".bottom-right").x(p.x+t),this.findOne(".bottom-right").y(p.y+n)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(h=this.centeredScaling()||e.altKey){var y=this.findOne(".top-left"),b=this.findOne(".bottom-right"),w=y.x(),C=y.y(),S=this.getWidth()-b.x(),k=this.getHeight()-b.y();b.move({x:-w,y:-C}),y.move({x:S,y:k})}var _=this.findOne(".top-left").getAbsolutePosition();t=_.x,n=_.y;var E=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),P=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:t,y:n,width:E,height:P,rotation:u.Konva.getAngle(this.rotation())},e)}else{var j=this._getNodeRect();t=i.x()-j.width/2,n=-i.y()+j.height/2;let r=Math.atan2(-n,t)+Math.PI/2;j.height<0&&(r-=Math.PI);const o=u.Konva.getAngle(this.rotation())+r,a=u.Konva.getAngle(this.rotationSnapTolerance()),s=x(j,function(e,t,n){let r=t;for(let i=0;i<e.length;i++){const o=u.Konva.getAngle(e[i]),a=Math.abs(o-t)%(2*Math.PI);Math.min(a,2*Math.PI-a)<n&&(r=o)}return r}(this.rotationSnaps(),o,a)-j.rotation);this._fitNodesInto(s,e)}}_handleMouseUp(e){this._removeEvents(e)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(e){var t;if(this._transforming){this._transforming=!1,"undefined"!==typeof window&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var n=this.getNode();w--,this._fire("transformend",{evt:e,target:n}),null===(t=this.getLayer())||void 0===t||t.batchDraw(),n&&this._nodes.forEach((t=>{var n;t._fire("transformend",{evt:e,target:t}),null===(n=t.getLayer())||void 0===n||n.batchDraw()})),this._movingAnchorName=null}}_fitNodesInto(e,t){var n=this._getNodeRect();if(r.Util._inRange(e.width,2*-this.padding()-1,1))return void this.update();if(r.Util._inRange(e.height,2*-this.padding()-1,1))return void this.update();var i=new r.Transform;if(i.rotate(u.Konva.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){const t=i.point({x:2*-this.padding(),y:0});e.x+=t.x,e.y+=t.y,e.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){const t=i.point({x:2*this.padding(),y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.width+=2*this.padding()}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){const t=i.point({x:0,y:2*-this.padding()});e.x+=t.x,e.y+=t.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=2*this.padding()}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const t=i.point({x:0,y:2*this.padding()});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=t.x,this._anchorDragOffset.y-=t.y,e.height+=2*this.padding()}if(this.boundBoxFunc()){const t=this.boundBoxFunc()(n,e);t?e=t:r.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const o=1e7,a=new r.Transform;a.translate(n.x,n.y),a.rotate(n.rotation),a.scale(n.width/o,n.height/o);const s=new r.Transform,l=e.width/o,c=e.height/o;!1===this.flipEnabled()?(s.translate(e.x,e.y),s.rotate(e.rotation),s.translate(e.width<0?e.width:0,e.height<0?e.height:0),s.scale(Math.abs(l),Math.abs(c))):(s.translate(e.x,e.y),s.rotate(e.rotation),s.scale(l,c));const d=s.multiply(a.invert());this._nodes.forEach((e=>{var t;const n=e.getParent().getAbsoluteTransform(),i=e.getTransform().copy();i.translate(e.offsetX(),e.offsetY());const o=new r.Transform;o.multiply(n.copy().invert()).multiply(d).multiply(n).multiply(i);const a=o.decompose();e.setAttrs(a),null===(t=e.getLayer())||void 0===t||t.batchDraw()})),this.rotation(r.Util._getRotation(e.rotation)),this._nodes.forEach((e=>{this._fire("transform",{evt:t,target:e}),e._fire("transform",{evt:t,target:e})})),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,t){this.findOne(e).setAttrs(t)}update(){var e,t=this._getNodeRect();this.rotation(r.Util._getRotation(t.rotation));var n=t.width,i=t.height,o=this.enabledAnchors(),a=this.resizeEnabled(),s=this.padding(),l=this.anchorSize();const u=this.find("._anchor");u.forEach((e=>{e.setAttrs({width:l,height:l,offsetX:l/2,offsetY:l/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})})),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:l/2+s,offsetY:l/2+s,visible:a&&o.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:l/2+s,visible:a&&o.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:l/2-s,offsetY:l/2+s,visible:a&&o.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:l/2+s,visible:a&&o.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:i/2,offsetX:l/2-s,visible:a&&o.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:l/2+s,offsetY:l/2-s,visible:a&&o.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:i,offsetY:l/2-s,visible:a&&o.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:i,offsetX:l/2-s,offsetY:l/2-s,visible:a&&o.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*r.Util._sign(i)-s,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const c=this.anchorStyleFunc();c&&u.forEach((e=>{c(e)})),null===(e=this.getLayer())||void 0===e||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),l.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return o.Node.prototype.toObject.call(this)}clone(e){return o.Node.prototype.clone.call(this,e)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}t.Transformer=C,C.isTransforming=()=>w>0,C.prototype.className="Transformer",(0,d._registerNode)(C),i.Factory.addGetterSetter(C,"enabledAnchors",y,(function(e){return e instanceof Array||r.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach((function(e){-1===y.indexOf(e)&&r.Util.warn("Unknown anchor name: "+e+". Available names are: "+y.join(", "))})),e||[]})),i.Factory.addGetterSetter(C,"flipEnabled",!0,(0,c.getBooleanValidator)()),i.Factory.addGetterSetter(C,"resizeEnabled",!0),i.Factory.addGetterSetter(C,"anchorSize",10,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(C,"rotateEnabled",!0),i.Factory.addGetterSetter(C,"rotateLineVisible",!0),i.Factory.addGetterSetter(C,"rotationSnaps",[]),i.Factory.addGetterSetter(C,"rotateAnchorOffset",50,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(C,"rotateAnchorCursor","crosshair"),i.Factory.addGetterSetter(C,"rotationSnapTolerance",5,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(C,"borderEnabled",!0),i.Factory.addGetterSetter(C,"anchorStroke","rgb(0, 161, 255)"),i.Factory.addGetterSetter(C,"anchorStrokeWidth",1,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(C,"anchorFill","white"),i.Factory.addGetterSetter(C,"anchorCornerRadius",0,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(C,"borderStroke","rgb(0, 161, 255)"),i.Factory.addGetterSetter(C,"borderStrokeWidth",1,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(C,"borderDash"),i.Factory.addGetterSetter(C,"keepRatio",!0),i.Factory.addGetterSetter(C,"shiftBehavior","default"),i.Factory.addGetterSetter(C,"centeredScaling",!1),i.Factory.addGetterSetter(C,"ignoreStroke",!1),i.Factory.addGetterSetter(C,"padding",0,(0,c.getNumberValidator)()),i.Factory.addGetterSetter(C,"node"),i.Factory.addGetterSetter(C,"nodes"),i.Factory.addGetterSetter(C,"boundBoxFunc"),i.Factory.addGetterSetter(C,"anchorDragBoundFunc"),i.Factory.addGetterSetter(C,"anchorStyleFunc"),i.Factory.addGetterSetter(C,"shouldOverdrawWholeArea",!1),i.Factory.addGetterSetter(C,"useSingleNodeRotation",!0),i.Factory.backCompat(C,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"})},9475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wedge=void 0;const r=n(630),i=n(7337),o=n(2225),a=n(8049),s=n(2225);class l extends i.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,o.Konva.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return 2*this.radius()}getHeight(){return 2*this.radius()}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}}t.Wedge=l,l.prototype.className="Wedge",l.prototype._centroid=!0,l.prototype._attrsAffectingSize=["radius"],(0,s._registerNode)(l),r.Factory.addGetterSetter(l,"radius",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"angle",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(l,"clockwise",!1),r.Factory.backCompat(l,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"})},4409:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,u=32,c=64,d=128,f=256,h=1/0,p=9007199254740991,g=NaN,m=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",c],["rearg",f]],y="[object Arguments]",b="[object Array]",x="[object Boolean]",w="[object Date]",C="[object Error]",S="[object Function]",k="[object GeneratorFunction]",_="[object Map]",E="[object Number]",P="[object Object]",j="[object Promise]",O="[object RegExp]",R="[object Set]",A="[object String]",T="[object Symbol]",N="[object WeakMap]",F="[object ArrayBuffer]",M="[object DataView]",L="[object Float32Array]",I="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",B="[object Int32Array]",U="[object Uint8Array]",V="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",G=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,Y=RegExp(X.source),Q=RegExp(Z.source),$=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Pe="a-z\\xdf-\\xf6\\xf8-\\xff",je="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Re="\\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",Ae="['\u2019]",Te="["+ke+"]",Ne="["+Re+"]",Fe="["+_e+"]",Me="\\d+",Le="["+Ee+"]",Ie="["+Pe+"]",De="[^"+ke+Re+Me+Ee+Pe+je+"]",ze="\\ud83c[\\udffb-\\udfff]",Be="[^"+ke+"]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+je+"]",We="\\u200d",Ge="(?:"+Ie+"|"+De+")",qe="(?:"+He+"|"+De+")",Ke="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Xe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+Fe+"|"+ze+")"+"?",Ye="["+Oe+"]?",Qe=Ye+Ze+("(?:"+We+"(?:"+[Be,Ue,Ve].join("|")+")"+Ye+Ze+")*"),$e="(?:"+[Le,Ue,Ve].join("|")+")"+Qe,Je="(?:"+[Be+Fe+"?",Fe,Ue,Ve,Te].join("|")+")",et=RegExp(Ae,"g"),tt=RegExp(Fe,"g"),nt=RegExp(ze+"(?="+ze+")|"+Je+Qe,"g"),rt=RegExp([He+"?"+Ie+"+"+Ke+"(?="+[Ne,He,"$"].join("|")+")",qe+"+"+Xe+"(?="+[Ne,He+Ge,"$"].join("|")+")",He+"?"+Ge+"+"+Ke,He+"+"+Xe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,$e].join("|"),"g"),it=RegExp("["+We+ke+_e+Oe+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[L]=lt[I]=lt[D]=lt[z]=lt[B]=lt[U]=lt[V]=lt[H]=lt[W]=!0,lt[y]=lt[b]=lt[F]=lt[x]=lt[M]=lt[w]=lt[C]=lt[S]=lt[_]=lt[E]=lt[P]=lt[O]=lt[R]=lt[A]=lt[N]=!1;var ut={};ut[y]=ut[b]=ut[F]=ut[M]=ut[x]=ut[w]=ut[L]=ut[I]=ut[D]=ut[z]=ut[B]=ut[_]=ut[E]=ut[P]=ut[O]=ut[R]=ut[A]=ut[T]=ut[U]=ut[V]=ut[H]=ut[W]=!0,ut[C]=ut[S]=ut[N]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,gt=ht||pt||Function("return this")(),mt=t&&!t.nodeType&&t,vt=mt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===mt,bt=yt&&ht.process,xt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),wt=xt&&xt.isArrayBuffer,Ct=xt&&xt.isDate,St=xt&&xt.isMap,kt=xt&&xt.isRegExp,_t=xt&&xt.isSet,Et=xt&&xt.isTypedArray;function Pt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function jt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Nt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Ft(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Lt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function It(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Dt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Kt("length");function Ut(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Vt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ht(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Vt(e,Gt,n)}function Wt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Gt(e){return e!==e}function qt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:g}function Kt(e){return function(t){return null==t?i:t[e]}}function Xt(e){return function(t){return null==e?i:e[t]}}function Zt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Yt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $t(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Jt(e){return function(t){return e(t)}}function en(e,t){return Mt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Xt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ct[e]}function ln(e){return it.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Bt(e)}function gn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=Xt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function e(t){var n=(t=null==t?gt:yn.defaults(gt.Object(),t,yn.pick(gt,at))).Array,r=t.Date,se=t.Error,ke=t.Function,_e=t.Math,Ee=t.Object,Pe=t.RegExp,je=t.String,Oe=t.TypeError,Re=n.prototype,Ae=ke.prototype,Te=Ee.prototype,Ne=t["__core-js_shared__"],Fe=Ae.toString,Me=Te.hasOwnProperty,Le=0,Ie=function(){var e=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),De=Te.toString,ze=Fe.call(Ee),Be=gt._,Ue=Pe("^"+Fe.call(Me).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=yt?t.Buffer:i,He=t.Symbol,We=t.Uint8Array,Ge=Ve?Ve.allocUnsafe:i,qe=cn(Ee.getPrototypeOf,Ee),Ke=Ee.create,Xe=Te.propertyIsEnumerable,Ze=Re.splice,Ye=He?He.isConcatSpreadable:i,Qe=He?He.iterator:i,$e=He?He.toStringTag:i,Je=function(){try{var e=fo(Ee,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=r&&r.now!==gt.Date.now&&r.now,ct=t.setTimeout!==gt.setTimeout&&t.setTimeout,ht=_e.ceil,pt=_e.floor,mt=Ee.getOwnPropertySymbols,vt=Ve?Ve.isBuffer:i,bt=t.isFinite,xt=Re.join,Bt=cn(Ee.keys,Ee),Xt=_e.max,bn=_e.min,xn=r.now,wn=t.parseInt,Cn=_e.random,Sn=Re.reverse,kn=fo(t,"DataView"),_n=fo(t,"Map"),En=fo(t,"Promise"),Pn=fo(t,"Set"),jn=fo(t,"WeakMap"),On=fo(Ee,"create"),Rn=jn&&new jn,An={},Tn=Do(kn),Nn=Do(_n),Fn=Do(En),Mn=Do(Pn),Ln=Do(jn),In=He?He.prototype:i,Dn=In?In.valueOf:i,zn=In?In.toString:i;function Bn(e){if(ts(e)&&!Wa(e)&&!(e instanceof Wn)){if(e instanceof Hn)return e;if(Me.call(e,"__wrapped__"))return zo(e)}return new Hn(e)}var Un=function(){function e(){}return function(t){if(!es(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Vn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Zn(e){var t=this.__data__=new qn(e);this.size=t.size}function Yn(e,t){var n=Wa(e),r=!n&&Ha(e),i=!n&&!r&&Xa(e),o=!n&&!r&&!i&&us(e),a=n||r||i||o,s=a?Qt(e.length,je):[],l=s.length;for(var u in e)!t&&!Me.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||bo(u,l))||s.push(u);return s}function Qn(e){var t=e.length;return t?e[Xr(0,t-1)]:i}function $n(e,t){return Mo(Oi(e),sr(t,0,e.length))}function Jn(e){return Mo(Oi(e))}function er(e,t,n){(n!==i&&!Ba(e[t],n)||n===i&&!(t in e))&&or(e,t,n)}function tr(e,t,n){var r=e[t];Me.call(e,t)&&Ba(r,n)&&(n!==i||t in e)||or(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function rr(e,t,n,r){return fr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function ir(e,t){return e&&Ri(t,As(t),e)}function or(e,t,n){"__proto__"==t&&Je?Je(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var r=-1,o=t.length,a=n(o),s=null==e;++r<o;)a[r]=s?i:Es(e,t[r]);return a}function sr(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function lr(e,t,n,r,o,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!es(e))return e;var d=Wa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Oi(e,s)}else{var f=go(e),h=f==S||f==k;if(Xa(e))return Si(e,l);if(f==P||f==y||h&&!o){if(s=u||h?{}:vo(e),!l)return u?function(e,t){return Ri(e,po(e),t)}(e,function(e,t){return e&&Ri(t,Ts(t),e)}(s,e)):function(e,t){return Ri(e,ho(e),t)}(e,ir(s,e))}else{if(!ut[f])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case F:return ki(e);case x:case w:return new r(+e);case M:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case I:case D:case z:case B:case U:case V:case H:case W:return _i(e,n);case _:return new r;case E:case A:return new r(e);case O:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new r;case T:return i=e,Dn?Ee(Dn.call(i)):{}}var i}(e,f,l)}}a||(a=new Zn);var p=a.get(e);if(p)return p;a.set(e,s),as(e)?e.forEach((function(r){s.add(lr(r,t,n,r,e,a))})):ns(e)&&e.forEach((function(r,i){s.set(i,lr(r,t,n,i,e,a))}));var g=d?i:(c?u?io:ro:u?Ts:As)(e);return Ot(g||e,(function(r,i){g&&(r=e[i=r]),tr(s,i,lr(r,t,n,i,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Oe(o);return Ao((function(){e.apply(i,n)}),t)}function dr(e,t,n,r){var i=-1,o=Nt,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Mt(t,Jt(n))),r?(o=Ft,a=!1):t.length>=200&&(o=tn,a=!1,t=new Xn(t));e:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d===d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else o(t,d,r)||l.push(c)}return l}Bn.templateSettings={escape:$,evaluate:J,interpolate:ee,variable:"",imports:{_:Bn}},Bn.prototype=Vn.prototype,Bn.prototype.constructor=Bn,Hn.prototype=Un(Vn.prototype),Hn.prototype.constructor=Hn,Wn.prototype=Un(Vn.prototype),Wn.prototype.constructor=Wn,Gn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?i:n}return Me.call(t,e)?t[e]:i},Gn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==i:Me.call(t,e)},Gn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===i?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,!0)},qn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?i:t[n][1]},qn.prototype.has=function(e){return nr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(_n||qn),string:new Gn}},Kn.prototype.delete=function(e){var t=uo(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return uo(this,e).get(e)},Kn.prototype.has=function(e){return uo(this,e).has(e)},Kn.prototype.set=function(e,t){var n=uo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,a),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new qn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ni(xr),hr=Ni(wr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(l===i?s===s&&!ls(s):n(s,l)))var l=s,u=a}return u}function mr(e,t){var n=[];return fr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function vr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=yo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?vr(s,t-1,n,r,i):Lt(i,s):r||(i[i.length]=s)}return i}var yr=Fi(),br=Fi(!0);function xr(e,t){return e&&yr(e,t,As)}function wr(e,t){return e&&br(e,t,As)}function Cr(e,t){return Tt(t,(function(t){return Qa(e[t])}))}function Sr(e,t){for(var n=0,r=(t=bi(t,e)).length;null!=e&&n<r;)e=e[Io(t[n++])];return n&&n==r?e:i}function kr(e,t,n){var r=t(e);return Wa(e)?r:Lt(r,n(e))}function _r(e){return null==e?e===i?"[object Undefined]":"[object Null]":$e&&$e in Ee(e)?function(e){var t=Me.call(e,$e),n=e[$e];try{e[$e]=i;var r=!0}catch(a){}var o=De.call(e);r&&(t?e[$e]=n:delete e[$e]);return o}(e):function(e){return De.call(e)}(e)}function Er(e,t){return e>t}function Pr(e,t){return null!=e&&Me.call(e,t)}function jr(e,t){return null!=e&&t in Ee(e)}function Or(e,t,r){for(var o=r?Ft:Nt,a=e[0].length,s=e.length,l=s,u=n(s),c=1/0,d=[];l--;){var f=e[l];l&&t&&(f=Mt(f,Jt(t))),c=bn(f.length,c),u[l]=!r&&(t||a>=120&&f.length>=120)?new Xn(l&&f):i}f=e[0];var h=-1,p=u[0];e:for(;++h<a&&d.length<c;){var g=f[h],m=t?t(g):g;if(g=r||0!==g?g:0,!(p?tn(p,m):o(d,m,r))){for(l=s;--l;){var v=u[l];if(!(v?tn(v,m):o(e[l],m,r)))continue e}p&&p.push(m),d.push(g)}}return d}function Rr(e,t,n){var r=null==(e=jo(e,t=bi(t,e)))?e:e[Io(Yo(t))];return null==r?i:Pt(r,e,n)}function Ar(e){return ts(e)&&_r(e)==y}function Tr(e,t,n,r,o){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!==e&&t!==t:function(e,t,n,r,o,a){var s=Wa(e),l=Wa(t),u=s?b:go(e),c=l?b:go(t),d=(u=u==y?P:u)==P,f=(c=c==y?P:c)==P,h=u==c;if(h&&Xa(e)){if(!Xa(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Zn),s||us(e)?to(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case F:return!(e.byteLength!=t.byteLength||!o(new We(e),new We(t)));case x:case w:case E:return Ba(+e,+t);case C:return e.name==t.name&&e.message==t.message;case O:case A:return e==t+"";case _:var s=un;case R:var l=1&r;if(s||(s=fn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=to(s(e),s(t),r,i,o,a);return a.delete(e),c;case T:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,u,n,r,o,a);if(!(1&n)){var p=d&&Me.call(e,"__wrapped__"),g=f&&Me.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return a||(a=new Zn),o(m,v,n,r,a)}}if(!h)return!1;return a||(a=new Zn),function(e,t,n,r,o,a){var s=1&n,l=ro(e),u=l.length,c=ro(t),d=c.length;if(u!=d&&!s)return!1;var f=u;for(;f--;){var h=l[f];if(!(s?h in t:Me.call(t,h)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);var v=s;for(;++f<u;){var y=e[h=l[f]],b=t[h];if(r)var x=s?r(b,y,h,t,e,a):r(y,b,h,e,t,a);if(!(x===i?y===b||o(y,b,n,r,a):x)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var w=e.constructor,C=t.constructor;w==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof C&&C instanceof C||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,o,a)}(e,t,n,r,Tr,o))}function Nr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ee(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var u=(l=n[o])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===i&&!(u in e))return!1}else{var f=new Zn;if(r)var h=r(c,d,u,e,t,f);if(!(h===i?Tr(d,c,3,r,f):h))return!1}}return!0}function Fr(e){return!(!es(e)||(t=e,Ie&&Ie in t))&&(Qa(e)?Ue:ye).test(Do(e));var t}function Mr(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Wa(e)?Ur(e[0],e[1]):Br(e):fl(e)}function Lr(e){if(!ko(e))return Bt(e);var t=[];for(var n in Ee(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ir(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=ko(e),n=[];for(var r in e)("constructor"!=r||!t&&Me.call(e,r))&&n.push(r);return n}function Dr(e,t){return e<t}function zr(e,t){var r=-1,i=qa(e)?n(e.length):[];return fr(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Br(e){var t=co(e);return 1==t.length&&t[0][2]?Eo(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Ur(e,t){return wo(e)&&_o(t)?Eo(Io(e),t):function(n){var r=Es(n,e);return r===i&&r===t?Ps(n,e):Tr(t,r,3)}}function Vr(e,t,n,r,o){e!==t&&yr(t,(function(a,s){if(o||(o=new Zn),es(a))!function(e,t,n,r,o,a,s){var l=Oo(e,n),u=Oo(t,n),c=s.get(u);if(c)return void er(e,n,c);var d=a?a(l,u,n+"",e,t,s):i,f=d===i;if(f){var h=Wa(u),p=!h&&Xa(u),g=!h&&!p&&us(u);d=u,h||p||g?Wa(l)?d=l:Ka(l)?d=Oi(l):p?(f=!1,d=Si(u,!0)):g?(f=!1,d=_i(u,!0)):d=[]:is(u)||Ha(u)?(d=l,Ha(l)?d=vs(l):es(l)&&!Qa(l)||(d=vo(u))):f=!1}f&&(s.set(u,d),o(d,u,r,a,s),s.delete(u));er(e,n,d)}(e,t,s,n,Vr,r,o);else{var l=r?r(Oo(e,s),a,s+"",e,t,o):i;l===i&&(l=a),er(e,s,l)}}),Ts)}function Hr(e,t){var n=e.length;if(n)return bo(t+=t<0?n:0,n)?e[t]:i}function Wr(e,t,n){t=t.length?Mt(t,(function(e){return Wa(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[rl];var r=-1;t=Mt(t,Jt(lo()));var i=zr(e,(function(e,n,i){var o=Mt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var l=Ei(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Sr(e,a);n(s,a)&&Jr(o,bi(a,e),s)}return o}function qr(e,t,n,r){var i=r?Wt:Ht,o=-1,a=t.length,s=e;for(e===t&&(t=Oi(t)),n&&(s=Mt(e,Jt(n)));++o<a;)for(var l=0,u=t[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&Ze.call(s,l,1),Ze.call(e,l,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;bo(i)?Ze.call(e,i,1):di(e,i)}}return e}function Xr(e,t){return e+pt(Cn()*(t-e+1))}function Zr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return To(Po(e,t,rl),e+"")}function Qr(e){return Qn(Bs(e))}function $r(e,t){var n=Bs(e);return Mo(n,sr(t,0,n.length))}function Jr(e,t,n,r){if(!es(e))return e;for(var o=-1,a=(t=bi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var u=Io(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=s){var d=l[u];(c=r?r(d,u,l):i)===i&&(c=es(d)?d:bo(t[o+1])?[]:{})}tr(l,u,c),l=l[u]}return e}var ei=Rn?function(e,t){return Rn.set(e,t),e}:rl,ti=Je?function(e,t){return Je(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:rl;function ni(e){return Mo(Bs(e))}function ri(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function ii(e,t){var n;return fr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function oi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ls(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ai(e,t,rl,n)}function ai(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,l=null===t,u=ls(t),c=t===i;o<a;){var d=pt((o+a)/2),f=n(e[d]),h=f!==i,p=null===f,g=f===f,m=ls(f);if(s)var v=r||g;else v=c?g&&(r||h):l?g&&h&&(r||!p):u?g&&h&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);v?o=d+1:a=d}return bn(a,4294967294)}function si(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ba(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function li(e){return"number"==typeof e?e:ls(e)?g:+e}function ui(e){if("string"==typeof e)return e;if(Wa(e))return Mt(e,ui)+"";if(ls(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ci(e,t,n){var r=-1,i=Nt,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Ft;else if(o>=200){var u=t?null:Zi(e);if(u)return fn(u);a=!1,i=tn,l=new Xn}else l=t?[]:s;e:for(;++r<o;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else i(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function di(e,t){return null==(e=jo(e,t=bi(t,e)))||delete e[Io(Yo(t))]}function fi(e,t,n,r){return Jr(e,t,n(Sr(e,t)),r)}function hi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ri(e,r?0:o,r?o+1:i):ri(e,r?o+1:0,r?i:o)}function pi(e,t){var n=e;return n instanceof Wn&&(n=n.value()),It(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),n)}function gi(e,t,r){var i=e.length;if(i<2)return i?ci(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],l=-1;++l<i;)l!=o&&(a[o]=dr(a[o]||s,e[l],t,r));return ci(vr(a,1),t,r)}function mi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var l=r<a?t[r]:i;n(s,e[r],l)}return s}function vi(e){return Ka(e)?e:[]}function yi(e){return"function"==typeof e?e:rl}function bi(e,t){return Wa(e)?e:wo(e,t)?[e]:Lo(ys(e))}var xi=Yr;function wi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ri(e,t,n)}var Ci=nt||function(e){return gt.clearTimeout(e)};function Si(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function ki(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function _i(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=ls(e),s=t!==i,l=null===t,u=t===t,c=ls(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}function Pi(e,t,r,i){for(var o=-1,a=e.length,s=r.length,l=-1,u=t.length,c=Xt(a-s,0),d=n(u+c),f=!i;++l<u;)d[l]=t[l];for(;++o<s;)(f||o<a)&&(d[r[o]]=e[o]);for(;c--;)d[l++]=e[o++];return d}function ji(e,t,r,i){for(var o=-1,a=e.length,s=-1,l=r.length,u=-1,c=t.length,d=Xt(a-l,0),f=n(d+c),h=!i;++o<d;)f[o]=e[o];for(var p=o;++u<c;)f[p+u]=t[u];for(;++s<l;)(h||o<a)&&(f[p+r[s]]=e[o++]);return f}function Oi(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Ri(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):i;u===i&&(u=e[l]),o?or(n,l,u):tr(n,l,u)}return n}function Ai(e,t){return function(n,r){var i=Wa(n)?jt:rr,o=t?t():{};return i(n,e,lo(r,2),o)}}function Ti(e){return Yr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&xo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ee(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Ni(e,t){return function(n,r){if(null==n)return n;if(!qa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Ee(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Fi(e){return function(t,n,r){for(var i=-1,o=Ee(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function Mi(e){return function(t){var n=ln(t=ys(t))?gn(t):i,r=n?n[0]:t.charAt(0),o=n?wi(n,1).join(""):t.slice(1);return r[e]()+o}}function Li(e){return function(t){return It(Qs(Hs(t).replace(et,"")),e,"")}}function Ii(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Un(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function Di(e){return function(t,n,r){var o=Ee(t);if(!qa(t)){var a=lo(n,3);t=As(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function zi(e){return no((function(t){var n=t.length,r=n,a=Hn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Oe(o);if(a&&!l&&"wrapper"==ao(s))var l=new Hn([],!0)}for(r=l?r:n;++r<n;){var u=ao(s=t[r]),c="wrapper"==u?oo(s):i;l=c&&Co(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ao(c[0])].apply(l,c[3]):1==s.length&&Co(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Wa(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Bi(e,t,r,o,a,s,l,u,c,f){var h=t&d,p=1&t,g=2&t,m=24&t,v=512&t,y=g?i:Ii(e);return function d(){for(var b=arguments.length,x=n(b),w=b;w--;)x[w]=arguments[w];if(m)var C=so(d),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,C);if(o&&(x=Pi(x,o,a,m)),s&&(x=ji(x,s,l,m)),b-=S,m&&b<f){var k=dn(x,C);return Ki(e,t,Bi,d.placeholder,r,x,k,u,c,f-b)}var _=p?r:this,E=g?_[e]:e;return b=x.length,u?x=function(e,t){var n=e.length,r=bn(t.length,n),o=Oi(e);for(;r--;){var a=t[r];e[r]=bo(a,n)?o[a]:i}return e}(x,u):v&&b>1&&x.reverse(),h&&c<b&&(x.length=c),this&&this!==gt&&this instanceof d&&(E=y||Ii(E)),E.apply(_,x)}}function Ui(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Vi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ui(n),r=ui(r)):(n=li(n),r=li(r)),o=e(n,r)}return o}}function Hi(e){return no((function(t){return t=Mt(t,Jt(lo())),Yr((function(n){var r=this;return e(t,(function(e){return Pt(e,r,n)}))}))}))}function Wi(e,t){var n=(t=t===i?" ":ui(t)).length;if(n<2)return n?Zr(t,e):t;var r=Zr(t,ht(e/pn(t)));return ln(t)?wi(gn(r),0,e).join(""):r.slice(0,e)}function Gi(e){return function(t,r,o){return o&&"number"!=typeof o&&xo(t,r,o)&&(r=o=i),t=hs(t),r===i?(r=t,t=0):r=hs(r),function(e,t,r,i){for(var o=-1,a=Xt(ht((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,o=o===i?t<r?1:-1:hs(o),e)}}function qi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Ki(e,t,n,r,o,a,s,l,d,f){var h=8&t;t|=h?u:c,4&(t&=~(h?c:u))||(t&=-4);var p=[e,t,o,h?a:i,h?s:i,h?i:a,h?i:s,l,d,f],g=n.apply(i,p);return Co(e)&&Ro(g,p),g.placeholder=r,No(g,e,t)}function Xi(e){var t=_e[e];return function(e,n){if(e=ms(e),(n=null==n?0:bn(ps(n),292))&&bt(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Zi=Pn&&1/fn(new Pn([,-0]))[1]==h?function(e){return new Pn(e)}:ll;function Yi(e){return function(t){var n=go(t);return n==_?un(t):n==R?hn(t):function(e,t){return Mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qi(e,t,r,a,h,p,g,m){var v=2&t;if(!v&&"function"!=typeof e)throw new Oe(o);var y=a?a.length:0;if(y||(t&=-97,a=h=i),g=g===i?g:Xt(ps(g),0),m=m===i?m:ps(m),y-=h?h.length:0,t&c){var b=a,x=h;a=h=i}var w=v?i:oo(e),C=[e,t,r,a,h,b,x,p,g,m];if(w&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Pi(u,l,t[4]):l,e[4]=u?dn(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?ji(u,l,t[6]):l,e[6]=u?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(C,w),e=C[0],t=C[1],r=C[2],a=C[3],h=C[4],!(m=C[9]=C[9]===i?v?0:e.length:Xt(C[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==l?function(e,t,r){var o=Ii(e);return function a(){for(var s=arguments.length,l=n(s),u=s,c=so(a);u--;)l[u]=arguments[u];var d=s<3&&l[0]!==c&&l[s-1]!==c?[]:dn(l,c);return(s-=d.length)<r?Ki(e,t,Bi,a.placeholder,i,l,d,i,i,r-s):Pt(this&&this!==gt&&this instanceof a?o:e,this,l)}}(e,t,m):t!=u&&33!=t||h.length?Bi.apply(i,C):function(e,t,r,i){var o=1&t,a=Ii(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=i.length,d=n(c+l),f=this&&this!==gt&&this instanceof t?a:e;++u<c;)d[u]=i[u];for(;l--;)d[u++]=arguments[++s];return Pt(f,o?r:this,d)}}(e,t,r,a);else var S=function(e,t,n){var r=1&t,i=Ii(e);return function t(){return(this&&this!==gt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return No((w?ei:Ro)(S,C),e,t)}function $i(e,t,n,r){return e===i||Ba(e,Te[n])&&!Me.call(r,n)?t:e}function Ji(e,t,n,r,o,a){return es(e)&&es(t)&&(a.set(t,e),Vr(e,t,i,Ji,a),a.delete(t)),e}function eo(e){return is(e)?i:e}function to(e,t,n,r,o,a){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=2&n?new Xn:i;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],m=t[f];if(r)var v=s?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(v!==i){if(v)continue;h=!1;break}if(p){if(!zt(t,(function(e,t){if(!tn(p,t)&&(g===e||o(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==m&&!o(g,m,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function no(e){return To(Po(e,i,Go),e+"")}function ro(e){return kr(e,As,ho)}function io(e){return kr(e,Ts,po)}var oo=Rn?function(e){return Rn.get(e)}:ll;function ao(e){for(var t=e.name+"",n=An[t],r=Me.call(An,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function so(e){return(Me.call(Bn,"placeholder")?Bn:e).placeholder}function lo(){var e=Bn.iteratee||il;return e=e===il?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function uo(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function co(e){for(var t=As(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,_o(i)]}return t}function fo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Fr(n)?n:i}var ho=mt?function(e){return null==e?[]:(e=Ee(e),Tt(mt(e),(function(t){return Xe.call(e,t)})))}:gl,po=mt?function(e){for(var t=[];e;)Lt(t,ho(e)),e=qe(e);return t}:gl,go=_r;function mo(e,t,n){for(var r=-1,i=(t=bi(t,e)).length,o=!1;++r<i;){var a=Io(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ja(i)&&bo(a,i)&&(Wa(e)||Ha(e))}function vo(e){return"function"!=typeof e.constructor||ko(e)?{}:Un(qe(e))}function yo(e){return Wa(e)||Ha(e)||!!(Ye&&e&&e[Ye])}function bo(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function xo(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?qa(n)&&bo(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function wo(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ls(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ee(t))}function Co(e){var t=ao(e),n=Bn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=oo(n);return!!r&&e===r[0]}(kn&&go(new kn(new ArrayBuffer(1)))!=M||_n&&go(new _n)!=_||En&&go(En.resolve())!=j||Pn&&go(new Pn)!=R||jn&&go(new jn)!=N)&&(go=function(e){var t=_r(e),n=t==P?e.constructor:i,r=n?Do(n):"";if(r)switch(r){case Tn:return M;case Nn:return _;case Fn:return j;case Mn:return R;case Ln:return N}return t});var So=Ne?Qa:ml;function ko(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)}function _o(e){return e===e&&!es(e)}function Eo(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ee(n)))}}function Po(e,t,r){return t=Xt(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=Xt(i.length-t,0),s=n(a);++o<a;)s[o]=i[t+o];o=-1;for(var l=n(t+1);++o<t;)l[o]=i[o];return l[t]=r(s),Pt(e,this,l)}}function jo(e,t){return t.length<2?e:Sr(e,ri(t,0,-1))}function Oo(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Ro=Fo(ei),Ao=ct||function(e,t){return gt.setTimeout(e,t)},To=Fo(ti);function No(e,t,n){var r=t+"";return To(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(v,(function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(ce):[]}(r),n)))}function Fo(e){var t=0,n=0;return function(){var r=xn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Mo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Xr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Lo=function(e){var t=Fa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,i){t.push(r?i.replace(he,"$1"):n||e)})),t}));function Io(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Do(e){if(null!=e){try{return Fe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function zo(e){if(e instanceof Wn)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=Oi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bo=Yr((function(e,t){return Ka(e)?dr(e,vr(t,1,Ka,!0)):[]})),Uo=Yr((function(e,t){var n=Yo(t);return Ka(n)&&(n=i),Ka(e)?dr(e,vr(t,1,Ka,!0),lo(n,2)):[]})),Vo=Yr((function(e,t){var n=Yo(t);return Ka(n)&&(n=i),Ka(e)?dr(e,vr(t,1,Ka,!0),i,n):[]}));function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=Xt(r+i,0)),Vt(e,lo(t,3),i)}function Wo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ps(n),o=n<0?Xt(r+o,0):bn(o,r-1)),Vt(e,lo(t,3),o,!0)}function Go(e){return(null==e?0:e.length)?vr(e,1):[]}function qo(e){return e&&e.length?e[0]:i}var Ko=Yr((function(e){var t=Mt(e,vi);return t.length&&t[0]===e[0]?Or(t):[]})),Xo=Yr((function(e){var t=Yo(e),n=Mt(e,vi);return t===Yo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Or(n,lo(t,2)):[]})),Zo=Yr((function(e){var t=Yo(e),n=Mt(e,vi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Or(n,i,t):[]}));function Yo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qo=Yr($o);function $o(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var Jo=no((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Kr(e,Mt(t,(function(e){return bo(e,n)?+e:e})).sort(Ei)),r}));function ea(e){return null==e?e:Sn.call(e)}var ta=Yr((function(e){return ci(vr(e,1,Ka,!0))})),na=Yr((function(e){var t=Yo(e);return Ka(t)&&(t=i),ci(vr(e,1,Ka,!0),lo(t,2))})),ra=Yr((function(e){var t=Yo(e);return t="function"==typeof t?t:i,ci(vr(e,1,Ka,!0),i,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Ka(e))return t=Xt(e.length,t),!0})),Qt(t,(function(t){return Mt(e,Kt(t))}))}function oa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Mt(n,(function(e){return Pt(t,i,e)}))}var aa=Yr((function(e,t){return Ka(e)?dr(e,t):[]})),sa=Yr((function(e){return gi(Tt(e,Ka))})),la=Yr((function(e){var t=Yo(e);return Ka(t)&&(t=i),gi(Tt(e,Ka),lo(t,2))})),ua=Yr((function(e){var t=Yo(e);return t="function"==typeof t?t:i,gi(Tt(e,Ka),i,t)})),ca=Yr(ia);var da=Yr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,oa(e,n)}));function fa(e){var t=Bn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var pa=no((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&bo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ga=Ai((function(e,t,n){Me.call(e,n)?++e[n]:or(e,n,1)}));var ma=Di(Ho),va=Di(Wo);function ya(e,t){return(Wa(e)?Ot:fr)(e,lo(t,3))}function ba(e,t){return(Wa(e)?Rt:hr)(e,lo(t,3))}var xa=Ai((function(e,t,n){Me.call(e,n)?e[n].push(t):or(e,n,[t])}));var wa=Yr((function(e,t,r){var i=-1,o="function"==typeof t,a=qa(e)?n(e.length):[];return fr(e,(function(e){a[++i]=o?Pt(t,e,r):Rr(e,t,r)})),a})),Ca=Ai((function(e,t,n){or(e,n,t)}));function Sa(e,t){return(Wa(e)?Mt:zr)(e,lo(t,3))}var ka=Ai((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var _a=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xo(e,t[0],t[1])?t=[]:n>2&&xo(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,vr(t,1),[])})),Ea=it||function(){return gt.Date.now()};function Pa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Qi(e,d,i,i,i,i,t)}function ja(e,t){var n;if("function"!=typeof t)throw new Oe(o);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Oa=Yr((function(e,t,n){var r=1;if(n.length){var i=dn(n,so(Oa));r|=u}return Qi(e,r,t,n,i)})),Ra=Yr((function(e,t,n){var r=3;if(n.length){var i=dn(n,so(Ra));r|=u}return Qi(t,r,e,n,i)}));function Aa(e,t,n){var r,a,s,l,u,c,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new Oe(o);function g(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||h&&e-d>=s}function v(){var e=Ea();if(m(e))return y(e);u=Ao(v,function(e){var n=t-(e-c);return h?bn(n,s-(e-d)):n}(e))}function y(e){return u=i,p&&r?g(e):(r=a=i,l)}function b(){var e=Ea(),n=m(e);if(r=arguments,a=this,c=e,n){if(u===i)return function(e){return d=e,u=Ao(v,t),f?g(e):l}(c);if(h)return Ci(u),u=Ao(v,t),g(c)}return u===i&&(u=Ao(v,t)),l}return t=ms(t)||0,es(n)&&(f=!!n.leading,s=(h="maxWait"in n)?Xt(ms(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==i&&Ci(u),d=0,r=c=a=u=i},b.flush=function(){return u===i?l:y(Ea())},b}var Ta=Yr((function(e,t){return cr(e,1,t)})),Na=Yr((function(e,t,n){return cr(e,ms(t)||0,n)}));function Fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fa.Cache||Kn),n}function Ma(e){if("function"!=typeof e)throw new Oe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fa.Cache=Kn;var La=xi((function(e,t){var n=(t=1==t.length&&Wa(t[0])?Mt(t[0],Jt(lo())):Mt(vr(t,1),Jt(lo()))).length;return Yr((function(r){for(var i=-1,o=bn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Pt(e,this,r)}))})),Ia=Yr((function(e,t){var n=dn(t,so(Ia));return Qi(e,u,i,t,n)})),Da=Yr((function(e,t){var n=dn(t,so(Da));return Qi(e,c,i,t,n)})),za=no((function(e,t){return Qi(e,f,i,i,i,t)}));function Ba(e,t){return e===t||e!==e&&t!==t}var Ua=qi(Er),Va=qi((function(e,t){return e>=t})),Ha=Ar(function(){return arguments}())?Ar:function(e){return ts(e)&&Me.call(e,"callee")&&!Xe.call(e,"callee")},Wa=n.isArray,Ga=wt?Jt(wt):function(e){return ts(e)&&_r(e)==F};function qa(e){return null!=e&&Ja(e.length)&&!Qa(e)}function Ka(e){return ts(e)&&qa(e)}var Xa=vt||ml,Za=Ct?Jt(Ct):function(e){return ts(e)&&_r(e)==w};function Ya(e){if(!ts(e))return!1;var t=_r(e);return t==C||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Qa(e){if(!es(e))return!1;var t=_r(e);return t==S||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==ps(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=St?Jt(St):function(e){return ts(e)&&go(e)==_};function rs(e){return"number"==typeof e||ts(e)&&_r(e)==E}function is(e){if(!ts(e)||_r(e)!=P)return!1;var t=qe(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Fe.call(n)==ze}var os=kt?Jt(kt):function(e){return ts(e)&&_r(e)==O};var as=_t?Jt(_t):function(e){return ts(e)&&go(e)==R};function ss(e){return"string"==typeof e||!Wa(e)&&ts(e)&&_r(e)==A}function ls(e){return"symbol"==typeof e||ts(e)&&_r(e)==T}var us=Et?Jt(Et):function(e){return ts(e)&&Ja(e.length)&&!!lt[_r(e)]};var cs=qi(Dr),ds=qi((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(qa(e))return ss(e)?gn(e):Oi(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=go(e);return(t==_?un:t==R?fn:Bs)(e)}function hs(e){return e?(e=ms(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function ps(e){var t=hs(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?sr(ps(e),0,m):0}function ms(e){if("number"==typeof e)return e;if(ls(e))return g;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=ve.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):me.test(e)?g:+e}function vs(e){return Ri(e,Ts(e))}function ys(e){return null==e?"":ui(e)}var bs=Ti((function(e,t){if(ko(t)||qa(t))Ri(t,As(t),e);else for(var n in t)Me.call(t,n)&&tr(e,n,t[n])})),xs=Ti((function(e,t){Ri(t,Ts(t),e)})),ws=Ti((function(e,t,n,r){Ri(t,Ts(t),e,r)})),Cs=Ti((function(e,t,n,r){Ri(t,As(t),e,r)})),Ss=no(ar);var ks=Yr((function(e,t){e=Ee(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&xo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ts(a),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===i||Ba(d,Te[c])&&!Me.call(e,c))&&(e[c]=a[c])}return e})),_s=Yr((function(e){return e.push(i,Ji),Pt(Fs,i,e)}));function Es(e,t,n){var r=null==e?i:Sr(e,t);return r===i?n:r}function Ps(e,t){return null!=e&&mo(e,t,jr)}var js=Ui((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),el(rl)),Os=Ui((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]}),lo),Rs=Yr(Rr);function As(e){return qa(e)?Yn(e):Lr(e)}function Ts(e){return qa(e)?Yn(e,!0):Ir(e)}var Ns=Ti((function(e,t,n){Vr(e,t,n)})),Fs=Ti((function(e,t,n,r){Vr(e,t,n,r)})),Ms=no((function(e,t){var n={};if(null==e)return n;var r=!1;t=Mt(t,(function(t){return t=bi(t,e),r||(r=t.length>1),t})),Ri(e,io(e),n),r&&(n=lr(n,7,eo));for(var i=t.length;i--;)di(n,t[i]);return n}));var Ls=no((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Ps(e,n)}))}(e,t)}));function Is(e,t){if(null==e)return{};var n=Mt(io(e),(function(e){return[e]}));return t=lo(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var Ds=Yi(As),zs=Yi(Ts);function Bs(e){return null==e?[]:en(e,As(e))}var Us=Li((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return Ys(ys(e).toLowerCase())}function Hs(e){return(e=ys(e))&&e.replace(we,on).replace(tt,"")}var Ws=Li((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gs=Li((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qs=Mi("toLowerCase");var Ks=Li((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=Li((function(e,t,n){return e+(n?" ":"")+Ys(t)}));var Zs=Li((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ys=Mi("toUpperCase");function Qs(e,t,n){return e=ys(e),(t=n?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var $s=Yr((function(e,t){try{return Pt(e,i,t)}catch(n){return Ya(n)?n:new se(n)}})),Js=no((function(e,t){return Ot(t,(function(t){t=Io(t),or(e,t,Oa(e[t],e))})),e}));function el(e){return function(){return e}}var tl=zi(),nl=zi(!0);function rl(e){return e}function il(e){return Mr("function"==typeof e?e:lr(e,1))}var ol=Yr((function(e,t){return function(n){return Rr(n,e,t)}})),al=Yr((function(e,t){return function(n){return Rr(e,n,t)}}));function sl(e,t,n){var r=As(t),i=Cr(t,r);null!=n||es(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Cr(t,As(t)));var o=!(es(n)&&"chain"in n)||!!n.chain,a=Qa(e);return Ot(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Oi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function ll(){}var ul=Hi(Mt),cl=Hi(At),dl=Hi(zt);function fl(e){return wo(e)?Kt(Io(e)):function(e){return function(t){return Sr(t,e)}}(e)}var hl=Gi(),pl=Gi(!0);function gl(){return[]}function ml(){return!1}var vl=Vi((function(e,t){return e+t}),0),yl=Xi("ceil"),bl=Vi((function(e,t){return e/t}),1),xl=Xi("floor");var wl=Vi((function(e,t){return e*t}),1),Cl=Xi("round"),Sl=Vi((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Pa,Bn.assign=bs,Bn.assignIn=xs,Bn.assignInWith=ws,Bn.assignWith=Cs,Bn.at=Ss,Bn.before=ja,Bn.bind=Oa,Bn.bindAll=Js,Bn.bindKey=Ra,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Bn.chain=fa,Bn.chunk=function(e,t,r){t=(r?xo(e,t,r):t===i)?1:Xt(ps(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=n(ht(o/t));a<o;)l[s++]=ri(e,a,a+=t);return l},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Lt(Wa(r)?Oi(r):[r],vr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=lo();return e=t?Mt(e,(function(e){if("function"!=typeof e[1])throw new Oe(o);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Pt(i[0],this,n))return Pt(i[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=As(e);return function(n){return ur(n,e,t)}}(lr(e,1))},Bn.constant=el,Bn.countBy=ga,Bn.create=function(e,t){var n=Un(e);return null==t?n:ir(n,t)},Bn.curry=function e(t,n,r){var o=Qi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Bn.curryRight=function e(t,n,r){var o=Qi(t,l,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Bn.debounce=Aa,Bn.defaults=ks,Bn.defaultsDeep=_s,Bn.defer=Ta,Bn.delay=Na,Bn.difference=Bo,Bn.differenceBy=Uo,Bn.differenceWith=Vo,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=n||t===i?1:ps(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,0,(t=r-(t=n||t===i?1:ps(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?hi(e,lo(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?hi(e,lo(t,3),!0):[]},Bn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&xo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ps(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ps(r))<0&&(r+=o),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Wa(e)?Tt:mr)(e,lo(t,3))},Bn.flatMap=function(e,t){return vr(Sa(e,t),1)},Bn.flatMapDeep=function(e,t){return vr(Sa(e,t),h)},Bn.flatMapDepth=function(e,t,n){return n=n===i?1:ps(n),vr(Sa(e,t),n)},Bn.flatten=Go,Bn.flattenDeep=function(e){return(null==e?0:e.length)?vr(e,h):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?vr(e,t=t===i?1:ps(t)):[]},Bn.flip=function(e){return Qi(e,512)},Bn.flow=tl,Bn.flowRight=nl,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Bn.functions=function(e){return null==e?[]:Cr(e,As(e))},Bn.functionsIn=function(e){return null==e?[]:Cr(e,Ts(e))},Bn.groupBy=xa,Bn.initial=function(e){return(null==e?0:e.length)?ri(e,0,-1):[]},Bn.intersection=Ko,Bn.intersectionBy=Xo,Bn.intersectionWith=Zo,Bn.invert=js,Bn.invertBy=Os,Bn.invokeMap=wa,Bn.iteratee=il,Bn.keyBy=Ca,Bn.keys=As,Bn.keysIn=Ts,Bn.map=Sa,Bn.mapKeys=function(e,t){var n={};return t=lo(t,3),xr(e,(function(e,r,i){or(n,t(e,r,i),e)})),n},Bn.mapValues=function(e,t){var n={};return t=lo(t,3),xr(e,(function(e,r,i){or(n,r,t(e,r,i))})),n},Bn.matches=function(e){return Br(lr(e,1))},Bn.matchesProperty=function(e,t){return Ur(e,lr(t,1))},Bn.memoize=Fa,Bn.merge=Ns,Bn.mergeWith=Fs,Bn.method=ol,Bn.methodOf=al,Bn.mixin=sl,Bn.negate=Ma,Bn.nthArg=function(e){return e=ps(e),Yr((function(t){return Hr(t,e)}))},Bn.omit=Ms,Bn.omitBy=function(e,t){return Is(e,Ma(lo(t)))},Bn.once=function(e){return ja(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(n=r?i:n)||(n=null==n?[]:[n]),Wr(e,t,n))},Bn.over=ul,Bn.overArgs=La,Bn.overEvery=cl,Bn.overSome=dl,Bn.partial=Ia,Bn.partialRight=Da,Bn.partition=ka,Bn.pick=Ls,Bn.pickBy=Is,Bn.property=fl,Bn.propertyOf=function(e){return function(t){return null==e?i:Sr(e,t)}},Bn.pull=Qo,Bn.pullAll=$o,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,lo(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,i,n):e},Bn.pullAt=Jo,Bn.range=hl,Bn.rangeRight=pl,Bn.rearg=za,Bn.reject=function(e,t){return(Wa(e)?Tt:mr)(e,Ma(lo(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=lo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Kr(e,i),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new Oe(o);return Yr(e,t=t===i?t:ps(t))},Bn.reverse=ea,Bn.sampleSize=function(e,t,n){return t=(n?xo(e,t,n):t===i)?1:ps(t),(Wa(e)?$n:$r)(e,t)},Bn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Bn.shuffle=function(e){return(Wa(e)?Jn:ni)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&xo(e,t,n)?(t=0,n=r):(t=null==t?0:ps(t),n=n===i?r:ps(n)),ri(e,t,n)):[]},Bn.sortBy=_a,Bn.sortedUniq=function(e){return e&&e.length?si(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?si(e,lo(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&xo(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ui(t))&&ln(e)?wi(gn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:Xt(ps(t),0),Yr((function(n){var r=n[t],i=wi(n,0,t);return r&&Lt(i,r),Pt(e,this,i)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?ri(e,0,(t=n||t===i?1:ps(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=r-(t=n||t===i?1:ps(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?hi(e,lo(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?hi(e,lo(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Oe(o);return es(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Aa(e,t,{leading:r,maxWait:t,trailing:i})},Bn.thru=ha,Bn.toArray=fs,Bn.toPairs=Ds,Bn.toPairsIn=zs,Bn.toPath=function(e){return Wa(e)?Mt(e,Io):ls(e)?[e]:Oi(Lo(ys(e)))},Bn.toPlainObject=vs,Bn.transform=function(e,t,n){var r=Wa(e),i=r||Xa(e)||us(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:es(e)&&Qa(o)?Un(qe(e)):{}}return(i?Ot:xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Bn.unary=function(e){return Pa(e,1)},Bn.union=ta,Bn.unionBy=na,Bn.unionWith=ra,Bn.uniq=function(e){return e&&e.length?ci(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?ci(e,lo(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ci(e,i,t):[]},Bn.unset=function(e,t){return null==e||di(e,t)},Bn.unzip=ia,Bn.unzipWith=oa,Bn.update=function(e,t,n){return null==e?e:fi(e,t,yi(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:fi(e,t,yi(n),r)},Bn.values=Bs,Bn.valuesIn=function(e){return null==e?[]:en(e,Ts(e))},Bn.without=aa,Bn.words=Qs,Bn.wrap=function(e,t){return Ia(yi(t),e)},Bn.xor=sa,Bn.xorBy=la,Bn.xorWith=ua,Bn.zip=ca,Bn.zipObject=function(e,t){return mi(e||[],t||[],tr)},Bn.zipObjectDeep=function(e,t){return mi(e||[],t||[],Jr)},Bn.zipWith=da,Bn.entries=Ds,Bn.entriesIn=zs,Bn.extend=xs,Bn.extendWith=ws,sl(Bn,Bn),Bn.add=vl,Bn.attempt=$s,Bn.camelCase=Us,Bn.capitalize=Vs,Bn.ceil=yl,Bn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))===n?n:0),t!==i&&(t=(t=ms(t))===t?t:0),sr(ms(e),t,n)},Bn.clone=function(e){return lr(e,4)},Bn.cloneDeep=function(e){return lr(e,5)},Bn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:i)},Bn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:i)},Bn.conformsTo=function(e,t){return null==t||ur(e,t,As(t))},Bn.deburr=Hs,Bn.defaultTo=function(e,t){return null==e||e!==e?t:e},Bn.divide=bl,Bn.endsWith=function(e,t,n){e=ys(e),t=ui(t);var r=e.length,o=n=n===i?r:sr(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=ys(e))&&Q.test(e)?e.replace(Z,an):e},Bn.escapeRegExp=function(e){return(e=ys(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Bn.every=function(e,t,n){var r=Wa(e)?At:pr;return n&&xo(e,t,n)&&(t=i),r(e,lo(t,3))},Bn.find=ma,Bn.findIndex=Ho,Bn.findKey=function(e,t){return Ut(e,lo(t,3),xr)},Bn.findLast=va,Bn.findLastIndex=Wo,Bn.findLastKey=function(e,t){return Ut(e,lo(t,3),wr)},Bn.floor=xl,Bn.forEach=ya,Bn.forEachRight=ba,Bn.forIn=function(e,t){return null==e?e:yr(e,lo(t,3),Ts)},Bn.forInRight=function(e,t){return null==e?e:br(e,lo(t,3),Ts)},Bn.forOwn=function(e,t){return e&&xr(e,lo(t,3))},Bn.forOwnRight=function(e,t){return e&&wr(e,lo(t,3))},Bn.get=Es,Bn.gt=Ua,Bn.gte=Va,Bn.has=function(e,t){return null!=e&&mo(e,t,Pr)},Bn.hasIn=Ps,Bn.head=qo,Bn.identity=rl,Bn.includes=function(e,t,n,r){e=qa(e)?e:Bs(e),n=n&&!r?ps(n):0;var i=e.length;return n<0&&(n=Xt(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ht(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=Xt(r+i,0)),Ht(e,t,i)},Bn.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=bn(t,n)&&e<Xt(t,n)}(e=ms(e),t,n)},Bn.invoke=Rs,Bn.isArguments=Ha,Bn.isArray=Wa,Bn.isArrayBuffer=Ga,Bn.isArrayLike=qa,Bn.isArrayLikeObject=Ka,Bn.isBoolean=function(e){return!0===e||!1===e||ts(e)&&_r(e)==x},Bn.isBuffer=Xa,Bn.isDate=Za,Bn.isElement=function(e){return ts(e)&&1===e.nodeType&&!is(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(qa(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Xa(e)||us(e)||Ha(e)))return!e.length;var t=go(e);if(t==_||t==R)return!e.size;if(ko(e))return!Lr(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Tr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Tr(e,t,i,n):!!r},Bn.isError=Ya,Bn.isFinite=function(e){return"number"==typeof e&&bt(e)},Bn.isFunction=Qa,Bn.isInteger=$a,Bn.isLength=Ja,Bn.isMap=ns,Bn.isMatch=function(e,t){return e===t||Nr(e,t,co(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Nr(e,t,co(t),n)},Bn.isNaN=function(e){return rs(e)&&e!=+e},Bn.isNative=function(e){if(So(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Fr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=rs,Bn.isObject=es,Bn.isObjectLike=ts,Bn.isPlainObject=is,Bn.isRegExp=os,Bn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=p},Bn.isSet=as,Bn.isString=ss,Bn.isSymbol=ls,Bn.isTypedArray=us,Bn.isUndefined=function(e){return e===i},Bn.isWeakMap=function(e){return ts(e)&&go(e)==N},Bn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==_r(e)},Bn.join=function(e,t){return null==e?"":xt.call(e,t)},Bn.kebabCase=Ws,Bn.last=Yo,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ps(n))<0?Xt(r+o,0):bn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Vt(e,Gt,o,!0)},Bn.lowerCase=Gs,Bn.lowerFirst=qs,Bn.lt=cs,Bn.lte=ds,Bn.max=function(e){return e&&e.length?gr(e,rl,Er):i},Bn.maxBy=function(e,t){return e&&e.length?gr(e,lo(t,2),Er):i},Bn.mean=function(e){return qt(e,rl)},Bn.meanBy=function(e,t){return qt(e,lo(t,2))},Bn.min=function(e){return e&&e.length?gr(e,rl,Dr):i},Bn.minBy=function(e,t){return e&&e.length?gr(e,lo(t,2),Dr):i},Bn.stubArray=gl,Bn.stubFalse=ml,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=wl,Bn.nth=function(e,t){return e&&e.length?Hr(e,ps(t)):i},Bn.noConflict=function(){return gt._===this&&(gt._=Be),this},Bn.noop=ll,Bn.now=Ea,Bn.pad=function(e,t,n){e=ys(e);var r=(t=ps(t))?pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(pt(i),n)+e+Wi(ht(i),n)},Bn.padEnd=function(e,t,n){e=ys(e);var r=(t=ps(t))?pn(e):0;return t&&r<t?e+Wi(t-r,n):e},Bn.padStart=function(e,t,n){e=ys(e);var r=(t=ps(t))?pn(e):0;return t&&r<t?Wi(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(ys(e).replace(ae,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=hs(e),t===i?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Cn();return bn(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return Xr(e,t)},Bn.reduce=function(e,t,n){var r=Wa(e)?It:Zt,i=arguments.length<3;return r(e,lo(t,4),n,i,fr)},Bn.reduceRight=function(e,t,n){var r=Wa(e)?Dt:Zt,i=arguments.length<3;return r(e,lo(t,4),n,i,hr)},Bn.repeat=function(e,t,n){return t=(n?xo(e,t,n):t===i)?1:ps(t),Zr(ys(e),t)},Bn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,o=(t=bi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Io(t[r])];a===i&&(r=o,a=n),e=Qa(a)?a.call(e):a}return e},Bn.round=Cl,Bn.runInContext=e,Bn.sample=function(e){return(Wa(e)?Qn:Qr)(e)},Bn.size=function(e){if(null==e)return 0;if(qa(e))return ss(e)?pn(e):e.length;var t=go(e);return t==_||t==R?e.size:Lr(e).length},Bn.snakeCase=Ks,Bn.some=function(e,t,n){var r=Wa(e)?zt:ii;return n&&xo(e,t,n)&&(t=i),r(e,lo(t,3))},Bn.sortedIndex=function(e,t){return oi(e,t)},Bn.sortedIndexBy=function(e,t,n){return ai(e,t,lo(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=oi(e,t);if(r<n&&Ba(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return oi(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return ai(e,t,lo(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=oi(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},Bn.startCase=Xs,Bn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:sr(ps(n),0,e.length),t=ui(t),e.slice(n,n+t.length)==t},Bn.subtract=Sl,Bn.sum=function(e){return e&&e.length?Yt(e,rl):0},Bn.sumBy=function(e,t){return e&&e.length?Yt(e,lo(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&xo(e,t,n)&&(t=i),e=ys(e),t=ws({},t,r,$i);var o,a,s=ws({},t.imports,r.imports,$i),l=As(s),u=en(s,l),c=0,d=t.interpolate||Ce,f="__p += '",h=Pe((t.escape||Ce).source+"|"+d.source+"|"+(d===ee?pe:Ce).source+"|"+(t.evaluate||Ce).source+"|$","g"),p="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(h,(function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(c,l).replace(Se,sn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var g=Me.call(t,"variable")&&t.variable;if(g){if(fe.test(g))throw new se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(G,""):f).replace(q,"$1").replace(K,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=$s((function(){return ke(l,p+"return "+f).apply(i,u)}));if(m.source=f,Ya(m))throw m;return m},Bn.times=function(e,t){if((e=ps(e))<1||e>p)return[];var n=m,r=bn(e,m);t=lo(t),e-=m;for(var i=Qt(r,t);++n<e;)t(n);return i},Bn.toFinite=hs,Bn.toInteger=ps,Bn.toLength=gs,Bn.toLower=function(e){return ys(e).toLowerCase()},Bn.toNumber=ms,Bn.toSafeInteger=function(e){return e?sr(ps(e),-9007199254740991,p):0===e?e:0},Bn.toString=ys,Bn.toUpper=function(e){return ys(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=ys(e))&&(n||t===i))return $t(e);if(!e||!(t=ui(t)))return e;var r=gn(e),o=gn(t);return wi(r,nn(r,o),rn(r,o)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=ui(t)))return e;var r=gn(e);return wi(r,0,rn(r,gn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===i))return e.replace(ae,"");if(!e||!(t=ui(t)))return e;var r=gn(e);return wi(r,nn(r,gn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(es(t)){var o="separator"in t?t.separator:o;n="length"in t?ps(t.length):n,r="omission"in t?ui(t.omission):r}var a=(e=ys(e)).length;if(ln(e)){var s=gn(e);a=s.length}if(n>=a)return e;var l=n-pn(r);if(l<1)return r;var u=s?wi(s,0,l).join(""):e.slice(0,l);if(o===i)return u+r;if(s&&(l+=u.length-l),os(o)){if(e.slice(l).search(o)){var c,d=u;for(o.global||(o=Pe(o.source,ys(ge.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;u=u.slice(0,f===i?l:f)}}else if(e.indexOf(ui(o),l)!=l){var h=u.lastIndexOf(o);h>-1&&(u=u.slice(0,h))}return u+r},Bn.unescape=function(e){return(e=ys(e))&&Y.test(e)?e.replace(X,vn):e},Bn.uniqueId=function(e){var t=++Le;return ys(e)+t},Bn.upperCase=Zs,Bn.upperFirst=Ys,Bn.each=ya,Bn.eachRight=ba,Bn.first=qo,sl(Bn,function(){var e={};return xr(Bn,(function(t,n){Me.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Ot(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===i?1:Xt(ps(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ot(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(rl)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Rr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Ma(lo(e)))},Wn.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},xr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Wn,u=s[0],c=l||Wa(t),d=function(e){var t=o.apply(Bn,Lt([e],s));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=l&&!h;if(!a&&c){t=g?t:new Wn(this);var m=e.apply(t,s);return m.__actions__.push({func:ha,args:[d],thisArg:i}),new Hn(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?r?m.value()[0]:m.value():m)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Re[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Wa(i)?i:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),xr(Wn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Me.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Bi(i,2).name]=[{name:"wrapper",func:i}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oi(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=Xt(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,f=0,h=bn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return pi(e,this.__actions__);var p=[];e:for(;l--&&f<h;){for(var g=-1,m=e[u+=t];++g<d;){var v=c[g],y=v.iteratee,b=v.type,x=y(m);if(2==b)m=x;else if(!x){if(1==b)continue e;break e}}p[f++]=m}return p},Bn.prototype.at=pa,Bn.prototype.chain=function(){return fa(this)},Bn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===i&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var r=zo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ea],thisArg:i}),new Hn(t,this.__chain__)}return this.thru(ea)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Qe&&(Bn.prototype[Qe]=function(){return this}),Bn}();gt._=yn,(r=function(){return yn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},4178:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},9277:(e,t,n)=>{"use strict";var r=n(7621);function i(){}var o=null,a={};function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._x=0,this._y=0,this._z=null,this._A=null,e!==i&&h(e,this)}function l(e,t){for(;3===e._y;)e=e._z;if(s._B&&s._B(e),0===e._y)return 0===e._x?(e._x=1,void(e._A=t)):1===e._x?(e._x=2,void(e._A=[e._A,t])):void e._A.push(t);!function(e,t){r((function(){var n=1===e._y?t.onFulfilled:t.onRejected;if(null!==n){var r=function(e,t){try{return e(t)}catch(n){return o=n,a}}(n,e._z);r===a?c(t.promise,o):u(t.promise,r)}else 1===e._y?u(t.promise,e._z):c(t.promise,e._z)}))}(e,t)}function u(e,t){if(t===e)return c(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=function(e){try{return e.then}catch(t){return o=t,a}}(t);if(n===a)return c(e,o);if(n===e.then&&t instanceof s)return e._y=3,e._z=t,void d(e);if("function"===typeof n)return void h(n.bind(t),e)}e._y=1,e._z=t,d(e)}function c(e,t){e._y=2,e._z=t,s._C&&s._C(e,t),d(e)}function d(e){if(1===e._x&&(l(e,e._A),e._A=null),2===e._x){for(var t=0;t<e._A.length;t++)l(e,e._A[t]);e._A=null}}function f(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function h(e,t){var n=!1,r=function(e,t,n){try{e(t,n)}catch(r){return o=r,a}}(e,(function(e){n||(n=!0,u(t,e))}),(function(e){n||(n=!0,c(t,e))}));n||r!==a||(n=!0,c(t,o))}e.exports=s,s._B=null,s._C=null,s._D=i,s.prototype.then=function(e,t){if(this.constructor!==s)return function(e,t,n){return new e.constructor((function(r,o){var a=new s(i);a.then(r,o),l(e,new f(t,n,a))}))}(this,e,t);var n=new s(i);return l(this,new f(e,t,n)),n}},609:(e,t,n)=>{"use strict";var r=n(9277);e.exports=r;var i=c(!0),o=c(!1),a=c(null),s=c(void 0),l=c(0),u=c("");function c(e){var t=new r(r._D);return t._y=1,t._z=e,t}r.resolve=function(e){if(e instanceof r)return e;if(null===e)return a;if(void 0===e)return s;if(!0===e)return i;if(!1===e)return o;if(0===e)return l;if(""===e)return u;if("object"===typeof e||"function"===typeof e)try{var t=e.then;if("function"===typeof t)return new r(t.bind(e))}catch(n){return new r((function(e,t){t(n)}))}return c(e)};var d=function(e){return"function"===typeof Array.from?(d=Array.from,Array.from(e)):(d=function(e){return Array.prototype.slice.call(e)},Array.prototype.slice.call(e))};function f(e){return{status:"fulfilled",value:e}}function h(e){return{status:"rejected",reason:e}}function p(e){if(e&&("object"===typeof e||"function"===typeof e)){if(e instanceof r&&e.then===r.prototype.then)return e.then(f,h);var t=e.then;if("function"===typeof t)return new r(t.bind(e)).then(f,h)}return f(e)}function g(e){if("function"===typeof AggregateError)return new AggregateError(e,"All promises were rejected");var t=new Error("All promises were rejected");return t.name="AggregateError",t.errors=e,t}r.all=function(e){var t=d(e);return new r((function(e,n){if(0===t.length)return e([]);var i=t.length;function o(a,s){if(s&&("object"===typeof s||"function"===typeof s)){if(s instanceof r&&s.then===r.prototype.then){for(;3===s._y;)s=s._z;return 1===s._y?o(a,s._z):(2===s._y&&n(s._z),void s.then((function(e){o(a,e)}),n))}var l=s.then;if("function"===typeof l)return void new r(l.bind(s)).then((function(e){o(a,e)}),n)}t[a]=s,0===--i&&e(t)}for(var a=0;a<t.length;a++)o(a,t[a])}))},r.allSettled=function(e){return r.all(d(e).map(p))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){d(e).forEach((function(e){r.resolve(e).then(t,n)}))}))},r.prototype.catch=function(e){return this.then(null,e)},r.any=function(e){return new r((function(t,n){var i=d(e),o=!1,a=[];function s(e){o||(o=!0,t(e))}function l(e){a.push(e),a.length===i.length&&n(g(a))}0===i.length?n(g(a)):i.forEach((function(e){r.resolve(e).then(s,l)}))}))}},3241:(e,t,n)=>{"use strict";var r=n(9277),i=[ReferenceError,TypeError,RangeError],o=!1;function a(){o=!1,r._B=null,r._C=null}function s(e,t){return t.some((function(t){return e instanceof t}))}t.disable=a,t.enable=function(e){e=e||{},o&&a();o=!0;var t=0,n=0,l={};function u(t){(e.allRejections||s(l[t].error,e.whitelist||i))&&(l[t].displayId=n++,e.onUnhandled?(l[t].logged=!0,e.onUnhandled(l[t].displayId,l[t].error)):(l[t].logged=!0,function(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach((function(e){console.warn(" "+e)}))}(l[t].displayId,l[t].error)))}r._B=function(t){2===t._y&&l[t._E]&&(l[t._E].logged?function(t){l[t].logged&&(e.onHandled?e.onHandled(l[t].displayId,l[t].error):l[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+l[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+l[t].displayId+".")))}(t._E):clearTimeout(l[t._E].timeout),delete l[t._E])},r._C=function(e,n){0===e._x&&(e._E=t++,l[e._E]={displayId:null,error:n,timeout:setTimeout(u.bind(null,e._E),s(n,i)?100:2e3),logged:!1})}}},1276:(e,t,n)=>{"use strict";var r=n(5691);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5754:(e,t,n)=>{e.exports=n(1276)()},5691:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9686:(e,t,n)=>{"use strict";n(2679),n(7005),n(1716),n(4837),"undefined"===typeof Promise&&(n(3241).enable(),self.Promise=n(609)),"undefined"!==typeof window&&n(1818),Object.assign=n(4178)},1809:(e,t,n)=>{"use strict";n(5238),n(9913),n(6067),n(8187),n(7575),n(1958),n(5533),n(3726),n(6468),n(6505),n(1613),n(1498),n(310),n(480),n(7296),n(149),n(9708),n(7817),n(8409),n(4837),n(2684),n(5332),n(8764),n(6028)},2157:(e,t,n)=>{"use strict";var r=n(810),i=n(320);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,h={},p={};function g(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,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(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,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(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),P=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var F=Symbol.iterator;function M(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=F&&e[F]||e["@@iterator"])?e:null}var L,I=Object.assign;function D(e){if(void 0===L)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var z=!1;function B(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function U(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case C:return"Portal";case _:return"Profiler";case k:return"StrictMode";case O:return"Suspense";case R:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===k?"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 t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function $(e,t){Q(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={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},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=I({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){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 xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Se=null,ke=null;function _e(e){if(e=bi(e)){if("function"!==typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),Ce(e.stateNode,e.type,t))}}function Ee(e){Se?ke?ke.push(e):ke=[e]:Se=e}function Pe(){if(Se){var e=Se,t=ke;if(ke=Se=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function je(e,t){return e(t)}function Oe(){}var Re=!1;function Ae(e,t,n){if(Re)return e(t,n);Re=!0;try{return je(e,t,n)}finally{Re=!1,(null!==Se||null!==ke)&&(Oe(),Pe())}}function Te(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){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"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Ne=!1;if(c)try{var Fe={};Object.defineProperty(Fe,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Fe,Fe),window.removeEventListener("test",Fe,Fe)}catch(ce){Ne=!1}function Me(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Le=!1,Ie=null,De=!1,ze=null,Be={onError:function(e){Le=!0,Ie=e}};function Ue(e,t,n,r,i,o,a,s,l){Le=!1,Ie=null,Me.apply(Be,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Ve(e)!==e)throw Error(o(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){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 We(i),e;if(a===r)return We(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,Xe=i.unstable_cancelCallback,Ze=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Qe=i.unstable_now,$e=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){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&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+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 t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,Ct,St,kt,_t,Et=!1,Pt=[],jt=null,Ot=null,Rt=null,At=new Map,Tt=new Map,Nt=[],Ft="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 Mt(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Lt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function It(e){var t=yi(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void _t(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function zt(e,t,n){Dt(e)&&n.delete(t)}function Bt(){Et=!1,null!==jt&&Dt(jt)&&(jt=null),null!==Ot&&Dt(Ot)&&(Ot=null),null!==Rt&&Dt(Rt)&&(Rt=null),At.forEach(zt),Tt.forEach(zt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bt)))}function Vt(e){function t(t){return Ut(t,e)}if(0<Pt.length){Ut(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==jt&&Ut(jt,e),null!==Ot&&Ut(Ot,e),null!==Rt&&Ut(Rt,e),At.forEach(t),Tt.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)It(n),null===n.blockedOn&&Nt.shift()}var Ht=x.ReactCurrentBatchConfig,Wt=!0;function Gt(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,Ht.transition=o}}function qt(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,Ht.transition=o}}function Kt(e,t,n,r){if(Wt){var i=Zt(e,t,n,r);if(null===i)Wr(e,t,r,Xt,n),Mt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return jt=Lt(jt,e,t,n,r,i),!0;case"dragenter":return Ot=Lt(Ot,e,t,n,r,i),!0;case"mouseover":return Rt=Lt(Rt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return At.set(o,Lt(At.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Tt.set(o,Lt(Tt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<Ft.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Zt(e,t,n,r))&&Wr(e,t,r,Xt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Xt=null;function Zt(e,t,n,r){if(Xt=null,null!==(e=yi(e=we(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xt=e,null}function Yt(e){switch(e){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($e()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,$t=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=$t,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=I({},un,{view:0,detail:0}),fn=on(dn),hn=I({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),gn=on(I({},hn,{dataTransfer:0})),mn=on(I({},dn,{relatedTarget:0})),vn=on(I({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=I({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(I({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function _n(){return kn}var En=I({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(En),jn=on(I({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=on(I({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),Rn=on(I({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=I({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tn=on(An),Nn=[9,13,27,32],Fn=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var Ln=c&&"TextEvent"in window&&!Mn,In=c&&(!Fn||Mn&&8<Mn&&11>=Mn),Dn=String.fromCharCode(32),zn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Hn={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Gn(e,t,n,r){Ee(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function Xn(e){Dr(e,0)}function Zn(e){if(K(xi(e)))return e}function Yn(e,t){if("change"===e)return t}var Qn=!1;if(c){var $n;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}$n=Jn}else $n=!1;Qn=$n&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Kn=qn=null)}function nr(e){if("value"===e.propertyName&&Zn(Kn)){var t=[];Gn(t,Kn,e,we(e)),Ae(Xn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Kn)}function or(e,t){if("click"===e)return Zn(t)}function ar(e,t){if("input"===e||"change"===e)return Zn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=c&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==X(r)||("selectionStart"in(r=mr)&&hr(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},yr&&lr(yr,r)||(yr=r,0<(r=qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},kr={};function _r(e){if(Sr[e])return Sr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Sr[e]=n[t];return e}c&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var Er=_r("animationend"),Pr=_r("animationiteration"),jr=_r("animationstart"),Or=_r("transitionend"),Rr=new Map,Ar="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 Tr(e,t){Rr.set(e,t),l(t,[e])}for(var Nr=0;Nr<Ar.length;Nr++){var Fr=Ar[Nr];Tr(Fr.toLowerCase(),"on"+(Fr[0].toUpperCase()+Fr.slice(1)))}Tr(Er,"onAnimationEnd"),Tr(Pr,"onAnimationIteration"),Tr(jr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Or,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="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(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Ir(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,u){if(Ue.apply(this,arguments),Le){if(!Le)throw Error(o(198));var c=Ie;Le=!1,Ie=null,De||(De=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Ir(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Ir(i,s,u),o=l}}}if(De)throw e=ze,De=!1,ze=null,e}function zr(e,t){var n=t[gi];void 0===n&&(n=t[gi]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Lr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Yt(t)){case 1:var i=Gt;break;case 4:i=qt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ae((function(){var r=o,i=we(n),a=[];e:{var s=Rr.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":u="focus",l=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case Er:case Pr:case jr:l=vn;break;case Or:l=Rn;break;case"scroll":l=fn;break;case"wheel":l=Tn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=jn}var c=0!==(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&(null!=(g=Te(p,f))&&c.push(Gr(p,g,h)))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!yi(u)&&!u[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?yi(u):null)&&(u!==(d=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=jn,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:xi(l),h=null==u?s:xi(u),(s=new c(g,p+"leave",l,n,i)).target=d,s.relatedTarget=h,g=null,yi(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(f=u,p=0,h=c=l;h;h=Kr(h))p++;for(h=0,g=f;g;g=Kr(g))h++;for(;0<p-h;)c=Kr(c),p--;for(;0<h-p;)f=Kr(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=Kr(c),f=Kr(f)}c=null}else c=null;null!==l&&Xr(a,s,l,c,!1),null!==u&&null!==d&&Xr(a,d,u,c,!0)}if("select"===(l=(s=r?xi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Yn;else if(Wn(s))if(Qn)m=ar;else{m=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=or);switch(m&&(m=m(e,r))?Gn(a,m,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xi(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(mr=v,vr=r,yr=null);break;case"focusout":yr=vr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(a,n,i)}var y;if(Fn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(In&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=en()):($t="value"in(Qt=i)?Qt.value:Qt.textContent,Vn=!0)),0<(v=qr(r,b)).length&&(b=new xn(b,e,null,n,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Ln?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(zn=!0,Dn);case"textInput":return(e=t.data)===Dn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Fn&&Bn(e,t)?(e=en(),Jt=$t=Qt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return In&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Dr(a,t)}))}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Te(e,n))&&r.unshift(Gr(e,o,i)),null!=(o=Te(e,t))&&r.push(Gr(e,o,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Te(n,o))&&a.unshift(Gr(n,l,s)):i||null!=(l=Te(n,o))&&a.push(Gr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Zr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Zr,"\n").replace(Yr,"")}function $r(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Vt(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,hi="__reactProps$"+di,pi="__reactContainer$"+di,gi="__reactEvents$"+di,mi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[hi]||null}var Ci=[],Si=-1;function ki(e){return{current:e}}function _i(e){0>Si||(e.current=Ci[Si],Ci[Si]=null,Si--)}function Ei(e,t){Si++,Ci[Si]=e.current,e.current=t}var Pi={},ji=ki(Pi),Oi=ki(!1),Ri=Pi;function Ai(e,t){var n=e.type.contextTypes;if(!n)return Pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ti(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ni(){_i(Oi),_i(ji)}function Fi(e,t,n){if(ji.current!==Pi)throw Error(o(168));Ei(ji,t),Ei(Oi,n)}function Mi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return I({},n,r)}function Li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,Ri=ji.current,Ei(ji,e),Ei(Oi,Oi.current),!0}function Ii(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Mi(e,t,Ri),r.__reactInternalMemoizedMergedChildContext=e,_i(Oi),_i(ji),Ei(ji,e)):_i(Oi),Ei(Oi,n)}var Di=null,zi=!1,Bi=!1;function Ui(e){null===Di?Di=[e]:Di.push(e)}function Vi(){if(!Bi&&null!==Di){Bi=!0;var e=0,t=bt;try{var n=Di;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Di=null,zi=!1}catch(i){throw null!==Di&&(Di=Di.slice(e+1)),Ke(Je,Vi),i}finally{bt=t,Bi=!1}}return null}var Hi=[],Wi=0,Gi=null,qi=0,Ki=[],Xi=0,Zi=null,Yi=1,Qi="";function $i(e,t){Hi[Wi++]=qi,Hi[Wi++]=Gi,Gi=e,qi=t}function Ji(e,t,n){Ki[Xi++]=Yi,Ki[Xi++]=Qi,Ki[Xi++]=Zi,Zi=e;var r=Yi;e=Qi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Yi=1<<32-at(t)+i|n<<i|r,Qi=o+e}else Yi=1<<o|n<<i|r,Qi=e}function eo(e){null!==e.return&&($i(e,1),Ji(e,1,0))}function to(e){for(;e===Gi;)Gi=Hi[--Wi],Hi[Wi]=null,qi=Hi[--Wi],Hi[Wi]=null;for(;e===Zi;)Zi=Ki[--Xi],Ki[Xi]=null,Qi=Ki[--Xi],Ki[Xi]=null,Yi=Ki[--Xi],Ki[Xi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Au(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zi?{id:Yi,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Au(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=ui(e.nextSibling)}function po(){ro=no=null,io=!1}function go(e){null===oo?oo=[e]:oo.push(e)}var mo=x.ReactCurrentBatchConfig;function vo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function xo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Nu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Iu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===T&&bo(o)===t.type)?((r=i(t,n.props)).ref=vo(e,t,n),r.return=e,r):((r=Fu(n.type,n.key,n.props,null,e.mode,r)).ref=vo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Mu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Iu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Fu(t.type,t.key,t.props,null,e.mode,n)).ref=vo(e,null,t),n.return=e,n;case C:return(t=Du(t,e.mode,n)).return=e,t;case T:return f(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Mu(t,e.mode,n,null)).return=e,t;yo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?u(e,t,n,r):null;case C:return n.key===i?c(e,t,n,r):null;case T:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||M(n))return null!==i?null:d(e,t,n,r,null);yo(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case C:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case T:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||M(r))return d(t,e=e.get(n)||null,r,i,null);yo(t,r)}return null}function g(i,o,s,l){for(var u=null,c=null,d=o,g=o=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(i,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===s.length)return n(i,d),io&&$i(i,g),u;if(null===d){for(;g<s.length;g++)null!==(d=f(i,s[g],l))&&(o=a(d,o,g),null===c?u=d:c.sibling=d,c=d);return io&&$i(i,g),u}for(d=r(i,d);g<s.length;g++)null!==(m=p(d,i,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=a(m,o,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(i,e)})),io&&$i(i,g),u}function m(i,s,l,u){var c=M(l);if("function"!==typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=h(i,g,y.value,u);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(i,g),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b,g=v}if(y.done)return n(i,g),io&&$i(i,m),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return io&&$i(i,m),c}for(g=r(i,g);!y.done;m++,y=l.next())null!==(y=p(g,i,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(i,e)})),io&&$i(i,m),c}return function e(r,o,a,l){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===S){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===T&&bo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=vo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===S?((o=Mu(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Fu(a.type,a.key,a.props,null,r.mode,l)).ref=vo(r,o,a),l.return=r,r=l)}return s(r);case C:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Du(a,r.mode,l)).return=r,r=o}return s(r);case T:return e(r,o,(c=a._init)(a._payload),l)}if(te(a))return g(r,o,a,l);if(M(a))return m(r,o,a,l);yo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Iu(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var wo=xo(!0),Co=xo(!1),So=ki(null),ko=null,_o=null,Eo=null;function Po(){Eo=_o=ko=null}function jo(e){var t=So.current;_i(So),e._currentValue=t}function Oo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ro(e,t){ko=e,Eo=_o=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ao(e){var t=e._currentValue;if(Eo!==e)if(e={context:e,memoizedValue:t,next:null},null===_o){if(null===ko)throw Error(o(308));_o=e,ko.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var To=null;function No(e){null===To?To=[e]:To.push(e)}function Fo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,No(t)):(n.next=i.next,i.next=n),t.interleaved=n,Mo(e,r)}function Mo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Lo=!1;function Io(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Do(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&jl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Mo(e,n)}return null===(i=r.interleaved)?(t.next=t,No(r)):(t.next=i.next,i.next=t),r.interleaved=t,Mo(e,n)}function Uo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Vo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ho(e,t,n,r){var i=e.updateQueue;Lo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(f=t,h=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=g.payload)?p.call(h,d,f):p)||void 0===f)break e;d=I({},d,f);break e;case 2:Lo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ll|=a,e.lanes=a,e.memoizedState=d}}function Wo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Go={},qo=ki(Go),Ko=ki(Go),Xo=ki(Go);function Zo(e){if(e===Go)throw Error(o(174));return e}function Yo(e,t){switch(Ei(Xo,t),Ei(Ko,e),Ei(qo,Go),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_i(qo),Ei(qo,t)}function Qo(){_i(qo),_i(Ko),_i(Xo)}function $o(e){Zo(Xo.current);var t=Zo(qo.current),n=le(t,e.type);t!==n&&(Ei(Ko,e),Ei(qo,n))}function Jo(e){Ko.current===e&&(_i(qo),_i(Ko))}var ea=ki(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=x.ReactCurrentDispatcher,oa=x.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ua=null,ca=!1,da=!1,fa=0,ha=0;function pa(){throw Error(o(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Ja:es,e=n(r,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(o(301));a+=1,ua=la=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=$a,t=null!==la&&null!==la.next,aa=0,ua=la=sa=null,ca=!1,t)throw Error(o(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?sa.memoizedState=ua=e:ua=ua.next=e,ua}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ua?sa.memoizedState:ua.next;if(null!==t)ua=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ua?sa.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"===typeof t?t(e):t}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,sa.lanes|=d,Ll|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Ll|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Sa(){}function ka(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,La(Pa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Aa(9,Ea.bind(null,n,r,i,t),void 0,null),null===Ol)throw Error(o(349));0!==(30&aa)||_a(n,t,i)}return i}function _a(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,ja(t)&&Oa(e)}function Pa(e,t,n){return n((function(){ja(t)&&Oa(e)}))}function ja(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Oa(e){var t=Mo(e,1);null!==t&&nu(t,e,1,-1)}function Ra(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Xa.bind(null,sa,e),[t.memoizedState,e]}function Aa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ta(){return ba().memoizedState}function Na(e,t,n,r){var i=ya();sa.flags|=e,i.memoizedState=Aa(1|t,n,void 0,void 0===r?null:r)}function Fa(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ga(r,a.deps))return void(i.memoizedState=Aa(t,n,o,r))}sa.flags|=e,i.memoizedState=Aa(1|t,n,o,r)}function Ma(e,t){return Na(8390656,8,e,t)}function La(e,t){return Fa(2048,8,e,t)}function Ia(e,t){return Fa(4,2,e,t)}function Da(e,t){return Fa(4,4,e,t)}function za(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Fa(4,4,za.bind(null,t,e),n)}function Ua(){}function Va(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=gt(),sa.lanes|=n,Ll|=n,e.baseState=!0),t)}function Ga(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function qa(){return ba().memoizedState}function Ka(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Za(e))Ya(t,n);else if(null!==(n=Fo(e,t,n,r))){nu(n,e,r,eu()),Qa(n,t,r)}}function Xa(e,t,n){var r=tu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Za(e))Ya(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(i.next=i,No(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(u){}null!==(n=Fo(e,t,i,r))&&(nu(n,e,r,i=eu()),Qa(n,t,r))}}function Za(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var $a={readContext:Ao,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:Ao,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ao,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Na(4194308,4,za.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Ra,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Ra(!1),t=e[0];return e=Ga.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ol)throw Error(o(349));0!==(30&aa)||_a(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ma(Pa.bind(null,r,a,e),[e]),r.flags|=2048,Aa(9,Ea.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Ol.identifierPrefix;if(io){var n=Qi;t=":"+t+"R"+(n=(Yi&~(1<<32-at(Yi)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ao,useCallback:Va,useContext:Ao,useEffect:La,useImperativeHandle:Ba,useInsertionEffect:Ia,useLayoutEffect:Da,useMemo:Ha,useReducer:wa,useRef:Ta,useState:function(){return wa(xa)},useDebugValue:Ua,useDeferredValue:function(e){return Wa(ba(),la.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:Sa,useSyncExternalStore:ka,useId:qa,unstable_isNewReconciler:!1},ts={readContext:Ao,useCallback:Va,useContext:Ao,useEffect:La,useImperativeHandle:Ba,useInsertionEffect:Ia,useLayoutEffect:Da,useMemo:Ha,useReducer:Ca,useRef:Ta,useState:function(){return Ca(xa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Wa(t,la.memoizedState,e)},useTransition:function(){return[Ca(xa)[0],ba().memoizedState]},useMutableSource:Sa,useSyncExternalStore:ka,useId:qa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=zo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nu(t,e,i,r),Uo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),i=tu(e),o=zo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nu(t,e,i,r),Uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),i=zo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Bo(e,i,r))&&(nu(t,e,r,n),Uo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(e,t,n){var r=!1,i=Pi,o=t.contextType;return"object"===typeof o&&null!==o?o=Ao(o):(i=Ti(t)?Ri:ji.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ai(e,i):Pi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Io(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Ao(o):(o=Ti(t)?Ri:ji.current,i.context=Ai(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Ho(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=zo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Gl=r),ds(0,t)},n}function ps(e,t,n){(n=zo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_u.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zo(-1,1)).tag=2,Bo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ys=x.ReactCurrentOwner,bs=!1;function xs(e,t,n,r){t.child=null===e?Co(t,null,n,r):wo(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var o=t.ref;return Ro(t,i),r=ma(e,t,n,r,o,i),n=va(),null===e||bs?(io&&n&&eo(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ws(e,t,i))}function Cs(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Tu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Fu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ss(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Ws(e,t,i)}return t.flags|=1,(e=Nu(o,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Ws(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return Es(e,t,n,r,i)}function ks(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ei(Nl,Tl),Tl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ei(Nl,Tl),Tl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ei(Nl,Tl),Tl|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ei(Nl,Tl),Tl|=r;return xs(e,t,i,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,i){var o=Ti(n)?Ri:ji.current;return o=Ai(t,o),Ro(t,i),n=ma(e,t,n,r,o,i),r=va(),null===e||bs?(io&&r&&eo(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ws(e,t,i))}function Ps(e,t,n,r,i){if(Ti(n)){var o=!0;Li(t)}else o=!1;if(Ro(t,i),null===t.stateNode)Hs(e,t),as(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=Ao(u):u=Ai(t,u=Ti(n)?Ri:ji.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ss(t,a,r,u),Lo=!1;var f=t.memoizedState;a.state=f,Ho(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Oi.current||Lo?("function"===typeof c&&(rs(t,n,c,r),l=t.memoizedState),(s=Lo||os(t,n,s,r,f,l,u))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Do(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ns(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Ao(l):l=Ai(t,l=Ti(n)?Ri:ji.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Lo=!1,f=t.memoizedState,a.state=f,Ho(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Oi.current||Lo?("function"===typeof h&&(rs(t,n,h,r),p=t.memoizedState),(u=Lo||os(t,n,u,r,f,p,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return js(e,t,n,r,o,i)}function js(e,t,n,r,i,o){_s(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Ii(t,n,!1),Ws(e,t,o);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):xs(e,t,s,o),t.memoizedState=r.state,i&&Ii(t,n,!0),t.child}function Os(e){var t=e.stateNode;t.pendingContext?Fi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fi(0,t.context,!1),Yo(e,t.containerInfo)}function Rs(e,t,n,r,i){return po(),go(i),t.flags|=256,xs(e,t,n,r),t.child}var As,Ts,Ns,Fs,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function Is(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ei(ea,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Lu(l,i,0,null),e=Mu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=Ms,e):Ds(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,zs(e,t,s,r=cs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Lu({mode:"visible",children:r.children},i,0,null),(a=Mu(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&wo(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Ms,a);if(0===(1&t.mode))return zs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,zs(e,t,s,r=cs(a=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Ol)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Mo(e,i),nu(r,e,i,-1))}return gu(),zs(e,t,s,r=cs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Pu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Ki[Xi++]=Yi,Ki[Xi++]=Qi,Ki[Xi++]=Zi,Yi=e.id,Qi=e.overflow,Zi=t),t=Ds(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(s){s=i.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=Nu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Nu(r,s):(s=Mu(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Nu(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ds(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&go(r),wo(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oo(e.return,t,n)}function Us(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Vs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ei(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Us(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Us(t,!0,n,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Nu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Nu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return Ti(t.type)&&Ni(),qs(t),null;case 3:return r=t.stateNode,Qo(),_i(Oi),_i(ji),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(au(oo),oo=null))),Ts(e,t),qs(t),null;case 5:Jo(t);var i=Zo(Xo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ns(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return qs(t),null}if(e=Zo(qo.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[hi]=a,e=0!==(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i<Mr.length;i++)zr(Mr[i],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":Y(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":ie(r,a),zr("invalid",r)}for(var l in ye(n,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"===typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&$r(r.textContent,u,e),i=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&$r(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&zr("scroll",r)}switch(n){case"input":q(r),J(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fi]=t,e[hi]=r,As(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),i=r;break;case"iframe":case"object":case"embed":zr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Mr.length;i++)zr(Mr[i],e);i=r;break;case"source":zr("error",e),i=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),i=r;break;case"details":zr("toggle",e),i=r;break;case"input":Y(e,r),i=Z(e,r),zr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=I({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),zr("invalid",e)}for(a in ye(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?me(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)Fs(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Zo(Xo.current),Zo(qo.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:$r(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&$r(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return qs(t),null;case 13:if(_i(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else po(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),a=!1}else null!==oo&&(au(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Fl&&(Fl=3):gu())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return Qo(),Ts(e,t),null===e&&Vr(t.stateNode.containerInfo),qs(t),null;case 10:return jo(t.type._context),qs(t),null;case 19:if(_i(ea),null===(a=t.memoizedState))return qs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Gs(a,!1);else{if(0!==Fl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Gs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ei(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Vl&&(t.flags|=128,r=!0,Gs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return qs(t),null}else 2*Qe()-a.renderingStartTime>Vl&&1073741824!==n&&(t.flags|=128,r=!0,Gs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Ei(ea,r?1&n|2:1&n),t):(qs(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Tl)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Xs(e,t){switch(to(t),t.tag){case 1:return Ti(t.type)&&Ni(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qo(),_i(Oi),_i(ji),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Jo(t),null;case 13:if(_i(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _i(ea),null;case 4:return Qo(),null;case 10:return jo(t.type._context),null;case 22:case 23:return du(),null;default:return null}}As=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ts=function(){},Ns=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Zo(qo.current);var o,a=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),a=[];break;case"select":i=I({},i,{value:void 0}),r=I({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&zr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Fs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zs=!1,Ys=!1,Qs="function"===typeof WeakSet?WeakSet:Set,$s=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){ku(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){ku(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[hi],delete t[gi],delete t[mi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Ys||Js(n,t);case 6:var r=cl,i=dl;cl=null,fl(e,t,n),dl=i,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Vt(e)):li(cl,n.stateNode));break;case 4:r=cl,i=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),i=i.next}while(i!==r)}fl(e,t,n);break;case 1:if(!Ys&&(Js(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ku(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,fl(e,t,n),Ys=r):fl(e,t,n);break;default:fl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=ju.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(o(160));hl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(c){ku(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(m){ku(e,e.return,m)}try{nl(5,e,e.return)}catch(m){ku(e,e.return,m)}}break;case 1:gl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(gl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(m){ku(e,e.return,m)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?me(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(l){case"input":$(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(m){ku(e,e.return,m)}}break;case 6:if(gl(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){ku(e,e.return,m)}}break;case 3:if(gl(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(m){ku(e,e.return,m)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Ul=Qe())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(c=Ys)||d,gl(t,e),Ys=c):gl(t,e),vl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!==(1&e.mode))for($s=e,d=e.child;null!==d;){for(f=$s=d;null!==$s;){switch(p=(h=$s).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Js(h,h.return);var g=h.stateNode;if("function"===typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){ku(r,n,m)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){wl(f);continue}}null!==p?(p.return=h,$s=p):wl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(u=f.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=ge("display",s))}catch(m){ku(e,e.return,m)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(m){ku(e,e.return,m)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),vl(e),4&r&&pl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){ku(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){$s=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==$s;){var i=$s,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Zs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Zs;var u=Ys;if(Zs=a,(Ys=l)&&!u)for($s=i;null!==$s;)l=(a=$s).child,22===a.tag&&null!==a.memoizedState?Cl(i):null!==l?(l.return=a,$s=l):Cl(i);for(;null!==o;)$s=o,bl(o,t,n),o=o.sibling;$s=i,Zs=s,Ys=u}xl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,$s=o):xl(e)}}function xl(e){for(;null!==$s;){var t=$s;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.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===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(o(163))}Ys||512&t.flags&&il(t)}catch(h){ku(t,t.return,h)}}if(t===e){$s=null;break}if(null!==(n=t.sibling)){n.return=t.return,$s=n;break}$s=t.return}}function wl(e){for(;null!==$s;){var t=$s;if(t===e){$s=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$s=n;break}$s=t.return}}function Cl(e){for(;null!==$s;){var t=$s;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){ku(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){ku(t,i,l)}}var o=t.return;try{il(t)}catch(l){ku(t,o,l)}break;case 5:var a=t.return;try{il(t)}catch(l){ku(t,a,l)}}}catch(l){ku(t,t.return,l)}if(t===e){$s=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$s=s;break}$s=t.return}}var Sl,kl=Math.ceil,_l=x.ReactCurrentDispatcher,El=x.ReactCurrentOwner,Pl=x.ReactCurrentBatchConfig,jl=0,Ol=null,Rl=null,Al=0,Tl=0,Nl=ki(0),Fl=0,Ml=null,Ll=0,Il=0,Dl=0,zl=null,Bl=null,Ul=0,Vl=1/0,Hl=null,Wl=!1,Gl=null,ql=null,Kl=!1,Xl=null,Zl=0,Yl=0,Ql=null,$l=-1,Jl=0;function eu(){return 0!==(6&jl)?Qe():-1!==$l?$l:$l=Qe()}function tu(e){return 0===(1&e.mode)?1:0!==(2&jl)&&0!==Al?Al&-Al:null!==mo.transition?(0===Jl&&(Jl=gt()),Jl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function nu(e,t,n,r){if(50<Yl)throw Yl=0,Ql=null,Error(o(185));vt(e,n,r),0!==(2&jl)&&e===Ol||(e===Ol&&(0===(2&jl)&&(Il|=n),4===Fl&&su(e,Al)),ru(e,r),1===n&&0===jl&&0===(1&t.mode)&&(Vl=Qe()+500,zi&&Vi()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Ol?Al:0);if(0===r)null!==n&&Xe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Xe(n),1===t)0===e.tag?function(e){zi=!0,Ui(e)}(lu.bind(null,e)):Ui(lu.bind(null,e)),ai((function(){0===(6&jl)&&Vi()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ou(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if($l=-1,Jl=0,0!==(6&jl))throw Error(o(327));var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=ft(e,e===Ol?Al:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=mu(e,r);else{t=r;var i=jl;jl|=2;var a=pu();for(Ol===e&&Al===t||(Hl=null,Vl=Qe()+500,fu(e,t));;)try{yu();break}catch(l){hu(e,l)}Po(),_l.current=a,jl=i,null!==Rl?t=0:(Ol=null,Al=0,t=Fl)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=ou(e,i))),1===t)throw n=Ml,fu(e,0),su(e,r),ru(e,Qe()),n;if(6===t)su(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=mu(e,r))&&(0!==(a=pt(e))&&(r=a,t=ou(e,a))),1===t))throw n=Ml,fu(e,0),su(e,r),ru(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:wu(e,Bl,Hl);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Ul+500-Qe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(wu.bind(null,e,Bl,Hl),t);break}wu(e,Bl,Hl);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kl(r/1960))-r)){e.timeoutHandle=ri(wu.bind(null,e,Bl,Hl),r);break}wu(e,Bl,Hl);break;default:throw Error(o(329))}}}return ru(e,Qe()),e.callbackNode===n?iu.bind(null,e):null}function ou(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Bl,Bl=n,null!==t&&au(t)),e}function au(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function su(e,t){for(t&=~Dl,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(0!==(6&jl))throw Error(o(327));Cu();var t=ft(e,0);if(0===(1&t))return ru(e,Qe()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=Ml,fu(e,0),su(e,t),ru(e,Qe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Bl,Hl),ru(e,Qe()),null}function uu(e,t){var n=jl;jl|=1;try{return e(t)}finally{0===(jl=n)&&(Vl=Qe()+500,zi&&Vi())}}function cu(e){null!==Xl&&0===Xl.tag&&0===(6&jl)&&Cu();var t=jl;jl|=1;var n=Pl.transition,r=bt;try{if(Pl.transition=null,bt=1,e)return e()}finally{bt=r,Pl.transition=n,0===(6&(jl=t))&&Vi()}}function du(){Tl=Nl.current,_i(Nl)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ni();break;case 3:Qo(),_i(Oi),_i(ji),ra();break;case 5:Jo(r);break;case 4:Qo();break;case 13:case 19:_i(ea);break;case 10:jo(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ol=e,Rl=e=Nu(e.current,null),Al=Tl=t,Fl=0,Ml=null,Dl=Il=Ll=0,Bl=zl=null,null!==To){for(t=0;t<To.length;t++)if(null!==(r=(n=To[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}To=null}return e}function hu(e,t){for(;;){var n=Rl;try{if(Po(),ia.current=$a,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,ua=la=sa=null,da=!1,fa=0,El.current=null,null===n||null===n.return){Fl=1,Ml=t,Rl=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Al,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,vs(p,s,l,0,t),1&p.mode&&gs(a,c,t),u=c;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0===(1&t)){gs(a,c,t),gu();break e}u=Error(o(426))}else if(io&&1&l.mode){var v=ms(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),go(us(u,l));break e}}a=u=us(u,l),4!==Fl&&(Fl=2),null===zl?zl=[a]:zl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Vo(a,hs(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===ql||!ql.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Vo(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}xu(n)}catch(x){t=x,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function pu(){var e=_l.current;return _l.current=$a,null===e?$a:e}function gu(){0!==Fl&&3!==Fl&&2!==Fl||(Fl=4),null===Ol||0===(268435455&Ll)&&0===(268435455&Il)||su(Ol,Al)}function mu(e,t){var n=jl;jl|=2;var r=pu();for(Ol===e&&Al===t||(Hl=null,fu(e,t));;)try{vu();break}catch(i){hu(e,i)}if(Po(),jl=n,_l.current=r,null!==Rl)throw Error(o(261));return Ol=null,Al=0,Fl}function vu(){for(;null!==Rl;)bu(Rl)}function yu(){for(;null!==Rl&&!Ze();)bu(Rl)}function bu(e){var t=Sl(e.alternate,e,Tl);e.memoizedProps=e.pendingProps,null===t?xu(e):Rl=t,El.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,Tl)))return void(Rl=n)}else{if(null!==(n=Xs(n,t)))return n.flags&=32767,void(Rl=n);if(null===e)return Fl=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Fl&&(Fl=5)}function wu(e,t,n){var r=bt,i=Pl.transition;try{Pl.transition=null,bt=1,function(e,t,n,r){do{Cu()}while(null!==Xl);if(0!==(6&jl))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Ol&&(Rl=Ol=null,Al=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Kl||(Kl=!0,Ou(tt,(function(){return Cu(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Pl.transition,Pl.transition=null;var s=bt;bt=1;var l=jl;jl|=4,El.current=null,function(e,t){if(ei=Wt,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.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(w){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===i&&(l=s),h===a&&++d===r&&(u=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Wt=!1,$s=t;null!==$s;)if(e=(t=$s).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,$s=e;else for(;null!==$s;){t=$s;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(w){ku(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,$s=e;break}$s=t.return}g=tl,tl=!1}(e,n),ml(n,e),pr(ti),Wt=!!ei,ti=ei=null,e.current=n,yl(n,e,i),Ye(),jl=l,bt=s,Pl.transition=a}else e.current=n;if(Kl&&(Kl=!1,Xl=e,Zl=i),a=e.pendingLanes,0===a&&(ql=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ru(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Wl)throw Wl=!1,e=Gl,Gl=null,e;0!==(1&Zl)&&0!==e.tag&&Cu(),a=e.pendingLanes,0!==(1&a)?e===Ql?Yl++:(Yl=0,Ql=e):Yl=0,Vi()}(e,t,n,r)}finally{Pl.transition=i,bt=r}return null}function Cu(){if(null!==Xl){var e=xt(Zl),t=Pl.transition,n=bt;try{if(Pl.transition=null,bt=16>e?16:e,null===Xl)var r=!1;else{if(e=Xl,Xl=null,Zl=0,0!==(6&jl))throw Error(o(331));var i=jl;for(jl|=4,$s=e.current;null!==$s;){var a=$s,s=a.child;if(0!==(16&$s.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for($s=c;null!==$s;){var d=$s;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,$s=f;else for(;null!==$s;){var h=(d=$s).sibling,p=d.return;if(ol(d),d===c){$s=null;break}if(null!==h){h.return=p,$s=h;break}$s=p}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}$s=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,$s=s;else e:for(;null!==$s;){if(0!==(2048&(a=$s).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,$s=y;break e}$s=a.return}}var b=e.current;for($s=b;null!==$s;){var x=(s=$s).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,$s=x;else e:for(s=b;null!==$s;){if(0!==(2048&(l=$s).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(C){ku(l,l.return,C)}if(l===s){$s=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,$s=w;break e}$s=l.return}}if(jl=i,Vi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(C){}r=!0}return r}finally{bt=n,Pl.transition=t}}return!1}function Su(e,t,n){e=Bo(e,t=hs(0,t=us(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ru(e,t))}function ku(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=Bo(t,e=ps(t,e=us(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Ol===e&&(Al&n)===n&&(4===Fl||3===Fl&&(130023424&Al)===Al&&500>Qe()-Ul?fu(e,0):Dl|=n),ru(e,t)}function Eu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Mo(e,t))&&(vt(e,t,n),ru(e,n))}function Pu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function ju(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Eu(e,n)}function Ou(e,t){return Ke(e,t)}function Ru(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,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 Au(e,t,n,r){return new Ru(e,t,n,r)}function Tu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nu(e,t){var n=e.alternate;return null===n?((n=Au(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fu(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Tu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Mu(n.children,i,a,t);case k:s=8,i|=8;break;case _:return(e=Au(12,n,t,2|i)).elementType=_,e.lanes=a,e;case O:return(e=Au(13,n,t,i)).elementType=O,e.lanes=a,e;case R:return(e=Au(19,n,t,i)).elementType=R,e.lanes=a,e;case N:return Lu(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case P:s=9;break e;case j:s=11;break e;case A:s=14;break e;case T:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Au(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Mu(e,t,n,r){return(e=Au(7,e,r,t)).lanes=n,e}function Lu(e,t,n,r){return(e=Au(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return(e=Au(6,e,null,t)).lanes=n,e}function Du(e,t,n){return(t=Au(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,i,o,a,s,l){return e=new zu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Au(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Io(o),e}function Uu(e){if(!e)return Pi;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ti(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ti(n))return Mi(e,n,t)}return t}function Vu(e,t,n,r,i,o,a,s,l){return(e=Bu(n,r,!0,e,0,o,0,s,l)).context=Uu(null),n=e.current,(o=zo(r=eu(),i=tu(n))).callback=void 0!==t&&null!==t?t:null,Bo(n,o,i),e.current.lanes=i,vt(e,i,r),ru(e,r),e}function Hu(e,t,n,r){var i=t.current,o=eu(),a=tu(i);return n=Uu(n),null===t.context?t.context=n:t.pendingContext=n,(t=zo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bo(i,t,a))&&(nu(e,i,a,o),Uo(e,i,a)),a}function Wu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Gu(e,t),(e=e.alternate)&&Gu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oi.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Os(t),po();break;case 5:$o(t);break;case 1:Ti(t.type)&&Li(t);break;case 4:Yo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ei(So,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ei(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Is(e,t,n):(Ei(ea,1&ea.current),null!==(e=Ws(e,t,n))?e.sibling:null);Ei(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Vs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ei(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return Ws(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&Ji(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var i=Ai(t,ji.current);Ro(t,n),i=ma(null,t,r,e,i,n);var a=va();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ti(r)?(a=!0,Li(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Io(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=js(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),xs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Tu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===j)return 11;if(e===A)return 14}return 2}(r),e=ns(r,e),i){case 0:t=Es(null,t,r,e,n);break e;case 1:t=Ps(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=Cs(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ps(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Os(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Do(e,t),Ho(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Rs(e,t,r,n,i=us(Error(o(423)),t));break e}if(r!==i){t=Rs(e,t,r,n,i=us(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Co(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Ws(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return $o(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),_s(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Is(e,t,n);case 4:return Yo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ei(So,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Oi.current){t=Ws(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=zo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Oo(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Oo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ro(t,n),r=r(i=Ao(i)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),Cs(e,t,r,i=ns(r.type,i),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Hs(e,t),t.tag=1,Ti(r)?(e=!0,Li(t)):e=!1,Ro(t,n),as(t,r,i),ls(t,r,i,n),js(null,t,r,!0,e,n);case 19:return Vs(e,t,n);case 22:return ks(e,t,n)}throw Error(o(156,t.tag))};var Ku="function"===typeof reportError?reportError:function(e){console.error(e)};function Xu(e){this._internalRoot=e}function Zu(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $u(){}function Ju(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Wu(a);s.call(e)}}Hu(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Wu(a);o.call(e)}}var a=Vu(t,r,e,0,null,!1,0,"",$u);return e._reactRootContainer=a,e[pi]=a.current,Vr(8===e.nodeType?e.parentNode:e),cu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Wu(l);s.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",$u);return e._reactRootContainer=l,e[pi]=l.current,Vr(8===e.nodeType?e.parentNode:e),cu((function(){Hu(t,l,n,r)})),l}(n,t,e,i,r);return Wu(a)}Zu.prototype.render=Xu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hu(e,t,null,null)},Zu.prototype.unmount=Xu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Hu(null,e,null,null)})),t[pi]=null}},Zu.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&It(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Qe()),0===(6&jl)&&(Vl=Qe()+500,Vi()))}break;case 13:cu((function(){var t=Mo(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),qu(e,1)}},Ct=function(e){if(13===e.tag){var t=Mo(e,134217728);if(null!==t)nu(t,e,134217728,eu());qu(e,134217728)}},St=function(e){if(13===e.tag){var t=tu(e),n=Mo(e,t);if(null!==n)nu(n,e,t,eu());qu(e,t)}},kt=function(){return bt},_t=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ce=function(e,t,n){switch(t){case"input":if($(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));K(r),$(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},je=uu,Oe=cu;var ec={usingClientEntryPoint:!1,Events:[bi,xi,wi,Ee,Pe,uu]},tc={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),ot=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(o(299));var n=!1,r="",i=Ku;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Xu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Qu(t))throw Error(o(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Ku;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Vu(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Vr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Zu(t)},t.render=function(e,t,n){if(!Qu(t))throw Error(o(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(o(40));return!!e._reactRootContainer&&(cu((function(){Ju(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},3620:(e,t,n)=>{"use strict";var r=n(715);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},715:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2157)},7057:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!o(e[u[l]],a[u[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},2085:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case g:case l:return e;default:return t}}case i:return t}}}function C(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||w(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},4665:(e,t,n)=>{"use strict";e.exports=n(2085)},9216:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Arc:()=>ze,Arrow:()=>He,Circle:()=>Oe,Ellipse:()=>Re,FastLayer:()=>_e,Group:()=>Ee,Image:()=>Fe,KonvaRenderer:()=>qe,Label:()=>Pe,Layer:()=>ke,Line:()=>Te,Path:()=>Ue,Rect:()=>je,RegularPolygon:()=>Ve,Ring:()=>De,Shape:()=>We,Sprite:()=>Ne,Stage:()=>Ke,Star:()=>Ie,Tag:()=>Be,Text:()=>Me,TextPath:()=>Le,Transformer:()=>Ge,Wedge:()=>Ae,useStrictMode:()=>Xe});var r={};n.r(r),n.d(r,{appendChild:()=>W,appendChildToContainer:()=>G,appendInitialChild:()=>k,cancelTimeout:()=>D,clearContainer:()=>re,commitMount:()=>Q,commitTextUpdate:()=>Y,commitUpdate:()=>$,createInstance:()=>_,createTextInstance:()=>E,detachDeletedInstance:()=>ie,finalizeInitialChildren:()=>P,getChildHostContext:()=>L,getCurrentEventPriority:()=>oe,getPublicInstance:()=>j,getRootHostContext:()=>M,hideInstance:()=>J,hideTextInstance:()=>ee,idlePriority:()=>w.unstable_IdlePriority,insertBefore:()=>q,insertInContainerBefore:()=>K,isPrimaryRenderer:()=>U,noTimeout:()=>z,now:()=>w.unstable_now,prepareForCommit:()=>O,preparePortalMount:()=>R,prepareUpdate:()=>A,removeChild:()=>X,removeChildFromContainer:()=>Z,resetAfterCommit:()=>T,resetTextContent:()=>N,run:()=>w.unstable_runWithPriority,scheduleTimeout:()=>I,shouldDeprioritizeSubtree:()=>F,shouldSetTextContent:()=>B,supportsMutation:()=>H,unhideInstance:()=>te,unhideTextInstance:()=>ne,warnsIfNotActing:()=>V});n(2792);var i=n(810),o=n(3230),a=n.n(o),s=n(935),l=n.n(s),u=n(1738),c=n(2225);const d={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let f=!1,h=!1;const p=".react-konva-event";let g=!1;const m="ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.\nPosition of a node will be changed during drag&drop, so you should update state of the react app as well.\nConsider to add onDragMove or onDragEnd events.\nFor more info see: https://github.com/konvajs/react-konva/issues/256\n",v='ReactKonva: You are using "zIndex" attribute for a Konva node.\nreact-konva may get confused with ordering. Just define correct order of elements in your render function of a component.\nFor more info see: https://github.com/konvajs/react-konva/issues/194\n',y={};function b(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;if(!f&&"zIndex"in t&&(console.warn(v),f=!0),!h&&t.draggable){var r=void 0!==t.x||void 0!==t.y,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(m),h=!0)}for(var o in n)if(!d[o]){var a="on"===o.slice(0,2),s=n[o]!==t[o];if(a&&s)"content"===(C=o.substr(2).toLowerCase()).substr(0,7)&&(C="content"+C.substr(7,1).toUpperCase()+C.substr(8)),e.off(C,n[o]);!t.hasOwnProperty(o)&&e.setAttr(o,void 0)}var l=g||t._useStrictMode,u={},c=!1;const b={};for(var o in t)if(!d[o]){a="on"===o.slice(0,2);var w=n[o]!==t[o];if(a&&w)"content"===(C=o.substr(2).toLowerCase()).substr(0,7)&&(C="content"+C.substr(7,1).toUpperCase()+C.substr(8)),t[o]&&(b[C]=t[o]);!a&&(t[o]!==n[o]||l&&t[o]!==e.getAttr(o))&&(c=!0,u[o]=t[o])}for(var C in c&&(e.setAttrs(u),x(e)),b)e.on(C+p,b[C])}function x(e){if(!c.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}var w=n(320);const C={},S={};function k(e,t){"string"!==typeof t?(e.add(t),x(e)):console.error("Do not use plain text as child of Konva.Node. You are using text: ".concat(t))}function _(e,t,n){let r=a()[e];r||(console.error("Konva has no node with the type ".concat(e,'. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/').concat(e,'" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html')),r=a().Group);const i={},o={};for(var s in t){"on"===s.slice(0,2)?o[s]=t[s]:i[s]=t[s]}const l=new r(i);return b(l,o),l}function E(e,t,n){console.error('Text components are not supported for now in ReactKonva. Your text is: "'.concat(e,'"'))}function P(e,t,n){return!1}function j(e){return e}function O(){return null}function R(){return null}function A(e,t,n,r){return S}function T(){}function N(e){}function F(e,t){return!1}function M(){return C}function L(){return C}a().Node.prototype._applyProps=b;const I=setTimeout,D=clearTimeout,z=-1;function B(e,t){return!1}const U=!1,V=!0,H=!0;function W(e,t){t.parent===e?t.moveToTop():e.add(t),x(e)}function G(e,t){t.parent===e?t.moveToTop():e.add(t),x(e)}function q(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),x(e)}function K(e,t,n){q(e,t,n)}function X(e,t){t.destroy(),t.off(p),x(e)}function Z(e,t){t.destroy(),t.off(p),x(e)}function Y(e,t,n){console.error('Text components are not yet supported in ReactKonva. You text is: "'.concat(n,'"'))}function Q(e,t,n){}function $(e,t,n,r,i){b(e,i,r)}function J(e){e.hide(),x(e)}function ee(e){}function te(e,t){(null==t.visible||t.visible)&&e.show()}function ne(e,t){}function re(e){}function ie(){}const oe=()=>u.DefaultEventPriority;var ae,se,le=Object.defineProperty,ue=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,pe=(e,t,n)=>t in e?le(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ge=(e,t)=>{for(var n in t||(t={}))fe.call(t,n)&&pe(e,n,t[n]);if(de)for(var n of de(t))he.call(t,n)&&pe(e,n,t[n]);return e};"undefined"===typeof window||!(null==(ae=window.document)?void 0:ae.createElement)&&"ReactNative"!==(null==(se=window.navigator)?void 0:se.product)?i.useEffect:i.useLayoutEffect;function me(e,t,n){if(!e)return;if(!0===n(e))return e;let r=t?e.return:e.child;for(;r;){const e=me(r,t,n);if(e)return e;r=t?null:r.sibling}}function ve(e){try{return Object.defineProperties(e,{_currentRenderer:{get:()=>null,set(){}},_currentRenderer2:{get:()=>null,set(){}}})}catch(t){return e}}const ye=console.error;console.error=function(){const e=[...arguments].join("");if(!(null==e?void 0:e.startsWith("Warning:"))||!e.includes("useContext"))return ye.apply(this,arguments);console.error=ye};const be=ve(i.createContext(null));class xe extends i.Component{render(){return i.createElement(be.Provider,{value:this._reactInternals},this.props.children)}}function we(){const e=i.useContext(be);if(null===e)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const t=i.useId();return i.useMemo((()=>{for(const n of[e,null==e?void 0:e.alternate]){if(!n)continue;const e=me(n,!1,(e=>{let n=e.memoizedState;for(;n;){if(n.memoizedState===t)return!0;n=n.next}}));if(e)return e}}),[e,t])}function Ce(){const e=function(){const e=we(),[t]=i.useState((()=>new Map));t.clear();let n=e;for(;n;){if(n.type&&"object"===typeof n.type){const e=void 0===n.type._context&&n.type.Provider===n.type?n.type:n.type._context;e&&e!==be&&!t.has(e)&&t.set(e,i.useContext(ve(e)))}n=n.return}return t}();return i.useMemo((()=>Array.from(e.keys()).reduce(((t,n)=>r=>{return i.createElement(t,null,i.createElement(n.Provider,(o=ge({},r),a={value:e.get(n)},ue(o,ce(a)))));var o,a}),(e=>i.createElement(xe,ge({},e))))),[e])}const Se=e=>{const t=i.useRef(),n=i.useRef(),r=i.useRef(),o=function(e){const t=i.useRef({});return i.useLayoutEffect((()=>{t.current=e})),i.useLayoutEffect((()=>()=>{t.current={}}),[]),t.current}(e),s=Ce(),l=t=>{const{forwardedRef:n}=e;n&&("function"===typeof n?n(t):n.current=t)};return i.useLayoutEffect((()=>(n.current=new(a().Stage)({width:e.width,height:e.height,container:t.current}),l(n.current),r.current=qe.createContainer(n.current,u.LegacyRoot,!1,null),qe.updateContainer(i.createElement(s,{},e.children),r.current),()=>{a().isBrowser&&(l(null),qe.updateContainer(null,r.current,null),n.current.destroy())})),[]),i.useLayoutEffect((()=>{l(n.current),b(n.current,e,o),qe.updateContainer(i.createElement(s,{},e.children),r.current,null)})),i.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},ke="Layer",_e="FastLayer",Ee="Group",Pe="Label",je="Rect",Oe="Circle",Re="Ellipse",Ae="Wedge",Te="Line",Ne="Sprite",Fe="Image",Me="Text",Le="TextPath",Ie="Star",De="Ring",ze="Arc",Be="Tag",Ue="Path",Ve="RegularPolygon",He="Arrow",We="Shape",Ge="Transformer",qe=l()(r);qe.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:i.version,rendererPackageName:"react-konva"});const Ke=i.forwardRef(((e,t)=>i.createElement(xe,{},i.createElement(Se,{...e,forwardedRef:t})))),Xe=function(e){g=e}},8982:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Animate:()=>Q,NodeGroup:()=>K});var r=n(5152),i=n(414),o=n(1087);function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.A)(e,t)}var s=n(7545),l=n(2474);function u(e,t){if(t&&("object"===(0,s.A)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,l.A)(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var d,f,h=n(810),p=n(4586),g=0,m=0,v=0,y=1e3,b=0,x=0,w=0,C="object"===typeof performance&&performance.now?performance:Date,S="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function k(){return x||(S(_),x=C.now()+w)}function _(){x=0}function E(){this._call=this._time=this._next=null}function P(e,t,n){var r=new E;return r.restart(e,t,n),r}function j(){x=(b=C.now())+w,g=m=0;try{!function(){k(),++g;for(var e,t=d;t;)(e=x-t._time)>=0&&t._call.call(null,e),t=t._next;--g}()}finally{g=0,function(){var e,t,n=d,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:d=t);f=e,R(r)}(),x=0}}function O(){var e=C.now(),t=e-b;t>y&&(w-=t,b=e)}function R(e){g||(m&&(m=clearTimeout(m)),e-x>24?(e<1/0&&(m=setTimeout(j,e-C.now()-w)),v&&(v=clearInterval(v))):(v||(b=C.now(),v=setInterval(O,y)),g=1,S(j)))}function A(e,t,n){var r=new E;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}function T(e){return T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}E.prototype=P.prototype={constructor:E,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?k():+n)+(null==t?0:+t),this._next||f===this||(f?f._next=this:d=this,f=this),this._call=e,this._time=n,R()},stop:function(){this._call&&(this._call=null,this._time=1/0,R())}};var N=0;function F(e,t){for(var n in t)e[n]=t[n]}var M={delay:0,duration:250,ease:function(e){return+e}};const L=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.start=null,this.interrupt=null,this.end=null,t.events&&Object.keys(t.events).forEach((function(e){if("function"!==typeof t.events[e])throw new Error("Event handlers must be a function");n[e]=function(e){var t=!1;return function(){t||(t=!0,e.call(this))}}(t.events[e])}))};function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){D(e,t,n[t])}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}const B=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.state=t||{}}var t,n,r;return t=e,(n=[{key:"transition",value:function(e){if(Array.isArray(e)){var t=!0,n=!1,r=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;this.parse(a)}}catch(s){n=!0,r=s}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}else this.parse(e)}},{key:"isTransitioning",value:function(){return!!this.transitionData}},{key:"stopTransitions",value:function(){var e=this.transitionData;e&&Object.keys(e).forEach((function(t){e[t].timer.stop()}))}},{key:"setState",value:function(e){F(this.state,"function"===typeof e?e(this.state):e)}},{key:"parse",value:function(e){var t=this,n=I({},e),r=new L(n);n.events&&delete n.events;var i=I({},M,n.timing||{},{time:k()});n.timing&&delete n.timing,Object.keys(n).forEach((function(e){var o,a,s=[],l=n[e];if("object"===T(a=l)&&!1===Array.isArray(a))Object.keys(l).forEach((function(n){var r=l[n];Array.isArray(r)?1===r.length?s.push(t.getTween(n,r[0],e)):(t.setState((function(t){var i,o;return(o={})[e]=I({},t[e],((i={})[n]=r[0],i)),o})),s.push(t.getTween(n,r[1],e))):"function"===typeof r?s.push((function(){return function(i){t.setState((function(t){var o,a;return(a={})[e]=I({},t[e],((o={})[n]=r(i),o)),a}))}})):(t.setState((function(t){var i,o;return(o={})[e]=I({},t[e],((i={})[n]=r,i)),o})),s.push(t.getTween(n,r,e)))}));else if(Array.isArray(l))1===l.length?s.push(t.getTween(e,l[0],null)):(t.setState(((o={})[e]=l[0],o)),s.push(t.getTween(e,l[1],null)));else if("function"===typeof l)s.push((function(){return function(n){var r;t.setState(((r={})[e]=l(n),r))}}));else{var u;t.setState(((u={})[e]=l,u)),s.push(t.getTween(e,l,null))}t.update({stateKey:e,timing:i,tweens:s,events:r,status:0})}))}},{key:"getTween",value:function(e,t,n){var r=this;return function(){var i=n?r.state[n][e]:r.state[e];if(i===t)return null;var o=r.getInterpolator(i,t,e,n);return null===n?function(t){var n;r.setState(((n={})[e]=o(t),n))}:function(t){r.setState((function(r){var i,a;return(a={})[n]=I({},r[n],((i={})[e]=o(t),i)),a}))}}}},{key:"update",value:function(e){this.transitionData||(this.transitionData={}),this.init(++N,e)}},{key:"init",value:function(e,t){var n=this,r=t.tweens.length,i=new Array(r);this.transitionData[e]=t,t.timer=P((function(e){t.status=1,t.timer.restart(o,t.timing.delay,t.timing.time),t.timing.delay<=e&&o(e-t.timing.delay)}),0,t.timing.time);var o=function o(l){if(1!==t.status)return s();for(var u in n.transitionData){var c=n.transitionData[u];if(c.stateKey===t.stateKey){if(3===c.status)return A(o);4===c.status?(c.status=6,c.timer.stop(),c.events.interrupt&&c.events.interrupt.call(n),delete n.transitionData[u]):+u<e&&(c.status=6,c.timer.stop(),delete n.transitionData[u])}}if(A((function(){3===t.status&&(t.status=4,t.timer.restart(a,t.timing.delay,t.timing.time),a(l))})),t.status=2,t.events.start&&t.events.start.call(n),2===t.status){t.status=3;for(var d=-1,f=0;f<r;++f){var h=t.tweens[f]();h&&(i[++d]=h)}i.length=d+1}},a=function(e){var r=1;e<t.timing.duration?r=t.timing.ease(e/t.timing.duration):(t.timer.restart(s),t.status=5);for(var o=-1;++o<i.length;)i[o](r);5===t.status&&(t.events.end&&t.events.end.call(n),s())},s=function(){for(var r in t.status=6,t.timer.stop(),delete n.transitionData[e],n.transitionData)return;delete n.transitionData}}}])&&z(t.prototype,n),r&&z(t,r),e}();const U=function(e,t,n,r){for(var i=[],o=0;o<n.length;o++)i[o]=n[o];for(var a=0;a<e.length;a++)void 0===r[e[a]]&&i.push(e[a]);return i.sort((function(e,i){var o=r[e],a=r[i],s=t[e],l=t[i];if(null!=o&&null!=a)return r[e]-r[i];if(null!=s&&null!=l)return t[e]-t[i];if(null!=o){for(var u=0;u<n.length;u++){var c=n[u];if(t[c]){if(o<r[c]&&l>t[c])return-1;if(o>r[c]&&l<t[c])return 1}}return 1}for(var d=0;d<n.length;d++){var f=n[d];if(t[f]){if(a<r[f]&&s>t[f])return 1;if(a>r[f]&&s<t[f])return-1}}return-1}))};var V="ENTER",H="LEAVE";function W(e,t){var n=+e,r=+t-n;return function(e){return n+r*e}}function G(e){var t=function(){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(e){return!1}}();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}var q=function(e){a(n,e);var t=G(n);function n(e){var i;(0,r.A)(this,n),i=t.call(this,e),(0,p.A)((0,l.A)(i),"animate",(function(){var e=i.state,t=e.nodeKeys,n=e.nodeHash;if(!i.unmounting){for(var r=!1,o=[],a=t.length,s=0;s<a;s++){var l=t[s],u=n[l],c=u.isTransitioning();c&&(r=!0),u.type!==H||c?o.push(l):delete n[l]}r||i.interval.stop(),i.setState((function(){return{nodeKeys:o,nodes:o.map((function(e){return n[e]}))}}))}})),(0,p.A)((0,l.A)(i),"interval",null),(0,p.A)((0,l.A)(i),"unmounting",!1);var o=e.interpolation,s=function(e){a(n,e);var t=G(n);function n(e,i){var a;return(0,r.A)(this,n),a=t.call(this),(0,p.A)((0,l.A)(a),"getInterpolator",o),a.key=e,a.data=i,a.type=V,a}return n}(B);return i.state={Node:s,nodeKeys:[],nodeHash:{},nodes:[],data:null},i}return(0,i.A)(n,[{key:"componentDidMount",value:function(){this.startInterval()}},{key:"componentDidUpdate",value:function(e){e.data===this.props.data||this.unmounting||this.startInterval()}},{key:"startInterval",value:function(){this.interval?this.interval.restart(this.animate):this.interval=function(e,t,n){var r=new E,i=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?k():+n,r.restart((function o(a){a+=i,r.restart(o,i+=t,n),e(a)}),t,n),r)}(this.animate)}},{key:"componentWillUnmount",value:function(){var e=this.state,t=e.nodeKeys,n=e.nodeHash;this.unmounting=!0,this.interval&&this.interval.stop(),t.forEach((function(e){n[e].stopTransitions()}))}},{key:"render",value:function(){var e=this.props.children(this.state.nodes);return e&&h.Children.only(e)}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.data){for(var n=e.data,r=e.keyAccessor,i=e.start,o=e.enter,a=e.update,s=e.leave,l=t.Node,u=t.nodeKeys,c=t.nodeHash,d={},f=0;f<u.length;f++)d[u[f]]=f;for(var h={},p=[],g=0;g<n.length;g++){var m=n[g],v=r(m,g);if(h[v]=g,p.push(v),void 0===d[v]){var y=new l;y.key=v,y.data=m,y.type=V,c[v]=y}}for(var b=0;b<u.length;b++){var x=u[b],w=c[x];void 0!==h[x]?(w.data=n[h[x]],w.type="UPDATE"):w.type=H}for(var C=U(u,d,p,h),S=0;S<C.length;S++){var k=C[S],_=c[k],E=_.data;_.type===V?(_.setState(i(E,h[k])),_.transition(o(E,h[k]))):_.type===H?_.transition(s(E,d[k])):_.transition(a(E,h[k]))}return{data:n,nodes:C.map((function(e){return c[e]})),nodeHash:c,nodeKeys:C}}return null}}]),n}(h.Component);q.propTypes={},q.defaultProps={enter:function(){},update:function(){},leave:function(){},interpolation:W};const K=q;function X(e){var t=function(){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(e){return!1}}();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}var Z=function(){return"$$key$$"},Y=function(e){a(n,e);var t=X(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,i.A)(n,[{key:"render",value:function(){var e=this.props,t=e.show,n=e.start,r=e.enter,i=e.update,o=e.leave,a=e.interpolation,s=e.children,l="function"===typeof n?n():n;return h.createElement(K,{data:t?[l]:[],start:function(){return l},keyAccessor:Z,interpolation:a,enter:"function"===typeof r?r:function(){return r},update:"function"===typeof i?i:function(){return i},leave:"function"===typeof o?o:function(){return o}},(function(e){if(!e[0])return null;var t=s(e[0].state);return t&&h.Children.only(t)}))}}]),n}(h.Component);Y.propTypes={},Y.defaultProps={show:!0,interpolation:W};const Q=Y},6741:(e,t)=>{"use strict";t.DefaultEventPriority=16,t.LegacyRoot=0},9258:(e,t,n)=>{e.exports=function(e){var t={},r=n(810),i=n(320),o=Object.assign;function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var x=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var w=Symbol.iterator;function C(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=w&&e[w]||e["@@iterator"])?e:null}function S(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case c:return"Fragment";case u:return"Portal";case f:return"Profiler";case d:return"StrictMode";case m:return"Suspense";case v:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case p:return(e.displayName||"Context")+".Consumer";case h:return(e._context.displayName||"Context")+".Provider";case g:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case y:return null!==(t=e.displayName||null)?t:S(e.type)||"Memo";case b:t=e._payload,e=e._init;try{return S(e(t))}catch(n){}}return null}function k(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return S(t);case 8:return t===d?"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 t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function _(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function E(e){if(_(e)!==e)throw Error(a(188))}function P(e){var t=e.alternate;if(!t){if(null===(t=_(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return E(i),e;if(o===r)return E(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}function j(e){return null!==(e=P(e))?O(e):null}function O(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=O(e);if(null!==t)return t;e=e.sibling}return null}function R(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){if(4!==e.tag){var t=R(e);if(null!==t)return t}e=e.sibling}return null}var A,T=Array.isArray,N=e.getPublicInstance,F=e.getRootHostContext,M=e.getChildHostContext,L=e.prepareForCommit,I=e.resetAfterCommit,D=e.createInstance,z=e.appendInitialChild,B=e.finalizeInitialChildren,U=e.prepareUpdate,V=e.shouldSetTextContent,H=e.createTextInstance,W=e.scheduleTimeout,G=e.cancelTimeout,q=e.noTimeout,K=e.isPrimaryRenderer,X=e.supportsMutation,Z=e.supportsPersistence,Y=e.supportsHydration,Q=e.getInstanceFromNode,$=e.preparePortalMount,J=e.getCurrentEventPriority,ee=e.detachDeletedInstance,te=e.supportsMicrotasks,ne=e.scheduleMicrotask,re=e.supportsTestSelectors,ie=e.findFiberRoot,oe=e.getBoundingRect,ae=e.getTextContent,se=e.isHiddenSubtree,le=e.matchAccessibilityRole,ue=e.setFocusIfFocusable,ce=e.setupIntersectionObserver,de=e.appendChild,fe=e.appendChildToContainer,he=e.commitTextUpdate,pe=e.commitMount,ge=e.commitUpdate,me=e.insertBefore,ve=e.insertInContainerBefore,ye=e.removeChild,be=e.removeChildFromContainer,xe=e.resetTextContent,we=e.hideInstance,Ce=e.hideTextInstance,Se=e.unhideInstance,ke=e.unhideTextInstance,_e=e.clearContainer,Ee=e.cloneInstance,Pe=e.createContainerChildSet,je=e.appendChildToContainerChildSet,Oe=e.finalizeContainerChildren,Re=e.replaceContainerChildren,Ae=e.cloneHiddenInstance,Te=e.cloneHiddenTextInstance,Ne=e.canHydrateInstance,Fe=e.canHydrateTextInstance,Me=e.canHydrateSuspenseInstance,Le=e.isSuspenseInstancePending,Ie=e.isSuspenseInstanceFallback,De=e.getSuspenseInstanceFallbackErrorDetails,ze=e.registerSuspenseInstanceRetry,Be=e.getNextHydratableSibling,Ue=e.getFirstHydratableChild,Ve=e.getFirstHydratableChildWithinContainer,He=e.getFirstHydratableChildWithinSuspenseInstance,We=e.hydrateInstance,Ge=e.hydrateTextInstance,qe=e.hydrateSuspenseInstance,Ke=e.getNextHydratableInstanceAfterSuspenseInstance,Xe=e.commitHydratedContainer,Ze=e.commitHydratedSuspenseInstance,Ye=e.clearSuspenseBoundary,Qe=e.clearSuspenseBoundaryFromContainer,$e=e.shouldDeleteUnhydratedTailInstances,Je=e.didNotMatchHydratedContainerTextInstance,et=e.didNotMatchHydratedTextInstance;function tt(e){if(void 0===A)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return"\n"+A+e}var nt=!1;function rt(e,t){if(!e||nt)return"";nt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{nt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tt(e):""}var it=Object.prototype.hasOwnProperty,ot=[],at=-1;function st(e){return{current:e}}function lt(e){0>at||(e.current=ot[at],ot[at]=null,at--)}function ut(e,t){at++,ot[at]=e.current,e.current=t}var ct={},dt=st(ct),ft=st(!1),ht=ct;function pt(e,t){var n=e.type.contextTypes;if(!n)return ct;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function mt(){lt(ft),lt(dt)}function vt(e,t,n){if(dt.current!==ct)throw Error(a(168));ut(dt,t),ut(ft,n)}function yt(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,k(e)||"Unknown",i));return o({},n,r)}function bt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ct,ht=dt.current,ut(dt,e),ut(ft,ft.current),!0}function xt(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=yt(e,t,ht),r.__reactInternalMemoizedMergedChildContext=e,lt(ft),lt(dt),ut(dt,e)):lt(ft),ut(ft,n)}var wt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Ct(e)/St|0)|0},Ct=Math.log,St=Math.LN2;var kt=64,_t=4194304;function Et(e){switch(e&-e){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&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=Et(s):0!==(o&=a)&&(r=Et(o))}else 0!==(a=n&~i)?r=Et(a):0!==o&&(r=Et(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-wt(t)),r|=e[n],t&=~i;return r}function jt(e,t){switch(e){case 1:case 2:case 4:return t+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 t+5e3;default:return-1}}function Ot(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Rt(){var e=kt;return 0===(4194240&(kt<<=1))&&(kt=64),e}function At(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Tt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-wt(t)]=n}function Nt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ft=0;function Mt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var Lt=i.unstable_scheduleCallback,It=i.unstable_cancelCallback,Dt=i.unstable_shouldYield,zt=i.unstable_requestPaint,Bt=i.unstable_now,Ut=i.unstable_ImmediatePriority,Vt=i.unstable_UserBlockingPriority,Ht=i.unstable_NormalPriority,Wt=i.unstable_IdlePriority,Gt=null,qt=null;var Kt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Xt=null,Zt=!1,Yt=!1;function Qt(e){null===Xt?Xt=[e]:Xt.push(e)}function $t(){if(!Yt&&null!==Xt){Yt=!0;var e=0,t=Ft;try{var n=Xt;for(Ft=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Xt=null,Zt=!1}catch(i){throw null!==Xt&&(Xt=Xt.slice(e+1)),Lt(Ut,$t),i}finally{Ft=t,Yt=!1}}return null}var Jt=[],en=0,tn=null,nn=0,rn=[],on=0,an=null,sn=1,ln="";function un(e,t){Jt[en++]=nn,Jt[en++]=tn,tn=e,nn=t}function cn(e,t,n){rn[on++]=sn,rn[on++]=ln,rn[on++]=an,an=e;var r=sn;e=ln;var i=32-wt(r)-1;r&=~(1<<i),n+=1;var o=32-wt(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,sn=1<<32-wt(t)+i|n<<i|r,ln=o+e}else sn=1<<o|n<<i|r,ln=e}function dn(e){null!==e.return&&(un(e,1),cn(e,1,0))}function fn(e){for(;e===tn;)tn=Jt[--en],Jt[en]=null,nn=Jt[--en],Jt[en]=null;for(;e===an;)an=rn[--on],rn[on]=null,ln=rn[--on],rn[on]=null,sn=rn[--on],rn[on]=null}var hn=null,pn=null,gn=!1,mn=!1,vn=null;function yn(e,t){var n=as(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function bn(e,t){switch(e.tag){case 5:return null!==(t=Ne(t,e.type,e.pendingProps))&&(e.stateNode=t,hn=e,pn=Ue(t),!0);case 6:return null!==(t=Fe(t,e.pendingProps))&&(e.stateNode=t,hn=e,pn=null,!0);case 13:if(null!==(t=Me(t))){var n=null!==an?{id:sn,overflow:ln}:null;return e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=as(18,null,null,0)).stateNode=t,n.return=e,e.child=n,hn=e,pn=null,!0}return!1;default:return!1}}function xn(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function wn(e){if(gn){var t=pn;if(t){var n=t;if(!bn(e,t)){if(xn(e))throw Error(a(418));t=Be(n);var r=hn;t&&bn(e,t)?yn(r,n):(e.flags=-4097&e.flags|2,gn=!1,hn=e)}}else{if(xn(e))throw Error(a(418));e.flags=-4097&e.flags|2,gn=!1,hn=e}}}function Cn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;hn=e}function Sn(e){if(!Y||e!==hn)return!1;if(!gn)return Cn(e),gn=!0,!1;if(3!==e.tag&&(5!==e.tag||$e(e.type)&&!V(e.type,e.memoizedProps))){var t=pn;if(t){if(xn(e))throw kn(),Error(a(418));for(;t;)yn(e,t),t=Be(t)}}if(Cn(e),13===e.tag){if(!Y)throw Error(a(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));pn=Ke(e)}else pn=hn?Be(e.stateNode):null;return!0}function kn(){for(var e=pn;e;)e=Be(e)}function _n(){Y&&(pn=hn=null,mn=gn=!1)}function En(e){null===vn?vn=[e]:vn.push(e)}var Pn=s.ReactCurrentBatchConfig;function jn(e,t){if(Kt(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!it.call(t,i)||!Kt(e[i],t[i]))return!1}return!0}function On(e){switch(e.tag){case 5:return tt(e.type);case 16:return tt("Lazy");case 13:return tt("Suspense");case 19:return tt("SuspenseList");case 0:case 2:case 15:return e=rt(e.type,!1);case 11:return e=rt(e.type.render,!1);case 1:return e=rt(e.type,!0);default:return""}}function Rn(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function An(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Tn(e){return(0,e._init)(e._payload)}function Nn(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=ls(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function d(e,t,n,r){return null===t||6!==t.tag?((t=fs(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n,r){var o=n.type;return o===c?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===b&&Tn(o)===t.type)?((r=i(t,n.props)).ref=Rn(e,t,n),r.return=e,r):((r=us(n.type,n.key,n.props,null,e.mode,r)).ref=Rn(e,t,n),r.return=e,r)}function h(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=hs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function p(e,t,n,r,o){return null===t||7!==t.tag?((t=cs(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function g(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=fs(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case l:return(n=us(t.type,t.key,t.props,null,e.mode,n)).ref=Rn(e,null,t),n.return=e,n;case u:return(t=hs(t,e.mode,n)).return=e,t;case b:return g(e,(0,t._init)(t._payload),n)}if(T(t)||C(t))return(t=cs(t,e.mode,n,null)).return=e,t;An(e,t)}return null}function m(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:d(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case l:return n.key===i?f(e,t,n,r):null;case u:return n.key===i?h(e,t,n,r):null;case b:return m(e,t,(i=n._init)(n._payload),r)}if(T(n)||C(n))return null!==i?null:p(e,t,n,r,null);An(e,n)}return null}function v(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return d(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case l:return f(t,e=e.get(null===r.key?n:r.key)||null,r,i);case u:return h(t,e=e.get(null===r.key?n:r.key)||null,r,i);case b:return v(e,t,n,(0,r._init)(r._payload),i)}if(T(r)||C(r))return p(t,e=e.get(n)||null,r,i,null);An(t,r)}return null}function y(i,a,s,l){for(var u=null,c=null,d=a,f=a=0,h=null;null!==d&&f<s.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var p=m(i,d,s[f],l);if(null===p){null===d&&(d=h);break}e&&d&&null===p.alternate&&t(i,d),a=o(p,a,f),null===c?u=p:c.sibling=p,c=p,d=h}if(f===s.length)return n(i,d),gn&&un(i,f),u;if(null===d){for(;f<s.length;f++)null!==(d=g(i,s[f],l))&&(a=o(d,a,f),null===c?u=d:c.sibling=d,c=d);return gn&&un(i,f),u}for(d=r(i,d);f<s.length;f++)null!==(h=v(d,i,f,s[f],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?f:h.key),a=o(h,a,f),null===c?u=h:c.sibling=h,c=h);return e&&d.forEach((function(e){return t(i,e)})),gn&&un(i,f),u}function x(i,s,l,u){var c=C(l);if("function"!==typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,f=s,h=s=0,p=null,y=l.next();null!==f&&!y.done;h++,y=l.next()){f.index>h?(p=f,f=null):p=f.sibling;var b=m(i,f,y.value,u);if(null===b){null===f&&(f=p);break}e&&f&&null===b.alternate&&t(i,f),s=o(b,s,h),null===d?c=b:d.sibling=b,d=b,f=p}if(y.done)return n(i,f),gn&&un(i,h),c;if(null===f){for(;!y.done;h++,y=l.next())null!==(y=g(i,y.value,u))&&(s=o(y,s,h),null===d?c=y:d.sibling=y,d=y);return gn&&un(i,h),c}for(f=r(i,f);!y.done;h++,y=l.next())null!==(y=v(f,i,h,y.value,u))&&(e&&null!==y.alternate&&f.delete(null===y.key?h:y.key),s=o(y,s,h),null===d?c=y:d.sibling=y,d=y);return e&&f.forEach((function(e){return t(i,e)})),gn&&un(i,h),c}return function e(r,o,a,d){if("object"===typeof a&&null!==a&&a.type===c&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case l:e:{for(var f=a.key,h=o;null!==h;){if(h.key===f){if((f=a.type)===c){if(7===h.tag){n(r,h.sibling),(o=i(h,a.props.children)).return=r,r=o;break e}}else if(h.elementType===f||"object"===typeof f&&null!==f&&f.$$typeof===b&&Tn(f)===h.type){n(r,h.sibling),(o=i(h,a.props)).ref=Rn(r,h,a),o.return=r,r=o;break e}n(r,h);break}t(r,h),h=h.sibling}a.type===c?((o=cs(a.props.children,r.mode,d,a.key)).return=r,r=o):((d=us(a.type,a.key,a.props,null,r.mode,d)).ref=Rn(r,o,a),d.return=r,r=d)}return s(r);case u:e:{for(h=a.key;null!==o;){if(o.key===h){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=hs(a,r.mode,d)).return=r,r=o}return s(r);case b:return e(r,o,(h=a._init)(a._payload),d)}if(T(a))return y(r,o,a,d);if(C(a))return x(r,o,a,d);An(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=fs(a,r.mode,d)).return=r,r=o),s(r)):n(r,o)}}var Fn=Nn(!0),Mn=Nn(!1),Ln=st(null),In=null,Dn=null,zn=null;function Bn(){zn=Dn=In=null}function Un(e,t,n){K?(ut(Ln,t._currentValue),t._currentValue=n):(ut(Ln,t._currentValue2),t._currentValue2=n)}function Vn(e){var t=Ln.current;lt(Ln),K?e._currentValue=t:e._currentValue2=t}function Hn(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wn(e,t){In=e,zn=Dn=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ni=!0),e.firstContext=null)}function Gn(e){var t=K?e._currentValue:e._currentValue2;if(zn!==e)if(e={context:e,memoizedValue:t,next:null},null===Dn){if(null===In)throw Error(a(308));Dn=e,In.dependencies={lanes:0,firstContext:e}}else Dn=Dn.next=e;return t}var qn=null;function Kn(e){null===qn?qn=[e]:qn.push(e)}function Xn(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Kn(t)):(n.next=i.next,i.next=n),t.interleaved=n,Zn(e,r)}function Zn(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Yn=!1;function Qn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $n(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function er(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&na)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Zn(e,n)}return null===(i=r.interleaved)?(t.next=t,Kn(r)):(t.next=i.next,i.next=t),r.interleaved=t,Zn(e,n)}function tr(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nt(e,n)}}function nr(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function rr(e,t,n,r){var i=e.updateQueue;Yn=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?a=c:s.next=c,s=u;var d=e.alternate;null!==d&&((l=(d=d.updateQueue).lastBaseUpdate)!==s&&(null===l?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(null!==a){var f=i.baseState;for(s=0,d=c=u=null,l=a;;){var h=l.lane,p=l.eventTime;if((r&h)===h){null!==d&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,m=l;switch(h=t,p=n,m.tag){case 1:if("function"===typeof(g=m.payload)){f=g.call(p,f,h);break e}f=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null===(h="function"===typeof(g=m.payload)?g.call(p,f,h):g)||void 0===h)break e;f=o({},f,h);break e;case 2:Yn=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[l]:h.push(l))}else p={eventTime:p,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===d?(c=d=p,u=f):d=d.next=p,s|=h;if(null===(l=l.next)){if(null===(l=i.shared.pending))break;l=(h=l).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===d&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,null!==(t=i.shared.interleaved)){i=t;do{s|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);ca|=s,e.lanes=s,e.memoizedState=f}}function ir(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var or={},ar=st(or),sr=st(or),lr=st(or);function ur(e){if(e===or)throw Error(a(174));return e}function cr(e,t){ut(lr,t),ut(sr,e),ut(ar,or),e=F(t),lt(ar),ut(ar,e)}function dr(){lt(ar),lt(sr),lt(lr)}function fr(e){var t=ur(lr.current),n=ur(ar.current);n!==(t=M(n,e.type,t))&&(ut(sr,e),ut(ar,t))}function hr(e){sr.current===e&&(lt(ar),lt(sr))}var pr=st(0);function gr(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Le(n)||Ie(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mr=[];function vr(){for(var e=0;e<mr.length;e++){var t=mr[e];K?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}mr.length=0}var yr=s.ReactCurrentDispatcher,br=s.ReactCurrentBatchConfig,xr=0,wr=null,Cr=null,Sr=null,kr=!1,_r=!1,Er=0,Pr=0;function jr(){throw Error(a(321))}function Or(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kt(e[n],t[n]))return!1;return!0}function Rr(e,t,n,r,i,o){if(xr=o,wr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yr.current=null===e||null===e.memoizedState?hi:pi,e=n(r,i),_r){o=0;do{if(_r=!1,Er=0,25<=o)throw Error(a(301));o+=1,Sr=Cr=null,t.updateQueue=null,yr.current=gi,e=n(r,i)}while(_r)}if(yr.current=fi,t=null!==Cr&&null!==Cr.next,xr=0,Sr=Cr=wr=null,kr=!1,t)throw Error(a(300));return e}function Ar(){var e=0!==Er;return Er=0,e}function Tr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Sr?wr.memoizedState=Sr=e:Sr=Sr.next=e,Sr}function Nr(){if(null===Cr){var e=wr.alternate;e=null!==e?e.memoizedState:null}else e=Cr.next;var t=null===Sr?wr.memoizedState:Sr.next;if(null!==t)Sr=t,Cr=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Cr=e).memoizedState,baseState:Cr.baseState,baseQueue:Cr.baseQueue,queue:Cr.queue,next:null},null===Sr?wr.memoizedState=Sr=e:Sr=Sr.next=e}return Sr}function Fr(e,t){return"function"===typeof t?t(e):t}function Mr(e){var t=Nr(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Cr,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var l=s=null,u=null,c=o;do{var d=c.lane;if((xr&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,wr.lanes|=d,ca|=d}c=c.next}while(null!==c&&c!==o);null===u?s=r:u.next=l,Kt(r,t.memoizedState)||(Ni=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,wr.lanes|=o,ca|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Lr(e){var t=Nr(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Kt(o,t.memoizedState)||(Ni=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ir(){}function Dr(e,t){var n=wr,r=Nr(),i=t(),o=!Kt(r.memoizedState,i);if(o&&(r.memoizedState=i,Ni=!0),r=r.queue,Yr(Ur.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==Sr&&1&Sr.memoizedState.tag){if(n.flags|=2048,Gr(9,Br.bind(null,n,r,i,t),void 0,null),null===ra)throw Error(a(349));0!==(30&xr)||zr(n,t,i)}return i}function zr(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=wr.updateQueue)?(t={lastEffect:null,stores:null},wr.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Br(e,t,n,r){t.value=n,t.getSnapshot=r,Vr(t)&&Hr(e)}function Ur(e,t,n){return n((function(){Vr(t)&&Hr(e)}))}function Vr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch(r){return!0}}function Hr(e){var t=Zn(e,1);null!==t&&Ta(t,e,1,-1)}function Wr(e){var t=Tr();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:e},t.queue=e,e=e.dispatch=li.bind(null,wr,e),[t.memoizedState,e]}function Gr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=wr.updateQueue)?(t={lastEffect:null,stores:null},wr.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function qr(){return Nr().memoizedState}function Kr(e,t,n,r){var i=Tr();wr.flags|=e,i.memoizedState=Gr(1|t,n,void 0,void 0===r?null:r)}function Xr(e,t,n,r){var i=Nr();r=void 0===r?null:r;var o=void 0;if(null!==Cr){var a=Cr.memoizedState;if(o=a.destroy,null!==r&&Or(r,a.deps))return void(i.memoizedState=Gr(t,n,o,r))}wr.flags|=e,i.memoizedState=Gr(1|t,n,o,r)}function Zr(e,t){return Kr(8390656,8,e,t)}function Yr(e,t){return Xr(2048,8,e,t)}function Qr(e,t){return Xr(4,2,e,t)}function $r(e,t){return Xr(4,4,e,t)}function Jr(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ei(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Xr(4,4,Jr.bind(null,t,e),n)}function ti(){}function ni(e,t){var n=Nr();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Or(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ri(e,t){var n=Nr();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Or(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ii(e,t,n){return 0===(21&xr)?(e.baseState&&(e.baseState=!1,Ni=!0),e.memoizedState=n):(Kt(n,t)||(n=Rt(),wr.lanes|=n,ca|=n,e.baseState=!0),t)}function oi(e,t){var n=Ft;Ft=0!==n&&4>n?n:4,e(!0);var r=br.transition;br.transition={};try{e(!1),t()}finally{Ft=n,br.transition=r}}function ai(){return Nr().memoizedState}function si(e,t,n){var r=Aa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ui(e))ci(t,n);else if(null!==(n=Xn(e,t,n,r))){Ta(n,e,r,Ra()),di(n,t,r)}}function li(e,t,n){var r=Aa(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ui(e))ci(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Kt(s,a)){var l=t.interleaved;return null===l?(i.next=i,Kn(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(u){}null!==(n=Xn(e,t,i,r))&&(Ta(n,e,r,i=Ra()),di(n,t,r))}}function ui(e){var t=e.alternate;return e===wr||null!==t&&t===wr}function ci(e,t){_r=kr=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function di(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nt(e,n)}}var fi={readContext:Gn,useCallback:jr,useContext:jr,useEffect:jr,useImperativeHandle:jr,useInsertionEffect:jr,useLayoutEffect:jr,useMemo:jr,useReducer:jr,useRef:jr,useState:jr,useDebugValue:jr,useDeferredValue:jr,useTransition:jr,useMutableSource:jr,useSyncExternalStore:jr,useId:jr,unstable_isNewReconciler:!1},hi={readContext:Gn,useCallback:function(e,t){return Tr().memoizedState=[e,void 0===t?null:t],e},useContext:Gn,useEffect:Zr,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Kr(4194308,4,Jr.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kr(4,2,e,t)},useMemo:function(e,t){var n=Tr();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tr();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=si.bind(null,wr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Tr().memoizedState=e},useState:Wr,useDebugValue:ti,useDeferredValue:function(e){return Tr().memoizedState=e},useTransition:function(){var e=Wr(!1),t=e[0];return e=oi.bind(null,e[1]),Tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=wr,i=Tr();if(gn){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===ra)throw Error(a(349));0!==(30&xr)||zr(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Zr(Ur.bind(null,r,o,e),[e]),r.flags|=2048,Gr(9,Br.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Tr(),t=ra.identifierPrefix;if(gn){var n=ln;t=":"+t+"R"+(n=(sn&~(1<<32-wt(sn)-1)).toString(32)+n),0<(n=Er++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Pr++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pi={readContext:Gn,useCallback:ni,useContext:Gn,useEffect:Yr,useImperativeHandle:ei,useInsertionEffect:Qr,useLayoutEffect:$r,useMemo:ri,useReducer:Mr,useRef:qr,useState:function(){return Mr(Fr)},useDebugValue:ti,useDeferredValue:function(e){return ii(Nr(),Cr.memoizedState,e)},useTransition:function(){return[Mr(Fr)[0],Nr().memoizedState]},useMutableSource:Ir,useSyncExternalStore:Dr,useId:ai,unstable_isNewReconciler:!1},gi={readContext:Gn,useCallback:ni,useContext:Gn,useEffect:Yr,useImperativeHandle:ei,useInsertionEffect:Qr,useLayoutEffect:$r,useMemo:ri,useReducer:Lr,useRef:qr,useState:function(){return Lr(Fr)},useDebugValue:ti,useDeferredValue:function(e){var t=Nr();return null===Cr?t.memoizedState=e:ii(t,Cr.memoizedState,e)},useTransition:function(){return[Lr(Fr)[0],Nr().memoizedState]},useMutableSource:Ir,useSyncExternalStore:Dr,useId:ai,unstable_isNewReconciler:!1};function mi(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function vi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yi={isMounted:function(e){return!!(e=e._reactInternals)&&_(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ra(),i=Aa(e),o=Jn(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=er(e,o,i))&&(Ta(t,e,i,r),tr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ra(),i=Aa(e),o=Jn(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=er(e,o,i))&&(Ta(t,e,i,r),tr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ra(),r=Aa(e),i=Jn(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=er(e,i,r))&&(Ta(t,e,r,n),tr(t,e,r))}};function bi(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!jn(n,r)||!jn(i,o))}function xi(e,t,n){var r=!1,i=ct,o=t.contextType;return"object"===typeof o&&null!==o?o=Gn(o):(i=gt(t)?ht:dt.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?pt(e,i):ct),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function wi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yi.enqueueReplaceState(t,t.state,null)}function Ci(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Qn(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Gn(o):(o=gt(t)?ht:dt.current,i.context=pt(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(vi(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yi.enqueueReplaceState(i,i.state,null),rr(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Si(e,t){try{var n="",r=t;do{n+=On(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function ki(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function _i(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var Ei="function"===typeof WeakMap?WeakMap:Map;function Pi(e,t,n){(n=Jn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xa||(xa=!0,wa=r),_i(0,t)},n}function ji(e,t,n){(n=Jn(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){_i(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){_i(0,t),"function"!==typeof r&&(null===Ca?Ca=new Set([this]):Ca.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Oi(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Ei;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=es.bind(null,e,t,n),t.then(e,e))}function Ri(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Ai(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Jn(-1,1)).tag=2,er(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var Ti=s.ReactCurrentOwner,Ni=!1;function Fi(e,t,n,r){t.child=null===e?Mn(t,null,n,r):Fn(t,e.child,n,r)}function Mi(e,t,n,r,i){n=n.render;var o=t.ref;return Wn(t,i),r=Rr(e,t,n,r,o,i),n=Ar(),null===e||Ni?(gn&&n&&dn(t),t.flags|=1,Fi(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,io(e,t,i))}function Li(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||ss(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=us(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ii(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:jn)(a,r)&&e.ref===t.ref)return io(e,t,i)}return t.flags|=1,(e=ls(o,r)).ref=t.ref,e.return=t,t.child=e}function Ii(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(jn(o,r)&&e.ref===t.ref){if(Ni=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,io(e,t,i);0!==(131072&e.flags)&&(Ni=!0)}}return Bi(e,t,n,r,i)}function Di(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut(sa,aa),aa|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ut(sa,aa),aa|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,ut(sa,aa),aa|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ut(sa,aa),aa|=r;return Fi(e,t,i,n),t.child}function zi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bi(e,t,n,r,i){var o=gt(n)?ht:dt.current;return o=pt(t,o),Wn(t,i),n=Rr(e,t,n,r,o,i),r=Ar(),null===e||Ni?(gn&&r&&dn(t),t.flags|=1,Fi(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,io(e,t,i))}function Ui(e,t,n,r,i){if(gt(n)){var o=!0;bt(t)}else o=!1;if(Wn(t,i),null===t.stateNode)ro(e,t),xi(t,n,r),Ci(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=Gn(u):u=pt(t,u=gt(n)?ht:dt.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&wi(t,a,r,u),Yn=!1;var f=t.memoizedState;a.state=f,rr(t,r,a,i),l=t.memoizedState,s!==r||f!==l||ft.current||Yn?("function"===typeof c&&(vi(t,n,c,r),l=t.memoizedState),(s=Yn||bi(t,n,s,r,f,l,u))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,$n(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:mi(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Gn(l):l=pt(t,l=gt(n)?ht:dt.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&wi(t,a,r,l),Yn=!1,f=t.memoizedState,a.state=f,rr(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||ft.current||Yn?("function"===typeof h&&(vi(t,n,h,r),p=t.memoizedState),(u=Yn||bi(t,n,u,r,f,p,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Vi(e,t,n,r,o,i)}function Vi(e,t,n,r,i,o){zi(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&xt(t,n,!1),io(e,t,o);r=t.stateNode,Ti.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Fn(t,e.child,null,o),t.child=Fn(t,null,s,o)):Fi(e,t,s,o),t.memoizedState=r.state,i&&xt(t,n,!0),t.child}function Hi(e){var t=e.stateNode;t.pendingContext?vt(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vt(0,t.context,!1),cr(e,t.containerInfo)}function Wi(e,t,n,r,i){return _n(),En(i),t.flags|=256,Fi(e,t,n,r),t.child}var Gi,qi,Ki,Xi,Zi={dehydrated:null,treeContext:null,retryLane:0};function Yi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qi(e,t,n){var r,i=t.pendingProps,o=pr.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),ut(pr,1&o),null===e)return wn(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:Ie(e)?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=ds(l,i,0,null),e=cs(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Yi(n),t.memoizedState=Zi,e):$i(t,l));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,s){if(n)return 256&t.flags?(t.flags&=-257,Ji(e,t,s,r=ki(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ds({mode:"visible",children:r.children},i,0,null),(o=cs(o,i,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&Fn(t,e.child,null,s),t.child.memoizedState=Yi(s),t.memoizedState=Zi,o);if(0===(1&t.mode))return Ji(e,t,s,null);if(Ie(i))return r=De(i).digest,o=Error(a(419)),r=ki(o,r,void 0),Ji(e,t,s,r);if(n=0!==(s&e.childLanes),Ni||n){if(null!==(r=ra)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,Zn(e,i),Ta(r,e,i,-1))}return Wa(),Ji(e,t,s,r=ki(Error(a(421))))}return Le(i)?(t.flags|=128,t.child=e.child,t=ns.bind(null,e),ze(i,t),null):(e=o.treeContext,Y&&(pn=He(i),hn=t,gn=!0,vn=null,mn=!1,null!==e&&(rn[on++]=sn,rn[on++]=ln,rn[on++]=an,sn=e.id,ln=e.overflow,an=t)),t=$i(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,o,n);if(s){s=i.fallback,l=t.mode,r=(o=e.child).sibling;var u={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=ls(o,u)).subtreeFlags=14680064&o.subtreeFlags,null!==r?s=ls(r,s):(s=cs(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Yi(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Zi,i}return e=(s=e.child).sibling,i=ls(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function $i(e,t){return(t=ds({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ji(e,t,n,r){return null!==r&&En(r),Fn(t,e.child,null,n),(e=$i(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function eo(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Hn(e.return,t,n)}function to(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function no(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Fi(e,t,r.children,n),0!==(2&(r=pr.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&eo(e,n,t);else if(19===e.tag)eo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ut(pr,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===gr(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),to(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===gr(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}to(t,!0,n,null,o);break;case"together":to(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ro(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function io(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ca|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=ls(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ls(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function oo(e){e.flags|=4}function ao(e,t){if(null!==e&&e.child===t.child)return!0;if(0!==(16&t.flags))return!1;for(e=t.child;null!==e;){if(0!==(12854&e.flags)||0!==(12854&e.subtreeFlags))return!1;e=e.sibling}return!0}if(X)Gi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)z(e,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qi=function(){},Ki=function(e,t,n,r,i){if((e=e.memoizedProps)!==r){var o=t.stateNode,a=ur(ar.current);n=U(o,n,e,r,i,a),(t.updateQueue=n)&&oo(t)}},Xi=function(e,t,n,r){n!==r&&oo(t)};else if(Z){Gi=function(e,t,n,r){for(var i=t.child;null!==i;){if(5===i.tag){var o=i.stateNode;n&&r&&(o=Ae(o,i.type,i.memoizedProps,i)),z(e,o)}else if(6===i.tag)o=i.stateNode,n&&r&&(o=Te(o,i.memoizedProps,i)),z(e,o);else if(4!==i.tag)if(22===i.tag&&null!==i.memoizedState)null!==(o=i.child)&&(o.return=i),Gi(e,i,!0,!0);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};var so=function(e,t,n,r){for(var i=t.child;null!==i;){if(5===i.tag){var o=i.stateNode;n&&r&&(o=Ae(o,i.type,i.memoizedProps,i)),je(e,o)}else if(6===i.tag)o=i.stateNode,n&&r&&(o=Te(o,i.memoizedProps,i)),je(e,o);else if(4!==i.tag)if(22===i.tag&&null!==i.memoizedState)null!==(o=i.child)&&(o.return=i),so(e,i,!0,!0);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};qi=function(e,t){var n=t.stateNode;if(!ao(e,t)){e=n.containerInfo;var r=Pe(e);so(r,t,!1,!1),n.pendingChildren=r,oo(t),Oe(e,r)}},Ki=function(e,t,n,r,i){var o=e.stateNode,a=e.memoizedProps;if((e=ao(e,t))&&a===r)t.stateNode=o;else{var s=t.stateNode,l=ur(ar.current),u=null;a!==r&&(u=U(s,n,a,r,i,l)),e&&null===u?t.stateNode=o:(o=Ee(o,u,n,a,r,t,e,s),B(o,n,r,i,l)&&oo(t),t.stateNode=o,e?oo(t):Gi(o,t,!1,!1))}},Xi=function(e,t,n,r){n!==r?(e=ur(lr.current),n=ur(ar.current),t.stateNode=H(r,e,n,t),oo(t)):t.stateNode=e.stateNode}}else qi=function(){},Ki=function(){},Xi=function(){};function lo(e,t){if(!gn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function uo(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function co(e,t,n){var r=t.pendingProps;switch(fn(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return uo(t),null;case 1:case 17:return gt(t.type)&&mt(),uo(t),null;case 3:return n=t.stateNode,dr(),lt(ft),lt(dt),vr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Sn(t)?oo(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==vn&&(La(vn),vn=null))),qi(e,t),uo(t),null;case 5:hr(t),n=ur(lr.current);var i=t.type;if(null!==e&&null!=t.stateNode)Ki(e,t,i,r,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return uo(t),null}if(e=ur(ar.current),Sn(t)){if(!Y)throw Error(a(175));e=We(t.stateNode,t.type,t.memoizedProps,n,e,t,!mn),t.updateQueue=e,null!==e&&oo(t)}else{var o=D(i,r,n,e,t);Gi(o,t,!1,!1),t.stateNode=o,B(o,i,r,n,e)&&oo(t)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return uo(t),null;case 6:if(e&&null!=t.stateNode)Xi(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(e=ur(lr.current),n=ur(ar.current),Sn(t)){if(!Y)throw Error(a(176));if(e=t.stateNode,n=t.memoizedProps,(r=Ge(e,n,t,!mn))&&null!==(i=hn))switch(i.tag){case 3:Je(i.stateNode.containerInfo,e,n,0!==(1&i.mode));break;case 5:et(i.type,i.memoizedProps,i.stateNode,e,n,0!==(1&i.mode))}r&&oo(t)}else t.stateNode=H(r,e,n,t)}return uo(t),null;case 13:if(lt(pr),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(gn&&null!==pn&&0!==(1&t.mode)&&0===(128&t.flags))kn(),_n(),t.flags|=98560,i=!1;else if(i=Sn(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!Y)throw Error(a(344));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));qe(i,t)}else _n(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;uo(t),i=!1}else null!==vn&&(La(vn),vn=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((n=null!==r)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&pr.current)?0===la&&(la=3):Wa())),null!==t.updateQueue&&(t.flags|=4),uo(t),null);case 4:return dr(),qi(e,t),null===e&&$(t.stateNode.containerInfo),uo(t),null;case 10:return Vn(t.type._context),uo(t),null;case 19:if(lt(pr),null===(i=t.memoizedState))return uo(t),null;if(r=0!==(128&t.flags),null===(o=i.rendering))if(r)lo(i,!1);else{if(0!==la||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(o=gr(e))){for(t.flags|=128,lo(i,!1),null!==(e=o.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=n,n=t.child;null!==n;)i=e,(r=n).flags&=14680066,null===(o=r.alternate)?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,i=o.dependencies,r.dependencies=null===i?null:{lanes:i.lanes,firstContext:i.firstContext}),n=n.sibling;return ut(pr,1&pr.current|2),t.child}e=e.sibling}null!==i.tail&&Bt()>ma&&(t.flags|=128,r=!0,lo(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=gr(o))){if(t.flags|=128,r=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),lo(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!gn)return uo(t),null}else 2*Bt()-i.renderingStartTime>ma&&1073741824!==n&&(t.flags|=128,r=!0,lo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=i.last)?e.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Bt(),t.sibling=null,e=pr.current,ut(pr,r?1&e|2:1&e),t):(uo(t),null);case 22:case 23:return Ba(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&aa)&&(uo(t),X&&6&t.subtreeFlags&&(t.flags|=8192)):uo(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function fo(e,t){switch(fn(t),t.tag){case 1:return gt(t.type)&&mt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return dr(),lt(ft),lt(dt),vr(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return hr(t),null;case 13:if(lt(pr),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));_n()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return lt(pr),null;case 4:return dr(),null;case 10:return Vn(t.type._context),null;case 22:case 23:return Ba(),null;default:return null}}var ho=!1,po=!1,go="function"===typeof WeakSet?WeakSet:Set,mo=null;function vo(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ja(e,t,r)}else n.current=null}function yo(e,t,n){try{n()}catch(r){Ja(e,t,r)}}var bo=!1;function xo(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&yo(t,n,o)}i=i.next}while(i!==r)}}function wo(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Co(e){var t=e.ref;if(null!==t){var n=e.stateNode;if(5===e.tag)e=N(n);else e=n;"function"===typeof t?t(e):t.current=e}}function So(e){var t=e.alternate;null!==t&&(e.alternate=null,So(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&ee(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ko(e){return 5===e.tag||3===e.tag||4===e.tag}function _o(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ko(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Eo(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?ve(n,e,t):fe(n,e);else if(4!==r&&null!==(e=e.child))for(Eo(e,t,n),e=e.sibling;null!==e;)Eo(e,t,n),e=e.sibling}function Po(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?me(n,e,t):de(n,e);else if(4!==r&&null!==(e=e.child))for(Po(e,t,n),e=e.sibling;null!==e;)Po(e,t,n),e=e.sibling}var jo=null,Oo=!1;function Ro(e,t,n){for(n=n.child;null!==n;)Ao(e,t,n),n=n.sibling}function Ao(e,t,n){if(qt&&"function"===typeof qt.onCommitFiberUnmount)try{qt.onCommitFiberUnmount(Gt,n)}catch(s){}switch(n.tag){case 5:po||vo(n,t);case 6:if(X){var r=jo,i=Oo;jo=null,Ro(e,t,n),Oo=i,null!==(jo=r)&&(Oo?be(jo,n.stateNode):ye(jo,n.stateNode))}else Ro(e,t,n);break;case 18:X&&null!==jo&&(Oo?Qe(jo,n.stateNode):Ye(jo,n.stateNode));break;case 4:X?(r=jo,i=Oo,jo=n.stateNode.containerInfo,Oo=!0,Ro(e,t,n),jo=r,Oo=i):(Z&&(r=n.stateNode.containerInfo,i=Pe(r),Re(r,i)),Ro(e,t,n));break;case 0:case 11:case 14:case 15:if(!po&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&yo(n,t,a),i=i.next}while(i!==r)}Ro(e,t,n);break;case 1:if(!po&&(vo(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ja(n,t,s)}Ro(e,t,n);break;case 21:Ro(e,t,n);break;case 22:1&n.mode?(po=(r=po)||null!==n.memoizedState,Ro(e,t,n),po=r):Ro(e,t,n);break;default:Ro(e,t,n)}}function To(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new go),t.forEach((function(t){var r=rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function No(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t;if(X){var l=s;e:for(;null!==l;){switch(l.tag){case 5:jo=l.stateNode,Oo=!1;break e;case 3:case 4:jo=l.stateNode.containerInfo,Oo=!0;break e}l=l.return}if(null===jo)throw Error(a(160));Ao(o,s,i),jo=null,Oo=!1}else Ao(o,s,i);var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(c){Ja(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Fo(t,e),t=t.sibling}function Fo(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(No(t,e),Mo(e),4&r){try{xo(3,e,e.return),wo(3,e)}catch(h){Ja(e,e.return,h)}try{xo(5,e,e.return)}catch(h){Ja(e,e.return,h)}}break;case 1:No(t,e),Mo(e),512&r&&null!==n&&vo(n,n.return);break;case 5:if(No(t,e),Mo(e),512&r&&null!==n&&vo(n,n.return),X){if(32&e.flags){var i=e.stateNode;try{xe(i)}catch(h){Ja(e,e.return,h)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps;if(n=null!==n?n.memoizedProps:o,r=e.type,t=e.updateQueue,e.updateQueue=null,null!==t)try{ge(i,t,r,n,o,e)}catch(h){Ja(e,e.return,h)}}}break;case 6:if(No(t,e),Mo(e),4&r&&X){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps,n=null!==n?n.memoizedProps:o;try{he(i,n,o)}catch(h){Ja(e,e.return,h)}}break;case 3:if(No(t,e),Mo(e),4&r){if(X&&Y&&null!==n&&n.memoizedState.isDehydrated)try{Xe(t.containerInfo)}catch(h){Ja(e,e.return,h)}if(Z){i=t.containerInfo,o=t.pendingChildren;try{Re(i,o)}catch(h){Ja(e,e.return,h)}}}break;case 4:if(No(t,e),Mo(e),4&r&&Z){i=(o=e.stateNode).containerInfo,o=o.pendingChildren;try{Re(i,o)}catch(h){Ja(e,e.return,h)}}break;case 13:No(t,e),Mo(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(ga=Bt())),4&r&&To(e);break;case 22:var s=null!==n&&null!==n.memoizedState;if(1&e.mode?(po=(n=po)||s,No(t,e),po=n):No(t,e),Mo(e),8192&r){if(n=null!==e.memoizedState,(e.stateNode.isHidden=n)&&!s&&0!==(1&e.mode))for(mo=e,r=e.child;null!==r;){for(t=mo=r;null!==mo;){var l=(s=mo).child;switch(s.tag){case 0:case 11:case 14:case 15:xo(4,s,s.return);break;case 1:vo(s,s.return);var u=s.stateNode;if("function"===typeof u.componentWillUnmount){var c=s,d=s.return;try{var f=c;u.props=f.memoizedProps,u.state=f.memoizedState,u.componentWillUnmount()}catch(h){Ja(c,d,h)}}break;case 5:vo(s,s.return);break;case 22:if(null!==s.memoizedState){zo(t);continue}}null!==l?(l.return=s,mo=l):zo(t)}r=r.sibling}if(X)e:if(r=null,X)for(t=e;;){if(5===t.tag){if(null===r){r=t;try{i=t.stateNode,n?we(i):Se(t.stateNode,t.memoizedProps)}catch(h){Ja(e,e.return,h)}}}else if(6===t.tag){if(null===r)try{o=t.stateNode,n?Ce(o):ke(o,t.memoizedProps)}catch(h){Ja(e,e.return,h)}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}}break;case 19:No(t,e),Mo(e),4&r&&To(e);break;case 21:break;default:No(t,e),Mo(e)}}function Mo(e){var t=e.flags;if(2&t){try{if(X){e:{for(var n=e.return;null!==n;){if(ko(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(xe(i),r.flags&=-33),Po(e,_o(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;Eo(e,_o(e),o);break;default:throw Error(a(161))}}}catch(s){Ja(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Lo(e,t,n){mo=e,Io(e,t,n)}function Io(e,t,n){for(var r=0!==(1&e.mode);null!==mo;){var i=mo,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||ho;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||po;s=ho;var u=po;if(ho=a,(po=l)&&!u)for(mo=i;null!==mo;)l=(a=mo).child,22===a.tag&&null!==a.memoizedState?Bo(i):null!==l?(l.return=a,mo=l):Bo(i);for(;null!==o;)mo=o,Io(o,t,n),o=o.sibling;mo=i,ho=s,po=u}Do(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,mo=o):Do(e)}}function Do(e){for(;null!==mo;){var t=mo;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:po||wo(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!po)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&ir(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=N(t.child.stateNode);break;case 1:n=t.child.stateNode}ir(t,s,n)}break;case 5:var l=t.stateNode;null===n&&4&t.flags&&pe(l,t.type,t.memoizedProps,t);break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(Y&&null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Ze(d)}}}break;default:throw Error(a(163))}po||512&t.flags&&Co(t)}catch(f){Ja(t,t.return,f)}}if(t===e){mo=null;break}if(null!==(n=t.sibling)){n.return=t.return,mo=n;break}mo=t.return}}function zo(e){for(;null!==mo;){var t=mo;if(t===e){mo=null;break}var n=t.sibling;if(null!==n){n.return=t.return,mo=n;break}mo=t.return}}function Bo(e){for(;null!==mo;){var t=mo;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wo(4,t)}catch(l){Ja(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Ja(t,i,l)}}var o=t.return;try{Co(t)}catch(l){Ja(t,o,l)}break;case 5:var a=t.return;try{Co(t)}catch(l){Ja(t,a,l)}}}catch(l){Ja(t,t.return,l)}if(t===e){mo=null;break}var s=t.sibling;if(null!==s){s.return=t.return,mo=s;break}mo=t.return}}var Uo=0,Vo=1,Ho=2,Wo=3,Go=4;if("function"===typeof Symbol&&Symbol.for){var qo=Symbol.for;Uo=qo("selector.component"),Vo=qo("selector.has_pseudo_class"),Ho=qo("selector.role"),Wo=qo("selector.test_id"),Go=qo("selector.text")}function Ko(e){var t=Q(e);if(null!=t){if("string"!==typeof t.memoizedProps["data-testname"])throw Error(a(364));return t}if(null===(e=ie(e)))throw Error(a(362));return e.stateNode.current}function Xo(e,t){switch(t.$$typeof){case Uo:if(e.type===t.value)return!0;break;case Vo:e:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var r=e[n++],i=e[n++],o=t[i];if(5!==r.tag||!se(r)){for(;null!=o&&Xo(r,o);)o=t[++i];if(i===t.length){t=!0;break e}for(r=r.child;null!==r;)e.push(r,i),r=r.sibling}}t=!1}return t;case Ho:if(5===e.tag&&le(e.stateNode,t.value))return!0;break;case Go:if((5===e.tag||6===e.tag)&&(null!==(e=ae(e))&&0<=e.indexOf(t.value)))return!0;break;case Wo:if(5===e.tag&&("string"===typeof(e=e.memoizedProps["data-testname"])&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(a(365))}return!1}function Zo(e){switch(e.$$typeof){case Uo:return"<"+(S(e.value)||"Unknown")+">";case Vo:return":has("+(Zo(e)||"")+")";case Ho:return'[role="'+e.value+'"]';case Go:return'"'+e.value+'"';case Wo:return'[data-testname="'+e.value+'"]';default:throw Error(a(365))}}function Yo(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],o=e[r++],a=t[o];if(5!==i.tag||!se(i)){for(;null!=a&&Xo(i,a);)a=t[++o];if(o===t.length)n.push(i);else for(i=i.child;null!==i;)e.push(i,o),i=i.sibling}}return n}function Qo(e,t){if(!re)throw Error(a(363));e=Yo(e=Ko(e),t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var r=e[n++];if(5===r.tag)se(r)||t.push(r.stateNode);else for(r=r.child;null!==r;)e.push(r),r=r.sibling}return t}var $o=Math.ceil,Jo=s.ReactCurrentDispatcher,ea=s.ReactCurrentOwner,ta=s.ReactCurrentBatchConfig,na=0,ra=null,ia=null,oa=0,aa=0,sa=st(0),la=0,ua=null,ca=0,da=0,fa=0,ha=null,pa=null,ga=0,ma=1/0,va=null;function ya(){ma=Bt()+500}var ba,xa=!1,wa=null,Ca=null,Sa=!1,ka=null,_a=0,Ea=0,Pa=null,ja=-1,Oa=0;function Ra(){return 0!==(6&na)?Bt():-1!==ja?ja:ja=Bt()}function Aa(e){return 0===(1&e.mode)?1:0!==(2&na)&&0!==oa?oa&-oa:null!==Pn.transition?(0===Oa&&(Oa=Rt()),Oa):0!==(e=Ft)?e:J()}function Ta(e,t,n,r){if(50<Ea)throw Ea=0,Pa=null,Error(a(185));Tt(e,n,r),0!==(2&na)&&e===ra||(e===ra&&(0===(2&na)&&(da|=n),4===la&&Ia(e,oa)),Na(e,r),1===n&&0===na&&0===(1&t.mode)&&(ya(),Zt&&$t()))}function Na(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-wt(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=jt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=Pt(e,e===ra?oa:0);if(0===r)null!==n&&It(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&It(n),1===t)0===e.tag?function(e){Zt=!0,Qt(e)}(Da.bind(null,e)):Qt(Da.bind(null,e)),te?ne((function(){0===(6&na)&&$t()})):Lt(Ut,$t),n=null;else{switch(Mt(r)){case 1:n=Ut;break;case 4:n=Vt;break;case 16:default:n=Ht;break;case 536870912:n=Wt}n=is(n,Fa.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Fa(e,t){if(ja=-1,Oa=0,0!==(6&na))throw Error(a(327));var n=e.callbackNode;if(Qa()&&e.callbackNode!==n)return null;var r=Pt(e,e===ra?oa:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=Ga(e,r);else{t=r;var i=na;na|=2;var o=Ha();for(ra===e&&oa===t||(va=null,ya(),Ua(e,t));;)try{Ka();break}catch(l){Va(e,l)}Bn(),Jo.current=o,na=i,null!==ia?t=0:(ra=null,oa=0,t=la)}if(0!==t){if(2===t&&(0!==(i=Ot(e))&&(r=i,t=Ma(e,i))),1===t)throw n=ua,Ua(e,0),Ia(e,r),Na(e,Bt()),n;if(6===t)Ia(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Kt(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=Ga(e,r))&&(0!==(o=Ot(e))&&(r=o,t=Ma(e,o))),1===t))throw n=ua,Ua(e,0),Ia(e,r),Na(e,Bt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Ya(e,pa,va);break;case 3:if(Ia(e,r),(130023424&r)===r&&10<(t=ga+500-Bt())){if(0!==Pt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Ra(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=W(Ya.bind(null,e,pa,va),t);break}Ya(e,pa,va);break;case 4:if(Ia(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-wt(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=Bt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$o(r/1960))-r)){e.timeoutHandle=W(Ya.bind(null,e,pa,va),r);break}Ya(e,pa,va);break;default:throw Error(a(329))}}}return Na(e,Bt()),e.callbackNode===n?Fa.bind(null,e):null}function Ma(e,t){var n=ha;return e.current.memoizedState.isDehydrated&&(Ua(e,t).flags|=256),2!==(e=Ga(e,t))&&(t=pa,pa=n,null!==t&&La(t)),e}function La(e){null===pa?pa=e:pa.push.apply(pa,e)}function Ia(e,t){for(t&=~fa,t&=~da,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),r=1<<n;e[n]=-1,t&=~r}}function Da(e){if(0!==(6&na))throw Error(a(327));Qa();var t=Pt(e,0);if(0===(1&t))return Na(e,Bt()),null;var n=Ga(e,t);if(0!==e.tag&&2===n){var r=Ot(e);0!==r&&(t=r,n=Ma(e,r))}if(1===n)throw n=ua,Ua(e,0),Ia(e,t),Na(e,Bt()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ya(e,pa,va),Na(e,Bt()),null}function za(e){null!==ka&&0===ka.tag&&0===(6&na)&&Qa();var t=na;na|=1;var n=ta.transition,r=Ft;try{if(ta.transition=null,Ft=1,e)return e()}finally{Ft=r,ta.transition=n,0===(6&(na=t))&&$t()}}function Ba(){aa=sa.current,lt(sa)}function Ua(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==q&&(e.timeoutHandle=q,G(n)),null!==ia)for(n=ia.return;null!==n;){var r=n;switch(fn(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mt();break;case 3:dr(),lt(ft),lt(dt),vr();break;case 5:hr(r);break;case 4:dr();break;case 13:case 19:lt(pr);break;case 10:Vn(r.type._context);break;case 22:case 23:Ba()}n=n.return}if(ra=e,ia=e=ls(e.current,null),oa=aa=t,la=0,ua=null,fa=da=ca=0,pa=ha=null,null!==qn){for(t=0;t<qn.length;t++)if(null!==(r=(n=qn[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}qn=null}return e}function Va(e,t){for(;;){var n=ia;try{if(Bn(),yr.current=fi,kr){for(var r=wr.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}kr=!1}if(xr=0,Sr=Cr=wr=null,_r=!1,Er=0,ea.current=null,null===n||null===n.return){la=1,ua=t,ia=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=oa,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=Ri(s);if(null!==p){p.flags&=-257,Ai(p,s,l,0,t),1&p.mode&&Oi(o,c,t),u=c;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0===(1&t)){Oi(o,c,t),Wa();break e}u=Error(a(426))}else if(gn&&1&l.mode){var v=Ri(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),Ai(v,s,l,0,t),En(Si(u,l));break e}}o=u=Si(u,l),4!==la&&(la=2),null===ha?ha=[o]:ha.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,nr(o,Pi(0,u,t));break e;case 1:l=u;var y=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Ca||!Ca.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,nr(o,ji(o,l,t));break e}}o=o.return}while(null!==o)}Za(n)}catch(x){t=x,ia===n&&null!==n&&(ia=n=n.return);continue}break}}function Ha(){var e=Jo.current;return Jo.current=fi,null===e?fi:e}function Wa(){0!==la&&3!==la&&2!==la||(la=4),null===ra||0===(268435455&ca)&&0===(268435455&da)||Ia(ra,oa)}function Ga(e,t){var n=na;na|=2;var r=Ha();for(ra===e&&oa===t||(va=null,Ua(e,t));;)try{qa();break}catch(i){Va(e,i)}if(Bn(),na=n,Jo.current=r,null!==ia)throw Error(a(261));return ra=null,oa=0,la}function qa(){for(;null!==ia;)Xa(ia)}function Ka(){for(;null!==ia&&!Dt();)Xa(ia)}function Xa(e){var t=ba(e.alternate,e,aa);e.memoizedProps=e.pendingProps,null===t?Za(e):ia=t,ea.current=null}function Za(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=co(n,t,aa)))return void(ia=n)}else{if(null!==(n=fo(n,t)))return n.flags&=32767,void(ia=n);if(null===e)return la=6,void(ia=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(ia=t);ia=t=e}while(null!==t);0===la&&(la=5)}function Ya(e,t,n){var r=Ft,i=ta.transition;try{ta.transition=null,Ft=1,function(e,t,n,r){do{Qa()}while(null!==ka);if(0!==(6&na))throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-wt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===ra&&(ia=ra=null,oa=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Sa||(Sa=!0,is(Ht,(function(){return Qa(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=ta.transition,ta.transition=null;var s=Ft;Ft=1;var l=na;na|=4,ea.current=null,function(e,t){for(L(e.containerInfo),mo=t;null!==mo;)if(t=(e=mo).child,0!==(1028&e.subtreeFlags)&&null!==t)t.return=e,mo=t;else for(;null!==mo;){e=mo;try{var n=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!==n){var r=n.memoizedProps,i=n.memoizedState,o=e.stateNode,s=o.getSnapshotBeforeUpdate(e.elementType===e.type?r:mi(e.type,r),i);o.__reactInternalSnapshotBeforeUpdate=s}break;case 3:X&&_e(e.stateNode.containerInfo);break;default:throw Error(a(163))}}catch(l){Ja(e,e.return,l)}if(null!==(t=e.sibling)){t.return=e.return,mo=t;break}mo=e.return}n=bo,bo=!1}(e,n),Fo(n,e),I(e.containerInfo),e.current=n,Lo(n,e,i),zt(),na=l,Ft=s,ta.transition=o}else e.current=n;if(Sa&&(Sa=!1,ka=e,_a=i),o=e.pendingLanes,0===o&&(Ca=null),function(e){if(qt&&"function"===typeof qt.onCommitFiberRoot)try{qt.onCommitFiberRoot(Gt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),Na(e,Bt()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(xa)throw xa=!1,e=wa,wa=null,e;0!==(1&_a)&&0!==e.tag&&Qa(),o=e.pendingLanes,0!==(1&o)?e===Pa?Ea++:(Ea=0,Pa=e):Ea=0,$t()}(e,t,n,r)}finally{ta.transition=i,Ft=r}return null}function Qa(){if(null!==ka){var e=Mt(_a),t=ta.transition,n=Ft;try{if(ta.transition=null,Ft=16>e?16:e,null===ka)var r=!1;else{if(e=ka,ka=null,_a=0,0!==(6&na))throw Error(a(331));var i=na;for(na|=4,mo=e.current;null!==mo;){var o=mo,s=o.child;if(0!==(16&mo.flags)){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(mo=c;null!==mo;){var d=mo;switch(d.tag){case 0:case 11:case 15:xo(8,d,o)}var f=d.child;if(null!==f)f.return=d,mo=f;else for(;null!==mo;){var h=(d=mo).sibling,p=d.return;if(So(d),d===c){mo=null;break}if(null!==h){h.return=p,mo=h;break}mo=p}}}var g=o.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}mo=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,mo=s;else e:for(;null!==mo;){if(0!==(2048&(o=mo).flags))switch(o.tag){case 0:case 11:case 15:xo(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,mo=y;break e}mo=o.return}}var b=e.current;for(mo=b;null!==mo;){var x=(s=mo).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,mo=x;else e:for(s=b;null!==mo;){if(0!==(2048&(l=mo).flags))try{switch(l.tag){case 0:case 11:case 15:wo(9,l)}}catch(C){Ja(l,l.return,C)}if(l===s){mo=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,mo=w;break e}mo=l.return}}if(na=i,$t(),qt&&"function"===typeof qt.onPostCommitFiberRoot)try{qt.onPostCommitFiberRoot(Gt,e)}catch(C){}r=!0}return r}finally{Ft=n,ta.transition=t}}return!1}function $a(e,t,n){e=er(e,t=Pi(0,t=Si(n,t),1),1),t=Ra(),null!==e&&(Tt(e,1,t),Na(e,t))}function Ja(e,t,n){if(3===e.tag)$a(e,e,n);else for(;null!==t;){if(3===t.tag){$a(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ca||!Ca.has(r))){t=er(t,e=ji(t,e=Si(n,e),1),1),e=Ra(),null!==t&&(Tt(t,1,e),Na(t,e));break}}t=t.return}}function es(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Ra(),e.pingedLanes|=e.suspendedLanes&n,ra===e&&(oa&n)===n&&(4===la||3===la&&(130023424&oa)===oa&&500>Bt()-ga?Ua(e,0):fa|=n),Na(e,t)}function ts(e,t){0===t&&(0===(1&e.mode)?t=1:(t=_t,0===(130023424&(_t<<=1))&&(_t=4194304)));var n=Ra();null!==(e=Zn(e,t))&&(Tt(e,t,n),Na(e,n))}function ns(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ts(e,n)}function rs(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),ts(e,n)}function is(e,t){return Lt(e,t)}function os(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,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 as(e,t,n,r){return new os(e,t,n,r)}function ss(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ls(e,t){var n=e.alternate;return null===n?((n=as(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function us(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)ss(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case c:return cs(n.children,i,o,t);case d:s=8,i|=8;break;case f:return(e=as(12,n,t,2|i)).elementType=f,e.lanes=o,e;case m:return(e=as(13,n,t,i)).elementType=m,e.lanes=o,e;case v:return(e=as(19,n,t,i)).elementType=v,e.lanes=o,e;case x:return ds(n,i,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case h:s=10;break e;case p:s=9;break e;case g:s=11;break e;case y:s=14;break e;case b:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=as(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function cs(e,t,n,r){return(e=as(7,e,r,t)).lanes=n,e}function ds(e,t,n,r){return(e=as(22,e,r,t)).elementType=x,e.lanes=n,e.stateNode={isHidden:!1},e}function fs(e,t,n){return(e=as(6,e,null,t)).lanes=n,e}function hs(e,t,n){return(t=as(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ps(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=q,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=At(0),this.expirationTimes=At(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=At(0),this.identifierPrefix=r,this.onRecoverableError=i,Y&&(this.mutableSourceEagerHydrationData=null)}function gs(e,t,n,r,i,o,a,s,l){return e=new ps(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=as(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qn(o),e}function ms(e){if(!e)return ct;e:{if(_(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(gt(n))return yt(e,n,t)}return t}function vs(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=j(t))?null:e.stateNode}function ys(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function bs(e,t){ys(e,t),(e=e.alternate)&&ys(e,t)}function xs(e){return null===(e=j(e))?null:e.stateNode}function ws(){return null}return ba=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||ft.current)Ni=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return Ni=!1,function(e,t,n){switch(t.tag){case 3:Hi(t),_n();break;case 5:fr(t);break;case 1:gt(t.type)&&bt(t);break;case 4:cr(t,t.stateNode.containerInfo);break;case 10:Un(0,t.type._context,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(ut(pr,1&pr.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Qi(e,t,n):(ut(pr,1&pr.current),null!==(e=io(e,t,n))?e.sibling:null);ut(pr,1&pr.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return no(e,t,n);t.flags|=128}var i=t.memoizedState;if(null!==i&&(i.rendering=null,i.tail=null,i.lastEffect=null),ut(pr,pr.current),r)break;return null;case 22:case 23:return t.lanes=0,Di(e,t,n)}return io(e,t,n)}(e,t,n);Ni=0!==(131072&e.flags)}else Ni=!1,gn&&0!==(1048576&t.flags)&&cn(t,nn,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ro(e,t),e=t.pendingProps;var i=pt(t,dt.current);Wn(t,n),i=Rr(null,t,r,e,i,n);var o=Ar();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(o=!0,bt(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Qn(t),i.updater=yi,t.stateNode=i,i._reactInternals=t,Ci(t,r,e,n),t=Vi(null,t,r,!0,o,n)):(t.tag=0,gn&&o&&dn(t),Fi(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ro(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return ss(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===g)return 11;if(e===y)return 14}return 2}(r),e=mi(r,e),i){case 0:t=Bi(null,t,r,e,n);break e;case 1:t=Ui(null,t,r,e,n);break e;case 11:t=Mi(null,t,r,e,n);break e;case 14:t=Li(null,t,r,mi(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Bi(e,t,r,i=t.elementType===r?i:mi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ui(e,t,r,i=t.elementType===r?i:mi(r,i),n);case 3:e:{if(Hi(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,$n(e,t),rr(t,r,null,n);var s=t.memoizedState;if(r=s.element,Y&&o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Wi(e,t,r,n,i=Si(Error(a(423)),t));break e}if(r!==i){t=Wi(e,t,r,n,i=Si(Error(a(424)),t));break e}for(Y&&(pn=Ve(t.stateNode.containerInfo),hn=t,gn=!0,vn=null,mn=!1),n=Mn(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(_n(),r===i){t=io(e,t,n);break e}Fi(e,t,r,n)}t=t.child}return t;case 5:return fr(t),null===e&&wn(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,V(r,i)?s=null:null!==o&&V(r,o)&&(t.flags|=32),zi(e,t),Fi(e,t,s,n),t.child;case 6:return null===e&&wn(t),null;case 13:return Qi(e,t,n);case 4:return cr(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Fn(t,null,r,n):Fi(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Mi(e,t,r,i=t.elementType===r?i:mi(r,i),n);case 7:return Fi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,Un(0,r,s=i.value),null!==o)if(Kt(o.value,s)){if(o.children===i.children&&!ft.current){t=io(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===o.tag){(u=Jn(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),Hn(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Hn(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}Fi(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Wn(t,n),r=r(i=Gn(i)),t.flags|=1,Fi(e,t,r,n),t.child;case 14:return i=mi(r=t.type,t.pendingProps),Li(e,t,r,i=mi(r.type,i),n);case 15:return Ii(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mi(r,i),ro(e,t),t.tag=1,gt(r)?(e=!0,bt(t)):e=!1,Wn(t,n),xi(t,r,i),Ci(t,r,i,n),Vi(null,t,r,!0,e,n);case 19:return no(e,t,n);case 22:return Di(e,t,n)}throw Error(a(156,t.tag))},t.attemptContinuousHydration=function(e){if(13===e.tag){var t=Zn(e,134217728);if(null!==t)Ta(t,e,134217728,Ra());bs(e,134217728)}},t.attemptDiscreteHydration=function(e){if(13===e.tag){var t=Zn(e,1);if(null!==t)Ta(t,e,1,Ra());bs(e,1)}},t.attemptHydrationAtCurrentPriority=function(e){if(13===e.tag){var t=Aa(e),n=Zn(e,t);if(null!==n)Ta(n,e,t,Ra());bs(e,t)}},t.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Et(t.pendingLanes);0!==n&&(Nt(t,1|n),Na(t,Bt()),0===(6&na)&&(ya(),$t()))}break;case 13:za((function(){var t=Zn(e,1);if(null!==t){var n=Ra();Ta(t,e,1,n)}})),bs(e,1)}},t.batchedUpdates=function(e,t){var n=na;na|=1;try{return e(t)}finally{0===(na=n)&&(ya(),Zt&&$t())}},t.createComponentSelector=function(e){return{$$typeof:Uo,value:e}},t.createContainer=function(e,t,n,r,i,o,a){return gs(e,t,!1,null,0,r,0,o,a)},t.createHasPseudoClassSelector=function(e){return{$$typeof:Vo,value:e}},t.createHydrationContainer=function(e,t,n,r,i,o,a,s,l){return(e=gs(n,r,!0,e,0,o,0,s,l)).context=ms(null),n=e.current,(o=Jn(r=Ra(),i=Aa(n))).callback=void 0!==t&&null!==t?t:null,er(n,o,i),e.current.lanes=i,Tt(e,i,r),Na(e,r),e},t.createPortal=function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:u,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}},t.createRoleSelector=function(e){return{$$typeof:Ho,value:e}},t.createTestNameSelector=function(e){return{$$typeof:Wo,value:e}},t.createTextSelector=function(e){return{$$typeof:Go,value:e}},t.deferredUpdates=function(e){var t=Ft,n=ta.transition;try{return ta.transition=null,Ft=16,e()}finally{Ft=t,ta.transition=n}},t.discreteUpdates=function(e,t,n,r,i){var o=Ft,a=ta.transition;try{return ta.transition=null,Ft=1,e(t,n,r,i)}finally{Ft=o,ta.transition=a,0===na&&ya()}},t.findAllNodes=Qo,t.findBoundingRects=function(e,t){if(!re)throw Error(a(363));t=Qo(e,t),e=[];for(var n=0;n<t.length;n++)e.push(oe(t[n]));for(t=e.length-1;0<t;t--)for(var r=(n=e[t]).x,i=r+n.width,o=n.y,s=o+n.height,l=t-1;0<=l;l--)if(t!==l){var u=e[l],c=u.x,d=c+u.width,f=u.y,h=f+u.height;if(r>=c&&o>=f&&i<=d&&s<=h){e.splice(t,1);break}if(!(r!==c||n.width!==u.width||h<o||f>s)){f>o&&(u.height+=f-o,u.y=o),h<s&&(u.height=s-f),e.splice(t,1);break}if(!(o!==f||n.height!==u.height||d<r||c>i)){c>r&&(u.width+=c-r,u.x=r),d<i&&(u.width=i-c),e.splice(t,1);break}}return e},t.findHostInstance=vs,t.findHostInstanceWithNoPortals=function(e){return null===(e=null!==(e=P(e))?R(e):null)?null:e.stateNode},t.findHostInstanceWithWarning=function(e){return vs(e)},t.flushControlled=function(e){var t=na;na|=1;var n=ta.transition,r=Ft;try{ta.transition=null,Ft=1,e()}finally{Ft=r,ta.transition=n,0===(na=t)&&(ya(),$t())}},t.flushPassiveEffects=Qa,t.flushSync=za,t.focusWithin=function(e,t){if(!re)throw Error(a(363));for(t=Yo(e=Ko(e),t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!se(n)){if(5===n.tag&&ue(n.stateNode))return!0;for(n=n.child;null!==n;)t.push(n),n=n.sibling}}return!1},t.getCurrentUpdatePriority=function(){return Ft},t.getFindAllNodesFailureDescription=function(e,t){if(!re)throw Error(a(363));var n=0,r=[];e=[Ko(e),0];for(var i=0;i<e.length;){var o=e[i++],s=e[i++],l=t[s];if((5!==o.tag||!se(o))&&(Xo(o,l)&&(r.push(Zo(l)),++s>n&&(n=s)),s<t.length))for(o=o.child;null!==o;)e.push(o,s),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(Zo(t[n]));return"findAllNodes was able to match part of the selector:\n "+r.join(" > ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},t.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?N(e.child.stateNode):e.child.stateNode:null},t.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:xs,findFiberByHostInstance:e.findFiberByHostInstance||ws,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},"undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Gt=t.inject(e),qt=t}catch(n){}e=!!t.checkDCE}}return e},t.isAlreadyRendering=function(){return!1},t.observeVisibleRects=function(e,t,n,r){if(!re)throw Error(a(363));e=Qo(e,t);var i=ce(e,n,r).disconnect;return{disconnect:function(){i()}}},t.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},t.runWithPriority=function(e,t){var n=Ft;try{return Ft=e,t()}finally{Ft=n}},t.shouldError=function(){return null},t.shouldSuspend=function(){return!1},t.updateContainer=function(e,t,n,r){var i=t.current,o=Ra(),a=Aa(i);return n=ms(n),null===t.context?t.context=n:t.pendingContext=n,(t=Jn(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=er(i,t,a))&&(Ta(e,i,a,o),tr(e,i,a)),a},t}},1738:(e,t,n)=>{"use strict";e.exports=n(6741)},935:(e,t,n)=>{"use strict";e.exports=n(9258)},514:function(e,t,n){var r;r=e=>(()=>{var t={"./node_modules/css-mediaquery/index.js":(e,t)=>{"use strict";t.match=function(e,t){return s(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var i=e.expressions.every((function(e){var n=e.feature,r=e.modifier,i=e.value,o=t[n];if(!o)return!1;switch(n){case"orientation":case"scan":return o.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=c(i),o=c(o);break;case"resolution":i=u(i),o=u(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=l(i),o=l(o);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=i;case"max":return o<=i;default:return o===i}}));return i&&!n||!i&&n}))},t.parse=s;var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function s(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(n),o=t[1],a=t[2],s=t[3]||"",l={};return l.inverse=!!o&&"not"===o.toLowerCase(),l.type=a?a.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],l.expressions=s.map((function(e){var t=e.match(r),n=t[1].toLowerCase().match(i);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function l(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function c(e){var t=parseFloat(e);switch(String(e).match(o)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},"./node_modules/hyphenate-style-name/index.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,o={};function a(e){return"-"+e.toLowerCase()}const s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,a);return o[e]=i.test(t)?"-"+t:t}},"./node_modules/matchmediaquery/index.js":(e,t,n)=>{"use strict";var r=n("./node_modules/css-mediaquery/index.js").match,i="undefined"!==typeof window?window.matchMedia:null;function o(e,t,n){var o=this;if(i&&!n){var a=i.call(window,e);this.matches=a.matches,this.media=a.media,a.addListener(s)}else this.matches=r(e,t),this.media=e;function s(e){o.matches=e.matches,o.media=e.media}this.addListener=function(e){a&&a.addListener(e)},this.removeListener=function(e){a&&a.removeListener(e)},this.dispose=function(){a&&a.removeListener(s)}}e.exports=function(e,t,n){return new o(e,t,n)}},"./node_modules/object-assign/index.js":e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},"./node_modules/prop-types/checkPropTypes.js":(e,t,n)=>{"use strict";var r=function(){},i=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),o={},a=n("./node_modules/prop-types/lib/has.js");function s(e,t,n,s,l){for(var u in e)if(a(e,u)){var c;try{if("function"!==typeof e[u]){var d=Error((s||"React class")+": "+n+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=e[u](t,u,s,n,null,i)}catch(h){c=h}if(!c||c instanceof Error||r((s||"React class")+": type specification of "+n+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in o)){o[c.message]=!0;var f=l?l():"";r("Failed "+n+" type: "+c.message+(null!=f?f:""))}}}r=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(n){}},s.resetWarningCache=function(){o={}},e.exports=s},"./node_modules/prop-types/factoryWithTypeCheckers.js":(e,t,n)=>{"use strict";var r=n("./node_modules/react-is/index.js"),i=n("./node_modules/object-assign/index.js"),o=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),a=n("./node_modules/prop-types/lib/has.js"),s=n("./node_modules/prop-types/checkPropTypes.js"),l=function(){};function u(){return null}l=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(n){}},e.exports=function(e,t){var n="function"===typeof Symbol&&Symbol.iterator,c="@@iterator",d="<<anonymous>>",f={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(u),arrayOf:function(e){return g((function(t,n,r,i,a){if("function"!==typeof e)return new p("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new p("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,r,i,a+"["+l+"]",o);if(u instanceof Error)return u}return null}))},element:g((function(t,n,r,i,o){var a=t[n];return e(a)?null:new p("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:g((function(e,t,n,i,o){var a=e[t];return r.isValidElementType(a)?null:new p("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||d;return new p("Invalid "+i+" `"+o+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,i){return y(e[t])?null:new p("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,n,r,i,s){if("function"!==typeof e)return new p("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[n],u=b(l);if("object"!==u)return new p("Invalid "+i+" `"+s+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var c in l)if(a(l,c)){var d=e(l,c,r,i,s+"."+c,o);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,i,o){for(var a=t[n],s=0;s<e.length;s++)if(h(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new p("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})):(l(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),u)},oneOfType:function(e){if(!Array.isArray(e))return l("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var t=0;t<e.length;t++){var n=e[t];if("function"!==typeof n)return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(n)+" at index "+t+"."),u}return g((function(t,n,r,i,s){for(var l=[],u=0;u<e.length;u++){var c=(0,e[u])(t,n,r,i,s,o);if(null==c)return null;c.data&&a(c.data,"expectedType")&&l.push(c.data.expectedType)}return new p("Invalid "+i+" `"+s+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,n,r,i,a){var s=t[n],l=b(s);if("object"!==l)return new p("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!==typeof c)return v(r,i,a,u,x(c));var d=c(s,u,r,i,a+"."+u,o);if(d)return d}return null}))},exact:function(e){return g((function(t,n,r,s,l){var u=t[n],c=b(u);if("object"!==c)return new p("Invalid "+s+" `"+l+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var d=i({},t[n],e);for(var f in d){var h=e[f];if(a(e,f)&&"function"!==typeof h)return v(r,s,l,f,x(h));if(!h)return new p("Invalid "+s+" `"+l+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=h(u,f,r,s,l+"."+f,o);if(g)return g}return null}))}};function h(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e,t){this.message=e,this.data=t&&"object"===typeof t?t:{},this.stack=""}function g(e){var n={},r=0;function i(i,a,s,u,c,f,h){if(u=u||d,f=f||s,h!==o){if(t){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("undefined"!==typeof console){var m=u+":"+s;!n[m]&&r<3&&(l("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[m]=!0,r++)}}return null==a[s]?i?null===a[s]?new p("The "+c+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new p("The "+c+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,s,u,c,f)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function m(e){return g((function(t,n,r,i,o,a){var s=t[n];return b(s)!==e?new p("Invalid "+i+" `"+o+"` of type `"+x(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,i){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e[c]);if("function"===typeof t)return t}(t);if(!r)return!1;var i,o=r.call(t);if(r!==t.entries){for(;!(i=o.next()).done;)if(!y(i.value))return!1}else for(;!(i=o.next()).done;){var a=i.value;if(a&&!y(a[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function x(e){if("undefined"===typeof e||null===e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,f.checkPropTypes=s,f.resetWarningCache=s.resetWarningCache,f.PropTypes=f,f}},"./node_modules/prop-types/index.js":(e,t,n)=>{var r=n("./node_modules/react-is/index.js");e.exports=n("./node_modules/prop-types/factoryWithTypeCheckers.js")(r.isElement,!0)},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/prop-types/lib/has.js":e=>{e.exports=Function.call.bind(Object.prototype.hasOwnProperty)},"./node_modules/react-is/cjs/react-is.development.js":(e,t)=>{"use strict";!function(){var e="function"===typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var h=e.type;switch(h){case u:case c:case i:case a:case o:case f:return h;default:var m=h&&h.$$typeof;switch(m){case l:case d:case g:case p:case s:return m;default:return t}}case r:return t}}}var w=u,C=c,S=l,k=s,_=n,E=d,P=i,j=g,O=p,R=r,A=a,T=o,N=f,F=!1;function M(e){return x(e)===c}t.AsyncMode=w,t.ConcurrentMode=C,t.ContextConsumer=S,t.ContextProvider=k,t.Element=_,t.ForwardRef=E,t.Fragment=P,t.Lazy=j,t.Memo=O,t.Portal=R,t.Profiler=A,t.StrictMode=T,t.Suspense=N,t.isAsyncMode=function(e){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||x(e)===u},t.isConcurrentMode=M,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===p},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===o},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===c||e===a||e===o||e===f||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},t.typeOf=x}()},"./node_modules/react-is/index.js":(e,t,n)=>{"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":(e,t,n)=>{"use strict";function r(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}function i(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}n.r(t),n.d(t,{shallowEqualArrays:()=>i,shallowEqualObjects:()=>r})},"./src/Component.ts":function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n("./src/useMediaQuery.ts"));t.default=function(e){var t=e.children,n=e.device,i=e.onChange,a=r(e,["children","device","onChange"]),s=(0,o.default)(a,n,i);return"function"===typeof t?t(s):s?t:null}},"./src/Context.ts":(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n("react").createContext)(void 0);t.default=r},"./src/index.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.toQuery=t.useMediaQuery=t.default=void 0;var i=r(n("./src/useMediaQuery.ts"));t.useMediaQuery=i.default;var o=r(n("./src/Component.ts"));t.default=o.default;var a=r(n("./src/toQuery.ts"));t.toQuery=a.default;var s=r(n("./src/Context.ts"));t.Context=s.default},"./src/mediaQuery.ts":function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n("./node_modules/prop-types/index.js")),s=a.default.oneOfType([a.default.string,a.default.number]),l={all:a.default.bool,grid:a.default.bool,aural:a.default.bool,braille:a.default.bool,handheld:a.default.bool,print:a.default.bool,projection:a.default.bool,screen:a.default.bool,tty:a.default.bool,tv:a.default.bool,embossed:a.default.bool},u={orientation:a.default.oneOf(["portrait","landscape"]),scan:a.default.oneOf(["progressive","interlace"]),aspectRatio:a.default.string,deviceAspectRatio:a.default.string,height:s,deviceHeight:s,width:s,deviceWidth:s,color:a.default.bool,colorIndex:a.default.bool,monochrome:a.default.bool,resolution:s,type:Object.keys(l)},c=i(u,["type"]),d=r({minAspectRatio:a.default.string,maxAspectRatio:a.default.string,minDeviceAspectRatio:a.default.string,maxDeviceAspectRatio:a.default.string,minHeight:s,maxHeight:s,minDeviceHeight:s,maxDeviceHeight:s,minWidth:s,maxWidth:s,minDeviceWidth:s,maxDeviceWidth:s,minColor:a.default.number,maxColor:a.default.number,minColorIndex:a.default.number,maxColorIndex:a.default.number,minMonochrome:a.default.number,maxMonochrome:a.default.number,minResolution:s,maxResolution:s},c),f=r(r({},l),d);t.default={all:f,types:l,matchers:u,features:d}},"./src/toQuery.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("./node_modules/hyphenate-style-name/index.js")),o=r(n("./src/mediaQuery.ts"));t.default=function(e){var t=[];return Object.keys(o.default.all).forEach((function(n){var r=e[n];null!=r&&t.push(function(e,t){var n=(0,i.default)(e);return"number"===typeof t&&(t="".concat(t,"px")),!0===t?n:!1===t?"not ".concat(n):"(".concat(n,": ").concat(t,")")}(n,r))})),t.join(" and ")}},"./src/useMediaQuery.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n("react"),o=r(n("./node_modules/matchmediaquery/index.js")),a=r(n("./node_modules/hyphenate-style-name/index.js")),s=n("./node_modules/shallow-equal/dist/index.esm.js"),l=r(n("./src/toQuery.ts")),u=r(n("./src/Context.ts")),c=function(e){if(e)return Object.keys(e).reduce((function(t,n){return t[(0,a.default)(n)]=e[n],t}),{})},d=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){e.current=!0}),[]),e.current},f=function(e){var t=function(){return function(e){return e.query||(0,l.default)(e)}(e)},n=(0,i.useState)(t),r=n[0],o=n[1];return(0,i.useEffect)((function(){var e=t();r!==e&&o(e)}),[e]),r};t.default=function(e,t,n){var r=function(e){var t=(0,i.useContext)(u.default),n=function(){return c(e)||c(t)},r=(0,i.useState)(n),o=r[0],a=r[1];return(0,i.useEffect)((function(){var e=n();(0,s.shallowEqualObjects)(o,e)||a(e)}),[e,t]),o}(t),a=f(e);if(!a)throw new Error("Invalid or missing MediaQuery!");var l=function(e,t){var n=function(){return(0,o.default)(e,t||{},!!t)},r=(0,i.useState)(n),a=r[0],s=r[1],l=d();return(0,i.useEffect)((function(){if(l){var e=n();return s(e),function(){e&&e.dispose()}}}),[e,t]),a}(a,r),h=function(e){var t=(0,i.useState)(e.matches),n=t[0],r=t[1];return(0,i.useEffect)((function(){var t=function(e){r(e.matches)};return e.addListener(t),r(e.matches),function(){e.removeListener(t)}}),[e]),n}(l),p=d();return(0,i.useEffect)((function(){p&&n&&n(h)}),[h]),(0,i.useEffect)((function(){return function(){l&&l.dispose()}}),[]),h}},react:t=>{"use strict";t.exports=e}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r("./src/index.ts")})(),e.exports=r(n(810))},1665:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2911:(e,t,n)=>{var r=n(1665);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],h=n.index;if(s+=e.slice(a,h),a=h+d.length,f)s+=f[1];else{var p=e[a],g=n[2],m=n[3],v=n[4],y=n[5],b=n[6],x=n[7];s&&(r.push(s),s="");var w=null!=g&&null!=p&&p!==g,C="+"===b||"*"===b,S="?"===b||"*"===b,k=n[2]||c,_=v||y;r.push({name:m||o++,prefix:g||"",delimiter:k,optional:S,repeat:C,partial:w,asterisk:!!x,pattern:_?u(_):x?".*":"[^"+l(k)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",s=t||{},l=(i||{}).pretty?a:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!==typeof c){var d,f=s[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(d=l(f[h]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===h?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');o+=c.prefix+d}}else o+=c}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var u=e[s];if("string"===typeof u)a+=l(u);else{var f=l(u.prefix),h="(?:"+u.pattern+")";t.push(u),u.repeat&&(h+="(?:"+f+h+")*"),a+=h=u.optional?u.partial?f+"("+h+")?":"(?:"+f+"("+h+"))?":f+"("+h+")"}}var p=l(n.delimiter||"/"),g=a.slice(-p.length)===p;return i||(a=(g?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&g?"":"(?="+p+"|$)",c(new RegExp("^"+a,d(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},8730:function(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/react-webcam.tsx")}({"./src/react-webcam.tsx":function(e,t,n){"use strict";n.r(t);var r=n("react"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function s(){return!(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)}"undefined"!==typeof window&&(void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return t?new Promise((function(n,r){t.call(navigator,e,n,r)})):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}));var l=function(e){function t(t){var n=e.call(this,t)||this;return n.canvas=null,n.ctx=null,n.requestUserMediaId=0,n.unmounted=!1,n.state={hasUserMedia:!1},n}return i(t,e),t.prototype.componentDidMount=function(){var e=this.state,t=this.props;this.unmounted=!1,s()?(e.hasUserMedia||this.requestUserMedia(),t.children&&"function"!=typeof t.children&&console.warn("children must be a function")):t.onUserMediaError("getUserMedia not supported")},t.prototype.componentDidUpdate=function(e){var t=this.props;if(s()){var n=JSON.stringify(e.audioConstraints)!==JSON.stringify(t.audioConstraints),r=JSON.stringify(e.videoConstraints)!==JSON.stringify(t.videoConstraints),i=e.minScreenshotWidth!==t.minScreenshotWidth,o=e.minScreenshotHeight!==t.minScreenshotHeight;(r||i||o)&&(this.canvas=null,this.ctx=null),(n||r)&&(this.stopAndCleanup(),this.requestUserMedia())}else t.onUserMediaError("getUserMedia not supported")},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.stopAndCleanup()},t.stopMediaStream=function(e){e&&(e.getVideoTracks&&e.getAudioTracks?(e.getVideoTracks().map((function(t){e.removeTrack(t),t.stop()})),e.getAudioTracks().map((function(t){e.removeTrack(t),t.stop()}))):e.stop())},t.prototype.stopAndCleanup=function(){var e=this.state;e.hasUserMedia&&(t.stopMediaStream(this.stream),e.src&&window.URL.revokeObjectURL(e.src))},t.prototype.getScreenshot=function(e){var t=this.state,n=this.props;if(!t.hasUserMedia)return null;var r=this.getCanvas(e);return r&&r.toDataURL(n.screenshotFormat,n.screenshotQuality)},t.prototype.getCanvas=function(e){var t=this.state,n=this.props;if(!this.video)return null;if(!t.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){var r=this.video.videoWidth,i=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var o=r/i;i=(r=n.minScreenshotWidth||this.video.clientWidth)/o,n.minScreenshotHeight&&i<n.minScreenshotHeight&&(r=(i=n.minScreenshotHeight)*o)}this.canvas=document.createElement("canvas"),this.canvas.width=(null===e||void 0===e?void 0:e.width)||r,this.canvas.height=(null===e||void 0===e?void 0:e.height)||i,this.ctx=this.canvas.getContext("2d")}var a=this.ctx,s=this.canvas;return a&&s&&(s.width=(null===e||void 0===e?void 0:e.width)||s.width,s.height=(null===e||void 0===e?void 0:e.height)||s.height,n.mirrored&&(a.translate(s.width,0),a.scale(-1,1)),a.imageSmoothingEnabled=n.imageSmoothing,a.drawImage(this.video,0,0,(null===e||void 0===e?void 0:e.width)||s.width,(null===e||void 0===e?void 0:e.height)||s.height),n.mirrored&&(a.scale(-1,1),a.translate(-s.width,0))),s},t.prototype.requestUserMedia=function(){var e=this,n=this.props,r=function(r,i){var o={video:"undefined"===typeof i||i};n.audio&&(o.audio="undefined"===typeof r||r),e.requestUserMediaId++;var a=e.requestUserMediaId;navigator.mediaDevices.getUserMedia(o).then((function(n){e.unmounted||a!==e.requestUserMediaId?t.stopMediaStream(n):e.handleUserMedia(null,n)})).catch((function(t){e.handleUserMedia(t)}))};if("mediaDevices"in navigator)r(n.audioConstraints,n.videoConstraints);else{var i=function(e){return{optional:[{sourceId:e}]}},o=function(e){var t=e.deviceId;return"string"===typeof t?t:Array.isArray(t)&&t.length>0?t[0]:"object"===typeof t&&t.ideal?t.ideal:null};MediaStreamTrack.getSources((function(e){var t=null,a=null;e.forEach((function(e){"audio"===e.kind?t=e.id:"video"===e.kind&&(a=e.id)}));var s=o(n.audioConstraints);s&&(t=s);var l=o(n.videoConstraints);l&&(a=l),r(i(t),i(a))}))}},t.prototype.handleUserMedia=function(e,t){var n=this.props;if(e||!t)return this.setState({hasUserMedia:!1}),void n.onUserMediaError(e);this.stream=t;try{this.video&&(this.video.srcObject=t),this.setState({hasUserMedia:!0})}catch(r){this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(t)})}n.onUserMedia(t)},t.prototype.render=function(){var e=this,t=this.state,n=this.props,i=n.audio,s=(n.forceScreenshotSourceSize,n.disablePictureInPicture),l=(n.onUserMedia,n.onUserMediaError,n.screenshotFormat,n.screenshotQuality,n.minScreenshotWidth,n.minScreenshotHeight,n.audioConstraints,n.videoConstraints,n.imageSmoothing,n.mirrored),u=n.style,c=void 0===u?{}:u,d=n.children,f=a(n,["audio","forceScreenshotSourceSize","disablePictureInPicture","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),h=l?o(o({},c),{transform:(c.transform||"")+" scaleX(-1)"}):c,p={getScreenshot:this.getScreenshot.bind(this)};return r.createElement(r.Fragment,null,r.createElement("video",o({autoPlay:!0,disablePictureInPicture:s,src:t.src,muted:!i,playsInline:!0,ref:function(t){e.video=t},style:h},f)),d&&d(p))},t.defaultProps={audio:!1,disablePictureInPicture:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:function(){},onUserMediaError:function(){},screenshotFormat:"image/webp",screenshotQuality:.92},t}(r.Component);t.default=l},react:function(t,n){t.exports=e}}).default},e.exports=r(n(810))},3434:(e,t,n)=>{"use strict";var r=n(810),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},181:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)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,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var w=Array.isArray,C=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:S.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function j(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+j(l,0):o,w(a)?(i="",null!=e&&(i=e.replace(P,"$&/")+"/"),O(a,t,i,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var u=0;u<e.length;u++){var c=o+j(s=e[u],u);l+=O(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=O(s=s.value,t,i,c=o+j(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function R(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T={current:null},N={transition:null},F={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:N,ReactCurrentOwner:S};function M(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.act=M,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=g({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)C.call(t,u)&&!k.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=M,t.useCallback=function(e,t){return T.current.useCallback(e,t)},t.useContext=function(e){return T.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return T.current.useDeferredValue(e)},t.useEffect=function(e,t){return T.current.useEffect(e,t)},t.useId=function(){return T.current.useId()},t.useImperativeHandle=function(e,t,n){return T.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return T.current.useMemo(e,t)},t.useReducer=function(e,t,n){return T.current.useReducer(e,t,n)},t.useRef=function(e){return T.current.useRef(e)},t.useState=function(e){return T.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return T.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return T.current.useTransition()},t.version="18.3.1"},810:(e,t,n)=>{"use strict";e.exports=n(181)},4434:(e,t,n)=>{"use strict";e.exports=n(3434)},9653:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,h=3,p=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(m=!1,x(e),!g)if(null!==r(u))g=!0,N(C);else{var t=r(c);null!==t&&F(w,t.startTime-e)}}function C(e,n){g=!1,m&&(m=!1,y(E),E=-1),p=!0;var o=h;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!O());){var a=f.callback;if("function"===typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(u)&&i(u),x(n)}else i(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&F(w,d.startTime-n),l=!1}return l}finally{f=null,h=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,_=null,E=-1,P=5,j=-1;function O(){return!(t.unstable_now()-j<P)}function R(){if(null!==_){var e=t.unstable_now();j=e;var n=!0;try{n=_(!0,e)}finally{n?S():(k=!1,_=null)}}else k=!1}if("function"===typeof b)S=function(){b(R)};else if("undefined"!==typeof MessageChannel){var A=new MessageChannel,T=A.port2;A.port1.onmessage=R,S=function(){T.postMessage(null)}}else S=function(){v(R,0)};function N(e){_=e,k||(k=!0,S())}function F(e,n){E=v((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(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,N(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){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 e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(m?(y(E),E=-1):m=!0,F(w,o-a))):(e.sortIndex=s,n(u,e),g||p||(g=!0,N(C))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},320:(e,t,n)=>{"use strict";e.exports=n(9653)},7028:(e,t,n)=>{"use strict";var r=n(810);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==c&&c(t,n)?t:(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,c]);var h=o(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=h}),[h]),u(h),h}},652:(e,t,n)=>{"use strict";e.exports=n(7028)},7657:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},1818:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DOMException:()=>C,Headers:()=>c,Request:()=>v,Response:()=>x,fetch:()=>S});var r="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof n.g&&n.g||{},i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!==typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function h(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i.arrayBuffer&&i.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=d(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(h);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=f(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8";return t.readAsText(e,i),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=s(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[s(e)]},c.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},c.prototype.set=function(e,t){this.map[s(e)]=l(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),u(e)},c.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),u(e)},c.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),u(e)},i.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=function(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function b(e){var t=new c;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(o){console.warn("Response "+o.message)}}})),t}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},g.call(v.prototype),g.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var w=[301,302,303,307,308];x.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})};var C=r.DOMException;try{new C}catch(k){(C=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),C.prototype.constructor=C}function S(e,t){return new Promise((function(n,o){var a=new v(e,t);if(a.signal&&a.signal.aborted)return o(new C("Aborted","AbortError"));var u=new XMLHttpRequest;function d(){u.abort()}if(u.onload=function(){var e={statusText:u.statusText,headers:b(u.getAllResponseHeaders()||"")};0===a.url.indexOf("file://")&&(u.status<200||u.status>599)?e.status=200:e.status=u.status,e.url="responseURL"in u?u.responseURL:e.headers.get("X-Request-URL");var t="response"in u?u.response:u.responseText;setTimeout((function(){n(new x(t,e))}),0)},u.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},u.onabort=function(){setTimeout((function(){o(new C("Aborted","AbortError"))}),0)},u.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?u.withCredentials=!0:"omit"===a.credentials&&(u.withCredentials=!1),"responseType"in u&&(i.blob?u.responseType="blob":i.arrayBuffer&&(u.responseType="arraybuffer")),t&&"object"===typeof t.headers&&!(t.headers instanceof c||r.Headers&&t.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){f.push(s(e)),u.setRequestHeader(e,l(t.headers[e]))})),a.headers.forEach((function(e,t){-1===f.indexOf(t)&&u.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){u.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",d),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",d)}),u.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=c,r.Request=v,r.Response=x)},8594:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},l=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),n(3154);var c=n(4611),d=u(n(6783));o(n(4611),t),o(n(4875),t);var f=function(){function e(e){if(this.httpClient=d.default.create(),!e.apiKey)throw new Error("The api-key is not set.");this.apiKey=e.apiKey;var t=e.baseUrl||"https://api.nyris.io";this.imageMatchingUrl="".concat(t,"/find/v1.1"),this.cadMatchingUrl="".concat(t,"/cad/find/v0.1"),this.imageMatchingUrlBySku="".concat(t,"/recommend/v1/"),this.imageMatchingSubmitManualUrl="".concat(t,"/find/v1/manual/"),this.feedbackUrl="".concat(t,"/feedback/v1/"),this.regionProposalUrl="".concat(t,"/find/v2/regions/"),this.findFilters="".concat(t,"/find/v1/filters"),this.responseFormat="application/offers.complete+json",this.maxHeight=e.maxHeight||1024,this.maxWidth=e.maxWidth||1024,this.jpegQuality=e.jpegQuality||.9,this.customSearchRequest=e.customSearchRequest,this.responseHook=e.responseHook,this.xOptions=e.xOptions}return e.prototype.prepareImage=function(e,t){return a(this,void 0,void 0,(function(){var n,r,i,o,a;return s(this,(function(s){switch(s.label){case 0:return n=t||{x1:0,x2:1,y1:0,y2:1},r=(0,c.getElementSize)(e),i=(0,c.getRectAspectRatio)(n,r),o=(0,c.getThumbSizeArea)(this.maxWidth,this.maxHeight,i),a=(0,c.elementToCanvas)(e,o,n),[4,(0,c.canvasToJpgBlob)(a,this.jpegQuality)];case 1:return[2,s.sent()]}}))}))},e.prototype.getSearchRequestHeaders=function(e){var t={"X-Api-Key":this.apiKey,"Accept-Language":"de,*;q=0.5",Accept:this.responseFormat,"Content-Type":e||"application/octet-stream"},n=[];return this.xOptions&&n.push(this.xOptions),n.length>0&&(t["X-Options"]=n.join(" ")),t},e.prototype.getRegionRequestHeaders=function(e){var t={"X-Api-Key":this.apiKey,"Content-Type":e||"application/octet-stream"},n=[];return this.xOptions&&n.push(this.xOptions),n.length>0&&(t["X-Options"]=n.join(" ")),t},e.prototype.getParams=function(e){var t=e.geoLocation?{lat:e.geoLocation.lat.toString(),lon:e.geoLocation.lon.toString(),dist:e.geoLocation.dist.toString()}:{};return t=r(r({},t),{text:e.text})},e.prototype.parseCategoryPredictions=function(e){return Object.entries(e||{}).map((function(e){return{name:e[0],score:e[1]}})).sort((function(e,t){return t.score-e.score}))},e.prototype.findByCad=function(e,t){return a(this,void 0,void 0,(function(){var n,r,i;return s(this,(function(o){switch(o.label){case 0:return n=e.type,r=this.getSearchRequestHeaders(n),i=this.getParams(t),[4,(0,c.timePromise)(this.httpClient.request({method:"POST",url:this.cadMatchingUrl,data:e,params:i,headers:r,responseType:"json"}))];case 1:return[2,o.sent().res.data]}}))}))},e.prototype.find=function(e,t,n,i){return a(this,void 0,void 0,(function(){var o,a,u,d,f,h,p;return s(this,(function(s){switch(s.label){case 0:return o=new FormData,a={},u=this.getSearchRequestHeaders("image/jpeg"),i&&(u["X-Options"]=i),t&&e.text?(o.append("text",e.text),e.text,d=l(e,["text"]),a=this.getParams(d)):e.text&&n&&n.length>0?o.append("text",e.text):a=this.getParams(e),t?[4,this.prepareImage(t,e.cropRect)]:[3,2];case 1:if(f=s.sent(),this.customSearchRequest)return[2,this.customSearchRequest(f,this.httpClient)];o.append("image",f),s.label=2;case 2:if(n&&n.length>0)for(h=0;h<n.length;h++)for(o.append("filters[".concat(h,"].filterType"),n[h].key),p=0;p<n[h].values.length;p++)o.append("filters[".concat(h,"].filterValues[").concat(p,"]"),n[h].values[p]);return[4,(0,c.timePromise)(this.httpClient.request(r({method:"POST",url:this.imageMatchingUrl,params:a,headers:u,responseType:"json"},t||n&&n.length?{data:o}:{data:null})))];case 3:return[2,s.sent().res.data]}}))}))},e.prototype.findBySku=function(e,t){return a(this,void 0,void 0,(function(){var n,r,i;return s(this,(function(o){switch(o.label){case 0:return n=this.getSearchRequestHeaders(),r="".concat(this.imageMatchingUrlBySku).concat(encodeURIComponent(e),"/").concat(encodeURIComponent(t)),[4,this.httpClient.get(r,{headers:n,responseType:"json"})];case 1:return i=o.sent(),this.responseHook&&(i=this.responseHook),[2,i]}}))}))},e.prototype.findRegions=function(e){return a(this,void 0,void 0,(function(){var t,n,r,i,o,a,l,u;return s(this,(function(s){switch(s.label){case 0:return t=(0,c.getElementSize)(e),n=t.w,r=t.h,i=(0,c.getThumbSizeArea)(this.maxWidth,this.maxHeight,n/r),o=(0,c.elementToCanvas)(e,i),[4,(0,c.canvasToJpgBlob)(o,this.jpegQuality)];case 1:return a=s.sent(),l=this.getRegionRequestHeaders("image/jpeg"),[4,this.httpClient.request({method:"POST",url:this.regionProposalUrl,data:a,headers:l})];case 2:return u=s.sent(),[2,u.data.regions.map((function(e){return{classId:e.classId,confidence:e.confidence,normalizedRect:{x1:e.region.left/i.w,x2:e.region.right/i.w,y1:e.region.top/i.h,y2:e.region.bottom/i.h}}}))]}}))}))},e.prototype.sendFeedback=function(e,t,n){return a(this,void 0,void 0,(function(){var i,o;return s(this,(function(a){switch(a.label){case 0:return i={"X-Api-Key":this.apiKey,"Content-Type":"application/json"},o=r({request_id:t,timestamp:new Date,session_id:e},n),[4,this.httpClient.request({method:"POST",url:this.feedbackUrl,headers:i,data:o})];case 1:return a.sent(),[2]}}))}))},e.prototype.getFilters=function(e){return a(this,void 0,void 0,(function(){var t,n;return s(this,(function(r){switch(r.label){case 0:return t=this.getSearchRequestHeaders(),n="".concat(this.findFilters,"?limit=").concat(e),[4,this.httpClient.get(n,{headers:t,responseType:"json"})];case 1:return[2,r.sent().data]}}))}))},e.prototype.searchFilters=function(e,t,n){return void 0===n&&(n=100),a(this,void 0,void 0,(function(){var r,i;return s(this,(function(o){switch(o.label){case 0:return r=this.getSearchRequestHeaders(),i="".concat(this.findFilters,"/").concat(e,"/").concat(t,"?limit=").concat(n),[4,this.httpClient.get(i,{headers:r,responseType:"json"})];case 1:return[2,o.sent().data]}}))}))},e}();t.default=f},4875:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4611:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.timePromise=t.isImageFile=t.isCadFile=t.cadExtensions=t.canvasToJpgBlob=t.urlOrBlobToCanvas=t.elementToCanvas=t.getElementSize=t.getRectAspectRatio=t.getRectSize=t.scaleRect=t.getThumbSizeLongestEdge=t.getThumbSizeArea=t.getUrlParam=void 0;var a=o(n(4664));function s(e,t){return{x1:e.x1*t.w,x2:e.x2*t.w,y1:e.y1*t.h,y2:e.y2*t.h}}function l(e){return{w:e.x2-e.x1,h:e.y2-e.y1}}function u(e){var t=e,n=e;return{w:t.naturalWidth||n.videoWidth||e.width,h:t.naturalHeight||n.videoHeight||e.height}}t.getUrlParam=function(e){var t=new RegExp("[?&]".concat(e,"(=([^&#]*))?(&|$|#)"),"i").exec(window.location.href);return t&&t[2]?(console.log("has value",e,t[2]),decodeURIComponent(t[2])):!!t||void 0},t.getThumbSizeArea=function(e,t,n){var r=e*t,i=Math.sqrt(r*n);return{w:i,h:i/n}},t.getThumbSizeLongestEdge=function(e,t,n,r){return e/t>n/r?{w:n*t/r,h:t}:{w:e,h:r*e/n}},t.scaleRect=s,t.getRectSize=l,t.getRectAspectRatio=function(e,t){var n=l(s(e,t));return n.w/n.h},t.getElementSize=u,t.elementToCanvas=function(e,t,n){var r=u(e),i=r.w,o=r.h,a=n||{x1:0,x2:1,y1:0,y2:1},s=a.x1,l=a.x2,c=a.y1,d=i*s,f=i*(l-s),h=o*c,p=o*(a.y2-c),g=t&&t.w||i,m=t&&t.h||o,v=document.createElement("canvas");v.width=g,v.height=m;var y=v.getContext("2d");if(!y)throw Error("Error converting element to canvas: Can not get 2d context");return y.fillStyle="rgb(255, 255,255)",y.fillRect(0,0,g,m),y.drawImage(e,d,h,f,p,0,0,g,m),v},t.urlOrBlobToCanvas=function(e){return new Promise((function(t,n){(0,a.default)(e,(function(e){e?t(e):n()}),{canvas:!0,orientation:!0,crossOrigin:"anonymous"})}))},t.canvasToJpgBlob=function(e,t){return new Promise((function(n,r){e.toBlob((function(e){e?n(e):r()}),"image/jpeg",t)}))},t.cadExtensions=[".stp",".step",".stl",".obj",".glb",".gltf"],t.isCadFile=function(e){return t.cadExtensions.some((function(t){return e.name.endsWith(t)}))},t.isImageFile=function(e){return e.type.startsWith("image/")},t.timePromise=function(e){return r(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(i){switch(i.label){case 0:return t=Date.now(),[4,e];case 1:return n=i.sent(),r=Date.now(),[2,{res:n,durationSeconds:(r-t)/1e3}]}}))}))}},8598:(e,t,n)=>{var r;self,r=()=>(()=>{var e={989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>s,default:()=>l});var r,i,o=n(15);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function s(e){return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),r||(r=o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),i||(i=o.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"})))}const l="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz4KICAgIDxwYXRoIGQ9Ik0yMCAxMUg3LjgzbDUuNTktNS41OUwxMiA0bC04IDggOCA4IDEuNDEtMS40MUw3LjgzIDEzSDIwdi0yeiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="},572:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ReactComponent:()=>l,default:()=>u});var r,i,o,a=n(15);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e){return a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:72,height:72},e),r||(r=a.createElement("defs",null,a.createElement("path",{id:"capture_svg__a",d:"M150 540a30 30 0 1160 0 30 30 0 01-60 0z"}),a.createElement("path",{id:"capture_svg__b",d:"M144 540a36 36 0 1172 0 36 36 0 01-72 0zm36 33.95a33.94 33.94 0 100-67.89 33.94 33.94 0 000 67.89z"}))),i||(i=a.createElement("use",{fill:"#c00",xlinkHref:"#capture_svg__a",transform:"translate(-144 -504)"})),o||(o=a.createElement("use",{fill:"#c00",fillOpacity:.9,xlinkHref:"#capture_svg__b",opacity:.7,transform:"translate(-144 -504)"})))}const u="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHZpZXdCb3g9IjAgMCA3MiA3MiI+PGRlZnM+PHBhdGggaWQ9IjFoN3JhIiBkPSJNMTUwIDU0MGEzMCAzMCAwIDEgMSA2MCAwIDMwIDMwIDAgMCAxLTYwIDB6Ii8+PHBhdGggaWQ9IjFoN3JiIiBkPSJNMTQ0IDU0MGEzNiAzNiAwIDEgMSA3MiAwIDM2IDM2IDAgMCAxLTcyIDB6bTM2IDMzLjk1YTMzLjk0IDMzLjk0IDAgMSAwIDAtNjcuODkgMzMuOTQgMzMuOTQgMCAwIDAgMCA2Ny44OXoiLz48L2RlZnM+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE0NCAtNTA0KSI+PHVzZSBmaWxsPSIjYzAwIiB4bGluazpocmVmPSIjMWg3cmEiLz48L2c+PGcgb3BhY2l0eT0iLjciIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNDQgLTUwNCkiPjx1c2UgZmlsbD0iI2MwMCIgZmlsbC1vcGFjaXR5PSIuOSIgeGxpbms6aHJlZj0iIzFoN3JiIi8+PC9nPjwvZz48L3N2Zz4="},708:(e,t,n)=>{(t=n(549)(!1)).push([e.id,".nyris-capture-app-button {\n position: fixed;\n top: 0;\n right: 0;\n color: white;\n margin: 10px;\n padding: 10px;\n background-color: rgba(255,255,255,0.3);\n border-radius: 2px;\n text-shadow: 1px 1px 3px #000;\n line-height: 1em;\n box-shadow: 1px 1px 3px rgba(0, 0, 0,0.5);\n}\n\n.nyris-capture-inputFile {\n visibility: hidden;\n}\n\n.nyris-capture-captureUi {\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n background-color: black;\n z-index: 10000;\n}\n\n.nyris-capture-video {\n position: fixed;\n min-height: 100%;\n min-width: 100%;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n width: auto;\n height: auto;\n}\n\n.nyris-capture-searchBtn {\n position: fixed;\n bottom: 0;\n right: 0;\n z-index: 10001;\n left: 50%;\n transform: translateX(-50%);\n\n color: black;\n background-color: transparent;\n text-transform: uppercase;\n border: 0;\n margin: auto;\n display: block;\n filter: drop-shadow( 1px 1px 5px #000 );\n\n}\n\n.nyris-capture-backBtn {\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 10001;\n color: white;\n background-color: transparent;\n border: 0;\n\n text-transform: uppercase;\n border-radius: 50%;\n display: block;\n padding: 0;\n font-size: 16px;\n margin-bottom: 5px;\n margin-left: 5px;\n filter: drop-shadow( 1px 1px 5px #000 );\n}\n\n",""]),e.exports=t},549:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},501:(e,t,n)=>{"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],l=t.base?s[0]+t.base:s[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var d=a(c),f={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(o[d].references++,o[d].updater(f)):o.push({identifier:c,updater:g(f,t),references:1}),r.push(c)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,c=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=c(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function f(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,p=0;function g(e,t){var n,r,i;if(t.singleton){var o=p++;n=h||(h=l(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=l(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var l=s(e,t),u=0;u<n.length;u++){var c=a(n[u]);0===o[c].references&&(o[c].updater(),o.splice(c,1))}n=l}}}},694:(e,t,n)=>{var r=n(501),i=n(708);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.id,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},677:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(15));n(694);var c=n(814),d=l(n(572)),f=l(n(989));t.default=function(e){var t=e.onCaptureComplete,n=e.onCaptureCanceled,r=e.useAppText,i=(0,u.useRef)(null),o=(0,u.useState)(),l=o[0],h=o[1];return(0,u.useEffect)((function(){navigator.mediaDevices.getUserMedia({video:{facingMode:"environment",width:640}}).then((function(e){var t=i.current;t&&(t.srcObject=e,h(e))})).catch((function(e){switch(e.name){case"NotFoundError":alert("Camera not found. Try with a file instead.");break;case"NotAllowedError":alert("You have to allow using the camera in order to take pictures. If you are not asked again for permissions, go to site settings and reset permissions there.");break;default:alert("Sorry, something has gone wrong while enabeling the camera. (".concat(e,")"))}}))}),[i]),(0,u.useEffect)((function(){return function(){l&&(l.getVideoTracks&&l.getAudioTracks?(l.getVideoTracks().map((function(e){return e.stop()})),l.getAudioTracks().map((function(e){return e.stop()}))):l.stop())}}),[l]),u.default.createElement("div",{className:"nyris-capture-captureUi"},u.default.createElement("video",{autoPlay:!0,playsInline:!0,ref:i,className:"nyris-capture-video"}),u.default.createElement("input",{type:"file",name:"file",id:"capture_file",className:"nyris-capture-inputFile",accept:"image/*",capture:"environment",onChange:function(e){return a(void 0,void 0,void 0,(function(){var n,r;return s(this,(function(i){switch(i.label){case 0:return(n=e.target)&&n.files?[4,(0,c.urlOrBlobToCanvas)(n.files[0])]:[3,2];case 1:r=i.sent(),t(r),i.label=2;case 2:return[2]}}))}))}}),u.default.createElement("label",{className:"nyris-capture-app-button",htmlFor:"capture_file"},r),u.default.createElement("button",{className:"nyris-capture-backBtn",onClick:n},u.default.createElement("img",{src:f.default,alt:"back",width:"72"})),u.default.createElement("button",{className:"nyris-capture-searchBtn",onClick:function(){if(i.current){var e=(0,c.elementToCanvas)(i.current);t(e)}}},u.default.createElement("img",{src:d.default,alt:"capture"})))}},161:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(15)),u=n(847),c=n(814),d=s(n(201)),f=n(967),h=function(e){return e.tlHover?"nw-resize":e.trHover?"ne-resize":e.blHover?"sw-resize":e.brHover?"se-resize":e.rectHover?"move":e.dotHover?"pointer":"default"},p=3.5;t.default=function(e){var t=e.dotColor,n=e.image,i=e.maxHeight,o=e.maxWidth,a=e.minHeight,s=void 0===a?80:a,g=e.minWidth,m=void 0===g?80:g,v=e.minCropHeight,y=e.minCropWidth,b=e.onSelectionChange,x=e.regions,w=e.rounded,C=e.selection,S=e.expandAnimation,k=e.shrinkAnimation,_=e.onExpand,E=e.showGrip,P=void 0===E||E,j=e.style,O=e.resize,R=e.draggable,A=void 0===R||R,T=(0,l.useRef)(null),N=(0,l.useRef)(null),F=(0,l.useRef)(k),M=(0,l.useRef)({width:0,height:0}),L=(0,l.useState)({width:0,height:0}),I=L[0],D=L[1],z=(0,l.useState)(C),B=z[0],U=z[1],V=(0,l.useState)(0),H=V[0],W=V[1],G=(0,l.useState)(o),q=G[0],K=G[1],X=(0,l.useState)(i),Z=X[0],Y=X[1],Q=20,$=Q,J=-20;(0,l.useEffect)((function(){F.current=k}),[k]);var ee=function(){var e,t,n,r,i;(null===(e=T.current)||void 0===e?void 0:e.offsetWidth)&&!F.current&&(W(null===(t=T.current)||void 0===t?void 0:t.offsetWidth),Z||(Y(null===(n=T.current)||void 0===n?void 0:n.offsetWidth),K(null===(r=T.current)||void 0===r?void 0:r.offsetWidth)),D({width:T.current.offsetWidth,height:T.current.offsetWidth})),(null===(i=T.current)||void 0===i?void 0:i.offsetWidth)&&(M.current={maxHeight:T.current.offsetWidth,maxWidth:T.current.offsetWidth})},te=Z||I.height,ne=q||I.width;(0,l.useEffect)((function(){var e={x1:C.x1*ae,x2:C.x2*ae,y1:C.y1*se,y2:C.y2*se},t=pe+Q-(e.x2-e.x1)+p,n=ge+Q-(e.y2-e.y1)+p;e.x2-e.x1<pe+Q&&(e.x1=e.x1-t/2,e.x2=e.x2+t/2),e.y2-e.y1<ge+Q&&(e.y1=e.y1-n/2,e.y2=e.y2+n/2),U({x1:e.x1/ae,x2:e.x2/ae,y1:e.y1/se,y2:e.y2/se})}),[C]),(0,l.useEffect)((function(){var e,t,n,r;return(null===(e=T.current)||void 0===e?void 0:e.offsetWidth)&&(W(null===(t=T.current)||void 0===t?void 0:t.offsetWidth),Z||(Y(null===(n=T.current)||void 0===n?void 0:n.offsetWidth),K(null===(r=T.current)||void 0===r?void 0:r.offsetWidth)),k||D({width:T.current.offsetWidth,height:T.current.offsetWidth})),O&&window.addEventListener("resize",ee),function(){window.removeEventListener("resize",ee)}}),[]);var re=(0,c.getThumbSizeLongestEdge)(I.width,I.height,n.width,n.height),ie=re.w,oe=re.h,ae=Math.max(m,ie),se=Math.max(s,oe),le=function(e,t,n,r,i){var o=n.x1,a=n.x2,s=n.y1,l=n.y2,u={x1:Math.max(o*e,p),x2:Math.min(a*e,e-p),y1:Math.max(s*t,p),y2:Math.min(l*t,t-p)};return r&&i&&u.x2-u.x1<r&&u.y2-u.y1<i?{x1:Math.max(o*e-r/2,p),x2:Math.min(a*e+r/2,e-p),y1:Math.max(s*t-i/2,p),y2:Math.min(l*t+i/2,t-p)}:u}(ae,se,B,y,v),ue=le.x1,ce=le.y1,de=le.x2,fe=le.y2,he=[y,v],pe=he[0],ge=he[1],me=(0,l.useRef)(null),ve=(0,l.useState)({tlHover:!1,trHover:!1,blHover:!1,brHover:!1,dotHover:!1,rectHover:!1}),ye=ve[0],be=ve[1],xe=function(e){var t=r({tlHover:!1,trHover:!1,blHover:!1,brHover:!1,dotHover:!1,rectHover:!1},e);be(t)},we=function(e,t){if(!(t.target instanceof d.default.Stage)){var n=t.target.getAbsolutePosition(),r=n.x,i=n.y,o=t.target.getSize(),a=o.width,s=o.height,l=5,u=5;"tl"===e&&(l*=-1,u*=-1),"tr"===e&&(l*=1,u*=-1),"bl"===e&&(l*=-1,u*=1),"br"===e&&(l*=1,u*=1);var c=function(e,t,n,r,i,o){var a=e.x1,s=e.x2,l=e.y1,u=e.y2;switch(t){case"rect":return{x1:n,y1:r,x2:n+i,y2:r+o};case"tl":return{x1:n,y1:r,x2:s,y2:u};case"tr":return{x2:n,y1:r,x1:a,y2:u};case"bl":return{x1:n,y2:r,x2:s,y1:l};case"br":return{x2:n,y2:r,x1:a,y1:l}}}({x1:ue,x2:de,y1:ce,y2:fe},e,r+("rect"!==e?$+l:0),i+("rect"!==e?$+u:0),a,s),f={x1:c.x1/ae,x2:c.x2/ae,y1:c.y1/se,y2:c.y2/se};Pe(f)}};(0,l.useEffect)((function(){if(me.current){var e=new d.default.Animation((function(e){if(e&&me.current){var t=40*e.time/1e3;me.current.dashOffset(-t)}}),me.current.getLayer());return e.start(),function(){e&&e.stop()}}}),[me]);var Ce=we.bind(null,"rect"),Se=we.bind(null,"tl"),ke=we.bind(null,"tr"),_e=we.bind(null,"bl"),Ee=we.bind(null,"br"),Pe=function(e){U(e)},je=function(e){var t={x1:e.x1*ae,x2:e.x2*ae,y1:e.y1*se,y2:e.y2*se},n=pe+Q-(t.x2-t.x1)+p,r=ge+Q-(t.y2-t.y1)+p;t.x2-t.x1<pe+Q&&(t.x1=t.x1-n/2,t.x2=t.x2+n/2),t.y2-t.y1<ge+Q&&(t.y1=t.y1-r/2,t.y2=t.y2+r/2),U({x1:t.x1/ae,x2:t.x2/ae,y1:t.y1/se,y2:t.y2/se})};if(!n)return null;var Oe=x.map((function(e,t){var n=e.normalizedRect,r=n.x1,i=n.x2,o=n.y1,a=n.y2,s=ae*((i-r)/2+r),l=se*((a-o)/2+o);return{region:e,key:"".concat(s,"-").concat(l,"-").concat(t),x:s,y:l,show:e.show}})),Re=k?.4:.3,Ae=[4,4,4,4],Te=function(e){e.beginPath();var t=0,n=0,r=0,i=0;"number"==typeof Ae&&w?t=n=r=i=Math.min(Ae,ae/2,se/2):w&&(t=Math.min(Ae[0]||0,ne/2,te/2),n=Math.min(Ae[1]||0,ne/2,te/2),i=Math.min(Ae[2]||0,ne/2,te/2),r=Math.min(Ae[3]||0,ne/2,te/2)),e.moveTo(t,0),e.lineTo(ne-n,0),e.arc(ne-n,n,n,3*Math.PI/2,0,!1),e.lineTo(ne,te-i),e.arc(ne-i,te-i,i,0,Math.PI/2,!1),e.lineTo(r,te),e.arc(r,te-r,r,Math.PI/2,Math.PI,!1),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2,!1),e.closePath()},Ne=(0,l.useState)(!0),Fe=Ne[0],Me=Ne[1];return(0,l.useEffect)((function(){if(!M.current.maxWidth){var e=Z||T.current.offsetWidth,t=q||T.current.offsetWidth;M.current={maxHeight:e,maxWidth:t}}var n=M.current.maxWidth,r=M.current.maxHeight,i=new d.default.Animation((function(e){var t=e.time/200,o=m,a=s,l=n-o,u=r-a;D({width:Math.min(o+t*l,M.current.maxWidth),height:Math.min(a+t*u,M.current.maxHeight)}),e.time>=170&&(i.stop(),Me(!0))}));return S&&(Me(!1),i.start()),function(){i.stop()}}),[S]),(0,l.useEffect)((function(){var e,t,n,r,i=M.current.maxWidth,o=M.current.maxHeight,a=new d.default.Animation((function(e){var t,n,r=e.time/200;D({width:i+r*(m-i),height:o+r*(s-o)}),(r>=1||(null===(n=null===(t=N.current)||void 0===t?void 0:t.attrs)||void 0===n?void 0:n.width)<m)&&a.stop()}));return k&&(null===(t=null===(e=N.current)||void 0===e?void 0:e.attrs)||void 0===t?void 0:t.width)>m?a.start():0===(null===(r=null===(n=N.current)||void 0===n?void 0:n.attrs)||void 0===r?void 0:r.width)&&D({width:m||H,height:s||H}),function(){a.stop()}}),[k]),l.default.createElement("div",{ref:T,style:r({width:"100%"},j)},l.default.createElement(u.Stage,{width:ae,height:se,style:{cursor:h(ye),width:ae,height:se,margin:"auto"},ref:function(e){N.current=e},onClick:function(){_&&_()},onTap:function(){_&&_()}},l.default.createElement(u.Layer,{key:"img",clipFunc:Te},l.default.createElement(u.Image,{image:n,width:ae,height:se,fill:"white"})),Fe&&l.default.createElement(l.default.Fragment,null,l.default.createElement(u.Layer,{key:"selection",clipFunc:Te},l.default.createElement(u.Rect,{stroke:"white",opacity:0,strokeWidth:0,x:ue,y:ce,width:de-ue,height:fe-ce}),l.default.createElement(u.Rect,{stroke:"black",draggable:!!A,onDragMove:Ce,dragBoundFunc:function(e){var t=e.x,n=e.y,r=de-ue+p,i=fe-ce+p;return{x:Math.max(Math.min(t,ae-r),p),y:Math.max(Math.min(n,se-i),p)}},onDragEnd:function(){A&&xe({rectHover:!0}),b&&b(B)},onMouseOver:function(){A&&xe({rectHover:!0})},onMouseOut:function(){xe({rectHover:!1})},opacity:0,strokeWidth:2,x:ue,y:ce,width:de-ue,height:fe-ce,dash:[0,0],ref:me}),l.default.createElement(u.Rect,{fill:"black",opacity:Re,x:0,y:0,width:ae,height:ce+.08}),l.default.createElement(u.Rect,{fill:"black",opacity:Re,x:0,y:fe,width:ae,height:se-fe}),l.default.createElement(u.Rect,{fill:"black",opacity:Re,x:0,y:ce,width:ue,height:fe-ce+.08}),l.default.createElement(u.Rect,{fill:"black",opacity:Re,x:de,y:ce,width:ae-de,height:fe-ce+.08})),P&&l.default.createElement(u.Layer,null,l.default.createElement(u.Path,{data:"M2 18V10C2 5.58172 5.58172 2 10 2H18",stroke:"white",strokeWidth:p,lineCap:"round",opacity:1,x:ue-3,y:ce-3,shadowColor:"#000000",shadowBlur:4,shadowOffset:{x:0,y:0},shadowOpacity:.25}),l.default.createElement(u.Rect,{draggable:!0,onDragMove:Se,dragBoundFunc:function(e){var t=e.x,n=e.y,r=pe+$+Q,i=ge+$+Q;return de-t<r&&(t-=r-(de-t)),fe-n<i&&(n-=i-(fe-n)),{x:Math.max(t,-11.5),y:Math.max(n,-11.5)}},onMouseOver:function(){return xe({tlHover:!0})},onMouseOut:function(){return xe({tlHover:!1})},onDragEnd:function(){xe({tlHover:!1}),b&&b(B)},opacity:1,width:40,height:40,x:ue-$+5,y:ce-$+5}),l.default.createElement(u.Path,{data:"M2 2L10 2C14.4183 2 18 5.58172 18 10L18 18",stroke:"white",strokeWidth:p,lineCap:"round",opacity:1,x:de+3,y:ce-3,offsetX:Q,shadowColor:"#000000",shadowBlur:4,shadowOffset:{x:0,y:0},shadowOpacity:.25}),l.default.createElement(u.Rect,{draggable:!0,onDragMove:ke,dragBoundFunc:function(e){var t=e.x,n=e.y,r=ge+$+Q;return fe-n<r&&(n-=r-(fe-n)),{x:Math.min(Math.max(t,ue+pe),ae+J-8.5),y:Math.max(n,-11.5)}},onMouseOver:function(){return xe({trHover:!0})},onMouseOut:function(){return xe({trHover:!1})},onDragEnd:function(){xe({trHover:!1}),b&&b(B)},opacity:1,width:40,height:40,x:de-$-5,y:ce-$+5,offsetX:0}),l.default.createElement(u.Path,{data:"M18 18L10 18C5.58172 18 2 14.4183 2 10L2 2",stroke:"white",strokeWidth:p,lineCap:"round",opacity:1,x:ue-3,y:fe+3,offsetY:Q,shadowColor:"#000000",shadowBlur:4,shadowOffset:{x:0,y:0},shadowOpacity:.25}),l.default.createElement(u.Rect,{draggable:!0,onDragMove:_e,dragBoundFunc:function(e){var t=e.x,n=e.y,r=t,i=pe+$+Q;return de-r<i&&(r-=i-(de-r)),{x:Math.max(r,-11.5),y:Math.min(Math.max(n,ce+ge),se+J-8.5)}},onMouseOver:function(){return xe({blHover:!0})},onMouseOut:function(){return xe({blHover:!1})},onDragEnd:function(){xe({blHover:!1}),b&&b(B)},opacity:1,width:40,height:40,x:ue-$+5,y:fe-$-5,offsetY:0}),l.default.createElement(u.Path,{data:"M18 2L18 10C18 14.4183 14.4183 18 10 18L2 18",stroke:"white",strokeWidth:p,lineCap:"round",x:de+3,y:fe+3,opacity:1,offsetY:Q,offsetX:Q,shadowColor:"#000000",shadowBlur:4,shadowOffset:{x:0,y:0},shadowOpacity:.25}),l.default.createElement(u.Rect,{opacity:1,draggable:!0,onDragMove:Ee,dragBoundFunc:function(e){var t=e.x,n=e.y;return{x:Math.min(Math.max(t,ue+pe),ae+J-8.5),y:Math.min(Math.max(n,ce+ge),se+J-8.5)}},onMouseOver:function(){xe({brHover:!0})},onMouseOut:function(){xe({brHover:!1})},onDragEnd:function(){xe({brHover:!1}),b&&b(B)},x:de-$-5,y:fe-$-5,width:40,height:40,offsetY:0,offsetX:0})),l.default.createElement(f.NodeGroup,{data:Oe,keyAccessor:function(e){return e.key},start:function(e,t){return{opacity:0,x:-100,y:e.y}},enter:function(e,t){return{opacity:[1],x:[e.x],y:e.y,timing:{delay:100*t,duration:300}}}},(function(e){return l.default.createElement(u.Layer,{key:"dots"},e.map((function(e){var n=e.key,i=e.data,o=e.state;return l.default.createElement(u.Circle,r({onClick:function(){je(i.region.normalizedRect),xe({dotHover:!1}),b&&b(i.region.normalizedRect)},onTap:function(){je(i.region.normalizedRect),xe({dotHover:!1}),b&&b(i.region.normalizedRect)},onMouseOver:function(){return xe({dotHover:!0})},onMouseOut:function(){return xe({dotHover:!1})},key:n,radius:7},o,{stroke:t,fill:"white",strokeWidth:5,opacity:t?i.region.show:0}))})))})))))}},749:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Capture=t.Preview=void 0;var a=n(161);Object.defineProperty(t,"Preview",{enumerable:!0,get:function(){return o(a).default}});var s=n(677);Object.defineProperty(t,"Capture",{enumerable:!0,get:function(){return o(s).default}}),i(n(622),t)},622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeFileHandler=void 0,t.makeFileHandler=function(e){return function(t){var n=null,r=t;if(r&&r.target){var i=r.target;if(i.files&&i.files[0]&&(n=i.files[0]),i.value&&(i.value=""),n)return e(n)}var o=t;if(o&&(n=o.dataTransfer&&o.dataTransfer.files[0]),n)return e(n)}}},814:e=>{"use strict";e.exports=n(8594)},201:e=>{"use strict";e.exports=n(2792)},15:e=>{"use strict";e.exports=n(810)},847:e=>{"use strict";e.exports=n(9216)},967:e=>{"use strict";e.exports=n(8982)}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0,r(749)})(),e.exports=r()},4293:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},8920:(e,t,n)=>{var r=n(4319).default;function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o},e.exports.__esModule=!0,e.exports.default=e.exports},4319:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4938:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},446:(e,t,n)=>{"use strict";var r=n(7777),i=n(4027),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},6376:(e,t,n)=>{"use strict";var r=n(5905),i=n(4027),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},7454:(e,t,n)=>{"use strict";var r=n(921),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},9385:(e,t,n)=>{"use strict";var r=n(5935),i=n(916),o=n(6405).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},1249:(e,t,n)=>{"use strict";var r=n(2915).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},6971:(e,t,n)=>{"use strict";var r=n(8445),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},5155:(e,t,n)=>{"use strict";var r=n(326),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},6175:e=>{"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7360:(e,t,n)=>{"use strict";var r,i,o,a=n(6175),s=n(304),l=n(5623),u=n(7777),c=n(326),d=n(9693),f=n(7287),h=n(4027),p=n(8719),g=n(8292),m=n(9766),v=n(8445),y=n(9959),b=n(9923),x=n(5935),w=n(9220),C=n(4481),S=C.enforce,k=C.get,_=l.Int8Array,E=_&&_.prototype,P=l.Uint8ClampedArray,j=P&&P.prototype,O=_&&y(_),R=E&&y(E),A=Object.prototype,T=l.TypeError,N=x("toStringTag"),F=w("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",L=a&&!!b&&"Opera"!==f(l.opera),I=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},B=function(e){var t=y(e);if(c(t)){var n=k(t);return n&&d(n,M)?n[M]:B(t)}},U=function(e){if(!c(e))return!1;var t=f(e);return d(D,t)||d(z,t)};for(r in D)(o=(i=l[r])&&i.prototype)?S(o)[M]=i:L=!1;for(r in z)(o=(i=l[r])&&i.prototype)&&(S(o)[M]=i);if((!L||!u(O)||O===Function.prototype)&&(O=function(){throw new T("Incorrect invocation")},L))for(r in D)l[r]&&b(l[r],O);if((!L||!R||R===A)&&(R=O.prototype,L))for(r in D)l[r]&&b(l[r].prototype,R);if(L&&y(j)!==R&&b(j,R),s&&!d(R,N))for(r in I=!0,m(R,N,{configurable:!0,get:function(){return c(this)?this[F]:void 0}}),D)l[r]&&p(l[r],F,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:I&&F,aTypedArray:function(e){if(U(e))return e;throw new T("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!b||v(O,e)))return e;throw new T(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(s){if(n)for(var i in D){var o=l[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(a){try{o.prototype[e]=t}catch(u){}}}R[e]&&!n||g(R,e,n?t:L&&E[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(s){if(b){if(n)for(r in D)if((i=l[r])&&d(i,e))try{delete i[e]}catch(o){}if(O[e]&&!n)return;try{return g(O,e,n?t:L&&O[e]||t)}catch(o){}}for(r in D)!(i=l[r])||i[e]&&!n||g(i,e,t)}},getTypedArrayConstructor:B,isView:function(e){if(!c(e))return!1;var t=f(e);return"DataView"===t||d(D,t)||d(z,t)},isTypedArray:U,TypedArray:O,TypedArrayPrototype:R}},3166:(e,t,n)=>{"use strict";var r=n(5623),i=n(9956),o=n(304),a=n(6175),s=n(1890),l=n(8719),u=n(9766),c=n(2939),d=n(7475),f=n(6971),h=n(2687),p=n(8098),g=n(8316),m=n(3493),v=n(1598),y=n(9959),b=n(9923),x=n(369),w=n(8604),C=n(7427),S=n(8168),k=n(1347),_=n(4481),E=s.PROPER,P=s.CONFIGURABLE,j="ArrayBuffer",O="DataView",R="prototype",A="Wrong index",T=_.getterFor(j),N=_.getterFor(O),F=_.set,M=r[j],L=M,I=L&&L[R],D=r[O],z=D&&D[R],B=Object.prototype,U=r.Array,V=r.RangeError,H=i(x),W=i([].reverse),G=v.pack,q=v.unpack,K=function(e){return[255&e]},X=function(e){return[255&e,e>>8&255]},Z=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Q=function(e){return G(m(e),23,4)},$=function(e){return G(e,52,8)},J=function(e,t,n){u(e[R],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,r){var i=N(e),o=g(n),a=!!r;if(o+t>i.byteLength)throw new V(A);var s=i.bytes,l=o+i.byteOffset,u=w(s,l,l+t);return a?u:W(u)},te=function(e,t,n,r,i,o){var a=N(e),s=g(n),l=r(+i),u=!!o;if(s+t>a.byteLength)throw new V(A);for(var c=a.bytes,d=s+a.byteOffset,f=0;f<t;f++)c[d+f]=l[u?f:t-f-1]};if(a){var ne=E&&M.name!==j;d((function(){M(1)}))&&d((function(){new M(-1)}))&&!d((function(){return new M,new M(1.5),new M(NaN),1!==M.length||ne&&!P}))?ne&&P&&l(M,"name",j):((L=function(e){return f(this,I),C(new M(g(e)),this,L)})[R]=I,I.constructor=L,S(L,M)),b&&y(z)!==B&&b(z,B);var re=new D(new L(2)),ie=i(z.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||c(z,{setInt8:function(e,t){ie(this,e,t<<24>>24)},setUint8:function(e,t){ie(this,e,t<<24>>24)}},{unsafe:!0})}else I=(L=function(e){f(this,I);var t=g(e);F(this,{type:j,bytes:H(U(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)})[R],z=(D=function(e,t,n){f(this,z),f(e,I);var r=T(e),i=r.byteLength,a=h(t);if(a<0||a>i)throw new V("Wrong offset");if(a+(n=void 0===n?i-a:p(n))>i)throw new V("Wrong length");F(this,{type:O,buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)})[R],o&&(J(L,"byteLength",T),J(D,"buffer",N),J(D,"byteLength",N),J(D,"byteOffset",N)),c(z,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Y(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return Y(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return q(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return q(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,K,t)},setUint8:function(e,t){te(this,1,e,K,t)},setInt16:function(e,t){te(this,2,e,X,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,X,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,Z,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,Z,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,Q,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,$,t,arguments.length>2&&arguments[2])}});k(L,j),k(D,O),e.exports={ArrayBuffer:L,DataView:D}},369:(e,t,n)=>{"use strict";var r=n(6569),i=n(5934),o=n(5506);e.exports=function(e){for(var t=r(this),n=o(t),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);u>s;)t[s++]=e;return t}},6230:(e,t,n)=>{"use strict";var r=n(5506);e.exports=function(e,t,n){for(var i=0,o=arguments.length>2?n:r(t),a=new e(o);o>i;)a[i]=t[i++];return a}},6632:(e,t,n)=>{"use strict";var r=n(7708),i=n(6265),o=n(6569),a=n(1824),s=n(1533),l=n(5905),u=n(5506),c=n(8332),d=n(5645),f=n(8311),h=Array;e.exports=function(e){var t=o(e),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,b,x,w,C,S=f(t),k=0;if(!S||this===h&&s(S))for(v=u(t),y=n?new this(v):h(v);v>k;k++)C=m?g(t[k],k):t[k],c(y,k,C);else for(y=n?new this:[],w=(x=d(t,S)).next;!(b=i(w,x)).done;k++)C=m?a(x,g,[b.value,k],!0):b.value,c(y,k,C);return y.length=k,y}},4909:(e,t,n)=>{"use strict";var r=n(4681),i=n(5934),o=n(5506),a=function(e){return function(t,n,a){var s=r(t),l=o(s);if(0===l)return!e&&-1;var u,c=i(a,l);if(e&&n!==n){for(;l>c;)if((u=s[c++])!==u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4865:(e,t,n)=>{"use strict";var r=n(7708),i=n(9956),o=n(4211),a=n(6569),s=n(5506),l=n(5569),u=i([].push),c=function(e){var t=1===e,n=2===e,i=3===e,c=4===e,d=6===e,f=7===e,h=5===e||d;return function(p,g,m,v){for(var y,b,x=a(p),w=o(x),C=s(w),S=r(g,m),k=0,_=v||l,E=t?_(p,C):n||f?_(p,0):void 0;C>k;k++)if((h||k in w)&&(b=S(y=w[k],k,x),e))if(t)E[k]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:u(E,y)}else switch(e){case 4:return!1;case 7:u(E,y)}return d?-1:i||c?c:E}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},8604:(e,t,n)=>{"use strict";var r=n(9956);e.exports=r([].slice)},5244:(e,t,n)=>{"use strict";var r=n(8604),i=Math.floor,o=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l<n;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var u=i(n/2),c=o(r(e,0,u),t),d=o(r(e,u),t),f=c.length,h=d.length,p=0,g=0;p<f||g<h;)e[p+g]=p<f&&g<h?t(c[p],d[g])<=0?c[p++]:d[g++]:p<f?c[p++]:d[g++];return e};e.exports=o},893:(e,t,n)=>{"use strict";var r=n(2812),i=n(5905),o=n(326),a=n(5935)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},5569:(e,t,n)=>{"use strict";var r=n(893);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},1824:(e,t,n)=>{"use strict";var r=n(5155),i=n(9804);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){i(e,"throw",a)}}},728:(e,t,n)=>{"use strict";var r=n(5935)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(s){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(s){}return n}},540:(e,t,n)=>{"use strict";var r=n(9956),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},7287:(e,t,n)=>{"use strict";var r=n(5416),i=n(7777),o=n(540),a=n(5935)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),a))?n:l?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},8168:(e,t,n)=>{"use strict";var r=n(9693),i=n(9963),o=n(2799),a=n(6405);e.exports=function(e,t,n){for(var s=i(t),l=a.f,u=o.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},3511:(e,t,n)=>{"use strict";var r=n(7475);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2381:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},8719:(e,t,n)=>{"use strict";var r=n(304),i=n(6405),o=n(560);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},560:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8332:(e,t,n)=>{"use strict";var r=n(304),i=n(6405),o=n(560);e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},9766:(e,t,n)=>{"use strict";var r=n(6687),i=n(6405);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},8292:(e,t,n)=>{"use strict";var r=n(7777),i=n(6405),o=n(6687),a=n(3189);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&o(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(c){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},2939:(e,t,n)=>{"use strict";var r=n(8292);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},3189:(e,t,n)=>{"use strict";var r=n(5623),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},304:(e,t,n)=>{"use strict";var r=n(7475);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2947:(e,t,n)=>{"use strict";var r=n(5623),i=n(326),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},8300:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},4052:(e,t,n)=>{"use strict";var r=n(2947)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},9678:(e,t,n)=>{"use strict";var r=n(2140).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},6087:e=>{"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},3590:(e,t,n)=>{"use strict";var r=n(2140);e.exports=/MSIE|Trident/.test(r)},9915:(e,t,n)=>{"use strict";var r=n(2140);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},6548:(e,t,n)=>{"use strict";var r=n(5623),i=n(540);e.exports="process"===i(r.process)},2140:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},1104:(e,t,n)=>{"use strict";var r,i,o=n(5623),a=n(2140),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},4988:(e,t,n)=>{"use strict";var r=n(2140).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},9747:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4538:(e,t,n)=>{"use strict";var r=n(5623),i=n(2799).f,o=n(8719),a=n(8292),s=n(3189),l=n(8168),u=n(8120);e.exports=function(e,t){var n,c,d,f,h,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):r[p]&&r[p].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(h=i(n,c))&&h.value:n[c],!u(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,c,f,e)}}},7475:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},7056:(e,t,n)=>{"use strict";n(7675);var r=n(6265),i=n(8292),o=n(495),a=n(7475),s=n(5935),l=n(8719),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var f=s(e),h=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!h||!p||n){var g=/./[f],m=t(f,""[e],(function(e,t,n,i,a){var s=t.exec;return s===o||s===c.exec?h&&!a?{done:!0,value:r(g,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(c,f,m[1])}d&&l(c[f],"sham",!0)}},9413:(e,t,n)=>{"use strict";var r=n(1300),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},7708:(e,t,n)=>{"use strict";var r=n(1568),i=n(446),o=n(1300),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},1300:(e,t,n)=>{"use strict";var r=n(7475);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6265:(e,t,n)=>{"use strict";var r=n(1300),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},1890:(e,t,n)=>{"use strict";var r=n(304),i=n(9693),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},8294:(e,t,n)=>{"use strict";var r=n(9956),i=n(446);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},1568:(e,t,n)=>{"use strict";var r=n(540),i=n(9956);e.exports=function(e){if("Function"===r(e))return i(e)}},9956:(e,t,n)=>{"use strict";var r=n(1300),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},8283:(e,t,n)=>{"use strict";var r=n(5623),i=n(7777);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},8311:(e,t,n)=>{"use strict";var r=n(7287),i=n(898),o=n(5137),a=n(7217),s=n(5935)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[r(e)]}},5645:(e,t,n)=>{"use strict";var r=n(6265),i=n(446),o=n(5155),a=n(4027),s=n(8311),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new l(a(e)+" is not iterable")}},898:(e,t,n)=>{"use strict";var r=n(446),i=n(5137);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},5090:(e,t,n)=>{"use strict";var r=n(9956),i=n(6569),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var h=n+e.length,p=r.length,g=c;return void 0!==d&&(d=i(d),g=u),s(f,g,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,h);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>p){var f=o(c/10);return 0===f?i:f<=p?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):i}u=r[c-1]}return void 0===u?"":u}))}},5623:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9693:(e,t,n)=>{"use strict";var r=n(9956),i=n(6569),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},7193:e=>{"use strict";e.exports={}},5441:(e,t,n)=>{"use strict";var r=n(8283);e.exports=r("document","documentElement")},5121:(e,t,n)=>{"use strict";var r=n(304),i=n(7475),o=n(2947);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1598:e=>{"use strict";var t=Array,n=Math.abs,r=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;e.exports={pack:function(e,s,l){var u,c,d,f=t(l),h=8*l-s-1,p=(1<<h)-1,g=p>>1,m=23===s?r(2,-24)-r(2,-77):0,v=e<0||0===e&&1/e<0?1:0,y=0;for((e=n(e))!==e||e===1/0?(c=e!==e?1:0,u=p):(u=i(o(e)/a),e*(d=r(2,-u))<1&&(u--,d*=2),(e+=u+g>=1?m/d:m*r(2,1-g))*d>=2&&(u++,d/=2),u+g>=p?(c=0,u=p):u+g>=1?(c=(e*d-1)*r(2,s),u+=g):(c=e*r(2,g-1)*r(2,s),u=0));s>=8;)f[y++]=255&c,c/=256,s-=8;for(u=u<<s|c,h+=s;h>0;)f[y++]=255&u,u/=256,h-=8;return f[--y]|=128*v,f},unpack:function(e,t){var n,i=e.length,o=8*i-t-1,a=(1<<o)-1,s=a>>1,l=o-7,u=i-1,c=e[u--],d=127&c;for(c>>=7;l>0;)d=256*d+e[u--],l-=8;for(n=d&(1<<-l)-1,d>>=-l,l+=t;l>0;)n=256*n+e[u--],l-=8;if(0===d)d=1-s;else{if(d===a)return n?NaN:c?-1/0:1/0;n+=r(2,t),d-=s}return(c?-1:1)*n*r(2,d-t)}}},4211:(e,t,n)=>{"use strict";var r=n(9956),i=n(7475),o=n(540),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},7427:(e,t,n)=>{"use strict";var r=n(7777),i=n(326),o=n(9923);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},8846:(e,t,n)=>{"use strict";var r=n(9956),i=n(7777),o=n(1833),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},4481:(e,t,n)=>{"use strict";var r,i,o,a=n(7650),s=n(5623),l=n(326),u=n(8719),c=n(9693),d=n(1833),f=n(2195),h=n(7193),p="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new g(p);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var y=f("state");h[y]=!0,r=function(e,t){if(c(e,y))throw new g(p);return t.facade=e,u(e,y,t),t},i=function(e){return c(e,y)?e[y]:{}},o=function(e){return c(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}}}},1533:(e,t,n)=>{"use strict";var r=n(5935),i=n(7217),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},2812:(e,t,n)=>{"use strict";var r=n(540);e.exports=Array.isArray||function(e){return"Array"===r(e)}},5651:(e,t,n)=>{"use strict";var r=n(7287);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},7777:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},5905:(e,t,n)=>{"use strict";var r=n(9956),i=n(7475),o=n(7777),a=n(7287),s=n(8283),l=n(8846),u=function(){},c=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),h=!d.test(u),p=function(e){if(!o(e))return!1;try{return c(u,[],e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,l(e))}catch(t){return!0}};g.sham=!0,e.exports=!c||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?g:p},8120:(e,t,n)=>{"use strict";var r=n(7475),i=n(7777),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===c||n!==u&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},2331:(e,t,n)=>{"use strict";var r=n(326),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},5137:e=>{"use strict";e.exports=function(e){return null===e||void 0===e}},326:(e,t,n)=>{"use strict";var r=n(7777);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},921:(e,t,n)=>{"use strict";var r=n(326);e.exports=function(e){return r(e)||null===e}},3863:e=>{"use strict";e.exports=!1},5289:(e,t,n)=>{"use strict";var r=n(8283),i=n(7777),o=n(8445),a=n(6164),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},9804:(e,t,n)=>{"use strict";var r=n(6265),i=n(5155),o=n(898);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return i(a),n}},2710:(e,t,n)=>{"use strict";var r=n(3757).IteratorPrototype,i=n(916),o=n(560),a=n(1347),s=n(7217),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},8020:(e,t,n)=>{"use strict";var r=n(4538),i=n(6265),o=n(3863),a=n(1890),s=n(7777),l=n(2710),u=n(9959),c=n(9923),d=n(1347),f=n(8719),h=n(8292),p=n(5935),g=n(7217),m=n(3757),v=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,x=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),C="keys",S="values",k="entries",_=function(){return this};e.exports=function(e,t,n,a,p,m,E){l(n,t,a);var P,j,O,R=function(e){if(e===p&&M)return M;if(!x&&e&&e in N)return N[e];switch(e){case C:case S:case k:return function(){return new n(this,e)}}return function(){return new n(this)}},A=t+" Iterator",T=!1,N=e.prototype,F=N[w]||N["@@iterator"]||p&&N[p],M=!x&&F||R(p),L="Array"===t&&N.entries||F;if(L&&(P=u(L.call(new e)))!==Object.prototype&&P.next&&(o||u(P)===b||(c?c(P,b):s(P[w])||h(P,w,_)),d(P,A,!0,!0),o&&(g[A]=_)),v&&p===S&&F&&F.name!==S&&(!o&&y?f(N,"name",S):(T=!0,M=function(){return i(F,this)})),p)if(j={values:R(S),keys:m?M:R(C),entries:R(k)},E)for(O in j)(x||T||!(O in N))&&h(N,O,j[O]);else r({target:t,proto:!0,forced:x||T},j);return o&&!E||N[w]===M||h(N,w,M,{name:p}),g[t]=M,j}},3757:(e,t,n)=>{"use strict";var r,i,o,a=n(7475),s=n(7777),l=n(326),u=n(916),c=n(9959),d=n(8292),f=n(5935),h=n(3863),p=f("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(r=i):g=!0),!l(r)||a((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=u(r)),s(r[p])||d(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},7217:e=>{"use strict";e.exports={}},5506:(e,t,n)=>{"use strict";var r=n(8098);e.exports=function(e){return r(e.length)}},6687:(e,t,n)=>{"use strict";var r=n(9956),i=n(7475),o=n(7777),a=n(9693),s=n(304),l=n(1890).CONFIGURABLE,u=n(8846),c=n(4481),d=c.enforce,f=c.get,h=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=e.exports=function(e,t,n){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return o(this)&&f(this).source||u(this)}),"toString")},7160:(e,t,n)=>{"use strict";var r=n(6274),i=Math.abs,o=2220446049250313e-31,a=1/o;e.exports=function(e,t,n,s){var l=+e,u=i(l),c=r(l);if(u<s)return c*function(e){return e+a-a}(u/s/t)*s*t;var d=(1+t/o)*u,f=d-(d-u);return f>n||f!==f?c*(1/0):c*f}},3493:(e,t,n)=>{"use strict";var r=n(7160);e.exports=Math.fround||function(e){return r(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},6274:e=>{"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!==t?t:t<0?-1:1}},8705:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},4087:(e,t,n)=>{"use strict";var r=n(446),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},9305:(e,t,n)=>{"use strict";var r=n(304),i=n(9956),o=n(6265),a=n(7475),s=n(700),l=n(9745),u=n(2393),c=n(6569),d=n(4211),f=Object.assign,h=Object.defineProperty,p=i([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||s(f({},t)).join("")!==i}))?function(e,t){for(var n=c(e),i=arguments.length,a=1,f=l.f,h=u.f;i>a;)for(var g,m=d(arguments[a++]),v=f?p(s(m),f(m)):s(m),y=v.length,b=0;y>b;)g=v[b++],r&&!o(h,m,g)||(n[g]=m[g]);return n}:f},916:(e,t,n)=>{"use strict";var r,i=n(5155),o=n(5677),a=n(9747),s=n(7193),l=n(5441),u=n(2947),c=n(2195),d="prototype",f="script",h=c("IE_PROTO"),p=function(){},g=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}v="undefined"!=typeof document?document.domain&&r?m(r):function(){var e,t=u("iframe"),n="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F}():m(r);for(var e=a.length;e--;)delete v[d][a[e]];return v()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=i(e),n=new p,p[d]=null,n[h]=e):n=v(),void 0===t?n:o.f(n,t)}},5677:(e,t,n)=>{"use strict";var r=n(304),i=n(2978),o=n(6405),a=n(5155),s=n(4681),l=n(700);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=l(t),u=i.length,c=0;u>c;)o.f(e,n=i[c++],r[n]);return e}},6405:(e,t,n)=>{"use strict";var r=n(304),i=n(5121),o=n(2978),a=n(5155),s=n(2429),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=c(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},2799:(e,t,n)=>{"use strict";var r=n(304),i=n(6265),o=n(2393),a=n(560),s=n(4681),l=n(2429),u=n(9693),c=n(5121),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(n){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},5919:(e,t,n)=>{"use strict";var r=n(3832),i=n(9747).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},9745:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},9959:(e,t,n)=>{"use strict";var r=n(9693),i=n(7777),o=n(6569),a=n(2195),s=n(3511),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},8445:(e,t,n)=>{"use strict";var r=n(9956);e.exports=r({}.isPrototypeOf)},3832:(e,t,n)=>{"use strict";var r=n(9956),i=n(9693),o=n(4681),a=n(4909).indexOf,s=n(7193),l=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);for(;t.length>u;)i(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},700:(e,t,n)=>{"use strict";var r=n(3832),i=n(9747);e.exports=Object.keys||function(e){return r(e,i)}},2393:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},9923:(e,t,n)=>{"use strict";var r=n(8294),i=n(326),o=n(930),a=n(7454);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return o(n),a(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},7370:(e,t,n)=>{"use strict";var r=n(6265),i=n(7777),o=n(326),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},9963:(e,t,n)=>{"use strict";var r=n(8283),i=n(9956),o=n(5919),a=n(9745),s=n(5155),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},8851:(e,t,n)=>{"use strict";var r=n(5623);e.exports=r},9754:(e,t,n)=>{"use strict";var r=n(5623);e.exports=r.Promise},5706:(e,t,n)=>{"use strict";var r=n(5155),i=n(326),o=n(4087);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},2814:(e,t,n)=>{"use strict";var r=n(6265),i=n(5155),o=n(7777),a=n(540),s=n(495),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=r(n,e,t);return null!==u&&i(u),u}if("RegExp"===a(e))return r(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},495:(e,t,n)=>{"use strict";var r=n(6265),i=n(9956),o=n(5827),a=n(1759),s=n(2601),l=n(2125),u=n(916),c=n(4481).get,d=n(7423),f=n(3898),h=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,m=i("".charAt),v=i("".indexOf),y=i("".replace),b=i("".slice),x=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=s.BROKEN_CARET,C=void 0!==/()??/.exec("")[1];(x||C||w||d||f)&&(g=function(e){var t,n,i,s,l,d,f,S=this,k=c(S),_=o(e),E=k.raw;if(E)return E.lastIndex=S.lastIndex,t=r(g,E,_),S.lastIndex=E.lastIndex,t;var P=k.groups,j=w&&S.sticky,O=r(a,S),R=S.source,A=0,T=_;if(j&&(O=y(O,"y",""),-1===v(O,"g")&&(O+="g"),T=b(_,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==m(_,S.lastIndex-1))&&(R="(?: "+R+")",T=" "+T,A++),n=new RegExp("^(?:"+R+")",O)),C&&(n=new RegExp("^"+R+"$(?!\\s)",O)),x&&(i=S.lastIndex),s=r(p,j?n:S,T),j?s?(s.input=b(s.input,A),s[0]=b(s[0],A),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:x&&s&&(S.lastIndex=S.global?s.index+s[0].length:i),C&&s&&s.length>1&&r(h,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&P)for(s.groups=d=u(null),l=0;l<P.length;l++)d[(f=P[l])[0]]=s[f[1]];return s}),e.exports=g},1759:(e,t,n)=>{"use strict";var r=n(5155);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},2601:(e,t,n)=>{"use strict";var r=n(7475),i=n(5623).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},7423:(e,t,n)=>{"use strict";var r=n(7475),i=n(5623).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},3898:(e,t,n)=>{"use strict";var r=n(7475),i=n(5623).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},930:(e,t,n)=>{"use strict";var r=n(5137),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},2750:(e,t,n)=>{"use strict";var r=n(5623),i=n(304),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},8212:(e,t,n)=>{"use strict";var r=n(5623),i=n(9413),o=n(7777),a=n(6087),s=n(2140),l=n(8604),u=n(4576),c=r.Function,d=/MSIE .\./.test(s)||a&&function(){var e=r.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,a){var s=u(arguments.length,1)>n,d=o(r)?r:c(r),f=s?l(arguments,n):[],h=s?function(){i(d,this,f)}:d;return t?e(h,a):e(h)}:e}},5469:(e,t,n)=>{"use strict";var r=n(8283),i=n(9766),o=n(5935),a=n(304),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},1347:(e,t,n)=>{"use strict";var r=n(6405).f,i=n(9693),o=n(5935)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},2195:(e,t,n)=>{"use strict";var r=n(2125),i=n(9220),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},1833:(e,t,n)=>{"use strict";var r=n(3863),i=n(5623),o=n(3189),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},2125:(e,t,n)=>{"use strict";var r=n(1833);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},8913:(e,t,n)=>{"use strict";var r=n(5155),i=n(6376),o=n(5137),a=n(5935)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},2915:(e,t,n)=>{"use strict";var r=n(9956),i=n(2687),o=n(5827),a=n(930),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,d=o(a(t)),f=i(n),h=d.length;return f<0||f>=h?e?"":void 0:(r=l(d,f))<55296||r>56319||f+1===h||(c=l(d,f+1))<56320||c>57343?e?s(d,f):r:e?u(d,f,f+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},8505:(e,t,n)=>{"use strict";var r=n(9956),i=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,u=r(a.exec),c=Math.floor,d=String.fromCharCode,f=r("".charCodeAt),h=r([].join),p=r([].push),g=r("".replace),m=r("".split),v=r("".toLowerCase),y=function(e){return e+22+75*(e<26)},b=function(e,t,n){var r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),r+=36;return c(r+36*e/(e+38))},x=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=f(e,n++);if(i>=55296&&i<=56319&&n<r){var o=f(e,n++);56320===(64512&o)?p(t,((1023&i)<<10)+(1023&o)+65536):(p(t,i),n--)}else p(t,i)}return t}(e);var n,r,o=e.length,a=128,u=0,g=72;for(n=0;n<e.length;n++)(r=e[n])<128&&p(t,d(r));var m=t.length,v=m;for(m&&p(t,"-");v<o;){var x=i;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<x&&(x=r);var w=v+1;if(x-a>c((i-u)/w))throw new l(s);for(u+=(x-a)*w,a=x,n=0;n<e.length;n++){if((r=e[n])<a&&++u>i)throw new l(s);if(r===a){for(var C=u,S=36;;){var k=S<=g?1:S>=g+26?26:S-g;if(C<k)break;var _=C-k,E=36-k;p(t,d(y(k+_%E))),C=c(_/E),S+=36}p(t,d(y(C))),g=b(u,w,v===m),u=0,v++}}u++,a++}return h(t,"")};e.exports=function(e){var t,n,r=[],i=m(g(v(e),a,"."),".");for(t=0;t<i.length;t++)n=i[t],p(r,u(o,n)?"xn--"+x(n):n);return h(r,".")}},6987:(e,t,n)=>{"use strict";var r=n(1104),i=n(7475),o=n(5623).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},5517:(e,t,n)=>{"use strict";var r,i,o,a,s=n(5623),l=n(9413),u=n(7708),c=n(7777),d=n(9693),f=n(7475),h=n(5441),p=n(8604),g=n(2947),m=n(4576),v=n(9915),y=n(6548),b=s.setImmediate,x=s.clearImmediate,w=s.process,C=s.Dispatch,S=s.Function,k=s.MessageChannel,_=s.String,E=0,P={},j="onreadystatechange";f((function(){r=s.location}));var O=function(e){if(d(P,e)){var t=P[e];delete P[e],t()}},R=function(e){return function(){O(e)}},A=function(e){O(e.data)},T=function(e){s.postMessage(_(e),r.protocol+"//"+r.host)};b&&x||(b=function(e){m(arguments.length,1);var t=c(e)?e:S(e),n=p(arguments,1);return P[++E]=function(){l(t,void 0,n)},i(E),E},x=function(e){delete P[e]},y?i=function(e){w.nextTick(R(e))}:C&&C.now?i=function(e){C.now(R(e))}:k&&!v?(a=(o=new k).port2,o.port1.onmessage=A,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(T)?(i=T,s.addEventListener("message",A,!1)):i=j in g("script")?function(e){h.appendChild(g("script"))[j]=function(){h.removeChild(this),O(e)}}:function(e){setTimeout(R(e),0)}),e.exports={set:b,clear:x}},5934:(e,t,n)=>{"use strict";var r=n(2687),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},9218:(e,t,n)=>{"use strict";var r=n(173),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},8316:(e,t,n)=>{"use strict";var r=n(2687),i=n(8098),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new o("Wrong length or index");return n}},4681:(e,t,n)=>{"use strict";var r=n(4211),i=n(930);e.exports=function(e){return r(i(e))}},2687:(e,t,n)=>{"use strict";var r=n(8705);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},8098:(e,t,n)=>{"use strict";var r=n(2687),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},6569:(e,t,n)=>{"use strict";var r=n(930),i=Object;e.exports=function(e){return i(r(e))}},3161:(e,t,n)=>{"use strict";var r=n(4882),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},4882:(e,t,n)=>{"use strict";var r=n(2687),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},173:(e,t,n)=>{"use strict";var r=n(6265),i=n(326),o=n(5289),a=n(898),s=n(7370),l=n(5935),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},2429:(e,t,n)=>{"use strict";var r=n(173),i=n(5289);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},5416:(e,t,n)=>{"use strict";var r={};r[n(5935)("toStringTag")]="z",e.exports="[object z]"===String(r)},5827:(e,t,n)=>{"use strict";var r=n(7287),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},9443:e=>{"use strict";var t=Math.round;e.exports=function(e){var n=t(e);return n<0?0:n>255?255:255&n}},4027:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},1595:(e,t,n)=>{"use strict";var r=n(4538),i=n(5623),o=n(6265),a=n(304),s=n(1193),l=n(7360),u=n(3166),c=n(6971),d=n(560),f=n(8719),h=n(2331),p=n(8098),g=n(8316),m=n(3161),v=n(9443),y=n(2429),b=n(9693),x=n(7287),w=n(326),C=n(5289),S=n(916),k=n(8445),_=n(9923),E=n(5919).f,P=n(8143),j=n(4865).forEach,O=n(5469),R=n(9766),A=n(6405),T=n(2799),N=n(6230),F=n(4481),M=n(7427),L=F.get,I=F.set,D=F.enforce,z=A.f,B=T.f,U=i.RangeError,V=u.ArrayBuffer,H=V.prototype,W=u.DataView,G=l.NATIVE_ARRAY_BUFFER_VIEWS,q=l.TYPED_ARRAY_TAG,K=l.TypedArray,X=l.TypedArrayPrototype,Z=l.isTypedArray,Y="BYTES_PER_ELEMENT",Q="Wrong length",$=function(e,t){R(e,t,{configurable:!0,get:function(){return L(this)[t]}})},J=function(e){var t;return k(H,e)||"ArrayBuffer"===(t=x(e))||"SharedArrayBuffer"===t},ee=function(e,t){return Z(e)&&!C(t)&&t in e&&h(+t)&&t>=0},te=function(e,t){return t=y(t),ee(e,t)?d(2,e[t]):B(e,t)},ne=function(e,t,n){return t=y(t),!(ee(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?z(e,t,n):(e[t]=n.value,e)};a?(G||(T.f=te,A.f=ne,$(X,"buffer"),$(X,"byteOffset"),$(X,"byteLength"),$(X,"length")),r({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,d="set"+e,h=i[l],y=h,b=y&&y.prototype,x={},C=function(e,t){z(e,t,{get:function(){return function(e,t){var n=L(e);return n.view[u](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=L(e);i.view[d](t*a+i.byteOffset,n?v(r):r,!0)}(this,t,e)},enumerable:!0})};G?s&&(y=t((function(e,t,n,r){return c(e,b),M(w(t)?J(t)?void 0!==r?new h(t,m(n,a),r):void 0!==n?new h(t,m(n,a)):new h(t):Z(t)?N(y,t):o(P,y,t):new h(g(t)),e,y)})),_&&_(y,K),j(E(h),(function(e){e in y||f(y,e,h[e])})),y.prototype=b):(y=t((function(e,t,n,r){c(e,b);var i,s,l,u=0,d=0;if(w(t)){if(!J(t))return Z(t)?N(y,t):o(P,y,t);i=t,d=m(n,a);var f=t.byteLength;if(void 0===r){if(f%a)throw new U(Q);if((s=f-d)<0)throw new U(Q)}else if((s=p(r)*a)+d>f)throw new U(Q);l=s/a}else l=g(t),i=new V(s=l*a);for(I(e,{buffer:i,byteOffset:d,byteLength:s,length:l,view:new W(i)});u<l;)C(e,u++)})),_&&_(y,K),b=y.prototype=S(X)),b.constructor!==y&&f(b,"constructor",y),D(b).TypedArrayConstructor=y,q&&f(b,q,l);var k=y!==h;x[l]=y,r({global:!0,constructor:!0,forced:k,sham:!G},x),Y in y||f(y,Y,a),Y in b||f(b,Y,a),O(l)}):e.exports=function(){}},1193:(e,t,n)=>{"use strict";var r=n(5623),i=n(7475),o=n(728),a=n(7360).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!a||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||i((function(){return 1!==new l(new s(2),1,void 0).length}))},8143:(e,t,n)=>{"use strict";var r=n(7708),i=n(6265),o=n(6376),a=n(6569),s=n(5506),l=n(5645),u=n(8311),c=n(1533),d=n(5651),f=n(7360).aTypedArrayConstructor,h=n(9218);e.exports=function(e){var t,n,p,g,m,v,y,b,x=o(this),w=a(e),C=arguments.length,S=C>1?arguments[1]:void 0,k=void 0!==S,_=u(w);if(_&&!c(_))for(b=(y=l(w,_)).next,w=[];!(v=i(b,y)).done;)w.push(v.value);for(k&&C>2&&(S=r(S,arguments[2])),n=s(w),p=new(f(x))(n),g=d(p),t=0;n>t;t++)m=k?S(w[t],t):w[t],p[t]=g?h(m):+m;return p}},9220:(e,t,n)=>{"use strict";var r=n(9956),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},9972:(e,t,n)=>{"use strict";var r=n(7475),i=n(5935),o=n(304),a=n(3863),s=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},6164:(e,t,n)=>{"use strict";var r=n(6987);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2978:(e,t,n)=>{"use strict";var r=n(304),i=n(7475);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4576:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},7650:(e,t,n)=>{"use strict";var r=n(5623),i=n(7777),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},6835:(e,t,n)=>{"use strict";var r=n(8851),i=n(9693),o=n(3595),a=n(6405).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},3595:(e,t,n)=>{"use strict";var r=n(5935);t.f=r},5935:(e,t,n)=>{"use strict";var r=n(5623),i=n(2125),o=n(9693),a=n(9220),s=n(6987),l=n(6164),u=r.Symbol,c=i("wks"),d=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(c[e]=s&&o(u,e)?u[e]:d("Symbol."+e)),c[e]}},7956:(e,t,n)=>{"use strict";var r=n(4681),i=n(9385),o=n(7217),a=n(4481),s=n(6405).f,l=n(8020),u=n(2381),c=n(3863),d=n(304),f="Array Iterator",h=a.set,p=a.getterFor(f);e.exports=l(Array,"Array",(function(e,t){h(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var g=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&d&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(m){}},9913:(e,t,n)=>{"use strict";n(9385)("flatMap")},5238:(e,t,n)=>{"use strict";n(9385)("flat")},6067:(e,t,n)=>{"use strict";var r=n(4538),i=n(3863),o=n(9754),a=n(7475),s=n(8283),l=n(7777),u=n(8913),c=n(5706),d=n(8292),f=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!i&&l(o)){var h=s("Promise").prototype.finally;f.finally!==h&&d(f,"finally",h,{unsafe:!0})}},7675:(e,t,n)=>{"use strict";var r=n(4538),i=n(495);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},8187:(e,t,n)=>{"use strict";var r=n(5623),i=n(304),o=n(9766),a=n(1759),s=n(7475),l=r.RegExp,u=l.prototype;i&&s((function(){var e=!0;try{l(".","d")}catch(s){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==r||n!==r}))&&o(u,"flags",{configurable:!0,get:a})},1192:(e,t,n)=>{"use strict";var r=n(2915).charAt,i=n(5827),o=n(4481),a=n(8020),s=n(2381),l="String Iterator",u=o.set,c=o.getterFor(l);a(String,"String",(function(e){u(this,{type:l,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},7575:(e,t,n)=>{"use strict";var r=n(9413),i=n(6265),o=n(9956),a=n(7056),s=n(7475),l=n(5155),u=n(7777),c=n(5137),d=n(2687),f=n(8098),h=n(5827),p=n(930),g=n(1249),m=n(898),v=n(5090),y=n(2814),b=n(5935)("replace"),x=Math.max,w=Math.min,C=o([].concat),S=o([].push),k=o("".indexOf),_=o("".slice),E="$0"==="a".replace(/./,"$0"),P=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,n){var o=P?"$":"$0";return[function(e,n){var r=p(this),o=c(e)?void 0:m(e,b);return o?i(o,e,r,n):i(t,h(r),e,n)},function(e,i){var a=l(this),s=h(e);if("string"==typeof i&&-1===k(i,o)&&-1===k(i,"$<")){var c=n(t,a,s,i);if(c.done)return c.value}var p=u(i);p||(i=h(i));var m,b=a.global;b&&(m=a.unicode,a.lastIndex=0);for(var E,P=[];null!==(E=y(a,s))&&(S(P,E),b);){""===h(E[0])&&(a.lastIndex=g(s,f(a.lastIndex),m))}for(var j,O="",R=0,A=0;A<P.length;A++){for(var T,N=h((E=P[A])[0]),F=x(w(d(E.index),s.length),0),M=[],L=1;L<E.length;L++)S(M,void 0===(j=E[L])?j:String(j));var I=E.groups;if(p){var D=C([N],M,F,s);void 0!==I&&S(D,I),T=h(r(i,void 0,D))}else T=v(N,s,F,M,I,i);F>=R&&(O+=_(s,R,F)+T,R=F+N.length)}return O+_(s,R)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!E||P)},7296:(e,t,n)=>{"use strict";var r=n(7360),i=n(369),o=n(9218),a=n(7287),s=n(6265),l=n(9956),u=n(7475),c=r.aTypedArray,d=r.exportTypedArrayMethod,f=l("".slice);d("fill",(function(e){var t=arguments.length;c(this);var n="Big"===f(a(this),0,3)?o(e):+e;return s(i,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},1958:(e,t,n)=>{"use strict";n(1595)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},5533:(e,t,n)=>{"use strict";n(1595)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},149:(e,t,n)=>{"use strict";var r=n(1193);(0,n(7360).exportTypedArrayStaticMethod)("from",n(8143),r)},6468:(e,t,n)=>{"use strict";n(1595)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},6505:(e,t,n)=>{"use strict";n(1595)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},3726:(e,t,n)=>{"use strict";n(1595)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},9708:(e,t,n)=>{"use strict";var r=n(7360),i=n(1193),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n}),i)},7817:(e,t,n)=>{"use strict";var r=n(5623),i=n(6265),o=n(7360),a=n(5506),s=n(3161),l=n(6569),u=n(7475),c=r.RangeError,d=r.Int8Array,f=d&&d.prototype,h=f&&f.set,p=o.aTypedArray,g=o.exportTypedArrayMethod,m=!u((function(){var e=new Uint8ClampedArray(2);return i(h,e,{length:1,0:3},1),3!==e[1]})),v=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(m)return i(h,this,n,t);var r=this.length,o=a(n),u=0;if(o+t>r)throw new c("Wrong length");for(;u<o;)this[t+u]=n[u++]}),!m||v)},8409:(e,t,n)=>{"use strict";var r=n(5623),i=n(1568),o=n(7475),a=n(446),s=n(5244),l=n(7360),u=n(9678),c=n(3590),d=n(1104),f=n(4988),h=l.aTypedArray,p=l.exportTypedArrayMethod,g=r.Uint16Array,m=g&&i(g.prototype.sort),v=!!m&&!(o((function(){m(new g(2),null)}))&&o((function(){m(new g(2),{})}))),y=!!m&&!o((function(){if(d)return d<74;if(u)return u<67;if(c)return!0;if(f)return f<602;var e,t,n=new g(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));p("sort",(function(e){return void 0!==e&&a(e),y?m(this,e):s(h(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!y||v)},310:(e,t,n)=>{"use strict";n(1595)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},480:(e,t,n)=>{"use strict";n(1595)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1613:(e,t,n)=>{"use strict";n(1595)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1498:(e,t,n)=>{"use strict";n(1595)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},2679:(e,t,n)=>{"use strict";var r=n(5623),i=n(6835),o=n(6405).f,a=n(2799).f,s=r.Symbol;if(i("dispose"),s){var l=a(s,"dispose");l.enumerable&&l.configurable&&l.writable&&o(s,"dispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},7005:(e,t,n)=>{"use strict";n(6835)("observable")},1716:(e,t,n)=>{"use strict";n(6835)("patternMatch")},7964:(e,t,n)=>{"use strict";var r=n(4538),i=n(5623),o=n(5517).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},4837:(e,t,n)=>{"use strict";var r=n(5623),i=n(8300),o=n(4052),a=n(7956),s=n(8719),l=n(1347),u=n(5935)("iterator"),c=a.values,d=function(e,t){if(e){if(e[u]!==c)try{s(e,u,c)}catch(r){e[u]=c}if(l(e,t,!0),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(r){e[n]=a[n]}}};for(var f in i)d(r[f]&&r[f].prototype,f);d(o,"DOMTokenList")},2684:(e,t,n)=>{"use strict";n(7964),n(1897)},1897:(e,t,n)=>{"use strict";var r=n(4538),i=n(5623),o=n(5517).set,a=n(8212),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},1170:(e,t,n)=>{"use strict";n(7956);var r=n(4538),i=n(5623),o=n(2750),a=n(6265),s=n(9956),l=n(304),u=n(9972),c=n(8292),d=n(9766),f=n(2939),h=n(1347),p=n(2710),g=n(4481),m=n(6971),v=n(7777),y=n(9693),b=n(7708),x=n(7287),w=n(5155),C=n(326),S=n(5827),k=n(916),_=n(560),E=n(5645),P=n(8311),j=n(2381),O=n(4576),R=n(5935),A=n(5244),T=R("iterator"),N="URLSearchParams",F=N+"Iterator",M=g.set,L=g.getterFor(N),I=g.getterFor(F),D=o("fetch"),z=o("Request"),B=o("Headers"),U=z&&z.prototype,V=B&&B.prototype,H=i.RegExp,W=i.TypeError,G=i.decodeURIComponent,q=i.encodeURIComponent,K=s("".charAt),X=s([].join),Z=s([].push),Y=s("".replace),Q=s([].shift),$=s([].splice),J=s("".split),ee=s("".slice),te=/\+/g,ne=Array(4),re=function(e){return ne[e-1]||(ne[e-1]=H("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return G(e)}catch(t){return e}},oe=function(e){var t=Y(e,te," "),n=4;try{return G(t)}catch(r){for(;n;)t=Y(t,re(n--),ie);return t}},ae=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return se[e]},ue=function(e){return Y(q(e),ae,le)},ce=p((function(e,t){M(this,{type:F,target:L(e).entries,index:0,kind:t})}),N,(function(){var e=I(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,j(void 0,!0);var r=t[n];switch(e.kind){case"keys":return j(r.key,!1);case"values":return j(r.value,!1)}return j([r.key,r.value],!1)}),!0),de=function(e){this.entries=[],this.url=null,void 0!==e&&(C(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?ee(e,1):e:S(e)))};de.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,s,l,u=this.entries,c=P(e);if(c)for(n=(t=E(e,c)).next;!(r=a(n,t)).done;){if(o=(i=E(w(r.value))).next,(s=a(o,i)).done||(l=a(o,i)).done||!a(o,i).done)throw new W("Expected sequence with length 2");Z(u,{key:S(s.value),value:S(l.value)})}else for(var d in e)y(e,d)&&Z(u,{key:d,value:S(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=J(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=J(t,"="),Z(r,{key:oe(Q(n)),value:oe(X(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Z(n,ue(e.key)+"="+ue(e.value));return X(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){m(this,he);var e=M(this,new de(arguments.length>0?arguments[0]:void 0));l||(this.size=e.entries.length)},he=fe.prototype;if(f(he,{append:function(e,t){var n=L(this);O(arguments.length,2),Z(n.entries,{key:S(e),value:S(t)}),l||this.length++,n.updateURL()},delete:function(e){for(var t=L(this),n=O(arguments.length,1),r=t.entries,i=S(e),o=n<2?void 0:arguments[1],a=void 0===o?o:S(o),s=0;s<r.length;){var u=r[s];if(u.key!==i||void 0!==a&&u.value!==a)s++;else if($(r,s,1),void 0!==a)break}l||(this.size=r.length),t.updateURL()},get:function(e){var t=L(this).entries;O(arguments.length,1);for(var n=S(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=L(this).entries;O(arguments.length,1);for(var n=S(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Z(r,t[i].value);return r},has:function(e){for(var t=L(this).entries,n=O(arguments.length,1),r=S(e),i=n<2?void 0:arguments[1],o=void 0===i?i:S(i),a=0;a<t.length;){var s=t[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=L(this);O(arguments.length,1);for(var r,i=n.entries,o=!1,a=S(e),s=S(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?$(i,u--,1):(o=!0,r.value=s));o||Z(i,{key:a,value:s}),l||(this.size=i.length),n.updateURL()},sort:function(){var e=L(this);A(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=L(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),c(he,T,he.entries,{name:"entries"}),c(he,"toString",(function(){return L(this).serialize()}),{enumerable:!0}),l&&d(he,"size",{get:function(){return L(this).entries.length},configurable:!0,enumerable:!0}),h(fe,N),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:fe}),!u&&v(B)){var pe=s(V.has),ge=s(V.set),me=function(e){if(C(e)){var t,n=e.body;if(x(n)===N)return t=e.headers?new B(e.headers):new B,pe(t,"content-type")||ge(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:_(0,S(n)),headers:_(0,t)})}return e};if(v(D)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?me(arguments[1]):{})}}),v(z)){var ve=function(e){return m(this,U),new z(e,arguments.length>1?me(arguments[1]):{})};U.constructor=ve,ve.prototype=U,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:fe,getState:L}},6028:(e,t,n)=>{"use strict";n(1170)},9610:(e,t,n)=>{"use strict";n(1192);var r,i=n(4538),o=n(304),a=n(9972),s=n(5623),l=n(7708),u=n(9956),c=n(8292),d=n(9766),f=n(6971),h=n(9693),p=n(9305),g=n(6632),m=n(8604),v=n(2915).codeAt,y=n(8505),b=n(5827),x=n(1347),w=n(4576),C=n(1170),S=n(4481),k=S.set,_=S.getterFor("URL"),E=C.URLSearchParams,P=C.getState,j=s.URL,O=s.TypeError,R=s.parseInt,A=Math.floor,T=Math.pow,N=u("".charAt),F=u(/./.exec),M=u([].join),L=u(1..toString),I=u([].pop),D=u([].push),z=u("".replace),B=u([].shift),U=u("".split),V=u("".slice),H=u("".toLowerCase),W=u([].unshift),G="Invalid scheme",q="Invalid host",K="Invalid port",X=/[a-z]/i,Z=/[\d+-.a-z]/i,Y=/\d/,Q=/^0x/i,$=/^[0-7]+$/,J=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,oe=/[\t\n\r]/g,ae=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)W(t,e%256),e=A(e/256);return M(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=L(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},le=p({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=p({},le,{"#":1,"?":1,"{":1,"}":1}),ce=p({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),de=function(e,t){var n=v(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},he=function(e,t){var n;return 2===e.length&&F(X,N(e,0))&&(":"===(n=N(e,1))||!t&&"|"===n)},pe=function(e){var t;return e.length>1&&he(V(e,0,2))&&(2===e.length||"/"===(t=N(e,2))||"\\"===t||"?"===t||"#"===t)},ge=function(e){return"."===e||"%2e"===H(e)},me={},ve={},ye={},be={},xe={},we={},Ce={},Se={},ke={},_e={},Ee={},Pe={},je={},Oe={},Re={},Ae={},Te={},Ne={},Fe={},Me={},Le={},Ie=function(e,t,n){var r,i,o,a=b(e);if(t){if(i=this.parse(a))throw new O(i);this.searchParams=null}else{if(void 0!==n&&(r=new Ie(n,!0)),i=this.parse(a,null,r))throw new O(i);(o=P(new E)).bindURL(this),this.searchParams=o}};Ie.prototype={type:"URL",parse:function(e,t,n){var i,o,a,s,l,u=this,c=t||me,d=0,f="",p=!1,v=!1,y=!1;for(e=b(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=z(e,re,""),e=z(e,ie,"$1")),e=z(e,oe,""),i=g(e);d<=i.length;){switch(o=i[d],c){case me:if(!o||!F(X,o)){if(t)return G;c=ye;continue}f+=H(o),c=ve;break;case ve:if(o&&(F(Z,o)||"+"===o||"-"===o||"."===o))f+=H(o);else{if(":"!==o){if(t)return G;f="",c=ye,d=0;continue}if(t&&(u.isSpecial()!==h(fe,f)||"file"===f&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&fe[u.scheme]===u.port&&(u.port=null));f="","file"===u.scheme?c=Oe:u.isSpecial()&&n&&n.scheme===u.scheme?c=be:u.isSpecial()?c=Se:"/"===i[d+1]?(c=xe,d++):(u.cannotBeABaseURL=!0,D(u.path,""),c=Fe)}break;case ye:if(!n||n.cannotBeABaseURL&&"#"!==o)return G;if(n.cannotBeABaseURL&&"#"===o){u.scheme=n.scheme,u.path=m(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=Le;break}c="file"===n.scheme?Oe:we;continue;case be:if("/"!==o||"/"!==i[d+1]){c=we;continue}c=ke,d++;break;case xe:if("/"===o){c=_e;break}c=Ne;continue;case we:if(u.scheme=n.scheme,o===r)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query=n.query;else if("/"===o||"\\"===o&&u.isSpecial())c=Ce;else if("?"===o)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query="",c=Me;else{if("#"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.path.length--,c=Ne;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=m(n.path),u.query=n.query,u.fragment="",c=Le}break;case Ce:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=Ne;continue}c=_e}else c=ke;break;case Se:if(c=ke,"/"!==o||"/"!==N(f,d+1))continue;d++;break;case ke:if("/"!==o&&"\\"!==o){c=_e;continue}break;case _e:if("@"===o){p&&(f="%40"+f),p=!0,a=g(f);for(var x=0;x<a.length;x++){var w=a[x];if(":"!==w||y){var C=de(w,ce);y?u.password+=C:u.username+=C}else y=!0}f=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(p&&""===f)return"Invalid authority";d-=g(f).length+1,f="",c=Ee}else f+=o;break;case Ee:case Pe:if(t&&"file"===u.scheme){c=Ae;continue}if(":"!==o||v){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===f)return q;if(t&&""===f&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(f))return s;if(f="",c=Te,t)return;continue}"["===o?v=!0:"]"===o&&(v=!1),f+=o}else{if(""===f)return q;if(s=u.parseHost(f))return s;if(f="",c=je,t===Pe)return}break;case je:if(!F(Y,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||t){if(""!==f){var S=R(f,10);if(S>65535)return K;u.port=u.isSpecial()&&S===fe[u.scheme]?null:S,f=""}if(t)return;c=Te;continue}return K}f+=o;break;case Oe:if(u.scheme="file","/"===o||"\\"===o)c=Re;else{if(!n||"file"!==n.scheme){c=Ne;continue}switch(o){case r:u.host=n.host,u.path=m(n.path),u.query=n.query;break;case"?":u.host=n.host,u.path=m(n.path),u.query="",c=Me;break;case"#":u.host=n.host,u.path=m(n.path),u.query=n.query,u.fragment="",c=Le;break;default:pe(M(m(i,d),""))||(u.host=n.host,u.path=m(n.path),u.shortenPath()),c=Ne;continue}}break;case Re:if("/"===o||"\\"===o){c=Ae;break}n&&"file"===n.scheme&&!pe(M(m(i,d),""))&&(he(n.path[0],!0)?D(u.path,n.path[0]):u.host=n.host),c=Ne;continue;case Ae:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&he(f))c=Ne;else if(""===f){if(u.host="",t)return;c=Te}else{if(s=u.parseHost(f))return s;if("localhost"===u.host&&(u.host=""),t)return;f="",c=Te}continue}f+=o;break;case Te:if(u.isSpecial()){if(c=Ne,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(c=Ne,"/"!==o))continue}else u.fragment="",c=Le;else u.query="",c=Me;break;case Ne:if(o===r||"/"===o||"\\"===o&&u.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(l=H(l=f))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||D(u.path,"")):ge(f)?"/"===o||"\\"===o&&u.isSpecial()||D(u.path,""):("file"===u.scheme&&!u.path.length&&he(f)&&(u.host&&(u.host=""),f=N(f,0)+":"),D(u.path,f)),f="","file"===u.scheme&&(o===r||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)B(u.path);"?"===o?(u.query="",c=Me):"#"===o&&(u.fragment="",c=Le)}else f+=de(o,ue);break;case Fe:"?"===o?(u.query="",c=Me):"#"===o?(u.fragment="",c=Le):o!==r&&(u.path[0]+=de(o,se));break;case Me:t||"#"!==o?o!==r&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":de(o,se)):(u.fragment="",c=Le);break;case Le:o!==r&&(u.fragment+=de(o,le))}d++}},parseHost:function(e){var t,n,r;if("["===N(e,0)){if("]"!==N(e,e.length-1))return q;if(t=function(e){var t,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,f=function(){return N(e,d)};if(":"===f()){if(":"!==N(e,1))return;d+=2,c=++u}for(;f();){if(8===u)return;if(":"!==f()){for(t=n=0;n<4&&F(ee,f());)t=16*t+R(f(),16),d++,n++;if("."===f()){if(0===n)return;if(d-=n,u>6)return;for(r=0;f();){if(i=null,r>0){if(!("."===f()&&r<4))return;d++}if(!F(Y,f()))return;for(;F(Y,f());){if(o=R(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}l[u]=256*l[u]+i,2!==++r&&4!==r||u++}if(4!==r)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;l[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(a=u-c,u=7;0!==u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!==u)return;return l}(V(e,1,-1)),!t)return q;this.host=t}else if(this.isSpecial()){if(e=y(e),F(te,e))return q;if(t=function(e){var t,n,r,i,o,a,s,l=U(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(i=l[r]))return e;if(o=10,i.length>1&&"0"===N(i,0)&&(o=F(Q,i)?16:8,i=V(i,8===o?1:2)),""===i)a=0;else{if(!F(10===o?J:8===o?$:ee,i))return e;a=R(i,o)}D(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=T(256,5-t))return null}else if(a>255)return null;for(s=I(n),r=0;r<n.length;r++)s+=n[r]*T(256,3-r);return s}(e),null===t)return q;this.host=t}else{if(F(ne,e))return q;for(t="",n=g(e),r=0;r<n.length;r++)t+=de(n[r],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(fe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&he(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=ae(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+M(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw new O(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new De(e.path[0]).origin}catch(n){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ae(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",me)},getUsername:function(){return this.username},setUsername:function(e){var t=g(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=de(t[n],ce)}},getPassword:function(){return this.password},setPassword:function(e){var t=g(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=de(t[n],ce)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ae(e):ae(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ee)},getHostname:function(){var e=this.host;return null===e?"":ae(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Pe)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=b(e))?this.port=null:this.parse(e,je))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+M(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Te))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=b(e))?this.query=null:("?"===N(e,0)&&(e=V(e,1)),this.query="",this.parse(e,Me)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=b(e))?("#"===N(e,0)&&(e=V(e,1)),this.fragment="",this.parse(e,Le)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var De=function(e){var t=f(this,ze),n=w(arguments.length,1)>1?arguments[1]:void 0,r=k(t,new Ie(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},ze=De.prototype,Be=function(e,t){return{get:function(){return _(this)[e]()},set:t&&function(e){return _(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(ze,"href",Be("serialize","setHref")),d(ze,"origin",Be("getOrigin")),d(ze,"protocol",Be("getProtocol","setProtocol")),d(ze,"username",Be("getUsername","setUsername")),d(ze,"password",Be("getPassword","setPassword")),d(ze,"host",Be("getHost","setHost")),d(ze,"hostname",Be("getHostname","setHostname")),d(ze,"port",Be("getPort","setPort")),d(ze,"pathname",Be("getPathname","setPathname")),d(ze,"search",Be("getSearch","setSearch")),d(ze,"searchParams",Be("getSearchParams")),d(ze,"hash",Be("getHash","setHash"))),c(ze,"toJSON",(function(){return _(this).serialize()}),{enumerable:!0}),c(ze,"toString",(function(){return _(this).serialize()}),{enumerable:!0}),j){var Ue=j.createObjectURL,Ve=j.revokeObjectURL;Ue&&c(De,"createObjectURL",l(Ue,j)),Ve&&c(De,"revokeObjectURL",l(Ve,j))}x(De,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:De})},5332:(e,t,n)=>{"use strict";n(9610)},8764:(e,t,n)=>{"use strict";var r=n(4538),i=n(6265);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},6284:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},2474:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},5152:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},414:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1369);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.A)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4586:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1369);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},9575:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},9140:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1087);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},9850:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7502);function i(e,t){if(null==e)return{};var n,i,o=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},7502:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},1087:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},2061:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7985);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||(0,r.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},4619:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6284);var i=n(7985);function o(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.A)(e)||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.")}()}},1369:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7545);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},7545:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},7985:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6284);function i(e,t){if(e){if("string"===typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},8983:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{"use strict";n(9686),n(1809);var e=n(3620),t=n(810),r=n(652),i=t,o=Symbol.for("react-redux-context"),a="undefined"!==typeof globalThis?globalThis:{};function s(){var e;if(!i.createContext)return{};const t=null!==(e=a[o])&&void 0!==e?e:a[o]=new Map;let n=t.get(i.createContext);return n||(n=i.createContext(null),t.set(i.createContext,n)),n}var l=s(),u=()=>{throw new Error("uSES not initialized!")};function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return function(){return i.useContext(e)}}var d=c(),f=u,h=(e,t)=>e===t;function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;const t=e===l?d:c(e),n=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:r=h,devModeChecks:o={}}="function"===typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:l,stabilityCheck:u,identityFunctionCheck:c}=t(),d=(i.useRef(!0),i.useCallback({[e.name]:t=>e(t)}[e.name],[e,u,o.stabilityCheck])),p=f(s.addNestedSub,a.getState,l||a.getState,d,r);return i.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var g=p();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");function m(e){e()}var v={notify(){},get:()=>[]};function y(e,t){let n,r=v,i=0,o=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){m((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=v)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return u}var b=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),x="undefined"!==typeof navigator&&"ReactNative"===navigator.product,w=b||x?i.useLayoutEffect:i.useEffect;Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var C=function(e){let{store:t,context:n,children:r,serverState:o,stabilityCheck:a="once",identityFunctionCheck:s="once"}=e;const u=i.useMemo((()=>{const e=y(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:a,identityFunctionCheck:s}}),[t,o,a,s]),c=i.useMemo((()=>t.getState()),[t]);w((()=>{const{subscription:e}=u;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[u,c]);const d=n||l;return i.createElement(d.Provider,{value:u},r)};function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;const t=e===l?d:c(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var k=S();function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;const t=e===l?k:S(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var E,P=_();E=r.useSyncExternalStoreWithSelector,f=E,(e=>{e})(t.useSyncExternalStore);var j=n(9575),O=n(3789),R=n(5341),A=n(7136);const T=function(e){var n=e.children,r=e.theme,i=(0,R.A)(),o=t.useMemo((function(){var e=null===i?r:function(e,t){return"function"===typeof t?t(e):(0,j.A)({},e,t)}(i,r);return null!=e&&(e[A.A]=null!==i),e}),[r,i]);return t.createElement(O.A.Provider,{value:o},n)};var N=n(9140),F=n(5754),M=n.n(F);function L(e){return"/"===e.charAt(0)}function I(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const D=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&L(e),a=t&&L(t),s=o||a;if(e&&L(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var l=i[i.length-1];n="."===l||".."===l||""===l}else n=!1;for(var u=0,c=i.length;c>=0;c--){var d=i[c];"."===d?I(i,c):".."===d?(I(i,c),u++):u&&(I(i,c),u--)}if(!s)for(;u--;u)i.unshift("..");!s||""===i[0]||i[0]&&L(i[0])||i.unshift("");var f=i.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};var z=!0,B="Invariant failed";function U(e,t){if(!e){if(z)throw new Error(B);var n="function"===typeof t?t():t,r=n?"".concat(B,": ").concat(n):B;throw new Error(r)}}function V(e){return"/"===e.charAt(0)?e:"/"+e}function H(e){return"/"===e.charAt(0)?e.substr(1):e}function W(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function G(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function q(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function K(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,j.A)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch($o){throw $o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):$o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=D(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function X(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var Z=!("undefined"===typeof window||!window.document||!window.document.createElement);function Y(e,t){t(window.confirm(e))}var Q="popstate",J="hashchange";function ee(){try{return window.history.state||{}}catch($o){return{}}}function te(e){void 0===e&&(e={}),Z||U(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,o=i.forceRefresh,a=void 0!==o&&o,s=i.getUserConfirmation,l=void 0===s?Y:s,u=i.keyLength,c=void 0===u?6:u,d=e.basename?G(V(e.basename)):"";function f(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return d&&(o=W(o,d)),K(o,r,n)}function h(){return Math.random().toString(36).substr(2,c)}var p=X();function g(e){(0,j.A)(P,e),P.length=t.length,p.notifyListeners(P.location,P.action)}function m(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||b(f(e.state))}function v(){b(f(ee()))}var y=!1;function b(e){if(y)y=!1,g();else{p.confirmTransitionTo(e,"POP",l,(function(t){t?g({action:"POP",location:e}):function(e){var t=P.location,n=w.indexOf(t.key);-1===n&&(n=0);var r=w.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(y=!0,S(i))}(e)}))}}var x=f(ee()),w=[x.key];function C(e){return d+q(e)}function S(e){t.go(e)}var k=0;function _(e){1===(k+=e)&&1===e?(window.addEventListener(Q,m),r&&window.addEventListener(J,v)):0===k&&(window.removeEventListener(Q,m),r&&window.removeEventListener(J,v))}var E=!1;var P={length:t.length,action:"POP",location:x,createHref:C,push:function(e,r){var i="PUSH",o=K(e,r,h(),P.location);p.confirmTransitionTo(o,i,l,(function(e){if(e){var r=C(o),s=o.key,l=o.state;if(n)if(t.pushState({key:s,state:l},null,r),a)window.location.href=r;else{var u=w.indexOf(P.location.key),c=w.slice(0,u+1);c.push(o.key),w=c,g({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=K(e,r,h(),P.location);p.confirmTransitionTo(o,i,l,(function(e){if(e){var r=C(o),s=o.key,l=o.state;if(n)if(t.replaceState({key:s,state:l},null,r),a)window.location.replace(r);else{var u=w.indexOf(P.location.key);-1!==u&&(w[u]=o.key),g({action:i,location:o})}else window.location.replace(r)}}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return E||(_(1),E=!0),function(){return E&&(E=!1,_(-1)),t()}},listen:function(e){var t=p.appendListener(e);return _(1),function(){_(-1),t()}}};return P}var ne="hashchange",re={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+H(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:H,decodePath:V},slash:{encodePath:V,decodePath:V}};function ie(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function oe(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function ae(e){window.location.replace(ie(window.location.href)+"#"+e)}function se(e){void 0===e&&{},Z||U(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?Y:r,o=n.hashType,a=void 0===o?"slash":o,s=e.basename?G(V(e.basename)):"",l=re[a],u=l.encodePath,c=l.decodePath;function d(){var e=c(oe());return s&&W(e,s),K(e)}var f=X();function h(e){(0,j.A)(_,e),_.length=t.length,f.notifyListeners(_.location,_.action)}var p=!1,g=null;function m(){var e=oe(),t=u(e);if(e!==t)ae(t);else{var n=d(),r=_.location;if(!p&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}(r,n))return;if(g===q(n))return;null,function(e){if(p)!1,h();else{var t="POP";f.confirmTransitionTo(e,t,i,(function(n){n?h({action:t,location:e}):function(e){var t=_.location,n=x.lastIndexOf(q(t));-1===n&&0;var r=x.lastIndexOf(q(e));-1===r&&0;var i=n-r;i&&(!0,w(i))}(e)}))}}(n)}}var v=oe(),y=u(v);v!==y&&ae(y);var b=d(),x=[q(b)];function w(e){t.go(e)}var C=0;function S(e){1===(C+=e)&&1===e?window.addEventListener(ne,m):0===C&&window.removeEventListener(ne,m)}var k=!1;var _={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&ie(window.location.href),n+"#"+u(s+q(e))},push:function(e,t){var n="PUSH",r=K(e,void 0,void 0,_.location);f.confirmTransitionTo(r,n,i,(function(e){if(e){var t=q(r),i=u(s+t);if(oe()!==i){t,function(e){window.location.hash=e}(i);var o=x.lastIndexOf(q(_.location)),a=x.slice(0,o+1);a.push(t),a,h({action:n,location:r})}else h()}}))},replace:function(e,t){var n="REPLACE",r=K(e,void 0,void 0,_.location);f.confirmTransitionTo(r,n,i,(function(e){if(e){var t=q(r),i=u(s+t);oe()!==i&&(t,ae(i));var o=x.indexOf(q(_.location));-1!==o&&(x[o]=t),h({action:n,location:r})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&!1;var t=f.setPrompt(e);return k||(S(1),!0),function(){return k&&(!1,S(-1)),t()}},listen:function(e){var t=f.appendListener(e);return S(1),function(){S(-1),t()}}};return _}function le(e,t,n){return Math.min(Math.max(e,t),n)}var ue=n(2911),ce=n.n(ue),de=(n(4665),n(7502)),fe=n(2592),he=n.n(fe),pe=1073741823,ge="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var me=t.createContext||function(e,n){var r,i,o="__create-react-context-"+function(){var e="__global_unique_id__";return ge[e]=(ge[e]||0)+1}()+"__",a=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,N.A)(t,e);var r=t.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var t,r=this.props.value,i=e.value;!function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(r,i)?(t="function"===typeof n?n(r,i):pe,0!==(t|=0)&&this.emitter.set(e.value,t)):t=0}},r.render=function(){return this.props.children},t}(t.Component);a.childContextTypes=((r={})[o]=M().object.isRequired,r);var s=function(t){function n(){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).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,N.A)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?pe:t},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?pe:e},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return function(e){return Array.isArray(e)?e[0]:e}(this.props.children)(this.state.value)},n}(t.Component);return s.contextTypes=((i={})[o]=M().object,i),{Provider:a,Consumer:s}},ve=function(e){var t=me();return t.displayName=e,t},ye=ve("Router-History"),be=ve("Router"),xe=function(e){function n(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,N.A)(n,e),n.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=n.prototype;return r.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return t.createElement(be.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},t.createElement(ye.Provider,{children:this.props.children||null,value:this.props.history}))},n}(t.Component);t.Component;t.Component;var we={},Ce=1e4,Se=0;function ke(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,u=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=we[n]||(we[n]={});if(r[e])return r[e];var i=[],o={regexp:ce()(e,i,t),keys:i};return Se<Ce&&(r[e]=o,Se++),o}(n,{end:o,strict:s,sensitive:u}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var c=l[0],d=l.slice(1),f=e===c;return o&&!f?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:f,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var _e=function(e){function n(){return e.apply(this,arguments)||this}return(0,N.A)(n,e),n.prototype.render=function(){var e=this;return t.createElement(be.Consumer,null,(function(n){n||U(!1);var r=e.props.location||n.location,i=e.props.computedMatch?e.props.computedMatch:e.props.path?ke(r.pathname,e.props):n.match,o=(0,j.A)({},n,{location:r,match:i}),a=e.props,s=a.children,l=a.component,u=a.render;return Array.isArray(s)&&function(e){return 0===t.Children.count(e)}(s)&&(s=null),t.createElement(be.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:l?t.createElement(l,o):u?u(o):null:"function"===typeof s?s(o):null)}))},n}(t.Component);function Ee(e){return"/"===e.charAt(0)?e:"/"+e}function Pe(e,t){if(!e)return t;var n=Ee(e);return 0!==t.pathname.indexOf(n)?t:(0,j.A)({},t,{pathname:t.pathname.substr(n.length)})}function je(e){return"string"===typeof e?e:q(e)}function Oe(e){return function(){U(!1)}}function Re(){}t.Component;var Ae=function(e){function n(){return e.apply(this,arguments)||this}return(0,N.A)(n,e),n.prototype.render=function(){var e=this;return t.createElement(be.Consumer,null,(function(n){n||U(!1);var r,i,o=e.props.location||n.location;return t.Children.forEach(e.props.children,(function(e){if(null==i&&t.isValidElement(e)){r=e;var a=e.props.path||e.props.from;i=a?ke(o.pathname,(0,j.A)({},e.props,{path:a})):n.match}})),i?t.cloneElement(r,{location:o,computedMatch:i}):null}))},n}(t.Component);var Te=t.useContext;function Ne(){return Te(ye)}function Fe(){return Te(be).location}var Me=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=te(t.props),t}return(0,N.A)(n,e),n.prototype.render=function(){return t.createElement(xe,{history:this.history,children:this.props.children})},n}(t.Component);t.Component;var Le=function(e,t){return"function"===typeof e?e(t):e},Ie=function(e,t){return"string"===typeof e?K(e,null,null,t):e},De=function(e){return e},ze=t.forwardRef;"undefined"===typeof ze&&(ze=De);var Be=ze((function(e,n){var r=e.innerRef,i=e.navigate,o=e.onClick,a=(0,de.A)(e,["innerRef","navigate","onClick"]),s=a.target,l=(0,j.A)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),i())}});return l.ref=De!==ze&&n||r,t.createElement("a",l)}));var Ue=ze((function(e,n){var r=e.component,i=void 0===r?Be:r,o=e.replace,a=e.to,s=e.innerRef,l=(0,de.A)(e,["component","replace","to","innerRef"]);return t.createElement(be.Consumer,null,(function(e){e||U(!1);var r=e.history,u=Ie(Le(a,e.location),e.location),c=u?r.createHref(u):"",d=(0,j.A)({},l,{href:c,navigate:function(){var t=Le(a,e.location),n=q(e.location)===q(Ie(t));(o||n?r.replace:r.push)(t)}});return De!==ze?d.ref=n||s:d.innerRef=s,t.createElement(i,d)}))})),Ve=function(e){return e},He=t.forwardRef;"undefined"===typeof He&&(He=Ve);var We=He((function(e,n){var r=e["aria-current"],i=void 0===r?"page":r,o=e.activeClassName,a=void 0===o?"active":o,s=e.activeStyle,l=e.className,u=e.exact,c=e.isActive,d=e.location,f=e.sensitive,h=e.strict,p=e.style,g=e.to,m=e.innerRef,v=(0,de.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return t.createElement(be.Consumer,null,(function(e){e||U(!1);var r=d||e.location,o=Ie(Le(g,r),r),y=o.pathname,b=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=b?ke(r.pathname,{path:b,exact:u,sensitive:f,strict:h}):null,w=!!(c?c(x,r):x),C="function"===typeof l?l(w):l,S="function"===typeof p?p(w):p;w&&(C=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(C,a),S=(0,j.A)({},S,s));var k=(0,j.A)({"aria-current":w&&i||null,className:C,style:S,to:o},v);return Ve!==He?k.ref=n||m:k.innerRef=m,t.createElement(Ue,k)}))})),Ge=n(514),qe=n(4586),Ke=Symbol.for("immer-nothing"),Xe=Symbol.for("immer-draftable"),Ze=Symbol.for("immer-state");function Ye(e){throw new Error("[Immer] minified error nr: ".concat(e,". Full error at: https://bit.ly/3cXEKWf"))}var Qe=Object.getPrototypeOf;function $e(e){return!!e&&!!e[Ze]}function Je(e){var t;return!!e&&(tt(e)||Array.isArray(e)||!!e[Xe]||!(null===(t=e.constructor)||void 0===t||!t[Xe])||at(e)||st(e))}var et=Object.prototype.constructor.toString();function tt(e){if(!e||"object"!==typeof e)return!1;const t=Qe(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===et}function nt(e,t){0===rt(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function rt(e){const t=e[Ze];return t?t.type_:Array.isArray(e)?1:at(e)?2:st(e)?3:0}function it(e,t){return 2===rt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ot(e,t,n){const r=rt(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function at(e){return e instanceof Map}function st(e){return e instanceof Set}function lt(e){return e.copy_||e.base_}function ut(e,t){if(at(e))return new Map(e);if(st(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=tt(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[Ze];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Qe(e),t)}{const t=Qe(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function ct(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ft(e)||$e(e)||!Je(e)||(rt(e)>1&&(e.set=e.add=e.clear=e.delete=dt),Object.freeze(e),t&&Object.entries(e).forEach((e=>{let[t,n]=e;return ct(n,!0)}))),e}function dt(){Ye(2)}function ft(e){return Object.isFrozen(e)}var ht,pt={};function gt(e){const t=pt[e];return t||Ye(0),t}function mt(){return ht}function vt(e,t){t&&(gt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function yt(e){bt(e),e.drafts_.forEach(wt),e.drafts_=null}function bt(e){e===ht&&(ht=e.parent_)}function xt(e){return ht={drafts_:[],parent_:ht,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function wt(e){const t=e[Ze];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Ct(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[Ze].modified_&&(yt(t),Ye(4)),Je(e)&&(e=St(t,e),t.parent_||_t(t,e)),t.patches_&>("Patches").generateReplacementPatches_(n[Ze].base_,e,t.patches_,t.inversePatches_)):e=St(t,n,[]),yt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ke?e:void 0}function St(e,t,n){if(ft(t))return t;const r=t[Ze];if(!r)return nt(t,((i,o)=>kt(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return _t(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),nt(i,((i,a)=>kt(e,r,t,i,a,n,o))),_t(e,t,!1),n&&e.patches_&>("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function kt(e,t,n,r,i,o,a){if($e(i)){const a=St(e,i,o&&t&&3!==t.type_&&!it(t.assigned_,r)?o.concat(r):void 0);if(ot(n,r,a),!$e(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(Je(i)&&!ft(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;St(e,i),t&&t.scope_.parent_||"symbol"===typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||_t(e,i)}}function _t(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ct(t,n)}var Et={get(e,t){if(t===Ze)return e;const n=lt(e);if(!it(n,t))return function(e,t,n){var r;const i=Ot(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!Je(r)?r:r===jt(e.base_,t)?(At(e),e.copy_[t]=Tt(r,e)):r},has:(e,t)=>t in lt(e),ownKeys:e=>Reflect.ownKeys(lt(e)),set(e,t,n){const r=Ot(lt(e),t);if(null!==r&&void 0!==r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=jt(lt(e),t),i=null===r||void 0===r?void 0:r[Ze];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}(n,r)&&(void 0!==n||it(e.base_,t)))return!0;At(e),Rt(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==jt(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,At(e),Rt(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=lt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){Ye(11)},getPrototypeOf:e=>Qe(e.base_),setPrototypeOf(){Ye(12)}},Pt={};function jt(e,t){const n=e[Ze];return(n?lt(n):e)[t]}function Ot(e,t){if(!(t in e))return;let n=Qe(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Qe(n)}}function Rt(e){e.modified_||(e.modified_=!0,e.parent_&&Rt(e.parent_))}function At(e){e.copy_||(e.copy_=ut(e.base_,e.scope_.immer_.useStrictShallowCopy_))}nt(Et,((e,t)=>{Pt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Pt.deleteProperty=function(e,t){return Pt.set.call(this,e,t,void 0)},Pt.set=function(e,t,n){return Et.set.call(this,e[0],t,n,e[0])};function Tt(e,t){const n=at(e)?gt("MapSet").proxyMap_(e,t):st(e)?gt("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:mt(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Et;n&&(i=[r],o=Pt);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:mt()).drafts_.push(n),n}function Nt(e){return $e(e)||Ye(10),Ft(e)}function Ft(e){if(!Je(e)||ft(e))return e;const t=e[Ze];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ut(e,t.scope_.immer_.useStrictShallowCopy_)}else n=ut(e,!0);return nt(n,((e,t)=>{ot(n,e,Ft(t))})),t&&(t.finalized_=!1),n}var Mt=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return r.produce(e,(e=>t.call(this,e,...o)))}}let r;if("function"!==typeof t&&Ye(6),void 0!==n&&"function"!==typeof n&&Ye(7),Je(e)){const i=xt(this),o=Tt(e,void 0);let a=!0;try{r=t(o),a=!1}finally{a?yt(i):bt(i)}return vt(i,n),Ct(r,i)}if(!e||"object"!==typeof e){if(r=t(e),void 0===r&&(r=e),r===Ke&&(r=void 0),this.autoFreeze_&&ct(r,!0),n){const t=[],i=[];gt("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}Ye(1)},this.produceWithPatches=(e,n)=>{if("function"===typeof e)return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(t=>e(t,...i)))};let r,i;const o=this.produce(e,n,((e,t)=>{r=e,i=t}));return[o,r,i]},"boolean"===typeof(null===e||void 0===e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof(null===e||void 0===e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Je(e)||Ye(8),$e(e)&&(e=Nt(e));const t=xt(this),n=Tt(e,void 0);return n[Ze].isManual_=!0,bt(t),n}finishDraft(e,t){const n=e&&e[Ze];n&&n.isManual_||Ye(9);const{scope_:r}=n;return vt(r,t),Ct(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=gt("Patches").applyPatches_;return $e(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Lt=Mt.produce;Mt.produceWithPatches.bind(Mt),Mt.setAutoFreeze.bind(Mt),Mt.setUseStrictShallowCopy.bind(Mt),Mt.applyPatches.bind(Mt),Mt.createDraft.bind(Mt),Mt.finishDraft.bind(Mt);function It(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected a function, instead received ".concat(typeof e);if("function"!==typeof e)throw new TypeError(t)}var Dt=e=>Array.isArray(e)?e:[e];function zt(e){const t=Array.isArray(e[0])?e[0]:e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected all items to be functions, instead received the following types: ";if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?"function ".concat(e.name||"unnamed","()"):typeof e)).join(", ");throw new TypeError("".concat(t,"[").concat(n,"]"))}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var Bt="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},Ut=0,Vt=1;function Ht(){return{s:Ut,v:void 0,o:null,p:null}}function Wt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ht();const{resultEqualityCheck:r}=t;let i,o=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=Ht(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=Ht(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===Vt?l=t.v:(l=e.apply(null,arguments),o++),s.s=Vt,r){var u,c,d;const e=null!==(u=null===(c=i)||void 0===c||null===(d=c.deref)||void 0===d?void 0:d.call(c))&&void 0!==u?u:i;null!=e&&r(e,l)&&(l=e,0!==o&&o--);i="object"===typeof l&&null!==l||"function"===typeof l?new Bt(l):l}return s.v=l,l}return a.clearCache=()=>{n=Ht(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function Gt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i="function"===typeof e?{memoize:e,memoizeOptions:n}:e,o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o=0,a=0,s={},l=t.pop();"object"===typeof l&&(s=l,l=t.pop()),It(l,"createSelector expects an output function after the inputs, but received: [".concat(typeof l,"]"));const u={...i,...s},{memoize:c,memoizeOptions:d=[],argsMemoize:f=Wt,argsMemoizeOptions:h=[],devModeChecks:p={}}=u,g=Dt(d),m=Dt(h),v=zt(t),y=c((function(){return o++,l.apply(null,arguments)}),...g);const b=f((function(){a++;const e=function(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}(v,arguments);return r=y.apply(null,e),r}),...m);return Object.assign(b,{resultFunc:l,memoizedResultFunc:y,dependencies:v,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>r,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:c,argsMemoize:f})};return Object.assign(o,{withTypes:()=>o}),o}var qt=Gt(Wt),Kt=Object.assign((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qt;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected an object, instead received ".concat(typeof e);if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ".concat(typeof e));const n=Object.keys(e),r=n.map((t=>e[t])),i=t(r,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})}));return i}),{withTypes:()=>Kt});function Xt(e){return"Minified Redux error #".concat(e,"; visit https://redux.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}var Zt=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),Yt=()=>Math.random().toString(36).substring(7).split("").join("."),Qt={INIT:"@@redux/INIT".concat(Yt()),REPLACE:"@@redux/REPLACE".concat(Yt()),PROBE_UNKNOWN_ACTION:()=>"@@redux/PROBE_UNKNOWN_ACTION".concat(Yt())};function $t(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function Jt(e,t,n){if("function"!==typeof e)throw new Error(Xt(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(Xt(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(Xt(1));return n(Jt)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach(((e,t)=>{a.set(t,e)})))}function c(){if(l)throw new Error(Xt(3));return i}function d(e){if("function"!==typeof e)throw new Error(Xt(4));if(l)throw new Error(Xt(5));let t=!0;u();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(Xt(6));t=!1,u(),a.delete(n),o=null}}}function f(e){if(!$t(e))throw new Error(Xt(7));if("undefined"===typeof e.type)throw new Error(Xt(8));if("string"!==typeof e.type)throw new Error(Xt(17));if(l)throw new Error(Xt(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}f({type:Qt.INIT});return{dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!==typeof e)throw new Error(Xt(10));r=e,f({type:Qt.REPLACE})},[Zt]:function(){const e=d;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(Xt(11));function n(){const e=t;e.next&&e.next(c())}n();return{unsubscribe:e(n)}},[Zt](){return this}}}}}function en(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const r=t[o];0,"function"===typeof e[r]&&(n[r]=e[r])}const r=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:Qt.INIT}))throw new Error(Xt(12));if("undefined"===typeof n(void 0,{type:Qt.PROBE_UNKNOWN_ACTION()}))throw new Error(Xt(13))}))}(n)}catch($o){i=$o}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(i)throw i;let o=!1;const a={};for(let i=0;i<r.length;i++){const s=r[i],l=n[s],u=e[s],c=l(u,t);if("undefined"===typeof c){t&&t.type;throw new Error(Xt(14))}a[s]=c,o=o||c!==u}return o=o||r.length!==Object.keys(e).length,o?a:e}}function tn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>e:1===t.length?t[0]:t.reduce(((e,t)=>function(){return e(t(...arguments))}))}function nn(e){return t=>{let{dispatch:n,getState:r}=t;return t=>i=>"function"===typeof i?i(n,r,e):t(i)}}var rn=nn(),on=nn,an=(function(){const e=Gt(...arguments),t=Object.assign((function(){const t=e(...arguments),n=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t($e(e)?Nt(e):e,...r)};return Object.assign(n,t),n}),{withTypes:()=>t})}(Wt),"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?tn:tn.apply(null,arguments)});"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function sn(e,t){function n(){if(t){let n=t(...arguments);if(!n)throw new Error(Nn(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=()=>"".concat(e),n.type=e,n.match=t=>function(e){return $t(e)&&"type"in e&&"string"===typeof e.type}(t)&&t.type===e,n}var ln=class e extends Array{constructor(){super(...arguments),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return super.concat.apply(this,t)}prepend(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 1===n.length&&Array.isArray(n[0])?new e(...n[0].concat(this)):new e(...n.concat(this))}};function un(e){return Je(e)?Lt(e,(()=>{})):e}function cn(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(Nn(10));const r=n.insert(t,e);return e.set(t,r),r}var dn="RTK_autoBatch",fn=e=>t=>{setTimeout(t,e)},hn="undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:fn(10),pn=e=>function(t){const{autoBatch:n=!0}=null!==t&&void 0!==t?t:{};let r=new ln(e);return n&&r.push(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"raf"};return t=>function(){const n=t(...arguments);let r=!0,i=!1,o=!1;const a=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?hn:"callback"===e.type?e.queueNotification:fn(e.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach((e=>e())))};return Object.assign({},n,{subscribe(e){const t=n.subscribe((()=>r&&e()));return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{var t;return r=!(null!==e&&void 0!==e&&null!==(t=e.meta)&&void 0!==t&&t[dn]),i=!r,i&&(o||(o=!0,s(l))),n.dispatch(e)}finally{r=!0}}})}}("object"===typeof n?n:void 0)),r};function gn(e){const t={},n=[];let r;const i={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(Nn(28));if(r in t)throw new Error(Nn(29));return t[r]=n,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(r=e,i)};return e(i),[t,n,r]}var mn=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e};var vn=Symbol.for("rtk-slice-createasyncthunk");function yn(e,t){return"".concat(e,"/").concat(t)}function bn(){var e;let{creators:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=null===t||void 0===t||null===(e=t.asyncThunk)||void 0===e?void 0:e[vn];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(Nn(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name](){return e(...arguments)}}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(i),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(Nn(12));if(n in a.sliceCaseReducersByType)throw new Error(Nn(13));return a.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"===typeof e.extraReducers?gn(e.extraReducers):[e.extraReducers],i={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,i,o]=gn(t);if(function(e){return"function"===typeof e}(e))n=()=>un(e());else{const t=un(e);n=()=>t}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),t=arguments.length>1?arguments[1]:void 0,a=[r[t.type],...i.filter((e=>{let{matcher:n}=e;return n(t)})).map((e=>{let{reducer:t}=e;return t}))];return 0===a.filter((e=>!!e)).length&&(a=[o]),a.reduce(((e,n)=>{if(n){if($e(e)){const r=n(e,t);return void 0===r?e:r}if(Je(e))return Lt(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(Nn(9))}return r}}return e}),e)}return a.getInitialState=n,a}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=i[r],a={reducerName:r,type:yn(t,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function(e,t,n){let r,i,{type:o,reducerName:a,createNotation:s}=e;if("reducer"in t){if(s&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(t))throw new Error(Nn(17));r=t.reducer,i=t.prepare}else r=t;n.addCase(o,r).exposeCaseReducer(a,r).exposeAction(a,i?sn(o,i):sn(o))}(a,o,s):function(e,t,n,r){let{type:i,reducerName:o}=e;if(!r)throw new Error(Nn(18));const{payloadCreator:a,fulfilled:s,pending:l,rejected:u,settled:c,options:d}=t,f=r(i,a,d);n.exposeAction(o,f),s&&n.addCase(f.fulfilled,s);l&&n.addCase(f.pending,l);u&&n.addCase(f.rejected,u);c&&n.addMatcher(f.settled,c);n.exposeCaseReducer(o,{fulfilled:s||Cn,pending:l||Cn,rejected:u||Cn,settled:c||Cn})}(a,o,s,n)}));const u=e=>e,c=new Map;let d;function f(e,t){return d||(d=l()),d(e,t)}function h(){return d||(d=l()),d.getInitialState()}function p(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function r(e){let r=e[t];return"undefined"===typeof r&&n&&(r=h()),r}function i(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;const r=cn(c,n,{insert:()=>new WeakMap});return cn(r,t,{insert:()=>{const r={};for(const[o,a]of Object.entries(null!==(i=e.selectors)&&void 0!==i?i:{})){var i;r[o]=xn(a,t,h,n)}return r}})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}const g={name:t,reducer:f,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:h,...p(r),injectInto(e){let{reducerPath:t,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=null!==t&&void 0!==t?t:r;return e.inject({reducerPath:i,reducer:f},n),{...g,...p(i,!0)}}};return g}}function xn(e,t,n,r){function i(i){let o=t(i);"undefined"===typeof o&&r&&(o=n());for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return e(o,...s)}return i.unwrapped=e,i}var wn=bn();function Cn(){}var Sn="listener",kn="completed",_n="cancelled",En=("task-".concat(_n),"task-".concat(kn),"".concat(Sn,"-").concat(_n),"".concat(Sn,"-").concat(kn),(e,t)=>{if("function"!==typeof e)throw new Error(Nn(32))});var{assign:Pn}=Object,jn="listenerMiddleware",On=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=sn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Nn(21));return En(o),{predicate:i,type:t,effect:o}},Rn=Object.assign((e=>{const{type:t,predicate:n,effect:r}=On(e);return{id:mn(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Nn(22))}}}),{withTypes:()=>Rn}),An=Object.assign(sn("".concat(jn,"/add")),{withTypes:()=>An}),Tn=(sn("".concat(jn,"/removeAll")),Object.assign(sn("".concat(jn,"/remove")),{withTypes:()=>Tn}));Symbol.for("rtk-state-proxy-original");function Nn(e){return"Minified Redux Toolkit error #".concat(e,"; visit https://redux-toolkit.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}const Fn=n.p+"static/media/img-1-1.130fb8d0203452fee547.png",Mn=n.p+"static/media/img-1-2.c512de6393df34bd1e61.png",Ln=n.p+"static/media/img2-1.2adc75df85eab5c127f9.png",In=n.p+"static/media/img2-2.c68532d4f95dbc63c69a.png",Dn=n.p+"static/media/img3-1.6eb26a22e6ea83629d27.png",zn=n.p+"static/media/img3-2.39ae54b4032d52c79a3a.png",Bn=n.p+"static/media/img4-1.a7594bfa47b01d2a0890.png",Un=n.p+"static/media/img4-2.24c0cbafe1a7ad7c24b5.png",Vn=n.p+"static/media/img5-1.e6865b52df58608fd968.png",Hn=n.p+"static/media/img5-2.ae59543efec34daf3554.png",Wn=n.p+"static/media/img6-1.c8bb209cdce72c2d8033.png",Gn=n.p+"static/media/img6-2.b442f90b3e503ac33510.png",qn={x1:0,x2:1,y1:0,y2:1},Kn=[{value:10,label:"10"},{value:20,label:"20"},{value:30,label:"30"},{value:40,label:"40"},{value:50,label:"50"},{value:60,label:"60"},{value:70,label:"70"},{value:80,label:"80"},{value:90,label:"90"},{value:100,label:"100"}],Xn=[{title:"SELECT THE RIGHT IMAGE AREA",description:"The main object should occupy the major part of the image. Use the cropping tool available to crop the image and remove excess background.",imageLeft:Fn,imageRight:Mn},{title:"PICTURE CLARITY",description:"The image should not be blurred or out of focus.",imageLeft:Ln,imageRight:In},{title:"OPTIMAL LIGHTING",description:"The images should be taken in a bright area or use your camera\u2019s flash to take a well-lit picture.",imageLeft:Dn,imageRight:zn},{title:"MONOCHROME BACKGROUND",description:"The object should be placed on a plain and light background and patterned background should be avoided.",imageLeft:Bn,imageRight:Un},{title:"VISIBILITY OF THE OBJECT",description:"Click an image encapsulating most of the object\u2019s key components.",imageLeft:Vn,imageRight:Hn},{title:"OCR CAPTURE",description:"It is recommended to take a clear picture of the text on the typeplate etc, to ensure that the model can detect the text and give accurate results.",imageLeft:Wn,imageRight:Gn}],Zn={categoryPredictions:[],codes:[],fetchingResults:!1,filterOptions:[],filters:[],imageThumbSearchInput:"",isShowModalDetailItemMobile:!1,preFilter:{},loadingSearchAlgolia:!1,preFilterDropdown:!1,imageCaptureHelpModal:!1,regions:[],requestImage:void 0,results:[],selectedRegion:void 0,textSearchInputMobile:"",valueTextSearch:{configure:{filters:""},page:1,refinementList:""},postFilter:{},showFeedback:!1,firstSearchImage:"",firstSearchResults:null,firstSearchPrefilters:null,firstSearchThumbSearchInput:null};var Yn=n(4409);const Qn=wn({name:"search",initialState:Zn,reducers:{setSearchResults:(e,t)=>{const{payload:n}=t,{results:r,session:i,categoryPredictions:o,codes:a,duration:s,filters:l}=n;return{...e,filters:l,results:r,requestId:i,categoryPredictions:o,codes:a,duration:s,sessionId:i,fetchingResults:!1}},setRegions:(e,t)=>({...e,regions:t.payload}),setSelectedRegion:(e,t)=>({...e,selectedRegion:t.payload}),setRequestImage:(e,t)=>({...e,requestImage:{canvas:t.payload,id:Math.random().toString()},regions:[]}),selectionChanged:(e,t)=>{const{payload:n}=t;return{...e,selectedRegion:n}},loadingActionResults:e=>({...e,fetchingResults:!0}),changeValueTextSearch:(e,t)=>{const{payload:n}=t;return{...e,valueTextSearch:n}},updateResults:(e,t)=>{const{payload:n}=t;return{...e,results:n}},updateQueryText:(e,t)=>{const{payload:n}=t;return{...e,queryText:n}},reset:(e,t)=>({results:[],regions:[],selectedRegion:qn,requestImage:void 0,fetchingResults:!1,filterOptions:[],categoryPredictions:[],codes:[],errorMessage:"",valueTextSearch:{},resultSearchText:[],filters:[],loadingSearchAlgolia:!1,imageThumbSearchInput:"",textSearchInputMobile:"",isShowModalDetailItemMobile:!1,preFilter:e.preFilter||{},postFilter:{},preFilterDropdown:!1,imageCaptureHelpModal:!1,showFeedback:!1,firstSearchImage:null,firstSearchResults:null,firstSearchPrefilters:null,firstSearchThumbSearchInput:null}),onResetRequestImage:(e,t)=>({...e,requestImage:void 0,imageThumbSearchInput:"",results:[],regions:[]}),setUpdateSession:(e,t)=>{const{payload:n}=t;return{...e,sessionId:n}},updateResultChangePosition:(e,t)=>{const{payload:n}=t,{results:r}=n;return{...e,fetchingResults:!1,results:r}},setImageSearchInput:(e,t)=>{const{payload:n}=t;return{...e,imageThumbSearchInput:n}},updateStatusLoading:(e,t)=>{const{payload:n}=t;return{...e,loadingSearchAlgolia:n}},updateValueTextSearchMobile:(e,t)=>{const{payload:n}=t;return{...e,textSearchInputMobile:n}},onToggleModalItemDetail:(e,t)=>{const{payload:n}=t;return{...e,isShowModalDetailItemMobile:n}},setPreFilter:(e,t)=>{const{payload:n}=t;return{...e,preFilter:n}},setPreFilterDropdown:(e,t)=>({...e,preFilterDropdown:t.payload}),setImageCaptureHelpModal:(e,t)=>({...e,imageCaptureHelpModal:t.payload}),setFilter:(e,t)=>({...e,filter:t.payload}),setPostFilter:(e,t)=>{const{payload:n}=t;let r={...e.postFilter}||{};const i=Object.keys(n)[0];return(0,Yn.isUndefined)(r[i])||(0,Yn.isUndefined)(r[i][n[i]])?r[i]?r[i]={...r[i],[n[i]]:!0}:r={...r,[i]:{[n[i]]:!0}}:r[i]={...r[i],[n[i]]:!r[i][n[i]]},{...e,postFilter:{...r}}},clearPostFilter:e=>({...e,postFilter:{}}),setShowFeedback:(e,t)=>({...e,showFeedback:t.payload}),setFirstSearchResults:(e,t)=>({...e,firstSearchResults:t.payload}),setFirstSearchImage:(e,t)=>({...e,firstSearchImage:t.payload}),setFirstSearchPrefilters:(e,t)=>({...e,firstSearchPrefilters:t.payload}),setFirstSearchThumbSearchInput:(e,t)=>({...e,firstSearchThumbSearchInput:t.payload})}}),{changeValueTextSearch:$n,clearPostFilter:Jn,loadingActionResults:er,onResetRequestImage:tr,onToggleModalItemDetail:nr,reset:rr,selectionChanged:ir,setFilter:or,setImageCaptureHelpModal:ar,setImageSearchInput:sr,setPostFilter:lr,setPreFilter:ur,setPreFilterDropdown:cr,setRegions:dr,setRequestImage:fr,setSearchResults:hr,setSelectedRegion:pr,setUpdateSession:gr,updateQueryText:mr,updateResultChangePosition:vr,updateResults:yr,updateStatusLoading:br,updateValueTextSearchMobile:xr,setShowFeedback:wr,setFirstSearchImage:Cr,setFirstSearchResults:Sr,setFirstSearchPrefilters:kr,setFirstSearchThumbSearchInput:_r}=Qn.actions,Er=Qn.reducer;function Pr(e){let t=new RegExp("[?&]".concat(e,"(=([^&#]*))?(&|$|#)"),"i").exec(window.location.href);return t&&t[2]?decodeURIComponent(t[2]):!!t||void 0}var jr,Or;settings.algolia.enabled=!0,settings.preview=!0,settings.showFeedbackAndShare=!1,null!==(jr=settings.rfq)&&void 0!==jr&&jr.enabled&&null!==(Or=settings.support)&&void 0!==Or&&Or.enabled&&(settings.support.enabled=!1);let Rr={auth0:{},algolia:{enabled:!0,apiKey:"",appId:"",indexName:""},xOptions:!1,apiKey:"UNSET",preview:!0,regions:!1,maxWidth:500,maxHeight:500,jpegQuality:.92,baseUrl:"https://api.nyris.io",instantRedirectPatterns:["^https?://(www.)?youtube.com/","^https?://(www.)?youtu.be/","^https?://(www.)?vimeo.com/","^https?://(www.)?dailymotion.com/","^https?://(www.)?dai.ly/"],theme:{},field:{ctaLinkField:"",productName:"",productDetails:"",manufacturerNumber:"",productTag:"",warehouseNumber:"",warehouseNumberValue:"",warehouseShelfNumber:"",warehouseShelfNumberValue:"",warehouseStock:"",warehouseStockValue:""},...settings};Rr={...Rr,apiKey:Pr("apiKey")||Rr.apiKey,xOptions:Pr("xOptions")||Rr.xOptions,regions:Pr("use.regions")||Rr.regions,preview:Pr("use.preview")||Rr.preview};const Ar=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=null!==e&&void 0!==e?e:{};let o=new ln;return t&&(function(e){return"boolean"===typeof e}(t)?o.push(rn):o.push(on(t.extraArgument))),o},{reducer:n,middleware:r,devTools:i=!0,preloadedState:o,enhancers:a}=e||{};let s,l;if("function"===typeof n)s=n;else{if(!$t(n))throw new Error(Nn(1));s=en(n)}l="function"===typeof r?r(t):t();let u=tn;i&&(u=an({trace:!1,..."object"===typeof i&&i}));const c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>(n,r)=>{const i=e(n,r);let o=()=>{throw new Error(Xt(15))};const a={getState:i.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o(e,...n)}},s=t.map((e=>e(a)));return o=tn(...s)(i.dispatch),{...i,dispatch:o}}}(...l),d=pn(c);let f="function"===typeof a?a(d):d();return Jt(s,o,u(...f))}({reducer:en({settings:()=>Rr,search:Er}),devTools:!1}),Tr=()=>P(),Nr=g;var Fr=n(9850),Mr=n(4007),Lr=n(4458),Ir=n(5923),Dr=n(715),zr=n(6935),Br=n(9917),Ur=n(8542),Vr=n(4619),Hr=n(2474);const Wr=t.createContext(null);function Gr(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function qr(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Kr(e,n,r){var i=Gr(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(n,i);return Object.keys(o).forEach((function(a){var s=o[a];if((0,t.isValidElement)(s)){var l=a in n,u=a in i,c=n[a],d=(0,t.isValidElement)(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,t.isValidElement)(c)&&(o[a]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:c.props.in,exit:qr(s,"exit",e),enter:qr(s,"enter",e)})):o[a]=(0,t.cloneElement)(s,{in:!1}):o[a]=(0,t.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:qr(s,"exit",e),enter:qr(s,"enter",e)})}})),o}var Xr=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Zr=function(e){function n(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,Hr.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,N.A)(n,e);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,n){var r,i,o=n.children,a=n.handleExited;return{children:n.firstRender?(r=e,i=a,Gr(r.children,(function(e){return(0,t.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:qr(e,"appear",r),enter:qr(e,"enter",r),exit:qr(e,"exit",r)})}))):Kr(e,o,a),firstRender:!1}},r.handleExited=function(e,t){var n=Gr(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,j.A)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,i=(0,de.A)(e,["component","childFactory"]),o=this.state.contextValue,a=Xr(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===n?t.createElement(Wr.Provider,{value:o},a):t.createElement(Wr.Provider,{value:o},t.createElement(n,i,a))},n}(t.Component);Zr.propTypes={},Zr.defaultProps={component:"div",childFactory:function(e){return e}};const Yr=Zr;var Qr="undefined"===typeof window?t.useEffect:t.useLayoutEffect;const $r=function(e){var n=e.classes,r=e.pulsate,i=void 0!==r&&r,o=e.rippleX,a=e.rippleY,s=e.rippleSize,l=e.in,u=e.onExited,c=void 0===u?function(){}:u,d=e.timeout,f=t.useState(!1),h=f[0],p=f[1],g=(0,Mr.A)(n.ripple,n.rippleVisible,i&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+o},v=(0,Mr.A)(n.child,h&&n.childLeaving,i&&n.childPulsate),y=(0,Br.A)(c);return Qr((function(){if(!l){p(!0);var e=setTimeout(y,d);return function(){clearTimeout(e)}}}),[y,l,d]),t.createElement("span",{className:g,style:m},t.createElement("span",{className:v}))};var Jr=t.forwardRef((function(e,n){var r=e.center,i=void 0!==r&&r,o=e.classes,a=e.className,s=(0,Fr.A)(e,["center","classes","className"]),l=t.useState([]),u=l[0],c=l[1],d=t.useRef(0),f=t.useRef(null);t.useEffect((function(){f.current&&(f.current(),f.current=null)}),[u]);var h=t.useRef(!1),p=t.useRef(null),g=t.useRef(null),m=t.useRef(null);t.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var v=t.useCallback((function(e){var n=e.pulsate,r=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.cb;c((function(e){return[].concat((0,Vr.A)(e),[t.createElement($r,{key:d.current,classes:o,timeout:550,pulsate:n,rippleX:r,rippleY:i,rippleSize:a})])})),d.current+=1,f.current=s}),[o]),y=t.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,a=t.center,s=void 0===a?i||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var c,d,f,y=u?null:m.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,C=x.clientY;c=Math.round(w-b.left),d=Math.round(C-b.top)}if(s)(f=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2===0&&(f+=1);else{var S=2*Math.max(Math.abs((y?y.clientWidth:0)-c),c)+2,k=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(S,2)+Math.pow(k,2))}e.touches?null===g.current&&(g.current=function(){v({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})},p.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):v({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})}}),[i,v]),b=t.useCallback((function(){y({},{pulsate:!0})}),[y]),x=t.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(p.current=setTimeout((function(){x(e,t)})));g.current=null,c((function(e){return e.length>0?e.slice(1):e})),f.current=t}),[]);return t.useImperativeHandle(n,(function(){return{pulsate:b,start:y,stop:x}}),[b,y,x]),t.createElement("span",(0,j.A)({className:(0,Mr.A)(o.root,a),ref:m},s),t.createElement(Yr,{component:null,exit:!0},u))}));const ei=(0,Lr.A)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(t.memo(Jr));var ti=t.forwardRef((function(e,n){var r=e.action,i=e.buttonRef,o=e.centerRipple,a=void 0!==o&&o,s=e.children,l=e.classes,u=e.className,c=e.component,d=void 0===c?"button":c,f=e.disabled,h=void 0!==f&&f,p=e.disableRipple,g=void 0!==p&&p,m=e.disableTouchRipple,v=void 0!==m&&m,y=e.focusRipple,b=void 0!==y&&y,x=e.focusVisibleClassName,w=e.onBlur,C=e.onClick,S=e.onFocus,k=e.onFocusVisible,_=e.onKeyDown,E=e.onKeyUp,P=e.onMouseDown,O=e.onMouseLeave,R=e.onMouseUp,A=e.onTouchEnd,T=e.onTouchMove,N=e.onTouchStart,F=e.onDragLeave,M=e.tabIndex,L=void 0===M?0:M,I=e.TouchRippleProps,D=e.type,z=void 0===D?"button":D,B=(0,Fr.A)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),U=t.useRef(null);var V=t.useRef(null),H=t.useState(!1),W=H[0],G=H[1];h&&W&&G(!1);var q=(0,Ur.A)(),K=q.isFocusVisible,X=q.onBlurVisible,Z=q.ref;function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;return(0,Br.A)((function(r){return t&&t(r),!n&&V.current&&V.current[e](r),!0}))}t.useImperativeHandle(r,(function(){return{focusVisible:function(){G(!0),U.current.focus()}}}),[]),t.useEffect((function(){W&&b&&!g&&V.current.pulsate()}),[g,b,W]);var Q=Y("start",P),$=Y("stop",F),J=Y("stop",R),ee=Y("stop",(function(e){W&&e.preventDefault(),O&&O(e)})),te=Y("start",N),ne=Y("stop",A),re=Y("stop",T),ie=Y("stop",(function(e){W&&(X(e),G(!1)),w&&w(e)}),!1),oe=(0,Br.A)((function(e){U.current||(U.current=e.currentTarget),K(e)&&(G(!0),k&&k(e)),S&&S(e)})),ae=function(){var e=Dr.findDOMNode(U.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},se=t.useRef(!1),le=(0,Br.A)((function(e){b&&!se.current&&W&&V.current&&" "===e.key&&(se.current=!0,e.persist(),V.current.stop(e,(function(){V.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),_&&_(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!h&&(e.preventDefault(),C&&C(e))})),ue=(0,Br.A)((function(e){b&&" "===e.key&&V.current&&W&&!e.defaultPrevented&&(se.current=!1,e.persist(),V.current.stop(e,(function(){V.current.pulsate(e)}))),E&&E(e),C&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&C(e)})),ce=d;"button"===ce&&B.href&&(ce="a");var de={};"button"===ce?(de.type=z,de.disabled=h):("a"===ce&&B.href||(de.role="button"),de["aria-disabled"]=h);var fe=(0,zr.A)(i,n),he=(0,zr.A)(Z,U),pe=(0,zr.A)(fe,he),ge=t.useState(!1),me=ge[0],ve=ge[1];t.useEffect((function(){ve(!0)}),[]);var ye=me&&!g&&!h;return t.createElement(ce,(0,j.A)({className:(0,Mr.A)(l.root,u,W&&[l.focusVisible,x],h&&l.disabled),onBlur:ie,onClick:C,onFocus:oe,onKeyDown:le,onKeyUp:ue,onMouseDown:Q,onMouseLeave:ee,onMouseUp:J,onDragLeave:$,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:pe,tabIndex:h?-1:L},de,B),s,ye?t.createElement(ei,(0,j.A)({ref:V,center:a},I)):null)}));const ni=(0,Lr.A)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(ti);var ri=n(6557),ii=t.forwardRef((function(e,n){var r=e.children,i=e.classes,o=e.className,a=e.color,s=void 0===a?"default":a,l=e.component,u=void 0===l?"button":l,c=e.disabled,d=void 0!==c&&c,f=e.disableElevation,h=void 0!==f&&f,p=e.disableFocusRipple,g=void 0!==p&&p,m=e.endIcon,v=e.focusVisibleClassName,y=e.fullWidth,b=void 0!==y&&y,x=e.size,w=void 0===x?"medium":x,C=e.startIcon,S=e.type,k=void 0===S?"button":S,_=e.variant,E=void 0===_?"text":_,P=(0,Fr.A)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),O=C&&t.createElement("span",{className:(0,Mr.A)(i.startIcon,i["iconSize".concat((0,ri.A)(w))])},C),R=m&&t.createElement("span",{className:(0,Mr.A)(i.endIcon,i["iconSize".concat((0,ri.A)(w))])},m);return t.createElement(ni,(0,j.A)({className:(0,Mr.A)(i.root,i[E],o,"inherit"===s?i.colorInherit:"default"!==s&&i["".concat(E).concat((0,ri.A)(s))],"medium"!==w&&[i["".concat(E,"Size").concat((0,ri.A)(w))],i["size".concat((0,ri.A)(w))]],h&&i.disableElevation,d&&i.disabled,b&&i.fullWidth),component:u,disabled:d,focusRipple:!g,focusVisibleClassName:(0,Mr.A)(i.focusVisible,v),ref:n,type:k},P),t.createElement("span",{className:i.label},O,r,R))}));const oi=(0,Lr.A)((function(e){return{root:(0,j.A)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,Ir.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Ir.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Ir.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,Ir.X4)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,Ir.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,Ir.X4)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,Ir.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(ii);var ai;function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},si.apply(this,arguments)}function li(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",si({width:28,height:28,viewBox:"0 0 28 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,ai||(ai=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 24C28 24.5523 27.5523 25 27 25H1C0.447715 25 0 24.5523 0 24V7C0 6.44772 0.447715 6 1 6H7.46L9.17 3.45C9.35398 3.17061 9.66548 3.00173 10 3H18C18.3345 3.00173 18.646 3.17061 18.83 3.45L20.54 6H27C27.5523 6 28 6.44772 28 7V24ZM2 23H26V8H20C19.6655 7.99827 19.354 7.82939 19.17 7.55L17.46 5H10.54L8.83 7.55C8.64602 7.82939 8.33452 7.99827 8 8H2V23ZM14 21C10.6863 21 8 18.3137 8 15C8 11.6863 10.6863 9 14 9C17.3137 9 20 11.6863 20 15C20 18.3137 17.3137 21 14 21ZM14 11C11.7909 11 10 12.7909 10 15C10 17.2091 11.7909 19 14 19C16.2091 19 18 17.2091 18 15C18 12.7909 16.2091 11 14 11Z",fill:"currentColor"})))}const ui=t.forwardRef(li);n.p;var ci=n(5343),di=n(5077),fi=n(5486);var hi="undefined"!==typeof window?t.useLayoutEffect:t.useEffect,pi=t.forwardRef((function(e,n){var r=e.children,i=e.container,o=e.disablePortal,a=void 0!==o&&o,s=e.onRendered,l=t.useState(null),u=l[0],c=l[1],d=(0,zr.A)(t.isValidElement(r)?r.ref:null,n);return hi((function(){a||c(function(e){return e="function"===typeof e?e():e,Dr.findDOMNode(e)}(i)||document.body)}),[i,a]),hi((function(){if(u&&!a)return(0,fi.A)(n,u),function(){(0,fi.A)(n,null)}}),[n,u,a]),hi((function(){s&&(u||a)&&s()}),[s,u,a]),a?t.isValidElement(r)?t.cloneElement(r,{ref:d}):r:u?Dr.createPortal(r,u):u}));const gi=pi;var mi=n(4315),vi=n(5212),yi=n(5152),bi=n(414);function xi(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}var wi=n(2964);function Ci(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Si(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function ki(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,Vr.A)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&Ci(e,i)}))}function _i(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Ei(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,di.A)(e);return t.body===e?(0,wi.A)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=xi();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(Si(o)+a,"px"),n=(0,di.A)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(Si(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Pi=function(){function e(){(0,yi.A)(this,e),this.modals=[],this.containers=[]}return(0,bi.A)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ci(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ki(t,e.mountNode,e.modalRef,r,!0);var i=_i(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=_i(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Ei(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=_i(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Ci(e.modalRef,!0),ki(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&Ci(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const ji=function(e){var n=e.children,r=e.disableAutoFocus,i=void 0!==r&&r,o=e.disableEnforceFocus,a=void 0!==o&&o,s=e.disableRestoreFocus,l=void 0!==s&&s,u=e.getDoc,c=e.isEnabled,d=e.open,f=t.useRef(),h=t.useRef(null),p=t.useRef(null),g=t.useRef(),m=t.useRef(null),v=t.useCallback((function(e){m.current=Dr.findDOMNode(e)}),[]),y=(0,zr.A)(n.ref,v),b=t.useRef();return t.useEffect((function(){b.current=d}),[d]),!b.current&&d&&"undefined"!==typeof window&&(g.current=u().activeElement),t.useEffect((function(){if(d){var e=(0,di.A)(m.current);i||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!a&&c()&&!f.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():f.current=!1)},n=function(t){!a&&c()&&9===t.keyCode&&e.activeElement===m.current&&(f.current=!0,t.shiftKey?p.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[i,a,l,c,d]),t.createElement(t.Fragment,null,t.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),t.cloneElement(n,{ref:y}),t.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))};var Oi={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const Ri=t.forwardRef((function(e,n){var r=e.invisible,i=void 0!==r&&r,o=e.open,a=(0,Fr.A)(e,["invisible","open"]);return o?t.createElement("div",(0,j.A)({"aria-hidden":!0,ref:n},a,{style:(0,j.A)({},Oi.root,i?Oi.invisible:{},a.style)})):null}));var Ai=new Pi,Ti=t.forwardRef((function(e,n){var r=(0,R.A)(),i=(0,ci.A)({name:"MuiModal",props:(0,j.A)({},e),theme:r}),o=i.BackdropComponent,a=void 0===o?Ri:o,s=i.BackdropProps,l=i.children,u=i.closeAfterTransition,c=void 0!==u&&u,d=i.container,f=i.disableAutoFocus,h=void 0!==f&&f,p=i.disableBackdropClick,g=void 0!==p&&p,m=i.disableEnforceFocus,v=void 0!==m&&m,y=i.disableEscapeKeyDown,b=void 0!==y&&y,x=i.disablePortal,w=void 0!==x&&x,C=i.disableRestoreFocus,S=void 0!==C&&C,k=i.disableScrollLock,_=void 0!==k&&k,E=i.hideBackdrop,P=void 0!==E&&E,O=i.keepMounted,A=void 0!==O&&O,T=i.manager,N=void 0===T?Ai:T,F=i.onBackdropClick,M=i.onClose,L=i.onEscapeKeyDown,I=i.onRendered,D=i.open,z=(0,Fr.A)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),B=t.useState(!0),U=B[0],V=B[1],H=t.useRef({}),W=t.useRef(null),G=t.useRef(null),q=(0,zr.A)(G,n),K=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),X=function(){return(0,di.A)(W.current)},Z=function(){return H.current.modalRef=G.current,H.current.mountNode=W.current,H.current},Y=function(){N.mount(Z(),{disableScrollLock:_}),G.current.scrollTop=0},Q=(0,Br.A)((function(){var e=function(e){return e="function"===typeof e?e():e,Dr.findDOMNode(e)}(d)||X().body;N.add(Z(),e),G.current&&Y()})),$=t.useCallback((function(){return N.isTopModal(Z())}),[N]),J=(0,Br.A)((function(e){W.current=e,e&&(I&&I(),D&&$()?Y():Ci(G.current,!0))})),ee=t.useCallback((function(){N.remove(Z())}),[N]);if(t.useEffect((function(){return function(){ee()}}),[ee]),t.useEffect((function(){D?Q():K&&c||ee()}),[D,ee,K,c,Q]),!A&&!D&&(!K||U))return null;var te=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(r||{zIndex:vi.A}),ne={};return void 0===l.props.tabIndex&&(ne.tabIndex=l.props.tabIndex||"-1"),K&&(ne.onEnter=(0,mi.A)((function(){V(!1)}),l.props.onEnter),ne.onExited=(0,mi.A)((function(){V(!0),c&&ee()}),l.props.onExited)),t.createElement(gi,{ref:J,container:d,disablePortal:w},t.createElement("div",(0,j.A)({ref:q,onKeyDown:function(e){"Escape"===e.key&&$()&&(L&&L(e),b||(e.stopPropagation(),M&&M(e,"escapeKeyDown")))},role:"presentation"},z,{style:(0,j.A)({},te.root,!D&&U?te.hidden:{},z.style)}),P?null:t.createElement(a,(0,j.A)({open:D,onClick:function(e){e.target===e.currentTarget&&(F&&F(e),!g&&M&&M(e,"backdropClick"))}},s)),t.createElement(ji,{disableEnforceFocus:v,disableAutoFocus:h,disableRestoreFocus:S,getDoc:X,isEnabled:$,open:D},t.cloneElement(l,ne))))}));const Ni=Ti;var Fi=n(2061);const Mi=!1;var Li="unmounted",Ii="exited",Di="entering",zi="entered",Bi="exiting",Ui=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Ii,r.appearStatus=Di):i=zi:i=t.unmountOnExit||t.mountOnEnter?Li:Ii,r.state={status:i},r.nextCallback=null,r}(0,N.A)(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Li?{status:Ii}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Di&&n!==zi&&(t=Di):n!==Di&&n!==zi||(t=Bi)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Di){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Dr.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ii&&this.setState({status:Li})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Dr.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Mi?this.safeSetState({status:zi},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Di},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:zi},(function(){t.props.onEntered(o,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Dr.findDOMNode(this);t&&!Mi?(this.props.onExit(r),this.safeSetState({status:Bi},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ii},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ii},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Dr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Li)return null;var n=this.props,r=n.children,i=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,de.A)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(Wr.Provider,{value:null},"function"===typeof r?r(e,i):t.cloneElement(t.Children.only(r),i))},n}(t.Component);function Vi(){}Ui.contextType=Wr,Ui.propTypes={},Ui.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vi,onEntering:Vi,onEntered:Vi,onExit:Vi,onExiting:Vi,onExited:Vi},Ui.UNMOUNTED=Li,Ui.EXITED=Ii,Ui.ENTERING=Di,Ui.ENTERED=zi,Ui.EXITING=Bi;const Hi=Ui;var Wi=n(1980),Gi=n(4040);function qi(){return(0,R.A)()||Gi.A}var Ki=function(e){return e.scrollTop};function Xi(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var Zi={entering:{opacity:1},entered:{opacity:1}},Yi={enter:Wi.p0.enteringScreen,exit:Wi.p0.leavingScreen},Qi=t.forwardRef((function(e,n){var r=e.children,i=e.disableStrictModeCompat,o=void 0!==i&&i,a=e.in,s=e.onEnter,l=e.onEntered,u=e.onEntering,c=e.onExit,d=e.onExited,f=e.onExiting,h=e.style,p=e.TransitionComponent,g=void 0===p?Hi:p,m=e.timeout,v=void 0===m?Yi:m,y=(0,Fr.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),b=qi(),x=b.unstable_strictMode&&!o,w=t.useRef(null),C=(0,zr.A)(r.ref,n),S=(0,zr.A)(x?w:void 0,C),k=function(e){return function(t,n){if(e){var r=x?[w.current,t]:[t,n],i=(0,Fi.A)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},_=k(u),E=k((function(e,t){Ki(e);var n=Xi({style:h,timeout:v},{mode:"enter"});e.style.webkitTransition=b.transitions.create("opacity",n),e.style.transition=b.transitions.create("opacity",n),s&&s(e,t)})),P=k(l),O=k(f),R=k((function(e){var t=Xi({style:h,timeout:v},{mode:"exit"});e.style.webkitTransition=b.transitions.create("opacity",t),e.style.transition=b.transitions.create("opacity",t),c&&c(e)})),A=k(d);return t.createElement(g,(0,j.A)({appear:!0,in:a,nodeRef:x?w:void 0,onEnter:E,onEntered:P,onEntering:_,onExit:R,onExited:A,onExiting:O,timeout:v},y),(function(e,n){return t.cloneElement(r,(0,j.A)({style:(0,j.A)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},Zi[e],h,r.props.style),ref:S},n))}))}));const $i=Qi;var Ji=t.forwardRef((function(e,n){var r=e.children,i=e.classes,o=e.className,a=e.invisible,s=void 0!==a&&a,l=e.open,u=e.transitionDuration,c=e.TransitionComponent,d=void 0===c?$i:c,f=(0,Fr.A)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return t.createElement(d,(0,j.A)({in:l,timeout:u},f),t.createElement("div",{className:(0,Mr.A)(i.root,o,s&&i.invisible),"aria-hidden":!0,ref:n},r))}));const eo=(0,Lr.A)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Ji);var to=n(376);function no(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=window.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var ro={enter:Wi.p0.enteringScreen,exit:Wi.p0.leavingScreen},io=t.forwardRef((function(e,n){var r=e.children,i=e.direction,o=void 0===i?"down":i,a=e.in,s=e.onEnter,l=e.onEntered,u=e.onEntering,c=e.onExit,d=e.onExited,f=e.onExiting,h=e.style,p=e.timeout,g=void 0===p?ro:p,m=e.TransitionComponent,v=void 0===m?Hi:m,y=(0,Fr.A)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=qi(),x=t.useRef(null),w=t.useCallback((function(e){x.current=Dr.findDOMNode(e)}),[]),C=(0,zr.A)(r.ref,w),S=(0,zr.A)(C,n),k=function(e){return function(t){e&&(void 0===t?e(x.current):e(x.current,t))}},_=k((function(e,t){no(o,e),Ki(e),s&&s(e,t)})),E=k((function(e,t){var n=Xi({timeout:g,style:h},{mode:"enter"});e.style.webkitTransition=b.transitions.create("-webkit-transform",(0,j.A)({},n,{easing:b.transitions.easing.easeOut})),e.style.transition=b.transitions.create("transform",(0,j.A)({},n,{easing:b.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",u&&u(e,t)})),P=k(l),O=k(f),R=k((function(e){var t=Xi({timeout:g,style:h},{mode:"exit"});e.style.webkitTransition=b.transitions.create("-webkit-transform",(0,j.A)({},t,{easing:b.transitions.easing.sharp})),e.style.transition=b.transitions.create("transform",(0,j.A)({},t,{easing:b.transitions.easing.sharp})),no(o,e),c&&c(e)})),A=k((function(e){e.style.webkitTransition="",e.style.transition="",d&&d(e)})),T=t.useCallback((function(){x.current&&no(o,x.current)}),[o]);return t.useEffect((function(){if(!a&&"down"!==o&&"right"!==o){var e=(0,to.A)((function(){x.current&&no(o,x.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[o,a]),t.useEffect((function(){a||T()}),[a,T]),t.createElement(v,(0,j.A)({nodeRef:x,onEnter:_,onEntered:P,onEntering:E,onExit:R,onExited:A,onExiting:O,appear:!0,in:a,timeout:g},y),(function(e,n){return t.cloneElement(r,(0,j.A)({ref:S,style:(0,j.A)({visibility:"exited"!==e||a?void 0:"hidden"},h,r.props.style)},n))}))}));const oo=io;var ao=t.forwardRef((function(e,n){var r=e.classes,i=e.className,o=e.component,a=void 0===o?"div":o,s=e.square,l=void 0!==s&&s,u=e.elevation,c=void 0===u?1:u,d=e.variant,f=void 0===d?"elevation":d,h=(0,Fr.A)(e,["classes","className","component","square","elevation","variant"]);return t.createElement(a,(0,j.A)({className:(0,Mr.A)(r.root,i,"outlined"===f?r.outlined:r["elevation".concat(c)],!l&&r.rounded),ref:n},h))}));const so=(0,Lr.A)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,j.A)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(ao);var lo={left:"right",right:"left",top:"down",bottom:"up"};var uo={enter:Wi.p0.enteringScreen,exit:Wi.p0.leavingScreen},co=t.forwardRef((function(e,n){var r=e.anchor,i=void 0===r?"left":r,o=e.BackdropProps,a=e.children,s=e.classes,l=e.className,u=e.elevation,c=void 0===u?16:u,d=e.ModalProps,f=(d=void 0===d?{}:d).BackdropProps,h=(0,Fr.A)(d,["BackdropProps"]),p=e.onClose,g=e.open,m=void 0!==g&&g,v=e.PaperProps,y=void 0===v?{}:v,b=e.SlideProps,x=e.TransitionComponent,w=void 0===x?oo:x,C=e.transitionDuration,S=void 0===C?uo:C,k=e.variant,_=void 0===k?"temporary":k,E=(0,Fr.A)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),P=qi(),O=t.useRef(!1);t.useEffect((function(){O.current=!0}),[]);var R=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?lo[t]:t}(P,i),A=t.createElement(so,(0,j.A)({elevation:"temporary"===_?c:0,square:!0},y,{className:(0,Mr.A)(s.paper,s["paperAnchor".concat((0,ri.A)(R))],y.className,"temporary"!==_&&s["paperAnchorDocked".concat((0,ri.A)(R))])}),a);if("permanent"===_)return t.createElement("div",(0,j.A)({className:(0,Mr.A)(s.root,s.docked,l),ref:n},E),A);var T=t.createElement(w,(0,j.A)({in:m,direction:lo[R],timeout:S,appear:O.current},b),A);return"persistent"===_?t.createElement("div",(0,j.A)({className:(0,Mr.A)(s.root,s.docked,l),ref:n},E),T):t.createElement(Ni,(0,j.A)({BackdropProps:(0,j.A)({},o,f,{transitionDuration:S}),BackdropComponent:eo,className:(0,Mr.A)(s.root,s.modal,l),open:m,onClose:p,ref:n},E,h),T)}));const fo=(0,Lr.A)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(co);var ho=t.forwardRef((function(e,n){var r=e.edge,i=void 0!==r&&r,o=e.children,a=e.classes,s=e.className,l=e.color,u=void 0===l?"default":l,c=e.disabled,d=void 0!==c&&c,f=e.disableFocusRipple,h=void 0!==f&&f,p=e.size,g=void 0===p?"medium":p,m=(0,Fr.A)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return t.createElement(ni,(0,j.A)({className:(0,Mr.A)(a.root,s,"default"!==u&&a["color".concat((0,ri.A)(u))],d&&a.disabled,"small"===g&&a["size".concat((0,ri.A)(g))],{start:a.edgeStart,end:a.edgeEnd}[i]),centerRipple:!0,focusRipple:!h,disabled:d,ref:n},m),t.createElement("span",{className:a.label},o))}));const po=(0,Lr.A)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,Ir.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Ir.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Ir.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(ho);var go=n(8596),mo=n(1325);const vo=n.p+"static/media/reverse_camera.cee0200b151941cc83c182167a85d667.svg";var yo=n(8730),bo=n.n(yo),xo=n(8594),wo=n.n(xo);const Co=async e=>e instanceof HTMLCanvasElement?e:await(0,xo.urlOrBlobToCanvas)(e),So=async(e,t)=>{const n=new(wo())(t);let r=await n.findRegions(e);const i=(e=>{if(0===e.length)return qn;const t=e.reduce(((e,t)=>(e.confidence=e.confidence||0,t.confidence=t.confidence||0,e.confidence>=t.confidence?e:t)));return t.normalizedRect})(r);return{selectedRegion:(0,Yn.isEqual)(i,qn)?qn:i,regions:r}},ko=e=>{let{image:t,settings:n,region:r,filters:i,text:o}=e;const a=new(wo())(n);let s=o?{text:o}:{};return r&&(s={...s,cropRect:r}),a.find(s,t,i)};var _o=n(4434);const Eo="environment";const Po=function(e){var n;const{isToggle:r,onToggleModal:i}=e,o=(0,t.useRef)(null),[a,s]=(0,t.useState)(Eo),[l,u]=(0,t.useState)(1),c=Nr((e=>e)),{search:d,settings:f}=c,h=Ne(),p=Tr(),{preFilter:g}=d,m=(0,t.useCallback)((()=>{s((e=>e===Eo?"user":Eo))}),[]),v=async e=>{let t;p(br(!0)),p(er()),"/result"!==h.location.pathname&&h.push("/result");let n=await Co(e);p(fr(n)),p(nr(!1)),y();try{if(f.regions){let e=await So(n,f);p(dr(e.regions)),t=e.selectedRegion,p(pr(t))}}catch(r){}finally{const r=[{key:f.visualSearchFilterKey,values:Object.keys(g)}];let i=[];ko({image:n,settings:f,filters:(0,Yn.isEmpty)(g)?void 0:r,region:t}).then((t=>{null===t||void 0===t||t.results.forEach((e=>{i.push({sku:e.sku,score:e.score})}));const r={...t,filters:i};p(hr(r)),p(br(!1)),p(wr(!0)),p(Sr(r)),p(Cr(n)),p(kr(g)),p(_r(e))})).catch((e=>{console.log("error input search",e),p(br(!1))}))}},y=()=>{s("environment"),u(1),i()};return(0,_o.jsx)("div",{className:"box-camera-custom",children:(0,_o.jsx)(fo,{anchor:"bottom",open:r,onClose:y,className:"modal-togggle-cam",children:(0,_o.jsxs)("div",{className:"wrap-camera",children:[(0,_o.jsx)("button",{className:"btn-close-modal right",style:{backgroundColor:"#666666"},onClick:y,children:(0,_o.jsx)(go.A,{style:{fontSize:20,color:"#fff"}})}),(0,_o.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",width:"100%"},className:"full-height",children:(0,_o.jsx)(bo(),{audio:!1,width:"100%",className:"full-height",imageSmoothing:!0,screenshotFormat:"image/jpeg",forceScreenshotSourceSize:!0,videoConstraints:{width:1080,aspectRatio:1.11111,facingMode:a},ref:o,style:{height:"100%",width:"100%",objectFit:"cover",transform:"scale(".concat(l,")")},screenshotQuality:1,children:e=>{let{getScreenshot:t}=e;return(0,_o.jsx)("button",{onClick:()=>{const e=t();v(e),p(sr(e))},className:"btn-capture-camera",children:(0,_o.jsx)("svg",{width:"63",height:"63",viewBox:"0 0 63 63",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,_o.jsx)("circle",{cx:"31.5",cy:"31.5",r:"31.5",fill:"white"})})})}})}),(0,_o.jsx)("button",{className:"btn-switch-camera",onClick:m,children:(0,_o.jsx)("img",{src:vo,alt:"",width:52,height:52})}),(0,_o.jsxs)("div",{className:"box-scale-camera",style:{backgroundColor:null===(n=f.theme)||void 0===n?void 0:n.secondaryColor},children:[(0,_o.jsx)("button",{className:"".concat(1===l&&"active"),style:{backgroundColor:1===l?"white":"",color:1===l?"black":"white"},onClick:()=>u(1),children:"1"}),(0,_o.jsx)("button",{className:"".concat(1.5===l&&"active"),style:{backgroundColor:1.5===l?"white":"",color:1.5===l?"black":"white"},onClick:()=>u(1.5),children:"1.5"}),(0,_o.jsx)("button",{className:"".concat(2===l&&"active"),style:{backgroundColor:2===l?"white":"",color:2===l?"black":"white"},onClick:()=>u(2),children:"2"})]}),(0,_o.jsxs)("div",{className:"wrap-box-input-mobile custom-library",children:[(0,_o.jsx)("input",{id:"icon-button-file",type:"file",style:{display:"none"},onChange:e=>{var t;const n=null===(t=e.target)||void 0===t?void 0:t.files[0];n&&(p(sr(URL.createObjectURL(n))),v(n))},accept:"image/jpeg,image/png,image/webp",onClick:e=>{e.target.value=""}}),(0,_o.jsx)("label",{htmlFor:"icon-button-file",children:(0,_o.jsx)(po,{color:"primary","aria-label":"upload picture",component:"span",style:{width:32,height:32,borderRadius:"100%",padding:7,backgroundColor:"#F3F3F5"},children:(0,_o.jsx)(mo.A,{style:{fontSize:20,color:"red"}})})})]})]})})})};var jo;function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oo.apply(this,arguments)}function Ro(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",Oo({width:24,height:22,viewBox:"0 0 22 21",style:{enableBackground:"new 0 0 22 20.28"},xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,jo||(jo=t.createElement("path",{className:"st3",d:"M 10.959 1.845 C 11.109 1.845 11.266 1.886 11.408 1.96 L 19.66 6.661 C 19.935 6.825 20.101 7.112 20.101 7.424 L 20.101 15.776 C 20.101 16.111 19.91 16.415 19.61 16.562 L 15.912 18.384 C 15.787 18.449 15.646 18.474 15.513 18.474 C 15.347 18.474 15.189 18.433 15.048 18.343 C 14.782 18.178 14.624 17.9 14.624 17.596 L 14.624 10.041 L 10.959 7.957 L 7.294 10.041 L 7.294 17.605 C 7.294 17.908 7.136 18.196 6.87 18.351 C 6.728 18.441 6.562 18.483 6.405 18.483 C 6.272 18.483 6.13 18.449 6.006 18.392 L 2.307 16.57 C 2.008 16.415 1.817 16.111 1.817 15.776 L 1.817 7.424 C 1.817 7.112 1.983 6.817 2.265 6.661 L 10.519 1.96 C 10.651 1.886 10.801 1.845 10.959 1.845 M 10.959 0.205 C 10.51 0.205 10.069 0.32 9.679 0.541 L 1.426 5.242 C 0.645 5.693 0.155 6.529 0.155 7.424 L 0.155 15.776 C 0.155 16.735 0.695 17.596 1.568 18.031 L 5.266 19.852 C 5.615 20.025 6.014 20.115 6.405 20.115 C 6.878 20.115 7.343 19.984 7.742 19.738 C 8.499 19.278 8.956 18.474 8.956 17.596 L 8.956 10.984 L 10.959 9.844 L 12.962 10.984 L 12.962 17.596 C 12.962 18.474 13.41 19.278 14.175 19.738 C 14.583 19.984 15.039 20.115 15.522 20.115 C 15.912 20.115 16.311 20.025 16.66 19.852 L 20.359 18.031 C 21.231 17.605 21.771 16.735 21.771 15.776 L 21.771 7.424 C 21.771 6.529 21.281 5.693 20.492 5.242 L 12.239 0.541 C 11.848 0.32 11.408 0.205 10.959 0.205 Z",fill:"currentColor",transform:"matrix(0.999999, 0.00121, -0.00121, 0.999999, 0.012302, -0.013258)"})))}const Ao=t.forwardRef(Ro);n.p;var To;function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},No.apply(this,arguments)}function Fo(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",No({width:12,height:12,viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,To||(To=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66658 10.9888C3.65328 11.6481 4.81331 12 6 12C7.5913 12 9.11742 11.3679 10.2426 10.2426C11.3679 9.11742 12 7.5913 12 6C12 4.81331 11.6481 3.65328 10.9888 2.66658C10.3295 1.67989 9.39246 0.910851 8.2961 0.456725C7.19975 0.0025997 5.99335 -0.11622 4.82946 0.115291C3.66557 0.346802 2.59648 0.918247 1.75736 1.75736C0.918247 2.59648 0.346802 3.66557 0.115291 4.82946C-0.11622 5.99335 0.0025997 7.19975 0.456725 8.2961C0.910851 9.39246 1.67989 10.3295 2.66658 10.9888ZM3.14278 1.72387C3.98852 1.15877 4.98284 0.857145 6 0.857145C7.36397 0.857145 8.67208 1.39898 9.63655 2.36345C10.601 3.32793 11.1429 4.63603 11.1429 6C11.1429 7.01716 10.8412 8.01148 10.2761 8.85722C9.71103 9.70296 8.90782 10.3621 7.96809 10.7514C7.02835 11.1406 5.9943 11.2425 4.99668 11.044C3.99906 10.8456 3.08269 10.3558 2.36345 9.63655C1.64421 8.91731 1.1544 8.00094 0.955964 7.00332C0.757526 6.00571 0.859372 4.97165 1.24862 4.03192C1.63787 3.09218 2.29705 2.28898 3.14278 1.72387ZM6 2.57143C5.87285 2.57143 5.74857 2.60913 5.64285 2.67977C5.53713 2.75041 5.45473 2.85081 5.40608 2.96827C5.35742 3.08574 5.34469 3.215 5.36949 3.3397C5.3943 3.4644 5.45553 3.57895 5.54543 3.66885C5.63534 3.75876 5.74988 3.81999 5.87458 3.84479C5.99929 3.8696 6.12854 3.85686 6.24601 3.80821C6.36348 3.75955 6.46388 3.67715 6.53452 3.57144C6.60515 3.46572 6.64286 3.34143 6.64286 3.21429C6.64286 3.04379 6.57513 2.88028 6.45457 2.75972C6.33401 2.63916 6.1705 2.57143 6 2.57143ZM6.42857 8.57143V5.14286H4.71428V6H5.57143V8.57143H4.28571V9.42857H7.71428V8.57143H6.42857Z",fill:"currentColor"})))}const Mo=t.forwardRef(Fo);n.p;var Lo;function Io(){return Io=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Io.apply(this,arguments)}function Do(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",Io({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,Lo||(Lo=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5 22.5H4.5C4.10232 22.4995 3.72105 22.3414 3.43984 22.0602C3.15864 21.7789 3.00046 21.3977 3 21V3C3.00046 2.60232 3.15864 2.22105 3.43984 1.93984C3.72105 1.65864 4.10232 1.50046 4.5 1.5H13.5C13.8977 1.50046 14.279 1.65864 14.5602 1.93984C14.8414 2.22105 14.9995 2.60232 15 3V5.25H13.5V3H4.5V21H13.5V18.75H15V21C14.9995 21.3977 14.8414 21.7789 14.5602 22.0602C14.279 22.3414 13.8977 22.4995 13.5 22.5ZM18.129 12.75L15.4395 15.4395L16.5 16.5L21 12L16.5 7.5L15.4395 8.5605L18.129 11.25H8.25C7.83579 11.25 7.5 11.5858 7.5 12C7.5 12.4142 7.83579 12.75 8.25 12.75H18.129Z",fill:"#AAABB5"})))}const zo=t.forwardRef(Do);n.p;var Bo;function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uo.apply(this,arguments)}function Vo(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",Uo({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,Bo||(Bo=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.475 3.575C13.7649 3.28505 13.7649 2.81495 13.475 2.525C13.1851 2.23505 12.715 2.23505 12.425 2.525L8.70711 6.24289C8.31658 6.63342 7.68342 6.63342 7.29289 6.24289L3.575 2.525C3.28505 2.23505 2.81495 2.23505 2.525 2.525C2.23505 2.81495 2.23505 3.28505 2.525 3.575L6.24289 7.29289C6.63342 7.68342 6.63342 8.31658 6.24289 8.70711L2.525 12.425C2.23505 12.7149 2.23505 13.1851 2.525 13.475C2.81495 13.7649 3.28505 13.7649 3.575 13.475L7.29289 9.75711C7.68342 9.36658 8.31658 9.36658 8.70711 9.75711L12.425 13.475C12.7149 13.7649 13.1851 13.7649 13.475 13.475C13.7649 13.1851 13.7649 12.715 13.475 12.425L9.75711 8.70711C9.36658 8.31658 9.36658 7.68342 9.75711 7.29289L13.475 3.575Z",fill:"currentColor"})))}const Ho=t.forwardRef(Vo);n.p;var Wo;function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Go.apply(this,arguments)}function qo(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",Go({width:80,height:10,viewBox:"0 0 80 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,Wo||(Wo=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.4951 2.32957V7.28957H54.9651V3.93957C55.1251 3.78624 55.2718 3.66957 55.4051 3.58957C55.5384 3.5029 55.6984 3.45957 55.8851 3.45957C56.0984 3.45957 56.2518 3.52624 56.3451 3.65957C56.4451 3.7929 56.4951 4.03957 56.4951 4.39957V7.28957H57.9651V4.20957C57.9651 3.58957 57.8451 3.1029 57.6051 2.74957C57.3651 2.38957 56.9718 2.20957 56.4251 2.20957C56.0918 2.20957 55.7951 2.2829 55.5351 2.42957C55.2751 2.57624 55.0418 2.7529 54.8351 2.95957H54.7951L54.6951 2.32957H53.4951ZM59.3778 9.19957C59.4911 9.21957 59.6211 9.22957 59.7677 9.22957C60.1611 9.22957 60.4877 9.15624 60.7477 9.00957C61.0144 8.86957 61.2378 8.65957 61.4177 8.37957C61.6044 8.09957 61.7777 7.7529 61.9377 7.33957L63.6577 2.32957H62.2477L61.6478 4.45957C61.5877 4.6929 61.5277 4.92957 61.4678 5.16957L61.3078 5.86957H61.2677C61.2011 5.6229 61.1377 5.3829 61.0777 5.14957C61.0177 4.91624 60.9511 4.68624 60.8778 4.45957L60.1677 2.32957H58.6877L60.5977 7.15957L60.5277 7.41957C60.4678 7.60624 60.3677 7.75957 60.2277 7.87957C60.0944 8.00624 59.9044 8.06957 59.6577 8.06957C59.6111 8.06957 59.5611 8.06624 59.5077 8.05957C59.4611 8.05957 59.4011 8.04957 59.3277 8.02957L59.0677 9.10957C59.1677 9.14957 59.2711 9.17957 59.3778 9.19957ZM64.4326 2.32957V7.28957H65.9026V4.40957C66.0359 4.06957 66.2026 3.8329 66.4026 3.69957C66.6093 3.56624 66.8059 3.49957 66.9926 3.49957C67.0993 3.49957 67.1893 3.50624 67.2626 3.51957C67.3359 3.52624 67.4126 3.53957 67.4926 3.55957L67.7726 2.30957C67.7059 2.27624 67.6259 2.2529 67.5326 2.23957C67.4393 2.21957 67.3226 2.20957 67.1826 2.20957C66.9226 2.20957 66.6659 2.2929 66.4126 2.45957C66.1659 2.61957 65.9526 2.86624 65.7726 3.19957H65.7326L65.6326 2.32957H64.4326ZM68.417 2.32957V7.28957H69.887V2.32957H68.417ZM68.547 1.38957C68.7003 1.52957 68.9003 1.59957 69.147 1.59957C69.3936 1.59957 69.5936 1.52957 69.747 1.38957C69.9003 1.24957 69.977 1.0629 69.977 0.829571C69.977 0.596237 69.9003 0.40957 69.747 0.269571C69.5936 0.12957 69.3936 0.0595703 69.147 0.0595703C68.9003 0.0595703 68.7003 0.12957 68.547 0.269571C68.3936 0.40957 68.317 0.596237 68.317 0.829571C68.317 1.0629 68.3936 1.24957 68.547 1.38957ZM71.6306 7.21957C71.9773 7.34624 72.314 7.40957 72.6406 7.40957C73.0873 7.40957 73.4606 7.33957 73.7606 7.19957C74.0606 7.0529 74.2873 6.85957 74.4406 6.61957C74.6006 6.37957 74.6806 6.10957 74.6806 5.80957C74.6806 5.53624 74.6206 5.3029 74.5006 5.10957C74.3806 4.91624 74.214 4.75624 74.0006 4.62957C73.794 4.49624 73.564 4.38624 73.3106 4.29957C73.104 4.2329 72.9306 4.1729 72.7906 4.11957C72.6573 4.05957 72.5573 3.99624 72.4906 3.92957C72.424 3.8629 72.3906 3.7829 72.3906 3.68957C72.3906 3.57624 72.4373 3.4829 72.5306 3.40957C72.624 3.33624 72.7673 3.29957 72.9606 3.29957C73.134 3.29957 73.3106 3.32957 73.4906 3.38957C73.6706 3.4429 73.8506 3.5329 74.0306 3.65957L74.6606 2.83957C74.4473 2.6529 74.1906 2.5029 73.8906 2.38957C73.5973 2.26957 73.2706 2.20957 72.9106 2.20957C72.344 2.20957 71.884 2.3529 71.5306 2.63957C71.184 2.91957 71.0106 3.2929 71.0106 3.75957C71.0106 4.01957 71.0706 4.2429 71.1906 4.42957C71.3173 4.61624 71.4806 4.77624 71.6806 4.90957C71.8806 5.0429 72.1006 5.1529 72.3406 5.23957C72.5206 5.30624 72.6806 5.36957 72.8206 5.42957C72.9673 5.4829 73.084 5.54624 73.1706 5.61957C73.264 5.6929 73.3106 5.78624 73.3106 5.89957C73.3106 6.02624 73.2606 6.12957 73.1606 6.20957C73.0606 6.2829 72.9006 6.31957 72.6806 6.31957C72.474 6.31957 72.2573 6.28624 72.0306 6.21957C71.8106 6.14624 71.5873 6.01957 71.3606 5.83957L70.7406 6.66957C70.9873 6.90957 71.284 7.0929 71.6306 7.21957ZM76.2742 3.91957C76.5742 4.0929 76.9076 4.17957 77.2742 4.17957C77.6342 4.17957 77.9642 4.0929 78.2642 3.91957C78.5709 3.74624 78.8109 3.50957 78.9842 3.20957C79.1642 2.9029 79.2542 2.5529 79.2542 2.15957C79.2542 1.76624 79.1642 1.41957 78.9842 1.11957C78.8109 0.812904 78.5709 0.572904 78.2642 0.399571C77.9642 0.226237 77.6342 0.13957 77.2742 0.13957C76.9076 0.13957 76.5742 0.226237 76.2742 0.399571C75.9742 0.572904 75.7342 0.812904 75.5542 1.11957C75.3742 1.41957 75.2842 1.76624 75.2842 2.15957C75.2842 2.5529 75.3742 2.9029 75.5542 3.20957C75.7342 3.50957 75.9742 3.74624 76.2742 3.91957ZM78.0142 3.49957C77.8009 3.62624 77.5542 3.68957 77.2742 3.68957C76.9942 3.68957 76.7442 3.62624 76.5242 3.49957C76.3109 3.3729 76.1409 3.19624 76.0142 2.96957C75.8942 2.73624 75.8342 2.46624 75.8342 2.15957C75.8342 1.8529 75.8942 1.58624 76.0142 1.35957C76.1409 1.12624 76.3109 0.946237 76.5242 0.819571C76.7442 0.692904 76.9942 0.629571 77.2742 0.629571C77.5542 0.629571 77.8009 0.692904 78.0142 0.819571C78.2276 0.946237 78.3942 1.12624 78.5142 1.35957C78.6409 1.58624 78.7042 1.8529 78.7042 2.15957C78.7042 2.46624 78.6409 2.73624 78.5142 2.96957C78.3942 3.19624 78.2276 3.3729 78.0142 3.49957ZM76.4642 1.15957V3.12957H77.0342V2.52957H77.3242L77.6242 3.12957H78.2242L77.8142 2.35957C77.9342 2.30624 78.0209 2.22957 78.0742 2.12957C78.1342 2.02957 78.1642 1.92624 78.1642 1.81957C78.1642 1.5929 78.0876 1.42624 77.9342 1.31957C77.7809 1.2129 77.5876 1.15957 77.3542 1.15957H76.4642ZM77.2442 2.12957H77.0342V1.58957H77.2442C77.3442 1.58957 77.4176 1.61624 77.4642 1.66957C77.5176 1.71624 77.5442 1.77624 77.5442 1.84957C77.5442 1.92957 77.5176 1.99624 77.4642 2.04957C77.4176 2.1029 77.3442 2.12957 77.2442 2.12957ZM0.745093 0.729571V7.28957H1.57509V4.68957H2.65509C3.13509 4.68957 3.55509 4.61624 3.91509 4.46957C4.28176 4.31624 4.56509 4.0929 4.76509 3.79957C4.97176 3.49957 5.07509 3.11957 5.07509 2.65957C5.07509 2.17957 4.97176 1.79957 4.76509 1.51957C4.55843 1.23957 4.27176 1.03957 3.90509 0.919571C3.53843 0.792904 3.10843 0.729571 2.61509 0.729571H0.745093ZM2.55509 4.00957H1.57509V1.39957H2.51509C3.08843 1.39957 3.51843 1.4929 3.80509 1.67957C4.09843 1.85957 4.24509 2.18624 4.24509 2.65957C4.24509 3.11957 4.10509 3.45957 3.82509 3.67957C3.55176 3.89957 3.12843 4.00957 2.55509 4.00957ZM6.86501 7.10957C7.21168 7.30957 7.58168 7.40957 7.97501 7.40957C8.37501 7.40957 8.74502 7.30957 9.08502 7.10957C9.42501 6.90957 9.69835 6.61957 9.90501 6.23957C10.1183 5.85957 10.225 5.4029 10.225 4.86957C10.225 4.3229 10.1183 3.85957 9.90501 3.47957C9.69835 3.09957 9.42501 2.80957 9.08502 2.60957C8.74502 2.40957 8.37501 2.30957 7.97501 2.30957C7.58168 2.30957 7.21168 2.40957 6.86501 2.60957C6.52501 2.80957 6.24835 3.09957 6.03501 3.47957C5.82835 3.85957 5.72501 4.3229 5.72501 4.86957C5.72501 5.4029 5.82835 5.85957 6.03501 6.23957C6.24835 6.61957 6.52501 6.90957 6.86501 7.10957ZM8.71501 6.49957C8.50168 6.6529 8.25501 6.72957 7.97501 6.72957C7.69501 6.72957 7.44835 6.6529 7.23501 6.49957C7.02835 6.33957 6.86501 6.11957 6.74501 5.83957C6.63168 5.55957 6.57501 5.23624 6.57501 4.86957C6.57501 4.49624 6.63168 4.16957 6.74501 3.88957C6.86501 3.6029 7.02835 3.3829 7.23501 3.22957C7.44835 3.06957 7.69501 2.98957 7.97501 2.98957C8.25501 2.98957 8.50168 3.06957 8.71501 3.22957C8.92835 3.3829 9.09168 3.6029 9.20502 3.88957C9.31835 4.16957 9.37502 4.49624 9.37502 4.86957C9.37502 5.23624 9.31835 5.55957 9.20502 5.83957C9.09168 6.11957 8.92835 6.33957 8.71501 6.49957ZM10.8859 2.42957L12.2359 7.28957H13.2559L13.9059 4.68957C13.9659 4.46957 14.0192 4.24624 14.0659 4.01957C14.1192 3.7929 14.1692 3.53624 14.2159 3.24957H14.2559C14.3092 3.53624 14.3592 3.7929 14.4059 4.01957C14.4592 4.23957 14.5125 4.4629 14.5659 4.68957L15.2159 7.28957H16.2859L17.5959 2.42957H16.7959L16.0859 5.23957L15.9459 5.89957C15.8992 6.11957 15.8492 6.35957 15.7959 6.61957H15.7559C15.7025 6.35957 15.6492 6.11957 15.5959 5.89957C15.5492 5.67957 15.4959 5.45957 15.4359 5.23957L14.7059 2.42957H13.8059L13.0859 5.23957L12.9259 5.89957C12.8792 6.11957 12.8292 6.35957 12.7759 6.61957H12.7359C12.6959 6.35957 12.6525 6.11957 12.6059 5.89957C12.5592 5.67957 12.5092 5.45957 12.4559 5.23957L11.7459 2.42957H10.8859ZM19.3943 7.10957C19.7543 7.30957 20.151 7.40957 20.5843 7.40957C20.9176 7.40957 21.2143 7.3629 21.4743 7.26957C21.741 7.17624 21.981 7.05624 22.1943 6.90957L21.8943 6.36957C21.7276 6.4829 21.541 6.5729 21.3343 6.63957C21.1343 6.70624 20.9176 6.73957 20.6843 6.73957C20.391 6.73957 20.121 6.66957 19.8743 6.52957C19.6276 6.3829 19.431 6.16957 19.2843 5.88957C19.1711 5.66316 19.1037 5.39316 19.082 5.07957H22.3343C22.3543 4.99957 22.3643 4.91957 22.3643 4.83957C22.371 4.75957 22.3743 4.67624 22.3743 4.58957C22.3743 4.12957 22.301 3.72957 22.1543 3.38957C22.0076 3.04957 21.7876 2.78624 21.4943 2.59957C21.2076 2.40624 20.8576 2.30957 20.4443 2.30957C20.071 2.30957 19.7176 2.4129 19.3843 2.61957C19.051 2.82624 18.7776 3.11957 18.5643 3.49957C18.351 3.87957 18.2443 4.3329 18.2443 4.85957C18.2443 5.39957 18.3476 5.85957 18.5543 6.23957C18.761 6.6129 19.041 6.9029 19.3943 7.10957ZM21.6343 4.42957H19.0962C19.1257 4.1659 19.185 3.94256 19.2743 3.75957C19.4143 3.48624 19.591 3.28957 19.8043 3.16957C20.0176 3.0429 20.2343 2.97957 20.4543 2.97957C20.8343 2.97957 21.1243 3.10624 21.3243 3.35957C21.531 3.60624 21.6343 3.9629 21.6343 4.42957ZM23.5752 2.42957V7.28957H24.3952V4.16957C24.5619 3.75624 24.7552 3.46624 24.9752 3.29957C25.2019 3.1329 25.4186 3.04957 25.6252 3.04957C25.7252 3.04957 25.8052 3.05624 25.8652 3.06957C25.9319 3.07624 26.0019 3.08957 26.0752 3.10957L26.2552 2.40957C26.1752 2.36957 26.0952 2.3429 26.0152 2.32957C25.9352 2.31624 25.8419 2.30957 25.7352 2.30957C25.4552 2.30957 25.1952 2.39957 24.9552 2.57957C24.7153 2.75957 24.5152 3.0029 24.3552 3.30957H24.3252L24.2552 2.42957H23.5752ZM27.7244 7.10957C28.0844 7.30957 28.4811 7.40957 28.9144 7.40957C29.2477 7.40957 29.5444 7.3629 29.8044 7.26957C30.0711 7.17624 30.3111 7.05624 30.5244 6.90957L30.2244 6.36957C30.0577 6.4829 29.8711 6.5729 29.6644 6.63957C29.4644 6.70624 29.2477 6.73957 29.0144 6.73957C28.7211 6.73957 28.4511 6.66957 28.2044 6.52957C27.9577 6.3829 27.7611 6.16957 27.6144 5.88957C27.5012 5.66316 27.4337 5.39316 27.4121 5.07957H30.6644C30.6844 4.99957 30.6944 4.91957 30.6944 4.83957C30.7011 4.75957 30.7044 4.67624 30.7044 4.58957C30.7044 4.12957 30.6311 3.72957 30.4844 3.38957C30.3377 3.04957 30.1177 2.78624 29.8244 2.59957C29.5377 2.40624 29.1877 2.30957 28.7744 2.30957C28.4011 2.30957 28.0477 2.4129 27.7144 2.61957C27.3811 2.82624 27.1077 3.11957 26.8944 3.49957C26.6811 3.87957 26.5744 4.3329 26.5744 4.85957C26.5744 5.39957 26.6777 5.85957 26.8844 6.23957C27.0911 6.6129 27.3711 6.9029 27.7244 7.10957ZM29.9644 4.42957H27.4262C27.4557 4.1659 27.5151 3.94256 27.6044 3.75957C27.7444 3.48624 27.9211 3.28957 28.1344 3.16957C28.3477 3.0429 28.5644 2.97957 28.7844 2.97957C29.1644 2.97957 29.4544 3.10624 29.6544 3.35957C29.8611 3.60624 29.9644 3.9629 29.9644 4.42957ZM32.0953 6.74957C32.462 7.18957 32.952 7.40957 33.5653 7.40957C33.852 7.40957 34.122 7.3429 34.3753 7.20957C34.6287 7.06957 34.8487 6.90624 35.0353 6.71957H35.0653L35.1353 7.28957H35.8153V0.169571H34.9853V2.03957L35.0253 2.86957C34.812 2.68957 34.602 2.5529 34.3953 2.45957C34.1953 2.35957 33.952 2.30957 33.6653 2.30957C33.292 2.30957 32.9453 2.4129 32.6253 2.61957C32.3053 2.82624 32.0453 3.1229 31.8453 3.50957C31.652 3.88957 31.5553 4.3429 31.5553 4.86957C31.5553 5.67624 31.7353 6.3029 32.0953 6.74957ZM34.3853 6.54957C34.1853 6.6629 33.972 6.71957 33.7453 6.71957C33.3187 6.71957 32.9887 6.55624 32.7553 6.22957C32.522 5.89624 32.4053 5.43957 32.4053 4.85957C32.4053 4.48624 32.4687 4.1629 32.5953 3.88957C32.722 3.60957 32.8887 3.3929 33.0953 3.23957C33.3087 3.07957 33.5453 2.99957 33.8053 2.99957C34.0053 2.99957 34.202 3.03957 34.3953 3.11957C34.5887 3.1929 34.7853 3.3229 34.9853 3.50957V6.04957C34.7853 6.26957 34.5853 6.43624 34.3853 6.54957ZM40.9042 7.24957C41.1442 7.35624 41.3775 7.40957 41.6042 7.40957C41.9708 7.40957 42.3142 7.30624 42.6342 7.09957C42.9542 6.8929 43.2108 6.5929 43.4042 6.19957C43.6042 5.80624 43.7042 5.3329 43.7042 4.77957C43.7042 4.27957 43.6308 3.84624 43.4842 3.47957C43.3375 3.10624 43.1208 2.81957 42.8342 2.61957C42.5475 2.4129 42.1942 2.30957 41.7742 2.30957C41.5075 2.30957 41.2408 2.37624 40.9742 2.50957C40.7142 2.63624 40.4742 2.79624 40.2542 2.98957L40.2742 2.10957V0.169571H39.4542V7.28957H40.1142L40.1842 6.78957H40.2142C40.4342 6.9829 40.6642 7.13624 40.9042 7.24957ZM42.1742 6.48957C41.9675 6.6429 41.7308 6.71957 41.4642 6.71957C41.3042 6.71957 41.1175 6.6829 40.9042 6.60957C40.6975 6.52957 40.4875 6.39624 40.2742 6.20957V3.65957C40.5075 3.43957 40.7308 3.27624 40.9442 3.16957C41.1642 3.05624 41.3742 2.99957 41.5742 2.99957C41.8808 2.99957 42.1275 3.07624 42.3142 3.22957C42.5008 3.37624 42.6375 3.58624 42.7242 3.85957C42.8108 4.12624 42.8542 4.43624 42.8542 4.78957C42.8542 5.18957 42.7942 5.53624 42.6742 5.82957C42.5542 6.11624 42.3875 6.33624 42.1742 6.48957ZM44.7124 9.34957C44.8124 9.36957 44.9158 9.37957 45.0224 9.37957C45.3491 9.37957 45.6258 9.30624 45.8524 9.15957C46.0791 9.0129 46.2724 8.80957 46.4324 8.54957C46.5924 8.29624 46.7291 8.00957 46.8424 7.68957L48.6724 2.42957H47.8724L47.0024 5.11957C46.9424 5.3329 46.8758 5.55957 46.8024 5.79957C46.7358 6.0329 46.6658 6.2629 46.5924 6.48957H46.5524C46.4791 6.2629 46.4024 6.02957 46.3224 5.78957C46.2424 5.54957 46.1624 5.32624 46.0824 5.11957L45.0924 2.42957H44.2424L46.1924 7.29957L46.0824 7.65957C45.9824 7.95957 45.8424 8.20624 45.6624 8.39957C45.4891 8.59957 45.2624 8.69957 44.9824 8.69957C44.9291 8.69957 44.8724 8.6929 44.8124 8.67957C44.7524 8.6729 44.6924 8.65957 44.6324 8.63957L44.4524 9.27957C44.5324 9.30624 44.6191 9.32957 44.7124 9.34957Z",fill:"currentColor"})))}const Ko=t.forwardRef(qo);n.p;var Xo=function(e,t){return Xo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Xo(e,t)};var Zo=function(){return Zo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Zo.apply(this,arguments)};function Yo(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch($o){o($o)}}function s(e){try{l(r.throw(e))}catch($o){o($o)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Qo(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch($o){s=[6,$o],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function $o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"===typeof SuppressedError&&SuppressedError,"function"==typeof SuppressedError&&SuppressedError;var Jo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ta(e,t){return e(t={exports:{}},t.exports),t.exports}var na=ta((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,n){var r=e.locked.get(t);void 0===r?void 0===n?e.locked.set(t,[]):e.locked.set(t,[n]):void 0!==n&&(r.unshift(n),e.locked.set(t,r))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise((function(n,r){e.isLocked(t)?e.addToLocked(t,n):(e.addToLocked(t),n())}))},this.unlock=function(t){var n=e.locked.get(t);if(void 0!==n&&0!==n.length){var r=n.pop();e.locked.set(t,n),void 0!==r&&setTimeout(r,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return n.getInstance()}}));ea(na);var ra=ea(ta((function(e,t){var n=Jo&&Jo.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}l((r=r.apply(e,t||[])).next())}))},r=Jo&&Jo.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},i=Jo;Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key",a={key:function(e){return n(i,void 0,void 0,(function(){return r(this,(function(e){throw new Error("Unsupported")}))}))},getItem:function(e){return n(i,void 0,void 0,(function(){return r(this,(function(e){throw new Error("Unsupported")}))}))},clear:function(){return n(i,void 0,void 0,(function(){return r(this,(function(e){return[2,window.localStorage.clear()]}))}))},removeItem:function(e){return n(i,void 0,void 0,(function(){return r(this,(function(e){throw new Error("Unsupported")}))}))},setItem:function(e,t){return n(i,void 0,void 0,(function(){return r(this,(function(e){throw new Error("Unsupported")}))}))},keySync:function(e){return window.localStorage.key(e)},getItemSync:function(e){return window.localStorage.getItem(e)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(e){return window.localStorage.removeItem(e)},setItemSync:function(e,t){return window.localStorage.setItem(e,t)}};function s(e){return new Promise((function(t){return setTimeout(t,e)}))}function l(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++)n+=t[Math.floor(61*Math.random())];return n}var u=function(){function e(t){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=t,void 0===e.waiters&&(e.waiters=[])}return e.prototype.acquireLock=function(t,i){return void 0===i&&(i=5e3),n(this,void 0,void 0,(function(){var n,u,c,d,f,h,p;return r(this,(function(r){switch(r.label){case 0:n=Date.now()+l(4),u=Date.now()+i,c=o+"-"+t,d=void 0===this.storageHandler?a:this.storageHandler,r.label=1;case 1:return Date.now()<u?[4,s(30)]:[3,8];case 2:return r.sent(),null!==d.getItemSync(c)?[3,5]:(f=this.id+"-"+t+"-"+n,[4,s(Math.floor(25*Math.random()))]);case 3:return r.sent(),d.setItemSync(c,JSON.stringify({id:this.id,iat:n,timeoutKey:f,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,s(30)];case 4:return r.sent(),null!==(h=d.getItemSync(c))&&(p=JSON.parse(h)).id===this.id&&p.iat===n?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(c,n),[2,!0]):[3,7];case 5:return e.lockCorrector(void 0===this.storageHandler?a:this.storageHandler),[4,this.waitForSomethingToChange(u)];case 6:r.sent(),r.label=7;case 7:return n=Date.now()+l(4),[3,1];case 8:return[2,!1]}}))}))},e.prototype.refreshLockWhileAcquired=function(e,t){return n(this,void 0,void 0,(function(){var i=this;return r(this,(function(o){return setTimeout((function(){return n(i,void 0,void 0,(function(){var n,i,o;return r(this,(function(r){switch(r.label){case 0:return[4,na.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=void 0===this.storageHandler?a:this.storageHandler,null===(i=n.getItemSync(e))?(na.default().unlock(t),[2]):((o=JSON.parse(i)).timeRefreshed=Date.now(),n.setItemSync(e,JSON.stringify(o)),na.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(na.default().unlock(t),[2])}}))}))}),1e3),[2]}))}))},e.prototype.waitForSomethingToChange=function(t){return n(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return[4,new Promise((function(n){var r=!1,i=Date.now(),o=!1;function a(){if(o||(window.removeEventListener("storage",a),e.removeFromWaiting(a),clearTimeout(s),o=!0),!r){r=!0;var t=50-(Date.now()-i);t>0?setTimeout(n,t):n(null)}}window.addEventListener("storage",a),e.addToWaiting(a);var s=setTimeout(a,Math.max(0,t-Date.now()))}))];case 1:return n.sent(),[2]}}))}))},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter((function(e){return e!==t})))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach((function(e){return e()}))},e.prototype.releaseLock=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.releaseLock__private__=function(t){return n(this,void 0,void 0,(function(){var n,i,s,l;return r(this,(function(r){switch(r.label){case 0:return n=void 0===this.storageHandler?a:this.storageHandler,i=o+"-"+t,null===(s=n.getItemSync(i))?[2]:(l=JSON.parse(s)).id!==this.id?[3,2]:[4,na.default().lock(l.iat)];case 1:r.sent(),this.acquiredIatSet.delete(l.iat),n.removeItemSync(i),na.default().unlock(l.iat),e.notifyWaiters(),r.label=2;case 2:return[2]}}))}))},e.lockCorrector=function(t){for(var n=Date.now()-5e3,r=t,i=[],a=0;;){var s=r.keySync(a);if(null===s)break;i.push(s),a++}for(var l=!1,u=0;u<i.length;u++){var c=i[u];if(c.includes(o)){var d=r.getItemSync(c);if(null!==d){var f=JSON.parse(d);(void 0===f.timeRefreshed&&f.timeAcquired<n||void 0!==f.timeRefreshed&&f.timeRefreshed<n)&&(r.removeItemSync(c),l=!0)}}}l&&e.notifyWaiters()},e.waiters=void 0,e}();t.default=u})));const ia={timeoutInSeconds:60},oa={name:"auth0-spa-js",version:"2.1.3"},aa=()=>Date.now();class sa extends Error{constructor(e,t){super(t),this.error=e,this.error_description=t,Object.setPrototypeOf(this,sa.prototype)}static fromPayload(e){let{error:t,error_description:n}=e;return new sa(t,n)}}class la extends sa{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super(e,t),this.state=n,this.appState=r,Object.setPrototypeOf(this,la.prototype)}}class ua extends sa{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,ua.prototype)}}class ca extends ua{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,ca.prototype)}}class da extends sa{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,da.prototype)}}class fa extends sa{constructor(e,t,n){super(e,t),this.mfa_token=n,Object.setPrototypeOf(this,fa.prototype)}}class ha extends sa{constructor(e,t){super("missing_refresh_token","Missing Refresh Token (audience: '".concat(pa(e,["default"]),"', scope: '").concat(pa(t),"')")),this.audience=e,this.scope=t,Object.setPrototypeOf(this,ha.prototype)}}function pa(e){return e&&!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).includes(e)?e:""}const ga=()=>window.crypto,ma=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(ga().getRandomValues(new Uint8Array(43))).forEach((n=>t+=e[n%66])),t},va=e=>btoa(e),ya=e=>{var{clientId:t}=e,n=$o(e,["clientId"]);return new URLSearchParams((e=>Object.keys(e).filter((t=>void 0!==e[t])).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]})),{}))(Object.assign({client_id:t},n))).toString()},ba=e=>(e=>decodeURIComponent(atob(e).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),xa=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},wa=async function(e,t,n,r,i,o){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1e4;return i?(async(e,t,n,r,i,o,a)=>{return s={auth:{audience:t,scope:n},timeout:i,fetchUrl:e,fetchOptions:r,useFormData:a},l=o,new Promise((function(e,t){const n=new MessageChannel;n.port1.onmessage=function(r){r.data.error?t(new Error(r.data.error)):e(r.data),n.port1.close()},l.postMessage(s,[n.port2])}));var s,l})(e,t,n,r,a,i,o):(async(e,t,n)=>{const r=new AbortController;let i;return t.signal=r.signal,Promise.race([xa(e,t),new Promise(((e,t)=>{i=setTimeout((()=>{r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((()=>{clearTimeout(i)}))})(e,r,a)};async function Ca(e,t){var{baseUrl:n,timeout:r,audience:i,scope:o,auth0Client:a,useFormData:s}=e,l=$o(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=s?ya(l):JSON.stringify(l);return await async function(e,t,n,r,i,o,a){let s,l=null;for(let p=0;p<3;p++)try{s=await wa(e,n,r,i,o,a,t),l=null;break}catch($o){l=$o}if(l)throw l;const u=s.json,{error:c,error_description:d}=u,f=$o(u,["error","error_description"]),{ok:h}=s;if(!h){const t=d||"HTTP error. Unable to fetch ".concat(e);if("mfa_required"===c)throw new fa(c,t,f.mfa_token);if("missing_refresh_token"===c)throw new ha(n,r);throw new sa(c||"request_error",t)}return f}("".concat(n,"/oauth/token"),r,i||"default",o,{method:"POST",body:u,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(a||oa))}},t,s)}const Sa=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(r=t.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(r))).join(" ");var r};class ka{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"@@auth0spajs@@",n=arguments.length>2?arguments[2]:void 0;this.prefix=t,this.suffix=n,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(e){const[t,n,r,i]=e.split("::");return new ka({clientId:n,scope:i,audience:r},t)}static fromCacheEntry(e){const{scope:t,audience:n,client_id:r}=e;return new ka({scope:t,audience:n,clientId:r})}}class _a{set(e,t){localStorage.setItem(e,JSON.stringify(t))}get(e){const t=window.localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter((e=>e.startsWith("@@auth0spajs@@")))}}class Ea{constructor(){this.enclosedCache=function(){let e={};return{set(t,n){e[t]=n},get(t){const n=e[t];if(n)return n},remove(t){delete e[t]},allKeys:()=>Object.keys(e)}}()}}class Pa{constructor(e,t,n){this.cache=e,this.keyManifest=t,this.nowProvider=n||aa}async setIdToken(e,t,n){var r;const i=this.getIdTokenCacheKey(e);await this.cache.set(i,{id_token:t,decodedToken:n}),await(null===(r=this.keyManifest)||void 0===r?void 0:r.add(i))}async getIdToken(e){const t=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!t&&e.scope&&e.audience){const t=await this.get(e);if(!t)return;if(!t.id_token||!t.decodedToken)return;return{id_token:t.id_token,decodedToken:t.decodedToken}}if(t)return{id_token:t.id_token,decodedToken:t.decodedToken}}async get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;var n;let r=await this.cache.get(e.toKey());if(!r){const t=await this.getCacheKeys();if(!t)return;const n=this.matchExistingCacheKey(e,t);n&&(r=await this.cache.get(n))}if(!r)return;const i=await this.nowProvider(),o=Math.floor(i/1e3);return r.expiresAt-t<o?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},await this.cache.set(e.toKey(),r),r.body):(await this.cache.remove(e.toKey()),void await(null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey()))):r.body}async set(e){var t;const n=new ka({clientId:e.client_id,scope:e.scope,audience:e.audience}),r=await this.wrapCacheEntry(e);await this.cache.set(n.toKey(),r),await(null===(t=this.keyManifest)||void 0===t?void 0:t.add(n.toKey()))}async clear(e){var t;const n=await this.getCacheKeys();n&&(await n.filter((t=>!e||t.includes(e))).reduce((async(e,t)=>{await e,await this.cache.remove(t)}),Promise.resolve()),await(null===(t=this.keyManifest)||void 0===t?void 0:t.clear()))}async wrapCacheEntry(e){const t=await this.nowProvider();return{body:e,expiresAt:Math.floor(t/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?null===(e=await this.keyManifest.get())||void 0===e?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new ka({clientId:e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(e,t){return t.filter((t=>{var n;const r=ka.fromKey(t),i=new Set(r.scope&&r.scope.split(" ")),o=(null===(n=e.scope)||void 0===n?void 0:n.split(" "))||[],a=r.scope&&o.reduce(((e,t)=>e&&i.has(t)),!0);return"@@auth0spajs@@"===r.prefix&&r.clientId===e.clientId&&r.audience===e.audience&&a}))[0]}}class ja{constructor(e,t,n){this.storage=e,this.clientId=t,this.cookieDomain=n,this.storageKey="a0.spajs.txs.".concat(this.clientId)}create(e){this.storage.save(this.storageKey,e,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const Oa=e=>"number"==typeof e,Ra=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var Aa=ta((function(e,t){var n=Jo&&Jo.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function r(e,t){if(!t)return"";var n="; "+e;return!0===t?n:n+"="+t}function i(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t}return r("Expires",e.expires?e.expires.toUTCString():"")+r("Domain",e.domain)+r("Path",e.path)+r("Secure",e.secure)+r("SameSite",e.sameSite)}(n)}function o(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");'"'===a.charAt(0)&&(a=a.slice(1,-1));try{t[o[0].replace(r,decodeURIComponent)]=a.replace(r,decodeURIComponent)}catch(e){}}return t}function a(){return o(document.cookie)}function s(e,t,r){document.cookie=i(e,t,n({path:"/"},r))}t.__esModule=!0,t.encode=i,t.parse=o,t.getAll=a,t.get=function(e){return a()[e]},t.set=s,t.remove=function(e,t){s(e,"",n(n({},t),{expires:-1}))}}));ea(Aa),Aa.encode,Aa.parse,Aa.getAll;var Ta=Aa.get,Na=Aa.set,Fa=Aa.remove;const Ma={get(e){const t=Ta(e);if(void 0!==t)return JSON.parse(t)},save(e,t,n){let r={};"https:"===window.location.protocol&&(r={secure:!0,sameSite:"none"}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),(null==n?void 0:n.cookieDomain)&&(r.domain=n.cookieDomain),Na(e,JSON.stringify(t),r)},remove(e,t){let n={};(null==t?void 0:t.cookieDomain)&&(n.domain=t.cookieDomain),Fa(e,n)}},La={get:e=>Ma.get(e)||Ma.get("_legacy_".concat(e)),save(e,t,n){let r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),(null==n?void 0:n.cookieDomain)&&(r.domain=n.cookieDomain),Na("_legacy_".concat(e),JSON.stringify(t),r),Ma.save(e,t,n)},remove(e,t){let n={};(null==t?void 0:t.cookieDomain)&&(n.domain=t.cookieDomain),Fa(e,n),Ma.remove(e,t),Ma.remove("_legacy_".concat(e),t)}},Ia={get(e){if("undefined"==typeof sessionStorage)return;const t=sessionStorage.getItem(e);return null!=t?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var Da,za=("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",null,!1,function(e){return Da=Da||function(e,t,n){var r=void 0===t?null:t,i=function(e,t){var n=atob(e);if(t){for(var r=new Uint8Array(n.length),i=0,o=n.length;i<o;++i)r[i]=n.charCodeAt(i);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(e,void 0!==n&&n),o=i.indexOf("\n",10)+1,a=i.substring(o)+(r?"//# sourceMappingURL="+r:""),s=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(s)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",null,false),new Worker(Da,e)});const Ba={};class Ua{constructor(e,t){this.cache=e,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(e){var t;const n=new Set((null===(t=await this.cache.get(this.manifestKey))||void 0===t?void 0:t.keys)||[]);n.add(e),await this.cache.set(this.manifestKey,{keys:[...n]})}async remove(e){const t=await this.cache.get(this.manifestKey);if(t){const n=new Set(t.keys);return n.delete(e),n.size>0?await this.cache.set(this.manifestKey,{keys:[...n]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return"@@auth0spajs@@::".concat(e)}}const Va={memory:()=>(new Ea).enclosedCache,localstorage:()=>new _a},Ha=e=>Va[e],Wa=e=>{const{openUrl:t,onRedirect:n}=e,r=$o(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:!1===t||t?t:n})},Ga=new ra;class qa{constructor(e){let t,n;if(this.userCache=(new Ea).enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Ga.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),"undefined"!=typeof window&&(()=>{if(!ga())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===ga().subtle)throw new Error("\n auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.\n ")})(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)n=e.cache;else{if(t=e.cacheLocation||"memory",!Ha(t))throw new Error('Invalid cache location "'.concat(t,'"'));n=Ha(t)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=!1===e.legacySameSiteCookie?Ma:La,this.orgHintCookieName="auth0.".concat(this.options.clientId,".organization_hint"),this.isAuthenticatedCookieName=(e=>"auth0.".concat(e,".is.authenticated"))(this.options.clientId),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;const r=e.useCookiesForTransactions?this.cookieStorage:Ia;var i;this.scope=Sa("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new ja(r,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||aa,this.cacheManager=new Pa(n,n.allKeys?void 0:new Ua(n,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:"https://".concat(i)),this.tokenIssuer=((e,t)=>e?e.startsWith("https://")?e:"https://".concat(e,"/"):"".concat(t,"/"))(this.options.issuer,this.domainUrl),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===t&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new za)}_url(e){const t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||oa)));return"".concat(this.domainUrl).concat(e,"&auth0Client=").concat(t)}_authorizeUrl(e){return this._url("/authorize?".concat(ya(e)))}async _verifyIdToken(e,t,n){const r=await this.nowProvider();return(e=>{if(!e.id_token)throw new Error("ID token is required but missing");const t=(e=>{const t=e.split("."),[n,r,i]=t;if(3!==t.length||!n||!r||!i)throw new Error("ID token could not be decoded");const o=JSON.parse(ba(r)),a={__raw:e},s={};return Object.keys(o).forEach((e=>{a[e]=o[e],Ra.includes(e)||(s[e]=o[e])})),{encoded:{header:n,payload:r,signature:i},header:JSON.parse(ba(n)),claims:a,user:s}})(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'.concat(e.iss,'", found "').concat(t.claims.iss,'"'));if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error('Signature algorithm of "'.concat(t.header.alg,'" is not supported. Expected the ID token to be signed with "RS256".'));if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but was not one of "').concat(t.claims.aud.join(", "),'"'));if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'.concat(e.aud,'", found "').concat(t.claims.azp,'"'))}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but found "').concat(t.claims.aud,'"'));if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'.concat(e.nonce,'", found "').concat(t.claims.nonce,'"'))}if(e.max_age&&!Oa(t.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(null==t.claims.exp||!Oa(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Oa(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=e.leeway||60,r=new Date(e.now||Date.now()),i=new Date(0);if(i.setUTCSeconds(t.claims.exp+n),r>i)throw new Error("Expiration Time (exp) claim error in the ID token; current time (".concat(r,") is after expiration time (").concat(i,")"));if(null!=t.claims.nbf&&Oa(t.claims.nbf)){const e=new Date(0);if(e.setUTCSeconds(t.claims.nbf-n),r<e)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (".concat(r,") is before ").concat(e))}if(null!=t.claims.auth_time&&Oa(t.claims.auth_time)){const i=new Date(0);if(i.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),r>i)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (".concat(r,") is after last auth at ").concat(i))}if(e.organization){const n=e.organization.trim();if(n.startsWith("org_")){const e=n;if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'.concat(e,'", found "').concat(t.claims.org_id,'"'))}else{const e=n.toLowerCase();if(!t.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(e!==t.claims.org_name)throw new Error('Organization Name (org_name) claim mismatch in the ID token; expected "'.concat(e,'", found "').concat(t.claims.org_name,'"'))}}return t})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:t,organization:n,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,"string"!=typeof i?i:parseInt(i,10)||void 0),now:r});var i}_processOrgHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(e,t,n){const r=va(ma()),i=va(ma()),o=ma(),a=(e=>{const t=new Uint8Array(e);return(e=>{const t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(e=>t[e]))})(window.btoa(String.fromCharCode(...Array.from(t))))})(await(async e=>{const t=ga().subtle.digest({name:"SHA-256"},(new TextEncoder).encode(e));return await t})(o)),s=((e,t,n,r,i,o,a,s)=>Object.assign(Object.assign(Object.assign({client_id:e.clientId},e.authorizationParams),n),{scope:Sa(t,n.scope),response_type:"code",response_mode:s||"query",state:r,nonce:i,redirect_uri:a||e.authorizationParams.redirect_uri,code_challenge:o,code_challenge_method:"S256"}))(this.options,this.scope,e,r,i,a,e.redirect_uri||this.options.authorizationParams.redirect_uri||n,null==t?void 0:t.response_mode),l=this._authorizeUrl(s);return{nonce:i,code_verifier:o,scope:s.scope,audience:s.audience||"default",redirect_uri:s.redirect_uri,state:r,url:l}}async loginWithPopup(e,t){var n;if(e=e||{},!(t=t||{}).popup&&(t.popup=(e=>{const t=window.screenX+(window.innerWidth-400)/2,n=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup","left=".concat(t,",top=").concat(n,",width=400,height=600,resizable,scrollbars=yes,status=1"))})(),!t.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const r=await this._prepareAuthorizeUrl(e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);t.popup.location.href=r.url;const i=await(e=>new Promise(((t,n)=>{let r;const i=setInterval((()=>{e.popup&&e.popup.closed&&(clearInterval(i),clearTimeout(o),window.removeEventListener("message",r,!1),n(new da(e.popup)))}),1e3),o=setTimeout((()=>{clearInterval(i),n(new ca(e.popup)),window.removeEventListener("message",r,!1)}),1e3*(e.timeoutInSeconds||60));r=function(a){if(a.data&&"authorization_response"===a.data.type){if(clearTimeout(o),clearInterval(i),window.removeEventListener("message",r,!1),e.popup.close(),a.data.response.error)return n(sa.fromPayload(a.data.response));t(a.data.response)}},window.addEventListener("message",r)})))(Object.assign(Object.assign({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(r.state!==i.state)throw new sa("state_mismatch","Invalid state");const o=(null===(n=e.authorizationParams)||void 0===n?void 0:n.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:r.audience,scope:r.scope,code_verifier:r.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:r.redirect_uri},{nonceIn:r.nonce,organization:o})}async getUser(){var e;const t=await this._getIdTokenFromCache();return null===(e=null==t?void 0:t.decodedToken)||void 0===e?void 0:e.user}async getIdTokenClaims(){var e;const t=await this._getIdTokenFromCache();return null===(e=null==t?void 0:t.decodedToken)||void 0===e?void 0:e.claims}async loginWithRedirect(){var e;const t=Wa(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{openUrl:n,fragment:r,appState:i}=t,o=$o(t,["openUrl","fragment","appState"]),a=(null===(e=o.authorizationParams)||void 0===e?void 0:e.organization)||this.options.authorizationParams.organization,s=await this._prepareAuthorizeUrl(o.authorizationParams||{}),{url:l}=s,u=$o(s,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},u),{appState:i}),a&&{organization:a}));const c=r?"".concat(l,"#").concat(r):l;n?await n(c):window.location.assign(c)}async handleRedirectCallback(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href).split("?").slice(1);if(0===e.length)throw new Error("There are no query params available for parsing.");const{state:t,code:n,error:r,error_description:i}=(e=>{e.indexOf("#")>-1&&(e=e.substring(0,e.indexOf("#")));const t=new URLSearchParams(e);return{state:t.get("state"),code:t.get("code")||void 0,error:t.get("error")||void 0,error_description:t.get("error_description")||void 0}})(e.join("")),o=this.transactionManager.get();if(!o)throw new sa("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new la(r,i||r,t,o.appState);if(!o.code_verifier||o.state&&o.state!==t)throw new sa("state_mismatch","Invalid state");const a=o.organization,s=o.nonce,l=o.redirect_uri;return await this._requestToken(Object.assign({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:n},l?{redirect_uri:l}:{}),{nonceIn:s,organization:a}),{appState:o.appState}}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(e)}catch(e){}}async getTokenSilently(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;const n=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Sa(this.scope,null===(t=e.authorizationParams)||void 0===t?void 0:t.scope)})}),r=await((e,t)=>{let n=Ba[t];return n||(n=e().finally((()=>{delete Ba[t],n=null})),Ba[t]=n),n})((()=>this._getTokenSilently(n)),"".concat(this.options.clientId,"::").concat(n.authorizationParams.audience,"::").concat(n.authorizationParams.scope));return e.detailedResponse?r:null==r?void 0:r.access_token}async _getTokenSilently(e){const{cacheMode:t}=e,n=$o(e,["cacheMode"]);if("off"!==t){const e=await this._getEntryFromCache({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||"default",clientId:this.options.clientId});if(e)return e}if("cache-only"!==t){if(!await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;for(let n=0;n<t;n++)if(await e())return!0;return!1}((()=>Ga.acquireLock("auth0.lock.getTokenSilently",5e3)),10))throw new ua;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),"off"!==t){const e=await this._getEntryFromCache({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||"default",clientId:this.options.clientId});if(e)return e}const e=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(n):await this._getTokenFromIFrame(n),{id_token:r,access_token:i,oauthTokenScope:o,expires_in:a}=e;return Object.assign(Object.assign({id_token:r,access_token:i},o?{scope:o}:null),{expires_in:a})}finally{await Ga.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;const r=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:Sa(this.scope,null===(n=e.authorizationParams)||void 0===n?void 0:n.scope)})});return t=Object.assign(Object.assign({},ia),t),await this.loginWithPopup(r,t),(await this.cacheManager.get(new ka({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){null!==e.clientId?e.clientId=e.clientId||this.options.clientId:delete e.clientId;const t=e.logoutParams||{},{federated:n}=t,r=$o(t,["federated"]),i=n?"&federated":"";return this._url("/v2/logout?".concat(ya(Object.assign({clientId:e.clientId},r))))+i}async logout(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Wa(e),{openUrl:n}=t,r=$o(t,["openUrl"]);null===e.clientId?await this.cacheManager.clear():await this.cacheManager.clear(e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(r);n?await n(i):!1!==n&&window.location.assign(i)}async _getTokenFromIFrame(e){const t=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),n=this.cookieStorage.get(this.orgHintCookieName);n&&!t.organization&&(t.organization=n);const{url:r,state:i,nonce:o,code_verifier:a,redirect_uri:s,scope:l,audience:u}=await this._prepareAuthorizeUrl(t,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new sa("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const n=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,c=await function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60;return new Promise(((r,i)=>{const o=window.document.createElement("iframe");o.setAttribute("width","0"),o.setAttribute("height","0"),o.style.display="none";const a=()=>{window.document.body.contains(o)&&(window.document.body.removeChild(o),window.removeEventListener("message",s,!1))};let s;const l=setTimeout((()=>{i(new ua),a()}),1e3*n);s=function(e){if(e.origin!=t)return;if(!e.data||"authorization_response"!==e.data.type)return;const n=e.source;n&&n.close(),e.data.response.error?i(sa.fromPayload(e.data.response)):r(e.data.response),clearTimeout(l),window.removeEventListener("message",s,!1),setTimeout(a,2e3)},window.addEventListener("message",s,!1),window.document.body.appendChild(o),o.setAttribute("src",e)}))}(r,this.domainUrl,n);if(i!==c.state)throw new sa("state_mismatch","Invalid state");const d=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:a,code:c.code,grant_type:"authorization_code",redirect_uri:s,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:t.organization});return Object.assign(Object.assign({},d),{scope:l,oauthTokenScope:d.scope,audience:u})}catch(e){throw"login_required"===e.error&&this.logout({openUrl:!1}),e}}async _getTokenUsingRefreshToken(e){const t=await this.cacheManager.get(new ka({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(t&&t.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new ha(e.authorizationParams.audience||"default",e.authorizationParams.scope)}const n=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,r="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:n}),r&&{timeout:r}));return Object.assign(Object.assign({},i),{scope:e.authorizationParams.scope,oauthTokenScope:i.scope,audience:e.authorizationParams.audience||"default"})}catch(t){if((t.message.indexOf("Missing Refresh Token")>-1||t.message&&t.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw t}}async _saveEntryInCache(e){const{id_token:t,decodedToken:n}=e,r=$o(e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:t,decodedToken:n}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(r)}async _getIdTokenFromCache(){const e=this.options.authorizationParams.audience||"default",t=await this.cacheManager.getIdToken(new ka({clientId:this.options.clientId,audience:e,scope:this.scope})),n=this.userCache.get("@@user@@");return t&&t.id_token===(null==n?void 0:n.id_token)?n:(this.userCache.set("@@user@@",t),t)}async _getEntryFromCache(e){let{scope:t,audience:n,clientId:r}=e;const i=await this.cacheManager.get(new ka({scope:t,audience:n,clientId:r}),60);if(i&&i.access_token){const{access_token:e,oauthTokenScope:t,expires_in:n}=i,r=await this._getIdTokenFromCache();return r&&Object.assign(Object.assign({id_token:r.id_token,access_token:e},t?{scope:t}:null),{expires_in:n})}}async _requestToken(e,t){const{nonceIn:n,organization:r}=t||{},i=await Ca(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},e),this.worker),o=await this._verifyIdToken(i.id_token,n,r);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:o,scope:e.scope,audience:e.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(r||o.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:o})}}var Ka={isAuthenticated:!1,isLoading:!0},Xa=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},Za=Zo(Zo({},Ka),{buildAuthorizeUrl:Xa,buildLogoutUrl:Xa,getAccessTokenSilently:Xa,getAccessTokenWithPopup:Xa,getIdTokenClaims:Xa,loginWithRedirect:Xa,loginWithPopup:Xa,logout:Xa,handleRedirectCallback:Xa}),Ya=(0,t.createContext)(Za),Qa=function(e){function t(n,r){var i=e.call(this,r||n)||this;return i.error=n,i.error_description=r,Object.setPrototypeOf(i,t.prototype),i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Xo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),$a=/[?&]code=[^&]+/,Ja=/[?&]state=[^&]+/,es=/[?&]error=[^&]+/,ts=function(e){return function(t){return t instanceof Error?t:null!==t&&"object"===typeof t&&"error"in t&&"string"===typeof t.error?"error_description"in t&&"string"===typeof t.error_description?new Qa(t.error,t.error_description):new Qa(t.error):new Error(e)}},ns=ts("Login failed"),rs=ts("Get access token failed"),is=function(e){var t;(null===e||void 0===e?void 0:e.redirectUri)&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirectUri,delete e.redirectUri),(null===(t=null===e||void 0===e?void 0:e.authorizationParams)||void 0===t?void 0:t.redirectUri)&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),e.authorizationParams.redirect_uri=e.authorizationParams.redirectUri,delete e.authorizationParams.redirectUri)},os=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return Zo(Zo({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return Zo(Zo({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return e.user===t.user?e:Zo(Zo({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return Zo(Zo({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return Zo(Zo({},e),{isLoading:!1,error:t.error})}},as=function(e){window.history.replaceState({},document.title,(null===e||void 0===e?void 0:e.returnTo)||window.location.pathname)},ss=function(e){var n=e.children,r=e.skipRedirectCallback,i=e.onRedirectCallback,o=void 0===i?as:i,a=e.context,s=void 0===a?Ya:a,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["children","skipRedirectCallback","onRedirectCallback","context"]),u=(0,t.useState)((function(){return new qa(function(e){return is(e),Zo(Zo({},e),{auth0Client:{name:"auth0-react",version:"2.2.4"}})}(l))}))[0],c=(0,t.useReducer)(os,Ka),d=c[0],f=c[1],h=(0,t.useRef)(!1);(0,t.useEffect)((function(){h.current||(h.current=!0,Yo(void 0,void 0,void 0,(function(){var e,t,n;return Qo(this,(function(i){switch(i.label){case 0:return i.trys.push([0,7,,8]),e=void 0,void 0===a&&(a=window.location.search),!$a.test(a)&&!es.test(a)||!Ja.test(a)||r?[3,3]:[4,u.handleRedirectCallback()];case 1:return t=i.sent().appState,[4,u.getUser()];case 2:return e=i.sent(),o(t,e),[3,6];case 3:return[4,u.checkSession()];case 4:return i.sent(),[4,u.getUser()];case 5:e=i.sent(),i.label=6;case 6:return f({type:"INITIALISED",user:e}),[3,8];case 7:return n=i.sent(),f({type:"ERROR",error:ns(n)}),[3,8];case 8:return[2]}var a}))})))}),[u,o,r]);var p=(0,t.useCallback)((function(e){return is(e),u.loginWithRedirect(e)}),[u]),g=(0,t.useCallback)((function(e,t){return Yo(void 0,void 0,void 0,(function(){var n,r;return Qo(this,(function(i){switch(i.label){case 0:f({type:"LOGIN_POPUP_STARTED"}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,u.loginWithPopup(e,t)];case 2:return i.sent(),[3,4];case 3:return n=i.sent(),f({type:"ERROR",error:ns(n)}),[2];case 4:return[4,u.getUser()];case 5:return r=i.sent(),f({type:"LOGIN_POPUP_COMPLETE",user:r}),[2]}}))}))}),[u]),m=(0,t.useCallback)((function(e){return void 0===e&&(e={}),Yo(void 0,void 0,void 0,(function(){return Qo(this,(function(t){switch(t.label){case 0:return[4,u.logout(e)];case 1:return t.sent(),(e.openUrl||!1===e.openUrl)&&f({type:"LOGOUT"}),[2]}}))}))}),[u]),v=(0,t.useCallback)((function(e){return Yo(void 0,void 0,void 0,(function(){var t,n,r,i;return Qo(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,5]),[4,u.getTokenSilently(e)];case 1:return t=o.sent(),[3,5];case 2:throw n=o.sent(),rs(n);case 3:return r=f,i={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,u.getUser()];case 4:return r.apply(void 0,[(i.user=o.sent(),i)]),[7];case 5:return[2,t]}}))}))}),[u]),y=(0,t.useCallback)((function(e,t){return Yo(void 0,void 0,void 0,(function(){var n,r,i,o;return Qo(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,5]),[4,u.getTokenWithPopup(e,t)];case 1:return n=a.sent(),[3,5];case 2:throw r=a.sent(),rs(r);case 3:return i=f,o={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,u.getUser()];case 4:return i.apply(void 0,[(o.user=a.sent(),o)]),[7];case 5:return[2,n]}}))}))}),[u]),b=(0,t.useCallback)((function(){return u.getIdTokenClaims()}),[u]),x=(0,t.useCallback)((function(e){return Yo(void 0,void 0,void 0,(function(){var t,n,r;return Qo(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,5]),[4,u.handleRedirectCallback(e)];case 1:return[2,i.sent()];case 2:throw t=i.sent(),rs(t);case 3:return n=f,r={type:"HANDLE_REDIRECT_COMPLETE"},[4,u.getUser()];case 4:return n.apply(void 0,[(r.user=i.sent(),r)]),[7];case 5:return[2]}}))}))}),[u]),w=(0,t.useMemo)((function(){return Zo(Zo({},d),{getAccessTokenSilently:v,getAccessTokenWithPopup:y,getIdTokenClaims:b,loginWithRedirect:p,loginWithPopup:g,logout:m,handleRedirectCallback:x})}),[d,v,y,b,p,g,m,x]);return t.createElement(s.Provider,{value:w},n)},ls=function(e){return void 0===e&&(e=Ya),(0,t.useContext)(e)};const us=function(e){const{children:t,openModal:n=!1,handleClose:r,classNameModal:i,classNameComponentChild:o,rounded:a=!0}=e;return(0,_o.jsx)(Ni,{open:n,onClose:r,className:"modal-container ".concat(i||""),style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_o.jsx)("div",{className:o,style:{overflowY:"auto",maxHeight:"95vh",borderRadius:a?8:0},children:t})})};const cs=function(e){var n,r,i;const[o,a]=(0,t.useState)(!1),s=Ne(),{search:{imageCaptureHelpModal:l}}=Nr((e=>e)),u=Tr(),{settings:c}=Nr((e=>e)),{user:d,isAuthenticated:f,logout:h}=ls(),p=c.auth0,[g,m]=(0,t.useState)(!1);return(0,_o.jsxs)(_o.Fragment,{children:[(0,_o.jsx)(us,{openModal:g,handleClose:()=>{m(!1)},children:(0,_o.jsxs)("div",{style:{backgroundColor:"white",width:"360px",padding:"24px"},children:[(0,_o.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},onClick:()=>m(!1),children:(0,_o.jsx)(Ho,{width:"16px",height:"16px",fontSize:"16px",color:"black"})}),(0,_o.jsx)("p",{style:{fontSize:"36px",fontWeight:"bold",color:"#2B2C46"},children:"Logout"}),(0,_o.jsx)("p",{style:{fontSize:"13px",color:"#2B2C46",paddingTop:"16px"},children:"Are you sure you want to log out? Your session will be securely closed."}),(0,_o.jsx)("p",{style:{fontSize:"13px",color:"#2B2C46",paddingTop:"16px"},children:"Email"}),(0,_o.jsx)("div",{style:{backgroundColor:"#FAFAFA",height:"32px",paddingLeft:"16px",paddingRight:"16px",marginTop:"8px"},children:null===d||void 0===d?void 0:d.email}),(0,_o.jsx)("div",{style:{display:"flex",width:"100%",marginTop:"16px"},children:(0,_o.jsx)("div",{style:{width:"50%",backgroundColor:"#2B2C46",color:"white",padding:"16px"},onClick:()=>{h({logoutParams:{returnTo:window.location.origin}})},children:"Confirm log out"})})]})}),"/"===(null===(n=s.location)||void 0===n?void 0:n.pathname)&&c.showPoweredByNyris&&(0,_o.jsx)("div",{style:{backgroundColor:"#fff",display:"flex",justifyContent:"center",padding:"16px 0px 16px 0px"},children:(0,_o.jsx)(Ko,{style:{cursor:"pointer"},onClick:()=>{window.open("https://www.nyris.io","_blank")},color:"#AAABB5"})}),(0,_o.jsxs)("div",{className:"box-footer-mobile",style:{paddingLeft:"16px",paddingRight:"16px",height:"64px",display:"flex",position:"relative",alignItems:"center",justifyContent:"space-between"},children:[(0,_o.jsx)("a",{style:{width:"48px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"100%",backgroundColor:"/"!==s.location.pathname||l?"":"#E0E0E0"},href:"/",className:"nav-link p-0 menu-children rounded-0",onClick:()=>{u(rr("")),u(ur({})),u(ar(!1))},children:(0,_o.jsx)(Ao,{color:"/"!==s.location.pathname||l?"#AAABB5":"#2B2C46"})}),"/"!==(null===(r=s.location)||void 0===r?void 0:r.pathname)&&!l&&(0,_o.jsx)("div",{className:"box-icon-camera-mobile",children:(0,_o.jsx)(oi,{onClick:()=>{a(!o)},children:(0,_o.jsx)(ui,{color:"#55566B"})})}),(0,_o.jsxs)("div",{style:{display:"flex",gap:"24px"},children:["/"!==(null===(i=s.location)||void 0===i?void 0:i.pathname)&&(0,_o.jsx)("div",{style:{width:"48px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"100%",backgroundColor:l?"#E0E0E0":""},onClick:()=>{u(ar(!l))},children:(0,_o.jsx)(Mo,{fontSize:24,width:24,height:24,color:l?"#2B2C46":"#AAABB5"})}),p.enabled&&f&&(0,_o.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:()=>{m(!0)},children:(0,_o.jsx)(zo,{fontSize:24,width:24,height:24})})]})]}),(0,_o.jsx)("div",{className:"box-screenshot-camera",children:(0,_o.jsx)(Po,{isToggle:o,onToggleModal:()=>{a(!o)}})})]})};var ds;function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fs.apply(this,arguments)}function hs(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",fs({width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,ds||(ds=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 4H12.95C12.7 2.85 11.7 2 10.5 2C9.3 2 8.3 2.85 8.05 4H1V5H8.05C8.3 6.15 9.3 7 10.5 7C11.7 7 12.7 6.15 12.95 5H15V4ZM10.5 6C9.65 6 9 5.35 9 4.5C9 3.65 9.65 3 10.5 3C11.35 3 12 3.65 12 4.5C12 5.35 11.35 6 10.5 6ZM1 12H3.05C3.3 13.15 4.3 14 5.5 14C6.7 14 7.7 13.15 7.95 12H15V11H7.95C7.7 9.85 6.7 9 5.5 9C4.3 9 3.3 9.85 3.05 11H1V12ZM5.5 10C6.35 10 7 10.65 7 11.5C7 12.35 6.35 13 5.5 13C4.65 13 4 12.35 4 11.5C4 10.65 4.65 10 5.5 10Z",fill:"currentColor"})))}const ps=t.forwardRef(hs);n.p;var gs=n(7057),ms=n.n(gs),vs=(0,t.createContext)({onInternalStateUpdate:function(){},createHrefForState:function(){return"#"},onSearchForFacetValues:function(){},onSearchStateChange:function(){},onSearchParameters:function(){},store:{},widgetsManager:{},mainTargetedIndex:""}),ys=vs.Consumer,bs=vs.Provider,xs=(0,t.createContext)(void 0),ws=xs.Consumer;xs.Provider;function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(n),!0).forEach((function(t){ks(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ks(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _s(e){return _s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_s(e)}var Es=Object.prototype.hasOwnProperty,Ps=function(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Es.call(t,n[i])||e[n[i]]!==t[n[i]])return!1;return!0},js=Promise.resolve(),Os=function(e){js.then(e)},Rs=function e(t){return Object.keys(t).forEach((function(n){var r,i=t[n];(function(e){return"object"===_s(e)&&null!==e&&!Array.isArray(e)})(i)&&((r=i)&&Object.keys(r).length>0?e(i):delete t[n])})),t};function As(e,t){if(null===e||void 0===e)return{};for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];t.indexOf(o)>=0||(n[o]=e[o])}return n}var Ts=["contextValue"];function Ns(e){return Ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ns(e)}function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fs.apply(this,arguments)}function Ms(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(n),!0).forEach((function(t){Hs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ds(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ws(r.key),r)}}function zs(e,t){return zs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zs(e,t)}function Bs(e){var t=function(){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($o){return!1}}();return function(){var n,r=Vs(e);if(t){var i=Vs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ns(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Us(e)}(this,n)}}function Us(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vs(e){return Vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vs(e)}function Hs(e,t,n){return(t=Ws(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ws(e){var t=function(e,t){if("object"!==Ns(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ns(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ns(t)?t:String(t)}function Gs(e){if(!e.displayName)throw new Error("`createConnector` requires you to provide a `displayName` property.");var n="function"===typeof e.getSearchParameters||"function"===typeof e.getMetadata||"function"===typeof e.transitionState;return function(r){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=function(i){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zs(e,t)}(u,i);var o,a,s,l=Bs(u);function u(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),Hs(Us(n=l.call(this,t)),"unsubscribe",void 0),Hs(Us(n),"unregisterWidget",void 0),Hs(Us(n),"cleanupTimerRef",null),Hs(Us(n),"isUnmounting",!1),Hs(Us(n),"state",{providedProps:n.getProvidedProps(n.props)}),Hs(Us(n),"refine",(function(){for(var t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n.props.contextValue.onInternalStateUpdate((t=e.refine).call.apply(t,[Us(n),n.props,n.props.contextValue.store.getState().widgets].concat(i)))})),Hs(Us(n),"createURL",(function(){for(var t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.props.contextValue.createHrefForState((t=e.refine).call.apply(t,[Us(n),n.props,n.props.contextValue.store.getState().widgets].concat(i)))})),Hs(Us(n),"searchForFacetValues",(function(){for(var t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n.props.contextValue.onSearchForFacetValues((t=e.searchForFacetValues).call.apply(t,[Us(n),n.props,n.props.contextValue.store.getState().widgets].concat(i)))})),e.getSearchParameters&&n.props.contextValue.onSearchParameters(e.getSearchParameters.bind(Us(n)),{ais:n.props.contextValue,multiIndexContext:n.props.indexContextValue},n.props,e.getMetadata&&e.getMetadata.bind(Us(n)),e.displayName),n}return o=u,(a=[{key:"componentDidMount",value:function(){var e=this;this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),this.unsubscribe=this.props.contextValue.store.subscribe((function(){e.isUnmounting||e.setState({providedProps:e.getProvidedProps(e.props)})})),n&&(this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this))}},{key:"shouldComponentUpdate",value:function(t,n){if("function"===typeof e.shouldComponentUpdate)return e.shouldComponentUpdate.call(this,this.props,t,this.state,n);var r=Ps(this.props,t);return null===this.state.providedProps||null===n.providedProps?this.state.providedProps!==n.providedProps||!r:!r||!Ps(this.state.providedProps,n.providedProps)}},{key:"componentDidUpdate",value:function(t){ms()(t,this.props)||(this.setState({providedProps:this.getProvidedProps(this.props)}),n&&(this.props.contextValue.widgetsManager.update(),"function"===typeof e.transitionState&&this.props.contextValue.onSearchStateChange(e.transitionState.call(this,this.props,this.props.contextValue.store.getState().widgets,this.props.contextValue.store.getState().widgets))))}},{key:"componentWillUnmount",value:function(){var t=this;this.cleanupTimerRef=setTimeout((function(){if(t.isUnmounting=!0,t.unsubscribe&&t.unsubscribe(),t.unregisterWidget&&(t.unregisterWidget(),"function"===typeof e.cleanUp)){var n=e.cleanUp.call(t,t.props,t.props.contextValue.store.getState().widgets);t.props.contextValue.store.setState(Is(Is({},t.props.contextValue.store.getState()),{},{widgets:n})),t.props.contextValue.onSearchStateChange(Rs(n))}}))}},{key:"getProvidedProps",value:function(t){var n=this.props.contextValue.store.getState(),r=n.widgets,i=n.results,o=n.resultsFacetValues,a=n.searching,s=n.searchingForFacetValues,l=n.isSearchStalled,u=n.metadata,c={results:i,searching:a,searchingForFacetValues:s,isSearchStalled:l,error:n.error};return e.getProvidedProps.call(this,t,r,c,u,o)}},{key:"getSearchParameters",value:function(t){return"function"===typeof e.getSearchParameters?e.getSearchParameters.call(this,t,this.props,this.props.contextValue.store.getState().widgets):null}},{key:"getMetadata",value:function(t){return"function"===typeof e.getMetadata?e.getMetadata.call(this,this.props,t):{}}},{key:"transitionState",value:function(t,n){return"function"===typeof e.transitionState?e.transitionState.call(this,this.props,t,n):n}},{key:"render",value:function(){var n=this.props,i=(n.contextValue,Ms(n,Ts)),o=this.state.providedProps;if(null===o)return null;var a="function"===typeof e.refine?{refine:this.refine,createURL:this.createURL}:{},s="function"===typeof e.searchForFacetValues?{searchForItems:this.searchForFacetValues}:{};return t.createElement(r,Fs({},i,o,a,s))}}])&&Ds(o.prototype,a),s&&Ds(o,s),Object.defineProperty(o,"prototype",{writable:!1}),u}(t.Component);return Hs(a,"displayName","".concat(e.displayName,"(").concat((i=r).displayName||i.name||"UnknownComponent",")")),Hs(a,"$$type",e.$$type),Hs(a,"$$widgetType",o.$$widgetType),Hs(a,"propTypes",e.propTypes),Hs(a,"defaultProps",e.defaultProps),Hs(a,"_connectorDesc",e),a}}const qs=function(e){return function(n,r){var i=Gs(e)(n,r);return function(e){return t.createElement(ys,null,(function(n){return t.createElement(ws,null,(function(r){return t.createElement(i,Fs({contextValue:n,indexContextValue:r},e))}))}))}}};function Ks(e){return Ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ks(e)}function Xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xs(Object(n),!0).forEach((function(t){Ys(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ys(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ks(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ks(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ks(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qs(e){return Js(e)?e.multiIndexContext.targetedIndex:e.ais.mainTargetedIndex}function $s(e,t){if(e.results){if(e.results.hits)return e.results;var n=Qs(t);if(e.results[n])return e.results[n]}return null}function Js(e){return e&&e.multiIndexContext}function el(e,t,n,r,i){if(Js(n)){var o=Qs(n);return i?function(e,t,n,r,i){var o,a=r?{page:1}:void 0,s=e.indices&&e.indices[n]?Zs(Zs({},e.indices),{},Ys({},n,Zs(Zs({},e.indices[n]),{},(Ys(o={},i,Zs(Zs({},e.indices[n][i]),t)),Ys(o,"page",1),o)))):Zs(Zs({},e.indices),{},Ys({},n,Zs(Ys({},i,t),a)));return Zs(Zs({},e),{},{indices:s})}(e,t,o,r,i):function(e,t,n,r){var i=r?{page:1}:void 0,o=e.indices&&e.indices[n]?Zs(Zs({},e.indices),{},Ys({},n,Zs(Zs(Zs({},e.indices[n]),t),i))):Zs(Zs({},e.indices),{},Ys({},n,Zs(Zs({},t),i)));return Zs(Zs({},e),{},{indices:o})}(e,t,o,r)}return e.indices&&r&&Object.keys(e.indices).forEach((function(t){e=el(e,{page:1},{multiIndexContext:{targetedIndex:t}},!0,i)})),i?function(e,t,n,r){var i=n?{page:1}:void 0;return Zs(Zs({},e),{},Ys({},r,Zs(Zs({},e[r]),t)),i)}(e,t,r,i):function(e,t,n){var r=n?{page:1}:void 0;return Zs(Zs(Zs({},e),t),r)}(e,t,r)}function tl(e){var t=e.match(/^([^.]*)\.(.*)/);return{namespace:t&&t[1],attributeName:t&&t[2]}}function nl(e,t,n,r,i){var o=Qs(n),a=tl(r),s=a.namespace,l=a.attributeName,u={multiIndex:Js(n),indexId:o,namespace:s,attributeName:l,id:r,searchState:t},c=function(e){var t=e.multiIndex,n=e.indexId,r=e.namespace,i=e.attributeName,o=e.id,a=e.searchState;return t&&r?a.indices&&a.indices[n]&&a.indices[n][r]&&Object.hasOwnProperty.call(a.indices[n][r],i):t?a.indices&&a.indices[n]&&Object.hasOwnProperty.call(a.indices[n],o):r?a[r]&&Object.hasOwnProperty.call(a[r],i):Object.hasOwnProperty.call(a,o)}(u);return c?function(e){var t=e.multiIndex,n=e.indexId,r=e.namespace,i=e.attributeName,o=e.id,a=e.searchState;return t&&r?a.indices[n][r][i]:t?a.indices[n][o]:r?a[r][i]:a[o]}(u):e.defaultRefinement?e.defaultRefinement:i}function rl(e,t,n){var r=Qs(t),i=tl(n),o=i.namespace,a=i.attributeName;return Js(t)&&Boolean(e.indices)?function(e){var t=e.searchState,n=e.indexId,r=e.id,i=e.namespace,o=e.attribute,a=t.indices[n];if(i&&a)return Zs(Zs({},t),{},{indices:Zs(Zs({},t.indices),{},Ys({},n,Zs(Zs({},a),{},Ys({},i,As(a[i],[o])))))});if(a)return Zs(Zs({},t),{},{indices:Zs(Zs({},t.indices),{},Ys({},n,As(a,[r])))});return t}({attribute:a,searchState:e,indexId:r,id:n,namespace:o}):function(e){var t=e.searchState,n=e.id,r=e.namespace,i=e.attribute;if(r)return Zs(Zs({},t),{},Ys({},r,As(t[r],[i])));return As(t,[n])}({attribute:a,searchState:e,id:n,namespace:o})}function il(e){return il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},il(e)}function ol(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==il(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==il(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===il(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function al(e,t,n){var r=nl(e,t,n,"query","");return r||""}function sl(e,t,n,r){return el(t,ol({},"query",n),r,!0)}const ll=qs({displayName:"AlgoliaSearchBox",$$type:"ais.searchBox",propTypes:{defaultRefinement:M().string},getProvidedProps:function(e,t,n){return{currentRefinement:al(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isSearchStalled:n.isSearchStalled}},refine:function(e,t,n){return sl(0,t,n,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return function(e,t,n){return rl(t,n,"query")}(0,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},getSearchParameters:function(e,t,n){return e.setQuery(al(t,n,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(e,t){var n="query",r=al(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return{id:n,index:Qs({ais:e.contextValue,multiIndexContext:e.indexContextValue}),items:null===r?[]:[{label:"".concat(n,": ").concat(r),value:function(t){return sl(0,t,"",{ais:e.contextValue,multiIndexContext:e.indexContextValue})},currentRefinement:r}]}}}),ul=qs({displayName:"AlgoliaStateResults",$$type:"ais.stateResults",getProvidedProps:function(e,t,n){return{searchState:t,searchResults:$s(n,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),allSearchResults:n.results,searching:n.searching,isSearchStalled:n.isSearchStalled,error:n.error,searchingForFacetValues:n.searchingForFacetValues,props:e}}});var cl;function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dl.apply(this,arguments)}function fl(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",dl({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,cl||(cl=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.3723 22.117C23.719 22.4637 23.719 23.0257 23.3723 23.3723C23.0257 23.719 22.4637 23.719 22.117 23.3723L16.8475 18.1028C16.3904 17.6457 15.6641 17.6208 15.123 17.9745C11.1608 20.5639 5.82363 19.9525 2.55769 16.3754C-0.967972 12.5138 -0.832726 6.56215 2.86471 2.86471C6.56215 -0.832726 12.5138 -0.967972 16.3754 2.55769C19.9525 5.82363 20.5639 11.1608 17.9745 15.123C17.6208 15.6641 17.6457 16.3904 18.1028 16.8475L23.3723 22.117ZM9.79677 1.80687C5.38428 1.80687 1.80725 5.3839 1.80725 9.79639C1.81214 14.2069 5.38631 17.781 9.79677 17.7859C14.2093 17.7859 17.7863 14.2089 17.7863 9.79639C17.7863 5.3839 14.2093 1.80687 9.79677 1.80687Z",fill:"#000"})))}const hl=t.forwardRef(fl),pl=n.p+"static/media/icon_search.cc17077df07fb2b82c0d58f9bddc7974.svg";var gl;function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ml.apply(this,arguments)}function vl(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",ml({width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,gl||(gl=t.createElement("path",{d:"M9.33333 16H6.66667C6.31305 16 5.97391 15.8595 5.72386 15.6095C5.47381 15.3594 5.33333 15.0203 5.33333 14.6667V9.60667L0.393333 4.66667C0.142942 4.41777 0.00148853 4.07972 0 3.72667V1.33333C0 0.979711 0.140476 0.640573 0.390524 0.390524C0.640573 0.140476 0.979711 0 1.33333 0H14.6667C15.0203 0 15.3594 0.140476 15.6095 0.390524C15.8595 0.640573 16 0.979711 16 1.33333V3.72667C15.9985 4.07972 15.8571 4.41777 15.6067 4.66667L10.6667 9.60667V14.6667C10.6667 15.0203 10.5262 15.3594 10.2761 15.6095C10.0261 15.8595 9.68696 16 9.33333 16ZM1.33333 1.33333V3.72667L6.66667 9.06V14.6667H9.33333V9.06L14.6667 3.72667V1.33333H1.33333Z",fill:"currentColor"})))}const yl=t.forwardRef(vl),bl=(n.p,()=>{const{search:e}=Fe();return(0,t.useMemo)((()=>new URLSearchParams(e)),[e])});n(7657);Object.create(null);const xl={};function wl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"===typeof t[0]&&xl[t[0]]||("string"===typeof t[0]&&(xl[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"===typeof t[0]&&(t[0]="react-i18next:: ".concat(t[0])),console.warn(...t)}}(...t))}const Cl=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function Sl(e,t,n){e.loadNamespaces(t,Cl(e,n))}function kl(e,t,n,r){"string"===typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,Cl(e,r))}const _l=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,El={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026","/":"/","/":"/"},Pl=e=>El[e];let jl,Ol={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(_l,Pl)};const Rl={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ol={...Ol,...e}}(e.options.react),function(e){jl=e}(e)}},Al=(0,t.createContext)();class Tl{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Nl=(e,n)=>{const r=(0,t.useRef)();return(0,t.useEffect)((()=>{r.current=n?r.current:e}),[e,n]),r.current};function Fl(e,t,n,r){return e.getFixedT(t,n,r)}function Ml(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:r}=n,{i18n:i,defaultNS:o}=(0,t.useContext)(Al)||{},a=r||i||jl;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Tl),!a){wl("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"===typeof t?t:t&&"object"===typeof t&&"string"===typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react&&void 0!==a.options.react.wait&&wl("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...Ol,...a.options.react,...n},{useSuspense:l,keyPrefix:u}=s;let c=e||o||a.options&&a.options.defaultNS;c="string"===typeof c?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(c);const d=(a.isInitialized||a.initializedStoreOnce)&&c.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const a=(e,n)=>{const r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e)))}(e,t,n):(wl("i18n.languages were undefined or empty",t.languages),!0)}(e,a,s))),f=function(e,n,r,i){return(0,t.useCallback)(Fl(e,n,r,i),[e,n,r,i])}(a,n.lng||null,"fallback"===s.nsMode?c:c[0],u),h=()=>f,p=()=>Fl(a,n.lng||null,"fallback"===s.nsMode?c:c[0],u),[g,m]=(0,t.useState)(h);let v=c.join();n.lng&&(v="".concat(n.lng).concat(v));const y=Nl(v),b=(0,t.useRef)(!0);(0,t.useEffect)((()=>{const{bindI18n:e,bindI18nStore:t}=s;function r(){b.current&&m(p)}return b.current=!0,d||l||(n.lng?kl(a,n.lng,c,(()=>{b.current&&m(p)})):Sl(a,c,(()=>{b.current&&m(p)}))),d&&y&&y!==v&&b.current&&m(p),e&&a&&a.on(e,r),t&&a&&a.store.on(t,r),()=>{b.current=!1,e&&a&&e.split(" ").forEach((e=>a.off(e,r))),t&&a&&t.split(" ").forEach((e=>a.store.off(e,r)))}}),[a,v]),(0,t.useEffect)((()=>{b.current&&d&&m(h)}),[a,u,d]);const x=[g,a,d];if(x.t=g,x.i18n=a,x.ready=d,d)return x;if(!d&&!l)return x;throw new Promise((e=>{n.lng?kl(a,n.lng,c,(()=>e())):Sl(a,c,(()=>e()))}))}const Ll=ll((0,t.memo)(ul((function(e){var n,r,i,o,a,s,l,u,c,d,f,h;const{user:p}=ls(),{auth0:g}=Nr((e=>e.settings)),{onToggleFilterMobile:m,refine:v}=e,y=Tr(),b=Nr((e=>e)),{search:x}=b,{imageThumbSearchInput:w,preFilter:C,preFilterDropdown:S,valueTextSearch:k,queryText:_,requestImage:E,selectedRegion:P,results:j,postFilter:O}=x,R=bl(),A=(0,t.useRef)(null),[T,N]=(0,t.useState)(!1),F=Ne(),{settings:M}=Nr((e=>e)),[L,I]=(0,t.useState)(_||""),D=R.get("query")||"";(0,t.useEffect)((()=>{var e;"/result"===(null===(e=F.location)||void 0===e?void 0:e.pathname)&&(w||L)?N(!0):N(!1)}),[w,F.location,L]),(0,t.useEffect)((()=>{var e,t;""!==w?(F.push("/result"),y(xr("")),I(""),null!==(e=M.algolia)&&void 0!==e&&e.enabled?v(""):y(mr(""))):null!==(t=M.algolia)&&void 0!==t&&t.enabled&&setTimeout((()=>{v(D)}),100)}),[w,y,v,F,M.algolia]),(0,t.useEffect)((()=>{var e;(0,Yn.isEmpty)(D)||(I(D),y(xr(D)),null!==(e=M.algolia)&&void 0!==e&&e.enabled?(v(D),setTimeout((()=>{v(D)}),100)):y(mr(D)))}),[R,v,y,D,M.algolia]);const z=(0,t.useCallback)((0,Yn.debounce)((e=>{var t;if(null===(t=M.algolia)||void 0===t||!t.enabled){let t;y(mr(e));let n=[];const r=[{key:M.visualSearchFilterKey,values:Object.keys(C)}];e||E?(y(br(!0)),ko({image:null===E||void 0===E?void 0:E.canvas,settings:M,filters:(0,Yn.isEmpty)(C)?void 0:r,region:P,text:e}).then((e=>{null===e||void 0===e||e.results.forEach((e=>{n.push({sku:e.sku,score:e.score})})),t={...e,filters:n},y(hr(t)),y(br(!1)),y(wr(!0))})).catch((e=>{console.log("error input search",e),y(br(!1))}))):y(hr([]))}e?F.push({pathname:"/result",search:"?query=".concat(e)}):F.push("/result")}),500),[E]),B=(0,t.useMemo)((()=>{let e=!1;if(M.algolia.enabled){if(null===k||void 0===k||!k.refinementList)return!1;Object.keys(null===k||void 0===k?void 0:k.refinementList).forEach((t=>{"object"!==typeof k.refinementList[t]||(e=!0)}))}else Object.keys(O).forEach((t=>{const n=O[t];Object.keys(n).forEach((t=>{n[t]&&(e=!0)}))}));return e}),[null===k||void 0===k?void 0:k.refinementList,M,O]),U=(0,t.useMemo)((()=>{var t;return M.algolia.enabled?!(M.postFilterOption&&(null===(t=e.allSearchResults)||void 0===t?void 0:t.hits.length)>0):!(M.postFilterOption&&(null===j||void 0===j?void 0:j.length)>0)}),[M,j,null===(n=e.allSearchResults)||void 0===n?void 0:n.hits]),V=(0,t.useMemo)((()=>M.shouldUseUserMetadata&&p?!(!M.preFilterOption||p["/user_metadata"].value):M.preFilterOption),[M.preFilterOption,M.shouldUseUserMetadata,p]);return(0,_o.jsxs)("div",{style:{width:"100%",background:"#fff"},children:["/result"!==(null===(r=F.location)||void 0===r?void 0:r.pathname)&&(0,_o.jsx)("div",{className:"box-content",style:{display:"flex",alignItems:"center",height:"48px",background:null===(i=M.theme)||void 0===i?void 0:i.headerColor},children:(0,_o.jsx)(We,{to:"/",style:{lineHeight:0,paddingLeft:"10px"},onClick:()=>{y(rr("")),y(ur({}))},children:(0,_o.jsx)("img",{src:null===(o=M.theme)||void 0===o?void 0:o.appBarLogoUrl,alt:"logo",style:{aspectRatio:1,width:null===(a=M.theme)||void 0===a?void 0:a.logoWidth,height:null===(s=M.theme)||void 0===s?void 0:s.logoHeight}})})}),(g.enabled&&(null===p||void 0===p?void 0:p.email_verified)||!g.enabled)&&(0,_o.jsxs)("div",{style:{margin:"16px 8px",display:"flex",columnGap:"8px",alignItems:"center"},children:[(0,_o.jsx)("div",{className:"wrap-header-mobile",style:{height:"56px"},children:(0,_o.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%"},children:(0,_o.jsxs)("div",{ref:A,id:"box-input-search",className:"d-flex w-100",style:{alignItems:"center",height:"100%"},children:[(0,_o.jsxs)("div",{className:"pre-filter-icon",onClick:()=>{V&&(m(!1),y(cr(!S)))},style:{cursor:V?"pointer":""},children:[V&&(0,_o.jsx)("div",{className:"icon-hover",style:{...(0,Yn.isEmpty)(C)?{backgroundColor:"#2B2C46"}:{backgroundColor:null===(l=M.theme)||void 0===l?void 0:l.primaryColor}},children:(0,_o.jsx)(ps,{color:"white"})}),!V&&(0,_o.jsx)(hl,{width:16,height:16}),!(0,Yn.isEmpty)(C)&&V&&(0,_o.jsx)("div",{style:{position:"absolute",top:"7px",left:"35px",display:"flex",justifyContent:"center",alignItems:"center",background:"white",width:"10px",height:"10px",borderRadius:"100%"},children:(0,_o.jsx)("div",{style:{width:"8px",height:"8px",background:null===(u=M.theme)||void 0===u?void 0:u.primaryColor,borderRadius:"100%"}})})]}),(0,_o.jsx)(zl,{value:L,onChange:e=>{I(e.currentTarget.value),z(e.currentTarget.value),""===e.currentTarget.value?(y(xr("")),v("")):y(xr(e.currentTarget.value))}}),"/"!==(null===(c=F.location)||void 0===c?void 0:c.pathname)&&L&&(0,_o.jsx)(oi,{onClick:()=>{if(I(""),w)return F.push("/result"),y(xr("")),void v("");y(xr("")),y(rr("")),v(""),F.push("/")},style:{marginRight:"8px",border:0,width:"40px",height:"40px"},children:(0,_o.jsx)(go.A,{style:{fontSize:16,color:null===(d=M.theme)||void 0===d?void 0:d.secondaryColor}})})]})})}),T&&M.postFilterOption&&(0,_o.jsxs)("div",{style:{position:"relative",width:"56px",height:"56px",padding:" 8px",flexShrink:0,borderRadius:"32px",background:"#FAFAFA",boxShadow:" 0px 0px 8px 0px rgba(0, 0, 0, 0.15)"},onClick:()=>{U||(m(),y(cr(!1)))},children:[(0,_o.jsx)("div",{style:{display:"flex",background:"".concat(U?"#F3F3F5":B?null===(f=M.theme)||void 0===f?void 0:f.primaryColor:"#2B2C46"),borderRadius:"40px",width:"40px",height:"40px",justifyContent:"center",alignItems:"center"},children:(0,_o.jsx)(yl,{color:"".concat(U?"#E0E0E0":"white")})}),B&&(0,_o.jsx)("div",{style:{position:"absolute",top:"8px",left:"37px",display:"flex",justifyContent:"center",alignItems:"center",background:"white",width:"10px",height:"10px",borderRadius:"100%"},children:(0,_o.jsx)("div",{style:{width:"8px",height:"8px",background:U?"#E0E0E0":null===(h=M.theme)||void 0===h?void 0:h.primaryColor,borderRadius:"100%"}})})]})]})]})})))),Il=Ll,Dl="mobile-input-search",zl=e=>{let{value:n,onChange:r}=e;(0,t.useEffect)((()=>{const e=document.getElementById(Dl),t=t=>{"Enter"===t.key&&(null===e||void 0===e||e.blur())};return null===e||void 0===e||e.addEventListener("keyup",t,!1),()=>{null===e||void 0===e||e.removeEventListener("scroll",t,!1)}}),[]);const{t:i}=Ml();return(0,_o.jsx)("input",{style:{border:"0px",width:"100%",display:"flex",flexGrow:1,fontSize:14,paddingLeft:"12px",paddingRight:"4px",color:"#2B2C46",outline:"none",borderRadius:"32px"},className:"input-search",placeholder:i("Search"),value:n,onChange:r,id:Dl})};n(6331);function Bl(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Ul={entering:{opacity:1,transform:Bl(1)},entered:{opacity:1,transform:"none"}},Vl=t.forwardRef((function(e,n){var r=e.children,i=e.disableStrictModeCompat,o=void 0!==i&&i,a=e.in,s=e.onEnter,l=e.onEntered,u=e.onEntering,c=e.onExit,d=e.onExited,f=e.onExiting,h=e.style,p=e.timeout,g=void 0===p?"auto":p,m=e.TransitionComponent,v=void 0===m?Hi:m,y=(0,Fr.A)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=t.useRef(),x=t.useRef(),w=qi(),C=w.unstable_strictMode&&!o,S=t.useRef(null),k=(0,zr.A)(r.ref,n),_=(0,zr.A)(C?S:void 0,k),E=function(e){return function(t,n){if(e){var r=C?[S.current,t]:[t,n],i=(0,Fi.A)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},P=E(u),O=E((function(e,t){Ki(e);var n,r=Xi({style:h,timeout:g},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===g?(n=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=i,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:o}),w.transitions.create("transform",{duration:.666*n,delay:o})].join(","),s&&s(e,t)})),R=E(l),A=E(f),T=E((function(e){var t,n=Xi({style:h,timeout:g},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===g?(t=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:i}),w.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=Bl(.75),c&&c(e)})),N=E(d);return t.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),t.createElement(v,(0,j.A)({appear:!0,in:a,nodeRef:C?S:void 0,onEnter:O,onEntered:R,onEntering:P,onExit:T,onExited:N,onExiting:A,addEndListener:function(e,t){var n=C?e:t;"auto"===g&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===g?null:g},y),(function(e,n){return t.cloneElement(r,(0,j.A)({style:(0,j.A)({opacity:0,transform:Bl(.75),visibility:"exited"!==e||a?void 0:"hidden"},Ul[e],h,r.props.style),ref:_},n))}))}));Vl.muiSupportAuto=!0;const Hl=Vl;function Wl(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Gl(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ql(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function Kl(e){return"function"===typeof e?e():e}var Xl=t.forwardRef((function(e,n){var r=e.action,i=e.anchorEl,o=e.anchorOrigin,a=void 0===o?{vertical:"top",horizontal:"left"}:o,s=e.anchorPosition,l=e.anchorReference,u=void 0===l?"anchorEl":l,c=e.children,d=e.classes,f=e.className,h=e.container,p=e.elevation,g=void 0===p?8:p,m=e.getContentAnchorEl,v=e.marginThreshold,y=void 0===v?16:v,b=e.onEnter,x=e.onEntered,w=e.onEntering,C=e.onExit,S=e.onExited,k=e.onExiting,_=e.open,E=e.PaperProps,P=void 0===E?{}:E,O=e.transformOrigin,R=void 0===O?{vertical:"top",horizontal:"left"}:O,A=e.TransitionComponent,T=void 0===A?Hl:A,N=e.transitionDuration,F=void 0===N?"auto":N,M=e.TransitionProps,L=void 0===M?{}:M,I=(0,Fr.A)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),D=t.useRef(),z=t.useCallback((function(e){if("anchorPosition"===u)return s;var t=Kl(i),n=(t&&1===t.nodeType?t:(0,di.A)(D.current).body).getBoundingClientRect(),r=0===e?a.vertical:"center";return{top:n.top+Wl(n,r),left:n.left+Gl(n,a.horizontal)}}),[i,a.horizontal,a.vertical,s,u]),B=t.useCallback((function(e){var t=0;if(m&&"anchorEl"===u){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[a.vertical,u,m]),U=t.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Wl(e,R.vertical)+t,horizontal:Gl(e,R.horizontal)}}),[R.horizontal,R.vertical]),V=t.useCallback((function(e){var t=B(e),n={width:e.offsetWidth,height:e.offsetHeight},r=U(n,t);if("none"===u)return{top:null,left:null,transformOrigin:ql(r)};var o=z(t),a=o.top-r.vertical,s=o.left-r.horizontal,l=a+n.height,c=s+n.width,d=(0,wi.A)(Kl(i)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,r.vertical+=p}else if(l>f){var g=l-f;a-=g,r.vertical+=g}if(s<y){var m=s-y;s-=m,r.horizontal+=m}else if(c>h){var v=c-h;s-=v,r.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:ql(r)}}),[i,u,z,B,U,y]),H=t.useCallback((function(){var e=D.current;if(e){var t=V(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[V]),W=t.useCallback((function(e){D.current=Dr.findDOMNode(e)}),[]);t.useEffect((function(){_&&H()})),t.useImperativeHandle(r,(function(){return _?{updatePosition:function(){H()}}:null}),[_,H]),t.useEffect((function(){if(_){var e=(0,to.A)((function(){H()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[_,H]);var G=F;"auto"!==F||T.muiSupportAuto||(G=void 0);var q=h||(i?(0,di.A)(Kl(i)).body:void 0);return t.createElement(Ni,(0,j.A)({container:q,open:_,ref:n,BackdropProps:{invisible:!0},className:(0,Mr.A)(d.root,f)},I),t.createElement(T,(0,j.A)({appear:!0,in:_,onEnter:b,onEntered:x,onExit:C,onExited:S,onExiting:k,timeout:G},L,{onEntering:(0,mi.A)((function(e,t){w&&w(e,t),H()}),L.onEntering)}),t.createElement(so,(0,j.A)({elevation:g,ref:W},P,{className:(0,Mr.A)(d.paper,P.className)}),c)))}));const Zl=(0,Lr.A)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Xl);const Yl=t.createContext({});var Ql=t.forwardRef((function(e,n){var r=e.children,i=e.classes,o=e.className,a=e.component,s=void 0===a?"ul":a,l=e.dense,u=void 0!==l&&l,c=e.disablePadding,d=void 0!==c&&c,f=e.subheader,h=(0,Fr.A)(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=t.useMemo((function(){return{dense:u}}),[u]);return t.createElement(Yl.Provider,{value:p},t.createElement(s,(0,j.A)({className:(0,Mr.A)(i.root,o,u&&i.dense,!d&&i.padding,f&&i.subheader),ref:n},h),f,r))}));const $l=(0,Lr.A)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Ql);function Jl(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function eu(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function tu(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function nu(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&tu(s,o)&&!l)return void s.focus();s=i(e,s,n)}}var ru="undefined"===typeof window?t.useEffect:t.useLayoutEffect,iu=t.forwardRef((function(e,n){var r=e.actions,i=e.autoFocus,o=void 0!==i&&i,a=e.autoFocusItem,s=void 0!==a&&a,l=e.children,u=e.className,c=e.disabledItemsFocusable,d=void 0!==c&&c,f=e.disableListWrap,h=void 0!==f&&f,p=e.onKeyDown,g=e.variant,m=void 0===g?"selectedMenu":g,v=(0,Fr.A)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),y=t.useRef(null),b=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ru((function(){o&&y.current.focus()}),[o]),t.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!y.current.style.width;if(e.clientHeight<y.current.clientHeight&&n){var r="".concat(xi(),"px");y.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,y.current.style.width="calc(100% + ".concat(r,")")}return y.current}}}),[]);var x=t.useCallback((function(e){y.current=Dr.findDOMNode(e)}),[]),w=(0,zr.A)(x,n),C=-1;t.Children.forEach(l,(function(e,n){t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===m&&e.props.selected||-1===C)&&(C=n))}));var S=t.Children.map(l,(function(e,n){if(n===C){var r={};return s&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===m&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return t.createElement($l,(0,j.A)({role:"menu",ref:w,className:u,onKeyDown:function(e){var t=y.current,n=e.key,r=(0,di.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),nu(t,r,h,d,Jl);else if("ArrowUp"===n)e.preventDefault(),nu(t,r,h,d,eu);else if("Home"===n)e.preventDefault(),nu(t,null,h,d,Jl);else if("End"===n)e.preventDefault(),nu(t,null,h,d,eu);else if(1===n.length){var i=b.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&tu(r,i);i.previousKeyMatched&&(s||nu(t,r,!1,d,Jl,i))?e.preventDefault():i.previousKeyMatched=!1}p&&p(e)},tabIndex:o?0:-1},v),S)}));const ou=iu;var au={vertical:"top",horizontal:"right"},su={vertical:"top",horizontal:"left"},lu=t.forwardRef((function(e,n){var r=e.autoFocus,i=void 0===r||r,o=e.children,a=e.classes,s=e.disableAutoFocusItem,l=void 0!==s&&s,u=e.MenuListProps,c=void 0===u?{}:u,d=e.onClose,f=e.onEntering,h=e.open,p=e.PaperProps,g=void 0===p?{}:p,m=e.PopoverClasses,v=e.transitionDuration,y=void 0===v?"auto":v,b=e.TransitionProps,x=(b=void 0===b?{}:b).onEntering,w=(0,Fr.A)(b,["onEntering"]),C=e.variant,S=void 0===C?"selectedMenu":C,k=(0,Fr.A)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),_=qi(),E=i&&!l&&h,P=t.useRef(null),O=t.useRef(null),R=-1;t.Children.map(o,(function(e,n){t.isValidElement(e)&&(e.props.disabled||("menu"!==S&&e.props.selected||-1===R)&&(R=n))}));var A=t.Children.map(o,(function(e,n){return n===R?t.cloneElement(e,{ref:function(t){O.current=Dr.findDOMNode(t),(0,fi.A)(e.ref,t)}}):e}));return t.createElement(Zl,(0,j.A)({getContentAnchorEl:function(){return O.current},classes:m,onClose:d,TransitionProps:(0,j.A)({onEntering:function(e,t){P.current&&P.current.adjustStyleForScrollbar(e,_),f&&f(e,t),x&&x(e,t)}},w),anchorOrigin:"rtl"===_.direction?au:su,transformOrigin:"rtl"===_.direction?au:su,PaperProps:(0,j.A)({},g,{classes:(0,j.A)({},g.classes,{root:a.paper})}),open:h,ref:n,transitionDuration:y},k),t.createElement(ou,(0,j.A)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===R||l),autoFocusItem:E,variant:S},c,{className:(0,Mr.A)(a.list,c.className)}),A))}));const uu=(0,Lr.A)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(lu);var cu;function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},du.apply(this,arguments)}function fu(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",du({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,cu||(cu=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.153 13.1029C16.4093 10.3896 16.6189 6.51922 14.6686 3.57859C12.7184 0.63796 9.06952 -0.677581 5.68945 0.34128C2.30938 1.36014 -0.00263212 4.47248 2.24892e-06 8.00018C0.00045013 9.86651 0.658681 11.6731 1.85919 13.1029L1.84775 13.1123C1.86985 13.139 1.89369 13.1635 1.91756 13.188L1.91757 13.1881L1.91758 13.1881C1.93694 13.208 1.95633 13.2279 1.97482 13.249C2.00851 13.2878 2.04377 13.3248 2.07913 13.3618L2.07914 13.3619L2.07918 13.3619C2.09781 13.3814 2.11647 13.401 2.13494 13.4209C2.29507 13.5942 2.45942 13.761 2.63247 13.918C2.66868 13.9509 2.70582 13.9824 2.74301 14.0139L2.74305 14.0139L2.79259 14.0561C2.97558 14.2138 3.16338 14.3631 3.35873 14.5026C3.37125 14.5114 3.38306 14.5212 3.39489 14.5311L3.39492 14.5311C3.40691 14.5411 3.41892 14.5511 3.4317 14.5601V14.5528C6.17596 16.4824 9.83728 16.4824 12.5815 14.5528V14.5599C12.5943 14.5509 12.6063 14.5409 12.6183 14.531C12.6302 14.5211 12.642 14.5113 12.6545 14.5025C12.8496 14.363 13.0377 14.2137 13.2207 14.056L13.2614 14.0214L13.2614 14.0214C13.3015 13.9874 13.3417 13.9534 13.3808 13.9179C13.5538 13.7608 13.7182 13.594 13.8783 13.4208C13.8971 13.4005 13.9161 13.3806 13.935 13.3607L13.9351 13.3606C13.97 13.3239 14.0049 13.2872 14.0384 13.2489C14.057 13.2276 14.0766 13.2074 14.0962 13.1873L14.0962 13.1873L14.0962 13.1873C14.1199 13.163 14.1436 13.1386 14.1655 13.1122L14.153 13.1029ZM8.00611 3.42892C9.42735 3.42892 10.5795 4.58015 10.5795 6.00026C10.5795 7.42036 9.42735 8.57159 8.00611 8.57159C6.58486 8.57159 5.43271 7.42036 5.43271 6.00026C5.43271 4.58015 6.58486 3.42892 8.00611 3.42892ZM6.29051 10.2858C4.72789 10.2866 3.4558 11.5416 3.43525 13.1029C6.03294 15.4418 9.97927 15.4418 12.577 13.1029C12.5564 11.5416 11.2843 10.2866 9.7217 10.2858H6.29051Z",fill:"#2B2C46"})))}const hu=t.forwardRef(fu);n.p;var pu=n(1948),gu="undefined"===typeof window?t.useEffect:t.useLayoutEffect,mu=t.forwardRef((function(e,n){var r=e.alignItems,i=void 0===r?"center":r,o=e.autoFocus,a=void 0!==o&&o,s=e.button,l=void 0!==s&&s,u=e.children,c=e.classes,d=e.className,f=e.component,h=e.ContainerComponent,p=void 0===h?"li":h,g=e.ContainerProps,m=(g=void 0===g?{}:g).className,v=(0,Fr.A)(g,["className"]),y=e.dense,b=void 0!==y&&y,x=e.disabled,w=void 0!==x&&x,C=e.disableGutters,S=void 0!==C&&C,k=e.divider,_=void 0!==k&&k,E=e.focusVisibleClassName,P=e.selected,O=void 0!==P&&P,R=(0,Fr.A)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),A=t.useContext(Yl),T={dense:b||A.dense||!1,alignItems:i},N=t.useRef(null);gu((function(){a&&N.current&&N.current.focus()}),[a]);var F=t.Children.toArray(u),M=F.length&&(0,pu.A)(F[F.length-1],["ListItemSecondaryAction"]),L=t.useCallback((function(e){N.current=Dr.findDOMNode(e)}),[]),I=(0,zr.A)(L,n),D=(0,j.A)({className:(0,Mr.A)(c.root,d,T.dense&&c.dense,!S&&c.gutters,_&&c.divider,w&&c.disabled,l&&c.button,"center"!==i&&c.alignItemsFlexStart,M&&c.secondaryAction,O&&c.selected),disabled:w},R),z=f||"li";return l&&(D.component=f||"div",D.focusVisibleClassName=(0,Mr.A)(c.focusVisible,E),z=ni),M?(z=D.component||f?z:"div","li"===p&&("li"===z?z="div":"li"===D.component&&(D.component="div")),t.createElement(Yl.Provider,{value:T},t.createElement(p,(0,j.A)({className:(0,Mr.A)(c.container,m),ref:I},v),t.createElement(z,D,F),F.pop()))):t.createElement(Yl.Provider,{value:T},t.createElement(z,(0,j.A)({ref:I},D),F))}));const vu=(0,Lr.A)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(mu);var yu=t.forwardRef((function(e,n){var r,i=e.classes,o=e.className,a=e.component,s=void 0===a?"li":a,l=e.disableGutters,u=void 0!==l&&l,c=e.ListItemClasses,d=e.role,f=void 0===d?"menuitem":d,h=e.selected,p=e.tabIndex,g=(0,Fr.A)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(r=void 0!==p?p:-1),t.createElement(vu,(0,j.A)({button:!0,role:f,tabIndex:r,component:s,selected:h,disableGutters:u,classes:(0,j.A)({dense:i.dense},c),className:(0,Mr.A)(i.root,o,h&&i.selected,!u&&i.gutters),ref:n},g))}));const bu=(0,Lr.A)((function(e){return{root:(0,j.A)({},e.typography.body1,(0,qe.A)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,j.A)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(yu);var xu=n(2405),wu="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,Cu=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(wu&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var Su=wu&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Cu))}};function ku(e){return e&&"[object Function]"==={}.toString.call(e)}function _u(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Eu(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Pu(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=_u(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Pu(Eu(e))}function ju(e){return e&&e.referenceNode?e.referenceNode:e}var Ou=wu&&!(!window.MSInputMethodContext||!document.documentMode),Ru=wu&&/MSIE 10/.test(navigator.userAgent);function Au(e){return 11===e?Ou:10===e?Ru:Ou||Ru}function Tu(e){if(!e)return document.documentElement;for(var t=Au(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===_u(n,"position")?Tu(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Nu(e){return null!==e.parentNode?Nu(e.parentNode):e}function Fu(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||Tu(e.firstElementChild)===e)}(a)?a:Tu(a);var s=Nu(e);return s.host?Fu(s.host,t):Fu(e,Nu(t).host)}function Mu(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function Lu(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function Iu(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Au(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Du(e){var t=e.body,n=e.documentElement,r=Au(10)&&getComputedStyle(n);return{height:Iu("Height",t,n,r),width:Iu("Width",t,n,r)}}var zu=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Bu=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Uu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Vu(e){return Uu({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Hu(e){var t={};try{if(Au(10)){t=e.getBoundingClientRect();var n=Mu(e,"top"),r=Mu(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch($o){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?Du(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,u=e.offsetHeight-s;if(l||u){var c=_u(e);l-=Lu(c,"x"),u-=Lu(c,"y"),i.width-=l,i.height-=u}return Vu(i)}function Wu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Au(10),i="HTML"===t.nodeName,o=Hu(e),a=Hu(t),s=Pu(e),l=_u(t),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Vu({top:o.top-a.top-u,left:o.left-a.left-c,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var f=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=u-f,d.bottom-=u-f,d.left-=c-h,d.right-=c-h,d.marginTop=f,d.marginLeft=h}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Mu(t,"top"),i=Mu(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(d,t)),d}function Gu(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===_u(e,"position"))return!0;var n=Eu(e);return!!n&&Gu(n)}function qu(e){if(!e||!e.parentElement||Au())return document.documentElement;for(var t=e.parentElement;t&&"none"===_u(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ku(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?qu(e):Fu(e,ju(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Wu(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Mu(n),s=t?0:Mu(n,"left");return Vu({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=Pu(Eu(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Wu(s,a,i);if("HTML"!==s.nodeName||Gu(a))o=l;else{var u=Du(e.ownerDocument),c=u.height,d=u.width;o.top+=l.top-l.marginTop,o.bottom=c+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var f="number"===typeof(n=n||0);return o.left+=f?n:n.left||0,o.top+=f?n:n.top||0,o.right-=f?n:n.right||0,o.bottom-=f?n:n.bottom||0,o}function Xu(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Ku(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return Uu({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),u=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function Zu(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Wu(n,r?qu(t):Fu(t,ju(n)),r)}function Yu(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Qu(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function $u(e,t,n){n=n.split("-")[0];var r=Yu(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[u]:t[Qu(s)],i}function Ju(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ec(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=Ju(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&ku(n)&&(t.offsets.popper=Vu(t.offsets.popper),t.offsets.reference=Vu(t.offsets.reference),t=n(t,e))})),t}function tc(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Zu(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Xu(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=$u(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ec(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function nc(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function rc(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if("undefined"!==typeof document.body.style[o])return o}return null}function ic(){return this.state.isDestroyed=!0,nc(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[rc("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function oc(e){var t=e.ownerDocument;return t?t.defaultView:window}function ac(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||ac(Pu(o.parentNode),t,n,r),r.push(o)}function sc(e,t,n,r){n.updateBound=r,oc(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Pu(e);return ac(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function lc(){this.state.eventsEnabled||(this.state=sc(this.reference,this.options,this.state,this.scheduleUpdate))}function uc(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,oc(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function cc(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function dc(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&cc(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var fc=wu&&/Firefox/i.test(navigator.userAgent);function hc(e,t,n){var r=Ju(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var pc=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],gc=pc.slice(3);function mc(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=gc.indexOf(e),r=gc.slice(n+1).concat(gc.slice(0,n));return t?r.reverse():r}var vc="flip",yc="clockwise",bc="counterclockwise";function xc(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(Ju(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){return Vu("%p"===a?n:r)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))})),u.forEach((function(e,t){e.forEach((function(n,r){cc(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var wc={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:Bu({},l,o[l]),end:Bu({},l,o[l]+o[u]-a[u])};e.offsets.popper=Uu({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=cc(+n)?[+n,0]:xc(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Tu(e.instance.popper);e.instance.reference===n&&(n=Tu(n));var r=rc("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=Ku(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,d={primary:function(e){var n=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(c[e],l[e])),Bu({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),Bu({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=Uu({},c,d[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!hc(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",c=l?"Top":"Left",d=c.toLowerCase(),f=l?"left":"top",h=l?"bottom":"right",p=Yu(r)[u];s[h]-p<a[d]&&(e.offsets.popper[d]-=a[d]-(s[h]-p)),s[d]+p>a[h]&&(e.offsets.popper[d]+=s[d]+p-a[h]),e.offsets.popper=Vu(e.offsets.popper);var g=s[d]+s[u]/2-p/2,m=_u(e.instance.popper),v=parseFloat(m["margin"+c]),y=parseFloat(m["border"+c+"Width"]),b=g-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[u]-p,b),0),e.arrowElement=r,e.offsets.arrow=(Bu(n={},d,Math.round(b)),Bu(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(nc(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Ku(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Qu(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case vc:a=[r,i];break;case yc:a=mc(r);break;case bc:a=mc(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=Qu(r);var u=e.offsets.popper,c=e.offsets.reference,d=Math.floor,f="left"===r&&d(u.right)>d(c.left)||"right"===r&&d(u.left)<d(c.right)||"top"===r&&d(u.bottom)>d(c.top)||"bottom"===r&&d(u.top)<d(c.bottom),h=d(u.left)<d(n.left),p=d(u.right)>d(n.right),g=d(u.top)<d(n.top),m=d(u.bottom)>d(n.bottom),v="left"===r&&h||"right"===r&&p||"top"===r&&g||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&m),x=!!t.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&h||!y&&"start"===o&&m||!y&&"end"===o&&g),w=b||x;(f||v||w)&&(e.flipped=!0,(f||v)&&(r=a[l+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=Uu({},e.offsets.popper,$u(e.instance.popper,e.offsets.reference,e.placement)),e=ec(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=Qu(t),e.offsets.popper=Vu(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!hc(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Ju(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=Ju(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=Tu(e.instance.popper),l=Hu(s),u={position:i.position},c=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},l=o(i.width),u=o(r.width),c=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?c||d||l%2===u%2?o:a:s,h=t?o:s;return{left:f(l%2===1&&u%2===1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!fc),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",h=rc("transform"),p=void 0,g=void 0;if(g="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-l.height+c.bottom:c.top,p="right"===f?"HTML"===s.nodeName?-s.clientWidth+c.right:-l.width+c.right:c.left,a&&h)u[h]="translate3d("+p+"px, "+g+"px, 0)",u[d]=0,u[f]=0,u.willChange="transform";else{var m="bottom"===d?-1:1,v="right"===f?-1:1;u[d]=g*m,u[f]=p*v,u.willChange=d+", "+f}var y={"x-placement":e.placement};return e.attributes=Uu({},y,e.attributes),e.styles=Uu({},u,e.styles),e.arrowStyles=Uu({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return dc(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&dc(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=Zu(i,t,e,n.positionFixed),a=Xu(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),dc(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},Cc={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:wc},Sc=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Su(this.update.bind(this)),this.options=Uu({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Uu({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=Uu({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Uu({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&ku(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return zu(e,[{key:"update",value:function(){return tc.call(this)}},{key:"destroy",value:function(){return ic.call(this)}},{key:"enableEventListeners",value:function(){return lc.call(this)}},{key:"disableEventListeners",value:function(){return uc.call(this)}}]),e}();Sc.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,Sc.placements=pc,Sc.Defaults=Cc;const kc=Sc;function _c(e){return"function"===typeof e?e():e}var Ec="undefined"!==typeof window?t.useLayoutEffect:t.useEffect,Pc={},jc=t.forwardRef((function(e,n){var r=e.anchorEl,i=e.children,o=e.container,a=e.disablePortal,s=void 0!==a&&a,l=e.keepMounted,u=void 0!==l&&l,c=e.modifiers,d=e.open,f=e.placement,h=void 0===f?"bottom":f,p=e.popperOptions,g=void 0===p?Pc:p,m=e.popperRef,v=e.style,y=e.transition,b=void 0!==y&&y,x=(0,Fr.A)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),w=t.useRef(null),C=(0,zr.A)(w,n),S=t.useRef(null),k=(0,zr.A)(S,m),_=t.useRef(k);Ec((function(){_.current=k}),[k]),t.useImperativeHandle(m,(function(){return S.current}),[]);var E=t.useState(!0),P=E[0],O=E[1],A=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,(0,R.A)()),T=t.useState(A),N=T[0],F=T[1];t.useEffect((function(){S.current&&S.current.update()}));var M=t.useCallback((function(){if(w.current&&r&&d){S.current&&(S.current.destroy(),_.current(null));var e=function(e){F(e.placement)},t=(_c(r),new kc(_c(r),w.current,(0,j.A)({placement:A},g,{modifiers:(0,j.A)({},s?{}:{preventOverflow:{boundariesElement:"window"}},c,g.modifiers),onCreate:(0,mi.A)(e,g.onCreate),onUpdate:(0,mi.A)(e,g.onUpdate)})));_.current(t)}}),[r,s,c,d,A,g]),L=t.useCallback((function(e){(0,fi.A)(C,e),M()}),[C,M]),I=function(){S.current&&(S.current.destroy(),_.current(null))};if(t.useEffect((function(){return function(){I()}}),[]),t.useEffect((function(){d||b||I()}),[d,b]),!u&&!d&&(!b||P))return null;var D={placement:N};return b&&(D.TransitionProps={in:d,onEnter:function(){O(!1)},onExited:function(){O(!0),I()}}),t.createElement(gi,{disablePortal:s,container:o},t.createElement("div",(0,j.A)({ref:L,role:"tooltip"},x,{style:(0,j.A)({position:"fixed",top:0,left:0,display:d||!u||b?null:"none"},v)}),"function"===typeof i?i(D):i))}));const Oc=jc;var Rc=n(5102),Ac=n(6586);function Tc(e){return Math.round(1e5*e)/1e5}var Nc=!1,Fc=null;var Mc=t.forwardRef((function(e,n){var r=e.arrow,i=void 0!==r&&r,o=e.children,a=e.classes,s=e.disableFocusListener,l=void 0!==s&&s,u=e.disableHoverListener,c=void 0!==u&&u,d=e.disableTouchListener,f=void 0!==d&&d,h=e.enterDelay,p=void 0===h?100:h,g=e.enterNextDelay,m=void 0===g?0:g,v=e.enterTouchDelay,y=void 0===v?700:v,b=e.id,x=e.interactive,w=void 0!==x&&x,C=e.leaveDelay,S=void 0===C?0:C,k=e.leaveTouchDelay,_=void 0===k?1500:k,E=e.onClose,P=e.onOpen,O=e.open,R=e.placement,A=void 0===R?"bottom":R,T=e.PopperComponent,N=void 0===T?Oc:T,F=e.PopperProps,M=e.title,L=e.TransitionComponent,I=void 0===L?Hl:L,D=e.TransitionProps,z=(0,Fr.A)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),B=qi(),U=t.useState(),V=U[0],H=U[1],W=t.useState(null),G=W[0],q=W[1],K=t.useRef(!1),X=t.useRef(),Z=t.useRef(),Y=t.useRef(),Q=t.useRef(),$=(0,Ac.A)({controlled:O,default:!1,name:"Tooltip",state:"open"}),J=(0,Fi.A)($,2),ee=J[0],te=J[1],ne=ee,re=(0,Rc.A)(b);t.useEffect((function(){return function(){clearTimeout(X.current),clearTimeout(Z.current),clearTimeout(Y.current),clearTimeout(Q.current)}}),[]);var ie=function(e){clearTimeout(Fc),Nc=!0,te(!0),P&&P(e)},oe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=o.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),K.current&&"touchstart"!==t.type||(V&&V.removeAttribute("title"),clearTimeout(Z.current),clearTimeout(Y.current),p||Nc&&m?(t.persist(),Z.current=setTimeout((function(){ie(t)}),Nc?m:p)):ie(t))}},ae=(0,Ur.A)(),se=ae.isFocusVisible,le=ae.onBlurVisible,ue=ae.ref,ce=t.useState(!1),de=ce[0],fe=ce[1],he=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){V||H(t.currentTarget),se(t)&&(fe(!0),oe()(t));var n=o.props;n.onFocus&&e&&n.onFocus(t)}},pe=function(e){clearTimeout(Fc),Fc=setTimeout((function(){Nc=!1}),800+S),te(!1),E&&E(e),clearTimeout(X.current),X.current=setTimeout((function(){K.current=!1}),B.transitions.duration.shortest)},ge=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=o.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),de&&(fe(!1),le())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===V&&n.onMouseLeave(t),clearTimeout(Z.current),clearTimeout(Y.current),t.persist(),Y.current=setTimeout((function(){pe(t)}),S)}},me=function(e){K.current=!0;var t=o.props;t.onTouchStart&&t.onTouchStart(e)},ve=(0,zr.A)(H,n),ye=(0,zr.A)(ue,ve),be=t.useCallback((function(e){(0,fi.A)(ye,Dr.findDOMNode(e))}),[ye]),xe=(0,zr.A)(o.ref,be);""===M&&(ne=!1);var we=!ne&&!c,Ce=(0,j.A)({"aria-describedby":ne?re:null,title:we&&"string"===typeof M?M:null},z,o.props,{className:(0,Mr.A)(z.className,o.props.className),onTouchStart:me,ref:xe}),Se={};f||(Ce.onTouchStart=function(e){me(e),clearTimeout(Y.current),clearTimeout(X.current),clearTimeout(Q.current),e.persist(),Q.current=setTimeout((function(){oe()(e)}),y)},Ce.onTouchEnd=function(e){o.props.onTouchEnd&&o.props.onTouchEnd(e),clearTimeout(Q.current),clearTimeout(Y.current),e.persist(),Y.current=setTimeout((function(){pe(e)}),_)}),c||(Ce.onMouseOver=oe(),Ce.onMouseLeave=ge(),w&&(Se.onMouseOver=oe(!1),Se.onMouseLeave=ge(!1))),l||(Ce.onFocus=he(),Ce.onBlur=ge(),w&&(Se.onFocus=he(!1),Se.onBlur=ge(!1)));var ke=t.useMemo((function(){return(0,xu.A)({popperOptions:{modifiers:{arrow:{enabled:Boolean(G),element:G}}}},F)}),[G,F]);return t.createElement(t.Fragment,null,t.cloneElement(o,Ce),t.createElement(N,(0,j.A)({className:(0,Mr.A)(a.popper,w&&a.popperInteractive,i&&a.popperArrow),placement:A,anchorEl:V,open:!!V&&ne,id:Ce["aria-describedby"],transition:!0},Se,ke),(function(e){var n=e.placement,r=e.TransitionProps;return t.createElement(I,(0,j.A)({timeout:B.transitions.duration.shorter},r,D),t.createElement("div",{className:(0,Mr.A)(a.tooltip,a["tooltipPlacement".concat((0,ri.A)(n.split("-")[0]))],K.current&&a.touch,i&&a.tooltipArrow)},M,i?t.createElement("span",{className:a.arrow,ref:q}):null))})))}));const Lc=(0,Lr.A)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,Ir.X4)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(Tc(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,Ir.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(Tc(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,qe.A)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,qe.A)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,qe.A)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,qe.A)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(Mc);var Ic=n(1811);const Dc=n.p+"static/media/camera.7fc9fe03d10f926524c9b436720371c6.svg";function zc(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch($o){o($o)}}function s(e){try{l(r.throw(e))}catch($o){o($o)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Bc(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch($o){s=[6,$o],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function Uc(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Vc(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var Hc=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Wc(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Hc.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Gc=[".DS_Store","Thumbs.db"];function qc(e){return"object"===typeof e&&null!==e}function Kc(e){return Qc(e.target.files).map((function(e){return Wc(e)}))}function Xc(e){return zc(this,void 0,void 0,(function(){return Bc(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return Wc(e)}))]}}))}))}function Zc(e,t){return zc(this,void 0,void 0,(function(){var n;return Bc(this,(function(r){switch(r.label){case 0:return e.items?(n=Qc(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map($c))]):[3,2];case 1:return[2,Yc(Jc(r.sent()))];case 2:return[2,Yc(Qc(e.files).map((function(e){return Wc(e)})))]}}))}))}function Yc(e){return e.filter((function(e){return-1===Gc.indexOf(e.name)}))}function Qc(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function $c(e){if("function"!==typeof e.webkitGetAsEntry)return ed(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?nd(t):ed(e)}function Jc(e){return e.reduce((function(e,t){return Vc(Vc([],Uc(e),!1),Uc(Array.isArray(t)?Jc(t):[t]),!1)}),[])}function ed(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Wc(t);return Promise.resolve(n)}function td(e){return zc(this,void 0,void 0,(function(){return Bc(this,(function(t){return[2,e.isDirectory?nd(e):rd(e)]}))}))}function nd(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function i(){var o=this;t.readEntries((function(t){return zc(o,void 0,void 0,(function(){var o,a,s;return Bc(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return o=l.sent(),e(o),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(td)),r.push(s),i(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function rd(e){return zc(this,void 0,void 0,(function(){return Bc(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Wc(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var id=n(3129);function od(e){return function(e){if(Array.isArray(e))return dd(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||cd(e)||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 ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach((function(t){ld(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ld(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ud(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||cd(e,t)||function(){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 cd(e,t){if(e){if("string"===typeof e)return dd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dd(e,t):void 0}}function dd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fd="file-invalid-type",hd="file-too-large",pd="file-too-small",gd="too-many-files",md=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:fd,message:"File type must be ".concat(t)}},vd=function(e){return{code:hd,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},yd=function(e){return{code:pd,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},bd={code:gd,message:"Too many files"};function xd(e,t){var n="application/x-moz-file"===e.type||(0,id.A)(e,t);return[n,n?null:md(t)]}function wd(e,t,n){if(Cd(e.size))if(Cd(t)&&Cd(n)){if(e.size>n)return[!1,vd(n)];if(e.size<t)return[!1,yd(t)]}else{if(Cd(t)&&e.size<t)return[!1,yd(t)];if(Cd(n)&&e.size>n)return[!1,vd(n)]}return[!0,null]}function Cd(e){return void 0!==e&&null!==e}function Sd(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function kd(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function _d(e){e.preventDefault()}function Ed(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return!Sd(e)&&t&&t.apply(void 0,[e].concat(r)),Sd(e)}))}}function Pd(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function jd(e){return/^.*\.[\w]+$/.test(e)}var Od=["children"],Rd=["open"],Ad=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Td=["refKey","onChange","onClick"];function Nd(e){return function(e){if(Array.isArray(e))return Ld(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Md(e)||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 Fd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||Md(e,t)||function(){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 Md(e,t){if(e){if("string"===typeof e)return Ld(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ld(e,t):void 0}}function Ld(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Id(Object(n),!0).forEach((function(t){zd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bd(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Ud=(0,t.forwardRef)((function(e,n){var r=e.children,i=Wd(Bd(e,Od)),o=i.open,a=Bd(i,Rd);return(0,t.useImperativeHandle)(n,(function(){return{open:o}}),[o]),t.createElement(t.Fragment,null,r(Dd(Dd({},a),{},{open:o})))}));Ud.displayName="Dropzone";var Vd={disabled:!1,getFilesFromEvent:function(e){return zc(this,void 0,void 0,(function(){return Bc(this,(function(t){return qc(e)&&qc(e.dataTransfer)?[2,Zc(e.dataTransfer,e.type)]:function(e){return qc(e)&&qc(e.target)}(e)?[2,Kc(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,Xc(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ud.defaultProps=Vd,Ud.propTypes={children:M().func,accept:M().objectOf(M().arrayOf(M().string)),multiple:M().bool,preventDropOnDocument:M().bool,noClick:M().bool,noKeyboard:M().bool,noDrag:M().bool,noDragEventsBubbling:M().bool,minSize:M().number,maxSize:M().number,maxFiles:M().number,disabled:M().bool,getFilesFromEvent:M().func,onFileDialogCancel:M().func,onFileDialogOpen:M().func,useFsAccessApi:M().bool,autoFocus:M().bool,onDragEnter:M().func,onDragLeave:M().func,onDragOver:M().func,onDrop:M().func,onDropAccepted:M().func,onDropRejected:M().func,onError:M().func,validator:M().func};var Hd={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Wd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Dd(Dd({},Vd),e),r=n.accept,i=n.disabled,o=n.getFilesFromEvent,a=n.maxSize,s=n.minSize,l=n.multiple,u=n.maxFiles,c=n.onDragEnter,d=n.onDragLeave,f=n.onDragOver,h=n.onDrop,p=n.onDropAccepted,g=n.onDropRejected,m=n.onFileDialogCancel,v=n.onFileDialogOpen,y=n.useFsAccessApi,b=n.autoFocus,x=n.preventDropOnDocument,w=n.noClick,C=n.noKeyboard,S=n.noDrag,k=n.noDragEventsBubbling,_=n.onError,E=n.validator,P=(0,t.useMemo)((function(){return function(e){if(Cd(e))return Object.entries(e).reduce((function(e,t){var n=ud(t,2),r=n[0],i=n[1];return[].concat(od(e),[r],od(i))}),[]).filter((function(e){return Pd(e)||jd(e)})).join(",")}(r)}),[r]),j=(0,t.useMemo)((function(){return function(e){return Cd(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=ud(e,2),n=t[0],r=t[1],i=!0;return Pd(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(jd)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i})).reduce((function(e,t){var n=ud(t,2),r=n[0],i=n[1];return sd(sd({},e),{},ld({},r,i))}),{})}]:e}(r)}),[r]),O=(0,t.useMemo)((function(){return"function"===typeof v?v:qd}),[v]),R=(0,t.useMemo)((function(){return"function"===typeof m?m:qd}),[m]),A=(0,t.useRef)(null),T=(0,t.useRef)(null),N=Fd((0,t.useReducer)(Gd,Hd),2),F=N[0],M=N[1],L=F.isFocused,I=F.isFileDialogActive,D=(0,t.useRef)("undefined"!==typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),z=function(){!D.current&&I&&setTimeout((function(){T.current&&(T.current.files.length||(M({type:"closeDialog"}),R()))}),300)};(0,t.useEffect)((function(){return window.addEventListener("focus",z,!1),function(){window.removeEventListener("focus",z,!1)}}),[T,I,R,D]);var B=(0,t.useRef)([]),U=function(e){A.current&&A.current.contains(e.target)||(e.preventDefault(),B.current=[])};(0,t.useEffect)((function(){return x&&(document.addEventListener("dragover",_d,!1),document.addEventListener("drop",U,!1)),function(){x&&(document.removeEventListener("dragover",_d),document.removeEventListener("drop",U))}}),[A,x]),(0,t.useEffect)((function(){return!i&&b&&A.current&&A.current.focus(),function(){}}),[A,b,i]);var V=(0,t.useCallback)((function(e){_?_(e):console.error(e)}),[_]),H=(0,t.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[].concat(Nd(B.current),[e.target]),kd(e)&&Promise.resolve(o(e)).then((function(t){if(!Sd(e)||k){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!(!o&&t.length>1||o&&a>=1&&t.length>a)&&t.every((function(e){var t=ud(xd(e,n),1)[0],o=ud(wd(e,r,i),1)[0],a=s?s(e):null;return t&&o&&!a}))}({files:t,accept:P,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:E});M({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}})).catch((function(e){return V(e)}))}),[o,c,V,k,P,s,a,l,u,E]),W=(0,t.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=kd(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&f&&f(e),!1}),[f,k]),G=(0,t.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=B.current.filter((function(e){return A.current&&A.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(M({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),kd(e)&&d&&d(e))}),[A,d,k]),q=(0,t.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Fd(xd(e,P),2),i=t[0],o=t[1],l=Fd(wd(e,s,a),2),u=l[0],c=l[1],d=E?E(e):null;if(i&&u&&!d)n.push(e);else{var f=[o,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach((function(e){r.push({file:e,errors:[bd]})})),n.splice(0)),M({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&g&&g(r,t),n.length>0&&p&&p(n,t)}),[M,l,P,s,a,u,h,p,g,E]),K=(0,t.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),B.current=[],kd(e)&&Promise.resolve(o(e)).then((function(t){Sd(e)&&!k||q(t,e)})).catch((function(e){return V(e)})),M({type:"reset"})}),[o,q,V,k]),X=(0,t.useCallback)((function(){if(D.current){M({type:"openDialog"}),O();var e={multiple:l,types:j};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){q(e,null),M({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?V(e):(D.current=!1,T.current?(T.current.value=null,T.current.click()):V(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(R(e),M({type:"closeDialog"}))}))}else T.current&&(M({type:"openDialog"}),O(),T.current.value=null,T.current.click())}),[M,O,R,y,q,V,j,l]),Z=(0,t.useCallback)((function(e){A.current&&A.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),X()))}),[A,X]),Y=(0,t.useCallback)((function(){M({type:"focus"})}),[]),Q=(0,t.useCallback)((function(){M({type:"blur"})}),[]),$=(0,t.useCallback)((function(){w||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?X():setTimeout(X,0))}),[w,X]),J=function(e){return i?null:e},ee=function(e){return C?null:J(e)},te=function(e){return S?null:J(e)},ne=function(e){k&&e.stopPropagation()},re=(0,t.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,h=Bd(e,Ad);return Dd(Dd(zd({onKeyDown:ee(Ed(o,Z)),onFocus:ee(Ed(a,Y)),onBlur:ee(Ed(s,Q)),onClick:J(Ed(l,$)),onDragEnter:te(Ed(u,H)),onDragOver:te(Ed(c,W)),onDragLeave:te(Ed(d,G)),onDrop:te(Ed(f,K)),role:"string"===typeof r&&""!==r?r:"presentation"},n,A),i||C?{}:{tabIndex:0}),h)}}),[A,Z,Y,Q,$,H,W,G,K,C,S,i]),ie=(0,t.useCallback)((function(e){e.stopPropagation()}),[]),oe=(0,t.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=Bd(e,Td);return Dd(Dd({},zd({accept:P,multiple:l,type:"file",style:{display:"none"},onChange:J(Ed(r,K)),onClick:J(Ed(i,ie)),tabIndex:-1},n,T)),o)}}),[T,r,l,K,i]);return Dd(Dd({},F),{},{isFocused:L&&!i,getRootProps:re,getInputProps:oe,rootRef:A,inputRef:T,open:J(X)})}function Gd(e,t){switch(t.type){case"focus":return Dd(Dd({},e),{},{isFocused:!0});case"blur":return Dd(Dd({},e),{},{isFocused:!1});case"openDialog":return Dd(Dd({},Hd),{},{isFileDialogActive:!0});case"closeDialog":return Dd(Dd({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Dd(Dd({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Dd(Dd({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Dd({},Hd);default:return e}}function qd(){}var Kd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Xd=t.forwardRef((function(e,n){var r=e.align,i=void 0===r?"inherit":r,o=e.classes,a=e.className,s=e.color,l=void 0===s?"initial":s,u=e.component,c=e.display,d=void 0===c?"initial":c,f=e.gutterBottom,h=void 0!==f&&f,p=e.noWrap,g=void 0!==p&&p,m=e.paragraph,v=void 0!==m&&m,y=e.variant,b=void 0===y?"body1":y,x=e.variantMapping,w=void 0===x?Kd:x,C=(0,Fr.A)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=u||(v?"p":w[b]||Kd[b])||"span";return t.createElement(S,(0,j.A)({className:(0,Mr.A)(o.root,a,"inherit"!==b&&o[b],"initial"!==l&&o["color".concat((0,ri.A)(l))],g&&o.noWrap,h&&o.gutterBottom,v&&o.paragraph,"inherit"!==i&&o["align".concat((0,ri.A)(i))],"initial"!==d&&o["display".concat((0,ri.A)(d))]),ref:n},C))}));const Zd=(0,Lr.A)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Xd);var Yd=t.forwardRef((function(e,n){var r=e.animation,i=void 0===r?"pulse":r,o=e.classes,a=e.className,s=e.component,l=void 0===s?"span":s,u=e.height,c=e.variant,d=void 0===c?"text":c,f=e.width,h=(0,Fr.A)(e,["animation","classes","className","component","height","variant","width"]),p=Boolean(h.children);return t.createElement(l,(0,j.A)({ref:n,className:(0,Mr.A)(o.root,o[d],a,p&&[o.withChildren,!f&&o.fitContent,!u&&o.heightAuto],!1!==i&&o[i])},h,{style:(0,j.A)({width:f,height:u},h.style)}))}));const Qd=(0,Lr.A)((function(e){return{root:{display:"block",backgroundColor:(0,Ir.X4)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}}),{name:"MuiSkeleton"})(Yd);function $d(e,t){return(null===e||void 0===e?void 0:e.length)>t?(null===e||void 0===e?void 0:e.slice(0,t))+"...":e}const Jd=function(e){var n,r;const{handleClose:i}=e,o=Tr(),a=Nr((e=>e)),{settings:s}=a,[l,u]=(0,t.useState)([]),c=bl().get("query")||"",{search:d}=a,{preFilter:f,requestImage:h,selectedRegion:p}=d,[g,m]=(0,t.useState)(f||{}),[v,y]=(0,t.useState)(!1),[b,x]=(0,t.useState)(0),w=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),[C,S]=(0,t.useState)(""),k=(0,t.useMemo)((()=>Object.keys(g).reduce(((e,t)=>!0===g[t]?e+1:e),0)),[g]);(0,t.useEffect)((()=>{_()}),[]),(0,t.useEffect)((()=>{E(C)}),[C]);const _=async()=>{y(!0);const e=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1?arguments[1]:void 0;return new(wo())(t).getFilters(e)}(1e3,s).then((e=>{var t;const n=((null===(t=e.find((e=>e.key===s.visualSearchFilterKey)))||void 0===t?void 0:t.values)||[]).sort().reduce(((e,t)=>{var n;if(!t[0])return e;let r=null===(n=t[0])||void 0===n?void 0:n.toLocaleUpperCase();return e[r]?e[r].push(t):e[r]=[t],e}),{});u(n),x(Object.keys(n).length)})).catch((e=>{console.log("err getDataFilterDesktop",e)})).finally((()=>{y(!1)}));return e},E=async e=>{if(!e)return void _();const t=await async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=t||"";return new(wo())(n).searchFilters(e,r)}(s.visualSearchFilterKey,encodeURIComponent(e),s).then((e=>{e.length>0?(u({[e[0][0].toLocaleUpperCase()]:e}),e.length<=20?x(1):e.length<=40?x(2):x(4)):(u({}),x(4))})).catch((e=>{console.log("err filterSearchHandler",e)}));return t},P=()=>{var e;const t=(0,Yn.pickBy)(g,(e=>!!e));if(o(ur(t)),(null===(e=s.algolia)||void 0===e||!e.enabled)&&(c||h)){let e,n=[];const r=[{key:s.visualSearchFilterKey,values:Object.keys(t)}];o(br(!0)),ko({image:null===h||void 0===h?void 0:h.canvas,settings:s,filters:(0,Yn.isEmpty)(t)?void 0:r,region:p,text:c}).then((t=>{null===t||void 0===t||t.results.forEach((e=>{n.push({sku:e.sku,score:e.score})})),e={...t,filters:n},o(hr(e)),o(br(!1))})).catch((e=>{o(br(!1))}))}i()},{t:j}=Ml();return(0,_o.jsxs)("div",{className:"box-child-component-filter-desktop",style:{position:"relative",display:"flex",flexDirection:"column"},children:[(0,_o.jsxs)("div",{style:{background:"white",width:"100%",display:"flex",justifyContent:"space-between",position:"sticky",top:0,zIndex:100},children:[(0,_o.jsx)(Zd,{style:{color:"#000",fontSize:"24px",fontWeight:700,paddingLeft:"14px",marginBottom:w?"0px":"-8px",marginTop:w?"0px":"24px"},children:s.preFilterTitle}),(0,_o.jsx)(oi,{onClick:i,children:(0,_o.jsx)(go.A,{})})]}),(0,_o.jsx)("div",{className:"box-top",style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,_o.jsxs)("div",{className:"box-input-search-filter",style:{width:w?"100%":"",display:"flex",justifyItems:"center"},children:[(0,_o.jsx)("div",{className:"icon-search",style:{marginRight:11,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,_o.jsx)("img",{style:{maxWidth:"fit-content"},src:pl,alt:"",width:18,height:18})}),(0,_o.jsx)("input",{className:"input-search-filter",placeholder:j("Search"),onChange:e=>{S(e.target.value)},value:C}),(0,_o.jsx)(oi,{className:"btn-clear-text",onClick:()=>{S("")},children:(0,_o.jsx)(Ic.A,{style:{fontSize:16,color:"#2B2C46"}})})]})}),!(0,Yn.isEmpty)(g)&&k>0&&(0,_o.jsx)("div",{style:{padding:"10px 16px 10px 16px",display:"flex",justifyContent:"space-between",backgroundColor:"#FAFAFA"},children:(0,_o.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",rowGap:"8px",columnGap:"8px",alignItems:"baseline",fontSize:"12px",marginBottom:"4px"},children:[Object.keys(g).map(((e,t)=>g[e]?(0,_o.jsxs)("div",{className:"box-keyFilter",style:{display:"flex",height:"fit-content",gap:"8px"},children:[(0,_o.jsx)(Zd,{className:"keyFilter",children:e}),(0,_o.jsx)(oi,{style:{padding:0},onClick:()=>m({...g,[e]:!1}),children:(0,_o.jsx)(go.A,{style:{fontSize:12,color:"#2B2C46"}})})]},t):(0,_o.jsx)(_o.Fragment,{}))),(0,_o.jsx)("p",{style:{fontWeight:"bold",color:"#000"},children:"".concat(k,"/").concat(10)}),(0,_o.jsx)("div",{style:{color:"#E31B5D",fontSize:"12px",cursor:"pointer",marginLeft:"12px"},onClick:()=>{m({})},children:j("Clear all")})]})}),(0,_o.jsxs)("div",{className:"box-bottom",style:w?{columnCount:1,height:"100%",marginBottom:g?"50px":"0px"}:b<=4?{columnCount:b,height:"100%",padding:"24px 24px 40px 24px",backgroundColor:"#FAFAFA"}:{columnCount:4,padding:"24px 24px 40px 24px",height:"100%",backgroundColor:"#FAFAFA"},children:[Object.entries(l).map(((e,t)=>{let[n,r]=e;return(0,_o.jsx)("div",{className:"box-group-items",children:(0,_o.jsxs)("div",{style:{display:"flex",flexDirection:"column",rowGap:"12px",width:"100%"},children:[(0,_o.jsx)(Zd,{style:{fontWeight:"bold",color:"#000",fontSize:"12px"},children:n}),r.map(((e,t)=>(0,_o.jsx)(Lc,{title:e,placement:"top",arrow:!0,disableHoverListener:e.length<35,children:(0,_o.jsx)("div",{"aria-label":e,style:{cursor:"pointer",fontSize:"12px",minHeight:"20px",color:"#2B2C46",width:"100%",maxWidth:"fit-content",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",backgroundColor:g[e]?"#E9E9EC":"",borderRadius:8,paddingLeft:"8px",paddingRight:"8px"},onClick:()=>{k<10&&m({...g,[e]:!g[e]})},children:$d(e,35)})},e)))]})},n)})),v&&(0,_o.jsx)("div",{style:{columnCount:w?1:4},children:Array(12).fill("").map(((e,t)=>(0,_o.jsxs)("div",{style:{marginBottom:5},children:[(0,_o.jsx)(Qd,{animation:"pulse",height:30,width:60}),Array(6).fill("").map(((e,t)=>(0,_o.jsx)(Qd,{animation:"pulse",height:30},t)))]},t)))}),(0,Yn.isEmpty)(l)&&!v&&(0,_o.jsx)(Zd,{children:"No result found"})]}),!w&&(0,_o.jsxs)("div",{className:"footer",style:{height:64,marginTop:"auto",display:"flex"},children:[(0,_o.jsx)(oi,{className:"button-left",style:{width:"50%",backgroundColor:s.theme.secondaryColor,color:"#fff",borderRadius:0,justifyContent:"flex-start",textTransform:"none",paddingLeft:"16px",paddingTop:"16px",paddingBottom:"32px"},onClick:()=>i(),children:j("Cancel")}),(0,_o.jsx)(oi,{className:"button-right",style:{width:"50%",backgroundColor:null===(n=s.theme)||void 0===n?void 0:n.primaryColor,color:"#fff",borderRadius:0,justifyContent:"flex-start",textTransform:"none",paddingLeft:"16px",paddingTop:"16px",paddingBottom:"32px"},onClick:()=>P(),children:j("Apply")})]}),w&&(0,_o.jsxs)("div",{className:"footer",style:{height:64,marginTop:"auto",position:"fixed",bottom:"0px",left:"0px",width:"100vw",display:"flex"},children:[(0,_o.jsx)(oi,{className:"button-left",style:{width:"50%",backgroundColor:s.theme.secondaryColor,color:"#fff",borderRadius:0,justifyContent:"flex-start",textTransform:"none"},onClick:()=>i(),children:j("Cancel")}),(0,_o.jsx)(oi,{className:"button-right",style:{width:"50%",backgroundColor:null===(r=s.theme)||void 0===r?void 0:r.primaryColor,color:"#fff",borderRadius:0,justifyContent:"flex-start",textTransform:"none"},onClick:()=>P(),children:j("Apply")})]})]})},ef=e=>{var n,r,i,o,a,s;const{refine:l,onToggleFilterMobile:u}=e,c=Nr((e=>e)),{search:d,settings:f}=c,{imageThumbSearchInput:h,preFilter:p,requestImage:g,selectedRegion:m}=d,v=(0,t.useRef)(null),y=Ne(),[b,x]=(0,t.useState)(""),w=Tr(),C=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),S=bl(),[k,_]=(0,t.useState)(!1),{t:E}=Ml(),P=null===(n=f.algolia)||void 0===n?void 0:n.enabled,j=(0,t.useRef)(null),{user:O}=ls();(0,t.useEffect)((()=>{null!==v&&void 0!==v&&v.current&&(null===v||void 0===v||v.current.focus())}),[v]),(0,t.useEffect)((()=>{const e=e=>{j.current&&(j.current.contains(e.target)?j.current.classList.add("active"):j.current.classList.remove("active"))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[j]),(0,t.useEffect)((()=>{const e=S.get("query")||"";(0,Yn.isEmpty)(e)||(x(e),w(mr(e)),P&&(l(e),setTimeout((()=>{l(e)}),100)))}),[S,l,w,P]),(0,t.useEffect)((()=>{h&&(x(""),P&&l(""),y.push("/result"))}),[h,P]),(0,t.useEffect)((()=>{var e;"/"===(null===(e=y.location)||void 0===e?void 0:e.pathname)&&(x(""),w(mr("")))}),[y.location]);const R=(0,t.useCallback)((0,Yn.debounce)((function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!P){let n;w(mr(e));let r=[];const i=[{key:f.visualSearchFilterKey,values:Object.keys(p)}];e||g?(w(br(!0)),ko({image:t?null===g||void 0===g?void 0:g.canvas:void 0,settings:f,filters:(0,Yn.isEmpty)(p)?void 0:i,region:t?m:void 0,text:e}).then((e=>{null===e||void 0===e||e.results.forEach((e=>{r.push({sku:e.sku,score:e.score})})),n={...e,filters:r},w(hr(n)),w(br(!1)),w(wr(!0))})).catch((e=>{console.log("error input search",e),w(br(!1))}))):w(hr([]))}e?y.push({pathname:"/result",search:"?query=".concat(e)}):y.push("/result")}),500),[g,p,m,P]),{getInputProps:A}=Wd({onDrop:async e=>{if(!e[0])return;let t;w(br(!0)),w(er()),"/result"!==y.location.pathname&&y.push("/result");let n,r=[];w(sr(URL.createObjectURL(e[0])));let i=await Co(e[0]);w(fr(i));const o=[{key:f.visualSearchFilterKey,values:Object.keys(p)}];try{if(f.regions){let e=await So(i,f);w(dr(e.regions)),n=e.selectedRegion,w(pr(n))}}catch(a){}finally{return ko({image:i,settings:f,filters:(0,Yn.isEmpty)(p)?void 0:o,region:n}).then((n=>{null===n||void 0===n||n.results.forEach((e=>{r.push({sku:e.sku,score:e.score})})),t={...n,filters:r},w(hr(t)),w(br(!1)),w(wr(!0)),w(Sr(t)),w(Cr(i)),w(kr(p)),w(_r(URL.createObjectURL(e[0])))})).catch((e=>{console.log("error input search",e),w(br(!1))}))}}}),T=(0,t.useMemo)((()=>f.shouldUseUserMetadata&&O?!(!f.preFilterOption||O["/user_metadata"].value):f.preFilterOption),[f.preFilterOption,f.shouldUseUserMetadata,O]);return(0,_o.jsxs)("div",{className:"wrap-input-search-field",children:[(0,_o.jsx)("div",{className:"box-input-search d-flex",children:(0,_o.jsxs)("div",{className:"input-wrapper",children:[(0,_o.jsxs)("div",{className:"box-inp",children:[(0,_o.jsx)(Lc,{title:(0,Yn.isEmpty)(p)?E("Add or change pre-filter"):Object.keys(p).join(", "),placement:"top",arrow:!0,disableHoverListener:!T,children:(0,_o.jsxs)("div",{className:"pre-filter-icon",style:{cursor:T?"pointer":"default"},onClick:()=>!!T&&_(!0),children:[T&&(0,_o.jsx)("div",{className:"icon-hover desktop",style:{...(0,Yn.isEmpty)(p)?{backgroundColor:"#2B2C46"}:{backgroundColor:"".concat(null===(r=f.theme)||void 0===r?void 0:r.primaryColor)}},children:(0,_o.jsx)(ps,{color:"white"})}),!T&&(0,_o.jsx)(hl,{width:16,height:16}),!(0,Yn.isEmpty)(p)&&T&&(0,_o.jsx)("div",{style:{position:"absolute",top:"1px",left:"26px",display:"flex",justifyContent:"center",alignItems:"center",background:"white",width:"12px",height:"12px",borderRadius:"100%"},children:(0,_o.jsx)("div",{style:{width:"8px",height:"8px",background:null===(i=f.theme)||void 0===i?void 0:i.primaryColor,borderRadius:"100%",strokeWidth:"2px"}})})]})}),(0,_o.jsx)("div",{style:{height:"75%",order:1},children:h&&(0,_o.jsxs)("div",{style:{border:"2px solid ".concat(null===(o=f.theme)||void 0===o?void 0:o.primaryColor),backgroundColor:"".concat(null===(a=f.theme)||void 0===a?void 0:a.primaryColor,"26"),marginRight:"5px",display:"flex"},className:"box-image-search-thumb",children:[(0,_o.jsx)("img",{src:h,style:{objectFit:"contain"},alt:"img_search"}),(0,_o.jsx)(Lc,{title:E("Clear image search"),placement:"top",arrow:!0,children:(0,_o.jsx)("button",{type:"button",onClick:()=>{b||(w(rr("")),y.push("/")),w(rr("")),P?l(b):R(b,!1)},children:(0,_o.jsx)(go.A,{style:{fontSize:20,color:null===(s=f.theme)||void 0===s?void 0:s.primaryColor}})})})]})}),(0,_o.jsx)("input",{style:{border:"0px",width:"100%",fontSize:14,color:"#2B2C46"},className:"input-search hhhh",placeholder:E("Search"),value:b,onChange:e=>{x(e.currentTarget.value),R(e.currentTarget.value),""===e.currentTarget.value&&(x(""),P&&l(""))},ref:v})]}),"/result"===y.location.pathname&&b&&(0,_o.jsx)(oi,{className:"btn-clear-text",onClick:()=>{if(h)return y.push("/result"),P||R(""),x(""),void(P&&l(""));x(""),P&&l(""),w(rr("")),y.push("/")},children:(0,_o.jsx)(Lc,{title:E("Clear text search"),placement:"top",arrow:!0,children:(0,_o.jsx)(Ic.A,{style:{fontSize:16,color:"#2B2C46"}})})}),C?(0,_o.jsx)("div",{children:(0,_o.jsx)(oi,{className:"btn-mobile-filter",onClick:u,children:(0,_o.jsx)(ps,{width:18,height:18})})}):(0,_o.jsxs)("div",{className:"wrap-box-input-mobile d-flex",children:[(0,_o.jsx)("input",{accept:"image/*",id:"icon-button-file",type:"file",style:{display:"none"},...A({onClick:e=>{e.stopPropagation()}})}),(0,_o.jsx)(Lc,{title:E("Search with an image"),placement:"top",arrow:!0,children:(0,_o.jsx)("label",{htmlFor:"icon-button-file",children:(0,_o.jsx)(po,{color:"primary","aria-label":"upload picture",component:"span",style:{width:32,height:32,borderRadius:"100%",padding:7},children:(0,_o.jsx)("img",{src:Dc,alt:"",width:18,height:18})})})})]})]})}),T&&(0,_o.jsx)(us,{openModal:k,handleClose:()=>_(!1),classNameModal:"wrap-filter-desktop",classNameComponentChild:"bg-white box-filter-desktop",children:(0,_o.jsx)(Jd,{handleClose:()=>_(!1)})})]})},tf=ll((0,t.memo)(ef));const nf=function(){var e,n,r;const i=Tr(),{settings:o}=Nr((e=>e)),{user:a,isAuthenticated:s,logout:l}=ls(),u=o.auth0,c=Ne(),[d,f]=(0,t.useState)(!1),[h,p]=t.useState(null);(0,t.useEffect)((()=>{var e;"/"===(null===(e=c.location)||void 0===e?void 0:e.pathname)?f(!1):f(!0)}),[c.location]);const g=(0,Lr.A)({root:{},paper:{border:"0px",boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.20)",top:"58px !important",borderRadius:"0px !important"}})((e=>(0,_o.jsx)(uu,{elevation:0,getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...e}))),m=(0,Lr.A)((e=>({root:{"&:focus":{backgroundColor:e.palette.primary.main,"& .MuiListItemIcon-root, & .MuiListItemText-primary":{color:e.palette.common.white}},padding:"0px"}})))(bu);return(0,_o.jsxs)("div",{className:"box-content",style:{display:"flex",position:"relative"},children:[(0,_o.jsx)("a",{href:window.location.origin,style:{lineHeight:0,paddingLeft:"10px"},onClick:()=>{i(rr("")),i(ur({}))},children:(0,_o.jsx)("img",{src:null===(e=o.theme)||void 0===e?void 0:e.appBarLogoUrl,alt:"logo",style:{aspectRatio:1,width:null===(n=o.theme)||void 0===n?void 0:n.logoWidth,height:null===(r=o.theme)||void 0===r?void 0:r.logoHeight}})}),(0,_o.jsx)("div",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",display:d?"block":"none"},children:(0,_o.jsx)(tf,{})}),u.enabled&&s&&(0,_o.jsxs)("div",{style:{position:"relative"},children:[(0,_o.jsxs)("div",{style:{display:"flex",columnGap:"16px",alignItems:"center",paddingRight:"24px",cursor:"pointer"},"aria-controls":"simple-menu","aria-haspopup":"true",onClick:e=>{p(e.currentTarget)},children:[(0,_o.jsx)("p",{style:{color:"#2B2C46"},children:null===a||void 0===a?void 0:a.email}),(0,_o.jsx)(hu,{})]}),(0,_o.jsx)(g,{id:"simple-menu",anchorEl:h,keepMounted:!0,open:Boolean(h),onClose:()=>{p(null)},children:(0,_o.jsx)(m,{children:(0,_o.jsx)("div",{style:{display:"flex",width:"152px",paddingLeft:"8px",paddingRight:"8px",flexDirection:"column",alignItems:"flex-start",gap:"8px",boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.20)",backgroundColor:"#fff"},children:(0,_o.jsx)("div",{style:{display:"flex",width:"75px",height:"24px",padding:"4px 8px",alignItems:"center",backgroundColor:"#2B2C46",color:"#fff",fontSize:"10px",cursor:"pointer"},onClick:()=>{l({logoutParams:{returnTo:window.location.origin}})},children:"Sign out"})})})})]})]})};const rf=function(e){let{handleClose:t}=e;return(0,_o.jsxs)("div",{style:{paddingBottom:"24px"},children:[(0,_o.jsx)("div",{style:{display:"flex",justifyContent:"end",position:"sticky",top:0,background:"white",width:"100%"},children:(0,_o.jsx)(oi,{onClick:t,style:{paddingTop:"8px",paddingRight:"8px"},children:(0,_o.jsx)(go.A,{fontSize:"small"})})}),(0,_o.jsx)("p",{style:{fontSize:"40px",lineHeight:"40px",fontWeight:700,color:"#2B2C46",paddingLeft:"24px",paddingRight:"24px"},children:"Six ways to optimize visual search"}),(0,_o.jsx)("div",{style:{display:"flex",flexDirection:"column",rowGap:"16px",marginTop:"16px",paddingLeft:"24px",paddingRight:"24px"},children:Xn.map(((e,t)=>(0,_o.jsxs)("div",{style:{display:"flex",flexDirection:"column",rowGap:"8px"},children:[(0,_o.jsx)("p",{style:{fontSize:"16px",lineHeight:"24px",fontWeight:700,color:"#2B2C46",marginBottom:"0px"},children:"".concat(t+1,"- ").concat(e.title)}),(0,_o.jsx)("p",{style:{fontSize:"14px",lineHeight:"20px",fontWeight:400,color:"#2B2C46",marginBottom:"0px"},children:e.description}),(0,_o.jsxs)("div",{style:{display:"flex",columnGap:"16px"},children:[(0,_o.jsx)("div",{children:(0,_o.jsx)("img",{src:e.imageLeft,alt:""})}),(0,_o.jsx)("div",{children:(0,_o.jsx)("img",{src:e.imageRight,alt:""})})]})]},t)))})]})};var of=t.createContext();const af=of;var sf=t.forwardRef((function(e,n){var r=e.autoFocus,i=e.checked,o=e.checkedIcon,a=e.classes,s=e.className,l=e.defaultChecked,u=e.disabled,c=e.icon,d=e.id,f=e.inputProps,h=e.inputRef,p=e.name,g=e.onBlur,m=e.onChange,v=e.onFocus,y=e.readOnly,b=e.required,x=e.tabIndex,w=e.type,C=e.value,S=(0,Fr.A)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),k=(0,Ac.A)({controlled:i,default:Boolean(l),name:"SwitchBase",state:"checked"}),_=(0,Fi.A)(k,2),E=_[0],P=_[1],O=t.useContext(af),R=u;O&&"undefined"===typeof R&&(R=O.disabled);var A="checkbox"===w||"radio"===w;return t.createElement(po,(0,j.A)({component:"span",className:(0,Mr.A)(a.root,s,E&&a.checked,R&&a.disabled),disabled:R,tabIndex:null,role:void 0,onFocus:function(e){v&&v(e),O&&O.onFocus&&O.onFocus(e)},onBlur:function(e){g&&g(e),O&&O.onBlur&&O.onBlur(e)},ref:n},S),t.createElement("input",(0,j.A)({autoFocus:r,checked:i,defaultChecked:l,className:a.input,disabled:R,id:A&&d,name:p,onChange:function(e){var t=e.target.checked;P(t),m&&m(e,t)},readOnly:y,ref:h,required:b,tabIndex:x,type:w,value:C},f)),E?o:c)}));const lf=(0,Lr.A)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(sf);var uf=n(9984);const cf=(0,uf.A)(t.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),df=(0,uf.A)(t.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),ff=(0,uf.A)(t.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var hf=t.createElement(df,null),pf=t.createElement(cf,null),gf=t.createElement(ff,null),mf=t.forwardRef((function(e,n){var r=e.checkedIcon,i=void 0===r?hf:r,o=e.classes,a=e.color,s=void 0===a?"secondary":a,l=e.icon,u=void 0===l?pf:l,c=e.indeterminate,d=void 0!==c&&c,f=e.indeterminateIcon,h=void 0===f?gf:f,p=e.inputProps,g=e.size,m=void 0===g?"medium":g,v=(0,Fr.A)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),y=d?h:u,b=d?h:i;return t.createElement(lf,(0,j.A)({type:"checkbox",classes:{root:(0,Mr.A)(o.root,o["color".concat((0,ri.A)(s))],d&&o.indeterminate),checked:o.checked,disabled:o.disabled},color:s,inputProps:(0,j.A)({"data-indeterminate":d},p),icon:t.cloneElement(y,{fontSize:void 0===y.props.fontSize&&"small"===m?m:y.props.fontSize}),checkedIcon:t.cloneElement(b,{fontSize:void 0===b.props.fontSize&&"small"===m?m:b.props.fontSize}),ref:n},v))}));const vf=(0,Lr.A)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Ir.X4)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Ir.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(mf);function yf(e){let{children:n,enabled:r=!0,...i}=e;const[o,a]=(0,t.useState)();return(0,t.useEffect)((()=>{a(r)}),[r]),o?(0,_o.jsx)("div",{...i,children:n}):(0,_o.jsx)(_o.Fragment,{})}var bf;function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xf.apply(this,arguments)}function wf(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",xf({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,bf||(bf=t.createElement("rect",{x:3,y:7.36328,width:10,height:1.27383,rx:.636915,fill:"#2B2C46"})))}const Cf=t.forwardRef(wf);n.p;var Sf;function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kf.apply(this,arguments)}function _f(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",kf({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,Sf||(Sf=t.createElement("path",{d:"M8.625 7.375V3.625C8.625 3.27982 8.34518 3 8 3C7.65482 3 7.375 3.27982 7.375 3.625V7.375H3.625C3.27982 7.375 3 7.65482 3 8C3 8.34518 3.27982 8.625 3.625 8.625H7.375V12.375C7.375 12.7202 7.65482 13 8 13C8.34518 13 8.625 12.7202 8.625 12.375V8.625H12.375C12.7202 8.625 13 8.34518 13 8C13 7.65482 12.7202 7.375 12.375 7.375H8.625Z",fill:"#2B2C46"})))}const Ef=t.forwardRef(_f);n.p;function Pf(e){let{icon:n,label:r,labelPosition:i="bottom",className:o="gap-1",classNameLabel:a=""}=e;const[s,l]=(0,t.useState)("");return(0,t.useEffect)((()=>{l(n)}),[n]),(0,_o.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",paddingRight:"2px"},children:[r&&(0,_o.jsx)("div",{className:a,children:(0,_o.jsx)("p",{style:{fontSize:12,color:"#2B2C46",fontWeight:500},children:r})}),"remove"===s?(0,_o.jsx)(Cf,{width:16,height:16}):(0,_o.jsx)(Ef,{width:16,height:16})]})}let jf=0;const Of=Symbol(),Rf=e=>!!e[Of],Af=e=>!e[Of].c,Tf=e=>{var t;const{b:n,c:r}=e[Of];r&&(r(),null==(t=Mf.get(n))||t())},Nf=(e,t)=>{const n=e[Of].o,r=t[Of].o;return n===r||e===r||Rf(n)&&Nf(n,t)},Ff=(e,t)=>{const n={b:e,o:t,c:null},r=new Promise((e=>{n.c=()=>{n.c=null,e()},t.finally(n.c)}));return r[Of]=n,r},Mf=new WeakMap,Lf=e=>"init"in e,If="r",Df="w",zf="c",Bf="s",Uf="h",Vf="n",Hf="l",Wf="a",Gf="m",qf=e=>{const t=new WeakMap,n=new WeakMap,r=new Map;let i,o;if(i=new Set,o=new Set,e)for(const[O,R]of e){const e={v:R,r:0,y:!0,d:new Map};Object.freeze(e),Lf(O)||console.warn("Found initial value for derived atom which can cause unexpected behavior",O),t.set(O,e)}const a=new WeakMap,s=new WeakMap,l=e=>{let t=s.get(e);return t||(t=new Map,s.set(e,t)),t},u=(e,n)=>{if(e){const t=l(e);let r=t.get(n);return r||(r=u(e.p,n),r&&"p"in r&&Af(r.p)&&(r=void 0),r&&t.set(n,r)),r}return t.get(n)},c=(e,n,i)=>{if(Object.freeze(i),e){l(e).set(n,i)}else{const e=t.get(n);t.set(n,i),r.has(n)||r.set(n,e)}},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=arguments.length>2?arguments[2]:void 0;if(!n)return t;const r=new Map;let i=!1;return n.forEach((n=>{var o;const a=(null==(o=u(e,n))?void 0:o.r)||0;r.set(n,a),t.get(n)!==a&&(i=!0)})),t.size!==r.size||i?r:t},f=(e,t,n,r,i)=>{const o=u(e,t);if(o){if(i&&(!("p"in o)||!Nf(o.p,i)))return o;"p"in o&&Tf(o.p)}const a={v:n,r:(null==o?void 0:o.r)||0,y:!0,d:d(e,null==o?void 0:o.d,r)};let s=!(null==o?void 0:o.y);return o&&"v"in o&&Object.is(o.v,n)?a.d===o.d||a.d.size===o.d.size&&Array.from(a.d.keys()).every((e=>o.d.has(e)))||(s=!0,Promise.resolve().then((()=>{_(e)}))):(s=!0,++a.r,a.d.has(t)&&(a.d=new Map(a.d).set(t,a.r))),o&&!s?o:(c(e,t,a),a)},h=(e,t,n,r,i)=>{const o=u(e,t);if(o){if(i&&(!("p"in o)||!Nf(o.p,i)))return o;"p"in o&&Tf(o.p)}const a={e:n,r:((null==o?void 0:o.r)||0)+1,y:!0,d:d(e,null==o?void 0:o.d,r)};return c(e,t,a),a},p=(e,t,n,r)=>{const i=u(e,t);if(i&&"p"in i){if(Nf(i.p,n)&&!Af(i.p))return i.y?i:{...i,y:!0};Tf(i.p)}((e,t,n)=>{let r=a.get(t);r||(r=new Map,a.set(t,r)),n.then((()=>{r.get(e)===n&&(r.delete(e),r.size||a.delete(t))})),r.set(e,n)})(e,t,n);const o={p:n,r:((null==i?void 0:i.r)||0)+1,y:!0,d:d(e,null==i?void 0:i.d,r)};return c(e,t,o),o},g=(e,t,n,r)=>{if(n instanceof Promise){const i=Ff(n,n.then((n=>{f(e,t,n,r,i)})).catch((n=>{if(n instanceof Promise)return Rf(n)?n.then((()=>{m(e,t,!0)})):n;h(e,t,n,r,i)})));return p(e,t,i,r)}return f(e,t,n,r)},m=(e,t,r)=>{if(!r){const r=u(e,t);if(r){if(r.y&&"p"in r&&!Af(r.p))return r;if(r.d.forEach(((r,i)=>{if(i!==t)if(n.has(i)){const t=u(e,i);t&&!t.y&&m(e,i)}else m(e,i)})),Array.from(r.d).every((t=>{let[n,r]=t;const i=u(e,n);return i&&!("p"in i)&&i.r===r})))return r.y?r:{...r,y:!0}}}const i=new Set;try{const n=t.read((n=>{i.add(n);const r=n===t?u(e,n):m(e,n);if(r){if("e"in r)throw r.e;if("p"in r)throw r.p;return r.v}if(Lf(n))return n.init;throw new Error("no atom init")}));return g(e,t,n,i)}catch(o){if(o instanceof Promise){const n=Rf(o)&&Af(o)?(e=>Ff(e[Of].b,e[Of].o))(o):Ff(o,o);return p(e,t,n,i)}return h(e,t,o,i)}},v=(e,t)=>m(t,e),y=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),b=(e,t)=>{const r=n.get(t);null==r||r.t.forEach((n=>{n!==t&&(((e,t)=>{const n=u(e,t);if(n){const r={...n,y:!1};c(e,t,r)}else console.warn("[Bug] could not invalidate non existing atom",t)})(e,n),b(e,n))}))},x=(e,t,n)=>{let r=!0;const i=(t,n)=>{const r=m(e,t);if("e"in r)throw r.e;if("p"in r){if(null==n?void 0:n.unstable_promise)return r.p.then((()=>{const o=u(e,t);return o&&"p"in o&&o.p===r.p?new Promise((e=>setTimeout(e))).then((()=>i(t,n))):i(t,n)}));throw console.info("Reading pending atom state in write operation. We throw a promise for now.",t),r.p}if("v"in r)return r.v;throw console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",t),new Error("no value found")},o=t.write(i,((n,i)=>{let o;if(n===t){if(!Lf(n))throw new Error("atom not writable");const t=(e=>{const t=new Set,n=a.get(e);return n&&(a.delete(e),n.forEach(((e,n)=>{Tf(e),t.add(n)}))),t})(n);t.forEach((t=>{t!==e&&g(t,n,i)}));u(e,n)!==g(e,n,i)&&b(e,n)}else o=x(e,n,i);return r||_(e),o}),n);return r=!1,o},w=(e,t,n)=>{const r=x(n,e,t);return _(n),r},C=(e,t,r)=>{const i={t:new Set(r&&[r]),l:new Set};n.set(t,i),o.add(t);if(m(void 0,t).d.forEach(((r,i)=>{const o=n.get(i);o?o.t.add(t):i!==t&&C(e,i,t)})),(e=>!!e.write)(t)&&t.onMount){const n=n=>w(t,n,e),r=t.onMount(n);e=void 0,r&&(i.u=r)}return i},S=(e,t)=>{var r;const i=null==(r=n.get(t))?void 0:r.u;i&&i(),n.delete(t),o.delete(t);const a=u(e,t);a?("p"in a&&Tf(a.p),a.d.forEach(((r,i)=>{if(i!==t){const r=n.get(i);r&&(r.t.delete(t),y(i,r)&&S(e,i))}}))):console.warn("[Bug] could not find atom state to unmount",t)},k=(e,t,r,i)=>{const o=new Set(r.d.keys());null==i||i.forEach(((r,i)=>{if(o.has(i))return void o.delete(i);const a=n.get(i);a&&(a.t.delete(t),y(i,a)&&S(e,i))})),o.forEach((r=>{const i=n.get(r);i?i.t.add(t):n.has(t)&&C(e,r,t)}))},_=e=>{if(e){l(e).forEach(((r,i)=>{if(r!==t.get(i)){const t=n.get(i);null==t||t.l.forEach((t=>t(e)))}}))}else{for(;r.size;){const e=Array.from(r);r.clear(),e.forEach((e=>{let[t,r]=e;const i=u(void 0,t);if(i&&i.d!==(null==r?void 0:r.d)&&k(void 0,t,i,null==r?void 0:r.d),r&&!r.y&&(null==i?void 0:i.y))return;const o=n.get(t);null==o||o.l.forEach((e=>e()))}))}i.forEach((e=>e()))}},E=(e,n)=>{n&&(e=>{l(e).forEach(((n,r)=>{const i=t.get(r);(!i||n.r>i.r||n.y!==i.y||n.r===i.r&&n.d!==i.d)&&(t.set(r,n),n.d!==(null==i?void 0:i.d)&&k(e,r,n,null==i?void 0:i.d))}))})(n),_(void 0)},P=(e,t,r)=>{const i=((e,t)=>{let r=n.get(t);return r||(r=C(e,t)),r})(r,e),o=i.l;return o.add(t),()=>{o.delete(t),((e,t)=>{const r=n.get(t);r&&y(t,r)&&S(e,t)})(r,e)}},j=(e,t)=>{for(const[n,r]of e)Lf(n)&&(g(t,n,r),b(t,n));_(t)};return{[If]:v,[Df]:w,[zf]:E,[Bf]:P,[Uf]:j,[Vf]:e=>(i.add(e),()=>{i.delete(e)}),[Hf]:()=>o.values(),[Wf]:e=>t.get(e),[Gf]:e=>n.get(e)}},Kf=(e,t)=>({s:t?t(e).SECRET_INTERNAL_store:qf(e)}),Xf=new Map,Zf=e=>(Xf.has(e)||Xf.set(e,(0,t.createContext)(Kf())),Xf.get(e));function Yf(e,t){return function(e,t){const n="atom".concat(++jf),r={toString:()=>n};return"function"===typeof e?r.read=e:(r.init=e,r.read=e=>e(r),r.write=(e,t,n)=>t(r,"function"===typeof n?n(e(r)):n)),t&&(r.write=t),r}(e,t)}function Qf(e,n){const r=Zf(n),i=(0,t.useContext)(r),{s:o,v:a}=i,s=t=>{const n=o[If](e,t);if(!n.y)throw new Error("should not be invalidated");if("e"in n)throw n.e;if("p"in n)throw n.p;if("v"in n)return n.v;throw new Error("no atom value")},[[l,u,c],d]=(0,t.useReducer)(((t,n)=>{const r=s(n);return Object.is(t[1],r)&&t[2]===e?t:[n,r,e]}),a,(t=>[t,s(t),e]));let f=u;return c!==e&&(d(l),f=s(l)),(0,t.useEffect)((()=>{const{v:t}=i;t&&o[zf](e,t);const n=o[Bf](e,d,t);return d(t),n}),[o,e,i]),(0,t.useEffect)((()=>{o[zf](e,l)})),(0,t.useDebugValue)(f),f}function $f(e,n){const r=Zf(n),{s:i,w:o}=(0,t.useContext)(r),a=(0,t.useCallback)((t=>{if(!("write"in e))throw new Error("not writable atom");const n=n=>i[Df](e,t,n);return o?o(n):n()}),[i,o,e]);return a}function Jf(e,t){return"scope"in e&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),t=e.scope),[Qf(e,t),$f(e,t)]}var eh=n(4938),th=n.n(eh);const nh="undefined"!==typeof document,rh={current:null},ih={current:!1};function oh(){if(ih.current=!0,nh)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rh.current=e.matches;e.addListener(t),t()}else rh.current=!1}const ah=(0,t.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),sh=(0,t.createContext)({}),lh=(0,t.createContext)(null),uh=nh?t.useLayoutEffect:t.useEffect,ch=(0,t.createContext)({strict:!1}),dh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),fh="data-"+dh("framerAppearId"),hh=!1,ph=!1;class gh{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const mh=["read","resolveKeyframes","update","preRender","render","postRender"];function vh(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=mh.reduce(((e,t)=>(e[t]=function(e){let t=new gh,n=new gh,r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:function(e){const o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=o?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(e),s.add(e)&&o&&i&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];a.has(r)&&(s.schedule(r),e()),r(l)}i=!1,o&&(o=!1,s.process(l))}}};return s}((()=>n=!0)),e)),{}),a=e=>{o[e].process(i)},s=()=>{const o=ph?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,mh.forEach(a),i.isProcessing=!1,n&&t&&(r=!1,e(s))},l=mh.reduce(((t,a)=>{const l=o[a];return t[a]=function(t){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,i.isProcessing||e(s)),l.schedule(t,o,a)},t}),{});return{schedule:l,cancel:e=>mh.forEach((t=>o[t].cancel(e))),state:i,steps:o}}const{schedule:yh,cancel:bh}=vh(queueMicrotask,!1);function xh(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function wh(e,n,r){return(0,t.useCallback)((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"===typeof r?r(t):xh(r)&&(r.current=t))}),[n])}function Ch(e){return"string"===typeof e||Array.isArray(e)}function Sh(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}const kh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_h=["initial",...kh];function Eh(e){return Sh(e.animate)||_h.some((t=>Ch(e[t])))}function Ph(e){return Boolean(Eh(e)||e.variants)}function jh(e){const{initial:n,animate:r}=function(e,t){if(Eh(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Ch(t)?t:void 0,animate:Ch(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t.useContext)(sh));return(0,t.useMemo)((()=>({initial:n,animate:r})),[Oh(n),Oh(r)])}function Oh(e){return Array.isArray(e)?e.join(" "):e}const Rh={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ah={};for(const n in Rh)Ah[n]={isEnabled:e=>Rh[n].some((t=>!!e[t]))};const Th=(0,t.createContext)({}),Nh=(0,t.createContext)({}),Fh=Symbol.for("motionComponentSymbol");function Mh(e){let{preloadedFeatures:n,createVisualElement:r,useRender:i,useVisualState:o,Component:a}=e;n&&function(e){for(const t in e)Ah[t]={...Ah[t],...e[t]}}(n);const s=(0,t.forwardRef)((function(e,s){let l;const u={...(0,t.useContext)(ah),...e,layoutId:Lh(e)},{isStatic:c}=u,d=jh(e),f=o(e,c);if(!c&&nh){d.visualElement=function(e,n,r,i){const{visualElement:o}=(0,t.useContext)(sh),a=(0,t.useContext)(ch),s=(0,t.useContext)(lh),l=(0,t.useContext)(ah).reducedMotion,u=(0,t.useRef)();i=i||a.renderer,!u.current&&i&&(u.current=i(e,{visualState:n,parent:o,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const c=u.current;(0,t.useInsertionEffect)((()=>{c&&c.update(r,s)}));const d=(0,t.useRef)(Boolean(r[fh]&&!window.HandoffComplete));return uh((()=>{c&&(yh.render(c.render),d.current&&c.animationState&&c.animationState.animateChanges())})),(0,t.useEffect)((()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),c}(a,f,u,r);const e=(0,t.useContext)(Nh),i=(0,t.useContext)(ch).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,i,n,e))}return(0,_o.jsxs)(sh.Provider,{value:d,children:[l&&d.visualElement?(0,_o.jsx)(l,{visualElement:d.visualElement,...u}):null,i(a,e,wh(f,d.visualElement,s),f,c,d.visualElement)]})}));return s[Fh]=a,s}function Lh(e){let{layoutId:n}=e;const r=(0,t.useContext)(Th).id;return r&&void 0!==n?r+"-"+n:n}function Ih(e){function t(t){return Mh(e(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}if("undefined"===typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Dh=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function zh(e){return"string"===typeof e&&!e.includes("-")&&!!(Dh.indexOf(e)>-1||/[A-Z]/u.test(e))}const Bh={};const Uh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vh=new Set(Uh);function Hh(e,t){let{layout:n,layoutId:r}=t;return Vh.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!Bh[e]||"opacity"===e)}const Wh=e=>Boolean(e&&e.getVelocity),Gh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qh=Uh.length;const Kh=e=>t=>"string"===typeof t&&t.startsWith(e),Xh=Kh("--"),Zh=Kh("var(--"),Yh=e=>!!Zh(e)&&Qh.test(e.split("/*")[0].trim()),Qh=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$h=(e,t)=>t&&"number"===typeof e?t.transform(e):e,Jh=(e,t,n)=>n>t?t:n<e?e:n,ep={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},tp={...ep,transform:e=>Jh(0,1,e)},np={...ep,default:1},rp=e=>Math.round(1e5*e)/1e5,ip=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,op=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ap=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function sp(e){return"string"===typeof e}const lp=e=>({test:t=>sp(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),up=lp("deg"),cp=lp("%"),dp=lp("px"),fp=lp("vh"),hp=lp("vw"),pp={...cp,parse:e=>cp.parse(e)/100,transform:e=>cp.transform(100*e)},gp={...ep,transform:Math.round},mp={borderWidth:dp,borderTopWidth:dp,borderRightWidth:dp,borderBottomWidth:dp,borderLeftWidth:dp,borderRadius:dp,radius:dp,borderTopLeftRadius:dp,borderTopRightRadius:dp,borderBottomRightRadius:dp,borderBottomLeftRadius:dp,width:dp,maxWidth:dp,height:dp,maxHeight:dp,size:dp,top:dp,right:dp,bottom:dp,left:dp,padding:dp,paddingTop:dp,paddingRight:dp,paddingBottom:dp,paddingLeft:dp,margin:dp,marginTop:dp,marginRight:dp,marginBottom:dp,marginLeft:dp,rotate:up,rotateX:up,rotateY:up,rotateZ:up,scale:np,scaleX:np,scaleY:np,scaleZ:np,skew:up,skewX:up,skewY:up,distance:dp,translateX:dp,translateY:dp,translateZ:dp,x:dp,y:dp,z:dp,perspective:dp,transformPerspective:dp,opacity:tp,originX:pp,originY:pp,originZ:dp,zIndex:gp,backgroundPositionX:dp,backgroundPositionY:dp,fillOpacity:tp,strokeOpacity:tp,numOctaves:gp};function vp(e,t,n,r){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const e=t[d];if(Xh(d)){o[d]=e;continue}const n=mp[d],r=$h(e,n);if(Vh.has(d)){if(l=!0,a[d]=r,!c)continue;e!==(n.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=r):i[d]=r}if(t.transform||(l||r?i.transform=function(e,t,n,r){let{enableHardwareAcceleration:i=!0,allowTransformNone:o=!0}=t,a="";for(let s=0;s<qh;s++){const t=Uh[s];if(void 0!==e[t]){const n=Gh[t]||t;a+="".concat(n,"(").concat(e[t],") ")}}return i&&!e.z&&(a+="translateZ(0)"),a=a.trim(),r?a=r(e,n?"":a):o&&n&&(a="none"),a}(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;i.transformOrigin="".concat(e," ").concat(t," ").concat(n)}}const yp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function bp(e,t,n){for(const r in t)Wh(t[r])||Hh(r,n)||(e[r]=t[r])}function xp(e,n,r){const i={};return bp(i,e.style||{},e),Object.assign(i,function(e,n,r){let{transformTemplate:i}=e;return(0,t.useMemo)((()=>{const e=yp();return vp(e,n,{enableHardwareAcceleration:!r},i),Object.assign({},e.vars,e.style)}),[n])}(e,n,r)),i}function wp(e,t,n){const r={},i=xp(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Cp=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Sp(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Cp.has(e)}let kp=e=>!Sp(e);try{(_p=require("@emotion/is-prop-valid").default)&&(kp=e=>e.startsWith("on")?!Sp(e):_p(e))}catch(lF){}var _p;function Ep(e,t,n){return"string"===typeof e?e:dp.transform(t+n*e)}const Pp={offset:"stroke-dashoffset",array:"stroke-dasharray"},jp={offset:"strokeDashoffset",array:"strokeDasharray"};function Op(e,t,n,r,i){let{attrX:o,attrY:a,attrScale:s,originX:l,originY:u,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...h}=t;if(vp(e,h,n,i),r)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:m}=e;p.transform&&(m&&(g.transform=p.transform),delete p.transform),m&&(void 0!==l||void 0!==u||g.transform)&&(g.transformOrigin=function(e,t,n){const r=Ep(t,e.x,e.width),i=Ep(n,e.y,e.height);return"".concat(r," ").concat(i)}(m,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==o&&(p.x=o),void 0!==a&&(p.y=a),void 0!==s&&(p.scale=s),void 0!==c&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.pathLength=1;const o=i?Pp:jp;e[o.offset]=dp.transform(-r);const a=dp.transform(t),s=dp.transform(n);e[o.array]="".concat(a," ").concat(s)}(p,c,d,f,!1)}const Rp=()=>({...yp(),attrs:{}}),Ap=e=>"string"===typeof e&&"svg"===e.toLowerCase();function Tp(e,n,r,i){const o=(0,t.useMemo)((()=>{const t=Rp();return Op(t,n,{enableHardwareAcceleration:!1},Ap(i),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};bp(t,e.style,e),o.style={...t,...o.style}}return o}function Np(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(n,r,i,o,a)=>{let{latestValues:s}=o;const l=(zh(n)?Tp:wp)(r,s,a,n),u=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"===typeof e.values||(kp(i)||!0===n&&Sp(i)||!t&&!Sp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"===typeof n,e),c=n!==t.Fragment?{...u,...l,ref:i}:{},{children:d}=r,f=(0,t.useMemo)((()=>Wh(d)?d.get():d),[d]);return(0,t.createElement)(n,{...c,children:f})}}function Fp(e,t,n,r){let{style:i,vars:o}=t;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(const a in o)e.style.setProperty(a,o[a])}const Mp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Lp(e,t,n,r){Fp(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Mp.has(i)?i:dh(i),t.attrs[i])}function Ip(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Wh(i[a])||t.style&&Wh(t.style[a])||Hh(a,e)||void 0!==(null===(r=null===n||void 0===n?void 0:n.getValue(a))||void 0===r?void 0:r.liveStyle))&&(o[a]=i[a]);return o}function Dp(e,t,n){const r=Ip(e,t,n);for(const i in e)if(Wh(e[i])||Wh(t[i])){r[-1!==Uh.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]}return r}function zp(e){const t=[{},{}];return null===e||void 0===e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function Bp(e,t,n,r){if("function"===typeof t){const[i,o]=zp(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t){const[i,o]=zp(r);t=t(void 0!==n?n:e.custom,i,o)}return t}const Up=e=>Array.isArray(e),Vp=e=>Boolean(e&&"object"===typeof e&&e.mix&&e.toValue),Hp=e=>Up(e)?e[e.length-1]||0:e;function Wp(e){const t=Wh(e)?e.get():e;return Vp(t)?t.toValue():t}const Gp=e=>(n,r)=>{const i=(0,t.useContext)(sh),o=(0,t.useContext)(lh),a=()=>function(e,t,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:o,onMount:a}=e;const s={latestValues:qp(t,n,r,i),renderState:o()};return a&&(s.mount=e=>a(t,e,s)),s}(e,n,i,o);return r?a():function(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}(a)};function qp(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=Wp(o[f]);let{initial:a,animate:s}=e;const l=Eh(e),u=Ph(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!==typeof d&&!Sh(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=Bp(e,t);if(!n)return;const{transitionEnd:r,transition:o,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(i[e]=t)}for(const e in r)i[e]=r[e]}))}return i}const Kp=e=>e,{schedule:Xp,cancel:Zp,state:Yp,steps:Qp}=vh("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:Kp,!0),$p={useVisualState:Gp({scrapeMotionValuesFromProps:Dp,createRenderState:Rp,onMount:(e,t,n)=>{let{renderState:r,latestValues:i}=n;Xp.read((()=>{try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch($o){r.dimensions={x:0,y:0,width:0,height:0}}})),Xp.render((()=>{Op(r,i,{enableHardwareAcceleration:!1},Ap(t.tagName),e.transformTemplate),Lp(t,r)}))}})},Jp={useVisualState:Gp({scrapeMotionValuesFromProps:Ip,createRenderState:yp})};function eg(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const tg=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary;function ng(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:e["".concat(t,"X")],y:e["".concat(t,"Y")]}}}const rg=e=>t=>tg(t)&&e(t,ng(t));function ig(e,t,n,r){return eg(e,t,rg(n),r)}const og=(e,t)=>n=>t(e(n)),ag=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(og)};function sg(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const lg=sg("dragHorizontal"),ug=sg("dragVertical");function cg(e){let t=!1;if("y"===e)t=ug();else if("x"===e)t=lg();else{const e=lg(),n=ug();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function dg(){const e=cg(!0);return!e||(e(),!1)}class fg{constructor(e){this.isMounted=!1,this.node=e}update(){}}function hg(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd";return ig(e.current,n,((n,i)=>{if("touch"===n.pointerType||dg())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);const a=o[r];a&&Xp.postRender((()=>a(n,i)))}),{passive:!e.getProps()[r]})}const pg=(e,t)=>!!t&&(e===t||pg(e,t.parentElement));function gg(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ng(n))}const mg=new WeakMap,vg=new WeakMap,yg=e=>{const t=mg.get(e.target);t&&t(e)},bg=e=>{e.forEach(yg)};function xg(e,t,n){const r=function(e){let{root:t,...n}=e;const r=t||document;vg.has(r)||vg.set(r,{});const i=vg.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(bg,{root:t,...n})),i[o]}(t);return mg.set(e,n),r.observe(e),()=>{mg.delete(e),r.unobserve(e)}}const wg={some:0,all:1};const Cg={inView:{Feature:class extends fg{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"===typeof r?r:wg[r]};return xg(this.node.current,o,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==n[e]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends fg{constructor(){super(...arguments),this.removeStartListeners=Kp,this.removeEndListeners=Kp,this.removeAccessibleListeners=Kp,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=ig(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps(),o=i||pg(this.node.current,e.target)?n:r;o&&Xp.update((()=>o(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),i=ig(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ag(r,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=eg(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=eg(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&gg("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Xp.postRender((()=>n(e,t)))}))})),gg("down",((e,t)=>{this.startPress(e,t)}))})),t=eg(this.node.current,"blur",(()=>{this.isPressing&&gg("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=ag(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Xp.postRender((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!dg()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Xp.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=ig(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=eg(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ag(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends fg{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch($o){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ag(eg(this.node.current,"focus",(()=>this.onFocus())),eg(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends fg{mount(){this.unmount=ag(hg(this.node,!0),hg(this.node,!1))}unmount(){}}}};function Sg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function kg(e,t,n){const r=e.getProps();return Bp(r,t,void 0!==n?n:r.custom,e)}const _g=e=>1e3*e,Eg=e=>e/1e3,Pg={type:"spring",stiffness:500,damping:25,restSpeed:10},jg={type:"keyframes",duration:.8},Og={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Rg=(e,t)=>{let{keyframes:n}=t;return n.length>2?jg:Vh.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:Pg:Og};function Ag(e,t){return e[t]||e.default||e}const Tg=!1,Ng=e=>null!==e;function Fg(e,t,n){let{repeat:r,repeatType:i="loop"}=t;const o=e.filter(Ng),a=r&&"loop"!==i&&r%2===1?0:o.length-1;return a&&void 0!==n?n:o[a]}let Mg;function Lg(){Mg=void 0}const Ig={now:()=>(void 0===Mg&&Ig.set(Yp.isProcessing||ph?Yp.timestamp:performance.now()),Mg),set:e=>{Mg=e,queueMicrotask(Lg)}},Dg=e=>/^0[^.\s]+$/u.test(e);let zg=Kp,Bg=Kp;const Ug=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Vg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Hg(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Bg(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));const[r,i]=function(e){const t=Vg.exec(e);if(!t)return[,];const[,n,r,i]=t;return["--".concat(null!==n&&void 0!==n?n:r),i]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const e=o.trim();return Ug(e)?parseFloat(e):e}return Yh(i)?Hg(i,t,n+1):i}const Wg=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Gg=e=>e===ep||e===dp,qg=(e,t)=>parseFloat(e.split(", ")[t]),Kg=(e,t)=>(n,r)=>{let{transform:i}=r;if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/u);if(o)return qg(o[1],t);{const t=i.match(/^matrix\((.+)\)$/u);return t?qg(t[1],e):0}},Xg=new Set(["x","y","z"]),Zg=Uh.filter((e=>!Xg.has(e)));const Yg={width:(e,t)=>{let{x:n}=e,{paddingLeft:r="0",paddingRight:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},height:(e,t)=>{let{y:n}=e,{paddingTop:r="0",paddingBottom:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},top:(e,t)=>{let{top:n}=t;return parseFloat(n)},left:(e,t)=>{let{left:n}=t;return parseFloat(n)},bottom:(e,t)=>{let{y:n}=e,{top:r}=t;return parseFloat(r)+(n.max-n.min)},right:(e,t)=>{let{x:n}=e,{left:r}=t;return parseFloat(r)+(n.max-n.min)},x:Kg(4,13),y:Kg(5,14)};Yg.translateX=Yg.x,Yg.translateY=Yg.y;const Qg=e=>t=>t.test(e),$g=[ep,dp,cp,up,hp,fp,{test:e=>"auto"===e,parse:e=>e}],Jg=e=>$g.find(Qg(e)),em=new Set;let tm=!1,nm=!1;function rm(){if(nm){const e=Array.from(em).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return Zg.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((t=>{let[n,r]=t;var i;null===(i=e.getValue(n))||void 0===i||i.set(r)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}nm=!1,tm=!1,em.forEach((e=>e.complete())),em.clear()}function im(){em.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(nm=!0)}))}class om{constructor(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(em.add(this),tm||(tm=!0,Xp.read(im),Xp.resolveKeyframes(rm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){const i=null===r||void 0===r?void 0:r.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,o);void 0!==r&&null!==r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),em.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,em.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const am=(e,t)=>n=>Boolean(sp(n)&&ap.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),sm=(e,t,n)=>r=>{if(!sp(r))return r;const[i,o,a,s]=r.match(ip);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},lm={...ep,transform:e=>Math.round((e=>Jh(0,255,e))(e))},um={test:am("rgb","red"),parse:sm("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:i=1}=e;return"rgba("+lm.transform(t)+", "+lm.transform(n)+", "+lm.transform(r)+", "+rp(tp.transform(i))+")"}};const cm={test:am("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:um.transform},dm={test:am("hsl","hue"),parse:sm("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:i=1}=e;return"hsla("+Math.round(t)+", "+cp.transform(rp(n))+", "+cp.transform(rp(r))+", "+rp(tp.transform(i))+")"}},fm={test:e=>um.test(e)||cm.test(e)||dm.test(e),parse:e=>um.test(e)?um.parse(e):dm.test(e)?dm.parse(e):cm.parse(e),transform:e=>sp(e)?e:e.hasOwnProperty("red")?um.transform(e):dm.transform(e)};const hm="number",pm="color",gm="var",mm="var(",vm="${}",ym=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function bm(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(ym,(e=>(fm.test(e)?(r.color.push(o),i.push(pm),n.push(fm.parse(e))):e.startsWith(mm)?(r.var.push(o),i.push(gm),n.push(e)):(r.number.push(o),i.push(hm),n.push(parseFloat(e))),++o,vm))).split(vm);return{values:n,split:a,indexes:r,types:i}}function xm(e){return bm(e).values}function wm(e){const{split:t,types:n}=bm(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){const t=n[o];i+=t===hm?rp(e[o]):t===pm?fm.transform(e[o]):e[o]}return i}}const Cm=e=>"number"===typeof e?0:e;const Sm={test:function(e){var t,n;return isNaN(e)&&sp(e)&&((null===(t=e.match(ip))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(op))||void 0===n?void 0:n.length)||0)>0},parse:xm,createTransformer:wm,getAnimatableNone:function(e){const t=xm(e);return wm(e)(t.map(Cm))}},km=new Set(["brightness","contrast","saturate","opacity"]);function _m(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ip)||[];if(!r)return e;const i=n.replace(r,"");let o=km.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Em=/\b([a-z-]*)\(.*?\)/gu,Pm={...Sm,getAnimatableNone:e=>{const t=e.match(Em);return t?t.map(_m).join(" "):e}},jm={...mp,color:fm,backgroundColor:fm,outlineColor:fm,fill:fm,stroke:fm,borderColor:fm,borderTopColor:fm,borderRightColor:fm,borderBottomColor:fm,borderLeftColor:fm,filter:Pm,WebkitFilter:Pm},Om=e=>jm[e];function Rm(e,t){let n=Om(e);return n!==Pm&&(n=Sm),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Am=new Set(["auto","none","0"]);class Tm extends om{constructor(e,t,n,r){super(e,t,n,r,null===r||void 0===r?void 0:r.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let s=0;s<e.length;s++){const n=e[s];if("string"===typeof n&&Yh(n)){const r=Hg(n,t.current);void 0!==r&&(e[s]=r),s===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Wg.has(n)||2!==e.length)return;const[r,i]=e,o=Jg(r),a=Jg(i);if(o!==a)if(Gg(o)&&Gg(a))for(let s=0;s<e.length;s++){const t=e[s];"string"===typeof t&&(e[s]=parseFloat(t))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)("number"===typeof(r=e[i])?0===r:null===r||"none"===r||"0"===r||Dg(r))&&n.push(i);var r;n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"===typeof t&&!Am.has(t)&&bm(t).values.length&&(r=e[i]),i++}if(r&&n)for(const o of t)e[o]=Rm(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Yg[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,a=r[o];r[o]=Yg[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((e=>{let[n,r]=e;t.getValue(n).set(r)})),this.resolveNoneKeyframes()}}const Nm=(e,t)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!Sm.test(e)&&"0"!==e||e.startsWith("url(")));class Fm{constructor(e){let{autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...s}=e;this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(im(),rm()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:i,delay:o,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const o=e[e.length-1],a=Nm(i,t),s=Nm(o,t);return zg(a===s,"You are trying to animate ".concat(t,' from "').concat(i,'" to "').concat(o,'". ').concat(i," is not an animatable value - to enable this animation set ").concat(i," to a value animatable to ").concat(o," via the `style` property.")),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&r)}(e,n,r,i)){if(Tg||!o)return null===s||void 0===s||s(Fg(e,this.options,t)),null===a||void 0===a||a(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function Mm(e,t){return t?e*(1e3/t):0}const Lm=5;function Im(e,t,n){const r=Math.max(t-Lm,0);return Mm(n-e(r),t-r)}const Dm=.001,zm=.01,Bm=10,Um=.05,Vm=1;function Hm(e){let t,n,{duration:r=800,bounce:i=.25,velocity:o=0,mass:a=1}=e;zg(r<=_g(Bm),"Spring duration must be 10 seconds or less");let s=1-i;s=Jh(Um,Vm,s),r=Jh(zm,Bm,Eg(r)),s<1?(t=e=>{const t=e*s,n=t*r,i=t-o,a=Gm(e,s),l=Math.exp(-n);return Dm-i/a*l},n=e=>{const n=e*s*r,i=n*o+o,a=Math.pow(s,2)*Math.pow(e,2)*r,l=Math.exp(-n),u=Gm(Math.pow(e,2),s);return(-t(e)+Dm>0?-1:1)*((i-a)*l)/u}):(t=e=>Math.exp(-e*r)*((e-o)*r+1)-Dm,n=e=>Math.exp(-e*r)*(r*r*(o-e)));const l=function(e,t,n){let r=n;for(let i=1;i<Wm;i++)r-=e(r)/t(r);return r}(t,n,5/r);if(r=_g(r),isNaN(l))return{stiffness:100,damping:10,duration:r};{const e=Math.pow(l,2)*a;return{stiffness:e,damping:2*s*Math.sqrt(a*e),duration:r}}}const Wm=12;function Gm(e,t){return e*Math.sqrt(1-t*t)}const qm=["duration","bounce"],Km=["stiffness","damping","mass"];function Xm(e,t){return t.some((t=>void 0!==e[t]))}function Zm(e){let{keyframes:t,restDelta:n,restSpeed:r,...i}=e;const o=t[0],a=t[t.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Xm(e,Km)&&Xm(e,qm)){const n=Hm(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...i,velocity:-Eg(i.velocity||0)}),p=f||0,g=u/(2*Math.sqrt(l*c)),m=a-o,v=Eg(Math.sqrt(l/c)),y=Math.abs(m)<5;let b;if(r||(r=y?.01:2),n||(n=y?.005:.5),g<1){const e=Gm(v,g);b=t=>{const n=Math.exp(-g*v*t);return a-n*((p+g*v*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===g)b=e=>a-Math.exp(-v*e)*(m+(p+v*m)*e);else{const e=v*Math.sqrt(g*g-1);b=t=>{const n=Math.exp(-g*v*t),r=Math.min(e*t,300);return a-n*((p+g*v*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:h&&d||null,next:e=>{const t=b(e);if(h)s.done=e>=d;else{let i=p;0!==e&&(i=g<1?Im(b,e,t):0);const o=Math.abs(i)<=r,l=Math.abs(a-t)<=n;s.done=o&&l}return s.value=s.done?a:t,s}}}function Ym(e){let{keyframes:t,velocity:n=0,power:r=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:l,max:u,restDelta:c=.5,restSpeed:d}=e;const f=t[0],h={done:!1,value:f},p=e=>void 0===l?u:void 0===u||Math.abs(l-e)<Math.abs(u-e)?l:u;let g=r*n;const m=f+g,v=void 0===s?m:s(m);v!==m&&(g=v-f);const y=e=>-g*Math.exp(-e/i),b=e=>v+y(e),x=e=>{const t=y(e),n=b(e);h.done=Math.abs(t)<=c,h.value=h.done?v:n};let w,C;const S=e=>{(e=>void 0!==l&&e<l||void 0!==u&&e>u)(h.value)&&(w=e,C=Zm({keyframes:[h.value,p(h.value)],velocity:Im(b,e,h.value),damping:o,stiffness:a,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return C||void 0!==w||(t=!0,x(e),S(e)),void 0!==w&&e>=w?C.next(e-w):(!t&&x(e),h)}}}const Qm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$m=1e-7,Jm=12;function ev(e,t,n,r){if(e===t&&n===r)return Kp;const i=t=>function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=Qm(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>$m&&++s<Jm);return a}(t,0,1,e,n);return e=>0===e||1===e?e:Qm(i(e),t,r)}const tv=ev(.42,0,1,1),nv=ev(0,0,.58,1),rv=ev(.42,0,.58,1),iv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ov=e=>t=>1-e(1-t),av=e=>1-Math.sin(Math.acos(e)),sv=ov(av),lv=iv(av),uv=ev(.33,1.53,.69,.99),cv=ov(uv),dv=iv(cv),fv={linear:Kp,easeIn:tv,easeInOut:rv,easeOut:nv,circIn:av,circInOut:lv,circOut:sv,backIn:cv,backInOut:dv,backOut:uv,anticipate:e=>(e*=2)<1?.5*cv(e):.5*(2-Math.pow(2,-10*(e-1)))},hv=e=>{if(Array.isArray(e)){Bg(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return ev(t,n,r,i)}return"string"===typeof e?(Bg(void 0!==fv[e],"Invalid easing type '".concat(e,"'")),fv[e]):e},pv=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},gv=(e,t,n)=>e+(t-e)*n;function mv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const vv=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},yv=[cm,um,dm];function bv(e){const t=(e=>yv.find((t=>t.test(e))))(e);Bg(Boolean(t),"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."));let n=t.parse(e);return t===dm&&(n=function(e){let{hue:t,saturation:n,lightness:r,alpha:i}=e;t/=360,n/=100,r/=100;let o=0,a=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;o=mv(i,e,t+1/3),a=mv(i,e,t),s=mv(i,e,t-1/3)}else o=a=s=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}(n)),n}const xv=(e,t)=>{const n=bv(e),r=bv(t),i={...n};return e=>(i.red=vv(n.red,r.red,e),i.green=vv(n.green,r.green,e),i.blue=vv(n.blue,r.blue,e),i.alpha=gv(n.alpha,r.alpha,e),um.transform(i))},wv=new Set(["none","hidden"]);function Cv(e,t){return n=>n>0?t:e}function Sv(e,t){return n=>gv(e,t,n)}function kv(e){return"number"===typeof e?Sv:"string"===typeof e?Yh(e)?Cv:fm.test(e)?xv:Pv:Array.isArray(e)?_v:"object"===typeof e?fm.test(e)?xv:Ev:Cv}function _v(e,t){const n=[...e],r=n.length,i=e.map(((e,n)=>kv(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Ev(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=kv(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Pv=(e,t)=>{const n=Sm.createTransformer(t),r=bm(e),i=bm(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?wv.has(e)&&!i.values.length||wv.has(t)&&!r.values.length?function(e,t){return wv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):ag(_v(function(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],s=e.indexes[a][i[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[o]=l,i[a]++}return r}(r,i),i.values),n):(zg(!0,"Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),Cv(e,t))};function jv(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return gv(e,t,n);return kv(e)(e,t)}function Ov(e,t){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=e.length;if(Bg(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],i=n||jv,o=e.length-1;for(let a=0;a<o;a++){let n=i(e[a],e[a+1]);if(t){const e=Array.isArray(t)?t[a]||Kp:t;n=ag(e,n)}r.push(n)}return r}(t,r,i),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=pv(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Jh(e[0],e[o-1],t)):l}function Rv(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=pv(0,t,r);e.push(gv(n,1,i))}}(t,e.length-1),t}function Av(e,t){return e.map((()=>t||rv)).splice(0,e.length-1)}function Tv(e){let{duration:t=300,keyframes:n,times:r,ease:i="easeInOut"}=e;const o=(e=>Array.isArray(e)&&"number"!==typeof e[0])(i)?i.map(hv):hv(i),a={done:!1,value:n[0]},s=function(e,t){return e.map((e=>e*t))}(r&&r.length===n.length?r:Rv(n),t),l=Ov(s,n,{ease:Array.isArray(o)?o:Av(n,o)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}const Nv=e=>{const t=t=>{let{timestamp:n}=t;return e(n)};return{start:()=>Xp.update(t,!0),stop:()=>Zp(t),now:()=>Yp.isProcessing?Yp.timestamp:Ig.now()}},Fv={decay:Ym,inertia:Ym,tween:Tv,keyframes:Tv,spring:Zm},Mv=e=>e/100;class Lv extends Fm{constructor(e){let{KeyframeResolver:t=om,...n}=e;super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:r,motionValue:i,keyframes:o}=this.options,a=(e,t)=>this.onKeyframesResolved(e,t);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,a,r,i):this.resolver=new t(o,a,r,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=Fv[t]||Tv;let s,l;a!==Tv&&"number"!==typeof e[0]&&(s=ag(Mv,jv(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});"mirror"===i&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(u));const{calculatedDuration:c}=u,d=c+r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);const{delay:d,repeat:f,repeatType:h,repeatDelay:p,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?m<0:m>u;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,b=i;if(f){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1);Boolean(t%2)&&("reverse"===h?(n=1-n,p&&(n-=p/c)):"mirror"===h&&(b=o)),y=Jh(0,1,n)*c}const x=v?{done:!1,value:s[0]}:b.next(y);a&&(x.value=a(x.value));let{done:w}=x;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return C&&void 0!==r&&(x.value=Fg(s,this.options,r)),g&&g(x.value),C&&this.finish(),x}get duration(){const{resolved:e}=this;return e?Eg(e.calculatedDuration):0}get time(){return Eg(this.currentTime)}set time(e){e=_g(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Eg(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Nv,onPlay:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Iv=e=>Array.isArray(e)&&"number"===typeof e[0];function Dv(e){return Boolean(!e||"string"===typeof e&&e in Bv||Iv(e)||Array.isArray(e)&&e.every(Dv))}const zv=e=>{let[t,n,r,i]=e;return"cubic-bezier(".concat(t,", ").concat(n,", ").concat(r,", ").concat(i,")")},Bv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zv([0,.65,.55,1]),circOut:zv([.55,0,1,.45]),backIn:zv([.31,.01,.66,-.59]),backOut:zv([.33,1.53,.69,.99])};function Uv(e){return Vv(e)||Bv.easeOut}function Vv(e){return e?Iv(e)?zv(e):Array.isArray(e)?e.map(Uv):Bv[e]:void 0}const Hv=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Wv=new Set(["opacity","clipPath","filter","transform"]);class Gv extends Fm{constructor(e){super(e);const{name:t,motionValue:n,keyframes:r}=this.options;this.resolver=new Tm(r,((e,t)=>this.onKeyframesResolved(e,t)),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:i,ease:o,type:a,motionValue:s,name:l}=this.options;if(!(null===(n=s.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(u=this.options).type||"backgroundColor"===u.name||!Dv(u.ease)){const{onComplete:t,onUpdate:n,motionValue:s,...l}=this.options,u=function(e,t){const n=new Lv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<2e4;)r=n.sample(o),i.push(r.value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,l);1===(e=u.keyframes).length&&(e[1]=e[0]),r=u.duration,i=u.times,o=u.ease,a="keyframes"}var u;const c=function(e,t,n){let{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const u={[t]:n};l&&(u.offset=l);const c=Vv(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(s.owner.current,l,e,{...this.options,duration:r,times:i,ease:o});return c.startTime=Ig.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;s.set(Fg(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Eg(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Eg(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=_g(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Kp;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return Kp}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:i,ease:o,times:a}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,u=new Lv({...l,keyframes:n,duration:r,type:i,ease:o,times:a,isGenerator:!0}),c=_g(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;return Hv()&&n&&Wv.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}}const qv=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;return a=>{const s=Ag(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u-=_g(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};(function(e){let{when:t,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:l,from:u,elapsed:c,...d}=e;return!!Object.keys(d).length})(s)||(c={...c,...Rg(e,c)}),c.duration&&(c.duration=_g(c.duration)),c.repeatDelay&&(c.repeatDelay=_g(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(d=!0)),(Tg||hh)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){const e=Fg(c.keyframes,s);if(void 0!==e)return void Xp.update((()=>{c.onUpdate(e),c.onComplete()}))}return!o&&Gv.supports(c)?new Gv(c):new Lv(c)}};function Kv(e){return Boolean(Wh(e)&&e.add)}function Xv(e,t){-1===e.indexOf(t)&&e.push(t)}function Zv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yv{constructor(){this.subscriptions=[]}add(e){return Xv(this.subscriptions,e),()=>Zv(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Qv={current:void 0};class $v{constructor(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.version="11.2.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=Ig.now();t.updatedAt!==r&&t.setPrevFrameValue(),t.prev=t.current,t.setCurrent(e),t.current!==t.prev&&t.events.change&&t.events.change.notify(t.current),n&&t.events.renderRequest&&t.events.renderRequest.notify(t.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Ig.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Yv);const n=this.events[e].add(t);return"change"===e?()=>{n(),Xp.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Qv.current&&Qv.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Ig.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Mm(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Jv(e,t){return new $v(e,t)}function ey(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jv(n))}function ty(e,t){let{protectedKeys:n,needsAnimating:r}=e;const i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}function ny(e,t){let{delay:n=0,transitionOverride:r,type:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const u=e.getValue("willChange");r&&(a=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const t=e.getValue(f,null!==(o=e.latestValues[f])&&void 0!==o?o:null),r=l[f];if(void 0===r||d&&ty(d,f))continue;const i={delay:n,elapsed:0,...Ag(a||{},f)};let s=!1;if(window.HandoffAppearAnimations){const n=e.getProps()[fh];if(n){const e=window.HandoffAppearAnimations(n,f,t,Xp);null!==e&&(i.elapsed=e,s=!0)}}t.start(qv(f,t,r,e.shouldReduceMotion&&Vh.has(f)?{type:!1}:i,e,s));const h=t.animation;h&&(Kv(u)&&(u.add(f),h.then((()=>u.remove(f)))),c.push(h))}return s&&Promise.all(c).then((()=>{Xp.update((()=>{s&&function(e,t){const n=kg(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o)ey(e,a,Hp(o[a]))}(e,s)}))})),c}function ry(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var r;const i=kg(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(ny(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0;const a=[],s=(e.variantChildren.size-1)*r,l=1===i?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r}:function(){return s-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r};return Array.from(e.variantChildren).sort(iy).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(ry(e,t,{...o,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function iy(e,t){return e.sortNodePosition(t)}const oy=[...kh].reverse(),ay=kh.length;function sy(e){return t=>Promise.all(t.map((t=>{let{animation:n,options:r}=t;return function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map((t=>ry(e,t,r)));n=Promise.all(i)}else if("string"===typeof t)n=ry(e,t,r);else{const i="function"===typeof t?kg(e,t,r.custom):t;n=Promise.all(ny(e,i,r))}return n.then((()=>{Xp.postRender((()=>{e.notify("AnimationComplete",t)}))}))}(e,n,r)})))}function ly(e){let t=sy(e);const n={animate:cy(!0),whileInView:cy(),whileHover:cy(),whileTap:cy(),whileDrag:cy(),whileFocus:cy(),exit:cy()};let r=!0;const i=t=>(n,r)=>{var i;const o=kg(e,r,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function o(o){const a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],u=new Set;let c={},d=1/0;for(let t=0;t<ay;t++){const f=oy[t],h=n[f],p=void 0!==a[f]?a[f]:s[f],g=Ch(p),m=f===o?h.isActive:null;!1===m&&(d=t);let v=p===s[f]&&p!==a[f]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...c},!h.isActive&&null===m||!p&&!h.prevProp||Sh(p)||"boolean"===typeof p)continue;let y=uy(h.prevProp,p)||f===o&&h.isActive&&!v&&g||t>d&&g,b=!1;const x=Array.isArray(p)?p:[p];let w=x.reduce(i(f),{});!1===m&&(w={});const{prevResolvedValues:C={}}=h,S={...C,...w},k=t=>{y=!0,u.has(t)&&(b=!0,u.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=w[e],n=C[e];if(c.hasOwnProperty(e))continue;let r=!1;r=Up(t)&&Up(n)?!Sg(t,n):t!==n,r?void 0!==t&&null!==t?k(e):u.add(e):void 0!==t&&u.has(e)?k(e):h.protectedKeys[e]=!0}h.prevProp=p,h.prevResolvedValues=w,h.isActive&&(c={...c,...w}),r&&e.blockInitialAnimation&&(y=!1),!y||v&&!b||l.push(...x.map((e=>({animation:e,options:{type:f}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!==r&&void 0!==r?r:null})),l.push({animation:t})}let f=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,f?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const a=o(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function uy(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!Sg(t,e)}function cy(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let dy=0;const fy={animation:{Feature:class extends fg{constructor(e){super(e),e.animationState||(e.animationState=ly(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Sh(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends fg{constructor(){super(...arguments),this.id=dy++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},hy=(e,t)=>Math.abs(e-t);class py{constructor(e,t){let{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=vy(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=hy(e.x,t.x),r=hy(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=Yp;this.history.push({...r,timestamp:i});const{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=gy(t,this.transformPagePoint),Xp.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=vy("pointercancel"===e.type?this.lastMoveEventInfo:gy(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!tg(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const o=gy(ng(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=Yp;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,vy(o,this.history)),this.removeListeners=ag(ig(this.contextWindow,"pointermove",this.handlePointerMove),ig(this.contextWindow,"pointerup",this.handlePointerUp),ig(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Zp(this.updatePoint)}}function gy(e,t){return t?{point:t(e.point)}:e}function my(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vy(e,t){let{point:n}=e;return{point:n,delta:my(n,by(t)),offset:my(n,yy(t)),velocity:xy(t,.1)}}function yy(e){return e[0]}function by(e){return e[e.length-1]}function xy(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=by(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_g(t)));)n--;if(!r)return{x:0,y:0};const o=Eg(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function wy(e){return e.max-e.min}function Cy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(e-t)<=n}function Sy(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;e.origin=r,e.originPoint=gv(t.min,t.max,e.origin),e.scale=wy(n)/wy(t),(Cy(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=gv(n.min,n.max,e.origin)-e.originPoint,(Cy(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ky(e,t,n,r){Sy(e.x,t.x,n.x,r?r.originX:void 0),Sy(e.y,t.y,n.y,r?r.originY:void 0)}function _y(e,t,n){e.min=n.min+t.min,e.max=e.min+wy(t)}function Ey(e,t,n){e.min=t.min-n.min,e.max=e.min+wy(t)}function Py(e,t,n){Ey(e.x,t.x,n.x),Ey(e.y,t.y,n.y)}function jy(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Oy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Ry=.35;function Ay(e,t,n){return{min:Ty(e,t),max:Ty(e,n)}}function Ty(e,t){return"number"===typeof e?e:e[t]||0}const Ny=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Fy=()=>({x:{min:0,max:0},y:{min:0,max:0}});function My(e){return[e("x"),e("y")]}function Ly(e){let{top:t,left:n,right:r,bottom:i}=e;return{x:{min:n,max:r},y:{min:t,max:i}}}function Iy(e){return void 0===e||1===e}function Dy(e){let{scale:t,scaleX:n,scaleY:r}=e;return!Iy(t)||!Iy(n)||!Iy(r)}function zy(e){return Dy(e)||By(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function By(e){return Uy(e.x)||Uy(e.y)}function Uy(e){return e&&"0%"!==e}function Vy(e,t,n){return n+t*(e-n)}function Hy(e,t,n,r,i){return void 0!==i&&(e=Vy(e,i,r)),Vy(e,n,r)+t}function Wy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;e.min=Hy(e.min,t,n,r,i),e.max=Hy(e.max,t,n,r,i)}function Gy(e,t){let{x:n,y:r}=t;Wy(e.x,n.translate,n.scale,n.originPoint),Wy(e.y,r.translate,r.scale,r.originPoint)}function qy(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Ky(e,t){e.min=e.min+t,e.max=e.max+t}function Xy(e,t,n){let[r,i,o]=n;const a=void 0!==t[o]?t[o]:.5,s=gv(e.min,e.max,a);Wy(e,t[r],t[i],s,t.scale)}const Zy=["x","scaleX","originX"],Yy=["y","scaleY","originY"];function Qy(e,t){Xy(e.x,t,Zy),Xy(e.y,t,Yy)}function $y(e,t){return Ly(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Jy=e=>{let{current:t}=e;return t?t.ownerDocument.defaultView:null},eb=new WeakMap;class tb{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fy(),this.visualElement=e}start(e){let{snapToCursor:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new py(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ng(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=cg(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),My((e=>{let t=this.getAxisMotionValue(e).get()||0;if(cp.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=wy(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),i&&Xp.postRender((()=>i(e,t)));const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>My((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Jy(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&Xp.postRender((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!nb(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){let{min:r,max:i}=t;return void 0!==r&&e<r?e=n?gv(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?gv(i,e,n.max):Math.min(e,i)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&xh(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,t){let{top:n,left:r,bottom:i,right:o}=t;return{x:jy(e.x,r,o),y:jy(e.y,n,i)}}(r.layoutBox,t),this.elastic=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ry;return!1===e?e=0:!0===e&&(e=Ry),{x:Ay(e,"left","right"),y:Ay(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&My((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!xh(e))return!1;const n=e.current;Bg(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(e,t,n){const r=$y(e,n),{scroll:i}=t;return i&&(Ky(r.x,i.offset.x),Ky(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:Oy(e.x,t.x),y:Oy(e.y,t.y)}}(r.layout.layoutBox,i);if(t){const e=t(function(e){let{x:t,y:n}=e;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=Ly(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=My((a=>{if(!nb(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(qv(e,n,0,t,this.visualElement))}stopAnimation(){My((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){My((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag".concat(e.toUpperCase()),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){My((t=>{const{drag:n}=this.getProps();if(!nb(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-gv(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!xh(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};My((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=wy(e),i=wy(t);return i>r?n=pv(t.min,t.max-r,e.min):r>i&&(n=pv(e.min,e.max-i,t.min)),Jh(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),My((t=>{if(!nb(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(gv(i,o,r[t]))}))}addListeners(){if(!this.visualElement.current)return;eb.set(this.visualElement,this);const e=ig(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();xh(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const i=eg(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n}=e;this.isDragging&&n&&(My((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{i(),e(),r(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=Ry,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function nb(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}const rb=e=>(t,n)=>{e&&Xp.postRender((()=>e(t,n)))};const ib={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ob(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ab={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!dp.test(e))return e;e=parseFloat(e)}const n=ob(e,t.target.x),r=ob(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},sb={correct:(e,t)=>{let{treeScale:n,projectionDelta:r}=t;const i=e,o=Sm.parse(e);if(o.length>5)return i;const a=Sm.createTransformer(e),s="number"!==typeof o[0]?1:0,l=r.x.scale*n.x,u=r.y.scale*n.y;o[0+s]/=l,o[1+s]/=u;const c=gv(l,u,.5);return"number"===typeof o[2+s]&&(o[2+s]/=c),"number"===typeof o[3+s]&&(o[3+s]/=c),a(o)}};class lb extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;var o;o=cb,Object.assign(Bh,o),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ib.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o?(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Xp.postRender((()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),yh.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ub(e){const[n,r]=function(){const e=(0,t.useContext)(lh);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=(0,t.useId)();return(0,t.useEffect)((()=>i(o)),[]),!n&&r?[!1,()=>r&&r(o)]:[!0]}(),i=(0,t.useContext)(Th);return(0,_o.jsx)(lb,{...e,layoutGroup:i,switchLayoutGroup:(0,t.useContext)(Nh),isPresent:n,safeToRemove:r})}const cb={borderRadius:{...ab,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ab,borderTopRightRadius:ab,borderBottomLeftRadius:ab,borderBottomRightRadius:ab,boxShadow:sb},db=["TopLeft","TopRight","BottomLeft","BottomRight"],fb=db.length,hb=e=>"string"===typeof e?parseFloat(e):e,pb=e=>"number"===typeof e||dp.test(e);function gb(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const mb=yb(0,.5,sv),vb=yb(.5,.95,Kp);function yb(e,t,n){return r=>r<e?0:r>t?1:n(pv(e,t,r))}function bb(e,t){e.min=t.min,e.max=t.max}function xb(e,t){bb(e.x,t.x),bb(e.y,t.y)}function wb(e,t,n,r,i){return e=Vy(e-=t,1/n,r),void 0!==i&&(e=Vy(e,1/i,r)),e}function Cb(e,t,n,r,i){let[o,a,s]=n;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;cp.test(t)&&(t=parseFloat(t),t=gv(a.min,a.max,t/100)-a.min);if("number"!==typeof t)return;let s=gv(o.min,o.max,r);e===o&&(s-=t),e.min=wb(e.min,t,n,s,i),e.max=wb(e.max,t,n,s,i)}(e,t[o],t[a],t[s],t.scale,r,i)}const Sb=["x","scaleX","originX"],kb=["y","scaleY","originY"];function _b(e,t,n,r){Cb(e.x,t,Sb,n?n.x:void 0,r?r.x:void 0),Cb(e.y,t,kb,n?n.y:void 0,r?r.y:void 0)}function Eb(e){return 0===e.translate&&1===e.scale}function Pb(e){return Eb(e.x)&&Eb(e.y)}function jb(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Ob(e){return wy(e.x)/wy(e.y)}class Rb{constructor(){this.members=[]}add(e){Xv(this.members,e),e.scheduleRender()}remove(e){if(Zv(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ab(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(null===n||void 0===n?void 0:n.z)||0;if((i||o||a)&&(r="translate3d(".concat(i,"px, ").concat(o,"px, ").concat(a,"px) ")),1===t.x&&1===t.y||(r+="scale(".concat(1/t.x,", ").concat(1/t.y,") ")),n){const{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r="perspective(".concat(e,"px) ").concat(r)),t&&(r+="rotate(".concat(t,"deg) ")),i&&(r+="rotateX(".concat(i,"deg) ")),o&&(r+="rotateY(".concat(o,"deg) ")),a&&(r+="skewX(".concat(a,"deg) ")),s&&(r+="skewY(".concat(s,"deg) "))}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+="scale(".concat(s,", ").concat(l,")")),r||"none"}const Tb=(e,t)=>e.depth-t.depth;class Nb{constructor(){this.children=[],this.isDirty=!1}add(e){Xv(this.children,e),this.isDirty=!0}remove(e){Zv(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Tb),this.isDirty=!1,this.children.forEach(e)}}const Fb=["","X","Y","Z"],Mb={visibility:"hidden"};let Lb=0;const Ib={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Db(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function zb(e){let{attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:i,resetTransform:o}=e;return class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=Lb++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!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.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,Ib.totalNodes=Ib.resolvedTargetDeltas=Ib.recalculatedProjection=0,this.nodes.forEach(Vb),this.nodes.forEach(Zb),this.nodes.forEach(Yb),this.nodes.forEach(Hb),e=Ib,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=t?t.root||t:this,this.path=t?[...t.path,t]:[],this.parent=t,this.depth=t?t.depth+1:0;for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new Nb)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Yv),this.eventHandlers.get(e).add(t)}notifyListeners(e){const t=this.eventHandlers.get(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t&&t.notify(...r)}hasListeners(e){return this.eventHandlers.has(e)}mount(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:i,layout:o,visualElement:a}=this.options;if(a&&!a.current&&a.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||i)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=Ig.now(),r=i=>{let{timestamp:o}=i;const a=o-n;a>=t&&(Zp(r),e(a-t))};return Xp.read(r,!0),()=>Zp(r)}(r,250),ib.hasAnimatedSinceResize&&(ib.hasAnimatedSinceResize=!1,this.nodes.forEach(Xb))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n,hasRelativeTargetChanged:r,layout:i}=e;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||nx,{onLayoutAnimationStart:s,onLayoutAnimationComplete:l}=a.getProps(),u=!this.targetLayout||!jb(this.targetLayout,i)||r,c=!n&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,c);const e={...Ag(o,"layout"),onPlay:s,onComplete:l};(a.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else n||Xb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Zp(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes&&this.nodes.forEach(Qb),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i<this.path.length;i++){const e=this.path[i];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Gb);this.isUpdating||this.nodes.forEach(qb),this.isUpdating=!1,this.nodes.forEach(Kb),this.nodes.forEach(Bb),this.nodes.forEach(Ub),this.clearAllSnapshots();const e=Ig.now();Yp.delta=Jh(0,1e3/60,e-Yp.timestamp),Yp.timestamp=e,Yp.isProcessing=!0,Qp.update.process(Yp),Qp.preRender.process(Yp),Qp.render.process(Yp),Yp.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yh.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(Wb),this.sharedNodes.forEach($b)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xp.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xp.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Fy(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:i(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Pb(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||zy(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),ox((r=n).x),ox(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return Fy();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Ky(t.x,n.offset.x),Ky(t.y,n.offset.y)),t}removeElementScroll(e){const t=Fy();xb(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){xb(t,e);const{scroll:n}=this.root;n&&(Ky(t.x,-n.offset.x),Ky(t.y,-n.offset.y))}Ky(t.x,i.offset.x),Ky(t.y,i.offset.y)}}return t}applyTransform(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Fy();xb(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&Qy(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),zy(e.latestValues)&&Qy(n,e.latestValues)}return zy(this.latestValues)&&Qy(n,this.latestValues),n}removeTransform(e){const t=Fy();xb(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!zy(e.latestValues))continue;Dy(e.latestValues)&&e.updateSnapshot();const r=Fy();xb(r,e.measurePageBox()),_b(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return zy(this.latestValues)&&_b(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){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}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Yp.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=Yp.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fy(),this.relativeTargetOrigin=Fy(),Py(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),xb(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=Fy(),this.targetWithTransforms=Fy()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,_y(a.x,s.x,l.x),_y(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):xb(this.target,this.layout.layoutBox),Gy(this.target,this.targetDelta)):xb(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fy(),this.relativeTargetOrigin=Fy(),Py(this.relativeTargetOrigin,this.target,e.target),xb(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ib.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Dy(this.parent.latestValues)&&!By(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Yp.timestamp&&(r=!1),r)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!o)return;xb(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=n.length;if(!i)return;let o,a;t.x=t.y=1;for(let s=0;s<i;s++){o=n[s],a=o.projectionDelta;const i=o.instance;i&&i.style&&"contents"===i.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Qy(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Gy(e,a)),r&&zy(o.latestValues)&&Qy(e,o.latestValues))}t.x=qy(t.x),t.y=qy(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=Fy());const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=Ny(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=Ny(),this.projectionDeltaWithTransform=Ny());const u=this.projectionTransform;ky(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Ab(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Ib.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},o=Ny();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=Fy(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(tx));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Jb(o.x,e.x,n),Jb(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Py(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){ex(e.x,t.x,n.x,r),ex(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Fy()),xb(d,this.relativeTarget)),s&&(this.animationValues=i,function(e,t,n,r,i,o){i?(e.opacity=gv(0,void 0!==n.opacity?n.opacity:1,mb(r)),e.opacityExit=gv(void 0!==t.opacity?t.opacity:1,0,vb(r))):o&&(e.opacity=gv(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let a=0;a<fb;a++){const i="border".concat(db[a],"Radius");let o=gb(t,i),s=gb(n,i);void 0===o&&void 0===s||(o||(o=0),s||(s=0),0===o||0===s||pb(o)===pb(s)?(e[i]=Math.max(gv(hb(o),hb(s),r),0),(cp.test(s)||cp.test(o))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=gv(t.rotate||0,n.rotate||0,r))}(i,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Zp(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xp.update((()=>{ib.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Wh(e)?e:Jv(e);return r.start(qv("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&ax(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Fy();const t=wy(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=wy(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}xb(t,n),Qy(t,i),ky(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Rb);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote(){let{needsReset:e,transition:t,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&Db("z",e,r,this.animationValues);for(let i=0;i<Fb.length;i++)Db("rotate".concat(Fb[i]),e,r,this.animationValues),Db("skew".concat(Fb[i]),e,r,this.animationValues);e.render();for(const i in r)e.setStaticValue(i,r[i]),this.animationValues&&(this.animationValues[i]=r[i]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Mb;const r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Wp(null===e||void 0===e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Wp(null===e||void 0===e?void 0:e.pointerEvents)||""),this.hasProjected&&!zy(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=Ab(this.projectionDeltaWithTransform,this.treeScale,a),i&&(r.transform=i(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin="".concat(100*s.origin,"% ").concat(100*l.origin,"% 0"),o.animationValues?r.opacity=o===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const u in Bh){if(void 0===a[u])continue;const{correct:e,applyTo:t}=Bh[u],n="none"===r.transform?a[u]:e(a[u],o);if(t){const e=t.length;for(let i=0;i<e;i++)r[t[i]]=n}else r[u]=n}return this.options.layoutId&&(r.pointerEvents=o===this?Wp(null===e||void 0===e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Gb),this.root.sharedNodes.clear()}}}function Bb(e){e.updateLayout()}function Ub(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?My((e=>{const r=o?n.measuredBox[e]:n.layoutBox[e],i=wy(r);r.min=t[e].min,r.max=r.min+i})):ax(i,n.layoutBox,t)&&My((r=>{const i=o?n.measuredBox[r]:n.layoutBox[r],a=wy(t[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=Ny();ky(a,t,n.layoutBox);const s=Ny();o?ky(s,e.applyTransform(r,!0),n.measuredBox):ky(s,t,n.layoutBox);const l=!Pb(a);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:o}=r;if(i&&o){const a=Fy();Py(a,n.layoutBox,i.layoutBox);const s=Fy();Py(s,t,o.layoutBox),jb(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Vb(e){Ib.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Hb(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Wb(e){e.clearSnapshot()}function Gb(e){e.clearMeasurements()}function qb(e){e.isLayoutDirty=!1}function Kb(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Xb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Zb(e){e.resolveTargetDelta()}function Yb(e){e.calcProjection()}function Qb(e){e.resetSkewAndRotation()}function $b(e){e.removeLeadSnapshot()}function Jb(e,t,n){e.translate=gv(t.translate,0,n),e.scale=gv(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ex(e,t,n,r){e.min=gv(t.min,n.min,r),e.max=gv(t.max,n.max,r)}function tx(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const nx={duration:.45,ease:[.4,0,.1,1]},rx=e=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ix=rx("applewebkit/")&&!rx("chrome/")?Math.round:Kp;function ox(e){e.min=ix(e.min),e.max=ix(e.max)}function ax(e,t,n){return"position"===e||"preserve-aspect"===e&&!Cy(Ob(t),Ob(n),.2)}const sx=zb({attachResizeListener:(e,t)=>eg(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lx={current:void 0},ux=zb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lx.current){const e=new sx({});e.mount(window),e.setOptions({layoutScroll:!0}),lx.current=e}return lx.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),cx={pan:{Feature:class extends fg{constructor(){super(...arguments),this.removePointerDownListener=Kp}onPointerDown(e){this.session=new py(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Jy(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rb(e),onStart:rb(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Xp.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=ig(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends fg{constructor(e){super(e),this.removeGroupControls=Kp,this.removeListeners=Kp,this.controls=new tb(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Kp}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ux,MeasureLayout:ub}};const dx=new WeakMap,fx=[...$g,fm,Sm],hx=Object.keys(Ah),px=hx.length,gx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],mx=_h.length;function vx(e){if(e)return!1!==e.options.allowProjection?e.projection:vx(e.parent)}class yx{scrapeMotionValuesFromProps(e,t,n){return{}}constructor(e){let{parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.resolveKeyframes=(e,t,n,r)=>new this.KeyframeResolver(e,t,n,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=om,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Xp.render(this.render,!1,!0);const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Eh(n),this.isVariantNode=Ph(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const e=d[f];void 0!==l[f]&&Wh(e)&&(e.set(l[f],!1),Kv(c)&&c.add(f))}}mount(e){this.current=e,dx.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),ih.current||oh(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rh.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;dx.delete(this.current),this.projection&&this.projection.unmount(),Zp(this.notifyUpdate),Zp(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){const n=Vh.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Xp.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r){let i,o,{children:a,...s}=e;for(let l=0;l<px;l++){const e=hx[l],{isEnabled:t,Feature:n,ProjectionNode:r,MeasureLayout:a}=Ah[e];r&&(i=r),t(s)&&(!this.features[e]&&n&&(this.features[e]=new n(this)),a&&(o=a))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){const{layoutId:e,layout:t,drag:n,dragConstraints:o,layoutScroll:a,layoutRoot:l}=s;this.projection=new i(this.latestValues,s["data-framer-portal-id"]?void 0:vx(this.parent)),this.projection.setOptions({layoutId:e,layout:t,alwaysMeasureLayout:Boolean(n)||o&&xh(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"===typeof t?t:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fy()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<gx.length;n++){const t=gx[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],a=n[i];if(Wh(o))e.addValue(i,o),Kv(r)&&r.add(i);else if(Wh(a))e.addValue(i,Jv(o,{owner:e})),Kv(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){const t=e.getValue(i);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(i);e.addValue(i,Jv(void 0!==t?t:o,{owner:e}))}}for(const i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const e={};for(let t=0;t<mx;t++){const n=_h[t],r=this.props[n];(Ch(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Jv(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return void 0!==r&&null!==r&&("string"===typeof r&&(Ug(r)||Dg(r))?r=parseFloat(r):!(e=>fx.find(Qg(e)))(r)&&Sm.test(t)&&(r=Rm(e,t)),this.setBaseTarget(e,Wh(r)?r.get():r)),Wh(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"===typeof n||"object"===typeof n){const i=Bp(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||Wh(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new Yv),this.events[e].add(t)}notify(e){if(this.events[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.events[e].notify(...n)}}}class bx extends yx{constructor(){super(...arguments),this.KeyframeResolver=Tm}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,t){let{vars:n,style:r}=t;delete n[e],delete r[e]}}class xx extends bx{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(Vh.has(t)){const e=Om(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),i=(Xh(t)?r.getPropertyValue(t):r[t])||0;return"string"===typeof i?i.trim():i}var n}measureInstanceViewportBox(e,t){let{transformPagePoint:n}=t;return $y(e,n)}build(e,t,n,r){vp(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ip(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Wh(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent="".concat(e))})))}renderInstance(e,t,n,r){Fp(e,t,n,r)}}class wx extends bx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Vh.has(t)){const e=Om(t);return e&&e.default||0}return t=Mp.has(t)?t:dh(t),e.getAttribute(t)}measureInstanceViewportBox(){return Fy()}scrapeMotionValuesFromProps(e,t,n){return Dp(e,t,n)}build(e,t,n,r){Op(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Lp(e,t,0,r)}mount(e){this.isSVGTag=Ap(e.tagName),super.mount(e)}}const Cx=(e,n)=>zh(e)?new wx(n,{enableHardwareAcceleration:!1}):new xx(n,{allowProjection:e!==t.Fragment,enableHardwareAcceleration:!0}),Sx={...fy,...Cg,...cx,...{layout:{ProjectionNode:ux,MeasureLayout:ub}}},kx=Ih(((e,t)=>function(e,t,n,r){let{forwardMotionProps:i=!1}=t;return{...zh(e)?$p:Jp,preloadedFeatures:n,useRender:Np(i),createVisualElement:r,Component:e}}(e,t,Sx,Cx)));const _x={collapsed:e=>({height:e?"auto":0,opacity:0,pointerEvents:"none",transitionEnd:{display:"none"}}),expanded:e=>({height:"auto",opacity:1,pointerEvents:"auto",display:"block"})},Ex={ease:[.16,1,.3,1],duration:.6};function Px(e){let{isCollapsed:n,className:r,children:i}=e;const o=function(){!ih.current&&oh();const[e]=(0,t.useState)(rh.current);return e}();return(0,_o.jsx)(_o.Fragment,{children:(0,_o.jsx)(kx.div,{initial:"collapsed",animate:n?"collapsed":"expanded",variants:_x,className:th()("overflow-hidden",r),transition:Ex,custom:o,children:i},"collapse")})}Symbol();const jx=Symbol();!function(e){let t,n;const r={getItem:r=>{var i,o;const a=e=>{if(t!==(e=e||"")){try{n=JSON.parse(e)}catch{return jx}t=e}return n},s=null!=(o=null==(i=e())?void 0:i.getItem(r))?o:null;return s instanceof Promise?s.then(a):a(s)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};"undefined"!==typeof window&&"function"===typeof window.addEventListener&&(r.subscribe=(e,t)=>{const n=n=>{n.key===e&&n.newValue&&t(JSON.parse(n.newValue))};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}})}((()=>"undefined"!==typeof window?window.localStorage:void 0));const Ox=()=>{const e=new WeakMap;return(t,n)=>{const r=((e,t)=>{do{const[n,...r]=t,i=e.get(n);if(!i)return;if(!r.length)return i[1];e=i[0],t=r}while(t.length)})(e,n);if(r)return r;const i=t();return((e,t,n)=>{do{const[r,...i]=t;let o=e.get(r);if(o||(o=[new WeakMap],e.set(r,o)),!i.length)return void(o[1]=n);e=o[0],t=i}while(t.length)})(e,n,i),i}},Rx=Ox();function Ax(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.is;return Rx((()=>{const r=Yf((()=>({}))),i=Yf((i=>{const o=t(i(e)),a=i(r);return"prev"in a&&n(a.prev,o)?a.prev:(a.prev=o,o)}));return i}),[e,t,n])}Ox();Ox();Ox(),Yf((()=>[]));!function(e){let t,n;const r={getItem:r=>{var i,o;const a=e=>{if(t!==(e=e||"")){try{n=JSON.parse(e)}catch{return jx}t=e}return n},s=null!=(o=null==(i=e())?void 0:i.getItem(r))?o:null;return s instanceof Promise?s.then(a):a(s)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};"undefined"!==typeof window&&"function"===typeof window.addEventListener&&(r.subscribe=(e,t)=>{const n=n=>{n.key===e&&n.newValue&&t(JSON.parse(n.newValue))};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}})}((()=>"undefined"!==typeof window?window.localStorage:void 0));Ox();function Tx(e){return Tx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tx(e)}function Nx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nx(Object(n),!0).forEach((function(t){Mx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mx(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Tx(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Tx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Tx(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lx=qs({displayName:"AlgoliaCurrentRefinements",$$type:"ais.currentRefinements",propTypes:{transformItems:M().func},getProvidedProps:function(e,t,n,r){var i=r.reduce((function(t,n){return"undefined"!==typeof n.items&&(e.clearsQuery||"query"!==n.id)?e.clearsQuery&&"query"===n.id&&""===n.items[0].currentRefinement?t:t.concat(n.items.map((function(e){return Fx(Fx({},e),{},{id:n.id,index:n.index})}))):t}),[]),o=e.transformItems?e.transformItems(i):i;return{items:o,canRefine:o.length>0}},refine:function(e,t,n){return(n instanceof Array?n.map((function(e){return e.value})):[n]).reduce((function(e,t){return t(e)}),t)}});function Ix(e){return Ix="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ix(e)}function Dx(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ix(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ix(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ix(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zx="refinementList";function Bx(e){return e.attribute}function Ux(e,t,n){var r=nl(e,t,n,"".concat(zx,".").concat(Bx(e)),[]);return"string"!==typeof r?r:r?[r]:[]}function Vx(e,t,n,r){var i=Ux(t,n,r);return-1===i.indexOf(e)?i.concat([e]):i.filter((function(t){return t!==e}))}function Hx(e){var t=e.showMore,n=e.limit,r=e.showMoreLimit;return t?r:n}function Wx(e,t,n,r){return el(t,Dx({},Bx(e),n.length>0?n:""),r,!0,zx)}var Gx=["isRefined","count:desc","name:asc"];const qx=qs({displayName:"AlgoliaRefinementList",$$type:"ais.refinementList",propTypes:{id:M().string,attribute:M().string.isRequired,operator:M().oneOf(["and","or"]),showMore:M().bool,limit:M().number,showMoreLimit:M().number,defaultRefinement:M().arrayOf(M().oneOfType([M().string,M().number])),searchable:M().bool,transformItems:M().func,facetOrdering:M().bool},defaultProps:{operator:"or",showMore:!1,limit:10,showMoreLimit:20,facetOrdering:!0},getProvidedProps:function(e,t,n,r,i){var o=e.attribute,a=e.searchable,s=e.indexContextValue,l=e.facetOrdering,u=$s(n,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),c=Boolean(u)&&Boolean(u.getFacetByName(o)),d=Boolean(i&&i[o]&&""!==i.query);if(a&&s)throw new Error("react-instantsearch: searching in *List is not available when used inside a multi index context");if(!c)return{items:[],currentRefinement:Ux(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:c,isFromSearch:d,searchable:a};var f=d?i[o].map((function(n){return{label:n.value,value:Vx(n.escapedValue,e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),_highlightResult:{label:{value:n.highlighted}},count:n.count,isRefined:n.isRefined}})):u.getFacetValues(o,{sortBy:Gx,facetOrdering:l}).map((function(n){return{label:n.name,value:Vx(n.escapedValue,e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),count:n.count,isRefined:n.isRefined}})),h=e.transformItems?e.transformItems(f):f;return{items:h.slice(0,Hx(e)),currentRefinement:Ux(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isFromSearch:d,searchable:a,canRefine:h.length>0}},refine:function(e,t,n){return Wx(e,t,n,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},searchForFacetValues:function(e,t,n){return{facetName:e.attribute,query:n,maxFacetHits:Hx(e)}},cleanUp:function(e,t){return function(e,t,n){return rl(t,n,"".concat(zx,".").concat(Bx(e)))}(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},getSearchParameters:function(e,t,n){var r=t.attribute,i="and"===t.operator?"addFacet":"addDisjunctiveFacet",o="".concat(i,"Refinement");return e=(e=e.setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,Hx(t))}))[i](r),Ux(t,n,{ais:t.contextValue,multiIndexContext:t.indexContextValue}).reduce((function(e,t){return e[o](r,t)}),e)},getMetadata:function(e,t){var n=Bx(e),r={ais:e.contextValue,multiIndexContext:e.indexContextValue};return{id:n,index:Qs(r),items:Ux(e,t,r).length>0?[{attribute:e.attribute,label:"".concat(e.attribute,": "),currentRefinement:Ux(e,t,r),value:function(t){return Wx(e,t,[],r)},items:Ux(e,t,r).map((function(n){return{label:(i="".concat(n),i.replace(/^\\-/,"-")),value:function(i){var o=Ux(e,i,r).filter((function(e){return e!==n}));return Wx(e,t,o,r)}};var i}))}]:[]}}});function Kx(e){return function(e){if(Array.isArray(e))return Xx(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Xx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xx(e,t)}(e)||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 Xx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ais";return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.filter((function(e){return e||""===e})).map((function(n){var r="".concat(t,"-").concat(e);return n?"".concat(r,"-").concat(n):r}));return th()(o)}},Yx=function(e){return 0===e.length?"":"".concat(e[0].toUpperCase()).concat(e.slice(1))};function Qx(e){var t=e.start,n=void 0===t?0:t,r=e.end,i=e.step,o=void 0===i?1:i,a=0===o?1:o,s=Math.round((r-n)/a);return Kx(Array(s)).map((function(e,t){return(n+t)*a}))}function $x(e){return $x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$x(e)}function Jx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ow(r.key),r)}}function ew(e,t){return ew=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ew(e,t)}function tw(e){var t=function(){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($o){return!1}}();return function(){var n,r=rw(e);if(t){var i=rw(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$x(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nw(e)}(this,n)}}function nw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rw(e){return rw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rw(e)}function iw(e,t,n){return(t=ow(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ow(e){var t=function(e,t){if("object"!==$x(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$x(t)?t:String(t)}var aw=Zx("Panel"),sw=(0,t.createContext)((function(){})),lw=sw.Consumer,uw=sw.Provider,cw=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ew(e,t)}(a,e);var n,r,i,o=tw(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return iw(nw(e=o.call.apply(o,[this].concat(n))),"state",{canRefine:!0}),iw(nw(e),"setCanRefine",(function(t){e.setState({canRefine:t})})),e}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.children,r=e.className,i=e.header,o=e.footer,a=this.state.canRefine;return t.createElement("div",{className:th()(aw("",!a&&"-noRefinement"),r)},i&&t.createElement("div",{className:aw("header")},i),t.createElement("div",{className:aw("body")},t.createElement(uw,{value:this.setCanRefine},n)),o&&t.createElement("div",{className:aw("footer")},o))}}],r&&Jx(n.prototype,r),i&&Jx(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);iw(cw,"propTypes",{children:M().node.isRequired,className:M().string,header:M().node,footer:M().node}),iw(cw,"defaultProps",{className:"",header:null,footer:null});function dw(e){return dw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dw(e)}function fw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mw(r.key),r)}}function hw(e,t){return hw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hw(e,t)}function pw(e){var t=function(){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($o){return!1}}();return function(){var n,r=gw(e);if(t){var i=gw(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===dw(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function gw(e){return gw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gw(e)}function mw(e){var t=function(e,t){if("object"!==dw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==dw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dw(t)?t:String(t)}var vw=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hw(e,t)}(o,e);var t,n,r,i=pw(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"componentDidMount",value:function(){this.props.setCanRefine(this.props.canRefine)}},{key:"componentDidUpdate",value:function(e){e.canRefine!==this.props.canRefine&&this.props.setCanRefine(this.props.canRefine)}},{key:"render",value:function(){return this.props.children}}])&&fw(t.prototype,n),r&&fw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(t.Component);!function(e,t,n){(t=mw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(vw,"propTypes",{children:M().node.isRequired,canRefine:M().bool.isRequired,setCanRefine:M().func.isRequired});var yw=function(e){var n=e.canRefine,r=e.children;return t.createElement(lw,null,(function(e){return t.createElement(vw,{setCanRefine:e,canRefine:n},r)}))};yw.propTypes={canRefine:M().bool.isRequired,children:M().node.isRequired};const bw=yw;function xw(e){return xw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xw(e)}function ww(){return ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ww.apply(this,arguments)}function Cw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pw(r.key),r)}}function Sw(e,t){return Sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sw(e,t)}function kw(e){var t=function(){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($o){return!1}}();return function(){var n,r=Ew(e);if(t){var i=Ew(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===xw(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _w(e)}(this,n)}}function _w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ew(e){return Ew=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ew(e)}function Pw(e){var t=function(e,t){if("object"!==xw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==xw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xw(t)?t:String(t)}function jw(e){return function(n){var r,i=function(r){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sw(e,t)}(l,r);var i,o,a,s=kw(l);function l(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return function(e,t,n){(t=Pw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(_w(t=s.call.apply(s,[this].concat(r))),"translate",(function(n){var r=t.props.translations,i=r&&r.hasOwnProperty(n)?r[n]:e[n];if("function"===typeof i){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return i.apply(void 0,a)}return i})),t}return i=l,(o=[{key:"render",value:function(){return t.createElement(n,ww({translate:this.translate},this.props))}}])&&Cw(i.prototype,o),a&&Cw(i,a),Object.defineProperty(i,"prototype",{writable:!1}),l}(t.Component),o=n.displayName||n.name||"UnknownComponent";return i.displayName="Translatable(".concat(o,")"),i.propTypes={translations:(r=Object.keys(e),function(e,t,n){var i=e[t];if(i)for(var o=0,a=Object.keys(i);o<a.length;o++){var s=a[o];if(-1===r.indexOf(s))return new Error("Unknown `".concat(t,"` key `").concat(s,"`. Check the render method ")+"of `".concat(n,"`."))}})},i}}var Ow={highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>"};function Rw(e){var t=e.preTag,n=e.postTag,r=e.highlightedValue,i=(void 0===r?"":r).split(t),o=i.shift(),a=""===o?[]:[{value:o,isHighlighted:!1}];if(n===t){var s=!0;i.forEach((function(e){a.push({value:e,isHighlighted:s}),s=!s}))}else i.forEach((function(e){var t=e.split(n);a.push({value:t[0],isHighlighted:!0}),""!==t[1]&&a.push({value:t[1],isHighlighted:!1})}));return a}function Aw(e){var t=e.preTag,n=void 0===t?"<em>":t,r=e.postTag,i=void 0===r?"</em>":r,o=e.highlightProperty,a=e.attribute,s=e.hit;if(!s)throw new Error("`hit`, the matching record, must be provided");var l=function(e,t){return(Array.isArray(t)?t:t.replace(/\[(\d+)]/g,".$1").split(".")).reduce((function(e,t){return e?e[t]:void 0}),e)}(s[o],a)||{};return Array.isArray(l)?l.map((function(e){return Rw({preTag:n,postTag:i,highlightedValue:e.value})})):Rw({preTag:n,postTag:i,highlightedValue:l.value})}var Tw=function(e){var t=e.attribute,n=e.hit,r=e.highlightProperty,i=e.preTag,o=void 0===i?Ow.highlightPreTag:i,a=e.postTag;return Aw({attribute:t,highlightProperty:r,hit:n,preTag:o,postTag:void 0===a?Ow.highlightPostTag:a})};const Nw=qs({displayName:"AlgoliaHighlighter",$$type:"ais.highlighter",propTypes:{},getProvidedProps:function(){return{highlight:Tw}}});var Fw=function(e){var n=e.cx,r=e.value,i=e.highlightedTagName,o=e.isHighlighted,a=e.nonHighlightedTagName,s=o?i:a,l=o?"highlighted":"nonHighlighted";return t.createElement(s,{className:n(l)},r)};Fw.propTypes={cx:M().func.isRequired,value:M().string.isRequired,isHighlighted:M().bool.isRequired,highlightedTagName:M().string.isRequired,nonHighlightedTagName:M().string.isRequired};var Mw=function(e){var n=e.cx,r=e.hit,i=e.attribute,o=e.highlight,a=e.highlightProperty,s=e.tagName,l=e.nonHighlightedTagName,u=e.separator,c=e.className,d=o({hit:r,attribute:i,highlightProperty:a});return t.createElement("span",{className:th()(n(""),c)},d.map((function(e,r){if(Array.isArray(e)){var i=r===d.length-1;return t.createElement("span",{key:r},e.map((function(e,r){return t.createElement(Fw,{cx:n,key:r,value:e.value,highlightedTagName:s,nonHighlightedTagName:l,isHighlighted:e.isHighlighted})})),!i&&t.createElement("span",{className:n("separator")},u))}return t.createElement(Fw,{cx:n,key:r,value:e.value,highlightedTagName:s,nonHighlightedTagName:l,isHighlighted:e.isHighlighted})})))};Mw.propTypes={cx:M().func.isRequired,hit:M().object.isRequired,attribute:M().oneOfType([M().arrayOf(M().string),M().string]).isRequired,highlight:M().func.isRequired,highlightProperty:M().string.isRequired,tagName:M().string,nonHighlightedTagName:M().string,className:M().string,separator:M().node},Mw.defaultProps={tagName:"em",nonHighlightedTagName:"span",className:"",separator:", "};const Lw=Mw;function Iw(){return Iw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iw.apply(this,arguments)}var Dw=Zx("Highlight");const zw=Nw((function(e){return t.createElement(Lw,Iw({},e,{highlightProperty:"_highlightResult",cx:Dw}))}),{$$widgetType:"ais.highlight"});function Bw(e){return Bw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bw(e)}function Uw(){return Uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uw.apply(this,arguments)}function Vw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vw(Object(n),!0).forEach((function(t){Zw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ww(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yw(r.key),r)}}function Gw(e,t){return Gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gw(e,t)}function qw(e){var t=function(){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($o){return!1}}();return function(){var n,r=Xw(e);if(t){var i=Xw(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Bw(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Kw(e)}(this,n)}}function Kw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xw(e){return Xw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xw(e)}function Zw(e,t,n){return(t=Yw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yw(e){var t=function(e,t){if("object"!==Bw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Bw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Bw(t)?t:String(t)}var Qw=Zx("SearchBox"),$w=t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",className:Qw("loadingIcon"),"aria-hidden":"true"},t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},t.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),t.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},t.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),Jw=t.createElement("svg",{className:Qw("resetIcon"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},t.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"})),eC=t.createElement("svg",{className:Qw("submitIcon"),xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},t.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"})),tC=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gw(e,t)}(a,e);var n,r,i,o=qw(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Zw(Kw(t=o.call(this)),"getQuery",(function(){return t.props.searchAsYouType?t.props.currentRefinement:t.state.query})),Zw(Kw(t),"onInputMount",(function(e){t.input=e,t.props.inputRef&&("function"===typeof t.props.inputRef?t.props.inputRef(e):t.props.inputRef.current=e)})),Zw(Kw(t),"onKeyDown",(function(e){if(t.props.focusShortcuts){var n=t.props.focusShortcuts.map((function(e){return"string"===typeof e?e.toUpperCase().charCodeAt(0):e})),r=e.target||e.srcElement,i=r.tagName;if(!r.isContentEditable&&"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i){var o=e.which||e.keyCode;-1!==n.indexOf(o)&&(t.input.focus(),e.stopPropagation(),e.preventDefault())}}})),Zw(Kw(t),"onSubmit",(function(e){e.preventDefault(),e.stopPropagation(),t.input.blur();var n=t.props,r=n.refine;return n.searchAsYouType||r(t.getQuery()),!1})),Zw(Kw(t),"onChange",(function(e){var n=t.props,r=n.searchAsYouType,i=n.refine,o=n.onChange,a=e.target.value;r?i(a):t.setState({query:a}),o&&o(e)})),Zw(Kw(t),"onReset",(function(e){var n=t.props,r=n.searchAsYouType,i=n.refine,o=n.onReset;i(""),t.input.focus(),r||t.setState({query:""}),o&&o(e)})),t.state={query:e.searchAsYouType?null:e.currentRefinement},t}return n=a,r=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"componentDidUpdate",value:function(e){this.props.searchAsYouType||e.currentRefinement===this.props.currentRefinement||this.setState({query:this.props.currentRefinement})}},{key:"render",value:function(){var e=this,n=this.props,r=n.className,i=n.inputId,o=n.translate,a=n.autoFocus,s=n.loadingIndicator,l=n.submit,u=n.reset,c=this.getQuery(),d=Object.keys(this.props).reduce((function(t,n){return-1===["onsubmit","onreset","onchange"].indexOf(n.toLowerCase())&&0===n.indexOf("on")?Hw(Hw({},t),{},Zw({},n,e.props[n])):t}),{}),f=this.props.showLoadingIndicator&&this.props.isSearchStalled;return t.createElement("div",{className:th()(Qw(""),r)},t.createElement("form",{ref:this.props.formRef,noValidate:!0,onSubmit:this.props.onSubmit?this.props.onSubmit:this.onSubmit,onReset:this.onReset,className:Qw("form",f&&"form--stalledSearch"),action:"",role:"search"},t.createElement("input",Uw({ref:this.onInputMount,id:i,type:"search",placeholder:o("placeholder"),autoFocus:a,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",required:!0,maxLength:"512",value:c,onChange:this.onChange},d,{className:Qw("input")})),t.createElement("button",{type:"submit",title:o("submitTitle"),className:Qw("submit")},l),t.createElement("button",{type:"reset",title:o("resetTitle"),className:Qw("reset"),hidden:!c||f},u),this.props.showLoadingIndicator&&t.createElement("span",{hidden:!f,className:Qw("loadingIndicator")},s)))}}],r&&Ww(n.prototype,r),i&&Ww(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);Zw(tC,"propTypes",{currentRefinement:M().string,className:M().string,refine:M().func.isRequired,translate:M().func.isRequired,loadingIndicator:M().node,reset:M().node,submit:M().node,focusShortcuts:M().arrayOf(M().oneOfType([M().string,M().number])),autoFocus:M().bool,searchAsYouType:M().bool,onSubmit:M().func,onReset:M().func,onChange:M().func,isSearchStalled:M().bool,showLoadingIndicator:M().bool,formRef:M().oneOfType([M().func,M().exact({current:M().object})]),inputRef:M().oneOfType([M().func,M().exact({current:M().object})]),inputId:M().string}),Zw(tC,"defaultProps",{currentRefinement:"",className:"",focusShortcuts:["s","/"],autoFocus:!1,searchAsYouType:!0,showLoadingIndicator:!1,isSearchStalled:!1,loadingIndicator:$w,reset:Jw,submit:eC});const nC=jw({resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here\u2026"})(tC);function rC(e){return rC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rC(e)}function iC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cC(r.key),r)}}function oC(e,t){return oC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oC(e,t)}function aC(e){var t=function(){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($o){return!1}}();return function(){var n,r=lC(e);if(t){var i=lC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rC(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sC(e)}(this,n)}}function sC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lC(e){return lC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lC(e)}function uC(e,t,n){return(t=cC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cC(e){var t=function(e,t){if("object"!==rC(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rC(t)?t:String(t)}var dC=M().arrayOf(M().shape({value:M().any,label:M().node.isRequired,items:function(){return dC.apply(void 0,arguments)}})),fC=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oC(e,t)}(a,e);var n,r,i,o=aC(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),uC(sC(e=o.call(this)),"onShowMoreClick",(function(){e.setState((function(e){return{extended:!e.extended}}))})),uC(sC(e),"getLimit",(function(){var t=e.props,n=t.limit,r=t.showMoreLimit;return e.state.extended?r:n})),uC(sC(e),"resetQuery",(function(){e.setState({query:""})})),uC(sC(e),"renderItem",(function(n,r){var i=n.items&&Boolean(n.items.length);return t.createElement("li",{key:n.key||n.label,className:e.props.cx("item",n.isRefined&&"item--selected",n.noRefinement&&"item--noRefinement",i&&"item--parent")},e.props.renderItem(n,r),i&&t.createElement("ul",{className:e.props.cx("list","list--child")},n.items.slice(0,e.getLimit()).map((function(t){return e.renderItem(t,n)}))))})),e.state={extended:!1,query:""},e}return n=a,r=[{key:"renderShowMore",value:function(){var e=this.props,n=e.showMore,r=e.translate,i=e.cx,o=this.state.extended,a=this.props.limit>=this.props.items.length;return n?t.createElement("button",{disabled:a,className:i("showMore",a&&"showMore--disabled"),onClick:this.onShowMoreClick},r("showMore",o)):null}},{key:"renderSearchBox",value:function(){var e=this,n=this.props,r=n.cx,i=n.searchForItems,o=n.isFromSearch,a=n.translate,s=n.items,l=n.selectItem,u=0===s.length&&""!==this.state.query?t.createElement("div",{className:r("noResults")},a("noResults")):null;return t.createElement("div",{className:r("searchBox")},t.createElement(nC,{currentRefinement:this.state.query,refine:function(t){e.setState({query:t}),i(t)},focusShortcuts:[],translate:a,onSubmit:function(t){t.preventDefault(),t.stopPropagation(),o&&s.length>0&&l(s[0],e.resetQuery)}}),u)}},{key:"render",value:function(){var e=this,n=this.props,r=n.cx,i=n.items,o=n.className,a=n.searchable,s=n.canRefine,l=a?this.renderSearchBox():null,u=th()(r("",!s&&"-noRefinement"),o);return 0===i.length?t.createElement("div",{className:u},l):t.createElement("div",{className:u},l,t.createElement("ul",{className:r("list",!s&&"list--noRefinement")},i.slice(0,this.getLimit()).map((function(t){return e.renderItem(t,e.resetQuery)}))),this.renderShowMore())}}],r&&iC(n.prototype,r),i&&iC(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);uC(fC,"propTypes",{cx:M().func.isRequired,translate:M().func,items:dC,renderItem:M().func.isRequired,selectItem:M().func,className:M().string,showMore:M().bool,limit:M().number,showMoreLimit:M().number,show:M().func,searchForItems:M().func,searchable:M().bool,isFromSearch:M().bool,canRefine:M().bool}),uC(fC,"defaultProps",{className:"",isFromSearch:!1});const hC=fC;function pC(e){return pC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pC(e)}function gC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wC(r.key),r)}}function mC(e,t){return mC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mC(e,t)}function vC(e){var t=function(){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($o){return!1}}();return function(){var n,r=bC(e);if(t){var i=bC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pC(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yC(e)}(this,n)}}function yC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bC(e){return bC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bC(e)}function xC(e,t,n){return(t=wC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wC(e){var t=function(e,t){if("object"!==pC(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pC(t)?t:String(t)}var CC=Zx("RefinementList"),SC=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mC(e,t)}(a,e);var n,r,i,o=vC(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return xC(yC(e=o.call.apply(o,[this].concat(r))),"state",{query:""}),xC(yC(e),"selectItem",(function(t,n){n(),e.props.refine(t.value)})),xC(yC(e),"renderItem",(function(n,r){var i=e.props.isFromSearch?t.createElement(zw,{attribute:"label",hit:n}):n.label;return t.createElement("label",{className:CC("label")},t.createElement("input",{className:CC("checkbox"),type:"checkbox",checked:n.isRefined,onChange:function(){return e.selectItem(n,r)}}),t.createElement("span",{className:CC("labelText")},i)," ",t.createElement("span",{className:CC("count")},n.count.toLocaleString()))})),e}return n=a,(r=[{key:"render",value:function(){var e=this.props,n=e.translate,r=e.items,i=e.showMore,o=e.limit,a=e.showMoreLimit,s=e.isFromSearch,l=e.searchForItems,u=e.searchable,c=e.canRefine,d=e.className;return t.createElement(hC,{renderItem:this.renderItem,selectItem:this.selectItem,cx:CC,translate:n,items:r,showMore:i,limit:o,showMoreLimit:a,isFromSearch:s,searchForItems:l,searchable:u,canRefine:c,className:d,query:this.state.query})}}])&&gC(n.prototype,r),i&&gC(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);xC(SC,"propTypes",{translate:M().func.isRequired,refine:M().func.isRequired,searchForItems:M().func.isRequired,searchable:M().bool,createURL:M().func.isRequired,items:M().arrayOf(M().shape({label:M().string.isRequired,value:M().arrayOf(M().string).isRequired,count:M().number.isRequired,isRefined:M().bool.isRequired})),isFromSearch:M().bool.isRequired,canRefine:M().bool.isRequired,showMore:M().bool,limit:M().number,showMoreLimit:M().number,transformItems:M().func,className:M().string}),xC(SC,"defaultProps",{className:""});const kC=jw({showMore:function(e){return e?"Show less":"Show more"},noResults:"No results",submit:null,reset:null,resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here\u2026"})(SC);const _C=qx((function(e){return t.createElement(bw,e,t.createElement(kC,e))}),{$$widgetType:"ais.refinementList"});function EC(e){var t;return null!==e&&void 0!==e&&e.attributes?null===(t=e.options)||void 0===t?void 0:t.attributes.join(":"):null===e||void 0===e?void 0:e.attribute}function PC(e){const t=e.widgets,n=[];return null!==t&&void 0!==t&&t.length?t.forEach((e=>n.push(EC(e)))):n.push(EC(e)),n.join(":")}function jC(e){return null===e||void 0===e?void 0:e.attribute}function OC(e){const t=null===e||void 0===e?void 0:e.widgets,n=[];return null!==t&&void 0!==t&&t.length?t.forEach((e=>n.push(jC(e)))):n.push(jC(e)),n}const RC=Yf((e=>Boolean(Object.values(e(AC)).find((e=>!0===e)))),((e,t,n)=>{const r=n(e(RC));var i,o;t(AC,(i=e(AC),o=r,Object.keys(i).reduce(((e,t)=>({...e,[t]:o})),{})))})),AC=Yf({});function TC(e){let{children:n,onToggle:r,panelId:i,...o}=e;const a=(0,t.useCallback)((()=>r(i)),[r,i]);return(0,_o.jsx)(DC,{onToggle:a,...o,children:n})}function NC(e){var n,r;let{dynamicWidgets:i=!0,onApply:o,disjunctiveFacets:a}=e;const s=Nr((e=>e)),{settings:l}=s,{refinements:u}=l,[c,d]=Jf(AC),[f,h]=Jf(RC),p=Ne(),g=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),{t:m}=Ml();(0,t.useEffect)((()=>{d((e=>({...e,...u.reduce(((e,t)=>({...e,[PC(t)]:!g||Boolean(t.isExpanded)})),{})})))}),[]);const v=(0,t.useCallback)((e=>{d((t=>({...t,[e]:!t[e]})))}),[d]),y=(0,t.useMemo)((()=>u.map((e=>(0,_o.jsx)(_C,{className:"box-refinement-list",attribute:e.attribute,...e.options,translations:{noResults:"No results",placeholder:""},transformItems:e=>(0,Yn.orderBy)(e,"label","desc")})))),[u]),b=(0,t.useMemo)((()=>y.map(((e,t)=>{const n=u[t],r=PC(n),i=OC(n);return e?(0,_o.jsx)(TC,{panelId:r,attributes:i,header:n.header,isOpened:g?!c[r]:c[r],onToggle:v,children:e},r):(0,_o.jsx)(_o.Fragment,{})}))),[y,u,v,c,g]),x=(0,t.useCallback)((()=>{h((e=>!e))}),[h]),w=()=>{o(),"/result"!==p.location.pathname&&p.push("/result")};return(0,_o.jsxs)(_o.Fragment,{children:[!g&&(0,_o.jsx)("div",{className:"wrap-main-header-panel",children:(0,_o.jsx)("div",{style:{cursor:"pointer",paddingBottom:"8px"},children:(0,_o.jsx)("div",{onClick:x,style:{display:"flex",justifyContent:"flex-end"},children:(0,_o.jsx)(Pf,{icon:f?"remove":"add",label:"".concat(m(f?"Collapse all":"Expand all")," ")})})})}),(0,_o.jsxs)("div",{children:[g&&(0,_o.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",position:"sticky",top:"0px",zIndex:100,background:"white",alignItems:"center"},children:(0,_o.jsx)(oi,{onClick:o,style:{width:"32px",height:"32px"},children:(0,_o.jsx)(Ho,{color:"#2B2C46"})})}),(0,_o.jsx)("div",{className:"box-center-filter",style:{...g?{paddingLeft:"24px",paddingRight:"24px",overflow:"auto",marginBottom:"12px"}:{}},children:(0,_o.jsx)(yf,{enabled:i,children:b})})]}),g&&(0,_o.jsxs)("div",{style:{position:"sticky",bottom:0,width:"100%",display:"flex"},children:[(0,_o.jsx)("div",{className:"text-white",style:{width:"100%",backgroundColor:null===(n=l.theme)||void 0===n?void 0:n.secondaryColor,fontWeight:500,fontSize:14,borderRadius:0,height:"66px",textTransform:"none",padding:"16px"},onClick:w,children:"Cancel"}),(0,_o.jsx)("div",{className:"text-white",style:{width:"100%",backgroundColor:null===(r=l.theme)||void 0===r?void 0:r.primaryColor,fontWeight:500,fontSize:14,borderRadius:0,height:"66px",textTransform:"none",padding:"16px"},onClick:w,children:"Apply filters"})]})]})}const FC=Yf({searchResults:void 0,isSearchStalled:void 0}),MC=Ax(FC,(e=>{let{searchResults:t}=e;return t}),ms());Ax(FC,(e=>{let{isSearchStalled:t}=e;return t}));function LC(e){let{searchResults:n,isSearchStalled:r}=e;const i=function(){return console.warn("[DEPRECATED]: use `useSetAtom` from `jotai` instead."),$f(...arguments)}(FC);return(0,t.useEffect)((()=>{i({searchResults:n,isSearchStalled:r})}),[i,n,r]),null}ul((0,t.memo)(LC,ms()));function IC(e){let{children:n,className:r,header:i,attributes:o=[],isOpened:a=!1,items:s,onToggle:l}=e;const u=function(){return console.warn("[DEPRECATED]: use `useAtomValue` from `jotai` instead."),Qf(...arguments)}(MC),c=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=(0,t.useMemo)((()=>[...(null===e||void 0===e?void 0:e.disjunctiveFacets)||[],...(null===e||void 0===e?void 0:e.hierarchicalFacets)||[]]),[e]);return(0,t.useMemo)((()=>{let e=!n.length;return r.forEach((t=>{null===n||void 0===n||n.forEach((n=>{t.name===n&&t.data&&(e=!0)}))})),e}),[r,n])}(u,o),d=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"});return(0,_o.jsx)("div",{children:(0,_o.jsxs)("div",{className:th()({hidden:!c},r),style:{borderTop:d?"":"1px solid #d3d4d8"},children:[(0,_o.jsxs)(oi,{className:"w-full flex items-center justify-between group","aria-expanded":a,style:{paddingLeft:"2px",paddingRight:"2px",paddingTop:d?"0px":"8px",paddingBottom:"8px",marginTop:"16px",marginBottom:"16px"},onClick:e=>{"function"===typeof l&&l(e)},children:[(0,_o.jsx)("div",{className:"flex items-center w-full subhead",children:(0,_o.jsx)("p",{style:{textTransform:"none",fontFamily:"Source Sans 3 !important",fontSize:14,fontWeight:"bold",lineHeight:"16px"},children:i||o[0]})}),!d&&(0,_o.jsx)(_o.Fragment,{children:a?(0,_o.jsx)(Cf,{}):(0,_o.jsx)(Ef,{})})]}),(0,_o.jsx)(Px,{isCollapsed:!a,children:(0,_o.jsx)("div",{className:"mt-4",children:n})})]})})}const DC=Lx((0,t.memo)(IC));function zC(e){const t={};return e.forEach((e=>{t[e]=(t[e]||0)+1})),Object.entries(t).map((e=>{let[t,n]=e;return{value:t,count:n}}))}const BC=e=>{const{postFilter:n}=Nr((e=>e.search)),r=(0,t.useMemo)((()=>((e,t)=>{const n={};return null===e||void 0===e||e.forEach((e=>{const r=e.filters||{},i=Object.keys(r);for(let o=0;o<i.length;o++){const e=i[o];let a=i.every((n=>{if(e!==n){const e=t[n]||{},i=r[n]||{},o=Object.keys(e).filter((t=>e[t]));return!((null===o||void 0===o?void 0:o.length)>0)||(null===o||void 0===o?void 0:o.some((e=>null===i||void 0===i?void 0:i.includes(e))))}return!0}));a&&(n[e]?n[e]=[...n[e],...r[e]]:n[e]=r[e])}})),n})(e,n)),[e,n]),i=(0,t.useMemo)((()=>{const e={};for(const t in r)r.hasOwnProperty(t)&&(e[t]=zC(r[t]));return e}),[r]);return Object.keys(n).forEach((e=>{const t=n[e];Object.keys(t).forEach((t=>{const n=i[e].some((e=>e.value===t));n||i[e].push({value:t,count:0})}))})),i};const UC=Yf((e=>Boolean(Object.values(e(VC)).find((e=>!0===e)))),((e,t,n)=>{const r=n(e(UC));var i,o;t(VC,(i=e(VC),o=r,Object.keys(i).reduce(((e,t)=>({...e,[t]:o})),{})))})),VC=Yf({});function HC(e){let{children:n,onToggle:r,panelId:i,...o}=e;const a=(0,t.useCallback)((()=>r(i)),[r,i]);return(0,_o.jsx)(DC,{onToggle:a,...o,children:n})}function WC(e){var n,r;let{dynamicWidgets:i=!0,onApply:o}=e;const a=Nr((e=>e)),{settings:s,search:{postFilter:l,results:u}}=a,{refinements:c}=s,[d,f]=Jf(VC),[h,p]=Jf(UC),g=Ne(),m=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),{t:v}=Ml(),y=Tr(),b=BC(u);(0,t.useEffect)((()=>{f((e=>({...e,...c.reduce(((e,t)=>({...e,[PC(t)]:Boolean(t.isExpanded)})),{})})))}),[]);const x=(0,t.useCallback)((e=>{f((t=>({...t,[e]:!t[e]})))}),[f]),w=(0,t.useMemo)((()=>c.map((e=>{const t=null===b||void 0===b?void 0:b[e.attribute];return(0,_o.jsx)("div",{style:{display:"flex",flexDirection:"column",rowGap:"16px",marginBottom:"8px"},children:null===t||void 0===t?void 0:t.map(((t,n)=>(0,_o.jsxs)("div",{style:{display:"flex",alignItems:"center",columnGap:"4px"},children:[(0,_o.jsx)(vf,{color:"primary",size:"small",style:{padding:"0px"},checked:!!(0,Yn.get)(l,"".concat(e.attribute,".").concat(t.value)),onChange:()=>{y(lr({[e.attribute]:t.value}))}}),(0,_o.jsx)("p",{style:{fontSize:"14px",paddingTop:"3px"},children:t.value}),(0,_o.jsxs)("p",{style:{fontSize:"14px",paddingTop:"3px"},children:["(",t.count,")"]})]},n)))})}))),[c,b,l,y]),C=(0,t.useMemo)((()=>w.map(((e,t)=>{const n=c[t],r=PC(n),i=OC(n);return e?(0,_o.jsx)(HC,{panelId:r,attributes:i,header:n.header,isOpened:m?!d[r]:d[r],onToggle:x,children:e},r):(0,_o.jsx)(_o.Fragment,{})}))),[w,c,x,d,m]),S=(0,t.useCallback)((()=>{p((e=>!e))}),[p]),k=()=>{o(),"/result"!==g.location.pathname&&g.push("/result")};return(0,_o.jsxs)(_o.Fragment,{children:[!m&&(0,_o.jsx)("div",{className:"wrap-main-header-panel",children:(0,_o.jsx)("div",{style:{cursor:"pointer",paddingBottom:"8px"},children:(0,_o.jsx)("div",{onClick:S,style:{display:"flex",justifyContent:"flex-end"},children:(0,_o.jsx)(Pf,{icon:h?"remove":"add",label:"".concat(v(h?"Collapse all":"Expand all")," ")})})})}),(0,_o.jsxs)("div",{children:[m&&(0,_o.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",position:"sticky",top:"0px",zIndex:100,background:"white",alignItems:"center"},children:(0,_o.jsx)(oi,{onClick:o,style:{width:"32px",height:"32px"},children:(0,_o.jsx)(Ho,{color:"#2B2C46"})})}),(0,_o.jsx)("div",{className:"box-center-filter",style:{...m?{paddingLeft:"24px",paddingRight:"24px",overflow:"auto",marginBottom:"12px"}:{}},children:(0,_o.jsx)(yf,{enabled:i,children:C})})]}),m&&(0,_o.jsxs)("div",{style:{position:"sticky",bottom:0,width:"100%",display:"flex"},children:[(0,_o.jsx)("div",{className:"text-white",style:{width:"100%",backgroundColor:null===(n=s.theme)||void 0===n?void 0:n.secondaryColor,fontWeight:500,fontSize:14,borderRadius:0,height:"66px",textTransform:"none",padding:"16px"},onClick:k,children:"Cancel"}),(0,_o.jsx)("div",{className:"text-white",style:{width:"100%",backgroundColor:null===(r=s.theme)||void 0===r?void 0:r.primaryColor,fontWeight:500,fontSize:14,borderRadius:0,height:"66px",textTransform:"none",padding:"16px"},onClick:k,children:"Apply filters"})]})]})}function GC(e){var t;const n=Nr((e=>e.settings));return(0,_o.jsxs)(_o.Fragment,{children:[n.algolia.enabled&&(0,_o.jsx)(NC,{disjunctiveFacets:null===e||void 0===e||null===(t=e.allSearchResults)||void 0===t?void 0:t.disjunctiveFacets,onApply:e.onApply}),!n.algolia.enabled&&(0,_o.jsx)(WC,{onApply:e.onApply})]})}const qC=ul((0,t.memo)(GC));const KC=function(e){let{children:n}=e;const r=Tr(),{search:i}=Nr((e=>e)),{preFilterDropdown:o,imageCaptureHelpModal:a}=i,[s,l]=(0,t.useState)(!1);return(0,_o.jsxs)(_o.Fragment,{children:[(0,_o.jsxs)("div",{className:"wrap-mobile",children:[(0,_o.jsx)("div",{className:"box-header-mobile-main",children:(0,_o.jsx)(Il,{onToggleFilterMobile:e=>{l((0,Yn.isUndefined)(e)?!s:e)}})}),(0,_o.jsx)("div",{style:{display:"flex",flexGrow:1,flexDirection:"column",overflowY:"auto",overflowX:"hidden",height:"100%",backgroundColor:"#fff"},children:n}),(0,_o.jsx)("div",{className:"footer-wrap-main",style:{zIndex:999},children:(0,_o.jsx)(cs,{})})]}),(0,_o.jsx)("div",{className:"box-filter ".concat(s?"open":"close"," "),style:{top:"0px",height:"100%",width:"100%",position:"absolute"},children:(0,_o.jsx)(qC,{onApply:()=>{l(!s)}})}),o&&(0,_o.jsx)("div",{className:"box-filter open",style:{top:"0px",height:"100%",width:"100%",zIndex:999,position:"absolute"},children:(0,_o.jsx)("div",{style:{width:"100%"},className:"wrap-filter-desktop",children:(0,_o.jsx)("div",{className:"bg-white box-filter-desktop isMobile",children:(0,_o.jsx)(Jd,{handleClose:()=>r(cr(!o))})})})}),a&&(0,_o.jsx)("div",{className:"box-filter open",style:{top:"0px",width:"100%",zIndex:100,position:"absolute"},children:(0,_o.jsx)("div",{style:{width:"100%"},className:"wrap-filter-desktop",children:(0,_o.jsx)("div",{className:"bg-white box-filter-desktop isMobile",children:(0,_o.jsx)(rf,{handleClose:()=>r(ar(!a))})})})})]})};var XC=n(5370),ZC=n.n(XC);const YC=()=>(0,_o.jsxs)("svg",{width:150,height:150,viewBox:"0 0 150 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"loading-spinner",children:[(0,_o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M75 150C116.421 150 150 116.421 150 75C150 33.5786 116.421 0 75 0C33.5786 0 0 33.5786 0 75C0 116.421 33.5786 150 75 150ZM75 140.367C111.101 140.367 140.367 111.101 140.367 75.0003C140.367 38.8991 111.101 9.63332 75 9.63332C38.8988 9.63332 9.63304 38.8991 9.63304 75.0003C9.63304 111.101 38.8988 140.367 75 140.367Z",fill:"url(#paint0_linear_2236_26778)"}),(0,_o.jsx)("defs",{children:(0,_o.jsxs)("linearGradient",{id:"paint0_linear_2236_26778",x1:75,y1:0,x2:75,y2:150,gradientUnits:"userSpaceOnUse",children:[(0,_o.jsx)("stop",{stopColor:"#3E36DC"}),(0,_o.jsx)("stop",{offset:.916667,stopColor:"#1E1F31"})]})})]}),QC=()=>{const{t:e}=Ml();return(0,_o.jsxs)("div",{className:"loadingSpinCT",style:{top:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,_o.jsx)("p",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontSize:16,color:"#fff",fontWeight:300},children:e("loading")}),(0,_o.jsx)(YC,{})]})},$C={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class JC{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||$C,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"===typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}create(e){return new JC(this.logger,{prefix:"".concat(this.prefix,":").concat(e,":"),...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new JC(this.logger,e)}}var eS=new JC;class tS{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let i=0;i<r;i++)t(...n)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((t=>{let[r,i]=t;for(let o=0;o<i;o++)r.apply(r,[e,...n])}))}}}function nS(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function rS(e){return null==e?"":""+e}const iS=/###/g;function oS(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(iS,"."):e}function i(){return!e||"string"===typeof e}const o="string"!==typeof t?t:t.split(".");let a=0;for(;a<o.length-1;){if(i())return{};const t=r(o[a]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return i()?{}:{obj:e,k:r(o[a])}}function aS(e,t,n){const{obj:r,k:i}=oS(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=oS(e,a,Object);for(;void 0===s.obj&&a.length;)o="".concat(a[a.length-1],".").concat(o),a=a.slice(0,a.length-1),s=oS(e,a,Object),s&&s.obj&&"undefined"!==typeof s.obj["".concat(s.k,".").concat(o)]&&(s.obj=void 0);s.obj["".concat(s.k,".").concat(o)]=n}function sS(e,t){const{obj:n,k:r}=oS(e,t);if(n)return n[r]}function lS(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):lS(e[r],t[r],n):e[r]=t[r]);return e}function uS(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var cS={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function dS(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(e=>cS[e])):e}const fS=[" ",",","?","!",";"],hS=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function pS(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||"object"!==typeof i)return;let e,t="";for(let a=o;a<r.length;++a)if(a!==o&&(t+=n),t+=r[a],e=i[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&a<r.length-1)continue;o+=a-o+1;break}i=e}return i}function gS(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class mS extends tS{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"===typeof n&&i?a.push(...n.split(i)):a.push(n)));const s=sS(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),s||!o||"string"!==typeof n?s:pS(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),aS(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)("string"===typeof n[i]||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=sS(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?lS(s,n,i):s={...s,...n},aS(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var vS={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))})),t}};const yS={};class bS extends tS{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=eS.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";const r=fS.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=hS.getRegExp("(".concat(r.map((e=>"?"===e?"\\?":e)).join("|"),")"));let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}(e,n,r);if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"===typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!==typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===typeof t&&(t={...t}),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:"".concat(s).concat(e).concat(o),usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:"".concat(s).concat(e).concat(o)}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const c=this.resolve(e,t);let d=c&&c.res;const f=c&&c.usedKey||o,h=c&&c.exactUsedKey||o,p=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&("string"!==typeof d&&"boolean"!==typeof d&&"number"!==typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0&&("string"!==typeof g||!Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):"key '".concat(o," (").concat(this.language,")' returned an object instead of string.");return r?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(i){const e=Array.isArray(d),n=e?[]:{},r=e?h:f;for(const o in d)if(Object.prototype.hasOwnProperty.call(d,o)){const e="".concat(r).concat(i).concat(o);n[o]=this.translate(e,{...t,joinArrays:!1,ns:a}),n[o]===e&&(n[o]=d[o])}d=n}}else if(m&&"string"===typeof g&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const u=void 0!==t.count&&"string"!==typeof t.count,f=bS.hasDefaultValue(t),h=u?this.pluralResolver.getSuffix(l,t.count,t):"",p=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]||t["defaultValue".concat(h)]||t["defaultValue".concat(p)]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(a=!0,d=o);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=f&&m!==d&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,o,y?m:d),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=f&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]&&n.indexOf("".concat(this.options.pluralSeparator,"zero"))<0&&n.push("".concat(this.options.pluralSeparator,"zero")),n.forEach((n=>{r([e],o+n,t["defaultValue".concat(n)]||m)}))})):r(e,o,m))}d=this.extendTranslation(d,e,t,c,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d="".concat(s,":").concat(o)),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(s,":").concat(o):o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"===typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&"string"!==typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s="string"===typeof a?[a]:a;return void 0!==e&&null!==e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=vS.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;n=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==a.count&&"string"!==typeof a.count,d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"===typeof a.context||"number"===typeof a.context)&&""!==a.context,h=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach((e=>{this.isValidLookup(t)||(o=e,!yS["".concat(h[0],"-").concat(e)]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(yS["".concat(h[0],"-").concat(e)]=!0,this.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((n=>{if(this.isValidLookup(t))return;i=n;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,n,e,a);else{let e;c&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t="".concat(this.options.pluralSeparator,"zero"),r="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(c&&(o.push(l+e),a.ordinal&&0===e.indexOf(r)&&o.push(l+e.replace(r,this.options.pluralSeparator)),d&&o.push(l+t)),f){const n="".concat(l).concat(this.options.contextSeparator).concat(a.context);o.push(n),c&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!==typeof e.replace;let r=n?e.replace:e;if(n&&"undefined"!==typeof e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function xS(e){return e.charAt(0).toUpperCase()+e.slice(1)}class wS{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=eS.create("languageUtils")}getScriptPartFromCode(e){if(!(e=gS(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=gS(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"===typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=xS(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=xS(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=xS(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"===typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"===typeof e&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let CS=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],SS={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const kS=["v1","v2","v3"],_S=["v4"],ES={zero:0,one:1,two:2,few:3,many:4,other:5};class PS{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=eS.create("pluralResolver"),this.options.compatibilityJSON&&!_S.includes(this.options.compatibilityJSON)||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return CS.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:SS[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(gS("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>"".concat(t).concat(e)))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>ES[e]-ES[t])).map((e=>"".concat(this.options.prepend).concat(t.ordinal?"ordinal".concat(this.options.prepend):"").concat(e))):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"===typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!kS.includes(this.options.compatibilityJSON)}}function jS(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,t,n){const r=sS(e,n);return void 0!==r?r:sS(t,n)}(e,t,n);return!o&&i&&"string"===typeof n&&(o=pS(e,n,r),void 0===o&&(o=pS(t,n,r))),o}class OS{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=eS.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:dS,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?uS(i):o||"{{",this.suffix=a?uS(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?uS(d):f||uS("$t("),this.nestingSuffix=h?uS(h):p||uS(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}const u=e=>{if(e.indexOf(this.formatSeparator)<0){const i=jS(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(jS(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>l(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?l(this.escape(e)):l(e)}].forEach((t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=u(n),void 0===o)if("function"===typeof c){const t=c(e,i,r);o="string"===typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(d){o=i[0];continue}this.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"===typeof o||this.useRawValueToEscape||(o=rS(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp("".concat(n,"[ ]*{")));let o="{".concat(r[1]);e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2===0&&!s||s.length%2!==0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch($o){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),$o),"".concat(e).concat(n).concat(o)}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&"string"!==typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,l=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&"string"!==typeof r)return r;"string"!==typeof r&&(r=rS(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce(((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function RS(e){const t={};return function(n,r,i){const o=r+JSON.stringify(i);let a=t[o];return a||(a=e(gS(r),i),t[o]=a),a(n)}}class AS{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=eS.create("formatter"),this.options=e,this.formats={number:RS(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:RS(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:RS(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:RS(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:RS(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=RS(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:i,formatOptions:o}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn("there was no format function for ".concat(i)),e}),e);return i}}class TS extends tS{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=eS.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a="".concat(e,"|").concat(t);!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:i,k:o}=oS(e,t,Object);i[o]=i[o]||[],r&&(i[o]=i[o].concat(n)),r||i[o].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*i,o)}),i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"===typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(l){a(l)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn("".concat(t,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&o&&this.logger.log("".concat(t,"loaded namespace ").concat(i," for language ").concat(r),o),this.loaded(e,n,o)}))}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(void 0!==n&&null!==n&&""!==n){if(this.backend&&this.backend.create){const l={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let i;i=5===u.length?u(e,t,n,r,l):u(e,t,n,r),i&&"function"===typeof i.then?i.then((e=>a(null,e))).catch(a):a(null,i)}catch(s){a(s)}else u(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function NS(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"===typeof e[1]&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===typeof e[2]||"object"===typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function FS(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function MS(){}class LS extends tS{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=FS(e),this.services={},this.logger=eS,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"===typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"===typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"===typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=NS();function i(e){return e?"function"===typeof e?new e:e:null}if(this.options={...r,...this.options,...FS(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?eS.init(i(this.modules.logger),this.options):eS.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!==typeof Intl&&(t=AS);const n=new wS(this.options);this.store=new mS(this.options.resources,this.options);const o=this.services;o.logger=eS,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new PS(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new OS(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new TS(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new bS(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=MS),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const o=nS(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:MS;const n="string"===typeof e?e:this.language;if("function"===typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=nS();return e||(e=this.languages),t||(t=this.options.ns),n||(n=MS),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&vS.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=nS();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"===typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{o(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!==typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||n||i.keyPrefix;const u=r.options.keySeparator||".";let c;return c=o.keyPrefix&&Array.isArray(e)?e.map((e=>"".concat(o.keyPrefix).concat(u).concat(e))):o.keyPrefix?"".concat(o.keyPrefix).concat(u).concat(e):e,r.t(c,o)};return"string"===typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=nS();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=nS();"string"===typeof e&&(e=[e]);const r=this.options.preload||[],i=e.filter((e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return i.length?(this.options.preload=r.concat(i),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new wS(NS());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new LS(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:MS;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new LS(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));return["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new mS(this.store.data,r),i.services.resourceStore=i.store),i.translator=new bS(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const IS=LS.createInstance();IS.createInstance=LS.createInstance;IS.createInstance,IS.dir,IS.init,IS.loadResources,IS.reloadResources,IS.use,IS.changeLanguage,IS.getFixedT,IS.t,IS.exists,IS.setDefaultNamespace,IS.hasLoadedNamespace,IS.loadNamespaces,IS.loadLanguages;var DS=n(1041),zS=n.n(DS),BS=n(5033),US=n.n(BS);const VS="6.40.4";var HS=["resultsFacetValues"],WS=["resultsFacetValues"],GS=["resultsFacetValues"];function qS(e){return qS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qS(e)}function KS(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function XS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XS(Object(n),!0).forEach((function(t){YS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==qS(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qS(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QS(e){"function"===typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("react (".concat(t.version,")")),e.addAlgoliaAgent("react-instantsearch (".concat(VS,")")))}var $S=function(e){return Js({ais:e.props.contextValue,multiIndexContext:e.props.indexContextValue})},JS=function(e,t){return e.props.indexContextValue.targetedIndex===t},ek=function(e){return Boolean(e.props.indexId)},tk=function(e,t){return e.props.indexId===t},nk=function(e,t){var n=ek(e),r=ek(t);return n&&!r?-1:!n&&r?1:0};function rk(e){return Object.keys(e).map((function(t){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(n[i++])}))}("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function ik(e){var t=e.indexName,n=e.initialState,r=void 0===n?{}:n,i=e.searchClient,o=e.resultsState,a=e.stalledSearchDelay,s=US()(i,t,ZS({},Ow));QS(i),s.on("search",(function(){c||(c=setTimeout((function(){var e=h.getState(),t=(e.resultsFacetValues,KS(e,GS));h.setState(ZS(ZS({},t),{},{isSearchStalled:!0}))}),a))})).on("result",v({indexId:t})).on("error",y);var l,u=!1,c=null,d=s.state,f=function(e){var t=[],n=!1;function r(){n||(n=!0,Os((function(){n=!1,e()})))}return{registerWidget:function(e){return t.push(e),r(),function(){t.splice(t.indexOf(e),1),r()}},update:r,getWidgets:function(){return t}}}((function(){var e=p(h.getState().widgets);h.setState(ZS(ZS({},h.getState()),{},{metadata:e,searching:!0})),m()}));!function(e,t){if(!t)return;if((!e.transporter||e._cacheHydrated)&&(!e._useCache||"function"!==typeof e.addAlgoliaAgent))return;if(e.transporter&&!e._cacheHydrated){e._cacheHydrated=!0;var n=e.search;e.search=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=t.map((function(e){return ZS(ZS({},e),{},{params:rk(e.params)})}));return e.transporter.responsesCache.get({method:"search",args:[a].concat(i)},(function(){return n.apply(void 0,[t].concat(i))}))}}if(Array.isArray(t.results))return void function(e,t){if(e.transporter)return void e.transporter.responsesCache.set({method:"search",args:[t.reduce((function(e,t){return e.concat(t.rawResults.map((function(e){return{indexName:e.index,params:e.params}})))}),[])]},{results:t.reduce((function(e,t){return e.concat(t.rawResults)}),[])});var n="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.reduce((function(e,t){return e.concat(t.rawResults.map((function(e){return{indexName:e.index,params:e.params}})))}),[])}));e.cache=ZS(ZS({},e.cache),{},YS({},n,JSON.stringify({results:t.reduce((function(e,t){return e.concat(t.rawResults)}),[])})))}(e,t.results);!function(e,t){if(e.transporter)return void e.transporter.responsesCache.set({method:"search",args:[t.rawResults.map((function(e){return{indexName:e.index,params:e.params}}))]},{results:t.rawResults});var n="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.rawResults.map((function(e){return{indexName:e.index,params:e.params}}))}));e.cache=ZS(ZS({},e.cache),{},YS({},n,JSON.stringify({results:t.rawResults})))}(e,t)}(i,o);var h=function(e){var t=e,n=[];return{getState:function(){return t},setState:function(e){t=e,n.forEach((function(e){return e()}))},subscribe:function(e){return n.push(e),function(){n.splice(n.indexOf(e),1)}}}}({widgets:r,metadata:ok(o),results:function(e){if(!e)return null;if(Array.isArray(e.results))return e.results.reduce((function(e,t){return ZS(ZS({},e),{},YS({},t._internalIndexId,new(US().SearchResults)(new(US().SearchParameters)(t.state),t.rawResults)))}),{});return new(US().SearchResults)(new(US().SearchParameters)(e.state),e.rawResults)}(o),error:null,searching:!1,isSearchStalled:!0,searchingForFacetValues:!1});function p(e){return f.getWidgets().filter((function(e){return Boolean(e.getMetadata)})).map((function(t){return t.getMetadata(e)}))}function g(){var e=f.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){return!$S(e)&&!ek(e)})).reduce((function(e,t){return t.getSearchParameters(e)}),d),n=f.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){var n=$S(e)&&JS(e,t),r=ek(e)&&tk(e,t);return n||r})).sort(nk).reduce((function(e,t){return t.getSearchParameters(e)}),e),r=f.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){var n=$S(e)&&!JS(e,t),r=ek(e)&&!tk(e,t);return n||r})).sort(nk).reduce((function(e,t){var n=$S(t)?t.props.indexContextValue.targetedIndex:t.props.indexId,r=e[n]||[];return ZS(ZS({},e),{},YS({},n,r.concat(t)))}),{});return{mainParameters:n,derivedParameters:Object.keys(r).map((function(t){return{parameters:r[t].reduce((function(e,t){return t.getSearchParameters(e)}),e),indexId:t}}))}}function m(){if(!u){var e=g(s.state),t=e.mainParameters,n=e.derivedParameters;l=n.length+1,s.derivedHelpers.slice().forEach((function(e){e.detach()})),n.forEach((function(e){var t=e.indexId,n=e.parameters;s.derive((function(){return n})).on("result",v({indexId:t})).on("error",y)})),s.setState(t),s.search()}}function v(e){var t=e.indexId;return function(e){l--;var n=h.getState(),r=!s.derivedHelpers.length,i=n.results?n.results:{};i=!r&&i.getFacetByName?{}:i,i=r?e.results:ZS(ZS({},i),{},YS({},t,e.results));var o=h.getState(),a=o.isSearchStalled;s.hasPendingRequests()||(clearTimeout(c),c=null,a=!1);o.resultsFacetValues;var u=KS(o,HS);h.setState(ZS(ZS({},u),{},{results:i,isSearchStalled:a,searching:l>0,error:null}))}}function y(e){var t=e.error,n=h.getState(),r=n.isSearchStalled;s.hasPendingRequests()||(clearTimeout(c),r=!1);n.resultsFacetValues;var i=KS(n,WS);h.setState(ZS(ZS({},i),{},{isSearchStalled:r,error:t,searching:!1}))}return{store:h,widgetsManager:f,getWidgetsIds:function(){return h.getState().metadata.reduce((function(e,t){return"undefined"!==typeof t.id?e.concat(t.id):e}),[])},getSearchParameters:g,onSearchForFacetValues:function(e){var t=e.facetName,n=e.query,r=e.maxFacetHits,i=void 0===r?10:r,o=Math.max(1,Math.min(i,100));h.setState(ZS(ZS({},h.getState()),{},{searchingForFacetValues:!0})),s.searchForFacetValues(t,n,o).then((function(e){var r;h.setState(ZS(ZS({},h.getState()),{},{error:null,searchingForFacetValues:!1,resultsFacetValues:ZS(ZS({},h.getState().resultsFacetValues),{},(r={},YS(r,t,e.facetHits),YS(r,"query",n),r))}))}),(function(e){h.setState(ZS(ZS({},h.getState()),{},{searchingForFacetValues:!1,error:e}))})).catch((function(e){setTimeout((function(){throw e}))}))},onExternalStateUpdate:function(e){var t=p(e);h.setState(ZS(ZS({},h.getState()),{},{widgets:e,metadata:t,searching:!0})),m()},transitionState:function(e){var t=h.getState().widgets;return f.getWidgets().filter((function(e){return Boolean(e.transitionState)})).reduce((function(e,n){return n.transitionState(t,e)}),e)},updateClient:function(e){QS(e),s.setClient(e),m()},updateIndex:function(e){d=d.setIndex(e)},clearCache:function(){s.clearCache(),m()},skipSearch:function(){u=!0}}}function ok(e){return e?e.metadata.map((function(e){return ZS(ZS({value:function(){return{}}},e),{},{items:e.items&&e.items.map((function(e){return ZS(ZS({value:function(){return{}}},e),{},{items:e.items&&e.items.map((function(e){return ZS({value:function(){return{}}},e)}))})}))})})):[]}function ak(e){return ak="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ak(e)}function sk(e,t){var n=document.createElement("meta"),r=document.querySelector("head");n.name="algolia:metadata";var i=function(e,t){var n=["contextValue","indexContextValue"],r=e.map((function(e){var t=e.props,r=e.constructor,i=r._connectorDesc||{},o=i.defaultProps,a=void 0===o?{}:o,s=i.displayName;return{displayName:void 0===s?r.displayName:s,$$type:r.$$type,$$widgetType:r.$$widgetType,params:Object.keys(t).filter((function(e){return!n.includes(e)&&a[e]!==t[e]&&void 0!==t[e]}))}})),i=t;return{ua:i.transporter&&i.transporter.userAgent?i.transporter.userAgent.value:i._ua,widgets:r}}(e,t);n.content=JSON.stringify(i),r.appendChild(n)}function lk(e){return lk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lk(e)}function uk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ck(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uk(Object(n),!0).forEach((function(t){mk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vk(r.key),r)}}function fk(e,t){return fk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fk(e,t)}function hk(e){var t=function(){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($o){return!1}}();return function(){var n,r=gk(e);if(t){var i=gk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lk(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pk(e)}(this,n)}}function pk(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gk(e){return gk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gk(e)}function mk(e,t,n){return(t=vk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vk(e){var t=function(e,t){if("object"!==lk(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lk(t)?t:String(t)}function yk(e){return Boolean(e.searchState)}var bk=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fk(e,t)}(a,e);var n,r,i,o=hk(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),mk(pk(t=o.call(this,e)),"cleanupTimerRef",null),mk(pk(t),"isUnmounting",!1);var n=ik({indexName:t.props.indexName,searchClient:t.props.searchClient,initialState:t.props.searchState||{},resultsState:t.props.resultsState,stalledSearchDelay:t.props.stalledSearchDelay}),r={store:n.store,widgetsManager:n.widgetsManager,mainTargetedIndex:t.props.indexName,onInternalStateUpdate:t.onWidgetsInternalStateUpdate.bind(pk(t)),createHrefForState:t.createHrefForState.bind(pk(t)),onSearchForFacetValues:t.onSearchForFacetValues.bind(pk(t)),onSearchStateChange:t.onSearchStateChange.bind(pk(t)),onSearchParameters:t.onSearchParameters.bind(pk(t))};return t.state={isControlled:yk(t.props),instantSearchManager:n,contextValue:r},t}return n=a,r=[{key:"componentDidUpdate",value:function(e){var t=yk(e);if(t&&!this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being controlled to uncontrolled");if(!t&&this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being uncontrolled to controlled");this.props.refresh!==e.refresh&&this.props.refresh&&this.state.instantSearchManager.clearCache(),e.indexName!==this.props.indexName&&this.state.instantSearchManager.updateIndex(this.props.indexName),e.searchClient!==this.props.searchClient&&this.state.instantSearchManager.updateClient(this.props.searchClient)}},{key:"componentDidMount",value:function(){this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),"object"===("undefined"===typeof window?"undefined":ak(window))&&"object"===ak(window.navigator)&&"string"===typeof window.navigator.userAgent&&window.navigator.userAgent.includes("Algolia Crawler")&&"object"===ak(window.document)&&sk(this.state.instantSearchManager.widgetsManager.getWidgets(),this.props.searchClient)}},{key:"componentWillUnmount",value:function(){var e=this;this.cleanupTimerRef=setTimeout((function(){e.isUnmounting=!0,e.state.instantSearchManager.skipSearch()}))}},{key:"createHrefForState",value:function(e){return e=this.state.instantSearchManager.transitionState(e),this.state.isControlled&&this.props.createURL?this.props.createURL(e,this.getKnownKeys()):"#"}},{key:"onWidgetsInternalStateUpdate",value:function(e){e=this.state.instantSearchManager.transitionState(e),this.onSearchStateChange(e),this.state.isControlled||this.state.instantSearchManager.onExternalStateUpdate(e)}},{key:"onSearchStateChange",value:function(e){this.props.onSearchStateChange&&!this.isUnmounting&&this.props.onSearchStateChange(e)}},{key:"onSearchParameters",value:function(e,t,n,r,i){if(this.props.onSearchParameters){var o=this.props.searchState?this.props.searchState:{};this.props.onSearchParameters(e,t,n,o)}if(this.props.widgetsCollector){var a=this.props.searchState?this.props.searchState:{};this.props.widgetsCollector({getSearchParameters:e,getMetadata:r,context:t,props:n,searchState:a,displayName:i})}}},{key:"onSearchForFacetValues",value:function(e){this.state.instantSearchManager.onSearchForFacetValues(e)}},{key:"getKnownKeys",value:function(){return this.state.instantSearchManager.getWidgetsIds()}},{key:"render",value:function(){return 0===t.Children.count(this.props.children)?null:t.createElement(bs,{value:this.state.contextValue},this.props.children)}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=yk(e),r=t.instantSearchManager.store.getState().widgets,i=e.searchState;return n&&!ms()(r,i)&&t.instantSearchManager.onExternalStateUpdate(e.searchState),{isControlled:n,contextValue:ck(ck({},t.contextValue),{},{mainTargetedIndex:e.indexName})}}}],r&&dk(n.prototype,r),i&&dk(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);mk(bk,"defaultProps",{stalledSearchDelay:200,refresh:!1}),mk(bk,"propTypes",{indexName:M().string.isRequired,searchClient:M().shape({search:M().func.isRequired,searchForFacetValues:M().func,addAlgoliaAgent:M().func,clearCache:M().func}).isRequired,createURL:M().func,refresh:M().bool,searchState:M().object,onSearchStateChange:M().func,onSearchParameters:M().func,widgetsCollector:M().func,resultsState:M().oneOfType([M().object,M().array]),children:M().node,stalledSearchDelay:M().number});const xk=bk;function wk(e){var n;let{children:r}=e;const i=Tr(),{settings:o,search:a}=Nr((e=>e)),{valueTextSearch:s}=a,{apiKey:l,appId:u,indexName:c}=o.algolia,d=null===(n=o.algolia)||void 0===n?void 0:n.enabled,f=(0,t.useMemo)((()=>{const e=zS()(u,l);return e.initIndex(c),{...e,search:t=>t.every((e=>{var t,n,r;return!(null!==(t=e.params)&&void 0!==t&&t.query)&&(!(null!==(n=e.params)&&void 0!==n&&n.filters)||(null===(r=e.params)||void 0===r?void 0:r.filters.endsWith("<score=1>")))}))?Promise.resolve({results:t.map((()=>({hits:[],nbHits:0,nbPages:0,processingTimeMS:0})))}):d?e.search(t):void 0}}),[l,u,c,d]);return(0,_o.jsx)("div",{style:{position:"relative"},children:(0,_o.jsx)(xk,{indexName:c,searchClient:f,searchState:d?s:{},onSearchStateChange:e=>{e.page&&void 0!==e.query&&d&&i($n(e))},children:r})})}const Ck=(0,t.memo)(wk);var Sk,kk;function _k(){return _k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_k.apply(this,arguments)}function Ek(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",_k({width:80,height:10,viewBox:"0 0 80 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,Sk||(Sk=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.4951 2.66941V7.62941H54.9651V4.27941C55.1251 4.12608 55.2718 4.00941 55.4051 3.92941C55.5384 3.84275 55.6984 3.79941 55.8851 3.79941C56.0984 3.79941 56.2518 3.86608 56.3451 3.99941C56.4451 4.13275 56.4951 4.37941 56.4951 4.73941V7.62941H57.9651V4.54941C57.9651 3.92941 57.8451 3.44275 57.6051 3.08941C57.3651 2.72941 56.9718 2.54941 56.4251 2.54941C56.0918 2.54941 55.7951 2.62275 55.5351 2.76941C55.2751 2.91608 55.0418 3.09275 54.8351 3.29941H54.7951L54.6951 2.66941H53.4951ZM59.3778 9.53941C59.4911 9.55941 59.6211 9.56941 59.7677 9.56941C60.1611 9.56941 60.4877 9.49608 60.7477 9.34941C61.0144 9.20941 61.2378 8.99941 61.4177 8.71941C61.6044 8.43941 61.7777 8.09275 61.9377 7.67941L63.6577 2.66941H62.2477L61.6478 4.79941C61.5877 5.03275 61.5277 5.26941 61.4678 5.50941L61.3078 6.20941H61.2677C61.2011 5.96275 61.1377 5.72275 61.0777 5.48941C61.0177 5.25608 60.9511 5.02608 60.8778 4.79941L60.1677 2.66941H58.6877L60.5977 7.49941L60.5277 7.75941C60.4678 7.94608 60.3677 8.09941 60.2277 8.21941C60.0944 8.34608 59.9044 8.40941 59.6577 8.40941C59.6111 8.40941 59.5611 8.40608 59.5077 8.39942C59.4611 8.39942 59.4011 8.38941 59.3277 8.36941L59.0677 9.44941C59.1677 9.48941 59.2711 9.51941 59.3778 9.53941ZM64.4326 2.66941V7.62941H65.9026V4.74941C66.0359 4.40941 66.2026 4.17275 66.4026 4.03941C66.6093 3.90608 66.8059 3.83941 66.9926 3.83941C67.0993 3.83941 67.1893 3.84608 67.2626 3.85941C67.3359 3.86608 67.4126 3.87941 67.4926 3.89941L67.7726 2.64941C67.7059 2.61608 67.6259 2.59275 67.5326 2.57941C67.4393 2.55941 67.3226 2.54941 67.1826 2.54941C66.9226 2.54941 66.6659 2.63275 66.4126 2.79941C66.1659 2.95941 65.9526 3.20608 65.7726 3.53941H65.7326L65.6326 2.66941H64.4326ZM68.417 2.66941V7.62941H69.887V2.66941H68.417ZM68.547 1.72941C68.7003 1.86941 68.9003 1.93941 69.147 1.93941C69.3936 1.93941 69.5936 1.86941 69.747 1.72941C69.9003 1.58941 69.977 1.40275 69.977 1.16941C69.977 0.936081 69.9003 0.749414 69.747 0.609414C69.5936 0.469414 69.3936 0.399414 69.147 0.399414C68.9003 0.399414 68.7003 0.469414 68.547 0.609414C68.3936 0.749414 68.317 0.936081 68.317 1.16941C68.317 1.40275 68.3936 1.58941 68.547 1.72941ZM71.6306 7.55941C71.9773 7.68608 72.314 7.74941 72.6406 7.74941C73.0873 7.74941 73.4606 7.67941 73.7606 7.53941C74.0606 7.39275 74.2873 7.19941 74.4406 6.95941C74.6006 6.71941 74.6806 6.44941 74.6806 6.14941C74.6806 5.87608 74.6206 5.64275 74.5006 5.44941C74.3806 5.25608 74.214 5.09608 74.0006 4.96941C73.794 4.83608 73.564 4.72608 73.3106 4.63941C73.104 4.57275 72.9306 4.51275 72.7906 4.45941C72.6573 4.39941 72.5573 4.33608 72.4906 4.26941C72.424 4.20275 72.3906 4.12275 72.3906 4.02941C72.3906 3.91608 72.4373 3.82275 72.5306 3.74941C72.624 3.67608 72.7673 3.63941 72.9606 3.63941C73.134 3.63941 73.3106 3.66941 73.4906 3.72941C73.6706 3.78275 73.8506 3.87275 74.0306 3.99941L74.6606 3.17941C74.4473 2.99275 74.1906 2.84275 73.8906 2.72941C73.5973 2.60941 73.2706 2.54941 72.9106 2.54941C72.344 2.54941 71.884 2.69275 71.5306 2.97941C71.184 3.25941 71.0106 3.63275 71.0106 4.09941C71.0106 4.35941 71.0706 4.58275 71.1906 4.76941C71.3173 4.95608 71.4806 5.11608 71.6806 5.24941C71.8806 5.38275 72.1006 5.49275 72.3406 5.57941C72.5206 5.64608 72.6806 5.70941 72.8206 5.76941C72.9673 5.82275 73.084 5.88608 73.1706 5.95941C73.264 6.03275 73.3106 6.12608 73.3106 6.23941C73.3106 6.36608 73.2606 6.46941 73.1606 6.54941C73.0606 6.62275 72.9006 6.65941 72.6806 6.65941C72.474 6.65941 72.2573 6.62608 72.0306 6.55941C71.8106 6.48608 71.5873 6.35941 71.3606 6.17941L70.7406 7.00941C70.9873 7.24941 71.284 7.43275 71.6306 7.55941ZM76.2742 4.25941C76.5742 4.43275 76.9076 4.51941 77.2742 4.51941C77.6342 4.51941 77.9642 4.43275 78.2642 4.25941C78.5709 4.08608 78.8109 3.84941 78.9842 3.54941C79.1642 3.24275 79.2542 2.89275 79.2542 2.49941C79.2542 2.10608 79.1642 1.75941 78.9842 1.45941C78.8109 1.15275 78.5709 0.912748 78.2642 0.739414C77.9642 0.566081 77.6342 0.479414 77.2742 0.479414C76.9076 0.479414 76.5742 0.566081 76.2742 0.739414C75.9742 0.912748 75.7342 1.15275 75.5542 1.45941C75.3742 1.75941 75.2842 2.10608 75.2842 2.49941C75.2842 2.89275 75.3742 3.24275 75.5542 3.54941C75.7342 3.84941 75.9742 4.08608 76.2742 4.25941ZM78.0142 3.83941C77.8009 3.96608 77.5542 4.02941 77.2742 4.02941C76.9942 4.02941 76.7442 3.96608 76.5242 3.83941C76.3109 3.71275 76.1409 3.53608 76.0142 3.30941C75.8942 3.07608 75.8342 2.80608 75.8342 2.49941C75.8342 2.19275 75.8942 1.92608 76.0142 1.69941C76.1409 1.46608 76.3109 1.28608 76.5242 1.15941C76.7442 1.03275 76.9942 0.969414 77.2742 0.969414C77.5542 0.969414 77.8009 1.03275 78.0142 1.15941C78.2276 1.28608 78.3942 1.46608 78.5142 1.69941C78.6409 1.92608 78.7042 2.19275 78.7042 2.49941C78.7042 2.80608 78.6409 3.07608 78.5142 3.30941C78.3942 3.53608 78.2276 3.71275 78.0142 3.83941ZM76.4642 1.49941V3.46941H77.0342V2.86941H77.3242L77.6242 3.46941H78.2242L77.8142 2.69941C77.9342 2.64608 78.0209 2.56941 78.0742 2.46941C78.1342 2.36941 78.1642 2.26608 78.1642 2.15941C78.1642 1.93275 78.0876 1.76608 77.9342 1.65941C77.7809 1.55275 77.5876 1.49941 77.3542 1.49941H76.4642ZM77.2442 2.46941H77.0342V1.92941H77.2442C77.3442 1.92941 77.4176 1.95608 77.4642 2.00941C77.5176 2.05608 77.5442 2.11608 77.5442 2.18941C77.5442 2.26941 77.5176 2.33608 77.4642 2.38941C77.4176 2.44275 77.3442 2.46941 77.2442 2.46941ZM0.745093 1.06941V7.62941H1.57509V5.02941H2.65509C3.13509 5.02941 3.55509 4.95608 3.91509 4.80941C4.28176 4.65608 4.56509 4.43275 4.76509 4.13941C4.97176 3.83941 5.07509 3.45941 5.07509 2.99941C5.07509 2.51941 4.97176 2.13941 4.76509 1.85941C4.55843 1.57941 4.27176 1.37941 3.90509 1.25941C3.53843 1.13275 3.10843 1.06941 2.61509 1.06941H0.745093ZM2.55509 4.34941H1.57509V1.73941H2.51509C3.08843 1.73941 3.51843 1.83275 3.80509 2.01941C4.09843 2.19941 4.24509 2.52608 4.24509 2.99941C4.24509 3.45941 4.10509 3.79941 3.82509 4.01941C3.55176 4.23941 3.12843 4.34941 2.55509 4.34941ZM6.86501 7.44941C7.21168 7.64941 7.58168 7.74941 7.97501 7.74941C8.37501 7.74941 8.74502 7.64941 9.08502 7.44941C9.42501 7.24941 9.69835 6.95941 9.90501 6.57941C10.1183 6.19941 10.225 5.74275 10.225 5.20941C10.225 4.66275 10.1183 4.19941 9.90501 3.81941C9.69835 3.43941 9.42501 3.14941 9.08502 2.94941C8.74502 2.74941 8.37501 2.64941 7.97501 2.64941C7.58168 2.64941 7.21168 2.74941 6.86501 2.94941C6.52501 3.14941 6.24835 3.43941 6.03501 3.81941C5.82835 4.19941 5.72501 4.66275 5.72501 5.20941C5.72501 5.74275 5.82835 6.19941 6.03501 6.57941C6.24835 6.95941 6.52501 7.24941 6.86501 7.44941ZM8.71501 6.83941C8.50168 6.99275 8.25501 7.06941 7.97501 7.06941C7.69501 7.06941 7.44835 6.99275 7.23501 6.83941C7.02835 6.67941 6.86501 6.45941 6.74501 6.17941C6.63168 5.89941 6.57501 5.57608 6.57501 5.20941C6.57501 4.83608 6.63168 4.50941 6.74501 4.22941C6.86501 3.94275 7.02835 3.72275 7.23501 3.56941C7.44835 3.40941 7.69501 3.32941 7.97501 3.32941C8.25501 3.32941 8.50168 3.40941 8.71501 3.56941C8.92835 3.72275 9.09168 3.94275 9.20502 4.22941C9.31835 4.50941 9.37502 4.83608 9.37502 5.20941C9.37502 5.57608 9.31835 5.89941 9.20502 6.17941C9.09168 6.45941 8.92835 6.67941 8.71501 6.83941ZM10.8859 2.76941L12.2359 7.62941H13.2559L13.9059 5.02941C13.9659 4.80941 14.0192 4.58608 14.0659 4.35941C14.1192 4.13275 14.1692 3.87608 14.2159 3.58941H14.2559C14.3092 3.87608 14.3592 4.13275 14.4059 4.35941C14.4592 4.57941 14.5125 4.80275 14.5659 5.02941L15.2159 7.62941H16.2859L17.5959 2.76941H16.7959L16.0859 5.57941L15.9459 6.23941C15.8992 6.45941 15.8492 6.69941 15.7959 6.95941H15.7559C15.7025 6.69941 15.6492 6.45941 15.5959 6.23941C15.5492 6.01941 15.4959 5.79941 15.4359 5.57941L14.7059 2.76941H13.8059L13.0859 5.57941L12.9259 6.23941C12.8792 6.45941 12.8292 6.69941 12.7759 6.95941H12.7359C12.6959 6.69941 12.6525 6.45941 12.6059 6.23941C12.5592 6.01941 12.5092 5.79941 12.4559 5.57941L11.7459 2.76941H10.8859ZM19.3943 7.44941C19.7543 7.64941 20.151 7.74941 20.5843 7.74941C20.9176 7.74941 21.2143 7.70275 21.4743 7.60941C21.741 7.51608 21.981 7.39608 22.1943 7.24941L21.8943 6.70941C21.7276 6.82275 21.541 6.91275 21.3343 6.97941C21.1343 7.04608 20.9176 7.07941 20.6843 7.07941C20.391 7.07941 20.121 7.00941 19.8743 6.86941C19.6276 6.72275 19.431 6.50941 19.2843 6.22941C19.1711 6.003 19.1037 5.733 19.082 5.41941H22.3343C22.3543 5.33941 22.3643 5.25941 22.3643 5.17941C22.371 5.09941 22.3743 5.01608 22.3743 4.92941C22.3743 4.46941 22.301 4.06941 22.1543 3.72941C22.0076 3.38941 21.7876 3.12608 21.4943 2.93941C21.2076 2.74608 20.8576 2.64941 20.4443 2.64941C20.071 2.64941 19.7176 2.75275 19.3843 2.95941C19.051 3.16608 18.7776 3.45941 18.5643 3.83941C18.351 4.21941 18.2443 4.67275 18.2443 5.19941C18.2443 5.73941 18.3476 6.19941 18.5543 6.57941C18.761 6.95275 19.041 7.24275 19.3943 7.44941ZM21.6343 4.76941H19.0962C19.1257 4.50574 19.185 4.28241 19.2743 4.09941C19.4143 3.82608 19.591 3.62941 19.8043 3.50941C20.0176 3.38275 20.2343 3.31941 20.4543 3.31941C20.8343 3.31941 21.1243 3.44608 21.3243 3.69941C21.531 3.94608 21.6343 4.30275 21.6343 4.76941ZM23.5752 2.76941V7.62941H24.3952V4.50941C24.5619 4.09608 24.7552 3.80608 24.9752 3.63941C25.2019 3.47275 25.4186 3.38941 25.6252 3.38941C25.7252 3.38941 25.8052 3.39608 25.8652 3.40941C25.9319 3.41608 26.0019 3.42941 26.0752 3.44941L26.2552 2.74941C26.1752 2.70941 26.0952 2.68275 26.0152 2.66941C25.9352 2.65608 25.8419 2.64941 25.7352 2.64941C25.4552 2.64941 25.1952 2.73941 24.9552 2.91941C24.7153 3.09941 24.5152 3.34275 24.3552 3.64941H24.3252L24.2552 2.76941H23.5752ZM27.7244 7.44941C28.0844 7.64941 28.4811 7.74941 28.9144 7.74941C29.2477 7.74941 29.5444 7.70275 29.8044 7.60941C30.0711 7.51608 30.3111 7.39608 30.5244 7.24941L30.2244 6.70941C30.0577 6.82275 29.8711 6.91275 29.6644 6.97941C29.4644 7.04608 29.2477 7.07941 29.0144 7.07941C28.7211 7.07941 28.4511 7.00941 28.2044 6.86941C27.9577 6.72275 27.7611 6.50941 27.6144 6.22941C27.5012 6.003 27.4337 5.733 27.4121 5.41941H30.6644C30.6844 5.33941 30.6944 5.25941 30.6944 5.17941C30.7011 5.09941 30.7044 5.01608 30.7044 4.92941C30.7044 4.46941 30.6311 4.06941 30.4844 3.72941C30.3377 3.38941 30.1177 3.12608 29.8244 2.93941C29.5377 2.74608 29.1877 2.64941 28.7744 2.64941C28.4011 2.64941 28.0477 2.75275 27.7144 2.95941C27.3811 3.16608 27.1077 3.45941 26.8944 3.83941C26.6811 4.21941 26.5744 4.67275 26.5744 5.19941C26.5744 5.73941 26.6777 6.19941 26.8844 6.57941C27.0911 6.95275 27.3711 7.24275 27.7244 7.44941ZM29.9644 4.76941H27.4262C27.4557 4.50574 27.5151 4.28241 27.6044 4.09941C27.7444 3.82608 27.9211 3.62941 28.1344 3.50941C28.3477 3.38275 28.5644 3.31941 28.7844 3.31941C29.1644 3.31941 29.4544 3.44608 29.6544 3.69941C29.8611 3.94608 29.9644 4.30275 29.9644 4.76941ZM32.0953 7.08941C32.462 7.52941 32.952 7.74941 33.5653 7.74941C33.852 7.74941 34.122 7.68275 34.3753 7.54941C34.6287 7.40941 34.8487 7.24608 35.0353 7.05941H35.0653L35.1353 7.62941H35.8153V0.509414H34.9853V2.37941L35.0253 3.20941C34.812 3.02941 34.602 2.89275 34.3953 2.79941C34.1953 2.69941 33.952 2.64941 33.6653 2.64941C33.292 2.64941 32.9453 2.75275 32.6253 2.95941C32.3053 3.16608 32.0453 3.46275 31.8453 3.84941C31.652 4.22941 31.5553 4.68275 31.5553 5.20941C31.5553 6.01608 31.7353 6.64275 32.0953 7.08941ZM34.3853 6.88941C34.1853 7.00275 33.972 7.05941 33.7453 7.05941C33.3187 7.05941 32.9887 6.89608 32.7553 6.56941C32.522 6.23608 32.4053 5.77941 32.4053 5.19941C32.4053 4.82608 32.4687 4.50275 32.5953 4.22941C32.722 3.94941 32.8887 3.73275 33.0953 3.57941C33.3087 3.41941 33.5453 3.33941 33.8053 3.33941C34.0053 3.33941 34.202 3.37941 34.3953 3.45941C34.5887 3.53275 34.7853 3.66275 34.9853 3.84941V6.38941C34.7853 6.60941 34.5853 6.77608 34.3853 6.88941ZM40.9042 7.58941C41.1442 7.69608 41.3775 7.74941 41.6042 7.74941C41.9708 7.74941 42.3142 7.64608 42.6342 7.43941C42.9542 7.23275 43.2108 6.93275 43.4042 6.53941C43.6042 6.14608 43.7042 5.67275 43.7042 5.11941C43.7042 4.61941 43.6308 4.18608 43.4842 3.81941C43.3375 3.44608 43.1208 3.15941 42.8342 2.95941C42.5475 2.75275 42.1942 2.64941 41.7742 2.64941C41.5075 2.64941 41.2408 2.71608 40.9742 2.84941C40.7142 2.97608 40.4742 3.13608 40.2542 3.32941L40.2742 2.44941V0.509414H39.4542V7.62941H40.1142L40.1842 7.12941H40.2142C40.4342 7.32275 40.6642 7.47608 40.9042 7.58941ZM42.1742 6.82941C41.9675 6.98275 41.7308 7.05941 41.4642 7.05941C41.3042 7.05941 41.1175 7.02275 40.9042 6.94941C40.6975 6.86941 40.4875 6.73608 40.2742 6.54941V3.99941C40.5075 3.77941 40.7308 3.61608 40.9442 3.50941C41.1642 3.39608 41.3742 3.33941 41.5742 3.33941C41.8808 3.33941 42.1275 3.41608 42.3142 3.56941C42.5008 3.71608 42.6375 3.92608 42.7242 4.19941C42.8108 4.46608 42.8542 4.77608 42.8542 5.12941C42.8542 5.52941 42.7942 5.87608 42.6742 6.16941C42.5542 6.45608 42.3875 6.67608 42.1742 6.82941ZM44.7124 9.68941C44.8124 9.70941 44.9158 9.71941 45.0224 9.71941C45.3491 9.71941 45.6258 9.64608 45.8524 9.49941C46.0791 9.35275 46.2724 9.14942 46.4324 8.88941C46.5924 8.63608 46.7291 8.34941 46.8424 8.02941L48.6724 2.76941H47.8724L47.0024 5.45941C46.9424 5.67275 46.8758 5.89941 46.8024 6.13941C46.7358 6.37275 46.6658 6.60275 46.5924 6.82941H46.5524C46.4791 6.60275 46.4024 6.36941 46.3224 6.12941C46.2424 5.88941 46.1624 5.66608 46.0824 5.45941L45.0924 2.76941H44.2424L46.1924 7.63941L46.0824 7.99941C45.9824 8.29941 45.8424 8.54608 45.6624 8.73941C45.4891 8.93941 45.2624 9.03941 44.9824 9.03941C44.9291 9.03941 44.8724 9.03275 44.8124 9.01941C44.7524 9.01275 44.6924 8.99941 44.6324 8.97941L44.4524 9.61941C44.5324 9.64608 44.6191 9.66941 44.7124 9.68941Z",fill:"url(#paint0_linear_5277_64421)"})),kk||(kk=t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_5277_64421",x1:53,y1:12.0596,x2:80,y2:12.0596,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#3E36DC"}),t.createElement("stop",{offset:1,stopColor:"#E31B5D"})))))}const Pk=t.forwardRef(Ek);n.p;const jk=function(){const[e,n]=(0,t.useState)(!1);return(0,_o.jsxs)("div",{className:"powered-by-nyris",style:{display:"flex",padding:"9px 0px",justifyContent:"center",borderTop:"1px solid #E0E0E0"},onMouseOver:()=>{n(!0)},onMouseOut:()=>{n(!1)},children:[e&&(0,_o.jsx)(Pk,{style:{cursor:"pointer"},onClick:()=>{window.open("https://www.nyris.io","_blank")}}),!e&&(0,_o.jsx)(Ko,{style:{cursor:"pointer"},onClick:()=>{window.open("https://www.nyris.io","_blank")},color:"#2B2C46"})]})};function Ok(e){var n,r,i;let{children:o}=e;const a=Tr(),{settings:s,search:l}=Nr((e=>e)),{loadingSearchAlgolia:u}=l,c=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),[d,f]=(0,t.useState)(!1),h=Ne(),p=bl().get("query")||"";let g=c&&"/result"===(null===(n=h.location)||void 0===n?void 0:n.pathname)||"/"===(null===(r=h.location)||void 0===r?void 0:r.pathname);const m=Nr((e=>e.settings.language)),{user:v,isAuthenticated:y}=ls(),{auth0:b,showPoweredByNyris:x}=s,w=!b.enabled||b.enabled&&y;let C,S;IS.changeLanguage(m),(0,t.useEffect)((()=>{var e;"/"===(null===(e=h.location)||void 0===e?void 0:e.pathname)&&(document.title=s.appTitle||"",a(tr("")))}),[h.location]),(0,t.useEffect)((()=>{s.shouldUseUserMetadata&&v&&v["/user_metadata"].value&&a(ur({[v["/user_metadata"].value]:!0}))}),[v,a,s.shouldUseUserMetadata]);let k="newVersion";c?(k="mobile",S=cs,C=Il):C=nf;let _=.01*window.innerHeight;return document.documentElement.style.setProperty("--vh","".concat(_,"px")),(0,t.useEffect)((()=>{const e=()=>{let e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh","".concat(e,"px"))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),(0,t.useEffect)((()=>{l.requestImage&&p||a(Jn())}),[l.requestImage,p,a,l.regions]),(0,t.useEffect)((()=>{a(Jn())}),[a,l.selectedRegion]),(0,_o.jsxs)("div",{style:{position:"relative"},children:[u&&(0,_o.jsx)("div",{className:"box-wrap-loading",style:{zIndex:99999999},children:(0,_o.jsx)(QC,{})}),(0,_o.jsxs)(Ck,{children:[c&&w&&(0,_o.jsx)(KC,{children:o}),!c&&w&&(0,_o.jsxs)("div",{className:"layout-main-".concat(k),children:[(0,_o.jsx)("div",{className:c?g?"box-header-".concat(k,"-main"):"":"box-header-".concat(k,"-main"),style:{..."newVersion"===k?{background:null===(i=s.theme)||void 0===i?void 0:i.headerColor}:{}},children:(0,_o.jsx)(C,{onToggleFilterMobile:e=>{f((0,Yn.isUndefined)(e)?!d:e)}})}),(0,_o.jsx)("div",{className:"box-body-".concat(k,"-wrap-main"),children:o}),c&&(0,_o.jsx)("div",{className:"footer-wrap-main",children:(0,_o.jsx)(S,{})}),x&&(0,_o.jsx)(jk,{})]}),!w&&(0,_o.jsxs)(_o.Fragment,{children:[" ",o]})]})]})}ZC()(document).ready((function(){psol.core.setUserInfo({server_type:"oem_apps_cadenas_webcomponentsdemo",title:"Herr",firstname:"Max",lastname:"Mustermann",userfirm:"CADENAS GmbH",street:"Berliner Allee 28 b+c",zip:"86153",city:"Augsburg",country:"de",phone:"+49 (0) 821 2 58 58 0-0",fax:"+49 (0) 821 2 58 58 0-999",email:"info@cadenas.de"}),psol.core.setServiceBaseUrl("https://webapi.partcommunity.com"),window.onpageshow=function(e){e.persisted&&window.location.reload()}})),IS.use(Rl).init({resources:{en:{translation:{Search:"Search","Drag and drop":"Drag and drop","an image here":"an image here","Manufacturer Number":"Manufacturer No.","Mfr. No.":"Mfr. No.","Close group":"Close group","Show group":"Show group","Adjust the search frame around your object for improved results":"Adjust the search frame around your object for improved results","Crop the image for better results":"Crop the image for better results","Items per page":"Items per page","Search with an image":"Search with an image","Clear text search":"Clear text search","View details":"View details","Clear image search":"Clear image search ","Add or change pre-filter":"Add or change pre-filter","Expand all":"Expand all","Collapse all":"Collapse all",Brand:"Brand","Product name":"Product name",loading:"loading","No products were found matching your search criteria.":"No products were found matching your search criteria.","Please upload an image or enter a keyword to search.":"Please upload an image or enter a keyword to search.","No matches found":"No matches found","No matches found for your request":"No matches found for your request","Clear all":"Clear all",Cancel:"Cancel",Apply:"Apply","Back to request image":"Back to request image"}},de:{translation:{Search:"Suche","Drag and drop":"Bild hierher ziehen","an image here":"","Mfr. No.":"Herst. Teile-Nr.","Manufacturer Number":"Herstellerteilenummer","Close group":"Schlie\xdfe Gruppe","Show group":"Zeige Gruppe","Adjust the search frame around your object for improved results":"Anpassen des Rahmens f\xfcr bessere Ergebnisse","Crop the image for better results":"Zuschneiden f\xfcr bessere Ergebnisse","Items per page":"Artikel pro Seite","Search with an image":"Bildsuche","Clear text search":"Suchtext l\xf6schen","View details":"Details anzeigen","Clear image search":"Bildsuche zur\xfcck setzen","Add or change pre-filter":"Vorfilter hinzuf\xfcgen oder \xe4ndern","Expand all":"Alles anzeigen","Collapse all":"Alles einklappen",Brand:"Marke","Product name":"Produktname",loading:"L\xe4dt","No products were found matching your search criteria.":"Keine Produkte entsprechen Ihren Suchkriterien.","Please upload an image or enter a keyword to search.":"F\xfcr die Suche bitte Bild hochladen oder Stichwort eingeben.","No matches found":"Keine Treffer f\xfcr Ihre Anfrage gefunden","No matches found for your request":"Keine Treffer f\xfcr Ihre Anfrage gefunden","Clear all":"Alles l\xf6schen",Cancel:"Abbrechen",Apply:"Anwenden","Back to request image":"Zur\xfcck zur Bildanfrage"}},pt:{translation:{Search:"Busca","Drag and drop":"Escolha uma imagem","an image here":"","Manufacturer Number":"N\xfamero do fabricante","Mfr. No.":"Nr. do Fab","Close group":"Fechar grupo","Show group":"Mostrar grupo","Adjust the search frame around your object for improved results":"Ajuste a caixa de busca para melhores resultados","Crop the image for better results":"Ajuste o campo de imagem para melhores resultados","Items per page":"Itens por p\xe1gina","Search with an image":"Busque com uma imagem","Clear text search":"Limpar busca","View details":"Ver detalhes","Clear image search":"Limpar imagem","Add or change pre-filter":"Adicionar ou selecionar pre-filtro","Expand all":"Expandir","Collapse all":"esconder tudo",Brand:"Marca",loading:"Carregando","No products were found matching your search criteria.":"Nenhum produto foi encontrado com estes crit\xe9rios ","Please upload an image or enter a keyword to search.":"Fa\xe7a o upload de uma imagem ou busque via texto","No matches found":"No matches found","No matches found for your request":"No matches found for your request","Clear all":"Clear all",Cancel:"Cancel",Apply:"Apply","Back to request image":"Retroceder para imagem inicial"}}},fallbackLng:"en",interpolation:{escapeValue:!1},returnNull:!1});const Rk=(0,t.memo)(Ok);var Ak;function Tk(){return Tk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tk.apply(this,arguments)}function Nk(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",Tk({xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 0 48 48",fill:"none",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,Ak||(Ak=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.7016 39.816L22.6416 39.7584H22.6392L11.1192 28.2384C10.3704 27.4896 10.3704 26.2728 11.1192 25.524C11.4816 25.1616 11.964 24.9624 12.4776 24.9624C12.9912 24.9624 13.4736 25.1616 13.836 25.524L22.0776 33.7656V1.92C22.0776 0.8616 22.9392 0 23.9976 0C25.056 0 25.9176 0.8616 25.9176 1.92V33.7656L34.1592 25.524C34.5216 25.1616 35.004 24.9624 35.5176 24.9624C36.0312 24.9624 36.5136 25.1616 36.876 25.524C37.6248 26.2728 37.6248 27.4896 36.876 28.2384L25.356 39.7584C25.2672 39.8472 25.1688 39.9288 25.0632 39.9984C25.0176 40.0296 24.9648 40.0584 24.912 40.0848L24.9081 40.0869C24.8472 40.1197 24.7907 40.1501 24.732 40.1736C24.672 40.1976 24.6072 40.2192 24.5448 40.236C24.4872 40.2552 24.432 40.2696 24.3744 40.2816C24.2496 40.308 24.1224 40.32 23.9976 40.32C23.8728 40.32 23.7456 40.3056 23.6208 40.2816C23.5632 40.2696 23.508 40.2552 23.4528 40.236C23.388 40.2192 23.3256 40.2 23.2632 40.1736C23.2032 40.1496 23.148 40.1208 23.0928 40.0896C23.0328 40.0608 22.9824 40.032 22.932 39.9984C22.8504 39.9432 22.7736 39.8808 22.7016 39.816ZM44.16 34.56C44.16 33.5016 45.0216 32.64 46.08 32.64C47.1384 32.64 48 33.5016 48 34.56V46.08C48 47.1384 47.1384 48 46.08 48H1.92C0.8616 48 0 47.1384 0 46.08V34.56C0 33.5016 0.8616 32.64 1.92 32.64C2.9784 32.64 3.84 33.5016 3.84 34.56V44.16H44.16V34.56Z",fill:"currentColor"})))}const Fk=t.forwardRef(Nk);n.p;function Mk(e){const t=Ne(),n=Tr(),{onChangeLoading:r,isLoading:i}=e,o=Nr((e=>e)),{settings:a,search:{preFilter:s}}=o,{t:l}=Ml(),{getRootProps:u,getInputProps:c,isDragActive:d}=Wd({onDrop:async e=>{let i;t.push("/result"),n(br(!0)),n(er()),r(!0);let o=[];console.log("fs",e),n(sr(URL.createObjectURL(e[0])));let l=await Co(e[0]);n(fr(l));const u=[{key:a.visualSearchFilterKey,values:Object.keys(s)}];let c;try{if(a.regions){let e=await So(l,a);n(dr(e.regions)),c=e.selectedRegion,n(pr(c))}}catch(d){}finally{return ko({image:l,settings:a,region:c,filters:(0,Yn.isEmpty)(s)?void 0:u}).then((t=>{null===t||void 0===t||t.results.forEach((e=>{o.push({sku:e.sku,score:e.score})})),i={...t,filters:o},n(hr(i)),r(!1),n(br(!1)),n(wr(!0)),n(Sr(i)),n(Cr(l)),n(kr(s)),n(_r(URL.createObjectURL(e[0])))}))}}});return(0,_o.jsxs)("div",{className:"box-content-main",style:{marginTop:32,paddingTop:0},children:[i&&(0,_o.jsx)(QC,{}),(0,_o.jsx)("div",{className:"box-border-none",style:{position:"relative"},...u({onClick:e=>{e.stopPropagation()}}),children:(0,_o.jsxs)("div",{className:"box-content-drop ".concat(d?"drag-active":""),...u({onClick:e=>{e.stopPropagation()}}),children:[(0,_o.jsx)("div",{style:{marginBottom:16},children:(0,_o.jsx)(Fk,{width:48,height:48})}),(0,_o.jsxs)("label",{htmlFor:"select_file",className:"",style:{fontSize:14},children:[(0,_o.jsx)("span",{className:"fw-700 text-f14",style:{paddingRight:"4px"},children:l("Drag and drop")}),l("an image here")]}),(0,_o.jsx)("input",{...c(),type:"file",name:"file",id:"select_file",className:"inputFile",placeholder:"Choose photo",style:{display:"block",cursor:"pointer"}})]})})]})}const Lk=(0,t.memo)(Mk);var Ik,Dk=n(8238);function zk(){return zk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zk.apply(this,arguments)}function Bk(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",zk({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,Ik||(Ik=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.42028 4.82804C1.42028 5.22014 1.10221 5.53825 0.710142 5.53825C0.318078 5.53825 0 5.22014 0 4.82804V2.69216C0 1.20767 1.20757 0 2.69193 0H4.87323C5.26529 0 5.58337 0.318104 5.58337 0.710201C5.58337 1.1023 5.26529 1.4204 4.87323 1.4204H2.69193C1.99071 1.4204 1.42028 1.99087 1.42028 2.69216V4.82804ZM13.3081 0H11.1268C10.7347 0 10.4167 0.318104 10.4167 0.710201C10.4167 1.1023 10.7347 1.4204 11.1268 1.4204H13.3081C14.0093 1.4204 14.5798 1.99087 14.5798 2.69216V4.82804C14.5798 5.22014 14.8978 5.53825 15.2899 5.53825C15.682 5.53825 16 5.22014 16 4.82804V2.69216C16 1.20767 14.7925 0 13.3081 0ZM15.2899 10.4614C14.8978 10.4614 14.5798 10.7795 14.5798 11.1716V13.3078C14.5798 14.0091 14.0093 14.5796 13.3081 14.5796H11.1268C10.7347 14.5796 10.4167 14.8977 10.4167 15.2898C10.4167 15.6819 10.7347 16 11.1268 16H13.3081C14.7925 16 16 14.7923 16 13.3078V11.1716C16 10.7795 15.682 10.4614 15.2899 10.4614ZM4.87323 14.5796H2.69193C1.99071 14.5796 1.42028 14.0091 1.42028 13.3078V11.1716C1.42028 10.7795 1.10221 10.4614 0.710142 10.4614C0.318078 10.4614 0 10.7792 0 11.1716V13.3078C0 14.7923 1.20757 16 2.69193 16H4.87323C5.26529 16 5.58337 15.6819 5.58337 15.2898C5.58337 14.8977 5.26529 14.5796 4.87323 14.5796ZM12.6019 12.6029C12.4476 12.7572 12.2425 12.8421 12.0242 12.8421L12.0245 12.8418C11.8062 12.8418 11.6011 12.7569 11.4468 12.6026L10.2604 11.4161C9.59218 11.8613 8.81663 12.0952 8.00047 12.0952C6.90685 12.0952 5.87863 11.6694 5.1054 10.8961C4.33217 10.1228 3.90641 9.09453 3.90641 8.00082C3.90641 6.90711 4.33217 5.87881 5.1054 5.10552C5.87863 4.33222 6.90685 3.90643 8.00047 3.90643C9.09408 3.90643 10.1223 4.33222 10.8955 5.10552C11.6688 5.87881 12.0945 6.90711 12.0945 8.00082C12.0945 8.81706 11.8607 9.59266 11.4154 10.2612L12.6019 11.4478C12.9203 11.7662 12.9203 12.2845 12.6019 12.6029ZM9.73685 9.73702C9.75171 9.72248 9.76723 9.70795 9.78342 9.69407C10.2201 9.23426 10.4605 8.63373 10.4605 8.00082C10.4605 6.64418 9.35667 5.54023 8.00014 5.54023C6.6436 5.54023 5.53974 6.64418 5.53974 8.00082C5.53974 9.35747 6.64327 10.4614 8.00014 10.4614C8.63299 10.4614 9.23347 10.2213 9.69325 9.78425C9.70745 9.76774 9.72198 9.75188 9.73685 9.73702Z",fill:"white"})))}const Uk=t.forwardRef(Bk);n.p;var Vk;function Hk(){return Hk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hk.apply(this,arguments)}function Wk(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",Hk({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,Vk||(Vk=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.42028 4.82804C1.42028 5.22014 1.10221 5.53825 0.710142 5.53825C0.318078 5.53825 0 5.22014 0 4.82804V2.69216C0 1.20767 1.20757 0 2.69193 0H4.87323C5.26529 0 5.58337 0.318104 5.58337 0.710201C5.58337 1.1023 5.26529 1.4204 4.87323 1.4204H2.69193C1.99071 1.4204 1.42028 1.99087 1.42028 2.69216V4.82804ZM13.3081 0H11.1268C10.7347 0 10.4167 0.318104 10.4167 0.710201C10.4167 1.1023 10.7347 1.4204 11.1268 1.4204H13.3081C14.0093 1.4204 14.5798 1.99087 14.5798 2.69216V4.82804C14.5798 5.22014 14.8978 5.53825 15.2899 5.53825C15.682 5.53825 16 5.22014 16 4.82804V2.69216C16 1.20767 14.7925 0 13.3081 0ZM15.2899 10.4614C14.8978 10.4614 14.5798 10.7795 14.5798 11.1716V13.3078C14.5798 14.0091 14.0093 14.5796 13.3081 14.5796H11.1268C10.7347 14.5796 10.4167 14.8977 10.4167 15.2898C10.4167 15.6819 10.7347 16 11.1268 16H13.3081C14.7925 16 16 14.7923 16 13.3078V11.1716C16 10.7795 15.682 10.4614 15.2899 10.4614ZM4.87323 14.5796H2.69193C1.99071 14.5796 1.42028 14.0091 1.42028 13.3078V11.1716C1.42028 10.7795 1.10221 10.4614 0.710142 10.4614C0.318078 10.4614 0 10.7792 0 11.1716V13.3078C0 14.7923 1.20757 16 2.69193 16H4.87323C5.26529 16 5.58337 15.6819 5.58337 15.2898C5.58337 14.8977 5.26529 14.5796 4.87323 14.5796ZM12.6019 12.6029C12.4476 12.7572 12.2425 12.8421 12.0242 12.8421L12.0245 12.8418C11.8062 12.8418 11.6011 12.7569 11.4468 12.6026L10.2604 11.4161C9.59218 11.8613 8.81663 12.0952 8.00047 12.0952C6.90685 12.0952 5.87863 11.6694 5.1054 10.8961C4.33217 10.1228 3.90641 9.09453 3.90641 8.00082C3.90641 6.90711 4.33217 5.87881 5.1054 5.10552C5.87863 4.33222 6.90685 3.90643 8.00047 3.90643C9.09408 3.90643 10.1223 4.33222 10.8955 5.10552C11.6688 5.87881 12.0945 6.90711 12.0945 8.00082C12.0945 8.81706 11.8607 9.59266 11.4154 10.2612L12.6019 11.4478C12.9203 11.7662 12.9203 12.2845 12.6019 12.6029ZM9.73685 9.73702C9.75171 9.72248 9.76723 9.70795 9.78342 9.69407C10.2201 9.23426 10.4605 8.63373 10.4605 8.00082C10.4605 6.64418 9.35667 5.54023 8.00014 5.54023C6.6436 5.54023 5.53974 6.64418 5.53974 8.00082C5.53974 9.35747 6.64327 10.4614 8.00014 10.4614C8.63299 10.4614 9.23347 10.2213 9.69325 9.78425C9.70745 9.76774 9.72198 9.75188 9.73685 9.73702Z",fill:"#2B2C46"})))}const Gk=t.forwardRef(Wk);n.p;function qk(){const e=Tr(),{search:n,settings:r}=Nr((e=>e)),[i,o]=(0,t.useState)(!1),[a,s]=(0,t.useState)([]),l=(0,t.useRef)(null);let u=(0,t.useRef)(null);(0,t.useEffect)((()=>{if(document.body.getBoundingClientRect().width>=776)return i?null!==u&&void 0!==u&&u.current&&(clearInterval(null===u||void 0===u?void 0:u.current),null!==l&&void 0!==l&&l.current&&!l.current.classList.contains("hover")&&l.current.classList.toggle("hover")):u.current=setInterval((()=>{null!==l&&void 0!==l&&l.current&&l.current.classList.toggle("hover")}),3e3),()=>{null!==u&&void 0!==u&&u.current&&clearInterval(null===u||void 0===u?void 0:u.current)}}),[i]);const c=e=>{if(o(e),e){var t,n;const e=null===r||void 0===r||null===(t=r.experienceVisualSearchImages)||void 0===t?void 0:t.slice(0,Math.min(null===r||void 0===r||null===(n=r.experienceVisualSearchImages)||void 0===n?void 0:n.length,4));s(e||[]),document.body.classList.add("overflow-hidden")}else document.body.classList.remove("overflow-hidden")};return(0,_o.jsxs)(_o.Fragment,{children:[(0,_o.jsxs)("div",{ref:l,className:"experience-visual-button",onClick:()=>c(!0),children:[(0,_o.jsx)("span",{}),(0,_o.jsx)(Uk,{})]}),i&&(0,Dr.createPortal)((0,_o.jsx)("div",{className:"custom-modal",onClick:e=>{e.stopPropagation(),c(!1)},children:(0,_o.jsxs)("div",{className:"custom-modal-body",onClick:e=>{e.stopPropagation()},children:[(0,_o.jsx)(Dk.A,{style:{fontSize:24,color:"#55566B"},className:"close-icon",onClick:e=>{e.stopPropagation(),c(!1)}}),(0,_o.jsx)("div",{className:"custom-modal-body-title",children:"Experience Visual Search"}),(0,_o.jsx)("div",{className:"custom-modal-body-subtitle",children:"Start your visual search by selecting an image below."}),(0,_o.jsx)("div",{className:"custom-modal-body-content experience-visual-search-images",children:a.map((t=>(0,_o.jsxs)("div",{className:"experience-visual-search-image-container",onClick:()=>{c(!1),(async t=>{e(br(!0)),e(er()),e(sr(t));let i,o=await Co(t);if(e(fr(o)),r.regions){let t=await So(o,r);i=t.selectedRegion,e(dr(t.regions)),e(pr(i))}const a=[{key:r.visualSearchFilterKey,values:Object.keys(n.preFilter)}];ko({image:o,settings:r,region:i,filters:(0,Yn.isEmpty)(n.preFilter)?void 0:a}).then((r=>{e(hr(r)),e(br(!1)),e(Sr(r)),e(Cr(o)),e(kr(n.preFilter)),e(_r(t))}))})(t)},children:[(0,_o.jsx)("div",{className:"experience-visual-search-image",style:{backgroundImage:"url(".concat(t,"?width=192&height=192)")}}),(0,_o.jsx)("div",{className:"box-icon-modal",children:(0,_o.jsx)(Gk,{width:16,height:16,color:"#AAABB5"})})]})))})]})}),document.body)]})}const Kk=(0,t.memo)(qk);function Xk(e){return Xk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xk(e)}var Zk=["page"];function Yk(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Xk(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Xk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Xk(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qk(e){return function(e){if(Array.isArray(e))return $k(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return $k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $k(e,t)}(e)||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 $k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jk(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function e_(e,t,n){var r=nl(e,t,n,"page",1);return"string"===typeof r?parseInt(r,10):r}function t_(e){var t=e||{};t.page;return Jk(t,Zk)}function n_(e){return Object.keys(e).map(Number).sort((function(e,t){return e-t})).reduce((function(t,n){return t.concat(e[n])}),[])}const r_=qs({displayName:"AlgoliaInfiniteHits",$$type:"ais.infiniteHits",getProvidedProps:function(e,t,n){var r=this,i=$s(n,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!i)return{hits:[],hasPrevious:!1,hasMore:!1,refine:function(){},refinePrevious:function(){},refineNext:function(){}};var o=i.page,a=i.hits,s=i.hitsPerPage,l=i.nbPages,u=i._state;this._cache=e.cache?e.cache:this._cache||function(){var e=void 0,t=void 0;return{read:function(n){var r=n.state;return ms()(t,t_(r))?e:null},write:function(n){var r=n.state,i=n.hits;t=t_(r),e=i}}}();var c=this._cache.read({state:u})||{},d=function(e,t,n){return e.map((function(e,r){return Ss(Ss({},e),{},{__position:t*n+r+1})}))}(a,s,o),f=function(e,t){return t?e.map((function(e){return Ss(Ss({},e),{},{__queryID:t})})):e}(d,i.queryID);c[o]=f,this._cache.write({state:u,hits:c});var h=Math.min.apply(Math,Qk(Object.keys(c).map(Number))),p=Math.max.apply(Math,Qk(Object.keys(c).map(Number))),g=h>0,m=p<l-1;return{hits:n_(c),hasPrevious:g,hasMore:m,refinePrevious:function(e){return r.refine(e,h-1)},refineNext:function(e){return r.refine(e,p+1)}}},getSearchParameters:function(e,t,n){return e.setQueryParameters({page:e_(t,n,{ais:t.contextValue,multiIndexContext:t.indexContextValue})-1})},refine:function(e,t,n,r){return el(t,Yk({},"page",r+1),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!1)}});const i_=function(){const{settings:e}=Nr((e=>e)),[n,r]=(0,t.useState)(!1),{apiKey:i,appId:o,indexName:a}=e.algolia;zS()(o,i).initIndex(a);const s=r_((e=>{let{hits:t}=e;return(0,_o.jsx)("div",{})}));return(0,_o.jsxs)("div",{className:"box-content-main ".concat(n?"loading":""),children:[(0,_o.jsxs)("div",{className:"box-content_top",style:{position:"relative"},children:[e.headerText&&(0,_o.jsx)("div",{className:"fw-700 text-f32 text-dark2",style:{position:"absolute",bottom:"49px"},children:(0,_o.jsx)("h1",{children:e.headerText})}),(0,_o.jsxs)("div",{className:"wrap-input-search",children:[(0,_o.jsx)("div",{style:{display:"none"},children:(0,_o.jsx)(s,{})}),(0,_o.jsx)(tf,{})]})]}),(0,_o.jsxs)("div",{className:"box-content_bottom",children:[(0,_o.jsx)(Lk,{acceptTypes:["image/*"],isLoading:n,onChangeLoading:e=>{r(e)}}),e.experienceVisualSearch?(0,_o.jsx)(Kk,{}):""]})]})};var o_;function a_(){return a_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a_.apply(this,arguments)}function s_(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",a_({width:121,height:96,viewBox:"0 0 121 96",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,t.createElement("g",{style:{mixBlendMode:"multiply"}},o_||(o_=t.createElement("path",{d:"M81.7314 54.5169C81.7314 66.4489 71.985 76.1561 60.0049 76.1561C48.0248 76.1561 38.2785 66.4489 38.2785 54.5169C38.2785 42.5849 48.0248 32.8777 60.0049 32.8777C71.985 32.8777 81.7314 42.5849 81.7314 54.5169ZM120.005 24.1972V84.8366C120.005 90.4872 115.363 95.1111 109.689 95.1111H10.3215C4.64805 95.1111 0.00549316 90.4878 0.00549316 84.8366V24.1972C0.00549316 18.5466 4.64748 13.9227 10.3215 13.9227H34.2641L37.8838 5.57484C39.3502 2.1909 42.6961 0 46.3964 0H73.6134C77.3137 0 80.6602 2.1909 82.1272 5.57484L85.7469 13.9227H109.69C115.363 13.9227 120.005 18.546 120.005 24.1972H120.005ZM21.6286 26.4758C21.6286 25.1029 20.5011 23.98 19.1227 23.98H12.2151C10.8366 23.98 9.7092 25.1029 9.7092 26.4758V29.8484C9.7092 31.2214 10.8366 32.3443 12.2151 32.3443H19.1227C20.5011 32.3443 21.6286 31.2214 21.6286 29.8484V26.4758ZM92.258 54.5169C92.258 50.1826 91.4044 45.975 89.7215 42.0118C88.0965 38.1861 85.7719 34.7512 82.8116 31.8029C79.8514 28.8545 76.4027 26.5392 72.5615 24.9207C68.5818 23.2441 64.3578 22.3944 60.0061 22.3944C55.6543 22.3944 51.4298 23.2446 47.4506 24.9207C43.6094 26.5392 40.1607 28.8545 37.2005 31.8029C34.2403 34.7512 31.9156 38.1861 30.2906 42.0118C28.6072 45.9756 27.7541 50.1826 27.7541 54.5169C27.7541 58.8512 28.6077 63.0588 30.2906 67.022C31.9156 70.8477 34.2403 74.2825 37.2005 77.2309C40.1607 80.1793 43.6094 82.4946 47.4506 84.113C51.4303 85.7897 55.6543 86.6394 60.0061 86.6394C64.3578 86.6394 68.5824 85.7892 72.5615 84.113C76.4027 82.4946 79.8514 80.1793 82.8116 77.2309C85.7719 74.2825 88.0965 70.8477 89.7215 67.022C91.405 63.0582 92.258 58.8512 92.258 54.5169Z",fill:"currentColor"}))))}const l_=t.forwardRef(s_);n.p;const u_=function(){const{settings:e}=Nr((e=>e)),[n,r]=(0,t.useState)(!1);return(0,_o.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},children:[(0,_o.jsx)("div",{className:"take-photo",children:(0,_o.jsx)("div",{className:"take-photo-wrapper",style:{background:"linear-gradient(90deg, #55566B 0%, #2B2C46 100%)"},children:(0,_o.jsx)("div",{className:"outer",onClick:()=>{r(!n)},children:(0,_o.jsx)("div",{className:"inner",children:(0,_o.jsx)(l_,{color:"#2B2C46"})})})})}),(0,_o.jsx)("div",{className:"box-screenshot-camera",children:(0,_o.jsx)(Po,{isToggle:n,onToggleModal:()=>{r(!n)}})}),e.experienceVisualSearch?(0,_o.jsx)(Kk,{}):""]})};const c_=function(){let e=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"})?u_:i_;return(0,_o.jsx)(e,{})};var d_=n(1204),f_=n(7263);function h_(e,t){var n;let r;return t.forEach((t=>{(function(e,t){const n=e.attribute;return null!==n&&void 0!==n&&n.attributes?(null===n||void 0===n?void 0:n.attributes[0])===t.attribute:n===t.attribute})(t,e)&&(r=t)})),(null===e||void 0===e||null===(n=e.items)||void 0===n?void 0:n.map((e=>{var t;return{category:null===(t=r)||void 0===t?void 0:t.header,label:e.label,value:e.value}})))||[]}function p_(e){let{children:n,type:r="native",className:i,items:o,refine:a}=e;const s=(0,t.useCallback)((()=>a(o)),[a,o]),{settings:l}=Nr((e=>e));return(0,_o.jsx)(oi,{type:r,disabled:!o.length,className:i,onClick:s,style:{color:l.theme.secondaryColor,fontWeight:"bold",textTransform:"none",padding:0},children:n})}const g_=Lx((0,t.memo)(p_,ms()));Yf(0);const m_=Lx((function(e){let{items:n,refine:r,className:i,statusSwitchButton:o}=e;const a=Nr((e=>e)),{settings:s}=a,{t:l}=Ml(),[u,c]=(0,t.useState)([]);(0,t.useEffect)((()=>{o&&c(n)}),[n,o]);const d=(0,t.useMemo)((()=>u.reduce(((e,t)=>[...e,...h_(t,null===s||void 0===s?void 0:s.refinements)]),[])),[s,u]);return d.length?(0,_o.jsx)("div",{className:i,style:{marginBottom:d.length>0?"10px":"0px",marginTop:d.length>0?"16px":"0px"},children:(0,_o.jsxs)("ul",{className:"flex flex-wrap gap-3",children:[d.map((e=>(0,_o.jsxs)("li",{children:[e.label,(0,_o.jsx)(Dk.A,{style:{fontSize:"14px",fontWeight:"bold",cursor:"pointer"},onClick:()=>r(e.value)})]},[e.category,e.label].join(":")))),(0,_o.jsx)("li",{className:th()("flex items-center",{hidden:d.length<2}),children:(0,_o.jsx)(g_,{className:"text-f12 fw-600",children:l("Clear all")})},"clear")]})}):null}));var v_=[0,1,2,3,4,5,6,7,8,9,10],y_=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function b_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var x_=t.forwardRef((function(e,n){var r=e.alignContent,i=void 0===r?"stretch":r,o=e.alignItems,a=void 0===o?"stretch":o,s=e.classes,l=e.className,u=e.component,c=void 0===u?"div":u,d=e.container,f=void 0!==d&&d,h=e.direction,p=void 0===h?"row":h,g=e.item,m=void 0!==g&&g,v=e.justify,y=e.justifyContent,b=void 0===y?"flex-start":y,x=e.lg,w=void 0!==x&&x,C=e.md,S=void 0!==C&&C,k=e.sm,_=void 0!==k&&k,E=e.spacing,P=void 0===E?0:E,O=e.wrap,R=void 0===O?"wrap":O,A=e.xl,T=void 0!==A&&A,N=e.xs,F=void 0!==N&&N,M=e.zeroMinWidth,L=void 0!==M&&M,I=(0,Fr.A)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),D=(0,Mr.A)(s.root,l,f&&[s.container,0!==P&&s["spacing-xs-".concat(String(P))]],m&&s.item,L&&s.zeroMinWidth,"row"!==p&&s["direction-xs-".concat(String(p))],"wrap"!==R&&s["wrap-xs-".concat(String(R))],"stretch"!==a&&s["align-items-xs-".concat(String(a))],"stretch"!==i&&s["align-content-xs-".concat(String(i))],"flex-start"!==(v||b)&&s["justify-content-xs-".concat(String(v||b))],!1!==F&&s["grid-xs-".concat(String(F))],!1!==_&&s["grid-sm-".concat(String(_))],!1!==S&&s["grid-md-".concat(String(S))],!1!==w&&s["grid-lg-".concat(String(w))],!1!==T&&s["grid-xl-".concat(String(T))]);return t.createElement(c,(0,j.A)({className:D,ref:n},I))})),w_=(0,Lr.A)((function(e){return(0,j.A)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return v_.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(b_(i,2)),width:"calc(100% + ".concat(b_(i),")"),"& > $item":{padding:b_(i,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};y_.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?(0,j.A)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(x_);const C_=w_;function S_(e){return S_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S_(e)}function k_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==S_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==S_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===S_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function __(e,t,n){var r=nl(e,t,n,"page",1);return"string"===typeof r?parseInt(r,10):r}const E_=qs({displayName:"AlgoliaPagination",$$type:"ais.pagination",getProvidedProps:function(e,t,n){var r=$s(n,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!r)return null;var i=r.nbPages;return{nbPages:i,currentRefinement:__(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:i>1}},refine:function(e,t,n){return function(e,t,n,r){return el(t,k_({},"page",n),r,!1)}(0,t,n,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return rl(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},"page")},getSearchParameters:function(e,t,n){return e.setPage(__(t,n,{ais:t.contextValue,multiIndexContext:t.indexContextValue})-1)},getMetadata:function(){return{id:"page"}}});const P_=E_((function(e){let{children:t}=e;return(0,_o.jsxs)(C_,{container:!0,justifyContent:"space-between",alignItems:"center",style:{height:"100%"},children:[t,(0,_o.jsx)(C_,{item:!0,className:"item-notify-right",style:{minWidth:32}})]})})),j_=P_;var O_,R_=n(4307);function A_(){return A_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A_.apply(this,arguments)}function T_(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",A_({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,O_||(O_=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7972 0.00924418C14.7887 0.00617139 14.7801 0.00310346 14.7715 0.000312494L14.7718 0H10.1658C10.1495 0.0055061 10.1332 0.0109244 10.1168 0.0163371C10.0897 0.0253626 10.0625 0.0343727 10.0355 0.0437491C9.7444 0.14531 9.55892 0.345306 9.51318 0.649362C9.46744 0.952481 9.57835 1.20154 9.82963 1.3831C9.98534 1.4956 10.1642 1.51778 10.3504 1.51778C11.0032 1.51711 11.6559 1.51724 12.3085 1.51737C12.5695 1.51742 12.8305 1.51747 13.0915 1.51747H13.2639C13.269 1.5298 13.2743 1.54201 13.2796 1.55418C13.2832 1.56269 13.2869 1.57117 13.2905 1.57966C13.2689 1.59688 13.2468 1.61354 13.2246 1.63019C13.1757 1.667 13.1267 1.70381 13.084 1.74684C11.6554 3.18824 10.2274 4.63064 8.79949 6.07292C8.44459 6.43139 8.0897 6.78986 7.73481 7.1483C7.5428 7.3422 7.35058 7.53593 7.15835 7.72968C6.77404 8.117 6.3897 8.50437 6.00688 8.89326C5.73712 9.16763 5.68824 9.53294 5.87184 9.83543C6.13942 10.2764 6.71027 10.3182 7.10129 9.92356L14.5306 2.42152C14.5571 2.3949 14.5844 2.36913 14.6166 2.33882C14.632 2.32429 14.6485 2.30873 14.6666 2.29152C14.6666 2.31084 14.6669 2.32706 14.6673 2.34125C14.6678 2.3663 14.6683 2.38504 14.6663 2.40339C14.5466 3.49556 14.4516 4.58928 14.4394 5.68895C14.4344 6.1455 14.7346 6.49144 15.1625 6.50643C15.6049 6.52206 15.9405 6.20175 15.9508 5.73833C15.9547 5.5656 15.9587 5.39286 15.9627 5.22011C15.9814 4.41935 16 3.61845 16 2.81776C16 2.20964 15.969 1.60028 15.9255 0.993418C15.8847 0.429054 15.6463 0.182809 15.0899 0.0653112C15.0463 0.056019 15.0021 0.049588 14.9578 0.0431549C14.9246 0.0383382 14.8915 0.0335204 14.8586 0.0274995C14.8377 0.0237686 14.8174 0.0164929 14.7972 0.00924418ZM6.65735 0.0116066C6.6465 0.00778246 6.63564 0.00395385 6.62471 0.000320783H2.08166C2.04398 0.00756588 2.00622 0.0144228 1.96845 0.0212791C1.88406 0.0366024 1.79967 0.0519232 1.71634 0.0715694C0.751956 0.300315 0.0510725 1.14561 0.00595529 2.1334C0.00282215 2.2009 0.00219552 2.26871 0.00219552 2.33621C0.00210456 3.43333 0.00225127 4.53048 0.00239798 5.62763C0.00275661 8.30959 0.00311526 10.9916 2.32127e-06 13.6735C-0.000937621 14.4497 0.283551 15.0803 0.900467 15.5553C1.1906 15.7784 1.52114 15.9144 1.88365 15.9713C1.90744 15.9748 1.93052 15.9822 1.95366 15.9896C1.96495 15.9932 1.97626 15.9968 1.98767 16H13.9882C13.9923 15.9975 13.9963 15.9945 14.0003 15.9916C14.009 15.9852 14.0177 15.9788 14.0274 15.9769C15.2603 15.7247 15.9524 14.8832 15.9524 13.6332C15.9524 13.3632 15.9524 13.0932 15.9524 12.8233C15.9525 11.7443 15.9525 10.6654 15.9518 9.58638C15.9518 9.50326 15.9493 9.4192 15.937 9.33733C15.885 8.98608 15.6093 8.73327 15.2471 8.70015C14.9125 8.66953 14.5788 8.89015 14.4807 9.2217C14.4475 9.3342 14.4397 9.45763 14.4397 9.57607C14.4384 10.29 14.4384 11.0038 14.4383 11.7176C14.4383 12.3839 14.4383 13.0502 14.4372 13.7166C14.4366 14.1979 14.1352 14.4957 13.6536 14.4957C9.86751 14.4963 6.08143 14.4966 2.29534 14.4957C1.81284 14.4957 1.513 14.1963 1.513 13.7157C1.51237 9.90856 1.51268 6.10114 1.51362 2.29403C1.51362 2.21653 1.51644 2.13653 1.53555 2.06216C1.62454 1.71497 1.90526 1.51842 2.31289 1.5181C3.07025 1.51758 3.82752 1.51754 4.58475 1.51751C5.1905 1.51747 5.79622 1.51744 6.40195 1.51717C6.47464 1.51685 6.54826 1.51623 6.62064 1.5081C6.98283 1.46779 7.26168 1.18374 7.28706 0.832179C7.31463 0.452499 7.08779 0.130318 6.72591 0.0337576C6.70279 0.0276219 6.6801 0.019624 6.65735 0.0116066Z"})))}const N_=t.forwardRef(T_);n.p;var F_;function M_(){return M_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M_.apply(this,arguments)}function L_(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",M_({width:10,height:11,viewBox:"0 0 10 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,F_||(F_=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.56905 7.91401C6.92789 7.46225 7.47234 7.19773 8.04926 7.19483C9.10003 7.19483 9.95185 8.04665 9.95185 9.09742C9.95185 10.1482 9.10003 11 8.04926 11C6.99849 11 6.14667 10.1482 6.14667 9.09742C6.14847 8.92726 6.17408 8.75819 6.22277 8.59513L3.44118 6.85616C2.93785 7.48979 2.0888 7.73571 1.32474 7.46917C0.560687 7.20264 0.0488281 6.48196 0.0488281 5.67275C0.0488281 4.86354 0.560687 4.14287 1.32474 3.87633C2.0888 3.60979 2.93785 3.85571 3.44118 4.48934L6.22277 2.75037C6.17408 2.58732 6.14847 2.41825 6.14667 2.24809C6.14083 1.32028 6.80508 0.523574 7.7188 0.36244C8.63252 0.201306 9.52922 0.722744 9.84111 1.59657C10.153 2.4704 9.78909 3.44177 8.97983 3.89559C8.17057 4.34941 7.15198 4.15332 6.56905 3.4315L3.78746 5.17047C3.88883 5.49765 3.88883 5.84785 3.78746 6.17504L6.56905 7.91401ZM9.19066 2.24808C9.19066 1.61762 8.67957 1.10653 8.04911 1.10653C7.41864 1.10653 6.90755 1.61762 6.90755 2.24808C6.90755 2.87855 7.41864 3.38964 8.04911 3.38964C8.67957 3.38964 9.19066 2.87855 9.19066 2.24808ZM1.96089 6.81431C1.33043 6.81431 0.819336 6.30322 0.819336 5.67275C0.819336 5.04229 1.33043 4.5312 1.96089 4.5312C2.59136 4.5312 3.10245 5.04229 3.10245 5.67275C3.10245 6.30322 2.59136 6.81431 1.96089 6.81431ZM6.90755 9.09742C6.90755 9.72788 7.41864 10.239 8.04911 10.239C8.67957 10.239 9.19066 9.72788 9.19066 9.09742C9.19066 8.46695 8.67957 7.95586 8.04911 7.95586C7.41864 7.95586 6.90755 8.46695 6.90755 9.09742Z",fill:"currentColor"})))}const I_=t.forwardRef(L_);n.p;var D_;function z_(){return z_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z_.apply(this,arguments)}function B_(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",z_({width:11,height:11,viewBox:"0 0 11 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,D_||(D_=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.53059 7.14308H3.81466V9.11675C3.7348 9.90592 4.28699 10.6128 5.04806 10.6957C5.14416 10.7075 5.24128 10.7075 5.33738 10.6957H5.93504C6.19675 10.6882 6.42056 10.4984 6.47941 10.2338V10.1865L6.86009 7.68387L8.20769 5.56415H10.6669V0.0378923H3.43399C0.601741 0.0378923 0.00788307 1.75498 0.00788307 3.19576V5.56415C-0.0719852 6.35332 0.480213 7.06022 1.24128 7.14308C1.33738 7.15493 1.43449 7.15493 1.53059 7.14308ZM8.38276 0.827361H9.90548V4.77469H8.38276V0.827361ZM3.43384 0.827355C1.6142 0.827355 0.769092 1.5813 0.769092 3.19575V5.56415C0.769092 6.13256 0.982271 6.35361 1.53045 6.35361H4.57587V9.11674C4.57587 9.68516 4.78905 9.90621 5.33723 9.90621H5.76739L5.82069 9.51148L6.09858 7.39176L7.6213 5.051V0.827355H3.43384Z",fill:"currentColor"})))}const U_=t.forwardRef(B_);n.p;var V_;function H_(){return H_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H_.apply(this,arguments)}function W_(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",H_({width:12,height:11,viewBox:"0 0 12 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,V_||(V_=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.80278 3.59938H7.51871V1.62572C7.59858 0.836545 7.04638 0.129649 6.28531 0.0467847C6.18921 0.0349422 6.0921 0.0349422 5.996 0.0467847H5.39833C5.13662 0.0542197 4.91282 0.244093 4.85396 0.508622V0.55599L4.47329 3.0586L3.12568 5.17831H0.666504V10.7046H7.89939C10.7316 10.7046 11.3255 8.98748 11.3255 7.54671V5.17831C11.4054 4.38914 10.8532 3.68224 10.0921 3.59938C9.99599 3.58754 9.89888 3.58754 9.80278 3.59938ZM2.95061 9.9151H1.4279V5.96777H2.95061V9.9151ZM7.89954 9.9151C9.71918 9.9151 10.5643 9.16116 10.5643 7.5467V5.1783C10.5643 4.60989 10.3511 4.38884 9.80293 4.38884H6.7575V1.62571C6.7575 1.05729 6.54432 0.836243 5.99615 0.836243H5.56598L5.51268 1.23098L5.23479 3.35069L3.71208 5.69146V9.9151H7.89954Z",fill:"currentColor"})))}const G_=t.forwardRef(W_);n.p;var q_;function K_(){return K_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K_.apply(this,arguments)}function X_(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",K_({width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,q_||(q_=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.643 4.65152L8.343 1.24366C8.12642 1.12191 7.85958 1.12191 7.643 1.24366L1.34303 4.65152C1.12828 4.77548 0.997588 5.00142 1.00003 5.24448V12.0602C1.00047 12.3061 1.13689 12.5327 1.35703 12.6532L7.657 16.061C7.87358 16.1828 8.14042 16.1828 8.357 16.061L14.657 12.6532C14.8717 12.5292 15.0024 12.3033 15 12.0602V5.24448C14.9995 4.9986 14.8631 4.772 14.643 4.65152ZM7.99982 2.61361L12.8578 5.24447L7.99982 7.87534L3.14185 5.24447L7.99982 2.61361ZM2.40015 6.40315L7.30012 9.05447V14.3094L2.40015 11.6581V6.40315ZM8.69983 14.3094V9.05447L13.5998 6.40315V11.6581L8.69983 14.3094Z",fill:"#2B2C46"})))}const Z_=t.forwardRef(X_);n.p;const Y_=n.p+"static/media/no-image.0792bd463c7917d0b67f4a55a9bc55d9.svg";var Q_=n(3659);const $_=n.p+"static/media/email_share.0b8aeb4edc7c53e944b9c403ec77df2e.svg",J_=e=>{const{dataItem:t,isOpen:n,setModalState:r}=e,i=t["image(main_similarity)"]||t.main_image_link;return(0,_o.jsx)(us,{openModal:n,handleClose:()=>r(!1),children:(0,_o.jsxs)("div",{className:"box-modal-default box-modal-share",style:{padding:"4px"},children:[(0,_o.jsx)("div",{className:"ml-auto",style:{width:"fit-content",marginRight:5},children:(0,_o.jsx)(oi,{style:{padding:0},onClick:()=>r(!1),children:(0,_o.jsx)(Dk.A,{style:{fontSize:16,color:"#55566B"}})})}),(0,_o.jsxs)("div",{className:"box-content-box-share",children:[(0,_o.jsx)(Zd,{className:"text-f12 text-gray text-bold",style:{marginBottom:"5px"},children:"Share"}),i&&(0,_o.jsxs)(so,{component:"form",className:"box-input",children:[(0,_o.jsx)("div",{className:"text-f9 text-gray",style:{width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingRight:"10px"},children:i}),(0,_o.jsx)(po,{color:"secondary","aria-label":"directions",style:{padding:"4px"},onClick:()=>{navigator.clipboard.writeText(i)},children:(0,_o.jsx)(Q_.A,{style:{fontSize:14}})})]}),(0,_o.jsxs)(so,{component:"form",className:"box-input",style:{marginTop:"12px",marginBottom:"8px"},children:[(0,_o.jsxs)("div",{className:"text-f9 text-gray",style:{width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingRight:"10px",display:"flex",alignItems:"center"},children:[(0,_o.jsx)("span",{style:{fontWeight:"bold",paddingRight:"4px"},children:"SKU:"})," ",t.sku]}),(0,_o.jsx)(po,{color:"secondary","aria-label":"directions",style:{padding:"4px"},onClick:()=>{navigator.clipboard.writeText(t.sku)},children:(0,_o.jsx)(Q_.A,{style:{fontSize:14}})})]}),(0,_o.jsx)("div",{className:"box-media-share",style:{marginTop:"18px",display:"flex"},children:(0,_o.jsx)("a",{style:{padding:0},href:"mailto:support@nyris.io?subject=GF-Sparepart-Search&body= ".concat(encodeURIComponent("SKU: "+t.sku+"\r\n"+(i?"Image Link: ".concat(i):""))," "),children:(0,_o.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,_o.jsx)("img",{width:40,height:40,src:$_,alt:"icon_email"})})})})]})]})})},eE=async(e,t)=>{const{search:n,settings:r}=e,i=n.sessionId,o=n.requestId||n.sessionId;return await nE(r,i,o,{event:"feedback",data:{success:t}})},tE=async(e,t,n)=>{const{search:r,settings:i}=e;return await nE(i,r.sessionId,r.requestId,{event:"conversion",data:{positions:[t],...n?{product_ids:[n]}:{}}})},nE=async(e,t,n,r)=>{const i=new(wo())(e);if(t&&n)try{await i.sendFeedback(t,n,r).then((e=>{}))}catch(o){console.log("error sendFeedbackByApi",o)}};var rE=t.forwardRef((function(e,n){var r=e.children,i=e.classes,o=e.className,a=e.collapsedHeight,s=e.collapsedSize,l=void 0===s?"0px":s,u=e.component,c=void 0===u?"div":u,d=e.disableStrictModeCompat,f=void 0!==d&&d,h=e.in,p=e.onEnter,g=e.onEntered,m=e.onEntering,v=e.onExit,y=e.onExited,b=e.onExiting,x=e.style,w=e.timeout,C=void 0===w?Wi.p0.standard:w,S=e.TransitionComponent,k=void 0===S?Hi:S,_=(0,Fr.A)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),E=qi(),P=t.useRef(),O=t.useRef(null),R=t.useRef(),A="number"===typeof(a||l)?"".concat(a||l,"px"):a||l;t.useEffect((function(){return function(){clearTimeout(P.current)}}),[]);var T=E.unstable_strictMode&&!f,N=t.useRef(null),F=(0,zr.A)(n,T?N:void 0),M=function(e){return function(t,n){if(e){var r=T?[N.current,t]:[t,n],i=(0,Fi.A)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},L=M((function(e,t){e.style.height=A,p&&p(e,t)})),I=M((function(e,t){var n=O.current?O.current.clientHeight:0,r=Xi({style:x,timeout:C},{mode:"enter"}).duration;if("auto"===C){var i=E.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(i,"ms"),R.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),m&&m(e,t)})),D=M((function(e,t){e.style.height="auto",g&&g(e,t)})),z=M((function(e){var t=O.current?O.current.clientHeight:0;e.style.height="".concat(t,"px"),v&&v(e)})),B=M(y),U=M((function(e){var t=O.current?O.current.clientHeight:0,n=Xi({style:x,timeout:C},{mode:"exit"}).duration;if("auto"===C){var r=E.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),R.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=A,b&&b(e)}));return t.createElement(k,(0,j.A)({in:h,onEnter:L,onEntered:D,onEntering:I,onExit:z,onExited:B,onExiting:U,addEndListener:function(e,t){var n=T?e:t;"auto"===C&&(P.current=setTimeout(n,R.current||0))},nodeRef:T?N:void 0,timeout:"auto"===C?null:C},_),(function(e,n){return t.createElement(c,(0,j.A)({className:(0,Mr.A)(i.root,i.container,o,{entered:i.entered,exited:!h&&"0px"===A&&i.hidden}[e]),style:(0,j.A)({minHeight:A},x),ref:F},n),t.createElement("div",{className:i.wrapper,ref:O},t.createElement("div",{className:i.wrapperInner},r)))}))}));rE.muiSupportAuto=!0;const iE=(0,Lr.A)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(rE);var oE=n(7106);function aE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var sE="(prefers-reduced-motion: reduce)",lE=4,uE=5,cE={CREATED:1,MOUNTED:2,IDLE:3,MOVING:lE,SCROLLING:uE,DRAGGING:6,DESTROYED:7};function dE(e){e.length=0}function fE(e,t,n){return Array.prototype.slice.call(e,t,n)}function hE(e){return e.bind.apply(e,[null].concat(fE(arguments,1)))}var pE=setTimeout,gE=function(){};function mE(e){return requestAnimationFrame(e)}function vE(e,t){return typeof t===e}function yE(e){return!SE(e)&&vE("object",e)}var bE=Array.isArray,xE=hE(vE,"function"),wE=hE(vE,"string"),CE=hE(vE,"undefined");function SE(e){return null===e}function kE(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch($o){return!1}}function _E(e){return bE(e)?e:[e]}function EE(e,t){_E(e).forEach(t)}function PE(e,t){return e.indexOf(t)>-1}function jE(e,t){return e.push.apply(e,_E(t)),e}function OE(e,t,n){e&&EE(t,(function(t){t&&e.classList[n?"add":"remove"](t)}))}function RE(e,t){OE(e,wE(t)?t.split(" "):t,!0)}function AE(e,t){EE(t,e.appendChild.bind(e))}function TE(e,t){EE(e,(function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)}))}function NE(e,t){return kE(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function FE(e,t){var n=e?fE(e.children):[];return t?n.filter((function(e){return NE(e,t)})):n}function ME(e,t){return t?FE(e,t)[0]:e.firstElementChild}var LE=Object.keys;function IE(e,t,n){return e&&(n?LE(e).reverse():LE(e)).forEach((function(n){"__proto__"!==n&&t(e[n],n)})),e}function DE(e){return fE(arguments,1).forEach((function(t){IE(t,(function(n,r){e[r]=t[r]}))})),e}function zE(e){return fE(arguments,1).forEach((function(t){IE(t,(function(t,n){bE(t)?e[n]=t.slice():yE(t)?e[n]=zE({},yE(e[n])?e[n]:{},t):e[n]=t}))})),e}function BE(e,t){EE(t||LE(e),(function(t){delete e[t]}))}function UE(e,t){EE(e,(function(e){EE(t,(function(t){e&&e.removeAttribute(t)}))}))}function VE(e,t,n){yE(t)?IE(t,(function(t,n){VE(e,n,t)})):EE(e,(function(e){SE(n)||""===n?UE(e,t):e.setAttribute(t,String(n))}))}function HE(e,t,n){var r=document.createElement(e);return t&&(wE(t)?RE(r,t):VE(r,t)),n&&AE(n,r),r}function WE(e,t,n){if(CE(n))return getComputedStyle(e)[t];SE(n)||(e.style[t]=""+n)}function GE(e,t){WE(e,"display",t)}function qE(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function KE(e,t){return e.getAttribute(t)}function XE(e,t){return e&&e.classList.contains(t)}function ZE(e){return e.getBoundingClientRect()}function YE(e){EE(e,(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))}function QE(e){return ME((new DOMParser).parseFromString(e,"text/html").body)}function $E(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function JE(e,t){return e&&e.querySelector(t)}function eP(e,t){return t?fE(e.querySelectorAll(t)):[]}function tP(e,t){OE(e,t,!1)}function nP(e){return e.timeStamp}function rP(e){return wE(e)?e:e?e+"px":""}var iP="splide",oP="data-"+iP;function aP(e,t){if(!e)throw new Error("["+iP+"] "+(t||""))}var sP=Math.min,lP=Math.max,uP=Math.floor,cP=Math.ceil,dP=Math.abs;function fP(e,t,n){return dP(e-t)<n}function hP(e,t,n,r){var i=sP(t,n),o=lP(t,n);return r?i<e&&e<o:i<=e&&e<=o}function pP(e,t,n){var r=sP(t,n),i=lP(t,n);return sP(lP(r,e),i)}function gP(e){return+(e>0)-+(e<0)}function mP(e,t){return EE(t,(function(t){e=e.replace("%s",""+t)})),e}function vP(e){return e<10?"0"+e:""+e}var yP={};function bP(){var e=[];function t(e,t,n){EE(e,(function(e){e&&EE(t,(function(t){t.split(" ").forEach((function(t){var r=t.split(".");n(e,r[0],r[1])}))}))}))}return{bind:function(n,r,i,o){t(n,r,(function(t,n,r){var a="addEventListener"in t,s=a?t.removeEventListener.bind(t,n,i,o):t.removeListener.bind(t,i);a?t.addEventListener(n,i,o):t.addListener(i),e.push([t,n,r,i,s])}))},unbind:function(n,r,i){t(n,r,(function(t,n,r){e=e.filter((function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==r||i&&e[3]!==i)||(e[4](),!1)}))}))},dispatch:function(e,t,n){var r,i=!0;return"function"===typeof CustomEvent?r=new CustomEvent(t,{bubbles:i,detail:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,n),e.dispatchEvent(r),r},destroy:function(){e.forEach((function(e){e[4]()})),dE(e)}}}var xP="mounted",wP="ready",CP="move",SP="moved",kP="click",_P="active",EP="inactive",PP="visible",jP="hidden",OP="refresh",RP="updated",AP="resize",TP="resized",NP="drag",FP="dragging",MP="dragged",LP="scroll",IP="scrolled",DP="destroy",zP="arrows:mounted",BP="arrows:updated",UP="pagination:mounted",VP="pagination:updated",HP="navigation:mounted",WP="autoplay:play",GP="autoplay:playing",qP="autoplay:pause",KP="lazyload:loaded",XP="sk",ZP="sh",YP="ei";function QP(e){var t=e?e.event.bus:document.createDocumentFragment(),n=bP();return e&&e.event.on(DP,n.destroy),DE(n,{bus:t,on:function(e,r){n.bind(t,_E(e).join(" "),(function(e){r.apply(r,bE(e.detail)?e.detail:[])}))},off:hE(n.unbind,t),emit:function(e){n.dispatch(t,e,fE(arguments,1))}})}function $P(e,t,n,r){var i,o,a=Date.now,s=0,l=!0,u=0;function c(){if(!l){if(s=e?sP((a()-i)/e,1):1,n&&n(s),s>=1&&(t(),i=a(),r&&++u>=r))return d();o=mE(c)}}function d(){l=!0}function f(){o&&cancelAnimationFrame(o),s=0,o=0,l=!0}return{start:function(t){t||f(),i=a()-(t?s*e:0),l=!1,o=mE(c)},rewind:function(){i=a(),s=0,n&&n(s)},pause:d,cancel:f,set:function(t){e=t},isPaused:function(){return l}}}var JP="Arrow",ej=JP+"Left",tj=JP+"Right",nj=JP+"Up",rj=JP+"Down",ij="ttb",oj={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[nj,tj],ArrowRight:[rj,ej]};var aj="role",sj="tabindex",lj="aria-",uj=lj+"controls",cj=lj+"current",dj=lj+"selected",fj=lj+"label",hj=lj+"labelledby",pj=lj+"hidden",gj=lj+"orientation",mj=lj+"roledescription",vj=lj+"live",yj=lj+"busy",bj=lj+"atomic",xj=[aj,sj,"disabled",uj,cj,fj,hj,pj,gj,mj],wj=iP+"__",Cj="is-",Sj=iP,kj=wj+"track",_j=wj+"list",Ej=wj+"slide",Pj=Ej+"--clone",jj=Ej+"__container",Oj=wj+"arrows",Rj=wj+"arrow",Aj=Rj+"--prev",Tj=Rj+"--next",Nj=wj+"pagination",Fj=Nj+"__page",Mj=wj+"progress"+"__bar",Lj=wj+"toggle",Ij=wj+"sr",Dj=Cj+"initialized",zj=Cj+"active",Bj=Cj+"prev",Uj=Cj+"next",Vj=Cj+"visible",Hj=Cj+"loading",Wj=Cj+"focus-in",Gj=Cj+"overflow",qj=[zj,Vj,Bj,Uj,Hj,Wj,Gj],Kj={slide:Ej,clone:Pj,arrows:Oj,arrow:Rj,prev:Aj,next:Tj,pagination:Nj,page:Fj,spinner:wj+"spinner"};var Xj="touchstart mousedown",Zj="touchmove mousemove",Yj="touchend touchcancel mouseup click";var Qj="slide",$j="loop",Jj="fade";function eO(e,t,n,r){var i,o=QP(e),a=o.on,s=o.emit,l=o.bind,u=e.Components,c=e.root,d=e.options,f=d.isNavigation,h=d.updateOnMove,p=d.i18n,g=d.pagination,m=d.slideFocus,v=u.Direction.resolve,y=KE(r,"style"),b=KE(r,fj),x=n>-1,w=ME(r,"."+jj);function C(){var i=e.splides.map((function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""})).join(" ");VE(r,fj,mP(p.slideX,(x?n:t)+1)),VE(r,uj,i),VE(r,aj,m?"button":""),m&&UE(r,mj)}function S(){i||k()}function k(){if(!i){var n=e.index;!function(){var e=_();e!==XE(r,zj)&&(OE(r,zj,e),VE(r,cj,f&&e||""),s(e?_P:EP,E))}(),function(){var t=function(){if(e.is(Jj))return _();var t=ZE(u.Elements.track),n=ZE(r),i=v("left",!0),o=v("right",!0);return uP(t[i])<=cP(n[i])&&uP(n[o])<=cP(t[o])}(),n=!t&&(!_()||x);e.state.is([lE,uE])||VE(r,pj,n||"");VE(eP(r,d.focusableNodes||""),sj,n?-1:""),m&&VE(r,sj,n?-1:0);t!==XE(r,Vj)&&(OE(r,Vj,t),s(t?PP:jP,E));if(!t&&document.activeElement===r){var i=u.Slides.getAt(e.index);i&&qE(i.slide)}}(),OE(r,Bj,t===n-1),OE(r,Uj,t===n+1)}}function _(){var r=e.index;return r===t||d.cloneStatus&&r===n}var E={index:t,slideIndex:n,slide:r,container:w,isClone:x,mount:function(){x||(r.id=c.id+"-slide"+vP(t+1),VE(r,aj,g?"tabpanel":"group"),VE(r,mj,p.slide),VE(r,fj,b||mP(p.slideLabel,[t+1,e.length]))),l(r,"click",hE(s,kP,E)),l(r,"keydown",hE(s,XP,E)),a([SP,ZP,IP],k),a(HP,C),h&&a(CP,S)},destroy:function(){i=!0,o.destroy(),tP(r,qj),UE(r,xj),VE(r,"style",y),VE(r,fj,b||"")},update:k,style:function(e,t,n){WE(n&&w||r,e,t)},isWithin:function(n,r){var i=dP(n-t);return x||!d.rewind&&!e.is($j)||(i=sP(i,e.length-i)),i<=r}};return E}var tO=oP+"-interval";var nO={passive:!1,capture:!0};var rO={Spacebar:" ",Right:tj,Left:ej,Up:nj,Down:rj};function iO(e){return e=wE(e)?e:e.key,rO[e]||e}var oO="keydown";var aO=oP+"-lazy",sO=aO+"-srcset",lO="["+aO+"], ["+sO+"]";var uO=[" ","Enter"];var cO=Object.freeze({__proto__:null,Media:function(e,t,n){var r=e.state,i=n.breakpoints||{},o=n.reducedMotion||{},a=bP(),s=[];function l(e){e&&a.destroy()}function u(e,t){var n=matchMedia(t);a.bind(n,"change",c),s.push([e,n])}function c(){var t=r.is(7),i=n.direction,o=s.reduce((function(e,t){return zE(e,t[1].matches?t[0]:{})}),{});BE(n),d(o),n.destroy?e.destroy("completely"===n.destroy):t?(l(!0),e.mount()):i!==n.direction&&e.refresh()}function d(t,i,o){zE(n,t),i&&zE(Object.getPrototypeOf(n),t),!o&&r.is(1)||e.emit(RP,n)}return{setup:function(){var e="min"===n.mediaQuery;LE(i).sort((function(t,n){return e?+t-+n:+n-+t})).forEach((function(t){u(i[t],"("+(e?"min":"max")+"-width:"+t+"px)")})),u(o,sE),c()},destroy:l,reduce:function(e){matchMedia(sE).matches&&(e?zE(n,o):BE(n,LE(o)))},set:d}},Direction:function(e,t,n){return{resolve:function(e,t,r){var i="rtl"!==(r=r||n.direction)||t?r===ij?0:-1:1;return oj[e]&&oj[e][i]||e.replace(/width|left|right/i,(function(e,t){var n=oj[e.toLowerCase()][i]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n}))},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,n){var r,i,o,a=QP(e),s=a.on,l=a.bind,u=e.root,c=n.i18n,d={},f=[],h=[],p=[];function g(){r=y("."+kj),i=ME(r,"."+_j),aP(r&&i,"A track/list element is missing."),jE(f,FE(i,"."+Ej+":not(."+Pj+")")),IE({arrows:Oj,pagination:Nj,prev:Aj,next:Tj,bar:Mj,toggle:Lj},(function(e,t){d[t]=y("."+e)})),DE(d,{root:u,track:r,list:i,slides:f}),function(){var e=u.id||function(e){return""+e+vP(yP[e]=(yP[e]||0)+1)}(iP),t=n.role;u.id=e,r.id=r.id||e+"-track",i.id=i.id||e+"-list",!KE(u,aj)&&"SECTION"!==u.tagName&&t&&VE(u,aj,t);VE(u,mj,c.carousel),VE(i,aj,"presentation")}(),v()}function m(e){var t=xj.concat("style");dE(f),tP(u,h),tP(r,p),UE([r,i],t),UE(u,e?t:["style",mj])}function v(){tP(u,h),tP(r,p),h=b(Sj),p=b(kj),RE(u,h),RE(r,p),VE(u,fj,n.label),VE(u,hj,n.labelledby)}function y(e){var t=JE(u,e);return t&&function(e,t){if(xE(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!NE(n,t);)n=n.parentElement;return n}(t,"."+Sj)===u?t:void 0}function b(e){return[e+"--"+n.type,e+"--"+n.direction,n.drag&&e+"--draggable",n.isNavigation&&e+"--nav",e===Sj&&zj]}return DE(d,{setup:g,mount:function(){s(OP,m),s(OP,g),s(RP,v),l(document,Xj+" keydown",(function(e){o="keydown"===e.type}),{capture:!0}),l(u,"focusin",(function(){OE(u,Wj,!!o)}))},destroy:m})},Slides:function(e,t,n){var r=QP(e),i=r.on,o=r.emit,a=r.bind,s=t.Elements,l=s.slides,u=s.list,c=[];function d(){l.forEach((function(e,t){h(e,t,-1)}))}function f(){g((function(e){e.destroy()})),dE(c)}function h(t,n,r){var i=eO(e,n,r,t);i.mount(),c.push(i),c.sort((function(e,t){return e.index-t.index}))}function p(e){return e?m((function(e){return!e.isClone})):c}function g(e,t){p(t).forEach(e)}function m(e){return c.filter(xE(e)?e:function(t){return wE(e)?NE(t.slide,e):PE(_E(e),t.index)})}return{mount:function(){d(),i(OP,f),i(OP,d)},destroy:f,update:function(){g((function(e){e.update()}))},register:h,get:p,getIn:function(e){var r=t.Controller,i=r.toIndex(e),o=r.hasFocus()?1:n.perPage;return m((function(e){return hP(e.index,i,i+o-1)}))},getAt:function(e){return m(e)[0]},add:function(e,t){EE(e,(function(e){if(wE(e)&&(e=QE(e)),kE(e)){var r=l[t];r?TE(e,r):AE(u,e),RE(e,n.classes.slide),function(e,t){var n=eP(e,"img"),r=n.length;r?n.forEach((function(e){a(e,"load error",(function(){--r||t()}))})):t()}(e,hE(o,AP))}})),o(OP)},remove:function(e){YE(m(e).map((function(e){return e.slide}))),o(OP)},forEach:g,filter:m,style:function(e,t,n){g((function(r){r.style(e,t,n)}))},getLength:function(e){return e?l.length:c.length},isEnough:function(){return c.length>n.perPage}}},Layout:function(e,t,n){var r,i,o,a=QP(e),s=a.on,l=a.bind,u=a.emit,c=t.Slides,d=t.Direction.resolve,f=t.Elements,h=f.root,p=f.track,g=f.list,m=c.getAt,v=c.style;function y(){r=n.direction===ij,WE(h,"maxWidth",rP(n.width)),WE(p,d("paddingLeft"),x(!1)),WE(p,d("paddingRight"),x(!0)),b(!0)}function b(e){var t=ZE(h);(e||i.width!==t.width||i.height!==t.height)&&(WE(p,"height",function(){var e="";r&&(aP(e=w(),"height or heightRatio is missing."),e="calc("+e+" - "+x(!1)+" - "+x(!0)+")");return e}()),v(d("marginRight"),rP(n.gap)),v("width",n.autoWidth?null:rP(n.fixedWidth)||(r?"":C())),v("height",rP(n.fixedHeight)||(r?n.autoHeight?null:C():w()),!0),i=t,u(TP),o!==(o=j())&&(OE(h,Gj,o),u("overflow",o)))}function x(e){var t=n.padding,r=d(e?"right":"left");return t&&rP(t[r]||(yE(t)?0:t))||"0px"}function w(){return rP(n.height||ZE(g).width*n.heightRatio)}function C(){var e=rP(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function S(){return ZE(g)[d("width")]}function k(e,t){var n=m(e||0);return n?ZE(n.slide)[d("width")]+(t?0:P()):0}function _(e,t){var n=m(e);if(n){var r=ZE(n.slide)[d("right")],i=ZE(g)[d("left")];return dP(r-i)+(t?0:P())}return 0}function E(t){return _(e.length-1)-_(0)+k(0,t)}function P(){var e=m(0);return e&&parseFloat(WE(e.slide,d("marginRight")))||0}function j(){return e.is(Jj)||E(!0)>S()}return{mount:function(){y(),l(window,"resize load",function(e,t){var n=$P(t||0,e,null,1);return function(){n.isPaused()&&n.start()}}(hE(u,AP))),s([RP,OP],y),s(AP,b)},resize:b,listSize:S,slideSize:k,sliderSize:E,totalSize:_,getPadding:function(e){return parseFloat(WE(p,d("padding"+(e?"Right":"Left"))))||0},isOverflow:j}},Clones:function(e,t,n){var r,i=QP(e),o=i.on,a=t.Elements,s=t.Slides,l=t.Direction.resolve,u=[];function c(){o(OP,d),o([RP,AP],h),(r=p())&&(!function(t){var r=s.get().slice(),i=r.length;if(i){for(;r.length<t;)jE(r,r);jE(r.slice(-t),r.slice(0,t)).forEach((function(o,l){var c=l<t,d=function(t,r){var i=t.cloneNode(!0);return RE(i,n.classes.clone),i.id=e.root.id+"-clone"+vP(r+1),i}(o.slide,l);c?TE(d,r[0].slide):AE(a.list,d),jE(u,d),s.register(d,l-t+(c?0:i),o.index)}))}}(r),t.Layout.resize(!0))}function d(){f(),c()}function f(){YE(u),dE(u),i.destroy()}function h(){var e=p();r!==e&&(r<e||!e)&&i.emit(OP)}function p(){var r=n.clones;if(e.is($j)){if(CE(r)){var i=n[l("fixedWidth")]&&t.Layout.slideSize(0);r=i&&cP(ZE(a.track)[l("width")]/i)||n[l("autoWidth")]&&e.length||2*n.perPage}}else r=0;return r}return{mount:c,destroy:f}},Move:function(e,t,n){var r,i=QP(e),o=i.on,a=i.emit,s=e.state.set,l=t.Layout,u=l.slideSize,c=l.getPadding,d=l.totalSize,f=l.listSize,h=l.sliderSize,p=t.Direction,g=p.resolve,m=p.orient,v=t.Elements,y=v.list,b=v.track;function x(){t.Controller.isBusy()||(t.Scroll.cancel(),w(e.index),t.Slides.update())}function w(e){C(E(e,!0))}function C(n,r){if(!e.is(Jj)){var i=r?n:function(n){if(e.is($j)){var r=_(n),i=r>t.Controller.getEnd();(r<0||i)&&(n=S(n,i))}return n}(n);WE(y,"transform","translate"+g("X")+"("+i+"px)"),n!==i&&a(ZP)}}function S(e,t){var n=e-j(t),r=h();return e-=m(r*(cP(dP(n)/r)||1))*(t?1:-1)}function k(){C(P(),!0),r.cancel()}function _(e){for(var n=t.Slides.get(),r=0,i=1/0,o=0;o<n.length;o++){var a=n[o].index,s=dP(E(a,!0)-e);if(!(s<=i))break;i=s,r=a}return r}function E(t,r){var i=m(d(t-1)-function(e){var t=n.focus;return"center"===t?(f()-u(e,!0))/2:+t*u(e)||0}(t));return r?function(t){n.trimSpace&&e.is(Qj)&&(t=pP(t,0,m(h(!0)-f())));return t}(i):i}function P(){var e=g("left");return ZE(y)[e]-ZE(b)[e]+m(c(!1))}function j(e){return E(e?t.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){r=t.Transition,o([xP,TP,RP,OP],x)},move:function(e,t,n,i){e!==t&&function(e){var t=m(S(P(),e));return e?t>=0:t<=y[g("scrollWidth")]-ZE(b)[g("width")]}(e>n)&&(k(),C(S(P(),e>n),!0)),s(lE),a(CP,t,n,e),r.start(t,(function(){s(3),a(SP,t,n,e),i&&i()}))},jump:w,translate:C,shift:S,cancel:k,toIndex:_,toPosition:E,getPosition:P,getLimit:j,exceededLimit:function(e,t){t=CE(t)?P():t;var n=!0!==e&&m(t)<m(j(!1)),r=!1!==e&&m(t)>m(j(!0));return n||r},reposition:x}},Controller:function(e,t,n){var r,i,o,a,s=QP(e),l=s.on,u=s.emit,c=t.Move,d=c.getPosition,f=c.getLimit,h=c.toPosition,p=t.Slides,g=p.isEnough,m=p.getLength,v=n.omitEnd,y=e.is($j),b=e.is(Qj),x=hE(E,!1),w=hE(E,!0),C=n.start||0,S=C;function k(){i=m(!0),o=n.perMove,a=n.perPage,r=O();var e=pP(C,0,v?r:i-1);e!==C&&(C=e,c.reposition())}function _(){r!==O()&&u(YP)}function E(e,t){var n=o||(N()?1:a),i=P(C+n*(e?-1:1),C,!(o||N()));return-1===i&&b&&!fP(d(),f(!e),1)?e?0:r:t?i:j(i)}function P(t,s,l){if(g()||N()){var u=function(t){if(b&&"move"===n.trimSpace&&t!==C)for(var r=d();r===h(t,!0)&&hP(t,0,e.length-1,!n.rewind);)t<C?--t:++t;return t}(t);u!==t&&(s=t,t=u,l=!1),t<0||t>r?t=o||!hP(0,t,s,!0)&&!hP(r,s,t,!0)?y?l?t<0?-(i%a||a):i:t:n.rewind?t<0?r:0:-1:R(A(t)):l&&t!==s&&(t=R(A(s)+(t<s?-1:1)))}else t=-1;return t}function j(e){return y?(e+i)%i||0:e}function O(){for(var e=i-(N()||y&&o?1:a);v&&e-- >0;)if(h(i-1,!0)!==h(e,!0)){e++;break}return pP(e,0,i-1)}function R(e){return pP(N()?e:a*e,0,r)}function A(e){return N()?sP(e,r):uP((e>=r?i-1:e)/a)}function T(e){e!==C&&(S=C,C=e)}function N(){return!CE(n.focus)||n.isNavigation}function F(){return e.state.is([lE,uE])&&!!n.waitForTransition}return{mount:function(){k(),l([RP,OP,YP],k),l(TP,_)},go:function(e,t,n){if(!F()){var i=function(e){var t=C;if(wE(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],i=n[1],o=n[2];"+"===i||"-"===i?t=P(C+ +(""+i+(+o||1)),C):">"===i?t=o?R(+o):x(!0):"<"===i&&(t=w(!0))}else t=y?e:pP(e,0,r);return t}(e),o=j(i);o>-1&&(t||o!==C)&&(T(o),c.move(i,o,S,n))}},scroll:function(e,n,i,o){t.Scroll.scroll(e,n,i,(function(){var e=j(c.toIndex(d()));T(v?sP(e,r):e),o&&o()}))},getNext:x,getPrev:w,getAdjacent:E,getEnd:O,setIndex:T,getIndex:function(e){return e?S:C},toIndex:R,toPage:A,toDest:function(e){var t=c.toIndex(e);return b?pP(t,0,r):t},hasFocus:N,isBusy:F}},Arrows:function(e,t,n){var r,i,o=QP(e),a=o.on,s=o.bind,l=o.emit,u=n.classes,c=n.i18n,d=t.Elements,f=t.Controller,h=d.arrows,p=d.track,g=h,m=d.prev,v=d.next,y={};function b(){!function(){var e=n.arrows;!e||m&&v||(g=h||HE("div",u.arrows),m=S(!0),v=S(!1),r=!0,AE(g,[m,v]),!h&&TE(g,p));m&&v&&(DE(y,{prev:m,next:v}),GE(g,e?"":"none"),RE(g,i=Oj+"--"+n.direction),e&&(a([xP,SP,OP,IP,YP],k),s(v,"click",hE(C,">")),s(m,"click",hE(C,"<")),k(),VE([m,v],uj,p.id),l(zP,m,v)))}(),a(RP,x)}function x(){w(),b()}function w(){o.destroy(),tP(g,i),r?(YE(h?[m,v]:g),m=v=null):UE([m,v],xj)}function C(e){f.go(e,!0)}function S(e){return QE('<button class="'+u.arrow+" "+(e?u.prev:u.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(n.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function k(){if(m&&v){var t=e.index,n=f.getPrev(),r=f.getNext(),i=n>-1&&t<n?c.last:c.prev,o=r>-1&&t>r?c.first:c.next;m.disabled=n<0,v.disabled=r<0,VE(m,fj,i),VE(v,fj,o),l(BP,m,v,n,r)}}return{arrows:y,mount:b,destroy:w,update:k}},Autoplay:function(e,t,n){var r,i,o=QP(e),a=o.on,s=o.bind,l=o.emit,u=$P(n.interval,e.go.bind(e,">"),(function(e){var t=d.bar;t&&WE(t,"width",100*e+"%"),l(GP,e)})),c=u.isPaused,d=t.Elements,f=t.Elements,h=f.root,p=f.toggle,g=n.autoplay,m="pause"===g;function v(){c()&&t.Slides.isEnough()&&(u.start(!n.resetProgress),i=r=m=!1,x(),l(WP))}function y(e){void 0===e&&(e=!0),m=!!e,x(),c()||(u.pause(),l(qP))}function b(){m||(r||i?y(!1):v())}function x(){p&&(OE(p,zj,!m),VE(p,fj,n.i18n[m?"play":"pause"]))}function w(e){var r=t.Slides.getAt(e);u.set(r&&+KE(r.slide,tO)||n.interval)}return{mount:function(){g&&(!function(){n.pauseOnHover&&s(h,"mouseenter mouseleave",(function(e){r="mouseenter"===e.type,b()}));n.pauseOnFocus&&s(h,"focusin focusout",(function(e){i="focusin"===e.type,b()}));p&&s(p,"click",(function(){m?v():y(!0)}));a([CP,LP,OP],u.rewind),a(CP,w)}(),p&&VE(p,uj,d.track.id),m||v(),x())},destroy:u.cancel,play:v,pause:y,isPaused:c}},Cover:function(e,t,n){var r=QP(e).on;function i(e){t.Slides.forEach((function(t){var n=ME(t.container||t.slide,"img");n&&n.src&&o(e,n,t)}))}function o(e,t,n){n.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),GE(t,e?"none":"")}return{mount:function(){n.cover&&(r(KP,hE(o,!0)),r([xP,RP,OP],hE(i,!0)))},destroy:hE(i,!1)}},Scroll:function(e,t,n){var r,i,o=QP(e),a=o.on,s=o.emit,l=e.state.set,u=t.Move,c=u.getPosition,d=u.getLimit,f=u.exceededLimit,h=u.translate,p=e.is(Qj),g=1;function m(e,n,o,a,d){var h=c();if(b(),o&&(!p||!f())){var m=t.Layout.sliderSize(),x=gP(e)*m*uP(dP(e)/m)||0;e=u.toPosition(t.Controller.toDest(e%m))+x}var w=fP(h,e,1);g=1,n=w?0:n||lP(dP(e-h)/1.5,800),i=a,r=$P(n,v,hE(y,h,e,d),1),l(uE),s(LP),r.start()}function v(){l(3),i&&i(),s(IP)}function y(e,t,r,o){var a=c(),s=e+(t-e)*function(e){var t=n.easingFunc;return t?t(e):1-Math.pow(1-e,4)}(o),l=(s-a)*g;h(a+l),p&&!r&&f()&&(g*=.6,dP(l)<10&&m(d(f(!0)),600,!1,i,!0))}function b(){r&&r.cancel()}function x(){r&&!r.isPaused()&&(b(),v())}return{mount:function(){a(CP,b),a([RP,OP],x)},destroy:b,scroll:m,cancel:x}},Drag:function(e,t,n){var r,i,o,a,s,l,u,c,d=QP(e),f=d.on,h=d.emit,p=d.bind,g=d.unbind,m=e.state,v=t.Move,y=t.Scroll,b=t.Controller,x=t.Elements.track,w=t.Media.reduce,C=t.Direction,S=C.resolve,k=C.orient,_=v.getPosition,E=v.exceededLimit,P=!1;function j(){var e=n.drag;z(!e),a="free"===e}function O(e){if(l=!1,!u){var t=D(e);!function(e){var t=n.noDrag;return!NE(e,"."+Fj+", ."+Rj)&&(!t||!NE(e,t))}(e.target)||!t&&e.button||(b.isBusy()?$E(e,!0):(c=t?x:window,s=m.is([lE,uE]),o=null,p(c,Zj,R,nO),p(c,Yj,A,nO),v.cancel(),y.cancel(),N(e)))}}function R(t){if(m.is(6)||(m.set(6),h(NP)),t.cancelable)if(s){v.translate(r+F(t)/(P&&e.is(Qj)?5:1));var i=M(t)>200,o=P!==(P=E());(i||o)&&N(t),l=!0,h(FP),$E(t)}else(function(e){return dP(F(e))>dP(F(e,!0))})(t)&&(s=function(e){var t=n.dragMinThreshold,r=yE(t),i=r&&t.mouse||0,o=(r?t.touch:+t)||10;return dP(F(e))>(D(e)?o:i)}(t),$E(t))}function A(r){m.is(6)&&(m.set(3),h(MP)),s&&(!function(r){var i=function(t){if(e.is($j)||!P){var n=M(t);if(n&&n<200)return F(t)/n}return 0}(r),o=function(e){return _()+gP(e)*sP(dP(e)*(n.flickPower||600),a?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(i),s=n.rewind&&n.rewindByDrag;w(!1),a?b.scroll(o,0,n.snap):e.is(Jj)?b.go(k(gP(i))<0?s?"<":"-":s?">":"+"):e.is(Qj)&&P&&s?b.go(E(!0)?">":"<"):b.go(b.toDest(o),!0);w(!0)}(r),$E(r)),g(c,Zj,R),g(c,Yj,A),s=!1}function T(e){!u&&l&&$E(e,!0)}function N(e){o=i,i=e,r=_()}function F(e,t){return I(e,t)-I(L(e),t)}function M(e){return nP(e)-nP(L(e))}function L(e){return i===e&&o||i}function I(e,t){return(D(e)?e.changedTouches[0]:e)["page"+S(t?"Y":"X")]}function D(e){return"undefined"!==typeof TouchEvent&&e instanceof TouchEvent}function z(e){u=e}return{mount:function(){p(x,Zj,gE,nO),p(x,Yj,gE,nO),p(x,Xj,O,nO),p(x,"click",T,{capture:!0}),p(x,"dragstart",$E),f([xP,RP],j)},disable:z,isDragging:function(){return s}}},Keyboard:function(e,t,n){var r,i,o=QP(e),a=o.on,s=o.bind,l=o.unbind,u=e.root,c=t.Direction.resolve;function d(){var e=n.keyboard;e&&(r="global"===e?window:u,s(r,oO,p))}function f(){l(r,oO)}function h(){var e=i;i=!0,pE((function(){i=e}))}function p(t){if(!i){var n=iO(t);n===c(ej)?e.go("<"):n===c(tj)&&e.go(">")}}return{mount:function(){d(),a(RP,f),a(RP,d),a(CP,h)},destroy:f,disable:function(e){i=e}}},LazyLoad:function(e,t,n){var r=QP(e),i=r.on,o=r.off,a=r.bind,s=r.emit,l="sequential"===n.lazyLoad,u=[SP,IP],c=[];function d(){dE(c),t.Slides.forEach((function(e){eP(e.slide,lO).forEach((function(t){var r=KE(t,aO),i=KE(t,sO);if(r!==t.src||i!==t.srcset){var o=n.classes.spinner,a=t.parentElement,s=ME(a,"."+o)||HE("span",o,a);c.push([t,e,s]),t.src||GE(t,"none")}}))})),l?g():(o(u),i(u,f),f())}function f(){c=c.filter((function(t){var r=n.perPage*((n.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,r)||h(t)})),c.length||o(u)}function h(e){var t=e[0];RE(e[1].slide,Hj),a(t,"load error",hE(p,e)),VE(t,"src",KE(t,aO)),VE(t,"srcset",KE(t,sO)),UE(t,aO),UE(t,sO)}function p(e,t){var n=e[0],r=e[1];tP(r.slide,Hj),"error"!==t.type&&(YE(e[2]),GE(n,""),s(KP,n,r),s(AP)),l&&g()}function g(){c.length&&h(c.shift())}return{mount:function(){n.lazyLoad&&(d(),i(OP,d))},destroy:hE(dE,c),check:f}},Pagination:function(e,t,n){var r,i,o=QP(e),a=o.on,s=o.emit,l=o.bind,u=t.Slides,c=t.Elements,d=t.Controller,f=d.hasFocus,h=d.getIndex,p=d.go,g=t.Direction.resolve,m=c.pagination,v=[];function y(){r&&(YE(m?fE(r.children):r),tP(r,i),dE(v),r=null),o.destroy()}function b(e){p(">"+e,!0)}function x(e,t){var n=v.length,r=iO(t),i=w(),o=-1;r===g(tj,!1,i)?o=++e%n:r===g(ej,!1,i)?o=(--e+n)%n:"Home"===r?o=0:"End"===r&&(o=n-1);var a=v[o];a&&(qE(a.button),p(">"+o),$E(t,!0))}function w(){return n.paginationDirection||n.direction}function C(e){return v[d.toPage(e)]}function S(){var e=C(h(!0)),t=C(h());if(e){var n=e.button;tP(n,zj),UE(n,dj),VE(n,sj,-1)}if(t){var i=t.button;RE(i,zj),VE(i,dj,!0),VE(i,sj,"")}s(VP,{list:r,items:v},e,t)}return{items:v,mount:function t(){y(),a([RP,OP,YP],t);var o=n.pagination;m&&GE(m,o?"":"none"),o&&(a([CP,LP,IP],S),function(){var t=e.length,o=n.classes,a=n.i18n,s=n.perPage,h=f()?d.getEnd()+1:cP(t/s);RE(r=m||HE("ul",o.pagination,c.track.parentElement),i=Nj+"--"+w()),VE(r,aj,"tablist"),VE(r,fj,a.select),VE(r,gj,w()===ij?"vertical":"");for(var p=0;p<h;p++){var g=HE("li",null,r),y=HE("button",{class:o.page,type:"button"},g),C=u.getIn(p).map((function(e){return e.slide.id})),S=!f()&&s>1?a.pageX:a.slideX;l(y,"click",hE(b,p)),n.paginationKeyboard&&l(y,"keydown",hE(x,p)),VE(g,aj,"presentation"),VE(y,aj,"tab"),VE(y,uj,C.join(" ")),VE(y,fj,mP(S,p+1)),VE(y,sj,-1),v.push({li:g,button:y,page:p})}}(),S(),s(UP,{list:r,items:v},C(e.index)))},destroy:y,getAt:C,update:S}},Sync:function(e,t,n){var r=n.isNavigation,i=n.slideFocus,o=[];function a(){e.splides.forEach((function(t){t.isParent||(l(e,t.splide),l(t.splide,e))})),r&&function(){var t=QP(e),n=t.on;n(kP,c),n(XP,d),n([xP,RP],u),o.push(t),t.emit(HP,e.splides)}()}function s(){o.forEach((function(e){e.destroy()})),dE(o)}function l(e,t){var n=QP(e);n.on(CP,(function(e,n,r){t.go(t.is($j)?r:e)})),o.push(n)}function u(){VE(t.Elements.list,gj,n.direction===ij?"vertical":"")}function c(t){e.go(t.index)}function d(e,t){PE(uO,iO(t))&&(c(e),$E(t))}return{setup:hE(t.Media.set,{slideFocus:CE(i)?r:i},!0),mount:a,destroy:s,remount:function(){s(),a()}}},Wheel:function(e,t,n){var r=QP(e).bind,i=0;function o(r){if(r.cancelable){var o=r.deltaY,a=o<0,s=nP(r),l=n.wheelMinThreshold||0,u=n.wheelSleep||0;dP(o)>l&&s-i>u&&(e.go(a?"<":">"),i=s),function(r){return!n.releaseWheel||e.state.is(lE)||-1!==t.Controller.getAdjacent(r)}(a)&&$E(r)}}return{mount:function(){n.wheel&&r(t.Elements.track,"wheel",o,nO)}}},Live:function(e,t,n){var r=QP(e).on,i=t.Elements.track,o=n.live&&!n.isNavigation,a=HE("span",Ij),s=$P(90,hE(l,!1));function l(e){VE(i,yj,e),e?(AE(i,a),s.start()):(YE(a),s.cancel())}function u(e){o&&VE(i,vj,e?"off":"polite")}return{mount:function(){o&&(u(!t.Autoplay.isPaused()),VE(i,bj,!0),a.textContent="\u2026",r(WP,hE(u,!0)),r(qP,hE(u,!1)),r([SP,IP],hE(l,!0)))},disable:u,destroy:function(){UE(i,[vj,bj,yj]),YE(a)}}}}),dO={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Kj,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function fO(e,t,n){var r=t.Slides;function i(){r.forEach((function(e){e.style("transform","translateX(-"+100*e.index+"%)")}))}return{mount:function(){QP(e).on([xP,OP],i)},start:function(e,t){r.style("transition","opacity "+n.speed+"ms "+n.easing),pE(t)},cancel:gE}}function hO(e,t,n){var r,i=t.Move,o=t.Controller,a=t.Scroll,s=t.Elements.list,l=hE(WE,s,"transition");function u(){l(""),a.cancel()}return{mount:function(){QP(e).bind(s,"transitionend",(function(e){e.target===s&&r&&(u(),r())}))},start:function(t,s){var u=i.toPosition(t,!0),c=i.getPosition(),d=function(t){var r=n.rewindSpeed;if(e.is(Qj)&&r){var i=o.getIndex(!0),a=o.getEnd();if(0===i&&t>=a||i>=a&&0===t)return r}return n.speed}(t);dP(u-c)>=1&&d>=1?n.useScroll?a.scroll(u,d,!1,s):(l("transform "+d+"ms "+n.easing),i.translate(u,!0),r=s):(i.jump(t),s())},cancel:u}}var pO=function(){function e(t,n){this.event=QP(),this.Components={},this.state=function(e){var t=e;return{set:function(e){t=e},is:function(e){return PE(_E(e),t)}}}(1),this.splides=[],this._o={},this._E={};var r=wE(t)?JE(document,t):t;aP(r,r+" is invalid."),this.root=r,n=zE({label:KE(r,fj)||"",labelledby:KE(r,hj)||""},dO,e.defaults,n||{});try{zE(n,JSON.parse(KE(r,oP)))}catch($o){aP(!1,"Invalid JSON")}this._o=Object.create(zE({},n))}var t,n,r,i=e.prototype;return i.mount=function(e,t){var n=this,r=this.state,i=this.Components;return aP(r.is([1,7]),"Already mounted!"),r.set(1),this._C=i,this._T=t||this._T||(this.is(Jj)?fO:hO),this._E=e||this._E,IE(DE({},cO,this._E,{Transition:this._T}),(function(e,t){var r=e(n,i,n._o);i[t]=r,r.setup&&r.setup()})),IE(i,(function(e){e.mount&&e.mount()})),this.emit(xP),RE(this.root,Dj),r.set(3),this.emit(wP),this},i.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},i.go=function(e){return this._C.Controller.go(e),this},i.on=function(e,t){return this.event.on(e,t),this},i.off=function(e){return this.event.off(e),this},i.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(fE(arguments,1))),this},i.add=function(e,t){return this._C.Slides.add(e,t),this},i.remove=function(e){return this._C.Slides.remove(e),this},i.is=function(e){return this._o.type===e},i.refresh=function(){return this.emit(OP),this},i.destroy=function(e){void 0===e&&(e=!0);var t=this.event,n=this.state;return n.is(1)?QP(this).on(wP,this.destroy.bind(this,e)):(IE(this._C,(function(t){t.destroy&&t.destroy(e)}),!0),t.emit(DP),t.destroy(),e&&dE(this.splides),n.set(7)),this},t=e,(n=[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&aE(t.prototype,n),r&&aE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),gO=pO;gO.defaults={},gO.STATES=cE;var mO=[[xP,"onMounted"],[wP,"onReady"],[CP,"onMove"],[SP,"onMoved"],[kP,"onClick"],[_P,"onActive"],[EP,"onInactive"],[PP,"onVisible"],[jP,"onHidden"],[OP,"onRefresh"],[RP,"onUpdated"],[AP,"onResize"],[TP,"onResized"],[NP,"onDrag"],[FP,"onDragging"],[MP,"onDragged"],[LP,"onScroll"],[IP,"onScrolled"],[DP,"onDestroy"],[zP,"onArrowsMounted"],[BP,"onArrowsUpdated"],[UP,"onPaginationMounted"],[VP,"onPaginationUpdated"],[HP,"onNavigationMounted"],[WP,"onAutoplayPlay"],[GP,"onAutoplayPlaying"],[qP,"onAutoplayPause"],[KP,"onLazyLoadLoaded"]];function vO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function yO(e){return null!==e&&"object"===typeof e}function bO(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some(((e,n)=>!bO(e,t[n])));if(yO(e)&&yO(t)){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&!n.some((n=>!Object.prototype.hasOwnProperty.call(t,n)||!bO(e[n],t[n])))}return e===t}function xO(e,t){const n=e;return function(e,t){if(e){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=n[r];if("__proto__"!==i&&!1===t(e[i],i))break}}}(t,((e,t)=>{Array.isArray(e)?n[t]=e.slice():yO(e)?n[t]=xO(yO(n[t])?n[t]:{},e):n[t]=e})),n}var wO=e=>{let{children:n,className:r,...i}=e;return t.createElement("div",{className:vO("splide__track",r),...i},t.createElement("ul",{className:"splide__list"},n))},CO=class extends t.Component{constructor(){super(...arguments),this.splideRef=t.createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:t,transition:n}=this.props,{current:r}=this.splideRef;r&&(this.splide=new gO(r,e),this.bind(this.splide),this.splide.mount(t,n),this.options=xO({},e||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){if(!this.splide)return;const{options:e}=this.props;e&&!bO(this.options,e)&&(this.splide.options=e,this.options=xO({},e));const t=this.getSlides();var n,r;n=this.slides,r=t,(n.length!==r.length||n.some(((e,t)=>e!==r[t])))&&(this.splide.refresh(),this.slides=t)}sync(e){var t;null==(t=this.splide)||t.sync(e)}go(e){var t;null==(t=this.splide)||t.go(e)}getSlides(){var e;if(this.splide){const t=null==(e=this.splide.Components.Elements)?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}bind(e){mO.forEach((t=>{let[n,r]=t;const i=this.props[r];"function"===typeof i&&e.on(n,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i(e,...n)}))}))}omit(e,t){return t.forEach((t=>{Object.prototype.hasOwnProperty.call(e,t)&&delete e[t]})),e}render(){const{className:e,tag:n="div",hasTrack:r=!0,children:i,...o}=this.props;return t.createElement(n,{className:vO("splide",e),ref:this.splideRef,...this.omit(o,["options",...mO.map((e=>e[1]))])},r?t.createElement(wO,null,i):i)}},SO=e=>{let{children:n,className:r,...i}=e;return t.createElement("li",{className:vO("splide__slide",r),...i},n)};const kO=e=>{let{imgItem:n,setSelectedImage:r}=e;const i=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),o=(0,t.useRef)(null),a=(0,t.useRef)(null),s=(0,t.useMemo)((()=>{const e=75+58*n.length,t=i?240:460;return e<t?e:t}),[n.length,i]),l=(0,t.useMemo)((()=>({type:"slide",perPage:1,perMove:1,gap:"1rem",pagination:!1,arrows:!1})),[]),u=(0,t.useMemo)((()=>({type:"slide",rewind:!0,gap:"1rem",pagination:!1,fixedWidth:40,fixedHeight:40,cover:!0,focus:"center",isNavigation:!0,arrows:n.length>1,width:s})),[n.length,s]),c=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return n.map((t=>(0,_o.jsx)(SO,{className:e?"":"img-container",children:(0,_o.jsx)("img",{style:{objectFit:"contain",height:"100%"},alt:"preview",src:t.url})},t.url)))};return t.useEffect((()=>{var e;o.current&&a.current&&null!==(e=a.current)&&void 0!==e&&e.splide&&o.current.sync(a.current.splide)}),[]),(0,_o.jsxs)(_o.Fragment,{children:[(0,_o.jsx)(CO,{onActive:e=>{var t,n,i;r(null===e||void 0===e||null===(t=e.root)||void 0===t||null===(n=t.querySelector("li.is-active"))||void 0===n||null===(i=n.querySelector("img"))||void 0===i?void 0:i.src)},options:l,ref:o,style:{maxWidth:"100%",height:i?"80%":""},children:c()}),(0,_o.jsx)("div",{className:"thumbs-list",children:(0,_o.jsx)(CO,{options:u,ref:a,children:c(!0)})})]})};var _O=n(1723);const EO=function(e){const{title:t,value:n,padding:r=e.padding||"4px 16px",width:i=e.width||"fit-content",isTitleVisible:o="boolean"!==typeof e.isTitleVisible||e.isTitleVisible}=e;return(0,_o.jsx)(_o.Fragment,{children:t&&(0,_o.jsxs)("div",{style:{display:"flex",flexDirection:"column",borderRadius:2,width:i,backgroundColor:e.backgroundColor||"#E0E0E0",padding:r,flexGrow:1},children:[o?(0,_o.jsx)(Zd,{style:{color:"#2B2C46",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"text-f12 fw-700",children:t}):"",(0,_o.jsx)(Zd,{style:{color:"#2B2C46",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"text-f12 fw-400",children:n})]})})};var PO;function jO(){return jO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jO.apply(this,arguments)}function OO(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",jO({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,PO||(PO=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5055 6.45389C12.7282 6.23157 13.0888 6.23169 13.3113 6.45415C13.5338 6.67672 13.5338 7.03757 13.3113 7.26013L8.70707 11.8643C8.31655 12.2548 7.68338 12.2548 7.29286 11.8643L2.68867 7.26013C2.4661 7.03757 2.4661 6.67672 2.68867 6.45415C2.91113 6.23169 3.27178 6.23157 3.49438 6.45389L5.7219 8.67847C6.35205 9.30779 7.42854 8.86148 7.42854 7.97089V0.571428C7.42854 0.255837 7.68437 0 7.99996 0C8.31556 0 8.57139 0.255838 8.57139 0.571429V7.97089C8.57139 8.86148 9.64788 9.30779 10.278 8.67847L12.5055 6.45389ZM12.7143 14.8571C13.2665 14.8571 13.7143 14.4094 13.7143 13.8571V13.1429C13.7143 12.8273 13.9701 12.5714 14.2857 12.5714C14.6013 12.5714 14.8571 12.8273 14.8571 13.1429V14.8571C14.8571 15.4883 14.3454 16 13.7143 16H2.28568C1.6545 16 1.14282 15.4883 1.14282 14.8571V13.1429C1.14282 12.8273 1.39866 12.5714 1.71425 12.5714C2.02984 12.5714 2.28568 12.8273 2.28568 13.1429V13.8571C2.28568 14.4094 2.7334 14.8571 3.28568 14.8571H12.7143Z",fill:"#2B2C46"})))}const RO=t.forwardRef(OO),AO=(n.p,()=>(0,_o.jsxs)("svg",{width:150,height:150,viewBox:"0 0 150 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"loading-spinner",children:[(0,_o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M75 150C116.421 150 150 116.421 150 75C150 33.5787 116.421 1.31134e-05 75 1.31134e-05C33.5787 1.31134e-05 1.31134e-05 33.5787 1.31134e-05 75C1.31134e-05 116.421 33.5787 150 75 150ZM75 145C113.66 145 145 113.66 145 75C145 36.3401 113.66 5.00001 75 5.00001C36.3401 5.00001 5.00001 36.3401 5.00001 75C5.00001 113.66 36.3401 145 75 145Z",fill:"url(#paint0_linear_3392_14489)"}),(0,_o.jsx)("defs",{children:(0,_o.jsxs)("linearGradient",{id:"paint0_linear_3392_14489",x1:75,y1:0,x2:75,y2:150,gradientUnits:"userSpaceOnUse",children:[(0,_o.jsx)("stop",{stopColor:"#D3D1FF"}),(0,_o.jsx)("stop",{offset:1,stopColor:"white"})]})})]}));const TO=function(){const e=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),{t:t}=Ml();return(0,_o.jsxs)("div",{style:{borderRadius:"2px",background:"linear-gradient(180deg, #FAFAFA 0%, #E4E3FF 100%)",width:"100%",height:e?"368px":"456px",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[(0,_o.jsx)("p",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:t("loading")}),(0,_o.jsx)(AO,{})]})},NO=["actMeasureGrid","actCut","actAnimate","actIsometric","actExternalAR"];const FO=function(e){let{is3dView:n,sku:r,setStatus3dView:i,status3dView:o}=e;const[a,s]=(0,t.useState)(""),l=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),{settings:u}=Nr((e=>e));(0,t.useEffect)((()=>{var e,t;let n={$container:$("#cnsWebViewer3d"),viewerBackendType:psol.components.WebViewer3D.ViewerBackends.WebGL,devicePixelRatio:window.devicePixelRatio,radialMenuActions:[],favoriteActions:NO,showProgressDialog:!1,webglViewerSettings:{ColorTL:"#fff",ColorTR:"#fff",ColorML:"#fff",ColorMR:"#fff",ColorBL:"#fff",ColorBR:"#fff",showLogo:!1,logoTexture:"./img/logo.png",logoScaleFactor:1,logoMixFactor:.5,material:{preset:"pcloud",edit:!1},measureGrid:{colors:{dimensions:"#000000",outline:"#0000ff",grid:"#757575",unit:"mm"}},helperOptions:{gridOn:!1,axisOn:!1},shadeMode:psol.components.WebViewer3D.ShadeModes.ShadeAndLines,enableEditableDimensions:!0,showPartNameTooltip:!1}},o=new psol.components.WebViewer3D(n);psol.core.setApiKey(null===(e=u.cadenas)||void 0===e?void 0:e.cadenasAPIKey),i("loading"),psol.core.ajaxGetOrPost({url:psol.core.getServiceBaseUrl()+"/service/reversemap",data:{catalog:null===(t=u.cadenas)||void 0===t?void 0:t.catalog,part:r,exact:"0"}}).then((function(e){let t=e.mident||"";s(t),o.show().then((function(){o.loadByVarset(null,null,t).then((()=>{i("loaded")})).catch((e=>{i("not-found")}))}))}))}),[r,i,u]);const c=!n||"loaded"!==o;return(0,_o.jsxs)(_o.Fragment,{children:["not-found"!==o&&(0,_o.jsx)("div",{id:"cnsWebViewer3d",style:{height:c?"0px":l?"368px":"456px",width:"100%",opacity:c?0:1,transition:n&&"loaded"!==o?"opacity 2s ease":""}}),(0,_o.jsx)("div",{style:{position:"absolute",bottom:"19px",right:"26px"},children:n&&"loaded"===o&&(0,_o.jsx)("div",{style:{background:"#E9E9EC",width:"32px",height:"32px",borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:()=>{new psol.components.DownloadDialog({mident:a}).show()},children:(0,_o.jsx)(RO,{width:14,height:14,color:"#FFF"})})}),"loading"===o&&n&&(0,_o.jsx)(TO,{}),"not-found"===o&&n&&(0,_o.jsx)("div",{style:{height:l?"368px":"456px",width:"100%",color:"#AAABB5",background:"linear-gradient(180deg, #fff 0%, #E9E9EC 100%)",fontSize:"16px",display:"flex",justifyContent:"center",alignItems:"center"},children:"No 3D View available for this item"})]})};var MO=n(8943);const LO=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,MO.A)(e,(0,j.A)({defaultTheme:Gi.A},t))};var IO;function DO(){return DO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DO.apply(this,arguments)}function zO(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",DO({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,IO||(IO=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3007 8.43552V8V7.55875L15.4009 6.59603C15.8197 6.22695 15.9116 5.60988 15.6187 5.13475L14.2663 2.84254C14.0618 2.4883 13.684 2.26991 13.2749 2.26949C13.1504 2.26854 13.0265 2.28789 12.9082 2.3268L11.5157 2.7967C11.2752 2.63694 11.0244 2.49336 10.765 2.36691L10.4727 0.922825C10.3645 0.378294 9.88166 -0.0104241 9.3266 0.000213077H6.64472C6.08966 -0.0104241 5.60678 0.378294 5.49862 0.922825L5.20636 2.36691C4.94501 2.49333 4.69232 2.6369 4.44994 2.7967L3.08608 2.30388C2.96648 2.27272 2.84263 2.26111 2.71932 2.26949C2.31028 2.26991 1.93247 2.4883 1.72795 2.84254L0.375548 5.13475C0.0996813 5.60867 0.198168 6.2116 0.610498 6.5731L1.69356 7.56448V8V8.44125L0.610498 9.40397C0.186011 9.76843 0.0866989 10.3861 0.375548 10.8653L1.72795 13.1575C1.93247 13.5117 2.31028 13.7301 2.71932 13.7305C2.84388 13.7315 2.96775 13.7121 3.08608 13.6732L4.47859 13.2033C4.71901 13.3631 4.96979 13.5066 5.22929 13.6331L5.52154 15.0772C5.6297 15.6217 6.11258 16.0104 6.66764 15.9998H9.37244C9.92751 16.0104 10.4104 15.6217 10.5185 15.0772L10.8108 13.6331C11.0721 13.5067 11.3248 13.3631 11.5672 13.2033L12.954 13.6732C13.0723 13.7121 13.1962 13.7315 13.3208 13.7305C13.7298 13.7301 14.1076 13.5117 14.3121 13.1575L15.6187 10.8653C15.8946 10.3913 15.7961 9.7884 15.3837 9.4269L14.3007 8.43552ZM13.2749 12.5844L11.3094 11.9197C10.8492 12.3094 10.3234 12.6141 9.75639 12.8194L9.34952 14.8766H6.64472L6.23786 12.8423C5.67536 12.6312 5.15234 12.327 4.69062 11.9426L2.71932 12.5844L1.36693 10.2922L2.92562 8.91688C2.81966 8.32369 2.81966 7.71642 2.92562 7.12323L1.36693 5.7078L2.71932 3.41559L4.68489 4.08033C5.14501 3.6906 5.67088 3.38594 6.23786 3.18064L6.64472 1.12339H9.34952L9.75639 3.15772C10.3189 3.36885 10.8419 3.67298 11.3036 4.05741L13.2749 3.41559L14.6273 5.7078L13.0686 7.08312C13.1746 7.67631 13.1746 8.28358 13.0686 8.87677L14.6273 10.2922L13.2749 12.5844ZM7.99712 11.4383C6.0982 11.4383 4.55882 9.89892 4.55882 8C4.55882 6.10108 6.0982 4.5617 7.99712 4.5617C9.89604 4.5617 11.4354 6.10108 11.4354 8C11.4447 8.91471 11.0854 9.79466 10.4386 10.4415C9.79178 11.0883 8.91183 11.4476 7.99712 11.4383ZM7.99712 5.7078C7.38493 5.69354 6.79358 5.93045 6.36058 6.36345C5.92757 6.79646 5.69066 7.38781 5.70492 8C5.69066 8.61219 5.92757 9.20354 6.36058 9.63655C6.79358 10.0695 7.38493 10.3065 7.99712 10.2922C8.60931 10.3065 9.20066 10.0695 9.63367 9.63655C10.0667 9.20354 10.3036 8.61219 10.2893 8C10.3036 7.38781 10.0667 6.79646 9.63367 6.36345C9.20066 5.93045 8.60931 5.69354 7.99712 5.7078Z",fill:"currentColor"})))}const BO=t.forwardRef(zO),UO=(n.p,LO((e=>({buttonStyle3D:{bottom:e=>e?"20px":"68px",[e.breakpoints.up("md")]:{bottom:e=>e?"20px":"10px"}},buttonStyleImageSearch:{bottom:e=>e?"20px":"78px",[e.breakpoints.up("md")]:{bottom:e=>e?"20px":"4px"}}}))));const VO=function(e){var n,r,i,o,a,s,l,u,c,d,f,h;const{dataItem:p,handleClose:g,handlerFeedback:m,onHandlerModalShare:v,show3dView:y=!1,onSearchImage:b}=e,{sku:x,title:w}=p,C=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),{settings:S}=Nr((e=>e)),k=p[S.field.productTag],[_,E]=(0,t.useState)(!1),[P,j]=(0,t.useState)("none"),[O,R]=(0,t.useState)(y),[A,T]=(0,t.useState)([]),[N,F]=(0,t.useState)(""),[M,L]=(0,t.useState)(),{t:I}=Ml(),D=UO(null===e||void 0===e?void 0:e.show3dView),z=(0,Yn.get)(p,null!==(n=S.field)&&void 0!==n&&n.ctaLinkField?null===(r=S.field)||void 0===r?void 0:r.ctaLinkField:"links.main"),B=(0,Yn.get)(p,null!==(i=S.field)&&void 0!==i&&i.secondaryCTALinkField?null===(o=S.field)||void 0===o?void 0:o.secondaryCTALinkField:"");(0,t.useEffect)((()=>{p&&(V(p),U(p["image(main_similarity)"]||p.main_image_link))}),[p]);const U=(e,t)=>{t=t||5e3;let n,r=new Image;r.onerror=r.onabort=function(){clearTimeout(n),F("")},r.onload=function(){return clearTimeout(n),void F(e)},r.src=e},V=e=>{const t=(e=>{let t=[];const n=e;if(!e)return[];for(let r in n)null!==r&&void 0!==r&&r.includes("image(recognition)")||null!==r&&void 0!==r&&r.includes("additional_image_link")?(0,Yn.isEmpty)(n[r])||n[r]&&t.push({url:n[r]}):"image(main_similarity)"!==r&&"main_image_link"!==r||n[r]&&t.push({url:n[r]});return t})(e);T(t)},H=(0,t.useMemo)((()=>{const e=(0,Yn.get)(p,S.field.productDetails);try{return e.join(", ")}catch($o){return e}}),[p,S.field.productDetails]),W=(0,Yn.get)(p,S.field.manufacturerNumber);return(0,_o.jsxs)("div",{className:"box-modal-default",style:{margin:C?0:"",width:"600px",backgroundColor:"#fff",borderRadius:12},children:[(0,_o.jsx)("div",{className:"ml-auto",style:{width:"fit-content",marginRight:4,position:"absolute",top:"28px",right:"28px",zIndex:100},children:(0,_o.jsx)(oi,{style:{padding:0},onClick:()=>null===g||void 0===g?void 0:g(),children:(0,_o.jsx)(Dk.A,{style:{fontSize:24,color:"#55566B"}})})}),(0,_o.jsxs)("div",{style:{position:"relative"},children:[(null===(a=S.cadenas)||void 0===a?void 0:a.cadenas3dWebView)&&(0,_o.jsx)(FO,{is3dView:O,sku:x,status3dView:M,setStatus3dView:L}),(0,_o.jsxs)("div",{className:"box-carosel",style:{...0===A.length?{display:"flex",justifyContent:"center"}:{},width:O?"0px":"100%",height:O?"0px":C?"368px":"60%",opacity:O?0:1,transition:O?"":"opacity 3s ease",paddingTop:O?"0px":"16px"},children:[A.length>0&&(0,_o.jsx)(kO,{imgItem:A,setSelectedImage:e=>{F(e||N)}}),A.length>0&&(0,_o.jsx)(oi,{className:D.buttonStyleImageSearch,style:{position:"absolute",right:"16px",background:"rgba(243, 243, 245, 0.4)",width:"32px",height:"32px",borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",bottom:C?"25px":"4px"},onClick:()=>{if(N.length>1)return b(N),void(null===g||void 0===g||g())},children:(0,_o.jsx)(Gk,{color:"#AAABB5"})}),0===A.length&&(0,_o.jsx)("div",{style:{width:"400px",height:"400px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,_o.jsx)("img",{src:Y_,alt:"image_item",className:"img-style",style:{width:"150px",height:"150px",padding:"8px"}})})]}),(0,_o.jsxs)("div",{className:D.buttonStyle3D,style:{position:"absolute",left:"16px",bottom:C?"25px":"10px"},children:[!O&&"not-found"!==M&&(null===(s=S.cadenas)||void 0===s?void 0:s.cadenas3dWebView)&&(0,_o.jsx)("div",{style:{background:"#E9E9EC",width:"32px",height:"32px",borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:()=>{R(!0)},children:(0,_o.jsx)(Z_,{width:16,height:16,color:"#AAABB5"})}),O&&(0,_o.jsx)("div",{style:{background:"#2B2C46",width:"32px",height:"32px",borderRadius:"100%",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:()=>{R(!1)},children:(0,_o.jsx)(Ho,{width:16,height:16,color:"#FFF"})})]})]}),(0,_o.jsx)("div",{style:{overflowY:"auto",maxHeight:"90svh",paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",backgroundColor:S.simpleCardView?"#FaFafa":"#F3F3F5",marginTop:"6px"},children:S.simpleCardView?(0,_o.jsxs)("div",{className:"info-container",children:[(0,_o.jsx)("div",{className:"info-sku",children:p.sku}),(0,_o.jsx)("div",{className:"info-marking",children:p.Bezeichnung}),(0,_o.jsx)("div",{className:"info-description",children:"en"===S.language?p.VK_Text_Englisch:p.VK_Text_Deutsch})]}):(0,_o.jsxs)("div",{className:"box-content",style:{display:"flex",marginTop:"16px",flexDirection:"column",backgroundColor:"#F3F3F5"},children:[(0,_o.jsxs)("div",{className:"box-top",children:[S.warehouseVariant&&(0,_o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"row",color:S.theme.mainTextColor||"#2B2C46",marginBottom:10,paddingLeft:16,paddingRight:16,gridGap:8},children:[(0,_o.jsx)(Zd,{className:"text-f12 max-line-1 fw-400",style:{color:S.theme.mainTextColor||"#2B2C46"},children:x}),S.warehouseVariant&&!(0,Yn.isUndefined)((0,Yn.get)(p,S.field.warehouseStockValue))&&(0,_o.jsx)(Zd,{className:"text-f12 max-line-1 fw-400",style:{color:S.theme.mainTextColor||"#2B2C46"},children:(0,_o.jsx)("span",{style:{color:(0,Yn.get)(p,S.field.warehouseStockValue)?"#00C070":"#c54545",fontWeight:600},children:(0,Yn.get)(p,S.field.warehouseStockValue)||0})})]}),(0,_o.jsxs)(C_,{container:!0,justifyContent:"space-between",style:{backgroundColor:"#F3F3F5"},children:[(0,_o.jsxs)("div",{style:{gap:6,display:"flex",flexDirection:"row",flexWrap:"wrap",width:"100%"},children:[!S.warehouseVariant&&S.CTAButtonText&&(0,_o.jsx)(EO,{title:I("Product name"),value:w,backgroundColor:S.theme.brandFieldBackground,width:S.warehouseVariant?{xs:"49%",md:"fit-content"}:{xs:"100%",md:"fit-content"}}),!S.warehouseVariant&&(0,_o.jsx)(EO,{title:S.itemIdLabel||"SKU",value:x,backgroundColor:"",width:S.warehouseVariant?{xs:"49%",md:"fit-content"}:{xs:"100%",md:"fit-content"}}),(k||S.brandName)&&(0,_o.jsx)(EO,{title:I("Brand"),value:k||S.brandName,backgroundColor:S.theme.brandFieldBackground,width:W?{xs:"49%",md:"fit-content"}:{xs:"100%",md:"fit-content"}}),W&&(0,_o.jsx)(EO,{title:I("Manufacturer Number"),value:W,width:k||S.brandName?{xs:"49%",md:"fit-content"}:{xs:"100%",md:"fit-content"}}),S.warehouseVariant&&(0,_o.jsxs)(_o.Fragment,{children:[S.field.warehouseNumber&&(0,_o.jsx)(EO,{title:(0,Yn.get)(p,S.field.warehouseNumber)||S.field.warehouseNumber,value:(0,Yn.get)(p,S.field.warehouseNumberValue)||"N/A",width:{xs:"49%",md:"fit-content"}}),S.field.warehouseShelfNumber&&(0,_o.jsx)(EO,{title:(0,Yn.get)(p,S.field.warehouseShelfNumber)||S.field.warehouseShelfNumber,value:(0,Yn.get)(p,S.field.warehouseShelfNumberValue)||"N/A",width:{xs:"49%",md:"fit-content"}})]})]}),(0,_o.jsxs)(C_,{item:!0,xs:12,style:{backgroundColor:"#F3F3F5"},children:[S.secondaryCTAButtonText&&(0,_o.jsx)("div",{style:{background:S.theme.secondaryCTAButtonColor||"#2B2C46",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)",borderRadius:4,marginTop:8,display:"flex",justifyContent:"space-between",alignItems:"center"},className:"btn-detail-item",children:(0,_o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",padding:"0px 12px",minHeight:64,cursor:B?"pointer":"normal"},onClick:()=>{B&&window.open("".concat(B),"_blank")},children:[(0,_o.jsx)(Zd,{className:"text-f18 fw-700 text-white max-line-2",align:"left",style:{letterSpacing:"0.55px",maxWidth:"500px",paddingRight:"4px"},children:S.secondaryCTAButtonText}),B&&(0,_o.jsx)(BO,{color:"white"})]})}),(0,_o.jsx)("div",{style:{background:(null===(l=S.theme)||void 0===l?void 0:l.CTAButtonColor)||(null===(u=S.theme)||void 0===u?void 0:u.primaryColor),boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)",borderRadius:4,marginTop:8,display:"flex",justifyContent:"space-between",alignItems:"center"},className:"btn-detail-item",children:(0,_o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",padding:"0px 12px",minHeight:64,cursor:z?"pointer":"normal"},onClick:()=>{z&&window.open("".concat(z),"_blank")},children:[(0,_o.jsx)(Zd,{className:"text-f18 fw-700 max-line-2",align:"left",style:{color:(null===(c=S.theme)||void 0===c?void 0:c.CTAButtonTextColor)||"#FFFFFF",letterSpacing:"0.55px",maxWidth:"500px",paddingRight:"4px"},children:S.CTAButtonText?S.CTAButtonText:p[S.field.productName]}),z&&(0,_o.jsx)(N_,{fill:(null===(d=S.theme)||void 0===d?void 0:d.CTAButtonTextColor)||"#FFFFFF",width:16})]})}),H&&(0,_o.jsxs)("div",{className:"w-100",children:[(0,_o.jsxs)(oi,{className:"w-100 button-hover",style:{backgroundColor:"#F3F3F5",color:S.theme.mainTextColor||"#2b2c46",display:"flex",fontSize:14,justifyContent:"space-between",marginTop:12,paddingLeft:"15px",paddingRight:"15px",textTransform:"initial"},onClick:()=>E((e=>!e)),children:[I("View details"),_?(0,_o.jsx)(_O.A,{htmlColor:null===(f=S.theme)||void 0===f?void 0:f.secondaryColor}):(0,_o.jsx)(oE.A,{htmlColor:null===(h=S.theme)||void 0===h?void 0:h.secondaryColor})]}),(0,_o.jsx)(iE,{in:_,children:(0,_o.jsx)(Zd,{style:{fontSize:14,padding:5,paddingLeft:15,paddingRight:15,color:S.theme.mainTextColor||"#2b2c46"},children:H})})]})]})]})]}),S.showFeedbackAndShare&&(0,_o.jsx)("div",{className:"box-bottom",style:{height:"48px",padding:"0px 16px 0px 16px",marginBottom:10,marginTop:10,display:"flex",justifyContent:"center"},children:(0,_o.jsxs)(C_,{container:!0,justifyContent:S.shareOption?"space-between":"space-around",alignItems:"center",children:[(0,_o.jsx)(C_,{item:!0,children:(0,_o.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,_o.jsx)(oi,{className:"btn-item",onClick:()=>{m("like"),j("like")},children:(0,_o.jsx)(G_,{width:24,height:24,color:"like"===P?"#3E36DC":"#000000"})})})}),(0,_o.jsx)(C_,{item:!0,children:(0,_o.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,_o.jsx)(oi,{className:"btn-item",onClick:()=>{m("dislike"),j("dislike")},children:(0,_o.jsx)(U_,{width:24,height:24,color:"dislike"===P?"#CC1854":"#000000"})})})}),S.shareOption&&(0,_o.jsx)(C_,{item:!0,children:(0,_o.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,_o.jsx)(oi,{className:"btn-item",onClick:()=>v(),children:(0,_o.jsx)(I_,{width:24,height:24,color:"#000000"})})})})]})})]})})]})};function HO(e){var n,r,i,o,a,s,l,u,c,d,f,h,p,g,m;const{dataItem:v,isHover:y=!1,onSearchImage:b,handlerGroupItem:x,handlerFeedback:w,isGroupItem:C,handlerCloseGroup:S,main_image_link:k,indexItem:_}=e,E=Tr(),[P,j]=(0,t.useState)(""),O=Nr((e=>e)),{settings:R}=O,[A,T]=(0,t.useState)(),[N,F]=(0,t.useState)(!1),[M,L]=(0,t.useState)("none"),{t:I}=Ml(),{sku:D,collap:z}=v,B=v[R.field.productTag],U=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"});(0,t.useEffect)((()=>{k&&V(k)}),[k]);const V=(e,t)=>{t=t||5e3;var n,r=new Image;r.onerror=r.onabort=function(){clearTimeout(n),j("")},r.onload=function(){return clearTimeout(n),void j(e)},r.src=e},H=e=>{(async(e,t,n)=>{const{search:r,settings:i}=e;await nE(i,r.sessionId,r.requestId,{event:"click",data:{positions:[t],...n?{product_ids:[n]}:{}}})})(O,_,e.sku),T("image"),E(nr(!0))},W=(0,Yn.get)(v,null!==(n=R.field)&&void 0!==n&&n.ctaLinkField?null===(r=R.field)||void 0===r?void 0:r.ctaLinkField:"links.main"),G=(0,Yn.get)(v,R.field.manufacturerNumber),q=(0,Yn.get)(v,null!==(i=R.field)&&void 0!==i&&i.secondaryCTALinkField?null===(o=R.field)||void 0===o?void 0:o.secondaryCTALinkField:"");return(0,_o.jsxs)("div",{className:"wrap-main-item-result",children:[(0,_o.jsx)(us,{openModal:"3d"===A||"image"===A,handleClose:e=>{T(void 0)},children:(0,_o.jsx)(VO,{dataItem:v,handleClose:()=>{T(void 0)},handlerFeedback:w,show3dView:"3d"===A,onHandlerModalShare:()=>F(!0),onSearchImage:e=>{E(br(!0)),b(e)}})}),(0,_o.jsx)(J_,{setModalState:F,dataItem:v,isOpen:N}),(0,_o.jsxs)("div",{className:"box-top",children:[C&&z&&(0,_o.jsx)("div",{className:"btn-show-result",children:(0,_o.jsxs)(oi,{onClick:()=>{x(v,_)},children:[I("Show group"),(0,_o.jsx)(R_.A,{style:{fontSize:"10px"}})]})}),C&&!z&&(0,_o.jsx)("div",{className:"btn-show-result",children:(0,_o.jsxs)(oi,{onClick:()=>{S(v,_)},children:[I("Close group"),(0,_o.jsx)(R_.A,{style:{fontSize:"10px"}})]})}),!y&&k&&(0,_o.jsx)("div",{className:"box-icon-modal",onClick:()=>{P.length>1&&b(k)},children:(0,_o.jsx)(Gk,{width:16,height:16,color:"#AAABB5"})}),(null===(a=R.cadenas)||void 0===a?void 0:a.cadenas3dWebView)&&(0,_o.jsx)("div",{className:"box-icon-modal-3d",onClick:()=>{T("3d")},children:(0,_o.jsx)(Z_,{width:16,height:16,color:"#AAABB5"})}),(0,_o.jsx)("div",{className:"box-image",children:(0,_o.jsx)("div",{style:{width:"100%",height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},onClick:e=>{e.preventDefault(),H(v)},children:k?(0,_o.jsx)("img",{src:k,alt:"image_item",className:"img-style product-image",style:{width:"100%",height:"100%",objectFit:"contain"}},k):(0,_o.jsx)("img",{src:Y_,alt:"image_item",style:{width:"70%",height:"50%"}})})})]}),R.simpleCardView?(0,_o.jsxs)("div",{className:"info-container",children:[(0,_o.jsx)("div",{className:"info-sku",children:v.sku}),(0,_o.jsx)("span",{className:"info-marking",children:v.Bezeichnung}),(0,_o.jsx)("div",{className:"info-description",children:"en"===R.language?v.VK_Text_Englisch:v.VK_Text_Deutsch})]}):(0,_o.jsxs)("div",{className:"box-content",style:{flexDirection:"column",backgroundColor:"#F3F3F5",flexGrow:1,zIndex:100,display:"flex"},children:[(0,_o.jsx)("div",{className:"box-top",style:{color:"#FFFFFF"},children:(0,_o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"column",gridGap:8,color:R.theme.mainTextColor||"#2B2C46"},children:[R.CTAButtonText&&(0,_o.jsx)(Zd,{className:"text-f12 max-line-1 fw-700",style:{color:R.theme.mainTextColor||"#2B2C46",marginTop:8},children:$d(v[R.field.productName],45)}),(0,_o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"row",gridGap:8,color:R.theme.mainTextColor||"#2B2C46",marginTop:R.CTAButtonText?0:8},children:[(0,_o.jsx)(Lc,{title:D,placement:"top",arrow:!0,disableHoverListener:(null===D||void 0===D?void 0:D.length)<19||!D,children:(0,_o.jsx)(Zd,{className:"text-f12 max-line-1 fw-400",style:{color:R.theme.mainTextColor||"#2B2C46"},children:$d(D,R.warehouseVariant?U?17:20:29)})}),R.warehouseVariant&&!(0,Yn.isUndefined)((0,Yn.get)(v,R.field.warehouseStockValue))&&(0,_o.jsx)(Zd,{className:"text-f12 max-line-1 fw-400",style:{color:(null===(s=R.theme)||void 0===s?void 0:s.mainTextColor)||"#2B2C46"},children:(0,_o.jsx)("span",{style:{color:(0,Yn.get)(v,R.field.warehouseStockValue)?"#00C070":"#c54545",fontWeight:600},children:(0,Yn.get)(v,R.field.warehouseStockValue)||0})})]}),(0,_o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"row",gridGap:8,color:R.theme.mainTextColor||"#2B2C46"},children:[(B||R.brandName)&&(0,_o.jsx)(EO,{title:I("Brand"),value:B||R.brandName,padding:R.theme.brandFieldPadding||"4px 8px",width:{xs:"49%"},backgroundColor:R.theme.brandFieldBackground,isTitleVisible:R.isBrandNameTitleVisible}),G&&(0,_o.jsx)(EO,{title:I("Mfr. No."),value:G,padding:"4px 8px",width:{xs:"49%"}})]})]})}),R.warehouseVariant&&(0,_o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",gridGap:10,color:R.theme.mainTextColor||"#2B2C46",marginTop:8},children:[R.field.warehouseNumber&&(0,_o.jsx)(EO,{title:(0,Yn.get)(v,R.field.warehouseNumber)||R.field.warehouseNumber,value:(0,Yn.get)(v,R.field.warehouseNumberValue)||"N/A",padding:"4px 8px",width:{xs:"49%"}}),R.field.warehouseShelfNumber&&(0,_o.jsx)(EO,{title:(0,Yn.get)(v,R.field.warehouseShelfNumber)||R.field.warehouseShelfNumber,value:(0,Yn.get)(v,R.field.warehouseShelfNumberValue)||"N/A",padding:"4px 8px",width:{xs:"49%"}})]}),(0,_o.jsxs)("div",{children:[R.secondaryCTAButtonText&&(0,_o.jsx)("div",{style:{boxShadow:"-2px 2px 4px rgba(170, 171, 181, 0.5)",height:40,background:R.theme.secondaryCTAButtonColor||"#2B2C46",borderRadius:4,padding:"0px 8px",marginTop:"8px",display:"flex",justifyItems:"center",alignItems:"center",justifyContent:"space-between"},children:(0,_o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",width:"100%",padding:0,cursor:q?"pointer":"normal"},onClick:()=>{q&&(tE(O,_,v.sku),window.open("".concat(q),"_blank"))},children:[(0,_o.jsx)(Zd,{className:"text-white max-line-2",style:{overflow:"hidden",textOverflow:"ellipsis",fontWeight:500,fontSize:"12px",letterSpacing:"0.27px",wordBreak:"break-all",maxWidth:!U&&q?"136px":"164x",paddingRight:"8px"},align:"left",children:R.secondaryCTAButtonText}),!U&&q&&(0,_o.jsx)(BO,{color:"white"})]})}),R.CTAButtonText?(0,_o.jsx)("div",{style:{boxShadow:"-2px 2px 4px rgba(170, 171, 181, 0.5)",height:40,background:(null===(h=R.theme)||void 0===h?void 0:h.CTAButtonColor)||(null===(p=R.theme)||void 0===p?void 0:p.primaryColor),borderRadius:4,padding:"0px 8px",marginTop:"8px",display:"flex",justifyItems:"center",alignItems:"center",justifyContent:"space-between"},children:(0,_o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",padding:0,cursor:W?"pointer":"normal"},onClick:()=>{W&&(tE(O,_,v.sku),window.open("".concat(W),"_blank"))},children:[(0,_o.jsx)(Zd,{className:"max-line-2",style:{overflow:"hidden",textOverflow:"ellipsis",fontWeight:500,color:(null===(g=R.theme)||void 0===g?void 0:g.CTAButtonTextColor)||"#FFFFFF",fontSize:"12px",letterSpacing:"0.27px",wordBreak:"break-all",maxWidth:!U&&W?"136px":"164x",paddingRight:"8px"},align:"left",children:R.CTAButtonText}),!U&&W&&(0,_o.jsx)(N_,{fill:(null===(m=R.theme)||void 0===m?void 0:m.CTAButtonTextColor)||"#FFFFFF",width:16})]})}):(0,_o.jsx)(Lc,{title:v[R.field.productName],placement:"top",arrow:!0,disableHoverListener:(null===(l=v[R.field.productName])||void 0===l?void 0:l.length)<45,children:(0,_o.jsx)("div",{style:{boxShadow:"-2px 2px 4px rgba(170, 171, 181, 0.5)",height:40,background:(null===(u=R.theme)||void 0===u?void 0:u.CTAButtonColor)||(null===(c=R.theme)||void 0===c?void 0:c.primaryColor),borderRadius:4,padding:"0px 8px",marginTop:"8px",display:"flex",justifyItems:"center",alignItems:"center",justifyContent:"space-between"},children:(0,_o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",padding:0,cursor:W?"pointer":"normal"},onClick:()=>{W&&(tE(O,_,v.sku),window.open("".concat(W),"_blank"))},children:[(0,_o.jsx)(Zd,{className:"max-line-2",style:{overflow:"hidden",textOverflow:"ellipsis",fontWeight:500,color:(null===(d=R.theme)||void 0===d?void 0:d.CTAButtonTextColor)||"#FFFFFF",fontSize:"12px",letterSpacing:"0.27px",wordBreak:"break-all",maxWidth:!U&&W?"136px":"164x",paddingRight:"8px"},align:"left",children:$d(v[R.field.productName],45)}),!U&&W&&(0,_o.jsx)(N_,{fill:(null===(f=R.theme)||void 0===f?void 0:f.CTAButtonTextColor)||"#FFFFFF",width:16})]})})}),R.showFeedbackAndShare&&(0,_o.jsx)("div",{className:"box-bottom",style:{marginBottom:6,marginTop:12},children:(0,_o.jsxs)(C_,{container:!0,justifyContent:R.shareOption?"space-between":"space-around",alignItems:"center",children:[(0,_o.jsx)(C_,{item:!0,children:(0,_o.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,_o.jsx)(oi,{className:"btn-item",onClick:()=>{w("like"),L("like")},children:(0,_o.jsx)(G_,{width:16,height:16,color:"like"===M?"#3E36DC":"#000000"})})})}),(0,_o.jsx)(C_,{item:!0,children:(0,_o.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,_o.jsx)(oi,{className:"btn-item",onClick:()=>{w("dislike"),L("dislike")},children:(0,_o.jsx)(U_,{width:16,height:16,color:"dislike"===M?"#CC1854":"#000000"})})})}),R.shareOption&&(0,_o.jsx)(C_,{item:!0,children:(0,_o.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,_o.jsx)(oi,{className:"btn-item",onClick:()=>F(!0),children:(0,_o.jsx)(I_,{width:16,height:16,color:"#000000"})})})})]})})]})]})]})}const WO=(0,t.memo)(HO);const GO=e=>{const{postFilter:n}=Nr((e=>e.search));return(0,t.useMemo)((()=>function(e,t){return null===e||void 0===e?void 0:e.filter((e=>Object.keys(t).every((n=>{const r=t[n],i=Object.keys(r).filter((e=>r[e]));if(i.length>0){const t=e.filters[n];if(t)return null===i||void 0===i?void 0:i.some((e=>t.includes(e)))}return!0}))))}(e,n||{})),[e,n])},qO=e=>{let{allSearchResults:n,isSearchStalled:r}=e;const{search:i,settings:o}=Nr((e=>e)),{valueTextSearch:a,results:s}=i||{},{showGroup:l,algolia:u}=o||{},[c,d]=(0,t.useState)([]),[f,h]=(0,t.useState)(!1),[p,g]=(0,t.useState)({});(0,t.useEffect)((()=>{var e;if(null===n||void 0===n||null===(e=n.hits)||void 0===e||!e.length)return void d([]);h(!1);const t=l?(e=>{var t;let n=[],r=[];const i=e.map((e=>e.group_id?e:{...e,group_id:(0,Yn.uniqueId)("random-group-id")})),o=(0,Yn.groupBy)(i,"group_id");return g(o),n=Object.values(o),0===(null===(t=n)||void 0===t?void 0:t.length)?e:(n.forEach((e=>{let t;(null===e||void 0===e?void 0:e.length)>=2?(t={...e[0],isGroup:!0,collap:!0},r.push(t)):(t={...e[0],isGroup:!1,collap:null},r.push(t))})),r)})(null===n||void 0===n?void 0:n.hits):null===n||void 0===n?void 0:n.hits;d(t)}),[null===n||void 0===n?void 0:n.hits,a]),(0,t.useEffect)((()=>{r&&h(!0)}),[r]);const m=GO(s),v=(0,t.useMemo)((()=>null===m||void 0===m?void 0:m.map((e=>({...e,main_image_link:e.image||(e.images?e.images[0]:"")})))),[m]);return{productList:null!==u&&void 0!==u&&u.enabled?c:v||[],handlerGroupItem:(e,t)=>{const n=e.group_id;let r=[...c];const i=r.slice(0,t+1);i.filter((e=>e.group_id===n))[0].collap=!1;let o=r.slice(t+1,r.length),a=[...p[n]];a.shift(),o=a.concat(o),d(i.concat(o))},handlerCloseGroup:(e,t)=>{const n=e.group_id;let r=[...c];const i=r.slice(0,t+1);i.filter((e=>e.group_id===n))[0].collap=!0;let o=r.slice(t+1,r.length);o=o.filter((e=>e.group_id!==n)),d(i.concat(o))},algoliaRequest:f,isLoading:!1,hasError:!1,errorMessage:"",loadProductList:()=>{},reset:()=>{}}};function KO(e){let{allSearchResults:n,getUrlToCanvasFile:r,sendFeedBackAction:i,searchQuery:o,requestImage:a,isSearchStalled:s}=e;const{search:l,settings:u}=Nr((e=>e)),{loadingSearchAlgolia:c}=l,d=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),{t:f}=Ml(),{productList:h,handlerCloseGroup:p,handlerGroupItem:g,algoliaRequest:m}=qO({allSearchResults:n}),v=(0,t.useMemo)((()=>a||l.valueTextSearch.query||o||s?0!==h.length||c||s?h.map(((e,t)=>(0,_o.jsx)("div",{style:{height:"fit-content"},children:(0,_o.jsx)(WO,{dataItem:e,indexItem:t,isHover:!1,onSearchImage:e=>{r(e)},handlerFeedback:e=>{i(e)},handlerGroupItem:(e,t)=>g(e,t),handlerCloseGroup:(e,t)=>p(e,t),isGroupItem:!!u.showGroup&&(null===e||void 0===e?void 0:e.isGroup),main_image_link:e["image(main_similarity)"]||e.main_image_link})},t))):(0,_o.jsx)("div",{style:{marginTop:"50px",width:"100%",textAlign:"center",marginBottom:"12px"},children:f("No products were found matching your search criteria.")}):(0,_o.jsx)("div",{style:{marginTop:"50px",width:"100%",textAlign:"center"},children:f("Please upload an image or enter a keyword to search.")})),[h,o,a,l.valueTextSearch,s,m,c,d]);return(0,_o.jsx)(_o.Fragment,{children:v})}const XO=ul((0,t.memo)(KO));function ZO(e){return ZO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZO(e)}var YO=["children","contextValue","indexContextValue"],QO=["children","contextValue","indexContextValue"];function $O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$O(Object(n),!0).forEach((function(t){eR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ZO(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ZO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ZO(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tR(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}const nR=qs({displayName:"AlgoliaConfigure",$$type:"ais.configure",getProvidedProps:function(){return{}},getSearchParameters:function(e,t){t.children,t.contextValue,t.indexContextValue;var n=tR(t,YO);return e.setQueryParameters(n)},transitionState:function(e,t,n){var r="configure",i=(e.children,e.contextValue,e.indexContextValue,tR(e,QO)),o=Object.keys(e),a=this._props?Object.keys(this._props).filter((function(e){return-1===o.indexOf(e)})):[];return this._props=e,el(n,eR({},r,JO(JO({},As(n[r],a)),i)),{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){var n="configure",r=Qs({ais:e.contextValue,multiIndexContext:e.indexContextValue}),i=Js({ais:e.contextValue,multiIndexContext:e.indexContextValue})&&t.indices?t.indices[r]:t,o=(i&&i[n]?Object.keys(i[n]):[]).reduce((function(t,r){return e[r]||(t[r]=i[n][r]),t}),{});return el(t,eR({},n,o),{ais:e.contextValue,multiIndexContext:e.indexContextValue})}}),rR=nR((function(){return null}),{$$widgetType:"ais.configure"});function iR(e){return iR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iR(e)}function oR(){return oR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oR.apply(this,arguments)}function aR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fR(r.key),r)}}function sR(e,t){return sR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sR(e,t)}function lR(e){var t=function(){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($o){return!1}}();return function(){var n,r=cR(e);if(t){var i=cR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===iR(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uR(e)}(this,n)}}function uR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cR(e){return cR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cR(e)}function dR(e,t,n){return(t=fR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fR(e){var t=function(e,t){if("object"!==iR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==iR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===iR(t)?t:String(t)}var hR=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sR(e,t)}(a,e);var n,r,i,o=lR(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dR(uR(e=o.call.apply(o,[this].concat(n))),"onClick",(function(t){(function(e){var t=1===e.button;return Boolean(t||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)})(t)||(e.props.onClick(),t.preventDefault())})),e}return n=a,(r=[{key:"render",value:function(){return t.createElement("a",oR({},this.props,{onClick:this.onClick}))}}])&&aR(n.prototype,r),i&&aR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);function pR(e){return pR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pR(e)}function gR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bR(r.key),r)}}function mR(e,t){return mR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mR(e,t)}function vR(e){var t=function(){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($o){return!1}}();return function(){var n,r=yR(e);if(t){var i=yR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pR(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function yR(e){return yR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yR(e)}function bR(e){var t=function(e,t){if("object"!==pR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pR(t)?t:String(t)}dR(hR,"propTypes",{onClick:M().func.isRequired});var xR=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mR(e,t)}(a,e);var n,r,i,o=vR(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.createURL,i=e.items,o=e.onSelect,a=e.canRefine;return t.createElement("ul",{className:n("list",!a&&"list--noRefinement")},i.map((function(e){return t.createElement("li",{key:void 0===e.key?e.value:e.key,className:n("item",e.selected&&!e.disabled&&"item--selected",e.disabled&&"item--disabled",e.modifier)},e.disabled?t.createElement("span",{className:n("link")},void 0===e.label?e.value:e.label):t.createElement(hR,{className:n("link",e.selected&&"link--selected"),"aria-label":e.ariaLabel,href:r(e.value),onClick:function(){return o(e.value)}},void 0===e.label?e.value:e.label))})))}}],r&&gR(n.prototype,r),i&&gR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);!function(e,t,n){(t=bR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(xR,"propTypes",{cx:M().func.isRequired,createURL:M().func.isRequired,items:M().arrayOf(M().shape({value:M().oneOfType([M().string,M().number,M().object]).isRequired,key:M().oneOfType([M().string,M().number]),label:M().node,modifier:M().string,ariaLabel:M().string,disabled:M().bool})),onSelect:M().func.isRequired,canRefine:M().bool.isRequired});var wR=["listComponent","nbPages","totalPages","currentRefinement","padding","showFirst","showPrevious","showNext","showLast","refine","createURL","canRefine","translate","className"];function CR(e){return CR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CR(e)}function SR(){return SR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SR.apply(this,arguments)}function kR(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RR(r.key),r)}}function ER(e,t){return ER=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ER(e,t)}function PR(e){var t=function(){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($o){return!1}}();return function(){var n,r=jR(e);if(t){var i=jR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===CR(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function jR(e){return jR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jR(e)}function OR(e,t,n){return(t=RR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RR(e){var t=function(e,t){if("object"!==CR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CR(t)?t:String(t)}var AR=Zx("Pagination");function TR(e,t,n){var r=function(e,t){return Math.min(2*e+1,t)}(n,t);if(r===t)return Qx({start:1,end:t+1});var i=function(e,t,n,r){return e<=t?e:e>=n-t?r-(n-e):t+1}(e,n,t,r);return Qx({start:e-i+1,end:e+(r-i)+1})}var NR=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ER(e,t)}(a,e);var n,r,i,o=PR(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getItem",value:function(e,t,n){var r=this.props,i=r.nbPages,o=r.totalPages,a=r.translate;return{key:"".concat(e,".").concat(n),modifier:e,disabled:n<1||n>=Math.min(o,i),label:a(t,n),value:n,ariaLabel:a("aria".concat(Yx(t)),n)}}},{key:"render",value:function(){var e=this.props,n=e.listComponent,r=e.nbPages,i=e.totalPages,o=e.currentRefinement,a=e.padding,s=e.showFirst,l=e.showPrevious,u=e.showNext,c=e.showLast,d=e.refine,f=e.createURL,h=e.canRefine,p=e.translate,g=e.className,m=kR(e,wR),v=Math.min(r,i),y=v,b=[];return s&&b.push({key:"first",modifier:"item--firstPage",disabled:1===o,label:p("first"),value:1,ariaLabel:p("ariaFirst")}),l&&b.push({key:"previous",modifier:"item--previousPage",disabled:1===o,label:p("previous"),value:o-1,ariaLabel:p("ariaPrevious")}),b=b.concat(TR(o,v,a).map((function(e){return{key:e,modifier:"item--page",label:p("page",e),value:e,selected:e===o,ariaLabel:p("ariaPage",e)}}))),u&&b.push({key:"next",modifier:"item--nextPage",disabled:o===y||y<=1,label:p("next"),value:o+1,ariaLabel:p("ariaNext")}),c&&b.push({key:"last",modifier:"item--lastPage",disabled:o===y||y<=1,label:p("last"),value:y,ariaLabel:p("ariaLast")}),t.createElement("div",{className:th()(AR("",!h&&"-noRefinement"),g)},t.createElement(n,SR({},m,{cx:AR,items:b,onSelect:d,createURL:f,canRefine:h})))}}],r&&_R(n.prototype,r),i&&_R(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);OR(NR,"propTypes",{nbPages:M().number.isRequired,currentRefinement:M().number.isRequired,refine:M().func.isRequired,createURL:M().func.isRequired,canRefine:M().bool.isRequired,translate:M().func.isRequired,listComponent:M().func,showFirst:M().bool,showPrevious:M().bool,showNext:M().bool,showLast:M().bool,padding:M().number,totalPages:M().number,className:M().string}),OR(NR,"defaultProps",{listComponent:xR,showFirst:!0,showPrevious:!0,showNext:!0,showLast:!1,padding:3,totalPages:1/0,className:""});const FR=jw({previous:"\u2039",next:"\u203a",first:"\xab",last:"\xbb",page:function(e){return e.toString()},ariaPrevious:"Previous page",ariaNext:"Next page",ariaFirst:"First page",ariaLast:"Last page",ariaPage:function(e){return"Page ".concat(e.toString())}})(NR);const MR=E_((function(e){return t.createElement(bw,e,t.createElement(FR,e))}),{$$widgetType:"ais.pagination"});function LR(e){return LR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LR(e)}function IR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IR(Object(n),!0).forEach((function(t){zR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==LR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BR(e,t,n){var r=nl(e,t,n,"hitsPerPage",null);return"string"===typeof r?parseInt(r,10):r}const UR=qs({displayName:"AlgoliaHitsPerPage",$$type:"ais.hitsPerPage",propTypes:{defaultRefinement:M().number.isRequired,items:M().arrayOf(M().shape({label:M().string,value:M().number.isRequired})).isRequired,transformItems:M().func},getProvidedProps:function(e,t){var n=BR(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),r=e.items.map((function(e){return e.value===n?DR(DR({},e),{},{isRefined:!0}):DR(DR({},e),{},{isRefined:!1})}));return{items:e.transformItems?e.transformItems(r):r,currentRefinement:n}},refine:function(e,t,n){return el(t,zR({},"hitsPerPage",n),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)},cleanUp:function(e,t){return rl(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},"hitsPerPage")},getSearchParameters:function(e,t,n){return e.setHitsPerPage(BR(t,n,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(){return{id:"hitsPerPage"}}});function VR(e){return VR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VR(e)}function HR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZR(r.key),r)}}function WR(e,t){return WR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WR(e,t)}function GR(e){var t=function(){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($o){return!1}}();return function(){var n,r=KR(e);if(t){var i=KR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===VR(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qR(e)}(this,n)}}function qR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KR(e){return KR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KR(e)}function XR(e,t,n){return(t=ZR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZR(e){var t=function(e,t){if("object"!==VR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VR(t)?t:String(t)}var YR=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WR(e,t)}(a,e);var n,r,i,o=GR(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return XR(qR(e=o.call.apply(o,[this].concat(n))),"onChange",(function(t){e.props.onSelect(t.target.value)})),e}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.id,i=e.items,o=e.selectedItem;return t.createElement("select",{id:r,className:n("select"),value:o,onChange:this.onChange},i.map((function(e){return t.createElement("option",{className:n("option"),key:void 0===e.key?e.value:e.key,disabled:e.disabled,value:e.value},void 0===e.label?e.value:e.label)})))}}],r&&HR(n.prototype,r),i&&HR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);function QR(e){return QR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QR(e)}function $R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rA(r.key),r)}}function JR(e,t){return JR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},JR(e,t)}function eA(e){var t=function(){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($o){return!1}}();return function(){var n,r=tA(e);if(t){var i=tA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===QR(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function tA(e){return tA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tA(e)}function nA(e,t,n){return(t=rA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rA(e){var t=function(e,t){if("object"!==QR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QR(t)?t:String(t)}XR(YR,"propTypes",{cx:M().func.isRequired,id:M().string,onSelect:M().func.isRequired,items:M().arrayOf(M().shape({value:M().oneOfType([M().string,M().number]).isRequired,key:M().oneOfType([M().string,M().number]),label:M().string,disabled:M().bool})).isRequired,selectedItem:M().oneOfType([M().string,M().number]).isRequired});var iA=Zx("HitsPerPage"),oA=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JR(e,t)}(a,e);var n,r,i,o=eA(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.id,r=e.items,i=e.currentRefinement,o=e.refine,a=e.className;return t.createElement("div",{className:th()(iA(""),a)},t.createElement(YR,{id:n,onSelect:o,selectedItem:i,items:r,cx:iA}))}}],r&&$R(n.prototype,r),i&&$R(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(t.Component);nA(oA,"propTypes",{id:M().string,items:M().arrayOf(M().shape({value:M().number.isRequired,label:M().string})).isRequired,currentRefinement:M().number.isRequired,refine:M().func.isRequired,className:M().string}),nA(oA,"defaultProps",{className:""});const aA=UR(oA,{$$widgetType:"ais.hitsPerPage"}),sA=(e,t)=>{let n=t||{x1:0,x2:1,y1:0,y2:1};if(!e)return null;const r=(0,xo.getElementSize)(e),i=(0,xo.getRectAspectRatio)(n,r);let o=(0,xo.getThumbSizeArea)(600,600,i);return(0,xo.elementToCanvas)(e,o,n)};class lA{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Network Error";this.status=e,this.text=t}}const uA={origin:"https://api.emailjs.com",blockHeadless:!1,storageProvider:(()=>{if("undefined"!==typeof localStorage)return{get:e=>Promise.resolve(localStorage.getItem(e)),set:(e,t)=>Promise.resolve(localStorage.setItem(e,t)),remove:e=>Promise.resolve(localStorage.removeItem(e))}})()},cA=e=>e?"string"===typeof e?{publicKey:e}:"[object Object]"===e.toString()?e:{}:{},dA=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=await fetch(uA.origin+e,{method:"POST",headers:n,body:t}),i=await r.text(),o=new lA(r.status,i);if(r.ok)return o;throw o},fA=(e,t,n)=>{if(!e||"string"!==typeof e)throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!t||"string"!==typeof t)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!n||"string"!==typeof n)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates"},hA=e=>e.webdriver||!e.languages||0===e.languages.length,pA=()=>new lA(451,"Unavailable For Headless Browser"),gA=(e,t)=>{if((e=>{var t;return!(null!==(t=e.list)&&void 0!==t&&t.length)||!e.watchVariable})(e))return!1;((e,t)=>{if(!Array.isArray(e))throw"The BlockList list has to be an array";if("string"!==typeof t)throw"The BlockList watchVariable has to be a string"})(e.list,e.watchVariable);const n=(r=t,i=e.watchVariable,r instanceof FormData?r.get(i):r[i]);var r,i;return"string"===typeof n&&e.list.includes(n)},mA=()=>new lA(403,"Forbidden"),vA=async(e,t,n)=>{if(!t.throttle||!n)return!1;((e,t)=>{if("number"!==typeof e||e<0)throw"The LimitRate throttle has to be a positive number";if(t&&"string"!==typeof t)throw"The LimitRate ID has to be a string"})(t.throttle,t.id);const r=t.id||e,i=await(async(e,t,n)=>{const r=Number(await n.get(e)||0);return t-Date.now()+r})(r,t.throttle,n);return i>0||(await n.set(r,Date.now().toString()),!1)},yA=()=>new lA(429,"Too Many Requests"),bA={init:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https://api.emailjs.com";if(!e)return;const n=cA(e);uA.publicKey=n.publicKey,uA.blockHeadless=n.blockHeadless,uA.storageProvider=n.storageProvider,uA.blockList=n.blockList,uA.limitRate=n.limitRate,uA.origin=n.origin||t},send:async(e,t,n,r)=>{const i=cA(r),o=i.publicKey||uA.publicKey,a=i.blockHeadless||uA.blockHeadless,s=uA.storageProvider||i.storageProvider,l={...uA.blockList,...i.blockList},u={...uA.limitRate,...i.limitRate};if(a&&hA(navigator))return Promise.reject(pA());if(fA(o,e,t),(e=>{if(e&&"[object Object]"!==e.toString())throw"The template params have to be the object. Visit https://www.emailjs.com/docs/sdk/send/"})(n),n&&gA(l,n))return Promise.reject(mA());if(await vA(location.pathname,u,s))return Promise.reject(yA());const c={lib_version:"4.3.3",user_id:o,service_id:e,template_id:t,template_params:n};return dA("/api/v1.0/email/send",JSON.stringify(c),{"Content-type":"application/json"})},sendForm:async(e,t,n,r)=>{const i=cA(r),o=i.publicKey||uA.publicKey,a=i.blockHeadless||uA.blockHeadless,s=uA.storageProvider||i.storageProvider,l={...uA.blockList,...i.blockList},u={...uA.limitRate,...i.limitRate};if(a&&hA(navigator))return Promise.reject(pA());const c=(e=>"string"===typeof e?document.querySelector(e):e)(n);fA(o,e,t),(e=>{if(!e||"FORM"!==e.nodeName)throw"The 3rd parameter is expected to be the HTML form element or the style selector of the form"})(c);const d=new FormData(c);return gA(l,d)?Promise.reject(mA()):await vA(location.pathname,u,s)?Promise.reject(yA()):(d.append("lib_version","4.3.3"),d.append("service_id",e),d.append("template_id",t),d.append("user_id",o),dA("/api/v1.0/email/send-form",d))},EmailJSResponseStatus:lA};function xA(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}let wA={data:""},CA=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||wA,SA=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,kA=/\/\*[^]*?\*\/| +/g,_A=/\n+/g,EA=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?EA(a,o):o+"{"+EA(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=EA(a,t?t.replace(/([^,])+/g,(e=>o.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=a&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=EA.p?EA.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},PA={},jA=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+jA(e[n]);return t}return e},OA=(e,t,n,r,i)=>{let o=jA(e),a=PA[o]||(PA[o]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(o));if(!PA[a]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=SA.exec(e.replace(kA,""));)t[4]?r.shift():t[3]?(n=t[3].replace(_A," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(_A," ").trim();return r[0]})(e);PA[a]=EA(i?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&PA.g?PA.g:null;return n&&(PA.g=PA[a]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(PA[a],t,r,s),a},RA=(e,t,n)=>e.reduce(((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":EA(e,""):!1===e?"":e}return e+r+(null==o?"":o)}),"");function AA(e){let t=this||{},n=e.call?e(t.p):e;return OA(n.unshift?n.raw?RA(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,CA(t.target),t.g,t.o,t.k)}AA.bind({g:1});let TA,NA,FA,MA=AA.bind({k:1});function LA(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:NA&&NA()},s),n.o=/ *go\d+/.test(l),s.className=AA.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),FA&&u[0]&&FA(s),TA(u,s)}return t?t(i):i}}var IA,DA,zA,BA,UA,VA,HA,WA,GA,qA,KA,XA,ZA,YA,QA,$A,JA=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,eT=(()=>{let e=0;return()=>(++e).toString()})(),tT=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),nT=new Map,rT=e=>{if(nT.has(e))return;let t=setTimeout((()=>{nT.delete(e),sT({type:4,toastId:e})}),1e3);nT.set(e,t)},iT=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=nT.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?iT(e,{type:1,toast:n}):iT(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?rT(r):e.toasts.forEach((e=>{rT(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+i})))}}},oT=[],aT={toasts:[],pausedAt:void 0},sT=e=>{aT=iT(aT,e),oT.forEach((e=>{e(aT)}))},lT={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},uT=e=>(t,n)=>{let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||eT()}}(t,e,n);return sT({type:2,toast:r}),r.id},cT=(e,t)=>uT("blank")(e,t);cT.error=uT("error"),cT.success=uT("success"),cT.loading=uT("loading"),cT.custom=uT("custom"),cT.dismiss=e=>{sT({type:3,toastId:e})},cT.remove=e=>sT({type:4,toastId:e}),cT.promise=(e,t,n)=>{let r=cT.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(cT.success(JA(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{cT.error(JA(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var dT=(e,t)=>{sT({type:1,toast:{id:e,height:t}})},fT=()=>{sT({type:5,time:Date.now()})},hT=e=>{let{toasts:n,pausedAt:r}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[n,r]=(0,t.useState)(aT);(0,t.useEffect)((()=>(oT.push(r),()=>{let e=oT.indexOf(r);e>-1&&oT.splice(e,1)})),[n]);let i=n.toasts.map((t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||lT[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}}));return{...n,toasts:i}}(e);(0,t.useEffect)((()=>{if(r)return;let e=Date.now(),t=n.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>cT.dismiss(t.id)),n);t.visible&&cT.dismiss(t.id)}));return()=>{t.forEach((e=>e&&clearTimeout(e)))}}),[n,r]);let i=(0,t.useCallback)((()=>{r&&sT({type:6,time:Date.now()})}),[r]),o=(0,t.useCallback)(((e,t)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:o}=t||{},a=n.filter((t=>(t.position||o)===(e.position||o)&&t.height)),s=a.findIndex((t=>t.id===e.id)),l=a.filter(((e,t)=>t<s&&e.visible)).length;return a.filter((e=>e.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+i),0)}),[n]);return{toasts:n,handlers:{updateHeight:dT,startPause:fT,endPause:i,calculateOffset:o}}},pT=MA(IA||(IA=xA(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]))),gT=MA(DA||(DA=xA(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),mT=MA(zA||(zA=xA(["\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]))),vT=LA("div")(BA||(BA=xA(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"])),(e=>e.primary||"#ff4b4b"),pT,gT,(e=>e.secondary||"#fff"),mT),yT=MA(UA||(UA=xA(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),bT=LA("div")(VA||(VA=xA(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"])),(e=>e.secondary||"#e0e0e0"),(e=>e.primary||"#616161"),yT),xT=MA(HA||(HA=xA(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]))),wT=MA(WA||(WA=xA(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}"]))),CT=LA("div")(GA||(GA=xA(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"])),(e=>e.primary||"#61d345"),xT,wT,(e=>e.secondary||"#fff")),ST=LA("div")(qA||(qA=xA(["\n position: absolute;\n"]))),kT=LA("div")(KA||(KA=xA(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]))),_T=MA(XA||(XA=xA(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),ET=LA("div")(ZA||(ZA=xA(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"])),_T),PT=e=>{let{toast:n}=e,{icon:r,type:i,iconTheme:o}=n;return void 0!==r?"string"==typeof r?t.createElement(ET,null,r):r:"blank"===i?null:t.createElement(kT,null,t.createElement(bT,{...o}),"loading"!==i&&t.createElement(ST,null,"error"===i?t.createElement(vT,{...o}):t.createElement(CT,{...o})))},jT=e=>"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"),OT=e=>"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n"),RT=LA("div")(YA||(YA=xA(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]))),AT=LA("div")(QA||(QA=xA(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n"]))),TT=t.memo((e=>{let{toast:n,position:r,style:i,children:o}=e,a=n.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,i]=tT()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[jT(n),OT(n)];return{animation:t?"".concat(MA(r)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(MA(i)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}})(n.position||r||"top-center",n.visible):{opacity:0},s=t.createElement(PT,{toast:n}),l=t.createElement(AT,{...n.ariaProps},JA(n.message,n));return t.createElement(RT,{className:n.className,style:{...a,...i,...n.style}},"function"==typeof o?o({icon:s,message:l}):t.createElement(t.Fragment,null,s,l))}));!function(e,t,n,r){EA.p=t,TA=e,NA=n,FA=r}(t.createElement);var NT=e=>{let{id:n,className:r,style:i,onHeightUpdate:o,children:a}=e,s=t.useCallback((e=>{if(e){let t=()=>{let t=e.getBoundingClientRect().height;o(n,t)};t(),new MutationObserver(t).observe(e,{subtree:!0,childList:!0,characterData:!0})}}),[n,o]);return t.createElement("div",{ref:s,className:r,style:i},a)},FT=AA($A||($A=xA(["\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n"]))),MT=e=>{let{reverseOrder:n,position:r="top-center",toastOptions:i,gutter:o,children:a,containerStyle:s,containerClassName:l}=e,{toasts:u,handlers:c}=hT(i);return t.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:l,onMouseEnter:c.startPause,onMouseLeave:c.endPause},u.map((e=>{let i=e.position||r,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:tT()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)"),...r,...i}})(i,c.calculateOffset(e,{reverseOrder:n,gutter:o,defaultPosition:r}));return t.createElement(NT,{id:e.id,key:e.id,onHeightUpdate:c.updateHeight,className:e.visible?FT:"",style:s},"custom"===e.type?JA(e.message,e):a?a(e):t.createElement(TT,{toast:e,position:i}))})))},LT=cT;class IT{static success(e){LT.success(e,{duration:3e3,style:{background:"#1E1F31",color:"#fff"}})}static error(e){LT.error(e,{duration:3e3,style:{background:"#1E1F31",color:"#fff"}})}}function DT(e,t){return parseInt(e[t],10)||0}var zT="undefined"!==typeof window?t.useLayoutEffect:t.useEffect,BT={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},UT=t.forwardRef((function(e,n){var r=e.onChange,i=e.rows,o=e.rowsMax,a=e.rowsMin,s=e.maxRows,l=e.minRows,u=void 0===l?1:l,c=e.style,d=e.value,f=(0,Fr.A)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),h=s||o,p=i||a||u,g=t.useRef(null!=d).current,m=t.useRef(null),v=(0,zr.A)(n,m),y=t.useRef(null),b=t.useRef(0),x=t.useState({}),w=x[0],C=x[1],S=t.useCallback((function(){var t=m.current,n=window.getComputedStyle(t),r=y.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=DT(n,"padding-bottom")+DT(n,"padding-top"),a=DT(n,"border-bottom-width")+DT(n,"border-top-width"),s=r.scrollHeight-o;r.value="x";var l=r.scrollHeight-o,u=s;p&&(u=Math.max(Number(p)*l,u)),h&&(u=Math.min(Number(h)*l,u));var c=(u=Math.max(u,l))+("border-box"===i?o+a:0),d=Math.abs(u-s)<=1;C((function(e){return b.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==d)?(b.current+=1,{overflow:d,outerHeightStyle:c}):e}))}),[h,p,e.placeholder]);t.useEffect((function(){var e=(0,to.A)((function(){b.current=0,S()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[S]),zT((function(){S()})),t.useEffect((function(){b.current=0}),[d]);return t.createElement(t.Fragment,null,t.createElement("textarea",(0,j.A)({value:d,onChange:function(e){b.current=0,g||S(),r&&r(e)},ref:v,rows:p,style:(0,j.A)({height:w.outerHeightStyle,overflow:w.overflow?"hidden":null},c)},f)),t.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:(0,j.A)({},BT,c)}))}));const VT=UT;var HT;function WT(){return WT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WT.apply(this,arguments)}function GT(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",WT({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,HT||(HT=t.createElement("path",{d:"M10 0.000191037C8.68453 -0.0079651 7.38053 0.245119 6.16361 0.744768C4.94669 1.24442 3.84108 1.98069 2.91088 2.91088C1.98069 3.84108 1.24442 4.94669 0.744768 6.16361C0.245119 7.38053 -0.0079651 8.68453 0.000191037 10C-0.0079651 11.3155 0.245119 12.6195 0.744768 13.8364C1.24442 15.0533 1.98069 16.1589 2.91088 17.0891C3.84108 18.0193 4.94669 18.7556 6.16361 19.2552C7.38053 19.7549 8.68453 20.008 10 19.9998C11.3155 20.008 12.6195 19.7549 13.8364 19.2552C15.0533 18.7556 16.1589 18.0193 17.0891 17.0891C18.0193 16.1589 18.7556 15.0533 19.2552 13.8364C19.7549 12.6195 20.008 11.3155 19.9998 10C20.008 8.68453 19.7549 7.38053 19.2552 6.16361C18.7556 4.94669 18.0193 3.84108 17.0891 2.91088C16.1589 1.98069 15.0533 1.24442 13.8364 0.744768C12.6195 0.245119 11.3155 -0.0079651 10 0.000191037ZM13.8891 14.9999L5.0001 6.11129L6.11129 5.0001L14.9999 13.8891L13.8891 14.9999Z",fill:"#E31B5D"})))}const qT=t.forwardRef(GT),KT=(n.p,/.+\@.+\..+$/),XT=e=>{switch(e.status){case 400:default:return"Your email could not be sent, please try again or send an email to support@nyris.io";case 421:case 450:case 451:case 452:return"Email delivery failed. Rest assured, we're continuously attempting to send it for you. Alternatively, you can forward the email to support@nyris.io"}};function ZT(e){var n;let{requestImage:r,selectedRegion:i,setIsRfqModalOpen:o,isRfqModalOpen:a,setRfqStatus:s}=e;const[l,u]=(0,t.useState)(""),[c,d]=(0,t.useState)(void 0),f=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),{settings:h}=Nr((e=>e)),[p,g]=(0,t.useState)(""),m=t.useCallback((e=>{g(e.slice(0,150))}),[g]);(0,t.useEffect)((()=>bA.init("SMGihPnuEGcYLm0V4")),[]),(0,t.useEffect)((()=>{l&&(KT.test(l)?d(!0):d(!1))}),[l]);return(0,_o.jsx)(us,{openModal:a,handleClose:e=>{o(!1)},children:(0,_o.jsxs)("div",{style:{display:"flex",width:f?"360px":"378px",flexDirection:"column",backgroundColor:"#fff"},children:[(0,_o.jsxs)("div",{style:{padding:"16px",display:"flex",flexDirection:"column"},children:[(0,_o.jsx)(go.A,{style:{fontSize:16,color:"black",alignSelf:"flex-end",cursor:"pointer"},onClick:()=>o(!1)}),(0,_o.jsx)("p",{style:{color:"#2B2C46",fontSize:"20px",fontWeight:"bold"},children:"Submit your image for quotation"})]}),(0,_o.jsx)("div",{style:{padding:"16px",backgroundColor:"#F3F3F5",display:"flex",justifyContent:"center"},children:(0,_o.jsx)("img",{src:null===(n=sA(null===r||void 0===r?void 0:r.canvas,i))||void 0===n?void 0:n.toDataURL(),alt:"request_image",style:{maxHeight:"200px"}})}),(0,_o.jsxs)("div",{style:{padding:"0px 16px 16px 16px",backgroundColor:"#F3F3F5",display:"flex",flexDirection:"column",rowGap:"16px"},children:[(0,_o.jsxs)("div",{children:[(0,_o.jsx)("p",{style:{fontSize:"12px",color:"#2B2C46",marginBottom:"8px"},children:"Your email (required)"}),(0,_o.jsx)("input",{value:l,onChange:e=>u(e.currentTarget.value.trim()),style:{width:"100%",border:"none",height:"32px",padding:"8px 16px 8px 16px"}}),!c&&!(0,Yn.isUndefined)(c)&&(0,_o.jsx)("p",{style:{color:"red",fontSize:"12px",paddingTop:"8px"},children:"Please enter a valid email."})]}),(0,_o.jsxs)("div",{children:[(0,_o.jsxs)("div",{style:{marginBottom:"8px",display:"flex",justifyContent:"space-between",fontSize:"12px",color:"#2B2C46"},children:[(0,_o.jsx)("p",{children:"Additional information"}),(0,_o.jsx)("p",{children:"".concat(p.length,"/150")})]}),(0,_o.jsx)(VT,{value:p,onChange:e=>m(e.currentTarget.value),style:{width:"100%",border:"none",maxWidth:"346px",padding:"8px 16px 8px 16px"}})]})]}),(0,_o.jsxs)("div",{style:{display:"flex"},children:[(0,_o.jsx)("button",{style:{height:"66px",display:"flex",alignItems:"center",width:"50%",backgroundColor:"#4B4B4A",color:"white",fontSize:"14px",paddingLeft:"16px",border:"none",cursor:"pointer"},onClick:()=>o(!1),children:"Cancel"}),(0,_o.jsx)("button",{style:{height:"66px",display:"flex",alignItems:"center",width:"50%",backgroundColor:c?"#4DBE51":"#E9E9EC",color:c?"#fff":"#AAABB5",fontSize:"14px",paddingLeft:"16px",border:"none",cursor:c?"pointer":"normal"},disabled:!c,onClick:async e=>{var t;e.preventDefault();const{canvas:n}=r,a=sA(n,i);o(!1);const u=null===(t=h.rfq)||void 0===t?void 0:t.emailTemplateId;if(u){try{s("loading"),await bA.send("service_zfsxshi",u,{email_id:l.trim(),information_text:p,request_image:null===a||void 0===a?void 0:a.toDataURL()}),s("sent"),IT.success("Request sent successfully")}catch(c){s("inactive"),LT((e=>(0,_o.jsxs)("div",{style:{display:"flex",flexDirection:"column",fontSize:"14px",width:"294px"},children:[(0,_o.jsx)("span",{style:{fontWeight:"bold"},children:"Email not sent"}),(0,_o.jsx)("span",{children:XT(c)}),(0,_o.jsx)("a",{href:"mailto:support@nyris.io?subject=Request for quotation&body=".concat(p),style:{padding:"8px 16px 8px 16px",border:"1px solid #000",marginTop:"16px",backgroundColor:"transparent",color:"#000",cursor:"pointer",width:"fit-content"},children:"support@nyris.io"})]})),{duration:5e3,style:{background:"#FFE5EF",color:"#000000",maxWidth:"400px"},icon:(0,_o.jsx)("div",{style:{minWidth:"20px",minHeight:"20px"},children:(0,_o.jsx)(qT,{})})})}o(!1)}},children:"Send"})]})]})})}var YT,QT=n(8598);function $T(){return $T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$T.apply(this,arguments)}function JT(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",$T({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,YT||(YT=t.createElement("path",{d:"M9.92155 9.15944C10.2525 8.78211 10.2525 8.21789 9.92155 7.84056L6.46105 3.8956C6.27719 3.68599 5.95088 3.68599 5.76702 3.8956C5.61423 4.06978 5.61423 4.33022 5.76702 4.5044L8.69348 7.84056C9.02446 8.21789 9.02446 8.78211 8.69348 9.15944L5.76702 12.4956C5.61423 12.6698 5.61423 12.9302 5.76702 13.1044C5.95088 13.314 6.27719 13.314 6.46105 13.1044L9.92155 9.15944Z",fill:"#2B2C46"})))}const eN=t.forwardRef(JT);n.p;var tN;function nN(){return nN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nN.apply(this,arguments)}function rN(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",nN({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,tN||(tN=t.createElement("path",{d:"M6.07845 9.15944C5.74747 8.78211 5.74747 8.21789 6.07845 7.84056L9.53895 3.8956C9.72281 3.68599 10.0491 3.68599 10.233 3.8956C10.3858 4.06978 10.3858 4.33022 10.233 4.5044L7.30652 7.84056C6.97554 8.21789 6.97554 8.78211 7.30652 9.15944L10.233 12.4956C10.3858 12.6698 10.3858 12.9302 10.233 13.1044C10.0491 13.314 9.72281 13.314 9.53895 13.1044L6.07845 9.15944Z",fill:"#2B2C46"})))}const iN=t.forwardRef(rN);n.p;const oN=function(e){let{setImageSelection:n,imageSelection:r,debouncedOnImageSelectionChange:i,filteredRegions:o,showAdjustInfoBasedOnConfidence:a,showAdjustInfo:s,showPostFilter:l,disjunctiveFacets:u}=e;const{t:c}=Ml(),[d,f]=(0,t.useState)(!1),h=Nr((e=>e)),{search:p,settings:g}=h,{requestImage:m}=p;return(0,_o.jsxs)("div",{className:"wrap-main-col-left ".concat(d?"toggle":""),style:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[(0,_o.jsx)("div",{className:"box-toggle-coloumn",style:{right:"0px"},children:(0,_o.jsx)(oi,{style:{color:"#55566b",height:"32px"},onClick:()=>{f(!d)},children:d?(0,_o.jsx)(eN,{}):(0,_o.jsx)(iN,{})})}),(0,_o.jsxs)("div",{children:[g.preview&&m&&(0,_o.jsxs)("div",{className:"col-left",children:[(0,_o.jsx)("div",{className:"box-preview",children:(0,_o.jsx)("div",{className:"preview-item",style:{backgroundColor:"white",paddingTop:"32px",width:"100%"},children:(0,_o.jsx)("div",{style:{display:"flex",justifyContent:"center",backgroundColor:"#F3F3F5",width:"100%",paddingTop:"16px",paddingBottom:"16px"},children:(0,_o.jsx)("div",{style:{width:"288px",height:"fit-content"},children:(0,_o.jsx)(QT.Preview,{onSelectionChange:e=>{i(e)},image:null===m||void 0===m?void 0:m.canvas,selection:r||qn,regions:o,dotColor:"#FBD914",minCropWidth:30,minCropHeight:30,rounded:!0},null===m||void 0===m?void 0:m.id)})})})}),(a||s)&&(0,_o.jsxs)("div",{style:{alignItems:"center",backgroundColor:"#3E36DC",display:"flex",columnGap:"6px",padding:"5px",marginTop:"auto",position:"absolute",bottom:0,borderRadius:"16px"},children:[(0,_o.jsx)(Mo,{color:"white"}),(0,_o.jsx)(Zd,{style:{fontSize:10,color:"#fff"},children:s?c("Crop the image for better results"):"Crop the image for better results"})]})]}),l&&(0,_o.jsxs)("div",{className:"col-left__bottom",style:{marginTop:m?"16px":"48px"},children:[g.algolia.enabled&&(0,_o.jsx)(NC,{disjunctiveFacets:u}),!g.algolia.enabled&&(0,_o.jsx)(WC,{})]})]})]})},aN=(e,n)=>(0,t.useMemo)((()=>e.map((e=>{var t,r,i,o;return(null===(t=e.normalizedRect)||void 0===t?void 0:t.x1)===(null===n||void 0===n?void 0:n.x1)&&(null===(r=e.normalizedRect)||void 0===r?void 0:r.x2)===(null===n||void 0===n?void 0:n.x2)&&(null===(i=e.normalizedRect)||void 0===i?void 0:i.y1)===(null===n||void 0===n?void 0:n.y1)&&(null===(o=e.normalizedRect)||void 0===o?void 0:o.y2)===(null===n||void 0===n?void 0:n.y2)||0===(null===n||void 0===n?void 0:n.x1)&&1===(null===n||void 0===n?void 0:n.x2)&&0===(null===n||void 0===n?void 0:n.y1)&&1===(null===n||void 0===n?void 0:n.y2)?{...e,show:!1}:{...e,show:!0}}))),[e,n]);var sN=n(7120);var lN=function(e,t){return!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?sN.H.indexOf(e)<=sN.H.indexOf(t):sN.H.indexOf(e)<sN.H.indexOf(t)},uN=function(e,t){return!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?sN.H.indexOf(t)<=sN.H.indexOf(e):sN.H.indexOf(t)<sN.H.indexOf(e)},cN="undefined"===typeof window?t.useEffect:t.useLayoutEffect;const dN=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var r=e.withTheme,i=void 0!==r&&r,o=e.noSSR,a=void 0!==o&&o,s=e.initialWidth;function l(e){var r=qi(),o=e.theme||r,l=(0,ci.A)({theme:o,name:"MuiWithWidth",props:(0,j.A)({},e)}),u=l.initialWidth,c=l.width,d=(0,Fr.A)(l,["initialWidth","width"]),f=t.useState(!1),h=f[0],p=f[1];cN((function(){p(!0)}),[]);var g=o.breakpoints.keys.slice().reverse().reduce((function(e,n){var r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,R.A)(),i=(0,ci.A)({theme:r,name:"MuiUseMediaQuery",props:{}}),o="function"===typeof e?e(r):e;o=o.replace(/^@media( ?)/m,"");var a="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,s=(0,j.A)({},i,n),l=s.defaultMatches,u=void 0!==l&&l,c=s.matchMedia,d=void 0===c?a?window.matchMedia:null:c,f=s.noSsr,h=void 0!==f&&f,p=s.ssrMatchMedia,g=void 0===p?null:p,m=t.useState((function(){return h&&a?d(o).matches:g?g(o).matches:u})),v=m[0],y=m[1];return t.useEffect((function(){var e=!0;if(a){var t=d(o),n=function(){e&&y(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[o,d,a]),v}(o.breakpoints.up(n));return!e&&r?n:e}),null),m=(0,j.A)({width:c||(h||a?g:void 0)||u||s},i?{theme:o}:{},d);return void 0===m.width?null:t.createElement(n,m)}return he()(l,n),l}};function fN(e){var t=e.children,n=e.only,r=e.width,i=qi(),o=!0;if(n)if(Array.isArray(n))for(var a=0;a<n.length;a+=1){if(r===n[a]){o=!1;break}}else n&&r===n&&(o=!1);if(o)for(var s=0;s<i.breakpoints.keys.length;s+=1){var l=i.breakpoints.keys[s],u=e["".concat(l,"Up")],c=e["".concat(l,"Down")];if(u&&lN(l,r)||c&&uN(l,r)){o=!1;break}}return o?t:null}fN.propTypes={children:M().node,className:M().string,implementation:M().oneOf(["js","css"]),initialWidth:M().oneOf(["xs","sm","md","lg","xl"]),lgDown:M().bool,lgUp:M().bool,mdDown:M().bool,mdUp:M().bool,only:M().oneOfType([M().oneOf(["xs","sm","md","lg","xl"]),M().arrayOf(M().oneOf(["xs","sm","md","lg","xl"]))]),smDown:M().bool,smUp:M().bool,width:M().string.isRequired,xlDown:M().bool,xlUp:M().bool,xsDown:M().bool,xsUp:M().bool};const hN=dN()(fN);const pN=(0,Lr.A)((function(e){var t={display:"none"};return e.breakpoints.keys.reduce((function(n,r){return n["only".concat((0,ri.A)(r))]=(0,qe.A)({},e.breakpoints.only(r),t),n["".concat(r,"Up")]=(0,qe.A)({},e.breakpoints.up(r),t),n["".concat(r,"Down")]=(0,qe.A)({},e.breakpoints.down(r),t),n}),{})}),{name:"PrivateHiddenCss"})((function(e){var n=e.children,r=e.classes,i=e.className,o=e.only,a=((0,Fr.A)(e,["children","classes","className","only"]),qi()),s=[];i&&s.push(i);for(var l=0;l<a.breakpoints.keys.length;l+=1){var u=a.breakpoints.keys[l],c=e["".concat(u,"Up")],d=e["".concat(u,"Down")];c&&s.push(r["".concat(u,"Up")]),d&&s.push(r["".concat(u,"Down")])}return o&&(Array.isArray(o)?o:[o]).forEach((function(e){s.push(r["only".concat((0,ri.A)(e))])})),t.createElement("div",{className:s.join(" ")},n)}));const gN=function(e){var n=e.implementation,r=void 0===n?"js":n,i=e.lgDown,o=void 0!==i&&i,a=e.lgUp,s=void 0!==a&&a,l=e.mdDown,u=void 0!==l&&l,c=e.mdUp,d=void 0!==c&&c,f=e.smDown,h=void 0!==f&&f,p=e.smUp,g=void 0!==p&&p,m=e.xlDown,v=void 0!==m&&m,y=e.xlUp,b=void 0!==y&&y,x=e.xsDown,w=void 0!==x&&x,C=e.xsUp,S=void 0!==C&&C,k=(0,Fr.A)(e,["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"]);return"js"===r?t.createElement(hN,(0,j.A)({lgDown:o,lgUp:s,mdDown:u,mdUp:d,smDown:h,smUp:g,xlDown:v,xlUp:b,xsDown:w,xsUp:S},k)):t.createElement(pN,(0,j.A)({lgDown:o,lgUp:s,mdDown:u,mdUp:d,smDown:h,smUp:g,xlDown:v,xlUp:b,xsDown:w,xsUp:S},k))};var mN;function vN(){return vN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vN.apply(this,arguments)}function yN(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",vN({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,mN||(mN=t.createElement("path",{d:"M8.65944 6.57845C8.28211 6.24747 7.71789 6.24747 7.34056 6.57845L3.3956 10.0389C3.18599 10.2228 3.18599 10.5491 3.3956 10.733C3.56978 10.8858 3.83022 10.8858 4.0044 10.733L7.34056 7.80652C7.71789 7.47554 8.28211 7.47554 8.65944 7.80652L11.9956 10.733C12.1698 10.8858 12.4302 10.8858 12.6044 10.733C12.814 10.5491 12.814 10.2228 12.6044 10.0389L8.65944 6.57845Z",fill:"currentColor"})))}const bN=t.forwardRef(yN);n.p;var xN;function wN(){return wN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wN.apply(this,arguments)}function CN(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",wN({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,xN||(xN=t.createElement("path",{d:"M8.65944 10.4215C8.28211 10.7525 7.71789 10.7525 7.34056 10.4215L3.3956 6.96105C3.18599 6.77719 3.18599 6.45088 3.3956 6.26702C3.56978 6.11423 3.83022 6.11423 4.0044 6.26702L7.34056 9.19348C7.71789 9.52446 8.28211 9.52446 8.65944 9.19348L11.9956 6.26702C12.1698 6.11423 12.4302 6.11423 12.6044 6.26702C12.814 6.45088 12.814 6.77719 12.6044 6.96105L8.65944 10.4215Z",fill:"#currentColor"})))}const SN=t.forwardRef(CN);n.p;var kN;function _N(){return _N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_N.apply(this,arguments)}function EN(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",_N({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,kN||(kN=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 0.5C9 0.223858 8.77614 0 8.5 0H5.5C5.22386 0 5 0.223858 5 0.5C5 0.776142 5.22386 1 5.5 1H8.5C8.77614 1 9 0.776142 9 0.5ZM1.5 3C1.22386 3 1 2.77614 1 2.5C1 2.22386 1.22386 2 1.5 2H12.5C12.7761 2 13 2.22386 13 2.5C13 2.77614 12.7761 3 12.5 3C12.2239 3 12 3.22386 12 3.5V13C12 13.5523 11.5523 14 11 14H3C2.44772 14 2 13.5523 2 13V3.5C2 3.22386 1.77614 3 1.5 3ZM4 3C3.44772 3 3 3.44772 3 4V12C3 12.5523 3.44772 13 4 13H10C10.5523 13 11 12.5523 11 12V4C11 3.44772 10.5523 3 10 3H4ZM6 5.5C6 5.22386 5.77614 5 5.5 5C5.22386 5 5 5.22386 5 5.5V10.5C5 10.7761 5.22386 11 5.5 11C5.77614 11 6 10.7761 6 10.5V5.5ZM9 5.5C9 5.22386 8.77614 5 8.5 5C8.22386 5 8 5.22386 8 5.5V10.5C8 10.7761 8.22386 11 8.5 11C8.77614 11 9 10.7761 9 10.5V5.5Z",fill:"currentColor"})))}const PN=t.forwardRef(EN);n.p;function jN(e){var n,r,i;let{requestImage:o,imageSelection:a,debouncedOnImageSelectionChange:s,filteredRegions:l,showAdjustInfo:u,showAdjustInfoBasedOnConfidence:c,...d}=e;const{t:f}=Ml(),[h,p]=(0,t.useState)(!1),g=Nr((e=>e.settings)),{preFilter:m}=Nr((e=>e.search)),v=null===(n=g.algolia)||void 0===n?void 0:n.enabled,y=bl(),b=Tr(),x=Ne(),w=y.get("query")||"";return(0,_o.jsx)("div",{className:"col-left",style:{backgroundColor:"#5D5D63",marginBottom:"15px"},children:(0,_o.jsxs)("div",{children:[(0,_o.jsxs)("div",{className:"box-preview",children:[(0,_o.jsx)("div",{children:(0,_o.jsx)("div",{className:"preview-item",style:{backgroundColor:"transparent"},children:(0,_o.jsx)(QT.Preview,{onSelectionChange:e=>{s(e)},image:null===o||void 0===o?void 0:o.canvas,selection:a||qn,regions:l,minWidth:Math.min((null===o||void 0===o||null===(r=o.canvas)||void 0===r?void 0:r.width)/(null===o||void 0===o||null===(i=o.canvas)||void 0===i?void 0:i.height)*80,200),minHeight:80,maxWidth:255,maxHeight:255,dotColor:h?"#FBD914":"",minCropWidth:h?30:5,minCropHeight:h?30:5,rounded:!1,expandAnimation:h,shrinkAnimation:!h,onExpand:()=>{p(!0)},showGrip:h,draggable:!!h},null===o||void 0===o?void 0:o.id)})}),(c||u)&&(0,_o.jsxs)("div",{style:{backgroundColor:"#3E36DC",display:"flex",columnGap:"6px",padding:"5px",width:"fit-content",minWidth:"180px",marginTop:"auto",position:"absolute",bottom:-25,borderRadius:"16px",zIndex:1e3},children:[(0,_o.jsx)(Mo,{color:"white"}),(0,_o.jsx)(Zd,{style:{fontSize:10,color:"#fff"},children:u?f("Crop the image for better results"):"Crop the image for better results"})]})]}),(0,_o.jsxs)(_o.Fragment,{children:[(0,_o.jsx)(gN,{children:(0,_o.jsx)("div",{style:{position:"absolute",left:"15px",top:"25px",padding:"4px"},onClick:()=>{if(w||(b(rr("")),x.push("/")),b(rr("")),!v){let e,t=[];const n=[{key:g.visualSearchFilterKey,values:Object.keys(m)}];w||o?(b(br(!0)),ko({settings:g,filters:(0,Yn.isEmpty)(m)?void 0:n,text:w}).then((n=>{null===n||void 0===n||n.results.forEach((e=>{t.push({sku:e.sku,score:e.score})})),e={...n,filters:t},b(hr(e)),b(br(!1))})).catch((e=>{console.log("error input search",e),b(br(!1))}))):b(hr([]))}},children:(0,_o.jsx)("div",{style:{width:"24px",height:"24px",justifyContent:"center",alignItems:"center",display:"flex",borderRadius:"100%"},children:(0,_o.jsx)(PN,{color:"white",fill:"white"})})})}),(0,_o.jsx)(gN,{mdUp:!0,children:(0,_o.jsx)("div",{className:"slideDown",style:{position:"absolute",bottom:"25px",right:"20px"},onClick:()=>{p((e=>!e))},children:(0,_o.jsxs)("div",{style:{width:"24px",height:"24px",justifyContent:"center",alignItems:"center",display:"flex",borderRadius:"100%",backgroundColor:"white"},children:[h&&(0,_o.jsx)(bN,{color:"black"}),!h&&(0,_o.jsx)(SN,{color:"black",fill:"black"})]})})})]})]})})}const ON=(0,t.memo)(jN);const RN=function(e){var t;let{requestImage:n,rfqRef:r,rfqStatus:i,selectedRegion:o,setIsRfqModalOpen:a}=e;const s=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"});return(0,_o.jsx)("div",{style:{padding:"0px 16px 0px 16px",backgroundColor:"#F6F3F1",width:"100%",marginBottom:s?"0px":"32px",alignSelf:"end",height:"248px",display:"flex",alignItems:"center"},className:"rfq-box",children:(0,_o.jsxs)("div",{style:{width:"100%",display:"flex",columnGap:"16px",alignItems:"center",justifyContent:"space-around"},children:[(0,_o.jsx)("div",{children:(0,_o.jsx)("img",{src:null===(t=sA(null===n||void 0===n?void 0:n.canvas,o))||void 0===t?void 0:t.toDataURL(),alt:"request_image",style:{mixBlendMode:"inactive"!==i?"overlay":"unset",maxHeight:"181px",maxWidth:"181px",borderRadius:"2px"}})}),(0,_o.jsxs)("div",{children:[(0,_o.jsxs)("div",{style:{paddingBottom:"12px"},children:[(0,_o.jsx)("div",{style:{fontSize:"14px",color:"inactive"===i?"#4B4B4A":"#CACAD1",fontWeight:"bold"},children:s?"No matches found?":"No matches found for your request?"}),(0,_o.jsx)("div",{style:{fontSize:"12px",maxWidth:"320x",lineHeight:"14.1px",color:"inactive"===i?"#4B4B4A":"#CACAD1",fontWeight:"normal"},children:"Get personalised help from our team of product experts."})]}),(0,_o.jsx)("button",{style:{maxWidth:"200px",background:"inactive"===i?"#4B4B4A":"#E9E9EC",boxShadow:"inactive"===i?"0px 0px 4px 0px rgba(0, 0, 0, 0.25)":"",borderRadius:"2px",padding:"16px 16px 16px 16px",display:"flex",alignItems:"center",color:"inactive"===i?"#fff":"#CACAD1",fontSize:"14px",height:"48px",cursor:"inactive"===i?"pointer":"default",border:"none"},disabled:"inactive"!==i,onClick:()=>{a(!0)},children:"Request a Quote"})]})]})})},AN=/.+\@.+\..+$/,TN=e=>{switch(e.status){case 400:default:return"Your email could not be sent, please try again or send an email to:";case 421:case 450:case 451:case 452:return"Email delivery failed. Rest assured, we're continuously attempting to send it for you. Alternatively, you can forward the email to:"}};function NN(e){var n,r;let{requestImage:i,selectedRegion:o,setIsInquiryModalOpen:a,isInquiryModalOpen:s}=e;const l=Nr((e=>e)),{search:{preFilter:u},settings:c}=l,d=Object.keys(u),[f,h]=(0,t.useState)(""),[p,g]=(0,t.useState)(void 0),m=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),[v,y]=(0,t.useState)(""),b=t.useCallback((e=>{y(e.slice(0,150))}),[y]);(0,t.useEffect)((()=>bA.init("SMGihPnuEGcYLm0V4")),[]),(0,t.useEffect)((()=>{f&&(AN.test(f)?g(!0):g(!1))}),[f]);return(0,_o.jsx)(us,{openModal:s,rounded:!1,handleClose:e=>{a(!1)},children:(0,_o.jsxs)("div",{style:{display:"flex",width:m?"360px":"378px",flexDirection:"column",backgroundColor:"#F3F3F5"},children:[(0,_o.jsxs)("div",{style:{padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,_o.jsx)("p",{style:{color:"#2B2C46",fontSize:m?"18px":"20px",fontWeight:"bold"},children:i?"Submit your image for inquiry":"Submit your inquiry"}),(0,_o.jsx)("div",{onClick:()=>a(!1),style:{display:"flex",padding:"1px"},children:(0,_o.jsx)(go.A,{style:{fontSize:16,color:"black",cursor:"pointer"}})})]}),i&&(0,_o.jsx)("div",{style:{padding:"16px",backgroundColor:"#F3F3F5",display:"flex",justifyContent:"center"},children:(0,_o.jsx)("img",{src:null===(n=sA(null===i||void 0===i?void 0:i.canvas,o))||void 0===n?void 0:n.toDataURL(),alt:"request_image",style:{maxHeight:"200px"}})}),(0,_o.jsxs)("div",{style:{padding:"16px 16px 16px 16px",backgroundColor:"#F3F3F5",display:"flex",flexDirection:"column",rowGap:"16px"},children:[(0,_o.jsxs)("div",{children:[(0,_o.jsx)("p",{style:{fontSize:"12px",color:"#2B2C46",marginBottom:"8px"},children:"Your email (required)"}),(0,_o.jsx)("input",{value:f,onChange:e=>h(e.currentTarget.value.trim()),style:{width:"100%",border:"none",height:"32px",padding:"8px 16px 8px 16px",fontSize:"13px",color:" #2B2C46"}}),!p&&!(0,Yn.isUndefined)(p)&&(0,_o.jsx)("p",{style:{color:"red",fontSize:"12px",paddingTop:"8px"},children:"Please enter a valid email."})]}),c.preFilterOption&&(0,_o.jsxs)("div",{children:[(0,_o.jsxs)("div",{style:{display:"flex",columnGap:"4px",alignItems:"center",marginBottom:"8px"},children:[(0,_o.jsx)("p",{style:{fontSize:"12px",color:"#2B2C46"},children:"Machine"}),(0,_o.jsx)(Lc,{title:"Please select a pre-filter before search request to refine and yield accurate results.",placement:"top",arrow:!0,children:(0,_o.jsx)(Mo,{style:{cursor:"pointer"}})})]}),(0,_o.jsx)("div",{style:{width:"100%",border:"none",padding:"8px 16px 8px 16px",fontSize:"13px",color:"#2B2C46",minHeight:"32px",backgroundColor:"#fff"},children:d.join(", ")||"Pre-filter is not selected"})]}),(0,_o.jsxs)("div",{children:[(0,_o.jsxs)("div",{style:{marginBottom:"8px",display:"flex",justifyContent:"space-between",fontSize:"12px",color:"#2B2C46"},children:[(0,_o.jsx)("p",{children:"Additional information"}),(0,_o.jsx)("p",{children:"".concat(v.length,"/150")})]}),(0,_o.jsx)(VT,{value:v,onChange:e=>b(e.currentTarget.value),style:{width:"100%",border:"none",maxWidth:"346px",minHeight:"40px",padding:"8px 16px 8px 16px",fontSize:"13px",color:" #2B2C46"}})]})]}),(0,_o.jsxs)("div",{style:{display:"flex"},children:[(0,_o.jsx)("button",{style:{height:"66px",display:"flex",alignItems:"center",width:"50%",backgroundColor:"#2B2C46",color:"white",fontSize:"14px",paddingLeft:"16px",border:"none",cursor:"pointer"},onClick:()=>a(!1),children:"Cancel"}),(0,_o.jsx)("button",{style:{height:"66px",display:"flex",alignItems:"center",width:"50%",backgroundColor:p?null===(r=c.theme)||void 0===r?void 0:r.primaryColor:"#E9E9EC",color:p?"#fff":"#AAABB5",fontSize:"14px",paddingLeft:"16px",border:"none",cursor:p?"pointer":"normal"},disabled:!p,onClick:async e=>{var t;e.preventDefault();const{canvas:n}=i||{},r=n?sA(n,o):null;a(!1);const s=null===(t=c.support)||void 0===t?void 0:t.emailTemplateId;if(s){try{await bA.send("service_zfsxshi",s,{email_id:f.trim(),information_text:v||"<not specified>",request_image:null===r||void 0===r?void 0:r.toDataURL(),prefilter_values:null!==d&&void 0!==d&&d.length?d.join(", "):"<not specified>"}),IT.success("Request sent successfully")}catch(l){LT((e=>(0,_o.jsxs)("div",{style:{display:"flex",flexDirection:"column",fontSize:"14px",width:"294px"},children:[(0,_o.jsx)("span",{style:{fontWeight:"bold"},children:"Email not sent"}),(0,_o.jsx)("span",{children:TN(l)}),(0,_o.jsx)("a",{href:"mailto:support@nyris.io?subject=Request for quotation&body=".concat(encodeURIComponent("Hello,\n I filled out the support form on the Search Suite, but it failed. I inquired the following:\n email:\n Pre-filter:\n Additional Text: ")),style:{padding:"8px 16px 8px 16px",border:"1px solid #000",marginTop:"16px",backgroundColor:"transparent",color:"#000",cursor:"pointer",width:"fit-content"},children:"support@nyris.io"})]})),{duration:5e3,style:{background:"#FFE5EF",color:"#000000",maxWidth:"400px"},icon:(0,_o.jsx)("div",{style:{minWidth:"20px",minHeight:"20px"},children:(0,_o.jsx)(qT,{})})})}a(!1)}},children:"Send"})]})]})})}var FN;function MN(){return MN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MN.apply(this,arguments)}function LN(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",MN({width:17,height:12,viewBox:"0 0 17 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,FN||(FN=t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6888 0C16.0047 0 16.2931 0.192151 16.4241 0.489651C16.4738 0.593965 16.5 0.711618 16.5 0.830018V11.1561C16.5 11.2133 16.494 11.2703 16.4821 11.3256C16.4737 11.3686 16.462 11.4111 16.4474 11.4521C16.3285 11.7849 16.0308 12 15.6888 12H1.30961C0.967644 12 0.669889 11.7849 0.551024 11.4521C0.511476 11.3414 0.494785 11.2261 0.501415 11.1094V0.890625C0.494785 0.773926 0.511476 0.658628 0.551024 0.547891C0.669878 0.215062 0.967644 0 1.30961 0H15.6888ZM8.49921 6.90797L15.0048 1.10306H1.99367L8.49921 6.90797ZM5.8515 6L1.56406 9.8257V2.1743L5.8515 6ZM6.66657 6.72729L7.97182 7.89199C8.11913 8.02342 8.30643 8.0958 8.49921 8.0958C8.692 8.0958 8.87929 8.02342 9.02659 7.89199L10.3319 6.7273L15.0048 10.8969H1.99367L6.66657 6.72729ZM15.4374 9.82838L11.1469 6L15.4374 2.17162V9.82838Z",fill:"currentColor"})))}const IN=t.forwardRef(LN);n.p;var DN;function zN(){return zN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zN.apply(this,arguments)}function BN(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",zN({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,DN||(DN=t.createElement("path",{d:"M12.3849 14H12.2933C1.71255 13.3915 0.210246 4.46385 0.000245939 1.73923C-0.0166751 1.52739 0.00837059 1.31429 0.0739478 1.11214C0.139525 0.909999 0.244345 0.722779 0.382401 0.561213C0.520458 0.399646 0.689038 0.266909 0.878482 0.170606C1.06793 0.0743029 1.27451 0.0163271 1.4864 5.04857e-07H4.45332C4.66901 -0.000208291 4.87979 0.0643519 5.05836 0.185318C5.23693 0.306285 5.37506 0.478084 5.45486 0.678462L6.27332 2.69231C6.35213 2.88806 6.37168 3.10266 6.32956 3.30943C6.28744 3.51621 6.1855 3.70605 6.0364 3.85539L4.88948 5.01308C5.06863 6.03117 5.55619 6.96967 6.28619 7.70159C7.01619 8.43352 7.9534 8.92355 8.97101 9.10538L10.1395 7.94769C10.2911 7.80024 10.4827 7.70067 10.6905 7.66141C10.8983 7.62215 11.113 7.64494 11.3079 7.72692L13.3379 8.54C13.5353 8.62232 13.7037 8.76153 13.8216 8.9399C13.9396 9.11827 14.0018 9.32771 14.0002 9.54154V12.3846C14.0002 12.813 13.8301 13.2239 13.5271 13.5269C13.2242 13.8298 12.8133 14 12.3849 14ZM1.61563 1.07692C1.47282 1.07692 1.33586 1.13365 1.23488 1.23464C1.1339 1.33562 1.07717 1.47258 1.07717 1.61539V1.65846C1.32486 4.84615 2.91332 12.3846 12.3526 12.9231C12.4233 12.9275 12.4942 12.9178 12.5612 12.8947C12.6282 12.8716 12.69 12.8355 12.743 12.7885C12.7961 12.7415 12.8393 12.6845 12.8702 12.6207C12.9012 12.5569 12.9192 12.4877 12.9233 12.4169V9.54154L10.8933 8.72846L9.34794 10.2631L9.08948 10.2308C4.40486 9.64385 3.76948 4.95923 3.76948 4.91077L3.73717 4.65231L5.2664 3.10692L4.45871 1.07692H1.61563Z",fill:"currentColor"})))}const UN=t.forwardRef(BN);n.p;const VN=function(e){var n;let{requestImage:r,selectedRegion:i,query:o}=e;const a=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),[s,l]=(0,t.useState)(!1),[u,c]=(0,t.useState)("inactive");(0,t.useEffect)((()=>{c("inactive")}),[i,o]);const{description:d,emailInquiry:f,supportNumber:h}=Nr((e=>e.settings.support))||{},{secondaryColor:p}=Nr((e=>e.settings.theme))||{},{t:g}=Ml();return(0,_o.jsxs)(_o.Fragment,{children:[s&&(0,_o.jsx)(NN,{requestImage:r,selectedRegion:i,setIsInquiryModalOpen:l,isInquiryModalOpen:s}),(0,_o.jsx)("div",{style:{backgroundColor:"#F3F3F5",width:"100%",marginBottom:"24px",alignSelf:"end",display:"flex",alignItems:"center"},className:"rfq-box",children:(0,_o.jsxs)("div",{style:{width:"100%",display:"flex",columnGap:a?"16px":"26px",alignItems:"center"},children:[r&&(0,_o.jsx)("div",{children:(0,_o.jsx)("img",{src:null===(n=sA(null===r||void 0===r?void 0:r.canvas,i))||void 0===n?void 0:n.toDataURL(),alt:"request_image",style:{mixBlendMode:"unset",maxHeight:a?"120px":"181px",maxWidth:a?"120px":"181px",borderRadius:"2px"}})}),(0,_o.jsxs)("div",{style:{width:"100%"},children:[(0,_o.jsxs)("div",{style:{paddingBottom:"8px",paddingLeft:"16px"},children:[(0,_o.jsx)("div",{style:{fontSize:"14px",color:"inactive"===u?"#4B4B4A":"#2B2C46",fontWeight:"bold"},children:"".concat(g(a?"No matches found":"No matches found for your request"),"?")}),(0,_o.jsx)("div",{style:{fontSize:"14px",maxWidth:"320x",lineHeight:"16px",color:"inactive"===u?"#4B4B4A":"#2B2C46",fontWeight:"normal"},children:d})]}),(0,_o.jsxs)("div",{style:{display:"flex",gap:a?"8px":"16px",width:"100%",maxWidth:"400px"},className:"support-button-wrapper",children:[f&&(0,_o.jsx)("div",{style:{width:f&&h?"50%":"100%",maxWidth:"170px",minWidth:"86px",background:"inactive"===u?p:"#E9E9EC",boxShadow:"inactive"===u?"0px 0px 4px 0px rgba(0, 0, 0, 0.25)":"",borderRadius:"2px",padding:a?"8px 8px 8px 8px":"8px 16px 8px 16px",display:"flex",alignItems:"center",color:"inactive"===u?"#fff":"#CACAD1",fontSize:"13px",cursor:"inactive"===u?"pointer":"default",border:"none"},onClick:()=>{l(!0)},children:(0,_o.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,_o.jsx)("p",{children:"Inquiry"}),(0,_o.jsx)(IN,{color:"#fff",width:16,height:16})]})}),h&&(0,_o.jsx)("a",{style:{width:f&&h?"50%":"100%",maxWidth:"170px",minWidth:"86px",background:p,boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.25)",borderRadius:"2px",padding:a?"8px 8px 8px 8px":"8px 16px 8px 16px",display:"flex",alignItems:"center",color:"#fff",fontSize:"13px",cursor:"pointer",border:"none",fontWeight:500},href:"tel:".concat(h),children:(0,_o.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,_o.jsx)("p",{children:" Call us"}),(0,_o.jsx)(UN,{color:"#fff",width:16,height:16})]})})]})]})]})})]})};const HN=function(e){let{submitFeedback:t,onFeedbackClose:n}=e;return(0,_o.jsxs)("div",{className:"feedback-wrapper",children:[(0,_o.jsx)("p",{children:"Are these results useful?"}),(0,_o.jsx)("div",{className:"feedback-icon-wrapper",onClick:()=>t(!0),children:(0,_o.jsx)(G_,{})}),(0,_o.jsx)("div",{className:"feedback-icon-wrapper",onClick:()=>t(!1),children:(0,_o.jsx)(U_,{})}),(0,_o.jsx)("div",{className:"feedback-icon-wrapper",onClick:()=>n(),children:(0,_o.jsx)(Ho,{})})]})};Yf(0);function WN(e){let{className:n}=e;const r=Nr((e=>e)),i=Tr(),{search:{postFilter:o,results:a}}=r,s=BC(a),l=(0,t.useMemo)((()=>{const e=[];return Object.keys(s).forEach((t=>{s[t].forEach((n=>{(0,Yn.get)(o,"".concat(t,".").concat(n.value))&&e.push({key:t,...n})}))})),e}),[s,o]);return l.length?(0,_o.jsx)("div",{className:"wrap-box-refinements",children:(0,_o.jsxs)("div",{style:{display:"flex",flexFlow:"wrap",columnGap:"8px"},children:[l.map((e=>(0,_o.jsxs)("div",{style:{display:"flex",alignItems:"center",columnGap:"12px",fontSize:"12px",padding:"4px 8px 4px 8px",backgroundColor:"#E9E9EC",borderRadius:"18px",width:"fit-content"},children:[(0,_o.jsxs)("p",{children:[e.value," (",e.count,")"]}),(0,_o.jsx)("div",{style:{padding:"2px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},onClick:()=>{i(lr({[e.key]:e.value}))},children:(0,_o.jsx)(Ho,{width:12,height:12})})]},e.value))),(0,_o.jsx)("div",{className:th()("flex items-center"),style:{padding:"4px",cursor:"pointer"},onClick:()=>i(Jn()),children:(0,_o.jsx)("div",{className:"text-f12",style:{color:"#E31B5D"},children:"Clear all"})},"clear")]})}):null}var GN;function qN(){return qN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qN.apply(this,arguments)}function KN(e,n){let{title:r,titleId:i,...o}=e;return t.createElement("svg",qN({width:14,height:13,viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":i},o),r?t.createElement("title",{id:i},r):null,GN||(GN=t.createElement("path",{d:"M5.74786 12.2785C5.99572 12.5263 6.39757 12.5263 6.64543 12.2785C6.89317 12.0307 6.8933 11.6291 6.64572 11.3812L3.12248 7.85332C2.80781 7.53824 3.03097 7 3.47626 7L13.1966 7C13.5481 7 13.833 6.71509 13.833 6.36364C13.833 6.01218 13.5481 5.72727 13.1966 5.72727L3.47626 5.72727C3.03097 5.72727 2.80781 5.18903 3.12248 4.87395L6.64572 1.34606C6.8933 1.09815 6.89317 0.696526 6.64543 0.448784C6.39757 0.200928 5.99572 0.200928 5.74786 0.448784L0.540115 5.65653C0.14959 6.04705 0.14959 6.68022 0.540115 7.07074L5.74786 12.2785Z",fill:"#2B2C46"})))}const XN=t.forwardRef(KN),ZN=(n.p,Lx((e=>{let{items:n,refine:r}=e;const i=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),o=Tr(),a=Nr((e=>e)),{search:s}=a,{firstSearchResults:l,firstSearchImage:u,firstSearchPrefilters:c,firstSearchThumbSearchInput:d}=s,f=(0,t.useCallback)((()=>r(n)),[r,n]),{t:h}=Ml();return(0,_o.jsxs)("div",{className:"go-back-button ".concat(i?"mobile-view":""),onClick:()=>(o(hr(l)),o(fr(u)),o(ur(c)),o(Jn()),f(),void(i||o(sr(d)))),children:[(0,_o.jsx)(XN,{width:16,height:16}),h("Back to request image")]})})));function YN(e){var n,r,i,o;const a=Tr(),s=(0,t.useRef)(null),l=Nr((e=>e)),{search:u,settings:c}=l,{allSearchResults:d}=e,{requestImage:f,regions:h,selectedRegion:p,preFilter:g,loadingSearchAlgolia:m,imageThumbSearchInput:v,results:y,showFeedback:b,firstSearchResults:x,firstSearchImage:w,fetchingResults:C}=u,S=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),[k,_]=(0,t.useState)(null),E=()=>s.current.scrollIntoView("-100px"),[P,j]=(0,t.useState)(),{t:O}=Ml(),[R,A]=(0,t.useState)(!1),[T,N]=(0,t.useState)(!1),[F,M]=(0,t.useState)("inactive"),[L,I]=(0,t.useState)(!1),D=(0,t.useRef)(null),z=(0,t.useRef)(null),[B,U]=(0,t.useState)(),[V,H]=(0,t.useState)(!1),[W,G]=(0,t.useState)(!1),q=bl().get("query")||u.valueTextSearch.query,K=null===(n=c.algolia)||void 0===n?void 0:n.enabled,X=c.postFilterOption,Z=Ne();(0,t.useEffect)((()=>{if(!m&&(v.includes("blob:")||v.includes("data:"))&&D.current!==v){A(!0);const e=setTimeout((()=>{A(!1)}),2e3);return D.current=v,()=>{clearTimeout(e),A(!1)}}}),[v,m]),(0,t.useEffect)((()=>{m&&(U("hidden"),H(!1))}),[m]),(0,t.useEffect)((()=>{p&&(_(p),M("inactive"),U("hidden"))}),[p]),(0,t.useEffect)((()=>{f&&(U("hidden"),E(),_(qn))}),[f]);const Y=(0,t.useCallback)((async(e,t)=>{const n=[{key:c.visualSearchFilterKey,values:Object.keys(g)}];return a(er()),ko({image:e,settings:c,region:t,filters:(0,Yn.isEmpty)(g)?void 0:n}).then((e=>(a(br(!1)),{...e}))).catch((e=>{a(br(!1)),console.log("error call api change selection find image",e)}))}),[c,a,g]),Q=(0,t.useCallback)((0,Yn.debounce)((async e=>{if(!f)return;a(br(!0));const{canvas:t}=f;Y(t,e).then((e=>{a(vr(e));e.results.find((e=>e.score>=.65))||N(!0),setTimeout((()=>{N(!1)}),2e3)}))}),250),[f,Y]),$=f?["sku:DOES_NOT_EXIST<score=1> "]:[],J=null!==u&&void 0!==u&&u.results?null===u||void 0===u?void 0:u.results.slice().reverse().map(((e,t)=>"sku:'".concat(e.sku,"'<score=").concat(t,"> "))):"",ee=[...$,...J].join("OR ");(0,t.useEffect)((()=>{if(document.title="Search results",U("hidden"),f||(0,Yn.isEmpty)(q))return;const e=Object.keys(g),t=e.length>0?e.map((e=>"".concat(c.alogoliaFilterField,":'").concat(e,"'"))).join(" OR "):"";j(t)}),[g,f,q,c.alogoliaFilterField]),(0,t.useEffect)((()=>{if(!f||!K)return;a(br(!0));const{canvas:e}=f;return Y(e).then((e=>{a(vr(e))})),()=>{}}),[g]),(0,t.useEffect)((()=>{if(!f)return;const e=Object.keys(g),t=e.length>0?e.map((e=>"".concat(c.alogoliaFilterField,":'").concat(e,"'"))).join(" OR "):"",n=e.length>0?ee?"(".concat(ee,") AND ").concat(t):t:ee;j(n)}),[ee,c.alogoliaFilterField]),(0,t.useEffect)((()=>{var e;"/"===(null===(e=Z.location)||void 0===e?void 0:e.pathname)?G(!0):G(!1)}),[Z.location]);const te=(0,t.useCallback)((0,Yn.debounce)((e=>{_(e),(async(e,t)=>{const{settings:n,search:r}=e,{sessionId:i,requestId:o}=r,{x1:a,x2:s,y1:l,y2:u}=t,c={event:"region",data:{rect:{x:a,y:l,w:s-a,h:u-l}}};await nE(n,i,o,c)})(l,e),a(ir(e)),Q(e)}),50),[Q,l.search]),ne=aN(h,k),re=(0,t.useMemo)((()=>X&&((null===d||void 0===d?void 0:d.hits.length)>0&&K||(null===y||void 0===y?void 0:y.length)>0)),[X,d,K,y]),ie=(0,t.useMemo)((()=>f||X&&re),[re,X,f]);(0,t.useEffect)((()=>{if(!c.showFeedback||0===(null===y||void 0===y?void 0:y.length)||!b)return;const e=()=>{setTimeout((()=>{U((e=>"submitted"===e?"submitted":"visible")),a(wr(!1))}),100)};return setTimeout((()=>{window.removeEventListener("scroll",e,{capture:!0}),U((e=>"submitted"===e?"submitted":"visible")),a(wr(!1))}),4e3),window.addEventListener("scroll",e,{capture:!0,once:!0}),()=>{window.removeEventListener("scroll",e)}}),[b,c.showFeedback]);return(0,_o.jsx)(_o.Fragment,{children:(0,_o.jsx)("div",{className:"wrap-main-result loading",id:"wrap-main-result",ref:s,children:(0,_o.jsxs)(_o.Fragment,{children:[L&&(0,_o.jsx)(ZT,{requestImage:f,selectedRegion:p,setIsRfqModalOpen:I,isRfqModalOpen:L,setRfqStatus:M}),P&&K&&(0,_o.jsx)(rR,{query:q,filters:P}),(0,_o.jsxs)("div",{className:"box-wrap-result-component",children:[!S&&W&&(0,_o.jsx)("div",{className:"box-search",children:(0,_o.jsx)(tf,{})}),(0,_o.jsxs)("div",{className:"box-result",style:{height:c.showPoweredByNyris?"calc(100vh - 87px)":"calc(100vh - 148px)"},children:[!S&&ie&&(0,_o.jsx)(oN,{setImageSelection:_,allSearchResults:e.allSearchResults,debouncedOnImageSelectionChange:te,filteredRegions:ne,imageSelection:k,showAdjustInfo:R,showAdjustInfoBasedOnConfidence:T,showPostFilter:re,disjunctiveFacets:e.allSearchResults.disjunctiveFacets}),(0,_o.jsxs)("div",{className:"col-right ".concat(c.preview&&"ml-auto mr-auto"," ").concat(S&&"col-right-result-mobile"),style:{paddingTop:S?"8px":"",overflow:S?"":"auto",display:"flex",flexDirection:"column"},children:[S||!x||(null===f||void 0===f?void 0:f.canvas)===w||C?"":(0,_o.jsx)(ZN,{}),!S&&c.algolia.enabled&&(0,_o.jsx)("div",{className:"wrap-box-refinements",children:(0,_o.jsx)(m_,{statusSwitchButton:!0})}),S&&c.preview&&f&&(0,_o.jsx)(ON,{requestImage:f,imageSelection:k,debouncedOnImageSelectionChange:te,filteredRegions:ne,showAdjustInfoBasedOnConfidence:T,showAdjustInfo:R}),(0,_o.jsxs)("div",{style:{display:"flex",flexDirection:"column",flexGrow:1,backgroundColor:"#FAFAFA"},children:[S&&x&&(null===f||void 0===f?void 0:f.canvas)!==w&&!C?(0,_o.jsx)("div",{className:"go-back-mobile-container",children:(0,_o.jsx)(ZN,{})}):"",(0,_o.jsx)("div",{className:"box-item-result ml-auto mr-auto",style:{paddingLeft:S?0:16,paddingTop:S?0:16,height:"100%",position:"relative"},children:(0,_o.jsxs)("div",{className:"box-item-result ml-auto mr-auto",style:{height:"fit-content"},children:[!S&&!c.algolia.enabled&&(0,_o.jsx)(WN,{}),(0,_o.jsx)(XO,{getUrlToCanvasFile:async e=>{a(br(!0)),S&&(E(),a(nr(!1))),a(er()),a(sr(e));let t,n=await Co(e);a(fr(n));try{if(c.regions){let e=await So(n,c);t=e.selectedRegion,a(dr(e.regions)),a(pr(t))}}catch(r){}finally{const r=[{key:c.visualSearchFilterKey,values:Object.keys(g)}];ko({image:n,settings:c,region:t,filters:(0,Yn.isEmpty)(g)?void 0:r}).then((t=>{x||(a(Sr(t)),a(Cr(n)),a(kr(g)),S||a(_r(e))),a(hr(t)),a(br(!1))}))}},setLoading:!1,sendFeedBackAction:async e=>{eE(l,"like"===e)},requestImage:f,searchQuery:q}),(0,_o.jsxs)("div",{className:"box-item-result ml-auto mr-auto",style:{position:"absolute"},children:[V&&(0,_o.jsx)("div",{className:"feedback-floating",children:(0,_o.jsx)("div",{className:"feedback-section",children:(0,_o.jsx)("div",{className:"feedback-success",children:"Thanks for your feedback!"})})}),"visible"===B&&!V&&(0,_o.jsx)("div",{className:"feedback-floating",children:(0,_o.jsx)("div",{className:"feedback-section",children:(0,_o.jsx)(HN,{submitFeedback:async e=>{H(!0),setTimeout((()=>{H(!1)}),3e3),U("submitted"),a(wr(!1)),eE(l,e)},onFeedbackClose:()=>{U("submitted"),a(wr(!1))}})})})]})]})}),(0,_o.jsxs)("div",{className:"box-item-result ml-auto mr-auto",style:{display:"flex",flexDirection:"column",flexGrow:1,paddingLeft:S?0:16},children:[(null===(r=e.allSearchResults)||void 0===r?void 0:r.hits.length)>0&&(f||q)&&(0,_o.jsx)("div",{className:"pagination-result",style:{width:"100%",marginTop:"24px",padding:"0 20%"},children:(0,_o.jsx)(MR,{showFirst:!1,translations:{previous:(0,_o.jsx)(d_.A,{style:{color:"#161616"}}),next:(0,_o.jsx)(f_.A,{style:{color:"#161616"}})}})}),(0,_o.jsxs)("div",{style:{display:"flex",flexGrow:1,marginTop:K?"":"24px"},children:[f&&!m&&!e.isSearchStalled&&c.rfq&&c.rfq.enabled&&(0,_o.jsx)(RN,{rfqRef:z,rfqStatus:F,setIsRfqModalOpen:I,requestImage:f,selectedRegion:p}),!m&&!e.isSearchStalled&&c.support&&c.support.enabled&&(q||f)&&(0,_o.jsx)(VN,{requestImage:f,selectedRegion:p,query:q})]})]})]}),!S&&(null===(i=e.allSearchResults)||void 0===i||null===(o=i.hits)||void 0===o?void 0:o.length)>0&&K&&(0,_o.jsx)("div",{children:(0,_o.jsx)("div",{className:"box-notify",children:(0,_o.jsx)(j_,{search:u,children:(0,_o.jsxs)("div",{style:{padding:"0 20px",display:"flex"},className:"box-change-hit-items",children:[(0,_o.jsxs)("span",{style:{paddingRight:"10px"},children:[O("Items per page"),":"]}),(0,_o.jsx)(aA,{items:Kn,defaultRefinement:20})]})})})}),S&&c.showPoweredByNyris&&(0,_o.jsx)("div",{style:{backgroundColor:"#FAFAFA",display:"flex",justifyContent:"center",paddingBottom:"46px",paddingTop:"8px"},children:(0,_o.jsx)(Ko,{style:{cursor:"pointer"},onClick:()=>{window.open("https://www.nyris.io","_blank")},color:"#AAABB5"})})]})]})]})]})})})}const QN=ul((0,t.memo)(YN));const $N=function(){const e=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"}),{supportEmail:t}=Nr((e=>e.settings.auth0));return(0,_o.jsxs)("div",{style:{backgroundColor:"white",height:"100%",paddingLeft:e?"32px":"64px",paddingTop:e?"24px":"32px",display:"flex",flexDirection:"column",gap:"16px"},children:[(0,_o.jsx)("div",{style:{fontSize:"20px",fontWeight:"bold",color:"#2B2C46"},children:"Email verification is required"}),(0,_o.jsx)("div",{style:{width:"200px",height:"4px",background:"#3E36DC",borderRadius:"4px"}}),(0,_o.jsx)("p",{style:{color:"#2B2C46",fontSize:"13px"},children:"Please verify your email for access to the Search Suite. If you haven't received your verification email yet, contact support."}),(0,_o.jsx)("a",{className:"contact-support",style:{backgroundColor:"#2B2C46",padding:"8px 16px 8px 16px",color:"#fff",border:"none",cursor:"pointer",fontSize:"14px",width:"fit-content"},href:"mailto:".concat(t||"support@nyris.io","?subject=Resend Email Verification&body="),children:"Contact Support"})]})},JN=e=>{let{component:n,...r}=e;const{auth0:i}=Nr((e=>e.settings)),{user:o,isAuthenticated:a,isLoading:s,loginWithRedirect:l}=ls();(0,t.useEffect)((()=>{s||o||a||!i.enabled||l()}),[l,s,o,a,i]);const u=n;return(0,_o.jsx)(_e,{...r,render:e=>i.enabled?!a||null!==o&&void 0!==o&&o.email_verified?a&&null!==o&&void 0!==o&&o.email_verified?(0,_o.jsx)(u,{...e}):(0,_o.jsx)("div",{}):(0,_o.jsx)($N,{}):(0,_o.jsx)(u,{...e})})},eF=()=>{const{user:e,isAuthenticated:n,isLoading:r,loginWithRedirect:i}=ls(),{auth0:o}=Nr((e=>e.settings));return(0,t.useEffect)((()=>{r||e||n||!o.enabled||i(),!n&&o.enabled||(window.location.href="/")}),[i,r,e,n,o]),(0,_o.jsx)("div",{})},tF=()=>{const{user:e,isAuthenticated:n,isLoading:r,loginWithRedirect:i,logout:o}=ls(),{auth0:a}=Nr((e=>e.settings));return(0,t.useEffect)((()=>{r||e||n||!a.enabled?n?o({logoutParams:{returnTo:window.location.origin}}):a.enabled||(window.location.href="/"):i()}),[i,n,r,e,o,a]),(0,_o.jsx)("div",{})};function nF(){return(0,_o.jsx)(Ae,{children:(0,_o.jsxs)(Ae,{children:[(0,_o.jsx)(_e,{path:"/login",exact:!0,component:eF}),(0,_o.jsx)(_e,{path:"/logout",exact:!0,component:tF}),(0,_o.jsxs)(Rk,{children:[(0,_o.jsx)(JN,{exact:!0,strict:!0,path:"/",component:c_}),(0,_o.jsx)(JN,{exact:!0,strict:!0,path:"/result",component:QN})]})]})})}const rF=(0,t.memo)(nF);var iF=n(4317);const oF=()=>{const e=(0,Ge.useMediaQuery)({query:"(max-width: 776px)"});return(0,_o.jsx)(MT,{containerStyle:e?{bottom:80}:{top:60},position:e?"bottom-center":"top-right",children:e=>(0,_o.jsx)(TT,{toast:e,style:{padding:0,borderRadius:0},children:t=>{let{icon:n}=t;return(0,_o.jsxs)(_o.Fragment,{children:[(0,_o.jsx)("span",{style:{width:5,height:"100%",background:"success"===e.type?"#61d345":"transparent",marginRight:7}}),(0,_o.jsxs)("span",{style:{padding:15,display:"inline-flex"},children:[n,(0,_o.jsxs)("span",{style:{fontSize:15,fontWeight:300,margin:"0 10px"},children:[" ",JA(e.message,e)]}),"loading"!==e.type&&(0,_o.jsx)("span",{style:{display:"flex",alignItems:"center"},children:(0,_o.jsx)(Dk.A,{fontSize:"small",style:{cursor:"pointer",marginLeft:10},onClick:()=>LT.dismiss(e.id)})})]})]})}})})},aF=e=>{let{children:t}=e;const n=Nr((e=>e.settings));return n.auth0.enabled?(0,_o.jsx)(ss,{domain:n.auth0.domain||"",clientId:n.auth0.clientId||"",authorizationParams:{redirect_uri:window.location.origin},children:t}):(0,_o.jsx)(_o.Fragment,{children:t})};document.title=window.location.host;let sF=(0,iF.A)({overrides:{MuiTooltip:{arrow:{color:"black"},tooltip:{backgroundColor:"black"}}}});e.createRoot(document.getElementById("root")).render((0,_o.jsxs)(t.Fragment,{children:[(0,_o.jsx)(oF,{}),(0,_o.jsx)(C,{store:Ar,children:(0,_o.jsx)(aF,{children:(0,_o.jsx)(T,{theme:sF,children:(0,_o.jsx)(Me,{children:(0,_o.jsx)(rF,{})})})})})]}))})()})();
|
|
3
|
+
//# sourceMappingURL=main.7b9e6c68.js.map
|