a(c,t))e[r]=c,e[s]=t,r=s;else break}}return n}function a(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if("object"==typeof performance&&"function"==typeof performance.now){var u,o=performance;n.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();n.unstable_now=function(){return i.now()-s}}var c=[],f=[],d=1,p=null,m=3,h=!1,g=!1,v=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,k="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var n=r(f);null!==n;){if(null===n.callback)l(f);else if(n.startTime<=e)l(f),n.sortIndex=n.expirationTime,t(c,n);else break;n=r(f)}}function S(e){if(v=!1,w(e),!g){if(null!==r(c))g=!0,M(x);else{var n=r(f);null!==n&&F(S,n.startTime-e)}}}function x(e,t){g=!1,v&&(v=!1,b(C),C=-1),h=!0;var a=m;try{for(w(t),p=r(c);null!==p&&(!(p.expirationTime>t)||e&&!z());){var u=p.callback;if("function"==typeof u){p.callback=null,m=p.priorityLevel;var o=u(p.expirationTime<=t);t=n.unstable_now(),"function"==typeof o?p.callback=o:p===r(c)&&l(c),w(t)}else l(c);p=r(c)}if(null!==p)var i=!0;else{var s=r(f);null!==s&&F(S,s.startTime-t),i=!1}return i}finally{p=null,m=a,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E=!1,_=null,C=-1,P=5,N=-1;function z(){return!(n.unstable_now()-Ne||125u?(e.sortIndex=a,t(f,e),null===r(c)&&e===r(f)&&(v?(b(C),C=-1):v=!0,F(S,a-u))):(e.sortIndex=o,t(c,e),g||h||(g=!0,M(x))),e},n.unstable_shouldYield=z,n.unstable_wrapCallback=function(e){var n=m;return function(){var t=m;m=n;try{return e.apply(this,arguments)}finally{m=t}}}},14616:function(e,n,t){e.exports=t(46475)}}]);
\ No newline at end of file
diff --git a/react/pr-935/_next/static/chunks/main-1e27b3439ed262b4.js b/react/pr-935/_next/static/chunks/main-1e27b3439ed262b4.js
new file mode 100644
index 0000000000..2c9d64fe81
--- /dev/null
+++ b/react/pr-935/_next/static/chunks/main-1e27b3439ed262b4.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{658:function(e,t,r){"use strict";function n(e){return(n="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)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return i}});var o=r(28351),a=r(20311);function i(e,t){return(0,a.normalizePathTrailingSlash)((0,o.addPathPrefix)(e,"/tonic-ui-demo/react/pr-935"))}("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88014:function(e,t,r){"use strict";function n(e){return(n="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)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return o}}),r(20311);var o=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;ne.length)&&(t=e.length);for(var r=0,n=Array(t);r25){window.location.reload();return}clearTimeout(n),n=setTimeout(t,s>5?5e3:1e3)}a&&a.close();var n,c=(0,i.getSocketUrl)(e.assetPrefix);(a=new window.WebSocket(""+c+e.path)).onopen=function(){s=0,window.console.log("[HMR] connected")},a.onerror=r,a.onclose=r,a.onmessage=function(e){var t,r=JSON.parse(e.data),n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,void 0)}}(e))){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}(u);try{for(n.s();!(t=n.n()).done;)(0,t.value)(r)}catch(e){n.e(e)}finally{n.f()}}}()}("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66389:function(e,t){"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})(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return n}});var n=function(){for(var e=arguments.length,t=Array(e),r=0;r=0;--a){var i=this.tryEntries[a],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}(h);try{for(a.s();!(t=a.n()).done;){var i=t.value;if("object"===n(e[i])){r[i]=Object.assign(Array.isArray(e[i])?[]:{},e[i]);continue}r[i]=e[i]}}catch(e){a.e(e)}finally{a.f()}return r.events=l.default.events,y.forEach(function(t){r[t]=function(){for(var r=arguments.length,n=Array(r),o=0;oe.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,n),_=(0,h.useContext)(y.HeadManagerContext),P=_.updateScripts,O=_.scripts,w=_.getIsSsr,E=_.appDir,j=_.nonce,x=(0,h.useRef)(!1);(0,h.useEffect)(function(){var e=t||o;x.current||(c&&e&&g.has(e)&&c(),x.current=!0)},[c,t,o]);var R=(0,h.useRef)(!1);if((0,h.useEffect)(function(){!R.current&&("afterInteractive"===s?S(e):"lazyOnload"===s&&("complete"===document.readyState?(0,v.requestIdleCallback)(function(){return S(e)}):window.addEventListener("load",function(){(0,v.requestIdleCallback)(function(){return S(e)})})),R.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(P?(O[s]=(O[s]||[]).concat([i({id:t,src:o,onLoad:void 0===a?function(){}:a,onReady:c,onError:f},b)]),P(O)):w&&w()?g.add(t||o):w&&!w()&&S(e)),E){if(m&&m.forEach(function(e){d.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)return o?(d.default.preload(o,b.integrity?{as:"script",integrity:b.integrity,nonce:j,crossOrigin:b.crossOrigin}:{as:"script",nonce:j,crossOrigin:b.crossOrigin}),(0,p.jsx)("script",{nonce:j,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([o,i(i({},b),{},{id:t})])+")"}})):(b.dangerouslySetInnerHTML&&(b.children=b.dangerouslySetInnerHTML.__html,delete b.dangerouslySetInnerHTML),(0,p.jsx)("script",{nonce:j,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,i(i({},b),{},{id:t})])+")"}}));"afterInteractive"===s&&o&&d.default.preload(o,b.integrity?{as:"script",integrity:b.integrity,nonce:j,crossOrigin:b.crossOrigin}:{as:"script",nonce:j,crossOrigin:b.crossOrigin})}return null}Object.defineProperty(E,"__nextScript",{value:!0});var j=E;("function"==typeof t.default||"object"===o(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30220:function(e,t,r){"use strict";function n(e){return(n="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)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});var o=r(27361);function a(e){if("ended"!==e.state.state)throw Error("Expected span to be ended");(0,o.sendMessage)(JSON.stringify({event:"span-end",startTime:e.startTime,endTime:e.state.endTime,spanName:e.name,attributes:e.attributes}))}("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29305:function(e,t,r){"use strict";function n(e){return(n="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)}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:1e-4;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}return e=[{key:"export",value:function(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}},{key:"import",value:function(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}},{key:"add",value:function(e){var t=this;this.getHashValues(e).forEach(function(e){t.bitArray[e]=1})}},{key:"contains",value:function(e){var t=this;return this.getHashValues(e).every(function(e){return t.bitArray[e]})}},{key:"getHashValues",value:function(e){for(var t=[],r=1;r<=this.numHashes;r++){var n=function(e){for(var t=0,r=0;r>>13,t=Math.imul(t,1540483477);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}}],t=[{key:"from",value:function(e,t){void 0===t&&(t=1e-4);var o,a=new r(e.length,t),i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,void 0)}}(e))){r&&(e=r);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}(e);try{for(i.s();!(o=i.n()).done;){var u=o.value;a.add(u)}}catch(e){i.e(e)}finally{i.f()}return a}}],e&&o(r.prototype,e),t&&o(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}()},54491:function(e,t,r){"use strict";function n(e){return(n="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)}function o(e,t,r){var o;return(o=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===n(o)?o:String(o))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return _},APP_CLIENT_INTERNALS:function(){return J},APP_PATHS_MANIFEST:function(){return v},APP_PATH_ROUTES_MANIFEST:function(){return b},AUTOMATIC_FONT_OPTIMIZATION_MANIFEST:function(){return C},BARREL_OPTIMIZATION_PREFIX:function(){return W},BLOCKED_PAGES:function(){return F},BUILD_ID_FILE:function(){return D},BUILD_MANIFEST:function(){return g},CLIENT_PUBLIC_FILES_PATH:function(){return B},CLIENT_REFERENCE_MANIFEST:function(){return G},CLIENT_STATIC_FILES_PATH:function(){return U},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return Z},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return X},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return Y},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return et},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return er},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return Q},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return ee},COMPILER_INDEXES:function(){return u},COMPILER_NAMES:function(){return i},CONFIG_FILES:function(){return N},DEFAULT_RUNTIME_WEBPACK:function(){return en},DEFAULT_SANS_SERIF_FONT:function(){return es},DEFAULT_SERIF_FONT:function(){return el},DEV_CLIENT_PAGES_MANIFEST:function(){return A},DEV_MIDDLEWARE_MANIFEST:function(){return I},EDGE_RUNTIME_WEBPACK:function(){return eo},EDGE_UNSUPPORTED_NODE_APIS:function(){return ey},EXPORT_DETAIL:function(){return E},EXPORT_MARKER:function(){return w},FUNCTIONS_CONFIG_MANIFEST:function(){return P},GOOGLE_FONT_PROVIDER:function(){return eu},IMAGES_MANIFEST:function(){return R},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return $},MIDDLEWARE_BUILD_MANIFEST:function(){return V},MIDDLEWARE_MANIFEST:function(){return L},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return K},MODERN_BROWSERSLIST_TARGET:function(){return a.default},NEXT_BUILTIN_DOCUMENT:function(){return q},NEXT_FONT_MANIFEST:function(){return O},OPTIMIZED_FONT_PROVIDERS:function(){return ec},PAGES_MANIFEST:function(){return m},PHASE_DEVELOPMENT_SERVER:function(){return d},PHASE_EXPORT:function(){return s},PHASE_INFO:function(){return y},PHASE_PRODUCTION_BUILD:function(){return f},PHASE_PRODUCTION_SERVER:function(){return p},PHASE_TEST:function(){return h},PRERENDER_MANIFEST:function(){return j},REACT_LOADABLE_MANIFEST:function(){return k},ROUTES_MANIFEST:function(){return x},RSC_MODULE_TYPES:function(){return eh},SERVER_DIRECTORY:function(){return M},SERVER_FILES_MANIFEST:function(){return T},SERVER_PROPS_ID:function(){return ei},SERVER_REFERENCE_MANIFEST:function(){return z},STATIC_PROPS_ID:function(){return ea},STATIC_STATUS_PAGES:function(){return ef},STRING_LITERAL_DROP_BUNDLE:function(){return H},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return S},SYSTEM_ENTRYPOINTS:function(){return em},TRACE_OUTPUT_VERSION:function(){return ep},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ed},UNDERSCORE_NOT_FOUND_ROUTE:function(){return c},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l}});var a=r(43219)._(r(33432)),i={client:"client",server:"server",edgeServer:"edge-server"},u=o(o(o({},i.client,0),i.server,1),i.edgeServer,2),c="/_not-found",l=""+c+"/page",s="phase-export",f="phase-production-build",p="phase-production-server",d="phase-development-server",h="phase-test",y="phase-info",m="pages-manifest.json",v="app-paths-manifest.json",b="app-path-routes-manifest.json",g="build-manifest.json",_="app-build-manifest.json",P="functions-config-manifest.json",S="subresource-integrity-manifest",O="next-font-manifest",w="export-marker.json",E="export-detail.json",j="prerender-manifest.json",x="routes-manifest.json",R="images-manifest.json",T="required-server-files.json",A="_devPagesManifest.json",L="middleware-manifest.json",I="_devMiddlewareManifest.json",k="react-loadable-manifest.json",C="font-manifest.json",M="server",N=["next.config.js","next.config.mjs"],D="BUILD_ID",F=["/_document","/_app","/_error"],B="public",U="static",H="__NEXT_DROP_CLIENT_FILE__",q="__NEXT_BUILTIN_DOCUMENT__",W="__barrel_optimize__",G="client-reference-manifest",z="server-reference-manifest",V="middleware-build-manifest",K="middleware-react-loadable-manifest",$="interception-route-rewrite-manifest",X="main",Y=""+X+"-app",J="app-pages-internals",Q="react-refresh",Z="amp",ee="webpack",et="polyfills",er=Symbol(et),en="webpack-runtime",eo="edge-runtime-webpack",ea="__N_SSG",ei="__N_SSP",eu="https://fonts.googleapis.com/",ec=[{url:eu,preconnect:"https://fonts.gstatic.com"},{url:"https://use.typekit.net",preconnect:"https://use.typekit.net"}],el={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},es={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ef=["/500"],ep=1,ed=6e3,eh={client:"client",server:"server"},ey=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],em=new Set([X,Q,Z,Y]);("function"==typeof t.default||"object"===n(t.default)&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22526:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});var r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},51017:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});var n=r(43219)._(r(2784)).default.createContext({})},74716:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return i},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});var n=r(2784),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},77014:function(e,t){"use strict";function r(e,t){var r,n=e.split("/");return(t||[]).some(function(t){return!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)}),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},36543:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});var n=r(43219)._(r(2784)),o=r(38017),a=n.default.createContext(o.imageConfigDefault)},38017:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});var r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},82235:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},6564:function(e,t){"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})(e)}function n(e){var t="function"==typeof Map?new Map:void 0;return(n=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,i(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,e)})(e)}function o(e,t,r){return(o=!function(){if("undefined"==typeof Reflect||!Reflect.construct||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}}()?function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&a(o,r.prototype),o}:Reflect.construct.bind()).apply(null,arguments)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return c},isBailoutToCSRError:function(){return l}});var u="BAILOUT_TO_CLIENT_SIDE_RENDERING",c=function(e){function t(e){var n,o,a;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),o=t,a=["Bail out to client-side rendering: "+e],o=i(o),(n=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){return!1}}()?o.apply(this,a):Reflect.construct(o,a||[],i(this).constructor))).reason=e,n.digest=u,n}return!function(e,t){if("function"!=typeof t&&null!==t)throw 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&&a(e,t)}(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(n(Error));function l(e){return"object"===r(e)&&null!==e&&"digest"in e&&e.digest===u}},86389:function(e,t){"use strict";function r(){var e=Object.create(null);return{on:function(t,r){(e[t]||(e[t]=[])).push(r)},off:function(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit:function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,n),l=(0,i.useRef)(o.isAutoExport),s=(0,i.useMemo)(function(){var e,t=l.current;if(t&&(l.current=!1),(0,c.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,a.jsx)(u.PathnameContext.Provider,{value:s,children:t})}},99145:function(e,t,r){"use strict";function n(e){return(n="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)}function o(){o=function(){return t};var e,t={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(t,r,n,o){var a,u,c=Object.create((r&&r.prototype instanceof b?r:b).prototype);return i(c,"_invoke",{value:(a=new T(o||[]),u=h,function(r,o){if(u===y)throw Error("Generator is already running");if(u===m){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var i=a.delegate;if(i){var c=function t(r,n){var o=n.method,a=r.iterator[o];if(a===e)return n.delegate=null,"throw"===o&&r.iterator.return&&(n.method="return",n.arg=e,t(r,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var i=d(a,r.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var u=i.arg;return u?u.done?(n[r.resultName]=u.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):u:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,v)}(i,a);if(c){if(c===v)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(u===h)throw u=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=y;var l=d(t,n,a);if("normal"===l.type){if(u=a.done?m:"suspendedYield",l.arg===v)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(u=m,a.method="throw",a.arg=l.arg)}})}),c}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",y="executing",m="completed",v={};function b(){}function g(){}function _(){}var P={};f(P,c,function(){return this});var S=Object.getPrototypeOf,O=S&&S(S(A([])));O&&O!==r&&a.call(O,c)&&(P=O);var w=_.prototype=b.prototype=Object.create(P);function E(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){var r;i(this,"_invoke",{value:function(o,i){function u(){return new t(function(r,u){!function r(o,i,u,c){var l=d(e[o],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==n(f)&&a.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,u,c)},function(e){r("throw",e,u,c)}):t.resolve(f).then(function(e){s.value=e,u(s)},function(e){return r("throw",e,u,c)})}c(l.arg)}(o,i,r,u)})}return r=r?r.then(u,u):u()}})}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&o.status>=500?e(t,r-1,n):o})})(t,a?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&o?{"x-middleware-prefetch":"1"}:{}),method:null!=(c=null==e?void 0:e.method)?c:"GET"}).then(function(r){return r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:s}:r.text().then(function(e){if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:s};if(404===r.status){var n;if(null==(n=Z(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:Q},response:r,text:e,cacheKey:s}}var u=Error("Failed to load static props");throw a||(0,y.markAssetError)(u),u}return{dataHref:t,json:i?Z(e):null,response:r,text:e,cacheKey:s}})}).then(function(e){return u&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[s],e}).catch(function(e){throw l||delete r[s],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,y.markAssetError)(e),e})};return l&&u?f({}).then(function(e){return"no-cache"!==e.response.headers.get("x-middleware-cache")&&(r[s]=Promise.resolve(e)),e}):void 0!==r[s]?r[s]:r[s]=f(c?{method:"HEAD"}:{})}function et(){return Math.random().toString(36).slice(2,10)}function er(e){var t=e.url,r=e.router;if(t===(0,I.addBasePath)((0,T.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}var en=function(e){var t=e.route,r=e.router,n=!1,o=r.clc=function(){n=!0};return function(){if(n){var e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}},eo=function(){var e,t,n,a,l,s,p;function d(e,t,n,o){var a=this,i=o.initialProps,u=o.pageLoader,c=o.App,l=o.wrapApp,s=o.Component,f=o.err,p=o.subscription,y=o.isFallback,m=o.locale,v=(o.locales,o.defaultLocale,o.domainLocales,o.isPreview);!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,d),this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=et(),this.onPopState=function(e){var t,r=a.isFirstPopStateEvent;a.isFirstPopStateEvent=!1;var n=e.state;if(!n){var o=a.pathname,i=a.query;a.changeState("replaceState",(0,x.formatWithValidation)({pathname:(0,I.addBasePath)(o),query:i}),(0,P.getURL)());return}if(n.__NA){window.location.reload();return}if(n.__N&&(!r||a.locale!==n.options.locale||n.as!==a.asPath)){var u=n.url,c=n.as,l=n.options,s=n.key;a._key=s;var f=(0,O.parseRelativeUrl)(u).pathname;(!a.isSsr||c!==(0,I.addBasePath)(a.asPath)||f!==(0,I.addBasePath)(a.pathname))&&(!a._bps||a._bps(n))&&a.change("replaceState",u,c,Object.assign({},l,{shallow:l.shallow&&a._shallow,locale:l.locale||a.defaultLocale,_h:0}),t)}};var b=(0,h.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[b]={Component:s,initial:!0,props:i,err:f,__N_SSG:i&&i.__N_SSG,__N_SSP:i&&i.__N_SSP}),this.components["/_app"]={Component:c,styleSheets:[]};var g=r(99335).BloomFilter,_={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]},w={numItems:0,errorRate:1e-4,numBits:0,numHashes:null,bitArray:[]};(null==_?void 0:_.numHashes)&&(this._bfl_s=new g(_.numItems,_.errorRate),this._bfl_s.import(_)),(null==w?void 0:w.numHashes)&&(this._bfl_d=new g(w.numItems,w.errorRate),this._bfl_d.import(w)),this.events=d.events,this.pageLoader=u;var E=(0,S.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="/tonic-ui-demo/react/pr-935",this.sub=p,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!E&&!self.location.search),this.state={route:b,pathname:e,query:t,asPath:E?e:n,isPreview:!!v,locale:void 0,isFallback:y},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){var j={locale:m},R=(0,P.getURL)();this._initialMatchesMiddlewarePromise=z({router:this,locale:m,asPath:R}).then(function(r){return j._shouldResolveHref=n!==e,a.changeState("replaceState",r?R:(0,x.formatWithValidation)({pathname:(0,I.addBasePath)(e),query:t}),R,j),r})}window.addEventListener("popstate",this.onPopState)}return p=[{key:"reload",value:function(){window.location.reload()}},{key:"back",value:function(){window.history.back()}},{key:"forward",value:function(){window.history.forward()}},{key:"push",value:function(e,t,r){void 0===r&&(r={});var n=$(this,e,t);return e=n.url,t=n.as,this.change("pushState",e,t,r)}},{key:"replace",value:function(e,t,r){void 0===r&&(r={});var n=$(this,e,t);return e=n.url,t=n.as,this.change("replaceState",e,t,r)}},{key:"_bfl",value:(e=f(o().mark(function e(t,r,n,a){var i,u,c,l,s,f,p,d,y,m,v,b,g,_,P;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=!1,u=!1,c=0,l=[t,r];case 4:if(!(c0&&!ea)){e.next=116;break}throw Error((ef?"The provided `href` ("+r+") value is missing query values ("+ed.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+el+") is incompatible with the `href` value ("+et+"). ")+"Read more: https://nextjs.org/docs/messages/"+(ef?"href-interpolation-failed":"incompatible-href-as"));case 116:e.next=119;break;case 118:ef?n=(0,x.formatWithValidation)(Object.assign({},ec,{pathname:ep.result,query:(0,H.omit)(Y,ep.params)})):Object.assign(Y,eu);case 119:return s||d.events.emit("routeChangeStart",n,D),eh="/404"===this.pathname||"/_error"===this.pathname,e.prev=121,e.next=124,this.getRouteInfo({route:et,pathname:K,query:Y,as:n,resolvedAs:ee,routeProps:D,locale:p.locale,isPreview:p.isPreview,hasMiddleware:ea,unstable_skipClientCache:a.unstable_skipClientCache,isQueryUpdating:s&&!this.isFallback,isMiddlewareRewrite:eo});case 124:if(eb=e.sent,!(!s&&!a.shallow)){e.next=128;break}return e.next=128,this._bfl(n,"resolvedAs"in eb?eb.resolvedAs:void 0,p.locale);case 128:if("route"in eb&&ea&&(et=K=eb.route||et,D.shallow||(Y=Object.assign({},eb.query||{},Y)),eg=(0,k.hasBasePath)(V.pathname)?(0,L.removeBasePath)(V.pathname):V.pathname,eu&&K!==eg&&Object.keys(eu).forEach(function(e){eu&&Y[e]===eu[e]&&delete Y[e]}),(0,S.isDynamicRoute)(K))&&(e_=!D.shallow&&eb.resolvedAs?eb.resolvedAs:(0,I.addBasePath)((0,T.addLocale)(new URL(n,location.href).pathname,p.locale),!0),(0,k.hasBasePath)(e_)&&(e_=(0,L.removeBasePath)(e_)),eP=(0,j.getRouteRegex)(K),(eS=(0,E.getRouteMatcher)(eP)(new URL(e_,location.href).pathname))&&Object.assign(Y,eS)),!("type"in eb)){e.next=136;break}if("redirect-internal"!==eb.type){e.next=134;break}return e.abrupt("return",this.change(t,eb.newUrl,eb.newAs,a));case 134:return er({url:eb.destination,router:this}),e.abrupt("return",new Promise(function(){}));case 136:if((eO=eb.Component)&&eO.unstable_scriptLoader&&[].concat(eO.unstable_scriptLoader()).forEach(function(e){(0,m.handleClientScriptLoad)(e.props)}),!((eb.__N_SSG||eb.__N_SSP)&&eb.props)){e.next=165;break}if(!(eb.props.pageProps&&eb.props.pageProps.__N_REDIRECT)){e.next=149;break}if(a.locale=!1,!((ew=eb.props.pageProps.__N_REDIRECT).startsWith("/")&&!1!==eb.props.pageProps.__N_REDIRECT_BASE_PATH)){e.next=147;break}return(eE=(0,O.parseRelativeUrl)(ew)).pathname=X(eE.pathname,J),ex=(ej=$(this,ew,ew)).url,eR=ej.as,e.abrupt("return",this.change(t,ex,eR,a));case 147:return er({url:ew,router:this}),e.abrupt("return",new Promise(function(){}));case 149:if(p.isPreview=!!eb.props.__N_PREVIEW,eb.props.notFound!==Q){e.next=165;break}return e.prev=151,e.next=154,this.fetchComponent("/404");case 154:eT="/404",e.next=160;break;case 157:e.prev=157,e.t3=e.catch(151),eT="/_error";case 160:return e.next=162,this.getRouteInfo({route:eT,pathname:eT,query:Y,as:n,resolvedAs:ee,routeProps:{shallow:!1},locale:p.locale,isPreview:p.isPreview,isNotFound:!0});case 162:if(!("type"in(eb=e.sent))){e.next=165;break}throw Error("Unexpected middleware effect on /404");case 165:if(s&&"/_error"===this.pathname&&(null==(em=self.__NEXT_DATA__.props)?void 0:null==(ey=em.pageProps)?void 0:ey.statusCode)===500&&(null==(ev=eb.props)?void 0:ev.pageProps)&&(eb.props.pageProps.statusCode=500),eL=a.shallow&&p.route===(null!=(eA=eb.route)?eA:et),eC=(ek=null!=(eI=a.scroll)?eI:!s&&!eL)?{x:0,y:0}:null,eM=null!=u?u:eC,eN=i(i({},p),{},{route:et,pathname:K,query:Y,asPath:U,isFallback:!1}),!(s&&eh)){e.next=188;break}return e.next=174,this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:Y,as:n,resolvedAs:ee,routeProps:{shallow:!1},locale:p.locale,isPreview:p.isPreview,isQueryUpdating:s&&!this.isFallback});case 174:if(!("type"in(eb=e.sent))){e.next=177;break}throw Error("Unexpected middleware effect on "+this.pathname);case 177:return"/_error"===this.pathname&&(null==(eF=self.__NEXT_DATA__.props)?void 0:null==(eD=eF.pageProps)?void 0:eD.statusCode)===500&&(null==(eB=eb.props)?void 0:eB.pageProps)&&(eb.props.pageProps.statusCode=500),e.prev=178,e.next=181,this.set(eN,eb,eM);case 181:e.next=187;break;case 183:throw e.prev=183,e.t4=e.catch(178),(0,v.default)(e.t4)&&e.t4.cancelled&&d.events.emit("routeChangeError",e.t4,U,D),e.t4;case 187:return e.abrupt("return",!0);case 188:if(d.events.emit("beforeHistoryChange",n,D),this.changeState(t,r,n,a),s&&!eM&&!b&&!W&&(0,F.compareRouterStates)(eN,this.state)){e.next=211;break}return e.prev=192,e.next=195,this.set(eN,eb,eM);case 195:e.next=204;break;case 197:if(e.prev=197,e.t5=e.catch(192),!e.t5.cancelled){e.next=203;break}eb.error=eb.error||e.t5,e.next=204;break;case 203:throw e.t5;case 204:if(!eb.error){e.next=207;break}throw s||d.events.emit("routeChangeError",eb.error,U,D),eb.error;case 207:s||d.events.emit("routeChangeComplete",n,D),eU=/#.+$/,ek&&eU.test(n)&&this.scrollToHash(n);case 211:return e.abrupt("return",!0);case 214:if(e.prev=214,e.t6=e.catch(121),!((0,v.default)(e.t6)&&e.t6.cancelled)){e.next=218;break}return e.abrupt("return",!1);case 218:throw e.t6;case 219:case"end":return e.stop()}},e,this,[[41,46],[54,63],[121,214],[151,157],[178,183],[192,197]])})),function(e,r,n,o,a){return t.apply(this,arguments)})},{key:"changeState",value:function(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,P.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:et()},"",r))}},{key:"handleRouteInfoError",value:(n=f(o().mark(function e(t,r,n,a,i,u){var c,l,s,f;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(console.error(t),!t.cancelled){e.next=3;break}throw t;case 3:if(!((0,y.isAssetError)(t)||u)){e.next=7;break}throw d.events.emit("routeChangeError",t,a,i),er({url:a,router:this}),G();case 7:return e.prev=7,e.next=10,this.fetchComponent("/_error");case 10:if((f={props:c,Component:s=(l=e.sent).page,styleSheets:l.styleSheets,err:t,error:t}).props){e.next=25;break}return e.prev=15,e.next=18,this.getInitialProps(s,{err:t,pathname:r,query:n});case 18:f.props=e.sent,e.next=25;break;case 21:e.prev=21,e.t0=e.catch(15),console.error("Error in error page `getInitialProps`: ",e.t0),f.props={};case 25:return e.abrupt("return",f);case 28:return e.prev=28,e.t1=e.catch(7),e.abrupt("return",this.handleRouteInfoError((0,v.default)(e.t1)?e.t1:Error(e.t1+""),r,n,a,i,!0));case 31:case"end":return e.stop()}},e,this,[[7,28],[15,21]])})),function(e,t,r,o,a,i){return n.apply(this,arguments)})},{key:"getRouteInfo",value:(a=f(o().mark(function e(t){var r,n,a,u,c,l,s,p,d,y,m,b,_,P,S,O,w,E,j,R,T,A,I,k,C,N,D,F,B,U,H,q,W=this;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.route,n=t.pathname,a=t.query,u=t.as,c=t.resolvedAs,l=t.routeProps,s=t.locale,p=t.hasMiddleware,d=t.isPreview,y=t.unstable_skipClientCache,m=t.isQueryUpdating,b=t.isMiddlewareRewrite,_=t.isNotFound,P=r,e.prev=2,j=this.components[P],!(l.shallow&&j&&this.route===P)){e.next=6;break}return e.abrupt("return",j);case 6:if(R=en({route:P,router:this}),p&&(j=void 0),T=!j||"initial"in j?void 0:j,A=m,I={dataHref:this.pageLoader.getDataHref({href:(0,x.formatWithValidation)({pathname:n,query:a}),skipInterpolation:!0,asPath:_?"/404":c,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:A?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:y,isBackground:A},!(m&&!b)){e.next=15;break}e.t0=null,e.next=18;break;case 15:return e.next=17,Y({fetchData:function(){return ee(I)},asPath:_?"/404":c,locale:s,router:this}).catch(function(e){if(m)return null;throw e});case 17:e.t0=e.sent;case 18:if((k=e.t0)&&("/_error"===n||"/404"===n)&&(k.effect=void 0),m&&(k?k.json=self.__NEXT_DATA__.props:k={json:self.__NEXT_DATA__.props}),R(),!((null==k?void 0:null==(S=k.effect)?void 0:S.type)==="redirect-internal"||(null==k?void 0:null==(O=k.effect)?void 0:O.type)==="redirect-external")){e.next=24;break}return e.abrupt("return",k.effect);case 24:if((null==k?void 0:null==(w=k.effect)?void 0:w.type)!=="rewrite"){e.next=37;break}return C=(0,h.removeTrailingSlash)(k.effect.resolvedHref),e.next=28,this.pageLoader.getPageList();case 28:if(N=e.sent,!(!m||N.includes(C))||(P=C,n=k.effect.resolvedHref,a=i(i({},a),k.effect.parsedAs.query),c=(0,L.removeBasePath)((0,g.normalizeLocalePath)(k.effect.parsedAs.pathname,this.locales).pathname),j=this.components[P],!(l.shallow&&j&&this.route===P&&!p))){e.next=37;break}return e.abrupt("return",i(i({},j),{},{route:P}));case 37:if(!(0,M.isAPIRoute)(P)){e.next=40;break}return er({url:u,router:this}),e.abrupt("return",new Promise(function(){}));case 40:if(e.t1=T,e.t1){e.next=45;break}return e.next=44,this.fetchComponent(P).then(function(e){return{Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP}});case 44:e.t1=e.sent;case 45:D=e.t1,e.next=50;break;case 50:return F=null==k?void 0:null==(E=k.response)?void 0:E.headers.get("x-middleware-skip"),B=D.__N_SSG||D.__N_SSP,F&&(null==k?void 0:k.dataHref)&&delete this.sdc[k.dataHref],e.next=55,this._getData(f(o().mark(function e(){var t,r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!B){e.next=8;break}if(!((null==k?void 0:k.json)&&!F)){e.next=3;break}return e.abrupt("return",{cacheKey:k.cacheKey,props:k.json});case 3:return t=(null==k?void 0:k.dataHref)?k.dataHref:W.pageLoader.getDataHref({href:(0,x.formatWithValidation)({pathname:n,query:a}),asPath:c,locale:s}),e.next=6,ee({dataHref:t,isServerRender:W.isSsr,parseJSON:!0,inflightCache:F?{}:W.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:y});case 6:return r=e.sent,e.abrupt("return",{cacheKey:r.cacheKey,props:r.json||{}});case 8:return e.t0={},e.next=11,W.getInitialProps(D.Component,{pathname:n,query:a,asPath:u,locale:s,locales:W.locales,defaultLocale:W.defaultLocale});case 11:return e.t1=e.sent,e.abrupt("return",{headers:e.t0,props:e.t1});case 13:case"end":return e.stop()}},e)})));case 55:return H=(U=e.sent).props,q=U.cacheKey,D.__N_SSP&&I.dataHref&&q&&delete this.sdc[q],this.isPreview||!D.__N_SSG||m||ee(Object.assign({},I,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(function(){}),H.pageProps=Object.assign({},H.pageProps),D.props=H,D.route=P,D.query=a,D.resolvedAs=c,this.components[P]=D,e.abrupt("return",D);case 69:return e.prev=69,e.t2=e.catch(2),e.abrupt("return",this.handleRouteInfoError((0,v.getProperError)(e.t2),n,a,u,l));case 72:case"end":return e.stop()}},e,this,[[2,69]])})),function(e){return a.apply(this,arguments)})},{key:"set",value:function(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}},{key:"beforePopState",value:function(e){this._bps=e}},{key:"onlyAHashChange",value:function(e){if(!this.asPath)return!1;var t=c(this.asPath.split("#",2),2),r=t[0],n=t[1],o=c(e.split("#",2),2),a=o[0],i=o[1];return!!i&&r===a&&n===i||r===a&&n!==i}},{key:"scrollToHash",value:function(e){var t=c(e.split("#",2),2)[1],r=void 0===t?"":t;(0,W.handleSmoothScroll)(function(){if(""===r||"top"===r){window.scrollTo(0,0);return}var e=decodeURIComponent(r),t=document.getElementById(e);if(t){t.scrollIntoView();return}var n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}},{key:"urlIsNew",value:function(e){return this.asPath!==e}},{key:"prefetch",value:(l=f(o().mark(function e(t,r,n){var a,u,c,l,s,f,p,d,y,m,v,b,g,_=this;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:void 0===r&&(r=t),void 0===n&&(n={}),e.next=4;break;case 4:if(!(0,U.isBot)(window.navigator.userAgent)){e.next=6;break}return e.abrupt("return");case 6:return u=(a=(0,O.parseRelativeUrl)(t)).pathname,c=a.pathname,l=a.query,s=c,e.next=13,this.pageLoader.getPageList();case 13:return f=e.sent,p=r,d=void 0!==n.locale?n.locale||void 0:this.locale,e.next=18,z({asPath:r,locale:d,router:this});case 18:y=e.sent,e.next=29;break;case 22:if(m=e.sent.__rewrites,!(v=(0,w.default)((0,I.addBasePath)((0,T.addLocale)(r,this.locale),!0),f,m,a.query,function(e){return X(e,f)},this.locales)).externalDest){e.next=27;break}return e.abrupt("return");case 27:y||(p=(0,A.removeLocale)((0,L.removeBasePath)(v.asPath),this.locale)),v.matchedPage&&v.resolvedHref&&(c=v.resolvedHref,a.pathname=c,y||(t=(0,x.formatWithValidation)(a)));case 29:a.pathname=X(a.pathname,f),(0,S.isDynamicRoute)(a.pathname)&&(c=a.pathname,a.pathname=c,Object.assign(l,(0,E.getRouteMatcher)((0,j.getRouteRegex)(a.pathname))((0,R.parsePath)(r).pathname)||{}),y||(t=(0,x.formatWithValidation)(a))),e.next=35;break;case 35:return e.next=37,Y({fetchData:function(){return ee({dataHref:_.pageLoader.getDataHref({href:(0,x.formatWithValidation)({pathname:s,query:l}),skipInterpolation:!0,asPath:p,locale:d}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:_.sdc,persistCache:!_.isPreview,isPrefetch:!0})},asPath:r,locale:d,router:this});case 37:e.t0=e.sent;case 38:if((null==(b=e.t0)?void 0:b.effect.type)==="rewrite"&&(a.pathname=b.effect.resolvedHref,c=b.effect.resolvedHref,l=i(i({},l),b.effect.parsedAs.query),p=b.effect.parsedAs.pathname,t=(0,x.formatWithValidation)(a)),(null==b?void 0:b.effect.type)!=="redirect-external"){e.next=42;break}return e.abrupt("return");case 42:return g=(0,h.removeTrailingSlash)(c),e.next=45,this._bfl(r,p,n.locale,!0);case 45:if(!e.sent){e.next=47;break}this.components[u]={__appRouter:!0};case 47:return e.next=49,Promise.all([this.pageLoader._isSsg(g).then(function(e){return!!e&&ee({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:_.pageLoader.getDataHref({href:t,asPath:p,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:_.sdc,persistCache:!_.isPreview,isPrefetch:!0,unstable_skipClientCache:n.unstable_skipClientCache||n.priority&&!0}).then(function(){return!1}).catch(function(){return!1})}),this.pageLoader[n.priority?"loadPage":"prefetch"](g)]);case 49:case"end":return e.stop()}},e,this)})),function(e,t,r){return l.apply(this,arguments)})},{key:"fetchComponent",value:(s=f(o().mark(function e(t){var r,n;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=en({route:t,router:this}),e.prev=1,e.next=4,this.pageLoader.loadPage(t);case 4:return n=e.sent,r(),e.abrupt("return",n);case 9:throw e.prev=9,e.t0=e.catch(1),r(),e.t0;case 13:case"end":return e.stop()}},e,this,[[1,9]])})),function(e){return s.apply(this,arguments)})},{key:"_getData",value:function(e){var t=this,r=!1,n=function(){r=!0};return this.clc=n,e().then(function(e){if(n===t.clc&&(t.clc=null),r){var o=Error("Loading initial props cancelled");throw o.cancelled=!0,o}return e})}},{key:"_getFlightData",value:function(e){return ee({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(function(e){return{data:e.text}})}},{key:"getInitialProps",value:function(e,t){var r=this.components["/_app"].Component,n=this._wrapApp(r);return t.AppTree=n,(0,P.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}},{key:"route",get:function(){return this.state.route}},{key:"pathname",get:function(){return this.state.pathname}},{key:"query",get:function(){return this.state.query}},{key:"asPath",get:function(){return this.state.asPath}},{key:"locale",get:function(){return this.state.locale}},{key:"isFallback",get:function(){return this.state.isFallback}},{key:"isPreview",get:function(){return this.state.isPreview}}],function(e,t){for(var r=0;r-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},90085:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});var n=r(99674),o=r(42665);function a(e,t){var r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,i=new URL(e,a),u=i.pathname,c=i.searchParams,l=i.search,s=i.hash,f=i.href;if(i.origin!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:u,query:(0,o.searchParamsToUrlQuery)(c),search:l,hash:s,href:f.slice(r.origin.length)}}},81231:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});var n=r(96393);function o(e,t){if("string"!=typeof e)return!1;var r=(0,n.parsePath)(e).pathname;return r===t||r.startsWith(t+"/")}},42665:function(e,t){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1?t-1:0),n=1;ne.length)&&(t=e.length);for(var r=0,n=Array(t);r30)&&(d=!0),isNaN(parseInt(p.slice(0,1)))||(d=!0),d&&(p=r()),a?o[p]=""+a+u:o[p]=u;var h=t?(0,c.escapeStringRegexp)(t):"";return f?l?"(?:/"+h+"(?<"+p+">.+?))?":"/"+h+"(?<"+p+">.+?)":"/"+h+"(?<"+p+">[^/]+?)"}function h(e,t){var r,n=(0,l.removeTrailingSlash)(e).slice(1).split("/"),o=(r=0,function(){for(var e="",t=++r;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),a={};return{namedParameterizedRoute:n.map(function(e){var r,n=u.INTERCEPTION_ROUTE_MARKERS.some(function(t){return e.startsWith(t)}),l=e.match(/\[((?:\[.*\])|.+)\]/);return n&&l?d({getSafeRouteKey:o,interceptionMarker:(function(e){if(Array.isArray(e))return e}(r=e.split(l[0]))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,l=!1;try{for(a=(r=r.call(e)).next;!(c=(n=a.call(r)).done)&&(u.push(n.value),1!==u.length);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(r,1)||function(e,t){if(e){if("string"==typeof e)return i(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,1)}}(r,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],segment:l[1],routeKeys:a,keyPrefix:t?"nxtI":void 0}):l?d({getSafeRouteKey:o,segment:l[1],routeKeys:a,keyPrefix:t?"nxtP":void 0}):"/"+(0,c.escapeStringRegexp)(e)}).join(""),routeKeys:a}}function y(e,t){var r=h(e,t);return a(a({},p(e)),{},{namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys})}function m(e,t){var r=f(e).parameterizedRoute,n=t.catchAll,o=void 0===n||n;return"/"===r?{namedRegex:"^/"+(o?".*":"")+"$"}:{namedRegex:"^"+h(e,!1).namedParameterizedRoute+(o?"(?:(/.*)?)":"")+"$"}}},1004:function(e,t){"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})(e)}function n(e){return function(e){if(Array.isArray(e))return o(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){if("string"==typeof e)return o(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function o(e,t){for(var n=0;n1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})},86590:function(e){var t,r,n,o,a,i,u,c,l,s,f,p,d,h,y,m,v,b,g,_,P,S,O,w,E,j,x,R,T,A,L,I,k,C,M,N,D,F,B,U,H,q,W,G,z,V;(t={}).d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},void 0!==t&&(t.ab="//"),r={},t.r(r),t.d(r,{getCLS:function(){return O},getFCP:function(){return _},getFID:function(){return A},getINP:function(){return q},getLCP:function(){return G},getTTFB:function(){return V},onCLS:function(){return O},onFCP:function(){return _},onFID:function(){return A},onINP:function(){return q},onLCP:function(){return G},onTTFB:function(){return V}}),c=-1,l=function(e){addEventListener("pageshow",function(t){t.persisted&&(c=t.timeStamp,e(t))},!0)},s=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},f=function(){var e=s();return e&&e.activationStart||0},p=function(e,t){var r=s(),n="navigate";return c>=0?n="back-forward-cache":r&&(n=document.prerendering||f()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},d=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(e){t(e.getEntries())});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},h=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},y=function(e,t,r,n){var o,a;return function(i){var u;t.value>=0&&(i||n)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,t.rating=(u=t.value)>r[1]?"poor":u>r[0]?"needs-improvement":"good",e(t))}},m=-1,v=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},b=function(){h(function(e){m=e.timeStamp},!0)},g=function(){return m<0&&(m=v(),b(),l(function(){setTimeout(function(){m=v(),b()},0)})),{get firstHiddenTime(){return m}}},_=function(e,t){t=t||{};var r,n=[1800,3e3],o=g(),a=p("FCP"),i=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(c&&c.disconnect(),e.startTime-1&&e(t)},a=p("CLS",0),i=0,u=[],c=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=u[0],r=u[u.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,u.push(e)):(i=e.value,u=[e]),i>a.value&&(a.value=i,a.entries=u,n())}})},s=d("layout-shift",c);s&&(n=y(o,a,r,t.reportAllChanges),h(function(){c(s.takeRecords()),n(!0)}),l(function(){i=0,S=-1,n=y(o,a=p("CLS",0),r,t.reportAllChanges)}))},w={passive:!0,capture:!0},E=new Date,j=function(e,t){n||(n=t,o=e,a=new Date,T(removeEventListener),x())},x=function(){if(o>=0&&o1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){j(o,e),n()},r=function(){n()},n=function(){removeEventListener("pointerup",t,w),removeEventListener("pointercancel",r,w)},addEventListener("pointerup",t,w),addEventListener("pointercancel",r,w)):j(o,e)}},T=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,R,w)})},A=function(e,t){t=t||{};var r,a=[100,300],u=g(),c=p("FID"),s=function(e){e.startTimet.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};U[n.id]=n,B.push(n)}B.sort(function(e,t){return t.latency-e.latency}),B.splice(10).forEach(function(e){delete U[e.id]})}},q=function(e,t){t=t||{};var r=[200,500];N();var n,o=p("INP"),a=function(e){e.forEach(function(e){e.interactionId&&H(e),"first-input"!==e.entryType||B.some(function(t){return t.entries.some(function(t){return e.duration===t.duration&&e.startTime===t.startTime})})||H(e)});var t,r=(t=Math.min(B.length-1,Math.floor(F()/50)),B[t]);r&&r.latency!==o.value&&(o.value=r.latency,o.entries=r.entries,n())},i=d("event",a,{durationThreshold:t.durationThreshold||40});n=y(e,o,r,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),h(function(){a(i.takeRecords()),o.value<0&&F()>0&&(o.value=0,o.entries=[]),n(!0)}),l(function(){B=[],D=M(),n=y(e,o=p("INP"),r,t.reportAllChanges)}))},W={},G=function(e,t){t=t||{};var r,n=[2500,4e3],o=g(),a=p("LCP"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-f();nperformance.now())return;n.entries=[a],o(!0),l(function(){(o=y(e,n=p("TTFB",0),r,t.reportAllChanges))(!0)})}})},e.exports=r},74219:function(e,t){"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},10274:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(82235);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+"")}},16520:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return a}});let n=r(51507),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?`/${a}`:t+"/"+a;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);a=i.slice(0,-2).concat(a).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:a}}},72094:function(){},43219:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},16794:function(e,t,r){"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}},function(e){e.O(0,[9774],function(){return e(e.s=57804)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/react/pr-935/_next/static/chunks/pages/404-e246ffc50d3c4e0b.js b/react/pr-935/_next/static/chunks/pages/404-e246ffc50d3c4e0b.js
new file mode 100644
index 0000000000..32376d7a3c
--- /dev/null
+++ b/react/pr-935/_next/static/chunks/pages/404-e246ffc50d3c4e0b.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2197],{87510:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return l}});var i=t(73645),c=t(70758),r=t(72448),u=t(2784);function l(){return u.createElement(i.Z,{flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh"},u.createElement(i.Z,{alignItems:"center"},u.createElement(c.Z,{fontSize:"2xl",lineHeight:"2xl"},"404"),u.createElement(r.Z,{orientation:"vertical",height:"100%",mx:"6x"}),u.createElement(c.Z,null,"This page could not be found.")))}},15298:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return t(87510)}])}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=15298)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/react/pr-935/_next/static/chunks/pages/_app-569a2ce76ec52a38.js b/react/pr-935/_next/static/chunks/pages/_app-569a2ce76ec52a38.js
new file mode 100644
index 0000000000..2c0053d665
--- /dev/null
+++ b/react/pr-935/_next/static/chunks/pages/_app-569a2ce76ec52a38.js
@@ -0,0 +1,123 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888,9050],{15312:function(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}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,i,a,s,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(void 0===(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:a=Array.prototype.slice.call(arguments,1),o.apply(this,a)}else if(r(o))for(s=0,a=Array.prototype.slice.call(arguments,1),i=(c=o.slice()).length;s0&&this._events[e].length>i&&(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 o(){this.removeListener(e,o),r||(r=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},t.prototype.removeListener=function(e,t){var o,i,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(o=this._events[e]).length,i=-1,o===t||n(o.listener)&&o.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(o)){for(s=a;s-- >0;)if(o[s]===t||o[s].listener&&o[s].listener===t){i=s;break}if(i<0)return this;1===o.length?(o.length=0,delete this._events[e]):o.splice(i,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)}},2107:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?m[x]+" "+w:s(w,/&\f/g,m[x])).trim())&&(f[k++]=_);return b(e,t,n,0===i?A:u,f,p,d)}function F(e,t,n,r){return b(e,t,n,R,l(e,0,r),l(e,r+1,-1),r)}var L=function(e,t,n){for(var r=0,o=0;r=o,o=w(),38===r&&12===o&&(t[n]=1),!_(o);)x();return l(v,e,g)},M=function(e,t){var n=-1,r=44;do switch(_(r)){case 0:38===r&&12===w()&&(t[n]=1),e[n]+=L(g-1,t,n);break;case 2:e[n]+=E(r);break;case 4:if(44===r){e[++n]=58===w()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}while(r=x());return e},D=function(e,t){var n;return n=M(S(e),t),v="",n},B=new WeakMap,z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||B.get(n))&&!r){B.set(e,!0);for(var o=[],i=D(t,o),a=n.props,s=0,c=0;s-1&&!e.return)switch(e.type){case R:e.return=function e(t,n){switch(45^u(t,0)?(((n<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return T+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return T+t+j+t+O+t+t;case 6828:case 4268:return T+t+O+t+t;case 6165:return T+t+O+"flex-"+t+t;case 5187:return T+t+s(t,/(\w+).+(:[^]+)/,T+"box-$1$2"+O+"flex-$1$2")+t;case 5443:return T+t+O+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return T+t+O+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return T+t+O+s(t,"shrink","negative")+t;case 5292:return T+t+O+s(t,"basis","preferred-size")+t;case 6060:return T+"box-"+s(t,"-grow","")+T+t+O+s(t,"grow","positive")+t;case 4554:return T+s(t,/([^-])(transform)/g,"$1"+T+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,T+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(t)-1-n>6)switch(u(t,n+1)){case 109:if(45!==u(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+j+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~c(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==u(t,n+1))break;case 6444:switch(u(t,f(t)-3-(~c(t,"!important")&&10))){case 107:return s(t,":",":"+T)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(45===u(t,14)?"inline-":"")+"box$3$1"+T+"$2$3$1"+O+"$2box$3")+t}break;case 5936:switch(u(t,n+11)){case 114:return T+t+O+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return T+t+O+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return T+t+O+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return T+t+O+t+t}return t}(e.value,e.length);break;case I:return P([k(e,{value:s(e.value,"@","@"+T)})],r);case A:if(e.length){var o,i;return o=e.props,i=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return P([k(e,{props:[s(t,/:(read-\w+)/,":"+j+"$1")]})],r);case"::placeholder":return P([k(e,{props:[s(t,/:(plac\w+)/,":"+T+"input-$1")]}),k(e,{props:[s(t,/:(plac\w+)/,":"+j+"$1")]}),k(e,{props:[s(t,/:(plac\w+)/,O+"input-$1")]})],r)}return""},o.map(i).join("")}}}],H=function(e){var t,n,o,a,m,k,O=e.key;if("css"===O){var j=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(j,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var T=e.stylisPlugins||U,A={},R=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+O+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n2||_(y)>3?"":" "}(Z);break;case 92:q+=function(e,t){for(var n;--t&&x()&&!(y<48)&&!(y>102)&&(!(y>57)||!(y<65))&&(!(y>70)||!(y<97)););return n=g+(t<6&&32==w()&&32==x()),l(v,e,n)}(g-1,7);continue;case 47:switch(w()){case 42:case 47:p(b(j=function(e,t){for(;x();)if(e+y===57)break;else if(e+y===84&&47===w())break;return"/*"+l(v,t,g-1)+"*"+i(47===e?e:x())}(x(),g),n,r,C,i(y),l(j,2,-2),0),O);break;default:q+="/"}break;case 123*L:S[T++]=f(q)*D;case 125*L:case 59:case 0:switch(B){case 0:case 125:M=0;case 59+A:-1==D&&(q=s(q,/\f/g,"")),P>0&&f(q)-R&&p(P>32?F(q+";",o,r,R-1):F(s(q," ","")+";",o,r,R-2),O);break;case 59:q+=";";default:if(p(H=N(q,n,r,T,A,a,S,z,$=[],U=[],R),m),123===B){if(0===A)e(q,n,H,H,$,m,R,S,U);else switch(99===I&&110===u(q,3)?100:I){case 100:case 108:case 109:case 115:e(t,H,H,o&&p(N(t,H,H,0,0,a,S,z,a,$=[],R),U),a,U,R,S,o?$:U);break;default:e(q,H,H,H,[""],U,0,S,U)}}}T=A=P=0,L=D=1,z=q="",R=k;break;case 58:R=1+f(q),P=Z;default:if(L<1){if(123==B)--L;else if(125==B&&0==L++&&125==(y=g>0?u(v,--g):0,h--,10===y&&(h=1,d--),y))continue}switch(q+=i(B),B*L){case 38:D=A>0?1:(q+="\f",-1);break;case 44:S[T++]=(f(q)-1)*D,D=1;break;case 64:45===w()&&(q+=E(x())),I=w(),A=R=f(z=q+=function(e){for(;!_(w());)x();return l(v,e,g)}(g)),B++;break;case 45:45===Z&&2==f(q)&&(L=0)}}return m}("",null,null,null,[""],t=S(t=e),0,[0],t),v="",n),I)};m=function(e,t,n,r){k=n,L(e?e+"{"+t.styles+"}":t.styles),r&&(M.inserted[t.name]=!0)};var M={key:O,sheet:new r({key:O,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:A,registered:{},insert:m};return M.sheet.hydrate(R),M}},86015:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86894),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=(0,r.Z)(function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)})},86894:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},27216:function(e,t,n){"use strict";n.d(t,{C:function(){return d},E:function(){return w},T:function(){return m},a:function(){return v},c:function(){return k},h:function(){return f},i:function(){return l},u:function(){return g},w:function(){return h}});var r=n(2784),o=n(2107),i=n(7896),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(82792),c=n(40653),u=n(82668),l=!0,f={}.hasOwnProperty,p=r.createContext("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null),d=p.Provider,h=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(p),n)})};l||(h=function(e){return function(t){var n=(0,r.useContext)(p);return null===n?(n=(0,o.Z)({key:"css"}),r.createElement(p.Provider,{value:n},e(t,n))):e(t,n)}});var m=r.createContext({}),g=function(){return r.useContext(m)},y=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,i.Z)({},e,t)})}),v=function(e){var t=r.useContext(m);return e.theme!==t&&(t=y(t)(e.theme)),r.createElement(m.Provider,{value:t},e.children)},b="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",k=function(e,t){var n={};for(var r in t)f.call(t,r)&&(n[r]=t[r]);return n[b]=e,n},x=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.hC)(t,n,r),(0,u.L)(function(){return(0,s.My)(t,n,r)}),null},w=h(function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[b],a=[o],u="";"string"==typeof e.className?u=(0,s.fp)(t.registered,a,e.className):null!=e.className&&(u=e.className+" ");var l=(0,c.O)(a,void 0,r.useContext(m));u+=t.key+"-"+l.name;var p={};for(var d in e)f.call(e,d)&&"css"!==d&&d!==b&&(p[d]=e[d]);return p.ref=n,p.className=u,r.createElement(r.Fragment,null,r.createElement(x,{cache:t,serialized:l,isStringTag:"string"==typeof i}),r.createElement(i,p))})},28165:function(e,t,n){"use strict";n.d(t,{F4:function(){return f},az:function(){return c},iv:function(){return l},xB:function(){return u}});var r=n(27216),o=n(2784),i=n(82792),a=n(82668),s=n(40653);n(2107),n(73463);var c=function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return o.createElement.apply(void 0,n);var i=n.length,a=Array(i);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var s=2;s=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+u,styles:a,next:r}}},92952:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(7896),o=n(2784),i=n(86015),a=n(27216),s=n(82792),c=n(40653),u=n(82668),l=i.Z,f=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:f},d=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.hC)(t,n,r),(0,u.L)(function(){return(0,s.My)(t,n,r)}),null},m=function e(t,n){var i,u,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==n&&(i=n.label,u=n.target);var m=d(t,n,l),g=m||p(f),y=!g("as");return function(){var v=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{b.push(v[0][0]);for(var k=v.length,x=1;x=0&&!(e[t].length>0);n=t,t--);n=0&&!(t>=e[r][0]);n=r--);return n}(m,o);if(!i){if(e&&(0===g||1===m[g-1].length))return;return s(m,g,[o])}let y=t.put(p,i),v=u?t.put(h,u):-1;if(y===d.length&&(d[y]=null!=l?l:null),!(e&&function(e,t,n,r,o,i){if(0===t)return!1;let a=e[t-1];return 1!==a.length&&n===a[1]&&r===a[2]&&o===a[3]&&i===(5===a.length?a[4]:-1)}(m,g,y,a,c,v)))return s(m,g,u?[o,y,a,c,v]:[o,y,a,c])}function s(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function c(e,n){for(let r=0;rnull),n._mappings=r.decodedMappings(t),t.ignoreList&&c(n._ignoreList,t.ignoreList),n},e.maybeAddMapping=(e,t)=>u(!0,e,t),e.maybeAddSegment=(e,t,n,r,o,i,s,c)=>a(!0,e,t,n,r,o,i,s,c),e.setIgnore=function(e,n,r=!0){let{_sources:o,_sourcesContent:i,_ignoreList:a}=e,s=t.put(o,n);s===i.length&&(i[s]=null),r?t.put(a,s):t.remove(a,s)},e.setSourceContent=function(e,n,r){let{_sources:o,_sourcesContent:i}=e;i[t.put(o,n)]=r},e.toDecodedMap=i,e.toEncodedMap=function(e){let t=i(e);return Object.assign(Object.assign({},t),{mappings:n.encode(t.mappings)})},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(89078),n(95342),n(21076))},82336:function(e){var t;t=function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(e){return e.startsWith("/")}function o(e){return/^[.?#]/.test(e)}function i(e){let n=t.exec(e);return a(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function a(e,t,n,r,o,i,a){return{scheme:e,user:t,host:n,port:r,path:o,query:i,hash:a,type:7}}function s(t){if(t.startsWith("//")){let e=i("http:"+t);return e.scheme="",e.type=6,e}if(r(t)){let e=i("http://foo.com"+t);return e.scheme="",e.host="",e.type=5,e}if(t.startsWith("file:"))return function(e){let t=n.exec(e),o=t[2];return a("file:","",t[1]||"","",r(o)?o:"/"+o,t[3]||"",t[4]||"")}(t);if(e.test(t))return i(t);let o=i("http://foo.com/"+t);return o.scheme="",o.host="",o.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,o}function c(e,t){let n=t<=4,r=e.path.split("/"),o=1,i=0,a=!1;for(let e=1;er&&(r=o)}c(n,r);let i=n.query+n.hash;switch(r){case 2:case 3:return i;case 4:{let r=n.path.slice(1);if(!r)return i||".";if(o(t||e)&&!o(r))return"./"+r+i;return r+i}case 5:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}}},e.exports=t()},89078:function(e,t){!function(e){"use strict";class t{constructor(){this._indexes={__proto__:null},this.array=[]}}function n(e,t){return e._indexes[t]}e.SetArray=t,e.get=n,e.pop=function(e){let{array:t,_indexes:n}=e;0!==t.length&&(n[t.pop()]=void 0)},e.put=function(e,t){let r=n(e,t);if(void 0!==r)return r;let{array:o,_indexes:i}=e,a=o.push(t);return i[t]=a-1},e.remove=function(e,t){let r=n(e,t);if(void 0===r)return;let{array:o,_indexes:i}=e;for(let e=r+1;er.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n>>=1,c&&(i=-2147483648|-i),n[r]+=i,t}function s(e,t,n){return!(t>=n)&&44!==e.charCodeAt(t)}function c(e,t){return e[0]-t[0]}function u(e,t,r,o,i){let a=o[i],s=a-r[i];r[i]=a,s=s<0?-s<<1|1:s<<1;do{let r=31&s;(s>>>=5)>0&&(r|=32),e[t++]=n[r]}while(s>0);return t}e.decode=function(e){let t=new Int32Array(5),n=[],r=0;do{let o=function(e,t){let n=e.indexOf(";",t);return -1===n?e.length:n}(e,r),i=[],u=!0,l=0;t[0]=0;for(let n=r;n0&&(16384===o&&(a+=i.decode(n),o=0),n[o++]=59),0!==c.length){t[0]=0;for(let e=0;e16348&&(a+=i.decode(r),n.copyWithin(0,16348,o),o-=16348),e>0&&(n[o++]=44),o=u(n,o,t,s,0),1!==s.length&&(o=u(n,o,t,s,1),o=u(n,o,t,s,2),o=u(n,o,t,s,3),4!==s.length&&(o=u(n,o,t,s,4)))}}}return a+i.decode(n.subarray(0,o))},Object.defineProperty(e,"__esModule",{value:!0})}(t)},21076:function(e,t,n){!function(e,t,n){"use strict";function r(e,t){return t&&!t.endsWith("/")&&(t+="/"),n(e,t)}function o(e,t){for(let n=t;n=0&&e[r][0]===t;n=r--);return n}function u(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function l(e,t,n,r){let{lastKey:o,lastNeedle:i,lastIndex:s}=n,c=0,u=e.length-1;if(r===o){if(t===i)return a=-1!==s&&e[s][0]===t,s;t>=i?c=-1===s?0:s:u=s}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=function(e,t,n,r){for(;n<=r;){let o=n+(r-n>>1),i=e[o][0]-t;if(0===i)return a=!0,o;i<0?n=o+1:r=o-1}return a=!1,n-1}(e,t,c,u)}function f(){return{__proto__:null}}function p(e){return"string"==typeof e?JSON.parse(e):e}function d(e,t){for(let n=0;nr(e||"",h));let{mappings:m}=a;"string"==typeof m?(this._encoded=m,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(e,t){let n=o(e,0);if(n===e.length)return e;t||(e=e.slice());for(let a=n;at;n--)e[n]=e[n-1];e[t]=n}(p,h,[u,r,i[0]])}}return n}(v(e),e._bySourceMemos=p.map(u))))[g][n];if(null==y)return i?[]:_(null,null);let b=e._bySourceMemos[g];if(i)return function(e,t,n,r,o){let i=S(e,t,n,r,1);if(!a&&-1===o&&i++,-1===i||i===e.length)return[];let u=a?r:e[i][0];a||(i=c(e,u,i));let l=s(e,u,i),f=[];for(;i<=l;i++){let t=e[i];f.push(_(t[1]+1,t[2]))}return f}(y,b,n,r,o);let k=S(y,b,n,r,o);if(-1===k)return _(null,null);let x=y[k];return _(x[1]+1,x[2])}e.AnyMap=function(e,t){let n=p(e);if(!("sections"in n))return new g(n,t);let r=[],o=[],i=[],a=[],s=[];return function e(t,n,r,o,i,a,s,c,u,l,f){let{sections:h}=t;for(let t=0;tl)return;let n=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(r,t),o=0===e?u:0,i=k[e];for(let e=0;e=f)return;if(1===r.length){n.push([a]);continue}let s=y+r[1],c=r[2],u=r[3];n.push(4===r.length?[a,s,c,u]:[a,s,c,u,b+r[4]])}}})(m,n,r,o,i,a,s,c+y.line,u+y.column,b,k)}}(n,t,r,o,i,a,s,0,0,1/0,1/0),k({version:3,file:n.file,names:a,sources:o,sourcesContent:i,mappings:r,ignoreList:s})},e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=-1,e.TraceMap=g,e.allGeneratedPositionsFor=function(e,t){let{source:n,line:r,column:o,bias:i}=t;return E(e,n,r,o,i||-1,!0)},e.decodedMap=function(e){return x(e,v(e))},e.decodedMappings=v,e.eachMapping=function(e,t){let n=v(e),{names:r,resolvedSources:o}=e;for(let e=0;e=i.length)return w(null,null,null,null);let a=i[n],s=S(a,e._decodedMemo,n,r,o||1);if(-1===s)return w(null,null,null,null);let c=a[s];if(1===c.length)return w(null,null,null,null);let{names:u,resolvedSources:l}=e;return w(l[c[1]],c[2]+1,c[3],5===c.length?u[c[4]]:null)},e.presortedDecodedMap=k,e.sourceContentFor=function(e,t){let{sourcesContent:n}=e;if(null==n)return null;let r=b(e,t);return -1===r?null:n[r]},e.traceSegment=function(e,t,n){let r=v(e);if(t>=r.length)return null;let o=r[t],i=S(o,e._decodedMemo,t,n,1);return -1===i?null:o[i]}}(t,n(95342),n(82336))},96906:function(e,t,n){"use strict";var r=n(38502),o=n(27607),i=n(57293);function a(e,t,n,o){return new r(e,t,n,o)}a.version=n(24815),a.AlgoliaSearchHelper=r,a.SearchParameters=o,a.SearchResults=i,e.exports=a},12985:function(e,t,n){"use strict";var r=n(15312);function o(e,t){this.main=e,this.fn=t,this.lastResults=null}n(24779)(o,r),o.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},o.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=o},33329:function(e,t,n){"use strict";var r=n(71544),o=n(79582),i=n(62202),a={addRefinement:function(e,t,n){if(a.isRefined(e,t,n))return e;var o=""+n,i=e[t]?e[t].concat(o):[o],s={};return s[t]=i,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 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 o(e)?{}:e;if("string"==typeof t)return i(e,[t]);if("function"==typeof t){var r=!1,a=Object.keys(e).reduce(function(o,i){var a=e[i]||[],s=a.filter(function(e){return!t(e,i,n)});return s.length!==a.length&&(r=!0),o[i]=s,o},{});return r?a:e}},isRefined:function(e,t,n){var r=!!e[t]&&e[t].length>0;return void 0!==n&&r?-1!==e[t].indexOf(""+n):r}};e.exports=a},27607:function(e,t,n){"use strict";var r=n(71544),o=n(13591),i=n(29878),a=n(31853),s=n(79582),c=n(62202),u=n(52641),l=n(47671),f=n(33329);function p(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,n){return p(t[n],e)}):e===t}function d(e){var t=e?d._parseNumbers(e):{};void 0===t.userToken||l(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!==d.PARAMETERS.indexOf(e),o=void 0!==t[e];!r&&o&&(n[e]=t[e])})}d.PARAMETERS=Object.keys(new d),d._parseNumbers=function(e){if(e instanceof d)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 o=parseFloat(r);t[n]=isNaN(o)?r:o}}),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 o=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]=o})}),t.numericRefinements=n}return a(e,t)},d.make=function(e){var t=new d(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},d.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?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?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)?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?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},d.prototype={constructor:d,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:f.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:f.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:f.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:f.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 o=a({},this.numericRefinements);return o[e]=a({},o[e]),o[e][t]?(o[e][t]=o[e][t].slice(),o[e][t].push(r)):o[e][t]=[r],this.setQueryParameters({numericRefinements:o})},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){return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,o){return o===e&&r.op===t&&p(r.val,u(n))})}):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 c(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,n=this.numericRefinements,r=Object.keys(n).reduce(function(r,o){var i=n[o],a={};return Object.keys(i=i||{}).forEach(function(n){var r=i[n]||[],s=[];r.forEach(function(t){e({val:t,op:n},o,"numeric")||s.push(t)}),s.length!==r.length&&(t=!0),a[n]=s}),r[o]=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 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 Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:f.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:f.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return f.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:f.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 Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:f.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:f.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return f.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:f.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 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 Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:f.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:f.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:f.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),o={};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)?o[e]=[]:o[e]=[t.slice(0,t.lastIndexOf(n))]:o[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:r({},o,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw 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)&&f.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&f.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&f.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!!this.numericRefinements[e];var r=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===n||!r)return r;var i=u(n),a=void 0!==o(this.numericRefinements[e][t],function(e){return p(e,i)});return r&&a},isTagRefined:function(e){return -1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=i(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 i(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 o=n[r];-1===e.indexOf(r)&&void 0!==o&&(t[r]=o)}),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=d.validate(this,e);if(t)throw t;var n=this,r=d._parseNumbers(e),o=Object.keys(this).reduce(function(e,t){return e[t]=n[t],e},{}),i=Object.keys(r).reduce(function(e,t){var n=void 0!==e[t],o=void 0!==r[t];return n&&!o?c(e,[t]):(o&&(e[t]=r[t]),e)},o);return new this.constructor(i)},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 o(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=d},97135:function(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]||"",l=e._getHierarchicalFacetSeparator(r),f=e._getHierarchicalRootPath(r),p=e._getHierarchicalShowParentLevel(r),d=i(e._getHierarchicalFacetSortBy(r)),h=t.every(function(e){return e.exhaustive}),m=t;return f&&(m=t.slice(f.split(l).length)),m.reduce(function(e,t,n){var r=e;if(n>0){var i=0;for(r=e;i-1});if(r){var o=r.attributes.indexOf(t),u=s(e.hierarchicalFacets,function(e){return e.name===r.name});c.hierarchicalFacets[u][o]={attribute:t,data:n,exhaustive:i.exhaustiveFacetsCount}}else{var l,f=-1!==e.disjunctiveFacets.indexOf(t),p=-1!==e.facets.indexOf(t);f&&(l=y[t],c.disjunctiveFacets[l]={name:t,data:n,exhaustive:i.exhaustiveFacetsCount},m(c.disjunctiveFacets[l],i.facets_stats,t)),p&&(l=g[t],c.facets[l]={name:t,data:n,exhaustive:i.exhaustiveFacetsCount},m(c.facets[l],i.facets_stats,t))}}),this.hierarchicalFacets=r(this.hierarchicalFacets),f.forEach(function(n){var r=t[v],a=r&&r.facets?r.facets:{},l=e.getHierarchicalFacetByName(n);Object.keys(a).forEach(function(t){var n,f=a[t];if(l){n=s(e.hierarchicalFacets,function(e){return e.name===l.name});var d=s(c.hierarchicalFacets[n],function(e){return e.attribute===t});if(-1===d)return;c.hierarchicalFacets[n][d].data=u({},c.hierarchicalFacets[n][d].data,f)}else{n=y[t];var h=i.facets&&i.facets[t]||{};c.disjunctiveFacets[n]={name:t,data:o({},f,h),exhaustive:r.exhaustiveFacetsCount},m(c.disjunctiveFacets[n],r.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(r){!c.disjunctiveFacets[n].data[r]&&e.disjunctiveFacetsRefinements[t].indexOf(p(r))>-1&&(c.disjunctiveFacets[n].data[r]=0)})}}),v++}),e.getRefinedHierarchicalFacets().forEach(function(n){var r=e.getHierarchicalFacetByName(n),i=e._getHierarchicalFacetSeparator(r),a=e.getHierarchicalRefinement(n);0===a.length||a[0].split(i).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],l=s(e.hierarchicalFacets,function(e){return e.name===r.name}),f=s(c.hierarchicalFacets[l],function(e){return e.attribute===t});if(-1!==f){var p={};if(a.length>0&&!c.persistHierarchicalRootCount){var d=a[0].split(i)[0];p[d]=c.hierarchicalFacets[l][f].data[d]}c.hierarchicalFacets[l][f].data=o(p,u,c.hierarchicalFacets[l][f].data)}}),v++})}),Object.keys(e.facetsExcludes).forEach(function(t){var n=e.facetsExcludes[t],r=g[t];c.facets[r]={name:t,data:b[t],exhaustive:i.exhaustiveFacetsCount},n.forEach(function(e){c.facets[r]=c.facets[r]||{name:t},c.facets[r].data=c.facets[r].data||{},c.facets[r].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(d(e)),this.facets=r(this.facets),this.disjunctiveFacets=r(this.disjunctiveFacets),this._state=e}function y(e,t){var n=a(e,function(e){return e.name===t});return n&&n.stats}function v(e,t,n,r,o){var i=a(o,function(e){return e.name===n}),s=i&&i.data&&i.data[r]?i.data[r]:0;return{type:t,attributeName:n,name:r,count:s,exhaustive:i&&i.exhaustive||!1}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return a(this.facets,t)||a(this.disjunctiveFacets,t)||a(this.hierarchicalFacets,t)},g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var n,r=function(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 o=f(n);return{name:n,escapedValue:o,count:r.data[n],isRefined:e._state.isFacetRefined(t,o),isExcluded:e._state.isExcludeRefined(t,n)}}):[]}if(e._state.isDisjunctiveFacet(t)){var o=a(e.disjunctiveFacets,n);return o?Object.keys(o.data).map(function(n){var r=f(n);return{name:n,escapedValue:r,count:o.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,r)}}):[]}if(e._state.isHierarchicalFacet(t)){var i=a(e.hierarchicalFacets,n);if(!i)return i;var s=e._state.getHierarchicalFacetByName(t),c=e._state._getHierarchicalFacetSeparator(s),u=p(e._state.getHierarchicalRefinement(t)[0]||"");0===u.indexOf(s.rootPath)&&(u=u.replace(s.rootPath+c,""));var l=u.split(c);return l.unshift(t),function e(t,n,r){t.isRefined=t.name===(n[r]&&n[r].trim()),t.data&&t.data.forEach(function(t){e(t,n,r+1)})}(i,l,0),i}}(this,e);if(r){var i=o({},t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),s=this;return n=Array.isArray(r)?[e]:s._state.getHierarchicalFacetByName(r.name).attributes,function e(t,n,r,i){if(i=i||0,Array.isArray(n))return t(n,r[i]);if(!n.data||0===n.data.length)return n;var a=n.data.map(function(n){return e(t,n,r,i+1)});return o({data:t(a,r[i])},n)}(function(e,t){if(i.facetOrdering){var n,r,o,a,u,f,p=s.renderingContent&&s.renderingContent.facetOrdering&&s.renderingContent.facetOrdering.values&&s.renderingContent.facetOrdering.values[t];if(p)return o=[],a=[],u=(p.order||[]).reduce(function(e,t,n){return e[t]=n,e},{}),e.forEach(function(e){var t=e.path||e.name;void 0!==u[t]?o[u[t]]=e:a.push(e)}),o=o.filter(function(e){return e}),"hidden"===(f=p.sortRemainingBy)?o:(r="alpha"===f?[["path","name"],["asc","asc"]]:[["count"],["desc"]],o.concat(l(a,r[0],r[1])))}if(Array.isArray(i.sortBy)){var d=c(i.sortBy,g.DEFAULT_SORT);return l(e,d[0],d[1])}if("function"==typeof i.sortBy)return n=i.sortBy,e.sort(n);throw Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},r,n)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?y(this.facets,e):this._state.isDisjunctiveFacet(e)?y(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach(function(r){e.facetsRefinements[r].forEach(function(o){n.push(v(e,"facet",r,o,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(r){e.facetsExcludes[r].forEach(function(o){n.push(v(e,"exclude",r,o,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(r){e.disjunctiveFacetsRefinements[r].forEach(function(o){n.push(v(e,"disjunctive",r,o,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(r){e.hierarchicalFacetsRefinements[r].forEach(function(o){var i,s,c,u,l,f,p,d;n.push((i=t.hierarchicalFacets,s=e.getHierarchicalFacetByName(r),c=e._getHierarchicalFacetSeparator(s),u=o.split(c),l=a(i,function(e){return e.name===r}),p=(f=u.reduce(function(e,t){var n=e&&a(e.data,function(e){return e.name===t});return void 0!==n?n:e},l))&&f.count||0,d=f&&f.exhaustive||!1,{type:"hierarchical",attributeName:r,name:f&&f.path||"",count:p,exhaustive:d}))})}),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=g},38502:function(e,t,n){"use strict";var r=n(15312),o=n(12985),i=n(12902).escapeFacetValue,a=n(24779),s=n(31853),c=n(79582),u=n(62202),l=n(42209),f=n(27607),p=n(57293),d=n(24815);function h(e,t,n,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+d+")"),this.setClient(e);var o=n||{};o.index=t,this.state=f.make(o),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._searchResultsOptions=r}function m(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function g(){return this.state.page}a(h,r),h.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},h.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},h.prototype.getQuery=function(){var e=this.state;return l._getHitsSearchParams(e)},h.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=l._getQueries(n.index,n),o=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),t){this.client.search(r).then(function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(null,new p(n,e.results),n)}).catch(function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(e,null,n)});return}return this.client.search(r).then(function(e){return o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),{content:new p(n,e.results),state:n,_originalResponse:e}},function(e){throw o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e})},h.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),o=s({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(l._getHitsSearchParams(r),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),i="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw Error(i);var a=this.client.initIndex(r.index);if("function"!=typeof a.findAnswers)throw Error(i);return a.findAnswers(r.query,e.queryLanguages,o)},h.prototype.searchForFacetValues=function(e,t,n,r){var o,a="function"==typeof this.client.searchForFacetValues,s="function"==typeof this.client.initIndex;if(!a&&!s&&"function"!=typeof this.client.search)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var c=this.state.setQueryParameters(r||{}),u=c.isDisjunctiveFacet(e),f=l.getSearchForFacetQuery(e,t,n,c);this._currentNbQueries++;var p=this;return a?o=this.client.searchForFacetValues([{indexName:c.index,params:f}]):s?o=this.client.initIndex(c.index).searchForFacetValues(f):(delete f.facetName,o=this.client.search([{type:"facet",facet:e,indexName:c.index,params:f}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:c,facet:e,query:t}),o.then(function(t){return p._currentNbQueries--,0===p._currentNbQueries&&p.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach(function(t){t.escapedValue=i(t.value),t.isRefined=u?c.isDisjunctiveFacetRefined(e,t.escapedValue):c.isFacetRefined(e,t.escapedValue)}),t},function(e){throw p._currentNbQueries--,0===p._currentNbQueries&&p.emit("searchQueueEmpty"),e})},h.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},h.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},h.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},h.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},h.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},h.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},h.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},h.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},h.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},h.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},h.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},h.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},h.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},h.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},h.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},h.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},h.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},h.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},h.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},h.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},h.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},h.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},h.prototype.setCurrentPage=m,h.prototype.setPage=m,h.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},h.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},h.prototype.setState=function(e){return this._change({state:f.make(e),isPageReset:!1}),this},h.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new f(e),this},h.prototype.hasRefinements=function(e){return!!c(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))},h.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},h.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},h.prototype.hasTag=function(e){return this.state.isTagRefined(e)},h.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},h.prototype.getIndex=function(){return this.state.index},h.prototype.getCurrentPage=g,h.prototype.getPage=g,h.prototype.getTags=function(){return this.state.tagRefinements},h.prototype.getRefinements=function(e){var t=[];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"})})):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},h.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},h.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},h.prototype._search=function(e){var t=this.state,n=[],r=[];e.onlyWithDerivedHelpers||(r=l._getQueries(t.index,t),n.push({state:t,queriesCount:r.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var o=this.derivedHelpers.map(function(e){var r=e.getModifiedState(t),o=r.index?l._getQueries(r.index,r):[];return n.push({state:r,queriesCount:o.length,helper:e}),e.emit("search",{state:r,results:e.lastResults}),o}),i=Array.prototype.concat.apply(r,o),a=this._queryId++;if(this._currentNbQueries++,!i.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,n,a));try{this.client.search(i).then(this._dispatchAlgoliaResponse.bind(this,n,a)).catch(this._dispatchAlgoliaError.bind(this,a))}catch(e){this.emit("error",{error:e})}},h.prototype._dispatchAlgoliaResponse=function(e,t,n){var r=this;if(!(t0},h.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}))},h.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},h.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+d+")"),this.client=e),this},h.prototype.getClient=function(){return this.client},h.prototype.derive=function(e){var t=new o(this,e);return this.derivedHelpers.push(t),t},h.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},h.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=h},45875:function(e){"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},71544:function(e){"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.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},{})}},12902:function(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(/^\\-/,"-")}}},13591:function(e){"use strict";e.exports=function(e,t){if(Array.isArray(e)){for(var n=0;n1||!i?(e[0].push(o[0]),e[1].push(o[1])):(e[0].push(i[0]),e[1].push(i[1])),e},[[],[]])}},24779:function(e){"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},29878:function(e){"use strict";e.exports=function(e,t){return e.filter(function(n,r){return t.indexOf(n)>-1&&e.indexOf(n)===r})}},31853:function(e){"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){t(e)||(e={});for(var n=1,r=arguments.length;n0}},62202:function(e){"use strict";e.exports=function(e,t){if(null===e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}},24652:function(e){"use strict";e.exports=function(e,t,n){if(!Array.isArray(e))return[];Array.isArray(n)||(n=[]);var r=e.map(function(e,n){return{criteria:t.map(function(t){return e[t]}),index:n,value:e}});return r.sort(function(e,t){for(var r=-1;++rt||r&&o||!n)return 1;if(!r&&e=n.length)return o;if("desc"===n[r])return-o;return o}}return e.index-t.index}),r.map(function(e){return e.value})}},52641:function(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 Error("The value should be a number, a parsable string or an array of those.")}},42209:function(e,t,n){"use strict";var r=n(31853);function o(e){return Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{})}var i={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:i._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(r){n.push({indexName:e,params:i._getDisjunctiveFacetSearchParams(t,r)})}),t.getRefinedHierarchicalFacets().forEach(function(r){var o=t.getHierarchicalFacetByName(r),a=t.getHierarchicalRefinement(r),s=t._getHierarchicalFacetSeparator(o);if(a.length>0&&a[0].split(s).length>1){var c=a[0].split(s).slice(0,-1).reduce(function(e,t,n){return e.concat({attribute:o.attributes[n],value:0===n?t:[e[e.length-1].value,t].join(s)})},[]);c.forEach(function(r,a){var s=i._getDisjunctiveFacetSearchParams(t,r.attribute,0===a);function u(e){return o.attributes.some(function(t){return t===e.split(":")[0]})}var l=(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},[]),f=c[a-1];a>0?s.facetFilters=l.concat(f.attribute+":"+f.value):s.facetFilters=l.length>0?l:void 0,n.push({indexName:e,params:s})})}}),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(i._getHitsHierarchicalFacetsAttributes(e)).sort(),n=i._getFacetFilters(e),a=i._getNumericFilters(e),s=i._getTagFilters(e),c={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:s};return n.length>0&&(c.facetFilters=n),a.length>0&&(c.numericFilters=a),o(r({},e.getQueryParams(),c))},_getDisjunctiveFacetSearchParams:function(e,t,n){var a=i._getFacetFilters(e,t,n),s=i._getNumericFilters(e,t),c=i._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};c.length>0&&(u.tagFilters=c);var l=e.getHierarchicalFacetByName(t);return l?u.facets=i._getDisjunctiveHierarchicalFacetAttribute(e,l,n):u.facets=t,s.length>0&&(u.numericFilters=s),a.length>0&&(u.facetFilters=a),o(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 o=e.numericRefinements[r]||{};Object.keys(o).forEach(function(e){var i=o[e]||[];t!==r&&i.forEach(function(t){if(Array.isArray(t)){var o=t.map(function(t){return r+e+t});n.push(o)}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=[],o=e.facetsRefinements||{};Object.keys(o).sort().forEach(function(e){(o[e]||[]).slice().sort().forEach(function(t){r.push(e+":"+t)})});var i=e.facetsExcludes||{};Object.keys(i).sort().forEach(function(e){(i[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 o=[];n.slice().sort().forEach(function(t){o.push(e+":"+t)}),r.push(o)}});var s=e.hierarchicalFacetsRefinements||{};return Object.keys(s).sort().forEach(function(o){var i,a,c=(s[o]||[])[0];if(void 0!==c){var u=e.getHierarchicalFacetByName(o),l=e._getHierarchicalFacetSeparator(u),f=e._getHierarchicalRootPath(u);if(t===o){if(-1===c.indexOf(l)||!f&&!0===n||f&&f.split(l).length===c.split(l).length)return;f?(a=f.split(l).length-1,c=f):(a=c.split(l).length-2,c=c.slice(0,c.lastIndexOf(l))),i=u.attributes[a]}else a=c.split(l).length-1,i=u.attributes[a];i&&r.push([i+":"+c])}}),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 o=e._getHierarchicalFacetSeparator(n),i=r.split(o).length,a=n.attributes.slice(0,i+1);return t.concat(a)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(!0===n){var o=e._getHierarchicalRootPath(t),i=0;return o&&(i=o.split(r).length),[t.attributes[i]]}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,c={facetQuery:t,facetName:e};return"number"==typeof n&&(c.maxFacetHits=n),o(r({},i._getHitsSearchParams(s),c))}};e.exports=i},47671:function(e){"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},24815:function(e){"use strict";e.exports="3.16.3"},43931:function(e){var t;t=function(){"use strict";function e(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 t(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(n);if(i in t)return Promise.resolve(e.serializable?JSON.parse(t[i]):t[i]);var a=r(),s=o&&o.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 i(e,t){return t&&Object.keys(t).forEach(function(n){e[n]=t[n](e)}),e}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var u={Read:1,Write:2,Any:3};function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t(t({},e),{},{status:n,lastUpdate:Date.now()})}function f(e){return"string"==typeof e?{protocol:"https",url:e,accept:u.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||u.Any}}var p="POST";function d(e,n,o,i){var a,s,c,u=[],p=function(e,n){if("GET"!==e.method&&(void 0!==e.data||void 0!==n.data))return JSON.stringify(Array.isArray(e.data)?e.data:t(t({},e.data),n.data))}(o,i),d=(a=t(t({},e.headers),i.headers),s={},Object.keys(a).forEach(function(e){var t=a[e];s[e.toLowerCase()]=t}),s),y=o.method,v="GET"!==o.method?{}:t(t({},o.data),i.data),b=t(t(t({"x-algolia-agent":e.userAgent.value},e.queryParameters),v),i.queryParameters),k=0,x=function t(n,r){var a,s,c,f=n.pop();if(void 0===f)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:m(u)};var v={data:p,headers:d,method:y,url:(a=o.path,s=h(b),c="".concat(f.protocol,"://").concat(f.url,"/").concat("/"===a.charAt(0)?a.substr(1):a),s.length&&(c+="?".concat(s)),c),connectTimeout:r(k,e.timeouts.connect),responseTimeout:r(k,i.timeout)},x=function(e){var t={request:v,response:e,host:f,triesLeft:n.length};return u.push(t),t},w={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw{name:"DeserializationError",message:t.message,response:e}}}(e)},onRetry:function(o){var i=x(o);return o.isTimedOut&&k++,Promise.all([e.logger.info("Retryable failure",g(i)),e.hostsCache.set(f,l(f,o.isTimedOut?3:2))]).then(function(){return t(n,r)})},onFail:function(e){throw x(e),function(e,t){var n=e.content,r=e.status,o=n;try{o=JSON.parse(n).message}catch(e){}return{name:"ApiError",message:o,status:r,transporterStackTrace:t}}(e,m(u))}};return e.requester.send(v).then(function(e){var t,n,r;return(t=e.status,e.isTimedOut||(n=e.isTimedOut,r=e.status,!n&&0==~~r)||2!=~~(t/100)&&4!=~~(t/100))?w.onRetry(e):2==~~(e.status/100)?w.onSuccess(e):w.onFail(e)})};return(c=e.hostsCache,Promise.all(n.map(function(e){return c.get(e,function(){return Promise.resolve(l(e))})})).then(function(e){var t=e.filter(function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}),o=e.filter(function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}),i=[].concat(r(t),r(o));return{getTimeout:function(e,t){return(0===o.length&&0===e?1:o.length+3+e)*t},statelessHosts:i.length>0?i.map(function(e){return f(e)}):n}})).then(function(e){return x(r(e.statelessHosts).reverse(),e.getTimeout)})}function h(e){return Object.keys(e).map(function(t){var n;return a("%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]))}).join("&")}function m(e){return e.map(function(e){return g(e)})}function g(e){var n=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return t(t({},e),{},{request:t(t({},e.request),{},{headers:t(t({},e.request.headers),n)})})}var y=function(e){var r,o,a,l,p,h,m,g,y,v,b,k,x,w=e.appId,_=(r=void 0!==e.authMode?e.authMode:s.WithinHeaders,o={"x-algolia-api-key":e.apiKey,"x-algolia-application-id":w},{headers:function(){return r===s.WithinHeaders?o:{}},queryParameters:function(){return r===s.WithinQueryParameters?o:{}}}),S=(l=(a=t(t({hosts:[{url:"".concat(w,"-dsn.algolia.net"),accept:u.Read},{url:"".concat(w,".algolia.net"),accept:u.Write}].concat(function(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}([{url:"".concat(w,"-1.algolianet.com")},{url:"".concat(w,"-2.algolianet.com")},{url:"".concat(w,"-3.algolianet.com")}]))},e),{},{headers:t(t(t({},_.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:t(t({},_.queryParameters()),e.queryParameters)})).hostsCache,p=a.logger,h=a.requester,m=a.requestsCache,g=a.responsesCache,y=a.timeouts,v=a.userAgent,b=a.hosts,k=a.queryParameters,x={hostsCache:l,logger:p,requester:h,requestsCache:m,responsesCache:g,timeouts:y,userAgent:v,headers:a.headers,queryParameters:k,hosts:b.map(function(e){return f(e)}),read:function(e,t){var r=c(t,x.timeouts.read),o=function(){return d(x,x.hosts.filter(function(e){return 0!=(e.accept&u.Read)}),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return o();var i={request:e,mappedRequestOptions:r,transporter:{queryParameters:x.queryParameters,headers:x.headers}};return x.responsesCache.get(i,function(){return x.requestsCache.get(i,function(){return x.requestsCache.set(i,o()).then(function(e){return Promise.all([x.requestsCache.delete(i),e])},function(e){return Promise.all([x.requestsCache.delete(i),Promise.reject(e)])}).then(function(e){var t=n(e,2);return t[0],t[1]})})},{miss:function(e){return x.responsesCache.set(i,e)}})},write:function(e,t){return d(x,x.hosts.filter(function(e){return 0!=(e.accept&u.Write)}),e,c(t,x.timeouts.write))}});return i({transporter:S,appId:w,addAlgoliaAgent:function(e,t){S.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([S.requestsCache.clear(),S.responsesCache.clear()]).then(function(){})}},e.methods)},v=function(e){return function(t,n){return"GET"===t.method?e.transporter.read(t,n):e.transporter.write(t,n)}},b=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},k=function(e){return function(n,r){var o=n.map(function(e){return t(t({},e),{},{params:h(e.params||{})})});return e.transporter.read({method:p,path:"1/indexes/*/queries",data:{requests:o},cacheable:!0},r)}},x=function(e){return function(n,r){return Promise.all(n.map(function(n){var o=n.params,i=o.facetName,a=o.facetQuery,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(o,["facetName","facetQuery"]);return b(e)(n.indexName,{methods:{searchForFacetValues:S}}).searchForFacetValues(i,a,t(t({},r),s))}))}},w=function(e){return function(t,n,r){return e.transporter.read({method:p,path:a("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},_=function(e){return function(t,n){return e.transporter.read({method:p,path:a("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},S=function(e){return function(t,n,r){return e.transporter.read({method:p,path:a("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},E=function(e){return function(n,r){var o=n.map(function(e){return t(t({},e),{},{threshold:e.threshold||0})});return e.transporter.read({method:p,path:"1/indexes/*/recommendations",data:{requests:o},cacheable:!0},r)}};function O(e,i,a){var c,u,l,f,p,d,h,m;return y(t(t(t({},{appId:e,apiKey:i,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,o=function(e,r){return setTimeout(function(){n.abort(),t({status:0,content:r,isTimedOut:!0})},1e3*e)},i=o(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(i),r=o(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(i),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(i),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)})}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:o(),requestsCache:o({serializable:!1}),hostsCache:function e(t){var o=r(t.caches),i=o.shift();return void 0===i?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then(function(e){return Promise.all([e,r.miss(e)])}).then(function(e){return n(e,1)[0]})},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return i.get(t,n,r).catch(function(){return e({caches:o}).get(t,n,r)})},set:function(t,n){return i.set(t,n).catch(function(){return e({caches:o}).set(t,n)})},delete:function(t){return i.delete(t).catch(function(){return e({caches:o}).delete(t)})},clear:function(){return i.clear().catch(function(){return e({caches:o}).clear()})}}}({caches:[(c={key:"".concat("4.23.2","-").concat(e)},l="algoliasearch-client-js-".concat(c.key),f=function(){return void 0===u&&(u=c.localStorage||window.localStorage),u},p=function(){return JSON.parse(f().getItem(l)||"{}")},d=function(e){f().setItem(l,JSON.stringify(e))},h=function(){var e=c.timeToLive?1e3*c.timeToLive:null,t=Object.fromEntries(Object.entries(p()).filter(function(e){return void 0!==n(e,2)[1].timestamp}));d(t),e&&d(Object.fromEntries(Object.entries(t).filter(function(t){var r=n(t,2)[1],o=(new Date).getTime();return!(r.timestamp+e2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){h();var t=JSON.stringify(e);return p()[t]}).then(function(e){return Promise.all([e?e.value:t(),void 0!==e])}).then(function(e){var t=n(e,2),o=t[0];return Promise.all([o,t[1]||r.miss(o)])}).then(function(e){return n(e,1)[0]})},set:function(e,t){return Promise.resolve().then(function(){var n=p();return n[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},f().setItem(l,JSON.stringify(n)),t})},delete:function(e){return Promise.resolve().then(function(){var t=p();delete t[JSON.stringify(e)],f().setItem(l,JSON.stringify(t))})},clear:function(){return Promise.resolve().then(function(){f().removeItem(l)})}}),o()]}),userAgent:(m={value:"Algolia for JavaScript (".concat("4.23.2",")"),add:function(e){var t="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===m.value.indexOf(t)&&(m.value="".concat(m.value).concat(t)),m}}).add({segment:"Browser",version:"lite"}),authMode:s.WithinQueryParameters}),a),{},{methods:{search:k,searchForFacetValues:x,multipleQueries:k,multipleSearchForFacetValues:x,customRequest:v,initIndex:function(e){return function(t){return b(e)(t,{methods:{search:_,searchForFacetValues:S,findAnswers:w}})}},getRecommendations:E}}))}return O.version="4.23.2",O},e.exports=t()},95766:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],s=i[1],u=new o((a+s)*3/4-s),l=0,f=s>0?a-4:a;for(n=0;n>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,s=r-o;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48834:function(e,t,n){"use strict";var r=n(95766),o=n(62333),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=a(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(C(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(C(e,ArrayBuffer)||e&&C(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(C(e,SharedArrayBuffer)||e&&C(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var o=function(e){if(s.isBuffer(e)){var t,n=0|d(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),a(e<0?0:0|d(e))}function f(e){for(var t=e.length<0?0:0|d(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||C(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(o)return r?-1:O(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(i=n=+n)!=i&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return -1;n=e.length-1}else if(n<0){if(!o)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var f=!0,p=0;p239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:(192&(i=e[o+1]))==128&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,o,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function w(e,t,n,r,o,i){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function _(e,t,n,r,i){return t=+t,n>>>=0,i||w(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,i){return t=+t,n>>>=0,i||w(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return l(e)},s.allocUnsafeSlow=function(e){return l(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(C(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),C(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);or.length?s.from(i).copy(r,o):Uint8Array.prototype.set.call(r,i,o);else if(s.isBuffer(i))i.copy(r,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=i.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,o){if(C(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,c=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,s,c,u,l,f,p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var d=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a>8,o.push(n%256),o.push(r);return o}(e,this.length-l),this,l,f);default:if(d)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e],o=1,i=0;++i>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||k(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return _(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return _(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!o){if(n>56319||a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return i}function j(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,n,r){for(var o=0;o=t.length)&&!(o>=e.length);++o)t[o+n]=e[o];return o}function C(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},5081:function(e,t,n){"use strict";n.d(t,{Nu:function(){return c},Un:function(){return u},Zs:function(){return m},ks:function(){return h},pE:function(){return s},pr:function(){return o},q9:function(){return a},rY:function(){return r},vH:function(){return f},zU:function(){return i}});var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null==e?[].concat(t):Array.isArray(e)?e:[].concat(e)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null==e?!!t:"boolean"==typeof e?e:!!e},i=function e(t,n){var r;return(n=null!==(r=n)&&void 0!==r?r:function(){},null==t)?e(n):"function"==typeof t?t:e(n)},a=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==t||Number.isNaN(t=Number(t))?e(n):t},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.max(a(e,t),0)},c=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof(t=a(t,n))&&isFinite(t)?t:e(n)},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.max(c(e,t),0)},l=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t=e=c(e,n))<0?Math.ceil(t):Math.floor(t)},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Math.max(l(e,t),1)};function p(e){return(p="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)}var d=function(e){if("object"!==p(e)||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},h=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e(n):d(t)?t:e(n)},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null==e?String(t):"string"==typeof e?e:String(e)}},3236:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())}},54225:function(e,t,n){"use strict";n.r(t),n.d(t,{FOCUS_ALLOW:function(){return i},FOCUS_AUTO:function(){return a},FOCUS_DISABLED:function(){return o},FOCUS_GROUP:function(){return r},FOCUS_NO_AUTOFOCUS:function(){return s}});var r="data-focus-lock",o="data-focus-lock-disabled",i="data-no-focus-lock",a="data-autofocus-inside",s="data-no-autofocus"},7413:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(41658),o=n(46774),i=n(74745),a=n(76025),s=function(e,t){return void 0===t&&(t=(0,a.v)((0,i.Xi)(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&(0,o.K)(e).some(function(e){var n;return(0,r.r3)(e,t)||(n=t,!!(0,i.qo)(e.querySelectorAll("iframe")).some(function(e){return e===n}))})}},75226:function(e,t,n){"use strict";n.d(t,{U:function(){return s}});var r=n(54225),o=n(41658),i=n(74745),a=n(76025),s=function(e){void 0===e&&(e=document);var t=(0,a.v)(e);return!!t&&(0,i.qo)(e.querySelectorAll("[".concat(r.FOCUS_ALLOW,"]"))).some(function(e){return(0,o.r3)(e,t)})}},55243:function(e,t,n){"use strict";n.d(t,{F:function(){return y}});var r=n(93854),o=function(e,t){return(0,r.MH)(e)&&e.name&&t.filter(r.MH).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},i=function(e){var t=new Set;return e.forEach(function(n){return t.add(o(n,e))}),e.filter(function(e){return t.has(e)})},a=function(e){return e[0]&&e.length>1?o(e[0],e):e[0]},s=function(e,t){return e.indexOf(o(t,e))},c="NEW_FOCUS",u=function(e,t,n,o,a){var u=e.length,l=e[0],f=e[u-1],p=(0,r.Z9)(o);if(!(o&&e.indexOf(o)>=0)){var d=void 0!==o?n.indexOf(o):-1,h=a?n.indexOf(a):d,m=a?e.indexOf(a):-1;if(-1===d)return -1!==m?m:c;if(-1===m)return c;var g=d-h,y=n.indexOf(l),v=n.indexOf(f),b=i(n),k=(void 0!==o?b.indexOf(o):-1)-(a?b.indexOf(a):d);if(!g&&m>=0||0===t.length)return m;var x=s(e,t[0]),w=s(e,t[t.length-1]);if(d<=y&&p&&Math.abs(g)>1)return w;if(d>=v&&p&&Math.abs(g)>1)return x;if(g&&Math.abs(k)>1)return m;if(d<=y)return w;if(d>v)return x;if(g)return Math.abs(g)>1?m:(u+m+g)%u}},l=n(41658),f=n(46774),p=n(74745),d=function(e,t,n){var o=e.map(function(e){return e.node}),i=(0,l.vA)(o.filter(function(e){var t,o=null===(t=(0,r.pY)(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==o&&"false"!==o||n.indexOf(e)>=0}));return i&&i.length?a(i):a((0,l.vA)(t))},h=n(76025),m=n(70537),g=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(r.$K)},y=function(e,t){var n=(0,h.v)((0,p._2)(e).length>0?document:(0,p.Xi)(e).ownerDocument),o=(0,f.K)(e).filter(r.IS),i=(0,m.V0)(n||e,e,o),a=new Map,s=(0,l.pw)(o,a),y=s.filter(function(e){var t=e.node;return(0,r.IS)(t)});if(y[0]){var v=(0,l.pw)([i],a).map(function(e){return e.node}),b=g(v,y),k=b.map(function(e){return e.node}),x=b.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),w=u(k,x,v,n,t);if(w===c){var _=d(s,x,(0,m.o$)(o,a))||d(s,k,(0,m.o$)(o,a));return _?{node:_}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===w?w:b[w]}}},68557:function(e,t,n){"use strict";n.d(t,{T:function(){return c}});var r=n(46774),o=n(93854),i=n(70537),a=n(46813),s=n(49698),c=function(e){var t=(0,r.K)(e).filter(o.IS),n=(0,i.V0)(e,e,t),c=(0,a.v)((0,s.s)([n],!0),!0,!0),u=(0,s.s)(t,!1);return c.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:u.indexOf(t)>=0,guard:(0,o.Z9)(t)}})}},26095:function(e,t,n){"use strict";n.r(t),n.d(t,{captureFocusRestore:function(){return u.T},constants:function(){return p},expandFocusableNodes:function(){return s.T},focusFirstElement:function(){return l.w4},focusInside:function(){return o.S},focusIsHidden:function(){return i.U},focusLastElement:function(){return l.fW},focusNextElement:function(){return l.pf},focusPrevElement:function(){return l.mX},focusSolver:function(){return a.F},getFocusableNodes:function(){return f.pw},getRelativeFocusable:function(){return l.hX},getTabbableNodes:function(){return f.dH},moveFocusInside:function(){return c.L}});var r=n(54225),o=n(7413),i=n(75226),a=n(55243),s=n(68557),c=n(19096),u=n(82091),l=n(55632),f=n(41658),p=r,d=c.L;t.default=d},19096:function(e,t,n){"use strict";n.d(t,{L:function(){return s}});var r=n(3236),o=n(55243),i=0,a=!1,s=function(e,t,n){void 0===n&&(n={});var s=(0,o.F)(e,t);if(!a&&s){if(i>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),a=!0,setTimeout(function(){a=!1},1);return}i++,(0,r.v)(s.node,n.focusOptions),i--}}},82091:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(41658);function o(e){if(!e)return null;var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var i=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:o(n),parent:o(n.parentElement),left:o(n.previousElementSibling),right:o(n.nextElementSibling)}),n=n.parentElement;return{element:o(e),stack:t,ownerDocument:e.ownerDocument}},a=function(e){if(e)for(var t,n,o,i,a,s=e.stack,c=e.ownerDocument,u=new Map,l=0;l0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},a=function(e){return e.parentNode?a(e.parentNode):e},s=function(e){return(0,o._2)(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(r.FOCUS_GROUP);return e.push.apply(e,n?i((0,o.qo)(a(t).querySelectorAll("[".concat(r.FOCUS_GROUP,'="').concat(n,'"]:not([').concat(r.FOCUS_DISABLED,'="disabled"])')))):[t]),e},[])}},74745:function(e,t,n){"use strict";n.d(t,{Xi:function(){return i},_2:function(){return o},qo:function(){return r}});var r=function(e){for(var t=Array(e.length),n=0;n=0)return a}return!1},s=function(e,t,n){var i=(0,o._2)(e),s=(0,o._2)(t),c=i[0],u=!1;return s.filter(Boolean).forEach(function(e){u=a(u||e,e)||u,n.filter(Boolean).forEach(function(e){var t=a(c,e);t&&(u=!u||(0,r.r3)(t,u)?t:a(t,u))})}),u},c=function(e,t){return e.reduce(function(e,n){return e.concat((0,r.ir)(n,t))},[])}},46813:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=n(74745),o=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),o=n-r,i=e.index-t.index;if(o){if(!n)return 1;if(!r)return -1}return o||i},i=function(e,t,n){return(0,r.qo)(e).map(function(e,t){var r=e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex;return{node:e,index:t,tabIndex:n&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex>=0}).sort(o)}},49698:function(e,t,n){"use strict";n.d(t,{s:function(){return u},B:function(){return l}});var r=n(54225),o=n(74745),i="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",a="".concat(i,", [data-focus-guard]"),s=function(e,t){return(0,o.qo)((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?a:i)?[n]:[],s(n))},[])},c=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?u([e.contentDocument.body],t):[e]},u=function(e,t){return e.reduce(function(e,n){var r,a=s(n,t),u=(r=[]).concat.apply(r,a.map(function(e){return c(e,t)}));return e.concat(u,n.parentNode?(0,o.qo)(n.parentNode.querySelectorAll(i)).filter(function(e){return e===n}):[])},[])},l=function(e){var t=e.querySelectorAll("[".concat(r.FOCUS_AUTO,"]"));return(0,o.qo)(t).map(function(e){return u([e])}).reduce(function(e,t){return e.concat(t)},[])}},73463:function(e,t,n){"use strict";var r=n(73887),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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 c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=c(t),m=c(n),g=0;g>1,l=-7,f=n?o-1:0,p=n?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=u}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<>1,p=23===o?5960464477539062e-23:0,d=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=p/c:t+=p*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<0;e[n+d]=255&a,d+=h,a/=256,u-=8);e[n+d-h]|=128*m}},61353:function(e,t){"use strict";!function(){function e(e){this.string=e;for(var t=[0],n=0;n