forked from WebKit/Speedometer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path553-29fd8c03a09c7b37.js
More file actions
32 lines (32 loc) · 44.3 KB
/
Copy path553-29fd8c03a09c7b37.js
File metadata and controls
32 lines (32 loc) · 44.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[553],{2599:function(e,t,r){"use strict";var n,a,o,i;/**
* @remix-run/router v1.6.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Ep:function(){return f},J0:function(){return c},RQ:function(){return x},WK:function(){return R},Zn:function(){return b},Zq:function(){return w},aU:function(){return n},cP:function(){return m},fp:function(){return g},pC:function(){return S},q_:function(){return u}}),(o=n||(n={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let l="popstate";function u(e){return void 0===e&&(e={}),function(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,d=n.Pop,m=null,g=_();function _(){return(u.state||{idx:null}).idx}function v(){d=n.Pop;let e=_(),t=null==e?null:e-g;g=e,m&&m({action:d,location:y.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:f(e);return c(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==g&&(g=0,u.replaceState(s({},u.state,{idx:g}),""));let y={get action(){return d},get location(){return e(o,u)},listen(e){if(m)throw Error("A history only accepts one active listener");return o.addEventListener(l,v),m=e,()=>{o.removeEventListener(l,v),m=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){d=n.Push;let a=h(y.location,e,t);r&&r(a,e);let s=p(a,g=_()+1),l=y.createHref(a);try{u.pushState(s,"",l)}catch(e){o.location.assign(l)}i&&m&&m({action:d,location:y.location,delta:1})},replace:function(e,t){d=n.Replace;let a=h(y.location,e,t);r&&r(a,e);let o=p(a,g=_()),s=y.createHref(a);u.replaceState(o,"",s),i&&m&&m({action:d,location:y.location,delta:0})},go:e=>u.go(e)};return y}(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=m(e.location.hash.substr(1));return h("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:f(t))},function(e,t){d("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function c(e,t){if(!1===e||null==e)throw Error(t)}function d(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function h(e,t,r,n){return void 0===r&&(r=null),s({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function m(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function g(e,t,r){void 0===r&&(r="/");let n=b(("string"==typeof t?m(t):t).pathname||"/",r);if(null==n)return null;let a=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{let s={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};s.relativePath.startsWith("/")&&(c(s.relativePath.startsWith(a),'Absolute route path "'+s.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(a.length));let l=x([a,s.relativePath]),u=n.concat(s);if(t.children&&t.children.length>0&&(c(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),e(t.children,r,u,l)),null!=t.path||t.index){var d;let e,n;r.push({path:l,score:(d=t.index,n=(e=l.split("/")).length,e.some(v)&&(n+=-2),d&&(n+=2),e.filter(e=>!v(e)).reduce((e,t)=>e+(_.test(t)?3:""===t?1:10),n)),routesMeta:u})}};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let s=e(a.join("/")),l=[];return l.push(...s.map(e=>""===e?i:[i,e].join("/"))),o&&l.push(...s),l.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);!function(e){e.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)})}(a);let o=null;for(let e=0;null==o&&e<a.length;++e)o=function(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],s=e===r.length-1,l="/"===a?t:t.slice(a.length)||"/",u=function(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),d("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(n.push(t),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((e,t,r)=>{if("*"===t){let e=s[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(r){return d(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(s[r]||"",t),e},{}),pathname:o,pathnameBase:i,pattern:e}}({path:i.relativePath,caseSensitive:i.caseSensitive,end:s},l);if(!u)return null;Object.assign(n,u.params);let c=i.route;o.push({params:n,pathname:x([a,u.pathname]),pathnameBase:E(x([a,u.pathnameBase])),route:c}),"/"!==u.pathnameBase&&(a=x([a,u.pathnameBase]))}return o}(a[e],function(e){try{return decodeURI(e)}catch(t){return d(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(n));return o}(i=a||(a={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let _=/^:\w+$/,v=e=>"*"===e;function b(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function y(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t)+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function w(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function S(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=m(e):(c(!(a=s({},e)).pathname||!a.pathname.includes("?"),y("?","pathname","search",a)),c(!a.pathname||!a.pathname.includes("#"),y("#","pathname","hash",a)),c(!a.search||!a.search.includes("#"),y("#","search","hash",a)));let i=""===e||""===a.pathname,l=i?"/":a.pathname;if(n||null==l)o=r;else{let e=t.length-1;if(l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){let r;void 0===t&&(t="/");let{pathname:n,search:a="",hash:o=""}="string"==typeof e?m(e):e;return{pathname:n?n.startsWith("/")?n:(r=t.replace(/\/+$/,"").split("/"),n.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"):t,search:C(a),hash:P(o)}}(a,o),d=l&&"/"!==l&&l.endsWith("/"),p=(i||"."===l)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(d||p)&&(u.pathname+="/"),u}let x=e=>e.join("/").replace(/\/\/+/g,"/"),E=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),C=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",P=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function R(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,Symbol("deferred")},4184:function(e,t){var r;/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var i=a.apply(null,r);i&&e.push(i)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0!==(r=(function(){return a}).apply(t,[]))&&(e.exports=r)}()},3740:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return v}});let n=r(8754),a=r(1757),o=a._(r(7294)),i=n._(r(2636)),s=r(7757),l=r(3735),u=r(3341);r(4210);let c=n._(r(7746)),d={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e){return void 0!==e.default}function h(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function f(e,t,r,n,a,o,i){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===r&&o(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,a=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>a,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{a=!0,t.stopPropagation()}})}(null==a?void 0:a.current)&&a.current(e)}})}function m(e){let[t,r]=o.version.split("."),n=parseInt(t,10),a=parseInt(r,10);return n>18||18===n&&a>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,o.forwardRef)((e,t)=>{let{imgAttributes:r,heightInt:n,widthInt:a,qualityInt:i,className:s,imgStyle:l,blurStyle:u,isLazy:c,fetchPriority:d,fill:p,placeholder:h,loading:g,srcString:_,config:v,unoptimized:b,loader:y,onLoadRef:w,onLoadingCompleteRef:S,setBlurComplete:x,setShowAltText:E,onLoad:C,onError:P,...R}=e;return g=c?"lazy":g,o.default.createElement(o.default.Fragment,null,o.default.createElement("img",{...R,...m(d),loading:g,width:a,height:n,decoding:"async","data-nimg":p?"fill":"1",className:s,style:{...l,...u},...r,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(P&&(e.src=e.src),e.complete&&f(e,_,h,w,S,x,b))},[_,h,w,S,x,P,b,t]),onLoad:e=>{let t=e.currentTarget;f(t,_,h,w,S,x,b)},onError:e=>{E(!0),"blur"===h&&x(!0),P&&P(e)}}))}),_=(0,o.forwardRef)((e,t)=>{var r;let n,a,{src:f,sizes:_,unoptimized:v=!1,priority:b=!1,loading:y,className:w,quality:S,width:x,height:E,fill:C,style:P,onLoad:R,onLoadingComplete:O,placeholder:k="empty",blurDataURL:I,fetchPriority:U,layout:j,objectFit:B,objectPosition:A,lazyBoundary:M,lazyRoot:N,...L}=e,$=(0,o.useContext)(u.ImageConfigContext),W=(0,o.useMemo)(()=>{let e=d||$||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[$]),T=L.loader||c.default;delete L.loader;let F="__next_img_default"in T;if(F){if("custom"===W.loader)throw Error('Image with src "'+f+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=T;T=t=>{let{config:r,...n}=t;return e(n)}}if(j){"fill"===j&&(C=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];e&&(P={...P,...e});let t={responsive:"100vw",fill:"100vw"}[j];t&&!_&&(_=t)}let z="",D=h(x),J=h(E);if("object"==typeof(r=f)&&(p(r)||void 0!==r.src)){let e=p(f)?f.default:f;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(n=e.blurWidth,a=e.blurHeight,I=I||e.blurDataURL,z=e.src,!C){if(D||J){if(D&&!J){let t=D/e.width;J=Math.round(e.height*t)}else if(!D&&J){let t=J/e.height;D=Math.round(e.width*t)}}else D=e.width,J=e.height}}let q=!b&&("lazy"===y||void 0===y);(!(f="string"==typeof f?f:z)||f.startsWith("data:")||f.startsWith("blob:"))&&(v=!0,q=!1),W.unoptimized&&(v=!0),F&&f.endsWith(".svg")&&!W.dangerouslyAllowSVG&&(v=!0),b&&(U="high");let[H,V]=(0,o.useState)(!1),[K,G]=(0,o.useState)(!1),Q=h(S),Z=Object.assign(C?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:B,objectPosition:A}:{},K?{}:{color:"transparent"},P),X="blur"===k&&I&&!H?{backgroundSize:Z.objectFit||"cover",backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,s.getImageBlurSvg)({widthInt:D,heightInt:J,blurWidth:n,blurHeight:a,blurDataURL:I,objectFit:Z.objectFit})+'")'}:{},Y=function(e){let{config:t,src:r,unoptimized:n,width:a,quality:o,sizes:i,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:a}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:a.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:a,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let o=[...new Set([t,2*t].map(e=>a.find(t=>t>=e)||a[a.length-1]))];return{widths:o,kind:"x"}}(t,a,i),c=l.length-1;return{sizes:i||"w"!==u?i:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:o,width:l[c]})}}({config:W,src:f,unoptimized:v,width:D,quality:Q,sizes:_,loader:T}),ee=f,et=(0,o.useRef)(R);(0,o.useEffect)(()=>{et.current=R},[R]);let er=(0,o.useRef)(O);(0,o.useEffect)(()=>{er.current=O},[O]);let en={isLazy:q,imgAttributes:Y,heightInt:J,widthInt:D,qualityInt:Q,className:w,imgStyle:Z,blurStyle:X,loading:y,config:W,fetchPriority:U,fill:C,unoptimized:v,placeholder:k,loader:T,srcString:ee,onLoadRef:et,onLoadingCompleteRef:er,setBlurComplete:V,setShowAltText:G,...L};return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...en,ref:t}),b?o.default.createElement(i.default,null,o.default.createElement("link",{key:"__nimg-"+Y.src+Y.srcSet+Y.sizes,rel:"preload",as:"image",href:Y.srcSet?void 0:Y.src,imageSrcSet:Y.srcSet,imageSizes:Y.sizes,crossOrigin:L.crossOrigin,...m(U)})):null)}),v=_;("function"==typeof t.default||"object"==typeof 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)},7757:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:a,blurDataURL:o,objectFit:i}=e,s=n||t,l=a||r,u=o.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return s&&l?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+s+" "+l+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(n&&a?"1":"20")+"'/%3E"+u+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+o+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===i?"xMidYMid":"cover"===i?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},7746:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:a}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(a||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},5876:function(e){e.exports={"article-header":"article_article-header__aFonI","article-body":"article_article-body__zbhGt","article-image-container":"article_article-image-container__Vs1gi","article-image":"article_article-image__QAQGz","article-image-captions":"article_article-image-captions__R_TrA","article-image-tag":"article_article-image-tag__T7KXw",breaking:"article_breaking__3WKde",watch:"article_watch__UBkv8","article-title":"article_article-title__qidFB","article-content":"article_article-content__Sd33K","article-list":"article_article-list__G3YX5","article-list-item":"article_article-list-item__fB_Hi",horizontal:"article_horizontal__2jCSZ",vertical:"article_vertical__LNAI_",bullets:"article_bullets__mK5mB","article-hero":"article_article-hero__tLQFH","article-list-content":"article_article-list-content__5eDYb"}},7219:function(e){e.exports={button:"button_button__BKlHi","primary-button":"button_primary-button__Xa9V5","secondary-button":"button_secondary-button__7rn4_",dark:"button_dark__mjt1H"}},325:function(e){e.exports={dialog:"dialog_dialog__GwJzu",open:"dialog_open__2RCpP","dialog-close-button":"dialog_dialog-close-button__zvPQi","dialog-close-button-icon":"dialog_dialog-close-button-icon__0YEEx","dialog-header":"dialog_dialog-header__S1D_d","dialog-body":"dialog_dialog-body__qTeAd","dialog-item":"dialog_dialog-item__0z8de"}},1946:function(e){e.exports={dropdown:"dropdown_dropdown__XrNBJ","dropdown-toggle":"dropdown_dropdown-toggle__CgOMP","dropdown-label":"dropdown_dropdown-label__O9P1W","dropdown-label-text":"dropdown_dropdown-label-text__lsZmu","dropdown-content":"dropdown_dropdown-content__sAKN6"}},286:function(e){e.exports={"page-footer":"footer_page-footer__lqRFO","footer-row":"footer_footer-row__QQatE","footer-column-left":"footer_footer-column-left__VeiBc","footer-column-center":"footer_footer-column-center__qoN6c","footer-column-right":"footer_footer-column-right__63mq0","footer-links":"footer_footer-links__OP9Pm","footer-links-list":"footer_footer-links-list__6AWGf","footer-links-item":"footer_footer-links-item__vCA_m"}},6759:function(e){e.exports={"page-header":"header_page-header__gk6CM","page-header-title":"header_page-header-title__53qVm"}},2119:function(e){e.exports={"icons-group":"icons-group_icons-group__VE7O4","icons-group-list":"icons-group_icons-group-list__0pguN","icons-group-item":"icons-group_icons-group-item__0tIGX","group-icon":"icons-group_group-icon__HX2wM","group-icon-small":"icons-group_group-icon-small__R8uyO","group-icon-medium":"icons-group_group-icon-medium__b8EyF"}},6164:function(e){e.exports={preview:"layout_preview__NlEFs","no-scroll":"layout_no-scroll__tLJ_N",page:"layout_page__pQiCc","page-main":"layout_page-main__UOv3z",row:"layout_row__7Fayx",column:"layout_column__rCWEJ","columns-1":"layout_columns-1__8Suxt","columns-2-balanced":"layout_columns-2-balanced__jFUM3","columns-3-balanced":"layout_columns-3-balanced__XHdix","columns-4-balanced":"layout_columns-4-balanced__p1FBB","columns-3-wide":"layout_columns-3-wide__m28V8","columns-3-narrow":"layout_columns-3-narrow__hVhsc","columns-wrap":"layout_columns-wrap__rmq4_","grid-container":"layout_grid-container__v6mKw","grid-wrap":"layout_grid-wrap__qw9XD","grid-item":"layout_grid-item__t0016","row-header":"layout_row-header__8h_y0"}},9569:function(e){e.exports={message:"message_message__yLfSN",open:"message_open__6HWEL","message-close-button":"message_message-close-button__as5L3","message-close-button-icon":"message_message-close-button-icon__R7gTR","message-header":"message_message-header__kueQi","message-body":"message_message-body__Z_hlT","message-description":"message_message-description__O5SzP"}},4729:function(e){e.exports={"page-navigation":"nav_page-navigation__Rx1dP","page-navigation-row":"nav_page-navigation-row__4oEzg","page-navigation-column-left":"nav_page-navigation-column-left__FOOZj","page-navigation-column-right":"nav_page-navigation-column-right__gZwpK","page-navigation-logo":"nav_page-navigation-logo__PHu6g","page-navigation-button":"nav_page-navigation-button__HTODI","nav-button":"nav_nav-button__S2I_4"}},3613:function(e){e.exports={navbar:"navbar_navbar__M0bXN","navbar-toggle":"navbar_navbar-toggle__qGjf0","navbar-label":"navbar_navbar-label__9yIGo","navbar-label-icon":"navbar_navbar-label-icon__YiCqN","navbar-content":"navbar_navbar-content__w7OV_","navbar-list":"navbar_navbar-list__XiPZu","navbar-item":"navbar_navbar-item__4EbaJ","navbar-dropdown-item":"navbar_navbar-dropdown-item__PPBNC",active:"navbar_active__4uj98","navbar-active-path":"navbar_navbar-active-path__Ws0rX","navbar-icons":"navbar_navbar-icons__OIfny"}},4422:function(e){e.exports={sitemap:"sitemap_sitemap__XrPxQ",active:"sitemap_active__22Zl_","sitemap-list":"sitemap_sitemap-list__wxo8L","sitemap-item":"sitemap_sitemap-item__njypX","sitemap-header":"sitemap_sitemap-header__SUHsR","sitemap-sublist":"sitemap_sitemap-sublist__nBF4Z","sitemap-subitem":"sitemap_sitemap-subitem__L8AXm"}},5964:function(e){e.exports={toast:"toast_toast__7kLaV",open:"toast_open__GTH_j","toast-close-button":"toast_toast-close-button__0wO6P","toast-close-button-icon":"toast_toast-close-button-icon__0uKYi","toast-header":"toast_toast-header__4fyvk","toast-body":"toast_toast-body__e4ejU","toast-description":"toast_toast-description__zn1NO","toast-actions":"toast_toast-actions__Yds5Y","toast-actions-button":"toast_toast-actions-button__ME8PN"}},7626:function(e){e.exports={"toggle-outer":"toggle_toggle-outer__qYdt3","toggle-description":"toggle_toggle-description__hzySl","toggle-container":"toggle_toggle-container__ejsrw",label:"toggle_label__HSGIE",switch:"toggle_switch__ibKvm"}},9008:function(e,t,r){e.exports=r(2636)},5675:function(e,t,r){e.exports=r(3740)},9655:function(e,t,r){"use strict";r.d(t,{OL:function(){return v},UT:function(){return f},rU:function(){return _}});var n,a,o,i,s=r(7294),l=r(9250),u=r(2599);/**
* React Router DOM v6.11.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}let p=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],h=["aria-current","caseSensitive","className","end","style","to","children"];function f(e){let{basename:t,children:r,window:n}=e,a=s.useRef();null==a.current&&(a.current=(0,u.q_)({window:n,v5Compat:!0}));let o=a.current,[i,c]=s.useState({action:o.action,location:o.location});return s.useLayoutEffect(()=>o.listen(c),[o]),s.createElement(l.F0,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:o})}let m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,g=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_=s.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:h,target:f,to:_,preventScrollReset:v}=e,b=d(e,p),{basename:y}=s.useContext(l.Us),w=!1;if("string"==typeof _&&g.test(_)&&(r=_,m))try{let e=new URL(window.location.href),t=new URL(_.startsWith("//")?e.protocol+_:_),r=(0,u.Zn)(t.pathname,y);t.origin===e.origin&&null!=r?_=r+t.search+t.hash:w=!0}catch(e){}let S=(0,l.oQ)(_,{relative:a}),x=function(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i}=void 0===t?{}:t,c=(0,l.s0)(),d=(0,l.TH)(),p=(0,l.WU)(e,{relative:i});return s.useCallback(t=>{if(0===t.button&&(!r||"_self"===r)&&!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)){t.preventDefault();let r=void 0!==n?n:(0,u.Ep)(d)===(0,u.Ep)(p);c(e,{replace:r,state:a,preventScrollReset:o,relative:i})}},[d,c,p,n,a,r,e,o,i])}(_,{replace:i,state:h,target:f,preventScrollReset:v,relative:a});return s.createElement("a",c({},b,{href:r||S,onClick:w||o?n:function(e){n&&n(e),e.defaultPrevented||x(e)},ref:t,target:f}))}),v=s.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:u,to:p,children:f}=e,m=d(e,h),g=(0,l.WU)(p,{relative:m.relative}),v=(0,l.TH)(),b=s.useContext(l.FR),{navigator:y}=s.useContext(l.Us),w=y.encodeLocation?y.encodeLocation(g).pathname:g.pathname,S=v.pathname,x=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;a||(S=S.toLowerCase(),x=x?x.toLowerCase():null,w=w.toLowerCase());let E=S===w||!i&&S.startsWith(w)&&"/"===S.charAt(w.length),C=null!=x&&(x===w||!i&&x.startsWith(w)&&"/"===x.charAt(w.length));r="function"==typeof o?o({isActive:E,isPending:C}):[o,E?"active":null,C?"pending":null].filter(Boolean).join(" ");let P="function"==typeof u?u({isActive:E,isPending:C}):u;return s.createElement(_,c({},m,{"aria-current":E?n:void 0,className:r,ref:t,style:P,to:p}),"function"==typeof f?f({isActive:E,isPending:C}):f)});(n=o||(o={})).UseScrollRestoration="useScrollRestoration",n.UseSubmitImpl="useSubmitImpl",n.UseFetcher="useFetcher",(a=i||(i={})).UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"},2582:function(e,t,r){"use strict";r.d(t,{fO:function(){return f}});var n=r(7294),a=r(9655),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},i="",s=null,l=null,u=null;function c(){i="",null!==s&&s.disconnect(),null!==l&&(window.clearTimeout(l),l=null)}function d(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)&&!e.hasAttribute("disabled")||["A","AREA"].includes(e.tagName)&&e.hasAttribute("href")}function p(){var e=null;if("#"===i)e=document.body;else{var t=i.replace("#","");null===(e=document.getElementById(t))&&"#top"===i&&(e=document.body)}if(null!==e){u(e);var r=e.getAttribute("tabindex");return null!==r||d(e)||e.setAttribute("tabindex",-1),e.focus({preventScroll:!0}),null!==r||d(e)||(e.blur(),e.removeAttribute("tabindex")),c(),!0}return!1}function h(e){return n.forwardRef(function(t,r){var d="";"string"==typeof t.to&&t.to.includes("#")?d="#"+t.to.split("#").slice(1).join("#"):"object"==typeof t.to&&"string"==typeof t.to.hash&&(d=t.to.hash);var h={};e===a.OL&&(h.isActive=function(e,t){return e&&e.isExact&&t.hash===d});var f=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}(t,["scroll","smooth","timeout","elementId"]);return n.createElement(e,o({},h,f,{onClick:function(e){if(c(),i=t.elementId?"#"+t.elementId:d,t.onClick&&t.onClick(e),""!==i&&!e.defaultPrevented&&0===e.button&&(!t.target||"_self"===t.target)&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){var r;u=t.scroll||function(e){return t.smooth?e.scrollIntoView({behavior:"smooth"}):e.scrollIntoView()},r=t.timeout,window.setTimeout(function(){!1===p()&&(null===s&&(s=new MutationObserver(p)),s.observe(document,{attributes:!0,childList:!0,subtree:!0}),l=window.setTimeout(function(){c()},r||1e4))},0)}},ref:r}),t.children)})}var f=h(a.rU);h(a.OL)},9250:function(e,t,r){"use strict";r.d(t,{AW:function(){return O},F0:function(){return k},FR:function(){return h},TH:function(){return y},Us:function(){return f},WU:function(){return x},Z5:function(){return I},oQ:function(){return v},s0:function(){return S}});var n,a,o,i,s,l,u=r(7294),c=r(2599);/**
* React Router v6.11.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let p=u.createContext(null),h=u.createContext(null),f=u.createContext(null),m=u.createContext(null),g=u.createContext({outlet:null,matches:[],isDataRoute:!1}),_=u.createContext(null);function v(e,t){let{relative:r}=void 0===t?{}:t;b()||(0,c.J0)(!1);let{basename:n,navigator:a}=u.useContext(f),{hash:o,pathname:i,search:s}=x(e,{relative:r}),l=i;return"/"!==n&&(l="/"===i?n:(0,c.RQ)([n,i])),a.createHref({pathname:l,search:s,hash:o})}function b(){return null!=u.useContext(m)}function y(){return b()||(0,c.J0)(!1),u.useContext(m).location}function w(e){u.useContext(f).static||u.useLayoutEffect(e)}function S(){let{isDataRoute:e}=u.useContext(g);return e?function(){let e;let{router:t}=(i.UseNavigateStable,(e=u.useContext(p))||(0,c.J0)(!1),e),r=R(s.UseNavigateStable),n=u.useRef(!1);return w(()=>{n.current=!0}),u.useCallback(function(e,a){void 0===a&&(a={}),n.current&&("number"==typeof e?t.navigate(e):t.navigate(e,d({fromRouteId:r},a)))},[t,r])}():function(){b()||(0,c.J0)(!1);let{basename:e,navigator:t}=u.useContext(f),{matches:r}=u.useContext(g),{pathname:n}=y(),a=JSON.stringify((0,c.Zq)(r).map(e=>e.pathnameBase)),o=u.useRef(!1);return w(()=>{o.current=!0}),u.useCallback(function(r,i){if(void 0===i&&(i={}),!o.current)return;if("number"==typeof r){t.go(r);return}let s=(0,c.pC)(r,JSON.parse(a),n,"path"===i.relative);"/"!==e&&(s.pathname="/"===s.pathname?e:(0,c.RQ)([e,s.pathname])),(i.replace?t.replace:t.push)(s,i.state,i)},[e,t,a,n])}()}function x(e,t){let{relative:r}=void 0===t?{}:t,{matches:n}=u.useContext(g),{pathname:a}=y(),o=JSON.stringify((0,c.Zq)(n).map(e=>e.pathnameBase));return u.useMemo(()=>(0,c.pC)(e,JSON.parse(o),a,"path"===r),[e,o,a,r])}let E=u.createElement(function(){var e;let t,r,n;let a=(r=u.useContext(_),s.UseRouteError,(t=u.useContext(h))||(0,c.J0)(!1),n=R(s.UseRouteError),r||(null==(e=t.errors)?void 0:e[n])),o=(0,c.WK)(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),i=a instanceof Error?a.stack:null;return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},o),i?u.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},i):null,null)},null);class C extends u.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?u.createElement(g.Provider,{value:this.props.routeContext},u.createElement(_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function P(e){let{routeContext:t,match:r,children:n}=e,a=u.useContext(p);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),u.createElement(g.Provider,{value:t},n)}function R(e){let t;let r=((t=u.useContext(g))||(0,c.J0)(!1),t),n=r.matches[r.matches.length-1];return n.route.id||(0,c.J0)(!1),n.route.id}function O(e){(0,c.J0)(!1)}function k(e){let{basename:t="/",children:r=null,location:n,navigationType:a=c.aU.Pop,navigator:o,static:i=!1}=e;b()&&(0,c.J0)(!1);let s=t.replace(/^\/*/,"/"),l=u.useMemo(()=>({basename:s,navigator:o,static:i}),[s,o,i]);"string"==typeof n&&(n=(0,c.cP)(n));let{pathname:d="/",search:p="",hash:h="",state:g=null,key:_="default"}=n,v=u.useMemo(()=>{let e=(0,c.Zn)(d,s);return null==e?null:{location:{pathname:e,search:p,hash:h,state:g,key:_},navigationType:a}},[s,d,p,h,g,_,a]);return null==v?null:u.createElement(f.Provider,{value:l},u.createElement(m.Provider,{children:r,value:v}))}function I(e){let{children:t,location:r}=e;return function(e,t,r){let n;b()||(0,c.J0)(!1);let{navigator:a}=u.useContext(f),{matches:o}=u.useContext(g),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let p=y();if(t){var h;let e="string"==typeof t?(0,c.cP)(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||(0,c.J0)(!1),n=e}else n=p;let _=n.pathname||"/",v="/"===l?_:_.slice(l.length)||"/",w=(0,c.fp)(e,{pathname:v}),S=function(e,t,r){var n,a;if(void 0===t&&(t=[]),void 0===r&&(r=null),null==e){if(null==(a=r)||!a.errors)return null;e=r.matches}let o=e,i=null==(n=r)?void 0:n.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&(null==i?void 0:i[e.route.id]));e>=0||(0,c.J0)(!1),o=o.slice(0,Math.min(o.length,e+1))}return o.reduceRight((e,n,a)=>{let s=n.route.id?null==i?void 0:i[n.route.id]:null,l=null;r&&(l=n.route.errorElement||E);let c=t.concat(o.slice(0,a+1)),d=()=>{let t;return t=s?l:n.route.Component?u.createElement(n.route.Component,null):n.route.element?n.route.element:e,u.createElement(P,{match:n,routeContext:{outlet:e,matches:c,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?u.createElement(C,{location:r.location,revalidation:r.revalidation,component:l,error:s,children:d(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):d()},null)}(w&&w.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:(0,c.RQ)([l,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:(0,c.RQ)([l,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,void 0);return t&&S?u.createElement(m.Provider,{value:{location:d({pathname:"/",search:"",hash:"",state:null,key:"default"},n),navigationType:c.aU.Pop}},S):S}(function e(t,r){void 0===r&&(r=[]);let n=[];return u.Children.forEach(t,(t,a)=>{if(!u.isValidElement(t))return;let o=[...r,a];if(t.type===u.Fragment){n.push.apply(n,e(t.props.children,o));return}t.type!==O&&(0,c.J0)(!1),t.props.index&&t.props.children&&(0,c.J0)(!1);let i={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(i.children=e(t.props.children,o)),n.push(i)}),n}(t),r)}(n=i||(i={})).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",(a=s||(s={})).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",(o=l||(l={}))[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",new Promise(()=>{})},7632:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return u}});let a="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var o={randomUUID:a};let i=new Uint8Array(16);function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}let l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).slice(1));var u=function(e,t,r){if(o.randomUUID&&!t&&!e)return o.randomUUID();e=e||{};let n=e.random||(e.rng||s)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase()}(n)}},9179:function(e,t,r){"use strict";r.d(t,{UF:function(){return d},Hj:function(){return u},TW:function(){return c}});class n{constructor(e,t,r,n){this._syncCallback=e,this._asyncCallback=t,this._reportCallback=r,this._params=n}}let a={__proto__:null,raf:class extends n{start(){return new Promise(e=>{this._params.waitBeforeSync?setTimeout(()=>this._scheduleCallbacks(e),this._params.waitBeforeSync):this._scheduleCallbacks(e)})}_scheduleCallbacks(e){requestAnimationFrame(()=>this._syncCallback()),requestAnimationFrame(()=>{setTimeout(()=>{this._asyncCallback(),setTimeout(async()=>{let t=await this._reportCallback();e(t)},0)},0)})}}};class o{#e;#t;#r;#n;#a;#o;constructor(e,t,r,n,a,o){this.#n=n,this.#a=a,this.#r=r,this.#o=o,this.#t=t,this.#e=e}async runTest(){let e,t,r;let n=this.#n.name,o=this.#a.name,i=`${n}.${o}-start`,s=`${n}.${o}-sync-end`,l=`${n}.${o}-async-start`,u=`${n}.${o}-async-end`,c=()=>{if(this.#r.warmupBeforeSync){performance.mark("warmup-start");let e=performance.now();for(;performance.now()-e<this.#r.warmupBeforeSync;)continue;performance.mark("warmup-end")}performance.mark(i);let r=performance.now();this.#a.run(this.#t);let n=performance.now();performance.mark(s),e=n-r,performance.mark(l),t=performance.now()},d=()=>{let e=this.#e?this.#e.contentDocument.body:document.body,a=this.#e?this.#e.contentWindow:window,c=e.getBoundingClientRect().height;a._unusedHeightValue=c;let d=performance.now();performance.mark(u),r=d-t,this.#r.warmupBeforeSync&&performance.measure("warmup","warmup-start","warmup-end"),performance.measure(`${n}.${o}-sync`,i,s),performance.measure(`${n}.${o}-async`,l,u)},p=()=>this.#o(this.#a,e,r),h=a[this.#r.measurementMethod],f=new h(c,d,p,this.#r);return f.start()}}class i{viewport={width:800,height:600};developerMode=!1;startAutomatically=!1;iterationCount=10;suites=[];tags=[];useWarmupSuite=!1;measurementMethod="raf";waitBeforeSync=0;warmupBeforeSync=0;shuffleSeed="off";complexity=1;constructor(e){e&&this._copyFromSearchParams(e),this.developerMode||(Object.freeze(this.viewport),Object.freeze(this))}_parseNumber(e,t){let r=Number(e);if(!Number.isFinite(r)&&t)throw Error(`Invalid ${t} param: '${e}', expected Number.`);return r}_parseInt(e,t){let r=this._parseNumber(e);if(!Number.isInteger(r)&&t)throw Error(`Invalid ${t} param: '${e}', expected int.`);return parseInt(r)}_copyFromSearchParams(e){if(this.viewport=this._parseViewport(e),this.startAutomatically=this._parseBooleanParam(e,"startAutomatically"),this.iterationCount=this._parseIntParam(e,"iterationCount",1),this.suites=this._parseSuites(e),this.tags=this._parseTags(e),this.developerMode=this._parseBooleanParam(e,"developerMode"),this.useWarmupSuite=this._parseBooleanParam(e,"useWarmupSuite"),this.waitBeforeSync=this._parseIntParam(e,"waitBeforeSync",0),this.warmupBeforeSync=this._parseIntParam(e,"warmupBeforeSync",0),this.measurementMethod=this._parseMeasurementMethod(e),this.shuffleSeed=this._parseShuffleSeed(e),e.has("complexity")){if(this.complexity=this._parseNumber(e.get("complexity")),this.complexity<=0)throw Error(`Invalid complexity value: ${this.complexity}, must be > 0.0`);e.delete("complexity")}let t=Array.from(e.keys());t.length>0&&console.error("Got unused search params",t)}_parseBooleanParam(e,t){return!!e.has(t)&&(e.delete(t),!0)}_parseIntParam(e,t,r){if(!e.has(t))return s[t];let n=this._parseInt(e.get(t),"waitBeforeSync");if(n<r)throw Error(`Invalid ${t} param: '${n}', value must be >= ${r}.`);return e.delete(t),n}_parseViewport(e){if(!e.has("viewport"))return s.viewport;let t=e.get("viewport"),[r,n]=t.split("x"),a={width:this._parseInt(r,"viewport.width"),height:this._parseInt(n,"viewport.height")};if(this.viewport.width<800||this.viewport.height<600)throw Error(`Invalid viewport param: ${t}`);return e.delete("viewport"),a}_parseSuites(e){if(e.has("suite")||e.has("suites")){if(e.has("suite")&&e.has("suites"))throw Error("Params 'suite' and 'suites' can not be used together.");let t=e.get("suite")||e.get("suites"),r=t.split(",");if(0===r.length)throw Error("No suites selected");return e.delete("suite"),e.delete("suites"),r}return s.suites}_parseTags(e){if(!e.has("tags"))return s.tags;if(this.suites.length)throw Error("'suites' and 'tags' cannot be used together.");let t=e.get("tags").split(",");return e.delete("tags"),t}_parseMeasurementMethod(e){if(!e.has("measurementMethod"))return s.measurementMethod;let t=e.get("measurementMethod");if("raf"!==t)throw Error(`Invalid measurement method: '${t}', must be 'raf'.`);return e.delete("measurementMethod"),t}_parseShuffleSeed(e){if(!e.has("shuffleSeed"))return s.shuffleSeed;let t=e.get("shuffleSeed");if("off"!==t&&("generate"===t?console.log(`Generated a random suite order seed: ${t=Math.floor(1*Math.random()<<16)}`):t=parseInt(t),!Number.isInteger(t)))throw Error(`Invalid shuffle seed: '${t}', must be either 'off', 'generate' or an integer.`);return e.delete("shuffleSeed"),t}toSearchParamsObject(){let e={__proto__:null};for(let[t,r]of Object.entries(this))r!==s[t]&&(e[t]=r);return e.suites?.length&&e.tags?.length&&delete e.suites,e.viewport=`${this.viewport.width}x${this.viewport.height}`,new URLSearchParams(e)}toSearchParams(){return this.toSearchParamsObject().toString()}}let s=new i,l=s;if(window?.location?.search){let e=new URLSearchParams(window.location.search);try{l=new i(e)}catch(e){console.error("Invalid URL Param",e,"\nUsing defaults as fallback:",l),alert(`Invalid URL Param: ${e}`)}}class u{constructor(e,t){this.name=e,this.run=t}async runAndRecord(e,t,r,n){let a=new o(null,null,e,t,r,n),i=await a.runTest();return i}}class c{constructor(e,t){this.name=e,this.tests=t}record(e,t,r){return{tests:{Sync:t,Async:r},total:t+r}}async runAndRecord(e,t){let r={tests:{},total:0},n=`suite-${this.name}-start`,a=`suite-${this.name}-end`;for(let a of(performance.mark(n),this.tests)){let n=await a.runAndRecord(e,this,a,this.record);r.tests[a.name]=n,r.total+=n.total,t?.(a.name)}return performance.mark(a),performance.measure(`suite-${this.name}`,n,a),{type:"suite-tests-complete",status:"success",result:r,suitename:this.name}}}class d{constructor(e,t,r){this.suites=e,this.name=t,this.version=r,t&&r||console.warn("No name or version supplied, to create a unique appId"),this.appId=t&&r?`${t}-${r}`:-1,this.onMessage=this.onMessage.bind(this)}async onMessage(e){if(e.data.id===this.appId&&"benchmark-connector"===e.data.key){if("benchmark-suite"===e.data.type){let t=new i(new URLSearchParams(window.location.search)),r=this.suites[e.data.name];r||console.error(`Suite with the name of "${e.data.name}" not found!`);let{result:n}=await r.runAndRecord(t,e=>this.sendMessage({type:"step-complete",status:"success",appId:this.appId,name:this.name,test:e}));this.sendMessage({type:"suite-complete",status:"success",appId:this.appId,result:n}),this.disconnect()}else console.error(`Message data type not supported: ${e.data.type}`)}}sendMessage(e){window.top.postMessage(e,"*")}connect(){window.addEventListener("message",this.onMessage),this.sendMessage({type:"app-ready",status:"success",appId:this.appId})}disconnect(){window.removeEventListener("message",this.onMessage)}}},9210:function(e,t,r){"use strict";function n(e,t=[],r=document){let n=(function(e,t){e=e.shadowRoot??e;let r=t.reduce((e,t)=>{let r=e.querySelector(t);return r.shadowRoot??r},e);return r})(r,t).querySelector(e);return n}function a(){let e=document.body.getBoundingClientRect(),t=document.elementFromPoint(e.width/2|0,e.height/2|0);return t}r.d(t,{sb:function(){return n},vi:function(){return a}})},6281:function(e,t,r){"use strict";r.d(t,{UF:function(){return n.UF}});var n=r(9179)}}]);