diff --git a/index.html b/index.html index 1fa673e..fb82ea3 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -idb-cache
\ No newline at end of file +idb-cache
\ No newline at end of file diff --git a/static/js/828.972d159c.js b/static/js/828.972d159c.js new file mode 100644 index 0000000..fcd62f1 --- /dev/null +++ b/static/js/828.972d159c.js @@ -0,0 +1,14 @@ +/*! For license information please see 828.972d159c.js.LICENSE.txt */ +(self.webpackChunkidb_cache_app=self.webpackChunkidb_cache_app||[]).push([["828"],{7265:function(e,r,t){"use strict";t.d(r,{Z:()=>q});var n=function(){function e(e){var r=this;this._insertTag=function(e){var t;t=0===r.tags.length?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(e,t),r.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 r=e.prototype;return r.hydrate=function(e){e.forEach(this._insertTag)},r.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var r,t;this._insertTag((r=this,(t=document.createElement("style")).setAttribute("data-emotion",r.key),void 0!==r.nonce&&t.setAttribute("nonce",r.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var r=0;r0?m[w]+" "+k:s(k,/&\f/g,m[w])).trim())c[v++]=S;return x(e,r,t,0===i?P:d,c,p,f)}function W(e,r,t,n){return x(e,r,t,L,u(e,0,n),u(e,n+1,-1),n)}var H=function(e,r,t){for(var n=0,o=0;n=o,o=C(),38===n&&12===o&&(r[t]=1),!R(o);){;S()}return u(w,e,y)},N=function(e,r){var t=-1,n=44;do switch(R(n)){case 0:38===n&&12===C()&&(r[t]=1),e[t]+=H(y-1,r,t);break;case 2:e[t]+=B(n);break;case 4:if(44===n){e[++t]=58===C()?"&\f":"",r[t]=e[t].length;break}default:e[t]+=i(n)}while(n=S());return e},G=function(e,r){var t;return t=N(I(e),r),w="",t},Z=new WeakMap,V=function(e){if("rule"!==e.type||!e.parent||e.length<1)return;for(var r=e.value,t=e.parent,n=e.column===t.column&&e.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==e.props.length||58===r.charCodeAt(0)||!!Z.get(t))&&!n){Z.set(e,!0);for(var o=[],i=G(r,o),l=t.props,a=0,s=0;a-1&&!e.return)switch(e.type){case L:e.return=function e(r,t){var n,o;switch(n=r,o=t,45^c(n,0)?(((o<<2^c(n,0))<<2^c(n,1))<<2^c(n,2))<<2^c(n,3):0){case 5103:return _+"print-"+r+r;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 _+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return _+r+F+r+$+r+r;case 6828:case 4268:return _+r+$+r+r;case 6165:return _+r+$+"flex-"+r+r;case 5187:return _+r+s(r,/(\w+).+(:[^]+)/,_+"box-$1$2"+$+"flex-$1$2")+r;case 5443:return _+r+$+"flex-item-"+s(r,/flex-|-self/,"")+r;case 4675:return _+r+$+"flex-line-pack"+s(r,/align-content|flex-|-self/,"")+r;case 5548:return _+r+$+s(r,"shrink","negative")+r;case 5292:return _+r+$+s(r,"basis","preferred-size")+r;case 6060:return _+"box-"+s(r,"-grow","")+_+r+$+s(r,"grow","positive")+r;case 4554:return _+s(r,/([^-])(transform)/g,"$1"+_+"$2")+r;case 6187:return s(s(s(r,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),r,"")+r;case 5495:case 3959:return s(r,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return s(s(r,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+$+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+r+r;case 4095:case 3583:case 4068:case 2532:return s(r,/(.+)-inline(.+)/,_+"$1$2")+r;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(p(r)-1-t>6)switch(c(r,t+1)){case 109:if(45!==c(r,t+4))break;case 102:return s(r,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+F+(108==c(r,t+3)?"$3":"$2-$3"))+r;case 115:return~d(r,"stretch")?e(s(r,"stretch","fill-available"),t)+r:r}break;case 4949:if(115!==c(r,t+1))break;case 6444:switch(c(r,p(r)-3-(~d(r,"!important")&&10))){case 107:return s(r,":",":"+_)+r;case 101:return s(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_+(45===c(r,14)?"inline-":"")+"box$3$1"+_+"$2$3$1"+$+"$2box$3")+r}break;case 5936:switch(c(r,t+11)){case 114:return _+r+$+s(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return _+r+$+s(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return _+r+$+s(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return _+r+$+r+r}return r}(e.value,e.length);break;case T:return D([k(e,{value:s(e.value,"@","@"+_)})],n);case P:if(e.length){var o,i;return o=e.props,i=function(r){var t;switch(t=r,(t=/(::plac\w+|:read-\w+)/.exec(t))?t[0]:t){case":read-only":case":read-write":return D([k(e,{props:[s(r,/:(read-\w+)/,":"+F+"$1")]})],n);case"::placeholder":return D([k(e,{props:[s(r,/:(plac\w+)/,":"+_+"input-$1")]}),k(e,{props:[s(r,/:(plac\w+)/,":"+F+"$1")]}),k(e,{props:[s(r,/:(plac\w+)/,$+"input-$1")]})],n)}return""},o.map(i).join("")}}}],q=function(e){var r,t,o,l,a=e.key;if("css"===a){var f=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(f,function(e){if(-1!==e.getAttribute("data-emotion").indexOf(" "))document.head.appendChild(e),e.setAttribute("data-s","")})}var b=e.stylisPlugins||X,k={},A=[];t=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(e){for(var r=e.getAttribute("data-emotion").split(" "),t=1;t2||R(v)>3?"":" "}(F);break;case 92:G+=function(e,r){for(var t,n;--r&&S()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return t=e,n=y+(r<6&&32==C()&&32==S()),u(w,t,n)}(y-1,7);continue;case 47:switch(C()){case 42:case 47:h(function(e,r,t){return x(e,r,t,z,i(v),u(e,2,-2),0)}(function(e,r){for(;S();)if(e+v===57)break;else if(e+v===84&&47===C())break;return"/*"+u(w,r,y-1)+"*"+i(47===e?e:S())}(S(),y),t,n),k);break;default:G+="/"}break;case 123*_:b[A++]=p(G)*L;case 125*_:case 59:case 0:switch(T){case 0:case 125:P=0;case 59+O:-1==L&&(G=s(G,/\f/g,"")),$>0&&p(G)-I&&h($>32?W(G+";",o,n,I-1):W(s(G," ","")+";",o,n,I-2),k);break;case 59:G+=";";default:if(h(N=j(G,t,n,A,O,l,b,D,E=[],H=[],I),a),123===T){if(0===O)e(G,t,N,N,E,a,I,b,H);else switch(99===M&&110===c(G,3)?100:M){case 100:case 108:case 109:case 115:e(r,N,N,o&&h(j(r,N,N,0,0,l,b,D,l,E=[],I),H),l,H,I,b,o?E:H);break;default:e(G,N,N,N,[""],H,0,b,H)}}}A=O=$=0,_=L=1,D=G="",I=f;break;case 58:I=1+p(G),$=F;default:if(_<1){if(123==T)--_;else if(125==T&&0==_++&&125==(v=y>0?c(w,--y):0,g--,10===v&&(g=1,m--),v))continue}switch(G+=i(T),T*_){case 38:L=O>0?1:(G+="\f",-1);break;case 44:b[A++]=(p(G)-1)*L,L=1;break;case 64:45===C()&&(G+=B(S())),M=C(),O=I=p(D=G+=function(e){for(;!R(C());)S();return u(w,e,y)}(y)),T++;break;case 45:45===F&&2==p(G)&&(_=0)}}return a}("",null,null,null,[""],r=I(r=e),0,[0],r),w="",t),O)};o=function(e,r,t,n){l=t,M(e?e+"{"+r.styles+"}":r.styles),n&&($.inserted[r.name]=!0)};var $={key:a,sheet:new n({key:a,container:t,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:k,registered:{},insert:o};return $.sheet.hydrate(A),$}},261:function(e,r,t){"use strict";function n(e){var r=Object.create(null);return function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}}t.d(r,{Z:function(){return n}})},2817:function(e,r,t){"use strict";t.d(r,{u:()=>k,E:()=>R,c:()=>A,h:()=>S});var n,o,i=t("4194"),l=t("7265"),a=function(e,r,t){var n=e.key+"-"+r.name;!1===t&&void 0===e.registered[n]&&(e.registered[n]=r.styles)},s=function(e,r,t){a(e,r,t);var n=e.key+"-"+r.name;if(void 0===e.inserted[r.name]){var o=r;do e.insert(r===o?"."+n:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}},d={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},c=t("261"),u=/[A-Z]|^ms/g,p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,f=function(e){return 45===e.charCodeAt(1)},h=function(e){return null!=e&&"boolean"!=typeof e},m=(0,c.Z)(function(e){return f(e)?e:e.replace(u,"-$&").toLowerCase()}),g=function(e,r){switch(e){case"animation":case"animationName":if("string"==typeof r)return r.replace(p,function(e,r,t){return o={name:r,styles:t,next:o},r})}return 1===d[e]||f(e)||"number"!=typeof r||0===r?r:r+"px"};function b(e,r,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return o={name:t.name,styles:t.styles,next:o},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)o={name:n.name,styles:n.styles,next:o},n=n.next;return t.styles+";"}return function(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(l)+d,styles:l,next:o}}(u,void 0,i.useContext(x));p+=r.key+"-"+f.name;var h={};for(var m in e)S.call(e,m)&&"css"!==m&&m!==C&&(h[m]=e[m]);return h.className=p,t&&(h.ref=t),i.createElement(i.Fragment,null,i.createElement(O,{cache:r,serialized:f,isStringTag:"string"==typeof c}),i.createElement(c,h))},(0,i.forwardRef)(function(e,r){return n(e,(0,i.useContext)(w),r)}))},4159:function(e,r,t){"use strict";t.d(r,{tZ:function(){return i}});var n=t(2817),o=t(4194);t(4603),t(7265),t(63);var i=function(e,r){var t=arguments;if(null==r||!n.h.call(r,"css"))return o.createElement.apply(void 0,t);var i=t.length,l=Array(i);l[0]=n.E,l[1]=(0,n.c)(e,r);for(var a=2;ai,vU:()=>o,H:()=>o,yN:()=>i}),t("4194");let o=(e,r,...t)=>n("error",!0,e,r,...t),i=(e,r,...t)=>n("warn",!0,e,r,...t)},1569:function(e,r,t){"use strict";t.d(r,{j7:()=>p});var n=t("7862"),o=t.n(n);let i={resting:"resting",above:"above",topmost:"topmost",none:"none"},l={deepest:"deepest",below:"below",resting:"resting",above:"above",topmost:"topmost"},a={0:"0",none:"none",small:"small",medium:"medium",large:"large"},s={0:"0",none:"none",small:"small",medium:"medium",large:"large",circle:"circle",pill:"pill"},d={default:"default",inverse:"inverse",transparent:"transparent"},c={xSmall:"x-small",small:"small",medium:"medium",large:"large",xLarge:"x-large"},u={0:"0",none:"none",auto:"auto",xxxSmall:"xxx-small",xxSmall:"xx-small",xSmall:"x-small",small:"small",mediumSmall:"mediumSmall",medium:"medium",large:"large",xLarge:"x-large",xxLarge:"xx-large"},p={shadow:o().oneOf(Object.values(i)),stacking:o().oneOf(Object.values(l)),borderWidth:f(Object.values(a)),borderRadius:f(Object.values(s)),background:o().oneOf(Object.values(d)),size:o().oneOf(Object.values(c)),spacing:f(Object.values(u))};function f(e){return function(r,t,n,o){let i=r[t];if(void 0===i)return null;if("string"!=typeof i)return Error(`Invalid ${o} \`${t}\` of type \`${typeof i}\` supplied to \`${n}\`, expected a string.`);let l=i.split(" "),a=l.length;if(!(a>0)||!(a<5))return Error(`Invalid ${o} \`${t}\` \`${i}\` supplied to \`${n}\`, expected between one and four of the following valid values: \`${e.join(", ")}\`.`);for(let r=0;r{if("auto"===t||"0"===t)return t;if("none"===t)return"0";if("circle"===t)return"100%";if("pill"===t)return"999em";let n=(0,o._)(`${l}-${t}`),a=r[n];return(0,i.H)(void 0!==a,`[${e}] '${n}' is an invalid '${l}' value.`),a||"0"}).join(" ").trim()}},7382:function(e,r,t){"use strict";t.d(r,{L:function(){return o}});var n=t(3568);function o(e,r){let t={};return Object.keys(r).forEach(o=>{t[(0,n._)(`${e}-${String(o)}`)]=r[o]}),t}},3706:function(e,r,t){"use strict";t.d(r,{w:()=>J});function n(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t{let i=n.themeOverride,l=e.componentOverrides,a={},s={};return l&&(a=r&&l[r]||t&&l[t]||{}),i&&(s="function"==typeof i?i(o||{},e):i),{...a,...s}};var p=t("2817");let f=Object.freeze({radiusSmall:"0.125rem",radiusMedium:"0.25rem",radiusLarge:"0.5rem",widthSmall:"0.0625rem",widthMedium:"0.125rem",widthLarge:"0.25rem",style:"solid"}),h=Object.freeze(function(e){let r={textDarkest:e.licorice,textDark:e.ash,textLight:e.porcelain,textLightest:e.white,textBrand:e.brand,textLink:e.link,textAlert:e.barney,textInfo:e.brand,textSuccess:e.shamrock,textDanger:e.crimson,textWarning:e.fire},t={backgroundDarkest:e.licorice,backgroundDark:e.ash,backgroundMedium:e.tiara,backgroundLight:e.porcelain,backgroundLightest:e.white,backgroundBrand:e.brand,backgroundBrandSecondary:e.oxford,backgroundAlert:e.barney,backgroundInfo:e.brand,backgroundSuccess:e.shamrock,backgroundDanger:e.crimson,backgroundWarning:e.fire},n={borderLightest:e.white,borderLight:e.porcelain,borderMedium:e.tiara,borderDark:e.ash,borderDarkest:e.licorice,borderBrand:e.brand,borderAlert:e.barney,borderInfo:e.brand,borderSuccess:e.shamrock,borderDanger:e.crimson,borderWarning:e.fire,borderDebug:e.crimson};return{...e,...r,...t,...n,values:e,text:r,background:t,border:n}}({brand:"#0374B5",link:"#0374B5",electric:"#0374B5",shamrock:"#0B874B",barney:"#BF32A4",crimson:"#E0061F",fire:"#FC5E13",licorice:"#2D3B45",oxford:"#394B58",ash:"#6B7780",slate:"#8B969E",tiara:"#C7CDD1",porcelain:"#F5F5F5",white:"#FFFFFF"})),m=Object.freeze({duration:"300ms",timing:"ease-in-out"}),g=Object.freeze({fontFamily:'LatoWeb, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif',fontFamilyMonospace:'Menlo, Consolas, Monaco, "Andale Mono", monospace',fontSizeXSmall:"0.75rem",fontSizeSmall:"0.875rem",fontSizeMedium:"1rem",fontSizeLarge:"1.375rem",fontSizeXLarge:"1.75rem",fontSizeXXLarge:"2.375rem",fontWeightLight:300,fontWeightNormal:400,fontWeightBold:700,lineHeight:1.5,lineHeightFit:1.125,lineHeightCondensed:1.25,lineHeightDouble:2,letterSpacingNormal:0,letterSpacingCondensed:"-0.0625rem",letterSpacingExpanded:"0.0625rem"}),b=Object.freeze({xxxSmall:"0.125rem",xxSmall:"0.375rem",xSmall:"0.5rem",small:"0.75rem",mediumSmall:"1rem",medium:"1.5rem",large:"2.25rem",xLarge:"3rem",xxLarge:"3.75rem"}),y=Object.freeze({inputHeightSmall:"1.75rem",inputHeightMedium:"2.375rem",inputHeightLarge:"3rem"}),v=8,w=16,x=30,k=48,S=48,C=62,A=64,O=75,R=Object.freeze({xxSmall:`${v}em`,xSmall:`${w}em`,small:`${x}em`,medium:`${k}em`,tablet:`${S}em`,large:`${C}em`,desktop:`${A}em`,xLarge:`${O}em`,maxWidth:`${C-.0625}em`}),I=Object.freeze({mediumMin:`min-width: ${R.medium}`,largeMin:`min-width: ${R.large}`,xLargeMin:`min-width: ${R.xLarge}`}),M=["0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)","0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)","0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)"],B=Object.freeze({depth1:"0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)",depth2:"0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)",depth3:"0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)",resting:"0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)",above:"0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)",topmost:"0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)"}),$={colors:h,borders:f,transitions:m,typography:g,spacing:b,forms:y,media:I,breakpoints:R,shadows:B,stacking:Object.freeze({topmost:9999,above:1,below:-1,deepest:-9999})};var F=t("3047");function _(e){return e&&("object"==typeof e||"function"==typeof e)&&!Array.isArray(e)}function z(e){return Array.isArray(e)}let P=["borders","breakpoints","colors","forms","media","shadows","spacing","stacking","transitions","typography"],L=e=>{if(Array.isArray(e)||"function"==typeof e)throw Error();try{return"key"in e&&P.every(r=>r in e)}catch{throw Error()}},T=["key","description"],D=["key","description","use"],E="__GLOBAL_THEME_REGISTRY__";function j(){return{currentThemeKey:null,themes:{},registered:[]}}globalThis[E]?H(function(e){let r=j();if(void 0===e)return r;let t=!0;return Object.keys(r).forEach(r=>{void 0===e[r]&&(t=!1)}),(0,d.vU)(t,"[theme-registry] Invalid global theme registry!"),e}(globalThis[E])):N();function W(){return globalThis[E]}function H(e){globalThis[E]=e}function N(){H(j())}let G={registerTheme:function(e){let r=W();if(e.key&&r.themes[e.key])return r.themes[e.key];{if(!L(e))throw(0,d.vU)(!1,"[theme-registry] The theme provided to 'registerTheme' is not a valid theme object!\nFor it to be valid some properties have to be present, check out https://instructure.design/#canvas as a reference."),Error();let t=function(e){let r=e.key,t=e.description;return new Proxy({key:r,description:t,...(0,F.Z)(e,T),use(e){!function(e,r){let t=W(),n=t.themes[e];!n&&"@@themeRegistryDefaultTheme"!==e&&(0,d.vU)(n,`[theme-registry] Could not find theme: '${e}' in the registry.`),t.currentThemeKey=e;let o=function(...e){let r={};return e.forEach(e=>{r=function e(r,t){if(!_(t))return{...r};{let n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)],o={...r};return n.forEach(n=>{_(r[n])&&_(t[n])?o[n]=e(r[n],t[n]):z(t[n])&&z(r[n])?o[n]=[...new Set([...r[n],...t[n]])]:z(r[n])?o[n]=[...new Set([...r[n],t[n]])]:o[n]=t[n]}),o}}(r,e)}),r}(n,r);t.themes[e]=o}(r,(null==e?void 0:e.overrides)||{})}},{get(e,r){e.key,e.description,e.use;let t=(0,F.Z)(e,D);return"variables"===r?t:Reflect.get(e,r)}})}(e);return r.themes[t.key]=t,r.registered.push(t.key),t}},getCurrentTheme:function(){let e=W(),r=e.currentThemeKey;if(r)return e.themes[r]}};$.borders,$.breakpoints;let Z=$.colors;$.forms,$.media,$.shadows,$.spacing,$.stacking,$.transitions,$.typography;let V={"ic-brand-primary":Z.textBrand,"ic-brand-font-color-dark":Z.textDarkest,"ic-link-color":Z.textLink,"ic-link-decoration":"none","ic-brand-button--primary-bgd":Z.backgroundBrand,"ic-brand-button--primary-text":Z.textLightest,"ic-brand-button--secondary-bgd":Z.backgroundDarkest,"ic-brand-button--secondary-text":Z.textLightest,"ic-brand-global-nav-bgd":Z.backgroundBrandSecondary,"ic-global-nav-link-hover":Z.backgroundDarkest,"ic-brand-global-nav-ic-icon-svg-fill":Z.textLightest,"ic-brand-global-nav-ic-icon-svg-fill--active":Z.textBrand,"ic-brand-global-nav-menu-item__text-color":Z.textLightest,"ic-brand-global-nav-menu-item__text-color--active":Z.textBrand},U={key:"canvas",...$,...V},X=G.registerTheme(U);var q=t("9159");let Y=()=>{let e=(0,p.u)();if((0,q.x)(e)){let r=G.getCurrentTheme();if(r)return r;e=X}return e},K={styles:{},makeStyles:()=>{}},J=(0,c.b)((e,r,t)=>{let i=e.displayName||e.name,a=(0,o.forwardRef)((l,a)=>{var c,p;let f=Y();l.styles&&(0,d.ZK)(!1,`Manually passing the "styles" property is not allowed on the ${i} component. Using the default styles calculated by the @withStyle decorator instead. +`,l.styles),l.makeStyles&&(0,d.ZK)(!1,`Manually passing the "makeStyles" property is not allowed on the ${i} component. Styles are calculated by the @withStyle decorator.`);let h={...e.defaultProps,...l,...K},m="function"==typeof t?t(f):{},g=u(f,i,e.componentId,h,m);m={...m,...g};let b=(p=2,function(e){if(Array.isArray(e))return e}(c=(0,o.useState)(r?r(m,h,{}):{}))||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,i,l,a=[],s=!0,d=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(a.push(n.value),a.length!==r);s=!0);}catch(e){d=!0,o=e}finally{try{if(!s&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(d)throw o}}return a}}(c,2)||function(e,r){if(e){if("string"==typeof e)return n(e,r);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,r):void 0}}(c,p)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=b[0],v=b[1];return o.createElement(e,Object.assign({ref:a},l,{makeStyles:e=>{let t=r(m,h,e);!s()(t,y)&&v(t)},styles:y,themeOverride:g}))});return l()(a,e),a.originalType=e.originalType||e,a.propTypes=e.propTypes,a.defaultProps=e.defaultProps,a.allowedProps=e.allowedProps,a.generateComponentTheme=t,e.defaultProps={...e.defaultProps,makeStyles:K.makeStyles,styles:K.styles},a})},6254:function(e,r,t){"use strict";t.d(r,{c:()=>m});var n,o,i=t("3047"),l=t("4194"),a=t("8455"),s=t("3974"),d=t("3706"),c=t("4159"),u=t("7862"),p=t.n(u);let f={as:p().elementType,children:p().node,elementRef:p().func},h=["children","styles"],m=(0,d.w)(()=>({screenReaderContent:{label:"screenReaderContent",width:"0.0625rem",height:"0.0625rem",margin:"-0.0625rem",padding:0,position:"absolute",top:0,insetInlineStart:0,overflow:"hidden",clip:"rect(0 0 0 0)",border:0}}),null)(((o=class e extends l.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}render(){let r=this.props,t=r.children,n=r.styles,o=(0,i.Z)(r,h),l=(0,a.B)(e,o);return(0,c.tZ)(l,Object.assign({},(0,s.r)(o),{css:null==n?void 0:n.screenReaderContent,ref:this.handleRef}),t)}}).displayName="ScreenReaderContent",o.componentId="ScreenReaderContent",o.propTypes=f,o.allowedProps=["as","children","elementRef"],o.defaultProps={as:"span",children:null},n=o))||n},5501:function(e,r,t){"use strict";t.d(r,{B:function(){return l}});var n=t(4194),o=t(5172),i=t(6254);function l(e){let r=!1;return n.Children.forEach(e,e=>{e&&!(0,o.x)(e,[i.c])&&(r=!0)}),r}},5518:function(e,r,t){"use strict";t.d(r,{z:()=>eb});var n,o,i,l,a,s,d,c,u,p=t("3047"),f=t("4194"),h=t("9936"),m=t("7334"),g=t("3974"),b=t("3706");function y(e){return(y="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 v=/^\s+/,w=/\s+$/;function x(e,r){if(r=r||{},(e=e||"")instanceof x)return e;if(!(this instanceof x))return new x(e,r);var t=function(e){var r={r:0,g:0,b:0},t=1,n=null,o=null,i=null,l=!1,a=!1;return"string"==typeof e&&(e=function(e){e=e.replace(v,"").replace(w,"").toLowerCase();var r,t=!1;if(D[e])e=D[e],t=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(r=X.rgb.exec(e))return{r:r[1],g:r[2],b:r[3]};if(r=X.rgba.exec(e))return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=X.hsl.exec(e))return{h:r[1],s:r[2],l:r[3]};if(r=X.hsla.exec(e))return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=X.hsv.exec(e))return{h:r[1],s:r[2],v:r[3]};if(r=X.hsva.exec(e))return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=X.hex8.exec(e))return{r:N(r[1]),g:N(r[2]),b:N(r[3]),a:N(r[4])/255,format:t?"name":"hex8"};if(r=X.hex6.exec(e))return{r:N(r[1]),g:N(r[2]),b:N(r[3]),format:t?"name":"hex"};if(r=X.hex4.exec(e))return{r:N(r[1]+""+r[1]),g:N(r[2]+""+r[2]),b:N(r[3]+""+r[3]),a:N(r[4]+""+r[4])/255,format:t?"name":"hex8"};return!!(r=X.hex3.exec(e))&&{r:N(r[1]+""+r[1]),g:N(r[2]+""+r[2]),b:N(r[3]+""+r[3]),format:t?"name":"hex"}}(e)),"object"==y(e)&&(q(e.r)&&q(e.g)&&q(e.b)?(r=function(e,r,t){return{r:255*W(e,255),g:255*W(r,255),b:255*W(t,255)}}(e.r,e.g,e.b),l=!0,a="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=Z(e.s),o=Z(e.v),r=function(e,r,t){e=6*W(e,360),r=W(r,100),t=W(t,100);var n=Math.floor(e),o=e-n,i=t*(1-r),l=t*(1-o*r),a=t*(1-(1-o)*r),s=n%6;return{r:255*[t,l,i,i,a,t][s],g:255*[a,t,t,l,i,i][s],b:255*[i,i,a,t,t,l][s]}}(e.h,n,o),l=!0,a="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=Z(e.s),i=Z(e.l),r=function(e,r,t){var n,o,i;function l(e,r,t){return(t<0&&(t+=1),t>1&&(t-=1),t<1/6)?e+(r-e)*6*t:t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e}if(e=W(e,360),r=W(r,100),t=W(t,100),0===r)n=o=i=t;else{var a=t<.5?t*(1+r):t+r-t*r,s=2*t-a;n=l(s,a,e+1/3),o=l(s,a,e),i=l(s,a,e-1/3)}return{r:255*n,g:255*o,b:255*i}}(e.h,n,i),l=!0,a="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=j(t),{ok:l,format:e.format||a,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:t}}(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||t.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}x.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,t,n,o,i,l=this.toRgb();return e=l.r/255,r=l.g/255,t=l.b/255,.2126*(n=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(o=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(i=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))},setAlpha:function(e){return this._a=j(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=S(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=S(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=k(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=k(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return C(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,r,t,n,o){var i=[G(Math.round(e).toString(16)),G(Math.round(r).toString(16)),G(Math.round(t).toString(16)),G(V(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*W(this._r,255))+"%",g:Math.round(100*W(this._g,255))+"%",b:Math.round(100*W(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%)":"rgba("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[C(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+A(this._r,this._g,this._b,this._a),t=r,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=x(e);t="#"+A(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+t+")"},toString:function(e){var r=!!e;e=e||this._format;var t=!1,n=this._a<1&&this._a>=0;if(!r&&n&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e))return"name"===e&&0===this._a?this.toName():this.toRgbString();return"rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()},clone:function(){return x(this.toString())},_applyModification:function(e,r){var t=e.apply(null,[this].concat([].slice.call(r)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(B,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(I,arguments)},spin:function(){return this._applyModification(F,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(z,[3])},tetrad:function(){return this._applyCombination(z,[4])}},x.fromRatio=function(e,r){if("object"==y(e)){var t={};for(var n in e)e.hasOwnProperty(n)&&("a"===n?t[n]=e[n]:t[n]=Z(e[n]));e=t}return x(e,r)};function k(e,r,t){e=W(e,255),r=W(r,255);var n=Math.max(e,r,t=W(t,255)),o=Math.min(e,r,t),i,l,a=(n+o)/2;if(n==o)i=l=0;else{var s=n-o;switch(l=a>.5?s/(2-n-o):s/(n+o),n){case e:i=(r-t)/s+(r>1)+720)%360;--r;)n.h=(n.h+o)%360,i.push(x(n));return i}function T(e,r){r=r||6;for(var t=x(e).toHsv(),n=t.h,o=t.s,i=t.v,l=[],a=1/r;r--;)l.push(x({h:n,s:o,v:i})),i=(i+a)%1;return l}x.equals=function(e,r){return!!e&&!!r&&x(e).toRgbString()==x(r).toRgbString()},x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},x.mix=function(e,r,t){t=0===t?0:t||50;var n=x(e).toRgb(),o=x(r).toRgb(),i=t/100;return x({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},x.readability=function(e,r){var t=x(e),n=x(r);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)},x.isReadable=function(e,r,t){var n,o,i=x.readability(e,r);switch(o=!1,(n=function(e){var r,t;return r=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),"AA"!==r&&"AAA"!==r&&(r="AA"),"small"!==t&&"large"!==t&&(t="small"),{level:r,size:t}}(t)).level+n.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},x.mostReadable=function(e,r,t){var n,o,i,l,a=null,s=0;o=(t=t||{}).includeFallbackColors,i=t.level,l=t.size;for(var d=0;ds&&(s=n,a=x(r[d]));return x.isReadable(e,a,{level:i,size:l})||!o?a:(t.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],t))};var D=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=x.hexNames=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}(D);function j(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function W(e,r){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var t=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return(e=Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),1e-6>Math.abs(e-r))?1:e%r/parseFloat(r)}function H(e){return Math.min(1,Math.max(0,e))}function N(e){return parseInt(e,16)}function G(e){return 1==e.length?"0"+e:""+e}function Z(e){return e<=1&&(e=100*e+"%"),e}function V(e){return Math.round(255*parseFloat(e)).toString(16)}function U(e){return N(e)/255}var X=(o="[\\s|\\(]+("+(n="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",{CSS_UNIT:new RegExp(n),rgb:RegExp("rgb"+o),rgba:RegExp("rgba"+i),hsl:RegExp("hsl"+o),hsla:RegExp("hsla"+i),hsv:RegExp("hsv"+o),hsva:RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!X.CSS_UNIT.exec(e)}function Y(e,r){return x(e).darken(r).toRgbString()}function K(e,r){return x(e).setAlpha(r/100).toRgbString()}let J="inset 0 0 0.1875rem 0.0625rem",Q=({style:e,textColor:r,ghostTextColor:t,backgroundColor:n,borderColor:o,ghostBorderColor:i=o})=>({[`${e}Color`]:r,[`${e}BorderColor`]:Y(o,10),[`${e}Background`]:n,[`${e}HoverBackground`]:Y(n,10),[`${e}ActiveBackground`]:Y(n,10),[`${e}ActiveBoxShadow`]:`${J} ${Y(o,20)}`,[`${e}GhostColor`]:t,[`${e}GhostBorderColor`]:i,[`${e}GhostBackground`]:"transparent",[`${e}GhostHoverBackground`]:K(t,10),[`${e}GhostActiveBackground`]:"transparent",[`${e}GhostActiveBoxShadow`]:`${J} ${K(i,28)}`}),ee=e=>{let r=e.borders,t=e.colors,n=e.forms,o=e.spacing,i=e.typography,l=e.key,a={canvas:{...Q({style:"primary",backgroundColor:e["ic-brand-button--primary-bgd"],borderColor:e["ic-brand-button--primary-bgd"],textColor:e["ic-brand-button--primary-text"],ghostTextColor:e["ic-brand-button--primary-bgd"]}),primaryGhostHoverBackground:K(e["ic-brand-button--primary-bgd"],10)},"canvas-high-contrast":{secondaryBorderColor:null==t?void 0:t.borderMedium,primaryInverseBorderColor:null==t?void 0:t.borderMedium},instructure:{borderRadius:"999em",smallPaddingTop:"0.5rem",smallPaddingBottom:"0.4375rem",mediumPaddingTop:"0.75rem",mediumPaddingBottom:"0.75rem",largePaddingTop:"1rem",largePaddingBottom:"1rem",largeFontSize:"1.125rem"}};return{...{transform:"none",hoverTransform:"none",fontFamily:null==i?void 0:i.fontFamily,fontWeight:null==i?void 0:i.fontWeightNormal,textTransform:"none",letterSpacing:"normal",borderRadius:null==r?void 0:r.radiusMedium,borderStyle:null==r?void 0:r.style,borderWidth:null==r?void 0:r.widthSmall,smallHeight:null==n?void 0:n.inputHeightSmall,smallFontSize:null==i?void 0:i.fontSizeSmall,smallPaddingHorizontal:null==o?void 0:o.xSmall,smallPaddingTop:"0.375rem",smallPaddingBottom:"0.3125rem",mediumHeight:null==n?void 0:n.inputHeightMedium,mediumFontSize:null==i?void 0:i.fontSizeMedium,mediumPaddingHorizontal:null==o?void 0:o.small,mediumPaddingTop:"0.5625rem",mediumPaddingBottom:"0.5625rem",largeHeight:null==n?void 0:n.inputHeightLarge,largeFontSize:null==i?void 0:i.fontSizeLarge,largePaddingHorizontal:null==o?void 0:o.medium,largePaddingTop:"0.6875rem",largePaddingBottom:"0.6875rem",lineHeight:null==i?void 0:i.lineHeightFit,iconSizeSmall:"1rem",iconSizeMedium:"1.25rem",iconSizeLarge:"1.625rem",iconTextGap:o.xSmall,iconTextGapCondensed:o.xxSmall,...Q({style:"primary",backgroundColor:null==t?void 0:t.backgroundBrand,borderColor:null==t?void 0:t.borderBrand,textColor:null==t?void 0:t.textLightest,ghostTextColor:null==t?void 0:t.textBrand}),...Q({style:"secondary",backgroundColor:null==t?void 0:t.backgroundLight,borderColor:null==t?void 0:t.borderLight,ghostBorderColor:null==t?void 0:t.borderDarkest,textColor:null==t?void 0:t.textDarkest,ghostTextColor:null==t?void 0:t.textDarkest}),...Q({style:"success",backgroundColor:null==t?void 0:t.backgroundSuccess,borderColor:null==t?void 0:t.borderSuccess,textColor:null==t?void 0:t.textLightest,ghostTextColor:null==t?void 0:t.textSuccess}),...Q({style:"danger",backgroundColor:null==t?void 0:t.backgroundDanger,borderColor:null==t?void 0:t.borderDanger,textColor:null==t?void 0:t.textLightest,ghostTextColor:null==t?void 0:t.textDanger}),...Q({style:"primaryInverse",backgroundColor:null==t?void 0:t.backgroundLightest,borderColor:null==t?void 0:t.borderLightest,textColor:null==t?void 0:t.textDarkest,ghostTextColor:null==t?void 0:t.textLightest}),primaryInverseBorderColor:Y(null==t?void 0:t.borderLight,10),primaryInverseHoverBackground:Y(null==t?void 0:t.backgroundLightest,5),primaryInverseActiveBackground:null==t?void 0:t.backgroundLightest,primaryInverseActiveBoxShadow:`${J} ${Y(null==t?void 0:t.borderLightest,25)}`,successGhostHoverBackground:K(null==t?void 0:t.textSuccess,1)},...a[l]}};var er=t("2508"),et=t.n(er),en=t("8455"),eo=t("9783"),ei=t("6459"),el=t("5501"),ea=t("9719"),es=t("4159"),ed=t("7862"),ec=t.n(ed),eu=t("1569");let ep={children:ec().node,type:ec().oneOf(["button","submit","reset"]),size:ec().oneOf(["small","medium","large"]),elementRef:ec().func,as:ec().elementType,interaction:ec().oneOf(["enabled","disabled","readonly"]),color:ec().oneOf(["primary","primary-inverse","secondary","success","danger"]),focusColor:ec().oneOf(["info","inverse"]),display:ec().oneOf(["inline-block","block"]),textAlign:ec().oneOf(["start","center"]),shape:ec().oneOf(["rectangle","circle"]),withBackground:ec().bool,withBorder:ec().bool,isCondensed:ec().bool,margin:eu.j7.spacing,cursor:ec().string,href:ec().string,onClick:ec().func,onKeyDown:ec().func,renderIcon:ec().oneOfType([ec().node,ec().func]),tabIndex:ec().number},ef=["type","size","elementRef","as","href","color","focusColor","textAlign","shape","display","withBackground","withBorder","isCondensed","margin","cursor","onClick","renderIcon","tabIndex","styles","makeStyles"],eh=(l=(0,b.w)((e,r,t)=>{let n=r.size,o=r.color,i=r.textAlign,l=r.shape,a=r.withBackground,s=r.withBorder,d=r.isCondensed,c=t.isDisabled,u=t.hasOnlyIconVisible,p={small:{content:{fontSize:e.smallFontSize,paddingLeft:e.smallPaddingHorizontal,paddingRight:e.smallPaddingHorizontal,...u&&{paddingLeft:0,paddingRight:0,height:e.smallHeight,width:e.smallHeight}},children:{paddingTop:e.smallPaddingTop,paddingBottom:e.smallPaddingBottom},iconSVG:{fontSize:d?e.smallFontSize:e.iconSizeSmall}},medium:{content:{fontSize:e.mediumFontSize,paddingLeft:e.mediumPaddingHorizontal,paddingRight:e.mediumPaddingHorizontal,...u&&{paddingLeft:0,paddingRight:0,height:e.mediumHeight,width:e.mediumHeight}},children:{paddingTop:e.mediumPaddingTop,paddingBottom:e.mediumPaddingBottom},iconSVG:{fontSize:d?e.mediumFontSize:e.iconSizeMedium}},large:{content:{fontSize:e.largeFontSize,paddingLeft:e.largePaddingHorizontal,paddingRight:e.largePaddingHorizontal,...u&&{paddingLeft:0,paddingRight:0,height:e.largeHeight,width:e.largeHeight}},children:{paddingTop:e.largePaddingTop,paddingBottom:e.largePaddingBottom},iconSVG:{fontSize:d?e.largeFontSize:e.iconSizeLarge}}},f={primary:a?{default:{color:e.primaryColor,background:e.primaryBackground,borderColor:e.primaryBorderColor},active:{background:e.primaryActiveBackground,boxShadow:e.primaryActiveBoxShadow},hover:{background:e.primaryHoverBackground}}:{default:{color:e.primaryGhostColor,borderColor:e.primaryGhostBorderColor,background:e.primaryGhostBackground},active:{background:e.primaryGhostActiveBackground,boxShadow:e.primaryGhostActiveBoxShadow},hover:{background:e.primaryGhostHoverBackground}},secondary:a?{default:{color:e.secondaryColor,background:e.secondaryBackground,borderColor:e.secondaryBorderColor},active:{background:e.secondaryActiveBackground,boxShadow:e.secondaryActiveBoxShadow},hover:{background:e.secondaryHoverBackground}}:{default:{color:e.secondaryGhostColor,borderColor:e.secondaryGhostBorderColor,background:e.secondaryGhostBackground},active:{background:e.secondaryGhostActiveBackground,boxShadow:e.secondaryGhostActiveBoxShadow},hover:{background:e.secondaryGhostHoverBackground}},"primary-inverse":a?{default:{color:e.primaryInverseColor,background:e.primaryInverseBackground,borderColor:e.primaryInverseBorderColor},active:{background:e.primaryInverseActiveBackground,boxShadow:e.primaryInverseActiveBoxShadow},hover:{background:e.primaryInverseHoverBackground}}:{default:{color:e.primaryInverseGhostColor,borderColor:e.primaryInverseGhostBorderColor,background:e.primaryInverseGhostBackground},active:{background:e.primaryInverseGhostActiveBackground,boxShadow:e.primaryInverseGhostActiveBoxShadow},hover:{background:e.primaryInverseGhostHoverBackground}},success:a?{default:{color:e.successColor,background:e.successBackground,borderColor:e.successBorderColor},active:{background:e.successActiveBackground,boxShadow:e.successActiveBoxShadow},hover:{background:e.successHoverBackground}}:{default:{color:e.successGhostColor,borderColor:e.successGhostBorderColor,background:e.successGhostBackground},active:{background:e.successGhostActiveBackground,boxShadow:e.successGhostActiveBoxShadow},hover:{background:e.successGhostHoverBackground}},danger:a?{default:{color:e.dangerColor,background:e.dangerBackground,borderColor:e.dangerBorderColor},active:{background:e.dangerActiveBackground,boxShadow:e.dangerActiveBoxShadow},hover:{background:e.dangerHoverBackground}}:{default:{color:e.dangerGhostColor,borderColor:e.dangerGhostBorderColor,background:e.dangerGhostBackground},active:{background:e.dangerGhostActiveBackground,boxShadow:e.dangerGhostActiveBoxShadow},hover:{background:e.dangerGhostHoverBackground}}};return{baseButton:{label:"baseButton",appearance:"none",textDecoration:"none",touchAction:"manipulation","&::-moz-focus-inner":{border:"0"},"*":{pointerEvents:"none"},"&:focus":{textDecoration:"none"},"&:active > [class$=-baseButton__content]":f[o].active,"&:hover > [class$=-baseButton__content]":f[o].hover},content:{label:"baseButton__content",boxSizing:"border-box",width:"100%",display:"block",direction:"inherit",userSelect:"none",transition:"background 0.2s, transform 0.2s",transform:e.transform,fontFamily:e.fontFamily,fontWeight:e.fontWeight,textTransform:e.textTransform,letterSpacing:e.letterSpacing,borderStyle:e.borderStyle,borderWidth:e.borderWidth,borderRadius:e.borderRadius,lineHeight:e.lineHeight,textAlign:i,"&:hover":{transform:e.hoverTransform},...p[n].content,...f[o].default,...{circle:{borderRadius:"50%"},rectangle:{}}[l],...d&&{paddingLeft:0,paddingRight:0},...c&&{opacity:.5},...u&&{lineHeight:1},...!s&&{borderStyle:"none"}},children:{label:"baseButton__children",display:"block",...p[n].children,...d&&{paddingTop:0,paddingBottom:0}},iconSVG:{label:"baseButton__iconSVG",display:"flex",alignItems:"center",...p[n].iconSVG},childrenLayout:{label:"baseButton__childrenLayout",display:"flex",height:"100%",width:"100%",justifyContent:u||"center"===i?"center":"flex-start",boxSizing:"border-box",alignItems:"center",flexDirection:"row",maxWidth:"100%",overflowX:"visible",overflowY:"visible",unicodeBidi:"isolate"},iconOnly:{label:"baseButton__iconOnly",boxSizing:"border-box",minWidth:"0.0625rem",flexShrink:0,maxWidth:"100%",overflowX:"visible",overflowY:"visible",unicodeBidi:"isolate"},iconWrapper:{label:"baseButton__iconWrapper",boxSizing:"border-box",minWidth:"0.0625rem",paddingInlineEnd:d?e.iconTextGapCondensed:e.iconTextGap,flexShrink:0,maxWidth:"100%",overflowX:"visible",overflowY:"visible",unicodeBidi:"isolate"},childrenWrapper:{label:"baseButton__childrenWrapper",boxSizing:"border-box",minWidth:"0.0625rem",flexShrink:1,maxWidth:"100%",overflowX:"visible",overflowY:"visible",unicodeBidi:"isolate"}}},ee),l(a=(0,h.j)()(((s=class e extends f.Component{constructor(...e){super(...e),this.ref=null,this.handleElementRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)},this.handleClick=e=>{let r=this.props.onClick;if("enabled"!==this.interaction){e.preventDefault(),e.stopPropagation();return}"function"==typeof r&&r(e)},this.handleKeyDown=e=>{let r=this.props,t=r.onClick,n=r.onKeyDown,o=r.href,i=this.interaction;"function"==typeof n&&n(e);let l=et().codes,a=l.space,s=l.enter;"button"!==this.elementType&&[a,s].includes(e.keyCode)&&(e.preventDefault(),e.stopPropagation(),"function"==typeof t&&"enabled"===i&&t(e),o&&this.ref&&this.ref.click())}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r,this.makeStylesVariables)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r,this.makeStylesVariables)}get makeStylesVariables(){return{isDisabled:this.isDisabled,hasOnlyIconVisible:this.hasOnlyIconVisible}}get hasOnlyIconVisible(){let e=this.props,r=e.children;return!!(e.renderIcon&&!(0,el.B)(r))}get elementType(){return(0,en.B)(e,this.props)}get interaction(){return(0,m.S)({props:this.props})}get isDisabled(){return"disabled"===this.interaction}get isReadOnly(){return"readonly"===this.interaction}get isEnabled(){return"enabled"===this.interaction}get focusColor(){let e=this.props,r=e.color,t=e.focusColor,n=e.withBackground;return t?t:"primary-inverse"===r&&n?"info":r.includes("inverse")?"inverse":"info"}get focused(){return function(e){let r=e&&(0,ei.m)(e);return!!r&&function(e){var r;let t=document.activeElement;return t&&(r=t).tagName.includes("-")&&customElements.get(r.tagName.toLowerCase())?t.shadowRoot.activeElement:t}()===r}(this.ref)}focus(){this.ref&&this.ref.focus()}renderChildren(){let e=this.props,r=e.renderIcon,t=e.children,n=e.styles,o=(0,es.tZ)("span",{css:null==n?void 0:n.children},t);if(!r)return o;let i=this.hasOnlyIconVisible,l=(0,es.tZ)("span",{css:null==n?void 0:n.iconSVG},(0,eo.A)(r)),a=i?(0,es.tZ)("span",{css:null==n?void 0:n.iconOnly},l,t):[(0,es.tZ)("span",{key:"icon",css:null==n?void 0:n.iconWrapper},l),(0,es.tZ)("span",{key:"children",css:null==n?void 0:n.childrenWrapper},o)];return(0,es.tZ)("span",{css:null==n?void 0:n.childrenLayout},a)}render(){let e=this.props,r=e.type,t=(e.size,e.elementRef,e.as),n=e.href,o=(e.color,e.focusColor,e.textAlign,e.shape),i=e.display,l=(e.withBackground,e.withBorder,e.isCondensed,e.margin),a=e.cursor,s=e.onClick,d=(e.renderIcon,e.tabIndex),c=e.styles,u=(e.makeStyles,(0,p.Z)(e,ef)),f=this.isDisabled,h=this.isEnabled,m=this.isReadOnly;return(0,es.tZ)(ea.G,Object.assign({},(0,g.r)(u),{as:this.elementType,focusColor:this.focusColor,position:"relative",display:i,width:"block"===i?"100%":"auto",borderRadius:"circle"===o?"circle":"medium",background:"transparent",padding:"none",borderWidth:"none",margin:l,cursor:f?"not-allowed":a,href:n,type:n?void 0:r,elementRef:this.handleElementRef,onClick:this.handleClick,onKeyDown:this.handleKeyDown,role:s&&"button"!==t?"button":void 0,tabIndex:s&&t?d||0:d,disabled:f||m,css:h?null==c?void 0:c.baseButton:null}),(0,es.tZ)("span",{css:null==c?void 0:c.content},this.renderChildren()))}}).displayName="BaseButton",s.componentId="BaseButton",s.propTypes=ep,s.allowedProps=["as","children","color","cursor","display","elementRef","focusColor","href","interaction","isCondensed","margin","onClick","onKeyDown","renderIcon","shape","size","tabIndex","textAlign","type","withBackground","withBorder"],s.defaultProps={type:"button",size:"medium",as:"button",interaction:void 0,color:"secondary",shape:"rectangle",display:"inline-block",textAlign:"start",withBackground:!0,withBorder:!0,isCondensed:!1,margin:"0",cursor:"pointer"},a=s))||a)||a),em={children:ec().node,type:ec().oneOf(["button","submit","reset"]),size:ec().oneOf(["small","medium","large"]),elementRef:ec().func,as:ec().elementType,interaction:ec().oneOf(["enabled","disabled","readonly"]),color:ec().oneOf(["primary","primary-inverse","secondary","success","danger"]),focusColor:ec().oneOf(["info","inverse"]),display:ec().oneOf(["inline-block","block"]),textAlign:ec().oneOf(["start","center"]),withBackground:ec().bool,margin:eu.j7.spacing,cursor:ec().string,href:ec().string,renderIcon:ec().oneOfType([ec().node,ec().func]),onClick:ec().func},eg=["children","type","size","as","color","focusColor","display","textAlign","withBackground","margin","cursor","href","renderIcon"],eb=(d=(0,b.w)(null,ee),d(c=(0,h.j)()(((u=class extends f.Component{constructor(...e){super(...e),this._buttonComponent=null,this.ref=null,this.handleElementRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)},this.handleButtonRef=e=>{this._buttonComponent=e}}get focused(){return this._buttonComponent&&this._buttonComponent.focused}focus(){this._buttonComponent&&this._buttonComponent.focus()}render(){let e=this.props,r=e.children,t=e.type,n=e.size,o=e.as,i=e.color,l=e.focusColor,a=e.display,s=e.textAlign,d=e.withBackground,c=e.margin,u=e.cursor,h=e.href,b=e.renderIcon,y=(0,p.Z)(e,eg),v=(0,m.S)({props:y}),w=this.props.themeOverride,x={...(0,g.r)(y),type:t,size:n,elementRef:this.handleElementRef,ref:this.handleButtonRef,as:o,color:i,interaction:v,focusColor:l,display:a,textAlign:s,withBackground:d,margin:c,cursor:u,href:h,renderIcon:b,themeOverride:w};return f.createElement(eh,x,r)}}).displayName="Button",u.componentId="Button",u.propTypes=em,u.allowedProps=["as","children","color","cursor","display","elementRef","focusColor","href","interaction","margin","renderIcon","size","textAlign","type","withBackground","onClick"],u.defaultProps={type:"button",size:"medium",as:"button",interaction:void 0,color:"secondary",display:"inline-block",textAlign:"center",withBackground:!0,margin:"0",cursor:"pointer"},c=u))||c)||c)},512:function(e,r,t){"use strict";function n(e){return(...r)=>t=>{if("function"!=typeof e)return t;{let n=t.displayName||t.name,o=e(t,...r);return o.displayName=n,o}}}t.d(r,{b:function(){return n}})},6459:function(e,r,t){"use strict";t.d(r,{m:function(){return function e(r){let t="function"==typeof r?r():r;if(t&&t===document)return document.documentElement;if(t instanceof Element||t===window||t&&void 0!==t.nodeType)return t;if(t){if(!o(t))return t.constructor.componentId?t.constructor.componentId:t.constructor.name,n.findDOMNode(t);{let r=i(t.ref)?t.ref.current:t.ref;return r instanceof HTMLElement?r:e(r)}}}}});var n=t(6321);let o=e=>!!e&&void 0!==e.ref,i=e=>!!e&&void 0!==e.current},9839:function(e,r,t){"use strict";t.d(r,{kC:()=>C});var n,o,i,l,a=t("4194"),s=t("5172"),d=t("4844"),c=t("9783"),u=t("3974"),p=t("9719"),f=t("3706"),h=t("4159"),m=t("9763"),g=t("7862"),b=t.n(g),y=t("1569");let v={children:b().node,as:b().elementType,elementRef:b().func,margin:y.j7.spacing,padding:y.j7.spacing,align:b().oneOf(["center","start","end","stretch"]),direction:b().oneOf(["row","column"]),textAlign:b().oneOf(["start","center","end"]),overflowX:b().oneOf(["auto","hidden","visible"]),overflowY:b().oneOf(["auto","hidden","visible"]),shouldGrow:b().bool,shouldShrink:b().bool,size:b().string,withVisualDebug:b().bool},w=(0,f.w)((e,r)=>{let t=r.shouldGrow,n=r.shouldShrink,o=r.align,i=r.size;return{flexItem:{label:"flexItem",boxSizing:"border-box",minWidth:"0.0625rem",flexBasis:i,flexShrink:n?1:0,...t&&{flexGrow:1},...o&&{alignSelf:({start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"})[o]}}}},null)(((o=class e extends a.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}render(){let r=(0,m.c)(this.props,e.allowedProps),t=this.props,n=t.as,o=t.children,i=t.withVisualDebug,l=t.textAlign,a=t.size,s=t.direction,d=t.margin,c=t.padding,u=t.overflowX,f=t.overflowY,g=t.styles,b="column"===s;return(0,h.tZ)(p.G,Object.assign({},r,{css:null==g?void 0:g.flexItem,elementRef:this.handleRef,as:n,minHeight:b?a:void 0,minWidth:"row"===s?a:void 0,textAlign:l,margin:d,padding:c,overflowX:u,overflowY:f||(b?"auto":"visible"),withVisualDebug:i}),o)}}).displayName="Item",o.componentId="Flex.Item",o.propTypes=v,o.allowedProps=["children","as","elementRef","margin","padding","align","direction","textAlign","overflowX","overflowY","shouldGrow","shouldShrink","size","withVisualDebug"],o.defaultProps={as:"span",shouldGrow:!1,shouldShrink:!1},n=o))||n;var x=t("4290"),k=t("7382");let S={children:b().oneOfType([b().node,b().func]),as:b().elementType,elementRef:b().func,height:b().oneOfType([b().string,b().number]),width:b().oneOfType([b().string,b().number]),margin:y.j7.spacing,padding:y.j7.spacing,gap:y.j7.spacing,display:b().oneOf(["flex","inline-flex"]),textAlign:b().oneOf(["start","center","end"]),direction:b().oneOf(["row","column","row-reverse","column-reverse"]),alignItems:b().oneOf(["center","start","end","stretch"]),justifyItems:b().oneOf(["center","start","end","space-around","space-between"]),wrap:b().oneOf(["wrap","no-wrap","wrap-reverse"]),withVisualDebug:b().bool},C=(0,f.w)((e,r)=>{let t,n,o=r.justifyItems,i=r.wrap,l=r.direction,a=r.gap,s=r.alignItems||("column"===l||"column-reverse"===l?"stretch":"center");return{flex:{label:"flex",fontFamily:e.fontFamily,boxSizing:"border-box",alignItems:({center:"center",start:"flex-start",end:"flex-end",stretch:"stretch"})[s],justifyContent:({start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"})[o],flexWrap:({wrap:"wrap","wrap-reverse":"wrap-reverse","no-wrap":void 0})[i],flexDirection:({column:"column","column-reverse":"column-reverse",row:"row","row-reverse":"row-reverse"})[l],gap:(t=a,n=e,(0,x.x)("Flex",n,t,"gap"))}}},e=>{let r=e.typography,t=e.spacing;return{...{fontFamily:null==r?void 0:r.fontFamily,...(0,k.L)("gap",t)}}})(((l=class extends a.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}renderChildren(e){return a.Children.map(e,e=>e?(0,s.x)(e,["Item"])?(0,d.i)(e,{withVisualDebug:this.props.withVisualDebug,...e.props,direction:this.props.direction.replace(/-reverse/,"")}):e:null)}render(){let e=this.props,r=e.as,t=e.withVisualDebug,n=e.height,o=e.display,i=e.margin,l=e.padding,s=e.textAlign,d=e.width,f=e.styles,m=e.gap,g=e.wrap,b=(0,c.A)(this.props.children);return((null==m?void 0:m.split(" ")).length>1,b&&a.Children.count(b)>0)?(0,h.tZ)(p.G,Object.assign({},(0,u.r)(this.props),{css:null==f?void 0:f.flex,elementRef:this.handleRef,as:r,display:o,width:d,height:n,margin:i,padding:l,textAlign:s,withVisualDebug:t}),this.renderChildren(b)):null}}).displayName="Flex",l.componentId="Flex",l.Item=w,l.propTypes=S,l.allowedProps=["children","as","elementRef","height","width","margin","padding","display","textAlign","direction","alignItems","justifyItems","wrap","withVisualDebug"],l.defaultProps={as:"span",direction:"row",justifyItems:"start",display:"flex",withVisualDebug:!1,wrap:"no-wrap",gap:"none"},i=l))||i},2462:function(e,r,t){"use strict";t.d(r,{X:()=>v});var n,o,i,l=t("3047"),a=t("4194"),s=t("9719"),d=t("8455"),c=t("3974"),u=t("9936"),p=t("3706"),f=t("4159"),h=t("7862"),m=t.n(h),g=t("1569");let b={border:m().oneOf(["none","top","bottom"]),children:function(e,r,t){if("input"===e.as){if("children"===r&&e.children||void 0==e.value)return Error(`Prop \`value\` and not \`children\` must be supplied if \`${t} as="input"\``)}else{if("value"===r&&void 0!=e.value)return Error(`Prop \`children\` and not \`value\` must be supplied unless \`${t} as="input"\``);if(!e.children)return Error(`Prop \`children\` should be supplied unless \`${t} as="input"\`.`)}return null},color:m().oneOf(["primary","secondary","primary-inverse","secondary-inverse","inherit"]),level:m().oneOf(["h1","h2","h3","h4","h5","reset"]),as:m().elementType,margin:g.j7.spacing,elementRef:m().func},y=["border","children","color","level","margin","elementRef","makeStyles"],v=(n=(0,p.w)((e,r)=>{let t=r.level,n=r.color,o=r.border,i={h1:{fontFamily:e.h1FontFamily,fontSize:e.h1FontSize,fontWeight:e.h1FontWeight},h2:{fontFamily:e.h2FontFamily,fontSize:e.h2FontSize,fontWeight:e.h2FontWeight},h3:{fontFamily:e.h3FontFamily,fontSize:e.h3FontSize,fontWeight:e.h3FontWeight},h4:{fontFamily:e.h4FontFamily,fontSize:e.h4FontSize,fontWeight:e.h4FontWeight},h5:{fontFamily:e.h5FontFamily,fontSize:e.h5FontSize,fontWeight:e.h5FontWeight},reset:{margin:0,fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"}},l={inherit:{color:"inherit"},primary:{color:e.primaryColor},secondary:{color:e.secondaryColor},"primary-inverse":{color:e.primaryInverseColor},"secondary-inverse":{color:e.secondaryInverseColor}},a={top:{paddingTop:e.borderPadding,borderTop:`${e.borderWidth} ${e.borderStyle} ${e.borderColor}`},bottom:{paddingBottom:e.borderPadding,borderBottom:`${e.borderWidth} ${e.borderStyle} ${e.borderColor}`},none:{}},s={outline:0,appearance:"none",boxSizing:"border-box",background:"none",border:"none",borderRadius:0,padding:0,margin:"-0.375rem 0 0 0",color:"inherit",height:"auto",width:"100%",lineHeight:"inherit",textAlign:"start",boxShadow:"none",display:"block","&:focus":{outline:"none"}};return{heading:{label:"heading",lineHeight:e.lineHeight,margin:0,"&:is(input)[type]":s,"&:-webkit-any(input)[type]":s,...i[t],...l[n],...a[o]}}},e=>{let r=e.typography,t=e.colors,n=e.spacing,o=e.borders,i=e.key,l={canvas:{primaryColor:e["ic-brand-font-color-dark"]},instructure:{h1FontFamily:null==r?void 0:r.fontFamilyHeading,h2FontFamily:null==r?void 0:r.fontFamilyHeading,h3FontWeight:null==r?void 0:r.fontWeightBold,h3FontSize:"2.125rem",h4FontWeight:null==r?void 0:r.fontWeightBold,h4FontSize:null==r?void 0:r.fontSizeLarge,h5FontWeight:null==r?void 0:r.fontWeightBold,h5FontSize:null==r?void 0:r.fontSizeMedium}};return{lineHeight:null==r?void 0:r.lineHeightCondensed,h1FontSize:null==r?void 0:r.fontSizeXXLarge,h1FontWeight:null==r?void 0:r.fontWeightBold,h1FontFamily:null==r?void 0:r.fontFamily,h2FontSize:null==r?void 0:r.fontSizeXLarge,h2FontWeight:null==r?void 0:r.fontWeightNormal,h2FontFamily:null==r?void 0:r.fontFamily,h3FontSize:null==r?void 0:r.fontSizeLarge,h3FontWeight:null==r?void 0:r.fontWeightBold,h3FontFamily:null==r?void 0:r.fontFamily,h4FontSize:null==r?void 0:r.fontSizeMedium,h4FontWeight:null==r?void 0:r.fontWeightBold,h4FontFamily:null==r?void 0:r.fontFamily,h5FontSize:null==r?void 0:r.fontSizeSmall,h5FontWeight:null==r?void 0:r.fontWeightNormal,h5FontFamily:null==r?void 0:r.fontFamily,primaryInverseColor:null==t?void 0:t.textLightest,primaryColor:null==t?void 0:t.textDarkest,secondaryColor:null==t?void 0:t.textDark,secondaryInverseColor:null==t?void 0:t.textLight,borderPadding:null==n?void 0:n.xxxSmall,borderColor:null==t?void 0:t.borderMedium,borderWidth:null==o?void 0:o.widthSmall,borderStyle:null==o?void 0:o.style,...l[i]}}),n(o=(0,u.j)()(((i=class e extends a.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}render(){var r;let t=this.props,n=(t.border,t.children),o=(t.color,t.level),i=t.margin,a=(t.elementRef,t.makeStyles,(0,l.Z)(t,y)),u=(0,d.B)(e,this.props,()=>"reset"===o?"span":o);return(0,f.tZ)(s.G,Object.assign({},(0,c.r)(a),{css:null===(r=this.props.styles)||void 0===r?void 0:r.heading,as:u,elementRef:this.handleRef,margin:i}),n)}}).displayName="Heading",i.componentId="Heading",i.propTypes=b,i.allowedProps=["border","children","color","level","as","margin","elementRef"],i.defaultProps={children:null,border:"none",color:"inherit",level:"h2"},o=i))||o)||o)},7934:function(e,r,t){"use strict";t.d(r,{j:()=>b});var n,o,i,l=t("3047"),a=t("4194"),s=t("9936"),d=t("3706"),c=t("4159"),u=t("3974"),p=t("9783"),f=t("7862"),h=t.n(f);let m={textAlign:h().oneOf(["start","center","end"]),renderLabel:h().oneOfType([h().func,h().node]),renderValue:h().oneOfType([h().func,h().node]),isGroupChild:h().bool},g=["textAlign","renderLabel","renderValue","isGroupChild"],b=(n=(0,d.w)((e,r)=>{let t=r.textAlign;return{metric:{label:"metric",display:"flex",flexDirection:"column-reverse",boxSizing:"border-box",padding:e.padding,fontFamily:e.fontFamily,textAlign:t},label:{label:"metric__label",fontSize:e.labelFontSize,color:e.labelColor},value:{label:"metric__value",fontWeight:e.valueFontWeight,fontSize:e.valueFontSize,color:e.valueColor}}},e=>{let r=e.colors,t=e.spacing,n=e.typography,o=e.key,i={canvas:{valueColor:e["ic-brand-font-color-dark"],labelColor:e["ic-brand-font-color-dark"]}};return{padding:`0 ${null==t?void 0:t.xSmall}`,fontFamily:null==n?void 0:n.fontFamily,valueColor:null==r?void 0:r.textDarkest,valueFontSize:null==n?void 0:n.fontSizeXLarge,valueFontWeight:null==n?void 0:n.fontWeightBold,labelColor:null==r?void 0:r.textDarkest,labelFontSize:null==n?void 0:n.fontSizeXSmall,...i[o]}}),n(o=(0,s.j)()(((i=class extends a.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}render(){var e,r,t;let n=this.props,o=(n.textAlign,n.renderLabel),i=n.renderValue,a=n.isGroupChild,s=(0,l.Z)(n,g);return(0,c.tZ)("div",Object.assign({},(0,u.r)(s),{role:a?"row":void 0,css:null===(e=this.props.styles)||void 0===e?void 0:e.metric,ref:this.handleRef}),(0,c.tZ)("div",{role:a?"rowheader":void 0,css:null===(r=this.props.styles)||void 0===r?void 0:r.label},(0,p.A)(o)),(0,c.tZ)("div",{role:a?"gridcell":void 0,css:null===(t=this.props.styles)||void 0===t?void 0:t.value},(0,p.A)(i)))}}).displayName="Metric",i.componentId="Metric",i.propTypes=m,i.allowedProps=["textAlign","renderLabel","renderValue","isGroupChild"],i.defaultProps={textAlign:"center",isGroupChild:!1},o=i))||o)||o)},7743:function(e,r,t){"use strict";t.d(r,{Y:()=>eq});var n,o,i,l,a,s,d,c,u,p,f,h,m,g,b,y,v,w,x,k,S,C,A,O,R,I,M,B,$,F,_,z,P,L,T=t("4194"),D=t("2508"),E=t.n(D),j=t("9763"),W=t("1377"),H=t("3047"),N=t("5501"),G=t("6254"),Z=t("5172"),V=t("4844"),U=t("3706"),X=t("4159"),q=t("4811"),Y=t("7862"),K=t.n(Y);let J=K().oneOfType([K().number,K().oneOf(["auto"])]),Q={children:K().node,colSpacing:K().oneOf(["none","small","medium","large"]),rowSpacing:K().oneOf(["none","small","medium","large"]),textAlign:K().oneOf(["start","end","center","inherit"]),hAlign:K().oneOf(["start","center","end","space-around","space-between"]),vAlign:K().oneOf(["top","middle","bottom","stretch"]),startAt:K().oneOf(["small","medium","large","x-large",null]),visualDebug:K().bool,width:K().oneOfType([J,K().shape({small:J,medium:J,large:J,xLarge:J})]),offset:K().oneOfType([J,K().shape({small:J,medium:J,large:J,xLarge:J})]),isLastRow:K().bool,isLastCol:K().bool,elementRef:K().func},ee=(0,U.w)((e,r)=>{let t=r.vAlign,n=r.textAlign,o=r.rowSpacing,i=r.colSpacing,l=r.isLastRow,a=r.isLastCol,s=r.startAt,d=r.visualDebug,c={small:{marginBottom:e.spacingSmall},medium:{marginBottom:e.spacingMedium},large:{marginBottom:e.spacingLarge},none:{marginBottom:0}},u=()=>{let r={small:{paddingLeft:`calc(${e.spacingSmall} / 2)`,paddingRight:`calc(${e.spacingSmall} / 2)`},medium:{paddingLeft:`calc(${e.spacingMedium} / 2)`,paddingRight:`calc(${e.spacingMedium} / 2)`},large:{paddingLeft:`calc(${e.spacingLarge} / 2)`,paddingRight:`calc(${e.spacingLarge} / 2)`},none:{}};return{flexGrow:1,flexShrink:1,flexBasis:"0%",marginBottom:0,boxSizing:"border-box",...i&&r[i],...t&&({top:{alignSelf:"flex-start"},middle:{alignSelf:"center"},bottom:{alignSelf:"flex-end"},stretch:{alignSelf:"stretch"}})[t],...n&&({start:{textAlign:"start"},end:{textAlign:"end"},center:{textAlign:"center"},inherit:{textAlign:"inherit"}})[n]}},p=()=>{let e=["small","medium","large","x-large",null];return e.slice(e.indexOf(s))},f=e=>p().includes(e),h=e=>{let t=r.width;if(t)return t&&"object"==typeof t&&(t=t["x-large"===e?"xLarge":e]),t},m=e=>{let t=r.offset;if(t)return t&&"object"==typeof t&&(t=t["x-large"===e?"xLarge":e]),t},g=(e="1")=>{switch(e){case"auto":return{flexGrow:0,flexShrink:0,flexBasis:"auto"};case 12:return{flex:"0 0 100%"};default:return{flexGrow:0,flexShrink:0,flexBasis:`calc(${e} / 12 * 99.999%)`,maxWidth:`calc(${e} / 12 * 99.999%)`}}},b=(e="1")=>{switch(e){case"auto":case 12:return{};default:return{marginInlineStart:`calc(${e} / 12 * 99.999%)`,marginInlineEnd:0}}},y=e=>s&&s===e?{...u()}:{},v=e=>{let r=h(e),t=m(e);return f(e)?{...r&&g(r),...t&&b(t)}:{}},w=e=>({...y(e),...v(e)});return{gridCol:{label:"gridCol",display:"block",boxSizing:"border-box",textAlign:"inherit",minWidth:"0.0625rem",...o&&c[o],...l&&a&&{marginBottom:0},...w("small"),[`@media screen and (${e.mediumMin})`]:{...w("medium")},[`@media screen and (${e.largeMin})`]:{...w("large")},[`@media screen and (${e.xLargeMin})`]:{...w("x-large")},...d&&{outline:"0.0625rem dashed red"}}}},e=>{let r=e.spacing,t=e.media;return{...{spacingSmall:null==r?void 0:r.small,spacingMedium:null==r?void 0:r.medium,spacingLarge:null==r?void 0:r.large,...t}}})(((o=class e extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)}}widthCheck(){let e=this.props.width,r=!1;e&&("number"==typeof e&&e<=0&&(r=!0),"object"==typeof e&&Object.keys(e).forEach(t=>{"number"==typeof e[t]&&e[t]<=0&&(r=!0)})),r&&(0,q.yN)(!1,"Col width must be positive!")}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r),this.widthCheck()}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r),this.widthCheck()}render(){let r=this.props,t=r.children,n=r.styles,o=(0,j.c)(this.props,e.allowedProps);return(0,X.tZ)("span",Object.assign({},o,{ref:this.handleRef,css:null==n?void 0:n.gridCol}),t)}}).displayName="GridCol",o.componentId="Grid.Col",o.propTypes=Q,o.allowedProps=["children","colSpacing","rowSpacing","textAlign","hAlign","vAlign","startAt","visualDebug","width","offset","isLastRow","isLastCol","elementRef"],o.defaultProps={textAlign:"inherit",children:null,isLastCol:!1,isLastRow:!1},n=o))||n;function er(e){return function(r,t,n,o="",i=""){let l=r[t];return null==l?Error(`The prop \`${t}\` is marked as required in \`${n}\`, but its value is \`${l}\``):e(r,t,n,o,i)}}let et={oneOf(e){function r(r,t,n){let o=T.Children.toArray(r[t]),i=e.map(e=>e?en(e):e);for(let e=0;ei.indexOf(e))return Error(`Expected one of ${i.join(", ")} in ${n} but found '${e}'`)}else if(r)return Error(`Expected one of ${i.join(", ")} in ${n} but found an element with unknown type: ${r}`)}return null}return r.isRequired=er(r),r},oneOfEach:e=>function(r,t,n){let o=T.Children.toArray(r[t]),i={},l=e.map(e=>{let r=en(e);return i[r]=0,r});for(let e=0;el.indexOf(e))return Error(`Expected one of ${l.join(", ")} in ${n} but found '${e}'`);i[e]=(i[e]||0)+1}else if(r)return Error(`Expected one of ${l.join(", ")} in ${n} but found an element of unknown type: ${r}`)}let a=[];return(Object.keys(i).forEach(e=>{i[e]>1&&a.push(`${i[e]} children of type ${e}`),0===i[e]&&a.push(`0 children of type ${e}`)}),a.length>0)?Error(`Expected exactly one of each ${l.join(", ")} in ${n} but found:${a.join("\n")}`):null},enforceOrder(...e){function r(e,r){let t=r.map(e=>e?en(e):"??").map(e=>` <${e} />`).join("\n");return`<${e}> +${t} +`}function t(t,n,o){var i;let l=T.Children.toArray(t[n]).map(e=>e&&e.type?en(e.type):e?null:void 0);for(let r=0;re?en(e):"??")))return null;return Error(`Expected children of ${o} in one of the following formats: + ${(i=o,e.map(e=>r(i,e)).join("\n\n"))} + + + Instead of: + ${r(o,l)}`)}return t.isRequired=er(t),t}},en=e=>"string"==typeof e?e:e.displayName||e.name,eo={children:et.oneOf([ee,G.c]),rowSpacing:K().oneOf(["none","small","medium","large"]),colSpacing:K().oneOf(["none","small","medium","large"]),hAlign:K().oneOf(["start","center","end","space-around","space-between"]),vAlign:K().oneOf(["top","middle","bottom","stretch"]),startAt:K().oneOf(["small","medium","large","x-large",null]),visualDebug:K().bool,isLastRow:K().bool},ei=["styles","makeStyles"],el=["styles"],ea=(0,U.w)((e,r)=>{let t=r.hAlign,n=r.vAlign,o=r.rowSpacing,i=r.colSpacing,l=r.isLastRow,a=r.startAt,s=r.visualDebug,d=()=>{let r={small:{margin:`0 calc(-1 * ${e.spacingSmall} / 2)`},medium:{margin:`0 calc(-1 * ${e.spacingMedium} / 2)`},large:{margin:`0 calc(-1 * ${e.spacingLarge} / 2)`},none:{}},a={small:{marginBottom:e.spacingSmall},medium:{marginBottom:e.spacingMedium},large:{marginBottom:e.spacingLarge},none:{marginBottom:0}};return{display:"flex",flexFlow:"row nowrap",...t&&({center:{justifyContent:"center"},start:{justifyContent:"flex-start"},end:{justifyContent:"flex-end"},"space-around":{justifyContent:"space-around"},"space-between":{justifyContent:"space-between"}})[t],...n&&({top:{alignItems:"flex-start"},middle:{alignItems:"center"},bottom:{alignItems:"flex-end"},stretch:{alignItems:"stretch"}})[n],...i&&r[i],...o&&a[o],...l&&{marginBottom:0}}},c=e=>a&&a===e?{...d()}:{};return{gridRow:{label:"gridRow",display:"block",boxSizing:"border-box",...c("small"),[`@media screen and (${e.mediumMin})`]:{...c("medium")},[`@media screen and (${e.largeMin})`]:{...c("large")},[`@media screen and (${e.xLargeMin})`]:{...c("x-large")},...s&&{outline:"0.0625rem dashed blue"}}}},e=>{let r=e.spacing,t=e.media;return{...{spacingSmall:null==r?void 0:r.small,spacingMedium:null==r?void 0:r.medium,spacingLarge:null==r?void 0:r.large,...t}}})(((l=class e extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}renderChildren(){let r=this.props,t=(r.styles,r.makeStyles,(0,H.Z)(r,ei));return T.Children.map(this.props.children,(r,n)=>(0,Z.x)(r,[ee])?(0,V.i)(r,{...(0,W.H)(t,e.allowedProps),...r.props,isLastRow:t.isLastRow,isLastCol:n+1===T.Children.count(this.props.children)}):r)}render(){let r=this.props,t=r.styles,n=(0,H.Z)(r,el),o=(0,j.c)(n,e.allowedProps);return(0,X.tZ)("span",Object.assign({},o,{css:null==t?void 0:t.gridRow,ref:this.handleRef}),this.renderChildren())}}).displayName="GridRow",l.componentId="Grid.Row",l.propTypes=eo,l.allowedProps=["children","rowSpacing","colSpacing","hAlign","vAlign","startAt","visualDebug","isLastRow"],l.defaultProps={children:null,isLastRow:!1},i=l))||i,es={children:et.oneOf([ea,G.c]),colSpacing:K().oneOf(["none","small","medium","large"]),rowSpacing:K().oneOf(["none","small","medium","large"]),hAlign:K().oneOf(["start","center","end","space-around","space-between"]),vAlign:K().oneOf(["top","middle","bottom","stretch"]),startAt:K().oneOf(["small","medium","large","x-large",null]),visualDebug:K().bool},ed=["styles","makeStyles"],ec=["styles"],eu=(0,U.w)((e,r)=>{let t=r.startAt,n=r.visualDebug,o=e=>t&&t===e?{boxSizing:"border-box"}:{};return{grid:{label:"grid",display:"block",...o("small"),[`@media screen and (${e.mediumMin})`]:{...o("medium")},[`@media screen and (${e.largeMin})`]:{...o("large")},[`@media screen and (${e.xLargeMin})`]:{...o("x-large")},...n&&{outline:"0.0625rem dashed red"}}}},e=>{let r=e.spacing,t=e.media;return{...{spacingSmall:null==r?void 0:r.small,spacingMedium:null==r?void 0:r.medium,spacingLarge:null==r?void 0:r.large,...t}}})(((s=class e extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}renderChildren(){let r=this.props,t=(r.styles,r.makeStyles,(0,H.Z)(r,ed)),n=T.Children.toArray(this.props.children);return n.map((r,o)=>(0,Z.x)(r,[ea])?(0,V.i)(r,{...(0,W.H)(t,e.allowedProps),...r.props,isLastRow:o+1===n.length}):r)}render(){let r=this.props,t=r.styles,n=(0,H.Z)(r,ec),o=(0,j.c)(n,e.allowedProps);return(0,X.tZ)("span",Object.assign({},o,{css:null==t?void 0:t.grid,ref:this.handleRef}),this.renderChildren())}}).displayName="Grid",s.componentId="Grid",s.propTypes=es,s.allowedProps=["children","colSpacing","rowSpacing","hAlign","vAlign","startAt","visualDebug"],s.defaultProps={colSpacing:"medium",rowSpacing:"medium",hAlign:"start",startAt:"small",vAlign:"top",visualDebug:!1,children:null},s.Row=ea,s.Col=ee,a=s))||a;var ep=t("63"),ef=t.n(ep);let eh=new Map,em=T.createContext(eh);var eg=t("512");let eb=(e,r)=>(r.has(e)?r.set(e,r.get(e)+1):r.set(e,0),`${e}_${r.get(e)}`),ey=(0,eg.b)(e=>{let r=(0,T.forwardRef)((r,t)=>{let n=e.componentId||e.displayName||e.name,o=(0,T.useContext)(em);return r.deterministicId&&(0,q.ZK)(!1,`Manually passing the "deterministicId" property is not allowed on the ${n} component. +`,r.deterministicId),T.createElement(e,Object.assign({ref:t,deterministicId:(e=n)=>eb(e,o)},r))});return ef()(r,e),r.propTypes=e.propTypes,r.defaultProps=e.defaultProps,r.allowedProps=e.allowedProps,r.originalType=e.originalType||e,r});var ev=t("8455");let ew={children:K().node.isRequired,as:K().elementType},ex=(0,U.w)((e,r)=>{let t=r.children,n={all:"initial",display:"block",...(0,N.B)(t)&&{color:e.color,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,margin:0,textAlign:"inherit"}};return{formFieldLabel:{label:"formFieldLabel",...n,"&:is(label)":n,"&:-webkit-any(label)":n}}},e=>{let r=e.colors,t=e.typography,n=e.key,o={canvas:{color:e["ic-brand-font-color-dark"]}};return{color:null==r?void 0:r.textDarkest,fontFamily:null==t?void 0:t.fontFamily,fontWeight:null==t?void 0:t.fontWeightBold,fontSize:null==t?void 0:t.fontSizeMedium,lineHeight:null==t?void 0:t.lineHeightFit,...o[n]}})(((c=class e extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}render(){let r=(0,ev.B)(e,this.props),t=this.props,n=t.styles,o=t.children;return(0,X.tZ)(r,Object.assign({},(0,j.c)(this.props,e.allowedProps),{css:null==n?void 0:n.formFieldLabel,ref:this.handleRef}),o)}}).displayName="FormFieldLabel",c.componentId="FormFieldLabel",c.propTypes=ew,c.allowedProps=["as","children"],c.defaultProps={as:"span"},d=c))||d;var ek=t("9936");let eS={children:K().node,src:K().string,title:K().string,description:K().string,focusable:K().bool,width:K().oneOfType([K().string,K().number]),height:K().oneOfType([K().string,K().number]),inline:K().bool,color:K().oneOf(["inherit","primary","secondary","primary-inverse","secondary-inverse","success","error","alert","warning","brand","auto"]),elementRef:K().func},eC=["style","title","description","focusable","children","src","styles"],eA=(u=ey(),p=(0,U.w)((e,r)=>{let t=r.inline,n=r.color;return{inlineSVG:{label:"inlineSVG",fill:"currentColor",display:t?"inline-block":"block",overflow:"visible",...{inherit:{color:"inherit"},primary:{color:e.primaryColor},secondary:{color:e.secondaryColor},"primary-inverse":{color:e.primaryInverseColor},"secondary-inverse":{color:e.secondaryInverseColor},success:{color:e.successColor},brand:{color:e.brandColor},warning:{color:e.warningColor},error:{color:e.errorColor},alert:{color:e.alertColor},auto:{}}[n]}}},e=>{let r=e.colors,t=e.key,n={canvas:{primaryColor:e["ic-brand-font-color-dark"],brandColor:e["ic-brand-primary"]}};return{primaryInverseColor:null==r?void 0:r.textLightest,primaryColor:null==r?void 0:r.textDarkest,secondaryColor:null==r?void 0:r.textDark,secondaryInverseColor:null==r?void 0:r.textLight,warningColor:null==r?void 0:r.textWarning,brandColor:null==r?void 0:r.textBrand,errorColor:null==r?void 0:r.textDanger,alertColor:null==r?void 0:r.textAlert,successColor:null==r?void 0:r.textSuccess,...n[t]}}),u(f=p(f=(0,ek.j)()(((h=class e extends T.Component{constructor(e){super(e),this.titleId=void 0,this.descId=void 0,this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)},this.titleId=e.deterministicId("InlineSVG-title"),this.descId=e.deterministicId("InlineSVG-desc")}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}get role(){return this.props.title?"img":"presentation"}renderTitle(){let e=this.props.title;return e?(0,X.tZ)("title",{id:this.titleId},e):null}renderDesc(e){return e?(0,X.tZ)("desc",{id:this.descId},e):null}get labelledBy(){let e=[];return this.props.title&&e.push(this.titleId),this.props.description&&e.push(this.descId),e.length>0?e.join(" "):void 0}renderContent(){if(!this.props.src)return(0,X.tZ)("g",{role:"presentation"},this.props.children);{let r=e.prepareSrc(this.props.src);return(0,X.tZ)("g",{role:"presentation",dangerouslySetInnerHTML:{__html:r}})}}render(){let r=this.props,t=r.style,n=r.title,o=r.description,i=r.focusable,l=(r.children,r.src),a=r.styles,s=(0,H.Z)(r,eC),d="auto"===this.props.width?void 0:this.props.width,c="auto"===this.props.height?void 0:this.props.height;return(0,X.tZ)("svg",Object.assign({},function(e){let r={},t=/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g;if("string"==typeof e){let n=/]*)\s*>/.exec(e),o=n?n[1]:"",i=["xmlns","xmlns:xlink","version"],l=t.exec(o);for(;null!=l;)-1===i.indexOf(l[1])&&(r[l[1]]=l[2]||(l[3]?l[3]:l[4]?l[4]:l[5])||l[1]),l=t.exec(o)}return r}(l),(0,j.c)(this.props,e.allowedProps,["inline"]),{style:{...t,width:d,height:c},width:d,height:c,"aria-hidden":n?void 0:"true","aria-labelledby":this.labelledBy,role:this.role,focusable:i?"true":"false",css:null==a?void 0:a.inlineSVG,className:s.className,ref:this.handleRef}),this.renderTitle(),this.renderDesc(o),this.renderContent())}}).displayName="InlineSVG",h.componentId="InlineSVG",h.allowedProps=["children","src","title","description","focusable","width","height","inline","color","elementRef"],h.propTypes=eS,h.defaultProps={focusable:!1,src:"",title:"",description:"",inline:!0,width:"1em",height:"1em",color:"inherit"},h.prepareSrc=e=>{let r=/]*>((.|[\n\r])*)<\/svg>/.exec(e);return r?r[1]:e},f=h))||f)||f)||f),eO={...eA.propTypes,rotate:K().oneOf(["0","90","180","270"]),size:K().oneOf(["x-small","small","medium","large","x-large"]),bidirectional:K().bool},eR=["rotate","className","themeOverride","size","bidirectional","makeStyles","styles"],eI=["sizeXSmall","sizeSmall","sizeMedium","sizeLarge","sizeXLarge"],eM=(m=(0,U.w)((e,r)=>{let t=r.rotate,n=r.size,o=r.bidirectional,i={"x-small":{fontSize:e.sizeXSmall},small:{fontSize:e.sizeSmall},medium:{fontSize:e.sizeMedium},large:{fontSize:e.sizeLarge},"x-large":{fontSize:e.sizeXLarge}};return{svgIcon:{label:"svgIcon",verticalAlign:"middle",lineHeight:1,width:"1em",height:"1em",...{0:{},90:{transform:"rotate(90deg)"},180:{transform:"rotate(180deg)"},270:{transform:"rotate(270deg)"}}[t],...n&&i[n],...o&&{'[dir="rtl"] &':({0:{transform:"scale3d(-1, 1, 1)"},90:{transform:"scale3d(-1, 1, 1) rotate(90deg)"},180:{transform:"scale3d(-1, 1, 1) rotate(180deg)"},270:{transform:"scale3d(-1, 1, 1) rotate(270deg)"}})[t]}}}},()=>({sizeXSmall:"1.125rem",sizeSmall:"2rem",sizeMedium:"3rem",sizeLarge:"5rem",sizeXLarge:"10rem"})),m(g=(0,ek.j)()(((b=class extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}render(){let e=this.props,r=e.rotate,t=e.className,n=e.themeOverride,o=(e.size,e.bidirectional,e.makeStyles,e.styles),i=(0,H.Z)(e,eR);n.sizeXSmall,n.sizeSmall,n.sizeMedium,n.sizeLarge,n.sizeXLarge;let l=(0,H.Z)(n,eI);return(0,X.tZ)(eA,Object.assign({},i,{themeOverride:l,rotate:r,css:null==o?void 0:o.svgIcon,className:t,elementRef:this.handleRef}))}}).displayName="SVGIcon",b.componentId="SVGIcon",b.allowedProps=["children","src","title","description","focusable","width","height","inline","color","elementRef","rotate","size","bidirectional"],b.propTypes=eO,b.defaultProps={rotate:"0",bidirectional:!1},g=b))||g)||g);class eB extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)}}render(){return T.createElement(eM,Object.assign({},this.props,{name:"IconWarning",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),y||(y=T.createElement("path",{d:"M960 0c530.193 0 960 429.807 960 960s-429.807 960-960 960S0 1490.193 0 960 429.807 0 960 0Zm-9.838 1342.685c-84.47 0-153.19 68.721-153.19 153.19 0 84.47 68.72 153.192 153.19 153.192s153.19-68.721 153.19-153.191-68.72-153.19-153.19-153.19ZM1153.658 320H746.667l99.118 898.623h208.755L1153.658 320Z",fillRule:"evenodd"})))}}eB.glyphName="warning",eB.variant="Solid",eB.displayName="IconWarningSolid",eB.propTypes={...eM.propTypes},eB.allowedProps=[...eM.allowedProps];let e$=K().oneOf(["error","newError","hint","success","screenreader-only"]),eF=K().node,e_={message:K().shape({type:e$,text:eF})},ez=(0,U.w)((e,r)=>{let t=r.variant,n={hint:{color:e.colorHint},error:{color:e.colorError},newError:{color:e.colorError},success:{color:e.colorSuccess},"screenreader-only":{}};return{errorIcon:{fontSize:e.fontSize,marginRight:e.errorIconMarginRight,lineHeight:1.25},formFieldMessage:{label:"formFieldMessage",fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,display:"block",...n[t]}}},e=>{let r=e.colors,t=e.typography,n=e.key,o=e.spacing,i={canvas:{colorHint:e["ic-brand-font-color-dark"]}};return{colorHint:null==r?void 0:r.textDarkest,colorError:null==r?void 0:r.textDanger,colorSuccess:null==r?void 0:r.textSuccess,fontFamily:null==t?void 0:t.fontFamily,fontWeight:null==t?void 0:t.fontWeightNormal,fontSize:null==t?void 0:t.fontSizeSmall,lineHeight:null==t?void 0:t.lineHeight,errorIconMarginRight:o.xxSmall,...i[n]}})(((w=class extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}render(){let e=this.props,r=e.children,t=e.styles;return"screenreader-only"!==this.props.variant?(0,X.tZ)("span",{css:{display:"flex"}},"newError"===this.props.variant&&(0,X.tZ)("span",{css:null==t?void 0:t.errorIcon},x||(x=(0,X.tZ)(eB,{color:"error"}))),(0,X.tZ)("span",{css:null==t?void 0:t.formFieldMessage,ref:this.handleRef},r)):(0,X.tZ)(G.c,{elementRef:this.handleRef},r)}}).displayName="FormFieldMessage",w.componentId="FormFieldMessage",w.propTypes={variant:e$,children:eF},w.allowedProps=["variant","children"],w.defaultProps={variant:"hint"},v=w))||v,eP={messages:K().arrayOf(e_.message)},eL=(0,U.w)(e=>({formFieldMessages:{label:"formFieldMessages",padding:0,display:"block",margin:`calc(-1 * ${e.topMargin}) 0 0 0`},message:{label:"formFieldMessages__message",display:"block"}}),e=>{let r=e.spacing;return{topMargin:null==r?void 0:r.xxSmall}})(((S=class e extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}render(){let r=this.props,t=r.messages,n=r.styles;return t&&t.length>0?(0,X.tZ)("span",Object.assign({css:null==n?void 0:n.formFieldMessages},(0,j.c)(this.props,e.allowedProps),{ref:this.handleRef}),t.map((e,r)=>(0,X.tZ)("span",{key:`error${r}`,css:null==n?void 0:n.message},(0,X.tZ)(ez,{variant:e.type},e.text)))):null}}).displayName="FormFieldMessages",S.componentId="FormFieldMessages",S.propTypes=eP,S.allowedProps=["messages"],S.defaultProps={},k=S))||k,eT={label:K().node.isRequired,id:K().string,as:K().elementType,messages:K().arrayOf(e_.message),messagesId:K().string,children:K().node,inline:K().bool,layout:K().oneOf(["stacked","inline"]),labelAlign:K().oneOf(["start","end"]),vAlign:K().oneOf(["top","middle","bottom"]),width:K().string,inputContainerRef:K().func,elementRef:K().func,isGroup:K().bool},eD=["makeStyles","styles","messages","isGroup"],eE=(C=ey(),C(A=(0,U.w)((e,r)=>({groupErrorMessage:{margin:"0.5rem 0"},formFieldLayout:{label:"formFieldLayout",all:"initial",border:"0",padding:"0",margin:"0",minWidth:"0",direction:"inherit",textAlign:"start",opacity:"inherit",display:"block",width:"100%",...r.inline&&{display:"inline-block",verticalAlign:"middle",width:"auto"}}}),null)(((O=class e extends T.Component{constructor(e){super(e),this._messagesId=void 0,this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)},this.handleInputContainerRef=e=>{"function"==typeof this.props.inputContainerRef&&this.props.inputContainerRef(e)},this._messagesId=e.messagesId||e.deterministicId(),(0,q.H)(void 0!==e.width||!e.inline||"inline"!==e.layout,`[FormFieldLayout] The 'inline' prop is true, and the 'layout' is set to 'inline'. + This will cause a layout issue in Internet Explorer 11 unless you also add a value for the 'width' prop.`)}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}get hasVisibleLabel(){return this.props.label&&(0,N.B)(this.props.label)}get hasMessages(){return this.props.messages&&this.props.messages.length>0}get elementType(){return(0,ev.B)(e,this.props)}get inlineContainerAndLabel(){return this.props.inline&&"inline"===this.props.layout}renderLabel(){return this.hasVisibleLabel?(0,X.tZ)(eu.Col,{textAlign:this.props.labelAlign,width:this.inlineContainerAndLabel?"auto":3},(0,X.tZ)(ex,{"aria-hidden":"fieldset"===this.elementType?"true":void 0},this.props.label)):"fieldset"!==this.elementType?this.props.label:null}renderLegend(){return(0,X.tZ)(G.c,{as:"legend"},this.props.label,this.hasMessages&&(0,X.tZ)(eL,{messages:this.props.messages}))}renderVisibleMessages(){return this.hasMessages?(0,X.tZ)(eu.Row,null,(0,X.tZ)(eu.Col,{offset:this.inlineContainerAndLabel?void 0:3,textAlign:this.inlineContainerAndLabel?"end":void 0},(0,X.tZ)(eL,{id:this._messagesId,messages:this.props.messages}))):null}render(){let r=this.elementType,t=this.props,n=(t.makeStyles,t.styles),o=t.messages,i=t.isGroup,l=(0,H.Z)(t,eD),a=l.width,s=l.layout,d=l.children,c=!!(null!=o&&o.find(e=>"newError"===e.type))&&i;return(0,X.tZ)(r,Object.assign({},(0,j.c)(l,[...e.allowedProps,...eu.allowedProps]),{css:null==n?void 0:n.formFieldLayout,style:{width:a},"aria-describedby":this.hasMessages?this._messagesId:void 0,ref:this.handleRef}),"fieldset"===this.elementType&&this.renderLegend(),(0,X.tZ)(eu,Object.assign({rowSpacing:"small",colSpacing:"small",startAt:"inline"===s&&this.hasVisibleLabel?"medium":null},(0,W.H)(l,eu.allowedProps)),(0,X.tZ)(eu.Row,null,this.renderLabel(),(0,X.tZ)(eu.Col,{width:this.inlineContainerAndLabel?"auto":void 0,elementRef:this.handleInputContainerRef},c&&(0,X.tZ)("div",{css:null==n?void 0:n.groupErrorMessage},this.renderVisibleMessages()),d)),!c&&this.renderVisibleMessages()))}}).displayName="FormFieldLayout",O.componentId="FormFieldLayout",O.propTypes=eT,O.allowedProps=["label","id","as","messages","messagesId","children","inline","layout","labelAlign","width","inputContainerRef","elementRef"],O.defaultProps={inline:!1,layout:"stacked",as:"label",labelAlign:"end"},A=O))||A)||A),ej={label:K().node.isRequired,id:K().string.isRequired,messages:K().arrayOf(e_.message),messagesId:K().string,children:K().node,inline:K().bool,layout:K().oneOf(["stacked","inline"]),labelAlign:K().oneOf(["start","end"]),vAlign:K().oneOf(["top","middle","bottom"]),width:K().string,inputContainerRef:K().func,elementRef:K().func};class eW extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)}}render(){return T.createElement(eE,Object.assign({},(0,j.c)(this.props,eW.allowedProps),(0,W.H)(this.props,eE.allowedProps),{label:this.props.label,vAlign:this.props.vAlign,as:"label",htmlFor:this.props.id,elementRef:this.handleRef}))}}eW.displayName="FormField",eW.componentId="FormField",eW.propTypes=ej,eW.allowedProps=["label","id","messages","messagesId","children","inline","layout","labelAlign","vAlign","width","inputContainerRef","elementRef"],eW.defaultProps={inline:!1,layout:"stacked",labelAlign:"end",vAlign:"middle"};let eH={description:K().node.isRequired,as:K().elementType,messages:K().arrayOf(e_.message),messagesId:K().string,disabled:K().bool,children:K().node,layout:K().oneOf(["stacked","columns","inline"]),rowSpacing:K().oneOf(["none","small","medium","large"]),colSpacing:K().oneOf(["none","small","medium","large"]),vAlign:K().oneOf(["top","middle","bottom"]),startAt:K().oneOf(["small","medium","large","x-large",null]),elementRef:K().func},eN=["styles","makeStyles"];(0,U.w)((e,r,t)=>{let n=r.disabled,o=t.invalid;return{formFieldGroup:{label:"formFieldGroup",border:`${e.borderWidth} ${e.borderStyle} ${e.borderColor}`,borderRadius:e.borderRadius,display:"block",...o&&{borderColor:e.errorBorderColor,padding:e.errorFieldsPadding},...n&&{opacity:.6,cursor:"not-allowed",pointerEvents:"none"}}}},e=>{let r=e.borders,t=e.colors,n=e.spacing;return{borderWidth:null==r?void 0:r.widthSmall,borderStyle:null==r?void 0:r.style,borderColor:"transparent",borderRadius:null==r?void 0:r.radiusMedium,errorBorderColor:null==t?void 0:t.borderDanger,errorFieldsPadding:null==n?void 0:n.xSmall}})(((I=class e extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)}}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r,this.makeStylesVariables)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r,this.makeStylesVariables)}get makeStylesVariables(){return{invalid:this.invalid}}get invalid(){return!!this.props.messages&&this.props.messages.findIndex(e=>"error"===e.type)>=0}renderColumns(){return T.Children.map(this.props.children,(e,r)=>e?(0,X.tZ)(eu.Col,{width:e.props&&e.props.width?"auto":void 0,key:r},e):null)}renderChildren(){return(0,X.tZ)(eu,{colSpacing:this.props.colSpacing,rowSpacing:this.props.rowSpacing,vAlign:this.props.vAlign,startAt:this.props.startAt||("columns"===this.props.layout?"medium":null)},(0,X.tZ)(eu.Row,null,this.renderColumns()))}renderFields(){let e=this.props.styles;return(0,X.tZ)("span",{key:"fields",css:null==e?void 0:e.formFieldGroup},this.renderChildren())}render(){let r=this.props,t=(r.styles,r.makeStyles,(0,H.Z)(r,eN));return(0,X.tZ)(eE,Object.assign({},(0,j.c)(t,e.allowedProps),(0,W.H)(t,eE.allowedProps),{vAlign:t.vAlign,layout:"inline"===t.layout?"inline":"stacked",label:t.description,"aria-disabled":t.disabled?"true":void 0,"aria-invalid":this.invalid?"true":void 0,elementRef:this.handleRef,isGroup:!0}),this.renderFields())}}).displayName="FormFieldGroup",I.componentId="FormFieldGroup",I.propTypes=eH,I.allowedProps=["description","as","messages","messagesId","disabled","children","layout","rowSpacing","colSpacing","vAlign","startAt","elementRef"],I.defaultProps={as:"fieldset",disabled:!1,rowSpacing:"medium",colSpacing:"small",vAlign:"middle"},R=I));class eG extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)}}render(){return T.createElement(eM,Object.assign({},this.props,{name:"IconArrowOpenUp",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),M||(M=T.createElement("path",{d:"m.153 1393.854 92.168 92.299 867.767-867.636 867.636 867.636 92.429-92.299L960.088 433.92z",fillRule:"evenodd"})))}}eG.glyphName="arrow-open-up",eG.variant="Line",eG.displayName="IconArrowOpenUpLine",eG.propTypes={...eM.propTypes},eG.allowedProps=[...eM.allowedProps];class eZ extends T.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let r=this.props.elementRef;this.ref=e,"function"==typeof r&&r(e)}}render(){return T.createElement(eM,Object.assign({},this.props,{name:"IconArrowOpenDown",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),B||(B=T.createElement("path",{d:"m.153 526.146 92.168-92.299 867.767 867.636 867.636-867.636 92.429 92.299-960.065 959.935z",fillRule:"evenodd"})))}}eZ.glyphName="arrow-open-down",eZ.variant="Line",eZ.displayName="IconArrowOpenDownLine",eZ.propTypes={...eM.propTypes},eZ.allowedProps=[...eM.allowedProps];var eV=t("7334"),eU=t("9783");let eX={renderLabel:K().oneOfType([K().node,K().func]).isRequired,id:K().string,interaction:K().oneOf(["enabled","disabled","readonly"]),messages:K().arrayOf(e_.message),placeholder:K().string,isRequired:K().bool,showArrows:K().bool,size:K().oneOf(["medium","large"]),value:K().oneOfType([K().string,K().number]),width:K().string,display:K().oneOf(["inline-block","block"]),inputRef:K().func,onFocus:K().func,onBlur:K().func,onChange:K().func,onDecrement:K().func,onIncrement:K().func,onKeyDown:K().func,inputMode:K().oneOf(["numeric","decimal","tel"]),textAlign:K().oneOf(["start","center"])},eq=($=ey(),F=(0,U.w)((e,r,t)=>{let n=r.size,o=r.textAlign,i=t.interaction,l=t.hasFocus,a=t.invalid,s="disabled"===i?{cursor:"not-allowed",pointerEvents:"none",opacity:.5}:{},d=a?{borderColor:e.errorOutlineColor}:{},c=a?{borderColor:e.errorBorderColor}:{},u={all:"initial",textAlign:o,direction:"inherit",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",appearance:"none",lineHeight:1,margin:"0",flex:1,minWidth:"0.0625rem",boxSizing:"border-box",fontFamily:"inherit",fontSize:"inherit",fontWeight:e.fontWeight,color:e.color,background:e.background,padding:e.padding,textyAlign:o,"&::placeholder":{color:e.placeholderColor}};return{requiredInvalid:{color:e.requiredInvalidColor},numberInput:{label:"numberInput"},arrowContainer:{label:"numberInput_arrowContainer",flex:`0 0 ${e.arrowsContainerWidth}`,display:"flex",flexDirection:"column",...s},arrow:{label:"numberInput_arrow",cursor:"pointer",userSelect:"none",textAlign:"center",flex:1,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:e.arrowsBackgroundColor,borderTop:"none",borderInlineEnd:"none",borderInlineStart:`${e.borderWidth} ${e.borderStyle} ${e.arrowsBorderColor}`,borderBottom:`${e.borderWidth} ${e.borderStyle} ${e.arrowsBorderColor}`,color:e.arrowsColor,"&:last-child":{borderBottom:"none"},"&:hover":{backgroundColor:e.arrowsHoverBackgroundColor},"&:active":{boxShadow:e.arrowsActiveBoxShadow}},inputWidth:{label:"numberInput_inputWidth",display:"block",position:"relative","&::before":{content:'""',pointerEvents:"none",boxSizing:"border-box",display:"block",position:"absolute",top:"-0.25rem",bottom:"-0.25rem",left:"-0.25rem",right:"-0.25rem",border:`${e.focusOutlineWidth} ${e.focusOutlineStyle} ${e.focusOutlineColor}`,borderRadius:`calc(${e.borderRadius} * 1.5)`,transition:"all 0.2s",opacity:0,transform:"scale(0.95)",...l?{opacity:1,transform:"scale(1)"}:{},...d}},inputContainer:{label:"numberInput_inputContainer",display:"flex",margin:"0",boxSizing:"border-box",transition:"all 0.2s",overflow:"hidden",fontFamily:e.fontFamily,border:`${e.borderWidth} ${e.borderStyle} ${e.borderColor}`,borderRadius:e.borderRadius,...s,...c,..."medium"===n?{fontSize:e.mediumFontSize,height:e.mediumHeight}:{fontSize:e.largeFontSize,height:e.largeHeight}},input:{label:"numberInput_input",...u,"&:is(input)[type]":u,"&:-webkit-any(input)[type]":u,"&::-webkit-inner-spin-button":{display:"none"},"&::-webkit-outer-spin-button":{display:"none"},'&:is(input)[type="number"]':{MozAppearance:"textfield"}}}},e=>{let r=e.colors,t=e.spacing,n=e.borders,o=e.typography,i=e.forms,l=e.key,a={canvas:{color:e["ic-brand-font-color-dark"],arrowsColor:e["ic-brand-font-color-dark"],focusOutlineColor:e["ic-brand-primary"]}};return{fontFamily:null==o?void 0:o.fontFamily,fontWeight:null==o?void 0:o.fontWeightNormal,borderWidth:null==n?void 0:n.widthSmall,borderStyle:null==n?void 0:n.style,borderColor:null==r?void 0:r.borderMedium,borderRadius:null==n?void 0:n.radiusMedium,color:null==r?void 0:r.textDarkest,background:null==r?void 0:r.backgroundLightest,requiredInvalidColor:null==r?void 0:r.textDanger,padding:`0 ${null==t?void 0:t.small}`,arrowsContainerWidth:"2rem",arrowsColor:null==r?void 0:r.textDarkest,arrowsBackgroundColor:null==r?void 0:r.backgroundLight,arrowsHoverBackgroundColor:null==r?void 0:r.backgroundMedium,arrowsBorderColor:null==r?void 0:r.borderMedium,arrowsActiveBoxShadow:`inset 0 0 3px 1px ${null==r?void 0:r.borderMedium}`,focusOutlineWidth:null==n?void 0:n.widthMedium,focusOutlineStyle:null==n?void 0:n.style,focusOutlineColor:null==r?void 0:r.borderBrand,errorBorderColor:null==r?void 0:r.borderDanger,errorOutlineColor:null==r?void 0:r.borderDanger,placeholderColor:null==r?void 0:r.textDark,mediumFontSize:null==o?void 0:o.fontSizeMedium,mediumHeight:null==i?void 0:i.inputHeightMedium,largeFontSize:null==o?void 0:o.fontSizeLarge,largeHeight:null==i?void 0:i.inputHeightLarge,...a[l]}}),$(_=F(_=(0,ek.j)()(((z=class e extends T.Component{constructor(...e){super(...e),this.state={hasFocus:!1},this.ref=null,this._input=null,this._id=void 0,this.handleRef=e=>{this.ref=e},this.handleInputRef=e=>{this._input=e,"function"==typeof this.props.inputRef&&this.props.inputRef(e)},this.handleFocus=e=>{this.setState({hasFocus:!0}),"function"==typeof this.props.onFocus&&this.props.onFocus(e)},this.handleBlur=e=>{this.setState({hasFocus:!1}),"function"==typeof this.props.onBlur&&this.props.onBlur(e)},this.handleChange=e=>{"function"==typeof this.props.onChange&&this.props.onChange(e,e.target.value)},this.handleKeyDown=e=>{let r=this.props,t=r.onKeyDown,n=r.onDecrement,o=r.onIncrement;"function"==typeof t&&t(e),e.keyCode===E().codes.down?(e.preventDefault(),"function"==typeof n&&n(e)):e.keyCode===E().codes.up&&(e.preventDefault(),"function"==typeof o&&o(e))},this.handleClickUpArrow=e=>{this.arrowClicked(e,this.props.onIncrement)},this.handleClickDownArrow=e=>{this.arrowClicked(e,this.props.onDecrement)}}get id(){return this.props.id?this.props.id:(!this._id&&(this._id=this.props.deterministicId()),this._id)}get invalid(){return!!this.props.messages&&this.props.messages.some(e=>"error"===e.type||"newError"===e.type)}get interaction(){return(0,eV.S)({props:this.props})}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r,this.makeStyleVariables)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r,this.makeStyleVariables)}get makeStyleVariables(){return{interaction:this.interaction,hasFocus:this.state.hasFocus,invalid:this.invalid}}arrowClicked(e,r){let t=this.interaction;if(e.preventDefault(),"enabled"===t){var n;null===(n=this._input)||void 0===n||n.focus(),"function"==typeof r&&r(e)}}renderArrows(){var e,r,t;return(0,X.tZ)("span",{css:null===(e=this.props.styles)||void 0===e?void 0:e.arrowContainer},(0,X.tZ)("button",{"aria-hidden":!0,css:null===(r=this.props.styles)||void 0===r?void 0:r.arrow,onMouseDown:this.handleClickUpArrow,tabIndex:-1,type:"button"},P||(P=(0,X.tZ)(eG,null))),(0,X.tZ)("button",{"aria-hidden":!0,css:null===(t=this.props.styles)||void 0===t?void 0:t.arrow,onMouseDown:this.handleClickDownArrow,tabIndex:-1,type:"button"},L||(L=(0,X.tZ)(eZ,null))))}render(){var r,t,n;let o=this.props,i=o.renderLabel,l=o.display,a=o.placeholder,s=o.isRequired,d=o.showArrows,c=o.value,u=o.width,p=o.styles,f=this.interaction,h=(0,eU.A)(i),m=(0,N.B)(h)?(0,X.tZ)(T.Fragment,null,h,s&&(0,X.tZ)("span",{css:this.invalid?null==p?void 0:p.requiredInvalid:{}}," *")):h;return(0,X.tZ)(eW,Object.assign({},(0,W.H)(this.props,eW.allowedProps),{label:m,inline:"inline-block"===l,id:this.id,elementRef:this.handleRef}),(0,X.tZ)("span",{css:null===(r=this.props.styles)||void 0===r?void 0:r.inputWidth,style:u?{width:u}:void 0},(0,X.tZ)("span",{css:null===(t=this.props.styles)||void 0===t?void 0:t.inputContainer},(0,X.tZ)("input",Object.assign({},(0,j.c)(this.props,[...eW.allowedProps,...e.allowedProps]),{css:null===(n=this.props.styles)||void 0===n?void 0:n.input,"aria-invalid":this.invalid?"true":void 0,id:this.id,type:"number",inputMode:this.props.inputMode,placeholder:a,ref:this.handleInputRef,required:s,value:c,disabled:"disabled"===f,readOnly:"readonly"===f,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown})),d?this.renderArrows():null)))}}).displayName="NumberInput",z.componentId="NumberInput",z.allowedProps=["renderLabel","id","interaction","messages","placeholder","isRequired","showArrows","size","value","width","display","inputRef","onFocus","onBlur","onChange","onDecrement","onIncrement","onKeyDown","inputMode","textAlign"],z.propTypes=eX,z.defaultProps={interaction:void 0,messages:[],isRequired:!1,showArrows:!0,size:"medium",display:"block",textAlign:"start",inputMode:"numeric"},_=z))||_)||_)||_)},9783:function(e,r,t){"use strict";t.d(r,{A:function(){return o}});var n=t(4194);function o(e,r={}){if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?n.createElement(e,r):e(r);return e}},8455:function(e,r,t){"use strict";t.d(r,{B:function(){return o}});var n=t(4811);function o(e,r,t){var o,i;return r.as&&r.as!==(null===(o=e.defaultProps)||void 0===o?void 0:o.as)?r.as:"function"==typeof t?t():r.href?"a":r.to?((0,n.yN)(!r.as,`[${e.displayName}] \`as\` prop should be provided when using \`to\``),"a"):"function"==typeof r.onClick?"button":(null===(i=e.defaultProps)||void 0===i?void 0:i.as)||"span"}},7334:function(e,r,t){"use strict";function n({props:e={},interactionTypes:r=["disabled","readonly"]}={}){let t=e.interaction,o=e.disabled,i=e.readOnly;return t?t:r.includes("disabled")&&o?"disabled":r.includes("readonly")&&i?"readonly":"enabled"}t.d(r,{S:function(){return n}})},5172:function(e,r,t){"use strict";function n(e){return"string"==typeof e?e:e.displayName||e.name}function o(e,r=[]){return!!e&&!!e.type&&r.map(e=>n(e)).indexOf(n(e.type))>=0}t.d(r,{x:()=>o})},9763:function(e,r,t){"use strict";function n(e,r,t){let n=Array.isArray(r)?r:Object.keys(r||{});return i(e,t?n.concat(t):n)}t.d(r,{c:function(){return n}});let o=Object.prototype.hasOwnProperty,i=(e,r)=>{let t={};for(let n in e){if(!("theme"===n||"children"===n||"className"===n||"style"===n||"styles"===n||"makeStyles"===n||"themeOverride"===n||"deterministicId"===n||r.includes(n)||!o.call(e,n)))t[n]=e[n]}return t}},3974:function(e,r,t){"use strict";t.d(r,{r:()=>l});var n=t("261"),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|fetchpriority|fetchPriority|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,n.Z)(function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)});function l(e){let r={};return Object.keys(e).filter(e=>i(e)&&"style"!==e&&"className"!==e&&"children"!==e&&"styles"!==e&&"makeStyles"!==e&&"deterministicId"!==e).forEach(t=>{r[t]=e[t]}),r}},1377:function(e,r,t){"use strict";function n(e,r,t){let n=Array.isArray(r)?r:Object.keys(r||{});return function(e,r){let t;let n={},o=r.length,i=-1;for(;++ii});var n=t("4194"),o=t("4811");function i(e,r,...t){let l=r.ref,a=e.ref,s="function"==typeof l,d={...r};return(e.props.style&&r.style&&(d.style={...e.props.style,...r.style}),d.key=e.key||r.key,Object.keys(r).forEach(t=>{0===t.indexOf("on")&&("function"==typeof r[t]||"function"==typeof e.props[t])&&(d[t]=function(...e){return e.filter((r,t)=>{if(null==r)return!1;let n=function(e,r){let t=[];return e.forEach((e,n)=>{e===r&&t.push(n)}),t}(e,r);return 1===n.length||t===n[0]}).reduce((e,r)=>{if("function"!=typeof r)throw Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?r:function(...t){e.apply(this,t),r.apply(this,t)}},null)}(e.props[t],r[t]))}),null==a||null==l)?n.cloneElement(e,d,...t):((0,o.yN)("function"==typeof a,`Cloning an element with a ref that will be overwritten because the ref \ +is not a function. Use a composable callback-style ref instead. \ +Ignoring ref: ${a}`),n.cloneElement(e,{...d,ref(e){s?l(e):l.current=e,a(e)}},...t))}},9936:function(e,r,t){"use strict";t.d(r,{j:function(){return s}});var n,o,i=t(512),l=t(6459);let a=!0;try{a=!(null!==(n=process)&&void 0!==n&&null!==(o=n.env)&&void 0!==o&&o.ALWAYS_APPEND_UI_TESTABLE_LOCATORS)}catch(e){if(e instanceof ReferenceError)a=!1;else throw e}let s=a?()=>e=>e:(0,i.b)(e=>{let r={attribute:"data-cid",value:e.displayName||e.name},t=`[${r.attribute}~="${r.value}"]`;class n extends e{constructor(...e){super(...e),this._testableUnmounted=void 0,this._locatorTimeout=void 0}componentDidMount(){this._testableUnmounted=!1,super.componentDidMount&&super.componentDidMount(),this.appendLocatorAttribute()}componentDidUpdate(e,r,t){super.componentDidUpdate&&super.componentDidUpdate(e,r,t),this.appendLocatorAttribute()}componentWillUnmount(){this._testableUnmounted=!0,super.componentWillUnmount&&super.componentWillUnmount(),this._locatorTimeout&&clearTimeout(this._locatorTimeout)}appendLocatorAttribute(){this._locatorTimeout=setTimeout(()=>{let e;if(!this._testableUnmounted){try{e=this.DOMNode||(0,l.m)(this)}catch(e){}if(e){let t=e.getAttribute(r.attribute),n="string"==typeof t?t.split(/\s+/):[];!n.includes(r.value)&&n.push(r.value),e.setAttribute(r.attribute,n.join(" "))}}})}}return n.selector=t,n})},3568:function(e,r,t){"use strict";function n(e){return e.replace(/-([a-z])/g,e=>e[1].toUpperCase())}t.d(r,{_:function(){return n}})},9159:function(e,r,t){"use strict";t.d(r,{x:function(){return o}});let n=Object.prototype.hasOwnProperty;function o(e){if("object"!=typeof e)return!0;for(let r in e)if(n.call(e,r))return!1;return!0}},9719:function(e,r,t){"use strict";let n,o,i;t.d(r,{G:()=>U});var l,a,s,d=t("3047"),c=t("4194"),u=t("512");let p=!!("undefined"!=typeof window&&window.document&&window.document.createElement);var f=t("6459");function h(e,r){let t={};if(p){let n=e&&(0,f.m)(e);if(n){let o=function(e){let r=function(e){let r;let t=e&&(0,f.m)(e);t&&"ownerDocument"in t&&(r=t.ownerDocument);let n=p?window.document:void 0;return r||n}(e&&(0,f.m)(e));return r&&r.defaultView}(e);t=o?o.getComputedStyle(n,r):{}}}return t}let m=()=>{if(n)return n;if(p){let e=document.documentElement;return n=(o=e.getAttribute("dir"))||h(e).direction,!i&&(i=new MutationObserver(()=>{let r=e.getAttribute("dir");r&&r!==o&&(o=n=r)})).observe(e,{attributes:!0}),n}},g=(0,c.createContext)(function(e){if(p)return m()}()||"ltr"),b={ltr:"ltr",rtl:"rtl"};var y=t("63"),v=t.n(y);let w=["forwardedRef"],x=(0,u.b)(e=>{class r extends c.Component{render(){let r=this.props,t=r.forwardedRef,n=(0,d.Z)(r,w);return c.createElement(g.Consumer,null,r=>c.createElement(e,Object.assign({ref:t,dir:r},n)))}}r.displayName="TextDirectionContextConsumerComponent";let t=(0,c.forwardRef)((e,t)=>c.createElement(r,Object.assign({},e,{forwardedRef:t})));return v()(t,e),t.defaultProps=e.defaultProps,t.propTypes=e.propTypes,t.allowedProps=e.allowedProps,t.originalType=e.originalType||e,t});x.DIRECTION=b;var k=t("4811"),S=t("8455"),C=t("3974"),A=t("1377"),O=t("9763"),R=t("3706"),I=t("4159"),M=t("4290");function B(e){if("string"!=typeof e)return;let r=e.split(" ");if(4===r.length){var t=[r[3],r[1]];r[1]=t[0],r[3]=t[1]}return r.join(" ")}let $=({borderRadius:e,borderWidth:r,dir:t,theme:n})=>{let o=t===b.rtl;return{borderRadius:(0,M.x)("View",n,o?function(e){if("string"!=typeof e)return;let r=e.split(" ");if(2===r.length){var t=[r[1],r[0]];r[0]=t[0],r[1]=t[1]}if(3===r.length&&r.push(r[1]),4===r.length){var n=[r[1],r[0],r[3],r[2]];r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3]}return r.join(" ")}(e):e,"borderRadius"),borderWidth:(0,M.x)("View",n,o?B(r):r,"borderWidth")}},F=({margin:e,padding:r,dir:t,theme:n})=>{let o=t===b.rtl;return{margin:(0,M.x)("View",n,o?B(e):e,"margin"),padding:(0,M.x)("View",n,o?B(r):r,"padding")}},_=({insetBlockStart:e,insetBlockEnd:r,insetInlineStart:t,insetInlineEnd:n,dir:o})=>{let i=o===b.rtl;return{top:e,insetBlockStart:e,bottom:r,insetBlockEnd:r,left:i?n:t,right:i?t:n}},z=({cursor:e,style:r})=>{let t=(0,A.H)(r||{},{},["top","left","position","display","transform","overflow","minWidth","minHeight","filter","flexBasis","backgroundImage","pointerEvents"]);return e&&(t.cursor=e),t},P=(e,r)=>"string"==typeof r&&r.trim().split(" ").every(r=>e===r),L=e=>{let r="focusRing--radius",t=(e||"").trim().split(" ")[0];if(P(t,e)){if(["small","medium","large"].includes(t)){let e;return`${r}${e=t,`${e.charAt(0).toUpperCase()}${e.slice(1)}`}`}if(["circle","pill"].includes(t))return`${r}Inherit`}return`${r}None`},T=e=>{let r=e.position,t=e.display,n=e.focusPosition,o=e.withFocusOutline;return void 0===o?o:(o&&((0,k.H)("inline"===t||"relative"===r,"[View] the focus outline will only show if the `position` prop is `relative`."),(0,k.H)("inline"!==t||"inset"===n,"[View] when display is set to `inline` the focus outline will only show if `focusPosition` is set to `inset`.")),o)},D=e=>{let r=e.borderWidth;return r&&"0"!==r&&"none"!==r},E=(e,r)=>{let t=e.focusColor,n=e.focusPosition,o=e.position,i=e.shouldAnimateFocus,l=e.borderRadius,a=T(e),s=void 0===a,d={offset:{top:`calc(${r.focusOutlineOffset} * -1)`,left:`calc(${r.focusOutlineOffset} * -1)`,right:`calc(${r.focusOutlineOffset} * -1)`,bottom:`calc(${r.focusOutlineOffset}* -1)`},inset:{top:`calc(${r.focusOutlineInset} * -1)`,left:`calc(${r.focusOutlineInset} * -1)`,right:`calc(${r.focusOutlineInset} * -1)`,bottom:`calc(${r.focusOutlineInset} * -1)`}},c={info:r.focusColorInfo,inverse:r.focusColorInverse,success:r.focusColorSuccess,danger:r.focusColorDanger};if("relative"===o){let e=L(l),o={offset:{"focusRing--radiusSmall":{borderRadius:`calc(${r.borderRadiusSmall} + (${r.focusOutlineOffset} - ${r.focusOutlineWidth}))`},"focusRing--radiusMedium":{borderRadius:`calc(${r.borderRadiusMedium} + (${r.focusOutlineOffset} - ${r.focusOutlineWidth}))`},"focusRing--radiusLarge":{borderRadius:`calc(${r.borderRadiusLarge} + (${r.focusOutlineOffset} - ${r.focusOutlineWidth}))`}},inset:{"focusRing--radiusSmall":{borderRadius:`calc(${r.borderRadiusSmall} - (${r.focusOutlineInset} + ${r.focusOutlineWidth}))`},"focusRing--radiusMedium":{borderRadius:`calc(${r.borderRadiusMedium} - (${r.focusOutlineInset} + ${r.focusOutlineWidth}))`},"focusRing--radiusLarge":{borderRadius:`calc(${r.borderRadiusLarge} - (${r.focusOutlineInset} + ${r.focusOutlineWidth}))`}}};return{"&::before":{pointerEvents:"none",content:'""',position:"absolute",borderStyle:r.focusOutlineStyle,borderWidth:r.focusOutlineWidth,borderColor:c[t],opacity:0,borderRadius:({"focusRing--radiusInherit":"inherit","focusRing--radiusNone":0})[e],...o[n][e],...d[n],...i?{transition:"all 0.2s",transform:"scale(0.95)"}:{},...a?{opacity:1,transform:"scale(1)"}:{}},"&:focus":{outline:"none","&::before":{...s?{opacity:1,transform:"scale(1)"}:{}}}}}return{"&::before":{borderStyle:"none"},outlineStyle:"none",outlineColor:c[t],...a?{outlineWidth:r.focusOutlineWidth,outlineStyle:r.focusOutlineStyle}:{},"&:focus":{...s?{outlineWidth:r.focusOutlineWidth,outlineStyle:r.focusOutlineStyle}:{}}}};var j=t("7382"),W=t("7862"),H=t.n(W);let N=H().oneOf(["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"]);var G=t("1569");let Z={as:H().elementType,elementRef:H().func,display:H().oneOf(["auto","inline","block","inline-block","flex","inline-flex"]),overflowX:H().oneOf(["auto","hidden","visible"]),overflowY:H().oneOf(["auto","hidden","visible"]),margin:G.j7.spacing,padding:G.j7.spacing,height:H().oneOfType([H().string,H().number]),width:H().oneOfType([H().string,H().number]),maxHeight:H().oneOfType([H().string,H().number]),maxWidth:H().oneOfType([H().string,H().number]),minHeight:H().oneOfType([H().string,H().number]),minWidth:H().oneOfType([H().string,H().number]),children:H().node,textAlign:H().oneOf(["start","center","end"]),borderWidth:G.j7.borderWidth,borderRadius:G.j7.borderRadius,borderColor:H().oneOf(["transparent","primary","secondary","brand","info","success","warning","alert","danger"]),background:H().oneOf(["transparent","primary","secondary","primary-inverse","brand","info","alert","success","danger","warning"]),shadow:G.j7.shadow,stacking:G.j7.stacking,cursor:N,position:H().oneOf(["static","absolute","relative","sticky","fixed"]),insetInlineStart:H().string,insetInlineEnd:H().string,insetBlockStart:H().string,insetBlockEnd:H().string,withFocusOutline:H().bool,focusPosition:H().oneOf(["offset","inset"]),focusColor:H().oneOf(["info","inverse","success","danger"]),shouldAnimateFocus:H().bool,withVisualDebug:H().bool,dir:H().oneOf(Object.values(x.DIRECTION)),overscrollBehavior:H().oneOf(["auto","contain","none"])},V=["children","textAlign","background","display","withVisualDebug","width","height","minWidth","minHeight","maxWidth","maxHeight","overflowX","overflowY","stacking","shadow","position","focusPosition","focusColor","shouldAnimateFocus","borderColor","className","overscrollBehavior","styles","makeStyles"],U=(l=x(),l(a=(0,R.w)((e,r)=>{let t=r.borderRadius,n=r.borderWidth,o=r.margin,i=r.padding,l=r.position,a=r.display,s=r.focusPosition,d=r.textAlign,c=r.borderColor,u=r.background,p=r.stacking,f=r.shadow,h=r.overflowY,m=r.overflowX,g=r.overscrollBehavior,b=r.insetBlockEnd,y=r.insetBlockStart,v=r.insetInlineEnd,w=r.insetInlineStart,x=r.width,k=r.height,S=r.minWidth,C=r.minHeight,A=r.maxWidth,O=r.maxHeight,R=r.withVisualDebug,I=r.dir,M=$({theme:e,borderRadius:t,borderWidth:n,dir:I}),B=F({margin:o,padding:i,theme:e,dir:I}),P=_({dir:I,insetBlockEnd:b,insetBlockStart:y,insetInlineEnd:v,insetInlineStart:w}),L={transparent:{borderColor:e.borderColorTransparent},primary:{borderColor:e.borderColorPrimary},secondary:{borderColor:e.borderColorSecondary},brand:{borderColor:e.borderColorBrand},info:{borderColor:e.borderColorInfo},success:{borderColor:e.borderColorSuccess},warning:{borderColor:e.borderColorWarning},alert:{borderColor:e.borderColorAlert},danger:{borderColor:e.borderColorDanger}},T={transparent:{color:e.color,background:"none"},primary:{color:e.color,background:e.backgroundPrimary},secondary:{color:e.color,background:e.backgroundSecondary},"primary-inverse":{color:e.colorPrimaryInverse,background:e.backgroundPrimaryInverse},brand:{color:e.colorPrimaryInverse,background:e.backgroundBrand},info:{color:e.colorPrimaryInverse,background:e.backgroundInfo},alert:{color:e.colorPrimaryInverse,background:e.backgroundAlert},success:{color:e.colorPrimaryInverse,background:e.backgroundSuccess},danger:{color:e.colorPrimaryInverse,background:e.backgroundDanger},warning:{color:e.colorPrimaryInverse,background:e.backgroundWarning}},j={topmost:{zIndex:e.stackingTopmost},above:{zIndex:e.stackingAbove},resting:{},below:{zIndex:e.stackingBelow},deepest:{zIndex:e.stackingDeepest}},W={topmost:{boxShadow:e.shadowTopmost},resting:{boxShadow:e.shadowResting},above:{boxShadow:e.shadowAbove},none:{}},H=E(r,e);return{view:{label:"view",boxSizing:"border-box",fontFamily:e.fontFamily,maxWidth:"100%",overflow:"visible",...{inline:{label:"view--inline",display:"inline"},block:{label:"view--block",display:"block"},"inline-block":{label:"view--inlineBlock",display:"inline-block",verticalAlign:"middle"},flex:{label:"view--flex",display:"flex"},"inline-flex":{label:"view--inlineFlex",display:"inline-flex",verticalAlign:"middle"},auto:{}}[a],...u&&T[u],...p&&j[p],...f&&W[f],...d&&({start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}})[d],overflowX:m&&"visible"!==m?m:"",overflowY:h&&"visible"!==h?h:"",position:"static"!==l?l:"",overscrollBehavior:g||"auto",...R?{outline:`0.0625rem dashed ${e.debugOutlineColor}`}:{},...D(r)?{borderStyle:e.borderStyle,...L[c]}:{},..."relative"===l||"inline"===a&&"inset"===s?H:{}},inlineStyles:{"&&&&&&&&&&":{...B,...M,...P,width:x,height:k,minWidth:S,minHeight:C,maxWidth:A,maxHeight:O,...z(r)}}}},e=>{let r=e.colors,t=e.typography,n=e.borders,o=e.breakpoints,i=e.spacing,l=e.shadows,a=e.stacking,s=e.key,d={canvas:{color:e["ic-brand-font-color-dark"],focusColorInfo:e["ic-brand-primary"],backgroundBrand:e["ic-brand-primary"],backgroundInfo:e["ic-brand-primary"],borderColorBrand:e["ic-brand-primary"],borderColorInfo:e["ic-brand-primary"]}};return{...{fontFamily:null==t?void 0:t.fontFamily,color:null==r?void 0:r.textDarkest,colorPrimaryInverse:null==r?void 0:r.textLightest,borderColorPrimary:null==r?void 0:r.borderMedium,borderColorSecondary:null==r?void 0:r.borderDark,borderColorSuccess:null==r?void 0:r.borderSuccess,borderColorBrand:null==r?void 0:r.borderBrand,borderColorInfo:null==r?void 0:r.borderInfo,borderColorAlert:null==r?void 0:r.borderAlert,borderColorWarning:null==r?void 0:r.borderWarning,borderColorDanger:null==r?void 0:r.borderDanger,borderColorTransparent:"transparent",debugOutlineColor:null==r?void 0:r.borderDebug,backgroundPrimary:null==r?void 0:r.backgroundLightest,backgroundSecondary:null==r?void 0:r.backgroundLight,backgroundPrimaryInverse:null==r?void 0:r.backgroundDarkest,backgroundBrand:null==r?void 0:r.backgroundBrand,backgroundInfo:null==r?void 0:r.backgroundInfo,backgroundAlert:null==r?void 0:r.backgroundAlert,backgroundSuccess:null==r?void 0:r.backgroundSuccess,backgroundDanger:null==r?void 0:r.backgroundDanger,backgroundWarning:null==r?void 0:r.backgroundWarning,arrowSize:"0.5rem",focusOutlineStyle:null==n?void 0:n.style,focusOutlineWidth:null==n?void 0:n.widthMedium,focusOutlineOffset:"0.3125rem",focusOutlineInset:"0rem",focusColorInfo:null==r?void 0:r.borderInfo,focusColorDanger:null==r?void 0:r.borderDanger,focusColorSuccess:null==r?void 0:r.borderSuccess,focusColorInverse:null==r?void 0:r.borderLightest,xSmallMaxWidth:null==o?void 0:o.xSmall,smallMaxWidth:null==o?void 0:o.small,mediumMaxWidth:null==o?void 0:o.medium,largeMaxWidth:null==o?void 0:o.large,...(0,j.L)("margin",i),...(0,j.L)("padding",i),...(0,j.L)("shadow",l),...(0,j.L)("stacking",a),...(0,j.L)("border",n)},...d[s]}})(((s=class e extends c.Component{get _element(){return this.ref}constructor(e){super(e),this.spanMarginVerified=void 0,this.ref=null,this.handleElementRef=e=>{"function"==typeof this.props.elementRef&&this.props.elementRef(e),this.ref=e},this.spanMarginVerified=!1}componentDidMount(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}componentDidUpdate(){var e,r;null===(e=(r=this.props).makeStyles)||void 0===e||e.call(r)}render(){let r=this.props,t=r.children,n=(r.textAlign,r.background,r.display,r.withVisualDebug,r.width,r.height,r.minWidth,r.minHeight,r.maxWidth,r.maxHeight,r.overflowX,r.overflowY,r.stacking,r.shadow,r.position,r.focusPosition,r.focusColor,r.shouldAnimateFocus,r.borderColor,r.className),o=(r.overscrollBehavior,r.styles),i=(r.makeStyles,(0,d.Z)(r,V)),l=(0,S.B)(e,this.props);return(0,I.tZ)(l,Object.assign({},(0,C.r)(i),{className:n,css:[null==o?void 0:o.view,null==o?void 0:o.inlineStyles],ref:this.handleElementRef}),t)}}).displayName="View",s.componentId="View",s.allowedProps=["as","background","borderColor","borderRadius","borderWidth","children","cursor","dir","display","elementRef","focusColor","focusPosition","height","insetBlockEnd","insetBlockStart","insetInlineEnd","insetInlineStart","margin","maxHeight","maxWidth","minHeight","minWidth","overflowX","overflowY","overscrollBehavior","padding","position","shadow","shouldAnimateFocus","stacking","textAlign","width","withFocusOutline","withVisualDebug"],s.propTypes=Z,s.defaultProps={display:"auto",overflowX:"visible",overflowY:"visible",withVisualDebug:!1,borderColor:"primary",position:"static",focusPosition:"offset",focusColor:"info",shouldAnimateFocus:!0,overscrollBehavior:"auto"},s.omitViewProps=(e,r)=>{let t=[...s.allowedProps,"styles","makeStyles","themeOverride"],n=!0;try{n=!1}catch(e){if(e instanceof ReferenceError)n=!1;else throw e}return n&&Object.keys((0,A.H)(e,t)).forEach(e=>{(0,k.H)(!1,`[${r.name}] prop '${e}' is not allowed.`)}),(0,O.c)(e,t)},a=s))||a)||a)},4204:function(e){"use strict";e.exports=function e(r,t){if(r===t)return!0;if(r&&t&&"object"==typeof r&&"object"==typeof t){if(r.constructor!==t.constructor)return!1;if(Array.isArray(r)){if((n=r.length)!=t.length)return!1;for(o=n;0!=o--;)if(!e(r[o],t[o]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if((n=(i=Object.keys(r)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return!1;for(o=n;0!=o--;){var n,o,i,l=i[o];if(!e(r[l],t[l]))return!1}return!0}return r!=r&&t!=t}},63:function(e,r,t){"use strict";var n=t(9415),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},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return n.isMemo(e)?l:a[e.$$typeof]||o}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=l;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(r,t,n){if("string"!=typeof t){if(h){var o=f(t);o&&o!==h&&e(r,o,n)}var l=c(t);u&&(l=l.concat(u(t)));for(var a=s(r),m=s(t),g=0;g0){var l=t.indexOf(this);~l?t.splice(l+1):t.push(this),~l?n.splice(l,1/0,o):n.push(o),~t.indexOf(i)&&(i=r.call(this,o,i))}else t.push(i);return null==e?i:e.call(this,o,i)}}},2508:function(e,r){function t(e){if(e&&"object"==typeof e){var r=e.which||e.keyCode||e.charCode;r&&(e=r)}if("number"==typeof e)return l[e];var t=String(e),i=n[t.toLowerCase()];if(i)return i;var i=o[t.toLowerCase()];return i?i:1===t.length?t.charCodeAt(0):void 0}t.isEventKey=function(e,r){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;if(null==t)return!1;if("string"==typeof r){var i=n[r.toLowerCase()];if(i)return i===t;var i=o[r.toLowerCase()];if(i)return i===t}else if("number"==typeof r)return r===t;return!1}};var n=(r=e.exports=t).code=r.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=r.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(i=97;i<123;i++)n[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)n[i-48]=i;for(i=1;i<13;i++)n["f"+i]=i+111;for(i=0;i<10;i++)n["numpad "+i]=i+96;var l=r.names=r.title={};for(i in n)l[n[i]]=i;for(var a in o)n[a]=o[a]},1772:function(e,r,t){"use strict";var n=t(5148);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,r,t,o,i,l){if(l!==n){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function r(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},7862:function(e,r,t){e.exports=t(1772)()},5148:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2773:function(e,r,t){"use strict";var n=t(8232),o=function(){var e=0xefc8249d;return function(r){if(r){r=r.toString();for(var t=0;t>>0,n-=e,n*=e,e=n>>>0,n-=e,e+=0x100000000*n}return(e>>>0)*23283064365386963e-26}e=0xefc8249d}},i=function(e){return function(){var r,t,i=1,l=48,a=Array(48),s=0,d=new o;for(r=0;r<48;r++)a[r]=d(Math.random());var c=function(){++l>=48&&(l=0);var e=1768863*a[l]+23283064365386963e-26*i;return a[l]=e-(i=0|e)},u=function(e){return Math.floor(e*(c()+(2097152*c()|0)*11102230246251565e-32))};u.string=function(e){var r,t="";for(r=0;rn});function n(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(r.includes(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;nq});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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,r;this._insertTag((t=this,(r=document.createElement("style")).setAttribute("data-emotion",t.key),void 0!==t.nonce&&r.setAttribute("nonce",t.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?m[w]+" "+k:s(k,/&\f/g,m[w])).trim())c[v++]=S;return x(e,t,r,0===i?L:d,c,p,f)}function W(e,t,r,n){return x(e,t,r,D,u(e,0,n),u(e,n+1,-1),n)}var H=function(e,t,r){for(var n=0,o=0;n=o,o=C(),38===n&&12===o&&(t[r]=1),!R(o);){;S()}return u(w,e,y)},N=function(e,t){var r=-1,n=44;do switch(R(n)){case 0:38===n&&12===C()&&(t[r]=1),e[r]+=H(y-1,t,r);break;case 2:e[r]+=M(n);break;case 4:if(44===n){e[++r]=58===C()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}while(n=S());return e},G=function(e,t){var r;return r=N(I(e),t),w="",r},Z=new WeakMap,V=function(e){if("rule"!==e.type||!e.parent||e.length<1)return;for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||!!Z.get(r))&&!n){Z.set(e,!0);for(var o=[],i=G(t,o),a=r.props,l=0,s=0;l-1&&!e.return)switch(e.type){case D:e.return=function e(t,r){var n,o;switch(n=t,o=r,45^c(n,0)?(((o<<2^c(n,0))<<2^c(n,1))<<2^c(n,2))<<2^c(n,3):0){case 5103:return _+"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;case 5349:case 4246:case 4810:case 6968:case 2756:return _+t+F+t+$+t+t;case 6828:case 4268:return _+t+$+t+t;case 6165:return _+t+$+"flex-"+t+t;case 5187:return _+t+s(t,/(\w+).+(:[^]+)/,_+"box-$1$2"+$+"flex-$1$2")+t;case 5443:return _+t+$+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return _+t+$+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return _+t+$+s(t,"shrink","negative")+t;case 5292:return _+t+$+s(t,"basis","preferred-size")+t;case 6060:return _+"box-"+s(t,"-grow","")+_+t+$+s(t,"grow","positive")+t;case 4554:return _+s(t,/([^-])(transform)/g,"$1"+_+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+$+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,_+"$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(p(t)-1-r>6)switch(c(t,r+1)){case 109:if(45!==c(t,r+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+F+(108==c(t,r+3)?"$3":"$2-$3"))+t;case 115:return~d(t,"stretch")?e(s(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==c(t,r+1))break;case 6444:switch(c(t,p(t)-3-(~d(t,"!important")&&10))){case 107:return s(t,":",":"+_)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_+(45===c(t,14)?"inline-":"")+"box$3$1"+_+"$2$3$1"+$+"$2box$3")+t}break;case 5936:switch(c(t,r+11)){case 114:return _+t+$+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return _+t+$+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return _+t+$+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return _+t+$+t+t}return t}(e.value,e.length);break;case P:return T([k(e,{value:s(e.value,"@","@"+_)})],n);case L:if(e.length){var o,i;return o=e.props,i=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return T([k(e,{props:[s(t,/:(read-\w+)/,":"+F+"$1")]})],n);case"::placeholder":return T([k(e,{props:[s(t,/:(plac\w+)/,":"+_+"input-$1")]}),k(e,{props:[s(t,/:(plac\w+)/,":"+F+"$1")]}),k(e,{props:[s(t,/:(plac\w+)/,$+"input-$1")]})],n)}return""},o.map(i).join("")}}}],q=function(e){var t,r,o,a,l=e.key;if("css"===l){var f=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(f,function(e){if(-1!==e.getAttribute("data-emotion").indexOf(" "))document.head.appendChild(e),e.setAttribute("data-s","")})}var b=e.stylisPlugins||X,k={},A=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r2||R(v)>3?"":" "}(F);break;case 92:G+=function(e,t){for(var r,n;--t&&S()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return r=e,n=y+(t<6&&32==C()&&32==S()),u(w,r,n)}(y-1,7);continue;case 47:switch(C()){case 42:case 47:h(function(e,t,r){return x(e,t,r,z,i(v),u(e,2,-2),0)}(function(e,t){for(;S();)if(e+v===57)break;else if(e+v===84&&47===C())break;return"/*"+u(w,t,y-1)+"*"+i(47===e?e:S())}(S(),y),r,n),k);break;default:G+="/"}break;case 123*_:b[A++]=p(G)*D;case 125*_:case 59:case 0:switch(P){case 0:case 125:L=0;case 59+O:-1==D&&(G=s(G,/\f/g,"")),$>0&&p(G)-I&&h($>32?W(G+";",o,n,I-1):W(s(G," ","")+";",o,n,I-2),k);break;case 59:G+=";";default:if(h(N=j(G,r,n,A,O,a,b,T,E=[],H=[],I),l),123===P){if(0===O)e(G,r,N,N,E,l,I,b,H);else switch(99===B&&110===c(G,3)?100:B){case 100:case 108:case 109:case 115:e(t,N,N,o&&h(j(t,N,N,0,0,a,b,T,a,E=[],I),H),a,H,I,b,o?E:H);break;default:e(G,N,N,N,[""],H,0,b,H)}}}A=O=$=0,_=D=1,T=G="",I=f;break;case 58:I=1+p(G),$=F;default:if(_<1){if(123==P)--_;else if(125==P&&0==_++&&125==(v=y>0?c(w,--y):0,g--,10===v&&(g=1,m--),v))continue}switch(G+=i(P),P*_){case 38:D=O>0?1:(G+="\f",-1);break;case 44:b[A++]=(p(G)-1)*D,D=1;break;case 64:45===C()&&(G+=M(S())),B=C(),O=I=p(T=G+=function(e){for(;!R(C());)S();return u(w,e,y)}(y)),P++;break;case 45:45===F&&2==p(G)&&(_=0)}}return l}("",null,null,null,[""],t=I(t=e),0,[0],t),w="",r),O)};o=function(e,t,r,n){a=r,B(e?e+"{"+t.styles+"}":t.styles),n&&($.inserted[t.name]=!0)};var $={key:l,sheet:new n({key:l,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:k,registered:{},insert:o};return $.sheet.hydrate(A),$}},261:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},2817:function(e,t,r){"use strict";r.d(t,{u:()=>k,E:()=>R,c:()=>A,h:()=>S});var n,o,i=r("4194"),a=r("7265"),l=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},s=function(e,t,r){l(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}},d={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},c=r("261"),u=/[A-Z]|^ms/g,p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,f=function(e){return 45===e.charCodeAt(1)},h=function(e){return null!=e&&"boolean"!=typeof e},m=(0,c.Z)(function(e){return f(e)?e:e.replace(u,"-$&").toLowerCase()}),g=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(p,function(e,t,r){return o={name:t,styles:r,next:o},t})}return 1===d[e]||f(e)||"number"!=typeof t||0===t?t:t+"px"};function b(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return o={name:r.name,styles:r.styles,next:o},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)o={name:n.name,styles:n.styles,next:o},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o=4;++n,o-=4)r=(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((r>>>16)*59797<<16),r^=r>>>24,t=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)^(65535&t)*0x5bd1e995+((t>>>16)*59797<<16);switch(o){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t^=255&e.charCodeAt(n),t=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)}return t^=t>>>13,(((t=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16))^t>>>15)>>>0).toString(36)}(a)+d,styles:a,next:o}}(u,void 0,i.useContext(x));p+=t.key+"-"+f.name;var h={};for(var m in e)S.call(e,m)&&"css"!==m&&m!==C&&(h[m]=e[m]);return h.className=p,r&&(h.ref=r),i.createElement(i.Fragment,null,i.createElement(O,{cache:t,serialized:f,isStringTag:"string"==typeof c}),i.createElement(c,h))},(0,i.forwardRef)(function(e,t){return n(e,(0,i.useContext)(w),t)}))},4159:function(e,t,r){"use strict";r.d(t,{tZ:function(){return i}});var n=r(2817),o=r(4194);r(4603),r(7265),r(63);var i=function(e,t){var r=arguments;if(null==t||!n.h.call(t,"css"))return o.createElement.apply(void 0,r);var i=r.length,a=Array(i);a[0]=n.E,a[1]=(0,n.c)(e,t);for(var l=2;li,vU:()=>o,H:()=>o,yN:()=>i}),r("4194");let o=(e,t,...r)=>n("error",!0,e,t,...r),i=(e,t,...r)=>n("warn",!0,e,t,...r)},1569:function(e,t,r){"use strict";r.d(t,{j7:()=>p});var n=r("7862"),o=r.n(n);let i={resting:"resting",above:"above",topmost:"topmost",none:"none"},a={deepest:"deepest",below:"below",resting:"resting",above:"above",topmost:"topmost"},l={0:"0",none:"none",small:"small",medium:"medium",large:"large"},s={0:"0",none:"none",small:"small",medium:"medium",large:"large",circle:"circle",pill:"pill"},d={default:"default",inverse:"inverse",transparent:"transparent"},c={xSmall:"x-small",small:"small",medium:"medium",large:"large",xLarge:"x-large"},u={0:"0",none:"none",auto:"auto",xxxSmall:"xxx-small",xxSmall:"xx-small",xSmall:"x-small",small:"small",mediumSmall:"mediumSmall",medium:"medium",large:"large",xLarge:"x-large",xxLarge:"xx-large"},p={shadow:o().oneOf(Object.values(i)),stacking:o().oneOf(Object.values(a)),borderWidth:f(Object.values(l)),borderRadius:f(Object.values(s)),background:o().oneOf(Object.values(d)),size:o().oneOf(Object.values(c)),spacing:f(Object.values(u))};function f(e){return function(t,r,n,o){let i=t[r];if(void 0===i)return null;if("string"!=typeof i)return Error(`Invalid ${o} \`${r}\` of type \`${typeof i}\` supplied to \`${n}\`, expected a string.`);let a=i.split(" "),l=a.length;if(!(l>0)||!(l<5))return Error(`Invalid ${o} \`${r}\` \`${i}\` supplied to \`${n}\`, expected between one and four of the following valid values: \`${e.join(", ")}\`.`);for(let t=0;t{if("auto"===r||"0"===r)return r;if("none"===r)return"0";if("circle"===r)return"100%";if("pill"===r)return"999em";let n=(0,o._)(`${a}-${r}`),l=t[n];return(0,i.H)(void 0!==l,`[${e}] '${n}' is an invalid '${a}' value.`),l||"0"}).join(" ").trim()}},7382:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(3568);function o(e,t){let r={};return Object.keys(t).forEach(o=>{r[(0,n._)(`${e}-${String(o)}`)]=t[o]}),r}},3706:function(e,t,r){"use strict";r.d(t,{w:()=>J});function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{let i=n.themeOverride,a=e.componentOverrides,l={},s={};return a&&(l=t&&a[t]||r&&a[r]||{}),i&&(s="function"==typeof i?i(o||{},e):i),{...l,...s}};var p=r("2817");let f=Object.freeze({radiusSmall:"0.125rem",radiusMedium:"0.25rem",radiusLarge:"0.5rem",widthSmall:"0.0625rem",widthMedium:"0.125rem",widthLarge:"0.25rem",style:"solid"}),h=Object.freeze(function(e){let t={textDarkest:e.licorice,textDark:e.ash,textLight:e.porcelain,textLightest:e.white,textBrand:e.brand,textLink:e.link,textAlert:e.barney,textInfo:e.brand,textSuccess:e.shamrock,textDanger:e.crimson,textWarning:e.fire},r={backgroundDarkest:e.licorice,backgroundDark:e.ash,backgroundMedium:e.tiara,backgroundLight:e.porcelain,backgroundLightest:e.white,backgroundBrand:e.brand,backgroundBrandSecondary:e.oxford,backgroundAlert:e.barney,backgroundInfo:e.brand,backgroundSuccess:e.shamrock,backgroundDanger:e.crimson,backgroundWarning:e.fire},n={borderLightest:e.white,borderLight:e.porcelain,borderMedium:e.tiara,borderDark:e.ash,borderDarkest:e.licorice,borderBrand:e.brand,borderAlert:e.barney,borderInfo:e.brand,borderSuccess:e.shamrock,borderDanger:e.crimson,borderWarning:e.fire,borderDebug:e.crimson};return{...e,...t,...r,...n,values:e,text:t,background:r,border:n}}({brand:"#0374B5",link:"#0374B5",electric:"#0374B5",shamrock:"#0B874B",barney:"#BF32A4",crimson:"#E0061F",fire:"#FC5E13",licorice:"#2D3B45",oxford:"#394B58",ash:"#6B7780",slate:"#8B969E",tiara:"#C7CDD1",porcelain:"#F5F5F5",white:"#FFFFFF"})),m=Object.freeze({duration:"300ms",timing:"ease-in-out"}),g=Object.freeze({fontFamily:'LatoWeb, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif',fontFamilyMonospace:'Menlo, Consolas, Monaco, "Andale Mono", monospace',fontSizeXSmall:"0.75rem",fontSizeSmall:"0.875rem",fontSizeMedium:"1rem",fontSizeLarge:"1.375rem",fontSizeXLarge:"1.75rem",fontSizeXXLarge:"2.375rem",fontWeightLight:300,fontWeightNormal:400,fontWeightBold:700,lineHeight:1.5,lineHeightFit:1.125,lineHeightCondensed:1.25,lineHeightDouble:2,letterSpacingNormal:0,letterSpacingCondensed:"-0.0625rem",letterSpacingExpanded:"0.0625rem"}),b=Object.freeze({xxxSmall:"0.125rem",xxSmall:"0.375rem",xSmall:"0.5rem",small:"0.75rem",mediumSmall:"1rem",medium:"1.5rem",large:"2.25rem",xLarge:"3rem",xxLarge:"3.75rem"}),y=Object.freeze({inputHeightSmall:"1.75rem",inputHeightMedium:"2.375rem",inputHeightLarge:"3rem"}),v=8,w=16,x=30,k=48,S=48,C=62,A=64,O=75,R=Object.freeze({xxSmall:`${v}em`,xSmall:`${w}em`,small:`${x}em`,medium:`${k}em`,tablet:`${S}em`,large:`${C}em`,desktop:`${A}em`,xLarge:`${O}em`,maxWidth:`${C-.0625}em`}),I=Object.freeze({mediumMin:`min-width: ${R.medium}`,largeMin:`min-width: ${R.large}`,xLargeMin:`min-width: ${R.xLarge}`}),B=["0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)","0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)","0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)"],M=Object.freeze({depth1:"0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)",depth2:"0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)",depth3:"0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)",resting:"0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2), 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1)",above:"0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1), 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.16)",topmost:"0 0.375rem 0.4375rem rgba(0, 0, 0, 0.1), 0 0.625rem 1.75rem rgba(0, 0, 0, 0.25)"}),$={colors:h,borders:f,transitions:m,typography:g,spacing:b,forms:y,media:I,breakpoints:R,shadows:M,stacking:Object.freeze({topmost:9999,above:1,below:-1,deepest:-9999})};var F=r("3047");function _(e){return e&&("object"==typeof e||"function"==typeof e)&&!Array.isArray(e)}function z(e){return Array.isArray(e)}let L=["borders","breakpoints","colors","forms","media","shadows","spacing","stacking","transitions","typography"],D=e=>{if(Array.isArray(e)||"function"==typeof e)throw Error();try{return"key"in e&&L.every(t=>t in e)}catch{throw Error()}},P=["key","description"],T=["key","description","use"],E="__GLOBAL_THEME_REGISTRY__";function j(){return{currentThemeKey:null,themes:{},registered:[]}}globalThis[E]?H(function(e){let t=j();if(void 0===e)return t;let r=!0;return Object.keys(t).forEach(t=>{void 0===e[t]&&(r=!1)}),(0,d.vU)(r,"[theme-registry] Invalid global theme registry!"),e}(globalThis[E])):N();function W(){return globalThis[E]}function H(e){globalThis[E]=e}function N(){H(j())}let G={registerTheme:function(e){let t=W();if(e.key&&t.themes[e.key])return t.themes[e.key];{if(!D(e))throw(0,d.vU)(!1,"[theme-registry] The theme provided to 'registerTheme' is not a valid theme object!\nFor it to be valid some properties have to be present, check out https://instructure.design/#canvas as a reference."),Error();let r=function(e){let t=e.key,r=e.description;return new Proxy({key:t,description:r,...(0,F.Z)(e,P),use(e){!function(e,t){let r=W(),n=r.themes[e];!n&&"@@themeRegistryDefaultTheme"!==e&&(0,d.vU)(n,`[theme-registry] Could not find theme: '${e}' in the registry.`),r.currentThemeKey=e;let o=function(...e){let t={};return e.forEach(e=>{t=function e(t,r){if(!_(r))return{...t};{let n=[...Object.keys(r),...Object.getOwnPropertySymbols(r)],o={...t};return n.forEach(n=>{_(t[n])&&_(r[n])?o[n]=e(t[n],r[n]):z(r[n])&&z(t[n])?o[n]=[...new Set([...t[n],...r[n]])]:z(t[n])?o[n]=[...new Set([...t[n],r[n]])]:o[n]=r[n]}),o}}(t,e)}),t}(n,t);r.themes[e]=o}(t,(null==e?void 0:e.overrides)||{})}},{get(e,t){e.key,e.description,e.use;let r=(0,F.Z)(e,T);return"variables"===t?r:Reflect.get(e,t)}})}(e);return t.themes[r.key]=r,t.registered.push(r.key),r}},getCurrentTheme:function(){let e=W(),t=e.currentThemeKey;if(t)return e.themes[t]}};$.borders,$.breakpoints;let Z=$.colors;$.forms,$.media,$.shadows,$.spacing,$.stacking,$.transitions,$.typography;let V={"ic-brand-primary":Z.textBrand,"ic-brand-font-color-dark":Z.textDarkest,"ic-link-color":Z.textLink,"ic-link-decoration":"none","ic-brand-button--primary-bgd":Z.backgroundBrand,"ic-brand-button--primary-text":Z.textLightest,"ic-brand-button--secondary-bgd":Z.backgroundDarkest,"ic-brand-button--secondary-text":Z.textLightest,"ic-brand-global-nav-bgd":Z.backgroundBrandSecondary,"ic-global-nav-link-hover":Z.backgroundDarkest,"ic-brand-global-nav-ic-icon-svg-fill":Z.textLightest,"ic-brand-global-nav-ic-icon-svg-fill--active":Z.textBrand,"ic-brand-global-nav-menu-item__text-color":Z.textLightest,"ic-brand-global-nav-menu-item__text-color--active":Z.textBrand},U={key:"canvas",...$,...V},X=G.registerTheme(U);var q=r("9159");let K=()=>{let e=(0,p.u)();if((0,q.x)(e)){let t=G.getCurrentTheme();if(t)return t;e=X}return e},Y={styles:{},makeStyles:()=>{}},J=(0,c.b)((e,t,r)=>{let i=e.displayName||e.name,l=(0,o.forwardRef)((a,l)=>{var c,p;let f=K();a.styles&&(0,d.ZK)(!1,`Manually passing the "styles" property is not allowed on the ${i} component. Using the default styles calculated by the @withStyle decorator instead. -`,a.styles),a.makeStyles&&(0,d.ZK)(!1,`Manually passing the "makeStyles" property is not allowed on the ${i} component. Styles are calculated by the @withStyle decorator.`);let h={...e.defaultProps,...a,...Y},m="function"==typeof r?r(f):{},g=u(f,i,e.componentId,h,m);m={...m,...g};let b=(p=2,function(e){if(Array.isArray(e))return e}(c=(0,o.useState)(t?t(m,h,{}):{}))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,d=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){d=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw o}}return l}}(c,2)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(c,p)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=b[0],v=b[1];return o.createElement(e,Object.assign({ref:l},a,{makeStyles:e=>{let r=t(m,h,e);!s()(r,y)&&v(r)},styles:y,themeOverride:g}))});return a()(l,e),l.originalType=e.originalType||e,l.propTypes=e.propTypes,l.defaultProps=e.defaultProps,l.allowedProps=e.allowedProps,l.generateComponentTheme=r,e.defaultProps={...e.defaultProps,makeStyles:Y.makeStyles,styles:Y.styles},l})},6254:function(e,t,r){"use strict";r.d(t,{c:()=>m});var n,o,i=r("3047"),a=r("4194"),l=r("8455"),s=r("3974"),d=r("3706"),c=r("4159"),u=r("7862"),p=r.n(u);let f={as:p().elementType,children:p().node,elementRef:p().func},h=["children","styles"],m=(0,d.w)(()=>({screenReaderContent:{label:"screenReaderContent",width:"0.0625rem",height:"0.0625rem",margin:"-0.0625rem",padding:0,position:"absolute",top:0,insetInlineStart:0,overflow:"hidden",clip:"rect(0 0 0 0)",border:0}}),null)(((o=class e extends a.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}render(){let t=this.props,r=t.children,n=t.styles,o=(0,i.Z)(t,h),a=(0,l.B)(e,o);return(0,c.tZ)(a,Object.assign({},(0,s.r)(o),{css:null==n?void 0:n.screenReaderContent,ref:this.handleRef}),r)}}).displayName="ScreenReaderContent",o.componentId="ScreenReaderContent",o.propTypes=f,o.allowedProps=["as","children","elementRef"],o.defaultProps={as:"span",children:null},n=o))||n},5501:function(e,t,r){"use strict";r.d(t,{B:function(){return a}});var n=r(4194),o=r(5172),i=r(6254);function a(e){let t=!1;return n.Children.forEach(e,e=>{e&&!(0,o.x)(e,[i.c])&&(t=!0)}),t}},5518:function(e,t,r){"use strict";r.d(t,{z:()=>eb});var n,o,i,a,l,s,d,c,u,p=r("3047"),f=r("4194"),h=r("9936"),m=r("7334"),g=r("3974"),b=r("3706");function y(e){return(y="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 v=/^\s+/,w=/\s+$/;function x(e,t){if(t=t||{},(e=e||"")instanceof x)return e;if(!(this instanceof x))return new x(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,i=null,a=!1,l=!1;return"string"==typeof e&&(e=function(e){e=e.replace(v,"").replace(w,"").toLowerCase();var t,r=!1;if(T[e])e=T[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=X.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=X.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=X.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=X.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=X.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=X.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=X.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:N(t[4])/255,format:r?"name":"hex8"};if(t=X.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:r?"name":"hex"};if(t=X.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:N(t[4]+""+t[4])/255,format:r?"name":"hex8"};return!!(t=X.hex3.exec(e))&&{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:r?"name":"hex"}}(e)),"object"==y(e)&&(q(e.r)&&q(e.g)&&q(e.b)?(t=function(e,t,r){return{r:255*W(e,255),g:255*W(t,255),b:255*W(r,255)}}(e.r,e.g,e.b),a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=Z(e.s),o=Z(e.v),t=function(e,t,r){e=6*W(e,360),t=W(t,100),r=W(r,100);var n=Math.floor(e),o=e-n,i=r*(1-t),a=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6;return{r:255*[r,a,i,i,l,r][s],g:255*[l,r,r,a,i,i][s],b:255*[i,i,l,r,r,a][s]}}(e.h,n,o),a=!0,l="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=Z(e.s),i=Z(e.l),t=function(e,t,r){var n,o,i;function a(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=W(e,360),t=W(t,100),r=W(r,100),0===t)n=o=i=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=a(s,l,e+1/3),o=a(s,l,e),i=a(s,l,e-1/3)}return{r:255*n,g:255*o,b:255*i}}(e.h,n,i),a=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=j(r),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}x.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n,o,i,a=this.toRgb();return e=a.r/255,t=a.g/255,r=a.b/255,.2126*(n=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(o=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(i=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=j(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=S(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=S(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=k(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=k(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return C(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,o){var i=[G(Math.round(e).toString(16)),G(Math.round(t).toString(16)),G(Math.round(r).toString(16)),G(V(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*W(this._r,255))+"%",g:Math.round(100*W(this._g,255))+"%",b:Math.round(100*W(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%)":"rgba("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[C(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+A(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=x(e);r="#"+A(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;if(!t&&n&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e))return"name"===e&&0===this._a?this.toName():this.toRgbString();return"rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()},clone:function(){return x(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(B,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(I,arguments)},spin:function(){return this._applyModification(F,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(L,arguments)},triad:function(){return this._applyCombination(z,[3])},tetrad:function(){return this._applyCombination(z,[4])}},x.fromRatio=function(e,t){if("object"==y(e)){var r={};for(var n in e)e.hasOwnProperty(n)&&("a"===n?r[n]=e[n]:r[n]=Z(e[n]));e=r}return x(e,t)};function k(e,t,r){e=W(e,255),t=W(t,255);var n=Math.max(e,t,r=W(r,255)),o=Math.min(e,t,r),i,a,l=(n+o)/2;if(n==o)i=a=0;else{var s=n-o;switch(a=l>.5?s/(2-n-o):s/(n+o),n){case e:i=(t-r)/s+(t>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(x(n));return i}function P(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,i=r.v,a=[],l=1/t;t--;)a.push(x({h:n,s:o,v:i})),i=(i+l)%1;return a}x.equals=function(e,t){return!!e&&!!t&&x(e).toRgbString()==x(t).toRgbString()},x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},x.mix=function(e,t,r){r=0===r?0:r||50;var n=x(e).toRgb(),o=x(t).toRgb(),i=r/100;return x({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},x.readability=function(e,t){var r=x(e),n=x(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},x.isReadable=function(e,t,r){var n,o,i=x.readability(e,t);switch(o=!1,(n=function(e){var t,r;return t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==r&&"large"!==r&&(r="small"),{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},x.mostReadable=function(e,t,r){var n,o,i,a,l=null,s=0;o=(r=r||{}).includeFallbackColors,i=r.level,a=r.size;for(var d=0;ds&&(s=n,l=x(t[d]));return x.isReadable(e,l,{level:i,size:a})||!o?l:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var T=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=x.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(T);function j(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function W(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return(e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),1e-6>Math.abs(e-t))?1:e%t/parseFloat(t)}function H(e){return Math.min(1,Math.max(0,e))}function N(e){return parseInt(e,16)}function G(e){return 1==e.length?"0"+e:""+e}function Z(e){return e<=1&&(e=100*e+"%"),e}function V(e){return Math.round(255*parseFloat(e)).toString(16)}function U(e){return N(e)/255}var X=(o="[\\s|\\(]+("+(n="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",{CSS_UNIT:new RegExp(n),rgb:RegExp("rgb"+o),rgba:RegExp("rgba"+i),hsl:RegExp("hsl"+o),hsla:RegExp("hsla"+i),hsv:RegExp("hsv"+o),hsva:RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!X.CSS_UNIT.exec(e)}function K(e,t){return x(e).darken(t).toRgbString()}function Y(e,t){return x(e).setAlpha(t/100).toRgbString()}let J="inset 0 0 0.1875rem 0.0625rem",Q=({style:e,textColor:t,ghostTextColor:r,backgroundColor:n,borderColor:o,ghostBorderColor:i=o})=>({[`${e}Color`]:t,[`${e}BorderColor`]:K(o,10),[`${e}Background`]:n,[`${e}HoverBackground`]:K(n,10),[`${e}ActiveBackground`]:K(n,10),[`${e}ActiveBoxShadow`]:`${J} ${K(o,20)}`,[`${e}GhostColor`]:r,[`${e}GhostBorderColor`]:i,[`${e}GhostBackground`]:"transparent",[`${e}GhostHoverBackground`]:Y(r,10),[`${e}GhostActiveBackground`]:"transparent",[`${e}GhostActiveBoxShadow`]:`${J} ${Y(i,28)}`}),ee=e=>{let t=e.borders,r=e.colors,n=e.forms,o=e.spacing,i=e.typography,a=e.key,l={canvas:{...Q({style:"primary",backgroundColor:e["ic-brand-button--primary-bgd"],borderColor:e["ic-brand-button--primary-bgd"],textColor:e["ic-brand-button--primary-text"],ghostTextColor:e["ic-brand-button--primary-bgd"]}),primaryGhostHoverBackground:Y(e["ic-brand-button--primary-bgd"],10)},"canvas-high-contrast":{secondaryBorderColor:null==r?void 0:r.borderMedium,primaryInverseBorderColor:null==r?void 0:r.borderMedium},instructure:{borderRadius:"999em",smallPaddingTop:"0.5rem",smallPaddingBottom:"0.4375rem",mediumPaddingTop:"0.75rem",mediumPaddingBottom:"0.75rem",largePaddingTop:"1rem",largePaddingBottom:"1rem",largeFontSize:"1.125rem"}};return{...{transform:"none",hoverTransform:"none",fontFamily:null==i?void 0:i.fontFamily,fontWeight:null==i?void 0:i.fontWeightNormal,textTransform:"none",letterSpacing:"normal",borderRadius:null==t?void 0:t.radiusMedium,borderStyle:null==t?void 0:t.style,borderWidth:null==t?void 0:t.widthSmall,smallHeight:null==n?void 0:n.inputHeightSmall,smallFontSize:null==i?void 0:i.fontSizeSmall,smallPaddingHorizontal:null==o?void 0:o.xSmall,smallPaddingTop:"0.375rem",smallPaddingBottom:"0.3125rem",mediumHeight:null==n?void 0:n.inputHeightMedium,mediumFontSize:null==i?void 0:i.fontSizeMedium,mediumPaddingHorizontal:null==o?void 0:o.small,mediumPaddingTop:"0.5625rem",mediumPaddingBottom:"0.5625rem",largeHeight:null==n?void 0:n.inputHeightLarge,largeFontSize:null==i?void 0:i.fontSizeLarge,largePaddingHorizontal:null==o?void 0:o.medium,largePaddingTop:"0.6875rem",largePaddingBottom:"0.6875rem",lineHeight:null==i?void 0:i.lineHeightFit,iconSizeSmall:"1rem",iconSizeMedium:"1.25rem",iconSizeLarge:"1.625rem",iconTextGap:o.xSmall,iconTextGapCondensed:o.xxSmall,...Q({style:"primary",backgroundColor:null==r?void 0:r.backgroundBrand,borderColor:null==r?void 0:r.borderBrand,textColor:null==r?void 0:r.textLightest,ghostTextColor:null==r?void 0:r.textBrand}),...Q({style:"secondary",backgroundColor:null==r?void 0:r.backgroundLight,borderColor:null==r?void 0:r.borderLight,ghostBorderColor:null==r?void 0:r.borderDarkest,textColor:null==r?void 0:r.textDarkest,ghostTextColor:null==r?void 0:r.textDarkest}),...Q({style:"success",backgroundColor:null==r?void 0:r.backgroundSuccess,borderColor:null==r?void 0:r.borderSuccess,textColor:null==r?void 0:r.textLightest,ghostTextColor:null==r?void 0:r.textSuccess}),...Q({style:"danger",backgroundColor:null==r?void 0:r.backgroundDanger,borderColor:null==r?void 0:r.borderDanger,textColor:null==r?void 0:r.textLightest,ghostTextColor:null==r?void 0:r.textDanger}),...Q({style:"primaryInverse",backgroundColor:null==r?void 0:r.backgroundLightest,borderColor:null==r?void 0:r.borderLightest,textColor:null==r?void 0:r.textDarkest,ghostTextColor:null==r?void 0:r.textLightest}),primaryInverseBorderColor:K(null==r?void 0:r.borderLight,10),primaryInverseHoverBackground:K(null==r?void 0:r.backgroundLightest,5),primaryInverseActiveBackground:null==r?void 0:r.backgroundLightest,primaryInverseActiveBoxShadow:`${J} ${K(null==r?void 0:r.borderLightest,25)}`,successGhostHoverBackground:Y(null==r?void 0:r.textSuccess,1)},...l[a]}};var et=r("2508"),er=r.n(et),en=r("8455"),eo=r("9783"),ei=r("6459"),ea=r("5501"),el=r("9719"),es=r("4159"),ed=r("7862"),ec=r.n(ed),eu=r("1569");let ep={children:ec().node,type:ec().oneOf(["button","submit","reset"]),size:ec().oneOf(["small","medium","large"]),elementRef:ec().func,as:ec().elementType,interaction:ec().oneOf(["enabled","disabled","readonly"]),color:ec().oneOf(["primary","primary-inverse","secondary","success","danger"]),focusColor:ec().oneOf(["info","inverse"]),display:ec().oneOf(["inline-block","block"]),textAlign:ec().oneOf(["start","center"]),shape:ec().oneOf(["rectangle","circle"]),withBackground:ec().bool,withBorder:ec().bool,isCondensed:ec().bool,margin:eu.j7.spacing,cursor:ec().string,href:ec().string,onClick:ec().func,onKeyDown:ec().func,renderIcon:ec().oneOfType([ec().node,ec().func]),tabIndex:ec().number},ef=["type","size","elementRef","as","href","color","focusColor","textAlign","shape","display","withBackground","withBorder","isCondensed","margin","cursor","onClick","renderIcon","tabIndex","styles","makeStyles"],eh=(a=(0,b.w)((e,t,r)=>{let n=t.size,o=t.color,i=t.textAlign,a=t.shape,l=t.withBackground,s=t.withBorder,d=t.isCondensed,c=r.isDisabled,u=r.hasOnlyIconVisible,p={small:{content:{fontSize:e.smallFontSize,paddingLeft:e.smallPaddingHorizontal,paddingRight:e.smallPaddingHorizontal,...u&&{paddingLeft:0,paddingRight:0,height:e.smallHeight,width:e.smallHeight}},children:{paddingTop:e.smallPaddingTop,paddingBottom:e.smallPaddingBottom},iconSVG:{fontSize:d?e.smallFontSize:e.iconSizeSmall}},medium:{content:{fontSize:e.mediumFontSize,paddingLeft:e.mediumPaddingHorizontal,paddingRight:e.mediumPaddingHorizontal,...u&&{paddingLeft:0,paddingRight:0,height:e.mediumHeight,width:e.mediumHeight}},children:{paddingTop:e.mediumPaddingTop,paddingBottom:e.mediumPaddingBottom},iconSVG:{fontSize:d?e.mediumFontSize:e.iconSizeMedium}},large:{content:{fontSize:e.largeFontSize,paddingLeft:e.largePaddingHorizontal,paddingRight:e.largePaddingHorizontal,...u&&{paddingLeft:0,paddingRight:0,height:e.largeHeight,width:e.largeHeight}},children:{paddingTop:e.largePaddingTop,paddingBottom:e.largePaddingBottom},iconSVG:{fontSize:d?e.largeFontSize:e.iconSizeLarge}}},f={primary:l?{default:{color:e.primaryColor,background:e.primaryBackground,borderColor:e.primaryBorderColor},active:{background:e.primaryActiveBackground,boxShadow:e.primaryActiveBoxShadow},hover:{background:e.primaryHoverBackground}}:{default:{color:e.primaryGhostColor,borderColor:e.primaryGhostBorderColor,background:e.primaryGhostBackground},active:{background:e.primaryGhostActiveBackground,boxShadow:e.primaryGhostActiveBoxShadow},hover:{background:e.primaryGhostHoverBackground}},secondary:l?{default:{color:e.secondaryColor,background:e.secondaryBackground,borderColor:e.secondaryBorderColor},active:{background:e.secondaryActiveBackground,boxShadow:e.secondaryActiveBoxShadow},hover:{background:e.secondaryHoverBackground}}:{default:{color:e.secondaryGhostColor,borderColor:e.secondaryGhostBorderColor,background:e.secondaryGhostBackground},active:{background:e.secondaryGhostActiveBackground,boxShadow:e.secondaryGhostActiveBoxShadow},hover:{background:e.secondaryGhostHoverBackground}},"primary-inverse":l?{default:{color:e.primaryInverseColor,background:e.primaryInverseBackground,borderColor:e.primaryInverseBorderColor},active:{background:e.primaryInverseActiveBackground,boxShadow:e.primaryInverseActiveBoxShadow},hover:{background:e.primaryInverseHoverBackground}}:{default:{color:e.primaryInverseGhostColor,borderColor:e.primaryInverseGhostBorderColor,background:e.primaryInverseGhostBackground},active:{background:e.primaryInverseGhostActiveBackground,boxShadow:e.primaryInverseGhostActiveBoxShadow},hover:{background:e.primaryInverseGhostHoverBackground}},success:l?{default:{color:e.successColor,background:e.successBackground,borderColor:e.successBorderColor},active:{background:e.successActiveBackground,boxShadow:e.successActiveBoxShadow},hover:{background:e.successHoverBackground}}:{default:{color:e.successGhostColor,borderColor:e.successGhostBorderColor,background:e.successGhostBackground},active:{background:e.successGhostActiveBackground,boxShadow:e.successGhostActiveBoxShadow},hover:{background:e.successGhostHoverBackground}},danger:l?{default:{color:e.dangerColor,background:e.dangerBackground,borderColor:e.dangerBorderColor},active:{background:e.dangerActiveBackground,boxShadow:e.dangerActiveBoxShadow},hover:{background:e.dangerHoverBackground}}:{default:{color:e.dangerGhostColor,borderColor:e.dangerGhostBorderColor,background:e.dangerGhostBackground},active:{background:e.dangerGhostActiveBackground,boxShadow:e.dangerGhostActiveBoxShadow},hover:{background:e.dangerGhostHoverBackground}}};return{baseButton:{label:"baseButton",appearance:"none",textDecoration:"none",touchAction:"manipulation","&::-moz-focus-inner":{border:"0"},"*":{pointerEvents:"none"},"&:focus":{textDecoration:"none"},"&:active > [class$=-baseButton__content]":f[o].active,"&:hover > [class$=-baseButton__content]":f[o].hover},content:{label:"baseButton__content",boxSizing:"border-box",width:"100%",display:"block",direction:"inherit",userSelect:"none",transition:"background 0.2s, transform 0.2s",transform:e.transform,fontFamily:e.fontFamily,fontWeight:e.fontWeight,textTransform:e.textTransform,letterSpacing:e.letterSpacing,borderStyle:e.borderStyle,borderWidth:e.borderWidth,borderRadius:e.borderRadius,lineHeight:e.lineHeight,textAlign:i,"&:hover":{transform:e.hoverTransform},...p[n].content,...f[o].default,...{circle:{borderRadius:"50%"},rectangle:{}}[a],...d&&{paddingLeft:0,paddingRight:0},...c&&{opacity:.5},...u&&{lineHeight:1},...!s&&{borderStyle:"none"}},children:{label:"baseButton__children",display:"block",...p[n].children,...d&&{paddingTop:0,paddingBottom:0}},iconSVG:{label:"baseButton__iconSVG",display:"flex",alignItems:"center",...p[n].iconSVG},childrenLayout:{label:"baseButton__childrenLayout",display:"flex",height:"100%",width:"100%",justifyContent:u||"center"===i?"center":"flex-start",boxSizing:"border-box",alignItems:"center",flexDirection:"row",maxWidth:"100%",overflowX:"visible",overflowY:"visible",unicodeBidi:"isolate"},iconOnly:{label:"baseButton__iconOnly",boxSizing:"border-box",minWidth:"0.0625rem",flexShrink:0,maxWidth:"100%",overflowX:"visible",overflowY:"visible",unicodeBidi:"isolate"},iconWrapper:{label:"baseButton__iconWrapper",boxSizing:"border-box",minWidth:"0.0625rem",paddingInlineEnd:d?e.iconTextGapCondensed:e.iconTextGap,flexShrink:0,maxWidth:"100%",overflowX:"visible",overflowY:"visible",unicodeBidi:"isolate"},childrenWrapper:{label:"baseButton__childrenWrapper",boxSizing:"border-box",minWidth:"0.0625rem",flexShrink:1,maxWidth:"100%",overflowX:"visible",overflowY:"visible",unicodeBidi:"isolate"}}},ee),a(l=(0,h.j)()(((s=class e extends f.Component{constructor(...e){super(...e),this.ref=null,this.handleElementRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)},this.handleClick=e=>{let t=this.props.onClick;if("enabled"!==this.interaction){e.preventDefault(),e.stopPropagation();return}"function"==typeof t&&t(e)},this.handleKeyDown=e=>{let t=this.props,r=t.onClick,n=t.onKeyDown,o=t.href,i=this.interaction;"function"==typeof n&&n(e);let a=er().codes,l=a.space,s=a.enter;"button"!==this.elementType&&[l,s].includes(e.keyCode)&&(e.preventDefault(),e.stopPropagation(),"function"==typeof r&&"enabled"===i&&r(e),o&&this.ref&&this.ref.click())}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t,this.makeStylesVariables)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t,this.makeStylesVariables)}get makeStylesVariables(){return{isDisabled:this.isDisabled,hasOnlyIconVisible:this.hasOnlyIconVisible}}get hasOnlyIconVisible(){let e=this.props,t=e.children;return!!(e.renderIcon&&!(0,ea.B)(t))}get elementType(){return(0,en.B)(e,this.props)}get interaction(){return(0,m.S)({props:this.props})}get isDisabled(){return"disabled"===this.interaction}get isReadOnly(){return"readonly"===this.interaction}get isEnabled(){return"enabled"===this.interaction}get focusColor(){let e=this.props,t=e.color,r=e.focusColor,n=e.withBackground;return r?r:"primary-inverse"===t&&n?"info":t.includes("inverse")?"inverse":"info"}get focused(){return function(e){let t=e&&(0,ei.m)(e);return!!t&&function(e){var t;let r=document.activeElement;return r&&(t=r).tagName.includes("-")&&customElements.get(t.tagName.toLowerCase())?r.shadowRoot.activeElement:r}()===t}(this.ref)}focus(){this.ref&&this.ref.focus()}renderChildren(){let e=this.props,t=e.renderIcon,r=e.children,n=e.styles,o=(0,es.tZ)("span",{css:null==n?void 0:n.children},r);if(!t)return o;let i=this.hasOnlyIconVisible,a=(0,es.tZ)("span",{css:null==n?void 0:n.iconSVG},(0,eo.A)(t)),l=i?(0,es.tZ)("span",{css:null==n?void 0:n.iconOnly},a,r):[(0,es.tZ)("span",{key:"icon",css:null==n?void 0:n.iconWrapper},a),(0,es.tZ)("span",{key:"children",css:null==n?void 0:n.childrenWrapper},o)];return(0,es.tZ)("span",{css:null==n?void 0:n.childrenLayout},l)}render(){let e=this.props,t=e.type,r=(e.size,e.elementRef,e.as),n=e.href,o=(e.color,e.focusColor,e.textAlign,e.shape),i=e.display,a=(e.withBackground,e.withBorder,e.isCondensed,e.margin),l=e.cursor,s=e.onClick,d=(e.renderIcon,e.tabIndex),c=e.styles,u=(e.makeStyles,(0,p.Z)(e,ef)),f=this.isDisabled,h=this.isEnabled,m=this.isReadOnly;return(0,es.tZ)(el.G,Object.assign({},(0,g.r)(u),{as:this.elementType,focusColor:this.focusColor,position:"relative",display:i,width:"block"===i?"100%":"auto",borderRadius:"circle"===o?"circle":"medium",background:"transparent",padding:"none",borderWidth:"none",margin:a,cursor:f?"not-allowed":l,href:n,type:n?void 0:t,elementRef:this.handleElementRef,onClick:this.handleClick,onKeyDown:this.handleKeyDown,role:s&&"button"!==r?"button":void 0,tabIndex:s&&r?d||0:d,disabled:f||m,css:h?null==c?void 0:c.baseButton:null}),(0,es.tZ)("span",{css:null==c?void 0:c.content},this.renderChildren()))}}).displayName="BaseButton",s.componentId="BaseButton",s.propTypes=ep,s.allowedProps=["as","children","color","cursor","display","elementRef","focusColor","href","interaction","isCondensed","margin","onClick","onKeyDown","renderIcon","shape","size","tabIndex","textAlign","type","withBackground","withBorder"],s.defaultProps={type:"button",size:"medium",as:"button",interaction:void 0,color:"secondary",shape:"rectangle",display:"inline-block",textAlign:"start",withBackground:!0,withBorder:!0,isCondensed:!1,margin:"0",cursor:"pointer"},l=s))||l)||l),em={children:ec().node,type:ec().oneOf(["button","submit","reset"]),size:ec().oneOf(["small","medium","large"]),elementRef:ec().func,as:ec().elementType,interaction:ec().oneOf(["enabled","disabled","readonly"]),color:ec().oneOf(["primary","primary-inverse","secondary","success","danger"]),focusColor:ec().oneOf(["info","inverse"]),display:ec().oneOf(["inline-block","block"]),textAlign:ec().oneOf(["start","center"]),withBackground:ec().bool,margin:eu.j7.spacing,cursor:ec().string,href:ec().string,renderIcon:ec().oneOfType([ec().node,ec().func]),onClick:ec().func},eg=["children","type","size","as","color","focusColor","display","textAlign","withBackground","margin","cursor","href","renderIcon"],eb=(d=(0,b.w)(null,ee),d(c=(0,h.j)()(((u=class extends f.Component{constructor(...e){super(...e),this._buttonComponent=null,this.ref=null,this.handleElementRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)},this.handleButtonRef=e=>{this._buttonComponent=e}}get focused(){return this._buttonComponent&&this._buttonComponent.focused}focus(){this._buttonComponent&&this._buttonComponent.focus()}render(){let e=this.props,t=e.children,r=e.type,n=e.size,o=e.as,i=e.color,a=e.focusColor,l=e.display,s=e.textAlign,d=e.withBackground,c=e.margin,u=e.cursor,h=e.href,b=e.renderIcon,y=(0,p.Z)(e,eg),v=(0,m.S)({props:y}),w=this.props.themeOverride,x={...(0,g.r)(y),type:r,size:n,elementRef:this.handleElementRef,ref:this.handleButtonRef,as:o,color:i,interaction:v,focusColor:a,display:l,textAlign:s,withBackground:d,margin:c,cursor:u,href:h,renderIcon:b,themeOverride:w};return f.createElement(eh,x,t)}}).displayName="Button",u.componentId="Button",u.propTypes=em,u.allowedProps=["as","children","color","cursor","display","elementRef","focusColor","href","interaction","margin","renderIcon","size","textAlign","type","withBackground","onClick"],u.defaultProps={type:"button",size:"medium",as:"button",interaction:void 0,color:"secondary",display:"inline-block",textAlign:"center",withBackground:!0,margin:"0",cursor:"pointer"},c=u))||c)||c)},512:function(e,t,r){"use strict";function n(e){return(...t)=>r=>{if("function"!=typeof e)return r;{let n=r.displayName||r.name,o=e(r,...t);return o.displayName=n,o}}}r.d(t,{b:function(){return n}})},6459:function(e,t,r){"use strict";r.d(t,{m:function(){return function e(t){let r="function"==typeof t?t():t;if(r&&r===document)return document.documentElement;if(r instanceof Element||r===window||r&&void 0!==r.nodeType)return r;if(r){if(!o(r))return r.constructor.componentId?r.constructor.componentId:r.constructor.name,n.findDOMNode(r);{let t=i(r.ref)?r.ref.current:r.ref;return t instanceof HTMLElement?t:e(t)}}}}});var n=r(6321);let o=e=>!!e&&void 0!==e.ref,i=e=>!!e&&void 0!==e.current},9839:function(e,t,r){"use strict";r.d(t,{kC:()=>C});var n,o,i,a,l=r("4194"),s=r("5172"),d=r("4844"),c=r("9783"),u=r("3974"),p=r("9719"),f=r("3706"),h=r("4159"),m=r("9763"),g=r("7862"),b=r.n(g),y=r("1569");let v={children:b().node,as:b().elementType,elementRef:b().func,margin:y.j7.spacing,padding:y.j7.spacing,align:b().oneOf(["center","start","end","stretch"]),direction:b().oneOf(["row","column"]),textAlign:b().oneOf(["start","center","end"]),overflowX:b().oneOf(["auto","hidden","visible"]),overflowY:b().oneOf(["auto","hidden","visible"]),shouldGrow:b().bool,shouldShrink:b().bool,size:b().string,withVisualDebug:b().bool},w=(0,f.w)((e,t)=>{let r=t.shouldGrow,n=t.shouldShrink,o=t.align,i=t.size;return{flexItem:{label:"flexItem",boxSizing:"border-box",minWidth:"0.0625rem",flexBasis:i,flexShrink:n?1:0,...r&&{flexGrow:1},...o&&{alignSelf:({start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"})[o]}}}},null)(((o=class e extends l.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}render(){let t=(0,m.c)(this.props,e.allowedProps),r=this.props,n=r.as,o=r.children,i=r.withVisualDebug,a=r.textAlign,l=r.size,s=r.direction,d=r.margin,c=r.padding,u=r.overflowX,f=r.overflowY,g=r.styles,b="column"===s;return(0,h.tZ)(p.G,Object.assign({},t,{css:null==g?void 0:g.flexItem,elementRef:this.handleRef,as:n,minHeight:b?l:void 0,minWidth:"row"===s?l:void 0,textAlign:a,margin:d,padding:c,overflowX:u,overflowY:f||(b?"auto":"visible"),withVisualDebug:i}),o)}}).displayName="Item",o.componentId="Flex.Item",o.propTypes=v,o.allowedProps=["children","as","elementRef","margin","padding","align","direction","textAlign","overflowX","overflowY","shouldGrow","shouldShrink","size","withVisualDebug"],o.defaultProps={as:"span",shouldGrow:!1,shouldShrink:!1},n=o))||n;var x=r("4290"),k=r("7382");let S={children:b().oneOfType([b().node,b().func]),as:b().elementType,elementRef:b().func,height:b().oneOfType([b().string,b().number]),width:b().oneOfType([b().string,b().number]),margin:y.j7.spacing,padding:y.j7.spacing,gap:y.j7.spacing,display:b().oneOf(["flex","inline-flex"]),textAlign:b().oneOf(["start","center","end"]),direction:b().oneOf(["row","column","row-reverse","column-reverse"]),alignItems:b().oneOf(["center","start","end","stretch"]),justifyItems:b().oneOf(["center","start","end","space-around","space-between"]),wrap:b().oneOf(["wrap","no-wrap","wrap-reverse"]),withVisualDebug:b().bool},C=(0,f.w)((e,t)=>{let r,n,o=t.justifyItems,i=t.wrap,a=t.direction,l=t.gap,s=t.alignItems||("column"===a||"column-reverse"===a?"stretch":"center");return{flex:{label:"flex",fontFamily:e.fontFamily,boxSizing:"border-box",alignItems:({center:"center",start:"flex-start",end:"flex-end",stretch:"stretch"})[s],justifyContent:({start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"})[o],flexWrap:({wrap:"wrap","wrap-reverse":"wrap-reverse","no-wrap":void 0})[i],flexDirection:({column:"column","column-reverse":"column-reverse",row:"row","row-reverse":"row-reverse"})[a],gap:(r=l,n=e,(0,x.x)("Flex",n,r,"gap"))}}},e=>{let t=e.typography,r=e.spacing;return{...{fontFamily:null==t?void 0:t.fontFamily,...(0,k.L)("gap",r)}}})(((a=class extends l.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}renderChildren(e){return l.Children.map(e,e=>e?(0,s.x)(e,["Item"])?(0,d.i)(e,{withVisualDebug:this.props.withVisualDebug,...e.props,direction:this.props.direction.replace(/-reverse/,"")}):e:null)}render(){let e=this.props,t=e.as,r=e.withVisualDebug,n=e.height,o=e.display,i=e.margin,a=e.padding,s=e.textAlign,d=e.width,f=e.styles,m=e.gap,g=e.wrap,b=(0,c.A)(this.props.children);return((null==m?void 0:m.split(" ")).length>1,b&&l.Children.count(b)>0)?(0,h.tZ)(p.G,Object.assign({},(0,u.r)(this.props),{css:null==f?void 0:f.flex,elementRef:this.handleRef,as:t,display:o,width:d,height:n,margin:i,padding:a,textAlign:s,withVisualDebug:r}),this.renderChildren(b)):null}}).displayName="Flex",a.componentId="Flex",a.Item=w,a.propTypes=S,a.allowedProps=["children","as","elementRef","height","width","margin","padding","display","textAlign","direction","alignItems","justifyItems","wrap","withVisualDebug"],a.defaultProps={as:"span",direction:"row",justifyItems:"start",display:"flex",withVisualDebug:!1,wrap:"no-wrap",gap:"none"},i=a))||i},2462:function(e,t,r){"use strict";r.d(t,{X:()=>v});var n,o,i,a=r("3047"),l=r("4194"),s=r("9719"),d=r("8455"),c=r("3974"),u=r("9936"),p=r("3706"),f=r("4159"),h=r("7862"),m=r.n(h),g=r("1569");let b={border:m().oneOf(["none","top","bottom"]),children:function(e,t,r){if("input"===e.as){if("children"===t&&e.children||void 0==e.value)return Error(`Prop \`value\` and not \`children\` must be supplied if \`${r} as="input"\``)}else{if("value"===t&&void 0!=e.value)return Error(`Prop \`children\` and not \`value\` must be supplied unless \`${r} as="input"\``);if(!e.children)return Error(`Prop \`children\` should be supplied unless \`${r} as="input"\`.`)}return null},color:m().oneOf(["primary","secondary","primary-inverse","secondary-inverse","inherit"]),level:m().oneOf(["h1","h2","h3","h4","h5","reset"]),as:m().elementType,margin:g.j7.spacing,elementRef:m().func},y=["border","children","color","level","margin","elementRef","makeStyles"],v=(n=(0,p.w)((e,t)=>{let r=t.level,n=t.color,o=t.border,i={h1:{fontFamily:e.h1FontFamily,fontSize:e.h1FontSize,fontWeight:e.h1FontWeight},h2:{fontFamily:e.h2FontFamily,fontSize:e.h2FontSize,fontWeight:e.h2FontWeight},h3:{fontFamily:e.h3FontFamily,fontSize:e.h3FontSize,fontWeight:e.h3FontWeight},h4:{fontFamily:e.h4FontFamily,fontSize:e.h4FontSize,fontWeight:e.h4FontWeight},h5:{fontFamily:e.h5FontFamily,fontSize:e.h5FontSize,fontWeight:e.h5FontWeight},reset:{margin:0,fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"}},a={inherit:{color:"inherit"},primary:{color:e.primaryColor},secondary:{color:e.secondaryColor},"primary-inverse":{color:e.primaryInverseColor},"secondary-inverse":{color:e.secondaryInverseColor}},l={top:{paddingTop:e.borderPadding,borderTop:`${e.borderWidth} ${e.borderStyle} ${e.borderColor}`},bottom:{paddingBottom:e.borderPadding,borderBottom:`${e.borderWidth} ${e.borderStyle} ${e.borderColor}`},none:{}},s={outline:0,appearance:"none",boxSizing:"border-box",background:"none",border:"none",borderRadius:0,padding:0,margin:"-0.375rem 0 0 0",color:"inherit",height:"auto",width:"100%",lineHeight:"inherit",textAlign:"start",boxShadow:"none",display:"block","&:focus":{outline:"none"}};return{heading:{label:"heading",lineHeight:e.lineHeight,margin:0,"&:is(input)[type]":s,"&:-webkit-any(input)[type]":s,...i[r],...a[n],...l[o]}}},e=>{let t=e.typography,r=e.colors,n=e.spacing,o=e.borders,i=e.key,a={canvas:{primaryColor:e["ic-brand-font-color-dark"]},instructure:{h1FontFamily:null==t?void 0:t.fontFamilyHeading,h2FontFamily:null==t?void 0:t.fontFamilyHeading,h3FontWeight:null==t?void 0:t.fontWeightBold,h3FontSize:"2.125rem",h4FontWeight:null==t?void 0:t.fontWeightBold,h4FontSize:null==t?void 0:t.fontSizeLarge,h5FontWeight:null==t?void 0:t.fontWeightBold,h5FontSize:null==t?void 0:t.fontSizeMedium}};return{lineHeight:null==t?void 0:t.lineHeightCondensed,h1FontSize:null==t?void 0:t.fontSizeXXLarge,h1FontWeight:null==t?void 0:t.fontWeightBold,h1FontFamily:null==t?void 0:t.fontFamily,h2FontSize:null==t?void 0:t.fontSizeXLarge,h2FontWeight:null==t?void 0:t.fontWeightNormal,h2FontFamily:null==t?void 0:t.fontFamily,h3FontSize:null==t?void 0:t.fontSizeLarge,h3FontWeight:null==t?void 0:t.fontWeightBold,h3FontFamily:null==t?void 0:t.fontFamily,h4FontSize:null==t?void 0:t.fontSizeMedium,h4FontWeight:null==t?void 0:t.fontWeightBold,h4FontFamily:null==t?void 0:t.fontFamily,h5FontSize:null==t?void 0:t.fontSizeSmall,h5FontWeight:null==t?void 0:t.fontWeightNormal,h5FontFamily:null==t?void 0:t.fontFamily,primaryInverseColor:null==r?void 0:r.textLightest,primaryColor:null==r?void 0:r.textDarkest,secondaryColor:null==r?void 0:r.textDark,secondaryInverseColor:null==r?void 0:r.textLight,borderPadding:null==n?void 0:n.xxxSmall,borderColor:null==r?void 0:r.borderMedium,borderWidth:null==o?void 0:o.widthSmall,borderStyle:null==o?void 0:o.style,...a[i]}}),n(o=(0,u.j)()(((i=class e extends l.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}render(){var t;let r=this.props,n=(r.border,r.children),o=(r.color,r.level),i=r.margin,l=(r.elementRef,r.makeStyles,(0,a.Z)(r,y)),u=(0,d.B)(e,this.props,()=>"reset"===o?"span":o);return(0,f.tZ)(s.G,Object.assign({},(0,c.r)(l),{css:null===(t=this.props.styles)||void 0===t?void 0:t.heading,as:u,elementRef:this.handleRef,margin:i}),n)}}).displayName="Heading",i.componentId="Heading",i.propTypes=b,i.allowedProps=["border","children","color","level","as","margin","elementRef"],i.defaultProps={children:null,border:"none",color:"inherit",level:"h2"},o=i))||o)||o)},7934:function(e,t,r){"use strict";r.d(t,{j:()=>b});var n,o,i,a=r("3047"),l=r("4194"),s=r("9936"),d=r("3706"),c=r("4159"),u=r("3974"),p=r("9783"),f=r("7862"),h=r.n(f);let m={textAlign:h().oneOf(["start","center","end"]),renderLabel:h().oneOfType([h().func,h().node]),renderValue:h().oneOfType([h().func,h().node]),isGroupChild:h().bool},g=["textAlign","renderLabel","renderValue","isGroupChild"],b=(n=(0,d.w)((e,t)=>{let r=t.textAlign;return{metric:{label:"metric",display:"flex",flexDirection:"column-reverse",boxSizing:"border-box",padding:e.padding,fontFamily:e.fontFamily,textAlign:r},label:{label:"metric__label",fontSize:e.labelFontSize,color:e.labelColor},value:{label:"metric__value",fontWeight:e.valueFontWeight,fontSize:e.valueFontSize,color:e.valueColor}}},e=>{let t=e.colors,r=e.spacing,n=e.typography,o=e.key,i={canvas:{valueColor:e["ic-brand-font-color-dark"],labelColor:e["ic-brand-font-color-dark"]}};return{padding:`0 ${null==r?void 0:r.xSmall}`,fontFamily:null==n?void 0:n.fontFamily,valueColor:null==t?void 0:t.textDarkest,valueFontSize:null==n?void 0:n.fontSizeXLarge,valueFontWeight:null==n?void 0:n.fontWeightBold,labelColor:null==t?void 0:t.textDarkest,labelFontSize:null==n?void 0:n.fontSizeXSmall,...i[o]}}),n(o=(0,s.j)()(((i=class extends l.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}render(){var e,t,r;let n=this.props,o=(n.textAlign,n.renderLabel),i=n.renderValue,l=n.isGroupChild,s=(0,a.Z)(n,g);return(0,c.tZ)("div",Object.assign({},(0,u.r)(s),{role:l?"row":void 0,css:null===(e=this.props.styles)||void 0===e?void 0:e.metric,ref:this.handleRef}),(0,c.tZ)("div",{role:l?"rowheader":void 0,css:null===(t=this.props.styles)||void 0===t?void 0:t.label},(0,p.A)(o)),(0,c.tZ)("div",{role:l?"gridcell":void 0,css:null===(r=this.props.styles)||void 0===r?void 0:r.value},(0,p.A)(i)))}}).displayName="Metric",i.componentId="Metric",i.propTypes=m,i.allowedProps=["textAlign","renderLabel","renderValue","isGroupChild"],i.defaultProps={textAlign:"center",isGroupChild:!1},o=i))||o)||o)},7743:function(e,t,r){"use strict";r.d(t,{Y:()=>eq});var n,o,i,a,l,s,d,c,u,p,f,h,m,g,b,y,v,w,x,k,S,C,A,O,R,I,B,M,$,F,_,z,L,D,P=r("4194"),T=r("2508"),E=r.n(T),j=r("9763"),W=r("1377"),H=r("3047"),N=r("5501"),G=r("6254"),Z=r("5172"),V=r("4844"),U=r("3706"),X=r("4159"),q=r("4811"),K=r("7862"),Y=r.n(K);let J=Y().oneOfType([Y().number,Y().oneOf(["auto"])]),Q={children:Y().node,colSpacing:Y().oneOf(["none","small","medium","large"]),rowSpacing:Y().oneOf(["none","small","medium","large"]),textAlign:Y().oneOf(["start","end","center","inherit"]),hAlign:Y().oneOf(["start","center","end","space-around","space-between"]),vAlign:Y().oneOf(["top","middle","bottom","stretch"]),startAt:Y().oneOf(["small","medium","large","x-large",null]),visualDebug:Y().bool,width:Y().oneOfType([J,Y().shape({small:J,medium:J,large:J,xLarge:J})]),offset:Y().oneOfType([J,Y().shape({small:J,medium:J,large:J,xLarge:J})]),isLastRow:Y().bool,isLastCol:Y().bool,elementRef:Y().func},ee=(0,U.w)((e,t)=>{let r=t.vAlign,n=t.textAlign,o=t.rowSpacing,i=t.colSpacing,a=t.isLastRow,l=t.isLastCol,s=t.startAt,d=t.visualDebug,c={small:{marginBottom:e.spacingSmall},medium:{marginBottom:e.spacingMedium},large:{marginBottom:e.spacingLarge},none:{marginBottom:0}},u=()=>{let t={small:{paddingLeft:`calc(${e.spacingSmall} / 2)`,paddingRight:`calc(${e.spacingSmall} / 2)`},medium:{paddingLeft:`calc(${e.spacingMedium} / 2)`,paddingRight:`calc(${e.spacingMedium} / 2)`},large:{paddingLeft:`calc(${e.spacingLarge} / 2)`,paddingRight:`calc(${e.spacingLarge} / 2)`},none:{}};return{flexGrow:1,flexShrink:1,flexBasis:"0%",marginBottom:0,boxSizing:"border-box",...i&&t[i],...r&&({top:{alignSelf:"flex-start"},middle:{alignSelf:"center"},bottom:{alignSelf:"flex-end"},stretch:{alignSelf:"stretch"}})[r],...n&&({start:{textAlign:"start"},end:{textAlign:"end"},center:{textAlign:"center"},inherit:{textAlign:"inherit"}})[n]}},p=()=>{let e=["small","medium","large","x-large",null];return e.slice(e.indexOf(s))},f=e=>p().includes(e),h=e=>{let r=t.width;if(r)return r&&"object"==typeof r&&(r=r["x-large"===e?"xLarge":e]),r},m=e=>{let r=t.offset;if(r)return r&&"object"==typeof r&&(r=r["x-large"===e?"xLarge":e]),r},g=(e="1")=>{switch(e){case"auto":return{flexGrow:0,flexShrink:0,flexBasis:"auto"};case 12:return{flex:"0 0 100%"};default:return{flexGrow:0,flexShrink:0,flexBasis:`calc(${e} / 12 * 99.999%)`,maxWidth:`calc(${e} / 12 * 99.999%)`}}},b=(e="1")=>{switch(e){case"auto":case 12:return{};default:return{marginInlineStart:`calc(${e} / 12 * 99.999%)`,marginInlineEnd:0}}},y=e=>s&&s===e?{...u()}:{},v=e=>{let t=h(e),r=m(e);return f(e)?{...t&&g(t),...r&&b(r)}:{}},w=e=>({...y(e),...v(e)});return{gridCol:{label:"gridCol",display:"block",boxSizing:"border-box",textAlign:"inherit",minWidth:"0.0625rem",...o&&c[o],...a&&l&&{marginBottom:0},...w("small"),[`@media screen and (${e.mediumMin})`]:{...w("medium")},[`@media screen and (${e.largeMin})`]:{...w("large")},[`@media screen and (${e.xLargeMin})`]:{...w("x-large")},...d&&{outline:"0.0625rem dashed red"}}}},e=>{let t=e.spacing,r=e.media;return{...{spacingSmall:null==t?void 0:t.small,spacingMedium:null==t?void 0:t.medium,spacingLarge:null==t?void 0:t.large,...r}}})(((o=class e extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)}}widthCheck(){let e=this.props.width,t=!1;e&&("number"==typeof e&&e<=0&&(t=!0),"object"==typeof e&&Object.keys(e).forEach(r=>{"number"==typeof e[r]&&e[r]<=0&&(t=!0)})),t&&(0,q.yN)(!1,"Col width must be positive!")}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t),this.widthCheck()}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t),this.widthCheck()}render(){let t=this.props,r=t.children,n=t.styles,o=(0,j.c)(this.props,e.allowedProps);return(0,X.tZ)("span",Object.assign({},o,{ref:this.handleRef,css:null==n?void 0:n.gridCol}),r)}}).displayName="GridCol",o.componentId="Grid.Col",o.propTypes=Q,o.allowedProps=["children","colSpacing","rowSpacing","textAlign","hAlign","vAlign","startAt","visualDebug","width","offset","isLastRow","isLastCol","elementRef"],o.defaultProps={textAlign:"inherit",children:null,isLastCol:!1,isLastRow:!1},n=o))||n;function et(e){return function(t,r,n,o="",i=""){let a=t[r];return null==a?Error(`The prop \`${r}\` is marked as required in \`${n}\`, but its value is \`${a}\``):e(t,r,n,o,i)}}let er={oneOf(e){function t(t,r,n){let o=P.Children.toArray(t[r]),i=e.map(e=>e?en(e):e);for(let e=0;ei.indexOf(e))return Error(`Expected one of ${i.join(", ")} in ${n} but found '${e}'`)}else if(t)return Error(`Expected one of ${i.join(", ")} in ${n} but found an element with unknown type: ${t}`)}return null}return t.isRequired=et(t),t},oneOfEach:e=>function(t,r,n){let o=P.Children.toArray(t[r]),i={},a=e.map(e=>{let t=en(e);return i[t]=0,t});for(let e=0;ea.indexOf(e))return Error(`Expected one of ${a.join(", ")} in ${n} but found '${e}'`);i[e]=(i[e]||0)+1}else if(t)return Error(`Expected one of ${a.join(", ")} in ${n} but found an element of unknown type: ${t}`)}let l=[];return(Object.keys(i).forEach(e=>{i[e]>1&&l.push(`${i[e]} children of type ${e}`),0===i[e]&&l.push(`0 children of type ${e}`)}),l.length>0)?Error(`Expected exactly one of each ${a.join(", ")} in ${n} but found:${l.join("\n")}`):null},enforceOrder(...e){function t(e,t){let r=t.map(e=>e?en(e):"??").map(e=>` <${e} />`).join("\n");return`<${e}> -${r} -`}function r(r,n,o){var i;let a=P.Children.toArray(r[n]).map(e=>e&&e.type?en(e.type):e?null:void 0);for(let t=0;te?en(e):"??")))return null;return Error(`Expected children of ${o} in one of the following formats: - ${(i=o,e.map(e=>t(i,e)).join("\n\n"))} - - - Instead of: - ${t(o,a)}`)}return r.isRequired=et(r),r}},en=e=>"string"==typeof e?e:e.displayName||e.name,eo={children:er.oneOf([ee,G.c]),rowSpacing:Y().oneOf(["none","small","medium","large"]),colSpacing:Y().oneOf(["none","small","medium","large"]),hAlign:Y().oneOf(["start","center","end","space-around","space-between"]),vAlign:Y().oneOf(["top","middle","bottom","stretch"]),startAt:Y().oneOf(["small","medium","large","x-large",null]),visualDebug:Y().bool,isLastRow:Y().bool},ei=["styles","makeStyles"],ea=["styles"],el=(0,U.w)((e,t)=>{let r=t.hAlign,n=t.vAlign,o=t.rowSpacing,i=t.colSpacing,a=t.isLastRow,l=t.startAt,s=t.visualDebug,d=()=>{let t={small:{margin:`0 calc(-1 * ${e.spacingSmall} / 2)`},medium:{margin:`0 calc(-1 * ${e.spacingMedium} / 2)`},large:{margin:`0 calc(-1 * ${e.spacingLarge} / 2)`},none:{}},l={small:{marginBottom:e.spacingSmall},medium:{marginBottom:e.spacingMedium},large:{marginBottom:e.spacingLarge},none:{marginBottom:0}};return{display:"flex",flexFlow:"row nowrap",...r&&({center:{justifyContent:"center"},start:{justifyContent:"flex-start"},end:{justifyContent:"flex-end"},"space-around":{justifyContent:"space-around"},"space-between":{justifyContent:"space-between"}})[r],...n&&({top:{alignItems:"flex-start"},middle:{alignItems:"center"},bottom:{alignItems:"flex-end"},stretch:{alignItems:"stretch"}})[n],...i&&t[i],...o&&l[o],...a&&{marginBottom:0}}},c=e=>l&&l===e?{...d()}:{};return{gridRow:{label:"gridRow",display:"block",boxSizing:"border-box",...c("small"),[`@media screen and (${e.mediumMin})`]:{...c("medium")},[`@media screen and (${e.largeMin})`]:{...c("large")},[`@media screen and (${e.xLargeMin})`]:{...c("x-large")},...s&&{outline:"0.0625rem dashed blue"}}}},e=>{let t=e.spacing,r=e.media;return{...{spacingSmall:null==t?void 0:t.small,spacingMedium:null==t?void 0:t.medium,spacingLarge:null==t?void 0:t.large,...r}}})(((a=class e extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}renderChildren(){let t=this.props,r=(t.styles,t.makeStyles,(0,H.Z)(t,ei));return P.Children.map(this.props.children,(t,n)=>(0,Z.x)(t,[ee])?(0,V.i)(t,{...(0,W.H)(r,e.allowedProps),...t.props,isLastRow:r.isLastRow,isLastCol:n+1===P.Children.count(this.props.children)}):t)}render(){let t=this.props,r=t.styles,n=(0,H.Z)(t,ea),o=(0,j.c)(n,e.allowedProps);return(0,X.tZ)("span",Object.assign({},o,{css:null==r?void 0:r.gridRow,ref:this.handleRef}),this.renderChildren())}}).displayName="GridRow",a.componentId="Grid.Row",a.propTypes=eo,a.allowedProps=["children","rowSpacing","colSpacing","hAlign","vAlign","startAt","visualDebug","isLastRow"],a.defaultProps={children:null,isLastRow:!1},i=a))||i,es={children:er.oneOf([el,G.c]),colSpacing:Y().oneOf(["none","small","medium","large"]),rowSpacing:Y().oneOf(["none","small","medium","large"]),hAlign:Y().oneOf(["start","center","end","space-around","space-between"]),vAlign:Y().oneOf(["top","middle","bottom","stretch"]),startAt:Y().oneOf(["small","medium","large","x-large",null]),visualDebug:Y().bool},ed=["styles","makeStyles"],ec=["styles"],eu=(0,U.w)((e,t)=>{let r=t.startAt,n=t.visualDebug,o=e=>r&&r===e?{boxSizing:"border-box"}:{};return{grid:{label:"grid",display:"block",...o("small"),[`@media screen and (${e.mediumMin})`]:{...o("medium")},[`@media screen and (${e.largeMin})`]:{...o("large")},[`@media screen and (${e.xLargeMin})`]:{...o("x-large")},...n&&{outline:"0.0625rem dashed red"}}}},e=>{let t=e.spacing,r=e.media;return{...{spacingSmall:null==t?void 0:t.small,spacingMedium:null==t?void 0:t.medium,spacingLarge:null==t?void 0:t.large,...r}}})(((s=class e extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}renderChildren(){let t=this.props,r=(t.styles,t.makeStyles,(0,H.Z)(t,ed)),n=P.Children.toArray(this.props.children);return n.map((t,o)=>(0,Z.x)(t,[el])?(0,V.i)(t,{...(0,W.H)(r,e.allowedProps),...t.props,isLastRow:o+1===n.length}):t)}render(){let t=this.props,r=t.styles,n=(0,H.Z)(t,ec),o=(0,j.c)(n,e.allowedProps);return(0,X.tZ)("span",Object.assign({},o,{css:null==r?void 0:r.grid,ref:this.handleRef}),this.renderChildren())}}).displayName="Grid",s.componentId="Grid",s.propTypes=es,s.allowedProps=["children","colSpacing","rowSpacing","hAlign","vAlign","startAt","visualDebug"],s.defaultProps={colSpacing:"medium",rowSpacing:"medium",hAlign:"start",startAt:"small",vAlign:"top",visualDebug:!1,children:null},s.Row=el,s.Col=ee,l=s))||l;var ep=r("63"),ef=r.n(ep);let eh=new Map,em=P.createContext(eh);var eg=r("512");let eb=(e,t)=>(t.has(e)?t.set(e,t.get(e)+1):t.set(e,0),`${e}_${t.get(e)}`),ey=(0,eg.b)(e=>{let t=(0,P.forwardRef)((t,r)=>{let n=e.componentId||e.displayName||e.name,o=(0,P.useContext)(em);return t.deterministicId&&(0,q.ZK)(!1,`Manually passing the "deterministicId" property is not allowed on the ${n} component. -`,t.deterministicId),P.createElement(e,Object.assign({ref:r,deterministicId:(e=n)=>eb(e,o)},t))});return ef()(t,e),t.propTypes=e.propTypes,t.defaultProps=e.defaultProps,t.allowedProps=e.allowedProps,t.originalType=e.originalType||e,t});var ev=r("8455");let ew={children:Y().node.isRequired,as:Y().elementType},ex=(0,U.w)((e,t)=>{let r=t.children,n={all:"initial",display:"block",...(0,N.B)(r)&&{color:e.color,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,margin:0,textAlign:"inherit"}};return{formFieldLabel:{label:"formFieldLabel",...n,"&:is(label)":n,"&:-webkit-any(label)":n}}},e=>{let t=e.colors,r=e.typography,n=e.key,o={canvas:{color:e["ic-brand-font-color-dark"]}};return{color:null==t?void 0:t.textDarkest,fontFamily:null==r?void 0:r.fontFamily,fontWeight:null==r?void 0:r.fontWeightBold,fontSize:null==r?void 0:r.fontSizeMedium,lineHeight:null==r?void 0:r.lineHeightFit,...o[n]}})(((c=class e extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}render(){let t=(0,ev.B)(e,this.props),r=this.props,n=r.styles,o=r.children;return(0,X.tZ)(t,Object.assign({},(0,j.c)(this.props,e.allowedProps),{css:null==n?void 0:n.formFieldLabel,ref:this.handleRef}),o)}}).displayName="FormFieldLabel",c.componentId="FormFieldLabel",c.propTypes=ew,c.allowedProps=["as","children"],c.defaultProps={as:"span"},d=c))||d;var ek=r("9936");let eS={children:Y().node,src:Y().string,title:Y().string,description:Y().string,focusable:Y().bool,width:Y().oneOfType([Y().string,Y().number]),height:Y().oneOfType([Y().string,Y().number]),inline:Y().bool,color:Y().oneOf(["inherit","primary","secondary","primary-inverse","secondary-inverse","success","error","alert","warning","brand","auto"]),elementRef:Y().func},eC=["style","title","description","focusable","children","src","styles"],eA=(u=ey(),p=(0,U.w)((e,t)=>{let r=t.inline,n=t.color;return{inlineSVG:{label:"inlineSVG",fill:"currentColor",display:r?"inline-block":"block",overflow:"visible",...{inherit:{color:"inherit"},primary:{color:e.primaryColor},secondary:{color:e.secondaryColor},"primary-inverse":{color:e.primaryInverseColor},"secondary-inverse":{color:e.secondaryInverseColor},success:{color:e.successColor},brand:{color:e.brandColor},warning:{color:e.warningColor},error:{color:e.errorColor},alert:{color:e.alertColor},auto:{}}[n]}}},e=>{let t=e.colors,r=e.key,n={canvas:{primaryColor:e["ic-brand-font-color-dark"],brandColor:e["ic-brand-primary"]}};return{primaryInverseColor:null==t?void 0:t.textLightest,primaryColor:null==t?void 0:t.textDarkest,secondaryColor:null==t?void 0:t.textDark,secondaryInverseColor:null==t?void 0:t.textLight,warningColor:null==t?void 0:t.textWarning,brandColor:null==t?void 0:t.textBrand,errorColor:null==t?void 0:t.textDanger,alertColor:null==t?void 0:t.textAlert,successColor:null==t?void 0:t.textSuccess,...n[r]}}),u(f=p(f=(0,ek.j)()(((h=class e extends P.Component{constructor(e){super(e),this.titleId=void 0,this.descId=void 0,this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)},this.titleId=e.deterministicId("InlineSVG-title"),this.descId=e.deterministicId("InlineSVG-desc")}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}get role(){return this.props.title?"img":"presentation"}renderTitle(){let e=this.props.title;return e?(0,X.tZ)("title",{id:this.titleId},e):null}renderDesc(e){return e?(0,X.tZ)("desc",{id:this.descId},e):null}get labelledBy(){let e=[];return this.props.title&&e.push(this.titleId),this.props.description&&e.push(this.descId),e.length>0?e.join(" "):void 0}renderContent(){if(!this.props.src)return(0,X.tZ)("g",{role:"presentation"},this.props.children);{let t=e.prepareSrc(this.props.src);return(0,X.tZ)("g",{role:"presentation",dangerouslySetInnerHTML:{__html:t}})}}render(){let t=this.props,r=t.style,n=t.title,o=t.description,i=t.focusable,a=(t.children,t.src),l=t.styles,s=(0,H.Z)(t,eC),d="auto"===this.props.width?void 0:this.props.width,c="auto"===this.props.height?void 0:this.props.height;return(0,X.tZ)("svg",Object.assign({},function(e){let t={},r=/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/g;if("string"==typeof e){let n=/]*)\s*>/.exec(e),o=n?n[1]:"",i=["xmlns","xmlns:xlink","version"],a=r.exec(o);for(;null!=a;)-1===i.indexOf(a[1])&&(t[a[1]]=a[2]||(a[3]?a[3]:a[4]?a[4]:a[5])||a[1]),a=r.exec(o)}return t}(a),(0,j.c)(this.props,e.allowedProps,["inline"]),{style:{...r,width:d,height:c},width:d,height:c,"aria-hidden":n?void 0:"true","aria-labelledby":this.labelledBy,role:this.role,focusable:i?"true":"false",css:null==l?void 0:l.inlineSVG,className:s.className,ref:this.handleRef}),this.renderTitle(),this.renderDesc(o),this.renderContent())}}).displayName="InlineSVG",h.componentId="InlineSVG",h.allowedProps=["children","src","title","description","focusable","width","height","inline","color","elementRef"],h.propTypes=eS,h.defaultProps={focusable:!1,src:"",title:"",description:"",inline:!0,width:"1em",height:"1em",color:"inherit"},h.prepareSrc=e=>{let t=/]*>((.|[\n\r])*)<\/svg>/.exec(e);return t?t[1]:e},f=h))||f)||f)||f),eO={...eA.propTypes,rotate:Y().oneOf(["0","90","180","270"]),size:Y().oneOf(["x-small","small","medium","large","x-large"]),bidirectional:Y().bool},eR=["rotate","className","themeOverride","size","bidirectional","makeStyles","styles"],eI=["sizeXSmall","sizeSmall","sizeMedium","sizeLarge","sizeXLarge"],eB=(m=(0,U.w)((e,t)=>{let r=t.rotate,n=t.size,o=t.bidirectional,i={"x-small":{fontSize:e.sizeXSmall},small:{fontSize:e.sizeSmall},medium:{fontSize:e.sizeMedium},large:{fontSize:e.sizeLarge},"x-large":{fontSize:e.sizeXLarge}};return{svgIcon:{label:"svgIcon",verticalAlign:"middle",lineHeight:1,width:"1em",height:"1em",...{0:{},90:{transform:"rotate(90deg)"},180:{transform:"rotate(180deg)"},270:{transform:"rotate(270deg)"}}[r],...n&&i[n],...o&&{'[dir="rtl"] &':({0:{transform:"scale3d(-1, 1, 1)"},90:{transform:"scale3d(-1, 1, 1) rotate(90deg)"},180:{transform:"scale3d(-1, 1, 1) rotate(180deg)"},270:{transform:"scale3d(-1, 1, 1) rotate(270deg)"}})[r]}}}},()=>({sizeXSmall:"1.125rem",sizeSmall:"2rem",sizeMedium:"3rem",sizeLarge:"5rem",sizeXLarge:"10rem"})),m(g=(0,ek.j)()(((b=class extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}render(){let e=this.props,t=e.rotate,r=e.className,n=e.themeOverride,o=(e.size,e.bidirectional,e.makeStyles,e.styles),i=(0,H.Z)(e,eR);n.sizeXSmall,n.sizeSmall,n.sizeMedium,n.sizeLarge,n.sizeXLarge;let a=(0,H.Z)(n,eI);return(0,X.tZ)(eA,Object.assign({},i,{themeOverride:a,rotate:t,css:null==o?void 0:o.svgIcon,className:r,elementRef:this.handleRef}))}}).displayName="SVGIcon",b.componentId="SVGIcon",b.allowedProps=["children","src","title","description","focusable","width","height","inline","color","elementRef","rotate","size","bidirectional"],b.propTypes=eO,b.defaultProps={rotate:"0",bidirectional:!1},g=b))||g)||g);class eM extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)}}render(){return P.createElement(eB,Object.assign({},this.props,{name:"IconWarning",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),y||(y=P.createElement("path",{d:"M960 0c530.193 0 960 429.807 960 960s-429.807 960-960 960S0 1490.193 0 960 429.807 0 960 0Zm-9.838 1342.685c-84.47 0-153.19 68.721-153.19 153.19 0 84.47 68.72 153.192 153.19 153.192s153.19-68.721 153.19-153.191-68.72-153.19-153.19-153.19ZM1153.658 320H746.667l99.118 898.623h208.755L1153.658 320Z",fillRule:"evenodd"})))}}eM.glyphName="warning",eM.variant="Solid",eM.displayName="IconWarningSolid",eM.propTypes={...eB.propTypes},eM.allowedProps=[...eB.allowedProps];let e$=Y().oneOf(["error","newError","hint","success","screenreader-only"]),eF=Y().node,e_={message:Y().shape({type:e$,text:eF})},ez=(0,U.w)((e,t)=>{let r=t.variant,n={hint:{color:e.colorHint},error:{color:e.colorError},newError:{color:e.colorError},success:{color:e.colorSuccess},"screenreader-only":{}};return{errorIcon:{fontSize:e.fontSize,marginRight:e.errorIconMarginRight,lineHeight:1.25},formFieldMessage:{label:"formFieldMessage",fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,display:"block",...n[r]}}},e=>{let t=e.colors,r=e.typography,n=e.key,o=e.spacing,i={canvas:{colorHint:e["ic-brand-font-color-dark"]}};return{colorHint:null==t?void 0:t.textDarkest,colorError:null==t?void 0:t.textDanger,colorSuccess:null==t?void 0:t.textSuccess,fontFamily:null==r?void 0:r.fontFamily,fontWeight:null==r?void 0:r.fontWeightNormal,fontSize:null==r?void 0:r.fontSizeSmall,lineHeight:null==r?void 0:r.lineHeight,errorIconMarginRight:o.xxSmall,...i[n]}})(((w=class extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}render(){let e=this.props,t=e.children,r=e.styles;return"screenreader-only"!==this.props.variant?(0,X.tZ)("span",{css:{display:"flex"}},"newError"===this.props.variant&&(0,X.tZ)("span",{css:null==r?void 0:r.errorIcon},x||(x=(0,X.tZ)(eM,{color:"error"}))),(0,X.tZ)("span",{css:null==r?void 0:r.formFieldMessage,ref:this.handleRef},t)):(0,X.tZ)(G.c,{elementRef:this.handleRef},t)}}).displayName="FormFieldMessage",w.componentId="FormFieldMessage",w.propTypes={variant:e$,children:eF},w.allowedProps=["variant","children"],w.defaultProps={variant:"hint"},v=w))||v,eL={messages:Y().arrayOf(e_.message)},eD=(0,U.w)(e=>({formFieldMessages:{label:"formFieldMessages",padding:0,display:"block",margin:`calc(-1 * ${e.topMargin}) 0 0 0`},message:{label:"formFieldMessages__message",display:"block"}}),e=>{let t=e.spacing;return{topMargin:null==t?void 0:t.xxSmall}})(((S=class e extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{this.ref=e}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}render(){let t=this.props,r=t.messages,n=t.styles;return r&&r.length>0?(0,X.tZ)("span",Object.assign({css:null==n?void 0:n.formFieldMessages},(0,j.c)(this.props,e.allowedProps),{ref:this.handleRef}),r.map((e,t)=>(0,X.tZ)("span",{key:`error${t}`,css:null==n?void 0:n.message},(0,X.tZ)(ez,{variant:e.type},e.text)))):null}}).displayName="FormFieldMessages",S.componentId="FormFieldMessages",S.propTypes=eL,S.allowedProps=["messages"],S.defaultProps={},k=S))||k,eP={label:Y().node.isRequired,id:Y().string,as:Y().elementType,messages:Y().arrayOf(e_.message),messagesId:Y().string,children:Y().node,inline:Y().bool,layout:Y().oneOf(["stacked","inline"]),labelAlign:Y().oneOf(["start","end"]),vAlign:Y().oneOf(["top","middle","bottom"]),width:Y().string,inputContainerRef:Y().func,elementRef:Y().func,isGroup:Y().bool},eT=["makeStyles","styles","messages","isGroup"],eE=(C=ey(),C(A=(0,U.w)((e,t)=>({groupErrorMessage:{margin:"0.5rem 0"},formFieldLayout:{label:"formFieldLayout",all:"initial",border:"0",padding:"0",margin:"0",minWidth:"0",direction:"inherit",textAlign:"start",opacity:"inherit",display:"block",width:"100%",...t.inline&&{display:"inline-block",verticalAlign:"middle",width:"auto"}}}),null)(((O=class e extends P.Component{constructor(e){super(e),this._messagesId=void 0,this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)},this.handleInputContainerRef=e=>{"function"==typeof this.props.inputContainerRef&&this.props.inputContainerRef(e)},this._messagesId=e.messagesId||e.deterministicId(),(0,q.H)(void 0!==e.width||!e.inline||"inline"!==e.layout,`[FormFieldLayout] The 'inline' prop is true, and the 'layout' is set to 'inline'. - This will cause a layout issue in Internet Explorer 11 unless you also add a value for the 'width' prop.`)}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}get hasVisibleLabel(){return this.props.label&&(0,N.B)(this.props.label)}get hasMessages(){return this.props.messages&&this.props.messages.length>0}get elementType(){return(0,ev.B)(e,this.props)}get inlineContainerAndLabel(){return this.props.inline&&"inline"===this.props.layout}renderLabel(){return this.hasVisibleLabel?(0,X.tZ)(eu.Col,{textAlign:this.props.labelAlign,width:this.inlineContainerAndLabel?"auto":3},(0,X.tZ)(ex,{"aria-hidden":"fieldset"===this.elementType?"true":void 0},this.props.label)):"fieldset"!==this.elementType?this.props.label:null}renderLegend(){return(0,X.tZ)(G.c,{as:"legend"},this.props.label,this.hasMessages&&(0,X.tZ)(eD,{messages:this.props.messages}))}renderVisibleMessages(){return this.hasMessages?(0,X.tZ)(eu.Row,null,(0,X.tZ)(eu.Col,{offset:this.inlineContainerAndLabel?void 0:3,textAlign:this.inlineContainerAndLabel?"end":void 0},(0,X.tZ)(eD,{id:this._messagesId,messages:this.props.messages}))):null}render(){let t=this.elementType,r=this.props,n=(r.makeStyles,r.styles),o=r.messages,i=r.isGroup,a=(0,H.Z)(r,eT),l=a.width,s=a.layout,d=a.children,c=!!(null!=o&&o.find(e=>"newError"===e.type))&&i;return(0,X.tZ)(t,Object.assign({},(0,j.c)(a,[...e.allowedProps,...eu.allowedProps]),{css:null==n?void 0:n.formFieldLayout,style:{width:l},"aria-describedby":this.hasMessages?this._messagesId:void 0,ref:this.handleRef}),"fieldset"===this.elementType&&this.renderLegend(),(0,X.tZ)(eu,Object.assign({rowSpacing:"small",colSpacing:"small",startAt:"inline"===s&&this.hasVisibleLabel?"medium":null},(0,W.H)(a,eu.allowedProps)),(0,X.tZ)(eu.Row,null,this.renderLabel(),(0,X.tZ)(eu.Col,{width:this.inlineContainerAndLabel?"auto":void 0,elementRef:this.handleInputContainerRef},c&&(0,X.tZ)("div",{css:null==n?void 0:n.groupErrorMessage},this.renderVisibleMessages()),d)),!c&&this.renderVisibleMessages()))}}).displayName="FormFieldLayout",O.componentId="FormFieldLayout",O.propTypes=eP,O.allowedProps=["label","id","as","messages","messagesId","children","inline","layout","labelAlign","width","inputContainerRef","elementRef"],O.defaultProps={inline:!1,layout:"stacked",as:"label",labelAlign:"end"},A=O))||A)||A),ej={label:Y().node.isRequired,id:Y().string.isRequired,messages:Y().arrayOf(e_.message),messagesId:Y().string,children:Y().node,inline:Y().bool,layout:Y().oneOf(["stacked","inline"]),labelAlign:Y().oneOf(["start","end"]),vAlign:Y().oneOf(["top","middle","bottom"]),width:Y().string,inputContainerRef:Y().func,elementRef:Y().func};class eW extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)}}render(){return P.createElement(eE,Object.assign({},(0,j.c)(this.props,eW.allowedProps),(0,W.H)(this.props,eE.allowedProps),{label:this.props.label,vAlign:this.props.vAlign,as:"label",htmlFor:this.props.id,elementRef:this.handleRef}))}}eW.displayName="FormField",eW.componentId="FormField",eW.propTypes=ej,eW.allowedProps=["label","id","messages","messagesId","children","inline","layout","labelAlign","vAlign","width","inputContainerRef","elementRef"],eW.defaultProps={inline:!1,layout:"stacked",labelAlign:"end",vAlign:"middle"};let eH={description:Y().node.isRequired,as:Y().elementType,messages:Y().arrayOf(e_.message),messagesId:Y().string,disabled:Y().bool,children:Y().node,layout:Y().oneOf(["stacked","columns","inline"]),rowSpacing:Y().oneOf(["none","small","medium","large"]),colSpacing:Y().oneOf(["none","small","medium","large"]),vAlign:Y().oneOf(["top","middle","bottom"]),startAt:Y().oneOf(["small","medium","large","x-large",null]),elementRef:Y().func},eN=["styles","makeStyles"];(0,U.w)((e,t,r)=>{let n=t.disabled,o=r.invalid;return{formFieldGroup:{label:"formFieldGroup",border:`${e.borderWidth} ${e.borderStyle} ${e.borderColor}`,borderRadius:e.borderRadius,display:"block",...o&&{borderColor:e.errorBorderColor,padding:e.errorFieldsPadding},...n&&{opacity:.6,cursor:"not-allowed",pointerEvents:"none"}}}},e=>{let t=e.borders,r=e.colors,n=e.spacing;return{borderWidth:null==t?void 0:t.widthSmall,borderStyle:null==t?void 0:t.style,borderColor:"transparent",borderRadius:null==t?void 0:t.radiusMedium,errorBorderColor:null==r?void 0:r.borderDanger,errorFieldsPadding:null==n?void 0:n.xSmall}})(((I=class e extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)}}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t,this.makeStylesVariables)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t,this.makeStylesVariables)}get makeStylesVariables(){return{invalid:this.invalid}}get invalid(){return!!this.props.messages&&this.props.messages.findIndex(e=>"error"===e.type)>=0}renderColumns(){return P.Children.map(this.props.children,(e,t)=>e?(0,X.tZ)(eu.Col,{width:e.props&&e.props.width?"auto":void 0,key:t},e):null)}renderChildren(){return(0,X.tZ)(eu,{colSpacing:this.props.colSpacing,rowSpacing:this.props.rowSpacing,vAlign:this.props.vAlign,startAt:this.props.startAt||("columns"===this.props.layout?"medium":null)},(0,X.tZ)(eu.Row,null,this.renderColumns()))}renderFields(){let e=this.props.styles;return(0,X.tZ)("span",{key:"fields",css:null==e?void 0:e.formFieldGroup},this.renderChildren())}render(){let t=this.props,r=(t.styles,t.makeStyles,(0,H.Z)(t,eN));return(0,X.tZ)(eE,Object.assign({},(0,j.c)(r,e.allowedProps),(0,W.H)(r,eE.allowedProps),{vAlign:r.vAlign,layout:"inline"===r.layout?"inline":"stacked",label:r.description,"aria-disabled":r.disabled?"true":void 0,"aria-invalid":this.invalid?"true":void 0,elementRef:this.handleRef,isGroup:!0}),this.renderFields())}}).displayName="FormFieldGroup",I.componentId="FormFieldGroup",I.propTypes=eH,I.allowedProps=["description","as","messages","messagesId","disabled","children","layout","rowSpacing","colSpacing","vAlign","startAt","elementRef"],I.defaultProps={as:"fieldset",disabled:!1,rowSpacing:"medium",colSpacing:"small",vAlign:"middle"},R=I));class eG extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)}}render(){return P.createElement(eB,Object.assign({},this.props,{name:"IconArrowOpenUp",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),B||(B=P.createElement("path",{d:"m.153 1393.854 92.168 92.299 867.767-867.636 867.636 867.636 92.429-92.299L960.088 433.92z",fillRule:"evenodd"})))}}eG.glyphName="arrow-open-up",eG.variant="Line",eG.displayName="IconArrowOpenUpLine",eG.propTypes={...eB.propTypes},eG.allowedProps=[...eB.allowedProps];class eZ extends P.Component{constructor(...e){super(...e),this.ref=null,this.handleRef=e=>{let t=this.props.elementRef;this.ref=e,"function"==typeof t&&t(e)}}render(){return P.createElement(eB,Object.assign({},this.props,{name:"IconArrowOpenDown",viewBox:"0 0 1920 1920",elementRef:this.handleRef}),M||(M=P.createElement("path",{d:"m.153 526.146 92.168-92.299 867.767 867.636 867.636-867.636 92.429 92.299-960.065 959.935z",fillRule:"evenodd"})))}}eZ.glyphName="arrow-open-down",eZ.variant="Line",eZ.displayName="IconArrowOpenDownLine",eZ.propTypes={...eB.propTypes},eZ.allowedProps=[...eB.allowedProps];var eV=r("7334"),eU=r("9783");let eX={renderLabel:Y().oneOfType([Y().node,Y().func]).isRequired,id:Y().string,interaction:Y().oneOf(["enabled","disabled","readonly"]),messages:Y().arrayOf(e_.message),placeholder:Y().string,isRequired:Y().bool,showArrows:Y().bool,size:Y().oneOf(["medium","large"]),value:Y().oneOfType([Y().string,Y().number]),width:Y().string,display:Y().oneOf(["inline-block","block"]),inputRef:Y().func,onFocus:Y().func,onBlur:Y().func,onChange:Y().func,onDecrement:Y().func,onIncrement:Y().func,onKeyDown:Y().func,inputMode:Y().oneOf(["numeric","decimal","tel"]),textAlign:Y().oneOf(["start","center"])},eq=($=ey(),F=(0,U.w)((e,t,r)=>{let n=t.size,o=t.textAlign,i=r.interaction,a=r.hasFocus,l=r.invalid,s="disabled"===i?{cursor:"not-allowed",pointerEvents:"none",opacity:.5}:{},d=l?{borderColor:e.errorOutlineColor}:{},c=l?{borderColor:e.errorBorderColor}:{},u={all:"initial",textAlign:o,direction:"inherit",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",appearance:"none",lineHeight:1,margin:"0",flex:1,minWidth:"0.0625rem",boxSizing:"border-box",fontFamily:"inherit",fontSize:"inherit",fontWeight:e.fontWeight,color:e.color,background:e.background,padding:e.padding,textyAlign:o,"&::placeholder":{color:e.placeholderColor}};return{requiredInvalid:{color:e.requiredInvalidColor},numberInput:{label:"numberInput"},arrowContainer:{label:"numberInput_arrowContainer",flex:`0 0 ${e.arrowsContainerWidth}`,display:"flex",flexDirection:"column",...s},arrow:{label:"numberInput_arrow",cursor:"pointer",userSelect:"none",textAlign:"center",flex:1,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:e.arrowsBackgroundColor,borderTop:"none",borderInlineEnd:"none",borderInlineStart:`${e.borderWidth} ${e.borderStyle} ${e.arrowsBorderColor}`,borderBottom:`${e.borderWidth} ${e.borderStyle} ${e.arrowsBorderColor}`,color:e.arrowsColor,"&:last-child":{borderBottom:"none"},"&:hover":{backgroundColor:e.arrowsHoverBackgroundColor},"&:active":{boxShadow:e.arrowsActiveBoxShadow}},inputWidth:{label:"numberInput_inputWidth",display:"block",position:"relative","&::before":{content:'""',pointerEvents:"none",boxSizing:"border-box",display:"block",position:"absolute",top:"-0.25rem",bottom:"-0.25rem",left:"-0.25rem",right:"-0.25rem",border:`${e.focusOutlineWidth} ${e.focusOutlineStyle} ${e.focusOutlineColor}`,borderRadius:`calc(${e.borderRadius} * 1.5)`,transition:"all 0.2s",opacity:0,transform:"scale(0.95)",...a?{opacity:1,transform:"scale(1)"}:{},...d}},inputContainer:{label:"numberInput_inputContainer",display:"flex",margin:"0",boxSizing:"border-box",transition:"all 0.2s",overflow:"hidden",fontFamily:e.fontFamily,border:`${e.borderWidth} ${e.borderStyle} ${e.borderColor}`,borderRadius:e.borderRadius,...s,...c,..."medium"===n?{fontSize:e.mediumFontSize,height:e.mediumHeight}:{fontSize:e.largeFontSize,height:e.largeHeight}},input:{label:"numberInput_input",...u,"&:is(input)[type]":u,"&:-webkit-any(input)[type]":u,"&::-webkit-inner-spin-button":{display:"none"},"&::-webkit-outer-spin-button":{display:"none"},'&:is(input)[type="number"]':{MozAppearance:"textfield"}}}},e=>{let t=e.colors,r=e.spacing,n=e.borders,o=e.typography,i=e.forms,a=e.key,l={canvas:{color:e["ic-brand-font-color-dark"],arrowsColor:e["ic-brand-font-color-dark"],focusOutlineColor:e["ic-brand-primary"]}};return{fontFamily:null==o?void 0:o.fontFamily,fontWeight:null==o?void 0:o.fontWeightNormal,borderWidth:null==n?void 0:n.widthSmall,borderStyle:null==n?void 0:n.style,borderColor:null==t?void 0:t.borderMedium,borderRadius:null==n?void 0:n.radiusMedium,color:null==t?void 0:t.textDarkest,background:null==t?void 0:t.backgroundLightest,requiredInvalidColor:null==t?void 0:t.textDanger,padding:`0 ${null==r?void 0:r.small}`,arrowsContainerWidth:"2rem",arrowsColor:null==t?void 0:t.textDarkest,arrowsBackgroundColor:null==t?void 0:t.backgroundLight,arrowsHoverBackgroundColor:null==t?void 0:t.backgroundMedium,arrowsBorderColor:null==t?void 0:t.borderMedium,arrowsActiveBoxShadow:`inset 0 0 3px 1px ${null==t?void 0:t.borderMedium}`,focusOutlineWidth:null==n?void 0:n.widthMedium,focusOutlineStyle:null==n?void 0:n.style,focusOutlineColor:null==t?void 0:t.borderBrand,errorBorderColor:null==t?void 0:t.borderDanger,errorOutlineColor:null==t?void 0:t.borderDanger,placeholderColor:null==t?void 0:t.textDark,mediumFontSize:null==o?void 0:o.fontSizeMedium,mediumHeight:null==i?void 0:i.inputHeightMedium,largeFontSize:null==o?void 0:o.fontSizeLarge,largeHeight:null==i?void 0:i.inputHeightLarge,...l[a]}}),$(_=F(_=(0,ek.j)()(((z=class e extends P.Component{constructor(...e){super(...e),this.state={hasFocus:!1},this.ref=null,this._input=null,this._id=void 0,this.handleRef=e=>{this.ref=e},this.handleInputRef=e=>{this._input=e,"function"==typeof this.props.inputRef&&this.props.inputRef(e)},this.handleFocus=e=>{this.setState({hasFocus:!0}),"function"==typeof this.props.onFocus&&this.props.onFocus(e)},this.handleBlur=e=>{this.setState({hasFocus:!1}),"function"==typeof this.props.onBlur&&this.props.onBlur(e)},this.handleChange=e=>{"function"==typeof this.props.onChange&&this.props.onChange(e,e.target.value)},this.handleKeyDown=e=>{let t=this.props,r=t.onKeyDown,n=t.onDecrement,o=t.onIncrement;"function"==typeof r&&r(e),e.keyCode===E().codes.down?(e.preventDefault(),"function"==typeof n&&n(e)):e.keyCode===E().codes.up&&(e.preventDefault(),"function"==typeof o&&o(e))},this.handleClickUpArrow=e=>{this.arrowClicked(e,this.props.onIncrement)},this.handleClickDownArrow=e=>{this.arrowClicked(e,this.props.onDecrement)}}get id(){return this.props.id?this.props.id:(!this._id&&(this._id=this.props.deterministicId()),this._id)}get invalid(){return!!this.props.messages&&this.props.messages.some(e=>"error"===e.type||"newError"===e.type)}get interaction(){return(0,eV.S)({props:this.props})}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t,this.makeStyleVariables)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t,this.makeStyleVariables)}get makeStyleVariables(){return{interaction:this.interaction,hasFocus:this.state.hasFocus,invalid:this.invalid}}arrowClicked(e,t){let r=this.interaction;if(e.preventDefault(),"enabled"===r){var n;null===(n=this._input)||void 0===n||n.focus(),"function"==typeof t&&t(e)}}renderArrows(){var e,t,r;return(0,X.tZ)("span",{css:null===(e=this.props.styles)||void 0===e?void 0:e.arrowContainer},(0,X.tZ)("button",{"aria-hidden":!0,css:null===(t=this.props.styles)||void 0===t?void 0:t.arrow,onMouseDown:this.handleClickUpArrow,tabIndex:-1,type:"button"},L||(L=(0,X.tZ)(eG,null))),(0,X.tZ)("button",{"aria-hidden":!0,css:null===(r=this.props.styles)||void 0===r?void 0:r.arrow,onMouseDown:this.handleClickDownArrow,tabIndex:-1,type:"button"},D||(D=(0,X.tZ)(eZ,null))))}render(){var t,r,n;let o=this.props,i=o.renderLabel,a=o.display,l=o.placeholder,s=o.isRequired,d=o.showArrows,c=o.value,u=o.width,p=o.styles,f=this.interaction,h=(0,eU.A)(i),m=(0,N.B)(h)?(0,X.tZ)(P.Fragment,null,h,s&&(0,X.tZ)("span",{css:this.invalid?null==p?void 0:p.requiredInvalid:{}}," *")):h;return(0,X.tZ)(eW,Object.assign({},(0,W.H)(this.props,eW.allowedProps),{label:m,inline:"inline-block"===a,id:this.id,elementRef:this.handleRef}),(0,X.tZ)("span",{css:null===(t=this.props.styles)||void 0===t?void 0:t.inputWidth,style:u?{width:u}:void 0},(0,X.tZ)("span",{css:null===(r=this.props.styles)||void 0===r?void 0:r.inputContainer},(0,X.tZ)("input",Object.assign({},(0,j.c)(this.props,[...eW.allowedProps,...e.allowedProps]),{css:null===(n=this.props.styles)||void 0===n?void 0:n.input,"aria-invalid":this.invalid?"true":void 0,id:this.id,type:"number",inputMode:this.props.inputMode,placeholder:l,ref:this.handleInputRef,required:s,value:c,disabled:"disabled"===f,readOnly:"readonly"===f,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown})),d?this.renderArrows():null)))}}).displayName="NumberInput",z.componentId="NumberInput",z.allowedProps=["renderLabel","id","interaction","messages","placeholder","isRequired","showArrows","size","value","width","display","inputRef","onFocus","onBlur","onChange","onDecrement","onIncrement","onKeyDown","inputMode","textAlign"],z.propTypes=eX,z.defaultProps={interaction:void 0,messages:[],isRequired:!1,showArrows:!0,size:"medium",display:"block",textAlign:"start",inputMode:"numeric"},_=z))||_)||_)||_)},9783:function(e,t,r){"use strict";r.d(t,{A:function(){return o}});var n=r(4194);function o(e,t={}){if("function"==typeof e)return e.prototype&&e.prototype.isReactComponent?n.createElement(e,t):e(t);return e}},8455:function(e,t,r){"use strict";r.d(t,{B:function(){return o}});var n=r(4811);function o(e,t,r){var o,i;return t.as&&t.as!==(null===(o=e.defaultProps)||void 0===o?void 0:o.as)?t.as:"function"==typeof r?r():t.href?"a":t.to?((0,n.yN)(!t.as,`[${e.displayName}] \`as\` prop should be provided when using \`to\``),"a"):"function"==typeof t.onClick?"button":(null===(i=e.defaultProps)||void 0===i?void 0:i.as)||"span"}},7334:function(e,t,r){"use strict";function n({props:e={},interactionTypes:t=["disabled","readonly"]}={}){let r=e.interaction,o=e.disabled,i=e.readOnly;return r?r:t.includes("disabled")&&o?"disabled":t.includes("readonly")&&i?"readonly":"enabled"}r.d(t,{S:function(){return n}})},5172:function(e,t,r){"use strict";function n(e){return"string"==typeof e?e:e.displayName||e.name}function o(e,t=[]){return!!e&&!!e.type&&t.map(e=>n(e)).indexOf(n(e.type))>=0}r.d(t,{x:()=>o})},9763:function(e,t,r){"use strict";function n(e,t,r){let n=Array.isArray(t)?t:Object.keys(t||{});return i(e,r?n.concat(r):n)}r.d(t,{c:function(){return n}});let o=Object.prototype.hasOwnProperty,i=(e,t)=>{let r={};for(let n in e){if(!("theme"===n||"children"===n||"className"===n||"style"===n||"styles"===n||"makeStyles"===n||"themeOverride"===n||"deterministicId"===n||t.includes(n)||!o.call(e,n)))r[n]=e[n]}return r}},3974:function(e,t,r){"use strict";r.d(t,{r:()=>a});var n=r("261"),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|fetchpriority|fetchPriority|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,n.Z)(function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)});function a(e){let t={};return Object.keys(e).filter(e=>i(e)&&"style"!==e&&"className"!==e&&"children"!==e&&"styles"!==e&&"makeStyles"!==e&&"deterministicId"!==e).forEach(r=>{t[r]=e[r]}),t}},1377:function(e,t,r){"use strict";function n(e,t,r){let n=Array.isArray(t)?t:Object.keys(t||{});return function(e,t){let r;let n={},o=t.length,i=-1;for(;++ii});var n=r("4194"),o=r("4811");function i(e,t,...r){let a=t.ref,l=e.ref,s="function"==typeof a,d={...t};return(e.props.style&&t.style&&(d.style={...e.props.style,...t.style}),d.key=e.key||t.key,Object.keys(t).forEach(r=>{0===r.indexOf("on")&&("function"==typeof t[r]||"function"==typeof e.props[r])&&(d[r]=function(...e){return e.filter((t,r)=>{if(null==t)return!1;let n=function(e,t){let r=[];return e.forEach((e,n)=>{e===t&&r.push(n)}),r}(e,t);return 1===n.length||r===n[0]}).reduce((e,t)=>{if("function"!=typeof t)throw Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...r){e.apply(this,r),t.apply(this,r)}},null)}(e.props[r],t[r]))}),null==l||null==a)?n.cloneElement(e,d,...r):((0,o.yN)("function"==typeof l,`Cloning an element with a ref that will be overwritten because the ref \ -is not a function. Use a composable callback-style ref instead. \ -Ignoring ref: ${l}`),n.cloneElement(e,{...d,ref(e){s?a(e):a.current=e,l(e)}},...r))}},9936:function(e,t,r){"use strict";r.d(t,{j:function(){return s}});var n,o,i=r(512),a=r(6459);let l=!0;try{l=!(null!==(n=process)&&void 0!==n&&null!==(o=n.env)&&void 0!==o&&o.ALWAYS_APPEND_UI_TESTABLE_LOCATORS)}catch(e){if(e instanceof ReferenceError)l=!1;else throw e}let s=l?()=>e=>e:(0,i.b)(e=>{let t={attribute:"data-cid",value:e.displayName||e.name},r=`[${t.attribute}~="${t.value}"]`;class n extends e{constructor(...e){super(...e),this._testableUnmounted=void 0,this._locatorTimeout=void 0}componentDidMount(){this._testableUnmounted=!1,super.componentDidMount&&super.componentDidMount(),this.appendLocatorAttribute()}componentDidUpdate(e,t,r){super.componentDidUpdate&&super.componentDidUpdate(e,t,r),this.appendLocatorAttribute()}componentWillUnmount(){this._testableUnmounted=!0,super.componentWillUnmount&&super.componentWillUnmount(),this._locatorTimeout&&clearTimeout(this._locatorTimeout)}appendLocatorAttribute(){this._locatorTimeout=setTimeout(()=>{let e;if(!this._testableUnmounted){try{e=this.DOMNode||(0,a.m)(this)}catch(e){}if(e){let r=e.getAttribute(t.attribute),n="string"==typeof r?r.split(/\s+/):[];!n.includes(t.value)&&n.push(t.value),e.setAttribute(t.attribute,n.join(" "))}}})}}return n.selector=r,n})},3568:function(e,t,r){"use strict";function n(e){return e.replace(/-([a-z])/g,e=>e[1].toUpperCase())}r.d(t,{_:function(){return n}})},9159:function(e,t,r){"use strict";r.d(t,{x:function(){return o}});let n=Object.prototype.hasOwnProperty;function o(e){if("object"!=typeof e)return!0;for(let t in e)if(n.call(e,t))return!1;return!0}},9719:function(e,t,r){"use strict";let n,o,i;r.d(t,{G:()=>U});var a,l,s,d=r("3047"),c=r("4194"),u=r("512");let p=!!("undefined"!=typeof window&&window.document&&window.document.createElement);var f=r("6459");function h(e,t){let r={};if(p){let n=e&&(0,f.m)(e);if(n){let o=function(e){let t=function(e){let t;let r=e&&(0,f.m)(e);r&&"ownerDocument"in r&&(t=r.ownerDocument);let n=p?window.document:void 0;return t||n}(e&&(0,f.m)(e));return t&&t.defaultView}(e);r=o?o.getComputedStyle(n,t):{}}}return r}let m=()=>{if(n)return n;if(p){let e=document.documentElement;return n=(o=e.getAttribute("dir"))||h(e).direction,!i&&(i=new MutationObserver(()=>{let t=e.getAttribute("dir");t&&t!==o&&(o=n=t)})).observe(e,{attributes:!0}),n}},g=(0,c.createContext)(function(e){if(p)return m()}()||"ltr"),b={ltr:"ltr",rtl:"rtl"};var y=r("63"),v=r.n(y);let w=["forwardedRef"],x=(0,u.b)(e=>{class t extends c.Component{render(){let t=this.props,r=t.forwardedRef,n=(0,d.Z)(t,w);return c.createElement(g.Consumer,null,t=>c.createElement(e,Object.assign({ref:r,dir:t},n)))}}t.displayName="TextDirectionContextConsumerComponent";let r=(0,c.forwardRef)((e,r)=>c.createElement(t,Object.assign({},e,{forwardedRef:r})));return v()(r,e),r.defaultProps=e.defaultProps,r.propTypes=e.propTypes,r.allowedProps=e.allowedProps,r.originalType=e.originalType||e,r});x.DIRECTION=b;var k=r("4811"),S=r("8455"),C=r("3974"),A=r("1377"),O=r("9763"),R=r("3706"),I=r("4159"),B=r("4290");function M(e){if("string"!=typeof e)return;let t=e.split(" ");if(4===t.length){var r=[t[3],t[1]];t[1]=r[0],t[3]=r[1]}return t.join(" ")}let $=({borderRadius:e,borderWidth:t,dir:r,theme:n})=>{let o=r===b.rtl;return{borderRadius:(0,B.x)("View",n,o?function(e){if("string"!=typeof e)return;let t=e.split(" ");if(2===t.length){var r=[t[1],t[0]];t[0]=r[0],t[1]=r[1]}if(3===t.length&&t.push(t[1]),4===t.length){var n=[t[1],t[0],t[3],t[2]];t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3]}return t.join(" ")}(e):e,"borderRadius"),borderWidth:(0,B.x)("View",n,o?M(t):t,"borderWidth")}},F=({margin:e,padding:t,dir:r,theme:n})=>{let o=r===b.rtl;return{margin:(0,B.x)("View",n,o?M(e):e,"margin"),padding:(0,B.x)("View",n,o?M(t):t,"padding")}},_=({insetBlockStart:e,insetBlockEnd:t,insetInlineStart:r,insetInlineEnd:n,dir:o})=>{let i=o===b.rtl;return{top:e,insetBlockStart:e,bottom:t,insetBlockEnd:t,left:i?n:r,right:i?r:n}},z=({cursor:e,style:t})=>{let r=(0,A.H)(t||{},{},["top","left","position","display","transform","overflow","minWidth","minHeight","filter","flexBasis","backgroundImage","pointerEvents"]);return e&&(r.cursor=e),r},L=(e,t)=>"string"==typeof t&&t.trim().split(" ").every(t=>e===t),D=e=>{let t="focusRing--radius",r=(e||"").trim().split(" ")[0];if(L(r,e)){if(["small","medium","large"].includes(r)){let e;return`${t}${e=r,`${e.charAt(0).toUpperCase()}${e.slice(1)}`}`}if(["circle","pill"].includes(r))return`${t}Inherit`}return`${t}None`},P=e=>{let t=e.position,r=e.display,n=e.focusPosition,o=e.withFocusOutline;return void 0===o?o:(o&&((0,k.H)("inline"===r||"relative"===t,"[View] the focus outline will only show if the `position` prop is `relative`."),(0,k.H)("inline"!==r||"inset"===n,"[View] when display is set to `inline` the focus outline will only show if `focusPosition` is set to `inset`.")),o)},T=e=>{let t=e.borderWidth;return t&&"0"!==t&&"none"!==t},E=(e,t)=>{let r=e.focusColor,n=e.focusPosition,o=e.position,i=e.shouldAnimateFocus,a=e.borderRadius,l=P(e),s=void 0===l,d={offset:{top:`calc(${t.focusOutlineOffset} * -1)`,left:`calc(${t.focusOutlineOffset} * -1)`,right:`calc(${t.focusOutlineOffset} * -1)`,bottom:`calc(${t.focusOutlineOffset}* -1)`},inset:{top:`calc(${t.focusOutlineInset} * -1)`,left:`calc(${t.focusOutlineInset} * -1)`,right:`calc(${t.focusOutlineInset} * -1)`,bottom:`calc(${t.focusOutlineInset} * -1)`}},c={info:t.focusColorInfo,inverse:t.focusColorInverse,success:t.focusColorSuccess,danger:t.focusColorDanger};if("relative"===o){let e=D(a),o={offset:{"focusRing--radiusSmall":{borderRadius:`calc(${t.borderRadiusSmall} + (${t.focusOutlineOffset} - ${t.focusOutlineWidth}))`},"focusRing--radiusMedium":{borderRadius:`calc(${t.borderRadiusMedium} + (${t.focusOutlineOffset} - ${t.focusOutlineWidth}))`},"focusRing--radiusLarge":{borderRadius:`calc(${t.borderRadiusLarge} + (${t.focusOutlineOffset} - ${t.focusOutlineWidth}))`}},inset:{"focusRing--radiusSmall":{borderRadius:`calc(${t.borderRadiusSmall} - (${t.focusOutlineInset} + ${t.focusOutlineWidth}))`},"focusRing--radiusMedium":{borderRadius:`calc(${t.borderRadiusMedium} - (${t.focusOutlineInset} + ${t.focusOutlineWidth}))`},"focusRing--radiusLarge":{borderRadius:`calc(${t.borderRadiusLarge} - (${t.focusOutlineInset} + ${t.focusOutlineWidth}))`}}};return{"&::before":{pointerEvents:"none",content:'""',position:"absolute",borderStyle:t.focusOutlineStyle,borderWidth:t.focusOutlineWidth,borderColor:c[r],opacity:0,borderRadius:({"focusRing--radiusInherit":"inherit","focusRing--radiusNone":0})[e],...o[n][e],...d[n],...i?{transition:"all 0.2s",transform:"scale(0.95)"}:{},...l?{opacity:1,transform:"scale(1)"}:{}},"&:focus":{outline:"none","&::before":{...s?{opacity:1,transform:"scale(1)"}:{}}}}}return{"&::before":{borderStyle:"none"},outlineStyle:"none",outlineColor:c[r],...l?{outlineWidth:t.focusOutlineWidth,outlineStyle:t.focusOutlineStyle}:{},"&:focus":{...s?{outlineWidth:t.focusOutlineWidth,outlineStyle:t.focusOutlineStyle}:{}}}};var j=r("7382"),W=r("7862"),H=r.n(W);let N=H().oneOf(["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"]);var G=r("1569");let Z={as:H().elementType,elementRef:H().func,display:H().oneOf(["auto","inline","block","inline-block","flex","inline-flex"]),overflowX:H().oneOf(["auto","hidden","visible"]),overflowY:H().oneOf(["auto","hidden","visible"]),margin:G.j7.spacing,padding:G.j7.spacing,height:H().oneOfType([H().string,H().number]),width:H().oneOfType([H().string,H().number]),maxHeight:H().oneOfType([H().string,H().number]),maxWidth:H().oneOfType([H().string,H().number]),minHeight:H().oneOfType([H().string,H().number]),minWidth:H().oneOfType([H().string,H().number]),children:H().node,textAlign:H().oneOf(["start","center","end"]),borderWidth:G.j7.borderWidth,borderRadius:G.j7.borderRadius,borderColor:H().oneOf(["transparent","primary","secondary","brand","info","success","warning","alert","danger"]),background:H().oneOf(["transparent","primary","secondary","primary-inverse","brand","info","alert","success","danger","warning"]),shadow:G.j7.shadow,stacking:G.j7.stacking,cursor:N,position:H().oneOf(["static","absolute","relative","sticky","fixed"]),insetInlineStart:H().string,insetInlineEnd:H().string,insetBlockStart:H().string,insetBlockEnd:H().string,withFocusOutline:H().bool,focusPosition:H().oneOf(["offset","inset"]),focusColor:H().oneOf(["info","inverse","success","danger"]),shouldAnimateFocus:H().bool,withVisualDebug:H().bool,dir:H().oneOf(Object.values(x.DIRECTION)),overscrollBehavior:H().oneOf(["auto","contain","none"])},V=["children","textAlign","background","display","withVisualDebug","width","height","minWidth","minHeight","maxWidth","maxHeight","overflowX","overflowY","stacking","shadow","position","focusPosition","focusColor","shouldAnimateFocus","borderColor","className","overscrollBehavior","styles","makeStyles"],U=(a=x(),a(l=(0,R.w)((e,t)=>{let r=t.borderRadius,n=t.borderWidth,o=t.margin,i=t.padding,a=t.position,l=t.display,s=t.focusPosition,d=t.textAlign,c=t.borderColor,u=t.background,p=t.stacking,f=t.shadow,h=t.overflowY,m=t.overflowX,g=t.overscrollBehavior,b=t.insetBlockEnd,y=t.insetBlockStart,v=t.insetInlineEnd,w=t.insetInlineStart,x=t.width,k=t.height,S=t.minWidth,C=t.minHeight,A=t.maxWidth,O=t.maxHeight,R=t.withVisualDebug,I=t.dir,B=$({theme:e,borderRadius:r,borderWidth:n,dir:I}),M=F({margin:o,padding:i,theme:e,dir:I}),L=_({dir:I,insetBlockEnd:b,insetBlockStart:y,insetInlineEnd:v,insetInlineStart:w}),D={transparent:{borderColor:e.borderColorTransparent},primary:{borderColor:e.borderColorPrimary},secondary:{borderColor:e.borderColorSecondary},brand:{borderColor:e.borderColorBrand},info:{borderColor:e.borderColorInfo},success:{borderColor:e.borderColorSuccess},warning:{borderColor:e.borderColorWarning},alert:{borderColor:e.borderColorAlert},danger:{borderColor:e.borderColorDanger}},P={transparent:{color:e.color,background:"none"},primary:{color:e.color,background:e.backgroundPrimary},secondary:{color:e.color,background:e.backgroundSecondary},"primary-inverse":{color:e.colorPrimaryInverse,background:e.backgroundPrimaryInverse},brand:{color:e.colorPrimaryInverse,background:e.backgroundBrand},info:{color:e.colorPrimaryInverse,background:e.backgroundInfo},alert:{color:e.colorPrimaryInverse,background:e.backgroundAlert},success:{color:e.colorPrimaryInverse,background:e.backgroundSuccess},danger:{color:e.colorPrimaryInverse,background:e.backgroundDanger},warning:{color:e.colorPrimaryInverse,background:e.backgroundWarning}},j={topmost:{zIndex:e.stackingTopmost},above:{zIndex:e.stackingAbove},resting:{},below:{zIndex:e.stackingBelow},deepest:{zIndex:e.stackingDeepest}},W={topmost:{boxShadow:e.shadowTopmost},resting:{boxShadow:e.shadowResting},above:{boxShadow:e.shadowAbove},none:{}},H=E(t,e);return{view:{label:"view",boxSizing:"border-box",fontFamily:e.fontFamily,maxWidth:"100%",overflow:"visible",...{inline:{label:"view--inline",display:"inline"},block:{label:"view--block",display:"block"},"inline-block":{label:"view--inlineBlock",display:"inline-block",verticalAlign:"middle"},flex:{label:"view--flex",display:"flex"},"inline-flex":{label:"view--inlineFlex",display:"inline-flex",verticalAlign:"middle"},auto:{}}[l],...u&&P[u],...p&&j[p],...f&&W[f],...d&&({start:{textAlign:"start"},center:{textAlign:"center"},end:{textAlign:"end"}})[d],overflowX:m&&"visible"!==m?m:"",overflowY:h&&"visible"!==h?h:"",position:"static"!==a?a:"",overscrollBehavior:g||"auto",...R?{outline:`0.0625rem dashed ${e.debugOutlineColor}`}:{},...T(t)?{borderStyle:e.borderStyle,...D[c]}:{},..."relative"===a||"inline"===l&&"inset"===s?H:{}},inlineStyles:{"&&&&&&&&&&":{...M,...B,...L,width:x,height:k,minWidth:S,minHeight:C,maxWidth:A,maxHeight:O,...z(t)}}}},e=>{let t=e.colors,r=e.typography,n=e.borders,o=e.breakpoints,i=e.spacing,a=e.shadows,l=e.stacking,s=e.key,d={canvas:{color:e["ic-brand-font-color-dark"],focusColorInfo:e["ic-brand-primary"],backgroundBrand:e["ic-brand-primary"],backgroundInfo:e["ic-brand-primary"],borderColorBrand:e["ic-brand-primary"],borderColorInfo:e["ic-brand-primary"]}};return{...{fontFamily:null==r?void 0:r.fontFamily,color:null==t?void 0:t.textDarkest,colorPrimaryInverse:null==t?void 0:t.textLightest,borderColorPrimary:null==t?void 0:t.borderMedium,borderColorSecondary:null==t?void 0:t.borderDark,borderColorSuccess:null==t?void 0:t.borderSuccess,borderColorBrand:null==t?void 0:t.borderBrand,borderColorInfo:null==t?void 0:t.borderInfo,borderColorAlert:null==t?void 0:t.borderAlert,borderColorWarning:null==t?void 0:t.borderWarning,borderColorDanger:null==t?void 0:t.borderDanger,borderColorTransparent:"transparent",debugOutlineColor:null==t?void 0:t.borderDebug,backgroundPrimary:null==t?void 0:t.backgroundLightest,backgroundSecondary:null==t?void 0:t.backgroundLight,backgroundPrimaryInverse:null==t?void 0:t.backgroundDarkest,backgroundBrand:null==t?void 0:t.backgroundBrand,backgroundInfo:null==t?void 0:t.backgroundInfo,backgroundAlert:null==t?void 0:t.backgroundAlert,backgroundSuccess:null==t?void 0:t.backgroundSuccess,backgroundDanger:null==t?void 0:t.backgroundDanger,backgroundWarning:null==t?void 0:t.backgroundWarning,arrowSize:"0.5rem",focusOutlineStyle:null==n?void 0:n.style,focusOutlineWidth:null==n?void 0:n.widthMedium,focusOutlineOffset:"0.3125rem",focusOutlineInset:"0rem",focusColorInfo:null==t?void 0:t.borderInfo,focusColorDanger:null==t?void 0:t.borderDanger,focusColorSuccess:null==t?void 0:t.borderSuccess,focusColorInverse:null==t?void 0:t.borderLightest,xSmallMaxWidth:null==o?void 0:o.xSmall,smallMaxWidth:null==o?void 0:o.small,mediumMaxWidth:null==o?void 0:o.medium,largeMaxWidth:null==o?void 0:o.large,...(0,j.L)("margin",i),...(0,j.L)("padding",i),...(0,j.L)("shadow",a),...(0,j.L)("stacking",l),...(0,j.L)("border",n)},...d[s]}})(((s=class e extends c.Component{get _element(){return this.ref}constructor(e){super(e),this.spanMarginVerified=void 0,this.ref=null,this.handleElementRef=e=>{"function"==typeof this.props.elementRef&&this.props.elementRef(e),this.ref=e},this.spanMarginVerified=!1}componentDidMount(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}componentDidUpdate(){var e,t;null===(e=(t=this.props).makeStyles)||void 0===e||e.call(t)}render(){let t=this.props,r=t.children,n=(t.textAlign,t.background,t.display,t.withVisualDebug,t.width,t.height,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight,t.overflowX,t.overflowY,t.stacking,t.shadow,t.position,t.focusPosition,t.focusColor,t.shouldAnimateFocus,t.borderColor,t.className),o=(t.overscrollBehavior,t.styles),i=(t.makeStyles,(0,d.Z)(t,V)),a=(0,S.B)(e,this.props);return(0,I.tZ)(a,Object.assign({},(0,C.r)(i),{className:n,css:[null==o?void 0:o.view,null==o?void 0:o.inlineStyles],ref:this.handleElementRef}),r)}}).displayName="View",s.componentId="View",s.allowedProps=["as","background","borderColor","borderRadius","borderWidth","children","cursor","dir","display","elementRef","focusColor","focusPosition","height","insetBlockEnd","insetBlockStart","insetInlineEnd","insetInlineStart","margin","maxHeight","maxWidth","minHeight","minWidth","overflowX","overflowY","overscrollBehavior","padding","position","shadow","shouldAnimateFocus","stacking","textAlign","width","withFocusOutline","withVisualDebug"],s.propTypes=Z,s.defaultProps={display:"auto",overflowX:"visible",overflowY:"visible",withVisualDebug:!1,borderColor:"primary",position:"static",focusPosition:"offset",focusColor:"info",shouldAnimateFocus:!0,overscrollBehavior:"auto"},s.omitViewProps=(e,t)=>{let r=[...s.allowedProps,"styles","makeStyles","themeOverride"],n=!0;try{n=!1}catch(e){if(e instanceof ReferenceError)n=!1;else throw e}return n&&Object.keys((0,A.H)(e,r)).forEach(e=>{(0,k.H)(!1,`[${t.name}] prop '${e}' is not allowed.`)}),(0,O.c)(e,r)},l=s))||l)||l)},4204:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var n,o,i,a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},63:function(e,t,r){"use strict";var n=r(9415),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},l={};function s(e){return n.isMemo(e)?a:l[e.$$typeof]||o}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=a;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=f(r);o&&o!==h&&e(t,o,n)}var a=c(r);u&&(a=a.concat(u(r)));for(var l=s(t),m=s(r),g=0;g0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,o):n.push(o),~r.indexOf(i)&&(i=t.call(this,o,i))}else r.push(i);return null==e?i:e.call(this,o,i)}}},2508:function(e,t){function r(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var r=String(e),i=n[r.toLowerCase()];if(i)return i;var i=o[r.toLowerCase()];return i?i:1===r.length?r.charCodeAt(0):void 0}r.isEventKey=function(e,t){if(e&&"object"==typeof e){var r=e.which||e.keyCode||e.charCode;if(null==r)return!1;if("string"==typeof t){var i=n[t.toLowerCase()];if(i)return i===r;var i=o[t.toLowerCase()];if(i)return i===r}else if("number"==typeof t)return t===r;return!1}};var n=(t=e.exports=r).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(i=97;i<123;i++)n[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)n[i-48]=i;for(i=1;i<13;i++)n["f"+i]=i+111;for(i=0;i<10;i++)n["numpad "+i]=i+96;var a=t.names=t.title={};for(i in n)a[n[i]]=i;for(var l in o)n[l]=o[l]},1772:function(e,t,r){"use strict";var n=r(5148);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},7862:function(e,t,r){e.exports=r(1772)()},5148:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2773:function(e,t,r){"use strict";var n=r(8232),o=function(){var e=0xefc8249d;return function(t){if(t){t=t.toString();for(var r=0;r>>0,n-=e,n*=e,e=n>>>0,n-=e,e+=0x100000000*n}return(e>>>0)*23283064365386963e-26}e=0xefc8249d}},i=function(e){return function(){var t,r,i=1,a=48,l=Array(48),s=0,d=new o;for(t=0;t<48;t++)l[t]=d(Math.random());var c=function(){++a>=48&&(a=0);var e=1768863*l[a]+23283064365386963e-26*i;return l[a]=e-(i=0|e)},u=function(e){return Math.floor(e*(c()+(2097152*c()|0)*11102230246251565e-32))};u.string=function(e){var t,r="";for(t=0;tn});function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;nt.some(t=>e instanceof t),a=new WeakMap,l=new WeakMap,s=new WeakMap,d={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return a.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return u(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function c(e){d=e(d)}function u(e){if(e instanceof IDBRequest)return function(e){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(u(e.result)),n()},i=()=>{r(e.error),n()};e.addEventListener("success",o),e.addEventListener("error",i)});return s.set(t,e),t}(e);if(l.has(e))return l.get(e);let t=function(e){if("function"==typeof e){var t;return t=e,(o||(o=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(p(this),e),u(this.request)}:function(...e){return u(t.apply(p(this),e))}}return(e instanceof IDBTransaction&&!function(e){if(a.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),n()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)});a.set(e,t)}(e),i(e,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,d):e}(e);return t!==e&&(l.set(e,t),s.set(t,e)),t}let p=e=>s.get(e);function f(e,t,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let a=indexedDB.open(e,t),l=u(a);return n&&a.addEventListener("upgradeneeded",e=>{n(u(a.result),e.oldVersion,e.newVersion,u(a.transaction),e)}),r&&a.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),l.then(e=>{i&&e.addEventListener("close",()=>i()),o&&e.addEventListener("versionchange",e=>o(e.oldVersion,e.newVersion,e))}).catch(()=>{}),l}function h(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",e=>t(e.oldVersion,e)),u(r).then(()=>void 0)}let m=["get","getKey","getAll","getAllKeys","count"],g=["put","add","delete","clear"],b=new Map;function y(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(b.get(t))return b.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,o=g.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||m.includes(r)))return;let i=async function(e,...t){let i=this.transaction(e,o?"readwrite":"readonly"),a=i.store;return n&&(a=a.index(t.shift())),(await Promise.all([a[r](...t),o&&i.done]))[0]};return b.set(t,i),i}d=(e=>({...e,get:(t,r,n)=>y(t,r)||e.get(t,r,n),has:(t,r)=>!!y(t,r)||e.has(t,r)}))(d);let v=["continue","continuePrimaryKey","advance"],w={},x=new WeakMap,k=new WeakMap,S={get(e,t){if(!v.includes(t))return e[t];let r=w[t];return!r&&(r=w[t]=function(...e){x.set(this,k.get(this)[t](...e))}),r}};async function*C(...e){let t=this;if(!(t instanceof IDBCursor)&&(t=await t.openCursor(...e)),!t)return;let r=new Proxy(t,S);for(k.set(r,t),s.set(r,p(t));t;)yield r,t=await (x.get(r)||t.continue()),x.delete(r)}function A(e,t){return t===Symbol.asyncIterator&&i(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&i(e,[IDBIndex,IDBObjectStore])}d=(e=>({...e,get:(t,r,n)=>A(t,r)?C:e.get(t,r,n),has:(t,r)=>A(t,r)||e.has(t,r)}))(d)}}]); \ No newline at end of file diff --git a/static/js/index.012a4ae9.js b/static/js/index.012a4ae9.js new file mode 100644 index 0000000..a097b8f --- /dev/null +++ b/static/js/index.012a4ae9.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={5182:function(e,t,r){let n,o;var i,a=r("1549"),s=r("4194"),c=r("8082");class l extends Error{constructor(e){super(e),this.name="IDBCacheError",Object.setPrototypeOf(this,new.target.prototype)}}class d extends l{constructor(e){super(e),this.name="DatabaseError"}}class u extends l{constructor(e){super(e),this.name="CryptoError"}}class h extends l{constructor(e){super(e),this.name="WorkerInitializationError"}}class m extends l{constructor(e){super(e),this.name="EncryptionError"}}class p extends l{constructor(e){super(e),this.name="DecryptionError"}}class f extends l{constructor(e){super(e),this.name="TimeoutError"}}function w(e,t){e.forEach((r,n)=>{r.reject(new h(t)),clearTimeout(r.timer),e.delete(n)})}async function y(e,t,r,n,o,i=5e3){return new Promise((a,s)=>{let c=setTimeout(()=>{let e=n.get(t);e&&(e.reject(new f("Request timed out")),n.delete(t))},i);n.set(t,{resolve:a,reject:s,timer:c});let l=[];o&&o.length>0&&l.push(...o);try{l.length>0?e.postMessage(r,l):e.postMessage(r)}catch(r){console.error("Failed to post message to worker:",r);let e=n.get(t);e&&(clearTimeout(e.timer),e.reject(new h("Failed to communicate with the worker.")),n.delete(t));return}})}async function g(e,t,r){let n=crypto.randomUUID();try{return await y(e,n,{requestId:n,type:"encrypt",payload:{value:t}},r,[],5e3)}catch(e){if(e instanceof h||e instanceof m||e instanceof l)throw e;throw new m(e instanceof Error?e.message:"Unknown encryption error")}}async function b(e,t,r,n){let o=crypto.randomUUID();try{return await y(e,o,{requestId:o,type:"decrypt",payload:{iv:t,ciphertext:r}},n,[t,r],5e3)}catch(e){if(e instanceof h||e instanceof p||e instanceof l)throw e;throw new p(e instanceof Error?e.message:"Unknown decryption error")}}let x=(e,t)=>t.some(t=>e instanceof t),k=new WeakMap,j=new WeakMap,I=new WeakMap,v={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return k.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return E(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function C(e){v=e(v)}function E(e){if(e instanceof IDBRequest)return function(e){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(E(e.result)),n()},i=()=>{r(e.error),n()};e.addEventListener("success",o),e.addEventListener("error",i)});return I.set(t,e),t}(e);if(j.has(e))return j.get(e);let t=function(e){if("function"==typeof e){var t;return t=e,(o||(o=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(S(this),e),E(this.request)}:function(...e){return E(t.apply(S(this),e))}}return(e instanceof IDBTransaction&&!function(e){if(k.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),n()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)});k.set(e,t)}(e),x(e,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,v):e}(e);return t!==e&&(j.set(e,t),I.set(t,e)),t}let S=e=>I.get(e);function D(e,t,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let a=indexedDB.open(e,t),s=E(a);return n&&a.addEventListener("upgradeneeded",e=>{n(E(a.result),e.oldVersion,e.newVersion,E(a.transaction),e)}),r&&a.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),s.then(e=>{i&&e.addEventListener("close",()=>i()),o&&e.addEventListener("versionchange",e=>o(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}let B=["get","getKey","getAll","getAllKeys","count"],M=["put","add","delete","clear"],P=new Map;function z(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(P.get(t))return P.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,o=M.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||B.includes(r)))return;let i=async function(e,...t){let i=this.transaction(e,o?"readwrite":"readonly"),a=i.store;return n&&(a=a.index(t.shift())),(await Promise.all([a[r](...t),o&&i.done]))[0]};return P.set(t,i),i}v=(e=>({...e,get:(t,r,n)=>z(t,r)||e.get(t,r,n),has:(t,r)=>!!z(t,r)||e.has(t,r)}))(v);let R=["continue","continuePrimaryKey","advance"],$={},L=new WeakMap,N=new WeakMap,O={get(e,t){if(!R.includes(t))return e[t];let r=$[t];return!r&&(r=$[t]=function(...e){L.set(this,N.get(this)[t](...e))}),r}};async function*W(...e){let t=this;if(!(t instanceof IDBCursor)&&(t=await t.openCursor(...e)),!t)return;let r=new Proxy(t,O);for(N.set(r,t),I.set(r,S(t));t;)yield r,t=await (L.get(r)||t.continue()),L.delete(r)}function U(e,t){return t===Symbol.asyncIterator&&x(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&x(e,[IDBIndex,IDBObjectStore])}v=(e=>({...e,get:(t,r,n)=>U(t,r)?W:e.get(t,r,n),has:(t,r)=>U(t,r)||e.has(t,r)}))(v);let T=new Map;async function A(e,t){let r=`${e}:${t}`;if(T.has(r)){let e=T.get(r);if("string"==typeof e)return e}let n=new TextEncoder().encode(r),o=Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",n))).map(e=>e.toString(16).padStart(2,"0")).join(""),i=[o.slice(0,8),o.slice(8,12),`4${o.slice(13,16)}`,(3&Number.parseInt(o.slice(16,17),16)|8).toString(16)+o.slice(17,20),o.slice(20,32)].join("-");return T.set(r,i),i}async function K(e){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}async function V(e,t,r){let n=[],o=e.transaction(t,"readonly"),i=o.store,a=`${r}-chunk-000000-`,s=`${r}-chunk-999999\uffff`,c=IDBKeyRange.bound(a,s,!1,!1),l=await i.openKeyCursor(c);for(;l;)n.push(l.key),l=await l.continue();return await o.done,n}function G(e,t){if(!e.objectStoreNames.contains(t)){let r=e.createObjectStore(t,{keyPath:"key"});r.createIndex("byTimestamp","timestamp"),r.createIndex("byCacheBuster","cacheBuster")}}async function F(e,t,r){try{return await D(e,r,{upgrade(e){G(e,t)}})}catch(n){if(n instanceof DOMException&&"VersionError"===n.name)return console.warn(`VersionError: Deleting database ${e} and retrying...`),await function(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",e=>t(e.oldVersion,e)),E(r).then(()=>void 0)}(e),await D(e,r,{upgrade(e){G(e,t)}});throw n}}function q(){let e=null,t=new Map,r=1e5,n=null,o=null;async function i(e){if(!o)throw Error("Fixed salt (cacheBuster) not initialized");let n=`${new TextDecoder().decode(e)}-${new TextDecoder().decode(new Uint8Array(o))}`;if(t.has(n)){let e=t.get(n);if(void 0!==e)return e}let i=await crypto.subtle.importKey("raw",e,{name:"PBKDF2"},!1,["deriveKey"]),a=await crypto.subtle.deriveKey({name:"PBKDF2",salt:o,iterations:r,hash:"SHA-256"},i,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"]);return t.set(n,a),a}async function a(){if(!e)throw Error("Cache key not provided for encryption worker");try{null==n||n.postMessage({type:"ready"})}catch(t){console.error("Worker: Failed to initialize AES key:",t);let e=t instanceof Error?t.message:"Unknown initialization error";null==n||n.postMessage({type:"initError",error:e})}}async function s(t){if(!e)throw Error("Cache key not initialized");if(!o)throw Error("Fixed salt (cacheBuster) not initialized");let r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder,a=await i(e),s=await crypto.subtle.encrypt({name:"AES-GCM",iv:r},a,n.encode(t));return{iv:r.buffer,ciphertext:s}}async function c(t,r){if(!e)throw Error("AES key not initialized");if(!o)throw Error("Fixed salt (cacheBuster) not initialized");let n=new Uint8Array(t),a=await i(e),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:n},a,r);return new TextDecoder().decode(s)}let l=[],d=1,u=0;function h(e){l.push(e),m()}async function m(){for(;u0;){let e=l.shift();e&&(u++,(async()=>{let t=performance.now();try{await e()}catch(e){console.error("Worker: Task execution error:",e)}finally{(function(e){e<40&&d<10?d++:e>80&&d>1&&d--})(performance.now()-t),u--,m()}})())}}async function p(t){var i,l,d,u,m;let{type:p,payload:f,requestId:w}=t.data;switch(p){case"initialize":{let{cacheKey:t,pbkdf2Iterations:n,cacheBuster:i}=f;e=new TextEncoder().encode(t),r=n||1e5,o=new TextEncoder().encode(i).buffer,await a()}break;case"encrypt":{;let{value:e}=f;await (i=w,l=e,void h(async()=>{try{let e=await s(l);if(!n)throw Error("MessagePort is not available");n.postMessage({requestId:i,type:"encryptResult",result:e},[e.iv,e.ciphertext])}catch(t){console.error("Worker: Encryption error:",t);let e=t instanceof Error?t.message:"Unknown encryption error";n&&n.postMessage({requestId:i,type:"error",error:e})}}))}break;case"decrypt":{;let{iv:e,ciphertext:t}=f;await (d=w,u=e,m=t,void h(async()=>{try{let e=await c(u,m);if(!n)throw Error("MessagePort is not available");n.postMessage({requestId:d,type:"decryptResult",result:e})}catch(t){console.error("Worker: Decryption error:",t);let e=t instanceof Error?t.message:"Unknown decryption error";n&&n.postMessage({requestId:d,type:"error",error:e})}}))}break;case"destroy":e&&(e.fill(0),e=null),o&&(new Uint8Array(o).fill(0),o=null),n&&(n.close(),n=null),self.close();break;default:console.warn(`Worker: Unknown message type received: ${p}. Ignoring the message.`)}}self.onmessage=function(e){let{type:t}=e.data;"init"===t&&e.ports&&e.ports.length>0&&((n=e.ports[0]).onmessage=p,n.start())}}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let H=null===(i=crypto)||void 0===i?void 0:i.subtle;var Y=r("2773"),Z=r.n(Y);function X(e){let t=0;for(let r=0;r{var o,i,a,s;let{worker:c,port:d}=function(e,t){let r=new Blob([`(${e.toString()})()`],{type:"application/javascript"}),n=URL.createObjectURL(r),o=new Worker(n),i=new MessageChannel;return o.postMessage({type:"init"},[i.port2]),o.onmessage=()=>{URL.revokeObjectURL(n)},o.onerror=e=>{console.error("Worker encountered an error:",e.message),t("Worker encountered an error and was terminated."),o.terminate()},i.port1.onmessageerror=()=>{console.warn("MessagePort encountered a message error. Worker may have been terminated."),t("Worker was terminated unexpectedly."),i.port1.close()},{worker:o,port:i.port1}}(q,e=>{n(new h(e)),w(this.pendingRequests,e)});this.worker=c,this.port=d,o=d,i=r,a=n,s=this.pendingRequests,o.onmessage=e=>{let t=e.data;if("ready"===t.type)i();else if("initError"===t.type)a(new h(t.error)),w(s,t.error);else{var r,n,o;if("encryptResult"===(r=t).type&&"string"==typeof r.requestId){let{requestId:e,result:r}=t,n=s.get(e);n&&(clearTimeout(n.timer),n.resolve(r),s.delete(e))}else{;if("decryptResult"===(n=t).type&&"string"==typeof n.requestId){let{requestId:e,result:r}=t,n=s.get(e);n&&(clearTimeout(n.timer),n.resolve(r),s.delete(e))}else{;if("error"===(o=t).type&&"string"==typeof o.requestId){let{requestId:e,error:r}=t,n=s.get(e);if(n){let t;let o=r.toLowerCase();t=o.includes("encrypt")?new m(r):o.includes("decrypt")?new p(r):o.includes("key")?new u(r):new l(r),clearTimeout(n.timer),n.reject(t),s.delete(e)}}else console.warn("WorkerUtils: Unknown message type received. Ignoring the message.",t)}}}},o.onmessageerror=e=>{console.error("Worker encountered a message error:",e),a(new h("Worker failed to initialize")),w(s,"Worker encountered an error and was terminated."),o.close()},d.postMessage({type:"initialize",payload:{cacheKey:e,cacheBuster:t,pbkdf2Iterations:this.pbkdf2Iterations}})});try{await this.workerReadyPromise}catch(e){if(console.error("Worker failed to initialize:",e),e instanceof l)throw e;throw new h("Worker failed to initialize.")}}async flushBustedCacheItems(){try{let e=(await this.dbReadyPromise).transaction(this.storeName,"readwrite"),t=e.store.index("byCacheBuster"),r=this.cacheBuster,n=IDBKeyRange.upperBound(r,!0),o=IDBKeyRange.lowerBound(r,!0),i=async e=>{let r=0,n=await t.openCursor(e);for(;n;)this.debug&&console.debug("Deleting item with cacheBuster:",n.value.cacheBuster),await n.delete(),r++,n=await n.continue();return r},a=await Promise.all([i(n),i(o)]);await e.done,this.debug&&a.reduce((e,t)=>e+(t||0),0)>0&&console.debug("Flushed old cache items with different cacheBuster.")}catch(e){if(console.error("Error during flushBustedCacheItems:",e),e instanceof d)throw e;throw new d("Failed to flush old cache items.")}}async cleanupExpiredItems(){try{let e=(await this.dbReadyPromise).transaction(this.storeName,"readwrite"),t=e.store.index("byTimestamp"),r=Date.now(),n=await t.openCursor();for(;n;){let{timestamp:e}=n.value;if(e<=r){let t=r-e;this.debug&&console.debug(`Deleting item with timestamp ${e}. It is ${t}ms older than the expiration.`),await n.delete()}else break;n=await n.continue()}await e.done}catch(e){if(console.error("Error during cleanupExpiredItems:",e),e instanceof d)throw e;throw new d("Failed to clean up expired items.")}}async ensureWorkerInitialized(){if(!this.workerReadyPromise)throw new h("Worker is not initialized.");await this.workerReadyPromise}getPort(){if(!this.port)throw new h("Worker port is not initialized.");return this.port}async getItem(e){try{let t=Date.now();if(!this.dbReadyPromise)return null;await this.ensureWorkerInitialized();let r=await this.dbReadyPromise,n=await A(this.cacheKey,e),o=Date.now(),i=await V(r,this.storeName,n);if(this.debug&&(0===i.length?console.debug(`Cache miss for key ${e}`):console.debug(`Cache hit for key ${e}`)),0===i.length)return null;let a=[];for(let t of i){let n=await r.get(this.storeName,t);if(!n)continue;if(n.timestamp<=o)return await this.removeItem(e),null;if(n.cacheBuster!==this.cacheBuster)continue;let i=function(e){let t=e.split("-chunk-");return t.length<2?-1:Number.parseInt(t[1].split("-")[0],10)}(t);a.push({index:i,data:n})}if(0===a.length)return null;a.sort((e,t)=>e.index-t.index);let s=await Promise.all(a.map(({data:{iv:e,ciphertext:t}})=>b(this.getPort(),e,t,this.pendingRequests))),c=Date.now()-t;return this.debug&&c>200&&console.debug(`getItem for key ${e} took ${c}ms`),s.join("")}catch(t){if(t instanceof p)throw console.error(`Decryption failed for key ${e}:`,t),t;if(t instanceof d)throw console.error(`Database error while getting key ${e}:`,t),t;if(t instanceof h)throw console.error(`Worker initialization error while getting key ${e}:`,t),t;if(t instanceof l)throw console.error(`IDBCache error while getting key ${e}:`,t),t;throw console.error(`Unexpected error while getting key ${e}:`,t),new l("An unexpected error occurred.")}}async setItem(e,t){try{let i=Date.now();if(!this.dbReadyPromise)return;await this.ensureWorkerInitialized();let a=await this.dbReadyPromise,s=await A(this.cacheKey,e),c=Date.now()+this.gcTime,l=await V(a,this.storeName,s),d=new Set(l),u=new Set,h=[],m=[];for(let e=0;e!u.has(e)),f=a.transaction(this.storeName,"readwrite"),w=f.store,y=[];for(let e of m)y.push(w.put(e));for(let{chunkKey:e,encryptedChunk:t}of h)y.push(w.put({...t,key:e,timestamp:c}));for(let e of p)y.push(w.delete(e));await Promise.all(y),await f.done;let b=Date.now()-i;this.debug&&b>200&&console.debug(`setItem for key ${e} took ${b}ms`)}catch(e){if(e instanceof h)throw console.error("Worker port is not initialized:",e),e;if(e instanceof d)throw console.error("Database error in setItem:",e),e;if(e instanceof m)throw console.error("Encryption error in setItem:",e),e;if(e instanceof l)throw console.error("IDBCache error in setItem:",e),e;throw console.error("Unexpected error in setItem:",e),new l("An unexpected error occurred during setItem.")}}async removeItem(e){try{let t=await this.dbReadyPromise,r=await A(this.cacheKey,e),n=await V(t,this.storeName,r),o=t.transaction(this.storeName,"readwrite"),i=o.store,a=n.map(e=>i.delete(e));await Promise.all(a),await o.done}catch(e){if(console.error("Error in removeItem:",e),e instanceof d||e instanceof l)throw e;throw new d("Failed to remove item from the cache.")}}async count(){try{let e=(await this.dbReadyPromise).transaction(this.storeName,"readonly"),t=e.store,r=await t.count();return await e.done,this.debug&&console.debug(`Total entries in cache: ${r}`),r}catch(e){if(console.error("Error in count():",e),e instanceof d)throw e;throw new d("Failed to count items in the cache.")}}async clear(){try{let e=(await this.dbReadyPromise).transaction(this.storeName,"readwrite"),t=e.store;await t.clear(),await e.done,this.debug&&console.debug("All items have been cleared from the cache.")}catch(e){if(console.error("Error in clear:",e),e instanceof d||e instanceof l)throw e;throw new d("Failed to clear the cache.")}}async destroy(e){let{clearData:t=!1}=e||{};try{t&&await this.clear(),void 0!==this.cleanupIntervalId&&clearInterval(this.cleanupIntervalId),this.pendingRequests.forEach((e,t)=>{e.reject(new l("IDBCache instance is being destroyed.")),this.pendingRequests.delete(t)}),this.port&&(this.port.postMessage({type:"destroy"}),this.port.close(),this.port=null),this.worker&&(this.worker.terminate(),this.worker=null),this.workerReadyPromise=null,this.debug&&console.debug("IDBCache instance has been destroyed.")}catch(e){if(console.error("Error in destroy:",e),e instanceof l)throw e;throw new l("Failed to destroy the cache instance.")}}constructor(e){_(this,"dbReadyPromise",void 0),_(this,"storeName",void 0),_(this,"worker",null),_(this,"port",null),_(this,"pendingRequests",void 0),_(this,"workerReadyPromise",null),_(this,"gcTime",void 0),_(this,"cleanupIntervalId",void 0),_(this,"cacheKey",void 0),_(this,"chunkSize",void 0),_(this,"cleanupInterval",void 0),_(this,"pbkdf2Iterations",void 0),_(this,"cacheBuster",void 0),_(this,"debug",void 0);let{cacheKey:t,cacheBuster:r,debug:n=!1,dbName:o="idb-cache",gcTime:i=6048e5,chunkSize:a=25e3,cleanupInterval:s=6e4,pbkdf2Iterations:c=1e5}=e;if(this.storeName="cache",this.cacheKey=t,this.debug=n,this.gcTime=i,this.chunkSize=a,this.cleanupInterval=s,this.pbkdf2Iterations=c,this.cacheBuster=r,this.pendingRequests=new Map,!window.indexedDB)throw new d("IndexedDB is not supported.");if(!H)throw new u("Web Crypto API not available in this environment");this.dbReadyPromise=F(o,this.storeName,1),this.cleanupIntervalId=window.setInterval(this.cleanupExpiredItems.bind(this),this.cleanupInterval),this.initWorker(t,r).then(()=>{this.cleanupExpiredItems().catch(e=>console.error("Initial cleanup failed:",e)),this.flushBustedCacheItems().catch(e=>console.error("Failed to flush old cache items:",e))}).catch(e=>{console.error("Worker initialization failed:",e)})}}({cacheKey:ei,cacheBuster:ea,debug:!0});window.idbCacheInstance=es;let ec=Number.parseInt(localStorage.getItem("itemSize")||String(32768))||32768,el=()=>(0,a.jsx)("span",{style:{color:"#ddd"},children:"------"}),ed=document.getElementById("root");ed&&c.createRoot(ed).render((0,a.jsx)(s.StrictMode,{children:(0,a.jsx)(()=>{let[e,t]=(0,s.useState)(null),[r,n]=(0,s.useState)(null),[o,i]=(0,s.useState)(null),[c,l]=(0,s.useState)(null),[d,u]=(0,s.useState)(null),[h,m]=(0,s.useState)(null),[p,f]=(0,s.useState)(null),[w,y]=(0,s.useState)(ec),[g,b]=(0,s.useState)(null),[x,k]=(0,s.useState)(()=>crypto.randomUUID()),j=(0,s.useCallback)(async()=>{let e=crypto.randomUUID();k(e);let r=performance.now(),n=Array.from({length:1},(t,r)=>(function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=`${e}-${r}`;if(J[n])return J[n];let o=Z().create(r),i=Math.ceil(e),a=Array(i);for(let e=0;ee;)s=s.slice(0,-1);return J[n]=s,s})(w,`${ea}-${e}-${r}`));i(performance.now()-r);let o=performance.now();for(let t=0;t<1;t++)await es.setItem(`item-${e}-${t}`,n[t]);l(performance.now()-o),t(X(n.join("")))},[w]),I=(0,s.useCallback)(async()=>{let e=[],t=performance.now();for(let t=0;t<1;t++){let r=await es.getItem(`item-${x}-${t}`);e.push(r)}u(performance.now()-t),n(e.filter(e=>e).length>0?X(e.join("")):null)},[x]),v=(0,s.useCallback)(async()=>{let e=performance.now(),t=await es.count();m(performance.now()-e),b(t)},[]),C=(0,s.useCallback)(async()=>{let e=performance.now();await es.clear(),f(performance.now()-e)},[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("a",{href:"https://github.com/instructure/idb-cache","aria-label":"View source on GitHub",children:[(0,a.jsxs)("svg",{width:80,height:80,viewBox:"0 0 250 250",style:{fill:"#151513",color:"#fff",position:"absolute",top:0,border:0,right:0},"aria-hidden":"true",children:[(0,a.jsx)("path",{d:"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"}),(0,a.jsx)("path",{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor",style:{transformOrigin:"130px 106px"},className:"octo-arm"}),(0,a.jsx)("path",{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor",className:"octo-body"})]}),(0,a.jsx)("span",{style:{position:"absolute",left:"-9999px"},children:"View source on GitHub"})]}),(0,a.jsx)("div",{className:"min-h-screen bg-gray-50 p-8",children:(0,a.jsxs)("div",{className:"max-w-4xl mx-auto p-6 bg-white shadow-md rounded-lg",children:[(0,a.jsx)(en.X,{level:"h1",margin:"0 0 small 0",children:"@instructure/idb-cache"}),(0,a.jsxs)("form",{children:[(0,a.jsxs)("fieldset",{className:"border border-gray-300 rounded-lg p-4 mb-6",children:[(0,a.jsx)("legend",{className:"text-lg font-semibold text-gray-700",children:"Test Configuration"}),(0,a.jsxs)(er.kC,{direction:"column",gap:"small",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("span",{children:["Cache key: ",(0,a.jsx)("code",{className:"text-sm",children:ei})]}),(0,a.jsx)(Q.z,{onClick:()=>{localStorage.removeItem("cacheKey"),window.location.reload()},children:"Reset"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("span",{children:["Cache buster: ",(0,a.jsx)("code",{className:"text-sm",children:ea})]}),(0,a.jsx)(Q.z,{onClick:()=>{localStorage.removeItem("cacheBuster"),window.location.reload()},children:"Reset"})]}),(0,a.jsxs)(er.kC,{gap:"medium",children:[(0,a.jsx)(er.kC.Item,{shouldGrow:!0,children:(0,a.jsx)(eo.Y,{renderLabel:"Size of data (kb):",onChange:e=>{let t=Math.max(1024*Number.parseInt(e.target.value),1024);y(t),localStorage.setItem("itemSize",String(t))},onIncrement:()=>{let e=Math.max(Math.round(w)+1024,1024);y(e),localStorage.setItem("itemSize",String(e))},onDecrement:()=>{let e=Math.max(Math.round(w)-1024,1024);y(e),localStorage.setItem("itemSize",String(e))},isRequired:!0,value:Math.round(w/1024)})}),(0,a.jsx)(er.kC.Item,{shouldGrow:!0,children:(0,a.jsx)(eo.Y,{renderLabel:"Number of chunks:",interaction:"disabled",value:Math.ceil(w/25e3)})})]})]})]}),(0,a.jsxs)("fieldset",{className:"border border-gray-300 rounded-lg p-4",children:[(0,a.jsx)("legend",{className:"text-lg font-semibold text-gray-700",children:"Performance Tests"}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(et.G,{as:"span",display:"inline-block",margin:"none",padding:"medium",background:"primary",shadow:"resting",children:(0,a.jsxs)(er.kC,{direction:"column",children:[(0,a.jsx)(Q.z,{color:"primary",onClick:j,children:"setItem"}),(0,a.jsx)(et.G,{padding:"medium 0 0 0",children:(0,a.jsxs)(er.kC,{children:[(0,a.jsx)(er.kC.Item,{size:"33.3%",children:(0,a.jsx)(ee.j,{renderLabel:"generate test data",renderValue:null!==c?`${Math.round(o||0)} ms`:(0,a.jsx)(el,{})})}),(0,a.jsx)(er.kC.Item,{shouldGrow:!0,children:(0,a.jsx)(ee.j,{renderLabel:"setItem",renderValue:null!==c?`${Math.round(c)} ms`:(0,a.jsx)(el,{})})}),(0,a.jsx)(er.kC.Item,{size:"33.3%",children:(0,a.jsx)(ee.j,{renderLabel:"hash",renderValue:e||(0,a.jsx)(el,{})})})]})})]})}),(0,a.jsx)(et.G,{as:"span",display:"inline-block",margin:"none",padding:"medium",background:"primary",shadow:"resting",children:(0,a.jsxs)(er.kC,{direction:"column",children:[(0,a.jsx)(Q.z,{color:"primary",onClick:I,children:"getItem"}),(0,a.jsx)(et.G,{padding:"medium 0 0 0",children:(0,a.jsxs)(er.kC,{children:[(0,a.jsx)(er.kC.Item,{size:"33.3%",children:"\xa0"}),(0,a.jsx)(er.kC.Item,{shouldGrow:!0,children:(0,a.jsx)(ee.j,{renderLabel:"getItem",renderValue:null!==d?`${Math.round(d)} ms`:(0,a.jsx)(el,{})})}),(0,a.jsx)(er.kC.Item,{size:"33.3%",children:(0,a.jsx)(ee.j,{renderLabel:"hash",renderValue:r||(0,a.jsx)(el,{})})})]})})]})}),(0,a.jsx)(et.G,{as:"span",display:"inline-block",margin:"none",padding:"medium",background:"primary",shadow:"resting",children:(0,a.jsxs)(er.kC,{direction:"column",children:[(0,a.jsx)(Q.z,{color:"primary",onClick:v,children:"count"}),(0,a.jsx)(et.G,{padding:"medium 0 0 0",children:(0,a.jsxs)(er.kC,{children:[(0,a.jsx)(er.kC.Item,{size:"33.3%",children:"\xa0"}),(0,a.jsx)(er.kC.Item,{shouldGrow:!0,children:(0,a.jsx)(ee.j,{renderLabel:"clear",renderValue:null!==h?`${Math.round(h)} ms`:(0,a.jsx)(el,{})})}),(0,a.jsx)(er.kC.Item,{size:"33.3%",children:(0,a.jsx)(ee.j,{renderLabel:"chunks",renderValue:"number"==typeof g?g:(0,a.jsx)(el,{})})})]})})]})}),(0,a.jsx)(et.G,{as:"span",display:"inline-block",margin:"none",padding:"medium",background:"primary",shadow:"resting",children:(0,a.jsxs)(er.kC,{direction:"column",children:[(0,a.jsx)(Q.z,{color:"primary",onClick:C,children:"clear"}),(0,a.jsx)(et.G,{padding:"medium 0 0 0",children:(0,a.jsxs)(er.kC,{children:[(0,a.jsx)(er.kC.Item,{size:"33.3%",children:"\xa0"}),(0,a.jsx)(er.kC.Item,{shouldGrow:!0,children:(0,a.jsx)(ee.j,{renderLabel:"clear",renderValue:null!==p?`${Math.round(p)} ms`:(0,a.jsx)(el,{})})}),(0,a.jsx)(er.kC.Item,{size:"33.3%",children:"\xa0"})]})})]})})]})]})]})]})})]})},{})}))}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.m=e,r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};r.t=function(n,o){if(1&o&&(n=this(n)),8&o||"object"==typeof n&&n&&(4&o&&n.__esModule||16&o&&"function"==typeof n.then))return n;var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(function(e){a[e]=function(){return n[e]}});return a.default=function(){return n},r.d(i,a),i}})(),r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e=[];r.O=function(t,n,o,i){if(n){i=i||0;for(var a=e.length;a>0&&e[a-1][2]>i;a--)e[a]=e[a-1];e[a]=[n,o,i];return}for(var s=1/0,a=0;a=i)&&Object.keys(r.O).every(function(e){return r.O[e](n[l])})?n.splice(l--,1):(c=!1,i{var e={980:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o=n[0],i=n[1],a=n[2],s,c,l=0;if(o.some(function(t){return 0!==e[t]})){for(s in i)r.o(i,s)&&(r.m[s]=i[s]);if(a)var d=a(r)}for(t&&t(n);l{"use strict";var e={5182:function(e,t,r){var n,o=r("1549"),i=r("4194"),a=r("8082"),s=r("4831");class c extends Error{constructor(e){super(e),this.name="IDBCacheError",Object.setPrototypeOf(this,new.target.prototype)}}class l extends c{constructor(e){super(e),this.name="DatabaseError"}}class d extends c{constructor(e){super(e),this.name="CryptoError"}}class h extends c{constructor(e){super(e),this.name="WorkerInitializationError"}}class u extends c{constructor(e){super(e),this.name="EncryptionError"}}class m extends c{constructor(e){super(e),this.name="DecryptionError"}}class p extends c{constructor(e){super(e),this.name="TimeoutError"}}function f(e,t){e.forEach((r,n)=>{r.reject(new h(t)),clearTimeout(r.timer),e.delete(n)})}async function w(e,t,r,n,o,i=5e3){return new Promise((a,s)=>{let c=setTimeout(()=>{let e=n.get(t);e&&(e.reject(new p("Request timed out")),n.delete(t))},i);n.set(t,{resolve:a,reject:s,timer:c});let l=[];o&&o.length>0&&l.push(...o);try{l.length>0?e.postMessage(r,l):e.postMessage(r)}catch(r){console.error("Failed to post message to worker:",r);let e=n.get(t);e&&(clearTimeout(e.timer),e.reject(new h("Failed to communicate with the worker.")),n.delete(t));return}})}async function y(e,t,r){let n=crypto.randomUUID();try{return await w(e,n,{requestId:n,type:"encrypt",payload:{value:t}},r,[],5e3)}catch(e){if(e instanceof h||e instanceof u||e instanceof c)throw e;throw new u(e instanceof Error?e.message:"Unknown encryption error")}}async function g(e,t,r,n){let o=crypto.randomUUID();try{return await w(e,o,{requestId:o,type:"decrypt",payload:{iv:t,ciphertext:r}},n,[t,r],5e3)}catch(e){if(e instanceof h||e instanceof m||e instanceof c)throw e;throw new m(e instanceof Error?e.message:"Unknown decryption error")}}let b=new Map;async function x(e,t){let r=`${e}:${t}`;if(b.has(r)){let e=b.get(r);if("string"==typeof e)return e}let n=new TextEncoder().encode(r),o=Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",n))).map(e=>e.toString(16).padStart(2,"0")).join(""),i=[o.slice(0,8),o.slice(8,12),`4${o.slice(13,16)}`,(3&Number.parseInt(o.slice(16,17),16)|8).toString(16)+o.slice(17,20),o.slice(20,32)].join("-");return b.set(r,i),i}async function k(e){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}async function j(e,t,r){let n=[],o=e.transaction(t,"readonly"),i=o.store,a=`${r}-chunk-000000-`,s=`${r}-chunk-999999\uffff`,c=IDBKeyRange.bound(a,s,!1,!1),l=await i.openKeyCursor(c);for(;l;)n.push(l.key),l=await l.continue();return await o.done,n}function v(e,t){if(!e.objectStoreNames.contains(t)){let r=e.createObjectStore(t,{keyPath:"key"});r.createIndex("byTimestamp","timestamp"),r.createIndex("byCacheBuster","cacheBuster")}}async function I(e,t,r){try{return await (0,s.X3)(e,r,{upgrade(e){v(e,t)}})}catch(n){if(n instanceof DOMException&&"VersionError"===n.name)return console.warn(`VersionError: Deleting database ${e} and retrying...`),await (0,s.Lj)(e),await (0,s.X3)(e,r,{upgrade(e){v(e,t)}});throw n}}function C(){let e=null,t=new Map,r=1e5,n=null,o=null;async function i(e){if(!o)throw Error("Fixed salt (cacheBuster) not initialized");let n=`${new TextDecoder().decode(e)}-${new TextDecoder().decode(new Uint8Array(o))}`;if(t.has(n)){let e=t.get(n);if(void 0!==e)return e}let i=await crypto.subtle.importKey("raw",e,{name:"PBKDF2"},!1,["deriveKey"]),a=await crypto.subtle.deriveKey({name:"PBKDF2",salt:o,iterations:r,hash:"SHA-256"},i,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"]);return t.set(n,a),a}async function a(){if(!e)throw Error("Cache key not provided for encryption worker");try{null==n||n.postMessage({type:"ready"})}catch(t){console.error("Worker: Failed to initialize AES key:",t);let e=t instanceof Error?t.message:"Unknown initialization error";null==n||n.postMessage({type:"initError",error:e})}}async function s(t){if(!e)throw Error("Cache key not initialized");if(!o)throw Error("Fixed salt (cacheBuster) not initialized");let r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder,a=await i(e),s=await crypto.subtle.encrypt({name:"AES-GCM",iv:r},a,n.encode(t));return{iv:r.buffer,ciphertext:s}}async function c(t,r){if(!e)throw Error("AES key not initialized");if(!o)throw Error("Fixed salt (cacheBuster) not initialized");let n=new Uint8Array(t),a=await i(e),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:n},a,r);return new TextDecoder().decode(s)}let l=[],d=1,h=0;function u(e){l.push(e),m()}async function m(){for(;h0;){let e=l.shift();e&&(h++,(async()=>{let t=performance.now();try{await e()}catch(e){console.error("Worker: Task execution error:",e)}finally{(function(e){e<40&&d<10?d++:e>80&&d>1&&d--})(performance.now()-t),h--,m()}})())}}async function p(t){var i,l,d,h,m;let{type:p,payload:f,requestId:w}=t.data;switch(p){case"initialize":{let{cacheKey:t,pbkdf2Iterations:n,cacheBuster:i}=f;e=new TextEncoder().encode(t),r=n||1e5,o=new TextEncoder().encode(i).buffer,await a()}break;case"encrypt":{;let{value:e}=f;await (i=w,l=e,void u(async()=>{try{let e=await s(l);if(!n)throw Error("MessagePort is not available");n.postMessage({requestId:i,type:"encryptResult",result:e},[e.iv,e.ciphertext])}catch(t){console.error("Worker: Encryption error:",t);let e=t instanceof Error?t.message:"Unknown encryption error";n&&n.postMessage({requestId:i,type:"error",error:e})}}))}break;case"decrypt":{;let{iv:e,ciphertext:t}=f;await (d=w,h=e,m=t,void u(async()=>{try{let e=await c(h,m);if(!n)throw Error("MessagePort is not available");n.postMessage({requestId:d,type:"decryptResult",result:e})}catch(t){console.error("Worker: Decryption error:",t);let e=t instanceof Error?t.message:"Unknown decryption error";n&&n.postMessage({requestId:d,type:"error",error:e})}}))}break;case"destroy":e&&(e.fill(0),e=null),o&&(new Uint8Array(o).fill(0),o=null),n&&(n.close(),n=null),self.close();break;default:console.warn(`Worker: Unknown message type received: ${p}. Ignoring the message.`)}}self.onmessage=function(e){let{type:t}=e.data;"init"===t&&e.ports&&e.ports.length>0&&((n=e.ports[0]).onmessage=p,n.start())}}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let E=null===(n=crypto)||void 0===n?void 0:n.subtle;var M=r("2773"),z=r.n(M);function P(e){let t=0;for(let r=0;r{var o,i,a,s;let{worker:l,port:p}=function(e,t){let r=new Blob([`(${e.toString()})()`],{type:"application/javascript"}),n=URL.createObjectURL(r),o=new Worker(n),i=new MessageChannel;return o.postMessage({type:"init"},[i.port2]),o.onmessage=()=>{URL.revokeObjectURL(n)},o.onerror=e=>{console.error("Worker encountered an error:",e.message),t("Worker encountered an error and was terminated."),o.terminate()},i.port1.onmessageerror=()=>{console.warn("MessagePort encountered a message error. Worker may have been terminated."),t("Worker was terminated unexpectedly."),i.port1.close()},{worker:o,port:i.port1}}(C,e=>{n(new h(e)),f(this.pendingRequests,e)});this.worker=l,this.port=p,o=p,i=r,a=n,s=this.pendingRequests,o.onmessage=e=>{let t=e.data;if("ready"===t.type)i();else if("initError"===t.type)a(new h(t.error)),f(s,t.error);else{var r,n,o;if("encryptResult"===(r=t).type&&"string"==typeof r.requestId){let{requestId:e,result:r}=t,n=s.get(e);n&&(clearTimeout(n.timer),n.resolve(r),s.delete(e))}else{;if("decryptResult"===(n=t).type&&"string"==typeof n.requestId){let{requestId:e,result:r}=t,n=s.get(e);n&&(clearTimeout(n.timer),n.resolve(r),s.delete(e))}else{;if("error"===(o=t).type&&"string"==typeof o.requestId){let{requestId:e,error:r}=t,n=s.get(e);if(n){let t;let o=r.toLowerCase();t=o.includes("encrypt")?new u(r):o.includes("decrypt")?new m(r):o.includes("key")?new d(r):new c(r),clearTimeout(n.timer),n.reject(t),s.delete(e)}}else console.warn("WorkerUtils: Unknown message type received. Ignoring the message.",t)}}}},o.onmessageerror=e=>{console.error("Worker encountered a message error:",e),a(new h("Worker failed to initialize")),f(s,"Worker encountered an error and was terminated."),o.close()},p.postMessage({type:"initialize",payload:{cacheKey:e,cacheBuster:t,pbkdf2Iterations:this.pbkdf2Iterations}})});try{await this.workerReadyPromise}catch(e){if(console.error("Worker failed to initialize:",e),e instanceof c)throw e;throw new h("Worker failed to initialize.")}}async flushBustedCacheItems(){try{let e=(await this.dbReadyPromise).transaction(this.storeName,"readwrite"),t=e.store.index("byCacheBuster"),r=this.cacheBuster,n=IDBKeyRange.upperBound(r,!0),o=IDBKeyRange.lowerBound(r,!0),i=async e=>{let r=0,n=await t.openCursor(e);for(;n;)this.debug&&console.debug("Deleting item with cacheBuster:",n.value.cacheBuster),await n.delete(),r++,n=await n.continue();return r},a=await Promise.all([i(n),i(o)]);await e.done,this.debug&&a.reduce((e,t)=>e+(t||0),0)>0&&console.debug("Flushed old cache items with different cacheBuster.")}catch(e){if(console.error("Error during flushBustedCacheItems:",e),e instanceof l)throw e;throw new l("Failed to flush old cache items.")}}async cleanupExpiredItems(){try{let e=(await this.dbReadyPromise).transaction(this.storeName,"readwrite"),t=e.store.index("byTimestamp"),r=Date.now(),n=await t.openCursor();for(;n;){let{timestamp:e}=n.value;if(e<=r){let t=r-e;this.debug&&console.debug(`Deleting item with timestamp ${e}. It is ${t}ms older than the expiration.`),await n.delete()}else break;n=await n.continue()}await e.done}catch(e){if(console.error("Error during cleanupExpiredItems:",e),e instanceof l)throw e;throw new l("Failed to clean up expired items.")}}async ensureWorkerInitialized(){if(!this.workerReadyPromise)throw new h("Worker is not initialized.");await this.workerReadyPromise}getPort(){if(!this.port)throw new h("Worker port is not initialized.");return this.port}async getItem(e){try{let t=Date.now();if(!this.dbReadyPromise)return null;await this.ensureWorkerInitialized();let r=await this.dbReadyPromise,n=await x(this.cacheKey,e),o=Date.now(),i=await j(r,this.storeName,n);if(this.debug&&(0===i.length?console.debug(`Cache miss for key ${e}`):console.debug(`Cache hit for key ${e}`)),0===i.length)return null;let a=[];for(let t of i){let n=await r.get(this.storeName,t);if(!n)continue;if(n.timestamp<=o)return await this.removeItem(e),null;if(n.cacheBuster!==this.cacheBuster)continue;let i=function(e){let t=e.split("-chunk-");return t.length<2?-1:Number.parseInt(t[1].split("-")[0],10)}(t);a.push({index:i,data:n})}if(0===a.length)return null;a.sort((e,t)=>e.index-t.index);let s=await Promise.all(a.map(({data:{iv:e,ciphertext:t}})=>g(this.getPort(),e,t,this.pendingRequests))),c=Date.now()-t;return this.debug&&c>200&&console.debug(`getItem for key ${e} took ${c}ms`),s.join("")}catch(t){if(t instanceof m)throw console.error(`Decryption failed for key ${e}:`,t),t;if(t instanceof l)throw console.error(`Database error while getting key ${e}:`,t),t;if(t instanceof h)throw console.error(`Worker initialization error while getting key ${e}:`,t),t;if(t instanceof c)throw console.error(`IDBCache error while getting key ${e}:`,t),t;throw console.error(`Unexpected error while getting key ${e}:`,t),new c("An unexpected error occurred.")}}async setItem(e,t){try{let i=Date.now();if(!this.dbReadyPromise)return;await this.ensureWorkerInitialized();let a=await this.dbReadyPromise,s=await x(this.cacheKey,e),c=Date.now()+this.gcTime,l=await j(a,this.storeName,s),d=new Set(l),h=new Set,u=[],m=[];for(let e=0;e!h.has(e)),f=a.transaction(this.storeName,"readwrite"),w=f.store,g=[];for(let e of m)g.push(w.put(e));for(let{chunkKey:e,encryptedChunk:t}of u)g.push(w.put({...t,key:e,timestamp:c}));for(let e of p)g.push(w.delete(e));await Promise.all(g),await f.done;let b=Date.now()-i;this.debug&&b>200&&console.debug(`setItem for key ${e} took ${b}ms`)}catch(e){if(e instanceof h)throw console.error("Worker port is not initialized:",e),e;if(e instanceof l)throw console.error("Database error in setItem:",e),e;if(e instanceof u)throw console.error("Encryption error in setItem:",e),e;if(e instanceof c)throw console.error("IDBCache error in setItem:",e),e;throw console.error("Unexpected error in setItem:",e),new c("An unexpected error occurred during setItem.")}}async removeItem(e){try{let t=await this.dbReadyPromise,r=await x(this.cacheKey,e),n=await j(t,this.storeName,r),o=t.transaction(this.storeName,"readwrite"),i=o.store,a=n.map(e=>i.delete(e));await Promise.all(a),await o.done}catch(e){if(console.error("Error in removeItem:",e),e instanceof l||e instanceof c)throw e;throw new l("Failed to remove item from the cache.")}}async count(){try{let e=(await this.dbReadyPromise).transaction(this.storeName,"readonly"),t=e.store,r=await t.count();return await e.done,this.debug&&console.debug(`Total entries in cache: ${r}`),r}catch(e){if(console.error("Error in count():",e),e instanceof l)throw e;throw new l("Failed to count items in the cache.")}}async clear(){try{let e=(await this.dbReadyPromise).transaction(this.storeName,"readwrite"),t=e.store;await t.clear(),await e.done,this.debug&&console.debug("All items have been cleared from the cache.")}catch(e){if(console.error("Error in clear:",e),e instanceof l||e instanceof c)throw e;throw new l("Failed to clear the cache.")}}async destroy(e){let{clearData:t=!1}=e||{};try{t&&await this.clear(),void 0!==this.cleanupIntervalId&&clearInterval(this.cleanupIntervalId),this.pendingRequests.forEach((e,t)=>{e.reject(new c("IDBCache instance is being destroyed.")),this.pendingRequests.delete(t)}),this.port&&(this.port.postMessage({type:"destroy"}),this.port.close(),this.port=null),this.worker&&(this.worker.terminate(),this.worker=null),this.workerReadyPromise=null,this.debug&&console.debug("IDBCache instance has been destroyed.")}catch(e){if(console.error("Error in destroy:",e),e instanceof c)throw e;throw new c("Failed to destroy the cache instance.")}}constructor(e){S(this,"dbReadyPromise",void 0),S(this,"storeName",void 0),S(this,"worker",null),S(this,"port",null),S(this,"pendingRequests",void 0),S(this,"workerReadyPromise",null),S(this,"gcTime",void 0),S(this,"cleanupIntervalId",void 0),S(this,"cacheKey",void 0),S(this,"chunkSize",void 0),S(this,"cleanupInterval",void 0),S(this,"pbkdf2Iterations",void 0),S(this,"cacheBuster",void 0),S(this,"debug",void 0);let{cacheKey:t,cacheBuster:r,debug:n=!1,dbName:o="idb-cache",gcTime:i=6048e5,chunkSize:a=25e3,cleanupInterval:s=6e4,pbkdf2Iterations:c=1e5}=e;if(this.storeName="cache",this.cacheKey=t,this.debug=n,this.gcTime=i,this.chunkSize=a,this.cleanupInterval=s,this.pbkdf2Iterations=c,this.cacheBuster=r,this.pendingRequests=new Map,!window.indexedDB)throw new l("IndexedDB is not supported.");if(!E)throw new d("Web Crypto API not available in this environment");this.dbReadyPromise=I(o,this.storeName,1),this.cleanupIntervalId=window.setInterval(this.cleanupExpiredItems.bind(this),this.cleanupInterval),this.initWorker(t,r).then(()=>{this.cleanupExpiredItems().catch(e=>console.error("Initial cleanup failed:",e)),this.flushBustedCacheItems().catch(e=>console.error("Failed to flush old cache items:",e))}).catch(e=>{console.error("Worker initialization failed:",e)})}}({cacheKey:W,cacheBuster:T,debug:!0});window.idbCacheInstance=A;let L=Number.parseInt(localStorage.getItem("itemSize")||String(32768))||32768,G=()=>(0,o.jsx)("span",{style:{color:"#ddd"},children:"------"}),K=document.getElementById("root");K&&a.createRoot(K).render((0,o.jsx)(i.StrictMode,{children:(0,o.jsx)(()=>{let[e,t]=(0,i.useState)(null),[r,n]=(0,i.useState)(null),[a,s]=(0,i.useState)(null),[c,l]=(0,i.useState)(null),[d,h]=(0,i.useState)(null),[u,m]=(0,i.useState)(null),[p,f]=(0,i.useState)(null),[w,y]=(0,i.useState)(L),[g,b]=(0,i.useState)(null),[x,k]=(0,i.useState)(()=>crypto.randomUUID()),j=(0,i.useCallback)(async()=>{let e=crypto.randomUUID();k(e);let r=performance.now(),n=Array.from({length:1},(t,r)=>(function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=`${e}-${r}`;if(R[n])return R[n];let o=z().create(r),i=Math.ceil(e),a=Array(i);for(let e=0;ee;)s=s.slice(0,-1);return R[n]=s,s})(w,`${T}-${e}-${r}`));s(performance.now()-r);let o=performance.now();for(let t=0;t<1;t++)await A.setItem(`item-${e}-${t}`,n[t]);l(performance.now()-o),t(P(n.join("")))},[w]),v=(0,i.useCallback)(async()=>{let e=[],t=performance.now();for(let t=0;t<1;t++){let r=await A.getItem(`item-${x}-${t}`);e.push(r)}h(performance.now()-t),n(e.filter(e=>e).length>0?P(e.join("")):null)},[x]),I=(0,i.useCallback)(async()=>{let e=performance.now(),t=await A.count();m(performance.now()-e),b(t)},[]),C=(0,i.useCallback)(async()=>{let e=performance.now();await A.clear(),f(performance.now()-e)},[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("a",{href:"https://github.com/instructure/idb-cache","aria-label":"View source on GitHub",children:[(0,o.jsxs)("svg",{width:80,height:80,viewBox:"0 0 250 250",style:{fill:"#151513",color:"#fff",position:"absolute",top:0,border:0,right:0},"aria-hidden":"true",children:[(0,o.jsx)("path",{d:"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"}),(0,o.jsx)("path",{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor",style:{transformOrigin:"130px 106px"},className:"octo-arm"}),(0,o.jsx)("path",{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor",className:"octo-body"})]}),(0,o.jsx)("span",{style:{position:"absolute",left:"-9999px"},children:"View source on GitHub"})]}),(0,o.jsx)("div",{className:"min-h-screen bg-gray-50 p-8",children:(0,o.jsxs)("div",{className:"max-w-4xl mx-auto p-6 bg-white shadow-md rounded-lg",children:[(0,o.jsx)(U.X,{level:"h1",margin:"0 0 small 0",children:"@instructure/idb-cache"}),(0,o.jsxs)("form",{children:[(0,o.jsxs)("fieldset",{className:"border border-gray-300 rounded-lg p-4 mb-6",children:[(0,o.jsx)("legend",{className:"text-lg font-semibold text-gray-700",children:"Test Configuration"}),(0,o.jsxs)(N.kC,{direction:"column",gap:"small",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsxs)("span",{children:["Cache key: ",(0,o.jsx)("code",{className:"text-sm",children:W})]}),(0,o.jsx)(B.z,{onClick:()=>{localStorage.removeItem("cacheKey"),window.location.reload()},children:"Reset"})]}),(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsxs)("span",{children:["Cache buster: ",(0,o.jsx)("code",{className:"text-sm",children:T})]}),(0,o.jsx)(B.z,{onClick:()=>{localStorage.removeItem("cacheBuster"),window.location.reload()},children:"Reset"})]}),(0,o.jsxs)(N.kC,{gap:"medium",children:[(0,o.jsx)(N.kC.Item,{shouldGrow:!0,children:(0,o.jsx)(O.Y,{renderLabel:"Size of data (kb):",onChange:e=>{let t=Math.max(1024*Number.parseInt(e.target.value),1024);y(t),localStorage.setItem("itemSize",String(t))},onIncrement:()=>{let e=Math.max(Math.round(w)+1024,1024);y(e),localStorage.setItem("itemSize",String(e))},onDecrement:()=>{let e=Math.max(Math.round(w)-1024,1024);y(e),localStorage.setItem("itemSize",String(e))},isRequired:!0,value:Math.round(w/1024)})}),(0,o.jsx)(N.kC.Item,{shouldGrow:!0,children:(0,o.jsx)(O.Y,{renderLabel:"Number of chunks:",interaction:"disabled",value:Math.ceil(w/25e3)})})]})]})]}),(0,o.jsxs)("fieldset",{className:"border border-gray-300 rounded-lg p-4",children:[(0,o.jsx)("legend",{className:"text-lg font-semibold text-gray-700",children:"Performance Tests"}),(0,o.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,o.jsx)(D.G,{as:"span",display:"inline-block",margin:"none",padding:"medium",background:"primary",shadow:"resting",children:(0,o.jsxs)(N.kC,{direction:"column",children:[(0,o.jsx)(B.z,{color:"primary",onClick:j,children:"setItem"}),(0,o.jsx)(D.G,{padding:"medium 0 0 0",children:(0,o.jsxs)(N.kC,{children:[(0,o.jsx)(N.kC.Item,{size:"33.3%",children:(0,o.jsx)($.j,{renderLabel:"generate test data",renderValue:null!==c?`${Math.round(a||0)} ms`:(0,o.jsx)(G,{})})}),(0,o.jsx)(N.kC.Item,{shouldGrow:!0,children:(0,o.jsx)($.j,{renderLabel:"setItem",renderValue:null!==c?`${Math.round(c)} ms`:(0,o.jsx)(G,{})})}),(0,o.jsx)(N.kC.Item,{size:"33.3%",children:(0,o.jsx)($.j,{renderLabel:"hash",renderValue:e||(0,o.jsx)(G,{})})})]})})]})}),(0,o.jsx)(D.G,{as:"span",display:"inline-block",margin:"none",padding:"medium",background:"primary",shadow:"resting",children:(0,o.jsxs)(N.kC,{direction:"column",children:[(0,o.jsx)(B.z,{color:"primary",onClick:v,children:"getItem"}),(0,o.jsx)(D.G,{padding:"medium 0 0 0",children:(0,o.jsxs)(N.kC,{children:[(0,o.jsx)(N.kC.Item,{size:"33.3%",children:"\xa0"}),(0,o.jsx)(N.kC.Item,{shouldGrow:!0,children:(0,o.jsx)($.j,{renderLabel:"getItem",renderValue:null!==d?`${Math.round(d)} ms`:(0,o.jsx)(G,{})})}),(0,o.jsx)(N.kC.Item,{size:"33.3%",children:(0,o.jsx)($.j,{renderLabel:"hash",renderValue:r||(0,o.jsx)(G,{})})})]})})]})}),(0,o.jsx)(D.G,{as:"span",display:"inline-block",margin:"none",padding:"medium",background:"primary",shadow:"resting",children:(0,o.jsxs)(N.kC,{direction:"column",children:[(0,o.jsx)(B.z,{color:"primary",onClick:I,children:"count"}),(0,o.jsx)(D.G,{padding:"medium 0 0 0",children:(0,o.jsxs)(N.kC,{children:[(0,o.jsx)(N.kC.Item,{size:"33.3%",children:"\xa0"}),(0,o.jsx)(N.kC.Item,{shouldGrow:!0,children:(0,o.jsx)($.j,{renderLabel:"clear",renderValue:null!==u?`${Math.round(u)} ms`:(0,o.jsx)(G,{})})}),(0,o.jsx)(N.kC.Item,{size:"33.3%",children:(0,o.jsx)($.j,{renderLabel:"chunks",renderValue:"number"==typeof g?g:(0,o.jsx)(G,{})})})]})})]})}),(0,o.jsx)(D.G,{as:"span",display:"inline-block",margin:"none",padding:"medium",background:"primary",shadow:"resting",children:(0,o.jsxs)(N.kC,{direction:"column",children:[(0,o.jsx)(B.z,{color:"primary",onClick:C,children:"clear"}),(0,o.jsx)(D.G,{padding:"medium 0 0 0",children:(0,o.jsxs)(N.kC,{children:[(0,o.jsx)(N.kC.Item,{size:"33.3%",children:"\xa0"}),(0,o.jsx)(N.kC.Item,{shouldGrow:!0,children:(0,o.jsx)($.j,{renderLabel:"clear",renderValue:null!==p?`${Math.round(p)} ms`:(0,o.jsx)(G,{})})}),(0,o.jsx)(N.kC.Item,{size:"33.3%",children:"\xa0"})]})})]})})]})]})]})]})})]})},{})}))}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.m=e,r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};r.t=function(n,o){if(1&o&&(n=this(n)),8&o||"object"==typeof n&&n&&(4&o&&n.__esModule||16&o&&"function"==typeof n.then))return n;var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(function(e){a[e]=function(){return n[e]}});return a.default=function(){return n},r.d(i,a),i}})(),r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e=[];r.O=function(t,n,o,i){if(n){i=i||0;for(var a=e.length;a>0&&e[a-1][2]>i;a--)e[a]=e[a-1];e[a]=[n,o,i];return}for(var s=1/0,a=0;a=i)&&Object.keys(r.O).every(function(e){return r.O[e](n[l])})?n.splice(l--,1):(c=!1,i{var e={980:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o=n[0],i=n[1],a=n[2],s,c,l=0;if(o.some(function(t){return 0!==e[t]})){for(s in i)r.o(i,s)&&(r.m[s]=i[s]);if(a)var d=a(r)}for(t&&t(n);l